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

 @version fusioncharts/3.3.1-sr3.21100

 @attributions (infers respective third-party copyrights)
 Raphael 2.1.0 (modified as "Red Raphael") <http://raphaeljs.com/license.html>
 SWFObject v2.2 (modified) <http://code.google.com/p/swfobject/>
 JSON v2 <http://www.JSON.org/js.html>
 jQuery 1.8.3 <http://jquery.com/>
 Firebug Lite 1.3.0 <http://getfirebug.com/firebuglite>
*/
(function(){if(!window.FusionCharts||!window.FusionCharts.version){var a={},f=window,g=f.document,h=f.navigator,j=a.modules={},d=a.interpreters={},o=Object.prototype.toString,c=/msie/i.test(h.userAgent)&&!f.opera,b=/loaded|complete/,i=!!g.createElementNS&&!!g.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,t=!1,e=function(){var b=a.ready;a.ready=!0;if(a.raiseEvent)a.readyNotified=!0,a.raiseEvent("ready",{version:a.core.version,now:!b},a.core);a.readyNow=!b},m=function(a,b){var e,
k;if(b instanceof Array)for(e=0;e<b.length;e+=1)typeof b[e]!=="object"?a[e]=b[e]:(typeof a[e]!=="object"&&(a[e]=b[e]instanceof Array?[]:{}),m(a[e],b[e]));else for(e in b)typeof b[e]==="object"?(k=o.call(b[e]),k==="[object Object]"?(typeof a[e]!=="object"&&(a[e]={}),m(a[e],b[e])):k==="[object Array]"?(a[e]instanceof Array||(a[e]=[]),m(a[e],b[e])):a[e]=b[e]):a[e]=b[e];return a};a.extend=function(a,b,e,k){var i;if(e&&a.prototype)a=a.prototype;if(k===!0)m(a,b);else for(i in b)a[i]=b[i];return a};a.uniqueId=
function(){return"chartobject-"+(a.uniqueId.lastId+=1)};a.uniqueId.lastId=0;a.policies={options:{swfSrcPath:["swfSrcPath",void 0],product:["product","v3"],insertMode:["insertMode","replace"],safeMode:["safeMode",!0],overlayButton:["overlayButton",void 0],containerBackgroundColor:["backgroundColor","#ffffff"],chartType:["type",void 0]},attributes:{lang:["lang","EN"],"class":["className","FusionCharts"],id:["id",void 0]},width:["width","100%"],height:["height","100%"],src:["swfUrl",""]};d.stat=["swfUrl",
"id","width","height","debugMode","registerWithJS","backgroundColor","scaleMode","lang","detectFlashVersion","autoInstallRedirect"];a.parsePolicies=function(b,e,i){var k,c,d;for(c in e)if(a.policies[c]instanceof Array)d=i[e[c][0]],b[c]=d===void 0?e[c][1]:d;else for(k in typeof b[c]!=="object"&&(b[c]={}),e[c])d=i[e[c][k][0]],b[c][k]=d===void 0?e[c][k][1]:d};a.parseCommands=function(a,b,e){var i,c;typeof b==="string"&&(b=d[b]||[]);i=0;for(c=b.length;i<c;i++)a[b[i]]=e[i];return a};a.core=function(b){if (window == this || document == this || (typeof element != "undefined" && element == this) || !(this instanceof a.core)) {if(arguments.length===1&&b instanceof Array&&b[0]==="private"){if(j[b[1]])return;j[b[1]]={};b[3]instanceof Array&&(a.core.version[b[1]]=b[3]);return typeof b[2]==="function"?b[2].call(a,j[b[1]]):a}if(arguments.length===1&&typeof b==="string")return a.core.items[b];a.raiseError&&a.raiseError(this,"25081840","run","",new SyntaxError('Use the "new" keyword while creating a new FusionCharts object'))}var e={};this.__state={};if(arguments.length===1&&typeof arguments[0]==="object")e=arguments[0];
else if(a.parseCommands(e,d.stat,arguments),a.core.options.sensePreferredRenderer&&e.swfUrl&&e.swfUrl.match&&!e.swfUrl.match(/[^a-z0-9]+/ig))e.type=e.swfUrl;arguments.length>1&&typeof arguments[arguments.length-1]==="object"&&(delete e[d.stat[arguments.length-1]],a.extend(e,arguments[arguments.length-1]));this.id=typeof e.id==="undefined"?this.id=a.uniqueId():e.id;this.args=e;if(a.core.items[this.id]instanceof a.core)a.raiseWarning(this,"06091847","param","",Error('A FusionChart oject with the specified id "'+
this.id+'" already exists. Renaming it to '+(this.id=a.uniqueId())));if(e.type&&e.type.toString){if(!a.renderer.userSetDefault&&(c||i))e.renderer=e.renderer||"javascript";e.swfUrl=(a.core.options.swfSrcPath||e.swfSrcPath||a.core.options.scriptBaseUri).replace(/\/\s*$/g,"")+"/"+e.type.replace(/\.swf\s*?$/ig,"")+".swf"}a.parsePolicies(this,a.policies,e);this.attributes.id=this.id;this.resizeTo(e.width,e.height,!0);a.raiseEvent("BeforeInitialize",e,this);a.core.items[this.id]=this;a.raiseEvent("Initialized",
e,this);return this};a.core.prototype={};a.core.prototype.constructor=a.core;a.extend(a.core,{id:"FusionCharts",version:[3,3,1,"sr3",21100],items:{},options:{sensePreferredRenderer:!0},getObjectReference:function(b){return a.core.items[b].ref}},!1);f.FusionCharts=a.core;f.FusionMaps&&f.FusionMaps.legacy&&(a.core(["private","modules.core.geo",f.FusionMaps.legacy,f.FusionMaps.version]),t=!0);!b.test(g.readyState)&&!g.loaded?function(){function i(){if(!arguments.callee.done){arguments.callee.done=!0;
m&&clearTimeout(m);if(!t)f.FusionMaps&&f.FusionMaps.legacy&&a.core(["private","modules.core.geo",f.FusionMaps.legacy,f.FusionMaps.version]),f.FusionMaps=a.core;setTimeout(e,1)}}function d(){b.test(g.readyState)?i():m=setTimeout(d,10)}var m;g.addEventListener?g.addEventListener("DOMContentLoaded",i,!1):g.attachEvent&&f.attachEvent("onLoad",i);if(c)try{f.location.protocol==="https:"?g.write('<script id="__ie_onload_fusioncharts" defer="defer" src="//:"><\/script>'):g.write('<script id="__ie_onload_fusioncharts" defer="defer" src="javascript:void(0)"><\/script>'),
g.getElementById("__ie_onload_fusioncharts").onreadystatechange=function(){this.readyState=="complete"&&i()}}catch(k){}/WebKit/i.test(h.userAgent)&&(m=setTimeout(d,10));f.onload=function(a){return function(){i();a&&a.call&&a.call(f)}}(f.onload)}():(a.ready=!0,setTimeout(e,1));f.FusionMaps=a.core}})();
(function(){var a=FusionCharts(["private","EventManager"]);if(a!==void 0){window.FusionChartsEvents={BeforeInitialize:"beforeinitialize",Initialized:"initialized",Loaded:"loaded",BeforeRender:"beforerender",Rendered:"rendered",DataLoadRequested:"dataloadrequested",DataLoadRequestCancelled:"dataloadrequestcancelled",DataLoadRequestCompleted:"dataloadrequestcompleted",BeforeDataUpdate:"beforedataupdate",DataUpdateCancelled:"dataupdatecancelled",DataUpdated:"dataupdated",DataLoadCancelled:"dataloadcancelled",
DataLoaded:"dataloaded",DataLoadError:"dataloaderror",NoDataToDisplay:"nodatatodisplay",DataXMLInvalid:"dataxmlinvalid",InvalidDataError:"invaliddataerror",DrawComplete:"drawcomplete",Resized:"resized",BeforeDispose:"beforedispose",Disposed:"disposed",Exported:"exported"};var f=function(a,d,h,c){try{a[0].call(d,h,c||{})}catch(b){setTimeout(function(){throw b;},0)}},g=function(j,d,h){if(j instanceof Array)for(var c=0,b;c<j.length;c+=1){if(j[c][1]===d.sender||j[c][1]===void 0)if(b=j[c][1]===d.sender?
d.sender:a.core,f(j[c],b,d,h),d.detached===!0)j.splice(c,1),c-=1,d.detached=!1;if(d.cancelled===!0)break}},h={unpropagator:function(){return(this.cancelled=!0)===!1},detacher:function(){return(this.detached=!0)===!1},undefaulter:function(){return(this.prevented=!0)===!1},listeners:{},lastEventId:0,addListener:function(j,d,g){if(j instanceof Array)for(var c=0;c<j.length;c+=1)h.addListener(j[c],d,g);else typeof j!=="string"?a.raiseError(g||a.core,"03091549","param","::EventTarget.addListener",Error("Unspecified Event Type")):
typeof d!=="function"?a.raiseError(g||a.core,"03091550","param","::EventTarget.addListener",Error("Invalid Event Listener")):(j=j.toLowerCase(),h.listeners[j]instanceof Array||(h.listeners[j]=[]),h.listeners[j].push([d,g]))},removeListener:function(j,d,g){var c;if(typeof d!=="function")a.raiseError(g||a.core,"03091560","param","::EventTarget.removeListener",Error("Invalid Event Listener"));else if(j instanceof Array)for(c=0;c<j.length;c+=1)h.removeListener(j[c],d,g);else if(typeof j!=="string")a.raiseError(g||
a.core,"03091559","param","::EventTarget.removeListener",Error("Unspecified Event Type"));else if(j=j.toLowerCase(),j=h.listeners[j],j instanceof Array)for(c=0;c<j.length;c+=1)j[c][0]===d&&j[c][1]===g&&(j.splice(c,1),c-=1)},triggerEvent:function(j,d,o,c,b){if(typeof j!=="string")a.raiseError(d,"03091602","param","::EventTarget.dispatchEvent",Error("Invalid Event Type"));else{j=j.toLowerCase();d={eventType:j,eventId:h.lastEventId+=1,sender:d||Error("Orphan Event"),cancel:!1,stopPropagation:this.unpropagator,
prevented:!1,preventDefault:this.undefaulter,detached:!1,detachHandler:this.detacher};if(c)d.originalEvent=c;g(h.listeners[j],d,o);g(h.listeners["*"],d,o);b&&d.prevented===!1&&f(b,d.sender,d,o);return!0}}};a.raiseEvent=function(a,d,g,c,b){return h.triggerEvent(a,g,d,c,b)};a.addEventListener=function(a,d){return h.addListener(a,d)};a.removeEventListener=function(a,d){return h.removeListener(a,d)};a.extend(a.core,{addEventListener:a.addEventListener,removeEventListener:a.removeEventListener},!1);a.extend(a.core,
{addEventListener:function(a,d){return h.addListener(a,d,this)},removeEventListener:function(a,d){return h.removeListener(a,d,this)}},!0);a.addEventListener("BeforeDispose",function(a){var d,g;for(d in h.listeners)for(g=0;g<h.listeners[d].length;g+=1)h.listeners[d][g][1]===a.sender&&h.listeners[d].splice(g,1)});if(a.ready&&!a.readyNotified)a.readyNotified=!0,a.raiseEvent("ready",{version:a.core.version,now:a.readyNow},a.core)}})();
(function(){var a=FusionCharts(["private","ErrorHandler"]);if(a!==void 0){var f={type:"TypeException",range:"ValueRangeException",impl:"NotImplementedException",param:"ParameterException",run:"RuntimeException",comp:"DesignTimeError",undefined:"UnspecifiedException"},g=function(j,d,h,c,b,i){var t="#"+d+" "+(j?j.id:"unknown-source")+c+" "+i+" >> ";b instanceof Error?(b.name=f[h],b.module="FusionCharts"+c,b.level=i,b.message=t+b.message,t=b.message,window.setTimeout(function(){throw b;},0)):t+=b;d=
{id:d,nature:f[h],source:"FusionCharts"+c,message:t};a.raiseEvent(i,d,j);if(typeof window["FC_"+i]==="function")window["FC_"+i](d)};a.raiseError=function(a,d,h,c,b){g(a,d,h,c,b,"Error")};a.raiseWarning=function(a,d,h,c,b){g(a,d,h,c,b,"Warning")};var h={outputHelpers:{text:function(a,d){h.outputTo("#"+a.eventId+" ["+(a.sender.id||a.sender).toString()+'] fired "'+a.eventType+'" event. '+(a.eventType==="error"||a.eventType==="warning"?d.message:""))},event:function(a,d){this.outputTo(a,d)},verbose:function(a,
d){h.outputTo(a.eventId,a.sender.id,a.eventType,d)}},outputHandler:function(j,d){typeof h.outputTo!=="function"?a.core.debugMode.outputFailed=!0:(a.core.debugMode.outputFailed=!1,h.currentOutputHelper(j,d))},currentOutputHelper:void 0,outputTo:void 0,enabled:!1};h.currentOutputHelper=h.outputHelpers.text;a.extend(a.core,{debugMode:{syncStateWithCharts:!0,outputFormat:function(a){if(a&&typeof a.toLowerCase==="function"&&typeof h.outputHelpers[a=a.toLowerCase()]==="function")return h.currentOutputHelper=
h.outputHelpers[a],!0;return!1},outputTo:function(g){typeof g==="function"?h.outputTo=g:g===null&&(a.core.debugMode.enabled(!1),delete h.outputTo)},enabled:function(g,d,f){var c;if(typeof g==="object"&&arguments.length===1)c=g,g=c.state,d=c.outputTo,f=c.outputFormat;if(typeof g==="function"){if(typeof d==="string"&&(arguments.length===2||c))f=d;d=g;g=!0}if(typeof g==="boolean"&&g!==h.enabled)a.core[(h.enabled=g)?"addEventListener":"removeEventListener"]("*",h.outputHandler);if(typeof d==="function")h.outputTo=
d;a.core.debugMode.outputFormat(f);return h.enabled},_enableFirebugLite:function(){window.console&&window.console.firebug?a.core.debugMode.enabled(console.log,"verbose"):a.loadScript("firebug-lite.js",function(){a.core.debugMode.enabled(console.log,"verbose")},"{ startOpened: true }")}}},!1)}})();
FusionCharts(["private","modules.mantle.ajax",function(){var a=this,f=window,g=parseFloat(navigator.appVersion.split("MSIE")[1]),h=g>=5.5&&g<=7?!0:!1,j=f.location.protocol==="file:",d=f.ActiveXObject,o=(!d||!j)&&f.XMLHttpRequest,c={objects:0,xhr:0,requests:0,success:0,failure:0,idle:0},b=function(){var a;if(o)return b=function(){c.xhr++;return new o},b();try{a=new d("Msxml2.XMLHTTP"),b=function(){c.xhr++;return new d("Msxml2.XMLHTTP")}}catch(t){try{a=new d("Microsoft.XMLHTTP"),b=function(){c.xhr++;
return new d("Microsoft.XMLHTTP")}}catch(e){a=!1}}return a},f=a.ajax=function(a,b){this.onSuccess=a;this.onError=b;this.open=!1;c.objects++;c.idle++};f.stats=function(b){return b?c[b]:a.extend({},c)};f.prototype.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"};f.prototype.transact=function(i,d,e,m){var u=this,l=u.xmlhttp,g=u.headers,
k=u.onError,p=u.onSuccess,i=i==="POST",f,o;if(!l||h)l=b(),u.xmlhttp=l;l.onreadystatechange=function(){try{if(l.readyState===4)!l.status&&j||l.status>=200&&l.status<300||l.status===304||l.status===1223||l.status===0?(p&&p(l.responseText,u,m,d),c.success++):k&&(k(Error("XmlHttprequest Error"),u,m,d),c.failure++),c.idle--,u.open=!1}catch(a){k&&k(a,u,m,d),window.FC_DEV_ENVIRONMENT&&setTimeout(function(){throw a;},0),c.failure++}};try{l.overrideMimeType&&l.overrideMimeType("text/plain");if(i)if(l.open("POST",
d,!0),typeof e==="string")f=e;else{f=[];for(o in e)f.push(o+"="+(e[o]+"").replace(/\=/g,"%3D").replace(/\&/g,"%26"));f=f.join("&")}else l.open("GET",d,!0),f=null;for(o in g)l.setRequestHeader(o,g[o]);l.send(f);c.requests++;c.idle++;u.open=!0}catch(B){a.raiseError(a.core,"1110111515A","run","XmlHttprequest Error",B.message)}return l};f.prototype.get=function(a,b){return this.transact("GET",a,void 0,b)};f.prototype.post=function(a,b,e){return this.transact("POST",a,b,e)};f.prototype.abort=function(){var a=
this.xmlhttp;this.open=!1;return a&&typeof a.abort==="function"&&a.readyState&&a.readyState!==0&&a.abort()};f.prototype.dispose=function(){this.open&&this.abort();delete this.onError;delete this.onSuccess;delete this.xmlhttp;delete this.open;c.objects--;return null}}]);
(function(){var a=FusionCharts(["private","modules.mantle.runtime;1.1"]);if(a!==void 0){var f=/(^|[\/\\])(fusioncharts\.js|fusioncharts\.debug\.js|fusioncharts\.core\.js|fusioncharts\.min\.js)([\?#].*)?$/ig;a.getScriptBaseUri=function(a){var b=document.getElementsByTagName("script"),e=b.length,i,c;for(c=0;c<e;c+=1)if(i=b[c].getAttribute("src"),!(i===void 0||i===null||i.match(a)===null))return i.replace(a,"$1")};a.core.options.scriptBaseUri=function(){var b=a.getScriptBaseUri(f);if(b===void 0)return a.raiseError(FusionCharts,
"1603111624","run",">GenericRuntime~scriptBaseUri","Unable to locate FusionCharts script source location (URL)."),"";return b}();var g=/[\\\"<>;&]/,h=/^[^\S]*?(sf|f|ht)(tp|tps):\/\//i,j=FusionChartsEvents.ExternalResourceLoad="externalresourceload",d={},o={},c={},b={};a.isXSSSafe=function(a,b){if(b&&h.exec(a)!==null)return!1;return g.exec(a)===null};a.loadScript=function(e,i,m,k,g){if(!e)return!1;var h=i&&i.success||i,t=i&&i.failure,f,x={type:"script",success:!1},w=function(){b[f]=clearTimeout(b[f]);
x.success?h&&h(e,f):t&&t(e,f);a.raiseEvent(j,x,a.core)},g=g?"":a.core.options.scriptBaseUri;f=g+e;a.isXSSSafe(f,!1)||(f=typeof window.encodeURIComponent==="function"?window.encodeURIComponent(f):window.escape(f));x.path=g;x.src=f;x.file=e;if(c[f]===!0&&k)return x.success=!0,x.notReloaded=!0,typeof i==="function"&&(i(),a.raiseEvent(j,x,a.core)),!0;if(d[f]&&k)return!1;d[f]=!0;o[f]&&o[f].parentNode&&o[f].parentNode.removeChild(o[f]);i=o[f]=document.createElement("script");i.type="text/javascript";i.src=
f;m&&(i.innerHTML=m);if(typeof h==="function")c[f]=!1,b[f]=clearTimeout(b[f]),i.onload=function(){c[f]=!0;x.success=!0;w()},i.onerror=function(){c[f]=!1;d[f]=!1;w()},i.onreadystatechange=function(){if(this.readyState==="complete"||this.readyState==="loaded")c[f]=!0,x.success=!0,w()};document.getElementsByTagName("head")[0].appendChild(i);typeof t==="function"&&(b[f]=setTimeout(function(){c[f]||w()},a.core.options.html5ResourceLoadTimeout||15E3));return!0};a.capitalizeString=function(a,b){return a?
a.replace(b?/(^|\s)([a-z])/g:/(^|\s)([a-z])/,function(a,b,e){return b+e.toUpperCase()}):a};var i=a.purgeDOM=function(a){var b=a.attributes,e,k;if(b)for(e=b.length-1;e>=0;e-=1)k=b[e].name,typeof a[k]==="function"&&(a[k]=null);if(b=a.childNodes){b=b.length;for(e=0;e<b;e+=1)i(a.childNodes[e])}},t=function(a,b,e){for(var i in a){var c;if(a[i]instanceof Array)b[a[i][0]]=e[i];else for(c in a[i])b[a[i][c][0]]=e[i][c]}},e=/[^\%\d]*$/ig,m=/^(FusionCharts|FusionWidgets|FusionMaps)/;a.extend(a.core,{dispose:function(){a.raiseEvent("BeforeDispose",
{},this);a.renderer.dispose(this);delete a.core.items[this.id];a.raiseEvent("Disposed",{},this);for(var b in this)delete this[b]},clone:function(b,e){var i=typeof b,c={},d=a.extend({},this.args,!1,!1);t(a.policies,d,this);t(a.renderer.getRendererPolicy(this.options.renderer),d,this);delete d.id;delete d.animate;delete d.stallLoad;c.link=d.link;d=a.extend({},d,!1,!1);d.link=c.link;switch(i){case "object":a.extend(d,b);break;case "boolean":e=b}return e?d:new a.core(d)},isActive:function(){if(!this.ref||
document.getElementById(this.id)!==this.ref||typeof this.ref.signature!=="function")return!1;try{return m.test(this.ref.signature())}catch(a){return!1}},resizeTo:function(b,i,c){var d={width:b,height:i};if(typeof b==="object")d.width=b.width,d.height=b.height,c=i;if(d.width&&typeof d.width.toString==="function")this.width=d.width.toString().replace(e,"");if(d.height&&typeof d.height.toString==="function")this.height=d.height.toString().replace(e,"");c!==!0&&a.renderer.resize(this,d)},chartType:function(a){var b=
this.src,e;if(typeof a==="string")this.src=a,this.isActive()&&this.render();return(e=(e=b.substring(b.indexOf(".swf"),0))?e:b).substring(e.lastIndexOf("/")+1).toLowerCase().replace(/^fcmap_/i,"")}},!0);window.getChartFromId=window.getMapFromId=function(b){a.raiseWarning(this,"11133001041","run","GenericRuntime~getObjectFromId()",'Use of deprecated getChartFromId() or getMapFromId(). Replace with "FusionCharts()" or FusionCharts.items[].');return a.core.items[b]instanceof a.core?a.core.items[b].ref:
window.swfobject.getObjectById(b)}}})();
(function(){var a=FusionCharts(["private","RendererManager"]);if(a!==void 0){a.policies.options.containerElementId=["renderAt",void 0];a.policies.options.renderer=["renderer",void 0];a.normalizeCSSDimension=function(a,i,c){var a=a===void 0?c.offsetWidth||parseFloat(c.style.width):a,i=i===void 0?c.offsetHeight||parseFloat(c.style.height):i,e;c.style.width=a=a.toString?a.toString():"0";c.style.height=i=i.toString?i.toString():"0";if(a.match(/^\s*\d*\.?\d*\%\s*$/)&&!a.match(/^\s*0\%\s*$/)&&c.offsetWidth===
0)for(e=c;e=e.offsetParent;)if(e.offsetWidth>0){a=(e.offsetWidth*parseFloat(a.match(/\d*/)[0])/100).toString();break}if(i.match(/^\s*\d*\.?\d*\%\s*$/)&&!i.match(/^\s*0\%\s*$/)&&c.offsetHeight<=20)for(e=c;e=e.offsetParent;)if(e.offsetHeight>0){i=(e.offsetHeight*parseFloat(i.match(/\d*/)[0])/100).toString();break}e={width:a.replace?a.replace(/^\s*(\d*\.?\d*)\s*$/ig,"$1px"):a,height:i.replace?i.replace(/^\s*(\d*\.?\d*)\s*$/ig,"$1px"):i};c.style.width=e.width;c.style.height=e.height;return e};var f=function(){a.raiseError(this,
"25081845","run","::RendererManager",Error("No active renderer"))},g={undefined:{render:f,remove:f,update:f,resize:f,config:f,policies:{}}},h={},j=a.renderer={register:function(b,i){if(!b||typeof b.toString!=="function")throw"#03091436 ~renderer.register() Invalid value for renderer name.";b=b.toString().toLowerCase();if(g[b]!==void 0)return a.raiseError(a.core,"03091438","param","::RendererManager>register",'Duplicate renderer name specified in "name"'),!1;g[b]=i;return!0},userSetDefault:!1,setDefault:function(b){if(!b||
typeof b.toString!=="function")return a.raiseError(a.core,"25081731","param","::RendererManager>setDefault",'Invalid renderer name specified in "name"'),!1;if(g[b=b.toString().toLowerCase()]===void 0)return a.raiseError(a.core,"25081733","range","::RendererManager>setDefault","The specified renderer does not exist."),!1;this.userSetDefault=!1;a.policies.options.renderer=["renderer",b];return!0},notifyRender:function(b){var i=a.core.items[b&&b.id];(!i||b.success===!1&&!b.silent)&&a.raiseError(a.core.items[b.id],
"25081850","run","::RendererManager",Error("There was an error rendering the chart. Enable FusionCharts JS debugMode for more information."));if(i.ref=b.ref)b.ref.FusionCharts=a.core.items[b.id];a.raiseEvent("internal.DOMElementCreated",b,i)},protectedMethods:{options:!0,attributes:!0,src:!0,ref:!0,constructor:!0,signature:!0,link:!0,addEventListener:!0,removeEventListener:!0},getRenderer:function(a){return g[a]},getRendererPolicy:function(a){a=g[a].policies;return typeof a==="object"?a:{}},currentRendererName:function(){return a.policies.options.renderer[1]},
update:function(a){h[a.id].update.apply(a,Array.prototype.slice.call(arguments,1))},render:function(a){h[a.id].render.apply(a,Array.prototype.slice.call(arguments,1))},remove:function(a){h[a.id].remove.apply(a,Array.prototype.slice.call(arguments,1))},resize:function(a){h[a.id].resize.apply(a,Array.prototype.slice.call(arguments,1))},config:function(a){h[a.id].config.apply(a,Array.prototype.slice.call(arguments,1))},dispose:function(a){h[a.id].dispose.apply(a,Array.prototype.slice.call(arguments,
1))}},d=function(b){return function(){if(this.ref===void 0||this.ref===null||typeof this.ref[b]!=="function")a.raiseError(this,"25081617","run","~"+b+"()","ExternalInterface call failed. Check whether chart has been rendered.");else return this.ref[b].apply(this.ref,arguments)}};a.addEventListener("BeforeInitialize",function(b){var b=b.sender,i;if(typeof b.options.renderer==="string"&&g[b.options.renderer.toLowerCase()]===void 0)b.options.renderer=a.policies.options.renderer[1];b.options.renderer=
b.options.renderer.toLowerCase();h[b.id]=g[b.options.renderer];if(h[b.id].initialized!==!0&&typeof h[b.id].init==="function")h[b.id].init(),h[b.id].initialized=!0;a.parsePolicies(b,h[b.id].policies||{},b.args);for(var c in h[b.id].prototype)b[c]=h[b.id].prototype[c];for(i in h[b.id].events)b.addEventListener(i,h[b.id].events[i])});a.addEventListener("Loaded",function(b){var i=b.sender,b=b.sender.ref;i instanceof a.core&&delete i.__state.rendering;if(!(b===void 0||b===null||typeof b.getExternalInterfaceMethods!==
"function")){var c;try{c=b.getExternalInterfaceMethods(),c=typeof c==="string"?c.split(","):[]}catch(e){c=[],a.raiseError(i,"13111126041","run","RendererManager^Loaded",Error("Error while retrieving data from the chart-object."+(e.message&&e.message.indexOf("NPObject")>=0?" Possible cross-domain security restriction.":"")))}for(b=0;b<c.length;b+=1)i[c[b]]===void 0&&(i[c[b]]=d(c[b]))}});var o=function(a,i){if(typeof a[i]==="function")return function(){return a[i].apply(a,arguments)};return a[i]};a.addEventListener("loaded",
function(b){var i=b.sender;if(i.ref){var c=a.renderer.protectedMethods,e=a.renderer.getRenderer(i.options.renderer).protectedMethods,d;for(d in b.sender)if(e&&!c[d]&&!(e[d]||i.ref[d]!==void 0))try{i.ref[d]=o(b.sender,d)}catch(f){}}});var c=function(a,i){var c=document.getElementById(a),e=i.getAttribute("id");if(c===null)return!1;if(a===e)return!0;for(var e=i.getElementsByTagName("*"),d=0;d<e.length;d+=1)if(e[d]===c)return!1;return!0};a.extend(a.core,{render:function(b){var i,d;((i=window[this.id])&&
i.FusionCharts&&i.FusionCharts===this||(i=this.ref)&&i.FusionCharts&&i.FusionCharts===this)&&a.renderer.dispose(this);window[this.id]!==void 0&&a.raiseError(this,"25081843","comp",".render",Error("#25081843:IECompatibility() Chart Id is same as a JavaScript variable name. Variable naming error. Please use unique name for chart JS variable, chart-id and container id."));d=this.options.insertMode.toLowerCase()||"replace";if(b===void 0)b=this.options.containerElementId;typeof b==="string"&&(b=document.getElementById(b));
if(b===void 0||b===null)return a.raiseError(this,"03091456","run",".render()",Error("Unable to find the container DOM element.")),this;if(c(this.id,b))return a.raiseError(this,"05102109","run",".render()",Error("A duplicate object already exists with the specific Id: "+this.id)),this;i=document.createElement(this.options.containerElementType||"span");i.setAttribute("id",this.id);if(d!=="append"&&d!=="prepend")for(;b.hasChildNodes();)b.removeChild(b.firstChild);d==="prepend"&&b.firstChild?b.insertBefore(i,
b.firstChild):b.appendChild(i);this.options.containerElement=b;this.options.containerElementId=b.id;if(d=i.style)d.position="relative",d.textAlign="left",d.lineHeight="100%",d.display="inline-block",d.zoom="1",d.fontWeight="normal",d.fontVariant="normal",d.fontStyle="normal",d.textDecoration="none",d["*DISPLAY"]="inline";a.normalizeCSSDimension(this.width,this.height,i);this.__state.rendering=!0;a.raiseEvent("BeforeRender",{container:b,width:this.width,height:this.height,renderer:this.options.renderer},
this);a.renderer.render(this,i,a.renderer.notifyRender);return this},remove:function(){a.renderer.remove(this);return this},configure:function(b,i){var c;b&&(typeof b==="string"?(c={},c[b]=i):c=b,a.renderer.config(this,c))}},!0);a.extend(a.core,{setCurrentRenderer:function(){var a=j.setDefault.apply(j,arguments);j.userSetDefault=!0;return a},getCurrentRenderer:function(){return j.currentRendererName.apply(j,arguments)},render:function(){var b=["swfUrl","id","width","height","renderAt","dataSource",
"dataFormat"],i={},c;if(arguments[0]instanceof a.core)return arguments[0].render(),arguments[0];for(c=0;c<arguments.length&&c<b.length;c+=1)i[b[c]]=arguments[c];typeof arguments[arguments.length-1]==="object"&&(delete i[b[c-1]],a.extend(i,arguments[arguments.length-1]));if(i.dataFormat===void 0)i.dataFormat=FusionChartsDataFormats.XMLURL;return(new a.core(i)).render()}},!1)}})();
(function(){var a=FusionCharts(["private","DataHandlerManager"]);if(a!==void 0){window.FusionChartsDataFormats={};var f=a.transcoders={},g={},h={},j=/url$/i,d=function(b,c,d,e){var m=!1,f=d.obj,g=d.format,d=d.silent;a.raiseEvent("DataLoadRequestCompleted",{source:"XmlHttpRequest",url:e,data:b,dataFormat:g,cancelDataLoad:function(){m=!0;c.abort();this.cancelDataLoad=function(){return!1};return!0},xmlHttpRequestObject:c.xhr},f);m!==!0?f.setChartData(b,g,d):a.raiseEvent("DataLoadCancelled",{source:"XmlHttpRequest",
url:e,dataFormat:g,xmlHttpRequestObject:c.xhr},f)},o=function(b,c,d,e){d=d.obj;b={source:"XmlHttpRequest",url:e,xmlHttpRequestObject:c.xhr,error:b,httpStatus:c.xhr&&c.xhr.status?c.xhr.status:-1};a.raiseEvent("DataLoadError",b,d);typeof window.FC_DataLoadError==="function"&&window.FC_DataLoadError(d.id,b)};a.policies.options.dataSource=["dataSource",void 0];a.policies.options.dataFormat=["dataFormat",void 0];a.policies.options.dataConfiguration=["dataConfiguration",void 0];a.policies.options.showDataLoadingMessage=
["showDataLoadingMessage",!0];a.addDataHandler=function(b,c){if(typeof b!=="string"||f[b.toLowerCase()]!==void 0)a.raiseError(a.core,"03091606","param","::DataManager.addDataHandler",Error("Invalid Data Handler Name"));else{var d={},e=b.toLowerCase();f[e]=c;c.name=b;d["set"+b+"Url"]=function(a){return this.setChartDataUrl(a,b)};d["set"+b+"Data"]=function(a,e){return this.setChartData(a,b,!1,e)};d["get"+b+"Data"]=function(){return this.getChartData(b)};window.FusionChartsDataFormats[b]=e;window.FusionChartsDataFormats[b+
"URL"]=e+"URL";a.extend(a.core,d,!0)}};a.addEventListener("BeforeInitialize",function(a){var a=a.sender,c=a.options.dataSource;g[a.id]="";h[a.id]={};if(c!==void 0&&c!==null){a.__state.dataSetDuringConstruction=!0;if(typeof a.options.dataFormat!=="string")switch(typeof c){case "function":c=a.options.dataSource=c(a);a.options.dataFormat="JSON";break;case "string":a.options.dataFormat=/^\s*?\{[\s\S]*\}\s*?$/g.test(a.options.dataFormat)?"JSON":"XML";break;case "object":a.options.dataFormat="JSON"}a.setChartData(c,
a.options.dataFormat)}});a.addEventListener("BeforeDispose",function(a){var c=a.sender;delete g[a.sender.id];delete h[a.sender.id];c&&c.__state&&c.__state.dhmXhrObj&&c.__state.dhmXhrObj.abort()});a.extend(a.core,{setChartDataUrl:function(b,c,f){if(c===void 0||c===null||typeof c.toString!=="function")a.raiseError(a.core,"03091609","param",".setChartDataUrl",Error("Invalid Data Format"));else{var c=c.toString().toLowerCase(),e,m=this,g=m.options&&m.options.renderer==="flash"&&m.options.useLegacyXMLTransport||
!1;j.test(c)?e=c.slice(0,-3):(e=c,c+="url");a.raiseEvent("DataLoadRequested",{source:"XmlHttpRequest",url:b,dataFormat:e,cancelDataLoadRequest:function(){g=!0;a.raiseEvent("DataLoadRequestCancelled",{source:"XmlHttpRequest",url:b,dataFormat:e},m);try{this.__state&&this.__state.dhmXhrObj&&this.__state.dhmXhrObj.abort()}catch(c){}this.cancelDataLoadRequest=function(){return!1};return!0}},m);if(g){if(this.__state&&this.__state.dhmXhrObj)try{this.__state.dhmXhrObj.abort()}catch(h){}}else{this.options.dataSource=
b;if(!this.__state.dhmXhrObj)this.__state.dhmXhrObj=new a.ajax(d,o);this.__state.dhmXhrObj.get(typeof window.decodeURIComponent==="function"?window.decodeURIComponent(b):window.unescape(b),{obj:this,format:e,silent:f})}}},setChartData:function(b,c,d){if(c===void 0||c===null||typeof c.toString!=="function")a.raiseError(a.core,"03091610","param",".setChartData",Error("Invalid Data Format"));else{var c=c.toString().toLowerCase(),e;if(j.test(c))this.setChartDataUrl(b,c,d);else{this.options.dataSource=
b;e=c;this.options.dataFormat=c;var c=f[e],m=!1;if(typeof c==="undefined")a.raiseError(a.core,"03091611","param",".setChartData",Error("Data Format not recognized"));else if(c=c.encode(b,this,this.options.dataConfiguration)||{},c.format=c.dataFormat=e,c.dataSource=b,c.cancelDataUpdate=function(){m=!0;this.cancelDataUpdate=function(){return!1};return!0},a.raiseEvent("BeforeDataUpdate",c,this),delete c.cancelDataUpdate,m===!0)a.raiseEvent("DataUpdateCancelled",c,this);else{g[this.id]=c.data||"";h[this.id]=
{};if(d!==!0)this.options.safeMode===!0&&this.__state.rendering===!0&&!this.isActive()?(this.__state.updatePending=c,a.raiseWarning(this,"23091255","run","::DataHandler~update","Renderer update was postponed due to async loading.")):(delete this.__state.updatePending,a.renderer.update(this,c));this.__state.dataReady=void 0;a.raiseEvent("DataUpdated",c,this)}}}},getChartData:function(b,c){var e;var d;if(b===void 0||typeof b.toString!=="function"||(d=f[b=b.toString().toLowerCase()])===void 0)a.raiseError(this,
"25081543","param","~getChartData()",Error('Unrecognized data-format specified in "format"'));else return e=typeof h[this.id][b]==="object"?h[this.id][b]:h[this.id][b]=d.decode(g[this.id],this,this.options.dataConfiguration),d=e,Boolean(c)===!0?d:d.data},dataReady:function(){return this.__state.dataReady}},!0);a.extend(a.core,{transcodeData:function(b,c,d,e,m){if(!c||typeof c.toString!=="function"||!d||typeof d.toString!=="function"||f[d=d.toString().toLowerCase()]===void 0||f[c=c.toString().toLowerCase()]===
void 0)a.raiseError(this,"14090217","param","transcodeData()",Error("Unrecognized data-format specified during transcoding."));else{b=f[c].encode(b,this,m);d=f[d].decode(b.data,this,m);if(!(d.error instanceof Error))d.error=b.error;return e?d:d.data}}},!1);a.addEventListener("Disposed",function(a){delete h[a.sender.id]});a.addEventListener("Loaded",function(b){b=b.sender;b instanceof a.core&&b.__state.updatePending!==void 0&&(a.renderer.update(b,b.__state.updatePending),delete b.__state.updatePending)});
a.addEventListener("NoDataToDisplay",function(a){a.sender.__state.dataReady=!1});var c=a._interactiveCharts={selectscatter:[!0,!1],dragcolumn2d:[!0,!0],dragarea:[!0,!0],dragline:[!0,!0],dragnode:[!0,!0]};a.addEventListener("Loaded",function(b){var b=b.sender,d=b.__state,f,e;if(b.chartType&&c[b.chartType()]&&c[b.chartType()][0]){for(f in a.transcoders)e=a.transcoders[f].name,e="get"+e+"Data",b[e]=function(e,b){return function(c){return c===!1?b.apply(this):this.ref.getUpdatedXMLData?a.core.transcodeData(this.ref.getUpdatedXMLData(),
"xml",e):this.getData?this.getData(e):b.apply(this)}}(f,b.constructor.prototype[e]),b[e]._dynamicdatarouter=!0;d.dynamicDataRoutingEnabled=!0}else if(d.dynamicDataRoutingEnabled){for(f in a.transcoders)e=a.transcoders[f].name,e="get"+e+"Data",b.hasOwnProperty(e)&&b[e]._dynamicdatarouter&&delete b[e];d.dynamicDataRoutingEnabled=!1}})}})();
var swfobject=window.swfobject=function(){function a(){if(!D){try{var a=n.getElementsByTagName("body")[0].appendChild(n.createElement("span"));a.parentNode.removeChild(a)}catch(e){return}D=!0;for(var a=E.length,b=0;b<a;b++)E[b]()}}function f(a){D?a():E[E.length]=a}function g(a){if(typeof w.addEventListener!=v)w.addEventListener("load",a,!1);else if(typeof n.addEventListener!=v)n.addEventListener("load",a,!1);else if(typeof w.attachEvent!=v)u(w,"onload",a);else if(typeof w.onload=="function"){var e=
w.onload;w.onload=function(){e();a()}}else w.onload=a}function h(){var a=n.getElementsByTagName("body")[0],e=n.createElement(y);e.setAttribute("type",B);var b=a.appendChild(e);if(b){var c=0;(function(){if(typeof b.GetVariable!=v){var d;try{d=b.GetVariable("$version")}catch(k){}if(d)d=d.split(" ")[1].split(","),q.pv=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)]}else if(c<10){c++;setTimeout(arguments.callee,10);return}try{a.removeChild(e);}catch(k){}b=null;j()})()}else j()}function j(){var a=s.length;if(a>
0)for(var e=0;e<a;e++){var i=s[e].id,f=s[e].callbackFn,g=s[e].userData||{};g.success=!1;g.id=i;if(q.pv[0]>0){var h=m(i);if(h)if(l(s[e].swfVersion)&&!(q.wk&&q.wk<312)){if(k(i,!0),f)g.success=!0,g.ref=d(i),f(g)}else if(s[e].expressInstall&&o()){g={};g.data=s[e].expressInstall;g.width=h.getAttribute("width")||"0";g.height=h.getAttribute("height")||"0";if(h.getAttribute("class"))g.styleclass=h.getAttribute("class");if(h.getAttribute("align"))g.align=h.getAttribute("align");for(var u={},h=h.getElementsByTagName("param"),
j=h.length,p=0;p<j;p++)h[p].getAttribute("name").toLowerCase()!="movie"&&(u[h[p].getAttribute("name")]=h[p].getAttribute("value"));c(g,u,i,f)}else b(h),f&&f(g)}else if(k(i,!0),f){if((i=d(i))&&typeof i.SetVariable!=v)g.success=!0,g.ref=i;f(g)}}}function d(a){var e,b=null;if(!document.embeds||!(e=document.embeds[a]))if(!((e=m(a))&&e.nodeName=="OBJECT"))e=window[a];if(!e)return b;typeof e.SetVariable!=v?b=e:(a=e.getElementsByTagName(y)[0])&&(b=a);return b}function o(){return!H&&l("6.0.65")&&(q.win||
q.mac)&&!(q.wk&&q.wk<312)}function c(a,e,b,c){H=!0;K=c||null;M={success:!1,id:b};var d=m(b);if(d){d.nodeName=="OBJECT"?(G=i(d),I=null):(G=d,I=b);a.id=x;if(typeof a.width==v||!/%$/.test(a.width)&&parseInt(a.width,10)<310)a.width="310";if(typeof a.height==v||!/%$/.test(a.height)&&parseInt(a.height,10)<137)a.height="137";n.title=n.title.slice(0,47)+" - Flash Player Installation";c=q.ie&&q.win?"ActiveX":"PlugIn";c="MMredirectURL="+w.location.toString().replace(/&/g,"%26")+"&MMplayerType="+c+"&MMdoctitle="+
n.title;typeof e.flashvars!=v?e.flashvars+="&"+c:e.flashvars=c;if(q.ie&&q.win&&d.readyState!=4)c=n.createElement("div"),b+="SWFObjectNew",c.setAttribute("id",b),d.parentNode.insertBefore(c,d),d.style.display="none",function(){d.readyState==4?d.parentNode.removeChild(d):setTimeout(arguments.callee,10)}();t(a,e,b)}}function b(a){if(q.ie&&q.win&&a.readyState!=4){var e=n.createElement("div");a.parentNode.insertBefore(e,a);e.parentNode.replaceChild(i(a),e);a.style.display="none";(function(){a.readyState==
4?a.parentNode.removeChild(a):setTimeout(arguments.callee,10)})()}else a.parentNode.replaceChild(i(a),a)}function i(a){var e=n.createElement("div");if(q.win&&q.ie)e.innerHTML=a.innerHTML;else if(a=a.getElementsByTagName(y)[0])if(a=a.childNodes)for(var b=a.length,c=0;c<b;c++)!(a[c].nodeType==1&&a[c].nodeName=="PARAM")&&a[c].nodeType!=8&&e.appendChild(a[c].cloneNode(!0));return e}function t(a,e,b){var c,b=m(b);if(q.wk&&q.wk<312)return c;if(b){if(typeof a.id==v)a.id=b.id;if(q.ie&&q.win){var d="",i;for(i in a)if(a[i]!=
Object.prototype[i])i.toLowerCase()=="data"?e.movie=a[i]:i.toLowerCase()=="styleclass"?d+=' class="'+a[i]+'"':i.toLowerCase()!="classid"&&(d+=" "+i+'="'+a[i]+'"');i="";for(var k in e)e[k]!=Object.prototype[k]&&(i+='<param name="'+k+'" value="'+e[k]+'" />');b.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+d+">"+i+"</object>";J[J.length]=a.id;c=m(a.id)}else{k=n.createElement(y);k.setAttribute("type",B);for(var g in a)a[g]!=Object.prototype[g]&&(g.toLowerCase()=="styleclass"?
k.setAttribute("class",a[g]):g.toLowerCase()!="classid"&&k.setAttribute(g,a[g]));for(d in e)e[d]!=Object.prototype[d]&&d.toLowerCase()!="movie"&&(a=k,i=d,g=e[d],c=n.createElement("param"),c.setAttribute("name",i),c.setAttribute("value",g),a.appendChild(c));b.parentNode.replaceChild(k,b);c=k}}return c}function e(a){var e=m(a);if(e&&e.nodeName=="OBJECT")q.ie&&q.win?(e.style.display="none",function(){if(e.readyState==4){var b=m(a);if(b){for(var c in b)typeof b[c]=="function"&&(b[c]=null);b.parentNode.removeChild(b)}}else setTimeout(arguments.callee,
10)}()):e.parentNode.removeChild(e)}function m(a){var e=null;try{e=n.getElementById(a)}catch(b){}return e}function u(a,e,b){a.attachEvent(e,b);F[F.length]=[a,e,b]}function l(a){var e=q.pv,a=a.split(".");a[0]=parseInt(a[0],10);a[1]=parseInt(a[1],10)||0;a[2]=parseInt(a[2],10)||0;return e[0]>a[0]||e[0]==a[0]&&e[1]>a[1]||e[0]==a[0]&&e[1]==a[1]&&e[2]>=a[2]?!0:!1}function r(a,e,b,c){if(!q.ie||!q.mac){var d=n.getElementsByTagName("head")[0];if(d){b=b&&typeof b=="string"?b:"screen";c&&(L=C=null);if(!C||L!=
b)c=n.createElement("style"),c.setAttribute("type","text/css"),c.setAttribute("media",b),C=d.appendChild(c),q.ie&&q.win&&typeof n.styleSheets!=v&&n.styleSheets.length>0&&(C=n.styleSheets[n.styleSheets.length-1]),L=b;q.ie&&q.win?C&&typeof C.addRule==y&&C.addRule(a,e):C&&typeof n.createTextNode!=v&&C.appendChild(n.createTextNode(a+" {"+e+"}"))}}}function k(a,e){if(N){var b=e?"visible":"hidden";D&&m(a)?m(a).style.visibility=b:r("#"+a,"visibility:"+b)}}function p(a){return/[\\\"<>\.;]/.exec(a)!=null&&
typeof encodeURIComponent!=v?encodeURIComponent(a):a}var v="undefined",y="object",B="application/x-shockwave-flash",x="SWFObjectExprInst",w=window,n=document,A=navigator,z=!1,E=[function(){z?h():j()}],s=[],J=[],F=[],G,I,K,M,D=!1,H=!1,C,L,N=!0,q=function(){var a=typeof n.getElementById!=v&&typeof n.getElementsByTagName!=v&&typeof n.createElement!=v,e=A.userAgent.toLowerCase(),b=A.platform.toLowerCase(),c=b?/win/.test(b):/win/.test(e),b=b?/mac/.test(b):/mac/.test(e),e=/webkit/.test(e)?parseFloat(e.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,
"$1")):!1,d=!+"\u000b1",i=[0,0,0],k=null;if(typeof A.plugins!=v&&typeof A.plugins["Shockwave Flash"]==y){if((k=A.plugins["Shockwave Flash"].description)&&!(typeof A.mimeTypes!=v&&A.mimeTypes[B]&&!A.mimeTypes[B].enabledPlugin))z=!0,d=!1,k=k.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),i[0]=parseInt(k.replace(/^(.*)\..*$/,"$1"),10),i[1]=parseInt(k.replace(/^.*\.(.*)\s.*$/,"$1"),10),i[2]=/[a-zA-Z]/.test(k)?parseInt(k.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}else if(typeof w.ActiveXObject!=v)try{var g=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
if(g){try{k=g.GetVariable("$version")}catch(f){}k&&(d=!0,k=k.split(" ")[1].split(","),i=[parseInt(k[0],10),parseInt(k[1],10),parseInt(k[2],10)])}}catch(h){}return{w3:a,pv:i,wk:e,ie:d,win:c,mac:b}}();(function(){q.w3&&((typeof n.readyState!=v&&n.readyState=="complete"||typeof n.readyState==v&&(n.getElementsByTagName("body")[0]||n.body))&&a(),D||(typeof n.addEventListener!=v&&n.addEventListener("DOMContentLoaded",a,!1),q.ie&&q.win&&(n.attachEvent("onreadystatechange",function(){n.readyState=="complete"&&
(n.detachEvent("onreadystatechange",arguments.callee),a())}),w==top&&function(){if(!D){try{n.documentElement.doScroll("left")}catch(e){setTimeout(arguments.callee,0);return}a()}}()),q.wk&&function(){D||(/loaded|complete/.test(n.readyState)?a():setTimeout(arguments.callee,0))}(),g(a)))})();(function(){q.ie&&q.win&&window.attachEvent("onunload",function(){for(var a=F.length,b=0;b<a;b++)F[b][0].detachEvent(F[b][1],F[b][2]);a=J.length;for(b=0;b<a;b++)e(J[b]);for(var c in q)q[c]=null;q=null;for(var d in swfobject)swfobject[d]=
null;swfobject=null})})();return{FusionChartsModified:!0,registerObject:function(a,e,b,c,d){var i=d||{};if(q.w3&&a&&e)i.id=a,i.swfVersion=e,i.expressInstall=b,i.callbackFn=c,i.userData=d,s[s.length]=i,k(a,!1);else if(c)i.success=!1,i.id=a,c(i)},getObjectById:function(a){if(q.w3)return d(a)},embedSWF:function(a,e,b,d,i,g,h,m,u,j,p){var r=p||{};r.success=!1;r.id=e;q.w3&&!(q.wk&&q.wk<312)&&a&&e&&b&&d&&i?(k(e,!1),f(function(){b+="";d+="";var f={};if(u&&typeof u===y)for(var p in u)f[p]=u[p];f.data=a;f.width=
b;f.height=d;p={};if(m&&typeof m===y)for(var n in m)p[n]=m[n];if(h&&typeof h===y)for(var q in h)typeof p.flashvars!=v?p.flashvars+="&"+q+"="+h[q]:p.flashvars=q+"="+h[q];if(l(i))n=t(f,p,e),f.id==e&&k(e,!0),r.success=!0,r.ref=n;else if(g&&o()){f.data=g;c(f,p,e,j);return}else k(e,!0);j&&j(r)})):j&&j(r)},switchOffAutoHideShow:function(){N=!1},ua:q,getFlashPlayerVersion:function(){return{major:q.pv[0],minor:q.pv[1],release:q.pv[2]}},hasFlashPlayerVersion:l,createSWF:function(a,e,b){if(q.w3)return t(a,
e,b)},showExpressInstall:function(a,e,b,d){q.w3&&o()&&c(a,e,b,d)},removeSWF:function(a){q.w3&&e(a)},createCSS:function(a,e,b,c){q.w3&&r(a,e,b,c)},addDomLoadEvent:f,addLoadEvent:g,getQueryParamValue:function(a){var e=n.location.search||n.location.hash;if(e){/\?/.test(e)&&(e=e.split("?")[1]);if(a==null)return p(e);for(var e=e.split("&"),b=0;b<e.length;b++)if(e[b].substring(0,e[b].indexOf("="))==a)return p(e[b].substring(e[b].indexOf("=")+1))}return""},expressInstallCallback:function(){if(H){var a=m(x);
if(a&&G){a.parentNode.replaceChild(G,a);if(I&&(k(I,!0),q.ie&&q.win))G.style.display="block";K&&K(M)}H=!1}}}}();
FusionCharts(["private","modules.renderer.flash",function(){var a=this,f=window,g=document,h=function(a){return typeof a==="function"},j=f.encodeURIComponent?function(a){return f.encodeURIComponent(a)}:function(a){return f.escape(a)};try{a.swfobject=f.swfobject,f.swfobject.createCSS("object.FusionCharts:focus, embed.FusionCharts:focus","outline: none")}catch(d){}a.core.options.requiredFlashPlayerVersion="8";a.core.options.flashInstallerUrl="http://get.adobe.com/flashplayer/";a.core.options.installRedirectMessage=
"You need Adobe Flash Player 8 (or above) to view the charts on this page. It is a free, lightweight and safe installation from Adobe Systems Incorporated.\n\nWould you like to go to Adobe's website and install Flash Player?";a.core.hasRequiredFlashVersion=function(e){if(typeof e==="undefined")e=a.core.options.requiredFlashPlayerVersion;return f.swfobject?f.swfobject.hasFlashPlayerVersion(e):void 0};var o=!1,c=/.*?\%\s*?$/g,b={chartWidth:!0,chartHeight:!0,mapWidth:!0,mapHeight:!0},i=function(e,b){if(!(b&&
b.source==="XmlHttpRequest")){var c=e.sender;if(c.ref&&h(c.ref.dataInvokedOnSWF)&&c.ref.dataInvokedOnSWF()&&h(c.ref.getXML))a.raiseWarning(c,"08300116","run","::DataHandler~__fusioncharts_vars","Data was set in UTF unsafe manner"),c.setChartData(f.unescape(e.sender.ref.getXML({escaped:!0})),FusionChartsDataFormats.XML,!0),c.flashVars.dataXML=c.getChartData(FusionChartsDataFormats.XML),delete c.flashVars.dataURL;e.sender.removeEventListener("DataLoaded",i)}};f.__fusioncharts_dimension=function(){return function(e){var b,
d;return!((b=a.core(e))instanceof a.core&&b.ref&&(d=b.ref.parentNode))?{}:{width:d.offsetWidth*(c.test(b.width)?parseInt(b.width,10)/100:1),height:d.offsetHeight*(c.test(b.height)?parseInt(b.height,10)/100:1)}}}();f.__fusioncharts_vars=function(e,b){var c=a.core.items[e];if(!(c instanceof a.core))return setTimeout(function(){var b;if(b=e!==void 0){var c=f.swfobject.getObjectById(e),d,i,g;b={};var m;if(!c&&typeof c.tagName!=="string")b=void 0;else{if((d=c.parentNode)&&d.tagName&&d.tagName.toLowerCase()===
"object"&&d.parentNode)d=d.parentNode;if(d){b.renderAt=d;if(!(c.tagName.toLowerCase()!=="object"&&c.getAttribute&&(m=c.getAttribute("flashvars")||""))&&c.hasChildNodes&&c.hasChildNodes()){g=c.childNodes;d=0;for(c=g.length;d<c;d+=1)if(g[d].tagName==="PARAM"&&(i=g[d].getAttribute("name"))&&i.toLowerCase()==="flashvars")m=g[d].getAttribute("value")||""}if(m&&h(m.toString)){m=m.split(/\=|&/g);b.flashVars={};d=0;for(c=m.length;d<c;d+=2)b.flashVars[m[d]]=m[d+1]}}else b=void 0}}b||a.raiseError(a.core,"25081621",
"run","::FlashRenderer","FusionCharts Flash object is accessing flashVars of non-existent object.")},0),!1;if(typeof b==="object"){if(c.ref&&h(c.ref.dataInvokedOnSWF)&&c.ref.dataInvokedOnSWF()){if(b.dataURL!==void 0)c.addEventListener("DataLoaded",i);else if(b.dataXML!==void 0)b.dataXML=f.unescape(b.dataXML);c.__state.flashUpdatedFlashVars=!0}else delete b.dataURL,delete b.dataXML;a.extend(c.flashVars,b);return!0}if(c.__state.dataSetDuringConstruction&&c.flashVars.dataXML===void 0&&c.options.dataSource!==
void 0&&typeof c.options.dataFormat==="string")c.flashVars.dataXML=c.options.dataSource;c.__state.flashInvokedFlashVarsRequest=!0;return c.flashVars};f.__fusioncharts_event=function(e,b){setTimeout(function(){a.raiseEvent(e.type,b,a.core.items[e.sender])},0)};var t=function(e){e=e.sender;if(e.options.renderer==="flash"){if(e.width===void 0)e.width=a.renderer.policies.flashVars.chartWidth[1];if(e.height===void 0)e.height=a.renderer.policies.flashVars.chartHeight[1];if(e.flashVars.DOMId===void 0)e.flashVars.DOMId=
e.id;a.extend(e.flashVars,{registerWithJS:"1",chartWidth:e.width,chartHeight:e.height,InvalidXMLText:"Invalid data."});if(Boolean(e.options.autoInstallRedirect)===!0&&!f.swfobject.hasFlashPlayerVersion(a.core.options.requiredFlashPlayerVersion.toString())&&o===!1&&(o=!0,a.core.options.installRedirectMessage&&f.confirm(a.core.options.installRedirectMessage)))f.location.href=a.core.options.flashInstallerUrl;if(e.options.dataFormat===void 0&&e.options.dataSource===void 0)e.options.dataFormat=FusionChartsDataFormats.XMLURL,
e.options.dataSource="Data.xml"}};a.renderer.register("flash",{dataFormat:"xml",init:function(){a.addEventListener("BeforeInitialize",t)},policies:{params:{scaleMode:["scaleMode","noScale"],scale:["scaleMode","noScale"],wMode:["wMode","opaque"],menu:["menu",void 0],bgColor:["backgroundColor","#ffffff"],allowScriptAccess:["allowScriptAccess","always"],quality:["quality","best"],swLiveConnect:["swLiveConnect",void 0],base:["base",void 0],align:["align",void 0],salign:["sAlign",void 0]},flashVars:{lang:["lang",
"EN"],debugMode:["debugMode",void 0],scaleMode:["scaleMode","noScale"],animation:["animate",void 0]},options:{autoInstallRedirect:["autoInstallRedirect",!1],useLegacyXMLTransport:["_useLegacyXMLTransport",!1]}},render:function(e,c){Boolean(this.flashVars.animation)===!0&&delete this.flashVars.animation;this.src||a.raiseError(this,"03102348","run","::FlashRenderer.render",'Could not find a valid "src" attribute. swfUrl or chart type missing.');var d={},i=this.flashVars.dataXML,g=this.flashVars.dataURL,
k,h;a.extend(d,this.flashVars);if(this.flashVars.stallLoad===!0){if(this.options.dataFormat===FusionChartsDataFormats.XML)i=this.options.dataSource;if(this.options.dataFormat===FusionChartsDataFormats.XMLURL)g=this.options.dataSource}if(a.core.debugMode.enabled()&&a.core.debugMode.syncStateWithCharts&&d.debugMode===void 0&&this.options.safeMode)d.debugMode="1";this.__state.lastRenderedSrc=this.src;d.dataXML=j(i)||"";d.dataURL=a.isXSSSafe(g)?g||"":j(g)||"";for(k in b)d.hasOwnProperty(k)&&(d[k]=j(d[k]));
if(!f.swfobject||!f.swfobject.embedSWF||!f.swfobject.FusionChartsModified)f.swfobject=a.swfobject;o&&!a.core.options.installRedirectMessage&&(h={silent:!0});f.swfobject&&f.swfobject.embedSWF?f.swfobject.embedSWF(this.src,e.id,this.width,this.height,a.core.options.requiredFlashPlayerVersion,void 0,d,this.params,this.attributes,c,h):a.raiseError(this,"1113061611","run","FlashRenderer~render",Error("Could not find swfobject library or embedSWF API"))},update:function(a){var b=this.ref,c=a.data;this.flashVars.dataXML=
c;a.error===void 0?this.isActive()&&h(b.setDataXML)?this.src!==this.__state.lastRenderedSrc?this.render():b.setDataXML(c,!1):(delete this.flashVars.dataURL,delete this.flashVars.animation):this.isActive()&&h(b.showChartMessage)?b.showChartMessage("InvalidXMLText"):(this.flashVars.dataXML="<Invalid"+a.format.toUpperCase()+">",delete this.flashVars.dataURL,delete this.flashVars.animation)},resize:function(){this.flashVars.chartWidth=this.width;this.flashVars.chartHeight=this.height;if(this.ref!==void 0)this.ref.width=
this.width,this.ref.height=this.height,h(this.ref.resize)&&this.ref.resize(this.ref.offsetWidth,this.ref.offsetHeight)},config:function(e){a.extend(this.flashVars,e)},dispose:function(){var a;f.swfobject.removeSWF(this.id);(a=this.ref)&&a.parentNode&&a.parentNode.removeChild(a)},protectedMethods:{flashVars:!0,params:!0,setDataXML:!0,setDataURL:!0,hasRendered:!0,getXML:!0,getDataAsCSV:!0,print:!0,exportChart:!0},events:{Loaded:function(a){a.sender.flashVars.animation="0"},DataLoadRequested:function(e,
b){var c=e.sender,d=b.url,g=!1;if(b.dataFormat===FusionChartsDataFormats.XML&&(f.location.protocol==="file:"&&Boolean(c.options.safeMode)||Boolean(c.options.useLegacyXMLTransport)))c.ref?c.ref.setDataURL?c.ref.setDataURL(d,!1):a.raiseError(this,"0109112330","run",">FlashRenderer^DataLoadRequested",Error("Unable to fetch URL due to security restriction on Flash Player. Update global security settings.")):c.flashVars.dataURL=d,e.stopPropagation(),g=!0,b.cancelDataLoadRequest(),c.addEventListener("DataLoaded",
i);if(c.ref&&c.showChartMessage)delete c.flashVars.stallLoad,c.options.showDataLoadingMessage&&c.ref.showChartMessage("XMLLoadingText");else if(!g)c.flashVars.stallLoad=!0},DataLoadRequestCancelled:function(a){a=a.sender;a.ref&&h(a.showChartMessage)&&a.ref.showChartMessage();delete a.flashVars.stallLoad},DataLoadError:function(a,b){var c=a.sender;c.ref&&h(c.ref.showChartMessage)&&b.source==="XmlHttpRequest"?c.ref.showChartMessage("LoadDataErrorText"):(delete c.flashVars.dataURL,c.flashVars.dataXML=
"<JSON parsing error>",delete c.flashVars.stallLoad)},DataLoadRequestCompleted:function(a,b){b.source==="XmlHttpRequest"&&delete a.sender.flashVars.stallLoad}},prototype:{getSWFHTML:function(){var a=g.createElement("span"),b=g.createElement("span"),c="RnVzaW9uQ2hhcnRz"+(new Date).getTime();a.appendChild(b);b.setAttribute("id",c);a.style.display="none";g.getElementsByTagName("body")[0].appendChild(a);f.swfobject.embedSWF(this.src,c,this.width,this.height,"8.0.0",void 0,this.flashVars,this.params,this.attrs);
b=a.innerHTML.replace(c,this.id);f.swfobject.removeSWF(c);a.parentNode.removeChild(a);return b},setTransparent:function(a){typeof a!=="boolean"&&a!==null&&(a=!0);this.params.wMode=a===null?"window":a===!0?"transparent":"opaque"},registerObject:function(){},addVariable:function(){a.raiseWarning(this,"1012141919","run","FlashRenderer~addVariable()",'Use of deprecated "addVariable()". Replace with "configure()".');a.core.prototype.configure.apply(this,arguments)},setDataXML:function(b){a.raiseWarning(this,
"11033001081","run","GenericRuntime~setDataXML()",'Use of deprecated "setDataXML()". Replace with "setXMLData()".');b===void 0||b===null||!h(b.toString)?a.raiseError(this,"25081627","param","~setDataXML",'Invalid data type for parameter "xml"'):this.ref===void 0||this.ref===null||!h(this.ref.setDataXML)?this.setChartData(b.toString(),FusionChartsDataFormats.XML):this.ref.setDataXML(b.toString())},setDataURL:function(b){a.raiseWarning(this,"11033001082","run","GenericRuntime~setDataURL()",'Use of deprecated "setDataURL()". Replace with "setXMLUrl()".');
b===void 0||b===null||!h(b.toString)?a.raiseError(this,"25081724","param","~setDataURL",'Invalid data type for parameter "url"'):this.ref===void 0||this.ref===null||!h(this.ref.setDataURL)?this.setChartData(b.toString(),FusionChartsDataFormats.XMLURL):this.ref.setDataURL(b.toString())}}});a.renderer.setDefault("flash")}]);
FusionCharts(["private","modules.renderer.js",function(){var a=this,f=window,g=document,h=a.core.options;/msie/i.test(navigator.userAgent);g.createElementNS&&g.createElementNS("http://www.w3.org/2000/svg","svg");var j=function(){},d=a.hcLib={cmdQueue:[]},o=d.moduleCmdQueue={jquery:[],base:[],charts:[],powercharts:[],widgets:[],maps:[]},c=d.moduleDependencies={},b=d.moduleMeta={jquery:"jquery.min.js",base:"FusionCharts.HC.js",charts:"FusionCharts.HC.Charts.js",powercharts:"FusionCharts.HC.PowerCharts.js",
widgets:"FusionCharts.HC.Widgets.js",maps:"FusionCharts.HC.Maps.js"},i={},t=d.getDependentModuleName=function(a){var b=[],e,d;for(e in c)if((d=c[e][a])!==void 0)b[d]=e;return b};d.injectModuleDependency=function(a,b,e){var i=!1;b===void 0&&(b=a);c[a]||(c[a]={},o[a]||(o[a]=[],d.moduleMeta[a]=h.html5ScriptNamePrefix+b+h.html5ScriptNameSuffix),i=!0);c[a][b]=e||0;return i};var e=d.hasModule=function(b){var c,e;if(b instanceof Array){c=0;for(e=b.length;c<e;c+=1)if(!Boolean(a.modules["modules.renderer.js-"+
b])||b==="jquery"&&!Boolean(f.jQuery))return!1;return!0}if(b==="jquery")return Boolean(f.jQuery);return Boolean(a.modules["modules.renderer.js-"+b])};d.needsModule=function(a,b){return(d.moduleDependencies[a]&&d.moduleDependencies[a][b])!==void 0};var m=d.loadModule=function(c,d,g,f){c instanceof Array||(c=[c]);var h=c.length,m=0,j=function(){if(m>=h)d&&d();else{var l=c[m],o=b[l],u;m+=1;if(l)if(e(l)){j();return}else{if(i[l]){a.raiseError(f||a.core,"1112201445A","run","JavaScriptRenderer~loadModule() ",
"required resources are absent or blocked from loading.");g&&g(l);return}}else g&&g(l);u=l==="jquery"?a.core.options.jQuerySourceFileName:a.core.options["html5"+a.capitalizeString(l)+"Src"];a.loadScript(u==void 0?o:u,{success:function(){e(l)?j():g&&g(l)},failure:g&&function(){g(l)}},void 0,!0)}};j()},u=d.executeWaitingCommands=function(a){for(var b;b=a.shift();)typeof b==="object"&&j[b.cmd].apply(b.obj,b.args)};d.cleanupWaitingCommands=function(a){for(var b=a.chartType(),b=t(b),c,e=[],d;c=b.shift();){for(c=
o[c]||[];d=c.shift();)typeof d==="object"&&d.obj!==a&&e.push(d);c.concat(e);e=[]}};var l=function(a){delete a.sender.jsVars._reflowData;a.sender.jsVars._reflowData={};delete a.sender.jsVars._reflowClean},r=function(){var a=function(){};a.prototype={LoadDataErrorText:"Error in loading data.",XMLLoadingText:"Retrieving data. Please wait",InvalidXMLText:"Invalid data.",ChartNoDataText:"No data to display.",ReadingDataText:"Reading data. Please wait",ChartNotSupported:"Chart type not supported.",PBarLoadingText:"",
LoadingText:"Loading chart. Please wait",RenderChartErrorText:"Unable to render chart."};return a.prototype.constructor=a}();a.extend(a.core.options,{html5ScriptNameSuffix:".js",html5ScriptNamePrefix:"FusionCharts.HC.",jQuerySourceFileName:"jquery.min.js"});a.extend(j,{dataFormat:"json",ready:!1,policies:{jsVars:{},options:{showLoadingMessage:["showLoadingMessage",!0]}},init:function(){f.jQuery?e("base")?j.ready=!0:m("base",function(){j.ready=!0;u(d.cmdQueue)},void 0,a.core):m("jquery",function(){jQuery.noConflict();
if(f.$===void 0)f.$=jQuery;j.init()},void 0,a.core)},render:function(a){var b=a,c=this.jsVars,e=c.msgStore;if(b&&this.options.showLoadingMessage)b.innerHTML='<small style="display: inline-block; *zoom:1; *display:inline; width: 100%; font-family: Verdana; font-size: 10px; color: #666666; text-align: center; padding-top: '+(parseInt(b.style.height,10)/2-5)+'px">'+(e.PBarLoadingText||e.LoadingText)+"</small>",b.style.backgroundColor=c.transparent?"transparent":this.options.containerBackgroundColor||
"#ffffff";d.cmdQueue.push({cmd:"render",obj:this,args:arguments})},update:function(){d.cmdQueue.push({cmd:"update",obj:this,args:arguments})},resize:function(){d.cmdQueue.push({cmd:"resize",obj:this,args:arguments})},dispose:function(){var a=d.cmdQueue,b,c;b=0;for(c=a.length;b<c;b+=1)a[b].obj===this&&(a.splice(b,1),c-=1,b-=1)},load:function(){d.cmdQueue.push({cmd:"load",obj:this,args:arguments})},config:function(a,b){var c,e=this.jsVars,d=e.msgStore,e=e.cfgStore;typeof a==="string"&&arguments.length>
1&&(c=a,a={},a[c]=b);for(c in a)d[c]!==void 0?d[c]=a[c]:e[c.toLowerCase()]=a[c]},protectedMethods:{},events:{BeforeInitialize:function(a){var b=a.sender,a=b.jsVars,c=this.chartType();a.fcObj=b;a.msgStore=a.msgStore||new r;a.cfgStore=a.cfgStore||{};a.previousDrawCount=-1;a.drawCount=0;a._reflowData={};if(!(a.userModules instanceof Array)&&(b=a.userModules,a.userModules=[],typeof b==="string"))a.userModules=a.userModules.concat(b.split(","));if(!d.chartAPI||!d.chartAPI[c])a.needsLoaderCall=!0},Initialized:function(a){var a=
a.sender,b=a.jsVars;b.needsLoaderCall&&(delete b.needsLoaderCall,j.load.call(a))},BeforeDataUpdate:l,BeforeDispose:l,BeforeRender:function(a){var b=a.sender.jsVars;delete b.drLoadAttempted;delete b.waitingModule;delete b.waitingModuleError;l.apply(this,arguments)},DataLoadRequested:function(a){var a=a.sender,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.id.stallLoad},DataLoadError:function(a){var b=a.sender,c=b.jsVars;delete c.stallLoad;c.loadError=!0;b.ref&&typeof b.ref.showChartMessage==="function"&&b.ref.showChartMessage("LoadDataErrorText");l.apply(this,arguments)}},_call:function(a,b,c){a.apply(c||f,b||[])}});a.extend(j.prototype,{getSWFHTML:function(){a.raiseWarning(this,"11090611381","run","JavaScriptRenderer~getSWFHTML()","getSWFHTML() is not supported for JavaScript charts.")},
addVariable:function(){a.raiseWarning(this,"11090611381","run","JavaScriptRenderer~addVariable()",'Use of deprecated "addVariable()". Replace with "configure()".');a.core.prototype.configure.apply(this,arguments)},getXML:function(){a.raiseWarning(this,"11171116291","run","JavaScriptRenderer~getXML()",'Use of deprecated "getXML()". Replace with "getXMLData()".');return this.getXMLData.apply(this,arguments)},setDataXML:function(){a.raiseWarning(this,"11171116292","run","JavaScriptRenderer~setDataXML()",
'Use of deprecated "setDataXML()". Replace with "setXMLData()".');return this.setXMLData.apply(this,arguments)},setDataURL:function(){a.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)typeof a!=="boolean"&&a!==null&&(a=!0),b.transparent=
a===null?!1:a===!0?!0:!1}});a.extend(a.core,{_fallbackJSChartWhenNoFlash:function(){f.swfobject.hasFlashPlayerVersion(a.core.options.requiredFlashPlayerVersion)||a.renderer.setDefault("javascript")},_enableJSChartsForSelectedBrowsers:function(b){b===void 0||b===null||a.renderer.setDefault(RegExp(b).test(navigator.userAgent)?"javascript":"flash")},_doNotLoadExternalScript:function(a){var c,e;for(c in a)e=c.toLowerCase(),b[e]&&(i[e]=Boolean(a[c]))},_preloadJSChartModule:function(){throw"NotImplemented()";
}});a.renderer.register("javascript",j);f.swfobject&&f.swfobject.hasFlashPlayerVersion&&!f.swfobject.hasFlashPlayerVersion(a.core.options.requiredFlashPlayerVersion)&&(a.raiseWarning(a.core,"1204111846","run","JSRenderer","Switched to JavaScript as default rendering due to absence of required Flash Player."),a.renderer.setDefault("javascript"))}]);
(function(){var a=FusionCharts(["private","XMLDataHandler"]);if(a!==void 0){var f=function(a){return{data:a,error:void 0}};a.addDataHandler("XML",{encode:f,decode:f})}})();var JSON;JSON||(JSON={});
(function(){function a(a){return a<10?"0"+a:a}function f(a){j.lastIndex=0;return j.test(a)?'"'+a.replace(j,function(a){var b=c[a];return typeof b==="string"?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function g(a,c){var e,h,j,l,r=d,k,p=c[a];p&&typeof p==="object"&&typeof p.toJSON==="function"&&(p=p.toJSON(a));typeof b==="function"&&(p=b.call(c,a,p));switch(typeof p){case "string":return f(p);case "number":return isFinite(p)?String(p):"null";case "boolean":case "null":return String(p);
case "object":if(!p)return"null";d+=o;k=[];if(Object.prototype.toString.apply(p)==="[object Array]"){l=p.length;for(e=0;e<l;e+=1)k[e]=g(e,p)||"null";j=k.length===0?"[]":d?"[\n"+d+k.join(",\n"+d)+"\n"+r+"]":"["+k.join(",")+"]";d=r;return j}if(b&&typeof b==="object"){l=b.length;for(e=0;e<l;e+=1)typeof b[e]==="string"&&(h=b[e],(j=g(h,p))&&k.push(f(h)+(d?": ":":")+j))}else for(h in p)Object.prototype.hasOwnProperty.call(p,h)&&(j=g(h,p))&&k.push(f(h)+(d?": ":":")+j);j=k.length===0?"{}":d?"{\n"+d+k.join(",\n"+
d)+"\n"+r+"}":"{"+k.join(",")+"}";d=r;return j}}if(typeof Date.prototype.toJSON!=="function")Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()};var h=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
j=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,d,o,c={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},b;if(typeof JSON.stringify!=="function")JSON.stringify=function(a,c,e){var f;o=d="";if(typeof e==="number")for(f=0;f<e;f+=1)o+=" ";else typeof e==="string"&&(o=e);if((b=c)&&typeof c!=="function"&&(typeof c!=="object"||typeof c.length!=="number"))throw Error("JSON.stringify");return g("",
{"":a})};if(typeof JSON.parse!=="function")JSON.parse=function(a,b){function c(a,d){var i,g,f=a[d];if(f&&typeof f==="object")for(i in f)Object.prototype.hasOwnProperty.call(f,i)&&(g=c(f,i),g!==void 0?f[i]=g:delete f[i]);return b.call(a,d,f)}var d,a=String(a);h.lastIndex=0;h.test(a)&&(a=a.replace(h,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+")"),typeof b==="function"?c({"":d},""):d;throw new SyntaxError("JSON.parse");}})();
(function(){var a=FusionCharts(["private","JSON_DataHandler"]);if(a!==void 0){window.JSON===void 0&&a.raiseError(this,"1113062012","run","JSONDataHandler",Error("Could not find library support for JSON parsing."));a.core.options.allowIESafeXMLParsing=["_allowIESafeXMLParsing",!0];var f=function(a){if(a===null||a===void 0||typeof a.toString!=="function")return"";return a=a.toString().replace(/&/g,"&amp;").replace(/\'/g,"&#39;").replace(/\"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},g=function(){var g=
{arr:{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},shapes:!0,shape:{shapes:!0},entitydef:!0,entity:{entitydef:!0}},tag:{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"},entity:{entitydef:"entitydef",data:"data"},shape:{shapes:"shapes"},connector:{connectors:{chart:"connector",linkedchart:"connector",
map:"connectors",linkedmap:"connectors"}},annotationgroup:{annotations:"groups"},annotation:{groups:"items"}},attr:{vline:{vline:"true"}},ins:{chart:!0,map:!0,graph:!0},dsv:{dataset:"data",categories:"category"},text:{target:"target",value:"value"},group:{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},map:{entitydef:!0,data:!0},linkedmap:{entitydef:!0,data:!0}}},
d={append:function(a,b,d,f){g.arr[d]&&(g.arr[d]===!0||g.arr[d][f]===!0)?(b[d]instanceof Array||(b[d]=[]),b[d].push(a)):b[d]=a},child:function(c,b,i,f){var e,h,o,l,r,k;for(e=0;e<b.length;e+=1)switch(o=b[e],h=o.nodeName.toLowerCase(),o.nodeType){case 1:l=d.attr(o.attributes);k=g.ins[h];k===!0&&(r=l,l={},l[h]=r);k=g.attr[h];typeof k==="object"&&a.extend(l,k);if(k=g.tag[h])if(typeof k==="object"&&typeof k[i]==="object")for(r in r=void 0,k[i]){if(f[r]){h=k[i][r];break}}else typeof k==="object"&&typeof k[i]===
"string"?h=k[i]:typeof k==="string"&&(h=k);o.childNodes.length&&((k=g.group[i])&&k[h]?d.child(c,o.childNodes,h,f):d.child(l,o.childNodes,h,f));k=g.group[i];(!k||!k[h])&&d.append(l,c,h,i);break;case 3:if(k=g.text[i])h=k,l=o.data,d.append(l,c,h,i);k=g.dsv[i];if(typeof k==="string"&&f.chart&&parseInt(f.chart.compactdatamode,10))h=k,l=o.data,c[h]=c[h]?c[h]+l:l}},attr:function(a){var b,d={};if(!a||!a.length)return d;for(b=0;b<a.length;b+=1)d[a[b].nodeName.toLowerCase()]=a[b].value||a[b].nodeValue;return d}},
f=function(c){var b={},g,h,e,j,u,l,r,k;if(typeof c!=="object"&&typeof c.toString!=="function")return f.errorObject=new TypeError("xml2json.parse()"),b;for(var c=c.toString().replace(/<\!--[\s\S]*?--\>/g,"").replace(/<\?xml[\s\S]*?\?>/ig,"").replace(/&(?!([^;\n\r]+?;))/g,"&amp;$1"),c=c.replace(/^\s\s*/,""),p=/\s/,v=c.length;p.test(c.charAt(v-=1)););c=c.slice(0,v+1);if(!c)return b;try{if(window.DOMParser)g=(new window.DOMParser).parseFromString(c,"text/xml");else if(document.body&&a.core.options.allowIESafeXMLParsing){var y=
document.createElement("xml");y.innerHTML=c;document.body.appendChild(y);g=y.XMLDocument;document.body.removeChild(y)}else g=new ActiveXObject("Microsoft.XMLDOM"),g.async="false",g.loadXML(c);if(!g||!g.childNodes||!(g.childNodes.length===1&&(h=g.childNodes[0])&&h.nodeName&&(e=h.nodeName.toLowerCase())&&(e==="chart"||e==="map"||e==="graph")))return f.errorObject=new TypeError("xml2json.parse()"),b;else if(e==="graph"){j=g.createElement("chart");for(k=(l=h.attributes)&&l.length||0;k--;)j.setAttribute(l[k].name,
l[k].value),l.removeNamedItem(l[k].name);if(k=(r=h.childNodes)&&r.length||0)k-=1,u=h.removeChild(r[k]),j.appendChild(u);for(;k--;)u=h.removeChild(r[k]),j.insertBefore(u,j.firstChild);g.replaceChild(j,h);h=j}}catch(B){f.errorObject=B}h?(h.attributes&&(b[e]=d.attr(h.attributes)),h.childNodes&&d.child(b,h.childNodes,e,b),delete f.errorObject):f.errorObject=new TypeError("xml2json.parse()");return b};return function(a){delete f.errorObject;return{data:f(a),error:f.errorObject}}}(),h=function(){var 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"}}},qualify:function(a,c,b){return typeof this.items[a][b]==="object"?this.items[a][b][c]:this.items[a][b]}},d=function(g,c,b,h){var t="",e="",m="",u="",l,r,k;c&&typeof c.toLowerCase==="function"&&(c=c.toLowerCase());if(b===void 0&&g[c])for(l in g[c])if(r=l.toLowerCase(),r==="compactdatamode")h.applyDSV=g[c][l]==1;if(g instanceof Array)for(l=0;l<g.length;l+=1)u+=typeof g[l]==="string"?f(g[l]):d(g[l],c,b,h);else{for(l in g)r=l.toLowerCase(),g[l]instanceof Array&&
(k=a.qualify("group",r,c))?e+="<"+r+">"+d(g[l],k,c,h)+"</"+r+">":typeof g[l]==="object"?(k=a.qualify("attr",r,c))?(m=d(g[l],k,c,h).replace(/\/\>/ig,""),c=r):e+=d(g[l],r,c,h):h.applyDSV&&(k=a.qualify("dsv",r,c))?e+=g[l]:(k=a.qualify("text",r,c))?e+="<"+k+">"+g[l]+"</"+k+">":r==="vline"&&Boolean(g[l])?c="vline":t+=" "+r+'="'+f(g[l]).toString().replace(/\"/ig,"&quot;")+'"';if(k=a.qualify("explode",b,c))c=k;u=(m!==""?m:"<"+c)+t+(e!==""?">"+e+"</"+c+">":" />")}return u};return function(a){delete d.errorObject;
if(a&&typeof a==="string")try{a=JSON.parse(a)}catch(c){d.errorObject=c}return{data:d(a,a&&a.graph?"graph":a&&a.map?"map":"chart",void 0,{}),error:d.errorObject}}}();a.addDataHandler("JSON",{encode:h,decode:g})}})();
FusionCharts(["private","CSVDataHandler",function(){var a=this,f;f=function(a){this.data=[];this.columnCount=this.rowCount=0;this.configure(a)};f.decodeLiterals=function(a,h){if(a===void 0||a===null||!a.toString)return h;return a.replace("{tab}","\t").replace("{quot}",'"').replace("{apos}","'")};f.prototype.set=function(a,h,f){var d;if(this.rowCount<=a){for(d=this.rowCount;d<=a;d+=1)this.data[d]=[];this.rowCount=a+1}if(this.columnCount<=h)this.columnCount=h+1;this.data[a][h]=f};f.prototype.setRow=
function(a,h){var f;if(this.rowCount<=a){for(f=this.rowCount;f<=a;f+=1)this.data[f]=[];this.rowCount=a+1}if(this.columnCount<h.length)this.columnCount=h.length;this.data[a]=h};f.prototype.get=function(a,h){var f=this.data;return f[a]&&f[a][h]};f.prototype.configure=function(a){var h=f.decodeLiterals;this.delimiter=h(a.delimiter,",");this.qualifier=h(a.qualifier,'"');this.eolCharacter=h(a.eolCharacter,"\r\n")};f.prototype.clear=function(){this.data=[];this.columnCount=this.rowCount=0};f.prototype.toString=
function(){var a,f,j="";for(a=0;a<this.rowCount;a+=1)f=this.qualifier+this.data[a].join(this.qualifier+this.delimiter+this.qualifier)+this.qualifier,j+=f==='""'?this.eolCharacter:f+this.eolCharacter;this.rowCount>0&&(j=j.slice(0,j.length-2));return j};a.addDataHandler("CSV",{encode:function(g,f){a.raiseError(f,"0604111215A","run","::CSVDataHandler.encode()","FusionCharts CSV data-handler only supports encoding of data.");throw"FeatureNotSupportedException()";},decode:function(g){var g=a.core.transcodeData(g,
"xml","json")||{},h,j,d,o,c,b,i,t,e=g.chart||g.map||g.graph||{},m=Boolean(e.exporterrorcolumns||0),u=g.categories&&g.categories[0]&&g.categories[0].category||[];j=g.map&&!g.chart;var l=!1,r=!1,k=!1,p,v,y,B,x,w,n,A,z,E,s;h=new f({separator:e.exportdataseparator,qualifier:e.exportdataqualifier});if(j)h.setRow(0,["Id"," Short Name","Long Name","Value","Formatted Value"]);else if((p=g.dials&&g.dials.dial||g.pointers&&g.pointers.pointer||g.value)!==void 0)if(typeof p==="string")h.set(0,0,p),typeof g.target===
"string"&&h.set(0,1,g.target);else{h.setRow(0,["Id","Value"]);c=0;i=1;for(b=p.length;c<b;c+=1,i+=1)h.setRow(i,[i,p[c].value])}else if(p=g.dataset||!(g.data instanceof Array)&&[]){d=1;(v=g.lineset)&&(p=p.concat(v));(y=g.axis)&&(p=p.concat(y));x=u.length;if(!(w=p.length))for(c=0;c<x;c+=1)n=u[c],h.set(c+1,0,n.label||n.name);for(c=0;c<w;c+=1){A=p;A[c].dataset?(A=A[c].dataset,o=0,B=A.length):(A=p,o=c,B=o+1);for(;o<B&&!l&&!k;o+=1,d+=1){z=A[o];h.set(0,d,z.seriesname);if(typeof z.data==="string")z.data=z.data.split(e.dataseparator||
"|");i=b=0;for(E=z.data&&z.data.length||0;b<E||b<x;b+=1){n=u[b];j=i+1;s=z.data&&z.data[i]||{};if(s.x!==void 0&&s.y!==void 0){l=!0;break}if(s.rowid!==void 0&&s.columnid!==void 0){k=!0;break}if(b<x&&!n.vline){h.set(j,0,n.label||n.name);n=parseFloat(s?s.value:"");n=isNaN(n)?"":n;h.set(j,d,n);if(r||m||s.errorvalue)r||(r=!0,h.set(0,d+1,"Error")),t=1,h.set(j,d+1,s.errorvalue);i+=1}}t&&(d+=t,t=0)}}v&&(p=p.slice(0,-v.length));y&&p.slice(0,-y.length)}else if(p=g.data){h.set(0,1,e.yaxisname||"Value");c=0;for(x=
p.length;c<x;c+=1)s=p[c],s.vline||(n=parseFloat(s.value?s.value:""),n=isNaN(n)?"":n,h.setRow(c+1,[s.label||s.name,n]))}if(l){h.clear();r=!1;t=0;h.setRow(0,["Series","x","y"]);c=0;j=1;p=g.dataset;for(B=p.length;c<B;c+=1){b=0;z=p[c]&&p[c].data||[];for(w=z.length;b<w;b+=1,j+=1){s=z[b]||{};n=[p[c].seriesname,s.x,s.y];s.z!==void 0&&(n.push(s.z),t||(h.set(0,3,"z"),t=1));if(r||m||s.errorvalue!==void 0||s.horizontalerrorvalue!==void 0||s.verticalerrorvalue!==void 0)n.push(s.errorvalue,s.horizontalerrorvalue===
void 0?s.errorvalue:s.horizontalerrorvalue,s.verticalerrorvalue===void 0?s.errorvalue:s.verticalerrorvalue),r||(h.set(0,t+3,"Error"),h.set(0,t+4,"Horizontal Error"),h.set(0,t+5,"Vertical Error")),r=!0;h.setRow(j,n)}}}else if(k){h.clear();m={};l={};c=0;b=1;u=g.rows&&g.rows.row||[];for(t=u.length;c<t;c+=1,b+=1)n=u[c],n.id&&(m[n.id.toLowerCase()]=b,h.set(b,0,n.label||n.id));c=0;b=1;u=g.columns&&g.columns.column||[];for(t=u.length;c<t;c+=1,b+=1)n=u[c],n.id&&(l[n.id.toLowerCase()]=b,h.set(0,b,n.label||
n.id));z=g.dataset&&g.dataset[0]&&g.dataset[0].data||[];c=0;for(t=z.length;c<t;c+=1){s=z[c];j=s.rowid.toLowerCase();d=s.columnid.toLowerCase();if(!m[j])m[j]=h.rowCount,h.set(h.rowCount,0,s.rowid);if(!l[d])l[d]=h.columnCount,h.set(0,h.columnCount,s.columnid);h.set(m[j],l[d],s.value)}}h.rowCount>0&&h.get(0,0)===void 0&&h.set(0,0,e.xaxisname||"Label");return{data:h.toString(),error:void 0}}});a.core.addEventListener("Loaded",function(a){a=a.sender;if(a.options.renderer==="javascript"&&!a.getDataAsCSV)a.getDataAsCSV=
a.ref.getDataAsCSV=a.getCSVData})}]);
(function(){var a=FusionCharts(["private","DynamicChartAttributes"]);a!==void 0&&a.extend(a.core,{setChartAttribute:function(a,g){if(typeof a==="string"){var h=a,a={};a[h]=g}else if(a===null||typeof a!=="object")return;var h=0,j=this.getChartData(FusionChartsDataFormats.JSON),d,o=j.chart||j.graph||j.map||{};for(d in a)h+=1,a[d]===null?delete o[d.toLowerCase()]:o[d.toLowerCase()]=a[d];if(h>0){if(typeof o.animation==="undefined")o.animation="0";this.setChartData(j,FusionChartsDataFormats.JSON)}},getChartAttribute:function(f){var g=
(g=this.getChartData(FusionChartsDataFormats.JSON)).chart||g.graph||g.map;if(arguments.length===0||f===void 0||g===void 0)return g;var h,j;if(typeof f==="string")h=g[f.toString().toLowerCase()];else if(f instanceof Array){h={};for(j=0;j<f.length;j+=1)h[f[j]]=g[f[j].toString().toLowerCase()]}else a.raiseError(this,"25081429","param","~getChartAttribute()",'Unexpected value of "attribute"');return h}},!0)})();
(function(){var a=FusionCharts(["private","api.LinkManager"]);if(a!==void 0){a.policies.link=["link",void 0];var f=window.FusionChartsDOMInsertModes={REPLACE:"replace",APPEND:"append",PREPEND:"prepend"},g={},h=function(d,f){this.items={};this.root=d;this.parent=f;f instanceof a.core?this.level=this.parent.link.level+1:(g[d.id]=[{}],this.level=0)},j=function(a,g){return(a.options.containerElement===g.options.containerElement||a.options.containerElementId===g.options.containerElementId)&&a.options.insertMode===
f.REPLACE};h.prototype.configuration=function(){return g[this.root.id][this.level]||(g[this.root.id][this.level]={})};a.extend(a.core,{configureLink:function(d,f){var c;if(d instanceof Array){for(c=0;c<d.length;c+=1)typeof g[this.link.root.id][c]!=="object"&&(g[this.link.root.id][c]={}),a.extend(g[this.link.root.id][c],d[c]);g[this.link.root.id].splice(d.length)}else if(typeof d==="object"){if(typeof f!=="number")f=this.link.level;g[this.link.root.id][f]===void 0&&(g[this.link.root.id][f]={});a.extend(g[this.link.root.id][f],
d)}else a.raiseError(this,"25081731","param","~configureLink()","Unable to update link configuration from set parameters")}},!0);a.addEventListener("BeforeInitialize",function(d){if(d.sender.link instanceof h){if(d.sender.link.parent instanceof a.core)d.sender.link.parent.link.items[d.sender.id]=d.sender}else d.sender.link=new h(d.sender)});a.addEventListener("LinkedChartInvoked",function(d,f){var c=d.sender,b=c.clone({dataSource:f.data,dataFormat:f.linkType,link:new h(c.link.root,c)},!0),g=f.alias;
if(g){if(!b.swfSrcPath&&b.swfUrl)b.swfSrcPath=b.swfUrl.replace(/(.*?)?[^\/]*\.swf.*?/ig,"$1");b.type=g}c.args&&parseInt(c.args.animate,10)!==0&&delete b.animate;a.extend(b,c.link.configuration());a.raiseEvent("BeforeLinkedItemOpen",{level:c.link.level},c.link.root);a.core.items[b.id]instanceof a.core&&a.core.items[b.id].dispose();b=new a.core(b);if(!j(b,c)&&(!c.options.overlayButton||!c.options.overlayButton.message)){if(typeof c.options.overlayButton!=="object")c.options.overlayButton={};c.options.overlayButton.message=
"Close"}b.render();a.raiseEvent("LinkedItemOpened",{level:c.link.level,item:b},c.link.root)});a.addEventListener("OverlayButtonClick",function(d,f){if(f.id==="LinkManager"){var c=d.sender,b=c.link.level-1,g=c.link.parent,h=c.link.root;a.raiseEvent("BeforeLinkedItemClose",{level:b,item:c},h);setTimeout(function(){a.core.items[c.id]&&c.dispose();a.raiseEvent("LinkedItemClosed",{level:b},h)},0);!g.isActive()&&j(c,g)&&g.render()}});a.addEventListener("Loaded",function(d){if((d=d.sender)&&d.link!==void 0&&
d.link.root!==d&&d.link.parent instanceof a.core)if(d.ref&&typeof d.ref.drawOverlayButton==="function"){var f=a.extend({show:!0,id:"LinkManager"},d.link.parent.options.overlayButton);a.extend(f,d.link.parent.link.configuration().overlayButton||{});d.ref.drawOverlayButton(f)}else a.raiseWarning(d,"04091602","run","::LinkManager^Loaded","Unable to draw overlay button on object. -"+d.id)});a.addEventListener("BeforeDispose",function(d){var f=d.sender;f&&f.link instanceof h&&(f.link.parent instanceof
a.core&&delete f.link.parent.link.items[d.sender.id],delete g[f.id])});FusionChartsEvents.LinkedItemOpened="linkeditemopened";FusionChartsEvents.BeforeLinkedItemOpen="beforelinkeditemopen";FusionChartsEvents.LinkedItemClosed="linkeditemclosed";FusionChartsEvents.BeforeLinkedItemClose="beforelinkeditemclose"}})();
(function(){var a=FusionCharts(["private","PrintManager"]);if(a!==void 0){var f={enabled:!1,invokeCSS:!0,processPollInterval:2E3,message:"Chart is being prepared for print.",useExCanvas:!1,bypass:!1},g={getCanvasElementOf:function(b,c,d){if(b.__fusioncharts__canvascreated!==!0){var g=document.createElement("canvas"),h=a.core.items[b.id].attributes["class"];f.useExCanvas&&G_vmlCanvasManager&&G_vmlCanvasManager.initElement(g);g.setAttribute("class",h);g.__fusioncharts__reference=b.id;b.parentNode.insertBefore(g,
b.nextSibling);b.__fusioncharts__canvascreated=!0}b.nextSibling.setAttribute("width",c||b.offsetWidth||2);b.nextSibling.setAttribute("height",d||b.offsetHeight||2);return b.nextSibling},removeCanvasElementOf:function(a){var b=a.ref&&a.ref.parentNode?a.ref.parentNode:a.options.containerElement||window.getElementById(a.options.containerElementId);if(b){var c=b.getElementsByTagName("canvas"),d,f;f=0;for(d=c.length;f<d;f+=1)if(c[f].__fusioncharts__reference===a.id&&(b.removeChild(c[f]),a.ref))a.ref.__fusioncharts__canvascreated=
!1}},rle2rgba:function(a,b,c){typeof c!=="string"&&(c="FFFFFF");var a=a.split(/[;,_]/),d,f,g,h,i,j=0;for(f=0;f<a.length;f+=2){a[f]===""&&(a[f]=c);a[f]=("000000"+a[f]).substr(-6);g=parseInt("0x"+a[f].substring(0,2),16);h=parseInt("0x"+a[f].substring(2,4),16);i=parseInt("0x"+a[f].substring(4,6),16);for(d=0;d<a[f+1];d+=1)b[j]=g,b[j+1]=h,b[j+2]=i,b[j+3]=255,j+=4}return b},rle2array:function(a,b){typeof b!=="string"&&(b="FFFFFF");var c=a.split(";"),d,f;for(d in c){c[d]=c[d].split(/[_,]/);for(f=0;f<c[d].length;f+=
2)c[d][f]=c[d][f]===""?b:("000000"+c[d][f]).substr(-6)}return c},drawText:function(b,c,d,f){b=b.getContext("2d");d=d||2;f=f||2;b.clearRect(0,0,d,f);b.textBaseline="middle";b.textAlign="center";b.font="8pt verdana";b.fillStyle="#776666";typeof b.fillText==="function"?b.fillText(c,d/2,f/2):typeof b.mozDrawText==="function"?(b.translate(d/2,f/2),b.mozDrawText(c)):a.raiseWarning(a.core,"25081803","run","::PrintManager>lib.drawText","Canvas text drawing is not supported in browser");return!0},appendCSS:function(a){var b=
document.createElement("style");b.setAttribute("type","text/css");typeof b.styleSheet==="undefined"?b.appendChild(document.createTextNode(a)):b.styleSheet.cssText=a;return document.getElementsByTagName("head")[0].appendChild(b)}};g.drawRLE=function(a,b,c,d,f){c=c||2;d=d||2;a.setAttribute("width",c);a.setAttribute("height",d);a=a.getContext("2d");if(typeof a.putImageData==="function"&&typeof a.createImageData==="function")c=a.createImageData(c,d),g.rle2rgba(b,c.data,f),a.putImageData(c,0,0);else for(f in c=
g.rle2array(b,f),d=f=b=0,c)for(d=b=0;d<c[f].length;d+=2)a.fillStyle="#"+c[f][d],a.fillRect(b,f,c[f][d+1],1),b+=parseInt(c[f][d+1],10);return!0};var h={styles:{print:"canvas.FusionCharts{display:none;}@media print{object.FusionCharts{display:none;}canvas.FusionCharts{display:block;}}",error:"canvas.FusionCharts{display:none;}",normal:""},cssNode:void 0},j={},d={},o=0,c;h.invoke=function(a){typeof this.styles[a]!=="undefined"&&(a=this.styles[a]);if(typeof a!=="undefined")this.cssNode!==void 0&&this.cssNode.parentNode!==
void 0&&this.cssNode.parentNode.removeChild(this.cssNode),h.cssNode=g.appendCSS(a)};var b=function(b){var d=b.sender.ref,i,l;if(d===void 0||typeof d.prepareImageDataStream!=="function"||d.prepareImageDataStream()===!1)c(b.sender);else{j[b.sender.id]||(j[b.sender.id]=d,o+=1,o===1&&a.raiseEvent("PrintReadyStateChange",{ready:!1,bypass:f.bypass},b.sender));try{i=d.offsetWidth,l=d.offsetHeight,g.drawText(g.getCanvasElementOf(d,i,l),f.message,i,l)}catch(r){h.invoke("error"),a.raiseError(b.sender,"25081807",
"run","::PrintManager>onDrawComplete","There was an error while showing message to user via canvas.")}}},i=function(b,c){try{g.drawRLE(g.getCanvasElementOf(b.sender.ref,c.width,c.height),c.stream,c.width,c.height,c.bgColor)===!0&&j[b.sender.id]&&(delete j[b.sender.id],o-=1,o===0&&a.raiseEvent("PrintReadyStateChange",{ready:!0,bypass:f.bypass},b.sender))}catch(d){h.invoke("error"),a.raiseError(b.sender,"25081810","run","::PrintManager>onImageStreamReady","There was an error while drawing canvas.")}},
t=function(a){g.removeCanvasElementOf(a.sender)};c=function(c){var f;if(c instanceof a.core)d[c.id]=c;else for(f in d)b({sender:d[f]},{}),delete d[f]};a.extend(a.core,{printManager:{configure:function(b){a.extend(f,b||{})},isReady:function(){if(f.bypass)return!0;if(o>0||!f.enabled)return!1;var b,c;for(b in a.core.items)if((c=a.core.items[b].ref)!==void 0&&c.hasRendered&&c.hasRendered()===!1)return!1;return!0},enabled:function(d){if(d===void 0)return f.enabled;if(a.renderer.currentRendererName()!==
"flash"||typeof document.createElement("canvas").getContext!=="function")return f.bypass=!0,a.raiseEvent("PrintReadyStateChange",{ready:!0,bypass:f.bypass}),a.raiseWarning(a.core,"25081816","run",".printManager.enabled","printManager is not compatible with your browser"),f.enabled;f.bypass=!1;var j=d?"addEventListener":"removeEventListener";a.core[j]("ImageStreamReady",i);a.core[j]("DrawComplete",b);a.core[j]("BeforeDispose",t);if(d===!0){var o;f.invokeCSS===!0&&h.invoke("print");for(o in a.core.items)c(a.core.items[o]),
c()}else{var l;h.invoke("error");for(l in a.core.items)g.removeCanvasElementOf(a.core.items[l]);f.bypass||a.raiseEvent("PrintReadyStateChange",{ready:!1,bypass:f.bypass});h.invoke("normal")}return f.enabled=d},managedPrint:function(b){f.bypass?window.print():a.core.printManager.isReady()?typeof b==="object"&&b.ready!==!0||(a.removeEventListener("PrintReadyStateChange",a.core.printManager.managedPrint),window.print()):a.core.printManager.enabled(!0)!==!0?window.print():a.addEventListener("PrintReadyStateChange",
a.core.printManager.managedPrint)}}},!1);FusionChartsEvents.PrintReadyStateChange="printreadystatechange"}})();
(function(){var j=FusionCharts(["private","modules.renderer.js-lib"]);if(j!==void 0){var g=window,m="",X="0",w=".",J=document,Y=!!J.createElementNS&&!!J.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,b=/msie/i.test(navigator.userAgent)&&!window.opera,A=/\s+/g,e=/^#?/,r=/^rgba/i,z=/[#\s]/ig,oa=/\{br\}/ig,Z=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i,s=Math.abs,ia=Math.pow,I=Math.round,K=ia(2,-24),P=Object.prototype.toString,ha=J.documentElement.ontouchstart!==void 0,H=Math,s=H.abs,o=H.max,p=H.min,E={pageX:0,pageY:0},V=function(e){var t=e.data,n=t.chart,r=n.paper,i=e.type,u=e.target||e.originalTarget||e.srcElement||e.relatedTarget||e.fromElement,a=ha&&h(e)||E,f=n.elements.resizeBox,l=e.layerX||a.layerX,c=e.layerY||a.layerY,d=l-t.ox,v=c-t.oy,m=t.bBox,g=t.ox,y=t.oy,m=t.zoomX,b=t.zoomY,w=t.canvasY,S=t.canvasX,x=t.canvasW,T=t.canvasH,N=t.canvasX2,C=t.canvasY2,k=t.strokeWidth,d=t.chartPosLeft,v=t.chartPosTop,g=t.attr;l===void 0&&(l=(e.pageX||a.pageX)-d,c=(e.pageY||a.pageY)-v);switch(i){case"dragstart":t.oy=c;t.ox=l;t.allowMove=!1;if(!f)f=n.elements.resizeBox=r.rect(n.layers.tracker).attr(g);if(l>S&&l<N&&c>w&&c<C)t.allowMove=!0;if(u&&u.ishot)t.allowMove=!1;f.attr({x:0,y:0,width:0,height:0}).show();break;case"dragend":m=f.getBBox();e={chart:n,selectionLeft:m.x,selectionTop:m.y,selectionHeight:m.height,selectionWidth:m.width};t.allowMove&&t.callback(e);f.hide();delete t.oy;delete t.ox;break;default:if(!t.allowMove)break;d=l-t.ox;v=c-t.oy;g=t.ox;y=t.oy;d=-(g-p(g-(g-o(g+d,S)),N));v=-(y-p(y-(y-o(y+v,w)),C));f.attr({x:(m?p(g,g+d):S)+k*.5,y:(b?p(y,y+v):w)+k*.5,width:m?s(d):x,height:b?s(v):T})}},L=function(e){var t=e.target||e.originalTarget||e.srcElement||e.relatedTarget||e.fromElement,n=e.data,r=e.type,i=e.layerX,s=e.layerY;i===void 0&&(i=e.pageX-n.chartPosLeft,s=e.pageY-n.chartPosTop);if(r==="mousedown")t.ishot=i>n.canvasX&&i<n.canvasX2&&s>n.canvasY&&s<n.canvasY2;r==="mouseup"&&setTimeout(function(){t.ishot=!1},1)},H=function(){var e="innerWidth",t="innerHeight",n=J.documentElement||J.body,r=n;"innerWidth"in g?r=g:(e="clientWidth",t="clientHeight");return function(){return{width:r[e],height:r[t],scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}}}(),G=function(e,t){for(var n={left:e.offsetLeft||0,top:e.offsetTop||0},e=e.offsetParent;e;)n.left+=e.offsetLeft||0,n.top+=e.offsetTop||0,e!==J.body&&e!==J.documentElement&&!t&&(n.left-=e.scrollLeft,n.top-=e.scrollTop),e=e.offsetParent;return n},S=function(e,t){return!e&&e!==!1&&e!==0?t:e},W=function(){var e,t,n;t=0;for(n=arguments.length;t<n;t+=1)if((e=arguments[t])||!(e!==!1&&e!==0))return e;return m},v=function(){var e,t,n;t=0;for(n=arguments.length;t<n;t+=1)if((e=arguments[t])||!(e!==!1&&e!==0))return e},F={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},f=function(e,t,n,r){jQuery(e).bind(ha&&F[t]||t,r,n)},i=function(e,t,n){var r=J.removeEventListener?"removeEventListener":"detachEvent";J[r]&&!e[r]&&(e[r]=function(){});jQuery(e).unbind(ha&&F[t]||t,n)},h=function(e){var t=e.sourceEvent||e.originalEvent;return ha&&t&&t.touches&&t.touches[0]||e},c=function(){var e,t,n;t=0;for(n=arguments.length;t<n;t+=1)if((e=arguments[t])||!(e!==!1&&e!==0))if(!isNaN(e=Number(e)))return e},d=function(e,t){e=!e&&e!==!1&&e!==0?NaN:Number(e);return isNaN(e)?null:t?s(e):e},a=function(e){return typeof e==="string"?e.replace(oa,"<br />"):m},k=function(e,t,n){var r,i;if(t instanceof Array)for(r=0;r<t.length;r+=1)if(typeof t[r]!=="object")n&&t[r]===void 0||(e[r]=t[r]);else{if(e[r]===null||typeof e[r]!=="object")e[r]=t[r]instanceof Array?[]:{};k(e[r],t[r],n)}else for(r in t)if(t[r]!==null&&typeof t[r]==="object")if(i=P.call(t[r]),i==="[object Object]"){if(e[r]===null||typeof e[r]!=="object")e[r]={};k(e[r],t[r],n)}else if(i==="[object Array]"){if(e[r]===null||!(e[r]instanceof Array))e[r]=[];k(e[r],t[r],n)}else e[r]=t[r];else e[r]=t[r];return e},t=function(e,t,n){if(typeof e!=="object"&&typeof t!=="object")return null;if(typeof t!=="object"||t===null)return e;typeof e!=="object"&&(e=t instanceof Array?[]:{});k(e,t,n);return e},u=function(e,t){var n;if(t instanceof Array)for(n=t.length-1;n>=0;n-=1)typeof t[n]!=="object"?t[n]===!0&&e&&e.splice&&e.splice(n,1):P.call(t[n])===P.call(e[n])&&u(e[n],t[n]);else for(n in t)typeof t[n]!=="object"?t[n]===!0&&e&&e.splice&&e.splice(n,1):P.call(t[n])===P.call(e[n])&&u(e[n],t[n]);return e},M=function(){var e=/^@window_/g;return function(t,n){var r=t.replace(/\[[\'\"]/g,".").replace(/[\'\"]\]/g,m).replace(/\[/g,".@window_").replace(/\]/g,m).split("."),i=g,s,o;o=m;var u,f,l;f=r.length;for(l=0;l<f;l+=1){u=r[l];s=i;if(u.match(e))o=g[u.replace(e,m)],i=i[o];else if(i===void 0||i===null)throw(o||u).replace(e,m)+" is not defined";else i=i[u];o=u}i&&(typeof i.call==="function"||i===g.alert)?i===g.alert?i(n):i.call(s,n):setTimeout(function(){throw u.replace(e,m)+"() is not a function"},0)}}(),ba=function(){var a="FusionChartslinkEval"+parseInt(+(new Date),10);return function(b){try{g[a]=new Function(b),eval("window['"+a+"']();")}catch(c){setTimeout(function(){throw c},0)}Y?delete g[a]:g[a]=null}}(),R=function(){if(Array.isArray)return Array.isArray;var e=Object.prototype.toString,t=e.call([]);return function(n){return e.call(n)===t}}(),Ha=function(e,t){e=Number(e);e=isNaN(e)?100:e;t!==void 0&&(e=e*t/100);return e%101},ya=function(e,t,n){var e=e.split(","),r;n!==void 0&&(n=c(n.split(",")[0]));e[0]=Ha(e[0],n);for(r=1;r<t;r+=1)e[r]=e[0]*Ha(e[r],n)/100;return e.join(",")},sa=function(e,t,n){var i=0,s=0,o=0;n&&n.match(r)&&(n=n.split(","),i=n[0].slice(n[0].indexOf("(")+1),s=n[1],o=n[2],!t&&t!==0&&(t=parseInt(n[3].slice(0,n[3].indexOf(")"))*100,10)));if(e)if(e.match(r))n=e.split(","),i=n[0].slice(n[0].indexOf("(")+1),s=n[1],o=n[2];else{e=e.replace(z,m).split(",")[0];switch(e.length){case 3:e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2];break;case 6:break;default:e=(e+"FFFFFF").slice(0,6)}i=parseInt(e.slice(0,2),16);s=parseInt(e.slice(2,4),16);o=parseInt(e.slice(4,6),16)}!t&&t!=0&&(t=100);typeof t==="string"&&(t=t.split(",")[0]);t=parseInt(t,10)/100;return"rgba("+i+","+s+","+o+","+t+")"},fa=function(t){return t.replace(z,m).replace(e,"#")},Ka=function(e,t){t=t<0||t>100?100:t;t/=100;var e=e.replace(z,m),n=parseInt(e,16),r=Math.floor(n/65536),i=Math.floor((n-r*65536)/256);return("000000"+(r*t<<16|i*t<<8|(n-r*65536-i*256)*t).toString(16)).slice(-6)},ta=function(e,t){t=t<0||t>100?100:t;t/=100;var e=e.replace(z,m),n=parseInt(e,16),r=Math.floor(n/65536),i=Math.floor((n-r*65536)/256);return("000000"+(256-(256-r)*t<<16|256-(256-i)*t<<8|256-(256-(n-r*65536-i*256))*t).toString(16)).slice(-6)},ua={circle:"circle",triangle:"triangle",square:"square",diamond:"diamond",poly:"poly_",spoke:"spoke_"},Fa={font:"font",fontFamily:"font-family","font-family":"font-family",fontWeight:"font-weight","font-weight":"font-weight",fontSize:"font-size","font-size":"font-size",lineHeight:"line-height","line-height":"line-height",textDecoration:"text-decoration","text-decoration":"text-decoration",color:"color",whiteSpace:"white-space","white-space":"white-space",padding:"padding",margin:"margin",background:"background",backgroundColor:"background-color","background-color":"background-color",backgroundImage:"background-image","background-image":"background-image",backgroundPosition:"background-position","background-position":"background-position",backgroundPositionLeft:"background-position-left","background-position-left":"background-position-left",backgroundPositionTop:"background-position-top","background-position-top":"background-position-top",backgroundRepeat:"background-repeat","background-repeat":"background-repeat",border:"border",borderColor:"border-color","border-color":"border-color",borderStyle:"border-style","border-style":"border-style",borderThickness:"border-thickness","border-thickness":"border-thickness",borderTop:"border-top","border-top":"border-top",borderTopColor:"border-top-color","border-top-color":"border-top-color",borderTopStyle:"border-top-style","border-top-style":"border-top-style",borderTopThickness:"border-top-thickness","border-top-thickness":"border-top-thickness",borderRight:"border-right","border-right":"border-right",borderRightColor:"border-right-color","border-right-color":"border-right-color",borderRightStyle:"border-right-style","border-right-style":"border-right-style",borderRightThickness:"border-right-thickness","border-right-thickness":"border-right-thickness",borderBottom:"border-bottom","border-bottom":"border-bottom",borderBottomColor:"border-bottom-color","border-bottom-color":"border-bottom-color",borderBottomStyle:"border-bottom-style","border-bottom-style":"border-bottom-style",borderBottomThickness:"border-bottom-thickness","border-bottom-thickness":"border-bottom-thickness",borderLeft:"border-left","border-left":"border-left",borderLeftColor:"border-left-color","border-left-color":"border-left-color",borderLeftStyle:"border-left-style","border-left-Style":"border-left-style",borderLeftThickness:"border-left-thickness","border-left-thickness":"border-left-thickness"},La=function(){var e=document.createElement("span"),t,n={lineHeight:!0,"line-height":!0},r=function(){return c(parseInt(e.style.fontSize,10),10)*1.4+"px"};e.innerHTML="fy";t=window.getComputedStyle?function(){var t=window.getComputedStyle(e,null);return t&&t.getPropertyValue("line-height")?t.getPropertyValue("line-height"):r.apply(this,arguments)}:e.currentStyle?function(){return e.currentStyle.lineHeight}:r;return function(i){var s,o="";for(s in i)!n[s]&&Fa[s]&&(o+=Fa[s]+" : "+i[s]+";");b&&!Y?e.style.setAttribute("cssText",o):e.setAttribute("style",o);s=t();parseFloat(s)||(s=r());return i.lineHeight=s}}(),eb=function(){var e={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"}},t=/([^\,^\s]+)\)$/g,n=function(e,t){var n;if(/^(bar|bar3d)$/.test(e))this.isBar=!0,this.yPos="bottom",this.yOppPos="top",this.xPos="left",this.xOppPos="right";n=parseInt(t.labelstep,10);this.labelStep=n>1?n:1;this.showLabel=c(t.showlabels,t.shownames,1);this.is3D=/3d$/.test(e)};n.prototype={isBar:!1,yPos:"left",yOppPos:"right",xPos:"bottom",xOppPos:"top",addAxisGridLine:function(n,r,i,s,o,u,a,f){var l=i===""?!1:!0,c=s>0||u.match(t)[1]>0?!0:!1,h;if(l||c){c||(u="rgba(0,0,0,0)",s=.1);h={isGrid:!0,width:s,dashStyle:o,color:u,value:r,zIndex:a===void 0?2:a};if(l)r=n.opposite?f?this.xOppPos:this.yOppPos:f?this.xPos:this.yPos,r=e[r],h.label={text:i,style:n.labels.style,textAlign:r.textAlign,align:r.align,verticalAlign:r.verticalAlign,rotation:0,x:0,y:0};n.plotLines.push(h)}return h},addAxisAltGrid:function(e,t){if(!this.is3D){var n=c(e._lastValue,e.min),r=v(e._altGrid,!1);r&&e.plotBands.push({isGrid:!0,color:e.alternateGridColor,to:t,from:n,zIndex:1});e._lastValue=t;e._altGrid=!r}},addXaxisCat:function(t,n,r,i){var s=e[t.opposite?this.xOppPos:this.xPos],n={isGrid:!0,width:.1,color:"rgba(0,0,0,0)",value:n,label:{text:i,style:t.labels.style,textAlign:s.textAlign,align:s.align,verticalAlign:s.verticalAlign,rotation:0,x:0,y:0}};if(r%this.labelStep!==0)n.stepped=!0,n.label.style=t.steppedLabels.style;t.plotLines.push(n)},addVline:function(e,t,n,r){var i=r._FCconf,s=i.isBar,r=r.chart.plotBorderWidth,o=r%2,u=i.divlineStyle,f=a(t.label),l=Boolean(c(t.showlabelborder,i.showVLineLabelBorder,1)),h=Boolean(c(t.showlabelbackground,1)),p=v(t.labelhalign,s?"left":"center"),d=v(t.labelvalign,s?"middle":"bottom").toLowerCase(),g=c(t.labelposition,0),y=c(t.lineposition,.5),b=c(t.showvlines,i.showVLines,1),w=c(t.alpha,i.vLineAlpha,80),E=v(t.color,i.vLineColor,"333333").replace(/^#?/,"#"),S=h?v(t.labelbgcolor,i.vLineLabelBgColor,"333333").replace(/^#?/,"#"):m,x=E,T=c(t.thickness,i.vLineThickness,1),N=T*.5,C=Boolean(Number(v(t.dashed,0))),k=c(t.dashlen,5),L=c(t.dashgap,2),A=i.smartLabel,O=parseInt(u.fontSize,10)+2,M=0,_=c(t.rotatelabel,i.rotateVLineLabels)?270:0,y=y<0||y>1?.5:y,g=g<0||g>1?0:g;A.setStyle(u);A=A.getOriSize(f);E=sa(E,b?w:"0");if(s){switch(d){case"top":O-=A.height+N+2;break;case"middle":O-=A.height*.5+1;break;default:O+=N}t.labelhalign||(M-=A.width*g)}else{switch(d){case"top":O-=A.height+2+(r||1)*(1-g)+g;break;case"middle":O-=A.height*.5+r*(1-g*2);break;default:O+=(r-o)*g}switch(p){case"left":M+=T;break;case"right":M-=T+1}}e.plotLines.push({isVline:!0,color:E,width:T,value:n-1+y,zIndex:c(t.showontop,i.showVLinesOnTop)?5:3,dashStyle:C?Ma(k,L,T):void 0,label:{text:f,align:s?"left":"center",offsetScale:g,rotation:_,y:O,x:M,textAlign:p,backgroundColor:S,borderWidth:b&&l?"1px":m,borderType:b&&l?"solid":m,borderColor:b&&l?x:m,backgroundOpacity:b&&h?v(t.labelbgalpha,i.vLineLabelBgAlpha)/100:0,style:{color:b?x:E,fontSize:u.fontSize,fontFamily:u.fontFamily,lineHeight:u.lineHeight,backgroundColor:S}}})}};return n.prototype.constructor=n}();(function(){function e(e,t,n){var r;if(t<=0)return String(I(e));if(isNaN(t))return e=e.toString(),e.length>12&&e.indexOf(w)!=-1&&(t=12-e.split(w)[0].length,r=ia(10,t),e=String(I(e*r)/r)),e;r=ia(10,t);e=String(I(e*r)/r);if(n==1){e.indexOf(w)==-1&&(e+=".0");n=e.split(w);t-=n[1].length;for(n=1;n<=t;n++)e+=X}return e}function n(e,t,n,r){var i=Number(e);if(isNaN(i))return m;var s=m,o=!1,u=m,a=m,f=u=0,u=0,f=e.length;e.indexOf(w)!=-1&&(s=e.substring(e.indexOf(w)+1,e.length),f=e.indexOf(w));i<0&&(o=!0,u=1);u=e.substring(u,f);e=u.length;i=r.length-1;f=r[i];if(e<f)a=u;else for(;e>=f;)a=(e-f?n:m)+u.substr(e-f,f)+a,e-=f,f=(i-=1)<=0?r[0]:r[i],e<f&&(a=u.substring(e,0)+a);s!=m&&(a=a+t+s);o==!0&&(a="-"+a);return a}var r={formatnumber:"1",formatnumberscale:"1",defaultnumberscale:m,numberscaleunit:["K","M"],numberscalevalue:[1e3,1e3],numberprefix:m,numbersuffix:m,decimals:m,forcedecimals:X,yaxisvaluedecimals:"2",decimalseparator:w,thousandseparator:",",thousandseparatorposition:[3],indecimalseparator:m,inthousandseparator:m,sformatnumber:"1",sformatnumberscale:X,sdefaultnumberscale:m,snumberscaleunit:["K","M"],snumberscalevalue:[1e3,1e3],snumberprefix:m,snumbersuffix:m,sdecimals:"2",sforcedecimals:X,syaxisvaluedecimals:"2",xFormatNumber:X,xFormatNumberScale:X,xDefaultNumberScale:m,xNumberScaleUnit:["K","M"],xNumberScaleValue:[1e3,1e3],xNumberPrefix:m,xNumberSuffix:m},i={mscombidy2d:{formatnumberscale:"1"}},o=function(e,n,s){var o,u,a,l,h,p,m,g,y,b=n.name,w=t({},r),E,x;(a=i[b])&&(w=t(w,a));this.csConf=w;this.chartAPI=n;S(e.numberscaleunit)&&(o=e.numberscaleunit.split(","));if(u=S(e.snumberscaleunit,e.numberscaleunit))u=u.split(",");if(a=S(e.xnumberscaleunit,e.numberscaleunit))a=a.split(",");if(l=S(e.ticknumberscaleunit,e.numberscaleunit))l=l.split(",");if(h=S(e.ynumberscaleunit,e.numberscaleunit))h=h.split(",");S(e.numberscalevalue)&&(p=e.numberscalevalue.split(","));if(x=S(e.snumberscalevalue,e.numberscalevalue))x=x.split(",");if(m=S(e.xnumberscalevalue,e.numberscalevalue))m=m.split(",");if(g=S(e.ticknumberscalevalue,e.numberscalevalue))g=g.split(",");if(y=S(e.ynumberscalevalue,e.numberscalevalue))y=y.split(",");if(S(e.thousandseparatorposition)){E=e.thousandseparatorposition.split(",");for(var T=E.length,N,C=c(E[T]),C=C?C:r.thousandseparatorposition[0];T;)T-=1,(N=c(Math.abs(E[T])))?C=N:N=C,E[T]=N}n||(n={});T=c(e.scalerecursively,0);N=c(e.sscalerecursively,T);var C=c(e.xscalerecursively,T),k=c(e.maxscalerecursion,-1),L=c(e.smaxscalerecursion,k),A=c(e.xmaxscalerecursion,k),O=S(e.scaleseparator," "),M=S(e.sscaleseparator,O),_=S(e.xscaleseparator,O);if(!k||k==0)k=-1;this.baseConf=o={cacheStore:[],formatnumber:v(e.formatnumber,n.formatnumber,w.formatnumber),formatnumberscale:v(e.formatnumberscale,n.formatnumberscale,w.formatnumberscale),defaultnumberscale:W(e.defaultnumberscale,n.defaultnumberscale,w.defaultnumberscale),numberscaleunit:v(o,n.numberscaleunit,w.numberscaleunit).concat(),numberscalevalue:v(p,n.numberscalevalue,w.numberscalevalue).concat(),numberprefix:W(e.numberprefix,n.numberprefix,w.numberprefix),numbersuffix:W(e.numbersuffix,n.numbersuffix,w.numbersuffix),decimalprecision:parseInt(e.decimals==="auto"?w.decimalprecision:v(e.decimals,e.decimalprecision,n.decimals,w.decimals,n.decimalprecision,w.decimalprecision),10),forcedecimals:v(e.forcedecimals,n.forcedecimals,w.forcedecimals),decimalseparator:v(e.decimalseparator,n.decimalseparator,w.decimalseparator),thousandseparator:v(e.thousandseparator,n.thousandseparator,w.thousandseparator),thousandseparatorposition:v(E,n.thousandseparatorposition,w.thousandseparatorposition),indecimalseparator:W(e.indecimalseparator,n.indecimalseparator,w.indecimalseparator),inthousandseparator:W(e.inthousandseparator,n.inthousandseparator,w.inthousandseparator),scalerecursively:T,maxscalerecursion:k,scaleseparator:O};this.Y=[];if(!s){s={cacheStore:[],formatnumber:o.formatnumber,formatnumberscale:o.formatnumberscale,defaultnumberscale:o.defaultnumberscale,numberscaleunit:o.numberscaleunit.concat(),numberscalevalue:o.numberscalevalue.concat(),numberprefix:o.numberprefix,numbersuffix:o.numbersuffix,decimalprecision:o.decimalprecision,forcedecimals:o.forcedecimals,decimalseparator:o.decimalseparator,thousandseparator:o.thousandseparator,thousandseparatorposition:o.thousandseparatorposition,indecimalseparator:o.indecimalseparator,inthousandseparator:o.inthousandseparator,scalerecursively:T,maxscalerecursion:k,scaleseparator:O};if(!n.useScaleRecursively||(s.numberscalevalue&&s.numberscalevalue.length)!=(s.numberscaleunit&&s.numberscaleunit.length))s.scalerecursively=T=0;p={cacheStore:[],formatnumber:s.formatnumber,formatnumberscale:s.formatnumberscale,defaultnumberscale:s.defaultnumberscale,numberscaleunit:s.numberscaleunit.concat(),numberscalevalue:s.numberscalevalue.concat(),numberprefix:s.numberprefix,numbersuffix:s.numbersuffix,decimalprecision:parseInt(v(e.yaxisvaluedecimals,s.decimalprecision,2)),forcedecimals:v(e.forceyaxisvaluedecimals,s.forcedecimals),decimalseparator:s.decimalseparator,thousandseparator:s.thousandseparator,thousandseparatorposition:s.thousandseparatorposition.concat(),indecimalseparator:s.indecimalseparator,inthousandseparator:s.inthousandseparator,scalerecursively:T,maxscalerecursion:k,scaleseparator:O};x={cacheStore:[],formatnumber:v(e.sformatnumber,n.sformatnumber,r.sformatnumber),formatnumberscale:v(e.sformatnumberscale,n.sformatnumberscale,r.sformatnumberscale),defaultnumberscale:W(e.sdefaultnumberscale,n.sdefaultnumberscale,s.defaultnumberscale),numberscaleunit:v(u,n.snumberscaleunit,r.snumberscaleunit).concat(),numberscalevalue:v(x,n.snumberscalevalue,r.snumberscalevalue).concat(),numberprefix:W(e.snumberprefix,n.snumberprefix,r.snumberprefix),numbersuffix:W(e.snumbersuffix,n.snumbersuffix,r.snumbersuffix),decimalprecision:parseInt(v(e.syaxisvaluedecimals,e.sdecimals,e.decimals,n.sdecimals,r.sdecimals),10),forcedecimals:v(e.forcesyaxisvaluedecimals,e.sforcedecimals,e.forcedecimals,n.sforcedecimals,r.sforcedecimals),decimalseparator:v(e.decimalseparator,n.decimalseparator,r.decimalseparator),thousandseparator:v(e.thousandseparator,n.thousandseparator,r.thousandseparator),thousandseparatorposition:s.thousandseparatorposition.concat(),indecimalseparator:v(e.indecimalseparator,n.indecimalseparator,r.indecimalseparator),inthousandseparator:v(e.inthousandseparator,n.inthousandseparator,r.inthousandseparator),scalerecursively:N,maxscalerecursion:L,scaleseparator:M};u=t({},x);u.decimalprecision=parseInt(v(e.sdecimals,e.decimals,e.syaxisvaluedecimals,n.sdecimals,r.sdecimals),10);u.forcedecimals=v(e.sforcedecimals,e.forcedecimals,e.forcesyaxisvaluedecimals,n.sforcedecimals,r.sforcedecimals);u.cacheStore=[];if(!n.useScaleRecursively||(x.numberscalevalue&&x.numberscalevalue.length)!=(x.numberscaleunit&&x.numberscaleunit.length))x.scalerecursively=N=0;if(/^(bubble|scatter|selectscatter)$/.test(b))p.formatnumber=v(e.yformatnumber,p.formatnumber),p.formatnumberscale=v(e.yformatnumberscale,p.formatnumberscale),p.defaultnumberscale=W(e.ydefaultnumberscale,p.defaultnumberscale),p.numberscaleunit=v(h,p.numberscaleunit),p.numberscalevalue=v(y,p.numberscalevalue),p.numberprefix=v(e.ynumberprefix,p.numberprefix),p.numbersuffix=v(e.ynumbersuffix,p.numbersuffix),s.formatnumber=v(e.yformatnumber,s.formatnumber),s.formatnumberscale=v(e.yformatnumberscale,s.formatnumberscale),s.defaultnumberscale=W(e.ydefaultnumberscale,s.defaultnumberscale),s.numberscaleunit=v(e.ynumberscaleunit,s.numberscaleunit.concat()),s.numberscalevalue=v(e.ynumberscalevalue,s.numberscalevalue.concat()),s.numberprefix=v(e.ynumberprefix,s.numberprefix),s.numbersuffix=v(e.ynumbersuffix,s.numbersuffix);if(/^(mscombidy2d|mscombidy3d)$/.test(b))x.formatnumberscale=c(e.sformatnumberscale,"1");if(/^(pie2d|pie3d|doughnut2d|doughnut3d|marimekko|pareto2d|pareto3d)$/.test(b))s.decimalprecision=v(e.decimals,"2");T&&(s.numberscalevalue.push(1),s.numberscaleunit.unshift(s.defaultnumberscale),p.numberscalevalue.push(1),p.numberscaleunit.unshift(p.defaultnumberscale));N&&(x.numberscalevalue.push(1),x.numberscaleunit.unshift(x.defaultnumberscale),u.numberscalevalue.push(1),u.numberscaleunit.unshift(u.defaultnumberscale));this.Y[0]={yAxisLabelConf:p,dataLabelConf:s};this.Y[1]={yAxisLabelConf:x,dataLabelConf:u};this.paramLabels=s;this.param1=p;this.param2=x;this.paramLabels2=u}this.paramX={cacheStore:[],formatnumber:v(e.xformatnumber,o.formatnumber),formatnumberscale:v(e.xformatnumberscale,o.formatnumberscale),defaultnumberscale:W(e.xdefaultnumberscale,o.defaultnumberscale),numberscaleunit:v(a,o.numberscaleunit.concat()),numberscalevalue:v(m,o.numberscalevalue.concat()),numberprefix:v(e.xnumberprefix,o.numberprefix),numbersuffix:v(e.xnumbersuffix,o.numbersuffix),decimalprecision:parseInt(v(e.xaxisvaluedecimals,e.xaxisvaluesdecimals,o.decimalprecision,2),10),forcedecimals:v(e.forcexaxisvaluedecimals,0),decimalseparator:o.decimalseparator,thousandseparator:o.thousandseparator,thousandseparatorposition:o.thousandseparatorposition.concat(),indecimalseparator:o.indecimalseparator,inthousandseparator:o.inthousandseparator,scalerecursively:C,maxscalerecursion:A,scaleseparator:_};if(!n.useScaleRecursively||(this.paramX.numberscalevalue&&this.paramX.numberscalevalue.length)!=(this.paramX.numberscaleunit&&this.paramX.numberscaleunit.length))this.paramX.scalerecursively=C=0;C&&(this.paramX.numberscalevalue.push(1),this.paramX.numberscaleunit.unshift(this.paramX.defaultnumberscale));this.paramScale={cacheStore:[],formatnumber:v(e.tickformatnumber,o.formatnumber),formatnumberscale:v(e.tickformatnumberscale,o.formatnumberscale),defaultnumberscale:W(e.tickdefaultnumberscale,o.defaultnumberscale),numberscaleunit:v(l,o.numberscaleunit.concat()),numberscalevalue:v(g,o.numberscalevalue.concat()),numberprefix:v(e.ticknumberprefix,o.numberprefix),numbersuffix:v(e.ticknumbersuffix,o.numbersuffix),decimalprecision:parseInt(v(e.tickvaluedecimals,o.decimalprecision,"2")),forcedecimals:v(e.forcetickvaluedecimals,o.forcedecimals,0),decimalseparator:o.decimalseparator,thousandseparator:o.thousandseparator,thousandseparatorposition:o.thousandseparatorposition.concat(),indecimalseparator:o.indecimalseparator,inthousandseparator:o.inthousandseparator,scalerecursively:T,maxscalerecursion:k,scaleseparator:O};T&&(this.paramScale.numberscalevalue.push(1),this.paramScale.numberscaleunit.unshift(this.paramScale.defaultnumberscale));this.timeConf={inputDateFormat:v(e.inputdateformat,e.dateformat),outputDateFormat:v(e.outputdateformat,e.inputdateformat,e.dateformat),days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],daySuffix:["st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st"]}};o.prototype={cleaneValueCacheStore:{},percentStrCacheStore:{},dispose:function(){this.Y&&delete this.Y;this.cleaneValueCacheStore&&delete this.cleaneValueCacheStore;this.percentStrCacheStore&&delete this.percentStrCacheStore;this.baseConf&&delete this.baseConf;this.timeConf&&delete this.timeConf;this.paramX&&delete this.paramX;this.paramScale&&delete this.paramScale},parseMLAxisConf:function(e,t){var n=this.baseConf,i=this.csConf,o=this.chartAPI,u=c(e.scalerecursively,n.scalerecursively),a=c(e.maxscalerecursion,n.maxscalerecursion),f=S(e.scaleseparator,n.scaleseparator),l,h,p,m,g,y,t=c(t,this.Y.length);S(e.numberscaleunit)&&(l=e.numberscaleunit.split(","));S(e.numberscalevalue)&&(h=e.numberscalevalue.split(","));a||(a=-1);if(S(e.thousandseparatorposition)){p=e.thousandseparatorposition.split(",");m=p.length;for(y=r.thousandseparatorposition[0];m--;)(g=c(s(p[m])))?y=g:g=y,p[m]=g}n={cacheStore:[],formatnumber:v(e.formatnumber,n.formatnumber),formatnumberscale:v(e.formatnumberscale,n.formatnumberscale),defaultnumberscale:W(e.defaultnumberscale,n.defaultnumberscale),numberscaleunit:v(l,n.numberscaleunit).concat(),numberscalevalue:v(h,n.numberscalevalue).concat(),numberprefix:W(e.numberprefix,n.numberprefix),numbersuffix:W(e.numbersuffix,n.numbersuffix),forcedecimals:v(e.forcedecimals,n.forcedecimals),decimalprecision:parseInt(e.decimals==="auto"?i.decimalprecision:v(e.decimals,n.decimalprecision),10),decimalseparator:v(e.decimalseparator,n.decimalseparator),thousandseparator:v(e.thousandseparator,n.thousandseparator),thousandseparatorposition:v(p,n.thousandseparatorposition),indecimalseparator:W(e.indecimalseparator,n.indecimalseparator),inthousandseparator:W(e.inthousandseparator,n.inthousandseparator),scalerecursively:u,maxscalerecursion:a,scaleseparator:f};if(!o.useScaleRecursively||(n.numberscalevalue&&n.numberscalevalue.length)!=(n.numberscaleunit&&n.numberscaleunit.length))n.scalerecursively=u=0;o={cacheStore:[],formatnumber:n.formatnumber,formatnumberscale:n.formatnumberscale,defaultnumberscale:n.defaultnumberscale,numberscaleunit:n.numberscaleunit.concat(),numberscalevalue:n.numberscalevalue.concat(),numberprefix:n.numberprefix,numbersuffix:n.numbersuffix,decimalprecision:parseInt(v(e.yaxisvaluedecimals,n.decimalprecision,2)),forcedecimals:v(e.forceyaxisvaluedecimals,n.forcedecimals),decimalseparator:n.decimalseparator,thousandseparator:n.thousandseparator,thousandseparatorposition:n.thousandseparatorposition.concat(),indecimalseparator:n.indecimalseparator,inthousandseparator:n.inthousandseparator,scalerecursively:u,maxscalerecursion:a,scaleseparator:f};u&&(n.numberscalevalue.push(1),n.numberscaleunit.unshift(n.defaultnumberscale),o.numberscalevalue.push(1),o.numberscaleunit.unshift(o.defaultnumberscale));this.Y[t]={dataLabelConf:n,yAxisLabelConf:o}},percentValue:function(t){var r=this.percentStrCacheStore[t];r===void 0&&(r=isNaN(this.paramLabels.decimalprecision)?"2":this.paramLabels.decimalprecision,r=this.percentStrCacheStore[t]=n(e(t,r,this.paramLabels.forcedecimals),this.paramLabels.decimalseparator,this.paramLabels.thousandseparator,this.paramLabels.thousandseparatorposition)+"%");return r},getCleanValue:function(e,t){var n=this.cleaneValueCacheStore[e],r;if(n===void 0){n=e;r=this.baseConf.indecimalseparator;var i=this.baseConf.inthousandseparator;n+=m;S(i)&&(i=i.replace(/(\W)/ig,"\\$1"),n=n.toString().replace(RegExp(i,"g"),m));S(r)&&(n=n.replace(r,w));r=!isNaN(n=parseFloat(n))&&isFinite(n)?n:NaN;this.cleaneValueCacheStore[e]=n=isNaN(r)?null:t?s(r):r}return n},dataLabels:function(e,t){var n=this.Y[t]||(t?this.Y[1]:this.Y[0]),r,n=n&&n.dataLabelConf||this.baseConf;r=n.cacheStore[e];r===void 0&&(r=n.cacheStore[e]=u(e,n));return r},yAxis:function(e,t){var n=this.Y[t]||(t?this.Y[1]:this.Y[0]),r,n=n&&n.yAxisLabelConf||this.baseConf;r=n.cacheStore[e];r===void 0&&(r=n.cacheStore[e]=u(e,n));return r},xAxis:function(e){var t=this.paramX.cacheStore[e];t===void 0&&(t=this.paramX.cacheStore[e]=u(e,this.paramX));return t},sYAxis:function(e){var t=this.Y[1],n,t=t&&t.yAxisLabelConf||this.baseConf;n=t.cacheStore[e];n===void 0&&(n=t.cacheStore[e]=u(e,t));return n},scale:function(e){var t=this.paramScale.cacheStore[e];t===void 0&&(t=this.paramScale.cacheStore[e]=u(e,this.paramScale));return t},getCleanTime:function(e){var t;this.timeConf.inputDateFormat&&Date.parseExact&&(t=Date.parseExact(e,this.timeConf.inputDateFormat));return t&&t.getTime()},getDateValue:function(e){e=e&&/^dd/.test(this.timeConf.inputDateFormat)&&e.replace(/(\d{1,2})\/(\d{1,2})\/(\d{2,4})/,"$2/$1/$3")||e;e=new Date(e);return{ms:e.getTime(),date:e}},getFormatedDate:function(e,t){var n=typeof e==="object"&&e||this.getDateValue(e).date,r=this.timeConf,i=v(t,r.outputDateFormat),s=n.getFullYear(),o=n.getMonth(),u=n.getDate(),a=n.getDay(),f=n.getMinutes(),l=n.getSeconds(),n=n.getHours();i.match(/dnl/)&&(i=i.replace(/dnl/ig,r.days[a]));i.match(/dns/)&&(i=i.replace(/dns/ig,r.days[a].substr(0,3)));i.match(/dd/)&&(i=i.replace(/dd/ig,u));i.match(/mnl/)&&(i=i.replace(/mnl/ig,r.months[o]));i.match(/mns/)&&(i=i.replace(/mns/ig,r.months[o].substr(0,3)));i.match(/mm/)&&(i=i.replace(/mm/ig,o+1));i.match(/yyyy/)&&(i=i.replace(/yyyy/ig,s));i.match(/yy/)&&(i=i.replace(/yy/ig,(s%1e3%100+"").replace(/^(\d)$/,"0$1")));i.match(/hh12/)&&(i=i.replace(/hh12/ig,n%12||12));i.match(/hh/)&&(i=i.replace(/hh/ig,n));i.match(/mn/)&&(i=i.replace(/mn/ig,f));i.match(/ss/)&&(i=i.replace(/ss/ig,l));i.match(/ampm/)&&(i=i.replace(/ampm/ig,n<12?"AM":"PM"));i.match(/ds/)&&(i=i.replace(/ds/ig,r.daySuffix[u]));return i}};o.prototype.constructor=o;var u=function(t,r){if(t!==null){var t=Number(t),i=t+m,s;s=r.formatnumberscale==1?r.defaultnumberscale:m;var o;o=(o=i.split(".")[1])?o.length:r.forcedecimals?"2":m;if(r.formatnumberscale==1){var u,i=t;s=r.numberscalevalue;u=r.numberscaleunit;var f={},l=r.defaultnumberscale,h=0,p,d=[],g=[];if(r.scalerecursively){for(h=0;h<s.length;h++)if(p=c(s[h])||1e3,Math.abs(Number(i))>=p&&h<s.length-1)l=i%p,i=(i-l)/p,l!=0&&(d.push(l),g.push(u[h]));else{d.push(i);g.push(u[h]);break}d.reverse();g.reverse();f.value=d;f.scale=g}else{if(s.length===u.length)for(h=0;h<s.length;h++)if((p=c(s[h])||1e3)&&Math.abs(Number(i))>=p)l=u[h]||m,i=Number(i)/p;else break;f.value=i;f.scale=l}u=f;t=i=u.value;s=u.scale}if(r.scalerecursively&&r.formatnumberscale!=0){s=u.value;u=u.scale;f=r.maxscalerecursion==-1?s.length:Math.min(s.length,r.maxscalerecursion);if(r.formatnumber==1){i="";for(d=0;d<f;d++)h=d==0?s[d]:Math.abs(s[d]),p=String(h),d==f-1&&(p=e(h,v(r.decimalprecision,o),r.forcedecimals)),i=i+n(p,r.decimalseparator,r.thousandseparator,r.thousandseparatorposition)+u[d]+(d<f-1?r.scaleseparator:"")}else{i="";for(d=0;d<f;d++)i=i+String(d==0?s[d]:Math.abs(s[d]))+u[d]+(d<f-1?r.scaleseparator:"")}i=(r.numberprefix||m)+i+(r.numbersuffix||m);delete s;delete u}else r.formatnumber==1&&(i=e(t,v(r.decimalprecision,o),r.forcedecimals),i=n(i,r.decimalseparator,r.thousandseparator,r.thousandseparatorposition)),i=(r.numberprefix||m)+i+s+(r.numbersuffix||m);return i}};return o})();var Xa=function(){var e=function(e,n,r,i,s){e=Math.abs(n-e);n=e/(r+1);t(e/(r+1))>t(i)&&(s&&Number(n)/Number(i)<(i>1?2:.5)&&(i/=10),n=(Math.floor(n/i)+1)*i,e=n*(r+1));return e},t=function(e){var e=Math.abs(e),e=String(e),t=0,n=e.indexOf(w);n!=-1&&(t=e.length-n-1);return t};return function(n,r,i,s,o,u,f,l){var c,n=isNaN(n)==!0||n==void 0?.1:n,r=isNaN(r)==!0||r==void 0?0:r;n==r&&n==0&&(n=.1);var u=typeof u===void 0?!0:u,h=Math.max(Math.floor(Math.log(Math.abs(r))/Math.LN10),Math.floor(Math.log(Math.abs(n))/Math.LN10));c=Math.pow(10,h);Math.abs(n)/c<2&&Math.abs(r)/c<2&&(h--,c=Math.pow(10,h));h=Math.pow(10,Math.floor(Math.log(n-r)/Math.LN10));n-r>0&&c/h>=10&&(c=h);var h=(Math.floor(n/c)+1)*c,p;r<0?p=-1*(Math.floor(Math.abs(r/c))+1)*c:u?p=0:(p=Math.floor(Math.abs(r/c)-1)*c,p=p<0?0:p);(typeof o===void 0||o)&&n<=0&&(h=0);o=i==null||i==void 0||i==m?!1:!0;u=s==null||s==void 0||s==m||isNaN(Number(s))?!1:!0;n=o==!1||o==!0&&Number(i)<n&&n-Number(i)>K?h:Number(i);r=u==!1||u==!0&&Number(s)>r&&Number(s)-r>K?p:Number(s);s=Math.abs(n-r);if(u==!1&&o==!1&&l==!0)if(n>0&&r<0)for(var l=!1,i=c>10?c/10:c,o=e(r,n,f,i,!1)-(f+1)*i,d,v,g,y;l==!1;){if(o+=(f+1)*i,!(t(o/(f+1))>t(i)))if(d=o-s,u=o/(f+1),p=Math.min(Math.abs(r),n),h=p==Math.abs(r)?-1:1,f==0)l=!0;else for(y=1;y<=Math.floor((f+1)/2);y++)v=u*y,!(v-p>d)&&v>p&&(g=o-v,g/u==Math.floor(g/u)&&v/u==Math.floor(v/u)&&(s=o,n=h==-1?g:v,r=h==-1?-v:-g,l=!0))}else l=e(r,n,f,c,!0),d=l-s,s=l,n>0?n+=d:r-=d;else if(l==!0&&f>0){l=0;for(i=1;;){d=f+l*i;d=d==0?1:d;if(!(t(s/(d+1))>t(c)))break;l=i==-1||l>f?++l:l;if(l>25){d=0;break}i=l<=f?i*-1:1}f=d}return{Max:n,Min:r,Range:s,interval:c,divGap:(n-r)/(f+1)}}}(),Ya=function(){var e=function(e,t){this.title.y=e.offsetHeight/2;if(t!==void 0)this.title.text=t};e.prototype={chart:{events:{},margin:[0,0,0,0],backgroundColor:{FCcolor:{alpha:0}}},credits:{href:"http://www.fusioncharts.com?BS=FCHSEvalMark",text:"FusionCharts",enabled:!0},legend:{enabled:!1},title:{text:"",style:{fontFamily:"Verdana",fontSize:"10px",color:"#666666"}},plotOptions:{series:{}},series:[{}],exporting:{enabled:!1},nativeMessage:!0};return e.prototype.constructor=e}(),ka={"true":{"true":{"true":"center","false":"center"},"false":{"true":"center","false":"center"}},"false":{"true":{"true":"right","false":"left"},"false":{"true":"left","false":"right"}}},Wa=function(){return function(n,r,i,s,o,u,f){var l,h=i.trendStyle,p,d,g,y,b,w,E,S,x,T,N,C;parseInt(h.fontSize,10);if(!(u?!i.showVLines:!i.showTrendlines)){l=0;for(d=n.length;l<d;l+=1)if(n[l].line){p=0;for(g=n[l].line.length;p<g;p+=1)if(y=n[l].line[p],T=i.numberFormatter.getCleanValue(v(y.startvalue,y.value,0)),N=i.numberFormatter.getCleanValue(v(y.endvalue,v(y.startvalue,y.value,0))),u?S=r:s&&y.parentyaxis&&/^s$/i.test(y.parentyaxis)?(S=r[1],C=1):S=r[0],w=S.max,E=S.min,b=!1,w>=T&&w>=N&&E<=T&&E<=N){s&&y.parentyaxis&&/^s$/i.test(y.parentyaxis)?b=v(y.valueonleft,i.trendlineValuesOnOpp)!=="1":s||(b=v(y.valueonright,i.trendlineValuesOnOpp)==="1");w=Boolean(c(y.istrendzone,u?1:0));if(E=(u?i.showVLineLabels:i.showTrendlineLabels)?a(v(y.displayvalue,i.numberFormatter[u?"xAxis":"dataLabels"](b?N:T,C))):m){if(x=T<N,b={text:E,textAlign:o?"center":b?"left":"right",align:o?ka[w][!f][x]:b?"right":"left",verticalAlign:o?"bottom":"middle",rotation:0,x:0,y:0,style:h},E=v(y.color,i.trendlineColor),y.alwaysVisible=w,E)b.style=t({},h),b.style.color=E.replace(e,"#")}else b=void 0;E=v(y.tooltext);x=c(y.thickness,i.trendlineThickness,1);w?S.plotBands.push({isTrend:!0,color:sa(v(y.color,i.trendlineColor),v(y.alpha,i.trendlineAlpha,40)),from:T,to:N,label:b,zIndex:!i.is3d&&v(y.showontop,i.showTrendlinesOnTop)==="1"?5:3,tooltext:E,alwaysVisible:y.alwaysVisible}):S.plotLines.push({isTrend:!0,color:sa(v(y.color,i.trendlineColor,i.trendlineColor),v(y.alpha,i.trendlineAlpha,99)),value:T,to:N,width:x,dashStyle:v(y.dashed,i.trendlinesAreDashed)=="1"?Ma(c(y.dashlen,i.trendlinesDashLen),c(y.dashgap,i.trendlinesDashGap),x):void 0,label:b,zIndex:!i.is3d&&v(y.showontop,i.showTrendlinesOnTop)==="1"?5:3,tooltext:E})}}}}}(),Ma=function(e,t,n,r){return r||r===void 0?[e,t]:m},cb=function(){},Oa=function(e,t,n){var r,i=Oa[e];if(!i)i=function(){},i.prototype=n instanceof cb?n:new cb,i.prototype.constructor=i,i=Oa[e]=new i;if(n)i.base=n;i.name=e;for(r in t)switch(typeof t[r]){case"object":if(t[r]instanceof cb){i[r]=t[r][r];break};default:i[r]=t[r];break;case"undefined":delete i[r]}return window!=this&&document!=this&&(typeof element=="undefined"||element!=this)&&this instanceof Oa?(e=function(){},e.prototype=i,e.prototype.constructor=e,new e):i};j.extend(j.hcLib,{BLANKSTRINGPLACEHOLDER:"#BLANK#",BLANKSTRING:m,COLOR_BLACK:"000000",COLOR_GLASS:"rgba(255, 255, 255, 0.3)",COLOR_WHITE:"FFFFFF",COLOR_TRANSPARENT:"rgba(0,0,0,0)",HASHSTRING:"#",BREAKSTRING:"<br />",STRINGSTRING:"string",OBJECTSTRING:"object",COMMASTRING:",",ZEROSTRING:X,SAMPLESTRING:"Ay0",TESTSTR:"Ag",ONESTRING:"1",DECIMALSTRING:w,STRINGUNDEFINED:"undefined",POSITION_TOP:"top",POSITION_RIGHT:"right",POSITION_BOTTOM:"bottom",POSITION_LEFT:"left",POSITION_CENTER:"center",POSITION_MIDDLE:"middle",POSITION_START:"start",POSITION_END:"end",FC_CONFIG_STRING:"_FCconf",SHAPE_RECT:"rect",HUNDREDSTRING:"100",PXSTRING:"px",COMMASPACE:", ",TEXTANCHOR:"text-anchor",regex:{stripWhitespace:A,dropHash:e,startsRGBA:r,cleanColorCode:z,breakPlaceholder:oa,hexcode:/^#?[0-9a-f]{6}/i},fireEvent:function(e,t,n,r){var i=jQuery.Event(t),s="detached"+t;extend(i,n);e[t]&&(e[s]=e[t],e[t]=null);jQuery(e).trigger(i);e[s]&&(e[t]=e[s],e[s]=null);r&&!i.isDefaultPrevented()&&r(i)},addEvent:f,removeEvent:i,getTouchEvent:h,extend2:t,deltend:function(e,t){if(typeof e!=="object"||typeof t!=="object")return null;u(e,t);return e},imprint:function(e,t,n){var r;if(typeof e!=="object"||e===null)return t;if(typeof t!=="object"||t===null)return e;for(r in t)if(e[r]===void 0||!n&&e[r]===null)e[r]=t[r];return e},pluck:v,pluckNumber:c,getFirstDefinedValue:function(){var e,t,n;t=0;for(n=arguments.length;t<n;t+=1)if((e=arguments[t])||!(e!==!1&&e!==0&&e!=m))return e},createElement:function(e,t,n){var e=J.createElement(e),r;for(r in t)e.setAttribute(r,t[r]);n&&n.appendChild&&n.appendChild(e);return e},hashify:function(e){return e&&e.replace(/^#?([a-f0-9]+)/ig,"#$1")||"none"},pluckFontSize:function(){var e,t,n;t=0;for(n=arguments.length;t<n;t+=1)if((e=arguments[t])||!(e!==!1&&e!==0))if(!isNaN(e=Number(e)))return e<1?1:e;return 1},getValidValue:S,getPosition:G,getViewPortDimension:H,bindSelectionEvent:function(e,n,r){var r=r||{},s=e.options.chart,o=e.container,u=s.zoomType,a=t({},r.attr||{}),r=a["stroke-width"]=c(a.strokeWidth,a["stroke-width"],1),l=G(o),r={chart:e,zoomX:/x/.test(u),zoomY:/y/.test(u),canvasY:e.canvasTop,canvasX:e.canvasLeft,canvasW:e.canvasWidth,canvasH:e.canvasHeight,canvasX2:e.canvasLeft+e.canvasWidth,canvasY2:e.canvasTop+e.canvasHeight,strokeWidth:r,chartPosLeft:l.left,chartPosTop:l.top,attr:a,callback:n};a.stroke=W(a.stroke,"rgba(51,153,255,0.8)");a.fill=W(a.fill,"rgba(185,213,241,0.3)");a.ishot=!0;o&&(i(o,"dragstart drag dragend",V),f(o,"dragstart drag dragend",V,r));s.link&&(i(e.container,"mouseup mousedown",L),f(e.container,"mouseup mousedown",L,r))},createContextMenu:function(e){var t=e.chart,n=t.smartLabel,r=e.labels,i=e.hover||{fill:"rgba(64, 64, 64, 1)"},s=e.attrs||{fill:"rgba(255, 255, 255, 1)"},o=r&&r.style||{fontSize:"12px",color:"000000"},u=r&&r.attrs||{},a=r&&r.hover||{color:"FFFFFF"},f=e.items,l=e.position,c=e.verticalPadding||5,h=e.horizontalPadding||10,p=j.hcLib.Raphael,d={},v,m,g;if(t)v=G(t.container);else return!1;var y=function(){g=this;var e=d.items,t=e.length,r=0,i=0,a=0,f=0,l,p=d.group;if(!d.menuItems)d.menuItems=[];for(n.setStyle(o);t--;)l=e[t],l=n.getOriSize(l.text),a||(a=l.height+2*c),r+=a,i=Math.max(i,l.width+2*h);d.height=r;d.width=i;d.itemH=a;g.setSize(i+5,r+5);if(!p)p=d.group=g.group("contextmenu-container");d.menuRect?d.menuRect.attr({width:i,height:r}):d.menuRect=g.rect(0,0,i,r,0,p).shadow(!0).attr({"stroke-width":1,fill:"rgba(255, 255, 255, 1)"});r=e.length;for(t=0;t<r;t+=1)l=e[t],d.menuItems[t]?d.menuItems[t].label.attr({text:l.text}):(d.menuItems[t]={},d.menuItems[t].box=g.rect(0,f,i,a,0,p).attr({stroke:"none"}).attr(s).click(x).hover(E,S),d.menuItems[t].label=g.text(h/2,f+a/2,l.text,p).attr({"text-anchor":"start"}).attr(u).css(o).click(x).hover(E,S),d.menuItems[t].box._itemIdx=t,d.menuItems[t].label._itemIdx=t,f+=a);for(;d.menuItems[t];)d.menuItems[t].box.remove(),d.menuItems[t].label.remove(),d.menuItems.splice(t,1)},b=function(e){var n=e.x,e=e.y,r={x:n+v.left,y:e+v.top},i=d.width,s=d.height,o=t.chartHeight;n+i>t.chartWidth&&n-i>0&&(r.x-=i);e+s>o&&e-s>0&&(r.y-=s);return r},w=function(){d.hide()},E=function(){var e=d.menuItems[this._itemIdx];m&&clearTimeout(m);e.box.attr(i);e.label.css(a)},S=function(){var e=d.menuItems[this._itemIdx];e.box.attr(s);e.label.css(o);m=setTimeout(d.hide,800)},x=function(e){var t=d.items[this._itemIdx];t.onclick&&t.onclick.call(t,e);d.hide()};d.showItem=function(e){var t=this.menuItems[e],n=this.height,r=this.itemH;if(t&&t._isHidden){n=this.height=n+r;this.menuRect.attr({height:n});t.box.show();t.label.show();t._isHidden=!1;t=b(l);this.left=t.x;this.top=t.y;for(e+=1;t=this.menuItems[e];)t.box.attr({y:t.box.attrs.y+r}),t.label.attr({y:t.label.attrs.y+r}),e+=1}};d.hideItem=function(e){var t=this.menuItems[e],n=this.height,r=this.itemH;if(t&&!t._isHidden){t.box.hide();t.label.hide();n=this.height=n-r;this.menuRect.attr({height:n});t._isHidden=!0;t=b(l);this.left=t.x;this.top=t.y;for(e+=1;t=this.menuItems[e];)t.box.attr({y:t.box.attrs.y-r}),t.label.attr({y:t.label.attrs.y-r}),e+=1}};d.redraw=function(){var e=this.paper;this.items=f;e?y.call(this.paper):l&&l.x!==void 0&&l.y!==void 0?(this.paper=p(0,0,100,100),y.call(this.paper),e=b(l),this.left=e.x,this.top=e.y,this.paper.canvas.style.left=this.left+"px",this.paper.canvas.style.top=this.top+"px"):(this.paper=p(0,0,100,100),y.call(this.paper))};d.show=function(e){this.visible=!0;e&&e.x!==void 0&&e.y!==void 0?(e=b(e),this.paper.canvas.style.left=e.x+"px",this.paper.canvas.style.top=e.y+"px"):(this.paper.canvas.style.left=this.left+"px",this.paper.canvas.style.top=this.top+"px");d.group.show();setTimeout(function(){p.click(w)},50)};d.hide=function(){this.visible=!1;d.group.hide();d.paper.canvas.style.left=-d.width+"px";d.paper.canvas.style.top=-d.height+"px";p.unclick(w)};d.update=function(e){if(e&&e.length)this.items=e,this.redraw()};d.updatePosition=function(e){var n={left:v.left,top:v.top};v=G(t.container);e?(l=e,e=b(e),this.left=e.x,this.top=e.y):(this.left-=n.left-v.left,this.top-=n.top-v.top)};d.add=function(e){var t=this.paper,n=this.menuItems,r=n.length;n[r]={};n[r].box=t.rect(0,this.height,this.width,this.itemH,0).attr(s).hover(E,S);d.menuItems[r].label=t.text(this.width/2,this.height+this.itemH/2,e.text).attr(u).css(o).hover(E,S);d.menuItems[r].box._itemIdx=r;d.menuItems[r].label._itemIdx=r;this.height+=this.itemH;this.menuRect.attr({height:this.height})};d.removeItems=function(){for(var e=this.menuItems,t=e&&e.length,n;t--;)n=e[t],n.box&&n.box.remove&&n.box.remove(),n.label&&n.label.remove&&n.label.remove();delete this.menuItems;delete this.items};d.setPosition=function(e){e.x!==void 0&&e.y!==void 0&&this.paper.setViewBox(e.x,e.y,this.width,this.height)};d.destroy=function(){this.removeItems();this.menuRect.remove()};f&&f.length&&(d.redraw(),d.hide());return d},getDefinedColor:function(e,t){return!e&&e!=0&&e!=!1?t:e},getFirstValue:W,getFirstColor:function(t){t=t.split(",")[0];t=t.replace(A,m);t==m&&(t="000000");return t.replace(e,"#")},getColorCodeString:function(e,t){var n="",r,i,s=0,o=t.split(",");for(i=o.length;s<i;s+=1)r=o[s].split("-"),n+=r.length===2?r[0].indexOf("dark")!=="-1"?ta(e,100-parseInt(r[1],10))+",":Ka(e,100-parseInt(r[1],10))+",":o[s]+",";return n.substring(0,n.length-1)},pluckColor:function(t){if(S(t))return t=t.split(",")[0],t=t.replace(A,m),t==m&&(t="000000"),t.replace(e,"#")},trimString:function(e){for(var e=e.replace(/^\s\s*/,""),t=/\s/,n=e.length;t.test(e.charAt(n-=1)););return e.slice(0,n+1)},getFirstAlpha:function(e){e=parseInt(e,10);if(isNaN(e)||e>100||e<0)e=100;return e},parsePointValue:d,parseUnsafeString:a,toPrecision:function(e,t){var n=ia(10,t);return I(e*n)/n},hasTouch:ha,getSentenceCase:function(e){e=e||m;return e.charAt(0).toUpperCase()+e.substr(1)},getCrispValues:function(e,t,n){var r=n%2/2,n=I(e+r)-r,e=I(e+t+r)-r-n;return{position:n,distance:e}},isArray:R,stubFN:function(){},falseFN:function(){return!1},stableSort:function(e,t){var n=e.length,r;for(r=0;r<n;r++)e[r].ss_i=r;e.sort(function(e,n){var r=t(e,n);return r===0?e.ss_i-n.ss_i:r});for(r=0;r<n;r++)delete e[r].ss_i},hasSVG:Y,isIE:b,getLinkAction:function(e,t){var n=function(e){return e};return function(){var r=c((e.chart||e.map||{}).unescapelinks,1),i=W(this.link,m),s=v(i,this.options&&this.options.chart&&this.options.chart.link||m,this.series&&this.series.chart&&this.series.chart.options&&this.series.chart.options.chart&&this.series.chart.options.chart.link||m),o=s,u,l,h,p,d,y,w,E,S,x;if(s!==void 0){r&&(s=g.decodeURIComponent?g.decodeURIComponent(s):unescape(s));s=s.replace(/^\s+/,m).replace(/\s+$/,m);if(s.search(/^[a-z]*\s*[\-\:]\s*/i)!==-1)d=s.split(/\s*[\-\:]\s*/)[0].toLowerCase(),x=d.length;setTimeout(function(){switch(d){case"j":s=s.replace(/^j\s*\-/i,"j-");u=s.indexOf("-",2);u===-1?M(s.slice(2)):M(s.substr(2,u-2).replace(/\s/g,m),s.slice(u+1));break;case"javascript":ba(s.replace(/^javascript\s*\:/i,m));break;case"n":s.replace(/^n\s*\-/i,"n-");g.open(n(s.slice(2),r));break;case"f":s=s.replace(/^f\s*\-/i,"f-");u=s.indexOf("-",2);u!==-1?(l=s.substr(2,u-2))&&g.frames[l]?g.frames[l].location=n(s.slice(u+1),r):g.open(n(s.slice(u+1),r),l):g.open(n(s.slice(2),r));break;case"p":s=s.replace(/p\s*\-/i,"p-");u=s.indexOf("-",2);h=s.indexOf(",",2);u===-1&&(u=1);p=n(s.slice(u+1),r);g.open(p,s.substr(2,h-2),s.substr(h+1,u-h-1)).focus();break;case"newchart":case"newmap":s.charAt(x)===":"&&(u=s.indexOf("-",x+1),S=s.substring(x+1,u),x=u);u=s.indexOf("-",x+1);y=s.substring(x+1,u).toLowerCase();switch(y){case"xmlurl":case"jsonurl":E=s.substring(u+1,s.length);break;case"xml":case"json":var i=w=s.substring(u+1,s.length),c={chart:{}},v,i=i.toLowerCase();if(e.linkeddata)for(v=0;v<e.linkeddata.length;v+=1)e.linkeddata[v].id.toLowerCase()===i&&(c=e.linkeddata[v].linkedchart||e.linkeddata[v].linkedmap);E=c;y="json"}j.raiseEvent("LinkedChartInvoked",{alias:S,linkType:y.toUpperCase(),data:E},t);break;default:g.location.href=s}j.raiseEvent("linkclicked",{linkProvided:o,linkInvoked:s,linkAction:d&&d.toLowerCase()},t)},0)}}},graphics:{parseAlpha:ya,convertColor:sa,getDarkColor:Ka,getLightColor:ta,mapSymbolName:function(e,t){var n=ua.circle,e=d(e);e>=3&&(n=(t?ua.spoke:ua.poly)+e);return n},getColumnColor:function(e,t,n,r,i,s,o,u,a){var f,l;f=e.split(",");l=t.split(",");s=s.split(",");o=o.split(",");e=e.replace(/\s/g,m).replace(/\,$/,m);a?u={FCcolor:{color:f[0],alpha:l[0]}}:i?(e=f[0],l=l[0],u={FCcolor:{color:Ka(e,75)+","+ta(e,10)+","+Ka(e,90)+","+ta(e,55)+","+Ka(e,80),alpha:l+","+l+","+l+","+l+","+l,ratio:"0,11,14,57,18",angle:u?"90":"0"}},s=[Ka(e,70)]):(t=ya(t,f.length),u={FCcolor:{color:e,alpha:t,ratio:n,angle:u?-r:r}});return[u,{FCcolor:{color:s[0],alpha:o[0]}}]},getAngle:function(e,t,n){e=Math.atan(t/e)*180/Math.PI;n==2?e=180-e:n==3?e+=180:n==4&&(e=360-e);return e},parseColor:fa,getValidColor:function(e){return Z.test(fa(e))&&e},HSBtoRGB:function(e){var t=e[0],n=0,r=0,i=0,s=[],s=e[1]/100,e=e[2]/100,o=t/60-Math.floor(t/60),u=e*(1-s),a=e*(1-o*s),s=e*(1-(1-o)*s);switch(Math.floor(t/60)%6){case 0:n=e;r=s;i=u;break;case 1:n=a;r=e;i=u;break;case 2:n=u;r=e;i=s;break;case 3:n=u;r=a;i=e;break;case 4:n=s;r=u;i=e;break;case 5:n=e,r=u,i=a}return s=[I(n*255),I(r*255),I(i*255)]},RGBtoHSB:function(e){var t=e[0],n=e[1],e=e[2],r=Math.max(Math.max(t,n),e),i=Math.min(Math.min(t,n),e),s=0,o=0;r==i?s=0:r==t?s=(60*(n-e)/(r-i)+360)%360:r==n?s=60*(e-t)/(r-i)+120:r==e&&(s=60*(t-n)/(r-i)+240);o=r==0?0:(r-i)/r;return[I(s),I(o*100),I(r/255*100)]},RGBtoHex:function(e){return("000000"+(e[0]<<16|e[1]<<8|e[2]).toString(16)).slice(-6)},HEXtoRGB:function(e){var e=parseInt(e,16),t=Math.floor(e/65536),n=Math.floor((e-t*65536)/256);return[t,n,Math.floor(e-t*65536-n*256)]}},setImageDisplayMode:function(e,t,n,r,i,s,o,u){var a=u.width*(r/100),r=u.height*(r/100),u={},f,l=s-i*2;f=o-i*2;var c=function(e,t,n,r,s,o){var u={};switch(e){case"top":u.y=i;break;case"bottom":u.y=o-r-i;break;case"middle":u.y=(o-r)/2}switch(t){case"left":u.x=i;break;case"right":u.x=s-n-i;break;case"middle":u.x=(s-n)/2}return u};switch(e){case"center":u.width=a;u.height=r;u.y=o/2-r/2;u.x=s/2-a/2;break;case"stretch":u.width=s-i*2;u.height=o-i*2;u.y=i;u.x=i;break;case"tile":u.width=a;u.height=r;u.tileInfo={};u.tileInfo.xCount=e=Math.ceil(l/a);u.tileInfo.yCount=f=Math.ceil(f/r);alignObj=c(t,n,a*e,r*f,s,o);u.y=alignObj.y;u.x=alignObj.x;break;case"fit":e=a/r>l/f?l/a:f/r;u.width=a*e;u.height=r*e;alignObj=c(t,n,u.width,u.height,s,o);u.y=alignObj.y;u.x=alignObj.x;break;case"fill":e=a/r>l/f?f/r:l/a;u.width=a*e;u.height=r*e;alignObj=c(t,n,u.width,u.height,s,o);u.y=alignObj.y;u.x=alignObj.x;break;default:alignObj=c(t,n,a,r,s,o),u.width=a,u.height=r,u.y=alignObj.y,u.x=alignObj.x}return u},setLineHeight:La,supportedStyle:Fa,getAxisLimits:Xa,createTrendLine:Wa,getDashStyle:Ma,axisLabelAdder:eb,chartAPI:Oa,createDialog:Ya,defaultPaletteOptions:{bgColor:["CBCBCB,E9E9E9","CFD4BE,F3F5DD","C5DADD,EDFBFE","A86402,FDC16D","FF7CA0,FFD1DD"],bgAngle:[270,270,270,270,270],bgRatio:["0,100","0,100","0,100","0,100","0,100"],bgAlpha:["50,50","60,50","40,20","20,10","30,30"],canvasBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],canvasBgAngle:[0,0,0,0,0],canvasBgAlpha:["100","100","100","100","100"],canvasBgRatio:[m,m,m,m,m],canvasBorderColor:["545454","545454","415D6F","845001","68001B"],canvasBorderAlpha:[100,100,100,90,100],showShadow:[0,1,1,1,1],divLineColor:["717170","7B7D6D","92CDD6","965B01","68001B"],divLineAlpha:[40,45,65,40,30],altHGridColor:["EEEEEE","D8DCC5","99C4CD","DEC49C","FEC1D0"],altHGridAlpha:[50,35,10,20,15],altVGridColor:["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],altVGridAlpha:[10,20,10,15,10],anchorBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["555555","60634E","025B6A","A15E01","68001B"],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50],legendBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],legendBorderColor:["545454","545454","415D6F","845001","D55979"],plotGradientColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],plotBorderColor:["333333","8A8A8A","FFFFFF","FFFFFF","FFFFFF"],plotFillColor:["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],bgColor3D:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],bgAlpha3D:["100","100","100","100","100"],bgAngle3D:[90,90,90,90,90],bgRatio3D:[m,m,m,m,m],canvasBgColor3D:["DDE3D5","D8D8D7","EEDFCA","CFD2D8","FEE8E0"],canvasBaseColor3D:["ACBB99","BCBCBD","C8A06C","96A4AF","FAC7BC"],divLineColor3D:["ACBB99","A4A4A4","BE9B6B","7C8995","D49B8B"],divLineAlpha3D:[100,100,100,100,100],legendBgColor3D:["F0F3ED","F3F3F3","F7F0E8","EEF0F2","FEF8F5"],legendBorderColor3D:["C6CFB8","C8C8C8","DFC29C","CFD5DA","FAD1C7"],toolTipbgColor3D:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor3D:["49563A","666666","49351D","576373","681C09"],baseFontColor3D:["49563A","4A4A4A","49351D","48505A","681C09"],anchorBgColor3D:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"]}})}})();(function(e){e.fn.drag=function(t,n,r){var i=typeof t=="string"?t:"",s=e.isFunction(t)?t:e.isFunction(n)?n:null;i.indexOf("drag")!==0&&(i="drag"+i);r=(t==s?n:r)||{};return s?this.bind(i,r,s):this.trigger(i)};var t=e.event,n=t.dispatch||t.handle,r="ontouchstart"in document.documentElement,i=r?"touchstart":"mousedown",s=r?"touchmove touchend":"mousemove mouseup",o=function(t,n){var r;if(!n.touchXY||!t.originalEvent)return t;r=t.originalEvent||t.sourceEvent;(r=r.changedTouches||r.touches)&&r.length&&e.extend(t,r[0]);return t},u=t.special,a=u.drag={defaults:{which:1,distance:0,not:":input",handle:null,relative:!1,drop:!1,click:!1,touchXY:!0},datakey:"dragdata",livekey:"livedrag",add:function(n){var r=e.data(this,a.datakey)||e.data(this,a.datakey,e.extend({related:0},a.defaults)),i=n.data||{};r.related+=1;if(!r.live&&n.selector)r.live=!0,t.add(this,"draginit."+a.livekey,a.delegate);e.each(a.defaults,function(e){i[e]!==void 0&&(r[e]=i[e])})},remove:function(){(e.data(this,a.datakey)||{}).related-=1},setup:function(){if(!e.data(this,a.datakey)){var n=e.extend({related:0},a.defaults);e.data(this,a.datakey,n);t.add(this,i,a.init,n);this.attachEvent&&this.attachEvent("ondragstart",a.dontstart)}},teardown:function(){(e.data(this,a.datakey)||{}).related||(e.removeData(this,a.datakey),t.remove(this,i,a.init),t.remove(this,"draginit",a.delegate),a.textselect(!0),this.detachEvent&&this.detachEvent("ondragstart",a.dontstart))},init:function(n){var i=n.data,f;if((f=(f=n.originalEvent||n.sourceEvent)?f.changedTouches||f.touches:[])&&f.length)if(f.length>1)return;else o(n,i);else if(i.which>0&&n.which!=i.which)return;if(!e(n.target).is(i.not)&&(!i.handle||e(n.target).closest(i.handle,n.currentTarget).length))if(i.propagates=1,i.interactions=[a.interaction(this,i)],i.target=n.target,i.pageX=n.pageX,i.pageY=n.pageY,i.dragging=null,f=a.hijack(n,"draginit",i),i.propagates){if((f=a.flatten(f))&&f.length)i.interactions=[],e.each(f,function(){i.interactions.push(a.interaction(this,i))});i.propagates=i.interactions.length;i.drop!==!1&&u.drop&&u.drop.handler(n,i);a.textselect(!1);t.add(document,s,a.handler,i);if(!r)return!1}},interaction:function(t,n){return{drag:t,callback:new a.callback,droppable:[],offset:e(t)[n.relative?"position":"offset"]()||{top:0,left:0}}},handler:function(e){var n=e.data,r;if(!n.dragging&&(e.type==="mousemove"||e.type==="touchmove")){if(Math.pow(e.pageX-n.pageX,2)+Math.pow(e.pageY-n.pageY,2)<Math.pow(n.distance,2))return;e.target=n.target;a.hijack(e,"dragstart",n);if(n.propagates)n.dragging=!0}switch(e.type){case"touchmove":r=e.originalEvent||e.sourceEvent,r=r.touches,n.dragging&&(r&&r.length>1||e.preventDefault(),o(e,n));case"mousemove":if(n.dragging){a.hijack(e,"drag",n);if(n.propagates){n.drop!==!1&&u.drop&&u.drop.handler(e,n);break}e.type="mouseup"};case"touchend":n.dragging&&o(e,n);case"mouseup":if(t.remove(document,s,a.handler),n.dragging&&(n.drop!==!1&&u.drop&&u.drop.handler(e,n),a.hijack(e,"dragend",n)),a.textselect(!0),n.click===!1&&n.dragging)jQuery.event.triggered=!0,setTimeout(function(){jQuery.event.triggered=!1},20),n.dragging=!1}},delegate:function(n){var r=[],i,s=e.data(this,"events")||{};e.each(s.live||[],function(s,o){if(o.preType.indexOf("drag")===0&&(i=e(n.target).closest(o.selector,n.currentTarget)[0]))t.add(i,o.origType+"."+a.livekey,o.origHandler,o.data),e.inArray(i,r)<0&&r.push(i)});if(!r.length)return!1;return e(r).bind("dragend."+a.livekey,function(){t.remove(this,"."+a.livekey)})},hijack:function(t,r,i,s,o){if(i){var u={event:t.originalEvent,type:t.type},f=r.indexOf("drop")?"drag":"drop",l,c=s||0,h,p,s=!isNaN(s)?s:i.interactions.length;t.type=r;t.sourceEvent=u.event;t.originalEvent=null;i.results=[];do if((h=i.interactions[c])&&!(r!=="dragend"&&h.cancelled)){p=a.properties(t,i,h);h.results=[];e(o||h[f]||i.droppable).each(function(s,o){l=(p.target=o)?n.call(o,t,p):null;if(l===!1){if(f=="drag")h.cancelled=!0,i.propagates-=1;r=="drop"&&(h[f][s]=null)}else r=="dropinit"&&h.droppable.push(a.element(l)||o);if(r=="dragstart")h.proxy=e(a.element(l)||h.drag)[0];h.results.push(l);delete t.result;if(r!=="dropinit")return l});i.results[c]=a.flatten(h.results);if(r=="dropinit")h.droppable=a.flatten(h.droppable);r=="dragstart"&&!h.cancelled&&p.update()}while(++c<s);t.type=u.type;t.originalEvent=u.event;return a.flatten(i.results)}},properties:function(e,t,n){var r=n.callback;r.drag=n.drag;r.proxy=n.proxy||n.drag;r.startX=t.pageX;r.startY=t.pageY;r.deltaX=e.pageX-t.pageX;r.deltaY=e.pageY-t.pageY;r.originalX=n.offset.left;r.originalY=n.offset.top;r.offsetX=e.pageX-(t.pageX-r.originalX);r.offsetY=e.pageY-(t.pageY-r.originalY);r.drop=a.flatten((n.drop||[]).slice());r.available=a.flatten((n.droppable||[]).slice());return r},element:function(e){if(e&&(e.jquery||e.nodeType==1))return e},flatten:function(t){return e.map(t,function(t){return t&&t.jquery?e.makeArray(t):t&&t.length?a.flatten(t):t})},textselect:function(t){e(document)[t?"unbind":"bind"]("selectstart",a.dontstart).attr("unselectable",t?"off":"on").css("MozUserSelect",t?"":"none")},dontstart:function(){return!1},callback:function(){}};a.callback.prototype={update:function(){u.drop&&this.available.length&&e.each(this.available,function(e){u.drop.locate(this,e)})}};u.draginit=u.dragstart=u.dragend=a})(jQuery);(function(e){function t(t){var n=t||window.event,r=[].slice.call(arguments,1),i=0,s=0,o=0,t=e.event.fix(n);t.type="wheelchange";t.wheelDelta&&(i=t.wheelDelta/120);t.detail&&(i=-t.detail/3);o=i;n.axis!==void 0&&n.axis===n.HORIZONTAL_AXIS&&(o=0,s=-1*i);n.wheelDeltaY!==void 0&&(o=n.wheelDeltaY/120);n.wheelDeltaX!==void 0&&(s=-1*n.wheelDeltaX/120);r.unshift(t,i,s,o);return e.event.handle.apply(this,r)}var n=["DOMMouseScroll","mousewheel"];e.event.special.wheelchange={setup:function(){if(this.addEventListener)for(var e=n.length;e;)this.addEventListener(n[--e],t,!1);else this.onmousewheel=t},teardown:function(){if(this.removeEventListener)for(var e=n.length;e;)this.removeEventListener(n[--e],t,!1);else this.onmousewheel=null}};e.fn.extend({wheelchange:function(e){return e?this.bind("wheelchange",e):this.trigger("wheelchange")},unwheelchange:function(e){return this.unbind("wheelchange",e)}})})(jQuery);FusionCharts(["private","modules.renderer.js-smartlabel",function(){var e=this.hcLib,t=e.isIE,n=e.hasSVG,r=Math.max,i=/ HtmlUnit/.test(navigator.userAgent),s=document,o=/ AppleWebKit\//.test(navigator.userAgent),u=!!s.createElement("canvas").getContext,a=!(!u||!s.createElement("canvas").getContext("2d").measureText),f=function(){function f(e,t,n){if(!e||!e.length)return 0;var r=n.getWidthFunction(),i=0,s=0,s=r(e),o=s/e.length,n=t,i=Math.ceil(t/o);if(s<t)return e.length-1;if(i>e.length)n=t-s,i=e.length;for(;n>0;)if(n=t-r(e.substr(0,i)),s=Math.floor(n/o))i+=s;else return i;for(;n<0;)if(n=t-r(e.substr(0,i)),s=Math.floor(n/o))i+=s;else break;return i}function l(e,t){t=t>5?t:5;this.maxContainers=t<20?t:20;this.last=this.first=null;this.containers={};this.length=0;this.rootNode=e;if(k){var n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttributeNS("http://www.w3.org/2000/svg","xlink","http://www.w3.org/1999/xlink");n.setAttributeNS("http://www.w3.org/2000/svg","height","0");n.setAttributeNS("http://www.w3.org/2000/svg","width","0");this.svgRoot=n;this.rootNode.appendChild(n)}}function c(e,t,n){if(!(typeof e==="undefined"||typeof e==="object")){this.id=e;var r,o;typeof t==="string"&&(t=s.getElementById(t));if(t&&t.offsetWidth&&t.offsetHeight){if(t.appendChild)t.appendChild(r=document.createElement("div")),r.className="_SmartLabel_Container",r.setAttribute("aria-hidden","true"),r.setAttribute("role","presentation")}else if((e=document.getElementsByTagName("body")[0])&&e.appendChild)r=document.createElement("div"),r.className="_SmartLabel_Container",r.setAttribute("aria-hidden","true"),r.setAttribute("role","presentation"),M+=1,e.appendChild(r);r=this.parentContainer=r;r.innerHTML=C;if(i||!r.offsetHeight&&!r.offsetWidth)k=!0;r.innerHTML="";for(o in d)r.style[o]=d[o];this.containerManager=new l(r,10);this.showNoEllipses=!n;this.init=!0;this.style={};this.setStyle()}}var h=e.supportedStyle,p={fontWeight:1,"font-weight":1,fontStyle:1,"font-style":1,fontSize:1,"font-size":1,fontFamily:1,"font-family":1},d={position:"absolute",top:"-9999em",whiteSpace:"nowrap",padding:"0px",width:"1px",height:"1px",overflow:"hidden"},v=o?0:4.5,y=0,E=/\b_SmartLabel\b/,S=/\b_SmartLabelBR\b/,x=/(\<[^\<\>]+?\>)|(&(?:[a-z]+|#[0-9]+);|.)/ig,T=RegExp("\\<span[^\\>]+?_SmartLabel[^\\>]{0,}\\>(.*?)\\<\\/span\\>","ig"),N=/<[^>][^<]*[^>]+>/i,C="WgI",k=!1,L=0,O=0,M=0,_,D,P;s.getElementsByClassName?(_="getElementsByClassName",D="_SmartLabel",P=!0):(_="getElementsByTagName",D="span",P=!1);l.prototype={get:function(e){var t=this.containers,n=this.length,r=this.maxContainers,i,s="",o="",o=this.getCanvasFont(e);for(i in h)e[i]!==void 0&&(s+=h[i]+":"+e[i]+";");if(!s)return!1;if(t[s]){if(s=t[s],this.first!==s)s.prev&&(s.prev.next=s.next),s.next&&(s.next.prev=s.prev),s.next=this.start,s.prev=null,this.last===s&&(this.last=s.prev),this.start=s}else{if(n>=r)for(e=n-r+1;e--;)this.removeContainer(this.last);s=this.addContainer(s,o)}return s},getCanvasFont:function(e){var t,n=[];if(!u||!a)return!1;for(t in p)e[t]!==void 0&&n.push(e[t]);return n.join(" ")},setMax:function(e){var t=this.length,e=e>5?e:5,e=e<20?e:20;if(e<t){for(t-=e;t--;)this.removeContainer(this.last);this.length=e}this.maxContainers=e},addContainer:function(e,r){var i,o;this.containers[e]=o={next:null,prev:null,node:null,ellipsesWidth:0,lineHeight:0,dotWidth:0,avgCharWidth:4,keyStr:e,canvasStr:r,charCache:{}};o.next=this.start;o.next&&(o.next.prev=o);this.start=o;this.length+=1;i=o.node=s.createElement("span");this.rootNode.appendChild(i);t&&!n?i.style.setAttribute("cssText",e):i.setAttribute("style",e);i.setAttribute("aria-hidden","true");i.setAttribute("role","presentation");i.style.display="inline-block";i.innerHTML=C;o.lineHeight=i.offsetHeight;o.avgCharWidth=i.offsetWidth/3;k?(i=o.svgText=s.createElementNS("http://www.w3.org/2000/svg","text"),i.setAttribute("style",e),this.svgRoot.appendChild(i),i.textContent=C,o.lineHeight=i.getBBox().height,o.avgCharWidth=(i.getBBox().width-v)/3,i.textContent="...",o.ellipsesWidth=i.getBBox().width-v,i.textContent=".",o.dotWidth=i.getBBox().width-v):r?(i=o.canvas=s.createElement("canvas"),i.style.height=i.style.width="0px",this.rootNode.appendChild(i),o.context=i=i.getContext("2d"),i.font=r,o.ellipsesWidth=i.measureText("...").width,o.dotWidth=i.measureText(".").width):(i.innerHTML="...",o.ellipsesWidth=i.offsetWidth,i.innerHTML=".",o.dotWidth=i.offsetWidth,i.innerHTML="");return o},removeContainer:function(e){var t=e.keyStr;if(t&&this.length&&e)this.length-=1,e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),this.first===e&&(this.first=e.next),this.last===e&&(this.last=e.prev),delete this.containers[t],delete e}};l.prototype.constructor=l;c.prototype={dispose:function(){var e=this.parentContainer,t;if(this.init){if(e&&(t=e.parentNode))t.removeChild(e),delete this.container;delete this.id;delete this.style;delete this.parentContainer;delete this.showNoEllipses}},useEllipsesOnOverflow:function(e){if(this.init)this.showNoEllipses=!e},getWidthFunction:function(){var e=this.context,t=this.container,n=this.containerObj.svgText;return n?function(e){var t;n.textContent=e;e=n.getBBox();t=e.width-v;if(t<1)t=e.width;return t}:e?function(t){return e.measureText(t).width}:function(e){t.innerHTML=e;return t.offsetWidth}},getSmartText:function(e,t,n,i){if(!this.init)return!1;if(e===void 0||e===null)e="";var s={text:e,maxWidth:t,maxHeight:n,width:null,height:null,oriTextWidth:null,oriTextHeight:null,oriText:e,isTruncated:!1},o=!1,u,a=0,l,c,h=-1,p=-1,d=-1;u=this.container;var v=this.context,m=0,g=0,b,w,C=[],A=0,M=this.showNoEllipses?"":"...",h=this.lineHeight,B=function(e){for(var e=e.replace(/^\s\s*/,""),t=/\s/,n=e.length;t.test(e.charAt(n-=1)););return e.slice(0,n+1)};w=this.getWidthFunction();if(u){if(!k){u.innerHTML=e;s.oriTextWidth=c=u.offsetWidth;s.oriTextHeight=o=u.offsetHeight;if(o<=n&&c<=t)return s.width=s.oriTextWidth=c,s.height=s.oriTextHeight=o,s;if(h>n)return s.text="",s.width=s.oriTextWidth=0,s.height=s.oriTextHeight=0,s}e=B(e).replace(/(\s+)/g," ");o=N.test(e);c=this.showNoEllipses?t:t-y;if(o){a=e.replace(x,"$2");e=e.replace(x,'$1<span class="_SmartLabel">$2</span>');e=e.replace(/(\<br\s*\/*\>)/g,"<span class='_SmartLabel _SmartLabelBR'>$1</span>");u.innerHTML=e;A=u[_](D);v=[];p=h=-1;o=0;for(w=A.length;o<w;o+=1)if(e=A[o],P||E.test(e.className))if(B=e.innerHTML,B!=""){if(B==" ")p=v.length;else if(B=="-")h=v.length;v.push({spaceIdx:p,dashIdx:h,elem:e});C.push(B)}delete A;A=0;o=v.length;L=v[0].elem.offsetWidth;if(L>t)return s.text="",s.width=s.oriTextWidth=s.height=s.oriTextHeight=0,s;else L>c&&!this.showNoEllipses&&(c=t-2*O,c>L?M="..":(c=t-O,c>L?M=".":(c=0,M="")));if(i)for(;A<o;A+=1)e=v[A].elem,i=e.offsetLeft+e.offsetWidth,i>c&&(b||(b=A),u.offsetWidth>t&&(l=A,A=o));else for(;A<o;A+=1)if(e=v[A].elem,w=e.offsetHeight+e.offsetTop,i=e.offsetLeft+e.offsetWidth,C=null,i>c){if(b||(b=A),i>t)p=v[A].spaceIdx,h=v[A].dashIdx,p>d?(v[p].elem.innerHTML="<br/>",d=p):h>d?(v[h].elem.innerHTML=h===A?"<br/>-":"-<br/>",d=h):e.parentNode.insertBefore(C=document.createElement("br"),e),e.offsetHeight+e.offsetTop>n?(C?C.parentNode.removeChild(C):d===h?v[h].elem.innerHTML="-":v[p].elem.innerHTML=" ",l=A,A=o):b=null}else w>n&&(l=A,A=o);if(l<o){s.isTruncated=!0;b=b?b:l;for(A=o-1;A>=b;A-=1)e=v[A].elem,e.parentNode.removeChild(e);for(;A>=0;A-=1)e=v[A].elem,S.test(e.className)?e.parentNode.removeChild(e):A=0}s.text=u.innerHTML.replace(T,"$1");if(s.isTruncated)s.text+=M,s.tooltext=a}else{C=e.split("");o=C.length;u="";l=[];b=C[0];this.cache[b]?L=this.cache[b].width:(L=w(b),this.cache[b]={width:L});if(c>L)l=e.substr(0,f(e,c,this)).split(""),A=l.length;else if(L>t)return s.text="",s.width=s.oriTextWidth=s.height=s.oriTextHeight=0,s;else M&&(c=t-2*O,c>L?M="..":(c=t-O,c>L?M=".":(c=0,M="")));m=w(l.join(""));g=this.lineHeight;if(i){for(;A<o;A+=1)if(b=l[A]=C[A],this.cache[b]?L=this.cache[b].width:(L=w(b),this.cache[b]={width:L}),m+=L,m>c&&(u||(u=l.slice(0,-1).join("")),m>t))return s.text=B(u)+M,s.tooltext=s.oriText,s.width=w(s.text),s.height=this.lineHeight,s;s.text=l.join("");s.width=m;s.height=this.lineHeight}else{for(;A<o;A+=1)if(b=l[A]=C[A],b===" "&&!v&&(b="&nbsp;"),this.cache[b]?L=this.cache[b].width:(L=w(b),this.cache[b]={width:L}),m+=L,m>c&&(u||(u=l.slice(0,-1).join("")),m>t))if(p=e.substr(0,l.length).lastIndexOf(" "),h=e.substr(0,l.length).lastIndexOf("-"),p>d?(m=w(l.slice(d+1,p).join("")),l.splice(p,1,"<br/>"),d=p,i=p+1):h>d?(h===l.length-1?(m=w(l.slice(d+1,p).join("")),l.splice(h,1,"<br/>-")):(m=w(l.slice(d+1,p).join("")),l.splice(h,1,"-<br/>")),d=h,i=h+1):(l.splice(l.length-1,1,"<br/>"+C[A]),i=A),g+=this.lineHeight,g>n)return s.text=B(u)+M,s.tooltext=s.oriText,s.width=a,s.height=g-this.lineHeight,s;else a=r(a,m),u=null,b=f(e.substr(i),c,this),m=w(e.substr(i,b||1)),l.length<i+b&&(l=l.concat(e.substr(l.length,i+b-l.length).split("")),A=l.length-1);a=r(a,m);s.text=l.join("");s.width=a;s.height=g}return s}s.height=u.offsetHeight;s.width=u.offsetWidth}else s.error=Error("Body Tag Missing!");return s},setStyle:function(e){if(!this.init)return!1;if(e!==this.style||this.styleNotSet){if(!e)e=this.style;this.style=e;(this.containerObj=e=this.containerManager.get(e))?(this.container=e.node,this.context=e.context,this.cache=e.charCache,this.lineHeight=e.lineHeight,y=e.ellipsesWidth,O=e.dotWidth,this.styleNotSet=!1):this.styleNotSet=!0}},getTextSize:function(e,t,n){if(!this.init)return!1;var r={text:e,width:null,height:null,oriTextWidth:null,oriTextHeight:null,isTruncated:!1},i=this.container;if(i&&(i.innerHTML=e,r.oriTextWidth=i.offsetWidth,r.oriTextHeight=i.offsetHeight,r.width=Math.min(r.oriTextWidth,t),r.height=Math.min(r.oriTextHeight,n),r.width<r.oriTextWidth||r.height<r.oriTextHeight))r.isTruncated=!0;return r},getOriSize:function(e){if(!this.init)return!1;var t={text:e,width:null,height:null},n=this.container,i=this.getWidthFunction(),s=0;if(k){e=e.split(/(\<br\s*\/*\>)/g);n=e.length;for(t.height=this.lineHeight*n;n--;)s=r(s,i(e[n]));t.width=s}else if(n)n.innerHTML=e,t.width=n.offsetWidth,t.height=n.offsetHeight;return t}};return c.prototype.constructor=c}();e.SmartLabelManager=f}]);FusionCharts(["private","modules.renderer.js-numberformatter",function(){var e=this.hcLib,t=e.pluckNumber,n=e.extend2,r=e.getValidValue,t=e.pluckNumber,i=e.pluck,s=e.getFirstValue,o=Math.abs,u=Math.pow,a=Math.round,f="",l="0",c=".",h="-",p=function(e){return e&&e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};e.NumberFormatter=function(){function e(e,t,n){var r;if(t<=0)return a(e)+f;if(isNaN(t))return e+=f,e.length>12&&e.indexOf(c)!=-1&&(t=12-e.split(c)[0].length,r=u(10,t),e=a(e*r)/r+f),e;r=u(10,t);e=a(e*r)/r+f;if(n==1){e.indexOf(c)==-1&&(e+=".0");n=e.split(c);t-=n[1].length;for(n=1;n<=t;n++)e+=l}return e}function d(e,t,n,r){var i=Number(e);if(isNaN(i))return f;var s=f,o=!1,u=f,a=f,l=u=0,u=0,l=e.length;e.indexOf(c)!=-1&&(s=e.substring(e.indexOf(c)+1,e.length),l=e.indexOf(c));i<0&&(o=!0,u=1);u=e.substring(u,l);e=u.length;i=r.length-1;l=r[i];if(e<l)a=u;else for(;e>=l;)a=(e-l?n:f)+u.substr(e-l,l)+a,e-=l,l=(i-=1)<=0?r[0]:r[i],e<l&&(a=u.substring(e,0)+a);s!=f&&(a=a+t+s);o==!0&&(a=h+a);return a}var v={formatnumber:"1",formatnumberscale:"1",defaultnumberscale:f,numberscaleunit:["K","M"],numberscalevalue:[1e3,1e3],numberprefix:f,numbersuffix:f,decimals:f,forcedecimals:l,yaxisvaluedecimals:"2",decimalseparator:c,thousandseparator:",",thousandseparatorposition:[3],indecimalseparator:f,inthousandseparator:f,sformatnumber:"1",sformatnumberscale:l,sdefaultnumberscale:f,snumberscaleunit:["K","M"],snumberscalevalue:[1e3,1e3],snumberprefix:f,snumbersuffix:f,sdecimals:"2",sforcedecimals:l,syaxisvaluedecimals:"2",xFormatNumber:l,xFormatNumberScale:l,xDefaultNumberScale:f,xNumberScaleUnit:["K","M"],xNumberScaleValue:[1e3,1e3],xNumberPrefix:f,xNumberSuffix:f},y={mscombidy2d:{formatnumberscale:"1"}},E=function(e,o,u){var a,f,l,c,h,d,b,E,S,x=o.name,T=n({},v),N,C;(l=y[x])&&(T=n(T,l));this.csConf=T;this.chartAPI=o;r(e.numberscaleunit)&&(a=e.numberscaleunit.split(","));if(f=r(e.snumberscaleunit,e.numberscaleunit))f=f.split(",");if(l=r(e.xnumberscaleunit,e.numberscaleunit))l=l.split(",");if(c=r(e.ticknumberscaleunit,e.numberscaleunit))c=c.split(",");if(h=r(e.ynumberscaleunit,e.numberscaleunit))h=h.split(",");r(e.numberscalevalue)&&(d=e.numberscalevalue.split(","));if(C=r(e.snumberscalevalue,e.numberscalevalue))C=C.split(",");if(b=r(e.xnumberscalevalue,e.numberscalevalue))b=b.split(",");if(E=r(e.ticknumberscalevalue,e.numberscalevalue))E=E.split(",");if(S=r(e.ynumberscalevalue,e.numberscalevalue))S=S.split(",");if(r(e.thousandseparatorposition)){N=e.thousandseparatorposition.split(",");for(var k=N.length,L,A=v.thousandseparatorposition[0];k--;)L=parseInt(N[k],10),L>0||(L=A),A=N[k]=L}o||(o={});k=t(e.scalerecursively,0);L=t(e.sscalerecursively,k);var A=t(e.xscalerecursively,k),O=t(e.maxscalerecursion,-1),M=t(e.smaxscalerecursion,O),_=t(e.xmaxscalerecursion,O),D=r(e.scaleseparator," "),P=r(e.sscaleseparator,D),H=r(e.xscaleseparator,D);O||(O=-1);this.baseConf=a={cacheStore:[],formatnumber:i(e.formatnumber,o.formatnumber,T.formatnumber),formatnumberscale:i(e.formatnumberscale,o.formatnumberscale,T.formatnumberscale),defaultnumberscale:s(e.defaultnumberscale,o.defaultnumberscale,T.defaultnumberscale),numberscaleunit:i(a,o.numberscaleunit,T.numberscaleunit).concat(),numberscalevalue:i(d,o.numberscalevalue,T.numberscalevalue).concat(),numberprefix:s(e.numberprefix,o.numberprefix,T.numberprefix),numbersuffix:s(e.numbersuffix,o.numbersuffix,T.numbersuffix),decimalprecision:parseInt(e.decimals==="auto"?T.decimalprecision:i(e.decimals,e.decimalprecision,o.decimals,T.decimals,o.decimalprecision,T.decimalprecision),10),forcedecimals:i(e.forcedecimals,o.forcedecimals,T.forcedecimals),decimalseparator:i(e.decimalseparator,o.decimalseparator,T.decimalseparator),thousandseparator:i(e.thousandseparator,o.thousandseparator,T.thousandseparator),thousandseparatorposition:i(N,o.thousandseparatorposition,T.thousandseparatorposition),indecimalseparator:s(e.indecimalseparator,o.indecimalseparator,T.indecimalseparator),inthousandseparator:s(e.inthousandseparator,o.inthousandseparator,T.inthousandseparator),scalerecursively:k,maxscalerecursion:O,scaleseparator:D};if(r(a.inthousandseparator))this.baseConf._REGinthousandseparator=RegExp(p(a.inthousandseparator),"g");if(r(a.indecimalseparator))this.baseConf._REGindecimalseparator=RegExp(p(a.indecimalseparator));this.Y=[];if(!u){u={cacheStore:[],formatnumber:a.formatnumber,formatnumberscale:a.formatnumberscale,defaultnumberscale:a.defaultnumberscale,numberscaleunit:a.numberscaleunit.concat(),numberscalevalue:a.numberscalevalue.concat(),numberprefix:a.numberprefix,numbersuffix:a.numbersuffix,decimalprecision:a.decimalprecision,forcedecimals:a.forcedecimals,decimalseparator:a.decimalseparator,thousandseparator:a.thousandseparator,thousandseparatorposition:a.thousandseparatorposition,indecimalseparator:a.indecimalseparator,inthousandseparator:a.inthousandseparator,scalerecursively:k,maxscalerecursion:O,scaleseparator:D};if(!o.useScaleRecursively||(u.numberscalevalue&&u.numberscalevalue.length)!=(u.numberscaleunit&&u.numberscaleunit.length))u.scalerecursively=k=0;d={cacheStore:[],formatnumber:u.formatnumber,formatnumberscale:u.formatnumberscale,defaultnumberscale:u.defaultnumberscale,numberscaleunit:u.numberscaleunit.concat(),numberscalevalue:u.numberscalevalue.concat(),numberprefix:u.numberprefix,numbersuffix:u.numbersuffix,decimalprecision:parseInt(i(e.yaxisvaluedecimals,u.decimalprecision,2)),forcedecimals:i(e.forceyaxisvaluedecimals,u.forcedecimals),decimalseparator:u.decimalseparator,thousandseparator:u.thousandseparator,thousandseparatorposition:u.thousandseparatorposition.concat(),indecimalseparator:u.indecimalseparator,inthousandseparator:u.inthousandseparator,scalerecursively:k,maxscalerecursion:O,scaleseparator:D};C={cacheStore:[],formatnumber:i(e.sformatnumber,o.sformatnumber,v.sformatnumber),formatnumberscale:i(e.sformatnumberscale,o.sformatnumberscale,v.sformatnumberscale),defaultnumberscale:s(e.sdefaultnumberscale,o.sdefaultnumberscale,u.defaultnumberscale),numberscaleunit:i(f,o.snumberscaleunit,v.snumberscaleunit).concat(),numberscalevalue:i(C,o.snumberscalevalue,v.snumberscalevalue).concat(),numberprefix:s(e.snumberprefix,o.snumberprefix,v.snumberprefix),numbersuffix:s(e.snumbersuffix,o.snumbersuffix,v.snumbersuffix),decimalprecision:parseInt(i(e.syaxisvaluedecimals,e.sdecimals,e.decimals,o.sdecimals,v.sdecimals),10),forcedecimals:i(e.forcesyaxisvaluedecimals,e.sforcedecimals,e.forcedecimals,o.sforcedecimals,v.sforcedecimals),decimalseparator:i(e.decimalseparator,o.decimalseparator,v.decimalseparator),thousandseparator:i(e.thousandseparator,o.thousandseparator,v.thousandseparator),thousandseparatorposition:u.thousandseparatorposition.concat(),indecimalseparator:i(e.indecimalseparator,o.indecimalseparator,v.indecimalseparator),inthousandseparator:i(e.inthousandseparator,o.inthousandseparator,v.inthousandseparator),scalerecursively:L,maxscalerecursion:M,scaleseparator:P};f=n({},C);f.decimalprecision=parseInt(i(e.sdecimals,e.decimals,e.syaxisvaluedecimals,o.sdecimals,v.sdecimals),10);f.forcedecimals=i(e.sforcedecimals,e.forcedecimals,e.forcesyaxisvaluedecimals,o.sforcedecimals,v.sforcedecimals);f.cacheStore=[];if(!o.useScaleRecursively||(C.numberscalevalue&&C.numberscalevalue.length)!=(C.numberscaleunit&&C.numberscaleunit.length))C.scalerecursively=L=0;if(/^(bubble|scatter|selectscatter)$/.test(x))d.formatnumber=i(e.yformatnumber,d.formatnumber),d.formatnumberscale=i(e.yformatnumberscale,d.formatnumberscale),d.defaultnumberscale=s(e.ydefaultnumberscale,d.defaultnumberscale),d.numberscaleunit=i(h,d.numberscaleunit),d.numberscalevalue=i(S,d.numberscalevalue),d.numberprefix=i(e.ynumberprefix,d.numberprefix),d.numbersuffix=i(e.ynumbersuffix,d.numbersuffix),u.formatnumber=i(e.yformatnumber,u.formatnumber),u.formatnumberscale=i(e.yformatnumberscale,u.formatnumberscale),u.defaultnumberscale=s(e.ydefaultnumberscale,u.defaultnumberscale),u.numberscaleunit=i(e.ynumberscaleunit,u.numberscaleunit.concat()),u.numberscalevalue=i(e.ynumberscalevalue,u.numberscalevalue.concat()),u.numberprefix=i(e.ynumberprefix,u.numberprefix),u.numbersuffix=i(e.ynumbersuffix,u.numbersuffix);if(/^(mscombidy2d|mscombidy3d)$/.test(x))C.formatnumberscale=t(e.sformatnumberscale,"1");if(/^(pie2d|pie3d|doughnut2d|doughnut3d|marimekko|pareto2d|pareto3d)$/.test(x))u.decimalprecision=i(e.decimals,"2");k&&(u.numberscalevalue.push(1),u.numberscaleunit.unshift(u.defaultnumberscale),d.numberscalevalue.push(1),d.numberscaleunit.unshift(d.defaultnumberscale));L&&(C.numberscalevalue.push(1),C.numberscaleunit.unshift(C.defaultnumberscale),f.numberscalevalue.push(1),f.numberscaleunit.unshift(f.defaultnumberscale));this.Y[0]={yAxisLabelConf:d,dataLabelConf:u};this.Y[1]={yAxisLabelConf:C,dataLabelConf:f};this.paramLabels=u;this.param1=d;this.param2=C;this.paramLabels2=f}this.paramX={cacheStore:[],formatnumber:i(e.xformatnumber,a.formatnumber),formatnumberscale:i(e.xformatnumberscale,a.formatnumberscale),defaultnumberscale:s(e.xdefaultnumberscale,a.defaultnumberscale),numberscaleunit:i(l,a.numberscaleunit.concat()),numberscalevalue:i(b,a.numberscalevalue.concat()),numberprefix:i(e.xnumberprefix,a.numberprefix),numbersuffix:i(e.xnumbersuffix,a.numbersuffix),decimalprecision:parseInt(i(e.xaxisvaluedecimals,e.xaxisvaluesdecimals,a.decimalprecision,2),10),forcedecimals:i(e.forcexaxisvaluedecimals,0),decimalseparator:a.decimalseparator,thousandseparator:a.thousandseparator,thousandseparatorposition:a.thousandseparatorposition.concat(),indecimalseparator:a.indecimalseparator,inthousandseparator:a.inthousandseparator,scalerecursively:A,maxscalerecursion:_,scaleseparator:H};if(!o.useScaleRecursively||(this.paramX.numberscalevalue&&this.paramX.numberscalevalue.length)!=(this.paramX.numberscaleunit&&this.paramX.numberscaleunit.length))this.paramX.scalerecursively=A=0;A&&(this.paramX.numberscalevalue.push(1),this.paramX.numberscaleunit.unshift(this.paramX.defaultnumberscale));this.paramScale={cacheStore:[],formatnumber:i(e.tickformatnumber,a.formatnumber),formatnumberscale:i(e.tickformatnumberscale,a.formatnumberscale),defaultnumberscale:s(e.tickdefaultnumberscale,a.defaultnumberscale),numberscaleunit:i(c,a.numberscaleunit.concat()),numberscalevalue:i(E,a.numberscalevalue.concat()),numberprefix:i(e.ticknumberprefix,a.numberprefix),numbersuffix:i(e.ticknumbersuffix,a.numbersuffix),decimalprecision:parseInt(i(e.tickvaluedecimals,a.decimalprecision,"2")),forcedecimals:i(e.forcetickvaluedecimals,a.forcedecimals,0),decimalseparator:a.decimalseparator,thousandseparator:a.thousandseparator,thousandseparatorposition:a.thousandseparatorposition.concat(),indecimalseparator:a.indecimalseparator,inthousandseparator:a.inthousandseparator,scalerecursively:k,maxscalerecursion:O,scaleseparator:D};k&&(this.paramScale.numberscalevalue.push(1),this.paramScale.numberscaleunit.unshift(this.paramScale.defaultnumberscale));this.timeConf={inputDateFormat:i(e.inputdateformat,e.dateformat,"mm/dd/yyyy"),outputDateFormat:i(e.outputdateformat,e.inputdateformat,e.dateformat,"mm/dd/yyyy"),days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],daySuffix:["","st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st"]}};E.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(e,n){var u=this.baseConf,a=this.csConf,f=this.chartAPI,l=t(e.scalerecursively,u.scalerecursively),c=t(e.maxscalerecursion,u.maxscalerecursion),h=r(e.scaleseparator,u.scaleseparator),p,d,m,y,b,E,n=t(n,this.Y.length);r(e.numberscaleunit)&&(p=e.numberscaleunit.split(","));r(e.numberscalevalue)&&(d=e.numberscalevalue.split(","));c||(c=-1);if(r(e.thousandseparatorposition)){m=e.thousandseparatorposition.split(",");y=m.length;for(E=v.thousandseparatorposition[0];y--;)(b=t(o(m[y])))?E=b:b=E,m[y]=b}u={cacheStore:[],formatnumber:i(e.formatnumber,u.formatnumber),formatnumberscale:i(e.formatnumberscale,u.formatnumberscale),defaultnumberscale:s(e.defaultnumberscale,u.defaultnumberscale),numberscaleunit:i(p,u.numberscaleunit).concat(),numberscalevalue:i(d,u.numberscalevalue).concat(),numberprefix:s(e.numberprefix,u.numberprefix),numbersuffix:s(e.numbersuffix,u.numbersuffix),forcedecimals:i(e.forcedecimals,u.forcedecimals),decimalprecision:parseInt(e.decimals==="auto"?a.decimalprecision:i(e.decimals,u.decimalprecision),10),decimalseparator:i(e.decimalseparator,u.decimalseparator),thousandseparator:i(e.thousandseparator,u.thousandseparator),thousandseparatorposition:i(m,u.thousandseparatorposition),indecimalseparator:s(e.indecimalseparator,u.indecimalseparator),inthousandseparator:s(e.inthousandseparator,u.inthousandseparator),scalerecursively:l,maxscalerecursion:c,scaleseparator:h};if(!f.useScaleRecursively||(u.numberscalevalue&&u.numberscalevalue.length)!=(u.numberscaleunit&&u.numberscaleunit.length))u.scalerecursively=l=0;f={cacheStore:[],formatnumber:u.formatnumber,formatnumberscale:u.formatnumberscale,defaultnumberscale:u.defaultnumberscale,numberscaleunit:u.numberscaleunit.concat(),numberscalevalue:u.numberscalevalue.concat(),numberprefix:u.numberprefix,numbersuffix:u.numbersuffix,decimalprecision:parseInt(i(e.yaxisvaluedecimals,u.decimalprecision,2)),forcedecimals:i(e.forceyaxisvaluedecimals,u.forcedecimals),decimalseparator:u.decimalseparator,thousandseparator:u.thousandseparator,thousandseparatorposition:u.thousandseparatorposition.concat(),indecimalseparator:u.indecimalseparator,inthousandseparator:u.inthousandseparator,scalerecursively:l,maxscalerecursion:c,scaleseparator:h};l&&(u.numberscalevalue.push(1),u.numberscaleunit.unshift(u.defaultnumberscale),f.numberscalevalue.push(1),f.numberscaleunit.unshift(f.defaultnumberscale));this.Y[n]={dataLabelConf:u,yAxisLabelConf:f}},percentValue:function(t){var n=this.percentStrCacheStore[t];n===void 0&&(n=isNaN(this.paramLabels.decimalprecision)?"2":this.paramLabels.decimalprecision,n=this.percentStrCacheStore[t]=d(e(t,n,this.paramLabels.forcedecimals),this.paramLabels.decimalseparator,this.paramLabels.thousandseparator,this.paramLabels.thousandseparatorposition)+"%");return n},getCleanValue:function(e,t){var n=this.cleaneValueCacheStore[e];if(n===void 0){var n=e,r=this.baseConf;n+=f;r._REGinthousandseparator&&(n=n.replace(r._REGinthousandseparator,f));r._REGindecimalseparator&&(n=n.replace(r._REGindecimalseparator,c));n=parseFloat(n);n=isFinite(n)?n:NaN;this.cleaneValueCacheStore[e]=n=isNaN(n)?null:t?o(n):n}return n},dataLabels:function(e,t){var n=this.Y[t]||(t?this.Y[1]:this.Y[0]),r,n=n&&n.dataLabelConf||this.baseConf;r=n.cacheStore[e];r===void 0&&(r=n.cacheStore[e]=S(e,n));return r},yAxis:function(e,t){var n=this.Y[t]||(t?this.Y[1]:this.Y[0]),r,n=n&&n.yAxisLabelConf||this.baseConf;r=n.cacheStore[e];r===void 0&&(r=n.cacheStore[e]=S(e,n));return r},xAxis:function(e){var t=this.paramX.cacheStore[e];t===void 0&&(t=this.paramX.cacheStore[e]=S(e,this.paramX));return t},sYAxis:function(e){var t=this.Y[1],n,t=t&&t.yAxisLabelConf||this.baseConf;n=t.cacheStore[e];n===void 0&&(n=t.cacheStore[e]=S(e,t));return n},scale:function(e){var t=this.paramScale.cacheStore[e];t===void 0&&(t=this.paramScale.cacheStore[e]=S(e,this.paramScale));return t},getCleanTime:function(e){var t;this.timeConf.inputDateFormat&&Date.parseExact&&(t=Date.parseExact(e,this.timeConf.inputDateFormat));return t&&t.getTime()},getDateValue:function(e){var n,r,i,e=/^dd/.test(this.timeConf.inputDateFormat)&&e&&e.replace(/(\d{1,2})\/(\d{1,2})\/(\d{2,4})/,"$2/$1/$3")||e;n=new Date(e);r=n.getTime();!r&&e&&/\:/.test(e)&&(e=e.split(":"),r=t(e[0],0),i=t(e[1],0),e=t(e[2],0),r=r>23?r===24&&i===0&&e===0?r:23:r,i=i>59?59:i,e=e>59?59:e,n=new Date,n.setHours(r),n.setMinutes(i),n.setSeconds(e),r=n.getTime());return{ms:r,date:n}},getFormatedDate:function(e,t){var n=typeof e==="object"&&e||new Date(e),r=this.timeConf,s=i(t,r.outputDateFormat),o=n.getFullYear(),u=n.getMonth(),a=n.getDate(),c=n.getDay(),h=n.getMinutes(),p=n.getSeconds(),n=n.getHours(),h=h>9?f+h:l+h,p=p>9?f+p:l+p,n=n>9?f+n:l+n;s.match(/dnl/)&&(s=s.replace(/dnl/ig,r.days[c]));s.match(/dns/)&&(s=s.replace(/dns/ig,r.days[c]&&r.days[c].substr(0,3)));s.match(/dd/)&&(s=s.replace(/dd/ig,a));s.match(/mnl/)&&(s=s.replace(/mnl/ig,r.months[u]));s.match(/mns/)&&(s=s.replace(/mns/ig,r.months[u]&&r.months[u].substr(0,3)));s.match(/mm/)&&(s=s.replace(/mm/ig,u+1));s.match(/yyyy/)&&(s=s.replace(/yyyy/ig,o));s.match(/yy/)&&(s=s.replace(/yy/ig,(o%1e3%100+"").replace(/^(\d)$/,"0$1")));s.match(/hh12/)&&(s=s.replace(/hh12/ig,n%12||12));s.match(/hh/)&&(s=s.replace(/hh/ig,n));s.match(/mn/)&&(s=s.replace(/mn/ig,h));s.match(/ss/)&&(s=s.replace(/ss/ig,p));s.match(/ampm/)&&(s=s.replace(/ampm/ig,n<12?"AM":"PM"));s.match(/ds/)&&(s=s.replace(/ds/ig,r.daySuffix[a]));return s}};E.prototype.constructor=E;var S=function(n,r){if(n!==null){var n=Number(n),s=n+f,o;o=r.formatnumberscale==1?r.defaultnumberscale:f;var u;u=(u=s.split(c)[1])?u.length:r.forcedecimals?"2":f;if(r.formatnumberscale==1){var a,s=n;o=r.numberscalevalue;a=r.numberscaleunit;var l={},h=r.defaultnumberscale,p=0,v,m=[],y=[];if(r.scalerecursively){for(p=0;p<o.length;p++)if(v=t(o[p])||1e3,Math.abs(Number(s))>=v&&p<o.length-1)h=s%v,s=(s-h)/v,h!=0&&(m.push(h),y.push(a[p]));else{m.push(s);y.push(a[p]);break}m.reverse();y.reverse();l.value=m;l.scale=y}else{if(o.length===a.length)for(p=0;p<o.length;p++)if((v=t(o[p])||1e3)&&Math.abs(Number(s))>=v)h=a[p]||f,s=Number(s)/v;else break;l.value=s;l.scale=h}a=l;n=s=a.value;o=a.scale}if(r.scalerecursively&&r.formatnumberscale!=0){o=a.value;a=a.scale;l=r.maxscalerecursion==-1?o.length:Math.min(o.length,r.maxscalerecursion);if(r.formatnumber==1){s="";for(m=0;m<l;m++)p=m==0?o[m]:Math.abs(o[m]),v=p+f,m==l-1&&(v=e(p,i(r.decimalprecision,u),r.forcedecimals)),s=s+d(v,r.decimalseparator,r.thousandseparator,r.thousandseparatorposition)+a[m]+(m<l-1?r.scaleseparator:"")}else{s="";for(m=0;m<l;m++)s=s+(m==0?o[m]:Math.abs(o[m])+f)+a[m]+(m<l-1?r.scaleseparator:"")}s=(r.numberprefix||f)+s+(r.numbersuffix||f);delete o;delete a}else r.formatnumber==1&&(s=e(n,i(r.decimalprecision,u),r.forcedecimals),s=d(s,r.decimalseparator,r.thousandseparator,r.thousandseparatorposition)),s=(r.numberprefix||f)+s+o+(r.numbersuffix||f);return s}};return E}()}]);FusionCharts(["private","modules.renderer.js-raphael",function(){var e=this.hcLib,t="",n,r=window.Raphael,i,s=window.parent!==window,o=navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?!0:!1;(function(t){var n=/[\.\/]/,r=function(){},i=function(e,t){return e-t},s,o,u={n:{}},a=e.eve=function(e,t){var n=o,r=Array.prototype.slice.call(arguments,2),u=a.listeners(e),f=0,l,c=[],h={},p=[],d=s;s=e;for(var v=o=0,g=u.length;v<g;v++)"zIndex"in u[v]&&(c.push(u[v].zIndex),u[v].zIndex<0&&(h[u[v].zIndex]=u[v]));for(c.sort(i);c[f]<0;)if(l=h[c[f++]],p.push(l.apply(t,r)),o)return o=n,p;for(v=0;v<g;v++)if(l=u[v],"zIndex"in l)if(l.zIndex==c[f]){p.push(l.apply(t,r));if(o)break;do if(f++,(l=h[c[f]])&&p.push(l.apply(t,r)),o)break;while(l)}else h[l.zIndex]=l;else if(p.push(l.apply(t,r)),o)break;o=n;s=d;return p.length?p:null};a.listeners=function(e){var e=e.split(n),t=u,r,i,s,o,a,f,l,c=[t],h=[];s=0;for(o=e.length;s<o;s++){l=[];a=0;for(f=c.length;a<f;a++){t=c[a].n;r=[t[e[s]],t["*"]];for(i=2;i--;)if(t=r[i])l.push(t),h=h.concat(t.f||[])}c=l}return h};a.on=function(e,t){for(var i=e.split(n),s=u,o=0,a=i.length;o<a;o++)s=s.n,!s[i[o]]&&(s[i[o]]={n:{}}),s=s[i[o]];s.f=s.f||[];o=0;for(a=s.f.length;o<a;o++)if(s.f[o]==t)return r;s.f.push(t);return function(e){if(+e==+e)t.zIndex=+e}};a.stop=function(){o=1};a.nt=function(e){if(e)return RegExp("(?:\\.|\\/|^)"+e+"(?:\\.|\\/|$)").test(s);return s};a.off=a.unbind=function(e,t){var r=e.split(n),i,s,o,a,f,l,c=[u];a=0;for(f=r.length;a<f;a++)for(l=0;l<c.length;l+=o.length-2){o=[l,1];i=c[l].n;if(r[a]!="*")i[r[a]]&&o.push(i[r[a]]);else for(s in i)i.hasOwnProperty(s)&&o.push(i[s]);c.splice.apply(c,o)}a=0;for(f=c.length;a<f;a++)for(i=c[a];i.n;){if(t){if(i.f){l=0;for(r=i.f.length;l<r;l++)if(i.f[l]==t){i.f.splice(l,1);break}!i.f.length&&delete i.f}for(s in i.n)if(i.n.hasOwnProperty(s)&&i.n[s].f){o=i.n[s].f;l=0;for(r=o.length;l<r;l++)if(o[l]==t){o.splice(l,1);break}!o.length&&delete i.n[s].f}}else for(s in delete i.f,i.n)i.n.hasOwnProperty(s)&&i.n[s].f&&delete i.n[s].f;i=i.n}};a.once=function(e,t){var n=function(){var r=t.apply(this,arguments);a.unbind(e,n);return r};return a.on(e,n)};a.version="0.3.4";a.toString=function(){return"You are running Eve 0.3.4"};typeof module!="undefined"&&module.exports?module.exports=a:typeof define!="undefined"?define("eve",[],function(){return a}):t.eve=a})(e);n=e.eve;(function(){function e(r){if(e._url)e._url=window.location.href.replace(/#.*?$/,t);if(e.is(r,"function"))return E?r():n.on("raphael.DOMload",r);else if(e.is(r,G))return e._engine.create[O](e,r.splice(0,3+e.is(r[0],Q))).add(r);else{var i=Array.prototype.slice.call(arguments,0);if(e.is(i[i.length-1],"function")){var s=i.pop();return E?s.call(e._engine.create[O](e,i)):n.on("raphael.DOMload",function(){s.call(e._engine.create[O](e,i))})}else return e._engine.create[O](e,arguments)}}function r(e){if(Object(e)!==e)return e;var t=new e.constructor,n;for(n in e)e[N](n)&&(t[n]=r(e[n]));return t}function u(){return this.hex}function a(e,t){for(var n=[],r=0,i=e.length;i-2*!t>r;r+=2){var s=[{x:+e[r-2],y:+e[r-1]},{x:+e[r],y:+e[r+1]},{x:+e[r+2],y:+e[r+3]},{x:+e[r+4],y:+e[r+5]}];t?r?i-4==r?s[3]={x:+e[0],y:+e[1]}:i-2==r&&(s[2]={x:+e[0],y:+e[1]},s[3]={x:+e[2],y:+e[3]}):s[0]={x:+e[i-2],y:+e[i-1]}:i-4==r?s[3]=s[2]:r||(s[0]={x:+e[r],y:+e[r+1]});n.push(["C",(-s[0].x+6*s[1].x+s[2].x)/6,(-s[0].y+6*s[1].y+s[2].y)/6,(s[1].x+6*s[2].x-s[3].x)/6,(s[1].y+6*s[2].y-s[3].y)/6,s[2].x,s[2].y])}return n}function f(e,t,n,r,i,s,o,u,a){a==null&&(a=1);for(var a=(a>1?1:a<0?0:a)/2,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],l=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],c=0,h=0;h<12;h++){var p=a*f[h]+a,d=p*(p*(-3*e+9*n-9*i+3*o)+6*e-12*n+6*i)-3*e+3*n,p=p*(p*(-3*t+9*r-9*s+3*u)+6*t-12*r+6*s)-3*t+3*r;c+=l[h]*V(d*d+p*p)}return a*c}function l(e,t,n,r,i,s,o,u,a){if(!(a<0||f(e,t,n,r,i,s,o,u)<a)){var l=.5,c=1-l,h;for(h=f(e,t,n,r,i,s,o,u,c);U(h-a)>.01;)l/=2,c+=(h<a?1:-1)*l,h=f(e,t,n,r,i,s,o,u,c);return c}}function c(t,n,r){for(var t=e._path2curve(t),n=e._path2curve(n),i,s,o,u,a,l,c,h,p,d,v=r?0:[],m=0,g=t.length;m<g;m++)if(p=t[m],p[0]=="M")i=a=p[1],s=l=p[2];else{p[0]=="C"?(p=[i,s].concat(p.slice(1)),i=p[6],s=p[7]):(p=[i,s,i,s,a,l,a,l],i=a,s=l);for(var y=0,b=n.length;y<b;y++)if(d=n[y],d[0]=="M")o=c=d[1],u=h=d[2];else{d[0]=="C"?(d=[o,u].concat(d.slice(1)),o=d[6],u=d[7]):(d=[o,u,o,u,c,h,c,h],o=c,u=h);var w;var E=p,S=d;w=r;var x=e.bezierBBox(E),T=e.bezierBBox(S);if(e.isBBoxIntersect(x,T)){for(var x=f.apply(0,E),T=f.apply(0,S),x=~~(x/5),T=~~(T/5),N=[],C=[],k={},L=w?0:[],A=0;A<x+1;A++){var O=e.findDotsAtSegment.apply(e,E.concat(A/x));N.push({x:O.x,y:O.y,t:A/x})}for(A=0;A<T+1;A++)O=e.findDotsAtSegment.apply(e,S.concat(A/T)),C.push({x:O.x,y:O.y,t:A/T});for(A=0;A<x;A++)for(E=0;E<T;E++){var M=N[A],_=N[A+1],S=C[E],O=C[E+1],D=U(_.x-M.x)<.001?"y":"x",P=U(O.x-S.x)<.001?"y":"x",H;e:{H=M.x;var B=M.y,j=_.x,F=_.y,I=S.x,z=S.y,W=O.x,X=O.y;if(!(q(H,j)<R(I,W)||R(H,j)>q(I,W)||q(B,F)<R(z,X)||R(B,F)>q(z,X))){var V=(H-j)*(z-X)-(B-F)*(I-W);if(V){var $=((H*F-B*j)*(I-W)-(H-j)*(I*X-z*W))/V,V=((H*F-B*j)*(z-X)-(B-F)*(I*X-z*W))/V,J=+$.toFixed(2),K=+V.toFixed(2);if(!(J<+R(H,j).toFixed(2)||J>+q(H,j).toFixed(2)||J<+R(I,W).toFixed(2)||J>+q(I,W).toFixed(2)||K<+R(B,F).toFixed(2)||K>+q(B,F).toFixed(2)||K<+R(z,X).toFixed(2)||K>+q(z,X).toFixed(2))){H={x:$,y:V};break e}}}H=void 0}H&&k[H.x.toFixed(4)]!=H.y.toFixed(4)&&(k[H.x.toFixed(4)]=H.y.toFixed(4),M=M.t+U((H[D]-M[D])/(_[D]-M[D]))*(_.t-M.t),S=S.t+U((H[P]-S[P])/(O[P]-S[P]))*(O.t-S.t),M>=0&&M<=1&&S>=0&&S<=1&&(w?L++:L.push({x:H.x,y:H.y,t1:M,t2:S})))}w=L}else w=w?0:[];if(r)v+=w;else{x=0;for(T=w.length;x<T;x++)w[x].segment1=m,w[x].segment2=y,w[x].bez1=p,w[x].bez2=d;v=v.concat(w)}}}return v}function h(e,t,n,r,i,s){e!=null?(this.a=+e,this.b=+t,this.c=+n,this.d=+r,this.e=+i,this.f=+s):(this.a=1,this.c=this.b=0,this.d=1,this.f=this.e=0)}function p(){return this.x+D+this.y+D+this.width+" × "+this.height}function d(e,t,n,r,i,s){function o(e,t){var n,r,i,s;i=e;for(r=0;r<8;r++){s=((f*i+a)*i+u)*i-e;if(U(s)<t)return i;n=(3*f*i+2*a)*i+u;if(U(n)<1e-6)break;i-=s/n}n=0;r=1;i=e;if(i<n)return n;if(i>r)return r;for(;n<r;){s=((f*i+a)*i+u)*i;if(U(s-e)<t)break;e>s?n=i:r=i;i=(r-n)/2+n}return i}var u=3*t,a=3*(r-t)-u,f=1-u-a,l=3*n,c=3*(i-n)-l,h=1-l-c;return function(e,t){var n=o(e,t);return((h*n+c)*n+l)*n}(e,1/(200*s))}function v(e,t){var n=[],r={};this.ms=t;this.times=1;if(e){for(var i in e)e[N](i)&&(r[it(i)]=e[i],n.push(it(i)));n.sort(mt)}this.anim=r;this.top=n[n.length-1];this.percents=n}function y(t,r,i,s,o,u){var i=it(i),a,f,l,c,p,v,g=t.ms,y={},b={},w={};if(s){v=0;for(x=ln.length;v<x;v++){var E=ln[v];if(E.el.id==r.id&&E.anim==t){E.percent!=i?(ln.splice(v,1),l=1):f=E;r.attr(E.totalOrigin);break}}}else s=+b;v=0;for(var x=t.percents.length;v<x;v++)if(t.percents[v]==i||t.percents[v]>s*t.top){i=t.percents[v];p=t.percents[v-1]||0;g=g/t.top*(i-p);c=t.percents[v+1];a=t.anim[i];break}else s&&r.attr(t.anim[t.percents[v]]);if(a){if(f)f.initstatus=s,f.start=new Date-f.ms*s;else{for(var T in a)if(a[N](T)&&(at[N](T)||r.ca[T]))switch(y[T]=r.attr(T),y[T]==null&&(y[T]=ut[T]),b[T]=a[T],at[T]){case Q:w[T]=(b[T]-y[T])/g;break;case"colour":y[T]=e.getRGB(y[T]);v=e.getRGB(b[T]);w[T]={r:(v.r-y[T].r)/g,g:(v.g-y[T].g)/g,b:(v.b-y[T].b)/g};break;case"path":v=It(y[T],b[T]);E=v[1];y[T]=v[0];w[T]=[];v=0;for(x=y[T].length;v<x;v++){w[T][v]=[0];for(var C=1,k=y[T][v].length;C<k;C++)w[T][v][C]=(E[v][C]-y[T][v][C])/g}break;case"transform":v=r._;if(x=Wt(v[T],b[T])){y[T]=x.from;b[T]=x.to;w[T]=[];w[T].real=!0;v=0;for(x=y[T].length;v<x;v++){w[T][v]=[y[T][v][0]];C=1;for(k=y[T][v].length;C<k;C++)w[T][v][C]=(b[T][v][C]-y[T][v][C])/g}}else x=r.matrix||new h,v={_:{transform:v.transform},getBBox:function(){return r.getBBox(1)}},y[T]=[x.a,x.b,x.c,x.d,x.e,x.f],Ut(v,b[T]),b[T]=v._.transform,w[T]=[(v.matrix.a-x.a)/g,(v.matrix.b-x.b)/g,(v.matrix.c-x.c)/g,(v.matrix.d-x.d)/g,(v.matrix.e-x.e)/g,(v.matrix.f-x.f)/g];break;case"csv":x=P(a[T])[H](S);E=P(y[T])[H](S);if(T=="clip-rect"){y[T]=E;w[T]=[];for(v=E.length;v--;)w[T][v]=(x[v]-y[T][v])/g}b[T]=x;break;default:x=[][M](a[T]);E=[][M](y[T]);w[T]=[];for(v=r.ca[T].length;v--;)w[T][v]=((x[v]||0)-(E[v]||0))/g}v=a.easing;T=e.easing_formulas[v];if(!T)if((T=P(v).match(nt))&&T.length==5){var L=T;T=function(e){return d(e,+L[1],+L[2],+L[3],+L[4],g)}}else T=yt;v=a.start||t.start||+(new Date);E={anim:t,percent:i,timestamp:v,start:v+(t.del||0),status:0,initstatus:s||0,stop:!1,ms:g,easing:T,from:y,diff:w,to:b,el:r,callback:a.callback,prev:p,next:c,repeat:u||t.times,origin:r.attr(),totalOrigin:o};ln.push(E);if(s&&!f&&!l&&(E.stop=!0,E.start=new Date-g*s,ln.length==1))return hn();if(l)E.start=new Date-E.ms*s;ln.length==1&&cn(hn)}n("raphael.anim.start."+r.id,r,t)}}function b(e){for(var t=0;t<ln.length;t++)ln[t].el.paper==e&&ln.splice(t--,1)}i=e;e.version="2.1.0";e.eve=n;var E,S=/[, ]+/,x={circle:1,rect:1,path:1,ellipse:1,text:1,image:1,group:1},T=/\{(\d+)\}/g,N="hasOwnProperty",C={doc:document,win:window},k=function(){};e.ca=k.prototype;var L={was:Object.prototype[N].call(C.win,"Raphael"),is:C.win.Raphael},A=function(){this.ca=this.customAttributes=new k;this._CustomAttributes=function(){};this._CustomAttributes.prototype=this.ca},O="apply",M="concat",_=e._supportsTouch="createTouch"in C.doc,D=" ",P=String,H="split",B="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[H](D),j=e._touchMap={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},F=P.prototype.toLowerCase,I=Math,q=I.max,R=I.min,U=I.abs,z=I.pow,W=I.cos,X=I.sin,V=I.sqrt,$=I.PI,K=$/180,Q="number",G="array",Z=Object.prototype.toString;e._ISURL=/^url\(['"]?([^\)]+?)['"]?\)$/i;var et=/^\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,tt={NaN:1,Infinity:1,"-Infinity":1},nt=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,rt=I.round,it=parseFloat,st=parseInt,ot=P.prototype.toUpperCase,ut=e._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9","clip-path":"",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"about:blank","letter-spacing":0,"line-height":12,"vertical-align":"middle",opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,"shape-rendering":"default",target:"_blank","text-anchor":"middle",visibility:"",title:"",transform:"",rotation:0,width:0,x:0,y:0},at=e._availableAnimAttrs={blur:Q,"clip-rect":"csv","clip-path":"path",cx:Q,cy:Q,fill:"colour","fill-opacity":Q,"font-size":Q,height:Q,opacity:Q,path:"path",r:Q,rx:Q,ry:Q,stroke:"colour","stroke-opacity":Q,"stroke-width":Q,transform:"transform",width:Q,x:Q,y:Q},ft=/[\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]*/,lt={hs:1,rg:1},ct=/,?([achlmqrstvxz]),?/gi,ht=/([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,pt=/([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,dt=/(-?\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;e._radial_gradient=/^x?r(?:\(([^\)]*?)\))?/;var vt={},mt=function(e,t){return it(e)-it(t)},gt=function(){},yt=function(e){return e},bt=e._rectPath=function(e,t,n,r,i){if(i)return[["M",e+i,t],["l",n-i*2,0],["a",i,i,0,0,1,i,i],["l",0,r-i*2],["a",i,i,0,0,1,-i,i],["l",i*2-n,0],["a",i,i,0,0,1,-i,-i],["l",0,i*2-r],["a",i,i,0,0,1,i,-i],["z"]];return[["M",e,t],["l",n,0],["l",0,r],["l",-n,0],["z"]]},wt=function(e,t,n,r){r==null&&(r=n);return[["M",e,t],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]]},Et=e._getPath={group:function(){return!1},path:function(e){return e.attr("path")},circle:function(e){e=e.attrs;return wt(e.cx,e.cy,e.r)},ellipse:function(e){e=e.attrs;return wt(e.cx,e.cy,e.rx,e.ry)},rect:function(e){e=e.attrs;return bt(e.x,e.y,e.width,e.height,e.r)},image:function(e){e=e.attrs;return bt(e.x,e.y,e.width,e.height)},text:function(e){e=e._getBBox();return bt(e.x,e.y,e.width,e.height)}},St=e.mapPath=function(e,t){if(!t)return e;var n,r,i,s,o,u,a,e=It(e);i=0;for(o=e.length;i<o;i++){a=e[i];s=1;for(u=a.length;s<u;s+=2)n=t.x(a[s],a[s+1]),r=t.y(a[s],a[s+1]),a[s]=n,a[s+1]=r}return e};e.pick=function(){var e,t,n;t=0;for(n=arguments.length;t<n;t+=1)if((e=arguments[t])||!(e!==!1&&e!==0))return e};e._g=C;e.type=C.win.ENABLE_RED_CANVAS&&(C.win.CanvasRenderingContext2D||C.doc.createElement("canvas").getContext)?"CANVAS":C.win.SVGAngle||C.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML";if(e.type=="VML"){var xt=C.doc.createElement("div");xt.innerHTML='<v:shape adj="1"/>';xt=xt.firstChild;xt.style.behavior="url(#default#VML)";if(!(xt&&typeof xt.adj=="object"))return e.type="";xt=null}e.svg=!((e.vml=e.type=="VML")||(e.canvas=e.type=="CANVAS"));e._Paper=A;e.fn=A=A.prototype=e.prototype;e._id=0;e._oid=0;e.is=function(e,t){t=F.call(t);if(t=="finite")return!tt[N](+e);if(t=="array")return e instanceof Array;if(t==="object"&&(e===void 0||e===null))return!1;return t=="null"&&e===null||t==typeof e&&e!==null||t=="object"&&e===Object(e)||t=="array"&&Array.isArray&&Array.isArray(e)||Z.call(e).slice(8,-1).toLowerCase()==t};e.angle=function(t,n,r,i,s,o){if(s==null){t-=r;n-=i;if(!t&&!n)return 0;return(I.atan2(-n,-t)*180/$+540)%360}else return e.angle(t,n,s,o)-e.angle(r,i,s,o)};e.rad=function(e){return e%360*K};e.deg=function(e){return e*180/$%360};e.snapTo=function(t,n,r){r=e.is(r,"finite")?r:10;if(e.is(t,G))for(var i=t.length;i--;){if(U(t[i]-n)<=r)return t[i]}else{t=+t;i=n%t;if(i<r)return n-i;if(i>t-r)return n-i+t}return n};e.createUUID=function(e,t){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(e,t).toUpperCase()}}(/[xy]/g,function(e){var t=I.random()*16|0;return(e=="x"?t:t&3|8).toString(16)});e.setWindow=function(t){n("raphael.setWindow",e,C.win,t);C.win=t;C.doc=C.win.document;e._engine.initWin&&e._engine.initWin(C.win)};var Tt=function(t){if(e.vml){var n=/^\s+|\s+$/g,r;try{var i=new ActiveXObject("htmlfile");i.write("<body>");i.close();r=i.body}catch(s){r=createPopup().document.body}var o=r.createTextRange();Tt=Ot(function(e){try{r.style.color=P(e).replace(n,"");var t=o.queryCommandValue("ForeColor");return"#"+("000000"+((t&255)<<16|t&65280|(t&16711680)>>>16).toString(16)).slice(-6)}catch(i){return"none"}})}else{var u=C.doc.createElement("i");u.title="Raphaël Colour Picker";u.style.display="none";C.doc.body.appendChild(u);Tt=Ot(function(e){u.style.color=e;return C.doc.defaultView.getComputedStyle(u,"").getPropertyValue("color")})}return Tt(t)},Nt=function(){return"hsb("+[this.h,this.s,this.b]+")"},Ct=function(){return"hsl("+[this.h,this.s,this.l]+")"},kt=function(){return this.hex},Lt=function(t,n,r){if(n==null&&e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t)r=t.b,n=t.g,t=t.r;if(n==null&&e.is(t,"string"))r=e.getRGB(t),t=r.r,n=r.g,r=r.b;if(t>1||n>1||r>1)t/=255,n/=255,r/=255;return[t,n,r]},At=function(t,n,r,i){t*=255;n*=255;r*=255;t={r:t,g:n,b:r,hex:e.rgb(t,n,r),toString:kt};e.is(i,"finite")&&(t.opacity=i);return t};e.color=function(t){var n;e.is(t,"object")&&"h"in t&&"s"in t&&"b"in t?(n=e.hsb2rgb(t),t.r=n.r,t.g=n.g,t.b=n.b,t.hex=n.hex):e.is(t,"object")&&"h"in t&&"s"in t&&"l"in t?(n=e.hsl2rgb(t),t.r=n.r,t.g=n.g,t.b=n.b,t.hex=n.hex):(e.is(t,"string")&&(t=e.getRGB(t)),e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t?(n=e.rgb2hsl(t),t.h=n.h,t.s=n.s,t.l=n.l,n=e.rgb2hsb(t),t.v=n.b):(t={hex:"none"},t.r=t.g=t.b=t.h=t.s=t.v=t.l=-1));t.toString=kt;return t};e.hsb2rgb=function(e,t,n,r){if(this.is(e,"object")&&"h"in e&&"s"in e&&"b"in e)n=e.b,t=e.s,e=e.h,r=e.o;e*=360;var i,s,o,e=e%360/60;o=n*t;t=o*(1-U(e%2-1));n=i=s=n-o;e=~~e;n+=[o,t,0,0,t,o][e];i+=[t,o,o,t,0,0][e];s+=[0,0,t,o,o,t][e];return At(n,i,s,r)};e.hsl2rgb=function(e,t,n,r){if(this.is(e,"object")&&"h"in e&&"s"in e&&"l"in e)n=e.l,t=e.s,e=e.h;if(e>1||t>1||n>1)e/=360,t/=100,n/=100;e*=360;var i,s,o,e=e%360/60;o=2*t*(n<.5?n:1-n);t=o*(1-U(e%2-1));n=i=s=n-o/2;e=~~e;n+=[o,t,0,0,t,o][e];i+=[t,o,o,t,0,0][e];s+=[0,0,t,o,o,t][e];return At(n,i,s,r)};e.rgb2hsb=function(e,t,n){var n=Lt(e,t,n),e=n[0],t=n[1],n=n[2],r,i;r=q(e,t,n);i=r-R(e,t,n);return{h:((i==0?0:r==e?(t-n)/i:r==t?(n-e)/i+2:(e-t)/i+4)+360)%6*60/360,s:i==0?0:i/r,b:r,toString:Nt}};e.rgb2hsl=function(e,t,n){var n=Lt(e,t,n),e=n[0],t=n[1],n=n[2],r,i,s;i=q(e,t,n);r=R(e,t,n);s=i-r;r=(i+r)/2;return{h:((s==0?0:i==e?(t-n)/s:i==t?(n-e)/s+2:(e-t)/s+4)+360)%6*60/360,s:s==0?0:r<.5?s/(2*r):s/(2-2*r),l:r,toString:Ct}};e._path2string=function(){return this.join(",").replace(ct,"$1")};var Ot=e._cacher=function(e,t,n){function r(){var i=Array.prototype.slice.call(arguments,0),s=i.join("␀"),o=r.cache=r.cache||{},u=r.count=r.count||[];if(o[N](s)){e:for(var i=u,u=s,a=0,f=i.length;a<f;a++)if(i[a]===u){i.push(i.splice(a,1)[0]);break e}return n?n(o[s]):o[s]}u.length>=1e3&&delete o[u.shift()];u.push(s);o[s]=e[O](t,i);return n?n(o[s]):o[s]}return r};e._preload=function(e,t){var n=C.doc.createElement("img");n.style.cssText="position:absolute;left:-9999em;top:-9999em";n.onload=function(){t.call(this);this.onload=null;C.doc.body.removeChild(this)};n.onerror=function(){C.doc.body.removeChild(this)};C.doc.body.appendChild(n);n.src=e};e.getRGB=Ot(function(t){var n;t&&e.is(t,"object")&&"opacity"in t&&(n=t.opacity);if(!t||(t=P(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:u};if(t=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:u};!(lt[N](t.toLowerCase().substring(0,2))||t.charAt()=="#")&&(t=Tt(t));var r,i,s,o;if(t=t.match(et)){t[2]&&(s=st(t[2].substring(5),16),i=st(t[2].substring(3,5),16),r=st(t[2].substring(1,3),16));t[3]&&(s=st((o=t[3].charAt(3))+o,16),i=st((o=t[3].charAt(2))+o,16),r=st((o=t[3].charAt(1))+o,16));t[4]&&(o=t[4][H](ft),r=it(o[0]),o[0].slice(-1)=="%"&&(r*=2.55),i=it(o[1]),o[1].slice(-1)=="%"&&(i*=2.55),s=it(o[2]),o[2].slice(-1)=="%"&&(s*=2.55),t[1].toLowerCase().slice(0,4)=="rgba"&&(n=it(o[3])),o[3]&&o[3].slice(-1)=="%"&&(n/=100));if(t[5])return o=t[5][H](ft),r=it(o[0]),o[0].slice(-1)=="%"&&(r*=2.55),i=it(o[1]),o[1].slice(-1)=="%"&&(i*=2.55),s=it(o[2]),o[2].slice(-1)=="%"&&(s*=2.55),(o[0].slice(-3)=="deg"||o[0].slice(-1)=="°")&&(r/=360),t[1].toLowerCase().slice(0,4)=="hsba"&&(n=it(o[3])),o[3]&&o[3].slice(-1)=="%"&&(n/=100),e.hsb2rgb(r,i,s,n);if(t[6])return o=t[6][H](ft),r=it(o[0]),o[0].slice(-1)=="%"&&(r*=2.55),i=it(o[1]),o[1].slice(-1)=="%"&&(i*=2.55),s=it(o[2]),o[2].slice(-1)=="%"&&(s*=2.55),(o[0].slice(-3)=="deg"||o[0].slice(-1)=="°")&&(r/=360),t[1].toLowerCase().slice(0,4)=="hsla"&&(n=it(o[3])),o[3]&&o[3].slice(-1)=="%"&&(n/=100),e.hsl2rgb(r,i,s,n);t={r:r,g:i,b:s,toString:u};t.hex="#"+(16777216|s|i<<8|r<<16).toString(16).slice(1);e.is(n,"finite")&&(t.opacity=n);return t}return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:u}},e);e.tintshade=Ot(function(t,n){var r=e.getRGB(t),i;i=255;n<0&&(n*=-1,i=0);n>1&&(n=1);i=n===0?r:{r:i-(i-r.r)*n,g:i-(i-r.g)*n,b:i-(i-r.b)*n,toString:u};i.hex=e.rgb(i.r,i.g,i.b);r.error&&(i.error=r.error);"opacity"in r?(i.rgba="rgba("+[i.r,i.g,i.b,r.opacity].join(",")+")",i.opacity=r.opacity):i.rgba="rgb("+[i.r,i.g,i.b].join(",")+")";return i},e);e.hsb=Ot(function(t,n,r){return e.hsb2rgb(t,n,r).hex});e.hsl=Ot(function(t,n,r){return e.hsl2rgb(t,n,r).hex});e.rgb=Ot(function(e,t,n){return"#"+(16777216|n|t<<8|e<<16).toString(16).slice(1)});e.getColor=function(e){var e=this.getColor.start=this.getColor.start||{h:0,s:1,b:e||.75},t=this.hsb2rgb(e.h,e.s,e.b);e.h+=.075;if(e.h>1)e.h=0,e.s-=.2,e.s<=0&&(this.getColor.start={h:0,s:1,b:e.b});return t.hex};e.getColor.reset=function(){delete this.start};e.parsePathString=function(t){if(!t)return null;var n=Mt(t);if(n.arr)return Dt(n.arr);var r={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},i=[];e.is(t,G)&&e.is(t[0],G)&&(i=Dt(t));i.length||P(t).replace(ht,function(e,t,n){var s=[],e=t.toLowerCase();n.replace(dt,function(e,t){t&&s.push(+t)});e=="m"&&s.length>2&&(i.push([t][M](s.splice(0,2))),e="l",t=t=="m"?"l":"L");if(e=="r")i.push([t][M](s));else for(;s.length>=r[e];)if(i.push([t][M](s.splice(0,r[e]))),!r[e])break});i.toString=e._path2string;n.arr=Dt(i);return i};e.parseTransformString=Ot(function(t){if(!t)return null;var n=[];e.is(t,G)&&e.is(t[0],G)&&(n=Dt(t));n.length||P(t).replace(pt,function(e,t,r){var i=[];F.call(t);r.replace(dt,function(e,t){t&&i.push(+t)});n.push([t][M](i))});n.toString=e._path2string;return n});var Mt=function(e){var t=Mt.ps=Mt.ps||{};t[e]?t[e].sleep=100:t[e]={sleep:100};setTimeout(function(){for(var n in t)t[N](n)&&n!=e&&(t[n].sleep--,!t[n].sleep&&delete t[n])});return t[e]};e.findDotsAtSegment=function(e,t,n,r,i,s,o,u,a){var f=1-a,l=z(f,3),c=z(f,2),h=a*a,p=h*a,d=l*e+c*3*a*n+f*3*a*a*i+p*o,l=l*t+c*3*a*r+f*3*a*a*s+p*u,c=e+2*a*(n-e)+h*(i-2*n+e),p=t+2*a*(r-t)+h*(s-2*r+t),v=n+2*a*(i-n)+h*(o-2*i+n),h=r+2*a*(s-r)+h*(u-2*s+r),e=f*e+a*n,t=f*t+a*r,i=f*i+a*o,s=f*s+a*u,u=90-I.atan2(c-v,p-h)*180/$;(c>v||p<h)&&(u+=180);return{x:d,y:l,m:{x:c,y:p},n:{x:v,y:h},start:{x:e,y:t},end:{x:i,y:s},alpha:u}};e.bezierBBox=function(t,n,r,i,s,o,u,a){e.is(t,"array")||(t=[t,n,r,i,s,o,u,a]);t=Ft.apply(null,t);return{x:t.min.x,y:t.min.y,x2:t.max.x,y2:t.max.y,width:t.max.x-t.min.x,height:t.max.y-t.min.y}};e.isPointInsideBBox=function(e,t,n){return t>=e.x&&t<=e.x2&&n>=e.y&&n<=e.y2};e.isBBoxIntersect=function(t,n){var r=e.isPointInsideBBox;return r(n,t.x,t.y)||r(n,t.x2,t.y)||r(n,t.x,t.y2)||r(n,t.x2,t.y2)||r(t,n.x,n.y)||r(t,n.x2,n.y)||r(t,n.x,n.y2)||r(t,n.x2,n.y2)||(t.x<n.x2&&t.x>n.x||n.x<t.x2&&n.x>t.x)&&(t.y<n.y2&&t.y>n.y||n.y<t.y2&&n.y>t.y)};e.pathIntersection=function(e,t){return c(e,t)};e.pathIntersectionNumber=function(e,t){return c(e,t,1)};e.isPointInsidePath=function(t,n,r){var i=e.pathBBox(t);return e.isPointInsideBBox(i,n,r)&&c(t,[["M",n,r],["H",i.x2+10]],1)%2==1};e._removedFactory=function(e){return function(){n("raphael.log",null,"Raphaël: you are calling to method “"+e+"” of removed object",e)}};var _t=e.pathBBox=function(e){var t=Mt(e);if(t.bbox)return t.bbox;if(!e)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var e=It(e),n=0,i=0,s=[],o=[],u,a=0,f=e.length;a<f;a++)u=e[a],u[0]=="M"?(n=u[1],i=u[2],s.push(n),o.push(i)):(n=Ft(n,i,u[1],u[2],u[3],u[4],u[5],u[6]),s=s[M](n.min.x,n.max.x),o=o[M](n.min.y,n.max.y),n=u[5],i=u[6]);e=R[O](0,s);u=R[O](0,o);s=q[O](0,s);o=q[O](0,o);o={x:e,y:u,x2:s,y2:o,width:s-e,height:o-u};t.bbox=r(o);return o},Dt=function(t){t=r(t);t.toString=e._path2string;return t},xt=e._pathToRelative=function(t){var n=Mt(t);if(n.rel)return Dt(n.rel);if(!e.is(t,G)||!e.is(t&&t[0],G))t=e.parsePathString(t);var r=[],i=0,s=0,o=0,u=0,a=0;t[0][0]=="M"&&(i=t[0][1],s=t[0][2],o=i,u=s,a++,r.push(["M",i,s]));for(var f=t.length;a<f;a++){var l=r[a]=[],c=t[a];if(c[0]!=F.call(c[0]))switch(l[0]=F.call(c[0]),l[0]){case"a":l[1]=c[1];l[2]=c[2];l[3]=c[3];l[4]=c[4];l[5]=c[5];l[6]=+(c[6]-i).toFixed(3);l[7]=+(c[7]-s).toFixed(3);break;case"v":l[1]=+(c[1]-s).toFixed(3);break;case"m":o=c[1],u=c[2];default:for(var h=1,p=c.length;h<p;h++)l[h]=+(c[h]-(h%2?i:s)).toFixed(3)}else{r[a]=[];c[0]=="m"&&(o=c[1]+i,u=c[2]+s);l=0;for(h=c.length;l<h;l++)r[a][l]=c[l]}c=r[a].length;switch(r[a][0]){case"z":i=o;s=u;break;case"h":i+=+r[a][c-1];break;case"v":s+=+r[a][c-1];break;default:i+=+r[a][c-2],s+=+r[a][c-1]}}r.toString=e._path2string;n.rel=Dt(r);return r},Pt=e._pathToAbsolute=function(t){var n=Mt(t),r;if(n.abs)return Dt(n.abs);if(!e.is(t,G)||!e.is(t&&t[0],G))t=e.parsePathString(t);if(!t||!t.length)return r=["M",0,0],r.toString=e._path2string,r;var i=0,s=0,o=0,u=0,f=0;r=[];t[0][0]=="M"&&(i=+t[0][1],s=+t[0][2],o=i,u=s,f++,r[0]=["M",i,s]);for(var l=t.length==3&&t[0][0]=="M"&&t[1][0].toUpperCase()=="R"&&t[2][0].toUpperCase()=="Z",c,h=f,p=t.length;h<p;h++){r.push(f=[]);c=t[h];if(c[0]!=ot.call(c[0]))switch(f[0]=ot.call(c[0]),f[0]){case"A":f[1]=c[1];f[2]=c[2];f[3]=c[3];f[4]=c[4];f[5]=c[5];f[6]=+(c[6]+i);f[7]=+(c[7]+s);break;case"V":f[1]=+c[1]+s;break;case"H":f[1]=+c[1]+i;break;case"R":for(var d=[i,s][M](c.slice(1)),v=2,m=d.length;v<m;v++)d[v]=+d[v]+i,d[++v]=+d[v]+s;r.pop();r=r[M](a(d,l));break;case"M":o=+c[1]+i,u=+c[2]+s;default:v=1;for(m=c.length;v<m;v++)f[v]=+c[v]+(v%2?i:s)}else if(c[0]=="R")d=[i,s][M](c.slice(1)),r.pop(),r=r[M](a(d,l)),f=["R"][M](c.slice(-2));else{d=0;for(v=c.length;d<v;d++)f[d]=c[d]}switch(f[0]){case"Z":i=o;s=u;break;case"H":i=f[1];break;case"V":s=f[1];break;case"M":o=f[f.length-2],u=f[f.length-1];default:i=f[f.length-2],s=f[f.length-1]}}r.toString=e._path2string;n.abs=Dt(r);return r},Ht=function(e,t,n,r,i,s){var o=1/3,u=2/3;return[o*e+u*n,o*t+u*r,o*i+u*n,o*s+u*r,i,s]},Bt=function(e,t,n,r,i,s,o,u,a,f){var l=$*120/180,c=K*(+i||0),h=[],p,d=Ot(function(e,t,n){var r=e*W(n)-t*X(n),e=e*X(n)+t*W(n);return{x:r,y:e}});if(f)g=f[0],p=f[1],s=f[2],v=f[3];else{p=d(e,t,-c);e=p.x;t=p.y;p=d(u,a,-c);u=p.x;a=p.y;W(K*i);X(K*i);p=(e-u)/2;g=(t-a)/2;v=p*p/(n*n)+g*g/(r*r);v>1&&(v=V(v),n*=v,r*=v);var v=n*n,m=r*r,v=(s==o?-1:1)*V(U((v*m-v*g*g-m*p*p)/(v*g*g+m*p*p))),s=v*n*g/r+(e+u)/2,v=v*-r*p/n+(t+a)/2,g=I.asin(((t-v)/r).toFixed(9));p=I.asin(((a-v)/r).toFixed(9));g=e<s?$-g:g;p=u<s?$-p:p;g<0&&(g=$*2+g);p<0&&(p=$*2+p);o&&g>p&&(g-=$*2);!o&&p>g&&(p-=$*2)}if(U(p-g)>l){var h=p,m=u,y=a;p=g+l*(o&&p>g?1:-1);u=s+n*W(p);a=v+r*X(p);h=Bt(u,a,n,r,i,0,o,m,y,[p,h,s,v])}s=p-g;i=W(g);l=X(g);o=W(p);p=X(p);s=I.tan(s/4);n=4/3*n*s;s*=4/3*r;r=[e,t];e=[e+n*l,t-s*i];t=[u+n*p,a-s*o];u=[u,a];e[0]=2*r[0]-e[0];e[1]=2*r[1]-e[1];if(f)return[e,t,u][M](h);else{h=[e,t,u][M](h).join()[H](",");f=[];u=0;for(a=h.length;u<a;u++)f[u]=u%2?d(h[u-1],h[u],c).y:d(h[u],h[u+1],c).x;return f}},jt=function(e,t,n,r,i,s,o,u,a){var f=1-a;return{x:z(f,3)*e+z(f,2)*3*a*n+f*3*a*a*i+z(a,3)*o,y:z(f,3)*t+z(f,2)*3*a*r+f*3*a*a*s+z(a,3)*u}},Ft=Ot(function(e,t,n,r,i,s,o,u){var a=i-2*n+e-(o-2*i+n),f=2*(n-e)-2*(i-n),l=e-n,c=(-f+V(f*f-4*a*l))/2/a,a=(-f-V(f*f-4*a*l))/2/a,h=[t,u],p=[e,o];U(c)>"1e12"&&(c=.5);U(a)>"1e12"&&(a=.5);c>0&&c<1&&(c=jt(e,t,n,r,i,s,o,u,c),p.push(c.x),h.push(c.y));a>0&&a<1&&(c=jt(e,t,n,r,i,s,o,u,a),p.push(c.x),h.push(c.y));a=s-2*r+t-(u-2*s+r);f=2*(r-t)-2*(s-r);l=t-r;c=(-f+V(f*f-4*a*l))/2/a;a=(-f-V(f*f-4*a*l))/2/a;U(c)>"1e12"&&(c=.5);U(a)>"1e12"&&(a=.5);c>0&&c<1&&(c=jt(e,t,n,r,i,s,o,u,c),p.push(c.x),h.push(c.y));a>0&&a<1&&(c=jt(e,t,n,r,i,s,o,u,a),p.push(c.x),h.push(c.y));return{min:{x:R[O](0,p),y:R[O](0,h)},max:{x:q[O](0,p),y:q[O](0,h)}}}),It=e._path2curve=Ot(function(e,t){var n=!t&&Mt(e);if(!t&&n.curve)return Dt(n.curve);var r=Pt(e),i=t&&Pt(t),s={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u=function(e,t){var n,r;if(!e)return["C",t.x,t.y,t.x,t.y,t.x,t.y];!(e[0]in{T:1,Q:1})&&(t.qx=t.qy=null);switch(e[0]){case"M":t.X=e[1];t.Y=e[2];break;case"A":e=["C"][M](Bt[O](0,[t.x,t.y][M](e.slice(1))));break;case"S":n=t.x+(t.x-(t.bx||t.x));r=t.y+(t.y-(t.by||t.y));e=["C",n,r][M](e.slice(1));break;case"T":t.qx=t.x+(t.x-(t.qx||t.x));t.qy=t.y+(t.y-(t.qy||t.y));e=["C"][M](Ht(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case"Q":t.qx=e[1];t.qy=e[2];e=["C"][M](Ht(t.x,t.y,e[1],e[2],e[3],e[4]));break;case"L":e=["C"][M]([t.x,t.y,e[1],e[2],e[1],e[2]]);break;case"H":e=["C"][M]([t.x,t.y,e[1],t.y,e[1],t.y]);break;case"V":e=["C"][M]([t.x,t.y,t.x,e[1],t.x,e[1]]);break;case"Z":e=["C"][M]([t.x,t.y,t.X,t.Y,t.X,t.Y])}return e},a=function(e,t){if(e[t].length>7){e[t].shift();for(var n=e[t];n.length;)e.splice(t++,0,["C"][M](n.splice(0,6)));e.splice(t,1);c=q(r.length,i&&i.length||0)}},f=function(e,t,n,s,o){if(e&&t&&e[o][0]=="M"&&t[o][0]!="M")t.splice(o,0,["M",s.x,s.y]),n.bx=0,n.by=0,n.x=e[o][1],n.y=e[o][2],c=q(r.length,i&&i.length||0)},l=0,c=q(r.length,i&&i.length||0);for(;l<c;l++){r[l]=u(r[l],s);a(r,l);i&&(i[l]=u(i[l],o));i&&a(i,l);f(r,i,s,o,l);f(i,r,o,s,l);var h=r[l],p=i&&i[l],d=h.length,v=i&&p.length;s.x=h[d-2];s.y=h[d-1];s.bx=it(h[d-4])||s.x;s.by=it(h[d-3])||s.y;o.bx=i&&(it(p[v-4])||o.x);o.by=i&&(it(p[v-3])||o.y);o.x=i&&p[v-2];o.y=i&&p[v-1]}if(!i)n.curve=Dt(r);return i?[r,i]:r},null,Dt);e._parseDots=Ot(function(t){for(var n=[],r=0,i=t.length;r<i;r++){var s={},o=t[r].match(/^([^:]*):?([\d\.]*)/);s.color=e.getRGB(o[1]);if(s.color.error)return null;s.opacity=s.color.opacity;s.color=s.color.hex;o[2]&&(s.offset=o[2]+"%");n.push(s)}r=1;for(i=n.length-1;r<i;r++)if(!n[r].offset){t=it(n[r-1].offset||0);o=0;for(s=r+1;s<i;s++)if(n[s].offset){o=n[s].offset;break}o||(o=100,s=i);o=it(o);for(o=(o-t)/(s-r+1);r<s;r++)t+=o,n[r].offset=t+"%"}return n});var qt=e._tear=function(e,t){e==t.top&&(t.top=e.prev);e==t.bottom&&(t.bottom=e.next);e.next&&(e.next.prev=e.prev);e.prev&&(e.prev.next=e.next)};e._tofront=function(e,t){if(t.top===e)return!1;qt(e,t);e.next=null;e.prev=t.top;t.top.next=e;t.top=e;return!0};e._toback=function(e,t){if(t.bottom===e)return!1;qt(e,t);e.next=t.bottom;e.prev=null;t.bottom.prev=e;t.bottom=e;return!0};e._insertafter=function(e,t,n,r){qt(e,n);e.parent=r;t===r.top&&(r.top=e);t.next&&(t.next.prev=e);e.next=t.next;e.prev=t;t.next=e};e._insertbefore=function(e,t,n,r){qt(e,n);e.parent=r;t===r.bottom&&(r.bottom=e);t.prev&&(t.prev.next=e);e.prev=t.prev;t.prev=e;e.next=t};var Rt=e.toMatrix=function(e,t){var n=_t(e),r={_:{transform:""},getBBox:function(){return n}};Ut(r,t);return r.matrix};e.transformPath=function(e,t){return St(e,Rt(e,t))};var Ut=e._extractTransform=function(t,n){if(n==null)return t._.transform;var n=P(n).replace(/\.{3}|\u2026/g,t._.transform||""),r=e.parseTransformString(n),i=0,s=0,o=0,u=1,a=1,f=t._,o=new h;f.transform=r||[];if(r)for(var s=0,l=r.length;s<l;s++){var c=r[s],p=c.length,d=P(c[0]).toLowerCase(),v=c[0]!=d,m=v?o.invert():0,g;d=="t"&&p==3?v?(p=m.x(0,0),d=m.y(0,0),v=m.x(c[1],c[2]),m=m.y(c[1],c[2]),o.translate(v-p,m-d)):o.translate(c[1],c[2]):d=="r"?p==2?(g=g||t.getBBox(1),o.rotate(c[1],g.x+g.width/2,g.y+g.height/2),i+=c[1]):p==4&&(v?(v=m.x(c[2],c[3]),m=m.y(c[2],c[3]),o.rotate(c[1],v,m)):o.rotate(c[1],c[2],c[3]),i+=c[1]):d=="s"?p==2||p==3?(g=g||t.getBBox(1),o.scale(c[1],c[p-1],g.x+g.width/2,g.y+g.height/2),u*=c[1],a*=c[p-1]):p==5&&(v?(v=m.x(c[3],c[4]),m=m.y(c[3],c[4]),o.scale(c[1],c[2],v,m)):o.scale(c[1],c[2],c[3],c[4]),u*=c[1],a*=c[2]):d=="m"&&p==7&&o.add(c[1],c[2],c[3],c[4],c[5],c[6]);f.dirtyT=1;t.matrix=o}t.matrix=o;f.sx=u;f.sy=a;f.deg=i;f.dx=s=o.e;f.dy=o=o.f;u==1&&a==1&&!i&&f.bbox?(f.bbox.x+=+s,f.bbox.y+=+o):f.dirtyT=1},zt=function(e){var t=e[0];switch(t.toLowerCase()){case"t":return[t,0,0];case"m":return[t,1,0,0,1,0,0];case"r":return e.length==4?[t,0,e[2],e[3]]:[t,0];case"s":return e.length==5?[t,1,1,e[3],e[4]]:e.length==3?[t,1,1]:[t,1]}},Wt=e._equaliseTransform=function(t,n){for(var n=P(n).replace(/\.{3}|\u2026/g,t),t=e.parseTransformString(t)||[],n=e.parseTransformString(n)||[],r=q(t.length,n.length),i=[],s=[],o=0,u,a,f,l;o<r;o++){f=t[o]||zt(n[o]);l=n[o]||zt(f);if(f[0]!=l[0]||f[0].toLowerCase()=="r"&&(f[2]!=l[2]||f[3]!=l[3])||f[0].toLowerCase()=="s"&&(f[3]!=l[3]||f[4]!=l[4]))return;i[o]=[];s[o]=[];u=0;for(a=q(f.length,l.length);u<a;u++)u in f&&(i[o][u]=f[u]),u in l&&(s[o][u]=l[u])}return{from:i,to:s}};e._getContainer=function(t,n,r,i){var s;s=i==null&&!e.is(t,"object")?C.doc.getElementById(t):t;if(s!=null){if(s.tagName)return n==null?{container:s,width:s.style.pixelWidth||s.offsetWidth,height:s.style.pixelHeight||s.offsetHeight}:{container:s,width:n,height:r};return{container:1,x:t,y:n,width:r,height:i}}};e.pathToRelative=xt;e._engine={};e.path2curve=It;e.matrix=function(e,t,n,r,i,s){return new h(e,t,n,r,i,s)};(function(t){function n(e){return e[0]*e[0]+e[1]*e[1]}function r(e){var t=V(n(e));e[0]&&(e[0]/=t);e[1]&&(e[1]/=t)}t.add=function(e,t,n,r,i,s){var o=[[],[],[]],u=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],t=[[e,n,i],[t,r,s],[0,0,1]];e&&e instanceof h&&(t=[[e.a,e.c,e.e],[e.b,e.d,e.f],[0,0,1]]);for(e=0;e<3;e++)for(n=0;n<3;n++){for(r=i=0;r<3;r++)i+=u[e][r]*t[r][n];o[e][n]=i}this.a=o[0][0];this.b=o[1][0];this.c=o[0][1];this.d=o[1][1];this.e=o[0][2];this.f=o[1][2]};t.invert=function(){var e=this.a*this.d-this.b*this.c;return new h(this.d/e,-this.b/e,-this.c/e,this.a/e,(this.c*this.f-this.d*this.e)/e,(this.b*this.e-this.a*this.f)/e)};t.clone=function(){return new h(this.a,this.b,this.c,this.d,this.e,this.f)};t.translate=function(e,t){this.add(1,0,0,1,e,t)};t.scale=function(e,t,n,r){t==null&&(t=e);(n||r)&&this.add(1,0,0,1,n,r);this.add(e,0,0,t,0,0);(n||r)&&this.add(1,0,0,1,-n,-r)};t.rotate=function(t,n,r){var t=e.rad(t),n=n||0,r=r||0,i=+W(t).toFixed(9),t=+X(t).toFixed(9);this.add(i,t,-t,i,n,r);this.add(1,0,0,1,-n,-r)};t.x=function(e,t){return e*this.a+t*this.c+this.e};t.y=function(e,t){return e*this.b+t*this.d+this.f};t.get=function(e){return+this[P.fromCharCode(97+e)].toFixed(4)};t.toString=function(){return e.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()};t.toMatrixString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"};t.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')"};t.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]};t.split=function(){var t={};t.dx=this.e;t.dy=this.f;var i=[[this.a,this.c],[this.b,this.d]];t.scalex=V(n(i[0]));r(i[0]);t.shear=i[0][0]*i[1][0]+i[0][1]*i[1][1];i[1]=[i[1][0]-i[0][0]*t.shear,i[1][1]-i[0][1]*t.shear];t.scaley=V(n(i[1]));r(i[1]);t.shear/=t.scaley;var s=-i[0][1],i=i[1][1];if(i<0){if(t.rotate=e.deg(I.acos(i)),s<0)t.rotate=360-t.rotate}else t.rotate=e.deg(I.asin(s));t.isSimple=!+t.shear.toFixed(9)&&(t.scalex.toFixed(9)==t.scaley.toFixed(9)||!t.rotate);t.isSuperSimple=!+t.shear.toFixed(9)&&t.scalex.toFixed(9)==t.scaley.toFixed(9)&&!t.rotate;t.noRotation=!+t.shear.toFixed(9)&&!t.rotate;return t};t.toTransformString=function(e){e=e||this[H]();return e.isSimple?(e.scalex=+e.scalex.toFixed(4),e.scaley=+e.scaley.toFixed(4),e.rotate=+e.rotate.toFixed(4),(e.dx||e.dy?"t"+[e.dx,e.dy]:"")+(e.scalex!=1||e.scaley!=1?"s"+[e.scalex,e.scaley,0,0]:"")+(e.rotate?"r"+[e.rotate,0,0]:"")):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}})(h.prototype);xt=navigator.userAgent.match(/Version\/(.*?)\s/)||navigator.userAgent.match(/Chrome\/(\d+)/);A.safari=navigator.vendor=="Apple Computer, Inc."&&(xt&&xt[1]<4||navigator.platform.slice(0,2)=="iP")||navigator.vendor=="Google Inc."&&xt&&xt[1]<8?function(){var e=this.rect(-99,-99,this.width+99,this.height+99).attr({stroke:"none"});setTimeout(function(){e.remove()});return!0}:gt;for(var Xt=function(){this.returnValue=!1},Vt=function(){return this.originalEvent.preventDefault()},$t=function(){this.cancelBubble=!0},Jt=function(){return this.originalEvent.stopPropagation()},Kt=e.addEvent=function(){if(C.doc.addEventListener)return function(e,t,n,r){var i=_&&j[t]?j[t]:t,s=function(i){var s=C.doc.documentElement.scrollTop||C.doc.body.scrollTop,o=C.doc.documentElement.scrollLeft||C.doc.body.scrollLeft;if(_&&j[N](t))for(var u=0,a=i.targetTouches&&i.targetTouches.length;u<a;u++)if(i.targetTouches[u].target==e){a=i;i=i.targetTouches[u];i.originalEvent=a;i.preventDefault=Vt;i.stopPropagation=Jt;break}return n.call(r,i,i.clientX+o,i.clientY+s)};e.addEventListener(i,s,!1);return function(){e.removeEventListener(i,s,!1);return!0}};else if(C.doc.attachEvent)return function(e,t,n,r){var i=function(e){var e=e||C.win.event,t=e.clientX+(C.doc.documentElement.scrollLeft||C.doc.body.scrollLeft),i=e.clientY+(C.doc.documentElement.scrollTop||C.doc.body.scrollTop);e.preventDefault=e.preventDefault||Xt;e.stopPropagation=e.stopPropagation||$t;return n.call(r,e,t,i)};e.attachEvent("on"+t,i);return function(){e.detachEvent("on"+t,i);return!0}}}(),Qt=[],Gt=function(e){for(var t=e.clientX,r=e.clientY,i=C.doc.documentElement.scrollTop||C.doc.body.scrollTop,s=C.doc.documentElement.scrollLeft||C.doc.body.scrollLeft,o,u=Qt.length;u--;){o=Qt[u];if(_)for(var a=e.touches.length,f;a--;){if(f=e.touches[a],f.identifier==o.el._drag.id){t=f.clientX;r=f.clientY;(e.originalEvent?e.originalEvent:e).preventDefault();break}}else e.preventDefault();var a=o.el.node,l=a.nextSibling,c=a.parentNode,h=a.style.display;C.win.opera&&c.removeChild(a);a.style.display="none";f=o.el.paper.getElementByPoint(t,r);a.style.display=h;C.win.opera&&(l?c.insertBefore(a,l):c.appendChild(a));f&&n("raphael.drag.over."+o.el.id,o.el,f);t+=s;r+=i;n("raphael.drag.move."+o.el.id,o.move_scope||o.el,t-o.el._drag.x,r-o.el._drag.y,t,r,e)}},Yt=function(t){e.unmousemove(Gt).unmouseup(Yt);for(var r=Qt.length,i;r--;)i=Qt[r],i.el._drag={},n("raphael.drag.end."+i.el.id,i.end_scope||i.start_scope||i.move_scope||i.el,t);Qt=[]},Zt=e.el={},gt=B.length;gt--;)(function(t){e[t]=Zt[t]=function(n,r){if(e.is(n,"function"))this.events=this.events||[],this.events.push({name:t,f:n,unbind:Kt(this.shape||this.node||C.doc,t,n,r||this)});return this};e["un"+t]=Zt["un"+t]=function(e){for(var n=this.events||[],r=n.length;r--;)if(n[r].name==t&&n[r].f==e){n[r].unbind();n.splice(r,1);!n.length&&delete this.events;break}return this}})(B[gt]);Zt.data=function(t,r){var i=vt[this.id]=vt[this.id]||{};if(arguments.length==1){if(e.is(t,"object")){for(var s in t)t[N](s)&&this.data(s,t[s]);return this}n("raphael.data.get."+this.id,this,i[t],t);return i[t]}i[t]=r;n("raphael.data.set."+this.id,this,r,t);return this};Zt.removeData=function(e){e==null?vt[this.id]={}:vt[this.id]&&delete vt[this.id][e];return this};var en=[],tn=function(){this.untrack=Kt(C.doc,"mouseup",nn,this)},nn=function(){this.untrack();this.untrack=null;return this.fn&&this.fn.apply(this.scope||this.el,arguments)};Zt.mouseup=function(t,n,r){if(!r)return e.mouseup.apply(this,arguments);en.push(r={el:this,fn:t,scope:n});r.unbind=Kt(this.shape||this.node||C.doc,"mousedown",tn,r);return this};Zt.unmouseup=function(t){for(var n=en.length,r;n--;)en[n].el===this&&en[n].fn===t&&(r=en[n],r.unbind(),r.untrack&&r.untrack(),en.splice(n,1));return r?this:e.unmouseup.apply(this,arguments)};Zt.hover=function(e,t,n,r){return this.mouseover(e,n).mouseout(t,r||n)};Zt.unhover=function(e,t){return this.unmouseover(e).unmouseout(t)};var rn=[];Zt.drag=function(t,r,i,s,o,u){function a(a){(a.originalEvent||a).preventDefault();var f=C.doc.documentElement.scrollTop||C.doc.body.scrollTop,l=C.doc.documentElement.scrollLeft||C.doc.body.scrollLeft;this._drag.x=a.clientX+l;this._drag.y=a.clientY+f;this._drag.id=a.identifier;!Qt.length&&e.mousemove(Gt).mouseup(Yt);Qt.push({el:this,move_scope:s,start_scope:o,end_scope:u});r&&n.on("raphael.drag.start."+this.id,r);t&&n.on("raphael.drag.move."+this.id,t);i&&n.on("raphael.drag.end."+this.id,i);n("raphael.drag.start."+this.id,o||s||this,a.clientX+l,a.clientY+f,a)}this._drag={};rn.push({el:this,start:a});this.mousedown(a);return this};Zt.onDragOver=function(e){e?n.on("raphael.drag.over."+this.id,e):n.unbind("raphael.drag.over."+this.id)};Zt.undrag=function(){for(var t=rn.length;t--;)rn[t].el==this&&(this.unmousedown(rn[t].start),rn.splice(t,1),n.unbind("raphael.drag.*."+this.id));!rn.length&&e.unmousemove(Gt).unmouseup(Yt)};Zt.follow=function(t,n,r){if(t.removed||t.constructor!==e.el.constructor)return this;t.followers.push({el:this,stalk:r={before:"insertBefore",after:"insertAfter"}[r],cb:n});r&&this[r](t);return this};Zt.unfollow=function(t){if(t.removed||t.constructor!==e.el.constructor)return this;for(var n=0,r=t.followers.length;n<r;n++)if(t.followers[n].el===this){t.followers.splice(n,1);break}return this};var sn=Array.prototype.splice;A.group=function(){var t;t=arguments;var n=t.length-1,r=t[n];r&&r.constructor===e.el.constructor?(t[n]=void 0,sn.call(t,n,1)):r=void 0;t=e._engine.group(this,t[0],r);this.__set__&&this.__set__.push(t);return t};A.circle=function(){var t;t=arguments;var n=t.length-1,r=t[n];r&&r.constructor===e.el.constructor?(t[n]=void 0,sn.call(t,n,1)):r=void 0;t=e._engine.circle(this,t[0]||0,t[1]||0,t[2]||0,r);this.__set__&&this.__set__.push(t);return t};A.rect=function(){var t;t=arguments;var n=t.length-1,r=t[n];r&&r.constructor===e.el.constructor?(t[n]=void 0,sn.call(t,n,1)):r=void 0;t=e._engine.rect(this,t[0]||0,t[1]||0,t[2]||0,t[3]||0,t[4]||0,r);this.__set__&&this.__set__.push(t);return t};A.ellipse=function(){var t;t=arguments;var n=t.length-1,r=t[n];r&&r.constructor===e.el.constructor?(t[n]=void 0,sn.call(t,n,1)):r=void 0;t=e._engine.ellipse(this,t[0]||0,t[1]||0,t[2]||0,t[3]||0,r);this.__set__&&this.__set__.push(t);return t};A.path=function(){var t,n=arguments,r=n.length-1;(t=n[r])&&t.constructor===e.el.constructor?(n[r]=void 0,sn.call(n,r,1)):t=void 0;(n=n[0])&&!e.is(n,"string")&&e.is(n[0],G);t=e._engine.path(e.format[O](e,arguments),this,t);this.__set__&&this.__set__.push(t);return t};A.image=function(){var t;t=arguments;var n=t.length-1,r=t[n];r&&r.constructor===e.el.constructor?(t[n]=void 0,sn.call(t,n,1)):r=void 0;t=e._engine.image(this,t[0]||"about:blank",t[1]||0,t[2]||0,t[3]||0,t[4]||0,r);this.__set__&&this.__set__.push(t);return t};A.text=function(){var t;t=arguments;var n=t.length-1,r=t[n];r&&r.constructor===e.el.constructor?(t[n]=void 0,sn.call(t,n,1)):r=void 0;t=e._engine.text(this,t[0]||0,t[1]||0,P(t[2]||""),r);this.__set__&&this.__set__.push(t);return t};A.set=function(t){!e.is(t,"array")&&(t=Array.prototype.splice.call(arguments,0,arguments.length));var n=new dn(t);this.__set__&&this.__set__.push(n);return n};A.setStart=function(e){this.__set__=e||this.set()};A.setFinish=function(){var e=this.__set__;delete this.__set__;return e};A.setSize=function(t,n){return e._engine.setSize.call(this,t,n)};A.setViewBox=function(t,n,r,i,s){return e._engine.setViewBox.call(this,t,n,r,i,s)};A.top=A.bottom=null;A.raphael=e;A.getElementByPoint=function(e,t){var n=this.canvas,r=C.doc.elementFromPoint(e,t);if(C.win.opera&&r.tagName=="svg"){var i;i=n.getBoundingClientRect();var s=n.ownerDocument,o=s.body,s=s.documentElement;i={y:i.top+(C.win.pageYOffset||s.scrollTop||o.scrollTop)-(s.clientTop||o.clientTop||0),x:i.left+(C.win.pageXOffset||s.scrollLeft||o.scrollLeft)-(s.clientLeft||o.clientLeft||0)};o=n.createSVGRect();o.x=e-i.x;o.y=t-i.y;o.width=o.height=1;i=n.getIntersectionList(o,null);i.length&&(r=i[i.length-1])}if(!r)return null;for(;r.parentNode&&r!=n.parentNode&&!r.raphael;)r=r.parentNode;r==this.canvas.parentNode&&(r=n);return r=r&&r.raphael?this.getById(r.raphaelid):null};A.getById=function(e){for(var t=this.bottom;t;){if(t.id==e)return t;t=t.next}return null};A.forEach=function(e,t){for(var n=this.bottom;n;){if(e.call(t,n)===!1)break;n=n.next}return this};A.getElementsByPoint=function(e,t){var n=this.set();this.forEach(function(r){r.isPointInside(e,t)&&n.push(r)});return n};Zt.isPointInside=function(t,n){var r=this.realPath=this.realPath||Et[this.type](this);return e.isPointInsidePath(r,t,n)};Zt.getBBox=function(e){if(this.removed)return{};var t=this._;if(e){if(t.dirty||!t.bboxwt)this.realPath=Et[this.type](this),t.bboxwt=_t(this.realPath),t.bboxwt.toString=p,t.dirty=0;return t.bboxwt}if(t.dirty||t.dirtyT||!t.bbox){if(t.dirty||!this.realPath)t.bboxwt=0,this.realPath=Et[this.type](this);t.bbox=_t(St(this.realPath,this.matrix));t.bbox.toString=p;t.dirty=t.dirtyT=0}return t.bbox};Zt.clone=function(){if(this.removed)return null;var e=this.paper[this.type]().attr(this.attr());this.__set__&&this.__set__.push(e);return e};Zt.glow=function(e){if(this.type=="text")return null;for(var e=e||{},e={width:(e.width||10)+(+this.attr("stroke-width")||1),fill:e.fill||!1,opacity:e.opacity||.5,offsetx:e.offsetx||0,offsety:e.offsety||0,color:e.color||"#000"},t=e.width/2,n=this.paper,r=n.set(),i=this.realPath||Et[this.type](this),i=this.matrix?St(i,this.matrix):i,s=1;s<t+1;s++)r.push(n.path(i).attr({stroke:e.color,fill:e.fill?e.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(e.width/t*s).toFixed(3),opacity:+(e.opacity/t).toFixed(3)}));return r.insertBefore(this).translate(e.offsetx,e.offsety)};var on=function(t,n,r,i,s,o,u,a,c){return c==null?f(t,n,r,i,s,o,u,a):e.findDotsAtSegment(t,n,r,i,s,o,u,a,l(t,n,r,i,s,o,u,a,c))},B=function(t,n){return function(r,i,s){for(var r=It(r),o,u,a,f,l="",c={},h=0,p=0,d=r.length;p<d;p++){a=r[p];if(a[0]=="M")o=+a[1],u=+a[2];else{f=on(o,u,a[1],a[2],a[3],a[4],a[5],a[6]);if(h+f>i){if(n&&!c.start){o=on(o,u,a[1],a[2],a[3],a[4],a[5],a[6],i-h);l+=["C"+o.start.x,o.start.y,o.m.x,o.m.y,o.x,o.y];if(s)return l;c.start=l;l=["M"+o.x,o.y+"C"+o.n.x,o.n.y,o.end.x,o.end.y,a[5],a[6]].join();h+=f;o=+a[5];u=+a[6];continue}if(!t&&!n)return o=on(o,u,a[1],a[2],a[3],a[4],a[5],a[6],i-h),{x:o.x,y:o.y,alpha:o.alpha}}h+=f;o=+a[5];u=+a[6]}l+=a.shift()+a}c.end=l;o=t?h:n?c:e.findDotsAtSegment(o,u,a[0],a[1],a[2],a[3],a[4],a[5],1);o.alpha&&(o={x:o.x,y:o.y,alpha:o.alpha});return o}},un=B(1),an=B(),fn=B(0,1);e.getTotalLength=un;e.getPointAtLength=an;e.getSubpath=function(e,t,n){if(this.getTotalLength(e)-n<1e-6)return fn(e,t).end;e=fn(e,n,1);return t?fn(e,t).end:e};Zt.getTotalLength=function(){if(this.type=="path"){if(this.node.getTotalLength)return this.node.getTotalLength();return un(this.attrs.path)}};Zt.getPointAtLength=function(e){if(this.type=="path")return an(this.attrs.path,e)};Zt.getSubpath=function(t,n){if(this.type=="path")return e.getSubpath(this.attrs.path,t,n)};B=e.easing_formulas={linear:function(e){return e},"<":function(e){return z(e,1.7)},">":function(e){return z(e,.48)},"<>":function(e){var t=.48-e/1.04,n=V(.1734+t*t),e=n-t,e=z(U(e),1/3)*(e<0?-1:1),t=-n-t,t=z(U(t),1/3)*(t<0?-1:1),e=e+t+.5;return(1-e)*3*e*e+e*e*e},backIn:function(e){return e*e*(2.70158*e-1.70158)},backOut:function(e){e-=1;return e*e*(2.70158*e+1.70158)+1},elastic:function(e){if(e==!!e)return e;return z(2,-10*e)*X((e-.075)*2*$/.3)+1},bounce:function(e){e<1/2.75?e*=7.5625*e:e<2/2.75?(e-=1.5/2.75,e=7.5625*e*e+.75):e<2.5/2.75?(e-=2.25/2.75,e=7.5625*e*e+.9375):(e-=2.625/2.75,e=7.5625*e*e+.984375);return e}};B.easeIn=B["ease-in"]=B["<"];B.easeOut=B["ease-out"]=B[">"];B.easeInOut=B["ease-in-out"]=B["<>"];B["back-in"]=B.backIn;B["back-out"]=B.backOut;var ln=[],cn=s&&o?function(e){setTimeout(e,16)}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){setTimeout(e,16)},hn=function(){for(var t=+(new Date),r=0;r<ln.length;r++){var i=ln[r];if(!i.el.removed&&!i.paused){var s=t-i.start,o=i.ms,u=i.easing,a=i.from,f=i.diff,l=i.to,c=i.el,h={},p,d={},v;i.initstatus?(s=(i.initstatus*i.anim.top-i.prev)/(i.percent-i.prev)*o,i.status=i.initstatus,delete i.initstatus,i.stop&&ln.splice(r--,1)):i.status=(i.prev+(i.percent-i.prev)*(s/o))/i.anim.top;if(!(s<0))if(s<o){var g=u(s/o),b;for(b in a)if(a[N](b)){switch(at[b]){case Q:p=+a[b]+g*o*f[b];break;case"colour":p="rgb("+[pn(rt(a[b].r+g*o*f[b].r)),pn(rt(a[b].g+g*o*f[b].g)),pn(rt(a[b].b+g*o*f[b].b))].join(",")+")";break;case"path":p=[];s=0;for(u=a[b].length;s<u;s++){p[s]=[a[b][s][0]];l=1;for(d=a[b][s].length;l<d;l++)p[s][l]=(+a[b][s][l]+g*o*f[b][s][l]).toFixed(4);p[s]=p[s].join(D)}p=p.join(D);break;case"transform":if(f[b].real){p=[];s=0;for(u=a[b].length;s<u;s++){p[s]=[a[b][s][0]];l=1;for(d=a[b][s].length;l<d;l++)p[s][l]=a[b][s][l]+g*o*f[b][s][l]}}else p=function(e){return+a[b][e]+g*o*f[b][e]},p=[["m",p(0),p(1),p(2),p(3),p(4),p(5)]];break;case"csv":if(b=="clip-rect"){p=[];for(s=4;s--;)p[s]=+a[b][s]+g*o*f[b][s]}break;default:u=[][M](a[b]);p=[];for(s=c.ca[b].length;s--;)p[s]=+u[s]+g*o*f[b][s]}h[b]=p}c.attr(h);(function(e,t,r){setTimeout(function(){n("raphael.anim.frame."+e,t,r)})})(c.id,c,i.anim)}else{(function(t,r,i){setTimeout(function(){n("raphael.anim.frame."+r.id,r,i);n("raphael.anim.finish."+r.id,r,i);e.is(t,"function")&&t.call(r)})})(i.callback,c,i.anim);c.attr(l);ln.splice(r--,1);if(i.repeat>1&&!i.next){for(v in l)l[N](v)&&(d[v]=i.totalOrigin[v]);i.el.attr(d);y(i.anim,i.el,i.anim.percents[0],null,i.totalOrigin,i.repeat-1)}i.next&&!i.stop&&y(i.anim,i.el,i.next,null,i.totalOrigin,i.repeat)}}}e.svg&&c&&c.paper&&c.paper.safari();ln.length&&cn(hn)},pn=function(e){return e>255?255:e<0?0:e};Zt.animateWith=function(t,n,r,i,s,o){if(this.removed)return o&&o.call(this),this;r=r instanceof v?r:e.animation(r,i,s,o);y(r,this,r.percents[0],null,this.attr());r=0;for(i=ln.length;r<i;r++)if(ln[r].anim==n&&ln[r].el==t){ln[i-1].start=ln[r].start;break}return this};Zt.onAnimation=function(e){e?n.on("raphael.anim.frame."+this.id,e):n.unbind("raphael.anim.frame."+this.id);return this};v.prototype.delay=function(e){var t=new v(this.anim,this.ms);t.times=this.times;t.del=+e||0;return t};v.prototype.repeat=function(e){var t=new v(this.anim,this.ms);t.del=this.del;t.times=I.floor(q(e,0))||1;return t};e.animation=function(t,n,r,i){if(t instanceof v)return t;if(e.is(r,"function")||!r)i=i||r||null,r=null;var t=Object(t),n=+n||0,s={},o,u;for(u in t)t[N](u)&&it(u)!=u&&it(u)+"%"!=u&&(o=!0,s[u]=t[u]);return o?(r&&(s.easing=r),i&&(s.callback=i),new v({100:s},n)):new v(t,n)};Zt.animate=function(t,n,r,i){if(this.removed)return i&&i.call(this),this;t=t instanceof v?t:e.animation(t,n,r,i);y(t,this,t.percents[0],null,this.attr());return this};Zt.setTime=function(e,t){e&&t!=null&&this.status(e,R(t,e.ms)/e.ms);return this};Zt.status=function(e,t){var n=[],r=0,i,s;if(t!=null)return y(e,this,-1,R(t,1)),this;else{for(i=ln.length;r<i;r++)if(s=ln[r],s.el.id==this.id&&(!e||s.anim==e)){if(e)return s.status;n.push({anim:s.anim,status:s.status})}if(e)return 0;return n}};Zt.pause=function(e){for(var t=0;t<ln.length;t++)if(ln[t].el.id==this.id&&(!e||ln[t].anim==e)&&n("raphael.anim.pause."+this.id,this,ln[t].anim)!==!1)ln[t].paused=!0;return this};Zt.resume=function(e){for(var t=0;t<ln.length;t++)if(ln[t].el.id==this.id&&(!e||ln[t].anim==e)){var r=ln[t];n("raphael.anim.resume."+this.id,this,r.anim)!==!1&&(delete r.paused,this.status(r.anim,r.status))}return this};Zt.stop=function(e){for(var t=0;t<ln.length;t++)ln[t].el.id==this.id&&(!e||ln[t].anim==e)&&n("raphael.anim.stop."+this.id,this,ln[t].anim)!==!1&&ln.splice(t--,1);return this};n.on("raphael.remove",b);n.on("raphael.clear",b);Zt.toString=function(){return"Raphaël’s object"};Zt.toFront=function(){if(this.removed)return this;var t=e._engine.getNode(this),n=this.parent,r=this.followers,i;e._tofront(this,n)&&n.canvas.appendChild(t);t=0;for(n=r.length;t<n;t++)(i=r[t]).stalk&&i.el[i.stalk](this);return this};Zt.toBack=function(){if(this.removed)return this;var t=e._engine.getNode(this),n=this.parent,r=this.followers,i;e._toback(this,n)&&n.canvas.insertBefore(t,n.canvas.firstChild);t=0;for(n=r.length;t<n;t++)(i=r[t]).stalk&&i.el[i.stalk](this);return this};Zt.insertAfter=function(t){if(this.removed)return this;var n=e._engine.getNode(this),r=e._engine.getLastNode(t),i=t.parent.canvas,s=this.followers,o;r.nextSibling?i.insertBefore(n,r.nextSibling):i.appendChild(n);e._insertafter(this,t,this.parent,t.parent);n=0;for(r=s.length;n<r;n++)(o=s[n]).stalk&&o.el[o.stalk](t);return this};Zt.insertBefore=function(t){if(this.removed)return this;var n=e._engine.getNode(this),r=e._engine.getNode(t),i=this.followers,s;t.parent.canvas.insertBefore(n,r);e._insertbefore(this,t,this.parent,t.parent);this.parent=t.parent;n=0;for(r=i.length;n<r;n++)(s=i[n]).stalk&&s.el[s.stalk](t);return this};Zt.appendChild=function(t){if(this.removed||this.type!=="group")return this;var n=this.followers,r,i,s;if(t.parent===this)return t.toFront(),this;i=e._engine.getNode(t);e._tear(t,t.parent);this.canvas.appendChild(i);t.parent=this;!this.bottom&&(this.bottom=t);t.prev=this.top;t.next=null;this.top&&(this.top.next=t);this.top=t;i=0;for(s=n.length;i<s;i++)(r=n[i]).stalk&&r.el[r.stalk](t);return this};Zt.removeChild=function(t){if(this.removed||this.type!=="group"||t.parent!==this)return this;var n=e._engine.getNode(t),r=this.paper;e._tear(t,this);r.canvas.appendChild(n);this.parent=r;!r.bottom&&(r.bottom=this);(this.prev=r.top)&&(r.top.next=this);r.top=this;this.next=null;return this};var dn=function(e){this.items=[];this.length=0;this.type="set";if(e)for(var t=0,n=e.length;t<n;t++)if(e[t]&&(e[t].constructor==Zt.constructor||e[t].constructor==dn))this[this.items.length]=this.items[this.items.length]=e[t],this.length++},B=dn.prototype;B.push=function(){for(var e,t,n=0,r=arguments.length;n<r;n++)if((e=arguments[n])&&(e.constructor==Zt.constructor||e.constructor==dn))t=this.items.length,this[t]=this.items[t]=e,this.length++;return this};B.pop=function(){this.length&&delete this[this.length--];return this.items.pop()};B.forEach=function(e,t){for(var n=0,r=this.items.length;n<r;n++)if(e.call(t,this.items[n],n)===!1)break;return this};for(var vn in Zt)Zt[N](vn)&&(B[vn]=function(e){return function(){var t=arguments;return this.forEach(function(n){n[e][O](n,t)})}}(vn));B.attr=function(t,n){if(t&&e.is(t,G)&&e.is(t[0],"object"))for(var r=0,i=t.length;r<i;r++)this.items[r].attr(t[r]);else{r=0;for(i=this.items.length;r<i;r++)this.items[r].attr(t,n)}return this};B.clear=function(){for(;this.length;)this.pop()};B.splice=function(e,t){var e=e<0?q(this.length+e,0):e,t=q(0,R(this.length-e,isNaN(t)&&this.length||t)),n=[],r=[],i=[],s;for(s=2;s<arguments.length;s++)i.push(arguments[s]);for(s=0;s<t;s++)r.push(this[e+s]);for(;s<this.length-e;s++)n.push(this[e+s]);var o=i.length;for(s=0;s<o+n.length;s++)this.items[e+s]=this[e+s]=s<o?i[s]:n[s-o];for(s=this.items.length=this.length-=t-o;this[s];)delete this[s++];return new dn(r)};B.exclude=function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]==e)return this.splice(t,1),!0};B.animate=function(t,n,r,i){(e.is(r,"function")||!r)&&(i=r||null);var s=this.items.length,o=s,u=this,a;if(!s)return this;i&&(a=function(){!--s&&i.call(u)});r=e.is(r,"string")?r:a;n=e.animation(t,n,r,a);for(t=this.items[--o].animate(n);o--;)this.items[o]&&!this.items[o].removed&&this.items[o].animateWith(t,n,n);return this};B.insertAfter=function(e){for(var t=this.items.length;t--;)this.items[t].insertAfter(e);return this};B.getBBox=function(){for(var e=[],t=[],n=[],r=[],i=this.items.length;i--;)if(!this.items[i].removed){var s=this.items[i].getBBox();e.push(s.x);t.push(s.y);n.push(s.x+s.width);r.push(s.y+s.height)}e=R[O](0,e);t=R[O](0,t);n=q[O](0,n);r=q[O](0,r);return{x:e,y:t,x2:n,y2:r,width:n-e,height:r-t}};B.clone=function(e){for(var e=new dn,t=0,n=this.items.length;t<n;t++)e.push(this.items[t].clone());return e};B.toString=function(){return"Raphaël‘s set"};e.registerFont=function(e){if(!e.face)return e;this.fonts=this.fonts||{};var t={w:e.w,face:{},glyphs:{}},n=e.face["font-family"],r;for(r in e.face)e.face[N](r)&&(t.face[r]=e.face[r]);this.fonts[n]?this.fonts[n].push(t):this.fonts[n]=[t];if(!e.svg){t.face["units-per-em"]=st(e.face["units-per-em"],10);for(var i in e.glyphs)if(e.glyphs[N](i)&&(n=e.glyphs[i],t.glyphs[i]={w:n.w,k:{},d:n.d&&"M"+n.d.replace(/[mlcxtrv]/g,function(e){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[e]||"M"})+"z"},n.k))for(var s in n.k)n[N](s)&&(t.glyphs[i].k[s]=n.k[s])}return e};A.getFont=function(t,n,r,i){i=i||"normal";r=r||"normal";n=+n||{normal:400,bold:700,lighter:300,bolder:800}[n]||400;if(e.fonts){var s=e.fonts[t];if(!s){var t=RegExp("(^|\\s)"+t.replace(/[^\w\d\s+!~.:_-]/g,"")+"(\\s|$)","i"),o;for(o in e.fonts)if(e.fonts[N](o)&&t.test(o)){s=e.fonts[o];break}}var u;if(s){o=0;for(t=s.length;o<t;o++)if(u=s[o],u.face["font-weight"]==n&&(u.face["font-style"]==r||!u.face["font-style"])&&u.face["font-stretch"]==i)break}return u}};A.print=function(t,n,r,i,s,o,u){var o=o||"middle",u=q(R(u||0,1),-1),a=P(r)[H](""),f=0,l=0,c="";e.is(i,r)&&(i=this.getFont(i));if(i)for(var r=(s||16)/i.face["units-per-em"],h=i.face.bbox[H](S),s=+h[0],p=h[3]-h[1],d=0,o=+h[1]+(o=="baseline"?p+ +i.face.descent:p/2),h=0,v=a.length;h<v;h++){if(a[h]=="\n")l=g=f=0,d+=p;else{var m=l&&i.glyphs[a[h-1]]||{},g=i.glyphs[a[h]];f+=l?(m.w||i.w)+(m.k&&m.k[a[h]]||0)+i.w*u:0;l=1}g&&g.d&&(c+=e.transformPath(g.d,["t",f*r,d*r,"s",r,r,s,o,"t",(t-s)/r,(n-o)/r]))}return this.path(c).attr({fill:"#000",stroke:"none"})};A.add=function(t){if(e.is(t,"array"))for(var n=this.set(),r=0,i=t.length,s;r<i;r++)s=t[r]||{},x[N](s.type)&&n.push(this[s.type]().attr(s));return n};e.format=function(t,n){var r=e.is(n,G)?[0][M](n):arguments;t&&e.is(t,"string")&&r.length-1&&(t=t.replace(T,function(e,t){return r[++t]==null?"":r[t]}));return t||""};e.fullfill=function(){var e=/\{([^\}]+)\}/g,t=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,n=function(e,n,r){var i=r;n.replace(t,function(e,t,n,r,s){t=t||r;i&&(t in i&&(i=i[t]),typeof i=="function"&&s&&(i=i()))});return i=(i==null||i==r?e:i)+""};return function(t,r){return String(t).replace(e,function(e,t){return n(e,t,r)})}}();e.ninja=function(){L.was?C.win.Raphael=L.is:delete Raphael;return e};e.st=B;(function(t,n,r){function i(){/in/.test(t.readyState)?setTimeout(i,9):e.eve("raphael.DOMload")}if(t.readyState==null&&t.addEventListener)t.addEventListener(n,r=function(){t.removeEventListener(n,r,!1);t.readyState="complete"},!1),t.readyState="loading";i()})(document,"DOMContentLoaded");L.was?C.win.Raphael=e:Raphael=e;n.on("raphael.DOMload",function(){E=!0})})();window.Raphael.svg&&function(e){var t=String,n=parseFloat,r=parseInt,i=Math,s=i.max,o=i.abs,u=i.pow,a=i.sqrt,f=/[, ]+/,l=!(!/AppleWebKit/.test(e._g.win.navigator.userAgent)||/Chrome/.test(e._g.win.navigator.userAgent)&&!(e._g.win.navigator.appVersion.match(/Chrome\/(\d+)\./)[1]<29)),c=e.eve,h={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"},p=e._shapeRenderingAttrs={speed:"optimizeSpeed",crisp:"crispEdges",precision:"geometricPrecision"},d={};e._url=/msie/i.test(navigator.userAgent)&&!window.opera?"":window.location.href.replace(/#.*?$/,"");e.toString=function(){return"Your browser supports SVG.\nYou are running Raphaël "+this.version};var v=e._createNode=function(n,r){if(r){typeof n=="string"&&(n=v(n));for(var i in r)r.hasOwnProperty(i)&&(i.substring(0,6)=="xlink:"?n.setAttributeNS("http://www.w3.org/1999/xlink",i.substring(6),t(r[i])):n.setAttribute(i,t(r[i])))}else n=e._g.doc.createElementNS("http://www.w3.org/2000/svg",n);return n},m={userSpaceOnUse:"userSpaceOnUse",objectBoundingBox:"objectBoundingBox"},g={pad:"pad",redlect:"reflect",repeat:"repeat"},y=function(r,f){var l="linear",c=r.id+f,h=.5,p=.5,d,y,b,w,E,S=r.node,x=r.paper,T=S.style,N=e._g.doc.getElementById(c);if(!N&&x.defs){f=t(f).replace(e._radial_gradient,function(e,t){l="radial";t=t&&t.split(",")||[];w=t[5];E=t[6];var r=t[0],i=t[1],s=t[2],o=t[3],f=t[4],c=r&&i,v;s&&(d=/\%/.test(s)?s:n(s));if(w===m.userSpaceOnUse)return c&&(h=r,p=i),o&&f&&(y=o,b=f,c||(h=y,p=b)),"";c&&(h=n(r),p=n(i),r=(p>.5)*2-1,(v=u(h-.5,2))+u(p-.5,2)>.25&&v<.25&&(p=a(.25-v)*r+.5)&&p!==.5&&(p=p.toFixed(5)-1e-5*r));o&&f&&(y=n(o),b=n(f),r=(b>.5)*2-1,(v=u(y-.5,2))+u(b-.5,2)>.25&&v<.25&&(b=a(.25-v)*r+.5)&&b!==.5&&(b=b.toFixed(5)-1e-5*r),c||(h=y,p=b));return""});f=f.split(/\s*\-\s*/);if(l=="linear"){var N=f.shift(),C=N.match(/\((.*)\)/),k,C=C&&C[1]&&C[1].split(/\s*\,\s*/),N=-n(N);if(isNaN(N))return null;C&&C.length?(C[0]in m?(w=C.shift(),C[0]in g&&(E=C.shift())):(C[4]&&(w=C[4]),C[5]&&(E=C[5])),k=[C[0]||"0%",C[1]||"0%",C[2]||"100%",C[3]||"0%"]):(k=[0,0,i.cos(e.rad(N)),i.sin(e.rad(N))],N=1/(s(o(k[2]),o(k[3]))||1),k[2]*=N,k[3]*=N,k[2]<0&&(k[0]=-k[2],k[2]=0),k[3]<0&&(k[1]=-k[3],k[3]=0))}C=e._parseDots(f);if(!C)return null;c=c.replace(/[\(\)\s,\xb0#]/g,"_");r.gradient&&c!==r.gradient.id&&(x.defs.removeChild(r.gradient),delete r.gradient);if(!r.gradient){N=v(l+"Gradient",{id:c});r.gradient=N;w in m&&N.setAttribute("gradientUnits",t(w));E in g&&N.setAttribute("spreadMethod",t(E));l==="radial"?(d!==void 0&&N.setAttribute("r",t(d)),y!==void 0&&b!==void 0&&(N.setAttribute("cx",t(y)),N.setAttribute("cy",t(b))),N.setAttribute("fx",t(h)),N.setAttribute("fy",t(p))):v(N,{x1:k[0],y1:k[1],x2:k[2],y2:k[3],gradientTransform:r.matrix.invert()});x.defs.appendChild(N);x=0;for(k=C.length;x<k;x++)N.appendChild(v("stop",{offset:C[x].offset?C[x].offset:x?"100%":"0%","stop-color":C[x].color||"#fff","stop-opacity":C[x].opacity===void 0?1:C[x].opacity}))}}v(S,{fill:"url('"+e._url+"#"+c+"')",opacity:1,"fill-opacity":1});T.fill="";T.opacity=1;return T.fillOpacity=1},b=function(e){var t=e.getBBox(1);v(e.pattern,{patternTransform:e.matrix.invert()+" translate("+t.x+","+t.y+")"})},w=function(n,r,i){if(n.type=="path"){for(var s=t(r).toLowerCase().split("-"),o=n.paper,u=i?"end":"start",a=n.node,f=n.attrs,l=f["stroke-width"],c=s.length,p="classic",m,g,y=3,b=3,w=5;c--;)switch(s[c]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":p=s[c];break;case"wide":b=5;break;case"narrow":b=2;break;case"long":y=5;break;case"short":y=2}p=="open"?(y+=2,b+=2,w+=2,m=1,g=i?4:1,s={fill:"none",stroke:f.stroke}):(g=m=y/2,s={fill:f.stroke,stroke:"none"});n._.arrows?i?(n._.arrows.endPath&&d[n._.arrows.endPath]--,n._.arrows.endMarker&&d[n._.arrows.endMarker]--):(n._.arrows.startPath&&d[n._.arrows.startPath]--,n._.arrows.startMarker&&d[n._.arrows.startMarker]--):n._.arrows={};if(p!="none"){var c="raphael-marker-"+p,E="raphael-marker-"+u+p+y+b;e._g.doc.getElementById(c)?d[c]++:(o.defs.appendChild(v(v("path"),{"stroke-linecap":"round",d:h[p],id:c})),d[c]=1);var S=e._g.doc.getElementById(E);S?(d[E]++,y=S.getElementsByTagName("use")[0]):(S=v(v("marker"),{id:E,markerHeight:b,markerWidth:y,orient:"auto",refX:g,refY:b/2}),y=v(v("use"),{"xlink:href":"#"+c,transform:(i?"rotate(180 "+y/2+" "+b/2+") ":"")+"scale("+y/w+","+b/w+")","stroke-width":(1/((y/w+b/w)/2)).toFixed(4)}),S.appendChild(y),o.defs.appendChild(S),d[E]=1);v(y,s);o=m*(p!="diamond"&&p!="oval");i?(i=n._.arrows.startdx*l||0,l=e.getTotalLength(f.path)-o*l):(i=o*l,l=e.getTotalLength(f.path)-(n._.arrows.enddx*l||0));s={};s["marker-"+u]="url('"+e._url+"#"+E+"')";if(l||i)s.d=Raphael.getSubpath(f.path,i,l);v(a,s);n._.arrows[u+"Path"]=c;n._.arrows[u+"Marker"]=E;n._.arrows[u+"dx"]=o;n._.arrows[u+"Type"]=p;n._.arrows[u+"String"]=r}else i?(i=n._.arrows.startdx*l||0,l=e.getTotalLength(f.path)-i):(i=0,l=e.getTotalLength(f.path)-(n._.arrows.enddx*l||0)),n._.arrows[u+"Path"]&&v(a,{d:Raphael.getSubpath(f.path,i,l)}),delete n._.arrows[u+"Path"],delete n._.arrows[u+"Marker"],delete n._.arrows[u+"dx"],delete n._.arrows[u+"Type"],delete n._.arrows[u+"String"];for(s in d)d.hasOwnProperty(s)&&!d[s]&&(n=e._g.doc.getElementById(s))&&n.parentNode.removeChild(n)}},E={"":[0],none:[0],"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},S=function(n,r,i){var s=E[t(r).toLowerCase()];if(r=s||r!==void 0&&[].concat(r)){var o=n.attrs["stroke-width"]||"1",i={round:o,square:o,butt:0}[n.attrs["stroke-linecap"]||i["stroke-linecap"]]||0,u,a=u=r.length;if(s)for(;u--;)r[u]=r[u]*o+(u%2?1:-1)*i;else for(u=0;u<a;u+=2)r[u]-=i,r[u+1]&&(r[u+1]+=i),r[u]<=0&&(r[u]=.1);e.is(r,"array")&&v(n.node,{"stroke-dasharray":r.join(",")})}},x=e._setFillAndStroke=function(n,i){if(n.paper.canvas){var u=n.node,a=n.attrs,c=n.paper,h=u.style.visibility;u.style.visibility="hidden";for(var d in i)if(i.hasOwnProperty(d)&&e._availableAttrs.hasOwnProperty(d)){var m=i[d];a[d]=m;switch(d){case"blur":n.blur(m);break;case"href":case"title":case"target":var g=u.parentNode;if(g.tagName.toLowerCase()!="a"){if(m=="")break;var E=v("a");g.insertBefore(E,u);E.appendChild(u);g=E}d=="target"?g.setAttributeNS("http://www.w3.org/1999/xlink","show",m=="blank"?"new":m):g.setAttributeNS("http://www.w3.org/1999/xlink",d,m);u.titleNode=g;break;case"cursor":u.style.cursor=m;break;case"transform":n.transform(m);break;case"rotation":e.is(m,"array")?n.rotate.apply(n,m):n.rotate(m);break;case"arrow-start":w(n,m);break;case"arrow-end":w(n,m,1);break;case"clip-path":var x=!0;case"clip-rect":g=!x&&t(m).split(f);n._.clipispath=!!x;if(x||g.length==4){n.clip&&n.clip.parentNode.parentNode.removeChild(n.clip.parentNode);var E=v("clipPath"),N=v(x?"path":"rect");E.id=e.createUUID();v(N,x?{d:m?a["clip-path"]=e._pathToAbsolute(m):e._availableAttrs.path,fill:"none"}:{x:g[0],y:g[1],width:g[2],height:g[3],transform:n.matrix.invert()});E.appendChild(N);c.defs.appendChild(E);v(u,{"clip-path":"url('"+e._url+"#"+E.id+"')"});n.clip=N}if(!m&&(m=u.getAttribute("clip-path")))(m=e._g.doc.getElementById(m.replace(/(^url\(#|\)$)/g,"")))&&m.parentNode.removeChild(m),v(u,{"clip-path":""}),delete n.clip;break;case"path":if(n.type=="path")v(u,{d:m?a.path=e._pathToAbsolute(m):e._availableAttrs.path}),n._.dirty=1,n._.arrows&&("startString"in n._.arrows&&w(n,n._.arrows.startString),"endString"in n._.arrows&&w(n,n._.arrows.endString,1));break;case"width":if(u.setAttribute(d,m),n._.dirty=1,a.fx)d="x",m=a.x;else break;case"x":a.fx&&(m=-a.x-(a.width||0));case"rx":if(d=="rx"&&n.type=="rect")break;case"cx":u.setAttribute(d,m);n.pattern&&b(n);n._.dirty=1;break;case"height":if(u.setAttribute(d,m),n._.dirty=1,a.fy)d="y",m=a.y;else break;case"y":a.fy&&(m=-a.y-(a.height||0));case"ry":if(d=="ry"&&n.type=="rect")break;case"cy":u.setAttribute(d,m);n.pattern&&b(n);n._.dirty=1;break;case"r":n.type=="rect"?v(u,{rx:m,ry:m}):u.setAttribute(d,m);n._.dirty=1;break;case"src":n.type=="image"&&u.setAttributeNS("http://www.w3.org/1999/xlink","href",m);break;case"stroke-width":if(n._.sx!=1||n._.sy!=1)m/=s(o(n._.sx),o(n._.sy))||1;c._vbSize&&(m*=c._vbSize);l&&m===0&&(m=1e-6);u.setAttribute(d,m);a["stroke-dasharray"]&&S(n,a["stroke-dasharray"],i);n._.arrows&&("startString"in n._.arrows&&w(n,n._.arrows.startString),"endString"in n._.arrows&&w(n,n._.arrows.endString,1));break;case"stroke-dasharray":S(n,m,i);break;case"fill":var C=t(m).match(e._ISURL);if(C){var E=v("pattern"),k=v("image");E.id=e.createUUID();v(E,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1});v(k,{x:0,y:0,"xlink:href":C[1]});E.appendChild(k);(function(t){e._preload(C[1],function(){var e=this.offsetWidth,n=this.offsetHeight;v(t,{width:e,height:n});v(k,{width:e,height:n});c.safari()})})(E);c.defs.appendChild(E);v(u,{fill:"url('"+e._url+"#"+E.id+"')"});n.pattern=E;n.pattern&&b(n);break}g=e.getRGB(m);if(g.error){if((n.type=="circle"||n.type=="ellipse"||t(m).charAt()!="r")&&y(n,m)){if("opacity"in a||"fill-opacity"in a)if(g=e._g.doc.getElementById(u.getAttribute("fill").replace(/^url\(#|\)$/g,"")))g=g.getElementsByTagName("stop"),v(g[g.length-1],{"stop-opacity":("opacity"in a?a.opacity:1)*("fill-opacity"in a?a["fill-opacity"]:1)});a.gradient=m;a.fill="none";break}}else delete i.gradient,delete a.gradient,!e.is(a.opacity,"undefined")&&e.is(i.opacity,"undefined")&&v(u,{opacity:a.opacity}),!e.is(a["fill-opacity"],"undefined")&&e.is(i["fill-opacity"],"undefined")&&v(u,{"fill-opacity":a["fill-opacity"]});g.hasOwnProperty("opacity")?(v(u,{"fill-opacity":g.opacity>1?g.opacity/100:g.opacity}),n._.opacitydirty=!0):n._.opacitydirty&&e.is(a["fill-opacity"],"undefined")&&e.is(i["fill-opacity"],"undefined")&&(u.removeAttribute("fill-opacity"),delete n._.opacitydirty);case"stroke":g=e.getRGB(m);u.setAttribute(d,g.hex);d=="stroke"&&g.hasOwnProperty("opacity")&&v(u,{"stroke-opacity":g.opacity>1?g.opacity/100:g.opacity});d=="stroke"&&n._.arrows&&("startString"in n._.arrows&&w(n,n._.arrows.startString),"endString"in n._.arrows&&w(n,n._.arrows.endString,1));break;case"gradient":(n.type=="circle"||n.type=="ellipse"||t(m).charAt()!="r")&&y(n,m);break;case"shape-rendering":a[d]=m=p[m]||m||"default";u.setAttribute(d,m);u.style.shapeRendering=m;break;case"line-height":case"vertical-align":break;case"visibility":m==="hidden"?n.hide():n.show();break;case"opacity":a.gradient&&!a.hasOwnProperty("stroke-opacity")&&v(u,{"stroke-opacity":m>1?m/100:m});case"fill-opacity":if(a.gradient){if(g=e._g.doc.getElementById(u.getAttribute("fill").replace(/^url\(#|\)$/g,"")))g=g.getElementsByTagName("stop"),v(g[g.length-1],{"stop-opacity":m});break};default:d=="font-size"&&(m=r(m,10)+"px"),g=d.replace(/(\-.)/g,function(e){return e.substring(1).toUpperCase()}),u.style[g]=m,n._.dirty=1,u.setAttribute(d,m)}}T(n,i);u.style.visibility=h}},T=function(r,i){if(!(r.type!="text"||!i.hasOwnProperty("text")&&!i.hasOwnProperty("font")&&!i.hasOwnProperty("font-size")&&!i.hasOwnProperty("x")&&!i.hasOwnProperty("y")&&!i.hasOwnProperty("line-height")&&!i.hasOwnProperty("vertical-align"))){var s=r.attrs,o=r.node,u=o.firstChild&&e._g.doc.defaultView.getComputedStyle(o.firstChild,""),u=u?n(u.getPropertyValue("font-size")):n(i["font-size"]||s["font-size"])||10,a=n(i["line-height"]||s["line-height"])||u*1.2,f=s.hasOwnProperty("vertical-align")?s["vertical-align"]:"middle";isNaN(u)&&(u=10);isNaN(a)&&(a=u*1.2);f=f==="top"?-.5:f==="bottom"?.5:0;if(i.hasOwnProperty("text")&&(i.text!==s.text||r._textdirty)){for(s.text=i.text;o.firstChild;)o.removeChild(o.firstChild);for(var l=t(i.text).split(/\n|<br\s*?\/?>/ig),u=[],c,h=0,p=l.length;h<p;h++)c=v("tspan"),h?v(c,{dy:a,x:s.x}):v(c,{dy:a*l.length*f,x:s.x}),l[h]||(c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),l[h]=" "),c.appendChild(e._g.doc.createTextNode(l[h])),o.appendChild(c),u[h]=c;r._textdirty=!1}else{u=o.getElementsByTagName("tspan");h=0;for(p=u.length;h<p;h++)h?v(u[h],{dy:a,x:s.x}):v(u[0],{dy:a*u.length*f,x:s.x})}v(o,{x:s.x,y:s.y});r._.dirty=1;o=r._getBBox();a=s.y-(o.y+o.height/2);if(o.isCalculated)switch(s["vertical-align"]){case"top":a=o.height*.75;break;case"bottom":a=-(o.height*.25);break;default:a=s.y-(o.y+o.height*.25)}a&&e.is(a,"finite")&&u[0]&&v(u[0],{dy:a})}},N=function(t,n,r){r=r||n;this.node=this[0]=t;t.raphael=!0;t.raphaelid=this.id=e._oid++;this.matrix=e.matrix();this.realPath=null;this.attrs=this.attrs||{};this.styles=this.styles||{};this.followers=this.followers||[];this.paper=n;this.ca=this.customAttributes=this.customAttributes||new n._CustomAttributes;this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1};this.parent=r;!r.bottom&&(r.bottom=this);(this.prev=r.top)&&(r.top.next=this);r.top=this;this.next=null},C=e.el;N.prototype=C;C.constructor=N;e._engine.getNode=function(e){e=e.node||e[0].node;return e.titleNode||e};e._engine.getLastNode=function(e){e=e.node||e[e.length-1].node;return e.titleNode||e};e._engine.path=function(e,t,n){var r=v("path");n&&n.canvas&&n.canvas.appendChild(r)||t.canvas&&t.canvas.appendChild(r);t=new N(r,t,n);t.type="path";x(t,{fill:"none",stroke:"#000",path:e});return t};C.rotate=function(e,r,i){if(this.removed)return this;e=t(e).split(f);e.length-1&&(r=n(e[1]),i=n(e[2]));e=n(e[0]);i==null&&(r=i);if(r==null||i==null)i=this.getBBox(1),r=i.x+i.width/2,i=i.y+i.height/2;this.transform(this._.transform.concat([["r",e,r,i]]));return this};C.scale=function(e,r,i,s){var o;if(this.removed)return this;e=t(e).split(f);e.length-1&&(r=n(e[1]),i=n(e[2]),s=n(e[3]));e=n(e[0]);r==null&&(r=e);s==null&&(i=s);if(i==null||s==null)o=this.getBBox(1);i=i==null?o.x+o.width/2:i;s=s==null?o.y+o.height/2:s;this.transform(this._.transform.concat([["s",e,r,i,s]]));return this};C.translate=function(e,r){if(this.removed)return this;e=t(e).split(f);e.length-1&&(r=n(e[1]));e=n(e[0])||0;this.transform(this._.transform.concat([["t",e,+r||0]]));return this};C.transform=function(t){var n=this._;if(t==null)return n.transform;e._extractTransform(this,t);this.clip&&!n.clipispath&&v(this.clip,{transform:this.matrix.invert()});this.pattern&&b(this);this.node&&v(this.node,{transform:this.matrix});if(n.sx!=1||n.sy!=1)t=this.attrs.hasOwnProperty("stroke-width")?this.attrs["stroke-width"]:1,this.attr({"stroke-width":t});return this};C.hide=function(){!this.removed&&this.paper.safari(this.node.style.display="none");return this};C.show=function(){!this.removed&&this.paper.safari(this.node.style.display="");return this};C.remove=function(){if(!this.removed&&this.parent.canvas){var t=e._engine.getNode(this),n=this.paper,r=n.defs;n.__set__&&n.__set__.exclude(this);c.unbind("raphael.*.*."+this.id);for(this.gradient&&r&&r.removeChild(this.gradient);r=this.followers.pop();)r.el.remove();this.parent.canvas.removeChild(t);e._tear(this,n);for(r in this)this[r]=typeof this[r]==="function"?e._removedFactory(r):null;this.removed=!0}};C._getBBox=function(){var e=this.node,t={},n=this.attrs,r,i;e.style.display==="none"&&(this.show(),i=!0);try{if(t=e.getBBox(),this.type=="text"){if(t.x===void 0)t.isCalculated=!0,r=n["text-anchor"],t.x=(n.x||0)-t.width*(r==="start"?0:r==="middle"?.5:1);if(t.y===void 0)t.isCalculated=!0,r=n["vertical-align"],t.y=(n.y||0)-t.height*(r==="bottom"?1:r==="middle"?.5:0)}}catch(s){}finally{t=t||{}}i&&this.hide();return t};C.css=function(t,n){if(this.removed)return this;if(n==null&&e.is(t,"string")){for(var r=t.split(f),i={},s=0,o=r.length;s<o;s++)t=r[s],t in this.styles&&(i[t]=this.styles[t]);return o-1?i:i[r[0]]}if(n==null&&e.is(t,"array")){i={};s=0;for(o=t.length;s<o;s++)i[t[s]]=this.styles(t[s]);return i}n!=null?(r={},r[t]=n):t!=null&&e.is(t,"object")&&(r=t);i={};for(o in r)s=o.replace(/\B([A-Z]{1})/g,"-$1").toLowerCase(),e._availableAttrs.hasOwnProperty(s)||s==="color"?(s==="color"&&this.type==="text"&&(s="fill"),i[s]=r[o],i.dirty=!0):(c("raphael.css."+s+"."+this.id,this,r[o],s),this.node.style[s]=r[o],this.styles[s]=r[o]);s=0;for(o=this.followers.length;s<o;s++)this.followers[s].el.css(r);i.hasOwnProperty("dirty")&&(delete i.dirty,this.attr(i));return this};C.attr=function(t,n){if(this.removed)return this;if(t==null){var r={},i;for(i in this.attrs)this.attrs.hasOwnProperty(i)&&(r[i]=this.attrs[i]);r.gradient&&r.fill=="none"&&(r.fill=r.gradient)&&delete r.gradient;r.transform=this._.transform;r.visibility=this.node.style.display==="none"?"hidden":"visible";return r}if(n==null&&e.is(t,"string")){if(t=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;if(t=="transform")return this._.transform;if(t=="visibility")return this.node.style.display==="none"?"hidden":"visible";var r=t.split(f),s={},o=0;for(i=r.length;o<i;o++)t=r[o],s[t]=t in this.attrs?this.attrs[t]:e.is(this.ca[t],"function")?this.ca[t].def:e._availableAttrs[t];return i-1?s:s[r[0]]}if(n==null&&e.is(t,"array")){s={};o=0;for(i=t.length;o<i;o++)s[t[o]]=this.attr(t[o]);return s}n!=null?(r={},r[t]=n):t!=null&&e.is(t,"object")&&(r=t);for(o in r)c("raphael.attr."+o+"."+this.id,this,r[o],o);var u={};for(o in this.ca)if(this.ca[o]&&r.hasOwnProperty(o)&&e.is(this.ca[o],"function")&&!this.ca["_invoked"+o]){this.ca["_invoked"+o]=!0;i=this.ca[o].apply(this,[].concat(r[o]));delete this.ca["_invoked"+o];for(s in i)i.hasOwnProperty(s)&&(r[s]=i[s]);this.attrs[o]=r[o];i===!1&&(u[o]=r[o],delete r[o])}x(this,r);var a,o=0;for(i=this.followers.length;o<i;o++)a=this.followers[o],a.cb&&!a.cb.call(a.el,r,this)||a.el.attr(r);for(s in u)r[s]=u[s];return this};C.blur=function(t){if(+t!==0){var n=v("filter"),r=v("feGaussianBlur");this.attrs.blur=t;n.id=e.createUUID();v(r,{stdDeviation:+t||1.5});n.appendChild(r);this.paper.defs.appendChild(n);this._blur=n;v(this.node,{filter:"url('"+e._url+"#"+n.id+"')"})}else this._blur&&(this._blur.parentNode.removeChild(this._blur),delete this._blur,delete this.attrs.blur),this.node.removeAttribute("filter")};C.on=function(t,n){if(this.removed)return this;var r=n;e._supportsTouch&&(t=e._touchMap[t]||t==="click"&&"touchstart"||t,r=function(e){e.preventDefault();n()});this.node["on"+t]=r;return this};e._engine.group=function(e,t,n){var r=v("g");n&&n.canvas&&n.canvas.appendChild(r)||e.canvas&&e.canvas.appendChild(r);e=new N(r,e,n);e.type="group";e.canvas=e.node;e.top=null;e.bottom=null;t&&r.setAttribute("class",["red",t,e.id].join("-"));return e};e._engine.circle=function(e,t,n,r,i){var s=v("circle");i&&i.canvas&&i.canvas.appendChild(s)||e.canvas&&e.canvas.appendChild(s);e=new N(s,e,i);e.attrs={cx:t,cy:n,r:r,fill:"none",stroke:"#000"};e.type="circle";v(s,e.attrs);return e};e._engine.rect=function(e,t,n,r,i,s,o){var u=v("rect");o&&o.canvas&&o.canvas.appendChild(u)||e.canvas&&e.canvas.appendChild(u);e=new N(u,e,o);e.attrs={x:t,y:n,width:r,height:i,r:s||0,rx:s||0,ry:s||0,fill:"none",stroke:"#000"};e.type="rect";v(u,e.attrs);return e};e._engine.ellipse=function(e,t,n,r,i,s){var o=v("ellipse");s&&s.canvas&&s.canvas.appendChild(o)||e.canvas&&e.canvas.appendChild(o);e=new N(o,e,s);e.attrs={cx:t,cy:n,rx:r,ry:i,fill:"none",stroke:"#000"};e.type="ellipse";v(o,e.attrs);return e};e._engine.image=function(e,t,n,r,i,s,o){var u=v("image");v(u,{x:n,y:r,width:i,height:s,preserveAspectRatio:"none"});u.setAttributeNS("http://www.w3.org/1999/xlink","href",t);o&&o.canvas&&o.canvas.appendChild(u)||e.canvas&&e.canvas.appendChild(u);e=new N(u,e,o);e.attrs={x:n,y:r,width:i,height:s,src:t};e.type="image";return e};e._engine.text=function(e,t,n,r,i){var s=v("text");i&&i.canvas&&i.canvas.appendChild(s)||e.canvas&&e.canvas.appendChild(s);e=new N(s,e,i);e.attrs={x:t,y:n,"text-anchor":"middle","vertical-align":"middle",text:r,stroke:"none",fill:"#000"};e.type="text";e._textdirty=!0;x(e,e.attrs);return e};e._engine.setSize=function(e,t){this.width=e||this.width;this.height=t||this.height;this.canvas.setAttribute("width",this.width);this.canvas.setAttribute("height",this.height);this._viewBox&&this.setViewBox.apply(this,this._viewBox);return this};e._engine.create=function(){var t=e._getContainer.apply(0,arguments),n=t&&t.container,r=t.x,i=t.y,s=t.width,t=t.height;if(!n)throw Error("SVG container not found.");var o=v("svg"),u,r=r||0,i=i||0,s=s||512,t=t||342;v(o,{height:t,version:1.1,width:s,xmlns:"http://www.w3.org/2000/svg"});n==1?(o.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:"+r+"px;top:"+i+"px",e._g.doc.body.appendChild(o),u=1):(o.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",n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o));n=new e._Paper;n.width=s;n.height=t;n.canvas=o;n.clear();n._left=n._top=0;u&&(n.renderfix=function(){});n.renderfix();return n};e._engine.setViewBox=function(e,t,n,r,i){c("raphael.setViewBox",this,this._viewBox,[e,t,n,r,i]);var o=s(n/this.width,r/this.height),u=this.top,a;e==null?(this._vbSize&&(o=1),delete this._vbSize,a="0 0 "+this.width+" "+this.height):(this._vbSize=o,a=e+" "+t+" "+n+" "+r);for(v(this.canvas,{viewBox:a,preserveAspectRatio:i?"meet":"xMinYMin"});o&&u;)a="stroke-width"in u.attrs?u.attrs["stroke-width"]:1,u.attr({"stroke-width":a}),u._.dirty=1,u._.dirtyT=1,u=u.prev;this._viewBox=[e,t,n,r,!!i];return this};e.prototype.renderfix=function(){var e=this.canvas,t=e.style,n;try{n=e.getScreenCTM()||e.createSVGMatrix()}catch(r){n=e.createSVGMatrix()}e=-n.e%1;n=-n.f%1;if(e||n){if(e)this._left=(this._left+e)%1,t.left=this._left+"px";if(n)this._top=(this._top+n)%1,t.top=this._top+"px"}};e.prototype._desc=function(t){var n=this.desc;if(n)for(;n.firstChild;)n.removeChild(n.firstChild);else this.desc=n=v("desc"),this.canvas.appendChild(n);n.appendChild(e._g.doc.createTextNode(e.is(t,"string")?t:"Created with Red Raphaël "+e.version))};e.prototype.clear=function(){c("raphael.clear",this);for(var t=this.canvas;t.firstChild;)t.removeChild(t.firstChild);this.bottom=this.top=null;this._desc(e.desc);t.appendChild(this.defs=v("defs"))};e.prototype.remove=function(){c("raphael.remove",this);this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);for(var t in this)this[t]=typeof this[t]=="function"?e._removedFactory(t):null;this.removed=!0};var k=e.st,L;for(L in C)C.hasOwnProperty(L)&&!k.hasOwnProperty(L)&&(k[L]=function(e){return function(){var t=arguments;return this.forEach(function(n){n[e].apply(n,t)})}}(L))}(window.Raphael);window.Raphael.vml&&function(e){var t=String,n=parseFloat,r=Math,i=r.round,s=r.max,o=r.min,u=r.sqrt,a=r.abs,f=/[, ]+/,l=e.eve,c={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},h=/([clmz]),?([^clmz]*)/gi,p=/ progid:\S+Blur\([^\)]+\)/g,d=/-?[^,\s-]+/g,v={path:1,rect:1,image:1},m={circle:1,ellipse:1},g=function(n){var r=/[ahqstv]/ig,s=e._pathToAbsolute;t(n).match(r)&&(s=e._path2curve);r=/[clmz]/g;if(s==e._pathToAbsolute&&!t(n).match(r))return(n=t(n).replace(h,function(e,t,n){var r=[],s=t.toLowerCase()=="m",o=c[t];n.replace(d,function(e){s&&r.length==2&&(o+=r+c[t=="m"?"l":"L"],r=[]);r.push(i(e*21600))});return o+r}))||"m0,0";for(var r=s(n),o,n=[],u=0,a=r.length;u<a;u++){s=r[u];o=r[u][0].toLowerCase();o=="z"&&(o="x");for(var f=1,l=s.length;f<l;f++)o+=i(s[f]*21600)+(f!=l-1?",":"");n.push(o)}return n.length?n.join(" "):"m0,0"},y=function(t,n,r){var i=e.matrix();i.rotate(-t,.5,.5);return{dx:i.x(n,r),dy:i.y(n,r)}},b=function(e,t,n,r,i,s){var o=e._,u=e.matrix,f=o.fillpos,e=e.node,l=e.style,c=1,h="",p=21600/t,d=21600/n;l.visibility="hidden";if(t&&n){e.coordsize=a(p)+" "+a(d);l.rotation=s*(t*n<0?-1:1);if(s)i=y(s,r,i),r=i.dx,i=i.dy;t<0&&(h+="x");n<0&&(h+=" y")&&(c=-1);l.flip=h;e.coordorigin=r*-p+" "+i*-d;if(f||o.fillsize){r=(r=e.getElementsByTagName("fill"))&&r[0];e.removeChild(r);if(f)i=y(s,u.x(f[0],f[1]),u.y(f[0],f[1])),r.position=i.dx*c+" "+i.dy*c;if(o.fillsize)r.size=o.fillsize[0]*a(t)+" "+o.fillsize[1]*a(n);e.appendChild(r)}l.visibility=""}};e._url="";e.toString=function(){return"Your browser doesn’t support SVG. Falling down to VML.\nYou are running Raphaël "+this.version};var w=function(e,n,r){for(var n=t(n).toLowerCase().split("-"),r=r?"end":"start",i=n.length,s="classic",o="medium",u="medium";i--;)switch(n[i]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":s=n[i];break;case"wide":case"narrow":u=n[i];break;case"long":case"short":o=n[i]}e=e.node.getElementsByTagName("stroke")[0];e[r+"arrow"]=s;e[r+"arrowlength"]=o;e[r+"arrowwidth"]=u},E=e._setFillAndStroke=function(r,u){if(r.paper.canvas){r.attrs=r.attrs||{};var a=r.node,l=r.attrs,c=a.style,h=v[r.type]&&(u.x!=l.x||u.y!=l.y||u.width!=l.width||u.height!=l.height||u.cx!=l.cx||u.cy!=l.cy||u.rx!=l.rx||u.ry!=l.ry||u.r!=l.r),p=m[r.type]&&(l.cx!=u.cx||l.cy!=u.cy||l.r!=u.r||l.rx!=u.rx||l.ry!=u.ry),d=r.type==="group",y;for(y in u)u.hasOwnProperty(y)&&(l[y]=u[y]);if(h)l.path=e._getPath[r.type](r),r._.dirty=1;u.href&&(a.href=u.href);u.title&&(a.title=u.title);u.target&&(a.target=u.target);u.cursor&&(c.cursor=u.cursor);"blur"in u&&r.blur(u.blur);if(u.path&&r.type=="path"||h)if(a.path=g(~t(l.path).toLowerCase().indexOf("r")?e._pathToAbsolute(l.path):l.path),r.type=="image")r._.fillpos=[l.x,l.y],r._.fillsize=[l.width,l.height],b(r,1,1,0,0,0);"transform"in u&&r.transform(u.transform);if("rotation"in u)c=u.rotation,e.is(c,"array")?r.rotate.apply(r,c):r.rotate(c);if("shape-rendering"in u)a.style.antialias=u["shape-rendering"]!=="crisp";"visibility"in u&&(u.visibility==="hidden"?r.hide():r.show());if(p)c=+l.cx,p=+l.cy,h=+l.rx||+l.r||0,y=+l.ry||+l.r||0,a.path=e.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",i((c-h)*21600),i((p-y)*21600),i((c+h)*21600),i((p+y)*21600),i(c*21600));if("clip-rect"in u){c=t(u["clip-rect"]).split(f);if(c.length==4){c[0]=+c[0];c[1]=+c[1];c[2]=+c[2]+c[0];c[3]=+c[3]+c[1];h=d?a:a.clipRect||e._g.doc.createElement("div");p=h.style;if(d)r.clip=c.slice(),h=r.matrix.offset(),h=[n(h[0]),n(h[1])],c[0]-=h[0],c[1]-=h[1],c[2]-=h[0],c[3]-=h[1],p.width="10800px",p.height="10800px";else if(!a.clipRect)p.top="0",p.left="0",p.width=r.paper.width+"px",p.height=r.paper.height+"px",a.parentNode.insertBefore(h,a),h.appendChild(a),a.clipRect=h;p.position="absolute";p.clip=e.format("rect({1}px {2}px {3}px {0}px)",c)}if(!u["clip-rect"])if(d&&r.clip)a.style.clip="rect(auto auto auto auto)",delete r.clip;else if(a.clipRect)a.clipRect.style.clip="rect(auto auto auto auto)"}if(r.textpath)d=r.textpath.style,u.font&&(d.font=u.font),u["font-family"]&&(d.fontFamily='"'+u["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,"")+'"'),u["font-size"]&&(d.fontSize=u["font-size"]),u["font-weight"]&&(d.fontWeight=u["font-weight"]),u["font-style"]&&(d.fontStyle=u["font-style"]);"arrow-start"in u&&w(r,u["arrow-start"]);"arrow-end"in u&&w(r,u["arrow-end"],1);if(u.opacity!=null||u["stroke-width"]!=null||u.fill!=null||u.src!=null||u.stroke!=null||u["stroke-width"]!=null||u["stroke-opacity"]!=null||u["fill-opacity"]!=null||u["stroke-dasharray"]!=null||u["stroke-miterlimit"]!=null||u["stroke-linejoin"]!=null||u["stroke-linecap"]!=null){d=a.getElementsByTagName("fill");c=-1;d=d&&d[0];!d&&(d=T("fill"));if(r.type=="image"&&u.src)d.src=u.src;u.fill&&(d.on=!0);if(d.on==null||u.fill=="none"||u.fill===null)d.on=!1;if(d.on&&u.fill)if(p=t(u.fill).match(e._ISURL))d.parentNode==a&&a.removeChild(d),d.rotate=!0,d.src=p[1],d.type="tile",h=r.getBBox(1),d.position=h.x+" "+h.y,r._.fillpos=[h.x,h.y],e._preload(p[1],function(){r._.fillsize=[this.offsetWidth,this.offsetHeight]});else if(p=e.getRGB(u.fill),d.color=p.hex,d.src="",d.type="solid",p.error&&(r.type in{circle:1,ellipse:1}||t(u.fill).charAt()!="r")&&S(r,u.fill,d))l.fill="none",l.gradient=u.fill,d.rotate=!1;else if("opacity"in p&&!("fill-opacity"in u))c=p.opacity;if(c!==-1||"fill-opacity"in u||"opacity"in u)if(p=((+l["fill-opacity"]+1||2)-1)*((+l.opacity+1||2)-1)*((+c+1||2)-1),p=o(s(p,0),1),d.opacity=p,d.src)d.color="none";a.appendChild(d);d=a.getElementsByTagName("stroke")&&a.getElementsByTagName("stroke")[0];c=!1;!d&&(c=d=T("stroke"));if(u.stroke&&u.stroke!="none"||u["stroke-width"]||u["stroke-opacity"]!=null||u["stroke-dasharray"]||u["stroke-miterlimit"]||u["stroke-linejoin"]||u["stroke-linecap"])d.on=!0;(u.stroke=="none"||u.stroke===null||d.on==null||u.stroke==0||u["stroke-width"]==0)&&(d.on=!1);p=e.getRGB("stroke"in u?u.stroke:l.stroke);d.on&&u.stroke&&(d.color=p.hex);p=((+l["stroke-opacity"]+1||2)-1)*((+l.opacity+1||2)-1)*((+p.opacity+1||2)-1);h=(n(u["stroke-width"])||1)*.75;p=o(s(p,0),1);u["stroke-width"]==null&&(h=l["stroke-width"]);u["stroke-width"]&&(d.weight=h);h&&h<1&&(p*=h)&&(d.weight=1);d.opacity=p;u["stroke-linejoin"]&&(d.joinstyle=u["stroke-linejoin"])||c&&(c.joinstyle="miter");d.miterlimit=u["stroke-miterlimit"]||8;u["stroke-linecap"]&&(d.endcap=u["stroke-linecap"]=="butt"?"flat":u["stroke-linecap"]=="square"?"square":"round");if(u["stroke-dasharray"])p={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"},d.dashstyle=p.hasOwnProperty(u["stroke-dasharray"])?p[u["stroke-dasharray"]]:u["stroke-dasharray"].join&&u["stroke-dasharray"].join(" ")||"";c&&a.appendChild(d)}if(r.type=="text"){r.paper.canvas.style.display="";a=r.paper.span;d=l.font&&l.font.match(/\d+(?:\.\d*)?(?=px)/);p=l["line-height"]&&(l["line-height"]+"").match(/\d+(?:\.\d*)?(?=px)/);c=a.style;l.font&&(c.font=l.font);l["font-family"]&&(c.fontFamily=l["font-family"]);l["font-weight"]&&(c.fontWeight=l["font-weight"]);l["font-style"]&&(c.fontStyle=l["font-style"]);d=n(l["font-size"]||d&&d[0])||10;c.fontSize=d*100+"px";p=n(l["line-height"]||p&&p[0])||12;l["line-height"]&&(c.lineHeight=p*100+"px");r.textpath.string&&(a.innerHTML=t(r.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));a=a.getBoundingClientRect();r.W=l.w=(a.right-a.left)/100;r.H=l.h=(a.bottom-a.top)/100;r.X=l.x;r.Y=l.y;switch(l["vertical-align"]){case"top":r.bby=r.H/2;break;case"bottom":r.bby=-r.H/2;break;default:r.bby=0}("x"in u||"y"in u||r.bby!==void 0)&&(r.path.v=e.format("m{0},{1}l{2},{1}",i(l.x*21600),i((l.y+(r.bby||0))*21600),i(l.x*21600)+1));a=["x","y","text","font","font-family","font-weight","font-style","font-size","line-height"];d=0;for(c=a.length;d<c;d++)if(a[d]in u){r._.dirty=1;break}switch(l["text-anchor"]){case"start":r.textpath.style["v-text-align"]="left";r.bbx=r.W/2;break;case"end":r.textpath.style["v-text-align"]="right";r.bbx=-r.W/2;break;default:r.textpath.style["v-text-align"]="center",r.bbx=0}r.textpath.style["v-text-kern"]=!0}}},S=function(r,i,s){r.attrs=r.attrs||{};var o=Math.pow,a="linear",f=".5 .5";r.attrs.gradient=i;i=t(i).replace(e._radial_gradient,function(e,t){a="radial";var t=t&&t.split(",")||[],r=t[3],i=t[4];r&&i&&(r=n(r),i=n(i),o(r-.5,2)+o(i-.5,2)>.25&&(i=u(.25-o(r-.5,2))*((i>.5)*2-1)+.5),f=r+" "+i);return""});i=i.split(/\s*\-\s*/);if(a=="linear"){var l=i.shift(),l=-n(l);if(isNaN(l))return null}i=e._parseDots(i);if(!i)return null;r=r.shape||r.node;if(i.length){r.removeChild(s);s.on=!0;s.method="none";s.color=i[0].color;s.color2=i[i.length-1].color;for(var c=[],h=1,p=i[0].opacity===void 0?1:i[0].opacity,d=0,v=i.length;d<v;d++)if(i[d].offset&&c.push(i[d].offset+" "+i[d].color),i[d].opacity!==void 0)h=i[d].opacity;s.colors=c.length?c.join():"0% "+s.color;s.opacity=h;s["o:opacity2"]=p;a=="radial"?(s.type="gradientTitle",s.focus="100%",s.focussize="0 0",s.focusposition=f,s.angle=0):(s.type="gradient",s.angle=(270-l)%360);r.appendChild(s)}return 1},x=function(t,n,r){r=r||n;this.node=this[0]=t;t.raphael=!0;t.raphaelid=this.id=e._oid++;this.Y=this.X=0;this.attrs=this.attrs||{};this.styles=this.styles||{};this.followers=this.followers||[];this.paper=n;this.ca=this.customAttributes=this.customAttributes||new n._CustomAttributes;this.matrix=e.matrix();this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1};this.parent=r;!r.bottom&&(r.bottom=this);(this.prev=r.top)&&(r.top.next=this);r.top=this;this.next=null},r=e.el;x.prototype=r;r.constructor=x;r.transform=function(n){if(n==null)return this._.transform;var r=this.paper._viewBoxShift,i=r?"s"+[r.scale,r.scale]+"-1-1t"+[r.dx,r.dy]:"",s;r&&(s=n=t(n).replace(/\.{3}|\u2026/g,this._.transform||""));e._extractTransform(this,i+n);var r=this.matrix.clone(),o=this.skew,n=this.node,i=~t(this.attrs.fill).indexOf("-"),u=!t(this.attrs.fill).indexOf("url(");r.translate(-.5,-.5);u||i||this.type=="image"?(o.matrix="1 0 0 1",o.offset="0 0",o=r.split(),i&&o.noRotation||!o.isSimple?(n.style.filter=r.toFilter(),r=this.getBBox(),i=this.getBBox(1),u=r.x2&&i.x2&&"x2"||"x",o=r.y2&&i.y2&&"y2"||"y",u=r[u]-i[u],r=r[o]-i[o],n.coordorigin=u*-21600+" "+r*-21600,b(this,1,1,u,r,0)):(n.style.filter="",b(this,o.scalex,o.scaley,o.dx,o.dy,o.rotate))):(n.style.filter="",o.matrix=t(r),o.offset=r.offset());s&&(this._.transform=s);return this};r.rotate=function(e,r,i){if(this.removed)return this;if(e!=null){e=t(e).split(f);e.length-1&&(r=n(e[1]),i=n(e[2]));e=n(e[0]);i==null&&(r=i);if(r==null||i==null)i=this.getBBox(1),r=i.x+i.width/2,i=i.y+i.height/2;this._.dirtyT=1;this.transform(this._.transform.concat([["r",e,r,i]]));return this}};r.translate=function(e,r){if(this.removed)return this;e=t(e).split(f);e.length-1&&(r=n(e[1]));e=n(e[0])||0;r=+r||0;this._.bbox&&(this._.bbox.x+=e,this._.bbox.y+=r);this.transform(this._.transform.concat([["t",e,r]]));return this};r.scale=function(e,r,i,s){if(this.removed)return this;e=t(e).split(f);e.length-1&&(r=n(e[1]),i=n(e[2]),s=n(e[3]),isNaN(i)&&(i=null),isNaN(s)&&(s=null));e=n(e[0]);r==null&&(r=e);s==null&&(i=s);if(i==null||s==null)var o=this.getBBox(1);i=i==null?o.x+o.width/2:i;s=s==null?o.y+o.height/2:s;this.transform(this._.transform.concat([["s",e,r,i,s]]));this._.dirtyT=1;return this};r.hide=function(){!this.removed&&(this.node.style.display="none");return this};r.show=function(){!this.removed&&(this.node.style.display="");return this};r._getBBox=function(){if(this.removed)return{};return{x:this.X+(this.bbx||0)-this.W/2,y:this.Y+(this.bby||0)-this.H/2,width:this.W,height:this.H}};r.remove=function(){if(!this.removed&&this.parent.canvas){var t,n=e._engine.getNode(this);this.paper.__set__&&this.paper.__set__.exclude(this);for(l.unbind("raphael.*.*."+this.id);t=this.followers.pop();)t.el.remove();this.shape&&this.shape.parentNode.removeChild(this.shape);n.parentNode.removeChild(n);e._tear(this,this.paper);for(t in this)this[t]=typeof this[t]=="function"?e._removedFactory(t):null;this.removed=!0}};r.css=function(t,n){if(this.removed)return this;if(n==null&&e.is(t,"string")){for(var r=t.split(f),i={},s=0,o=r.length;s<o;s++)t=r[s],t in this.styles&&(i[t]=this.styles[t]);return o-1?i:i[r[0]]}if(n==null&&e.is(t,"array")){i={};s=0;for(o=t.length;s<o;s++)i[t[s]]=this.styles(t[s]);return i}n!=null?(r={},r[t]=n):t!=null&&e.is(t,"object")&&(r=t);i={};for(o in r)s=o.replace(/\B([A-Z]{1})/g,"-$1").toLowerCase(),s==="color"&&this.type==="text"&&(s="fill"),e._availableAttrs.hasOwnProperty(s)?(i[s]=r[o],i.dirty=!0):(l("raphael.css."+s+"."+this.id,this,r[o],s),r[o]!=void 0&&(this.node.style[s]=r[o]),this.styles[s]=r[o]);s=0;for(o=this.followers.length;s<o;s++)this.followers[s].el.css(r);i.hasOwnProperty("dirty")&&(delete i.dirty,this.attr(i));return this};r.attr=function(t,n){if(this.removed)return this;if(t==null){var r={},i;for(i in this.attrs)this.attrs.hasOwnProperty(i)&&(r[i]=this.attrs[i]);r.gradient&&r.fill=="none"&&(r.fill=r.gradient)&&delete r.gradient;r.transform=this._.transform;r.visibility=this.node.style.display==="none"?"hidden":"visible";return r}if(n==null&&e.is(t,"string")){if(t=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;if(t=="visibility")return this.node.style.display==="none"?"hidden":"visible";var r=t.split(f),s={},o=0;for(i=r.length;o<i;o++)t=r[o],s[t]=t in this.attrs?this.attrs[t]:e.is(this.ca[t],"function")?this.ca[t].def:e._availableAttrs[t];return i-1?s:s[r[0]]}if(this.attrs&&n==null&&e.is(t,"array")){s={};o=0;for(i=t.length;o<i;o++)s[t[o]]=this.attr(t[o]);return s}n!=null&&(r={},r[t]=n);n==null&&e.is(t,"object")&&(r=t);for(o in r)l("raphael.attr."+o+"."+this.id,this,r[o],o);if(r){var u={};for(o in this.ca)if(this.ca[o]&&r.hasOwnProperty(o)&&e.is(this.ca[o],"function")&&!this.ca["_invoked"+o]){this.ca["_invoked"+o]=!0;i=this.ca[o].apply(this,[].concat(r[o]));delete this.ca["_invoked"+o];for(s in i)i.hasOwnProperty(s)&&(r[s]=i[s]);this.attrs[o]=r[o];i===!1&&(u[o]=r[o],delete r[o])}if("text"in r&&this.type=="text")this.textpath.string=r.text.replace(/<br\s*?\/?>/ig,"\n");E(this,r);var a,o=0;for(i=this.followers.length;o<i;o++)a=this.followers[o],a.cb&&!a.cb.call(a.el,r,this)||a.el.attr(r);for(s in u)r[s]=u[s]}return this};r.blur=function(t){var n=this.node.runtimeStyle,r=n.filter,r=r.replace(p,"");+t!==0?(this.attrs.blur=t,n.filter=r+"  progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+t||1.5)+")",n.margin=e.format("-{0}px 0 0 -{0}px",i(+t||1.5))):(n.filter=r,n.margin=0,delete this.attrs.blur);return this};r.on=function(t,n){if(this.removed)return this;this.node["on"+t]=function(){var t=e._g.win.event;t.target=t.srcElement;n(t)};return this};e._engine.getNode=function(e){e=e.node||e[0].node;return e.clipRect||e};e._engine.getLastNode=function(e){e=e.node||e[e.length-1].node;return e.clipRect||e};e._engine.group=function(t,n,r){var i=e._g.doc.createElement("div"),s=new x(i,t,r);i.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";n&&(i.className=["red",n,s.id].join("-"));(r||t).canvas.appendChild(i);s.type="group";s.canvas=s.node;s.transform=e._engine.group.transform;s.top=null;s.bottom=null;return s};e._engine.group.transform=function(r){if(r==null)return this._.transform;var i=this.node.style,s=this.clip,o=this.paper._viewBoxShift,u=o?"s"+[o.scale,o.scale]+"-1-1t"+[o.dx,o.dy]:"";o&&(r=t(r).replace(/\.{3}|\u2026/g,this._.transform||""));e._extractTransform(this,u+r);r=this.matrix;u=r.offset();o=n(u[0])||0;u=n(u[1])||0;i.left=o+"px";i.top=u+"px";i.zoom=(this._.tzoom=r.get(0))+"";s&&(i.clip=e.format("rect({1}px {2}px {3}px {0}px)",[s[0]-o,s[1]-u,s[2]-o,s[3]-u]));return this};e._engine.path=function(e,t,n){var r=T("shape");r.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";r.coordsize="21600 21600";r.coordorigin=t.coordorigin;var i=new x(r,t,n),s={fill:"none",stroke:"#000"};e&&(s.path=e);i.type="path";i.path=[];i.Path="";E(i,s);(n||t).canvas.appendChild(r);e=T("skew");e.on=!0;r.appendChild(e);i.skew=e;return i};e._engine.rect=function(t,n,r,i,s,o,u){var a=e._rectPath(n,r,i,s,o),t=t.path(a,u),u=t.attrs;t.X=u.x=n;t.Y=u.y=r;t.W=u.width=i;t.H=u.height=s;u.r=o;u.path=a;t.type="rect";return t};e._engine.ellipse=function(e,t,n,r,i,s){e=e.path(void 0,s);e.X=t-r;e.Y=n-i;e.W=r*2;e.H=i*2;e.type="ellipse";E(e,{cx:t,cy:n,rx:r,ry:i});return e};e._engine.circle=function(e,t,n,r,i){e=e.path(void 0,i);e.X=t-r;e.Y=n-r;e.W=e.H=r*2;e.type="circle";E(e,{cx:t,cy:n,r:r});return e};e._engine.image=function(t,n,r,i,s,o,u){var a=e._rectPath(r,i,s,o),t=t.path(a,u).attr({stroke:"none"}),u=t.attrs,f=t.node,l=f.getElementsByTagName("fill")[0];u.src=n;t.X=u.x=r;t.Y=u.y=i;t.W=u.width=s;t.H=u.height=o;u.path=a;t.type="image";l.parentNode==f&&f.removeChild(l);l.rotate=!0;l.src=n;l.type="tile";t._.fillpos=[r,i];t._.fillsize=[s,o];f.appendChild(l);b(t,1,1,0,0,0);return t};e._engine.text=function(n,r,s,o,u){var a=T("shape"),f=T("path"),l=T("textpath"),r=r||0,s=s||0;f.v=e.format("m{0},{1}l{2},{1}",i(r*21600),i(s*21600),i(r*21600)+1);f.textpathok=!0;l.string=t(o).replace(/<br\s*?\/?>/ig,"\n");l.on=!0;a.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";a.coordsize="21600 21600";a.coordorigin="0 0";var c=new x(a,n,u),h={fill:"#000",stroke:"none",text:o};c.shape=a;c.path=f;c.textpath=l;c.type="text";c.attrs.text=t(o||"");c.attrs.x=r;c.attrs.y=s;c.attrs.w=1;c.attrs.h=1;E(c,h);a.appendChild(l);a.appendChild(f);(u||n).canvas.appendChild(a);n=T("skew");n.on=!0;a.appendChild(n);c.skew=n;return c};e._engine.setSize=function(t,n){var r=this.canvas.style;this.width=t;this.height=n;t==+t&&(t+="px");n==+n&&(n+="px");r.width=t;r.height=n;r.clip="rect(0 "+t+" "+n+" 0)";this._viewBox&&e._engine.setViewBox.apply(this,this._viewBox);return this};e._engine.setViewBox=function(e,t,n,r,i){l("raphael.setViewBox",this,this._viewBox,[e,t,n,r,i]);var o=this.width,u=this.height,a=1/s(n/o,r/u),f,c;i&&(f=u/r,c=o/n,n*f<o&&(e-=(o-n*f)/2/f),r*c<u&&(t-=(u-r*c)/2/c));this._viewBox=[e,t,n,r,!!i];this._viewBoxShift={dx:-e,dy:-t,scale:a};this.forEach(function(e){e.transform("...")});return this};var T;e._engine.initWin=function(n){var r=n.document;r.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{!r.namespaces.rvml&&r.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),T=e._createNode=function(e,n){var i=r.createElement("<rvml:"+e+' class="rvml">'),s;for(s in n)i[s]=t(n[s]);return i}}catch(i){T=e._createNode=function(e,n){var i=r.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">'),s;for(s in n)i[s]=t(n[s]);return i}}};e._engine.initWin(e._g.win);e._engine.create=function(){var t=e._getContainer.apply(0,arguments),n=t.container,r=t.height,i=t.width,s=t.x,t=t.y;if(!n)throw Error("VML container not found.");var o=new e._Paper,u=o.canvas=e._g.doc.createElement("div"),a=u.style,s=s||0,t=t||0,i=i||512,r=r||342;o.width=i;o.height=r;i==+i&&(i+="px");r==+r&&(r+="px");o.coordsize="21600000 21600000";o.coordorigin="0 0";o.span=e._g.doc.createElement("span");o.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;";u.appendChild(o.span);a.cssText=e.format("top:0;left:0;width:{0};height:{1};display:inline-block;cursor:default;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",i,r);n==1?(e._g.doc.body.appendChild(u),a.left=s+"px",a.top=t+"px",a.position="absolute"):n.firstChild?n.insertBefore(u,n.firstChild):n.appendChild(u);o.renderfix=function(){};return o};e.prototype.clear=function(){l("raphael.clear",this);this.canvas.innerHTML="";this.span=e._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};e.prototype.remove=function(){l("raphael.remove",this);this.canvas.parentNode.removeChild(this.canvas);for(var t in this)this[t]=typeof this[t]=="function"?e._removedFactory(t):null;return!0};var N=e.st,C;for(C in r)r.hasOwnProperty(C)&&!N.hasOwnProperty(C)&&(N[C]=function(e){return function(){var t=arguments;return this.forEach(function(n){n[e].apply(n,t)})}}(C))}(window.Raphael);e.Raphael=i;e.Raphael.desc="";if(r&&r!==i)window.Raphael=r;else if(window.Raphael===i)window.Raphael=void 0}]);FusionCharts(["private","modules.renderer.js-raphaelshadow",function(){var e=this.hcLib,t=window,n=t.navigator.userAgent,r=t.Math,i=r.sqrt,s=t.parseFloat,o=t.parseInt;/AppleWebKit/.test(n);/Safari/.test(n)&&/Version\/[1-4]\./.test(n);/Chrome/.test(n);/msie/i.test(n);var t=t.SVGFilterElement||t.SVGFEColorMatrixElement&&t.SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE===2,u=e.Raphael,r=Math,a=u._createNode,f;if(u.svg){if(t)u.el.dropshadow=function(e,t,n,r){var o=this.node,f=this._.shadowFilter,l=this.paper.cacheShadows||(this.paper.cacheShadows={}),c="drop-shadow"+[e,t,n,r].join(" "),h;if(e==="none"){if(f){f.use-=1;this.node.removeAttribute("filter");if(!f.use){c=f.hash;for(h in f)e=f[h],e.parentNode&&e.parentNode.removeChild(e),delete f[h];delete l[c]}delete this._.shadowFilter}}else if(!(f&&l[c]===f))f=this.paper.defs.appendChild(a("filter",{id:u.createUUID(),width:"200%",height:"200%"})),r=u.color(r),r.error&&(r=u.color("rgba(0,0,0,1)")),h=u.pick(r.opacity,1),this._.shadowFilter=l[c]={use:1,filter:f,hash:c,offset:f.appendChild(a("feOffset",{result:"offOut","in":"SourceGraphic",dx:s(e),dy:s(t)})),matrix:f.appendChild(a("feColorMatrix",{result:"matrixOut","in":"offOut",type:"matrix",values:"0 0 0 0 "+r.r/255+" 0 0 0 0 "+r.g/255+" 0 0 0 0 "+r.b/255+" 0 0 0 "+h+" 0"})),blur:f.appendChild(a("feGaussianBlur",{result:"blurOut","in":"matrixOut",stdDeviation:i(s(n))})),blend:f.appendChild(a("feComposite",{"in":"SourceGraphic",in2:"blurOut",operator:"over"}))},o.setAttribute("filter","url('"+u._url+"#"+f.id+"')");return this};var l={"drop-shadow":"drop-shadow",stroke:"stroke",fill:"fill","stroke-width":"stroke-width","stroke-opacity":"stroke-opacity","stroke-linecap":"stroke-linecap","shape-rendering":"shape-rendering",transform:"transform"};f=function(e,t){var n=this.__shadowscale,r={},i,s;for(s in e)switch(l[s]&&(r[s]=e[s],delete e[s]),s){case"transform":i=t.matrix.clone();i.translate(this.__shadowx,this.__shadowy);this.transform(i.toTransformString());break;case"stroke-width":e[s]=((r[s]||1)+6-2*this.__shadowlevel)*n}this.attr(e);for(s in r)e[s]=r[s]};u.ca["drop-shadow"]=function(e,t,n,r,i,s){var n=this._.shadows||(this._.shadows=[]),a,l,c,h,p;if(!this.__shadowblocked)if(e==="none")for(;l=n.pop();)l.remove();else{r=u.color(r);r.error&&(r=u.color("rgba(0,0,0,1)"));i instanceof Array?(a=i[0],i=i[1]):a=i;a=1/u.pick(a,1);i=1/u.pick(i,1);e=u.pick(e,1)*a;t=u.pick(t,1)*a;a=u.pick(r.opacity,1)*.05;c=o(this.attr("stroke-width")||1,10)+6;h=this.matrix.clone();h.translate(e,t);for(p=1;p<=3;p++)l=(n[p-1]||this.clone().follow(this,f,!s&&"before")).attr({stroke:r.hex,"stroke-opacity":a*p,"stroke-width":(c-2*p)*i,transform:h.toTransformString(),"stroke-linecap":"round","shape-rendering":"default",fill:"none"}),l.__shadowlevel=p,l.__shadowscale=i,l.__shadowx=e,l.__shadowy=t,s&&s.appendChild(l),n.push(l)}return!1};u.el.shadow=function(e,t,n,r){var i;n&&n.constructor===u.el.constructor&&(r=n,n=void 0);if(typeof e==="object")t&&t.constructor===u.el.constructor&&(r=t),t=e.opacity,n=e.scalefactor,i=!!e.useFilter,e=e.apply===void 0?!!t:e.apply;t===void 0&&(t=1);if(this.dropshadow)if(i)return e&&this.dropshadow(1,1,3,"rgb(64,64,64)")||this.dropshadow("none"),this;else this._.shadowFilter&&this.dropshadow("none");return this.attr("drop-shadow",e?[1,1,3,"rgba(64,64,64,"+t+")",n,r]:"none")}}else if(u.vml)u.ca["drop-shadow"]=function(e,t,n,r,i,o){var a=this._.shadow,f,l;if(this.isShadow)return!1;if(e==="none")a&&(this._.shadow=a.remove());else{if(!a)a=this._.shadow=this.clone(),o&&o.appendChild(a.follow(this))||a.follow(this,void 0,"before"),a.attr({fill:"none","fill-opacity":.5,"stroke-opacity":1}).isShadow=!0,a.attr("stroke-width")<=0&&a.attr("stroke-width",1);o=a.node.runtimeStyle;f=o.filter.replace(/ progid:\S+Blur\([^\)]+\)/g,"");r=u.color(r);r.error&&(r=u.color("rgba(0,0,0,1)"));l=u.pick(r.opacity,1)/5;i=1/u.pick(i,1);e=u.pick(e,1)*i;t=u.pick(t,1)*i;a.translate(e,t);o.filter=f+" progid:DXImageTransform.Microsoft.Blur(pixelRadius="+s(n*.4)+" makeShadow=True Color="+r.hex+" shadowOpacity='"+l+"');"}return!1},u.el.shadow=function(e,t,n,r){n&&n.constructor===u.el.constructor&&(r=n,n=void 0);if(typeof e==="object")t&&t.type==="group"&&(r=t),t=e.opacity,n=e.scalefactor,e=e.apply===void 0?!!t:e.apply;t===void 0&&(t=1);return this.attr("drop-shadow",e||!t?[1,1,5,"rgba(64,64,64,"+t+")",n,r]:"none")};else if(u.canvas)u.el.shadow=function(){return this}}]);FusionCharts(["private","modules.renderer.js-raphaelshapes",function(){var e=this.hcLib.Raphael,t="createTouch"in document,n=window,n=/msie/i.test(navigator.userAgent)&&!n.opera,r=Math,i=r.cos,s=r.sin,o=r.abs,u=r.pow,a=r.atan2,f=r.min,l=r.round,c=r.PI,h=2*c,p=parseInt,d=parseFloat,v=String,m="fill",m="fill",g=u(2,-24),y="rgba(192,192,192,"+(n?.002:1e-6)+")",b=e.eve,w=e.vml&&.5||0,E=e._createNode,S=e._setFillAndStroke,x=e.el.constructor;e.crispBound=e._cacher(function(e,t,n,r,i){var s={},o,e=e||0,t=t||0,n=n||0,r=r||0,i=i||0;o=i%2/2+w;s.x=l(e+o)-o;s.y=l(t+o)-o;s.width=l(e+n+o)-o-s.x;s.height=l(t+r+o)-o-s.y;s["stroke-width"]=i;s.width===0&&n!==0&&(s.width=1);s.height===0&&r!==0&&(s.height=1);return s},e);e.el.crisp=function(){var t=this.attrs,n,r=this.attr(["x","y","width","height","stroke-width"]),r=e.crispBound(r.x,r.y,r.width,r.height,r["stroke-width"]);for(n in r)t[n]===r[n]&&delete r[n];return this.attr(r)};e.fn.polypath=function(){var t=arguments,n=t.length-1,r=t[n];r&&r.constructor===e.el.constructor?t[n]=void 0:r=void 0;n=this.path(void 0,r);n.ca.polypath=e.fn.polypath.ca;arguments.length-!!r&&n.attr("polypath",[t[0],t[1],t[2],t[3],t[4],t[5]])||(n.attrs.polypath=[0,0,0,0,0,0]);return n};e.fn.polypath.ca=function(t,n,r,o,u,a){var f,l,h;f=[];t=p(t,10)||0;n=d(n)||0;r=d(r)||0;o=d(o)||0;u=u===null||isNaN(u)?c*.5:e.rad(u);a=a===null||isNaN(a)?0:d(a);l=u;if(t>2)switch(u=2*c/t,a){case 0:for(a=0;a<t;a++)f.push("L",n+o*i(-l),r+o*s(-l)),l+=u;f[0]="M";f.push("Z");break;case 1:for(a=0;a<t;a++)f.push("M",n,r,"L",n+o*i(-l),r+o*s(-l)),l+=u;break;default:u*=.5;h=o*i(u)*(1-a);for(a=0;a<t;a++)f.push("L",n+o*i(-l),r+o*s(-l)),l+=u,f.push("L",n+h*i(-l),r+h*s(-l)),l+=u;f[0]="M";f.push("Z")}else o===0?f.push("M",n,r,"L",n,r,"Z"):f.push("M",n-o,r,"A",o,o,0,0,0,n+o,r,"A",o,o,0,0,0,n-o,r,"Z");return{path:f}};e.fn.ringpath=function(){var t=arguments,n=t.length-1,r=t[n];r&&r.constructor===e.el.constructor?t[n]=void 0:r=void 0;n=this.path(void 0,r);n.ca.ringpath=e.fn.ringpath.ca;arguments.length-!!r&&n.attr("ringpath",[t[0],t[1],t[2],t[3],t[4],t[5]])||(n.attrs.ringpath=[0,0,0,0,0,0]);return n};e.fn.ringpath.ca=function(e,t,n,r,u,a){var f=a%h-u%h,l=a-u,p;this._.ringangle=(u+a)*.5;o(l)<g?(l=i(u),u=s(u),n=["M",e+n*l,t+n*u,"L",e+r*l,t+r*u,"Z"]):(o(l)>g&&o(l)%h<g?(n=["M",e-n,t,"A",n,n,0,0,0,e+n,t,"A",n,n,0,0,0,e-n,t],r!==0&&(n=n.concat(["M",e-r,t,"A",r,r,0,0,1,e+r,t,"A",r,r,0,0,1,e-r,t]))):(l=i(u),u=s(u),p=i(a),a=s(a),f%=h,f<0&&(f+=h),f=f<c?0:1,n=["M",e+n*l,t+n*u,"A",n,n,0,f,1,e+n*p,t+n*a,"L",e+r*p,t+r*a],r!==0&&n.push("A",r,r,0,f,0,e+r*l,t+r*u)),n.push("Z"));return{path:n}};e.fn.cubepath=function(){var t={"stroke-linejoin":"round","shape-rendering":"precision",stroke:"none"},n=arguments,r=n.length-1,i=n[r],s;i&&i.constructor===e.el.constructor?n[r]=void 0:i=void 0;r=this.path(void 0,i).attr(t);s=this.path(void 0,i).attr(t);t=this.path(void 0,i).attr(t);t._.cubetop=r.follow(t,void 0,"before");t._.cubeside=s.follow(t,void 0,"before");for(var o in e.fn.cubepath.ca)t.ca[o]=e.fn.cubepath.ca[o];return t.attr("cubepath",[n[0]||0,n[1]||0,n[2]||0,n[3]||0,n[4]||0,n[5]||0])};e.fn.cubepath.ca={cubepath:function(e,t,n,r,i,s){var o=this._.cubetop,u=this._.cubeside;this.attr("path",["M",e+n,t,"l",0,r,-n,0,0,-r,"z"]);o.attr("path",["M",e,t,"l",1,1,n-1,0,0,-1,i,-s,-n,0,"z"]);u.attr("path",["M",e+n-1,t+1,"l",0,r-1,1,0,i,-s,0,-r,-i,s]);return!1},"stroke-linejoin":function(){return{"stroke-linejoin":"round"}},"drop-shadow":function(e,t,n,r){var i=this._.cubetop,s=this._.cubeside;this.dropshadow&&(i.dropshadow(e,-t,n,r),s.dropshadow(e,-t,n,r));return!1},fill:function(t,n){var r=this._.cubetop,i=this._.cubeside,s=this.attr("cubepath")||[0,0,0,0,0,0],o=s[2],u=s[4],s=s[5],f,t=e.color(t);n?(this.attr(m,t),r.attr(m,e.tintshade(t,-.78).rgba),i.attr(m,e.tintshade(t,-.65).rgba)):(f="opacity"in t?"rgba("+[t.r,t.g,t.b,t.opacity]+")":"rgb("+[t.r,t.g,t.b]+")",this.attr(m,[270,e.tintshade(f,.55).rgba,e.tintshade(f,-.65).rgba].join("-")),i.attr(m,[270,e.tintshade(f,-.75).rgba,e.tintshade(f,-.35).rgba].join("-")),r.attr(m,[45+e.deg(a(s,u+o)),e.tintshade(f,-.78).rgba,e.tintshade(f,.22).rgba].join("-")));return!1}};e.ca["text-bound"]=function(t,n,r,i,s,o){var i=this.paper,u=this._.textbound;if(this.type==="text"){if((!n||n==="none")&&(!t||t==="none"))return this._.textbound=u&&u.unfollow(this).remove(),!1;(!r||!e.is(r,"finite"))&&(r=0);(!s||!e.is(s,"finite"))&&(s=0);!u&&(u=this._.textbound=i.rect(0,0,0,0,this.group).follow(this,e.ca["text-bound"].reposition,"before"));u.attr({stroke:n,"stroke-width":r,fill:t,"shape-rendering":r===1&&"crisp"||"",r:s});o&&u.attr("stroke-dasharray",o);e.ca["text-bound"].reposition.call(u,this.attrs,this);return!1}};e.ca["text-bound"].reposition=function(t,n){var r={},i,s,o,u,a;t.hasOwnProperty("visibility")&&this.attr("visibility",t.visibility);if(t.hasOwnProperty("text-bound")||t.hasOwnProperty("x")||t.hasOwnProperty("y")||t.hasOwnProperty("text")||t.hasOwnProperty("text-anchor")||t.hasOwnProperty("text-align")||t.hasOwnProperty("font-size")||t.hasOwnProperty("line-height")||t.hasOwnProperty("vertical-align")||t.hasOwnProperty("transform")){i=v((n.attrs["text-bound"]||[])[3]||"0").split(/\s*\,\s*/g);s=d(i[0])||0;i=e.pick(d(i[1]),s);o=n.getBBox();u=o.width;a=o.height;if(!isNaN(u))r.x=o.x-s,r.y=o.y-i,r.width=u+s*2,r.height=a+i*2;this.attr(r)}};e.fn.scroller=function(t,n,r,i,s,u,a){var f=this.group("scroller",a),l=f.attrs,c=f._.scroller={},s=s&&"horizontal"||"vertical",h,p={},v,m;c.track=this.rect(f).mousedown(function(t){var n=l["scroll-position"],t=l["scroll-orientation"]==="horizontal"?t.layerX||t.x:t.layerY||t.y,t=(t-c.anchorOffset)/c.trackLength;h=e.animation({"scroll-position":t},2e3*o(n-t),"easeIn");f.animate(h);b("raphael.scroll.start."+f.id,f,n)}).mouseup(function(){this.stop(h);b("raphael.scroll.end."+this.id,this,l["scroll-position"])},f,!0);c.anchor=this.rect(f).drag(function(){p["scroll-position"]=v+arguments[m]/c.trackLength;f.animate(p,0)},function(e,t,n){m=l["scroll-orientation"]==="horizontal"?0:1;b("raphael.scroll.start."+f.id,f,v=l["scroll-position"]);n.stopPropagation()},function(){b("raphael.scroll.end."+f.id,f,v=l["scroll-position"])});for(var g in e.fn.scroller.fn)f[g]=e.fn.scroller.fn[g];for(g in e.fn.scroller.ca)f.ca[g]=e.fn.scroller.ca[g];l["scroll-orientation"]=s;l["stroke-width"]=1;f.ca["scroll-repaint"]=f.ca["scroll-repaint-"+s];!e.is(u,"object")&&(u={});return f.attr({ishot:!0,"scroll-display-buttons":u.showButtons&&"arrow"||"none","scroll-display-style":u.displayStyleFlat&&"flat"||"3d","scroll-ratio":d(u.scrollRatio)||1,"scroll-position":d(u.scrollPosition)||0,"scroll-repaint":[t,n,r,i]})};e.fn.scroller.fn={scroll:function(e,t){var n=this._.scroller,t=t||this;n.callback=function(){return e.apply(t,arguments)};return this}};e.fn.scroller.ca={"stroke-width":function(){return!1},"drop-shadow":function(e,t,n,r,i,s){this._.scroller.track.attr("drop-shadow",[e,t,n,r,i,s]);return!1},"scroll-display-style":function(e){var t=this.attrs,n=t["scroll-display-style"],r=t.fill,e={flat:"flat","3d":"3d",transparent:"transparent"}[e]||n;r&&e!==n&&(t["scroll-display-style"]=e,this.attr(m,r));return{"scroll-display-style":e}},"scroll-display-buttons":function(t){var n=this,r=n.paper,i=n._.scroller,s=n.attrs,o=s["scroll-display-buttons"],u=s["scroll-repaint"],a,f,t={none:"none",arrow:"arrow"}[t]||o;if(t!==o)s["scroll-display-buttons"]=t,t==="none"&&i.start?(i.arrowstart.remove(),delete i.arrowstart,i.arrowend.remove(),delete i.arrowend,i.start.remove(),delete i.start,i.end.remove(),delete i.end):(i.arrowstart=r.polypath(n),i.arrowend=r.polypath(n),i.start=r.rect(n).mousedown(function(){var t;if((t=s["scroll-position"])!==0)n.animate({"scroll-position":t-.1},100).animate(a=e.animation({"scroll-position":0},4500*t,"easeIn")),b("raphael.scroll.start."+n.id,n,t)}).mouseup(function(){n.stop(a);b("raphael.scroll.end."+n.id,n,s["scroll-position"])},n,!0),i.end=r.rect(n).mousedown(function(){var t;if((t=s["scroll-position"])!==1)n.animate({"scroll-position":t+.1},100).animate(f=e.animation({"scroll-position":1},4500*(1-t),"easeIn")),b("raphael.scroll.start."+n.id,n,t)}).mouseup(function(){n.stop(f);b("raphael.scroll.end."+n.id,n,s["scroll-position"])},n,!0),s.fill&&n.attr(m,s.fill)),u&&n.attr("scroll-repaint",u);return{"scroll-display-buttons":t}},"scroll-orientation":function(e){var t=this.attrs,n=t["scroll-repaint"],r=t["scroll-orientation"],e={horizontal:"horizontal",vertical:"vertical"}[e]||r;r!==e&&(this.ca["scroll-repaint"]=this.ca["scroll-repaint-"+e],n&&(n[2]+=n[3],n[3]=n[2]-n[3],n[2]-=n[3],this.attr("scroll-repaint",n)),t.fill&&this.attr(m,t.fill));return{"scroll-orientation":e}},"scroll-ratio":function(e){var t=this.attrs,n=t["scroll-ratio"],r=t["scroll-repaint"],e=e>1?1:e<.01?.01:d(e);r&&e!==n&&(t["scroll-ratio"]=e,this.attr("scroll-repaint",r));return{"scroll-ratio":e}},"scroll-position":function(e,t){var n=this.attrs,r=n["scroll-orientation"]==="horizontal",i=n["scroll-repaint"],s=n["scroll-position"],o=this._.scroller,u=o.anchor,e=e>1?1:e<0?0:d(e);isNaN(e)&&(e=s);if(i&&(s!==e||t))s=o.start&&o.start.attr(r&&"width"||"height")||0,r&&u.attr("x",i[0]+s+(i[2]-2*s-u.attr("width"))*e+.5)||u.attr("y",i[1]+s+(i[3]-2*s-u.attr("height"))*e+.5),!t&&n["scroll-ratio"]<1&&(b("raphael.scroll.change."+this.id,this,e),o.callback&&o.callback(e));return{"scroll-position":e}},r:function(e){var t=this._.scroller;t.track.attr("r",e);t.anchor.attr("r",this.attrs["scroll-display-buttons"]==="none"&&e||0);return!1},"scroll-repaint-horizontal":function(e,t,n,r){var i=this.attrs,s=this._.scroller,o=i["scroll-ratio"],u=i["scroll-position"],a=0,l=n*o,i=i["scroll-display-buttons"]==="none";n&&(n-=1);e&&(e+=.5);r&&(r-=1);t&&(t+=.5);s.track.attr({width:n,height:r,y:t,x:e}).crisp();i||(a=f(r,n*.5),l-=a*2*o,s.start.attr({width:a,height:r,x:e,y:t}),s.arrowstart.attr("polypath",[3,e+a*.5,t+r*.5,a*.25,180]),s.end.attr({width:a,height:r,x:e+n-a,y:t}),s.arrowend.attr("polypath",[3,e+n-a*.5,t+a*.5,a*.25,0]));s.trackLength=n-2*a-l;s.trackOffset=e+a+.5;s.anchorOffset=s.trackOffset+(l-1)*.5;s.anchor.attr({height:r,width:l-1,y:t,x:s.trackOffset+s.trackLength*u}).crisp()},"scroll-repaint-vertical":function(e,t,n,r){var i=this.attrs,s=this._.scroller,o=i["scroll-ratio"],u=i["scroll-position"],a=0,l=r*o,i=i["scroll-display-buttons"]==="none";n&&(n-=1);e&&(e+=.5);r&&(r-=1);t&&(t+=.5);s.track.attr({width:n,height:r,y:t,x:e}).crisp();i||(a=f(n,r*.5),l-=a*2*o,s.start.attr({width:n,height:a,x:e,y:t}),s.arrowstart.attr("polypath",[3,e+n*.5,t+a*.5,a*.25,90]),s.end.attr({width:n,height:a,x:e,y:t+r-a}),s.arrowend.attr("polypath",[3,e+n*.5,t+r-a*.5,a*.25,-90]));s.trackLength=r-2*a-l;s.trackOffset=t+a+.5;s.anchorOffset=s.trackOffset+(l-1)*.5;s.anchor.attr({height:l-1,width:n,y:s.trackOffset+s.trackLength*u,x:e}).crisp()},fill:function(n){var r=this.attrs,i=this._.scroller,s=r["scroll-repaint"],o=r["scroll-display-style"]==="flat",u=r["scroll-orientation"]==="horizontal",a={stroke:"none"},f;if(t&&s&&(f=16-s[u&&3||2])>3)a.stroke=y,a["stroke-width"]=f;n=e.color(n);n.error&&(n="#000000");n="opacity"in n?"rgba("+[n.r,n.g,n.b,n.opacity]+")":"rgb("+[n.r,n.g,n.b]+")";a.fill=o&&n||[90*u,e.tintshade(n,.15).rgba,n].join("-");a.stroke=e.tintshade(n,-.75).rgba;i.track.attr(a);a.fill=o&&e.tintshade(n,-.6).rgba||[270*u,e.tintshade(n,.3).rgba+":40",e.tintshade(n,-.7).rgba].join("-");a.stroke=e.tintshade(n,-.6).rgba;i.anchor.attr(a);a.stroke="none";if(r["scroll-display-buttons"]!=="none")a.fill=y,i.start.attr(a),i.end.attr(a),a.fill=e.tintshade(n,-.4).rgba,i.arrowstart.attr(a),i.arrowend.attr(a);return!1}};var T=Array.prototype.slice;e.fn.symbol=function(){var t=arguments,n=t.length-1,r=t[n];r&&r.constructor===e.el.constructor?t[n]=void 0:r=void 0;n=this.path(void 0,r);n.ca.symbol=e.fn.symbol.ca.symbol;return t.length===!!r+0?n:n.attr("symbol",t)};e.fn.symbol.cache={"":e._cacher(function(e,t,n,r){return arguments.length>3?["M",e,t,"h",n,"v",r,"h",-n,"v",-r,"z"]:["M",e-n,t-n,"h",n*=2,"v",n,"h",-n,"v",-n,"z"]})};e.fn.symbol.ca={symbol:function(t){var n=e.is(t,"object")&&arguments.length===1&&!e.is(t,"function")?t:arguments,r;n===t&&(t=n[0]);n=(r=e.is(t,"function")&&t||e.fn.symbol.cache[t]||e.fn.symbol.cache[""])&&r.apply(e,T.call(n,1));e.is(n,"array")||e.is(n,"string")?this.attr("path",n):n&&this.attr(n)}};e.addSymbol=function(t,n){var r=e.is(n,"function")&&(r={},r[t]=n,r)||t,i=e.fn.symbol.cache,s=[],o;for(o in r)n=r[o],i[o]=e.is(n,"function")&&e._cacher(n,e)||(s.push(o),n);for(;o=s.pop();)i[o]=i[i[o]]};e.fn.button=function(t,n,r,i,s,o){o=this.group("button",o);o._.button={bound:this.rect(o),tracker:this.rect(o).attr({fill:y,stroke:y,cursor:"pointer"}).data("compositeButton",o)};var u;!e.is(s,"object")&&(s={});for(u in e.fn.button.fn)o[u]=e.fn.button.fn[u];for(u in e.fn.button.ca)o.ca[u]=e.fn.button.ca[u];return o.attr({ishot:!0,"button-padding":[s.horizontalPadding,s.verticalPadding],"button-label":r,"button-symbol":i,"button-disabled":s.disabled,"button-symbol-position":s.symbolPosition,"button-symbol-padding":s.symbolPadding}).attr("button-repaint",[t,n,s.width,s.height,s.r])};e.fn.button.e={hoverin:function(){var e=this._.button.hoverbackIn;e&&e()===!1||(this.attr("fill","hover").hovered=!0)},hoverout:function(){var e=this._.button.hoverbackOut;e&&e()===!1||(this.attr("fill",(this.pressed||this.active)&&"active"||"normal").hovered=!1)},mousedown:function(){this.attr("fill","active").pressed=!0},mouseup:function(){var e=this._.button.callback;this.attr("fill",this.hovered&&"hover"||this.active&&"active"||"normal").pressed=!1;e()}};e.fn.button.fn={buttonclick:function(e,t){var n=this._.button,t=t||this;n.callback=function(){return e.apply(t,arguments)};return this},labelcss:function(){var e=this._.button,t=e.label;e.cssArg=arguments;t&&t.css.apply(t,arguments);return this},buttonhover:function(e,t,n,r){var i=this._.button,n=n||this,r=r||this;i.hoverbackIn=function(){return e.apply(n,arguments)};i.hoverbackOut=function(){return t.apply(r,arguments)};return this}};e.fn.button.ca={"button-active":function(e){this.attr("fill",(this.active=!!e)?"active":this.hovered&&"hover"||"normal")},"button-disabled":function(e){var t=this.paper,n=this._.button.tracker,r=t.button.e,e=v(e);e==="disabled"||e==="true"||e==="1"?n.attr("fill","rgba(204,204,205,.5)").unmousedown(r.mousedown).unmouseup(r.mouseup).unhover(t.button.e.hoverin,t.button.e.hoverout):n.attr("fill",y).mousedown(r.mousedown,this).mouseup(r.mouseup,this,!0).hover(t.button.e.hoverin,t.button.e.hoverout,this,this)},"button-label":function(e){var t=this._.button,n=this.attrs,r=t.label,i=t.cssArg,s=this.attrs["button-repaint"],e=v(e||"");if(e==="none")r&&(t.label=r.remove());else if(e)!r&&(r=t.label=this.paper.text(this).insertBefore(t.tracker)),r.attr({text:e,"text-anchor":"start","vertical-align":"top"}),i&&i.length&&r.css.apply(r,i);s&&n["button-label"]!==e&&this.attr("button-repaint",s)},"button-symbol":function(e){var t=this.attrs,n=this._.button,r=n.symbol,i=this.attrs["button-repaint"],e=v(e||"");if(e==="none")r&&(n.symbol=r.remove());else if(e&&!r)n.symbol=this.paper.symbol(this).insertAfter(n.bound);i&&t["button-symbol"]!==e&&this.attr("button-repaint",i)},"button-symbol-position":function(e){return{"button-symbol-position":{top:"top",right:"right",bottom:"bottom",left:"left",none:"none"}[v(e).toLowerCase()]||"none"}},"button-symbol-padding":function(e){return{"button-symbol-padding":d(e)}},"button-padding":function(e,t){return{"button-padding":[e==null&&(e=5)||d(e),t==null&&e||d(t)]}},"button-repaint":function(t,n,r,i,s){var o=this._.button,u=o.bound,a=o.label,c=o.symbol,h=this.attrs,p=h["button-padding"],d=p[0],v=p[1],m;t==void 0&&(t=0);n==void 0&&(n=0);if(r==void 0||i==void 0)m=a&&a.getBBox()||{width:0,height:0},r==void 0&&(r=d*2+m.width),i==void 0&&(i=v*2+m.height);u=e.crispBound(t,n,r,i,u.attr("stroke-width"));u.r=e.pick(s,l(f(i,r)*.1));t=u.x;n=u.y;r=u.width;i=u.height;a&&a.attr({x:t+d,y:n+v});if(c){!e.is(m=h["button-symbol-padding"],"finite")&&(m=i*.2);s=(i-v)*.5;switch(h["button-symbol-position"]+(a&&"+"||"-")){case"right+":r+=s*2+v;t=t+r-s-d;n+=i*.5;break;case"left+":t=t+d+s;n+=i*.5;a.attr("x",t+s+m);break;case"top+":t+=r*.5;n=n+p[1]+s;a&&a.attr("y",n+s+m);break;case"bottom+":i+=s*2+m;t+=r*.5;n=n+i-v-s;break;default:t+=r*.5,n+=i*.5}c.attr("symbol",[h["button-symbol"],t,n,s])}o.bound.attr(u);o.tracker.attr(u)},fill:function(t,n,r,i){var s=this._.button,o=s.bound,u=s.symbol,a=s.label,f={normal:s.gradient,active:s.gradientActive,hover:s.gradientHover}[t];if(!f)t=e.getRGB(t),t.error&&(t=e.color("#cccccc")),t="opacity"in t?"rgba("+[t.r,t.g,t.b,t.opacity]+")":"rgb("+[t.r,t.g,t.b]+")",s.gradient=[90,e.tintshade(t,-.8).rgba+":0",e.tintshade(t,.8).rgba+":100"].join("-"),s.gradientActive=[270,e.tintshade(t,-.8).rgba+":0",e.tintshade(t,.8).rgba+":100"].join("-"),i=e.getRGB(i),i.error&&(i=t)||(i="opacity"in i?"rgba("+[i.r,i.g,i.b,i.opacity]+")":"rgb("+[i.r,i.g,i.b]+")"),s.gradientHover=[90,e.tintshade(i,-.9).rgba+":0",e.tintshade(i,.7).rgba+":100"].join("-"),r=r||e.tintshade(t,.2).rgba,n=n||e.tintshade(t,-.2).rgba,s.symbolFill=r,s.labelFill=n,f=(this.pressed||this.active)&&s.gradientActive||this.hovered&&s.gradienthover||s.gradient;o.attr("fill",f);u&&u.attr("fill",s.symbolFill);a&&a.attr("fill",s.labelFill);return!1},stroke:function(t,n){var r=this._.button,i=r.symbol,t=e.color(t);t.error&&(t=e.color("#999999"));r.bound.attr("stroke",t);i&&i.attr("stroke",n||t);return!1},"stroke-width":function(e,t){var n=this._.button,r=n.symbol;n.bound.attr("stroke-width",e);n.tracker.attr("stroke-width",e);r&&r.attr("stroke-width",t);return!1}};var N={Q:"L",Z:"X",q:"l",z:"x",",":" "},C=/,?([achlmqrstvxz]),?/gi,k,L=function(){return this.join(",").replace(C,k)},A,O;if(e.svg)k="$1",A=function(e){e?typeof e==="string"?e=e.replace(C,k):e.toString=L:e="M0,0";this.node.setAttribute("d",e.toString());return this},e._engine.litepath=function(e,t,n,r){e=E("path");(r||t).canvas.appendChild(e);t=new x(e,t,r);t.type="litepath";S(t,{fill:"none",stroke:"#000"});return t},e._getPath.litepath=function(t){return e.parsePathString(t.node.getAttribute("d"))};else if(e.vml)k=function(e,t){return N[t]||t},O=function(){this._transform.apply(this,arguments);this._.bcoord&&(this.node.coordsize=this._.bcoord);return this},A=function(e){e?typeof e==="string"?e=e.replace(C,k):e.toString=L:e="M0,0";this.node.path=e;return this},e._engine.litepath=function(t,n,r,i){var t=E("shape"),s=t.style,o=new x(t,n,i);s.cssText="position:absolute;left:0;top:0;width:21600px;height:21600px;";r=d(r);isNaN(r)?t.coordsize="21600 21600":(o._.bzoom=r,s.width="1px",s.height="1px",t.coordsize=o._.bcoord=r+" "+r);t.coordorigin=n.coordorigin;o.type="litepath";o._transform=o.transform;o.transform=O;e._setFillAndStroke(o,{fill:"none",stroke:"#000"});(i||n).canvas.appendChild(t);n=E("skew");n.on=!0;t.appendChild(n);o.skew=n;return o},e._getPath.litepath=function(t){return e.parsePathString(t.node.path||"")};e.fn.litepath=function(t,n,r){n&&n.constructor===x&&(r=n,n=void 0);t&&t.constructor===x&&(r=t,t="");n=e._engine.litepath(t,this,n,r);n.ca.litepath=A;t&&n.attr("litepath",e.is(t,"array")?[t]:t);this.__set__&&this.__set__.push(n);return n}}]);FusionCharts(["private","modules.renderer.js-raphaelexport",function(){var e=this.hcLib,t=e.Raphael,n=e.pluckNumber,r=e.pluck,i=t._availableAttrs,s=/^matrix\(|\)$/g,o=/\,/g,u=/\n|<br\s*?\/?>/ig,a=/[^\d\.]/ig,f=/[\(\)\s,\xb0#]/g,l=/group/ig,c=/&/g,h=/"/g,p=/'/g,d=/</g,v=/>/g,m=0;(function(e){var t=Math,g=parseFloat,y=t.max,E=t.abs,S=t.pow,x=String,T=/[, ]+/,N=[{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(e){return e.toLowerCase()}}],C={blur:function(){},transform:function(){},src:function(e,t){t.attrSTR+=' xlink:href="'+t.attrs.src+'"'},path:function(t,n){var r=n.attrs.path,r=e._pathToAbsolute(r||"");n.attrSTR+=' d="'+(r.toString&&r.toString()||"").replace(o," ")+'"'},gradient:function(n,r,i){var s=n.attrs.gradient,o="linear",u,a,l=.5,c=.5,h=a="",p="";u=s.replace(f,"_");if(!i[u]){s=x(s).replace(e._radial_gradient,function(e,n,r){o="radial";n&&r&&(l=g(n),c=g(r),e=(c>.5)*2-1,S(l-.5,2)+S(c-.5,2)>.25&&(c=t.sqrt(.25-S(l-.5,2))*e+.5)&&c!=.5&&(c=c.toFixed(5)-1e-5*e));return""});s=s.split(/\s*\-\s*/);if(o==="linear"){a=s.shift();a=-g(a);if(isNaN(a))return null;var d=[0,0,t.cos(e.rad(a)),t.sin(e.rad(a))];a=1/(y(E(d[2]),E(d[3]))||1);d[2]*=a;d[3]*=a;d[2]<0&&(d[0]=-d[2],d[2]=0);d[3]<0&&(d[1]=-d[3],d[3]=0)}s=e._parseDots(s);if(!s)return null;o==="radial"?(a='<radialGradient fx = "'+l+'" fy = "'+c+'" id = "'+u+'">',h="</radialGradient>"):(a='<linearGradient x1 = "'+d[0]+'" y1 = "'+d[1]+'" x2 = "'+d[2]+'" y2 = "'+d[3]+'" gradientTransform ="matrix('+n.matrix.invert()+')" id = "'+u+'">',h="</linearGradient>");n=0;for(d=s.length;n<d;n++)p+='<stop offset="'+(s[n].offset?s[n].offset:n?"100%":"0%")+'" stop-color="'+(s[n].color||"#fff")+'" stop-opacity="'+(s[n].opacity===void 0?1:s[n].opacity)+'" />';i[u]=!0;i.str+=a+p+h}r.attrSTR+=" fill=\"url('#"+u+"')\""},fill:function(t,n){var r=n.attrs,i=r.fill,s;if(!t.attrs.gradient)if(i=e.color(i),s=i.opacity,t.type==="text")n.styleSTR+="fill:"+i+"; stroke-opacity:0; ";else if(n.attrSTR+=' fill="'+i+'"',!r["fill-opacity"]&&(s||s===0))n.attrSTR+=' fill-opacity="'+s+'"'},stroke:function(t,n){var r=n.attrs,i,s;i=e.color(r.stroke);s=i.opacity;if(t.type!=="text"&&(n.attrSTR+=' stroke="'+i+'"',!r["stroke-opacity"]&&(s||s===0)))n.attrSTR+=' stroke-opacity="'+s+'"'},"clip-rect":function(e,t,n){var r=x(t.attrs["clip-rect"]),i=r.split(T),r=r.replace(f,"_")+"__"+m++;i.length===4&&(n[r]||(n[r]=!0,n.str+='<clipPath id="'+r+'"><rect x="'+i[0]+'" y="'+i[1]+'" width="'+i[2]+'" height="'+i[3]+'" transform="matrix('+e.matrix.invert().toMatrixString().replace(s,"")+')"/></clipPath>'),t.attrSTR+=' clip-path="url(#'+r+')"')},cursor:function(e,t){var n=t.attrs.cursor;n&&(t.styleSTR+="cursor:"+n+"; ")},font:function(e,t){t.styleSTR+="font:"+t.attrs.font.replace(/\"/ig," ")+"; "},"font-size":function(e,t){var n=r(t.attrs["font-size"],"10");n&&n.replace&&(n=n.replace(a,""));t.styleSTR+="font-size:"+n+"px; "},"font-weight":function(e,t){t.styleSTR+="font-weight:"+t.attrs["font-weight"]+"; "},"font-family":function(e,t){t.styleSTR+="font-family:"+t.attrs["font-family"]+"; "},"line-height":function(){},"clip-path":function(){},visibility:function(){},"vertical-align":function(){},"text-anchor":function(e,t){var n=t.attrs["text-anchor"]||"middle";e.type==="text"&&(t.attrSTR+=' text-anchor="'+n+'"')},title:function(){},text:function(e,t){var i=t.attrs,s=i.text,o=r(i["font-size"],i.font,"10"),f=r(i["line-height"]),l;o&&o.replace&&(o=o.replace(a,""));o=n(o);f&&f.replace&&(f=f.replace(a,""));f=n(f,o&&o*1.2);l=o?o*.85:f*.75;for(var o=i.x,m=r(i["vertical-align"],"middle").toLowerCase(),s=x(s).split(u),i=s.length,g=0,m=m==="top"?l:m==="bottom"?l-f*i:l-f*i*.5;g<i;g++)t.textSTR+="<tspan ",l=(s[g]||"").replace(c,"&").replace(h,"&quot;").replace(p,"&#39;").replace(d,"&lt;").replace(v,"&gt;"),t.textSTR+=g?'dy="'+f+'" x="'+o+'" ':'dy="'+m+'"',t.textSTR+=">"+l+"</tspan>"}},k=function(e,t){var n="",r={attrSTR:"",styleSTR:"",textSTR:"",attrs:e.attr()},o=e.isShadow,u="",a="",f,c,h=r.attrs;if(e.node.style.display!=="none"&&!o){for(f in h)if(f!=="gradient"&&(i[f]!==void 0||C[f]))if(C[f])C[f](e,r,t);else r.attrSTR+=" "+f+'="'+h[f]+'"';e.attrs.gradient&&C.gradient(e,r,t);e.type==="rect"&&h.r&&(r.attrSTR+=' rx="'+h.r+'" ry="'+h.r+'"');for(c in e.styles)r.styleSTR+=c+":"+e.styles[c]+"; ";e.type==="image"&&(r.attrSTR+=' preserveAspectRatio="none"');e.bottom&&(u=k(e.bottom,t));e.next&&(a=k(e.next,t));o=e.type;o.match(l)&&(o="g");n+="<"+o+' transform="matrix('+e.matrix.toMatrixString().replace(s,"")+')" style="'+r.styleSTR+'"'+r.attrSTR+">"+r.textSTR+u+"</"+o+">"+a}else e.next&&(n+=k(e.next,t));return n};e.fn.toSVG=function(t){var n="",r={str:""},i=0,s=N.length,o="";if(e.svg){if(this.canvas&&this.canvas.parentNode)for(n=this.canvas.parentNode.innerHTML;i<s;i+=1)r=N[i],n=n.replace(r.reg,r.repStr)}else n='<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&&(o=k(this.bottom,r)),n+="<defs>"+r.str+"</defs>"+o+"</svg>";t||(n=n.replace(/\<image [^\>]*\>/gi,""));return n}})(t)}]);FusionCharts(["private","modules.renderer.js-raphaeltooltip",function(){var e=window,t=document,n=this.hcLib,r=n.Raphael,i=r.eve,s=n.createElement,o=n.addEvent,u=n.removeEvent,a=n.getPosition,f=n.hasTouch,l=n.getTouchEvent,c=e.Math,h=c.ceil,p=c.floor,d=e.screen.availHeight,v=e.screen.availWidth,m={"":1,moz:1,webkit:1,o:1,ms:1},g={borderRadius:"borderRadius",boxShadow:"boxShadow"},y=/\-([a-z])/ig,b=function(e,t){return t.toUpperCase()},w=function(e){var t=E.forbiddenStyle,n,i,s;for(n in e)i=y.test(n)?n.replace(y,b):n,e[n]!==void 0&&!t[i]&&(this[i]=e[n]),r.vml&&/color/ig.test(i)&&(this[i]=r.getRGB(this[i]).toString());for(n in g)if(this[n])for(s in m)this[s+n]=this[n]},E=n.toolTip={elementId:"fusioncharts-tooltip-element",element:null,lastTarget:null,currentTarget:null,currentPaper:null,pointeroffset:12,defaultStyle:n.extend2(w.prototype,{backgroundColor:"#ffffee",borderColor:"#000000",borderWidth:"1px",color:"#000000",fontSize:"10px",lineHeight:"12px",padding:"3px",borderStyle:"solid"}),defaultContainerStyle:{position:"absolute",textAlign:"left",margin:"0",zIndex:"999",pointer:"default",display:"block"},forbiddenStyle:{}},S=function(e){u(window,"click",S);E.onhide.call(this,e)};if(r.svg)E.defaultContainerStyle.pointerEvents="none",E.defaultStyle.borderRadius="0",E.defaultStyle.boxShadow="none";if(r.vml)E.forbiddenStyle.borderRadius=!0,E.forbiddenStyle.boxShadow=!0,E.defaultStyle.filter="";E.setup=function(){var e=E.container,n=E.textElement,u=E.style,a=E.defaultContainerStyle,l=E.forbiddenStyle,c;if(!e)e=E.element=s("span"),(t.body||t.getElementsByTagName("body")[0]).appendChild(e),e.setAttribute("id",E.elementId),u=E.containerStyle=e.style,n=E.textElement=s("span"),e.appendChild(n),E.style=r.vml?n.runtimeStyle:n.style,E.style.overflow="hidden",E.style.display="block",E.hidden=!1,E.hide();for(c in a)!l[c]&&(u[c]=a[c]);o(e,f&&"touchstart"||"mouseover",E.onredraw);E.scatted=!0;i.on("raphael.drag.start.*",function(){E.scatted&&(E.waitingScat=!0)});i.on("raphael.drag.move.*",function(){if(E.waitingScat)E.block(),E.waitingScat=!1});i.on("raphael.drag.end.*",function(){E.waitingScat=!1;E.scatted&&E.unblock(!0)});i.on("raphael.remove",function(){if(E.currentPaper===this||E.currentTarget&&E.currentTarget.paper===this)E.hide(),E.currentTarget=E.currentPaper=null})};E.restyle=function(e){var t=E.style,n;for(n in e)t[n]=e[n]};E.onelement=function(e){var t=e.data,n=t.paper;if(n.__tip_style){E.hiding&&(E.hiding=clearTimeout(E.hiding));if(E.currentPaper!==n)n.__tip_cp=n.canvas&&a(n.canvas.parentNode,!0)||{},E.restyle(n.__tip_style),E.currentPaper=n;E.lastTarget=E.currentTarget;E.currentTarget=t;E.scatted=t.__tip_scatted;E.onredraw.call(this,e);if(f)return o(window,"click",S),!1}};E.onredraw=function(e){E.redrawing&&clearTimeout(E.redrawing);e=l(e);E.x=p(e.pageX);E.y=p(e.pageY);E.redrawing=setTimeout(E.redraw,0)};E.onhide=function(){E.hiding=setTimeout(E.hide,200)};E.redraw=function(){if(!E.blocked&&E.currentTarget){var e=E.currentTarget,n=e.paper,r=E.textElement,i=E.containerStyle,s=E.style,o=e.__tip_text,e=E.pointeroffset,u=n.__tip_cp,a=t.documentElement||t.body,f=a.scrollLeft,a=a.scrollTop,l=E.x,c=E.y,p,m=n.width,g=n.height,n=n.__tip_constrain;if(m<100||g<100)n=!1;if(E.hidden)E.containerStyle.top="-999em",E.show();if(o!==E.text)E.text=o,i.width=i.height="",r.innerHTML=o,s.whiteSpace="nowrap",o=h(s.pixelWidth||r.offsetWidth||0),p=h(s.pixelHeight||r.offsetHeight||0),(E.textWidthOverflow=o>m)?(i.width=(m||0)-e*2+"px",s.whiteSpace="normal"):i.width="",(E.textHeightOverflow=p>g)?(i.height=(g||0)-e*2+"px",s.whiteSpace="normal"):i.height="";o=h(s.pixelWidth||r.offsetWidth||0);p=h(s.pixelHeight||r.offsetHeight||0);n?(E.textWidthOverflow?l=u.left-f:l+e+o>u.left-f+m-e&&(l=l-o-e),E.textHeightOverflow?c=u.top-a:c+e+p>u.top-a+g-e&&(c=c-p-e*1.5)):(f+v<l+e+o&&(l=l-o-e),a+d<c+e+p&&(c=c-p-e*1.5));i.left=(l+e||0)+"px";i.top=(c+e||0)+"px";E.hidden&&E.show()}};E.hide=function(){E.hiding&&(E.hiding=clearTimeout(E.hiding));E.containerStyle.display="none";E.hidden=!0};E.show=function(){if(!E.blocked)E.hiding&&(E.hiding=clearTimeout(E.hiding)),E.containerStyle.display="inline",E.hidden=!1};E.block=function(){E.blocked=!0;E.containerStyle.display="none"};E.unblock=function(e){E.blocked=!1;e&&(E.containerStyle.display=E.hidden&&"none"||"inline")};r.fn.tooltip=function(e,t,n){if(t)t=(t.opacity===void 0?1:t.opacity)*.4,r.svg?e.boxShadow="1px 1px 3px rgba(64,64,64,"+t+")":e.filter="progid:DXImageTransform.Microsoft.Shadow(Strength=2, Direction=135, Color='#404040', shadowOpacity='"+t/2+"')";this.__tip_style=new w(e);this.__tip_cp=this.canvas&&a(this.canvas.parentNode,!0)||{};this.__tip_constrain=Boolean(n);return this};r.el.tooltip=function(e,t,n,i,s){E.setup();r.el.tooltip=function(e,t,n,r,i){if(E.element && !document.getElementById(E.element.id)){E.setup();}t=this.node;n=e===!1||e==void 0||!(e+"");this.__tip_scatted=r==void 0?this.__tip_scatted:!r;this.__tip_scatted==void 0&&(this.__tip_scatted=!0);if(i!=null)this.__tip_blocked=i;n^!this.__tip_text&&(f?(n?u:o)(t,"click",E.onelement,this):n?(u(t,"mouseover",E.onelement,this),u(t,"mousemove",E.onredraw,this),u(t,"mouseout",E.onhide,this)):(o(t,"mouseover",E.onelement,this),o(t,"mousemove",E.onredraw,this),o(t,"mouseout",E.onhide,this)));this.__tip_text=e;if(E.currentTarget===this&&e!==E.text&&!E.hidden)E[n?"hide":"redraw"]();return this};return r.el.tooltip.call(this,e,t,n,i,s)}}]);FusionCharts(["private","modules.renderer.js-base",function(){var e=this,t=e.hcLib,n=window,r=n.document,i=t.BLANKSTRING,s=t.createTrendLine,o=n.location.protocol==="https:"?"https://export.api3.fusioncharts.com/":"http://export.api3.fusioncharts.com/",u=t.pluck,a=t.getValidValue,f=t.pluckNumber,l=t.defaultPaletteOptions,c=t.getFirstValue,h=t.getDefinedColor,p=t.parseUnsafeString,d=t.FC_CONFIG_STRING,v=t.extend2,m=t.getDashStyle,g=t.toPrecision,y=t.regex.dropHash,b=t.HASHSTRING,w=t.getSentenceCase,E=t.addEvent,n=Math,S=n.min,x=n.max,T=n.ceil,N=n.floor,C=n.log,k=n.pow,L=t.graphics.getColumnColor,A=t.getFirstColor,O=t.setLineHeight,M=t.pluckFontSize,_=t.getFirstAlpha,D=t.graphics.getDarkColor,P=t.graphics.getLightColor,H=t.graphics.convertColor,B=t.COLOR_TRANSPARENT,j=t.POSITION_CENTER,F=t.POSITION_TOP,I=t.POSITION_BOTTOM,q=t.POSITION_RIGHT,R=t.POSITION_LEFT,U=t.chartAPI,z=t.titleSpaceManager,n=t.placeLegendBlockBottom,W=t.placeLegendBlockRight,X=t.graphics.mapSymbolName,n=U.singleseries,W=U.multiseries,V=t.COMMASTRING,$=t.STRINGUNDEFINED,J=t.ZEROSTRING,K=t.ONESTRING,Q=t.HUNDREDSTRING,G=t.PXSTRING,Y=t.COMMASPACE,Z=t.CREDIT_STRING=" ",et=t.BLANKSTRINGPLACEHOLDER,tt=t.BGRATIOSTRING,nt=t.COLOR_WHITE,rt=t.TESTSTR,it=t.graphics.getAngle,st=t.axisLabelAdder,ot=t.falseFN,ut=t.SmartLabelManager,at=t.NumberFormatter,ft=t.getLinkAction,lt=t.getAxisLimits,ct=t.createDialog,ht=function(e,t){return e>0?C(e)/C(t||10):null},pt=t.hasTouch=document.documentElement.ontouchstart!==void 0;t.removeEvent=function(e,t,n){var i=r.removeEventListener?"removeEventListener":"detachEvent";r[i]&&!e[i]&&(e[i]=function(){});jQuery(e).unbind(t,n)};var dt=t.fireEvent=function(e,t,n,r){var i=jQ.Event(t),s="detached"+t;v(i,n);e[t]&&(e[s]=e[t],e[t]=null);jQuery(e).trigger(i);e[s]&&(e[t]=e[s],e[s]=null);r&&!i.isDefaultPrevented()&&r(i)},vt={fontWeight:{1:"bold",0:"normal"},fontStyle:{1:"italic",0:"normal"},textDecoration:{1:"underline",0:"none"}},mt={font:function(e,t){t.style.fontFamily=e},size:function(e,t){if(e)t.style.fontSize=M(e)+G},color:function(e,t,n){t.style.color=e&&e.replace&&e.replace(y,b)||i;if(n)t.color=t.style.color},bgcolor:function(e,t){t.style.backgroundColor=e&&e.replace&&e.replace(y,b)||i},bordercolor:function(e,t){t.style.border="1px solid";t.style.borderColor=e&&e.replace&&e.replace(y,b)||i},ishtml:i,leftmargin:function(e,t){t.style.marginLeft=f(e,0)+G},letterspacing:function(e,t){t.style.letterSpacing=f(e,0)+G},bold:function(e,t){t.style.fontWeight=vt.fontWeight[e]||""},italic:function(e,t){t.style.fontStyle=vt.fontStyle[e]||""},underline:function(e,t){t.style.textDecoration=vt.textDecoration[e]||""}},gt={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"}},yt=function(){var e={},t,n=function(){var n,r,i,s,o=0,u;for(n in e)if(o+=1,r=e[n],i=r.jsVars,s=(r=r.ref)&&r.parentNode){if(u=s.offsetWidth,s=s.offsetHeight,!i.resizeLocked&&(i._containerOffsetW!==u||i._containerOffsetH!==s))r.resize&&r.resize(),i._containerOffsetW=u,i._containerOffsetH=s}else delete e[n],o-=1;o||(t=clearInterval(t))};return function(r){var i=r.jsVars,s=r.ref&&r.ref.parentNode||{};i._containerOffsetW=s.offsetWidth;i._containerOffsetH=s.offsetHeight;e[r.id]=r;t||(t=setInterval(n,300))}}(),bt={getExternalInterfaceMethods:function(){var e=U[this.jsVars.type],e=e&&e.eiMethods,t="saveAsImage,print,exportChart,getXML,hasRendered,signature,cancelExport,getSVGString,";if(typeof e==="string")t+=e+V;else if(e!==void 0||e!==null)for(var n in e)t+=n+V;return t.substr(0,t.length-1)},drawOverlayButton:function(t){var n=this.jsVars,r=n.$overlayButton;if(t&&t.show){if(!r)r=n.$overlayButton=jQuery("<span>"),r.click(function(){e.raiseEvent("OverlayButtonClick",t,n.fcObj)});r.text(t.message?t.message:"Back");n.overlayButtonMessage=r.text();r.css({border:"1px solid "+(t.borderColor?t.borderColor.replace(y,b):"#7f8975"),backgroundColor:t.bgColor?t.bgColor.replace(y,b):"#edefec",fontFamily:t.font?t.font:"Verdana",color:"#"+t.fontColor?t.fontColor:"49563a",fontSize:(t.fontSize?t.fontSize:"10")+G,padding:(t.padding?t.padding:"3")+G,fontWeight:parseInt(t.bold,10)===0?"normal":"bold",position:"absolute",top:"0",right:"0",_cursor:"hand",cursor:"pointer"});n.hcObj.container.appendChild(r[0]);n.overlayButtonActive=!0}else if(r)r.detach(),n.overlayButtonActive=!1,delete n.overlayButtonMessage},print:function(){return this.jsVars.hcObj&&this.jsVars.hcObj.hasRendered&&this.jsVars.hcObj.print()},exportChart:function(e){var t=this.jsVars.hcObj;if(t&&t.options&&t.options.exporting&&t.options.exporting.enabled)return t.exportChart(e);return!1},getSVGString:function(){return this.jsVars&&this.jsVars.hcObj&&this.jsVars.hcObj.paper&&this.jsVars.hcObj.paper.toSVG()},resize:function(){var e=this.jsVars,n=e.container,r=e.fcObj,i=e.hcObj;n&&n.offsetWidth>0&&i&&(i&&i.destroy&&i.destroy(),t.createChart(e.fcObj,n,e.type,void 0,void 0,!1),delete e.isResizing,t.raiseEvent("resized",{width:r.width,height:r.height,prevWidth:e.width,prevHeight:e.height},r,[r.id]))},lockResize:function(e){return this.jsVars.resizeLocked=e===void 0&&!0||e},showChartMessage:function(e,n,r){var i=this.jsVars,s=i.hcObj;i.msgStore[e]&&(e=i.msgStore[e]);n&&s&&s.hasRendered?e?s.showMessage(e,r):s.hideLoading():(s&&s.destroy&&s.destroy(),t.createChart(i.fcObj,i.container,i.type,void 0,e));return e},signature:function(){return"FusionCharts/3.3.1 (XT)"}};t.createChart=function(n,r,i,s,o,u,a){var f=n.jsVars,l=f.msgStore,c,h=U[i],p,d=function(o){var u={renderer:"javascript"},a=f.fcObj,l=a.width,c=a.height,d=h&&h.eiMethods,v=f.$overlayButton;r.jsVars=n.jsVars;f.container=r;f.hcObj=o;f.type=i;f.width=r.offsetWidth;f.height=r.offsetHeight;f.instanceAPI=p;if(o.hasRendered){e.extend(r,bt);if(d&&typeof d!=="string")for(var m in d)r[m]=d[m];f.overlayButtonActive&&v&&(v.text(f.overlayButtonMessage),o.container.appendChild(v[0]))}s&&(s({success:o.hasRendered,ref:r,id:n.id}),o.hasRendered&&(l=Number((l&&l.match&&l.match(/^\s*(\d*\.?\d*)\%\s*$/)||[])[1]),c=Number((c&&c.match&&c.match(/^\s*(\d*\.?\d*)\%\s*$/)||[])[1]),(l||c)&&a.ref&&a.ref.parentNode&&yt(a),t.raiseEvent("loaded",{type:i,renderer:"javascript"},n,[n.id]),t.raiseEvent("rendered",{renderer:"javascript"},a,[a.id])));if(o.hasRendered&&f.previousDrawCount<f.drawCount)u.width=f.width,u.height=f.height,u.drawCount=f.drawCount,u.drawingLatency=p.drawingLatency,u.displayingMessage=f.hasNativeMessage,t.raiseEvent("drawcomplete",u,a,[a.id])};n.__state.dataReady=!1;f.instanceAPI&&f.instanceAPI.dispose&&f.instanceAPI.dispose();p=h?new U(i):new U("stub");p.chartInstance=n;if(o!==void 0){if(typeof o==="string")o=new ct(r,o),f.hasNativeMessage=!0}else!h||!h.init||h&&h.name==="stub"?(o=new ct(r,l.ChartNotSupported),f.hasNativeMessage=!0):f.message?(o=new ct(r,f.message),f.hasNativeMessage=!0):f.loadError?(o=new ct(r,l.LoadDataErrorText),f.hasNativeMessage=!0):f.stallLoad?(o=new ct(r,l.XMLLoadingText),f.hasNativeMessage=!0):(o=n.getChartData(FusionChartsDataFormats.JSON,!0),c=o.data,o.error instanceof Error?(o=new ct(r,l.InvalidXMLText),f.hasNativeMessage=!0,a||t.raiseEvent("dataxmlinvalid",{},f.fcObj,[f.fcObj.id])):(a||t.raiseEvent("dataloaded",{},f.fcObj,[f.fcObj.id]),o=p.init(r,c,n,d),f.previousDrawCount=f.drawCount,f.drawCount+=1,o.series.length===0?(o=new ct(r,l.ChartNoDataText),f.hasNativeMessage=!0,a||t.raiseEvent("nodatatodisplay",{},f.fcObj,[f.fcObj.id])):(n.__state.dataReady=!0,f.hasNativeMessage=!1,delete f.message)));if(!o)o=new ct(r,"Error rendering chart {0x01}"),f.hasNativeMessage=!0;o.chart=o.chart||{};o.chart.renderTo=r;o.credits=o.credits||{};o.credits.enabled=h&&h.creditLabel===!0?!0:!1;if(u===!1)o.chart.animation=!1,(o.plotOptions||(o.plotOptions={}))&&(o.plotOptions.series||(o.plotOptions.series={})),o.plotOptions.series.animation=!1;if(r.style)o.chart.containerBackgroundColor=f.transparent?"transparent":n.options.containerBackgroundColor||"#ffffff";return p.draw(o,d)};var wt=t.HCstub=function(e,t,n,r){var e=e.chart,s=f(e.charttopmargin,r.charttopmargin,15),o=f(e.chartrightmargin,r.chartrightmargin,15),u=f(e.chartbottommargin,r.chartbottommargin,15),a=f(e.chartleftmargin,r.chartleftmargin,15),l=s+u,c=a+o;n*=.7;t*=.7;l>n&&(s-=(l-n)*s/l,u-=(l-n)*u/l);c>t&&(a-=(c-t)*a/c,o-=(c-t)*o/c);t={_FCconf:{0:{stack:{}},1:{stack:{}},x:{stack:{}},oriCatTmp:[],noWrap:!1,marginLeftExtraSpace:0,marginRightExtraSpace:0,marginBottomExtraSpace:0,marginTopExtraSpace:0,marimekkoTotal:0},chart:{alignTicks:!1,renderTo:i,ignoreHiddenSeries:!1,events:{},reflow:!1,spacingTop:s,spacingRight:o,spacingBottom:u,spacingLeft:a,marginTop:s,marginRight:o,marginBottom:u,marginLeft:a,borderRadius:0,plotBackgroundColor:"#FFFFFF",style:{},animation:!f(e.defaultanimation,e.animation,1)?!1:{duration:f(e.animationduration,1)*500}},colors:["AFD8F8","F6BD0F","8BBA00","FF8E46","008E8E","D64646","8E468E","588526","B3AA00","008ED6","9D080D","A186BE","CC6600","FDC689","ABA000","F26D7D","FFF200","0054A6","F7941C","CC3300","006600","663300","6DCFF6"],credits:{href:"http://www.fusioncharts.com?BS=FCHSEvalMark",text:Z,enabled:!0},global:{},labels:{items:[]},lang:{},legend:{enabled:!0,symbolWidth:12,borderRadius:1,backgroundColor:"#FFFFFF",initialItemX:0,title:{text:i,x:0,y:0,padding:2},scroll:{},itemStyle:{}},loading:{},plotOptions:{series:{pointPadding:0,borderColor:"#333333",events:{},animation:!f(e.animation,e.defaultanimation,1)?!1:{duration:f(e.animationduration,1)*1e3},states:{hover:{enabled:!1},select:{enabled:!1}},dataLabels:{enabled:!0,color:"#555555",style:{},formatter:function(){return this.point.showPercentValues?r.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:e.interactivelegend===J?ot:function(){this.slice()}}}},pie3d:{size:"80%",allowPointSelect:!0,cursor:"pointer",point:{events:{legendItemClick:e.interactivelegend===J?ot:function(){this.slice()}}}},column:{},floatedcolumn:{},column3d:{},bar:{},bar3d:{}},point:{},series:[],subtitle:{text:i,style:{}},symbols:[],title:{text:i,style:{}},toolbar:{},tooltip:{style:{}},xAxis:{steppedLabels:{style:{}},labels:{x:0,style:{},enabled:!1},lineWidth:0,plotLines:[],plotBands:[],title:{style:{},text:i},tickWidth:0,scroll:{enabled:!1}},yAxis:[{startOnTick:!1,endOnTick:!1,title:{style:{},text:i},tickLength:0,labels:{x:0,style:{}},plotBands:[],plotLines:[]},{tickLength:0,gridLineWidth:0,startOnTick:!1,endOnTick:!1,title:{style:{},text:i},labels:{x:0,style:{},enabled:!1,formatter:function(){return this.value!==et?this.value:i}},opposite:!0,plotBands:[],plotLines:[]}],exporting:{buttons:{exportButton:{},printButton:{enabled:!1}}}};if(e.palettecolors&&typeof e.palettecolors==="string")t.colors=e.palettecolors.split(V);return r.hcJSON=t},Et=t.placeVerticalAxis=function(e,t,n,r,s,o,u,l,c,h){var p=n[d],v=p.smartLabel,m,g,y,b,w=0,l=p.marginRightExtraSpace,E=p.marginLeftExtraSpace,S={},T={},N={},C=e.plotLines,k=e.plotBands,p=t.verticalAxisValuesPadding,L=!isNaN(t.fixedValuesPadding)?t.fixedValuesPadding:0,A=p-L,O=t.verticalAxisValuesPadding,M=t.verticalAxisNamePadding,_=t.verticalAxisNameWidth,D=t.rotateVerticalAxisName,P=e.offset?e.offset:0,H=0,B=0,j=0,F=0,I=0,U=0,z=0,W,X,V,$,p=2,z=u?l+8:E+4,J=function(e,n){var r,i;if(e&&e.label&&a(e.label.text)!==void 0){V=e.label;if(V.style&&V.style!==X)X=V.style,v.setStyle(X);m=v.getOriSize(e.label.text);i=(r=m.width)?r+2:0;if(e.isGrid){if(S[n]={width:r,height:m.height,label:V},F<=i)F=i,t.lYLblIdx=n}else e.isTrend&&(u&&V.textAlign===R||V.textAlign===q?(T[n]={width:r,height:m.height,label:V},I=x(I,i)):(N[n]={width:r,height:m.height,label:V},U=x(U,i)))}},K=function(t,n){var r,o=n?w:w+t;g=g||{};return o>0?(D?(o<g.height&&(g=v.getSmartText(e.title.text,s,o)),r=g.height):(o<g.width&&(g=v.getSmartText(e.title.text,o,s)),r=g.width),e.title.text=g.text,g.tooltext&&(e.title.originalText=g.tooltext),n?o-r+t:o-r):(e.title.text=i,0)},Q=function(e,t,n){for(var r in e)e[r].label.x=t,e[r].label.y=n};W=0;for(j=k.length;W<j;W+=1)J(k[W],W);W=0;for(j=C.length;W<j;W+=1)J(C[W],W);if(e.title&&e.title.text!=i)X=e.title.style,v.setStyle(X),y=v.getOriSize(rt).height,D?(g=v.getSmartText(e.title.text,s,o),w=g.height,b=y):(e.title.rotation=0,g=v.getSmartText(e.title.text,_!==void 0?_:o,s),w=g.width,b=20);U>0&&(B=U+O);c&&(r=f(r.chart.maxlabelwidthpercent,0),r>=1&&r<=100&&(c=r*c/100,F>c&&(F=c)));H=x(I,F);H+=H?A+L:0;w>0&&(H+=w+M+z);(function(){if(B+H>o){$=B+H-o;if(B)if(O>=$){O-=$;return}else $-=O,O=0;if(A+M>=$)M>=$?M-=$:(A-=$-M,M=0);else{$-=A+M;M=A=0;if(U>20)if(I>F)if(U-I>=$){U-=$;return}else if(I-U>=$){I-=$;return}else if(I>U?($-=I-U,I=U):($-=U-I,U=I),2*(I-F)>=$){U-=$/2;I-=$/2;return}else $-=2*(I-F),U=I=F;else if(U-20>=$){U-=$;return}else $-=U-20,U=20;if(I>F)if(I-F>=$){I-=$;return}else $-=I-F,I=F;w-b>=$?w-=$:($-=w-b,w=b,U>=$?U=0:($-=U,U=0,w>=$?w=0:($-=w,w=0,F>=$&&(F-=$,I=F))))}}})();j=function(e,t){var n,r=0,o=t?U-2:U+e-2;if(U>0){for(W in N)if(V=N[W].label,N[W].width>o){if(V.style&&V.style!==X)X=V.style,v.setStyle(X);n=v.getSmartText(V.text,o,s,!0);V.text=n.text;n.tooltext&&(V.originalText=n.tooltext);N[W].height=n.height;r=Math.max(r,n.width)}else r=Math.max(r,N[W].width);return t?o-r+e:o-r}else{for(W in N)N[W].label.text=i;return 0}}(0,!0);j=K(j,!0);j=function(e){var t=0,n=Math.max(F,I)+e-2;if(n>0){for(W in S)if(V=S[W].label,S[W].width>n){if(V.style&&V.style!==X)X=V.style,v.setStyle(X);e=v.getSmartText(V.text,n,s,!0);V.text=e.text;e.tooltext&&(V.originalText=e.tooltext);S[W].height=e.height;t=Math.max(t,e.width)}else t=Math.max(t,S[W].width);for(W in T)if(V=T[W].label,T[W].width>n){if(V.style&&V.style!==X)X=V.style,v.setStyle(X);e=v.getSmartText(V.text,n,s,!0);V.text=e.text;e.tooltext&&(V.originalText=e.tooltext);T[W].height=e.height;t=Math.max(t,e.width)}else t=Math.max(t,T[W].width);return n-t}else{for(W in S)S[W].label.text=i;for(W in T)T[W].label.text=i;return 0}}(j);j=K(j);c=t.verticalAxisNamePadding-M;j&&c&&(j>c?(M+=c,j-=c):(M+=j,j=0));c=t.verticalAxisValuesPadding-(A+L);j&&c&&(j>c?(A+=c,j-=c):(A+=j,j=0));c=t.verticalAxisValuesPadding-O;j&&c&&(j>c?(O+=c,j-=c):(O+=j,j=0));U>0&&(B=U+O);H=x(I,F);H+=H?A+L:0;w>0&&(H+=w+M+z);c=x(I,F);c+=c>0?A+L:0;w>0?(D?w<g.height&&(g=v.getSmartText(e.title.text,s,w)):(w<g.width&&(g=v.getSmartText(e.title.text,w,s)),e.title.y=-((g.height-y)/2)),e.title.text=g.text,g.tooltext&&(e.title.originalText=g.tooltext),e.title.margin=c+M+z+(D?w-y:w/2)):e.title.text=i;y=-(A+L+P+E+2);l=l+O+P+2;z=x(I,F);e.labels.style&&(p=parseInt(e.labels.style.fontSize,10)*.35);u?(U>0&&Q(N,y,p),z>0&&(Q(S,l,p),Q(T,l,p))):(U>0&&Q(N,l,p),z>0&&(Q(S,y,p),Q(T,y,p)));e.labels._textY=p;e.labels._righttX=l;e.labels._leftX=y;h?(n.chart.marginLeft+=u?B:H-h,n.chart.marginRight+=u?H-h:B):(n.chart.marginLeft+=u?B:H,n.chart.marginRight+=u?H:B);return B+H},z=t.titleSpaceManager=function(e,t,n,r){var s=t.chart,o=p(s.caption),u=p(s.subcaption),a=t=f(s.captionpadding,10),l=e[d].smartLabel,c=!1,h,v=0,m,g,y=0,b=0,w=0,E=0,x=e.title,T=e.subtitle,y=f(s.plotBorderWidth,1),y=f(s.canvasborderthickness,1);t<y&&(t=y);if(o!==i)m=x.style,w=f(parseInt(m.fontHeight,10),parseInt(m.lineHeight,10),12),f(parseInt(m.fontSize,10),10);if(u!==i)g=T.style,E=f(parseInt(g.fontHeight,10),parseInt(g.lineHeight,10),12),f(parseInt(g.fontSize,10),10);if(w>0||E>0){v=w+E+t;v>r?(y=v-r,c=!0,y<t?t-=y:(y-=t,t=0,E>y?(b=E-y+10,E=0):(y-=E,E=0,w>y&&(b=w-y),w=0))):b=r-v;if(w>0)l.setStyle(m),w+=b,h=l.getSmartText(o,n,w),b=w-h.height,w=h.height,x.text=h.text,x.height=h.height,h.tooltext&&(x.originalText=h.tooltext);if(E>0)l.setStyle(g),E+=b,n=l.getSmartText(u,n,E),b=E-n.height,E=n.height,T.text=n.text,T.height=n.height,n.tooltext&&(x.originalText=h.tooltext);c&&b>0&&(t+=S(a-t,b));v=w+E+t;e.chart.marginTop+=v}return v},St=t.stepYAxisNames=function(e,t,n,r,s,o){for(var u=0,a=r.plotLines,f=[],l,c=r.plotLines.length,t=t[d].smartLabel,h=parseFloat(M(n.basefontsize,10)),p;u<c;u+=1)n=a[u],n.isGrid&&n.label&&n.label.text&&(f.push(n),n.value===0&&(l=f.length-1));if(c=f.length)if(r.labels.style?t.setStyle(r.labels.style):f[0].label&&f[0].label.style&&t.setStyle(r.labels.style),u=t.getOriSize("W").height,o||(u+=h*.4),e/=c-1,e<u){o=Math.max(1,Math.ceil(u/e));for(u=e=l;u<c;u+=1){n=f[u];if(u===s){if((u-e)%o&&p)p.label.text="";e=s}if(n&&n.label)(u-e)%o?n.label.text=i:p=n}for(u=e=l;u>=0;u-=1){n=f[u];if(u===s){if((e-u)%o&&p)p.label.text="";e=s}if(n&&n.label)(e-u)%o?n.label.text=i:p=n}}},xt=t.placeHorizontalAxis=function(e,t,n,r,s,o,u){var l=n[d],c=r&&r.chart||{},h,p,v,m,g,y,b,w,E,S,T=0,N=0,C=10,k=1,L=0,A=L=0,O=0,M=!1,_=!1,D=!1,P=f(c.labelstep,0),H=f(c.xaxisminlabelwidth,0),B=t.labelDisplay,F=t.rotateLabels,U=t.horizontalLabelPadding,z=l.marginBottomExtraSpace;E=n.chart.marginLeft;var W=n.chart.marginRight,X=l.smartLabel,V=l.plotBorderThickness,J=t.catCount,K=t.slantLabels,Q=s/(e.max-e.min),G=0,Y=0,A={w:0,h:0},Z=r&&r.chart||{},r=f(Z.updateinterval,Z.refreshinterval)*1e3,Z=Z.datastreamurl,et=Boolean(this.realtimeEnabled&&r&&Z!==void 0);if(e.labels.style)y=e.labels.style,X.setStyle(y),w=X.getOriSize("W"),C=X.lineHeight,b=w.width+4,S=X.getOriSize("WWW").width+4;var tt,nt,rt,it=[],r=[],st=0,ot=0,ut,at,ft,lt,Z=t.horizontalAxisNamePadding;nt=0;var ct=t.staggerLines,ht=G,pt=!1,dt=!1;if(e.title&&e.title.text!=i)y=e.title.style,X.setStyle(y),L=X.getOriSize("W").height,e.title.rotation=0,m=X.getSmartText(e.title.text,s,o),N=m.height;E!=parseInt(c.chartleftmargin,10)&&(h=!0);W!=parseInt(c.chartrightmargin,10)&&(rt=!0);c.canvaspadding!==void 0&&c.canvaspadding!==""&&(dt=!0);nt=s-u;switch(B){case"none":M=D=!0;F&&(T=K?300:270,w=C,C=b,b=w);break;case"rotate":T=K?300:270;w=C;C=b;b=w;M=!0;break;case"stagger":_=M=!0;u=Math.floor((o-L)/C);u<ct&&(ct=u);break;default:F&&(T=K?300:270,w=C,C=b,b=w)}l.isBar&&(M=!0);c=0;u=e.plotLines;if(typeof n._FCconf.isXYPlot===$&&!l.isBar){for(ut=u.length;c<ut;c+=1)(p=u[c])&&(p.isGrid?it.push(p):p.isTrend&&r.push(p));F=e.plotBands;c=0;for(ut=F.length;c<ut;c+=1)(p=F[c])&&r.push(p);F=it.length-1;ut=it.length;_&&(ct>ut?ct=ut:ct<2&&(ct=2));if(ut){e.scroll&&e.scroll.viewPortMin&&e.scroll.viewPortMax?(v=e.scroll.viewPortMin,tt=e.scroll.viewPortMax,rt=h=!1):(v=e.min,tt=e.max);c=(it[F].value-it[0].value)*Q;at=c/(J-1);ft=(it[0].value-v)*Q;lt=(tt-it[F].value)*Q;B==="auto"?at<S&&(T=K?300:270,w=C,C=b,b=w,M=!0):B==="stagger"&&(at*=ct);this.defaultSeriesType!=="line"&&(this.defaultSeriesType==="area"?l.drawFullAreaBorder&&(V>ft&&(v=e.min-=V/(2*Q),ft+=(it[0].value-v)*Q),V>lt&&(tt=e.max+=V/(2*Q),lt+=(tt-it[F].value)*Q)):(V>ft&&(v=e.min-=V/(2*Q),ft+=(it[0].value-v)*Q),V>lt&&(tt=e.max+=V/(2*Q),lt+=(tt-it[F].value)*Q)));b<H&&(b=H);k=!_&&!D?Math.max(1,P,Math.ceil(b/at)):Math.max(1,P);if(l.x)l.x.stepValue=k;at*=k;E=(ft+E)*2;if((g=u[0].label)&&g.text)g.style&&X.setStyle(g.style),S=T===270?Math.min(at,X.getOriSize(g.text).height+4):Math.min(at,X.getOriSize(g.text).width+4),S>E&&(D||(st=(S-E)/2),h||(dt&&(st=0),at-=st/(J-1),w=at*(J-1),Q=at,E=(c-w)/Q,tt=e.max+=E,v=e.min-=E,st=0,c=w,ft=(it[0].value-v)*Q,lt=(tt-it[F].value)*Q));E=(lt+W)*2;if((g=u[F].label)&&g.text)g.style&&X.setStyle(g.style),S=T===270?Math.min(at,X.getOriSize(g.text).height+4):Math.min(at,X.getOriSize(g.text).width+4),S>E&&(D||(ot=(S-E)/2),rt||(dt&&(ot=0),at-=ot/(J-1),w=at*(J-1),Q=at,E=(c-w)/Q,ot=0,c=w,ft=(it[0].value-v)*Q,lt=(tt-it[F].value)*Q));c=st+ot;if(c>0){nt>c?(W=(W=ot*s/(ot+s))?W+4:0,n.chart.marginRight+=W,s-=W,W=(W=st*s/(st+s))?W+4:0,n.chart.marginLeft+=W,s-=W,Q=s/(e.max-e.min)):st<ot?nt>=ot&&rt?(W=(W=ot*s/(ot+s))?W+4:0,n.chart.marginRight+=W,s-=W,Q=s/(e.max-e.min)):h&&(W=(W=st*s/(st+s))?W+4:0,n.chart.marginLeft+=W,s-=W,Q=s/(e.max-e.min)):nt>=st&&h?(W=(W=st*s/(st+s))?W+4:0,n.chart.marginLeft+=W,s-=W,Q=s/(e.max-e.min)):rt&&(W=(W=ot*s/(ot+s))?W+4:0,n.chart.marginRight+=W,s-=W,Q=s/(e.max-e.min));c=(it[F].value-it[0].value)*Q;at=c/(J-1);_&&(at*=ct);k=!_&&!D?T?Math.max(1,P,Math.ceil(C/at)):Math.max(1,P,Math.ceil(b/at)):Math.max(1,P);if(l.x)l.x.stepValue=k;at*=k}for(v=0;v<ut;v+=1){p=it[v];if(v%k&&p.label){if(p.stepped=!0,p.label.style=e.steppedLabels.style,!et)continue}else p.stepped=!1,p.label.style=e.labels.style;if(p&&p.label&&a(p.label.text)!==void 0){g=p.label;if(g.style&&g.style!==y)y=g.style,X.setStyle(y);if(T&&D)h=X.getOriSize(g.text),A.w=x(A.w,h.width+4),A.h=x(A.h,h.height);else if(!D)h=T||_?X.getOriSize(g.text):X.getSmartText(g.text,at-4,o,M),A.w=x(A.w,h.width+4),A.h=x(A.h,h.height)}}}v=0;for(ut=r.length;v<ut;v+=1)if((p=r[v])&&p.label&&a(p.label.text)!==void 0){g=p.label;if(g.style&&g.style!==y)y=g.style,X.setStyle(y);h=X.getOriSize(g.text);g.verticalAlign===I?G=x(G,h.height):Y=x(Y,h.height)}e.scroll&&e.scroll.enabled&&!T&&!D&&(E=A.w/2,n.chart.marginLeft<E&&(W=E-n.chart.marginLeft,nt>W&&(s-=W,nt-=W,n.chart.marginLeft+=W)),n.chart.marginRight<E&&(W=E-n.chart.marginRight,nt>W&&(s-=W,nt-=W,n.chart.marginRight+=W)))}else{var P={},vt,B=ot=0,V=dt=null,J={},pt=!0,Q=s/(e.max-e.min),H=function(t,r,s){var o,u,a,f,l,c;c=t.plotObj;l=t.labelTextWidth;if(!l){g=c.label;if(g.style&&g.style!==y)y=g.style,X.setStyle(y);l=X.getOriSize(g.text).width+4;t.oriWidth=l;l>vt&&(l=vt);t.labelTextWidth=l;t.leftEdge=c.value*Q-l/2;t.rightEdge=c.value*Q+l/2;if(s)l=Math.min(l,2*(p.value-e.min)*Q+n.chart.marginLeft),t.labelTextWidth=l}if(typeof r!==$){s=r.plotObj;g=s.label;if(g.style&&g.style!==y)y=g.style,X.setStyle(y);r.oriWidth?a=r.oriWidth:(a=X.getOriSize(g.text).width+4,r.oriWidth=a);a>vt&&(a=vt);r.labelTextWidth=a;r.leftEdge=s.value*Q-a/2;r.rightEdge=s.value*Q+a/2;o=c.value*Q;u=o+l/2;f=s.value*Q;a=f-a/2;if(a<u)if(o+b<f-b)u-=a,o=f-o,t.labelTextWidth=u>o?Math.min(l,o):Math.max(b,l-u/2),r.labelTextWidth=2*(o-t.labelTextWidth/2),t.leftEdge=c.value*Q-t.labelTextWidth/2,t.rightEdge=c.value*Q+t.labelTextWidth/2,r.leftEdge=s.value*Q-r.labelTextWidth/2,r.rightEdge=s.value*Q+r.labelTextWidth/2;else return r.labelTextWidth=0,s.label.text=i,!1}else if(s)l=Math.min(l,2*(e.max-p.value)*Q+n.chart.marginRight),t.labelTextWidth=l,t.leftEdge=c.value*Q-l/2,t.rightEdge=c.value*Q+l/2;t.nextCat=r;return!0};_?ct>ut?ct=ut:ct<2&&(ct=2):ct=1;for(ut=u.length;c<ut;c+=1)if((p=u[c])&&p.label&&typeof p.label.text!==$)p.isGrid?(st={plotObj:p},p.isCat&&(F=c%ct,P[F]||(P[F]=[]),dt?(V=st,P[F].push(V)):(V=dt=st,P[F].push(dt))),it.push(st)):p.isTrend&&r.push({plotObj:p});F=e.plotBands;c=0;for(ut=F.length;c<ut;c+=1)(p=F[c])&&p.isTrend&&p.label&&typeof p.label.text!==$&&r.push({plotObj:p});if(it.length)if(!D&&!T)if(l.distributedColumns){c=0;for(ut=it.length;c<ut;c+=1)if(v=it[c],rt=c%ct,p=v.plotObj,p.label&&p.isCat){c-ct>=0?(h=it[c-ct],rt=h.plotObj.value*Q+h.plotObj._weight*Q/2):(h=null,rt=e.min*Q-E);c+ct<ut?(w=it[c+ct],w=w.plotObj.value*Q-w.plotObj._weight*Q/2):(w=null,w=e.max*Q+W);g=p.label;if(g.style&&g.style!==y)y=g.style,X.setStyle(y);st=p.value*Q;nt=st-p._weight*Q/2;st+=p._weight*Q/2;ct>1?(h=nt-rt,rt=st+w,rt=st-nt+Math.min(h,rt)):rt=st-nt;g=p.label;g.style&&g.style!==y&&X.setStyle(g.style);rt<b&&b<X.getOriSize(g.text).width?(p.label.text=i,v.labelTextWidth=0):(v.labelTextWidth=rt,h=X.getSmartText(g.text,rt-4,o,M),rt=h.width+4,v.labelTextWidth=rt,A.h=Math.max(A.h,h.height))}}else{ut=it.length;F=it.length-1;(c=(it[F].plotObj.value-it[0].plotObj.value)*Q)?(vt=c*.1,et=Math.max(c*.2,c/ut)):et=vt=s;for(v in P){c=0;for(S=P[v].length;c<S;){for(st=c+1;!H(P[v][c],P[v][st]);)st+=1;c=st}}dt&&(B=(dt.plotObj.value-e.min)*Q+E-dt.labelTextWidth/2);p=it[0].plotObj;if(!dt||p!==dt.plotObj){g=p.label;if(g.style&&g.style!==y)y=g.style,X.setStyle(y);S=X.getOriSize(g.text).width+4;st=(p.value-e.min)*Q+E;dt&&(c=B-st,S=c<S&&c>b/2?c*2:0);it[0].labelTextWidth=S;S>0&&(w=st-S/2);w<B&&(B=w)}if(V)S=V.labelTextWidth,ot=(e.max-V.plotObj.value)*Q+W-S/2;p=it[F].plotObj;if(!V||p!==V.plotObj){g=p.label;if(g.style&&g.style!==y)y=g.style,X.setStyle(y);S=X.getOriSize(g.text).width+4;st=(e.max-p.value)*Q+W;V&&(c=st-ot,S=c<S&&c>b/2?c*2:0);it[F].labelTextWidth=S;S>0&&(w=st-S/2);w<ot&&(ot=w)}st=B<0?-B:0;ot=ot<0?-ot:0;c=st+ot;if(c>0)for(v in nt>c?(W=(W=ot*s/(ot+s))?W+4:0,n.chart.marginRight+=W,s-=W,W=(W=st*s/(st+s))?W+4:0,n.chart.marginLeft+=W,s-=W,Q=s/(e.max-e.min)):st<ot?nt>=ot&&rt?(W=(W=ot*s/(ot+s))?W+4:0,n.chart.marginRight+=W,s-=W,Q=s/(e.max-e.min)):h&&(W=(W=st*s/(st+s))?W+4:0,n.chart.marginLeft+=W,s-=W,Q=s/(e.max-e.min)):nt>=st&&h?(W=(W=st*s/(st+s))?W+4:0,n.chart.marginLeft+=W,s-=W,Q=s/(e.max-e.min)):rt&&(W=(W=ot*s/(ot+s))?W+4:0,n.chart.marginRight+=W,s-=W,Q=s/(e.max-e.min)),W=n.chart.marginRight,E=n.chart.marginLeft,c=(it[F].plotObj.value-it[0].plotObj.value)*Q,vt=c*.1,et=Math.max(c*.2,c/ut),P){c=0;for(S=P[v].length;c<S;){for(st=c+1;!H(P[v][c],P[v][st],!0);)st+=1;c=st}v+=1}c=0;for(ut=it.length;c<ut;c+=1)if(v=it[c],rt=c%ct,p=v.plotObj,p.label)if(p.isCat)v.labelTextWidth&&(J[rt]=v);else{w=(h=J[rt])?h.nextCat:P[rt]?P[rt][0]:null;h=null;if(c>=ct){rt=c-ct;for(h=it[rt];!h.labelTextWidth;)if(rt>=ct)rt-=ct,h=it[rt];else{h=null;break}}rt=h?h.rightEdge:e.min*Q-E;w=w?w.leftEdge:e.max*Q+W;g=p.label;if(g.style&&g.style!==y)y=g.style,X.setStyle(y);S=X.getOriSize(g.text).width+4;nt=p.value*Q-S/2;if(l.isBar&&c==ut-1&&h){if(rt>nt)h.plotObj.label.text=i,h.labelTextWidth=0,rt=h.leftEdge}else if(rt>nt||w<nt+S){p.label.text=i;v.labelTextWidth=0;continue}rt=Math.max(rt,nt);st=p.value*Q;rt=2*Math.min(st-rt,w-st);rt.toFixed&&(rt=rt.toFixed(2));g=p.label;g.style&&g.style!==y&&X.setStyle(g.style);rt<b&&b<X.getOriSize(g.text).width?(p.label.text=i,v.labelTextWidth=0):(v.labelTextWidth=rt,h=X.getSmartText(g.text,rt-4,o,M),rt=h.width+4,v.labelTextWidth=rt,v.leftEdge=st-rt/2,v.rightEdge=st+rt/2,A.h=Math.max(A.h,h.height))}h=W=rt=E=null;c=0;for(ut=it.length;c<ut;c+=1)if(v=it[c],p=v.plotObj,rt=c%ct,p.isCat&&v.labelTextWidth){h=W=null;st=p.value*Q;if(c>=ct){rt=c-ct;for(h=it[rt];!h.labelTextWidth;)if(rt>ct)rt-=ct,h=it[rt];else{h=null;break}}h=h?st-h.rightEdge:st-e.min*Q+n.chart.marginLeft;if(c+ct<ut){E=c+ct;for(W=it[E];!W.labelTextWidth;)if(E+ct<ut-1)E+=ct,W=it[E];else{W=null;break}}rt=W?W.leftEdge-st:e.max*Q+n.chart.marginRight-st;rt=Math.min(h,rt)*2;rt>et&&(rt=et);if(rt>v.oriWidth)rt=v.oriWidth;v.labelTextWidth=rt;g=p.label;g.style&&g.style!==y&&X.setStyle(g.style);h=X.getSmartText(g.text,rt-4,o,M);v.labelTextWidth=h.width+4;A.h=Math.max(A.h,h.height);v.rightEdge=st+v.labelTextWidth/2}}else if(T){c=0;for(ut=it.length;c<ut;c+=1)if((p=it[c].plotObj)&&p.label&&p.label.text){g=p.label;if(g.style&&g.style!==y)y=g.style,X.setStyle(y);v=1;if(c+v<ut)for(W=it[v+c].plotObj;W&&(W.value-p.value)*Q<b;)if(p.isCat){if(W.label){W.label.text=i;v+=1;if(v+c>=ut-1)break;W=u[v+c].plotObj}}else if(W.isCat){p.label.text=i;p=W;c+=v-1;g=p.label;if(g.style&&g.style!==y)y=g.style,X.setStyle(y);break}A.w=Math.max(A.w,X.getOriSize(g.text).width+4)}}v=0;for(ut=r.length;v<ut;v+=1)if((p=r[v].plotObj)&&p.label&&a(p.label.text)!==void 0){g=p.label;if(g.style&&g.style!==y)y=g.style,X.setStyle(y);h=X.getOriSize(g.text);g.verticalAlign===I?G=x(G,h.height):Y=x(Y,h.height)}}if(D){if(nt=C,T)nt=A.w}else nt=T?A.w:_?ct*C:A.h;nt>0&&(ht+=U+nt);N>0&&(ht+=N+Z);A=U-4;ht=Y+ht+2;w=0;ht>o&&(c=ht-o,Z>c?(Z-=c,c=0):(c-=Z,Z=0,A>c?(A-=c,differnece=0):(c-=A,A=0),U=A+4),Y>c?(Y-=c,c=0):(Y>0&&(c-=Y,Y=0),c>0&&(G>c?(G-=c,c=0):(G>0&&(c-=G,G=0),c>0&&((w=N-L)>c?(N-=c,c=0):(c-=w,N=L,c>0&&((w=nt-C)>c?(nt-=c,c=0):(c-=w,nt=C,c>0&&(c-=N+Z,N=0,c>0&&(c-=nt,nt=0,c>0&&(U-=c)))))))))));U+=z;var W=l.is3d?-n.chart.xDepth:0,o=nt+U,mt,ht=W;E=C*.5;L=C+U;ut=it.length;A=0;if(pt)if(T){at=q;mt=K?U+8:U+4;ut=it.length;for(v=0;v<ut;v+=1)if((p=it[v].plotObj)&&p.label&&a(p.label.text)!==void 0){g=p.label;if(g.style&&g.style!==y)y=g.style,X.setStyle(y);c=1;h=X.getSmartText(g.text,nt-4,b,M);g.text=h.text;h.tooltext&&(g.originalText=h.tooltext);ht=W+E/2;g.y=mt;g.x=ht;g.rotation=T;g.textAlign=at;A+=1}}else{pt=nt;at=j;mt=L;for(v=0;v<ut;v+=k)if((p=it[v].plotObj)&&p.label&&a(p.label.text)!==void 0){g=p.label;if(g.style&&g.style!==y)y=g.style,X.setStyle(y);if(!D)h=X.getSmartText(g.text,it[v].labelTextWidth-4,pt,M),g.text=h.text,h.tooltext&&(g.originalText=h.tooltext),_&&(mt=L+A%ct*C);g.y=mt;g.x=ht;g.rotation=T;g.textAlign=at;A+=1}}else{T?(pt=at,c=nt-4,at=q,mt=K?U+8:U+4):_?(pt=C,c=at-4,at=j):(pt=nt,c=at-4,at=j,mt=L);for(v=0;v<ut;v+=k)if((p=it[v])&&p.label&&a(p.label.text)!==void 0){g=p.label;if(g.style&&g.style!==y)y=g.style,X.setStyle(y);if(!D)h=X.getSmartText(g.text,c,pt,M),g.text=h.text,h.tooltext&&(g.originalText=h.tooltext),_&&(mt=L+A%ct*C),T&&(ht=W+E/2);g.y=mt;g.x=ht;g.rotation=T;g.textAlign=at;A+=1}t._labelY=L;t._labelX=W;t._yShipment=mt;t._isStagger=_;t._rotation=T;t._textAlign=at;t._adjustedPx=E/2;t._staggerLines=ct;t._labelHeight=C}ut=r.length;for(v=T=t=0;v<ut;v+=1)if((p=r[v].plotObj?r[v].plotObj:r[v])&&p.label&&a(p.label.text)!==void 0){g=p.label;if(g.style&&g.style!==y)y=g.style,X.setStyle(y);g.verticalAlign===I?(h=X.getSmartText(g.text,s,G,!0),T=Math.max(T,h.height),g.text=h.text,h.tooltext&&(g.originalText=h.tooltext),g.y=o+X.getOriSize(g.text).height,g.x=ht):(h=X.getSmartText(g.text,s,Y,!0),t=Math.max(t,h.height),g.text=h.text,h.tooltext&&(g.originalText=h.tooltext),g.y=-(Y-X.getOriSize("W").height+U+2))}if(N>0)X.setStyle(e.title.style),m=X.getSmartText(e.title.text,s,N),e.title.text=m.text,m.tooltext&&(e.title.originalText=m.tooltext),e.title.margin=o+T+Z;ht=T;if(nt>0)l.horizontalAxisHeight=U+nt-z,ht+=l.horizontalAxisHeight;N>0&&(ht+=O=N+Z);n.chart.marginBottom+=ht;t>0&&(n.chart.marginTop+=t,ht+=t);if(e.opposite){e.title.margin-=nt-(m&&m.height||0)+U;ht-=O;n.chart.marginTop+=ht;n.chart.marginBottom-=ht;n.xAxis.opposite=1;ut=u.length;for(c=0;c<ut;c+=1)if((p=u[c])&&p.isGrid&&(g=p.label)&&g.text!==void 0)g.textAlign=R,g.y-=mt+U+4}return ht},Tt=t.configureLegendOptions=function(e,t,n,r,s){var r=e.legend,o=e.chart,a=o.paletteIndex,h=o.is3D?gt.chart3D:gt.chart2D,d=o.useRoundEdges,m=f(t.legendiconscale,1),g=(parseInt(r.itemStyle.fontSize,10)||10)+1,y=e.chart.defaultSeriesType,b=3;if(m<=0||m>5)m=1;r.padding=4;g<=0&&(g=1);s-=8;g*=m;b*=m;g=Math.min(g,s);g<=0&&(b=g=0);r.symbolWidth=g;r.symbolPadding=b;r.textPadding=4;r.legendHeight=s=g+2*b;r.rowHeight=Math.max(parseInt(r.itemStyle.lineHeight,10)||12,s);n?(r.align=q,r.verticalAlign="middle",r.layout="vertical"):r.x=(o.marginLeft-o.spacingLeft-o.marginRight+o.spacingRight)/2;n=u(t.legendbordercolor,l[h.legendBorderColor][a]);s=f(t.legendborderalpha,100);o=f(t.legendbgalpha,100);r.backgroundColor=H(u(t.legendbgcolor,l[h.legendBgColor][a]),o);r.borderColor=H(n,s);r.borderWidth=f(t.legendborderthickness,!d||t.legendbordercolor?1:0);r.shadow=Boolean(f(t.legendshadow,1));if(r.shadow)r.shadow={enabled:r.shadow,opacity:x(s,o)/100};r.reversed=Boolean(f(t.reverselegend,0));if(/^pie|pie3d$/.test(y))r.reversed=!r.reversed;r.style={padding:4};Boolean(f(t.interactivelegend,1))?r.symbolStyle={_cursor:"hand",cursor:"pointer"}:(e.legend.interactiveLegend=!1,r.itemStyle.cursor="default",r.itemHoverStyle={cursor:"inherit"});r.borderRadius=f(t.legendborderradius,d?3:0);r.legendAllowDrag=Boolean(f(t.legendallowdrag,0));r.title.text=p(c(t.legendcaption,i));r.legendScrollBgColor=A(u(t.legendscrollbgcolor,l.altHGridColor[e.chart.paletteIndex]));r.legendScrollBarColor=u(t.legendscrollbarcolor,n);r.legendScrollBtnColor=u(t.legendscrollbtncolor,n);r.title.style=v({fontWeight:"bold"},r.itemStyle)},W=t.placeLegendBlockRight=function(e,t,n,r,s){Tt(e,t.chart,!0,s,n);var o=0,u=e.series,a,l=e[d],c=l.smartLabel,h=e.legend,p,v=h.textPadding,m=h.title.padding,g=h.symbolWidth+2*h.symbolPadding,y=r*2,b=0,t=f(t.chart.legendpadding,7)+h.borderWidth/2+f(t.chart.canvasborderthickness,1),w=2*h.padding,E={width:w,height:w},S=!1,x=[];n-=w;s&&(u=u&&u[0]&&u[0].data);if(typeof u===$||typeof u.length===$)return 0;else{s=u.length;for(o=0;o<s;o+=1)if((a=u[o])&&a.showInLegend!==!1)a.__i=o,x.push(a);x.sort(function(e,t){return e.legendIndex-t.legendIndex||e.__i-t.__i});s=x.length}p=n-g-2-v;p<0&&(p=0);c.setStyle(h.itemStyle);h.reversed&&x.reverse();for(o=0;o<s;o+=1)if(a=x[o],S=!0,a._legendX=0,a._legendY=E.height,p===0)E.height+=a._legendH=g,a.name=i;else{u=c.getSmartText(a.name,p,y);a.name=u.text;u.tooltext&&(a.originalText=u.tooltext);if(u.height<g)a._legendTestY=(g-u.height)/2;E.height+=a._legendH=Math.max(u.height,g);b=Math.max(u.width,b)}if(S){h.itemWidth=b+g+2+v;h.width=h.itemWidth+w;if(h.title.text!==i){c.setStyle(h.title.style);u=c.getSmartText(h.title.text,n,y);h.title.text=u.text;u.tooltext&&(h.title.originalText=u.tooltext);o=u.width+w;if(h.width<o)h.initialItemX=(o-h.width)/2,h.width=o;h.initialItemY=u.height+m;E.height+=h.initialItemY}h.height=h.totalHeight=E.height;if(h.height>r)h.height=r,h.scroll.enabled=!0,h.scroll.flatScrollBars=l.flatScrollBars,h.scroll.scrollBar3DLighting=l.scrollBar3DLighting,h.width+=(h.scroll.scrollBarWidth=10)+(h.scroll.scrollBarPadding=2);t=Math.min(h.width+t,n);e.chart.marginRight+=t;return t}else return h.enabled=!1,0},n=t.placeLegendBlockBottom=function(e,t,n,r,s){Tt(e,t.chart,!1,s,n);var o=0,u=e.series,a,l=e[d],c=l.smartLabel,h=e.legend,p,v=h.textPadding;a=h.title.padding;var m,g=h.symbolPadding;p=h.legendHeight;var y=t.chart;m=0;var b=r*2,w=h.rowHeight,E=[],S=f(y.minimisewrappinginlegend,0),y=f(parseInt(y.legendnumcolumns,10),0),x=0,T=0,N=0,C=o=0,k=2*h.padding,t=f(t.chart.legendpadding,7)+h.borderWidth/2+1,L={width:k,height:k},A=!1,O,M=[];y<0&&(y=0);n-=k;c.setStyle(h.itemStyle);o=c.getOriSize(rt).height;t=Math.min(t,r-o-8);r-=t;s&&(u=u&&u[0]&&u[0].data);if(typeof u===$||typeof u.length===$)return 0;else{s=u.length;for(o=0;o<s;o+=1)if((O=u[o])&&O.showInLegend!==!1)O.__i=o,M.push(O);M.sort(function(e,t){return e.legendIndex-t.legendIndex||e.__i-t.__i});s=M.length}c.setStyle(h.itemStyle);for(o=0;o<s;o+=1)A=!0,u=c.getOriSize(M[o].name),x=Math.max(x,u.width),T+=u.width,N+=1;o=T/N;if(A){o+=p+2+v;x+=p+2+v;y>0&&N<y&&(y=N);y>0&&(C=n/y)>o?C>x&&(C=x):n>x&&(S||o*1.5>x)?(y=Math.floor(n/x),N<y&&(y=N),C=x):n>=2*o?(y=Math.floor(n/o),N<y&&(y=N),C=Math.floor(n/y),C>x&&(C=x)):(y=1,C=n);h.itemWidth=C;p=C-p-2-v;p<0&&(g=p=v=0);h.symbolPadding=g;h.textPadding=v;h.width=C*y+k;if(h.title.text!==i){c.setStyle(h.title.style);u=c.getSmartText(h.title.text,n,b);h.title.text=u.text;u.tooltext&&(h.title.originalText=u.tooltext);m=u.width+k;if(h.width<m)h.initialItemX=(m-h.width)/2,h.width=m;h.initialItemY=m=u.height+a}c.setStyle(h.itemStyle);v=0;h.reversed&&M.reverse();for(o=0;o<s;o+=1){a=M[o];if(p===0)E[v]=!0,a.name=i,n=1;else{u=c.getSmartText(a.name,p,b);a.name=u.text;for(u.tooltext&&(a.originalText=u.tooltext);E[v]===!0;)v+=1;g=u.height/w;S=v;for(n=0;n<g;n+=1,S+=y)E[S]=!0;if(u.height<w)a._legendTestY=(w-u.height)/2}g=parseInt(v/y,10);u=v%y;a._legendX=u*C;a._legendY=g*w+k;a._legendH=n*w;v+=1}L.height+=Math.ceil(E.length/y)*w+m;h.height=h.totalHeight=L.height;h.rowHeight=w;h.legendNumColumns=y;if(h.height>r)h.height=r,h.scroll.enabled=!0,h.scroll.flatScrollBars=l.flatScrollBars,h.scroll.scrollBar3DLighting=l.scrollBar3DLighting,h.width+=(h.scroll.scrollBarWidth=10)+(h.scroll.scrollBarPadding=2);t+=h.height;e.chart.marginBottom+=t;return t}else return h.enabled=!1,0},Nt=function(e,t){return e.value-t.value},Ct=t.adjustVerticalAxisTitle=function(e,t,n){if(t&&t.text){var r=t.text,i=e[d].smartLabel,s=2*Math.min(e.chart.marginTop,e.chart.marginBottom)+n,o=n+e.chart.marginTop+e.chart.marginBottom;t.style&&i.setStyle(t.style);r=i.getOriSize(r);if(t.centerYAxisName===void 0)t.centerYAxisName=!0;if(t.rotation=="0"){if(r.height>s)t.y=(o/2-(n/2+e.chart.marginTop))/2,t.centerYAxisName=!1}else if(r.width>s)t.y=o/2-(n/2+e.chart.marginTop),t.centerYAxisName=!1}},kt=t.adjustVerticalCanvasMargin=function(e,t,n,r){var i=t.chart,s=t=0,o=0,u=f(i.canvastopmargin,0),i=f(i.canvasbottommargin,0),a=u/(u+i),l=e.chart.marginTop,c=e.chart.marginBottom;i>c&&(t+=i-c);u>l&&(t+=u-l);t>n?u>l&&i>c?(s=n*a,o=n*(1-a)):u>l?s=n:o=n:t>0&&(i>c&&(o=i-c),u>l&&(s=u-l));s&&(e.chart.marginTop+=s);o&&(e.chart.marginBottom+=o,r&&r.title&&(r.title.margin+=o));return s+o},Lt=t.adjustHorizontalCanvasMargin=function(e,t,n,r,i){var s=t.chart,t=f(s.canvasleftmargin,0),s=f(s.canvasrightmargin,0),o=t/(t+s),u=0,a=e.chart.marginLeft,l=e.chart.marginRight,c=0,h=0;t>a&&(u+=t-a);s>l&&(u+=s-l);u>n?t>a&&s>l?(c=n*o,h=n*(1-o)):s>l?h=n:c=n:u>0&&(t>a&&(c=t-a),s>l&&(h=s-l));c&&(e.chart.marginLeft+=c,r&&r.title&&(r.title.margin+=c));h&&(e.chart.marginRight+=h,i&&i.title&&(i.title.margin+=h));return h+c};U("base",{useScaleRecursively:!0,tooltipConstraint:"chart",rendererId:"root",draw:function(e,t){var n=this,r=n.renderer,i=n.chartInstance.jsVars,s="reinit",o=new Date;n.drawingLatency=n.drawingLatency||0;if(!r)i._lastpaper&&(i._lastpaper=i._lastpaper.dispose()),s="init",r=n.renderer=new U("renderer."+n.rendererId);return r[s](n,e,function(){i._lastpaper=r;n.drawingLatency=new Date-o;t&&t.apply(this,arguments)})},init:function(e,n,r){var i=this.chartInstance||r,s=i.jsVars,r=s._reflowData||(s._reflowData={}),o=s._reflowClean,u,a;this.dataObj=n=v({},n);a=n.chart=n.chart||n.graph||n.map||{};delete n.graph;delete n.map;if(r&&!this.stateless)u=r.hcJSON,delete r.hcJSON,v(this,r,!0),this.preReflowAdjustments&&this.preReflowAdjustments.call(this),r.hcJSON=u;this.containerElement=e;this.config={};this.smartLabel=new ut(i.id,document.getElementsByTagName("body")[0]||e,f(a.useellipseswhenoverflow,a.useellipsewhenoverflow,1));this.linkClickFN=ft(n,i);this.numberFormatter=new at(n.chart,this);if(!this.standaloneInit)return new t.createDialog(e,s.msgStore.ChartNotSupported);e=this.chart(e.offsetWidth||parseFloat(e.style.width),e.offsetHeight||parseFloat(e.style.height),i);r&&!this.stateless&&(r.hcJSON&&v(e,r.hcJSON,!0),this.postReflowAdjustments&&this.postReflowAdjustments.call(this),o&&this.cleanedData&&(this.cleanedData(this,o),this.cleanedData(r,o)));return e},chart:function(e,t){var n;var r=this.name,s=this.dataObj,o=s.chart,c,h,g,y,b,w,E=this.defaultSeriesType,S,T,N,C,k,L,_,B;c=wt(s,e,t,this);B=c.chart;_=c.xAxis;S=c[d];this.postHCJSONCreation&&this.postHCJSONCreation.call(this,c);c.labels.smartLabel=w=S.smartLabel=this.smartLabel;S.width=e;S.height=t;T=c.plotOptions;S.isDual=this.isDual;S.numberFormatter=this.numberFormatter;S.axisGridManager=new st(E,o);B.is3D=h=S.is3d=/3d$/.test(E);B.isBar=y=S.isBar=this.isBar;g=/^pie/.test(E);L=o.useroundedges==1;k=h?gt.chart3D:gt.chart2D;B.events.click=c.plotOptions.series.point.events.click=this.linkClickFN;B.defaultSeriesType=E;var j=o.palette>0&&o.palette<6?o.palette:f(this.paletteIndex,1);j-=1;B.paletteIndex=j;B.usePerPointLabelColor=o.colorlabelsfromplot==K;B.useRoundEdges=L&&!h&&!this.distributedColumns&&this.defaultSeriesType!=="pie";if(u(o.clickurl)!==void 0)B.link=o.clickurl,B.style.cursor="pointer",c.plotOptions.series.point.events.click=function(){B.events.click.call({link:o.clickurl})};N=u(o.basefont,"Verdana");var U=M(o.basefontsize,10),z=u(o.basefontcolor,l[k.baseFontColor][j]),W=u(o.outcnvbasefont,N);b=M(o.outcnvbasefontsize,U);var X=b+G,$=u(o.outcnvbasefontcolor,z).replace(/^#?([a-f0-9]+)/ig,"#$1"),Z,et,nt=U;U+=G;z=z.replace(/^#?([a-f0-9]+)/ig,"#$1");S.trendStyle=S.outCanvasStyle={fontFamily:W,color:$,fontSize:X};Z=O(S.trendStyle);S.inCanvasStyle={fontFamily:N,fontSize:U,color:z};et=O(S.inCanvasStyle);S.divlineStyle={fontFamily:N,fontSize:U,color:z,lineHeight:et};_.labels.style={fontFamily:W,fontSize:X,lineHeight:Z,color:$};_.steppedLabels.style={fontFamily:W,fontSize:X,lineHeight:Z,color:$,visibility:"hidden"};c.yAxis[0].labels.style={fontFamily:W,fontSize:X,lineHeight:Z,color:$};c.yAxis[1].labels.style={fontFamily:W,fontSize:X,lineHeight:Z,color:$};c.legend.itemStyle={fontFamily:W,fontSize:X,lineHeight:Z,color:$};c.legend.itemHiddenStyle={fontFamily:W,fontSize:X,lineHeight:Z};c.plotOptions.series.dataLabels.style={fontFamily:N,fontSize:U,lineHeight:et,color:z};c.plotOptions.series.dataLabels.color=c.plotOptions.series.dataLabels.style.color;c.tooltip.style={fontFamily:N,fontSize:U,lineHeight:et,color:z};c.title.style={fontFamily:W,color:$,fontSize:b+3+G,fontWeight:f(o.captionfontbold)===0?"normal":"bold"};O(c.title.style);c.subtitle.style={fontFamily:W,color:$,fontSize:b+f(this.subTitleFontSizeExtender,1)+G,fontWeight:a(this.subTitleFontWeight,"bold")};O(c.subtitle.style);_.title.style={fontFamily:W,color:$,fontSize:X,fontWeight:f(o.subcaptionfontbold)===0?"normal":"bold"};U=O(_.title.style);c.yAxis[0].title.style={fontFamily:W,color:$,fontSize:X,lineHeight:U,fontWeight:"bold"};c.yAxis[1].title.style={fontFamily:W,color:$,fontSize:X,lineHeight:U,fontWeight:"bold"};B.overlapColumns=f(o[y&&"overlapbars"||"overlapcolumns"],h?0:1);c.orphanStyles={defaultStyle:{style:v({},S.inCanvasStyle)},connectorlabels:{style:v({},c.plotOptions.series.dataLabels)},vyaxisname:{style:v({},c.yAxis[0].title.style)}};c.plotOptions.series.dataLabels.tlLabelStyle={fontFamily:a(o.tlfont,N),color:A(a(o.tlfontcolor,z)),fontSize:M(o.tlfontsize,nt)+"px"};O(c.plotOptions.series.dataLabels.tlLabelStyle);c.plotOptions.series.dataLabels.trLabelStyle={fontFamily:a(o.trfont,N),color:A(a(o.trfontcolor,z)),fontSize:M(o.trfontsize,nt)+"px"};O(c.plotOptions.series.dataLabels.trLabelStyle);c.plotOptions.series.dataLabels.blLabelStyle={fontFamily:a(o.blfont,N),color:A(a(o.blfontcolor,z)),fontSize:M(o.blfontsize,nt)+"px"};O(c.plotOptions.series.dataLabels.blLabelStyle);c.plotOptions.series.dataLabels.brLabelStyle={fontFamily:a(o.brfont,N),color:A(a(o.brfontcolor,z)),fontSize:M(o.brfontsize,nt)+"px"};O(c.plotOptions.series.dataLabels.brLabelStyle);this.parseStyles(c);delete c.xAxis.labels.style.backgroundColor;delete c.xAxis.labels.style.borderColor;delete c.yAxis[0].labels.style.backgroundColor;delete c.yAxis[0].labels.style.borderColor;delete c.yAxis[1].labels.style.backgroundColor;delete c.yAxis[1].labels.style.borderColor;S.showTooltip=f(o.showtooltip,this.showtooltip,1);S.tooltipSepChar=u(o.tooltipsepchar,this.tooltipsepchar,Y);S.showValues=f(o.showvalues,this.showValues,1);S.seriesNameInToolTip=f(o.seriesnameintooltip,1);S.showVLines=f(o.showvlines,1);S.showVLinesOnTop=f(o.showvlinesontop,0);S.showVLineLabels=f(o.showvlinelabels,this.showVLineLabels,1);S.showVLineLabelBorder=f(o.showvlinelabelborder,1);S.rotateVLineLabels=f(o.rotatevlinelabels,0);S.vLineColor=u(o.vlinecolor,"333333");S.vLineThickness=u(o.vlinethickness,1);S.vLineAlpha=f(o.vlinealpha,80);S.vLineLabelBgColor=u(o.vlinelabelbgcolor,"ffffff");S.vLineLabelBgAlpha=f(o.vlinelabelbgalpha,h?50:100);S.trendlineColor=u(o.trendlinecolor,"333333");S.trendlineThickness=u(o.trendlinethickness,1);S.trendlineAlpha=f(o.trendlinealpha);S.showTrendlinesOnTop=u(o.showtrendlinesontop,0);S.trendlineValuesOnOpp=u(o.trendlinevaluesonopp,o.trendlinevaluesonright,0);S.trendlinesAreDashed=f(o.trendlinesaredashed,0);S.trendlinesDashLen=f(o.trendlinedashlen,5);S.trendlinesDashGap=f(o.trendlinedashgap,2);S.showTrendlines=f(o.showtrendlines,1);S.showTrendlineLabels=f(o.showtrendlinelabels,this.showTrendlineLabels,1);S.flatScrollBars=f(o.flatscrollbars,0);S.scrollBar3DLighting=f(o.scrollbar3dlighting,1);c.plotOptions.series.connectNullData=f(o.connectnulldata,0);B.backgroundColor={FCcolor:{color:u(o.bgcolor,l[k.bgColor][j]),alpha:u(o.bgalpha,l[k.bgAlpha][j]),angle:u(o.bgangle,l[k.bgAngle][j]),ratio:u(o.bgratio,l[k.bgRatio][j])}};B.borderRadius=f(o.borderradius,0);B.rotateValues=f(o.rotatevalues,0);B.placeValuesInside=f(o.placevaluesinside,0);B.valuePosition=u(o.valueposition,"auto");B.valuePadding=f(o.valuepadding,2);B.borderColor=H(u(o.bordercolor,h?"#666666":l.borderColor[j]),u(o.borderalpha,h?"100":l.borderAlpha[j]));N=f(o.showborder,h?0:1);B.borderWidth=N?f(o.borderthickness,1):0;B.plotBorderColor=H(u(o.canvasbordercolor,l.canvasBorderColor[j]),u(o.canvasborderalpha,l.canvasBorderAlpha[j]));if(o.showcanvasborder!=="0"&&(C=Boolean(u(o.canvasborderthickness,L?0:1)),o.showaxislines==="1"||o.showxaxisline==="1"||o.showyaxisline==="1"))o.showcanvasborder!=="1"&&(C=0);B.plotBorderWidth=h||!C?0:f(o.canvasborderthickness,this.canvasborderthickness,B.useRoundEdges?1:2);B.bgSWF=u(o.bgimage,o.bgswf);B.bgSWFAlpha=f(o.bgimagealpha,o.bgswfalpha,100);L=u(o.bgimagedisplaymode,"none").toLowerCase();N=a(o.bgimagevalign,i).toLowerCase();z=a(o.bgimagehalign,i).toLowerCase();L=="tile"||L=="fill"||L=="fit"?(N!=F&&N!="middle"&&N!=I&&(N="middle"),z!=R&&z!="middle"&&z!=q&&(z="middle")):(N!=F&&N!="middle"&&N!=I&&(N=F),z!=R&&z!="middle"&&z!=q&&(z=R));B.bgImageDisplayMode=L;B.bgImageVAlign=N;B.bgImageHAlign=z;B.bgImageScale=f(o.bgimagescale,100);B.logoURL=a(o.logourl);B.logoPosition=u(o.logoposition,"tl").toLowerCase();B.logoAlpha=f(o.logoalpha,100);B.logoLink=a(o.logolink);B.logoScale=f(o.logoscale,100);B.logoLeftMargin=f(o.logoleftmargin,0);B.logoTopMargin=f(o.logotopmargin,0);L=B.toolbar={button:{}};N=L.button;N.scale=f(o.toolbarbuttonscale,1.15);N.width=f(o.toolbarbuttonwidth,15);N.height=f(o.toolbarbuttonheight,15);N.radius=f(o.toolbarbuttonradius,2);N.spacing=f(o.toolbarbuttonspacing,5);N.fill=H(u(o.toolbarbuttoncolor,"ffffff"));N.labelFill=H(u(o.toolbarlabelcolor,"cccccc"));N.symbolFill=H(u(o.toolbarsymbolcolor,"ffffff"));N.hoverFill=H(u(o.toolbarbuttonhovercolor,"ffffff"));N.stroke=H(u(o.toolbarbuttonbordercolor,"bbbbbb"));N.symbolStroke=H(u(o.toolbarsymbolbordercolor,"9a9a9a"));N.strokeWidth=f(o.toolbarbuttonborderthickness,1);N.symbolStrokeWidth=f(o.toolbarsymbolborderthickness,1);z=N.symbolPadding=f(o.toolbarsymbolpadding,5);N.symbolHPadding=f(o.toolbarsymbolhpadding,z);N.symbolVPadding=f(o.toolbarsymbolvpadding,z);z=L.position=u(o.toolbarposition,"tr").toLowerCase();switch(z){case"tr":case"tl":case"br":case"bl":break;default:z="tr"}N=L.hAlign=(i+o.toolbarhalign).toLowerCase()==="left"?"l":z.charAt(1);n=L.vAlign=(i+o.toolbarvalign).toLowerCase()==="bottom"?"b":z.charAt(0),z=n;L.hDirection=f(o.toolbarhdirection,N==="r"?-1:1);L.vDirection=f(o.toolbarvdirection,z==="b"?-1:1);L.vMargin=f(o.toolbarvmargin,6);L.hMargin=f(o.toolbarhmargin,10);L.x=f(o.toolbarx,N==="l"?0:e);L.y=f(o.toolbary,z==="t"?0:t);$=u(o.divlinecolor,l[k.divLineColor][j]);X=u(o.divlinealpha,h?l.divLineAlpha3D[j]:l.divLineAlpha[j]);L=f(o.divlinethickness,1);N=Boolean(f(o.divlineisdashed,this.divLineIsDashed,0));z=f(o.divlinedashlen,4);W=f(o.divlinedashgap,2);c.yAxis[0].gridLineColor=H($,X);c.yAxis[0].gridLineWidth=L;c.yAxis[0].gridLineDashStyle=N?m(z,W,L):void 0;c.yAxis[0].alternateGridColor=y?H(u(o.alternatevgridcolor,l.altVGridColor[j]),f(o.showalternatevgridcolor,1)===1?u(o.alternatevgridalpha,l.altVGridAlpha[j]):J):H(u(o.alternatehgridcolor,l.altHGridColor[j]),o.showalternatehgridcolor==0?0:u(o.alternatehgridalpha,l.altHGridAlpha[j]));nt=f(o.vdivlinethickness,1);U=Boolean(f(o.vdivlineisdashed,0));b=f(o.vdivlinedashlen,4);Z=f(o.vdivlinedashgap,2);_.gridLineColor=H(u(o.vdivlinecolor,l[k.divLineColor][j]),u(o.vdivlinealpha,l.divLineAlpha[j]));_.gridLineWidth=nt;_.gridLineDashStyle=U?m(b,Z,nt):void 0;_.alternateGridColor=H(u(o.alternatevgridcolor,l.altVGridColor[j]),o.showalternatehgridcolor==="1"?u(o.alternatevgridalpha,l.altVGridAlpha[j]):0);nt=u(o.canvasbgcolor,l[k.canvasBgColor][j]);U=u(o.canvasbgalpha,l.canvasBgAlpha[j]);u(o.showcanvasbg,K)==J&&(U="0");c.plotOptions.series.shadow=f(o.showshadow,o.showcolumnshadow,this.defaultPlotShadow,l.showShadow[j]);if(this.inversed)c.yAxis[0].reversed=!0,c.yAxis[1].reversed=!0;if(this.isStacked)this.distributedColumns?(S.showStackTotal=Boolean(f(o.showsum,1)),b=f(o.usepercentdistribution,1),Z=f(o.showpercentvalues,0),et=f(o.showpercentintooltip,b,0),S.showXAxisPercentValues=f(o.showxaxispercentvalues,1)):(S.showStackTotal=Boolean(f(this.showSum,o.showsum,0)),b=f(this.stack100percent,o.stack100percent,0),Z=f(o.showpercentvalues,b,0),et=f(o.showpercentintooltip,Z)),S.showPercentValues=Z,S.showPercentInToolTip=et,b?(S.isValueAbs=!0,T[E].stacking="percent",S[0].stacking100Percent=!0):T[E].stacking="normal";if(this.isDual){if(o.primaryaxisonleft==="0")c.yAxis[0].opposite=!0,c.yAxis[1].opposite=!1;c.yAxis[0].showAlways=!0;c.yAxis[1].showAlways=!0}if(B.useRoundEdges){c.plotOptions.series.shadow=f(o.showshadow,o.showcolumnshadow,1);c.plotOptions.series.borderRadius=1;c.tooltip.style.borderRadius="2px";B.plotBorderRadius=3;if(!C)B.plotBorderWidth=0;B.plotShadow=c.plotOptions.series.shadow?{enabled:!0,opacity:U/100}:0}if(f(o.use3dlighting,1)===1)c.legend.lighting3d=!0;c.plotOptions.series.userMaxColWidth=y?o.maxbarheight:f(o.maxcolwidth,this.maxColWidth);c.plotOptions.series.maxColWidth=Math.abs(f(c.plotOptions.series.userMaxColWidth,50))||1;c.title.text=p(o.caption);c.subtitle.text=p(o.subcaption);if(f(o.showtooltip,this.showtooltip)==0)c.tooltip.enabled=!1;E=c.tooltip.style;E.backgroundColor=H(u(E.backgroundColor,o.tooltipbgcolor,l.toolTipBgColor[j]),u(o.tooltipbgalpha,100));E.borderColor=H(u(E.borderColor,o.tooltipbordercolor,l.toolTipBorderColor[j]),u(o.tooltipborderalpha,100));c.tooltip.shadow=f(o.showtooltipshadow,o.showshadow,1)?{enabled:!0,opacity:x(f(o.tooltipbgalpha,100),f(o.tooltipborderalpha,100))/100}:!1;c.tooltip.constrain=f(o.constraintooltip,1);E.borderWidth=f(o.tooltipborderthickness,1)+"px";if(o.tooltipborderradius)E.borderRadius=f(o.tooltipborderradius,1)+"px";E.padding=f(o.tooltippadding,this.tooltippadding,3)+"px";if(o.tooltipcolor)E.color=A(o.tooltipcolor);S.userPlotSpacePercent=c.plotOptions.series.userPlotSpacePercent=o.plotspacepercent;E=f(o.plotspacepercent,20)%100;S.plotSpacePercent=c.plotOptions.series.groupPadding=E/200;h&&!g?(B.series2D3Dshift=r==="mscombi3d"?!0:Boolean(f(o.use3dlineshift,0)),B.canvasBaseColor3D=u(o.canvasbasecolor,l.canvasBaseColor3D[j]),B.canvasBaseDepth=f(o.canvasbasedepth,10),B.canvasBgDepth=f(o.canvasbgdepth,3),B.showCanvasBg=Boolean(f(o.showcanvasbg,1)),B.showCanvasBase=Boolean(f(o.showcanvasbase,1)),y?(B.xDepth=5,B.yDepth=5,B.showCanvasBg&&(S.marginTopExtraSpace+=B.canvasBgDepth),S.marginLeftExtraSpace+=B.yDepth+(B.showCanvasBase?B.canvasBaseDepth:0),S.marginBottomExtraSpace+=5):(B.xDepth=10,B.yDepth=10,B.showCanvasBg&&(S.marginRightExtraSpace+=B.canvasBgDepth),S.marginBottomExtraSpace+=B.yDepth+(B.showCanvasBase?B.canvasBaseDepth:0)),nt=nt.split(V)[0],U=U.split(V)[0],B.use3DLighting=Boolean(f(o.use3dlighting,1)),B.plotBackgroundColor=B.use3DLighting?{FCcolor:{color:D(nt,85)+V+P(nt,55),alpha:U+V+U,ratio:tt,angle:it(e-(B.marginLeft+B.marginRight),t-(B.marginTop+B.marginBottom),1)}}:H(nt,U),B.canvasBgColor=H(D(nt,80),U),g=u(o.zeroplanecolor,o.divlinecolor,l[k.divLineColor][j]),y=u(o.zeroplanealpha,o.divlinealpha,l.divLineAlpha[j]),B.zeroPlaneColor=H(g,y),B.zeroPlaneBorderColor=H(u(o.zeroplanebordercolor,g),f(o.zeroplaneshowborder,1)?y:0)):(B.is3D=!1,B.plotBackgroundColor={FCcolor:{color:nt,alpha:U,angle:u(o.canvasbgangle,l.canvasBgAngle[j]),ratio:u(o.canvasbgratio,l.canvasBgRatio[j])}});this.parseExportOptions(c);this.preSeriesAddition&&this.preSeriesAddition(c,s,e,t);this.series&&this.series(s,c,r,e,t);this.postSeriesAddition(c,s,e,t);this.spaceManager(c,s,e,t);this.postSpaceManager&&this.postSpaceManager(c,s,e,t);r=f(o.drawquadrant,0);if(S.isXYPlot&&r&&(b=_.min,Z=_.max,T=c.yAxis[0].min,C=c.yAxis[0].max,et=f(o.quadrantxval,(b+Z)/2),nt=f(o.quadrantyval,(T+C)/2),nt>=T&&nt<=C&&et>=b&&et<=Z)){var E=H(u(o.quadrantlinecolor,B.plotBorderColor),u(o.quadrantlinealpha,Q)),U=f(o.quadrantlinethickness,B.plotBorderWidth),rt=f(o.quadrantlineisdashed,0),ot=f(o.quadrantlinedashLen,4),ut=f(o.quadrantlinedashgap,2);y=a(o.quadrantlabeltl,i);r=a(o.quadrantlabeltr,i);s=a(o.quadrantlabelbl,i);g=a(o.quadrantlabelbr,i);k=f(o.quadrantlabelpadding,3);rt=rt?m(ot,ut,U):void 0;_.plotLines.push({color:E,value:et,width:U,dashStyle:rt,zIndex:3});c.yAxis[0].plotLines.push({color:E,value:nt,width:U,dashStyle:rt,zIndex:3});U=e-B.marginRight-B.marginLeft;rt=t-B.marginTop-B.marginBottom;E=S.inCanvasStyle;parseInt(E.fontSize,10);b=U/(Z-b)*(et-b);Z=U-b;C=rt/(C-T)*(nt-T);T=rt-C;b-=k;Z-=k;T-=k;C-=k;nt=k+G;et=rt-k+G;rt=k+G;k=U-k+G;w.setStyle(E);T>0&&(y!==i&&b>0&&(y=w.getSmartText(y,b,T),c.labels.items.push({html:y.text,zIndex:3,vAlign:F,style:{left:rt,top:nt,fontSize:E.fontSize,lineHeight:E.lineHeight,fontFamily:E.fontFamily,color:E.color}})),r!==i&&Z>0&&(y=w.getSmartText(r,Z,T),c.labels.items.push({html:y.text,textAlign:q,vAlign:F,zIndex:3,style:{left:k,top:nt,fontSize:E.fontSize,lineHeight:E.lineHeight,fontFamily:E.fontFamily,color:E.color}})));C>0&&(s!==i&&b>0&&(y=w.getSmartText(s,b,C),c.labels.items.push({html:y.text,vAlign:I,zIndex:3,style:{left:rt,top:et,fontSize:E.fontSize,lineHeight:E.lineHeight,fontFamily:E.fontFamily,color:E.color}})),g!==i&&Z>0&&(y=w.getSmartText(g,Z,C),c.labels.items.push({html:y.text,textAlign:q,vAlign:I,zIndex:3,style:{left:k,top:et,fontSize:E.fontSize,lineHeight:E.lineHeight,fontFamily:E.fontFamily,color:E.color}})))}if(this.hasVDivLine&&(r=f(o.numvdivlines,0)+1,r>1)){S=S.x.catCount-1;w=_.max;r=S/r;s=!0;g=_.min;var at;_.scroll&&!isNaN(_.scroll.viewPortMax)&&(w=_.scroll.viewPortMax);$=u(o.vdivlinecolor,$);X=f(o.vdivlinealpha,X);nt=f(o.vdivlinethickness,L);U=f(o.vdivlineisdashed,N);b=f(o.vdivlinedashlen,z);Z=f(o.vdivlinedashgap,W);(L=f(o.showalternatevgridcolor,0))&&(at=H(u(o.alternatevgridcolor,l.altVGridColor[j]),u(o.alternatevgridalpha,l.altVGridAlpha[j])));for(j=r;j<S;j+=r,s=!s)s&&L&&_.plotBands.push({isNumVDIV:!0,color:at,from:g,to:j,zIndex:1}),_.plotLines.push({isNumVDIV:!0,width:nt,color:H($,X),dashStyle:U?m(b,Z,nt):void 0,value:j,zIndex:1}),g=j;s&&L&&_.plotBands.push({isNumVDIV:!0,color:at,from:g,to:w,zIndex:1})}if(h&&B.xDepth>B.marginLeft)B.marginLeft=B.xDepth;window.console&&window.console.log&&window.FC_DEV_ENVIRONMENT&&console.log(c);return c},parseExportOptions:function(e){var t,n=this.dataObj.chart,r=this.chartInstance.jsVars.transparent?"":this.chartInstance.options.containerBackgroundColor||"#ffffff",i=navigator.userAgent.match(/(iPad|iPhone|iPod)/g);e.exporting.enabled=f(n.exportenabled,0);e.exporting.bgcolor=r;e.exporting.exporttargetwindow=u(n.exporttargetwindow,i?"_blank":"_self");e.exporting.exportaction=n.exportaction&&n.exportaction.toString().toLowerCase()==="save"&&"save"||"download";t=w(e.exporting.exportaction);e.exporting.exportfilename=u(n.exportfilename,"FusionCharts");e.exporting.exporthandler=u(n.html5exporthandler,n.exporthandler,o);e.exporting.exportparameters=u(n.exportparameters,"");e.exporting.exportformat=u(n.exportformat,"PNG");e.exporting.exportatclient=f(n.exportatclient,0);e.exporting.exportformats=function(e){var n={JPG:t+" as JPEG image",PNG:t+" as PNG image",PDF:t+" as PDF document",SVG:t+" as SVG vector image"},r,i,s,o=0;if(e){e=e.split("|");for(o=0;o<e.length;o++)s=(i=e[o].split("="))&&i[0].toUpperCase()||"",i=i&&i[1]||"",n[s]&&(r||(r={}))&&(r[s]=i||n[s])}return r||n}(n.exportformats);e.exporting.buttons.printButton.enabled=n.showprintmenuitem=="1";e.exporting.buttons.exportButton.enabled=n.exportenabled=="1"?n.exportshowmenuitem!="0":!1},defaultSeriesType:i,paletteIndex:1,creditLabel:!1,placeTitle:z,placeLegendBlockBottom:n,placeLegendBlockRight:W,placeHorizontalAxis:xt,placeVerticalAxis:Et,placeHorizontalCanvasMarginAdjustment:Lt,placeVerticalCanvasMarginAdjustment:kt,placeHorizontalXYSpaceManager:function(e,t,n,r){var i=e[d],s,o,a,l=t.chart,c,h,p,v,m,g,y=e.chart,b=i.marginLeftExtraSpace,w=i.marginTopExtraSpace,E=i.marginBottomExtraSpace,S=i.marginRightExtraSpace;a=n-(b+S+y.marginRight+y.marginLeft);var T=r-(E+y.marginBottom+y.marginTop),N=a*.3,n=T*.3;s=a-N;r=T-n;c=u(l.legendposition,I).toLowerCase();e.legend.enabled&&c===q&&(s-=this.placeLegendBlockRight(e,t,s/2,T));v=f(l.xaxisnamepadding,5);m=f(l.labelpadding,2);g=l.rotatexaxisname!==J;h=u(l.showplotborder,i.is3d?J:K)===K;h=i.plotBorderThickness=h?i.is3d?1:f(l.plotborderthickness,1):0;p=x(f(y.plotBorderWidth,1),0);o=x(p,h/2);m<o&&(m=o);if(!i.isDual&&y.marginRight<p&&l.chartrightmargin===void 0&&(o=p-y.marginRight,a>N+o))y.marginRight=p,a-=o,N=a*.3,s=a-N;o=i.x;o.verticalAxisNamePadding=v;o.verticalAxisValuesPadding=m;o.rotateVerticalAxisName=g;o.verticalAxisNameWidth=f(l.xaxisnamewidth);s-=Et(e.xAxis,o,e,t,T,s,!1,!1,a);s-=Lt(e,t,s,e.xAxis);a=s+N;e.legend.enabled&&c!==q&&(r-=this.placeLegendBlockBottom(e,t,a,r/2));r-=z(e,t,a,r/2);o=i[0];o.horizontalAxisNamePadding=f(l.yaxisnamepadding,5);o.horizontalLabelPadding=f(l.yaxisvaluespadding,2);o.labelDisplay="auto";o.staggerLines=f(l.staggerlines,2);o.slantLabels=f(l.slantlabels,0);o.horizontalLabelPadding=o.horizontalLabelPadding<p?p:o.horizontalLabelPadding;this.xAxisMinMaxSetter(e,t,a);s=e.xAxis;m=s.plotLines;p=r/(s.max-s.min);m&&m.length&&(v=(m[0].value-s.min)*p,m=(s.max-m[m.length-1].value)*p,i.isBar&&(h>v&&(s.min-=(h-v)/(2*p)),h>m&&(s.max+=(h-m)/(2*p))));r-=this.placeHorizontalAxis(e.yAxis[0],o,e,t,a,r,N);r-=kt(e,t,r,e.yAxis[0]);St(n+r,e,l,e.xAxis,i.x.lYLblIdx,!0);Ct(e,e.xAxis.title,r);if(e.legend.enabled&&c===q){e=e.legend;t=n+r;if(e.height>t)e.height=t,e.scroll.enabled=!0,t=(e.scroll.scrollBarWidth=10)+(e.scroll.scrollBarPadding=2),e.width+=t,y.marginRight+=t;e.y=20}y.marginLeft+=b;y.marginTop+=w;y.marginBottom+=E;y.marginRight+=S},placeVerticalXYSpaceManager:function(e,t,n,r){var i=e[d],s,o,a=!0,l=0,c=t.chart,h=!1,p,v,m,g=e.chart,y=i.marginLeftExtraSpace,b=i.marginTopExtraSpace,w=i.marginBottomExtraSpace,E=i.marginRightExtraSpace;s=n-(y+E+g.marginRight+g.marginLeft);var S=r-(w+g.marginBottom+g.marginTop),T=s*.3,r=S*.3,N=s-T,n=S-r,l=i.drawFullAreaBorder=f(c.drawfullareaborder,1),C=u(c.legendposition,I).toLowerCase();p=f(c.yaxisnamepadding,5);v=f(c.yaxisvaluespadding,c.labelypadding,2);o=u(c.showplotborder,i.is3d?J:K)===K;o=i.plotBorderThickness=o?i.is3d?1:f(c.plotborderthickness,1):0;m=x(f(g.plotBorderWidth,1),0);o=x(m,o/2);this.defaultSeriesType==="area"&&!l&&(o=m);v<m&&(v=m);if(!i.isDual&&g.marginRight<m&&c.chartrightmargin===void 0&&(l=m-e.chart.marginRight,s>T+l))g.marginRight=m,s-=l,T=s*.3,N=s-T;e.legend.enabled&&C===q&&(N-=this.placeLegendBlockRight(e,t,N/2,S));l=c.rotateyaxisname!==J;if(i.isDual)h=!0,s=i[1],s.verticalAxisNamePadding=p,s.verticalAxisValuesPadding=v,s.rotateVerticalAxisName=l,s.verticalAxisNameWidth=f(c.syaxisnamewidth),a=e.yAxis[1].opposite,N-=Et(e.yAxis[1],s,e,t,S,N/2,a,h);s=i[0];s.verticalAxisNamePadding=p;s.verticalAxisValuesPadding=v;s.rotateVerticalAxisName=l;s.verticalAxisNameWidth=f(h?c.pyaxisnamewidth:c.yaxisnamewidth);N-=Et(e.yAxis[0],s,e,t,S,N,!a,h);N-=Lt(e,t,N,e.yAxis[0],e.yAxis[1]);a=N+T;e.legend.enabled&&C!==q&&(n-=this.placeLegendBlockBottom(e,t,a,n/2));n-=z(e,t,a,n/2);s=i.x;s.horizontalAxisNamePadding=f(c.xaxisnamepadding,5);s.horizontalLabelPadding=f(c.labelpadding,c.labelxpadding,2);s.labelDisplay=u(c.labeldisplay,"auto").toLowerCase();s.rotateLabels=f(c.rotatelabels,c.rotatexaxislabels,0);s.staggerLines=f(c.staggerlines,2);s.slantLabels=f(c.slantlabels,c.slantlabel,0);if(s.horizontalLabelPadding<o)s.horizontalLabelPadding=o;this.xAxisMinMaxSetter(e,t,a);n-=this.placeHorizontalAxis(e.xAxis,s,e,t,a,n,T);n-=kt(e,t,n,e.xAxis);h&&(St(r+n,e,c,e.yAxis[1],i[1].lYLblIdx),Ct(e,e.yAxis[1].title,n));St(r+n,e,c,e.yAxis[0],i[0].lYLblIdx);Ct(e,e.yAxis[0].title,n);if(e.legend.enabled&&C===q&&(e=e.legend,t=r+n,e.height>t&&e.type!=="gradient"))e.height=t,e.scroll.enabled=!0,t=(e.scroll.scrollBarWidth=10)+(e.scroll.scrollBarPadding=2),e.width+=t,g.marginRight+=t;g.marginLeft+=y;g.marginTop+=b;g.marginBottom+=w;g.marginRight+=E},placeVerticalAxisTitle:Ct,spaceManager:function(){return this.placeVerticalXYSpaceManager.apply(this,arguments)},axisMinMaxSetter:function(e,t,n,r,i,s,o,u){n=t.stacking100Percent?lt(99,1,100,0,i,s,o,u):lt(f(t.max,n),f(t.min,r),n,r,i,s,o,u);e.min=Number(g(n.Min,10));e.max=Number(g(n.Max,10));e.tickInterval=Number(g(n.divGap,10));t.numdivlines=Math.round((e.max-e.min)/e.tickInterval)-1;if(n.Range/n.divGap<=2)e.alternateGridColor=B;this.highValue=t.max;this.lowValue=t.min;delete t.max;delete t.min},configurePlotLines:function(e,t,n,r,s,o,a,c,h,p,v){var m;m=n.min;var y=n.max,b=n.tickInterval,w=p?"xAxis":r.stacking100Percent?"percentValue":"yAxis",E=m,S=1,x=n.gridLineColor,T=n.gridLineWidth,N=n.gridLineDashStyle,C=m<0&&y>0?!0:!1,k=m===0,L=y===0,A=f(r.showzeroplanevalue,e.showzeroplanevalue)===0,O=!0,M=1,_=f(e.numdivlines,0)>0,D=t[d].axisGridManager,P=t.chart.paletteIndex,v=f(v,h?1:0);delete n._altGrid;delete n._lastValue;if(p&&!r.catOccupied)r.catOccupied={};if(C&&(!p||!r.catOccupied[0]))if(p?(O=f(e.showvzeroplane,1),t=f(e.showvzeroplanevalue,o),_=f(e.vzeroplanethickness,1),e=_>0?H(u(e.vzeroplanecolor,x),u(e.vzeroplanealpha,e.vdivlinealpha,l.divLineAlpha[P])):B):(P=f(e.divlinealpha,l.divLineAlpha[P]),t=f(r.showzeroplanevalue,e.showzeroplanevalue,o),this.defaultZeroPlaneHighlighted===!1?(O=f(r.showzeroplane,e.showzeroplane,!(this.defaultZeroPlaneHidden&&!_)),_=T):(_=T===1?2:T,M=5,P*=2),_=f(r.zeroplanethickness,e.zeroplanethickness,_),e=_>0?H(u(r.zeroplanecolor,e.zeroplanecolor,x),u(r.zeroplanealpha,e.zeroplanealpha,P)):B),O)O=t?c[w](0,v):i,(M=D.addAxisGridLine(n,0,O,_,N,e,M,p))&&(M.isZeroPlane=!0);if(s===1&&(!p||!r.catOccupied[m]))O=k&&A?i:c[w](m,v),(M=D.addAxisGridLine(n,m,O,.1,void 0,B,1,p))&&(M.isMinLabel=!0);T<=0&&(T=.1,x=B);for(m=Number(g(E+b,10));m<y;m=Number(g(m+b,10)),S+=1){C&&E<0&&m>0&&!h&&(D.addAxisAltGrid(n,0),S+=1);if(m!==0&&(!p||!r.catOccupied[m]))O=o===1&&S%a===0?c[w](m,v):i,D.addAxisGridLine(n,m,O,T,N,x,2,p);E=m;h||D.addAxisAltGrid(n,m)}h||D.addAxisAltGrid(n,y);if(s===1&&S%a===0&&(!p||!r.catOccupied[y]))O=L&&A?i:c[w](y,v),(M=D.addAxisGridLine(n,y,O,.1,N,B,2,p))&&(M.isMaxLabel=!0);if(this.realtimeEnabled)n.labels._enabled=n.labels.enabled,n._gridLineWidth=n.gridLineWidth,n._alternateGridColor=n.alternateGridColor;n.labels.enabled=!1;n.gridLineWidth=0;n.alternateGridColor=B;n.plotLines.sort(Nt)},xAxisMinMaxSetter:function(e,t,n){var r=e[d],i=r.x,o=t.chart,u=i.min=f(i.min,0),a=i.max=f(i.max,i.catCount-1),l,c=0,h=0,p=e.chart.defaultSeriesType,v=/^(column|column3d|bar|bar3d|floatedcolumn|sparkwinloss|boxandwhisker2d|dragcolumn)$/.test(p),m=/^(line|area|spline|areaspline)$/.test(p),p=/^(scatter|bubble|candlestick|dragnode)$/.test(p),g=e.xAxis,y=g.scroll,b=l=Math.min(f(o.canvaspadding,0),n/2-10);if(i.adjustMinMax){var a=u=!f(o.setadaptivexmin,1),w=f(this.numVDivLines,o.numvdivlines,4),E=o.adjustvdiv!==J,S=f(o.showxaxisvalues,o.showxaxisvalue,1),x=f(o.showvlimits,S),S=f(o.showvdivlinevalue,o.showvdivlinevalues,S);this.axisMinMaxSetter(g,i,o.xaxismaxvalue,o.xaxisminvalue,u,a,w,E);u=g.min;a=g.max;i.requiredAutoNumericLabels&&(w=f(parseInt(o.xaxisvaluesstep,10),1),this.configurePlotLines(o,e,g,i,x,S,w<1?1:w,r.numberFormatter,!1,!0));g.plotLines.sort(Nt)}g.labels.enabled=!1;g.gridLineWidth=0;g.alternateGridColor=B;if((v||r.isScroll)&&!r.hasNoColumn)h=c=.5;r.is3d&&(b+=f(e.chart.xDepth,0));e=(n-(b+l))/(a-u+(c+h));g.min=u-(c+b/e);g.max=a+(h+l/e);if(y&&y.enabled)c=y.vxLength,h=g.max-g.min,y.viewPortMin=g.min,y.viewPortMax=g.max,y.scrollRatio=c/h,y.flatScrollBars=r.flatScrollBars,y.scrollBar3DLighting=r.scrollBar3DLighting,g.max=g.min+c;m&&g.min===g.max&&(g.min-=.5,g.max+=.5);p&&t.vtrendlines&&s(t.vtrendlines,g,r,!1,!0,!0)},postSeriesAddition:function(e){var t=e[d],n=t.isBar,r=t.is3d,i=e.chart.rotateValues&&!n?270:0,s=t[0],o=s&&s.stacking100Percent,a=t.showPercentValues||t.showPercentInToolTip;if(this.isStacked&&(t.showStackTotal||o||a)){var l=t.plotSpacePercent,c=e.chart.defaultSeriesType,h,p,m=1-l,m=1-2*l,l=t.numberFormatter,g,y,b,w,E,S,x,T,N,C,k,L=e.series,A,O,M=v({},e.plotOptions.series.dataLabels.style),_=parseFloat(M.fontSize),D=!s.stacking100Percent;M.color=e.plotOptions.series.dataLabels.color;p=s.stack;for(h in p){s=p[h].length;g=m/s;b=-(m-g)/2;if(o||a){C=[];T=0;for(w=L.length;T<w;T+=1)E=L[T],!E.yAxis&&u(E.type,c)===h&&C.push(E)}for(y=0;y<s;y+=1,b+=g){x=p[h][y];if(o||a){k=[];T=0;for(w=C.length;T<w;T+=1)E=C[T],f(E.columnPosition,0)===y&&k.push(E.data)}if(x&&x.length){S=0;for(E=x.length;S<E;S+=1)if(T=x[S])if(N=(T.n||0)+(T.p||0),t.showStackTotal&&(w=S,w+=b,T=N<0?T.n:T.p,e.xAxis.plotLines.push({value:w,width:0,isVline:D,isTrend:!D,zIndex:4,_isStackSum:1,_catPosition:S,_stackIndex:y,label:{align:j,textAlign:!r&&i===270?N<0?q:R:n?N<0?q:R:j,offsetScale:D?T:void 0,offsetScaleIndex:0,rotation:i,style:M,verticalAlign:F,y:n?0:N<0?i===270?4:_:-4,x:0,text:l.yAxis(N)}})),o||a){T=0;for(w=k.length;T<w;T+=1)if(A=k[T][S])if(O=N&&(A.y||0)/N*100,l.percentValue(O),A.y||A.y===0){if(o&&(A.y=O,A.previousY||A.previousY===0))A.previousY=A.previousY/N*100;if(A.showPercentValues)A.displayValue=l.percentValue(O);if(A.showPercentInToolTip)A.toolText=A.toolText+parseInt(O*100,10)/100+"%"}}}}}}},styleMapForFont:mt,styleApplicationDefinition_font:function(e,t,n){var r,i,s=!1,o,u,a=this.styleMapForFont;switch(t){case"caption":r=e.title;break;case"datalabels":r=e.xAxis.labels;break;case"datavalues":r=e.plotOptions.series.dataLabels;s=!0;break;case"tldatavalues":r={style:e.plotOptions.series.dataLabels.tlLabelStyle};break;case"trdatavalues":r={style:e.plotOptions.series.dataLabels.trLabelStyle};break;case"bldatavalues":r={style:e.plotOptions.series.dataLabels.blLabelStyle};break;case"brdatavalues":r={style:e.plotOptions.series.dataLabels.brLabelStyle};break;case"subcaption":r=e.subtitle;break;case"tooltip":r=e.tooltip;break;case"trendvalues":r={style:e[d].trendStyle};break;case"xaxisname":r=e.xAxis.title;break;case"yaxisname":case"pyaxisname":case"axistitle":r=[];t=0;for(o=e.yAxis.length;t<o;t+=1)r.push(e.yAxis[t].title);break;case"yaxisvalues":r=[];t=0;for(o=e.yAxis.length;t<o;t+=1)r.push(e.yAxis[t].labels);break;case"vlinelabels":r={style:e[d].divlineStyle};break;case"legend":r={style:e.legend.itemStyle};break;default:(r=e.orphanStyles[t])||(e.orphanStyles[t]=r={text:"",style:{}})}if(typeof r==="object")if(r instanceof Array){t=0;for(o=r.length;t<o;t+=1){u=r[t];for(i in n)if(e=i.toLowerCase(),typeof a[e]==="function")a[e](n[i],u,s);O(u.style)}}else{for(i in n)if(e=i.toLowerCase(),typeof a[e]==="function")a[e](n[i],r,s);O(r.style)}},parseStyles:function(e){var t,n,r,i={},s,o=this.dataObj;if(o.styles&&o.styles.definition instanceof Array&&o.styles.application instanceof Array){for(t=0;t<o.styles.definition.length;t+=1)n=o.styles.definition[t],n.type&&n.name&&this["styleApplicationDefinition_"+n.type.toLowerCase()]&&(i[n.name.toLowerCase()]=n);for(t=0;t<o.styles.application.length;t+=1){n=o.styles.application[t].styles&&o.styles.application[t].styles.split(V)||[];for(s=0;s<n.length;s+=1)if(r=n[s].toLowerCase(),i[r]&&o.styles.application[t].toobject)this["styleApplicationDefinition_"+i[r].type.toLowerCase()](e,o.styles.application[t].toobject.toLowerCase(),i[r])}}},dispose:function(){var e;this.disposing=!0;this.renderer&&this.renderer.dispose();this.numberFormatter&&this.numberFormatter.dispose();this.smartLabel&&this.smartLabel.dispose();for(e in this)delete this[e];delete this.disposing;this.disposed=!0}});U("stub",{standaloneInit:!0},U.base);U("barbase",{spaceManager:function(){return this.placeHorizontalXYSpaceManager.apply(this,arguments)}},U.base);U("singleseries",{series:function(e,t,n){var r=e.data||e.dataset&&e.dataset[0]&&e.dataset[0].data;if(r&&r.length>0&&r instanceof Array)t.legend.enabled=!1,n=this.point(n,{data:[],colorByPoint:!0},r,e.chart,t),n instanceof Array?t.series=t.series.concat(n):t.series.push(n),this.configureAxis(t,e),e.trendlines&&s(e.trendlines,t.yAxis,t[d],!1,this.isBar)},defaultSeriesType:i,configureAxis:function(e,t){var n=e[d],r=e.xAxis,i=t.chart,s=e.chart.is3D,o,a,l,c,h,v,m,g,y,b,w,E,T=0,N,C,k=this.numberFormatter,L=f(i.syncaxislimits,0),A;r.title.text=p(i.xaxisname);A=f(parseInt(i.yaxisvaluesstep,10),parseInt(i.yaxisvaluestep,10),1);A=A<1?1:A;o=e.yAxis[0];a=n[0];if(n.isDual)if(l=k.getCleanValue(i.pyaxismaxvalue),c=k.getCleanValue(i.pyaxisminvalue),o.title.text=p(i.pyaxisname),L&&!a.stacking100Percent){E=n[1];w=f(E.max);E=f(E.min);if(w!==void 0&&E!==void 0)a.min=S(a.min,E),a.max=x(a.max,w);w=k.getCleanValue(i.syaxismaxvalue);E=k.getCleanValue(i.syaxisminvalue);E!==null&&(c=c!==null?S(c,E):E);w!==null&&(l=l!==null?x(l,w):w)}else L=0;else l=k.getCleanValue(i.yaxismaxvalue),c=k.getCleanValue(i.yaxisminvalue),o.title.text=p(i.yaxisname);m=f(this.isStacked?0:this.setAdaptiveYMin,i.setadaptiveymin,this.defSetAdaptiveYMin,0);v=h=!m;g=f(n.numdivlines,i.numdivlines,this.numdivlines,4);y=i.adjustdiv!==J;b=f(this.showYAxisValues,i.showyaxisvalues,i.showyaxisvalue,1);w=f(i.showlimits,b);E=f(i.showdivlinevalue,i.showdivlinevalues,b);if(!s)T=f(i.showaxislines,i.drawAxisLines,0),o.showLine=f(i.showyaxisline,T),r.showLine=f(i.showxaxisline,T),N=H(u(i.axislinecolor,"#000000")),r.lineColor=H(u(i.xaxislinecolor,N)),o.lineColor=H(u(i.yaxislinecolor,N)),C=f(i.axislinethickness,1),r.lineThickness=f(i.xaxislinethickness,C),o.lineThickness=f(i.yaxislinethickness,C);this.axisMinMaxSetter(o,a,l,c,h,v,g,y);this.configurePlotLines(i,e,o,a,w,E,A,n.numberFormatter,!1);if(o.reversed&&o.min>=0)e.plotOptions.series.threshold=o.max;if(n.isDual){o=e.yAxis[1];a=n[1];w=f(i.showsecondarylimits,w);E=f(i.showdivlinesecondaryvalue,b);L?(r=e.yAxis[0],o.min=r.min,o.max=r.max,o.tickInterval=r.tickInterval,delete a.max,delete a.min):(l=k.getCleanValue(i.syaxismaxvalue),c=k.getCleanValue(i.syaxisminvalue),m=f(i.setadaptivesymin,m),v=h=!m,this.axisMinMaxSetter(o,a,l,c,h,v,g,y));if(!s)o.showLine=f(i.showsyaxisline,T),o.lineColor=H(u(i.syaxislinethickness,N)),o.lineThickness=f(i.syaxislinethickness,C);this.configurePlotLines(i,e,o,a,w,E,A,n.numberFormatter,!0);o.title.text=p(i.syaxisname)}},pointValueWatcher:function(e,t,n,r,i,s,o){if(t!==null){var e=e[d],a,n=f(n,0);e[n]||(e[n]={});n=e[n];if(r)this.distributedColumns&&(e.marimekkoTotal+=t),r=n.stack,i=f(i,0),s=f(s,0),o=u(o,$),r[o]||(r[o]=[]),o=r[o],o[s]||(o[s]=[]),s=o[s],s[i]||(s[i]={}),i=s[i],t>=0?i.p?(a=i.p,t=i.p+=t):i.p=t:i.n?(a=i.n,t=i.n+=t):i.n=t;n.max=n.max>t?n.max:t;n.min=n.min<t?n.min:t;return a}},getPointStub:function(e,t,n,r){var r=r[d],t=t===null?t:r.numberFormatter.dataLabels(t),s=a(p(e.tooltext)),o=a(p(e.displayvalue)),n=r.showTooltip?s!==void 0?s:t===null?!1:n!==i?n+r.tooltipSepChar+t:t:i,r=f(e.showvalue,r.showValues)?o!==void 0?o:t:i,e=u(e.link);return{displayValue:r,toolText:n,link:e}}},U.base);U("multiseries",{series:function(e,t,n){var r,i,o=t[d],u;t.legend.enabled=Boolean(f(e.chart.showlegend,1));if(e.dataset&&e.dataset.length>0){this.categoryAdder(e,t);r=0;for(i=e.dataset.length;r<i;r+=1){u={visible:!!f(e.dataset[r].visible,1),data:[]};if(!this.isStacked)u.numColumns=i;u=this.point(n,u,e.dataset[r],e.chart,t,o.oriCatTmp.length,r);u instanceof Array?t.series=t.series.concat(u):t.series.push(u)}this.configureAxis(t,e);e.trendlines&&!this.isLog&&s(e.trendlines,t.yAxis,o,!1,this.isBar,void 0,this.inversed)}},categoryAdder:function(e,t){var n,r=0,s=t[d],o=s.axisGridManager,u=e.chart,a=t.xAxis,l,s=s.x,h;if(e.categories&&e.categories[0]&&e.categories[0].category){if(e.categories[0].font)t.xAxis.labels.style.fontFamily=e.categories[0].font;if((n=f(e.categories[0].fontsize))!==void 0)n<1&&(n=1),t.xAxis.labels.style.fontSize=n+G,O(t.xAxis.labels.style);if(e.categories[0].fontcolor)t.xAxis.labels.style.color=e.categories[0].fontcolor.split(V)[0].replace(/^\#?/,"#");var v=t[d].oriCatTmp,m=e.categories[0].category;for(n=0;n<m.length;n+=1)m[n].vline?o.addVline(a,m[n],r,t):(h=f(m[n].showlabel,u.showlabels,1),l=p(c(e.categories[0].category[n].label,e.categories[0].category[n].name)),o.addXaxisCat(a,r,r,h?l:i),v[r]=c(p(e.categories[0].category[n].tooltext),l),r+=1)}s.catCount=r},getPointStub:function(e,t,n,r,s,o,l){var h,r=r[d],v,m,t=t===null?t:this.numberFormatter.dataLabels(t,l),g,y=a(p(e.tooltext)),l=r.tooltipSepChar;r.showTooltip?y!==void 0?s=y:t===null?s=!1:(r.seriesNameInToolTip&&(g=c(s&&s.seriesname)),s=g?g+l:i,s+=n?n+l:i,r.showPercentInToolTip?m=!0:s+=t):s=!1;f(e.showvalue,o)?a(e.displayvalue)!==void 0?h=p(e.displayvalue):r.showPercentValues?v=!0:h=t:h=i;e=u(e.link);return{displayValue:h,toolText:s,link:e,showPercentValues:v,showPercentInToolTip:m}}},U.singleseries);var At=function(e,t){return e-t};U("xybase",{hideRLine:function(){var e=this.chart.series[this.index+1];e&&e.hide&&e.hide()},showRLine:function(){var e=this.chart.series[this.index+1];e&&e.show&&e.show()},getRegressionLineSeries:function(e,t,n){var r,i,s,o;o=e.sumXY;var u=e.sumX,a=e.sumY;i=e.xValues;s=e.sumXsqure;r=e.yValues;e=e.sumYsqure;t?(i.sort(At),r=i[0],i=i[i.length-1],o=(n*o-u*a)/(n*s-Math.pow(u,2)),s=!isNaN(o)?o*(r-u/n)+a/n:a/n,n=!isNaN(o)?o*(i-u/n)+a/n:a/n,n=[{x:r,y:s},{x:i,y:n}]):(r.sort(At),s=r[0],r=r[r.length-1],o=(n*o-u*a)/(n*e-Math.pow(a,2)),i=!isNaN(o)?o*(s-a/n)+u/n:u/n,n=!isNaN(o)?o*(r-a/n)+u/n:u/n,n=[{x:i,y:s},{x:n,y:r}]);return n},pointValueWatcher:function(e,t,n,r){var i=e[d];if(t!==null)e=i[0],e.max=e.max>t?e.max:t,e.min=e.min<t?e.min:t;if(n!==null)e=i.x,e.max=e.max>n?e.max:n,e.min=e.min<n?e.min:n;r&&(n=n||0,t=t||0,r.sumX+=n,r.sumY+=t,r.sumXY+=n*t,r.sumXsqure+=Math.pow(n,2),r.xValues.push(n),r.sumYsqure+=Math.pow(t,2),r.yValues.push(t))}},U.multiseries);U("scrollbase",{postSeriesAddition:function(){var e=this.hcJSON,t=e.xAxis.scroll,n=e[d],r=n.width,i=n.x.catCount,s=this.dataObj.chart;n.isScroll=!0;e.chart.hasScroll=!0;if(this.isStacked)o=1;else{var o=0,a=0,c,h=e.series,p,v=e.chart.defaultSeriesType;for(c=h.length;a<c;a++)p=u(h[a].type,v),p==="column"&&(o+=1);o<1&&(o=1)}i*=o;r=f(s.numvisibleplot,Math.floor(r/this.avgScrollPointWidth));if(t&&r>=2&&r<i)t.enabled=!0,t.vxLength=r/o,t.startPercent=s.scrolltoend===K?1:0,t.padding=f(s.scrollpadding,e.chart.plotBorderWidth/2),t.height=f(s.scrollheight,16),t.buttonWidth=f(s.scrollbtnwidth,s.scrollheight,16),t.buttonPadding=f(s.scrollbtnpadding,0),t.color=A(u(s.scrollcolor,l.altHGridColor[e.chart.paletteIndex])),n.marginBottomExtraSpace+=t.padding+t.height;if(pt||f(s.enabletouchscroll,0))e.chart.zoomType="x",e.chart.nativeZoom=!1,e.chart.selectionMarkerFill="rgba(255,255,255,0)",(e.callbacks||(e.callbacks=[])).push(function(e){E(e,"selectionstart selectiondrag",U.scrollbase.performTouchScroll,{})})},performTouchScroll:function(e){var t=this.xAxis[0].scroller,n=t.config;e.isOutsidePlot!==!0&&dt(t.elements.anchor.element,e.type==="selectionstart"?"dragstart":"drag",{pageX:-(n.trackLength/(n.width/n.scrollRatio)*(e.chartX||1)),pageY:-e.chartY})}},U.multiseries);U("logbase",{isLog:!0,isValueAbs:!0,configureAxis:function(e,t){var n=e[d],r=n.axisGridManager,o=this.numberFormatter,a=e.series,c=e.xAxis,h=e.yAxis[0],m=n[0],g=t.chart,y=!f(g.showlimits,g.showyaxisvalues,1),b=!f(g.showdivlinevalues,g.showyaxisvalues,1),w=f(g.base,g.logbase,10),E=f(g.yaxismaxvalue),S=f(g.yaxisminvalue),x=f(g.showminordivlinevalues)===1,T=u(g.minordivlinecolor,h.gridLineColor,l.divLineColor[e.chart.paletteIndex]),N=f(g.minordivlinealpha,g.divlinealpha,l.divLineAlpha[e.chart.paletteIndex]),C=[h,void 0,void 0,f(g.divlinethickness,2),h.gridLineDashStyle,h.gridLineColor,2],T=[h,void 0,void 0,f(g.minordivlinethickness,1),h.gridLineDashStyle,H(u(g.minordivlinecolor,T),f(g.minordivlinealpha,N/2)),2],N=x||N&&T[3],k;w<=0&&(w=10);E<=0&&(E=void 0);S<=0&&(S=void 0);E=this.getLogAxisLimits(m.max||w,m.min||1,E,S,w,N?g.numminordivlines:0);c.title.text=p(g.xaxisname);v(h,{title:{text:p(g.yaxisname)},labels:{enabled:!1},gridLineWidth:0,alternateGridColor:B,reversed:g.invertyaxis==="1",max:ht(E.Max,w),min:ht(E.Min,w)});for(c=a.length;c--;)if(g=a[c]){g.threshold=h.min;for(k=(g=g.data)&&g.length||0;k--;)S=g[k],S.y=ht(S.y,w)}delete m.max;delete m.min;m.isLog=!0;if(h.reversed&&h.min>=0)e.plotOptions.series.threshold=h.max;t.trendlines&&s(t.trendlines,[{max:E.Max,min:E.Min,plotLines:h.plotLines,plotBands:h.plotBands}],n);for(c=h.plotLines.length;c--;)S=h.plotLines[c],S.value&&(S.value=ht(S.value,w)),S.from&&(S.from=ht(S.from,w)),S.to&&(S.to=ht(S.to,w));for(c=h.plotBands.length;c--;)S=h.plotBands[c],S.from&&(S.from=ht(S.from,w)),S.to&&(S.to=ht(S.to,w));for(c=E.divArr.length;c--;){S=E.divArr[c];if(S.ismajor)C[1]=ht(S.value,w),C[2]=o.yAxis(S.value),r.addAxisGridLine.apply(r,C);else if(N||S.isextreme)T[1]=ht(S.value,w),T[2]=x||S.isextreme?o.yAxis(S.value):i,r.addAxisGridLine.apply(r,T);g=h.plotLines[h.plotLines.length-1];if(S.isextreme){if(g.width=.1,y)g.label.text=i}else if(b&&g.label)g.label.text=i}},getLogAxisLimits:function(e,t,n,r,i,s){var o=function(e){return e==null||e==void 0||e==""||isNaN(e)?!1:!0},u=0,a=[],f,l,c,h,p,d;o(n)&&Number(n)>=e?e=Number(n):(n=i>1?T(C(e)/C(i)):N(C(e)/C(i)),e=k(i,n),l=n);l||(l=i>1?T(C(e)/C(i)):N(C(e)/C(i)));o(r)&&Number(r)<=t?t=Number(r):(n=i>1?N(C(t)/C(i)):T(C(t)/C(i)),t=k(i,n),f=n);f||(f=i>1?N(C(t)/C(i)):T(C(t)/C(i)));r=Number(String(C(i)/C(10)));s=Number(s)||(N(r)==r?8:4);i>1?(c=l,h=f):i>0&&i<1&&(c=f,h=l);r=l;for(f=c;f>=h;--f)if(c=k(i,r),t<=c&&e>=c&&(a[u++]={value:c,ismajor:!0}),f!=h){l=i>1?-1:1;c=k(i,r)-k(i,r+l);n=c/(s+1);for(o=1;o<=s;++o)c=k(i,r+l)+n*o,t<=c&&e>=c&&(a[u++]={value:c,ismajor:!1});i>1?r--:r++}for(var v in a)for(var m in a[v])if(m=="value"){if(!p)p=a[v][m]==t&&(a[v].isextreme=!0);if(!d)d=a[v][m]==e&&(a[v].isextreme=!0)}p||(a[u++]={value:t,ismajor:!0,isextreme:!0});d||(a[u]={value:e,ismajor:!0,isextreme:!0});return{Max:e,Min:t,divArr:a}},pointValueWatcher:function(e,t,n){e=e[d];n=f(n,0);if(t>0)e[n]||(e[n]={}),n=e[n],n.max=n.max>t?n.max:t,n.min=n.min<t?n.min:t}},U.mslinebase);n=U.singleseries;W=U.multiseries;U("column2dbase",{point:function(e,t,n,r,s){var e=n.length,o=s[d],a=o.axisGridManager,g=s.xAxis,y=s.chart.paletteIndex,o=o.x,b=s.colors,w=s.colors.length,E=/3d$/.test(s.chart.defaultSeriesType),S=this.isBar,x=u(r.showplotborder,E?J:K)===K?E?1:f(r.plotborderthickness,1):0,T=s.chart.useRoundEdges,N=f(r.plotborderalpha,r.plotfillalpha,100),C=u(r.plotbordercolor,l.plotBorderColor[y]).split(V)[0],y=V+(f(r.useplotgradientcolor,1)?h(r.plotgradientcolor,l.plotGradientColor[y]):i),k=0,A=Boolean(f(r.use3dlighting,1)),O=s[d].numberFormatter,M,_=f(r.plotborderdashed,0),D=f(r.plotborderdashlen,5),P=f(r.plotborderdashgap,4),H,B,j,F,I,q,R,U,z;for(j=B=0;B<e;B+=1)R=n[B],R.vline?a.addVline(g,R,k,s):(H=O.getCleanValue(R.value),z=f(R.showlabel,r.showlabels,1),F=p(c(R.label,R.name)),a.addXaxisCat(g,k,k,z?F:i),k+=1,M=u(R.color,b[j%w])+y.replace(/,+?$/,""),I=u(R.alpha,r.plotfillalpha,Q),q=u(R.ratio,r.plotfillratio),U=u(360-r.plotfillangle,S?180:90),H<0&&(U=S?180-U:360-U),z={opacity:I/100},I=L(M,I,q,U,T,C,u(R.alpha,N)+i,S,E),M=f(R.dashed,_)?m(u(R.dashlen,D),u(R.dashgap,P),x):void 0,t.data.push(v(this.getPointStub(R,H,F,s),{y:H,shadow:z,color:I[0],borderColor:I[1],borderWidth:x,use3DLighting:A,dashStyle:M,tooltipConstraint:this.tooltipConstraint})),this.pointValueWatcher(s,H),j+=1);o.catCount=k;return t},defaultSeriesType:"column"},n);U("linebase",{defaultSeriesType:"line",hasVDivLine:!0,defaultPlotShadow:1,point:function(e,t,n,r,s){var o,a,h,g,y,b,w,E,S,x,T,N,C,k,L,O,M,_,D,P,H,B,j,F,I,e=s.chart,q=n.length,R=s.xAxis;o=s[d];var U=o.axisGridManager,z=0,W=o.x,V=s.chart.paletteIndex,$=s[d].numberFormatter;L=A(u(r.linecolor,r.palettecolors,l.plotFillColor[V]));O=u(r.linealpha,Q);N=f(r.linethickness,this.lineThickness,4);C=Boolean(f(r.linedashed,0));E=f(r.linedashlen,5);S=f(r.linedashgap,4);t.color={FCcolor:{color:L,alpha:O}};t.lineWidth=N;t.step=u(this.stepLine,t.step);t.drawVerticalJoins=Boolean(f(t.drawVerticalJoins,r.drawverticaljoins,1));t.useForwardSteps=Boolean(f(t.useForwardSteps,r.useforwardsteps,1));k=f(r.drawanchors,r.showanchors);for(y=a=0;a<q;a+=1)g=n[a],g.vline?U.addVline(R,g,z,s):(o=$.getCleanValue(g.value),b=f(g.showlabel,r.showlabels,1),h=p(c(g.label,g.name)),U.addXaxisCat(R,z,z,b?h:i),z+=1,x=A(u(g.color,L)),T=u(g.alpha,O),b=f(g.dashed,C)?m(E,S,N):void 0,w={opacity:T/100},_=f(g.anchorsides,r.anchorsides,0),I=f(g.anchorstartangle,r.anchorstartangle,90),H=f(g.anchorradius,r.anchorradius,this.anchorRadius,3),P=A(u(g.anchorbordercolor,r.anchorbordercolor,L)),D=f(g.anchorborderthickness,r.anchorborderthickness,this.anchorBorderThickness,1),B=A(u(g.anchorbgcolor,r.anchorbgcolor,l.anchorBgColor[V])),j=u(g.anchoralpha,r.anchoralpha,Q),F=u(g.anchorbgalpha,r.anchorbgalpha,j),M=k===void 0?T!=0:!!k,t.data.push(v(this.getPointStub(g,o,h,s),{y:o,color:{FCcolor:{color:x,alpha:T}},shadow:w,dashStyle:b,valuePosition:u(g.valueposition,e.valuePosition),marker:{enabled:!!M,fillColor:{FCcolor:{color:B,alpha:F*j/100+i}},lineColor:{FCcolor:{color:P,alpha:j}},lineWidth:D,radius:H,startAngle:I,symbol:X(_)},tooltipConstraint:this.tooltipConstraint})),this.pointValueWatcher(s,o),y+=1);W.catCount=z;return t},defaultZeroPlaneHighlighted:!1},n);U("area2dbase",{defaultSeriesType:"area",hasVDivLine:!0,point:function(e,t,n,r,s){var e=s.chart,o=n.length,g=s.xAxis,y=s[d],b=s.chart.paletteIndex,w=y.axisGridManager,y=y.x,E=s[d].numberFormatter,S=0,x,T,N,C,k,L,O,M,D,P,H,B,j,F,I,q,R,U,z,W,$,K,G;k=u(r.plotfillcolor,r.areabgcolor,a(r.palettecolors)?s.colors[0]:l.plotFillColor[b]).split(V)[0];K=V+(f(r.useplotgradientcolor,1)?h(r.plotgradientcolor,l.plotGradientColor[b]):i);L=u(r.plotfillalpha,r.areaalpha,this.isStacked?Q:"90");O=f(r.plotfillangle,270);M=u(r.plotbordercolor,r.areabordercolor,a(r.palettecolors)?s.colors[0]:l.plotBorderColor[b]).split(V)[0];D=r.showplotborder==J?J:u(r.plotborderalpha,r.plotfillalpha,r.areaalpha,Q);x=f(r.plotborderangle,270);T=Boolean(f(r.plotborderdashed,0));N=f(r.plotborderdashlen,5);j=f(r.plotborderdashgap,4);R=f(r.plotborderthickness,r.areaborderthickness,1);G=t.fillColor={FCcolor:{color:k+K.replace(/,+?$/,""),alpha:L,ratio:tt,angle:O}};t.lineWidth=R;t.dashStyle=T?m(N,j,R):void 0;t.lineColor={FCcolor:{color:M,alpha:D,ratio:Q,angle:x}};t.step=u(this.stepLine,t.step);t.drawVerticalJoins=Boolean(f(t.drawVerticalJoins,r.drawverticaljoins,1));t.useForwardSteps=Boolean(f(t.useForwardSteps,r.useforwardsteps,1));R=Boolean(f(r.drawanchors,r.showanchors,1));for(z=T=0;T<o;T+=1)j=n[T],j.vline?w.addVline(g,j,S,s):(x=E.getCleanValue(j.value),C=f(j.showlabel,r.showlabels,1),N=p(c(j.label,j.name)),w.addXaxisCat(g,S,S,C?N:i),S+=1,C=f(j.anchorsides,r.anchorsides,0),B=f(j.anchorstartangle,r.anchorstartangle,90),P=f(j.anchorradius,r.anchorradius,3),H=A(u(j.anchorbordercolor,r.anchorbordercolor,M)),U=f(j.anchorborderthickness,r.anchorborderthickness,1),F=A(u(j.anchorbgcolor,r.anchorbgcolor,l.anchorBgColor[b])),I=u(j.anchoralpha,r.anchoralpha,this.anchorAlpha,J),q=u(j.anchorbgalpha,r.anchorbgalpha,I),W=a(j.color),$=f(j.alpha),W=W!==void 0||$!==void 0?{FCcolor:{color:W?A(W)+K:k,alpha:void 0===$?_($)+i:L,ratio:tt,angle:O}}:G,$={opacity:Math.max($,D)/100,inverted:!0},t.data.push(v(this.getPointStub(j,x,N,s),{y:x,shadow:$,color:W,valuePosition:u(j.valueposition,e.valuePosition),marker:{enabled:R,fillColor:{FCcolor:{color:F,alpha:q*I/100+i}},lineColor:{FCcolor:{color:H,alpha:I}},lineWidth:U,radius:P,symbol:X(C),startAngle:B},tooltipConstraint:this.tooltipConstraint,previousY:this.pointValueWatcher(s,x)})),z+=1);y.catCount=S;return t}},n);var Ot=t.getDataParser={column:function(e,t,n){var r=e[d],i=t.borderWidth;return function(s,o,a){var l=_(u(s.alpha,t.alpha)).toString(),c={opacity:l/100},h=t.isBar,p=t.fillAangle,l=L(u(s.color,t.color)+t.plotgradientcolor,l,u(s.ratio,t.ratio),a<0?h?180-p:360-p:p,t.isRoundEdges,t.plotBorderColor,Math.min(l,_(t.plotBorderAlpha)).toString(),h,t.is3d),h=f(s.dashed,t.dashed)?m(u(s.dashlen,t.dashLen),u(s.dashgap,t.dashGap),i):void 0,s=n.getPointStub(s,a,r.oriCatTmp[o],e,t,t.showValues,t.yAxis);s.y=a;s.shadow=c;s.color=l[0];s.borderColor=l[1];s.borderWidth=i;s.use3DLighting=t.use3DLighting;s.dashStyle=h;s.tooltipConstraint=n.tooltipConstraint;return s}},line:function(e,t,n){var r=e[d];return function(i,s,o){var a=u(i.alpha,t.lineAlpha),l={opacity:a/100},c=u(i.anchoralpha,t.anchorAlpha),s=n.getPointStub(i,o,r.oriCatTmp[s],e,t,t.showValues,t.yAxis);s.y=o;s.shadow=l;s.dashStyle=f(i.dashed,t.lineDashed)?m(t.lineDashLen,t.lineDashGap,t.lineThickness):void 0;s.color={FCcolor:{color:A(u(i.color,t.lineColor)),alpha:a}};s.valuePosition=u(i.valueposition,t.valuePosition);s.marker={enabled:t.drawAnchors===void 0?a!=0:!!t.drawAnchors,fillColor:{FCcolor:{color:A(u(i.anchorbgcolor,t.anchorBgColor)),alpha:(u(i.anchorbgalpha,t.anchorBgAlpha)*c/100).toString()}},lineColor:{FCcolor:{color:A(u(i.anchorbordercolor,t.anchorBorderColor)),alpha:c}},lineWidth:f(i.anchorborderthickness,t.anchorBorderThickness),radius:f(i.anchorradius,t.anchorRadius),symbol:X(f(i.anchorsides,t.anchorSides)),startAngle:u(i.anchorstartangle,t.anchorAngle)};return s}},area:function(e,t,n){var r=e[d];return function(i,s,o){var a=u(i.alpha,t.fillAlpha),l={opacity:Math.max(a,t.lineAlpha)/100,inverted:!0},c=u(i.anchoralpha,t.anchorAlpha),s=n.getPointStub(i,o,r.oriCatTmp[s],e,t,t.showValues,t.yAxis);s.y=o;s.shadow=l;s.color={FCcolor:{color:A(u(i.color,t.fillColor)),alpha:a}};s.valuePosition=u(i.valueposition,t.valuePosition);s.marker={enabled:t.drawAnchors,fillColor:{FCcolor:{color:A(u(i.anchorbgcolor,t.anchorBgColor)),alpha:(u(i.anchorbgalpha,t.anchorBgAlpha)*c/100).toString()}},lineColor:{FCcolor:{color:A(u(i.anchorbordercolor,t.anchorBorderColor)),alpha:c}},lineWidth:f(i.anchorborderthickness,t.anchorBorderThickness),radius:f(i.anchorradius,t.anchorRadius),symbol:X(f(i.anchorsides,t.anchorSides)),startAngle:u(i.anchorstartangle,t.anchorAngle)};s.events={click:t.getLink};return s}}};U("mscolumn2dbase",{point:function(e,t,n,r,s,o,c,p,v){var m;var e=!1,g=n.data||[],y=s[d],b=u(t.type,this.defaultSeriesType),w=u(t.isStacked,s.plotOptions[b]&&s.plotOptions[b].stacking),E=u(this.isValueAbs,y.isValueAbs,!1),S=f(t.yAxis,0),x=s[d].numberFormatter,T=s.chart.paletteIndex,N,C;C=s._FCconf.isBar;if(!w)t.columnPosition=f(v,p,c);t.name=a(n.seriesname);if(f(n.includeinlegend)===0||t.name===void 0)t.showInLegend=!1;t.color=u(n.color,s.colors[c%s.colors.length]).split(V)[0].replace(/^#?/g,"#");v=/3d$/.test(s.chart.defaultSeriesType);C=u(360-r.plotfillangle,C?180:90);N<0&&(C=360-C);m=t._dataParser=Ot.column(s,{seriesname:t.name,color:u(n.color,s.colors[c%s.colors.length]),alpha:u(n.alpha,r.plotfillalpha,Q),plotgradientcolor:V+(f(r.useplotgradientcolor,1)?h(r.plotgradientcolor,l.plotGradientColor[T]):i),ratio:u(n.ratio,r.plotfillratio),fillAangle:C,isRoundEdges:s.chart.useRoundEdges,plotBorderColor:u(r.plotbordercolor,v?nt:l.plotBorderColor[T]).split(V)[0],plotBorderAlpha:r.showplotborder==J||v&&r.showplotborder!=K?J:u(r.plotborderalpha,Q),isBar:this.isBar,is3d:v,dashed:f(n.dashed,r.plotborderdashed,0),dashLen:f(n.dashlen,r.plotborderdashlen,5),dashGap:f(n.dashgap,r.plotborderdashgap,4),borderWidth:u(r.plotborderthickness,K),showValues:f(n.showvalues,y.showValues),yAxis:S,use3DLighting:f(r.use3dlighting,1),_sourceDataset:n},this),n=m;for(r=0;r<o;r+=1)(c=g[r])?(N=x.getCleanValue(c.value,E),N===null?t.data.push({y:null}):(e=!0,c=n(c,r,N),t.data.push(c),c.previousY=this.pointValueWatcher(s,N,S,w,r,p,b))):t.data.push({y:null});if(!e&&!this.realtimeEnabled)t.showInLegend=!1;return t},defaultSeriesType:"column"},W);U("mslinebase",{hasVDivLine:!0,point:function(e,t,n,r,s,o,c){var h;var e=!1,p,v;p=s.chart;var m=n.data||[];v=s[d];var g=u(t.type,this.defaultSeriesType),y=u(t.isStacked,s.plotOptions[g]&&s.plotOptions[g].stacking),b=u(this.isValueAbs,v.isValueAbs,!1),w=f(t.yAxis,0),E=this.numberFormatter,c=A(u(n.color,r.linecolor,s.colors[c%s.colors.length])),S=u(n.alpha,r.linealpha,Q),x=f(r.showshadow,this.defaultPlotShadow,1),T=f(n.drawanchors,n.showanchors,r.drawanchors,r.showanchors),N=f(n.anchorsides,r.anchorsides,0),C=f(n.anchorstartangle,r.anchorstartangle,90),k=f(n.anchorradius,r.anchorradius,3),L=A(u(n.anchorbordercolor,r.anchorbordercolor,c)),O=f(n.anchorborderthickness,r.anchorborderthickness,1),M=A(u(n.anchorbgcolor,r.anchorbgcolor,l.anchorBgColor[s.chart.paletteIndex])),_=u(n.anchoralpha,r.anchoralpha,Q),D=u(n.anchorbgalpha,r.anchorbgalpha,_);t.name=a(n.seriesname);if(f(n.includeinlegend)===0||t.name===void 0||S==0&&T!==1)t.showInLegend=!1;t.marker={fillColor:{FCcolor:{color:M,alpha:D*_/100+i}},lineColor:{FCcolor:{color:L,alpha:_+i}},lineWidth:O,radius:k,symbol:X(N),startAngle:C};t.color={FCcolor:{color:c,alpha:S}};t.shadow=x?{opacity:x?S/100:0}:!1;t.step=u(this.stepLine,t.step);t.drawVerticalJoins=Boolean(f(t.drawVerticalJoins,r.drawverticaljoins,1));t.useForwardSteps=Boolean(f(t.useForwardSteps,r.useforwardsteps,1));t.lineWidth=f(n.linethickness,r.linethickness,2);h=t._dataParser=Ot.line(s,{seriesname:t.name,lineAlpha:S,anchorAlpha:_,showValues:f(n.showvalues,v.showValues),yAxis:w,lineDashed:Boolean(f(n.dashed,r.linedashed,0)),lineDashLen:f(n.linedashlen,r.linedashlen,5),lineDashGap:f(n.linedashgap,r.linedashgap,4),lineThickness:t.lineWidth,lineColor:c,valuePosition:u(n.valueposition,p.valuePosition),drawAnchors:T,anchorBgColor:M,anchorBgAlpha:D,anchorBorderColor:L,anchorBorderThickness:O,anchorRadius:k,anchorSides:N,anchorAngle:C,_sourceDataset:n},this),p=h;for(r=0;r<o;r+=1)(v=m[r])?(n=E.getCleanValue(v.value,b),n===null?t.data.push({y:null}):(e=!0,v=p(v,r,n),t.data.push(v),v.previousY=this.pointValueWatcher(s,n,w,y,r,0,g))):t.data.push({y:null});if(!e&&!this.realtimeEnabled)t.showInLegend=!1;return t},defaultSeriesType:"line",defaultPlotShadow:1,defaultZeroPlaneHighlighted:!1},W);U("msareabase",{hasVDivLine:!0,point:function(e,t,n,r,s,o,a){var c;var e=!1,p=s.chart,v=n.data||[],g=s[d],y=u(t.type,this.defaultSeriesType),b=u(t.isStacked,s.plotOptions[y]&&s.plotOptions[y].stacking),w=u(this.isValueAbs,g.isValueAbs,!1),E=s.chart.paletteIndex,S=f(t.yAxis,0),x=s[d].numberFormatter,T=u(n.color,r.plotfillcolor,s.colors[a%s.colors.length]).split(V)[0].replace(/^#?/g,"#").split(V)[0],N=u(n.alpha,r.plotfillalpha,r.areaalpha,this.areaAlpha,70),C=f(r.plotfillangle,270),a=u(n.plotbordercolor,r.plotbordercolor,r.areabordercolor,this.isRadar?s.colors[a%s.colors.length]:"666666").split(V)[0],k=u(n.showplotborder,r.showplotborder)==J?J:u(n.plotborderalpha,r.plotborderalpha,n.alpha,r.plotfillalpha,r.areaalpha,"95"),L=f(r.plotborderangle,270),O=f(n.anchorsides,r.anchorsides,0),M=f(n.anchorstartangle,r.anchorstartangle,90),_=f(n.anchorradius,r.anchorradius,3),D=A(u(n.anchorbordercolor,r.anchorbordercolor,T)),P=f(n.anchorborderthickness,r.anchorborderthickness,1),H=A(u(n.anchorbgcolor,r.anchorbgcolor,l.anchorBgColor[E])),B=f(n.anchoralpha,r.anchoralpha,this.anchorAlpha,0),j=f(n.anchorbgalpha,r.anchorbgalpha,B);this.isRadar||(T+=V+(f(r.useplotgradientcolor,1)?h(r.plotgradientcolor,l.plotGradientColor[E]):i),T=T.replace(/,+?$/,""));t.step=u(this.stepLine,t.step);t.drawVerticalJoins=Boolean(f(t.drawVerticalJoins,r.drawverticaljoins,1));t.useForwardSteps=Boolean(f(t.useForwardSteps,r.useforwardsteps,1));t.name=u(n.seriesname);if(f(n.includeinlegend)===0||t.name===void 0)t.showInLegend=!1;t.fillColor={FCcolor:{color:T,alpha:N,ratio:tt,angle:C}};t.color=T;t.shadow={opacity:f(r.showshadow,1)?k/100:0};t.lineColor={FCcolor:{color:a,alpha:k,ratio:Q,angle:L}};t.lineWidth=u(n.plotborderthickness,r.plotborderthickness,1);t.dashStyle=Boolean(f(n.dashed,r.plotborderdashed,0))?m(f(n.dashlen,r.plotborderdashlen,5),f(n.dashgap,r.plotborderdashgap,4),t.lineWidth):void 0;t.marker={fillColor:{FCcolor:{color:H,alpha:j*B/100+i}},lineColor:{FCcolor:{color:D,alpha:B+i}},lineWidth:P,radius:_,symbol:X(O),startAngle:M};c=t._dataParser=Ot.area(s,{seriesname:t.name,lineAlpha:k,anchorAlpha:B,showValues:f(n.showvalues,g.showValues),yAxis:S,fillColor:T,fillAlpha:N,valuePosition:u(n.valueposition,p.valuePosition),drawAnchors:Boolean(f(r.drawanchors,r.showanchors,1)),anchorBgColor:H,anchorBgAlpha:j,anchorBorderColor:D,anchorBorderThickness:P,anchorRadius:_,anchorSides:O,anchorAngle:M,getLink:this.linkClickFN,_sourceDataset:n},this),n=c;for(p=0;p<o;p+=1)(g=v[p])?(r=g?x.getCleanValue(g.value,w):null,r===null?t.data.push({y:null}):(e=!0,g=n(g,p,r),t.data.push(g),g.previousY=this.pointValueWatcher(s,r,S,b,p,0,y))):t.data.push({y:null});if(!e&&!this.realtimeEnabled)t.showInLegend=!1;return t},defaultSeriesType:"area",defaultPlotShadow:0},W);U("scatterbase",{showValues:0,defaultPlotShadow:0,rendererId:"cartesian",defaultSeriesType:"scatter",point:function(e,t,n,r,s,o,c){if(n.data){var h,p,v,g,y,b,w,E,S,x,T,N,C,k,L,O,M,D=!1,P;v=f(n.drawline,r.drawlines,0);g=f(n.drawprogressioncurve,0);var e=n.data,o=e.length,B=f(n.showvalues,s[d].showValues),j=this.numberFormatter,F=f(n.showregressionline,r.showregressionline,0);t.zIndex=1;t.name=a(n.seriesname);if(f(n.includeinlegend)===0||t.name===void 0)t.showInLegend=!1;if(v||g)p=A(u(n.color,s.colors[c%s.colors.length])),v=u(n.alpha,Q),g=f(n.linethickness,r.linethickness,2),y=Boolean(f(n.linedashed,n.dashed,r.linedashed,0)),b=f(n.linedashlen,r.linedashlen,5),w=f(n.linedashgap,r.linedashgap,4),t.color=H(u(n.linecolor,r.linecolor,p),f(n.linealpha,r.linealpha,v)),t.lineWidth=g,t.dashStyle=y?m(b,w,g):void 0;v=Boolean(f(n.drawanchors,n.showanchors,r.drawanchors,r.showanchors,1));g=f(n.anchorsides,r.anchorsides,c+3);y=f(n.anchorradius,r.anchorradius,3);c=A(u(n.anchorbordercolor,n.color,r.anchorbordercolor,p,s.colors[c%s.colors.length]));p=f(n.anchorborderthickness,r.anchorborderthickness,1);b=A(u(n.anchorbgcolor,r.anchorbgcolor,l.anchorBgColor[s.chart.paletteIndex]));w=u(n.anchoralpha,n.alpha,r.anchoralpha,Q);S=u(n.anchorbgalpha,n.alpha,r.anchorbgalpha,w);u(n.anchorstartangle,r.anchorstartangle,90);t.marker={fillColor:this.getPointColor(b,Q),lineColor:{FCcolor:{color:c,alpha:w+i}},lineWidth:p,radius:y,symbol:X(g)};if(F){t.events={hide:this.hideRLine,show:this.showRLine};var I={sumX:0,sumY:0,sumXY:0,sumXsqure:0,sumYsqure:0,xValues:[],yValues:[]},q=f(n.showyonx,r.showyonx,1),R=A(u(n.regressionlinecolor,r.regressionlinecolor,c)),U=f(n.regressionlinethickness,r.regressionlinethickness,p),r=_(f(n.regressionlinealpha,r.regressionlinealpha,w)),R=H(R,r)}for(h=0;h<o;h+=1)(E=e[h])?(r=j.getCleanValue(E.y),M=j.getCleanValue(E.x),r===null?t.data.push({y:null,x:M}):(D=!0,P=this.getPointStub(E,r,j.xAxis(M),s,n,B),x=f(E.anchorsides,g),T=f(E.anchorradius,y),N=A(u(E.anchorbordercolor,c)),C=f(E.anchorborderthickness,p),k=A(u(E.anchorbgcolor,b)),L=u(E.anchoralpha,E.alpha,w),O=u(E.anchorbgalpha,S),t.data.push({y:r,x:M,displayValue:P.displayValue,toolText:P.toolText,link:P.link,marker:{enabled:v,fillColor:{FCcolor:{color:k,alpha:O*L/100+i}},lineColor:{FCcolor:{color:N,alpha:L}},lineWidth:C,radius:T,symbol:X(x),startAngle:u(E.anchorstartangle,90)}}),this.pointValueWatcher(s,r,M,F&&I))):t.data.push({y:null});F&&(n=this.getRegressionLineSeries(I,q,o),this.pointValueWatcher(s,n[0].y,n[0].x),this.pointValueWatcher(s,n[1].y,n[1].x),s={type:"line",color:R,showInLegend:!1,lineWidth:U,enableMouseTracking:!1,marker:{enabled:!1},data:n,zIndex:0},t=[t,s])}if(!D)t.showInLegend=!1;return t},categoryAdder:function(e,t){var n,r=0,s,o=t[d].x,a,h=t.xAxis,v,g;g=e.chart;var y=parseInt(g.labelstep,10),b=f(g.showlabels,1),w=u(g.xaxislabelmode,"categories").toLowerCase(),E=t[d].numberFormatter;t._FCconf.isXYPlot=!0;y=y>1?y:1;o.catOccupied={};if(w!=="auto"&&e.categories&&e.categories[0]&&e.categories[0].category){g=e.categories[0];if(g.font)t.xAxis.labels.style.fontFamily=g.font;if((s=f(g.fontsize))!==void 0)s<1&&(s=1),t.xAxis.labels.style.fontSize=s+G,O(t.xAxis.labels.style);if(g.fontcolor)t.xAxis.labels.style.color=g.fontcolor.split(V)[0].replace(/^\#?/,"#");n=u(g.verticallinecolor,l.divLineColor[t.chart.paletteIndex]);s=f(g.verticallinethickness,1);a=f(g.verticallinealpha,l.divLineAlpha[t.chart.paletteIndex]);var S=f(g.verticallinedashed,0),x=f(g.verticallinedashlen,4),T=f(g.verticallinedashgap,2),N=H(n,a),C,k,L;for(n=0;n<g.category.length;n+=1)v=g.category[n],a=E.getCleanValue(v.x),a!==null&&!v.vline&&(o.catOccupied[a]=!0,L=f(v.showlabel,v.showname,b),C=f(v.showverticalline,v.showline,v.sl,0),k=f(v.linedashed,S),v=L===0||r%y!==0?i:p(c(v.label,v.name)),h.plotLines.push({isGrid:!0,isCat:!0,width:C?s:0,color:N,dashStyle:m(x,T,s,k),value:a,label:{text:v,style:h.labels.style,align:j,verticalAlign:I,textAlign:j,rotation:0,x:0,y:0}}),this.pointValueWatcher(t,null,a),r+=1);if(w==="mixed")o.requiredAutoNumericLabels=f(this.requiredAutoNumericLabels,1)}else o.requiredAutoNumericLabels=f(this.requiredAutoNumericLabels,1);o.adjustMinMax=!0},getPointColor:function(e,t){var n,r,e=A(e),t=_(t);n=P(e,70);r=D(e,50);return{FCcolor:{gradientUnits:"objectBoundingBox",cx:.4,cy:.4,r:"100%",color:n+V+r,alpha:t+V+t,ratio:tt,radialGradient:!0}}}},U.xybase);U("mscombibase",{series:function(e,t,n){var r,i,o,a,l=e.chart,h,p=[],v=[],m=[],g,y,b=t[d],w=this.isDual,E=0;t.legend.enabled=Boolean(f(e.chart.showlegend,1));if(e.dataset&&e.dataset.length>0){this.categoryAdder(e,t);a=b.oriCatTmp.length;r=0;for(i=e.dataset.length;r<i;r+=1)switch(o=e.dataset[r],g=w&&u(o.parentyaxis,"p").toLowerCase()==="s"?!0:!1,h={visible:!!f(o.visible,1),legendIndex:r,data:[]},g?(h.yAxis=1,y=c(o.renderas,this.secondarySeriesType)):y=c(o.renderas,this.defaultSeriesType),y=y.toLowerCase(),y){case"line":case"spline":h.type="line";p.push(U.mslinebase.point.call(this,n,h,o,l,t,a,r));break;case"area":case"splinearea":h.type="area";t.chart.series2D3Dshift=!0;m.push(U.msareabase.point.call(this,n,h,o,l,t,a,r));break;case"column":case"column3d":v.push(U.mscolumn2dbase.point.call(this,n,h,e.dataset[r],l,t,a,r,void 0,E));E+=1;break;default:g?(h.type="line",p.push(U.mslinebase.point.call(this,n,h,o,l,t,a,r))):(v.push(U.mscolumn2dbase.point.call(this,n,h,e.dataset[r],l,t,a,r,void 0,E)),E+=1)}l.areaovercolumns!=="0"?(t.chart.areaOverColumns=!0,t.series=t.series.concat(v,m,p)):(t.chart.areaOverColumns=!1,t.series=t.series.concat(m,v,p));if(v.length===0)b.hasNoColumn=!0;else if(!this.isStacked){n=0;for(r=v.length;n<r;n+=1)v[n].numColumns=r}this.configureAxis(t,e);e.trendlines&&s(e.trendlines,t.yAxis,t[d],w,this.isBar)}}},U.mscolumn2dbase)}]);FusionCharts(["private","modules.renderer.js-renderer",function(){var e=this,t=e.hcLib,n=t.Raphael,r=t.chartAPI,i=window,s=/msie/i.test(navigator.userAgent)&&!i.opera,o=document,u=n.type==="VML",a=t.BLANKSTRING,f="crisp",l="rgba(192,192,192,"+(s?.002:1e-6)+")",c=Math.round,h=t.stubFN,p={pageX:0,pageY:0},d=parseFloat,v=parseInt,m=t.extend2,g=t.addEvent,y=t.removeEvent,b=t.pluck,w=t.pluckNumber,E=t.graphics.HEXtoRGB,S=t.setImageDisplayMode,x=t.falseFN,T=t.FC_CONFIG_STRING,N=/\s\bx\b=['"][^'"]+?['"]/ig,C=/\s\by\b=['"][^'"]+?['"]/ig,k=t.isArray,L=t.each=function(e,t,n,r){var i;n||(n=e);r||(r={});if(k(e))for(i=0;i<e.length;i+=1){if(t.call(n,e[i],i,e,r)===!1)return i}else if(!(e===null||e===void 0))for(i in e)if(t.call(n,e[i],i,e,r)===!1)return i},A=t.createElement,O=t.createContextMenu,M=t.toRaphaelColor=function(){var e={};return function(t){var n=(t=t||this)&&t.FCcolor||t,r=n.color,i=n.ratio,s=n.angle,o=n.alpha,u=n.r,f=n.cx,l=n.cy,c=n.fx,h=n.fy,p=n.gradientUnits,v=n.x1,m=n.y1,g=n.x2,y=n.y2,b=1,w,S,x,T;if(typeof t==="string")return e[T="~"+t]||(e[T]=t.replace(/^#?([a-f0-9]{3,6})/ig,"#$1"));r=r||a;if(!r)return w;T=[r,o,i,s,u,f,l,p,c,h,v,g,m,y].join("_").replace(/[\(\)\s,\xb0#]/g,"_");if(e[T])return e[T];i=i&&(i+a).split(",")||[];o=(o||o===0)&&(o+a).split(",")||[];if(r=r.split(","))if(w=a,r.length===1)x=r[0].replace(/^#?([a-f0-9]{3,6})/ig,"$1"),w=o.length?"rgba("+E(x).join(",")+","+d(o[0])*.01+")":x.replace(/^#?([a-f0-9]{3,6})/ig,"#$1");else{t=0;for(S=r.length;t<S;t++)x=r[t].replace(/^#?([a-f0-9]{3,6})/ig,"$1"),isNaN(i[t])||(i[t]=d(i[t]),x+=":"+i[t],isNaN(i[t+1])||(i[t+1]=d(i[t+1])+i[t])),!isNaN(o[t])&&o[t]!==a&&(b=o[t]*.01),r[t]="rgba("+E(x).join(",")+","+b+")",isNaN(i[t])||(r[t]=r[t]+":"+i[t]);w+=r.join("-");if(u!==void 0||c!==void 0||f!==void 0||n.radialGradient)w="xr("+[c,h,u,f,l,p].join(",")+")"+w;else{w="-"+w;if(v!==void 0||m!==void 0||g!==void 0||y!==void 0)w="("+[v,m,g,y,p].join(",")+")"+w;s===void 0&&(s=0);w=360-d(s)%360+w}}return e[T]=w}}();t.gradientify=function(){return function(){return""}}();var _=t.hasTouch,D=_?10:3,P=t.getSentenceCase,H=t.getCrispValues,B=t.getValidValue,w=t.pluckNumber,j=t.getFirstValue,F=t.regex.dropHash,I=t.HASHSTRING,q=function(e){return e!==U&&e!==null},R=function(e,t){e[1]===e[4]&&(e[1]=e[4]=c(e[1])+t%2/2);e[2]===e[5]&&(e[2]=e[5]=c(e[2])+t%2/2);return e},U,z=document.documentMode===8?"visible":"",f="crisp",W=Math,X=W.sin,V=W.cos,$=W.atan2,c=W.round,J=W.min,K=W.max,Q=W.abs,G=W.ceil,Y=W.floor,Z=W.PI,et=Z/2,tt=2*Z,nt=Z+et,rt=t.getFirstColor,it=t.graphics.getDarkColor,st=t.graphics.getLightColor,l="rgba(192,192,192,"+(s?.002:1e-6)+")",ot=t.POSITION_TOP,ut=t.POSITION_BOTTOM,at=t.POSITION_RIGHT,ft=t.POSITION_LEFT;n.ca.ishot=function(e){if(this.removed)return!1;var t=this.node,e=e||"";t.ishot=e;switch(this.type){case"group":for(t=this.bottom;t;)t.attr("ishot",e),t=t.next;break;case"text":if(n.svg)for(t=t.getElementsByTagName("tspan")[0];t;)t.ishot=e,t=t.nextSibling}return!1};n.addSymbol({printIcon:function(e,t,n){var r=n*.75,i=n*.5,s=n*.33,o=c(e-n)+.5,u=c(t-n)+.5,a=c(e+n)+.5,n=c(t+n)+.5,f=c(e-r)+.5,l=c(t-r)+.5,r=c(e+r)+.5,h=c(t+i)+.5,p=c(e+i)+.5,d=c(t+s)+.5,e=c(e-i)+.5,s=c(t+s+s)+.5;return["M",f,u,"L",r,u,r,l,f,l,"Z","M",o,l,"L",o,h,f,h,f,t,r,t,r,h,a,h,a,l,"Z","M",f,t,"L",f,n,r,n,r,t,"Z","M",p,d,"L",e,d,"M",p,s,"L",e,s]},exportIcon:function(e,t,n){var r=n*.66,i=r*.5,s=c(e-n)+.5,o=c(t-n)+.5,u=c(e+n)+.5,n=c(t+n)-.5,a=c(e-i)+.5,f=t<n-3?n-3:c(t)+.5,i=c(e+i)-.5,l=c(e+r)-.5,r=c(e-r)+.5;return["M",s,f,"L",s,n,u,n,u,f,u,n,s,n,"Z","M",e,n-1,"L",r,t,a,t,a,o,i,o,i,t,l,t,"Z"]}});t.rendererRoot=r("renderer.root",{standaloneInit:!1,isRenderer:!0,inited:!1,callbacks:[],init:function(t,r,i){var s;var o=this,u=o.container=r.chart.renderTo,f=r.tooltip,l=o.layer,c;o.options=r;o.logic=t;o.definition=t.dataObj;o.smartLabel=t.smartLabel;o.numberFormatter=t.numberFormatter;o.fusionCharts=t.chartInstance;o.linkClickFN=t.linkClickFN;u.innerHTML=a;s=o.paper=n(u,u.offsetWidth||t.width,u.offsetHeight||t.height),u=s;e.core.options._useSVGDescTag!==!1&&u._desc&&(c=t.friendlyName||"Vector image",o.definition&&o.definition.chart&&o.definition.chart.caption&&(c+=' with caption "'+o.definition.chart.caption+'"'),u._desc(c));o.chartWidth=u.width;o.chartHeight=u.height;if(!o.elements)o.elements={};if(!l)l=o.layers={},l.background=l.background||u.group("background"),l.dataset=l.dataset||u.group("dataset").insertAfter(l.background),l.tracker=l.tracker||u.group("hot").insertAfter(l.dataset);f&&f.enabled!==!1&&u.tooltip(f.style,f.shadow,f.constrain);o.setMargins();o.drawBackground();o.drawButtons();o.drawGraph();r.legend&&r.legend.enabled&&o.drawLegend();o.drawCaption();o.drawLogo();o.setChartEvents();o.drawLabels&&o.drawLabels();L(r.callbacks,function(e){e.apply(o,this)},[t]);L(o.callbacks,function(e){e.apply(o,this)},[t]);o.hasRendered=!0;i&&i(o)},reinit:function(e,t,n){this.hasRendered||this.init(t,n)},dispose:function(){this.disposing=!0;this.paper&&(this.paper.remove(),delete this.paper);this.exportIframe&&(this.exportIframe.parentNode.removeChild(this.exportIframe),delete this.exportIframe);delete this.disposing;this.disposed=!0},onContainerClick:function(e){var t=e.target||e.originalTarget||e.srcElement||e.relatedTarget||e.fromElement,e=e.data;(!t||!t.ishot||!e)&&e.linkClickFN.call(e,e)},setChartEvents:function(){var e=this.options.chart.link,t=this.container;y(t,"click",this.onContainerClick);if(e)this.link=e,g(t,"click",this.onContainerClick,this);this.paper.canvas.style.cursor=n.svg?e&&"pointer"||"default":e&&"hand"||"default"},onOverlayMessageClick:function(){var e=this.elements;n.animation({opacity:0},1e3);e.messageText&&e.messageText.hide();e.messageVeil&&e.messageVeil.hide()},showMessage:function(e,t){var n=this.paper,r=this.options.chart,i=this.elements,s=i.messageText,o=i.messageVeil,u=n.width,f=n.height;if(!o)o=i.messageVeil=n.rect(0,0,u,f).attr({fill:"rgba(0,0,0,0.2)",stroke:"none"});o.show().toFront().attr("cursor",t?"pointer":"default")[t?"click":"unclick"](this.onOverlayMessageClick,this);if(!s)s=i.messageText=n.text(u/2,f/2,a).attr({fill:"rgba(255,255,255,1)","font-family":"Verdana","font-size":10,"line-height":14,ishot:!0});e=e||a;this.smartLabel.setStyle({"line-height":"14px","font-family":"Verdana","font-size":"10px"});n=this.smartLabel.getSmartText(e,u-(r.spacingRight||0)-(r.spacingLeft||0),f-(r.spacingTop||0)-(r.spacingBotton||0));s.attr({text:n.text,ishot:!0,cursor:t?"pointer":"default"})[t?"click":"unclick"](this.onOverlayMessageClick,this).show().toFront()},drawButtons:function(){var e=this,t=e.logic.rendererId==="zoomline",r=e.paper,i=e.elements,s=e.toolbar||(e.toolbar=[]),o=e.menus||(e.menus=[]),u=e.layers,a=e.options,f=a[T],f=f&&f.outCanvasStyle||e.logic.outCanvasStyle||{},l=a.chart.toolbar||{},c=l.hDirection,h=t?1:l.vDirection,p=l.button||{};s.count=0;var d=p.scale,v=p.width*p.scale,m=p.height*p.scale,g=c*(p.spacing*p.scale+v),y=p.radius;s.y||(s.y=(t?0:l.y)+l.vMargin*h+J(0,m*h));s.x||(s.x=l.x+l.hMargin*c-K(0,v*c));var l=(t=a.exporting)&&t.buttons||{},a=l.exportButton&&l.exportButton.enabled!==!1,l=l.printButton&&l.printButton.enabled!==!1,b,w=u.buttons||(u.buttons=r.group("buttons"));s.add=function(e,t,n){var n=typeof n==="string"?{tooltip:n}:n||{},i=s.count===0?g-c*p.spacing*p.scale:g,i=n.x||(s.x+=i),o=n.tooltip||"";s.push(e=r.button(i,n.y||s.y,U,e,{width:v,height:m,r:y,id:s.count++,verticalPadding:p.symbolHPadding*d,horizontalPadding:p.symbolHPadding},w).attr({ishot:!0,fill:[p.fill,p.labelFill,p.symbolFill,p.hoverFill],stroke:[p.stroke,p.symbolStroke],"stroke-width":[p.strokeWidth,p.symbolStrokeWidth]}).tooltip(o).buttonclick(t));return e};if(a)o.push(b=i.exportMenu=O({chart:e,labels:{style:f,hover:{color:"rgba(255, 255, 255, 1)"}},attrs:{fill:"rgba(255, 255, 255, 1)"},hover:{fill:n.tintshade(f.color,.7)},items:function(t){var n=[],r;for(r in t)n.push({text:t[r],onclick:function(t){return function(){e.logic.chartInstance.exportChart({exportFormat:t})}}(r)});return n}(t.exportformats)})),i.exportButton=s.add("exportIcon",function(e,t){return function(){b.visible?b.hide():b.show({x:e,y:t+1})}}(s.x+v,s.y+m),{tooltip:"Export chart"});if(l)i.printButton=s.add("printIcon",function(){e.print()},{tooltip:"Print chart"})},setMargins:function(){var e=this.paper,t=this.options.chart||{};this.canvasBorderWidth=t.plotBorderWidth||0;this.canvasTop=c(t.marginTop)||0;this.canvasLeft=c(t.marginLeft)||0;this.canvasWidth=c(e.width-(t.marginLeft||0)-(t.marginRight||0));this.canvasHeight=c(e.height-(t.marginTop||0)-(t.marginBottom||0));this.canvasRight=this.canvasLeft+this.canvasWidth;this.canvasBottom=this.canvasTop+this.canvasHeight},drawBackground:function(){var e=this.paper,t=this.layers,n=this.elements,r=t.background||(t.background=e.group("background")),t=n.background||(n.background=e.rect(r)),i=this.options.chart||{},s=d(i.borderWidth)||0,o=s*.5,u=i.borderWidth||0,a=this.chartHeight,f=this.chartWidth,l=n.backgroundImage,c=i.bgSWF,h=i.bgSWFAlpha/100,p=i.bgImageDisplayMode,v=i.bgImageVAlign,m=i.bgImageHAlign,g=i.bgImageScale,y=u+","+u+","+(f-u*2)+","+(a-u*2),b,w,E,x,T,N,C;e.canvas.style.backgroundColor=i.containerBackgroundColor;t.attr({x:o,y:o,width:e.width-s,height:e.height-s,stroke:i.borderColor,"stroke-width":s,fill:M(i.backgroundColor)});if(c)b=new Image,T=E=1,l=[],b.onload=function(){w=S(p,v,m,g,u,f,a,b);w["clip-rect"]=y;if(w.tileInfo){E=w.tileInfo.xCount;T=N=w.tileInfo.yCount;C=w.y;for(delete w.tileInfo;E;)if(N-=1,x?(l[void 0]=x.clone().attr({x:w.x,y:w.y}),r.appendChild(l[void 0])):l[void 0]=x=e.image(c,r).attr(w).css({opacity:h}),w.y+=w.height,N===0)N=T,E-=1,w.x+=w.width,w.y=C}else l[0]=e.image(c,r),l[0].attr(w).css({opacity:h}).attr({visibility:z,"clip-rect":y})},b.src=c,n.backgroundImage=l},drawGraph:function(){var e=this,t=e.paper,n=e.plots=e.elements.plots,r=e.logic,i=e.layers,s=e.options,o=e.elements,u=s.chart,s=e.datasets=s.series,a=j(u.rendererId,u.defaultSeriesType),f=i.background,f=i.dataset=i.dataset||t.group("dataset").insertAfter(f);i.tracker=i.tracker||t.group("hot").insertAfter(f);var l,c;e.drawCanvas();e.drawAxes();if(!n)n=e.plots=e.plots||[],o.plots=n;i=0;for(o=s.length;i<o;i++){t=s[i]||{};f=t.updatePlot="updatePlot"+P(b(t.type,t.plotType,a));f=e[f];l=t.drawPlot="drawPlot"+P(b(t.type,t.plotType,a));l=e[l]||e.drawPlot;if(!(c=n[i]))n.push(c={index:i,items:[],data:t.data||[],name:t.name,userID:t.userID,setVisible:function(e,t){return function(i){var s=n[e],o,u={hcJSON:{series:[]}},a=u.hcJSON.series[e]||(u.hcJSON.series[e]={}),f=r.chartInstance.jsVars._reflowData;o=(i=j(i,!s.visible))?"visible":"hidden";L(s.graphics,function(e){e.attr("visibility",o)});s.visible=i;t.visible=i;a.visible=i;m(f,u,!0)}}(i,t),legendClick:function(t){return function(r,i){e["legendClick"+a]&&e["legendClick"+a](n[t],r,i)||e.legendClick&&e.legendClick(n[t],r,i)}}(i),realtimeUpdate:function(t,r,i){return function(s,o){r.call(e,n[t],i,{numUpdate:s,hasAxisChanged:o})}}(i,f||l,t)}),t.plot=c,t.legendClick=c.legendClick,t.setVisible=c.setVisible;l.call(e,c,t)}u.hasScroll&&(e.drawScroller(),e.finalizeScrollPlots())},drawPlot:h,drawCanvas:h,drawAxes:h,drawScroller:function(){},drawLegend:function(){var e;var t=this,r=t.options,i=t.paper,s=r.chart||{},o=r.legend,u=o.scroll,r={elements:{}},f=r.elements,l=t.layers.legend,c=f.box,h=f.caption,p=f.elementGroup,d=o.layout==="vertical",v=s.marginTop,g=s.marginBottom,y=s.spacingBottom,b=s.spacingLeft,E=s.spacingRight,S=i.width,x=i.height,v=t.canvasTop,T=o.width,N=o.height,C=o.borderRadius,k=o.backgroundColor,L=o.borderColor,A=o.borderWidth||0,O=A*.5,M=A*.5+2,s=w(o.padding,4),_=s*.5,D,H,B,j,F,I,q;d?(d=S-E-T,v=v+(x-g-v-N)*.5+(o.y||0)):(d=b+(S-b-E-T)*.5+(o.x||0),v=x-y-N);g=n.crispBound(d,v,T,N,A);d=g.x;v=g.y;T=g.width;N=g.height;if(!l)l=t.layers.legend=i.group("legend").insertBefore(t.layers.tracker).translate(d,v);o.legendAllowDrag&&(H=d,B=v,l.css({cursor:"move"}).drag(function(e,t){j=I+e;F=q+t;j+T+M>S&&(j=S-T-M);F+N+M>x&&(F=x-N-M);j<M&&(j=M);F<M&&(F=M);l.translate(j-H,F-B);H=j;B=F},function(){I=H;q=B}));if(!c)c=f.box=i.rect(l);c.attr({x:0,y:0,width:T,height:N,r:C,stroke:L,"stroke-width":A,fill:k||"none",ishot:o.legendAllowDrag}).shadow(o&&o.shadow);u&&u.enabled?(D=N-s,c=","+T+","+D,p=f.elementGroup=i.group("legenditems",l).attr({"clip-rect":"0,"+_+c}),e=f.scroller||(f.scroller=i.scroller(T-10+_-A,O,10,N-A,!1,{scrollPosition:u.scrollPosition||0,scrollRatio:(D+s)/o.totalHeight,showButtons:!1,displayStyleFlat:u.flatScrollBars},l)),u=e,u.attr("fill",o.legendScrollBgColor).scroll(function(e){p.transform(["T",0,(D-o.totalHeight)*e]);m(t.fusionCharts.jsVars._reflowData,{hcJSON:{legend:{scroll:{position:e}}}},!0)})):p=f.elementGroup=l;if(o.title&&o.title.text!==a){if(!h)h=f.caption=i.text(p);h.attr({text:o.title.text,title:o.title.originalText||"",x:T*.5,y:s,fill:o.title.style.color,"vertical-align":"top"}).css(o.title.style)}this["draw"+P(o.type||"point")+"LegendItem"](r)},drawPointLegendItem:function(e){var t;var n;var r=this.paper,i=this.options,s=i.series,o=i.chart.defaultSeriesType,i=i.legend,u=i.legendHeight,a=i.symbolPadding,f=i.textPadding||2,c=w(i.padding,4),h=i.itemHiddenStyle,p=i.itemStyle,d=p.color,h=h&&h.color||"#CCCCCC",v=i.symbolWidth,g=i.itemWidth,y=i.interactiveLegend!==!1,E=e.elements,S=E.elementGroup,e=e.item=[],E=E.item=[],T=[],N={line:!0,spline:!0,scatter:!0,bubble:!0,dragnode:!0,zoomline:!0},C,k,L,A,O,_,D,P,H,B,j,F,I,q;B=0;for(F=s.length;B<F;B+=1)if((L=s[B])&&L.showInLegend!==!1)if(_=L.type||o,L.legendType==="point"){L=L.data||[];j=0;for(P=L.length;j<P;j+=1)if(O=L[j]||{},O.showInLegend!==!1)O._legendType=_,T.push(O)}else switch(L._legendType=_,_){case"pie":case"pie3d":case"funnel":case"pyramid":T=L.data;break;default:T.push(L)}T.sort(function(e,t){return(e.legendIndex||0)-(t.legendIndex||0)||e.__i-t.__i});i.reversed&&T.reverse();s=i.initialItemX||0;o=i.initialItemY||0;B=0;for(F=T.length;B<F;B+=1)if(T[B].showInLegend!==!1)if(j={elements:{},hiddenColor:h,itemTextColor:d},e.push(j),E.push(j.elements),C=T[B],D=s+C._legendX+c,P=o+C._legendY-c,H=C._legendH,k=C._legendType||_,L=C.visible!==!1,A=j.itemLineColor=M(C.color||{}),O=y?function(e){return function(){e.legendClick()}}(C):x,C.plot.legend=j,j.elements.legendItemBackground=r.rect(D,P,g,H,0,S).click(O).attr({fill:M(C.legendFillColor||l),"stroke-width":1,stroke:M(C.legendBorderColor||"none"),cursor:p.cursor||"pointer",ishot:y}),j.elements.legendItemText=r.text(D+u+f-2,P+(C._legendTestY||0),C.name,S).css(p).click(O).attr({fill:L?d:h,"vertical-align":"top","text-anchor":"start",cursor:p.cursor||"pointer",title:C.originalText||"",ishot:y}),N[k]){k=P+a+v*.5;if(C.lineWidth)q=j.elements.legendItemLine=r.path(["M",D+a,k,"L",D+a+v,k],S).click(O).attr({"stroke-width":C.lineWidth,stroke:L?A:h,cursor:p.cursor||"pointer",ishot:y});if(C&&(I=C.marker)&&I.enabled!==!1)j.symbolStroke=M(b(I.lineColor&&(I.lineColor.FCcolor&&I.lineColor.FCcolor.color.split(",")[0]||I.lineColor),A)),I.fillColor&&I.fillColor.FCcolor?(k=m({},I.fillColor),k.FCcolor.alpha="100"):k=b(I.fillColor,A),j.symbolColor=M(k),C=v*.5,D=D+a+C,k=P+a+C,q&&(C*=.6),P=I.symbol.split("_"),A=P[0]==="spoke"?1:0,n=P[1]?j.elements.legendItemSymbol=r.polypath(P[1],D,k,C,I.startAngle,A,S):j.elements.legendItemSymbol=r.circle(D,k,C,S),P=n,P.click(O).attr({cursor:p.cursor||"pointer",stroke:L?j.symbolStroke:h,fill:L?j.symbolColor:h,"stroke-width":1,ishot:y})}else P=this.getSymbolPath(D+a,P+a,v,v,k,C),j.symbolColor=M(P.color),j.symbolStroke=M(P.strokeColor),t=j.elements.legendItemSymbol=r.path(P.path,S).click(O).attr({"stroke-width":P.strokeWidth,stroke:L?j.symbolStroke:h,fill:L?j.symbolColor:h,cursor:p.cursor||"pointer",ishot:y}),P=t;i.reversed&&T.reverse()},drawCaption:function(){var e;var t=this.options.chart,n=this.options.title,r=this.options.subtitle,i=this.paper,s=this.elements,o=this.layers,u=o.caption,a=s.caption,f=s.subcaption,l=n&&n.text,c=r&&r.text,h=(this.canvasLeft||0)+w(this.canvasWidth,i.width)/2,p=n.x,d=r&&r.x;if((l||c)&&!u)u=o.caption=i.group("caption"),o.tracker?u.insertBefore(o.tracker):u.insertAfter(o.dataset);if(l){if(!a)a=s.caption=i.text(u);if(p===void 0)p=h,n.align="middle";a.css(n.style).attr({text:n.text,fill:n.style.color,x:p,y:n.y||t.spacingTop||0,"text-anchor":n.align||"middle","vertical-align":"top",visibility:"visible",title:n.originalText||""})}else if(a)e=s.caption=a.remove(),a=e;if(c){if(!f)f=s.subcaption=i.text(u);if(d===void 0)d=h,r.align="middle";f.css(r.style).attr({text:r.text,title:r.originalText||"",fill:r.style.color,x:d,y:l?a.attrs.y+a.getBBox().height+2:n.y||t.spacingTop||0,"text-anchor":r.align||"middle","vertical-align":"top",visibility:"visible"})}else if(f)s.subcaption=f.remove();if(!l&&!c&&u)o.caption=u.remove()},drawLogo:function(){var e=this.paper,t=this.elements,n=this.options,r=n.credits,i=n.chart||{},s=i.borderWidth||0,o=this.chartHeight,u=this.chartWidth,a=t.logoImage,f=this.layers.tracker,l=i.logoURL,c=i.logoAlpha/100,h=i.logoPosition,p=i.logoLink,d=i.logoScale,v=i.logoLeftMargin,m=i.logoTopMargin,g=s+","+s+","+(u-s*2)+","+(o-s*2),n={tr:{vAlign:ot,hAlign:at},bl:{vAlign:ut,hAlign:ft},br:{vAlign:ut,hAlign:at},cc:{vAlign:"middle",hAlign:"middle"}},y,b;this.logic&&r.enabled&&e.text().attr({text:r.text,x:6,y:o-4,"vertical-align":ut,"text-anchor":"start",fill:"rgba(0,0,0,0.5)",title:r.title||""}).css({fontSize:9,fontFamily:"Verdana",cursor:"pointer",_cursor:"hand"}).click(function(){i.events.click.call({link:r.href})});if(l)y=new Image,(h=n[h])||(h={vAlign:ot,hAlign:ft}),y.onload=function(){b=S("none",h.vAlign,h.hAlign,d,s,u,o,y);a=e.image(l);f.appendChild(a);b["clip-rect"]=g;a.attr(b).translate(v,m).css({opacity:c});p&&a.css({cursor:"pointer",_cursor:"hand"}).click(function(){i.events.click.call({link:p})})},y.src=l,t.logoImage=a},legendClick:function(t,n,r){var i=t.legend,s=i&&i.elements,o=s&&s.legendItemText,u=s&&s.legendItemSymbol,s=s&&s.legendItemLine,a=i&&i.hiddenColor,f=i&&i.itemLineColor,l=i&&i.itemTextColor,c=i&&i.symbolColor,h=i&&i.symbolStroke,i=b(n,!t.visible);t.setVisible(n);r!==!0&&(eventArgs={datasetName:t.name,datasetIndex:t.index,id:t.userID,visible:i},e.raiseEvent("legenditemclicked",eventArgs,this.logic.chartInstance));i?(u&&u.attr({fill:c||f,stroke:h}),o&&o.attr({fill:l}),s&&s.attr({stroke:f})):(u&&u.attr({fill:a,stroke:a}),o&&o.attr({fill:a}),s&&s.attr({stroke:a}));if((t=this.datasets&&this.datasets[t.index]&&this.datasets[t.index].relatedSeries)&&t instanceof Array&&t.length>0)for(n=t.length;n--;)r=parseFloat(t[n]),(r=this.plots[r])&&r.legend&&r.legendClick.call(r,i,!1)},exportChart:function(n){var r=this.elements,i=r.printButton,s=r.exportButton,u=this.fusionCharts,f=u.id,l=this.paper,c=this.options,n=typeof n==="object"&&function(e){var t={},n;for(n in e)t[n.toLowerCase()]=e[n];return t}(n)||{},h=m(m({},c.exporting),n),p=(h.exportformat||"png").toLowerCase(),n=h.exporthandler,d=(h.exportaction||a).toLowerCase(),r=h.exporttargetwindow||a,v=h.exportfilename,g=h.exportparameters,y;if(!c.exporting||!c.exporting.enabled||!n)return!1;i&&i.attrs.visibility!="hidden"&&i.attr({visibility:"hidden"});s&&s.attrs.visibility!="hidden"&&s.attr({visibility:"hidden"});c=l.toSVG();i&&i.attr({visibility:"visible"});s&&s.attr({visibility:"visible"});c=c.replace(/(\sd\s*=\s*["'])[M\s\d\.]*(["'])/ig,"$1M 0 0 L 0 0$2");p==="pdf"&&(c=c.replace(/<(\b[^<>s\s]+\b)[^\>]+?opacity\s*=\s*['"][^1][^\>]+?(\/>|>[\s\r\n]*?<\/\1>)/ig,function(e,t){var n=N.exec(e)||a,r=C.exec(e)||a;return e+"<"+t+n+r+' 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:u.src,stream:c,stream_type:"svg",meta_bgColor:h.bgcolor||"",meta_DOMId:u.id,meta_width:l.width,meta_height:l.height,parameters:["exportfilename="+v,"exportformat="+p,"exportaction="+d,"exportparameters="+g].join("|")};if(d==="download"){if(/webkit/ig.test(navigator.userAgent)&&r==="_self"&&(r=s=f+"export_iframe",!this.exportIframe))this.exportIframe=s=A("IFRAME",{name:s,width:"1px",height:"1px"},o.body),s.style.cssText="position:absolute;left:-10px;top:-10px;";n=A("form",{method:"POST",action:n,target:r,style:"display:none;"},o.body);for(y in i)A("input",{type:"hidden",name:y,value:i[y]},n);n.submit();o.body.removeChild(n);n=void 0}else y=new e.ajax(function(e){var n={};e.replace(RegExp("([^?=&]+)(=([^&]*))?","g"),function(e,t,r,i){n[t]=i});t.raiseEvent("exported",n,u,[n])},function(e){e={statusCode:0,statusMessage:"failure",error:e,DOMId:f,width:l.width,height:l.height};t.raiseEvent("exported",e,u,[e])}),y.post(n,i);return!0},print:function(){var e=this,t=e.container,n=e.elements,r=n.printButton,s=n.exportButton,u=[],a=t.parentNode,n=o.body,f=n.childNodes;if(!e.isPrinting)e.isPrinting=!0,L(f,function(e,t){if(e.nodeType==1)u[t]=e.style.display,e.style.display="none"}),r&&r.attrs.visibility!="hidden"&&r.attr({visibility:"hidden"}),s&&s.attrs.visibility!="hidden"&&s.attr({visibility:"hidden"}),n.appendChild(t),i.print(),setTimeout(function(){r&&r.attr({visibility:"visible"});s&&s.attr({visibility:"visible"});a.appendChild(t);L(f,function(e,t){if(e.nodeType==1)e.style.display=u[t]});e.isPrinting=!1},1e3)},getSymbolPath:function(e,t,n,r,i,s){var o=["M"],u,f,l,c;u=(s.color&&rt(typeof s.color==="string"?s.color:s.color.FCcolor.color)||a).replace(F,"");f=st(u,40);c=it(u,60).replace(F,I);u={FCcolor:{color:u+","+u+","+f+","+u+","+u,ratio:"0,30,30,30,10",angle:0,alpha:"100,100,100,100,100"}};switch(i){case"column":case"dragcolumn":case"column3d":f=n*.25;l=f*.5;i=r*.7;s=r*.4;o=o.concat([e,t+r,"l",0,-i,f,0,0,i,"z","m",f+l,0,"l",0,-r,f,0,0,r,"z","m",f+l,0,"l",0,-s,f,0,0,s,"z"]);u.FCcolor.angle=270;break;case"bar":case"bar3d":f=n*.3;l=n*.6;i=r/4;s=i/2;o=o.concat([e,t,"L",e+l,t,e+l,t+i,e,t+i,"Z","M",e,t+i+s,"L",e+n,t+i+s,e+n,t+i+s+i,e,t+2*i+s,"Z","M",e,t+2*(i+s),"L",e+f,t+2*(i+s),e+f,t+r,e,t+r,"Z"]);break;case"area":case"area3d":case"areaspline":case"dragarea":i=r*.6;s=r*.2;r*=.8;o=o.concat([e,t+r,"L",e,t+i,e+n*.3,t+s,e+n*.6,t+i,e+n,t+s,e+n,t+r,"Z"]);u.FCcolor.angle=270;break;case"pie":case"pie3d":f=n/2;l=n*.7;i=r/2;o=o.concat([e+f,t+i,"L",e+l,t,"A",f,i,0,0,0,e,t+i,"L",e+f,t+i,"M",e+f,t+i,"L",e,t+i,"A",f,i,0,0,0,e+l,t+r,"L",e+f,t+i,"M",e+f,t+i,"L",e+l,t+r,"A",f+1,i+1,0,0,0,e+l,t,"Z"]);break;case"boxandwhisker2d":o=o.concat([e,t,"L",e+n,t,e+n,t+r,e,t+r,"Z"]);u=s.color;c="#000000";break;default:o=o.concat([e,t,"L",e+n,t,e+n,t+r,e,t+r,"Z"]),u.FCcolor.angle=270,u.FCcolor.ratio="0,70,30"}return{path:o,color:u,strokeWidth:.5,strokeColor:c}}});var lt=function(e,t,n,r){this.axisData=e||{};t=this.renderer=t;e=t.paper;this.globalOptions=t.options;var i=t.layers,t=n?"y-axis":"x-axis",s=this.layerAboveDataset=i.layerAboveDataset,o=this.layerBelowDataset=i.layerBelowDataset,i=s.bands||(s.bands=[]),u=i.length,a=o.bands||(o.bands=[]),f=a.length,l=s.lines||(s.lines=[]),c=l.length,h=o.lines||(o.lines=[]),p=h.length,s=s.labels||(s.labels=[]),d=s.length,o=o.labels||(o.labels=[]),v=o.length;this.isVertical=n;this.topBandGroup=this.topBandGroup||e.group(t+"-bands",this.layerAboveDataset);this.belowBandGroup=this.belowBandGroup||e.group(t+"-bands",this.layerBelowDataset);i.push(this.topBandGroup);u&&i[u].insertAfter(i[u-1]);a.push(this.belowBandGroup);f&&a[f].insertAfter(a[f-1]);this.topLineGroup=this.topLineGroup||e.group(t+"-lines",this.layerAboveDataset);this.belowLineGroup=this.belowLineGroup||e.group(t+"-lines",this.layerBelowDataset);this.topLabelGroup=this.topLabelGroup||e.group(t+"-labels",this.layerAboveDataset);this.belowLabelGroup=this.belowLabelGroup||e.group(t+"-labels",this.layerBelowDataset);l.push(this.topLineGroup);c&&l[c].insertAfter(l[c-1]);h.push(this.belowLineGroup);p&&h[p].insertAfter(h[p-1]);s.push(this.topLabelGroup);d&&s[d].insertAfter(s[d-1]);o.push(this.belowLabelGroup);v&&o[v].insertAfter(o[v-1]);this.isReverse=r;this.configure()};lt.prototype={configure:function(){var e=this.axisData,t=this.renderer,n=this.isVertical,r=this.isReverse,i=t.options,s=i.chart,o=s.marginBottom,s=s.marginRight,u=t.canvasTop,a=t.canvasLeft,f=this.min=e.min,f=this.span=(this.max=e.max)-f,a=this.startX=w(e.startX,a),u=this.startY=w(e.startY,u),l=this.endX=w(e.endX,t.canvasRight),e=this.endY=w(e.endY,t.canvasBottom);this.startPixel=r?n?e:l:n?u:a;n=this.pixelRatio=n?(e-u)/f:(l-a)/f;this.pixelValueRatio=r?-n:n;r=this.relatedObj={};r.marginObj={top:u,right:s,bottom:o,left:a};r.canvasObj={x:a,y:u,w:l-a,h:e-u,toX:l,toY:e};this.primaryOffset=this.secondaryOffset=0;this.cache={lowestVal:0,highestVal:0,indexArr:[],hashTable:{}};this.elements=this.elements||{};if(this.belowBandGroup)t.elements.axes=t.elements.axes||{},t.elements.axes.belowBandGroup=this.belowBandGroup,i&&i.chart&&i.chart.hasScroll&&this.belowBandGroup.attr({"clip-rect":t.elements["clip-canvas"]});this.poi={}},draw:function(){var e=this.axisData,t=e&&e.plotLines||[],n=e&&e.plotBands||[],r=e&&e.showLine,i=e&&e.tickLength,s=e&&e.tickWidth;e&&e.title&&this.drawAxisName();t&&t.length>0&&this.drawPlotLine();n&&n.length>0&&this.drawPlotBands();!isNaN(i)&&i!=0&&!isNaN(s)&&s!=0&&this.drawTicks();r&&this.drawLine()},scroll:function(){},setOffset:function(e,t){var n=u?this.startY:this.startX,r=u?this.endY:this.endX,i=this.cache.hashTable,s=this.primaryOffset=e||this.primaryOffset,o=this.secondaryOffset=t||this.secondaryOffset,u=this.isVertical,a,f,l,c=[this.topLabelGroup,this.belowLabelGroup,this.topLineGroup,this.belowLineGroup,this.topBandGroup,this.belowBandGroup],h,p,d;h=0;for(p=c.length;h<p;h+=1)if(l=c[h])a=u?o:s,f=u?s:o,l.attr({transform:"t"+a+","+f});if(!u)for(d in i)if(h=parseFloat(d)+s,h<n||h>r){o=i[d];h=0;for(p=o.elements.length;h<p;h+=1)u=o.elements[h],u.attr("visibility")==="visible"&&u.attr({visibility:"hidden"})}else if(h>n&&h<r){o=i[d];h=0;for(p=o.elements.length;h<p;h+=1)u=o.elements[h],u.attr("visibility")==="hidden"&&u.attr({visibility:"visible"})}},update:function(){},drawTicks:function(){var e=this.axisData,t=this.renderer.paper,n=this.min,r=this.max,i=this.isVertical,s=this.layerBelowDataset,s=this.tickGroup=this.tickGroup||t.group("axis-ticks",s),o=this.relatedObj.canvasObj,u=e.offset,a=e.opposite,f=e.showAxis,l=e.tickInterval,c=e.tickLength,h=e.tickWidth,e=e.tickColor,p=n;if(i&&f){n=this.getAxisPosition(n);i=this.getAxisPosition(r);o=!a?o.x-u:o.toX+u;for(t.path(["M",o,n,"L",o,i],s).attr({stroke:e,"stroke-width":h});Y(p)<=r;)u=this.getAxisPosition(p),n=!a?o-c:o+c,t.path(["M",o,u,"L",n,u],s).attr({stroke:e,"stroke-width":h}),p+=l}},getAxisPosition:function(e,t){var n;t?n=(e-this.startPixel)/this.pixelValueRatio+this.min:(e=this.axisData.reversed?this.min+(this.max-e):e,n=this.startPixel+(e-this.min)*this.pixelValueRatio);return n},drawPlotLine:function(){for(var e=this.renderer,t=e.paper,n=this.isVertical,r=+!n,i=this.belowLineGroup,s=this.topLineGroup,o=this.belowLabelGroup,u=this.topLabelGroup,c=this.axisData.plotLines||[],h=this.lines=this.lines||[],p=this.labels=this.labels||[],d=this.relatedObj.canvasObj,v=this.globalOptions||{},m=this.elements||{},g=this.cache||{},y=g.hashTable,b=g.indexArr,E=n?this.startY:this.startX,S=n?this.endY:this.endX,x=this.primaryOffset,T=parseFloat(e.canvasBorderWidth)||0,N,C=(e.tooltip||{}).enabled!==!1,k,L,A,O,_,P,H,B,j,F,I,q,U,z,W,X,V=0,$=0,J,Q,G,Y,Z,et,tt,nt,rt=v.chart.xDepth||0,it,st,at,ft,lt,ct,ht,pt,dt,vt,mt,gt=K(c.length,K(h.length,p.length)),yt,bt,wt,Et,g=[],St,v=0;v<gt;v+=1){L=A=O=null;Y=P="visible";L=h[v];A=p[v];dt=(H=c[v])&&H.width;I=(N=H&&H.label)&&N.style;if(!L&&H){if(st=H.zIndex>3?s:i,dt>.1)L=h[v]=t.path(st).css(H.style),m.lines=m.lines||[],m.lines.push(L)}else if(!H&&(L||A))L&&L.remove(),A&&A.remove(),h&&(h[v]=null),p&&(p[v]=null),m&&m.lines&&(m.lines[v]=null),m&&m.labels&&(m.labels[v]=null);if(H){if(!A&&N&&!H.stepped){if(N.text!=a&&N.text!=" "){A=H.zIndex>=3?u:o;A=p[v]=t.text(A).css(I);if(L)L.label=A;m.labels=m.labels||[];m.labels.push(A)}}else if(A)if(N)if(N.text===a||N.text===" ")A.isRotationSet=!1,A.remove(),delete A,p&&(p[v]=null),m&&m.labels&&(m.labels[v]=null);else{if(H&&H.stepped)A.isRotationSet=!1,A.remove(),delete A,p&&(p[v]=null),m&&m.labels&&(m.labels[v]=null)}else A.isRotationSet=!1,A.remove(),delete A,p&&(p[v]=null),m&&m.labels&&(m.labels[v]=null);if(!L&&!A)L=A=null;else if(H.value!==null){if(H)ft=H.isVline,lt=H.isTrend,ct=H.isGrid,k=H.tooltext,ht=H.value,pt=H.color,vt=H.dashStyle,mt=lt?H.to:null,B=H._isStackSum;if(N)j=N.text,F=I&&I.color,z=N.offsetScaleIndex||0,W=N.offsetScale,q=I&&I.fontSize,U=I&&I.lineHeight,X=N.rotation,V=N.x||0,$=N.y||0,J=N.align,Q=N.verticalAlign,G=N.textAlign,it=(it=N&&N.borderWidth)?it.indexOf("px")!==-1?it.replace("px",""):1:1;q&&(bt=q,bt.indexOf("px")!==-1&&(bt=bt.replace("px",""),bt=parseFloat(bt)));U&&(wt=U,wt.indexOf("px")!==-1&&(wt=wt.replace("px",""),wt=parseFloat(wt)));n?(I=this.getAxisPosition(ht),_=lt?this.getAxisPosition(mt)||I:I,at=I!==_?!0:!1,st=["M",d.x,I,"L",d.toX,_],ft?e.logic.isBar&&(tt=e.yAxis[z],!B&&!isNaN(W)&&W>=0&&W<=1&&(W=tt.min+(tt.max-tt.min)*W),et=tt.getAxisPosition(w(W,ht))+V):et=N?Z=this.axisData.isOpposite||J==="right"?d.toX+V:d.x+V:Z=this.axisData.isOpposite?d.toX:d.x):(Z=lt?this.getAxisPosition(ht):this.getAxisPosition(ht)||0,et=lt?this.getAxisPosition(mt)||Z:Z,!lt&&!ft&&rt>0&&(Z+=rt,et+=rt,S+=rt),at=Z!==et?!0:!1,st=["M"+Z,d.y,"L",et,d.toY],P=Z+x<E||Z+x>S?"hidden":P,ft?(tt=e.yAxis[z],!B&&!isNaN(W)&&W>=0&&W<=1&&(W=tt.min+(tt.max-tt.min)*(1-W)),I=tt.getAxisPosition(w(W,ht))+$,I-=T+parseFloat(it)):this.axisData.opposite||Q==="top"&&!ct?(I=d.y+$,yt="bottom"):I=d.toY+$,_=I);if(A){if(N&&N.backgroundColor)N.labelBgClr=M({color:N.backgroundColor,alpha:N.backgroundOpacity*100});if(N&&N.borderColor)N.labelBorderClr=M({color:N.borderColor,alpha:"100"});nt=lt?J==="left"?I:_:_;tt=et- +!ft*r*rt;tt=et- +!ft*r*rt+r*(V||0);Et=bt?bt*.2:2;Y=!n?et+x<E||et+x>S?"hidden":Y:Y;_=G==="left"?"start":G==="right"?"end":"middle";B?(yt="bottom",nt+=bt*.4,g.push(A)):r&&this.axisData.opposite?(yt=ut,_=X?"start":"middle"):yt=Q;/\n|<br\s*?\/?>/ig.test(j)&&!X&&ct&&(yt=r&&this.axisData.opposite&&!X?"middle":ot,nt-=wt);A.attr({transform:" "});A.attr({text:j,fill:F||pt,"text-bound":N&&[N.labelBgClr,N.labelBorderClr,it,Et],title:N&&(N.originalText||""),x:tt,y:nt,"text-anchor":_,"vertical-align":yt,visibility:Y});X&&A.rotate(X,tt,nt);Y=n?nt.toString():et.toString();(N=y[Y])?N.elements.push(A):(N={counter:v,keyProp:Y,elements:[A]},y[Y]=N,b.push(N))}L&&(L.attr({path:R(st,dt),stroke:pt,"stroke-width":dt,"shape-rendering":!at&&dt>=1?f:void 0,"stroke-dasharray":vt?vt:void 0,visibility:P}),C&&k&&dt<D&&P&&(O=t.path(st).attr({stroke:l,"stroke-width":D,ishot:!0})),O=O||L,C&&O.tooltip(k),Y=n?I.toString():Z.toString(),(N=y[Y])?N.elements.push(L):(N={counter:v,keyProp:Y,elements:[L]},y[Y]=N,b.push(N)));if(H&&H.isMinLabel)this.poi.min={label:A,index:v,line:L};else if(H&&H.isMaxLabel)this.poi.max={label:A,index:v,line:L};else if(H&&H.isZeroPlane)this.poi.zero={label:A,index:v,line:L};L=A=null}}}t=g.length;St=w(e.options.plotOptions.series.animation.duration,0);if(t>0)for(v=0;v<t;v+=1)(e=g[v])&&function(e){e.hide();setTimeout(function(){e.show()},St)}(e)},drawPlotBands:function(){var e=this.renderer,t=e.paper,n=this.isVertical,r=e.options.chart.hasScroll,i=this.belowBandGroup,s=this.topBandGroup,o=this.belowLabelGroup,u=this.topLabelGroup,a=this.axisData.plotBands||[],f=this.bands=this.bands||[],l=this.bandLabels=this.bandLabels||[],c=this.relatedObj.canvasObj,h=this.elements||{},p=this.cache||{},d=p.hashTable,p=p.indexArr,v=n?this.startY:this.startX,m=n?this.endY:this.endX,g=this.primaryOffset,e=(e.tooltip||{}).enabled!==!1,y,b,E,S,x,T,N,C,k,L,A,O,_,D,P,H,B,j,F,I,q,R,U,z,W,X,V,$,J,G,Y,Z,et,tt,nt=K(a.length,f.length);for(tt=0;tt<nt;tt+=1){b=S="visible";E=f[tt];x=l[tt];_=(O=(T=a[tt])&&T.label)&&O.style;if(!E&&T){if(E=T.zIndex>3?s:i,Z=T.zIndex>3?u:o,E=f[tt]=t.rect(E),h.bands=h.bands||[],h.bands[tt]=E,O&&O.text)x=l[tt]=E.label=t.text(Z).css(_),h.labels=h.labels||[],h.labels[tt]=x}else if(!T&&E){h.labels&&(l[tt]=h.labels[tt]=null);E.label&&E.label.remove();f[tt]=h.bands[tt]=null;E.remove();delete E;continue}if(T)y=T.tooltext,N=T.to,C=T.from,k=T.value,L=T.width,A=T.color;if(O)j=_&&_.fontSize,F=_&&_.lineHeight,D=O.borderWidth,P=O.align,H=O.x,B=O.y,R=O.text,U=O.originalText,z=_&&_.color,W=O.backgroundColor,X=O.backgroundOpacity,V=O.borderColor,I=O.textAlign,q=O.verticalAlign,$=O.borderType;j&&(T=j,T.indexOf("px")!==-1&&(T=T.replace("px",""),parseFloat(T)));F&&(T=F,T.indexOf("px")!==-1&&(T=T.replace("px",""),parseFloat(T)));et=this.getAxisPosition(w(N,k));Y=this.getAxisPosition(w(C,k));_=n?c.x:Y;T=n?et:c.y;Z=n?c.w:(!this.axisData.reversed?et-Y:Y-et)||L||1;et=n?Y-et||1:c.h;Y=_+Z;Z=Q(Z);et<0&&(et=Q(et),T-=et);S=r?!0:!n?_+g>m||Y+g<v?"hidden":S:S;E&&(E.attr({x:_,y:T,width:Z,height:et,fill:M(A),"stroke-width":0,visibility:S}),e&&y&&E.tooltip(y));if(x&&O){(S=D)&&S.indexOf("px")!==-1&&S.replace("px","");S=n?P==="right"?c.toX+H:c.x+H:_+Z/2;E=n?T+et/2:c.toY+B;b=!n?S+g<v||S+g>m?"hidden":b:b;if(W)J=O.labelBgClr=M({color:W,alpha:X*100});if(V)G=O.labelBorderClr=M({color:V,alpha:"100"});I=I==="left"?"start":I==="right"?"end":"center";x.attr({text:R,title:U||"",fill:z,"text-bound":[J,G,D,j*.2,$==="solid"?!1:!0],x:S,y:E,"text-anchor":I,"vertical-align":q,visibility:b});O=n?E.toString():S.toString();(b=d[O])?b.elements.push(x):(b={counter:tt,keyProp:O,elements:[x]},d[O]=b,p.push(b))}}},drawAxisName:function(){var e;var t=this.axisData,n=t.title||{},r=n&&n.style,i=n.align,s=n.centerYAxisName||!1,o=this.renderer.paper,u=this.isVertical,a=this.relatedObj.canvasObj,f=w(t.offset,0)+w(n.margin,0),l=n.text||"",c=this.name||void 0,t=t.opposite,h=this.layerBelowDataset,h=h.nameGroup=h.nameGroup||o.group("axis-name",h),p=w(n.rotation,!t?270:90),d=u?t?a.toX+f:a.x-f:(a.x+a.toX)/2,v,m,g,y,b;if(r)m=r.color,g=M({color:r.backgroundColor,alpha:100}),y=M({color:r.borderColor,alpha:100}),(e=(r=r.border)&&r.split(" "),r=e)&&r.length>0&&(b=r[0].indexOf("px")!=-1?parseFloat(r[0].replace("px","")):parseFloat(r[0]));s=u?i==="low"?a.toY:s?(a.y+a.toY)/2:this.renderer.chartHeight/2:a.toY+f;!c&&l?c=this.name=o.text(h).css(n.style):!l&&c&&c.remove();if(!isNaN(p)&&p&&u)v=n.style.fontSize,v=v.indexOf("px")!=-1?v.replace("px",""):v,d=t?d+parseFloat(v):d-parseFloat(v);c&&c.attr({text:l,title:n.originalText||"",fill:m||"#000000","text-bound":[g,y,b,v*.1],"text-anchor":i==="low"?!t?"start":"end":"middle","vertical-align":u?!p?"middle":"top":t?ut:"top",transform:u?"t"+d+","+s+"r"+p:"t"+d+","+s});this.elements.name=c},drawLine:function(){var e=this.axisData,t=this.renderer.paper,n=this.min,r=this.max,i=this.isVertical,s=e.opposite,o=this.layerBelowDataset,o=this.lineGroup=this.lineGroup||t.group("axis-lines",o),u=e.lineColor,e=e.lineThickness,a=this.relatedObj.canvasObj,f;i?(n=this.getAxisPosition(n),r=this.getAxisPosition(r),i=f=!s?a.x:a.toX):(i=a.x,f=a.toX,n=r=!s?a.toY:a.y);this.elements.axisLine=t.path(["M",i,n,"L",f,r],o).attr({stroke:u,"stroke-width":e})},realtimeUpdateX:function(e){if(e>0){for(var t=this.axisData.plotBands,n=this.min+e,r,i=t.length;i--;)if((r=t[i])&&!r.isNumVDIV)r.value<n||r.from<n||r.to<n?t.splice(i,1):(r.value!==void 0&&(r.value-=e),r.from!==void 0&&(r.from-=e),r.to!==void 0&&(r.to-=e));this.drawPlotLine();this.drawPlotBands()}},realtimeUpdateY:function(e,t){var n=this.axisData,r=this.min=n.min=e,n=this.span=(this.max=n.max=t)-r,n=this.pixelRatio=this.isVertical?this.relatedObj.canvasObj.h/n:this.relatedObj.canvasObj.w/n;this.pixelValueRatio=this.isReverse?-n:n;this.drawPlotLine();this.drawPlotBands()}};lt.prototype.constructor=lt;var ct=function(e,t,n,r){return $(t-n[1]-r.top,e-n[0]-r.left)};r("renderer.cartesian",{drawCanvas:function(){var e;var t=this.options.chart||{},r=t.plotBackgroundColor,i=this.paper,s=this.elements,o=s.canvas,a=s.canvas3DBase,f=s.canvas3dbaseline,a=s.canvasBorder,l=s.canvasBg,c=this.canvasTop,h=this.canvasLeft,p=this.canvasWidth,d=this.canvasHeight,v=w(t.plotBorderRadius,0),l=t.plotBorderWidth,m=l*.5,g=t.plotBorderColor,y=t.isBar,b=t.is3D,E=t.use3DLighting,S=t.showCanvasBg,x=t.canvasBgDepth,T=t.showCanvasBase,N=t.canvasBaseColor3D,C=t.canvasBaseDepth,k=t.plotShadow,L=u&&l===0&&k&&k.enabled,A=t.xDepth||0,t=t.yDepth||0,O=this.layers,_=O.background,D=O.dataset;O.tracker=O.tracker||i.group("hot").insertAfter(D);O.datalabels=O.datalabels||i.group("datalabels").insertAfter(D);e=O.canvas=O.canvas||i.group("canvas").insertAfter(_),O=e;if(!a)s.canvasBorder=i.rect(h-m,c-m,p+l,d+l,v,O).attr({"stroke-width":l,stroke:g,"stroke-linejoin":l>2?"round":"miter"}).shadow(k);s["clip-canvas"]=[K(0,h-A),K(0,c-t),K(1,p+A*2),K(1,d+t*2)];s["clip-canvas-init"]=[K(0,h-A),K(0,c-t),1,K(1,d+t*2)];if(b){if(S)l=y?s.canvasBg=i.path(["M",h,",",c,"L",h+x*1.2,",",c-x,",",h+p-x,",",c-x,",",h+p,",",c,"Z"],O):s.canvasBg=i.path(["M",h+p,",",c,"L",h+p+x,",",c+x*1.2,",",h+p+x,",",c+d-x,",",h+p,",",c+d,"Z"],O),l.attr({"stroke-width":0,stroke:"none",fill:M(r)});if(T){a=y?s.canvas3DBase=i.cubepath(h-A-C-1,c+t+1,C,d,A+1,t+1,O):s.canvas3DBase=i.cubepath(h-A-1,c+d+t+1,p,C,A+1,t+1,O);a.attr({stroke:"none","stroke-width":0,fill:[N.replace(F,I),!E]});if(!f)f=s.canvas3dbaseline=i.path(void 0,O);f.attr({path:y?["M",h,c,"V",d+c]:["M",h,c+d,"H",p+h],stroke:n.tintshade(N.replace(F,I),.05).rgba})}}if(!o&&r)s.canvas=i.rect(h,c,p,d,v,O).attr({"stroke-width":0,stroke:"none",fill:M(r)}).shadow(L)},drawAxes:function(){var e=this.logic,t=this.options,n=this.paper,r=this.layers,i=r.dataset,s=r.layerBelowDataset=r.layerBelowDataset||n.group("axisbottom"),o=r.layerAboveDataset=r.layerAboveDataset||n.group("axistop"),n=this.xAxis=[],r=this.yAxis=[];s.insertBefore(i);o.insertAfter(i);if(t.xAxis&&t.xAxis.length){i=0;for(s=t.xAxis.length;i<s;i+=1)n[i]=this.xAxis[i]=new lt(t.xAxis[i],this,e.isBar)}else n[0]=this.xAxis[0]=new lt(t.xAxis,this,e.isBar);if(t.yAxis){i=0;for(s=t.yAxis.length;i<s;i+=1)r[i]=this.yAxis[i]=new lt(t.yAxis[i],this,!e.isBar,!e.isBar)}i=0;for(s=r.length;i<s;i+=1)r[i].draw();i=0;for(s=n.length;i<s;i+=1)n[i].draw()},drawScroller:function(){var e=this,t=e.options,n=e.paper,r=e.layers,i=e.xAxis["0"]||{},s=(i.axisData||{}).scroll||{},o=e.canvasTop,u=e.canvasLeft,a=e.canvasWidth,f=e.canvasHeight,l=J(e.canvasBorderWidth,2),h,p,d,v,g,y,b,E,S,x,N,C,k,L,A,O=r.dataset,M=r.datalabels,_=r.tracker;v=r.layerAboveDataset;var D,P;if(s.enabled)D=r.scroll=r.scroll||n.group("scroll").insertAfter(v),v=s.scrollRatio,t=w(t[T].xAxisScrollPos,s.startPercent),g=s.viewPortMax,y=s.viewPortMin,p=s.vxLength,b=G(p),E=s.buttonWidth,S=s.height,x=s.padding,N=s.color,C=s.flatScrollBars,p=s.windowedCanvasWidth=i.getAxisPosition(p),h=s.fullCanvasWidth=i.getAxisPosition(g-y)-p,d=c(t*h),k=e.fusionCharts.jsVars._reflowData,L={hcJSON:{_FCconf:{xAxisScrollPos:0}}},A=L.hcJSON._FCconf,r.scroller=n.scroller(u-l,o+f+x,a+l*2,S,!0,{showButtons:!0,displayStyleFlat:C,buttonWidth:E,scrollRatio:v,scrollPosition:t},D).data("fullCanvasWidth",h).data("windowedCanvasWidth",p).attr({"scroll-display-style":C,fill:N}).scroll(function(t){d=-c(t*h);O&&O.transform(["T",d,0]);M&&M.transform(["T",d,0]);_&&_.transform(["T",d,0]);i.setOffset&&i.setOffset(d);scrollStateObj={position:t,direction:t-s.lastPos||0,vxLength:b};A.xAxisScrollPos=s.lastPos=t;m(k,L,!0);if(scrollStateObj.direction!==0)for(P=0;P<e.datasets.length;P++)e[e.datasets[P].drawPlot+"Scroll"]&&e[e.datasets[P].drawPlot+"Scroll"].call(e,e.plots[P],e.datasets[P],scrollStateObj)});return s.enabled},finalizeScrollPlots:function(){var e=this,n=e.container,r=e.elements,i=e.layers,s=i.scroller,o=i.dataset,u=i.datalabels,i=i.tracker,a,f={},l,h=e.xAxis["0"]||{},d=(h.axisData||{}).scroll||{},v=w(e.options[T].xAxisScrollPos,d.startPercent),m=d.fullCanvasWidth;d.enabled&&(o.attr({"clip-rect":r["clip-canvas"]}),u.attr({"clip-rect":r["clip-canvas"]}),i.attr({"clip-rect":r["clip-canvas"]}),r=function(n){var r=e.elements.canvas,i=a.left,o=a.top,u=n.type,c=_&&t.getTouchEvent(n)||p,i=n.layerX||c.layerX||(n.pageX||c.pageX)-i,n=n.layerY||c.layerY||(n.pageY||c.pageY)-o;switch(u){case"dragstart":l=r.isPointInside(i,n);f.ox=l&&i||null;if(!l)return!1;break;case"dragend":l=!1;f={};break;default:if(!l)break;r=i-f.ox;f.ox=i;f.scrollPosition=s.attrs["scroll-position"]-r/m;s.attr({"scroll-position":f.scrollPosition})}},_&&(a=t.getPosition(n),n&&(y(n,"dragstart drag dragend",r),g(n,"dragstart drag dragend",r))),v>0&&(n=-c(v*m),o&&o.transform(["T",n,0]),u&&u.transform(["T",n,0]),i&&i.transform(["T",n,0]),h.setOffset&&h.setOffset(n)))},drawPlotColumn:function(e,t,r){var i=this,s=e.data,o=s.length,u=e.items,a=e.graphics||(e.graphics=[]),f=i.paper,h=i.logic,p=i.layers,m=i.options,g=i.elements,y=m.chart,E=(m.tooltip||{}).enabled!==!1,S=i.definition.chart,x=m.plotOptions.series,N=i.xAxis[t.xAxis||0],C=i.yAxis[t.yAxis||0],k=C.axisData.reversed,L=h.isLog,A=h.is3D,O=h.isStacked,_=h.isWaterfall,H=h.isCandleStick,B=b(N.axisData.scroll,{}),j=r||{},F=B.enabled,m=w(j.position,m[T].xAxisScrollPos,B.startPercent),I=j.vxLength||G(B.vxLength),R=j.scrollStart||K(0,c((o-I)*m)-1)||0,j=j.scrollEnd||J(o,R+I+2)||o,B=y.canvasBorderOpacity=n.color(y.plotBorderColor).opacity,m=i.canvasBorderWidth,B=y.isCanvasBorder=B!==0&&m>0,z;P(h.name);var h=r!==U?0:isNaN(+x.animation)&&x.animation.duration||x.animation*1e3,W=t.numColumns||1,X=t.columnPosition||0,m=y.use3DLighting,V=t.visible===!1?"hidden":"visible",$=y.overlapColumns,Y=N.getAxisPosition(0),Y=N.getAxisPosition(1)-Y,Z=S&&S.plotspacepercent,et=w(S&&S.plotpaddingpercent),S=x.groupPadding,tt=x.maxColWidth,S=(1-Z*.01)*Y||J(Y*(1-S*2),tt*W),Z=S/2;S/=W;var nt=J(S-1,W>1?!$&&et===U?4:et>0?S*et/100:0:0),X=X*S-Z+nt/2,rt=C.max,it=C.min,W=rt>0&&it>=0,$=rt<=0&&it<0,et=rt>0&&it<0,Z=$||k&&W?rt:L||W?it:0;z=C.yBasePos=C.getAxisPosition(Z);var tt=w(y.useRoundEdges,0),st=x.dataLabels.style,ot=p.dataset=p.dataset||f.group("dataset-orphan"),ut=p.datalabels=p.datalabels||f.group("datalabels").insertAfter(ot),p=p.tracker,at=i.canvasTop,ft=i.canvasLeft,lt=i.canvasWidth,ct=i.canvasBottom,ht=i.canvasRight,pt,dt,vt;parseInt(st.lineHeight,10);var mt,gt,yt,bt,wt,Et;!r&&ut.hide();S-=nt;F&&R>j-I-2&&(R=K(0,j-I-2));if(O)Et=ot.shadows||(ot.shadows=f.group("shadows",ot).toBack());nt=ot.column||(ot.column=f.group("columns",ot));!H&&!A&&!F&&(nt.attrs["clip-rect"]||nt.attr({"clip-rect":g["clip-canvas"]}));_&&nt.toBack();if(A){dt=y.xDepth||0;vt=y.yDepth||0;r=nt.negative=nt.negative||f.group("negative-values",nt);I=nt.column=nt.column||f.group("positive-values",nt);bt=nt.zeroPlane;if(!bt&&it<0&&rt>=0)bt=nt.zeroPlane=f.group("zero-plane",nt).insertBefore(I),pt=y.zeroPlaneColor,g.zeroplane=f.cubepath(ft-dt,z+vt,lt,1,dt,vt,bt).attr({fill:[pt,!m],stroke:"none","stroke-width":1});if(!(bt=r.data("categoryplots")))r.data("categoryplots",Array(o)),bt=r.data("categoryplots");if(!(pt=I.data("categoryplots")))I.data("categoryplots",Array(o)),pt=I.data("categoryplots");for(g=0;g<o;g+=1)bt[g]=bt[g]||f.group(r),pt[g]=pt[g]||f.group(I)}else wt=nt;for(g=R;g<j;g+=1){y=s[g];R=y.y;o=y.toolText;r=I=null;if(R===null){if(st=u[g])r=st.graphic,A||r.attr({height:0})}else{mt=!1;it=w(y.x,g);gt=y.link;rt=d(y.borderWidth)||0;ot=y._FCW*Y;it=N.getAxisPosition(y._FCX)||N.getAxisPosition(it)+X;st=y.previousY;yt=C.getAxisPosition(st||Z);lt=C.getAxisPosition(R+(st||0));nt=Q(lt-yt);ot=ot||S;if(A){R<0&&(lt=yt,mt=!0);wt=R<0?bt:pt;if(!(st=u[g]))st=u[g]={index:g,value:R,graphic:f.cubepath(wt[g]),dataLabel:null,tracker:null,hot:null};r=st.graphic;r.attr({cubepath:[it-dt,z+vt,ot,0,dt,vt],fill:[M(y.color),!m],stroke:rt&&M(y.borderColor)||"NONE","stroke-width":rt,visibility:V}).shadow(x.shadow&&y.shadow,Et).animate({cubepath:[it-dt,lt+vt,ot,nt,dt,vt]},h,"normal",function(){ut.show()}).data("BBox",{height:nt,width:ot,x:it,y:lt});if(gt||E){!O&&nt<D&&(lt-=(D-nt)/2,nt=D);if(!st.tracker)st.tracker=f.cubepath(p);I=st.tracker;I.attr({cubepath:[it-dt,lt+vt,ot,nt,dt,vt],cursor:gt?"pointer":"",stroke:rt&&l||"NONE","stroke-width":rt,fill:l,ishot:!!gt,visibility:V}).click(function(){var e=this.data("link");e&&i.linkClickFN.call({link:e},i)}).tooltip(o).data("link",gt);I._.cubetop.click(function(){var e=this.data("link");e&&i.linkClickFN.call({link:e},i)}).tooltip(o).data("link",gt);I._.cubeside.click(function(){var e=this.data("link");e&&i.linkClickFN.call({link:e},i)}).tooltip(o).data("link",gt)}O&&mt&&(r.toBack(),I&&I.toBack())}else{mt=!1;if(!L&&!k&&R<0||!L&&k&&R>0)lt=yt,mt=!0;k&&!et&&R>0&&(lt=yt-nt,mt=!1);_&&R<0&&q(st)&&(lt-=nt,mt=!0);!H&&!F&&(v(lt)<=at&&(nt-=at-lt- +B,lt=at- +B),c(lt+nt)>=ct&&(nt-=c(lt+nt)-ct+ +!!rt+ +B),rt<=1&&(c(it)<=ft&&(ot+=it,it=ft-rt/2+ +!!rt- +B,ot-=it),c(it+ot)>=ht&&(ot=ht-it+rt/2- +!!rt+ +B)));yt=n.crispBound(it,lt,ot,nt,rt);it=yt.x;lt=yt.y;ot=yt.width;nt=yt.height;if(!H&&B&&(!q(st)||_&&st===R&&R===y._FCY))if($&&!k&&!L)z=lt-(at-rt/2),nt+=z,z=lt-=z;else if(L||W||k&&$)nt=ct-lt+rt/2,z=lt+nt;_&&st&&rt>0&&x.connectorOpacity!==0&&x.connectorWidth===1&&x.connectorDashStyle&&(nt-=1,R<0&&(lt+=1));nt<=1&&(nt=1,lt+=R<0?0:-nt);t._columnWidth=ot;if(!(st=u[g]))if(st=u[g]={index:g,value:R,width:ot,graphic:f.rect(wt),valueBelowPlot:mt,dataLabel:null,tracker:null},r=st.graphic,r.attr({x:it,y:z,width:ot,height:0,r:tt,fill:M(y.color),stroke:M(y.borderColor),"stroke-width":rt,"stroke-dasharray":y.dashStyle,"stroke-linejoin":"miter",visibility:V}).shadow(x.shadow&&y.shadow,Et).animate({y:lt,height:nt||1},h,"normal",function(){ut.show()}).data("BBox",yt),gt||E){if(!st.tracker)st.tracker=f.rect(p);!O&&nt<D&&(lt-=(D-nt)/2,nt=D);I=st.tracker;I.attr({x:it,y:lt,width:ot,height:nt,r:tt,cursor:gt?"pointer":"",stroke:l,"stroke-width":rt,fill:l,ishot:!!gt,visibility:V}).click(function(){var e=this.data("link");e&&i.linkClickFN.call({link:e},i)}).tooltip(o).data("link",gt)}}gt=i.drawPlotColumnLabel(e,t,g,it,lt)}gt&&a.push(gt);r&&a.push(r);I&&a.push(I);i.drawTracker&&i.drawTracker.call(i,e,t,g)}e.visible=t.visible!==!1;return e},drawPlotColumnScroll:function(e,t,n){var r=e.data.length,i=e.items,s;s=n.vxLength;var o=K(0,c((r-s)*n.position)-1)||0,r=J(r,o+s+2)||r;o>r-s-2&&(o=K(0,r-s-2));n.scrollEnd=r;for(s=o;s<r;s++)if(!i[s]){n.scrollStart=s;this.drawPlotColumn(e,t,n);break}},drawPlotColumnLabel:function(e,t,n,r,i,s){var o;var r=this.options,u=this.logic,f=r.chart,l=this.paper,c=this.layers,r=r.plotOptions.series.dataLabels.style,h=f.rotateValues===1?270:0,p=this.canvasHeight,d=this.canvasTop,v=e.data[n],m=e.items[n],g=f.valuePadding+2,y=m.graphic,e=m.dataLabel,n=b(m.valueBelowPlot,v.y<0),w=u.isStacked,u=u.is3D,E=f.xDepth||0,S=f.yDepth||0,x=v.displayValue,t=t.visible===!1?"hidden":"visible",T=f.placeValuesInside,f=!1,s=s||c.datalabels;q(x)&&x!==a&&v.y!==null?(e?h&&e.rotate(360-h):(e=m.dataLabel=l.text().attr({text:x}).css(r),f=!0),c=e.getBBox(),y=y.data("BBox"),l=y.height,o=m=h?c.width:c.height,c=o,c+=g,g=m*.5+g,y=y.x+y.width*.5,p=n?d+p-(i+l):i-d,w?(i=i+l*.5+(S||0),y-=E):T?l>=c?(i+=n?l-g:g,v._valueBelowPoint=1,u&&(y-=E,i+=S)):p>=c?(i+=n?l+g:-g,u&&n&&(y-=E,i+=S)):(i+=n?l-g:g,v._valueBelowPoint=1,u&&(y-=E,i+=S)):p>=c?(i+=n?l+g:-g,u&&n&&(y-=E,i+=S)):(i+=n?l-g:g,v._valueBelowPoint=1,u&&(y-=E,i+=S)),e.attr({x:y,y:i,visibility:t}),h&&e.attr("transform","T0,0,R"+h),f&&s.appendChild(e),f&&b(r.backgroundColor,r.borderColor)!==a&&e.attr({"text-bound":[r.backgroundColor,r.borderColor,1,2]})):e&&e.attr({text:a});return e},drawPlotFloatedcolumn:function(e,t){this.drawPlotColumn.call(this,e,t)},drawPlotColumn3d:function(e,t){this.drawPlotColumn.call(this,e,t)},drawPlotBar:function(e,t){var r=this,i=e.data,s=i.length,o=e.items,u=e.graphics=[],a=r.paper,f=r.logic,h=r.layers,p=r.options,m=r.elements,g=p.chart,y=(p.tooltip||{}).enabled!==!1,b,E=r.definition.chart,p=p.plotOptions.series,S=r.xAxis[t.xAxis||0],x=r.yAxis[t.yAxis||0],T=f.is3D,N=f.isStacked,C=g.canvasBorderOpacity=n.color(g.plotBorderColor).opacity,k=r.canvasBorderWidth,C=g.isCanvasBorder=C!==0&&k>0;P(f.name);var f=isNaN(+p.animation)&&p.animation.duration||p.animation*1e3,L=t.numColumns||1,A=t.columnPosition||0,k=g.use3DLighting,O=t.visible===!1?"hidden":"visible",_=g.overlapColumns,H=S.getAxisPosition(0),H=S.getAxisPosition(1)-H,B=E&&E.plotspacepercent,E=w(E&&E.plotpaddingpercent),j=p.groupPadding,h=p.maxColWidth,B=(1-B*.01)*H||J(H*(1-j*2),h*L),H=B/2;B/=L;var _=J(B-1,L>1?!_&&E===U?4:E>0?B*E/100:0:0),L=B-_,A=A*B-H+_/2,F=x.max,I=x.min,_=F<0&&I<0?F:F>0&&I>0?I:0,E=x.getAxisPosition(_),H=w(g.useRoundEdges,0),q=r.canvasTop,B=r.canvasLeft,R=r.canvasHeight,j=r.canvasRight,z,W,X,V,$,K,G,Y,Z,h=r.layers;$=h.dataset=h.dataset||a.group("dataset-orphan");var et=h.datalabels=h.datalabels||a.group("datalabels").insertAfter($),h=h.tracker,tt,nt,rt,it,st;et.hide();if(N)it=$.shadows||($.shadows=a.group("shadows",$).toBack());G=$.column=$.column||a.group("bars",$);if(T){z=g.xDepth||0;W=g.yDepth||0;$=G.negative=G.negative||a.group("negative-values",G);K=G.column=G.column||a.group("positive-values",G);nt=G.zeroPlane;if(!nt&&I<0&&F>=0)nt=G.zeroPlane=a.group("zero-plane",G).insertBefore(K),Z=g.zeroPlaneColor,m.zeroplane=a.cubepath(E-z,q+W,1,R,z,W,nt).attr({fill:[Z,!k],stroke:"none","stroke-width":0});if(!(nt=$.data("categoryplots")))$.data("categoryplots",Array(s)),nt=$.data("categoryplots");if(!(Z=K.data("categoryplots")))K.data("categoryplots",Array(s)),Z=K.data("categoryplots");for(m=0;m<s;m+=1)nt[m]=nt[m]||a.group($),Z[m]=Z[m]||a.group(K)}else G.attrs["clip-rect"]||G.attr({"clip-rect":m["clip-canvas"]}),rt=G;m=0;for(q=s-1;m<s;m+=1,q-=1){R=i[m];F=R.y;tt=I=null;if(F===null){if(V=o[m])tt=V.graphic,T||tt.attr({width:0})}else{G=w(R.x,m);$=R.link;b=R.toolText;K=d(R.borderWidth)||0;G=S.getAxisPosition(G)+A;X=R.previousY;V=x.getAxisPosition(X||_);Y=x.getAxisPosition(F+(X||0));X=Q(Y-V);F>0&&(Y=V);if(T){rt=F<0?nt:Z;if(!(V=o[m]))V=o[m]={index:m,value:F,graphic:a.cubepath(rt[q]),dataLabel:null,tracker:null};tt=V.graphic;tt.attr({cubepath:[E-z,G+W,0,L,z,W],fill:[M(R.color),!k],stroke:K&&M(R.borderColor)||"NONE","stroke-width":K,"stroke-dasharray":R.dashStyle,cursor:$?"pointer":"",visibility:O}).shadow(p.shadow&&R.shadow,it).animate({cubepath:[Y-z,G+W,X,L,z,W]},f,"normal",function(){et.show()}).data("BBox",{height:L,width:X,x:Y,y:G});if($||y){!N&&X<D&&(Y-=(D-X)/2,X=D);if(!V.tracker)V.tracker=a.cubepath(h);I=V.tracker;I.attr({cubepath:[Y-z,G+W,X,L,z,W],cursor:$?"pointer":"",stroke:K&&l||"NONE","stroke-width":K,fill:l,ishot:!!$}).click(function(){var e=this.data("link");e&&r.linkClickFN.call({link:e},r)}).tooltip(b).data("link",$);I._.cubetop.click(function(){var e=this.data("link");e&&r.linkClickFN.call({link:e},r)}).tooltip(b).data("link",$);I._.cubeside.click(function(){var e=this.data("link");e&&r.linkClickFN.call({link:e},r)}).tooltip(b).data("link",$)}if(!N||N&&F<0)tt.toBack(),I&&I.toBack()}else{v(Y)<=B&&(X+=Y,Y=B-K/2+ +!!K- +C,g.xAxisLineVisible&&!C&&(Y-=1),X-=Y);c(Y+X)>=j&&(Y-=K/2+ +!K,X=j-Y+K/2- +!!K+ +C);st=n.crispBound(Y,G,X,L,K);Y=st.x;G=st.y;X=st.width;L=st.height;X<=1&&(X=1,Y+=F<0?-X:0);if(!(V=o[m]))V=o[m]={index:m,value:F,height:L,graphic:a.rect(rt),dataLabel:null,tracker:null};tt=V.graphic;tt.attr({x:E,y:G,width:0,height:L,r:H,fill:M(R.color),stroke:M(R.borderColor),"stroke-width":K,"stroke-dasharray":R.dashStyle,"stroke-linejoin":"miter",cursor:$?"pointer":"",visibility:O}).shadow(p.shadow&&R.shadow,it).animate({x:Y,width:X||1},f,"normal",function(){et.show()}).data("BBox",st);if($||y){!N&&X<D&&(Y-=(D-X)/2,X=D);if(!V.tracker)V.tracker=a.rect(h);I=V.tracker;I.attr({x:Y,y:G,width:X,height:L,r:H,cursor:$?"pointer":"",stroke:l,"stroke-width":K,fill:l,ishot:!!$}).click(function(){var e=this.data("link");e&&r.linkClickFN.call({link:e},r)}).tooltip(b).data("link",$)}}b=r.drawPlotBarLabel(e,t,m,Y,G)}b&&u.push(b);tt&&u.push(tt);I&&u.push(I);r.drawTracker&&r.drawTracker.call(r,e,t,m)}e.visible=t.visible!==!1;return e},drawPlotBarLabel:function(e,t,n,r,i,s){var o=this.options,u=this.logic,f=o.chart,l=this.paper,c=this.layers,o=o.plotOptions.series.dataLabels.style,h=this.canvasLeft,p=this.canvasWidth,d=e.data[n],v=e.items[n],m=f.valuePadding+2,g=v.graphic,e=v.dataLabel,n=d.y<0,y=u.isStacked,u=u.is3D,w=f.xDepth||0,E=f.yDepth||0,S=d.displayValue,t=t.visible===!1?"hidden":"visible",f=f.placeValuesInside,x=!1,s=s||c.datalabels;if(q(S)&&S!==a&&d.y!==null){if(!e)e=v.dataLabel=l.text(),x=!0;e.attr({text:S,title:d.originalText||"",fill:o.color}).css(o);l=e.getBBox();c=g.data("BBox");g=c.height;d=c.width;c=v=l.width;c+=m;i+=g*.5;g=r+(n?0:d);m=v*.5+m;r=n?r-h:h+p-(r+d);y?(g+=(n?d:-d)*.5,g-=u?w:0,i+=u?E:0):(f?d>=c?(g+=n?m:-m,u&&(g-=w,i+=E)):(g+=n?-m:m,u&&n&&(g-=w)):r>=c?(g+=n?-m:m,u&&n&&(g-=w,i+=w)):(g+=n?m:-m,u&&(g-=w,i+=E)),g>h+p&&(g=h+p-l.width*.5-4),g<h&&(g=h+l.width*.5+4));e.attr({x:g,y:i,visibility:t});x&&s.appendChild(e);x&&b(o.backgroundColor,o.borderColor)!==a&&e.attr({"text-bound":[o.backgroundColor,o.borderColor,1,2]})}else e&&e.attr({text:a});return e},drawPlotBar3d:function(e,t){this.drawPlotBar.call(this,e,t)},drawPlotLine:function(e,t){var r;var i=this,s=i.paper,o=i.elements,u=i.options,a=u.chart,f=i.logic,c=u.plotOptions.series,h=e.items,p=e.graphics=e.graphics||[],v,m=i.xAxis[t.xAxis||0],g=i.yAxis[t.yAxis||0],y=f.multisetRealtime||f.dragExtended,b=f.isWaterfall,E,S,x;E=0;var T=(u.tooltip||{}).enabled!==!1,N,u=isNaN(+c.animation)&&c.animation.duration||c.animation*1e3,C=a.xDepth||0,k=a.yDepth||0,L=a.series2D3Dshift,f=i.logic,A=t.step,O=t.drawVerticalJoins,_=t.useForwardSteps;P(f.name);var f=e.data,B=t.visible===!1?"hidden":"visible",j,F=f.length,I=m.getAxisPosition(0);v=m.getAxisPosition(1)-I;var I=v*F,q=m.axisData.scroll||{},a=a.hasScroll||!1,R=c.connectNullData,U,z,W,X,V,$,K=null,Q=c.connectorWidth=d(t.lineWidth),G=t.color;c.connectorOpacity=n.color(G).opacity;var Y,Z,et=c.connectorDashStyle=t.dashStyle,tt,nt,rt,it=i.layers;j=it.dataset=it.dataset||s.group("dataset-orphan");var st=it.datalabels=it.datalabels||s.group("datalabels").insertAfter(j),ot=it.tracker,it=o["clip-canvas-init"].slice(0),o=o["clip-canvas"].slice(0),ut=g.axisData.reversed;S=g.max;x=g.min;S=g.getAxisPosition(S>0&&x>0?!ut?x:S:S<0&&x<0?!ut?S:x:!ut?0:S)+(L?k:0);var ut=[],at,ft,lt,ct;g.yBasePos=S;if(b)E=(E=i.definition.chart)&&E.plotspacepercent,S=c.groupPadding,x=c.maxColWidth,E=(1-E*.01)*v||J(v*(1-S*2),x*1),E/=2;st.hide();at=j.line||(j.line=s.group("line-connector",j));ft=j.anchors||(j.anchors=s.group("line-anchors",j));ft.hide();lt=j.anchorShadows||(j.anchorShadows=s.group("anchor-shadows",j).toBack());lt.hide();for(j=0;j<F;j+=1){U=f[j];V=U.y;W=U.previousY||0;N=U.toolText;x=z=nt=S=null;v=h[j]={index:j,value:null,graphic:null,connector:null,dataLabel:null,shadowGroup:lt,tracker:null};if(V===null)R===0&&(K=null);else{X=w(U.x,j);z=U.link;t.relatedSeries==="boxandwhisker"&&t.pointStart&&(X+=t.pointStart);V=g.getAxisPosition(V+W)+(L?k:0);X=m.getAxisPosition(X)-C;X=H(X,Q,Q).position;V=H(V,Q,Q).position;if((tt=U.marker)&&tt.enabled)if(nt=tt.symbol.split("_"),rt=nt[0]==="spoke"?1:0,W=tt.radius,r=v.graphic=s.polypath(nt[1]||2,X,V,W,tt.startAngle,rt,ft).attr({fill:M(tt.fillColor),"stroke-width":tt.lineWidth,stroke:M(tt.lineColor),cursor:z?"pointer":"",visibility:B}),nt=r,z||T)W<D&&(W=D),S=v.tracker=s.circle(X,V,W,ot).attr({cursor:z?"pointer":"",stroke:l,"stroke-width":tt.lineWidth,fill:l,ishot:!!z,visibility:B}).click(function(){var e=this.data("link");e&&i.linkClickFN.call({link:e},i)}).tooltip(N).data("link",z);ct=ct!==[M(U.color||G),U.dashStyle||et].join(":");if(K!==null){if((y||b||!ut.join(""))&&ut.push("M",$,K),b&&ut.push("m",-E,0),A?_?(ut.push("H",X),b&&ut.push("h",E),O?ut.push("V",V):ut.push("m",0,V-K)):(O&&ut.push("V",V),ut.push("M",$,V,"H",X)):ut.push("L",X,V),y||ct)x=v.connector=s.path(ut,at).attr({"stroke-dasharray":Z,"stroke-width":Q,stroke:Y,"stroke-linecap":"round","stroke-linejoin":Q>2?"round":"miter",visibility:B}).shadow(c.shadow&&U.shadow),ut=[]}else!y&&ut.push("M",X,V);z=v.dataLabel=i.drawPlotLineLabel(e,t,j,X,V);$=X;K=V;Y=M(U.color||G);Z=U.dashStyle||et;ct=[Y,Z].join(":")}z&&p.push(z);nt&&p.push(nt);x&&p.push(x);S&&p.push(S);i.drawTracker&&i.drawTracker.call(i,e,t,j)}!y&&ut.join("")&&(x=s.path(ut,at).attr({"stroke-dasharray":Z,"stroke-width":Q,stroke:Y,"stroke-linecap":"round","stroke-linejoin":Q>2?"round":"miter",visibility:B}).shadow(c.shadow&&U.shadow))&&p.push(x);if(a)s=q.startPercent,o[2]=I+it[0],s===1&&(it[0]=o[2],o[0]=0);s=n.animation({"clip-rect":o},u,a?"easeIn":"normal",function(){at.attr({"clip-rect":null});lt.show();ft.show();st.show()});at.attr({"clip-rect":it}).animate(b?s.delay(u):s);e.visible=t.visible!==!1;return e},drawPlotArea:function(e,t){var n;var r=this,i=r.paper,s=r.options,o=s.chart,u=r.logic,a=s.plotOptions.series,f=r.elements,c=e.items,h=e.graphics=e.graphics||[],p=r.xAxis[t.xAxis||0],d=r.yAxis[t.yAxis||0],v=d.axisData.reversed,m=o.xDepth||0,g=o.yDepth||0,y=u.isStacked,b=(s.tooltip||{}).enabled!==!1,E,s=isNaN(+a.animation)&&a.animation.duration||a.animation*1e3,S=o.series2D3Dshift,u=r.definition.chart.drawfullareaborder==="0",x=e.data,T=t.visible===!1?"hidden":"visible",N,C=x.length,k=p.getAxisPosition(0),k=(p.getAxisPosition(1)-k)*C,L=p.axisData.scroll||{},o=o.hasScroll||!1,A=a.connectNullData,O,_,P,H,B,j=d.max,F=d.min,I=d.getAxisPosition(j>0&&F<0?0:!v&&j>0&&F>=0?F:j)+(S?g:0),q=null,R,U,v=t.lineWidth,j=t.dashStyle,z=M(t.fillColor),F=M(t.lineColor),W=0,X,V,$,J=[],K=[],Q=null,G=[],Y=r.layers;N=Y.dataset=Y.dataset||i.group("dataset-orphan");var Z=Y.datalabels=Y.datalabels||i.group("datalabels").insertAfter(N),Q=Y.tracker,Y=f["clip-canvas-init"].slice(0),f=f["clip-canvas"].slice(0),et,tt,nt,rt,it;d.yBasePos=I;Z.hide();if(y)rt=N.shadows||(N.shadows=i.group("shadows",N).toBack());tt=N.area=N.area||i.group("area",N);et=N.arealine=N.arealine||i.group("area-connector",N);nt=N.areaanchors=N.areaanchors||i.group("area-anchors",N);nt.hide();for(N=0;N<C;N+=1){O=x[N];H=O.y;E=w(O.x,N);R=p.getAxisPosition(E)-m;V=it=$=null;if(H===null)A===0&&(q=null,W>0&&(W===1?J.splice(-8,8):(J=J.concat(K),J.push("Z")),K=[])),c[N]={chart:r,index:N,value:H};else{_=O.link;E=O.toolText;P=O.previousY;B=(B=d.getAxisPosition(P)||null)||I;U=d.getAxisPosition(H+(P||0))+(S?g:0);if((X=O.marker)&&X.enabled)if(V=X.symbol.split("_"),P=X.radius,V=i.polypath(V[1]||2,R,U,P,X.startAngle,0,nt).attr({fill:M(X.fillColor),"stroke-width":X.lineWidth,stroke:M(X.lineColor),cursor:_?"pointer":"",visibility:T}),_||b)!y&&P<D&&(P=D),$=i.circle(R,U,P,Q).attr({cursor:_?"pointer":"",stroke:l,"stroke-width":X.lineWidth,fill:l,ishot:!!_,visibility:T}).click(function(){var e=this.data("link");e&&r.linkClickFN.call({link:e},r)}).tooltip(E).data("link",_);q===null?(G.push("M",R,",",U),J.push("M",R,",",B),W=0):G.push("L",R,",",U);J.push("L",R,",",U);K.unshift("L",R,",",B);W++;q=U;c[N]={chart:r,index:N,value:H,graphic:V,dataLabel:it,tracker:$};it=r.drawPlotLineLabel(e,t,N,R,U)}it&&h.push(it);V&&h.push(V);$&&h.push($);r.drawTracker&&r.drawTracker.call(r,e,t,N)}W>0&&(W===1?J.splice(-8,8):(J=J.concat(K),J.push("Z")));(Q=e.graphic=i.path(J,tt).attr({fill:z,"stroke-dasharray":j,"stroke-width":u?0:v,stroke:F,"stroke-linecap":"round","stroke-linejoin":v>2?"round":"miter",visibility:T}).shadow(a.shadow&&O.shadow,rt))&&h.push(Q);if(o)a=L.startPercent,f[2]=k+Y[0],a===1&&(Y[0]=f[2],f[0]=0);a=tt.attr({"clip-rect":Y}).animate({"clip-rect":f},s,o?"easeIn":"normal",function(){tt.attr({"clip-rect":null});nt.show();Z.show()});rt&&rt.attr({"clip-rect":Y}).animateWith(tt,a,{"clip-rect":f},s,o?"easeIn":"normal",function(){rt.attr({"clip-rect":null})});if(u)n=e.connector=i.path(G,et).attr({"stroke-dasharray":j,"stroke-width":v,stroke:F,"stroke-linecap":"round","stroke-linejoin":v>2?"round":"miter",visibility:T}),i=n,et.attr({"clip-rect":Y}).animateWith(tt,a,{"clip-rect":f},s,o?"easeIn":"normal",function(){et.attr({"clip-rect":null})}),i&&h.push(i);e.visible=t.visible!==!1;return e},drawPlotScatter:function(e,t){var n;var r=this,i=r.options,s=i.plotOptions.series,o=r.paper,u=r.elements,a=e.items,f=e.graphics=e.graphics||[],c=r.xAxis[t.xAxis||0],h=r.yAxis[t.yAxis||0],p=e.data,d=t.visible===!1?"hidden":"visible",v=(i.tooltip||{}).enabled!==!1,m,i=isNaN(+s.animation)&&s.animation.duration||s.animation*1e3,g,y,b,w,E,S,x,T,N,C=t.lineWidth,k=C>0,L=t.color,A=t.dashStyle,O=s.connectNullData,_=[],P,H,B,j,F=r.layers,I=F.dataset||(F.dataset=o.group("dataset-orphan")),q=F.datalabels||(F.datalabels=o.group("datalabels").insertAfter(I)),R=F.tracker,U;q.hide();F=I.line||(I.line=o.group("connector",I));I=I.anchor||(I.anchor=o.group("anchor",I));g=0;for(y=p.length;g<y;g+=1){b=p[g];P=b.marker;T=N=B=U=j=null;S=b.y;E=b.x;if(S!==null&&E!==null){if(P&&P.enabled&&(w=b.link,m=b.toolText,H=P.radius,N=h.getAxisPosition(S),T=c.getAxisPosition(E),B=P.symbol.split("_"),B=o.polypath(B[1]||2,T,N,H,P.startAngle,0,I).attr({fill:M(P.fillColor),"stroke-width":P.lineWidth,stroke:M(P.lineColor),cursor:w?"pointer":"",visibility:d}).shadow(s.shadow&&b.shadow),w||v))H<D&&(H=D),j=o.circle(T,N,H,R).attr({cursor:w?"pointer":"",stroke:l,"stroke-width":P.lineWidth,fill:l,ishot:!!w}).tooltip(m).data("link",w).click(function(){var e=this.data("link");e&&r.linkClickFN.call({link:e},r)});k&&((x===void 0||x===null&&O===0)&&T&&N&&_.push("M",T,",",N),T&&N&&_.push("L",T,",",N),x=N);a[g]={index:g,x:E,y:S,value:S,graphic:B,dataLabel:U,tracker:j};U=r.drawPlotLineLabel(e,t,g,T,N)}else k&&O===0&&(x=null),a[g]={chart:r,index:g,x:E,y:S};U&&f.push(U);B&&f.push(B);j&&f.push(j);r.drawTracker&&r.drawTracker.call(r,e,t,g)}if(_.length)n=e.graphic=o.path(_,F).attr({"stroke-dasharray":A,"stroke-width":C,stroke:L,"stroke-linecap":"round","stroke-linejoin":C>2?"round":"miter",visibility:d}).shadow(s.shadow&&b.shadow),s=n,F.attr({"clip-rect":u["clip-canvas-init"]}).animate({"clip-rect":u["clip-canvas"]},i,"normal"),f.push(s);I.attr({opacity:0}).animate({opacity:1},i,"normal",function(){q.show()});e.visible=t.visible!==!1;return e},drawPlotLineLabel:function(e,t,n,r,i,s){var o=this.options,u=o.chart,f=this.paper,l=this.layers,o=o.plotOptions.series.dataLabels.style,c=u.rotateValues===1?270:0,h=this.canvasHeight,p=this.canvasTop,d=e.data,v=d[n],m=e.items[n],g=B(v.valuePosition,"auto").toLowerCase(),e=this.logic.defaultSeriesType,u=u.valuePadding+2,t=t.visible===!1?"hidden":"visible",y=!1,w=m.dataLabel,s=s||l.datalabels;switch(g){case"above":n=0;break;case"below":n=1;break;default:l=d[n-1]||{},d=d[n+1]||{},n=!n?0:l.y>v.y?1:(l.y==null&&d.y)>v.y?1:0}l=v.displayValue;if(q(l)&&l!==a){w?c&&w.rotate(360-c):(w=m.dataLabel=f.text().attr({text:l}).css(o),y=!0);w.attr({title:v.originalText||"",fill:o.color});f=w.getBBox();m=l=c?f.width:f.height;m+=u;f=i-p;h=p+h-i;m+=4;p=l*.5+u;if(!/bubble/i.test(e))if(n)h>m?(i+=p,v._valueBelowPoint=1):f>m&&(i-=p);else if(f>m)i-=p;else if(h>m)i+=p,v._valueBelowPoint=1;w.attr({x:r,y:i,visibility:t});c&&w.attr("transform","T0,0,R"+c);y&&s.appendChild(w);y&&b(o.backgroundColor,o.borderColor)!==a&&w.attr({"text-bound":[o.backgroundColor,o.borderColor,1,2]})}else w&&w.attr({text:a});return w},drawLabels:function(){for(var e=this.paper,t=this.options,n=(t=t.labels&&t.labels.items&&t.labels.items)&&t.length,r=this.layers.layerAboveDataset,i=this.elements.quadran||(this.elements.quadran=[]),s=this.canvasTop,o=this.canvasLeft,u={right:"end",left:"start","undefined":"start"},f,l;n--;)l=t[n],f=l.style,q(l.html)&&l.html!==a&&(i[n]=e.text(r).attr({text:l.html,x:parseInt(f.left,10)+o,y:parseInt(f.top,10)+s,fill:f.color,"text-anchor":u[l.textAlign],"vertical-align":l.vAlign}).css(f))}},r["renderer.root"]);r("renderer.piebase",{drawCaption:function(){var e;var t=this.options.chart,n=this.options.title,r=this.options.subtitle,i=this.paper,s=this.elements,o=this.layers,u=o.caption,a=s.caption,f=s.subcaption,l=n&&n.text,c=r&&r.text,h=i.width/2,p=n.x,d=r&&r.x;if((l||c)&&!u)u=o.caption=i.group("caption"),o.tracker?u.insertBefore(o.tracker):u.insertAfter(o.dataset);if(l){if(!a)a=s.caption=i.text(u);if(p===void 0)p=h,n.align="middle";a.css(n.style).attr({text:n.text,fill:n.style.color,x:p,y:n.y||t.spacingTop||0,"text-anchor":n.align||"middle","vertical-align":"top",visibility:"visible",title:n.originalText||""})}else if(a)e=s.caption=a.remove(),a=e;if(c){if(!f)f=s.subcaption=i.text(u);if(d===void 0)d=h,r.align="middle";f.css(r.style).attr({text:r.text,title:r.originalText||"",fill:r.style.color,x:d,y:l?a.attrs.y+a.getBBox().height+2:n.y||t.spacingTop||0,"text-anchor":r.align||"middle","vertical-align":"top",visibility:"visible"})}else if(f)s.subcaption=f.remove();if(!l&&!c&&u)o.caption=u.remove()},redrawDataLabels:function(e){var t=e.elements.plots[0];e.placeDataLabels(!0,t.items,t);return{}},plotGraphicClick:function(){var e=this.graphic&&this||this.data("plotItem"),t=e.seriesData,n=e.chart,r,i,s,o,u,a,f;if(!t.isRotating&&!t.singletonCase)return r=e.graphic,i=e.connector,s=e.dataLabel,t=e.sliced,o=e.slicedTranslation,u=e.connectorPath,a=(t?-1:1)*e.transX,f=(t?-1:1)*e.transY,r.animate({transform:t?"t0,0":o},200,"easeIn"),s&&s.x&&s.animate({x:s.x+(t?0:a)},200,"easeIn"),u&&(u[1]+=a,u[2]+=f,u[4]+=a,u[6]+=a,i.animate({path:u},200,"easeIn")),t=e.sliced=!t,e={hcJSON:{series:[]}},e.hcJSON.series[0]={data:[]},m(n.logic.chartInstance.jsVars._reflowData,e,!0),t},plotDragStart:function(e,t,n){var r=this.data("plotItem"),i=r.chart,r=r.seriesData;if(i.options.series[0].enableRotation)e=ct.call(n,e,t,r.pieCenter,r.chartPosition),r.dragStartAngle=e,i._pierotateActive=!0},plotDragEnd:function(){var e=this.data("plotItem"),t=e.chart,n={hcJSON:{series:[{startAngle:-t.datasets[0].startAngle*180/Z}]}};t.disposed||(m(t.logic.chartInstance.jsVars._reflowData,n,!0),t.rotate(e.seriesData,t.options.series[0]));setTimeout(function(){e.seriesData.isRotating=!1},0)},plotDragMove:function(e,t,n,r,i){var e=this.data("plotItem"),s=e.chart,o=e.seriesData,u=s.options.series;if(u[0].enableRotation&&!o.singletonCase&&(o.isRotating=!0,n=ct.call(i,n,r,o.pieCenter,o.chartPosition),u[0].startAngle+=n-o.dragStartAngle,o.dragStartAngle=n,o.moveDuration=0,n=(new Date).getTime(),!o._lastTime||o._lastTime+o.timerThreshold<n))setTimeout(function(){s.rotate(o,u[0])},0),o._lastTime=n},plotMouseDown:function(){this.data("plotItem").seriesData.isRotating=!1},plotMouseUp:function(){var e=this.data("plotItem"),t=e.chart,r=e.seriesData;!r.isRotating&&t.linkClickFN.call({link:r.data[e.index].link},t);n._supportsTouch&&!r.isRotating&&t.plotGraphicClick.call(e)},legendClick:function(t,n,r){var i=t.chart;i.elements.plots[0].isRotating=!1;i.plotGraphicClick.call(t.graphic);r!==!0&&(eventArgs={datasetName:t.label,datasetIndex:t.originalIndex,id:t.userID,visible:n,label:t.label,value:t.value,percentValue:t.percentage,tooltext:t.toolText,link:t.link,sliced:!t.sliced},e.raiseEvent("legenditemclicked",eventArgs,i.logic.chartInstance))},placeDataLabels:function(){var e=function(e,t){return e.point.value-t.point.value},t=function(e,t){return e.angle-t.angle},n=["start","start","end","end"],r=[-1,1,1,-1],i=[1,1,-1,-1];return function(s,o,u,a){var f=this.options.plotOptions,l=f.pie,c=this.canvasLeft+this.canvasWidth*.5,h=this.canvasTop+this.canvasHeight*.5,p=this.smartLabel,d=f.series.dataLabels,v=d.style,f=w(G(parseFloat(v.lineHeight)),12),m=j(d.placeInside,!1),g=d.skipOverlapLabels,y=d.manageLabelOverflow,b=d.connectorPadding,E=d.distance;j(d.softConnector,!0);var S=a&&a.metrics||[c,h,l.size,l.innerSize||0],x=S[1],T=S[0],a=S[2]*.5,N=[[],[],[],[]],C=this.canvasLeft,k=this.canvasTop,l=this.canvasWidth,E=u.labelsRadius||(u.labelsRadius=a+E),h=c=parseInt(v.fontSize,10),A=h/2,b=[b,b,-b,-b],u=u.labelsMaxInQuadrant||(u.labelsMaxInQuadrant=Y(E/h)),d=d.isSmartLineSlanted,S=S[3]/2,O,M,_,D,P,H,B,F,I,q,R,U,$,rt,it;s||p.setStyle(v);if(o.length==1&&!S){if(S=o[0],(rt=S.dataLabel)&&rt.show(),S.slicedTranslation=[C,k],rt)rt.attr({visibility:z,align:"middle",transform:"t"+T+","+(x+A-2)}),rt.x=T}else if(m){var st=S+(a-S)/2;L(o,function(e){(rt=e.dataLabel)&&rt.show();if(rt){var t=e.angle;R=x+st*X(t)+A-2;B=T+st*V(t);rt.x=B;rt._x=B;rt.y=R;if(e.sliced)e=e.slicedTranslation,t=e[1]-k,B+=e[0]-C,R+=t;rt.attr({visibility:z,align:"middle",transform:"t"+B+","+R})}})}else{L(o,function(e){(rt=e.dataLabel)&&rt.show();rt&&(U=e.angle%tt,U<0&&(U=tt+U),it=U>=0&&U<et?1:U<Z?2:U<nt?3:0,N[it].push({point:e,angle:U}))});for(o=s=4;o--;){if(g&&(v=N[o].length-u,v>0)){N[o].sort(e);m=N[o].splice(0,v);v=0;for(D=m.length;v<D;v+=1)S=m[v].point,S.dataLabel.attr({visibility:"hidden"}),S.connector&&S.connector.attr({visibility:"hidden"})}N[o].sort(t)}o=K(N[0].length,N[1].length,N[2].length,N[3].length);$=K(J(o,u)*h,E+h);N[1].reverse();for(N[3].reverse();s--;){m=N[s];D=m.length;g||(h=D>u?$/D:c,A=h/2);S=D*h;v=$;for(o=0;o<D;o+=1,S-=h)_=Q($*X(m[o].angle)),v<_?_=v:_<S&&(_=S),v=(m[o].oriY=_)-h;O=n[s];D=$-(D-1)*h;v=0;for(o=m.length-1;o>=0;o-=1,D+=h){S=m[o].point;U=m[o].angle;P=S.sliced;rt=S.dataLabel;_=Q($*X(U));_<v?_=v:_>D&&(_=D);v=_+h;I=(_+m[o].oriY)/2;_=T+i[s]*E*V(W.asin(I/$));I*=r[s];I+=x;q=x+a*X(U);H=T+a*V(U);(s<2&&_<H||s>1&&_>H)&&(_=H);B=_+b[s];R=I-A-2;F=B+b[s];rt.x=F;rt._x=F;y&&(M=s>1?F-this.canvasLeft:this.canvasLeft+l-F,M=p.getSmartText(S.labelText,M,f),rt.attr({text:M.text,title:M.tooltext||""}));rt.y=R;if(P)P=S.transX,M=S.transY,B+=P,_+=P,H+=P,q+=M,F+=P;rt.attr({visibility:z,"text-anchor":O,vAlign:"middle",x:F,y:I});if(F=S.connector)S.connectorPath=S=["M",H,q,"L",d?_:H,I,B,I],F.attr({path:S,visibility:z})}}}}}()},r["renderer.root"])}]);(function(){var e=FusionCharts(["private","modules.renderer.js-interface"]);if(e!==void 0){var t=e.hcLib,n=e.renderer.getRenderer("javascript"),r=t.hasModule,i=t.loadModule,s=t.moduleCmdQueue,o=t.executeWaitingCommands,u=t.injectModuleDependency,a=t.moduleDependencies,f=t.getDependentModuleName,l=t.eventList={loaded:"FC_Loaded",dataloaded:"FC_DataLoaded",rendered:"FC_Rendered",drawcomplete:"FC_DrawComplete",resized:"FC_Resized",dataxmlinvalid:"FC_DataXMLInvalid",nodatatodisplay:"FC_NoDataToDisplay",exported:"FC_Exported"};t.raiseEvent=function(t,n,r,i,s,o){var u=l[t];e.raiseEvent(t,n,r,s,o);u&&typeof window[u]==="function"&&setTimeout(function(){window[u].apply(window,i)},0)};var c=function(n){var r,i,s,u={},a;for(r in e.core.items)if(r=e.core.items[r],s=r.chartType(),(i=r.jsVars)&&i.waitingModule&&r.__state.rendering&&t.needsModule(n,s))i.waitingModuleError=!0,i=f(s).concat(i.userModules),i.length&&(i=i[i.length-1],u[i]=t.moduleCmdQueue[i]);for(a in u)o(u[a]);e.raiseError(e.core,"11171116151","run","HC-interface~renderer.load","Unable to load required modules and resources: "+n)},h=function(t,n,r){e.hcLib.createChart(t,n,"stub",r,t.jsVars.msgStore.ChartNotSupported)};a.charts=e.extend(a.charts||{},{column2d:0,column3d:0,bar2d:0,bar3d:0,pie2d:0,pie3d:0,line:0,bar2d:0,area2d:0,doughnut2d:0,doughnut3d:0,pareto2d:0,pareto3d:0,mscolumn2d:0,mscolumn3d:0,msline:0,msarea:0,msbar2d:0,msbar3d:0,stackedcolumn2d:0,marimekko:0,stackedcolumn3d:0,stackedarea2d:0,stackedcolumn2dline:0,stackedcolumn3dline:0,stackedbar2d:0,stackedbar3d:0,msstackedcolumn2d:0,mscombi2d:0,mscombi3d:0,mscolumnline3d:0,mscombidy2d:0,mscolumn3dlinedy:0,stackedcolumn3dlinedy:0,msstackedcolumn2dlinedy:0,scatter:0,bubble:0,ssgrid:0,scrollcolumn2d:0,scrollcolumn3d:0,scrollline2d:0,scrollarea2d:0,scrollstackedcolumn2d:0,scrollcombi2d:0,scrollcombidy2d:0,zoomline:0});a.powercharts=e.extend(a.powercharts||{},{spline:0,splinearea:0,msspline:0,mssplinearea:0,multiaxisline:0,multilevelpie:0,waterfall2d:0,msstepline:0,inversemsline:0,inversemscolumn2d:0,inversemsarea:0,errorbar2d:0,errorscatter:0,errorline:0,logmsline:0,logmscolumn2d:0,radar:0,dragnode:0,candlestick:0,selectscatter:0,dragcolumn2d:0,dragline:0,dragarea:0,boxandwhisker2d:0,kagi:0,heatmap:0});a.widgets=e.extend(a.widgets||{},{angulargauge:0,bulb:0,cylinder:0,drawingpad:0,funnel:0,hbullet:0,hled:0,hlineargauge:0,vlineargauge:0,pyramid:0,realtimearea:0,realtimecolumn:0,realtimeline:0,realtimelinedy:0,realtimestackedarea:0,realtimestackedcolumn:0,sparkcolumn:0,sparkline:0,sparkwinloss:0,thermometer:0,vbullet:0,gantt:0,vled:0});a.maps=e.extend(a.maps||{},{});e.extend(n,{render:function(i,o){var a=this.chartType(),l=this.jsVars,c=this.__state,p=t.chartAPI,d;d=f(a).concat(l.userModules);if(l.isResizing)l.isResizing=clearTimeout(l.isResizing);l.hcObj&&l.hcObj.destroy&&l.hcObj.destroy();if(p[a]){if(p[c.lastRenderedType]&&c.lastRenderedType!==a)for(var v in p[c.lastRenderedType].eiMethods)delete this[v];c.lastRenderedType=a;c.lastRenderedSrc=this.src;delete l.waitingModule;delete l.waitingModuleError;delete l.drLoadAttempted;e.hcLib.createChart(this,i,a,o)}else{if(r(d))if(l.drLoadAttempted){e.raiseError(this,11112822001,"run","HC-interface~renderer.render","Chart runtimes not loaded even when resource is present");h(this,i,o);return}else u(a)&&(d=f(a).concat(l.userModules)),l.drLoadAttempted=!0;else if(d.length){if(l.waitingModuleError){h(this,i,o);delete l.waitingModule;delete l.waitingModuleError;return}}else{h(this,i,o);return}(a=s[d[d.length-1]])?(a.push({cmd:"render",obj:this,args:arguments}),l.waitingModule||(e.hcLib.createChart(this,i,"stub",void 0,l.msgStore.PBarLoadingText||l.msgStore.LoadingText),n.load.call(this))):(e.raiseError(this,12080515551,"run","HC-interface~renderer.render","Unregistered module in dependentModule definition."),e.hcLib.createChart(this,i,"stub",void 0,l.msgStore.RenderChartErrorText))}},update:function(t){var n=this.ref,r=this.jsVars;r.hcObj&&r.hcObj.destroy&&r.hcObj.destroy();if(r.isResizing)r.isResizing=clearTimeout(r.isResizing);t.error===void 0?(delete r.stallLoad,delete r.loadError,this.isActive()&&(this.src!==this.__state.lastRenderedSrc?this.render():e.hcLib.createChart(this,r.container,r.type))):(this.isActive()&&typeof n.showChartMessage==="function"&&n.showChartMessage("InvalidXMLText"),delete r.loadError)},resize:function(t){var n=this.ref,r,i=this.jsVars;if(n&&n.resize){if(i.isResizing)i.isResizing=clearTimeout(i.isResizing);i.isResizing=setTimeout(function(){r=e.normalizeCSSDimension(t.width,t.height,n);if(t.width!==void 0)n.style.width=r.width;if(t.height!==void 0)n.style.height=r.height;n.resize();delete i.isResizing},0)}},dispose:function(){var n;n=this.jsVars;var r=n.hcObj||{};if(n.isResizing)n.isResizing=clearTimeout(n.isResizing);n.instanceAPI&&n.instanceAPI.dispose&&n.instanceAPI.dispose();if(n=this.ref)e.purgeDOM(n),n.parentNode&&n.parentNode.removeChild(n);t.cleanupWaitingCommands(this);return r&&r.destroy&&r.destroy()},load:function(){var n=this.jsVars,r=this.chartType(),s=e.hcLib.chartAPI[r],r=f(r).concat(n.userModules),u=r[r.length-1];if(s||!r||r&&r.length===0)delete n.waitingModule;else if(!n.waitingModule)n.waitingModule=!0,delete n.waitingModuleError,i(r,function(){delete n.waitingModule;o(t.moduleCmdQueue[u])},c,this)}})}})()
/*
 FusionCharts JavaScript Library
 Copyright FusionCharts Technologies LLP
 License Information at <http://www.fusioncharts.com/license>

 @version fusioncharts/3.3.1-sr3.21100
*/
FusionCharts(["private","modules.renderer.js-charts",function(){function Ca(a){for(var J={left:a.offsetLeft,top:a.offsetTop},a=a.offsetParent;a;)J.left+=a.offsetLeft,J.top+=a.offsetTop,a!==E.body&&a!==E.documentElement&&(J.left-=a.scrollLeft,J.top-=a.scrollTop),a=a.offsetParent;return J}function ja(a,J){for(var d=[],g=0,b=a.length;g<b;g++)d[g]=J.call(a[g],a[g],g,a);return d}function ra(a){a=(a||0)%fa;return a<0?fa+a:a}function Da(a,J){return a<=W?a:J<=W?J:J>a?0:J}function Ia(a,J,d,g,b){return X((J-
d[1]-g.top)/b,a-d[0]-g.left)}function Ea(a,J,d,g,b,ta,j,r,aa,n){if(typeof a==="object")J=a.y,d=a.r,g=a.innerR,b=a.radiusYFactor,ta=a.depth,j=a.seriesGroup,r=a.renderer,a=a.x;if(b<0||b>=1)b=0.6;a=a||0;J=J||0;d=d||1;g=g||0;ta=ta||0;this.renderer=r;this.hasOnePoint=aa;this.use3DLighting=n;this.cx=a;this.cy=J;this.rx=d;this.ry=d*b;this.radiusYFactor=b;this.isDoughnut=g>0;this.innerRx=g;this.innerRy=g*b;this.depth=ta;this.leftX=a-d;this.rightX=a+d;this.leftInnerX=a-g;this.rightInnerX=a+g;this.depthY=J+
ta;this.topY=J-this.ry;this.bottomY=this.depthY+this.ry;this.bottomBorderGroup=r.group("bottom-border",j).attr({transform:"t0,"+ta});this.outerBackGroup=r.group("outer-back-Side",j);this.slicingWallsBackGroup=r.group("slicingWalls-back-Side",j);this.innerBackGroup=r.group("inner-back-Side",j);this.innerFrontGroup=r.group("inner-front-Side",j);this.slicingWallsFrontGroup=r.group("slicingWalls-front-Side",j);this.topGroup=r.group("top-Side",j);this.moveCmdArr=[c];this.lineCmdArr=[k];this.closeCmdArr=
[h];this.centerPoint=[a,J];this.leftPoint=[this.leftX,J];this.topPoint=[a,this.topY];this.rightPoint=[this.rightX,J];this.bottomPoint=[a,J+this.ry];this.leftDepthPoint=[this.leftX,this.depthY];this.rightDepthPoint=[this.rightX,this.depthY];this.leftInnerPoint=[this.leftInnerX,J];this.rightInnerPoint=[this.rightInnerX,J];this.leftInnerDepthPoint=[this.leftInnerX,this.depthY];this.rightInnerDepthPoint=[this.rightInnerX,this.depthY];this.pointElemStore=[];this.slicingWallsArr=[];a=[e,this.rx,this.ry,
0,0,1,this.rightX,J];d=[e,this.rx,this.ry,0,0,1,this.leftX,J];g=[e,this.rx,this.ry,0,0,0,this.rightX,this.depthY];b=[e,this.rx,this.ry,0,0,0,this.leftX,this.depthY];ta=[e,this.innerRx,this.innerRy,0,0,0,this.rightInnerX,J];J=[e,this.innerRx,this.innerRy,0,0,0,this.leftInnerX,J];j=[e,this.innerRx,this.innerRy,0,0,1,this.rightInnerX,this.depthY];r=[e,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,ta,J),this.topPath=this.moveCmdArr.concat(this.leftPoint,a,d,this.lineCmdArr,this.leftInnerPoint,ta,J,this.closeCmdArr),this.innerFrontPath=this.moveCmdArr.concat(this.leftInnerPoint,ta,this.lineCmdArr,this.rightInnerDepthPoint,r,this.closeCmdArr),this.innerBackPath=this.moveCmdArr.concat(this.rightInnerPoint,J,this.lineCmdArr,this.leftInnerDepthPoint,j,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,b,this.closeCmdArr);this.outerFrontPath=this.moveCmdArr.concat(this.rightPoint,d,this.lineCmdArr,this.leftDepthPoint,g,this.closeCmdArr);this.clipPathforOuter=[c,this.leftX,this.topY,k,this.rightX,this.topY,this.rightX,this.bottomY,this.leftX,this.bottomY,h];this.clipPathforInner=[c,this.leftInnerX,this.topY,k,this.rightInnerX,this.topY,this.rightInnerX,this.bottomY,this.leftInnerX,this.bottomY,h];this.clipPathforNoClip=
[c,this.leftInnerX,this.topY,k,this.leftInnerX,this.bottomY,h]}var ma=this,t=ma.hcLib,ga=t.Raphael,E=window.document,B=t.BLANKSTRING,Ja=t.createTrendLine,i=t.pluck,ua=t.getValidValue,f=t.pluckNumber,U=t.defaultPaletteOptions,ka=t.getFirstValue,Na=t.getDefinedColor,va=t.parseUnsafeString,O=t.FC_CONFIG_STRING,wa=t.extend2,ya=t.getDashStyle,ba=t.toRaphaelColor,Pa=t.toPrecision,Fa=t.stubFN,Z=t.hasSVG,za=t.isIE,qa=t.each,Ka=t.hasTouch?10:3,la="rgba(192,192,192,"+(za?0.002:1.0E-6)+")",b=document.documentMode===
8?"visible":"",c="M",k="L",e="A",h="Z",H=Math,P=H.sin,w=H.cos,X=H.atan2,A=H.round,ha=H.min,Y=H.max,M=H.abs,u=H.PI,sa=H.ceil,ia=H.floor,R=H.sqrt,T=u/180,W=Math.PI,S=W/2,fa=2*W,Ta=W+S,Qa=t.graphics.getColumnColor,V=t.getFirstColor,Ba=t.setLineHeight,Ga=t.pluckFontSize,La=t.getFirstAlpha,ca=t.graphics.getDarkColor,ea=t.graphics.getLightColor,na=t.graphics.convertColor,Ma=t.COLOR_TRANSPARENT,la="rgba(192,192,192,"+(za?0.002:1.0E-6)+")",Ra=t.POSITION_CENTER,Va=t.POSITION_TOP,Ua=t.POSITION_BOTTOM,Wa=t.POSITION_RIGHT,
Xa=t.POSITION_LEFT,o=t.chartAPI,Ya=t.titleSpaceManager,Za=t.placeLegendBlockBottom,$a=t.placeLegendBlockRight,ab=t.graphics.mapSymbolName,za=o.singleseries,K=t.COMMASTRING,xa=t.ZEROSTRING,Ha=t.ONESTRING,Aa=t.HUNDREDSTRING,Oa=t.PXSTRING,bb=t.COMMASPACE;o("column2d",{standaloneInit:!0,friendlyName:"Column Chart",creditLabel:!1,rendererId:"cartesian"},o.column2dbase);o("column3d",{friendlyName:"3D Column Chart",defaultSeriesType:"column3d",defaultPlotShadow:1,is3D:!0,defaultZeroPlaneHighlighted:!1},
o.column2d);o("bar2d",{friendlyName:"Bar Chart",isBar:!0,defaultSeriesType:"bar",spaceManager:o.barbase},o.column2d);o("bar3d",{friendlyName:"3D Bar Chart",defaultSeriesType:"bar3d",defaultPlotShadow:1,is3D:!0,defaultZeroPlaneHighlighted:!1},o.bar2d);o("line",{friendlyName:"Line Chart",standaloneInit:!0,creditLabel:!1,rendererId:"cartesian"},o.linebase);o("area2d",{friendlyName:"Area Chart",standaloneInit:!0,creditLabel:!1,rendererId:"cartesian"},o.area2dbase);o("pie2d",{friendlyName:"Pie Chart",
standaloneInit:!0,defaultSeriesType:"pie",defaultPlotShadow:1,sliceOnLegendClick:!0,rendererId:"pie",point:function(a,J,d,g,b){var c,j,r,e=b[O],n=e.is3d,m,p,l,k,h=0,y=0,o=[];r=f(g.plotborderthickness);var C=f(r,n?0.1:1),q=(m=f(g.use3dlighting,1))?f(g.radius3d,g["3dradius"],90):100;p=f(g.showzeropies,1);var x=f(g.showpercentintooltip,1),Sa=f(g.showlabels,1),H=f(g.showvalues,1),w=f(g.showpercentvalues,g.showpercentagevalues,0),F=i(g.tooltipsepchar,g.hovercapsepchar,bb),v=i(g.labelsepchar,F),s=i(g.plotbordercolor,
g.piebordercolor),z=b[O].numberFormatter;l=d.length;var A,Q,D=f(g.plotborderdashed,0),L=f(g.plotborderdashlen,5),G=f(g.plotborderdashgap,4);q>100&&(q=100);q<0&&(q=0);if(f(g.showlegend,0))b.legend.enabled=!0,b.legend.reversed=!Boolean(f(g.reverselegend,0)),J.showInLegend=!0;for(a=0;a<l;a+=1)j=d[a],c=z.getCleanValue(j.value,!0),c===null||!p&&c===0||(o.push(j),h+=c);h===0&&(o=[]);J.enableRotation=o.length>1?f(g.enablerotation,1):0;J.alphaAnimation=f(g.alphaanimation,1);J.is3D=n;J.use3DLighting=m;J.pieYScale=
f(g.pieyscale,40);if(J.pieYScale<1)J.pieYScale=1;if(J.pieYScale>=100)J.pieYScale=80;J.pieYScale/=100;J.pieSliceDepth=f(g.pieslicedepth,15);if(J.pieSliceDepth<1)J.pieSliceDepth=1;J.managedPieSliceDepth=J.pieSliceDepth;if(n&&g.showplotborder!=Ha&&!r)J.showBorderEffect=1;for(a=o.length-1;a>=0;a-=1){j=o[a];c=z.getCleanValue(j.value,!0);d=va(i(j.label,j.name,B));m=i(j.color,b.colors[a%b.colors.length]);p=i(j.alpha,g.plotfillalpha);l=i(j.bordercolor,s);k=i(j.borderalpha,g.plotborderalpha,g.pieborderalpha);
if(n&&(l||k!==void 0))J.showBorderEffect=0;l=i(l,ea(m,n?90:25)).split(K)[0];k=g.showplotborder==xa?xa:i(k,p,"80");p=i(p,Aa);r={opacity:Math.max(p,k)/100};if(A=Boolean(f(j.issliced,g.issliced,0)))e.preSliced=A;Q=f(j.dashed,D)?ya(i(j.dashlen,L),i(j.dashgap,G),C):void 0;J.data.push({showInLegend:d!==B,y:c,name:d,shadow:r,toolText:va(ua(j.tooltext)),color:this.getPointColor(m,p,q),_3dAlpha:p,borderColor:na(l,k),borderWidth:C,link:ua(j.link),sliced:A,dashStyle:Q,doNotSlice:i(g.enableslicing,Ha)!=Ha});
p=z.percentValue(c/h*100);l=z.dataLabels(c)||B;r=x===1?p:l;c=f(j.showlabel,Sa)===1?d:B;p=(m=f(j.showvalue,H))===1?w===1?p:l:B;j=ua(va(j.displayvalue));p=j!==void 0&&m?j:p!==B&&c!==B?c+v+p:i(c,p);d=d!=B?d+F+r:r;j=J.data[y];j.displayValue=p;j.toolText=i(j.toolText,d);y+=1}J.valueTotal=h;b.legend.enabled=g.showlegend==Ha?!0:!1;J.startAngle=f(g.startingangle,0);b.chart.startingAngle=i(o.length>1?g.startingangle:0,0);return J},getPointColor:function(a,J,d){var g,b,a=V(a),J=La(J);d<100&&Z?(g=Math.floor((100-
0.35*d)*85)/100,g=ca(a,g),b=Math.floor((100+d)*50)/100,a=ea(a,b),J={FCcolor:{color:a+K+g,alpha:J+K+J,ratio:d+",100",radialGradient:!0,gradientUnits:"userSpaceOnUse"}}):J={FCcolor:{color:a+K+a,alpha:J+K+J,ratio:"0,100"}};return J},configureAxis:function(a){var J=0,d=a[O],g;a.plotOptions.series.dataLabels.style=a.xAxis.labels.style;a.plotOptions.series.dataLabels.color=a.xAxis.labels.style.color;delete d.x;delete d[0];delete d[1];a.chart.plotBorderColor=a.chart.plotBackgroundColor=Ma;d=d.pieDATALabels=
[];if(a.series.length===1&&(g=a.series[0].data)&&(J=a.series[0].data.length)>0&&a.plotOptions.series.dataLabels.enabled)for(;J--;)g[J]&&ua(g[J].displayValue)!==void 0&&d.push(g[J].displayValue)},spaceManager:function(a,J,d,g){var b=a[O],c=b.is3d,j=this.name,r=b.smartLabel,e=f(b.pieDATALabels&&b.pieDATALabels.length,0),n=0,m=J.chart,p=f(m.managelabeloverflow,0),l=!b.preSliced&&m.enableslicing==xa&&(m.showlegend!=Ha||m.interactivelegend==xa)?0:f(m.slicingdistance,20),k=f(m.pieradius,0),h=f(m.enablesmartlabels,
m.enablesmartlabel,1),y=h?f(m.skipoverlaplabels,m.skipoverlaplabel,1):0,o=f(m.issmartlineslanted,1),C=f(m.labeldistance,m.nametbdistance,5),q=f(m.smartlabelclearance,5);d-=a.chart.marginRight+a.chart.marginLeft;var x=g-(a.chart.marginTop+a.chart.marginBottom),g=Math.min(x,d),Sa=i(m.smartlinecolor,U.plotFillColor[a.chart.paletteIndex]),H=f(m.smartlinealpha,100),w=f(m.smartlinethickness,0.7),F=a.plotOptions.series.dataLabels,v=F.style,s=f(parseInt(v.lineHeight,10),12),z=a.series[0]||{},A=z.pieYScale,
Q=z.pieSliceDepth,g=k===0?g*0.15:k,D=0,D=2*g;F.connectorWidth=w;F.connectorPadding=f(m.connectorpadding,5);F.connectorColor=na(Sa,H);x-=Ya(a,J,d,D<x?x-D:x/2);m.showlegend==Ha&&(i(m.legendposition,Ua).toLowerCase()!=Wa?x-=Za(a,J,d,x/2,!0):d-=$a(a,J,d/3,x,!0));r.setStyle(v);if(e!==1)for(;e--;)J=r.getOriSize(b.pieDATALabels[e]),n=Math.max(n,J.width);h&&(C=q+l);k===0&&(c?(x-=Q,D=Math.min(d/2-n,(x/2-s)/A)-C):D=Math.min(d/2-n,x/2-s)-C,D>=g?g=D:C=Math.max(C-(g-D),l));if(c&&(e=x-2*(g*A+s),Q>e))z.managedPieSliceDepth=
Q-e;a.plotOptions.pie3d.slicedOffset=a.plotOptions.pie.slicedOffset=l;a.plotOptions.pie3d.size=a.plotOptions.pie.size=2*g;a.plotOptions.series.dataLabels.distance=C;a.plotOptions.series.dataLabels.isSmartLineSlanted=o;a.plotOptions.series.dataLabels.enableSmartLabels=h;a.plotOptions.series.dataLabels.skipOverlapLabels=y;a.plotOptions.series.dataLabels.manageLabelOverflow=p;if(j==="doughnut2d"||j==="doughnut3d")if(j=f(m.doughnutradius,0),e=f(m.use3dlighting,1)?f(m.radius3d,m["3dradius"],50):100,e>
100&&(e=100),e<0&&(e=0),m=j===0||j>=g?g/2:j,a.plotOptions.pie3d.innerSize=a.plotOptions.pie.innerSize=2*m,e>0&&Z&&(m=parseInt(m/g*100,10),j=(100-m)/2,e=parseInt(j*e/100,10),m=m+K+e+K+2*(j-e)+K+e,a.series[0]&&a.series[0].data)){p=a.series[0].data;a=0;for(e=p.length;a<e;a+=1)if(j=p[a],j.color.FCcolor)j.color.FCcolor.ratio=m}},creditLabel:!1,eiMethods:{sliceDataItem:function(a){var b=this.jsVars.hcObj,d,g,c;if(b&&b.datasets&&(d=b.datasets[0])&&(g=d.data)&&(c=g.length)&&g[a=c-a-1]&&g[a].plot)return b.plotGraphicClick.call(g[a].plot)}}},
za);o.pie2d.eiMethods.togglePieSlice=o.pie2d.eiMethods.sliceDataItem;o.pie2d.eiMethods.enableSlicingMovement=o.pie2d.eiMethods.enablelink=function(){ma.raiseWarning(this,"1301081430","run","JSRenderer~enablelink()","Method deprecated.")};o("pie3d",{friendlyName:"3D Pie Chart",defaultSeriesType:"pie3d",rendererId:"pie3d",creditLabel:!1,getPointColor:function(a){return a},defaultPlotShadow:0},o.pie2d);o("doughnut2d",{friendlyName:"Doughnut Chart",getPointColor:function(a,b,d){var g,a=V(a),b=La(b);d<
100&&Z?(g=ca(a,ia((85-0.2*(100-d))*100)/100),a=ea(a,ia((100-0.5*d)*100)/100),b={FCcolor:{color:g+","+a+","+a+","+g,alpha:b+","+b+","+b+","+b,radialGradient:!0,gradientUnits:"userSpaceOnUse",r:d}}):b={FCcolor:{color:a+","+a,alpha:b+","+b,ratio:"0,100"}};return b}},o.pie2d);o("doughnut3d",{friendlyName:"3D Doughnut Chart",defaultSeriesType:"pie3d",rendererId:"pie3d",getPointColor:o.pie3d,defaultPlotShadow:0},o.doughnut2d);o("pareto2d",{friendlyName:"Pareto Chart",standaloneInit:!0,point:function(a,
b,d,g,c){var e,j,r,aa,n,m,p,l,k,h,y,o,C,q,x,a=d.length,H=0;m={};C=c.chart.paletteIndex;var w=/3d$/.test(c.chart.defaultSeriesType),A=this.isBar,F=i(360-g.plotfillangle,90),v=f(g.plotborderthickness,1),s=c.chart.useRoundEdges,z=i(g.tooltipsepchar,", "),P=i(g.plotbordercolor,U.plotBorderColor[C]).split(K)[0],Q=g.showplotborder==xa?xa:i(g.plotborderalpha,g.plotfillalpha,Aa),D=c.xAxis,L=f(g.showcumulativeline,1),G=c[O],I=G.axisGridManager,u=G.x,ha=g.showtooltip!=xa,N=[],X=[],Y=f(g.use3dlighting,1),M=
c[O].numberFormatter,t=f(g.showlinevalues,g.showvalues),W=f(g.plotborderdashed,0),E=f(g.plotborderdashlen,5),S=f(g.plotborderdashgap,4),Q=w?g.showplotborder?Q:xa:Q,P=w?i(g.plotbordercolor,"#FFFFFF"):P;for(o=j=0;j<a;j+=1)if(y=d[j],d[j].vline)I.addVline(D,y,o,c);else if(e=M.getCleanValue(y.value,!0),e!==null)y.value=e,N.push(y),o+=1;a=N.length;N.sort(function(a,d){return d.value-a.value});if(L)p=f(g.linedashed,0),q=V(i(g.linecolor,U.plotBorderColor[C])),j=i(g.linealpha,100),l=f(g.linedashlen,5),k=f(g.linedashgap,
4),m=f(g.linethickness,2),h={opacity:j/100},x=f(g.drawanchors,g.showanchors),x===void 0&&(x=j!=xa),r=f(g.anchorborderthickness,1),n=f(g.anchorsides,0),aa=f(g.anchorradius,3),o=V(i(g.anchorbordercolor,q)),e=V(i(g.anchorbgcolor,U.anchorBgColor[C])),d=La(i(g.anchoralpha,Aa)),y=La(i(g.anchorbgalpha,d))*d/100,p=p?ya(l,k,m):void 0,m={yAxis:1,data:[],type:"line",color:{FCcolor:{color:q,alpha:j}},lineWidth:m,marker:{enabled:x,fillColor:{FCcolor:{color:e,alpha:y}},lineColor:{FCcolor:{color:o,alpha:d}},lineWidth:r,
radius:aa,symbol:ab(n),startAngle:i(g.anchorstartangle,90)}};else{if(g.showsecondarylimits!=="1")g.showsecondarylimits="0";if(g.showdivlinesecondaryvalue!=="1")g.showdivlinesecondaryvalue="0"}for(j=0;j<a;j+=1)y=N[j],e=f(y.showlabel,g.showlabels,1),d=va(!e?B:ka(y.label,y.name)),I.addXaxisCat(D,j,j,d),H+=e=y.value,r=i(y.color,c.colors[j%c.colors.length])+K+(f(g.useplotgradientcolor,1)?Na(g.plotgradientcolor,U.plotGradientColor[C]):B),aa=i(y.alpha,g.plotfillalpha,Aa),n=i(y.ratio,g.plotfillratio),o={opacity:aa/
100},q=i(y.alpha,Q)+B,r=Qa(r,aa,n,F,s,P,q,A,w),b.data.push(wa(this.getPointStub(y,e,d,c),{y:e,shadow:o,color:r[0],borderColor:r[1],borderWidth:v,use3DLighting:Y,dashStyle:f(y.dashed,W)==1?ya(E,S,v):"",tooltipConstraint:this.tooltipConstraint})),this.pointValueWatcher(c,e),L&&X.push({value:H,dataLabel:d,tooltext:ua(y.tooltext)});u.catCount=a;G[1]||(G[1]={});G[1].stacking100Percent=!0;if(L&&H>0){j=0;for(a=X.length;j<a;j+=1)y=X[j],c=b.data[j],e=y.value/H*100,C=M.percentValue(e),g=c.displayValue!==B?
C:B,t==1&&(g=C),t==0&&(g=B),d=y.dataLabel,C=ha?y.tooltext!==void 0?y.tooltext:(d!==B?d+z:B)+C:B,m.data.push({shadow:h,color:m.color,marker:m.marker,y:e,toolText:C,displayValue:g,link:c.link,dashStyle:p});return[b,m]}else return b},defaultSeriesType:"column",isDual:!0,creditLabel:!1,rendererId:"cartesian"},za);o("pareto3d",{friendlyName:"3D Pareto Chart",defaultSeriesType:"column3d",defaultPlotShadow:1,is3D:!0},o.pareto2d);o("mscolumn2d",{friendlyName:"Multi-series Column Chart",standaloneInit:!0,
creditLabel:!1,rendererId:"cartesian"},o.mscolumn2dbase);o("mscolumn3d",{friendlyName:"Multi-series 3D Column Chart",defaultSeriesType:"column3d",defaultPlotShadow:1,is3D:!0,defaultZeroPlaneHighlighted:!1},o.mscolumn2d);o("msbar2d",{friendlyName:"Multi-series Bar Chart",isBar:!0,defaultSeriesType:"bar",spaceManager:o.barbase},o.mscolumn2d);o("msbar3d",{friendlyName:"Multi-series 3D Bar Chart",defaultSeriesType:"bar3d",defaultPlotShadow:1,is3D:!0,defaultZeroPlaneHighlighted:!1},o.msbar2d);o("msline",
{friendlyName:"Multi-series Line Chart",standaloneInit:!0,creditLabel:!1,rendererId:"cartesian"},o.mslinebase);o("msarea",{friendlyName:"Multi-series Area Chart",standaloneInit:!0,creditLabel:!1,rendererId:"cartesian"},o.msareabase);o("stackedcolumn2d",{friendlyName:"Stacked Column Chart",isStacked:!0},o.mscolumn2d);o("stackedcolumn3d",{friendlyName:"3D Stacked Column Chart",isStacked:!0},o.mscolumn3d);o("stackedbar2d",{friendlyName:"Stacked Bar Chart",isStacked:!0},o.msbar2d);o("stackedbar3d",{friendlyName:"3D Stacked Bar Chart",
isStacked:!0},o.msbar3d);o("stackedarea2d",{friendlyName:"Stacked Area Chart",isStacked:!0,areaAlpha:100,showSum:0},o.msarea);o("marimekko",{friendlyName:"Marimekko Chart",isValueAbs:!0,distributedColumns:!0,isStacked:!0,xAxisMinMaxSetter:Fa,postSeriesAddition:function(a,b){var d=a[O],g=0,c=a.xAxis,e=100/d.marimekkoTotal,j=[],r=a.series,aa=0,n=f(b.chart.plotborderthickness,1),m=a.chart.rotateValues,p=f(b.chart.rotatexaxispercentvalues,0),l=n*-0.5-(n%2+(p?0:4)),k=p?3:0,h=m?270:0,y=wa({},a.plotOptions.series.dataLabels.style),
o=parseInt(y.fontSize,10),C=d[0],q=C.stacking100Percent,x=!q,H=d.inCanvasStyle,w=this.numberFormatter,i=b.categories&&b.categories[0]&&b.categories[0].category||[],F=0,v=[],s,z,P,Q,D,L,G,I,u,n=[];d.isXYPlot=!0;d.distributedColumns=!0;c.min=0;c.max=100;c.labels.enabled=!1;c.gridLineWidth=0;c.alternateGridColor=Ma;s=C.stack;b.chart.interactivelegend="0";C=0;for(z=a.xAxis.plotLines.length;C<z;C+=1)if(P=c.plotLines[C],P.isGrid)P.isCat=!0,j[P.value]=P,P._hideLabel=!0;for(C=z=0;C<i.length;C+=1)i[C].vline||
(F+=v[z]=w.getCleanValue(i[C].widthpercent||0),z+=1);i=s.floatedcolumn&&s.floatedcolumn[0]||[];if(F===100&&(i&&i.length)!==z)for(;z--;)i[z]||(i[z]={p:null});F=A(F);if(i){D=0;for(z=i.length;D<z;){u=i[D];g+=Q=u&&u.p||0;G=F===100?v[D]:Q*e;L=aa+G/2;I=aa+G;n.push(I);for(C=0;C<r.length;C+=1)if(s=a.series[C].data[D],s._FCX=aa,s._FCW=G,q){if(s.y||s.y===0){P=s.y/Q*100;s.y=P;if(s.showPercentValues)s.displayValue=this.numberFormatter.percentValue(P);if(s.showPercentInToolTip)s.toolText=s.toolText+parseInt(P*
100,10)/100+"%"}if(s.previousY||s.previousY===0)s.previousY=s.previousY/Q*100}d.showStackTotal&&a.xAxis.plotLines.push({value:L,width:0,isVline:x,isTrend:!x,_isStackSum:1,zIndex:4,label:{align:Ra,textAlign:h,rotation:m?270:0,style:y,verticalAlign:Va,offsetScale:x?Q<0?u.n:u.p:void 0,offsetScaleIndex:0,y:Q<0?m===270?4:o:-4,x:0,text:w.yAxis(Pa(Q,10))}});if(j[D])j[D].value=L,j[D]._weight=G,j[D]._hideLabel=!1;D+=1;d.showXAxisPercentValues&&D<z&&a.xAxis.plotLines.push({value:I,width:0,isVine:!0,label:{align:Ra,
textAlign:p?Xa:Ra,rotation:p?270:0,backgroundColor:"#ffffff",backgroundOpacity:1,borderWidth:"1px",borderType:"solid",borderColor:H.color,style:{color:H.color,fontSize:H.fontSize,fontFamily:H.fontFamily,lineHeight:H.lineHeight},verticalAlign:Ua,y:l,x:k,text:this.numberFormatter.percentValue(I)},zIndex:5});aa=I}}D=0;for(z=j.length;D<z;D+=1)if(j[D]&&j[D]._hideLabel)j[D].value=null;C=0;for(z=a.xAxis.plotLines.length;C<z;C+=1)if(P=c.plotLines[C],P.isVline&&!P._isStackSum&&(d=P.value))d=A(d-0.5),P.value=
n[d]},defaultSeriesType:"floatedcolumn"},o.stackedcolumn2d);o("msstackedcolumn2d",{friendlyName:"Multi-series Stacked Column Chart",series:function(a,b,d){var g,c,e,j,r=b[O],aa=0,n,m;n=[];var p;b.legend.enabled=Boolean(f(a.chart.showlegend,1));if(a.dataset&&a.dataset.length>0){this.categoryAdder(a,b);g=0;for(c=a.dataset.length;g<c;g+=1)if(p=a.dataset[g].dataset){e=0;for(j=p.length;e<j;e+=1,aa+=1)n={visible:!!f(p.visible,1),data:[],numColumns:c,columnPosition:g},m=Math.min(r.oriCatTmp.length,p[e].data&&
p[e].data.length),n=this.point(d,n,p[e],a.chart,b,m,aa,g),b.series.push(n)}if(this.isDual&&a.lineset&&a.lineset.length>0){e=0;for(j=a.lineset.length;e<j;e+=1,aa+=1)n={visible:!!f(a.lineset[e].visible,1),data:[],yAxis:1,type:"line"},d=a.lineset[e],m=Math.min(r.oriCatTmp.length,d.data&&d.data.length),b.series.push(o.msline.point.call(this,"msline",n,d,a.chart,b,m,aa))}this.configureAxis(b,a);a.trendlines&&Ja(a.trendlines,b.yAxis,b[O],this.isDual,this.isBar)}},postSpaceManager:function(a,b,d){var l;
var g=a[O],c,e,j;if(this.isStacked&&g.showStackTotal&&(c=a.chart,l=(b=a.xAxis)&&b.plotLines,a=l,c=d-c.marginLeft-c.marginRight,d=g.plotSpacePercent,g=g[0].stack,g=g.column&&g.column.length,b=c/(b.max-b.min),b*((1-2*d)/g)>50&&d==0.1)){b=50/b;d=a&&a.length;g=-((g-1)/2)*b;for(j=0;j<d;j+=1)if(e=a[j],e._isStackSum)c=e._catPosition+(g+b*e._stackIndex),e.value=c}}},o.stackedcolumn2d);o("mscombi2d",{friendlyName:"Multi-series Combination Chart",standaloneInit:!0,creditLabel:!1,rendererId:"cartesian"},o.mscombibase);
o("mscombi3d",{friendlyName:"Multi-series 3D Combination Chart",series:o.mscombi2d.series,eiMethods:function(a){var b={};qa(a.split(","),function(a){b[a]=function(){ma.raiseWarning(this,"1301081430","run","JSRenderer~"+a+"()","Method not applicable.")}});return b}("view2D,view3D,resetView,rotateView,getViewAngles,fitToStage")},o.mscolumn3d);o("mscolumnline3d",{friendlyName:"Multi-series Column and Line Chart"},o.mscombi3d);o("stackedcolumn2dline",{friendlyName:"Stacked Column and Line Chart",isStacked:!0,
stack100percent:0},o.mscombi2d);o("stackedcolumn3dline",{friendlyName:"Stacked 3D Column and Line Chart",isStacked:!0,stack100percent:0},o.mscombi3d);o("mscombidy2d",{friendlyName:"Multi-series Dual Y-Axis Combination Chart",isDual:!0,secondarySeriesType:void 0},o.mscombi2d);o("mscolumn3dlinedy",{friendlyName:"Multi-series 3D Column and Line Chart",isDual:!0,secondarySeriesType:"line"},o.mscolumnline3d);o("stackedcolumn3dlinedy",{friendlyName:"Stacked 3D Column and Line Chart",isDual:!0,secondarySeriesType:"line"},
o.stackedcolumn3dline);o("msstackedcolumn2dlinedy",{friendlyName:"Multi-series Dual Y-Axis Stacked Column and Line Chart",isDual:!0,stack100percent:0,secondarySeriesType:"line"},o.msstackedcolumn2d);o("scrollcolumn2d",{friendlyName:"Scrollable Multi-series Column Chart",postSeriesAddition:o.scrollbase.postSeriesAddition,tooltipConstraint:"plot",canvasborderthickness:1,avgScrollPointWidth:40},o.mscolumn2d);o("scrollline2d",{friendlyName:"Scrollable Multi-series Line Chart",postSeriesAddition:o.scrollbase.postSeriesAddition,
tooltipConstraint:"plot",canvasborderthickness:1,avgScrollPointWidth:75},o.msline);o("scrollarea2d",{friendlyName:"Scrollable Multi-series Area Chart",postSeriesAddition:o.scrollbase.postSeriesAddition,tooltipConstraint:"plot",canvasborderthickness:1,avgScrollPointWidth:75},o.msarea);o("scrollstackedcolumn2d",{friendlyName:"Scrollable Stacked Column Chart",postSeriesAddition:function(a,b,d,g){o.base.postSeriesAddition.call(this,a,b,d,g);o.scrollbase.postSeriesAddition.call(this,a,b,d,g)},canvasborderthickness:1,
tooltipConstraint:"plot",avgScrollPointWidth:75},o.stackedcolumn2d);o("scrollcombi2d",{friendlyName:"Scrollable Combination Chart",postSeriesAddition:o.scrollbase.postSeriesAddition,tooltipConstraint:"plot",canvasborderthickness:1,avgScrollPointWidth:40},o.mscombi2d);o("scrollcombidy2d",{friendlyName:"Scrollable Dual Y-Axis Combination Chart",postSeriesAddition:o.scrollbase.postSeriesAddition,tooltipConstraint:"plot",canvasborderthickness:1,avgScrollPointWidth:40},o.mscombidy2d);o("scatter",{friendlyName:"Scatter Chart",
standaloneInit:!0,defaultSeriesType:"scatter",defaultZeroPlaneHighlighted:!1,creditLabel:!1},o.scatterbase);o("bubble",{friendlyName:"Bubble Chart",standaloneInit:!0,standaloneInut:!0,defaultSeriesType:"bubble",rendererId:"bubble",point:function(a,b,d,g,c,e,j){if(d.data){var r,aa,n,m,p,l,k,h,y,H,C=!1,q,x,a=o[a],e=d.data,w=e.length,A=f(d.showvalues,c[O].showValues);n=f(g.bubblescale,1);var P=i(g.negativecolor,"FF0000"),F=c.plotOptions.bubble,v=this.numberFormatter,s=f(d.showregressionline,g.showregressionline,
0);F.bubbleScale=n;b.name=ua(d.seriesname);if(f(d.includeinlegend)===0||b.name===void 0)b.showInLegend=!1;n=Boolean(f(d.drawanchors,d.showanchors,g.drawanchors,1));k=i(d.plotfillalpha,d.bubblefillalpha,g.plotfillalpha,Aa);h=f(d.showplotborder,g.showplotborder,1);y=V(i(d.plotbordercolor,g.plotbordercolor,"666666"));r=i(d.plotborderthickness,g.plotborderthickness,1);H=i(d.plotborderalpha,g.plotborderalpha,"95");h=h==1?r:0;j=i(d.color,d.plotfillcolor,g.plotfillcolor,c.colors[j%c.colors.length]);b.marker=
{enabled:n,fillColor:this.getPointColor(j,Aa),lineColor:{FCcolor:{color:y,alpha:H}},lineWidth:h,symbol:"circle"};if(s){b.events={hide:this.hideRLine,show:this.showRLine};var z={sumX:0,sumY:0,sumXY:0,sumXsqure:0,sumYsqure:0,xValues:[],yValues:[]},u=f(d.showyonx,g.showyonx,1),Q=V(i(d.regressionlinecolor,g.regressionlinecolor,j)),D=f(d.regressionlinethickness,g.regressionlinethickness,1);r=La(f(d.regressionlinealpha,g.regressionlinealpha,100));Q=na(Q,r)}for(aa=0;aa<w;aa+=1)if(m=e[aa])if(r=v.getCleanValue(m.y),
q=v.getCleanValue(m.x),x=v.getCleanValue(m.z,!0),r===null)b.data.push({y:null,x:q});else{C=!0;p=V(i(m.color,m.z<0?P:j));l=i(m.alpha,k);m=a.getPointStub(m,r,q,c,d,A);p=f(g.use3dlighting)===0?p:a.getPointColor(p,l);if(x!==null)F.zMax=F.zMax>x?F.zMax:x,F.zMin=F.zMin<x?F.zMin:x;b.data.push({y:r,x:q,z:x,displayValue:m.displayValue,toolText:m.toolText,link:m.link,marker:{enabled:n,fillColor:p,lineColor:{FCcolor:{color:y,alpha:H}},lineWidth:h,symbol:"circle"}});this.pointValueWatcher(c,r,q,s&&z)}else b.data.push({y:null});
s&&(d={type:"line",color:Q,showInLegend:!1,lineWidth:D,enableMouseTracking:!1,marker:{enabled:!1},data:this.getRegressionLineSeries(z,u,w),zIndex:0},b=[b,d])}if(!C)b.showInLegend=!1;return b},postSeriesAddition:function(a,b){a.chart.clipBubbles=f(b.chart.clipbubbles,1)},getPointStub:function(a,b,d,g,c,e){var g=g[O],b=b===null?b:g.numberFormatter.dataLabels(b),j,r=g.tooltipSepChar;g.showTooltip?ua(a.tooltext)!==void 0?c=va(a.tooltext):b===null?c=!1:(g.seriesNameInToolTip&&(j=i(c&&c.seriesname)),c=
j?j+r:B,c+=d?d+r:B,c+=b,c+=a.z?r+a.z:B):c=B;d=f(a.showvalue,e,g.showValues)?i(a.displayvalue,a.name,a.label)!==void 0?va(i(a.displayvalue,a.name,a.label)):b:B;a=ua(a.link);return{displayValue:d,toolText:c,link:a}}},o.scatter);o("ssgrid",{friendlyName:"Grid Component",standaloneInit:!0,defaultSeriesType:"ssgrid",rendererId:"ssgrid",chart:function(a,b){var z;var d=this.containerElement,g=this.dataObj,c=this.chartInstance,g=wa({},g);g.chart=g.chart||g.graph||{};delete g.graph;var e,j,r,k=0,n,m,p=[],
l=g.chart,h=g.data,H=h&&h.length,g=this.smartLabel,y=this.numberFormatter,w=d.offsetHeight,C=d.offsetWidth,q={},x=0,A=0,P=(l.palette>0&&l.palette<6?l.palette:f(this.paletteIndex,1))-1,d={_FCconf:{0:{stack:{}},1:{stack:{}},x:{stack:{}},noWrap:!1,marginLeftExtraSpace:0,marginRightExtraSpace:0,marginBottomExtraSpace:0,marginTopExtraSpace:0,marimekkoTotal:0},chart:{renderTo:d,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",style:{fontFamily:i(l.basefont,"Verdana"),fontSize:Ga(l.basefontsize,20)+Oa,color:i(l.basefontcolor,U.baseFontColor[P]).replace(/^#?([a-f0-9]+)/ig,"#$1")},plotBackgroundColor:Ma},labels:{smartLabel:g},colors:["AFD8F8","F6BD0F","8BBA00","FF8E46","008E8E","D64646","8E468E","588526","B3AA00","008ED6","9D080D","A186BE","CC6600","FDC689","ABA000","F26D7D","FFF200","0054A6","F7941C","CC3300","006600","663300","6DCFF6"],
credits:{href:"http://www.fusioncharts.com?BS=FCHSEvalMark",text:t.CREDIT_STRING,enabled:this.creditLabel},legend:{enabled:!1},series:[],subtitle:{text:B},title:{text:B},tooltip:{enabled:!1},exporting:{buttons:{exportButton:{},printButton:{enabled:!1}}}},u=d[O],F=d.colors,v=d.colors.length,s=n=j=x=0,A=k=m=0;r=c.jsVars.cfgStore;c=d.chart;Ba(d.chart.style);c.events.click=this.linkClickFN;j=c.toolbar={button:{}};n=j.button;n.scale=f(l.toolbarbuttonscale,1.15);n.width=f(l.toolbarbuttonwidth,15);n.height=
f(l.toolbarbuttonheight,15);n.radius=f(l.toolbarbuttonradius,2);n.spacing=f(l.toolbarbuttonspacing,5);n.fill=na(i(l.toolbarbuttoncolor,"ffffff"));n.labelFill=na(i(l.toolbarlabelcolor,"cccccc"));n.symbolFill=na(i(l.toolbarsymbolcolor,"ffffff"));n.hoverFill=na(i(l.toolbarbuttonhovercolor,"ffffff"));n.stroke=na(i(l.toolbarbuttonbordercolor,"bbbbbb"));n.symbolStroke=na(i(l.toolbarsymbolbordercolor,"9a9a9a"));n.strokeWidth=f(l.toolbarbuttonborderthickness,1);n.symbolStrokeWidth=f(l.toolbarsymbolborderthickness,
1);m=n.symbolPadding=f(l.toolbarsymbolpadding,5);n.symbolHPadding=f(l.toolbarsymbolhpadding,m);n.symbolVPadding=f(l.toolbarsymbolvpadding,m);m=j.position=i(l.toolbarposition,"tr").toLowerCase();switch(m){case "tr":case "tl":case "br":case "bl":break;default:m="tr"}n=j.hAlign=(B+l.toolbarhalign).toLowerCase()==="left"?"l":m.charAt(1);z=j.vAlign=(B+l.toolbarvalign).toLowerCase()==="bottom"?"b":m.charAt(0),m=z;j.hDirection=f(l.toolbarhdirection,n==="r"?-1:1);j.vDirection=f(l.toolbarvdirection,m==="b"?
-1:1);j.vMargin=f(l.toolbarvmargin,6);j.hMargin=f(l.toolbarhmargin,10);j.x=f(l.toolbarx,n==="l"?0:a);j.y=f(l.toolbary,m==="t"?0:b);if(i(l.clickurl)!==void 0)c.link=l.clickurl,c.style.cursor="pointer";q.showPercentValues=f(r.showpercentvalues,l.showpercentvalues,0);q.numberItemsPerPage=i(r.numberitemsperpage,l.numberitemsperpage);q.showShadow=f(r.showshadow,l.showshadow,0);q.baseFont=i(r.basefont,l.basefont,"Verdana");e=Ga(r.basefontsize,l.basefontsize,10);q.baseFontSize=e+Oa;q.baseFontColor=V(i(r.basefontcolor,
l.basefontcolor,U.baseFontColor[P]));q.alternateRowBgColor=V(i(r.alternaterowbgcolor,l.alternaterowbgcolor,U.altHGridColor[P]));q.alternateRowBgAlpha=i(r.alternaterowbgalpha,l.alternaterowbgalpha,U.altHGridAlpha[P])+B;q.listRowDividerThickness=f(r.listrowdividerthickness,l.listrowdividerthickness,1);q.listRowDividerColor=V(i(r.listrowdividercolor,l.listrowdividercolor,U.borderColor[P]));q.listRowDividerAlpha=f(r.listrowdivideralpha,l.listrowdivideralpha,U.altHGridAlpha[P])+15+B;q.colorBoxWidth=f(r.colorboxwidth,
l.colorboxwidth,8);q.colorBoxHeight=f(r.colorboxheight,l.colorboxheight,8);q.navButtonRadius=f(r.navbuttonradius,l.navbuttonradius,7);q.navButtonColor=V(i(r.navbuttoncolor,l.navbuttoncolor,U.canvasBorderColor[P]));q.navButtonHoverColor=V(i(r.navbuttonhovercolor,l.navbuttonhovercolor,U.altHGridColor[P]));q.textVerticalPadding=f(r.textverticalpadding,l.textverticalpadding,3);q.navButtonPadding=f(r.navbuttonpadding,l.navbuttonpadding,5);q.colorBoxPadding=f(r.colorboxpadding,l.colorboxpadding,10);q.valueColumnPadding=
f(r.valuecolumnpadding,l.valuecolumnpadding,10);q.nameColumnPadding=f(r.namecolumnpadding,l.namecolumnpadding,5);q.borderThickness=f(r.borderthickness,l.borderthickness,1);q.borderColor=V(i(r.bordercolor,l.bordercolor,U.borderColor[P]));q.borderAlpha=i(r.borderalpha,l.borderalpha,U.borderAlpha[P])+B;q.bgColor=i(r.bgcolor,l.bgcolor,"FFFFFF");q.bgAlpha=i(r.bgalpha,l.bgalpha,Aa);q.bgRatio=i(r.bgratio,l.bgratio,Aa);q.bgAngle=i(r.bgangle,l.bgangle,xa);c.borderRadius=q.borderThickness/16;c.borderWidth=
q.borderThickness;c.borderColor=ba({FCcolor:{color:q.borderColor,alpha:q.borderAlpha}});c.backgroundColor={FCcolor:{color:q.bgColor,alpha:q.bgAlpha,ratio:q.bgRatio,angle:q.bgAngle}};c.borderRadius=f(l.borderradius,0);r={fontFamily:q.baseFont,fontSize:q.baseFontSize,color:q.baseFontColor};Ba(r);g.setStyle(r);for(k=0;k<H;k+=1)if(e=h[k],n=y.getCleanValue(e.value),m=va(ka(e.label,e.name)),j=V(i(e.color,F[k%v])),i(e.alpha,l.plotfillalpha,Aa),m!=B||n!=null)p.push({value:n,label:m,color:j}),x+=n,A+=1;for(k=
0;k<A;k+=1)e=p[k],n=e.value,e.dataLabel=e.label,e.displayValue=q.showPercentValues?y.percentValue(n/x*100):y.dataLabels(n),h=g.getOriSize(e.displayValue),s=Math.max(s,h.width+q.valueColumnPadding);q.numberItemsPerPage?q.numberItemsPerPage>=A?(q.numberItemsPerPage=A,n=w/q.numberItemsPerPage,j=A):(y=w,y-=2*(q.navButtonPadding+q.navButtonRadius),j=q.numberItemsPerPage,n=y/j):(x=parseInt(r.lineHeight,10),x+=2*q.textVerticalPadding,x=Math.max(x,q.colorBoxHeight),w/x>=A?(n=w/A,j=A):(y=w,y-=2*(q.navButtonPadding+
q.navButtonRadius),j=Math.floor(y/x),n=y/j));m=C-q.colorBoxPadding-q.colorBoxWidth-q.nameColumnPadding-s-q.valueColumnPadding;k=q.colorBoxPadding+q.colorBoxWidth+q.nameColumnPadding;y=i(l.basefont,"Verdana");h=Ga(l.basefontsize,10);P=i(l.basefontcolor,U.baseFontColor[P]);H=i(l.outcnvbasefont,y);e=Ga(l.outcnvbasefontsize,h);s=e+Oa;l=i(l.outcnvbasefontcolor,P).replace(/^#?([a-f0-9]+)/ig,"#$1");h+=Oa;P=P.replace(/^#?([a-f0-9]+)/ig,"#$1");u.trendStyle=u.outCanvasStyle={fontFamily:H,color:l,fontSize:s};
Ba(u.trendStyle);u.inCanvasStyle={fontFamily:y,fontSize:h,color:P};d.tooltip.style={fontFamily:y,fontSize:h,lineHeight:void 0,color:P};d.tooltip.shadow=!1;c.height=w;c.width=C;c.rowHeight=n;c.labelX=k;c.colorBoxWidth=q.colorBoxWidth;c.colorBoxHeight=q.colorBoxHeight;c.colorBoxX=q.colorBoxPadding;c.valueX=q.colorBoxPadding+q.colorBoxWidth+q.nameColumnPadding+m+q.valueColumnPadding;c.valueColumnPadding=q.valueColumnPadding;c.textStyle=r;c.listRowDividerAttr={"stroke-width":q.listRowDividerThickness,
stroke:{FCcolor:{color:q.listRowDividerColor,alpha:q.listRowDividerAlpha}}};c.alternateRowColor={FCcolor:{color:q.alternateRowBgColor,alpha:q.alternateRowBgAlpha}};c.navButtonRadius=q.navButtonRadius;c.navButtonPadding=q.navButtonPadding;c.navButtonColor=q.navButtonColor;c.navButtonHoverColor=q.navButtonHoverColor;c.lineHeight=parseInt(r.lineHeight,10);l=[];w=0;q=!0;for(k=0;k<A&j!=0;k+=1)k%j==0&&(l.push({data:[],visible:q}),q=!1,w+=1),e=p[k],C=g.getSmartText(e.dataLabel,m,n),l[w-1].data.push({label:C.text,
originalText:C.tooltext,displayValue:e.displayValue,y:e.value,color:e.color});d.series=l;o.base.parseExportOptions.call(this,d);d.tooltip.enabled=!!d.exporting.enabled;return d},creditLabel:!1},o.base);o("renderer.bubble",{drawPlotBubble:function(a,b){var d=this,g=d.options,c=g.chart,e=g.plotOptions.series,j=d.paper,r=d.elements,k=a.items,n=a.graphics=a.graphics||[],m=d.xAxis[b.xAxis||0],p=d.yAxis[b.yAxis||0],l=a.data,h=(g.tooltip||{}).enabled!==!1,e=isNaN(+e.animation)&&e.animation.duration||e.animation*
1E3,o=b.visible===!1?"hidden":"visible",g=g.plotOptions.bubble,y=g.zMax,g=g.bubbleScale,H=ha(d.canvasHeight,d.canvasWidth)/8,y=R(y),C,q,x,w,P,i,F,v,s,z,u=d.layers,Q=u.dataset=u.dataset||j.group("dataset-orphan");u.datalabels=u.datalabels||j.group("datalables").insertAfter(Q);var u=u.tracker,D,L,Q=Q.bubble=Q.bubble||j.group("bubble",Q);c.clipBubbles&&!Q.attrs["clip-rect"]&&Q.attr({"clip-rect":r["clip-canvas"]});r=0;for(C=l.length;r<C;r+=1){q=l[r];s=z=L=null;v=q.marker;if(q.y!==null&&v&&v.enabled){x=
q.link;c=q.toolText;w=f(q.x,r);P=q.y;F=p.getAxisPosition(P);i=m.getAxisPosition(w);s=R(q.z);D=A(s*H/y)*g;s=j.circle(i,F,0,Q).attr({fill:ba(v.fillColor),"stroke-width":v.lineWidth,stroke:ba(v.lineColor),visibility:o}).animate({r:D||0},e,"easeOut");if(x||h)D<Ka&&(D=Ka),z=j.circle(i,F,D,u).attr({cursor:x?"pointer":"",stroke:la,"stroke-width":v.lineWidth,fill:la,ishot:!!x,visibility:o}).tooltip(c).data("link",x).click(function(){var a=this.data("link");a&&d.linkClickFN.call({link:a},d)});k[r]={index:r,
x:w,y:P,z:q.z,value:P,graphic:s,dataLabel:L,tracker:z};L=d.drawPlotLineLabel(a,b,r,i,F)}else k[r]={index:r,x:w,y:P};L&&n.push(L);s&&n.push(s);z&&n.push(z)}a.visible=b.visible!==!1;return a}},o["renderer.cartesian"]);o("renderer.ssgrid",{drawGraph:function(){var a=this.options.series,b=this.elements,d=b.plots,c=a.length,e;if(!d)d=this.plots=this.plots||[],b.plots=d;this.drawSSGridNavButton();for(e=0;e<c;e++){if(!(b=d[e]))d.push(b={items:[],data:a[e].data});a[e].data&&a[e].data.length&&this.drawPlot(b,
a[e])}c>1&&this.nenagitePage(0)},drawPlot:function(a){var b=a.data,d=this.paper,g=this.options.chart,e=g.colorBoxHeight,h=g.colorBoxWidth,j=g.colorBoxX,r=g.labelX,aa=g.valueX,n=g.rowHeight,m=g.width,p=g.listRowDividerAttr,l=p["stroke-width"],p=ba(p.stroke),o=l%2/2,H=g.textStyle,y=this.layers,y=y.dataset=y.dataset||d.group("dataset-orphan"),g=ba(g.alternateRowColor),a=a.items,w=0,C,q,x,f;if(!b||!b.length)b=[];p={stroke:p,"stroke-width":l};f=0;for(l=b.length;f<l;f+=1)if(x=b[f],q=x.y,C=a[f]={index:f,
value:q,graphic:null,dataLabel:null,dataValue:null,alternateRow:null,listRowDivider:null,hot:null},!(q===null||q===void 0)){if(f%2===0)C.alternateRow=d.rect(0,w,m,n,0,y).attr({fill:g,"stroke-width":0});q=A(w)+o;C.listRowDivider=d.path([c,0,q,k,m,q],y).attr(p);C.graphic=d.rect(j,w+n/2-e/2,h,e,0,y).attr({fill:x.color,"stroke-width":0,stroke:"#000000"});q=C.dataLabel=d.text().attr({text:x.label,title:x.originalText||"",x:r,y:w+n/2,fill:H.color,"text-anchor":"start"}).css(H);y.appendChild(q);C=C.dataValue=
d.text().attr({text:x.displayValue,title:x.originalText||"",x:aa,y:w+n/2,fill:H.color,"text-anchor":"start"}).css(H);y.appendChild(C);w+=n}q=A(w)+o;d.path([c,0,q,k,m,q],y).attr(p)},drawSSGridNavButton:function(a){var a=this,b=a.paper,d=a.options,g=d.chart,e=d.series,h=g.navButtonColor,j=g.navButtonHoverColor,d=g.navButtonRadius,r=d*0.67,aa=g.navButtonPadding+r+(e&&e[0].data&&e[0].data.length*g.rowHeight)+d*0.5,g=g.width-20,n,m,p;if(e.length>1){var l=a.naviigator=b.group("navigation");a.navElePrv=
e=b.group(l);n=b.path([c,20,aa,k,20+d+r,aa-r,20+d,aa,20+d+r,aa+r,"Z"]).attr({fill:h,"stroke-width":0,cursor:"pointer"});e.appendChild(n);p=b.circle(20+d,aa,d).attr({fill:Ma,"stroke-width":0,cursor:"pointer"}).mouseover(function(){n.attr({fill:j,cursor:"pointer"})}).mouseout(function(){n.attr({fill:h})}).click(function(){a.nenagitePage(-1)});e.appendChild(p);a.navEleNxt=e=b.group(l);m=b.path([c,g,aa,k,g-d-r,aa-r,g-d,aa,g-d-r,aa+r,"Z"]).attr({fill:h,"stroke-width":0,cursor:"pointer"});e.appendChild(m);
b=b.circle(g-d,aa,d).attr({fill:Ma,"stroke-width":0,cursor:"pointer"}).mouseover(function(){m.attr({fill:j})}).mouseout(function(){m.attr({fill:h})}).click(function(){a.nenagitePage(1)});e.appendChild(b)}},nenagitePage:function(a){var b=this.plots,d=b.length,a=(this.currentSeriesIndex||0)+(a||0),c;if(b[a]){for(c=d;c--;)qa(b[c].items,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()});
qa(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;a===0?this.navElePrv.hide():this.navElePrv.show();a===d-1?this.navEleNxt.hide():this.navEleNxt.show()}}},o["renderer.root"]);Ea.prototype={getArcPath:function(a,b,d,c,k,h,j,r,aa,n){return d==k&&c==h?[]:[e,j,r,0,n,aa,k,h]},parseColor:function(a,b){var d,c,e,k,j,r,h,n,m,p,l=b/
2,o,w,y,f,H;H=3;this.use3DLighting?(d=ca(a,80),c=ca(a,75),r=ea(a,85),h=ea(a,70),n=ea(a,40),m=ea(a,50),ea(a,30),p=ea(a,65),ca(a,85),e=ca(a,69),k=ca(a,75),j=ca(a,95)):(H=10,d=ca(a,90),c=ca(a,87),r=ea(a,93),h=ea(a,87),n=ea(a,80),p=m=ea(a,85),ea(a,80),j=ca(a,85),e=ca(a,75),k=ca(a,80));o=c+K+r+K+h+K+r+K+c;y=b+K+b+K+b+K+b+K+b;w=c+K+a+K+r+K+a+K+c;f=l+K+l+K+l+K+l+K+l;n=c+K+a+K+n+K+a+K+c;e=k+K+r+K+m+K+r+K+e;k="FFFFFF"+K+"FFFFFF"+K+"FFFFFF"+K+"FFFFFF"+K+"FFFFFF";H=0+K+l/H+K+b/H+K+l/H+K+0;return{frontOuter:{FCcolor:{gradientUnits:"userSpaceOnUse",
x1:this.leftX,y1:0,x2:this.rightX,y2:0,color:e,alpha:y,angle:0,ratio:"0,20,15,15,50"}},backOuter:{FCcolor:{gradientUnits:"userSpaceOnUse",x1:this.leftX,y1:0,x2:this.rightX,y2:0,color:n,alpha:f,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:f,angle:0,ratio:"0,25,5,5,65"}},backInner:{FCcolor:{gradientUnits:"userSpaceOnUse",x1:this.leftInnerX,y1:0,x2:this.rightInnerX,y2:0,color:o,alpha:y,angle:0,ratio:"0,62,8,8,22"}},
topBorder:{FCcolor:{gradientUnits:"userSpaceOnUse",x1:this.leftX,y1:0,x2:this.rightX,y2:0,color:k,alpha:H,angle:0,ratio:"0,20,15,15,50"}},topInnerBorder:{FCcolor:{gradientUnits:"userSpaceOnUse",x1:this.leftInnerX,y1:0,x2:this.rightInnerX,y2:0,color:k,alpha:H,angle:0,ratio:"0,50,15,15,20"}},top:Z?{FCcolor:{gradientUnits:"userSpaceOnUse",radialGradient:!0,cx:this.cx,cy:this.cy,r:this.rx,fx:this.cx-0.3*this.rx,fy:this.cy+this.ry*1.2,color:p+K+j,alpha:b+K+b,ratio:"0,100"}}:{FCcolor:{gradientUnits:"objectBoundingBox",
color:h+K+h+K+r+K+c,alpha:b+K+b+K+b+K+b,angle:-72,ratio:"0,8,15,77"}},bottom:ba(na(a,l)),startSlice:ba(na(d,b)),endSlice:ba(na(d,b))}},rotate:function(a){if(!this.hasOnePoint){for(var b=this.pointElemStore,d=0,c=b.length,e;d<c;d+=1)e=b[d],e=e._confObject,e.start+=a,e.end+=a,this.updateSliceConf(e);this.refreshDrawing()}},refreshDrawing:function(){return function(){var a=this.slicingWallsArr,b=0,d,c=a.length,e,k,j,r,h=this.slicingWallsFrontGroup,n=this.slicingWallsBackGroup;a:{var m=a[0]&&a[0]._conf.index,
p,l;r=m<=W;e=1;for(d=a.length;e<d;e+=1)if(l=a[e]._conf.index,p=l<=W,p!=r||l<m)break a;e=0}for(;b<c;b+=1,e+=1)e===c&&(e=0),d=a[e],r=d._conf.index,r<S?h.appendChild(d):r<=W?(k?d.insertBefore(k):h.appendChild(d),k=d):r<Ta?(j?d.insertBefore(j):n.appendChild(d),j=d):n.appendChild(d)}}(),updateSliceConf:function(a,b){var d=this.getArcPath,g=a.start,o=a.end,H=ra(g),j=ra(o),r,aa,n,m,p,l,f,i,y,A,C,q,x,u,X,ha,F=this.cx,v=this.cy,s=this.rx,z=this.ry,Y=s+(Z?-1:2),Q=z+(Z?-1:2),D=this.innerRx,L=this.innerRy,G=
this.depth,I=this.depthY,M=a.elements,t,N,da,K;r=w(H);aa=P(H);n=w(j);m=P(j);p=F+s*r;l=v+z*aa;f=F+Y*r;i=v+Q*aa;t=l+G;N=F+s*n;da=v+z*m;y=F+Y*n;A=v+Q*m;K=da+G;this.isDoughnut?(C=F+D*r,q=v+L*aa,X=q+G,x=F+D*n,u=v+L*m,ha=u+G,a.startSlice=[c,p,l,k,p,t,C,X,C,q,h],a.endSlice=[c,N,da,k,N,K,x,ha,x,u,h]):(a.startSlice=[c,p,l,k,p,t,F,I,F,v,h],a.endSlice=[c,N,da,k,N,K,F,I,F,v,h]);if(Z){d=(H>j?fa:0)+j-H;a.clipTopPath=this.isDoughnut?[c,p,l,e,s,z,0,d>W?1:0,1,N,da,k,x,u,e,D,L,0,d>W?1:0,0,C,q,h]:[c,p,l,e,s,z,0,d>W?
1:0,1,N,da,k,this.cx,this.cy,h];a.clipOuterFrontPath1=this.clipPathforNoClip;a.clipTopBorderPath=[c,f,i,e,Y,Q,0,d>W?1:0,1,y,A,k,N,da,N,da+1,e,s,z,0,d>W?1:0,0,p,l+1,k,p,l,h];if(g!=o)if(H>j)if(H<W){if(a.clipOuterFrontPath=[c,this.rightX,v,e,s,z,0,0,1,N,da,"v",G,e,s,z,0,0,0,this.rightX,v+G,h],a.clipOuterFrontPath1=[c,this.leftX,v,e,s,z,0,0,0,p,l,"v",G,e,s,z,0,0,1,this.leftX,v+G,h],a.clipOuterBackPath=[c,this.rightX,v,e,s,z,0,1,0,this.leftX,v,"v",G,e,s,z,0,1,1,this.rightX,v+G,h],this.isDoughnut)a.clipInnerBackPath=
[c,this.rightInnerX,v,e,D,L,0,1,0,this.leftInnerX,v,"v",G,e,D,L,0,1,1,this.rightInnerX,v+G,h],a.clipInnerFrontPath=[c,this.rightInnerX,v,e,D,L,0,0,1,x,u,"v",G,e,D,L,0,0,0,this.rightInnerX,v+G,h,c,this.leftInnerX,v,e,D,L,0,0,0,C,q,"v",G,e,D,L,0,0,1,this.leftInnerX,v+G,h]}else if(j>W){if(a.clipOuterFrontPath=[c,this.rightX,v,e,s,z,0,1,1,this.leftX,v,"v",G,e,s,z,0,1,0,this.rightX,v+G,h],a.clipOuterBackPath=[c,this.leftX,v,e,s,z,0,0,1,N,da,"v",G,e,s,z,0,0,0,this.leftX,v+G,h,c,this.rightX,v,e,s,z,0,0,
0,p,l,"v",G,e,s,z,0,0,1,this.rightX,v+G,h],this.isDoughnut)a.clipInnerFrontPath=[c,this.rightInnerX,v,e,D,L,0,1,1,this.leftInnerX,v,"v",G,e,D,L,0,1,0,this.rightInnerX,v+G,h],a.clipInnerBackPath=[c,this.leftInnerX,v,e,D,L,0,0,1,x,u,"v",G,e,D,L,0,0,0,this.leftInnerX,v+G,h,c,this.rightInnerX,v,e,D,L,0,0,0,C,q,"v",G,e,D,L,0,0,1,this.rightInnerX,v+G,h]}else{if(a.clipOuterFrontPath=[c,this.rightX,v,e,s,z,0,0,1,N,da,"v",G,e,s,z,0,0,0,this.rightX,v+G,h],a.clipOuterBackPath=[c,p,l,e,s,z,0,0,1,this.rightX,
v,"v",G,e,s,z,0,0,0,p,t,h],this.isDoughnut)a.clipInnerFrontPath=[c,this.rightInnerX,v,e,D,L,0,0,1,x,u,"v",G,e,D,L,0,0,0,this.rightInnerX,v+G,h],a.clipInnerBackPath=[c,C,q,e,D,L,0,0,1,this.rightInnerX,v,"v",G,e,D,L,0,0,0,C,X,h]}else if(H<W)if(j>W){if(a.clipOuterFrontPath=[c,p,l,e,s,z,0,0,1,this.leftX,v,"v",G,e,s,z,0,0,0,p,t,h],a.clipOuterBackPath=[c,this.leftX,v,e,s,z,0,0,1,N,da,"v",G,e,s,z,0,0,0,this.leftX,v+G,h],this.isDoughnut)a.clipInnerFrontPath=[c,C,q,e,D,L,0,0,1,this.leftInnerX,v,"v",G,e,D,
L,0,0,0,C,X,h],a.clipInnerBackPath=[c,this.leftInnerX,v,e,D,L,0,0,1,x,u,"v",G,e,D,L,0,0,0,this.leftInnerX,v+G,h]}else{if(a.clipOuterFrontPath=[c,p,l,e,s,z,0,0,1,N,da,"v",G,e,s,z,0,0,0,p,t,h],a.clipOuterBackPath=this.clipPathforNoClip,this.isDoughnut)a.clipInnerFrontPath=[c,C,q,e,D,L,0,0,1,x,u,"v",G,e,D,L,0,0,0,C,X,h],a.clipInnerBackPath=this.clipPathforNoClip}else{if(a.clipOuterFrontPath=this.clipPathforNoClip,a.clipOuterBackPath=[c,p,l,e,s,z,0,0,1,N,da,"v",G,e,s,z,0,0,0,p,t,h],this.isDoughnut)a.clipInnerFrontPath=
this.clipPathforNoClip,a.clipInnerBackPath=[c,C,q,e,D,L,0,0,1,x,u,"v",G,e,D,L,0,0,0,C,X,h]}else a.clipOuterFrontPath=a.clipOuterBackPath=a.clipInnerBackPath=a.clipInnerFrontPath=this.clipPathforNoClip;if(!b){a.elements.startSlice._conf.index=H;a.elements.endSlice._conf.index=j;a.elements.frontOuter._conf.index=Da(j,H);if(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]);if(this.isDoughnut)a.elements.backInner.attr("litepath",[a.clipInnerBackPath]),a.elements.frontInner.attr("litepath",[a.clipInnerFrontPath]),a.elements.backInner._conf.index=Da(j,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())}}else{f=this.moveCmdArr;i=this.lineCmdArr;y=this.closeCmdArr;var E=this.centerPoint;A=this.leftPoint;var Y=this.topPoint,Q=this.rightPoint,G=this.bottomPoint,S=this.leftDepthPoint,T=this.rightDepthPoint;r=this.leftInnerPoint;aa=this.rightInnerPoint;n=this.leftInnerDepthPoint;m=this.rightInnerDepthPoint;a.clipOuterFrontPath1=[];if(g!=o){if(H>j?H<W?(g=d(F,
v,p,l,this.leftX,v,s,z,1,0),o=d(F,v,this.leftX,v,this.rightX,v,s,z,1,0),da=d(F,v,this.rightX,v,N,da,s,z,1,0),a.clipOuterBackPath=f.concat(A,o,i,T,d(F,I,this.rightX,I,this.leftX,I,s,z,0,0),y),a.clipOuterFrontPath1=f.concat([p,l],g,i,S,d(F,I,this.leftX,I,p,t,s,z,0,0),y),a.clipOuterFrontPath=f.concat(Q,da,i,[N,K],d(F,I,N,K,this.rightX,I,s,z,0,0),y),a.clipTopBorderPath=f.concat([p,l],g,o,da),this.isDoughnut?(p=d(F,v,x,u,this.rightInnerX,v,D,L,0,0),l=d(F,v,this.rightInnerX,v,this.leftInnerX,v,D,L,0,0),
q=d(F,v,this.leftInnerX,v,C,q,D,L,0,0),a.clipInnerBackPath=f.concat(aa,l,i,n,d(F,I,this.leftInnerX,I,this.rightInnerX,I,D,L,1,0),y),a.clipInnerFrontPath=f.concat(r,q,i,[C,X],d(F,I,C,X,this.leftInnerX,I,D,L,1,0),y,f,[x,u],p,i,m,d(F,I,this.rightInnerX,I,x,ha,D,L,1,0),y),a.clipTopPath=a.clipTopBorderPath.concat(i,[x,u],p,l,q,y),a.clipTopBorderPath=a.clipTopBorderPath.concat(f,[x,u],p,l,q)):a.clipTopPath=a.clipTopBorderPath.concat(i,E,y)):j>W?(g=d(F,v,p,l,this.rightX,v,s,z,1,0),o=d(F,v,this.rightX,v,
this.leftX,v,s,z,1,0),da=d(F,v,this.leftX,v,N,da,s,z,1,0),a.clipOuterFrontPath=f.concat(Q,o,i,S,d(F,I,this.leftX,I,this.rightX,I,s,z,0,0),y),a.clipOuterBackPath=f.concat([p,l],g,i,T,d(F,I,this.rightX,I,p,t,s,z,0,0),y,f,A,da,i,[N,K],d(F,I,N,K,this.leftX,I,s,z,0,0),y),a.clipTopBorderPath=f.concat([p,l],g,o,da),this.isDoughnut?(p=d(F,v,x,u,this.leftInnerX,v,D,L,0,0),l=d(F,v,this.leftInnerX,v,this.rightInnerX,v,D,L,0,0),q=d(F,v,this.rightInnerX,v,C,q,D,L,0,0),a.clipInnerFrontPath=f.concat(r,l,i,m,d(F,
I,this.rightInnerX,I,this.leftInnerX,I,D,L,1,0),y),a.clipInnerBackPath=f.concat(aa,q,i,[C,X],d(F,I,C,X,this.rightInnerX,I,D,L,1,0),y,f,[x,u],p,i,n,d(F,I,this.leftInnerX,I,x,ha,D,L,1,0),y),a.clipTopPath=a.clipTopBorderPath.concat(i,[x,u],p,l,q,y),a.clipTopBorderPath=a.clipTopBorderPath.concat(f,[x,u],p,l,q)):a.clipTopPath=a.clipTopBorderPath.concat(i,E,y)):(g=d(F,v,p,l,this.rightX,v,s,z,1,0),o=d(F,v,this.rightX,v,N,da,s,z,1,0),a.clipOuterFrontPath=f.concat(Q,o,i,[N,K],d(F,I,N,K,this.rightX,I,s,z,0,
0),y),a.clipOuterBackPath=f.concat([p,l],g,i,T,d(F,I,this.rightX,I,p,t,s,z,0,0),y),a.clipTopBorderPath=f.concat([p,l],g,o),this.isDoughnut?(p=d(F,v,x,u,this.rightInnerX,v,D,L,0,0),l=d(F,v,this.rightInnerX,v,C,q,D,L,0,0),a.clipInnerFrontPath=f.concat([x,u],p,i,m,d(F,I,this.rightInnerX,I,x,ha,D,L,1,0),y),a.clipInnerBackPath=f.concat(aa,l,i,[C,X],d(F,I,C,X,this.rightInnerX,I,D,L,1,0),y),a.clipTopPath=a.clipTopBorderPath.concat(i,[x,u],p,l,y),a.clipTopBorderPath=a.clipTopBorderPath.concat(f,[x,u],p,l)):
a.clipTopPath=a.clipTopBorderPath.concat(i,E,y)):H<W?j>W?(g=d(F,v,p,l,this.leftX,v,s,z,1,0),o=d(F,v,this.leftX,v,N,da,s,z,1,0),a.clipOuterBackPath=f.concat(A,o,i,[N,K],d(F,I,N,K,this.leftX,I,s,z,0,0),y),a.clipOuterFrontPath=f.concat([p,l],g,i,S,d(F,I,this.leftX,I,p,t,s,z,0,0),y),a.clipTopBorderPath=f.concat([p,l],g,o),this.isDoughnut?(p=d(F,v,x,u,this.leftInnerX,v,D,L,0,0),l=d(F,v,this.leftInnerX,v,C,q,D,L,0,0),a.clipInnerBackPath=f.concat([x,u],p,i,n,d(F,I,this.leftInnerX,I,x,ha,D,L,1,0),y),a.clipInnerFrontPath=
f.concat(r,l,i,[C,X],d(F,I,C,X,this.leftInnerX,I,D,L,1,0),y),a.clipTopPath=a.clipTopBorderPath.concat(i,[x,u],p,l,y),a.clipTopBorderPath=a.clipTopBorderPath.concat(f,[x,u],p,l)):a.clipTopPath=a.clipTopBorderPath.concat(i,E,y)):(g=d(F,v,p,l,N,da,s,z,1,0),a.clipOuterBackPath=f.concat([p,l]),a.clipTopBorderPath=a.clipOuterBackPath.concat(g),a.clipOuterFrontPath=a.clipTopBorderPath.concat(i,[N,K],d(F,I,N,K,p,t,s,z,0,0),y),this.isDoughnut?(p=d(F,v,x,u,C,q,D,L,0,0),a.clipInnerBackPath=f.concat([x,u]),a.clipTopPath=
a.clipTopBorderPath.concat(i,[x,u],p,y),a.clipTopBorderPath=a.clipTopBorderPath.concat(f,[x,u],p),a.clipInnerFrontPath=a.clipInnerBackPath.concat(p,i,[C,X],d(F,I,C,X,x,ha,D,L,1,0),y)):a.clipTopPath=a.clipTopBorderPath.concat(i,E,y)):(g=d(F,v,p,l,N,da,s,z,1,0),a.clipOuterFrontPath=f.concat([p,l]),a.clipTopBorderPath=a.clipOuterFrontPath.concat(g),a.clipOuterBackPath=a.clipTopBorderPath.concat(i,[N,K],d(F,I,N,K,p,t,s,z,0,0),y),this.isDoughnut?(p=d(F,v,x,u,C,q,D,L,0,0),a.clipInnerFrontPath=f.concat([x,
u]),a.clipTopPath=a.clipTopBorderPath.concat(i,[x,u],p,y),a.clipTopBorderPath=a.clipTopBorderPath.concat(a.clipInnerFrontPath,p),a.clipInnerBackPath=a.clipInnerFrontPath.concat(p,i,[C,X],d(F,I,C,X,x,ha,D,L,1,0),y)):a.clipTopPath=a.clipTopBorderPath.concat(i,E,y)),g=f.concat(A,i,Q),p=f.concat(Y,i,G),a.clipTopPath=a.clipTopPath.concat(g,p),a.clipOuterFrontPath=a.clipOuterFrontPath.concat(g),a.clipOuterFrontPath1=a.clipOuterFrontPath1.concat(g),a.clipOuterBackPath=a.clipOuterBackPath.concat(g),this.isDoughnut)p=
f.concat(r,i,aa),a.clipInnerFrontPath=a.clipInnerFrontPath.concat(p),a.clipInnerBackPath=a.clipInnerBackPath.concat(p)}else if(a.clipTopPath=a.clipOuterFrontPath=a.clipOuterBackPath=[],this.isDoughnut)a.clipInnerFrontPath=a.clipInnerBackPath=[];if(!b){a.elements.startSlice._conf.index=H;a.elements.endSlice._conf.index=j;a.elements.frontOuter._conf.index=Da(j,H);if(a.elements.frontOuter1)a.elements.frontOuter1._conf.index=H,M.frontOuter1.attr({path:a.clipOuterFrontPath1});a.thisElement.attr({path:a.clipTopPath});
M.topBorder.attr({path:a.clipTopBorderPath});M.bottom.attr({path:a.clipTopPath});M.bottomBorder.attr({path:a.clipTopBorderPath});M.frontOuter.attr({path:a.clipOuterFrontPath});M.backOuter.attr({path:a.clipOuterBackPath});this.isDoughnut&&(M.frontInner.attr({path:a.clipInnerFrontPath}),M.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())}}},
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 c,e,g=this,k=g._confObject,l,h=k.elements,f,o,J=k.pie3DManager;typeof b==="string"&&d!==void 0&&d!==null&&(c=b,b={},b[c]=d);if(!b||typeof b==="string")g=g._attr(b);else{if(b.cx!==void 0)b.start=b.cx;if(b.cy!==void 0)b.end=b.cy;for(c in b)if(e=b[c],a[c])if(k[c]=
e,c==="ishot"||c==="cursor"){l={};l[c]=e;for(f in h)h[f].attr(l);g._attr(l)}else if(c==="transform"){for(f in h)h[f].attr({transform:b[c]});g._attr({transform:b[c]})}else if(c==="stroke"||c==="strokeWidth"||c==="stroke-width"||c==="dashstyle"||c==="stroke-dasharray")l={},l[c]=e,h.topBorder&&h.topBorder.attr(l),h.startSlice.attr(l),h.endSlice.attr(l),h.bottomBorder.attr(l);else{if(c!=="fill"&&(c==="start"||c==="end"))o=!0}else g._attr(c,e);o&&(J.updateSliceConf(k),J.refreshDrawing())}return g},d=function(a,
b,d,c){var e=this._confObject.elements,g;for(g in e)if(d)e[g].drag(b,d,c);else e[g].on(a,b);return d?this.drag(b,d,c):this._on(a,b)},c=function(){var a=this._confObject.elements,b;for(b in a)a[b].hide();return this._hide()},e=function(){var a=this._confObject.elements,b;for(b in a)a[b].show();return this._show()},k=function(){var a=this._confObject,b=a.elements,d;for(d in b)b[d].destroy();Z&&(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,r,h,n,m,p,l,f,o){var H=this.renderer,h=this.parseColor(h,n),i,a={start:a,end:r,elements:{},pie3DManager:this},r=this.slicingWallsArr,n=a.elements,w,q=Z?"litepath":"path";this.updateSliceConf(a,!0);if(Z){i={fill:ba(h.top),"stroke-width":0};if(o!==1)i.stroke=m,i["stroke-width"]=p;i=H[q](a.clipTopPath,this.topGroup).attr(i);if(o)n.topBorder=H[q](a.clipTopBorderPath,this.topGroup).attr({fill:ba(h.topBorder),
"stroke-width":0})}else i=H[q](a.clipTopPath,this.topGroup).attr({fill:ba(h.top),"stroke-width":0}),n.topBorder=H[q](a.clipTopBorderPath,this.topGroup).attr({stroke:m,"stroke-width":p});n.bottom=H[q](a.clipTopPath,this.bottomBorderGroup).attr({fill:ba(h.bottom),"stroke-width":0});n.bottomBorder=H[q](Z?a.clipTopPath:a.clipTopBorderPath,this.bottomBorderGroup).attr({stroke:m,"stroke-width":p});n.frontOuter=H[q](a.clipOuterFrontPath,this.slicingWallsFrontGroup).attr({fill:ba(h.frontOuter),"stroke-width":0});
n.backOuter=H[q](a.clipOuterBackPath,this.outerBackGroup).attr({fill:ba(h.backOuter),"stroke-width":0});n.startSlice=H[q](a.startSlice,this.slicingWallsFrontGroup).attr({fill:ba(h.startSlice),stroke:m,"stroke-width":p});n.endSlice=H[q](a.endSlice,this.slicingWallsFrontGroup).attr({fill:ba(h.endSlice),stroke:m,"stroke-width":p});m=ra(a.start);p=ra(a.end);o=(m>p?fa:0)+p-m;if(o>W&&(n.frontOuter1=H[q](a.clipOuterFrontPath1,this.slicingWallsFrontGroup).attr({fill:ba(h.frontOuter),"stroke-width":0}),n.frontOuter1._conf=
{index:m,isStart:0.5,pIndex:l},Z))a.clipOuterFront1=a.clipOuterFrontPath1;n.frontOuter._conf={index:Da(p,m),isStart:0.5,pIndex:l};n.startSlice._conf={index:m,isStart:0,pIndex:l};n.endSlice._conf={index:p,isStart:1,pIndex:l};this.hasOnePoint&&(n.startSlice.hide(),n.endSlice.hide());this.isDoughnut?(n.frontInner=H[q](a.clipInnerFrontPath,this.innerFrontGroup).attr({fill:ba(h.frontInner),"stroke-width":0}),n.backInner=H[q](a.clipInnerBackPath,this.innerBackGroup).attr({fill:ba(h.backInner),"stroke-width":0}),
n.backInner._conf={index:Da(p,m),isStart:0.5,pIndex:l},o>W?Z?r.push(n.startSlice,n.frontOuter1,n.frontOuter,n.backInner,n.endSlice):r.push(n.startSlice,n.frontOuter1,n.frontOuter,n.endSlice):Z?r.push(n.startSlice,n.frontOuter,n.backInner,n.endSlice):r.push(n.startSlice,n.frontOuter,n.endSlice)):o>W?r.push(n.startSlice,n.frontOuter1,n.frontOuter,n.endSlice):r.push(n.startSlice,n.frontOuter,n.endSlice);if(f!==void 0){for(w in n)n[w].tooltip(f);i.tooltip(f)}if(Z&&(a.clipTop=a.clipTopPath,a.clipOuterFront=
a.clipOuterFrontPath,a.clipOuterBack=a.clipOuterBackPath,this.isDoughnut))a.clipInnerFront=a.clipInnerFrontPath,a.clipInnerBack=a.clipInnerBackPath;i._confObject=a;a.thisElement=i;i._destroy=i.destroy;i.destroy=k;i._show=i.show;i.show=e;i._hide=i.hide;i.hide=c;i._on=i.on;i.on=d;i._attr=i.attr;i.attr=b;this.pointElemStore.push(i);return i}}()};Ea.prototype.constructor=Ea;o("renderer.pie3d",{type:"pie3d",drawCaption:function(){var g;var a=this.options.chart,b=this.options.title,d=this.options.subtitle,
c=this.paper,e=this.elements,h=this.layers,j=h.caption,r=e.caption,k=e.subcaption,n=b&&b.text,m=d&&d.text,p=c.width/2,l=b.x,f=d&&d.x;if((n||m)&&!j)j=h.caption=c.group("caption"),h.tracker?j.insertBefore(h.tracker):j.insertAfter(h.dataset);if(n){if(!r)r=e.caption=c.text(j);if(l===void 0)l=p,b.align="middle";r.css(b.style).attr({text:b.text,fill:b.style.color,x:l,y:b.y||a.spacingTop||0,"text-anchor":b.align||"middle","vertical-align":"top",visibility:"visible",title:b.originalText||""})}else if(r)g=
e.caption=r.remove(),r=g;if(m){if(!k)k=e.subcaption=c.text(j);if(f===void 0)f=p,d.align="middle";k.css(d.style).attr({text:d.text,title:d.originalText||"",fill:d.style.color,x:f,y:n?r.attrs.y+r.getBBox().height+2:b.y||a.spacingTop||0,"text-anchor":d.align||"middle","vertical-align":"top",visibility:"visible"})}else if(k)e.subcaption=k.remove();if(!n&&!m&&j)h.caption=j.remove()},translate:function(){var a=0,b=this.options,d=b.series[0],c=b.plotOptions.series.dataLabels,e=b.plotOptions.pie3d,h=i(d.startAngle,
0)%360,j=d.managedPieSliceDepth,r=d.slicedOffset=e.slicedOffset,k=this.canvasWidth,n=this.canvasHeight,m=[this.canvasLeft+k*0.5,this.canvasTop+n*0.5-j*0.5],p,l,o,u,y,b=d.data,X,C=ha(k,n),q,x,t,K=c.distance,M=d.pieYScale,F=d.pieSliceDepth,v=d.slicedOffsetY=r*M;m.push(e.size,e.innerSize||0);m=ja(m,function(a,b){return(q=/%$/.test(a))?[k,n-j,C,C][b]*parseInt(a,10)/100:a});m[2]/=2;m[3]/=2;m.push(m[2]*M);m.push((m[2]+m[3])/2);m.push(m[5]*M);d.getX=function(a,b){o=H.asin((a-m[1])/(m[2]+K));return m[0]+
(b?-1:1)*w(o)*(m[2]+K)};d.center=m;qa(b,function(b){a+=b.y});d.labelsRadius=m[2]+K;d.labelsRadiusY=d.labelsRadius*M;d.quadrantHeight=(n-j)/2;d.quadrantWidth=k/2;u=-h*T;u=A(u*1E3)/1E3;y=u+fa;e=f(parseInt(c.style.fontSize,10),10)+4;d.maxLabels=ia(d.quadrantHeight/e);d.labelFontSize=e;d.connectorPadding=f(c.connectorPadding,5);d.isSmartLineSlanted=i(c.isSmartLineSlanted,!0);d.connectorWidth=f(c.connectorWidth,1);d.enableSmartLabels=c.enableSmartLabels;if(!d.pie3DManager)d.pie3DManager=new Ea(m[0],m[1],
m[2],m[3],M,F,this.layers.dataset,this.paper,d.data.length===1,d.use3DLighting);qa(b,function(b){p=u;X=a?b.y/a:0;u=A((u+X*fa)*1E3)/1E3;u>y&&(u=y);l=u;b.shapeArgs={start:A(p*1E3)/1E3,end:A(l*1E3)/1E3};b.centerAngle=o=(l+p)/2%fa;b.slicedTranslation=[A(w(o)*r),A(P(o)*v)];x=w(o)*m[2];d.radiusY=t=P(o)*m[4];b.tooltipPos=[m[0]+x*0.7,m[1]+t];b.percentage=X*100;b.total=a})},drawPlotPie3d:function(a,b){this.translate();var d=this,c=a.items,e=a.data,h=d.options,j=h.plotOptions,k=j.series,o=d.layers,n=d.elements.plots[0],
m=d.datasets[0],j=j.series.dataLabels,p=k.dataLabels.style,k=f(a.moveDuration,k.animation.duration),l=d.paper,h=(h=h.tooltip||{})&&h.enabled!==!1,i,H=m.slicedOffset,u=m.slicedOffsetY,A=d.plotGraphicClick,C=d.plotDragMove,q=d.plotDragStart,x=d.plotDragEnd,X=d.plotMouseDown,M=d.plotMouseUp,t=!!d.datasets[0].enableRotation,F=b.showBorderEffect,v=e.length,s,z,ha,K,D,L,G,I,Y,E,N;if(!e||!v)e=[];n.singletonCase=v==1;n.chartPosition=Ca(d.container);n.pieCenter=m.center;n.timerThreshold=30;for(N=-1;++N<v;)if(z=
e[N],ha=z.y,K=z.displayValue,L=z.sliced,E=z.shapeArgs,I=z.centerAngle,i=z.toolText,G=(D=!!z.link)||t||!z.doNotSlice,!(ha===null||ha===void 0))if(!(s=c[N])){b.data[N].plot=s=c[N]={chart:d,index:N,seriesData:n,value:ha,angle:I,link:z.link,shapeArgs:E,slicedX:L&&!n.singletonCase?w(I)*H:0,slicedY:L&&!n.singletonCase?P(I)*u:0,sliced:L,labelText:K,name:z.name,label:z.name,percentage:z.percentage,toolText:i,originalIndex:v-N-1,graphic:m.pie3DManager.createSlice(E.start,E.end,z.color,z._3dAlpha,z.borderColor,
z.borderWidth,N,h?i:"",F)};b.data[N].legendClick=function(a){return function(){d.legendClick(a,!0,!1)}}(s);s.graphic.plotItem=s;s.transX=w(I)*H;s.transY=P(I)*u;s.slicedTranslation="t"+s.transX+","+s.transY;s.graphic.attr({transform:"t"+s.slicedX+","+s.slicedY,ishot:G,cursor:D?"pointer":""});if(!z.doNotSlice)s.graphic.on("click",function(a){return function(){A.call(a)}}(s));s.graphic.on("drag",function(a){return function(b,d,c,e,g){C.call(a,b,d,c,e,g)}}(s),function(a){return function(b,d,c){q.call(a,
b,d,c)}}(s),function(a){return function(){x.call(a)}}(s));s.graphic.on("mousedown",function(a){return function(){X.call(a)}}(s));s.graphic.on("mouseup",function(a){return function(){M.call(a)}}(s));if(K!==void 0&&(s.dataLabel=l.text(o.dataset).css(p).attr({text:K,title:z.originalText||"",fill:p.color||"#000000",visibility:"hidden",ishot:G,cursor:D?"pointer":""}),s.dataLabel.click(A,s),s.dataLabel.mousedown(X,s),s.dataLabel.mouseup(M,s),j.distance>0&&(Y=j.connectorWidth)&&j.enableSmartLabels))s.connector=
l.path("M 0 0 l 0 0",o.dataset).attr({"stroke-width":Y,stroke:j.connectorColor||"#606060",visibility:"hidden",ishot:G,cursor:D?"pointer":""}),s.connector.click(A,s),s.connector.mousedown(X,s),s.connector.mouseup(M,s)}m.pie3DManager.refreshDrawing();k>0?d.animate(c,k):d.placeDataLabels(!1,c)},rotate:function(a){var b=this.datasets[0],d=this.elements.plots[0].items,c=b.slicedOffset,e=b.slicedOffsetY,h=b.startAngle,j,a=a||-b._lastAngle;j=(a-h)%360;b.startAngle=f(a,b.startAngle)%360;j=-(j*u)/180;b.pie3DManager&&
b.pie3DManager.rotate(j);qa(d,function(a){var b=a.graphic,d=a.shapeArgs,d={start:d.start+=j,end:d.end+=j},h=a.angle=ra((d.start+d.end)/2),d=a.sliced,k=w(h),h=P(h);a.slicedTranslation=[A(k*c),A(h*e)];a.transX=a.slicedTranslation[0];a.transY=a.slicedTranslation[1];a.slicedX=d?w(j)*c:0;a.slicedY=d?P(j)*e:0;b&&d&&a.graphic.attr({transform:"t"+a.slicedTranslation[0]+","+a.slicedTranslation[1]})});this.placeDataLabels(!0,d)},plotMouseDown:function(){this.seriesData.isRotating=!1},plotMouseUp:function(){var a=
this.chart,b=this.seriesData;!b.isRotating&&a.linkClickFN.call({link:b.data[this.index].link},a);ga._supportsTouch&&!b.isRotating&&a.plotGraphicClick.call(this)},plotDragStart:function(a,b,d){var c=this.seriesData,e=this.chart.datasets[0];if(e.enableRotation)a=Ia.call(d,a,b,c.pieCenter,c.chartPosition,e.pieYScale),e.dragStartAngle=a,e._lastAngle=-e.startAngle},plotDragEnd:function(){var a=this,b=a.chart,d={hcJSON:{series:[{startAngle:b.datasets[0].startAngle}]}};b.disposed||wa(b.logic.chartInstance.jsVars._reflowData,
d,!0);setTimeout(function(){a.seriesData.isRotating=!1},0)},plotDragMove:function(a,b,d,c,e){var h=this.chart,a=h.datasets[0],b=this.seriesData;if(h.options.series[0].enableRotation&&!b.singletonCase&&(b.isRotating=!0,d=Ia.call(e,d,c,b.pieCenter,b.chartPosition,a.pieYScale),c=d-a.dragStartAngle,a.dragStartAngle=d,b.moveDuration=0,a._lastAngle+=c*180/u,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,c,e,h=a.length,j,k,f,n=this,m;if(n.datasets[0].alphaAnimation)n.layers.dataset.attr({opacity:0}),n.layers.dataset.animate({opacity:1},b,"ease-in",function(){!n.disposed&&!n.disposing&&n.placeDataLabels(!1,a)});else for(d=0;d<h;d++)if(j=a[d],k=j.graphic,f=j.shapeArgs,j=2*u,k)k.attr({start:j,end:j}),m=f.start,f=f.end,c?k.animateWith(c,e,{cx:m-j,cy:f-j},b,"ease-in"):(e=ga.animation({cx:m-j,cy:f-j},b,"ease-in",function(){!n.disposed&&
!n.disposing&&n.placeDataLabels(!1,a)}),c=k.animate(e))},plotGraphicClick:function(){var a=this.seriesData,b=this.chart,c,e,h,k,j,f;if(!a.isRotating&&!a.singletonCase)return c=this.graphic,e=this.connector,h=this.dataLabel,a=this.sliced,k=this.connectorPath,j=(a?-1:1)*this.transX,f=(a?-1:1)*this.transY,c.animate({transform:a?"t0,0":"t"+j+","+f},200,"easeIn"),h&&h.x&&h.animate({x:h.x+(a?0:j)},200,"easeIn"),k&&(k[1]+=j,k[2]+=f,k[4]+=j,k[6]+=j,e.animate({path:k},200,"easeIn")),a=this.sliced=!a,c={hcJSON:{series:[]}},
c.hcJSON.series[0]={data:[]},wa(b.logic.chartInstance.jsVars._reflowData,c,!0),a},placeDataLabels:function(){var a=function(a,b){return a.point.value-b.point.value},e=function(a,b){return a.angle-b.angle},d=["start","start","end","end"],g=[-1,1,1,-1],h=[1,1,-1,-1];return function(o,j){var r=this.datasets[0],i=this.smartLabel,n=this.options.plotOptions.series.dataLabels,m=n.style,p=f(sa(parseFloat(m.lineHeight)),12),l=ka(n.placeInside,!1),u=n.skipOverlapLabels,X=n.manageLabelOverflow,y=n.connectorPadding,
K=n.distance;ka(n.softConnector,!0);var C=n.connectorWidth,q,x,K=K>0,t=r.center,E=t[1],T=t[0],F=t[2],v=t[4],s=[[],[],[],[]],z,V,Q,D=this.canvasLeft,L=this.canvasTop,G=this.canvasWidth,I,R,B,N,da,ia,ca,O,ba,Z,oa,Ga=r.labelsRadius,ea=A(r.labelsRadiusY*100)/100,ga=r.labelFontSize,U=ga,Ba=U/2,y=[y,y,-y,-y],ja=r.maxLabels,Qa=r.isSmartLineSlanted,na=r.enableSmartLabels,pa,r=r.pieSliceDepth/2;o||i.setStyle(m);if(j.length==1){if(N=j[0],pa=N.dataLabel,N.slicedTranslation=[D,L],pa)pa.attr({visibility:b,"text-anchor":"middle",
x:T,y:E+Ba-2}),pa.x=T}else if(l)qa(j,function(a){if(pa=a.dataLabel){oa=a.angle;Z=E+t[6]*P(oa)+Ba-2;ca=T+t[5]*w(oa);pa.x=ca;pa._x=ca;pa.y=Z;if(a.sliced){var a=a.slicedTranslation,c=a[1]-L;ca+=a[0]-D;Z+=c}pa.attr({visibility:b,align:"middle",x:ca,y:Z})}});else{qa(j,function(a){if(pa=a.dataLabel)oa=a.angle,oa<0&&(oa=fa+oa),z=oa>=0&&oa<S?1:oa<W?2:oa<Ta?3:0,s[z].push({point:a,angle:oa})});for(Q=l=4;Q--;){if(u&&(N=s[Q].length-ja,N>0)){s[Q].sort(a);V=s[Q].splice(0,N);R=0;for(B=V.length;R<B;R+=1)N=V[R].point,
N.dataLabel.attr({visibility:"hidden"}),N.connector&&N.connector.attr({visibility:"hidden"})}s[Q].sort(e)}Q=Y(s[0].length,s[1].length,s[2].length,s[3].length);ea=Y(ha(Q,ja)*U,ea+U);s[1].reverse();s[3].reverse();for(i.setStyle(m);l--;){R=s[l];B=R.length;u||(U=B>ja?ea/B:ga,Ba=U/2);N=B*U;m=ea;for(Q=0;Q<B;Q+=1,N-=U)x=M(ea*P(R[Q].angle)),m<x?x=m:x<N&&(x=N),m=(R[Q].oriY=x)-U;V=d[l];B=ea-(B-1)*U;m=0;for(Q=R.length-1;Q>=0;Q-=1,B+=U){N=R[Q].point;oa=R[Q].angle;da=N.sliced;pa=N.dataLabel;x=M(ea*P(oa));x<m?
x=m:x>B&&(x=B);m=x+U;O=(x+R[Q].oriY)/2;x=T+h[l]*Ga*w(H.asin(O/ea));O*=g[l];O+=E;ba=E+v*P(oa);ia=T+F*w(oa);(l<2&&x<ia||l>1&&x>ia)&&(x=ia);ca=x+y[l];Z=O+Ba-2;q=ca+y[l];pa.x=q;pa._x=q;X&&(I=l>1?q-this.canvasLeft:this.canvasLeft+G-q,I=i.getSmartText(N.labelText,I,p),pa.attr({text:I.text,title:I.tooltext||""}));oa<W&&(O+=r,ba+=r,Z+=r);pa.y=Z;if(da)da=N.transX,I=N.transY,ca+=da,x+=da,ia+=da,ba+=I,q+=da;pa.attr({visibility:b,"text-anchor":V,x:q,y:O});if(K&&C&&na)q=N.connector,N.connectorPath=x=[c,ia,ba,
k,Qa?x:ia,O,ca,O],q?(q.attr({path:x}),q.attr("visibility",b)):N.connector=q=this.paper.path(x).attr({"stroke-width":C,stroke:n.connectorColor||"#606060",visibility:b})}}}}}(),legendClick:function(a,b,c){var e=a.chart;a.chart.elements.plots[0].isRotating=!1;e.plotGraphicClick.call(a);c!==!0&&(eventArgs={datasetName:a.label,datasetIndex:a.originalIndex,id:a.userID,visible:b,label:a.label,value:a.value,percentValue:a.percentage,tooltext:a.toolText,link:a.link,sliced:!a.sliced},ma.raiseEvent("legenditemclicked",
eventArgs,e.logic.chartInstance))}},o["renderer.root"]);o("renderer.pie",{drawPlotPie:function(a,c){var d=this,e=a.items,h=a.data,k=d.options,j=k.plotOptions,r=j.pie,o=j.series,n=d.layers,m=n.dataset,p=d.elements.plots[0],j=j.series.dataLabels,l=o.dataLabels.style,i=o.shadow,o=f(a.moveDuration,o.animation.duration),H=d.paper,k=(k=k.tooltip||{})&&k.enabled!==!1,u=((c.startAngle*=-W/180)||0)%fa,A=r.slicedOffset,C=c.valueTotal,q=fa/C,x=d.canvasLeft+d.canvasWidth*0.5,X=d.canvasTop+d.canvasHeight*0.5,
t=r.size*0.5,K=(r.innerSize||0)*0.5,F=d.plotGraphicClick,v=d.plotDragMove,s=d.plotDragStart,z=d.plotDragEnd,ha=d.plotMouseDown,M=d.plotMouseUp,D=!!d.datasets[0].enableRotation,L=h.length,G,I,Y,E,N,S,T,R,B,V,ia,ca=a.shadowGroup,sa,O,U,Z,ea;if(!h||!L)h=[];if(!ca)ca=a.shadowGroup=H.group(m).toBack();p.singletonCase=L==1;p.chartPosition||(p.chartPosition=Ca(d.container));p.pieCenter=[x,X];p.timerThreshold=30;V=B=u;for(sa=L;sa--;)if(I=h[sa],Y=I.y,E=I.displayValue,S=I.sliced,r=I.toolText,T=(N=!!I.link)||
D||!I.doNotSlice,!(Y===null||Y===void 0)){G=I.color.FCcolor;G.r=t;G.cx=x;G.cy=X;V=B;B-=!p.singletonCase?Y*q:fa;R=(B+V)*0.5;o?Z=ea=u:(Z=B,ea=V);if(!(G=e[sa]))if(c.data[sa].plot=G=e[sa]={chart:d,index:sa,seriesData:p,value:Y,angle:R,slicedX:w(R)*A,slicedY:P(R)*A,sliced:S,labelText:E,toolText:r,label:I.name,link:I.link,percentage:C?Y*C/100:0,originalIndex:L-sa-1,graphic:H.ringpath(x,X,t,K,Z,ea,n.dataset).attr({"stroke-width":I.borderWidth,"stroke-linejoin":"round",stroke:I.borderColor,fill:ba(I.color),
"stroke-dasharray":I.dashStyle,redrawDataLabels:u,ishot:T,cursor:N?"pointer":""}).shadow(i&&I.shadow,ca).drag(v,s,z).mousedown(ha).mouseup(M)},I.doNotSlice||G.graphic.click(F),k&&G.graphic.tooltip(r),c.data[sa].legendClick=function(a){return function(){d.legendClick(a,!0,!1)}}(G),G.graphic.data("plotItem",G),E!==void 0&&(G.dataLabel=H.text(m).css(l).attr({text:E,fill:l.color||"#000000",ishot:T}).click(F).drag(v,s,z).mousedown(ha).mouseup(M).hide(),G.dataLabel.data("plotItem",G),j.distance>0&&(ia=
j.connectorWidth)&&j.enableSmartLabels))G.connector=H.path("M 0 0 l 0 0",m).attr({"stroke-width":ia,stroke:j.connectorColor||"#606060",visibility:b,ishot:!0}).click(F).drag(v,s,z).mousedown(ha).mouseup(M),G.connector.data("plotItem",G);G.angle=R;G.transX=w(R)*A;G.transY=P(R)*A;G.slicedTranslation="t"+w(R)*A+","+P(R)*A;o?O?G.graphic.animateWith(O,U,{ringpath:[x,X,t,K,B,V],transform:G.sliced?G.slicedTranslation:""},o,"easeIn"):(U=ga.animation({ringpath:[x,X,t,K,B,V],redrawDataLabels:d,transform:G.sliced?
G.slicedTranslation:""},o,"easeIn",function(){if(!d.disposed&&!d.disposing&&!d.paper.ca.redrawDataLabels)d.placeDataLabels(!1,e,a),d.paper.ca.redrawDataLabels=d.redrawDataLabels}),O=G.graphic.animate(U)):G.graphic.attr({transform:G.sliced?G.slicedTranslation:""})}o||d.placeDataLabels(!1,e,a)},rotate:function(a,b){var c=a.items,e=a.data,h=this.options.plotOptions.pie,k=h.slicedOffset,j=fa/b.valueTotal,f=this.canvasLeft+this.canvasWidth*0.5,o=this.canvasTop+this.canvasHeight*0.5,n=h.size*0.5,h=(h.innerSize||
0)*0.5,m,p,l,i,H;l=(b.startAngle||0)%fa;for(H=e.length;H--;)if(m=e[H],p=m.y,!(p===null||p===void 0))m=c[H],i=l,l-=!m.seriesData.singletonCase?p*j:fa,p=(l+i)*0.5,m.angle=p,m.transX=w(p)*k,m.transY=P(p)*k,m.slicedTranslation="t"+w(p)*k+","+P(p)*k,m.graphic.attr({ringpath:[f,o,n,h,l,i],transform:m.sliced?m.slicedTranslation:""});this.placeDataLabels(!0,c,a)}},o["renderer.piebase"])},[3,2,2,"sr4"]]);
FusionCharts(["private","modules.renderer.js-zoomline",function(){var Ca=this,ja=Ca.hcLib,ra=window,Da=/msie/i.test(navigator.userAgent)&&!ra.opera,Ia=ja.chartAPI,Ea=ja.chartAPI,ma=ja.extend2,t=ja.raiseEvent,ga=ja.pluck,E=ja.pluckNumber,B=ja.getFirstColor,Ja=ja.graphics.convertColor,i=ja.defaultPaletteOptions,ua=ja.bindSelectionEvent,f=ja.createTrendLine,U=ja.parseUnsafeString,ka=ja.Raphael,Na=ja.FC_CONFIG_STRING,va="rgba(192,192,192,"+(Da?0.002:1.0E-6)+")",O=Math,wa=O.ceil,ya=O.floor,ba=O.max,Pa=
O.min,Fa=O.cos,Z=O.sin,za=parseFloat,qa=parseInt,Ka=function(b){return b&&b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},la;ma(ja.eventList,{zoomed:"FC_Zoomed",pinned:"FC_Pinned",resetzoomchart:"FC_ResetZoomChart"});Ia("zoomline",{friendlyName:"Zoomable and Panable Multi-series Line Chart",rendererId:"zoomline",standaloneInit:!0,hasVDivLine:!0,defaultSeriesType:"stepzoom",canvasborderthickness:1,defaultPlotShadow:1,chart:function(){var b=this.base.chart.apply(this,arguments),c=this.dataObj.chart,k=
i.canvasBorderColor[this.paletteIndex],e=b.chart;ma(e,{animation:!1,zoomType:"x",canvasPadding:E(c.canvaspadding,0),scrollColor:B(ga(c.scrollcolor,i.altHGridColor[e.paletteIndex])),scrollBtnWidth:E(c.scrollbtnwidth,c.scrollheight,16),scrollHeight:E(c.scrollheight,16)||16,allowPinMode:E(c.allowpinmode,1),skipOverlapPoints:E(c.skipoverlappoints,1),showToolBarButtonTooltext:E(c.showtoolbarbuttontooltext,1),btnResetChartTooltext:ga(c.btnresetcharttooltext,"Reset Chart"),btnZoomOutTooltext:ga(c.btnzoomouttooltext,
"Zoom out one level"),btnSwitchToZoomModeTooltext:ga(c.btnswitchtozoommodetooltext,"<strong>Switch to Zoom Mode</strong><br/>Select a subset of data to zoom into it for detailed view"),btnSwitchToPinModeTooltext:ga(c.btnswitchtopinmodetooltext,"<strong>Switch to Pin Mode</strong><br/>Select a subset of data and compare with the rest of the view"),pinPaneFill:Ja(ga(c.pinpanebgcolor,k),E(c.pinpanebgalpha,15)),zoomPaneFill:Ja(ga(c.zoompanebgcolor,"#b9d5f1"),E(c.zoompanebgalpha,30)),zoomPaneStroke:Ja(ga(c.zoompanebordercolor,
"#3399ff"),E(c.zoompaneborderalpha,80))});return b},preSeriesAddition:function(){var b=this.dataObj,c=b.chart,k=(k=b.categories)&&k[0]||{},b=k.category,e=this.hcJSON,h=e[Na],f=this.smartLabel,i=E(c.compactdatamode,0),w=ga(c.dataseparator,"|"),X=E(c.showlabels,1),A=c.labeldisplay&&c.labeldisplay.toLowerCase(),t=X&&E(c.labelheight),Y=A==="rotate"?270:E(c.rotatelabels,1)?270:0,M=e.xAxis.labels.style,u=za(M.lineHeight),B=e.chart.labelPadding=E(c.labelpadding,2)+e.chart.plotBorderWidth,ia,R=0,T=-1,W,S,
fa;delete k.category;e.categories=A=ma({data:w=i&&b&&b.split&&b.split(w)||b||[],rotate:Y,wrap:A!=="none"},k);b!==void 0&&(k.category=b);k=w.length||0;if(W=!i&&X&&t!==0&&k||0){for(;W--;)w[W]=w[W]&&(ia=w[W].label||"")&&((S=ia.length)>R&&(R=S,T=W,ia)||ia)||"";R&&(ia=w[T])}else if(i&&k)if(Y){S=ra.document.createElement("div");t=ra.document.createElement("span");S.setAttribute("class","fusioncharts-zoomline-localsmartlabel");S.style.cssText="display:block;width:1px;position:absolute;";for(fa in M)S.style[fa]=
M[fa];t.appendChild(ra.document.createTextNode(b.replace(/\s*/g,"").replace(/\|/g," ")));S.appendChild(t);ra.document.body.appendChild(S);t=t.offsetWidth||void 0;S.parentNode.removeChild(S)}else ia=w[k-1]||w[0];if((t===void 0||t===0)&&X)ia?(f.setStyle(M),ia=f.getSmartText(ia),t=Y?ia.width:ia.height):t=u*(Y&&3||1);t>h.height*0.3&&(t=h.height*0.3);A.labelHeight=t&&t+10||0;A.show=t&&X||0;A.css=ma({},M);Y?(A.css.rotation=Y,A.css["text-anchor"]="end"):A.css["vertical-align"]="top";e.xAxis.min=0;e.xAxis.max=
k&&k-1||0;t+=E(c.scrollheight,16)||16;e.chart.marginBottom+=B;h.marginBottomExtraSpace+=t+5;ga(c.caption,c.subcaption)||(h.marginTopExtraSpace+=16)},series:function(){var b=this.dataObj,c=b.chart,k=b.dataset,e=this.hcJSON,h=e[Na],i=h[0],P=e.series,w=E(c.yaxismaxvalue),t=E(c.yaxisminvalue),A=E(c.forceyaxislimits,0),ha=E(c.compactdatamode,0),Y=ga(c.dataseparator,"|"),M=Ka(c.indecimalseparator),u=Ka(c.inthousandseparator),B=E(c.drawanchors,c.showanchors,1),ia=!!E(c.showlegend,1),R,T,W,S,fa,O=Infinity,
U=-Infinity,V;fa=e.categories.data.length;if(k&&k.length&&fa){M&&(M=RegExp(M,"g"));u&&(u=RegExp(u,"g"));!u&&!M&&ha&&A&&w!==void 0&&t!==void 0?(A=!0,U=ba(w,t),O=Pa(t,w)):A=!1;w=0;for(t=k.length;w<t;w++){R=k[w];W=R.data;delete R.data;ha?(S=W||"",u&&(S=S.replace(u,"")),M&&(S=S.replace(M,".")),S=S.split(Y)):S=W||[];if(S.length>fa)S.length=fa;V=S.length;if(ha){if(!A)for(;V--;)T=za(S[V]),isNaN(T)&&(T=void 0),T>U&&(U=T),T<=O&&(O=T),S[V]=T}else for(;V--;)T=S[V]&&S[V].value||"",u&&(T=T.replace(u,"")),M&&(T=
T.replace(M,".")),T=za(T),isNaN(T)&&(T=void 0),T>U&&(U=T),T<=O&&(O=T),S[V]=T;P.push(T={index:w,type:"zoomline",data:S,name:R.seriesname||"",showInLegend:R.seriesname&&E(R.includeinlegend,1)&&ia||!1,showAnchors:E(R.drawanchors,R.showanchors,B),visible:!!E(R.initiallyvisible,1),lineWidth:2});S.length=fa;W!==void 0&&(R.data=W);T.attrs=this.seriesGraphicsAttrs(R,w);R=T.attrs.anchors;T.color=T.attrs.graphics.stroke;T.ancorRadius=R.r+R["stroke-width"]/2;T.marker={fillColor:R.fill,lineColor:R.stroke,lineWidth:1,
symbol:"circle"}}(U===-Infinity||O===Infinity)&&(U=O=void 0);A=qa(E(c.displaystartindex,1),10)-1;Y=qa(E(c.displayendindex,fa||2),10)-1;(k=E(c.pixelsperpoint,15))<5&&(k=5);(P=E(c.pixelsperlabel,e.categories.rotate?20:60))<k&&(P=k);(A<0||A>=(fa-1||1))&&(A=0);(Y<=A||Y>(fa-1||1))&&(Y=fa-1||1);e.stepZoom={cnd:E(c.connectnulldata,0),amrd:E(c.anchorminrenderdistance,20),nvl:E(c.numvisiblelabels,0),cdm:ha,oppp:k,oppl:P,dsi:A,dei:Y,vdl:Y-A,dmax:i.max=U,dmin:i.min=O,clen:fa,offset:0,step:1,llen:0,alen:0,ddsi:A,
ddei:Y,ppc:0};e.crossline={style:{lineHeight:h.inCanvasStyle.lineHeight,fontSize:h.inCanvasStyle.fontSize,fontFamily:h.inCanvasStyle.fontFamily}};this.configureAxis(e,b);b.trendlines&&f(b.trendlines,e.yAxis,h,!1,this.isBar)}},seriesGraphicsAttrs:function(b,c){var k=this.dataObj.chart,e=this.hcJSON.colors,h=(b.dashed||k.linedashed||"0")!=0,f,e={"stroke-width":E(b.linethickness,k.linethickness,2),stroke:B(ga(b.color,k.linecolor,e[c%e.length])),"stroke-opacity":E(b.alpha,k.linealpha,100)/100,"stroke-dasharray":h?
[E(b.linedashlen,k.linedashlen,5),E(b.linedashgap,k.linedashgap,4)]:"none","stroke-linejoin":"round","stroke-linecap":"round"},h=ma({},e);f=e["stroke-width"]+E(k.pinlinethicknessdelta,1);h["stroke-width"]=f>0&&f||0;h["stroke-dasharray"]=[3,2];return{graphics:e,pin:h,shadow:{opacity:e["stroke-opacity"],apply:E(k.showshadow,+!ka.vml)},anchors:{"stroke-linejoin":"round","stroke-linecap":"round",r:E(b.anchorradius,k.anchorradius,e["stroke-width"]+2),stroke:B(ga(b.anchorbordercolor,k.anchorbordercolor,
e.stroke)),"stroke-opacity":E(b.anchorborderalpha,k.anchorborderalpha,100)/100,"stroke-width":E(b.anchorborderthickness,k.anchorborderthickness,e["stroke-width"]),fill:B(ga(b.anchorbgcolor,k.anchorbgcolor,"#ffffff")),"fill-opacity":E(b.anchorbgalpha,k.anchorbgalpha,100)/100,opacity:E(b.anchoralpha,k.anchoralpha,100)/100},anchorShadow:E(k.anchorshadow,k.showshadow,+!ka.vml)&&{apply:!0,opacity:E(b.anchoralpha,k.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 k=this.jsVars,e;if(k&&(e=k.hcObj))return e.zoomRange&&k.hcObj.zoomRange(b,c-2)},resetChart:function(){var b=this.jsVars,c;if(b&&(c=b.hcObj))c.pinRangePixels&&b.hcObj.pinRangePixels(),c.resetZoom&&b.hcObj.resetZoom()},setZoomMode:function(b){var c=this.jsVars,k;c&&(k=c.hcObj)&&b&&k.pinRangePixels&&c.hcObj.pinRangePixels()},getViewStartIndex:function(){var b=this.jsVars,c;if(b&&b.hcObj&&(c=b.hcObj._zoominfo))return c.ddsi+1},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}}},Ia.msline);Ea("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)&&t("resetzoomchart",this._zoomargs,this.fusionCharts,[this.fusionCharts.id]);return!0},zoomOut:function(){var b=this._zoomhistory.pop(),c=this.options.stepZoom,k,e,h;b?(k=b.dsi,e=b.dei):this._prezoomed&&(k=0,e=c.clen-1);(h=this.zoomTo(k,e))&&Ca.raiseEvent("zoomedout",
h,this.fusionCharts);return!0},zoomRangePixels:function(b,c){var k=this._zoomhistory,e=this._zoominfo,h=e.ppp,e=e.ddsi,f;k.push(this._zoominfo);(f=this.zoomTo(e+ya(b/h),e+ya(c/h)))?Ca.raiseEvent("zoomedin",f,this.fusionCharts):k.pop()},zoomRange:function(b,c){var k=this._zoomhistory,e;k.push(this._zoominfo);(e=this.zoomTo(+b-1,+c+1))?Ca.raiseEvent("zoomedin",e,this.fusionCharts):k.pop()},zoomTo:function(b,c){var k=this.xlabels.data,e=this._zoominfo,h=this._zoomhistory,f=e.clen;b<0&&(b=0);b>=f-1&&
(b=f-1);c<=b&&(c=b+1);c>f-1&&(c=f-1);if(b===c||b===e.dsi&&c===e.dei)return!1;this.pinRangePixels();e=ma({},e);e.dsi=b;e.dei=c;e=this._zoominfo=e;this.updatePlotZoomline();this.zoomOutButton[e.vdl===e.clen-1?"hide":"show"]();this.resetButton[h.length?"show":"hide"]();this.elements.zoomscroller.attr({"scroll-ratio":e.vdl/(f-!!f),"scroll-position":[e.dsi/(f-e.vdl-1),!0]});k={level:h.length+1,startIndex:b,startLabel:k[b],endIndex:c,endLabel:k[c]};t("zoomed",k,this.fusionCharts,[this.fusionCharts.id,b,
c,k.startLabel,k.endLabel,k.level]);return k},activatePin:function(b){var c=this._zoominfo,k=this.options.chart,e=this.pinButton;if(e&&c.pinned^(b=!!b))return b||this.pinRangePixels(),k.showToolBarButtonTooltext&&e.tooltip(k[b&&"btnSwitchToZoomModeTooltext"||"btnSwitchToPinModeTooltext"]||""),e.attr("button-active",b),c.pinned=b},pinRangePixels:function(b,c){var k=this.paper,e=this.elements,h=this.xlabels.data,f=this._zoominfo,i=this.layers.zoompin,w=e.pinrect,X=e["clip-pinrect"],A=this._pingrouptransform,
E=this.plots,Y=c-b,M,u;if(f&&i&&w){if(b===c)return i.hide(),e.pintracker.hide(),this.pinButton.attr("button-active",!1),f.pinned=!1;for(u=E.length;u--;){w=E[u];M=w.pinline;if(!M)M=w.pinline=k.path(void 0,i).attr(w.attrPin);M.attr("path",w.graphic.attrs.path)}X[0]=b+(ka.svg?this.canvasLeft:0);X[2]=Y;i.attr({"clip-rect":X,transform:A}).show();e.pintracker.__pindragdelta=0;e.pintracker.show().attr({transform:A,x:b,width:Y});b=this.getValuePixel(b);c=this.getValuePixel(c);t("pinned",{startIndex:b,endIndex:c,
startLabel:h[b],endLabel:h[c]},this.fusionCharts,[this.fusionCharts.id,b,c,h[b],h[c]]);return f.pinned=!0}},getValuePixel:function(b){var c=this._zoominfo;return c.ddsi+ya(b/c.ppp)},getParsedLabel:function(b){var c=this.xlabels;return c.parsed[b]||(c.parsed[b]=U(c.data[b]||""))},drawGraph:function(){var b=this,c=b.paper,k=b.canvasLeft,e=b.canvasTop,h=b.canvasWidth,f=b.canvasHeight,i=b.options,w=i.chart,t=w.plotBorderWidth,A=w.useRoundEdges,E=w.showToolBarButtonTooltext,Y=b.layers,M=b.toolbar,u=b.elements,
B=w.allowPinMode,O,R=i.categories,T=!1,W,S,U,Z,ba,V;V=b._zoominfo=ma({},i.stepZoom);b._zoomhistory=[];if(V.clen){T=b._prezoomed=V.dei-V.dsi<V.clen-1;ba=b._visw=b.canvasWidth-w.canvasPadding*2;Z=b._visx=b.canvasLeft+w.canvasPadding;b._visout=-(b.chartHeight+b.canvasHeight+1E3);b.base.drawGraph.apply(b,arguments);b._ypvr=b.yAxis[0]&&b.yAxis[0].pixelValueRatio||0;O=b._yzero||0;i=Y.dataset.attr("clip-rect",[b._visx,b.canvasTop,b._visw,b.canvasHeight]);U=Y.scroll||(Y.scroll=c.group("scroll").insertAfter(Y.layerAboveDataset));
b.xlabels=[];b.xlabels.show=R.show;b.xlabels.height=R.labelHeight;b.xlabels.wrap=R.wrap;b.xlabels.rotate=R.rotate;b.xlabels.data=R.data||[];b.xlabels.parsed=[];b.xlabels.css=R.css;b.xlabels.group=c.group("zoomline-plot-xlabels",Y.datalabels);Y.datalabels.transform(["T",Z,e+f+w.scrollHeight+w.labelPadding]);b._lcmd=R.rotate?"y":"x";if(B)B=ka.crispBound(0,e-O,0,f,t),W=u["clip-pinrect"]=[B.x,ka.svg?e:B.y,B.width,B.height],S=Y.zoompin=c.group("zoompin").insertBefore(i).transform(b._pingrouptransform=
["T",Z,O]).hide(),u.pinrect=c.rect(0,e-O,b._visw,f,Y.zoompin).attr({"stroke-width":0,stroke:"none",fill:w.pinPaneFill,"shape-rendering":"crisp",ishot:!0}),u.pintracker=c.rect(Y.tracker).attr({transform:S.transform(),x:0,y:e-O,width:0,height:f,stroke:"none",fill:va,ishot:!0,cursor:ka.svg&&"ew-resize"||"e-resize"}).drag(function(b){var c=Z+b+this.__pindragdelta,e=this.__pinboundleft,h=this.__pinboundright;c<e?c=e:c>h&&(c=h);S.transform(["T",c,O]);u.pintracker.transform(S.transform());this.__pindragoffset=
b},function(){this.__pinboundleft=0-W[0]+Z+(ka.svg&&k||0);this.__pinboundright=this.__pinboundleft+ba-W[2];S._.clipispath=!0},function(){S._.clipispath=!1;this.__pindragdelta=this.__pindragoffset;delete this.__pindragoffset;delete this.__pinboundleft;delete this.__pinboundright}),b.pinButton=M.add("pinModeIcon",function(){b.activatePin(!b._zoominfo.pinned)},{tooltip:E&&w.btnSwitchToPinModeTooltext||""});t++;B=ka.crispBound(k-t,e+f+t,h+t+t,w.scrollHeight,t);t--;u.zoomscroller=c.scroller(B.x+(A&&-1||
t%2),B.y-(A&&4||2),B.width-(!A&&2||0),B.height,!0,{showButtons:!0,scrollRatio:V.vdl/(V.clen-!!V.clen),scrollPosition:[V.dsi/(V.clen-V.vdl-1),!1]},U).attr({fill:w.scrollColor,r:A&&2||0}).scroll(b.updatePlotZoomline,b);A&&u.zoomscroller.shadow(!0);ua(b,function(c){var e=c.selectionLeft-k,c=e+c.selectionWidth;b.crossline&&b.crossline.hide();b[b._zoominfo.pinned?"pinRangePixels":"zoomRangePixels"](e,c)},{attr:{stroke:w.zoomPaneStroke,fill:w.zoomPaneFill,strokeWidth:0}});b.zoomOutButton=M.add("zoomOutIcon",
function(){b.zoomOut()},{tooltip:E&&w.btnZoomOutTooltext||""})[T&&"show"||"hide"]();b.resetButton=M.add("resetIcon",function(){b.resetZoom()},{tooltip:E&&w.btnResetChartTooltext||""}).hide();B=b.resetButton.attr("fill");B[2]="rgba(255,255,255,0)";b.resetButton.attr("fill",[B[0],B[1],B[2],B[3]]);b.crossline=new la(b);b.updatePlotZoomline()}},drawPlotZoomline:function(b,c){var k=this.paper,e=this._yzero||(this._yzero=this.yAxis[0].getAxisPosition(0)),h=c.attrs,f=c.visible,i=f?"show":"hide",w=this.layers.dataset,
t=b.group||(b.group=k.group("plot-zoomline-dataset",w)),w=b.anchorGroup||(b.anchorGroup=k.group("plot-zoomline-anchors",w)),k=b.graphic||(b.graphic=k.path(void 0,t)),e=["T",this._visx,e];t.transform(e)[i]();w.transform(e)[i]();b.graphic=k.attr(h.graphics).shadow(h.shadow);b.attrPin=h.pin;b.visible=f;b.anchors=[];b.anchors.show=c.showAnchors;b.anchors.attrs=h.anchors;b.anchors.attrsShadow=h.anchorShadow;b.anchors.left=-(h.anchors.r+h.anchors["stroke-width"]*0.5);b.anchors.right=this._visw-b.anchors.right},
updatePlotZoomline:function(b,c){var k=this.paper,e=this._ypvr,h=this._visw,f=this.xlabels,i=f.css,w=f.group,t=this.plots,A,E,B,M,u,O,U;!c&&(c=this._zoominfo);B=c.oppp;M=c.vdl=c.dei-c.dsi;u=c.ppl=c.nvl?h/c.nvl:c.oppl;h=c.step=(E=c.ppp=h/M)<B?wa(B/E):1;u=c.lskip=wa(u/E/h);b!==void 0?(B=(c.clen-M-1)*b,c.offset=(B-(B=qa(B)))*E,O=B+M):(B=c.dsi,O=c.dei,c.offset=0);M=c.norm=B%h;c.ddsi=B-=M;c.ddei=O=O+2*h-M;c.pvr=e;e=f.show?wa((O-B)/h/u):0;M=c.llen-1;c.llen=e;U=c.ppc=E*u*h;if(e>M){u=M;for(M=e;u<M;u++)(A=
f[u])&&A.show()||(f[u]=k.text(0,0,"",w).css(i))}else{u=e;for(M+=1;u<M;u++)f[u].hide()}e=E*h<c.amrd?0:wa((O-B)/h);i=e-c.alen;c.alen=e;if(f.wrap)f.rotate?(f._width=f.height,f._height=U):(f._width=U,f._height=f.height);for(h=t.length;h--;){w=t[h];A=w.anchors;if(A.show&&i){E=A.attrs;u=0;for(M=e;u<M;u++)A[u]=A[u]&&A[u].show()||k.circle(0,0,0,w.anchorGroup).attr(E);u=e;for(M=A.length;u<M;u++)A[u]&&A[u].hide()}this.drawPlotZoomlineGraphics(c,w.data,w.graphic,A,!h&&f)}if(window.FC_DEV_ENVIRONMENT)FusionCharts.debugMode.enabled()?
(this.debug=this.debug||($("#fc-zoominfo").length||$("body").append('<pre id="fc-zoominfo">'),$("#fc-zoominfo").css({position:"absolute",left:"10px",top:"0","pointer-events":"none",opacity:0.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))):($("#fc-zoominfo").remove(),delete this.debug)},drawPlotZoomlineGraphics:function(b,c,k,e,h){var f=this.smartLabel,i=[],w=!b.cnd,t=b.ddei,A=b.clen,B=b.step,
E=b.lskip,M=b.ppp,u=b.offset,O=b.pvr,U=this._visw,R=this._visout,T=this._lcmd,W="M",S,Z,ba=h&&h[0],ja,V,e=e[0],ga={},ka={},la,ca=0,ea,na,ma=-b.norm,b=b.ddsi,qa=0;if(ba)h.group.transform(["T",-u,0]),na=h.wrap,ja=h._height,V=h._width;for(;b<=t;b+=B,ma+=B)if(ea=ca/3+qa,la=ma*M,(S=c[b])===void 0?(w&&(W="M"),Z=R,h=la-u,S=R,qa++):(i[ca++]=W,i[ca++]=Z=h=la-u,i[ca++]=S*=O,W="L"),e&&(e=e.attr((ga.cx=Z,ga.cy=S,ga)).next),ba&&!(ea%E))ea=ba.attrs,Z=this.getParsedLabel(b),h=h<0||h>U?R:la,ba._prevtext===Z?delete ka.text:
ka.text=ba._prevtext=Z,ea[T]===h?delete ka[T]:ka[T]=h,na&&Z&&(ka.text=f.getSmartText(Z,V,ja).text),ba=ba.attr(ka).next;if(t>=A){if((S=c[A-1])!==void 0)ma-=t-A,i[ca++]="L",i[ca++]=ma*M-u,i[ca++]=S*O;e&&e.attr((ga.cx=R,ga.cy=R,ga))}k.attr("path",i)},legendClick:function(b){var c=!b.visible,k=c?"show":"hide";b.group[k]();b.anchorGroup[k]();this.base.legendClick.apply(this,arguments);return b.visible=c}},Ea["renderer.cartesian"]);la=function(b){var c=b.paper,k=this.left=b._visx,e=this.width=b._visw,h=
b.canvasTop,f=b.canvasHeight,i=this._visout=b._visout,w=this.plots=b.plots,t=b.layers.dataset,A=this.group=c.group("crossline-labels",t).attr({transform:["T",k,b._yzero]});this.tracker=c.rect(k,h,e,f,t).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);this.line=c.path(void 0,t).attr({path:["M",k,h,"l",0,f],"stroke-opacity":0.2}).toBack();k=this.labels=c.set();e=
b.options.crossline.style;this.hide();this.pixelRatio=b._ypvr;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)};h=0;for(f=w.length;h<f;h++)t=w[h],t=t.graphic.attrs.stroke,k.push(c.text(0,i,"",A).css(e).attr({fill:t,"text-bound":["rgba(255,255,255,0.8)","rgba(0,0,0,0.2)",1,2]}))};la.prototype.onMouseOut=function(){this.hide()};
la.prototype.onMouseDown=function(){this.hide();this._mouseIsDown=!0};la.prototype.onMouseUp=function(){this.hide();delete this._mouseIsDown};la.prototype.onMouseMove=function(b){if(!this._mouseIsDown){var c=this.getZoomInfo(),k=this.line,e=c.step,h=c.ppp*e,b=(b.layerX||b.x)-this.left,f,b=(b+=h/2+c.offset)-b%h;f=(f=this.getDataIndexFromPixel(b))+f%e;b-=c.offset;k.transform(["T",ya(b),0]);if(f!==this.position||this.hidden)this.position=f,this.lineX=b,this.updateLabels();this.hidden&&this.show()}};
la.prototype.updateLabels=function(){var b=this.labels,c=this.plots,f=this.width,e=this.position,h=this.lineX,i=ya(h),t=this.pixelRatio,w=this._visout,B,A;b.forEach(function(b,E){B=c[E];A=B.data[e];b.attr({text:A+"",x:i,y:A===void 0||!B.visible?w:A*t,"text-anchor":h<=0&&"start"||h>=f&&"end"||"middle"})});this.positionLabel&&this.positionLabel.attr({x:h+this.left,text:this.getPositionLabel(e)})};la.prototype.show=function(){this.hidden=!1;this.group.attr("visibility","visible");this.line.attr("visibility",
"visible");this.positionLabel&&this.positionLabel.attr("visibility","visible")};la.prototype.hide=function(){this.hidden=!0;this.group.hide();this.line.hide()};ka.addSymbol({pinModeIcon:function(b,c,f){var e=f*0.5,h=b-f,i=b+f,t=b-e,w=b+e,B=b+0.5,A=B+1,E=B+1.5,O=c-f,M=c+e,u=c-e,e=c+(f-e);return["M",h,O,"L",t,u,t,e,h,M,b-0.5,M,b,c+f+0.5,B,M,i,M,w,e,w,u,i,O,E,O,E,u,E,e,A,e,A,u,E,u,E,O,"Z"]},zoomOutIcon:function(b,c,f){b-=f*0.2;c-=f*0.2;var e=f*0.8,h=ka.rad(43),i=ka.rad(48),t=b+e*Fa(h),h=c+e*Z(h),w=b+
e*Fa(i),i=c+e*Z(i),B=ka.rad(45),A=t+f*Fa(B),E=h+f*Z(B),O=w+f*Fa(B),f=i+f*Z(B);return["M",t,h,"A",e,e,0,1,0,w,i,"Z","M",t+1,h+1,"L",A,E,O,f,w+1,i+1,"Z","M",b-2,c,"L",b+2,c,"Z"]},resetIcon:function(b,c,f){var e=b-f,h=(O.PI/2+O.PI)/2;b+=f*Fa(h);var h=c+f*Z(h),i=f*2/3;return["M",e,c,"A",f,f,0,1,1,b,h,"L",b+i,h-1,b+2,h+i-0.5,b,h]}})}]);