chunk-vendors-55facd4b.24d638cc.js 15 KB

12
  1. (self["webpackChunkapp"]=self["webpackChunkapp"]||[]).push([[2197],{70141:function(t,e,n){var i=n(33051),a=i.each,r=i.isArray,s=i.isObject,o=n(4583),l=n(32234),c=l.normalizeToArray;function u(t,e){e=e.split(",");for(var n=t,i=0;i<e.length;i++)if(n=n&&n[e[i]],null==n)break;return n}function h(t,e,n,i){e=e.split(",");for(var a,r=t,s=0;s<e.length-1;s++)a=e[s],null==r[a]&&(r[a]={}),r=r[a];(i||null==r[e[s]])&&(r[e[s]]=n)}function f(t){a(p,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var p=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],v=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];function m(t,e){o(t,e),t.series=c(t.series),a(t.series,(function(t){if(s(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e)null!=t.clockWise&&(t.clockwise=t.clockWise);else if("gauge"===e){var n=u(t,"pointer.color");null!=n&&h(t,"itemStyle.color",n)}f(t)}})),t.dataRange&&(t.visualMap=t.dataRange),a(v,(function(e){var n=t[e];n&&(r(n)||(n=[n]),a(n,(function(t){f(t)})))}))}t.exports=m},4583:function(t,e,n){var i=n(33051),a=n(32234),r=i.each,s=i.isObject,o=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function l(t){var e=t&&t.itemStyle;if(e)for(var n=0,a=o.length;n<a;n++){var r=o[n],s=e.normal,l=e.emphasis;s&&s[r]&&(t[r]=t[r]||{},t[r].normal?i.merge(t[r].normal,s[r]):t[r].normal=s[r],s[r]=null),l&&l[r]&&(t[r]=t[r]||{},t[r].emphasis?i.merge(t[r].emphasis,l[r]):t[r].emphasis=l[r],l[r]=null)}}function c(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var a=t[e].normal,r=t[e].emphasis;a&&(n?(t[e].normal=t[e].emphasis=null,i.defaults(t[e],a)):t[e]=a),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r)}}function u(t){c(t,"itemStyle"),c(t,"lineStyle"),c(t,"areaStyle"),c(t,"label"),c(t,"labelLine"),c(t,"upperLabel"),c(t,"edgeLabel")}function h(t,e){var n=s(t)&&t[e],i=s(n)&&n.textStyle;if(i)for(var r=0,o=a.TEXT_STYLE_OPTIONS.length;r<o;r++){e=a.TEXT_STYLE_OPTIONS[r];i.hasOwnProperty(e)&&(n[e]=i[e])}}function f(t){t&&(u(t),h(t,"label"),t.emphasis&&h(t.emphasis,"label"))}function p(t){if(s(t)){l(t),u(t),h(t,"label"),h(t,"upperLabel"),h(t,"edgeLabel"),t.emphasis&&(h(t.emphasis,"label"),h(t.emphasis,"upperLabel"),h(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(l(e),f(e));var n=t.markLine;n&&(l(n),f(n));var a=t.markArea;a&&f(a);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!i.isTypedArray(o))for(var p=0;p<o.length;p++)f(o[p]);i.each(t.categories,(function(t){u(t)}))}if(r&&!i.isTypedArray(r))for(p=0;p<r.length;p++)f(r[p]);e=t.markPoint;if(e&&e.data){var v=e.data;for(p=0;p<v.length;p++)f(v[p])}n=t.markLine;if(n&&n.data){var m=n.data;for(p=0;p<m.length;p++)i.isArray(m[p])?(f(m[p][0]),f(m[p][1])):f(m[p])}"gauge"===t.type?(h(t,"axisLabel"),h(t,"title"),h(t,"detail")):"treemap"===t.type?(c(t.breadcrumb,"itemStyle"),i.each(t.levels,(function(t){u(t)}))):"tree"===t.type&&u(t.leaves)}}function v(t){return i.isArray(t)?t:t?[t]:[]}function m(t){return(i.isArray(t)?t[0]:t)||{}}function x(t,e){r(v(t.series),(function(t){s(t)&&p(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),r(n,(function(e){r(v(t[e]),(function(t){t&&(h(t,"axisLabel"),h(t.axisPointer,"label"))}))})),r(v(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;h(e,"axisLabel"),h(e&&e.axisPointer,"label")})),r(v(t.calendar),(function(t){c(t,"itemStyle"),h(t,"dayLabel"),h(t,"monthLabel"),h(t,"yearLabel")})),r(v(t.radar),(function(t){h(t,"name")})),r(v(t.geo),(function(t){s(t)&&(f(t),r(v(t.regions),(function(t){f(t)})))})),r(v(t.timeline),(function(t){f(t),c(t,"label"),c(t,"itemStyle"),c(t,"controlStyle",!0);var e=t.data;i.isArray(e)&&i.each(e,(function(t){i.isObject(t)&&(c(t,"label"),c(t,"itemStyle"))}))})),r(v(t.toolbox),(function(t){c(t,"iconStyle"),r(t.feature,(function(t){c(t,"iconStyle")}))})),h(m(t.axisPointer),"label"),h(m(t.tooltip).axisPointer,"label")}t.exports=x},22528:function(t){function e(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf((function(t){for(var e=i.getName(t),a=0;a<n.length;a++)if(!n[a].isSelected(e))return!1;return!0}))}}}}t.exports=e},64088:function(t){var e={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},n=function(t,e){return Math.round(t.length/2)};function i(t){return{seriesType:t,modifyOutputEnd:!0,reset:function(t,i,a){var r=t.getData(),s=t.get("sampling"),o=t.coordinateSystem;if("cartesian2d"===o.type&&s){var l,c=o.getBaseAxis(),u=o.getOtherAxis(c),h=c.getExtent(),f=h[1]-h[0],p=Math.round(r.count()/f);if(p>1)"string"===typeof s?l=e[s]:"function"===typeof s&&(l=s),l&&t.setData(r.downSample(r.mapDimension(u.dim),1/p,l,n))}}}}t.exports=i},33809:function(t,e,n){var i=n(33051),a=i.createHashMap,r=i.each;function s(t){var e=a();t.eachSeries((function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),a=t.getData(),r={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:t};if(!r.stackedDimension||!r.isStackedByIndex&&!r.stackedByDimension)return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(r)}})),e.each(o)}function o(t){r(t,(function(e,n){var i=[],a=[NaN,NaN],r=[e.stackResultDimension,e.stackedOverDimension],s=e.data,o=e.isStackedByIndex,l=s.map(r,(function(r,l,c){var u,h,f=s.get(e.stackedDimension,c);if(isNaN(f))return a;o?h=s.getRawIndex(c):u=s.get(e.stackedByDimension,c);for(var p=NaN,v=n-1;v>=0;v--){var m=t[v];if(o||(h=m.data.rawIndexOf(m.stackedByDimension,u)),h>=0){var x=m.data.getByRawIndex(m.stackResultDimension,h);if(f>=0&&x>0||f<=0&&x<0){f+=x,p=x;break}}}return i[0]=f,i[1]=p,i}));s.hostModel.setData(l),e.data=l}))}t.exports=s},70103:function(t,e,n){var i=n(85669),a=n(78988),r=n(60379),s=n(65021),o=i.round,l=r.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[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]),l.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=s.getIntervalPrecision(t)},getTicks:function(t){var e=this._interval,n=this._extent,i=this._niceExtent,a=this._intervalPrecision,r=[];if(!e)return r;var s=1e4;n[0]<i[0]&&(t?r.push(o(i[0]-e,a)):r.push(n[0]));var l=i[0];while(l<=i[1]){if(r.push(l),l=o(l+e,a),l===r[r.length-1])break;if(r.length>s)return[]}var c=r.length?r[r.length-1]:i[1];return n[1]>c&&(t?r.push(o(c+e,a)):r.push(n[1])),r},getMinorTicks:function(t){for(var e=this.getTicks(!0),n=[],a=this.getExtent(),r=1;r<e.length;r++){var s=e[r],o=e[r-1],l=0,c=[],u=s-o,h=u/t;while(l<t-1){var f=i.round(o+(l+1)*h);f>a[0]&&f<a[1]&&c.push(f),l++}n.push(c)}return n},getLabel:function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=i.getPrecisionSafe(t)||0:"auto"===n&&(n=this._intervalPrecision),t=o(t,n,!0),a.addCommas(t)},niceTicks:function(t,e,n){t=t||5;var i=this._extent,a=i[1]-i[0];if(isFinite(a)){a<0&&(a=-a,i.reverse());var r=s.intervalScaleNiceTicks(i,t,e,n);this._intervalPrecision=r.intervalPrecision,this._interval=r.interval,this._niceExtent=r.niceTickExtent}},niceExtent:function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=e[0];t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var a=this._interval;t.fixMin||(e[0]=o(Math.floor(e[0]/a)*a)),t.fixMax||(e[1]=o(Math.ceil(e[1]/a)*a))}});l.create=function(){return new l};var c=l;t.exports=c},76304:function(t,e,n){var i=n(33051),a=n(60379),r=n(85669),s=n(70103),o=a.prototype,l=s.prototype,c=r.getPrecisionSafe,u=r.round,h=Math.floor,f=Math.ceil,p=Math.pow,v=Math.log,m=a.extend({type:"log",base:10,$constructor:function(){a.apply(this,arguments),this._originalScale=new s},getTicks:function(t){var e=this._originalScale,n=this._extent,a=e.getExtent();return i.map(l.getTicks.call(this,t),(function(t){var i=r.round(p(this.base,t));return i=t===n[0]&&e.__fixMin?x(i,a[0]):i,i=t===n[1]&&e.__fixMax?x(i,a[1]):i,i}),this)},getMinorTicks:l.getMinorTicks,getLabel:l.getLabel,scale:function(t){return t=o.scale.call(this,t),p(this.base,t)},setExtent:function(t,e){var n=this.base;t=v(t)/v(n),e=v(e)/v(n),l.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=o.getExtent.call(this);e[0]=p(t,e[0]),e[1]=p(t,e[1]);var n=this._originalScale,i=n.getExtent();return n.__fixMin&&(e[0]=x(e[0],i[0])),n.__fixMax&&(e[1]=x(e[1],i[1])),e},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=v(t[0])/v(e),t[1]=v(t[1])/v(e),o.unionExtent.call(this,t)},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},niceTicks:function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i=r.quantity(n),a=t/n*i;a<=.5&&(i*=10);while(!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0)i*=10;var s=[r.round(f(e[0]/i)*i),r.round(h(e[1]/i)*i)];this._interval=i,this._niceExtent=s}},niceExtent:function(t){l.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});function x(t,e){return u(t,c(e))}i.each(["contain","normalize"],(function(t){m.prototype[t]=function(e){return e=v(e)/v(this.base),o[t].call(this,e)}})),m.create=function(){return new m};var d=m;t.exports=d},85043:function(t,e,n){var i=n(33051),a=n(60379),r=n(51401),s=a.prototype,o=a.extend({type:"ordinal",init:function(t,e){t&&!i.isArray(t)||(t=new r({categories:t})),this._ordinalMeta=t,this._extent=e||[0,t.categories.length-1]},parse:function(t){return"string"===typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},contain:function(t){return t=this.parse(t),s.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return s.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(s.scale.call(this,t))},getTicks:function(){var t=[],e=this._extent,n=e[0];while(n<=e[1])t.push(n),n++;return t},getLabel:function(t){if(!this.isBlank())return this._ordinalMeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:i.noop,niceExtent:i.noop});o.create=function(){return new o};var l=o;t.exports=l},60379:function(t,e,n){var i=n(34251);function a(t){this._setting=t||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}a.prototype.parse=function(t){return t},a.prototype.getSetting=function(t){return this._setting[t]},a.prototype.contain=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},a.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},a.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},a.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},a.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},a.prototype.getExtent=function(){return this._extent.slice()},a.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},a.prototype.isBlank=function(){return this._isBlank},a.prototype.setBlank=function(t){this._isBlank=t},a.prototype.getLabel=null,i.enableClassExtend(a),i.enableClassManagement(a,{registerWhenExtend:!0});var r=a;t.exports=r},61618:function(t,e,n){var i=n(33051),a=n(85669),r=n(78988),s=n(65021),o=n(70103),l=o.prototype,c=Math.ceil,u=Math.floor,h=1e3,f=60*h,p=60*f,v=24*p,m=function(t,e,n,i){while(n<i){var a=n+i>>>1;t[a][1]<e?n=a+1:i=a}return n},x=o.extend({type:"time",getLabel:function(t){var e=this._stepLvl,n=new Date(t);return r.formatTime(e[0],n,this.getSetting("useUTC"))},niceExtent:function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=v,e[1]+=v),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-v}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=a.round(u(e[0]/i)*i)),t.fixMax||(e[1]=a.round(c(e[1]/i)*i))},niceTicks:function(t,e,n){t=t||10;var i=this._extent,r=i[1]-i[0],o=r/t;null!=e&&o<e&&(o=e),null!=n&&o>n&&(o=n);var l=d.length,h=m(d,o,0,l),f=d[Math.min(h,l-1)],p=f[1];if("year"===f[0]){var v=r/p,x=a.nice(v/t,!0);p*=x}var g=this.getSetting("useUTC")?0:60*new Date(+i[0]||+i[1]).getTimezoneOffset()*1e3,y=[Math.round(c((i[0]-g)/p)*p+g),Math.round(u((i[1]-g)/p)*p+g)];s.fixExtent(y,i),this._stepLvl=f,this._interval=p,this._niceExtent=y},parse:function(t){return+a.parseDate(t)}});i.each(["contain","normalize"],(function(t){x.prototype[t]=function(e){return l[t].call(this,this.parse(e))}}));var d=[["hh:mm:ss",h],["hh:mm:ss",5*h],["hh:mm:ss",10*h],["hh:mm:ss",15*h],["hh:mm:ss",30*h],["hh:mm\nMM-dd",f],["hh:mm\nMM-dd",5*f],["hh:mm\nMM-dd",10*f],["hh:mm\nMM-dd",15*f],["hh:mm\nMM-dd",30*f],["hh:mm\nMM-dd",p],["hh:mm\nMM-dd",2*p],["hh:mm\nMM-dd",6*p],["hh:mm\nMM-dd",12*p],["MM-dd\nyyyy",v],["MM-dd\nyyyy",2*v],["MM-dd\nyyyy",3*v],["MM-dd\nyyyy",4*v],["MM-dd\nyyyy",5*v],["MM-dd\nyyyy",6*v],["week",7*v],["MM-dd\nyyyy",10*v],["week",14*v],["week",21*v],["month",31*v],["week",42*v],["month",62*v],["week",70*v],["quarter",95*v],["month",31*v*4],["month",31*v*5],["half-year",380*v/2],["month",31*v*8],["month",31*v*10],["year",380*v]];x.create=function(t){return new x({useUTC:t.ecModel.get("useUTC")})};var g=x;t.exports=g},65021:function(t,e,n){var i=n(85669),a=i.round;function r(t,e,n,r){var o={},c=t[1]-t[0],u=o.interval=i.nice(c/e,!0);null!=n&&u<n&&(u=o.interval=n),null!=r&&u>r&&(u=o.interval=r);var h=o.intervalPrecision=s(u),f=o.niceTickExtent=[a(Math.ceil(t[0]/u)*u,h),a(Math.floor(t[1]/u)*u,h)];return l(f,t),o}function s(t){return i.getPrecisionSafe(t)+2}function o(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function l(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),o(t,0,e),o(t,1,e),t[0]>t[1]&&(t[0]=t[1])}e.intervalScaleNiceTicks=r,e.getIntervalPrecision=s,e.fixExtent=l}}]);
  2. //# sourceMappingURL=chunk-vendors-55facd4b.24d638cc.js.map