chunk-vendors-69403744.135b0fce.js 16 KB

12
  1. (self["webpackChunkapp"]=self["webpackChunkapp"]||[]).push([[5640],{79093:function(e,t,n){var i=n(33051),a=n(85669),r=a.parsePercent,o=n(99936),s=o.isDimensionStacked,u=n(95682),c="__ec_stack_",h=.5,d="undefined"!==typeof Float32Array?Float32Array:Array;function p(e){return e.get("stack")||c+e.seriesIndex}function l(e){return e.dim+e.index}function f(e){var t=[],n=e.axis,a="axis0";if("category"===n.type){for(var r=n.getBandWidth(),o=0;o<e.count;o++)t.push(i.defaults({bandWidth:r,axisKey:a,stackId:c+o},e));var s=v(t),u=[];for(o=0;o<e.count;o++){var h=s[a][c+o];h.offsetCenter=h.offset+h.width/2,u.push(h)}return u}}function m(e,t){var n=[];return t.eachSeriesByType(e,(function(e){w(e)&&!S(e)&&n.push(e)})),n}function g(e){var t={};i.each(e,(function(e){var n=e.coordinateSystem,i=n.getBaseAxis();if("time"===i.type||"value"===i.type)for(var a=e.getData(),r=i.dim+"_"+i.index,o=a.mapDimension(i.dim),s=0,u=a.count();s<u;++s){var c=a.get(o,s);t[r]?t[r].push(c):t[r]=[c]}}));var n=[];for(var a in t)if(t.hasOwnProperty(a)){var r=t[a];if(r){r.sort((function(e,t){return e-t}));for(var o=null,s=1;s<r.length;++s){var u=r[s]-r[s-1];u>0&&(o=null===o?u:Math.min(o,u))}n[a]=o}}return n}function y(e){var t=g(e),n=[];return i.each(e,(function(e){var i,a=e.coordinateSystem,o=a.getBaseAxis(),s=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var u=o.dim+"_"+o.index,c=t[u],h=Math.abs(s[1]-s[0]),d=o.scale.getExtent(),f=Math.abs(d[1]-d[0]);i=c?h/f*c:h}else{var m=e.getData();i=Math.abs(s[1]-s[0])/m.count()}var g=r(e.get("barWidth"),i),y=r(e.get("barMaxWidth"),i),v=r(e.get("barMinWidth")||1,i),x=e.get("barGap"),M=e.get("barCategoryGap");n.push({bandWidth:i,barWidth:g,barMaxWidth:y,barMinWidth:v,barGap:x,barCategoryGap:M,axisKey:l(o),stackId:p(e)})})),v(n)}function v(e){var t={};i.each(e,(function(e,n){var i=e.axisKey,a=e.bandWidth,r=t[i]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},o=r.stacks;t[i]=r;var s=e.stackId;o[s]||r.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var u=e.barWidth;u&&!o[s].width&&(o[s].width=u,u=Math.min(r.remainedWidth,u),r.remainedWidth-=u);var c=e.barMaxWidth;c&&(o[s].maxWidth=c);var h=e.barMinWidth;h&&(o[s].minWidth=h);var d=e.barGap;null!=d&&(r.gap=d);var p=e.barCategoryGap;null!=p&&(r.categoryGap=p)}));var n={};return i.each(t,(function(e,t){n[t]={};var a=e.stacks,o=e.bandWidth,s=r(e.categoryGap,o),u=r(e.gap,1),c=e.remainedWidth,h=e.autoWidthCount,d=(c-s)/(h+(h-1)*u);d=Math.max(d,0),i.each(a,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){i=e.width;t&&(i=Math.min(i,t)),n&&(i=Math.max(i,n)),e.width=i,c-=i+u*i,h--}else{var i=d;t&&t<i&&(i=Math.min(t,c)),n&&n>i&&(i=n),i!==d&&(e.width=i,c-=i+u*i,h--)}})),d=(c-s)/(h+(h-1)*u),d=Math.max(d,0);var p,l=0;i.each(a,(function(e,t){e.width||(e.width=d),p=e,l+=e.width*(1+u)})),p&&(l-=p.width*u);var f=-l/2;i.each(a,(function(e,i){n[t][i]=n[t][i]||{bandWidth:o,offset:f,width:e.width},f+=e.width*(1+u)}))})),n}function x(e,t,n){if(e&&t){var i=e[l(t)];return null!=i&&null!=n&&(i=i[p(n)]),i}}function M(e,t){var n=m(e,t),a=y(n),r={},o={};i.each(n,(function(e){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),u=p(e),c=a[l(i)][u],h=c.offset,d=c.width,f=n.getOtherAxis(i),m=e.get("barMinHeight")||0;r[u]=r[u]||[],o[u]=o[u]||[],t.setLayout({bandWidth:c.bandWidth,offset:h,size:d});for(var g=t.mapDimension(f.dim),y=t.mapDimension(i.dim),v=s(t,g),x=f.isHorizontal(),M=W(i,f,v),b=0,w=t.count();b<w;b++){var S,T,_,I,C=t.get(g,b),O=t.get(y,b),k=C>=0?"p":"n",A=M;if(v&&(r[u][O]||(r[u][O]={p:M,n:M}),A=r[u][O][k]),x){var D=n.dataToPoint([C,O]);S=A,T=D[1]+h,_=D[0]-M,I=d,Math.abs(_)<m&&(_=(_<0?-1:1)*m),isNaN(_)||v&&(r[u][O][k]+=_)}else{D=n.dataToPoint([O,C]);S=D[0]+h,T=A,_=d,I=D[1]-M,Math.abs(I)<m&&(I=(I<=0?-1:1)*m),isNaN(I)||v&&(r[u][O][k]+=I)}t.setItemLayout(b,{x:S,y:T,width:_,height:I})}}),this)}var b={seriesType:"bar",plan:u(),reset:function(e){if(w(e)&&S(e)){var t=e.getData(),n=e.coordinateSystem,i=n.grid.getRect(),a=n.getBaseAxis(),r=n.getOtherAxis(a),o=t.mapDimension(r.dim),s=t.mapDimension(a.dim),u=r.isHorizontal(),c=u?0:1,p=x(y([e]),a,e).width;return p>h||(p=h),{progress:l}}function l(e,t){var h,l=e.count,f=new d(2*l),m=new d(2*l),g=new d(l),y=[],v=[],x=0,M=0;while(null!=(h=e.next()))v[c]=t.get(o,h),v[1-c]=t.get(s,h),y=n.dataToPoint(v,null,y),m[x]=u?i.x+i.width:y[0],f[x++]=y[0],m[x]=u?y[1]:i.y+i.height,f[x++]=y[1],g[M++]=h;t.setLayout({largePoints:f,largeDataIndices:g,largeBackgroundPoints:m,barWidth:p,valueAxisStart:W(a,r,!1),backgroundStart:u?i.x:i.y,valueAxisHorizontal:u})}}};function w(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function S(e){return e.pipelineContext&&e.pipelineContext.large}function W(e,t,n){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}t.getLayoutOnAxis=f,t.prepareLayoutBarSeries=m,t.makeColumnLayout=y,t.retrieveColumnLayout=x,t.layout=M,t.largeLayout=b},21709:function(e,t,n){var i=n(33051),a=n(85669),r=a.parsePercent,o=n(99936),s=o.isDimensionStacked;function u(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function c(e,t){return t.dim+e.model.componentIndex}function h(e,t,n){var a={},r=d(i.filter(t.getSeriesByType(e),(function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type})));t.eachSeriesByType(e,(function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),o=c(n,i),h=u(e),d=r[o][h],p=d.offset,l=d.width,f=n.getOtherAxis(i),m=e.coordinateSystem.cx,g=e.coordinateSystem.cy,y=e.get("barMinHeight")||0,v=e.get("barMinAngle")||0;a[h]=a[h]||[];for(var x=t.mapDimension(f.dim),M=t.mapDimension(i.dim),b=s(t,x),w="radius"!==i.dim||!e.get("roundCap",!0),S=f.getExtent()[0],W=0,T=t.count();W<T;W++){var _,I,C,O,k=t.get(x,W),A=t.get(M,W),D=k>=0?"p":"n",N=S;if(b&&(a[h][A]||(a[h][A]={p:S,n:S}),N=a[h][A][D]),"radius"===f.dim){var B=f.dataToRadius(k)-S,z=i.dataToAngle(A);Math.abs(B)<y&&(B=(B<0?-1:1)*y),_=N,I=N+B,C=z-p,O=C-l,b&&(a[h][A][D]=I)}else{var P=f.dataToAngle(k,w)-S,G=i.dataToRadius(A);Math.abs(P)<v&&(P=(P<0?-1:1)*v),_=G+p,I=_+l,C=N,O=N+P,b&&(a[h][A][D]=O)}t.setItemLayout(W,{cx:m,cy:g,r0:_,r:I,startAngle:-C*Math.PI/180,endAngle:-O*Math.PI/180})}}}),this)}function d(e,t){var n={};i.each(e,(function(e,t){var i=e.getData(),a=e.coordinateSystem,o=a.getBaseAxis(),s=c(a,o),h=o.getExtent(),d="category"===o.type?o.getBandWidth():Math.abs(h[1]-h[0])/i.count(),p=n[s]||{bandWidth:d,remainedWidth:d,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},l=p.stacks;n[s]=p;var f=u(e);l[f]||p.autoWidthCount++,l[f]=l[f]||{width:0,maxWidth:0};var m=r(e.get("barWidth"),d),g=r(e.get("barMaxWidth"),d),y=e.get("barGap"),v=e.get("barCategoryGap");m&&!l[f].width&&(m=Math.min(p.remainedWidth,m),l[f].width=m,p.remainedWidth-=m),g&&(l[f].maxWidth=g),null!=y&&(p.gap=y),null!=v&&(p.categoryGap=v)}));var a={};return i.each(n,(function(e,t){a[t]={};var n=e.stacks,o=e.bandWidth,s=r(e.categoryGap,o),u=r(e.gap,1),c=e.remainedWidth,h=e.autoWidthCount,d=(c-s)/(h+(h-1)*u);d=Math.max(d,0),i.each(n,(function(e,t){var n=e.maxWidth;n&&n<d&&(n=Math.min(n,c),e.width&&(n=Math.min(n,e.width)),c-=n,e.width=n,h--)})),d=(c-s)/(h+(h-1)*u),d=Math.max(d,0);var p,l=0;i.each(n,(function(e,t){e.width||(e.width=d),p=e,l+=e.width*(1+u)})),p&&(l-=p.width*u);var f=-l/2;i.each(n,(function(e,n){a[t][n]=a[t][n]||{offset:f,width:e.width},f+=e.width*(1+u)}))})),a}var p=h;e.exports=p},21149:function(e,t,n){var i=n(33051),a=i.map,r=n(95682),o=n(99936),s=o.isDimensionStacked;function u(e){return{seriesType:e,plan:r(),reset:function(e){var t=e.getData(),n=e.coordinateSystem,i=e.pipelineContext,r=i.large;if(n){var o=a(n.dimensions,(function(e){return t.mapDimension(e)})).slice(0,2),u=o.length,c=t.getCalculationInfo("stackResultDimension");return s(t,o[0])&&(o[0]=c),s(t,o[1])&&(o[1]=c),u&&{progress:h}}function h(e,t){for(var i=e.end-e.start,a=r&&new Float32Array(i*u),s=e.start,c=0,h=[],d=[];s<e.end;s++){var p;if(1===u){var l=t.get(o[0],s);p=!isNaN(l)&&n.dataToPoint(l,null,d)}else{l=h[0]=t.get(o[0],s);var f=h[1]=t.get(o[1],s);p=!isNaN(l)&&!isNaN(f)&&n.dataToPoint(h,null,d)}r?(a[c++]=p?p[0]:NaN,a[c++]=p?p[1]:NaN):t.setItemLayout(s,p&&p.slice()||[NaN,NaN])}r&&t.setLayout("symbolPoints",a)}}}}e.exports=u},23430:function(e,t,n){var i=n(33051),a=n(51177),r=n(80423),o=Math.PI;function s(e,t){t=t||{},i.defaults(t,{text:"loading",textColor:"#000",fontSize:"12px",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#c23531",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new a.Group,s=new a.Rect({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(s);var u=t.fontSize+" sans-serif",c=new a.Rect({style:{fill:"none",text:t.text,font:u,textPosition:"right",textDistance:10,textFill:t.textColor},zlevel:t.zlevel,z:10001});if(n.add(c),t.showSpinner){var h=new a.Arc({shape:{startAngle:-o/2,endAngle:-o/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001});h.animateShape(!0).when(1e3,{endAngle:3*o/2}).start("circularInOut"),h.animateShape(!0).when(1e3,{startAngle:3*o/2}).delay(300).start("circularInOut"),n.add(h)}return n.resize=function(){var n=r.getWidth(t.text,u),i=t.showSpinner?t.spinnerRadius:0,a=(e.getWidth()-2*i-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner?0:n/2),o=e.getHeight()/2;t.showSpinner&&h.setShape({cx:a,cy:o}),c.setShape({x:a-i,y:o-i,width:2*i,height:2*i}),s.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}e.exports=s},98071:function(e,t,n){var i=n(33051),a=n(4272),r=n(42151),o=n(34251),s=o.enableClassManagement,u=o.parseClassType,c=n(32234),h=c.makeInner,d=n(76172),p=n(83047),l=h(),f=a.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(e,t,n,i){a.call(this,e,t,n,i),this.uid=r.getUID("ec_cpt_model")},init:function(e,t,n,i){this.mergeDefaultAndTheme(e,n)},mergeDefaultAndTheme:function(e,t){var n=this.layoutMode,a=n?d.getLayoutParams(e):{},r=t.getTheme();i.merge(e,r.get(this.mainType)),i.merge(e,this.getDefaultOption()),n&&d.mergeLayoutParam(e,a,n)},mergeOption:function(e,t){i.merge(this.option,e,!0);var n=this.layoutMode;n&&d.mergeLayoutParam(this.option,e,n)},optionUpdated:function(e,t){},getDefaultOption:function(){var e=l(this);if(!e.defaultOption){var t=[],n=this.constructor;while(n){var a=n.prototype.defaultOption;a&&t.push(a),n=n.superClass}for(var r={},o=t.length-1;o>=0;o--)r=i.merge(r,t[o],!0);e.defaultOption=r}return e.defaultOption},getReferringComponents:function(e){return this.ecModel.queryComponents({mainType:e,index:this.get(e+"Index",!0),id:this.get(e+"Id",!0)})}});function m(e){var t=[];return i.each(f.getClassesByMainType(e),(function(e){t=t.concat(e.prototype.dependencies||[])})),t=i.map(t,(function(e){return u(e).main})),"dataset"!==e&&i.indexOf(t,"dataset")<=0&&t.unshift("dataset"),t}s(f,{registerWhenExtend:!0}),r.enableSubTypeDefaulter(f),r.enableTopologicalTravel(f,m),i.mixin(f,p);var g=f;e.exports=g},17260:function(e,t,n){var i=n(38175),a=(i.__DEV__,n(33051)),r=a.each,o=a.filter,s=a.map,u=a.isArray,c=a.indexOf,h=a.isObject,d=a.isString,p=a.createHashMap,l=a.assert,f=a.clone,m=a.merge,g=a.extend,y=a.mixin,v=n(32234),x=n(4272),M=n(98071),b=n(22577),w=n(23895),S=n(61772),W=S.resetSourceDefaulter,T="\0_ec_inner",_=x.extend({init:function(e,t,n,i){n=n||{},this.option=null,this._theme=new x(n),this._optionManager=i},setOption:function(e,t){l(!(T in e),"please use chart.getOption()"),this._optionManager.setOption(e,t),this.resetOption(null)},resetOption:function(e){var t=!1,n=this._optionManager;if(!e||"recreate"===e){var i=n.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this.mergeOption(i)):O.call(this,i),t=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var a=n.getTimelineOption(this);a&&(this.mergeOption(a),t=!0)}if(!e||"recreate"===e||"media"===e){var o=n.getMediaOption(this,this._api);o.length&&r(o,(function(e){this.mergeOption(e,t=!0)}),this)}return t},mergeOption:function(e){var t=this.option,n=this._componentsMap,i=[];function a(i,a){var o=v.normalizeToArray(e[i]),s=v.mappingToExists(n.get(i),o);v.makeIdAndName(s),r(s,(function(e,t){var n=e.option;h(n)&&(e.keyInfo.mainType=i,e.keyInfo.subType=A(i,n,e.exist))}));var u=k(n,a);t[i]=[],n.set(i,[]),r(s,(function(e,a){var r=e.exist,o=e.option;if(l(h(o)||r,"Empty component definition"),o){var s=M.getClass(i,e.keyInfo.subType,!0);if(r&&r.constructor===s)r.name=e.keyInfo.name,r.mergeOption(o,this),r.optionUpdated(o,!1);else{var c=g({dependentModels:u,componentIndex:a},e.keyInfo);r=new s(o,this,this,c),g(r,c),r.init(o,this,this,c),r.optionUpdated(null,!0)}}else r.mergeOption({},this),r.optionUpdated({},!1);n.get(i)[a]=r,t[i][a]=r.option}),this),"series"===i&&D(this,n.get("series"))}W(this),r(e,(function(e,n){null!=e&&(M.hasClass(n)?n&&i.push(n):t[n]=null==t[n]?f(e):m(t[n],e,!0))})),M.topologicalTravel(i,M.getAllClassMainTypes(),a,this),this._seriesIndicesMap=p(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var e=f(this.option);return r(e,(function(t,n){if(M.hasClass(n)){t=v.normalizeToArray(t);for(var i=t.length-1;i>=0;i--)v.isIdInner(t[i])&&t.splice(i,1);e[n]=t}})),delete e[T],e},getTheme:function(){return this._theme},getComponent:function(e,t){var n=this._componentsMap.get(e);if(n)return n[t||0]},queryComponents:function(e){var t=e.mainType;if(!t)return[];var n,i=e.index,a=e.id,r=e.name,h=this._componentsMap.get(t);if(!h||!h.length)return[];if(null!=i)u(i)||(i=[i]),n=o(s(i,(function(e){return h[e]})),(function(e){return!!e}));else if(null!=a){var d=u(a);n=o(h,(function(e){return d&&c(a,e.id)>=0||!d&&e.id===a}))}else if(null!=r){var p=u(r);n=o(h,(function(e){return p&&c(r,e.name)>=0||!p&&e.name===r}))}else n=h.slice();return N(n,e)},findComponents:function(e){var t=e.query,n=e.mainType,i=r(t),a=i?this.queryComponents(i):this._componentsMap.get(n);return s(N(a,e));function r(e){var t=n+"Index",i=n+"Id",a=n+"Name";return!e||null==e[t]&&null==e[i]&&null==e[a]?null:{mainType:n,index:e[t],id:e[i],name:e[a]}}function s(t){return e.filter?o(t,e.filter):t}},eachComponent:function(e,t,n){var i=this._componentsMap;if("function"===typeof e)n=t,t=e,i.each((function(e,i){r(e,(function(e,a){t.call(n,i,e,a)}))}));else if(d(e))r(i.get(e),t,n);else if(h(e)){var a=this.findComponents(e);r(a,t,n)}},getSeriesByName:function(e){var t=this._componentsMap.get("series");return o(t,(function(t){return t.name===e}))},getSeriesByIndex:function(e){return this._componentsMap.get("series")[e]},getSeriesByType:function(e){var t=this._componentsMap.get("series");return o(t,(function(t){return t.subType===e}))},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(e,t){B(this),r(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];e.call(t,i,n)}),this)},eachRawSeries:function(e,t){r(this._componentsMap.get("series"),e,t)},eachSeriesByType:function(e,t,n){B(this),r(this._seriesIndices,(function(i){var a=this._componentsMap.get("series")[i];a.subType===e&&t.call(n,a,i)}),this)},eachRawSeriesByType:function(e,t,n){return r(this.getSeriesByType(e),t,n)},isSeriesFiltered:function(e){return B(this),null==this._seriesIndicesMap.get(e.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(e,t){B(this);var n=o(this._componentsMap.get("series"),e,t);D(this,n)},restoreData:function(e){var t=this._componentsMap;D(this,t.get("series"));var n=[];t.each((function(e,t){n.push(t)})),M.topologicalTravel(n,M.getAllClassMainTypes(),(function(n,i){r(t.get(n),(function(t){("series"!==n||!I(t,e))&&t.restoreData()}))}))}});function I(e,t){if(t){var n=t.seiresIndex,i=t.seriesId,a=t.seriesName;return null!=n&&e.componentIndex!==n||null!=i&&e.id!==i||null!=a&&e.name!==a}}function C(e,t){var n=e.color&&!e.colorLayer;r(t,(function(t,i){"colorLayer"===i&&n||M.hasClass(i)||("object"===typeof t?e[i]=e[i]?m(e[i],t,!1):f(t):null==e[i]&&(e[i]=t))}))}function O(e){this.option={},this.option[T]=1,this._componentsMap=p({series:[]}),this._seriesIndices,this._seriesIndicesMap,C(e,this._theme.option),m(e,b,!1),this.mergeOption(e)}function k(e,t){u(t)||(t=t?[t]:[]);var n={};return r(t,(function(t){n[t]=(e.get(t)||[]).slice()})),n}function A(e,t,n){var i=t.type?t.type:n?n.subType:M.determineSubType(e,t);return i}function D(e,t){e._seriesIndicesMap=p(e._seriesIndices=s(t,(function(e){return e.componentIndex}))||[])}function N(e,t){return t.hasOwnProperty("subType")?o(e,(function(e){return e.subType===t.subType})):e}function B(e){}y(_,w);var z=_;e.exports=z}}]);
  2. //# sourceMappingURL=chunk-vendors-69403744.135b0fce.js.map