12 |
- (self["webpackChunkapp"]=self["webpackChunkapp"]||[]).push([[1868],{91182:function(e){var t={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function n(e,n){if("world"===e){var a=t[n.name];if(a){var i=n.center;i[0]=a[0],i[1]=a[1]}}}e.exports=n},65330:function(e,t,n){for(var a=n(33051),i=n(64215),o=[126,25],r=[[[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]]],s=0;s<r.length;s++)for(var l=0;l<r[s].length;l++)r[s][l][0]/=10.5,r[s][l][1]/=-14,r[s][l][0]+=o[0],r[s][l][1]+=o[1];function c(e,t){"china"===e&&t.push(new i("南海诸岛",a.map(r,(function(e){return{type:"polygon",exterior:e}})),o))}e.exports=c},14901:function(e){var t={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function n(e,n){if("china"===e){var a=t[n.name];if(a){var i=n.center;i[0]+=a[0]/10.5,i[1]+=-a[1]/14}}}e.exports=n},18958:function(e,t,n){var a=n(38175),i=(a.__DEV__,n(70492)),o=n(33051),r=n(61418),s=n(76172),l=n(85669),c=n(11194),u=n(26418);function p(e,t){var n=e.get("boundingCoords");if(null!=n){var a=n[0],i=n[1];isNaN(a[0])||isNaN(a[1])||isNaN(i[0])||isNaN(i[1])||this.setBoundingRect(a[0],a[1],i[0]-a[0],i[1]-a[1])}var o,r=this.getBoundingRect(),c=e.get("layoutCenter"),u=e.get("layoutSize"),p=t.getWidth(),h=t.getHeight(),d=r.width/r.height*this.aspectScale,g=!1;if(c&&u&&(c=[l.parsePercent(c[0],p),l.parsePercent(c[1],h)],u=l.parsePercent(u,Math.min(p,h)),isNaN(c[0])||isNaN(c[1])||isNaN(u)||(g=!0)),g){var x={};d>1?(x.width=u,x.height=u/d):(x.height=u,x.width=u*d),x.y=c[1]-x.height/2,x.x=c[0]-x.width/2}else o=e.getBoxLayoutParams(),o.aspect=d,x=s.getLayoutRect(o,{width:p,height:h});this.setViewRect(x.x,x.y,x.width,x.height),this.setCenter(e.get("center")),this.setZoom(e.get("zoom"))}function h(e,t){o.each(t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var d={dimensions:r.prototype.dimensions,create:function(e,t){var n=[];e.eachComponent("geo",(function(e,a){var i=e.get("map"),o=e.get("aspectScale"),s=!0,l=u.retrieveMap(i);l&&l[0]&&"svg"===l[0].type?(null==o&&(o=1),s=!1):null==o&&(o=.75);var c=new r(i+a,i,e.get("nameMap"),s);c.aspectScale=o,c.zoomLimit=e.get("scaleLimit"),n.push(c),h(c,e),e.coordinateSystem=c,c.model=e,c.resize=p,c.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var a=e.get("geoIndex")||0;e.coordinateSystem=n[a]}}));var a={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();a[t]=a[t]||[],a[t].push(e)}})),o.each(a,(function(e,a){var i=o.map(e,(function(e){return e.get("nameMap")})),s=new r(a,a,o.mergeAll(i));s.zoomLimit=o.retrieve.apply(null,o.map(e,(function(e){return e.get("scaleLimit")}))),n.push(s),s.resize=p,s.aspectScale=e[0].get("aspectScale"),s.resize(e[0],t),o.each(e,(function(e){e.coordinateSystem=s,h(s,e)}))})),n},getFilledRegions:function(e,t,n){for(var a=(e||[]).slice(),i=o.createHashMap(),r=0;r<a.length;r++)i.set(a[r].name,a[r]);var s=c.load(t,n);return o.each(s.regions,(function(e){var t=e.name;!i.get(t)&&a.push({name:t})})),a}};i.registerCoordinateSystem("geo",d);var g=d;e.exports=g},64325:function(e,t,n){var a=n(33051),i=a.each,o=n(76672),r=n(32234),s=r.makeInner,l=n(65330),c=n(14901),u=n(91182),p=n(85911),h=s(),d={load:function(e,t,n){var a=h(t).parsed;if(a)return a;var r,s=t.specialAreas||{},d=t.geoJSON;try{r=d?o(d,n):[]}catch(x){throw new Error("Invalid geoJson format\n"+x.message)}return l(e,r),i(r,(function(t){var n=t.name;c(e,t),u(e,t),p(e,t);var a=s[n];a&&t.transformTo(a.left,a.top,a.width,a.height)})),h(t).parsed={regions:r,boundingRect:g(r)}}};function g(e){for(var t,n=0;n<e.length;n++){var a=e[n].getBoundingRect();t=t||a.clone(),t.union(a)}return t}e.exports=d},50402:function(e,t,n){var a=n(10003),i=a.parseSVG,o=a.makeViewBoxTransform,r=n(8524),s=n(27304),l=n(33051),c=l.assert,u=l.createHashMap,p=n(60479),h=n(32234),d=h.makeInner,g=d(),x={load:function(e,t){var n=g(t).originRoot;if(n)return{root:n,boundingRect:g(t).boundingRect};var a=f(t);return g(t).originRoot=a.root,g(t).boundingRect=a.boundingRect,a},makeGraphic:function(e,t,n){var a=g(t),i=a.rootMap||(a.rootMap=u()),o=i.get(n);if(o)return o;var r=a.originRoot,s=a.boundingRect;return a.originRootHostKey?o=f(t,s).root:(a.originRootHostKey=n,o=r),i.set(n,o)},removeGraphic:function(e,t,n){var a=g(t),i=a.rootMap;i&&i.removeKey(n),n===a.originRootHostKey&&(a.originRootHostKey=null)}};function f(e,t){var n,a,l=e.svgXML;try{n=l&&i(l,{ignoreViewBox:!0,ignoreRootClip:!0})||{},a=n.root,c(null!=a)}catch(f){throw new Error("Invalid svg format\n"+f.message)}var u=n.width,h=n.height,d=n.viewBoxRect;if(t||(t=null==u||null==h?a.getBoundingRect():new p(0,0,0,0),null!=u&&(t.width=u),null!=h&&(t.height=h)),d){var g=o(d,t.width,t.height),x=a;a=new r,a.add(x),x.scale=g.scale,x.position=g.position}return a.setClipPath(new s({shape:t.plain()})),{root:a,boundingRect:t}}e.exports=x},11194:function(e,t,n){var a=n(38175),i=(a.__DEV__,n(33051)),o=i.each,r=i.createHashMap,s=n(26418),l=n(64325),c=n(50402),u=n(60479),p={geoJSON:l,svg:c},h={load:function(e,t,n){var a,i=[],s=r(),l=r(),c=g(e);return o(c,(function(r){var c=p[r.type].load(e,r,n);o(c.regions,(function(e){var n=e.name;t&&t.hasOwnProperty(n)&&(e=e.cloneShallow(n=t[n])),i.push(e),s.set(n,e),l.set(n,e.center)}));var u=c.boundingRect;u&&(a?a.union(u):a=u.clone())})),{regions:i,regionsMap:s,nameCoordMap:l,boundingRect:a||new u(0,0,0,0)}},makeGraphic:d("makeGraphic"),removeGraphic:d("removeGraphic")};function d(e){return function(t,n){var a=g(t),i=[];return o(a,(function(a){var o=p[a.type][e];o&&i.push(o(t,a,n))})),i}}function g(e){var t=s.retrieveMap(e)||[];return t}e.exports=h},26418:function(e,t,n){var a=n(38175),i=(a.__DEV__,n(33051)),o=i.createHashMap,r=i.isString,s=i.isArray,l=i.each,c=(i.assert,n(10003)),u=c.parseXML,p=o(),h={registerMap:function(e,t,n){var a;return s(t)?a=t:t.svg?a=[{type:"svg",source:t.svg,specialAreas:t.specialAreas}]:(t.geoJson&&!t.features&&(n=t.specialAreas,t=t.geoJson),a=[{type:"geoJSON",source:t,specialAreas:n}]),l(a,(function(e){var t=e.type;"geoJson"===t&&(t=e.type="geoJSON");var n=d[t];n(e)})),p.set(e,a)},retrieveMap:function(e){return p.get(e)}},d={geoJSON:function(e){var t=e.source;e.geoJSON=r(t)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t},svg:function(e){e.svgXML=u(e.source)}};e.exports=h},76672:function(e,t,n){var a=n(33051),i=n(64215);function o(e){if(!e.UTF8Encoding)return e;var t=e.UTF8Scale;null==t&&(t=1024);for(var n=e.features,a=0;a<n.length;a++)for(var i=n[a],o=i.geometry,s=o.coordinates,l=o.encodeOffsets,c=0;c<s.length;c++){var u=s[c];if("Polygon"===o.type)s[c]=r(u,l[c],t);else if("MultiPolygon"===o.type)for(var p=0;p<u.length;p++){var h=u[p];u[p]=r(h,l[c][p],t)}}return e.UTF8Encoding=!1,e}function r(e,t,n){for(var a=[],i=t[0],o=t[1],r=0;r<e.length;r+=2){var s=e.charCodeAt(r)-64,l=e.charCodeAt(r+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=i,l+=o,i=s,o=l,a.push([s/n,l/n])}return a}function s(e,t){return o(e),a.map(a.filter(e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,o=e.geometry,r=o.coordinates,s=[];"Polygon"===o.type&&s.push({type:"polygon",exterior:r[0],interiors:r.slice(1)}),"MultiPolygon"===o.type&&a.each(r,(function(e){e[0]&&s.push({type:"polygon",exterior:e[0],interiors:e.slice(1)})}));var l=new i(n[t||"name"],s,n.cp);return l.properties=n,l}))}e.exports=s},55389:function(e,t,n){var a=n(33051);function i(e,t){return t=t||[0,0],a.map([0,1],(function(n){var a=t[n],i=e[n]/2,o=[],r=[];return o[n]=a-i,r[n]=a+i,o[1-n]=r[1-n]=t[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(r)[n])}),this)}function o(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:a.bind(i,e)}}}e.exports=o},53309:function(e,t,n){var a=n(33051),i=n(98071),o=n(59066),r=n(21293),s=n(85669),l=n(16650),c=i.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return o([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(e){var t=this.activeIntervals=a.clone(e);if(t)for(var n=t.length-1;n>=0;n--)s.asc(t[n])},getActiveState:function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var a=0,i=t.length;a<i;a++)if(t[a][0]<=e&&e<=t[a][1])return"active";return"inactive"}}),u={type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function p(e,t){return t.type||(t.data?"category":"value")}a.merge(c.prototype,l),r("parallel",c,p,u);var h=c;e.exports=h},21483:function(e,t,n){var a=n(33051),i=n(32892),o=n(76172),r=n(97980),s=n(95847),l=n(51177),c=n(85669),u=n(19233),p=a.each,h=Math.min,d=Math.max,g=Math.floor,x=Math.ceil,f=c.round,v=Math.PI;function m(e,t,n){this._axesMap=a.createHashMap(),this._axesLayout={},this.dimensions=e.dimensions,this._rect,this._model=e,this._init(e,t,n)}function y(e,t){return h(d(e,t[0]),t[1])}function S(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function w(e,t){var n,a,i=t.layoutLength,o=t.axisExpandWidth,r=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,c=s,u=!1;return e<l[0]?(n=e*s,a=s):e<=l[1]?(n=t.axisExpandWindow0Pos+e*o-t.axisExpandWindow[0],c=o,u=!0):(n=i-(r-1-e)*s,a=s),{position:n,axisNameAvailableWidth:c,axisLabelShow:u,nameTruncateMaxWidth:a}}m.prototype={type:"parallel",constructor:m,_init:function(e,t,n){var a=e.dimensions,i=e.parallelAxisIndex;p(a,(function(e,n){var a=i[n],o=t.getComponent("parallelAxis",a),l=this._axesMap.set(e,new s(e,r.createScaleByModel(o),[0,0],o.get("type"),a)),c="category"===l.type;l.onBand=c&&o.get("boundaryGap"),l.inverse=o.get("inverse"),o.axis=l,l.model=o,l.coordinateSystem=o.coordinateSystem=this}),this)},update:function(e,t){this._updateAxesFromSeries(this._model,e)},containPoint:function(e){var t=this._makeLayoutInfo(),n=t.axisBase,a=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],r=e[i];return o>=n&&o<=n+t.axisLength&&r>=a&&r<=a+t.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var a=n.getData();p(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(a,a.mapDimension(e)),r.niceScaleExtent(t.scale,t.model)}),this)}}),this)},resize:function(e,t){this._rect=o.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var e,t=this._model,n=this._rect,a=["x","y"],i=["width","height"],o=t.get("layout"),r="horizontal"===o?0:1,s=n[i[r]],l=[0,s],c=this.dimensions.length,u=y(t.get("axisExpandWidth"),l),p=y(t.get("axisExpandCount")||0,[0,c]),h=t.get("axisExpandable")&&c>3&&c>p&&p>1&&u>0&&s>0,d=t.get("axisExpandWindow");if(d)e=y(d[1]-d[0],l),d[1]=d[0]+e;else{e=y(u*(p-1),l);var v=t.get("axisExpandCenter")||g(c/2);d=[u*v-e/2],d[1]=d[0]+e}var m=(s-e)/(c-p);m<3&&(m=0);var S=[g(f(d[0]/u,1))+1,x(f(d[1]/u,1))-1],w=m/u*d[0];return{layout:o,pixelDimIndex:r,layoutBase:n[a[r]],layoutLength:s,axisBase:n[a[1-r]],axisLength:n[i[1-r]],axisExpandable:h,axisExpandWidth:u,axisCollapseWidth:m,axisExpandWindow:d,axisCount:c,winInnerIndices:S,axisExpandWindow0Pos:w}},_layoutAxes:function(){var e=this._rect,t=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),o=a.layout;t.each((function(e){var t=[0,a.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),p(n,(function(t,n){var r=(a.axisExpandable?w:S)(n,a),s={horizontal:{x:r.position,y:a.axisLength},vertical:{x:0,y:r.position}},l={horizontal:v/2,vertical:0},c=[s[o].x+e.x,s[o].y+e.y],u=l[o],p=i.create();i.rotate(p,p,u),i.translate(p,p,c),this._axesLayout[t]={position:c,rotation:u,transform:p,axisNameAvailableWidth:r.axisNameAvailableWidth,axisLabelShow:r.axisLabelShow,nameTruncateMaxWidth:r.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},getAxis:function(e){return this._axesMap.get(e)},dataToPoint:function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},eachActiveState:function(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());var o=this._axesMap,r=this.dimensions,s=[],l=[];a.each(r,(function(t){s.push(e.mapDimension(t)),l.push(o.get(t).model)}));for(var c=this.hasAxisBrushed(),u=n;u<i;u++){var p;if(c){p="active";for(var h=e.getValues(s,u),d=0,g=r.length;d<g;d++){var x=l[d].getActiveState(h[d]);if("inactive"===x){p="inactive";break}}}else p="normal";t(p,u)}},hasAxisBrushed:function(){for(var e=this.dimensions,t=this._axesMap,n=!1,a=0,i=e.length;a<i;a++)"normal"!==t.get(e[a]).model.getActiveState()&&(n=!0);return n},axisCoordToPoint:function(e,t){var n=this._axesLayout[t];return l.applyTransform([e,0],n.transform)},getAxisLayout:function(e){return a.clone(this._axesLayout[e])},getSlidedAxisExpandWindow:function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,a=t.axisExpandWindow.slice(),i=a[1]-a[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:a};var r,s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l="slide",c=t.axisCollapseWidth,p=this._model.get("axisExpandSlideTriggerArea"),g=null!=p[0];if(c)g&&c&&s<i*p[0]?(l="jump",r=s-i*p[2]):g&&c&&s>i*(1-p[0])?(l="jump",r=s-i*(1-p[2])):(r=s-i*p[1])>=0&&(r=s-i*(1-p[1]))<=0&&(r=0),r*=t.axisExpandWidth/c,r?u(r,a,o,"all"):l="none";else{i=a[1]-a[0];var x=o[1]*s/i;a=[d(0,x-i/2)],a[1]=h(o[1],a[0]+i),a[0]=a[1]-i}return{axisExpandWindow:a,behavior:l}}};var M=m;e.exports=M},95847:function(e,t,n){var a=n(33051),i=n(3245),o=function(e,t,n,a,o){i.call(this,e,t,n),this.type=a||"value",this.axisIndex=o};o.prototype={constructor:o,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},a.inherits(o,i);var r=o;e.exports=r},20946:function(e,t,n){var a=n(33051),i=n(98071);n(53309);var o=i.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},init:function(){i.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(e){var t=this.option;e&&a.merge(t,e,!0),this._initDimensions()},contains:function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},setAxisExpand:function(e){a.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},_initDimensions:function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=a.filter(this.dependentModels.parallelAxis,(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);a.each(n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))}});e.exports=o},14506:function(e,t,n){var a=n(21483),i=n(95899);function o(e,t){var n=[];return e.eachComponent("parallel",(function(i,o){var r=new a(i,e,t);r.name="parallel_"+o,r.resize(i,t),i.coordinateSystem=r,r.model=i,n.push(r)})),e.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var n=e.queryComponents({mainType:"parallel",index:t.get("parallelIndex"),id:t.get("parallelId")})[0];t.coordinateSystem=n.coordinateSystem}})),n}i.register("parallel",{create:o})},20769:function(e,t,n){var a=n(33051),i=n(32234);function o(e){r(e),s(e)}function r(e){if(!e.parallel){var t=!1;a.each(e.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(e.parallel=[{}])}}function s(e){var t=i.normalizeToArray(e.parallelAxis);a.each(t,(function(t){if(a.isObject(t)){var n=t.parallelIndex||0,o=i.normalizeToArray(e.parallel)[n];o&&o.parallelAxisDefault&&a.merge(t,o.parallelAxisDefault,!1)}}))}e.exports=o}}]);
- //# sourceMappingURL=chunk-vendors-c147bf2e.b0ce9cef.js.map
|