chunk-vendors-8b27237c.ba07e88c.js 34 KB

12
  1. (self["webpackChunkapp"]=self["webpackChunkapp"]||[]).push([[2733],{76093:function(t,e,o){o(76596),o(31895),o(40354),o(34876),o(63795),o(2758),o(9856)},76596:function(t,e,o){var i=o(70492),n=o(33051),r=o(21806),a=i.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){a.superApply(this,"optionUpdated",arguments),n.each(this.option.feature,(function(t,e){var o=r.get(e);o&&n.merge(t,o.defaultOption)}))},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1}}}),s=a;t.exports=s},31895:function(t,e,o){var i=o(70492),n=o(33051),r=o(80423),a=o(21806),s=o(51177),l=o(4272),h=o(4130),d=o(99337),u=i.extendComponentView({type:"toolbox",render:function(t,e,o,i){var u=this.group;if(u.removeAll(),t.get("show")){var p=+t.get("itemSize"),f=t.get("feature")||{},g=this._features||(this._features={}),m=[];n.each(f,(function(t,e){m.push(e)})),new h(this._featureNames||[],m).add(v).update(v).remove(n.curry(v,null)).execute(),this._featureNames=m,d.layout(u,t,o),u.add(d.makeBackground(u.getBoundingRect(),t)),u.eachChild((function(t){var e=t.__title,i=t.hoverStyle;if(i&&e){var n=r.getBoundingRect(e,r.makeFont(i)),a=t.position[0]+u.position[0],s=t.position[1]+u.position[1]+p,l=!1;s+n.height>o.getHeight()&&(i.textPosition="top",l=!0);var h=l?-5-n.height:p+8;a+n.width/2>o.getWidth()?(i.textPosition=["100%",h],i.textAlign="right"):a-n.width/2<0&&(i.textPosition=[0,h],i.textAlign="left")}}))}function v(n,r){var s,h=m[n],d=m[r],u=f[h],p=new l(u,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===h&&(u.title=i.newTitle),h&&!d){if(c(h))s={model:p,onclick:p.option.onclick,featureName:h};else{var v=a.get(h);if(!v)return;s=new v(p,e,o)}g[h]=s}else{if(s=g[d],!s)return;s.model=p,s.ecModel=e,s.api=o}h||!d?p.get("show")&&!s.unusable?(y(p,s,h),p.setIconStatus=function(t,e){var o=this.option,i=this.iconPaths;o.iconStatus=o.iconStatus||{},o.iconStatus[t]=e,i[t]&&i[t].trigger(e)},s.render&&s.render(p,e,o,i)):s.remove&&s.remove(e,o):s.dispose&&s.dispose(e,o)}function y(i,r,a){var l=i.getModel("iconStyle"),h=i.getModel("emphasis.iconStyle"),d=r.getIcons?r.getIcons():i.get("icon"),c=i.get("title")||{};if("string"===typeof d){var f=d,g=c;d={},c={},d[a]=f,c[a]=g}var m=i.iconPaths={};n.each(d,(function(a,d){var f=s.createIcon(a,{},{x:-p/2,y:-p/2,width:p,height:p});f.setStyle(l.getItemStyle()),f.hoverStyle=h.getItemStyle(),f.setStyle({text:c[d],textAlign:h.get("textAlign"),textBorderRadius:h.get("textBorderRadius"),textPadding:h.get("textPadding"),textFill:null});var g=t.getModel("tooltip");g&&g.get("show")&&f.attr("tooltip",n.extend({content:c[d],formatter:g.get("formatter",!0)||function(){return c[d]},formatterParams:{componentType:"toolbox",name:d,title:c[d],$vars:["name","title"]},position:g.get("position",!0)||"bottom"},g.option)),s.setHoverStyle(f),t.get("showTitle")&&(f.__title=c[d],f.on("mouseover",(function(){var e=h.getItemStyle(),o="vertical"===t.get("orient")?null==t.get("right")?"right":"left":null==t.get("bottom")?"bottom":"top";f.setStyle({textFill:h.get("textFill")||e.fill||e.stroke||"#000",textBackgroundColor:h.get("textBackgroundColor"),textPosition:h.get("textPosition")||o})})).on("mouseout",(function(){f.setStyle({textFill:null,textBackgroundColor:null})}))),f.trigger(i.get("iconStatus."+d)||"normal"),u.add(f),f.on("click",n.bind(r.onclick,r,e,o,d)),m[d]=f}))}},updateView:function(t,e,o,i){n.each(this._features,(function(t){t.updateView&&t.updateView(t.model,e,o,i)}))},remove:function(t,e){n.each(this._features,(function(o){o.remove&&o.remove(t,e)})),this.group.removeAll()},dispose:function(t,e){n.each(this._features,(function(o){o.dispose&&o.dispose(t,e)}))}});function c(t){return 0===t.indexOf("my")}t.exports=u},21806:function(t,e){var o={};function i(t,e){o[t]=e}function n(t){return o[t]}e.register=i,e.get=n},2190:function(t,e,o){var i=o(33051),n=o(21806),r=o(40292),a=r.toolbox.brush;function s(t,e,o){this.model=t,this.ecModel=e,this.api=o,this._brushType,this._brushMode}s.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:i.clone(a.title)};var l=s.prototype;l.render=l.updateView=function(t,e,o){var n,r,a;e.eachComponent({mainType:"brush"},(function(t){n=t.brushType,r=t.brushOption.brushMode||"single",a|=t.areas.length})),this._brushType=n,this._brushMode=r,i.each(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?a:e===n)?"emphasis":"normal")}))},l.getIcons=function(){var t=this.model,e=t.get("icon",!0),o={};return i.each(t.get("type",!0),(function(t){e[t]&&(o[t]=e[t])})),o},l.onclick=function(t,e,o){var i=this._brushType,n=this._brushMode;"clear"===o?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===o?i:i!==o&&o,brushMode:"keep"===o?"multiple"===n?"single":"multiple":n}})},n.register("brush",s);var h=s;t.exports=h},63795:function(t,e,o){var i=o(70492),n=o(33051),r=o(61158),a=o(40292),s=o(21806),l=a.toolbox.dataView,h=new Array(60).join("-"),d="\t";function u(t){var e={},o=[],i=[];return t.eachRawSeries((function(t){var n=t.coordinateSystem;if(!n||"cartesian2d"!==n.type&&"polar"!==n.type)o.push(t);else{var r=n.getBaseAxis();if("category"===r.type){var a=r.dim+"_"+r.index;e[a]||(e[a]={categoryAxis:r,valueAxis:n.getOtherAxis(r),series:[]},i.push({axisDim:r.dim,axisIndex:r.index})),e[a].series.push(t)}else o.push(t)}})),{seriesGroupByCategoryAxis:e,other:o,meta:i}}function c(t){var e=[];return n.each(t,(function(t,o){var i=t.categoryAxis,r=t.valueAxis,a=r.dim,s=[" "].concat(n.map(t.series,(function(t){return t.name}))),l=[i.model.getCategories()];n.each(t.series,(function(t){l.push(t.getRawData().mapArray(a,(function(t){return t})))}));for(var h=[s.join(d)],u=0;u<l[0].length;u++){for(var c=[],p=0;p<l.length;p++)c.push(l[p][u]);h.push(c.join(d))}e.push(h.join("\n"))})),e.join("\n\n"+h+"\n\n")}function p(t){return n.map(t,(function(t){var e=t.getRawData(),o=[t.name],i=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,n=arguments[t-1],r=e.getName(n),a=0;a<t-1;a++)i[a]=arguments[a];o.push((r?r+d:"")+i.join(d))})),o.join("\n")})).join("\n\n"+h+"\n\n")}function f(t){var e=u(t);return{value:n.filter([c(e.seriesGroupByCategoryAxis),p(e.other)],(function(t){return t.replace(/[\n\t\s]/g,"")})).join("\n\n"+h+"\n\n"),meta:e.meta}}function g(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function m(t){var e=t.slice(0,t.indexOf("\n"));if(e.indexOf(d)>=0)return!0}var v=new RegExp("["+d+"]+","g");function y(t){for(var e=t.split(/\n+/g),o=g(e.shift()).split(v),i=[],r=n.map(o,(function(t){return{name:t,data:[]}})),a=0;a<e.length;a++){var s=g(e[a]).split(v);i.push(s.shift());for(var l=0;l<s.length;l++)r[l]&&(r[l].data[a]=s[l])}return{series:r,categories:i}}function x(t){for(var e=t.split(/\n+/g),o=g(e.shift()),i=[],n=0;n<e.length;n++){var r,a=g(e[n]).split(v),s="",l=!1;isNaN(a[0])?(l=!0,s=a[0],a=a.slice(1),i[n]={name:s,value:[]},r=i[n].value):r=i[n]=[];for(var h=0;h<a.length;h++)r.push(+a[h]);1===r.length&&(l?i[n].value=r[0]:i[n]=r[0])}return{name:o,data:i}}function _(t,e){var o=t.split(new RegExp("\n*"+h+"\n*","g")),i={series:[]};return n.each(o,(function(t,o){if(m(t)){var n=y(t),r=e[o],a=r.axisDim+"Axis";r&&(i[a]=i[a]||[],i[a][r.axisIndex]={data:n.categories},i.series=i.series.concat(n.series))}else{n=x(t);i.series.push(n)}})),i}function w(t){this._dom=null,this.model=t}function b(t,e){return n.map(t,(function(t,o){var i=e&&e[o];return n.isObject(i)&&!n.isArray(i)?(n.isObject(t)&&!n.isArray(t)&&(t=t.value),n.defaults({value:t},i)):t}))}w.defaultOption={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,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:n.clone(l.title),lang:n.clone(l.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},w.prototype.onclick=function(t,e){var o=e.getDom(),i=this.model;this._dom&&o.removeChild(this._dom);var a=document.createElement("div");a.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",a.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin: 10px 20px;",s.style.color=i.get("textColor");var h=document.createElement("div"),d=document.createElement("textarea");h.style.cssText="display:block;width:100%;overflow:auto;";var u=i.get("optionToContent"),c=i.get("contentToOption"),p=f(t);if("function"===typeof u){var g=u(e.getOption());"string"===typeof g?h.innerHTML=g:n.isDom(g)&&h.appendChild(g)}else h.appendChild(d),d.readOnly=i.get("readOnly"),d.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",d.style.color=i.get("textColor"),d.style.borderColor=i.get("textareaBorderColor"),d.style.backgroundColor=i.get("textareaColor"),d.value=p.value;var m=p.meta,v=document.createElement("div");v.style.cssText="position:absolute;bottom:0;left:0;right:0;";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",x=document.createElement("div"),w=document.createElement("div");y+=";background-color:"+i.get("buttonColor"),y+=";color:"+i.get("buttonTextColor");var b=this;function M(){o.removeChild(a),b._dom=null}r.addEventListener(x,"click",M),r.addEventListener(w,"click",(function(){var t;try{t="function"===typeof c?c(h,e.getOption()):_(d.value,m)}catch(o){throw M(),new Error("Data view format error "+o)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),M()})),x.innerHTML=l[1],w.innerHTML=l[2],w.style.cssText=y,x.style.cssText=y,!i.get("readOnly")&&v.appendChild(w),v.appendChild(x),a.appendChild(s),a.appendChild(h),a.appendChild(v),h.style.height=o.clientHeight-80+"px",o.appendChild(a),this._dom=a},w.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},w.prototype.dispose=function(t,e){this.remove(t,e)},s.register("dataView",w),i.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var o=[];n.each(t.newOption.series,(function(t){var i=e.getSeriesByName(t.name)[0];if(i){var r=i.get("data");o.push({name:t.name,data:b(t.data,r)})}else o.push(n.extend({type:"scatter"},t))})),e.mergeOption(n.defaults({series:o},t.newOption))}));var M=w;t.exports=M},2758:function(t,e,o){var i=o(70492),n=o(33051),r=o(63448),a=o(64562),s=o(29570),l=o(19233),h=o(40292),d=o(21806);o(60953);var u=h.toolbox.dataZoom,c=n.each,p="\0_ec_\0toolbox-dataZoom_";function f(t,e,o){(this._brushController=new r(o.getZr())).on("brush",n.bind(this._onBrush,this)).mount(),this._isZoomActive}f.defaultOption={show:!0,filterMode:"filter",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:n.clone(u.title)};var g=f.prototype;g.render=function(t,e,o,i){this.model=t,this.ecModel=e,this.api=o,x(t,e,this,i,o),y(t,e)},g.onclick=function(t,e,o){m[o].call(this)},g.remove=function(t,e){this._brushController.unmount()},g.dispose=function(t,e){this._brushController.dispose()};var m={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(s.pop(this.ecModel))}};function v(t){var e={};return n.each(["xAxisIndex","yAxisIndex"],(function(o){e[o]=t[o],null==e[o]&&(e[o]="all"),(!1===e[o]||"none"===e[o])&&(e[o]=[])})),e}function y(t,e){t.setIconStatus("back",s.count(e)>1?"emphasis":"normal")}function x(t,e,o,i,n){var r=o._isZoomActive;i&&"takeGlobalCursor"===i.type&&(r="dataZoomSelect"===i.key&&i.dataZoomSelectActive),o._isZoomActive=r,t.setIconStatus("zoom",r?"emphasis":"normal");var s=new a(v(t.option),e,{include:["grid"]});o._brushController.setPanels(s.makePanelOpts(n,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}))).enableBrush(!!r&&{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}})}g._onBrush=function(t,e){if(e.isEnd&&t.length){var o={},i=this.ecModel;this._brushController.updateCovers([]);var n=new a(v(this.model.option),i,{include:["grid"]});n.matchOutputRanges(t,i,(function(t,e,o){if("cartesian2d"===o.type){var i=t.brushType;"rect"===i?(r("x",o,e[0]),r("y",o,e[1])):r({lineX:"x",lineY:"y"}[i],o,e)}})),s.push(i,o),this._dispatchZoomAction(o)}function r(t,e,n){var r=e.getAxis(t),a=r.model,s=h(t,a,i),d=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==d.minValueSpan&&null==d.maxValueSpan||(n=l(0,n.slice(),r.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),s&&(o[s.id]={dataZoomId:s.id,startValue:n[0],endValue:n[1]})}function h(t,e,o){var i;return o.eachComponent({mainType:"dataZoom",subType:"select"},(function(o){var n=o.getAxisModel(t,e.componentIndex);n&&(i=o)})),i}},g._dispatchZoomAction=function(t){var e=[];c(t,(function(t,o){e.push(n.clone(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},d.register("dataZoom",f),i.registerPreprocessor((function(t){if(t){var e=t.dataZoom||(t.dataZoom=[]);n.isArray(e)||(t.dataZoom=e=[e]);var o=t.toolbox;if(o&&(n.isArray(o)&&(o=o[0]),o&&o.feature)){var i=o.feature.dataZoom;r("xAxis",i),r("yAxis",i)}}function r(t,o){if(o){var i=t+"Index",r=o[i];null==r||"all"===r||n.isArray(r)||(r=!1===r||"none"===r?[]:[r]),a(t,(function(a,s){if(null==r||"all"===r||-1!==n.indexOf(r,s)){var l={type:"select",$fromToolbox:!0,filterMode:o.filterMode||"filter",id:p+t+s};l[i]=s,e.push(l)}}))}}function a(e,o){var i=t[e];n.isArray(i)||(i=i?[i]:[]),c(i,o)}}));var _=f;t.exports=_},34876:function(t,e,o){var i=o(70492),n=o(33051),r=o(40292),a=o(21806),s=r.toolbox.magicType,l="__ec_magicType_stack__";function h(t){this.model=t}h.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"},title:n.clone(s.title),option:{},seriesIndex:{}};var d=h.prototype;d.getIcons=function(){var t=this.model,e=t.get("icon"),o={};return n.each(t.get("type"),(function(t){e[t]&&(o[t]=e[t])})),o};var u={line:function(t,e,o,i){if("bar"===t)return n.merge({id:e,type:"line",data:o.get("data"),stack:o.get("stack"),markPoint:o.get("markPoint"),markLine:o.get("markLine")},i.get("option.line")||{},!0)},bar:function(t,e,o,i){if("line"===t)return n.merge({id:e,type:"bar",data:o.get("data"),stack:o.get("stack"),markPoint:o.get("markPoint"),markLine:o.get("markLine")},i.get("option.bar")||{},!0)},stack:function(t,e,o,i){var r=o.get("stack")===l;if("line"===t||"bar"===t)return i.setIconStatus("stack",r?"normal":"emphasis"),n.merge({id:e,stack:r?"":l},i.get("option.stack")||{},!0)}},c=[["line","bar"],["stack"]];d.onclick=function(t,e,o){var i=this.model,r=i.get("seriesIndex."+o);if(u[o]){var a,h={series:[]},d=function(e){var r=e.subType,a=e.id,s=u[o](r,a,e,i);s&&(n.defaults(s,e.option),h.series.push(s));var l=e.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===o||"bar"===o)){var d=l.getAxesByScale("ordinal")[0];if(d){var c=d.dim,p=c+"Axis",f=t.queryComponents({mainType:p,index:e.get(name+"Index"),id:e.get(name+"Id")})[0],g=f.componentIndex;h[p]=h[p]||[];for(var m=0;m<=g;m++)h[p][g]=h[p][g]||{};h[p][g].boundaryGap="bar"===o}}};if(n.each(c,(function(t){n.indexOf(t,o)>=0&&n.each(t,(function(t){i.setIconStatus(t,"normal")}))})),i.setIconStatus(o,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},d),"stack"===o){var p=h.series&&h.series[0]&&h.series[0].stack===l;a=p?n.merge({stack:s.title.tiled},s.title):n.clone(s.title)}e.dispatchAction({type:"changeMagicType",currentType:o,newOption:h,newTitle:a,featureName:"magicType"})}},i.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)})),a.register("magicType",h);var p=h;t.exports=p},9856:function(t,e,o){var i=o(70492),n=o(29570),r=o(40292),a=o(21806),s=r.toolbox.restore;function l(t){this.model=t}l.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:s.title};var h=l.prototype;h.onclick=function(t,e,o){n.clear(t),e.dispatchAction({type:"restore",from:this.uid})},a.register("restore",l),i.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var d=l;t.exports=d},40354:function(t,e,o){var i=o(66387),n=o(40292),r=o(21806),a=n.toolbox.saveAsImage;function s(t){this.model=t}s.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:a.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:a.lang.slice()},s.prototype.unusable=!i.canvasSupported;var l=s.prototype;l.onclick=function(t,e){var o=this.model,n=o.get("name")||t.get("title.0.text")||"echarts",r="svg"===e.getZr().painter.getType(),a=r?"svg":o.get("type",!0)||"png",s=e.getConnectedDataURL({type:a,backgroundColor:o.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:o.get("connectedBackgroundColor"),excludeComponents:o.get("excludeComponents"),pixelRatio:o.get("pixelRatio")});if("function"!==typeof MouseEvent||i.browser.ie||i.browser.edge)if(window.navigator.msSaveOrOpenBlob){var l=atob(s.split(",")[1]),h=l.length,d=new Uint8Array(h);while(h--)d[h]=l.charCodeAt(h);var u=new Blob([d]);window.navigator.msSaveOrOpenBlob(u,n+"."+a)}else{var c=o.get("lang"),p='<body style="margin:0;"><img src="'+s+'" style="max-width:100%;" title="'+(c&&c[0]||"")+'" /></body>',f=window.open();f.document.write(p)}else{var g=document.createElement("a");g.download=n+"."+a,g.target="_blank",g.href=s;var m=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});g.dispatchEvent(m)}},r.register("saveAsImage",s);var h=s;t.exports=h},83062:function(t,e,o){var i=o(70492);o(52528),o(16470),o(88085),i.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),i.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))},36333:function(t,e,o){var i=o(33051),n=o(21092),r=o(61158),a=o(18553),s=o(66387),l=o(78988),h=i.each,d=l.toCamelCase,u=["","-webkit-","-moz-","-o-"],c="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function p(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",o="left "+t+"s "+e+",top "+t+"s "+e;return i.map(u,(function(t){return t+"transition:"+o})).join(";")}function f(t){var e=[],o=t.get("fontSize"),i=t.getTextColor();return i&&e.push("color:"+i),e.push("font:"+t.getFont()),o&&e.push("line-height:"+Math.round(3*o/2)+"px"),h(["decoration","align"],(function(o){var i=t.get(o);i&&e.push("text-"+o+":"+i)})),e.join(";")}function g(t){var e=[],o=t.get("transitionDuration"),i=t.get("backgroundColor"),r=t.getModel("textStyle"),a=t.get("padding");return o&&e.push(p(o)),i&&(s.canvasSupported?e.push("background-Color:"+i):(e.push("background-Color:#"+n.toHex(i)),e.push("filter:alpha(opacity=70)"))),h(["width","color","radius"],(function(o){var i="border-"+o,n=d(i),r=t.get(n);null!=r&&e.push(i+":"+r+("color"===o?"":"px"))})),e.push(f(r)),null!=a&&e.push("padding:"+l.normalizeCssArray(a).join("px ")+"px"),e.join(";")+";"}function m(t,e,o,i,n){var r=e&&e.painter;if(o){var s=r&&r.getViewportRoot();s&&a.transformLocalCoord(t,s,document.body,i,n)}else{t[0]=i,t[1]=n;var l=r&&r.getViewportRootOffset();l&&(t[0]+=l.offsetLeft,t[1]+=l.offsetTop)}}function v(t,e,o){if(s.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=e.getZr(),a=this._appendToBody=o&&o.appendToBody;this._styleCoord=[0,0],m(this._styleCoord,n,a,e.getWidth()/2,e.getHeight()/2),a?document.body.appendChild(i):t.appendChild(i),this._container=t,this._show=!1,this._hideTimeout;var l=this;i.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},i.onmousemove=function(t){if(t=t||window.event,!l._enterable){var e=n.handler,o=n.painter.getViewportRoot();r.normalizeEvent(o,t,!0),e.dispatch("mousemove",t)}},i.onmouseleave=function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1}}v.prototype={constructor:v,_enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),o=t.style;"absolute"!==o.position&&"absolute"!==e.position&&(o.position="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el,o=this._styleCoord;e.style.cssText=c+g(t)+";left:"+o[0]+"px;top:"+o[1]+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",e.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var o=this._styleCoord;m(o,this._zr,this._appendToBody,t,e);var i=this.el.style;i.left=o[0]+"px",i.top=o[1]+"px"},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(i.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var t=this.el.clientWidth,e=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var o=document.defaultView.getComputedStyle(this.el);o&&(t+=parseInt(o.borderLeftWidth,10)+parseInt(o.borderRightWidth,10),e+=parseInt(o.borderTopWidth,10)+parseInt(o.borderBottomWidth,10))}return{width:t,height:e}}};var y=v;t.exports=y},16470:function(t,e,o){var i=o(70492),n=i.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});t.exports=n},97634:function(t,e,o){var i=o(33051),n=o(96498);function r(t){this._zr=t.getZr(),this._show=!1,this._hideTimeout}r.prototype={constructor:r,_enterable:!0,update:function(){},show:function(t){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(t,e,o){this.el&&this._zr.remove(this.el);var i={},r=t,a="{marker",s="|}",l=r.indexOf(a);while(l>=0){var h=r.indexOf(s),d=r.substr(l+a.length,h-l-a.length);d.indexOf("sub")>-1?i["marker"+d]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:e[d],textOffset:[3,0]}:i["marker"+d]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:e[d]},r=r.substr(h+1),l=r.indexOf("{marker")}this.el=new n({style:{rich:i,text:t,textLineHeight:20,textBackgroundColor:o.get("backgroundColor"),textBorderRadius:o.get("borderRadius"),textFill:o.get("textStyle.color"),textPadding:o.get("padding")},z:o.get("z")}),this._zr.add(this.el);var u=this;this.el.on("mouseover",(function(){u._enterable&&(clearTimeout(u._hideTimeout),u._show=!0),u._inContent=!0})),this.el.on("mouseout",(function(){u._enterable&&u._show&&u.hideLater(u._hideDelay),u._inContent=!1}))},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el.getBoundingRect();return[t.width,t.height]},moveTo:function(t,e){this.el&&this.el.attr("position",[t,e])},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(i.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var t=this.getSize();return{width:t[0],height:t[1]}}};var a=r;t.exports=a},88085:function(t,e,o){var i=o(70492),n=o(33051),r=o(66387),a=o(36333),s=o(97634),l=o(78988),h=o(85669),d=o(51177),u=o(92448),c=o(76172),p=o(4272),f=o(56996),g=o(97980),m=o(75539),v=o(32234),y=v.getTooltipRenderMode,x=n.bind,_=n.each,w=h.parsePercent,b=new d.Rect({shape:{x:-1,y:-1,width:2,height:2}}),M=i.extendComponentView({type:"tooltip",init:function(t,e){if(!r.node){var o,i=t.getComponent("tooltip"),n=i.get("renderMode");this._renderMode=y(n),"html"===this._renderMode?(o=new a(e.getDom(),e,{appendToBody:i.get("appendToBody",!0)}),this._newLine="<br/>"):(o=new s(e),this._newLine="\n"),this._tooltipContent=o}},render:function(t,e,o){if(!r.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=o,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var i=this._tooltipContent;i.update(),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel,e=t.get("triggerOn");f.register("itemTooltip",this._api,x((function(t,o,i){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(o,i):"leave"===t&&this._hide(i))}),this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,o=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!o.isDisposed()&&i.manuallyShowTip(t,e,o,{x:i._lastX,y:i._lastY})}))}},manuallyShowTip:function(t,e,o,i){if(i.from!==this.uid&&!r.node){var n=T(i,o);this._ticket="";var a=i.dataByCoordSys;if(i.tooltip&&null!=i.x&&null!=i.y){var s=b;s.position=[i.x,i.y],s.update(),s.tooltip=i.tooltip,this._tryShow({offsetX:i.x,offsetY:i.y,target:s},n)}else if(a)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:i.dataByCoordSys,tooltipOption:i.tooltipOption},n);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,o,i))return;var l=u(i,e),h=l.point[0],d=l.point[1];null!=h&&null!=d&&this._tryShow({offsetX:h,offsetY:d,position:i.position,target:l.el},n)}else null!=i.x&&null!=i.y&&(o.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:o.getZr().findHover(i.x,i.y).target},n))}},manuallyHideTip:function(t,e,o,i){var n=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&n.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(T(i,o))},_manuallyAxisShowTip:function(t,e,o,i){var n=i.seriesIndex,r=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=n&&null!=r&&null!=a){var s=e.getSeriesByIndex(n);if(s){var l=s.getData();t=C([l.getItemModel(r),s,(s.coordinateSystem||{}).model,t]);if("axis"===t.get("trigger"))return o.dispatchAction({type:"updateAxisPointer",seriesIndex:n,dataIndex:r,position:i.position}),!0}}},_tryShow:function(t,e){var o=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var n=t.dataByCoordSys;n&&n.length?this._showAxisTooltip(n,t):o&&null!=o.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,o,e)):o&&o.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,o,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var o=t.get("showDelay");e=n.bind(e,this),clearTimeout(this._showTimout),o>0?this._showTimout=setTimeout(e,o):e()},_showAxisTooltip:function(t,e){var o=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],a=[],s=[],h=C([e.tooltipOption,i]),d=this._renderMode,u=this._newLine,c={};_(t,(function(t){_(t.dataByAxis,(function(t){var e=o.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value,r=[];if(e&&null!=i){var h=m.getValueLabel(i,e.axis,o,t.seriesDataIndices,t.valueLabelOpt);n.each(t.seriesDataIndices,(function(a){var l=o.getSeriesByIndex(a.seriesIndex),u=a.dataIndexInside,p=l&&l.getDataParams(u);if(p.axisDim=t.axisDim,p.axisIndex=t.axisIndex,p.axisType=t.axisType,p.axisId=t.axisId,p.axisValue=g.getAxisRawValue(e.axis,i),p.axisValueLabel=h,p){s.push(p);var f,m=l.formatTooltip(u,!0,null,d);if(n.isObject(m)){f=m.html;var v=m.markers;n.merge(c,v)}else f=m;r.push(f)}}));var p=h;"html"!==d?a.push(r.join(u)):a.push((p?l.encodeHTML(p)+u:"")+r.join(u))}}))}),this),a.reverse(),a=a.join(this._newLine+this._newLine);var p=e.position;this._showOrMove(h,(function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(h,p,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(h,a,s,Math.random(),r[0],r[1],p,void 0,c)}))},_showSeriesItemTooltip:function(t,e,o){var i=this._ecModel,r=e.seriesIndex,a=i.getSeriesByIndex(r),s=e.dataModel||a,l=e.dataIndex,h=e.dataType,d=s.getData(h),u=C([d.getItemModel(l),s,a&&(a.coordinateSystem||{}).model,this._tooltipModel]),c=u.get("trigger");if(null==c||"item"===c){var p,f,g=s.getDataParams(l,h),m=s.formatTooltip(l,!1,h,this._renderMode);n.isObject(m)?(p=m.html,f=m.markers):(p=m,f=null);var v="item_"+s.name+"_"+l;this._showOrMove(u,(function(){this._showTooltipContent(u,p,g,v,t.offsetX,t.offsetY,t.position,t.target,f)})),o({type:"showTip",dataIndexInside:l,dataIndex:d.getRawIndex(l),seriesIndex:r,from:this.uid})}},_showComponentItemTooltip:function(t,e,o){var i=e.tooltip;if("string"===typeof i){var n=i;i={content:n,formatter:n}}var r=new p(i,this._tooltipModel,this._ecModel),a=r.get("content"),s=Math.random();this._showOrMove(r,(function(){this._showTooltipContent(r,a,r.get("formatterParams")||{},s,t.offsetX,t.offsetY,t.position,e)})),o({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,o,i,n,r,a,s,h){if(this._ticket="",t.get("showContent")&&t.get("show")){var d=this._tooltipContent,u=t.get("formatter");a=a||t.get("position");var c=e;if(u&&"string"===typeof u)c=l.formatTpl(u,o,!0);else if("function"===typeof u){var p=x((function(e,i){e===this._ticket&&(d.setContent(i,h,t),this._updatePosition(t,a,n,r,d,o,s))}),this);this._ticket=i,c=u(o,i,p)}d.setContent(c,h,t),d.show(t),this._updatePosition(t,a,n,r,d,o,s)}},_updatePosition:function(t,e,o,i,r,a,s){var l=this._api.getWidth(),h=this._api.getHeight();e=e||t.get("position");var d=r.getSize(),u=t.get("align"),p=t.get("verticalAlign"),f=s&&s.getBoundingRect().clone();if(s&&f.applyTransform(s.transform),"function"===typeof e&&(e=e([o,i],a,r.el,f,{viewSize:[l,h],contentSize:d.slice()})),n.isArray(e))o=w(e[0],l),i=w(e[1],h);else if(n.isObject(e)){e.width=d[0],e.height=d[1];var g=c.getLayoutRect(e,{width:l,height:h});o=g.x,i=g.y,u=null,p=null}else if("string"===typeof e&&s){var m=A(e,f,d);o=m[0],i=m[1]}else{m=S(o,i,r,l,h,u?null:20,p?null:20);o=m[0],i=m[1]}if(u&&(o-=I(u)?d[0]/2:"right"===u?d[0]:0),p&&(i-=I(p)?d[1]/2:"bottom"===p?d[1]:0),t.get("confine")){m=k(o,i,r,l,h);o=m[0],i=m[1]}r.moveTo(o,i)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,o=!!e&&e.length===t.length;return o&&_(e,(function(e,i){var n=e.dataByAxis||{},r=t[i]||{},a=r.dataByAxis||[];o&=n.length===a.length,o&&_(n,(function(t,e){var i=a[e]||{},n=t.seriesDataIndices||[],r=i.seriesDataIndices||[];o&=t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&n.length===r.length,o&&_(n,(function(t,e){var i=r[e];o&=t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex}))}))})),this._lastDataByCoordSys=t,!!o},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){r.node||(this._tooltipContent.dispose(),f.unregister("itemTooltip",e))}});function C(t){var e=t.pop();while(t.length){var o=t.pop();o&&(p.isInstance(o)&&(o=o.get("tooltip",!0)),"string"===typeof o&&(o={formatter:o}),e=new p(o,e,e.ecModel))}return e}function T(t,e){return t.dispatchAction||n.bind(e.dispatchAction,e)}function S(t,e,o,i,n,r,a){var s=o.getOuterSize(),l=s.width,h=s.height;return null!=r&&(t+l+r>i?t-=l+r:t+=r),null!=a&&(e+h+a>n?e-=h+a:e+=a),[t,e]}function k(t,e,o,i,n){var r=o.getOuterSize(),a=r.width,s=r.height;return t=Math.min(t+a,i)-a,e=Math.min(e+s,n)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function A(t,e,o){var i=o[0],n=o[1],r=5,a=0,s=0,l=e.width,h=e.height;switch(t){case"inside":a=e.x+l/2-i/2,s=e.y+h/2-n/2;break;case"top":a=e.x+l/2-i/2,s=e.y-n-r;break;case"bottom":a=e.x+l/2-i/2,s=e.y+h+r;break;case"left":a=e.x-i-r,s=e.y+h/2-n/2;break;case"right":a=e.x+l+r,s=e.y+h/2-n/2}return[a,s]}function I(t){return"center"===t||"middle"===t}t.exports=M}}]);
  2. //# sourceMappingURL=chunk-vendors-8b27237c.ba07e88c.js.map