blob: c8414fc373dd53e0fa5315b9c06ecf440534950a [file] [log] [blame]
!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 l=0;a>l;l++)switch(n[l]){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=[],l=o[r],u=0,c=Math.min(e.length,n.length);c>u;u++){var h,d=i(e[u],r);switch(d){case"require":h=l&&l.require||t;break;case"exports":h=l.exports;break;case"module":h=l;break;default:h=a(d)}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="textStyleModel",n="../../visual/VisualMapping",r="categories",a="reverse",o="eachNode",s="_controller",l="enable",u="roamDetail",c="layout",h="itemGap",d="formatTooltip",f="orient",p="padding",v="../../util/format",m="legendDataProvider",g="$superApply",y="selected",x="single",_="selectedMode",w="axisLine",b="axisTick",M="label.emphasis",S="label.normal",A="itemStyle.emphasis",C="itemStyle.normal",T="../../echarts",k="../../model/Model",L="getDimensionsOnAxis",D="cartesian2d",P="getBoxLayoutParams",I="getRect",z="../../coord/axisHelper",V="../../util/layout",R="../../model/Component",O="axisLabel",E="coordToData",N="dataToCoord",B="getFormattedLabels",G="createScaleByModel",Z="interval",F="splitNumber",H="boundaryGap",W="niceScaleExtent",q="getLabel",U="getTicks",j="setExtent",X="unionExtent",Y="../layout/points",$="../visual/symbol",K="../echarts",J="getLineStyle",Q="lineStyle.normal",tt="_symbolDraw",et="inverse",it="getAxis",nt="getBandWidth",rt="onBand",at="../../view/Chart",ot="../helper/SymbolDraw",st="dataToPoint",lt="getExtent",ut="getOtherAxis",ct="execute",ht="getFormattedLabel",dt="getItemStyle",ft="circle",pt="symbol",vt="symbolSize",mt="createSymbol",gt="updateData",yt="../../util/number",xt="../../util/graphic",_t="../../util/symbol",wt="setColor",bt="../../model/Series",Mt="../helper/createListFromArray",St="getCategories",At="category",Ct="../../CoordinateSystem",Tt="../../util/model",kt="../../data/helper/completeDimensions",Lt="../../data/List",Dt="setItemGraphicEl",Pt="getItemVisual",It="setItemLayout",zt="getItemLayout",Vt="getLayout",Rt="setLayout",Ot="getVisual",Et="mapArray",Nt="filterSelf",Bt="getSum",Gt="getDataExtent",Zt="getValues",Ft="initData",Ht="getDimension",Wt="extendComponentView",qt="extendSeriesModel",Ut="extendComponentModel",jt="extendChartView",Xt="registerVisualCoding",Yt="registerLayout",$t="registerAction",Kt="registerProcessor",Jt="registerPreprocessor",Qt="hostModel",te="downplay",ee="highlight",ie="eachComponent",ne="_model",re="itemStyle.normal.color",ae="scatter",oe="dataZoom",se="legend",le="markPoint",ue="itemStyle",ce="lineStyle",he="eachSeries",de="eachSeriesByType",fe="setItemVisual",pe="isSeriesFiltered",ve="setVisual",me="dispose",ge="canvasSupported",ye="clientHeight",xe="backgroundColor",_e="appendChild",we="innerHTML",be="intersect",Me="resize",Se="update",Ae="zlevel",Ce="silent",Te="getDisplayList",ke="storage",Le="parentNode",De="offsetY",Pe="offsetX",Ie="mouseup",ze="mousemove",Ve="mousedown",Re="zrender/core/event",Oe="zrender/core/env",Ee="initProps",Ne="updateProps",Be="animateTo",Ge="getTextColor",Ze="setText",Fe="mouseout",He="mouseover",We="setHoverStyle",qe="hoverStyle",Ue="setStyle",je="subPixelOptimizeRect",Xe="extendShape",Ye="Polyline",$e="Polygon",Ke="Sector",Je="Circle",Qe="offset",ti="points",ei="clockwise",ii="endAngle",ni="startAngle",ri="setData",ai="setShape",oi="restore",si="buildPath",li="zrender/graphic/Path",ui="closePath",ci="bezierCurveTo",hi="lineTo",di="moveTo",fi="beginPath",pi="quadraticAt",vi="contain",mi="textBaseline",gi="textAlign",yi="textPosition",xi="eachItemGraphicEl",_i="indexOfName",wi="getItemGraphicEl",bi="dataIndex",Mi="trigger",Si="render",Ai="removeAll",Ci="updateLayout",Ti="invisible",ki="traverse",Li="delFromMap",Di="addToMap",Pi="remove",Ii="__dirty",zi="refresh",Vi="ignore",Ri="draggable",Oi="animate",Ei="stopAnimation",Ni="linear",Bi="animation",Gi="zrender/tool/color",Zi="target",Fi="transformCoordToLocal",Hi="rotate",Wi="invTransform",qi="getLocalTransform",Ui="parent",ji="updateTransform",Xi="transform",Yi="origin",$i="rotation",Ki="splice",Ji="zrender/mixin/Eventful",Qi="<br />",tn="getBaseAxis",en="dimensions",nn="coordinateSystem",rn="addCommas",an="encodeHTML",on="getComponent",sn="register",ln="dispatchAction",un="getHeight",cn="getWidth",hn="getDom",dn="findComponents",fn="isString",pn="series",vn="timeline",mn="mergeOption",gn="resetOption",yn="mergeDefaultAndTheme",xn="positionGroup",_n="margin",wn="getLayoutRect",bn="normalizeCssArray",Mn="vertical",Sn="horizontal",An="childAt",Cn="position",Tn="eachChild",kn="registerSubTypeDefaulter",Ln="isObject",Dn="formatter",Pn="getDataParams",In="getItemModel",zn="getName",Vn="getRawIndex",Rn="getRawValue",On="ordinal",En="getData",Nn="seriesIndex",Bn="createDataFormatModel",Gn="normal",Zn="emphasis",Fn="defaultEmphasis",Hn="normalizeToArray",Wn="axisIndex",qn="radius",Un="option",jn="../util/clazz",Xn="borderWidth",Yn="borderColor",$n="baseline",Kn="getFont",Jn="getBoundingRect",Qn="textStyle",tr="getModel",er="ecModel",ir="defaults",nr="inside",rr="../core/BoundingRect",ar="../core/util",or="zrender/contain/text",sr="translate",lr="create",ur="height",cr="applyTransform",hr="zrender/core/BoundingRect",dr="zrender/core/matrix",fr="distance",pr="undefined",vr="zrender/core/vector",mr="shadowColor",gr="shadowOffsetX",yr="shadowBlur",xr="opacity",_r="stroke",wr="lineWidth",br="getShallow",Mr="getClass",Sr="enableClassManagement",Ar="inherits",Cr="extend",Tr="enableClassExtend",kr="toUpperCase",Lr="toLowerCase",Dr="getPixelPrecision",Pr="toFixed",Ir="bottom",zr="middle",Vr="center",Rr="parsePercent",Or="isArray",Er="linearMap",Nr="replace",Br="function",Gr="concat",Zr="number",Fr="string",Hr="indexOf",Wr="getContext",qr="canvas",Ur="createElement",jr="length",Xr="object",Yr="reduce",$r="filter",Kr="zrender/core/util",Jr="prototype",Qr="require";e("zrender/graphic/Gradient",[Qr],function(t){var e=function(t){this.colorStops=t||[]};return e[Jr]={constructor:e,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}},e}),e(Kr,[Qr,"../graphic/Gradient"],function(t){function e(t){if(typeof t==Xr&&null!==t){var i=t;if(t instanceof Array){i=[];for(var n=0,r=t[jr];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(!b(n)||!b(t))return r?e(n):t;for(var a in n)if(n.hasOwnProperty(a)){var o=t[a],s=n[a];!b(s)||!b(o)||x(s)||x(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[jr];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[Ur](qr)}function s(){return k||(k=N.createCanvas()[Wr]("2d")),k}function l(t,e){if(t){if(t[Hr])return t[Hr](e);for(var i=0,n=t[jr];n>i;i++)if(t[i]===e)return i}return-1}function u(t,e){function i(){}var n=t[Jr];i[Jr]=e[Jr],t[Jr]=new i;for(var r in n)t[Jr][r]=n[r];t[Jr].constructor=t,t.superClass=e}function c(t,e,i){t=Jr in t?t[Jr]:t,e=Jr in e?e[Jr]:e,a(t,e,i)}function h(t){return t?typeof t==Fr?!1:typeof t[jr]==Zr:void 0}function d(t,e,i){if(t&&e)if(t.forEach&&t.forEach===z)t.forEach(e,i);else if(t[jr]===+t[jr])for(var n=0,r=t[jr];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 f(t,e,i){if(t&&e){if(t.map&&t.map===O)return t.map(e,i);for(var n=[],r=0,a=t[jr];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[Yr]&&t[Yr]===E)return t[Yr](e,i,n);for(var r=0,a=t[jr];a>r;r++)i=e.call(n,i,t[r],r,t);return i}}function v(t,e,i){if(t&&e){if(t[$r]&&t[$r]===V)return t[$r](e,i);for(var n=[],r=0,a=t[jr];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[jr];r>n;n++)if(e.call(i,t[n],n,t))return t[n]}function g(t,e){var i=R.call(arguments,2);return function(){return t.apply(e,i[Gr](R.call(arguments)))}}function y(t){var e=R.call(arguments,1);return function(){return t.apply(this,e[Gr](R.call(arguments)))}}function x(t){return"[object Array]"===P.call(t)}function _(t){return typeof t===Br}function w(t){return"[object String]"===P.call(t)}function b(t){var e=typeof t;return e===Br||!!t&&e==Xr}function M(t){return!!D[P.call(t)]||t instanceof L}function S(t){return t&&1===t.nodeType&&typeof t.nodeName==Fr}function A(t){for(var e=0,i=arguments[jr];i>e;e++)if(null!=arguments[e])return arguments[e]}function C(){return Function.call.apply(R,arguments)}function T(t,e){if(!t)throw new Error(e)}var k,L=t("../graphic/Gradient"),D={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1},P=Object[Jr].toString,I=Array[Jr],z=I.forEach,V=I[$r],R=I.slice,O=I.map,E=I[Yr],N={inherits:u,mixin:c,clone:e,merge:i,mergeAll:n,extend:r,defaults:a,getContext:s,createCanvas:o,indexOf:l,slice:C,find:m,isArrayLike:h,each:d,map:f,reduce:p,filter:v,bind:g,curry:y,isArray:x,isString:w,isObject:b,isFunction:_,isBuildInObject:M,isDom:S,retrieve:A,assert:T,noop:function(){}};return N}),e("echarts/util/number",[Qr,Kr],function(t){function e(t){return t[Nr](/^\s+/,"")[Nr](/\s+$/,"")}var i=t(Kr),n={},r=1e-4;return n[Er]=function(t,e,r,a){if(i[Or](t))return i.map(t,function(t){return n[Er](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[Rr]=function(t,i){switch(t){case Vr:case zr:t="50%";break;case"left":case"top":t="0%";break;case"right":case Ir:t="100%"}return typeof t===Fr?e(t).match(/%$/)?parseFloat(t)/100*i:parseFloat(t):null==t?NaN:+t},n.round=function(t){return+(+t)[Pr](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[Dr]=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===Fr?t[Nr](/-/g,"/"):Math.round(t))},n}),e("echarts/util/format",[Qr,Kr,"./number"],function(t){function e(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0][Nr](/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t[jr]>1?"."+t[1]:""))}function i(t){return t[Lr]()[Nr](/-(.)/g,function(t,e){return e[kr]()})}function n(t){var e=t[jr];return typeof t===Zr?[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)[Nr](/&/g,"&amp;")[Nr](/</g,"&lt;")[Nr](/>/g,"&gt;")[Nr](/"/g,"&quot;")[Nr](/'/g,"&#39;")}function a(t,e){return"{"+t+(null==e?"":e)+"}"}function o(t,e){u[Or](e)||(e=[e]);var i=e[jr];if(!i)return"";for(var n=e[0].$vars,r=0;r<n[jr];r++){var o=h[r];t=t[Nr](a(o),a(o,0))}for(var s=0;i>s;s++)for(var l=0;l<n[jr];l++)t=t[Nr](a(h[l],s),e[s][n[l]]);return t}function s(t,e){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var i=c.parseDate(e),n=i.getFullYear(),r=i.getMonth()+1,a=i.getDate(),o=i.getHours(),s=i.getMinutes(),u=i.getSeconds();return t=t[Nr]("MM",l(r))[Lr]()[Nr]("yyyy",n)[Nr]("yy",n%100)[Nr]("dd",l(a))[Nr]("d",a)[Nr]("hh",l(o))[Nr]("h",o)[Nr]("mm",l(s))[Nr]("m",s)[Nr]("ss",l(u))[Nr]("s",u)}function l(t){return 10>t?"0"+t:t}var u=t(Kr),c=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",[Qr,Kr],function(t){function e(t,e){for(var i,n=t.constructor,r=t[e];(n=n.$superClass)&&(i=n[Jr][e])&&i===r;);return i}var i=t(Kr),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[Tr]=function(t,n){t[Cr]=function(r){var a=function(){n&&n.apply(this,arguments),t.apply(this,arguments)};return i[Cr](a[Jr],i[Cr]({$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[Cr]=this[Cr],i[Ar](a,this),a.$superClass=this,a}},n[Sr]=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[Mr]=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[Cr];s&&(t[Cr]=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",[Qr,Kr],function(t){var e=t(Kr);return function(t){for(var i=0;i<t[jr];i++)t[i][1]||(t[i][1]=t[i][0]);return function(i){for(var n={},r=0;r<t[jr];r++){var a=t[r][1];if(!(i&&e[Hr](i,a)>=0)){var o=this[br](a);null!=o&&(n[t[r][0]]=o)}}return n}}}),e("echarts/model/mixin/lineStyle",[Qr,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([[wr,"width"],[_r,"color"],[xr],[yr],[gr],["shadowOffsetY"],[mr]]);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",[Qr,"./makeStyleMapper"],function(t){return{getAreaStyle:t("./makeStyleMapper")([["fill","color"],[yr],[gr],["shadowOffsetY"],[xr],[mr]])}}),e(vr,[],function(){var t=typeof Float32Array===pr?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[jr]=e.len,e.lengthSquare=e.lenSquare,e.dist=e[fr],e.distSquare=e.distanceSquare,e}),e(dr,[],function(){var t=typeof Float32Array===pr?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],l=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]=l,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],l=e[5],u=Math.sin(i),c=Math.cos(i);return t[0]=n*c+o*u,t[1]=-n*u+o*c,t[2]=r*c+s*u,t[3]=-r*u+c*s,t[4]=c*a+u*l,t[5]=c*l-u*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],l=i*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-o*r)*l,t[5]=(a*r-i*s)*l,t):null}};return e}),e(hr,[Qr,"./vector","./matrix"],function(t){function e(t,e,i,n){this.x=t,this.y=e,this.width=i,this[ur]=n}var i=t("./vector"),n=t("./matrix"),r=i[cr],a=Math.min,o=Math.abs,s=Math.max;return e[Jr]={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[ur]=s(t.y+t[ur],this.y+this[ur])-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[ur],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[ur]=o(e[1]-t[1]))}}(),calculateTransform:function(t){var e=this,i=t.width/e.width,r=t[ur]/e[ur],a=n[lr]();return n[sr](a,a,[-e.x,-e.y]),n.scale(a,a,[i,r]),n[sr](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[ur],o=t.x,s=t.x+t.width,l=t.y,u=t.y+t[ur];return!(o>n||i>s||l>a||r>u)},contain:function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i[ur]},clone:function(){return new e(this.x,this.y,this.width,this[ur])},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this[ur]=t[ur]}},e}),e(or,[Qr,ar,rr],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[jr];o>a;a++)r=Math.max(d.measureText(n[a],e).width,r);return l>u&&(l=0,s={}),l++,s[i]=r,r}function i(t,i,n,r){var a=((t||"")+"").split("\n")[jr],o=e(t,i),s=e("国",i),l=a*s,u=new h(0,0,o,l);switch(u.lineHeight=s,r){case Ir:case"alphabetic":u.y-=s;break;case zr:u.y-=s/2}switch(n){case"end":case"right":u.x-=u.width;break;case Vr:u.x-=u.width/2}return u}function n(t,e,i,n){var r=e.x,a=e.y,o=e[ur],s=e.width,l=i[ur],u=o/2-l/2,c="left";switch(t){case"left":r-=n,a+=u,c="right";break;case"right":r+=n+s,a+=u,c="left";break;case"top":r+=s/2,a-=n+l,c=Vr;break;case Ir:r+=s/2,a+=o+n,c=Vr;break;case nr:r+=s/2,a+=u,c=Vr;break;case"insideLeft":r+=n,a+=u,c="left";break;case"insideRight":r+=s-n,a+=u,c="right";break;case"insideTop":r+=s/2,a+=n,c=Vr;break;case"insideBottom":r+=s/2,a+=o-l-n,c=Vr;break;case"insideTopLeft":r+=n,a+=n,c="left";break;case"insideTopRight":r+=s-n,a+=n,c="right";break;case"insideBottomLeft":r+=n,a+=o-l-n;break;case"insideBottomRight":r+=s-n,a+=o-l-n,c="right"}return{x:r,y:a,textAlign:c,textBaseline:"top"}}function r(t,i,n,r){if(!n)return"";r=c[ir]({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,l=o[jr];l>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 l=0===a?o(t,n,r):Math.floor(t[jr]*n/s);if(l<r.minCharacters){t="";break}t=t.substr(0,l)}return t}function o(t,e,i){for(var n=0,r=0,a=t[jr];a>r&&e>n;r++){var o=t.charCodeAt(r);n+=o>=0&&127>=o?i.ascCharWidth:i.cnCharWidth}return r}var s={},l=0,u=5e3,c=t(ar),h=t(rr),d={getWidth:e,getBoundingRect:i,adjustTextPositionOnRect:n,ellipsis:r,measureText:function(t,e){var i=c[Wr]();return i.font=e,i.measureText(t)}};return d}),e("echarts/model/mixin/textStyle",[Qr,or],function(t){function e(t,e){return t&&t[br](e)}var i=t(or);return{getTextColor:function(){var t=this[er];return this[br]("color")||t&&t.get("textStyle.color")},getFont:function(){var t=this[er],i=t&&t[tr](Qn);return[this[br]("fontStyle")||e(i,"fontStyle"),this[br]("fontWeight")||e(i,"fontWeight"),(this[br]("fontSize")||e(i,"fontSize")||12)+"px",this[br]("fontFamily")||e(i,"fontFamily")||"sans-serif"].join(" ")},getTextRect:function(t){var e=this.get(Qn)||{};return i[Jn](t,this[Kn](),e.align,e[$n])},ellipsis:function(t,e,n){return i.ellipsis(t,this[Kn](),e,n)}}}),e("echarts/model/mixin/itemStyle",[Qr,"./makeStyleMapper"],function(t){return{getItemStyle:t("./makeStyleMapper")([["fill","color"],[_r,Yn],[wr,Xn],[xr],[yr],[gr],["shadowOffsetY"],[mr]])}}),e("echarts/model/Model",[Qr,Kr,jn,"./mixin/lineStyle","./mixin/areaStyle","./mixin/textStyle","./mixin/itemStyle"],function(t){function e(t,e,i,n){this.parentModel=e,this[er]=i,this[Un]=t,this.init&&(arguments[jr]<=4?this.init(t,e,i,n):this.init.apply(this,arguments))}var i=t(Kr),n=t(jn);e[Jr]={constructor:e,init:null,mergeOption:function(t){i.merge(this[Un],t,!0)},get:function(t,e){if(!t)return this[Un];typeof t===Fr&&(t=t.split("."));for(var i=this[Un],n=this.parentModel,r=0;r<t[jr]&&(i=i&&typeof i===Xr?i[t[r]]:null,null!=i);r++);return null==i&&n&&!e&&(i=n.get(t)),i},getShallow:function(t,e){var i=this[Un],n=i&&i[t],r=this.parentModel;return null==n&&r&&!e&&(n=r[br](t)),n},getModel:function(t,i){var n=this.get(t,!0),r=this.parentModel,a=new e(n,i||r&&r[tr](t),this[er]);return a},isEmpty:function(){return null==this[Un]},restoreData:function(){},clone:function(){var t=this.constructor;return new t(i.clone(this[Un]))},setReadOnly:function(t){n.setReadOnly(this,t)}},n[Tr](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",[Qr,"./format","./number",Kr,"../model/Model"],function(t){function e(t){return t&&t.id&&0===(t.id+"")[Hr]("\x00_ec_\x00")}var i=t("./format"),n=t("./number"),r=t(Kr),a=t("../model/Model"),o=["x","y","z",qn,"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]},l=0;l<e[jr];l++)s[e[l]]=t+n[l];a.call(o,s)})}},s.capitalFirst=function(t){return t?t.charAt(0)[kr]()+t.substr(1):t},s.eachAxisDim=s.createNameEach(o,[Wn,"axis","index"]),s[Hn]=function(t){return r[Or](t)?t:null==t?[]:[t]},s.createLinkedNodesFinder=function(t,e,i){function n(t,e){return r[Hr](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),l=!0)}var s={nodes:[],records:{}};if(e(function(t){s.records[t.name]={}}),!i)return s;o(i,s);var l;do l=!1,t(r);while(l);return s}},s[Fn]=function(t,e){if(t){var i=t[Zn]=t[Zn]||{},n=t[Gn]=t[Gn]||{};r.each(e,function(t){var e=r.retrieve(i[t],n[t]);null!=e&&(i[t]=e)})}},s[Bn]=function(t,e,i){var n=new a;return r.mixin(n,s.dataFormatMixin),n[Nn]=t[Nn],n.name=t.name||"",n[En]=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===On?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[En](),i=this[Nn],n=this.name,r=this[Rn](t),a=e[Vn](t),o=e[zn](t,!0),s=this.getRawDataArray(),l=s&&s[a];return{seriesIndex:i,seriesName:n,name:o,dataIndex:a,data:l,value:r,$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,n){e=e||Gn;var r=this[En](),a=r[In](t),o=this[Pn](t);return n||(n=a.get(["label",e,Dn])),typeof n===Br?(o.status=e,n(o)):typeof n===Fr?i.formatTpl(n,o):void 0},getRawValue:function(t){var e=this[En]()[In](t);if(e&&null!=e[Un]){var i=e[Un];return r[Ln](i)&&!r[Or](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[Ln](t))for(var o=0;o<n[jr];o++){var s=n[o].exist;if(!n[o][Un]&&(null!=t.id&&s.id===t.id+""||null!=t.name&&!e(t)&&!e(s)&&s.name===t.name+"")){n[o][Un]=t,i[a]=null;break}}}),r.each(i,function(t,i){if(r[Ln](t)){for(var a=0;a<n[jr];a++){var o=n[a].exist;if(!n[a][Un]&&!e(o)&&null==t.id){n[a][Un]=t;break}}a>=n[jr]&&n.push({option:t})}}),n},s}),e("echarts/util/component",[Qr,Kr,"./clazz"],function(t){var e=t(Kr),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[kn]=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 l=r(n,s),u=l.originalDeps=i(s),c=a(u,t);l.entryCount=c[jr],0===l.entryCount&&o.push(s),e.each(c,function(t){e[Hr](l.predecessor,t)<0&&l.predecessor.push(t);var i=r(n,t);e[Hr](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[Hr](i,t)>=0&&n.push(t)}),n}t.topologicalTravel=function(t,i,r,a){function o(t){u[t].entryCount--,0===u[t].entryCount&&c.push(t)}function s(t){h[t]=!0,o(t)}if(t[jr]){var l=n(i),u=l.graph,c=l.noEntryList,h={};for(e.each(t,function(t){h[t]=!0});c[jr];){var d=c.pop(),f=u[d],p=!!h[d];p&&(r.call(a,d,f.originalDeps.slice()),delete h[d]),e.each(f.successor,p?s:o)}e.each(h,function(){throw new Error("Circle dependency may exists")})}}},a}),e("echarts/util/layout",[Qr,Kr,hr,"./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[Tn](function(l,u){var c,h,d=l[Cn],f=l[Jn](),p=e[An](u+1),v=p&&p[Jn]();if(t===Sn){var m=f.width+(v?-v.x+f.x:0);c=a+m,c>n||l.newline?(a=0,c=m,o+=s+i,s=f[ur]):s=Math.max(s,f[ur])}else{var g=f[ur]+(v?-v.y+f.y:0);h=o+g,h>r||l.newline?(a+=s+i,o=0,h=g,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=a,d[1]=o,t===Sn?a=c+i:o=h+i)})}var i=t(Kr),n=t(hr),r=t("./number"),a=t("./format"),o=r[Rr],s=i.each,l={};return l.box=e,l.vbox=i.curry(e,Mn),l.hbox=i.curry(e,Sn),l.getAvailableSize=function(t,e,i){var n=e.width,r=e[ur],s=o(t.x,n),l=o(t.y,r),u=o(t.x2,n),c=o(t.y2,r);return(isNaN(s)||isNaN(parseFloat(t.x)))&&(s=0),(isNaN(u)||isNaN(parseFloat(t.x2)))&&(u=n),(isNaN(l)||isNaN(parseFloat(t.y)))&&(l=0),(isNaN(c)||isNaN(parseFloat(t.y2)))&&(c=r),i=a[bn](i||0),{width:Math.max(u-s-i[1]-i[3],0),height:Math.max(c-l-i[0]-i[2],0)}},l[wn]=function(t,e,i){i=a[bn](i||0);var r=e.width,s=e[ur],l=o(t.left,r),u=o(t.top,s),c=o(t.right,r),h=o(t[Ir],s),d=o(t.width,r),f=o(t[ur],s),p=i[2]+i[0],v=i[1]+i[3],m=t.aspect;switch(isNaN(d)&&(d=r-c-v-l),isNaN(f)&&(f=s-h-p-u),isNaN(d)&&isNaN(f)&&(m>r/s?d=.8*r:f=.8*s),null!=m&&(isNaN(d)&&(d=m*f),isNaN(f)&&(f=d/m)),isNaN(l)&&(l=r-c-d-v),isNaN(u)&&(u=s-h-f-p),t.left||t.right){case Vr:l=r/2-d/2-i[3];break;case"right":l=r-d-v}switch(t.top||t[Ir]){case zr:case Vr:u=s/2-f/2-i[0];break;case Ir:u=s-f-p}l=l||0,u=u||0,isNaN(d)&&(d=r-l-(c||0)),isNaN(f)&&(f=s-u-(h||0));var g=new n(l+i[3],u+i[0],d,f);return g[_n]=i,g},l[xn]=function(t,e,n,r){var a=t[Jn]();e=i[Cr](i.clone(e),{width:a.width,height:a[ur]}),e=l[wn](e,n,r),t[Cn]=[e.x-a.x,e.y-a.y]},l.mergeLayoutParam=function(t,e,n){function r(i){var r={},l=0,u={},c=0,h=n.ignoreSize?1:2;if(s(i,function(e){u[e]=t[e]}),s(i,function(t){a(e,t)&&(r[t]=u[t]=e[t]),o(r,t)&&l++,o(u,t)&&c++}),c!==h&&l){if(h>c){var d=0;return s(i,function(t){"auto"===u[t]&&(h-c>d?d++:u[t]=null)}),u}if(l>=h)return r;for(var f=0;f<i[jr];f++){var p=i[f];if(!a(r,p)&&a(t,p)){r[p]=t[p];break}}return r}return u}function a(t,e){return t.hasOwnProperty(e)}function o(t,e){return null!=t[e]&&"auto"!==t[e]}function l(t,e,i){s(t,function(t){e[t]=i[t]})}!i[Ln](n)&&(n={});var u=["width","left","right"],c=[ur,"top",Ir],h=r(u),d=r(c);l(u,t,h),l(c,t,d)},l.getLayoutParams=function(t){var e={};return t&&s(["left","right","top",Ir,"width",ur],function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e},l}),e("echarts/model/mixin/boxLayout",[Qr],function(t){return{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get(Ir),width:this.get("width"),height:this.get(ur)}}}}),e("echarts/model/Component",[Qr,"./Model",Kr,"../util/component",jn,"../util/layout","./mixin/boxLayout"],function(t){function e(t){var e=[];return n.each(l.getClassesByMainType(t),function(t){r.apply(e,t[Jr].dependencies||[])}),n.map(e,function(t){return o.parseClassType(t).main})}var i=t("./Model"),n=t(Kr),r=Array[Jr].push,a=t("../util/component"),o=t(jn),s=t("../util/layout"),l=i[Cr]({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,init:function(t,e,i,n){this[yn](this[Un],this[er])},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[Un],t,!0);var e=this.layoutMode;e&&s.mergeLayoutParam(this[Un],t,e)},getDefaultOption:function(){if(!this.hasOwnProperty("__defaultOption")){for(var t=[],e=this.constructor;e;){var i=e[Jr].defaultOption;i&&t.push(i),e=e.superClass}for(var r={},a=t[jr]-1;a>=0;a--)r=n.merge(r,t[a],!0);this.__defaultOption=r}return this.__defaultOption}});return o[Tr](l,function(t,e,i,r){n[Cr](this,r),this.uid=a.getUID("componentModel"),this.setReadOnly(["type","id","uid","name","mainType","subType","dependentModels","componentIndex"])}),o[Sr](l,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(l),a.enableTopologicalTravel(l,e),n.mixin(l,t("./mixin/boxLayout")),l}),e("echarts/model/globalDefault",[],function(){var t="";return typeof navigator!==pr&&(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",[Qr,Kr,"../util/model","./Model","./Component","./globalDefault"],function(t){function e(t,e){for(var i in e)y.hasClass(i)||(typeof e[i]===Xr?t[i]=t[i]?u.merge(t[i],e[i],!1):u.clone(e[i]):t[i]=e[i])}function i(t){t=t,this[Un]={},this._componentsMap={},this._seriesIndices=null,e(t,this._theme[Un]),u.merge(t,x,!1),this[mn](t)}function n(t,e){u[Or](e)||(e=e?[e]:[]);var i={};return d(e,function(e){i[e]=(t[e]||[]).slice()}),i}function r(t,e){var i={};d(e,function(e,n){var r=e.exist,o=e[Un];if(u.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}}}),d(e,function(t,e){var n=t.exist,r=t[Un],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")?f(t,function(t){return t.subType===e.subType}):t}function l(t){if(!t._seriesIndices)throw new Error("Series is not initialized. Please depends sereis.")}var u=t(Kr),c=t("../util/model"),h=t("./Model"),d=u.each,f=u[$r],p=u.map,v=u[Or],m=u[Hr],g=u[Ln],y=t("./Component"),x=t("./globalDefault"),_=h[Cr]({constructor:_,init:function(t,e,i,n){i=i||{},this[Un]=null,this._theme=new h(i),this._optionManager=n},setOption:function(t,e){this._optionManager.setOption(t,e),this[gn]()},resetOption:function(t){var e=!1,n=this._optionManager;if(!t||"recreate"===t){var r=n.mountOption("recreate"===t);this[Un]&&"recreate"!==t?(this.restoreData(),this[mn](r)):i.call(this,r),e=!0}if((t===vn||"media"===t)&&this.restoreData(),!t||"recreate"===t||t===vn){var a=n.getTimelineOption(this);a&&(this[mn](a),e=!0)}if(!t||"recreate"===t||"media"===t){var o=n.getMediaOption(this,this._api);o[jr]&&d(o,function(t){this[mn](t,e=!0)},this)}return e},mergeOption:function(t){function e(e,s){var l=t[e];u[Or](l)||(l=l?[l]:[]);var h=c.mappingToExists(a[e],l);r(e,h);var f=n(a,s);i[e]=[],a[e]=[],d(h,function(t,n){var r=t.exist,o=t[Un];if(u.assert(g(o)||r,"Empty component definition"),o){var s=y[Mr](e,t.keyInfo.subType,!0);r&&r instanceof s?r[mn](o,this):r=new s(o,this,this,u[Cr]({dependentModels:f,componentIndex:n},t.keyInfo))}else r[mn]({},this);a[e][n]=r,i[e][n]=r[Un]},this),e===pn&&(this._seriesIndices=o(a[pn]))}var i=this[Un],a=this._componentsMap,s=[];d(t,function(t,e){null!=t&&(y.hasClass(e)?s.push(e):i[e]=null==i[e]?u.clone(t):u.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[jr])return[];var o;if(null!=i)v(i)||(i=[i]),o=f(p(i,function(t){return a[t]}),function(t){return!!t});else if(null!=n){var l=v(n);o=f(a,function(t){return l&&m(n,t.id)>=0||!l&&t.id===n})}else if(null!=r){var u=v(r);o=f(a,function(t){return u&&m(r,t.name)>=0||!u&&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[$r]?f(e,t[$r]):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===Br)i=e,e=t,d(n,function(t,n){d(t,function(t,r){e.call(i,n,t,r)})});else if(u[fn](t))d(n[t],e,i);else if(g(t)){var r=this[dn](t);d(r,e,i)}},getSeriesByName:function(t){var e=this._componentsMap[pn];return f(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap[pn][t]},getSeriesByType:function(t){var e=this._componentsMap[pn];return f(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap[pn].slice()},eachSeries:function(t,e){l(this),d(this._seriesIndices,function(i){var n=this._componentsMap[pn][i];t.call(e,n,i)},this)},eachRawSeries:function(t,e){d(this._componentsMap[pn],t,e)},eachSeriesByType:function(t,e,i){l(this),d(this._seriesIndices,function(n){var r=this._componentsMap[pn][n];r.subType===t&&e.call(i,r,n)},this)},eachRawSeriesByType:function(t,e,i){return d(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return l(this),u[Hr](this._seriesIndices,t.componentIndex)<0},filterSeries:function(t,e){l(this);var i=f(this._componentsMap[pn],t,e);this._seriesIndices=o(i)},restoreData:function(){var t=this._componentsMap;this._seriesIndices=o(t[pn]);var e=[];d(t,function(t,i){e.push(i)}),y.topologicalTravel(e,y.getAllClassMainTypes(),function(e,i){d(t[e],function(t){t.restoreData()})})}});return _}),e("echarts/ExtensionAPI",[Qr,Kr],function(t){function e(t){i.each(n,function(e){this[e]=i.bind(t[e],t)},this)}var i=t(Kr),n=[hn,"getZr",cn,un,ln,"on","off","getDataURL","getConnectedDataURL",tr,"getOption"];return e}),e("echarts/CoordinateSystem",[Qr],function(t){function e(){this._coordinateSystems={},this._coordinateSystemsList=[]}var i={};return e[Jr]={constructor:e,update:function(t,e){var n={};for(var r in i)n[r]=i[r][lr](t,e);this._coordinateSystems=n},get:function(t,e){var i=this._coordinateSystems[t];return i?i[e||0]:void 0}},e[sn]=function(t,e){i[t]=e},e.get=function(t){return i[t]},e}),e("echarts/model/OptionManager",[Qr,Kr,"../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[vn];if(t.baseOption&&(n=t.baseOption),(o||t.options)&&(n=n||{},r=(t.options||[]).slice()),t.media){n=n||{};var l=t.media;c(l,function(t){t&&t[Un]&&(t.query?a.push(t):i||(i=t))})}return n||(n=t),n[vn]||(n[vn]=o),c([n][Gr](r)[Gr](s.map(a,function(t){return t[Un]})),function(t){c(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][Lr]();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||{},c(e,function(e,i){if(null!=e){var n=t[i];if(u.hasClass(i)){s[Or](e)||(e=e?[e]:[]);var r=l.mappingToExists(n||[],e);t[i]=d(r,function(t){return t[Un]&&t.exist?f(t.exist,t[Un],!0):t.exist||t[Un]})}else t[i]=f(n,e,!0)}})}var s=t(Kr),l=t("../util/model"),u=t("./Component"),c=s.each,h=s.clone,d=s.map,f=s.merge,p=/^(min|max)?(.+)$/;return e[Jr]={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[jr]&&(n.timelineOptions=r.timelineOptions),r.mediaList[jr]&&(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=d(e.timelineOptions,h),this._mediaList=d(e.mediaList,h),this._mediaDefault=h(e.mediaDefault),this._currentMediaIndices=[],h(e.baseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i[jr]){var n=t[on](vn);n&&(e=h(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e=this._api[cn](),i=this._api[un](),r=this._mediaList,o=this._mediaDefault,s=[],l=[];if(!r[jr]&&!o)return l;for(var u=0,c=r[jr];c>u;u++)n(r[u].query,e,i)&&s.push(u);return!s[jr]&&o&&(s=[-1]),s[jr]&&!a(s,this._currentMediaIndices)&&(l=d(s,function(t){return h(-1===t?o[Un]:r[t][Un])})),this._currentMediaIndices=s,l}},e}),e("echarts/model/Series",[Qr,Kr,"../util/format","../util/model","./Component"],function(t){var e=t(Kr),i=t("../util/format"),n=t("../util/model"),r=t("./Component"),a=i[an],o=i[rn],s=r[Cr]({type:"series",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,init:function(t,e,i,n){this[Nn]=this.componentIndex,this[yn](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[Fn](t.label,[Cn,"show",Qn,fr,Dn])},mergeOption:function(t,i){t=e.merge(this[Un],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[Un].data},getDimensionsOnAxis:function(t){return[t]},getCoordDimensionInfo:function(t){var i=this[En]();return this[nn]?null!=t?i.getDimensionInfo(t):e.map(i[en],i.getDimensionInfo,i):[]},getBaseAxis:function(){var t=this[nn];return t&&t[tn]&&t[tn]()},formatTooltip:function(t,i){var n=this._data,r=this[Rn](t),s=e[Or](r)?e.map(r,o).join(", "):o(r),l=n[zn](t);return i?a(this.name)+" : "+s:a(this.name)+Qi+(l?a(l)+" : "+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(Ji,[Qr,ar],function(t){var e=Array[Jr].slice,i=t(ar),n=i[Hr],r=function(){this._$handlers={}};return r[Jr]={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][jr]},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][jr];a>r;r++)i[t][r].h!=e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t][jr]&&delete i[t]}else delete i[t];return this},trigger:function(t){if(this._$handlers[t]){var i=arguments,n=i[jr];n>3&&(i=e.call(i,1));for(var r=this._$handlers[t],a=r[jr],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[Ki](o,1),a--):o++}}return this},triggerWithContext:function(t){if(this._$handlers[t]){var i=arguments,n=i[jr];n>4&&(i=e.call(i,1,i[jr]-1));for(var r=i[i[jr]-1],a=this._$handlers[t],o=a[jr],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[Ki](s,1),o--):s++}}return this}},r}),e("zrender/mixin/Transformable",[Qr,"../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[Cn]||(this[Cn]=[0,0]),null==t[$i]&&(this[$i]=0),t.scale||(this.scale=[1,1]),this[Yi]=this[Yi]||null},s=o[Jr];s[Xi]=null,s.needLocalTransform=function(){return e(this[$i])||e(this[Cn][0])||e(this[Cn][1])||e(this.scale[0]-1)||e(this.scale[1]-1)},s[ji]=function(){var t=this[Ui],e=t&&t[Xi],n=this.needLocalTransform(),a=this[Xi];return n||e?(a=a||i[lr](),n?this[qi](a):r(a),e&&(n?i.mul(a,t[Xi],a):i.copy(a,t[Xi])),this[Xi]=a,this[Wi]=this[Wi]||i[lr](),void i.invert(this[Wi],a)):void(a&&r(a))},s[qi]=function(t){t=t||[],r(t);var e=this[Yi],n=this.scale,a=this[$i],o=this[Cn];return e&&(t[4]-=e[0],t[5]-=e[1]),i.scale(t,t,n),a&&i[Hi](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[Xi];e&&t[Xi](e[0],e[1],e[2],e[3],e[4],e[5])};var l=[];return s.decomposeTransform=function(){if(this[Xi]){var t=this[Ui],n=this[Xi];t&&t[Xi]&&(i.mul(l,t[Wi],n),n=l);var r=n[0]*n[0]+n[1]*n[1],a=n[2]*n[2]+n[3]*n[3],o=this[Cn],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[$i]=Math.atan2(-n[1]/a,n[0]/r)}},s[Fi]=function(t,e){var i=[t,e],r=this[Wi];return r&&n[cr](i,i,r),i},s.transformCoordToGlobal=function(t,e){var i=[t,e],r=this[Xi];return r&&n[cr](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",[Qr,"./easing"],function(t){function e(t){this._target=t[Zi],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[Jr]={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==Fr?i[n]:n,a=typeof r===Br?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(Gi,[Qr],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[jr]&&"%"===t.charAt(t[jr]-1)?parseFloat(t)/100*255:parseInt(t,10))}function a(t){return n(t[jr]&&"%"===t.charAt(t[jr]-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 l(t){if(t){t+="";var e=t[Nr](/ /g,"")[Lr]();if(e in x)return x[e].slice();if("#"!==e.charAt(0)){var i=e[Hr]("("),n=e[Hr](")");if(-1!==i&&n+1===e[jr]){var o=e.substr(0,i),s=e.substr(i+1,n-(i+1)).split(","),l=1;switch(o){case"rgba":if(4!==s[jr])return;l=a(s.pop());case"rgb":if(3!==s[jr])return;return[r(s[0]),r(s[1]),r(s[2]),l];case"hsla":if(4!==s[jr])return;return s[3]=a(s[3]),u(s);case"hsl":if(3!==s[jr])return;return u(s);default:return}}}else{if(4===e[jr]){var c=parseInt(e.substr(1),16);if(!(c>=0&&4095>=c))return;return[(3840&c)>>4|(3840&c)>>8,240&c|(240&c)>>4,15&c|(15&c)<<4,1]}if(7===e[jr]){var c=parseInt(e.substr(1),16);if(!(c>=0&&16777215>=c))return;return[(16711680&c)>>16,(65280&c)>>8,255&c,1]}}}}function u(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,l=2*r-s,u=[e(255*o(l,s,i+1/3)),e(255*o(l,s,i)),e(255*o(l,s,i-1/3))];return 4===t[jr]&&(u[3]=t[3]),u}function c(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),l=s-o,u=(s+o)/2;if(0===l)e=0,i=0;else{i=.5>u?l/(s+o):l/(2-s-o);var c=((s-n)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-a)/6+l/2)/l;n===s?e=d-h:r===s?e=1/3+c-d:a===s&&(e=2/3+h-c),0>e&&(e+=1),e>1&&(e-=1)}var f=[360*e,i,u];return null!=t[3]&&f.push(t[3]),f}}function h(t,e){var i=l(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[jr]?"rgba":"rgb")}}function d(t,e){var i=l(t);return i?((1<<24)+(i[0]<<16)+(i[1]<<8)+ +i[2]).toString(16).slice(1):void 0}function f(t,i,n){if(i&&i[jr]&&t>=0&&1>=t){n=n||[0,0,0,0];var r=t*(i[jr]-1),a=Math.floor(r),o=Math.ceil(r),l=i[a],u=i[o],c=r-a;return n[0]=e(s(l[0],u[0],c)),n[1]=e(s(l[1],u[1],c)),n[2]=e(s(l[2],u[2],c)),n[3]=e(s(l[3],u[3],c)),n}}function p(t,i,r){if(i&&i[jr]&&t>=0&&1>=t){var a=t*(i[jr]-1),o=Math.floor(a),u=Math.ceil(a),c=l(i[o]),h=l(i[u]),d=a-o,f=y([e(s(c[0],h[0],d)),e(s(c[1],h[1],d)),e(s(c[2],h[2],d)),n(s(c[3],h[3],d))],"rgba");return r?{color:f,leftIndex:o,rightIndex:u,value:a}:f}}function v(t,e){if(!(2!==t[jr]||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),l=o;a>0&&s>=l;l++)r.push({color:e[l],offset:(l-i.value)/a});return r.push({color:n.color,offset:1}),r}}function m(t,e,n,r){return t=l(t),t?(t=c(t),null!=e&&(t[0]=i(e)),null!=n&&(t[1]=a(n)),null!=r&&(t[2]=a(r)),y(u(t),"rgba")):void 0}function g(t,e){return t=l(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 x={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:l,lift:h,toHex:d,fastMapToColor:f,mapToColor:p,mapIntervalToColor:v,modifyHSL:m,modifyAlpha:g,stringify:y}}),e("zrender/animation/Animator",[Qr,"./Clip","../tool/color",ar],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[jr];if(1==a)for(var s=0;o>s;s++)r[s]=n(t[s],e[s],i);else for(var l=t[0][jr],s=0;o>s;s++)for(var u=0;l>u;u++)r[s][u]=n(t[s][u],e[s][u],i)}function o(t,e,i){var n=t[jr],r=e[jr];if(n!==r){var a=n>r;if(a)t[jr]=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[jr];if(n!==e[jr])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][jr],r=0;n>r;r++)for(var o=0;a>o;o++)if(t[r][o]!==e[r][o])return!1;return!0}function l(t,e,i,n,r,a,o,s,l){var c=t[jr];if(1==l)for(var h=0;c>h;h++)s[h]=u(t[h],e[h],i[h],n[h],r,a,o);else for(var d=t[0][jr],h=0;c>h;h++)for(var f=0;d>f;f++)s[h][f]=u(t[h][f],e[h][f],i[h][f],n[h][f],r,a,o)}function u(t,e,i,n,r,a,o){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*o+(-3*(e-i)-2*s-l)*a+s*r+e}function c(t){if(m(t)){var e=t[jr];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 d(t,e,i,c,d){var v=t._getter,g=t._setter,y="spline"===e,x=c[jr];if(x){var _,w=c[0].value,b=m(w),M=!1,S=!1,A=b&&m(w[0])?2:1;c.sort(function(t,e){return t.time-e.time}),_=c[x-1].time;for(var C=[],T=[],k=c[0].value,L=!0,D=0;x>D;D++){C.push(c[D].time/_);var P=c[D].value;if(b&&s(P,k,A)||!b&&P===k||(L=!1),k=P,typeof P==Fr){var I=p.parse(P);I?(P=I,M=!0):S=!0}T.push(P)}if(!L){if(b){for(var z=T[x-1],D=0;x-1>D;D++)o(T[D],z,A);o(v(t._target,d),z,A)}var V,R,O,E,N,B,G=0,Z=0;if(M)var F=[0,0,0,0];var H=function(t,e){var i;if(Z>e){for(V=Math.min(G+1,x-1),i=V;i>=0&&!(C[i]<=e);i--);i=Math.min(i,x-2)}else{for(i=G;x>i&&!(C[i]>e);i++);i=Math.min(i-1,x-2)}G=i,Z=e;var o=C[i+1]-C[i];if(0!==o)if(R=(e-C[i])/o,y)if(E=T[i],O=T[0===i?i:i-1],N=T[i>x-2?x-1:i+1],B=T[i>x-3?x-1:i+2],b)l(O,E,N,B,R,R*R,R*R*R,v(t,d),A);else{var s;if(M)s=l(O,E,N,B,R,R*R,R*R*R,F,1),s=h(F);else{if(S)return r(E,N,R);s=u(O,E,N,B,R,R*R,R*R*R)}g(t,d,s)}else if(b)a(T[i],T[i+1],R,v(t,d),A);else{var s;if(M)a(T[i],T[i+1],R,F,1),s=h(F);else{if(S)return r(T[i],T[i+1],R);s=n(T[i],T[i+1],R)}g(t,d,s)}},W=new f({target:t._target,life:_,loop:t._loop,delay:t._delay,onframe:H,ondestroy:i});return e&&"spline"!==e&&(W.easing=e),W}}}var f=t("./Clip"),p=t("../tool/color"),v=t(ar),m=v.isArrayLike,g=Array[Jr].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[Jr]={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:c(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[jr]=0;for(var t=this._doneList,e=t[jr],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=d(this,t,r,this._tracks[a],a);o&&(this._clipList.push(o),n++,this[Bi]&&this[Bi].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[jr];n++)i._onframeList[n](t,e)}}return n||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,i=this[Bi],n=0;n<e[jr];n++){var r=e[n];t&&r.onframe(this._target,1),i&&i.removeClip(r)}e[jr]=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!==pr&&(t=Math.max(window.devicePixelRatio||1,1));var e={debugMode:0,devicePixelRatio:t};return e}),e("zrender/core/log",[Qr,"../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",[Qr,"../animation/Animator",ar,"../core/log"],function(t){var e=t("../animation/Animator"),i=t(ar),n=i[fn],r=i.isFunction,a=i[Ln],o=t("../core/log"),s=function(){this.animators=[]};return s[Jr]={constructor:s,animate:function(t,n){var r,a=!1,s=this,l=this.__zr;if(t){var u=t.split("."),c=s;a="shape"===u[0];for(var h=0,d=u[jr];d>h;h++)c&&(c=c[u[h]]);c&&(r=c)}else r=s;if(!r)return void o('Property "'+t+'" is not existed in element '+s.id);var f=s.animators,p=new e(r,n);return p.during(function(t){s.dirty(a)}).done(function(){f[Ki](i[Hr](f,p),1)}),f.push(p),l&&l[Bi].addAnimator(p),p},stopAnimation:function(t){for(var e=this.animators,i=e[jr],n=0;i>n;n++)e[n].stop(t);return e[jr]=0,this},animateTo:function(t,e,i,a,o){function s(){u--,u||o&&o()}n(i)?(o=a,a=i,i=0):r(a)?(o=a,a=Ni,i=0):r(i)?(o=i,i=0):r(e)?(o=e,e=500):e||(e=500),this[Ei](),this._animateToShallow("",this,t,e,i,a,o);var l=this.animators.slice(),u=l[jr];u||o&&o();for(var c=0;c<l[jr];c++)l[c].done(s).start(a)},_animateToShallow:function(t,e,n,r,o){var s={},l=0;for(var u in n)if(null!=e[u])a(n[u])&&!i.isArrayLike(n[u])?this._animateToShallow(t?t+"."+u:u,e[u],n[u],r,o):(s[u]=n[u],l++);else if(null!=n[u])if(t){var c={};c[t]={},c[t][u]=n[u],this.attr(c)}else this.attr(u,n[u]);return l>0&&this[Oi](t,!1).when(null==r?500:r,s).delay(o||0),this}},s}),e("zrender/Element",[Qr,"./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[Jr]={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,drift:function(t,e){switch(this[Ri]){case Sn:e=0;break;case Mn:t=0}var i=this[Xi];i||(i=this[Xi]=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.dirty()},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this[ji]()},traverse:function(t,e){},attrKV:function(t,e){if(t===Cn||"scale"===t||t===Yi){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[Vi]=!0,this.__zr&&this.__zr[zi]()},show:function(){this[Vi]=!1,this.__zr&&this.__zr[zi]()},attr:function(t,e){if(typeof t===Fr)this.attrKV(t,e);else if(a[Ln](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[jr];i++)t[Bi].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[jr];i++)t[Bi].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",[Qr,ar,"../Element",rr],function(t){var e=t(ar),i=t("../Element"),n=t(rr),r=function(t){t=t||{},i.call(this,t);for(var e in t)this[e]=t[e];this._children=[],this.__storage=null,this[Ii]=!0};return r[Jr]={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[jr];i++)if(e[i].name===t)return e[i]},childCount:function(){return this._children[jr]},add:function(t){return t&&t!==this&&t[Ui]!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t[Ui]!==this&&e&&e[Ui]===this){var i=this._children,n=i[Hr](e);n>=0&&(i[Ki](n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t[Ui]&&t[Ui][Pi](t),t[Ui]=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e[Di](t),t instanceof r&&t.addChildrenToStorage(e)),i&&i[zi]()},remove:function(t){var i=this.__zr,n=this.__storage,a=this._children,o=e[Hr](a,t);return 0>o?this:(a[Ki](o,1),t[Ui]=null,n&&(n[Li](t.id),t instanceof r&&t.delChildrenFromStorage(n)),i&&i[zi](),this)},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e<i[jr];e++)t=i[e],n&&(n[Li](t.id),t instanceof r&&t.delChildrenFromStorage(n)),t[Ui]=null;return i[jr]=0,this},eachChild:function(t,e){for(var i=this._children,n=0;n<i[jr];n++){var r=i[n];t.call(e,r,n)}return this},traverse:function(t,e){for(var i=0;i<this._children[jr];i++){var n=this._children[i];t.call(e,n),"group"===n.type&&n[ki](t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children[jr];e++){var i=this._children[e];t[Di](i),i instanceof r&&i.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children[jr];e++){var i=this._children[e];t[Li](i.id),i instanceof r&&i.delChildrenFromStorage(t)}},dirty:function(){return this[Ii]=!0,this.__zr&&this.__zr[zi](),this},getBoundingRect:function(t){for(var e=null,i=new n(0,0,0,0),r=t||this._children,a=[],o=0;o<r[jr];o++){var s=r[o];if(!s[Vi]&&!s[Ti]){var l=s[Jn](),u=s[qi](a);u?(i.copy(l),i[cr](u),e=e||i.clone(),e.union(i)):(e=e||l.clone(),e.union(l))}}return e||i}},e[Ar](r,i),r}),e("echarts/view/Component",[Qr,"zrender/container/Group","../util/component",jn],function(t){var e=t("zrender/container/Group"),i=t("../util/component"),n=t(jn),r=function(){this.group=new e,this.uid=i.getUID("viewComponent")};r[Jr]={constructor:r,init:function(t,e){},render:function(t,e,i,n){},dispose:function(){}};var a=r[Jr];return a.updateView=a[Ci]=a.updateVisual=function(t,e,i,n){},n[Tr](r),n[Sr](r,{registerWhenExtend:!0}),r}),e("echarts/view/Chart",[Qr,"zrender/container/Group","../util/component",jn],function(t){function e(){this.group=new r,this.uid=a.getUID("viewChart")}function i(t,e){if(t&&(t[Mi](e),"group"===t.type))for(var n=0;n<t.childCount();n++)i(t[An](n),e)}function n(t,e,n){if(null!=e[bi]){var r=t[wi](e[bi]);i(r,n)}else if(e.name){var a=t[_i](e.name),r=t[wi](a);i(r,n)}else t[xi](function(t){i(t,n)})}var r=t("zrender/container/Group"),a=t("../util/component"),o=t(jn);
e[Jr]={type:"chart",init:function(t,e){},render:function(t,e,i,n){},highlight:function(t,e,i,r){n(t[En](),r,Zn)},downplay:function(t,e,i,r){n(t[En](),r,Gn)},remove:function(t,e){this.group[Ai]()},dispose:function(){}};var s=e[Jr];return s.updateView=s[Ci]=s.updateVisual=function(t,e,i,n){this[Si](t,e,i,n)},o[Tr](e),o[Sr](e,{registerWhenExtend:!0}),e}),e("zrender/graphic/Style",[Qr],function(t){var e=["lineCap","lineJoin","miterLimit",yr,gr,"shadowOffsetY",mr],i=function(t){this.extendFrom(t)};i[Jr]={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[_r],a=0;a<e[jr];a++){var o=e[a];null!=this[o]&&(t[o]=this[o])}if(null!=r){var s=this[wr];t[wr]=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[xr]&&(t.globalAlpha=this[xr])},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===Fr?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[Jr];for(r=0;r<e[jr];r++)n=e[r],n in a||(a[n]=null);return i}),e("zrender/graphic/mixin/RectText",[Qr,"../../contain/text","../../core/BoundingRect"],function(t){function e(t,e){return typeof t===Fr?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function i(t,e){t[Xi](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[Jr]={constructor:o,drawRectText:function(t,r,o){var s=this.style,l=s.text;if(null!=l&&(l+=""),l){var u,c,h=s[yi],d=s.textDistance,f=s[gi],p=s.textFont||s.font,v=s[mi];o=o||n[Jn](l,p,f,v);var m=this[Xi],g=this[Wi];if(m&&(a.copy(r),a[cr](m),r=a,i(t,g)),h instanceof Array)u=r.x+e(h[0],r.width),c=r.y+e(h[1],r[ur]),f=f||"left",v=v||"top";else{var y=n.adjustTextPositionOnRect(h,r,o,d);u=y.x,c=y.y,f=f||y[gi],v=v||y[mi]}t[gi]=f,t[mi]=v;var x=s.textFill,_=s.textStroke;x&&(t.fillStyle=x),_&&(t.strokeStyle=_),t.font=p,t[mr]=s.textShadowColor,t[yr]=s.textShadowBlur,t[gr]=s.textShadowOffsetX,t.shadowOffsetY=s.textShadowOffsetY;for(var w=l.split("\n"),b=0;b<w[jr];b++)x&&t.fillText(w[b],u,c),_&&t.strokeText(w[b],u,c),c+=o.lineHeight;m&&i(t,m)}}},o}),e("zrender/graphic/Displayable",[Qr,ar,"./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(ar),n=t("./Style"),r=t("../Element"),a=t("./mixin/RectText");return e[Jr]={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[Fi](t,e),n=this[Jn]();return n[vi](i[0],i[1])},dirty:function(){this[Ii]=!0,this._rect=null,this.__zr&&this.__zr[zi]()},animateStyle:function(t){return this[Oi]("style",t)},attrKV:function(t,e){"style"!==t?r[Jr].attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(),this}},i[Ar](e,r),i.mixin(e,a),e}),e("zrender/core/curve",[Qr,"./vector"],function(t){function e(t){return t>-_&&_>t}function i(t){return t>_||-_>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,l=3*(n-2*i+t),u=3*(i-t),c=t-a,h=l*l-3*s*u,d=l*u-9*s*c,f=u*u-3*l*c,p=0;if(e(h)&&e(d))if(e(l))o[0]=0;else{var v=-u/l;v>=0&&1>=v&&(o[p++]=v)}else{var m=d*d-4*h*f;if(e(m)){var g=d/h,v=-l/s+g,_=-g/2;v>=0&&1>=v&&(o[p++]=v),_>=0&&1>=_&&(o[p++]=_)}else if(m>0){var M=x(m),S=h*l+1.5*s*(-d+M),A=h*l+1.5*s*(-d-M);S=0>S?-y(-S,b):y(S,b),A=0>A?-y(-A,b):y(A,b);var v=(-l-(S+A))/(3*s);v>=0&&1>=v&&(o[p++]=v)}else{var C=(2*h*l-3*s*d)/(2*x(h*h*h)),T=Math.acos(C)/3,k=x(h),L=Math.cos(T),v=(-l-2*k*L)/(3*s),_=(-l+k*(L+w*Math.sin(T)))/(3*s),D=(-l+k*(L-w*Math.sin(T)))/(3*s);v>=0&&1>=v&&(o[p++]=v),_>=0&&1>=_&&(o[p++]=_),D>=0&&1>=D&&(o[p++]=D)}}return p}function o(t,n,r,a,o){var s=6*r-12*n+6*t,l=9*n+3*a-3*t-9*r,u=3*n-3*t,c=0;if(e(l)){if(i(s)){var h=-u/s;h>=0&&1>=h&&(o[c++]=h)}}else{var d=s*s-4*l*u;if(e(d))o[0]=-s/(2*l);else if(d>0){var f=x(d),h=(-s+f)/(2*l),p=(-s-f)/(2*l);h>=0&&1>=h&&(o[c++]=h),p>=0&&1>=p&&(o[c++]=p)}}return c}function s(t,e,i,n,r,a){var o=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,u=(s-o)*r+o,c=(l-s)*r+s,h=(c-u)*r+u;a[0]=t,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=c,a[6]=l,a[7]=n}function l(t,e,i,r,a,o,s,l,u,c,h){var d,f,p,v,m,y=.005,w=1/0;M[0]=u,M[1]=c;for(var b=0;1>b;b+=.05)S[0]=n(t,i,a,s,b),S[1]=n(e,r,o,l,b),v=g(M,S),w>v&&(d=b,w=v);w=1/0;for(var C=0;32>C&&!(_>y);C++)f=d-y,p=d+y,S[0]=n(t,i,a,s,f),S[1]=n(e,r,o,l,f),v=g(S,M),f>=0&&w>v?(d=f,w=v):(A[0]=n(t,i,a,s,p),A[1]=n(e,r,o,l,p),m=g(A,M),1>=p&&w>m?(d=p,w=m):y*=.5);return h&&(h[0]=n(t,i,a,s,d),h[1]=n(e,r,o,l,d)),x(w)}function u(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function c(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,l=2*(n-t),u=t-a,c=0;if(e(s)){if(i(l)){var h=-u/l;h>=0&&1>=h&&(o[c++]=h)}}else{var d=l*l-4*s*u;if(e(d)){var h=-l/(2*s);h>=0&&1>=h&&(o[c++]=h)}else if(d>0){var f=x(d),h=(-l+f)/(2*s),p=(-l-f)/(2*s);h>=0&&1>=h&&(o[c++]=h),p>=0&&1>=p&&(o[c++]=p)}}return c}function d(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function f(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,l){var c,h=.005,d=1/0;M[0]=o,M[1]=s;for(var f=0;1>f;f+=.05){S[0]=u(t,i,r,f),S[1]=u(e,n,a,f);var p=g(M,S);d>p&&(c=f,d=p)}d=1/0;for(var v=0;32>v&&!(_>h);v++){var m=c-h,y=c+h;S[0]=u(t,i,r,m),S[1]=u(e,n,a,m);var p=g(S,M);if(m>=0&&d>p)c=m,d=p;else{A[0]=u(t,i,r,y),A[1]=u(e,n,a,y);var w=g(A,M);1>=y&&d>w?(c=y,d=w):h*=.5}}return l&&(l[0]=u(t,i,r,c),l[1]=u(e,n,a,c)),x(d)}var v=t("./vector"),m=v[lr],g=v.distSquare,y=Math.pow,x=Math.sqrt,_=1e-4,w=x(3),b=1/3,M=m(),S=m(),A=m();return{cubicAt:n,cubicDerivativeAt:r,cubicRootAt:a,cubicExtrema:o,cubicSubdivide:s,cubicProjectPoint:l,quadraticAt:u,quadraticDerivativeAt:c,quadraticRootAt:h,quadraticExtremum:d,quadraticSubdivide:f,quadraticProjectPoint:p}}),e("zrender/core/bbox",[Qr,"./vector","./curve"],function(t){var e=t("./vector"),i=t("./curve"),n={},r=Math.min,a=Math.max,o=Math.sin,s=Math.cos,l=e[lr](),u=e[lr](),c=e[lr](),h=2*Math.PI;return n.fromPoints=function(t,e,i){if(0!==t[jr]){var n,o=t[0],s=o[0],l=o[0],u=o[1],c=o[1];for(n=1;n<t[jr];n++)o=t[n],s=r(s,o[0]),l=a(l,o[0]),u=r(u,o[1]),c=a(c,o[1]);e[0]=s,e[1]=u,i[0]=l,i[1]=c}},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,l,u,c,h,d){var f,p,v,m,g,y=[],x=[],_=i.cubicExtrema,w=i.cubicAt,b=_(t,n,s,u,y);for(g=0;b>g;g++)y[g]=w(t,n,s,u,y[g]);for(b=_(e,o,l,c,x),g=0;b>g;g++)x[g]=w(e,o,l,c,x[g]);y.push(t,u),x.push(e,c),f=r.apply(null,y),p=a.apply(null,y),v=r.apply(null,x),m=a.apply(null,x),h[0]=f,h[1]=v,d[0]=p,d[1]=m},n.fromQuadratic=function(t,e,n,o,s,l,u,c){var h=i.quadraticExtremum,d=i[pi],f=a(r(h(t,n,s),1),0),p=a(r(h(e,o,l),1),0),v=d(t,n,s,f),m=d(e,o,l,p);u[0]=r(t,s,v),u[1]=r(e,l,m),c[0]=a(t,s,v),c[1]=a(e,l,m)},n.fromArc=function(t,i,n,r,a,d,f,p,v){var m=e.min,g=e.max,y=Math.abs(a-d);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(l[0]=s(a)*n+t,l[1]=o(a)*r+i,u[0]=s(d)*n+t,u[1]=o(d)*r+i,m(p,l,u),g(v,l,u),a%=h,0>a&&(a+=h),d%=h,0>d&&(d+=h),a>d&&!f?d+=h:d>a&&f&&(a+=h),f){var x=d;d=a,a=x}for(var _=0;d>_;_+=Math.PI/2)_>a&&(c[0]=s(_)*n+t,c[1]=o(_)*r+i,m(p,c,p),g(v,c,v))},n}),e("zrender/core/PathProxy",[Qr,"./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=[],l=[],u=[],c=Math.min,h=Math.max,d=Math.cos,f=Math.sin,p=Math.sqrt,v=typeof Float32Array!=pr,m=function(){this.data=[],this._len=0,this._ctx=null,this._xi=0,this._yi=0,this._x0=0,this._y0=0};return m[Jr]={constructor:m,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t[fi](),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[di](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[hi](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[ci](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=d(r)*i+t,this._xi=f(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[ui]()),this._xi=e,this._yi=i,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t[_r](),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;i<t[jr];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[jr];this.data&&this.data[jr]==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[jr],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[jr];o++)this.data[n++]=a[o];this._len=n},addData:function(t){var e=this.data;this._len+arguments[jr]>e[jr]&&(this._expandData(),e=this.data);for(var i=0;i<arguments[jr];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,l=this._xi,u=this._yi,d=t-l,f=e-u,v=p(d*d+f*f),m=l,g=u,y=o[jr];for(d/=v,f/=v,0>a&&(a=r+a),a%=r,m-=a*d,g-=a*f;d>=0&&t>=m||0>d&&m>t;)n=this._dashIdx,i=o[n],m+=d*i,g+=f*i,this._dashIdx=(n+1)%y,d>0&&l>m||0>d&&m>l||s[n%2?di:hi](d>=0?c(m,t):h(m,t),f>=0?c(g,e):h(g,e));d=m-t,f=g-e,this._dashOffset=-p(d*d+f*f)},_dashedBezierTo:function(t,i,n,r,a,o){var s,l,u,c,h,d=this._dashSum,f=this._dashOffset,v=this._lineDash,m=this._ctx,g=this._xi,y=this._yi,x=e.cubicAt,_=0,w=this._dashIdx,b=v[jr],M=0;for(0>f&&(f=d+f),f%=d,s=0;1>s;s+=.1)l=x(g,t,n,a,s+.1)-x(g,t,n,a,s),u=x(y,i,r,o,s+.1)-x(y,i,r,o,s),_+=p(l*l+u*u);for(;b>w&&(M+=v[w],!(M>f));w++);for(s=(M-f)/_;1>=s;)c=x(g,t,n,a,s),h=x(y,i,r,o,s),w%2?m[di](c,h):m[hi](c,h),s+=v[w]/_,w=(w+1)%b;w%2!==0&&m[hi](a,o),l=a-c,u=o-h,this._dashOffset=-p(l*l+u*u)},_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[jr]=this._len,v&&this.data instanceof Array&&(this.data=new Float32Array(this.data))},getBoundingRect:function(){o[0]=o[1]=l[0]=l[1]=Number.MAX_VALUE,s[0]=s[1]=u[0]=u[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,c=0,h=0,p=0,v=0;v<t[jr];){var m=t[v++];switch(1==v&&(e=t[v],c=t[v+1],h=e,p=c),m){case a.M:h=t[v++],p=t[v++],e=h,c=p,l[0]=h,l[1]=p,u[0]=h,u[1]=p;break;case a.L:n.fromLine(e,c,t[v],t[v+1],l,u),e=t[v++],c=t[v++];break;case a.C:n.fromCubic(e,c,t[v++],t[v++],t[v++],t[v++],t[v],t[v+1],l,u),e=t[v++],c=t[v++];break;case a.Q:n.fromQuadratic(e,c,t[v++],t[v++],t[v],t[v+1],l,u),e=t[v++],c=t[v++];break;case a.A:var g=t[v++],y=t[v++],x=t[v++],_=t[v++],w=t[v++],b=t[v++]+w,M=(t[v++],1-t[v++]);1==v&&(h=d(w)*x+g,p=f(w)*_+y),n.fromArc(g,y,x,_,w,b,M,l,u),e=d(b)*x+g,c=f(b)*_+y;break;case a.R:h=e=t[v++],p=c=t[v++];var S=t[v++],A=t[v++];n.fromLine(h,p,h+S,p+A,l,u);break;case a.Z:e=h,c=p}i.min(o,o,l),i.max(s,s,u)}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[di](e[i++],e[i++]);break;case a.L:t[hi](e[i++],e[i++]);break;case a.C:t[ci](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++],l=e[i++],u=e[i++],c=e[i++],h=e[i++],d=e[i++],f=s>l?s:l,p=s>l?1:s/l,v=s>l?l/s:1,m=Math.abs(s-l)>.001;m?(t[sr](r,o),t[Hi](h),t.scale(p,v),t.arc(0,0,f,u,u+c,1-d),t.scale(1/p,1/v),t[Hi](-h),t[sr](-r,-o)):t.arc(r,o,f,u,u+c,1-d);break;case a.R:t.rect(e[i++],e[i++],e[i++],e[i++]);break;case a.Z:t[ui]()}}}},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,l=0,u=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;l=(e-n)/(t-i),u=(t*n-i*e)/(t-i);var c=l*a-o+u,h=c*c/(l*l+1);return s/2*s/2>=h}}}),e("zrender/contain/cubic",[Qr,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,l,u,c,h){if(0===u)return!1;var d=u;if(h>i+d&&h>r+d&&h>o+d&&h>l+d||i-d>h&&r-d>h&&o-d>h&&l-d>h||c>t+d&&c>n+d&&c>a+d&&c>s+d||t-d>c&&n-d>c&&a-d>c&&s-d>c)return!1;var f=e.cubicProjectPoint(t,i,n,r,a,o,s,l,c,h,null);return d/2>=f}}}),e("zrender/contain/quadratic",[Qr,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,l,u){if(0===s)return!1;var c=s;if(u>i+c&&u>r+c&&u>o+c||i-c>u&&r-c>u&&o-c>u||l>t+c&&l>n+c&&l>a+c||t-c>l&&n-c>l&&a-c>l)return!1;var h=e.quadraticProjectPoint(t,i,n,r,a,o,l,u,null);return c/2>=h}}}),e("zrender/contain/util",[Qr],function(t){var e=2*Math.PI;return{normalizeRadian:function(t){return t%=e,0>t&&(t+=e),t}}}),e("zrender/contain/arc",[Qr,"./util"],function(t){var e=t("./util").normalizeRadian,i=2*Math.PI;return{containStroke:function(t,n,r,a,o,s,l,u,c){if(0===l)return!1;var h=l;u-=t,c-=n;var d=Math.sqrt(u*u+c*c);if(d-h>r||r>d+h)return!1;if(Math.abs(a-o)%i<1e-4)return!0;if(s){var f=a;a=e(o),o=e(f)}else a=e(a),o=e(o);a>o&&(o+=i);var p=Math.atan2(c,u);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),l=s*(i-t)+t;return l>r?o:0}}),e("zrender/contain/path",[Qr,"../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=x[0];x[0]=x[1],x[1]=t}function n(t,e,n,r,a,o,s,l,u,c){if(c>e&&c>r&&c>o&&c>l||e>c&&r>c&&o>c&&l>c)return 0;var h=f.cubicRootAt(e,r,o,l,c,y);if(0===h)return 0;for(var d,p,v=0,m=-1,g=0;h>g;g++){var _=y[g],w=f.cubicAt(t,n,a,s,_);u>w||(0>m&&(m=f.cubicExtrema(e,r,o,l,x),x[1]<x[0]&&m>1&&i(),d=f.cubicAt(e,r,o,l,x[0]),m>1&&(p=f.cubicAt(e,r,o,l,x[1]))),v+=2==m?_<x[0]?e>d?1:-1:_<x[1]?d>p?1:-1:p>l?1:-1:_<x[0]?e>d?1:-1:d>l?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 l=f.quadraticRootAt(e,n,a,s,y);if(0===l)return 0;var u=f.quadraticExtremum(e,n,a);if(u>=0&&1>=u){for(var c=0,h=f[pi](e,n,a,u),d=0;l>d;d++){var p=f[pi](t,i,r,y[d]);p>o||(c+=y[d]<u?e>h?1:-1:h>a?1:-1)}return c}var p=f[pi](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 l=Math.sqrt(i*i-s*s);y[0]=-l,y[1]=l;var u=Math.abs(n-r);if(1e-4>u)return 0;if(1e-4>u%m){n=0,r=m;var c=a?1:-1;return o>=y[0]+t&&o<=y[1]+t?c:0}if(a){var l=n;n=d(r),r=d(l)}else n=d(n),r=d(r);n>r&&(r+=m);for(var h=0,f=0;2>f;f++){var p=y[f];if(p+t>o){var v=Math.atan2(s,p),c=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&&(c=-c),h+=c)}}return h}function o(t,i,o,l,d){for(var f=0,m=0,g=0,y=0,x=0,_=0;_<t[jr];){var w=t[_++];if(w===s.M&&_>1&&(o||(f+=p(m,g,y,x,l,d)),0!==f))return!0;switch(1==_&&(m=t[_],g=t[_+1],y=m,x=g),w){case s.M:y=t[_++],x=t[_++],m=y,g=x;break;case s.L:if(o){if(v(m,g,t[_],t[_+1],i,l,d))return!0}else f+=p(m,g,t[_],t[_+1],l,d)||0;m=t[_++],g=t[_++];break;case s.C:if(o){if(u.containStroke(m,g,t[_++],t[_++],t[_++],t[_++],t[_],t[_+1],i,l,d))return!0}else f+=n(m,g,t[_++],t[_++],t[_++],t[_++],t[_],t[_+1],l,d)||0;m=t[_++],g=t[_++];break;case s.Q:if(o){if(c.containStroke(m,g,t[_++],t[_++],t[_],t[_+1],i,l,d))return!0}else f+=r(m,g,t[_++],t[_++],t[_],t[_+1],l,d)||0;m=t[_++],g=t[_++];break;case s.A:var b=t[_++],M=t[_++],S=t[_++],A=t[_++],C=t[_++],T=t[_++],k=(t[_++],1-t[_++]),L=Math.cos(C)*S+b,D=Math.sin(C)*A+M;_>1?f+=p(m,g,L,D,l,d):(y=L,x=D);var P=(l-b)*A/S+b;if(o){if(h.containStroke(b,M,A,C,C+T,k,i,P,d))return!0}else f+=a(b,M,A,C,C+T,k,P,d);m=Math.cos(C+T)*S+b,g=Math.sin(C+T)*A+M;break;case s.R:y=m=t[_++],x=g=t[_++];var I=t[_++],z=t[_++],L=y+I,D=x+z;if(o){if(v(y,x,L,x,i,l,d)||v(L,x,L,D,i,l,d)||v(L,D,y,D,i,l,d)||v(y,D,L,D,i,l,d))return!0}else f+=p(L,x,L,D,l,d),f+=p(y,D,y,x,l,d);break;case s.Z:if(o){if(v(m,g,y,x,i,l,d))return!0}else if(f+=p(m,g,y,x,l,d),0!==f)return!0;m=y,g=x}}return o||e(g,x)||(f+=p(m,g,y,x,l,d)||0),0!==f}var s=t("../core/PathProxy").CMD,l=t("./line"),u=t("./cubic"),c=t("./quadratic"),h=t("./arc"),d=t("./util").normalizeRadian,f=t("../core/curve"),p=t("./windingLine"),v=l.containStroke,m=2*Math.PI,g=1e-4,y=[-1,-1,-1],x=[-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(li,[Qr,"./Displayable",ar,"../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[_r];return null!=e&&"none"!==e&&t[wr]>0}function n(t){r.call(this,t),this.path=new o}var r=t("./Displayable"),a=t(ar),o=t("../core/PathProxy"),s=t("../contain/path"),l=t("./Gradient"),u=Math.abs;return n[Jr]={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 l&&n.fill.updateCanvasGradient(this,t),a&&n[_r]instanceof l&&n[_r].updateCanvasGradient(this,t)),n.bind(t,this),this.setTransform(t);var s=n.lineDash,u=n.lineDashOffset,c=!!t.setLineDash;this.__dirtyPath||s&&!c&&a?(r=this.path[fi](t),s&&!c&&(r.setLineDash(s),r.setLineDashOffset(u)),this[si](r,this.shape),this.__dirtyPath=!1):(t[fi](),this.path.rebuildPath(t)),o&&r.fill(t),s&&c&&(t.setLineDash(s),t.lineDashOffset=u),a&&r[_r](t),null!=n.text&&this.drawRectText(t,this[Jn]()),t[oi]()},buildPath:function(t,e){},getBoundingRect:function(){var t=this._rect,n=this.style;if(!t){var r=this.path;this.__dirtyPath&&(r[fi](),this[si](r,this.shape)),t=r[Jn]()}if(i(n)&&(this[Ii]||!this._rect)){var a=this._rectWithStroke||(this._rectWithStroke=t.clone());a.copy(t);var o=n[wr],s=n.strokeNoScale?this.getLineScale():1;return e(n)||(o=Math.max(o,this.strokeContainThreshold)),s>1e-10&&(a.width+=o/s,a[ur]+=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[Fi](t,n),a=this[Jn](),o=this.style;if(t=r[0],n=r[1],a[vi](t,n)){var l=this.path.data;if(i(o)){var u=o[wr],c=o.strokeNoScale?this.getLineScale():1;if(c>1e-10&&(e(o)||(u=Math.max(u,this.strokeContainThreshold)),s.containStroke(l,u/c,t,n)))return!0}if(e(o))return s[vi](l,t,n)}return!1},dirty:function(t){0===arguments[jr]&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this[Ii]=!0,this.__zr&&this.__zr[zi](),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this[Oi]("shape",t)},attrKV:function(t,e){"shape"===t?this[ai](e):r[Jr].attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(a[Ln](t))for(var n in t)i[n]=t[n];else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this[Xi];return t&&u(t[0]-1)>1e-10&&u(t[3]-1)>1e-10?Math.sqrt(u(t[0]*t[3]-t[2]*t[1])):1}},n[Cr]=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[Ar](e,n);for(var i in t)"style"!==i&&"shape"!==i&&(e[Jr][i]=t[i]);return e},a[Ar](n,r),n}),e("zrender/tool/transformPath",[Qr,"../core/PathProxy","../core/vector"],function(t){function e(t,e){var n,l,u,c,h,d=t.data,f=i.M,p=i.C,v=i.L,m=i.R,g=i.A,y=i.Q;for(u=0,c=0;u<d[jr];){switch(n=d[u++],c=u,l=0,n){case f:l=1;break;case v:l=1;break;case p:l=3;break;case y:l=2;break;case g:var x=e[4],_=e[5],w=o(e[0]*e[0]+e[1]*e[1]),b=o(e[2]*e[2]+e[3]*e[3]),M=s(-e[1]/b,e[0]/w);d[u+7];d[u++]+=x,d[u++]+=_,d[u++]*=w,d[u++]*=b,d[u++]+=M,d[u++]+=M,u+=2,c=u;break;case m:S[0]=d[u++],S[1]=d[u++],r(S,S,e),d[c++]=S[0],d[c++]=S[1],S[0]+=d[u++],S[1]+=d[u++],r(S,S,e),d[c++]=S[0],d[c++]=S[1]}for(h=0;l>h;h++){var S=a[h];S[0]=d[u++],S[1]=d[u++],r(S,S,e),d[c++]=S[0],d[c++]=S[1]}}}var i=t("../core/PathProxy").CMD,n=t("../core/vector"),r=n[cr],a=[[],[],[]],o=Math.sqrt,s=Math.atan2;return e}),e("zrender/tool/path",[Qr,"../graphic/Path","../core/PathProxy","./transformPath","../core/matrix"],function(t){function e(t,e,i,n,r,a,o,s,l,f,m){var g=l*(d/180),y=h(g)*(t-i)/2+c(g)*(e-n)/2,x=-1*c(g)*(t-i)/2+h(g)*(e-n)/2,_=y*y/(o*o)+x*x/(s*s);_>1&&(o*=u(_),s*=u(_));var w=(r===a?-1:1)*u((o*o*(s*s)-o*o*(x*x)-s*s*(y*y))/(o*o*(x*x)+s*s*(y*y)))||0,b=w*o*x/s,M=w*-s*y/o,S=(t+i)/2+h(g)*b-c(g)*M,A=(e+n)/2+c(g)*b+h(g)*M,C=v([1,0],[(y-b)/o,(x-M)/s]),T=[(y-b)/o,(x-M)/s],k=[(-1*y-b)/o,(-1*x-M)/s],L=v(T,k);p(T,k)<=-1&&(L=d),p(T,k)>=1&&(L=0),0===a&&L>0&&(L-=2*d),1===a&&0>L&&(L+=2*d),m.addData(f,S,A,o,s,C,L,g,a)}function i(t){if(!t)return[];var i,n=t[Nr](/-/g," -")[Nr](/ /g," ")[Nr](/ /g,",")[Nr](/,,/g,",");for(i=0;i<l[jr];i++)n=n[Nr](new RegExp(l[i],"g"),"|"+l[i]);var r,o=n.split("|"),s=0,u=0,c=new a,h=a.CMD;for(i=1;i<o[jr];i++){var d,f=o[i],p=f.charAt(0),v=0,m=f.slice(1)[Nr](/e,-/g,"e-").split(",");m[jr]>0&&""===m[0]&&m.shift();for(var g=0;g<m[jr];g++)m[g]=parseFloat(m[g]);for(;v<m[jr]&&!isNaN(m[v])&&!isNaN(m[0]);){var y,x,_,w,b,M,S,A=s,C=u;switch(p){case"l":s+=m[v++],u+=m[v++],d=h.L,c.addData(d,s,u);break;case"L":s=m[v++],u=m[v++],d=h.L,c.addData(d,s,u);break;case"m":s+=m[v++],u+=m[v++],d=h.M,c.addData(d,s,u),p="l";break;case"M":s=m[v++],u=m[v++],d=h.M,c.addData(d,s,u),p="L";break;case"h":s+=m[v++],d=h.L,c.addData(d,s,u);break;case"H":s=m[v++],d=h.L,c.addData(d,s,u);break;case"v":u+=m[v++],d=h.L,c.addData(d,s,u);break;case"V":u=m[v++],d=h.L,c.addData(d,s,u);break;case"C":d=h.C,c.addData(d,m[v++],m[v++],m[v++],m[v++],m[v++],m[v++]),s=m[v-2],u=m[v-1];break;case"c":d=h.C,c.addData(d,m[v++]+s,m[v++]+u,m[v++]+s,m[v++]+u,m[v++]+s,m[v++]+u),s+=m[v-2],u+=m[v-1];break;case"S":y=s,x=u;var T=c.len(),k=c.data;r===h.C&&(y+=s-k[T-4],x+=u-k[T-3]),d=h.C,A=m[v++],C=m[v++],s=m[v++],u=m[v++],c.addData(d,y,x,A,C,s,u);break;case"s":y=s,x=u;var T=c.len(),k=c.data;r===h.C&&(y+=s-k[T-4],x+=u-k[T-3]),d=h.C,A=s+m[v++],C=u+m[v++],s+=m[v++],u+=m[v++],c.addData(d,y,x,A,C,s,u);break;case"Q":A=m[v++],C=m[v++],s=m[v++],u=m[v++],d=h.Q,c.addData(d,A,C,s,u);break;case"q":A=m[v++]+s,C=m[v++]+u,s+=m[v++],u+=m[v++],d=h.Q,c.addData(d,A,C,s,u);break;case"T":y=s,x=u;var T=c.len(),k=c.data;r===h.Q&&(y+=s-k[T-4],x+=u-k[T-3]),s=m[v++],u=m[v++],d=h.Q,c.addData(d,y,x,s,u);break;case"t":y=s,x=u;var T=c.len(),k=c.data;r===h.Q&&(y+=s-k[T-4],x+=u-k[T-3]),s+=m[v++],u+=m[v++],d=h.Q,c.addData(d,y,x,s,u);break;case"A":_=m[v++],w=m[v++],b=m[v++],M=m[v++],S=m[v++],A=s,C=u,s=m[v++],u=m[v++],d=h.A,e(A,C,s,u,M,S,_,w,b,d,c);break;case"a":_=m[v++],w=m[v++],b=m[v++],M=m[v++],S=m[v++],A=s,C=u,s+=m[v++],u+=m[v++],d=h.A,e(A,C,s,u,M,S,_,w,b,d,c)}}("z"===p||"Z"===p)&&(d=h.Z,c.addData(d)),r=d}return c.toStatic(),c}function n(t,e){var n,r=i(t);return e=e||{},e[si]=function(t){t[ri](r.data),n&&o(t,n);var e=t[Wr]();e&&t.rebuildPath(e)},e[cr]=function(t){n||(n=s[lr]()),s.mul(n,t,n)},e}var r=t("../graphic/Path"),a=t("../core/PathProxy"),o=t("./transformPath"),s=t("../core/matrix"),l=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"],u=Math.sqrt,c=Math.sin,h=Math.cos,d=Math.PI,f=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])/(f(t)*f(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[Cr](n(t,e))},mergePath:function(t,e){var i,n,a=[],o=t[jr];for(n=0;o>n;n++)i=t[n],i[Ii]&&i[si](i.path,i.shape),a.push(i.path);var s=new r(e);return s[si]=function(t){t.appendPath(a);var e=t[Wr]();e&&t.rebuildPath(e)},s}}}),e("zrender/graphic/helper/roundRect",[Qr],function(t){return{buildPath:function(t,e){var i,n,r,a,o=e.x,s=e.y,l=e.width,u=e[ur],c=e.r;0>l&&(o+=l,l=-l),0>u&&(s+=u,u=-u),typeof c===Zr?i=n=r=a=c:c instanceof Array?1===c[jr]?i=n=r=a=c[0]:2===c[jr]?(i=r=c[0],n=a=c[1]):3===c[jr]?(i=c[0],n=a=c[1],r=c[2]):(i=c[0],n=c[1],r=c[2],a=c[3]):i=n=r=a=0;var h;i+n>l&&(h=i+n,i*=l/h,n*=l/h),r+a>l&&(h=r+a,r*=l/h,a*=l/h),n+r>u&&(h=n+r,n*=u/h,r*=u/h),i+a>u&&(h=i+a,i*=u/h,a*=u/h),t[di](o+i,s),t[hi](o+l-n,s),0!==n&&t.quadraticCurveTo(o+l,s,o+l,s+n),t[hi](o+l,s+u-r),0!==r&&t.quadraticCurveTo(o+l,s+u,o+l-r,s+u),t[hi](o+a,s+u),0!==a&&t.quadraticCurveTo(o,s+u,o,s+u-a),t[hi](o,s+i),0!==i&&t.quadraticCurveTo(o,s,o+i,s)}}}),e("zrender/core/LRU",[Qr],function(t){var e=function(){this.head=null,this.tail=null,this._len=0},i=e[Jr];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[Pi]=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[Jr];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[Pi](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[Pi](e),i.insertEntry(e)),e.value):void 0},a.clear=function(){this._list.clear(),this._map={}},r}),e("zrender/graphic/Image",[Qr,"./Displayable",rr,ar,"./helper/roundRect","../core/LRU"],function(t){var e=t("./Displayable"),i=t(rr),n=t(ar),r=t("./helper/roundRect"),a=t("../core/LRU"),o=new a(50),s=function(t){e.call(this,t)};return s[Jr]={constructor:s,type:"image",brush:function(t){var e,i=this.style,n=i.image;if(e=typeof n===Fr?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[jr];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[ur])return void a.pending.push(this)}if(e){var s=i.width||e.width,l=i[ur]||e[ur],u=i.x||0,c=i.y||0;if(!e.width||!e[ur])return;if(t.save(),i.bind(t),this.setTransform(t),i.r&&(t[fi](),r[si](t,i),t.clip()),i.sWidth&&i.sHeight){var h=i.sx||0,d=i.sy||0;t.drawImage(e,h,d,i.sWidth,i.sHeight,u,c,s,l)}else if(i.sx&&i.sy){var h=i.sx,d=i.sy,f=s-h,p=l-d;t.drawImage(e,h,d,f,p,u,c,s,l)}else t.drawImage(e,u,c,s,l);null==i.width&&(i.width=s),null==i[ur]&&(i[ur]=l),null!=i.text&&this.drawRectText(t,this[Jn]()),t[oi]()}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new i(t.x||0,t.y||0,t.width||0,t[ur]||0)),this._rect}},n[Ar](s,e),s}),e("zrender/graphic/Text",[Qr,"./Displayable",ar,"../contain/text"],function(t){var e=t("./Displayable"),i=t(ar),n=t("../contain/text"),r=function(t){e.call(this,t)};return r[Jr]={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[_r];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[gi]=e[gi],t[mi]=e[mi];for(var l=n.measureText("国",t.font).width,u=a.split("\n"),c=0;c<u[jr];c++)o&&t.fillText(u[c],i,r),s&&t.strokeText(u[c],i,r),r+=l;t[oi]()}},getBoundingRect:function(){if(!this._rect){var t=this.style,e=n[Jn](t.text+"",t.textFont,t[gi],t[mi]);e.x+=t.x||0,e.y+=t.y||0,this._rect=e}return this._rect}},i[Ar](r,e),r}),e("zrender/graphic/shape/Circle",[Qr,"../Path"],function(t){return t("../Path")[Cr]({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e){t[di](e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}})}),e("zrender/graphic/shape/Sector",[Qr,"../Path"],function(t){return t("../Path")[Cr]({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[ni],s=e[ii],l=e[ei],u=Math.cos(o),c=Math.sin(o);t[di](u*r+i,c*r+n),t[hi](u*a+i,c*a+n),t.arc(i,n,a,o,s,!l),t[hi](Math.cos(s)*r+i,Math.sin(s)*r+n),0!==r&&t.arc(i,n,r,s,o,l),t[ui]()}})}),e("zrender/graphic/helper/smoothSpline",[Qr,"../../core/vector"],function(t){function e(t,e,i,n,r,a,o){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*o+(-3*(e-i)-2*s-l)*a+s*r+e}var i=t("../../core/vector");return function(t,n){for(var r=t[jr],a=[],o=0,s=1;r>s;s++)o+=i[fr](t[s-1],t[s]);var l=o/2;l=r>l?r:l;for(var s=0;l>s;s++){var u,c,h,d=s/(l-1)*(n?r:r-1),f=Math.floor(d),p=d-f,v=t[f%r];n?(u=t[(f-1+r)%r],c=t[(f+1)%r],h=t[(f+2)%r]):(u=t[0===f?f:f-1],c=t[f>r-2?r-1:f+1],h=t[f>r-3?r-1:f+2]);var m=p*p,g=p*m;a.push([e(u[0],v[0],c[0],h[0],p,m,g),e(u[1],v[1],c[1],h[1],p,m,g)])}return a}}),e("zrender/graphic/helper/smoothBezier",[Qr,"../../core/vector"],function(t){var e=t("../../core/vector"),i=e.min,n=e.max,r=e.scale,a=e[fr],o=e.add;return function(t,s,l,u){var c,h,d,f,p=[],v=[],m=[],g=[];if(u){d=[1/0,1/0],f=[-(1/0),-(1/0)];for(var y=0,x=t[jr];x>y;y++)i(d,d,t[y]),n(f,f,t[y]);i(d,d,u[0]),n(f,f,u[1])}for(var y=0,x=t[jr];x>y;y++){var _=t[y];if(l)c=t[y?y-1:x-1],h=t[(y+1)%x];else{if(0===y||y===x-1){p.push(e.clone(t[y]));continue}c=t[y-1],h=t[y+1]}e.sub(v,h,c),r(v,v,s);var w=a(_,c),b=a(_,h),M=w+b;0!==M&&(w/=M,b/=M),r(m,v,-w),r(g,v,b);var S=o([],_,m),A=o([],_,g);u&&(n(S,S,d),i(S,S,f),n(A,A,d),i(A,A,f)),p.push(S),p.push(A)}return l&&p.push(p.shift()),p}}),e("zrender/graphic/helper/poly",[Qr,"./smoothSpline","./smoothBezier"],function(t){var e=t("./smoothSpline"),i=t("./smoothBezier");return{buildPath:function(t,n,r){var a=n[ti],o=n.smooth;if(a&&a[jr]>=2){if(o&&"spline"!==o){var s=i(a,o,r,n.smoothConstraint);t[di](a[0][0],a[0][1]);for(var l=a[jr],u=0;(r?l:l-1)>u;u++){var c=s[2*u],h=s[2*u+1],d=a[(u+1)%l];t[ci](c[0],c[1],h[0],h[1],d[0],d[1])}}else{"spline"===o&&(a=e(a,r)),t[di](a[0][0],a[0][1]);for(var u=1,f=a[jr];f>u;u++)t[hi](a[u][0],a[u][1])}r&&t[ui]()}}}}),e("zrender/graphic/shape/Polygon",[Qr,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[Cr]({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,i){e[si](t,i,!0)}})}),e("zrender/graphic/shape/Polyline",[Qr,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[Cr]({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,i){
e[si](t,i,!1)}})}),e("zrender/graphic/shape/Rect",[Qr,"../helper/roundRect","../Path"],function(t){var e=t("../helper/roundRect");return t("../Path")[Cr]({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[ur];i.r?e[si](t,i):t.rect(n,r,a,o),t[ui]()}})}),e("zrender/graphic/shape/Line",[Qr,"../Path"],function(t){return t("../Path")[Cr]({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[di](i,n),1>o&&(r=i*(1-o)+r*o,a=n*(1-o)+a*o),t[hi](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",[Qr,"../../core/curve","../Path"],function(t){var e=t("../../core/curve"),i=e.quadraticSubdivide,n=e.cubicSubdivide,r=e[pi],a=e.cubicAt,o=[];return t("../Path")[Cr]({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,l=e.y2,u=e.cpx1,c=e.cpy1,h=e.cpx2,d=e.cpy2,f=e.percent;0!==f&&(t[di](r,a),null==h||null==d?(1>f&&(i(r,u,s,f,o),u=o[1],s=o[2],i(a,c,l,f,o),c=o[1],l=o[2]),t.quadraticCurveTo(u,c,s,l)):(1>f&&(n(r,u,h,s,f,o),u=o[1],h=o[2],s=o[3],n(a,c,d,l,f,o),c=o[1],d=o[2],l=o[3]),t[ci](u,c,h,d,s,l)))},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",[Qr,"../Path"],function(t){return t("../Path")[Cr]({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[ni],o=e[ii],s=e[ei],l=Math.cos(a),u=Math.sin(a);t[di](l*r+i,u*r+n),t.arc(i,n,r,a,o,!s)}})}),e("zrender/graphic/LinearGradient",[Qr,ar,"./Gradient"],function(t){var e=t(ar),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[Jr]={constructor:n,type:"linear",updateCanvasGradient:function(t,e){for(var i=t[Jn](),n=this.x*i.width+i.x,r=this.x2*i.width+i.x,a=this.y*i[ur]+i.y,o=this.y2*i[ur]+i.y,s=e.createLinearGradient(n,a,r,o),l=this.colorStops,u=0;u<l[jr];u++)s.addColorStop(l[u][Qe],l[u].color);this.canvasGradient=s}},e[Ar](n,i),n}),e("zrender/graphic/RadialGradient",[Qr,ar,"./Gradient"],function(t){var e=t(ar),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[Jr]={constructor:n,type:"radial",updateCanvasGradient:function(t,e){for(var i=t[Jn](),n=i.width,r=i[ur],a=Math.min(n,r),o=this.x*n+i.x,s=this.y*r+i.y,l=this.r*a,u=e.createRadialGradient(o,s,0,o,s,l),c=this.colorStops,h=0;h<c[jr];h++)u.addColorStop(c[h][Qe],c[h].color);this.canvasGradient=u}},e[Ar](n,i),n}),e("echarts/util/graphic",[Qr,Kr,"zrender/tool/path",li,Gi,dr,vr,"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",hr],function(t){function e(t){if(!t.__isHover){if(t.__hoverStlDirty){var e=t.style[_r],i=t.style.fill,n=t.__hoverStl;n.fill=n.fill||(i instanceof y?i:v.lift(i,-.1)),n[_r]=n[_r]||(e instanceof y?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[Ue](t.__hoverStl),t.z2+=1,t.__isHover=!0}}function i(t){if(t.__isHover){var e=t.__normalStl;e&&t[Ue](e),t.z2-=1,t.__isHover=!1}}function n(t){"group"===t.type?t[ki](function(t){"group"!==t.type&&e(t)}):e(t)}function r(t){"group"===t.type?t[ki](function(t){"group"!==t.type&&i(t)}):i(t)}function a(t,e){t.__hoverStl=t[qe]||e,t.__hoverStlDirty=!0}function o(){!this.__isEmphasis&&n(this)}function s(){!this.__isEmphasis&&r(this)}function l(){this.__isEmphasis=!0,n(this)}function u(){this.__isEmphasis=!1,r(this)}function c(t,e,i,n,r){var a=t?"Update":"",o=n&&n[br]("animationDuration"+a),s=n&&n[br]("animationEasing"+a);n&&n[br](Bi)?e[Be](i,o,s,r):(e.attr(i),r&&r())}var h=t(Kr),d=t("zrender/tool/path"),f=Math.round,p=t(li),v=t(Gi),m=t(dr),g=t(vr),y=t("zrender/graphic/Gradient"),x={};return x.Group=t("zrender/container/Group"),x.Image=t("zrender/graphic/Image"),x.Text=t("zrender/graphic/Text"),x[Je]=t("zrender/graphic/shape/Circle"),x[Ke]=t("zrender/graphic/shape/Sector"),x[$e]=t("zrender/graphic/shape/Polygon"),x[Ye]=t("zrender/graphic/shape/Polyline"),x.Rect=t("zrender/graphic/shape/Rect"),x.Line=t("zrender/graphic/shape/Line"),x.BezierCurve=t("zrender/graphic/shape/BezierCurve"),x.Arc=t("zrender/graphic/shape/Arc"),x.LinearGradient=t("zrender/graphic/LinearGradient"),x.RadialGradient=t("zrender/graphic/RadialGradient"),x.BoundingRect=t(hr),x[Xe]=function(t){return p[Cr](t)},x.extendPath=function(t,e){return d.extendFromString(t,e)},x.makePath=function(t,e,i,n){var r=d.createFromString(t,e),a=r[Jn]();if(i){var o=a.width/a[ur];if(n===Vr){var s,l=i[ur]*o;l<=i.width?s=i[ur]:(l=i.width,s=l/o);var u=i.x+i.width/2,c=i.y+i[ur]/2;i.x=u-l/2,i.y=c-s/2,i.width=l,i[ur]=s}this.resizePath(r,i)}return r},x.mergePath=d.mergePath,x.resizePath=function(t,e){if(t[cr]){var i=t[Jn](),n=i.calculateTransform(e);t[cr](n)}},x.subPixelOptimizeLine=function(t){var e=x.subPixelOptimize,i=t.shape,n=t.style[wr];return f(2*i.x1)===f(2*i.x2)&&(i.x1=i.x2=e(i.x1,n,!0)),f(2*i.y1)===f(2*i.y2)&&(i.y1=i.y2=e(i.y1,n,!0)),t},x[je]=function(t){var e=x.subPixelOptimize,i=t.shape,n=t.style[wr],r=i.x,a=i.y,o=i.width,s=i[ur];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[ur]=Math.max(e(a+s,n,!1)-i.y,0===s?0:1),t},x.subPixelOptimize=function(t,e,i){var n=f(2*t);return(n+f(e))%2===0?n/2:(n+(i?1:-1))/2},x[We]=function(t,e){e=e||{},"group"===t.type?t[ki](function(t){"group"!==t.type&&a(t,e)}):a(t,e),t.on(He,o).on(Fe,s),t.on(Zn,l).on(Gn,u)},x[Ze]=function(t,e,i){var n=e[br](Cn)||nr,r=n[Hr](nr)>=0?"white":i,a=e[tr](Qn);h[Cr](t,{textDistance:e[br](fr)||5,textFont:a[Kn](),textPosition:n,textFill:a[Ge]()||r})},x[Ne]=h.curry(c,!0),x[Ee]=h.curry(c,!1),x.getTransform=function(t,e){for(var i=m.identity([]);t&&t!==e;)m.mul(i,t[qi](),i),t=t[Ui];return i},x[cr]=function(t,e,i){return i&&(e=m.invert([],e)),g[cr]([],t,e)},x.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===Ir?r:0];return a=x[cr](a,e,i),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?Ir:"top"},x}),e(Oe,[],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_]+)/),l=t.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),u=l&&t.match(/TouchPad/),c=t.match(/Kindle\/([\d.]+)/),h=t.match(/Silk\/([\d._]+)/),d=t.match(/(BlackBerry).*Version\/([\d.]+)/),f=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,x=t.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/)&&!m,_=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),w=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][Nr](/_/g,".")),a&&(e.ios=e.ipad=!0,e.version=a[2][Nr](/_/g,".")),o&&(e.ios=e.ipod=!0,e.version=o[3]?o[3][Nr](/_/g,"."):null),l&&(e.webos=!0,e.version=l[2]),u&&(e.touchpad=!0),d&&(e.blackberry=!0,e.version=d[2]),f&&(e.bb10=!0,e.version=f[2]),p&&(e.rimtabletos=!0,e.version=p[2]),v&&(i.playbook=!0),c&&(e.kindle=!0,e.version=c[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]),_&&(i.ie=!0,i.version=_[1]),y&&(t.match(/Safari/)||e.ios)&&(i.safari=!0),x&&(i.webview=!0),_&&(i.ie=!0,i.version=_[1]),w&&(i.edge=!0,i.version=w[1]),e.tablet=!!(a||v||r&&!t.match(/Mobile/)||g&&t.match(/Tablet/)||_&&!t.match(/Phone/)&&t.match(/Touch/)),e.phone=!(e.tablet||e.ipod||!(r||s||l||d||f||m&&t.match(/Android/)||m&&t.match(/CriOS\/([\d.]+)/)||g&&t.match(/Mobile/)||_&&t.match(/Touch/))),{browser:i,os:e,node:!1,canvasSupported:document[Ur](qr)[Wr]?!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===pr?{browser:{},os:{},node:!0,canvasSupported:!0}:t(navigator.userAgent)}),e(Re,[Qr,"../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[Hr]("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,l=0;i.pageX||i.pageY?(s=i.pageX,l=i.pageY):(s=i.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,l=i.clientY+document.body.scrollTop+document.documentElement.scrollTop);var u=e(t),c=u.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||0),h=u.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0);i.zrX=s-h,i.zrY=l-c,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!==pr&&!!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",[Qr],function(t){function e(){this.on(Ve,this._dragStart,this),this.on(ze,this._drag,this),this.on(Ie,this._dragEnd,this),this.on("globalout",this._dragEnd,this)}return e[Jr]={constructor:e,_dragStart:function(t){var e=t[Zi];e&&e[Ri]&&(this._draggingTarget=e,e.dragging=!0,this._x=t[Pe],this._y=t[De],this._dispatchProxy(e,"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var i=t[Pe],n=t[De],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",[Qr],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[Jr]={constructor:n,recognize:function(t,e){return this._doTrack(t,e),this._recognize(t)},clear:function(){return this._track[jr]=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[jr];a>r;r++){var o=i[r];n[ti].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[jr];if(r){var a=(t[r-1]||{})[ti],o=(t[r-2]||{})[ti]||a;if(o&&o[jr]>1&&a&&a[jr]>1){var s=e(a)/e(o);!isFinite(s)&&(s=1),n.pinchScale=s;var l=i(a);return n.pinchX=l[0],n.pinchY=l[1],{type:"pinch",target:t[0][Zi],event:n}}}}};return n}),e("zrender/Handler",[Qr,"./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[Zi],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[Gr](g),n=0;n<i[jr];n++){var r=i[n];t._handlers[r]=h.bind(b[r],t)}for(var n=0;n<v[jr];n++){var r=v[n];t._handlers[r]=e(b[r],t)}}function r(t,e,i){if(t[t.rectHover?"rectContain":vi](e,i)){for(var n=t[Ui];n;){if(n.clipPath&&!n.clipPath[vi](e,i))return!1;n=n[Ui]}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 u.touchEventsSupported}function l(t){return"mousewheel"===t&&u.firefox?"DOMMouseScroll":t}var u=t("./core/env"),c=t("./core/event"),h=t("./core/util"),d=t("./mixin/Draggable"),f=t("./core/GestureMgr"),p=t("./mixin/Eventful"),v=["click","dblclick","mousewheel",Fe];!o()&&v.push(Ie,Ve,ze);var m=["touchstart","touchend","touchmove"],g=["pointerdown","pointerup","pointermove"],y=300,x=c.addEventListener,_=c.removeEventListener,w=c.normalizeEvent,b={mousemove:function(t){t=w(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,Fe,t),this._dispatchProxy(n,ze,t),n&&n!==r&&this._dispatchProxy(n,He,t)},mouseout:function(t){t=w(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[Le]}this._dispatchProxy(this._hovered,Fe,t),this[Mi]("globalout",{event:t})},touchstart:function(t){t=w(this.root,t),this._lastTouchMoment=new Date,i(this,t,"start"),b[ze].call(this,t),b[Ve].call(this,t),a(this)},touchmove:function(t){t=w(this.root,t),i(this,t,"change"),b[ze].call(this,t),a(this)},touchend:function(t){t=w(this.root,t),i(this,t,"end"),b[Ie].call(this,t),+new Date-this._lastTouchMoment<y&&b.click.call(this,t),a(this)}};h.each(["click",Ve,Ie,"mousewheel","dblclick"],function(t){b[t]=function(e){e=w(this.root,e);var i=this._findHover(e.zrX,e.zrY,null);this._dispatchProxy(i,t,e)}});var M=function(t,e,i){function r(e,i){h.each(e,function(e){x(t,l(e),i._handlers[e])},i)}p.call(this),this.root=t,this[ke]=e,this.painter=i,this._hovered,this._lastTouchMoment,this._lastX,this._lastY,this._defaultCursorStyle="default",this._gestureMgr=new f,this._handlers=[],this._touching=!1,this._touchTimer,n(this),o()?r(g,this):s()&&r(m,this),r(v,this),d.call(this)};return M[Jr]={constructor:M,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[Gr](m),i=0;i<e[jr];i++){var n=e[i];_(t,l(n),this._handlers[n])}this.root=this[ke]=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[Mi](i,a),o=o[Ui],!a.cancelBubble););a.cancelBubble||(this[Mi](i,a),this.painter&&this.painter.eachOtherLayer(function(t){typeof t[r]==Br&&t[r].call(t,a),t[Mi]&&t[Mi](i,a)}))},_findHover:function(t,e,i){for(var n=this[ke][Te](),a=n[jr]-1;a>=0;a--)if(!n[a][Ce]&&n[a]!==i&&r(n[a],t,e))return n[a]}},h.mixin(M,p),h.mixin(M,d),M}),e("zrender/Storage",[Qr,"./core/util","./container/Group"],function(t){function e(t,e){return t[Ae]===e[Ae]?t.z===e.z?t.z2===e.z2?t.__renderidx-e.__renderidx:t.z2-e.z2:t.z-e.z:t[Ae]-e[Ae]}var i=t("./core/util"),n=t("./container/Group"),r=function(){this._elements={},this._roots=[],this._displayList=[],this._displayListLen=0};return r[Jr]={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[jr];r>n;n++){var a=t[n];this._updateAndAddDisplayable(a)}i[jr]=this._displayListLen;for(var n=0,r=i[jr];r>n;n++)i[n].__renderidx=n;i.sort(e)},_updateAndAddDisplayable:function(t,e){if(!t[Vi]){t.beforeUpdate(),t[Se](),t.afterUpdate();var i=t.clipPath;if(i&&(i[Ui]=t,i[ji](),e?(e=e.slice(),e.push(i)):e=[i]),"group"==t.type){for(var n=t._children,r=0;r<n[jr];r++){var a=n[r];a[Ii]=t[Ii]||a[Ii],this._updateAndAddDisplayable(a,e)}t[Ii]=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){this._elements[t.id]||(t instanceof n&&t.addChildrenToStorage(this),this[Di](t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots[jr];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[jr];a>e;e++)this.delRoot(t[e]);else{var o;o=typeof t==Fr?this._elements[t]:t;var s=i[Hr](this._roots,o);s>=0&&(this[Li](o.id),this._roots[Ki](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",[Qr,ar,"../core/event","./Animator"],function(t){var e=t(ar),i=t("../core/event").Dispatcher,n=typeof window!==pr&&(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[Jr]={constructor:a,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t[Bi]=this;for(var e=t.getClips(),i=0;i<e[jr];i++)this.addClip(e[i])},removeClip:function(t){var i=e[Hr](this._clips,t);i>=0&&this._clips[Ki](i,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i<e[jr];i++)this.removeClip(e[i]);t[Bi]=null},_update:function(){for(var t=(new Date).getTime(),e=t-this._time,i=this._clips,n=i[jr],r=[],a=[],o=0;n>o;o++){var s=i[o],l=s.step(t);l&&(r.push(l),a.push(s))}for(var o=0;n>o;)i[o]._needsRemove?(i[o]=i[n-1],i.pop(),n--):o++;n=r[jr];for(var o=0;n>o;o++)a[o].fire(r[o]);this._time=t,this.onframe(e),this[Mi]("frame",e),this.stage[Se]&&this.stage[Se]()},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",[Qr,"./core/util","./config"],function(t){function e(){return!1}function i(t,e,i,n){var r=document[Ur](e),a=i[cn](),o=i[un](),s=r.style;return s[Cn]="absolute",s.left=0,s.top=0,s.width=a+"px",s[ur]=o+"px",r.width=a*n,r[ur]=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===Fr?s=i(t,qr,a,o):n[Ln](t)&&(s=t,t=s.id),this.id=t,this.dom=s;var l=s.style;l&&(s.onselectstart=e,l["-webkit-user-select"]="none",l["user-select"]="none",l["-webkit-touch-callout"]="none",l["-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[Jr]={constructor:a,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom[Wr]("2d");var t=this.dpr;1!=t&&this.ctx.scale(t,t)},createBackBuffer:function(){var t=this.dpr;this.domBack=i("back-"+this.id,qr,this.painter,t),this.ctxBack=this.domBack[Wr]("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[ur]=e+"px",n.width=t*i,n[ur]=e*i,1!=i&&this.ctx.scale(i,i),a&&(a.width=t*i,a[ur]=e*i,1!=i&&this.ctxBack.scale(i,i))},clear:function(t){var e=this.dom,i=this.ctx,n=e.width,r=e[ur],a=this.clearColor,o=this.motionBlur&&!t,s=this.lastFrameAlpha,l=this.dpr;if(o&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,n/l,r/l)),i.clearRect(0,0,n/l,r/l),a&&(i.save(),i.fillStyle=this.clearColor,i.fillRect(0,0,n/l,r/l),i[oi]()),o){var u=this.domBack;i.save(),i.globalAlpha=s,i.drawImage(u,0,0,n/l,r/l),i[oi]()}}},a}),e("zrender/Painter",[Qr,"./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[Me]!==Br||typeof t[zi]!==Br?!1:!0:!1}function n(t){t.__unusedCount++}function r(t){t[Ii]=!1,1==t.__unusedCount&&t.clear()}function a(t,e,i){return f.copy(t[Jn]()),t[Xi]&&f[cr](t[Xi]),p.width=e,p[ur]=i,!f[be](p)}function o(t,e){if(!t||!e||t[jr]!==e[jr])return!0;for(var i=0;i<t[jr];i++)if(t[i]!==e[i])return!0}function s(t,e){for(var i=0;i<t[jr];i++){var n,r=t[i];r[Xi]&&(n=r[Xi],e[Xi](n[0],n[1],n[2],n[3],n[4],n[5]));var a=r.path;a[fi](e),r[si](a,r.shape),e.clip(),r[Xi]&&(n=r[Wi],e[Xi](n[0],n[1],n[2],n[3],n[4],n[5]))}}var l=t("./config"),u=t("./core/util"),c=t("./core/log"),h=t("./core/BoundingRect"),d=t("./Layer"),f=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[kr]();i=i||{},this.dpr=i.devicePixelRatio||l.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[we]=""),this[ke]=e,n){var a=t.width,o=t[ur];this._width=a,this._height=o;var s=new d(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 u=document[Ur]("div");this._domRoot=u;var c=u.style;c[Cn]="relative",c.overflow="hidden",c.width=this._width+"px",c[ur]=this._height+"px",t[_e](u),this._layers={},this._zlevelList=[]}this._layerConfig={},this.pathToImage=this._createPathToImage()};return v[Jr]={constructor:v,isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._singleCanvas?this._layers[0].dom:this._domRoot},refresh:function(t){var e=this[ke][Te](!0),i=this._zlevelList;this._paintList(e,t);for(var n=0;n<i[jr];n++){var r=i[n],a=this._layers[r];!a.isBuildin&&a[zi]&&a[zi]()}return this},_paintList:function(t,e){null==e&&(e=!1),this._updateLayerStatus(t);var i,l,u,h=this._width,d=this._height;this.eachBuildinLayer(n);for(var f=null,p=0,v=t[jr];v>p;p++){var m=t[p],g=this._singleCanvas?0:m[Ae];if(l!==g&&(l=g,i=this.getLayer(l),i.isBuildin||c("ZLevel "+l+" has been used by unkown layer "+i.id),u=i.ctx,i.__unusedCount=0,(i[Ii]||e)&&i.clear()),(i[Ii]||e)&&!m[Ti]&&0!==m.style[xr]&&m.scale[0]&&m.scale[1]&&(!m.culling||!a(m,h,d))){var y=m.__clipPaths;o(y,f)&&(f&&u[oi](),y&&(u.save(),s(y,u)),f=y),m.beforeBrush&&m.beforeBrush(u),m.brush(u,!1),m.afterBrush&&m.afterBrush(u)}m[Ii]=!1}f&&u[oi](),this.eachBuildinLayer(r)},getLayer:function(t){if(this._singleCanvas)return this._layers[0];var e=this._layers[t];return e||(e=new d("zr_"+t,this,this.dpr),e.isBuildin=!0,this._layerConfig[t]&&u.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[jr],o=null,s=-1,l=this._domRoot;if(n[t])return void c("ZLevel "+t+" has been used already");if(!i(e))return void c("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[Ki](s+1,0,t),o){var u=o.dom;u.nextSibling?l.insertBefore(e.dom,u.nextSibling):l[_e](e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l[_e](e.dom);n[t]=e},eachLayer:function(t,e){var i,n,r=this._zlevelList;for(n=0;n<r[jr];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[jr];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[jr];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[jr];r>n;n++){var a=t[n],o=this._singleCanvas?0:a[Ae],s=e[o];if(s){if(s.elCount++,s[Ii])continue;s[Ii]=a[Ii]}}this.eachBuildinLayer(function(t,e){i[e]!==t.elCount&&(t[Ii]=!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]?u.merge(i[t],e,!0):i[t]=e;var n=this._layers[t];n&&u.merge(n,i[t],!0)}},delLayer:function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom[Le].removeChild(n.dom),delete e[t],i[Ki](u[Hr](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[ur]=e+"px";for(var n in this._layers)this._layers[n][Me](t,e);this[zi](!0)}return this._width=t,this._height=e,this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root[we]="",this.root=this[ke]=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas)return this._layers[0].dom;var e=new d("image",this,t.pixelRatio||this.dpr);e.initContext();var i=e.ctx;e.clearColor=t[xe],e.clear();for(var n=this[ke][Te](!0),r=0;r<n[jr];r++){var a=n[r];a[Ti]||(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[ye]||e(i[ur])||e(t.style[ur]))-(e(i.paddingTop)||0)-(e(i.paddingBottom)||0)|0},_pathToImage:function(e,i,n,r,a){var o=document[Ur](qr),s=o[Wr]("2d");o.width=n*a,o[ur]=r*a,s.clearRect(0,0,n*a,r*a);var l={position:i[Cn],rotation:i[$i],scale:i.scale};i[Cn]=[0,0,0],i[$i]=0,i.scale=[1,1],i&&i.brush(s);var u=t("./graphic/Image"),c=new u({id:e,style:{x:0,y:0,image:o}});return null!=l[Cn]&&(c[Cn]=i[Cn]=l[Cn]),null!=l[$i]&&(c[$i]=i[$i]=l[$i]),null!=l.scale&&(c.scale=i.scale=l.scale),c},_createPathToImage:function(){var t=this;return function(e,i,n,r){return t._pathToImage(e,i,n,r,t.dpr)}}},v}),e("zrender/zrender",[Qr,"./core/guid","./core/env","./Handler","./Storage","./animation/Animation","./Painter"],function(t){function e(t){delete u[t]}var i=t("./core/guid"),n=t("./core/env"),r=t("./Handler"),a=t("./Storage"),o=t("./animation/Animation"),s=!n[ge],l={canvas:t("./Painter")},u={},c={};c.version="3.0.2",c.init=function(t,e){var n=new h(i(),t,e);return u[n.id]=n,n},c[me]=function(t){if(t)t[me]();else{for(var e in u)u[e][me]();u={}}return c},c.getInstance=function(t){return u[t]},c.registerPainter=function(t,e){l[t]=e};var h=function(t,e,i){i=i||{},this.dom=e,this.id=t;var u=this,c=new a,h=i.renderer;if(s){if(!l.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");h="vml"}else h&&l[h]||(h=qr);var d=new l[h](e,c,i);this[ke]=c,this.painter=d,n.node||(this.handler=new r(d.getViewportRoot(),c,d)),this[Bi]=new o({stage:{update:function(){u._needsRefresh&&u.refreshImmediately()}}}),this[Bi].start(),this._needsRefresh;var f=c[Li],p=c[Di];c[Li]=function(t){var e=c.get(t);f.call(c,t),e&&e.removeSelfFromZr(u)},c[Di]=function(t){p.call(c,t),t.addSelfToZr(u)}};return h[Jr]={constructor:h,getId:function(){return this.id},add:function(t){this[ke].addRoot(t),this._needsRefresh=!0},remove:function(t){this[ke].delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer(t,e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter[zi](),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},resize:function(){this.painter[Me](),this.handler&&this.handler[Me]()},clearAnimation:function(){this[Bi].clear()},getWidth:function(){return this.painter[cn]()},getHeight:function(){return this.painter[un]()},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[Mi](t,e)},clear:function(){this[ke].delRoot(),this.painter.clear()},dispose:function(){this[Bi].stop(),this.clear(),this[ke][me](),this.painter[me](),this.handler&&this.handler[me](),this[Bi]=this[ke]=this.painter=this.handler=null,e(this.id)}},c}),e("zrender",["zrender/zrender"],function(t){return t}),e("echarts/loading/default",[Qr,"../util/graphic",Kr],function(t){var e=t("../util/graphic"),i=t(Kr),n=Math.PI;return function(t,r){r=r||{},i[ir](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[Ae],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[Ae],z:10001}),s=new e.Rect({style:{fill:"none",text:r.text,textPosition:"right",textDistance:10,textFill:r.textColor},zlevel:r[Ae],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 l=new e.Group;return l.add(o),l.add(s),l.add(a),l[Me]=function(){var e=t[cn]()/2,i=t[un]()/2;o[ai]({cx:e,cy:i});var n=o.shape.r;s[ai]({x:e-n,y:i-n,width:2*n,height:2*n}),a[ai]({x:0,y:0,width:t[cn](),height:t[un]()})},l[Me](),l}}),e("echarts/visual/seriesColor",[Qr,"zrender/graphic/Gradient"],function(t){var e=t("zrender/graphic/Gradient");return function(t,i,n){function r(t){var r=[i,Gn,"color"],a=n.get("color"),o=t[En](),s=t.get(r)||a[t[Nn]%a[jr]];o[ve]("color",s),n[pe](t)||(typeof s!==Br||s instanceof e||o.each(function(e){o[fe](e,"color",s(t[Pn](e)))}),o.each(function(t){var e=o[In](t),i=e.get(r,!0);null!=i&&o[fe](t,"color",i)}))}t?n[de](t,r):n[he](r)}}),e("echarts/preprocessor/helper/compatStyle",[Qr,Kr],function(t){function e(t){var e=t&&t[ue];e&&i.each(n,function(n){var r=e[Gn],a=e[Zn];r&&r[n]&&(t[n]=t[n]||{},t[n][Gn]?i.merge(t[n][Gn],r[n]):t[n][Gn]=r[n],r[n]=null),a&&a[n]&&(t[n]=t[n]||{},t[n][Zn]?i.merge(t[n][Zn],a[n]):t[n][Zn]=a[n],a[n]=null)})}var i=t(Kr),n=["areaStyle",ce,"nodeStyle","linkStyle","chordStyle","label","labelLine"];return function(t){e(t);var n=t.data;if(n){for(var r=0;r<n[jr];r++)e(n[r]);var a=t[le];if(a&&a.data)for(var o=a.data,r=0;r<o[jr];r++)e(o[r]);var s=t.markLine;if(s&&s.data)for(var l=s.data,r=0;r<l[jr];r++)i[Or](l[r])?(e(l[r][0]),e(l[r][1])):e(l[r])}}}),e("echarts/preprocessor/backwardCompat",[Qr,Kr,"./helper/compatStyle"],function(t){function e(t,e){e=e.split(",");for(var i=t,n=0;n<e[jr]&&(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[jr]-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){u(o,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var r=t(Kr),a=t("./helper/compatStyle"),o=[["x","left"],["y","top"],["x2","right"],["y2",Ir]],s=["grid","geo","parallel",se,"toolbox","title","visualMap",oe,vn],l=["bar","boxplot","candlestick","chord","effectScatter","funnel","gauge","lines","graph","heatmap","line","map","parallel","pie","radar","sankey",ae,"treemap"],u=r.each;
return function(t){u(t[pn],function(t){if(r[Ln](t)){var o=t.type;if(a(t),("pie"===o||"gauge"===o)&&null!=t.clockWise&&(t[ei]=t.clockWise),"gauge"===o){var s=e(t,"pointer.color");null!=s&&i(t,re,s)}for(var u=0;u<l[jr];u++)if(l[u]===t.type){n(t);break}}}),t.dataRange&&(t.visualMap=t.dataRange),u(s,function(e){var i=t[e];i&&(r[Or](i)||(i=[i]),u(i,function(t){n(t)}))})}}),e("echarts/echarts",[Qr,"./model/Global","./ExtensionAPI","./CoordinateSystem","./model/OptionManager","./model/Component","./model/Series","./view/Component","./view/Chart","./util/graphic","zrender",Kr,Gi,Oe,Ji,"./loading/default","./visual/seriesColor","./preprocessor/backwardCompat","./util/graphic","./util/number","./util/format",dr,vr],function(t){function e(t){return function(e,i,n){e=e&&e[Lr](),T[Jr][t].call(this,e,i,n)}}function i(){T.call(this)}function n(t,e,n){n=n||{},typeof e===Fr&&(e=Z[e]),e&&k(B,function(t){t(e)}),this.id,this.group,this._dom=t,this._zr=M.init(t,{renderer:n.renderer||qr,devicePixelRatio:n.devicePixelRatio}),this._theme=S.clone(e),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._api=new v(this),this._coordinateSystem=new m,T.call(this),this._messageCenter=new i,this._initEvents(),this[Me]=S.bind(this[Me],this)}function r(t,e){var i=this[ne];i&&i[ie]({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;k(this._componentsViews,function(r){var a=r.__model;r[t](a,e,n,i),d(a,r)},this),e[he](function(r,a){var o=this._chartsMap[r.__viewId];o[t](r,e,n,i),d(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[jr];o++)n[o].__alive=!1;e[i?ie:he](function(t,o){if(i){if(t===pn)return}else o=t;var s=o.id+"_"+o.type,l=r[s];if(!l){var u=y.parseClassType(o.type),c=i?_[Mr](u.main,u.sub):w[Mr](u.sub);if(!c)return;l=new c,l.init(e,this._api),r[s]=l,n.push(l),a.add(l.group)}o.__viewId=s,l.__alive=!0,l.__id=s,l.__model=o},this);for(var o=0;o<n[jr];){var s=n[o];s.__alive?o++:(a[Pi](s.group),s[me](e,this._api),n[Ki](o,1),delete r[s.__id])}}function s(t){k(D,function(e){k(N[e]||[],function(e){e(t)})})}function l(t){var e={};t[he](function(t){var i=t.get("stack"),n=t[En]();if(i&&"list"===n.type){var r=e[i];r&&(n.stackedOn=r),e[i]=n}})}function u(t,e){var i=this._api;k(E,function(n){n(t,i,e)})}function c(t,e){k(L,function(i){k(G[i]||[],function(i){i(t,e)})})}function h(t,e){var i=this._api;k(this._componentsViews,function(n){var r=n.__model;n[Si](r,t,i,e),d(r,n)},this),k(this._chartsViews,function(t){t.__alive=!1},this),t[he](function(n,r){var a=this._chartsMap[n.__viewId];a.__alive=!0,a[Si](n,t,i,e),d(n,a)},this),k(this._chartsViews,function(e){e.__alive||e[Pi](t,i)},this)}function d(t,e){var i=t.get("z"),n=t.get(Ae);e.group[ki](function(t){null!=i&&(t.z=i),null!=n&&(t[Ae]=n)})}function f(t){function e(t,e){for(var i=0;i<t[jr];i++){var n=t[i];n[a]=e}}var i=0,n=1,r=2,a="__connectUpdateStatus";S.each(O,function(o,s){t._messageCenter.on(s,function(o){if(H[t.group]&&t[a]!==i){var s=t.makeActionFromEvent(o),l=[];for(var u in F){var c=F[u];c!==t&&c.group===t.group&&l.push(c)}e(l,i),k(l,function(t){t[a]!==n&&t[ln](s)}),e(l,r)}})})}var p=t("./model/Global"),v=t("./ExtensionAPI"),m=t("./CoordinateSystem"),g=t("./model/OptionManager"),y=t("./model/Component"),x=t("./model/Series"),_=t("./view/Component"),w=t("./view/Chart"),b=t("./util/graphic"),M=t("zrender"),S=t(Kr),A=t(Gi),C=t(Oe),T=t(Ji),k=S.each,L=["echarts","chart","component"],D=[Xi,$r,"statistic"];i[Jr].on=e("on"),i[Jr].off=e("off"),i[Jr].one=e("one"),S.mixin(i,T);var P=n[Jr];P[hn]=function(){return this._dom},P.getZr=function(){return this._zr},P.setOption=function(t,e,i){(!this[ne]||e)&&(this[ne]=new p(null,null,this._theme,new g(this._api))),this[ne].setOption(t,B),I.prepareAndUpdate.call(this),!i&&this._zr.refreshImmediately()},P.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},P[tr]=function(){return this[ne]},P.getOption=function(){return S.clone(this[ne][Un])},P[cn]=function(){return this._zr[cn]()},P[un]=function(){return this._zr[un]()},P.getRenderedCanvas=function(t){if(C[ge]){t=t||{},t.pixelRatio=t.pixelRatio||1,t[xe]=t[xe]||this[ne].get(xe);var e=this._zr,i=e[ke][Te]();return S.each(i,function(t){t[Ei](!0)}),e.painter.getRenderedCanvas(t)}},P.getDataURL=function(t){t=t||{};var e=t.excludeComponents,i=this[ne],n=[],r=this;k(e,function(t){i[ie]({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group[Vi]||(n.push(e),e.group[Vi]=!0)})});var a=this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return k(n,function(t){t.group[Vi]=!1}),a},P.getConnectedDataURL=function(t){if(C[ge]){var e=this.group,i=Math.min,n=Math.max,r=1/0;if(H[e]){var a=r,o=r,s=-r,l=-r,u=[],c=t&&t.pixelRatio||1;for(var h in F){var d=F[h];if(d.group===e){var f=d.getRenderedCanvas(S.clone(t)),p=d[hn]().getBoundingClientRect();a=i(p.left,a),o=i(p.top,o),s=n(p.right,s),l=n(p[Ir],l),u.push({dom:f,left:p.left,top:p.top})}}a*=c,o*=c,s*=c,l*=c;var v=s-a,m=l-o,g=S.createCanvas();g.width=v,g[ur]=m;var y=M.init(g);return k(u,function(t){var e=new b.Image({style:{x:t.left*c-a,y:t.top*c-o,image:t.dom}});y.add(e)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}};var I={update:function(t){var e=this[ne];if(e){e.restoreData(),s.call(this,e),l.call(this,e),this._coordinateSystem[Se](e,this._api),u.call(this,e,t),c.call(this,e,t),h.call(this,e,t);var i=e.get(xe)||"transparent",n=this._zr.painter;if(n.isSingleCanvas&&n.isSingleCanvas())this._zr.configLayer(0,{clearColor:i});else{if(!C[ge]){var r=A.parse(i);i=A.stringify(r,"rgb"),0===r[3]&&(i="transparent")}i=i,this._dom.style[xe]=i}}},updateView:function(t){var e=this[ne];e&&(u.call(this,e,t),c.call(this,e,t),a.call(this,"updateView",e,t))},updateVisual:function(t){var e=this[ne];e&&(c.call(this,e,t),a.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this[ne];e&&(u.call(this,e,t),a.call(this,Ci,e,t))},highlight:function(t){r.call(this,ee,t)},downplay:function(t){r.call(this,te,t)},prepareAndUpdate:function(t){var e=this[ne];o.call(this,"component",e),o.call(this,"chart",e),I[Se].call(this,t)}};P[Me]=function(){this._zr[Me]();var t=this[ne]&&this[ne][gn]("media");I[t?"prepareAndUpdate":Se].call(this),this._loadingFX&&this._loadingFX[Me]()};var z=t("./loading/default");P.showLoading=function(t,e){S[Ln](t)&&(e=t,t="default");var i=z(this._api,e),n=this._zr;this._loadingFX=i,n.add(i)},P.hideLoading=function(){this._loadingFX&&this._zr[Pi](this._loadingFX),this._loadingFX=null},P.makeActionFromEvent=function(t){var e=S[Cr]({},t);return e.type=O[t.type],e},P[ln]=function(t,e){var i=R[t.type];if(i){var n=i.actionInfo,r=n[Se]||Se,a=[t],o=!1;t.batch&&(o=!0,a=S.map(t.batch,function(e){return e=S[ir](S[Cr]({},e),t),e.batch=null,e}));for(var s,l=[],u=t.type===ee||t.type===te,c=0;c<a[jr];c++){var h=a[c];s=i.action(h,this[ne]),s=s||S[Cr]({},h),s.type=n.event||s.type,l.push(s),u&&I[r].call(this,h)}"none"!==r&&!u&&I[r].call(this,t),e||(s=o?{type:l[0].type,batch:l}:l[0],this._messageCenter[Mi](s.type,s))}},P.on=e("on"),P.off=e("off"),P.one=e("one");var V=["click","dblclick",He,Fe,"globalout"];P._initEvents=function(){var t=this._zr;k(V,function(e){t.on(e,function(t){var i=this[tr](),n=t[Zi];if(n&&null!=n[bi]){var r=n[Qt]||i.getSeriesByIndex(n[Nn]),a=r&&r[Pn](n[bi])||{};a.event=t,a.type=e,this[Mi](e,a)}},this)},this),k(O,function(t,e){this._messageCenter.on(e,function(t){this[Mi](e,t)},this)},this)},P.isDisposed=function(){return this._disposed},P.clear=function(){this.setOption({},!0)},P[me]=function(){this._disposed=!0;var t=this._api,e=this[ne];k(this._componentsViews,function(i){i[me](e,t)}),k(this._chartsViews,function(i){i[me](e,t)}),this._zr[me](),F[this.id]=null},S.mixin(n,T);var R=[],O={},E=[],N={},B=[],G={},Z={},F={},H={},W=new Date-0,q=new Date-0,U="_echarts_instance_",j={version:"3.1.1",dependencies:{zrender:"3.0.2"}};return j.init=function(t,e,i){if(M.version[Nr](".","")-0<j.dependencies.zrender[Nr](".","")-0)throw new Error("ZRender "+M.version+" is too old for ECharts "+j.version+". Current version need ZRender "+j.dependencies.zrender+"+");if(!t)throw new Error("Initialize failed: invalid dom.");var r=new n(t,e,i);return r.id="ec_"+W++,F[r.id]=r,t.setAttribute&&t.setAttribute(U,r.id),f(r),r},j.connect=function(t){if(S[Or](t)){var e=t;t=null,S.each(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+q++,S.each(e,function(e){e.group=t})}return H[t]=!0,t},j.disConnect=function(t){H[t]=!1},j[me]=function(t){S.isDom(t)?t=j.getInstanceByDom(t):typeof t===Fr&&(t=F[t]),t instanceof n&&!t.isDisposed()&&t[me]()},j.getInstanceByDom=function(t){var e=t.getAttribute(U);return F[e]},j.getInstanceById=function(t){return F[t]},j.registerTheme=function(t,e){Z[t]=e},j[Jt]=function(t){B.push(t)},j[Kt]=function(t,e){if(S[Hr](D,t)<0)throw new Error("stage should be one of "+D);var i=N[t]||(N[t]=[]);i.push(e)},j[$t]=function(t,e,i){typeof e===Br&&(i=e,e="");var n=S[Ln](t)?t.type:[t,t={event:e}][0];t.event=(t.event||n)[Lr](),e=t.event,R[n]||(R[n]={action:i,actionInfo:t}),O[e]=n},j.registerCoordinateSystem=function(t,e){m[sn](t,e)},j[Yt]=function(t){S[Hr](E,t)<0&&E.push(t)},j[Xt]=function(t,e){if(S[Hr](L,t)<0)throw new Error("stage should be one of "+L);var i=G[t]||(G[t]=[]);i.push(e)},j[jt]=function(t){return w[Cr](t)},j[Ut]=function(t){return y[Cr](t)},j[qt]=function(t){return x[Cr](t)},j[Wt]=function(t){return _[Cr](t)},j.setCanvasCreator=function(t){S.createCanvas=t},j[Xt]("echarts",S.curry(t("./visual/seriesColor"),"",ue)),j[Jt](t("./preprocessor/backwardCompat")),j[$t]({type:"highlight",event:"highlight",update:"highlight"},S.noop),j[$t]({type:"downplay",event:"downplay",update:"downplay"},S.noop),j.graphic=t("./util/graphic"),j[Zr]=t("./util/number"),j.format=t("./util/format"),j.matrix=t(dr),j.vector=t(vr),j.util={},k(["map","each",$r,Hr,Ar,Yr,$r,"bind","curry",Or,fn,Ln,"isFunction",Cr],function(t){j.util[t]=S[t]}),j}),e("echarts",["echarts/echarts"],function(t){return t}),e("echarts/data/DataDiffer",[Qr],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[jr];n++){var r=i(t[n]),a=e[r];null==a?e[r]=n:(a[jr]||(e[r]=a=[a]),a.push(n))}}return i[Jr]={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[jr];t++){var l=r(e[t]),u=s[l];if(null!=u){var c=u[jr];c?(1===c&&(s[l]=null),u=u.unshift()):s[l]=null,this._update&&this._update(u,t)}else this._remove&&this._remove(t)}for(var l in s)if(s.hasOwnProperty(l)){var u=s[l];if(null==u)continue;if(u[jr])for(var t=0,c=u[jr];c>t;t++)this._add&&this._add(u[t]);else this._add&&this._add(u)}}},i}),e("echarts/data/List",[Qr,"../model/Model","./DataDiffer",Kr,"../util/model"],function(t){function e(t){return u[Or](t)||(t=[t]),t}var i=pr,n=typeof window===pr?global:window,r=typeof n.Float64Array===i?Array:n.Float64Array,a=typeof n.Int32Array===i?Array:n.Int32Array,o={"float":r,"int":a,ordinal:Array,number:Array,time:Array},s=t("../model/Model"),l=t("./DataDiffer"),u=t(Kr),c=t("../util/model"),h=u[Ln],d=["stackedOn","_nameList","_idList","_rawData"],f=function(t,e,i){u.each(d[Gr](i||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})},p=function(t,e){t=t||["x","y"];for(var i={},n=[],r=0;r<t[jr];r++){var a,o={};typeof t[r]===Fr?(a=t[r],o={name:a,stackable:!1,type:"number"}):(o=t[r],a=o.name,o.type=o.type||Zr),n.push(a),i[a]=o}this[en]=n,this._dimensionInfos=i,this[Qt]=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},v=p[Jr];v.type="list",v[Ht]=function(t){return isNaN(t)||(t=this[en][t]||t),t},v.getDimensionInfo=function(t){return u.clone(this._dimensionInfos[this[Ht](t)])},v[Ft]=function(t,e,i){t=t||[],this._rawData=t;var n=this._storage={},r=this.indices=[],a=this[en],s=t[jr],l=this._dimensionInfos,h=[],d={};e=e||[];for(var f=0;f<a[jr];f++){var p=l[a[f]],v=o[p.type];n[a[f]]=new v(s)}i=i||function(t,e,i,n){var r=c.getDataItemValue(t);return c.converDataValue(u[Or](r)?r[n]:r,l[e])};for(var m=0;m<t[jr];m++){for(var g=t[m],y=0;y<a[jr];y++){var x=a[y],_=n[x];_[m]=i(g,x,m,y)}r.push(m)}for(var f=0;f<t[jr];f++){var w="";e[f]||(e[f]=t[f].name,w=t[f].id);var b=e[f]||"";!w&&b&&(d[b]=d[b]||0,w=b,d[b]>0&&(w+="__ec__"+d[b]),d[b]++),w&&(h[f]=w)}this._nameList=e,this._idList=h},v.count=function(){return this.indices[jr]},v.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 l=s.get(t,e);(a>=0&&l>0||0>=a&&0>l)&&(a+=l),s=s.stackedOn}}return a},v[Zt]=function(t,e,i){var n=[];u[Or](t)||(i=e,e=t,t=this[en]);for(var r=0,a=t[jr];a>r;r++)n.push(this.get(t[r],e,i));return n},v.hasValue=function(t){for(var e=this[en],i=this._dimensionInfos,n=0,r=e[jr];r>n;n++)if(i[e[n]].type!==On&&isNaN(this.get(e[n],t)))return!1;return!0},v[Gt]=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),l=0,u=this.count();u>l;l++)r=this.get(t,l,e),o>r&&(o=r),r>s&&(s=r);return this._extent[t+e]=[o,s]}return[1/0,-(1/0)]},v[Bt]=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},v[Hr]=function(t,e){var i=this._storage,n=i[t],r=this.indices;if(n)for(var a=0,o=r[jr];o>a;a++){var s=r[a];if(n[s]===e)return a}return-1},v[_i]=function(t){for(var e=this.indices,i=this._nameList,n=0,r=e[jr];r>n;n++){var a=e[n];if(i[a]===t)return n}return-1},v.indexOfNearest=function(t,e,i){u[Or](t)||(t=t?[t]:[]);var n=this._storage,r=n[t];if(r){for(var a=Number.MAX_VALUE,o=-1,s=0,l=t[jr];l>s;s++)for(var c=0,h=this.count();h>c;c++){var d=Math.abs(this.get(t[s],c,i)-e);a>=d&&(a=d,o=c)}return o}return-1},v[Vn]=function(t){var e=this.indices[t];return null==e?-1:e},v[zn]=function(t){return this._nameList[this.indices[t]]||""},v.getId=function(t){return this._idList[this.indices[t]]||this[Vn](t)+""},v.each=function(t,i,n,r){typeof t===Br&&(r=n,n=i,i=t,t=[]),t=u.map(e(t),this[Ht],this);var a=[],o=t[jr],s=this.indices;r=r||this;for(var l=0;l<s[jr];l++)if(0===o)i.call(r,l);else if(1===o)i.call(r,this.get(t[0],l,n),l);else{for(var c=0;o>c;c++)a[c]=this.get(t[c],l,n);a[c]=l,i.apply(r,a)}},v[Nt]=function(t,i,n,r){typeof t===Br&&(r=n,n=i,i=t,t=[]),t=u.map(e(t),this[Ht],this);var a=[],o=[],s=t[jr],l=this.indices;r=r||this;for(var c=0;c<l[jr];c++){var h;if(1===s)h=i.call(r,this.get(t[0],c,n),c);else{for(var d=0;s>d;d++)o[d]=this.get(t[d],c,n);o[d]=c,h=i.apply(r,o)}h&&a.push(l[c])}return this.indices=a,this._extent={},this},v[Et]=function(t,e,i,n){typeof t===Br&&(n=i,i=e,e=t,t=[]);var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},i,n),r},v.map=function(t,i,n,r){t=u.map(e(t),this[Ht],this);var a=this[en],o=new p(u.map(a,this.getDimensionInfo,this),this[Qt]),s=o.indices=this.indices;f(o,this,this._wrappedMethods);for(var l=o._storage={},c=this._storage,h=0;h<a[jr];h++){var d=a[h],v=c[d];u[Hr](t,d)>=0?l[d]=new v.constructor(c[d][jr]):l[d]=c[d]}var m=[];return this.each(t,function(){var e=arguments[arguments[jr]-1],n=i&&i.apply(this,arguments);if(null!=n){typeof n===Zr&&(m[0]=n,n=m);for(var r=0;r<n[jr];r++){var a=t[r],o=l[a],u=s[e];o&&(o[u]=n[r])}}},n,r),o},v[In]=function(t){var e=this[Qt];return t=this.indices[t],new s(this._rawData[t],e,e[er])},v.diff=function(t){var e=this._idList,i=t&&t._idList;return new l(t?t.indices:[],this.indices,function(t){return i[t]||t+""},function(t){return e[t]||t+""})},v[Ot]=function(t){var e=this._visual;return e&&e[t]},v[ve]=function(t,e){if(h(t))for(var i in t)t.hasOwnProperty(i)&&this[ve](i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},v[Rt]=function(t,e){if(h(t))for(var i in t)t.hasOwnProperty(i)&&this[Rt](i,t[i]);else this._layout[t]=e},v[Vt]=function(t){return this._layout[t]},v[zt]=function(t){return this._itemLayouts[t]},v[It]=function(t,e,i){this._itemLayouts[t]=i?u[Cr](this._itemLayouts[t]||{},e):e},v[Pt]=function(t,e,i){var n=this._itemVisuals[t],r=n&&n[e];return null!=r||i?r:this[Ot](e)},v[fe]=function(t,e,i){var n=this._itemVisuals[t]||{};if(this._itemVisuals[t]=n,h(e))for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);else n[e]=i};var m=function(t){t[Nn]=this[Nn],t[bi]=this[bi]};return v[Dt]=function(t,e){var i=this[Qt];e&&(e[bi]=t,e[Nn]=i&&i[Nn],"group"===e.type&&e[ki](m,e)),this._graphicEls[t]=e},v[wi]=function(t){return this._graphicEls[t]},v[xi]=function(t,e){u.each(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},v.cloneShallow=function(){var t=u.map(this[en],this.getDimensionInfo,this),e=new p(t,this[Qt]);return e._storage=this._storage,f(e,this,this._wrappedMethods),e.indices=this.indices.slice(),e},v.wrapMethod=function(t,e){var i=this[t];typeof i===Br&&(this._wrappedMethods=this._wrappedMethods||[],this._wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.call(this,t)})},p}),e("echarts/data/helper/completeDimensions",[Qr,Kr],function(t){function e(t,e,a){if(!e)return t;var o=n(e[0]),s=r[Or](o)&&o[jr]||1;a=a||[];for(var l=0;s>l;l++)if(!t[l]){var u=a[l]||"extra"+(l-a[jr]);t[l]=i(e,l)?{type:"ordinal",name:u}:u}return t}function i(t,e){for(var i=0,a=t[jr];a>i;i++){var o=n(t[i]);if(!r[Or](o))return!1;var o=o[e];if(null!=o&&isFinite(o))return!1;if(r[fn](o)&&"-"!==o)return!0}return!1}function n(t){return r[Or](t)?t:r[Ln](t)?t.value:t}var r=t(Kr);return e}),e("echarts/chart/helper/createListFromArray",[Qr,Lt,kt,Kr,Tt,Ct],function(t){function e(t){for(var e=0;e<t[jr]&&null==t[e];)e++;return t[e]}function i(t){var i=e(t);return null!=i&&!u[Or](d(i))}function n(t,e,n){t=t||[];var r=e.get(nn),a=p[r],u=h.get(r),c=a&&a(t,e,n),v=c&&c[en];v||(v=u&&u[en]||["x","y"],v=l(v,t,v[Gr](["value"])));var m=c&&c.categoryAxisModel,g=v[0].type===On?0:v[1].type===On?1:-1,y=new s(v,e),x=o(c,t),_=m&&i(t)?function(t,e,i,n){return n===g?i:f(d(t),v[n])}:function(t,e,i,n){var r=d(t);return f(r&&r[n],v[n])};return y[Ft](t,x,_),y}function r(t){return t!==At&&"time"!==t}function a(t){return t===At?On:"time"===t?"time":"float"}function o(t,e){var i=[];if(t&&t.categoryAxisModel){var n=t.categoryAxisModel[St]();if(n){var r=e[jr];if(u[Or](e[0])&&e[0][jr]>1){i=[];for(var a=0;r>a;a++)i[a]=n[e[a][0]]}else i=n.slice(0)}}return i}var s=t(Lt),l=t(kt),u=t(Kr),c=t(Tt),h=t(Ct),d=c.getDataItemValue,f=c.converDataValue,p={cartesian2d:function(t,e,i){var n=i[on]("xAxis",e.get("xAxisIndex")),o=i[on]("yAxis",e.get("yAxisIndex")),s=n.get("type"),u=o.get("type"),c=[{name:"x",type:a(s),stackable:r(s)},{name:"y",type:a(u),stackable:r(u)}];return l(c,t,["x","y","z"]),{dimensions:c,categoryAxisModel:s===At?n:u===At?o:null}},polar:function(t,e,i){var n=e.get("polarIndex")||0,o=function(t){return t.get("polarIndex")===n},s=i[dn]({mainType:"angleAxis",filter:o})[0],u=i[dn]({mainType:"radiusAxis",filter:o})[0],c=u.get("type"),h=s.get("type"),d=[{name:"radius",type:a(c),stackable:r(c)},{name:"angle",type:a(h),stackable:r(h)}];return l(d,t,[qn,"angle","value"]),{dimensions:d,categoryAxisModel:h===At?s:c===At?u:null}},geo:function(t,e,i){return{dimensions:l([{name:"lng"},{name:"lat"}],t,["lng","lat","value"])}}};return n}),e("echarts/chart/line/LineSeries",[Qr,Mt,bt],function(t){var e=t(Mt),i=t(bt);return i[Cr]({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",[Qr,"./graphic",hr],function(t){var e=t("./graphic"),i=t(hr),n=e[Xe]({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[ur]/2;t[di](i,n-a),t[hi](i+r,n+a),t[hi](i-r,n+a),t[ui]()}}),r=e[Xe]({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[ur]/2;t[di](i,n-a),t[hi](i+r,n),t[hi](i,n+a),t[hi](i-r,n),t[ui]()}}),a=e[Xe]({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[ur]),o=r/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,h=Math.sin(u),d=Math.cos(u);t.arc(i,l,o,Math.PI-u,2*Math.PI+u);var f=.6*o,p=.7*o;t[ci](i+c-h*f,l+s+d*f,i,n-p,i,n),t[ci](i,n-p,i-c+h*f,l+s+d*f,i-c,l+s),t[ui]()}}),o=e[Xe]({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e[ur],n=e.width,r=e.x,a=e.y,o=n/3*2;t[di](r,a),t[hi](r+o,a+i),t[hi](r,a+i/4*3),t[hi](r-o,a+i),t[hi](r,a),t[ui]()}}),s={line:e.Line,rect:e.Rect,roundRect:e.Rect,square:e.Rect,circle:e[Je],diamond:r,pin:a,arrow:o,triangle:n},l={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[ur]=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[ur]=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[ur]=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[ur]=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[ur]=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[ur]=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r[ur]=n}},u={};for(var c in s)u[c]=new s[c];var h=e[Xe]({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[yi]===nr&&(t[yi]=["50%","40%"],t[gi]=Vr,t[mi]=zr)},buildPath:function(t,e){var i=e.symbolType,n=u[i];"none"!==e.symbolType&&(n||(i="rect",n=u[i]),l[i](e.x,e.y,e.width,e[ur],n.shape),n[si](t,n.shape))}}),d=function(t){if("image"!==this.type){var e=this.style,i=this.shape;i&&"line"===i.symbolType?e[_r]=t:this.__isEmptyBrush?(e[_r]=t,e.fill="#fff"):(e.fill&&(e.fill=t),e[_r]&&(e[_r]=t)),this.dirty()}},f={createSymbol:function(t,n,r,a,o,s){var l=0===t[Hr]("empty");l&&(t=t.substr(5,1)[Lr]()+t.substr(6));var u;return u=0===t[Hr]("image://")?new e.Image({style:{image:t.slice(8),x:n,y:r,width:a,height:o}}):0===t[Hr]("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}}),u.__isEmptyBrush=l,u[wt]=d,u[wt](s),u}};return f}),e("echarts/chart/helper/Symbol",[Qr,Kr,_t,xt,yt],function(t){function e(t){return r[Or](t)||(t=[+t,+t]),t}function i(t,e){o.Group.call(this),this[gt](t,e)}function n(t,e){this[Ui].drift(t,e)}var r=t(Kr),a=t(_t),o=t(xt),s=t(yt),l=i[Jr];l._createSymbol=function(t,i,r){this[Ai]();var s=i[Qt],l=i[Pt](r,"color"),u=a[mt](t,-.5,-.5,1,1,l);u.attr({style:{strokeNoScale:!0},z2:100,culling:!0,scale:[0,0]}),u.drift=n;var c=e(i[Pt](r,vt));o[Ee](u,{scale:c},s),this._symbolType=t,this.add(u)},l.stopSymbolAnimation=function(t){this[An](0)[Ei](t)},l.getScale=function(){return this[An](0).scale},l[ee]=function(){this[An](0)[Mi](Zn)},l[te]=function(){this[An](0)[Mi](Gn)},l.setZ=function(t,e){var i=this[An](0);i[Ae]=t,i.z=e},l.setDraggable=function(t){var e=this[An](0);e[Ri]=t,e.cursor=t?"move":"pointer"},l[gt]=function(t,i){var n=t[Pt](i,pt)||ft,r=t[Qt],a=e(t[Pt](i,vt));if(n!==this._symbolType)this._createSymbol(n,t,i);else{var s=this[An](0);o[Ne](s,{scale:a},r)}this._updateCommon(t,i,a),this._seriesModel=r};var u=[ue,Gn],c=[ue,Zn],h=["label",Gn],d=["label",Zn];return l._updateCommon=function(t,i,n){var a=this[An](0),l=t[Qt],f=t[In](i),p=f[tr](u),v=t[Pt](i,"color"),m=f[tr](c)[dt]();a[$i]=f[br]("symbolRotate")*Math.PI/180||0;var g=f[br]("symbolOffset");if(g){var y=a[Cn];y[0]=s[Rr](g[0],n[0]),y[1]=s[Rr](g[1],n[1])}a[wt](v),r[Cr](a.style,p[dt](["color"]));var x=f[tr](h),_=f[tr](d),w=t[en][t[en][jr]-1],b=a.style;x.get("show")?(o[Ze](b,x,v),b.text=l[ht](i,Gn)||t.get(w,i)):b.text="",_[br]("show")?(o[Ze](m,_,v),m.text=l[ht](i,Zn)||t.get(w,i)):m.text="";var M=e(t[Pt](i,vt));if(a.off(He).off(Fe).off(Zn).off(Gn),o[We](a,m),f[br]("hoverAnimation")){var S=function(){var t=M[1]/M[0];this[Be]({scale:[Math.max(1.1*M[0],M[0]+3),Math.max(1.1*M[1],M[1]+3*t)]},400,"elasticOut")},A=function(){this[Be]({scale:M},400,"elasticOut")};a.on(He,S).on(Fe,A).on(Zn,S).on(Gn,A)}},l.fadeOut=function(t){var e=this[An](0);e.style.text="",o[Ne](e,{scale:[0,0]},this._seriesModel,t)},r[Ar](i,o.Group),i}),e("echarts/chart/helper/SymbolDraw",[Qr,xt,"./Symbol"],function(t){function e(t){this.group=new n.Group,this._symbolCtor=t||r}function i(t,e,i){var n=t[zt](e);return n&&!isNaN(n[0])&&!isNaN(n[1])&&!(i&&i(e))&&"none"!==t[Pt](e,pt)}var n=t(xt),r=t("./Symbol"),a=e[Jr];return a[gt]=function(t,e){var r=this.group,a=t[Qt],o=this._data,s=this._symbolCtor;t.diff(o).add(function(n){var a=t[zt](n);if(i(t,n,e)){var o=new s(t,n);o.attr(Cn,a),t[Dt](n,o),r.add(o)}})[Se](function(l,u){var c=o[wi](u),h=t[zt](l);return i(t,l,e)?(c?(c[gt](t,l),n[Ne](c,{position:h},a)):(c=new s(t,l),c.attr(Cn,h)),r.add(c),void t[Dt](l,c)):void r[Pi](c)})[Pi](function(t){var e=o[wi](t);e&&e.fadeOut(function(){r[Pi](e)})})[ct](),this._data=t},a[Ci]=function(){var t=this._data;t&&t[xi](function(e,i){e.attr(Cn,t[zt](i))})},a[Pi]=function(t){var e=this.group,i=this._data;i&&(t?i[xi](function(t){t.fadeOut(function(){e[Pi](t)})}):e[Ai]())},e}),e("zrender/core/arrayDiff",[Qr],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,l){var u,c,h,d=i>n,f=r>a,p=s(n-i),v=s(a-r);for(c=0;p>=c;c++)for(h=0;v>=h;h++)if(0===c)l[h]=h;else if(0===h)u=l[h],l[h]=c;else{var m=t[d?i-c:c-1+i],g=e[f?r-h:h-1+r],y=u+(o(m,g)?0:2),x=l[h]+1,_=l[h-1]+1;u=l[h],l[h]=x>y?y:x,_<l[h]&&(l[h]=_)}return l}function a(t,e,i,o,s,l,u,c,h){var d,f,p=[],v=o-i,m=l-s;if(v)if(m)if(1===v){var g=t[i],y=!1;for(f=0;m>f;f++)u(g,e[f+s])&&!y?(y=!0,n(p,"=",i,f+s)):n(p,"+",f+s);y||n(p,"-",i)}else if(1===m){var x=e[s],y=!1;for(d=0;v>d;d++)u(x,t[d+i])&&!y?(y=!0,n(p,"=",d+i,s)):n(p,"-",d+i);y||n(p,"+",s)}else{var _=(v/2|0)+i;r(t,e,i,_,s,l,u,c),r(t,e,o,_+1,l,s,u,h);var w,b=1/0,M=0;for(f=0;m>=f;f++)w=c[f]+h[m-f],b>w&&(b=w,M=f);M+=s,p=a(t,e,i,_,s,M,u,c,h);var S=a(t,e,_,o,M,l,u,c,h);for(d=0;d<S[jr];d++)p.push(S[d])}else for(d=0;v>d;d++)n(p,"-",d+i);else for(f=0;m>f;f++)n(p,"+",f+s);return p}function o(t,i,r){r=r||e;var o,s,l=t[jr],u=i[jr],c=Math.min(l,u),h=[];for(o=0;c>o&&r(t[o],i[o]);o++)n(h,"=",o,o);for(s=0;c>s&&r(t[l-s-1],i[u-s-1]);s++);if(l-s>=o||u-s>=o){var d=a(t,i,o,l-s,o,u-s,r,[],[]);for(o=0;o<d[jr];o++)h.push(d[o]);for(o=0;s>o;o++)n(h,"=",l-s+o,u-s+o)}return h}var s=Math.abs;return o}),e("echarts/chart/line/lineAnimationDiff",[Qr,"zrender/core/arrayDiff"],function(t){function e(t){return t>=0?1:-1}function i(t,i,n){for(var r,a=t[tn](),o=t[ut](a),s=a.onZero?0:o.scale[lt]()[0],l=o.dim,u="x"===l||l===qn?1:0,c=i.stackedOn,h=i.get(l,n);c&&e(c.get(l,n))===e(h);){r=c;break}var d=[];return d[u]=i.get(a.dim,n),d[1-u]=r?r.get(l,n,!0):s,t[st](d)}var n=t("zrender/core/arrayDiff");return function(t,e,r,a,o,s){for(var l=e[Et](e.getId),u=t[Et](t.getId),c=[],h=[],d=[],f=[],p=[],v=[],m=[],g=n(u,l),y=s[en],x=0;x<g[jr];x++){var _=g[x],w=!0;switch(_.cmd){case"=":var b=t[zt](_.idx),M=e[zt](_.idx1);(isNaN(b[0])||isNaN(b[1]))&&(b=M.slice()),c.push(b),h.push(M),d.push(r[_.idx]),f.push(a[_.idx1]),m.push(e[Vn](_.idx1));break;case"+":var S=_.idx;c.push(o[st]([e.get(y[0],S,!0),e.get(y[1],S,!0)])),h.push(e[zt](S).slice()),d.push(i(o,e,S)),f.push(a[S]),m.push(e[Vn](S));break;case"-":var S=_.idx,A=t[Vn](S);A!==S?(c.push(t[zt](S)),h.push(s[st]([t.get(y[0],S,!0),t.get(y[1],S,!0)])),d.push(r[S]),f.push(i(s,t,S)),m.push(A)):w=!1}w&&(p.push(_),v.push(v[jr]))}v.sort(function(t,e){return m[t]-m[e]});for(var C=[],T=[],k=[],L=[],D=[],x=0;x<v[jr];x++){var S=v[x];C[x]=c[S],T[x]=h[S],k[x]=d[S],L[x]=f[S],D[x]=p[S]}return{current:C,next:T,stackedOnCurrent:k,stackedOnNext:L,status:D}}}),e("echarts/chart/line/poly",[Qr,li,vr],function(t){function e(t,e,i,n,d,f,p,v,m,g){for(var y=i,x=0;d>x;x++){var _=e[y];if(y>=n||0>y||isNaN(_[0])||isNaN(_[1]))break;if(y===i)t[f>0?di:hi](_[0],_[1]),l(c,_);else if(m>0){var w=y-f,b=y+f,M=.5,S=e[w],A=e[b];if(f>0&&(y===d-1||isNaN(A[0])||isNaN(A[1]))||0>=f&&(0===y||isNaN(A[0])||isNaN(A[1])))l(h,_);else{(isNaN(A[0])||isNaN(A[1]))&&(A=_),r.sub(u,A,S);var C,T;if("x"===g||"y"===g){var k="x"===g?0:1;C=Math.abs(_[k]-S[k]),T=Math.abs(_[k]-A[k])}else C=r.dist(_,S),T=r.dist(_,A);M=T/(T+C),s(h,_,u,-m*(1-M))}a(c,c,v),o(c,c,p),a(h,h,v),o(h,h,p),t[ci](c[0],c[1],h[0],h[1],_[0],_[1]),s(c,_,u,m*M)}else t[hi](_[0],_[1]);y+=f}return x}function i(t,e){var i=[1/0,1/0],n=[-(1/0),-(1/0)];if(e)for(var r=0;r<t[jr];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(li),r=t(vr),a=r.min,o=r.max,s=r.scaleAndAdd,l=r.copy,u=[],c=[],h=[];return{Polyline:n[Cr]({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null},style:{fill:null,stroke:"#000"},buildPath:function(t,n){for(var r=n[ti],a=0,o=r[jr],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[Cr]({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null},buildPath:function(t,n){for(var r=n[ti],a=n.stackedOnPoints,o=0,s=r[jr],l=n.smoothMonotone,u=i(r,n.smoothConstraint),c=i(a,n.smoothConstraint);s>o;){var h=e(t,r,o,s,s,1,u.min,u.max,n.smooth,l);e(t,a,o+h-1,s,h,-1,c.min,c.max,n.stackedOnSmooth,l),o+=h+1,t[ui]()}}})}}),e("echarts/chart/line/LineView",[Qr,Kr,ot,"../helper/Symbol","./lineAnimationDiff",xt,"./poly",at],function(t){function e(t,e){if(t[jr]===e[jr]){for(var i=0;i<t[jr];i++){var n=t[i],r=e[i];if(n[0]!==r[0]||n[1]!==r[1])return}return!0}}function i(t){return typeof t===Zr?t:t?.3:0}function n(t){var e=t.getGlobalExtent();if(t[rt]){var i=t[nt]()/2-1,n=e[1]>e[0]?1:-1;e[0]+=n*i,e[1]-=n*i}return e}function r(t){return t>=0?1:-1}function a(t,e){var i=t[tn](),n=t[ut](i),a=i.onZero?0:n.scale[lt]()[0],o=n.dim,s="x"===o||o===qn?1:0;return e[Et]([o],function(n,l){for(var u,c=e.stackedOn;c&&r(c.get(o,l))===r(n);){u=c;break}var h=[];return h[s]=e.get(i.dim,l),h[1-s]=u?u.get(o,l,!0):a,t[st](h)},!0)}function o(t,e){return null!=e[bi]?e[bi]:null!=e.name?t[_i](e.name):void 0}function s(t,e,i){var r=n(t[it]("x")),a=n(t[it]("y")),o=t[tn]().isHorizontal(),s=r[0],l=a[0],u=r[1]-s,c=a[1]-l;i.get("clipOverflow")||(o?(l-=c,c*=3):(s-=u,u*=3));var h=new p.Rect({shape:{x:s,y:l,width:u,height:c}});return e&&(h.shape[o?"width":ur]=0,p[Ee](h,{shape:{width:u,height:c}},i)),h}function l(t,e,i){var n=t.getAngleAxis(),r=t.getRadiusAxis(),a=r[lt](),o=n[lt](),s=Math.PI/180,l=new p[Ke]({shape:{cx:t.cx,cy:t.cy,r0:a[0],r:a[1],startAngle:-o[0]*s,endAngle:-o[1]*s,clockwise:n[et]}});return e&&(l.shape[ii]=-o[0]*s,p[Ee](l,{shape:{endAngle:-o[1]*s}},i)),l}function u(t,e,i){return"polar"===t.type?l(t,e,i):s(t,e,i)}var c=t(Kr),h=t(ot),d=t("../helper/Symbol"),f=t("./lineAnimationDiff"),p=t(xt),v=t("./poly"),m=t(at);return m[Cr]({type:"line",init:function(){var t=new p.Group,e=new h;this.group.add(e.group),this[tt]=e,this._lineGroup=t},render:function(t,n,r){var o=t[nn],s=this.group,l=t[En](),h=t[tr](Q),d=t[tr]("areaStyle.normal"),f=l[Et](l[zt],!0),p="polar"===o.type,v=this._coordSys,m=this[tt],g=this._polyline,y=this._polygon,x=this._lineGroup,_=t.get(Bi),w=!d.isEmpty(),b=a(o,l),M=t.get("showSymbol"),S=M&&!p&&!t.get("showAllSymbol")&&this._getSymbolIgnoreFunc(l,o),A=this._data;A&&A[xi](function(t,e){
t.__temp&&(s[Pi](t),A[Dt](e,null))}),M||m[Pi](),s.add(x),g&&v.type===o.type?(w&&!y?y=this._newPolygon(f,b,o,_):y&&!w&&(x[Pi](y),y=this._polygon=null),x.setClipPath(u(o,!1,t)),M&&m[gt](l,S),l[xi](function(t){t[Ei](!0)}),e(this._stackedOnPoints,b)&&e(this._points,f)||(_?this._updateAnimation(l,b,o,r):(g[ai]({points:f}),y&&y[ai]({points:f,stackedOnPoints:b})))):(M&&m[gt](l,S),g=this._newPolyline(f,o,_),w&&(y=this._newPolygon(f,b,o,_)),x.setClipPath(u(o,!0,t))),g[Ue](c[ir](h[J](),{stroke:l[Ot]("color"),lineJoin:"bevel"}));var C=t.get("smooth");if(C=i(t.get("smooth")),g[ai]({smooth:C,smoothMonotone:t.get("smoothMonotone")}),y){var T=l.stackedOn,k=0;if(y.style[xr]=.7,y[Ue](c[ir](d.getAreaStyle(),{fill:l[Ot]("color"),lineJoin:"bevel"})),T){var L=T[Qt];k=i(L.get("smooth"))}y[ai]({smooth:C,stackedOnSmooth:k,smoothMonotone:t.get("smoothMonotone")})}this._data=l,this._coordSys=o,this._stackedOnPoints=b,this._points=f},highlight:function(t,e,i,n){var r=t[En](),a=o(r,n);if(null!=a&&a>=0){var s=r[wi](a);if(!s){var l=r[zt](a);s=new d(r,a,i),s[Cn]=l,s.setZ(t.get(Ae),t.get("z")),s[Vi]=isNaN(l[0])||isNaN(l[1]),s.__temp=!0,r[Dt](a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s[ee]()}else m[Jr][ee].call(this,t,e,i,n)},downplay:function(t,e,i,n){var r=t[En](),a=o(r,n);if(null!=a&&a>=0){var s=r[wi](a);s&&(s.__temp?(r[Dt](a,null),this.group[Pi](s)):s[te]())}else m[Jr][te].call(this,t,e,i,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup[Pi](e),e=new v[Ye]({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[Pi](i),i=new v[$e]({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_getSymbolIgnoreFunc:function(t,e){var i=e.getAxesByScale(On)[0];return i&&i.isLabelIgnored?c.bind(i.isLabelIgnored,i):void 0},_updateAnimation:function(t,e,i,n){var r=this._polyline,a=this._polygon,o=t[Qt],s=f(this._data,t,this._stackedOnPoints,e,this._coordSys,i);r.shape[ti]=s.current,p[Ne](r,{shape:{points:s.next}},o),a&&(a[ai]({points:s.current,stackedOnPoints:s.stackedOnCurrent}),p[Ne](a,{shape:{points:s.next,stackedOnPoints:s.stackedOnNext}},o));for(var l=[],u=s.status,c=0;c<u[jr];c++){var h=u[c].cmd;if("="===h){var d=t[wi](u[c].idx1);d&&l.push({el:d,ptIdx:c})}}r.animators&&r.animators[jr]&&r.animators[0].during(function(){for(var t=0;t<l[jr];t++){var e=l[t].el;e.attr(Cn,r.shape[ti][l[t].ptIdx])}})},remove:function(t){this._lineGroup[Ai](),this[tt][Pi](!0),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}})}),e("echarts/visual/symbol",[Qr],function(t){return function(t,e,i,n,r){n.eachRawSeriesByType(t,function(t){var r=t[En](),a=t.get(pt)||e,o=t.get(vt);r[ve]({legendSymbol:i||a,symbol:a,symbolSize:o}),n[pe](t)||(typeof o===Br&&r.each(function(e){var i=t[Rn](e),n=t[Pn](e);r[fe](e,vt,o(i,n))}),r.each(function(t){var e=r[In](t),i=e.get(pt,!0),n=e.get(vt,!0);null!=i&&r[fe](t,pt,i),null!=n&&r[fe](t,vt,n)}))})}}),e("echarts/layout/points",[Qr],function(t){return function(t,e,i){e[de](t,function(t){var e=t[En](),i=t[nn],n=i[en];e.each(n,function(t,n,r){var a;a=isNaN(t)||isNaN(n)?[NaN,NaN]:i[st]([t,n]),e[It](r,a)},!0)})}}),e("echarts/chart/line",[Qr,Kr,K,"./line/LineSeries","./line/LineView",$,Y],function(t){var e=t(Kr),i=t(K);t("./line/LineSeries"),t("./line/LineView"),i[Xt]("chart",e.curry(t($),"line",ft,"line")),i[Yt](e.curry(t(Y),"line"))}),e("echarts/scale/Scale",[Qr,jn],function(t){function e(){this._extent=[1/0,-(1/0)],this._interval=0,this.init&&this.init.apply(this,arguments)}var i=t(jn),n=e[Jr];return n.parse=function(t){return t},n[vi]=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[X]=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},n[lt]=function(){return this._extent.slice()},n[j]=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[U](),i=0;i<e[jr];i++)t.push(this[q](e[i]));return t},i[Tr](e),i[Sr](e,{registerWhenExtend:!0}),e}),e("echarts/scale/Ordinal",[Qr,Kr,"./Scale"],function(t){var e=t(Kr),i=t("./Scale"),n=i[Jr],r=i[Cr]({type:"ordinal",init:function(t,e){this._data=t,this._extent=e||[0,t[jr]-1]},parse:function(t){return typeof t===Fr?e[Hr](this._data,t):Math.round(t)},contain:function(t){return t=this.parse(t),n[vi].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[lr]=function(){return new r},r}),e("echarts/scale/Interval",[Qr,"../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[Cr]({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[Jr][j].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[jr]>r)return[];i[1]>a[1]&&n.push(i[1])}return n},getTicksLabels:function(){for(var t=[],e=this[U](),i=0;i<e[jr];i++)t.push(this[q](e[i]));return t},getLabel:function(t){return i[rn](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 l=[e.round(a(i[0]/o)*o),e.round(r(i[1]/o)*o)];this._interval=o,this._niceExtent=l}},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 l=this._interval;i||(o[0]=e.round(r(o[0]/l)*l)),n||(o[1]=e.round(a(o[1]/l)*l))}});return o[lr]=function(){return new o},o}),e("echarts/scale/Time",[Qr,Kr,"../util/number","../util/format","./Interval"],function(t){var e=t(Kr),i=t("../util/number"),n=t("../util/format"),r=t("./Interval"),a=r[Jr],o=Math.ceil,s=Math.floor,l=864e5,u=function(t,e,i,n){for(;n>i;){var r=i+n>>>1;t[r][2]<e?i=r+1:n=r}return i},c=r[Cr]({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]-=l,r[1]+=l),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]-l}this.niceTicks(t,e,n);var u=this._interval;e||(r[0]=i.round(s(r[0]/u)*u)),n||(r[1]=i.round(o(r[1]/u)*u))},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0],n=i/t,r=h[jr],a=u(h,n,0,r),l=h[Math.min(a,r-1)],c=l[2],d=[o(e[0]/c)*c,s(e[1]/c)*c];this._stepLvl=l,this._interval=c,this._niceExtent=d},parse:function(t){return+i.parseDate(t)}});e.each([vi,"normalize"],function(t){c[Jr][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,l],["week",7,7*l],["month",1,31*l],["quarter",3,380*l/4],["half-year",6,380*l/2],["year",1,380*l]];return c[lr]=function(){return new c},c}),e("echarts/scale/Log",[Qr,Kr,"./Scale","../util/number","./Interval"],function(t){var e=t(Kr),i=t("./Scale"),n=t("../util/number"),r=t("./Interval"),a=i[Jr],o=r[Jr],s=Math.floor,l=Math.ceil,u=Math.pow,c=10,h=Math.log,d=i[Cr]({type:"log",getTicks:function(){return e.map(o[U].call(this),function(t){return n.round(u(c,t))})},getLabel:o[q],scale:function(t){return t=a.scale.call(this,t),u(c,t)},setExtent:function(t,e){t=h(t)/h(c),e=h(e)/h(c),o[j].call(this,t,e)},getExtent:function(){var t=a[lt].call(this);return t[0]=u(c,t[0]),t[1]=u(c,t[1]),t},unionExtent:function(t){t[0]=h(t[0])/h(c),t[1]=h(t[1])/h(c),a[X].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=u(10,s(h(i/t)/Math.LN10)),a=t/i*r;.5>=a&&(r*=10);var o=[n.round(l(e[0]/r)*r),n.round(s(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},niceExtent:o.niceExtent});return e.each([vi,"normalize"],function(t){d[Jr][t]=function(e){return e=h(e)/h(c),a[t].call(this,e)}}),d[lr]=function(){return new d},d}),e("echarts/coord/axisHelper",[Qr,"../scale/Ordinal","../scale/Interval","../scale/Time","../scale/Log","../scale/Scale","../util/number",Kr,or],function(t){var e=t("../scale/Ordinal"),i=t("../scale/Interval");t("../scale/Time"),t("../scale/Log");var n=t("../scale/Scale"),r=t("../util/number"),a=t(Kr),o=t(or),s={};return s[W]=function(t,e){var i=t.scale;if(i.type!==On){var n=e.get("min"),o=e.get("max"),s=!e.get("scale"),l=e.get(H);a[Or](l)||(l=[l||0,l||0]),l[0]=r[Rr](l[0],1),l[1]=r[Rr](l[1],1);var u=i[lt](),c=u[1]-u[0],h=!0,d=!0;null==n&&(n=u[0]-l[0]*c,h=!1),null==o&&(o=u[1]+l[1]*c,d=!1),"dataMin"===n&&(n=u[0]),"dataMax"===o&&(o=u[1]),s&&(n>0&&o>0&&!h&&(n=0),0>n&&0>o&&!d&&(o=0)),i[j](n,o),i.niceExtent(e.get(F),h,d);var f=e.get(Z);null!=f&&i.setInterval&&i.setInterval(f)}},s[G]=function(t,r){if(r=r||t.get("type"))switch(r){case At:return new e(t[St](),[1/0,-(1/0)]);case"value":return new i;default:return(n[Mr](r)||i)[lr](t)}},s.ifAxisCrossZero=function(t){var e=t.scale[lt](),i=e[0],n=e[1];return!(i>0&&n>0||0>i&&0>n)},s.getAxisLabelInterval=function(t,e,i,n){for(var r,a=0,s=0,l=0;l<t[jr];l++){var u=t[l],c=o[Jn](e[l],i,Vr,"top");c[n?"x":"y"]+=u,c[n?"width":ur]*=1.5,r?r[be](c)?(s++,a=Math.max(a,s)):(r.union(c),s=0):r=c.clone()}return a},s[B]=function(t,e){var i=t.scale,n=i.getTicksLabels(),r=i[U]();return typeof e===Fr?(e=function(t){return function(e){return t[Nr]("{value}",e)}}(e),a.map(n,e)):typeof e===Br?a.map(r,function(n,r){return e(t.type===At?i[q](n):n,r)},this):n},s}),e("echarts/coord/cartesian/Cartesian",[Qr,Kr],function(t){function e(t){return this._axes[t]}var i=t(Kr),n=function(t){this._axes={},this._dimList=[],this.name=t||""};return n[Jr]={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[Lr](),i[$r](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,N)},coordToData:function(t){return this._dataCoordConvert(t,E)},_dataCoordConvert:function(t,e){for(var i=this._dimList,n=t instanceof Array?[]:{},r=0;r<i[jr];r++){var a=i[r],o=this._axes[a];n[a]=o[e](t[a])}return n}},n}),e("echarts/coord/cartesian/Cartesian2D",[Qr,Kr,"./Cartesian"],function(t){function e(t){n.call(this,t)}var i=t(Kr),n=t("./Cartesian");return e[Jr]={constructor:e,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale(On)[0]||this.getAxesByScale("time")[0]||this[it]("x")},containPoint:function(t){var e=this[it]("x"),i=this[it]("y");return e[vi](e.toLocalCoord(t[0]))&&i[vi](i.toLocalCoord(t[1]))},containData:function(t){return this[it]("x").containData(t[0])&&this[it]("y").containData(t[1])},dataToPoints:function(t,e){return t[Et](["x","y"],function(t,e){return this[st]([t,e])},e,this)},dataToPoint:function(t,e){var i=this[it]("x"),n=this[it]("y");return[i.toGlobalCoord(i[N](t[0],e)),n.toGlobalCoord(n[N](t[1],e))]},pointToData:function(t,e){var i=this[it]("x"),n=this[it]("y");return[i[E](i.toLocalCoord(t[0]),e),n[E](n.toLocalCoord(t[1]),e)]},getOtherAxis:function(t){return this[it]("x"===t.dim?"y":"x")}},i[Ar](e,n),e}),e("echarts/coord/Axis",[Qr,"../util/number",Kr],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[Er],r=t(Kr),a=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this[et]=!1,this[rt]=!1};return a[Jr]={constructor:a,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[vi](this[N](t))},getExtent:function(){var t=this._extent.slice();return t},getPixelPrecision:function(t){return i[Dr](t||this.scale[lt](),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 r=this[lt](),a=this.scale;return this[rt]&&a.type===On&&e(r,a.count()),n(t,[0,1],r,i)},coordToData:function(t,i){var r=this[lt]();this[rt]&&e(r,this.scale.count());var a=n(t,r,[0,1],i);return this.scale.scale(a)},getTicksCoords:function(){if(this[rt]){for(var t=this.getBands(),e=[],i=0;i<t[jr];i++)e.push(t[i][0]);return t[i-1]&&e.push(t[i-1][1]),e}return r.map(this.scale[U](),this[N],this)},getLabelsCoords:function(){if(this[rt]){for(var t,e=this.getBands(),i=[],n=0;n<e[jr];n++)t=e[n],i.push((t[0]+t[1])/2);return i}return r.map(this.scale[U](),this[N],this)},getBands:function(){for(var t=this[lt](),e=[],i=this.scale.count(),n=t[0],r=t[1],a=r-n,o=0;i>o;o++)e.push([a*o/i+n,a*(o+1)/i+n]);return e},getBandWidth:function(){var t=this._extent,e=this.scale[lt](),i=e[1]-e[0]+(this[rt]?1:0),n=Math.abs(t[1]-t[0]);return Math.abs(n)/i}},a}),e("echarts/coord/cartesian/axisLabelInterval",[Qr,Kr,"../axisHelper"],function(t){var e=t(Kr),i=t("../axisHelper");return function(t){var n=t.model,r=n[tr](O),a=r.get(Z);return t.type!==At||"auto"!==a?"auto"===a?0:a:i.getAxisLabelInterval(e.map(t.scale[U](),t[N],t),n[B](),r[tr](Qn)[Kn](),t.isHorizontal())}}),e("echarts/coord/cartesian/Axis2D",[Qr,Kr,"../Axis","./axisLabelInterval"],function(t){var e=t(Kr),i=t("../Axis"),n=t("./axisLabelInterval"),r=function(t,e,n,r,a){i.call(this,t,e,n),this.type=r||"value",this[Cn]=a||Ir};return r[Jr]={constructor:r,index:0,onZero:!1,model:null,isHorizontal:function(){var t=this[Cn];return"top"===t||t===Ir},getGlobalExtent:function(){var t=this[lt]();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===At){var e=this.getLabelInterval();return typeof e===Br&&!e(t,this.scale[q](t))||t%(e+1)}},toLocalCoord:null,toGlobalCoord:null},e[Ar](r,i),r}),e("echarts/coord/axisDefault",[Qr,Kr],function(t){var e=t(Kr),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[ir]({boundaryGap:[0,0],splitNumber:5},i),a=e[ir]({scale:!0,min:"dataMin",max:"dataMax"},r),o=e[ir]({},r);return o.scale=!0,{categoryAxis:n,valueAxis:r,timeAxis:a,logAxis:o}}),e("echarts/coord/axisModelCreator",[Qr,"./axisDefault",Kr,"../model/Component","../util/layout"],function(t){var e=t("./axisDefault"),i=t(Kr),n=t("../model/Component"),r=t("../util/layout"),a=["value",At,"time","log"];return function(t,o,s,l){i.each(a,function(n){o[Cr]({type:t+"Axis."+n,mergeDefaultAndTheme:function(e,a){var o=this.layoutMode,l=o?r.getLayoutParams(e):{},u=a.getTheme();i.merge(e,u.get(n+"Axis")),i.merge(e,this.getDefaultOption()),e.type=s(t,e),o&&r.mergeLayoutParam(e,l,o)},defaultOption:i.mergeAll([{},e[n+"Axis"],l],!0)})}),n[kn](t+"Axis",i.curry(s,t))}}),e("echarts/coord/axisModelCommonMixin",[Qr,Kr,"./axisHelper"],function(t){function e(t){return r[Ln](t)&&null!=t.value?t.value:t}function i(){return this.get("type")===At&&r.map(this.get("data"),e)}function n(){return a[B](this.axis,this.get("axisLabel.formatter"))}var r=t(Kr),a=t("./axisHelper");return{getFormattedLabels:n,getCategories:i}}),e("echarts/coord/cartesian/AxisModel",[Qr,R,Kr,"../axisModelCreator","../axisModelCommonMixin"],function(t){function e(t,e){return e.type||(e.data?At:"value")}var i=t(R),n=t(Kr),r=t("../axisModelCreator"),a=i[Cr]({type:"cartesian2dAxis",axis:null,setNeedsCrossZero:function(t){this[Un].scale=!t},setMin:function(t){this[Un].min=t},setMax:function(t){this[Un].max=t}});n.merge(a[Jr],t("../axisModelCommonMixin"));var o={gridIndex:0};return r("x",a,e,o),r("y",a,e,o),a}),e("echarts/coord/cartesian/GridModel",[Qr,"./AxisModel",R],function(t){t("./AxisModel");var e=t(R);return e[Cr]({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",[Qr,"exports","module",V,z,Kr,"./Cartesian2D","./Axis2D","./GridModel",Ct],function(t,e){function i(t,e,i){return i[on]("grid",t.get("gridIndex"))===e}function n(t){for(var e,i=t.model,n=i[B](),r=0;r<n[jr];r++)if(!t.isLabelIgnored(r)){var a=i.getTextRect(n[r]);e?e.union(a):e=a}return e}function r(t,e,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,i)}function a(t,e){var i=t[lt](),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 o=t(V),s=t(z),l=t(Kr),u=t("./Cartesian2D"),c=t("./Axis2D"),h=l.each,d=s.ifAxisCrossZero,f=s[W];t("./GridModel");var p=r[Jr];return p.type="grid",p[I]=function(){return this._rect},p[Me]=function(t,e){function i(){h(s,function(t){var e=t.isHorizontal(),i=e?[0,r.width]:[0,r[ur]],n=t[et]?1:0;t[j](i[n],i[1-n]),a(t,e?r.x:r.y)})}var r=o[wn](t[P](),{width:e[cn](),height:e[un]()});this._rect=r;var s=this._axesList;i(),t.get("containLabel")&&(h(s,function(t){if(!t.model.get("axisLabel.inside")){var e=n(t);if(e){var i=t.isHorizontal()?ur:"width",a=t.model.get("axisLabel.margin");r[i]-=e[i]+a,"top"===t[Cn]?r.y+=e[ur]+a:"left"===t[Cn]&&(r.x+=e.width+a)}}}),i())},p[it]=function(t,e){if(null!=e){var i=t+e;return this._axesMap[i]}for(var n=this._axesList,r=0;r<n[jr];r++)if(n[r].dim===t)return n[r]},p.getCartesian=function(t,e){var i="x"+t+"y"+e;return this._coordsMap[i]},p._initCartesian=function(t,e,n){function r(t){var e=l[t];for(var i in e){var n=e[i];if(n&&(n.type===At||!d(n)))return!0}return!1}function a(n){return function(r,a){if(i(r,t,e)){var u=r.get(Cn);"x"===n?("top"!==u&&u!==Ir&&(u=Ir),o[u]&&(u="top"===u?Ir:"top")):("left"!==u&&"right"!==u&&(u="left"),o[u]&&(u="left"===u?"right":"left")),o[u]=!0;var h=new c(n,s[G](r),[0,0],r.get("type"),u),d=h.type===At;h[rt]=d&&r.get(H),h[et]=r.get(et),h.onZero=r.get("axisLine.onZero"),r.axis=h,h.model=r,h.index=a,this._axesList.push(h),this._axesMap[n+a]=h,l[n][a]=h,p[n]++}}}var o={left:!1,right:!1,top:!1,bottom:!1},l={x:{},y:{}},p={x:0,y:0};return e[ie]("xAxis",a("x"),this),e[ie]("yAxis",a("y"),this),p.x&&p.y?(h(l.x,function(t,e){h(l.y,function(i,n){var r="x"+e+"y"+n,a=new u(r);a.grid=this,this._coordsMap[r]=a,this._coordsList.push(a),a.addAxis(t),a.addAxis(i)},this)},this),this._updateCartesianFromSeries(e,t),h(l.x,function(t){f(t,t.model)}),h(l.y,function(t){f(t,t.model)}),h(l.x,function(t){r("y")&&(t.onZero=!1)}),void h(l.y,function(t){r("x")&&(t.onZero=!1)})):(this._axesMap={},void(this._axesList=[]))},p._updateCartesianFromSeries=function(t,e){function n(t,e,i,n){h(n[L](i),function(i){e.scale[X](t[Gt](i,e.scale.type!==On))})}t[he](function(r){if(r.get(nn)===D){var a=r.get("xAxisIndex"),o=r.get("yAxisIndex"),s=t[on]("xAxis",a),l=t[on]("yAxis",o);if(!i(s,e,t)||!i(l,e,t))return;var u=this.getCartesian(a,o),c=r[En]();"list"===c.type&&(n(c,u[it]("x"),"x",r),n(c,u[it]("y"),"y",r))}},this)},r[lr]=function(t,e){var i=[];return t[ie]("grid",function(n,a){var o=new r(n,t,e);o.name="grid_"+a,o[Me](n,e),n[nn]=o,i.push(o)}),t[he](function(e){if(e.get(nn)===D){var n=e.get("xAxisIndex"),r=t[on]("xAxis",n),a=i[r.get("gridIndex")];e[nn]=a.getCartesian(n,e.get("yAxisIndex"))}}),i},r[en]=u[Jr][en],t(Ct)[sn]("grid",r),r}),e("echarts/chart/bar/BarSeries",[Qr,bt,Mt],function(t){var e=t(bt),i=t(Mt);return e[Cr]({type:"series.bar",dependencies:["grid","polar"],getInitialData:function(t,e){return i(t.data,this,e)},getMarkerPosition:function(t){var e=this[nn];if(e){var i=e[st](t),n=this[En](),r=n[Vt](Qe),a=n[Vt]("size"),o=e[tn]().isHorizontal()?0:1;return i[o]+=r+a/2,i}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",[Qr,"../../model/mixin/makeStyleMapper"],function(t){return{getBarItemStyle:t("../../model/mixin/makeStyleMapper")([["fill","color"],[_r,"barBorderColor"],[wr,"barBorderWidth"],[xr],[yr],[gr],["shadowOffsetY"],[mr]])}}),e("echarts/chart/bar/BarView",[Qr,Kr,xt,k,"./barItemStyle",T],function(t){function e(t,e){var i=t.width>0?1:-1,n=t[ur]>0?1:-1;e=Math.min(e,Math.abs(t.width),Math.abs(t[ur])),t.x+=i*e/2,t.y+=n*e/2,t.width-=i*e,t[ur]-=n*e}var i=t(Kr),n=t(xt);return i[Cr](t(k)[Jr],t("./barItemStyle")),t(T)[jt]({type:"bar",render:function(t,e,i){var n=t.get(nn);return n===D&&this._renderOnCartesian(t,e,i),this.group},_renderOnCartesian:function(t,r,a){function o(r,a){var o=l[zt](r),s=l[In](r).get(p)||0;e(o,s);var u=new n.Rect({shape:i[Cr]({},o)});if(f){var c=u.shape,h=d?ur:"width",v={};c[h]=0,v[h]=o[h],n[a?Ne:Ee](u,{shape:v},t)}return u}var s=this.group,l=t[En](),u=this._data,c=t[nn],h=c[tn](),d=h.isHorizontal(),f=t.get(Bi),p=[ue,Gn,"barBorderWidth"];l.diff(u).add(function(t){if(l.hasValue(t)){var e=o(t);l[Dt](t,e),s.add(e)}})[Se](function(i,r){var a=u[wi](r);if(!l.hasValue(i))return void s[Pi](a);a||(a=o(i,!0));var c=l[zt](i),h=l[In](i).get(p)||0;e(c,h),n[Ne](a,{shape:c},t),l[Dt](i,a),s.add(a)})[Pi](function(e){var i=u[wi](e);i&&(i.style.text="",n[Ne](i,{shape:{width:0}},t,function(){s[Pi](i)}))})[ct](),this._updateStyle(t,l,d),this._data=l},_updateStyle:function(t,e,r){function a(t,e,i,r,a){n[Ze](t,e,i),t.text=r,"outside"===t[yi]&&(t[yi]=a)}e[xi](function(o,s){var l=e[In](s),u=e[Pt](s,"color"),c=e[zt](s),h=l[tr](C),d=l[tr](A)[dt]();o[ai]("r",h.get("barBorderRadius")||0),o[Ue](i[ir]({fill:u},h.getBarItemStyle()));var f=r?c[ur]>0?Ir:"top":c.width>0?"left":"right",p=l[tr](S),v=l[tr](M),m=o.style;p.get("show")?a(m,p,u,t[ht](s,Gn)||t[Rn](s),f):m.text="",v.get("show")?a(d,v,u,t[ht](s,Zn)||t[Rn](s),f):d.text="",n[We](o,d)})},remove:function(t,e){var i=this.group;t.get(Bi)?this._data&&this._data[xi](function(e){e.style.text="",n[Ne](e,{shape:{width:0}},t,function(){i[Pi](e)})}):i[Ai]()}})}),e("echarts/layout/barGrid",[Qr,Kr,"../util/number"],function(t){function e(t){return t.get("stack")||"__ec_stack_"+t[Nn]}function i(t,i){var n={};r.each(t,function(t,i){var r=t[nn],a=r[tn](),o=n[a.index]||{remainedWidth:a[nt](),autoWidthCount:0,categoryGap:"20%",gap:"30%",axis:a,stacks:{}},s=o.stacks;n[a.index]=o;var l=e(t);s[l]||o.autoWidthCount++,s[l]=s[l]||{width:0,maxWidth:0};var u=t.get("barWidth"),c=t.get("barMaxWidth"),h=t.get("barGap"),d=t.get("barCategoryGap");u&&!s[l].width&&(u=Math.min(o.remainedWidth,u),s[l].width=u,o.remainedWidth-=u),c&&(s[l].maxWidth=c),null!=h&&(o.gap=h),null!=d&&(o.categoryGap=d)});var a={};return r.each(n,function(t,e){a[e]={};var i=t.stacks,n=t.axis,s=n[nt](),l=o(t.categoryGap,s),u=o(t.gap,1),c=t.remainedWidth,h=t.autoWidthCount,d=(c-l)/(h+(h-1)*u);d=Math.max(d,0),r.each(i,function(t,e){var i=t.maxWidth;!t.width&&i&&d>i&&(i=Math.min(i,c),c-=i,t.width=i,h--)}),d=(c-l)/(h+(h-1)*u),d=Math.max(d,0);var f,p=0;r.each(i,function(t,e){t.width||(t.width=d),f=t,p+=t.width*(1+u)}),f&&(p-=f.width*u);var v=-p/2;r.each(i,function(t,i){a[e][i]=a[e][i]||{offset:v,width:t.width},v+=t.width*(1+u)})}),a}function n(t,n,a){var o=i(r[$r](n.getSeriesByType(t),function(t){return!n[pe](t)&&t[nn]&&t[nn].type===D})),s={};n[de](t,function(t){var i=t[En](),n=t[nn],r=n[tn](),a=e(t),l=o[r.index][a],u=l[Qe],c=l.width,h=n[ut](r),d=t.get("barMinHeight")||0,f=r.onZero?h.toGlobalCoord(h[N](0)):h.getGlobalExtent()[0],p=n.dataToPoints(i,!0);s[a]=s[a]||[],i[Rt]({offset:u,size:c}),i.each(h.dim,function(t,e){if(!isNaN(t)){s[a][e]||(s[a][e]={p:f,n:f});var n,r,o,l,v=t>=0?"p":"n",m=p[e],g=s[a][e][v];h.isHorizontal()?(n=g,r=m[1]+u,o=m[0]-g,l=c,Math.abs(o)<d&&(o=(0>o?-1:1)*d),s[a][e][v]+=o):(n=m[0]+u,r=g,o=c,l=m[1]-g,Math.abs(l)<d&&(l=(0>=l?-1:1)*d),s[a][e][v]+=l),i[It](e,{x:n,y:r,width:o,height:l})}},!0)},this)}var r=t(Kr),a=t("../util/number"),o=a[Rr];return n}),e("echarts/chart/bar",[Qr,Kr,"../coord/cartesian/Grid","./bar/BarSeries","./bar/BarView","../layout/barGrid",K],function(t){var e=t(Kr);t("../coord/cartesian/Grid"),t("./bar/BarSeries"),t("./bar/BarView");var i=t("../layout/barGrid"),n=t(K);n[Yt](e.curry(i,"bar")),n[Xt]("chart",function(t){t[de]("bar",function(t){var e=t[En]();e[ve]("legendSymbol","roundRect")})})}),e("echarts/component/axis/AxisBuilder",[Qr,Kr,xt,k,yt],function(t){function e(t,e,i){var n,r,a=s(e-t[$i]);return l(a)?(r=i>0?"top":Ir,n=Vr):l(a-u)?(r=i>0?Ir:"top",n=Vr):(r=zr,n=a>0&&u>a?i>0?"right":"left":i>0?"left":"right"),{rotation:a,textAlign:n,textBaseline:r}}function i(t,e,i){var n,r,a=s(-t[$i]),o=i[0]>i[1],c="start"===e&&!o||"start"!==e&&o;return l(a-u/2)?(r=c?Ir:"top",n=Vr):l(a-1.5*u)?(r=c?"top":Ir,n=Vr):(r=zr,n=1.5*u>a&&a>u/2?c?"left":"right":c?"right":"left"),{rotation:a,textAlign:n,textBaseline:r}}var n=t(Kr),r=t(xt),a=t(k),o=t(yt),s=o.remRadian,l=o.isRadianAroundZero,u=Math.PI,c=function(t,e){this.opt=e,this.axisModel=t,n[ir](e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new r.Group({position:e[Cn].slice(),rotation:e[$i]})};c[Jr]={constructor:c,hasBuilder:function(t){return!!h[t]},add:function(t){h[t].call(this)},getGroup:function(){return this.group}};var h={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var i=this.axisModel.axis[lt]();this.group.add(new r.Line({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:n[Cr]({lineCap:"round"},e[tr]("axisLine.lineStyle")[J]()),strokeContainThreshold:t.strokeContainThreshold,silent:!!t[Ce],z2:1}))}},axisTick:function(){var t=this.axisModel;if(t.get("axisTick.show")){for(var e=t.axis,i=t[tr](b),n=this.opt,a=i[tr](ce),o=i.get(jr),s=f(i,n.labelInterval),l=e.getTicksCoords(),u=[],c=0;c<l[jr];c++)if(!d(e,c,s)){var h=l[c];u.push(new r.Line(r.subPixelOptimizeLine({shape:{x1:h,y1:0,x2:h,y2:n.tickDirection*o},style:{lineWidth:a.get("width")},silent:!0})))}this.group.add(r.mergePath(u,{style:a[J](),silent:!0}))}},axisLabel:function(){function t(t,e){var i=t&&t[Jn]().clone(),n=e&&e[Jn]().clone();return i&&n?(i[cr](t[qi]()),n[cr](e[qi]()),i[be](n)):void 0}var i=this.axisModel;if(i.get("axisLabel.show")){var n=this.opt,o=i.axis,s=i[tr](O),l=s[tr](Qn),c=s.get(_n),h=o.scale[U](),f=i[B](),p=n.labelRotation;null==p&&(p=s.get(Hi)||0),p=p*u/180;for(var v=e(n,p,n.labelDirection),m=i.get("data"),g=[],y=0;y<h[jr];y++)if(!d(o,y,n.labelInterval)){var x=l;m&&m[y]&&m[y][Qn]&&(x=new a(m[y][Qn],l,i[er]));var _=o[N](h[y]),w=[_,n.labelOffset+n.labelDirection*c],b=new r.Text({style:{text:f[y],textAlign:x.get("align",!0)||v[gi],textBaseline:x.get($n,!0)||v[mi],textFont:x[Kn](),fill:x[Ge]()},position:w,rotation:v[$i],silent:!0,z2:10});g.push(b),this.group.add(b)}if(o.type!==At){if(i.get("min")){var M=g[0],S=g[1];t(M,S)&&(M[Vi]=!0)}if(i.get("max")){var A=g[g[jr]-1],C=g[g[jr]-2];t(C,A)&&(A[Vi]=!0)}}}},axisName:function(){var t=this.opt,n=this.axisModel,a=this.opt.axisName;if(null==a&&(a=n.get("name")),a){var o,s=n.get("nameLocation"),l=t.nameDirection,u=n[tr]("nameTextStyle"),c=n.get("nameGap")||0,h=this.axisModel.axis[lt](),d=h[0]>h[1]?-1:1,f=["start"===s?h[0]-d*c:"end"===s?h[1]+d*c:(h[0]+h[1])/2,s===zr?t.labelOffset+l*c:0];o=s===zr?e(t,t[$i],l):i(t,s,h),this.group.add(new r.Text({style:{text:a,textFont:u[Kn](),fill:u[Ge]()||n.get("axisLine.lineStyle.color"),textAlign:o[gi],textBaseline:o[mi]},position:f,rotation:o[$i],silent:!0,z2:1}))}}},d=c.ifIgnoreOnTick=function(t,e,i){var n,r=t.scale;return r.type===On&&(typeof i===Br?(n=r[U]()[e],!i(n,r[q](n))):e%(i+1))},f=c.getInterval=function(t,e){var i=t.get(Z);return(null==i||"auto"==i)&&(i=e),i};return c}),e("echarts/component/axis/AxisView",[Qr,Kr,xt,"./AxisBuilder",T],function(t){function e(t,e){function i(t,e){var i=n[it](t);return i.toGlobalCoord(i[N](0))}var n=t[nn],r=e.axis,a={},o=r[Cn],s=r.onZero?"onZero":o,l=r.dim,u=n[I](),c=[u.x,u.x+u.width,u.y,u.y+u[ur]],h={x:{top:c[2],bottom:c[3]},y:{left:c[0],right:c[1]}};h.x.onZero=Math.max(Math.min(i("y"),h.x[Ir]),h.x.top),h.y.onZero=Math.max(Math.min(i("x"),h.y.right),h.y.left),a[Cn]=["y"===l?h.y[s]:c[0],"x"===l?h.x[s]:c[3]];var d={x:0,y:1};a[$i]=Math.PI/2*d[l];var f={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=f[o],r.onZero&&(a.labelOffset=h[l][o]-h[l].onZero),e[tr](b).get(nr)&&(a.tickDirection=-a.tickDirection),e[tr](O).get(nr)&&(a.labelDirection=-a.labelDirection);var p=e[tr](O).get(Hi);return a.labelRotation="top"===s?-p:p,a.labelInterval=r.getLabelInterval(),a.z2=1,a}var i=t(Kr),n=t(xt),r=t("./AxisBuilder"),a=r.ifIgnoreOnTick,o=r.getInterval,s=[w,O,b,"axisName"],l=["splitLine","splitArea"],u=t(T)[Wt]({type:"axis",render:function(t,n){if(this.group[Ai](),t.get("show")){var a=n[on]("grid",t.get("gridIndex")),o=e(a,t),u=new r(t,o);i.each(s,u.add,u),this.group.add(u.getGroup()),i.each(l,function(e){t.get(e+".show")&&this["_"+e](t,a,o.labelInterval)},this)}},_splitLine:function(t,e,i){var r=t.axis,s=t[tr]("splitLine"),l=s[tr](ce),u=l.get("width"),c=l.get("color"),h=o(s,i);c=c instanceof Array?c:[c];for(var d=e[nn][I](),f=r.isHorizontal(),p=[],v=0,m=r.getTicksCoords(),g=[],y=[],x=0;x<m[jr];x++)if(!a(r,x,h)){var _=r.toGlobalCoord(m[x]);f?(g[0]=_,g[1]=d.y,y[0]=_,y[1]=d.y+d[ur]):(g[0]=d.x,g[1]=_,y[0]=d.x+d.width,y[1]=_);var w=v++%c[jr];p[w]=p[w]||[],p[w].push(new n.Line(n.subPixelOptimizeLine({shape:{x1:g[0],y1:g[1],x2:y[0],y2:y[1]},style:{lineWidth:u},silent:!0})))}for(var x=0;x<p[jr];x++)this.group.add(n.mergePath(p[x],{style:{stroke:c[x%c[jr]],lineDash:l.getLineDash(),lineWidth:u},silent:!0}))},_splitArea:function(t,e,i){var r=t.axis,s=t[tr]("splitArea"),l=s.get("areaStyle.color"),u=e[nn][I](),c=r.getTicksCoords(),h=r.toGlobalCoord(c[0]),d=r.toGlobalCoord(c[0]),f=[],p=0,v=o(s,i);l=l instanceof Array?l:[l];for(var m=1;m<c[jr];m++)if(!a(r,m,v)){var g,y,x,_,w=r.toGlobalCoord(c[m]);r.isHorizontal()?(g=h,y=u.y,x=w-g,_=u[ur]):(g=u.x,y=d,x=u.width,_=w-y);var b=p++%l[jr];f[b]=f[b]||[],f[b].push(new n.Rect({shape:{x:g,y:y,width:x,height:_},silent:!0})),h=g+x,d=y+_}for(var m=0;m<f[jr];m++)this.group.add(n.mergePath(f[m],{style:{fill:l[m%l[jr]]},silent:!0}))}});u[Cr]({type:"xAxis"}),u[Cr]({type:"yAxis"})}),e("echarts/component/axis",[Qr,"../coord/cartesian/AxisModel","./axis/AxisView"],function(t){t("../coord/cartesian/AxisModel"),t("./axis/AxisView")}),e("echarts/component/grid",[Qr,"../util/graphic",Kr,"../coord/cartesian/Grid","./axis",K],function(t){var e=t("../util/graphic"),i=t(Kr);t("../coord/cartesian/Grid"),t("./axis"),t(K)[Wt]({type:"grid",render:function(t,n){this.group[Ai](),t.get("show")&&this.group.add(new e.Rect({shape:t[nn][I](),style:i[ir]({fill:t.get(xe)},t[dt]()),silent:!0}))}})}),e("echarts/chart/helper/dataSelectableMixin",[Qr,Kr],function(t){
var e=t(Kr);return{updateSelectedMap:function(){var t=this[Un];this._dataOptMap=e[Yr](t.data,function(t,e){return t[e.name]=e,t},{})},select:function(t){var i=this._dataOptMap,n=i[t],r=this.get(_);r===x&&e.each(i,function(t){t[y]=!1}),n&&(n[y]=!0)},unSelect:function(t){var e=this._dataOptMap[t];e&&(e[y]=!1)},toggleSelected:function(t){var e=this._dataOptMap[t];return null!=e?(this[e[y]?"unSelect":"select"](t),e[y]):void 0},isSelected:function(t){var e=this._dataOptMap[t];return e&&e[y]}}}),e("echarts/chart/pie/PieSeries",[Qr,Lt,Kr,Tt,kt,"../helper/dataSelectableMixin",T],function(t){var e=t(Lt),i=t(Kr),n=t(Tt),r=t(kt),a=t("../helper/dataSelectableMixin"),o=t(T)[qt]({type:"series.pie",init:function(t){this[g]("init",arguments),this[m]=function(){return this._dataBeforeProcessed},this.updateSelectedMap(),this._defaultLabelLine(t)},mergeOption:function(t){this.$superCall(mn,t),this.updateSelectedMap()},getInitialData:function(t,i){var n=r(["value"],t.data),a=new e(n,this);return a[Ft](t.data),a},getDataParams:function(t){var e=this._data,i=this.$superCall(Pn,t);return i.percent=+(e.get("value",t)/e[Bt]("value")*100)[Pr](2),i.$vars.push("percent"),i},_defaultLabelLine:function(t){n[Fn](t.labelLine,["show"]);var e=t.labelLine[Gn],i=t.labelLine[Zn];e.show=e.show&&t.label[Gn].show,i.show=i.show&&t.label[Zn].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",[Qr,xt,Kr,at],function(t){function e(t,e,n,r){var a=e[En](),o=this[bi],s=a[zn](o),l=e.get("selectedOffset");r[ln]({type:"pieToggleSelect",from:t,name:s,seriesId:e.id}),a.each(function(t){i(a[wi](t),a[zt](t),e.isSelected(a[zn](t)),l,n)})}function i(t,e,i,n,r){var a=(e[ni]+e[ii])/2,o=Math.cos(a),s=Math.sin(a),l=i?n:0,u=[o*l,s*l];r?t[Oi]().when(200,{position:u}).start("bounceOut"):t.attr(Cn,u)}function n(t,e){function i(){o[Vi]=o.hoverIgnore,s[Vi]=s.hoverIgnore}function n(){o[Vi]=o.normalIgnore,s[Vi]=s.normalIgnore}a.Group.call(this);var r=new a[Ke]({z2:2}),o=new a[Ye],s=new a.Text;this.add(r),this.add(o),this.add(s),this[gt](t,e,!0),this.on(Zn,i).on(Gn,n).on(He,i).on(Fe,n)}function r(t,e,i,n){var r=n[tr](Qn),a=n.get(Cn),o=a===nr||"inner"===a;return{fill:r[Ge]()||(o?"#fff":t[Pt](e,"color")),textFont:r[Kn](),text:t[Qt][ht](e,i)||t[zn](e)}}var a=t(xt),o=t(Kr),s=n[Jr];s[gt]=function(t,e,n){function r(){l[Ei](!0),l[Be]({shape:{r:h.r+10}},300,"elasticOut")}function s(){l[Ei](!0),l[Be]({shape:{r:h.r}},300,"elasticOut")}var l=this[An](0),u=t[Qt],c=t[In](e),h=t[zt](e),d=o[Cr]({},h);d.label=null,n?(l[ai](d),l.shape[ii]=h[ni],a[Ne](l,{shape:{endAngle:h[ii]}},u)):a[Ne](l,{shape:d},u);var f=c[tr](ue),p=t[Pt](e,"color");l[Ue](o[ir]({fill:p},f[tr](Gn)[dt]())),l[qe]=f[tr](Zn)[dt](),i(this,t[zt](e),c.get(y),u.get("selectedOffset"),u.get(Bi)),l.off(He).off(Fe).off(Zn).off(Gn),c.get("hoverAnimation")&&l.on(He,r).on(Fe,s).on(Zn,r).on(Gn,s),this._updateLabel(t,e),a[We](this)},s._updateLabel=function(t,e){var i=this[An](1),n=this[An](2),o=t[Qt],s=t[In](e),l=t[zt](e),u=l.label,c=t[Pt](e,"color");a[Ne](i,{shape:{points:u.linePoints||[[u.x,u.y],[u.x,u.y],[u.x,u.y]]}},o),a[Ne](n,{style:{x:u.x,y:u.y}},o),n.attr({style:{textAlign:u[gi],textBaseline:u[mi],textFont:u.font},rotation:u[$i],origin:[u.x,u.y],z2:10});var h=s[tr](S),d=s[tr](M),f=s[tr]("labelLine.normal"),p=s[tr]("labelLine.emphasis");n[Ue](r(t,e,Gn,h)),n[Vi]=n.normalIgnore=!h.get("show"),n.hoverIgnore=!d.get("show"),i[Vi]=i.normalIgnore=!f.get("show"),i.hoverIgnore=!p.get("show"),i[Ue]({stroke:c}),i[Ue](f[tr](ce)[J]()),n[qe]=r(t,e,Zn,d),i[qe]=p[tr](ce)[J]();var v=f.get("smooth");v&&v===!0&&(v=.4),i[ai]({smooth:v})},o[Ar](n,a.Group);var l=t(at)[Cr]({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 s=t[En](),l=this._data,u=this.group,c=i.get(Bi),h=!l,d=o.curry(e,this.uid,t,c,r),f=t.get(_);if(s.diff(l).add(function(t){var e=new n(s,t);h&&e[Tn](function(t){t[Ei](!0)}),f&&e.on("click",d),s[Dt](t,e),u.add(e)})[Se](function(t,e){var i=l[wi](e);i[gt](s,t),i.off("click"),f&&i.on("click",d),u.add(i),s[Dt](t,i)})[Pi](function(t){var e=l[wi](t);u[Pi](e)})[ct](),c&&h&&s.count()>0){var p=s[zt](0),v=Math.max(r[cn](),r[un]())/2,m=o.bind(u.removeClipPath,u);u.setClipPath(this._createClipPath(p.cx,p.cy,v,p[ni],p[ei],m,t))}this._data=s}},_createClipPath:function(t,e,i,n,r,o,s){var l=new a[Ke]({shape:{cx:t,cy:e,r0:0,r:i,startAngle:n,endAngle:n,clockwise:r}});return a[Ee](l,{shape:{endAngle:n+(r?1:-1)*Math.PI*2}},s,o),l}});return l}),e("echarts/action/createDataSelectAction",[Qr,K,Kr],function(t){var e=t(K),i=t(Kr);return function(t,n){i.each(n,function(i){i[Se]="updateView",e[$t](i,function(e,n){var r={};return n[ie]({mainType:"series",subType:t,query:e},function(t){t[i.method]&&t[i.method](e.name);var n=t[En]();n.each(function(e){var i=n[zn](e);r[i]=t.isSelected(i)||!1})}),{name:e.name,selected:r}})})}}),e("echarts/visual/dataColor",[Qr],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[pe](t)){var o=t[En]();o.each(function(t){var e=o[In](t),s=o[Vn](t),l=o[Pt](t,"color",!0);if(l)a[fe](s,"color",l);else{var u=r?r[s%r[jr]]:i[(s+n)%i[jr]],c=e.get(re)||u;a[fe](s,"color",c),o[fe](t,"color",c)}})}n+=a.count()})}}),e("echarts/chart/pie/labelLayout",[Qr,or],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][ur])return void l(a,n/2);l(i-1,n/2)}function l(e,i){for(var n=e;n>=0&&(t[n].y-=i,!(n>0&&t[n].y>t[n-1].y+t[n-1][ur]));n--);}t.sort(function(t,e){return t.y-e.y});for(var u,c=0,h=t[jr],d=[],f=[],p=0;h>p;p++)u=t[p].y-c,0>u&&s(p,h,-u,r),c=t[p].y+t[p][ur];0>o-c&&l(h-1,c-o);for(var p=0;h>p;p++)t[p].y>=i?f.push(t[p]):d.push(t[p])}function i(t,i,n,r,a,o){for(var s=[],l=[],u=0;u<t[jr];u++)t[u].x<i?s.push(t[u]):l.push(t[u]);e(s,i,n,r,-1,a,o),e(l,i,n,r,1,a,o);for(var u=0;u<t[jr];u++){var c=t[u].linePoints;c&&(t[u].x<i?c[2][0]=t[u].x+3:c[2][0]=t[u].x-3,c[1][1]=c[2][1]=t[u].y)}}var n=t(or);return function(t,e,r,a){var o,s,l=t[En](),u=[],c=!1;l.each(function(i){var r,a,h,d,f=l[zt](i),p=l[In](i),v=p[tr](S),m=v.get(Cn),g=p[tr]("labelLine.normal"),y=g.get(jr),x=g.get("length2"),_=(f[ni]+f[ii])/2,w=Math.cos(_),b=Math.sin(_);if(o=f.cx,s=f.cy,m===Vr)r=f.cx,a=f.cy,d=Vr;else{var M=m===nr||"inner"===m,A=(M?f.r/2*w:f.r*w)+o,C=(M?f.r/2*b:f.r*b)+s;if(y+=e-f.r,r=A+3*w,a=C+3*b,!M){var T=A+w*y,k=C+b*y,L=T+(0>w?-1:1)*x,D=k;r=L+(0>w?-5:5),a=D,h=[[A,C],[T,k],[L,D]]}d=M?Vr:w>0?"left":"right"}var P=zr,I=v[tr](Qn)[Kn](),z=v.get(Hi)?0>w?-_+Math.PI:-_:0,V=t[ht](i,Gn)||l[zn](i),R=n[Jn](V,I,d,P);c=!!z,f.label={x:r,y:a,height:R[ur],length:y,length2:x,linePoints:h,textAlign:d,textBaseline:P,font:I,rotation:z},u.push(f.label)}),!c&&t.get("avoidLabelOverlap")&&i(u,o,s,e,r,a)}}),e("echarts/chart/pie/pieLayout",[Qr,yt,"./labelLayout",Kr],function(t){var e=t(yt),i=e[Rr],n=t("./labelLayout"),r=t(Kr),a=2*Math.PI,o=Math.PI/180;return function(t,s,l){s[de](t,function(t){var s=t.get(Vr),u=t.get(qn);r[Or](u)||(u=[0,u]),r[Or](s)||(s=[s,s]);var c=l[cn](),h=l[un](),d=Math.min(c,h),f=i(s[0],c),p=i(s[1],h),v=i(u[0],d/2),m=i(u[1],d/2),g=t[En](),y=-t.get(ni)*o,x=t.get("minAngle")*o,_=g[Bt]("value"),w=Math.PI/(_||g.count())*2,b=t.get(ei),M=t.get("roseType"),S=g[Gt]("value");S[0]=0;var A=a,C=0,T=y,k=b?1:-1;if(g.each("value",function(t,i){var n;n="area"!==M?0===_?w:t*w:a/(g.count()||1),x>n?(n=x,A-=x):C+=t;var r=T+k*n;g[It](i,{angle:n,startAngle:T,endAngle:r,clockwise:b,cx:f,cy:p,r0:v,r:M?e[Er](t,S,[v,m]):m}),T=r},!0),a>A)if(.001>=A){var L=a/g.count();g.each(function(t){var e=g[zt](t);e[ni]=y+k*t*L,e[ii]=y+k*(t+1)*L})}else w=A/C,T=y,g.each("value",function(t,e){var i=g[zt](e),n=i.angle===x?x:t*w;i[ni]=T,i[ii]=T+k*n,T+=n});n(t,m,c,h)})}}),e("echarts/processor/dataFilter",[],function(){return function(t,e){var i=e[dn]({mainType:"legend"});i&&i[jr]&&e[de](t,function(t){var e=t[En]();e[Nt](function(t){for(var n=e[zn](t),r=0;r<i[jr];r++)if(!i[r].isSelected(n))return!1;return!0},this)},this)}}),e("echarts/chart/pie",[Qr,Kr,K,"./pie/PieSeries","./pie/PieView","../action/createDataSelectAction","../visual/dataColor","./pie/pieLayout","../processor/dataFilter"],function(t){var e=t(Kr),i=t(K);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[Xt]("chart",e.curry(t("../visual/dataColor"),"pie")),i[Yt](e.curry(t("./pie/pieLayout"),"pie")),i[Kt]($r,e.curry(t("../processor/dataFilter"),"pie"))}),e("echarts/chart/scatter/ScatterSeries",[Qr,Mt,bt],function(t){var e=t(Mt),i=t(bt);return i[Cr]({type:"series.scatter",dependencies:["grid","polar"],getInitialData:function(t,i){var n=e(t.data,this,i);return n},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,polarIndex:0,geoIndex:0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{normal:{opacity:.8}}}})}),e("echarts/chart/helper/LargeSymbolDraw",[Qr,xt,_t,Kr],function(t){function e(){this.group=new i.Group,this._symbolEl=new a({silent:!0})}var i=t(xt),n=t(_t),r=t(Kr),a=i[Xe]({shape:{points:null,sizes:null},symbolProxy:null,buildPath:function(t,e){for(var i=e[ti],n=e.sizes,r=this.symbolProxy,a=r.shape,o=0;o<i[jr];o++){var s=i[o],l=n[o];l[0]<4?t.rect(s[0]-l[0]/2,s[1]-l[1]/2,l[0],l[1]):(a.x=s[0]-l[0]/2,a.y=s[1]-l[1]/2,a.width=l[0],a[ur]=l[1],r[si](t,a))}}}),o=e[Jr];return o[gt]=function(t){this.group[Ai]();var e=this._symbolEl,i=t[Qt];e[ai]({points:t[Et](t[zt]),sizes:t[Et](function(e){var i=t[Pt](e,vt);return r[Or](i)||(i=[i,i]),i})}),e.symbolProxy=n[mt](t[Ot](pt),0,0,0,0),e[wt]=e.symbolProxy[wt],e[Ue](i[tr](C)[dt](["color"]));var a=t[Ot]("color");a&&e[wt](a),this.group.add(this._symbolEl)},o[Ci]=function(t){var e=t[En]();this._symbolEl[ai]({points:e[Et](e[zt])})},o[Pi]=function(){this.group[Ai]()},e}),e("echarts/chart/scatter/ScatterView",[Qr,ot,"../helper/LargeSymbolDraw",T],function(t){var e=t(ot),i=t("../helper/LargeSymbolDraw");t(T)[jt]({type:"scatter",init:function(){this._normalSymbolDraw=new e,this._largeSymbolDraw=new i},render:function(t,e,i){var n=t[En](),r=this._largeSymbolDraw,a=this._normalSymbolDraw,o=this.group,s=t.get("large")&&n.count()>t.get("largeThreshold")?r:a;this[tt]=s,s[gt](n),o.add(s.group),o[Pi](s===r?a.group:r.group)},updateLayout:function(t){this[tt][Ci](t)},remove:function(t,e){this[tt]&&this[tt][Pi](e,!0)}})}),e("echarts/chart/scatter",[Qr,Kr,K,"./scatter/ScatterSeries","./scatter/ScatterView",$,Y],function(t){var e=t(Kr),i=t(K);t("./scatter/ScatterSeries"),t("./scatter/ScatterView"),i[Xt]("chart",e.curry(t($),ae,ft,null)),i[Yt](e.curry(t(Y),ae))}),e("echarts/component/tooltip/TooltipModel",[Qr,T],function(t){t(T)[Ut]({type:"tooltip",defaultOption:{zlevel:0,z:8,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove",alwaysShowContent:!1,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,axisPointer:{type:"line",axis:"auto",animation:!0,animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",lineStyle:{color:"#555",width:1,type:"solid"},crossStyle:{color:"#555",width:1,type:"dashed",textStyle:{}},shadowStyle:{color:"rgba(150,150,150,0.3)"}},textStyle:{color:"#fff",fontSize:14}}})}),e("echarts/component/tooltip/TooltipContent",[Qr,Kr,Gi,Re,v],function(t){function e(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",i="left "+t+"s "+e+",top "+t+"s "+e;return o.map(d,function(t){return t+"transition:"+i}).join(";")}function i(t){var e=[],i=t.get("fontSize"),n=t[Ge]();return n&&e.push("color:"+n),e.push("font:"+t[Kn]()),i&&e.push("line-height:"+Math.round(3*i/2)+"px"),c(["decoration","align"],function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)}),e.join(";")}function n(t){t=t;var n=[],r=t.get("transitionDuration"),a=t.get(xe),o=t[tr](Qn),l=t.get(p);return r&&n.push(e(r)),a&&(n.push("background-Color:"+s.toHex(a)),n.push("filter:alpha(opacity=70)"),n.push("background-Color:"+a)),c(["width","color",qn],function(e){var i="border-"+e,r=h(i),a=t.get(r);null!=a&&n.push(i+":"+a+("color"===e?"":"px"))}),n.push(i(o)),null!=l&&n.push("padding:"+u[bn](l).join("px ")+"px"),n.join(";")+";"}function r(t,e){var i=document[Ur]("div"),n=e.getZr();this.el=i,this._x=e[cn]()/2,this._y=e[un]()/2,t[_e](i),this._container=t,this._show=!1,this._hideTimeout;var r=this;i.onmouseenter=function(){r.enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},i.onmousemove=function(e){if(!r.enterable){var i=n.handler;l.normalizeEvent(t,e),i.dispatch(ze,e)}},i.onmouseleave=function(){r.enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1},a(i,t)}function a(t,e){function i(t){n(t[Zi])&&t.preventDefault()}function n(i){for(;i&&i!==e;){if(i===t)return!0;i=i[Le]}}l.addEventListener(e,"touchstart",i),l.addEventListener(e,"touchmove",i),l.addEventListener(e,"touchend",i)}var o=t(Kr),s=t(Gi),l=t(Re),u=t(v),c=o.each,h=u.toCamelCase,d=["","-webkit-","-moz-","-o-"],f="position:absolute;display:block;border-style:solid;white-space:nowrap;";return r[Jr]={constructor:r,enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),i=t.style;"absolute"!==i[Cn]&&"absolute"!==e[Cn]&&(i[Cn]="relative"),this.hide()},show:function(t){clearTimeout(this._hideTimeout),this.el.style.cssText=f+n(t)+";left:"+this._x+"px;top:"+this._y+"px;",this._show=!0},setContent:function(t){var e=this.el;e[we]=t,e.style.display=t?"block":"none"},moveTo:function(t,e){var i=this.el.style;i.left=t+"px",i.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this.enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(o.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show}},r}),e("echarts/component/tooltip/TooltipView",[Qr,"./TooltipContent",xt,Kr,v,yt,T],function(t){function e(t,e){if(!t||!e)return!1;var i=m.round;return i(t[0])===i(e[0])&&i(t[1])===i(e[1])}function i(t,e,i,n){return{x1:t,y1:e,x2:i,y2:n}}function n(t,e,i,n){return{x:t,y:e,width:i,height:n}}function r(t,e,i,n,r,a){return{cx:t,cy:e,r0:i,r:n,startAngle:r,endAngle:a,clockwise:!0}}function a(t,e,i,n,r){var a=i.clientWidth,o=i[ye],s=20;return t+a+s>n?t-=a+s:t+=s,e+o+s>r?e-=o+s:e+=s,[t,e]}function o(t,e,i){var n=i.clientWidth,r=i[ye],a=5,o=0,s=0,l=e.width,u=e[ur];switch(t){case nr:o=e.x+l/2-n/2,s=e.y+u/2-r/2;break;case"top":o=e.x+l/2-n/2,s=e.y-r-a;break;case Ir:o=e.x+l/2-n/2,s=e.y+u+a;break;case"left":o=e.x-n-a,s=e.y+u/2-r/2;break;case"right":o=e.x+l+a,s=e.y+u/2-r/2}return[o,s]}function s(t,e,i,n,r,s,l){var u=l[cn](),c=l[un](),d=s&&s[Jn]().clone();if(s&&d[cr](s[Xi]),typeof t===Br&&(t=t([e,i],r,d)),h[Or](t))e=g(t[0],u),i=g(t[1],c);else if(typeof t===Fr&&s){var f=o(t,d,n.el);e=f[0],i=f[1]}else{var f=a(e,i,n.el,u,c);e=f[0],i=f[1]}n[di](e,i)}function l(t){var e=t[nn],i=t.get("tooltip.trigger",!0);return!(!e||e.type!==D&&"polar"!==e.type&&e.type!==x||"item"===i)}var u=t("./TooltipContent"),c=t(xt),h=t(Kr),p=t(v),m=t(yt),g=m[Rr];t(T)[Wt]({type:"tooltip",_axisPointers:{},init:function(t,e){var i=new u(e[hn](),e);this._tooltipContent=i,e.on("showTip",this._manuallyShowTip,this),e.on("hideTip",this._manuallyHideTip,this)},render:function(t,e,i){this.group[Ai](),this._axisPointers={},this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastHover={};var n=this._tooltipContent;n[Se](),n.enterable=t.get("enterable"),this._alwaysShowContent=t.get("alwaysShowContent"),this._seriesGroupByAxis=this._prepareAxisTriggerData(t,e);var r=this._crossText;r&&this.group.add(r);var a=this._api.getZr(),o=this._tryShow;a.off("click",o),a.off(ze,o),a.off(Fe,this._hide),"click"===t.get("triggerOn")?a.on("click",o,this):(a.on(ze,o,this),a.on(Fe,this._hide,this))},_manuallyShowTip:function(t){if(t.from!==this.uid){var e=this._ecModel,i=t[Nn],n=t[bi],r=e.getSeriesByIndex(i),a=this._api;if(null==t.x||null==t.y){if(r||e[he](function(t){l(t)&&!r&&(r=t)}),r){var o=r[En]();null==n&&(n=o[_i](t.name));var s,u,c=o[wi](n),h=r[nn];if(h&&h[st]){var d=h[st](o[Zt](h[en],n,!0));s=d&&d[0],u=d&&d[1]}else if(c){var f=c[Jn]().clone();f[cr](c[Xi]),s=f.x+f.width/2,u=f.y+f[ur]/2}null!=s&&null!=u&&this._tryShow({offsetX:s,offsetY:u,target:c,event:{}})}}else a.getZr().handler.dispatch(ze,{zrX:t.x,zrY:t.y})}},_manuallyHideTip:function(t){t.from!==this.uid&&this._hide()},_prepareAxisTriggerData:function(t,e){var i={};return e[he](function(t){if(l(t)){var e,n,r=t[nn];r.type===D?(e=r[tn](),n=e.dim+e.index):r.type===x?(e=r[it](),n=e.dim+e.type):(e=r[tn](),n=e.dim+r.name),i[n]=i[n]||{coordSys:[],series:[]},i[n].coordSys.push(r),i[n][pn].push(t)}},this),i},_tryShow:function(t){var e=t[Zi],i=this._tooltipModel,n=i.get(Mi),r=this._ecModel,a=this._api;if(i)if(e&&null!=e[bi]){var o=e[Qt]||r.getSeriesByIndex(e[Nn]),s=e[bi],l=o[En]()[In](s);"axis"===(l.get("tooltip.trigger")||n)?this._showAxisTooltip(i,r,t):(this._ticket="",this._hideAxisPointer(),this._resetLastHover(),this._showItemTooltipContent(o,s,t)),a[ln]({type:"showTip",from:this.uid,dataIndex:e[bi],seriesIndex:e[Nn]})}else"item"===n?this._hide():this._showAxisTooltip(i,r,t),"cross"===i.get("axisPointer.type")&&a[ln]({type:"showTip",from:this.uid,x:t[Pe],y:t[De]})},_showAxisTooltip:function(t,i,n){var r=t[tr]("axisPointer"),a=r.get("type");if("cross"===a){var o=n[Zi];if(o&&null!=o[bi]){var s=i.getSeriesByIndex(o[Nn]),l=o[bi];this._showItemTooltipContent(s,l,n)}}this._showAxisPointer();var u=!0;h.each(this._seriesGroupByAxis,function(t){var i=t.coordSys,o=i[0],s=[n[Pe],n[De]];if(!o.containPoint(s))return void this._hideAxisPointer(o.name);u=!1;var l=o[en],c=o.pointToData(s,!0);s=o[st](c);var d=o[tn](),f=r.get("axis");"auto"===f&&(f=d.dim);var p=!1,v=this._lastHover;if("cross"===a)e(v.data,c)&&(p=!0),v.data=c;else{var m=h[Hr](l,f);v.data===c[m]&&(p=!0),v.data=c[m]}o.type!==D||p?"polar"!==o.type||p?o.type!==x||p||this._showSinglePointer(r,o,f,s):this._showPolarPointer(r,o,f,s):this._showCartesianPointer(r,o,f,s),"cross"!==a&&this._dispatchAndShowSeriesTooltipContent(o,t[pn],s,c,p)},this),u&&this._hide()},_showCartesianPointer:function(t,e,r,a){function o(n,r,a){var o="x"===n?i(r[0],a[0],r[0],a[1]):i(a[0],r[1],a[1],r[1]),s=l._getPointerElement(e,t,n,o);h?c[Ne](s,{shape:o},t):s.attr({shape:o})}function s(i,r,a){var o=e[it](i),s=o[nt](),u=a[1]-a[0],d="x"===i?n(r[0]-s/2,a[0],s,u):n(a[0],r[1]-s/2,u,s),f=l._getPointerElement(e,t,i,d);h?c[Ne](f,{shape:d},t):f.attr({shape:d})}var l=this,u=t.get("type"),h="cross"!==u;if("cross"===u)o("x",a,e[it]("y").getGlobalExtent()),o("y",a,e[it]("x").getGlobalExtent()),this._updateCrossText(e,a,t);else{var d=e[it]("x"===r?"y":"x"),f=d.getGlobalExtent();e.type===D&&("line"===u?o:s)(r,a,f)}},_showSinglePointer:function(t,e,n,r){function a(n,r,a){var s=e[it](),u=s[f],h=u===Sn?i(r[0],a[0],r[0],a[1]):i(a[0],r[1],a[1],r[1]),d=o._getPointerElement(e,t,n,h);l?c[Ne](d,{shape:h},t):d.attr({shape:h})}var o=this,s=t.get("type"),l="cross"!==s,u=e[I](),h=[u.y,u.y+u[ur]];a(n,r,h)},_showPolarPointer:function(t,e,n,a){function o(n,r,a){var o,s=e.pointToCoord(r);if("angle"===n){var u=e.coordToPoint([a[0],s[1]]),h=e.coordToPoint([a[1],s[1]]);o=i(u[0],u[1],h[0],h[1])}else o={cx:e.cx,cy:e.cy,r:s[0]};var d=l._getPointerElement(e,t,n,o);f?c[Ne](d,{shape:o},t):d.attr({shape:o})}function s(i,n,a){var o,s=e[it](i),u=s[nt](),h=e.pointToCoord(n),d=Math.PI/180;o="angle"===i?r(e.cx,e.cy,a[0],a[1],(-h[1]-u/2)*d,(-h[1]+u/2)*d):r(e.cx,e.cy,h[0]-u/2,h[0]+u/2,0,2*Math.PI);var p=l._getPointerElement(e,t,i,o);f?c[Ne](p,{shape:o},t):p.attr({shape:o})}var l=this,u=t.get("type"),h=e.getAngleAxis(),d=e.getRadiusAxis(),f="cross"!==u;if("cross"===u)o("angle",a,d[lt]()),o(qn,a,h[lt]()),this._updateCrossText(e,a,t);else{var p=e[it](n===qn?"angle":qn),v=p[lt]();("line"===u?o:s)(n,a,v)}},_updateCrossText:function(t,e,i){var n=i[tr]("crossStyle"),r=n[tr](Qn),a=this._tooltipModel,o=this._crossText;o||(o=this._crossText=new c.Text({style:{textAlign:"left",textBaseline:"bottom"}}),this.group.add(o));var s=t.pointToData(e),l=t[en];s=h.map(s,function(e,i){var n=t[it](l[i]);return e=n.type===At||"time"===n.type?n.scale[q](e):p[rn](e[Pr](n[Dr]()))}),o[Ue]({fill:r[Ge]()||n.get("color"),textFont:r[Kn](),text:s.join(", "),x:e[0]+5,y:e[1]-5}),o.z=a.get("z"),o[Ae]=a.get(Ae)},_getPointerElement:function(t,e,i,n){var r=this._tooltipModel,a=r.get("z"),o=r.get(Ae),s=this._axisPointers,l=t.name;if(s[l]=s[l]||{},s[l][i])return s[l][i];var u=e.get("type"),h=e[tr](u+"Style"),d="shadow"===u,f=h[d?"getAreaStyle":J](),p="polar"===t.type?d?Ke:i===qn?Je:"Line":d?"Rect":"Line";d?f[_r]=null:f.fill=null;var v=s[l][i]=new c[p]({style:f,z:a,zlevel:o,silent:!0,shape:n});return this.group.add(v),v},_dispatchAndShowSeriesTooltipContent:function(t,e,i,n,r){var a=this._tooltipModel,o=this._tooltipContent,l=t[tn](),u=h.map(e,function(t){return{seriesIndex:t[Nn],dataIndex:t.getAxisTooltipDataIndex?t.getAxisTooltipDataIndex(t[L](l.dim),n,l):t[En]().indexOfNearest(t[L](l.dim),n["x"===l.dim||l.dim===qn?0:1])}}),c=this._lastHover,f=this._api;if(c.payloadBatch&&!r&&f[ln]({type:"downplay",batch:c.payloadBatch}),r||(f[ln]({type:"highlight",batch:u}),c.payloadBatch=u),f[ln]({type:"showTip",dataIndex:u[0][bi],seriesIndex:u[0][Nn],from:this.uid}),l&&a.get("showContent")){var v,m=a.get(Dn),g=a.get(Cn),y=h.map(e,function(t,e){return t[Pn](u[e][bi])});o.show(a);var x=u[0][bi];if(!r){if(this._ticket="",m){if(typeof m===Fr)v=p.formatTpl(m,y);else if(typeof m===Br){var _=this,w="axis_"+t.name+"_"+x,b=function(t,e){t===_._ticket&&(o.setContent(e),s(g,i[0],i[1],o,y,null,f))};_._ticket=w,v=m(y,w,b)}}else{var M=e[0][En]()[zn](x);v=(M?M+Qi:"")+h.map(e,function(t,e){return t[d](u[e][bi],!0)}).join(Qi)}o.setContent(v)}s(g,i[0],i[1],o,y,null,f)}},_showItemTooltipContent:function(t,e,i){var n=this._api,r=t[En](),a=r[In](e),o=this._tooltipModel,l=this._tooltipContent,u=a[tr]("tooltip");if(u.parentModel?u.parentModel.parentModel=o:u.parentModel=this._tooltipModel,u.get("showContent")){var c,h=u.get(Dn),f=u.get(Cn),v=t[Pn](e);if(h){if(typeof h===Fr)c=p.formatTpl(h,v);else if(typeof h===Br){var m=this,g="item_"+t.name+"_"+e,y=function(t,e){t===m._ticket&&(l.setContent(e),s(f,i[Pe],i[De],l,v,i[Zi],n))};m._ticket=g,c=h(v,g,y)}}else c=t[d](e);l.show(u),l.setContent(c),s(f,i[Pe],i[De],l,v,i[Zi],n)}},_showAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&h.each(e,function(t){t.show()})}else this.group[Tn](function(t){t.show()}),this.group.show()},_resetLastHover:function(){var t=this._lastHover;t.payloadBatch&&this._api[ln]({type:"downplay",batch:t.payloadBatch}),this._lastHover={}},_hideAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&h.each(e,function(t){t.hide()})}else this.group.hide()},_hide:function(){this._hideAxisPointer(),this._resetLastHover(),this._alwaysShowContent||this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._api[ln]({type:"hideTip",from:this.uid})},dispose:function(t,e){var i=e.getZr();this._tooltipContent.hide(),i.off("click",this._tryShow),i.off(ze,this._tryShow),i.off(Fe,this._hide),e.off("showTip",this._manuallyShowTip),e.off("hideTip",this._manuallyHideTip)}})}),e("echarts/component/tooltip",[Qr,"./tooltip/TooltipModel","./tooltip/TooltipView",K,K],function(t){t("./tooltip/TooltipModel"),t("./tooltip/TooltipView"),t(K)[$t]({type:"showTip",event:"showTip",update:"none"},function(){}),t(K)[$t]({type:"hideTip",event:"hideTip",update:"none"},function(){})}),e("echarts/coord/polar/RadiusAxis",[Qr,Kr,"../Axis"],function(t){function e(t,e){n.call(this,qn,t,e),this.type=At}var i=t(Kr),n=t("../Axis");return e[Jr]={constructor:e,dataToRadius:n[Jr][N],radiusToData:n[Jr][E]},i[Ar](e,n),e}),e("echarts/coord/polar/AngleAxis",[Qr,Kr,"../Axis"],function(t){function e(t,e){e=e||[0,360],n.call(this,"angle",t,e),this.type=At}var i=t(Kr),n=t("../Axis");return e[Jr]={constructor:e,dataToAngle:n[Jr][N],angleToData:n[Jr][E]},i[Ar](e,n),e}),e("echarts/coord/polar/Polar",[Qr,"./RadiusAxis","./AngleAxis"],function(t){var e=t("./RadiusAxis"),i=t("./AngleAxis"),n=function(t){this.name=t||"",this.cx=0,this.cy=0,this._radiusAxis=new e,this._angleAxis=new i};return n[Jr]={constructor:n,type:"polar",dimensions:[qn,"angle"],containPoint:function(t){var e=this.pointToCoord(t);return this._radiusAxis[vi](e[0])&&this._angleAxis[vi](e[1])},containData:function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},getAxis:function(t){return this["_"+t+"Axis"]},getAxesByScale:function(t){var e=[],i=this._angleAxis,n=this._radiusAxis;return i.scale.type===t&&e.push(i),n.scale.type===t&&e.push(n),e},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},getBaseAxis:function(){return this.getAxesByScale(On)[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},dataToPoints:function(t){return t[Et](this[en],function(t,e){return this[st]([t,e])},this)},dataToPoint:function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},pointToData:function(t,e){var i=this.pointToCoord(t);return[this._radiusAxis.radiusToData(i[0],e),this._angleAxis.angleToData(i[1],e)]},pointToCoord:function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=this.getAngleAxis(),r=n[lt](),a=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);n[et]?a=o-360:o=a+360;var s=Math.sqrt(e*e+i*i);e/=s,i/=s;for(var l=Math.atan2(-i,e)/Math.PI*180,u=a>l?1:-1;a>l||l>o;)l+=360*u;return[s,l]},coordToPoint:function(t){var e=t[0],i=t[1]/180*Math.PI,n=Math.cos(i)*e+this.cx,r=-Math.sin(i)*e+this.cy;return[n,r]}},n}),e("echarts/coord/polar/AxisModel",[Qr,Kr,R,"../axisModelCreator","../axisModelCommonMixin"],function(t){function e(t,e){return e.type||(e.data?At:"value")}var i=t(Kr),n=t(R),r=t("../axisModelCreator"),a=n[Cr]({type:"polarAxis",axis:null});i.merge(a[Jr],t("../axisModelCommonMixin"));var o={angle:{polarIndex:0,startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{polarIndex:0,splitNumber:5}};r("angle",a,e,o.angle),r(qn,a,e,o[qn])}),e("echarts/coord/polar/PolarModel",[Qr,"./AxisModel",T],function(t){t("./AxisModel"),t(T)[Ut]({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e,i=this[er];return i[ie](t,function(t){i[on]("polar",t[br]("polarIndex"))===this&&(e=t)},this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}})}),e("echarts/coord/polar/polarCreator",[Qr,"./Polar",yt,Kr,z,"./PolarModel",Ct],function(t){function e(t,e){var i=t.get(Vr),n=t.get(qn),r=e[cn](),o=e[un](),s=a[Rr];this.cx=s(i[0],r),this.cy=s(i[1],o);var l=this.getRadiusAxis(),u=Math.min(r,o)/2;l[j](0,s(n,u))}function i(t,e){if(t.type=e.get("type"),t.scale=s[G](e),t[rt]=e.get(H)&&t.type===At,"angleAxis"===e.mainType){var i=e.get(ni);t[et]=e.get(et)^e.get(ei),t[j](i,i+(t[et]?-360:360))}e.axis=t,t.model=e}function n(t,e,i){e[he](function(e){if("polar"===e.get(nn)){var i=e.get("polarIndex")||0,n=t[i];if(!n)return;e[nn]=n;var r=n.getRadiusAxis(),a=n.getAngleAxis(),o=e[En]();r.scale[X](o[Gt](qn,r.type!==At)),a.scale[X](o[Gt]("angle",a.type!==At))}}),o.each(t,function(t){var e=t.getAngleAxis(),i=t.getRadiusAxis();l(e,e.model),l(i,i.model)})}var r=t("./Polar"),a=t(yt),o=t(Kr),s=t(z),l=s[W];t("./PolarModel");var u={dimensions:r[Jr][en],create:function(t,a){var s=[];return t[ie]("polar",function(t,n){var o=new r(n);o[Me]=e;var l=o.getRadiusAxis(),u=o.getAngleAxis(),c=t.findAxisModel("radiusAxis"),h=t.findAxisModel("angleAxis");i(l,c),i(u,h),o[Me](t,a),s.push(o),t[nn]=o}),n(s,t,a),o.each(s,function(t){var e=t.getAngleAxis();if(e.type===At&&!e[rt]){var i=e[lt](),n=360/e.scale.count();e[et]?i[1]+=n:i[1]-=n,e[j](i[0],i[1])}}),s}};t(Ct)[sn]("polar",u)}),e("echarts/component/axis/AngleAxisView",[Qr,Kr,xt,k,T],function(t){function e(t,e,i,n){var r=t.coordToPoint([e,n]),a=t.coordToPoint([i,n]);return{x1:r[0],y1:r[1],x2:a[0],y2:a[1]}}var i=t(Kr),n=t(xt),r=t(k),a=[w,O,b,"splitLine","splitArea"];t(T)[Wt]({type:"angleAxis",render:function(t,e){if(this.group[Ai](),t.get("show")){var n=e[on]("polar",t.get("polarIndex")),r=t.axis,o=n[nn],s=o.getRadiusAxis()[lt](),l=r.getTicksCoords();r.type!==At&&l.pop(),i.each(a,function(e){t.get(e+".show")&&this["_"+e](t,o,l,s)},this)}},_axisLine:function(t,e,i,r){var a=t[tr]("axisLine.lineStyle"),o=new n[Je]({shape:{cx:e.cx,cy:e.cy,r:r[1]},style:a[J](),z2:1,silent:!0});o.style.fill=null,this.group.add(o)},_axisTick:function(t,r,a,o){var s=t[tr](b),l=(s.get(nr)?-1:1)*s.get(jr),u=i.map(a,function(t){return new n.Line({shape:e(r,o[1],o[1]+l,t)})});this.group.add(n.mergePath(u,{style:s[tr](ce)[J]()}))},_axisLabel:function(t,e,i,a){for(var o=t.axis,s=t.get("data"),l=t[tr](O),u=l[tr](Qn),c=t[B](),h=l.get(_n),d=o.getLabelsCoords(),f=0;f<i[jr];f++){var p=a[1],v=e.coordToPoint([p+h,d[f]]),m=e.cx,g=e.cy,y=Math.abs(v[0]-m)/p<.3?Vr:v[0]>m?"left":"right",x=Math.abs(v[1]-g)/p<.3?zr:v[1]>g?"top":Ir,_=u;s&&s[f]&&s[f][Qn]&&(_=new r(s[f][Qn],u)),this.group.add(new n.Text({style:{x:v[0],y:v[1],fill:_[Ge](),text:c[f],textAlign:y,textBaseline:x,textFont:_[Kn]()},silent:!0}))}},_splitLine:function(t,r,a,o){var s=t[tr]("splitLine"),l=s[tr](ce),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=0;d<a[jr];d++){var f=c++%u[jr];h[f]=h[f]||[],h[f].push(new n.Line({shape:e(r,o[0],o[1],a[d])}))}for(var d=0;d<h[jr];d++)this.group.add(n.mergePath(h[d],{style:i[ir]({stroke:u[d%u[jr]]},l[J]()),silent:!0,z:t.get("z")}))},_splitArea:function(t,e,r,a){var o=t[tr]("splitArea"),s=o[tr]("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=Math.PI/180,d=-r[0]*h,f=Math.min(a[0],a[1]),p=Math.max(a[0],a[1]),v=t.get(ei),m=1;m<r[jr];m++){var g=u++%l[jr];c[g]=c[g]||[],c[g].push(new n[Ke]({shape:{cx:e.cx,cy:e.cy,r0:f,r:p,startAngle:d,endAngle:-r[m]*h,clockwise:v},silent:!0})),d=-r[m]*h}for(var m=0;m<c[jr];m++)this.group.add(n.mergePath(c[m],{style:i[ir]({fill:l[m%l[jr]]},s.getAreaStyle()),silent:!0}))}})}),e("echarts/component/angleAxis",[Qr,"../coord/polar/polarCreator","./axis/AngleAxisView"],function(t){t("../coord/polar/polarCreator"),t("./axis/AngleAxisView")}),e("echarts/component/axis/RadiusAxisView",[Qr,Kr,xt,"./AxisBuilder",T],function(t){function e(t,e,i){return{position:[t.cx,t.cy],rotation:i/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotation:e[tr](O).get(Hi),z2:1}}var i=t(Kr),n=t(xt),r=t("./AxisBuilder"),a=[w,O,b,"axisName"],o=["splitLine","splitArea"];t(T)[Wt]({type:"radiusAxis",render:function(t,n){if(this.group[Ai](),t.get("show")){var s=n[on]("polar",t.get("polarIndex")),l=s[nn].getAngleAxis(),u=t.axis,c=s[nn],h=u.getTicksCoords(),d=l[lt]()[0],f=u[lt](),p=e(c,t,d),v=new r(t,p);i.each(a,v.add,v),this.group.add(v.getGroup()),i.each(o,function(e){t.get(e+".show")&&this["_"+e](t,c,d,f,h)},this)}},_splitLine:function(t,e,r,a,o){var s=t[tr]("splitLine"),l=s[tr](ce),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=0;d<o[jr];d++){var f=c++%u[jr];h[f]=h[f]||[],h[f].push(new n[Je]({shape:{cx:e.cx,cy:e.cy,r:o[d]},silent:!0}))}for(var d=0;d<h[jr];d++)this.group.add(n.mergePath(h[d],{style:i[ir]({stroke:u[d%u[jr]],fill:null},l[J]()),silent:!0}))},_splitArea:function(t,e,r,a,o){var s=t[tr]("splitArea"),l=s[tr]("areaStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=o[0],f=1;f<o[jr];f++){var p=c++%u[jr];h[p]=h[p]||[],h[p].push(new n[Ke]({shape:{cx:e.cx,
cy:e.cy,r0:d,r:o[f],startAngle:0,endAngle:2*Math.PI},silent:!0})),d=o[f]}for(var f=0;f<h[jr];f++)this.group.add(n.mergePath(h[f],{style:i[ir]({fill:u[f%u[jr]]},l.getAreaStyle()),silent:!0}))}})}),e("echarts/component/radiusAxis",[Qr,"../coord/polar/polarCreator","./axis/RadiusAxisView"],function(t){t("../coord/polar/polarCreator"),t("./axis/RadiusAxisView")}),e("echarts/component/polar",[Qr,"../coord/polar/polarCreator","./angleAxis","./radiusAxis",K],function(t){t("../coord/polar/polarCreator"),t("./angleAxis"),t("./radiusAxis"),t(K)[Wt]({type:"polar"})}),e("echarts/chart/radar/RadarSeries",[Qr,Mt,bt,Kr,yt,"../../component/polar"],function(t){var e=t(Mt),i=t(bt),n=t(Kr),r=t(yt),a=r[Er];return t("../../component/polar"),i[Cr]({type:"series.radar",dependencies:["polar"],getInitialData:function(t,i){var r=t.indicator,o=e(t.data,this,i);if(r){var s=n[Yr](r,function(t,e,i){return t[e.name]=e,t},{});o=o.map([qn],function(t,e){var i=s[o[zn](e)];return i&&i.max?a(t,[i.min||0,i.max],[0,1]):void 0});var l=this[Rn];this[Rn]=function(t){var e=l.call(this,t),i=s[o[zn](t)];return i&&null!=i.max?a(e,[0,1],[i.min||0,i.max]):void 0}}return o},defaultOption:{zlevel:0,z:2,coordinateSystem:"polar",legendHoverLink:!0,polarIndex:0,lineStyle:{normal:{width:2,type:"solid"}},symbol:"emptyCircle",symbolSize:4,showAllSymbol:!1}})}),e("echarts/chart/radar/RadarView",[Qr,ot,xt,Kr,T],function(t){var e=t(ot),i=t(xt),n=t(Kr);return t(T)[jt]({type:"radar",init:function(){this[tt]=new e},render:function(t,e,r){function a(){return n.map(u,function(t){return[o.cx,o.cy]})}var o=t[nn],s=this.group,l=t[En](),u=l[Et](l[zt],!0);if(!(u[jr]<1)){u.push(u[0].slice());var c=this._polygon||(this._polygon=new i[$e]({shape:{points:[]}})),h=this._polyline||(this._polyline=new i[Ye]({shape:{points:[]},z2:10})),d=h.shape,f=c.shape,p={shape:{points:u}};d[ti][jr]!==u[jr]?(f[ti]=a(),d[ti]=a(),i[Ee](h,p,t),i[Ee](c,p,t)):(i[Ne](h,p,t),i[Ne](c,p,t)),this[tt][gt](l),h[Ue](n[Cr](t[tr](Q)[J](),{stroke:l[Ot]("color")}));var v=t[tr]("areaStyle.normal");c[Vi]=v.isEmpty(),i[We](h,t[tr]("lineStyle.emphasis")[J]()),c[Vi]||(c[Ue](n[ir](v.getAreaStyle(),{fill:l[Ot]("color"),opacity:.7})),i[We](c,t[tr]("areaStyle.emphasis")[J]())),s.add(h),s.add(c),s.add(this[tt].group),this._data=l}}})}),e("echarts/chart/radar/backwardCompat",[Qr,Kr,"../../scale/Interval"],function(t){var e=t(Kr),i=t("../../scale/Interval"),n=e[Or],r=e.each,a=e[$r];return function(t){var o=t.polar,s=t.radiusAxis,l=t.angleAxis,u=a(t[pn],function(t){return"radar"===t.type})||[];o&&u[jr]&&(n(o)||(o=[o]),s?n(s)||(s=[s]):s=t.radiusAxis=[],l?n(l)||(l=[l]):l=t.angleAxis=[],r(o,function(n,o){if(n.indicator){var c=e.map(n.indicator,function(t){var e=t.min,i=t.max;return null!=i&&i>=0&&(e=0),{name:t.text,min:e,max:i}}),h=e.find(s,function(t){return(t.polarIndex||0)===o}),d=e.find(l,function(t){return(t.polarIndex||0)===o});h||(h={type:"value",polarIndex:o},s.push(h)),d||(d={type:"category",polarIndex:o},l.push(d)),d.data=e.map(n.indicator,function(t){var e={value:t.text},i=t[O];return i&&i[Qn]&&(e[Qn]=i[Qn]),e}),d[ni]=n[ni]||90,n[w]&&(d.splitLine=n[w]),n[O]&&(d[O]=n[O]),n.splitLine&&(h.splitLine=n.splitLine),n.splitArea&&(h.splitArea=n.splitArea),h.splitLine=h.splitLine||{},h.splitArea=h.splitArea||{},null==h.splitLine.show&&(h.splitLine.show=!0),null==h.splitArea.show&&(h.splitArea.show=!0),d[H]=!1,h.min=0,h.max=1,h[Z]=1/(n[F]||5),h[w]={show:!1},h[O]={show:!1},h[b]={show:!1};var f=a(u,function(t){return(t.polarIndex||0)===o}),p=e.map(c,function(){return[]});r(f,function(i){if(i.indicator=c,i.data[0]&&e[Or](i.data[0].value)){var n=i.data,r=n[0];i.data=r.value,i.name=r.name;for(var a=1;a<n[jr];a++){var r=n[a],o=e.clone(i);t[pn].push(e[Cr](o,{name:r.name,data:r.value,indicator:c}))}for(var a=0;a<r.value[jr];a++)for(var s=0;s<n[jr];s++)p[a].push(n[s].value[a])}}),r(p,function(t,e){var r=new i,a=1/0,o=-(1/0),s=t[jr];if(s){for(var l=0;s>l;l++)a=Math.min(a,t[l]),o=Math.max(o,t[l]);r[j](a,o),r.niceExtent(n[F]||5);var u=r[lt]();null==c[e].min&&(c[e].min=u[0]),null==c[e].max&&(c[e].max=u[1])}})}}))}}),e("echarts/chart/radar",[Qr,Kr,K,"./radar/RadarSeries","./radar/RadarView",$,Y,"./radar/backwardCompat"],function(t){var e=t(Kr),i=t(K);t("./radar/RadarSeries"),t("./radar/RadarView"),i[Xt]("chart",e.curry(t($),"radar",ft,null)),i[Yt](e.curry(t(Y),"radar")),i[Jt](t("./radar/backwardCompat"))}),e("echarts/component/legend/LegendModel",[Qr,Kr,k,T],function(t){var e=t(Kr),i=t(k);return t(T)[Ut]({type:"legend",dependencies:[pn],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,i){this[yn](t,i),t[y]=t[y]||{},this._updateData(i);var n=this._data,r=this[Un][y];if(n[0]&&this.get(_)===x){var a=!1;for(var o in r)r[o]&&(this.select(o),a=!0);!a&&this.select(n[0].get("name"))}},mergeOption:function(t){this.$superCall(mn,t),this._updateData(this[er])},_updateData:function(t){var n=e.map(this.get("data")||[],function(t){return typeof t===Fr&&(t={name:t}),new i(t,this,this[er])},this);this._data=n;var r=e.map(t.getSeries(),function(t){return t.name});t[he](function(t){if(t[m]){var e=t[m]();r=r[Gr](e[Et](e[zn]))}}),this._availableNames=r},getData:function(){return this._data},select:function(t){var i=this[Un][y],n=this.get(_);if(n===x){var r=this._data;e.each(r,function(t){i[t.get("name")]=!1})}i[t]=!0},unSelect:function(t){this.get(_)!==x&&(this[Un][y][t]=!1)},toggleSelected:function(t){var e=this[Un][y];t in e||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},isSelected:function(t){var i=this[Un][y];return!(t in i&&!i[t])&&e[Hr](this._availableNames,t)>=0},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:"top",align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,textStyle:{color:"#333"},selectedMode:!0}})}),e("echarts/component/legend/legendAction",[Qr,T,Kr],function(t){function e(t,e,i){var r,a={},o="toggleSelected"===t;return i[ie](se,function(i){o&&null!=r?i[r?"select":"unSelect"](e.name):(i[t](e.name),r=i.isSelected(e.name));var s=i[En]();n.each(s,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);e in a?a[e]=a[e]&&n:a[e]=n}})}),{name:e.name,selected:a}}var i=t(T),n=t(Kr);i[$t]("legendToggleSelect","legendselectchanged",n.curry(e,"toggleSelected")),i[$t]("legendSelect","legendselected",n.curry(e,"select")),i[$t]("legendUnSelect","legendunselected",n.curry(e,"unSelect"))}),e("echarts/component/helper/listComponent",[Qr,V,v,xt],function(t){function e(t,e,n){i[xn](t,e[P](),{width:n[cn](),height:n[un]()},e.get(p))}var i=t(V),n=t(v),r=t(xt);return{layout:function(t,n,r){var a=i[wn](n[P](),{width:r[cn](),height:r[un]()},n.get(p));i.box(n.get(f),t,n.get(h),a.width,a[ur]),e(t,n,r)},addBackground:function(t,e){var i=n[bn](e.get(p)),a=t[Jn](),o=e[dt](["color",xr]);o.fill=e.get(xe);var s=new r.Rect({shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[1]+i[3],height:a[ur]+i[0]+i[2]},style:o,silent:!0,z2:-1});r[je](s),t.add(s)}}}),e("echarts/component/legend/LegendView",[Qr,Kr,_t,xt,"../helper/listComponent",T],function(t){function e(t,e){e[ln]({type:"legendToggleSelect",name:t})}function i(t,e,i){t.get("legendHoverLink")&&i[ln]({type:"highlight",seriesName:t.name,name:e})}function n(t,e,i){t.get("legendHoverLink")&&i[ln]({type:"downplay",seriesName:t.name,name:e})}var r=t(Kr),a=t(_t),o=t(xt),s=t("../helper/listComponent"),l=r.curry,u="#ccc";return t(T)[Wt]({type:"legend",init:function(){this._symbolTypeStore={}},render:function(t,a,h){var d=this.group;if(d[Ai](),t.get("show")){var p=t.get(_),v=t.get("itemWidth"),g=t.get("itemHeight"),y=t.get("align");"auto"===y&&(y="right"===t.get("left")&&t.get(f)===Mn?"right":"left");var x={},w={};r.each(t[En](),function(r){var s=r.get("name");(""===s||"\n"===s)&&d.add(new o.Group({newline:!0}));var c=a.getSeriesByName(s)[0];if(x[s]=r,c&&!w[s]){var f=c[En](),m=f[Ot]("color");t.isSelected(s)||(m=u),typeof m===Br&&(m=m(c[Pn](0)));var _=f[Ot]("legendSymbol")||"roundRect",b=f[Ot](pt),M=this._createItem(s,r,t,_,b,v,g,y,m,p);M.on("click",l(e,s,h)).on(He,l(i,c,"",h)).on(Fe,l(n,c,"",h)),w[s]=!0}},this),a.eachRawSeries(function(r){if(r[m]){var a=r[m]();a.each(function(o){var s=a[zn](o);if(x[s]&&!w[s]){var c=a[Pt](o,"color");t.isSelected(s)||(c=u);var d="roundRect",f=this._createItem(s,x[s],t,d,null,v,g,y,c,p);f.on("click",l(e,s,h)).on(He,l(i,r,s,h)).on(Fe,l(n,r,s,h)),w[s]=!0}},!1,this)}},this),s[c](d,t,h),s.addBackground(d,t)}},_createItem:function(t,e,i,n,r,s,l,u,c,h){var d=new o.Group,f=e[tr](Qn),p=e.get("icon");if(n=p||n,d.add(a[mt](n,0,0,s,l,c)),!p&&r&&r!==n&&"none"!=r){var v=.8*l;d.add(a[mt](r,(s-v)/2,(l-v)/2,v,v,c))}var m="left"===u?s+5:-5,g=u,y=i.get(Dn);typeof y===Fr&&y?t=y[Nr]("{name}",t):typeof y===Br&&(t=y(t));var x=new o.Text({style:{text:t,x:m,y:l/2,fill:f[Ge](),textFont:f[Kn](),textAlign:g,textBaseline:"middle"}});return d.add(x),d.add(new o.Rect({shape:d[Jn](),invisible:!0})),d[Tn](function(t){t[Ce]=!h}),this.group.add(d),d}})}),e("echarts/component/legend/legendFilter",[],function(){return function(t){var e=t[dn]({mainType:"legend"});e&&e[jr]&&t.filterSeries(function(t){for(var i=0;i<e[jr];i++)if(!e[i].isSelected(t.name))return!1;return!0})}}),e("echarts/component/legend",[Qr,"./legend/LegendModel","./legend/legendAction","./legend/LegendView",K,"./legend/legendFilter"],function(t){t("./legend/LegendModel"),t("./legend/legendAction"),t("./legend/LegendView");var e=t(K);e[Kt]($r,t("./legend/legendFilter"))}),e("echarts/chart/map/MapSeries",[Qr,Lt,T,bt,Kr,kt,v,"../helper/dataSelectableMixin"],function(t){function e(t,e){for(var i={},n=e.features,r=0;r<t[jr];r++)i[t[r].name]=t[r];for(var r=0;r<n[jr];r++){var a=n[r].properties.name;i[a]||t.push({value:NaN,name:a})}return t}var i=t(Lt),n=t(T),r=t(bt),a=t(Kr),o=t(kt),s=t(v),l=s[an],c=s[rn],h=t("../helper/dataSelectableMixin"),d=r[Cr]({type:"series.map",needsDrawMap:!1,seriesGroup:[],init:function(t){t=this._fillOption(t),this[Un]=t,this[g]("init",arguments),this.updateSelectedMap()},getInitialData:function(t){var e=o(["value"],t.data||[]),n=new i(e,this);return n[Ft](t.data),n},mergeOption:function(t){t=this._fillOption(t),r[Jr][mn].call(this,t),this.updateSelectedMap()},_fillOption:function(t){t=a[Cr]({},t);var i=n.getMap(t.mapType),r=i&&i.geoJson;return r&&t.data&&(t.data=e(t.data,r)),t},setRoamZoom:function(t){var e=this[Un][u];e&&(e.zoom=t)},setRoamPan:function(t,e){var i=this[Un][u];i&&(i.x=t,i.y=e)},getRawValue:function(t){return this._data.get("value",t)},formatTooltip:function(t){for(var e=this._data,i=c(this[Rn](t)),n=e[zn](t),r=this.seriesGroup,a=[],o=0;o<r[jr];o++)isNaN(r[o][Rn](t))||a.push(l(r[o].name));return a.join(", ")+Qi+n+" : "+i},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"china",left:"center",top:"center",showLegendSymbol:!0,dataRangeHoverLink:!0,roamDetail:{x:0,y:0,zoom:1},label:{normal:{show:!1,textStyle:{color:"#000"}},emphasis:{show:!1,textStyle:{color:"#000"}}},itemStyle:{normal:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{areaColor:"rgba(255,215, 0, 0.8)"}}}});return a.mixin(d,h),d}),e("echarts/component/helper/interactionMutex",[Qr],function(t){function e(t){return t[i]||(t[i]={})}var i="\x00_ec_interaction_mutex",n={take:function(t,i){e(i)[t]=!0},release:function(t,i){e(i)[t]=!1},isTaken:function(t,i){return!!e(i)[t]}};return n}),e("echarts/component/helper/RoamController",[Qr,Ji,Kr,Re,"./interactionMutex"],function(t){function e(t){if(!t[Zi]||!t[Zi][Ri]){var e=t[Pe],i=t[De],n=this.rect;n&&n[vi](e,i)&&(this._x=e,this._y=i,this._dragging=!0)}}function i(t){if(this._dragging&&(h.stop(t.event),"pinch"!==t.gestureEvent)){if(d.isTaken("globalPan",this._zr))return;var e=t[Pe],i=t[De],n=e-this._x,r=i-this._y;this._x=e,this._y=i;var a=this[Zi];if(a){var o=a[Cn];o[0]+=n,o[1]+=r,a.dirty()}h.stop(t.event),this[Mi]("pan",n,r)}}function n(t){this._dragging=!1}function r(t){h.stop(t.event);var e=t.wheelDelta>0?1.1:1/1.1;o.call(this,t,e,t[Pe],t[De])}function a(t){if(!d.isTaken("globalPan",this._zr)){h.stop(t.event);var e=t.pinchScale>1?1.1:1/1.1;o.call(this,t,e,t.pinchX,t.pinchY)}}function o(t,e,i,n){var r=this.rect;if(r&&r[vi](i,n)){var a=this[Zi];if(a){var o=a[Cn],s=a.scale,l=this._zoom=this._zoom||1;l*=e;var u=l/this._zoom;this._zoom=l,o[0]-=(i-o[0])*(u-1),o[1]-=(n-o[1])*(u-1),s[0]*=u,s[1]*=u,a.dirty()}this[Mi]("zoom",e,i,n)}}function s(t,o,s){this[Zi]=o,this.rect=s,this._zr=t;var h=c.bind,d=h(e,this),f=h(i,this),p=h(n,this),v=h(r,this),m=h(a,this);u.call(this),this[l]=function(e){this.disable(),null==e&&(e=!0),(e===!0||"move"===e||"pan"===e)&&(t.on(Ve,d),t.on(ze,f),t.on(Ie,p)),(e===!0||"scale"===e||"zoom"===e)&&(t.on("mousewheel",v),t.on("pinch",m))},this.disable=function(){t.off(Ve,d),t.off(ze,f),t.off(Ie,p),t.off("mousewheel",v),t.off("pinch",m)},this[me]=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}var u=t(Ji),c=t(Kr),h=t(Re),d=t("./interactionMutex");return c.mixin(s,u),s}),e("echarts/component/helper/MapDraw",[Qr,"./RoamController",xt,Kr],function(t){function e(t,e){var i=t[dt](),n=t.get("areaColor");return n&&(i.fill=n),i}function i(t,e,i,r,a){i.off("click"),t.get(_)&&i.on("click",function(i){var o=i[Zi][bi];if(null!=o){var s=e[zn](o);r[ln]({type:"mapToggleSelect",seriesIndex:t[Nn],name:s,from:a.uid}),n(t,e,r)}})}function n(t,e){e[xi](function(i,n){var r=e[zn](n);i[Mi](t.isSelected(r)?Zn:Gn)})}function r(t,e){var i=new o.Group;this[s]=new a(t.getZr(),e?i:null,null),this.group=i,this._updateGroup=e}var a=t("./RoamController"),o=t(xt),u=t(Kr);return r[Jr]={constructor:r,draw:function(t,r,a,s){var l=t[En]&&t[En](),c=t[nn],h=this.group;h[Ai]();var d=c.scale;h[Cn]=c[Cn].slice(),h.scale=d.slice();var f,p,v,m,g,y,x=[ue,Gn],_=[ue,Zn],w=["label",Gn],b=["label",Zn];l||(f=t[tr](x),p=t[tr](_),v=e(f,d),m=e(p,d),g=t[tr](w),y=t[tr](b)),u.each(c.regions,function(i){var n,r=new o.Group;if(l){n=l[_i](i.name);var a=l[In](n),s=l[Pt](n,"color",!0);f=a[tr](x),p=a[tr](_),v=e(f,d),m=e(p,d),g=a[tr](w),y=a[tr](b),s&&(v.fill=s)}var c=g[tr](Qn),M=y[tr](Qn);u.each(i.contours,function(t){var e=new o[$e]({shape:{points:t},style:{strokeNoScale:!0},culling:!0});e[Ue](v),r.add(e)});var S=g.get("show"),A=y.get("show"),C=l&&isNaN(l.get("value",n)),T=l&&l[zt](n);if(!l||C&&(S||A)||T&&T.showLabel){var k=l?n:i.name,L=t[ht](k,Gn),D=t[ht](k,Zn),P=new o.Text({style:{text:S?L||i.name:"",fill:c[Ge](),textFont:c[Kn](),textAlign:"center",textBaseline:"middle"},hoverStyle:{text:A?D||i.name:"",fill:M[Ge](),textFont:M[Kn]()},position:i[Vr].slice(),scale:[1/d[0],1/d[1]],z2:10,silent:!0});r.add(P)}l&&l[Dt](n,r),o[We](r,m),h.add(r)}),this._updateController(t,r,a),l&&i(t,l,h,a,s),l&&n(t,l)},remove:function(){this.group[Ai](),this[s][me]()},_updateController:function(t,e,i){var n=t[nn],r=this[s];r[l](t.get("roam")||!1);var a=t.type.split(".")[0];r.off("pan").on("pan",function(e,n){i[ln]({type:"geoRoam",component:a,name:t.name,dx:e,dy:n})}),r.off("zoom").on("zoom",function(e,n,r){if(i[ln]({type:"geoRoam",component:a,name:t.name,zoom:e,originX:n,originY:r}),this._updateGroup){var o=this.group,s=o.scale;o[ki](function(t){"text"===t.type&&t.attr("scale",[1/s[0],1/s[1]])})}},this),r.rect=n.getViewRect()}},r}),e("echarts/chart/map/MapView",[Qr,xt,"../../component/helper/MapDraw",T],function(t){var e=t(xt),i=t("../../component/helper/MapDraw");t(T)[jt]({type:"map",render:function(t,e,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var a=this.group;if(a[Ai](),r&&"geoRoam"===r.type&&r.component===pn&&r.name===t.name){var o=this._mapDraw;o&&a.add(o.group)}else if(t.needsDrawMap){var o=this._mapDraw||new i(n,!0);a.add(o.group),o.draw(t,e,n,this),this._mapDraw=o}else this._mapDraw&&this._mapDraw[Pi](),this._mapDraw=null;t.get("showLegendSymbol")&&e[on](se)&&this._renderSymbols(t,e,n)}},remove:function(){this._mapDraw&&this._mapDraw[Pi](),this._mapDraw=null,this.group[Ai]()},_renderSymbols:function(t,i,n){var r=t[En](),a=this.group;r.each("value",function(t,i){if(!isNaN(t)){var n=r[zt](i);if(n&&n.point){var o=n.point,s=n[Qe],l=new e[Je]({style:{fill:r[Ot]("color")},shape:{cx:o[0]+9*s,cy:o[1],r:3},silent:!0,z2:10});if(!s){var u=r[zn](i),c=r[In](i),h=c[tr](S),d=c[tr](M),f=h[tr](Qn),p=d[tr](Qn),v=r[wi](i);l[Ue]({textPosition:"bottom"});var m=function(){l[Ue]({text:d.get("show")?u:"",textFill:p[Ge](),textFont:p[Kn]()})},g=function(){l[Ue]({text:h.get("show")?u:"",textFill:f[Ge](),textFont:f[Kn]()})};v.on(He,m).on(Fe,g).on(Zn,m).on(Gn,g),g()}a.add(l)}}})}})}),e("echarts/action/roamHelper",[Qr],function(t){var e={};return e.calcPanAndZoom=function(t,e){var i=e.dx,n=e.dy,r=e.zoom,a=t.get("x")||0,o=t.get("y")||0,s=t.get("zoom")||1;if(null!=i&&null!=n&&(a+=i,o+=n),null!=r){var l=(e.originX-a)*(r-1),u=(e.originY-o)*(r-1);a-=l,o-=u}return{x:a,y:o,zoom:(r||1)*s}},e}),e("echarts/action/geoRoam",[Qr,Kr,"./roamHelper",K],function(t){var e=t(Kr),i=t("./roamHelper"),n=t(K),r={type:"geoRoam",event:"geoRoam",update:"updateLayout"};n[$t](r,function(t,n){var r=t.component||pn;n[ie](r,function(n){if(n.name===t.name){var a=n[nn];if("geo"!==a.type)return;var o=n[tr](u),s=i.calcPanAndZoom(o,t);n.setRoamPan&&n.setRoamPan(s.x,s.y),n.setRoamZoom&&n.setRoamZoom(s.zoom),a&&a.setPan(s.x,s.y),a&&a.setZoom(s.zoom),r===pn&&e.each(n.seriesGroup,function(t){t.setRoamPan(s.x,s.y),t.setRoamZoom(s.zoom)})}})})}),e("echarts/coord/geo/GeoModel",[Qr,Tt,R],function(t){var e=t(Tt),i=t(R);i[Cr]({type:"geo",coordinateSystem:null,init:function(t){i[Jr].init.apply(this,arguments),e[Fn](t.label,[Cn,"show",Qn,fr,Dn])},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",map:"",roamDetail:{x:0,y:0,zoom:1},label:{normal:{show:!1,textStyle:{color:"#000"}},emphasis:{show:!0,textStyle:{color:"rgb(100,0,0)"}}},itemStyle:{normal:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{color:"rgba(255,215,0,0.8)"}}},getFormattedLabel:function(t,e){var i=this.get("label."+e+".formatter"),n={name:t};return typeof i===Br?(n.status=e,i(n)):typeof i===Fr?i[Nr]("{a}",n.seriesName):void 0},setRoamZoom:function(t){var e=this[Un][u];e&&(e.zoom=t)},setRoamPan:function(t,e){var i=this[Un][u];i&&(i.x=t,i.y=e)}})}),e("zrender/contain/polygon",[Qr,"./windingLine"],function(t){function e(t,e){return Math.abs(t-e)<r}function i(t,i,r){var a=0,o=t[0];if(!o)return!1;for(var s=1;s<t[jr];s++){var l=t[s];a+=n(o[0],o[1],l[0],l[1],i,r),o=l}var u=t[0];return e(o[0],u[0])&&e(o[1],u[1])||(a+=n(o[0],o[1],u[0],u[1],i,r)),0!==a}var n=t("./windingLine"),r=1e-8;return{contain:i}}),e("echarts/coord/geo/Region",[Qr,"zrender/contain/polygon",hr,"zrender/core/bbox",vr],function(t){function e(t,e,i){if(this.name=t,this.contours=e,i)i=[i[0],i[1]];else{var n=this[Jn]();i=[n.x+n.width/2,n.y+n[ur]/2]}this[Vr]=i}var i=t("zrender/contain/polygon"),n=t(hr),r=t("zrender/core/bbox"),a=t(vr);return e[Jr]={constructor:e,getBoundingRect:function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,i=[e,e],o=[-e,-e],s=[],l=[],u=this.contours,c=0;c<u[jr];c++)r.fromPoints(u[c],s,l),a.min(i,i,s),a.max(o,o,l);return 0===c&&(i[0]=i[1]=o[0]=o[1]=0),this._rect=new n(i[0],i[1],o[0]-i[0],o[1]-i[1])},contain:function(t){var e=this[Jn](),n=this.contours;if(e[vi](t[0],t[1]))for(var r=0,a=n[jr];a>r;r++)if(i[vi](n[r],t[0],t[1]))return!0;return!1},transformTo:function(t,e,i,r){var o=this[Jn](),s=o.width/o[ur];i?r||(r=i/s):i=s*r;for(var l=new n(t,e,i,r),u=o.calculateTransform(l),c=this.contours,h=0;h<c[jr];h++)for(var d=0;d<c[h][jr];d++)a[cr](c[h][d],c[h][d],u);o=this._rect,o.copy(l),this[Vr]=[o.x+o.width/2,o.y+o[ur]/2]}},e}),e("echarts/coord/geo/parseGeoJson",[Qr,Kr,"./Region"],function(t){function e(t){if(!t.UTF8Encoding)return t;for(var e=t.features,n=0;n<e[jr];n++)for(var r=e[n],a=r.geometry,o=a.coordinates,s=a.encodeOffsets,l=0;l<o[jr];l++){var u=o[l];if(a.type===$e)o[l]=i(u,s[l]);else if("MultiPolygon"===a.type)for(var c=0;c<u[jr];c++){var h=u[c];u[c]=i(h,s[l][c])}}return t.UTF8Encoding=!1,t}function i(t,e){for(var i=[],n=e[0],r=e[1],a=0;a<t[jr];a+=2){var o=t.charCodeAt(a)-64,s=t.charCodeAt(a+1)-64;o=o>>1^-(1&o),s=s>>1^-(1&s),o+=n,s+=r,n=o,r=s,i.push([o/1024,s/1024])}return i}function n(t){for(var e=[],i=0;i<t[jr];i++)for(var n=0;n<t[i][jr];n++)e.push(t[i][n]);return e}var r=t(Kr),a=t("./Region");return function(t){return e(t),r.map(r[$r](t.features,function(t){return t.geometry&&t.properties}),function(t){var e=t.properties,i=t.geometry,r=i.coordinates;return"MultiPolygon"===i.type&&(r=n(r)),new a(e.name,r,e.cp)})}}),e("echarts/coord/View",[Qr,vr,dr,"zrender/mixin/Transformable",Kr,hr],function(t){function e(){a.call(this)}function i(t){this.name=t,a.call(this),this._roamTransform=new e,this._viewTransform=new e}var n=t(vr),r=t(dr),a=t("zrender/mixin/Transformable"),o=t(Kr),s=t(hr),l=n[cr];return o.mixin(e,a),i[Jr]={constructor:i,type:"view",dimensions:["x","y"],setBoundingRect:function(t,e,i,n){return this._rect=new s(t,e,i,n),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,e,i,n){this.transformTo(t,e,i,n),this._viewRect=new s(t,e,i,n)},transformTo:function(t,e,i,n){var r=this[Jn](),a=this._viewTransform;a[Xi]=r.calculateTransform(new s(t,e,i,n)),a.decomposeTransform(),this._updateTransform()},setPan:function(t,e){this._roamTransform[Cn]=[t,e],this._updateTransform()},setZoom:function(t){this._roamTransform.scale=[t,t],this._updateTransform()},getRoamTransform:function(){return this._roamTransform[Xi]},_updateTransform:function(){var t=this._roamTransform,e=this._viewTransform;e[Ui]=t,t[ji](),e[ji](),e[Xi]&&r.copy(this[Xi]||(this[Xi]=[]),e[Xi]),this.decomposeTransform()},getViewRect:function(){return this._viewRect},dataToPoint:function(t){var e=this[Xi];return e?l([],t,e):[t[0],t[1]]},pointToData:function(t){var e=this[Wi];return e?l([],t,e):[t[0],t[1]]}},o.mixin(i,a),i}),e("echarts/coord/geo/fix/nanhai",[Qr,"../Region"],function(t){for(var e=t("../Region"),i=[126,25],n=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],r=0;r<n[jr];r++)for(var a=0;a<n[r][jr];a++)n[r][a][0]/=10.5,n[r][a][1]/=-14,n[r][a][0]+=i[0],n[r][a][1]+=i[1];return function(t){"china"===t.map&&t.regions.push(new e("南海诸岛",n,i))}}),e("echarts/coord/geo/fix/textCoord",[Qr,Kr],function(t){var e=t(Kr),i={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};return function(t){e.each(t.regions,function(t){var e=i[t.name];if(e){var n=t[Vr];n[0]+=e[0]/10.5,n[1]+=-e[1]/14}})}}),e("echarts/coord/geo/fix/geoCoord",[Qr,Kr],function(t){var e=t(Kr),i={Russia:[100,60],"United States of America":[-99,38]};return function(t){e.each(t.regions,function(t){var e=i[t.name];if(e){var n=t[Vr];n[0]=e[0],n[1]=e[1]}})}}),e("echarts/coord/geo/Geo",[Qr,"./parseGeoJson",Kr,hr,"../View","./fix/nanhai","./fix/textCoord","./fix/geoCoord"],function(t){function e(t,e,i,n,r){a.call(this,t),this.map=e,this._nameCoordMap={},this.loadGeoJson(i,n,r)}var i=t("./parseGeoJson"),n=t(Kr),r=t(hr),a=t("../View"),o=[t("./fix/nanhai"),t("./fix/textCoord"),t("./fix/geoCoord")];return e[Jr]={constructor:e,type:"geo",dimensions:["lng","lat"],loadGeoJson:function(t,e,r){try{this.regions=t?i(t):[]}catch(a){throw"Invalid geoJson format\n"+a}e=e||{},r=r||{};for(var s=this.regions,l={},u=0;u<s[jr];u++){var c=s[u].name;c=r[c]||c,s[u].name=c,l[c]=s[u],this.addGeoCoord(c,s[u][Vr]);var h=e[c];h&&s[u].transformTo(h.left,h.top,h.width,h[ur])}this._regionsMap=l,this._rect=null,n.each(o,function(t){t(this)},this)},transformTo:function(t,e,i,n){var a=this[Jn]();a=a.clone(),a.y=-a.y-a[ur];var o=this._viewTransform;o[Xi]=a.calculateTransform(new r(t,e,i,n)),o.decomposeTransform();var s=o.scale;s[1]=-s[1],o[ji](),this._updateTransform()},getRegion:function(t){return this._regionsMap[t]},addGeoCoord:function(t,e){this._nameCoordMap[t]=e},getGeoCoord:function(t){return this._nameCoordMap[t]},getBoundingRect:function(){if(this._rect)return this._rect;for(var t,e=this.regions,i=0;i<e[jr];i++){var n=e[i][Jn]();t=t||n.clone(),t.union(n)}return this._rect=t||new r(0,0,0,0)},dataToPoints:function(t){var e=[];return t[Et](["lng","lat"],function(t,i){return e[0]=t,e[1]=i,this[st](e)},this)},dataToPoint:function(t){return typeof t===Fr&&(t=this.getGeoCoord(t)),t?a[Jr][st].call(this,t):void 0}},n.mixin(e,a),e}),e("echarts/coord/geo/geoCreator",[Qr,"./GeoModel","./Geo",V,Kr,T],function(t){function e(t,e){var i=this[Jn](),n=t[P]();n.aspect=i.width/i[ur]*.75;var r=a[wn](n,{width:e[cn](),height:e[un]()});this.setViewRect(r.x,r.y,r.width,r[ur]);var o=t[tr](u),s=o.get("x")||0,l=o.get("y")||0,c=o.get("zoom")||1;this.setPan(s,l),this.setZoom(c)}function i(t,e){o.each(e.get("geoCoord"),function(e,i){t.addGeoCoord(i,e)})}function n(t){console.error("Map "+t+" not exists")}t("./GeoModel");var r=t("./Geo"),a=t(V),o=t(Kr),s={},l={dimensions:r[Jr][en],create:function(t,a){var l=[];t[ie]("geo",function(t,o){var u=t.get("map"),c=s[u];c||n(u);var h=new r(u+o,u,c&&c.geoJson,c&&c.specialAreas,t.get("nameMap"));l.push(h),i(h,t),t[nn]=h,h.model=t,h[Me]=e,h[Me](t,a)}),t[he](function(t){var e=t.get(nn);if("geo"===e){var i=t.get("geoIndex")||0;t[nn]=l[i]}});var u={};return t[de]("map",function(t){var e=t.get("map");u[e]=u[e]||[],u[e].push(t)}),o.each(u,function(t,u){var c=s[u];c||n(name);var h=o.map(t,function(t){return t.get("nameMap")}),d=new r(u,u,c&&c.geoJson,c&&c.specialAreas,o.mergeAll(h));l.push(d),d[Me]=e,d[Me](t[0],a),o.each(t,function(t){t[nn]=d,i(d,t)})}),l},registerMap:function(t,e,i){e.geoJson&&!e.features&&(i=e.specialAreas,e=e.geoJson),typeof e===Fr&&(e=typeof JSON!==pr&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")()),s[t]={geoJson:e,specialAreas:i}},getMap:function(t){return s[t]}},c=t(T);c.registerMap=l.registerMap,c.getMap=l.getMap,c.loadMap=function(){},c.registerCoordinateSystem("geo",l)}),e("echarts/chart/map/mapSymbolLayout",[Qr,Kr],function(t){var e=t(Kr);return function(t){var i={};t[de]("map",function(n){var r=n.get("mapType");if(!i[r]){var a={};e.each(n.seriesGroup,function(e){var i=e[nn],n=e[En]();e.get("showLegendSymbol")&&t[on](se)&&n.each("value",function(t,e){var r=n[zn](e),o=i.getRegion(r);if(o&&!isNaN(t)){var s=a[r]||0,l=i[st](o[Vr]);a[r]=s+1,n[It](e,{point:l,offset:s})}})});var o=n[En]();o.each(function(t){var e=o[zn](t),i=o[zt](t)||{};i.showLabel=!a[e],o[It](t,i)}),i[r]=!0}})}}),e("echarts/chart/map/mapVisual",[Qr],function(t){return function(t){t[de]("map",function(t){var e=t.get("color"),i=t[tr](C),n=i.get("areaColor"),r=i.get("color")||e[t[Nn]%e[jr]];t[En]()[ve]({areaColor:n,color:r})})}}),e("echarts/chart/map/mapDataStatistic",[Qr,Kr],function(t){function e(t,e){for(var i={},n=["value"],r=0;r<t[jr];r++)t[r].each(n,function(e,n){var a=t[r][zn](n);i[a]=i[a]||[],isNaN(e)||i[a].push(e)});return t[0].map(n,function(n,r){for(var a=t[0][zn](r),o=0,s=1/0,l=-(1/0),u=i[a][jr],c=0;u>c;c++)s=Math.min(s,i[a][c]),l=Math.max(l,i[a][c]),o+=i[a][c];var h;return h="min"===e?s:"max"===e?l:"average"===e?o/u:o,0===u?NaN:h})}var i=t(Kr);return function(t){var n={};t[de]("map",function(t){var e=t.get("map");n[e]=n[e]||[],n[e].push(t)}),i.each(n,function(t,n){var r=e(i.map(t,function(t){return t[En]()}),t[0].get("mapValueCalculation"));t[0].seriesGroup=[],t[0][ri](r);for(var a=0;a<t[jr];a++)t[a].seriesGroup=t,t[a].needsDrawMap=0===a})}}),e("echarts/chart/map/backwardCompat",[Qr,Kr],function(t){function e(t){var e={};return i.each(n,function(i){null!=t[i]&&(e[i]=t[i])}),e}var i=t(Kr),n=["x","y","x2","y2","width",ur,"map","roam",u,"label",ue],r={};return function(t){var n=[];i.each(t[pn],function(t){"map"===t.type&&n.push(t),i[Cr](r,t.geoCoord)});var a={};i.each(n,function(n){if(n.map=n.map||n.mapType,i[ir](n,n.mapLocation),n[le]){var o=n[le];if(o.data=i.map(o.data,function(t){if(!i[Or](t.value)){var e;t.geoCoord?e=t.geoCoord:t.name&&(e=r[t.name]);var n=e?[e[0],e[1]]:[NaN,NaN];null!=t.value&&n.push(t.value),t.value=n}return t}),!n.data||!n.data[jr]){t.geo||(t.geo=[]);var s=a[n.map];s||(s=a[n.map]=e(n),t.geo.push(s));var l=n[le];l.type=t.effect&&t.effect.show?"effectScatter":ae,l[nn]="geo",l.geoIndex=i[Hr](t.geo,s),l.name=n.name,t[pn][Ki](i[Hr](t[pn],n),1,l)}}})}}),e("echarts/chart/map",[Qr,K,"./map/MapSeries","./map/MapView","../action/geoRoam","../coord/geo/geoCreator","./map/mapSymbolLayout","./map/mapVisual","./map/mapDataStatistic","./map/backwardCompat","../action/createDataSelectAction"],function(t){var e=t(K);t("./map/MapSeries"),t("./map/MapView"),t("../action/geoRoam"),t("../coord/geo/geoCreator"),e[Yt](t("./map/mapSymbolLayout")),e[Xt]("chart",t("./map/mapVisual")),e[Kt]("statistic",t("./map/mapDataStatistic")),e[Jt](t("./map/backwardCompat")),t("../action/createDataSelectAction")("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])}),e("echarts/data/helper/linkList",[Qr,Kr],function(t){function e(t,e,n){return i.each(r,function(r,a){var o=t[a];t[a]=i.curry(r,o,e,n)}),t[n]=e,e.data=t,t}var i=t(Kr),n=Array[Jr].slice,r={cloneShallow:function(t,i,r){var a=t.apply(this,n.call(arguments,3));return e(a,i,r)},map:function(t,i,r){var a=t.apply(this,n.call(arguments,3));return e(a,i,r)},filterSelf:function(t,e,i){var r=t.apply(this,n.call(arguments,3));return e[Se](),r}};return{linkToGraph:function(t,i){e(t,i,"graph")},linkToTree:function(t,i){e(t,i,"tree")}}}),e("echarts/data/Tree",[Qr,Kr,"../model/Model","./List","./helper/linkList","./helper/completeDimensions"],function(t){function e(t,e){this.root,this.data,this._nodes=[],this[Qt]=t,this.levelModels=n.map(e||[],function(e){return new r(e,t,t[er])})}function i(t,e){var i=e.children;t[Le]!==e&&(i.push(t),t[Le]=e,e.hostTree._nodes.push(t))}var n=t(Kr),r=t("../model/Model"),s=t("./List"),l=t("./helper/linkList"),u=t("./helper/completeDimensions"),c=function(t,e,i){this.name=t||"",this.depth=0,this[ur]=0,this[Le]=null,this[bi]=null==e?-1:e,this.children=[],this.viewChildren=[],this.hostTree=i};return c[Jr]={constructor:c,isRemoved:function(){return this[bi]<0},eachNode:function(t,e,i){typeof t===Br&&(i=e,e=t,t=null),t=t||{},n[fn](t)&&(t={order:t});var r,a=t.order||"preorder",s=this[t.attr||"children"];"preorder"===a&&(r=e.call(i,this));for(var l=0;!r&&l<s[jr];l++)s[l][o](t,e,i);"postorder"===a&&e.call(i,this)},updateDepthAndHeight:function(t){var e=0;this.depth=t;for(var i=0;i<this.children[jr];i++){var n=this.children[i];n.updateDepthAndHeight(t+1),n[ur]>e&&(e=n[ur])}this[ur]=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,i=this.children,n=i[jr];n>e;e++){var r=i[e].getNodeById(t);if(r)return r}},contains:function(t){if(t===this)return!0;for(var e=0,i=this.children,n=i[jr];n>e;e++){var r=i[e].contains(t);if(r)return r}},getAncestors:function(t){for(var e=[],i=t?this:this[Le];i;)e.push(i),i=i[Le];return e[a](),e},getValue:function(t){var e=this.hostTree.data;return e.get(e[Ht](t||"value"),this[bi])},setLayout:function(t,e){this[bi]>=0&&this.hostTree.data[It](this[bi],t,e)},getLayout:function(){return this.hostTree.data[zt](this[bi])},getModel:function(t){if(!(this[bi]<0)){var e=this.hostTree,i=e.data[In](this[bi]),n=this.getLevelModel();return i[tr](t,(n||e[Qt])[tr](t))}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(t,e){this[bi]>=0&&this.hostTree.data[fe](this[bi],t,e)},getVisual:function(t,e){return this.hostTree.data[Pt](this[bi],t,e)},getRawIndex:function(){return this.hostTree.data[Vn](this[bi])},getId:function(){return this.hostTree.data.getId(this[bi])}},e[Jr]={constructor:e,type:"tree",eachNode:function(t,e,i){this.root[o](t,e,i);
},getNodeByDataIndex:function(t){var e=this.data[Vn](t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,i=0,n=e[jr];n>i;i++)e[i][bi]=-1;for(var i=0,n=t.count();n>i;i++)e[t[Vn](i)][bi]=i}},e.createTree=function(t,n,r){function a(t,e){h.push(t);var n=new c(t.name,h[jr]-1,o);e?i(n,e):o.root=n;var r=t.children;if(r)for(var s=0;s<r[jr];s++)a(r[s],n)}var o=new e(n,r),h=[];a(t),o.root.updateDepthAndHeight(0);var d=u([{name:"value"}],h),f=new s(d,n);return f[Ft](h),l.linkToTree(f,o),o},e}),e("echarts/chart/treemap/TreemapSeries",[Qr,bt,"../../data/Tree",Kr,k,v],function(t){function e(t,i){var n=0;o.each(t.children,function(t){e(t,i);var r=t.value;o[Or](r)&&(r=r[0]),n+=r});var r=t.value;i>=0&&(o[Or](r)?r=r[0]:t.value=new Array(i)),(null==r||isNaN(r))&&(r=n),0>r&&(r=0),i>=0?t.value[0]=r:t.value=r}function i(t,e){var i=e.get("color");if(i){t=t||[];var n;if(o.each(t,function(t){var e=new s(t),i=e.get("color");(e.get(re)||i&&"none"!==i)&&(n=!0)}),!n){var r=t[0]||(t[0]={});r.color=i.slice()}return t}}var n=t(bt),r=t("../../data/Tree"),o=t(Kr),s=t(k),l=t(v),u=l[an],c=l[rn];return n[Cr]({type:"series.treemap",dependencies:["grid","polar"],defaultOption:{left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),root:null,visualDimension:0,zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:1500,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{normal:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}}},label:{normal:{show:!0,position:["50%","50%"],textStyle:{align:"center",baseline:"middle",color:"#fff",ellipsis:!0}}},itemStyle:{normal:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{}},color:"none",colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(t,n){var a=t.data||[],s=t.name;null==s&&(s=t.name);var l={name:s,children:t.data},u=(a[0]||{}).value;e(l,o[Or](u)?u[jr]:-1);var c=t.levels||[];return c=t.levels=i(c,n),r.createTree(l,this,c).data},getViewRoot:function(){var t=this[Un].root,e=this[En]().tree.root;return t&&e.getNodeById(t)||e},formatTooltip:function(t){var e=this[En](),i=this[Rn](t),n=c(o[Or](i)?i[0]:i),r=e[zn](t);return u(r)+": "+n},getDataParams:function(t){for(var e=n[Jr][Pn].apply(this,arguments),i=this[En](),r=i.tree.getNodeByDataIndex(t),o=e.treePathInfo=[];r;){var s=r[bi];o.push({name:r.name,dataIndex:s,value:this[Rn](s)}),r=r[Le]}return o[a](),e},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},o[Cr](this.layoutInfo,t)},mapIdToIndex:function(t){var e=this._idIndexMap;e||(e=this._idIndexMap={},this._idIndexMapCount=0);var i=e[t];return null==i&&(e[t]=i=this._idIndexMapCount++),i}})}),e("echarts/chart/treemap/helper",[Qr],function(t){var e={retrieveTargetInfo:function(t,e){if(t&&"treemapZoomToNode"===t.type){var i=e[En]().tree.root,n=t.targetNode;if(n&&i.contains(n))return{node:n};var r=t.targetNodeId;return null!=r&&(n=i.getNodeById(r))?{node:n}:null}}};return e}),e("echarts/chart/treemap/Breadcrumb",[Qr,xt,V,Kr],function(t){function e(t,e){this.group=new n.Group,t.add(this.group),this._onSelect=e||a.noop}function i(t,e,i,n,r,a){var o=[[r?t:t-l,e],[t+i,e],[t+i,e+n],[r?t:t-l,e+n]];return!a&&o[Ki](2,0,[t+i+l,e+n/2]),!r&&o.push([t,e+n/2]),o}var n=t(xt),r=t(V),a=t(Kr),o=8,s=8,l=5;return e[Jr]={constructor:e,render:function(t,e,i){var n=t[tr]("breadcrumb"),a=this.group;if(a[Ai](),n.get("show")&&i){var o=n[tr](C),s=o[tr](Qn),l={pos:{left:n.get("left"),right:n.get("right"),top:n.get("top"),bottom:n.get(Ir)},box:{width:e[cn](),height:e[un]()},emptyItemWidth:n.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,i,l,s),this._renderContent(n,i,l,o,s),r[xn](a,l.pos,l.box)}},_prepare:function(t,e,i,n){for(var r=e;r;r=r[Le]){var a=r[tr]().get("name"),l=n.getTextRect(a),u=Math.max(l.width+2*o,i.emptyItemWidth);i.totalWidth+=u+s,i.renderList.push({node:r,text:a,width:u})}},_renderContent:function(t,e,o,l,u){for(var c=0,h=o.emptyItemWidth,d=t.get(ur),f=r.getAvailableSize(o.pos,o.box),p=o.totalWidth,v=o.renderList,m=v[jr]-1;m>=0;m--){var g=v[m],y=g.width,x=g.text;p>f.width&&(p-=y-h,y=h,x=""),this.group.add(new n[$e]({shape:{points:i(c,0,y,d,m===v[jr]-1,0===m)},style:a[ir](l[dt](),{lineJoin:"bevel",text:x,textFill:u[Ge](),textFont:u[Kn]()}),onclick:a.bind(this._onSelect,this,g.node)})),c+=y+s}},remove:function(){this.group[Ai]()}},e}),e("echarts/util/animation",[Qr,Kr],function(t){function e(){var t,e=[],n={};return{add:function(t,r,a,o,s){return i[fn](o)&&(s=o,o=0),n[t.id]?!1:(n[t.id]=1,e.push({el:t,target:r,time:a,delay:o,easing:s}),!0)},done:function(e){return t=e,this},start:function(){function i(){r--,r||(e[jr]=0,n={},t&&t())}for(var r=e[jr],a=0,o=e[jr];o>a;a++){var s=e[a];s.el[Be](s[Zi],s.time,s.delay,s.easing,i)}return this}}}var i=t(Kr);return{createWrap:e}}),e("echarts/chart/treemap/TreemapView",[Qr,Kr,xt,"../../data/DataDiffer","./helper","./Breadcrumb","../../component/helper/RoamController",hr,dr,"../../util/animation",T],function(t){function e(){return{nodeGroup:[],background:[],content:[]}}var i=t(Kr),n=t(xt),r=t("../../data/DataDiffer"),a=t("./helper"),u=t("./Breadcrumb"),c=t("../../component/helper/RoamController"),h=t(hr),d=t(dr),f=t("../../util/animation"),p=i.bind,v=n.Group,m=n.Rect,g=i.each,y=3;return t(T)[jt]({type:"treemap",init:function(t,i){this._containerGroup,this._storage=e(),this._oldTree,this._breadcrumb,this[s],this._state="ready",this._mayClick},render:function(t,e,n,r){var o=e[dn]({mainType:"series",subType:"treemap",query:r});if(!(i[Hr](o,t)<0)){this.seriesModel=t,this.api=n,this[er]=e;var s=r&&r.type,l=t.layoutInfo,u=!this._oldTree,c=this._giveContainerGroup(l),h=this._doRender(c,t);u||s&&"treemapZoomToNode"!==s?h.renderFinally():this._doAnimation(c,h,t),this._resetController(n);var d=a.retrieveTargetInfo(r,t);this._renderBreadcrumb(t,n,d)}},_giveContainerGroup:function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new v,this._initEvents(e),this.group.add(e)),e[Cn]=[t.x,t.y],e},_doRender:function(t,n){function a(t,e,n,o,s){function l(t){return t.getId()}function u(i,r){var l=null!=i?t[i]:null,u=null!=r?e[r]:null,c=s||l===x;c||(l=null);var h=y(l,u,n);h&&a(l&&l.viewChildren||[],u&&u.viewChildren||[],h,o,c)}o?(e=t,g(t,function(t,e){!t.isRemoved()&&u(e,e)})):new r(e,t,l,l).add(u)[Se](u)[Pi](i.curry(u,null))[ct]()}function o(t){var i=e();return t&&g(t,function(t,e){var n=i[e];g(t,function(t){t&&(n.push(t),t.__tmWillDelete=e)})}),i}function s(){g(m,function(t){g(t,function(t){t[Ui]&&t[Ui][Pi](t)})}),g(f,function(t){t[Ti]=!0}),g(v,function(t){t[Ti]=!1,t.__tmWillVisible=!1,t.dirty()})}var l=n[En]().tree,u=this._oldTree,c=e(),h=e(),d=this._storage,f=[],v=[],m=[],y=p(this._renderNode,this,h,d,c,f,v),x=n.getViewRoot();a(l.root?[l.root]:[],u&&u.root?[u.root]:[],t,l===u||!u,x===l.root);var m=o(d);return this._oldTree=l,this._storage=h,{lastsForAnimation:c,willDeleteEls:m,renderFinally:s}},_renderNode:function(t,e,n,r,a,o,s,l){function u(i,r){var a=null!=p&&e[i][p],o=n[i];return a?(e[i][p]=null,c(o,a,i)):_||(a=new r,h(o,a,i)),t[i][f]=a}function c(t,e,n){var r=t[f]={};r.old="nodeGroup"===n?e[Cn].slice():i[Cr]({},e.shape)}function h(t,e,i){if("background"===i)e[Ti]=!0,e.__tmWillVisible=!0,a.push(e);else{var r,s=o[Le],l=0,u=0;s&&(r=n.background[s[Vn]()])&&(l=r.old.width,u=r.old[ur]);var c=t[f]={};c.old="nodeGroup"===i?[l,u]:{x:l,y:u,width:0,height:0},c.fadein="nodeGroup"!==i}}function d(t,e){_?!t[Ti]&&r.push(t):(t[Ue](e),t.__tmWillVisible||(t[Ti]=!1))}var f=o&&o[Vn](),p=s&&s[Vn]();if(o){var g=o[Vt](),y=g.width,x=g[ur],_=g[Ti],w=u("nodeGroup",v);if(w){l.add(w),w[Cn]=[g.x,g.y],w.__tmNodeWidth=y,w.__tmNodeHeight=x;var b=u("background",m);b&&(b[ai]({x:0,y:0,width:y,height:x}),d(b,{fill:o[Ot](Yn,!0)}),w.add(b));var M=o.viewChildren;if(!M||!M[jr]){var A=g[Xn],C=u("content",m);if(C){var T=Math.max(y-2*A,0),k=Math.max(x-2*A,0),L=o[tr](S),D=o[tr]("label.normal.textStyle"),P=o[tr]().get("name"),I=D.getTextRect(P),z=L.get("show");!z||I[ur]>k?P="":I.width>T&&(P=D.get("ellipsis")?D.ellipsis(P,T):""),C[bi]=o[bi],C[Nn]=this.seriesModel[Nn],C.culling=!0,C[ai]({x:A,y:A,width:T,height:k}),d(C,{fill:o[Ot]("color",!0),text:P,textPosition:L.get(Cn),textFill:D[Ge](),textAlign:D.get("align"),textBaseline:D.get($n),textFont:D[Kn]()}),w.add(C)}}return w}}},_doAnimation:function(t,e,n){if(n.get(Bi)){var r=n.get("animationDurationUpdate"),a=n.get("animationEasing"),o=f.createWrap(),s=this.seriesModel.getViewRoot(),l=this._storage.nodeGroup[s[Vn]()];l&&l[ki](function(t){var e;if(!t[Ti]&&(e=t.__tmWillDelete)){var i=0,n=0,s=t[Ui];s.__tmWillDelete||(i=s.__tmNodeWidth,n=s.__tmNodeHeight);var l="nodeGroup"===e?{position:[i,n],style:{opacity:0}}:{shape:{x:i,y:n,width:0,height:0},style:{opacity:0}};o.add(t,l,r,a)}}),g(this._storage,function(t,n){g(t,function(t,s){var l,u=e.lastsForAnimation[n][s];u&&("nodeGroup"===n?(l={position:t[Cn].slice()},t[Cn]=u.old):(l={shape:i[Cr]({},t.shape)},t[ai](u.old),u.fadein?(t[Ue](xr,0),l.style={opacity:1}):1!==t.style[xr]&&(l.style={opacity:1})),o.add(t,l,r,a))})},this),this._state="animating",o.done(p(function(){this._state="ready",e.renderFinally()},this)).start()}},_resetController:function(t){var e=this[s];e||(e=this[s]=new c(t.getZr()),e[l](this.seriesModel.get("roam")),e.on("pan",p(this._onPan,this)),e.on("zoom",p(this._onZoom,this))),e.rect=new h(0,0,t[cn](),t[un]())},_clearController:function(){var t=this[s];t&&(t.off("pan").off("zoom"),t=null)},_onPan:function(t,e){if(this._mayClick=!1,"animating"!==this._state&&(Math.abs(t)>y||Math.abs(e)>y)){var i=this.seriesModel.getViewRoot();if(!i)return;var n=i[Vt]();if(!n)return;this.api[ln]({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t,y:n.y+e,width:n.width,height:n[ur]}})}},_onZoom:function(t,e,i){if(this._mayClick=!1,"animating"!==this._state){var n=this.seriesModel.getViewRoot();if(!n)return;var r=n[Vt]();if(!r)return;var a=new h(r.x,r.y,r.width,r[ur]),o=this.seriesModel.layoutInfo;e-=o.x,i-=o.y;var s=d[lr]();d[sr](s,s,[-e,-i]),d.scale(s,s,[t,t]),d[sr](s,s,[e,i]),a[cr](s),this.api[ln]({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x,y:a.y,width:a.width,height:a[ur]}})}},_initEvents:function(t){function e(t){var e=this.seriesModel.get("nodeClick",!0);if(e){var i=this.findTarget(t[Pe],t[De]);if(i)if("zoomToNode"===e)this._zoomToNode(i);else if("link"===e){var n=i.node,r=n.hostTree.data[In](n[bi]),a=r.get("link",!0),o=r.get(Zi,!0)||"blank";a&&window.open(a,o)}}}t.on(Ve,function(t){"ready"===this._state&&(this._mayClick=!0)},this),t.on(Ie,function(t){this._mayClick&&(this._mayClick=!1,"ready"===this._state&&e.call(this,t))},this)},_renderBreadcrumb:function(t,e,i){function n(t){this._zoomToNode({node:t})}i||(i=this.findTarget(e[cn]()/2,e[un]()/2),i||(i={node:t[En]().tree.root})),(this._breadcrumb||(this._breadcrumb=new u(this.group,p(n,this))))[Si](t,e,i.node)},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup[Ai](),this._storage=e(),this._state="ready",this._breadcrumb&&this._breadcrumb[Pi]()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api[ln]({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var i,n=this.seriesModel.getViewRoot();return n[o]({attr:"viewChildren",order:"preorder"},function(n){var r=this._storage.background[n[Vn]()];if(r){var a=r[Fi](t,e),o=r.shape;if(!(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o[ur]))return!1;i={node:n,offsetX:a[0],offsetY:a[1]}}},this),i}})}),e("echarts/chart/treemap/treemapAction",[Qr,T],function(t){var e=t(T),i=function(){};e[$t]({type:"treemapZoomToNode",update:"updateView"},i),e[$t]({type:"treemapRender",update:"updateView"},i),e[$t]({type:"treemapMove",update:"updateView"},i)}),e("echarts/visual/VisualMapping",[Qr,Kr,Gi,"../util/number"],function(t){function e(t){var e=t.pieceList;t.hasSpecialVisual=!1,u.each(e,function(e,i){e.originIndex=i,e.visual&&(t.hasSpecialVisual=!0)})}function i(t){var e=t[r],i=t.visual,n=u[Or](i);if(!e){if(n)return;throw new Error}var a=t.categoryMap={};if(d(e,function(t,e){a[t]=e}),!n){var o=[];u[Ln](i)?d(i,function(t,e){var i=a[e];o[null!=i?i:p]=t}):o[p]=i,i=t.visual=o}for(var s=e[jr]-1;s>=0;s--)null==i[s]&&(delete a[e[s]],e.pop())}function n(t){return{applyVisual:function(e,i,n){var r=i("color"),a=u[Or](e);if(e=a?[this.mapValueToVisual(e[0]),this.mapValueToVisual(e[1])]:this.mapValueToVisual(e),u[Or](r))for(var o=0,s=r[jr];s>o;o++)r[o].color=t(r[o].color,a?e[o]:e);else n("color",t(r,e))},mapValueToVisual:function(t){var e=this._normalizeData(t),i=this._getSpecifiedVisual(t),n=this[Un].visual;return null==i&&(i=l(this)?s(this,n,e):h(e,[0,1],n,!0)),i}}}function a(t,e){return t[Math.round(h(e,[0,1],[0,t[jr]-1],!0))]}function o(t,e,i){i("color",this.mapValueToVisual(t))}function s(t,e,i){return e[t[Un].loop&&i!==p?i%e[jr]:i]}function l(t){return t[Un].mappingMethod===At}var u=t(Kr),c=t(Gi),h=t("../util/number")[Er],d=u.each,f=u[Ln],p=-1,v=function(t){var n=t.mappingMethod,r=t.type;this.type=r,this.mappingMethod=n;var a=this[Un]=u.clone(t);this._normalizeData=g[n],this._getSpecifiedVisual=u.bind(y[n],this,r),u[Cr](this,m[r]),"piecewise"===n&&e(a),n===At&&i(a)};v[Jr]={constructor:v,applyVisual:null,isValueActive:null,mapValueToVisual:null,getNormalizer:function(){return u.bind(this._normalizeData,this)}};var m=v.visualHandlers={color:{applyVisual:o,getColorMapper:function(){var t=l(this)?this[Un].visual:u.map(this[Un].visual,c.parse);return u.bind(l(this)?function(e,i){return!i&&(e=this._normalizeData(e)),s(this,t,e)}:function(e,i,n){var r=!!n;return!i&&(e=this._normalizeData(e)),n=c.fastMapToColor(e,t,n),r?n:u.stringify(n,"rgba")},this)},mapValueToVisual:function(t){var e=this[Un].visual;if(u[Or](t))return t=[this._normalizeData(t[0]),this._normalizeData(t[1])],c.mapIntervalToColor(t,e);var i=this._normalizeData(t),n=this._getSpecifiedVisual(t);return null==n&&(n=l(this)?s(this,e,i):c.mapToColor(i,e)),n}},colorHue:n(function(t,e){return c.modifyHSL(t,e)}),colorSaturation:n(function(t,e){return c.modifyHSL(t,null,e)}),colorLightness:n(function(t,e){return c.modifyHSL(t,null,null,e)}),colorAlpha:n(function(t,e){return c.modifyAlpha(t,e)}),symbol:{applyVisual:function(t,e,i){var n=this.mapValueToVisual(t);if(u[fn](n))i(pt,n);else if(f(n))for(var r in n)n.hasOwnProperty(r)&&i(r,n[r])},mapValueToVisual:function(t){var e=this._normalizeData(t),i=this._getSpecifiedVisual(t),n=this[Un].visual;return null==i&&(i=l(this)?s(this,n,e):a(n,e)||{}),i}},symbolSize:{applyVisual:function(t,e,i){i(vt,this.mapValueToVisual(t))},mapValueToVisual:function(t){var e=this._normalizeData(t),i=this._getSpecifiedVisual(t),n=this[Un].visual;return null==i&&(i=l(this)?s(this,n,e):h(e,[0,1],n,!0)),i}}},g={linear:function(t){return h(t,this[Un].dataExtent,[0,1],!0)},piecewise:function(t){var e=this[Un].pieceList,i=v.findPieceIndex(t,e);return null!=i?h(i,[0,e[jr]-1],[0,1],!0):void 0},category:function(t){var e=this[Un][r]?this[Un].categoryMap[t]:t;return null==e?p:e}},y={linear:u.noop,piecewise:function(t,e){var i=this[Un],n=i.pieceList;if(i.hasSpecialVisual){var r=v.findPieceIndex(e,n),a=n[r];if(a&&a.visual)return a.visual[t]}},category:u.noop};return v.addVisualHandler=function(t,e){m[t]=e},v.isValidType=function(t){return m.hasOwnProperty(t)},v.eachVisual=function(t,e,i){u[Ln](t)?u.each(t,e,i):e.call(i,t)},v.mapVisual=function(t,e,i){var n,r=u[Or](t)?[]:u[Ln](t)?{}:(n=!0,null);return v.eachVisual(t,function(t,a){var o=e.call(i,t,a);n?r=o:r[a]=o}),r},v.isInVisualCluster=function(t,e){return"color"===e?!(!t||0!==t[Hr](e)):t===e},v.retrieveVisuals=function(t){var e,i={};return t&&d(m,function(n,r){t.hasOwnProperty(r)&&(i[r]=t[r],e=!0)}),e?i:null},v.prepareVisualTypes=function(t){if(f(t)){var e=[];d(t,function(t,i){e.push(i)}),t=e}else{if(!u[Or](t))return[];t=t.slice()}return t.sort(function(t,e){return"color"===e&&"color"!==t&&0===t[Hr]("color")?1:-1}),t},v.findPieceIndex=function(t,e){for(var i=0,n=e[jr];n>i;i++){var r=e[i];if(null!=r.value&&r.value===t)return i}for(var i=0,n=e[jr];n>i;i++){var r=e[i],a=r[Z];if(a)if(a[0]===-(1/0)){if(t<a[1])return i}else if(a[1]===1/0){if(a[0]<t)return i}else if(r[Z][0]<=t&&t<=r[Z][1])return i}},v}),e("echarts/chart/treemap/treemapVisual",[Qr,n,Gi,Kr],function(t){function e(t,n,o,l,c,h){var f=t[tr](),v=t[Vt]();if(!v[Ti]){var m,g=t[tr](p),y=o[t.depth],x=i(g,n,y,l),_=g.get(Yn),w=g.get("borderColorSaturation");null!=w&&(m=r(x,t),_=a(w,m)),t[ve](Yn,_);var b=t.viewChildren;if(b&&b[jr]){var M=s(t,f,v,g,x,b);d.each(b,function(t,i){if(t.depth>=c[jr]||t===c[t.depth]){var n=u(f,x,t,i,M,h);e(t,n,o,l,c,h)}})}else m=r(x,t),t[ve]("color",m)}}function i(t,e,i,n){var r=d[Cr]({},e);return d.each(["color","colorAlpha","colorSaturation"],function(a){var o=t.get(a,!0);null==o&&i&&(o=i[a]),null==o&&(o=e[a]),null==o&&(o=n.get(a)),null!=o&&(r[a]=o)}),r}function r(t){var e=o(t,"color");if(e){var i=o(t,"colorAlpha"),n=o(t,"colorSaturation");return n&&(e=h.modifyHSL(e,null,null,n)),i&&(e=h.modifyAlpha(e,i)),e}}function a(t,e){return null!=e?h.modifyHSL(e,null,null,t):null}function o(t,e){var i=t[e];return null!=i&&"none"!==i?i:void 0}function s(t,e,i,n,r,a){if(a&&a[jr]){var o=l(e,"color")||null!=r.color&&"none"!==r.color&&(l(e,"colorAlpha")||l(e,"colorSaturation"));if(o){var s=e.get("colorMappingBy"),u={type:o.name,dataExtent:i.dataExtent,visual:o.range};"color"!==u.type||"index"!==s&&"id"!==s?u.mappingMethod=Ni:(u.mappingMethod=At,u.loop=!0);var h=new c(u);return h.__drColorMappingBy=s,h}}}function l(t,e){var i=t.get(e);return f(i)&&i[jr]?{name:e,range:i}:null}function u(t,e,i,n,r,a){var o=d[Cr]({},e);if(r){var s=r.type,l="color"===s&&r.__drColorMappingBy,u="index"===l?n:"id"===l?a.mapIdToIndex(i.getId()):i.getValue(t.get("visualDimension"));o[s]=r.mapValueToVisual(u)}return o}var c=t(n),h=t(Gi),d=t(Kr),f=d[Or],p=C;return function(t,i){var n={mainType:"series",subType:"treemap",query:i};t[ie](n,function(t){var i=t[En]().tree,n=i.root,r=t[tr](p);if(!n.isRemoved()){var a=d.map(i.levelModels,function(t){return t?t.get(p):null});e(n,{},a,r,t.getViewRoot().getAncestors(),t)}})}}),e("echarts/chart/treemap/treemapLayout",[Qr,Kr,yt,V,hr,"./helper"],function(t){function e(t,e,n){var r={mainType:"series",subType:"treemap",query:n};t[ie](r,function(t){var r=e[cn](),a=e[un](),o=t.get("size")||[],s=y(x(t.get("width"),o[0]),r),l=y(x(t.get(ur),o[1]),a),u=g[wn](t[P](),{width:e[cn](),height:e[un]()}),f=n&&n.type,p=w.retrieveTargetInfo(n,t),v="treemapRender"===f||"treemapMove"===f?n.rootRect:null,m=t.getViewRoot();if("treemapMove"!==f){var b="treemapZoomToNode"===f?c(t,p,s,l):v?[v.width,v[ur]]:[s,l],M=t.get("sort");M&&"asc"!==M&&"desc"!==M&&(M="desc");var S={squareRatio:t.get("squareRatio"),sort:M};m[Rt]({x:0,y:0,width:b[0],height:b[1],area:b[0]*b[1]}),i(m,S)}m[Rt](h(u,v,p),!0),t.setLayoutInfo(u),d(m,new _(-u.x,-u.y,r,a))})}function i(t,e){var r,a;if(!t.isRemoved()){var o=t[Vt]();r=o.width,a=o[ur];var s=t[tr](C),c=s.get(Xn),h=s.get("gapWidth")/2,d=c-h,m=t[tr]();t[Rt]({borderWidth:c},!0),r=f(r-2*d,0),a=f(a-2*d,0);var g=r*a,y=n(t,m,g,e);if(y[jr]){var x={x:d,y:d,width:r,height:a},_=p(r,a),w=1/0,b=[];b.area=0;for(var M=0,S=y[jr];S>M;){var A=y[M];b.push(A),b.area+=A[Vt]().area;var T=l(b,_,e.squareRatio);w>=T?(M++,w=T):(b.area-=b.pop()[Vt]().area,u(b,_,x,h,!1),_=p(x.width,x[ur]),b[jr]=b.area=0,w=1/0)}b[jr]&&u(b,_,x,h,!0);var k;if(!e.hideChildren){var L=m.get("childrenVisibleMin");null!=L&&L>g&&(k=!0)}for(var M=0,S=y[jr];S>M;M++){var D=v[Cr]({hideChildren:k},e);i(y[M],D)}}}}function n(t,e,i,n){var a=t.children||[],l=n.sort;if("asc"!==l&&"desc"!==l&&(l=null),n.hideChildren)return t.viewChildren=[];a=v[$r](a,function(t){return!t.isRemoved()}),o(a,l);var u=s(e,a,l);if(0===u.sum)return t.viewChildren=[];if(u.sum=r(e,i,u.sum,l,a),0===u.sum)return t.viewChildren=[];for(var c=0,h=a[jr];h>c;c++){var d=a[c].getValue()/u.sum*i;a[c][Rt]({area:d})}return t.viewChildren=a,t[Rt]({dataExtent:u.dataExtent},!0),a}function r(t,e,i,n,r){if(!n)return i;for(var a=t.get("visibleMin"),o=r[jr],s=o,l=o-1;l>=0;l--){var u=r["asc"===n?o-l-1:l].getValue();a>u/i*e&&(s=l,i-=u)}return"asc"===n?r[Ki](0,o-s):r[Ki](s,o-s),i}function o(t,e){return e&&t.sort(function(t,i){return"asc"===e?t.getValue()-i.getValue():i.getValue()-t.getValue()}),t}function s(t,e,i){for(var n=0,r=0,o=e[jr];o>r;r++)n+=e[r].getValue();var s,l=t.get("visualDimension");if(e&&e[jr])if("value"===l&&i)s=[e[e[jr]-1].getValue(),e[0].getValue()],"asc"===i&&s[a]();else{var s=[1/0,-(1/0)];v.each(e,function(t){var e=t.getValue(l);e<s[0]&&(s[0]=e),e>s[1]&&(s[1]=e)})}else s=[NaN,NaN];return{sum:n,dataExtent:s}}function l(t,e,i){for(var n,r=0,a=1/0,o=0,s=t[jr];s>o;o++)n=t[o][Vt]().area,n&&(a>n&&(a=n),n>r&&(r=n));var l=t.area*t.area,u=e*e*i;return l?f(u*r/l,l/(u*a)):1/0}function u(t,e,i,n,r){var a=e===i.width?0:1,o=1-a,s=["x","y"],l=["width",ur],u=i[s[a]],c=e?t.area/e:0;(r||c>i[l[o]])&&(c=i[l[o]]);for(var h=0,d=t[jr];d>h;h++){var v=t[h],m={},g=c?v[Vt]().area/c:0,y=m[l[o]]=f(c-2*n,0),x=i[s[a]]+i[l[a]]-u,_=h===d-1||g>x?x:g,w=m[l[a]]=f(_-2*n,0);m[s[o]]=i[s[o]]+p(n,y/2),m[s[a]]=u+p(n,w/2),u+=_,v[Rt](m,!0)}i[s[o]]+=c,i[l[o]]-=c}function c(t,e,i,n){var r=(e||{}).node,a=[i,n];if(!r||r===t.getViewRoot())return a;for(var o,s=i*n,l=s*t.get("zoomToNodeRatio");o=r[Le];){for(var u=0,c=o.children,h=0,d=c[jr];d>h;h++)u+=c[h].getValue();var f=r.getValue();if(0===f)return a;l*=u/f;var p=o[tr](C).get(Xn);isFinite(p)&&(l+=4*p*p+4*p*Math.pow(l,.5)),l>m.MAX_SAFE_INTEGER&&(l=m.MAX_SAFE_INTEGER),r=o}s>l&&(l=s);var v=Math.pow(l/s,.5);return[i*v,n*v]}function h(t,e,i){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!i)return n;var r=i.node,a=r[Vt]();if(!a)return n;for(var o=[a.width/2,a[ur]/2],s=r;s;){var l=s[Vt]();o[0]+=l.x,o[1]+=l.y,s=s[Le]}return{x:t.width/2-o[0],y:t[ur]/2-o[1]}}function d(t,e){var i=t[Vt]();t[Rt]({invisible:!e[be](i)},!0);for(var n=t.viewChildren||[],r=0,a=n[jr];a>r;r++){var o=new _(e.x-i.x,e.y-i.y,e.width,e[ur]);d(n[r],o)}}var f=Math.max,p=Math.min,v=t(Kr),m=t(yt),g=t(V),y=m[Rr],x=v.retrieve,_=t(hr),w=t("./helper");return e}),e("echarts/chart/treemap",[Qr,K,"./treemap/TreemapSeries","./treemap/TreemapView","./treemap/treemapAction","./treemap/treemapVisual","./treemap/treemapLayout"],function(t){var e=t(K);t("./treemap/TreemapSeries"),t("./treemap/TreemapView"),t("./treemap/treemapAction"),e[Xt]("chart",t("./treemap/treemapVisual")),e[Yt](t("./treemap/treemapLayout"))}),e("echarts/data/Graph",[Qr,Kr],function(t){function e(t,e){this.id=null==t?"":t,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this[bi]=null==e?-1:e}function i(t,e,i){this.node1=t,this.node2=e,this[bi]=null==i?-1:i}var n=t(Kr),r=function(t){this._directed=t||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},a=r[Jr];a.type="graph",a.isDirected=function(){return this._directed},a.addNode=function(t,i){var n=this._nodesMap;if(!n[t]){var r=new e(t,i);return r.hostGraph=this,this.nodes.push(r),n[t]=r,r}},a.getNodeByIndex=function(t){var e=this.data[Vn](t);return this.nodes[e]},a.getNodeById=function(t){return this._nodesMap[t]},a.addEdge=function(t,n,r){var a=this._nodesMap,o=this._edgesMap;if(t instanceof e||(t=a[t]),n instanceof e||(n=a[n]),t&&n){var s=t.id+"-"+n.id;if(!o[s]){var l=new i(t,n,r);return l.hostGraph=this,this._directed&&(t.outEdges.push(l),n.inEdges.push(l)),t.edges.push(l),t!==n&&n.edges.push(l),this.edges.push(l),o[s]=l,l}}},a.getEdgeByIndex=function(t){var e=this.edgeData[Vn](t);return this.edges[e]},a.getEdge=function(t,i){t instanceof e&&(t=t.id),i instanceof e&&(i=i.id);var n=this._edgesMap;return this._directed?n[t+"-"+i]:n[t+"-"+i]||n[i+"-"+t]},a[o]=function(t,e){for(var i=this.nodes,n=i[jr],r=0;n>r;r++)i[r][bi]>=0&&t.call(e,i[r],r)},a.eachEdge=function(t,e){for(var i=this.edges,n=i[jr],r=0;n>r;r++)i[r][bi]>=0&&i[r].node1[bi]>=0&&i[r].node2[bi]>=0&&t.call(e,i[r],r)},a.breadthFirstTraverse=function(t,i,n,r){if(!i instanceof e&&(i=this._nodesMap[i]),i){for(var a="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes[jr];o++)this.nodes[o].__visited=!1;if(!t.call(r,i,null))for(var s=[i];s[jr];)for(var l=s.shift(),u=l[a],o=0;o<u[jr];o++){var c=u[o],h=c.node1===l?c.node2:c.node1;if(!h.__visited){if(t.call(h,h,l))return;s.push(h),h.__visited=!0}}}},a[Se]=function(){for(var t=this.data,e=this.edgeData,i=this.nodes,n=this.edges,r=0,a=i[jr];a>r;r++)i[r][bi]=-1;for(var r=0,a=t.count();a>r;r++)i[t[Vn](r)][bi]=r;e[Nt](function(t){var i=n[e[Vn](t)];return i.node1[bi]>=0&&i.node2[bi]>=0});for(var r=0,a=n[jr];a>r;r++)n[r][bi]=-1;for(var r=0,a=e.count();a>r;r++)n[e[Vn](r)][bi]=r},a.setEdgeData=function(t){this.edgeData=t,this._edgeDataSaved=t.cloneShallow()},a.restoreData=function(){this.edgeData=this._edgeDataSaved.cloneShallow()},a.clone=function(){for(var t=new r(this._directed),e=this.nodes,i=this.edges,n=0;n<e[jr];n++)t.addNode(e[n].id,e[n][bi]);for(var n=0;n<i[jr];n++){var a=i[n];t.addEdge(a.node1.id,a.node2.id,a[bi])}return t},e[Jr]={constructor:e,degree:function(){return this.edges[jr]},inDegree:function(){return this.inEdges[jr]},outDegree:function(){return this.outEdges[jr]},getModel:function(t){if(!(this[bi]<0)){var e=this.hostGraph,i=e.data[In](this[bi]);return i[tr](t)}}},i[Jr][tr]=function(t){if(!(this[bi]<0)){var e=this.hostGraph,i=e.edgeData[In](this[bi]);return i[tr](t)}};var s=function(t,e){return{getValue:function(i){var n=this[t][e];return n.get(n[Ht](i||"value"),this[bi])},setVisual:function(i,n){this[bi]>=0&&this[t][e][fe](this[bi],i,n)},getVisual:function(i,n){return this[t][e][Pt](this[bi],i,n)},setLayout:function(i,n){this[bi]>=0&&this[t][e][It](this[bi],i,n)},getLayout:function(){return this[t][e][zt](this[bi])},getGraphicEl:function(){return this[t][e][wi](this[bi])},getRawIndex:function(){return this[t][e][Vn](this[bi])}}};return n.mixin(e,s("hostGraph","data")),n.mixin(i,s("hostGraph","edgeData")),r.Node=e,r.Edge=i,r}),e("echarts/chart/helper/createGraphFromNodeEdge",[Qr,Lt,"../../data/Graph","../../data/helper/linkList",kt,Kr],function(t){var e=t(Lt),i=t("../../data/Graph"),n=t("../../data/helper/linkList"),r=t(kt),a=t(Kr);return function(t,o,s,l){for(var u=new i(l),c=0;c<t[jr];c++)u.addNode(a.retrieve(t[c].id,t[c].name,c),c);for(var h=[],d=[],c=0;c<o[jr];c++){var f=o[c];u.addEdge(f.source,f[Zi],c)&&(d.push(f),h.push(a.retrieve(f.id,f.source+" - "+f[Zi])))}var p=r(["value"],t),v=new e(p,s),m=new e(["value"],s);return v[Ft](t),m[Ft](d,h),u.setEdgeData(m),n.linkToGraph(v,u),u[Se](),u}}),e("echarts/chart/graph/GraphSeries",[Qr,Lt,Kr,"../helper/createGraphFromNodeEdge",T],function(t){var e=t(Lt),i=t(Kr),n=t("../helper/createGraphFromNodeEdge");return t(T)[qt]({type:"series.graph",init:function(t){this[g]("init",arguments),this[m]=function(){return this._categoriesData},this._updateCategoriesData()},mergeOption:function(t){this[g](mn,arguments),this._updateCategoriesData()},getInitialData:function(t,e){var i=t.edges||t.links,r=t.data||t.nodes;if(r&&i){var a=n(r,i,this,!0),o=a.data,s=this;return o.wrapMethod(In,function(t){var e=s._categoriesModels,i=t[br](At),n=e[i];return n&&(n.parentModel=t.parentModel,t.parentModel=n),t}),o}},restoreData:function(){this[g]("restoreData",arguments),this.getGraph().restoreData()},getGraph:function(){return this[En]().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},_updateCategoriesData:function(){var t=i.map(this[Un][r]||[],function(t){return null!=t.value?t:i[Cr]({value:0},t)}),n=new e(["value"],this);n[Ft](t),this._categoriesData=n,this._categoriesModels=n[Et](function(t){return n[In](t,!0)})},setRoamZoom:function(t){var e=this[Un][u];e&&(e.zoom=t)},setRoamPan:function(t,e){var i=this[Un][u];i&&(i.x=t,i.y=e)},defaultOption:{zlevel:0,z:2,color:["#61a0a8","#d14a61","#fd9c35","#675bba","#fec42c","#dd4444","#fd9c35","#cd4870"],coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,force:{initLayout:null,repulsion:50,gravity:.1,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,draggable:!1,roam:!1,roamDetail:{x:0,y:0,zoom:1},nodeScaleRatio:.6,label:{normal:{show:!1},emphasis:{show:!0}},itemStyle:{normal:{},emphasis:{}},lineStyle:{normal:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{}}}})}),e("echarts/chart/helper/LinePath",[Qr,xt],function(t){var e=t(xt),i=e.Line[Jr],n=e.BezierCurve[Jr];return e[Xe]({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){(null==e.cpx1||null==e.cpy1?i:n)[si](t,e)},pointAt:function(t){var e=this.shape;return null==e.cpx1||null==e.cpy1?i.pointAt.call(this,t):n.pointAt.call(this,t)}})}),e("echarts/chart/helper/Line",[Qr,_t,vr,"./LinePath",xt,Kr,yt],function(t){function e(t,e,i){var n=e[Pt](i,"color"),r=e[Pt](i,pt),a=e[Pt](i,vt);if("none"!==r){d[Or](a)||(a=[a,a]);var o=l[mt](r,-a[0]/2,-a[1]/2,a[0],a[1],n);return o.name=t,o}}function i(t){var e=new c({name:"line",style:{strokeNoScale:!0}});return n(e.shape,t),e}function n(t,e){var i=e[0],n=e[1],r=e[2];t.x1=i[0],t.y1=i[1],t.x2=n[0],t.y2=n[1],t.percent=1,r&&(t.cpx1=r[0],t.cpy1=r[1])}function r(t){return t.type===pt&&"arrow"===t.shape.symbolType}function a(){var t=this,e=t.childOfName("line");if(this[Ii]||e[Ii]){var i=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),a=t.childOfName("label"),s=e.pointAt(0),l=e.pointAt(e.shape.percent),c=u.sub([],l,s);u.normalize(c,c),i&&(i.attr(Cn,s),r(n)&&n.attr($i,o(s,l))),n&&(n.attr(Cn,l),r(i)&&i.attr($i,o(l,s))),a.attr(Cn,l);var h,d,f;"end"===a.__position?(h=[5*c[0]+l[0],5*c[1]+l[1]],d=c[0]>.8?"left":c[0]<-.8?"right":Vr,f=c[1]>.8?"top":c[1]<-.8?Ir:zr):(h=[5*-c[0]+s[0],5*-c[1]+s[1]],d=c[0]>.8?"right":c[0]<-.8?"left":Vr,f=c[1]>.8?Ir:c[1]<-.8?"top":zr),a.attr({style:{textBaseline:a.__textBaseline||f,textAlign:a.__textAlign||d},position:h})}}function o(t,e){return-Math.PI/2-Math.atan2(e[1]-t[1],e[0]-t[0])}function s(t,e,i,n){h.Group.call(this),this._createLine(t,e,i,n)}var l=t(_t),u=t(vr),c=t("./LinePath"),h=t(xt),d=t(Kr),f=t(yt),p=s[Jr];return p.beforeUpdate=a,p._createLine=function(t,n,r,a){var o=t[Qt],s=t[zt](a),l=i(s);l.shape.percent=0,h[Ee](l,{shape:{percent:1}},o),this.add(l);var u=new h.Text({name:"label"});if(this.add(u),n){var c=e("fromSymbol",n,a);this.add(c),this._fromSymbolType=n[Pt](a,pt)}if(r){var d=e("toSymbol",r,a);this.add(d),this._toSymbolType=r[Pt](a,pt)}this._updateCommonStl(t,n,r,a)},p[gt]=function(t,i,r,a){var o=t[Qt],s=this.childOfName("line"),l=t[zt](a),u={shape:{}};if(n(u.shape,l),h[Ne](s,u,o),i){var c=i[Pt](a,pt);if(this._fromSymbolType!==c){var d=e("fromSymbol",i,a);this[Pi](s.childOfName("fromSymbol")),this.add(d)}this._fromSymbolType=c}if(r){var f=r[Pt](a,pt);if(f!==this._toSymbolType){var p=e("toSymbol",r,a);this[Pi](s.childOfName("toSymbol")),this.add(p)}this._toSymbolType=f}this._updateCommonStl(t,i,r,a)},p._updateCommonStl=function(t,e,i,n){var r=t[Qt],a=this.childOfName("line"),o=t[In](n),s=o[tr](S),l=s[tr](Qn),u=o[tr](M),c=u[tr](Qn),p=f.round(r[Rn](n));isNaN(p)&&(p=t[zn](n)),a[Ue](d[Cr]({stroke:t[Pt](n,"color")},o[tr](Q)[J]()));var v=this.childOfName("label");v[Ue]({text:s.get("show")?r[ht](n,Gn)||p:"",textFont:l[Kn](),fill:l[Ge]()||t[Pt](n,"color")}),v[qe]={text:u.get("show")?r[ht](n,Zn)||p:"",textFont:l[Kn](),fill:c[Ge]()},v.__textAlign=l.get("align"),v.__textBaseline=l.get($n),v.__position=s.get(Cn),h[We](this,o[tr]("lineStyle.emphasis")[J]())},p[Ci]=function(t,e,i,r){var a=t[zt](r),o=this.childOfName("line");n(o.shape,a),o.dirty(!0),e&&e[wi](r).attr(Cn,a[0]),i&&i[wi](r).attr(Cn,a[1])},d[Ar](s,h.Group),s}),e("echarts/chart/helper/LineDraw",[Qr,xt,"./Line"],function(t){
function e(t){this._ctor=t||n,this.group=new i.Group}var i=t(xt),n=t("./Line"),r=e[Jr];return r[gt]=function(t,e,i){var n=this._lineData,r=this.group,a=this._ctor;t.diff(n).add(function(n){var o=new a(t,e,i,n);t[Dt](n,o),r.add(o)})[Se](function(a,o){var s=n[wi](o);s[gt](t,e,i,a),t[Dt](a,s),r.add(s)})[Pi](function(t){r[Pi](n[wi](t))})[ct](),this._lineData=t,this._fromData=e,this._toData=i},r[Ci]=function(){var t=this._lineData;t[xi](function(e,i){e[Ci](t,this._fromData,this._toData,i)},this)},r[Pi]=function(){this.group[Ai]()},e}),e("echarts/chart/graph/GraphView",[Qr,ot,"../helper/LineDraw","../../component/helper/RoamController",Tt,xt,T],function(t){var e=t(ot),i=t("../helper/LineDraw"),n=t("../../component/helper/RoamController"),r=t(Tt),a=t(xt);t(T)[jt]({type:"graph",init:function(t,r){var a=new e,o=new i,l=this.group,u=new n(r.getZr(),l);l.add(a.group),l.add(o.group),this[tt]=a,this._lineDraw=o,this[s]=u,this._firstRender=!0},render:function(t,e,i){var n=t[nn];if("geo"===n.type||"view"===n.type){var o=t[En]();this[ne]=t;var s=this[tt],l=this._lineDraw;s[gt](o);var u=o.graph.edgeData,c=t[Un],h=r[Bn](t,u,c.edges||c.links);h[d]=function(t){var e=this[Pn](t),i=e.data,n=i.source+" > "+i[Zi];return e.value&&(n+=":"+e.value),n},l[gt](u,null,null),u[xi](function(t){t[ki](function(t){t[Qt]=h})}),o.graph.eachEdge(function(t){t.__lineWidth=t[tr](Q).get("width")});var f=this.group,p={position:n[Cn],scale:n.scale};this._firstRender?f.attr(p):a[Ne](f,p,t),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(),this._updateController(t,n,i),clearTimeout(this._layoutTimeout);var v=t.forceLayout,m=t.get("force.layoutAnimation");v&&this._startForceLayoutIteration(v,m),o[xi](function(t,e){var i=o[In](e).get(Ri);i&&v?t.on("drag",function(){v.warmUp(),!this._layouting&&this._startForceLayoutIteration(v,m),v.setFixed(e),o[It](e,t[Cn])},this).on("dragend",function(){v.setUnfixed(e)},this):t.off("drag"),t.setDraggable(i)},this),this._firstRender=!1}},_startForceLayoutIteration:function(t,e){var i=this;!function n(){t.step(function(t){i[Ci](),(i._layouting=!t)&&(e?i._layoutTimeout=setTimeout(n,16):n())})}()},_updateController:function(t,e,i){var n=this[s];n.rect=e.getViewRect(),n[l](t.get("roam")),n.off("pan").off("zoom").on("pan",function(e,n){i[ln]({seriesId:t.id,type:"graphRoam",dx:e,dy:n})}).on("zoom",function(e,n,r){i[ln]({seriesId:t.id,type:"graphRoam",zoom:e,originX:n,originY:r})}).on("zoom",this._updateNodeAndLinkScale,this)},_updateNodeAndLinkScale:function(){var t=this[ne],e=t[En](),i=this.group,n=this._nodeScaleRatio,r=i.scale[0],a=(r-1)*n+1,o=[a/r,a/r];e[xi](function(t,e){t.attr("scale",o)})},updateLayout:function(t,e){this[tt][Ci](),this._lineDraw[Ci]()},remove:function(t,e){this[tt]&&this[tt][Pi](),this._lineDraw&&this._lineDraw[Pi]()}})}),e("echarts/chart/graph/roamAction",[Qr,T,"../../action/roamHelper"],function(t){var e=t(T),i=t("../../action/roamHelper"),n={type:"graphRoam",event:"graphRoam",update:"none"};e[$t](n,function(t,e){e[ie]({mainType:"series",query:t},function(e){var n=e[nn],r=e[tr](u),a=i.calcPanAndZoom(r,t);e.setRoamPan&&e.setRoamPan(a.x,a.y),e.setRoamZoom&&e.setRoamZoom(a.zoom),n&&n.setPan(a.x,a.y),n&&n.setZoom(a.zoom)})})}),e("echarts/chart/graph/categoryFilter",[Qr],function(t){return function(t){var e=t[dn]({mainType:"legend"});e&&e[jr]&&t[de]("graph",function(t){var i=t.getCategoriesData(),n=t.getGraph(),r=n.data,a=i[Et](i[zn]);r[Nt](function(t){var i=r[In](t),n=i[br](At);if(null!=n){typeof n===Zr&&(n=a[n]);for(var o=0;o<e[jr];o++)if(!e[o].isSelected(n))return!1}return!0})},this)}}),e("echarts/chart/graph/categoryVisual",[Qr],function(t){return function(t){t[de]("graph",function(t){var e=t.get("color"),i=t.getCategoriesData(),n=t[En](),r={};i.each(function(t){r[i[zn](t)]=t;var n=i[In](t),a=i[Vn](t),o=n.get(re)||e[a%e[jr]];i[fe](t,"color",o)}),i.count()&&n.each(function(t){var e=n[In](t),a=e[br](At);null!=a&&(typeof a===Fr&&(a=r[a]),n[fe](t,"color",i[Pt](a,"color")))})})}}),e("echarts/chart/graph/simpleLayoutHelper",[Qr],function(t){return function(t){var e=t[nn];if(!e||"view"===e.type){var i=t.getGraph();i[o](function(t){var e=t[tr]();t[Rt]([+e.get("x"),+e.get("y")])}),i.eachEdge(function(t){var e,i=t[tr]().get("lineStyle.normal.curveness")||0,n=t.node1[Vt](),r=t.node2[Vt]();i>0&&(e=[(n[0]+r[0])/2-(n[1]-r[1])*i,(n[1]+r[1])/2-(r[0]-n[0])*i]),t[Rt]([n,r,e])})}}}),e("echarts/chart/graph/simpleLayout",[Qr,"./simpleLayoutHelper"],function(t){var e=t("./simpleLayoutHelper");return function(t,i){t[de]("graph",function(t){var i=t.get(c);i&&"none"!==i||e(t)})}}),e("echarts/chart/graph/circularLayoutHelper",[Qr],function(t){return function(t){var e=t[nn];if(!e||"view"===e.type){var i=e[Jn](),n=t[En](),r=n.graph,a=0,s=n[Bt]("value"),l=2*Math.PI/(s||n.count()),u=i.width/2+i.x,c=i[ur]/2+i.y,h=Math.min(i.width,i[ur])/2;r[o](function(t){var e=t.getValue("value");a+=l*(s?e:2)/2,t[Rt]([h*Math.cos(a)+u,h*Math.sin(a)+c]),a+=l*(s?e:2)/2}),r.eachEdge(function(t){var e,i=t[tr]().get("lineStyle.normal.curveness")||0,n=t.node1[Vt](),r=t.node2[Vt]();i>0&&(e=[u,c]),t[Rt]([n,r,e])})}}}),e("echarts/chart/graph/circularLayout",[Qr,"./circularLayoutHelper"],function(t){var e=t("./circularLayoutHelper");return function(t,i){t[de]("graph",function(t){"circular"===t.get(c)&&e(t)})}}),e("echarts/chart/graph/forceHelper",[Qr,vr],function(t){var e=t(vr),i=e.scaleAndAdd;return function(t,n,r){for(var a=r.rect,o=a.width,s=a[ur],l=[a.x+o/2,a.y+s/2],u=null==r.gravity?.1:r.gravity,c=0;c<t[jr];c++){var h=t[c];h.p||(h.p=e[lr](o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=e.clone(h.p),h.edges=null}var d=.6;return{warmUp:function(){d=.5},setFixed:function(e){t[e].fixed=!0},setUnfixed:function(e){t[e].fixed=!1},step:function(r){for(var a=[],o=t[jr],s=0;s<n[jr];s++){var c=n[s],h=c.n1,f=c.n2;e.sub(a,f.p,h.p);var p=e.len(a)-c.d,v=f.w/(h.w+f.w);e.normalize(a,a),!h.fixed&&i(h.p,h.p,a,v*p*d),!f.fixed&&i(f.p,f.p,a,-(1-v)*p*d)}for(var s=0;o>s;s++){var m=t[s];m.fixed||(e.sub(a,l,m.p),e.scaleAndAdd(m.p,m.p,a,u*d))}for(var s=0;o>s;s++)for(var h=t[s],g=s+1;o>g;g++){var f=t[g];e.sub(a,f.p,h.p);var p=e.len(a);0===p&&(e.set(a,Math.random()-.5,Math.random()-.5),p=1);var y=(h.rep+f.rep)/p/p;!h.fixed&&i(h.pp,h.pp,a,y),!f.fixed&&i(f.pp,f.pp,a,-y)}for(var x=[],s=0;o>s;s++){var m=t[s];m.fixed||(e.sub(x,m.p,m.pp),e.scaleAndAdd(m.p,m.p,x,d),e.copy(m.pp,m.p))}d=.992*d,r&&r(t,n,.01>d)}}}}),e("echarts/chart/graph/forceLayout",[Qr,"./forceHelper",yt,"./simpleLayoutHelper","./circularLayoutHelper",vr],function(t){var e=t("./forceHelper"),i=t(yt),n=t("./simpleLayoutHelper"),r=t("./circularLayoutHelper"),a=t(vr);return function(t,o){t[de]("graph",function(t){if("force"===t.get(c)){var o=t.preservedPoints||{},s=t.getGraph(),l=s.data,u=s.edgeData,h=t[tr]("force"),d=h.get("initLayout");t.preservedPoints?l.each(function(t){var e=l.getId(t);l[It](t,o[e]||[NaN,NaN])}):d&&"none"!==d?"circular"===d&&r(t):n(t);var f=l[Gt]("value"),p=h.get("repulsion"),v=h.get("edgeLength"),m=l[Et]("value",function(t,e){var n=l[zt](e),r=i[Er](t,f,[0,p])||p/2;return{w:r,rep:r,p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),g=u[Et]("value",function(t,e){var i=s.getEdgeByIndex(e);return{n1:m[i.node1[bi]],n2:m[i.node2[bi]],d:v,curveness:i[tr]().get("lineStyle.normal.curveness")||0}}),y=t[nn],x=y[Jn](),_=e(m,g,{rect:x,gravity:h.get("gravity")}),w=_.step;_.step=function(t){for(var e=0,i=m[jr];i>e;e++)m[e].fixed&&a.copy(m[e].p,s.getNodeByIndex(e)[Vt]());w(function(e,i,n){for(var r=0,a=e[jr];a>r;r++)e[r].fixed||s.getNodeByIndex(r)[Rt](e[r].p),o[l.getId(r)]=e[r].p;for(var r=0,a=i[jr];a>r;r++){var u=i[r],c=u.n1.p,h=u.n2.p,d=[c,h];u.curveness>0&&d.push([(c[0]+h[0])/2-(c[1]-h[1])*u.curveness,(c[1]+h[1])/2-(h[0]-c[0])*u.curveness]),s.getEdgeByIndex(r)[Rt](d)}t&&t(n)})},t.forceLayout=_,t.preservedPoints=o,_.step()}else t.forceLayout=null})}}),e("echarts/chart/graph/createView",[Qr,"../../coord/View",V,"zrender/core/bbox"],function(t){function e(t,e,i){var r=t[P]();return r.aspect=i,n[wn](r,{width:e[cn](),height:e[un]()})}var i=t("../../coord/View"),n=t(V),r=t("zrender/core/bbox");return function(t,n){t[de]("graph",function(t){var a=t.get(nn);if(!a||"view"===a){var o=new i,s=t[En](),l=s[Et](function(t){var e=s[In](t);return[+e.get("x"),+e.get("y")]}),c=[],h=[];r.fromPoints(l,c,h);var d=e(t,n,(h[0]-c[0])/(h[1]-c[1])||1);(isNaN(c[0])||isNaN(c[1]))&&(c=[d.x,d.y],h=[d.x+d.width,d.y+d[ur]]);var f=h[0]-c[0],p=h[1]-c[1],v=d.width,m=d[ur];o=t[nn]=new i,o.setBoundingRect(c[0],c[1],f,p),o.setViewRect(d.x,d.y,v,m);var g=t[tr](u);o.setPan(g.get("x")||0,g.get("y")||0),o.setZoom(g.get("zoom")||1)}})}}),e("echarts/chart/graph",[Qr,K,Kr,"./graph/GraphSeries","./graph/GraphView","./graph/roamAction","./graph/categoryFilter",$,"./graph/categoryVisual","./graph/simpleLayout","./graph/circularLayout","./graph/forceLayout","./graph/createView"],function(t){var e=t(K),i=t(Kr);t("./graph/GraphSeries"),t("./graph/GraphView"),t("./graph/roamAction"),e[Kt]($r,t("./graph/categoryFilter")),e[Xt]("chart",i.curry(t($),"graph",ft,null)),e[Xt]("chart",t("./graph/categoryVisual")),e[Yt](t("./graph/simpleLayout")),e[Yt](t("./graph/circularLayout")),e[Yt](t("./graph/forceLayout")),e.registerCoordinateSystem("graphView",{create:t("./graph/createView")})}),e("echarts/chart/gauge/GaugeSeries",[Qr,Lt,bt,Kr],function(t){var e=t(Lt),i=t(bt),n=t(Kr),r=i[Cr]({type:"series.gauge",getInitialData:function(t,i){var r=new e(["value"],this),a=t.data||[];return n[Or](a)||(a=[a]),r[Ft](a),r},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,textStyle:{color:"auto"}},pointer:{show:!0,length:"80%",width:8},itemStyle:{normal:{color:"auto"}},title:{show:!0,offsetCenter:[0,"-40%"],textStyle:{color:"#333",fontSize:15}},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:40,offsetCenter:[0,"40%"],textStyle:{color:"auto",fontSize:30}}}});return r}),e("echarts/chart/gauge/PointerPath",[Qr,li],function(t){return t(li)[Cr]({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(t,e){var i=Math.cos,n=Math.sin,r=e.r,a=e.width,o=e.angle,s=e.x-i(o)*a*(a>=r/3?1:2),l=e.y-n(o)*a*(a>=r/3?1:2);o=e.angle-Math.PI/2,t[di](s,l),t[hi](e.x+i(o)*a,e.y+n(o)*a),t[hi](e.x+i(e.angle)*r,e.y+n(e.angle)*r),t[hi](e.x-i(o)*a,e.y-n(o)*a),t[hi](s,l)}})}),e("echarts/chart/gauge/GaugeView",[Qr,"./PointerPath",xt,yt,at],function(t){function e(t,e){var i=t.get(Vr),n=e[cn](),r=e[un](),a=Math.min(n,r),o=s(i[0],e[cn]()),l=s(i[1],e[un]()),u=s(t.get(qn),a/2);return{cx:o,cy:l,r:u}}function i(t,e){return e&&(typeof e===Fr?t=e[Nr]("{value}",t):typeof e===Br&&(t=e(t))),t}var n=t("./PointerPath"),r=t(xt),o=t(yt),s=o[Rr],l=2*Math.PI,u=t(at)[Cr]({type:"gauge",render:function(t,i,n){this.group[Ai]();var r=t.get("axisLine.lineStyle.color"),a=e(t,n);this._renderMain(t,i,n,r,a)},_renderMain:function(t,e,i,n,a){for(var o=this.group,s=t[tr](w),u=s[tr](ce),c=t.get(ei),h=-t.get(ni)/180*Math.PI,d=-t.get(ii)/180*Math.PI,f=(d-h)%l,p=h,v=u.get("width"),m=0;m<n[jr];m++){var d=h+f*n[m][0],g=new r[Ke]({shape:{startAngle:p,endAngle:d,cx:a.cx,cy:a.cy,clockwise:c,r0:a.r-v,r:a.r},silent:!0});g[Ue]({fill:n[m][1]}),g[Ue](u[J](["color",Xn,Yn])),o.add(g),p=d}var y=function(t){if(0>=t)return n[0][1];for(var e=0;e<n[jr];e++)if(n[e][0]>=t&&(0===e?0:n[e-1][0])<t)return n[e][1];return n[e-1][1]};if(!c){var x=h;h=d,d=x}this._renderTicks(t,e,i,y,a,h,d,c),this._renderPointer(t,e,i,y,a,h,d,c),this._renderTitle(t,e,i,y,a),this._renderDetail(t,e,i,y,a)},_renderTicks:function(t,e,n,a,s,l,u,c){for(var h=this.group,d=s.cx,f=s.cy,p=s.r,v=t.get("min"),m=t.get("max"),g=t[tr]("splitLine"),y=t[tr](b),x=t[tr](O),_=t.get(F),w=y.get(F),M=g.get(jr),S=y.get(jr),A=l,C=(u-l)/_,T=C/w,k=g[tr](ce)[J](),L=y[tr](ce)[J](),D=x[tr](Qn),P=0;_>=P;P++){var I=Math.cos(A),z=Math.sin(A);if(g.get("show")){var V=new r.Line({shape:{x1:I*p+d,y1:z*p+f,x2:I*(p-M)+d,y2:z*(p-M)+f},style:k,silent:!0});"auto"===k[_r]&&V[Ue]({stroke:a(P/_)}),h.add(V)}if(x.get("show")){var R=i(o.round(P/_*(m-v)+v),x.get(Dn)),E=new r.Text({style:{text:R,x:I*(p-M-5)+d,y:z*(p-M-5)+f,fill:D[Ge](),textFont:D[Kn](),textBaseline:-.4>z?"top":z>.4?Ir:zr,textAlign:-.4>I?"left":I>.4?"right":Vr},silent:!0});"auto"===E.style.fill&&E[Ue]({fill:a(P/_)}),h.add(E)}if(y.get("show")&&P!==_){for(var N=0;w>=N;N++){var I=Math.cos(A),z=Math.sin(A),B=new r.Line({shape:{x1:I*p+d,y1:z*p+f,x2:I*(p-S)+d,y2:z*(p-S)+f},silent:!0,style:L});"auto"===L[_r]&&B[Ue]({stroke:a((P+N/w)/_)}),h.add(B),A+=T}A-=T}else A+=C}},_renderPointer:function(t,e,i,l,u,c,h,d){var f=o[Er],p=[+t.get("min"),+t.get("max")],v=[c,h];d||(v=v[a]());var m=t[En](),g=this._data,y=this.group;m.diff(g).add(function(e){var i=new n({shape:{angle:c}});r[Ne](i,{shape:{angle:f(m.get("value",e),p,v)}},t),y.add(i),m[Dt](e,i)})[Se](function(e,i){var n=g[wi](i);r[Ne](n,{shape:{angle:f(m.get("value",e),p,v)}},t),y.add(n),m[Dt](e,n)})[Pi](function(t){var e=g[wi](t);y[Pi](e)})[ct](),m[xi](function(t,e){var i=m[In](e),n=i[tr]("pointer");t.attr({shape:{x:u.cx,y:u.cy,width:n.get("width"),r:s(n.get(jr),u.r)},style:i[tr](C)[dt]()}),"auto"===t.style.fill&&t[Ue]("fill",l((m.get("value",e)-p[0])/(p[1]-p[0]))),r[We](t,i[tr](A)[dt]())}),this._data=m},_renderTitle:function(t,e,i,n,a){var o=t[tr]("title");if(o.get("show")){var l=o[tr](Qn),u=o.get("offsetCenter"),c=a.cx+s(u[0],a.r),h=a.cy+s(u[1],a.r),d=new r.Text({style:{x:c,y:h,text:t[En]()[zn](0),fill:l[Ge](),textFont:l[Kn](),textAlign:"center",textBaseline:"middle"}});this.group.add(d)}},_renderDetail:function(t,e,n,a,o){var l=t[tr]("detail"),u=t.get("min"),c=t.get("max");if(l.get("show")){var h=l[tr](Qn),d=l.get("offsetCenter"),f=o.cx+s(d[0],o.r),p=o.cy+s(d[1],o.r),v=s(l.get("width"),o.r),m=s(l.get(ur),o.r),g=t[En]().get("value",0),y=new r.Rect({shape:{x:f-v/2,y:p-m/2,width:v,height:m},style:{text:i(g,l.get(Dn)),fill:l.get(xe),textFill:h[Ge](),textFont:h[Kn]()}});"auto"===y.style.textFill&&y[Ue]("textFill",a((g-u)/(c-u))),y[Ue](l[dt](["color"])),this.group.add(y)}}});return u}),e("echarts/chart/gauge",[Qr,"./gauge/GaugeSeries","./gauge/GaugeView"],function(t){t("./gauge/GaugeSeries"),t("./gauge/GaugeView")}),e("echarts/chart/funnel/FunnelSeries",[Qr,Lt,Tt,kt,T],function(t){var e=t(Lt),i=t(Tt),n=t(kt);t(T)[qt]({type:"series.funnel",init:function(t){this[g]("init",arguments),this[m]=function(){return this._dataBeforeProcessed},this._defaultLabelLine(t)},getInitialData:function(t,i){var r=n(["value"],t.data),a=new e(r,this);return a[Ft](t.data),a},_defaultLabelLine:function(t){i[Fn](t.labelLine,["show"]);var e=t.labelLine[Gn],n=t.labelLine[Zn];e.show=e.show&&t.label[Gn].show,n.show=n.show&&t.label[Zn].show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{normal:{show:!0,position:"outer"},emphasis:{show:!0}},labelLine:{normal:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},emphasis:{}},itemStyle:{normal:{borderColor:"#fff",borderWidth:1},emphasis:{}}}})}),e("echarts/chart/funnel/FunnelView",[Qr,xt,Kr,at],function(t){function e(t,e){function i(){o[Vi]=o.hoverIgnore,s[Vi]=s.hoverIgnore}function r(){o[Vi]=o.normalIgnore,s[Vi]=s.normalIgnore}n.Group.call(this);var a=new n[$e],o=new n[Ye],s=new n.Text;this.add(a),this.add(o),this.add(s),this[gt](t,e,!0),this.on(Zn,i).on(Gn,r).on(He,i).on(Fe,r)}function i(t,e,i,n){var r=n[tr](Qn),a=n.get(Cn),o=a===nr||"inner"===a||a===Vr;return{fill:r[Ge]()||(o?"#fff":t[Pt](e,"color")),textFont:r[Kn](),text:t[Qt][ht](e,i)||t[zn](e)}}var n=t(xt),r=t(Kr),a=e[Jr],o=[ue,Gn,xr];a[gt]=function(t,e,i){var a=this[An](0),s=t[Qt],l=t[In](e),u=t[zt](e),c=t[In](e).get(o);c=null==c?1:c,i?(a[ai]({points:u[ti]}),a[Ue]({opacity:0}),n[Ne](a,{style:{opacity:c}},s)):n[Ee](a,{shape:{points:u[ti]}},s);var h=l[tr](ue),d=t[Pt](e,"color");a[Ue](r[ir]({fill:d},h[tr](Gn)[dt]())),a[qe]=h[tr](Zn)[dt](),this._updateLabel(t,e),n[We](this)},a._updateLabel=function(t,e){var r=this[An](1),a=this[An](2),o=t[Qt],s=t[In](e),l=t[zt](e),u=l.label,c=t[Pt](e,"color");n[Ne](r,{shape:{points:u.linePoints||u.linePoints}},o),n[Ne](a,{style:{x:u.x,y:u.y}},o),a.attr({style:{textAlign:u[gi],textBaseline:u[mi],textFont:u.font},rotation:u[$i],origin:[u.x,u.y],z2:10});var h=s[tr](S),d=s[tr](M),f=s[tr]("labelLine.normal"),p=s[tr]("labelLine.emphasis");a[Ue](i(t,e,Gn,h)),a[Vi]=a.normalIgnore=!h.get("show"),a.hoverIgnore=!d.get("show"),r[Vi]=r.normalIgnore=!f.get("show"),r.hoverIgnore=!p.get("show"),r[Ue]({stroke:c}),r[Ue](f[tr](ce)[J]()),a[qe]=i(t,e,Zn,d),r[qe]=p[tr](ce)[J]()},r[Ar](e,n.Group);var s=t(at)[Cr]({type:"funnel",render:function(t,i,n){var r=t[En](),a=this._data,o=this.group;r.diff(a).add(function(t){var i=new e(r,t);r[Dt](t,i),o.add(i)})[Se](function(t,e){var i=a[wi](e);i[gt](r,t),o.add(i),r[Dt](t,i)})[Pi](function(t){var e=a[wi](t);o[Pi](e)})[ct](),this._data=r},remove:function(){this.group[Ai](),this._data=null}});return s}),e("echarts/chart/funnel/funnelLayout",[Qr,V,yt],function(t){function e(t,e){return r[wn](t[P](),{width:e[cn](),height:e[un]()})}function i(t,e){for(var i=t[Et]("value",function(t){return t}),n=[],r="ascending"===e,a=0,o=t.count();o>a;a++)n[a]=a;return n.sort(function(t,e){return r?i[t]-i[e]:i[e]-i[t]}),n}function n(t){t.each(function(e){var i,n,r,a,o=t[In](e),s=o[tr](S),l=s.get(Cn),u=o[tr]("labelLine.normal"),c=t[zt](e),h=c[ti],d="inner"===l||l===nr||l===Vr;if(d)n=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,r=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,i=Vr,a=[[n,r],[n,r]];else{var f,p,v,m=u.get(jr);"left"===l?(f=(h[3][0]+h[0][0])/2,p=(h[3][1]+h[0][1])/2,v=f-m,n=v-5,i="right"):(f=(h[1][0]+h[2][0])/2,p=(h[1][1]+h[2][1])/2,v=f+m,n=v+5,i="left");var g=p;a=[[f,p],[v,g]],r=g}c.label={linePoints:a,x:n,y:r,textBaseline:"middle",textAlign:i,inside:d}})}var r=t(V),o=t(yt),s=o[Rr];return function(t,r){t[de]("funnel",function(t){var l=t[En](),u=t.get("sort"),c=e(t,r),h=i(l,u),d=[s(t.get("minSize"),c.width),s(t.get("maxSize"),c.width)],f=l[Gt]("value"),p=t.get("min"),v=t.get("max");null==p&&(p=Math.min(f[0],0)),null==v&&(v=f[1]);var m=t.get("funnelAlign"),g=t.get("gap"),y=(c[ur]-g*(l.count()-1))/l.count(),x=c.y,_=function(t,e){var i,n=l.get("value",t)||0,r=o[Er](n,[p,v],d,!0);switch(m){case"left":i=c.x;break;case Vr:i=c.x+(c.width-r)/2;break;case"right":i=c.x+c.width-r}return[[i,e],[i+r,e]]};"ascending"===u&&(y=-y,g=-g,x+=c[ur],h=h[a]());for(var w=0;w<h[jr];w++){var b=h[w],M=h[w+1],S=_(b,x),A=_(M,x+y);x+=y+g,l[It](b,{points:S[Gr](A.slice()[a]())})}n(l)})}}),e("echarts/chart/funnel",[Qr,Kr,K,"./funnel/FunnelSeries","./funnel/FunnelView","../visual/dataColor","./funnel/funnelLayout","../processor/dataFilter"],function(t){var e=t(Kr),i=t(K);t("./funnel/FunnelSeries"),t("./funnel/FunnelView"),i[Xt]("chart",e.curry(t("../visual/dataColor"),"funnel")),i[Yt](t("./funnel/funnelLayout")),i[Kt]($r,e.curry(t("../processor/dataFilter"),"funnel"))}),e("echarts/coord/parallel/ParallelAxis",[Qr,Kr,"../Axis"],function(t){var e=t(Kr),i=t("../Axis"),n=function(t,e,n,r,a){i.call(this,t,e,n),this.type=r||"value",this[Wn]=a};return n[Jr]={constructor:n,model:null},e[Ar](n,i),n}),e("echarts/coord/parallel/Parallel",[Qr,V,z,Kr,"./ParallelAxis",dr,vr],function(t){function e(t,e,i){this._axesMap={},this._axesLayout={},this[en]=t[en],this._rect,this._init(t,e,i)}var i=t(V),n=t(z),r=t(Kr),a=t("./ParallelAxis"),o=t(dr),s=t(vr),l=r.each,u=Math.PI;return e[Jr]={type:"parallel",constructor:e,_init:function(t,e,i){var r=t[en],o=t.parallelAxisIndex;l(r,function(t,i){var r=o[i],s=e[on]("parallelAxis",r),l=this._axesMap[t]=new a(t,n[G](s),[0,0],s.get("type"),r),u=l.type===At;l[rt]=u&&s.get(H),l[et]=s.get(et),s.axis=l,l.model=s},this),this._updateAxesFromSeries(t,e)},_updateAxesFromSeries:function(t,e){e[he](function(i){if(t.contains(i,e)){var n=i[En]();l(this[en],function(t){this._axesMap[t].scale[X](n[Gt](t))},this)}},this)},resize:function(t,e){this._rect=i[wn](t[P](),{width:e[cn](),height:e[un]()}),this._layoutAxes(t)},getRect:function(){return this._rect},_layoutAxes:function(t){var e=this._rect,i=t.get(c),r=this._axesMap,a=this[en],s=[e.width,e[ur]],h=i===Sn?0:1,d=s[h],f=s[1-h],p=[0,f];l(r,function(t){var e=t[et]?1:0;t[j](p[e],p[1-e]),n[W](t,t.model)}),l(a,function(t,n){var r=d*n/(a[jr]-1),s={horizontal:{x:r,y:f},vertical:{x:0,y:r}},l={horizontal:u/2,vertical:0},c=[s[i].x+e.x,s[i].y+e.y],h=l[i],p=o[lr]();o[Hi](p,p,h),o[sr](p,p,c),this._axesLayout[t]={position:c,rotation:h,transform:p,tickDirection:1,labelDirection:1}},this)},getAxis:function(t){return this._axesMap[t]},dataToPoint:function(t,e){return this.axisCoordToPoint(this._axesMap[e][N](t),e)},eachActiveState:function(t,e,i){for(var n=this[en],r=this._axesMap,a=!1,o=0,s=n[jr];s>o;o++)r[n[o]].model.getActiveState()!==Gn&&(a=!0);for(var l=0,u=t.count();u>l;l++){var c,h=t[Zt](n,l);if(a){c="active";for(var o=0,s=n[jr];s>o;o++){var d=n[o],f=r[d].model.getActiveState(h[o],o);if("inactive"===f){c="inactive";break}}}else c=Gn;e.call(i,c,l)}},axisCoordToPoint:function(t,e){var i=this._axesLayout[e],n=[t,0];return s[cr](n,n,i[Xi]),n},getAxisLayout:function(t){return r.clone(this._axesLayout[t])}},e}),e("echarts/coord/parallel/parallelCreator",[Qr,"./Parallel",Ct],function(t){function e(t,e){var n=[];return t[ie]("parallel",function(r,a){var o=new i(r,t,e);o.name="parallel_"+a,o[Me](r,e),r[nn]=o,o.model=r,n.push(o)}),t[he](function(t){if("parallel"===t.get(nn)){var e=t.get("parallelIndex");t[nn]=n[e]}}),n}var i=t("./Parallel");t(Ct)[sn]("parallel",{create:e})}),e("echarts/coord/parallel/AxisModel",[Qr,R,Kr,"../../model/mixin/makeStyleMapper","../axisModelCreator",yt,"../axisModelCommonMixin"],function(t){function e(t,e){return e.type||(e.data?At:"value")}var i=t(R),n=t(Kr),r=t("../../model/mixin/makeStyleMapper"),a=t("../axisModelCreator"),o=t(yt),s=i[Cr]({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return r([["fill","color"],[wr,Xn],[_r,Yn],["width","width"],[xr,xr]]).call(this[tr]("areaSelectStyle"))},setActiveIntervals:function(t){var e=this.activeIntervals=n.clone(t);if(e)for(var i=e[jr]-1;i>=0;i--)o.asc(e[i])},getActiveState:function(t){var e=this.activeIntervals;if(!e[jr])return Gn;if(null==t)return"inactive";for(var i=0,n=e[jr];n>i;i++)if(e[i][0]<=t&&t<=e[i][1])return"active";return"inactive"}}),l={type:"value",dim:null,parallelIndex:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},z:10};return n.merge(s[Jr],t("../axisModelCommonMixin")),a("parallel",s,e,l),s}),e("echarts/coord/parallel/ParallelModel",[Qr,Kr,R,"./AxisModel"],function(t){var e=t(Kr),i=t(R);t("./AxisModel"),i[Cr]({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",parallelAxisDefault:null},init:function(){i[Jr].init.apply(this,arguments),this[mn]({})},mergeOption:function(t){var i=this[Un];t&&e.merge(i,t,!0),this._initDimensions()},contains:function(t,e){var i=t.get("parallelIndex");return null!=i&&e[on]("parallel",i)===this},_initDimensions:function(){var t=this[en]=[],i=this.parallelAxisIndex=[],n=e[$r](this.dependentModels.parallelAxis,function(t){return t.get("parallelIndex")===this.componentIndex});e.each(n,function(e){t.push("dim"+e.get("dim")),i.push(e.componentIndex)})}})}),e("echarts/component/axis/parallelAxisAction",[Qr,T],function(t){var e=t(T),i={type:"axisAreaSelect",event:"axisAreaSelected",update:"updateVisual"};e[$t](i,function(t,e){e[ie]({mainType:"parallelAxis",query:t},function(e){e.axis.model.setActiveIntervals(t.intervals)})})}),e("echarts/component/helper/SelectController",[Qr,Ji,Kr,xt],function(t){function e(t,e,i){v.call(this),this.type=t,this.zr=e,this.opt=m.clone(i),this.group=new g.Group,this._containerRect=null,this._track=[],this._dragging,this._cover,this._disabled=!0,this._handlers={mousedown:x(a,this),mousemove:x(o,this),mouseup:x(s,this)},_(C,function(t){this.zr.on(t,this._handlers[t])},this)}function i(t){t[ki](function(t){t.z=S})}function n(t,e){var i=this.group[Fi](t,e);return!this._containerRect||this._containerRect[vi](i[0],i[1])}function r(t){var e=t.event;e.preventDefault&&e.preventDefault()}function a(t){if(!(this._disabled||t[Zi]&&t[Zi][Ri])){r(t);var e=t[Pe],i=t[De];n.call(this,e,i)&&(this._dragging=!0,this._track=[[e,i]])}}function o(t){this._dragging&&!this._disabled&&(r(t),l.call(this,t))}function s(t){this._dragging&&!this._disabled&&(r(t),l.call(this,t,!0),this._dragging=!1,this._track=[])}function l(t,e){var i=t[Pe],r=t[De];if(n.call(this,i,r)){this._track.push([i,r]);var a=u.call(this)?T[this.type].getRanges.call(this):[];c.call(this,a),this[Mi](y,m.clone(a)),e&&this[Mi]("selectEnd",m.clone(a))}}function u(){var t=this._track;if(!t[jr])return!1;var e=t[t[jr]-1],i=t[0],n=e[0]-i[0],r=e[1]-i[1],a=M(n*n+r*r,.5);return a>A}function c(t){var e=T[this.type];t&&t[jr]?(this._cover||(this._cover=e[lr].call(this),this.group.add(this._cover)),e[Se].call(this,t)):(this.group[Pi](this._cover),this._cover=null),i(this.group)}function h(){var t=this.group,e=t[Ui];e&&e[Pi](t)}function d(){var t=this.opt;return new g.Rect({style:{stroke:t[_r],fill:t.fill,lineWidth:t[wr],opacity:t[xr]}})}function f(){return m.map(this._track,function(t){return this.group[Fi](t[0],t[1])},this)}function p(){var t=f.call(this),e=t[jr]-1;return 0>e&&(e=0),[t[0],t[e]]}var v=t(Ji),m=t(Kr),g=t(xt),x=m.bind,_=m.each,w=Math.min,b=Math.max,M=Math.pow,S=1e4,A=2,C=[Ve,ze,Ie];e[Jr]={constructor:e,enable:function(t,e){this._disabled=!1,h.call(this),this._containerRect=e!==!1?e||t[Jn]():null,t.add(this.group)},update:function(t){c.call(this,t&&m.clone(t))},disable:function(){this._disabled=!0,h.call(this)},dispose:function(){this.disable(),_(C,function(t){this.zr.off(t,this._handlers[t])},this)}},m.mixin(e,v);var T={line:{create:d,getRanges:function(){var t=p.call(this),e=w(t[0][0],t[1][0]),i=b(t[0][0],t[1][0]);return[[e,i]]},update:function(t){var e=t[0],i=this.opt.width;this._cover[ai]({x:e[0],y:-i/2,width:e[1]-e[0],height:i})}},rect:{create:d,getRanges:function(){var t=p.call(this),e=[w(t[1][0],t[0][0]),w(t[1][1],t[0][1])],i=[b(t[1][0],t[0][0]),b(t[1][1],t[0][1])];return[[[e[0],i[0]],[e[1],i[1]]]]},update:function(t){var e=t[0];this._cover[ai]({x:e[0][0],y:e[1][0],width:e[0][1]-e[0][0],height:e[1][1]-e[1][0]})}}};return e}),e("echarts/component/axis/ParallelAxisView",[Qr,Kr,"./AxisBuilder","../helper/SelectController",T],function(t){function e(t,e,i){return i&&"axisAreaSelect"===i.type&&e[dn]({mainType:"parallelAxis",query:i})[0]===t}var i=t(Kr),n=t("./AxisBuilder"),r=t("../helper/SelectController"),a=[w,O,b,"axisName"],o=t(T)[Wt]({type:"parallelAxis",_selectController:null,render:function(t,r,o,s){if(!e(t,r,s)&&(this.axisModel=t,this.api=o,this.group[Ai](),t.get("show"))){var l=r[on]("parallel",t.get("parallelIndex"))[nn],u=t.getAreaSelectStyle(),c=u.width,h=l.getAxisLayout(t.axis.dim),d=i[Cr]({strokeContainThreshold:c,silent:!(c>0)},h),f=new n(t,d);i.each(a,f.add,f);var p=f.getGroup();this.group.add(p),this._buildSelectController(p,u,t,o)}},_buildSelectController:function(t,e,n,a){var o=n.axis,s=this._selectController;s||(s=this._selectController=new r("line",a.getZr(),e),s.on(y,i.bind(this._onSelected,this))),s[l](t);var u=i.map(n.activeIntervals,function(t){return[o[N](t[0],!0),o[N](t[1],!0)]});s[Se](u)},_onSelected:function(t){var e=this.axisModel,n=e.axis,r=i.map(t,function(t){return[n[E](t[0],!0),n[E](t[1],!0)]});this.api[ln]({type:"axisAreaSelect",parallelAxisId:e.id,intervals:r})},remove:function(){this._selectController&&this._selectController.disable()},dispose:function(){this._selectController&&(this._selectController[me](),this._selectController=null)}});return o}),e("echarts/component/parallelAxis",[Qr,"../coord/parallel/parallelCreator","./axis/parallelAxisAction","./axis/ParallelAxisView"],function(t){t("../coord/parallel/parallelCreator"),t("./axis/parallelAxisAction"),t("./axis/ParallelAxisView")}),e("echarts/coord/parallel/parallelPreprocessor",[Qr,Kr,Tt],function(t){function e(t){if(!t.parallel){var e=!1;n.each(t[pn],function(t){t&&"parallel"===t.type&&(e=!0)}),e&&(t.parallel=[{}])}}function i(t){var e=r[Hn](t.parallelAxis);n.each(e,function(e){if(n[Ln](e)){var i=e.parallelIndex||0,a=r[Hn](t.parallel)[i];a&&a.parallelAxisDefault&&n.merge(e,a.parallelAxisDefault,!1)}})}var n=t(Kr),r=t(Tt);return function(t){e(t),i(t)}}),e("echarts/component/parallel",[Qr,"../coord/parallel/parallelCreator","../coord/parallel/ParallelModel","./parallelAxis",K,"../coord/parallel/parallelPreprocessor"],function(t){t("../coord/parallel/parallelCreator"),t("../coord/parallel/ParallelModel"),t("./parallelAxis");var e=t(K);e[Wt]({type:"parallel"}),e[Jt](t("../coord/parallel/parallelPreprocessor"))}),e("echarts/chart/parallel/ParallelSeries",[Qr,Lt,Kr,bt],function(t){function e(t,e,i){var r=t.get("data"),a=+e[Nr]("dim","");r&&r[jr]&&n.each(i,function(t){if(t){var e=n[Hr](r,t[a]);t[a]=e>=0?e:NaN}})}var i=t(Lt),n=t(Kr),r=t(bt);return r[Cr]({type:"series.parallel",dependencies:["parallel"],getInitialData:function(t,r){var a=r[on]("parallel",this.get("parallelIndex")),o=a[en],s=a.parallelAxisIndex,l=t.data,u=n.map(o,function(t,i){var n=r[on]("parallelAxis",s[i]);return n.get("type")===At?(e(n,t,l),{name:t,type:"ordinal"}):t}),c=new i(u,this);return c[Ft](l),c},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{normal:{show:!1},emphasis:{show:!1}},inactiveOpacity:.05,activeOpacity:1,lineStyle:{normal:{width:2,opacity:.45,type:"solid"}},animationEasing:"linear"}})}),e("echarts/chart/parallel/ParallelView",[Qr,xt,Kr,at],function(t){function e(t,e,i){var n=t.model,r=t[I](),o=new a.Rect({shape:{x:r.x,y:r.y,width:r.width,height:r[ur]}}),s=n.get(c)===Sn?"width":ur;return o[ai](s,0),a[Ee](o,{shape:{width:r.width,height:r[ur]}},e,i),o}function i(t,e,i,n){for(var a=0,o=e[jr]-1;o>a;a++){var s=e[a],l=e[a+1],u=t[a],c=t[a+1];n(r(u,i[it](s).type)||r(c,i[it](l).type)?null:[i[st](u,s),i[st](c,l)],a)}}function n(t){return new a[Ye]({shape:{points:t},silent:!0})}function r(t,e){return e===At?null==t:null==t||isNaN(t)}var a=t(xt),o=t(Kr),s=t(at)[Cr]({type:"parallel",init:function(){this._dataGroup=new a.Group,this.group.add(this._dataGroup),this._data},render:function(t,r,s,l){function u(t){var e=f[Zt](m,t),r=new a.Group;d.add(r),i(e,m,v,function(t,e){t&&r.add(n(t))}),f[Dt](t,r)}function c(e,r){var o=f[Zt](m,e),s=p[wi](r),l=[],u=0;i(o,m,v,function(e,i){var r=s[An](u++);e&&!r?l.push(n(e)):e&&a[Ne](r,{shape:{points:e}},t)});for(var c=s.childCount()-1;c>=u;c--)s[Pi](s[An](c));for(var c=0,h=l[jr];h>c;c++)s.add(l[c]);f[Dt](e,s)}function h(t){var e=p[wi](t);d[Pi](e)}var d=this._dataGroup,f=t[En](),p=this._data,v=t[nn],m=v[en];f.diff(p).add(u)[Se](c)[Pi](h)[ct](),f[xi](function(t,e){var i=f[In](e),n=i[tr](Q);t[Tn](function(t){t[Ue](o[Cr](n[J](),{stroke:f[Pt](e,"color"),opacity:f[Pt](e,xr)}))})}),this._data||d.setClipPath(e(v,t,function(){d.removeClipPath()})),this._data=f},remove:function(){this._dataGroup&&this._dataGroup[Ai](),this._data=null}});return s}),e("echarts/chart/parallel/parallelVisual",[Qr],function(t){return function(t,e){t[de]("parallel",function(e){var i=e[tr](C),n=t.get("color"),r=i.get("color")||n[e[Nn]%n[jr]],a=e.get("inactiveOpacity"),o=e.get("activeOpacity"),s=e[tr](Q)[J](),l=e[nn],u=e[En](),c={normal:s[xr],active:o,inactive:a};l.eachActiveState(u,function(t,e){u[fe](e,xr,c[t])}),u[ve]("color",r)})}}),e("echarts/chart/parallel",[Qr,K,"../component/parallel","./parallel/ParallelSeries","./parallel/ParallelView","./parallel/parallelVisual"],function(t){var e=t(K);t("../component/parallel"),t("./parallel/ParallelSeries"),t("./parallel/ParallelView"),e[Xt]("chart",t("./parallel/parallelVisual"))}),e("echarts/chart/sankey/SankeySeries",[Qr,bt,"../helper/createGraphFromNodeEdge"],function(t){
var e=t(bt),i=t("../helper/createGraphFromNodeEdge");return e[Cr]({type:"series.sankey",layoutInfo:null,getInitialData:function(t,e){var n=t.edges||t.links,r=t.data||t.nodes;if(r&&n){var a=i(r,n,this,!0);return a.data}},getGraph:function(){return this[En]().graph},getEdgeData:function(){return this.getGraph().edgeData},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",nodeWidth:20,nodeGap:8,layoutIterations:32,label:{normal:{show:!0,position:"right",textStyle:{color:"#000",fontSize:12}},emphasis:{show:!0}},itemStyle:{normal:{borderWidth:1,borderColor:"#aaa"}},lineStyle:{normal:{color:"#314656",opacity:.2,curveness:.5},emphasis:{opacity:.6}},color:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],animationEasing:"linear",animationDuration:1e3}})}),e("echarts/chart/sankey/SankeyView",[Qr,xt,Tt,Kr,T],function(t){function e(t,e,n){var r=new i.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t[ur]+20}});return i[Ee](r,{shape:{width:t.width+20,height:t[ur]+20}},e,n),r}var i=t(xt),n=t(Tt),r=t(Kr),a=i[Xe]({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0},buildPath:function(t,e){var i=e.extent/2;t[di](e.x1,e.y1-i),t[ci](e.cpx1,e.cpy1-i,e.cpx2,e.cpy2-i,e.x2,e.y2-i),t[hi](e.x2,e.y2+i),t[ci](e.cpx2,e.cpy2+i,e.cpx1,e.cpy1+i,e.x1,e.y1+i),t[ui]()}});return t(T)[jt]({type:"sankey",_model:null,render:function(t,s,l){var u=t.getGraph(),c=this.group,h=t.layoutInfo;this[ne]=t,c[Ai](),c[Cn]=[h.x,h.y];var f=u.edgeData,p=t[Un],v=n[Bn](t,f,p.edges||p.links);v[d]=function(t){var e=this[Pn](t),i=e.data,n=i.source+" -- "+i[Zi];return e.value&&(n+=":"+e.value),n},u[o](function(e){var n=e[Vt](),a=e[tr](),o=a[tr](S),s=o[tr](Qn),l=a[tr](M),u=l[tr](Qn),h=new i.Rect({shape:{x:n.x,y:n.y,width:e[Vt]().dx,height:e[Vt]().dy},style:{text:o.get("show")?t[ht](e[bi],Gn)||e.id:"",textFont:s[Kn](),textFill:s[Ge](),textPosition:o.get(Cn)}});h[Ue](r[ir]({fill:e[Ot]("color")},a[tr](C)[dt]())),i[We](h,r[Cr](e[tr](A),{text:l.get("show")?t[ht](e[bi],Zn)||e.id:"",textFont:u[Kn](),textFill:u[Ge](),textPosition:l.get(Cn)})),c.add(h)}),u.eachEdge(function(t){var e=new a;e[bi]=t[bi],e[Qt]=v;var n=t[tr](Q),r=n.get("curveness"),o=t.node1[Vt](),s=t.node2[Vt](),l=t[Vt]();e.shape.extent=Math.max(1,l.dy);var u=o.x+o.dx,h=o.y+l.sy+l.dy/2,d=s.x,f=s.y+l.ty+l.dy/2,p=u*(1-r)+d*r,m=h,g=u*r+d*(1-r),y=f;e[ai]({x1:u,y1:h,x2:d,y2:f,cpx1:p,cpy1:m,cpx2:g,cpy2:y}),e[Ue](n[dt]()),i[We](e,t[tr]("lineStyle.emphasis")[dt]()),c.add(e)}),this._data||c.setClipPath(e(c[Jn](),t,function(){c.removeClipPath()})),this._data=t[En]()}})}),e("echarts/util/array/nest",[Qr,Kr],function(t){function e(){function t(e,r){if(r>=n[jr])return e;for(var a=-1,o=e[jr],s=n[r++],l={},u={};++a<o;){var c=s(e[a]),h=u[c];h?h.push(e[a]):u[c]=[e[a]]}return i.each(u,function(e,i){l[i]=t(e,r)}),l}function e(t,a){if(a>=n[jr])return t;var o=[],s=r[a++];return i.each(t,function(t,i){o.push({key:i,values:e(t,a)})}),s?o.sort(function(t,e){return s(t.key,e.key)}):o}var n=[],r=[];return{key:function(t){return n.push(t),this},sortKeys:function(t){return r[n[jr]-1]=t,this},entries:function(i){return e(t(i,0),0)}}}var i=t(Kr);return e}),e("echarts/chart/sankey/sankeyLayout",[Qr,V,"../../util/array/nest",Kr],function(t){function e(t,e){return M[wn](t[P](),{width:e[cn](),height:e[un]()})}function i(t,e,i,n,a,o,s){r(t,i,a),l(t,e,o,n,s),v(t)}function n(t){A.each(t,function(t){var e=y(t.outEdges,b),i=y(t.inEdges,b),n=Math.max(e,i);t[Rt]({value:n},!0)})}function r(t,e,i){for(var n=t,r=null,a=0,l=0;n[jr];)r=[],A.each(n,function(t){t[Rt]({x:a},!0),t[Rt]({dx:e},!0),A.each(t.outEdges,function(t){r.push(t.node2)})}),n=r,++a;o(t,a),l=(i-e)/(a-1),s(t,l)}function o(t,e){A.each(t,function(t){t.outEdges[jr]||t[Rt]({x:e-1},!0)})}function s(t,e){A.each(t,function(t){var i=t[Vt]().x*e;t[Rt]({x:i},!0)})}function l(t,e,i,n,r){var a=S().key(function(t){return t[Vt]().x}).sortKeys(w).entries(t).map(function(t){return t.values});u(t,a,e,i,n),c(a,n,i);for(var o=1;r>0;r--)o*=.99,h(a,o),c(a,n,i),f(a,o),c(a,n,i)}function u(t,e,i,n,r){var a=[];A.each(e,function(t){var e=t[jr],i=0;A.each(t,function(t){i+=t[Vt]().value});var o=(n-(e-1)*r)/i;a.push(o)}),a.sort(function(t,e){return t-e});var o=a[0];A.each(e,function(t){A.each(t,function(t,e){t[Rt]({y:e},!0);var i=t[Vt]().value*o;t[Rt]({dy:i},!0)})}),A.each(i,function(t){var e=+t.getValue()*o;t[Rt]({dy:e},!0)})}function c(t,e,i){A.each(t,function(t){var n,r,a,o=0,s=t[jr];for(t.sort(_),a=0;s>a;a++){if(n=t[a],r=o-n[Vt]().y,r>0){var l=n[Vt]().y+r;n[Rt]({y:l},!0)}o=n[Vt]().y+n[Vt]().dy+e}if(r=o-e-i,r>0){var l=n[Vt]().y-r;for(n[Rt]({y:l},!0),o=n[Vt]().y,a=s-2;a>=0;--a)n=t[a],r=n[Vt]().y+n[Vt]().dy+e-o,r>0&&(l=n[Vt]().y-r,n[Rt]({y:l},!0)),o=n[Vt]().y}})}function h(t,e){A.each(t.slice()[a](),function(t){A.each(t,function(t){if(t.outEdges[jr]){var i=y(t.outEdges,d)/y(t.outEdges,b),n=t[Vt]().y+(i-x(t))*e;t[Rt]({y:n},!0)}})})}function d(t){return x(t.node2)*t.getValue()}function f(t,e){A.each(t,function(t){A.each(t,function(t){if(t.inEdges[jr]){var i=y(t.inEdges,p)/y(t.inEdges,b),n=t[Vt]().y+(i-x(t))*e;t[Rt]({y:n},!0)}})})}function p(t){return x(t.node1)*t.getValue()}function v(t){A.each(t,function(t){t.outEdges.sort(m),t.inEdges.sort(g)}),A.each(t,function(t){var e=0,i=0;A.each(t.outEdges,function(t){t[Rt]({sy:e},!0),e+=t[Vt]().dy}),A.each(t.inEdges,function(t){t[Rt]({ty:i},!0),i+=t[Vt]().dy})})}function m(t,e){return t.node2[Vt]().y-e.node2[Vt]().y}function g(t,e){return t.node1[Vt]().y-e.node1[Vt]().y}function y(t,e){var i,n=0,r=t[jr],a=-1;if(1===arguments[jr])for(;++a<r;)i=+t[a],isNaN(i)||(n+=i);else for(;++a<r;)i=+e.call(t,t[a],a),isNaN(i)||(n+=i);return n}function x(t){return t[Vt]().y+t[Vt]().dy/2}function _(t,e){return t[Vt]().y-e[Vt]().y}function w(t,e){return e>t?-1:t>e?1:t==e?0:NaN}function b(t){return t.getValue()}var M=t(V),S=t("../../util/array/nest"),A=t(Kr);return function(t,r){t[de]("sankey",function(t){var a=t.get("nodeWidth"),o=t.get("nodeGap"),s=e(t,r);t.layoutInfo=s;var l=s.width,u=s[ur],c=t.getGraph(),h=c.nodes,d=c.edges;n(h);var f=h[$r](function(t){return 0===t[Vt]().value}),p=0!==f[jr]?0:t.get("layoutIterations");i(h,d,a,o,l,u,p)})}}),e("echarts/chart/sankey/sankeyVisual",[Qr,n],function(t){var e=t(n);return function(t,i){t[de]("sankey",function(t){var i=t.getGraph(),n=i.nodes;n.sort(function(t,e){return t[Vt]().value-e[Vt]().value});var r=n[0][Vt]().value,a=n[n[jr]-1][Vt]().value;n.forEach(function(i){var n=new e({type:"color",mappingMethod:"linear",dataExtent:[r,a],visual:t.get("color")}),o=n.mapValueToVisual(i[Vt]().value);i[ve]("color",o)})})}}),e("echarts/chart/sankey",[Qr,K,"./sankey/SankeySeries","./sankey/SankeyView","./sankey/sankeyLayout","./sankey/sankeyVisual"],function(t){var e=t(K);t("./sankey/SankeySeries"),t("./sankey/SankeyView"),e[Yt](t("./sankey/sankeyLayout")),e[Xt]("chart",t("./sankey/sankeyVisual"))}),e("echarts/chart/helper/WhiskerBoxDraw",[Qr,Kr,xt,li],function(t){function e(t,e,i,n){o.Group.call(this),this.bodyIndex,this.whiskerIndex,this.styleUpdater=i,this._createContent(t,e,n),this[gt](t,e,n),this._seriesModel}function i(t,e,i){return a.map(t,function(t){return t=t.slice(),t[e]=i.initBaseline,t})}function n(t){var e={};return a.each(t,function(t,i){e["ends"+i]=t}),e}function r(t){this.group=new o.Group,this.styleUpdater=t}var a=t(Kr),o=t(xt),s=t(li),l=s[Cr]({type:"whiskerInBox",shape:{},buildPath:function(t,e){for(var i in e)if(0===i[Hr]("ends")){var n=e[i];t[di](n[0][0],n[0][1]),t[hi](n[1][0],n[1][1])}}}),u=e[Jr];u._createContent=function(t,e,r){var s=t[zt](e),u=s.chartLayout===Sn?1:0,c=0;this.add(new o[$e]({shape:{points:r?i(s.bodyEnds,u,s):s.bodyEnds},style:{strokeNoScale:!0},z2:100})),this.bodyIndex=c++;var h=a.map(s.whiskerEnds,function(t){return r?i(t,u,s):t});this.add(new l({shape:n(h),style:{strokeNoScale:!0},z2:100})),this.whiskerIndex=c++},u[gt]=function(t,e,i){var r=this._seriesModel=t[Qt],a=t[zt](e),s=o[i?Ee:Ne];s(this[An](this.bodyIndex),{shape:{points:a.bodyEnds}},r),s(this[An](this.whiskerIndex),{shape:n(a.whiskerEnds)},r),this.styleUpdater.call(null,this,t,e)},a[Ar](e,o.Group);var c=r[Jr];return c[gt]=function(t){var i=this.group,n=this._data,r=this.styleUpdater;t.diff(n).add(function(n){if(t.hasValue(n)){var a=new e(t,n,r,!0);t[Dt](n,a),i.add(a)}})[Se](function(a,o){var s=n[wi](o);return t.hasValue(a)?(s?s[gt](t,a):s=new e(t,a,r),i.add(s),void t[Dt](a,s)):void i[Pi](s)})[Pi](function(t){var e=n[wi](t);e&&i[Pi](e)})[ct](),this._data=t},c[Pi]=function(){var t=this.group,e=this._data;this._data=null,e&&e[xi](function(e){e&&t[Pi](e)})},r}),e("echarts/chart/helper/whiskerBoxCommon",[Qr,Lt,kt,"../helper/WhiskerBoxDraw",Kr],function(t){function e(t){return null==t.value?t:t.value}var i=t(Lt),n=t(kt),r=t("../helper/WhiskerBoxDraw"),a=t(Kr),o={_baseAxisDim:null,getInitialData:function(t,r){var a,o,s=r[on]("xAxis",this.get("xAxisIndex")),l=r[on]("yAxis",this.get("yAxisIndex")),u=s.get("type"),h=l.get("type");u===At?(t[c]=Sn,a=s[St](),o=!0):h===At?(t[c]=Mn,a=l[St](),o=!0):t[c]=t[c]||Sn,this._baseAxisDim=t[c]===Sn?"x":"y";var d=t.data,f=this[en]=["base"][Gr](this.valueDimensions);n(f,d);var p=new i(f,this);return p[Ft](d,a?a.slice():null,function(t,i,n,r){var a=e(t);return o?"base"===i?n:a[r-1]:a[r]}),p},getDimensionsOnAxis:function(t){var e=this.valueDimensions.slice(),i=["base"],n={horizontal:{x:i,y:e},vertical:{x:e,y:i}};return n[this.get(c)][t]},getCoordDimensionInfo:function(t){var e,i=this[En](),n=[];return a.each(["x","y"],function(r,o){var s=this[L](r);null!=t&&a[Hr](s,t)>=0&&(e=i.getDimensionInfo(t),e.name=r),n[o]=i.getDimensionInfo(s[0]),n[o].name=r},this),null!=t?e:n},getBaseAxis:function(){var t=this._baseAxisDim;return this[er][on](t+"Axis",this.get(t+"AxisIndex")).axis}},s={init:function(){var t=this._whiskerBoxDraw=new r(this.getStyleUpdater());this.group.add(t.group)},render:function(t,e,i){this._whiskerBoxDraw[gt](t[En]())},remove:function(t){this._whiskerBoxDraw[Pi]()}};return{seriesModelMixin:o,viewMixin:s}}),e("echarts/chart/boxplot/BoxplotSeries",[Qr,Kr,bt,"../helper/whiskerBoxCommon"],function(t){var e=t(Kr),i=t(bt),n=t("../helper/whiskerBoxCommon"),r=i[Cr]({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],valueDimensions:["min","Q1","median","Q3","max"],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,layout:null,boxWidth:[7,50],itemStyle:{normal:{color:"#fff",borderWidth:1},emphasis:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});return e.mixin(r,n.seriesModelMixin,!0),r}),e("echarts/chart/boxplot/BoxplotView",[Qr,Kr,at,xt,"../helper/whiskerBoxCommon"],function(t){function e(t,e,i){var n=e[In](i),a=n[tr](s),o=e[Pt](i,"color"),u=a[dt]([Yn]),c=t[An](t.whiskerIndex);c.style.set(u),c.style[_r]=o,c.dirty();var h=t[An](t.bodyIndex);h.style.set(u),h.style[_r]=o,h.dirty();var d=n[tr](l)[dt]();r[We](t,d)}var i=t(Kr),n=t(at),r=t(xt),a=t("../helper/whiskerBoxCommon"),o=n[Cr]({type:"boxplot",getStyleUpdater:function(){return e}});i.mixin(o,a.viewMixin,!0);var s=[ue,Gn],l=[ue,Zn];return o}),e("echarts/chart/boxplot/boxplotVisual",[Qr],function(t){var e=[ue,Gn,Yn];return function(t,i){var n=t.get("color");t.eachRawSeriesByType("boxplot",function(i){var r=n[i[Nn]%n[jr]],a=i[En]();a[ve]({legendSymbol:"roundRect",color:i.get(e)||r}),t[pe](i)||a.each(function(t){var i=a[In](t);a[fe](t,{color:i.get(e,!0)})})})}}),e("echarts/chart/boxplot/boxplotLayout",[Qr,Kr,yt],function(t){function e(t){var e=[],i=[];return t[de]("boxplot",function(t){var n=t[tn](),a=r[Hr](i,n);0>a&&(a=i[jr],i[a]=n,e[a]={axis:n,seriesModels:[]}),e[a].seriesModels.push(t)}),e}function i(t){var e,i,n=t.axis,a=t.seriesModels,l=a[jr],u=t.boxWidthList=[],c=t.boxOffsetList=[],h=[];if(n.type===At)i=n[nt]();else{var d=0;s(a,function(t){d=Math.max(d,t[En]().count())}),e=n[lt](),Math.abs(e[1]-e[0])/d}s(a,function(t){var e=t.get("boxWidth");r[Or](e)||(e=[e,e]),h.push([o(e[0],i)||0,o(e[1],i)||0])});var f=.8*i-2,p=f/l*.3,v=(f-p*(l-1))/l,m=v/2-f/2;s(a,function(t,e){c.push(m),m+=p+v,u.push(Math.min(Math.max(v,h[e][0]),h[e][1]))})}function n(t,e,i){var n=t[nn],r=t[En](),a=t[en],o=t.get(c),s=i/2;r.each(a,function(){function t(t){var i=[];i[f]=h,i[p]=t;var r;return isNaN(h)||isNaN(t)?r=[NaN,NaN]:(r=n[st](i),r[f]+=e),r}function i(t,e){var i=t.slice(),n=t.slice();i[f]+=s,n[f]-=s,e?x.push(i,n):x.push(n,i)}function l(t){var e=[t.slice(),t.slice()];e[0][f]-=s,e[1][f]+=s,y.push(e)}var u=arguments,c=a[jr],h=u[0],d=u[c],f=o===Sn?0:1,p=1-f,v=t(u[3]),m=t(u[1]),g=t(u[5]),y=[[m,t(u[2])],[g,t(u[4])]];l(m),l(g),l(v);var x=[];i(y[0][1],0),i(y[1][1],1),r[It](d,{chartLayout:o,initBaseline:v[p],median:v,bodyEnds:x,whiskerEnds:y})})}var r=t(Kr),a=t(yt),o=a[Rr],s=r.each;return function(t,r){var a=e(t);s(a,function(t){var e=t.seriesModels;e[jr]&&(i(t),s(e,function(e,i){n(e,t.boxOffsetList[i],t.boxWidthList[i])}))})}}),e("echarts/chart/boxplot",[Qr,K,"./boxplot/BoxplotSeries","./boxplot/BoxplotView","./boxplot/boxplotVisual","./boxplot/boxplotLayout"],function(t){var e=t(K);t("./boxplot/BoxplotSeries"),t("./boxplot/BoxplotView"),e[Xt]("chart",t("./boxplot/boxplotVisual")),e[Yt](t("./boxplot/boxplotLayout"))}),e("echarts/chart/candlestick/CandlestickSeries",[Qr,Kr,bt,"../helper/whiskerBoxCommon",v],function(t){var e=t(Kr),i=t(bt),n=t("../helper/whiskerBoxCommon"),r=t(v),a=r[an],o=r[rn],s=i[Cr]({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],valueDimensions:["open","close","lowest","highest"],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,layout:null,itemStyle:{normal:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{borderWidth:2}},animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},formatTooltip:function(t,i){var n=e.map(this.valueDimensions,function(e){return e+": "+o(this._data.get(e,t))},this);return a(this.name)+Qi+n.join(Qi)}});return e.mixin(s,n.seriesModelMixin,!0),s}),e("echarts/chart/candlestick/CandlestickView",[Qr,Kr,at,xt,"../helper/whiskerBoxCommon"],function(t){function e(t,e,i){var n=e[In](i),a=n[tr](s),o=e[Pt](i,"color"),u=e[Pt](i,Yn),c=a[dt](["color","color0",Yn,"borderColor0"]),h=t[An](t.whiskerIndex);h.style.set(c),h.style[_r]=u,h.dirty();var d=t[An](t.bodyIndex);d.style.set(c),d.style.fill=o,d.style[_r]=u,d.dirty();var f=n[tr](l)[dt]();r[We](t,f)}var i=t(Kr),n=t(at),r=t(xt),a=t("../helper/whiskerBoxCommon"),o=n[Cr]({type:"candlestick",getStyleUpdater:function(){return e}});i.mixin(o,a.viewMixin,!0);var s=[ue,Gn],l=[ue,Zn];return o}),e("echarts/chart/candlestick/preprocessor",[Qr,Kr],function(t){var e=t(Kr);return function(t){t&&e[Or](t[pn])&&e.each(t[pn],function(t){e[Ln](t)&&"k"===t.type&&(t.type="candlestick")})}}),e("echarts/chart/candlestick/candlestickVisual",[Qr],function(t){var e=[ue,Gn,Yn],i=[ue,Gn,"borderColor0"],n=[ue,Gn,"color"],r=[ue,Gn,"color0"];return function(t,a){t.eachRawSeriesByType("candlestick",function(a){var o=a[En]();o[ve]({legendSymbol:"roundRect"}),t[pe](a)||o.each(function(t){var a=o[In](t),s=o[zt](t).sign;o[fe](t,{color:a.get(s>0?n:r),borderColor:a.get(s>0?e:i)})})})}}),e("echarts/chart/candlestick/candlestickLayout",[Qr],function(t){function e(t,e){var a,o=t[tn](),s=o.type===At?o[nt]():(a=o[lt](),Math.abs(a[1]-a[0])/e.count());return s/2-2>n?s/2-2:s-n>r?n:Math.max(s-r,i)}var i=2,n=5,r=4;return function(t,i){t[de]("candlestick",function(t){var i=t[nn],n=t[En](),r=t[en],a=t.get(c),o=e(t,n);n.each(r,function(){function t(t){var e=[];return e[h]=u,e[d]=t,isNaN(u)||isNaN(t)?[NaN,NaN]:i[st](e)}function e(t,e){var i=t.slice(),n=t.slice();i[h]+=o/2,n[h]-=o/2,e?S.push(i,n):S.push(n,i)}var s=arguments,l=r[jr],u=s[0],c=s[l],h=a===Sn?0:1,d=1-h,f=s[1],p=s[2],v=s[3],m=s[4],g=Math.min(f,p),y=Math.max(f,p),x=t(g),_=t(y),w=t(v),b=t(m),M=[[b,_],[w,x]],S=[];e(_,0),e(x,1),n[It](c,{chartLayout:a,sign:f>p?-1:p>f?1:0,initBaseline:f>p?_[d]:x[d],bodyEnds:S,whiskerEnds:M})},!0)})}}),e("echarts/chart/candlestick",[Qr,K,"./candlestick/CandlestickSeries","./candlestick/CandlestickView","./candlestick/preprocessor","./candlestick/candlestickVisual","./candlestick/candlestickLayout"],function(t){var e=t(K);t("./candlestick/CandlestickSeries"),t("./candlestick/CandlestickView"),e[Jt](t("./candlestick/preprocessor")),e[Xt]("chart",t("./candlestick/candlestickVisual")),e[Yt](t("./candlestick/candlestickLayout"))}),e("echarts/chart/effectScatter/EffectScatterSeries",[Qr,Mt,bt],function(t){var e=t(Mt),i=t(bt);return i[Cr]({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(t,i){var n=e(t.data,this,i);return n},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},xAxisIndex:0,yAxisIndex:0,polarIndex:0,geoIndex:0,symbolSize:10}})}),e("echarts/chart/helper/EffectSymbol",[Qr,Kr,_t,xt,yt,"./Symbol"],function(t){function e(t){return n[Or](t)||(t=[+t,+t]),t}function i(t,e){l.call(this);var i=new s(t,e),n=new l;this.add(i),this.add(n),n.beforeUpdate=function(){this.attr(i.getScale())},this[gt](t,e)}var n=t(Kr),r=t(_t),a=t(xt),o=t(yt),s=t("./Symbol"),l=a.Group,u=3,c=i[Jr];return c.stopEffectAnimation=function(){this[An](1)[Ai]()},c.startEffectAnimation=function(t,e,i,n,a,o){for(var s=this._symbolType,l=this._color,c=this[An](1),h=0;u>h;h++){var d=r[mt](s,-.5,-.5,1,1,l);d.attr({style:{stroke:e===_r?l:null,fill:"fill"===e?l:null,strokeNoScale:!0},z2:99,silent:!0,scale:[1,1],z:a,zlevel:o});var f=-h/u*t+n;d[Oi]("",!0).when(t,{scale:[i,i]}).delay(f).start(),d.animateStyle(!0).when(t,{opacity:0}).delay(f).start(),c.add(d)}},c[ee]=function(){this[Mi](Zn)},c[te]=function(){this[Mi](Gn)},c[gt]=function(t,i){function n(){w[Mi](Zn),p!==Si&&this.startEffectAnimation(g,m,v,y,x,_)}function r(){w[Mi](Gn),p!==Si&&this.stopEffectAnimation()}var a=t[Qt];this[An](0)[gt](t,i);var s=this[An](1),l=t[In](i),u=t[Pt](i,pt),c=e(t[Pt](i,vt)),h=t[Pt](i,"color");s.attr("scale",c),s[ki](function(t){t.attr({fill:h})});var d=l[br]("symbolOffset");if(d){var f=s[Cn];f[0]=o[Rr](d[0],c[0]),f[1]=o[Rr](d[1],c[1])}this._symbolType=u,this._color=h;var p=a.get("showEffectOn"),v=l.get("rippleEffect.scale"),m=l.get("rippleEffect.brushType"),g=1e3*l.get("rippleEffect.period"),y=i/t.count(),x=l[br]("z")||0,_=l[br](Ae)||0;this.stopEffectAnimation(),p===Si&&this.startEffectAnimation(g,m,v,y,x,_);var w=this[An](0);this.on(He,n,this).on(Fe,r,this).on(Zn,n,this).on(Gn,r,this)},c.fadeOut=function(t){t&&t()},n[Ar](i,l),i}),e("echarts/chart/effectScatter/EffectScatterView",[Qr,ot,"../helper/EffectSymbol",T],function(t){var e=t(ot),i=t("../helper/EffectSymbol");t(T)[jt]({type:"effectScatter",init:function(){this[tt]=new e(i)},render:function(t,e,i){var n=t[En](),r=this[tt];r[gt](n),this.group.add(r.group)},updateLayout:function(){this[tt][Ci]()},remove:function(t,e){this[tt]&&this[tt][Pi](e)}})}),e("echarts/chart/effectScatter",[Qr,Kr,K,"./effectScatter/EffectScatterSeries","./effectScatter/EffectScatterView",$,Y],function(t){var e=t(Kr),i=t(K);t("./effectScatter/EffectScatterSeries"),t("./effectScatter/EffectScatterView"),i[Xt]("chart",e.curry(t($),"effectScatter",ft,null)),i[Yt](e.curry(t(Y),"effectScatter"))}),e("echarts/chart/lines/LinesSeries",[Qr,bt,Lt,Kr,Ct],function(t){var e=t(bt),i=t(Lt),n=t(Kr),r=t(Ct);return e[Cr]({type:"series.lines",dependencies:["grid","polar"],getInitialData:function(t,e){function a(t,e,i,n){return t.coord&&t.coord[n]}var o=[],s=[],l=[];n.each(t.data,function(t){o.push(t[0]),s.push(t[1]),l.push(n[Cr](n[Cr]({},n[Or](t[0])?null:t[0]),n[Or](t[1])?null:t[1]))});var u=r.get(t[nn]);if(!u)throw new Error("Invalid coordinate system");var c=u[en],h=new i(c,this),d=new i(c,this),f=new i(["value"],this);return h[Ft](o,null,a),d[Ft](s,null,a),f[Ft](l),this.fromData=h,this.toData=d,f},formatTooltip:function(t){var e=this.fromData[zn](t),i=this.toData[zn](t);return e+" > "+i},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,geoIndex:0,effect:{show:!1,period:4,symbol:"circle",symbolSize:3,trailLength:.2},large:!1,largeThreshold:2e3,label:{normal:{show:!1,position:"end"}},lineStyle:{normal:{opacity:.5}}}})}),e("echarts/chart/helper/EffectLine",[Qr,xt,"./Line",Kr,_t,"zrender/core/curve"],function(t){function e(t,e,i,n){r.Group.call(this);var o=new a(t,e,i,n);this.add(o),this._updateEffectSymbol(t,n)}function i(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}function n(){var t=this.__p1,e=this.__p2,i=this.__cp1,n=this.__t,r=this[Cn],a=l[pi],o=l.quadraticDerivativeAt;r[0]=a(t[0],i[0],e[0],n),r[1]=a(t[1],i[1],e[1],n);var s=o(t[0],i[0],e[0],n),u=o(t[1],i[1],e[1],n);this[$i]=-Math.atan2(u,s)-Math.PI/2,this[Vi]=!1}var r=t(xt),a=t("./Line"),o=t(Kr),s=t(_t),l=t("zrender/core/curve"),u=e[Jr];return u._updateEffectSymbol=function(t,e){var r=t[In](e),a=r[tr]("effect"),l=a.get(vt),u=a.get(pt);o[Or](l)||(l=[l,l]);var c=a.get("color")||t[Pt](e,"color"),h=this[An](1),d=1e3*a.get("period");(this._symbolType!==u||d!==this._period)&&(h=s[mt](u,-.5,-.5,1,1,c),h[Vi]=!0,h.z2=100,this._symbolType=u,this._period=d,this.add(h),h.__t=0,h[Oi]("",!0).when(d,{__t:1}).delay(e/t.count()*d/2).during(o.bind(n,h)).start()),h[Ue](mr,c),h[Ue](a[dt](["color"])),h.attr("scale",l);var f=t[zt](e);i(h,f),h[wt](c),h.attr("scale",l)},u[gt]=function(t,e,i,n){this[An](0)[gt](t,e,i,n),this._updateEffectSymbol(t,n)},u[Ci]=function(t,e,n,r){this[An](0)[Ci](t,e,n,r);var a=this[An](1),o=t[zt](r);i(a,o)},o[Ar](e,r.Group),e}),e("echarts/chart/lines/LinesView",[Qr,"../helper/LineDraw","../helper/EffectLine","../helper/Line",T],function(t){var e=t("../helper/LineDraw"),i=t("../helper/EffectLine"),n=t("../helper/Line");t(T)[jt]({type:"lines",init:function(){},render:function(t,r,a){var o=t[En](),s=this._lineDraw,l=t.get("effect.show");l!==this._hasEffet&&(s&&s[Pi](),s=this._lineDraw=new e(l?i:n),this._hasEffet=l);var u=t.get(Ae),c=t.get("effect.trailLength"),h=a.getZr();h.painter.getLayer(u).clear(!0),null!=this._lastZlevel&&h.configLayer(this._lastZlevel,{motionBlur:!1}),l&&c&&h.configLayer(u,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(c/10+.9,1),0)}),this.group.add(s.group),s[gt](o),this._lastZlevel=u},updateLayout:function(t,e,i){this._lineDraw[Ci]();var n=i.getZr();n.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(t,e){this._lineDraw&&this._lineDraw[Pi](e,!0)}})}),e("echarts/chart/lines/linesLayout",[Qr],function(t){return function(t){t[de]("lines",function(t){var e=t[nn],i=t.fromData,n=t.toData,r=t[En](),a=e[en];i.each(a,function(t,n,r){i[It](r,e[st]([t,n]))}),n.each(a,function(t,i,r){n[It](r,e[st]([t,i]))}),r.each(function(t){var e,a=i[zt](t),o=n[zt](t),s=r[In](t).get("lineStyle.normal.curveness");s>0&&(e=[(a[0]+o[0])/2-(a[1]-o[1])*s,(a[1]+o[1])/2-(o[0]-a[0])*s]),r[It](t,[a,o,e])})})}}),e("echarts/chart/lines",[Qr,"./lines/LinesSeries","./lines/LinesView",Kr,K,"./lines/linesLayout","../visual/seriesColor"],function(t){t("./lines/LinesSeries"),t("./lines/LinesView");var e=t(Kr),i=t(K);i[Yt](t("./lines/linesLayout")),i[Xt]("chart",e.curry(t("../visual/seriesColor"),"lines",ce))}),e("echarts/chart/heatmap/HeatmapSeries",[Qr,bt,Mt],function(t){var e=t(bt),i=t(Mt);return e[Cr]({type:"series.heatmap",getInitialData:function(t,e){return i(t.data,this,e)},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,xAxisIndex:0,yAxisIndex:0,geoIndex:0,blurSize:30,pointSize:20}})}),e("echarts/chart/heatmap/HeatmapLayer",[Qr,Kr],function(t){function e(){var t=n.createCanvas();this[qr]=t,this.blurSize=30,this.pointSize=20,this[xr]=1,this._gradientPixels={}}var i=256,n=t(Kr);return e[Jr]={update:function(t,e,n,r,a,o){var s=this._getBrush(),l=this._getGradient(t,a,"inRange"),u=this._getGradient(t,a,"outOfRange"),c=this.pointSize+this.blurSize,h=this[qr],d=h[Wr]("2d"),f=t[jr];h.width=e,h[ur]=n;for(var p=0;f>p;++p){var v=t[p],m=v[0],g=v[1],y=v[2],x=r(y);d.globalAlpha=x,d.drawImage(s,m-c,g-c)}for(var _=d.getImageData(0,0,h.width,h[ur]),w=_.data,b=0,M=w[jr];M>b;){var x=w[b+3]/256,S=4*Math.floor(x*(i-1));if(x>0){var A=o(x)?l:u;w[b++]=A[S],w[b++]=A[S+1],w[b++]=A[S+2],w[b++]*=this[xr]*A[S+3]}else b+=4}return d.putImageData(_,0,0),h},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=n.createCanvas()),e=this.pointSize+this.blurSize,i=2*e;t.width=i,t[ur]=i;var r=t[Wr]("2d");return r.clearRect(0,0,i,i),r[gr]=i,r[yr]=this.blurSize,r[mr]="#000",r[fi](),r.arc(-e,e,this.pointSize,0,2*Math.PI,!0),r[ui](),r.fill(),t},_getGradient:function(t,e,i){for(var n=this._gradientPixels,r=n[i]||(n[i]=new Uint8ClampedArray(1024)),a=[],o=0,s=0;256>s;s++)e[i](s/255,!0,a),r[o++]=a[0],r[o++]=a[1],r[o++]=a[2],r[o++]=a[3];return r}},e}),e("echarts/chart/heatmap/HeatmapView",[Qr,xt,"./HeatmapLayer",Kr,T],function(t){function e(t,e,i){var n=t[1]-t[0];e=o.map(e,function(e){return{interval:[(e[Z][0]-t[0])/n,(e[Z][1]-t[0])/n]}});var r=e[jr],a=0;return function(t){for(var n=a;r>n;n++){var o=e[n][Z];if(o[0]<=t&&t<=o[1]){a=n;break}}if(n===r)for(var n=a-1;n>=0;n--){var o=e[n][Z];if(o[0]<=t&&t<=o[1]){a=n;break}}return n>=0&&r>n&&i[n]}}function i(t,e){var i=t[1]-t[0];return e=[(e[0]-t[0])/i,(e[1]-t[0])/i],function(t){return t>=e[0]&&t<=e[1]}}function n(t){var e=t[en];return"lng"===e[0]&&"lat"===e[1]}var r=t(xt),a=t("./HeatmapLayer"),o=t(Kr);return t(T)[jt]({type:"heatmap",render:function(t,e,i){var r;if(e[ie]("visualMap",function(e){e.eachTargetSeries(function(i){i===t&&(r=e)})}),!r)throw new Error("Heatmap must use with visualMap");this.group[Ai]();var a=t[nn];a.type===D?this._renderOnCartesian(a,t,i):n(a)&&this._renderOnGeo(a,t,r,i)},_renderOnCartesian:function(t,e,i){var n=t[it]("x"),a=t[it]("y"),o=this.group;if(n.type!==At||a.type!==At)throw new Error("Heatmap on cartesian must have two category axes");if(!n[rt]||!a[rt])throw new Error("Heatmap on cartesian must have two axes with boundaryGap true");var s=n[nt](),l=a[nt](),u=e[En]();u.each(["x","y","z"],function(i,n,a,c){var h=u[In](c),d=t[st]([i,n]);if(!isNaN(a)){var f=new r.Rect({shape:{x:d[0]-s/2,y:d[1]-l/2,width:s,height:l},style:{fill:u[Pt](c,"color")}}),p=h[tr](C)[dt](["color"]),v=h[tr](A)[dt](),m=h[tr](S),g=h[tr](M),y=e[Rn](c),x="-";y&&null!=y[2]&&(x=y[2]),m.get("show")&&(r[Ze](p,m),p.text=e[ht](c,Gn)||x),g.get("show")&&(r[Ze](v,g),v.text=e[ht](c,Zn)||x),f[Ue](p),r[We](f,v),o.add(f),u[Dt](c,f)}})},_renderOnGeo:function(t,n,o,s){var l=o.targetVisuals.inRange,u=o.targetVisuals.outOfRange,c=n[En](),h=this._hmLayer||this._hmLayer||new a;h.blurSize=n.get("blurSize"),h.pointSize=n.get("pointSize");var d=t.getViewRect().clone(),f=t.getRoamTransform();d[cr](f);var p=Math.max(d.x,0),v=Math.max(d.y,0),m=Math.min(d.width+d.x,s[cn]()),g=Math.min(d[ur]+d.y,s[un]()),x=m-p,_=g-v,w=c[Et](["lng","lat","value"],function(e,i,n){var r=t[st]([e,i]);return r[0]-=p,r[1]-=v,r.push(n),r}),b=o[lt](),M="visualMap.continuous"===o.type?i(b,o[Un].range):e(b,o.getPieceList(),o[Un][y]);h[Se](w,x,_,l.color.getNormalizer(),{inRange:l.color.getColorMapper(),outOfRange:u.color.getColorMapper()},M);var S=new r.Image({style:{width:x,height:_,x:p,y:v,image:h[qr]},silent:!0});this.group.add(S)}})}),e("echarts/chart/heatmap",[Qr,"./heatmap/HeatmapSeries","./heatmap/HeatmapView"],function(t){t("./heatmap/HeatmapSeries"),t("./heatmap/HeatmapView")}),e("echarts/component/geo/GeoView",[Qr,"../helper/MapDraw",T],function(t){var e=t("../helper/MapDraw");return t(T)[Wt]({type:"geo",init:function(t,i){var n=new e(i,!0);this._mapDraw=n,this.group.add(n.group)},render:function(t,e,i){t.get("show")&&this._mapDraw.draw(t,e,i)}})}),e("echarts/component/geo",[Qr,"../coord/geo/geoCreator","./geo/GeoView","../action/geoRoam"],function(t){t("../coord/geo/geoCreator"),t("./geo/GeoView"),t("../action/geoRoam")}),e("echarts/component/title",[Qr,K,"../util/graphic","../util/layout"],function(t){var e=t(K),i=t("../util/graphic"),n=t("../util/layout");e[Ut]({type:"title",defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"left",top:"top",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),e[Wt]({type:"title",render:function(t,e,r){if(this.group[Ai](),t.get("show")){var a=this.group,o=t[tr](Qn),s=t[tr]("subtextStyle"),l=t.get(gi),u=new i.Text({style:{text:t.get("text"),textFont:o[Kn](),fill:o[Ge](),textBaseline:"top"},z2:10}),c=u[Jn](),d=t.get("subtext"),f=new i.Text({style:{text:d,textFont:s[Kn](),fill:s[Ge](),y:c[ur]+t.get(h),textBaseline:"top"},z2:10}),v=t.get("link"),m=t.get("sublink");u[Ce]=!v,f[Ce]=!m,v&&u.on("click",function(){window.open(v,t.get(Zi))}),m&&f.on("click",function(){window.open(m,t.get("subtarget"))}),a.add(u),d&&a.add(f);var g=a[Jn](),y=t[P]();y.width=g.width,y[ur]=g[ur];var x=n[wn](y,{width:r[cn](),height:r[un]()},t.get(p));if(!l){var _=x.x/r[cn](),w=(x.x+x.width)/r[cn]();.2>_?l="left":w>.8?(x.x+=x.width,l="right"):(x.x+=x.width/2,l=Vr)}a[Cn]=[x.x,x.y],u[Ue](gi,l),f[Ue](gi,l),g=a[Jn]();var b=x[_n],M=t[dt](["color",xr]);M.fill=t.get(xe);var S=new i.Rect({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g[ur]+b[0]+b[2]},style:M,silent:!0});i[je](S),a.add(S)}}})}),e("echarts/component/dataZoom/typeDefaulter",[Qr,R],function(t){t(R)[kn](oe,function(t){return"slider"})}),e("echarts/component/dataZoom/AxisProxy",[Qr,Kr,yt,z],function(t){function e(t,e){var i=[1/0,-(1/0)];return o(e,function(e){var n=e[En]();n&&o(e[L](t),function(t){var e=n[Gt](t);e[0]<i[0]&&(i[0]=e[0]),e[1]>i[1]&&(i[1]=e[1])})},this),i}function i(t,e,i){var n=[0,100],l=[t.start,t.end],u=a[G](i),c=[];return o(["startValue","endValue"],function(e){c.push(null!=t[e]?u.parse(t[e]):null)}),o([0,1],function(t){var i=c[t],a=l[t];null!=a||null==i?(null==a&&(a=n[t]),i=u.parse(r[Er](a,n,e,!0))):a=r[Er](i,e,n,!0),c[t]=i,l[t]=a}),{valueWindow:s(c),percentWindow:s(l)}}var n=t(Kr),r=t(yt),a=t(z),o=n.each,s=r.asc,l=function(t,e,i,n){this._dimName=t,this._axisIndex=e,this._backup,this._valueWindow,this._percentWindow,this._dataExtent,this[er]=n,this[ne]=i};return l[Jr]={constructor:l,hostedBy:function(t){return this[ne]===t},backup:function(t,e){t===this[ne]&&(this._backup=e)},getBackup:function(){return n.clone(this._backup)},getDataExtent:function(){return this._dataExtent.slice()},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[];return this[er][he](function(e){this._axisIndex===e.get(this._dimName+"AxisIndex")&&t.push(e)},this),t},getAxisModel:function(){return this[er][on](this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,i=this._dimName,n=this[er],r=this.getAxisModel(),a="x"===i||"y"===i;a?(e="gridIndex",t="x"===i?"y":"x"):(e="polarIndex",t="angle"===i?qn:"angle");var o;return n[ie](t+"Axis",function(t){(t.get(e)||0)===(r.get(e)||0)&&(o=t)}),o},reset:function(t){if(t===this[ne]){var n=t[Un],r=this._dimName,a=this.getAxisModel(),o=this.getTargetSeriesModels(),s=e(r,o),l=i(n,s,a);this._dataExtent=s.slice(),this._valueWindow=l.valueWindow.slice(),this._percentWindow=l.percentWindow.slice()}},filterData:function(t){function e(t){return t>=a[0]&&t<=a[1]}if(t===this[ne]){var i=this._dimName,n=this.getTargetSeriesModels(),r=t.get("filterMode"),a=this._valueWindow,s=this.getOtherAxisModel();t.get("$fromToolbox")&&s&&s.get("type")===At&&(r="empty"),o(n,function(t){var n=t[En]();n&&o(t[L](i),function(i){"empty"===r?t[ri](n.map(i,function(t){return e(t)?t:NaN})):n[Nt](i,e)})})}}},l}),e("echarts/component/dataZoom/DataZoomModel",[Qr,Kr,Oe,T,Tt,"./AxisProxy"],function(t){function e(t){var e={};return u(["start","end","startValue","endValue"],function(i){e[i]=t[i]}),e}function n(t,e,i,n){null!=i[e]&&null==i[t]&&(n[t]=null)}var r=t(Kr),a=t(Oe),o=t(T),s=t(Tt),l=t("./AxisProxy"),u=r.each,c=s.eachAxisDim;
return o[Ut]({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis",pn],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,angleAxisIndex:null,radiusAxisIndex:null,filterMode:"filter",throttle:100,start:0,end:100,startValue:null,endValue:null},init:function(t,n,r){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this[i];var a=e(t);this[yn](t,r),this.doInit(a)},mergeOption:function(t){var i=e(t);r.merge(this[Un],t,!0),this.doInit(i)},doInit:function(t){var e=this[Un];a[ge]||(e.realtime=!1),n("start","startValue",t,e),n("end","endValue",t,e),this[i]=this[tr](Qn),this._resetTarget(),this._giveAxisProxies(),this._backup()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(e,i,n,r){var a=this.dependentModels[e.axis][i],o=a.__dzAxisProxy||(a.__dzAxisProxy=new l(e.name,i,this,r));t[e.name+"_"+i]=o},this)},_resetTarget:function(){var t=this[Un],e=this._judgeAutoMode();c(function(e){var i=e[Wn];t[i]=s[Hn](t[i])},this),e===Wn?this._autoSetAxisIndex():e===f&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this[Un],e=!1;c(function(i){null!=t[i[Wn]]&&(e=!0)},this);var i=t[f];return null==i&&e?f:e?void 0:(null==i&&(t[f]=Sn),Wn)},_autoSetAxisIndex:function(){var t=!0,e=this.get(f,!0),i=this[Un];if(t){var n=e===Mn?{dim:"y",axisIndex:"yAxisIndex",axis:"yAxis"}:{dim:"x",axisIndex:"xAxisIndex",axis:"xAxis"};this.dependentModels[n.axis][jr]&&(i[n[Wn]]=[0],t=!1)}t&&c(function(e){if(t){var n=[],r=this.dependentModels[e.axis];if(r[jr]&&!n[jr])for(var a=0,o=r[jr];o>a;a++)r[a].get("type")===At&&n.push(a);i[e[Wn]]=n,n[jr]&&(t=!1)}},this),t&&this[er][he](function(t){this._isSeriesHasAllAxesTypeOf(t,"value")&&c(function(e){var n=i[e[Wn]],a=t.get(e[Wn]);r[Hr](n,a)<0&&n.push(a)})},this)},_autoSetOrient:function(){var t;this.eachTargetAxis(function(e){!t&&(t=e.name)},this),this[Un][f]="y"===t?Mn:Sn},_isSeriesHasAllAxesTypeOf:function(t,e){var i=!0;return c(function(n){var r=t.get(n[Wn]),a=this.dependentModels[n.axis][r];a&&a.get("type")===e||(i=!1)},this),i},_backup:function(){this.eachTargetAxis(function(t,e,i,n){var r=n[on](t.axis,e);this.getAxisProxy(t.name,e).backup(this,{scale:r.get("scale",!0),min:r.get("min",!0),max:r.get("max",!0)})},this)},getFirstTargetAxisModel:function(){var t;return c(function(e){if(null==t){var i=this.get(e[Wn]);i[jr]&&(t=this.dependentModels[e.axis][i[0]])}},this),t},eachTargetAxis:function(t,e){var i=this[er];c(function(n){u(this.get(n[Wn]),function(r){t.call(e,n,r,this,i)},this)},this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},setRawRange:function(t){u(["start","end","startValue","endValue"],function(e){this[Un][e]=t[e]},this)},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();return t?t.getDataPercentWindow():void 0},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var i=this.findRepresentativeAxisProxy();return i?i.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(){var t=this._axisProxies;for(var e in t)if(t.hasOwnProperty(e)&&t[e].hostedBy(this))return t[e];for(var e in t)if(t.hasOwnProperty(e)&&!t[e].hostedBy(this))return t[e]}})}),e("echarts/component/dataZoom/DataZoomView",[Qr,"../../view/Component"],function(t){var e=t("../../view/Component");return e[Cr]({type:"dataZoom",render:function(t,e,i,n){this.dataZoomModel=t,this[er]=e,this.api=i},getTargetInfo:function(){function t(t,e,i,n){for(var r,a=0;a<i[jr];a++)if(i[a].model===t){r=i[a];break}r||i.push(r={model:t,axisModels:[],coordIndex:n}),r.axisModels.push(e)}var e=this.dataZoomModel,i=this[er],n=[],r=[],a=[];return e.eachTargetAxis(function(e,o){var s=i[on](e.axis,o);if(s){a.push(s);var l=s.get("gridIndex"),u=s.get("polarIndex");if(null!=l){var c=i[on]("grid",l);t(c,s,n,l)}else if(null!=u){var c=i[on]("polar",u);t(c,s,r,u)}}},this),{cartesians:n,polars:r,axisModels:a}}})}),e("echarts/component/dataZoom/SliderZoomModel",[Qr,"./DataZoomModel",V],function(t){var e=t("./DataZoomModel"),i=t(V);return e[Cr]({type:"dataZoom.slider",inputPositionParams:null,defaultOption:{show:!0,left:"auto",right:"auto",top:"auto",bottom:"auto",width:"auto",height:"auto",backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"#ddd",fillerColor:"rgba(47,69,84,0.25)",handleColor:"rgba(47,69,84,0.65)",handleSize:10,labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}},init:function(t){this.inputPositionParams=i.getLayoutParams(t),this[g]("init",arguments)},mergeOption:function(t){this.inputPositionParams=i.getLayoutParams(t),this[g](mn,arguments)}})}),e("echarts/util/throttle",[],function(){var t={},e="\x00__throttleOriginMethod",i="\x00__throttleRate";return t.throttle=function(t,e,i,n){function r(r){function f(){c=(new Date).getTime(),h=null,(d?t:t[r]).apply(o,s||[])}var p=function(){l=(new Date).getTime(),o=this,s=arguments,a=l-(n?u:c)-e,clearTimeout(h),n?i?h=setTimeout(f,e):a>=0&&f():a>=0?f():i&&(h=setTimeout(f,-a)),u=l};return p.clear=function(){h&&(clearTimeout(h),h=null)},p}var a,o,s,l=(new Date).getTime(),u=0,c=0,h=null,d=typeof t===Br;if(e=e||0,d)return r();for(var f=[],p=0;p<t[jr];p++)f[p]=r(p);return f},t.fixRate=function(e,i){return null!=i?t.throttle(e,i,!0,!1):e},t.debounce=function(e,i){return null!=i?t.throttle(e,i,!0,!0):e},t.createOrUpdate=function(n,r,a,o){var s=n[r];if(s&&null!=a&&o){var l=s[e]||s,u=s[i];u!==a&&(s=n[r]=t[o](l,a),s[e]=l,s[i]=a)}},t.clear=function(t,i){var n=t[i];n&&n[e]&&(t[i]=n[e])},t}),e("echarts/component/helper/sliderMove",[Qr],function(t){return function(t,e,i,n,r){function o(t,e,i){var n=e[jr]?e.slice():[e,e];return e[0]>e[1]&&n[a](),0>t&&n[0]+t<i[0]&&(t=i[0]-n[0]),t>0&&n[1]+t>i[1]&&(t=i[1]-n[1]),t}return t?("rigid"===n?(t=o(t,e,i),e[0]+=t,e[1]+=t):(t=o(t,e[r],i),e[r]+=t,"push"===n&&e[0]>e[1]&&(e[1-r]=e[r])),e):e}}),e("echarts/component/dataZoom/SliderZoomView",[Qr,Kr,xt,"../../util/throttle","./DataZoomView",yt,V,"../helper/sliderMove"],function(t){function e(t){return"x"===t?"y":"x"}var n=t(Kr),r=t(xt),o=t("../../util/throttle"),s=t("./DataZoomView"),l=r.Rect,u=t(yt),c=u[Er],h=t(V),d=t("../helper/sliderMove"),v=u.asc,m=n.bind,y=Math.round,x=Math.max,_=n.each,w=7,b=1,M=30,S=Sn,A=Mn,C=5,T=["line","bar","candlestick",ae];return s[Cr]({type:"dataZoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._halfHandleSize,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,i,n){return this[g](Si,arguments),o.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get(f),this._halfHandleSize=y(t.get("handleSize")/2),this.dataZoomModel.get("show")===!1?void this.group[Ai]():(n&&n.type===oe&&n.from===this.uid||this._buildView(),void this._updateView())},remove:function(){this[g](Pi,arguments),o.clear(this,"_dispatchZoomAction")},dispose:function(){this[g](me,arguments),o.clear(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t[Ai](),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new r.Group;this._renderBackground(),this._renderDataShadow(),this._renderHandle(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,i=this._findCoordRect(),n={width:e[cn](),height:e[un]()},r=this._orient===S?{left:i.x,top:n[ur]-M-w,width:i.width,height:M}:{right:w,top:i.y,width:M,height:i[ur]};h.mergeLayoutParam(r,t.inputPositionParams);var o=h[wn](r,n,t[p]);this._location={x:o.x,y:o.y},this._size=[o.width,o[ur]],this._orient===A&&this._size[a]()},_positionGroup:function(){var t=this.group,e=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),r=n&&n.get(et),a=this._displayables.barGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(i!==S||r?i===S&&r?{scale:o?[-1,1]:[-1,-1]}:i!==A||r?{scale:o?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:o?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:o?[1,1]:[1,-1]});var s=t[Jn]([a]);t[Cn][0]=e.x-s.x,t[Cn][1]=e.y-s.y},_getViewExtent:function(){var t=this._halfHandleSize,e=x(this._size[0],4*t),i=[t,e-t];return i},_renderBackground:function(){var t=this.dataZoomModel,e=this._size;this._displayables.barGroup.add(new l({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get(xe)}}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,i=t[pn],n=i.getRawData(),a=i.getShadowDim?i.getShadowDim():t.otherDim,o=n[Gt](a),s=.3*(o[1]-o[0]);o=[o[0]-s,o[1]+s];var l=[0,e[1]],u=[0,e[0]],h=[[e[0],0],[0,0]],d=u[1]/(n.count()-1),f=0,p=Math.round(n.count()/e[0]);n.each([a],function(t,e){if(p>0&&e%p)return void(f+=d);var i=null==t||isNaN(t)||""===t?null:c(t,o,l,!0);null!=i&&h.push([f,i]),f+=d}),this._displayables.barGroup.add(new r[Ye]({shape:{points:h},style:{fill:this.dataZoomModel.get("dataBackgroundColor"),lineWidth:0},silent:!0,z2:-20}))}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,i=t.get("showDataShadow");if(i!==!1){var r,a=this[er];return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o.name,s).getTargetSeriesModels();n.each(l,function(t){if(!(r||i!==!0&&n[Hr](T,t.get("type"))<0)){var l=e(o.name),u=a[on](o.axis,s).axis;r={thisAxis:u,series:t,thisDim:o.name,otherDim:l,otherAxisInverse:t[nn][ut](u)[et]}}},this)},this),r}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],n=t.handleLabels=[],a=this._displayables.barGroup,o=this._size;a.add(t.filler=new l({draggable:!0,cursor:"move",drift:m(this._onDragMove,this,"all"),ondragend:m(this._onDragEnd,this),onmouseover:m(this._showDataInfo,this,!0),onmouseout:m(this._showDataInfo,this,!1),style:{fill:this.dataZoomModel.get("fillerColor"),textPosition:"inside"}})),a.add(new l(r[je]({silent:!0,shape:{x:0,y:0,width:o[0],height:o[1]},style:{stroke:this.dataZoomModel.get("dataBackgroundColor"),lineWidth:b,fill:"rgba(0,0,0,0)"}}))),_([0,1],function(t){a.add(e[t]=new l({style:{fill:this.dataZoomModel.get("handleColor")},cursor:"move",draggable:!0,drift:m(this._onDragMove,this,t),ondragend:m(this._onDragEnd,this),onmouseover:m(this._showDataInfo,this,!0),onmouseout:m(this._showDataInfo,this,!1)}));var o=this.dataZoomModel[i];this.group.add(n[t]=new r.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textBaseline:"middle",textAlign:"center",fill:o[Ge](),textFont:o[Kn]()}}))},this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange();this._handleEnds=c(t,[0,100],this._getViewExtent(),!0)},_updateInterval:function(t,e){var i=this._handleEnds,n=this._getViewExtent();d(e,i,n,"all"===t||this.dataZoomModel.get("zoomLock")?"rigid":"cross",t),this._range=v(c(i,n,[0,100],!0))},_updateView:function(){var t=this._displayables,e=this._handleEnds,i=v(e.slice()),n=this._size,r=this._halfHandleSize;_([0,1],function(i){var a=t.handles[i];a[ai]({x:e[i]-r,y:-1,width:2*r,height:n[1]+2,r:1})},this),t.filler[ai]({x:i[0],y:0,width:i[1]-i[0],height:this._size[1]}),this._updateDataInfo()},_updateDataInfo:function(){function t(t){var e=r.getTransform(i.handles[t],this.group),s=r.transformDirection(0===t?"right":"left",e),l=this._halfHandleSize+C,c=r[cr]([u[t]+(0===t?-l:l),this._size[1]/2],e);n[t][Ue]({x:c[0],y:c[1],textBaseline:a===S?zr:s,textAlign:a===S?s:Vr,text:o[t]})}var e=this.dataZoomModel,i=this._displayables,n=i.handleLabels,a=this._orient,o=["",""];if(e.get("showDetail")){var s,l;e.eachTargetAxis(function(t,i){s||(s=e.getAxisProxy(t.name,i).getDataValueWindow(),l=this[er][on](t.axis,i).axis)},this),s&&(o=[this._formatLabel(s[0],l),this._formatLabel(s[1],l)])}var u=v(this._handleEnds.slice());t.call(this,0),t.call(this,1)},_formatLabel:function(t,e){var i=this.dataZoomModel,r=i.get("labelFormatter");if(n.isFunction(r))return r(t);var a=i.get("labelPrecision");return(null==a||"auto"===a)&&(a=e[Dr]()),t=null==t&&isNaN(t)?"":e.type===At||"time"===e.type?e.scale[q](Math.round(t)):t[Pr](Math.min(a,20)),n[fn](r)&&(t=r[Nr]("{value}",t)),t},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr(Ti,!t),e[1].attr(Ti,!t)},_onDragMove:function(t,e,i){this._dragging=!0;var n=this._applyBarTransform([e,i],!0);this._updateInterval(t,n[0]),this._updateView(),this.dataZoomModel.get("realtime")&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),this._dispatchZoomAction()},_dispatchZoomAction:function(){var t=this._range;this.api[ln]({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_applyBarTransform:function(t,e){var i=this._displayables.barGroup[qi]();return r[cr](t,i,e)},_findCoordRect:function(){var t,e=this.getTargetInfo();if(e.cartesians[jr])t=e.cartesians[0].model[nn][I]();else{var i=this.api[cn](),n=this.api[un]();t={x:.2*i,y:.2*n,width:.6*i,height:.6*n}}return t}})}),e("echarts/component/dataZoom/InsideZoomModel",[Qr,"./DataZoomModel"],function(t){var e=t("./DataZoomModel");return e[Cr]({type:"dataZoom.inside",defaultOption:{zoomLock:!1}})}),e("echarts/component/dataZoom/InsideZoomView",[Qr,"./DataZoomView","../../util/throttle",Kr,"../helper/sliderMove","../../component/helper/RoamController"],function(t){function e(t,e,i,r){e=e.slice();var a=r.axisModels[0];if(a){var o=n(t,a,i),s=o.signal*(e[1]-e[0])*o.pixel/o.pixelLength;return u(s,e,[0,100],"rigid"),e}}function i(t,e,i,a,o,s){i=i.slice();var l=o.axisModels[0];if(l){var u=n(e,l,a),c=u.pixel-u.pixelStart,h=c/u.pixelLength*(i[1]-i[0])+i[0];return t=Math.max(t,0),i[0]=(i[0]-h)*t+h,i[1]=(i[1]-h)*t+h,r(i)}}function n(t,e,i){var n=e.axis,r=i.rect,a={};return"x"===n.dim?(a.pixel=t[0],a.pixelLength=r.width,a.pixelStart=r.x,a.signal=n[et]?1:-1):(a.pixel=t[1],a.pixelLength=r[ur],a.pixelStart=r.y,a.signal=n[et]?-1:1),a}function r(t){var e=[0,100];return!(t[0]<=e[1])&&(t[0]=e[1]),!(t[1]<=e[1])&&(t[1]=e[1]),!(t[0]>=e[0])&&(t[0]=e[0]),!(t[1]>=e[0])&&(t[1]=e[0]),t}var a=t("./DataZoomView"),o=t("../../util/throttle"),s=t(Kr),u=t("../helper/sliderMove"),c=t("../../component/helper/RoamController"),h=s.bind;return a[Cr]({type:"dataZoom.inside",init:function(t,e){this._controllers={},this._range},render:function(t,e,i,n){this[g](Si,arguments),o.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),n&&n.type===oe&&n.from===this.uid||(this._range=t.getPercentRange()),this._resetController(i)},remove:function(){this[g](Pi,arguments);var t=this._controllers;s.each(t,function(t){t.off("pan").off("zoom")}),t[jr]=0,o.clear(this,"_dispatchZoomAction")},dispose:function(){this[g](me,arguments),o.clear(this,"_dispatchZoomAction")},_resetController:function(t){var e=this._controllers,i=this.getTargetInfo();s.each(i.cartesians,function(i){var n="cartesian"+i.coordIndex,r=e[n];r||(r=e[n]=new c(t.getZr()),r[l](),r.on("pan",h(this._onPan,this,r,i)),r.on("zoom",h(this._onZoom,this,r,i))),r.rect=i.model[nn][I]().clone()},this)},_onPan:function(t,i,n,r){var a=this._range=e([n,r],this._range,t,i);a&&this._dispatchZoomAction(a)},_onZoom:function(t,e,n,r,a){var o=this.dataZoomModel;if(!o[Un].zoomLock){n=1/n;var s=this._range=i(n,[r,a],this._range,t,e,o);this._dispatchZoomAction(s)}},_dispatchZoomAction:function(t){this.api[ln]({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})}})}),e("echarts/component/dataZoom/dataZoomProcessor",[Qr,T,yt],function(t){function e(t,e,i,n){var a=t.name,o=i.getAxisProxy(a,e);o.reset(i);var s=o.getDataPercentWindow(),l=o.getDataValueWindow(),u=n[on](t.axis,e),c=0===s[0]&&100===s[1],h=o.getBackup(),d=r[Dr](l,[0,500]),f=!(20>d&&d>=0);u.setNeedsCrossZero&&u.setNeedsCrossZero(c?!h.scale:!1),u.setMin&&u.setMin(c||f?h.min:+l[0][Pr](d)),u.setMax&&u.setMax(c||f?h.max:+l[1][Pr](d))}function i(t,e,i,n){i.getAxisProxy(t.name,e).filterData(i)}var n=t(T),r=t(yt);n[Kt]($r,function(t,n){t[ie](oe,function(t){t.eachTargetAxis(e);var i=t.findRepresentativeAxisProxy(),n=i.getDataPercentWindow(),r=i.getDataValueWindow();t.setRawRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}),t[ie](oe,function(t){t.eachTargetAxis(i)})})}),e("echarts/component/dataZoom/dataZoomAction",[Qr,Kr,Tt,T],function(t){var e=t(Kr),i=t(Tt),n=t(T);n[$t](oe,function(t,n){var r=i.createLinkedNodesFinder(e.bind(n[ie],n,oe),i.eachAxisDim,function(t,e){return t.get(e[Wn])}),a=[];n[ie]({mainType:"dataZoom",query:t},function(t,e){a.push.apply(a,r(t).nodes)}),e.each(a,function(e,i){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}),e("echarts/component/dataZoom",[Qr,"./dataZoom/typeDefaulter","./dataZoom/DataZoomModel","./dataZoom/DataZoomView","./dataZoom/SliderZoomModel","./dataZoom/SliderZoomView","./dataZoom/InsideZoomModel","./dataZoom/InsideZoomView","./dataZoom/dataZoomProcessor","./dataZoom/dataZoomAction"],function(t){t("./dataZoom/typeDefaulter"),t("./dataZoom/DataZoomModel"),t("./dataZoom/DataZoomView"),t("./dataZoom/SliderZoomModel"),t("./dataZoom/SliderZoomView"),t("./dataZoom/InsideZoomModel"),t("./dataZoom/InsideZoomView"),t("./dataZoom/dataZoomProcessor"),t("./dataZoom/dataZoomAction")}),e("echarts/component/visualMap/preprocessor",[Qr,Kr],function(t){function e(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var i=t(Kr),n=i.each;return function(t){var r=t&&t.visualMap;i[Or](r)||(r=r?[r]:[]),n(r,function(t){if(t){e(t,"splitList")&&!e(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var r=t.pieces;r&&i[Or](r)&&n(r,function(t){i[Ln](t)&&(e(t,"start")&&!e(t,"min")&&(t.min=t.start),e(t,"end")&&!e(t,"max")&&(t.max=t.end))})}})}}),e("echarts/component/visualMap/typeDefaulter",[Qr,R],function(t){t(R)[kn]("visualMap",function(t){return t[r]||(t.pieces?t.pieces[jr]>0:t[F]>0)&&!t.calculable?"piecewise":"continuous"})}),e("echarts/component/visualMap/visualCoding",[Qr,T,n,Kr],function(t){function e(t,e){var i=t.targetVisuals,n={};a.each(["inRange","outOfRange"],function(t){var e=r.prepareVisualTypes(i[t]);n[t]=e}),t.eachTargetSeries(function(e){function r(t){return s[Pt](o,t)}function a(t,e){s[fe](o,t,e)}var o,s=e[En](),l=t.getDataDimension(s);s.each([l],function(e,s){o=s;for(var l=t.getValueState(e),u=i[l],c=n[l],h=0,d=c[jr];d>h;h++){var f=c[h];u[f]&&u[f].applyVisual(e,r,a)}})})}var i=t(T),r=t(n),a=t(Kr);i[Xt]("component",function(t){t[ie]("visualMap",function(i){e(i,t)})})}),e("echarts/visual/visualDefault",[Qr,Kr],function(t){var e=t(Kr),i={get:function(t,i,r){var a=e.clone((n[t]||{})[i]);return r&&e[Or](a)?a[a[jr]-1]:a}},n={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},symbol:{active:[ft,"roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};return i}),e("echarts/component/visualMap/VisualMapModel",[Qr,Kr,Oe,T,Tt,"../../visual/visualDefault",n,yt],function(t){var e=t(Kr),o=t(Oe),s=t(T),l=t(Tt),u=t("../../visual/visualDefault"),c=t(n),h=c.mapVisual,d=c.eachVisual,f=t(yt),p=e[Or],v=e.each,m=f.asc,y=f[Er];return s[Ut]({type:"visualMap",dependencies:[pn],dataBound:[-(1/0),1/0],stateList:["inRange","outOfRange"],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,min:0,max:200,dimension:null,inRange:null,outOfRange:null,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",seriesIndex:null,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,color:["#bf444c","#d88273","#f6efa6"],formatter:null,text:null,textStyle:{color:"#333"}},init:function(t,e,n){this._autoSeriesIndex=!1,this._dataExtent,this.controllerVisuals={},this.targetVisuals={},this[i],this.itemSize,this[yn](t,n),this.doMergeOption({},!0)},mergeOption:function(t){this[g](mn,arguments),this.doMergeOption(t,!1)},doMergeOption:function(t,e){var n=this[Un];o[ge]||(n.realtime=!1),this[i]=this[tr](Qn),this.resetItemSize(),this.completeVisualOption()},formatValueText:function(t,i){function n(t){return t===l[0]?"min":t===l[1]?"max":(+t)[Pr](s)}var r,a,o=this[Un],s=o.precision,l=this.dataBound,u=o[Dn];return e[Or](t)&&(t=t.slice(),r=!0),a=i?t:r?[n(t[0]),n(t[1])]:n(t),e[fn](u)?u[Nr]("{value}",r?a[0]:a)[Nr]("{value2}",r?a[1]:a):e.isFunction(u)?r?u(t[0],t[1]):u(t):r?t[0]===l[0]?"< "+a[1]:t[1]===l[1]?"> "+a[0]:a[0]+" - "+a[1]:a},resetTargetSeries:function(t,e){var i=this[Un],n=this._autoSeriesIndex=null==(e?i:t)[Nn];i[Nn]=n?[]:l[Hn](i[Nn]),n&&this[er][he](function(t,e){var n=t[En]();"list"===n.type&&i[Nn].push(e)})},resetExtent:function(){var t=this[Un],e=m([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this[Un].dimension;return null!=e?e:t[en][jr]-1},getExtent:function(){return this._dataExtent.slice()},resetVisual:function(t){function e(e,n){v(this.stateList,function(r){var a=n[r]||(n[r]={}),o=this[Un][e][r]||{};v(o,function(e,n){if(c.isValidType(n)){var o={type:n,dataExtent:i,visual:e};t&&t.call(this,o,r),a[n]=new c(o)}},this)},this)}var i=this[lt]();e.call(this,"controller",this.controllerVisuals),e.call(this,Zi,this.targetVisuals)},completeVisualOption:function(){function t(t){p(r.color)&&!t.inRange&&(t.inRange={color:r.color.slice()[a]()}),v(this.stateList,function(i){var n=t[i];if(e[fn](n)){var r=u.get(n,"active",f);r?(t[i]={},t[i][n]=r):delete t[i]}},this)}function i(t,e,i){var n=t[e],r=t[i];n&&!r&&(r=t[i]={},v(n,function(t,e){var i=u.get(e,"inactive",f);c.isValidType(e)&&i&&(r[e]=i)}))}function n(t){var i=(t.inRange||{})[pt]||(t.outOfRange||{})[pt],n=(t.inRange||{})[vt]||(t.outOfRange||{})[vt],r=this.get("inactiveColor");v(this.stateList,function(a){var o=this.itemSize,s=t[a];s||(s=t[a]={color:f?r:[r]}),s[pt]||(s[pt]=i&&e.clone(i)||(f?"roundRect":["roundRect"])),s[vt]||(s[vt]=n&&e.clone(n)||(f?o[0]:[o[0],o[0]])),s[pt]=h(s[pt],function(t){return"none"===t||"square"===t?"roundRect":t});var l=s[vt];if(l){var u=-(1/0);d(l,function(t){t>u&&(u=t)}),s[vt]=h(l,function(t){return y(t,[0,u],[0,o[0]],!0)})}},this)}var r=this[Un],o={inRange:r.inRange,outOfRange:r.outOfRange},s=r[Zi]||(r[Zi]={}),l=r.controller||(r.controller={});e.merge(s,o),e.merge(l,o);var f=this.isCategory();t.call(this,s),t.call(this,l),i.call(this,s,"inRange","outOfRange"),i.call(this,s,"outOfRange","inRange"),n.call(this,l)},eachTargetSeries:function(t,i){e.each(this[Un][Nn],function(e){t.call(i,this[er].getSeriesByIndex(e))},this)},isCategory:function(){return!!this[Un][r]},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},setSelected:e.noop,getValueState:e.noop})}),e("echarts/component/visualMap/ContinuousModel",[Qr,"./VisualMapModel",Kr,yt],function(t){var e=t("./VisualMapModel"),i=t(Kr),n=t(yt),r=[20,140];return e[Cr]({type:"visualMap.continuous",defaultOption:{handlePosition:"auto",calculable:!1,range:[-(1/0),1/0],hoverLink:!0,realtime:!0,itemWidth:null,itemHeight:null},doMergeOption:function(t,e){this[g]("doMergeOption",arguments),this.resetTargetSeries(t,e),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod=Ni}),this._resetRange()},resetItemSize:function(){e[Jr].resetItemSize.apply(this,arguments);var t=this.itemSize;this._orient===Sn&&t[a](),(null==t[0]||isNaN(t[0]))&&(t[0]=r[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=r[1])},_resetRange:function(){var t=this[lt](),e=this[Un].range;e[0]>e[1]&&e[a](),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1])},completeVisualOption:function(){e[Jr].completeVisualOption.apply(this,arguments),i.each(this.stateList,function(t){var e=this[Un].controller[t][vt];e&&e[0]!==e[1]&&(e[0]=0)},this)},setSelected:function(t){this[Un].range=t.slice(),this._resetRange()},getSelected:function(){var t=this[lt](),e=n.asc((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},getValueState:function(t){var e=this[Un].range,i=this[lt]();return(e[0]<=i[0]||e[0]<=t)&&(e[1]>=i[1]||t<=e[1])?"inRange":"outOfRange"}})}),e("echarts/component/visualMap/VisualMapView",[Qr,T,Kr,xt,v,V,n],function(t){var e=t(T),i=t(Kr),r=t(xt),a=t(v),o=t(V),s=t(n);return e[Wt]({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(t,e){this[er]=t,this.api=e,this.visualMapModel,this._updatableShapes={}},render:function(t,e,i,n){return this.visualMapModel=t,t.get("show")===!1?void this.group[Ai]():void this.doRender.apply(this,arguments)},renderBackground:function(t){var e=this.visualMapModel,i=a[bn](e.get(p)||0),n=t[Jn]();t.add(new r.Rect({z2:-1,silent:!0,shape:{x:n.x-i[3],y:n.y-i[0],width:n.width+i[3]+i[1],height:n[ur]+i[0]+i[2]},style:{fill:e.get(xe),stroke:e.get(Yn),lineWidth:e.get(Xn)}}))},getControllerVisual:function(t,e,n){function r(t){return h[t]}function a(t,e){h[t]=e}var o=this.visualMapModel,l=i[Or](t);if(l&&(!e||"color"!==n))throw new Error(t);var u=o.controllerVisuals[e||o.getValueState(t)],c=o.get("contentColor"),h={symbol:o.get("itemSymbol"),color:l?[{color:c,offset:0},{color:c,offset:1}]:c},d=s.prepareVisualTypes(u);return i.each(d,function(e){var i=u[e];(!n||s.isInVisualCluster(e,n))&&i&&i.applyVisual(t,r,a)}),h},positionGroup:function(t){var e=this.visualMapModel,i=this.api;o[xn](t,e[P](),{width:i[cn](),height:i[un]()})},doRender:i.noop})}),e("echarts/component/visualMap/helper",[Qr,V],function(t){var e=t(V),i={getItemAlign:function(t,i,n){var r=t[Un],a=r.align;if(null!=a&&"auto"!==a)return a;for(var o={width:i[cn](),height:i[un]()},s=r[f]===Sn?1:0,l=[["left","right","width"],["top",Ir,ur]],u=l[s],c=[0,null,10],h={},d=0;3>d;d++)h[l[1-s][d]]=c[d],h[u[d]]=2===d?n[0]:r[u[d]];var v=[["x","width",3],["y",ur,0]][s],m=e[wn](h,o,r[p]);return u[(m[_n][v[2]]||0)+m[v[0]]+.5*m[v[1]]<.5*o[v[1]]?0:1]}};return i}),e("echarts/component/visualMap/ContinuousView",[Qr,"./VisualMapView",xt,Kr,yt,"../helper/sliderMove","zrender/graphic/LinearGradient","./helper"],function(t){function e(t,e,i){return new a[$e]({shape:{points:t},draggable:!!e,cursor:i,drift:e})}function n(t,e){return 0===t?[[0,0],[e,0],[e,-e]]:[[0,0],[e,0],[e,e]]}var r=t("./VisualMapView"),a=t(xt),o=t(Kr),s=t(yt),l=t("../helper/sliderMove"),u=s[Er],c=t("zrender/graphic/LinearGradient"),h=t("./helper"),d=o.each,p=r[Cr]({type:"visualMap.continuous",init:function(){r[Jr].init.apply(this,arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle},doRender:function(t,e,i,n){n&&"selectDataRange"===n.type&&n.from===this.uid?this._updateView():this._buildView()},_buildView:function(){this.group[Ai]();var t=this.visualMapModel,e=this.group;this._orient=t.get(f),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var i=t.get("text");this._renderEndsText(e,i,0),this._renderEndsText(e,i,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this[xn](e)},_renderEndsText:function(t,e,n){if(e){var r=e[1-n];r=null!=r?r+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.barGroup,c=this._applyTransform([l[0]/2,0===n?-s:l[1]+s],u),h=this._applyTransform(0===n?Ir:"top",u),d=this._orient,f=this.visualMapModel[i];this.group.add(new a.Text({style:{x:c[0],y:c[1],textBaseline:d===Sn?zr:h,textAlign:d===Sn?h:Vr,text:r,textFont:f[Kn](),fill:f[Ge]()}}))}},_renderBar:function(t){var n=this.visualMapModel,r=this._shapes,a=n.itemSize,s=this._orient,l=this._useHandle,u=h.getItemAlign(n,this.api,a),c=r.barGroup=this._createBarGroup(u);c.add(r.outOfRange=e()),c.add(r.inRange=e(null,o.bind(this._modifyHandle,this,"all"),l?"move":null));var d=n[i].getTextRect("国"),f=Math.max(d.width,d[ur]);l&&(r.handleGroups=[],r.handleThumbs=[],r.handleLabels=[],r.handleLabelPoints=[],this._createHandle(c,0,a,f,s,u),this._createHandle(c,1,a,f,s,u)),t.add(c)},_createHandle:function(t,r,s,l,u){var c=new a.Group({position:[s[0],0]}),h=e(n(r,l),o.bind(this._modifyHandle,this,r),"move");c.add(h);var d={x:u===Sn?l/2:1.5*l,y:u===Sn?0===r?-(1.5*l):1.5*l:0===r?-l/2:l/2},f=this.visualMapModel[i],p=new a.Text({silent:!0,style:{x:0,y:0,text:"",textBaseline:"middle",textFont:f[Kn](),fill:f[Ge]()}});this.group.add(p);var v=this._shapes;v.handleThumbs[r]=h,v.handleGroups[r]=c,v.handleLabelPoints[r]=d,v.handleLabels[r]=p,t.add(c)},_modifyHandle:function(t,e,i){if(this._useHandle){var n=this._applyTransform([e,i],this._shapes.barGroup,!0);this._updateInterval(t,n[1]),this.api[ln]({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()})}},_resetInterval:function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected();this._handleEnds=u(e,t[lt](),[0,t.itemSize[1]],!0)},_updateInterval:function(t,e){e=e||0;var i=this.visualMapModel,n=this._handleEnds;l(e,n,[0,i.itemSize[1]],"all"===t?"rigid":"push",t),this._dataInterval=u(n,[0,i.itemSize[1]],i[lt](),!0)},_updateView:function(t){var e=this.visualMapModel,i=e[lt](),n=this._shapes,r=this._dataInterval,a=[0,e.itemSize[1]],o=t?a:this._handleEnds,s=this._createBarVisual(r,i,o,"inRange"),l=this._createBarVisual(i,i,a,"outOfRange");n.inRange[Ue]("fill",s.barColor)[ai](ti,s.barPoints),n.outOfRange[Ue]("fill",l.barColor)[ai](ti,l.barPoints),this._useHandle&&d([0,1],function(t){n.handleThumbs[t][Ue]("fill",s.handlesColor[t]),n.handleLabels[t][Ue]({text:e.formatValueText(r[t]),textAlign:this._applyTransform(this._orient===Sn?0===t?Ir:"top":"left",n.barGroup)})},this),this._updateHandlePosition(o)},_createBarVisual:function(t,e,i,n){var r=this.getControllerVisual(t,n,"color").color,a=[this.getControllerVisual(t[0],n,vt)[vt],this.getControllerVisual(t[1],n,vt)[vt]],o=this._createBarPoints(i,a);return{barColor:new c(0,0,1,1,r),barPoints:o,handlesColor:[r[0].color,r[r[jr]-1].color]}},_createBarPoints:function(t,e){var i=this.visualMapModel.itemSize;return[[i[0]-e[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,i=this.visualMapModel.get(et);return new a.Group(e!==Sn||i?e===Sn&&i?{scale:t===Ir?[-1,1]:[1,1],rotation:-Math.PI/2}:e!==Mn||i?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:t===Ir?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandlePosition:function(t){if(this._useHandle){var e=this._shapes;d([0,1],function(i){var n=e.handleGroups[i];n[Cn][1]=t[i];var r=e.handleLabelPoints[i],o=a[cr]([r.x,r.y],a.getTransform(n,this.group));e.handleLabels[i][Ue]({x:o[0],y:o[1]})},this)}},_applyTransform:function(t,e,i){var n=a.getTransform(e,this.group);return a[o[Or](t)?cr:"transformDirection"](t,n,i)}});return p}),e("echarts/component/visualMap/visualMapAction",[Qr,T],function(t){var e=t(T),i={type:"selectDataRange",event:"dataRangeSelected",update:"update"};e[$t](i,function(t,e){e[ie]({mainType:"visualMap",query:t},function(e){e.setSelected(t[y])})})}),e("echarts/component/visualMapContinuous",[Qr,K,"./visualMap/preprocessor","./visualMap/typeDefaulter","./visualMap/visualCoding","./visualMap/ContinuousModel","./visualMap/ContinuousView","./visualMap/visualMapAction"],function(t){t(K)[Jt](t("./visualMap/preprocessor")),t("./visualMap/typeDefaulter"),t("./visualMap/visualCoding"),t("./visualMap/ContinuousModel"),t("./visualMap/ContinuousView"),t("./visualMap/visualMapAction")}),e("echarts/component/visualMap/PiecewiseModel",[Qr,"./VisualMapModel",Kr,n],function(t){function e(t,e){var i=t[et];(t[f]===Mn?!i:i)&&e[a]()}var i=t("./VisualMapModel"),o=t(Kr),s=t(n),l=i[Cr]({type:"visualMap.piecewise",defaultOption:{selected:null,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10},doMergeOption:function(t,e){this[g]("doMergeOption",arguments),this._pieceList=[],this.resetTargetSeries(t,e),this.resetExtent();var i=this._mode=this._decideMode();u[this._mode].call(this),this._resetSelected(t,e);var n=this[Un][r];this.resetVisual(function(t,e){i===r?(t.mappingMethod=At,t[r]=o.clone(n)):(t.mappingMethod="piecewise",t.pieceList=o.map(this._pieceList,function(t){var t=o.clone(t);return"inRange"!==e&&(t.visual=null),t}));
})},_resetSelected:function(t,e){var i=this[Un],n=this._pieceList,r=(e?i:t)[y]||{};if(i[y]=r,o.each(n,function(t,e){var i=this.getSelectedMapKey(t);i in r||(r[i]=!0)},this),i[_]===x){var a=!1;o.each(n,function(t,e){var i=this.getSelectedMapKey(t);r[i]&&(a?r[i]=!1:a=!0)},this)}},getSelectedMapKey:function(t){return this._mode===r?t.value+"":t.index+""},getPieceList:function(){return this._pieceList},_decideMode:function(){var t=this[Un];return t.pieces&&t.pieces[jr]>0?"pieces":this[Un][r]?r:F},setSelected:function(t){this[Un][y]=o.clone(t)},getValueState:function(t){var e=this._pieceList,i=s.findPieceIndex(t,e);return null!=i&&this[Un][y][this.getSelectedMapKey(e[i])]?"inRange":"outOfRange"}}),u={splitNumber:function(){var t=this[Un],e=t.precision,i=this[lt](),n=t[F];n=Math.max(parseInt(n,10),1),t[F]=n;for(var r=(i[1]-i[0])/n;+r[Pr](e)!==r&&5>e;)e++;t.precision=e,r=+r[Pr](e);for(var a=0,o=i[0];n>a;a++,o+=r){var s=a===n-1?i[1]:o+r;this._pieceList.push({text:this.formatValueText([o,s]),index:a,interval:[o,s]})}},categories:function(){var t=this[Un];o.each(t[r],function(t){this._pieceList.push({text:this.formatValueText(t,!0),value:t})},this),e(t,this._pieceList)},pieces:function(){var t=this[Un];o.each(t.pieces,function(t,e){o[Ln](t)||(t={value:t});var i,n={text:"",index:e};if(null!=t.label&&(n.text=t.label,i=!0),t.hasOwnProperty("value"))n.value=t.value,i||(n.text=this.formatValueText(n.value));else{var r=t.min,a=t.max;null==r&&(r=-(1/0)),null==a&&(a=1/0),r===a&&(n.value=r),n[Z]=[r,a],i||(n.text=this.formatValueText([r,a]))}n.visual=s.retrieveVisuals(t),this._pieceList.push(n)},this),e(t,this._pieceList)}};return l}),e("echarts/component/visualMap/PiecewiseView",[Qr,"./VisualMapView",Kr,xt,_t,V,"./helper"],function(t){var e=t("./VisualMapView"),n=t(Kr),r=t(xt),o=t(_t),s=t(V),l=t("./helper"),u=e[Cr]({type:"visualMap.piecewise",doRender:function(){function t(t){var i=new r.Group;i.onclick=n.bind(this._onItemClick,this,t.piece),this._createItemSymbol(i,t.piece,[0,0,p[0],p[1]]),m&&i.add(new r.Text({style:{x:"right"===d?-o:p[0]+o,y:p[1]/2,text:t.piece.text,textBaseline:"middle",textAlign:d,textFont:u,fill:c}})),e.add(i)}var e=this.group;e[Ai]();var a=this.visualMapModel,o=a.get("textGap"),l=a[i],u=l[Kn](),c=l[Ge](),d=this._getItemAlign(),p=a.itemSize,v=this._getViewData(),m=!v.endsText,g=!m;g&&this._renderEndsText(e,v.endsText[0],p),n.each(v.pieceList,t,this),g&&this._renderEndsText(e,v.endsText[1],p),s.box(a.get(f),e,a.get(h)),this.renderBackground(e),this[xn](e)},_getItemAlign:function(){var t=this.visualMapModel,e=t[Un];if(e[f]===Mn)return l.getItemAlign(t,this.api,t.itemSize);var i=e.align;return i&&"auto"!==i||(i="left"),i},_renderEndsText:function(t,e,n){if(e){var a=new r.Group,o=this.visualMapModel[i];a.add(new r.Text({style:{x:n[0]/2,y:n[1]/2,textBaseline:"middle",textAlign:"center",text:e,textFont:o[Kn](),fill:o[Ge]()}})),t.add(a)}},_getViewData:function(){var t=this.visualMapModel,e=n.map(t.getPieceList(),function(t,e){return{piece:t,index:e}}),i=t.get("text"),r=t.get(f),o=t.get(et);return(r===Sn?o:!o)?e[a]():i&&(i=i.slice()[a]()),{pieceList:e,endsText:i}},_createItemSymbol:function(t,e,i){var n;if(this.visualMapModel.isCategory())n=e.value;else if(null!=e.value)n=e.value;else{var r=e[Z]||[];n=(r[0]+r[1])/2}var a=this.getControllerVisual(n);t.add(o[mt](a[pt],i[0],i[1],i[2],i[3],a.color))},_onItemClick:function(t){var e=this.visualMapModel,i=e[Un],r=n.clone(i[y]),a=e.getSelectedMapKey(t);i[_]===x?(r[a]=!0,n.each(r,function(t,e){r[e]=e===a})):r[a]=!r[a],this.api[ln]({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}});return u}),e("echarts/component/visualMapPiecewise",[Qr,K,"./visualMap/preprocessor","./visualMap/typeDefaulter","./visualMap/visualCoding","./visualMap/PiecewiseModel","./visualMap/PiecewiseView","./visualMap/visualMapAction"],function(t){t(K)[Jt](t("./visualMap/preprocessor")),t("./visualMap/typeDefaulter"),t("./visualMap/visualCoding"),t("./visualMap/PiecewiseModel"),t("./visualMap/PiecewiseView"),t("./visualMap/visualMapAction")}),e("echarts/component/visualMap",[Qr,"./visualMapContinuous","./visualMapPiecewise"],function(t){t("./visualMapContinuous"),t("./visualMapPiecewise")}),e("echarts/component/marker/MarkPointModel",[Qr,Tt,T],function(t){var e=t(Tt),i=t(T)[Ut]({type:"markPoint",dependencies:[pn,"grid","polar"],init:function(t,e,i,n){this[yn](t,i),this[mn](t,i,n.createdBySelf,!0)},mergeOption:function(t,n,r,a){r||n[he](function(t){var r=t.get(le),o=t.markPointModel;if(!r||!r.data)return void(t.markPointModel=null);if(o)o[mn](r,n,!0);else{a&&e[Fn](r.label,[Cn,"show",Qn,fr,Dn]);var s={seriesIndex:t[Nn],name:t.name,createdBySelf:!0};o=new i(r,this,n,s)}t.markPointModel=o},this)},defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"inside"},emphasis:{show:!0}},itemStyle:{normal:{borderWidth:2},emphasis:{}}}});return i}),e("echarts/component/marker/markerHelper",[Qr,Kr,yt],function(t){function e(t,e,i){var n=-1;do n=Math.max(r.getPrecision(t.get(e,i)),n),t=t.stackedOn;while(t);return n}function i(t,i,n,r,a,o){var s=[],l=d(i,r,t),u=i.indexOfNearest(r,l,!0);s[a]=i.get(n,u,!0),s[o]=i.get(r,u,!0);var c=e(i,r,u);return c>=0&&(s[o]=+s[o][Pr](c)),s}var n=t(Kr),r=t(yt),a=n[Hr],o=n.curry,s={min:o(i,"min"),max:o(i,"max"),average:o(i,"average")},l=function(t,e){var i=t[En](),r=t[nn];if((isNaN(e.x)||isNaN(e.y))&&!n[Or](e.coord)&&r){var o=u(e,i,r,t);if(e=n.clone(e),e.type&&s[e.type]&&o.baseAxis&&o.valueAxis){var l=r[en],c=a(l,o.baseAxis.dim),h=a(l,o.valueAxis.dim);e.coord=s[e.type](i,o.baseDataDim,o.valueDataDim,c,h),e.value=e.coord[h]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}return e},u=function(t,e,i,n){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e[Ht](t.valueIndex):t.valueDim,r.valueAxis=i[it](n.getCoordDimensionInfo(r.valueDataDim).name),r.baseAxis=i[ut](r.valueAxis),r.baseDataDim=n[L](r.baseAxis.dim)[0]):(r.baseAxis=n[tn](),r.valueAxis=i[ut](r.baseAxis),r.baseDataDim=n[L](r.baseAxis.dim)[0],r.valueDataDim=n[L](r.valueAxis.dim)[0]),r},c=function(t,e){return t&&e.coord&&(null==e.x||null==e.y)?t.containData(e.coord):!0},h=function(t,e,i,n){return 2>n?t.coord&&t.coord[n]:void t.value},d=function(t,e,i){return"average"===i?t[Bt](e,!0)/t.count():t[Gt](e,!0)["max"===i?1:0]};return{dataTransform:l,dataFilter:c,dimValueGetter:h,getAxisInfo:u,numCalculate:d}}),e("echarts/component/marker/MarkPointView",[Qr,"../../chart/helper/SymbolDraw",Kr,v,Tt,yt,Lt,"./markerHelper",T],function(t){function e(t,e,i){var r=e[En](),a=(r[en],new u(e.getCoordDimensionInfo(),i));return t&&a[Ft](n[$r](n.map(i.get("data"),n.curry(c.dataTransform,e)),n.curry(c.dataFilter,t)),null,c.dimValueGetter),a}var i=t("../../chart/helper/SymbolDraw"),n=t(Kr),r=t(v),a=t(Tt),o=t(yt),s=r[rn],l=r[an],u=t(Lt),c=t("./markerHelper"),h={getRawDataArray:function(){return this[Un].data},formatTooltip:function(t){var e=this[En](),i=this[Rn](t),r=n[Or](i)?n.map(i,s).join(", "):s(i),a=e[zn](t);return this.name+Qi+((a?l(a)+" : ":"")+r)},getData:function(){return this._data},setData:function(t){this._data=t}};n[ir](h,a.dataFormatMixin),t(T)[Wt]({type:"markPoint",init:function(){this._symbolDrawMap={}},render:function(t,e,i){var n=this._symbolDrawMap;for(var r in n)n[r].__keep=!1;e[he](function(t){var e=t.markPointModel;e&&this._renderSeriesMP(t,e,i)},this);for(var r in n)n[r].__keep||(n[r][Pi](),this.group[Pi](n[r].group))},_renderSeriesMP:function(t,r,a){var s=t[nn],l=t.name,u=t[En](),c=this._symbolDrawMap,d=c[l];d||(d=c[l]=new i);var f=e(s,t,r),p=s&&s[en];n.mixin(r,h),r[ri](f),f.each(function(e){var i,n=f[In](e),l=n[br]("x"),c=n[br]("y");if(null!=l&&null!=c)i=[o[Rr](l,a[cn]()),o[Rr](c,a[un]())];else if(t.getMarkerPosition)i=t.getMarkerPosition(f[Zt](f[en],e));else if(s){var h=f.get(p[0],e),d=f.get(p[1],e);i=s[st]([h,d])}f[It](e,i);var v=n[br](vt);typeof v===Br&&(v=v(r[Rn](e),r[Pn](e))),f[fe](e,{symbolSize:v,color:n.get(re)||u[Ot]("color"),symbol:n[br](pt)})}),d[gt](f),this.group.add(d.group),f[xi](function(t){t[ki](function(t){t[Qt]=r})}),d.__keep=!0}})}),e("echarts/component/markPoint",[Qr,"./marker/MarkPointModel","./marker/MarkPointView",K],function(t){t("./marker/MarkPointModel"),t("./marker/MarkPointView"),t(K)[Jt](function(t){t[le]=t[le]||{}})}),e("echarts/component/marker/MarkLineModel",[Qr,Tt,T],function(t){var e=t(Tt),i=t(T)[Ut]({type:"markLine",dependencies:[pn,"grid","polar"],init:function(t,e,i,n){this[yn](t,i),this[mn](t,i,n.createdBySelf,!0)},mergeOption:function(t,n,r,a){r||n[he](function(t){var r=t.get("markLine"),o=t.markLineModel;if(!r||!r.data)return void(t.markLineModel=null);if(o)o[mn](r,n,!0);else{a&&e[Fn](r.label,[Cn,"show",Qn,fr,Dn]);var s={seriesIndex:t[Nn],name:t.name,createdBySelf:!0};o=new i(r,this,n,s)}t.markLineModel=o},this)},defaultOption:{zlevel:0,z:5,symbol:[ft,"arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"end"},emphasis:{show:!0}},lineStyle:{normal:{type:"dashed"},emphasis:{width:3}},animationEasing:"linear"}});return i}),e("echarts/component/marker/MarkLineView",[Qr,Kr,Lt,v,Tt,yt,"./markerHelper","../../chart/helper/LineDraw",T],function(t){function e(t,e){return c.dataFilter(t,e[0])&&c.dataFilter(t,e[1])}function i(t,i,a){var o=new r(i.getCoordDimensionInfo(),a),s=new r(i.getCoordDimensionInfo(),a),l=new r([],a);if(t){var u=n[$r](n.map(a.get("data"),n.curry(d,i,t,a)),n.curry(e,t));o[Ft](n.map(u,function(t){return t[0]}),null,c.dimValueGetter),s[Ft](n.map(u,function(t){return t[1]}),null,c.dimValueGetter),l[Ft](n.map(u,function(t){return t[2]}))}return{from:o,to:s,line:l}}var n=t(Kr),r=t(Lt),a=t(v),o=t(Tt),s=t(yt),l=a[rn],u=a[an],c=t("./markerHelper"),h=t("../../chart/helper/LineDraw"),d=function(t,e,i,r){var a=t[En](),o=r.type;if(!n[Or](r)&&("min"===o||"max"===o||"average"===o)){var s=c.getAxisInfo(r,a,e,t),l=s.baseAxis.dim+"Axis",u=s.valueAxis.dim+"Axis",h=s.baseAxis.scale[lt](),d=n.clone(r),f={};d.type=null,d[l]=h[0],f[l]=h[1];var p=c.numCalculate(a,s.valueDataDim,o);p=s.valueAxis[E](s.valueAxis[N](p));var v=i.get("precision");v>=0&&(p=+p[Pr](v)),d[u]=f[u]=p,r=[d,f,{type:o,value:p}]}return r=[c.dataTransform(t,r[0]),c.dataTransform(t,r[1]),n[Cr]({},r[2])],n.merge(r[2],r[0]),n.merge(r[2],r[1]),r},f={formatTooltip:function(t){var e=this._data,i=this[Rn](t),r=n[Or](i)?n.map(i,l).join(", "):l(i),a=e[zn](t);return this.name+Qi+((a?u(a)+" : ":"")+r)},getRawDataArray:function(){return this[Un].data},getData:function(){return this._data},setData:function(t){this._data=t}};n[ir](f,o.dataFormatMixin),t(T)[Wt]({type:"markLine",init:function(){this._markLineMap={}},render:function(t,e,i){var n=this._markLineMap;for(var r in n)n[r].__keep=!1;e[he](function(t){var n=t.markLineModel;n&&this._renderSeriesML(t,n,e,i)},this);for(var r in n)n[r].__keep||this.group[Pi](n[r].group)},_renderSeriesML:function(t,e,r,a){function o(e,i,n){var r,o=e[In](i),u=o.get("x"),h=o.get("y");if(null!=u&&null!=h)r=[s[Rr](u,a[cn]()),s[Rr](h,a[un]())];else if(t.getMarkerPosition)r=t.getMarkerPosition(e[Zt](e[en],i));else{var d=e.get(m[0],i),f=e.get(m[1],i);r=l[st]([d,f])}e[It](i,r),e[fe](i,{symbolSize:o.get(vt)||w[n?0:1],symbol:o.get(pt,!0)||_[n?0:1],color:o.get(re)||c[Ot]("color")})}var l=t[nn],u=t.name,c=t[En](),d=this._markLineMap,p=d[u];p||(p=d[u]=new h),this.group.add(p.group);var v=i(l,t,e),m=l[en],g=v.from,y=v.to,x=v.line;n[Cr](e,f),e[ri](x);var _=e.get(pt),w=e.get(vt);n[Or](_)||(_=[_,_]),typeof w===Zr&&(w=[w,w]),v.from.each(function(t){o(g,t,!0),o(y,t)}),x.each(function(t){var e=x[In](t).get("lineStyle.normal.color");x[fe](t,{color:e||g[Pt](t,"color")}),x[It](t,[g[zt](t),y[zt](t)])}),p[gt](x,g,y),v.line[xi](function(t,i){t[ki](function(t){t[Qt]=e})}),p.__keep=!0}})}),e("echarts/component/markLine",[Qr,"./marker/MarkLineModel","./marker/MarkLineView",K],function(t){t("./marker/MarkLineModel"),t("./marker/MarkLineView"),t(K)[Jt](function(t){t.markLine=t.markLine||{}})}),e("echarts/component/timeline/preprocessor",[Qr,Kr],function(t){function e(t){var e=t.type,a={number:"value",time:"time"};if(a[e]&&(t.axisType=a[e],delete t.type),i(t),n(t,"controlPosition")){var o=t.controlStyle||(t.controlStyle={});n(o,Cn)||(o[Cn]=t.controlPosition),"none"!==o[Cn]||n(o,"show")||(o.show=!1,delete o[Cn]),delete t.controlPosition}r.each(t.data||[],function(t){r[Ln](t)&&!r[Or](t)&&(!n(t,"value")&&n(t,"name")&&(t.value=t.name),i(t))})}function i(t){var e=t[ue]||(t[ue]={}),i=e[Zn]||(e[Zn]={}),a=(e[Gn]||(e[Gn]={}),t.label||t.label||{}),o=a[Gn]||(a[Gn]={}),s={normal:1,emphasis:1};r.each(a,function(t,e){s[e]||n(o,e)||(o[e]=t)}),i.label&&!n(a,Zn)&&(a[Zn]=i.label,delete i.label)}function n(t,e){return t.hasOwnProperty(e)}var r=t(Kr);return function(t){var i=t&&t[vn];r[Or](i)||(i=i?[i]:[]),r.each(i,function(t){t&&e(t)})}}),e("echarts/component/timeline/typeDefaulter",[Qr,R],function(t){t(R)[kn](vn,function(){return"slider"})}),e("echarts/component/timeline/timelineAction",[Qr,T],function(t){var e=t(T);e[$t]({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e){var i=e[on](vn);i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.setPlayState(!1)),e[gn](vn)}),e[$t]({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var i=e[on](vn);i&&null!=t.playState&&i.setPlayState(t.playState)})}),e("echarts/component/timeline/TimelineModel",[Qr,R,Lt,Kr,Tt],function(t){var e=t(R),i=t(Lt),n=t(Kr),r=t(Tt),a=e[Cr]({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{normal:{},emphasis:{}},label:{normal:{textStyle:{color:"#000"}},emphasis:{}},data:[]},init:function(t,e,i){this._data,this._names,this[yn](t,i),this._initData()},mergeOption:function(t){this[g](mn,arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this[Un].currentIndex);var e=this._data.count();this[Un].loop?t=(t%e+e)%e:(t>=e&&(t=e-1),0>t&&(t=0)),this[Un].currentIndex=t},getCurrentIndex:function(){return this[Un].currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this[Un].autoPlay=!!t},getPlayState:function(){return!!this[Un].autoPlay},_initData:function(){var t=this[Un],e=t.data||[],a=t.axisType,o=this._names=[];if(a===At){var s=[];n.each(e,function(t,e){var i,a=r.getDataItemValue(t);n[Ln](t)?(i=n.clone(t),i.value=e):i=e,s.push(i),n[fn](a)||null!=a&&!isNaN(a)||(a=""),o.push(a+"")}),e=s}var l={category:"ordinal",time:"time"}[a]||Zr,u=this._data=new i([{name:"value",type:l}],this);u[Ft](e,o)},getData:function(){return this._data},getCategories:function(){return this.get("axisType")===At?this._names.slice():void 0}});return a}),e("echarts/component/timeline/SliderTimelineModel",[Qr,"./TimelineModel"],function(t){var e=t("./TimelineModel");return e[Cr]({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:!1,symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",normal:{show:!0,interval:"auto",rotate:0,textStyle:{color:"#304654"}},emphasis:{show:!0,textStyle:{color:"#c23531"}}},itemStyle:{normal:{color:"#304654",borderWidth:1},emphasis:{color:"#c23531"}},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",normal:{color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}})}),e("echarts/component/timeline/TimelineView",[Qr,"../../view/Component"],function(t){var e=t("../../view/Component");return e[Cr]({type:"timeline"})}),e("echarts/component/timeline/TimelineAxis",[Qr,Kr,"../../coord/Axis",z],function(t){var e=t(Kr),i=t("../../coord/Axis"),n=t(z),r=function(t,e,n,r){i.call(this,t,e,n),this.type=r||"value",this._autoLabelInterval,this.model=null};return r[Jr]={constructor:r,getLabelInterval:function(){var t=this.model,i=t[tr](S),r=i.get(Z);if(null!=r&&"auto"!=r)return r;var r=this._autoLabelInterval;return r||(r=this._autoLabelInterval=n.getAxisLabelInterval(e.map(this.scale[U](),this[N],this),n[B](this,i.get(Dn)),i[tr](Qn)[Kn](),t.get(f)===Sn)),r},isLabelIgnored:function(t){if(this.type===At){var e=this.getLabelInterval();return typeof e===Br&&!e(t,this.scale[q](t))||t%(e+1)}}},e[Ar](r,i),r}),e("echarts/component/timeline/SliderTimelineView",[Qr,Kr,xt,V,"./TimelineView","./TimelineAxis",_t,z,hr,dr,yt,Tt,v],function(t){function e(t,e){return l[wn](t[P](),{width:e[cn](),height:e[un]()},t.get(p))}function i(t,e,i,n){var r=s.makePath(t.get(e)[Nr](/^path:\/\//,""),o.clone(n||{}),new y(i[0],i[1],i[2],i[3]),Vr);return r}function n(t,e,i,n,r,a){var s=t.get(pt),l=e.get("color"),u=t.get(vt),c=u/2,h=e[dt](["color",pt,vt]);return r?(r[Ue](h),r[wt](l),i.add(r),a&&a.onUpdate(r)):(r=m[mt](s,-c,-c,u,u,l),i.add(r),a&&a.onCreate(r)),n=o.merge({rectHover:!0,style:h,z2:100},n,!0),r.attr(n),r}function r(t,e,i,n,r){if(!t.dragging){var a=n[tr]("checkpointStyle"),o=i[N](n[En]().get(["value"],e));r||!a.get(Bi,!0)?t.attr({position:[o,0]}):(t[Ei](!0),t[Be]({position:[o,0]},a.get("animationDuration",!0),a.get("animationEasing",!0)))}}var o=t(Kr),s=t(xt),l=t(V),u=t("./TimelineView"),c=t("./TimelineAxis"),m=t(_t),g=t(z),y=t(hr),x=t(dr),_=t(yt),w=t(Tt),b=t(v),M=b[an],T=o.bind,k=o.each,L=Math.PI;return u[Cr]({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,i,n){if(this.model=t,this.api=i,this[er]=e,this.group[Ai](),t.get("show",!0)){var r=this._layout(t,i),a=this._createGroup("mainGroup"),o=this._createGroup("labelGroup"),s=this._axis=this._createAxis(r,t);k(["AxisLine","AxisTick","Control","CurrentPointer"],function(e){this["_render"+e](r,a,s,t)},this),this._renderAxisLabel(r,o,s,t),this._position(r,t)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group[Ai]()},dispose:function(){this._clearTimer()},_layout:function(t,i){var n=t.get("label.normal.position"),r=t.get(f),o=e(t,i);null==n||"auto"===n?n=r===Sn?o.y+o[ur]/2<i[un]()/2?"-":"+":o.x+o.width/2<i[cn]()/2?"+":"-":isNaN(n)&&(n={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[r][n]);var s={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},l={horizontal:n>=0||"+"===n?"top":Ir,vertical:"middle"},u={horizontal:0,vertical:L/2},c=r===Mn?o[ur]:o.width,d=t[tr]("controlStyle"),p=d.get("show"),v=p?d.get("itemSize"):0,m=p?d.get(h):0,g=v+m,y=t.get("label.normal.rotate")||0;y=y*L/180;var x,_,w,b,M=d.get(Cn,!0),p=d.get("show",!0),S=p&&d.get("showPlayBtn",!0),A=p&&d.get("showPrevBtn",!0),C=p&&d.get("showNextBtn",!0),T=0,k=c;return"left"===M||M===Ir?(S&&(x=[0,0],T+=g),A&&(_=[T,0],T+=g),C&&(w=[k-v,0],k-=g)):(S&&(x=[k-v,0],k-=g),A&&(_=[0,0],T+=g),C&&(w=[k-v,0],k-=g)),b=[T,k],t.get(et)&&b[a](),{viewRect:o,mainLength:c,orient:r,rotation:u[r],labelRotation:y,labelPosOpt:n,labelAlign:s[r],labelBaseline:l[r],playPosition:x,prevBtnPosition:_,nextBtnPosition:w,axisExtent:b,controlSize:v,controlGap:m}},_position:function(t,e){function i(t){var e=t[Cn];t[Yi]=[h[0][0]-e[0],h[1][0]-e[1]]}function n(t){return[[t.x,t.x+t.width],[t.y,t.y+t[ur]]]}function r(t,e,i,n,r){t[n]+=i[n][r]-e[n][r]}var a=this._mainGroup,o=this._labelGroup,s=t.viewRect;if(t[f]===Mn){var l=x[lr](),u=s.x,c=s.y+s[ur];x[sr](l,l,[-u,-c]),x[Hi](l,l,-L/2),x[sr](l,l,[u,c]),s=s.clone(),s[cr](l)}var h=n(s),d=n(a[Jn]()),p=n(o[Jn]()),v=a[Cn],m=o[Cn];m[0]=v[0]=h[0][0];var g=t.labelPosOpt;if(isNaN(g)){var y="+"===g?0:1;r(v,d,h,1,y),r(m,p,h,1,1-y)}else{var y=g>=0?0:1;r(v,d,h,1,y),m[1]=v[1]+g}a[Cn]=v,o[Cn]=m,a[$i]=o[$i]=t[$i],i(a),i(o)},_createAxis:function(t,e){var i=e[En](),n=e.get("axisType"),r=g[G](e,n),a=i[Gt]("value");r[j](a[0],a[1]),this._customizeScale(r,i),r.niceTicks();var o=new c("value",r,t.axisExtent,n);return o.model=e,o},_customizeScale:function(t,e){t[U]=function(){return e[Et](["value"],function(t){return t})},t.getTicksLabels=function(){return o.map(this[U](),t[q],t)}},_createGroup:function(t){var e=this["_"+t]=new s.Group;return this.group.add(e),e},_renderAxisLine:function(t,e,i,n){var r=i[lt]();n.get("lineStyle.show")&&e.add(new s.Line({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:o[Cr]({lineCap:"round"},n[tr](ce)[J]()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,i,r){var a=r[En](),o=i.scale[U](),l=this._prepareTooltipHostModel(a,r);k(o,function(t,r){var o=i[N](t),u=a[In](r),c=u[tr](C),h=u[tr](A),d={position:[o,0],onclick:T(this._changeTimeline,this,r)},f=n(u,c,e,d);s[We](f,h[dt]()),u.get("tooltip")?(f[bi]=r,f[Qt]=l):f[bi]=f[Qt]=null},this)},_prepareTooltipHostModel:function(t,e){var i=w[Bn]({},t,e.get("data")),n=this;return i[d]=function(t){return M(n._axis.scale[q](t))},i},_renderAxisLabel:function(t,e,i,n){var r=n[tr](S);if(r.get("show")){var a=n[En](),o=i.scale[U](),l=g[B](i,r.get(Dn)),u=i.getLabelInterval();k(o,function(n,r){if(!i.isLabelIgnored(r,u)){var o=a[In](r),c=o[tr]("label.normal.textStyle"),h=o[tr]("label.emphasis.textStyle"),d=i[N](n),f=new s.Text({style:{text:l[r],textAlign:t.labelAlign,textBaseline:t.labelBaseline,textFont:c[Kn](),fill:c[Ge]()},position:[d,0],rotation:t.labelRotation-t[$i],onclick:T(this._changeTimeline,this,r),silent:!1});e.add(f),s[We](f,h[dt]())}},this)}},_renderControl:function(t,e,n,r){function a(t,n,a,d){if(t){var f={position:t,origin:[o/2,0],rotation:d?-l:0,rectHover:!0,style:u,onclick:a},p=i(r,n,h,f);e.add(p),s[We](p,c)}}var o=t.controlSize,l=t[$i],u=r[tr]("controlStyle.normal")[dt](),c=r[tr]("controlStyle.emphasis")[dt](),h=[0,-o/2,o,o],d=r.getPlayState(),f=r.get(et,!0);a(t.nextBtnPosition,"controlStyle.nextIcon",T(this._changeTimeline,this,f?"-":"+")),a(t.prevBtnPosition,"controlStyle.prevIcon",T(this._changeTimeline,this,f?"+":"-")),a(t.playPosition,"controlStyle."+(d?"stopIcon":"playIcon"),T(this._handlePlayClick,this,!d),!0)},_renderCurrentPointer:function(t,e,i,a){var o=a[En](),s=a.getCurrentIndex(),l=o[In](s)[tr]("checkpointStyle"),u=this,c={onCreate:function(t){t[Ri]=!0,t.drift=T(u._handlePointerDrag,u),t.ondragend=T(u._handlePointerDragend,u),r(t,s,i,a,!0)},onUpdate:function(t){r(t,s,i,a)}};this._currentPointer=n(l,l,this._mainGroup,{},this._currentPointer,c)},_handlePlayClick:function(t){this._clearTimer(),this.api[ln]({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,i){this._clearTimer(),this._pointerChangeTimeline([i[Pe],i[De]])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t[Pe],t[De]],!0)},_pointerChangeTimeline:function(t,e){var i=this._toAxisCoord(t)[0],n=this._axis,r=_.asc(n[lt]().slice());i>r[1]&&(i=r[1]),i<r[0]&&(i=r[0]),this._currentPointer[Cn][0]=i,this._currentPointer.dirty();var a=this._findNearestTick(i),o=this.model;(e||a!==o.getCurrentIndex()&&o.get("realtime"))&&this._changeTimeline(a)},_doPlayStop:function(){function t(){var t=this.model;this._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(T(t,this),this.model.get("playInterval")))},_toAxisCoord:function(t){var e=this._mainGroup[qi]();return s[cr](t,e,!0)},_findNearestTick:function(t){var e,i=this.model[En](),n=1/0,r=this._axis;return i.each(["value"],function(i,a){var o=r[N](i),s=Math.abs(o-t);n>s&&(n=s,e=a)}),e},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api[ln]({type:"timelineChange",currentIndex:t,from:this.uid})}})}),e("echarts/component/timeline",[Qr,K,"./timeline/preprocessor","./timeline/typeDefaulter","./timeline/timelineAction","./timeline/SliderTimelineModel","./timeline/SliderTimelineView"],function(t){var e=t(K);e[Jt](t("./timeline/preprocessor")),t("./timeline/typeDefaulter"),t("./timeline/timelineAction"),t("./timeline/SliderTimelineModel"),t("./timeline/SliderTimelineView")}),e("echarts/component/toolbox/featureManager",[Qr],function(t){var e={};return{register:function(t,i){e[t]=i},get:function(t){return e[t]}}}),e("echarts/component/toolbox/ToolboxModel",[Qr,"./featureManager",Kr,T],function(t){var e=t("./featureManager"),i=t(Kr);t(T)[Ut]({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},mergeDefaultAndTheme:function(t){this[g](yn,arguments),i.each(this[Un].feature,function(t,n){var r=e.get(n);r&&i.merge(t,r.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{normal:{borderColor:"#666",color:"none"},emphasis:{borderColor:"#3E98C5"}}}})}),e("echarts/component/toolbox/ToolboxView",[Qr,"./featureManager",Kr,xt,k,"../../data/DataDiffer","../helper/listComponent",or,T],function(t){var e=t("./featureManager"),i=t(Kr),n=t(xt),r=t(k),a=t("../../data/DataDiffer"),o=t("../helper/listComponent"),s=t(or);return t(T)[Wt]({type:"toolbox",render:function(t,l,u){function h(i,n){var a,o=g[i],s=g[n],c=v[o],h=new r(c,t,t[er]);if(o&&!s){var f=e.get(o);if(!f)return;m[o]=a=new f(h)}else{if(a=m[s],!a)return;a.model=h}return!o&&s?void(a[me]&&a[me](l,u)):!h.get("show")||a.unusable?void(a[Pi]&&a[Pi](l,u)):(d(h,a,o),h.setIconStatus=function(t,e){var i=this[Un],n=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[t]=e,n[t]&&n[t][Mi](e)},void(a[Si]&&a[Si](h,l,u)))}function d(e,r,a){var o=e[tr]("iconStyle"),s=r.getIcons?r.getIcons():e.get("icon"),c=e.get("title")||{};if(typeof s===Fr){var h=s,d=c;s={},c={},s[a]=h,c[a]=d}var v=e.iconPaths={};i.each(s,function(a,s){var h=o[tr](Gn)[dt](),d=o[tr](Zn)[dt](),m=n.makePath(a,{style:h,hoverStyle:d,rectHover:!0},{x:-p/2,y:-p/2,width:p,height:p},Vr);n[We](m),t.get("showTitle")&&(m.__title=c[s],m.on(He,function(){m[Ue]({text:c[s],textPosition:d[yi]||Ir,textFill:d.fill||d[_r]||"#000",textAlign:d[gi]||Vr})}).on(Fe,function(){m[Ue]({textFill:null})})),m[Mi](e.get("iconStatus."+s)||Gn),f.add(m),m.on("click",i.bind(r.onclick,r,l,u,s)),v[s]=m})}var f=this.group;if(f[Ai](),t.get("show")){var p=+t.get("itemSize"),v=t.get("feature")||{},m=this._features||(this._features={}),g=[];i.each(v,function(t,e){g.push(e)}),new a(this._featureNames||[],g).add(h)[Se](h)[Pi](i.curry(h,null))[ct](),this._featureNames=g,o[c](f,t,u),o.addBackground(f,t),f[Tn](function(t){var e=t.__title,i=t[qe];if(i&&e){var n=s[Jn](e,i.font),r=t[Cn][0]+f[Cn][0],a=t[Cn][1]+f[Cn][1]+p,o=!1;a+n[ur]>u[un]()&&(i[yi]="top",o=!0);var l=o?-5-n[ur]:p+8;r+n.width/2>u[cn]()?(i[yi]=["100%",l],i[gi]="right"):r-n.width/2<0&&(i[yi]=[0,l],i[gi]="left")}})}},remove:function(t,e){i.each(this._features,function(i){i[Pi]&&i[Pi](t,e)}),this.group[Ai]()},dispose:function(t,e){i.each(this._features,function(i){i[me]&&i[me](t,e)})}})}),e("echarts/component/toolbox/feature/SaveAsImage",[Qr,Oe,"../featureManager"],function(t){function e(t){this.model=t}var i=t(Oe);e.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6 M29.2,45.1L29.2,0",title:"保存为图片",type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:["右键另存为图片"]},e[Jr].unusable=!i[ge];var n=e[Jr];return n.onclick=function(t,e){var i=this.model,n=i.get("name")||t.get("title.0.text")||"echarts",r=document[Ur]("a"),a=i.get("type",!0)||"png";r.download=n+"."+a,r[Zi]="_blank";var o=e.getConnectedDataURL({type:a,backgroundColor:i.get(xe,!0)||t.get(xe)||"#fff",excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if(r.href=o,typeof MouseEvent===Br){var s=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});r.dispatchEvent(s)}else{var l=i.get("lang"),u='<body style="margin:0;"> <img src="'+o+'" style="max-width:100%;" title="'+(l&&l[0]||"")+'" /> </body>',c=window.open();c.document.write(u)}},t("../featureManager")[sn]("saveAsImage",e),e}),e("echarts/component/toolbox/feature/MagicType",[Qr,Kr,"../../../echarts","../featureManager"],function(t){function e(t){this.model=t}var i=t(Kr);e.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z",tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"},option:{},seriesIndex:{}};var n=e[Jr];n.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return i.each(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n};var r={line:function(t,e,n,r){return"bar"===t?i.merge({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get(le),markLine:n.get("markLine")},r.get("option.line")):void 0},bar:function(t,e,n,r){return"line"===t?i.merge({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get(le),markLine:n.get("markLine")},r.get("option.bar")):void 0},stack:function(t,e,i,n){return"line"===t||"bar"===t?{id:e,stack:"__ec_magicType_stack__"}:void 0},tiled:function(t,e,i,n){return"line"===t||"bar"===t?{id:e,stack:""}:void 0}},a=[["line","bar"],["stack","tiled"]];n.onclick=function(t,e,n){var o=this.model,s=o.get("seriesIndex."+n);if(r[n]){var l={series:[]},u=function(t){var e=t.subType,a=t.id,s=r[n](e,a,t,o);s&&(i[ir](s,t[Un]),l[pn].push(s))};i.each(a,function(t){i[Hr](t,n)>=0&&i.each(t,function(t){o.setIconStatus(t,Gn)})}),o.setIconStatus(n,Zn),t[ie]({mainType:"series",seriesIndex:s},u),e[ln]({type:"changeMagicType",currentType:n,newOption:l})}};var o=t("../../../echarts");return o[$t]({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e[mn](t.newOption)}),t("../featureManager")[sn]("magicType",e),e}),e("echarts/component/toolbox/feature/DataView",[Qr,Kr,Re,"../featureManager","../../../echarts"],function(t){
function e(t){var e={},i=[],n=[];return t.eachRawSeries(function(t){var r=t[nn];if(!r||r.type!==D&&"polar"!==r.type)i.push(t);else{var a=r[tn]();if(a.type===At){var o=a.dim+"_"+a.index;e[o]||(e[o]={categoryAxis:a,valueAxis:r[ut](a),series:[]},n.push({axisDim:a.dim,axisIndex:a.index})),e[o][pn].push(t)}else i.push(t)}}),{seriesGroupByCategoryAxis:e,other:i,meta:n}}function i(t){var e=[];return f.each(t,function(t,i){var n=t.categoryAxis,r=t.valueAxis,a=r.dim,o=[" "][Gr](f.map(t[pn],function(t){return t.name})),s=[n.model[St]()];f.each(t[pn],function(t){s.push(t.getRawData()[Et](a,function(t){return t}))});for(var l=[o.join(m)],u=0;u<s[0][jr];u++){for(var c=[],h=0;h<s[jr];h++)c.push(s[h][u]);l.push(c.join(m))}e.push(l.join("\n"))}),e.join("\n\n"+v+"\n\n")}function n(t){return f.map(t,function(t){var e=t.getRawData(),i=[t.name],n=[];return e.each(e[en],function(){for(var t=arguments[jr],r=arguments[t-1],a=e[zn](r),o=0;t-1>o;o++)n[o]=arguments[o];i.push((a?a+m:"")+n.join(m))}),i.join("\n")}).join("\n\n"+v+"\n\n")}function a(t){var r=e(t);return{value:f[$r]([i(r.seriesGroupByCategoryAxis),n(r.other)],function(t){return t[Nr](/[\n\t\s]/g,"")}).join("\n\n"+v+"\n\n"),meta:r.meta}}function o(t){return t[Nr](/^\s\s*/,"")[Nr](/\s\s*$/,"")}function s(t){var e=t.slice(0,t[Hr]("\n"));return e[Hr](m)>=0?!0:void 0}function l(t){for(var e=t.split(/\n+/g),i=o(e.shift()).split(g),n=[],r=f.map(i,function(t){return{name:t,data:[]}}),a=0;a<e[jr];a++){var s=o(e[a]).split(g);n.push(s.shift());for(var l=0;l<s[jr];l++)r[l]&&(r[l].data[a]=s[l])}return{series:r,categories:n}}function u(t){for(var e=t.split(/\n+/g),i=o(e.shift()),n=[],r=0;r<e[jr];r++){var a,s=o(e[r]).split(g),l="",u=!1;isNaN(s[0])?(u=!0,l=s[0],s=s.slice(1),n[r]={name:l,value:[]},a=n[r].value):a=n[r]=[];for(var c=0;c<s[jr];c++)a.push(+s[c]);1===a[jr]&&(u?n[r].value=a[0]:n[r]=a[0])}return{name:i,data:n}}function c(t,e){var i=t.split(new RegExp("\n*"+v+"\n*","g")),n={series:[]};return f.each(i,function(t,i){if(s(t)){var a=l(t),o=e[i],c=o.axisDim+"Axis";o&&(n[c]=n[c]||[],n[c][o[Wn]]={data:a[r]},n[pn]=n[pn][Gr](a[pn]))}else{var a=u(t);n[pn].push(a)}}),n}function h(t){this._dom=null,this.model=t}function d(t,e){return f.map(t,function(t,i){var n=e&&e[i];return f[Ln](n)&&!f[Or](n)?(f[Ln](t)&&!f[Or](t)&&(t=t.value),f[ir]({value:t},n)):t})}var f=t(Kr),p=t(Re),v=new Array(60).join("-"),m=" ",g=new RegExp("["+m+"]+","g");return h.defaultOption={show:!0,readOnly:!1,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:"数据视图",lang:["数据视图","关闭","刷新"],backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},h[Jr].onclick=function(t,e){function i(){n.removeChild(o),x._dom=null}var n=e[hn](),r=this.model;this._dom&&n.removeChild(this._dom);var o=document[Ur]("div");o.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",o.style[xe]=r.get(xe)||"#fff";var s=document[Ur]("h4"),l=r.get("lang")||[];s[we]=l[0]||r.get("title"),s.style.cssText="margin: 10px 20px;",s.style.color=r.get("textColor");var u=document[Ur]("textarea");u.style.cssText="display:block;width:100%;font-size:14px;line-height:1.6rem;font-family:Monaco,Consolas,Courier new,monospace",u.readOnly=r.get("readOnly"),u.style.color=r.get("textColor"),u.style[Yn]=r.get("textareaBorderColor"),u.style[xe]=r.get("textareaColor");var h=a(t);u.value=h.value;var d=h.meta,f=document[Ur]("div");f.style.cssText="position:absolute;bottom:0;left:0;right:0;";var v="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",g=document[Ur]("div"),y=document[Ur]("div");v+=";background-color:"+r.get("buttonColor"),v+=";color:"+r.get("buttonTextColor");var x=this;p.addEventListener(g,"click",i),p.addEventListener(y,"click",function(){var t;try{t=c(u.value,d)}catch(n){throw i(),new Error("Data view format error "+n)}e[ln]({type:"changeDataView",newOption:t}),i()}),g[we]=l[1],y[we]=l[2],y.style.cssText=v,g.style.cssText=v,f[_e](y),f[_e](g),p.addEventListener(u,"keydown",function(t){if(9===(t.keyCode||t.which)){var e=this.value,i=this.selectionStart,n=this.selectionEnd;this.value=e.substring(0,i)+m+e.substring(n),this.selectionStart=this.selectionEnd=i+1,p.stop(t)}}),o[_e](s),o[_e](u),o[_e](f),u.style[ur]=n[ye]-80+"px",n[_e](o),this._dom=o},h[Jr][Pi]=function(t,e){this._dom&&e[hn]().removeChild(this._dom)},h[Jr][me]=function(t,e){this[Pi](t,e)},t("../featureManager")[sn]("dataView",h),t("../../../echarts")[$t]({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var i=[];f.each(t.newOption[pn],function(t){var n=e.getSeriesByName(t.name)[0];if(n){var r=n.get("data");i.push({name:t.name,data:d(t.data,r)})}else i.push(f[Cr]({type:"scatter"},t))}),e[mn](f[ir]({series:i},t.newOption))}),h}),e("echarts/component/dataZoom/history",[Qr,Kr],function(t){function e(t){var e=t[r];return e||(e=t[r]=[{}]),e}var i=t(Kr),n=i.each,r="\x00_ec_hist_store",a={push:function(t,i){var r=e(t);n(i,function(e,i){for(var n=r[jr]-1;n>=0;n--){var a=r[n];if(a[i])break}if(0>n){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var s=o.getPercentRange();r[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}}),r.push(i)},pop:function(t){var i=e(t),r=i[i[jr]-1];i[jr]>1&&i.pop();var a={};return n(r,function(t,e){for(var n=i[jr]-1;n>=0;n--){var t=i[n][e];if(t){a[e]=t;break}}}),a},clear:function(t){t[r]=null},count:function(t){return e(t)[jr]}};return a}),e("echarts/component/dataZoom/SelectZoomModel",[Qr,"./DataZoomModel"],function(t){var e=t("./DataZoomModel");return e[Cr]({type:"dataZoom.select"})}),e("echarts/component/dataZoom/SelectZoomView",[Qr,"./DataZoomView"],function(t){return t("./DataZoomView")[Cr]({type:"dataZoom.select"})}),e("echarts/component/dataZoomSelect",[Qr,"./dataZoom/typeDefaulter","./dataZoom/DataZoomModel","./dataZoom/DataZoomView","./dataZoom/SelectZoomModel","./dataZoom/SelectZoomView","./dataZoom/dataZoomProcessor","./dataZoom/dataZoomAction"],function(t){t("./dataZoom/typeDefaulter"),t("./dataZoom/DataZoomModel"),t("./dataZoom/DataZoomView"),t("./dataZoom/SelectZoomModel"),t("./dataZoom/SelectZoomView"),t("./dataZoom/dataZoomProcessor"),t("./dataZoom/dataZoomAction")}),e("echarts/component/toolbox/feature/DataZoom",[Qr,Kr,"../../../util/number","../../helper/SelectController",hr,"zrender/container/Group","../../dataZoom/history","../../helper/interactionMutex","../../dataZoomSelect","../featureManager","../../../echarts"],function(t){function e(t){this.model=t,this._controllerGroup,this[s],this._isZoomActive}function i(t,e){var i=[{axisModel:t[it]("x").model,axisIndex:0},{axisModel:t[it]("y").model,axisIndex:0}];return i.grid=t,e[ie]({mainType:"dataZoom",subType:"select"},function(t,r){n("xAxis",i[0].axisModel,t,e)&&(i[0].dataZoomModel=t),n("yAxis",i[1].axisModel,t,e)&&(i[1].dataZoomModel=t)}),i}function n(t,e,i,n){var r=i.get(t+"Index");return null!=r&&n[on](t,r)===e}function r(t,e){var i=e.grid,n=new d(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0]);if(n[be](i[I]())){var r=i.getCartesian(e[0][Wn],e[1][Wn]),a=r.pointToData([t[0][0],t[1][0]],!0),o=r.pointToData([t[0][1],t[1][1]],!0);return[g([a[0],o[0]]),g([a[1],o[1]])]}}function a(t,e,i,n){var r=e[i],a=r.dataZoomModel;return a?{dataZoomId:a.id,startValue:t[i][0],endValue:t[i][1]}:void 0}function o(t,e){t.setIconStatus("back",p.count(e)>1?Zn:Gn)}var u=t(Kr),c=t("../../../util/number"),h=t("../../helper/SelectController"),d=t(hr),f=t("zrender/container/Group"),p=t("../../dataZoom/history"),v=t("../../helper/interactionMutex"),m=u.each,g=c.asc;t("../../dataZoomSelect");var x="\x00_ec_\x00toolbox-dataZoom_";e.defaultOption={show:!0,icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:{zoom:"区域缩放",back:"区域缩放还原"}};var _=e[Jr];_[Si]=function(t,e,i){o(t,e)},_.onclick=function(t,e,i){var n=this._controllerGroup;this._controllerGroup||(n=this._controllerGroup=new f,e.getZr().add(n)),w[i].call(this,n,this.model,t,e)},_[Pi]=function(t,e){this._disposeController(),v.release("globalPan",e.getZr())},_[me]=function(t,e){var i=e.getZr();v.release("globalPan",i),this._disposeController(),this._controllerGroup&&i[Pi](this._controllerGroup)};var w={zoom:function(t,e,i,n){var r=this._isZoomActive=!this._isZoomActive,a=n.getZr();v[r?"take":"release"]("globalPan",a),e.setIconStatus("zoom",r?Zn:Gn),r?(a.setDefaultCursorStyle("crosshair"),this._createController(t,e,i,n)):(a.setDefaultCursorStyle("default"),this._disposeController())},back:function(t,e,i,n){this._dispatchAction(p.pop(i),n)}};return _._createController=function(t,e,i,n){var r=this[s]=new h("rect",n.getZr(),{lineWidth:3,stroke:"#333",fill:"rgba(0,0,0,0.2)"});r.on("selectEnd",u.bind(this._onSelected,this,r,e,i,n)),r[l](t,!1)},_._disposeController=function(){var t=this[s];t&&(t.off(y),t[me]())},_._onSelected=function(t,e,n,o,s){if(s[jr]){var l=s[0];t[Se]();var u={};n[ie]("grid",function(t,e){var o=t[nn],s=i(o,n),c=r(l,s);if(c){var h=a(c,s,0,"x"),d=a(c,s,1,"y");h&&(u[h.dataZoomId]=h),d&&(u[d.dataZoomId]=d)}},this),p.push(n,u),this._dispatchAction(u,o)}},_._dispatchAction=function(t,e){var i=[];m(t,function(t){i.push(t)}),i[jr]&&e[ln]({type:"dataZoom",from:this.uid,batch:u.clone(i,!0)})},t("../featureManager")[sn](oe,e),t("../../../echarts")[Jt](function(t){function e(t,e){if(e){var r=t+"Index",a=e[r];null==a||u[Or](a)||(a=a===!1?[]:[a]),i(t,function(e,i){if(null==a||-1!==u[Hr](a,i)){var o={type:"select",$fromToolbox:!0,id:x+t+i};o[r]=i,n.push(o)}})}}function i(e,i){var n=t[e];u[Or](n)||(n=n?[n]:[]),m(n,i)}if(t){var n=t[oe]||(t[oe]=[]);u[Or](n)||(n=[n]);var r=t.toolbox;if(r&&(u[Or](r)&&(r=r[0]),r&&r.feature)){var a=r.feature[oe];e("xAxis",a),e("yAxis",a)}}}),e}),e("echarts/component/toolbox/feature/Restore",[Qr,"../../dataZoom/history","../featureManager","../../../echarts"],function(t){function e(t){this.model=t}var i=t("../../dataZoom/history");e.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:"还原"};var n=e[Jr];return n.onclick=function(t,e,n){i.clear(t),e[ln]({type:"restore",from:this.uid})},t("../featureManager")[sn](oi,e),t("../../../echarts")[$t]({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e[gn]("recreate")}),e}),e("echarts/component/toolbox",[Qr,"./toolbox/ToolboxModel","./toolbox/ToolboxView","./toolbox/feature/SaveAsImage","./toolbox/feature/MagicType","./toolbox/feature/DataView","./toolbox/feature/DataZoom","./toolbox/feature/Restore"],function(t){t("./toolbox/ToolboxModel"),t("./toolbox/ToolboxView"),t("./toolbox/feature/SaveAsImage"),t("./toolbox/feature/MagicType"),t("./toolbox/feature/DataView"),t("./toolbox/feature/DataZoom"),t("./toolbox/feature/Restore")}),e("zrender/vml/core",[Qr,"exports","module","../core/env"],function(t,e,i){if(!t("../core/env")[ge]){var n,r="urn:schemas-microsoft-com:vml",a=window,o=a.document,s=!1;try{!o.namespaces.zrvml&&o.namespaces.add("zrvml",r),n=function(t){return o[Ur]("<zrvml:"+t+' class="zrvml">')}}catch(l){n=function(t){return o[Ur]("<"+t+' xmlns="'+r+'" class="zrvml">')}}var u=function(){if(!s){s=!0;var t=o.styleSheets;t[jr]<31?o.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}};i.exports={doc:o,initVML:u,createNode:n}}}),e("zrender/vml/graphic",[Qr,"../core/env","../core/vector",rr,"../core/PathProxy","../tool/color","../contain/text","../graphic/mixin/RectText","../graphic/Displayable","../graphic/Image","../graphic/Text","../graphic/Path","../graphic/Gradient","./core"],function(t){if(!t("../core/env")[ge]){var e=t("../core/vector"),i=t(rr),n=t("../core/PathProxy").CMD,r=t("../tool/color"),a=t("../contain/text"),o=t("../graphic/mixin/RectText"),s=t("../graphic/Displayable"),l=t("../graphic/Image"),u=t("../graphic/Text"),c=t("../graphic/Path"),h=t("../graphic/Gradient"),d=t("./core"),f=Math.round,v=Math.sqrt,m=Math.abs,g=Math.cos,y=Math.sin,x=Math.max,_=e[cr],w=",",b="progid:DXImageTransform.Microsoft",M=21600,S=M/2,A=1e5,C=1e3,T=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=M+","+M,t.coordorigin="0,0"},k=function(t){return String(t)[Nr](/&/g,"&amp;")[Nr](/"/g,"&quot;")},L=function(t,e,i){return"rgb("+[t,e,i].join(",")+")"},D=function(t,e){e&&t&&e[Le]!==t&&t[_e](e)},P=function(t,e){e&&t&&e[Le]===t&&t.removeChild(e)},I=function(t,e,i){return(parseFloat(t)||0)*A+(parseFloat(e)||0)*C+i},z=function(t,e,i){var n=r.parse(e);i=+i,isNaN(i)&&(i=1),n&&(t.color=L(n[0],n[1],n[2]),t[xr]=i*n[3])},V=function(t){var e=r.parse(t);return[L(e[0],e[1],e[2]),e[3]]},R=function(t,e,i){var n=e.fill;if(null!=n)if(n instanceof h){var r,a=0,o=[0,0],s=0,l=1,u=i[Jn](),c=u.width,d=u[ur];if(n.type===Ni){r="gradient";var f=i[Xi],p=[n.x*c,n.y*d],v=[n.x2*c,n.y2*d];f&&(_(p,p,f),_(v,v,f));var m=v[0]-p[0],g=v[1]-p[1];a=180*Math.atan2(m,g)/Math.PI,0>a&&(a+=360),1e-6>a&&(a=0)}else{r="gradientradial";var p=[n.x*c,n.y*d],f=i[Xi],y=i.scale,w=c,b=d;o=[(p[0]-u.x)/w,(p[1]-u.y)/b],f&&_(p,p,f),w/=y[0]*M,b/=y[1]*M;var S=x(w,b);s=0/S,l=2*n.r/S-s}var A=n.colorStops.slice();A.sort(function(t,e){return t[Qe]-e[Qe]});for(var C=A[jr],T=[],k=[],L=0;C>L;L++){var D=A[L],P=V(D.color);k.push(D[Qe]*l+s+" "+P[0]),(0===L||L===C-1)&&T.push(P)}if(C>=2){var I=T[0][0],R=T[1][0],O=T[0][1]*e[xr],E=T[1][1]*e[xr];t.type=r,t.method="none",t.focus="100%",t.angle=a,t.color=I,t.color2=R,t.colors=k.join(","),t[xr]=E,t.opacity2=O}"radial"===r&&(t.focusposition=o.join(","))}else z(t,n,e[xr])},O=function(t,e){null!=e.lineJoin&&(t.joinstyle=e.lineJoin),null!=e.miterLimit&&(t.miterlimit=e.miterLimit*M),null!=e.lineCap&&(t.endcap=e.lineCap),null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e[_r]||e[_r]instanceof h||z(t,e[_r],e[xr])},E=function(t,e,i,n){var r="fill"==e,a=t.getElementsByTagName(e)[0];null!=i[e]&&"none"!==i[e]&&(r||!r&&i[wr])?(t[r?"filled":"stroked"]="true",i[e]instanceof h&&P(t,a),a||(a=d.createNode(e)),r?R(a,i,n):O(a,i),D(t,a)):(t[r?"filled":"stroked"]="false",P(t,a))},N=[[],[],[]],B=function(t,e){var i,r,a,o,s,l,u=n.M,c=n.C,h=n.L,d=n.A,p=n.Q,m=[];for(o=0;o<t[jr];){switch(a=t[o++],r="",i=0,a){case u:r=" m ",i=1,s=t[o++],l=t[o++],N[0][0]=s,N[0][1]=l;break;case h:r=" l ",i=1,s=t[o++],l=t[o++],N[0][0]=s,N[0][1]=l;break;case p:case c:r=" c ",i=3;var x,b,A=t[o++],C=t[o++],T=t[o++],k=t[o++];a===p?(x=T,b=k,T=(T+2*A)/3,k=(k+2*C)/3,A=(s+2*A)/3,C=(l+2*C)/3):(x=t[o++],b=t[o++]),N[0][0]=A,N[0][1]=C,N[1][0]=T,N[1][1]=k,N[2][0]=x,N[2][1]=b,s=x,l=b;break;case d:var L=0,D=0,P=1,I=1,z=0;e&&(L=e[4],D=e[5],P=v(e[0]*e[0]+e[1]*e[1]),I=v(e[2]*e[2]+e[3]*e[3]),z=Math.atan2(-e[1]/I,e[0]/P));var V=t[o++],R=t[o++],O=t[o++],E=t[o++],B=t[o++]+z,G=t[o++]+B+z;o++;var Z=t[o++],F=V+g(B)*O,H=R+y(B)*E,A=V+g(G)*O,C=R+y(G)*E,W=Z?" wa ":" at ";m.push(W,f(((V-O)*P+L)*M-S),w,f(((R-E)*I+D)*M-S),w,f(((V+O)*P+L)*M-S),w,f(((R+E)*I+D)*M-S),w,f((F*P+L)*M-S),w,f((H*I+D)*M-S),w,f((A*P+L)*M-S),w,f((C*I+D)*M-S)),s=A,l=C;break;case n.R:var q=N[0],U=N[1];q[0]=t[o++],q[1]=t[o++],U[0]=q[0]+t[o++],U[1]=q[1]+t[o++],e&&(_(q,q,e),_(U,U,e)),q[0]=f(q[0]*M-S),U[0]=f(U[0]*M-S),q[1]=f(q[1]*M-S),U[1]=f(U[1]*M-S),m.push(" m ",q[0],w,q[1]," l ",U[0],w,q[1]," l ",U[0],w,U[1]," l ",q[0],w,U[1]);break;case n.Z:m.push(" x ")}if(i>0){m.push(r);for(var j=0;i>j;j++){var X=N[j];e&&_(X,X,e),m.push(f(X[0]*M-S),w,f(X[1]*M-S),i-1>j?w:"")}}}return m.join("")};c[Jr].brush=function(t){var e=this.style,i=this._vmlEl;i||(i=d.createNode("shape"),T(i),this._vmlEl=i),E(i,"fill",e,this),E(i,_r,e,this);var n=this[Xi],r=null!=n,a=i.getElementsByTagName(_r)[0];if(a){var o=e[wr];if(r&&!e.strokeNoScale){var s=n[0]*n[3]-n[1]*n[2];o*=v(m(s))}a.weight=o+"px"}var l=this.path;this.__dirtyPath&&(l[fi](),this[si](l,this.shape),this.__dirtyPath=!1),i.path=B(l.data,this[Xi]),i.style.zIndex=I(this[Ae],this.z,this.z2),D(t,i),e.text&&this.drawRectText(t,this[Jn]())},c[Jr].onRemoveFromStorage=function(t){P(t,this._vmlEl),this.removeRectText(t)},c[Jr].onAddToStorage=function(t){D(t,this._vmlEl),this.appendRectText(t)};var G=function(t){return typeof t===Xr&&t.tagName&&"IMG"===t.tagName[kr]()};l[Jr].brush=function(t){var e,i,n=this.style,r=n.image;if(G(r)){var a=r.src;if(a===this._imageSrc)e=this._imageWidth,i=this._imageHeight;else{var o=r.runtimeStyle,s=o.width,l=o[ur];o.width="auto",o[ur]="auto",e=r.width,i=r[ur],o.width=s,o[ur]=l,this._imageSrc=a,this._imageWidth=e,this._imageHeight=i}r=a}else r===this._imageSrc&&(e=this._imageWidth,i=this._imageHeight);if(r){var u=n.x||0,c=n.y||0,h=n.width,m=n[ur],g=n.sWidth,y=n.sHeight,M=n.sx||0,S=n.sy||0,A=g&&y,C=this._vmlEl;C||(C=d.doc[Ur]("div"),T(C),this._vmlEl=C);var k,L=C.style,P=!1,z=1,V=1;if(this[Xi]&&(k=this[Xi],z=v(k[0]*k[0]+k[1]*k[1]),V=v(k[2]*k[2]+k[3]*k[3]),P=k[1]||k[2]),P){var R=[u,c],O=[u+h,c],E=[u,c+m],N=[u+h,c+m];_(R,R,k),_(O,O,k),_(E,E,k),_(N,N,k);var B=x(R[0],O[0],E[0],N[0]),Z=x(R[1],O[1],E[1],N[1]),F=[];F.push("M11=",k[0]/z,w,"M12=",k[2]/V,w,"M21=",k[1]/z,w,"M22=",k[3]/V,w,"Dx=",f(u*z+k[4]),w,"Dy=",f(c*V+k[5])),L[p]="0 "+f(B)+"px "+f(Z)+"px 0",L[$r]=b+".Matrix("+F.join("")+", SizingMethod=clip)"}else k&&(u=u*z+k[4],c=c*V+k[5]),L[$r]="",L.left=f(u)+"px",L.top=f(c)+"px";var H=this._imageEl,W=this._cropEl;H||(H=d.doc[Ur]("div"),this._imageEl=H);var q=H.style;if(A){if(e&&i)q.width=f(z*e*h/g)+"px",q[ur]=f(V*i*m/y)+"px";else{var U=new Image,j=this;U.onload=function(){U.onload=null,e=U.width,i=U[ur],q.width=f(z*e*h/g)+"px",q[ur]=f(V*i*m/y)+"px",j._imageWidth=e,j._imageHeight=i,j._imageSrc=r},U.src=r}W||(W=d.doc[Ur]("div"),W.style.overflow="hidden",this._cropEl=W);var X=W.style;X.width=f((h+M*h/g)*z),X[ur]=f((m+S*m/y)*V),X[$r]=b+".Matrix(Dx="+-M*h/g*z+",Dy="+-S*m/y*V+")",W[Le]||C[_e](W),H[Le]!=W&&W[_e](H)}else q.width=f(z*h)+"px",q[ur]=f(V*m)+"px",C[_e](H),W&&W[Le]&&(C.removeChild(W),this._cropEl=null);var Y="",$=n[xr];1>$&&(Y+=".Alpha(opacity="+f(100*$)+") "),Y+=b+".AlphaImageLoader(src="+r+", SizingMethod=scale)",q[$r]=Y,C.style.zIndex=I(this[Ae],this.z,this.z2),D(t,C),n.text&&this.drawRectText(t,this[Jn]())}},l[Jr].onRemoveFromStorage=function(t){P(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},l[Jr].onAddToStorage=function(t){D(t,this._vmlEl),this.appendRectText(t)};var Z,F=Gn,H={},W=0,q=100,U=document[Ur]("div"),j=function(t){var e=H[t];if(!e){W>q&&(W=0,H={});var i,n=U.style;try{n.font=t,i=n.fontFamily.split(",")[0]}catch(r){}e={style:n.fontStyle||F,variant:n.fontVariant||F,weight:n.fontWeight||F,size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},H[t]=e,W++}return e};a.measureText=function(t,e){var i=d.doc;Z||(Z=i[Ur]("div"),Z.style.cssText="position:absolute;top:-20000px;left:0; padding:0;margin:0;border:none;white-space:pre;",d.doc.body[_e](Z));try{Z.style.font=e}catch(n){}return Z[we]="",Z[_e](i.createTextNode(t)),{width:Z.offsetWidth}};for(var X=new i,Y=function(t,e,i,n){var r=this.style,o=r.text;if(o){var s,l,u=r[gi],c=j(r.textFont),h=c.style+" "+c.variant+" "+c.weight+" "+c.size+'px "'+c.family+'"',p=r[mi];i=i||a[Jn](o,h,u,p);var v=this[Xi];if(v&&!n&&(X.copy(e),X[cr](v),e=X),n)s=e.x,l=e.y;else{var m=r[yi],g=r.textDistance;if(m instanceof Array)s=e.x+m[0],l=e.y+m[1],u=u||"left",p=p||"top";else{var y=a.adjustTextPositionOnRect(m,e,i,g);s=y.x,l=y.y,u=u||y[gi],p=p||y[mi]}}var x=c.size;switch(p){case"hanging":case"top":l+=x/1.75;break;case zr:break;default:l-=x/2.25}switch(u){case"left":break;case Vr:s-=i.width/2;break;case"right":s-=i.width}var b,M,S,A=d.createNode,C=this._textVmlEl;C?(S=C.firstChild,b=S.nextSibling,M=b.nextSibling):(C=A("line"),b=A("path"),M=A("textpath"),S=A("skew"),M.style["v-text-align"]="left",T(C),b.textpathok=!0,M.on=!0,C.from="0 0",C.to="1000 0.05",D(C,S),D(C,b),D(C,M),this._textVmlEl=C);var L=[s,l],P=C.style;v&&n?(_(L,L,v),S.on=!0,S.matrix=v[0][Pr](3)+w+v[2][Pr](3)+w+v[1][Pr](3)+w+v[3][Pr](3)+",0,0",S[Qe]=(f(L[0])||0)+","+(f(L[1])||0),S[Yi]="0 0",P.left="0px",P.top="0px"):(S.on=!1,P.left=f(s)+"px",P.top=f(l)+"px"),M[Fr]=k(o);try{M.style.font=h}catch(z){}E(C,"fill",{fill:n?r.fill:r.textFill,opacity:r[xr]},this),E(C,_r,{stroke:n?r[_r]:r.textStroke,opacity:r[xr],lineDash:r.lineDash},this),C.style.zIndex=I(this[Ae],this.z,this.z2),D(t,C)}},$=function(t){P(t,this._textVmlEl),this._textVmlEl=null},K=function(t){D(t,this._textVmlEl)},J=[o,s,l,c,u],Q=0;Q<J[jr];Q++){var tt=J[Q][Jr];tt.drawRectText=Y,tt.removeRectText=$,tt.appendRectText=K}u[Jr].brush=function(t){var e=this.style;e.text&&this.drawRectText(t,{x:e.x||0,y:e.y||0,width:0,height:0},this[Jn](),!0)},u[Jr].onRemoveFromStorage=function(t){this.removeRectText(t)},u[Jr].onAddToStorage=function(t){this.appendRectText(t)}}}),e("zrender/vml/Painter",[Qr,"../core/log","./core"],function(t){function e(t){return parseInt(t,10)}function i(t,e){a.initVML(),this.root=t,this[ke]=e;var i=document[Ur]("div"),n=document[Ur]("div");i.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",n.style.cssText="position:absolute;left:0;top:0;",t[_e](i),this._vmlRoot=n,this._vmlViewport=i,this[Me]();var r=e[Li],o=e[Di];e[Li]=function(t){var i=e.get(t);r.call(e,t),i&&i.onRemoveFromStorage&&i.onRemoveFromStorage(n)},e[Di]=function(t){t.onAddToStorage&&t.onAddToStorage(n),o.call(e,t)},this._firstPaint=!0}function n(t){return function(){r('In IE8.0 VML mode painter not support method "'+t+'"')}}var r=t("../core/log"),a=t("./core");i[Jr]={constructor:i,getViewportRoot:function(){return this._vmlViewport},refresh:function(){var t=this[ke][Te](!0);this._paintList(t)},_paintList:function(t){for(var e=this._vmlRoot,i=0;i<t[jr];i++){var n=t[i];n[Ii]&&!n[Ti]&&(n.beforeBrush&&n.beforeBrush(),n.brush(e),n.afterBrush&&n.afterBrush()),n[Ii]=!1}this._firstPaint&&(this._vmlViewport[_e](e),this._firstPaint=!1)},resize:function(){var t=this._getWidth(),e=this._getHeight();if(this._width!=t&&this._height!=e){this._width=t,this._height=e;var i=this._vmlViewport.style;i.width=t+"px",i[ur]=e+"px"}},dispose:function(){this.root[we]="",this._vmlRoot=this._vmlViewport=this[ke]=null},getWidth:function(){return this._width},getHeight:function(){return this._height},_getWidth:function(){var t=this.root,i=t.currentStyle;return(t.clientWidth||e(i.width))-e(i.paddingLeft)-e(i.paddingRight)|0},_getHeight:function(){var t=this.root,i=t.currentStyle;return(t[ye]||e(i[ur]))-e(i.paddingTop)-e(i.paddingBottom)|0}};for(var o=["getLayer","insertLayer","eachLayer","eachBuildinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],s=0;s<o[jr];s++){var l=o[s];i[Jr][l]=n(l)}return i}),e("zrender/vml/vml",[Qr,"./graphic","../zrender","./Painter"],function(t){t("./graphic"),t("../zrender").registerPainter("vml",t("./Painter"))});var ta=t("echarts");return t("echarts/chart/line"),t("echarts/chart/bar"),t("echarts/component/grid"),t("echarts/chart/pie"),t("echarts/chart/scatter"),t("echarts/component/tooltip"),t("echarts/component/polar"),t("echarts/chart/radar"),t("echarts/component/legend"),t("echarts/chart/map"),t("echarts/chart/treemap"),t("echarts/chart/graph"),t("echarts/chart/gauge"),t("echarts/chart/funnel"),t("echarts/chart/parallel"),t("echarts/chart/sankey"),t("echarts/chart/boxplot"),t("echarts/chart/candlestick"),t("echarts/chart/effectScatter"),t("echarts/chart/lines"),t("echarts/chart/heatmap"),t("echarts/component/geo"),t("echarts/component/parallel"),t("echarts/component/title"),t("echarts/component/dataZoom"),t("echarts/component/visualMap"),t("echarts/component/markPoint"),t("echarts/component/markLine"),t("echarts/component/timeline"),t("echarts/component/toolbox"),t("zrender/vml/vml"),ta});