chunk-vendors-61174297.6b670c0f.js 14 KB

12
  1. (self["webpackChunkapp"]=self["webpackChunkapp"]||[]).push([[9785],{34380:function(e,n,t){var r=t(33051),a=r.createHashMap,i=r.each,o=r.isString,u=r.defaults,s=r.extend,l=r.isObject,c=r.clone,d=t(32234),f=d.normalizeToArray,m=t(61772),h=m.guessOrdinal,v=m.BE_ORDINAL,_=t(99574),D=t(10381),p=D.OTHER_DIMENSIONS,g=t(80690);function y(e,n,t){_.isInstance(n)||(n=_.seriesDataToSource(n)),t=t||{},e=(e||[]).slice();for(var r=(t.dimsDef||[]).slice(),d=a(),m=a(),D=[],y=R(n,e,r,t.dimCount),C=0;C<y;C++){var S=r[C]=s({},l(r[C])?r[C]:{name:r[C]}),I=S.name,A=D[C]=new g;null!=I&&null==d.get(I)&&(A.name=A.displayName=I,d.set(I,C)),null!=S.type&&(A.type=S.type),null!=S.displayName&&(A.displayName=S.displayName)}var E=t.encodeDef;!E&&t.encodeDefaulter&&(E=t.encodeDefaulter(n,y)),E=a(E),E.each((function(e,n){if(e=f(e).slice(),1===e.length&&!o(e[0])&&e[0]<0)E.set(n,!1);else{var t=E.set(n,[]);i(e,(function(e,r){o(e)&&(e=d.get(e)),null!=e&&e<y&&(t[r]=e,M(D[e],n,r))}))}}));var N=0;function M(e,n,t){null!=p.get(n)?e.otherDims[n]=t:(e.coordDim=n,e.coordDimIndex=t,m.set(n,!0))}i(e,(function(e,n){var t,r,a;if(o(e))t=e,e={};else{t=e.name;var s=e.ordinalMeta;e.ordinalMeta=null,e=c(e),e.ordinalMeta=s,r=e.dimsDef,a=e.otherDims,e.name=e.coordDim=e.coordDimIndex=e.dimsDef=e.otherDims=null}var d=E.get(t);if(!1!==d){d=f(d);if(!d.length)for(var m=0;m<(r&&r.length||1);m++){while(N<D.length&&null!=D[N].coordDim)N++;N<D.length&&d.push(N++)}i(d,(function(n,i){var o=D[n];if(M(u(o,e),t,i),null==o.name&&r){var s=r[i];!l(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}a&&u(o.otherDims,a)}))}}));var T=t.generateCoord,x=t.generateCoordCount,w=null!=x;x=T?x||1:0;for(var k=T||"value",F=0;F<y;F++){A=D[F]=D[F]||new g;var L=A.coordDim;null==L&&(A.coordDim=O(k,m,w),A.coordDimIndex=0,(!T||x<=0)&&(A.isExtraCoord=!0),x--),null==A.name&&(A.name=O(A.coordDim,d)),null!=A.type||h(n,F,A.name)!==v.Must&&(!A.isExtraCoord||null==A.otherDims.itemName&&null==A.otherDims.seriesName)||(A.type="ordinal")}return D}function R(e,n,t,r){var a=Math.max(e.dimensionsDetectCount||1,n.length,t.length,r||0);return i(n,(function(e){var n=e.dimsDef;n&&(a=Math.max(a,n.length))})),a}function O(e,n,t){if(t||null!=n.get(e)){var r=0;while(null!=n.get(e+r))r++;e+=r}return n.set(e,!0),e}var C=y;e.exports=C},55623:function(e,n,t){var r=t(34380);function a(e,n){return n=n||{},r(n.coordDimensions||[],e,{dimsDef:n.dimensionsDefine||e.dimensionsDefine,encodeDef:n.encodeDefine||e.encodeDefine,dimCount:n.dimensionsCount,encodeDefaulter:n.encodeDefaulter,generateCoord:n.generateCoord,generateCoordCount:n.generateCoordCount})}e.exports=a},68540:function(e,n,t){var r=t(38175),a=(r.__DEV__,t(33051)),i=(a.isTypedArray,a.extend),o=(a.assert,a.each),u=a.isObject,s=t(32234),l=s.getDataItemValue,c=s.isDataItemOption,d=t(85669),f=d.parseDate,m=t(99574),h=t(93819),v=h.SOURCE_FORMAT_TYPED_ARRAY,_=h.SOURCE_FORMAT_ARRAY_ROWS,D=h.SOURCE_FORMAT_ORIGINAL,p=h.SOURCE_FORMAT_OBJECT_ROWS;function g(e,n){m.isInstance(e)||(e=m.seriesDataToSource(e)),this._source=e;var t=this._data=e.data,r=e.sourceFormat;r===v&&(this._offset=0,this._dimSize=n,this._data=t);var a=R[r===_?r+"_"+e.seriesLayoutBy:r];i(this,a)}var y=g.prototype;y.pure=!1,y.persistent=!0,y.getSource=function(){return this._source};var R={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(e){return this._data[e+this._source.startIndex]},appendData:S},arrayRows_row:{pure:!0,count:function(){var e=this._data[0];return e?Math.max(0,e.length-this._source.startIndex):0},getItem:function(e){e+=this._source.startIndex;for(var n=[],t=this._data,r=0;r<t.length;r++){var a=t[r];n.push(a?a[e]:null)}return n},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:O,getItem:C,appendData:S},keyedColumns:{pure:!0,count:function(){var e=this._source.dimensionsDefine[0].name,n=this._data[e];return n?n.length:0},getItem:function(e){for(var n=[],t=this._source.dimensionsDefine,r=0;r<t.length;r++){var a=this._data[t[r].name];n.push(a?a[e]:null)}return n},appendData:function(e){var n=this._data;o(e,(function(e,t){for(var r=n[t]||(n[t]=[]),a=0;a<(e||[]).length;a++)r.push(e[a])}))}},original:{count:O,getItem:C,appendData:S},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(e,n){e-=this._offset,n=n||[];for(var t=this._dimSize*e,r=0;r<this._dimSize;r++)n[r]=this._data[t+r];return n},appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}}};function O(){return this._data.length}function C(e){return this._data[e]}function S(e){for(var n=0;n<e.length;n++)this._data.push(e[n])}var I={arrayRows:A,objectRows:function(e,n,t,r){return null!=t?e[r]:e},keyedColumns:A,original:function(e,n,t,r){var a=l(e);return null!=t&&a instanceof Array?a[t]:a},typedArray:A};function A(e,n,t,r){return null!=t?e[t]:e}var E={arrayRows:N,objectRows:function(e,n,t,r){return M(e[n],this._dimensionInfos[n])},keyedColumns:N,original:function(e,n,t,r){var a=e&&(null==e.value?e:e.value);return!this._rawData.pure&&c(e)&&(this.hasItemOption=!0),M(a instanceof Array?a[r]:a,this._dimensionInfos[n])},typedArray:function(e,n,t,r){return e[r]}};function N(e,n,t,r){return M(e[r],this._dimensionInfos[n])}function M(e,n){var t=n&&n.type;if("ordinal"===t){var r=n&&n.ordinalMeta;return r?r.parseAndCollect(e):e}return"time"===t&&"number"!==typeof e&&null!=e&&"-"!==e&&(e=+f(e)),null==e||""===e?NaN:+e}function T(e,n,t){if(e){var r=e.getRawDataItem(n);if(null!=r){var a,i,o=e.getProvider().getSource().sourceFormat,u=e.getDimensionInfo(t);return u&&(a=u.name,i=u.index),I[o](r,n,i,a)}}}function x(e,n,t){if(e){var r=e.getProvider().getSource().sourceFormat;if(r===D||r===p){var a=e.getRawDataItem(n);return r!==D||u(a)||(a=null),a?a[t]:void 0}}}n.DefaultDataProvider=g,n.defaultDimValueGetters=E,n.retrieveRawValue=T,n.retrieveRawAttr=x},99936:function(e,n,t){var r=t(33051),a=r.each,i=r.isString;function o(e,n,t){t=t||{};var r,o,u,s,l=t.byIndex,c=t.stackedCoordDimension,d=!(!e||!e.get("stack"));if(a(n,(function(e,t){i(e)&&(n[t]=e={name:e}),d&&!e.isExtraCoord&&(l||r||!e.ordinalMeta||(r=e),o||"ordinal"===e.type||"time"===e.type||c&&c!==e.coordDim||(o=e))})),!o||l||r||(l=!0),o){u="__\0ecstackresult",s="__\0ecstackedover",r&&(r.createInvertedIndices=!0);var f=o.coordDim,m=o.type,h=0;a(n,(function(e){e.coordDim===f&&h++})),n.push({name:u,coordDim:f,coordDimIndex:h,type:m,isExtraCoord:!0,isCalculationCoord:!0}),h++,n.push({name:s,coordDim:s,coordDimIndex:h,type:m,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:o&&o.name,stackedByDimension:r&&r.name,isStackedByIndex:l,stackedOverDimension:s,stackResultDimension:u}}function u(e,n){return!!n&&n===e.getCalculationInfo("stackedDimension")}function s(e,n){return u(e,n)?e.getCalculationInfo("stackResultDimension"):n}n.enableDataStack=o,n.isDimensionStacked=u,n.getStackedDimension=s},10381:function(e,n,t){var r=t(33051),a=r.each,i=r.createHashMap,o=(r.assert,t(38175)),u=(o.__DEV__,i(["tooltip","label","itemName","itemId","seriesName"]));function s(e){var n={},t=n.encode={},r=i(),o=[],s=[],c=n.userOutput={dimensionNames:e.dimensions.slice(),encode:{}};a(e.dimensions,(function(n){var a=e.getDimensionInfo(n),i=a.coordDim;if(i){var f=a.coordDimIndex;l(t,i)[f]=n,a.isExtraCoord||(r.set(i,1),d(a.type)&&(o[0]=n),l(c.encode,i)[f]=a.index),a.defaultTooltip&&s.push(n)}u.each((function(e,n){var r=l(t,n),i=a.otherDims[n];null!=i&&!1!==i&&(r[i]=a.name)}))}));var f=[],m={};r.each((function(e,n){var r=t[n];m[n]=r[0],f=f.concat(r)})),n.dataDimsOnCoord=f,n.encodeFirstDimNotExtra=m;var h=t.label;h&&h.length&&(o=h.slice());var v=t.tooltip;return v&&v.length?s=v.slice():s.length||(s=o.slice()),t.defaultedLabel=o,t.defaultedTooltip=s,n}function l(e,n){return e.hasOwnProperty(n)||(e[n]=[]),e[n]}function c(e){return"category"===e?"ordinal":"time"===e?"time":"float"}function d(e){return!("ordinal"===e||"time"===e)}n.OTHER_DIMENSIONS=u,n.summarizeDimensions=s,n.getDimensionTypeByAxis=c},63978:function(e,n,t){var r=t(33051),a=r.each,i="\0__link_datas",o="\0__link_mainData";function u(e){var n=e.mainData,t=e.datas;t||(t={main:n},e.datasAttr={main:"data"}),e.datas=e.mainData=null,m(n,t,e),a(t,(function(t){a(n.TRANSFERABLE_METHODS,(function(n){t.wrapMethod(n,r.curry(s,e))}))})),n.wrapMethod("cloneShallow",r.curry(c,e)),a(n.CHANGABLE_METHODS,(function(t){n.wrapMethod(t,r.curry(l,e))})),r.assert(t[n.dataType]===n)}function s(e,n){if(f(this)){var t=r.extend({},this[i]);t[this.dataType]=n,m(n,t,e)}else h(n,this.dataType,this[o],e);return n}function l(e,n){return e.struct&&e.struct.update(this),n}function c(e,n){return a(n[i],(function(t,r){t!==n&&h(t.cloneShallow(),r,n,e)})),n}function d(e){var n=this[o];return null==e||null==n?n:n[i][e]}function f(e){return e[o]===e}function m(e,n,t){e[i]={},a(n,(function(n,r){h(n,r,e,t)}))}function h(e,n,t,r){t[i][n]=e,e[o]=t,e.dataType=n,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[n]]=e),e.getLinkedData=d}var v=u;e.exports=v},61772:function(e,n,t){var r=t(38175),a=(r.__DEV__,t(32234)),i=a.makeInner,o=a.getDataItemValue,u=t(33051),s=u.createHashMap,l=u.each,c=u.map,d=u.isArray,f=u.isString,m=u.isObject,h=u.isTypedArray,v=u.isArrayLike,_=u.extend,D=(u.assert,t(99574)),p=t(93819),g=p.SOURCE_FORMAT_ORIGINAL,y=p.SOURCE_FORMAT_ARRAY_ROWS,R=p.SOURCE_FORMAT_OBJECT_ROWS,O=p.SOURCE_FORMAT_KEYED_COLUMNS,C=p.SOURCE_FORMAT_UNKNOWN,S=p.SOURCE_FORMAT_TYPED_ARRAY,I=p.SERIES_LAYOUT_BY_ROW,A={Must:1,Might:2,Not:3},E=i();function N(e){var n=e.option.source,t=C;if(h(n))t=S;else if(d(n)){0===n.length&&(t=y);for(var r=0,a=n.length;r<a;r++){var i=n[r];if(null!=i){if(d(i)){t=y;break}if(m(i)){t=R;break}}}}else if(m(n)){for(var o in n)if(n.hasOwnProperty(o)&&v(n[o])){t=O;break}}else if(null!=n)throw new Error("Invalid data");E(e).sourceFormat=t}function M(e){return E(e).source}function T(e){E(e).datasetMap=s()}function x(e){var n=e.option,t=n.data,r=h(t)?S:g,a=!1,i=n.seriesLayoutBy,o=n.sourceHeader,u=n.dimensions,s=b(e);if(s){var l=s.option;t=l.source,r=E(s).sourceFormat,a=!0,i=i||l.seriesLayoutBy,null==o&&(o=l.sourceHeader),u=u||l.dimensions}var c=w(t,r,i,o,u);E(e).source=new D({data:t,fromDataset:a,seriesLayoutBy:i,sourceFormat:r,dimensionsDefine:c.dimensionsDefine,startIndex:c.startIndex,dimensionsDetectCount:c.dimensionsDetectCount,encodeDefine:n.encode})}function w(e,n,t,r,a){if(!e)return{dimensionsDefine:k(a)};var i,u;if(n===y)"auto"===r||null==r?F((function(e){null!=e&&"-"!==e&&(f(e)?null==u&&(u=1):u=0)}),t,e,10):u=r?1:0,a||1!==u||(a=[],F((function(e,n){a[n]=null!=e?e:""}),t,e)),i=a?a.length:t===I?e.length:e[0]?e[0].length:null;else if(n===R)a||(a=L(e));else if(n===O)a||(a=[],l(e,(function(e,n){a.push(n)})));else if(n===g){var s=o(e[0]);i=d(s)&&s.length||1}return{startIndex:u,dimensionsDefine:k(a),dimensionsDetectCount:i}}function k(e){if(e){var n=s();return c(e,(function(e,t){if(e=_({},m(e)?e:{name:e}),null==e.name)return e;e.name+="",null==e.displayName&&(e.displayName=e.name);var r=n.get(e.name);return r?e.name+="-"+r.count++:n.set(e.name,{count:1}),e}))}}function F(e,n,t,r){if(null==r&&(r=1/0),n===I)for(var a=0;a<t.length&&a<r;a++)e(t[a]?t[a][0]:null,a);else{var i=t[0]||[];for(a=0;a<i.length&&a<r;a++)e(i[a],a)}}function L(e){var n,t=0;while(t<e.length&&!(n=e[t++]));if(n){var r=[];return l(n,(function(e,n){r.push(n)})),r}}function U(e,n,t){var r={},a=b(n);if(!a||!e)return r;var i,o,u=[],s=[],c=n.ecModel,d=E(c).datasetMap,f=a.uid+"_"+t.seriesLayoutBy;e=e.slice(),l(e,(function(n,t){!m(n)&&(e[t]={name:n}),"ordinal"===n.type&&null==i&&(i=t,o=_(e[t])),r[n.name]=[]}));var h=d.get(f)||d.set(f,{categoryWayDim:o,valueWayDim:0});function v(e,n,t){for(var r=0;r<t;r++)e.push(n+r)}function _(e){var n=e.dimsDef;return n?n.length:1}return l(e,(function(e,n){var t=e.name,a=_(e);if(null==i){var o=h.valueWayDim;v(r[t],o,a),v(s,o,a),h.valueWayDim+=a}else if(i===n)v(r[t],0,a),v(u,0,a);else{o=h.categoryWayDim;v(r[t],o,a),v(s,o,a),h.categoryWayDim+=a}})),u.length&&(r.itemName=u),s.length&&(r.seriesName=s),r}function B(e,n,t){var r={},a=b(e);if(!a)return r;var i,o=n.sourceFormat,u=n.dimensionsDefine;o!==R&&o!==O||l(u,(function(e,n){"name"===(m(e)?e.name:e)&&(i=n)}));var s=function(){for(var e={},r={},a=[],s=0,l=Math.min(5,t);s<l;s++){var c=W(n.data,o,n.seriesLayoutBy,u,n.startIndex,s);a.push(c);var d=c===A.Not;if(d&&null==e.v&&s!==i&&(e.v=s),(null==e.n||e.n===e.v||!d&&a[e.n]===A.Not)&&(e.n=s),f(e)&&a[e.n]!==A.Not)return e;d||(c===A.Might&&null==r.v&&s!==i&&(r.v=s),null!=r.n&&r.n!==r.v||(r.n=s))}function f(e){return null!=e.v&&null!=e.n}return f(e)?e:f(r)?r:null}();if(s){r.value=s.v;var c=null!=i?i:s.n;r.itemName=[c],r.seriesName=[c]}return r}function b(e){var n=e.option,t=n.data;if(!t)return e.ecModel.getComponent("dataset",n.datasetIndex||0)}function Y(e,n){return W(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,n)}function W(e,n,t,r,a,i){var u,s,l,c=5;if(h(e))return A.Not;if(r){var v=r[i];m(v)?(s=v.name,l=v.type):f(v)&&(s=v)}if(null!=l)return"ordinal"===l?A.Must:A.Not;if(n===y)if(t===I){for(var _=e[i],D=0;D<(_||[]).length&&D<c;D++)if(null!=(u=E(_[a+D])))return u}else for(D=0;D<e.length&&D<c;D++){var p=e[a+D];if(p&&null!=(u=E(p[i])))return u}else if(n===R){if(!s)return A.Not;for(D=0;D<e.length&&D<c;D++){var C=e[D];if(C&&null!=(u=E(C[s])))return u}}else if(n===O){if(!s)return A.Not;_=e[s];if(!_||h(_))return A.Not;for(D=0;D<_.length&&D<c;D++)if(null!=(u=E(_[D])))return u}else if(n===g)for(D=0;D<e.length&&D<c;D++){C=e[D];var S=o(C);if(!d(S))return A.Not;if(null!=(u=E(S[i])))return u}function E(e){var n=f(e);return null!=e&&isFinite(e)&&""!==e?n?A.Might:A.Not:n&&"-"!==e?A.Must:void 0}return A.Not}n.BE_ORDINAL=A,n.detectSourceFormat=N,n.getSource=M,n.resetSourceDefaulter=T,n.prepareSource=x,n.makeSeriesEncodeForAxisCoordSys=U,n.makeSeriesEncodeForNameBased=B,n.guessOrdinal=Y},93819:function(e,n){var t="original",r="arrayRows",a="objectRows",i="keyedColumns",o="unknown",u="typedArray",s="column",l="row";n.SOURCE_FORMAT_ORIGINAL=t,n.SOURCE_FORMAT_ARRAY_ROWS=r,n.SOURCE_FORMAT_OBJECT_ROWS=a,n.SOURCE_FORMAT_KEYED_COLUMNS=i,n.SOURCE_FORMAT_UNKNOWN=o,n.SOURCE_FORMAT_TYPED_ARRAY=u,n.SERIES_LAYOUT_BY_COLUMN=s,n.SERIES_LAYOUT_BY_ROW=l}}]);
  2. //# sourceMappingURL=chunk-vendors-61174297.6b670c0f.js.map