text: !function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():t.echarts=e()}(this,function(){var t,e;!function(){function i(t,e){if(!e)return t;if(0===t.indexOf(".")){var i=e.split("/"),n=t.split("/"),r=i.length-1,a=n.length,o=0,s=0;t:for(var u=0;a>u;u++)switch(n[u]){case"..":if(!(r>o))break t;o++,s++;break;case".":s++;break;default:break t}return i.length=r-o,n=n.slice(s),i.concat(n).join("/")}return t}function n(t){function e(e,o){if("string"==typeof e){var s=n[e];return s||(s=a(i(e,t)),n[e]=s),s}e instanceof Array&&(o=o||function(){},o.apply(this,r(e,o,t)))}var n={};return e}function r(e,n,r){for(var s=[],u=o[r],c=0,l=Math.min(e.length,n.length);l>c;c++){var h,f=i(e[c],r);switch(f){case"require":h=u&&u.require||t;break;case"exports":h=u.exports;break;case"module":h=u;break;default:h=a(f)}s.push(h)}return s}function a(t){var e=o[t];if(!e)throw new Error("No "+t);if(!e.defined){var i=e.factory,n=i.apply(this,r(e.deps||[],i,t));"undefined"!=typeof n&&(e.exports=n),e.defined=1}return e.exports}var o={};e=function(t,e,i){if(2===arguments.length&&(i=e,e=[],"function"!=typeof i)){var r=i;i=function(){return r}}o[t]={id:t,deps:e,factory:i,defined:0,exports:{},require:n(t)}},t=n("")}();var i="isHorizontal",n="getAxis",r="getExtent",a="category",o="setItemGraphicEl",s="getItemLayout",u="registerVisualCoding",c="registerLayout",l="hostModel",h="itemStyle",f="eachSeriesByType",d="setItemVisual",p="setVisual",v="update",m="zlevel",g="initProps",y="updateProps",_="mouseout",x="mouseover",b="setShape",w="buildPath",M="closePath",S="bezierCurveTo",C="lineTo",L="moveTo",k="beginPath",A="contain",T="textBaseline",z="textAlign",P="eachItemGraphicEl",D="getItemGraphicEl",I="dataIndex",O="trigger",B="removeAll",R="traverse",E="remove",N="__dirty",F="refresh",G="ignore",q="animate",V="stopAnimation",W="animation",H="getLocalTransform",Z="parent",X="transform",U="rotation",j="splice",Y="dimensions",$="coordinateSystem",Q="getComponent",K="getHeight",J="getWidth",tt="isString",et="childAt",it="position",nt="isObject",rt="getDataParams",at="getItemModel",ot="getName",st="getRawIndex",ut="getRawValue",ct="ordinal",lt="getData",ht="seriesIndex",ft="normal",dt="emphasis",pt="radius",vt="option",mt="../util/clazz",gt="getFont",yt="getBoundingRect",_t="textStyle",xt="getModel",bt="ecModel",wt="defaults",Mt="inside",St="../core/util",Ct="create",Lt="height",kt="applyTransform",At="zrender/core/BoundingRect",Tt="zrender/core/matrix",zt="undefined",Pt="zrender/core/vector",Dt="opacity",It="stroke",Ot="lineWidth",Bt="getShallow",Rt="getClass",Et="enableClassManagement",Nt="inherits",Ft="extend",Gt="enableClassExtend",qt="toLowerCase",Vt="bottom",Wt="middle",Ht="center",Zt="parsePercent",Xt="isArray",Ut="replace",jt="function",Yt="concat",$t="number",Qt="string",Kt="indexOf",Jt="getContext",te="canvas",ee="length",ie="filter",ne="zrender/core/util",re="prototype",ae="require";e("zrender/graphic/Gradient",[ae],function(t){var e=function(t){this.colorStops=t||[]};return e[re]={constructor:e,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}},e}),e(ne,[ae,"../graphic/Gradient"],function(t){function e(t){if("object"==typeof t&&null!==t){var i=t;if(t instanceof Array){i=[];for(var n=0,r=t[ee];r>n;n++)i[n]=e(t[n])}else if(!M(t)&&!S(t)){i={};for(var a in t)t.hasOwnProperty(a)&&(i[a]=e(t[a]))}return i}return t}function i(t,n,r){if(!w(n)||!w(t))return r?e(n):t;for(var a in n)if(n.hasOwnProperty(a)){var o=t[a],s=n[a];!w(s)||!w(o)||_(s)||_(o)||S(s)||S(o)||M(s)||M(o)?!r&&a in t||(t[a]=e(n[a],!0)):i(o,s,r)}return t}function n(t,e){for(var n=t[0],r=1,a=t[ee];a>r;r++)n=i(n,t[r],e);return n}function r(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function a(t,e,i){for(var n in e)e.hasOwnProperty(n)&&(i?null!=e[n]:null==t[n])&&(t[n]=e[n]);return t}function o(){return document.createElement(te)}function s(){return A||(A=N.createCanvas()[Jt]("2d")),A}function u(t,e){if(t){if(t[Kt])return t[Kt](e);for(var i=0,n=t[ee];n>i;i++)if(t[i]===e)return i}return-1}function c(t,e){function i(){}var n=t[re];i[re]=e[re],t[re]=new i;for(var r in n)t[re][r]=n[r];t[re].constructor=t,t.superClass=e}function l(t,e,i){t=re in t?t[re]:t,e=re in e?e[re]:e,a(t,e,i)}function h(t){return t?typeof t==Qt?!1:typeof t[ee]==$t:void 0}function f(t,e,i){if(t&&e)if(t.forEach&&t.forEach===I)t.forEach(e,i);else if(t[ee]===+t[ee])for(var n=0,r=t[ee];r>n;n++)e.call(i,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(i,t[a],a,t)}function d(t,e,i){if(t&&e){if(t.map&&t.map===R)return t.map(e,i);for(var n=[],r=0,a=t[ee];a>r;r++)n.push(e.call(i,t[r],r,t));return n}}function p(t,e,i,n){if(t&&e){if(t.reduce&&t.reduce===E)return t.reduce(e,i,n);for(var r=0,a=t[ee];a>r;r++)i=e.call(n,i,t[r],r,t);return i}}function v(t,e,i){if(t&&e){if(t[ie]&&t[ie]===O)return t[ie](e,i);for(var n=[],r=0,a=t[ee];a>r;r++)e.call(i,t[r],r,t)&&n.push(t[r]);return n}}function m(t,e,i){if(t&&e)for(var n=0,r=t[ee];r>n;n++)if(e.call(i,t[n],n,t))return t[n]}function g(t,e){var i=B.call(arguments,2);return function(){return t.apply(e,i[Yt](B.call(arguments)))}}function y(t){var e=B.call(arguments,1);return function(){return t.apply(this,e[Yt](B.call(arguments)))}}function _(t){return"[object Array]"===P.call(t)}function x(t){return typeof t===jt}function b(t){return"[object String]"===P.call(t)}function w(t){var e=typeof t;return e===jt||!!t&&"object"==e}function M(t){return!!z[P.call(t)]||t instanceof T}function S(t){return t&&1===t.nodeType&&typeof t.nodeName==Qt}function C(t){for(var e=0,i=arguments[ee];i>e;e++)if(null!=arguments[e])return arguments[e]}function L(){return Function.call.apply(B,arguments)}function k(t,e){if(!t)throw new Error(e)}var A,T=t("../graphic/Gradient"),z={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1},P=Object[re].toString,D=Array[re],I=D.forEach,O=D[ie],B=D.slice,R=D.map,E=D.reduce,N={inherits:c,mixin:l,clone:e,merge:i,mergeAll:n,extend:r,defaults:a,getContext:s,createCanvas:o,indexOf:u,slice:L,find:m,isArrayLike:h,each:f,map:d,reduce:p,filter:v,bind:g,curry:y,isArray:_,isString:b,isObject:w,isFunction:x,isBuildInObject:M,isDom:S,retrieve:C,assert:k,noop:function(){}};return N}),e("echarts/util/number",[ae,ne],function(t){function e(t){return t[Ut](/^\s+/,"")[Ut](/\s+$/,"")}var i=t(ne),n={},r=1e-4;return n.linearMap=function(t,e,r,a){if(i[Xt](t))return i.map(t,function(t){return n.linearMap(t,e,r,a)});var o=e[1]-e[0];if(0===o)return(r[0]+r[1])/2;var s=(t-e[0])/o;return a&&(s=Math.min(Math.max(s,0),1)),s*(r[1]-r[0])+r[0]},n[Zt]=function(t,i){switch(t){case Ht:case Wt:t="50%";break;case"left":case"top":t="0%";break;case"right":case Vt:t="100%"}return typeof t===Qt?e(t).match(/%$/)?parseFloat(t)/100*i:parseFloat(t):null==t?NaN:+t},n.round=function(t){return+(+t).toFixed(12)},n.asc=function(t){return t.sort(function(t,e){return t-e}),t},n.getPrecision=function(t){for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i},n.getPixelPrecision=function(t,e){var i=Math.log,n=Math.LN10,r=Math.floor(i(t[1]-t[0])/n),a=Math.round(i(Math.abs(e[1]-e[0]))/n);return Math.max(-r+a,0)},n.MAX_SAFE_INTEGER=9007199254740991,n.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},n.isRadianAroundZero=function(t){return t>-r&&r>t},n.parseDate=function(t){return t instanceof Date?t:new Date(typeof t===Qt?t[Ut](/-/g,"/"):Math.round(t))},n}),e("echarts/util/format",[ae,ne,"./number"],function(t){function e(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0][Ut](/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t[ee]>1?"."+t[1]:""))}function i(t){return t[qt]()[Ut](/-(.)/g,function(t,e){return e.toUpperCase()})}function n(t){var e=t[ee];return typeof t===$t?[t,t,t,t]:2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function r(t){return String(t)[Ut](/&/g,"&amp;")[Ut](/</g,"&lt;")[Ut](/>/g,"&gt;")[Ut](/"/g,"&quot;")[Ut](/'/g,"&#39;")}function a(t,e){return"{"+t+(null==e?"":e)+"}"}function o(t,e){c[Xt](e)||(e=[e]);var i=e[ee];if(!i)return"";for(var n=e[0].$vars,r=0;r<n[ee];r++){var o=h[r];t=t[Ut](a(o),a(o,0))}for(var s=0;i>s;s++)for(var u=0;u<n[ee];u++)t=t[Ut](a(h[u],s),e[s][n[u]]);return t}function s(t,e){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var i=l.parseDate(e),n=i.getFullYear(),r=i.getMonth()+1,a=i.getDate(),o=i.getHours(),s=i.getMinutes(),c=i.getSeconds();return t=t[Ut]("MM",u(r))[qt]()[Ut]("yyyy",n)[Ut]("yy",n%100)[Ut]("dd",u(a))[Ut]("d",a)[Ut]("hh",u(o))[Ut]("h",o)[Ut]("mm",u(s))[Ut]("m",s)[Ut]("ss",u(c))[Ut]("s",c)}function u(t){return 10>t?"0"+t:t}var c=t(ne),l=t("./number"),h=["a","b","c","d","e","f","g"];return{normalizeCssArray:n,addCommas:e,toCamelCase:i,encodeHTML:r,formatTpl:o,formatTime:s}}),e("echarts/util/clazz",[ae,ne],function(t){function e(t,e){for(var i,n=t.constructor,r=t[e];(n=n.$superClass)&&(i=n[re][e])&&i===r;);return i}var i=t(ne),n={},r=".",a="___EC__COMPONENT__CONTAINER___",o=n.parseClassType=function(t){var e={main:"",sub:""};return t&&(t=t.split(r),e.main=t[0]||"",e.sub=t[1]||""),e};return n[Gt]=function(t,n){t[Ft]=function(r){var a=function(){n&&n.apply(this,arguments),t.apply(this,arguments)};return i[Ft](a[re],i[Ft]({$superCall:function(t){var n=i.slice(arguments,1);return e(this,t).apply(this,n)},$superApply:function(t,i){return e(this,t).apply(this,i)}},r)),a[Ft]=this[Ft],i[Nt](a,this),a.$superClass=this,a}},n[Et]=function(t,e){function n(t){var e=r[t.main];return e&&e[a]||(e=r[t.main]={},e[a]=!0),e}e=e||{};var r={};if(t.registerClass=function(t,e){if(e)if(e=o(e),e.sub){if(e.sub!==a){var i=n(e);i[e.sub]=t}}else{if(r[e.main])throw new Error(e.main+"exists");r[e.main]=t}return t},t[Rt]=function(t,e,i){var n=r[t];if(n&&n[a]&&(n=e?n[e]:null),i&&!n)throw new Error("Component "+t+"."+(e||"")+" not exists");return n},t.getClassesByMainType=function(t){t=o(t);var e=[],n=r[t.main];return n&&n[a]?i.each(n,function(t,i){i!==a&&e.push(t)}):e.push(n),e},t.hasClass=function(t){return t=o(t),!!r[t.main]},t.getAllClassMainTypes=function(){var t=[];return i.each(r,function(e,i){t.push(i)}),t},t.hasSubTypes=function(t){t=o(t);var e=r[t.main];return e&&e[a]},t.parseClassType=o,e.registerWhenExtend){var s=t[Ft];s&&(t[Ft]=function(e){var i=s.call(this,e);return t.registerClass(i,e.type)})}return t},n.setReadOnly=function(t,e){},n}),e("echarts/model/mixin/makeStyleMapper",[ae,ne],function(t){var e=t(ne);return function(t){for(var i=0;i<t[ee];i++)t[i][1]||(t[i][1]=t[i][0]);return function(i){for(var n={},r=0;r<t[ee];r++){var a=t[r][1];if(!(i&&e[Kt](i,a)>=0)){var o=this[Bt](a);null!=o&&(n[t[r][0]]=o)}}return n}}}),e("echarts/model/mixin/lineStyle",[ae,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([[Ot,"width"],[It,"color"],[Dt],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);return{getLineStyle:function(t){var i=e.call(this,t),n=this.getLineDash();return n&&(i.lineDash=n),i},getLineDash:function(){var t=this.get("type");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}}}),e("echarts/model/mixin/areaStyle",[ae,"./makeStyleMapper"],function(t){return{getAreaStyle:t("./makeStyleMapper")([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],[Dt],["shadowColor"]])}}),e(Pt,[],function(){var t=typeof Float32Array===zt?Array:Float32Array,e={create:function(e,i){var n=new t(2);return n[0]=e||0,n[1]=i||0,n},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},clone:function(e){var i=new t(2);return i[0]=e[0],i[1]=e[1],i},set:function(t,e,i){return t[0]=e,t[1]=i,t},add:function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t},scaleAndAdd:function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t},sub:function(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t},len:function(t){return Math.sqrt(this.lenSquare(t))},lenSquare:function(t){return t[0]*t[0]+t[1]*t[1]},mul:function(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t},div:function(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},scale:function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t},normalize:function(t,i){var n=e.len(i);return 0===n?(t[0]=0,t[1]=0):(t[0]=i[0]/n,t[1]=i[1]/n),t},distance:function(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))},distanceSquare:function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},lerp:function(t,e,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t},applyTransform:function(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[2]*r+i[4],t[1]=i[1]*n+i[3]*r+i[5],t},min:function(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t},max:function(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}};return e[ee]=e.len,e.lengthSquare=e.lenSquare,e.dist=e.distance,e.distSquare=e.distanceSquare,e}),e(Tt,[],function(){var t=typeof Float32Array===zt?Array:Float32Array,e={create:function(){var i=new t(6);return e.identity(i),i},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},mul:function(t,e,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],a=e[0]*i[2]+e[2]*i[3],o=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],u=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=u,t},translate:function(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t},rotate:function(t,e,i){var n=e[0],r=e[2],a=e[4],o=e[1],s=e[3],u=e[5],c=Math.sin(i),l=Math.cos(i);return t[0]=n*l+o*c,t[1]=-n*c+o*l,t[2]=r*l+s*c,t[3]=-r*c+l*s,t[4]=l*a+c*u,t[5]=l*u-c*a,t},scale:function(t,e,i){var n=i[0],r=i[1];return t[0]=e[0]*n,t[1]=e[1]*r,t[2]=e[2]*n,t[3]=e[3]*r,t[4]=e[4]*n,t[5]=e[5]*r,t},invert:function(t,e){var i=e[0],n=e[2],r=e[4],a=e[1],o=e[3],s=e[5],u=i*o-a*n;return u?(u=1/u,t[0]=o*u,t[1]=-a*u,t[2]=-n*u,t[3]=i*u,t[4]=(n*s-o*r)*u,t[5]=(a*r-i*s)*u,t):null}};return e}),e(At,[ae,"./vector","./matrix"],function(t){function e(t,e,i,n){this.x=t,this.y=e,this.width=i,this[Lt]=n}var i=t("./vector"),n=t("./matrix"),r=i[kt],a=Math.min,o=Math.abs,s=Math.max;return e[re]={constructor:e,union:function(t){var e=a(t.x,this.x),i=a(t.y,this.y);this.width=s(t.x+t.width,this.x+this.width)-e,this[Lt]=s(t.y+t[Lt],this.y+this[Lt])-i,this.x=e,this.y=i},applyTransform:function(){var t=[],e=[];return function(i){i&&(t[0]=this.x,t[1]=this.y,e[0]=this.x+this.width,e[1]=this.y+this[Lt],r(t,t,i),r(e,e,i),this.x=a(t[0],e[0]),this.y=a(t[1],e[1]),this.width=o(e[0]-t[0]),this[Lt]=o(e[1]-t[1]))}}(),calculateTransform:function(t){var e=this,i=t.width/e.width,r=t[Lt]/e[Lt],a=n[Ct]();return n.translate(a,a,[-e.x,-e.y]),n.scale(a,a,[i,r]),n.translate(a,a,[t.x,t.y]),a},intersect:function(t){var e=this,i=e.x,n=e.x+e.width,r=e.y,a=e.y+e[Lt],o=t.x,s=t.x+t.width,u=t.y,c=t.y+t[Lt];return!(o>n||i>s||u>a||r>c)},contain:function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i[Lt]},clone:function(){return new e(this.x,this.y,this.width,this[Lt])},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this[Lt]=t[Lt]}},e}),e("zrender/contain/text",[ae,St,"../core/BoundingRect"],function(t){function e(t,e){var i=t+":"+e;if(s[i])return s[i];for(var n=(t+"").split("\n"),r=0,a=0,o=n[ee];o>a;a++)r=Math.max(f.measureText(n[a],e).width,r);return u>c&&(u=0,s={}),u++,s[i]=r,r}function i(t,i,n,r){var a=((t||"")+"").split("\n")[ee],o=e(t,i),s=e("国",i),u=a*s,c=new h(0,0,o,u);switch(c.lineHeight=s,r){case Vt:case"alphabetic":c.y-=s;break;case Wt:c.y-=s/2}switch(n){case"end":case"right":c.x-=c.width;break;case Ht:c.x-=c.width/2}return c}function n(t,e,i,n){var r=e.x,a=e.y,o=e[Lt],s=e.width,u=i[Lt],c=o/2-u/2,l="left";switch(t){case"left":r-=n,a+=c,l="right";break;case"right":r+=n+s,a+=c,l="left";break;case"top":r+=s/2,a-=n+u,l=Ht;break;case Vt:r+=s/2,a+=o+n,l=Ht;break;case Mt:r+=s/2,a+=c,l=Ht;break;case"insideLeft":r+=n,a+=c,l="left";break;case"insideRight":r+=s-n,a+=c,l="right";break;case"insideTop":r+=s/2,a+=n,l=Ht;break;case"insideBottom":r+=s/2,a+=o-u-n,l=Ht;break;case"insideTopLeft":r+=n,a+=n,l="left";break;case"insideTopRight":r+=s-n,a+=n,l="right";break;case"insideBottomLeft":r+=n,a+=o-u-n;break;case"insideBottomRight":r+=s-n,a+=o-u-n,l="right"}return{x:r,y:a,textAlign:l,textBaseline:"top"}}function r(t,i,n,r){if(!n)return"";r=l[wt]({ellipsis:"...",minCharacters:3,maxIterations:3,cnCharWidth:e("国",i),ascCharWidth:e("a",i)},r,!0),n-=e(r.ellipsis);for(var o=(t+"").split("\n"),s=0,u=o[ee];u>s;s++)o[s]=a(o[s],i,n,r);return o.join("\n")}function a(t,i,n,r){for(var a=0;;a++){var s=e(t,i);if(n>s||a>=r.maxIterations){t+=r.ellipsis;break}var u=0===a?o(t,n,r):Math.floor(t[ee]*n/s);if(u<r.minCharacters){t="";break}t=t.substr(0,u)}return t}function o(t,e,i){for(var n=0,r=0,a=t[ee];a>r&&e>n;r++){var o=t.charCodeAt(r);n+=o>=0&&127>=o?i.ascCharWidth:i.cnCharWidth}return r}var s={},u=0,c=5e3,l=t(St),h=t("../core/BoundingRect"),f={getWidth:e,getBoundingRect:i,adjustTextPositionOnRect:n,ellipsis:r,measureText:function(t,e){var i=l[Jt]();return i.font=e,i.measureText(t)}};return f}),e("echarts/model/mixin/textStyle",[ae,"zrender/contain/text"],function(t){function e(t,e){return t&&t[Bt](e)}var i=t("zrender/contain/text");return{getTextColor:function(){var t=this[bt];return this[Bt]("color")||t&&t.get("textStyle.color")},getFont:function(){var t=this[bt],i=t&&t[xt](_t);return[this[Bt]("fontStyle")||e(i,"fontStyle"),this[Bt]("fontWeight")||e(i,"fontWeight"),(this[Bt]("fontSize")||e(i,"fontSize")||12)+"px",this[Bt]("fontFamily")||e(i,"fontFamily")||"sans-serif"].join(" ")},getTextRect:function(t){var e=this.get(_t)||{};return i[yt](t,this[gt](),e.align,e.baseline)},ellipsis:function(t,e,n){return i.ellipsis(t,this[gt](),e,n)}}}),e("echarts/model/mixin/itemStyle",[ae,"./makeStyleMapper"],function(t){return{getItemStyle:t("./makeStyleMapper")([["fill","color"],[It,"borderColor"],[Ot,"borderWidth"],[Dt],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]])}}),e("echarts/model/Model",[ae,ne,mt,"./mixin/lineStyle","./mixin/areaStyle","./mixin/textStyle","./mixin/itemStyle"],function(t){function e(t,e,i,n){this.parentModel=e,this[bt]=i,this[vt]=t,this.init&&(arguments[ee]<=4?this.init(t,e,i,n):this.init.apply(this,arguments))}var i=t(ne),n=t(mt);e[re]={constructor:e,init:null,mergeOption:function(t){i.merge(this[vt],t,!0)},get:function(t,e){if(!t)return this[vt];typeof t===Qt&&(t=t.split("."));for(var i=this[vt],n=this.parentModel,r=0;r<t[ee]&&(i=i&&"object"==typeof i?i[t[r]]:null,null!=i);r++);return null==i&&n&&!e&&(i=n.get(t)),i},getShallow:function(t,e){var i=this[vt],n=i&&i[t],r=this.parentModel;return null==n&&r&&!e&&(n=r[Bt](t)),n},getModel:function(t,i){var n=this.get(t,!0),r=this.parentModel,a=new e(n,i||r&&r[xt](t),this[bt]);return a},isEmpty:function(){return null==this[vt]},restoreData:function(){},clone:function(){var t=this.constructor;return new t(i.clone(this[vt]))},setReadOnly:function(t){n.setReadOnly(this,t)}},n[Gt](e);var r=i.mixin;return r(e,t("./mixin/lineStyle")),r(e,t("./mixin/areaStyle")),r(e,t("./mixin/textStyle")),r(e,t("./mixin/itemStyle")),e}),e("echarts/util/model",[ae,"./format","./number",ne,"../model/Model"],function(t){function e(t){return t&&t.id&&0===(t.id+"")[Kt]("\x00_ec_\x00")}var i=t("./format"),n=t("./number"),r=t(ne),a=t("../model/Model"),o=["x","y","z",pt,"angle"],s={};return s.createNameEach=function(t,e){t=t.slice();var i=r.map(t,s.capitalFirst);e=(e||[]).slice();var n=r.map(e,s.capitalFirst);return function(a,o){r.each(t,function(t,r){for(var s={name:t,capital:i[r]},u=0;u<e[ee];u++)s[e[u]]=t+n[u];a.call(o,s)})}},s.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},s.eachAxisDim=s.createNameEach(o,["axisIndex","axis","index"]),s.normalizeToArray=function(t){return r[Xt](t)?t:null==t?[]:[t]},s.createLinkedNodesFinder=function(t,e,i){function n(t,e){return r[Kt](e.nodes,t)>=0}function a(t,n){var a=!1;return e(function(e){r.each(i(t,e)||[],function(t){n.records[e.name][t]&&(a=!0)})}),a}function o(t,n){n.nodes.push(t),e(function(e){r.each(i(t,e)||[],function(t){n.records[e.name][t]=!0})})}return function(i){function r(t){!n(t,s)&&a(t,s)&&(o(t,s),u=!0)}var s={nodes:[],records:{}};if(e(function(t){s.records[t.name]={}}),!i)return s;o(i,s);var u;do u=!1,t(r);while(u);return s}},s.defaultEmphasis=function(t,e){if(t){var i=t[dt]=t[dt]||{},n=t[ft]=t[ft]||{};r.each(e,function(t){var e=r.retrieve(i[t],n[t]);null!=e&&(i[t]=e)})}},s.createDataFormatModel=function(t,e,i){var n=new a;return r.mixin(n,s.dataFormatMixin),n[ht]=t[ht],n.name=t.name||"",n[lt]=function(){return e},n.getRawDataArray=function(){return i},n},s.getDataItemValue=function(t){return t&&(null==t.value?t:t.value)},s.converDataValue=function(t,e){var i=e&&e.type;return i===ct?t:("time"!==i||isFinite(t)||null==t||"-"===t||(t=+n.parseDate(t)),null==t||""===t?NaN:+t)},s.dataFormatMixin={getDataParams:function(t){var e=this[lt](),i=this[ht],n=this.name,r=this[ut](t),a=e[st](t),o=e[ot](t,!0),s=this.getRawDataArray(),u=s&&s[a];return{seriesIndex:i,seriesName:n,name:o,dataIndex:a,data:u,value:r,$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,n){e=e||ft;var r=this[lt](),a=r[at](t),o=this[rt](t);return n||(n=a.get(["label",e,"formatter"])),typeof n===jt?(o.status=e,n(o)):typeof n===Qt?i.formatTpl(n,o):void 0},getRawValue:function(t){var e=this[lt]()[at](t);if(e&&null!=e[vt]){var i=e[vt];return r[nt](i)&&!r[Xt](i)?i.value:i}}},s.mappingToExists=function(t,i){i=(i||[]).slice();var n=r.map(t||[],function(t,e){return{exist:t}});return r.each(i,function(t,a){if(r[nt](t))for(var o=0;o<n[ee];o++){var s=n[o].exist;if(!n[o][vt]&&(null!=t.id&&s.id===t.id+""||null!=t.name&&!e(t)&&!e(s)&&s.name===t.name+"")){n[o][vt]=t,i[a]=null;break}}}),r.each(i,function(t,i){if(r[nt](t)){for(var a=0;a<n[ee];a++){var o=n[a].exist;if(!n[a][vt]&&!e(o)&&null==t.id){n[a][vt]=t;break}}a>=n[ee]&&n.push({option:t})}}),n},s}),e("echarts/util/component",[ae,ne,"./clazz"],function(t){var e=t(ne),i=t("./clazz"),n=i.parseClassType,r=0,a={},o="_";return a.getUID=function(t){return[t||"",r++,Math.random()].join(o)},a.enableSubTypeDefaulter=function(t){var e={};return t.registerSubTypeDefaulter=function(t,i){t=n(t),e[t.main]=i},t.determineSubType=function(i,r){var a=r.type;if(!a){var o=n(i).main;t.hasSubTypes(i)&&e[o]&&(a=e[o](r))}return a},t},a.enableTopologicalTravel=function(t,i){function n(t){var n={},o=[];return e.each(t,function(s){var u=r(n,s),c=u.originalDeps=i(s),l=a(c,t);u.entryCount=l[ee],0===u.entryCount&&o.push(s),e.each(l,function(t){e[Kt](u.predecessor,t)<0&&u.predecessor.push(t);var i=r(n,t);e[Kt](i.successor,t)<0&&i.successor.push(s)})}),{graph:n,noEntryList:o}}function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function a(t,i){var n=[];return e.each(t,function(t){e[Kt](i,t)>=0&&n.push(t)}),n}t.topologicalTravel=function(t,i,r,a){function o(t){c[t].entryCount--,0===c[t].entryCount&&l.push(t)}function s(t){h[t]=!0,o(t)}if(t[ee]){var u=n(i),c=u.graph,l=u.noEntryList,h={};for(e.each(t,function(t){h[t]=!0});l[ee];){var f=l.pop(),d=c[f],p=!!h[f];p&&(r.call(a,f,d.originalDeps.slice()),delete h[f]),e.each(d.successor,p?s:o)}e.each(h,function(){throw new Error("Circle dependency may exists")})}}},a}),e("echarts/util/layout",[ae,ne,At,"./number","./format"],function(t){function e(t,e,i,n,r){var a=0,o=0;null==n&&(n=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(u,c){var l,h,f=u[it],d=u[yt](),p=e[et](c+1),v=p&&p[yt]();if("horizontal"===t){var m=d.width+(v?-v.x+d.x:0);l=a+m,l>n||u.newline?(a=0,l=m,o+=s+i,s=d[Lt]):s=Math.max(s,d[Lt])}else{var g=d[Lt]+(v?-v.y+d.y:0);h=o+g,h>r||u.newline?(a+=s+i,o=0,h=g,s=d.width):s=Math.max(s,d.width)}u.newline||(f[0]=a,f[1]=o,"horizontal"===t?a=l+i:o=h+i)})}var i=t(ne),n=t(At),r=t("./number"),a=t("./format"),o=r[Zt],s=i.each,u={};return u.box=e,u.vbox=i.curry(e,"vertical"),u.hbox=i.curry(e,"horizontal"),u.getAvailableSize=function(t,e,i){var n=e.width,r=e[Lt],s=o(t.x,n),u=o(t.y,r),c=o(t.x2,n),l=o(t.y2,r);return(isNaN(s)||isNaN(parseFloat(t.x)))&&(s=0),(isNaN(c)||isNaN(parseFloat(t.x2)))&&(c=n),(isNaN(u)||isNaN(parseFloat(t.y)))&&(u=0),(isNaN(l)||isNaN(parseFloat(t.y2)))&&(l=r),i=a.normalizeCssArray(i||0),{width:Math.max(c-s-i[1]-i[3],0),height:Math.max(l-u-i[0]-i[2],0)}},u.getLayoutRect=function(t,e,i){i=a.normalizeCssArray(i||0);var r=e.width,s=e[Lt],u=o(t.left,r),c=o(t.top,s),l=o(t.right,r),h=o(t[Vt],s),f=o(t.width,r),d=o(t[Lt],s),p=i[2]+i[0],v=i[1]+i[3],m=t.aspect;switch(isNaN(f)&&(f=r-l-v-u),isNaN(d)&&(d=s-h-p-c),isNaN(f)&&isNaN(d)&&(m>r/s?f=.8*r:d=.8*s),null!=m&&(isNaN(f)&&(f=m*d),isNaN(d)&&(d=f/m)),isNaN(u)&&(u=r-l-f-v),isNaN(c)&&(c=s-h-d-p),t.left||t.right){case Ht:u=r/2-f/2-i[3];break;case"right":u=r-f-v}switch(t.top||t[Vt]){case Wt:case Ht:c=s/2-d/2-i[0];break;case Vt:c=s-d-p}u=u||0,c=c||0,isNaN(f)&&(f=r-u-(l||0)),isNaN(d)&&(d=s-c-(h||0));var g=new n(u+i[3],c+i[0],f,d);return g.margin=i,g},u.positionGroup=function(t,e,n,r){var a=t[yt]();e=i[Ft](i.clone(e),{width:a.width,height:a[Lt]}),e=u.getLayoutRect(e,n,r),t[it]=[e.x-a.x,e.y-a.y]},u.mergeLayoutParam=function(t,e,n){function r(i){var r={},u=0,c={},l=0,h=n.ignoreSize?1:2;if(s(i,function(e){c[e]=t[e]}),s(i,function(t){a(e,t)&&(r[t]=c[t]=e[t]),o(r,t)&&u++,o(c,t)&&l++}),l!==h&&u){if(h>l){var f=0;return s(i,function(t){"auto"===c[t]&&(h-l>f?f++:c[t]=null)}),c}if(u>=h)return r;for(var d=0;d<i[ee];d++){var p=i[d];if(!a(r,p)&&a(t,p)){r[p]=t[p];break}}return r}return c}function a(t,e){return t.hasOwnProperty(e)}function o(t,e){return null!=t[e]&&"auto"!==t[e]}function u(t,e,i){s(t,function(t){e[t]=i[t]})}!i[nt](n)&&(n={});var c=["width","left","right"],l=[Lt,"top",Vt],h=r(c),f=r(l);u(c,t,h),u(l,t,f)},u.getLayoutParams=function(t){var e={};return t&&s(["left","right","top",Vt,"width",Lt],function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e},u}),e("echarts/model/mixin/boxLayout",[ae],function(t){return{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get(Vt),width:this.get("width"),height:this.get(Lt)}}}}),e("echarts/model/Component",[ae,"./Model",ne,"../util/component",mt,"../util/layout","./mixin/boxLayout"],function(t){function e(t){var e=[];return n.each(u.getClassesByMainType(t),function(t){r.apply(e,t[re].dependencies||[])}),n.map(e,function(t){return o.parseClassType(t).main})}var i=t("./Model"),n=t(ne),r=Array[re].push,a=t("../util/component"),o=t(mt),s=t("../util/layout"),u=i[Ft]({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,init:function(t,e,i,n){this.mergeDefaultAndTheme(this[vt],this[bt])},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,r=i?s.getLayoutParams(t):{},a=e.getTheme();n.merge(t,a.get(this.mainType)),n.merge(t,this.getDefaultOption()),i&&s.mergeLayoutParam(t,r,i)},mergeOption:function(t){n.merge(this[vt],t,!0);var e=this.layoutMode;e&&s.mergeLayoutParam(this[vt],t,e)},getDefaultOption:function(){if(!this.hasOwnProperty("__defaultOption")){for(var t=[],e=this.constructor;e;){var i=e[re].defaultOption;i&&t.push(i),e=e.superClass}for(var r={},a=t[ee]-1;a>=0;a--)r=n.merge(r,t[a],!0);this.__defaultOption=r}return this.__defaultOption}});return o[Gt](u,function(t,e,i,r){n[Ft](this,r),this.uid=a.getUID("componentModel"),this.setReadOnly(["type","id","uid","name","mainType","subType","dependentModels","componentIndex"])}),o[Et](u,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(u),a.enableTopologicalTravel(u,e),n.mixin(u,t("./mixin/boxLayout")),u}),e("echarts/model/globalDefault",[],function(){var t="";return typeof navigator!==zt&&(t=navigator.platform||""),{color:["#c23531","#314656","#61a0a8","#dd8668","#91c7ae","#6e7074","#ca8622","#bda29a","#44525d","#c4ccd3"],grid:{},textStyle:{fontFamily:t.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},animation:!0,animationThreshold:2e3,animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut"}}),e("echarts/model/Global",[ae,ne,"../util/model","./Model","./Component","./globalDefault"],function(t){function e(t,e){for(var i in e)y.hasClass(i)||("object"==typeof e[i]?t[i]=t[i]?c.merge(t[i],e[i],!1):c.clone(e[i]):t[i]=e[i])}function i(t){t=t,this[vt]={},this._componentsMap={},this._seriesIndices=null,e(t,this._theme[vt]),c.merge(t,_,!1),this.mergeOption(t)}function n(t,e){c[Xt](e)||(e=e?[e]:[]);var i={};return f(e,function(e){i[e]=(t[e]||[]).slice()}),i}function r(t,e){var i={};f(e,function(e,n){var r=e.exist,o=e[vt];if(c.assert(!o||null==o.id||!i[o.id],"id duplicates: "+(o&&o.id)),r&&(i[r.id]=e),o&&(i[o.id]=e),g(o)){var s=a(t,o,r);e.keyInfo={mainType:t,subType:s}}}),f(e,function(t,e){var n=t.exist,r=t[vt],a=t.keyInfo;if(g(r)){if(a.name=null!=r.name?r.name+"":n?n.name:"\x00-",n)a.id=n.id;else if(null!=r.id)a.id=r.id+"";else{var o=0;do a.id="\x00"+a.name+"\x00"+o++;while(i[a.id])}i[a.id]=t}})}function a(t,e,i){var n=e.type?e.type:i?i.subType:y.determineSubType(t,e);return n}function o(t){return p(t,function(t){return t.componentIndex})||[]}function s(t,e){return e.hasOwnProperty("subType")?d(t,function(t){return t.subType===e.subType}):t}function u(t){if(!t._seriesIndices)throw new Error("Series is not initialized. Please depends sereis.")}var c=t(ne),l=t("../util/model"),h=t("./Model"),f=c.each,d=c[ie],p=c.map,v=c[Xt],m=c[Kt],g=c[nt],y=t("./Component"),_=t("./globalDefault"),x=h[Ft]({constructor:x,init:function(t,e,i,n){i=i||{},this[vt]=null,this._theme=new h(i),this._optionManager=n},setOption:function(t,e){this._optionManager.setOption(t,e),this.resetOption()},resetOption:function(t){var e=!1,n=this._optionManager;if(!t||"recreate"===t){var r=n.mountOption("recreate"===t);this[vt]&&"recreate"!==t?(this.restoreData(),this.mergeOption(r)):i.call(this,r),e=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=n.getTimelineOption(this);a&&(this.mergeOption(a),e=!0)}if(!t||"recreate"===t||"media"===t){var o=n.getMediaOption(this,this._api);o[ee]&&f(o,function(t){this.mergeOption(t,e=!0)},this)}return e},mergeOption:function(t){function e(e,s){var u=t[e];c[Xt](u)||(u=u?[u]:[]);var h=l.mappingToExists(a[e],u);r(e,h);var d=n(a,s);i[e]=[],a[e]=[],f(h,function(t,n){var r=t.exist,o=t[vt];if(c.assert(g(o)||r,"Empty component definition"),o){var s=y[Rt](e,t.keyInfo.subType,!0);r&&r instanceof s?r.mergeOption(o,this):r=new s(o,this,this,c[Ft]({dependentModels:d,componentIndex:n},t.keyInfo))}else r.mergeOption({},this);a[e][n]=r,i[e][n]=r[vt]},this),"series"===e&&(this._seriesIndices=o(a.series))}var i=this[vt],a=this._componentsMap,s=[];f(t,function(t,e){null!=t&&(y.hasClass(e)?s.push(e):i[e]=null==i[e]?c.clone(t):c.merge(i[e],t,!0))}),y.topologicalTravel(s,y.getAllClassMainTypes(),e,this)},getTheme:function(){return this._theme},getComponent:function(t,e){var i=this._componentsMap[t];return i?i[e||0]:void 0},queryComponents:function(t){var e=t.mainType;if(!e)return[];var i=t.index,n=t.id,r=t.name,a=this._componentsMap[e];if(!a||!a[ee])return[];var o;if(null!=i)v(i)||(i=[i]),o=d(p(i,function(t){return a[t]}),function(t){return!!t});else if(null!=n){var u=v(n);o=d(a,function(t){return u&&m(n,t.id)>=0||!u&&t.id===n})}else if(null!=r){var c=v(r);o=d(a,function(t){return c&&m(r,t.name)>=0||!c&&t.name===r})}return s(o,t)},findComponents:function(t){function e(t){var e=r+"Index",i=r+"Id",n=r+"Name";return t&&(t.hasOwnProperty(e)||t.hasOwnProperty(i)||t.hasOwnProperty(n))?{mainType:r,index:t[e],id:t[i],name:t[n]}:null}function i(e){return t[ie]?d(e,t[ie]):e}var n=t.query,r=t.mainType,a=e(n),o=a?this.queryComponents(a):this._componentsMap[r];return i(s(o,t))},eachComponent:function(t,e,i){var n=this._componentsMap;if(typeof t===jt)i=e,e=t,f(n,function(t,n){f(t,function(t,r){e.call(i,n,t,r)})});else if(c[tt](t))f(n[t],e,i);else if(g(t)){var r=this.findComponents(t);f(r,e,i)}},getSeriesByName:function(t){var e=this._componentsMap.series;return d(e,function(e){return e.name===t})},getSeriesByIndex:function(t){
  return this._componentsMap.series[t]},getSeriesByType:function(t){var e=this._componentsMap.series;return d(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.series.slice()},eachSeries:function(t,e){u(this),f(this._seriesIndices,function(i){var n=this._componentsMap.series[i];t.call(e,n,i)},this)},eachRawSeries:function(t,e){f(this._componentsMap.series,t,e)},eachSeriesByType:function(t,e,i){u(this),f(this._seriesIndices,function(n){var r=this._componentsMap.series[n];r.subType===t&&e.call(i,r,n)},this)},eachRawSeriesByType:function(t,e,i){return f(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return u(this),c[Kt](this._seriesIndices,t.componentIndex)<0},filterSeries:function(t,e){u(this);var i=d(this._componentsMap.series,t,e);this._seriesIndices=o(i)},restoreData:function(){var t=this._componentsMap;this._seriesIndices=o(t.series);var e=[];f(t,function(t,i){e.push(i)}),y.topologicalTravel(e,y.getAllClassMainTypes(),function(e,i){f(t[e],function(t){t.restoreData()})})}});return x}),e("echarts/ExtensionAPI",[ae,ne],function(t){function e(t){i.each(n,function(e){this[e]=i.bind(t[e],t)},this)}var i=t(ne),n=["getDom","getZr",J,K,"dispatchAction","on","off","getDataURL","getConnectedDataURL",xt,"getOption"];return e}),e("echarts/CoordinateSystem",[ae],function(t){function e(){this._coordinateSystems={},this._coordinateSystemsList=[]}var i={};return e[re]={constructor:e,update:function(t,e){var n={};for(var r in i)n[r]=i[r][Ct](t,e);this._coordinateSystems=n},get:function(t,e){var i=this._coordinateSystems[t];return i?i[e||0]:void 0}},e.register=function(t,e){i[t]=e},e.get=function(t){return i[t]},e}),e("echarts/model/OptionManager",[ae,ne,"../util/model","./Component"],function(t){function e(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newOptionBackup}function i(t,e){var i,n,r=[],a=[],o=t.timeline;if(t.baseOption&&(n=t.baseOption),(o||t.options)&&(n=n||{},r=(t.options||[]).slice()),t.media){n=n||{};var u=t.media;l(u,function(t){t&&t[vt]&&(t.query?a.push(t):i||(i=t))})}return n||(n=t),n.timeline||(n.timeline=o),l([n][Yt](r)[Yt](s.map(a,function(t){return t[vt]})),function(t){l(e,function(e){e(t)})}),{baseOption:n,timelineOptions:r,mediaDefault:i,mediaList:a}}function n(t,e,i){var n={width:e,height:i,aspectratio:e/i},a=!0;return s.each(t,function(t,e){var i=e.match(p);if(i&&i[1]&&i[2]){var o=i[1],s=i[2][qt]();r(n[s],t,o)||(a=!1)}}),a}function r(t,e,i){return"min"===i?t>=e:"max"===i?e>=t:t===e}function a(t,e){return t.join(",")===e.join(",")}function o(t,e){e=e||{},l(e,function(e,i){if(null!=e){var n=t[i];if(c.hasClass(i)){s[Xt](e)||(e=e?[e]:[]);var r=u.mappingToExists(n||[],e);t[i]=f(r,function(t){return t[vt]&&t.exist?d(t.exist,t[vt],!0):t.exist||t[vt]})}else t[i]=d(n,e,!0)}})}var s=t(ne),u=t("../util/model"),c=t("./Component"),l=s.each,h=s.clone,f=s.map,d=s.merge,p=/^(min|max)?(.+)$/;return e[re]={constructor:e,setOption:function(t,e){t=h(t,!0);var n=this._optionBackup,r=this._newOptionBackup=i.call(this,t,e);n?(o(n.baseOption,r.baseOption),r.timelineOptions[ee]&&(n.timelineOptions=r.timelineOptions),r.mediaList[ee]&&(n.mediaList=r.mediaList),r.mediaDefault&&(n.mediaDefault=r.mediaDefault)):this._optionBackup=r},mountOption:function(t){var e=t?this._optionBackup:this._newOptionBackup;return this._timelineOptions=f(e.timelineOptions,h),this._mediaList=f(e.mediaList,h),this._mediaDefault=h(e.mediaDefault),this._currentMediaIndices=[],h(e.baseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i[ee]){var n=t[Q]("timeline");n&&(e=h(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e=this._api[J](),i=this._api[K](),r=this._mediaList,o=this._mediaDefault,s=[],u=[];if(!r[ee]&&!o)return u;for(var c=0,l=r[ee];l>c;c++)n(r[c].query,e,i)&&s.push(c);return!s[ee]&&o&&(s=[-1]),s[ee]&&!a(s,this._currentMediaIndices)&&(u=f(s,function(t){return h(-1===t?o[vt]:r[t][vt])})),this._currentMediaIndices=s,u}},e}),e("echarts/model/Series",[ae,ne,"../util/format","../util/model","./Component"],function(t){var e=t(ne),i=t("../util/format"),n=t("../util/model"),r=t("./Component"),a=i.encodeHTML,o=i.addCommas,s=r[Ft]({type:"series",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,init:function(t,e,i,n){this[ht]=this.componentIndex,this.mergeDefaultAndTheme(t,i),this._dataBeforeProcessed=this.getInitialData(t,i),this._data=this._dataBeforeProcessed.cloneShallow()},mergeDefaultAndTheme:function(t,i){e.merge(t,i.getTheme().get(this.subType)),e.merge(t,this.getDefaultOption()),n.defaultEmphasis(t.label,[it,"show",_t,"distance","formatter"])},mergeOption:function(t,i){t=e.merge(this[vt],t,!0);var n=this.getInitialData(t,i);n&&(this._data=n,this._dataBeforeProcessed=n.cloneShallow())},getInitialData:function(){},getData:function(){return this._data},setData:function(t){this._data=t},getRawData:function(){return this._dataBeforeProcessed},getRawDataArray:function(){return this[vt].data},getDimensionsOnAxis:function(t){return[t]},getCoordDimensionInfo:function(t){var i=this[lt]();return this[$]?null!=t?i.getDimensionInfo(t):e.map(i[Y],i.getDimensionInfo,i):[]},getBaseAxis:function(){var t=this[$];return t&&t.getBaseAxis&&t.getBaseAxis()},formatTooltip:function(t,i){var n=this._data,r=this[ut](t),s=e[Xt](r)?e.map(r,o).join(", "):o(r),u=n[ot](t);return i?a(this.name)+" : "+s:a(this.name)+"<br />"+(u?a(u)+" : "+s:s)},restoreData:function(){this._data=this._dataBeforeProcessed.cloneShallow()}});return e.mixin(s,n.dataFormatMixin),s}),e("zrender/core/guid",[],function(){var t=2311;return function(){return"zr_"+t++}}),e("zrender/mixin/Eventful",[ae,St],function(t){var e=Array[re].slice,i=t(St),n=i[Kt],r=function(){this._$handlers={}};return r[re]={constructor:r,one:function(t,e,i){var r=this._$handlers;return e&&t?(r[t]||(r[t]=[]),n(r[t],t)>=0?this:(r[t].push({h:e,one:!0,ctx:i||this}),this)):this},on:function(t,e,i){var n=this._$handlers;return e&&t?(n[t]||(n[t]=[]),n[t].push({h:e,one:!1,ctx:i||this}),this):this},isSilent:function(t){var e=this._$handlers;return e[t]&&e[t][ee]},off:function(t,e){var i=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],r=0,a=i[t][ee];a>r;r++)i[t][r].h!=e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t][ee]&&delete i[t]}else delete i[t];return this},trigger:function(t){if(this._$handlers[t]){var i=arguments,n=i[ee];n>3&&(i=e.call(i,1));for(var r=this._$handlers[t],a=r[ee],o=0;a>o;){switch(n){case 1:r[o].h.call(r[o].ctx);break;case 2:r[o].h.call(r[o].ctx,i[1]);break;case 3:r[o].h.call(r[o].ctx,i[1],i[2]);break;default:r[o].h.apply(r[o].ctx,i)}r[o].one?(r[j](o,1),a--):o++}}return this},triggerWithContext:function(t){if(this._$handlers[t]){var i=arguments,n=i[ee];n>4&&(i=e.call(i,1,i[ee]-1));for(var r=i[i[ee]-1],a=this._$handlers[t],o=a[ee],s=0;o>s;){switch(n){case 1:a[s].h.call(r);break;case 2:a[s].h.call(r,i[1]);break;case 3:a[s].h.call(r,i[1],i[2]);break;default:a[s].h.apply(r,i)}a[s].one?(a[j](s,1),o--):s++}}return this}},r}),e("zrender/mixin/Transformable",[ae,"../core/matrix","../core/vector"],function(t){function e(t){return t>a||-a>t}var i=t("../core/matrix"),n=t("../core/vector"),r=i.identity,a=5e-5,o=function(t){t=t||{},t[it]||(this[it]=[0,0]),null==t[U]&&(this[U]=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},s=o[re];s[X]=null,s.needLocalTransform=function(){return e(this[U])||e(this[it][0])||e(this[it][1])||e(this.scale[0]-1)||e(this.scale[1]-1)},s.updateTransform=function(){var t=this[Z],e=t&&t[X],n=this.needLocalTransform(),a=this[X];return n||e?(a=a||i[Ct](),n?this[H](a):r(a),e&&(n?i.mul(a,t[X],a):i.copy(a,t[X])),this[X]=a,this.invTransform=this.invTransform||i[Ct](),void i.invert(this.invTransform,a)):void(a&&r(a))},s[H]=function(t){t=t||[],r(t);var e=this.origin,n=this.scale,a=this[U],o=this[it];return e&&(t[4]-=e[0],t[5]-=e[1]),i.scale(t,t,n),a&&i.rotate(t,t,a),e&&(t[4]+=e[0],t[5]+=e[1]),t[4]+=o[0],t[5]+=o[1],t},s.setTransform=function(t){var e=this[X];e&&t[X](e[0],e[1],e[2],e[3],e[4],e[5])};var u=[];return s.decomposeTransform=function(){if(this[X]){var t=this[Z],n=this[X];t&&t[X]&&(i.mul(u,t.invTransform,n),n=u);var r=n[0]*n[0]+n[1]*n[1],a=n[2]*n[2]+n[3]*n[3],o=this[it],s=this.scale;e(r-1)&&(r=Math.sqrt(r)),e(a-1)&&(a=Math.sqrt(a)),n[0]<0&&(r=-r),n[3]<0&&(a=-a),o[0]=n[4],o[1]=n[5],s[0]=r,s[1]=a,this[U]=Math.atan2(-n[1]/a,n[0]/r)}},s.transformCoordToLocal=function(t,e){var i=[t,e],r=this.invTransform;return r&&n[kt](i,i,r),i},s.transformCoordToGlobal=function(t,e){var i=[t,e],r=this[X];return r&&n[kt](i,i,r),i},o}),e("zrender/animation/easing",[],function(){var t={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),-(i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?-.5*(i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(e){return 1-t.bounceOut(1-e)},bounceOut:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(e){return.5>e?.5*t.bounceIn(2*e):.5*t.bounceOut(2*e-1)+.5}};return t}),e("zrender/animation/Clip",[ae,"./easing"],function(t){function e(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null==t.loop?!1:t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart}var i=t("./easing");return e[re]={constructor:e,step:function(t){this._initialized||(this._startTime=(new Date).getTime()+this._delay,this._initialized=!0);var e=(t-this._startTime)/this._life;if(!(0>e)){e=Math.min(e,1);var n=this.easing,r=typeof n==Qt?i[n]:n,a=typeof r===jt?r(e):e;return this.fire("frame",a),1==e?this.loop?(this.restart(),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(){var t=(new Date).getTime(),e=(t-this._startTime)%this._life;this._startTime=(new Date).getTime()-e+this.gap,this._needsRemove=!1},fire:function(t,e){t="on"+t,this[t]&&this[t](this._target,e)}},e}),e("zrender/tool/color",[ae],function(t){function e(t){return t=Math.round(t),0>t?0:t>255?255:t}function i(t){return t=Math.round(t),0>t?0:t>360?360:t}function n(t){return 0>t?0:t>1?1:t}function r(t){return e(t[ee]&&"%"===t.charAt(t[ee]-1)?parseFloat(t)/100*255:parseInt(t,10))}function a(t){return n(t[ee]&&"%"===t.charAt(t[ee]-1)?parseFloat(t)/100:parseFloat(t))}function o(t,e,i){return 0>i?i+=1:i>1&&(i-=1),1>6*i?t+(e-t)*i*6:1>2*i?e:2>3*i?t+(e-t)*(2/3-i)*6:t}function s(t,e,i){return t+(e-t)*i}function u(t){if(t){t+="";var e=t[Ut](/ /g,"")[qt]();if(e in _)return _[e].slice();if("#"!==e.charAt(0)){var i=e[Kt]("("),n=e[Kt](")");if(-1!==i&&n+1===e[ee]){var o=e.substr(0,i),s=e.substr(i+1,n-(i+1)).split(","),u=1;switch(o){case"rgba":if(4!==s[ee])return;u=a(s.pop());case"rgb":if(3!==s[ee])return;return[r(s[0]),r(s[1]),r(s[2]),u];case"hsla":if(4!==s[ee])return;return s[3]=a(s[3]),c(s);case"hsl":if(3!==s[ee])return;return c(s);default:return}}}else{if(4===e[ee]){var l=parseInt(e.substr(1),16);if(!(l>=0&&4095>=l))return;return[(3840&l)>>4|(3840&l)>>8,240&l|(240&l)>>4,15&l|(15&l)<<4,1]}if(7===e[ee]){var l=parseInt(e.substr(1),16);if(!(l>=0&&16777215>=l))return;return[(16711680&l)>>16,(65280&l)>>8,255&l,1]}}}}function c(t){var i=(parseFloat(t[0])%360+360)%360/360,n=a(t[1]),r=a(t[2]),s=.5>=r?r*(n+1):r+n-r*n,u=2*r-s,c=[e(255*o(u,s,i+1/3)),e(255*o(u,s,i)),e(255*o(u,s,i-1/3))];return 4===t[ee]&&(c[3]=t[3]),c}function l(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(n,r,a),s=Math.max(n,r,a),u=s-o,c=(s+o)/2;if(0===u)e=0,i=0;else{i=.5>c?u/(s+o):u/(2-s-o);var l=((s-n)/6+u/2)/u,h=((s-r)/6+u/2)/u,f=((s-a)/6+u/2)/u;n===s?e=f-h:r===s?e=1/3+l-f:a===s&&(e=2/3+h-l),0>e&&(e+=1),e>1&&(e-=1)}var d=[360*e,i,c];return null!=t[3]&&d.push(t[3]),d}}function h(t,e){var i=u(t);if(i){for(var n=0;3>n;n++)0>e?i[n]=i[n]*(1-e)|0:i[n]=(255-i[n])*e+i[n]|0;return y(i,4===i[ee]?"rgba":"rgb")}}function f(t,e){var i=u(t);return i?((1<<24)+(i[0]<<16)+(i[1]<<8)+ +i[2]).toString(16).slice(1):void 0}function d(t,i,n){if(i&&i[ee]&&t>=0&&1>=t){n=n||[0,0,0,0];var r=t*(i[ee]-1),a=Math.floor(r),o=Math.ceil(r),u=i[a],c=i[o],l=r-a;return n[0]=e(s(u[0],c[0],l)),n[1]=e(s(u[1],c[1],l)),n[2]=e(s(u[2],c[2],l)),n[3]=e(s(u[3],c[3],l)),n}}function p(t,i,r){if(i&&i[ee]&&t>=0&&1>=t){var a=t*(i[ee]-1),o=Math.floor(a),c=Math.ceil(a),l=u(i[o]),h=u(i[c]),f=a-o,d=y([e(s(l[0],h[0],f)),e(s(l[1],h[1],f)),e(s(l[2],h[2],f)),n(s(l[3],h[3],f))],"rgba");return r?{color:d,leftIndex:o,rightIndex:c,value:a}:d}}function v(t,e){if(!(2!==t[ee]||t[1]<t[0])){for(var i=p(t[0],e,!0),n=p(t[1],e,!0),r=[{color:i.color,offset:0}],a=n.value-i.value,o=Math.max(i.value,i.rightIndex),s=Math.min(n.value,n.leftIndex),u=o;a>0&&s>=u;u++)r.push({color:e[u],offset:(u-i.value)/a});return r.push({color:n.color,offset:1}),r}}function m(t,e,n,r){return t=u(t),t?(t=l(t),null!=e&&(t[0]=i(e)),null!=n&&(t[1]=a(n)),null!=r&&(t[2]=a(r)),y(c(t),"rgba")):void 0}function g(t,e){return t=u(t),t&&null!=e?(t[3]=n(e),y(t,"rgba")):void 0}function y(t,e){return("rgb"===e||"hsv"===e||"hsl"===e)&&(t=t.slice(0,3)),e+"("+t.join(",")+")"}var _={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};return{parse:u,lift:h,toHex:f,fastMapToColor:d,mapToColor:p,mapIntervalToColor:v,modifyHSL:m,modifyAlpha:g,stringify:y}}),e("zrender/animation/Animator",[ae,"./Clip","../tool/color",St],function(t){function e(t,e){return t[e]}function i(t,e,i){t[e]=i}function n(t,e,i){return(e-t)*i+t}function r(t,e,i){return i>.5?e:t}function a(t,e,i,r,a){var o=t[ee];if(1==a)for(var s=0;o>s;s++)r[s]=n(t[s],e[s],i);else for(var u=t[0][ee],s=0;o>s;s++)for(var c=0;u>c;c++)r[s][c]=n(t[s][c],e[s][c],i)}function o(t,e,i){var n=t[ee],r=e[ee];if(n!==r){var a=n>r;if(a)t[ee]=r;else for(var o=n;r>o;o++)t.push(1===i?e[o]:g.call(e[o]))}}function s(t,e,i){if(t===e)return!0;var n=t[ee];if(n!==e[ee])return!1;if(1===i){for(var r=0;n>r;r++)if(t[r]!==e[r])return!1}else for(var a=t[0][ee],r=0;n>r;r++)for(var o=0;a>o;o++)if(t[r][o]!==e[r][o])return!1;return!0}function u(t,e,i,n,r,a,o,s,u){var l=t[ee];if(1==u)for(var h=0;l>h;h++)s[h]=c(t[h],e[h],i[h],n[h],r,a,o);else for(var f=t[0][ee],h=0;l>h;h++)for(var d=0;f>d;d++)s[h][d]=c(t[h][d],e[h][d],i[h][d],n[h][d],r,a,o)}function c(t,e,i,n,r,a,o){var s=.5*(i-t),u=.5*(n-e);return(2*(e-i)+s+u)*o+(-3*(e-i)-2*s-u)*a+s*r+e}function l(t){if(m(t)){var e=t[ee];if(m(t[0])){for(var i=[],n=0;e>n;n++)i.push(g.call(t[n]));return i}return g.call(t)}return t}function h(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function f(t,e,i,l,f){var v=t._getter,g=t._setter,y="spline"===e,_=l[ee];if(_){var x,b=l[0].value,w=m(b),M=!1,S=!1,C=w&&m(b[0])?2:1;l.sort(function(t,e){return t.time-e.time}),x=l[_-1].time;for(var L=[],k=[],A=l[0].value,T=!0,z=0;_>z;z++){L.push(l[z].time/x);var P=l[z].value;if(w&&s(P,A,C)||!w&&P===A||(T=!1),A=P,typeof P==Qt){var D=p.parse(P);D?(P=D,M=!0):S=!0}k.push(P)}if(!T){if(w){for(var I=k[_-1],z=0;_-1>z;z++)o(k[z],I,C);o(v(t._target,f),I,C)}var O,B,R,E,N,F,G=0,q=0;if(M)var V=[0,0,0,0];var W=function(t,e){var i;if(q>e){for(O=Math.min(G+1,_-1),i=O;i>=0&&!(L[i]<=e);i--);i=Math.min(i,_-2)}else{for(i=G;_>i&&!(L[i]>e);i++);i=Math.min(i-1,_-2)}G=i,q=e;var o=L[i+1]-L[i];if(0!==o)if(B=(e-L[i])/o,y)if(E=k[i],R=k[0===i?i:i-1],N=k[i>_-2?_-1:i+1],F=k[i>_-3?_-1:i+2],w)u(R,E,N,F,B,B*B,B*B*B,v(t,f),C);else{var s;if(M)s=u(R,E,N,F,B,B*B,B*B*B,V,1),s=h(V);else{if(S)return r(E,N,B);s=c(R,E,N,F,B,B*B,B*B*B)}g(t,f,s)}else if(w)a(k[i],k[i+1],B,v(t,f),C);else{var s;if(M)a(k[i],k[i+1],B,V,1),s=h(V);else{if(S)return r(k[i],k[i+1],B);s=n(k[i],k[i+1],B)}g(t,f,s)}},H=new d({target:t._target,life:x,loop:t._loop,delay:t._delay,onframe:W,ondestroy:i});return e&&"spline"!==e&&(H.easing=e),H}}}var d=t("./Clip"),p=t("../tool/color"),v=t(St),m=v.isArrayLike,g=Array[re].slice,y=function(t,n,r,a){this._tracks={},this._target=t,this._loop=n||!1,this._getter=r||e,this._setter=a||i,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};return y[re]={when:function(t,e){var i=this._tracks;for(var n in e){if(!i[n]){i[n]=[];var r=this._getter(this._target,n);if(null==r)continue;0!==t&&i[n].push({time:0,value:l(r)})}i[n].push({time:t,value:e[n]})}return this},during:function(t){return this._onframeList.push(t),this},_doneCallback:function(){this._tracks={},this._clipList[ee]=0;for(var t=this._doneList,e=t[ee],i=0;e>i;i++)t[i].call(this)},start:function(t){var e,i=this,n=0,r=function(){n--,n||i._doneCallback()};for(var a in this._tracks){var o=f(this,t,r,this._tracks[a],a);o&&(this._clipList.push(o),n++,this[W]&&this[W].addClip(o),e=o)}if(e){var s=e.onframe;e.onframe=function(t,e){s(t,e);for(var n=0;n<i._onframeList[ee];n++)i._onframeList[n](t,e)}}return n||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,i=this[W],n=0;n<e[ee];n++){var r=e[n];t&&r.onframe(this._target,1),i&&i.removeClip(r)}e[ee]=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}},y}),e("zrender/config",[],function(){var t=1;typeof window!==zt&&(t=Math.max(window.devicePixelRatio||1,1));var e={debugMode:0,devicePixelRatio:t};return e}),e("zrender/core/log",[ae,"../config"],function(t){var e=t("../config");return function(){if(0!==e.debugMode)if(1==e.debugMode)for(var t in arguments)throw new Error(arguments[t]);else if(e.debugMode>1)for(var t in arguments)console.log(arguments[t])}}),e("zrender/mixin/Animatable",[ae,"../animation/Animator",St,"../core/log"],function(t){var e=t("../animation/Animator"),i=t(St),n=i[tt],r=i.isFunction,a=i[nt],o=t("../core/log"),s=function(){this.animators=[]};return s[re]={constructor:s,animate:function(t,n){var r,a=!1,s=this,u=this.__zr;if(t){var c=t.split("."),l=s;a="shape"===c[0];for(var h=0,f=c[ee];f>h;h++)l&&(l=l[c[h]]);l&&(r=l)}else r=s;if(!r)return void o('Property "'+t+'" is not existed in element '+s.id);var d=s.animators,p=new e(r,n);return p.during(function(t){s.dirty(a)}).done(function(){d[j](i[Kt](d,p),1)}),d.push(p),u&&u[W].addAnimator(p),p},stopAnimation:function(t){for(var e=this.animators,i=e[ee],n=0;i>n;n++)e[n].stop(t);return e[ee]=0,this},animateTo:function(t,e,i,a,o){function s(){c--,c||o&&o()}n(i)?(o=a,a=i,i=0):r(a)?(o=a,a="linear",i=0):r(i)?(o=i,i=0):r(e)?(o=e,e=500):e||(e=500),this[V](),this._animateToShallow("",this,t,e,i,a,o);var u=this.animators.slice(),c=u[ee];c||o&&o();for(var l=0;l<u[ee];l++)u[l].done(s).start(a)},_animateToShallow:function(t,e,n,r,o){var s={},u=0;for(var c in n)if(null!=e[c])a(n[c])&&!i.isArrayLike(n[c])?this._animateToShallow(t?t+"."+c:c,e[c],n[c],r,o):(s[c]=n[c],u++);else if(null!=n[c])if(t){var l={};l[t]={},l[t][c]=n[c],this.attr(l)}else this.attr(c,n[c]);return u>0&&this[q](t,!1).when(null==r?500:r,s).delay(o||0),this}},s}),e("zrender/Element",[ae,"./core/guid","./mixin/Eventful","./mixin/Transformable","./mixin/Animatable","./core/util"],function(t){var e=t("./core/guid"),i=t("./mixin/Eventful"),n=t("./mixin/Transformable"),r=t("./mixin/Animatable"),a=t("./core/util"),o=function(t){n.call(this,t),i.call(this,t),r.call(this,t),this.id=t.id||e()};return o[re]={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this[X];i||(i=this[X]=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.dirty()},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,e){},attrKV:function(t,e){if(t===it||"scale"===t||"origin"===t){if(e){var i=this[t];i||(i=this[t]=[]),i[0]=e[0],i[1]=e[1]}}else this[t]=e},hide:function(){this[G]=!0,this.__zr&&this.__zr[F]()},show:function(){this[G]=!1,this.__zr&&this.__zr[F]()},attr:function(t,e){if(typeof t===Qt)this.attrKV(t,e);else if(a[nt](t))for(var i in t)t.hasOwnProperty(i)&&this.attrKV(i,t[i]);return this.dirty(),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty()},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty())},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e[ee];i++)t[W].addAnimator(e[i]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e[ee];i++)t[W].removeAnimator(e[i]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},a.mixin(o,r),a.mixin(o,n),a.mixin(o,i),o}),e("zrender/container/Group",[ae,St,"../Element","../core/BoundingRect"],function(t){var e=t(St),i=t("../Element"),n=t("../core/BoundingRect"),r=function(t){t=t||{},i.call(this,t);for(var e in t)this[e]=t[e];this._children=[],this.__storage=null,this[N]=!0};return r[re]={constructor:r,type:"group",children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,i=0;i<e[ee];i++)if(e[i].name===t)return e[i]},childCount:function(){return this._children[ee]},add:function(t){return t&&t!==this&&t[Z]!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t[Z]!==this&&e&&e[Z]===this){var i=this._children,n=i[Kt](e);n>=0&&(i[j](n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t[Z]&&t[Z][E](t),t[Z]=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e.addToMap(t),t instanceof r&&t.addChildrenToStorage(e)),i&&i[F]()},remove:function(t){var i=this.__zr,n=this.__storage,a=this._children,o=e[Kt](a,t);return 0>o?this:(a[j](o,1),t[Z]=null,n&&(n.delFromMap(t.id),t instanceof r&&t.delChildrenFromStorage(n)),i&&i[F](),this)},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e<i[ee];e++)t=i[e],n&&(n.delFromMap(t.id),t instanceof r&&t.delChildrenFromStorage(n)),t[Z]=null;return i[ee]=0,this},eachChild:function(t,e){for(var i=this._children,n=0;n<i[ee];n++){var r=i[n];t.call(e,r,n)}return this},traverse:function(t,e){for(var i=0;i<this._children[ee];i++){var n=this._children[i];t.call(e,n),"group"===n.type&&n[R](t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children[ee];e++){var i=this._children[e];t.addToMap(i),i instanceof r&&i.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children[ee];e++){var i=this._children[e];t.delFromMap(i.id),i instanceof r&&i.delChildrenFromStorage(t)}},dirty:function(){return this[N]=!0,this.__zr&&this.__zr[F](),this},getBoundingRect:function(t){for(var e=null,i=new n(0,0,0,0),r=t||this._children,a=[],o=0;o<r[ee];o++){var s=r[o];if(!s[G]&&!s.invisible){var u=s[yt](),c=s[H](a);c?(i.copy(u),i[kt](c),e=e||i.clone(),e.union(i)):(e=e||u.clone(),e.union(u))}}return e||i}},e[Nt](r,i),r}),e("echarts/view/Component",[ae,"zrender/container/Group","../util/component",mt],function(t){var e=t("zrender/container/Group"),i=t("../util/component"),n=t(mt),r=function(){this.group=new e,this.uid=i.getUID("viewComponent")};r[re]={constructor:r,init:function(t,e){},render:function(t,e,i,n){},dispose:function(){}};var a=r[re];return a.updateView=a.updateLayout=a.updateVisual=function(t,e,i,n){},n[Gt](r),n[Et](r,{registerWhenExtend:!0}),r}),e("echarts/view/Chart",[ae,"zrender/container/Group","../util/component",mt],function(t){function e(){this.group=new r,this.uid=a.getUID("viewChart")}function i(t,e){if(t&&(t[O](e),"group"===t.type))for(var n=0;n<t.childCount();n++)i(t[et](n),e)}function n(t,e,n){if(null!=e[I]){var r=t[D](e[I]);i(r,n)}else if(e.name){var a=t.indexOfName(e.name),r=t[D](a);i(r,n)}else t[P](function(t){i(t,n)})}var r=t("zrender/container/Group"),a=t("../util/component"),o=t(mt);e[re]={type:"chart",init:function(t,e){},render:function(t,e,i,n){},highlight:function(t,e,i,r){n(t[lt](),r,dt)},downplay:function(t,e,i,r){n(t[lt](),r,ft)},remove:function(t,e){this.group[B]()},dispose:function(){}};var s=e[re];return s.updateView=s.updateLayout=s.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},o[Gt](e),o[Et](e,{registerWhenExtend:!0}),e}),e("zrender/graphic/Style",[ae],function(t){var e=["lineCap","lineJoin","miterLimit","shadowBlur","shadowOffsetX","shadowOffsetY","shadowColor"],i=function(t){this.extendFrom(t)};i[re]={constructor:i,fill:"#000000",stroke:null,opacity:1,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,textFill:"#000",textStroke:null,textPosition:"inside",textBaseline:null,textAlign:null,textDistance:5,textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,bind:function(t,i){for(var n=this.fill,r=this[It],a=0;a<e[ee];a++){var o=e[a];null!=this[o]&&(t[o]=this[o])}if(null!=r){var s=this[Ot];t[Ot]=s/(this.strokeNoScale&&i&&i.getLineScale?i.getLineScale():1)}null!=n&&(t.fillStyle=n.canvasGradient?n.canvasGradient:n),null!=r&&(t.strokeStyle=r.canvasGradient?r.canvasGradient:r),null!=this[Dt]&&(t.globalAlpha=this[Dt])},extendFrom:function(t,e){if(t){var i=this;for(var n in t)!t.hasOwnProperty(n)||!e&&i.hasOwnProperty(n)||(i[n]=t[n])}},set:function(t,e){typeof t===Qt?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t}};var n,r,a=i[re];for(r=0;r<e[ee];r++)n=e[r],n in a||(a[n]=null);return i}),e("zrender/graphic/mixin/RectText",[ae,"../../contain/text","../../core/BoundingRect"],function(t){function e(t,e){return typeof t===Qt?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function i(t,e){t[X](e[0],e[1],e[2],e[3],e[4],e[5])}var n=t("../../contain/text"),r=t("../../core/BoundingRect"),a=new r,o=function(){};return o[re]={constructor:o,drawRectText:function(t,r,o){var s=this.style,u=s.text;if(null!=u&&(u+=""),u){var c,l,h=s.textPosition,f=s.textDistance,d=s[z],p=s.textFont||s.font,v=s[T];o=o||n[yt](u,p,d,v);var m=this[X],g=this.invTransform;if(m&&(a.copy(r),a[kt](m),r=a,i(t,g)),h instanceof Array)c=r.x+e(h[0],r.width),l=r.y+e(h[1],r[Lt]),d=d||"left",v=v||"top";else{var y=n.adjustTextPositionOnRect(h,r,o,f);c=y.x,l=y.y,d=d||y[z],v=v||y[T]}t[z]=d,t[T]=v;var _=s.textFill,x=s.textStroke;_&&(t.fillStyle=_),x&&(t.strokeStyle=x),t.font=p,t.shadowColor=s.textShadowColor,t.shadowBlur=s.textShadowBlur,t.shadowOffsetX=s.textShadowOffsetX,t.shadowOffsetY=s.textShadowOffsetY;for(var b=u.split("\n"),w=0;w<b[ee];w++)_&&t.fillText(b[w],c,l),x&&t.strokeText(b[w],c,l),l+=o.lineHeight;m&&i(t,m)}}},o}),e("zrender/graphic/Displayable",[ae,St,"./Style","../Element","./mixin/RectText"],function(t){
  function e(t){t=t||{},r.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new n(t.style),this._rect=null,this.__clipPaths=[]}var i=t(St),n=t("./Style"),r=t("../Element"),a=t("./mixin/RectText");return e[re]={constructor:e,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,beforeBrush:function(t){},afterBrush:function(t){},brush:function(t){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this[yt]();return n[A](i[0],i[1])},dirty:function(){this[N]=!0,this._rect=null,this.__zr&&this.__zr[F]()},animateStyle:function(t){return this[q]("style",t)},attrKV:function(t,e){"style"!==t?r[re].attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(),this}},i[Nt](e,r),i.mixin(e,a),e}),e("zrender/core/curve",[ae,"./vector"],function(t){function e(t){return t>-x&&x>t}function i(t){return t>x||-x>t}function n(t,e,i,n,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*n+3*a*i)}function r(t,e,i,n,r){var a=1-r;return 3*(((e-t)*a+2*(i-e)*r)*a+(n-i)*r*r)}function a(t,i,n,r,a,o){var s=r+3*(i-n)-t,u=3*(n-2*i+t),c=3*(i-t),l=t-a,h=u*u-3*s*c,f=u*c-9*s*l,d=c*c-3*u*l,p=0;if(e(h)&&e(f))if(e(u))o[0]=0;else{var v=-c/u;v>=0&&1>=v&&(o[p++]=v)}else{var m=f*f-4*h*d;if(e(m)){var g=f/h,v=-u/s+g,x=-g/2;v>=0&&1>=v&&(o[p++]=v),x>=0&&1>=x&&(o[p++]=x)}else if(m>0){var M=_(m),S=h*u+1.5*s*(-f+M),C=h*u+1.5*s*(-f-M);S=0>S?-y(-S,w):y(S,w),C=0>C?-y(-C,w):y(C,w);var v=(-u-(S+C))/(3*s);v>=0&&1>=v&&(o[p++]=v)}else{var L=(2*h*u-3*s*f)/(2*_(h*h*h)),k=Math.acos(L)/3,A=_(h),T=Math.cos(k),v=(-u-2*A*T)/(3*s),x=(-u+A*(T+b*Math.sin(k)))/(3*s),z=(-u+A*(T-b*Math.sin(k)))/(3*s);v>=0&&1>=v&&(o[p++]=v),x>=0&&1>=x&&(o[p++]=x),z>=0&&1>=z&&(o[p++]=z)}}return p}function o(t,n,r,a,o){var s=6*r-12*n+6*t,u=9*n+3*a-3*t-9*r,c=3*n-3*t,l=0;if(e(u)){if(i(s)){var h=-c/s;h>=0&&1>=h&&(o[l++]=h)}}else{var f=s*s-4*u*c;if(e(f))o[0]=-s/(2*u);else if(f>0){var d=_(f),h=(-s+d)/(2*u),p=(-s-d)/(2*u);h>=0&&1>=h&&(o[l++]=h),p>=0&&1>=p&&(o[l++]=p)}}return l}function s(t,e,i,n,r,a){var o=(e-t)*r+t,s=(i-e)*r+e,u=(n-i)*r+i,c=(s-o)*r+o,l=(u-s)*r+s,h=(l-c)*r+c;a[0]=t,a[1]=o,a[2]=c,a[3]=h,a[4]=h,a[5]=l,a[6]=u,a[7]=n}function u(t,e,i,r,a,o,s,u,c,l,h){var f,d,p,v,m,y=.005,b=1/0;M[0]=c,M[1]=l;for(var w=0;1>w;w+=.05)S[0]=n(t,i,a,s,w),S[1]=n(e,r,o,u,w),v=g(M,S),b>v&&(f=w,b=v);b=1/0;for(var L=0;32>L&&!(x>y);L++)d=f-y,p=f+y,S[0]=n(t,i,a,s,d),S[1]=n(e,r,o,u,d),v=g(S,M),d>=0&&b>v?(f=d,b=v):(C[0]=n(t,i,a,s,p),C[1]=n(e,r,o,u,p),m=g(C,M),1>=p&&b>m?(f=p,b=m):y*=.5);return h&&(h[0]=n(t,i,a,s,f),h[1]=n(e,r,o,u,f)),_(b)}function c(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function l(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function h(t,n,r,a,o){var s=t-2*n+r,u=2*(n-t),c=t-a,l=0;if(e(s)){if(i(u)){var h=-c/u;h>=0&&1>=h&&(o[l++]=h)}}else{var f=u*u-4*s*c;if(e(f)){var h=-u/(2*s);h>=0&&1>=h&&(o[l++]=h)}else if(f>0){var d=_(f),h=(-u+d)/(2*s),p=(-u-d)/(2*s);h>=0&&1>=h&&(o[l++]=h),p>=0&&1>=p&&(o[l++]=p)}}return l}function f(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function d(t,e,i,n,r){var a=(e-t)*n+t,o=(i-e)*n+e,s=(o-a)*n+a;r[0]=t,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=i}function p(t,e,i,n,r,a,o,s,u){var l,h=.005,f=1/0;M[0]=o,M[1]=s;for(var d=0;1>d;d+=.05){S[0]=c(t,i,r,d),S[1]=c(e,n,a,d);var p=g(M,S);f>p&&(l=d,f=p)}f=1/0;for(var v=0;32>v&&!(x>h);v++){var m=l-h,y=l+h;S[0]=c(t,i,r,m),S[1]=c(e,n,a,m);var p=g(S,M);if(m>=0&&f>p)l=m,f=p;else{C[0]=c(t,i,r,y),C[1]=c(e,n,a,y);var b=g(C,M);1>=y&&f>b?(l=y,f=b):h*=.5}}return u&&(u[0]=c(t,i,r,l),u[1]=c(e,n,a,l)),_(f)}var v=t("./vector"),m=v[Ct],g=v.distSquare,y=Math.pow,_=Math.sqrt,x=1e-4,b=_(3),w=1/3,M=m(),S=m(),C=m();return{cubicAt:n,cubicDerivativeAt:r,cubicRootAt:a,cubicExtrema:o,cubicSubdivide:s,cubicProjectPoint:u,quadraticAt:c,quadraticDerivativeAt:l,quadraticRootAt:h,quadraticExtremum:f,quadraticSubdivide:d,quadraticProjectPoint:p}}),e("zrender/core/bbox",[ae,"./vector","./curve"],function(t){var e=t("./vector"),i=t("./curve"),n={},r=Math.min,a=Math.max,o=Math.sin,s=Math.cos,u=e[Ct](),c=e[Ct](),l=e[Ct](),h=2*Math.PI;return n.fromPoints=function(t,e,i){if(0!==t[ee]){var n,o=t[0],s=o[0],u=o[0],c=o[1],l=o[1];for(n=1;n<t[ee];n++)o=t[n],s=r(s,o[0]),u=a(u,o[0]),c=r(c,o[1]),l=a(l,o[1]);e[0]=s,e[1]=c,i[0]=u,i[1]=l}},n.fromLine=function(t,e,i,n,o,s){o[0]=r(t,i),o[1]=r(e,n),s[0]=a(t,i),s[1]=a(e,n)},n.fromCubic=function(t,e,n,o,s,u,c,l,h,f){var d,p,v,m,g,y=[],_=[],x=i.cubicExtrema,b=i.cubicAt,w=x(t,n,s,c,y);for(g=0;w>g;g++)y[g]=b(t,n,s,c,y[g]);for(w=x(e,o,u,l,_),g=0;w>g;g++)_[g]=b(e,o,u,l,_[g]);y.push(t,c),_.push(e,l),d=r.apply(null,y),p=a.apply(null,y),v=r.apply(null,_),m=a.apply(null,_),h[0]=d,h[1]=v,f[0]=p,f[1]=m},n.fromQuadratic=function(t,e,n,o,s,u,c,l){var h=i.quadraticExtremum,f=i.quadraticAt,d=a(r(h(t,n,s),1),0),p=a(r(h(e,o,u),1),0),v=f(t,n,s,d),m=f(e,o,u,p);c[0]=r(t,s,v),c[1]=r(e,u,m),l[0]=a(t,s,v),l[1]=a(e,u,m)},n.fromArc=function(t,i,n,r,a,f,d,p,v){var m=e.min,g=e.max,y=Math.abs(a-f);if(1e-4>y%h&&y>1e-4)return p[0]=t-n,p[1]=i-r,v[0]=t+n,void(v[1]=i+r);if(u[0]=s(a)*n+t,u[1]=o(a)*r+i,c[0]=s(f)*n+t,c[1]=o(f)*r+i,m(p,u,c),g(v,u,c),a%=h,0>a&&(a+=h),f%=h,0>f&&(f+=h),a>f&&!d?f+=h:f>a&&d&&(a+=h),d){var _=f;f=a,a=_}for(var x=0;f>x;x+=Math.PI/2)x>a&&(l[0]=s(x)*n+t,l[1]=o(x)*r+i,m(p,l,p),g(v,l,v))},n}),e("zrender/core/PathProxy",[ae,"./curve","./vector","./bbox","./BoundingRect"],function(t){var e=t("./curve"),i=t("./vector"),n=t("./bbox"),r=t("./BoundingRect"),a={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},o=[],s=[],u=[],c=[],l=Math.min,h=Math.max,f=Math.cos,d=Math.sin,p=Math.sqrt,v=typeof Float32Array!=zt,m=function(){this.data=[],this._len=0,this._ctx=null,this._xi=0,this._yi=0,this._x0=0,this._y0=0};return m[re]={constructor:m,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t[k](),this._len=0,this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(a.M,t,e),this._ctx&&this._ctx[L](t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){return this.addData(a.L,t,e),this._ctx&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx[C](t,e)),this._xi=t,this._yi=e,this},bezierCurveTo:function(t,e,i,n,r,o){return this.addData(a.C,t,e,i,n,r,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,i,n,r,o):this._ctx[S](t,e,i,n,r,o)),this._xi=r,this._yi=o,this},quadraticCurveTo:function(t,e,i,n){return this.addData(a.Q,t,e,i,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,i,n):this._ctx.quadraticCurveTo(t,e,i,n)),this._xi=i,this._yi=n,this},arc:function(t,e,i,n,r,o){return this.addData(a.A,t,e,i,i,n,r-n,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,r,o),this._xi=f(r)*i+t,this._xi=d(r)*i+t,this},arcTo:function(t,e,i,n,r){return this._ctx&&this._ctx.arcTo(t,e,i,n,r),this},rect:function(t,e,i,n){return this._ctx&&this._ctx.rect(t,e,i,n),this.addData(a.R,t,e,i,n),this},closePath:function(){this.addData(a.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,i),t[M]()),this._xi=e,this._yi=i,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t[It](),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;i<t[ee];i++)e+=t[i];this._dashSum=e}return this},setLineDashOffset:function(t){return this._dashOffset=t,this},len:function(){return this._len},setData:function(t){var e=t[ee];this.data&&this.data[ee]==e||!v||(this.data=new Float32Array(e));for(var i=0;e>i;i++)this.data[i]=t[i];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t[ee],i=0,n=this._len,r=0;e>r;r++)i+=t[r].len();v&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(var r=0;e>r;r++)for(var a=t[r].data,o=0;o<a[ee];o++)this.data[n++]=a[o];this._len=n},addData:function(t){var e=this.data;this._len+arguments[ee]>e[ee]&&(this._expandData(),e=this.data);for(var i=0;i<arguments[ee];i++)e[this._len++]=arguments[i];this._prevCmd=t},_expandData:function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(t,e){var i,n,r=this._dashSum,a=this._dashOffset,o=this._lineDash,s=this._ctx,u=this._xi,c=this._yi,f=t-u,d=e-c,v=p(f*f+d*d),m=u,g=c,y=o[ee];for(f/=v,d/=v,0>a&&(a=r+a),a%=r,m-=a*f,g-=a*d;f>=0&&t>=m||0>f&&m>t;)n=this._dashIdx,i=o[n],m+=f*i,g+=d*i,this._dashIdx=(n+1)%y,f>0&&u>m||0>f&&m>u||s[n%2?L:C](f>=0?l(m,t):h(m,t),d>=0?l(g,e):h(g,e));f=m-t,d=g-e,this._dashOffset=-p(f*f+d*d)},_dashedBezierTo:function(t,i,n,r,a,o){var s,u,c,l,h,f=this._dashSum,d=this._dashOffset,v=this._lineDash,m=this._ctx,g=this._xi,y=this._yi,_=e.cubicAt,x=0,b=this._dashIdx,w=v[ee],M=0;for(0>d&&(d=f+d),d%=f,s=0;1>s;s+=.1)u=_(g,t,n,a,s+.1)-_(g,t,n,a,s),c=_(y,i,r,o,s+.1)-_(y,i,r,o,s),x+=p(u*u+c*c);for(;w>b&&(M+=v[b],!(M>d));b++);for(s=(M-d)/x;1>=s;)l=_(g,t,n,a,s),h=_(y,i,r,o,s),b%2?m[L](l,h):m[C](l,h),s+=v[b]/x,b=(b+1)%w;b%2!==0&&m[C](a,o),u=a-l,c=o-h,this._dashOffset=-p(u*u+c*c)},_dashedQuadraticTo:function(t,e,i,n){var r=i,a=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,i,n,r,a)},toStatic:function(){this.data[ee]=this._len,v&&this.data instanceof Array&&(this.data=new Float32Array(this.data))},getBoundingRect:function(){o[0]=o[1]=u[0]=u[1]=Number.MAX_VALUE,s[0]=s[1]=c[0]=c[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,l=0,h=0,p=0,v=0;v<t[ee];){var m=t[v++];switch(1==v&&(e=t[v],l=t[v+1],h=e,p=l),m){case a.M:h=t[v++],p=t[v++],e=h,l=p,u[0]=h,u[1]=p,c[0]=h,c[1]=p;break;case a.L:n.fromLine(e,l,t[v],t[v+1],u,c),e=t[v++],l=t[v++];break;case a.C:n.fromCubic(e,l,t[v++],t[v++],t[v++],t[v++],t[v],t[v+1],u,c),e=t[v++],l=t[v++];break;case a.Q:n.fromQuadratic(e,l,t[v++],t[v++],t[v],t[v+1],u,c),e=t[v++],l=t[v++];break;case a.A:var g=t[v++],y=t[v++],_=t[v++],x=t[v++],b=t[v++],w=t[v++]+b,M=(t[v++],1-t[v++]);1==v&&(h=f(b)*_+g,p=d(b)*x+y),n.fromArc(g,y,_,x,b,w,M,u,c),e=f(w)*_+g,l=d(w)*x+y;break;case a.R:h=e=t[v++],p=l=t[v++];var S=t[v++],C=t[v++];n.fromLine(h,p,h+S,p+C,u,c);break;case a.Z:e=h,l=p}i.min(o,o,u),i.max(s,s,c)}return 0===v&&(o[0]=o[1]=s[0]=s[1]=0),new r(o[0],o[1],s[0]-o[0],s[1]-o[1])},rebuildPath:function(t){for(var e=this.data,i=0;i<this._len;){var n=e[i++];switch(n){case a.M:t[L](e[i++],e[i++]);break;case a.L:t[C](e[i++],e[i++]);break;case a.C:t[S](e[i++],e[i++],e[i++],e[i++],e[i++],e[i++]);break;case a.Q:t.quadraticCurveTo(e[i++],e[i++],e[i++],e[i++]);break;case a.A:var r=e[i++],o=e[i++],s=e[i++],u=e[i++],c=e[i++],l=e[i++],h=e[i++],f=e[i++],d=s>u?s:u,p=s>u?1:s/u,v=s>u?u/s:1,m=Math.abs(s-u)>.001;m?(t.translate(r,o),t.rotate(h),t.scale(p,v),t.arc(0,0,d,c,c+l,1-f),t.scale(1/p,1/v),t.rotate(-h),t.translate(-r,-o)):t.arc(r,o,d,c,c+l,1-f);break;case a.R:t.rect(e[i++],e[i++],e[i++],e[i++]);break;case a.Z:t[M]()}}}},m.CMD=a,m}),e("zrender/contain/line",[],function(){return{containStroke:function(t,e,i,n,r,a,o){if(0===r)return!1;var s=r,u=0,c=t;if(o>e+s&&o>n+s||e-s>o&&n-s>o||a>t+s&&a>i+s||t-s>a&&i-s>a)return!1;if(t===i)return Math.abs(a-t)<=s/2;u=(e-n)/(t-i),c=(t*n-i*e)/(t-i);var l=u*a-o+c,h=l*l/(u*u+1);return s/2*s/2>=h}}}),e("zrender/contain/cubic",[ae,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,u,c,l,h){if(0===c)return!1;var f=c;if(h>i+f&&h>r+f&&h>o+f&&h>u+f||i-f>h&&r-f>h&&o-f>h&&u-f>h||l>t+f&&l>n+f&&l>a+f&&l>s+f||t-f>l&&n-f>l&&a-f>l&&s-f>l)return!1;var d=e.cubicProjectPoint(t,i,n,r,a,o,s,u,l,h,null);return f/2>=d}}}),e("zrender/contain/quadratic",[ae,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,u,c){if(0===s)return!1;var l=s;if(c>i+l&&c>r+l&&c>o+l||i-l>c&&r-l>c&&o-l>c||u>t+l&&u>n+l&&u>a+l||t-l>u&&n-l>u&&a-l>u)return!1;var h=e.quadraticProjectPoint(t,i,n,r,a,o,u,c,null);return l/2>=h}}}),e("zrender/contain/util",[ae],function(t){var e=2*Math.PI;return{normalizeRadian:function(t){return t%=e,0>t&&(t+=e),t}}}),e("zrender/contain/arc",[ae,"./util"],function(t){var e=t("./util").normalizeRadian,i=2*Math.PI;return{containStroke:function(t,n,r,a,o,s,u,c,l){if(0===u)return!1;var h=u;c-=t,l-=n;var f=Math.sqrt(c*c+l*l);if(f-h>r||r>f+h)return!1;if(Math.abs(a-o)%i<1e-4)return!0;if(s){var d=a;a=e(o),o=e(d)}else a=e(a),o=e(o);a>o&&(o+=i);var p=Math.atan2(l,c);return 0>p&&(p+=i),p>=a&&o>=p||p+i>=a&&o>=p+i}}}),e("zrender/contain/windingLine",[],function(){return function(t,e,i,n,r,a){if(a>e&&a>n||e>a&&n>a)return 0;if(n===e)return 0;var o=e>n?1:-1,s=(a-e)/(n-e),u=s*(i-t)+t;return u>r?o:0}}),e("zrender/contain/path",[ae,"../core/PathProxy","./line","./cubic","./quadratic","./arc","./util","../core/curve","./windingLine"],function(t){function e(t,e){return Math.abs(t-e)<g}function i(){var t=_[0];_[0]=_[1],_[1]=t}function n(t,e,n,r,a,o,s,u,c,l){if(l>e&&l>r&&l>o&&l>u||e>l&&r>l&&o>l&&u>l)return 0;var h=d.cubicRootAt(e,r,o,u,l,y);if(0===h)return 0;for(var f,p,v=0,m=-1,g=0;h>g;g++){var x=y[g],b=d.cubicAt(t,n,a,s,x);c>b||(0>m&&(m=d.cubicExtrema(e,r,o,u,_),_[1]<_[0]&&m>1&&i(),f=d.cubicAt(e,r,o,u,_[0]),m>1&&(p=d.cubicAt(e,r,o,u,_[1]))),v+=2==m?x<_[0]?e>f?1:-1:x<_[1]?f>p?1:-1:p>u?1:-1:x<_[0]?e>f?1:-1:f>u?1:-1)}return v}function r(t,e,i,n,r,a,o,s){if(s>e&&s>n&&s>a||e>s&&n>s&&a>s)return 0;var u=d.quadraticRootAt(e,n,a,s,y);if(0===u)return 0;var c=d.quadraticExtremum(e,n,a);if(c>=0&&1>=c){for(var l=0,h=d.quadraticAt(e,n,a,c),f=0;u>f;f++){var p=d.quadraticAt(t,i,r,y[f]);p>o||(l+=y[f]<c?e>h?1:-1:h>a?1:-1)}return l}var p=d.quadraticAt(t,i,r,y[0]);return p>o?0:e>a?1:-1}function a(t,e,i,n,r,a,o,s){if(s-=e,s>i||-i>s)return 0;var u=Math.sqrt(i*i-s*s);y[0]=-u,y[1]=u;var c=Math.abs(n-r);if(1e-4>c)return 0;if(1e-4>c%m){n=0,r=m;var l=a?1:-1;return o>=y[0]+t&&o<=y[1]+t?l:0}if(a){var u=n;n=f(r),r=f(u)}else n=f(n),r=f(r);n>r&&(r+=m);for(var h=0,d=0;2>d;d++){var p=y[d];if(p+t>o){var v=Math.atan2(s,p),l=a?1:-1;0>v&&(v=m+v),(v>=n&&r>=v||v+m>=n&&r>=v+m)&&(v>Math.PI/2&&v<1.5*Math.PI&&(l=-l),h+=l)}}return h}function o(t,i,o,u,f){for(var d=0,m=0,g=0,y=0,_=0,x=0;x<t[ee];){var b=t[x++];if(b===s.M&&x>1&&(o||(d+=p(m,g,y,_,u,f)),0!==d))return!0;switch(1==x&&(m=t[x],g=t[x+1],y=m,_=g),b){case s.M:y=t[x++],_=t[x++],m=y,g=_;break;case s.L:if(o){if(v(m,g,t[x],t[x+1],i,u,f))return!0}else d+=p(m,g,t[x],t[x+1],u,f)||0;m=t[x++],g=t[x++];break;case s.C:if(o){if(c.containStroke(m,g,t[x++],t[x++],t[x++],t[x++],t[x],t[x+1],i,u,f))return!0}else d+=n(m,g,t[x++],t[x++],t[x++],t[x++],t[x],t[x+1],u,f)||0;m=t[x++],g=t[x++];break;case s.Q:if(o){if(l.containStroke(m,g,t[x++],t[x++],t[x],t[x+1],i,u,f))return!0}else d+=r(m,g,t[x++],t[x++],t[x],t[x+1],u,f)||0;m=t[x++],g=t[x++];break;case s.A:var w=t[x++],M=t[x++],S=t[x++],C=t[x++],L=t[x++],k=t[x++],A=(t[x++],1-t[x++]),T=Math.cos(L)*S+w,z=Math.sin(L)*C+M;x>1?d+=p(m,g,T,z,u,f):(y=T,_=z);var P=(u-w)*C/S+w;if(o){if(h.containStroke(w,M,C,L,L+k,A,i,P,f))return!0}else d+=a(w,M,C,L,L+k,A,P,f);m=Math.cos(L+k)*S+w,g=Math.sin(L+k)*C+M;break;case s.R:y=m=t[x++],_=g=t[x++];var D=t[x++],I=t[x++],T=y+D,z=_+I;if(o){if(v(y,_,T,_,i,u,f)||v(T,_,T,z,i,u,f)||v(T,z,y,z,i,u,f)||v(y,z,T,z,i,u,f))return!0}else d+=p(T,_,T,z,u,f),d+=p(y,z,y,_,u,f);break;case s.Z:if(o){if(v(m,g,y,_,i,u,f))return!0}else if(d+=p(m,g,y,_,u,f),0!==d)return!0;m=y,g=_}}return o||e(g,_)||(d+=p(m,g,y,_,u,f)||0),0!==d}var s=t("../core/PathProxy").CMD,u=t("./line"),c=t("./cubic"),l=t("./quadratic"),h=t("./arc"),f=t("./util").normalizeRadian,d=t("../core/curve"),p=t("./windingLine"),v=u.containStroke,m=2*Math.PI,g=1e-4,y=[-1,-1,-1],_=[-1,-1];return{contain:function(t,e,i){return o(t,0,!1,e,i)},containStroke:function(t,e,i,n){return o(t,e,!0,i,n)}}}),e("zrender/graphic/Path",[ae,"./Displayable",St,"../core/PathProxy","../contain/path","./Gradient"],function(t){function e(t){var e=t.fill;return null!=e&&"none"!==e}function i(t){var e=t[It];return null!=e&&"none"!==e&&t[Ot]>0}function n(t){r.call(this,t),this.path=new o}var r=t("./Displayable"),a=t(St),o=t("../core/PathProxy"),s=t("../contain/path"),u=t("./Gradient"),c=Math.abs;return n[re]={constructor:n,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t){t.save();var n=this.style,r=this.path,a=i(n),o=e(n);this.__dirtyPath&&(o&&n.fill instanceof u&&n.fill.updateCanvasGradient(this,t),a&&n[It]instanceof u&&n[It].updateCanvasGradient(this,t)),n.bind(t,this),this.setTransform(t);var s=n.lineDash,c=n.lineDashOffset,l=!!t.setLineDash;this.__dirtyPath||s&&!l&&a?(r=this.path[k](t),s&&!l&&(r.setLineDash(s),r.setLineDashOffset(c)),this[w](r,this.shape),this.__dirtyPath=!1):(t[k](),this.path.rebuildPath(t)),o&&r.fill(t),s&&l&&(t.setLineDash(s),t.lineDashOffset=c),a&&r[It](t),null!=n.text&&this.drawRectText(t,this[yt]()),t.restore()},buildPath:function(t,e){},getBoundingRect:function(){var t=this._rect,n=this.style;if(!t){var r=this.path;this.__dirtyPath&&(r[k](),this[w](r,this.shape)),t=r[yt]()}if(i(n)&&(this[N]||!this._rect)){var a=this._rectWithStroke||(this._rectWithStroke=t.clone());a.copy(t);var o=n[Ot],s=n.strokeNoScale?this.getLineScale():1;return e(n)||(o=Math.max(o,this.strokeContainThreshold)),s>1e-10&&(a.width+=o/s,a[Lt]+=o/s,a.x-=o/s/2,a.y-=o/s/2),a}return this._rect=t,t},contain:function(t,n){var r=this.transformCoordToLocal(t,n),a=this[yt](),o=this.style;if(t=r[0],n=r[1],a[A](t,n)){var u=this.path.data;if(i(o)){var c=o[Ot],l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(e(o)||(c=Math.max(c,this.strokeContainThreshold)),s.containStroke(u,c/l,t,n)))return!0}if(e(o))return s[A](u,t,n)}return!1},dirty:function(t){0===arguments[ee]&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this[N]=!0,this.__zr&&this.__zr[F](),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this[q]("shape",t)},attrKV:function(t,e){"shape"===t?this[b](e):r[re].attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(a[nt](t))for(var n in t)i[n]=t[n];else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this[X];return t&&c(t[0]-1)>1e-10&&c(t[3]-1)>1e-10?Math.sqrt(c(t[0]*t[3]-t[2]*t[1])):1}},n[Ft]=function(t){var e=function(e){n.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var i=t.shape;if(i){this.shape=this.shape||{};var r=this.shape;for(var a in i)!r.hasOwnProperty(a)&&i.hasOwnProperty(a)&&(r[a]=i[a])}t.init&&t.init.call(this,e)};a[Nt](e,n);for(var i in t)"style"!==i&&"shape"!==i&&(e[re][i]=t[i]);return e},a[Nt](n,r),n}),e("zrender/tool/transformPath",[ae,"../core/PathProxy","../core/vector"],function(t){function e(t,e){var n,u,c,l,h,f=t.data,d=i.M,p=i.C,v=i.L,m=i.R,g=i.A,y=i.Q;for(c=0,l=0;c<f[ee];){switch(n=f[c++],l=c,u=0,n){case d:u=1;break;case v:u=1;break;case p:u=3;break;case y:u=2;break;case g:var _=e[4],x=e[5],b=o(e[0]*e[0]+e[1]*e[1]),w=o(e[2]*e[2]+e[3]*e[3]),M=s(-e[1]/w,e[0]/b);f[c+7];f[c++]+=_,f[c++]+=x,f[c++]*=b,f[c++]*=w,f[c++]+=M,f[c++]+=M,c+=2,l=c;break;case m:S[0]=f[c++],S[1]=f[c++],r(S,S,e),f[l++]=S[0],f[l++]=S[1],S[0]+=f[c++],S[1]+=f[c++],r(S,S,e),f[l++]=S[0],f[l++]=S[1]}for(h=0;u>h;h++){var S=a[h];S[0]=f[c++],S[1]=f[c++],r(S,S,e),f[l++]=S[0],f[l++]=S[1]}}}var i=t("../core/PathProxy").CMD,n=t("../core/vector"),r=n[kt],a=[[],[],[]],o=Math.sqrt,s=Math.atan2;return e}),e("zrender/tool/path",[ae,"../graphic/Path","../core/PathProxy","./transformPath","../core/matrix"],function(t){function e(t,e,i,n,r,a,o,s,u,d,m){var g=u*(f/180),y=h(g)*(t-i)/2+l(g)*(e-n)/2,_=-1*l(g)*(t-i)/2+h(g)*(e-n)/2,x=y*y/(o*o)+_*_/(s*s);x>1&&(o*=c(x),s*=c(x));var b=(r===a?-1:1)*c((o*o*(s*s)-o*o*(_*_)-s*s*(y*y))/(o*o*(_*_)+s*s*(y*y)))||0,w=b*o*_/s,M=b*-s*y/o,S=(t+i)/2+h(g)*w-l(g)*M,C=(e+n)/2+l(g)*w+h(g)*M,L=v([1,0],[(y-w)/o,(_-M)/s]),k=[(y-w)/o,(_-M)/s],A=[(-1*y-w)/o,(-1*_-M)/s],T=v(k,A);p(k,A)<=-1&&(T=f),p(k,A)>=1&&(T=0),0===a&&T>0&&(T-=2*f),1===a&&0>T&&(T+=2*f),m.addData(d,S,C,o,s,L,T,g,a)}function i(t){if(!t)return[];var i,n=t[Ut](/-/g," -")[Ut](/  /g," ")[Ut](/ /g,",")[Ut](/,,/g,",");for(i=0;i<u[ee];i++)n=n[Ut](new RegExp(u[i],"g"),"|"+u[i]);var r,o=n.split("|"),s=0,c=0,l=new a,h=a.CMD;for(i=1;i<o[ee];i++){var f,d=o[i],p=d.charAt(0),v=0,m=d.slice(1)[Ut](/e,-/g,"e-").split(",");m[ee]>0&&""===m[0]&&m.shift();for(var g=0;g<m[ee];g++)m[g]=parseFloat(m[g]);for(;v<m[ee]&&!isNaN(m[v])&&!isNaN(m[0]);){var y,_,x,b,w,M,S,C=s,L=c;switch(p){case"l":s+=m[v++],c+=m[v++],f=h.L,l.addData(f,s,c);break;case"L":s=m[v++],c=m[v++],f=h.L,l.addData(f,s,c);break;case"m":s+=m[v++],c+=m[v++],f=h.M,l.addData(f,s,c),p="l";break;case"M":s=m[v++],c=m[v++],f=h.M,l.addData(f,s,c),p="L";break;case"h":s+=m[v++],f=h.L,l.addData(f,s,c);break;case"H":s=m[v++],f=h.L,l.addData(f,s,c);break;case"v":c+=m[v++],f=h.L,l.addData(f,s,c);break;case"V":c=m[v++],f=h.L,l.addData(f,s,c);break;case"C":f=h.C,l.addData(f,m[v++],m[v++],m[v++],m[v++],m[v++],m[v++]),s=m[v-2],c=m[v-1];break;case"c":f=h.C,l.addData(f,m[v++]+s,m[v++]+c,m[v++]+s,m[v++]+c,m[v++]+s,m[v++]+c),s+=m[v-2],c+=m[v-1];break;case"S":y=s,_=c;var k=l.len(),A=l.data;r===h.C&&(y+=s-A[k-4],_+=c-A[k-3]),f=h.C,C=m[v++],L=m[v++],s=m[v++],c=m[v++],l.addData(f,y,_,C,L,s,c);break;case"s":y=s,_=c;var k=l.len(),A=l.data;r===h.C&&(y+=s-A[k-4],_+=c-A[k-3]),f=h.C,C=s+m[v++],L=c+m[v++],s+=m[v++],c+=m[v++],l.addData(f,y,_,C,L,s,c);break;case"Q":C=m[v++],L=m[v++],s=m[v++],c=m[v++],f=h.Q,l.addData(f,C,L,s,c);break;case"q":C=m[v++]+s,L=m[v++]+c,s+=m[v++],c+=m[v++],f=h.Q,l.addData(f,C,L,s,c);break;case"T":y=s,_=c;var k=l.len(),A=l.data;r===h.Q&&(y+=s-A[k-4],_+=c-A[k-3]),s=m[v++],c=m[v++],f=h.Q,l.addData(f,y,_,s,c);break;case"t":y=s,_=c;var k=l.len(),A=l.data;r===h.Q&&(y+=s-A[k-4],_+=c-A[k-3]),s+=m[v++],c+=m[v++],f=h.Q,l.addData(f,y,_,s,c);break;case"A":x=m[v++],b=m[v++],w=m[v++],M=m[v++],S=m[v++],C=s,L=c,s=m[v++],c=m[v++],f=h.A,e(C,L,s,c,M,S,x,b,w,f,l);break;case"a":x=m[v++],b=m[v++],w=m[v++],M=m[v++],S=m[v++],C=s,L=c,s+=m[v++],c+=m[v++],f=h.A,e(C,L,s,c,M,S,x,b,w,f,l)}}("z"===p||"Z"===p)&&(f=h.Z,l.addData(f)),r=f}return l.toStatic(),l}function n(t,e){var n,r=i(t);return e=e||{},e[w]=function(t){t.setData(r.data),n&&o(t,n);var e=t[Jt]();e&&t.rebuildPath(e)},e[kt]=function(t){n||(n=s[Ct]()),s.mul(n,t,n)},e}var r=t("../graphic/Path"),a=t("../core/PathProxy"),o=t("./transformPath"),s=t("../core/matrix"),u=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"],c=Math.sqrt,l=Math.sin,h=Math.cos,f=Math.PI,d=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},p=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(d(t)*d(e))},v=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(p(t,e))};return{createFromString:function(t,e){return new r(n(t,e))},extendFromString:function(t,e){return r[Ft](n(t,e))},mergePath:function(t,e){var i,n,a=[],o=t[ee];for(n=0;o>n;n++)i=t[n],i[N]&&i[w](i.path,i.shape),a.push(i.path);var s=new r(e);return s[w]=function(t){t.appendPath(a);var e=t[Jt]();e&&t.rebuildPath(e)},s}}}),e("zrender/graphic/helper/roundRect",[ae],function(t){return{buildPath:function(t,e){var i,n,r,a,o=e.x,s=e.y,u=e.width,c=e[Lt],l=e.r;0>u&&(o+=u,u=-u),0>c&&(s+=c,c=-c),typeof l===$t?i=n=r=a=l:l instanceof Array?1===l[ee]?i=n=r=a=l[0]:2===l[ee]?(i=r=l[0],n=a=l[1]):3===l[ee]?(i=l[0],n=a=l[1],r=l[2]):(i=l[0],n=l[1],r=l[2],a=l[3]):i=n=r=a=0;var h;i+n>u&&(h=i+n,i*=u/h,n*=u/h),r+a>u&&(h=r+a,r*=u/h,a*=u/h),n+r>c&&(h=n+r,n*=c/h,r*=c/h),i+a>c&&(h=i+a,i*=c/h,a*=c/h),t[L](o+i,s),t[C](o+u-n,s),0!==n&&t.quadraticCurveTo(o+u,s,o+u,s+n),t[C](o+u,s+c-r),0!==r&&t.quadraticCurveTo(o+u,s+c,o+u-r,s+c),t[C](o+a,s+c),0!==a&&t.quadraticCurveTo(o,s+c,o,s+c-a),t[C](o,s+i),0!==i&&t.quadraticCurveTo(o,s,o+i,s)}}}),e("zrender/core/LRU",[ae],function(t){var e=function(){this.head=null,this.tail=null,this._len=0},i=e[re];i.insert=function(t){var e=new n(t);return this.insertEntry(e),e},i.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,this.tail=t):this.head=this.tail=t,this._len++},i[E]=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},i.len=function(){return this._len};var n=function(t){this.value=t,this.next,this.prev},r=function(t){this._list=new e,this._map={},this._maxSize=t||10},a=r[re];return a.put=function(t,e){var i=this._list,n=this._map;if(null==n[t]){var r=i.len();if(r>=this._maxSize&&r>0){var a=i.head;i[E](a),delete n[a.key]}var o=i.insert(e);o.key=t,n[t]=o}},a.get=function(t){var e=this._map[t],i=this._list;return null!=e?(e!==i.tail&&(i[E](e),i.insertEntry(e)),e.value):void 0},a.clear=function(){this._list.clear(),this._map={}},r}),e("zrender/graphic/Image",[ae,"./Displayable","../core/BoundingRect",St,"./helper/roundRect","../core/LRU"],function(t){var e=t("./Displayable"),i=t("../core/BoundingRect"),n=t(St),r=t("./helper/roundRect"),a=t("../core/LRU"),o=new a(50),s=function(t){e.call(this,t)};return s[re]={constructor:s,type:"image",brush:function(t){var e,i=this.style,n=i.image;if(e=typeof n===Qt?this._image:n,!e&&n){var a=o.get(n);if(!a)return e=new Image,e.onload=function(){e.onload=null;for(var t=0;t<a.pending[ee];t++)a.pending[t].dirty()},a={image:e,pending:[this]},e.src=n,o.put(n,a),void(this._image=e);if(e=a.image,this._image=e,!e.width||!e[Lt])return void a.pending.push(this)}if(e){var s=i.width||e.width,u=i[Lt]||e[Lt],c=i.x||0,l=i.y||0;if(!e.width||!e[Lt])return;if(t.save(),i.bind(t),this.setTransform(t),i.r&&(t[k](),r[w](t,i),t.clip()),i.sWidth&&i.sHeight){var h=i.sx||0,f=i.sy||0;t.drawImage(e,h,f,i.sWidth,i.sHeight,c,l,s,u)}else if(i.sx&&i.sy){var h=i.sx,f=i.sy,d=s-h,p=u-f;t.drawImage(e,h,f,d,p,c,l,s,u)}else t.drawImage(e,c,l,s,u);null==i.width&&(i.width=s),null==i[Lt]&&(i[Lt]=u),null!=i.text&&this.drawRectText(t,this[yt]()),t.restore()}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new i(t.x||0,t.y||0,t.width||0,t[Lt]||0)),this._rect}},n[Nt](s,e),s}),e("zrender/graphic/Text",[ae,"./Displayable",St,"../contain/text"],function(t){var e=t("./Displayable"),i=t(St),n=t("../contain/text"),r=function(t){e.call(this,t)};return r[re]={constructor:r,type:"text",brush:function(t){var e=this.style,i=e.x||0,r=e.y||0,a=e.text,o=e.fill,s=e[It];if(null!=a&&(a+=""),a){t.save(),this.style.bind(t),this.setTransform(t),o&&(t.fillStyle=o),s&&(t.strokeStyle=s),t.font=e.textFont||e.font,t[z]=e[z],t[T]=e[T];for(var u=n.measureText("国",t.font).width,c=a.split("\n"),l=0;l<c[ee];l++)o&&t.fillText(c[l],i,r),s&&t.strokeText(c[l],i,r),r+=u;t.restore()}},getBoundingRect:function(){if(!this._rect){var t=this.style,e=n[yt](t.text+"",t.textFont,t[z],t[T]);e.x+=t.x||0,e.y+=t.y||0,this._rect=e}return this._rect}},i[Nt](r,e),r}),e("zrender/graphic/shape/Circle",[ae,"../Path"],function(t){return t("../Path")[Ft]({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e){t[L](e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}})}),e("zrender/graphic/shape/Sector",[ae,"../Path"],function(t){return t("../Path")[Ft]({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r0||0,0),a=Math.max(e.r,0),o=e.startAngle,s=e.endAngle,u=e.clockwise,c=Math.cos(o),l=Math.sin(o);t[L](c*r+i,l*r+n),t[C](c*a+i,l*a+n),t.arc(i,n,a,o,s,!u),t[C](Math.cos(s)*r+i,Math.sin(s)*r+n),0!==r&&t.arc(i,n,r,s,o,u),t[M]()}})}),e("zrender/graphic/helper/smoothSpline",[ae,"../../core/vector"],function(t){function e(t,e,i,n,r,a,o){var s=.5*(i-t),u=.5*(n-e);return(2*(e-i)+s+u)*o+(-3*(e-i)-2*s-u)*a+s*r+e}var i=t("../../core/vector");return function(t,n){for(var r=t[ee],a=[],o=0,s=1;r>s;s++)o+=i.distance(t[s-1],t[s]);var u=o/2;u=r>u?r:u;for(var s=0;u>s;s++){var c,l,h,f=s/(u-1)*(n?r:r-1),d=Math.floor(f),p=f-d,v=t[d%r];n?(c=t[(d-1+r)%r],l=t[(d+1)%r],h=t[(d+2)%r]):(c=t[0===d?d:d-1],l=t[d>r-2?r-1:d+1],h=t[d>r-3?r-1:d+2]);var m=p*p,g=p*m;a.push([e(c[0],v[0],l[0],h[0],p,m,g),e(c[1],v[1],l[1],h[1],p,m,g)])}return a}}),e("zrender/graphic/helper/smoothBezier",[ae,"../../core/vector"],function(t){var e=t("../../core/vector"),i=e.min,n=e.max,r=e.scale,a=e.distance,o=e.add;return function(t,s,u,c){var l,h,f,d,p=[],v=[],m=[],g=[];if(c){f=[1/0,1/0],d=[-(1/0),-(1/0)];for(var y=0,_=t[ee];_>y;y++)i(f,f,t[y]),n(d,d,t[y]);i(f,f,c[0]),n(d,d,c[1])}for(var y=0,_=t[ee];_>y;y++){var x=t[y];if(u)l=t[y?y-1:_-1],h=t[(y+1)%_];else{if(0===y||y===_-1){p.push(e.clone(t[y]));continue}l=t[y-1],h=t[y+1]}e.sub(v,h,l),r(v,v,s);var b=a(x,l),w=a(x,h),M=b+w;0!==M&&(b/=M,w/=M),r(m,v,-b),r(g,v,w);var S=o([],x,m),C=o([],x,g);c&&(n(S,S,f),i(S,S,d),n(C,C,f),i(C,C,d)),p.push(S),p.push(C)}return u&&p.push(p.shift()),p}}),e("zrender/graphic/helper/poly",[ae,"./smoothSpline","./smoothBezier"],function(t){var e=t("./smoothSpline"),i=t("./smoothBezier");return{buildPath:function(t,n,r){var a=n.points,o=n.smooth;if(a&&a[ee]>=2){if(o&&"spline"!==o){var s=i(a,o,r,n.smoothConstraint);t[L](a[0][0],a[0][1]);for(var u=a[ee],c=0;(r?u:u-1)>c;c++){var l=s[2*c],h=s[2*c+1],f=a[(c+1)%u];t[S](l[0],l[1],h[0],h[1],f[0],f[1])}}else{"spline"===o&&(a=e(a,r)),t[L](a[0][0],a[0][1]);for(var c=1,d=a[ee];d>c;c++)t[C](a[c][0],a[c][1])}r&&t[M]()}}}}),e("zrender/graphic/shape/Polygon",[ae,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[Ft]({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,i){e[w](t,i,!0)}})}),e("zrender/graphic/shape/Polyline",[ae,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[Ft]({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,i){e[w](t,i,!1)}})}),e("zrender/graphic/shape/Rect",[ae,"../helper/roundRect","../Path"],function(t){var e=t("../helper/roundRect");return t("../Path")[Ft]({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,i){var n=i.x,r=i.y,a=i.width,o=i[Lt];i.r?e[w](t,i):t.rect(n,r,a,o),t[M]()}})}),e("zrender/graphic/shape/Line",[ae,"../Path"],function(t){return t("../Path")[Ft]({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.x1,n=e.y1,r=e.x2,a=e.y2,o=e.percent;0!==o&&(t[L](i,n),1>o&&(r=i*(1-o)+r*o,a=n*(1-o)+a*o),t[C](r,a))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}})}),e("zrender/graphic/shape/BezierCurve",[ae,"../../core/curve","../Path"],function(t){var e=t("../../core/curve"),i=e.quadraticSubdivide,n=e.cubicSubdivide,r=e.quadraticAt,a=e.cubicAt,o=[];return t("../Path")[Ft]({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var r=e.x1,a=e.y1,s=e.x2,u=e.y2,c=e.cpx1,l=e.cpy1,h=e.cpx2,f=e.cpy2,d=e.percent;0!==d&&(t[L](r,a),null==h||null==f?(1>d&&(i(r,c,s,d,o),c=o[1],s=o[2],i(a,l,u,d,o),l=o[1],u=o[2]),t.quadraticCurveTo(c,l,s,u)):(1>d&&(n(r,c,h,s,d,o),c=o[1],h=o[2],s=o[3],n(a,l,f,u,d,o),l=o[1],f=o[2],u=o[3]),t[S](c,l,h,f,s,u)))},pointAt:function(t){var e=this.shape,i=e.cpx2,n=e.cpy2;return null===i||null===n?[r(e.x1,e.cpx1,e.x2,t),r(e.y1,e.cpy1,e.y2,t)]:[a(e.x1,e.cpx1,e.cpx1,e.x2,t),a(e.y1,e.cpy1,e.cpy1,e.y2,t)]}})}),e("zrender/graphic/shape/Arc",[ae,"../Path"],function(t){return t("../Path")[Ft]({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r,0),a=e.startAngle,o=e.endAngle,s=e.clockwise,u=Math.cos(a),c=Math.sin(a);t[L](u*r+i,c*r+n),t.arc(i,n,r,a,o,!s)}})}),e("zrender/graphic/LinearGradient",[ae,St,"./Gradient"],function(t){var e=t(St),i=t("./Gradient"),n=function(t,e,n,r,a){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==n?1:n,this.y2=null==r?0:r,i.call(this,a)};return n[re]={constructor:n,type:"linear",updateCanvasGradient:function(t,e){for(var i=t[yt](),n=this.x*i.width+i.x,r=this.x2*i.width+i.x,a=this.y*i[Lt]+i.y,o=this.y2*i[Lt]+i.y,s=e.createLinearGradient(n,a,r,o),u=this.colorStops,c=0;c<u[ee];c++)s.addColorStop(u[c].offset,u[c].color);this.canvasGradient=s}},e[Nt](n,i),n}),e("zrender/graphic/RadialGradient",[ae,St,"./Gradient"],function(t){var e=t(St),i=t("./Gradient"),n=function(t,e,n,r){this.x=null==t?.5:t,
  this.y=null==e?.5:e,this.r=null==n?.5:n,i.call(this,r)};return n[re]={constructor:n,type:"radial",updateCanvasGradient:function(t,e){for(var i=t[yt](),n=i.width,r=i[Lt],a=Math.min(n,r),o=this.x*n+i.x,s=this.y*r+i.y,u=this.r*a,c=e.createRadialGradient(o,s,0,o,s,u),l=this.colorStops,h=0;h<l[ee];h++)c.addColorStop(l[h].offset,l[h].color);this.canvasGradient=c}},e[Nt](n,i),n}),e("echarts/util/graphic",[ae,ne,"zrender/tool/path","zrender/graphic/Path","zrender/tool/color",Tt,Pt,"zrender/graphic/Gradient","zrender/container/Group","zrender/graphic/Image","zrender/graphic/Text","zrender/graphic/shape/Circle","zrender/graphic/shape/Sector","zrender/graphic/shape/Polygon","zrender/graphic/shape/Polyline","zrender/graphic/shape/Rect","zrender/graphic/shape/Line","zrender/graphic/shape/BezierCurve","zrender/graphic/shape/Arc","zrender/graphic/LinearGradient","zrender/graphic/RadialGradient",At],function(t){function e(t){if(!t.__isHover){if(t.__hoverStlDirty){var e=t.style[It],i=t.style.fill,n=t.__hoverStl;n.fill=n.fill||(i instanceof w?i:v.lift(i,-.1)),n[It]=n[It]||(e instanceof w?e:v.lift(e,-.1));var r={};for(var a in n)n.hasOwnProperty(a)&&(r[a]=t.style[a]);t.__normalStl=r,t.__hoverStlDirty=!1}t.setStyle(t.__hoverStl),t.z2+=1,t.__isHover=!0}}function i(t){if(t.__isHover){var e=t.__normalStl;e&&t.setStyle(e),t.z2-=1,t.__isHover=!1}}function n(t){"group"===t.type?t[R](function(t){"group"!==t.type&&e(t)}):e(t)}function r(t){"group"===t.type?t[R](function(t){"group"!==t.type&&i(t)}):i(t)}function a(t,e){t.__hoverStl=t.hoverStyle||e,t.__hoverStlDirty=!0}function o(){!this.__isEmphasis&&n(this)}function s(){!this.__isEmphasis&&r(this)}function u(){this.__isEmphasis=!0,n(this)}function c(){this.__isEmphasis=!1,r(this)}function l(t,e,i,n,r){var a=t?"Update":"",o=n&&n[Bt]("animationDuration"+a),s=n&&n[Bt]("animationEasing"+a);n&&n[Bt](W)?e.animateTo(i,o,s,r):(e.attr(i),r&&r())}var h=t(ne),f=t("zrender/tool/path"),d=Math.round,p=t("zrender/graphic/Path"),v=t("zrender/tool/color"),m=t(Tt),b=t(Pt),w=t("zrender/graphic/Gradient"),M={};return M.Group=t("zrender/container/Group"),M.Image=t("zrender/graphic/Image"),M.Text=t("zrender/graphic/Text"),M.Circle=t("zrender/graphic/shape/Circle"),M.Sector=t("zrender/graphic/shape/Sector"),M.Polygon=t("zrender/graphic/shape/Polygon"),M.Polyline=t("zrender/graphic/shape/Polyline"),M.Rect=t("zrender/graphic/shape/Rect"),M.Line=t("zrender/graphic/shape/Line"),M.BezierCurve=t("zrender/graphic/shape/BezierCurve"),M.Arc=t("zrender/graphic/shape/Arc"),M.LinearGradient=t("zrender/graphic/LinearGradient"),M.RadialGradient=t("zrender/graphic/RadialGradient"),M.BoundingRect=t(At),M.extendShape=function(t){return p[Ft](t)},M.extendPath=function(t,e){return f.extendFromString(t,e)},M.makePath=function(t,e,i,n){var r=f.createFromString(t,e),a=r[yt]();if(i){var o=a.width/a[Lt];if(n===Ht){var s,u=i[Lt]*o;u<=i.width?s=i[Lt]:(u=i.width,s=u/o);var c=i.x+i.width/2,l=i.y+i[Lt]/2;i.x=c-u/2,i.y=l-s/2,i.width=u,i[Lt]=s}this.resizePath(r,i)}return r},M.mergePath=f.mergePath,M.resizePath=function(t,e){if(t[kt]){var i=t[yt](),n=i.calculateTransform(e);t[kt](n)}},M.subPixelOptimizeLine=function(t){var e=M.subPixelOptimize,i=t.shape,n=t.style[Ot];return d(2*i.x1)===d(2*i.x2)&&(i.x1=i.x2=e(i.x1,n,!0)),d(2*i.y1)===d(2*i.y2)&&(i.y1=i.y2=e(i.y1,n,!0)),t},M.subPixelOptimizeRect=function(t){var e=M.subPixelOptimize,i=t.shape,n=t.style[Ot],r=i.x,a=i.y,o=i.width,s=i[Lt];return i.x=e(i.x,n,!0),i.y=e(i.y,n,!0),i.width=Math.max(e(r+o,n,!1)-i.x,0===o?0:1),i[Lt]=Math.max(e(a+s,n,!1)-i.y,0===s?0:1),t},M.subPixelOptimize=function(t,e,i){var n=d(2*t);return(n+d(e))%2===0?n/2:(n+(i?1:-1))/2},M.setHoverStyle=function(t,e){e=e||{},"group"===t.type?t[R](function(t){"group"!==t.type&&a(t,e)}):a(t,e),t.on(x,o).on(_,s),t.on(dt,u).on(ft,c)},M.setText=function(t,e,i){var n=e[Bt](it)||Mt,r=n[Kt](Mt)>=0?"white":i,a=e[xt](_t);h[Ft](t,{textDistance:e[Bt]("distance")||5,textFont:a[gt](),textPosition:n,textFill:a.getTextColor()||r})},M[y]=h.curry(l,!0),M[g]=h.curry(l,!1),M.getTransform=function(t,e){for(var i=m.identity([]);t&&t!==e;)m.mul(i,t[H](),i),t=t[Z];return i},M[kt]=function(t,e,i){return i&&(e=m.invert([],e)),b[kt]([],t,e)},M.transformDirection=function(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),a=["left"===t?-n:"right"===t?n:0,"top"===t?-r:t===Vt?r:0];return a=M[kt](a,e,i),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?Vt:"top"},M}),e("zrender/core/env",[],function(){function t(t){var e={},i={},n=t.match(/Web[kK]it[\/]{0,1}([\d.]+)/),r=t.match(/(Android);?[\s\/]+([\d.]+)?/),a=t.match(/(iPad).*OS\s([\d_]+)/),o=t.match(/(iPod)(.*OS\s([\d_]+))?/),s=!a&&t.match(/(iPhone\sOS)\s([\d_]+)/),u=t.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),c=u&&t.match(/TouchPad/),l=t.match(/Kindle\/([\d.]+)/),h=t.match(/Silk\/([\d._]+)/),f=t.match(/(BlackBerry).*Version\/([\d.]+)/),d=t.match(/(BB10).*Version\/([\d.]+)/),p=t.match(/(RIM\sTablet\sOS)\s([\d.]+)/),v=t.match(/PlayBook/),m=t.match(/Chrome\/([\d.]+)/)||t.match(/CriOS\/([\d.]+)/),g=t.match(/Firefox\/([\d.]+)/),y=n&&t.match(/Mobile\//)&&!m,_=t.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/)&&!m,x=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),b=t.match(/Edge\/([\d.]+)/);return(i.webkit=!!n)&&(i.version=n[1]),r&&(e.android=!0,e.version=r[2]),s&&!o&&(e.ios=e.iphone=!0,e.version=s[2][Ut](/_/g,".")),a&&(e.ios=e.ipad=!0,e.version=a[2][Ut](/_/g,".")),o&&(e.ios=e.ipod=!0,e.version=o[3]?o[3][Ut](/_/g,"."):null),u&&(e.webos=!0,e.version=u[2]),c&&(e.touchpad=!0),f&&(e.blackberry=!0,e.version=f[2]),d&&(e.bb10=!0,e.version=d[2]),p&&(e.rimtabletos=!0,e.version=p[2]),v&&(i.playbook=!0),l&&(e.kindle=!0,e.version=l[1]),h&&(i.silk=!0,i.version=h[1]),!h&&e.android&&t.match(/Kindle Fire/)&&(i.silk=!0),m&&(i.chrome=!0,i.version=m[1]),g&&(i.firefox=!0,i.version=g[1]),x&&(i.ie=!0,i.version=x[1]),y&&(t.match(/Safari/)||e.ios)&&(i.safari=!0),_&&(i.webview=!0),x&&(i.ie=!0,i.version=x[1]),b&&(i.edge=!0,i.version=b[1]),e.tablet=!!(a||v||r&&!t.match(/Mobile/)||g&&t.match(/Tablet/)||x&&!t.match(/Phone/)&&t.match(/Touch/)),e.phone=!(e.tablet||e.ipod||!(r||s||u||f||d||m&&t.match(/Android/)||m&&t.match(/CriOS\/([\d.]+)/)||g&&t.match(/Mobile/)||x&&t.match(/Touch/))),{browser:i,os:e,node:!1,canvasSupported:document.createElement(te)[Jt]?!0:!1,touchEventsSupported:"ontouchstart"in window&&!i.ie&&!i.edge,pointerEventsSupported:"onpointerdown"in window&&(i.edge||i.ie&&i.version>=10)}}var e={};return e=typeof navigator===zt?{browser:{},os:{},node:!0,canvasSupported:!0}:t(navigator.userAgent)}),e("zrender/core/event",[ae,"../mixin/Eventful"],function(t){function e(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}function i(t,i){if(i=i||window.event,null!=i.zrX)return i;var n=i.type,r=n&&n[Kt]("touch")>=0;if(r){var a="touchend"!=n?i.targetTouches[0]:i.changedTouches[0];if(a){var o=e(t);i.zrX=a.clientX-o.left,i.zrY=a.clientY-o.top}}else{var s=0,u=0;i.pageX||i.pageY?(s=i.pageX,u=i.pageY):(s=i.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,u=i.clientY+document.body.scrollTop+document.documentElement.scrollTop);var c=e(t),l=c.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||0),h=c.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0);i.zrX=s-h,i.zrY=u-l,i.zrDelta=i.wheelDelta?i.wheelDelta/120:-(i.detail||0)/3}return i}function n(t,e,i){o?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function r(t,e,i){o?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}var a=t("../mixin/Eventful"),o=typeof window!==zt&&!!window.addEventListener,s=o?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};return{normalizeEvent:i,addEventListener:n,removeEventListener:r,stop:s,Dispatcher:a}}),e("zrender/mixin/Draggable",[ae],function(t){function e(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this),this.on("globalout",this._dragEnd,this)}return e[re]={constructor:e,_dragStart:function(t){var e=t.target;e&&e.draggable&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this._dispatchProxy(e,"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,r=i-this._x,a=n-this._y;this._x=i,this._y=n,e.drift(r,a,t),this._dispatchProxy(e,"drag",t.event);var o=this._findHover(i,n,e),s=this._dropTarget;this._dropTarget=o,e!==o&&(s&&o!==s&&this._dispatchProxy(s,"dragleave",t.event),o&&o!==s&&this._dispatchProxy(o,"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this._dispatchProxy(e,"dragend",t.event),this._dropTarget&&this._dispatchProxy(this._dropTarget,"drop",t.event),this._draggingTarget=null,this._dropTarget=null}},e}),e("zrender/core/GestureMgr",[ae],function(t){function e(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function i(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var n=function(){this._track=[]};n[re]={constructor:n,recognize:function(t,e){return this._doTrack(t,e),this._recognize(t)},clear:function(){return this._track[ee]=0,this},_doTrack:function(t,e){var i=t.touches;if(i){for(var n={points:[],touches:[],target:e,event:t},r=0,a=i[ee];a>r;r++){var o=i[r];n.points.push([o.clientX,o.clientY]),n.touches.push(o)}this._track.push(n)}},_recognize:function(t){for(var e in r)if(r.hasOwnProperty(e)){var i=r[e](this._track,t);if(i)return i}}};var r={pinch:function(t,n){var r=t[ee];if(r){var a=(t[r-1]||{}).points,o=(t[r-2]||{}).points||a;if(o&&o[ee]>1&&a&&a[ee]>1){var s=e(a)/e(o);!isFinite(s)&&(s=1),n.pinchScale=s;var u=i(a);return n.pinchX=u[0],n.pinchY=u[1],{type:"pinch",target:t[0].target,event:n}}}}};return n}),e("zrender/Handler",[ae,"./core/env","./core/event","./core/util","./mixin/Draggable","./core/GestureMgr","./mixin/Eventful"],function(t){function e(t,e,i){return{type:t,event:i,target:e,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta}}function i(t,e,i){var n=t._gestureMgr;"start"===i&&n.clear();var r=n.recognize(e,t._findHover(e.zrX,e.zrY,null));if("end"===i&&n.clear(),r){var a=r.type;e.gestureEvent=a,t._dispatchProxy(r.target,a,r.event)}}function n(t){function e(t,e){return function(){return e._touching?void 0:t.apply(e,arguments)}}for(var i=m[Yt](g),n=0;n<i[ee];n++){var r=i[n];t._handlers[r]=h.bind(S[r],t)}for(var n=0;n<v[ee];n++){var r=v[n];t._handlers[r]=e(S[r],t)}}function r(t,e,i){if(t[t.rectHover?"rectContain":A](e,i)){for(var n=t[Z];n;){if(n.clipPath&&!n.clipPath[A](e,i))return!1;n=n[Z]}return!0}return!1}function a(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout(function(){t._touching=!1},700)}function o(){return!1}function s(){return c.touchEventsSupported}function u(t){return"mousewheel"===t&&c.firefox?"DOMMouseScroll":t}var c=t("./core/env"),l=t("./core/event"),h=t("./core/util"),f=t("./mixin/Draggable"),d=t("./core/GestureMgr"),p=t("./mixin/Eventful"),v=["click","dblclick","mousewheel",_];!o()&&v.push("mouseup","mousedown","mousemove");var m=["touchstart","touchend","touchmove"],g=["pointerdown","pointerup","pointermove"],y=300,b=l.addEventListener,w=l.removeEventListener,M=l.normalizeEvent,S={mousemove:function(t){t=M(this.root,t);var e=t.zrX,i=t.zrY,n=this._findHover(e,i,null),r=this._hovered;this._hovered=n,this.root.style.cursor=n?n.cursor:this._defaultCursorStyle,r&&n!==r&&r.__zr&&this._dispatchProxy(r,_,t),this._dispatchProxy(n,"mousemove",t),n&&n!==r&&this._dispatchProxy(n,x,t)},mouseout:function(t){t=M(this.root,t);var e=t.toElement||t.relatedTarget;if(e!=this.root)for(;e&&9!=e.nodeType;){if(e===this.root)return;e=e.parentNode}this._dispatchProxy(this._hovered,_,t),this[O]("globalout",{event:t})},touchstart:function(t){t=M(this.root,t),this._lastTouchMoment=new Date,i(this,t,"start"),S.mousemove.call(this,t),S.mousedown.call(this,t),a(this)},touchmove:function(t){t=M(this.root,t),i(this,t,"change"),S.mousemove.call(this,t),a(this)},touchend:function(t){t=M(this.root,t),i(this,t,"end"),S.mouseup.call(this,t),+new Date-this._lastTouchMoment<y&&S.click.call(this,t),a(this)}};h.each(["click","mousedown","mouseup","mousewheel","dblclick"],function(t){S[t]=function(e){e=M(this.root,e);var i=this._findHover(e.zrX,e.zrY,null);this._dispatchProxy(i,t,e)}});var C=function(t,e,i){function r(e,i){h.each(e,function(e){b(t,u(e),i._handlers[e])},i)}p.call(this),this.root=t,this.storage=e,this.painter=i,this._hovered,this._lastTouchMoment,this._lastX,this._lastY,this._defaultCursorStyle="default",this._gestureMgr=new d,this._handlers=[],this._touching=!1,this._touchTimer,n(this),o()?r(g,this):s()&&r(m,this),r(v,this),f.call(this)};return C[re]={constructor:C,resize:function(t){this._hovered=null},dispatch:function(t,e){var i=this._handlers[t];i&&i.call(this,e)},dispose:function(){for(var t=this.root,e=v[Yt](m),i=0;i<e[ee];i++){var n=e[i];w(t,u(n),this._handlers[n])}this.root=this.storage=this.painter=null},setDefaultCursorStyle:function(t){this._defaultCursorStyle=t},_dispatchProxy:function(t,i,n){for(var r="on"+i,a=e(i,t,n),o=t;o&&(o[r]&&(a.cancelBubble=o[r].call(o,a)),o[O](i,a),o=o[Z],!a.cancelBubble););a.cancelBubble||(this[O](i,a),this.painter&&this.painter.eachOtherLayer(function(t){typeof t[r]==jt&&t[r].call(t,a),t[O]&&t[O](i,a)}))},_findHover:function(t,e,i){for(var n=this.storage.getDisplayList(),a=n[ee]-1;a>=0;a--)if(!n[a].silent&&n[a]!==i&&r(n[a],t,e))return n[a]}},h.mixin(C,p),h.mixin(C,f),C}),e("zrender/Storage",[ae,"./core/util","./container/Group"],function(t){function e(t,e){return t[m]===e[m]?t.z===e.z?t.z2===e.z2?t.__renderidx-e.__renderidx:t.z2-e.z2:t.z-e.z:t[m]-e[m]}var i=t("./core/util"),n=t("./container/Group"),r=function(){this._elements={},this._roots=[],this._displayList=[],this._displayListLen=0};return r[re]={constructor:r,getDisplayList:function(t){return t&&this.updateDisplayList(),this._displayList},updateDisplayList:function(){this._displayListLen=0;for(var t=this._roots,i=this._displayList,n=0,r=t[ee];r>n;n++){var a=t[n];this._updateAndAddDisplayable(a)}i[ee]=this._displayListLen;for(var n=0,r=i[ee];r>n;n++)i[n].__renderidx=n;i.sort(e)},_updateAndAddDisplayable:function(t,e){if(!t[G]){t.beforeUpdate(),t[v](),t.afterUpdate();var i=t.clipPath;if(i&&(i[Z]=t,i.updateTransform(),e?(e=e.slice(),e.push(i)):e=[i]),"group"==t.type){for(var n=t._children,r=0;r<n[ee];r++){var a=n[r];a[N]=t[N]||a[N],this._updateAndAddDisplayable(a,e)}t[N]=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){this._elements[t.id]||(t instanceof n&&t.addChildrenToStorage(this),this.addToMap(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots[ee];e++){var r=this._roots[e];r instanceof n&&r.delChildrenFromStorage(this)}return this._elements={},this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array)for(var e=0,a=t[ee];a>e;e++)this.delRoot(t[e]);else{var o;o=typeof t==Qt?this._elements[t]:t;var s=i[Kt](this._roots,o);s>=0&&(this.delFromMap(o.id),this._roots[j](s,1),o instanceof n&&o.delChildrenFromStorage(this))}},addToMap:function(t){return t instanceof n&&(t.__storage=this),t.dirty(),this._elements[t.id]=t,this},get:function(t){return this._elements[t]},delFromMap:function(t){var e=this._elements,i=e[t];return i&&(delete e[t],i instanceof n&&(i.__storage=null)),this},dispose:function(){this._elements=this._renderList=this._roots=null}},r}),e("zrender/animation/Animation",[ae,St,"../core/event","./Animator"],function(t){var e=t(St),i=t("../core/event").Dispatcher,n=typeof window!==zt&&(window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)},r=t("./Animator"),a=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time=0,i.call(this)};return a[re]={constructor:a,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t[W]=this;for(var e=t.getClips(),i=0;i<e[ee];i++)this.addClip(e[i])},removeClip:function(t){var i=e[Kt](this._clips,t);i>=0&&this._clips[j](i,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i<e[ee];i++)this.removeClip(e[i]);t[W]=null},_update:function(){for(var t=(new Date).getTime(),e=t-this._time,i=this._clips,n=i[ee],r=[],a=[],o=0;n>o;o++){var s=i[o],u=s.step(t);u&&(r.push(u),a.push(s))}for(var o=0;n>o;)i[o]._needsRemove?(i[o]=i[n-1],i.pop(),n--):o++;n=r[ee];for(var o=0;n>o;o++)a[o].fire(r[o]);this._time=t,this.onframe(e),this[O]("frame",e),this.stage[v]&&this.stage[v]()},start:function(){function t(){e._running&&(n(t),e._update())}var e=this;this._running=!0,this._time=(new Date).getTime(),n(t)},stop:function(){this._running=!1},clear:function(){this._clips=[]},animate:function(t,e){e=e||{};var i=new r(t,e.loop,e.getter,e.setter);return i}},e.mixin(a,i),a}),e("zrender/Layer",[ae,"./core/util","./config"],function(t){function e(){return!1}function i(t,e,i,n){var r=document.createElement(e),a=i[J](),o=i[K](),s=r.style;return s[it]="absolute",s.left=0,s.top=0,s.width=a+"px",s[Lt]=o+"px",r.width=a*n,r[Lt]=o*n,r.setAttribute("data-zr-dom-id",t),r}var n=t("./core/util"),r=t("./config"),a=function(t,a,o){var s;o=o||r.devicePixelRatio,typeof t===Qt?s=i(t,te,a,o):n[nt](t)&&(s=t,t=s.id),this.id=t,this.dom=s;var u=s.style;u&&(s.onselectstart=e,u["-webkit-user-select"]="none",u["user-select"]="none",u["-webkit-touch-callout"]="none",u["-webkit-tap-highlight-color"]="rgba(0,0,0,0)"),this.domBack=null,this.ctxBack=null,this.painter=a,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=o};return a[re]={constructor:a,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom[Jt]("2d");var t=this.dpr;1!=t&&this.ctx.scale(t,t)},createBackBuffer:function(){var t=this.dpr;this.domBack=i("back-"+this.id,te,this.painter,t),this.ctxBack=this.domBack[Jt]("2d"),1!=t&&this.ctxBack.scale(t,t)},resize:function(t,e){var i=this.dpr,n=this.dom,r=n.style,a=this.domBack;r.width=t+"px",r[Lt]=e+"px",n.width=t*i,n[Lt]=e*i,1!=i&&this.ctx.scale(i,i),a&&(a.width=t*i,a[Lt]=e*i,1!=i&&this.ctxBack.scale(i,i))},clear:function(t){var e=this.dom,i=this.ctx,n=e.width,r=e[Lt],a=this.clearColor,o=this.motionBlur&&!t,s=this.lastFrameAlpha,u=this.dpr;if(o&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,n/u,r/u)),i.clearRect(0,0,n/u,r/u),a&&(i.save(),i.fillStyle=this.clearColor,i.fillRect(0,0,n/u,r/u),i.restore()),o){var c=this.domBack;i.save(),i.globalAlpha=s,i.drawImage(c,0,0,n/u,r/u),i.restore()}}},a}),e("zrender/Painter",[ae,"./config","./core/util","./core/log","./core/BoundingRect","./Layer","./graphic/Image"],function(t){function e(t){return parseInt(t,10)}function i(t){return t?t.isBuildin?!0:typeof t.resize!==jt||typeof t[F]!==jt?!1:!0:!1}function n(t){t.__unusedCount++}function r(t){t[N]=!1,1==t.__unusedCount&&t.clear()}function a(t,e,i){return d.copy(t[yt]()),t[X]&&d[kt](t[X]),p.width=e,p[Lt]=i,!d.intersect(p)}function o(t,e){if(!t||!e||t[ee]!==e[ee])return!0;for(var i=0;i<t[ee];i++)if(t[i]!==e[i])return!0}function s(t,e){for(var i=0;i<t[ee];i++){var n,r=t[i];r[X]&&(n=r[X],e[X](n[0],n[1],n[2],n[3],n[4],n[5]));var a=r.path;a[k](e),r[w](a,r.shape),e.clip(),r[X]&&(n=r.invTransform,e[X](n[0],n[1],n[2],n[3],n[4],n[5]))}}var u=t("./config"),c=t("./core/util"),l=t("./core/log"),h=t("./core/BoundingRect"),f=t("./Layer"),d=new h(0,0,0,0),p=new h(0,0,0,0),v=function(t,e,i){var n=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();i=i||{},this.dpr=i.devicePixelRatio||u.devicePixelRatio,this._singleCanvas=n,this.root=t;var r=t.style;if(r&&(r["-webkit-tap-highlight-color"]="transparent",r["-webkit-user-select"]="none",r["user-select"]="none",r["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e,n){var a=t.width,o=t[Lt];this._width=a,this._height=o;var s=new f(t,this,1);s.initContext(),this._layers={0:s},this._zlevelList=[0]}else{var a=this._getWidth(),o=this._getHeight();this._width=a,this._height=o;var c=document.createElement("div");this._domRoot=c;var l=c.style;l[it]="relative",l.overflow="hidden",l.width=this._width+"px",l[Lt]=this._height+"px",t.appendChild(c),this._layers={},this._zlevelList=[]}this._layerConfig={},this.pathToImage=this._createPathToImage()};return v[re]={constructor:v,isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._singleCanvas?this._layers[0].dom:this._domRoot},refresh:function(t){var e=this.storage.getDisplayList(!0),i=this._zlevelList;this._paintList(e,t);for(var n=0;n<i[ee];n++){var r=i[n],a=this._layers[r];!a.isBuildin&&a[F]&&a[F]()}return this},_paintList:function(t,e){null==e&&(e=!1),this._updateLayerStatus(t);var i,u,c,h=this._width,f=this._height;this.eachBuildinLayer(n);for(var d=null,p=0,v=t[ee];v>p;p++){var g=t[p],y=this._singleCanvas?0:g[m];if(u!==y&&(u=y,i=this.getLayer(u),i.isBuildin||l("ZLevel "+u+" has been used by unkown layer "+i.id),c=i.ctx,i.__unusedCount=0,(i[N]||e)&&i.clear()),(i[N]||e)&&!g.invisible&&0!==g.style[Dt]&&g.scale[0]&&g.scale[1]&&(!g.culling||!a(g,h,f))){var _=g.__clipPaths;o(_,d)&&(d&&c.restore(),_&&(c.save(),s(_,c)),d=_),g.beforeBrush&&g.beforeBrush(c),g.brush(c,!1),g.afterBrush&&g.afterBrush(c)}g[N]=!1}d&&c.restore(),this.eachBuildinLayer(r)},getLayer:function(t){if(this._singleCanvas)return this._layers[0];var e=this._layers[t];return e||(e=new f("zr_"+t,this,this.dpr),e.isBuildin=!0,this._layerConfig[t]&&c.merge(e,this._layerConfig[t],!0),this.insertLayer(t,e),e.initContext()),e},insertLayer:function(t,e){var n=this._layers,r=this._zlevelList,a=r[ee],o=null,s=-1,u=this._domRoot;if(n[t])return void l("ZLevel "+t+" has been used already");if(!i(e))return void l("Layer of zlevel "+t+" is not valid");if(a>0&&t>r[0]){for(s=0;a-1>s&&!(r[s]<t&&r[s+1]>t);s++);o=n[r[s]]}if(r[j](s+1,0,t),o){var c=o.dom;c.nextSibling?u.insertBefore(e.dom,c.nextSibling):u.appendChild(e.dom)}else u.firstChild?u.insertBefore(e.dom,u.firstChild):u.appendChild(e.dom);n[t]=e},eachLayer:function(t,e){var i,n,r=this._zlevelList;for(n=0;n<r[ee];n++)i=r[n],t.call(e,this._layers[i],i)},eachBuildinLayer:function(t,e){var i,n,r,a=this._zlevelList;for(r=0;r<a[ee];r++)n=a[r],i=this._layers[n],i.isBuildin&&t.call(e,i,n)},eachOtherLayer:function(t,e){var i,n,r,a=this._zlevelList;for(r=0;r<a[ee];r++)n=a[r],i=this._layers[n],i.isBuildin||t.call(e,i,n)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){var e=this._layers,i={};this.eachBuildinLayer(function(t,e){i[e]=t.elCount,t.elCount=0});for(var n=0,r=t[ee];r>n;n++){var a=t[n],o=this._singleCanvas?0:a[m],s=e[o];if(s){if(s.elCount++,s[N])continue;s[N]=a[N]}}this.eachBuildinLayer(function(t,e){i[e]!==t.elCount&&(t[N]=!0)})},clear:function(){return this.eachBuildinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?c.merge(i[t],e,!0):i[t]=e;var n=this._layers[t];n&&c.merge(n,i[t],!0)}},delLayer:function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i[j](c[Kt](i,t),1))},resize:function(t,e){var i=this._domRoot;if(i.style.display="none",t=t||this._getWidth(),e=e||this._getHeight(),i.style.display="",this._width!=t||e!=this._height){i.style.width=t+"px",i.style[Lt]=e+"px";for(var n in this._layers)this._layers[n].resize(t,e);this[F](!0)}return this._width=t,this._height=e,this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas)return this._layers[0].dom;var e=new f("image",this,t.pixelRatio||this.dpr);e.initContext();var i=e.ctx;e.clearColor=t.backgroundColor,e.clear();for(var n=this.storage.getDisplayList(!0),r=0;r<n[ee];r++){var a=n[r];a.invisible||(a.beforeBrush&&a.beforeBrush(i),a.brush(i,!1),a.afterBrush&&a.afterBrush(i))}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getWidth:function(){var t=this.root,i=document.defaultView.getComputedStyle(t);return(t.clientWidth||e(i.width)||e(t.style.width))-(e(i.paddingLeft)||0)-(e(i.paddingRight)||0)|0},_getHeight:function(){var t=this.root,i=document.defaultView.getComputedStyle(t);return(t.clientHeight||e(i[Lt])||e(t.style[Lt]))-(e(i.paddingTop)||0)-(e(i.paddingBottom)||0)|0},_pathToImage:function(e,i,n,r,a){var o=document.createElement(te),s=o[Jt]("2d");o.width=n*a,o[Lt]=r*a,s.clearRect(0,0,n*a,r*a);var u={position:i[it],rotation:i[U],scale:i.scale};i[it]=[0,0,0],i[U]=0,i.scale=[1,1],i&&i.brush(s);var c=t("./graphic/Image"),l=new c({id:e,style:{x:0,y:0,image:o}});return null!=u[it]&&(l[it]=i[it]=u[it]),null!=u[U]&&(l[U]=i[U]=u[U]),null!=u.scale&&(l.scale=i.scale=u.scale),l},_createPathToImage:function(){var t=this;return function(e,i,n,r){return t._pathToImage(e,i,n,r,t.dpr)}}},v}),e("zrender/zrender",[ae,"./core/guid","./core/env","./Handler","./Storage","./animation/Animation","./Painter"],function(t){function e(t){delete c[t]}var i=t("./core/guid"),n=t("./core/env"),r=t("./Handler"),a=t("./Storage"),o=t("./animation/Animation"),s=!n.canvasSupported,u={canvas:t("./Painter")},c={},l={};l.version="3.0.2",l.init=function(t,e){var n=new h(i(),t,e);return c[n.id]=n,n},l.dispose=function(t){if(t)t.dispose();else{for(var e in c)c[e].dispose();c={}}return l},l.getInstance=function(t){return c[t]},l.registerPainter=function(t,e){u[t]=e};var h=function(t,e,i){i=i||{},this.dom=e,this.id=t;var c=this,l=new a,h=i.renderer;if(s){if(!u.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");h="vml"}else h&&u[h]||(h=te);var f=new u[h](e,l,i);this.storage=l,this.painter=f,n.node||(this.handler=new r(f.getViewportRoot(),l,f)),this[W]=new o({stage:{update:function(){c._needsRefresh&&c.refreshImmediately()}}}),this[W].start(),this._needsRefresh;var d=l.delFromMap,p=l.addToMap;l.delFromMap=function(t){var e=l.get(t);d.call(l,t),e&&e.removeSelfFromZr(c)},l.addToMap=function(t){p.call(l,t),t.addSelfToZr(c)}};return h[re]={constructor:h,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer(t,e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter[F](),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},resize:function(){this.painter.resize(),this.handler&&this.handler.resize()},clearAnimation:function(){this[W].clear()},getWidth:function(){return this.painter[J]()},getHeight:function(){return this.painter[K]()},toDataURL:function(t,e,i){return this.painter.toDataURL(t,e,i)},pathToImage:function(t,e,n){var r=i();return this.painter.pathToImage(r,t,e,n)},setDefaultCursorStyle:function(t){this.handler.setDefaultCursorStyle(t)},on:function(t,e,i){this.handler&&this.handler.on(t,e,i)},off:function(t,e){this.handler&&this.handler.off(t,e)},trigger:function(t,e){this.handler&&this.handler[O](t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this[W].stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler&&this.handler.dispose(),this[W]=this.storage=this.painter=this.handler=null,e(this.id)}},l}),e("zrender",["zrender/zrender"],function(t){return t}),e("echarts/loading/default",[ae,"../util/graphic",ne],function(t){var e=t("../util/graphic"),i=t(ne),n=Math.PI;return function(t,r){r=r||{},i[wt](r,{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var a=new e.Rect({style:{fill:r.maskColor},zlevel:r[m],z:1e4}),o=new e.Arc({shape:{startAngle:-n/2,endAngle:-n/2+.1,r:10},style:{stroke:r.color,lineCap:"round",lineWidth:5},zlevel:r[m],z:10001}),s=new e.Rect({style:{fill:"none",text:r.text,textPosition:"right",textDistance:10,textFill:r.textColor},zlevel:r[m],z:10001});o.animateShape(!0).when(1e3,{endAngle:3*n/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*n/2}).delay(300).start("circularInOut");var u=new e.Group;return u.add(o),u.add(s),u.add(a),u.resize=function(){var e=t[J]()/2,i=t[K]()/2;o[b]({cx:e,cy:i});var n=o.shape.r;s[b]({x:e-n,y:i-n,width:2*n,height:2*n}),a[b]({x:0,y:0,width:t[J](),height:t[K]()})},u.resize(),u}}),e("echarts/visual/seriesColor",[ae,"zrender/graphic/Gradient"],function(t){var e=t("zrender/graphic/Gradient");return function(t,i,n){function r(t){var r=[i,ft,"color"],a=n.get("color"),o=t[lt](),s=t.get(r)||a[t[ht]%a[ee]];o[p]("color",s),n.isSeriesFiltered(t)||(typeof s!==jt||s instanceof e||o.each(function(e){o[d](e,"color",s(t[rt](e)))}),o.each(function(t){var e=o[at](t),i=e.get(r,!0);null!=i&&o[d](t,"color",i)}))}t?n[f](t,r):n.eachSeries(r)}}),e("echarts/preprocessor/helper/compatStyle",[ae,ne],function(t){function e(t){var e=t&&t[h];e&&i.each(n,function(n){var r=e[ft],a=e[dt];r&&r[n]&&(t[n]=t[n]||{},t[n][ft]?i.merge(t[n][ft],r[n]):t[n][ft]=r[n],r[n]=null),a&&a[n]&&(t[n]=t[n]||{},t[n][dt]?i.merge(t[n][dt],a[n]):t[n][dt]=a[n],a[n]=null)})}var i=t(ne),n=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];return function(t){e(t);var n=t.data;if(n){for(var r=0;r<n[ee];r++)e(n[r]);var a=t.markPoint;if(a&&a.data)for(var o=a.data,r=0;r<o[ee];r++)e(o[r]);var s=t.markLine;if(s&&s.data)for(var u=s.data,r=0;r<u[ee];r++)i[Xt](u[r])?(e(u[r][0]),e(u[r][1])):e(u[r])}}}),e("echarts/preprocessor/backwardCompat",[ae,ne,"./helper/compatStyle"],function(t){function e(t,e){e=e.split(",");for(var i=t,n=0;n<e[ee]&&(i=i&&i[e[n]],null!=i);n++);return i}function i(t,e,i,n){e=e.split(",");for(var r,a=t,o=0;o<e[ee]-1;o++)r=e[o],null==a[r]&&(a[r]={}),a=a[r];(n||null==a[e[o]])&&(a[e[o]]=i)}function n(t){c(o,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var r=t(ne),a=t("./helper/compatStyle"),o=[["x","left"],["y","top"],["x2","right"],["y2",Vt]],s=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],u=["bar","boxplot","candlestick","chord","effectScatter","funnel","gauge","lines","graph","heatmap","line","map","parallel","pie","radar","sankey","scatter","treemap"],c=r.each;return function(t){c(t.series,function(t){if(r[nt](t)){var o=t.type;if(a(t),("pie"===o||"gauge"===o)&&null!=t.clockWise&&(t.clockwise=t.clockWise),"gauge"===o){var s=e(t,"pointer.color");null!=s&&i(t,"itemStyle.normal.color",s)}for(var c=0;c<u[ee];c++)if(u[c]===t.type){n(t);break}}}),t.dataRange&&(t.visualMap=t.dataRange),c(s,function(e){var i=t[e];i&&(r[Xt](i)||(i=[i]),c(i,function(t){n(t)}))})}}),e("echarts/echarts",[ae,"./model/Global","./ExtensionAPI","./CoordinateSystem","./model/OptionManager","./model/Component","./model/Series","./view/Component","./view/Chart","./util/graphic","zrender",ne,"zrender/tool/color","zrender/core/env","zrender/mixin/Eventful","./loading/default","./visual/seriesColor","./preprocessor/backwardCompat","./util/graphic","./util/number","./util/format",Tt,Pt],function(t){function e(t){return function(e,i,n){e=e&&e[qt](),F[re][t].call(this,e,i,n)}}function i(){F.call(this)}function n(t,e,n){n=n||{},typeof e===Qt&&(e=ut[e]),e&&q(ot,function(t){t(e)}),this.id,this.group,this._dom=t,this._zr=P.init(t,{renderer:n.renderer||te,devicePixelRatio:n.devicePixelRatio}),this._theme=D.clone(e),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._api=new M(this),this._coordinateSystem=new S,F.call(this),this._messageCenter=new i,this._initEvents(),this.resize=D.bind(this.resize,this)}function r(t,e){var i=this._model;i&&i.eachComponent({mainType:"series",query:e},function(n,r){var a=this._chartsMap[n.__viewId];a&&a.__alive&&a[t](n,i,this._api,e)},this)}function a(t,e,i){var n=this._api;q(this._componentsViews,function(r){var a=r.__model;r[t](a,e,n,i),y(a,r)},this),e.eachSeries(function(r,a){var o=this._chartsMap[r.__viewId];
  o[t](r,e,n,i),y(r,o)},this)}function o(t,e){for(var i="component"===t,n=i?this._componentsViews:this._chartsViews,r=i?this._componentsMap:this._chartsMap,a=this._zr,o=0;o<n[ee];o++)n[o].__alive=!1;e[i?"eachComponent":"eachSeries"](function(t,o){if(i){if("series"===t)return}else o=t;var s=o.id+"_"+o.type,u=r[s];if(!u){var c=L.parseClassType(o.type),l=i?A[Rt](c.main,c.sub):T[Rt](c.sub);if(!l)return;u=new l,u.init(e,this._api),r[s]=u,n.push(u),a.add(u.group)}o.__viewId=s,u.__alive=!0,u.__id=s,u.__model=o},this);for(var o=0;o<n[ee];){var s=n[o];s.__alive?o++:(a[E](s.group),s.dispose(e,this._api),n[j](o,1),delete r[s.__id])}}function s(t){q(H,function(e){q(at[e]||[],function(e){e(t)})})}function f(t){var e={};t.eachSeries(function(t){var i=t.get("stack"),n=t[lt]();if(i&&"list"===n.type){var r=e[i];r&&(n.stackedOn=r),e[i]=n}})}function d(t,e){var i=this._api;q(it,function(n){n(t,i,e)})}function p(t,e){q(W,function(i){q(st[i]||[],function(i){i(t,e)})})}function g(t,e){var i=this._api;q(this._componentsViews,function(n){var r=n.__model;n.render(r,t,i,e),y(r,n)},this),q(this._chartsViews,function(t){t.__alive=!1},this),t.eachSeries(function(n,r){var a=this._chartsMap[n.__viewId];a.__alive=!0,a.render(n,t,i,e),y(n,a)},this),q(this._chartsViews,function(e){e.__alive||e[E](t,i)},this)}function y(t,e){var i=t.get("z"),n=t.get(m);e.group[R](function(t){null!=i&&(t.z=i),null!=n&&(t[m]=n)})}function b(t){function e(t,e){for(var i=0;i<t[ee];i++){var n=t[i];n[a]=e}}var i=0,n=1,r=2,a="__connectUpdateStatus";D.each(et,function(o,s){t._messageCenter.on(s,function(o){if(ft[t.group]&&t[a]!==i){var s=t.makeActionFromEvent(o),u=[];for(var c in ct){var l=ct[c];l!==t&&l.group===t.group&&u.push(l)}e(u,i),q(u,function(t){t[a]!==n&&t.dispatchAction(s)}),e(u,r)}})})}var w=t("./model/Global"),M=t("./ExtensionAPI"),S=t("./CoordinateSystem"),C=t("./model/OptionManager"),L=t("./model/Component"),k=t("./model/Series"),A=t("./view/Component"),T=t("./view/Chart"),z=t("./util/graphic"),P=t("zrender"),D=t(ne),B=t("zrender/tool/color"),N=t("zrender/core/env"),F=t("zrender/mixin/Eventful"),q=D.each,W=["echarts","chart","component"],H=[X,ie,"statistic"];i[re].on=e("on"),i[re].off=e("off"),i[re].one=e("one"),D.mixin(i,F);var Z=n[re];Z.getDom=function(){return this._dom},Z.getZr=function(){return this._zr},Z.setOption=function(t,e,i){(!this._model||e)&&(this._model=new w(null,null,this._theme,new C(this._api))),this._model.setOption(t,ot),U.prepareAndUpdate.call(this),!i&&this._zr.refreshImmediately()},Z.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},Z[xt]=function(){return this._model},Z.getOption=function(){return D.clone(this._model[vt])},Z[J]=function(){return this._zr[J]()},Z[K]=function(){return this._zr[K]()},Z.getRenderedCanvas=function(t){if(N.canvasSupported){t=t||{},t.pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr,i=e.storage.getDisplayList();return D.each(i,function(t){t[V](!0)}),e.painter.getRenderedCanvas(t)}},Z.getDataURL=function(t){t=t||{};var e=t.excludeComponents,i=this._model,n=[],r=this;q(e,function(t){i.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group[G]||(n.push(e),e.group[G]=!0)})});var a=this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return q(n,function(t){t.group[G]=!1}),a},Z.getConnectedDataURL=function(t){if(N.canvasSupported){var e=this.group,i=Math.min,n=Math.max,r=1/0;if(ft[e]){var a=r,o=r,s=-r,u=-r,c=[],l=t&&t.pixelRatio||1;for(var h in ct){var f=ct[h];if(f.group===e){var d=f.getRenderedCanvas(D.clone(t)),p=f.getDom().getBoundingClientRect();a=i(p.left,a),o=i(p.top,o),s=n(p.right,s),u=n(p[Vt],u),c.push({dom:d,left:p.left,top:p.top})}}a*=l,o*=l,s*=l,u*=l;var v=s-a,m=u-o,g=D.createCanvas();g.width=v,g[Lt]=m;var y=P.init(g);return q(c,function(t){var e=new z.Image({style:{x:t.left*l-a,y:t.top*l-o,image:t.dom}});y.add(e)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}};var U={update:function(t){var e=this._model;if(e){e.restoreData(),s.call(this,e),f.call(this,e),this._coordinateSystem[v](e,this._api),d.call(this,e,t),p.call(this,e,t),g.call(this,e,t);var i=e.get("backgroundColor")||"transparent",n=this._zr.painter;if(n.isSingleCanvas&&n.isSingleCanvas())this._zr.configLayer(0,{clearColor:i});else{if(!N.canvasSupported){var r=B.parse(i);i=B.stringify(r,"rgb"),0===r[3]&&(i="transparent")}i=i,this._dom.style.backgroundColor=i}}},updateView:function(t){var e=this._model;e&&(d.call(this,e,t),p.call(this,e,t),a.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(p.call(this,e,t),a.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(d.call(this,e,t),a.call(this,"updateLayout",e,t))},highlight:function(t){r.call(this,"highlight",t)},downplay:function(t){r.call(this,"downplay",t)},prepareAndUpdate:function(t){var e=this._model;o.call(this,"component",e),o.call(this,"chart",e),U[v].call(this,t)}};Z.resize=function(){this._zr.resize();var t=this._model&&this._model.resetOption("media");U[t?"prepareAndUpdate":v].call(this),this._loadingFX&&this._loadingFX.resize()};var Y=t("./loading/default");Z.showLoading=function(t,e){D[nt](t)&&(e=t,t="default");var i=Y(this._api,e),n=this._zr;this._loadingFX=i,n.add(i)},Z.hideLoading=function(){this._loadingFX&&this._zr[E](this._loadingFX),this._loadingFX=null},Z.makeActionFromEvent=function(t){var e=D[Ft]({},t);return e.type=et[t.type],e},Z.dispatchAction=function(t,e){var i=Q[t.type];if(i){var n=i.actionInfo,r=n[v]||v,a=[t],o=!1;t.batch&&(o=!0,a=D.map(t.batch,function(e){return e=D[wt](D[Ft]({},e),t),e.batch=null,e}));for(var s,u=[],c="highlight"===t.type||"downplay"===t.type,l=0;l<a[ee];l++){var h=a[l];s=i.action(h,this._model),s=s||D[Ft]({},h),s.type=n.event||s.type,u.push(s),c&&U[r].call(this,h)}"none"!==r&&!c&&U[r].call(this,t),e||(s=o?{type:u[0].type,batch:u}:u[0],this._messageCenter[O](s.type,s))}},Z.on=e("on"),Z.off=e("off"),Z.one=e("one");var $=["click","dblclick",x,_,"globalout"];Z._initEvents=function(){var t=this._zr;q($,function(e){t.on(e,function(t){var i=this[xt](),n=t.target;if(n&&null!=n[I]){var r=n[l]||i.getSeriesByIndex(n[ht]),a=r&&r[rt](n[I])||{};a.event=t,a.type=e,this[O](e,a)}},this)},this),q(et,function(t,e){this._messageCenter.on(e,function(t){this[O](e,t)},this)},this)},Z.isDisposed=function(){return this._disposed},Z.clear=function(){this.setOption({},!0)},Z.dispose=function(){this._disposed=!0;var t=this._api,e=this._model;q(this._componentsViews,function(i){i.dispose(e,t)}),q(this._chartsViews,function(i){i.dispose(e,t)}),this._zr.dispose(),ct[this.id]=null},D.mixin(n,F);var Q=[],et={},it=[],at={},ot=[],st={},ut={},ct={},ft={},dt=new Date-0,pt=new Date-0,mt="_echarts_instance_",gt={version:"3.1.1",dependencies:{zrender:"3.0.2"}};return gt.init=function(t,e,i){if(P.version[Ut](".","")-0<gt.dependencies.zrender[Ut](".","")-0)throw new Error("ZRender "+P.version+" is too old for ECharts "+gt.version+". Current version need ZRender "+gt.dependencies.zrender+"+");if(!t)throw new Error("Initialize failed: invalid dom.");var r=new n(t,e,i);return r.id="ec_"+dt++,ct[r.id]=r,t.setAttribute&&t.setAttribute(mt,r.id),b(r),r},gt.connect=function(t){if(D[Xt](t)){var e=t;t=null,D.each(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+pt++,D.each(e,function(e){e.group=t})}return ft[t]=!0,t},gt.disConnect=function(t){ft[t]=!1},gt.dispose=function(t){D.isDom(t)?t=gt.getInstanceByDom(t):typeof t===Qt&&(t=ct[t]),t instanceof n&&!t.isDisposed()&&t.dispose()},gt.getInstanceByDom=function(t){var e=t.getAttribute(mt);return ct[e]},gt.getInstanceById=function(t){return ct[t]},gt.registerTheme=function(t,e){ut[t]=e},gt.registerPreprocessor=function(t){ot.push(t)},gt.registerProcessor=function(t,e){if(D[Kt](H,t)<0)throw new Error("stage should be one of "+H);var i=at[t]||(at[t]=[]);i.push(e)},gt.registerAction=function(t,e,i){typeof e===jt&&(i=e,e="");var n=D[nt](t)?t.type:[t,t={event:e}][0];t.event=(t.event||n)[qt](),e=t.event,Q[n]||(Q[n]={action:i,actionInfo:t}),et[e]=n},gt.registerCoordinateSystem=function(t,e){S.register(t,e)},gt[c]=function(t){D[Kt](it,t)<0&&it.push(t)},gt[u]=function(t,e){if(D[Kt](W,t)<0)throw new Error("stage should be one of "+W);var i=st[t]||(st[t]=[]);i.push(e)},gt.extendChartView=function(t){return T[Ft](t)},gt.extendComponentModel=function(t){return L[Ft](t)},gt.extendSeriesModel=function(t){return k[Ft](t)},gt.extendComponentView=function(t){return A[Ft](t)},gt.setCanvasCreator=function(t){D.createCanvas=t},gt[u]("echarts",D.curry(t("./visual/seriesColor"),"",h)),gt.registerPreprocessor(t("./preprocessor/backwardCompat")),gt.registerAction({type:"highlight",event:"highlight",update:"highlight"},D.noop),gt.registerAction({type:"downplay",event:"downplay",update:"downplay"},D.noop),gt.graphic=t("./util/graphic"),gt[$t]=t("./util/number"),gt.format=t("./util/format"),gt.matrix=t(Tt),gt.vector=t(Pt),gt.util={},q(["map","each",ie,Kt,Nt,"reduce",ie,"bind","curry",Xt,tt,nt,"isFunction",Ft],function(t){gt.util[t]=D[t]}),gt}),e("echarts",["echarts/echarts"],function(t){return t}),e("echarts/data/DataDiffer",[ae],function(t){function e(t){return t}function i(t,i,n,r){this._old=t,this._new=i,this._oldKeyGetter=n||e,this._newKeyGetter=r||e}function n(t,e,i){for(var n=0;n<t[ee];n++){var r=i(t[n]),a=e[r];null==a?e[r]=n:(a[ee]||(e[r]=a=[a]),a.push(n))}}return i[re]={constructor:i,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t,e=this._old,i=this._new,r=this._oldKeyGetter,a=this._newKeyGetter,o={},s={};for(n(e,o,r),n(i,s,a),t=0;t<e[ee];t++){var u=r(e[t]),c=s[u];if(null!=c){var l=c[ee];l?(1===l&&(s[u]=null),c=c.unshift()):s[u]=null,this._update&&this._update(c,t)}else this._remove&&this._remove(t)}for(var u in s)if(s.hasOwnProperty(u)){var c=s[u];if(null==c)continue;if(c[ee])for(var t=0,l=c[ee];l>t;t++)this._add&&this._add(c[t]);else this._add&&this._add(c)}}},i}),e("echarts/data/List",[ae,"../model/Model","./DataDiffer",ne,"../util/model"],function(t){function e(t){return f[Xt](t)||(t=[t]),t}var i=zt,n=typeof window===zt?global:window,r=typeof n.Float64Array===i?Array:n.Float64Array,a=typeof n.Int32Array===i?Array:n.Int32Array,u={"float":r,"int":a,ordinal:Array,number:Array,time:Array},c=t("../model/Model"),h=t("./DataDiffer"),f=t(ne),v=t("../util/model"),m=f[nt],g=["stackedOn","_nameList","_idList","_rawData"],y=function(t,e,i){f.each(g[Yt](i||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})},_=function(t,e){t=t||["x","y"];for(var i={},n=[],r=0;r<t[ee];r++){var a,o={};typeof t[r]===Qt?(a=t[r],o={name:a,stackable:!1,type:"number"}):(o=t[r],a=o.name,o.type=o.type||$t),n.push(a),i[a]=o}this[Y]=n,this._dimensionInfos=i,this[l]=e,this.indices=[],this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this.stackedOn=null,this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._rawData,this._extent},x=_[re];x.type="list",x.getDimension=function(t){return isNaN(t)||(t=this[Y][t]||t),t},x.getDimensionInfo=function(t){return f.clone(this._dimensionInfos[this.getDimension(t)])},x.initData=function(t,e,i){t=t||[],this._rawData=t;var n=this._storage={},r=this.indices=[],a=this[Y],o=t[ee],s=this._dimensionInfos,c=[],l={};e=e||[];for(var h=0;h<a[ee];h++){var d=s[a[h]],p=u[d.type];n[a[h]]=new p(o)}i=i||function(t,e,i,n){var r=v.getDataItemValue(t);return v.converDataValue(f[Xt](r)?r[n]:r,s[e])};for(var m=0;m<t[ee];m++){for(var g=t[m],y=0;y<a[ee];y++){var _=a[y],x=n[_];x[m]=i(g,_,m,y)}r.push(m)}for(var h=0;h<t[ee];h++){var b="";e[h]||(e[h]=t[h].name,b=t[h].id);var w=e[h]||"";!b&&w&&(l[w]=l[w]||0,b=w,l[w]>0&&(b+="__ec__"+l[w]),l[w]++),b&&(c[h]=b)}this._nameList=e,this._idList=c},x.count=function(){return this.indices[ee]},x.get=function(t,e,i){var n=this._storage,r=this.indices[e],a=n[t]&&n[t][r];if(i){var o=this._dimensionInfos[t];if(o&&o.stackable)for(var s=this.stackedOn;s;){var u=s.get(t,e);(a>=0&&u>0||0>=a&&0>u)&&(a+=u),s=s.stackedOn}}return a},x.getValues=function(t,e,i){var n=[];f[Xt](t)||(i=e,e=t,t=this[Y]);for(var r=0,a=t[ee];a>r;r++)n.push(this.get(t[r],e,i));return n},x.hasValue=function(t){for(var e=this[Y],i=this._dimensionInfos,n=0,r=e[ee];r>n;n++)if(i[e[n]].type!==ct&&isNaN(this.get(e[n],t)))return!1;return!0},x.getDataExtent=function(t,e){var i=this._storage[t],n=this.getDimensionInfo(t);e=n&&n.stackable&&e;var r,a=(this._extent||(this._extent={}))[t+!!e];if(a)return a;if(i){for(var o=1/0,s=-(1/0),u=0,c=this.count();c>u;u++)r=this.get(t,u,e),o>r&&(o=r),r>s&&(s=r);return this._extent[t+e]=[o,s]}return[1/0,-(1/0)]},x.getSum=function(t,e){var i=this._storage[t],n=0;if(i)for(var r=0,a=this.count();a>r;r++){var o=this.get(t,r,e);isNaN(o)||(n+=o)}return n},x[Kt]=function(t,e){var i=this._storage,n=i[t],r=this.indices;if(n)for(var a=0,o=r[ee];o>a;a++){var s=r[a];if(n[s]===e)return a}return-1},x.indexOfName=function(t){for(var e=this.indices,i=this._nameList,n=0,r=e[ee];r>n;n++){var a=e[n];if(i[a]===t)return n}return-1},x.indexOfNearest=function(t,e,i){f[Xt](t)||(t=t?[t]:[]);var n=this._storage,r=n[t];if(r){for(var a=Number.MAX_VALUE,o=-1,s=0,u=t[ee];u>s;s++)for(var c=0,l=this.count();l>c;c++){var h=Math.abs(this.get(t[s],c,i)-e);a>=h&&(a=h,o=c)}return o}return-1},x[st]=function(t){var e=this.indices[t];return null==e?-1:e},x[ot]=function(t){return this._nameList[this.indices[t]]||""},x.getId=function(t){return this._idList[this.indices[t]]||this[st](t)+""},x.each=function(t,i,n,r){typeof t===jt&&(r=n,n=i,i=t,t=[]),t=f.map(e(t),this.getDimension,this);var a=[],o=t[ee],s=this.indices;r=r||this;for(var u=0;u<s[ee];u++)if(0===o)i.call(r,u);else if(1===o)i.call(r,this.get(t[0],u,n),u);else{for(var c=0;o>c;c++)a[c]=this.get(t[c],u,n);a[c]=u,i.apply(r,a)}},x.filterSelf=function(t,i,n,r){typeof t===jt&&(r=n,n=i,i=t,t=[]),t=f.map(e(t),this.getDimension,this);var a=[],o=[],s=t[ee],u=this.indices;r=r||this;for(var c=0;c<u[ee];c++){var l;if(1===s)l=i.call(r,this.get(t[0],c,n),c);else{for(var h=0;s>h;h++)o[h]=this.get(t[h],c,n);o[h]=c,l=i.apply(r,o)}l&&a.push(u[c])}return this.indices=a,this._extent={},this},x.mapArray=function(t,e,i,n){typeof t===jt&&(n=i,i=e,e=t,t=[]);var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},i,n),r},x.map=function(t,i,n,r){t=f.map(e(t),this.getDimension,this);var a=this[Y],o=new _(f.map(a,this.getDimensionInfo,this),this[l]),s=o.indices=this.indices;y(o,this,this._wrappedMethods);for(var u=o._storage={},c=this._storage,h=0;h<a[ee];h++){var d=a[h],p=c[d];f[Kt](t,d)>=0?u[d]=new p.constructor(c[d][ee]):u[d]=c[d]}var v=[];return this.each(t,function(){var e=arguments[arguments[ee]-1],n=i&&i.apply(this,arguments);if(null!=n){typeof n===$t&&(v[0]=n,n=v);for(var r=0;r<n[ee];r++){var a=t[r],o=u[a],c=s[e];o&&(o[c]=n[r])}}},n,r),o},x[at]=function(t){var e=this[l];return t=this.indices[t],new c(this._rawData[t],e,e[bt])},x.diff=function(t){var e=this._idList,i=t&&t._idList;return new h(t?t.indices:[],this.indices,function(t){return i[t]||t+""},function(t){return e[t]||t+""})},x.getVisual=function(t){var e=this._visual;return e&&e[t]},x[p]=function(t,e){if(m(t))for(var i in t)t.hasOwnProperty(i)&&this[p](i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},x.setLayout=function(t,e){if(m(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);else this._layout[t]=e},x.getLayout=function(t){return this._layout[t]},x[s]=function(t){return this._itemLayouts[t]},x.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?f[Ft](this._itemLayouts[t]||{},e):e},x.getItemVisual=function(t,e,i){var n=this._itemVisuals[t],r=n&&n[e];return null!=r||i?r:this.getVisual(e)},x[d]=function(t,e,i){var n=this._itemVisuals[t]||{};if(this._itemVisuals[t]=n,m(e))for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);else n[e]=i};var b=function(t){t[ht]=this[ht],t[I]=this[I]};return x[o]=function(t,e){var i=this[l];e&&(e[I]=t,e[ht]=i&&i[ht],"group"===e.type&&e[R](b,e)),this._graphicEls[t]=e},x[D]=function(t){return this._graphicEls[t]},x[P]=function(t,e){f.each(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},x.cloneShallow=function(){var t=f.map(this[Y],this.getDimensionInfo,this),e=new _(t,this[l]);return e._storage=this._storage,y(e,this,this._wrappedMethods),e.indices=this.indices.slice(),e},x.wrapMethod=function(t,e){var i=this[t];typeof i===jt&&(this._wrappedMethods=this._wrappedMethods||[],this._wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.call(this,t)})},_}),e("echarts/data/helper/completeDimensions",[ae,ne],function(t){function e(t,e,a){if(!e)return t;var o=n(e[0]),s=r[Xt](o)&&o[ee]||1;a=a||[];for(var u=0;s>u;u++)if(!t[u]){var c=a[u]||"extra"+(u-a[ee]);t[u]=i(e,u)?{type:"ordinal",name:c}:c}return t}function i(t,e){for(var i=0,a=t[ee];a>i;i++){var o=n(t[i]);if(!r[Xt](o))return!1;var o=o[e];if(null!=o&&isFinite(o))return!1;if(r[tt](o)&&"-"!==o)return!0}return!1}function n(t){return r[Xt](t)?t:r[nt](t)?t.value:t}var r=t(ne);return e}),e("echarts/chart/helper/createListFromArray",[ae,"../../data/List","../../data/helper/completeDimensions",ne,"../../util/model","../../CoordinateSystem"],function(t){function e(t){for(var e=0;e<t[ee]&&null==t[e];)e++;return t[e]}function i(t){var i=e(t);return null!=i&&!l[Xt](d(i))}function n(t,e,n){t=t||[];var r=e.get($),a=v[r],o=f.get(r),l=a&&a(t,e,n),h=l&&l[Y];h||(h=o&&o[Y]||["x","y"],h=c(h,t,h[Yt](["value"])));var m=l&&l.categoryAxisModel,g=h[0].type===ct?0:h[1].type===ct?1:-1,y=new u(h,e),_=s(l,t),x=m&&i(t)?function(t,e,i,n){return n===g?i:p(d(t),h[n])}:function(t,e,i,n){var r=d(t);return p(r&&r[n],h[n])};return y.initData(t,_,x),y}function r(t){return t!==a&&"time"!==t}function o(t){return t===a?ct:"time"===t?"time":"float"}function s(t,e){var i=[];if(t&&t.categoryAxisModel){var n=t.categoryAxisModel.getCategories();if(n){var r=e[ee];if(l[Xt](e[0])&&e[0][ee]>1){i=[];for(var a=0;r>a;a++)i[a]=n[e[a][0]]}else i=n.slice(0)}}return i}var u=t("../../data/List"),c=t("../../data/helper/completeDimensions"),l=t(ne),h=t("../../util/model"),f=t("../../CoordinateSystem"),d=h.getDataItemValue,p=h.converDataValue,v={cartesian2d:function(t,e,i){var n=i[Q]("xAxis",e.get("xAxisIndex")),s=i[Q]("yAxis",e.get("yAxisIndex")),u=n.get("type"),l=s.get("type"),h=[{name:"x",type:o(u),stackable:r(u)},{name:"y",type:o(l),stackable:r(l)}];return c(h,t,["x","y","z"]),{dimensions:h,categoryAxisModel:u===a?n:l===a?s:null}},polar:function(t,e,i){var n=e.get("polarIndex")||0,s=function(t){return t.get("polarIndex")===n},u=i.findComponents({mainType:"angleAxis",filter:s})[0],l=i.findComponents({mainType:"radiusAxis",filter:s})[0],h=l.get("type"),f=u.get("type"),d=[{name:"radius",type:o(h),stackable:r(h)},{name:"angle",type:o(f),stackable:r(f)}];return c(d,t,[pt,"angle","value"]),{dimensions:d,categoryAxisModel:f===a?u:h===a?l:null}},geo:function(t,e,i){return{dimensions:c([{name:"lng"},{name:"lat"}],t,["lng","lat","value"])}}};return n}),e("echarts/chart/line/LineSeries",[ae,"../helper/createListFromArray","../../model/Series"],function(t){var e=t("../helper/createListFromArray"),i=t("../../model/Series");return i[Ft]({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,i){return e(t.data,this,i)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,polarIndex:0,clipOverflow:!0,label:{normal:{position:"top"},emphasis:{position:"top"}},lineStyle:{normal:{width:2,type:"solid"}},symbol:"emptyCircle",symbolSize:4,showSymbol:!0,animationEasing:"linear"}})}),e("echarts/util/symbol",[ae,"./graphic",At],function(t){var e=t("./graphic"),i=t(At),n=e.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,a=e[Lt]/2;t[L](i,n-a),t[C](i+r,n+a),t[C](i-r,n+a),t[M]()}}),r=e.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,a=e[Lt]/2;t[L](i,n-a),t[C](i+r,n),t[C](i,n+a),t[C](i-r,n),t[M]()}}),a=e.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,r=e.width/5*3,a=Math.max(r,e[Lt]),o=r/2,s=o*o/(a-o),u=n-a+o+s,c=Math.asin(s/o),l=Math.cos(c)*o,h=Math.sin(c),f=Math.cos(c);t.arc(i,u,o,Math.PI-c,2*Math.PI+c);var d=.6*o,p=.7*o;t[S](i+l-h*d,u+s+f*d,i,n-p,i,n),t[S](i,n-p,i-l+h*d,u+s+f*d,i-l,u+s),t[M]()}}),o=e.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e[Lt],n=e.width,r=e.x,a=e.y,o=n/3*2;t[L](r,a),t[C](r+o,a+i),t[C](r,a+i/4*3),t[C](r-o,a+i),t[C](r,a),t[M]()}}),s={line:e.Line,rect:e.Rect,roundRect:e.Rect,square:e.Rect,circle:e.Circle,diamond:r,pin:a,arrow:o,triangle:n},u={line:function(t,e,i,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+i,r.y2=e+n/2},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[Lt]=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[Lt]=n,r.r=Math.min(i,n)/4},square:function(t,e,i,n,r){var a=Math.min(i,n);r.x=t,r.y=e,r.width=a,r[Lt]=a},circle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.r=Math.min(i,n)/2},diamond:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r[Lt]=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[Lt]=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[Lt]=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r[Lt]=n}},c={};for(var l in s)c[l]=new s[l];var h=e.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style,e=this.shape;"pin"===e.symbolType&&t.textPosition===Mt&&(t.textPosition=["50%","40%"],t[z]=Ht,t[T]=Wt)},buildPath:function(t,e){var i=e.symbolType,n=c[i];"none"!==e.symbolType&&(n||(i="rect",n=c[i]),u[i](e.x,e.y,e.width,e[Lt],n.shape),n[w](t,n.shape))}}),f=function(t){if("image"!==this.type){var e=this.style,i=this.shape;i&&"line"===i.symbolType?e[It]=t:this.__isEmptyBrush?(e[It]=t,e.fill="#fff"):(e.fill&&(e.fill=t),e[It]&&(e[It]=t)),this.dirty()}},d={createSymbol:function(t,n,r,a,o,s){var u=0===t[Kt]("empty");u&&(t=t.substr(5,1)[qt]()+t.substr(6));var c;return c=0===t[Kt]("image://")?new e.Image({style:{image:t.slice(8),x:n,y:r,width:a,height:o}}):0===t[Kt]("path://")?e.makePath(t.slice(7),{},new i(n,r,a,o)):new h({shape:{symbolType:t,x:n,y:r,width:a,height:o}}),c.__isEmptyBrush=u,c.setColor=f,c.setColor(s),c}};return d}),e("echarts/chart/helper/Symbol",[ae,ne,"../../util/symbol","../../util/graphic","../../util/number"],function(t){function e(t){return r[Xt](t)||(t=[+t,+t]),t}function i(t,e){o.Group.call(this),this.updateData(t,e)}function n(t,e){this[Z].drift(t,e)}var r=t(ne),a=t("../../util/symbol"),o=t("../../util/graphic"),s=t("../../util/number"),u=i[re];u._createSymbol=function(t,i,r){this[B]();var s=i[l],u=i.getItemVisual(r,"color"),c=a.createSymbol(t,-.5,-.5,1,1,u);c.attr({style:{strokeNoScale:!0},z2:100,culling:!0,scale:[0,0]}),c.drift=n;var h=e(i.getItemVisual(r,"symbolSize"));o[g](c,{scale:h},s),this._symbolType=t,this.add(c)},u.stopSymbolAnimation=function(t){this[et](0)[V](t)},u.getScale=function(){return this[et](0).scale},u.highlight=function(){this[et](0)[O](dt)},u.downplay=function(){this[et](0)[O](ft)},u.setZ=function(t,e){var i=this[et](0);i[m]=t,i.z=e},u.setDraggable=function(t){var e=this[et](0);e.draggable=t,e.cursor=t?"move":"pointer"},u.updateData=function(t,i){var n=t.getItemVisual(i,"symbol")||"circle",r=t[l],a=e(t.getItemVisual(i,"symbolSize"));if(n!==this._symbolType)this._createSymbol(n,t,i);else{var s=this[et](0);o[y](s,{scale:a},r)}this._updateCommon(t,i,a),this._seriesModel=r};var c=[h,ft],f=[h,dt],d=["label",ft],p=["label",dt];return u._updateCommon=function(t,i,n){var a=this[et](0),u=t[l],h=t[at](i),v=h[xt](c),m=t.getItemVisual(i,"color"),g=h[xt](f).getItemStyle();a[U]=h[Bt]("symbolRotate")*Math.PI/180||0;var y=h[Bt]("symbolOffset");if(y){var b=a[it];b[0]=s[Zt](y[0],n[0]),b[1]=s[Zt](y[1],n[1])}a.setColor(m),r[Ft](a.style,v.getItemStyle(["color"]));var w=h[xt](d),M=h[xt](p),S=t[Y][t[Y][ee]-1],C=a.style;w.get("show")?(o.setText(C,w,m),C.text=u.getFormattedLabel(i,ft)||t.get(S,i)):C.text="",M[Bt]("show")?(o.setText(g,M,m),g.text=u.getFormattedLabel(i,dt)||t.get(S,i)):g.text="";var L=e(t.getItemVisual(i,"symbolSize"));if(a.off(x).off(_).off(dt).off(ft),o.setHoverStyle(a,g),h[Bt]("hoverAnimation")){var k=function(){var t=L[1]/L[0];this.animateTo({scale:[Math.max(1.1*L[0],L[0]+3),Math.max(1.1*L[1],L[1]+3*t)]},400,"elasticOut")},A=function(){this.animateTo({scale:L},400,"elasticOut")};a.on(x,k).on(_,A).on(dt,k).on(ft,A)}},u.fadeOut=function(t){var e=this[et](0);e.style.text="",o[y](e,{scale:[0,0]},this._seriesModel,t)},r[Nt](i,o.Group),i}),e("echarts/chart/helper/SymbolDraw",[ae,"../../util/graphic","./Symbol"],function(t){function e(t){this.group=new n.Group,this._symbolCtor=t||r}function i(t,e,i){var n=t[s](e);return n&&!isNaN(n[0])&&!isNaN(n[1])&&!(i&&i(e))&&"none"!==t.getItemVisual(e,"symbol")}var n=t("../../util/graphic"),r=t("./Symbol"),a=e[re];return a.updateData=function(t,e){var r=this.group,a=t[l],u=this._data,c=this._symbolCtor;t.diff(u).add(function(n){var a=t[s](n);if(i(t,n,e)){var u=new c(t,n);u.attr(it,a),t[o](n,u),r.add(u)}})[v](function(l,h){var f=u[D](h),d=t[s](l);return i(t,l,e)?(f?(f.updateData(t,l),n[y](f,{position:d},a)):(f=new c(t,l),f.attr(it,d)),r.add(f),void t[o](l,f)):void r[E](f)})[E](function(t){var e=u[D](t);e&&e.fadeOut(function(){r[E](e)})}).execute(),this._data=t},a.updateLayout=function(){var t=this._data;t&&t[P](function(e,i){e.attr(it,t[s](i))})},a[E]=function(t){var e=this.group,i=this._data;i&&(t?i[P](function(t){t.fadeOut(function(){e[E](t)})}):e[B]())},e}),e("zrender/core/arrayDiff",[ae],function(t){function e(t,e){return t===e}function i(t,e,i){var n={cmd:t,idx:e};return"="===t&&(n.idx1=i),n}function n(t,e,n,r){t.push(i(e,n,r))}function r(t,e,i,n,r,a,o,u){var c,l,h,f=i>n,d=r>a,p=s(n-i),v=s(a-r);for(l=0;p>=l;l++)for(h=0;v>=h;h++)if(0===l)u[h]=h;else if(0===h)c=u[h],u[h]=l;else{var m=t[f?i-l:l-1+i],g=e[d?r-h:h-1+r],y=c+(o(m,g)?0:2),_=u[h]+1,x=u[h-1]+1;c=u[h],u[h]=_>y?y:_,x<u[h]&&(u[h]=x)}return u}function a(t,e,i,o,s,u,c,l,h){var f,d,p=[],v=o-i,m=u-s;if(v)if(m)if(1===v){var g=t[i],y=!1;for(d=0;m>d;d++)c(g,e[d+s])&&!y?(y=!0,n(p,"=",i,d+s)):n(p,"+",d+s);y||n(p,"-",i)}else if(1===m){var _=e[s],y=!1;for(f=0;v>f;f++)c(_,t[f+i])&&!y?(y=!0,n(p,"=",f+i,s)):n(p,"-",f+i);y||n(p,"+",s)}else{var x=(v/2|0)+i;r(t,e,i,x,s,u,c,l),r(t,e,o,x+1,u,s,c,h);var b,w=1/0,M=0;for(d=0;m>=d;d++)b=l[d]+h[m-d],w>b&&(w=b,M=d);M+=s,p=a(t,e,i,x,s,M,c,l,h);var S=a(t,e,x,o,M,u,c,l,h);for(f=0;f<S[ee];f++)p.push(S[f])}else for(f=0;v>f;f++)n(p,"-",f+i);else for(d=0;m>d;d++)n(p,"+",d+s);return p}function o(t,i,r){r=r||e;var o,s,u=t[ee],c=i[ee],l=Math.min(u,c),h=[];for(o=0;l>o&&r(t[o],i[o]);o++)n(h,"=",o,o);for(s=0;l>s&&r(t[u-s-1],i[c-s-1]);s++);if(u-s>=o||c-s>=o){var f=a(t,i,o,u-s,o,c-s,r,[],[]);for(o=0;o<f[ee];o++)h.push(f[o]);for(o=0;s>o;o++)n(h,"=",u-s+o,c-s+o)}return h}var s=Math.abs;return o}),e("echarts/chart/line/lineAnimationDiff",[ae,"zrender/core/arrayDiff"],function(t){function e(t){return t>=0?1:-1}function i(t,i,n){for(var a,o=t.getBaseAxis(),s=t.getOtherAxis(o),u=o.onZero?0:s.scale[r]()[0],c=s.dim,l="x"===c||c===pt?1:0,h=i.stackedOn,f=i.get(c,n);h&&e(h.get(c,n))===e(f);){a=h;break}var d=[];return d[l]=i.get(o.dim,n),d[1-l]=a?a.get(c,n,!0):u,t.dataToPoint(d)}var n=t("zrender/core/arrayDiff");return function(t,e,r,a,o,u){for(var c=e.mapArray(e.getId),l=t.mapArray(t.getId),h=[],f=[],d=[],p=[],v=[],m=[],g=[],y=n(l,c),_=u[Y],x=0;x<y[ee];x++){var b=y[x],w=!0;switch(b.cmd){case"=":var M=t[s](b.idx),S=e[s](b.idx1);(isNaN(M[0])||isNaN(M[1]))&&(M=S.slice()),h.push(M),f.push(S),d.push(r[b.idx]),p.push(a[b.idx1]),g.push(e[st](b.idx1));break;case"+":var C=b.idx;h.push(o.dataToPoint([e.get(_[0],C,!0),e.get(_[1],C,!0)])),f.push(e[s](C).slice()),d.push(i(o,e,C)),p.push(a[C]),g.push(e[st](C));break;case"-":var C=b.idx,L=t[st](C);L!==C?(h.push(t[s](C)),f.push(u.dataToPoint([t.get(_[0],C,!0),t.get(_[1],C,!0)])),d.push(r[C]),p.push(i(u,t,C)),g.push(L)):w=!1}w&&(v.push(b),m.push(m[ee]))}m.sort(function(t,e){return g[t]-g[e]});for(var k=[],A=[],T=[],z=[],P=[],x=0;x<m[ee];x++){var C=m[x];k[x]=h[C],A[x]=f[C],T[x]=d[C],z[x]=p[C],P[x]=v[C]}return{current:k,next:A,stackedOnCurrent:T,stackedOnNext:z,status:P}}}),e("echarts/chart/line/poly",[ae,"zrender/graphic/Path",Pt],function(t){function e(t,e,i,n,f,d,p,v,m,g){for(var y=i,_=0;f>_;_++){var x=e[y];if(y>=n||0>y||isNaN(x[0])||isNaN(x[1]))break;if(y===i)t[d>0?L:C](x[0],x[1]),u(l,x);else if(m>0){var b=y-d,w=y+d,M=.5,k=e[b],A=e[w];if(d>0&&(y===f-1||isNaN(A[0])||isNaN(A[1]))||0>=d&&(0===y||isNaN(A[0])||isNaN(A[1])))u(h,x);else{(isNaN(A[0])||isNaN(A[1]))&&(A=x),r.sub(c,A,k);var T,z;if("x"===g||"y"===g){var P="x"===g?0:1;T=Math.abs(x[P]-k[P]),z=Math.abs(x[P]-A[P])}else T=r.dist(x,k),z=r.dist(x,A);M=z/(z+T),s(h,x,c,-m*(1-M))}a(l,l,v),o(l,l,p),a(h,h,v),o(h,h,p),t[S](l[0],l[1],h[0],h[1],x[0],x[1]),s(l,x,c,m*M)}else t[C](x[0],x[1]);y+=d}return _}function i(t,e){var i=[1/0,1/0],n=[-(1/0),-(1/0)];if(e)for(var r=0;r<t[ee];r++){var a=t[r];a[0]<i[0]&&(i[0]=a[0]),a[1]<i[1]&&(i[1]=a[1]),a[0]>n[0]&&(n[0]=a[0]),a[1]>n[1]&&(n[1]=a[1])}return{min:e?i:n,max:e?n:i}}var n=t("zrender/graphic/Path"),r=t(Pt),a=r.min,o=r.max,s=r.scaleAndAdd,u=r.copy,c=[],l=[],h=[];return{Polyline:n[Ft]({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null},style:{fill:null,stroke:"#000"},buildPath:function(t,n){for(var r=n.points,a=0,o=r[ee],s=i(r,n.smoothConstraint);o>a;)a+=e(t,r,a,o,o,1,s.min,s.max,n.smooth,n.smoothMonotone)+1}}),Polygon:n[Ft]({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null},buildPath:function(t,n){for(var r=n.points,a=n.stackedOnPoints,o=0,s=r[ee],u=n.smoothMonotone,c=i(r,n.smoothConstraint),l=i(a,n.smoothConstraint);s>o;){var h=e(t,r,o,s,s,1,c.min,c.max,n.smooth,u);e(t,a,o+h-1,s,h,-1,l.min,l.max,n.stackedOnSmooth,u),o+=h+1,t[M]()}}})}}),e("echarts/chart/line/LineView",[ae,ne,"../helper/SymbolDraw","../helper/Symbol","./lineAnimationDiff","../../util/graphic","./poly","../../view/Chart"],function(t){function e(t,e){if(t[ee]===e[ee]){for(var i=0;i<t[ee];i++){var n=t[i],r=e[i];if(n[0]!==r[0]||n[1]!==r[1])return}return!0}}function a(t){return typeof t===$t?t:t?.3:0}function u(t){var e=t.getGlobalExtent();if(t.onBand){var i=t.getBandWidth()/2-1,n=e[1]>e[0]?1:-1;e[0]+=n*i,e[1]-=n*i}return e}function c(t){return t>=0?1:-1}function h(t,e){var i=t.getBaseAxis(),n=t.getOtherAxis(i),a=i.onZero?0:n.scale[r]()[0],o=n.dim,s="x"===o||o===pt?1:0;return e.mapArray([o],function(n,r){for(var u,l=e.stackedOn;l&&c(l.get(o,r))===c(n);){u=l;break}var h=[];return h[s]=e.get(i.dim,r),h[1-s]=u?u.get(o,r,!0):a,t.dataToPoint(h)},!0)}function f(t,e){return null!=e[I]?e[I]:null!=e.name?t.indexOfName(e.name):void 0}function d(t,e,r){var a=u(t[n]("x")),o=u(t[n]("y")),s=t.getBaseAxis()[i](),c=a[0],l=o[0],h=a[1]-c,f=o[1]-l;r.get("clipOverflow")||(s?(l-=f,f*=3):(c-=h,h*=3));var d=new S.Rect({shape:{x:c,y:l,width:h,height:f}});return e&&(d.shape[s?"width":Lt]=0,S[g](d,{shape:{width:h,height:f}},r)),d}function p(t,e,i){var n=t.getAngleAxis(),a=t.getRadiusAxis(),o=a[r](),s=n[r](),u=Math.PI/180,c=new S.Sector({shape:{cx:t.cx,cy:t.cy,r0:o[0],r:o[1],startAngle:-s[0]*u,endAngle:-s[1]*u,clockwise:n.inverse}});return e&&(c.shape.endAngle=-s[0]*u,S[g](c,{shape:{endAngle:-s[1]*u}},i)),c}function v(t,e,i){return"polar"===t.type?p(t,e,i):d(t,e,i)}var _=t(ne),x=t("../helper/SymbolDraw"),w=t("../helper/Symbol"),M=t("./lineAnimationDiff"),S=t("../../util/graphic"),C=t("./poly"),L=t("../../view/Chart");return L[Ft]({type:"line",init:function(){var t=new S.Group,e=new x;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,i,n){var r=t[$],u=this.group,c=t[lt](),f=t[xt]("lineStyle.normal"),d=t[xt]("areaStyle.normal"),p=c.mapArray(c[s],!0),m="polar"===r.type,g=this._coordSys,y=this._symbolDraw,x=this._polyline,w=this._polygon,M=this._lineGroup,S=t.get(W),C=!d.isEmpty(),L=h(r,c),k=t.get("showSymbol"),A=k&&!m&&!t.get("showAllSymbol")&&this._getSymbolIgnoreFunc(c,r),T=this._data;
  T&&T[P](function(t,e){t.__temp&&(u[E](t),T[o](e,null))}),k||y[E](),u.add(M),x&&g.type===r.type?(C&&!w?w=this._newPolygon(p,L,r,S):w&&!C&&(M[E](w),w=this._polygon=null),M.setClipPath(v(r,!1,t)),k&&y.updateData(c,A),c[P](function(t){t[V](!0)}),e(this._stackedOnPoints,L)&&e(this._points,p)||(S?this._updateAnimation(c,L,r,n):(x[b]({points:p}),w&&w[b]({points:p,stackedOnPoints:L})))):(k&&y.updateData(c,A),x=this._newPolyline(p,r,S),C&&(w=this._newPolygon(p,L,r,S)),M.setClipPath(v(r,!0,t))),x.setStyle(_[wt](f.getLineStyle(),{stroke:c.getVisual("color"),lineJoin:"bevel"}));var z=t.get("smooth");if(z=a(t.get("smooth")),x[b]({smooth:z,smoothMonotone:t.get("smoothMonotone")}),w){var D=c.stackedOn,I=0;if(w.style[Dt]=.7,w.setStyle(_[wt](d.getAreaStyle(),{fill:c.getVisual("color"),lineJoin:"bevel"})),D){var O=D[l];I=a(O.get("smooth"))}w[b]({smooth:z,stackedOnSmooth:I,smoothMonotone:t.get("smoothMonotone")})}this._data=c,this._coordSys=r,this._stackedOnPoints=L,this._points=p},highlight:function(t,e,i,n){var r=t[lt](),a=f(r,n);if(null!=a&&a>=0){var u=r[D](a);if(!u){var c=r[s](a);u=new w(r,a,i),u[it]=c,u.setZ(t.get(m),t.get("z")),u[G]=isNaN(c[0])||isNaN(c[1]),u.__temp=!0,r[o](a,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else L[re].highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var r=t[lt](),a=f(r,n);if(null!=a&&a>=0){var s=r[D](a);s&&(s.__temp?(r[o](a,null),this.group[E](s)):s.downplay())}else L[re].downplay.call(this,t,e,i,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup[E](e),e=new C.Polyline({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var i=this._polygon;return i&&this._lineGroup[E](i),i=new C.Polygon({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_getSymbolIgnoreFunc:function(t,e){var i=e.getAxesByScale(ct)[0];return i&&i.isLabelIgnored?_.bind(i.isLabelIgnored,i):void 0},_updateAnimation:function(t,e,i,n){var r=this._polyline,a=this._polygon,o=t[l],s=M(this._data,t,this._stackedOnPoints,e,this._coordSys,i);r.shape.points=s.current,S[y](r,{shape:{points:s.next}},o),a&&(a[b]({points:s.current,stackedOnPoints:s.stackedOnCurrent}),S[y](a,{shape:{points:s.next,stackedOnPoints:s.stackedOnNext}},o));for(var u=[],c=s.status,h=0;h<c[ee];h++){var f=c[h].cmd;if("="===f){var d=t[D](c[h].idx1);d&&u.push({el:d,ptIdx:h})}}r.animators&&r.animators[ee]&&r.animators[0].during(function(){for(var t=0;t<u[ee];t++){var e=u[t].el;e.attr(it,r.shape.points[u[t].ptIdx])}})},remove:function(t){this._lineGroup[B](),this._symbolDraw[E](!0),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}})}),e("echarts/visual/symbol",[ae],function(t){return function(t,e,i,n,r){n.eachRawSeriesByType(t,function(t){var r=t[lt](),a=t.get("symbol")||e,o=t.get("symbolSize");r[p]({legendSymbol:i||a,symbol:a,symbolSize:o}),n.isSeriesFiltered(t)||(typeof o===jt&&r.each(function(e){var i=t[ut](e),n=t[rt](e);r[d](e,"symbolSize",o(i,n))}),r.each(function(t){var e=r[at](t),i=e.get("symbol",!0),n=e.get("symbolSize",!0);null!=i&&r[d](t,"symbol",i),null!=n&&r[d](t,"symbolSize",n)}))})}}),e("echarts/layout/points",[ae],function(t){return function(t,e,i){e[f](t,function(t){var e=t[lt](),i=t[$],n=i[Y];e.each(n,function(t,n,r){var a;a=isNaN(t)||isNaN(n)?[NaN,NaN]:i.dataToPoint([t,n]),e.setItemLayout(r,a)},!0)})}}),e("echarts/chart/line",[ae,ne,"../echarts","./line/LineSeries","./line/LineView","../visual/symbol","../layout/points"],function(t){var e=t(ne),i=t("../echarts");t("./line/LineSeries"),t("./line/LineView"),i[u]("chart",e.curry(t("../visual/symbol"),"line","circle","line")),i[c](e.curry(t("../layout/points"),"line"))}),e("echarts/scale/Scale",[ae,mt],function(t){function e(){this._extent=[1/0,-(1/0)],this._interval=0,this.init&&this.init.apply(this,arguments)}var i=t(mt),n=e[re];return n.parse=function(t){return t},n[A]=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},n.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},n.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},n.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},n[r]=function(){return this._extent.slice()},n.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},n.getTicksLabels=function(){for(var t=[],e=this.getTicks(),i=0;i<e[ee];i++)t.push(this.getLabel(e[i]));return t},i[Gt](e),i[Et](e,{registerWhenExtend:!0}),e}),e("echarts/scale/Ordinal",[ae,ne,"./Scale"],function(t){var e=t(ne),i=t("./Scale"),n=i[re],r=i[Ft]({type:"ordinal",init:function(t,e){this._data=t,this._extent=e||[0,t[ee]-1]},parse:function(t){return typeof t===Qt?e[Kt](this._data,t):Math.round(t)},contain:function(t){return t=this.parse(t),n[A].call(this,t)&&null!=this._data[t]},normalize:function(t){return n.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(n.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push(i),i++;return t},getLabel:function(t){return this._data[t]},count:function(){return this._extent[1]-this._extent[0]+1},niceTicks:e.noop,niceExtent:e.noop});return r[Ct]=function(){return new r},r}),e("echarts/scale/Interval",[ae,"../util/number","../util/format","./Scale"],function(t){var e=t("../util/number"),i=t("../util/format"),n=t("./Scale"),r=Math.floor,a=Math.ceil,o=n[Ft]({type:"interval",_interval:0,setExtent:function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),o[re].setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval||this.niceTicks(),this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice()},getTicks:function(){this._interval||this.niceTicks();var t=this._interval,i=this._extent,n=[],r=1e4;if(t){var a=this._niceExtent;i[0]<a[0]&&n.push(i[0]);for(var o=a[0];o<=a[1];)if(n.push(o),o=e.round(o+t),n[ee]>r)return[];i[1]>a[1]&&n.push(i[1])}return n},getTicksLabels:function(){for(var t=[],e=this.getTicks(),i=0;i<e[ee];i++)t.push(this.getLabel(e[i]));return t},getLabel:function(t){return i.addCommas(t)},niceTicks:function(t){t=t||10;var i=this._extent,n=i[1]-i[0];if(!(n===1/0||0>=n)){var o=Math.pow(10,Math.floor(Math.log(n/t)/Math.LN10)),s=t/n*o;.15>=s?o*=10:.3>=s?o*=5:.45>=s?o*=3:.75>=s&&(o*=2);var u=[e.round(a(i[0]/o)*o),e.round(r(i[1]/o)*o)];this._interval=o,this._niceExtent=u}},niceExtent:function(t,i,n){var o=this._extent;if(o[0]===o[1])if(0!==o[0]){var s=o[0]/2;o[0]-=s,o[1]+=s}else o[1]=1;o[1]===-(1/0)&&o[0]===1/0&&(o[0]=0,o[1]=1),this.niceTicks(t,i,n);var u=this._interval;i||(o[0]=e.round(r(o[0]/u)*u)),n||(o[1]=e.round(a(o[1]/u)*u))}});return o[Ct]=function(){return new o},o}),e("echarts/scale/Time",[ae,ne,"../util/number","../util/format","./Interval"],function(t){var e=t(ne),i=t("../util/number"),n=t("../util/format"),r=t("./Interval"),a=r[re],o=Math.ceil,s=Math.floor,u=864e5,c=function(t,e,i,n){for(;n>i;){var r=i+n>>>1;t[r][2]<e?i=r+1:n=r}return i},l=r[Ft]({type:"time",getLabel:function(t){var e=this._stepLvl,i=new Date(t);return n.formatTime(e[0],i)},niceExtent:function(t,e,n){var r=this._extent;if(r[0]===r[1]&&(r[0]-=u,r[1]+=u),r[1]===-(1/0)&&r[0]===1/0){var a=new Date;r[1]=new Date(a.getFullYear(),a.getMonth(),a.getDate()),r[0]=r[1]-u}this.niceTicks(t,e,n);var c=this._interval;e||(r[0]=i.round(s(r[0]/c)*c)),n||(r[1]=i.round(o(r[1]/c)*c))},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0],n=i/t,r=h[ee],a=c(h,n,0,r),u=h[Math.min(a,r-1)],l=u[2],f=[o(e[0]/l)*l,s(e[1]/l)*l];this._stepLvl=u,this._interval=l,this._niceExtent=f},parse:function(t){return+i.parseDate(t)}});e.each([A,"normalize"],function(t){l[re][t]=function(e){return a[t].call(this,this.parse(e))}});var h=[["hh:mm:ss",1,1e3],["hh:mm:ss",5,5e3],["hh:mm:ss",10,1e4],["hh:mm:ss",15,15e3],["hh:mm:ss",30,3e4],["hh:mm\nMM-dd",1,6e4],["hh:mm\nMM-dd",5,3e5],["hh:mm\nMM-dd",10,6e5],["hh:mm\nMM-dd",15,9e5],["hh:mm\nMM-dd",30,18e5],["hh:mm\nMM-dd",1,36e5],["hh:mm\nMM-dd",2,72e5],["hh:mm\nMM-dd",6,216e5],["hh:mm\nMM-dd",12,432e5],["MM-dd\nyyyy",1,u],["week",7,7*u],["month",1,31*u],["quarter",3,380*u/4],["half-year",6,380*u/2],["year",1,380*u]];return l[Ct]=function(){return new l},l}),e("echarts/scale/Log",[ae,ne,"./Scale","../util/number","./Interval"],function(t){var e=t(ne),i=t("./Scale"),n=t("../util/number"),a=t("./Interval"),o=i[re],s=a[re],u=Math.floor,c=Math.ceil,l=Math.pow,h=10,f=Math.log,d=i[Ft]({type:"log",getTicks:function(){return e.map(s.getTicks.call(this),function(t){return n.round(l(h,t))})},getLabel:s.getLabel,scale:function(t){return t=o.scale.call(this,t),l(h,t)},setExtent:function(t,e){t=f(t)/f(h),e=f(e)/f(h),s.setExtent.call(this,t,e)},getExtent:function(){var t=o[r].call(this);return t[0]=l(h,t[0]),t[1]=l(h,t[1]),t},unionExtent:function(t){t[0]=f(t[0])/f(h),t[1]=f(t[1])/f(h),o.unionExtent.call(this,t)},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(i===1/0||0>=i)){var r=l(10,u(f(i/t)/Math.LN10)),a=t/i*r;.5>=a&&(r*=10);var o=[n.round(c(e[0]/r)*r),n.round(u(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},niceExtent:s.niceExtent});return e.each([A,"normalize"],function(t){d[re][t]=function(e){return e=f(e)/f(h),o[t].call(this,e)}}),d[Ct]=function(){return new d},d}),e("echarts/coord/axisHelper",[ae,"../scale/Ordinal","../scale/Interval","../scale/Time","../scale/Log","../scale/Scale","../util/number",ne,"zrender/contain/text"],function(t){var e=t("../scale/Ordinal"),i=t("../scale/Interval");t("../scale/Time"),t("../scale/Log");var n=t("../scale/Scale"),o=t("../util/number"),s=t(ne),u=t("zrender/contain/text"),c={};return c.niceScaleExtent=function(t,e){var i=t.scale;if(i.type!==ct){var n=e.get("min"),a=e.get("max"),u=!e.get("scale"),c=e.get("boundaryGap");s[Xt](c)||(c=[c||0,c||0]),c[0]=o[Zt](c[0],1),c[1]=o[Zt](c[1],1);var l=i[r](),h=l[1]-l[0],f=!0,d=!0;null==n&&(n=l[0]-c[0]*h,f=!1),null==a&&(a=l[1]+c[1]*h,d=!1),"dataMin"===n&&(n=l[0]),"dataMax"===a&&(a=l[1]),u&&(n>0&&a>0&&!f&&(n=0),0>n&&0>a&&!d&&(a=0)),i.setExtent(n,a),i.niceExtent(e.get("splitNumber"),f,d);var p=e.get("interval");null!=p&&i.setInterval&&i.setInterval(p)}},c.createScaleByModel=function(t,r){if(r=r||t.get("type"))switch(r){case a:return new e(t.getCategories(),[1/0,-(1/0)]);case"value":return new i;default:return(n[Rt](r)||i)[Ct](t)}},c.ifAxisCrossZero=function(t){var e=t.scale[r](),i=e[0],n=e[1];return!(i>0&&n>0||0>i&&0>n)},c.getAxisLabelInterval=function(t,e,i,n){for(var r,a=0,o=0,s=0;s<t[ee];s++){var c=t[s],l=u[yt](e[s],i,Ht,"top");l[n?"x":"y"]+=c,l[n?"width":Lt]*=1.5,r?r.intersect(l)?(o++,a=Math.max(a,o)):(r.union(l),o=0):r=l.clone()}return a},c.getFormattedLabels=function(t,e){var i=t.scale,n=i.getTicksLabels(),r=i.getTicks();return typeof e===Qt?(e=function(t){return function(e){return t[Ut]("{value}",e)}}(e),s.map(n,e)):typeof e===jt?s.map(r,function(n,r){return e(t.type===a?i.getLabel(n):n,r)},this):n},c}),e("echarts/coord/cartesian/Cartesian",[ae,ne],function(t){function e(t){return this._axes[t]}var i=t(ne),n=function(t){this._axes={},this._dimList=[],this.name=t||""};return n[re]={constructor:n,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return i.map(this._dimList,e,this)},getAxesByScale:function(t){return t=t[qt](),i[ie](this.getAxes(),function(e){return e.scale.type===t})},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var i=this._dimList,n=t instanceof Array?[]:{},r=0;r<i[ee];r++){var a=i[r],o=this._axes[a];n[a]=o[e](t[a])}return n}},n}),e("echarts/coord/cartesian/Cartesian2D",[ae,ne,"./Cartesian"],function(t){function e(t){r.call(this,t)}var i=t(ne),r=t("./Cartesian");return e[re]={constructor:e,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale(ct)[0]||this.getAxesByScale("time")[0]||this[n]("x")},containPoint:function(t){var e=this[n]("x"),i=this[n]("y");return e[A](e.toLocalCoord(t[0]))&&i[A](i.toLocalCoord(t[1]))},containData:function(t){return this[n]("x").containData(t[0])&&this[n]("y").containData(t[1])},dataToPoints:function(t,e){return t.mapArray(["x","y"],function(t,e){return this.dataToPoint([t,e])},e,this)},dataToPoint:function(t,e){var i=this[n]("x"),r=this[n]("y");return[i.toGlobalCoord(i.dataToCoord(t[0],e)),r.toGlobalCoord(r.dataToCoord(t[1],e))]},pointToData:function(t,e){var i=this[n]("x"),r=this[n]("y");return[i.coordToData(i.toLocalCoord(t[0]),e),r.coordToData(r.toLocalCoord(t[1]),e)]},getOtherAxis:function(t){return this[n]("x"===t.dim?"y":"x")}},i[Nt](e,r),e}),e("echarts/coord/Axis",[ae,"../util/number",ne],function(t){function e(t,e){var i=t[1]-t[0],n=e,r=i/n/2;t[0]+=r,t[1]-=r}var i=t("../util/number"),n=i.linearMap,a=t(ne),o=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};return o[re]={constructor:o,contain:function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&n>=t},containData:function(t){return this[A](this.dataToCoord(t))},getExtent:function(){var t=this._extent.slice();return t},getPixelPrecision:function(t){return i.getPixelPrecision(t||this.scale[r](),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,i){t=this.scale.normalize(t);var a=this[r](),o=this.scale;return this.onBand&&o.type===ct&&e(a,o.count()),n(t,[0,1],a,i)},coordToData:function(t,i){var a=this[r]();this.onBand&&e(a,this.scale.count());var o=n(t,a,[0,1],i);return this.scale.scale(o)},getTicksCoords:function(){if(this.onBand){for(var t=this.getBands(),e=[],i=0;i<t[ee];i++)e.push(t[i][0]);return t[i-1]&&e.push(t[i-1][1]),e}return a.map(this.scale.getTicks(),this.dataToCoord,this)},getLabelsCoords:function(){if(this.onBand){for(var t,e=this.getBands(),i=[],n=0;n<e[ee];n++)t=e[n],i.push((t[0]+t[1])/2);return i}return a.map(this.scale.getTicks(),this.dataToCoord,this)},getBands:function(){for(var t=this[r](),e=[],i=this.scale.count(),n=t[0],a=t[1],o=a-n,s=0;i>s;s++)e.push([o*s/i+n,o*(s+1)/i+n]);return e},getBandWidth:function(){var t=this._extent,e=this.scale[r](),i=e[1]-e[0]+(this.onBand?1:0),n=Math.abs(t[1]-t[0]);return Math.abs(n)/i}},o}),e("echarts/coord/cartesian/axisLabelInterval",[ae,ne,"../axisHelper"],function(t){var e=t(ne),n=t("../axisHelper");return function(t){var r=t.model,o=r[xt]("axisLabel"),s=o.get("interval");return t.type!==a||"auto"!==s?"auto"===s?0:s:n.getAxisLabelInterval(e.map(t.scale.getTicks(),t.dataToCoord,t),r.getFormattedLabels(),o[xt](_t)[gt](),t[i]())}}),e("echarts/coord/cartesian/Axis2D",[ae,ne,"../Axis","./axisLabelInterval"],function(t){var e=t(ne),i=t("../Axis"),n=t("./axisLabelInterval"),o=function(t,e,n,r,a){i.call(this,t,e,n),this.type=r||"value",this[it]=a||Vt};return o[re]={constructor:o,index:0,onZero:!1,model:null,isHorizontal:function(){var t=this[it];return"top"===t||t===Vt},getGlobalExtent:function(){var t=this[r]();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),t},getLabelInterval:function(){var t=this._labelInterval;return t||(t=this._labelInterval=n(this)),t},isLabelIgnored:function(t){if(this.type===a){var e=this.getLabelInterval();return typeof e===jt&&!e(t,this.scale.getLabel(t))||t%(e+1)}},toLocalCoord:null,toGlobalCoord:null},e[Nt](o,i),o}),e("echarts/coord/axisDefault",[ae,ne],function(t){var e=t(ne),i={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameTextStyle:{},nameGap:15,axisLine:{show:!0,onZero:!0,lineStyle:{color:"#333",width:1,type:"solid"}},axisTick:{show:!0,inside:!1,length:5,lineStyle:{color:"#333",width:1}},axisLabel:{show:!0,inside:!1,rotate:0,margin:8,textStyle:{color:"#333",fontSize:12}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},n=e.merge({boundaryGap:!0,axisTick:{interval:"auto"},axisLabel:{interval:"auto"}},i),r=e[wt]({boundaryGap:[0,0],splitNumber:5},i),a=e[wt]({scale:!0,min:"dataMin",max:"dataMax"},r),o=e[wt]({},r);return o.scale=!0,{categoryAxis:n,valueAxis:r,timeAxis:a,logAxis:o}}),e("echarts/coord/axisModelCreator",[ae,"./axisDefault",ne,"../model/Component","../util/layout"],function(t){var e=t("./axisDefault"),i=t(ne),n=t("../model/Component"),r=t("../util/layout"),o=["value",a,"time","log"];return function(t,a,s,u){i.each(o,function(n){a[Ft]({type:t+"Axis."+n,mergeDefaultAndTheme:function(e,a){var o=this.layoutMode,u=o?r.getLayoutParams(e):{},c=a.getTheme();i.merge(e,c.get(n+"Axis")),i.merge(e,this.getDefaultOption()),e.type=s(t,e),o&&r.mergeLayoutParam(e,u,o)},defaultOption:i.mergeAll([{},e[n+"Axis"],u],!0)})}),n.registerSubTypeDefaulter(t+"Axis",i.curry(s,t))}}),e("echarts/coord/axisModelCommonMixin",[ae,ne,"./axisHelper"],function(t){function e(t){return r[nt](t)&&null!=t.value?t.value:t}function i(){return this.get("type")===a&&r.map(this.get("data"),e)}function n(){return o.getFormattedLabels(this.axis,this.get("axisLabel.formatter"))}var r=t(ne),o=t("./axisHelper");return{getFormattedLabels:n,getCategories:i}}),e("echarts/coord/cartesian/AxisModel",[ae,"../../model/Component",ne,"../axisModelCreator","../axisModelCommonMixin"],function(t){function e(t,e){return e.type||(e.data?a:"value")}var i=t("../../model/Component"),n=t(ne),r=t("../axisModelCreator"),o=i[Ft]({type:"cartesian2dAxis",axis:null,setNeedsCrossZero:function(t){this[vt].scale=!t},setMin:function(t){this[vt].min=t},setMax:function(t){this[vt].max=t}});n.merge(o[re],t("../axisModelCommonMixin"));var s={gridIndex:0};return r("x",o,e,s),r("y",o,e,s),o}),e("echarts/coord/cartesian/GridModel",[ae,"./AxisModel","../../model/Component"],function(t){t("./AxisModel");var e=t("../../model/Component");return e[Ft]({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}})}),e("echarts/coord/cartesian/Grid",[ae,"exports","module","../../util/layout","../../coord/axisHelper",ne,"./Cartesian2D","./Axis2D","./GridModel","../../CoordinateSystem"],function(t,e){function o(t,e,i){return i[Q]("grid",t.get("gridIndex"))===e}function s(t){for(var e,i=t.model,n=i.getFormattedLabels(),r=0;r<n[ee];r++)if(!t.isLabelIgnored(r)){var a=i.getTextRect(n[r]);e?e.union(a):e=a}return e}function u(t,e,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,i)}function c(t,e){var i=t[r](),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}var l=t("../../util/layout"),h=t("../../coord/axisHelper"),f=t(ne),d=t("./Cartesian2D"),p=t("./Axis2D"),v=f.each,m=h.ifAxisCrossZero,g=h.niceScaleExtent;t("./GridModel");var y=u[re];return y.type="grid",y.getRect=function(){return this._rect},y.resize=function(t,e){function n(){v(a,function(t){var e=t[i](),n=e?[0,r.width]:[0,r[Lt]],a=t.inverse?1:0;t.setExtent(n[a],n[1-a]),c(t,e?r.x:r.y)})}var r=l.getLayoutRect(t.getBoxLayoutParams(),{width:e[J](),height:e[K]()});this._rect=r;var a=this._axesList;n(),t.get("containLabel")&&(v(a,function(t){if(!t.model.get("axisLabel.inside")){var e=s(t);if(e){var n=t[i]()?Lt:"width",a=t.model.get("axisLabel.margin");r[n]-=e[n]+a,"top"===t[it]?r.y+=e[Lt]+a:"left"===t[it]&&(r.x+=e.width+a)}}}),n())},y[n]=function(t,e){if(null!=e){var i=t+e;return this._axesMap[i]}for(var n=this._axesList,r=0;r<n[ee];r++)if(n[r].dim===t)return n[r]},y.getCartesian=function(t,e){var i="x"+t+"y"+e;return this._coordsMap[i]},y._initCartesian=function(t,e,i){function n(t){var e=u[t];for(var i in e){var n=e[i];if(n&&(n.type===a||!m(n)))return!0}return!1}function r(i){return function(n,r){if(o(n,t,e)){var l=n.get(it);"x"===i?("top"!==l&&l!==Vt&&(l=Vt),s[l]&&(l="top"===l?Vt:"top")):("left"!==l&&"right"!==l&&(l="left"),s[l]&&(l="left"===l?"right":"left")),s[l]=!0;var f=new p(i,h.createScaleByModel(n),[0,0],n.get("type"),l),d=f.type===a;f.onBand=d&&n.get("boundaryGap"),f.inverse=n.get("inverse"),f.onZero=n.get("axisLine.onZero"),n.axis=f,f.model=n,f.index=r,this._axesList.push(f),this._axesMap[i+r]=f,u[i][r]=f,c[i]++}}}var s={left:!1,right:!1,top:!1,bottom:!1},u={x:{},y:{}},c={x:0,y:0};return e.eachComponent("xAxis",r("x"),this),e.eachComponent("yAxis",r("y"),this),c.x&&c.y?(v(u.x,function(t,e){v(u.y,function(i,n){var r="x"+e+"y"+n,a=new d(r);a.grid=this,this._coordsMap[r]=a,this._coordsList.push(a),a.addAxis(t),a.addAxis(i)},this)},this),this._updateCartesianFromSeries(e,t),v(u.x,function(t){g(t,t.model)}),v(u.y,function(t){g(t,t.model)}),v(u.x,function(t){n("y")&&(t.onZero=!1)}),void v(u.y,function(t){n("x")&&(t.onZero=!1)})):(this._axesMap={},void(this._axesList=[]))},y._updateCartesianFromSeries=function(t,e){function i(t,e,i,n){v(n.getDimensionsOnAxis(i),function(i){e.scale.unionExtent(t.getDataExtent(i,e.scale.type!==ct))})}t.eachSeries(function(r){if("cartesian2d"===r.get($)){var a=r.get("xAxisIndex"),s=r.get("yAxisIndex"),u=t[Q]("xAxis",a),c=t[Q]("yAxis",s);if(!o(u,e,t)||!o(c,e,t))return;var l=this.getCartesian(a,s),h=r[lt]();"list"===h.type&&(i(h,l[n]("x"),"x",r),i(h,l[n]("y"),"y",r))}},this)},u[Ct]=function(t,e){var i=[];return t.eachComponent("grid",function(n,r){var a=new u(n,t,e);a.name="grid_"+r,a.resize(n,e),n[$]=a,i.push(a)}),t.eachSeries(function(e){if("cartesian2d"===e.get($)){var n=e.get("xAxisIndex"),r=t[Q]("xAxis",n),a=i[r.get("gridIndex")];e[$]=a.getCartesian(n,e.get("yAxisIndex"))}}),i},u[Y]=d[re][Y],t("../../CoordinateSystem").register("grid",u),u}),e("echarts/chart/bar/BarSeries",[ae,"../../model/Series","../helper/createListFromArray"],function(t){var e=t("../../model/Series"),n=t("../helper/createListFromArray");return e[Ft]({type:"series.bar",dependencies:["grid","polar"],getInitialData:function(t,e){return n(t.data,this,e)},getMarkerPosition:function(t){var e=this[$];if(e){var n=e.dataToPoint(t),r=this[lt](),a=r.getLayout("offset"),o=r.getLayout("size"),s=e.getBaseAxis()[i]()?0:1;return n[s]+=a+o/2,n}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,barMinHeight:0,itemStyle:{normal:{barBorderColor:"#fff",barBorderWidth:0},emphasis:{barBorderColor:"#fff",barBorderWidth:0}}}})}),e("echarts/chart/bar/barItemStyle",[ae,"../../model/mixin/makeStyleMapper"],function(t){return{getBarItemStyle:t("../../model/mixin/makeStyleMapper")([["fill","color"],[It,"barBorderColor"],[Ot,"barBorderWidth"],[Dt],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]])}}),e("echarts/chart/bar/BarView",[ae,ne,"../../util/graphic","../../model/Model","./barItemStyle","../../echarts"],function(t){function e(t,e){var i=t.width>0?1:-1,n=t[Lt]>0?1:-1;e=Math.min(e,Math.abs(t.width),Math.abs(t[Lt])),t.x+=i*e/2,t.y+=n*e/2,t.width-=i*e,t[Lt]-=n*e}var n=t(ne),r=t("../../util/graphic");return n[Ft](t("../../model/Model")[re],t("./barItemStyle")),t("../../echarts").extendChartView({type:"bar",render:function(t,e,i){var n=t.get($);return"cartesian2d"===n&&this._renderOnCartesian(t,e,i),this.group},_renderOnCartesian:function(t,a,u){function c(i,a){var o=f[s](i),u=f[at](i).get(b)||0;e(o,u);var c=new r.Rect({shape:n[Ft]({},o)});if(x){var l=c.shape,h=_?Lt:"width",d={};l[h]=0,d[h]=o[h],r[a?y:g](c,{shape:d},t)}return c}var l=this.group,f=t[lt](),d=this._data,p=t[$],m=p.getBaseAxis(),_=m[i](),x=t.get(W),b=[h,ft,"barBorderWidth"];f.diff(d).add(function(t){if(f.hasValue(t)){var e=c(t);f[o](t,e),l.add(e)}})[v](function(i,n){var a=d[D](n);if(!f.hasValue(i))return void l[E](a);a||(a=c(i,!0));var u=f[s](i),h=f[at](i).get(b)||0;e(u,h),r[y](a,{shape:u},t),f[o](i,a),l.add(a)})[E](function(e){var i=d[D](e);i&&(i.style.text="",r[y](i,{shape:{width:0}},t,function(){l[E](i)}))}).execute(),this._updateStyle(t,f,_),this._data=f},_updateStyle:function(t,e,i){function a(t,e,i,n,a){r.setText(t,e,i),t.text=n,"outside"===t.textPosition&&(t.textPosition=a)}e[P](function(o,u){var c=e[at](u),l=e.getItemVisual(u,"color"),h=e[s](u),f=c[xt]("itemStyle.normal"),d=c[xt]("itemStyle.emphasis").getItemStyle();o[b]("r",f.get("barBorderRadius")||0),o.setStyle(n[wt]({fill:l},f.getBarItemStyle()));var p=i?h[Lt]>0?Vt:"top":h.width>0?"left":"right",v=c[xt]("label.normal"),m=c[xt]("label.emphasis"),g=o.style;v.get("show")?a(g,v,l,t.getFormattedLabel(u,ft)||t[ut](u),p):g.text="",m.get("show")?a(d,m,l,t.getFormattedLabel(u,dt)||t[ut](u),p):d.text="",r.setHoverStyle(o,d)})},remove:function(t,e){var i=this.group;t.get(W)?this._data&&this._data[P](function(e){e.style.text="",r[y](e,{shape:{width:0}},t,function(){i[E](e)})}):i[B]()}})}),e("echarts/layout/barGrid",[ae,ne,"../util/number"],function(t){function e(t){return t.get("stack")||"__ec_stack_"+t[ht]}function n(t,i){var n={};a.each(t,function(t,i){var r=t[$],a=r.getBaseAxis(),o=n[a.index]||{remainedWidth:a.getBandWidth(),autoWidthCount:0,categoryGap:"20%",gap:"30%",axis:a,stacks:{}},s=o.stacks;n[a.index]=o;var u=e(t);s[u]||o.autoWidthCount++,s[u]=s[u]||{width:0,maxWidth:0};var c=t.get("barWidth"),l=t.get("barMaxWidth"),h=t.get("barGap"),f=t.get("barCategoryGap");c&&!s[u].width&&(c=Math.min(o.remainedWidth,c),s[u].width=c,o.remainedWidth-=c),l&&(s[u].maxWidth=l),null!=h&&(o.gap=h),null!=f&&(o.categoryGap=f)});var r={};return a.each(n,function(t,e){r[e]={};var i=t.stacks,n=t.axis,o=n.getBandWidth(),u=s(t.categoryGap,o),c=s(t.gap,1),l=t.remainedWidth,h=t.autoWidthCount,f=(l-u)/(h+(h-1)*c);f=Math.max(f,0),a.each(i,function(t,e){var i=t.maxWidth;!t.width&&i&&f>i&&(i=Math.min(i,l),l-=i,t.width=i,h--)}),f=(l-u)/(h+(h-1)*c),f=Math.max(f,0);var d,p=0;a.each(i,function(t,e){t.width||(t.width=f),d=t,p+=t.width*(1+c)}),d&&(p-=d.width*c);var v=-p/2;a.each(i,function(t,i){r[e][i]=r[e][i]||{offset:v,width:t.width},v+=t.width*(1+c)})}),r}function r(t,r,o){var s=n(a[ie](r.getSeriesByType(t),function(t){return!r.isSeriesFiltered(t)&&t[$]&&"cartesian2d"===t[$].type})),u={};r[f](t,function(t){var n=t[lt](),r=t[$],a=r.getBaseAxis(),o=e(t),c=s[a.index][o],l=c.offset,h=c.width,f=r.getOtherAxis(a),d=t.get("barMinHeight")||0,p=a.onZero?f.toGlobalCoord(f.dataToCoord(0)):f.getGlobalExtent()[0],v=r.dataToPoints(n,!0);u[o]=u[o]||[],n.setLayout({offset:l,size:h}),n.each(f.dim,function(t,e){if(!isNaN(t)){u[o][e]||(u[o][e]={p:p,n:p});var r,a,s,c,m=t>=0?"p":"n",g=v[e],y=u[o][e][m];f[i]()?(r=y,a=g[1]+l,s=g[0]-y,c=h,Math.abs(s)<d&&(s=(0>s?-1:1)*d),u[o][e][m]+=s):(r=g[0]+l,a=y,s=h,c=g[1]-y,Math.abs(c)<d&&(c=(0>=c?-1:1)*d),u[o][e][m]+=c),n.setItemLayout(e,{x:r,y:a,width:s,height:c})}},!0)},this)}var a=t(ne),o=t("../util/number"),s=o[Zt];return r}),e("echarts/chart/bar",[ae,ne,"../coord/cartesian/Grid","./bar/BarSeries","./bar/BarView","../layout/barGrid","../echarts"],function(t){var e=t(ne);t("../coord/cartesian/Grid"),t("./bar/BarSeries"),t("./bar/BarView");var i=t("../layout/barGrid"),n=t("../echarts");n[c](e.curry(i,"bar")),n[u]("chart",function(t){t[f]("bar",function(t){var e=t[lt]();e[p]("legendSymbol","roundRect")})})}),e("echarts/chart/helper/dataSelectableMixin",[ae,ne],function(t){var e=t(ne);return{updateSelectedMap:function(){var t=this[vt];this._dataOptMap=e.reduce(t.data,function(t,e){return t[e.name]=e,t},{})},select:function(t){var i=this._dataOptMap,n=i[t],r=this.get("selectedMode");"single"===r&&e.each(i,function(t){t.selected=!1}),n&&(n.selected=!0)},unSelect:function(t){var e=this._dataOptMap[t];e&&(e.selected=!1)},toggleSelected:function(t){var e=this._dataOptMap[t];return null!=e?(this[e.selected?"unSelect":"select"](t),e.selected):void 0},isSelected:function(t){var e=this._dataOptMap[t];return e&&e.selected}}}),e("echarts/chart/pie/PieSeries",[ae,"../../data/List",ne,"../../util/model","../../data/helper/completeDimensions","../helper/dataSelectableMixin","../../echarts"],function(t){var e=t("../../data/List"),i=t(ne),n=t("../../util/model"),r=t("../../data/helper/completeDimensions"),a=t("../helper/dataSelectableMixin"),o=t("../../echarts").extendSeriesModel({type:"series.pie",init:function(t){this.$superApply("init",arguments),this.legendDataProvider=function(){return this._dataBeforeProcessed},this.updateSelectedMap(),this._defaultLabelLine(t)},mergeOption:function(t){this.$superCall("mergeOption",t),this.updateSelectedMap()},getInitialData:function(t,i){var n=r(["value"],t.data),a=new e(n,this);return a.initData(t.data),a},getDataParams:function(t){var e=this._data,i=this.$superCall(rt,t);return i.percent=+(e.get("value",t)/e.getSum("value")*100).toFixed(2),i.$vars.push("percent"),i},_defaultLabelLine:function(t){n.defaultEmphasis(t.labelLine,["show"]);var e=t.labelLine[ft],i=t.labelLine[dt];e.show=e.show&&t.label[ft].show,i.show=i.show&&t.label[dt].show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,selectedOffset:10,avoidLabelOverlap:!0,label:{normal:{rotate:!1,show:!0,position:"outer"},emphasis:{}},labelLine:{normal:{show:!0,length:20,length2:5,smooth:!1,lineStyle:{width:1,type:"solid"}}},itemStyle:{normal:{borderColor:"rgba(0,0,0,0)",borderWidth:1},emphasis:{borderColor:"rgba(0,0,0,0)",borderWidth:1}},animationEasing:"cubicOut",data:[]}});return i.mixin(o,a),o}),e("echarts/chart/pie/PieView",[ae,"../../util/graphic",ne,"../../view/Chart"],function(t){function e(t,e,n,r){var a=e[lt](),o=this[I],u=a[ot](o),c=e.get("selectedOffset");r.dispatchAction({type:"pieToggleSelect",from:t,name:u,seriesId:e.id}),a.each(function(t){i(a[D](t),a[s](t),e.isSelected(a[ot](t)),c,n)})}function i(t,e,i,n,r){var a=(e.startAngle+e.endAngle)/2,o=Math.cos(a),s=Math.sin(a),u=i?n:0,c=[o*u,s*u];r?t[q]().when(200,{position:c}).start("bounceOut"):t.attr(it,c)}function n(t,e){function i(){o[G]=o.hoverIgnore,s[G]=s.hoverIgnore}function n(){o[G]=o.normalIgnore,s[G]=s.normalIgnore}a.Group.call(this);var r=new a.Sector({z2:2}),o=new a.Polyline,s=new a.Text;this.add(r),this.add(o),this.add(s),this.updateData(t,e,!0),this.on(dt,i).on(ft,n).on(x,i).on(_,n)}function r(t,e,i,n){var r=n[xt](_t),a=n.get(it),o=a===Mt||"inner"===a;return{fill:r.getTextColor()||(o?"#fff":t.getItemVisual(e,"color")),textFont:r[gt](),text:t[l].getFormattedLabel(e,i)||t[ot](e)}}var a=t("../../util/graphic"),u=t(ne),c=n[re];c.updateData=function(t,e,n){function r(){c[V](!0),c.animateTo({shape:{r:p.r+10}},300,"elasticOut")}function o(){c[V](!0),c.animateTo({shape:{r:p.r}},300,"elasticOut")}var c=this[et](0),f=t[l],d=t[at](e),p=t[s](e),v=u[Ft]({},p);v.label=null,n?(c[b](v),c.shape.endAngle=p.startAngle,a[y](c,{shape:{endAngle:p.endAngle}},f)):a[y](c,{shape:v},f);var m=d[xt](h),g=t.getItemVisual(e,"color");c.setStyle(u[wt]({fill:g},m[xt](ft).getItemStyle())),c.hoverStyle=m[xt](dt).getItemStyle(),i(this,t[s](e),d.get("selected"),f.get("selectedOffset"),f.get(W)),c.off(x).off(_).off(dt).off(ft),d.get("hoverAnimation")&&c.on(x,r).on(_,o).on(dt,r).on(ft,o),this._updateLabel(t,e),a.setHoverStyle(this)},c._updateLabel=function(t,e){var i=this[et](1),n=this[et](2),o=t[l],u=t[at](e),c=t[s](e),h=c.label,f=t.getItemVisual(e,"color");a[y](i,{shape:{points:h.linePoints||[[h.x,h.y],[h.x,h.y],[h.x,h.y]]}},o),a[y](n,{style:{x:h.x,y:h.y}},o),n.attr({style:{textAlign:h[z],textBaseline:h[T],textFont:h.font},rotation:h[U],origin:[h.x,h.y],z2:10});var d=u[xt]("label.normal"),p=u[xt]("label.emphasis"),v=u[xt]("labelLine.normal"),m=u[xt]("labelLine.emphasis");n.setStyle(r(t,e,ft,d)),n[G]=n.normalIgnore=!d.get("show"),n.hoverIgnore=!p.get("show"),i[G]=i.normalIgnore=!v.get("show"),i.hoverIgnore=!m.get("show"),i.setStyle({stroke:f}),i.setStyle(v[xt]("lineStyle").getLineStyle()),n.hoverStyle=r(t,e,dt,p),i.hoverStyle=m[xt]("lineStyle").getLineStyle();var g=v.get("smooth");g&&g===!0&&(g=.4),i[b]({smooth:g})},u[Nt](n,a.Group);var f=t("../../view/Chart")[Ft]({type:"pie",
  init:function(){var t=new a.Group;this._sectorGroup=t},render:function(t,i,r,a){if(!a||a.from!==this.uid){var c=t[lt](),l=this._data,h=this.group,f=i.get(W),d=!l,p=u.curry(e,this.uid,t,f,r),m=t.get("selectedMode");if(c.diff(l).add(function(t){var e=new n(c,t);d&&e.eachChild(function(t){t[V](!0)}),m&&e.on("click",p),c[o](t,e),h.add(e)})[v](function(t,e){var i=l[D](e);i.updateData(c,t),i.off("click"),m&&i.on("click",p),h.add(i),c[o](t,i)})[E](function(t){var e=l[D](t);h[E](e)}).execute(),f&&d&&c.count()>0){var g=c[s](0),y=Math.max(r[J](),r[K]())/2,_=u.bind(h.removeClipPath,h);h.setClipPath(this._createClipPath(g.cx,g.cy,y,g.startAngle,g.clockwise,_,t))}this._data=c}},_createClipPath:function(t,e,i,n,r,o,s){var u=new a.Sector({shape:{cx:t,cy:e,r0:0,r:i,startAngle:n,endAngle:n,clockwise:r}});return a[g](u,{shape:{endAngle:n+(r?1:-1)*Math.PI*2}},s,o),u}});return f}),e("echarts/action/createDataSelectAction",[ae,"../echarts",ne],function(t){var e=t("../echarts"),i=t(ne);return function(t,n){i.each(n,function(i){i[v]="updateView",e.registerAction(i,function(e,n){var r={};return n.eachComponent({mainType:"series",subType:t,query:e},function(t){t[i.method]&&t[i.method](e.name);var n=t[lt]();n.each(function(e){var i=n[ot](e);r[i]=t.isSelected(i)||!1})}),{name:e.name,selected:r}})})}}),e("echarts/visual/dataColor",[ae],function(t){return function(t,e){var i=e.get("color"),n=0;e.eachRawSeriesByType(t,function(t){var r=t.get("color",!0),a=t.getRawData();if(!e.isSeriesFiltered(t)){var o=t[lt]();o.each(function(t){var e=o[at](t),s=o[st](t),u=o.getItemVisual(t,"color",!0);if(u)a[d](s,"color",u);else{var c=r?r[s%r[ee]]:i[(s+n)%i[ee]],l=e.get("itemStyle.normal.color")||c;a[d](s,"color",l),o[d](t,"color",l)}})}n+=a.count()})}}),e("echarts/chart/pie/labelLayout",[ae,"zrender/contain/text"],function(t){function e(t,e,i,n,r,a,o){function s(e,i,n,r){for(var a=e;i>a;a++)if(t[a].y+=n,a>e&&i>a+1&&t[a+1].y>t[a].y+t[a][Lt])return void u(a,n/2);u(i-1,n/2)}function u(e,i){for(var n=e;n>=0&&(t[n].y-=i,!(n>0&&t[n].y>t[n-1].y+t[n-1][Lt]));n--);}t.sort(function(t,e){return t.y-e.y});for(var c,l=0,h=t[ee],f=[],d=[],p=0;h>p;p++)c=t[p].y-l,0>c&&s(p,h,-c,r),l=t[p].y+t[p][Lt];0>o-l&&u(h-1,l-o);for(var p=0;h>p;p++)t[p].y>=i?d.push(t[p]):f.push(t[p])}function i(t,i,n,r,a,o){for(var s=[],u=[],c=0;c<t[ee];c++)t[c].x<i?s.push(t[c]):u.push(t[c]);e(s,i,n,r,-1,a,o),e(u,i,n,r,1,a,o);for(var c=0;c<t[ee];c++){var l=t[c].linePoints;l&&(t[c].x<i?l[2][0]=t[c].x+3:l[2][0]=t[c].x-3,l[1][1]=l[2][1]=t[c].y)}}var n=t("zrender/contain/text");return function(t,e,r,a){var o,u,c=t[lt](),l=[],h=!1;c.each(function(i){var r,a,f,d,p=c[s](i),v=c[at](i),m=v[xt]("label.normal"),g=m.get(it),y=v[xt]("labelLine.normal"),_=y.get(ee),x=y.get("length2"),b=(p.startAngle+p.endAngle)/2,w=Math.cos(b),M=Math.sin(b);if(o=p.cx,u=p.cy,g===Ht)r=p.cx,a=p.cy,d=Ht;else{var S=g===Mt||"inner"===g,C=(S?p.r/2*w:p.r*w)+o,L=(S?p.r/2*M:p.r*M)+u;if(_+=e-p.r,r=C+3*w,a=L+3*M,!S){var k=C+w*_,A=L+M*_,T=k+(0>w?-1:1)*x,z=A;r=T+(0>w?-5:5),a=z,f=[[C,L],[k,A],[T,z]]}d=S?Ht:w>0?"left":"right"}var P=Wt,D=m[xt](_t)[gt](),I=m.get("rotate")?0>w?-b+Math.PI:-b:0,O=t.getFormattedLabel(i,ft)||c[ot](i),B=n[yt](O,D,d,P);h=!!I,p.label={x:r,y:a,height:B[Lt],length:_,length2:x,linePoints:f,textAlign:d,textBaseline:P,font:D,rotation:I},l.push(p.label)}),!h&&t.get("avoidLabelOverlap")&&i(l,o,u,e,r,a)}}),e("echarts/chart/pie/pieLayout",[ae,"../../util/number","./labelLayout",ne],function(t){var e=t("../../util/number"),i=e[Zt],n=t("./labelLayout"),r=t(ne),a=2*Math.PI,o=Math.PI/180;return function(t,u,c){u[f](t,function(t){var u=t.get(Ht),l=t.get(pt);r[Xt](l)||(l=[0,l]),r[Xt](u)||(u=[u,u]);var h=c[J](),f=c[K](),d=Math.min(h,f),p=i(u[0],h),v=i(u[1],f),m=i(l[0],d/2),g=i(l[1],d/2),y=t[lt](),_=-t.get("startAngle")*o,x=t.get("minAngle")*o,b=y.getSum("value"),w=Math.PI/(b||y.count())*2,M=t.get("clockwise"),S=t.get("roseType"),C=y.getDataExtent("value");C[0]=0;var L=a,k=0,A=_,T=M?1:-1;if(y.each("value",function(t,i){var n;n="area"!==S?0===b?w:t*w:a/(y.count()||1),x>n?(n=x,L-=x):k+=t;var r=A+T*n;y.setItemLayout(i,{angle:n,startAngle:A,endAngle:r,clockwise:M,cx:p,cy:v,r0:m,r:S?e.linearMap(t,C,[m,g]):g}),A=r},!0),a>L)if(.001>=L){var z=a/y.count();y.each(function(t){var e=y[s](t);e.startAngle=_+T*t*z,e.endAngle=_+T*(t+1)*z})}else w=L/k,A=_,y.each("value",function(t,e){var i=y[s](e),n=i.angle===x?x:t*w;i.startAngle=A,i.endAngle=A+T*n,A+=n});n(t,g,h,f)})}}),e("echarts/processor/dataFilter",[],function(){return function(t,e){var i=e.findComponents({mainType:"legend"});i&&i[ee]&&e[f](t,function(t){var e=t[lt]();e.filterSelf(function(t){for(var n=e[ot](t),r=0;r<i[ee];r++)if(!i[r].isSelected(n))return!1;return!0},this)},this)}}),e("echarts/chart/pie",[ae,ne,"../echarts","./pie/PieSeries","./pie/PieView","../action/createDataSelectAction","../visual/dataColor","./pie/pieLayout","../processor/dataFilter"],function(t){var e=t(ne),i=t("../echarts");t("./pie/PieSeries"),t("./pie/PieView"),t("../action/createDataSelectAction")("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),i[u]("chart",e.curry(t("../visual/dataColor"),"pie")),i[c](e.curry(t("./pie/pieLayout"),"pie")),i.registerProcessor(ie,e.curry(t("../processor/dataFilter"),"pie"))}),e("echarts/component/axis/AxisBuilder",[ae,ne,"../../util/graphic","../../model/Model","../../util/number"],function(t){function e(t,e,i){var n,r,a=c(e-t[U]);return l(a)?(r=i>0?"top":Vt,n=Ht):l(a-h)?(r=i>0?Vt:"top",n=Ht):(r=Wt,n=a>0&&h>a?i>0?"right":"left":i>0?"left":"right"),{rotation:a,textAlign:n,textBaseline:r}}function i(t,e,i){var n,r,a=c(-t[U]),o=i[0]>i[1],s="start"===e&&!o||"start"!==e&&o;return l(a-h/2)?(r=s?Vt:"top",n=Ht):l(a-1.5*h)?(r=s?"top":Vt,n=Ht):(r=Wt,n=1.5*h>a&&a>h/2?s?"left":"right":s?"right":"left"),{rotation:a,textAlign:n,textBaseline:r}}var n=t(ne),o=t("../../util/graphic"),s=t("../../model/Model"),u=t("../../util/number"),c=u.remRadian,l=u.isRadianAroundZero,h=Math.PI,f=function(t,e){this.opt=e,this.axisModel=t,n[wt](e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new o.Group({position:e[it].slice(),rotation:e[U]})};f[re]={constructor:f,hasBuilder:function(t){return!!d[t]},add:function(t){d[t].call(this)},getGroup:function(){return this.group}};var d={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var i=this.axisModel.axis[r]();this.group.add(new o.Line({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:n[Ft]({lineCap:"round"},e[xt]("axisLine.lineStyle").getLineStyle()),strokeContainThreshold:t.strokeContainThreshold,silent:!!t.silent,z2:1}))}},axisTick:function(){var t=this.axisModel;if(t.get("axisTick.show")){for(var e=t.axis,i=t[xt]("axisTick"),n=this.opt,r=i[xt]("lineStyle"),a=i.get(ee),s=v(i,n.labelInterval),u=e.getTicksCoords(),c=[],l=0;l<u[ee];l++)if(!p(e,l,s)){var h=u[l];c.push(new o.Line(o.subPixelOptimizeLine({shape:{x1:h,y1:0,x2:h,y2:n.tickDirection*a},style:{lineWidth:r.get("width")},silent:!0})))}this.group.add(o.mergePath(c,{style:r.getLineStyle(),silent:!0}))}},axisLabel:function(){function t(t,e){var i=t&&t[yt]().clone(),n=e&&e[yt]().clone();return i&&n?(i[kt](t[H]()),n[kt](e[H]()),i.intersect(n)):void 0}var i=this.axisModel;if(i.get("axisLabel.show")){var n=this.opt,r=i.axis,u=i[xt]("axisLabel"),c=u[xt](_t),l=u.get("margin"),f=r.scale.getTicks(),d=i.getFormattedLabels(),v=n.labelRotation;null==v&&(v=u.get("rotate")||0),v=v*h/180;for(var m=e(n,v,n.labelDirection),g=i.get("data"),y=[],_=0;_<f[ee];_++)if(!p(r,_,n.labelInterval)){var x=c;g&&g[_]&&g[_][_t]&&(x=new s(g[_][_t],c,i[bt]));var b=r.dataToCoord(f[_]),w=[b,n.labelOffset+n.labelDirection*l],M=new o.Text({style:{text:d[_],textAlign:x.get("align",!0)||m[z],textBaseline:x.get("baseline",!0)||m[T],textFont:x[gt](),fill:x.getTextColor()},position:w,rotation:m[U],silent:!0,z2:10});y.push(M),this.group.add(M)}if(r.type!==a){if(i.get("min")){var S=y[0],C=y[1];t(S,C)&&(S[G]=!0)}if(i.get("max")){var L=y[y[ee]-1],k=y[y[ee]-2];t(k,L)&&(L[G]=!0)}}}},axisName:function(){var t=this.opt,n=this.axisModel,a=this.opt.axisName;if(null==a&&(a=n.get("name")),a){var s,u=n.get("nameLocation"),c=t.nameDirection,l=n[xt]("nameTextStyle"),h=n.get("nameGap")||0,f=this.axisModel.axis[r](),d=f[0]>f[1]?-1:1,p=["start"===u?f[0]-d*h:"end"===u?f[1]+d*h:(f[0]+f[1])/2,u===Wt?t.labelOffset+c*h:0];s=u===Wt?e(t,t[U],c):i(t,u,f),this.group.add(new o.Text({style:{text:a,textFont:l[gt](),fill:l.getTextColor()||n.get("axisLine.lineStyle.color"),textAlign:s[z],textBaseline:s[T]},position:p,rotation:s[U],silent:!0,z2:1}))}}},p=f.ifIgnoreOnTick=function(t,e,i){var n,r=t.scale;return r.type===ct&&(typeof i===jt?(n=r.getTicks()[e],!i(n,r.getLabel(n))):e%(i+1))},v=f.getInterval=function(t,e){var i=t.get("interval");return(null==i||"auto"==i)&&(i=e),i};return f}),e("echarts/component/axis/AxisView",[ae,ne,"../../util/graphic","./AxisBuilder","../../echarts"],function(t){function e(t,e){function i(t,e){var i=r[n](t);return i.toGlobalCoord(i.dataToCoord(0))}var r=t[$],a=e.axis,o={},s=a[it],u=a.onZero?"onZero":s,c=a.dim,l=r.getRect(),h=[l.x,l.x+l.width,l.y,l.y+l[Lt]],f={x:{top:h[2],bottom:h[3]},y:{left:h[0],right:h[1]}};f.x.onZero=Math.max(Math.min(i("y"),f.x[Vt]),f.x.top),f.y.onZero=Math.max(Math.min(i("x"),f.y.right),f.y.left),o[it]=["y"===c?f.y[u]:h[0],"x"===c?f.x[u]:h[3]];var d={x:0,y:1};o[U]=Math.PI/2*d[c];var p={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=p[s],a.onZero&&(o.labelOffset=f[c][s]-f[c].onZero),e[xt]("axisTick").get(Mt)&&(o.tickDirection=-o.tickDirection),e[xt]("axisLabel").get(Mt)&&(o.labelDirection=-o.labelDirection);var v=e[xt]("axisLabel").get("rotate");return o.labelRotation="top"===u?-v:v,o.labelInterval=a.getLabelInterval(),o.z2=1,o}var r=t(ne),a=t("../../util/graphic"),o=t("./AxisBuilder"),s=o.ifIgnoreOnTick,u=o.getInterval,c=["axisLine","axisLabel","axisTick","axisName"],l=["splitLine","splitArea"],h=t("../../echarts").extendComponentView({type:"axis",render:function(t,i){if(this.group[B](),t.get("show")){var n=i[Q]("grid",t.get("gridIndex")),a=e(n,t),s=new o(t,a);r.each(c,s.add,s),this.group.add(s.getGroup()),r.each(l,function(e){t.get(e+".show")&&this["_"+e](t,n,a.labelInterval)},this)}},_splitLine:function(t,e,n){var r=t.axis,o=t[xt]("splitLine"),c=o[xt]("lineStyle"),l=c.get("width"),h=c.get("color"),f=u(o,n);h=h instanceof Array?h:[h];for(var d=e[$].getRect(),p=r[i](),v=[],m=0,g=r.getTicksCoords(),y=[],_=[],x=0;x<g[ee];x++)if(!s(r,x,f)){var b=r.toGlobalCoord(g[x]);p?(y[0]=b,y[1]=d.y,_[0]=b,_[1]=d.y+d[Lt]):(y[0]=d.x,y[1]=b,_[0]=d.x+d.width,_[1]=b);var w=m++%h[ee];v[w]=v[w]||[],v[w].push(new a.Line(a.subPixelOptimizeLine({shape:{x1:y[0],y1:y[1],x2:_[0],y2:_[1]},style:{lineWidth:l},silent:!0})))}for(var x=0;x<v[ee];x++)this.group.add(a.mergePath(v[x],{style:{stroke:h[x%h[ee]],lineDash:c.getLineDash(),lineWidth:l},silent:!0}))},_splitArea:function(t,e,n){var r=t.axis,o=t[xt]("splitArea"),c=o.get("areaStyle.color"),l=e[$].getRect(),h=r.getTicksCoords(),f=r.toGlobalCoord(h[0]),d=r.toGlobalCoord(h[0]),p=[],v=0,m=u(o,n);c=c instanceof Array?c:[c];for(var g=1;g<h[ee];g++)if(!s(r,g,m)){var y,_,x,b,w=r.toGlobalCoord(h[g]);r[i]()?(y=f,_=l.y,x=w-y,b=l[Lt]):(y=l.x,_=d,x=l.width,b=w-_);var M=v++%c[ee];p[M]=p[M]||[],p[M].push(new a.Rect({shape:{x:y,y:_,width:x,height:b},silent:!0})),f=y+x,d=_+b}for(var g=0;g<p[ee];g++)this.group.add(a.mergePath(p[g],{style:{fill:c[g%c[ee]]},silent:!0}))}});h[Ft]({type:"xAxis"}),h[Ft]({type:"yAxis"})}),e("echarts/component/axis",[ae,"../coord/cartesian/AxisModel","./axis/AxisView"],function(t){t("../coord/cartesian/AxisModel"),t("./axis/AxisView")}),e("echarts/component/grid",[ae,"../util/graphic",ne,"../coord/cartesian/Grid","./axis","../echarts"],function(t){var e=t("../util/graphic"),i=t(ne);t("../coord/cartesian/Grid"),t("./axis"),t("../echarts").extendComponentView({type:"grid",render:function(t,n){this.group[B](),t.get("show")&&this.group.add(new e.Rect({shape:t[$].getRect(),style:i[wt]({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0}))}})});var oe=t("echarts");return t("echarts/chart/line"),t("echarts/chart/bar"),t("echarts/chart/pie"),t("echarts/component/grid"),oe});