mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-09 08:20:31 +08:00
0c56a3e599
Made-with: Cursor Former-commit-id: 571c9a99ee26d90505e550c287eb8ad8d743ff8d
30 lines
1.5 MiB
Plaintext
30 lines
1.5 MiB
Plaintext
(window["webpackJsonp_"]=window["webpackJsonp_"]||[]).push([["chunk-276f0ed4"],{"0046":function(t,e,n){var i=n("6d8b"),r=i.each,a=i.createHashMap,o=n("4f85"),s=n("3301"),l=o.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(t,e){var n=this.getSource();return c(n,this),s(n,this)},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,(function(e,r){t===e&&i.push(n.getRawIndex(r))})),i},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});function c(t,e){if(!t.encodeDefine){var n=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(n){var i=t.encodeDefine=a();r(n.dimensions,(function(t){var e=u(t);i.set(t,e)}))}}}function u(t){return+t.replace("dim","")}t.exports=l},"004f":function(t,e,n){var i=n("6d8b"),r=n("72b6"),a=n("2306"),o=n("a15a"),s=o.createSymbol,l=n("f934"),c=n("cbb0"),u=r.extend({type:"visualMap.piecewise",doRender:function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),r=e.textStyleModel,o=r.getFont(),s=r.getTextColor(),c=this._getItemAlign(),u=e.itemSize,h=this._getViewData(),d=h.endsText,f=i.retrieve(e.get("showLabel",!0),!d);function p(r){var l=r.piece,h=new a.Group;h.onclick=i.bind(this._onItemClick,this,l),this._enableHoverLink(h,r.indexInModelPieceList);var d=e.getRepresentValue(l);if(this._createItemSymbol(h,d,[0,0,u[0],u[1]]),f){var p=this.visualMapModel.getValueState(d);h.add(new a.Text({style:{x:"right"===c?-n:u[0]+n,y:u[1]/2,text:l.text,textVerticalAlign:"middle",textAlign:c,textFont:o,textFill:s,opacity:"outOfRange"===p?.5:1}}))}t.add(h)}d&&this._renderEndsText(t,d[0],u,f,c),i.each(h.viewPieceList,p,this),d&&this._renderEndsText(t,d[1],u,f,c),l.box(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},_enableHoverLink:function(t,e){function n(t){var n=this.visualMapModel;n.option.hoverLink&&this.api.dispatchAction({type:t,batch:c.makeHighDownBatch(n.findTargetDataIndices(e),n)})}t.on("mouseover",i.bind(n,this,"highlight")).on("mouseout",i.bind(n,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return c.getItemAlign(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},_renderEndsText:function(t,e,n,i,r){if(e){var o=new a.Group,s=this.visualMapModel.textStyleModel;o.add(new a.Text({style:{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:"middle",textAlign:i?r:"center",text:e,textFont:s.getFont(),textFill:s.getTextColor()}})),t.add(o)}},_getViewData:function(){var t=this.visualMapModel,e=i.map(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),r=t.get("orient"),a=t.get("inverse");return("horizontal"===r?a:!a)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},_createItemSymbol:function(t,e,n){t.add(s(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},_onItemClick:function(t){var e=this.visualMapModel,n=e.option,r=i.clone(n.selected),a=e.getSelectedMapKey(t);"single"===n.selectedMode?(r[a]=!0,i.each(r,(function(t,e){r[e]=e===a}))):r[a]=!r[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}}),h=u;t.exports=h},"007d":function(t,e,n){var i=n("3eba");n("cb8f"),n("a96b"),n("42f6"),i.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),i.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))},"00ba":function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=n("e46b"),o=n("e0d3"),s=o.defaultEmphasis,l=n("0f99"),c=l.makeSeriesEncodeForNameBased,u=n("c4a3"),h=i.extendSeriesModel({type:"series.funnel",init:function(t){h.superApply(this,"init",arguments),this.legendVisualProvider=new u(r.bind(this.getData,this),r.bind(this.getRawData,this)),this._defaultLabelLine(t)},getInitialData:function(t,e){return a(this,{coordDimensions:["value"],encodeDefaulter:r.curry(c,this)})},_defaultLabelLine:function(t){s(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},getDataParams:function(t){var e=this.getData(),n=h.superCall(this,"getDataParams",t),i=e.mapDimension("value"),r=e.getSum(i);return n.percent=r?+(e.get(i,t)/r*100).toFixed(2):0,n.$vars.push("percent"),n},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}),d=h;t.exports=d},"00d8":function(t,e,n){var i=n("6d8b");function r(t,e){return e=e||[0,0],i.map([0,1],(function(n){var i=e[n],r=t[n]/2,a=[],o=[];return a[n]=i-r,o[n]=i+r,a[1-n]=o[1-n]=e[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(o)[n])}),this)}function a(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:i.bind(r,t)}}}t.exports=a},"0141":function(t,e,n){var i=n("6d8b"),r=n("9850"),a=n("6cc5"),o=n("5b87");function s(t,e,n,i){a.call(this,t),this.map=e;var r=o.load(e,n);this._nameCoordMap=r.nameCoordMap,this._regionsMap=r.regionsMap,this._invertLongitute=null==i||i,this.regions=r.regions,this._rect=r.boundingRect}function l(t,e,n,i){var r=n.geoModel,a=n.seriesModel,o=r?r.coordinateSystem:a?a.coordinateSystem||(a.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return o===this?o[t](i):null}s.prototype={constructor:s,type:"geo",dimensions:["lng","lat"],containCoord:function(t){for(var e=this.regions,n=0;n<e.length;n++)if(e[n].contain(t))return!0;return!1},transformTo:function(t,e,n,i){var a=this.getBoundingRect(),o=this._invertLongitute;a=a.clone(),o&&(a.y=-a.y-a.height);var s=this._rawTransformable;if(s.transform=a.calculateTransform(new r(t,e,n,i)),s.decomposeTransform(),o){var l=s.scale;l[1]=-l[1]}s.updateTransform(),this._updateTransform()},getRegion:function(t){return this._regionsMap.get(t)},getRegionByCoord:function(t){for(var e=this.regions,n=0;n<e.length;n++)if(e[n].contain(t))return e[n]},addGeoCoord:function(t,e){this._nameCoordMap.set(t,e)},getGeoCoord:function(t){return this._nameCoordMap.get(t)},getBoundingRect:function(){return this._rect},dataToPoint:function(t,e,n){if("string"===typeof t&&(t=this.getGeoCoord(t)),t)return a.prototype.dataToPoint.call(this,t,e,n)},convertToPixel:i.curry(l,"dataToPoint"),convertFromPixel:i.curry(l,"pointToData")},i.mixin(s,a);var c=s;t.exports=c},"0156":function(t,e,n){var i=n("6d8b");function r(t,e,n){n=n||{};var r=t.coordinateSystem,a=e.axis,o={},s=a.getAxesOnZeroOf()[0],l=a.position,c=s?"onZero":l,u=a.dim,h=r.getRect(),d=[h.x,h.x+h.width,h.y,h.y+h.height],f={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,g="x"===u?[d[2]-p,d[3]+p]:[d[0]-p,d[1]+p];if(s){var m=s.toGlobalCoord(s.dataToCoord(0));g[f.onZero]=Math.max(Math.min(m,g[1]),g[0])}o.position=["y"===u?g[f[c]]:d[0],"x"===u?g[f[c]]:d[3]],o.rotation=Math.PI/2*("x"===u?0:1);var v={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=v[l],o.labelOffset=s?g[f[l]]-g[f.onZero]:0,e.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),i.retrieve(n.labelInside,e.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection);var y=e.get("axisLabel.rotate");return o.labelRotate="top"===c?-y:y,o.z2=1,o}e.layout=r},"01ed":function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=n("2306");n("5aa9"),n("af24"),i.extendComponentView({type:"grid",render:function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new a.Rect({shape:t.coordinateSystem.getRect(),style:r.defaults({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))}}),i.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))},"01ef":function(t,e){function n(t,e,n){var i=t.target,r=i.position;r[0]+=e,r[1]+=n,i.dirty()}function i(t,e,n,i){var r=t.target,a=t.zoomLimit,o=r.position,s=r.scale,l=t.zoom=t.zoom||1;if(l*=e,a){var c=a.min||0,u=a.max||1/0;l=Math.max(Math.min(u,l),c)}var h=l/t.zoom;t.zoom=l,o[0]-=(n-o[0])*(h-1),o[1]-=(i-o[1])*(h-1),s[0]*=h,s[1]*=h,r.dirty()}e.updateViewOnPan=n,e.updateViewOnZoom=i},"0352":function(t,e,n){var i=n("6cb7"),r=n("b12f"),a=n("0f99"),o=a.detectSourceFormat,s=n("93d0"),l=s.SERIES_LAYOUT_BY_COLUMN;i.extend({type:"dataset",defaultOption:{seriesLayoutBy:l,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){o(this)}}),r.extend({type:"dataset"})},"04f6":function(t,e){var n=32,i=7;function r(t){var e=0;while(t>=n)e|=1&t,t>>=1;return t+e}function a(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){while(r<n&&i(t[r],t[r-1])<0)r++;o(t,e,r)}else while(r<n&&i(t[r],t[r-1])>=0)r++;return r-e}function o(t,e,n){n--;while(e<n){var i=t[e];t[e++]=t[n],t[n--]=i}}function s(t,e,n,i,r){for(i===e&&i++;i<n;i++){var a,o=t[i],s=e,l=i;while(s<l)a=s+l>>>1,r(o,t[a])<0?l=a:s=a+1;var c=i-s;switch(c){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:while(c>0)t[s+c]=t[s+c-1],c--}t[s]=o}}function l(t,e,n,i,r,a){var o=0,s=0,l=1;if(a(t,e[n+r])>0){s=i-r;while(l<s&&a(t,e[n+r+l])>0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}else{s=r+1;while(l<s&&a(t,e[n+r-l])<=0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var c=o;o=r-l,l=r-c}o++;while(o<l){var u=o+(l-o>>>1);a(t,e[n+u])>0?o=u+1:l=u}return l}function c(t,e,n,i,r,a){var o=0,s=0,l=1;if(a(t,e[n+r])<0){s=r+1;while(l<s&&a(t,e[n+r-l])<0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var c=o;o=r-l,l=r-c}else{s=i-r;while(l<s&&a(t,e[n+r+l])>=0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}o++;while(o<l){var u=o+(l-o>>>1);a(t,e[n+u])<0?l=u:o=u+1}return l}function u(t,e){var n,r,a=i,o=0,s=0;o=t.length;var u=[];function h(t,e){n[s]=t,r[s]=e,s+=1}function d(){while(s>1){var t=s-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]<r[t+1]&&t--;else if(r[t]>r[t+1])break;p(t)}}function f(){while(s>1){var t=s-2;t>0&&r[t-1]<r[t+1]&&t--,p(t)}}function p(i){var a=n[i],o=r[i],u=n[i+1],h=r[i+1];r[i]=o+h,i===s-3&&(n[i+1]=n[i+2],r[i+1]=r[i+2]),s--;var d=c(t[u],t,a,o,0,e);a+=d,o-=d,0!==o&&(h=l(t[a+o-1],t,u,h,h-1,e),0!==h&&(o<=h?g(a,o,u,h):m(a,o,u,h)))}function g(n,r,o,s){var h=0;for(h=0;h<r;h++)u[h]=t[n+h];var d=0,f=o,p=n;if(t[p++]=t[f++],0!==--s)if(1!==r){var g,m,v,y=a;while(1){g=0,m=0,v=!1;do{if(e(t[f],u[d])<0){if(t[p++]=t[f++],m++,g=0,0===--s){v=!0;break}}else if(t[p++]=u[d++],g++,m=0,1===--r){v=!0;break}}while((g|m)<y);if(v)break;do{if(g=c(t[f],u,d,r,0,e),0!==g){for(h=0;h<g;h++)t[p+h]=u[d+h];if(p+=g,d+=g,r-=g,r<=1){v=!0;break}}if(t[p++]=t[f++],0===--s){v=!0;break}if(m=l(u[d],t,f,s,0,e),0!==m){for(h=0;h<m;h++)t[p+h]=t[f+h];if(p+=m,f+=m,s-=m,0===s){v=!0;break}}if(t[p++]=u[d++],1===--r){v=!0;break}y--}while(g>=i||m>=i);if(v)break;y<0&&(y=0),y+=2}if(a=y,a<1&&(a=1),1===r){for(h=0;h<s;h++)t[p+h]=t[f+h];t[p+s]=u[d]}else{if(0===r)throw new Error;for(h=0;h<r;h++)t[p+h]=u[d+h]}}else{for(h=0;h<s;h++)t[p+h]=t[f+h];t[p+s]=u[d]}else for(h=0;h<r;h++)t[p+h]=u[d+h]}function m(n,r,o,s){var h=0;for(h=0;h<s;h++)u[h]=t[o+h];var d=n+r-1,f=s-1,p=o+s-1,g=0,m=0;if(t[p--]=t[d--],0!==--r)if(1!==s){var v=a;while(1){var y=0,x=0,b=!1;do{if(e(u[f],t[d])<0){if(t[p--]=t[d--],y++,x=0,0===--r){b=!0;break}}else if(t[p--]=u[f--],x++,y=0,1===--s){b=!0;break}}while((y|x)<v);if(b)break;do{if(y=r-c(u[f],t,n,r,r-1,e),0!==y){for(p-=y,d-=y,r-=y,m=p+1,g=d+1,h=y-1;h>=0;h--)t[m+h]=t[g+h];if(0===r){b=!0;break}}if(t[p--]=u[f--],1===--s){b=!0;break}if(x=s-l(t[d],u,0,s,s-1,e),0!==x){for(p-=x,f-=x,s-=x,m=p+1,g=f+1,h=0;h<x;h++)t[m+h]=u[g+h];if(s<=1){b=!0;break}}if(t[p--]=t[d--],0===--r){b=!0;break}v--}while(y>=i||x>=i);if(b)break;v<0&&(v=0),v+=2}if(a=v,a<1&&(a=1),1===s){for(p-=r,d-=r,m=p+1,g=d+1,h=r-1;h>=0;h--)t[m+h]=t[g+h];t[p]=u[f]}else{if(0===s)throw new Error;for(g=p-(s-1),h=0;h<s;h++)t[g+h]=u[h]}}else{for(p-=r,d-=r,m=p+1,g=d+1,h=r-1;h>=0;h--)t[m+h]=t[g+h];t[p]=u[f]}else for(g=p-(s-1),h=0;h<s;h++)t[g+h]=u[h]}n=[],r=[],this.mergeRuns=d,this.forceMergeRuns=f,this.pushRun=h}function h(t,e,i,o){i||(i=0),o||(o=t.length);var l=o-i;if(!(l<2)){var c=0;if(l<n)return c=a(t,i,o,e),void s(t,i,o,i+c,e);var h=new u(t,e),d=r(l);do{if(c=a(t,i,o,e),c<d){var f=l;f>d&&(f=d),s(t,i,i+f,i+c,e),c=f}h.pushRun(i,c),h.mergeRuns(),l-=c,i+=c}while(0!==l);h.forceMergeRuns()}}t.exports=h},"0655":function(t,e,n){var i=n("8728"),r=1e-8;function a(t,e){return Math.abs(t-e)<r}function o(t,e,n){var r=0,o=t[0];if(!o)return!1;for(var s=1;s<t.length;s++){var l=t[s];r+=i(o[0],o[1],l[0],l[1],e,n),o=l}var c=t[0];return a(o[0],c[0])&&a(o[1],c[1])||(r+=i(o[0],o[1],c[0],c[1],e,n)),0!==r}e.contain=o},"06ad":function(t,e,n){var i=n("4436"),r=n("41ef"),a=n("6d8b"),o=a.isArrayLike,s=Array.prototype.slice;function l(t,e){return t[e]}function c(t,e,n){t[e]=n}function u(t,e,n){return(e-t)*n+t}function h(t,e,n){return n>.5?e:t}function d(t,e,n,i,r){var a=t.length;if(1===r)for(var o=0;o<a;o++)i[o]=u(t[o],e[o],n);else{var s=a&&t[0].length;for(o=0;o<a;o++)for(var l=0;l<s;l++)i[o][l]=u(t[o][l],e[o][l],n)}}function f(t,e,n){var i=t.length,r=e.length;if(i!==r){var a=i>r;if(a)t.length=r;else for(var o=i;o<r;o++)t.push(1===n?e[o]:s.call(e[o]))}var l=t[0]&&t[0].length;for(o=0;o<t.length;o++)if(1===n)isNaN(t[o])&&(t[o]=e[o]);else for(var c=0;c<l;c++)isNaN(t[o][c])&&(t[o][c]=e[o][c])}function p(t,e,n){if(t===e)return!0;var i=t.length;if(i!==e.length)return!1;if(1===n){for(var r=0;r<i;r++)if(t[r]!==e[r])return!1}else{var a=t[0].length;for(r=0;r<i;r++)for(var o=0;o<a;o++)if(t[r][o]!==e[r][o])return!1}return!0}function g(t,e,n,i,r,a,o,s,l){var c=t.length;if(1===l)for(var u=0;u<c;u++)s[u]=m(t[u],e[u],n[u],i[u],r,a,o);else{var h=t[0].length;for(u=0;u<c;u++)for(var d=0;d<h;d++)s[u][d]=m(t[u][d],e[u][d],n[u][d],i[u][d],r,a,o)}}function m(t,e,n,i,r,a,o){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*o+(-3*(e-n)-2*s-l)*a+s*r+e}function v(t){if(o(t)){var e=t.length;if(o(t[0])){for(var n=[],i=0;i<e;i++)n.push(s.call(t[i]));return n}return s.call(t)}return t}function y(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function x(t){var e=t[t.length-1].value;return o(e&&e[0])?2:1}function b(t,e,n,a,s,l){var c=t._getter,v=t._setter,b="spline"===e,_=a.length;if(_){var w,S=a[0].value,A=o(S),C=!1,I=!1,T=A?x(a):0;a.sort((function(t,e){return t.time-e.time})),w=a[_-1].time;for(var k=[],M=[],D=a[0].value,E=!0,L=0;L<_;L++){k.push(a[L].time/w);var P=a[L].value;if(A&&p(P,D,T)||!A&&P===D||(E=!1),D=P,"string"===typeof P){var O=r.parse(P);O?(P=O,C=!0):I=!0}M.push(P)}if(l||!E){var R=M[_-1];for(L=0;L<_-1;L++)A?f(M[L],R,T):!isNaN(M[L])||isNaN(R)||I||C||(M[L]=R);A&&f(c(t._target,s),R,T);var N,B,z,F,V,W,U=0,H=0;if(C)var G=[0,0,0,0];var j=function(t,e){var n;if(e<0)n=0;else if(e<H){for(N=Math.min(U+1,_-1),n=N;n>=0;n--)if(k[n]<=e)break;n=Math.min(n,_-2)}else{for(n=U;n<_;n++)if(k[n]>e)break;n=Math.min(n-1,_-2)}U=n,H=e;var i=k[n+1]-k[n];if(0!==i)if(B=(e-k[n])/i,b)if(F=M[n],z=M[0===n?n:n-1],V=M[n>_-2?_-1:n+1],W=M[n>_-3?_-1:n+2],A)g(z,F,V,W,B,B*B,B*B*B,c(t,s),T);else{if(C)r=g(z,F,V,W,B,B*B,B*B*B,G,1),r=y(G);else{if(I)return h(F,V,B);r=m(z,F,V,W,B,B*B,B*B*B)}v(t,s,r)}else if(A)d(M[n],M[n+1],B,c(t,s),T);else{var r;if(C)d(M[n],M[n+1],B,G,1),r=y(G);else{if(I)return h(M[n],M[n+1],B);r=u(M[n],M[n+1],B)}v(t,s,r)}},Y=new i({target:t._target,life:w,loop:t._loop,delay:t._delay,onframe:j,ondestroy:n});return e&&"spline"!==e&&(Y.easing=e),Y}}}var _=function(t,e,n,i){this._tracks={},this._target=t,this._loop=e||!1,this._getter=n||l,this._setter=i||c,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};_.prototype={when:function(t,e){var n=this._tracks;for(var i in e)if(e.hasOwnProperty(i)){if(!n[i]){n[i]=[];var r=this._getter(this._target,i);if(null==r)continue;0!==t&&n[i].push({time:0,value:v(r)})}n[i].push({time:t,value:e[i]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].pause();this._paused=!0},resume:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var t=this._doneList,e=t.length,n=0;n<e;n++)t[n].call(this)},start:function(t,e){var n,i=this,r=0,a=function(){r--,r||i._doneCallback()};for(var o in this._tracks)if(this._tracks.hasOwnProperty(o)){var s=b(this,t,a,this._tracks[o],o,e);s&&(this._clipList.push(s),r++,this.animation&&this.animation.addClip(s),n=s)}if(n){var l=n.onframe;n.onframe=function(t,e){l(t,e);for(var n=0;n<i._onframeList.length;n++)i._onframeList[n](t,e)}}return r||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,n=this.animation,i=0;i<e.length;i++){var r=e[i];t&&r.onframe(this._target,1),n&&n.removeClip(r)}e.length=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}};var w=_;t.exports=w},"06c7":function(t,e,n){var i=n("6d8b"),r=n("4319"),a=n("31d9"),o=n("6179"),s=n("b1d4"),l=function(t,e){this.name=t||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=e};function c(t,e){this.root,this.data,this._nodes=[],this.hostModel=t,this.levelModels=i.map(e||[],(function(e){return new r(e,t,t.ecModel)}))}function u(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}l.prototype={constructor:l,isRemoved:function(){return this.dataIndex<0},eachNode:function(t,e,n){"function"===typeof t&&(n=e,e=t,t=null),t=t||{},i.isString(t)&&(t={order:t});var r,a=t.order||"preorder",o=this[t.attr||"children"];"preorder"===a&&(r=e.call(n,this));for(var s=0;!r&&s<o.length;s++)o[s].eachNode(t,e,n);"postorder"===a&&e.call(n,this)},updateDepthAndHeight:function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].getNodeById(t);if(r)return r}},contains:function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].contains(t);if(r)return r}},getAncestors:function(t){var e=[],n=t?this:this.parentNode;while(n)e.push(n),n=n.parentNode;return e.reverse(),e},getValue:function(t){var e=this.hostTree.data;return e.get(e.getDimension(t||"value"),this.dataIndex)},setLayout:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex),i=this.getLevelModel();return i?n.getModel(t,i.getModel(t)):n.getModel(t)}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this.hostTree.data.getItemVisual(this.dataIndex,t,e)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(t){var e=t.parentNode;while(e){if(e===this)return!0;e=e.parentNode}return!1},isDescendantOf:function(t){return t!==this&&t.isAncestorOf(this)}},c.prototype={constructor:c,type:"tree",eachNode:function(t,e,n){this.root.eachNode(t,e,n)},getNodeByDataIndex:function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n<i;n++)e[n].dataIndex=-1;for(n=0,i=t.count();n<i;n++)e[t.getRawIndex(n)].dataIndex=n},clearLayouts:function(){this.data.clearItemLayouts()}},c.createTree=function(t,e,n,r){var h=new c(e,n&&n.levels),d=[],f=1;function p(t,e){var n=t.value;f=Math.max(f,i.isArray(n)?n.length:1),d.push(t);var r=new l(t.name,h);e?u(r,e):h.root=r,h._nodes.push(r);var a=t.children;if(a)for(var o=0;o<a.length;o++)p(a[o],r)}p(t),h.root.updateDepthAndHeight(0);var g=s(d,{coordDimensions:["value"],dimensionsCount:f}),m=new o(g,e);return m.initData(d),r&&r(m),a({mainData:m,struct:h,structAttr:"tree"}),h.update(),h};var h=c;t.exports=h},"06ea":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),a=n("eaea"),o=n("5f14"),s=n("60e3"),l=n("3842"),c=l.reformIntervals,u=a.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(t,e){u.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var n=this._mode=this._determineMode();h[this._mode].call(this),this._resetSelected(t,e);var i=this.option.categories;this.resetVisual((function(t,e){"categories"===n?(t.mappingMethod="category",t.categories=r.clone(i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=r.map(this._pieceList,(function(t){t=r.clone(t);return"inRange"!==e&&(t.visual=null),t})))}))},completeVisualOption:function(){var t=this.option,e={},n=o.listVisualTypes(),i=this.isCategory();function l(t,e,n){return t&&t[e]&&(r.isObject(t[e])?t[e].hasOwnProperty(n):t[e]===n)}r.each(t.pieces,(function(t){r.each(n,(function(n){t.hasOwnProperty(n)&&(e[n]=1)}))})),r.each(e,(function(e,n){var a=0;r.each(this.stateList,(function(e){a|=l(t,e,n)||l(t.target,e,n)}),this),!a&&r.each(this.stateList,(function(e){(t[e]||(t[e]={}))[n]=s.get(n,"inRange"===e?"active":"inactive",i)}))}),this),a.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(t,e){var n=this.option,i=this._pieceList,a=(e?n:t).selected||{};if(n.selected=a,r.each(i,(function(t,e){var n=this.getSelectedMapKey(t);a.hasOwnProperty(n)||(a[n]=!0)}),this),"single"===n.selectedMode){var o=!1;r.each(i,(function(t,e){var n=this.getSelectedMapKey(t);a[n]&&(o?a[n]=!1:o=!0)}),this)}},getSelectedMapKey:function(t){return"categories"===this._mode?t.value+"":t.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(t){this.option.selected=r.clone(t)},getValueState:function(t){var e=o.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),(function(e,n){var r=o.findPieceIndex(e,this._pieceList);r===t&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},getRepresentValue:function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},getVisualMeta:function(t){if(!this.isCategory()){var e=[],n=[],i=this,a=this._pieceList.slice();if(a.length){var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}else a.push({interval:[-1/0,1/0]});var s=-1/0;return r.each(a,(function(t){var e=t.interval;e&&(e[0]>s&&l([s,e[0]],"outOfRange"),l(e.slice()),s=e[1])}),this),{stops:e,outerColors:n}}function l(r,a){var o=i.getRepresentValue({interval:r});a||(a=i.getValueState(o));var s=t(o,a);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}}}),h={splitNumber:function(){var t=this.option,e=this._pieceList,n=Math.min(t.precision,20),i=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;var o=(i[1]-i[0])/a;while(+o.toFixed(n)!==o&&n<5)n++;t.precision=n,o=+o.toFixed(n),t.minOpen&&e.push({interval:[-1/0,i[0]],close:[0,0]});for(var s=0,l=i[0];s<a;l+=o,s++){var u=s===a-1?i[1]:l+o;e.push({interval:[l,u],close:[1,1]})}t.maxOpen&&e.push({interval:[i[1],1/0],close:[0,0]}),c(e),r.each(e,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(){var t=this.option;r.each(t.categories,(function(t){this._pieceList.push({text:this.formatValueText(t,!0),value:t})}),this),d(t,this._pieceList)},pieces:function(){var t=this.option,e=this._pieceList;r.each(t.pieces,(function(t,n){r.isObject(t)||(t={value:t});var i={text:"",index:n};if(null!=t.label&&(i.text=t.label),t.hasOwnProperty("value")){var a=i.value=t.value;i.interval=[a,a],i.close=[1,1]}else{for(var s=i.interval=[],l=i.close=[0,0],c=[1,0,1],u=[-1/0,1/0],h=[],d=0;d<2;d++){for(var f=[["gte","gt","min"],["lte","lt","max"]][d],p=0;p<3&&null==s[d];p++)s[d]=t[f[p]],l[d]=c[p],h[d]=2===p;null==s[d]&&(s[d]=u[d])}h[0]&&s[1]===1/0&&(l[0]=0),h[1]&&s[0]===-1/0&&(l[1]=0),s[0]===s[1]&&l[0]&&l[1]&&(i.value=s[0])}i.visual=o.retrieveVisuals(t),e.push(i)}),this),d(t,e),c(e),r.each(e,(function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function d(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var f=u;t.exports=f},"07d7":function(t,e,n){var i=n("6d8b"),r=n("41ef"),a=n("607d"),o=n("65ed"),s=n("22d1"),l=n("eda2"),c=i.each,u=l.toCamelCase,h=["","-webkit-","-moz-","-o-"],d="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function f(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",n="left "+t+"s "+e+",top "+t+"s "+e;return i.map(h,(function(t){return t+"transition:"+n})).join(";")}function p(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();return i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px"),c(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}function g(t){var e=[],n=t.get("transitionDuration"),i=t.get("backgroundColor"),a=t.getModel("textStyle"),o=t.get("padding");return n&&e.push(f(n)),i&&(s.canvasSupported?e.push("background-Color:"+i):(e.push("background-Color:#"+r.toHex(i)),e.push("filter:alpha(opacity=70)"))),c(["width","color","radius"],(function(n){var i="border-"+n,r=u(i),a=t.get(r);null!=a&&e.push(i+":"+a+("color"===n?"":"px"))})),e.push(p(a)),null!=o&&e.push("padding:"+l.normalizeCssArray(o).join("px ")+"px"),e.join(";")+";"}function m(t,e,n,i,r){var a=e&&e.painter;if(n){var s=a&&a.getViewportRoot();s&&o.transformLocalCoord(t,s,document.body,i,r)}else{t[0]=i,t[1]=r;var l=a&&a.getViewportRootOffset();l&&(t[0]+=l.offsetLeft,t[1]+=l.offsetTop)}}function v(t,e,n){if(s.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;this._styleCoord=[0,0],m(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),o?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=r.handler,n=r.painter.getViewportRoot();a.normalizeEvent(n,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),n=t.style;"absolute"!==n.position&&"absolute"!==e.position&&(n.position="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el,n=this._styleCoord;e.style.cssText=d+g(t)+";left:"+n[0]+"px;top:"+n[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 n=this._styleCoord;m(n,this._zr,this._appendToBody,t,e);var i=this.el.style;i.left=n[0]+"px",i.top=n[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 n=document.defaultView.getComputedStyle(this.el);n&&(t+=parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),e+=parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:t,height:e}}};var y=v;t.exports=y},"07e6":function(t,e,n){n("4d85"),n("a753")},"0817":function(t,e,n){var i=n("3eba");n("f306"),n("0046"),n("60d7");var r=n("ab71");i.registerVisual(r)},"085d":function(t,e,n){var i=n("3eba");n("bd92"),n("19e2");var r=n("eabf"),a=n("4c99"),o=n("09b1");i.registerPreprocessor(r),i.registerVisual(a),i.registerLayout(o)},"08c3":function(t,e,n){var i=n("6d8b"),r=n("84ce"),a=function(t,e,n,i){r.call(this,t,e,n),this.type=i||"value",this.model=null};a.prototype={constructor:a,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},i.inherits(a,r);var o=a;t.exports=o},"09b1":function(t,e,n){var i=n("2306"),r=i.subPixelOptimize,a=n("cccd"),o=n("3842"),s=o.parsePercent,l=n("6d8b"),c=l.retrieve2,u="undefined"!==typeof Float32Array?Float32Array:Array,h={seriesType:"candlestick",plan:a(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=f(t,n),a=0,o=1,s=["x","y"],l=n.mapDimension(s[a]),c=n.mapDimension(s[o],!0),h=c[0],p=c[1],g=c[2],m=c[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(null==l||c.length<4))return{progress:t.pipelineContext.large?y:v};function v(t,n){var s;while(null!=(s=t.next())){var c=n.get(l,s),u=n.get(h,s),f=n.get(p,s),v=n.get(g,s),y=n.get(m,s),x=Math.min(u,f),b=Math.max(u,f),_=I(x,c),w=I(b,c),S=I(v,c),A=I(y,c),C=[];T(C,w,0),T(C,_,1),C.push(M(A),M(w),M(S),M(_)),n.setItemLayout(s,{sign:d(n,s,u,f,p),initBaseline:u>f?w[o]:_[o],ends:C,brushRect:k(v,y,c)})}function I(t,n){var i=[];return i[a]=n,i[o]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function T(t,e,n){var o=e.slice(),s=e.slice();o[a]=r(o[a]+i/2,1,!1),s[a]=r(s[a]-i/2,1,!0),n?t.push(o,s):t.push(s,o)}function k(t,e,n){var r=I(t,n),s=I(e,n);return r[a]-=i/2,s[a]-=i/2,{x:r[0],y:r[1],width:o?i:s[0]-r[0],height:o?s[1]-r[1]:i}}function M(t){return t[a]=r(t[a],1),t}}function y(t,n){var i,r,s=new u(4*t.count),c=0,f=[],v=[];while(null!=(r=t.next())){var y=n.get(l,r),x=n.get(h,r),b=n.get(p,r),_=n.get(g,r),w=n.get(m,r);isNaN(y)||isNaN(_)||isNaN(w)?(s[c++]=NaN,c+=3):(s[c++]=d(n,r,x,b,p),f[a]=y,f[o]=_,i=e.dataToPoint(f,null,v),s[c++]=i?i[0]:NaN,s[c++]=i?i[1]:NaN,f[o]=w,i=e.dataToPoint(f,null,v),s[c++]=i?i[1]:NaN)}n.setLayout("largePoints",s)}}};function d(t,e,n,i,r){var a;return a=n>i?-1:n<i?1:e>0?t.get(r,e-1)<=i?1:-1:1,a}function f(t,e){var n,i=t.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),a=s(c(t.get("barMaxWidth"),r),r),o=s(c(t.get("barMinWidth"),1),r),l=t.get("barWidth");return null!=l?s(l,r):Math.max(Math.min(r/2,a),o)}t.exports=h},"0a6d":function(t,e,n){n("e4d1"),n("7f72")},"0b44":function(t,e,n){var i=n("607d"),r=function(){this._track=[]};function a(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function o(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}r.prototype={constructor:r,recognize:function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,e,n){var r=t.touches;if(r){for(var a={points:[],touches:[],target:e,event:t},o=0,s=r.length;o<s;o++){var l=r[o],c=i.clientToLocal(n,l,{});a.points.push([c.zrX,c.zrY]),a.touches.push(l)}this._track.push(a)}},_recognize:function(t){for(var e in s)if(s.hasOwnProperty(e)){var n=s[e](this._track,t);if(n)return n}}};var s={pinch:function(t,e){var n=t.length;if(n){var i=(t[n-1]||{}).points,r=(t[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var s=a(i)/a(r);!isFinite(s)&&(s=1),e.pinchScale=s;var l=o(i);return e.pinchX=l[0],e.pinchY=l[1],{type:"pinch",target:t[0].target,event:e}}}}},l=r;t.exports=l},"0b4b":function(t,e,n){n("d28f"),n("f14c"),n("0ee7"),n("ebf9")},"0c12":function(t,e){function n(){}function i(t,e,n,i){for(var r=0,a=e.length,o=0,s=0;r<a;r++){var l=e[r];if(l.removed){for(c=[],u=s;u<s+l.count;u++)c.push(u);l.indices=c,s+=l.count}else{for(var c=[],u=o;u<o+l.count;u++)c.push(u);l.indices=c,o+=l.count,l.added||(s+=l.count)}}return e}function r(t){return{newPos:t.newPos,components:t.components.slice(0)}}n.prototype={diff:function(t,e,n){n||(n=function(t,e){return t===e}),this.equals=n;var a=this;t=t.slice(),e=e.slice();var o=e.length,s=t.length,l=1,c=o+s,u=[{newPos:-1,components:[]}],h=this.extractCommon(u[0],e,t,0);if(u[0].newPos+1>=o&&h+1>=s){for(var d=[],f=0;f<e.length;f++)d.push(f);return[{indices:d,count:e.length}]}function p(){for(var n=-1*l;n<=l;n+=2){var c,h=u[n-1],d=u[n+1],f=(d?d.newPos:0)-n;h&&(u[n-1]=void 0);var p=h&&h.newPos+1<o,g=d&&0<=f&&f<s;if(p||g){if(!p||g&&h.newPos<d.newPos?(c=r(d),a.pushComponent(c.components,void 0,!0)):(c=h,c.newPos++,a.pushComponent(c.components,!0,void 0)),f=a.extractCommon(c,e,t,n),c.newPos+1>=o&&f+1>=s)return i(a,c.components,e,t);u[n]=c}else u[n]=void 0}l++}while(l<=c){var g=p();if(g)return g}},pushComponent:function(t,e,n){var i=t[t.length-1];i&&i.added===e&&i.removed===n?t[t.length-1]={count:i.count+1,added:e,removed:n}:t.push({count:1,added:e,removed:n})},extractCommon:function(t,e,n,i){var r=e.length,a=n.length,o=t.newPos,s=o-i,l=0;while(o+1<r&&s+1<a&&this.equals(e[o+1],n[s+1]))o++,s++,l++;return l&&t.components.push({count:l}),t.newPos=o,s},tokenize:function(t){return t.slice()},join:function(t){return t.slice()}};var a=new n;function o(t,e,n){return a.diff(t,e,n)}t.exports=o},"0c41":function(t,e,n){var i=n("6d8b"),r=n("4a01"),a=n("01ef"),o=n("c526"),s=o.onIrrelevantElement,l=n("2306"),c=n("5b87"),u=n("8918"),h=u.getUID,d=n("0cde");function f(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function p(t,e,n,r,a){n.off("click"),n.off("mousedown"),e.get("selectedMode")&&(n.on("mousedown",(function(){t._mouseDownFlag=!0})),n.on("click",(function(o){if(t._mouseDownFlag){t._mouseDownFlag=!1;var s=o.target;while(!s.__regions)s=s.parent;if(s){var l={type:("geo"===e.mainType?"geo":"map")+"ToggleSelect",batch:i.map(s.__regions,(function(t){return{name:t.name,from:a.uid}}))};l[e.mainType+"Id"]=e.id,r.dispatchAction(l),g(e,n)}}})))}function g(t,e){e.eachChild((function(e){i.each(e.__regions,(function(n){e.trigger(t.isSelected(n.name)?"emphasis":"normal")}))}))}function m(t,e){var n=new l.Group;this.uid=h("ec_map_draw"),this._controller=new r(t.getZr()),this._controllerHost={target:e?n:null},this.group=n,this._updateGroup=e,this._mouseDownFlag,this._mapName,this._initialized,n.add(this._regionsGroup=new l.Group),n.add(this._backgroundGroup=new l.Group)}m.prototype={constructor:m,draw:function(t,e,n,r,a){var o="geo"===t.mainType,s=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},(function(e){s||e.getHostGeoModel()!==t||(s=e.getData())}));var c=t.coordinateSystem;this._updateBackground(c);var u,h=this._regionsGroup,m=this.group,v=c.getTransformInfo(),y=!h.childAt(0)||a;if(y)m.transform=v.roamTransform,m.decomposeTransform(),m.dirty();else{var x=new d;x.transform=v.roamTransform,x.decomposeTransform();var b={scale:x.scale,position:x.position};u=x.scale,l.updateProps(m,b,t)}var _=v.rawScale,w=v.rawPosition;h.removeAll();var S=["itemStyle"],A=["emphasis","itemStyle"],C=["label"],I=["emphasis","label"],T=i.createHashMap();i.each(c.regions,(function(e){var n=T.get(e.name)||T.set(e.name,new l.Group),r=new l.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});n.add(r);var a,c=t.getRegionModel(e.name)||t,d=c.getModel(S),p=c.getModel(A),g=f(d),v=f(p),x=c.getModel(C),b=c.getModel(I);if(s){a=s.indexOfName(e.name);var k=s.getItemVisual(a,"color",!0);k&&(g.fill=k)}var M=function(t){return[t[0]*_[0]+w[0],t[1]*_[1]+w[1]]};i.each(e.geometries,(function(t){if("polygon"===t.type){for(var e=[],n=0;n<t.exterior.length;++n)e.push(M(t.exterior[n]));r.shape.paths.push(new l.Polygon({segmentIgnoreThreshold:1,shape:{points:e}}));for(n=0;n<(t.interiors?t.interiors.length:0);++n){for(var i=t.interiors[n],a=(e=[],0);a<i.length;++a)e.push(M(i[a]));r.shape.paths.push(new l.Polygon({segmentIgnoreThreshold:1,shape:{points:e}}))}}})),r.setStyle(g),r.style.strokeNoScale=!0,r.culling=!0;var D=x.get("show"),E=b.get("show"),L=s&&isNaN(s.get(s.mapDimension("value"),a)),P=s&&s.getItemLayout(a);if(o||L&&(D||E)||P&&P.showLabel){var O,R=o?e.name:a;(!s||a>=0)&&(O=t);var N=new l.Text({position:M(e.center.slice()),scale:[1/m.scale[0],1/m.scale[1]],z2:10,silent:!0});if(l.setLabelStyle(N.style,N.hoverStyle={},x,b,{labelFetcher:O,labelDataIndex:R,defaultText:e.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!y){var B=[1/u[0],1/u[1]];l.updateProps(N,{scale:B},t)}n.add(N)}if(s)s.setItemGraphicEl(a,n);else{c=t.getRegionModel(e.name);r.eventData={componentType:"geo",componentIndex:t.componentIndex,geoIndex:t.componentIndex,name:e.name,region:c&&c.option||{}}}var z=n.__regions||(n.__regions=[]);z.push(e),n.highDownSilentOnTouch=!!t.get("selectedMode"),l.setHoverStyle(n,v),h.add(n)})),this._updateController(t,e,n),p(this,t,h,n,r),g(t,h)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&c.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(t){var e=t.map;this._mapName!==e&&i.each(c.makeGraphic(e,this.uid),(function(t){this._backgroundGroup.add(t)}),this),this._mapName=e},_updateController:function(t,e,n){var r=t.coordinateSystem,o=this._controller,l=this._controllerHost;l.zoomLimit=t.get("scaleLimit"),l.zoom=r.getZoom(),o.enable(t.get("roam")||!1);var c=t.mainType;function u(){var e={type:"geoRoam",componentType:c};return e[c+"Id"]=t.id,e}o.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,a.updateViewOnPan(l,t.dx,t.dy),n.dispatchAction(i.extend(u(),{dx:t.dx,dy:t.dy}))}),this),o.off("zoom").on("zoom",(function(t){if(this._mouseDownFlag=!1,a.updateViewOnZoom(l,t.scale,t.originX,t.originY),n.dispatchAction(i.extend(u(),{zoom:t.scale,originX:t.originX,originY:t.originY})),this._updateGroup){var e=this.group.scale;this._regionsGroup.traverse((function(t){"text"===t.type&&t.attr("scale",[1/e[0],1/e[1]])}))}}),this),o.setPointerChecker((function(e,i,a){return r.getViewRectAfterRoam().contain(i,a)&&!s(e,n,t)}))}};var v=m;t.exports=v},"0cde":function(t,e,n){var i=n("1687"),r=n("401b"),a=i.identity,o=5e-5;function s(t){return t>o||t<-o}var l=function(t){t=t||{},t.position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},c=l.prototype;c.transform=null,c.needLocalTransform=function(){return s(this.rotation)||s(this.position[0])||s(this.position[1])||s(this.scale[0]-1)||s(this.scale[1]-1)};var u=[];c.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),r=this.transform;if(n||e){r=r||i.create(),n?this.getLocalTransform(r):a(r),e&&(n?i.mul(r,t.transform,r):i.copy(r,t.transform)),this.transform=r;var o=this.globalScaleRatio;if(null!=o&&1!==o){this.getGlobalScale(u);var s=u[0]<0?-1:1,l=u[1]<0?-1:1,c=((u[0]-s)*o+s)/u[0]||0,h=((u[1]-l)*o+l)/u[1]||0;r[0]*=c,r[1]*=c,r[2]*=h,r[3]*=h}this.invTransform=this.invTransform||i.create(),i.invert(this.invTransform,r)}else r&&a(r)},c.getLocalTransform=function(t){return l.getLocalTransform(this,t)},c.setTransform=function(t){var e=this.transform,n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)},c.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var h=[],d=i.create();c.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=this.position,r=this.scale;s(e-1)&&(e=Math.sqrt(e)),s(n-1)&&(n=Math.sqrt(n)),t[0]<0&&(e=-e),t[3]<0&&(n=-n),i[0]=t[4],i[1]=t[5],r[0]=e,r[1]=n,this.rotation=Math.atan2(-t[1]/n,t[0]/e)}},c.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(i.mul(h,t.invTransform,e),e=h);var n=this.origin;n&&(n[0]||n[1])&&(d[4]=n[0],d[5]=n[1],i.mul(h,e,d),h[4]-=n[0],h[5]-=n[1],e=h),this.setLocalTransform(e)}},c.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},c.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&r.applyTransform(n,n,i),n},c.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&r.applyTransform(n,n,i),n},l.getLocalTransform=function(t,e){e=e||[],a(e);var n=t.origin,r=t.scale||[1,1],o=t.rotation||0,s=t.position||[0,0];return n&&(e[4]-=n[0],e[5]-=n[1]),i.scale(e,e,r),o&&i.rotate(e,e,o),n&&(e[4]+=n[0],e[5]+=n[1]),e[4]+=s[0],e[5]+=s[1],e};var f=l;t.exports=f},"0da8":function(t,e,n){var i=n("19eb"),r=n("9850"),a=n("6d8b"),o=n("5e76");function s(t){i.call(this,t)}s.prototype={constructor:s,type:"image",brush:function(t,e){var n=this.style,i=n.image;n.bind(t,this,e);var r=this._image=o.createOrUpdateImage(i,this._image,this,this.onload);if(r&&o.isImageReady(r)){var a=n.x||0,s=n.y||0,l=n.width,c=n.height,u=r.width/r.height;if(null==l&&null!=c?l=c*u:null==c&&null!=l?c=l/u:null==l&&null==c&&(l=r.width,c=r.height),this.setTransform(t),n.sWidth&&n.sHeight){var h=n.sx||0,d=n.sy||0;t.drawImage(r,h,d,n.sWidth,n.sHeight,a,s,l,c)}else if(n.sx&&n.sy){h=n.sx,d=n.sy;var f=l-h,p=c-d;t.drawImage(r,h,d,f,p,a,s,l,c)}else t.drawImage(r,a,s,l,c);null!=n.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new r(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect}},a.inherits(s,i);var l=s;t.exports=l},"0e0f":function(t,e,n){var i=n("5f14"),r=n("6d8b");function a(t,e){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph(),n=e.nodes;if(n.length){var a=1/0,o=-1/0;r.each(n,(function(t){var e=t.getLayout().value;e<a&&(a=e),e>o&&(o=e)})),r.each(n,(function(e){var n=new i({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:t.get("color")}),r=n.mapValueToVisual(e.getLayout().value),s=e.getModel().get("itemStyle.color");null!=s?e.setVisual("color",s):e.setVisual("color",r)}))}}))}t.exports=a},"0ee7":function(t,e,n){var i=n("6d8b"),r=n("2306"),a=n("f934"),o=n("5e97"),s=r.Group,l=["width","height"],c=["x","y"],u=o.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){u.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new s),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new s),this._showController},resetInner:function(){u.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(t,e,n,a,o,s,l){var c=this;u.superCall(this,"renderInner",t,e,n,a,o,s,l);var h=this._controllerGroup,d=e.get("pageIconSize",!0);i.isArray(d)||(d=[d,d]),p("pagePrev",0);var f=e.getModel("pageTextStyle");function p(t,n){var o=t+"DataIndex",s=r.createIcon(e.get("pageIcons",!0)[e.getOrient().name][n],{onclick:i.bind(c._pageGo,c,o,e,a)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});s.name=t,h.add(s)}h.add(new r.Text({name:"pageText",style:{textFill:f.getTextColor(),font:f.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),p("pageNext",1)},layoutInner:function(t,e,n,r,o,s){var u=this.getSelectorGroup(),h=t.getOrient().index,d=l[h],f=c[h],p=l[1-h],g=c[1-h];o&&a.box("horizontal",u,t.get("selectorItemGap",!0));var m=t.get("selectorButtonGap",!0),v=u.getBoundingRect(),y=[-v.x,-v.y],x=i.clone(n);o&&(x[d]=n[d]-v[d]-m);var b=this._layoutContentAndController(t,r,x,h,d,p,g);if(o){if("end"===s)y[h]+=b[d]+m;else{var _=v[d]+m;y[h]-=_,b[f]-=_}b[d]+=v[d]+m,y[1-h]+=b[g]+b[p]/2-v[p]/2,b[p]=Math.max(b[p],v[p]),b[g]=Math.min(b[g],v[g]+y[1-h]),u.attr("position",y)}return b},_layoutContentAndController:function(t,e,n,o,s,l,c){var u=this.getContentGroup(),h=this._containerGroup,d=this._controllerGroup;a.box(t.get("orient"),u,t.get("itemGap"),o?n.width:null,o?null:n.height),a.box("horizontal",d,t.get("pageButtonItemGap",!0));var f=u.getBoundingRect(),p=d.getBoundingRect(),g=this._showController=f[s]>n[s],m=[-f.x,-f.y];e||(m[o]=u.position[o]);var v=[0,0],y=[-p.x,-p.y],x=i.retrieve2(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(g){var b=t.get("pageButtonPosition",!0);"end"===b?y[o]+=n[s]-p[s]:v[o]+=p[s]+x}y[1-o]+=f[l]/2-p[l]/2,u.attr("position",m),h.attr("position",v),d.attr("position",y);var _={x:0,y:0};if(_[s]=g?n[s]:f[s],_[l]=Math.max(f[l],p[l]),_[c]=Math.min(0,p[c]+y[1-o]),h.__rectSize=n[s],g){var w={x:0,y:0};w[s]=Math.max(n[s]-p[s]-x,0),w[l]=_[l],h.setClipPath(new r.Rect({shape:w})),h.__rectSize=w[s]}else d.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var S=this._getPageInfo(t);return null!=S.pageIndex&&r.updateProps(u,{position:S.contentPosition},!!g&&t),this._updatePageInfoView(t,S),_},_pageGo:function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},_updatePageInfoView:function(t,e){var n=this._controllerGroup;i.each(["pagePrev","pageNext"],(function(i){var r=null!=e[i+"DataIndex"],a=n.childOfName(i);a&&(a.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=r?"pointer":"default")}));var r=n.childOfName("pageText"),a=t.get("pageFormatter"),o=e.pageIndex,s=null!=o?o+1:0,l=e.pageCount;r&&a&&r.setStyle("text",i.isString(a)?a.replace("{current}",s).replace("{total}",l):a({current:s,total:l}))},_getPageInfo:function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,a=l[r],o=c[r],s=this._findTargetItemIndex(e),u=n.children(),h=u[s],d=u.length,f=d?1:0,p={contentPosition:n.position.slice(),pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return p;var g=b(h);p.contentPosition[r]=-g.s;for(var m=s+1,v=g,y=g,x=null;m<=d;++m)x=b(u[m]),(!x&&y.e>v.s+i||x&&!_(x,v.s))&&(v=y.i>v.i?y:x,v&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=v.i),++p.pageCount)),y=x;for(m=s-1,v=g,y=g,x=null;m>=-1;--m)x=b(u[m]),x&&_(y,x.s)||!(v.i<y.i)||(y=v,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=v.i),++p.pageCount,++p.pageIndex),v=x;return p;function b(t){if(t){var e=t.getBoundingRect(),n=e[o]+t.position[r];return{s:n,e:n+e[a],i:t.__legendDataIndex}}}function _(t,e){return t.e>=e&&t.s<=e+i}},_findTargetItemIndex:function(t){if(!this._showController)return 0;var e,n,i=this.getContentGroup();return i.eachChild((function(i,r){var a=i.__legendDataIndex;null==n&&null!=a&&(n=r),a===t&&(e=r)})),null!=e?e:n}}),h=u;t.exports=h},"0f55":function(t,e,n){var i=n("6d8b"),r=n("84ce"),a=function(t,e,n,i,a){r.call(this,t,e,n),this.type=i||"value",this.axisIndex=a};a.prototype={constructor:a,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},i.inherits(a,r);var o=a;t.exports=o},"0f99":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("e0d3")),a=r.makeInner,o=r.getDataItemValue,s=n("6d8b"),l=s.createHashMap,c=s.each,u=s.map,h=s.isArray,d=s.isString,f=s.isObject,p=s.isTypedArray,g=s.isArrayLike,m=s.extend,v=(s.assert,n("ec6f")),y=n("93d0"),x=y.SOURCE_FORMAT_ORIGINAL,b=y.SOURCE_FORMAT_ARRAY_ROWS,_=y.SOURCE_FORMAT_OBJECT_ROWS,w=y.SOURCE_FORMAT_KEYED_COLUMNS,S=y.SOURCE_FORMAT_UNKNOWN,A=y.SOURCE_FORMAT_TYPED_ARRAY,C=y.SERIES_LAYOUT_BY_ROW,I={Must:1,Might:2,Not:3},T=a();function k(t){var e=t.option.source,n=S;if(p(e))n=A;else if(h(e)){0===e.length&&(n=b);for(var i=0,r=e.length;i<r;i++){var a=e[i];if(null!=a){if(h(a)){n=b;break}if(f(a)){n=_;break}}}}else if(f(e)){for(var o in e)if(e.hasOwnProperty(o)&&g(e[o])){n=w;break}}else if(null!=e)throw new Error("Invalid data");T(t).sourceFormat=n}function M(t){return T(t).source}function D(t){T(t).datasetMap=l()}function E(t){var e=t.option,n=e.data,i=p(n)?A:x,r=!1,a=e.seriesLayoutBy,o=e.sourceHeader,s=e.dimensions,l=z(t);if(l){var c=l.option;n=c.source,i=T(l).sourceFormat,r=!0,a=a||c.seriesLayoutBy,null==o&&(o=c.sourceHeader),s=s||c.dimensions}var u=L(n,i,a,o,s);T(t).source=new v({data:n,fromDataset:r,seriesLayoutBy:a,sourceFormat:i,dimensionsDefine:u.dimensionsDefine,startIndex:u.startIndex,dimensionsDetectCount:u.dimensionsDetectCount,encodeDefine:e.encode})}function L(t,e,n,i,r){if(!t)return{dimensionsDefine:P(r)};var a,s;if(e===b)"auto"===i||null==i?O((function(t){null!=t&&"-"!==t&&(d(t)?null==s&&(s=1):s=0)}),n,t,10):s=i?1:0,r||1!==s||(r=[],O((function(t,e){r[e]=null!=t?t:""}),n,t)),a=r?r.length:n===C?t.length:t[0]?t[0].length:null;else if(e===_)r||(r=R(t));else if(e===w)r||(r=[],c(t,(function(t,e){r.push(e)})));else if(e===x){var l=o(t[0]);a=h(l)&&l.length||1}return{startIndex:s,dimensionsDefine:P(r),dimensionsDetectCount:a}}function P(t){if(t){var e=l();return u(t,(function(t,n){if(t=m({},f(t)?t:{name:t}),null==t.name)return t;t.name+="",null==t.displayName&&(t.displayName=t.name);var i=e.get(t.name);return i?t.name+="-"+i.count++:e.set(t.name,{count:1}),t}))}}function O(t,e,n,i){if(null==i&&(i=1/0),e===C)for(var r=0;r<n.length&&r<i;r++)t(n[r]?n[r][0]:null,r);else{var a=n[0]||[];for(r=0;r<a.length&&r<i;r++)t(a[r],r)}}function R(t){var e,n=0;while(n<t.length&&!(e=t[n++]));if(e){var i=[];return c(e,(function(t,e){i.push(e)})),i}}function N(t,e,n){var i={},r=z(e);if(!r||!t)return i;var a,o,s=[],l=[],u=e.ecModel,h=T(u).datasetMap,d=r.uid+"_"+n.seriesLayoutBy;t=t.slice(),c(t,(function(e,n){!f(e)&&(t[n]={name:e}),"ordinal"===e.type&&null==a&&(a=n,o=m(t[n])),i[e.name]=[]}));var p=h.get(d)||h.set(d,{categoryWayDim:o,valueWayDim:0});function g(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function m(t){var e=t.dimsDef;return e?e.length:1}return c(t,(function(t,e){var n=t.name,r=m(t);if(null==a){var o=p.valueWayDim;g(i[n],o,r),g(l,o,r),p.valueWayDim+=r}else if(a===e)g(i[n],0,r),g(s,0,r);else{o=p.categoryWayDim;g(i[n],o,r),g(l,o,r),p.categoryWayDim+=r}})),s.length&&(i.itemName=s),l.length&&(i.seriesName=l),i}function B(t,e,n){var i={},r=z(t);if(!r)return i;var a,o=e.sourceFormat,s=e.dimensionsDefine;o!==_&&o!==w||c(s,(function(t,e){"name"===(f(t)?t.name:t)&&(a=e)}));var l=function(){for(var t={},i={},r=[],l=0,c=Math.min(5,n);l<c;l++){var u=V(e.data,o,e.seriesLayoutBy,s,e.startIndex,l);r.push(u);var h=u===I.Not;if(h&&null==t.v&&l!==a&&(t.v=l),(null==t.n||t.n===t.v||!h&&r[t.n]===I.Not)&&(t.n=l),d(t)&&r[t.n]!==I.Not)return t;h||(u===I.Might&&null==i.v&&l!==a&&(i.v=l),null!=i.n&&i.n!==i.v||(i.n=l))}function d(t){return null!=t.v&&null!=t.n}return d(t)?t:d(i)?i:null}();if(l){i.value=l.v;var u=null!=a?a:l.n;i.itemName=[u],i.seriesName=[u]}return i}function z(t){var e=t.option,n=e.data;if(!n)return t.ecModel.getComponent("dataset",e.datasetIndex||0)}function F(t,e){return V(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function V(t,e,n,i,r,a){var s,l,c,u=5;if(p(t))return I.Not;if(i){var g=i[a];f(g)?(l=g.name,c=g.type):d(g)&&(l=g)}if(null!=c)return"ordinal"===c?I.Must:I.Not;if(e===b)if(n===C){for(var m=t[a],v=0;v<(m||[]).length&&v<u;v++)if(null!=(s=T(m[r+v])))return s}else for(v=0;v<t.length&&v<u;v++){var y=t[r+v];if(y&&null!=(s=T(y[a])))return s}else if(e===_){if(!l)return I.Not;for(v=0;v<t.length&&v<u;v++){var S=t[v];if(S&&null!=(s=T(S[l])))return s}}else if(e===w){if(!l)return I.Not;m=t[l];if(!m||p(m))return I.Not;for(v=0;v<m.length&&v<u;v++)if(null!=(s=T(m[v])))return s}else if(e===x)for(v=0;v<t.length&&v<u;v++){S=t[v];var A=o(S);if(!h(A))return I.Not;if(null!=(s=T(A[a])))return s}function T(t){var e=d(t);return null!=t&&isFinite(t)&&""!==t?e?I.Might:I.Not:e&&"-"!==t?I.Must:void 0}return I.Not}e.BE_ORDINAL=I,e.detectSourceFormat=k,e.getSource=M,e.resetSourceDefaulter=D,e.prepareSource=E,e.makeSeriesEncodeForAxisCoordSys=N,e.makeSeriesEncodeForNameBased=B,e.guessOrdinal=F},"0fd3":function(t,e,n){var i=n("2306"),r=n("7e5b"),a=n("6d8b"),o=n("a15a"),s=o.createSymbol,l=n("401b"),c=n("4a3f");function u(t,e,n){i.Group.call(this),this.add(this.createLine(t,e,n)),this._updateEffectSymbol(t,e)}var h=u.prototype;h.createLine=function(t,e,n){return new r(t,e,n)},h._updateEffectSymbol=function(t,e){var n=t.getItemModel(e),i=n.getModel("effect"),r=i.get("symbolSize"),o=i.get("symbol");a.isArray(r)||(r=[r,r]);var l=i.get("color")||t.getItemVisual(e,"color"),c=this.childAt(1);this._symbolType!==o&&(this.remove(c),c=s(o,-.5,-.5,1,1,l),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",l),c.setStyle(i.getItemStyle(["color"])),c.attr("scale",r),c.setColor(l),c.attr("scale",r),this._symbolType=o,this._symbolScale=r,this._updateEffectAnimation(t,i,e))},h._updateEffectAnimation=function(t,e,n){var i=this.childAt(1);if(i){var r=this,o=t.getItemLayout(n),s=1e3*e.get("period"),l=e.get("loop"),c=e.get("constantSpeed"),u=a.retrieve(e.get("delay"),(function(e){return e/t.count()*s/3})),h="function"===typeof u;if(i.ignore=!0,this.updateAnimationPoints(i,o),c>0&&(s=this.getLineLength(i)/c*1e3),s!==this._period||l!==this._loop){i.stopAnimation();var d=u;h&&(d=u(n)),i.__t>0&&(d=-s*i.__t),i.__t=0;var f=i.animate("",l).when(s,{__t:1}).delay(d).during((function(){r.updateSymbolPosition(i)}));l||f.done((function(){r.remove(i)})),f.start()}this._period=s,this._loop=l}},h.getLineLength=function(t){return l.dist(t.__p1,t.__cp1)+l.dist(t.__cp1,t.__p2)},h.updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},h.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},h.updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t,a=t.position,o=[a[0],a[1]],s=c.quadraticAt,u=c.quadraticDerivativeAt;a[0]=s(e[0],i[0],n[0],r),a[1]=s(e[1],i[1],n[1],r);var h=u(e[0],i[0],n[0],r),d=u(e[1],i[1],n[1],r);if(t.rotation=-Math.atan2(d,h)-Math.PI/2,"line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)if(void 0!==t.__lastT&&t.__lastT<t.__t){var f=1.05*l.dist(o,a);t.attr("scale",[t.scale[0],f]),1===r&&(a[0]=o[0]+(a[0]-o[0])/2,a[1]=o[1]+(a[1]-o[1])/2)}else if(1===t.__lastT){f=2*l.dist(e,a);t.attr("scale",[t.scale[0],f])}else t.attr("scale",this._symbolScale);t.__lastT=t.__t,t.ignore=!1},h.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},a.inherits(u,i.Group);var d=u;t.exports=d},"10cc":function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=n("9850"),o=n("2b8c"),s=n("a890"),l=n("88b3"),c=n("bd9e"),u=["inBrush","outOfBrush"],h="__ecBrushSelect",d="__ecInBrushSelectEvent",f=i.PRIORITY.VISUAL.BRUSH;function p(t){t.eachComponent({mainType:"brush"},(function(e){var n=e.brushTargetManager=new c(e.option,t);n.setInputRanges(e.areas,t)}))}function g(t,e,n,i,r){if(r){var a=t.getZr();if(!a[d]){a[h]||(a[h]=m);var o=l.createOrUpdate(a,h,n,e);o(t,i)}}}function m(t,e){if(!t.isDisposed()){var n=t.getZr();n[d]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[d]=!1}}function v(t,e,n,i){for(var r=0,a=e.length;r<a;r++){var o=e[r];if(t[o.brushType](i,n,o.selectors,o))return!0}}function y(t){var e=t.brushSelector;if(r.isString(e)){var n=[];return r.each(s,(function(t,i){n[i]=function(n,i,r,a){var o=i.getItemLayout(n);return t[e](o,r,a)}})),n}if(r.isFunction(e)){var i={};return r.each(s,(function(t,n){i[n]=e})),i}return e}function x(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(r.isArray(n)?r.indexOf(n,e)<0:e!==n)}function b(t){var e=t.selectors={};return r.each(s[t.brushType],(function(n,i){e[i]=function(i){return n(i,e,t)}})),t}i.registerLayout(f,(function(t,e,n){t.eachComponent({mainType:"brush"},(function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),p(t)})),i.registerVisual(f,(function(t,e,n){var i,a,s=[];t.eachComponent({mainType:"brush"},(function(e,n){var l={brushId:e.id,brushIndex:n,brushName:e.name,areas:r.clone(e.areas),selected:[]};s.push(l);var c=e.option,h=c.brushLink,d=[],f=[],p=[],g=0;n||(i=c.throttleType,a=c.throttleDelay);var m=r.map(e.areas,(function(t){return b(r.defaults({boundingRect:_[t.brushType](t)},t))})),w=o.createVisualMappings(e.option,u,(function(t){t.mappingMethod="fixed"}));function S(t){return"all"===h||d[t]}function A(t){return!!t.length}function C(t,e){var n=t.coordinateSystem;g|=n.hasAxisBrushed(),S(e)&&n.eachActiveState(t.getData(),(function(t,e){"active"===t&&(f[e]=1)}))}function I(n,i,a){var o=y(n);if(o&&!x(e,i)&&(r.each(m,(function(i){o[i.brushType]&&e.brushTargetManager.controlSeries(i,n,t)&&a.push(i),g|=A(a)})),S(i)&&A(a))){var s=n.getData();s.each((function(t){v(o,a,s,t)&&(f[t]=1)}))}}r.isArray(h)&&r.each(h,(function(t){d[t]=1})),t.eachSeries((function(t,e){var n=p[e]=[];"parallel"===t.subType?C(t,e,n):I(t,e,n)})),t.eachSeries((function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};l.selected.push(n);var i=y(t),r=p[e],a=t.getData(),s=S(e)?function(t){return f[t]?(n.dataIndex.push(a.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(t){return v(i,r,a,t)?(n.dataIndex.push(a.getRawIndex(t)),"inBrush"):"outOfBrush"};(S(e)?g:A(r))&&o.applyVisual(u,w,a,s)}))})),g(e,i,a,s,n)}));var _={lineX:r.noop,lineY:r.noop,rect:function(t){return w(t.range)},polygon:function(t){for(var e,n=t.range,i=0,r=n.length;i<r;i++){e=e||[[1/0,-1/0],[1/0,-1/0]];var a=n[i];a[0]<e[0][0]&&(e[0][0]=a[0]),a[0]>e[0][1]&&(e[0][1]=a[0]),a[1]<e[1][0]&&(e[1][0]=a[1]),a[1]>e[1][1]&&(e[1][1]=a[1])}return e&&w(e)}};function w(t){return new a(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}e.layoutCovers=p},1111:function(t,e,n){var i=n("3eba");n("67a8"),n("4784");var r=n("7f96"),a=n("87c3");i.registerVisual(r("effectScatter","circle")),i.registerLayout(a("effectScatter"))},"133d":function(t,e,n){var i=n("6d8b"),r=n("e0d3");function a(t,e){var n,a=[],o=t.seriesIndex;if(null==o||!(n=e.getSeriesByIndex(o)))return{point:[]};var s=n.getData(),l=r.queryDataIndex(s,t);if(null==l||l<0||i.isArray(l))return{point:[]};var c=s.getItemGraphicEl(l),u=n.coordinateSystem;if(n.getTooltipPosition)a=n.getTooltipPosition(l)||[];else if(u&&u.dataToPoint)a=u.dataToPoint(s.getValues(i.map(u.dimensions,(function(t){return s.mapDimension(t)})),l,!0))||[];else if(c){var h=c.getBoundingRect().clone();h.applyTransform(c.transform),a=[h.x+h.width/2,h.y+h.height/2]}return{point:a,el:c}}t.exports=a},1418:function(t,e,n){var i=n("6d8b"),r=n("a15a"),a=r.createSymbol,o=n("2306"),s=n("3842"),l=s.parsePercent,c=n("c775"),u=c.getDefaultLabel;function h(t,e,n){o.Group.call(this),this.updateData(t,e,n)}var d=h.prototype,f=h.getSymbolSize=function(t,e){var n=t.getItemVisual(e,"symbolSize");return n instanceof Array?n.slice():[+n,+n]};function p(t){return[t[0]/2,t[1]/2]}function g(t,e){this.parent.drift(t,e)}d._createSymbol=function(t,e,n,i,r){this.removeAll();var o=e.getItemVisual(n,"color"),s=a(t,-1,-1,2,2,o,r);s.attr({z2:100,culling:!0,scale:p(i)}),s.drift=g,this._symbolType=t,this.add(s)},d.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},d.getSymbolPath=function(){return this.childAt(0)},d.getScale=function(){return this.childAt(0).scale},d.highlight=function(){this.childAt(0).trigger("emphasis")},d.downplay=function(){this.childAt(0).trigger("normal")},d.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},d.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},d.updateData=function(t,e,n){this.silent=!1;var i=t.getItemVisual(e,"symbol")||"circle",r=t.hostModel,a=f(t,e),s=i!==this._symbolType;if(s){var l=t.getItemVisual(e,"symbolKeepAspect");this._createSymbol(i,t,e,a,l)}else{var c=this.childAt(0);c.silent=!1,o.updateProps(c,{scale:p(a)},r,e)}if(this._updateCommon(t,e,a,n),s){c=this.childAt(0);var u=n&&n.fadeIn,h={scale:c.scale.slice()};u&&(h.style={opacity:c.style.opacity}),c.scale=[0,0],u&&(c.style.opacity=0),o.initProps(c,h,r,e)}this._seriesModel=r};var m=["itemStyle"],v=["emphasis","itemStyle"],y=["label"],x=["emphasis","label"];function b(t,e){if(!this.incremental&&!this.useHoverLayer)if("emphasis"===e){var n=this.__symbolOriginalScale,i=n[1]/n[0],r={scale:[Math.max(1.1*n[0],n[0]+3),Math.max(1.1*n[1],n[1]+3*i)]};this.animateTo(r,400,"elasticOut")}else"normal"===e&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}d._updateCommon=function(t,e,n,r){var a=this.childAt(0),s=t.hostModel,c=t.getItemVisual(e,"color");"image"!==a.type?a.useStyle({strokeNoScale:!0}):a.setStyle({opacity:null,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var h=r&&r.itemStyle,d=r&&r.hoverItemStyle,f=r&&r.symbolOffset,g=r&&r.labelModel,_=r&&r.hoverLabelModel,w=r&&r.hoverAnimation,S=r&&r.cursorStyle;if(!r||t.hasItemOption){var A=r&&r.itemModel?r.itemModel:t.getItemModel(e);h=A.getModel(m).getItemStyle(["color"]),d=A.getModel(v).getItemStyle(),f=A.getShallow("symbolOffset"),g=A.getModel(y),_=A.getModel(x),w=A.getShallow("hoverAnimation"),S=A.getShallow("cursor")}else d=i.extend({},d);var C=a.style,I=t.getItemVisual(e,"symbolRotate");a.attr("rotation",(I||0)*Math.PI/180||0),f&&a.attr("position",[l(f[0],n[0]),l(f[1],n[1])]),S&&a.attr("cursor",S),a.setColor(c,r&&r.symbolInnerColor),a.setStyle(h);var T=t.getItemVisual(e,"opacity");null!=T&&(C.opacity=T);var k=t.getItemVisual(e,"liftZ"),M=a.__z2Origin;null!=k?null==M&&(a.__z2Origin=a.z2,a.z2+=k):null!=M&&(a.z2=M,a.__z2Origin=null);var D=r&&r.useNameLabel;function E(e,n){return D?t.getName(e):u(t,e)}o.setLabelStyle(C,d,g,_,{labelFetcher:s,labelDataIndex:e,defaultText:E,isRectText:!0,autoColor:c}),a.__symbolOriginalScale=p(n),a.hoverStyle=d,a.highDownOnUpdate=w&&s.isAnimationEnabled()?b:null,o.setHoverStyle(a)},d.fadeOut=function(t,e){var n=this.childAt(0);this.silent=n.silent=!0,(!e||!e.keepLabel)&&(n.style.text=null),o.updateProps(n,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,t)},i.inherits(h,o.Group);var _=h;t.exports=_},1466:function(t,e,n){var i=n("3eba"),r=n("2306"),a=n("6d8b"),o=n("a15a");function s(t){return a.isArray(t)||(t=[+t,+t]),t}var l=i.extendChartView({type:"radar",render:function(t,e,n){var i=t.coordinateSystem,l=this.group,c=t.getData(),u=this._data;function h(t,e){var n=t.getItemVisual(e,"symbol")||"circle",i=t.getItemVisual(e,"color");if("none"!==n){var r=s(t.getItemVisual(e,"symbolSize")),a=o.createSymbol(n,-1,-1,2,2,i);return a.attr({style:{strokeNoScale:!0},z2:100,scale:[r[0]/2,r[1]/2]}),a}}function d(e,n,i,a,o,s){i.removeAll();for(var l=0;l<n.length-1;l++){var c=h(a,o);c&&(c.__dimIdx=l,e[l]?(c.attr("position",e[l]),r[s?"initProps":"updateProps"](c,{position:n[l]},t,o)):c.attr("position",n[l]),i.add(c))}}function f(t){return a.map(t,(function(t){return[i.cx,i.cy]}))}c.diff(u).add((function(e){var n=c.getItemLayout(e);if(n){var i=new r.Polygon,a=new r.Polyline,o={shape:{points:n}};i.shape.points=f(n),a.shape.points=f(n),r.initProps(i,o,t,e),r.initProps(a,o,t,e);var s=new r.Group,l=new r.Group;s.add(a),s.add(i),s.add(l),d(a.shape.points,n,l,c,e,!0),c.setItemGraphicEl(e,s)}})).update((function(e,n){var i=u.getItemGraphicEl(n),a=i.childAt(0),o=i.childAt(1),s=i.childAt(2),l={shape:{points:c.getItemLayout(e)}};l.shape.points&&(d(a.shape.points,l.shape.points,s,c,e,!1),r.updateProps(a,l,t),r.updateProps(o,l,t),c.setItemGraphicEl(e,i))})).remove((function(t){l.remove(u.getItemGraphicEl(t))})).execute(),c.eachItemGraphicEl((function(t,e){var n=c.getItemModel(e),i=t.childAt(0),o=t.childAt(1),s=t.childAt(2),u=c.getItemVisual(e,"color");l.add(t),i.useStyle(a.defaults(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),i.hoverStyle=n.getModel("emphasis.lineStyle").getLineStyle();var h=n.getModel("areaStyle"),d=n.getModel("emphasis.areaStyle"),f=h.isEmpty()&&h.parentModel.isEmpty(),p=d.isEmpty()&&d.parentModel.isEmpty();p=p&&f,o.ignore=f,o.useStyle(a.defaults(h.getAreaStyle(),{fill:u,opacity:.7})),o.hoverStyle=d.getAreaStyle();var g=n.getModel("itemStyle").getItemStyle(["color"]),m=n.getModel("emphasis.itemStyle").getItemStyle(),v=n.getModel("label"),y=n.getModel("emphasis.label");s.eachChild((function(t){t.setStyle(g),t.hoverStyle=a.clone(m);var n=c.get(c.dimensions[t.__dimIdx],e);(null==n||isNaN(n))&&(n=""),r.setLabelStyle(t.style,t.hoverStyle,v,y,{labelFetcher:c.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:n,autoColor:u,isRectText:!0})})),t.highDownOnUpdate=function(t,e){o.attr("ignore","emphasis"===e?p:f)},r.setHoverStyle(t)})),this._data=c},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});t.exports=l},"14d3":function(t,e,n){var i=n("6d8b"),r=n("2306"),a=n("fab2"),o=n("6679"),s=["axisLine","axisTickLabel","axisName"],l=["splitLine","splitArea","minorSplitLine"],c=o.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,r=n.polar,o=r.getAngleAxis(),c=n.getTicksCoords(),h=n.getMinorTicksCoords(),d=o.getExtent()[0],f=n.getExtent(),p=u(r,t,d),g=new a(t,p);i.each(s,g.add,g),this.group.add(g.getGroup()),i.each(l,(function(e){t.get(e+".show")&&!n.scale.isBlank()&&this["_"+e](t,r,d,f,c,h)}),this)}},_splitLine:function(t,e,n,a,o){var s=t.getModel("splitLine"),l=s.getModel("lineStyle"),c=l.get("color"),u=0;c=c instanceof Array?c:[c];for(var h=[],d=0;d<o.length;d++){var f=u++%c.length;h[f]=h[f]||[],h[f].push(new r.Circle({shape:{cx:e.cx,cy:e.cy,r:o[d].coord}}))}for(d=0;d<h.length;d++)this.group.add(r.mergePath(h[d],{style:i.defaults({stroke:c[d%c.length],fill:null},l.getLineStyle()),silent:!0}))},_minorSplitLine:function(t,e,n,a,o,s){if(s.length){for(var l=t.getModel("minorSplitLine"),c=l.getModel("lineStyle"),u=[],h=0;h<s.length;h++)for(var d=0;d<s[h].length;d++)u.push(new r.Circle({shape:{cx:e.cx,cy:e.cy,r:s[h][d].coord}}));this.group.add(r.mergePath(u,{style:i.defaults({fill:null},c.getLineStyle()),silent:!0}))}},_splitArea:function(t,e,n,a,o){if(o.length){var s=t.getModel("splitArea"),l=s.getModel("areaStyle"),c=l.get("color"),u=0;c=c instanceof Array?c:[c];for(var h=[],d=o[0].coord,f=1;f<o.length;f++){var p=u++%c.length;h[p]=h[p]||[],h[p].push(new r.Sector({shape:{cx:e.cx,cy:e.cy,r0:d,r:o[f].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),d=o[f].coord}for(f=0;f<h.length;f++)this.group.add(r.mergePath(h[f],{style:i.defaults({fill:c[f%c.length]},l.getAreaStyle()),silent:!0}))}}});function u(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}t.exports=c},1548:function(t,e,n){var i=n("6d8b"),r=n("3301"),a=n("697e"),o=n("2023"),s=n("4319"),l=n("f934");l.getLayoutRect;e.getLayoutRect=l.getLayoutRect;var c=n("ee1a"),u=c.enableDataStack,h=c.isDimensionStacked,d=c.getStackedDimension,f=n("862d");e.completeDimensions=f;var p=n("b1d4");e.createDimensions=p;var g=n("a15a");function m(t){return r(t.getSource(),t)}e.createSymbol=g.createSymbol;var v={isDimensionStacked:h,enableDataStack:u,getStackedDimension:d};function y(t,e){var n=e;s.isInstance(e)||(n=new s(e),i.mixin(n,o));var r=a.createScaleByModel(n);return r.setExtent(t[0],t[1]),a.niceScaleExtent(r,n),r}function x(t){i.mixin(t,o)}e.createList=m,e.dataStack=v,e.createScale=y,e.mixinAxisModelCommonMethods=x},"15af":function(t,e,n){var i=n("3eba");n("cb69"),n("abff");var r=n("7f96"),a=n("87c3");n("01ed"),i.registerVisual(r("scatter","circle")),i.registerLayout(a("scatter"))},1687:function(t,e){var n="undefined"===typeof Float32Array?Array:Float32Array;function i(){var t=new n(6);return r(t),t}function r(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function o(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],a=e[0]*n[2]+e[2]*n[3],o=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function s(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function l(t,e,n){var i=e[0],r=e[2],a=e[4],o=e[1],s=e[3],l=e[5],c=Math.sin(n),u=Math.cos(n);return t[0]=i*u+o*c,t[1]=-i*c+o*u,t[2]=r*u+s*c,t[3]=-r*c+u*s,t[4]=u*a+c*l,t[5]=u*l-c*a,t}function c(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function u(t,e){var n=e[0],i=e[2],r=e[4],a=e[1],o=e[3],s=e[5],l=n*o-a*i;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-o*r)*l,t[5]=(a*r-n*s)*l,t):null}function h(t){var e=i();return a(e,t),e}e.create=i,e.identity=r,e.copy=a,e.mul=o,e.translate=s,e.rotate=l,e.scale=c,e.invert=u,e.clone=h},1748:function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=n("71ad"),o=n("4319"),s=n("2023"),l=a.valueAxis;function c(t,e){return r.defaults({show:e},t)}var u=i.extendComponentModel({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),a=this.get("axisTick"),l=this.get("axisType"),c=this.get("axisLabel"),u=this.get("name"),h=this.get("name.show"),d=this.get("name.formatter"),f=this.get("nameGap"),p=this.get("triggerEvent"),g=r.map(this.get("indicator")||[],(function(g){null!=g.max&&g.max>0&&!g.min?g.min=0:null!=g.min&&g.min<0&&!g.max&&(g.max=0);var m=u;if(null!=g.color&&(m=r.defaults({color:g.color},u)),g=r.merge(r.clone(g),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:a,axisType:l,axisLabel:c,name:g.text,nameLocation:"end",nameGap:f,nameTextStyle:m,triggerEvent:p},!1),h||(g.name=""),"string"===typeof d){var v=g.name;g.name=d.replace("{value}",null!=v?v:"")}else"function"===typeof d&&(g.name=d(g.name,g));var y=r.extend(new o(g,null,this.ecModel),s);return y.mainType="radar",y.componentIndex=this.componentIndex,y}),this);this.getIndicatorModels=function(){return g}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:r.merge({lineStyle:{color:"#bbb"}},l.axisLine),axisLabel:c(l.axisLabel,!1),axisTick:c(l.axisTick,!1),axisType:"interval",splitLine:c(l.splitLine,!0),splitArea:c(l.splitArea,!0),indicator:[]}}),h=u;t.exports=h},1792:function(t,e){var n={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function i(t,e){if("china"===t){var i=n[e.name];if(i){var r=e.center;r[0]+=i[0]/10.5,r[1]+=-i[1]/14}}}t.exports=i},"17b8":function(t,e,n){var i=n("3014"),r=i.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return!!this.get("large")&&this.get("progressive")},getProgressiveThreshold:function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},defaultOption:{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1}}});t.exports=r},"17d6":function(t,e,n){var i=n("6d8b"),r=n("22d1"),a=n("e0d3"),o=a.makeInner,s=o(),l=i.each;function c(t,e,n){if(!r.node){var i=e.getZr();s(i).records||(s(i).records={}),u(i,e);var a=s(i).records[t]||(s(i).records[t]={});a.handler=n}}function u(t,e){function n(n,i){t.on(n,(function(n){var r=p(e);l(s(t).records,(function(t){t&&i(t,n,r.dispatchAction)})),h(r.pendings,e)}))}s(t).initialized||(s(t).initialized=!0,n("click",i.curry(f,"click")),n("mousemove",i.curry(f,"mousemove")),n("globalout",d))}function h(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function d(t,e,n){t.handler("leave",null,n)}function f(t,e,n,i){e.handler(t,n,i)}function p(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}function g(t,e){if(!r.node){var n=e.getZr(),i=(s(n).records||{})[t];i&&(s(n).records[t]=null)}}e.register=c,e.unregister=g},"18c0":function(t,e,n){var i=n("6d8b"),r=n("e0d8"),a=n("8e43"),o=r.prototype,s=r.extend({type:"ordinal",init:function(t,e){t&&!i.isArray(t)||(t=new a({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),o.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return o.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(o.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});s.create=function(){return new s};var l=s;t.exports=l},"18d2":function(t,e,n){"use strict";var i=n("18e9");t.exports=function(t){t=t||{};var e=t.reporter,n=t.batchProcessor,r=t.stateHandler.getState;if(!e)throw new Error("Missing required dependency: reporter.");function a(t,e){function n(){e(t)}if(i.isIE(8))r(t).object={proxy:n},t.attachEvent("onresize",n);else{var a=l(t);if(!a)throw new Error("Element is not detectable by this strategy.");a.contentDocument.defaultView.addEventListener("resize",n)}}function o(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function s(t,a,s){s||(s=a,a=t,t=null),t=t||{};t.debug;function l(a,s){var l=o(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),c=!1,u=window.getComputedStyle(a),h=a.offsetWidth,d=a.offsetHeight;function f(){function n(){if("static"===u.position){a.style.setProperty("position","relative",t.important?"important":"");var n=function(e,n,i,r){function a(t){return t.replace(/[^-\d\.]/g,"")}var o=i[r];"auto"!==o&&"0"!==a(o)&&(e.warn("An element that is positioned static has style."+r+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",n),n.style.setProperty(r,"0",t.important?"important":""))};n(e,a,u,"top"),n(e,a,u,"right"),n(e,a,u,"bottom"),n(e,a,u,"left")}}function o(){function t(e,n){if(!e.contentDocument){var i=r(e);return i.checkForObjectDocumentTimeoutId&&window.clearTimeout(i.checkForObjectDocumentTimeoutId),void(i.checkForObjectDocumentTimeoutId=setTimeout((function(){i.checkForObjectDocumentTimeoutId=0,t(e,n)}),100))}n(e.contentDocument)}c||n();var e=this;t(e,(function(t){s(a)}))}""!==u.position&&(n(u),c=!0);var h=document.createElement("object");h.style.cssText=l,h.tabIndex=-1,h.type="text/html",h.setAttribute("aria-hidden","true"),h.onload=o,i.isIE()||(h.data="about:blank"),r(a)&&(a.appendChild(h),r(a).object=h,i.isIE()&&(h.data="about:blank"))}r(a).startSize={width:h,height:d},n?n.add(f):f()}i.isIE(8)?s(a):l(a,s)}function l(t){return r(t).object}function c(t){if(r(t)){var e=l(t);e&&(i.isIE(8)?t.detachEvent("onresize",e.proxy):t.removeChild(e),r(t).checkForObjectDocumentTimeoutId&&window.clearTimeout(r(t).checkForObjectDocumentTimeoutId),delete r(t).object)}}return{makeDetectable:s,addListener:a,uninstall:c}}},"18e9":function(t,e,n){"use strict";var i=t.exports={};i.isIE=function(t){function e(){var t=navigator.userAgent.toLowerCase();return-1!==t.indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/")}if(!e())return!1;if(!t)return!0;var n=function(){var t,e=3,n=document.createElement("div"),i=n.getElementsByTagName("i");do{n.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(i[0]);return e>4?e:t}();return t===n},i.isLegacyOpera=function(){return!!window.opera}},1953:function(t,e,n){var i=n("2449"),r=i.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});t.exports=r},"19e2":function(t,e,n){var i=n("6d8b"),r=n("e887"),a=n("2306"),o=n("cbe5"),s=n("b0af"),l=s.createClipPath,c=["itemStyle"],u=["emphasis","itemStyle"],h=["color","color0","borderColor","borderColor0"],d=r.extend({type:"candlestick",render:function(t,e,n){this.group.removeClipPath(),this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},incrementalPrepareRender:function(t,e,n){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,n,i){this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t){var e=t.getData(),n=this._data,i=this.group,r=e.getLayout("isSimpleBox"),o=t.get("clip",!0),s=t.coordinateSystem,l=s.getArea&&s.getArea();this._data||i.removeAll(),e.diff(n).add((function(n){if(e.hasValue(n)){var s,c=e.getItemLayout(n);if(o&&g(l,c))return;s=p(c,n,!0),a.initProps(s,{shape:{points:c.ends}},t,n),m(s,e,n,r),i.add(s),e.setItemGraphicEl(n,s)}})).update((function(s,c){var u=n.getItemGraphicEl(c);if(e.hasValue(s)){var h=e.getItemLayout(s);o&&g(l,h)?i.remove(u):(u?a.updateProps(u,{shape:{points:h.ends}},t,s):u=p(h,s),m(u,e,s,r),i.add(u),e.setItemGraphicEl(s,u))}else i.remove(u)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=e},_renderLarge:function(t){this._clear(),x(t,this.group);var e=t.get("clip",!0)?l(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},_incrementalRenderNormal:function(t,e){var n,i=e.getData(),r=i.getLayout("isSimpleBox");while(null!=(n=t.next())){var a,o=i.getItemLayout(n);a=p(o,n),m(a,i,n,r),a.incremental=!0,this.group.add(a)}},_incrementalRenderLarge:function(t,e){x(e,this.group,!0)},remove:function(t){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:i.noop}),f=o.extend({type:"normalCandlestickBox",shape:{},buildPath:function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))}});function p(t,e,n){var i=t.ends;return new f({shape:{points:n?v(i,t):i},z2:100})}function g(t,e){for(var n=!0,i=0;i<e.ends.length;i++)if(t.contain(e.ends[i][0],e.ends[i][1])){n=!1;break}return n}function m(t,e,n,i){var r=e.getItemModel(n),o=r.getModel(c),s=e.getItemVisual(n,"color"),l=e.getItemVisual(n,"borderColor")||s,d=o.getItemStyle(h);t.useStyle(d),t.style.strokeNoScale=!0,t.style.fill=s,t.style.stroke=l,t.__simpleBox=i;var f=r.getModel(u).getItemStyle();a.setHoverStyle(t,f)}function v(t,e){return i.map(t,(function(t){return t=t.slice(),t[1]=e.initBaseline,t}))}var y=o.extend({type:"largeCandlestickBox",shape:{},buildPath:function(t,e){for(var n=e.points,i=0;i<n.length;)if(this.__sign===n[i++]){var r=n[i++];t.moveTo(r,n[i++]),t.lineTo(r,n[i++])}else i+=3}});function x(t,e,n){var i=t.getData(),r=i.getLayout("largePoints"),a=new y({shape:{points:r},__sign:1});e.add(a);var o=new y({shape:{points:r},__sign:-1});e.add(o),b(1,a,t,i),b(-1,o,t,i),n&&(a.incremental=!0,o.incremental=!0)}function b(t,e,n,i){var r=t>0?"P":"N",a=i.getVisual("borderColor"+r)||i.getVisual("color"+r),o=n.getModel(c).getItemStyle(h);e.useStyle(o),e.style.fill=null,e.style.stroke=a}var _=d;t.exports=_},"19eb":function(t,e,n){var i=n("6d8b"),r=n("2b61"),a=n("d5b7"),o=n("9e2e");function s(t){for(var e in t=t||{},a.call(this,t),t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new r(t.style,this),this._rect=null,this.__clipPaths=null}s.prototype={constructor:s,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(t){},afterBrush:function(t){},brush:function(t,e){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return i.contain(n[0],n[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?a.prototype.attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new r(t,this),this.dirty(!1),this},calculateTextPosition:null},i.inherits(s,a),i.mixin(s,o);var l=s;t.exports=l},"1ab3":function(t,e,n){var i=n("6d8b"),r=n("2306"),a=n("e887");function o(t,e,n,i){var r=e.getData(),a=this.dataIndex,o=r.getName(a),l=e.get("selectedOffset");i.dispatchAction({type:"pieToggleSelect",from:t,name:o,seriesId:e.id}),r.each((function(t){s(r.getItemGraphicEl(t),r.getItemLayout(t),e.isSelected(r.getName(t)),l,n)}))}function s(t,e,n,i,r){var a=(e.startAngle+e.endAngle)/2,o=Math.cos(a),s=Math.sin(a),l=n?i:0,c=[o*l,s*l];r?t.animate().when(200,{position:c}).start("bounceOut"):t.attr("position",c)}function l(t,e){r.Group.call(this);var n=new r.Sector({z2:2}),i=new r.Polyline,a=new r.Text;this.add(n),this.add(i),this.add(a),this.updateData(t,e,!0)}var c=l.prototype;c.updateData=function(t,e,n){var a=this.childAt(0),o=this.childAt(1),l=this.childAt(2),c=t.hostModel,u=t.getItemModel(e),h=t.getItemLayout(e),d=i.extend({},h);d.label=null;var f=c.getShallow("animationTypeUpdate");if(n){a.setShape(d);var p=c.getShallow("animationType");"scale"===p?(a.shape.r=h.r0,r.initProps(a,{shape:{r:h.r}},c,e)):(a.shape.endAngle=h.startAngle,r.updateProps(a,{shape:{endAngle:h.endAngle}},c,e))}else"expansion"===f?a.setShape(d):r.updateProps(a,{shape:d},c,e);var g=t.getItemVisual(e,"color");a.useStyle(i.defaults({lineJoin:"bevel",fill:g},u.getModel("itemStyle").getItemStyle())),a.hoverStyle=u.getModel("emphasis.itemStyle").getItemStyle();var m=u.getShallow("cursor");m&&a.attr("cursor",m),s(this,t.getItemLayout(e),c.isSelected(t.getName(e)),c.get("selectedOffset"),c.get("animation"));var v=!n&&"transition"===f;this._updateLabel(t,e,v),this.highDownOnUpdate=c.get("silent")?null:function(t,e){var n=c.isAnimationEnabled()&&u.get("hoverAnimation");"emphasis"===e?(o.ignore=o.hoverIgnore,l.ignore=l.hoverIgnore,n&&(a.stopAnimation(!0),a.animateTo({shape:{r:h.r+c.get("hoverOffset")}},300,"elasticOut"))):(o.ignore=o.normalIgnore,l.ignore=l.normalIgnore,n&&(a.stopAnimation(!0),a.animateTo({shape:{r:h.r}},300,"elasticOut")))},r.setHoverStyle(this)},c._updateLabel=function(t,e,n){var i=this.childAt(1),a=this.childAt(2),o=t.hostModel,s=t.getItemModel(e),l=t.getItemLayout(e),c=l.label,u=t.getItemVisual(e,"color");if(!c||isNaN(c.x)||isNaN(c.y))a.ignore=a.normalIgnore=a.hoverIgnore=i.ignore=i.normalIgnore=i.hoverIgnore=!0;else{var h={points:c.linePoints||[[c.x,c.y],[c.x,c.y],[c.x,c.y]]},d={x:c.x,y:c.y};n?(r.updateProps(i,{shape:h},o,e),r.updateProps(a,{style:d},o,e)):(i.attr({shape:h}),a.attr({style:d})),a.attr({rotation:c.rotation,origin:[c.x,c.y],z2:10});var f=s.getModel("label"),p=s.getModel("emphasis.label"),g=s.getModel("labelLine"),m=s.getModel("emphasis.labelLine");u=t.getItemVisual(e,"color");r.setLabelStyle(a.style,a.hoverStyle={},f,p,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:c.text,autoColor:u,useInsideStyle:!!c.inside},{textAlign:c.textAlign,textVerticalAlign:c.verticalAlign,opacity:t.getItemVisual(e,"opacity")}),a.ignore=a.normalIgnore=!f.get("show"),a.hoverIgnore=!p.get("show"),i.ignore=i.normalIgnore=!g.get("show"),i.hoverIgnore=!m.get("show"),i.setStyle({stroke:u,opacity:t.getItemVisual(e,"opacity")}),i.setStyle(g.getModel("lineStyle").getLineStyle()),i.hoverStyle=m.getModel("lineStyle").getLineStyle();var v=g.get("smooth");v&&!0===v&&(v=.4),i.setShape({smooth:v})}},i.inherits(l,r.Group);var u=a.extend({type:"pie",init:function(){var t=new r.Group;this._sectorGroup=t},render:function(t,e,n,r){if(!r||r.from!==this.uid){var a=t.getData(),s=this._data,c=this.group,u=e.get("animation"),h=!s,d=t.get("animationType"),f=t.get("animationTypeUpdate"),p=i.curry(o,this.uid,t,u,n),g=t.get("selectedMode");if(a.diff(s).add((function(t){var e=new l(a,t);h&&"scale"!==d&&e.eachChild((function(t){t.stopAnimation(!0)})),g&&e.on("click",p),a.setItemGraphicEl(t,e),c.add(e)})).update((function(t,e){var n=s.getItemGraphicEl(e);h||"transition"===f||n.eachChild((function(t){t.stopAnimation(!0)})),n.updateData(a,t),n.off("click"),g&&n.on("click",p),c.add(n),a.setItemGraphicEl(t,n)})).remove((function(t){var e=s.getItemGraphicEl(t);c.remove(e)})).execute(),u&&a.count()>0&&(h?"scale"!==d:"transition"!==f)){for(var m=a.getItemLayout(0),v=1;isNaN(m.startAngle)&&v<a.count();++v)m=a.getItemLayout(v);var y=Math.max(n.getWidth(),n.getHeight())/2,x=i.bind(c.removeClipPath,c);c.setClipPath(this._createClipPath(m.cx,m.cy,y,m.startAngle,m.clockwise,x,t,h))}else c.removeClipPath();this._data=a}},dispose:function(){},_createClipPath:function(t,e,n,i,a,o,s,l){var c=new r.Sector({shape:{cx:t,cy:e,r0:0,r:n,startAngle:i,endAngle:i,clockwise:a}}),u=l?r.initProps:r.updateProps;return u(c,{shape:{endAngle:i+(a?1:-1)*Math.PI*2}},s,o),c},containPoint:function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var r=t[0]-i.cx,a=t[1]-i.cy,o=Math.sqrt(r*r+a*a);return o<=i.r&&o>=i.r0}}}),h=u;t.exports=h},"1c5f":function(t,e,n){var i=n("401b");function r(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),a(n)}}function a(t){t.eachEdge((function(t){var e=t.getModel().get("lineStyle.curveness")||0,n=i.clone(t.node1.getLayout()),r=i.clone(t.node2.getLayout()),a=[n,r];+e&&a.push([(n[0]+r[0])/2-(n[1]-r[1])*e,(n[1]+r[1])/2-(r[0]-n[0])*e]),t.setLayout(a)}))}e.simpleLayout=r,e.simpleLayoutEdge=a},"1ccf":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),a=n("fd27"),o=n("3842"),s=o.parsePercent,l=n("697e"),c=l.createScaleByModel,u=l.niceScaleExtent,h=n("2039"),d=n("ee1a"),f=d.getStackedDimension;function p(t,e,n){var i=e.get("center"),a=n.getWidth(),o=n.getHeight();t.cx=s(i[0],a),t.cy=s(i[1],o);var l=t.getRadiusAxis(),c=Math.min(a,o)/2,u=e.get("radius");null==u?u=[0,"100%"]:r.isArray(u)||(u=[0,u]),u=[s(u[0],c),s(u[1],c)],l.inverse?l.setExtent(u[1],u[0]):l.setExtent(u[0],u[1])}function g(t,e){var n=this,i=n.getAngleAxis(),a=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();r.each(e.mapDimension("radius",!0),(function(t){a.scale.unionExtentFromData(e,f(e,t))})),r.each(e.mapDimension("angle",!0),(function(t){i.scale.unionExtentFromData(e,f(e,t))}))}})),u(i.scale,i.model),u(a.scale,a.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),s=360/i.scale.count();i.inverse?o[1]+=s:o[1]-=s,i.setExtent(o[0],o[1])}}function m(t,e){if(t.type=e.get("type"),t.scale=c(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType){t.inverse^=e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}n("78f0");var v={dimensions:a.prototype.dimensions,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,i){var r=new a(i);r.update=g;var o=r.getRadiusAxis(),s=r.getAngleAxis(),l=t.findAxisModel("radiusAxis"),c=t.findAxisModel("angleAxis");m(o,l),m(s,c),p(r,t,e),n.push(r),t.coordinateSystem=r,r.model=t})),t.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0];e.coordinateSystem=n.coordinateSystem}})),n}};h.register("polar",v)},"1e32":function(t,e,n){var i=n("6d8b"),r=n("3842"),a=r.parsePercent,o=n("ee1a"),s=o.isDimensionStacked;function l(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function c(t,e){return e.dim+t.model.componentIndex}function u(t,e,n){var r={},a=h(i.filter(e.getSeriesByType(t),(function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type})));e.eachSeriesByType(t,(function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),o=c(n,i),u=l(t),h=a[o][u],d=h.offset,f=h.width,p=n.getOtherAxis(i),g=t.coordinateSystem.cx,m=t.coordinateSystem.cy,v=t.get("barMinHeight")||0,y=t.get("barMinAngle")||0;r[u]=r[u]||[];for(var x=e.mapDimension(p.dim),b=e.mapDimension(i.dim),_=s(e,x),w="radius"!==i.dim||!t.get("roundCap",!0),S=p.getExtent()[0],A=0,C=e.count();A<C;A++){var I,T,k,M,D=e.get(x,A),E=e.get(b,A),L=D>=0?"p":"n",P=S;if(_&&(r[u][E]||(r[u][E]={p:S,n:S}),P=r[u][E][L]),"radius"===p.dim){var O=p.dataToRadius(D)-S,R=i.dataToAngle(E);Math.abs(O)<v&&(O=(O<0?-1:1)*v),I=P,T=P+O,k=R-d,M=k-f,_&&(r[u][E][L]=T)}else{var N=p.dataToAngle(D,w)-S,B=i.dataToRadius(E);Math.abs(N)<y&&(N=(N<0?-1:1)*y),I=B+d,T=I+f,k=P,M=P+N,_&&(r[u][E][L]=M)}e.setItemLayout(A,{cx:g,cy:m,r0:I,r:T,startAngle:-k*Math.PI/180,endAngle:-M*Math.PI/180})}}}),this)}function h(t,e){var n={};i.each(t,(function(t,e){var i=t.getData(),r=t.coordinateSystem,o=r.getBaseAxis(),s=c(r,o),u=o.getExtent(),h="category"===o.type?o.getBandWidth():Math.abs(u[1]-u[0])/i.count(),d=n[s]||{bandWidth:h,remainedWidth:h,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=d.stacks;n[s]=d;var p=l(t);f[p]||d.autoWidthCount++,f[p]=f[p]||{width:0,maxWidth:0};var g=a(t.get("barWidth"),h),m=a(t.get("barMaxWidth"),h),v=t.get("barGap"),y=t.get("barCategoryGap");g&&!f[p].width&&(g=Math.min(d.remainedWidth,g),f[p].width=g,d.remainedWidth-=g),m&&(f[p].maxWidth=m),null!=v&&(d.gap=v),null!=y&&(d.categoryGap=y)}));var r={};return i.each(n,(function(t,e){r[e]={};var n=t.stacks,o=t.bandWidth,s=a(t.categoryGap,o),l=a(t.gap,1),c=t.remainedWidth,u=t.autoWidthCount,h=(c-s)/(u+(u-1)*l);h=Math.max(h,0),i.each(n,(function(t,e){var n=t.maxWidth;n&&n<h&&(n=Math.min(n,c),t.width&&(n=Math.min(n,t.width)),c-=n,t.width=n,u--)})),h=(c-s)/(u+(u-1)*l),h=Math.max(h,0);var d,f=0;i.each(n,(function(t,e){t.width||(t.width=h),d=t,f+=t.width*(1+l)})),d&&(f-=d.width*l);var p=-f/2;i.each(n,(function(t,n){r[e][n]=r[e][n]||{offset:p,width:t.width},p+=t.width*(1+l)}))})),r}var d=u;t.exports=d},"1f0e":function(t,e,n){var i=n("cbe5"),r=i.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(t,e){var n=Math.cos,i=Math.sin,r=e.r,a=e.width,o=e.angle,s=e.x-n(o)*a*(a>=r/3?1:2),l=e.y-i(o)*a*(a>=r/3?1:2);o=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(o)*a,e.y+i(o)*a),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(o)*a,e.y-i(o)*a),t.lineTo(s,l)}});t.exports=r},"1f1a":function(t,e,n){var i=n("6d8b"),r=n("e0d3"),a=n("6cb7"),o=n("4319"),s=n("7023"),l=n("eeea"),c=a.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(t){a.prototype.init.apply(this,arguments),r.defaultEmphasis(t,"label",["show"])},optionUpdated:function(){var t=this.option,e=this;t.regions=l.getFilledRegions(t.regions,t.map,t.nameMap),this._optionModelMap=i.reduce(t.regions||[],(function(t,n){return n.name&&t.set(n.name,new o(n,e)),t}),i.createHashMap()),this.updateSelectedMap(t.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(t){return this._optionModelMap.get(t)||new o(null,this,this.ecModel)},getFormattedLabel:function(t,e){var n=this.getRegionModel(t),i=n.get("label"+("normal"===e?".":e+".")+"formatter"),r={name:t};return"function"===typeof i?(r.status=e,i(r)):"string"===typeof i?i.replace("{a}",null!=t?t:""):void 0},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t}});i.mixin(c,s);var u=c;t.exports=u},"1fab":function(t,e){var n=Array.prototype.slice,i=function(t){this._$handlers={},this._$eventProcessor=t};function r(t,e){var n=t._$eventProcessor;return null!=e&&n&&n.normalizeQuery&&(e=n.normalizeQuery(e)),e}function a(t,e,n,i,a,o){var s=t._$handlers;if("function"===typeof n&&(a=i,i=n,n=null),!i||!e)return t;n=r(t,n),s[e]||(s[e]=[]);for(var l=0;l<s[e].length;l++)if(s[e][l].h===i)return t;var c={h:i,one:o,query:n,ctx:a||t,callAtLast:i.zrEventfulCallAtLast},u=s[e].length-1,h=s[e][u];return h&&h.callAtLast?s[e].splice(u,0,c):s[e].push(c),t}i.prototype={constructor:i,one:function(t,e,n,i){return a(this,t,e,n,i,!0)},on:function(t,e,n,i){return a(this,t,e,n,i,!1)},isSilent:function(t){var e=this._$handlers;return!e[t]||!e[t].length},off:function(t,e){var n=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,a=n[t].length;r<a;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},trigger:function(t){var e=this._$handlers[t],i=this._$eventProcessor;if(e){var r=arguments,a=r.length;a>3&&(r=n.call(r,1));for(var o=e.length,s=0;s<o;){var l=e[s];if(i&&i.filter&&null!=l.query&&!i.filter(t,l.query))s++;else{switch(a){case 1:l.h.call(l.ctx);break;case 2:l.h.call(l.ctx,r[1]);break;case 3:l.h.call(l.ctx,r[1],r[2]);break;default:l.h.apply(l.ctx,r);break}l.one?(e.splice(s,1),o--):s++}}}return i&&i.afterTrigger&&i.afterTrigger(t),this},triggerWithContext:function(t){var e=this._$handlers[t],i=this._$eventProcessor;if(e){var r=arguments,a=r.length;a>4&&(r=n.call(r,1,r.length-1));for(var o=r[r.length-1],s=e.length,l=0;l<s;){var c=e[l];if(i&&i.filter&&null!=c.query&&!i.filter(t,c.query))l++;else{switch(a){case 1:c.h.call(o);break;case 2:c.h.call(o,r[1]);break;case 3:c.h.call(o,r[1],r[2]);break;default:c.h.apply(o,r);break}c.one?(e.splice(l,1),s--):l++}}}return i&&i.afterTrigger&&i.afterTrigger(t),this}};var o=i;t.exports=o},2023:function(t,e,n){var i=n("6d8b"),r={getMin:function(t){var e=this.option,n=t||null==e.rangeStart?e.min:e.rangeStart;return this.axis&&null!=n&&"dataMin"!==n&&"function"!==typeof n&&!i.eqNaN(n)&&(n=this.axis.scale.parse(n)),n},getMax:function(t){var e=this.option,n=t||null==e.rangeEnd?e.max:e.rangeEnd;return this.axis&&null!=n&&"dataMax"!==n&&"function"!==typeof n&&!i.eqNaN(n)&&(n=this.axis.scale.parse(n)),n},getNeedCrossZero:function(){var t=this.option;return null==t.rangeStart&&null==t.rangeEnd&&!t.scale},getCoordSysModel:i.noop,setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};t.exports=r},2039:function(t,e,n){var i=n("6d8b"),r={};function a(){this._coordinateSystems=[]}a.prototype={constructor:a,create:function(t,e){var n=[];i.each(r,(function(i,r){var a=i.create(t,e);n=n.concat(a||[])})),this._coordinateSystems=n},update:function(t,e){i.each(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},a.register=function(t,e){r[t]=e},a.get=function(t){return r[t]};var o=a;t.exports=o},"20c8":function(t,e,n){var i=n("4a3f"),r=n("401b"),a=n("e263"),o=n("9850"),s=n("2cf4c"),l=s.devicePixelRatio,c={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],h=[],d=[],f=[],p=Math.min,g=Math.max,m=Math.cos,v=Math.sin,y=Math.sqrt,x=Math.abs,b="undefined"!==typeof Float32Array,_=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};_.prototype={constructor:_,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e,n){n=n||0,this._ux=x(n/l/t)||0,this._uy=x(n/l/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(c.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var n=x(t-this._xi)>this._ux||x(e-this._yi)>this._uy||this._len<5;return this.addData(c.L,t,e),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),n&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,n,i,r,a){return this.addData(c.C,t,e,n,i,r,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,n,i,r,a):this._ctx.bezierCurveTo(t,e,n,i,r,a)),this._xi=r,this._yi=a,this},quadraticCurveTo:function(t,e,n,i){return this.addData(c.Q,t,e,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},arc:function(t,e,n,i,r,a){return this.addData(c.A,t,e,n,n,i,r-i,0,a?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,a),this._xi=m(r)*n+t,this._yi=v(r)*n+e,this},arcTo:function(t,e,n,i,r){return this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},rect:function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(c.R,t,e,n,i),this},closePath:function(){this.addData(c.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,n=0;n<t.length;n++)e+=t[n];this._dashSum=e}return this},setLineDashOffset:function(t){return this._dashOffset=t,this},len:function(){return this._len},setData:function(t){var e=t.length;this.data&&this.data.length===e||!b||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();b&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(r=0;r<e;r++)for(var a=t[r].data,o=0;o<a.length;o++)this.data[i++]=a[o];this._len=i},addData:function(t){if(this._saveData){var e=this.data;this._len+arguments.length>e.length&&(this._expandData(),e=this.data);for(var n=0;n<arguments.length;n++)e[this._len++]=arguments[n];this._prevCmd=t}},_expandData:function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(t,e){var n,i,r=this._dashSum,a=this._dashOffset,o=this._lineDash,s=this._ctx,l=this._xi,c=this._yi,u=t-l,h=e-c,d=y(u*u+h*h),f=l,m=c,v=o.length;u/=d,h/=d,a<0&&(a=r+a),a%=r,f-=a*u,m-=a*h;while(u>0&&f<=t||u<0&&f>=t||0===u&&(h>0&&m<=e||h<0&&m>=e))i=this._dashIdx,n=o[i],f+=u*n,m+=h*n,this._dashIdx=(i+1)%v,u>0&&f<l||u<0&&f>l||h>0&&m<c||h<0&&m>c||s[i%2?"moveTo":"lineTo"](u>=0?p(f,t):g(f,t),h>=0?p(m,e):g(m,e));u=f-t,h=m-e,this._dashOffset=-y(u*u+h*h)},_dashedBezierTo:function(t,e,n,r,a,o){var s,l,c,u,h,d=this._dashSum,f=this._dashOffset,p=this._lineDash,g=this._ctx,m=this._xi,v=this._yi,x=i.cubicAt,b=0,_=this._dashIdx,w=p.length,S=0;for(f<0&&(f=d+f),f%=d,s=0;s<1;s+=.1)l=x(m,t,n,a,s+.1)-x(m,t,n,a,s),c=x(v,e,r,o,s+.1)-x(v,e,r,o,s),b+=y(l*l+c*c);for(;_<w;_++)if(S+=p[_],S>f)break;s=(S-f)/b;while(s<=1)u=x(m,t,n,a,s),h=x(v,e,r,o,s),_%2?g.moveTo(u,h):g.lineTo(u,h),s+=p[_]/b,_=(_+1)%w;_%2!==0&&g.lineTo(a,o),l=a-u,c=o-h,this._dashOffset=-y(l*l+c*c)},_dashedQuadraticTo:function(t,e,n,i){var r=n,a=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,r,a)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,b&&(this.data=new Float32Array(t)))},getBoundingRect:function(){u[0]=u[1]=d[0]=d[1]=Number.MAX_VALUE,h[0]=h[1]=f[0]=f[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,n=0,i=0,s=0,l=0;l<t.length;){var p=t[l++];switch(1===l&&(e=t[l],n=t[l+1],i=e,s=n),p){case c.M:i=t[l++],s=t[l++],e=i,n=s,d[0]=i,d[1]=s,f[0]=i,f[1]=s;break;case c.L:a.fromLine(e,n,t[l],t[l+1],d,f),e=t[l++],n=t[l++];break;case c.C:a.fromCubic(e,n,t[l++],t[l++],t[l++],t[l++],t[l],t[l+1],d,f),e=t[l++],n=t[l++];break;case c.Q:a.fromQuadratic(e,n,t[l++],t[l++],t[l],t[l+1],d,f),e=t[l++],n=t[l++];break;case c.A:var g=t[l++],y=t[l++],x=t[l++],b=t[l++],_=t[l++],w=t[l++]+_;l+=1;var S=1-t[l++];1===l&&(i=m(_)*x+g,s=v(_)*b+y),a.fromArc(g,y,x,b,_,w,S,d,f),e=m(w)*x+g,n=v(w)*b+y;break;case c.R:i=e=t[l++],s=n=t[l++];var A=t[l++],C=t[l++];a.fromLine(i,s,i+A,s+C,d,f);break;case c.Z:e=i,n=s;break}r.min(u,u,d),r.max(h,h,f)}return 0===l&&(u[0]=u[1]=h[0]=h[1]=0),new o(u[0],u[1],h[0]-u[0],h[1]-u[1])},rebuildPath:function(t){for(var e,n,i,r,a,o,s=this.data,l=this._ux,u=this._uy,h=this._len,d=0;d<h;){var f=s[d++];switch(1===d&&(i=s[d],r=s[d+1],e=i,n=r),f){case c.M:e=i=s[d++],n=r=s[d++],t.moveTo(i,r);break;case c.L:a=s[d++],o=s[d++],(x(a-i)>l||x(o-r)>u||d===h-1)&&(t.lineTo(a,o),i=a,r=o);break;case c.C:t.bezierCurveTo(s[d++],s[d++],s[d++],s[d++],s[d++],s[d++]),i=s[d-2],r=s[d-1];break;case c.Q:t.quadraticCurveTo(s[d++],s[d++],s[d++],s[d++]),i=s[d-2],r=s[d-1];break;case c.A:var p=s[d++],g=s[d++],y=s[d++],b=s[d++],_=s[d++],w=s[d++],S=s[d++],A=s[d++],C=y>b?y:b,I=y>b?1:y/b,T=y>b?b/y:1,k=Math.abs(y-b)>.001,M=_+w;k?(t.translate(p,g),t.rotate(S),t.scale(I,T),t.arc(0,0,C,_,M,1-A),t.scale(1/I,1/T),t.rotate(-S),t.translate(-p,-g)):t.arc(p,g,C,_,M,1-A),1===d&&(e=m(_)*y+p,n=v(_)*b+g),i=m(M)*y+p,r=v(M)*b+g;break;case c.R:e=i=s[d],n=r=s[d+1],t.rect(s[d++],s[d++],s[d++],s[d++]);break;case c.Z:t.closePath(),i=e,r=n}}}},_.CMD=c;var w=_;t.exports=w},2145:function(t,e){var n={};function i(t,e){n[t]=e}function r(t){return n[t]}e.register=i,e.get=r},2163:function(t,e,n){var i=n("4f85"),r=n("06c7"),a=n("eda2"),o=a.encodeHTML,s=n("4319"),l=i.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new s(n,this,this.ecModel),a=r.createTree(e,this,{},o);function o(t){t.wrapMethod("getItemModel",(function(t,e){var n=a.getNodeByDataIndex(e);return n.children.length&&n.isExpand||(t.parentModel=i),t}))}var l=0;a.eachNode("preorder",(function(t){t.depth>l&&(l=t.depth)}));var c=t.expandAndCollapse,u=c&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return a.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=u})),a.data},getOrient:function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},formatTooltip:function(t){var e=this.getData().tree,n=e.root.children[0],i=e.getNodeByDataIndex(t),r=i.getValue(),a=i.name;while(i&&i!==n)a=i.parentNode.name+"."+a,i=i.parentNode;return o(a+(isNaN(r)||null==r?"":" : "+r))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});t.exports=l},"216a":function(t,e,n){var i=n("6d8b"),r=n("3842"),a=n("eda2"),o=n("944e"),s=n("89e3"),l=s.prototype,c=Math.ceil,u=Math.floor,h=1e3,d=60*h,f=60*d,p=24*f,g=function(t,e,n,i){while(n<i){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n},m=s.extend({type:"time",getLabel:function(t){var e=this._stepLvl,n=new Date(t);return a.formatTime(e[0],n,this.getSetting("useUTC"))},niceExtent:function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=p,e[1]+=p),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]-p}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=r.round(u(e[0]/i)*i)),t.fixMax||(e[1]=r.round(c(e[1]/i)*i))},niceTicks:function(t,e,n){t=t||10;var i=this._extent,a=i[1]-i[0],s=a/t;null!=e&&s<e&&(s=e),null!=n&&s>n&&(s=n);var l=v.length,h=g(v,s,0,l),d=v[Math.min(h,l-1)],f=d[1];if("year"===d[0]){var p=a/f,m=r.nice(p/t,!0);f*=m}var y=this.getSetting("useUTC")?0:60*new Date(+i[0]||+i[1]).getTimezoneOffset()*1e3,x=[Math.round(c((i[0]-y)/f)*f+y),Math.round(u((i[1]-y)/f)*f+y)];o.fixExtent(x,i),this._stepLvl=d,this._interval=f,this._niceExtent=x},parse:function(t){return+r.parseDate(t)}});i.each(["contain","normalize"],(function(t){m.prototype[t]=function(e){return l[t].call(this,this.parse(e))}}));var v=[["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",d],["hh:mm\nMM-dd",5*d],["hh:mm\nMM-dd",10*d],["hh:mm\nMM-dd",15*d],["hh:mm\nMM-dd",30*d],["hh:mm\nMM-dd",f],["hh:mm\nMM-dd",2*f],["hh:mm\nMM-dd",6*f],["hh:mm\nMM-dd",12*f],["MM-dd\nyyyy",p],["MM-dd\nyyyy",2*p],["MM-dd\nyyyy",3*p],["MM-dd\nyyyy",4*p],["MM-dd\nyyyy",5*p],["MM-dd\nyyyy",6*p],["week",7*p],["MM-dd\nyyyy",10*p],["week",14*p],["week",21*p],["month",31*p],["week",42*p],["month",62*p],["week",70*p],["quarter",95*p],["month",31*p*4],["month",31*p*5],["half-year",380*p/2],["month",31*p*8],["month",31*p*10],["year",380*p]];m.create=function(t){return new m({useUTC:t.ecModel.get("useUTC")})};var y=m;t.exports=y},"217b":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("3301")),a=n("4f85"),o=a.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,e){return r(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}});t.exports=o},"217c":function(t,e,n){var i=n("6d8b"),r=n("6cb7");n("df3a");var a=r.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(){r.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(t){var e=this.option;t&&i.merge(e,t,!0),this._initDimensions()},contains:function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},setAxisExpand:function(t){i.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},_initDimensions:function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=i.filter(this.dependentModels.parallelAxis,(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);i.each(n,(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))}});t.exports=a},"22d1":function(t,e){var n={};n="object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"===typeof document&&"undefined"!==typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:"undefined"===typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:r(navigator.userAgent);var i=n;function r(t){var e={},n={},i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(t);return i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),a&&(n.edge=!0,n.version=a[1]),o&&(n.weChat=!0),{browser:n,os:e,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!==typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!n.ie&&!n.edge,pointerEventsSupported:"onpointerdown"in window&&(n.edge||n.ie&&n.version>=11),domSupported:"undefined"!==typeof document}}t.exports=i},"22da":function(t,e,n){var i=n("f934");function r(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var e,n,i=[t];while(e=i.pop())if(n=e.children,e.isExpand&&n.length)for(var r=n.length,a=r-1;a>=0;a--){var o=n[a];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},i.push(o)}}function a(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,r=t.hierNode.i?i[t.hierNode.i-1]:null;if(n.length){u(t);var a=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-a):t.hierNode.prelim=a}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=h(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function o(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function s(t){return arguments.length?t:m}function l(t,e){var n={};return t-=Math.PI/2,n.x=e*Math.cos(t),n.y=e*Math.sin(t),n}function c(t,e){return i.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function u(t){var e=t.children,n=e.length,i=0,r=0;while(--n>=0){var a=e[n];a.hierNode.prelim+=i,a.hierNode.modifier+=i,r+=a.hierNode.change,i+=a.hierNode.shift+r}}function h(t,e,n,i){if(e){var r=t,a=t,o=a.parentNode.children[0],s=e,l=r.hierNode.modifier,c=a.hierNode.modifier,u=o.hierNode.modifier,h=s.hierNode.modifier;while(s=d(s),a=f(a),s&&a){r=d(r),o=f(o),r.hierNode.ancestor=t;var m=s.hierNode.prelim+h-a.hierNode.prelim-c+i(s,a);m>0&&(g(p(s,t,n),t,m),c+=m,l+=m),h+=s.hierNode.modifier,c+=a.hierNode.modifier,l+=r.hierNode.modifier,u+=o.hierNode.modifier}s&&!d(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-l),a&&!f(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=c-u,n=t)}return n}function d(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function f(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function p(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function g(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function m(t,e){return t.parentNode===e.parentNode?1:2}e.init=r,e.firstWalk=a,e.secondWalk=o,e.separation=s,e.radialCoordinate=l,e.getViewRect=c},2306:function(t,e,n){var i=n("6d8b"),r=n("342d"),a=n("41ef"),o=n("1687"),s=n("401b"),l=n("cbe5"),c=n("0cde"),u=n("0da8");e.Image=u;var h=n("e1fc");e.Group=h;var d=n("76a5");e.Text=d;var f=n("d9fc");e.Circle=f;var p=n("4aa2");e.Sector=p;var g=n("45731");e.Ring=g;var m=n("87b1");e.Polygon=m;var v=n("d498");e.Polyline=v;var y=n("c7a2");e.Rect=y;var x=n("cb11");e.Line=x;var b=n("ac0f");e.BezierCurve=b;var _=n("8d32");e.Arc=_;var w=n("d4c6");e.CompoundPath=w;var S=n("48a9");e.LinearGradient=S;var A=n("dded");e.RadialGradient=A;var C=n("9850");e.BoundingRect=C;var I=n("392f");e.IncrementalDisplayable=I;var T=n("9cf9"),k=Math.max,M=Math.min,D={},E=1,L={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},P="emphasis",O="normal",R=1,N={},B={};function z(t){return l.extend(t)}function F(t,e){return r.extendFromString(t,e)}function V(t,e){B[t]=e}function W(t){if(B.hasOwnProperty(t))return B[t]}function U(t,e,n,i){var a=r.createFromString(t,e);return n&&("center"===i&&(n=G(n,a.getBoundingRect())),Y(a,n)),a}function H(t,e,n){var i=new u({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(G(e,r))}}});return i}function G(t,e){var n,i=e.width/e.height,r=t.height*i;r<=t.width?n=t.height:(r=t.width,n=r/i);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-r/2,y:o-n/2,width:r,height:n}}var j=r.mergePath;function Y(t,e){if(t.applyTransform){var n=t.getBoundingRect(),i=n.calculateTransform(e);t.applyTransform(i)}}function q(t){return T.subPixelOptimizeLine(t.shape,t.shape,t.style),t}function K(t){return T.subPixelOptimizeRect(t.shape,t.shape,t.style),t}var X=T.subPixelOptimize;function Z(t){return null!=t&&"none"!==t}var Q=i.createHashMap(),J=0;function $(t){if("string"!==typeof t)return t;var e=Q.get(t);return e||(e=a.lift(t,-.1),J<1e4&&(Q.set(t,e),J++)),e}function tt(t){if(t.__hoverStlDirty){t.__hoverStlDirty=!1;var e=t.__hoverStl;if(e){var n=t.__cachedNormalStl={};t.__cachedNormalZ2=t.z2;var i=t.style;for(var r in e)null!=e[r]&&(n[r]=i[r]);n.fill=i.fill,n.stroke=i.stroke}else t.__cachedNormalStl=t.__cachedNormalZ2=null}}function et(t){var e=t.__hoverStl;if(e&&!t.__highlighted){var n=t.__zr,i=t.useHoverLayer&&n&&"canvas"===n.painter.type;if(t.__highlighted=i?"layer":"plain",!(t.isGroup||!n&&t.useHoverLayer)){var r=t,a=t.style;i&&(r=n.addHover(t),a=r.style),At(a),i||tt(r),a.extendFrom(e),nt(a,e,"fill"),nt(a,e,"stroke"),St(a),i||(t.dirty(!1),t.z2+=E)}}}function nt(t,e,n){!Z(e[n])&&Z(t[n])&&(t[n]=$(t[n]))}function it(t){var e=t.__highlighted;if(e&&(t.__highlighted=!1,!t.isGroup))if("layer"===e)t.__zr&&t.__zr.removeHover(t);else{var n=t.style,i=t.__cachedNormalStl;i&&(At(n),t.setStyle(i),St(n));var r=t.__cachedNormalZ2;null!=r&&t.z2-r===E&&(t.z2=r)}}function rt(t,e,n){var i,r=O,a=O;t.__highlighted&&(r=P,i=!0),e(t,n),t.__highlighted&&(a=P,i=!0),t.isGroup&&t.traverse((function(t){!t.isGroup&&e(t,n)})),i&&t.__highDownOnUpdate&&t.__highDownOnUpdate(r,a)}function at(t,e){e=t.__hoverStl=!1!==e&&(t.hoverStyle||e||{}),t.__hoverStlDirty=!0,t.__highlighted&&(t.__cachedNormalStl=null,it(t),et(t))}function ot(t){!ut(this,t)&&!this.__highByOuter&&rt(this,et)}function st(t){!ut(this,t)&&!this.__highByOuter&&rt(this,it)}function lt(t){this.__highByOuter|=1<<(t||0),rt(this,et)}function ct(t){!(this.__highByOuter&=~(1<<(t||0)))&&rt(this,it)}function ut(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function ht(t,e){dt(t,!0),rt(t,at,e)}function dt(t,e){var n=!1===e;if(t.__highDownSilentOnTouch=t.highDownSilentOnTouch,t.__highDownOnUpdate=t.highDownOnUpdate,!n||t.__highDownDispatcher){var i=n?"off":"on";t[i]("mouseover",ot)[i]("mouseout",st),t[i]("emphasis",lt)[i]("normal",ct),t.__highByOuter=t.__highByOuter||0,t.__highDownDispatcher=!n}}function ft(t){return!(!t||!t.__highDownDispatcher)}function pt(t){var e=N[t];return null==e&&R<=32&&(e=N[t]=R++),e}function gt(t,e,n,r,a,o,s){a=a||D;var l,c=a.labelFetcher,u=a.labelDataIndex,h=a.labelDimIndex,d=a.labelProp,f=n.getShallow("show"),p=r.getShallow("show");(f||p)&&(c&&(l=c.getFormattedLabel(u,"normal",null,h,d)),null==l&&(l=i.isFunction(a.defaultText)?a.defaultText(u,a):a.defaultText));var g=f?l:null,m=p?i.retrieve2(c?c.getFormattedLabel(u,"emphasis",null,h,d):null,l):null;null==g&&null==m||(vt(t,n,o,a),vt(e,r,s,a,!0)),t.text=g,e.text=m}function mt(t,e,n){var r=t.style;e&&(At(r),t.setStyle(e),St(r)),r=t.__hoverStl,n&&r&&(At(r),i.extend(r,n),St(r))}function vt(t,e,n,r,a){return xt(t,e,r,a),n&&i.extend(t,n),t}function yt(t,e,n){var i,r={isRectText:!0};!1===n?i=!0:r.autoColor=n,xt(t,e,r,i)}function xt(t,e,n,r){if(n=n||D,n.isRectText){var a;n.getTextPosition?a=n.getTextPosition(e,r):(a=e.getShallow("position")||(r?null:"inside"),"outside"===a&&(a="top")),t.textPosition=a,t.textOffset=e.getShallow("offset");var o=e.getShallow("rotate");null!=o&&(o*=Math.PI/180),t.textRotation=o,t.textDistance=i.retrieve2(e.getShallow("distance"),r?null:5)}var s,l=e.ecModel,c=l&&l.option.textStyle,u=bt(e);if(u)for(var h in s={},u)if(u.hasOwnProperty(h)){var d=e.getModel(["rich",h]);_t(s[h]={},d,c,n,r)}return t.rich=s,_t(t,e,c,n,r,!0),n.forceRich&&!n.textStyle&&(n.textStyle={}),t}function bt(t){var e;while(t&&t!==t.ecModel){var n=(t.option||D).rich;if(n)for(var i in e=e||{},n)n.hasOwnProperty(i)&&(e[i]=1);t=t.parentModel}return e}function _t(t,e,n,r,a,o){n=!a&&n||D,t.textFill=wt(e.getShallow("color"),r)||n.color,t.textStroke=wt(e.getShallow("textBorderColor"),r)||n.textBorderColor,t.textStrokeWidth=i.retrieve2(e.getShallow("textBorderWidth"),n.textBorderWidth),a||(o&&(t.insideRollbackOpt=r,St(t)),null==t.textFill&&(t.textFill=r.autoColor)),t.fontStyle=e.getShallow("fontStyle")||n.fontStyle,t.fontWeight=e.getShallow("fontWeight")||n.fontWeight,t.fontSize=e.getShallow("fontSize")||n.fontSize,t.fontFamily=e.getShallow("fontFamily")||n.fontFamily,t.textAlign=e.getShallow("align"),t.textVerticalAlign=e.getShallow("verticalAlign")||e.getShallow("baseline"),t.textLineHeight=e.getShallow("lineHeight"),t.textWidth=e.getShallow("width"),t.textHeight=e.getShallow("height"),t.textTag=e.getShallow("tag"),o&&r.disableBox||(t.textBackgroundColor=wt(e.getShallow("backgroundColor"),r),t.textPadding=e.getShallow("padding"),t.textBorderColor=wt(e.getShallow("borderColor"),r),t.textBorderWidth=e.getShallow("borderWidth"),t.textBorderRadius=e.getShallow("borderRadius"),t.textBoxShadowColor=e.getShallow("shadowColor"),t.textBoxShadowBlur=e.getShallow("shadowBlur"),t.textBoxShadowOffsetX=e.getShallow("shadowOffsetX"),t.textBoxShadowOffsetY=e.getShallow("shadowOffsetY")),t.textShadowColor=e.getShallow("textShadowColor")||n.textShadowColor,t.textShadowBlur=e.getShallow("textShadowBlur")||n.textShadowBlur,t.textShadowOffsetX=e.getShallow("textShadowOffsetX")||n.textShadowOffsetX,t.textShadowOffsetY=e.getShallow("textShadowOffsetY")||n.textShadowOffsetY}function wt(t,e){return"auto"!==t?t:e&&e.autoColor?e.autoColor:null}function St(t){var e,n=t.textPosition,i=t.insideRollbackOpt;if(i&&null==t.textFill){var r=i.autoColor,a=i.isRectText,o=i.useInsideStyle,s=!1!==o&&(!0===o||a&&n&&"string"===typeof n&&n.indexOf("inside")>=0),l=!s&&null!=r;(s||l)&&(e={textFill:t.textFill,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth}),s&&(t.textFill="#fff",null==t.textStroke&&(t.textStroke=r,null==t.textStrokeWidth&&(t.textStrokeWidth=2))),l&&(t.textFill=r)}t.insideRollback=e}function At(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth,t.insideRollback=null)}function Ct(t,e){var n=e&&e.getModel("textStyle");return i.trim([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}function It(t,e,n,i,r,a){"function"===typeof r&&(a=r,r=null);var o=i&&i.isAnimationEnabled();if(o){var s=t?"Update":"",l=i.getShallow("animationDuration"+s),c=i.getShallow("animationEasing"+s),u=i.getShallow("animationDelay"+s);"function"===typeof u&&(u=u(r,i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null)),"function"===typeof l&&(l=l(r)),l>0?e.animateTo(n,l,u||0,c,a,!!a):(e.stopAnimation(),e.attr(n),a&&a())}else e.stopAnimation(),e.attr(n),a&&a()}function Tt(t,e,n,i,r){It(!0,t,e,n,i,r)}function kt(t,e,n,i,r){It(!1,t,e,n,i,r)}function Mt(t,e){var n=o.identity([]);while(t&&t!==e)o.mul(n,t.getLocalTransform(),n),t=t.parent;return n}function Dt(t,e,n){return e&&!i.isArrayLike(e)&&(e=c.getLocalTransform(e)),n&&(e=o.invert([],e)),s.applyTransform([],t,e)}function Et(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),a=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return a=Dt(a,e,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Lt(t,e,n,r){if(t&&e){var a=o(t);e.traverse((function(t){if(!t.isGroup&&t.anid){var e=a[t.anid];if(e){var i=l(t);t.attr(l(e)),Tt(t,i,n,t.dataIndex)}}}))}function o(t){var e={};return t.traverse((function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)})),e}function l(t){var e={position:s.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=i.extend({},t.shape)),e}}function Pt(t,e){return i.map(t,(function(t){var n=t[0];n=k(n,e.x),n=M(n,e.x+e.width);var i=t[1];return i=k(i,e.y),i=M(i,e.y+e.height),[n,i]}))}function Ot(t,e){var n=k(t.x,e.x),i=M(t.x+t.width,e.x+e.width),r=k(t.y,e.y),a=M(t.y+t.height,e.y+e.height);if(i>=n&&a>=r)return{x:n,y:r,width:i-n,height:a-r}}function Rt(t,e,n){e=i.extend({rectHover:!0},e);var r=e.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),i.defaults(r,n),new u(e)):U(t.replace("path://",""),e,n,"center")}function Nt(t,e,n,i,r){for(var a=0,o=r[r.length-1];a<r.length;a++){var s=r[a];if(Bt(t,e,n,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function Bt(t,e,n,i,r,a,o,s){var l=n-t,c=i-e,u=o-r,h=s-a,d=zt(u,h,l,c);if(Ft(d))return!1;var f=t-r,p=e-a,g=zt(f,p,l,c)/d;if(g<0||g>1)return!1;var m=zt(f,p,u,h)/d;return!(m<0||m>1)}function zt(t,e,n,i){return t*i-n*e}function Ft(t){return t<=1e-6&&t>=-1e-6}V("circle",f),V("sector",p),V("ring",g),V("polygon",m),V("polyline",v),V("rect",y),V("line",x),V("bezierCurve",b),V("arc",_),e.Z2_EMPHASIS_LIFT=E,e.CACHED_LABEL_STYLE_PROPERTIES=L,e.extendShape=z,e.extendPath=F,e.registerShape=V,e.getShapeClass=W,e.makePath=U,e.makeImage=H,e.mergePath=j,e.resizePath=Y,e.subPixelOptimizeLine=q,e.subPixelOptimizeRect=K,e.subPixelOptimize=X,e.setElementHoverStyle=at,e.setHoverStyle=ht,e.setAsHighDownDispatcher=dt,e.isHighDownDispatcher=ft,e.getHighlightDigit=pt,e.setLabelStyle=gt,e.modifyLabelStyle=mt,e.setTextStyle=vt,e.setText=yt,e.getFont=Ct,e.updateProps=Tt,e.initProps=kt,e.getTransform=Mt,e.applyTransform=Dt,e.transformDirection=Et,e.groupTransition=Lt,e.clipPointsByRect=Pt,e.clipRectByRect=Ot,e.createIcon=Rt,e.linePolygonIntersect=Nt,e.lineLineIntersect=Bt},2325:function(t,e,n){var i=n("6d8b"),r=n("607d"),a=n("2306"),o=n("88b3"),s=n("7dcf"),l=n("3842"),c=n("f934"),u=n("ef6a"),h=a.Rect,d=l.linearMap,f=l.asc,p=i.bind,g=i.each,m=7,v=1,y=30,x="horizontal",b="vertical",_=5,w=["line","bar","candlestick","scatter"],S=s.extend({type:"dataZoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,n,i){S.superApply(this,"render",arguments),o.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get("orient"),!1!==this.dataZoomModel.get("show")?(i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){S.superApply(this,"remove",arguments),o.clear(this,"_dispatchZoomAction")},dispose:function(){S.superApply(this,"dispose",arguments),o.clear(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t.removeAll(),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new a.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,n=this._findCoordRect(),r={width:e.getWidth(),height:e.getHeight()},a=this._orient===x?{right:r.width-n.x-n.width,top:r.height-y-m,width:n.width,height:y}:{right:m,top:n.y,width:y,height:n.height},o=c.getLayoutParams(t.option);i.each(["right","top","width","height"],(function(t){"ph"===o[t]&&(o[t]=a[t])}));var s=c.getLayoutRect(o,r,t.padding);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===b&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),a=this._displayables.barGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n!==x||r?n===x&&r?{scale:o?[-1,1]:[-1,-1]}:n!==b||r?{scale:o?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:o?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:o?[1,1]:[1,-1]});var s=t.getBoundingRect([a]);t.attr("position",[e.x-s.x,e.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.barGroup;n.add(new h({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),n.add(new h({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:i.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,n=t.series,r=n.getRawData(),o=n.getShadowDim?n.getShadowDim():t.otherDim;if(null!=o){var s=r.getDataExtent(o),l=.3*(s[1]-s[0]);s=[s[0]-l,s[1]+l];var c,u=[0,e[1]],h=[0,e[0]],f=[[e[0],0],[0,0]],p=[],g=h[1]/(r.count()-1),m=0,v=Math.round(r.count()/e[0]);r.each([o],(function(t,e){if(v>0&&e%v)m+=g;else{var n=null==t||isNaN(t)||""===t,i=n?0:d(t,s,u,!0);n&&!c&&e?(f.push([f[f.length-1][0],0]),p.push([p[p.length-1][0],0])):!n&&c&&(f.push([m,0]),p.push([m,0])),f.push([m,i]),p.push([m,i]),m+=g,c=n}}));var y=this.dataZoomModel;this._displayables.barGroup.add(new a.Polygon({shape:{points:f},style:i.defaults({fill:y.get("dataBackgroundColor")},y.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new a.Polyline({shape:{points:p},style:y.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,r=this.ecModel;return t.eachTargetAxis((function(a,o){var s=t.getAxisProxy(a.name,o).getTargetSeriesModels();i.each(s,(function(t){if(!n&&!(!0!==e&&i.indexOf(w,t.get("type"))<0)){var s,l=r.getComponent(a.axis,o).axis,c=A(a.name),u=t.coordinateSystem;null!=c&&u.getOtherAxis&&(s=u.getOtherAxis(l).inverse),c=t.getData().mapDimension(c),n={thisAxis:l,series:t,thisDim:a.name,otherDim:c,otherAxisInverse:s}}}),this)}),this),n}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],n=t.handleLabels=[],i=this._displayables.barGroup,r=this._size,o=this.dataZoomModel;i.add(t.filler=new h({draggable:!0,cursor:C(this._orient),drift:p(this._onDragMove,this,"all"),ondragstart:p(this._showDataInfo,this,!0),ondragend:p(this._onDragEnd,this),onmouseover:p(this._showDataInfo,this,!0),onmouseout:p(this._showDataInfo,this,!1),style:{fill:o.get("fillerColor"),textPosition:"inside"}})),i.add(new h({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{stroke:o.get("dataBackgroundColor")||o.get("borderColor"),lineWidth:v,fill:"rgba(0,0,0,0)"}})),g([0,1],(function(t){var r=a.createIcon(o.get("handleIcon"),{cursor:C(this._orient),draggable:!0,drift:p(this._onDragMove,this,t),ondragend:p(this._onDragEnd,this),onmouseover:p(this._showDataInfo,this,!0),onmouseout:p(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),s=r.getBoundingRect();this._handleHeight=l.parsePercent(o.get("handleSize"),this._size[1]),this._handleWidth=s.width/s.height*this._handleHeight,r.setStyle(o.getModel("handleStyle").getItemStyle());var c=o.get("handleColor");null!=c&&(r.style.fill=c),i.add(e[t]=r);var u=o.textStyleModel;this.group.add(n[t]=new a.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:u.getTextColor(),textFont:u.getFont()},z2:10}))}),this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[d(t[0],[0,100],e,!0),d(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];u(e,i,r,n.get("zoomLock")?"all":t,null!=a.minSpan?d(a.minSpan,o,r,!0):null,null!=a.maxSpan?d(a.maxSpan,o,r,!0):null);var s=this._range,l=this._range=f([d(i[0],r,o,!0),d(i[1],r,o,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},_updateView:function(t){var e=this._displayables,n=this._handleEnds,i=f(n.slice()),r=this._size;g([0,1],(function(t){var i=e.handles[t],a=this._handleHeight;i.attr({scale:[a/2,a/2],position:[n[t],r[1]/2-a/2]})}),this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){var e=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,o=["",""];if(e.get("showDetail")){var s=e.findRepresentativeAxisProxy();if(s){var l=s.getAxisModel().axis,c=this._range,u=t?s.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:s.getDataValueWindow();o=[this._formatLabel(u[0],l),this._formatLabel(u[1],l)]}}var h=f(this._handleEnds.slice());function d(t){var e=a.getTransform(n.handles[t].parent,this.group),s=a.transformDirection(0===t?"right":"left",e),l=this._handleWidth/2+_,c=a.applyTransform([h[t]+(0===t?-l:l),this._size[1]/2],e);i[t].setStyle({x:c[0],y:c[1],textVerticalAlign:r===x?"middle":s,textAlign:r===x?s:"center",text:o[t]})}d.call(this,0),d.call(this,1)},_formatLabel:function(t,e){var n=this.dataZoomModel,r=n.get("labelFormatter"),a=n.get("labelPrecision");null!=a&&"auto"!==a||(a=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(a,20));return i.isFunction(r)?r(t,o):i.isString(r)?r.replace("{value}",o):o},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_onDragMove:function(t,e,n,i){this._dragging=!0,r.stop(i.event);var o=this._displayables.barGroup.getLocalTransform(),s=a.applyTransform([e,n],o,!0),l=this._updateInterval(t,s[0]),c=this.dataZoomModel.get("realtime");this._updateView(!c),l&&c&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction()},_onClickPanelClick:function(t){var e=this._size,n=this._displayables.barGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,a=this._updateInterval("all",n[0]-r);this._updateView(),a&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_findCoordRect:function(){var t;if(g(this.getTargetCoordInfo(),(function(e){if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}})),!t){var e=this.api.getWidth(),n=this.api.getHeight();t={x:.2*e,y:.2*n,width:.6*e,height:.6*n}}return t}});function A(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function C(t){return"vertical"===t?"ns-resize":"ew-resize"}var I=S;t.exports=I},"237f":function(t,e,n){var i=n("6d8b"),r=n("6179"),a=n("7368"),o=n("31d9"),s=n("b1d4"),l=n("2039"),c=n("3301");function u(t,e,n,u,h){for(var d=new a(u),f=0;f<t.length;f++)d.addNode(i.retrieve(t[f].id,t[f].name,f),f);var p=[],g=[],m=0;for(f=0;f<e.length;f++){var v=e[f],y=v.source,x=v.target;d.addEdge(y,x,m)&&(g.push(v),p.push(i.retrieve(v.id,y+" > "+x)),m++)}var b,_=n.get("coordinateSystem");if("cartesian2d"===_||"polar"===_)b=c(t,n);else{var w=l.get(_),S=w&&"view"!==w.type&&w.dimensions||[];i.indexOf(S,"value")<0&&S.concat(["value"]);var A=s(t,{coordDimensions:S});b=new r(A,n),b.initData(t)}var C=new r(["value"],n);return C.initData(g,p),h&&h(b,C),o({mainData:b,struct:d,structAttr:"graph",datas:{node:b,edge:C},datasAttr:{node:"data",edge:"edgeData"}}),d.update(),d}t.exports=u},"23e0":function(t,e,n){var i=n("6d8b"),r=n("7887"),a=n("89e3"),o=n("3842"),s=n("697e"),l=s.getScaleExtent,c=s.niceScaleExtent,u=n("2039"),h=n("8c2a");function d(t,e,n){this._model=t,this.dimensions=[],this._indicatorAxes=i.map(t.getIndicatorModels(),(function(t,e){var n="indicator_"+e,i=new r(n,"log"===t.get("axisType")?new h:new a);return i.name=t.get("name"),i.model=t,t.axis=i,this.dimensions.push(n),i}),this),this.resize(t,n),this.cx,this.cy,this.r,this.r0,this.startAngle}d.prototype.getIndicatorAxes=function(){return this._indicatorAxes},d.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},d.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e],i=n.angle,r=this.cx+t*Math.cos(i),a=this.cy-t*Math.sin(i);return[r,a]},d.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var r,a=Math.atan2(-n,e),o=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var c=this._indicatorAxes[l],u=Math.abs(a-c.angle);u<o&&(r=c,s=l,o=u)}return[s,+(r&&r.coordToData(i))]},d.prototype.resize=function(t,e){var n=t.get("center"),r=e.getWidth(),a=e.getHeight(),s=Math.min(r,a)/2;this.cx=o.parsePercent(n[0],r),this.cy=o.parsePercent(n[1],a),this.startAngle=t.get("startAngle")*Math.PI/180;var l=t.get("radius");"string"!==typeof l&&"number"!==typeof l||(l=[0,l]),this.r0=o.parsePercent(l[0],s),this.r=o.parsePercent(l[1],s),i.each(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n}),this)},d.prototype.update=function(t,e){var n=this._indicatorAxes,r=this._model;i.each(n,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeriesByType("radar",(function(e,a){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===r){var o=e.getData();i.each(n,(function(t){t.scale.unionExtentFromData(o,o.mapDimension(t.dim))}))}}),this);var a=r.get("splitNumber");function s(t){var e=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),n=t/e;return 2===n?n=5:n*=2,n*e}i.each(n,(function(t,e){var n=l(t.scale,t.model).extent;c(t.scale,t.model);var i=t.model,r=t.scale,u=i.getMin(),h=i.getMax(),d=r.getInterval();if(null!=u&&null!=h)r.setExtent(+u,+h),r.setInterval((h-u)/a);else if(null!=u){do{p=u+d*a,r.setExtent(+u,p),r.setInterval(d),d=s(d)}while(p<n[1]&&isFinite(p)&&isFinite(n[1]))}else if(null!=h){do{g=h-d*a,r.setExtent(g,+h),r.setInterval(d),d=s(d)}while(g>n[0]&&isFinite(g)&&isFinite(n[0]))}else{var f=r.getTicks().length-1;f>a&&(d=s(d));var p=Math.ceil(n[1]/d)*d,g=o.round(p-d*a);r.setExtent(g,p),r.setInterval(d)}}))},d.dimensions=[],d.create=function(t,e){var n=[];return t.eachComponent("radar",(function(i){var r=new d(i,t,e);n.push(r),i.coordinateSystem=r})),t.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("radarIndex")||0])})),n},u.register("radar",d);var f=d;t.exports=f},"23ee":function(t,e,n){var i=n("3eba");n("879e"),n("9704"),n("d747");var r=n("675a"),a=n("7f96"),o=n("2943"),s=n("de6e"),l=n("d357"),c=n("adda"),u=n("5866"),h=n("7b0c");i.registerProcessor(r),i.registerVisual(a("graph","circle",null)),i.registerVisual(o),i.registerVisual(s),i.registerLayout(l),i.registerLayout(i.PRIORITY.VISUAL.POST_CHART_LAYOUT,c),i.registerLayout(u),i.registerCoordinateSystem("graphView",{create:h})},2449:function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("3eba")),a=n("6d8b"),o=n("22d1"),s=n("e0d3"),l=n("eda2"),c=n("38a2"),u=l.addCommas,h=l.encodeHTML;function d(t){s.defaultEmphasis(t,"label",["show"])}var f=r.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},isAnimationEnabled:function(){if(o.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},mergeOption:function(t,e){this._mergeOption(t,e,!1,!1)},_mergeOption:function(t,e,n,i){var r=this.constructor,o=this.mainType+"Model";n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),s=t[o];n&&n.data?(s?s._mergeOption(n,e,!0):(i&&d(n),a.each(n.data,(function(t){t instanceof Array?(d(t[0]),d(t[1])):d(t)})),s=new r(n,this,e),a.extend(s,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),s.__hostSeries=t),t[o]=s):t[o]=null}),this)},formatTooltip:function(t){var e=this.getData(),n=this.getRawValue(t),i=a.isArray(n)?a.map(n,u).join(", "):u(n),r=e.getName(t),o=h(this.name);return(null!=n||r)&&(o+="<br />"),r&&(o+=h(r),null!=n&&(o+=" : ")),null!=n&&(o+=h(i)),o},getData:function(){return this._data},setData:function(t){this._data=t}});a.mixin(f,c);var p=f;t.exports=p},"24b9":function(t,e,n){var i=n("f934"),r=n("3842"),a=r.parsePercent,o=r.linearMap;function s(t,e){return i.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function l(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,(function(t){return t})),r=[],a="ascending"===e,o=0,s=t.count();o<s;o++)r[o]=o;return"function"===typeof e?r.sort(e):"none"!==e&&r.sort((function(t,e){return a?i[t]-i[e]:i[e]-i[t]})),r}function c(t){t.each((function(e){var n,i,r,a,o=t.getItemModel(e),s=o.getModel("label"),l=s.get("position"),c=o.getModel("labelLine"),u=t.getItemLayout(e),h=u.points,d="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(d)"insideLeft"===l?(i=(h[0][0]+h[3][0])/2+5,r=(h[0][1]+h[3][1])/2,n="left"):"insideRight"===l?(i=(h[1][0]+h[2][0])/2-5,r=(h[1][1]+h[2][1])/2,n="right"):(i=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,r=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,n="center"),a=[[i,r],[i,r]];else{var f,p,g,m=c.get("length");"left"===l?(f=(h[3][0]+h[0][0])/2,p=(h[3][1]+h[0][1])/2,g=f-m,i=g-5,n="right"):"right"===l?(f=(h[1][0]+h[2][0])/2,p=(h[1][1]+h[2][1])/2,g=f+m,i=g+5,n="left"):"rightTop"===l?(f=h[1][0],p=h[1][1],g=f+m,i=g+5,n="top"):"rightBottom"===l?(f=h[2][0],p=h[2][1],g=f+m,i=g+5,n="bottom"):"leftTop"===l?(f=h[0][0],p=h[1][1],g=f-m,i=g-5,n="right"):"leftBottom"===l?(f=h[3][0],p=h[2][1],g=f-m,i=g-5,n="right"):(f=(h[1][0]+h[2][0])/2,p=(h[1][1]+h[2][1])/2,g=f+m,i=g+5,n="left");var v=p;a=[[f,p],[g,v]],r=v}u.label={linePoints:a,x:i,y:r,verticalAlign:"middle",textAlign:n,inside:d}}))}function u(t,e,n){t.eachSeriesByType("funnel",(function(t){var n=t.getData(),i=n.mapDimension("value"),r=t.get("sort"),u=s(t,e),h=l(n,r),d=[a(t.get("minSize"),u.width),a(t.get("maxSize"),u.width)],f=n.getDataExtent(i),p=t.get("min"),g=t.get("max");null==p&&(p=Math.min(f[0],0)),null==g&&(g=f[1]);var m=t.get("funnelAlign"),v=t.get("gap"),y=(u.height-v*(n.count()-1))/n.count(),x=u.y,b=function(t,e){var r,a=n.get(i,t)||0,s=o(a,[p,g],d,!0);switch(m){case"left":r=u.x;break;case"center":r=u.x+(u.width-s)/2;break;case"right":r=u.x+u.width-s;break}return[[r,e],[r+s,e]]};"ascending"===r&&(y=-y,v=-v,x+=u.height,h=h.reverse());for(var _=0;_<h.length;_++){var w=h[_],S=h[_+1],A=n.getItemModel(w),C=A.get("itemStyle.height");null==C?C=y:(C=a(C,u.height),"ascending"===r&&(C=-C));var I=b(w,x),T=b(S,x+C);x+=C+v,n.setItemLayout(w,{points:I.concat(T.slice().reverse())})}c(n)}))}t.exports=u},"255c":function(t,e,n){var i=n("3eba"),r=n("d4d1"),a=r.Polygon,o=n("2306"),s=n("6d8b"),l=s.bind,c=s.extend,u=n("80f0"),h=i.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(t,e,n){var i=t.getData(),r=this.group,s=t.getLayerSeries(),h=i.getLayout("layoutInfo"),f=h.rect,p=h.boundaryGap;function g(t){return t.name}r.attr("position",[0,f.y+p[0]]);var m=new u(this._layersSeries||[],s,g,g),v={};function y(e,n,l){var u=this._layers;if("remove"!==e){for(var h,f,p,g=[],m=[],y=s[n].indices,x=0;x<y.length;x++){var b=i.getItemLayout(y[x]),_=b.x,w=b.y0,S=b.y;g.push([_,w]),m.push([_,w+S]),h=i.getItemVisual(y[x],"color")}var A=i.getItemLayout(y[0]),C=i.getItemModel(y[x-1]),I=C.getModel("label"),T=I.get("margin");if("add"===e){var k=v[n]=new o.Group;f=new a({shape:{points:g,stackedOnPoints:m,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),p=new o.Text({style:{x:A.x-T,y:A.y0+A.y/2}}),k.add(f),k.add(p),r.add(k),f.setClipPath(d(f.getBoundingRect(),t,(function(){f.removeClipPath()})))}else{k=u[l];f=k.childAt(0),p=k.childAt(1),r.add(k),v[n]=k,o.updateProps(f,{shape:{points:g,stackedOnPoints:m}},t),o.updateProps(p,{style:{x:A.x-T,y:A.y0+A.y/2}},t)}var M=C.getModel("emphasis.itemStyle"),D=C.getModel("itemStyle");o.setTextStyle(p.style,I,{text:I.get("show")?t.getFormattedLabel(y[x-1],"normal")||i.getName(y[x-1]):null,textVerticalAlign:"middle"}),f.setStyle(c({fill:h},D.getItemStyle(["color"]))),o.setHoverStyle(f,M.getItemStyle())}else r.remove(u[n])}m.add(l(y,this,"add")).update(l(y,this,"update")).remove(l(y,this,"remove")).execute(),this._layersSeries=s,this._layers=v},dispose:function(){}});function d(t,e,n){var i=new o.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return o.initProps(i,{shape:{width:t.width+20,height:t.height+20}},e,n),i}t.exports=h},"26e1":function(t,e,n){var i=n("6d8b"),r=n("e0d3"),a=i.each,o=i.isObject,s=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function l(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=s.length;n<r;n++){var a=s[n],o=e.normal,l=e.emphasis;o&&o[a]&&(t[a]=t[a]||{},t[a].normal?i.merge(t[a].normal,o[a]):t[a].normal=o[a],o[a]=null),l&&l[a]&&(t[a]=t[a]||{},t[a].emphasis?i.merge(t[a].emphasis,l[a]):t[a].emphasis=l[a],l[a]=null)}}function c(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,a=t[e].emphasis;r&&(n?(t[e].normal=t[e].emphasis=null,i.defaults(t[e],r)):t[e]=r),a&&(t.emphasis=t.emphasis||{},t.emphasis[e]=a)}}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=o(t)&&t[e],i=o(n)&&n.textStyle;if(i)for(var a=0,s=r.TEXT_STYLE_OPTIONS.length;a<s;a++){e=r.TEXT_STYLE_OPTIONS[a];i.hasOwnProperty(e)&&(n[e]=i[e])}}function d(t){t&&(u(t),h(t,"label"),t.emphasis&&h(t.emphasis,"label"))}function f(t){if(o(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),d(e));var n=t.markLine;n&&(l(n),d(n));var r=t.markArea;r&&d(r);var a=t.data;if("graph"===t.type){a=a||t.nodes;var s=t.links||t.edges;if(s&&!i.isTypedArray(s))for(var f=0;f<s.length;f++)d(s[f]);i.each(t.categories,(function(t){u(t)}))}if(a&&!i.isTypedArray(a))for(f=0;f<a.length;f++)d(a[f]);e=t.markPoint;if(e&&e.data){var p=e.data;for(f=0;f<p.length;f++)d(p[f])}n=t.markLine;if(n&&n.data){var g=n.data;for(f=0;f<g.length;f++)i.isArray(g[f])?(d(g[f][0]),d(g[f][1])):d(g[f])}"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 p(t){return i.isArray(t)?t:t?[t]:[]}function g(t){return(i.isArray(t)?t[0]:t)||{}}function m(t,e){a(p(t.series),(function(t){o(t)&&f(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),a(n,(function(e){a(p(t[e]),(function(t){t&&(h(t,"axisLabel"),h(t.axisPointer,"label"))}))})),a(p(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;h(e,"axisLabel"),h(e&&e.axisPointer,"label")})),a(p(t.calendar),(function(t){c(t,"itemStyle"),h(t,"dayLabel"),h(t,"monthLabel"),h(t,"yearLabel")})),a(p(t.radar),(function(t){h(t,"name")})),a(p(t.geo),(function(t){o(t)&&(d(t),a(p(t.regions),(function(t){d(t)})))})),a(p(t.timeline),(function(t){d(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"))}))})),a(p(t.toolbox),(function(t){c(t,"iconStyle"),a(t.feature,(function(t){c(t,"iconStyle")}))})),h(g(t.axisPointer),"label"),h(g(t.tooltip).axisPointer,"label")}t.exports=m},"282b":function(t,e,n){var i=n("6d8b");function r(t){for(var e=0;e<t.length;e++)t[e][1]||(t[e][1]=t[e][0]);return function(e,n,r){for(var a={},o=0;o<t.length;o++){var s=t[o][1];if(!(n&&i.indexOf(n,s)>=0||r&&i.indexOf(r,s)<0)){var l=e.getShallow(s);null!=l&&(a[t[o][0]]=l)}}return a}}t.exports=r},2909:function(t,e,n){"use strict";function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function r(t){if(Array.isArray(t))return i(t)}n.d(e,"a",(function(){return l}));n("a4d3"),n("e01a"),n("d28b"),n("a630"),n("d3b7"),n("3ca3"),n("ddb0");function a(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}n("fb6a"),n("b0c0"),n("25f0");function o(t,e){if(t){if("string"===typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(t){return r(t)||a(t)||o(t)||s()}},"292e":function(t,e,n){var i=n("3842"),r=i.parsePercent,a=i.linearMap,o=n("f934"),s=n("bb70"),l=n("6d8b"),c=2*Math.PI,u=Math.PI/180;function h(t,e){return o.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function d(t,e,n,i){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),o=h(t,n),d=t.get("center"),f=t.get("radius");l.isArray(f)||(f=[0,f]),l.isArray(d)||(d=[d,d]);var p=r(o.width,n.getWidth()),g=r(o.height,n.getHeight()),m=Math.min(p,g),v=r(d[0],p)+o.x,y=r(d[1],g)+o.y,x=r(f[0],m/2),b=r(f[1],m/2),_=-t.get("startAngle")*u,w=t.get("minAngle")*u,S=0;e.each(i,(function(t){!isNaN(t)&&S++}));var A=e.getSum(i),C=Math.PI/(A||S)*2,I=t.get("clockwise"),T=t.get("roseType"),k=t.get("stillShowZeroSum"),M=e.getDataExtent(i);M[0]=0;var D=c,E=0,L=_,P=I?1:-1;if(e.each(i,(function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:I,cx:v,cy:y,r0:x,r:T?NaN:b,viewRect:o});else{i="area"!==T?0===A&&k?C:t*C:c/S,i<w?(i=w,D-=w):E+=t;var r=L+P*i;e.setItemLayout(n,{angle:i,startAngle:L,endAngle:r,clockwise:I,cx:v,cy:y,r0:x,r:T?a(t,M,[x,b]):b,viewRect:o}),L=r}})),D<c&&S)if(D<=.001){var O=c/S;e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n);i.angle=O,i.startAngle=_+P*n*O,i.endAngle=_+P*(n+1)*O}}))}else C=D/E,L=_,e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n),r=i.angle===w?w:t*C;i.startAngle=L,i.endAngle=L+P*r,L+=P*r}}));s(t,b,o.width,o.height,o.x,o.y)}))}t.exports=d},2943:function(t,e){function n(t){var e={};t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getData(),r={};n.each((function(i){var a=n.getName(i);r["ec-"+a]=i;var o=n.getItemModel(i),s=o.get("itemStyle.color")||t.getColorFromPalette(a,e);n.setItemVisual(i,"color",s);for(var l=["opacity","symbol","symbolSize","symbolKeepAspect"],c=0;c<l.length;c++){var u=o.getShallow(l[c],!0);null!=u&&n.setItemVisual(i,l[c],u)}})),n.count()&&i.each((function(t){var e=i.getItemModel(t),a=e.getShallow("category");if(null!=a){"string"===typeof a&&(a=r["ec-"+a]);for(var o=["color","opacity","symbol","symbolSize","symbolKeepAspect"],s=0;s<o.length;s++)null==i.getItemVisual(t,o[s],!0)&&i.setItemVisual(t,o[s],n.getItemVisual(a,o[s]))}}))}))}t.exports=n},"29a8":function(t,e){var n={legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};t.exports=n},"29a9":function(t,e,n){var i=n("3eba"),r=n("b336");n("bc5f"),n("ab05"),n("06ea"),n("004f"),n("d6ef"),i.registerPreprocessor(r)},"2b17":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),a=(r.isTypedArray,r.extend),o=(r.assert,r.each),s=r.isObject,l=n("e0d3"),c=l.getDataItemValue,u=l.isDataItemOption,h=n("3842"),d=h.parseDate,f=n("ec6f"),p=n("93d0"),g=p.SOURCE_FORMAT_TYPED_ARRAY,m=p.SOURCE_FORMAT_ARRAY_ROWS,v=p.SOURCE_FORMAT_ORIGINAL,y=p.SOURCE_FORMAT_OBJECT_ROWS;function x(t,e){f.isInstance(t)||(t=f.seriesDataToSource(t)),this._source=t;var n=this._data=t.data,i=t.sourceFormat;i===g&&(this._offset=0,this._dimSize=e,this._data=n);var r=_[i===m?i+"_"+t.seriesLayoutBy:i];a(this,r)}var b=x.prototype;b.pure=!1,b.persistent=!0,b.getSource=function(){return this._source};var _={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(t){return this._data[t+this._source.startIndex]},appendData:A},arrayRows_row:{pure:!0,count:function(){var t=this._data[0];return t?Math.max(0,t.length-this._source.startIndex):0},getItem:function(t){t+=this._source.startIndex;for(var e=[],n=this._data,i=0;i<n.length;i++){var r=n[i];e.push(r?r[t]:null)}return e},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:w,getItem:S,appendData:A},keyedColumns:{pure:!0,count:function(){var t=this._source.dimensionsDefine[0].name,e=this._data[t];return e?e.length:0},getItem:function(t){for(var e=[],n=this._source.dimensionsDefine,i=0;i<n.length;i++){var r=this._data[n[i].name];e.push(r?r[t]:null)}return e},appendData:function(t){var e=this._data;o(t,(function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])}))}},original:{count:w,getItem:S,appendData:A},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(t,e){t-=this._offset,e=e||[];for(var n=this._dimSize*t,i=0;i<this._dimSize;i++)e[i]=this._data[n+i];return e},appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}}};function w(){return this._data.length}function S(t){return this._data[t]}function A(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}var C={arrayRows:I,objectRows:function(t,e,n,i){return null!=n?t[i]:t},keyedColumns:I,original:function(t,e,n,i){var r=c(t);return null!=n&&r instanceof Array?r[n]:r},typedArray:I};function I(t,e,n,i){return null!=n?t[n]:t}var T={arrayRows:k,objectRows:function(t,e,n,i){return M(t[e],this._dimensionInfos[e])},keyedColumns:k,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return!this._rawData.pure&&u(t)&&(this.hasItemOption=!0),M(r instanceof Array?r[i]:r,this._dimensionInfos[e])},typedArray:function(t,e,n,i){return t[i]}};function k(t,e,n,i){return M(t[i],this._dimensionInfos[e])}function M(t,e){var n=e&&e.type;if("ordinal"===n){var i=e&&e.ordinalMeta;return i?i.parseAndCollect(t):t}return"time"===n&&"number"!==typeof t&&null!=t&&"-"!==t&&(t=+d(t)),null==t||""===t?NaN:+t}function D(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r,a,o=t.getProvider().getSource().sourceFormat,s=t.getDimensionInfo(n);return s&&(r=s.name,a=s.index),C[o](i,e,a,r)}}}function E(t,e,n){if(t){var i=t.getProvider().getSource().sourceFormat;if(i===v||i===y){var r=t.getRawDataItem(e);return i!==v||s(r)||(r=null),r?r[n]:void 0}}}e.DefaultDataProvider=x,e.defaultDimValueGetters=T,e.retrieveRawValue=D,e.retrieveRawAttr=E},"2b61":function(t,e,n){var i=n("7d6d"),r=n("82eb"),a=r.ContextCachedBy,o=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],s=function(t){this.extendFrom(t,!1)};function l(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,a=null==e.y?0:e.y,o=null==e.y2?0:e.y2;e.global||(i=i*n.width+n.x,r=r*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),i=isNaN(i)?0:i,r=isNaN(r)?1:r,a=isNaN(a)?0:a,o=isNaN(o)?0:o;var s=t.createLinearGradient(i,a,r,o);return s}function c(t,e,n){var i=n.width,r=n.height,a=Math.min(i,r),o=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;e.global||(o=o*i+n.x,s=s*r+n.y,l*=a);var c=t.createRadialGradient(o,s,0,o,s,l);return c}s.prototype={constructor:s,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(t,e,n){var r=this,s=n&&n.style,l=!s||t.__attrCachedBy!==a.STYLE_BIND;t.__attrCachedBy=a.STYLE_BIND;for(var c=0;c<o.length;c++){var u=o[c],h=u[0];(l||r[h]!==s[h])&&(t[h]=i(t,h,r[h]||u[1]))}if((l||r.fill!==s.fill)&&(t.fillStyle=r.fill),(l||r.stroke!==s.stroke)&&(t.strokeStyle=r.stroke),(l||r.opacity!==s.opacity)&&(t.globalAlpha=null==r.opacity?1:r.opacity),(l||r.blend!==s.blend)&&(t.globalCompositeOperation=r.blend||"source-over"),this.hasStroke()){var d=r.lineWidth;t.lineWidth=d/(this.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1)}},hasFill:function(){var t=this.fill;return null!=t&&"none"!==t},hasStroke:function(){var t=this.stroke;return null!=t&&"none"!==t&&this.lineWidth>0},extendFrom:function(t,e){if(t)for(var n in t)!t.hasOwnProperty(n)||!0!==e&&(!1===e?this.hasOwnProperty(n):null==t[n])||(this[n]=t[n])},set:function(t,e){"string"===typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,n){for(var i="radial"===e.type?c:l,r=i(t,e,n),a=e.colorStops,o=0;o<a.length;o++)r.addColorStop(a[o].offset,a[o].color);return r}};for(var u=s.prototype,h=0;h<o.length;h++){var d=o[h];d[0]in u||(u[d[0]]=d[1])}s.getGradient=u.getGradient;var f=s;t.exports=f},"2b8c":function(t,e,n){var i=n("6d8b"),r=n("5f14"),a=i.each;function o(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function s(t,e,n){var o={};return a(e,(function(e){var l=o[e]=s();a(t[e],(function(t,a){if(r.isValidType(a)){var o={type:a,visual:t};n&&n(o,e),l[a]=new r(o),"opacity"===a&&(o=i.clone(o),o.type="colorAlpha",l.__hidden.__alphaForOpacity=new r(o))}}))})),o;function s(){var t=function(){};t.prototype.__hidden=t.prototype;var e=new t;return e}}function l(t,e,n){var r;i.each(n,(function(t){e.hasOwnProperty(t)&&o(e[t])&&(r=!0)})),r&&i.each(n,(function(n){e.hasOwnProperty(n)&&o(e[n])?t[n]=i.clone(e[n]):delete t[n]}))}function c(t,e,n,a,o,s){var l,c={};function u(t){return n.getItemVisual(l,t)}function h(t,e){n.setItemVisual(l,t,e)}function d(t,i){l=null==s?t:i;var r=n.getRawDataItem(l);if(!r||!1!==r.visualMap)for(var d=a.call(o,t),f=e[d],p=c[d],g=0,m=p.length;g<m;g++){var v=p[g];f[v]&&f[v].applyVisual(t,u,h)}}i.each(t,(function(t){var n=r.prepareVisualTypes(e[t]);c[t]=n})),null==s?n.each(d):n.each([s],d)}function u(t,e,n,a){var o={};function s(t,i){function r(t){return i.getItemVisual(l,t)}function s(t,e){i.setItemVisual(l,t,e)}var l;null!=a&&(a=i.getDimension(a));while(null!=(l=t.next())){var c=i.getRawDataItem(l);if(!c||!1!==c.visualMap)for(var u=null!=a?i.get(a,l,!0):l,h=n(u),d=e[h],f=o[h],p=0,g=f.length;p<g;p++){var m=f[p];d[m]&&d[m].applyVisual(u,r,s)}}}return i.each(t,(function(t){var n=r.prepareVisualTypes(e[t]);o[t]=n})),{progress:s}}e.createVisualMappings=s,e.replaceVisualOption=l,e.applyVisual=c,e.incrementalApplyVisual=u},"2c17":function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=r.createHashMap,o=r.each;i.registerProcessor({getTargetSeries:function(t){var e=a();return t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(t,n,i){var r=i.getAxisProxy(t.name,n);o(r.getTargetSeriesModels(),(function(t){e.set(t.uid,t)}))}))})),e},modifyOutputEnd:!0,overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(t,n,i){i.getAxisProxy(t.name,n).reset(i,e)})),t.eachTargetAxis((function(t,n,i){i.getAxisProxy(t.name,n).filterData(i,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy(),n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}))}})},"2cef":function(t,e,n){"use strict";t.exports=function(){var t=1;function e(){return t++}return{generate:e}}},"2cf4c":function(t,e){var n=1;"undefined"!==typeof window&&(n=Math.max(window.devicePixelRatio||1,1));var i=0,r=n;e.debugMode=i,e.devicePixelRatio=r},"2cfc":function(t,e,n){var i=n("3eba");n("4338"),n("bcbe"),n("c62c"),n("cb8f"),n("f138"),i.extendComponentView({type:"single"})},"2f31":function(t,e,n){var i=n("3eba"),r=n("ae75");n("10cc"),n("f31f"),n("c2dd"),n("b8ec"),n("fecb"),i.registerPreprocessor(r)},"2f45":function(t,e,n){var i=n("6d8b"),r=i.each,a=i.createHashMap,o=(i.assert,n("4e08")),s=(o.__DEV__,a(["tooltip","label","itemName","itemId","seriesName"]));function l(t){var e={},n=e.encode={},i=a(),o=[],l=[],u=e.userOutput={dimensionNames:t.dimensions.slice(),encode:{}};r(t.dimensions,(function(e){var r=t.getDimensionInfo(e),a=r.coordDim;if(a){var d=r.coordDimIndex;c(n,a)[d]=e,r.isExtraCoord||(i.set(a,1),h(r.type)&&(o[0]=e),c(u.encode,a)[d]=r.index),r.defaultTooltip&&l.push(e)}s.each((function(t,e){var i=c(n,e),a=r.otherDims[e];null!=a&&!1!==a&&(i[a]=r.name)}))}));var d=[],f={};i.each((function(t,e){var i=n[e];f[e]=i[0],d=d.concat(i)})),e.dataDimsOnCoord=d,e.encodeFirstDimNotExtra=f;var p=n.label;p&&p.length&&(o=p.slice());var g=n.tooltip;return g&&g.length?l=g.slice():l.length||(l=o.slice()),n.defaultedLabel=o,n.defaultedTooltip=l,e}function c(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function u(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function h(t){return!("ordinal"===t||"time"===t)}e.OTHER_DIMENSIONS=s,e.summarizeDimensions=l,e.getDimensionTypeByAxis=u},"2f73":function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=n("1e32");n("1ccf"),n("f5e6"),n("792e"),n("cb8f"),n("6acf"),i.registerLayout(r.curry(a,"bar")),i.extendComponentView({type:"polar"})},"2f91":function(t,e){var n=["itemStyle","borderColor"];function i(t,e){var i=t.get("color");t.eachRawSeriesByType("boxplot",(function(e){var r=i[e.seriesIndex%i.length],a=e.getData();a.setVisual({legendSymbol:"roundRect",color:e.get(n)||r}),t.isSeriesFiltered(e)||a.each((function(t){var e=a.getItemModel(t);a.setItemVisual(t,{color:e.get(n,!0)})}))}))}t.exports=i},3014:function(t,e,n){var i=n("4f85"),r=n("3301"),a=i.extend({type:"series.__base_bar__",getInitialData:function(t,e){return r(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(t){var e=this.coordinateSystem;if(e){var n=e.dataToPoint(e.clampData(t)),i=this.getData(),r=i.getLayout("offset"),a=i.getLayout("size"),o=e.getBaseAxis().isHorizontal()?0:1;return n[o]+=r+a/2,n}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});t.exports=a},3041:function(t,e,n){var i=n("e1fc"),r=n("0da8"),a=n("76a5"),o=n("d9fc"),s=n("c7a2"),l=n("ae69"),c=n("cb11"),u=n("cbe5"),h=n("87b1"),d=n("d498"),f=n("48a9"),p=n("2b61"),g=n("1687"),m=n("342d"),v=m.createFromString,y=n("6d8b"),x=y.isString,b=y.extend,_=y.defaults,w=y.trim,S=y.each,A=/[\s,]+/;function C(t){if(x(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}9===t.nodeType&&(t=t.firstChild);while("svg"!==t.nodeName.toLowerCase()||1!==t.nodeType)t=t.nextSibling;return t}function I(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}I.prototype.parse=function(t,e){e=e||{};var n=C(t);if(!n)throw new Error("Illegal svg");var r=new i;this._root=r;var a=n.getAttribute("viewBox")||"",o=parseFloat(n.getAttribute("width")||e.width),l=parseFloat(n.getAttribute("height")||e.height);isNaN(o)&&(o=null),isNaN(l)&&(l=null),P(n,r,null,!0);var c,u,h=n.firstChild;while(h)this._parseNode(h,r),h=h.nextSibling;if(a){var d=w(a).split(A);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&null!=o&&null!=l&&(u=V(c,o,l),!e.ignoreViewBox)){var f=r;r=new i,r.add(f),f.scale=u.scale.slice(),f.position=u.position.slice()}return e.ignoreRootClip||null==o||null==l||r.setClipPath(new s({shape:{x:0,y:0,width:o,height:l}})),{root:r,width:o,height:l,viewBoxRect:c,viewBoxTransform:u}},I.prototype._parseNode=function(t,e){var n,i=t.nodeName.toLowerCase();if("defs"===i?this._isDefine=!0:"text"===i&&(this._isText=!0),this._isDefine){var r=k[i];if(r){var a=r.call(this,t),o=t.getAttribute("id");o&&(this._defs[o]=a)}}else{r=T[i];r&&(n=r.call(this,t,e),e.add(n))}var s=t.firstChild;while(s)1===s.nodeType&&this._parseNode(s,n),3===s.nodeType&&this._isText&&this._parseText(s,n),s=s.nextSibling;"defs"===i?this._isDefine=!1:"text"===i&&(this._isText=!1)},I.prototype._parseText=function(t,e){if(1===t.nodeType){var n=t.getAttribute("dx")||0,i=t.getAttribute("dy")||0;this._textX+=parseFloat(n),this._textY+=parseFloat(i)}var r=new a({style:{text:t.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});D(e,r),P(t,r,this._defs);var o=r.style.fontSize;o&&o<9&&(r.style.fontSize=9,r.scale=r.scale||[1,1],r.scale[0]*=o/9,r.scale[1]*=o/9);var s=r.getBoundingRect();return this._textX+=s.width,e.add(r),r};var T={g:function(t,e){var n=new i;return D(e,n),P(t,n,this._defs),n},rect:function(t,e){var n=new s;return D(e,n),P(t,n,this._defs),n.setShape({x:parseFloat(t.getAttribute("x")||0),y:parseFloat(t.getAttribute("y")||0),width:parseFloat(t.getAttribute("width")||0),height:parseFloat(t.getAttribute("height")||0)}),n},circle:function(t,e){var n=new o;return D(e,n),P(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),r:parseFloat(t.getAttribute("r")||0)}),n},line:function(t,e){var n=new c;return D(e,n),P(t,n,this._defs),n.setShape({x1:parseFloat(t.getAttribute("x1")||0),y1:parseFloat(t.getAttribute("y1")||0),x2:parseFloat(t.getAttribute("x2")||0),y2:parseFloat(t.getAttribute("y2")||0)}),n},ellipse:function(t,e){var n=new l;return D(e,n),P(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),rx:parseFloat(t.getAttribute("rx")||0),ry:parseFloat(t.getAttribute("ry")||0)}),n},polygon:function(t,e){var n=t.getAttribute("points");n&&(n=E(n));var i=new h({shape:{points:n||[]}});return D(e,i),P(t,i,this._defs),i},polyline:function(t,e){var n=new u;D(e,n),P(t,n,this._defs);var i=t.getAttribute("points");i&&(i=E(i));var r=new d({shape:{points:i||[]}});return r},image:function(t,e){var n=new r;return D(e,n),P(t,n,this._defs),n.setStyle({image:t.getAttribute("xlink:href"),x:t.getAttribute("x"),y:t.getAttribute("y"),width:t.getAttribute("width"),height:t.getAttribute("height")}),n},text:function(t,e){var n=t.getAttribute("x")||0,r=t.getAttribute("y")||0,a=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0;this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(r)+parseFloat(o);var s=new i;return D(e,s),P(t,s,this._defs),s},tspan:function(t,e){var n=t.getAttribute("x"),r=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var a=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0,s=new i;return D(e,s),P(t,s,this._defs),this._textX+=a,this._textY+=o,s},path:function(t,e){var n=t.getAttribute("d")||"",i=v(n);return D(e,i),P(t,i,this._defs),i}},k={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||0,10),n=parseInt(t.getAttribute("y1")||0,10),i=parseInt(t.getAttribute("x2")||10,10),r=parseInt(t.getAttribute("y2")||0,10),a=new f(e,n,i,r);return M(t,a),a},radialgradient:function(t){}};function M(t,e){var n=t.firstChild;while(n){if(1===n.nodeType){var i=n.getAttribute("offset");i=i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var r=n.getAttribute("stop-color")||"#000000";e.addColorStop(i,r)}n=n.nextSibling}}function D(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),_(e.__inheritedStyle,t.__inheritedStyle))}function E(t){for(var e=w(t).split(A),n=[],i=0;i<e.length;i+=2){var r=parseFloat(e[i]),a=parseFloat(e[i+1]);n.push([r,a])}return n}var L={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function P(t,e,n,i){var r=e.__inheritedStyle||{},a="text"===e.type;if(1===t.nodeType&&(B(t,e),b(r,F(t)),!i))for(var o in L)if(L.hasOwnProperty(o)){var s=t.getAttribute(o);null!=s&&(r[L[o]]=s)}var l=a?"textFill":"fill",c=a?"textStroke":"stroke";e.style=e.style||new p;var u=e.style;null!=r.fill&&u.set(l,R(r.fill,n)),null!=r.stroke&&u.set(c,R(r.stroke,n)),S(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){var e="lineWidth"===t&&a?"textStrokeWidth":t;null!=r[t]&&u.set(e,parseFloat(r[t]))})),r.textBaseline&&"auto"!==r.textBaseline||(r.textBaseline="alphabetic"),"alphabetic"===r.textBaseline&&(r.textBaseline="bottom"),"start"===r.textAlign&&(r.textAlign="left"),"end"===r.textAlign&&(r.textAlign="right"),S(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],(function(t){null!=r[t]&&u.set(t,r[t])})),r.lineDash&&(e.style.lineDash=w(r.lineDash).split(A)),u[c]&&"none"!==u[c]&&(e[c]=!0),e.__inheritedStyle=r}var O=/url\(\s*#(.*?)\)/;function R(t,e){var n=e&&t&&t.match(O);if(n){var i=w(n[1]),r=e[i];return r}return t}var N=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function B(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=null,r=[];n.replace(N,(function(t,e,n){r.push(e,n)}));for(var a=r.length-1;a>0;a-=2){var o=r[a],s=r[a-1];switch(i=i||g.create(),s){case"translate":o=w(o).split(A),g.translate(i,i,[parseFloat(o[0]),parseFloat(o[1]||0)]);break;case"scale":o=w(o).split(A),g.scale(i,i,[parseFloat(o[0]),parseFloat(o[1]||o[0])]);break;case"rotate":o=w(o).split(A),g.rotate(i,i,parseFloat(o[0]));break;case"skew":o=w(o).split(A),console.warn("Skew transform is not supported yet");break;case"matrix":o=w(o).split(A);i[0]=parseFloat(o[0]),i[1]=parseFloat(o[1]),i[2]=parseFloat(o[2]),i[3]=parseFloat(o[3]),i[4]=parseFloat(o[4]),i[5]=parseFloat(o[5]);break}}e.setLocalTransform(i)}}var z=/([^\s:;]+)\s*:\s*([^:;]+)/g;function F(t){var e=t.getAttribute("style"),n={};if(!e)return n;var i,r={};z.lastIndex=0;while(null!=(i=z.exec(e)))r[i[1]]=i[2];for(var a in L)L.hasOwnProperty(a)&&null!=r[a]&&(n[L[a]]=r[a]);return n}function V(t,e,n){var i=e/t.width,r=n/t.height,a=Math.min(i,r),o=[a,a],s=[-(t.x+t.width/2)*a+e/2,-(t.y+t.height/2)*a+n/2];return{scale:o,position:s}}function W(t,e){var n=new I;return n.parse(t,e)}e.parseXML=C,e.makeViewBoxTransform=V,e.parseSVG=W},"307a":function(t,e,n){var i=n("6d8b"),r=n("eaea"),a=n("3842"),o=[20,140],s=r.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(t,e){s.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},resetItemSize:function(){s.superApply(this,"resetItemSize",arguments);var t=this.itemSize;"horizontal"===this._orient&&t.reverse(),(null==t[0]||isNaN(t[0]))&&(t[0]=o[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=o[1])},_resetRange:function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):i.isArray(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},completeVisualOption:function(){r.prototype.completeVisualOption.apply(this,arguments),i.each(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)}),this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=a.asc((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},getValueState:function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},getVisualMeta:function(t){var e=l(this,"outOfRange",this.getExtent()),n=l(this,"inRange",this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var a=0,o=0,s=n.length,c=e.length;o<c&&(!n.length||e[o]<=n[0]);o++)e[o]<n[a]&&r(e[o],"outOfRange");for(var u=1;a<s;a++,u=0)u&&i.length&&r(n[a],"outOfRange"),r(n[a],"inRange");for(u=1;o<c;o++)(!n.length||n[n.length-1]<e[o])&&(u&&(i.length&&r(i[i.length-1].value,"outOfRange"),u=0),r(e[o],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}}});function l(t,e,n){if(n[0]===n[1])return n.slice();for(var i=200,r=(n[1]-n[0])/i,a=n[0],o=[],s=0;s<=i&&a<n[1];s++)o.push(a),a+=r;return o.push(n[1]),o}var c=s;t.exports=c},"307b":function(t,e,n){var i=n("6d8b");function r(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function a(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:i.bind(r,t)}}}t.exports=a},"307d":function(t,e,n){var i=n("6d8b"),r=n("6179"),a=n("3842"),o=n("923d"),s=n("73ca"),l=n("88f0"),c=n("ee1a"),u=c.getStackedDimension,h=function(t,e,n,r){var a=t.getData(),s=r.type;if(!i.isArray(r)&&("min"===s||"max"===s||"average"===s||"median"===s||null!=r.xAxis||null!=r.yAxis)){var l,c;if(null!=r.yAxis||null!=r.xAxis)l=e.getAxis(null!=r.yAxis?"y":"x"),c=i.retrieve(r.yAxis,r.xAxis);else{var h=o.getAxisInfo(r,a,e,t);l=h.valueAxis;var d=u(a,h.valueDataDim);c=o.numCalculate(a,d,s)}var f="x"===l.dim?0:1,p=1-f,g=i.clone(r),m={};g.type=null,g.coord=[],m.coord=[],g.coord[p]=-1/0,m.coord[p]=1/0;var v=n.get("precision");v>=0&&"number"===typeof c&&(c=+c.toFixed(Math.min(v,20))),g.coord[f]=m.coord[f]=c,r=[g,m,{type:s,valueIndex:r.valueIndex,value:c}]}return r=[o.dataTransform(t,r[0]),o.dataTransform(t,r[1]),i.extend({},r[2])],r[2].type=r[2].type||"",i.merge(r[2],r[0]),i.merge(r[2],r[1]),r};function d(t){return!isNaN(t)&&!isFinite(t)}function f(t,e,n,i){var r=1-t,a=i.dimensions[t];return d(e[r])&&d(n[r])&&e[t]===n[t]&&i.getAxis(a).containData(e[t])}function p(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(f(1,n,i,t)||f(0,n,i,t)))return!0}return o.dataFilter(t,e[0])&&o.dataFilter(t,e[1])}function g(t,e,n,i,r){var o,s=i.coordinateSystem,l=t.getItemModel(e),c=a.parsePercent(l.get("x"),r.getWidth()),u=a.parsePercent(l.get("y"),r.getHeight());if(isNaN(c)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var h=s.dimensions,f=t.get(h[0],e),p=t.get(h[1],e);o=s.dataToPoint([f,p])}if("cartesian2d"===s.type){var g=s.getAxis("x"),m=s.getAxis("y");h=s.dimensions;d(t.get(h[0],e))?o[0]=g.toGlobalCoord(g.getExtent()[n?0:1]):d(t.get(h[1],e))&&(o[1]=m.toGlobalCoord(m.getExtent()[n?0:1]))}isNaN(c)||(o[0]=c),isNaN(u)||(o[1]=u)}else o=[c,u];t.setItemLayout(e,o)}var m=l.extend({type:"markLine",updateTransform:function(t,e,n){e.eachSeries((function(t){var e=t.markLineModel;if(e){var i=e.getData(),r=e.__from,a=e.__to;r.each((function(e){g(r,e,!0,t,n),g(a,e,!1,t,n)})),i.each((function(t){i.setItemLayout(t,[r.getItemLayout(t),a.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},renderSeries:function(t,e,n,r){var a=t.coordinateSystem,o=t.id,l=t.getData(),c=this.markerGroupMap,u=c.get(o)||c.set(o,new s);this.group.add(u.group);var h=v(a,t,e),d=h.from,f=h.to,p=h.line;e.__from=d,e.__to=f,e.setData(p);var m=e.get("symbol"),y=e.get("symbolSize");function x(e,n,i){var a=e.getItemModel(n);g(e,n,i,t,r),e.setItemVisual(n,{symbolSize:a.get("symbolSize")||y[i?0:1],symbol:a.get("symbol",!0)||m[i?0:1],color:a.get("itemStyle.color")||l.getVisual("color")})}i.isArray(m)||(m=[m,m]),"number"===typeof y&&(y=[y,y]),h.from.each((function(t){x(d,t,!0),x(f,t,!1)})),p.each((function(t){var e=p.getItemModel(t).get("lineStyle.color");p.setItemVisual(t,{color:e||d.getItemVisual(t,"color")}),p.setItemLayout(t,[d.getItemLayout(t),f.getItemLayout(t)]),p.setItemVisual(t,{fromSymbolSize:d.getItemVisual(t,"symbolSize"),fromSymbol:d.getItemVisual(t,"symbol"),toSymbolSize:f.getItemVisual(t,"symbolSize"),toSymbol:f.getItemVisual(t,"symbol")})})),u.updateData(p),h.line.eachItemGraphicEl((function(t,n){t.traverse((function(t){t.dataModel=e}))})),u.__keep=!0,u.group.silent=e.get("silent")||t.get("silent")}});function v(t,e,n){var a;a=t?i.map(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return i.defaults({name:t},n)})):[{name:"value",type:"float"}];var s=new r(a,n),l=new r(a,n),c=new r([],n),u=i.map(n.get("data"),i.curry(h,e,t,n));t&&(u=i.filter(u,i.curry(p,t)));var d=t?o.dimValueGetter:function(t){return t.value};return s.initData(i.map(u,(function(t){return t[0]})),null,d),l.initData(i.map(u,(function(t){return t[1]})),null,d),c.initData(i.map(u,(function(t){return t[2]}))),c.hasItemOption=!0,{from:s,to:l,line:c}}t.exports=m},"30a3":function(t,e,n){var i=n("6d8b"),r=n("607d"),a=r.Dispatcher,o=n("98b7"),s=n("06ad"),l=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,a.call(this)};l.prototype={constructor:l,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),n=0;n<e.length;n++)this.addClip(e[n])},removeClip:function(t){var e=i.indexOf(this._clips,t);e>=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),n=0;n<e.length;n++)this.removeClip(e[n]);t.animation=null},_update:function(){for(var t=(new Date).getTime()-this._pausedTime,e=t-this._time,n=this._clips,i=n.length,r=[],a=[],o=0;o<i;o++){var s=n[o],l=s.step(t,e);l&&(r.push(l),a.push(s))}for(o=0;o<i;)n[o]._needsRemove?(n[o]=n[i-1],n.pop(),i--):o++;i=r.length;for(o=0;o<i;o++)a[o].fire(r[o]);this._time=t,this.onframe(e),this.trigger("frame",e),this.stage.update&&this.stage.update()},_startLoop:function(){var t=this;function e(){t._running&&(o(e),!t._paused&&t._update())}this._running=!0,o(e)},start:function(){this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(t,e){e=e||{};var n=new s(t,e.loop,e.getter,e.setter);return this.addAnimator(n),n}},i.mixin(l,a);var c=l;t.exports=c},"311a":function(t,e,n){var i=n("3eba");n("d01c"),n("5b69"),n("bdc0");var r=n("81ac"),a=n("0e0f");i.registerLayout(r),i.registerVisual(a)},"313e":function(t,e,n){var i=n("3eba");(function(){for(var t in i){if(null==i||!i.hasOwnProperty(t)||"default"===t||"__esModule"===t)return;e[t]=i[t]}})();var r=n("b719");(function(){for(var t in r){if(null==r||!r.hasOwnProperty(t)||"default"===t||"__esModule"===t)return;e[t]=r[t]}})(),n("0352"),n("ef97"),n("94b1"),n("c037"),n("15af"),n("8deb"),n("675c"),n("ef97a"),n("dae1"),n("23ee"),n("07e6"),n("a4b1"),n("0817"),n("311a"),n("fa52"),n("085d"),n("1111"),n("a7e2"),n("5ce2"),n("aadf"),n("6c12f"),n("d716"),n("e057"),n("cd12"),n("2f73"),n("d070"),n("2cfc"),n("f306"),n("9390"),n("7f59"),n("b11c"),n("007d"),n("cb8f"),n("2f31"),n("627c"),n("ee95"),n("db0e"),n("95a8"),n("7e32"),n("0b4b"),n("d28f"),n("0a6d"),n("7f72"),n("e4d1"),n("5450"),n("7419"),n("29a9"),n("f170"),n("8ee0")},"31d9":function(t,e,n){var i=n("6d8b"),r=i.each,a="\0__link_datas",o="\0__link_mainData";function s(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,f(e,n,t),r(n,(function(n){r(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,i.curry(l,t))}))})),e.wrapMethod("cloneShallow",i.curry(u,t)),r(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,i.curry(c,t))})),i.assert(n[e.dataType]===e)}function l(t,e){if(d(this)){var n=i.extend({},this[a]);n[this.dataType]=e,f(e,n,t)}else p(e,this.dataType,this[o],t);return e}function c(t,e){return t.struct&&t.struct.update(this),e}function u(t,e){return r(e[a],(function(n,i){n!==e&&p(n.cloneShallow(),i,e,t)})),e}function h(t){var e=this[o];return null==t||null==e?e:e[a][t]}function d(t){return t[o]===t}function f(t,e,n){t[a]={},r(e,(function(e,i){p(e,i,t,n)}))}function p(t,e,n,i){n[a][e]=t,t[o]=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=h}var g=s;t.exports=g},"320a":function(t,e,n){for(var i=n("6d8b"),r=n("f279"),a=[126,25],o=[[[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<o.length;s++)for(var l=0;l<o[s].length;l++)o[s][l][0]/=10.5,o[s][l][1]/=-14,o[s][l][0]+=a[0],o[s][l][1]+=a[1];function c(t,e){"china"===t&&e.push(new r("南海诸岛",i.map(o,(function(t){return{type:"polygon",exterior:t}})),a))}t.exports=c},"32a1":function(t,e,n){var i=n("6d8b"),r=n("7dcf"),a=n("ef6a"),o=n("5576"),s=i.bind,l=r.extend({type:"dataZoom.inside",init:function(t,e){this._range},render:function(t,e,n,r){l.superApply(this,"render",arguments),this._range=t.getPercentRange(),i.each(this.getTargetCoordInfo(),(function(e,r){var a=i.map(e,(function(t){return o.generateCoordId(t.model)}));i.each(e,(function(e){var l=e.model,u={};i.each(["pan","zoom","scrollMove"],(function(t){u[t]=s(c[t],this,e,r)}),this),o.register(n,{coordId:o.generateCoordId(l),allCoordIds:a,containsPoint:function(t,e,n){return l.coordinateSystem.containPoint([e,n])},dataZoomId:t.id,dataZoomModel:t,getRange:u})}),this)}),this)},dispose:function(){o.unregister(this.api,this.dataZoomModel.id),l.superApply(this,"dispose",arguments),this._range=null}}),c={zoom:function(t,e,n,i){var r=this._range,o=r.slice(),s=t.axisModels[0];if(s){var l=h[e](null,[i.originX,i.originY],s,n,t),c=(l.signal>0?l.pixelStart+l.pixelLength-l.pixel:l.pixel-l.pixelStart)/l.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-c)*u+c,o[1]=(o[1]-c)*u+c;var d=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return a(0,o,[0,100],0,d.minSpan,d.maxSpan),this._range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:u((function(t,e,n,i,r,a){var o=h[i]([a.oldX,a.oldY],[a.newX,a.newY],e,r,n);return o.signal*(t[1]-t[0])*o.pixel/o.pixelLength})),scrollMove:u((function(t,e,n,i,r,a){var o=h[i]([0,0],[a.scrollDelta,a.scrollDelta],e,r,n);return o.signal*(t[1]-t[0])*a.scrollDelta}))};function u(t){return function(e,n,i,r){var o=this._range,s=o.slice(),l=e.axisModels[0];if(l){var c=t(s,l,e,n,i,r);return a(c,s,[0,100],"all"),this._range=s,o[0]!==s[0]||o[1]!==s[1]?s:void 0}}}var h={grid:function(t,e,n,i,r){var a=n.axis,o={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===a.dim?(o.pixel=e[0]-t[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(t,e,n,i,r){var a=n.axis,o={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(o.pixel=e[0]-t[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=a.inverse?-1:1),o},singleAxis:function(t,e,n,i,r){var a=n.axis,o=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===a.orient?(s.pixel=e[0]-t[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}},d=l;t.exports=d},3301:function(t,e,n){var i=n("6d8b"),r=n("6179"),a=n("b1d4"),o=n("93d0"),s=o.SOURCE_FORMAT_ORIGINAL,l=n("2f45"),c=l.getDimensionTypeByAxis,u=n("e0d3"),h=u.getDataItemValue,d=n("2039"),f=n("8b7f"),p=f.getCoordSysInfoBySeries,g=n("ec6f"),m=n("ee1a"),v=m.enableDataStack,y=n("0f99"),x=y.makeSeriesEncodeForAxisCoordSys;function b(t,e,n){n=n||{},g.isInstance(t)||(t=g.seriesDataToSource(t));var o,s=e.get("coordinateSystem"),l=d.get(s),u=p(e);u&&(o=i.map(u.coordSysDims,(function(t){var e={name:t},n=u.axisMap.get(t);if(n){var i=n.get("type");e.type=c(i)}return e}))),o||(o=l&&(l.getDimensionsInfo?l.getDimensionsInfo():l.dimensions.slice())||["x","y"]);var h,f,m=a(t,{coordDimensions:o,generateCoord:n.generateCoord,encodeDefaulter:n.useEncodeDefaulter?i.curry(x,o,e):null});u&&i.each(m,(function(t,e){var n=t.coordDim,i=u.categoryAxisMap.get(n);i&&(null==h&&(h=e),t.ordinalMeta=i.getOrdinalMeta()),null!=t.otherDims.itemName&&(f=!0)})),f||null==h||(m[h].otherDims.itemName=0);var y=v(e,m),b=new r(m,e);b.setCalculationInfo(y);var w=null!=h&&_(t)?function(t,e,n,i){return i===h?n:this.defaultDimValueGetter(t,e,n,i)}:null;return b.hasItemOption=!1,b.initData(t,null,w),b}function _(t){if(t.sourceFormat===s){var e=w(t.data||[]);return null!=e&&!i.isArray(h(e))}}function w(t){var e=0;while(e<t.length&&null==t[e])e++;return t[e]}var S=b;t.exports=S},3329:function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=n("2306"),o=n("a15a"),s=o.createSymbol,l=n("3842"),c=l.parsePercent,u=l.isNumeric,h=n("e7aa"),d=h.setLabel,f=["itemStyle","borderWidth"],p=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],g=new a.Circle,m=i.extendChartView({type:"pictorialBar",render:function(t,e,n){var i=this.group,r=t.getData(),a=this._data,o=t.coordinateSystem,s=o.getBaseAxis(),l=!!s.isHorizontal(),c=o.grid.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:o,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:l,valueDim:p[+l],categoryDim:p[1-l]};return r.diff(a).add((function(t){if(r.hasValue(t)){var e=k(r,t),n=v(r,t,e,u),a=L(r,u,n);r.setItemGraphicEl(t,a),i.add(a),z(a,u,n)}})).update((function(t,e){var n=a.getItemGraphicEl(e);if(r.hasValue(t)){var o=k(r,t),s=v(r,t,o,u),l=R(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(t,null),n=null),n?P(n,u,s):n=L(r,u,s,!0),r.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,i.add(n),z(n,u,s)}else i.remove(n)})).remove((function(t){var e=a.getItemGraphicEl(t);e&&O(a,t,e.__pictorialSymbolMeta.animationModel,e)})).execute(),this._data=r,this.group},dispose:r.noop,remove:function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl((function(e){O(i,e.dataIndex,t,e)})):n.removeAll()}});function v(t,e,n,i){var a=t.getItemLayout(e),o=n.get("symbolRepeat"),s=n.get("symbolClip"),l=n.get("symbolPosition")||"start",u=n.get("symbolRotate"),h=(u||0)*Math.PI/180||0,d=n.get("symbolPatternSize")||2,f=n.isAnimationEnabled(),p={dataIndex:e,layout:a,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",color:t.getItemVisual(e,"color"),symbolClip:s,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:d,rotation:h,animationModel:f?n:null,hoverAnimation:f&&n.get("hoverAnimation"),z2:n.getShallow("z",!0)||0};y(n,o,a,i,p),b(t,e,a,o,s,p.boundingLength,p.pxSign,d,i,p),_(n,p.symbolScale,h,i,p);var g=p.symbolSize,m=n.get("symbolOffset");return r.isArray(m)&&(m=[c(m[0],g[0]),c(m[1],g[1])]),w(n,g,a,o,s,m,l,p.valueLineWidth,p.boundingLength,p.repeatCutLength,i,p),p}function y(t,e,n,i,a){var o,s=i.valueDim,l=t.get("symbolBoundingData"),c=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),u=c.toGlobalCoord(c.dataToCoord(0)),h=1-+(n[s.wh]<=0);if(r.isArray(l)){var d=[x(c,l[0])-u,x(c,l[1])-u];d[1]<d[0]&&d.reverse(),o=d[h]}else o=null!=l?x(c,l)-u:e?i.coordSysExtent[s.index][h]-u:n[s.wh];a.boundingLength=o,e&&(a.repeatCutLength=n[s.wh]),a.pxSign=o>0?1:o<0?-1:0}function x(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function b(t,e,n,i,a,o,s,l,u,h){var d=u.valueDim,f=u.categoryDim,p=Math.abs(n[f.wh]),g=t.getItemVisual(e,"symbolSize");r.isArray(g)?g=g.slice():(null==g&&(g="100%"),g=[g,g]),g[f.index]=c(g[f.index],p),g[d.index]=c(g[d.index],i?p:Math.abs(o)),h.symbolSize=g;var m=h.symbolScale=[g[0]/l,g[1]/l];m[d.index]*=(u.isHorizontal?-1:1)*s}function _(t,e,n,i,r){var a=t.get(f)||0;a&&(g.attr({scale:e.slice(),rotation:n}),g.updateTransform(),a/=g.getLineScale(),a*=e[i.valueDim.index]),r.valueLineWidth=a}function w(t,e,n,i,a,o,s,l,h,d,f,p){var g=f.categoryDim,m=f.valueDim,v=p.pxSign,y=Math.max(e[m.index]+l,0),x=y;if(i){var b=Math.abs(h),_=r.retrieve(t.get("symbolMargin"),"15%")+"",w=!1;_.lastIndexOf("!")===_.length-1&&(w=!0,_=_.slice(0,_.length-1)),_=c(_,e[m.index]);var S=Math.max(y+2*_,0),A=w?0:2*_,C=u(i),I=C?i:F((b+A)/S),T=b-I*y;_=T/2/(w?I:I-1),S=y+2*_,A=w?0:2*_,C||"fixed"===i||(I=d?F((Math.abs(d)+A)/S):0),x=I*S-A,p.repeatTimes=I,p.symbolMargin=_}var k=v*(x/2),M=p.pathPosition=[];M[g.index]=n[g.wh]/2,M[m.index]="start"===s?k:"end"===s?h-k:h/2,o&&(M[0]+=o[0],M[1]+=o[1]);var D=p.bundlePosition=[];D[g.index]=n[g.xy],D[m.index]=n[m.xy];var E=p.barRectShape=r.extend({},n);E[m.wh]=v*Math.max(Math.abs(n[m.wh]),Math.abs(M[m.index]+k)),E[g.wh]=n[g.wh];var L=p.clipShape={};L[g.xy]=-n[g.xy],L[g.wh]=f.ecSize[g.wh],L[m.xy]=0,L[m.wh]=n[m.wh]}function S(t){var e=t.symbolPatternSize,n=s(t.symbolType,-e/2,-e/2,e,e,t.color);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function A(t,e,n,i){var r=t.__pictorialBundle,a=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,c=n.repeatTimes||0,u=0,h=a[e.valueDim.index]+o+2*n.symbolMargin;for(N(t,(function(t){t.__pictorialAnimationIndex=u,t.__pictorialRepeatTimes=c,u<c?B(t,null,p(u),n,i):B(t,null,{scale:[0,0]},n,i,(function(){r.remove(t)})),E(t,n),u++}));u<c;u++){var d=S(n);d.__pictorialAnimationIndex=u,d.__pictorialRepeatTimes=c,r.add(d);var f=p(u);B(d,{position:f.position,scale:[0,0]},{scale:f.scale,rotation:f.rotation},n,i),d.on("mouseover",g).on("mouseout",m),E(d,n)}function p(t){var e=s.slice(),i=n.pxSign,r=t;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(r=c-1-t),e[l.index]=h*(r-c/2+.5)+s[l.index],{position:e,scale:n.symbolScale.slice(),rotation:n.rotation}}function g(){N(t,(function(t){t.trigger("emphasis")}))}function m(){N(t,(function(t){t.trigger("normal")}))}}function C(t,e,n,i){var r=t.__pictorialBundle,a=t.__pictorialMainPath;function o(){this.trigger("emphasis")}function s(){this.trigger("normal")}a?B(a,null,{position:n.pathPosition.slice(),scale:n.symbolScale.slice(),rotation:n.rotation},n,i):(a=t.__pictorialMainPath=S(n),r.add(a),B(a,{position:n.pathPosition.slice(),scale:[0,0],rotation:n.rotation},{scale:n.symbolScale.slice()},n,i),a.on("mouseover",o).on("mouseout",s)),E(a,n)}function I(t,e,n){var i=r.extend({},e.barRectShape),o=t.__pictorialBarRect;o?B(o,null,{shape:i},e,n):(o=t.__pictorialBarRect=new a.Rect({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(o))}function T(t,e,n,i){if(n.symbolClip){var o=t.__pictorialClipPath,s=r.extend({},n.clipShape),l=e.valueDim,c=n.animationModel,u=n.dataIndex;if(o)a.updateProps(o,{shape:s},c,u);else{s[l.wh]=0,o=new a.Rect({shape:s}),t.__pictorialBundle.setClipPath(o),t.__pictorialClipPath=o;var h={};h[l.wh]=n.clipShape[l.wh],a[i?"updateProps":"initProps"](o,{shape:h},c,u)}}}function k(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=M,n.isAnimationEnabled=D,n}function M(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function D(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function E(t,e){t.off("emphasis").off("normal");var n=e.symbolScale.slice();e.hoverAnimation&&t.on("emphasis",(function(){this.animateTo({scale:[1.1*n[0],1.1*n[1]]},400,"elasticOut")})).on("normal",(function(){this.animateTo({scale:n.slice()},400,"elasticOut")}))}function L(t,e,n,i){var r=new a.Group,o=new a.Group;return r.add(o),r.__pictorialBundle=o,o.attr("position",n.bundlePosition.slice()),n.symbolRepeat?A(r,e,n):C(r,e,n),I(r,n,i),T(r,e,n,i),r.__pictorialShapeStr=R(t,n),r.__pictorialSymbolMeta=n,r}function P(t,e,n){var i=n.animationModel,r=n.dataIndex,o=t.__pictorialBundle;a.updateProps(o,{position:n.bundlePosition.slice()},i,r),n.symbolRepeat?A(t,e,n,!0):C(t,e,n,!0),I(t,n,!0),T(t,e,n,!0)}function O(t,e,n,i){var o=i.__pictorialBarRect;o&&(o.style.text=null);var s=[];N(i,(function(t){s.push(t)})),i.__pictorialMainPath&&s.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),r.each(s,(function(t){a.updateProps(t,{scale:[0,0]},n,e,(function(){i.parent&&i.parent.remove(i)}))})),t.setItemGraphicEl(e,null)}function R(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function N(t,e,n){r.each(t.__pictorialBundle.children(),(function(i){i!==t.__pictorialBarRect&&e.call(n,i)}))}function B(t,e,n,i,r,o){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&a[r?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,o)}function z(t,e,n){var i=n.color,o=n.dataIndex,s=n.itemModel,l=s.getModel("itemStyle").getItemStyle(["color"]),c=s.getModel("emphasis.itemStyle").getItemStyle(),u=s.getShallow("cursor");N(t,(function(t){t.setColor(i),t.setStyle(r.defaults({fill:i,opacity:n.opacity},l)),a.setHoverStyle(t,c),u&&(t.cursor=u),t.z2=n.z2}));var h={},f=e.valueDim.posDesc[+(n.boundingLength>0)],p=t.__pictorialBarRect;d(p.style,h,s,i,e.seriesModel,o,f),a.setHoverStyle(p,h)}function F(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var V=m;t.exports=V},"340d":function(t,e,n){var i=n("6d8b"),r=n("e887"),a=n("4e47"),o=n("80f0"),s=n("eda2"),l=s.windowOpen,c="sunburstRootToNode",u=r.extend({type:"sunburst",init:function(){},render:function(t,e,n,r){var s=this;this.seriesModel=t,this.api=n,this.ecModel=e;var l=t.getData(),c=l.tree.root,u=t.getViewRoot(),h=this.group,d=t.get("renderLabelForZeroData"),f=[];u.eachNode((function(t){f.push(t)}));var p=this._oldChildren||[];if(v(f,p),b(c,u),r&&r.highlight&&r.highlight.piece){var g=t.getShallow("highlightPolicy");r.highlight.piece.onEmphasis(g)}else if(r&&r.unhighlight){var m=this.virtualPiece;!m&&c.children.length&&(m=c.children[0].piece),m&&m.onNormal()}function v(t,e){function n(t){return t.getId()}function r(n,i){var r=null==n?null:t[n],a=null==i?null:e[i];y(r,a)}0===t.length&&0===e.length||new o(e,t,n,n).add(r).update(r).remove(i.curry(r,null)).execute()}function y(n,i){if(d||!n||n.getValue()||(n=null),n!==c&&i!==c)if(i&&i.piece)n?(i.piece.updateData(!1,n,"normal",t,e),l.setItemGraphicEl(n.dataIndex,i.piece)):x(i);else if(n){var r=new a(n,t,e);h.add(r),l.setItemGraphicEl(n.dataIndex,r)}}function x(t){t&&t.piece&&(h.remove(t.piece),t.piece=null)}function b(n,i){if(i.depth>0){s.virtualPiece?s.virtualPiece.updateData(!1,n,"normal",t,e):(s.virtualPiece=new a(n,t,e),h.add(s.virtualPiece)),i.piece._onclickEvent&&i.piece.off("click",i.piece._onclickEvent);var r=function(t){s._rootToNode(i.parentNode)};i.piece._onclickEvent=r,s.virtualPiece.on("click",r)}else s.virtualPiece&&(h.remove(s.virtualPiece),s.virtualPiece=null)}this._initEvents(),this._oldChildren=f},dispose:function(){},_initEvents:function(){var t=this,e=function(e){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece.childAt(0)===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var a=i.getModel(),o=a.get("link");if(o){var s=a.get("target",!0)||"_blank";l(o,s)}}n=!0}}))};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",e),this.group._onclickEvent=e},_rootToNode:function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:c,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var r=t[0]-i.cx,a=t[1]-i.cy,o=Math.sqrt(r*r+a*a);return o<=i.r&&o>=i.r0}}}),h=u;t.exports=h},"342d":function(t,e,n){var i=n("cbe5"),r=n("20c8"),a=n("ee84"),o=Math.sqrt,s=Math.sin,l=Math.cos,c=Math.PI,u=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},h=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(u(t)*u(e))},d=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(h(t,e))};function f(t,e,n,i,r,a,u,f,p,g,m){var v=p*(c/180),y=l(v)*(t-n)/2+s(v)*(e-i)/2,x=-1*s(v)*(t-n)/2+l(v)*(e-i)/2,b=y*y/(u*u)+x*x/(f*f);b>1&&(u*=o(b),f*=o(b));var _=(r===a?-1:1)*o((u*u*(f*f)-u*u*(x*x)-f*f*(y*y))/(u*u*(x*x)+f*f*(y*y)))||0,w=_*u*x/f,S=_*-f*y/u,A=(t+n)/2+l(v)*w-s(v)*S,C=(e+i)/2+s(v)*w+l(v)*S,I=d([1,0],[(y-w)/u,(x-S)/f]),T=[(y-w)/u,(x-S)/f],k=[(-1*y-w)/u,(-1*x-S)/f],M=d(T,k);h(T,k)<=-1&&(M=c),h(T,k)>=1&&(M=0),0===a&&M>0&&(M-=2*c),1===a&&M<0&&(M+=2*c),m.addData(g,A,C,u,f,I,M,v,a)}var p=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,g=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function m(t){if(!t)return new r;for(var e,n=0,i=0,a=n,o=i,s=new r,l=r.CMD,c=t.match(p),u=0;u<c.length;u++){for(var h,d=c[u],m=d.charAt(0),v=d.match(g)||[],y=v.length,x=0;x<y;x++)v[x]=parseFloat(v[x]);var b=0;while(b<y){var _,w,S,A,C,I,T,k=n,M=i;switch(m){case"l":n+=v[b++],i+=v[b++],h=l.L,s.addData(h,n,i);break;case"L":n=v[b++],i=v[b++],h=l.L,s.addData(h,n,i);break;case"m":n+=v[b++],i+=v[b++],h=l.M,s.addData(h,n,i),a=n,o=i,m="l";break;case"M":n=v[b++],i=v[b++],h=l.M,s.addData(h,n,i),a=n,o=i,m="L";break;case"h":n+=v[b++],h=l.L,s.addData(h,n,i);break;case"H":n=v[b++],h=l.L,s.addData(h,n,i);break;case"v":i+=v[b++],h=l.L,s.addData(h,n,i);break;case"V":i=v[b++],h=l.L,s.addData(h,n,i);break;case"C":h=l.C,s.addData(h,v[b++],v[b++],v[b++],v[b++],v[b++],v[b++]),n=v[b-2],i=v[b-1];break;case"c":h=l.C,s.addData(h,v[b++]+n,v[b++]+i,v[b++]+n,v[b++]+i,v[b++]+n,v[b++]+i),n+=v[b-2],i+=v[b-1];break;case"S":_=n,w=i;var D=s.len(),E=s.data;e===l.C&&(_+=n-E[D-4],w+=i-E[D-3]),h=l.C,k=v[b++],M=v[b++],n=v[b++],i=v[b++],s.addData(h,_,w,k,M,n,i);break;case"s":_=n,w=i;D=s.len(),E=s.data;e===l.C&&(_+=n-E[D-4],w+=i-E[D-3]),h=l.C,k=n+v[b++],M=i+v[b++],n+=v[b++],i+=v[b++],s.addData(h,_,w,k,M,n,i);break;case"Q":k=v[b++],M=v[b++],n=v[b++],i=v[b++],h=l.Q,s.addData(h,k,M,n,i);break;case"q":k=v[b++]+n,M=v[b++]+i,n+=v[b++],i+=v[b++],h=l.Q,s.addData(h,k,M,n,i);break;case"T":_=n,w=i;D=s.len(),E=s.data;e===l.Q&&(_+=n-E[D-4],w+=i-E[D-3]),n=v[b++],i=v[b++],h=l.Q,s.addData(h,_,w,n,i);break;case"t":_=n,w=i;D=s.len(),E=s.data;e===l.Q&&(_+=n-E[D-4],w+=i-E[D-3]),n+=v[b++],i+=v[b++],h=l.Q,s.addData(h,_,w,n,i);break;case"A":S=v[b++],A=v[b++],C=v[b++],I=v[b++],T=v[b++],k=n,M=i,n=v[b++],i=v[b++],h=l.A,f(k,M,n,i,I,T,S,A,C,h,s);break;case"a":S=v[b++],A=v[b++],C=v[b++],I=v[b++],T=v[b++],k=n,M=i,n+=v[b++],i+=v[b++],h=l.A,f(k,M,n,i,I,T,S,A,C,h,s);break}}"z"!==m&&"Z"!==m||(h=l.Z,s.addData(h),n=a,i=o),e=h}return s.toStatic(),s}function v(t,e){var n=m(t);return e=e||{},e.buildPath=function(t){if(t.setData){t.setData(n.data);var e=t.getContext();e&&t.rebuildPath(e)}else{e=t;n.rebuildPath(e)}},e.applyTransform=function(t){a(n,t),this.dirty(!0)},e}function y(t,e){return new i(v(t,e))}function x(t,e){return i.extend(v(t,e))}function b(t,e){for(var n=[],r=t.length,a=0;a<r;a++){var o=t[a];o.path||o.createPathProxy(),o.__dirtyPath&&o.buildPath(o.path,o.shape,!0),n.push(o.path)}var s=new i(e);return s.createPathProxy(),s.buildPath=function(t){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e)},s}e.createFromString=y,e.extendFromString=x,e.mergePath=b},"347f":function(t,e,n){var i=n("6d8b"),r=n("9850"),a=n("1687"),o=n("2306"),s=n("f934"),l=n("933b"),c=n("08c3"),u=n("a15a"),h=u.createSymbol,d=n("697e"),f=n("3842"),p=n("eda2"),g=p.encodeHTML,m=i.bind,v=i.each,y=Math.PI,x=l.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,n,i){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var r=this._layout(t,n),a=this._createGroup("mainGroup"),o=this._createGroup("labelGroup"),s=this._axis=this._createAxis(r,t);t.formatTooltip=function(t){return g(s.scale.getLabel(t))},v(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](r,a,s,t)}),this),this._renderAxisLabel(r,o,s,t),this._position(r,t)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var n=t.get("label.position"),i=t.get("orient"),r=b(t,e);null==n||"auto"===n?n="horizontal"===i?r.y+r.height/2<e.getHeight()/2?"-":"+":r.x+r.width/2<e.getWidth()/2?"+":"-":isNaN(n)&&(n={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][n]);var a,o,s,l,c={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},u={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:y/2},d="vertical"===i?r.height:r.width,f=t.getModel("controlStyle"),p=f.get("show",!0),g=p?f.get("itemSize"):0,m=p?f.get("itemGap"):0,v=g+m,x=t.get("label.rotate")||0;x=x*y/180;var _=f.get("position",!0),w=p&&f.get("showPlayBtn",!0),S=p&&f.get("showPrevBtn",!0),A=p&&f.get("showNextBtn",!0),C=0,I=d;return"left"===_||"bottom"===_?(w&&(a=[0,0],C+=v),S&&(o=[C,0],C+=v),A&&(s=[I-g,0],I-=v)):(w&&(a=[I-g,0],I-=v),S&&(o=[0,0],C+=v),A&&(s=[I-g,0],I-=v)),l=[C,I],t.get("inverse")&&l.reverse(),{viewRect:r,mainLength:d,orient:i,rotation:h[i],labelRotation:x,labelPosOpt:n,labelAlign:t.get("label.align")||c[i],labelBaseline:t.get("label.verticalAlign")||t.get("label.baseline")||u[i],playPosition:a,prevBtnPosition:o,nextBtnPosition:s,axisExtent:l,controlSize:g,controlGap:m}},_position:function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var o=a.create(),s=r.x,l=r.y+r.height;a.translate(o,o,[-s,-l]),a.rotate(o,o,-y/2),a.translate(o,o,[s,l]),r=r.clone(),r.applyTransform(o)}var c=v(r),u=v(n.getBoundingRect()),h=v(i.getBoundingRect()),d=n.position,f=i.position;f[0]=d[0]=c[0][0];var p=t.labelPosOpt;if(isNaN(p)){var g="+"===p?0:1;x(d,u,c,1,g),x(f,h,c,1,1-g)}else{g=p>=0?0:1;x(d,u,c,1,g),f[1]=d[1]+p}function m(t){var e=t.position;t.origin=[c[0][0]-e[0],c[1][0]-e[1]]}function v(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function x(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}n.attr("position",d),i.attr("position",f),n.rotation=i.rotation=t.rotation,m(n),m(i)},_createAxis:function(t,e){var n=e.getData(),i=e.get("axisType"),r=d.createScaleByModel(e,i);r.getTicks=function(){return n.mapArray(["value"],(function(t){return t}))};var a=n.getDataExtent("value");r.setExtent(a[0],a[1]),r.niceTicks();var o=new c("value",r,t.axisExtent,i);return o.model=e,o},_createGroup:function(t){var e=this["_"+t]=new o.Group;return this.group.add(e),e},_renderAxisLine:function(t,e,n,r){var a=n.getExtent();r.get("lineStyle.show")&&e.add(new o.Line({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:i.extend({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,n,i){var r=i.getData(),a=n.scale.getTicks();v(a,(function(t){var a=n.dataToCoord(t),s=r.getItemModel(t),l=s.getModel("itemStyle"),c=s.getModel("emphasis.itemStyle"),u={position:[a,0],onclick:m(this._changeTimeline,this,t)},h=w(s,l,e,u);o.setHoverStyle(h,c.getItemStyle()),s.get("tooltip")?(h.dataIndex=t,h.dataModel=i):h.dataIndex=h.dataModel=null}),this)},_renderAxisLabel:function(t,e,n,i){var r=n.getLabelModel();if(r.get("show")){var a=i.getData(),s=n.getViewLabels();v(s,(function(i){var r=i.tickValue,s=a.getItemModel(r),l=s.getModel("label"),c=s.getModel("emphasis.label"),u=n.dataToCoord(i.tickValue),h=new o.Text({position:[u,0],rotation:t.labelRotation-t.rotation,onclick:m(this._changeTimeline,this,r),silent:!1});o.setTextStyle(h.style,l,{text:i.formattedLabel,textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline}),e.add(h),o.setHoverStyle(h,o.setTextStyle({},c))}),this)}},_renderControl:function(t,e,n,i){var r=t.controlSize,a=t.rotation,s=i.getModel("controlStyle").getItemStyle(),l=i.getModel("emphasis.controlStyle").getItemStyle(),c=[0,-r/2,r,r],u=i.getPlayState(),h=i.get("inverse",!0);function d(t,n,u,h){if(t){var d={position:t,origin:[r/2,0],rotation:h?-a:0,rectHover:!0,style:s,onclick:u},f=_(i,n,c,d);e.add(f),o.setHoverStyle(f,l)}}d(t.nextBtnPosition,"controlStyle.nextIcon",m(this._changeTimeline,this,h?"-":"+")),d(t.prevBtnPosition,"controlStyle.prevIcon",m(this._changeTimeline,this,h?"+":"-")),d(t.playPosition,"controlStyle."+(u?"stopIcon":"playIcon"),m(this._handlePlayClick,this,!u),!0)},_renderCurrentPointer:function(t,e,n,i){var r=i.getData(),a=i.getCurrentIndex(),o=r.getItemModel(a).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=m(s._handlePointerDrag,s),t.ondragend=m(s._handlePointerDragend,s),S(t,a,n,i,!0)},onUpdate:function(t){S(t,a,n,i)}};this._currentPointer=w(o,o,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var n=this._toAxisCoord(t)[0],i=this._axis,r=f.asc(i.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.position[0]=n,this._currentPointer.dirty();var a=this._findNearestTick(n),o=this.model;(e||a!==o.getCurrentIndex()&&o.get("realtime"))&&this._changeTimeline(a)},_doPlayStop:function(){function t(){var t=this.model;this._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(m(t,this),this.model.get("playInterval")))},_toAxisCoord:function(t){var e=this._mainGroup.getLocalTransform();return o.applyTransform(t,e,!0)},_findNearestTick:function(t){var e,n=this.model.getData(),i=1/0,r=this._axis;return n.each(["value"],(function(n,a){var o=r.dataToCoord(n),s=Math.abs(o-t);s<i&&(i=s,e=a)})),e},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})}});function b(t,e){return s.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function _(t,e,n,a){var s=o.makePath(t.get(e).replace(/^path:\/\//,""),i.clone(a||{}),new r(n[0],n[1],n[2],n[3]),"center");return s}function w(t,e,n,r,a,o){var s=e.get("color");if(a)a.setColor(s),n.add(a),o&&o.onUpdate(a);else{var l=t.get("symbol");a=h(l,-1,-1,2,2,s),a.setStyle("strokeNoScale",!0),n.add(a),o&&o.onCreate(a)}var c=e.getItemStyle(["color","symbol","symbolSize"]);a.setStyle(c),r=i.merge({rectHover:!0,z2:100},r,!0);var u=t.get("symbolSize");u=u instanceof Array?u.slice():[+u,+u],u[0]/=2,u[1]/=2,r.scale=u;var d=t.get("symbolOffset");if(d){var p=r.position=r.position||[0,0];p[0]+=f.parsePercent(d[0],u[0]),p[1]+=f.parsePercent(d[1],u[1])}var g=t.get("symbolRotate");return r.rotation=(g||0)*Math.PI/180||0,a.attr(r),a.updateTransform(),a}function S(t,e,n,i,r){if(!t.dragging){var a=i.getModel("checkpointStyle"),o=n.dataToCoord(i.getData().get(["value"],e));r||!a.get("animation",!0)?t.attr({position:[o,0]}):(t.stopAnimation(!0),t.animateTo({position:[o,0]},a.get("animationDuration",!0),a.get("animationEasing",!0)))}}t.exports=x},3790:function(t,e,n){var i=n("3a56"),r=i.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}}),a=r;t.exports=a},3842:function(t,e,n){var i=n("6d8b"),r=1e-4;function a(t){return t.replace(/^\s+|\s+$/g,"")}function o(t,e,n,i){var r=e[1]-e[0],a=n[1]-n[0];if(0===r)return 0===a?n[0]:(n[0]+n[1])/2;if(i)if(r>0){if(t<=e[0])return n[0];if(t>=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/r*a+n[0]}function s(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return"string"===typeof t?a(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function l(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function c(t){return t.sort((function(t,e){return t-e})),t}function u(t){if(t=+t,isNaN(t))return 0;var e=1,n=0;while(Math.round(t*e)/e!==t)e*=10,n++;return n}function h(t){var e=t.toString(),n=e.indexOf("e");if(n>0){var i=+e.slice(n+1);return i<0?-i:0}var r=e.indexOf(".");return r<0?0:e.length-1-r}function d(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),a=Math.round(n(Math.abs(e[1]-e[0]))/i),o=Math.min(Math.max(-r+a,0),20);return isFinite(o)?o:20}function f(t,e,n){if(!t[e])return 0;var r=i.reduce(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===r)return 0;var a=Math.pow(10,n),o=i.map(t,(function(t){return(isNaN(t)?0:t)/r*a*100})),s=100*a,l=i.map(o,(function(t){return Math.floor(t)})),c=i.reduce(l,(function(t,e){return t+e}),0),u=i.map(o,(function(t,e){return t-l[e]}));while(c<s){for(var h=Number.NEGATIVE_INFINITY,d=null,f=0,p=u.length;f<p;++f)u[f]>h&&(h=u[f],d=f);++l[d],u[d]=0,++c}return l[e]/a}var p=9007199254740991;function g(t){var e=2*Math.PI;return(t%e+e)%e}function m(t){return t>-r&&t<r}var v=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function y(t){if(t instanceof Date)return t;if("string"===typeof t){var e=v.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,+e[7]||0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}return null==t?new Date(NaN):new Date(Math.round(t))}function x(t){return Math.pow(10,b(t))}function b(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function _(t,e){var n,i=b(t),r=Math.pow(10,i),a=t/r;return n=e?a<1.5?1:a<2.5?2:a<4?3:a<7?5:10:a<1?1:a<2?2:a<3?3:a<5?5:10,t=n*r,i>=-20?+t.toFixed(i<0?-i:0):t}function w(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],a=n-i;return a?r+a*(t[i]-r):r}function S(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i<t.length;){for(var r=t[i].interval,a=t[i].close,o=0;o<2;o++)r[o]<=e&&(r[o]=e,a[o]=o?1:1-n),e=r[o],n=a[o];r[0]===r[1]&&a[0]*a[1]!==1?t.splice(i,1):i++}return t;function s(t,e,n){return t.interval[n]<e.interval[n]||t.interval[n]===e.interval[n]&&(t.close[n]-e.close[n]===(n?-1:1)||!n&&s(t,e,1))}}function A(t){return t-parseFloat(t)>=0}e.linearMap=o,e.parsePercent=s,e.round=l,e.asc=c,e.getPrecision=u,e.getPrecisionSafe=h,e.getPixelPrecision=d,e.getPercentWithPrecision=f,e.MAX_SAFE_INTEGER=p,e.remRadian=g,e.isRadianAroundZero=m,e.parseDate=y,e.quantity=x,e.quantityExponent=b,e.nice=_,e.quantile=w,e.reformIntervals=S,e.isNumeric=A},"38a2":function(t,e,n){var i=n("2b17"),r=i.retrieveRawValue,a=n("eda2"),o=a.getTooltipMarker,s=a.formatTpl,l=n("e0d3"),c=l.getTooltipRenderMode,u=/\{@(.+?)\}/g,h={getDataParams:function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),a=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"color"),u=n.getItemVisual(t,"borderColor"),h=this.ecModel.getComponent("tooltip"),d=h&&h.get("renderMode"),f=c(d),p=this.mainType,g="series"===p,m=n.userOutput;return{componentType:p,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:g?this.subType:null,seriesIndex:this.seriesIndex,seriesId:g?this.id:null,seriesName:g?this.name:null,name:a,dataIndex:r,data:s,dataType:e,value:i,color:l,borderColor:u,dimensionNames:m?m.dimensionNames:null,encode:m?m.encode:null,marker:o({color:l,renderMode:f}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,n,i,a){e=e||"normal";var o=this.getData(n),l=o.getItemModel(t),c=this.getDataParams(t,n);null!=i&&c.value instanceof Array&&(c.value=c.value[i]);var h=l.get("normal"===e?[a||"label","formatter"]:[e,a||"label","formatter"]);if("function"===typeof h)return c.status=e,c.dimensionIndex=i,h(c);if("string"===typeof h){var d=s(h,c);return d.replace(u,(function(e,n){var i=n.length;return"["===n.charAt(0)&&"]"===n.charAt(i-1)&&(n=+n.slice(1,i-1)),r(o,t,n)}))}},getRawValue:function(t,e){return r(this.getData(e),t)},formatTooltip:function(){}};t.exports=h},3901:function(t,e,n){var i=n("282b"),r=i([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),a={getLineStyle:function(t){var e=r(this,t);return e.lineDash=this.getLineDash(e.lineWidth),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),n=Math.max(t,2),i=4*t;return"solid"!==e&&null!=e&&("dashed"===e?[i,i]:[n,n])}};t.exports=a},"392f":function(t,e,n){var i=n("6d8b"),r=i.inherits,a=n("19eb"),o=n("9850");function s(t){a.call(this,t),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}s.prototype.incremental=!0,s.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},s.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.dirty()},s.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},s.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},s.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},s.prototype.brush=function(t,e){for(var n=this._cursor;n<this._displayables.length;n++){var i=this._displayables[n];i.beforeBrush&&i.beforeBrush(t),i.brush(t,n===this._cursor?null:this._displayables[n-1]),i.afterBrush&&i.afterBrush(t)}this._cursor=n;for(n=0;n<this._temporaryDisplayables.length;n++){i=this._temporaryDisplayables[n];i.beforeBrush&&i.beforeBrush(t),i.brush(t,0===n?null:this._temporaryDisplayables[n-1]),i.afterBrush&&i.afterBrush(t)}this._temporaryDisplayables=[],this.notClear=!0};var l=[];s.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new o(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(l)),t.union(i)}this._rect=t}return this._rect},s.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){var a=this._displayables[r];if(a.contain(t,e))return!0}return!1},r(s,a);var c=s;t.exports=c},3942:function(t,e,n){var i=n("3eba"),r=n("6d8b");i.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e){var n=e.getComponent("timeline");return n&&null!=t.currentIndex&&(n.setCurrentIndex(t.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.setPlayState(!1)),e.resetOption("timeline"),r.defaults({currentIndex:n.option.currentIndex},t)})),i.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)}))},3970:function(t,e,n){var i=n("4f85"),r=n("3301"),a=n("2039"),o=i.extend({type:"series.heatmap",getInitialData:function(t,e){return r(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var t=a.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});t.exports=o},"3a56":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("3eba")),a=n("6d8b"),o=n("22d1"),s=n("e0d3"),l=n("50e5"),c=n("cc39"),u=a.each,h=l.eachAxisDim,d=r.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(t,e,n){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var i=f(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this.doInit(i)},mergeOption:function(t){var e=f(t);a.merge(this.option,t,!0),a.merge(this.settledOption,e,!0),this.doInit(e)},doInit:function(t){var e=this.option;o.canvasSupported||(e.realtime=!1),this._setDefaultThrottle(t),p(this,t);var n=this.settledOption;u([["start","startValue"],["end","endValue"]],(function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)}),this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis((function(e,n,i,r){var a=this.dependentModels[e.axis][n],o=a.__dzAxisProxy||(a.__dzAxisProxy=new c(e.name,n,this,r));t[e.name+"_"+n]=o}),this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();h((function(e){var n=e.axisIndex;t[n]=s.normalizeToArray(t[n])}),this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,e=!1;h((function(n){null!=t[n.axisIndex]&&(e=!0)}),this);var n=t.orient;return null==n&&e?"orient":e?void 0:(null==n&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,e=this.get("orient",!0),n=this.option,i=this.dependentModels;if(t){var r="vertical"===e?"y":"x";i[r+"Axis"].length?(n[r+"AxisIndex"]=[0],t=!1):u(i.singleAxis,(function(i){t&&i.get("orient",!0)===e&&(n.singleAxisIndex=[i.componentIndex],t=!1)}))}t&&h((function(e){if(t){var i=[],r=this.dependentModels[e.axis];if(r.length&&!i.length)for(var a=0,o=r.length;a<o;a++)"category"===r[a].get("type")&&i.push(a);n[e.axisIndex]=i,i.length&&(t=!1)}}),this),t&&this.ecModel.eachSeries((function(t){this._isSeriesHasAllAxesTypeOf(t,"value")&&h((function(e){var i=n[e.axisIndex],r=t.get(e.axisIndex),o=t.get(e.axisId),s=t.ecModel.queryComponents({mainType:e.axis,index:r,id:o})[0];r=s.componentIndex,a.indexOf(i,r)<0&&i.push(r)}))}),this)},_autoSetOrient:function(){var t;this.eachTargetAxis((function(e){!t&&(t=e.name)}),this),this.option.orient="y"===t?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(t,e){var n=!0;return h((function(i){var r=t.get(i.axisIndex),a=this.dependentModels[i.axis][r];a&&a.get("type")===e||(n=!1)}),this),n},_setDefaultThrottle:function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var t;return h((function(e){if(null==t){var n=this.get(e.axisIndex);n.length&&(t=this.dependentModels[e.axis][n[0]])}}),this),t},eachTargetAxis:function(t,e){var n=this.ecModel;h((function(i){u(this.get(i.axisIndex),(function(r){t.call(e,i,r,this,n)}),this)}),this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},getAxisModel:function(t,e){var n=this.getAxisProxy(t,e);return n&&n.getAxisModel()},setRawRange:function(t){var e=this.option,n=this.settledOption;u([["start","startValue"],["end","endValue"]],(function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])}),this),p(this,t)},setCalculatedRange:function(t){var e=this.option;u(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var e=this._axisProxies;for(var n in e)if(e.hasOwnProperty(n)&&e[n].hostedBy(this))return e[n];for(var n in e)if(e.hasOwnProperty(n)&&!e[n].hostedBy(this))return e[n]},getRangePropMode:function(){return this._rangePropMode.slice()}});function f(t){var e={};return u(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}function p(t,e){var n=t._rangePropMode,i=t.get("rangeMode");u([["start","startValue"],["end","endValue"]],(function(t,r){var a=null!=e[t[0]],o=null!=e[t[1]];a&&!o?n[r]="percent":!a&&o?n[r]="value":i?n[r]=i[r]:a&&(n[r]="percent")}))}var g=d;t.exports=g},"3cd6":function(t,e,n){var i=n("6d8b"),r=n("48a9"),a=n("607d"),o=n("72b6"),s=n("2306"),l=n("3842"),c=n("ef6a"),u=n("cbb0"),h=n("e0d3"),d=l.linearMap,f=i.each,p=Math.min,g=Math.max,m=12,v=6,y=o.extend({type:"visualMap.continuous",init:function(){y.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(t,e,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},_buildView:function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},_renderEndsText:function(t,e,n){if(e){var i=e[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,a=r.get("textGap"),o=r.itemSize,l=this._shapes.barGroup,c=this._applyTransform([o[0]/2,0===n?-a:o[1]+a],l),u=this._applyTransform(0===n?"bottom":"top",l),h=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new s.Text({style:{x:c[0],y:c[1],textVerticalAlign:"horizontal"===h?"middle":u,textAlign:"horizontal"===h?u:"center",text:i,textFont:d.getFont(),textFill:d.getTextColor()}}))}},_renderBar:function(t){var e=this.visualMapModel,n=this._shapes,r=e.itemSize,a=this._orient,o=this._useHandle,s=u.getItemAlign(e,this.api,r),l=n.barGroup=this._createBarGroup(s);l.add(n.outOfRange=x()),l.add(n.inRange=x(null,o?A(this._orient):null,i.bind(this._dragHandle,this,"all",!1),i.bind(this._dragHandle,this,"all",!0)));var c=e.textStyleModel.getTextRect("国"),h=g(c.width,c.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(l,0,r,h,a,s),this._createHandle(l,1,r,h,a,s)),this._createIndicator(l,r,h,a),t.add(l)},_createHandle:function(t,e,n,r,o){var l=i.bind(this._dragHandle,this,e,!1),c=i.bind(this._dragHandle,this,e,!0),u=x(b(e,r),A(this._orient),l,c);u.position[0]=n[0],t.add(u);var h=this.visualMapModel.textStyleModel,d=new s.Text({draggable:!0,drift:l,onmousemove:function(t){a.stop(t.event)},ondragend:c,style:{x:0,y:0,text:"",textFont:h.getFont(),textFill:h.getTextColor()}});this.group.add(d);var f=["horizontal"===o?r/2:1.5*r,"horizontal"===o?0===e?-1.5*r:1.5*r:0===e?-r/2:r/2],p=this._shapes;p.handleThumbs[e]=u,p.handleLabelPoints[e]=f,p.handleLabels[e]=d},_createIndicator:function(t,e,n,i){var r=x([[0,0]],"move");r.position[0]=e[0],r.attr({invisible:!0,silent:!0}),t.add(r);var a=this.visualMapModel.textStyleModel,o=new s.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:a.getFont(),textFill:a.getTextColor()}});this.group.add(o);var l=["horizontal"===i?n/2:v+3,0],c=this._shapes;c.indicator=r,c.indicatorLabel=o,c.indicatorLabelPoint=l},_dragHandle:function(t,e,n,i){if(this._useHandle){if(this._dragging=!e,!e){var r=this._applyTransform([n,i],this._shapes.barGroup,!0);this._updateInterval(t,r[1]),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():S(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},_resetInterval:function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[d(e[0],n,i,!0),d(e[1],n,i,!0)]},_updateInterval:function(t,e){e=e||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];c(e,i,r,t,0);var a=n.getExtent();this._dataInterval=[d(i[0],r,a,!0),d(i[1],r,a,!0)]},_updateView:function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,r=[0,e.itemSize[1]],a=t?r:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,a,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:o.barColor,opacity:o.opacity}).setShape("points",o.barPoints),i.outOfRange.setStyle({fill:s.barColor,opacity:s.opacity}).setShape("points",s.barPoints),this._updateHandle(a,o)},_createBarVisual:function(t,e,n,i){var a={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,a),s=[this.getControllerVisual(t[0],"symbolSize",a),this.getControllerVisual(t[1],"symbolSize",a)],l=this._createBarPoints(n,s);return{barColor:new r(0,0,0,1,o),barPoints:l,handlesColor:[o[0].color,o[o.length-1].color]}},_makeColorGradient:function(t,e){var n=100,i=[],r=(t[1]-t[0])/n;i.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var a=1;a<n;a++){var o=t[0]+r*a;if(o>t[1])break;i.push({color:this.getControllerVisual(o,"color",e),offset:a/n})}return i.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),i},_createBarPoints:function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new s.Group("horizontal"!==e||n?"horizontal"===e&&n?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||n?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,a=n.handleLabels;f([0,1],(function(o){var l=r[o];l.setStyle("fill",e.handlesColor[o]),l.position[1]=t[o];var c=s.applyTransform(n.handleLabelPoints[o],s.getTransform(l,this.group));a[o].setStyle({x:c[0],y:c[1],text:i.formatValueText(this._dataInterval[o]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===o?"bottom":"top":"left",n.barGroup)})}),this)}},_showIndicator:function(t,e,n,i){var r=this.visualMapModel,a=r.getExtent(),o=r.itemSize,l=[0,o[1]],c=d(t,a,l,!0),u=this._shapes,h=u.indicator;if(h){h.position[1]=c,h.attr("invisible",!1),h.setShape("points",_(!!n,i,c,o[1]));var f={convertOpacityToAlpha:!0},p=this.getControllerVisual(t,"color",f);h.setStyle("fill",p);var g=s.applyTransform(u.indicatorLabelPoint,s.getTransform(h,this.group)),m=u.indicatorLabel;m.attr("invisible",!1);var v=this._applyTransform("left",u.barGroup),y=this._orient;m.setStyle({text:(n||"")+r.formatValueText(e),textVerticalAlign:"horizontal"===y?v:"middle",textAlign:"horizontal"===y?"center":v,x:g[0],y:g[1]})}},_enableHoverLinkToSeries:function(){var t=this;this._shapes.barGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.barGroup,!0,!0);i[1]=p(g(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},_enableHoverLinkFromSeries:function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(t,e){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],a=n.getExtent();t=p(g(r[0],t),r[1]);var o=w(n,a,r),s=[t-o,t+o],l=d(t,r,a,!0),c=[d(s[0],r,a,!0),d(s[1],r,a,!0)];s[0]<r[0]&&(c[0]=-1/0),s[1]>r[1]&&(c[1]=1/0),e&&(c[0]===-1/0?this._showIndicator(l,c[1],"< ",o):c[1]===1/0?this._showIndicator(l,c[0],"> ",o):this._showIndicator(l,l,"≈ ",o));var f=this._hoverLinkDataIndices,m=[];(e||S(n))&&(m=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var v=h.compressBatches(f,m);this._dispatchHighDown("downplay",u.makeHighDownBatch(v[0],n)),this._dispatchHighDown("highlight",u.makeHighDownBatch(v[1],n))}},_hoverLinkFromSeriesMouseOver:function(t){var e=t.target,n=this.visualMapModel;if(e&&null!=e.dataIndex){var i=this.ecModel.getSeriesByIndex(e.seriesIndex);if(n.isTargetSeries(i)){var r=i.getData(e.dataType),a=r.get(n.getDataDimension(r),e.dataIndex,!0);isNaN(a)||this._showIndicator(a,a)}}},_hideIndicator:function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",u.makeHighDownBatch(t,this.visualMapModel)),t.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},_applyTransform:function(t,e,n,r){var a=s.getTransform(e,r?null:this.group);return s[i.isArray(t)?"applyTransform":"transformDirection"](t,a,n)},_dispatchHighDown:function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function x(t,e,n,i){return new s.Polygon({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){a.stop(t.event)},ondragend:i})}function b(t,e){return 0===t?[[0,0],[e,0],[e,-e]]:[[0,0],[e,0],[e,e]]}function _(t,e,n,i){return t?[[0,-p(e,g(n,0))],[v,0],[0,p(e,g(i-n,0))]]:[[0,0],[5,-5],[5,5]]}function w(t,e,n){var i=m/2,r=t.get("hoverLinkDataSize");return r&&(i=d(r,e,n,!0)/2),i}function S(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function A(t){return"vertical"===t?"ns-resize":"ew-resize"}var C=y;t.exports=C},"3eba":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("697e7")),a=n("6d8b"),o=n("41ef"),s=n("22d1"),l=n("04f6"),c=n("1fab"),u=n("7e63"),h=n("843e"),d=n("2039"),f=n("ca98"),p=n("fb05"),g=n("d15d"),m=n("6cb7"),v=n("4f85"),y=n("b12f"),x=n("e887"),b=n("2306"),_=n("e0d3"),w=n("88b3"),S=w.throttle,A=n("fd63"),C=n("b809"),I=n("998c"),T=n("69ff"),k=n("c533"),M=n("f219");n("0352");var D=n("ec34"),E=a.assert,L=a.each,P=a.isFunction,O=a.isObject,R=m.parseClassType,N="4.8.0",B={zrender:"4.3.1"},z=1,F=1e3,V=800,W=900,U=5e3,H=1e3,G=1100,j=2e3,Y=3e3,q=3500,K=4e3,X=5e3,Z={PROCESSOR:{FILTER:F,SERIES_FILTER:V,STATISTIC:U},VISUAL:{LAYOUT:H,PROGRESSIVE_LAYOUT:G,GLOBAL:j,CHART:Y,POST_CHART_LAYOUT:q,COMPONENT:K,BRUSH:X}},Q="__flagInMainProcess",J="__optionUpdated",$=/^[a-zA-Z0-9_]+$/;function tt(t,e){return function(n,i,r){e||!this._disposed?(n=n&&n.toLowerCase(),c.prototype[t].call(this,n,i,r)):bt(this.id)}}function et(){c.call(this)}function nt(t,e,n){n=n||{},"string"===typeof e&&(e=Lt[e]),this.id,this.group,this._dom=t;var i="canvas",o=this._zr=r.init(t,{renderer:n.renderer||i,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height});this._throttledZrFlush=S(a.bind(o.flush,o),17);e=a.clone(e);e&&p(e,!0),this._theme=e,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new d;var s=this._api=At(this);function u(t,e){return t.__prio-e.__prio}l(Et,u),l(kt,u),this._scheduler=new T(this,s,kt,Et),c.call(this,this._ecEventProcessor=new Ct),this._messageCenter=new et,this._initEvents(),this.resize=a.bind(this.resize,this),this._pendingActions=[],o.animation.on("frame",this._onframe,this),dt(o,this),a.setAsPrimitive(this)}et.prototype.on=tt("on",!0),et.prototype.off=tt("off",!0),et.prototype.one=tt("one",!0),a.mixin(et,c);var it=nt.prototype;function rt(t,e,n){if(this._disposed)bt(this.id);else{var i,r=this._model,a=this._coordSysMgr.getCoordinateSystems();e=_.parseFinder(r,e);for(var o=0;o<a.length;o++){var s=a[o];if(s[t]&&null!=(i=s[t](r,e,n)))return i}}}it._onframe=function(){if(!this._disposed){var t=this._scheduler;if(this[J]){var e=this[J].silent;this[Q]=!0,ot(this),at.update.call(this),this[Q]=!1,this[J]=!1,ut.call(this,e),ht.call(this,e)}else if(t.unfinished){var n=z,i=this._model,r=this._api;t.unfinished=!1;do{var a=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),lt(this,i),t.performVisualTasks(i),vt(this,this._model,r,"remain"),n-=+new Date-a}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},it.getDom=function(){return this._dom},it.getZr=function(){return this._zr},it.setOption=function(t,e,n){if(this._disposed)bt(this.id);else{var i;if(O(e)&&(n=e.lazyUpdate,i=e.silent,e=e.notMerge),this[Q]=!0,!this._model||e){var r=new f(this._api),a=this._theme,o=this._model=new u;o.scheduler=this._scheduler,o.init(null,null,a,r)}this._model.setOption(t,Mt),n?(this[J]={silent:i},this[Q]=!1):(ot(this),at.update.call(this),this._zr.flush(),this[J]=!1,this[Q]=!1,ut.call(this,i),ht.call(this,i))}},it.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},it.getModel=function(){return this._model},it.getOption=function(){return this._model&&this._model.getOption()},it.getWidth=function(){return this._zr.getWidth()},it.getHeight=function(){return this._zr.getHeight()},it.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},it.getRenderedCanvas=function(t){if(s.canvasSupported){t=t||{},t.pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr;return e.painter.getRenderedCanvas(t)}},it.getSvgDataURL=function(){if(s.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return a.each(e,(function(t){t.stopAnimation(!0)})),t.painter.toDataURL()}},it.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,i=[],r=this;L(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)}))}));var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return L(i,(function(t){t.group.ignore=!1})),a}bt(this.id)},it.getConnectedDataURL=function(t){if(this._disposed)bt(this.id);else if(s.canvasSupported){var e="svg"===t.type,n=this.group,i=Math.min,o=Math.max,l=1/0;if(Rt[n]){var c=l,u=l,h=-l,d=-l,f=[],p=t&&t.pixelRatio||1;a.each(Ot,(function(r,s){if(r.group===n){var l=e?r.getZr().painter.getSvgDom().innerHTML:r.getRenderedCanvas(a.clone(t)),p=r.getDom().getBoundingClientRect();c=i(p.left,c),u=i(p.top,u),h=o(p.right,h),d=o(p.bottom,d),f.push({dom:l,left:p.left,top:p.top})}})),c*=p,u*=p,h*=p,d*=p;var g=h-c,m=d-u,v=a.createCanvas(),y=r.init(v,{renderer:e?"svg":"canvas"});if(y.resize({width:g,height:m}),e){var x="";return L(f,(function(t){var e=t.left-c,n=t.top-u;x+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),y.painter.getSvgRoot().innerHTML=x,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return t.connectedBackgroundColor&&y.add(new b.Rect({shape:{x:0,y:0,width:g,height:m},style:{fill:t.connectedBackgroundColor}})),L(f,(function(t){var e=new b.Image({style:{x:t.left*p-c,y:t.top*p-u,image:t.dom}});y.add(e)})),y.refreshImmediately(),v.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},it.convertToPixel=a.curry(rt,"convertToPixel"),it.convertFromPixel=a.curry(rt,"convertFromPixel"),it.containPixel=function(t,e){if(!this._disposed){var n,i=this._model;return t=_.parseFinder(i,t),a.each(t,(function(t,i){i.indexOf("Models")>=0&&a.each(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n|=!!r.containPoint(e);else if("seriesModels"===i){var a=this._chartsMap[t.__viewId];a&&a.containPoint&&(n|=a.containPoint(e,t))}}),this)}),this),!!n}bt(this.id)},it.getVisual=function(t,e){var n=this._model;t=_.parseFinder(n,t,{defaultMainType:"series"});var i=t.seriesModel,r=i.getData(),a=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?r.indexOfRawIndex(t.dataIndex):null;return null!=a?r.getItemVisual(a,e):r.getVisual(e)},it.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},it.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var at={prepareAndUpdate:function(t){ot(this),at.update.call(this,t)},update:function(t){var e=this._model,n=this._api,i=this._zr,r=this._coordSysMgr,a=this._scheduler;if(e){a.restoreData(e,t),a.performSeriesTasks(e),r.create(e,n),a.performDataProcessorTasks(e,t),lt(this,e),r.update(e,n),pt(e),a.performVisualTasks(e,t),gt(this,e,n,t);var l=e.get("backgroundColor")||"transparent";if(s.canvasSupported)i.setBackgroundColor(l);else{var c=o.parse(l);l=o.stringify(c,"rgb"),0===c[3]&&(l="transparent")}yt(e,n)}},updateTransform:function(t){var e=this._model,n=this,i=this._api;if(e){var r=[];e.eachComponent((function(a,o){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,e,i,t);l&&l.update&&r.push(s)}else r.push(s)}));var o=a.createHashMap();e.eachSeries((function(r){var a=n._chartsMap[r.__viewId];if(a.updateTransform){var s=a.updateTransform(r,e,i,t);s&&s.update&&o.set(r.uid,1)}else o.set(r.uid,1)})),pt(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:o}),vt(n,e,i,t,o),yt(e,this._api)}},updateView:function(t){var e=this._model;e&&(x.markUpdateMethod(t,"updateView"),pt(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),gt(this,this._model,this._api,t),yt(e,this._api))},updateVisual:function(t){at.update.call(this,t)},updateLayout:function(t){at.update.call(this,t)}};function ot(t){var e=t._model,n=t._scheduler;n.restorePipelines(e),n.prepareStageTasks(),ft(t,"component",e,n),ft(t,"chart",e,n),n.plan()}function st(t,e,n,i,r){var o=t._model;if(i){var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};r&&(l.subType=r);var c=n.excludeSeriesId;null!=c&&(c=a.createHashMap(_.normalizeToArray(c))),o&&o.eachComponent(l,(function(e){c&&null!=c.get(e.id)||u(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else L(t._componentsViews.concat(t._chartsViews),u);function u(i){i&&i.__alive&&i[e]&&i[e](i.__model,o,t._api,n)}}function lt(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries((function(t){i.updateStreamModes(t,n[t.__viewId])}))}function ct(t,e){var n=t.type,i=t.escapeConnect,r=It[n],o=r.actionInfo,s=(o.update||"update").split(":"),l=s.pop();s=null!=s[0]&&R(s[0]),this[Q]=!0;var c=[t],u=!1;t.batch&&(u=!0,c=a.map(t.batch,(function(e){return e=a.defaults(a.extend({},e),t),e.batch=null,e})));var h,d=[],f="highlight"===n||"downplay"===n;L(c,(function(t){h=r.action(t,this._model,this._api),h=h||a.extend({},t),h.type=o.event||h.type,d.push(h),f?st(this,l,t,"series"):s&&st(this,l,t,s.main,s.sub)}),this),"none"===l||f||s||(this[J]?(ot(this),at.update.call(this,t),this[J]=!1):at[l].call(this,t)),h=u?{type:o.event||n,escapeConnect:i,batch:d}:d[0],this[Q]=!1,!e&&this._messageCenter.trigger(h.type,h)}function ut(t){var e=this._pendingActions;while(e.length){var n=e.shift();ct.call(this,n,t)}}function ht(t){!t&&this.trigger("updated")}function dt(t,e){t.on("rendered",(function(){e.trigger("rendered"),!t.animation.isFinished()||e[J]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))}function ft(t,e,n,i){for(var r="component"===e,a=r?t._componentsViews:t._chartsViews,o=r?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,c=0;c<a.length;c++)a[c].__alive=!1;function u(t){var e="_ec_"+t.id+"_"+t.type,c=o[e];if(!c){var u=R(t.type),h=r?y.getClass(u.main,u.sub):x.getClass(u.sub);c=new h,c.init(n,l),o[e]=c,a.push(c),s.add(c.group)}t.__viewId=c.__id=e,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!r&&i.prepareView(c,t,n,l)}r?n.eachComponent((function(t,e){"series"!==t&&u(e)})):n.eachSeries(u);for(c=0;c<a.length;){var h=a[c];h.__alive?c++:(!r&&h.renderTask.dispose(),s.remove(h.group),h.dispose(n,l),a.splice(c,1),delete o[h.__id],h.__id=h.group.__ecComponentInfo=null)}}function pt(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function gt(t,e,n,i){mt(t,e,n,i),L(t._chartsViews,(function(t){t.__alive=!1})),vt(t,e,n,i),L(t._chartsViews,(function(t){t.__alive||t.remove(e,n)}))}function mt(t,e,n,i,r){L(r||t._componentsViews,(function(t){var r=t.__model;t.render(r,e,n,i),St(r,t)}))}function vt(t,e,n,i,r){var a,o=t._scheduler;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var s=n.renderTask;o.updatePayload(s,i),r&&r.get(e.uid)&&s.dirty(),a|=s.perform(o.getPerformArgs(s)),n.group.silent=!!e.get("silent"),St(e,n),wt(e,n)})),o.unfinished|=a,_t(t,e),C(t._zr.dom,e)}function yt(t,e){L(Dt,(function(n){n(t,e)}))}it.resize=function(t){if(this._disposed)bt(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[Q]=!0,n&&ot(this),at.update.call(this),this[Q]=!1,ut.call(this,i),ht.call(this,i)}}},it.showLoading=function(t,e){if(this._disposed)bt(this.id);else if(O(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Pt[t]){var n=Pt[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},it.hideLoading=function(){this._disposed?bt(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},it.makeActionFromEvent=function(t){var e=a.extend({},t);return e.type=Tt[t.type],e},it.dispatchAction=function(t,e){this._disposed?bt(this.id):(O(e)||(e={silent:!!e}),It[t.type]&&this._model&&(this[Q]?this._pendingActions.push(t):(ct.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&s.browser.weChat&&this._throttledZrFlush(),ut.call(this,e.silent),ht.call(this,e.silent))))},it.appendData=function(t){if(this._disposed)bt(this.id);else{var e=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(e);i.appendData(t),this._scheduler.unfinished=!0}},it.on=tt("on",!1),it.off=tt("off",!1),it.one=tt("one",!1);var xt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function bt(t){}function _t(t,e){var n=t._zr,i=n.storage,r=0;i.traverse((function(t){r++})),r>e.get("hoverLayerThreshold")&&!s.node&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.group.traverse((function(t){t.useHoverLayer=!0}))}}))}function wt(t,e){var n=t.get("blendMode")||null;e.group.traverse((function(t){t.isGroup||t.style.blend!==n&&t.setStyle("blend",n),t.eachPendingDisplayable&&t.eachPendingDisplayable((function(t){t.setStyle("blend",n)}))}))}function St(t,e){var n=t.get("z"),i=t.get("zlevel");e.group.traverse((function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=i&&(t.zlevel=i))}))}function At(t){var e=t._coordSysMgr;return a.extend(new h(t),{getCoordinateSystems:a.bind(e.getCoordinateSystems,e),getComponentByElement:function(e){while(e){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}}})}function Ct(){this.eventInfo}it._initEvents=function(){L(xt,(function(t){var e=function(e){var n,i=this.getModel(),r=e.target,o="globalout"===t;if(o)n={};else if(r&&null!=r.dataIndex){var s=r.dataModel||i.getSeriesByIndex(r.seriesIndex);n=s&&s.getDataParams(r.dataIndex,r.dataType,r)||{}}else r&&r.eventData&&(n=a.extend({},r.eventData));if(n){var l=n.componentType,c=n.componentIndex;"markLine"!==l&&"markPoint"!==l&&"markArea"!==l||(l="series",c=n.seriesIndex);var u=l&&null!=c&&i.getComponent(l,c),h=u&&this["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];n.event=e,n.type=t,this._ecEventProcessor.eventInfo={targetEl:r,packedEvent:n,model:u,view:h},this.trigger(t,n)}};e.zrEventfulCallAtLast=!0,this._zr.on(t,e,this)}),this),L(Tt,(function(t,e){this._messageCenter.on(e,(function(t){this.trigger(e,t)}),this)}),this)},it.isDisposed=function(){return this._disposed},it.clear=function(){this._disposed?bt(this.id):this.setOption({series:[]},!0)},it.dispose=function(){if(this._disposed)bt(this.id);else{this._disposed=!0,_.setAttribute(this.getDom(),zt,"");var t=this._api,e=this._model;L(this._componentsViews,(function(n){n.dispose(e,t)})),L(this._chartsViews,(function(n){n.dispose(e,t)})),this._zr.dispose(),delete Ot[this.id]}},a.mixin(nt,c),Ct.prototype={constructor:Ct,normalizeQuery:function(t){var e={},n={},i={};if(a.isString(t)){var r=R(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};a.each(t,(function(t,r){for(var a=!1,l=0;l<o.length;l++){var c=o[l],u=r.lastIndexOf(c);if(u>0&&u===r.length-c.length){var h=r.slice(0,u);"data"!==h&&(e.mainType=h,e[c.toLowerCase()]=t,a=!0)}}s.hasOwnProperty(r)&&(n[r]=t,a=!0),a||(i[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:i}},filter:function(t,e,n){var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=e.cptQuery,c=e.dataQuery;return u(l,o,"mainType")&&u(l,o,"subType")&&u(l,o,"index","componentIndex")&&u(l,o,"name")&&u(l,o,"id")&&u(c,a,"name")&&u(c,a,"dataIndex")&&u(c,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,a));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},afterTrigger:function(){this.eventInfo=null}};var It={},Tt={},kt=[],Mt=[],Dt=[],Et=[],Lt={},Pt={},Ot={},Rt={},Nt=new Date-0,Bt=new Date-0,zt="_echarts_instance_";function Ft(t){var e=0,n=1,i=2,r="__connectUpdateStatus";function a(t,e){for(var n=0;n<t.length;n++){var i=t[n];i[r]=e}}L(Tt,(function(o,s){t._messageCenter.on(s,(function(o){if(Rt[t.group]&&t[r]!==e){if(o&&o.escapeConnect)return;var s=t.makeActionFromEvent(o),l=[];L(Ot,(function(e){e!==t&&e.group===t.group&&l.push(e)})),a(l,e),L(l,(function(t){t[r]!==n&&t.dispatchAction(s)})),a(l,i)}}))}))}function Vt(t,e,n){var i=jt(t);if(i)return i;var r=new nt(t,e,n);return r.id="ec_"+Nt++,Ot[r.id]=r,_.setAttribute(t,zt,r.id),Ft(r),r}function Wt(t){if(a.isArray(t)){var e=t;t=null,L(e,(function(e){null!=e.group&&(t=e.group)})),t=t||"g_"+Bt++,L(e,(function(e){e.group=t}))}return Rt[t]=!0,t}function Ut(t){Rt[t]=!1}var Ht=Ut;function Gt(t){"string"===typeof t?t=Ot[t]:t instanceof nt||(t=jt(t)),t instanceof nt&&!t.isDisposed()&&t.dispose()}function jt(t){return Ot[_.getAttribute(t,zt)]}function Yt(t){return Ot[t]}function qt(t,e){Lt[t]=e}function Kt(t){Mt.push(t)}function Xt(t,e){ne(kt,t,e,F)}function Zt(t){Dt.push(t)}function Qt(t,e,n){"function"===typeof e&&(n=e,e="");var i=O(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,E($.test(i)&&$.test(e)),It[i]||(It[i]={action:n,actionInfo:t}),Tt[e]=i}function Jt(t,e){d.register(t,e)}function $t(t){var e=d.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function te(t,e){ne(Et,t,e,H,"layout")}function ee(t,e){ne(Et,t,e,Y,"visual")}function ne(t,e,n,i,r){(P(e)||O(e))&&(n=e,e=i);var a=T.wrapStageHandler(n,r);return a.__prio=e,a.__raw=n,t.push(a),a}function ie(t,e){Pt[t]=e}function re(t){return m.extend(t)}function ae(t){return y.extend(t)}function oe(t){return v.extend(t)}function se(t){return x.extend(t)}function le(t){a.$override("createCanvas",t)}function ce(t,e,n){D.registerMap(t,e,n)}function ue(t){var e=D.retrieveMap(t);return e&&e[0]&&{geoJson:e[0].geoJSON,specialAreas:e[0].specialAreas}}ee(j,A),Kt(p),Xt(W,g),ie("default",I),Qt({type:"highlight",event:"highlight",update:"highlight"},a.noop),Qt({type:"downplay",event:"downplay",update:"downplay"},a.noop),qt("light",k),qt("dark",M);var he={};e.version=N,e.dependencies=B,e.PRIORITY=Z,e.init=Vt,e.connect=Wt,e.disConnect=Ut,e.disconnect=Ht,e.dispose=Gt,e.getInstanceByDom=jt,e.getInstanceById=Yt,e.registerTheme=qt,e.registerPreprocessor=Kt,e.registerProcessor=Xt,e.registerPostUpdate=Zt,e.registerAction=Qt,e.registerCoordinateSystem=Jt,e.getCoordinateSystemDimensions=$t,e.registerLayout=te,e.registerVisual=ee,e.registerLoading=ie,e.extendComponentModel=re,e.extendComponentView=ae,e.extendSeriesModel=oe,e.extendChartView=se,e.setCanvasCreator=le,e.registerMap=ce,e.getMap=ue,e.dataTool=he;var de=n("b719");(function(){for(var t in de)de.hasOwnProperty(t)&&(e[t]=de[t])})()},"3f8e":function(t,e,n){var i=n("8727"),r=i.createElement,a=n("20c8"),o=n("9850"),s=n("1687"),l=n("e86a"),c=n("a73c"),u=n("76a5"),h=a.CMD,d=Array.prototype.join,f="none",p=Math.round,g=Math.sin,m=Math.cos,v=Math.PI,y=2*Math.PI,x=180/v,b=1e-4;function _(t){return p(1e4*t)/1e4}function w(t){return t<b&&t>-b}function S(t,e){var n=e?t.textFill:t.fill;return null!=n&&n!==f}function A(t,e){var n=e?t.textStroke:t.stroke;return null!=n&&n!==f}function C(t,e){e&&I(t,"transform","matrix("+d.call(e,",")+")")}function I(t,e,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&t.setAttribute(e,n)}function T(t,e,n){t.setAttributeNS("http://www.w3.org/1999/xlink",e,n)}function k(t,e,n,i){if(S(e,n)){var r=n?e.textFill:e.fill;r="transparent"===r?f:r,I(t,"fill",r),I(t,"fill-opacity",null!=e.fillOpacity?e.fillOpacity*e.opacity:e.opacity)}else I(t,"fill",f);if(A(e,n)){var a=n?e.textStroke:e.stroke;a="transparent"===a?f:a,I(t,"stroke",a);var o=n?e.textStrokeWidth:e.lineWidth,s=!n&&e.strokeNoScale?i.getLineScale():1;I(t,"stroke-width",o/s),I(t,"paint-order",n?"stroke":"fill"),I(t,"stroke-opacity",null!=e.strokeOpacity?e.strokeOpacity:e.opacity);var l=e.lineDash;l?(I(t,"stroke-dasharray",e.lineDash.join(",")),I(t,"stroke-dashoffset",p(e.lineDashOffset||0))):I(t,"stroke-dasharray",""),e.lineCap&&I(t,"stroke-linecap",e.lineCap),e.lineJoin&&I(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&I(t,"stroke-miterlimit",e.miterLimit)}else I(t,"stroke",f)}function M(t){for(var e=[],n=t.data,i=t.len(),r=0;r<i;){var a=n[r++],o="",s=0;switch(a){case h.M:o="M",s=2;break;case h.L:o="L",s=2;break;case h.Q:o="Q",s=4;break;case h.C:o="C",s=6;break;case h.A:var l=n[r++],c=n[r++],u=n[r++],d=n[r++],f=n[r++],b=n[r++],S=n[r++],A=n[r++],C=Math.abs(b),I=w(C-y)||(A?b>=y:-b>=y),T=b>0?b%y:b%y+y,k=!1;k=!!I||!w(C)&&T>=v===!!A;var M=_(l+u*m(f)),D=_(c+d*g(f));I&&(b=A?y-1e-4:1e-4-y,k=!0,9===r&&e.push("M",M,D));var E=_(l+u*m(f+b)),L=_(c+d*g(f+b));e.push("A",_(u),_(d),p(S*x),+k,+A,E,L);break;case h.Z:o="Z";break;case h.R:E=_(n[r++]),L=_(n[r++]);var P=_(n[r++]),O=_(n[r++]);e.push("M",E,L,"L",E+P,L,"L",E+P,L+O,"L",E,L+O,"L",E,L);break}o&&e.push(o);for(var R=0;R<s;R++)e.push(_(n[r++]))}return e.join(" ")}var D={brush:function(t){var e=t.style,n=t.__svgEl;n||(n=r("path"),t.__svgEl=n),t.path||t.createPathProxy();var i=t.path;if(t.__dirtyPath){i.beginPath(),i.subPixelOptimize=!1,t.buildPath(i,t.shape),t.__dirtyPath=!1;var a=M(i);a.indexOf("NaN")<0&&I(n,"d",a)}k(n,e,!1,t),C(n,t.transform),null!=e.text?B(t,t.getBoundingRect()):W(t)}},E={brush:function(t){var e=t.style,n=e.image;if(n instanceof HTMLImageElement){var i=n.src;n=i}if(n){var a=e.x||0,o=e.y||0,s=e.width,l=e.height,c=t.__svgEl;c||(c=r("image"),t.__svgEl=c),n!==t.__imageSrc&&(T(c,"href",n),t.__imageSrc=n),I(c,"width",s),I(c,"height",l),I(c,"x",a),I(c,"y",o),C(c,t.transform),null!=e.text?B(t,t.getBoundingRect()):W(t)}}},L={},P=new o,O={},R=[],N={left:"start",right:"end",center:"middle",middle:"middle"},B=function(t,e){var n=t.style,i=t.transform,a=t instanceof u||n.transformText;t.__dirty&&c.normalizeTextStyle(n,!0);var o=n.text;if(null!=o&&(o+=""),c.needDrawText(o,n)){null==o&&(o=""),!a&&i&&(P.copy(e),P.applyTransform(i),e=P);var s=t.__textSvgEl;s||(s=r("text"),t.__textSvgEl=s);var h=s.style,d=n.font||l.DEFAULT_FONT,f=s.__computedFont;d!==s.__styleFont&&(h.font=s.__styleFont=d,f=s.__computedFont=h.font);var p=n.textPadding,g=n.textLineHeight,m=t.__textCotentBlock;m&&!t.__dirtyText||(m=t.__textCotentBlock=l.parsePlainText(o,f,p,g,n.truncate));var v=m.outerHeight,y=m.lineHeight;c.getBoxPosition(O,t,n,e);var x=O.baseX,b=O.baseY,_=O.textAlign||"left",w=O.textVerticalAlign;z(s,a,i,n,e,x,b);var S=l.adjustTextY(b,v,w),A=x,C=S;p&&(A=F(x,_,p),C+=p[0]),C+=y/2,k(s,n,!0,t);var I=m.canCacheByTextString,T=t.__tspanList||(t.__tspanList=[]),M=T.length;if(I&&t.__canCacheByTextString&&t.__text===o){if(t.__dirtyText&&M)for(var D=0;D<M;++D)V(T[D],_,A,C+D*y)}else{t.__text=o,t.__canCacheByTextString=I;var E=m.lines,L=E.length;for(D=0;D<L;D++){var R=T[D],N=E[D];R?R.__zrText!==N&&(R.innerHTML="",R.appendChild(document.createTextNode(N))):(R=T[D]=r("tspan"),s.appendChild(R),R.appendChild(document.createTextNode(N))),V(R,_,A,C+D*y)}if(M>L){for(;D<M;D++)s.removeChild(T[D]);T.length=L}}}};function z(t,e,n,i,r,a,o){s.identity(R),e&&n&&s.copy(R,n);var l=i.textRotation;if(r&&l){var c=i.textOrigin;"center"===c?(a=r.width/2+r.x,o=r.height/2+r.y):c&&(a=c[0]+r.x,o=c[1]+r.y),R[4]-=a,R[5]-=o,s.rotate(R,R,l),R[4]+=a,R[5]+=o}C(t,R)}function F(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function V(t,e,n,i){I(t,"dominant-baseline","middle"),I(t,"text-anchor",N[e]),I(t,"x",n),I(t,"y",i)}function W(t){t&&t.__textSvgEl&&(t.__textSvgEl.parentNode&&t.__textSvgEl.parentNode.removeChild(t.__textSvgEl),t.__textSvgEl=null,t.__tspanList=[],t.__text=null)}L.drawRectText=B,L.brush=function(t){var e=t.style;null!=e.text?B(t,!1):W(t)},e.path=D,e.image=E,e.text=L},"401b":function(t,e){var n="undefined"===typeof Float32Array?Array:Float32Array;function i(t,e){var i=new n(2);return null==t&&(t=0),null==e&&(e=0),i[0]=t,i[1]=e,i}function r(t,e){return t[0]=e[0],t[1]=e[1],t}function a(t){var e=new n(2);return e[0]=t[0],e[1]=t[1],e}function o(t,e,n){return t[0]=e,t[1]=n,t}function s(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function l(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function u(t){return Math.sqrt(d(t))}var h=u;function d(t){return t[0]*t[0]+t[1]*t[1]}var f=d;function p(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function g(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function m(t,e){return t[0]*e[0]+t[1]*e[1]}function v(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function y(t,e){var n=u(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function x(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var b=x;function _(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var w=_;function S(t,e){return t[0]=-e[0],t[1]=-e[1],t}function A(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function C(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function I(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function T(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}e.create=i,e.copy=r,e.clone=a,e.set=o,e.add=s,e.scaleAndAdd=l,e.sub=c,e.len=u,e.length=h,e.lenSquare=d,e.lengthSquare=f,e.mul=p,e.div=g,e.dot=m,e.scale=v,e.normalize=y,e.distance=x,e.dist=b,e.distanceSquare=_,e.distSquare=w,e.negate=S,e.lerp=A,e.applyTransform=C,e.min=I,e.max=T},"414c":function(t,e,n){var i=n("3a56"),r=i.extend({type:"dataZoom.select"});t.exports=r},"41ef":function(t,e,n){var i=n("d51b"),r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function a(t){return t=Math.round(t),t<0?0:t>255?255:t}function o(t){return t=Math.round(t),t<0?0:t>360?360:t}function s(t){return t<0?0:t>1?1:t}function l(t){return t.length&&"%"===t.charAt(t.length-1)?a(parseFloat(t)/100*255):a(parseInt(t,10))}function c(t){return t.length&&"%"===t.charAt(t.length-1)?s(parseFloat(t)/100):s(parseFloat(t))}function u(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function h(t,e,n){return t+(e-t)*n}function d(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function f(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var p=new i(20),g=null;function m(t,e){g&&f(g,e),g=p.put(t,g||e.slice())}function v(t,e){if(t){e=e||[];var n=p.get(t);if(n)return f(e,n);t+="";var i=t.replace(/ /g,"").toLowerCase();if(i in r)return f(e,r[i]),m(t,e),e;if("#"!==i.charAt(0)){var a=i.indexOf("("),o=i.indexOf(")");if(-1!==a&&o+1===i.length){var s=i.substr(0,a),u=i.substr(a+1,o-(a+1)).split(","),h=1;switch(s){case"rgba":if(4!==u.length)return void d(e,0,0,0,1);h=c(u.pop());case"rgb":return 3!==u.length?void d(e,0,0,0,1):(d(e,l(u[0]),l(u[1]),l(u[2]),h),m(t,e),e);case"hsla":return 4!==u.length?void d(e,0,0,0,1):(u[3]=c(u[3]),y(u,e),m(t,e),e);case"hsl":return 3!==u.length?void d(e,0,0,0,1):(y(u,e),m(t,e),e);default:return}}d(e,0,0,0,1)}else{if(4===i.length){var g=parseInt(i.substr(1),16);return g>=0&&g<=4095?(d(e,(3840&g)>>4|(3840&g)>>8,240&g|(240&g)>>4,15&g|(15&g)<<4,1),m(t,e),e):void d(e,0,0,0,1)}if(7===i.length){g=parseInt(i.substr(1),16);return g>=0&&g<=16777215?(d(e,(16711680&g)>>16,(65280&g)>>8,255&g,1),m(t,e),e):void d(e,0,0,0,1)}}}}function y(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=c(t[1]),r=c(t[2]),o=r<=.5?r*(i+1):r+i-r*i,s=2*r-o;return e=e||[],d(e,a(255*u(s,o,n+1/3)),a(255*u(s,o,n)),a(255*u(s,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function x(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(i,r,a),s=Math.max(i,r,a),l=s-o,c=(s+o)/2;if(0===l)e=0,n=0;else{n=c<.5?l/(s+o):l/(2-s-o);var u=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-a)/6+l/2)/l;i===s?e=d-h:r===s?e=1/3+u-d:a===s&&(e=2/3+h-u),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,c];return null!=t[3]&&f.push(t[3]),f}}function b(t,e){var n=v(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:t[i]<0&&(n[i]=0);return k(n,4===n.length?"rgba":"rgb")}}function _(t){var e=v(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function w(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),l=e[r],c=e[o],u=i-r;return n[0]=a(h(l[0],c[0],u)),n[1]=a(h(l[1],c[1],u)),n[2]=a(h(l[2],c[2],u)),n[3]=s(h(l[3],c[3],u)),n}}var S=w;function A(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),l=v(e[r]),c=v(e[o]),u=i-r,d=k([a(h(l[0],c[0],u)),a(h(l[1],c[1],u)),a(h(l[2],c[2],u)),s(h(l[3],c[3],u))],"rgba");return n?{color:d,leftIndex:r,rightIndex:o,value:i}:d}}var C=A;function I(t,e,n,i){if(t=v(t),t)return t=x(t),null!=e&&(t[0]=o(e)),null!=n&&(t[1]=c(n)),null!=i&&(t[2]=c(i)),k(y(t),"rgba")}function T(t,e){if(t=v(t),t&&null!=e)return t[3]=s(e),k(t,"rgba")}function k(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}e.parse=v,e.lift=b,e.toHex=_,e.fastLerp=w,e.fastMapToColor=S,e.lerp=A,e.mapToColor=C,e.modifyHSL=I,e.modifyAlpha=T,e.stringify=k},"42e5":function(t,e){var n=function(t){this.colorStops=t||[]};n.prototype={constructor:n,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}};var i=n;t.exports=i},"42f6":function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=n("22d1"),o=n("07d7"),s=n("82f9"),l=n("eda2"),c=n("3842"),u=n("2306"),h=n("133d"),d=n("f934"),f=n("4319"),p=n("17d6"),g=n("697e"),m=n("ff2e"),v=n("e0d3"),y=v.getTooltipRenderMode,x=r.bind,b=r.each,_=c.parsePercent,w=new u.Rect({shape:{x:-1,y:-1,width:2,height:2}}),S=i.extendComponentView({type:"tooltip",init:function(t,e){if(!a.node){var n,i=t.getComponent("tooltip"),r=i.get("renderMode");this._renderMode=y(r),"html"===this._renderMode?(n=new o(e.getDom(),e,{appendToBody:i.get("appendToBody",!0)}),this._newLine="<br/>"):(n=new s(e),this._newLine="\n"),this._tooltipContent=n}},render:function(t,e,n){if(!a.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,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");p.register("itemTooltip",this._api,x((function(t,n,i){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,i):"leave"===t&&this._hide(i))}),this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY})}))}},manuallyShowTip:function(t,e,n,i){if(i.from!==this.uid&&!a.node){var r=C(i,n);this._ticket="";var o=i.dataByCoordSys;if(i.tooltip&&null!=i.x&&null!=i.y){var s=w;s.position=[i.x,i.y],s.update(),s.tooltip=i.tooltip,this._tryShow({offsetX:i.x,offsetY:i.y,target:s},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:i.dataByCoordSys,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var l=h(i,e),c=l.point[0],u=l.point[1];null!=c&&null!=u&&this._tryShow({offsetX:c,offsetY:u,position:i.position,target:l.el},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},manuallyHideTip:function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(C(i,n))},_manuallyAxisShowTip:function(t,e,n,i){var r=i.seriesIndex,a=i.dataIndex,o=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=a&&null!=o){var s=e.getSeriesByIndex(r);if(s){var l=s.getData();t=A([l.getItemModel(a),s,(s.coordinateSystem||{}).model,t]);if("axis"===t.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:a,position:i.position}),!0}}},_tryShow:function(t,e){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;r&&r.length?this._showAxisTooltip(r,t):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,n,e)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,n,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var n=t.get("showDelay");e=r.bind(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},_showAxisTooltip:function(t,e){var n=this._ecModel,i=this._tooltipModel,a=[e.offsetX,e.offsetY],o=[],s=[],c=A([e.tooltipOption,i]),u=this._renderMode,h=this._newLine,d={};b(t,(function(t){b(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value,a=[];if(e&&null!=i){var c=m.getValueLabel(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt);r.each(t.seriesDataIndices,(function(o){var l=n.getSeriesByIndex(o.seriesIndex),h=o.dataIndexInside,f=l&&l.getDataParams(h);if(f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=g.getAxisRawValue(e.axis,i),f.axisValueLabel=c,f){s.push(f);var p,m=l.formatTooltip(h,!0,null,u);if(r.isObject(m)){p=m.html;var v=m.markers;r.merge(d,v)}else p=m;a.push(p)}}));var f=c;"html"!==u?o.push(a.join(h)):o.push((f?l.encodeHTML(f)+h:"")+a.join(h))}}))}),this),o.reverse(),o=o.join(this._newLine+this._newLine);var f=e.position;this._showOrMove(c,(function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(c,f,a[0],a[1],this._tooltipContent,s):this._showTooltipContent(c,o,s,Math.random(),a[0],a[1],f,void 0,d)}))},_showSeriesItemTooltip:function(t,e,n){var i=this._ecModel,a=e.seriesIndex,o=i.getSeriesByIndex(a),s=e.dataModel||o,l=e.dataIndex,c=e.dataType,u=s.getData(c),h=A([u.getItemModel(l),s,o&&(o.coordinateSystem||{}).model,this._tooltipModel]),d=h.get("trigger");if(null==d||"item"===d){var f,p,g=s.getDataParams(l,c),m=s.formatTooltip(l,!1,c,this._renderMode);r.isObject(m)?(f=m.html,p=m.markers):(f=m,p=null);var v="item_"+s.name+"_"+l;this._showOrMove(h,(function(){this._showTooltipContent(h,f,g,v,t.offsetX,t.offsetY,t.position,t.target,p)})),n({type:"showTip",dataIndexInside:l,dataIndex:u.getRawIndex(l),seriesIndex:a,from:this.uid})}},_showComponentItemTooltip:function(t,e,n){var i=e.tooltip;if("string"===typeof i){var r=i;i={content:r,formatter:r}}var a=new f(i,this._tooltipModel,this._ecModel),o=a.get("content"),s=Math.random();this._showOrMove(a,(function(){this._showTooltipContent(a,o,a.get("formatterParams")||{},s,t.offsetX,t.offsetY,t.position,e)})),n({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,n,i,r,a,o,s,c){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent,h=t.get("formatter");o=o||t.get("position");var d=e;if(h&&"string"===typeof h)d=l.formatTpl(h,n,!0);else if("function"===typeof h){var f=x((function(e,i){e===this._ticket&&(u.setContent(i,c,t),this._updatePosition(t,o,r,a,u,n,s))}),this);this._ticket=i,d=h(n,i,f)}u.setContent(d,c,t),u.show(t),this._updatePosition(t,o,r,a,u,n,s)}},_updatePosition:function(t,e,n,i,a,o,s){var l=this._api.getWidth(),c=this._api.getHeight();e=e||t.get("position");var u=a.getSize(),h=t.get("align"),f=t.get("verticalAlign"),p=s&&s.getBoundingRect().clone();if(s&&p.applyTransform(s.transform),"function"===typeof e&&(e=e([n,i],o,a.el,p,{viewSize:[l,c],contentSize:u.slice()})),r.isArray(e))n=_(e[0],l),i=_(e[1],c);else if(r.isObject(e)){e.width=u[0],e.height=u[1];var g=d.getLayoutRect(e,{width:l,height:c});n=g.x,i=g.y,h=null,f=null}else if("string"===typeof e&&s){var m=k(e,p,u);n=m[0],i=m[1]}else{m=I(n,i,a,l,c,h?null:20,f?null:20);n=m[0],i=m[1]}if(h&&(n-=M(h)?u[0]/2:"right"===h?u[0]:0),f&&(i-=M(f)?u[1]/2:"bottom"===f?u[1]:0),t.get("confine")){m=T(n,i,a,l,c);n=m[0],i=m[1]}a.moveTo(n,i)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,n=!!e&&e.length===t.length;return n&&b(e,(function(e,i){var r=e.dataByAxis||{},a=t[i]||{},o=a.dataByAxis||[];n&=r.length===o.length,n&&b(r,(function(t,e){var i=o[e]||{},r=t.seriesDataIndices||[],a=i.seriesDataIndices||[];n&=t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&r.length===a.length,n&&b(r,(function(t,e){var i=a[e];n&=t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex}))}))})),this._lastDataByCoordSys=t,!!n},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){a.node||(this._tooltipContent.dispose(),p.unregister("itemTooltip",e))}});function A(t){var e=t.pop();while(t.length){var n=t.pop();n&&(f.isInstance(n)&&(n=n.get("tooltip",!0)),"string"===typeof n&&(n={formatter:n}),e=new f(n,e,e.ecModel))}return e}function C(t,e){return t.dispatchAction||r.bind(e.dispatchAction,e)}function I(t,e,n,i,r,a,o){var s=n.getOuterSize(),l=s.width,c=s.height;return null!=a&&(t+l+a>i?t-=l+a:t+=a),null!=o&&(e+c+o>r?e-=c+o:e+=o),[t,e]}function T(t,e,n,i,r){var a=n.getOuterSize(),o=a.width,s=a.height;return t=Math.min(t+o,i)-o,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function k(t,e,n){var i=n[0],r=n[1],a=5,o=0,s=0,l=e.width,c=e.height;switch(t){case"inside":o=e.x+l/2-i/2,s=e.y+c/2-r/2;break;case"top":o=e.x+l/2-i/2,s=e.y-r-a;break;case"bottom":o=e.x+l/2-i/2,s=e.y+c+a;break;case"left":o=e.x-i-a,s=e.y+c/2-r/2;break;case"right":o=e.x+l+a,s=e.y+c/2-r/2}return[o,s]}function M(t){return"center"===t||"middle"===t}t.exports=S},4319:function(t,e,n){var i=n("6d8b"),r=n("22d1"),a=n("e0d3"),o=a.makeInner,s=n("625e"),l=s.enableClassExtend,c=s.enableClassCheck,u=n("3901"),h=n("9bdb"),d=n("fe21"),f=n("551f"),p=i.mixin,g=o();function m(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}function v(t,e,n){for(var i=0;i<e.length;i++)if(e[i]&&(t=t&&"object"===typeof t?t[e[i]]:null,null==t))break;return null==t&&n&&(t=n.get(e)),t}function y(t,e){var n=g(t).getParent;return n?n.call(t,e):t.parentModel}m.prototype={constructor:m,init:null,mergeOption:function(t){i.merge(this.option,t,!0)},get:function(t,e){return null==t?this.option:v(this.option,this.parsePath(t),!e&&y(this,t))},getShallow:function(t,e){var n=this.option,i=null==n?n:n[t],r=!e&&y(this,t);return null==i&&r&&(i=r.getShallow(t)),i},getModel:function(t,e){var n,i=null==t?this.option:v(this.option,t=this.parsePath(t));return e=e||(n=y(this,t))&&n.getModel(t),new m(i,e,this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){var t=this.constructor;return new t(i.clone(this.option))},setReadOnly:function(t){},parsePath:function(t){return"string"===typeof t&&(t=t.split(".")),t},customizeGetParent:function(t){g(this).getParent=t},isAnimationEnabled:function(){if(!r.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},l(m),c(m),p(m,u),p(m,h),p(m,d),p(m,f);var x=m;t.exports=x},4338:function(t,e,n){var i=n("4bf6"),r=n("2039");function a(t,e){var n=[];return t.eachComponent("singleAxis",(function(r,a){var o=new i(r,t,e);o.name="single_"+a,o.resize(r,e),r.coordinateSystem=o,n.push(o)})),t.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"singleAxis",index:e.get("singleAxisIndex"),id:e.get("singleAxisId")})[0];e.coordinateSystem=n&&n.coordinateSystem}})),n}r.register("single",{create:a,dimensions:i.prototype.dimensions})},"43b8":function(t,e,n){var i=n("2449"),r=i.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});t.exports=r},4411:function(t,e,n){for(var i=n("3eba"),r=n("55ac"),a=function(){},o=["treemapZoomToNode","treemapRender","treemapMove"],s=0;s<o.length;s++)i.registerAction({type:o[s],update:"updateView"},a);i.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){function n(e,n){var i=["treemapZoomToNode","treemapRootToNode"],a=r.retrieveTargetInfo(t,i,e);if(a){var o=e.getViewRoot();o&&(t.direction=r.aboveViewRoot(o,a.node)?"rollUp":"drillDown"),e.resetViewRoot(a.node)}}e.eachComponent({mainType:"series",subType:"treemap",query:t},n)}))},4436:function(t,e,n){var i=n("74cb");function r(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this._pausedTime=0,this._paused=!1}r.prototype={constructor:r,step:function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)this._pausedTime+=e;else{var n=(t-this._startTime-this._pausedTime)/this._life;if(!(n<0)){n=Math.min(n,1);var r=this.easing,a="string"===typeof r?i[r]:r,o="function"===typeof a?a(n):n;return this.fire("frame",o),1===n?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}}},restart:function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(t,e){t="on"+t,this[t]&&this[t](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var a=r;t.exports=a},"44fb":function(t,e,n){var i=n("3eba"),r=n("55ac"),a="sunburstRootToNode";i.registerAction({type:a,update:"updateView"},(function(t,e){function n(e,n){var i=r.retrieveTargetInfo(t,[a],e);if(i){var o=e.getViewRoot();o&&(t.direction=r.aboveViewRoot(o,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}e.eachComponent({mainType:"series",subType:"sunburst",query:t},n)}));var o="sunburstHighlight";i.registerAction({type:o,update:"updateView"},(function(t,e){function n(e,n){var i=r.retrieveTargetInfo(t,[o],e);i&&(t.highlight=i.node)}e.eachComponent({mainType:"series",subType:"sunburst",query:t},n)}));var s="sunburstUnhighlight";i.registerAction({type:s,update:"updateView"},(function(t,e){function n(e,n){t.unhighlight=!0}e.eachComponent({mainType:"series",subType:"sunburst",query:t},n)}))},4527:function(t,e,n){var i=n("2306"),r=n("6d8b");function a(t,e,n){i.Group.call(this),this._createPolyline(t,e,n)}var o=a.prototype;o._createPolyline=function(t,e,n){var r=t.getItemLayout(e),a=new i.Polyline({shape:{points:r}});this.add(a),this._updateCommonStl(t,e,n)},o.updateData=function(t,e,n){var r=t.hostModel,a=this.childAt(0),o={shape:{points:t.getItemLayout(e)}};i.updateProps(a,o,r,e),this._updateCommonStl(t,e,n)},o._updateCommonStl=function(t,e,n){var a=this.childAt(0),o=t.getItemModel(e),s=t.getItemVisual(e,"color"),l=n&&n.lineStyle,c=n&&n.hoverLineStyle;n&&!t.hasItemOption||(l=o.getModel("lineStyle").getLineStyle(),c=o.getModel("emphasis.lineStyle").getLineStyle()),a.useStyle(r.defaults({strokeNoScale:!0,fill:"none",stroke:s},l)),a.hoverStyle=c,i.setHoverStyle(this)},o.updateLayout=function(t,e){var n=this.childAt(0);n.setShape("points",t.getItemLayout(e))},r.inherits(a,i.Group);var s=a;t.exports=s},45731:function(t,e,n){var i=n("cbe5"),r=i.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)}});t.exports=r},4650:function(t,e,n){var i=n("3eba"),r=n("6d8b");function a(t,e,n){var i,a={},o="toggleSelected"===t;return n.eachComponent("legend",(function(n){o&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name));var s=n.getData();r.each(s,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);a.hasOwnProperty(e)?a[e]=a[e]&&i:a[e]=i}}))})),"allSelect"===t||"inverseSelect"===t?{selected:a}:{name:e.name,selected:a}}i.registerAction("legendToggleSelect","legendselectchanged",r.curry(a,"toggleSelected")),i.registerAction("legendAllSelect","legendselectall",r.curry(a,"allSelect")),i.registerAction("legendInverseSelect","legendinverseselect",r.curry(a,"inverseSelect")),i.registerAction("legendSelect","legendselected",r.curry(a,"select")),i.registerAction("legendUnSelect","legendunselected",r.curry(a,"unSelect"))},"471e":function(t,e){function n(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}t.exports=n},4784:function(t,e,n){var i=n("3eba"),r=n("f706"),a=n("c8ef"),o=n("1687"),s=n("87c3"),l=i.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new r(a)},render:function(t,e,n){var i=t.getData(),r=this._symbolDraw;r.updateData(i),this.group.add(r.group)},updateTransform:function(t,e,n){var i=t.getData();this.group.dirty();var r=s().reset(t);r.progress&&r.progress({start:0,end:i.count()},i),this._symbolDraw.updateLayout(i)},_updateGroupTransform:function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=o.clone(e.getRoamTransform()),this.group.decomposeTransform())},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(e)},dispose:function(){}});t.exports=l},"480e":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("3eba")),a=n("2306"),o=n("cd84"),s=n("6d8b");function l(t,e,n){var i=t[1]-t[0];e=s.map(e,(function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}}));var r=e.length,a=0;return function(t){for(var i=a;i<r;i++){var o=e[i].interval;if(o[0]<=t&&t<=o[1]){a=i;break}}if(i===r)for(i=a-1;i>=0;i--){o=e[i].interval;if(o[0]<=t&&t<=o[1]){a=i;break}}return i>=0&&i<r&&n[i]}}function c(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}function u(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var h=r.extendChartView({type:"heatmap",render:function(t,e,n){var i;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(i=e)}))})),this.group.removeAll(),this._incrementalDisplayable=null;var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):u(r)&&this._renderOnGeo(r,t,i,n)},incrementalPrepareRender:function(t,e,n){this.group.removeAll()},incrementalRender:function(t,e,n,i){var r=e.coordinateSystem;r&&this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,e,n,i,r){var o,l,c=t.coordinateSystem;if("cartesian2d"===c.type){var u=c.getAxis("x"),h=c.getAxis("y");o=u.getBandWidth(),l=h.getBandWidth()}for(var d=this.group,f=t.getData(),p="itemStyle",g="emphasis.itemStyle",m="label",v="emphasis.label",y=t.getModel(p).getItemStyle(["color"]),x=t.getModel(g).getItemStyle(),b=t.getModel(m),_=t.getModel(v),w=c.type,S="cartesian2d"===w?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],A=n;A<i;A++){var C;if("cartesian2d"===w){if(isNaN(f.get(S[2],A)))continue;var I=c.dataToPoint([f.get(S[0],A),f.get(S[1],A)]);C=new a.Rect({shape:{x:Math.floor(Math.round(I[0])-o/2),y:Math.floor(Math.round(I[1])-l/2),width:Math.ceil(o),height:Math.ceil(l)},style:{fill:f.getItemVisual(A,"color"),opacity:f.getItemVisual(A,"opacity")}})}else{if(isNaN(f.get(S[1],A)))continue;C=new a.Rect({z2:1,shape:c.dataToRect([f.get(S[0],A)]).contentShape,style:{fill:f.getItemVisual(A,"color"),opacity:f.getItemVisual(A,"opacity")}})}var T=f.getItemModel(A);f.hasItemOption&&(y=T.getModel(p).getItemStyle(["color"]),x=T.getModel(g).getItemStyle(),b=T.getModel(m),_=T.getModel(v));var k=t.getRawValue(A),M="-";k&&null!=k[2]&&(M=k[2]),a.setLabelStyle(y,x,b,_,{labelFetcher:t,labelDataIndex:A,defaultText:M,isRectText:!0}),C.setStyle(y),a.setHoverStyle(C,f.hasItemOption?x:s.extend({},x)),C.incremental=r,r&&(C.useHoverLayer=!0),d.add(C),f.setItemGraphicEl(A,C)}},_renderOnGeo:function(t,e,n,i){var r=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,u=e.getData(),h=this._hmLayer||this._hmLayer||new o;h.blurSize=e.get("blurSize"),h.pointSize=e.get("pointSize"),h.minOpacity=e.get("minOpacity"),h.maxOpacity=e.get("maxOpacity");var d=t.getViewRect().clone(),f=t.getRoamTransform();d.applyTransform(f);var p=Math.max(d.x,0),g=Math.max(d.y,0),m=Math.min(d.width+d.x,i.getWidth()),v=Math.min(d.height+d.y,i.getHeight()),y=m-p,x=v-g,b=[u.mapDimension("lng"),u.mapDimension("lat"),u.mapDimension("value")],_=u.mapArray(b,(function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=p,r[1]-=g,r.push(i),r})),w=n.getExtent(),S="visualMap.continuous"===n.type?c(w,n.option.range):l(w,n.getPieceList(),n.option.selected);h.update(_,y,x,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:s.color.getColorMapper()},S);var A=new a.Image({style:{width:y,height:x,x:p,y:g,image:h.canvas},silent:!0});this.group.add(A)},dispose:function(){}});t.exports=h},"480f":function(t,e,n){var i=n("4a3f"),r=n("401b"),a=n("53f3"),o=a.getSymbolSize,s=[],l=[],c=[],u=i.quadraticAt,h=r.distSquare,d=Math.abs;function f(t,e,n){for(var i,r=t[0],a=t[1],o=t[2],f=1/0,p=n*n,g=.1,m=.1;m<=.9;m+=.1){s[0]=u(r[0],a[0],o[0],m),s[1]=u(r[1],a[1],o[1],m);var v=d(h(s,e)-p);v<f&&(f=v,i=m)}for(var y=0;y<32;y++){var x=i+g;l[0]=u(r[0],a[0],o[0],i),l[1]=u(r[1],a[1],o[1],i),c[0]=u(r[0],a[0],o[0],x),c[1]=u(r[1],a[1],o[1],x);v=h(l,e)-p;if(d(v)<.01)break;var b=h(c,e)-p;g/=2,v<0?b>=0?i+=g:i-=g:b>=0?i-=g:i+=g}return i}function p(t,e){var n=[],a=i.quadraticSubdivide,s=[[],[],[]],l=[[],[]],c=[];e/=2,t.eachEdge((function(t,i){var u=t.getLayout(),h=t.getVisual("fromSymbol"),d=t.getVisual("toSymbol");u.__original||(u.__original=[r.clone(u[0]),r.clone(u[1])],u[2]&&u.__original.push(r.clone(u[2])));var p=u.__original;if(null!=u[2]){if(r.copy(s[0],p[0]),r.copy(s[1],p[2]),r.copy(s[2],p[1]),h&&"none"!==h){var g=o(t.node1),m=f(s,p[0],g*e);a(s[0][0],s[1][0],s[2][0],m,n),s[0][0]=n[3],s[1][0]=n[4],a(s[0][1],s[1][1],s[2][1],m,n),s[0][1]=n[3],s[1][1]=n[4]}if(d&&"none"!==d){g=o(t.node2),m=f(s,p[1],g*e);a(s[0][0],s[1][0],s[2][0],m,n),s[1][0]=n[1],s[2][0]=n[2],a(s[0][1],s[1][1],s[2][1],m,n),s[1][1]=n[1],s[2][1]=n[2]}r.copy(u[0],s[0]),r.copy(u[1],s[2]),r.copy(u[2],s[1])}else{if(r.copy(l[0],p[0]),r.copy(l[1],p[1]),r.sub(c,l[1],l[0]),r.normalize(c,c),h&&"none"!==h){g=o(t.node1);r.scaleAndAdd(l[0],l[0],c,g*e)}if(d&&"none"!==d){g=o(t.node2);r.scaleAndAdd(l[1],l[1],c,-g*e)}r.copy(u[0],l[0]),r.copy(u[1],l[1])}}))}t.exports=p},"48a9":function(t,e,n){var i=n("6d8b"),r=n("42e5"),a=function(t,e,n,i,a,o){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==n?1:n,this.y2=null==i?0:i,this.type="linear",this.global=o||!1,r.call(this,a)};a.prototype={constructor:a},i.inherits(a,r);var o=a;t.exports=o},"48ac":function(t,e,n){var i=n("3eba"),r=i.extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}}),a=r;t.exports=a},"48c7":function(t,e,n){var i=n("6d8b"),r=n("6cb7"),a=n("9e47"),o=n("2023"),s=r.extend({type:"cartesian2dAxis",axis:null,init:function(){s.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){s.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){s.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function l(t,e){return e.type||(e.data?"category":"value")}i.merge(s.prototype,o);var c={offset:0};a("x",s,l,c),a("y",s,l,c);var u=s;t.exports=u},4942:function(t,e,n){var i=n("2cf4c"),r=i.debugMode,a=function(){};1===r&&(a=console.error);var o=a;t.exports=o},"49ad":function(t,e,n){"use strict";t.exports=function(t){var e={};function n(n){var i=t.get(n);return void 0===i?[]:e[i]||[]}function i(n,i){var r=t.get(n);e[r]||(e[r]=[]),e[r].push(i)}function r(t,e){for(var i=n(t),r=0,a=i.length;r<a;++r)if(i[r]===e){i.splice(r,1);break}}function a(t){var e=n(t);e&&(e.length=0)}return{get:n,add:i,removeListener:r,removeAllListeners:a}}},"49e8":function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=n("d81e"),o=a.updateCenterAndZoom;i.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){var i=e.coordinateSystem;if("geo"===i.type){var a=o(i,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(a.center),e.setZoom&&e.setZoom(a.zoom),"series"===n&&r.each(e.seriesGroup,(function(t){t.setCenter(a.center),t.setZoom(a.zoom)}))}}))}))},"4a01":function(t,e,n){var i=n("6d8b"),r=n("1fab"),a=n("607d"),o=n("a4fe");function s(t){this.pointerChecker,this._zr=t,this._opt={};var e=i.bind,n=e(l,this),a=e(c,this),o=e(u,this),s=e(h,this),f=e(d,this);r.call(this),this.setPointerChecker=function(t){this.pointerChecker=t},this.enable=function(e,r){this.disable(),this._opt=i.defaults(i.clone(r)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",n),t.on("mousemove",a),t.on("mouseup",o)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",s),t.on("pinch",f))},this.disable=function(){t.off("mousedown",n),t.off("mousemove",a),t.off("mouseup",o),t.off("mousewheel",s),t.off("pinch",f)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function l(t){if(!(a.isMiddleOrRightButtonOnMouseUpDown(t)||t.target&&t.target.draggable)){var e=t.offsetX,n=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,n)&&(this._x=e,this._y=n,this._dragging=!0)}}function c(t){if(this._dragging&&g("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!o.isTaken(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y,s=e-i,l=n-r;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&a.stop(t.event),p(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:i,oldY:r,newX:e,newY:n})}}function u(t){a.isMiddleOrRightButtonOnMouseUpDown(t)||(this._dragging=!1)}function h(t){var e=g("zoomOnMouseWheel",t,this._opt),n=g("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),a=t.offsetX,o=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1,l=i>0?s:1/s;f(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:a,originY:o})}if(n){var c=Math.abs(i),u=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);f(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:u,originX:a,originY:o})}}}function d(t){if(!o.isTaken(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;f(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY})}}function f(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(a.stop(i.event),p(t,e,n,i,r))}function p(t,e,n,r,a){a.isAvailableBehavior=i.bind(g,null,n,r),t.trigger(e,a)}function g(t,e,n){var r=n[t];return!t||r&&(!i.isString(r)||e.event[r+"Key"])}i.mixin(s,r);var m=s;t.exports=m},"4a3f":function(t,e,n){var i=n("401b"),r=i.create,a=i.distSquare,o=Math.pow,s=Math.sqrt,l=1e-8,c=1e-4,u=s(3),h=1/3,d=r(),f=r(),p=r();function g(t){return t>-l&&t<l}function m(t){return t>l||t<-l}function v(t,e,n,i,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*i+3*a*n)}function y(t,e,n,i,r){var a=1-r;return 3*(((e-t)*a+2*(n-e)*r)*a+(i-n)*r*r)}function x(t,e,n,i,r,a){var l=i+3*(e-n)-t,c=3*(n-2*e+t),d=3*(e-t),f=t-r,p=c*c-3*l*d,m=c*d-9*l*f,v=d*d-3*c*f,y=0;if(g(p)&&g(m))if(g(c))a[0]=0;else{var x=-d/c;x>=0&&x<=1&&(a[y++]=x)}else{var b=m*m-4*p*v;if(g(b)){var _=m/p,w=(x=-c/l+_,-_/2);x>=0&&x<=1&&(a[y++]=x),w>=0&&w<=1&&(a[y++]=w)}else if(b>0){var S=s(b),A=p*c+1.5*l*(-m+S),C=p*c+1.5*l*(-m-S);A=A<0?-o(-A,h):o(A,h),C=C<0?-o(-C,h):o(C,h);x=(-c-(A+C))/(3*l);x>=0&&x<=1&&(a[y++]=x)}else{var I=(2*p*c-3*l*m)/(2*s(p*p*p)),T=Math.acos(I)/3,k=s(p),M=Math.cos(T),D=(x=(-c-2*k*M)/(3*l),w=(-c+k*(M+u*Math.sin(T)))/(3*l),(-c+k*(M-u*Math.sin(T)))/(3*l));x>=0&&x<=1&&(a[y++]=x),w>=0&&w<=1&&(a[y++]=w),D>=0&&D<=1&&(a[y++]=D)}}return y}function b(t,e,n,i,r){var a=6*n-12*e+6*t,o=9*e+3*i-3*t-9*n,l=3*e-3*t,c=0;if(g(o)){if(m(a)){var u=-l/a;u>=0&&u<=1&&(r[c++]=u)}}else{var h=a*a-4*o*l;if(g(h))r[0]=-a/(2*o);else if(h>0){var d=s(h),f=(u=(-a+d)/(2*o),(-a-d)/(2*o));u>=0&&u<=1&&(r[c++]=u),f>=0&&f<=1&&(r[c++]=f)}}return c}function _(t,e,n,i,r,a){var o=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,c=(s-o)*r+o,u=(l-s)*r+s,h=(u-c)*r+c;a[0]=t,a[1]=o,a[2]=c,a[3]=h,a[4]=h,a[5]=u,a[6]=l,a[7]=i}function w(t,e,n,i,r,o,l,u,h,g,m){var y,x,b,_,w,S=.005,A=1/0;d[0]=h,d[1]=g;for(var C=0;C<1;C+=.05)f[0]=v(t,n,r,l,C),f[1]=v(e,i,o,u,C),_=a(d,f),_<A&&(y=C,A=_);A=1/0;for(var I=0;I<32;I++){if(S<c)break;x=y-S,b=y+S,f[0]=v(t,n,r,l,x),f[1]=v(e,i,o,u,x),_=a(f,d),x>=0&&_<A?(y=x,A=_):(p[0]=v(t,n,r,l,b),p[1]=v(e,i,o,u,b),w=a(p,d),b<=1&&w<A?(y=b,A=w):S*=.5)}return m&&(m[0]=v(t,n,r,l,y),m[1]=v(e,i,o,u,y)),s(A)}function S(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function A(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function C(t,e,n,i,r){var a=t-2*e+n,o=2*(e-t),l=t-i,c=0;if(g(a)){if(m(o)){var u=-l/o;u>=0&&u<=1&&(r[c++]=u)}}else{var h=o*o-4*a*l;if(g(h)){u=-o/(2*a);u>=0&&u<=1&&(r[c++]=u)}else if(h>0){var d=s(h),f=(u=(-o+d)/(2*a),(-o-d)/(2*a));u>=0&&u<=1&&(r[c++]=u),f>=0&&f<=1&&(r[c++]=f)}}return c}function I(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function T(t,e,n,i,r){var a=(e-t)*i+t,o=(n-e)*i+e,s=(o-a)*i+a;r[0]=t,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=n}function k(t,e,n,i,r,o,l,u,h){var g,m=.005,v=1/0;d[0]=l,d[1]=u;for(var y=0;y<1;y+=.05){f[0]=S(t,n,r,y),f[1]=S(e,i,o,y);var x=a(d,f);x<v&&(g=y,v=x)}v=1/0;for(var b=0;b<32;b++){if(m<c)break;var _=g-m,w=g+m;f[0]=S(t,n,r,_),f[1]=S(e,i,o,_);x=a(f,d);if(_>=0&&x<v)g=_,v=x;else{p[0]=S(t,n,r,w),p[1]=S(e,i,o,w);var A=a(p,d);w<=1&&A<v?(g=w,v=A):m*=.5}}return h&&(h[0]=S(t,n,r,g),h[1]=S(e,i,o,g)),s(v)}e.cubicAt=v,e.cubicDerivativeAt=y,e.cubicRootAt=x,e.cubicExtrema=b,e.cubicSubdivide=_,e.cubicProjectPoint=w,e.quadraticAt=S,e.quadraticDerivativeAt=A,e.quadraticRootAt=C,e.quadraticExtremum=I,e.quadraticSubdivide=T,e.quadraticProjectPoint=k},"4a9d":function(t,e,n){var i=n("dcb3"),r=n("ff2e"),a=n("0156"),o=n("6679"),s=i.extend({makeElOption:function(t,e,n,i,o){var s=n.axis,u=s.grid,h=i.get("type"),d=l(u,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(e,!0));if(h&&"none"!==h){var p=r.buildElStyle(i),g=c[h](s,f,d);g.style=p,t.graphicKey=g.type,t.pointer=g}var m=a.layout(u.model,n);r.buildCartesianSingleLabelElOption(e,t,m,n,i,o)},getHandleTransform:function(t,e,n){var i=a.layout(e.axis.grid.model,e,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:r.getTransformedPosition(e.axis,t,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,i){var r=n.axis,a=r.grid,o=r.getGlobalExtent(!0),s=l(a,r).getOtherAxis(r).getGlobalExtent(),c="x"===r.dim?0:1,u=t.position;u[c]+=e[c],u[c]=Math.min(o[1],u[c]),u[c]=Math.max(o[0],u[c]);var h=(s[1]+s[0])/2,d=[h,h];d[c]=u[c];var f=[{verticalAlign:"middle"},{align:"center"}];return{position:u,rotation:t.rotation,cursorPoint:d,tooltipOption:f[c]}}});function l(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var c={line:function(t,e,n){var i=r.makeLineShape([e,n[0]],[e,n[1]],u(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),a=n[1]-n[0];return{type:"Rect",shape:r.makeRectShape([e-i/2,n[0]],[i,a],u(t))}}};function u(t){return"x"===t.dim?0:1}o.registerAxisPointerClass("CartesianAxisPointer",s);var h=s;t.exports=h},"4aa2":function(t,e,n){var i=n("cbe5"),r=n("897a"),a=i.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:r(i.prototype.brush),buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),a=Math.max(e.r,0),o=e.startAngle,s=e.endAngle,l=e.clockwise,c=Math.cos(o),u=Math.sin(o);t.moveTo(c*r+n,u*r+i),t.lineTo(c*a+n,u*a+i),t.arc(n,i,a,o,s,!l),t.lineTo(Math.cos(s)*r+n,Math.sin(s)*r+i),0!==r&&t.arc(n,i,r,s,o,l),t.closePath()}});t.exports=a},"4ab1":function(t,e,n){var i=n("8727"),r=i.createElement,a=n("6d8b"),o=n("cbe5"),s=n("0da8"),l=n("76a5"),c=n("3f8e"),u=c.path,h=c.image,d=c.text,f="0",p="1";function g(t,e,n,i,r){this._zrId=t,this._svgRoot=e,this._tagNames="string"===typeof n?[n]:n,this._markLabel=i,this._domName=r||"_dom",this.nextId=0}g.prototype.createElement=r,g.prototype.getDefs=function(t){var e=this._svgRoot,n=this._svgRoot.getElementsByTagName("defs");return 0===n.length?t?(n=e.insertBefore(this.createElement("defs"),e.firstChild),n.contains||(n.contains=function(t){var e=n.children;if(!e)return!1;for(var i=e.length-1;i>=0;--i)if(e[i]===t)return!0;return!1}),n):null:n[0]},g.prototype.update=function(t,e){if(t){var n=this.getDefs(!1);if(t[this._domName]&&n.contains(t[this._domName]))"function"===typeof e&&e(t);else{var i=this.add(t);i&&(t[this._domName]=i)}}},g.prototype.addDom=function(t){var e=this.getDefs(!0);e.appendChild(t)},g.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},g.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var e=[];return a.each(this._tagNames,(function(n){var i=t.getElementsByTagName(n);e=e.concat([].slice.call(i))})),e},g.prototype.markAllUnused=function(){var t=this.getDoms(),e=this;a.each(t,(function(t){t[e._markLabel]=f}))},g.prototype.markUsed=function(t){t&&(t[this._markLabel]=p)},g.prototype.removeUnused=function(){var t=this.getDefs(!1);if(t){var e=this.getDoms(),n=this;a.each(e,(function(e){e[n._markLabel]!==p&&t.removeChild(e)}))}},g.prototype.getSvgProxy=function(t){return t instanceof o?u:t instanceof s?h:t instanceof l?d:u},g.prototype.getTextSvgElement=function(t){return t.__textSvgEl},g.prototype.getSvgElement=function(t){return t.__svgEl};var m=g;t.exports=m},"4b08":function(t,e,n){var i=n("7dcf"),r=i.extend({type:"dataZoom.select"});t.exports=r},"4bf6":function(t,e,n){var i=n("66fc"),r=n("697e"),a=n("f934"),o=a.getLayoutRect,s=n("6d8b"),l=s.each;function c(t,e,n){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,n),this.model=t}c.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:c,_init:function(t,e,n){var a=this.dimension,o=new i(a,r.createScaleByModel(t),[0,0],t.get("type"),t.get("position")),s="category"===o.type;o.onBand=s&&t.get("boundaryGap"),o.inverse=t.get("inverse"),o.orient=t.get("orient"),t.axis=o,o.model=t,o.coordinateSystem=this,this._axis=o},update:function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();l(e.mapDimension(this.dimension,!0),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),r.niceScaleExtent(this._axis.scale,this._axis.model)}}),this)},resize:function(t,e){this._rect=o({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],r=e.reverse?1:0;e.setExtent(i[r],i[1-r]),this._updateAxisTransform(e,n?t.x:t.y)},_updateAxisTransform:function(t,e){var n=t.getExtent(),i=n[0]+n[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return i-t+e}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(t){var e=this.getRect(),n=this.getAxis(),i=n.orient;return"horizontal"===i?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i}};var u=c;t.exports=u},"4c86":function(t,e,n){var i=n("6d8b"),r=i.each,a=n("bda7"),o=n("e0d3"),s=o.makeInner,l=n("320a"),c=n("1792"),u=n("6bd4"),h=n("a7f2"),d=s(),f={load:function(t,e,n){var i=d(e).parsed;if(i)return i;var o,s=e.specialAreas||{},f=e.geoJSON;try{o=f?a(f,n):[]}catch(g){throw new Error("Invalid geoJson format\n"+g.message)}return l(t,o),r(o,(function(e){var n=e.name;c(t,e),u(t,e),h(t,e);var i=s[n];i&&e.transformTo(i.left,i.top,i.width,i.height)})),d(e).parsed={regions:o,boundingRect:p(o)}}};function p(t){for(var e,n=0;n<t.length;n++){var i=t[n].getBoundingRect();e=e||i.clone(),e.union(i)}return e}t.exports=f},"4c99":function(t,e,n){var i=n("cccd"),r=["itemStyle","borderColor"],a=["itemStyle","borderColor0"],o=["itemStyle","color"],s=["itemStyle","color0"],l={seriesType:"candlestick",plan:i(),performRawSeries:!0,reset:function(t,e){var n=t.getData();if(n.setVisual({legendSymbol:"roundRect",colorP:c(1,t),colorN:c(-1,t),borderColorP:u(1,t),borderColorN:u(-1,t)}),!e.isSeriesFiltered(t)){var i=t.pipelineContext.large;return!i&&{progress:l}}function l(t,e){var n;while(null!=(n=t.next())){var i=e.getItemModel(n),r=e.getItemLayout(n).sign;e.setItemVisual(n,{color:c(r,i),borderColor:u(r,i)})}}function c(t,e){return e.get(t>0?o:s)}function u(t,e){return e.get(t>0?r:a)}}};t.exports=l},"4d62":function(t,e,n){var i=n("2306"),r=n("6d8b"),a=n("e887");function o(t,e){i.Group.call(this);var n=new i.Polygon,r=new i.Polyline,a=new i.Text;this.add(n),this.add(r),this.add(a),this.highDownOnUpdate=function(t,e){"emphasis"===e?(r.ignore=r.hoverIgnore,a.ignore=a.hoverIgnore):(r.ignore=r.normalIgnore,a.ignore=a.normalIgnore)},this.updateData(t,e,!0)}var s=o.prototype,l=["itemStyle","opacity"];s.updateData=function(t,e,n){var a=this.childAt(0),o=t.hostModel,s=t.getItemModel(e),c=t.getItemLayout(e),u=t.getItemModel(e).get(l);u=null==u?1:u,a.useStyle({}),n?(a.setShape({points:c.points}),a.setStyle({opacity:0}),i.initProps(a,{style:{opacity:u}},o,e)):i.updateProps(a,{style:{opacity:u},shape:{points:c.points}},o,e);var h=s.getModel("itemStyle"),d=t.getItemVisual(e,"color");a.setStyle(r.defaults({lineJoin:"round",fill:d},h.getItemStyle(["opacity"]))),a.hoverStyle=h.getModel("emphasis").getItemStyle(),this._updateLabel(t,e),i.setHoverStyle(this)},s._updateLabel=function(t,e){var n=this.childAt(1),r=this.childAt(2),a=t.hostModel,o=t.getItemModel(e),s=t.getItemLayout(e),l=s.label,c=t.getItemVisual(e,"color");i.updateProps(n,{shape:{points:l.linePoints||l.linePoints}},a,e),i.updateProps(r,{style:{x:l.x,y:l.y}},a,e),r.attr({rotation:l.rotation,origin:[l.x,l.y],z2:10});var u=o.getModel("label"),h=o.getModel("emphasis.label"),d=o.getModel("labelLine"),f=o.getModel("emphasis.labelLine");c=t.getItemVisual(e,"color");i.setLabelStyle(r.style,r.hoverStyle={},u,h,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:c,useInsideStyle:!!l.inside},{textAlign:l.textAlign,textVerticalAlign:l.verticalAlign}),r.ignore=r.normalIgnore=!u.get("show"),r.hoverIgnore=!h.get("show"),n.ignore=n.normalIgnore=!d.get("show"),n.hoverIgnore=!f.get("show"),n.setStyle({stroke:c}),n.setStyle(d.getModel("lineStyle").getLineStyle()),n.hoverStyle=f.getModel("lineStyle").getLineStyle()},r.inherits(o,i.Group);var c=a.extend({type:"funnel",render:function(t,e,n){var i=t.getData(),r=this._data,a=this.group;i.diff(r).add((function(t){var e=new o(i,t);i.setItemGraphicEl(t,e),a.add(e)})).update((function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),a.add(n),i.setItemGraphicEl(t,n)})).remove((function(t){var e=r.getItemGraphicEl(t);a.remove(e)})).execute(),this._data=i},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),u=c;t.exports=u},"4d85":function(t,e,n){var i=n("e46b"),r=n("4f85"),a=r.extend({type:"series.gauge",getInitialData:function(t,e){return i(this,["value"])},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}}),o=a;t.exports=o},"4df4":function(t,e,n){"use strict";var i=n("0366"),r=n("7b0b"),a=n("9bdd"),o=n("e95a"),s=n("50c4"),l=n("8418"),c=n("35a1");t.exports=function(t){var e,n,u,h,d,f,p=r(t),g="function"==typeof this?this:Array,m=arguments.length,v=m>1?arguments[1]:void 0,y=void 0!==v,x=c(p),b=0;if(y&&(v=i(v,m>2?arguments[2]:void 0,2)),void 0==x||g==Array&&o(x))for(e=s(p.length),n=new g(e);e>b;b++)f=y?v(p[b],b):p[b],l(n,b,f);else for(h=x.call(p),d=h.next,n=new g;!(u=d.call(h)).done;b++)f=y?a(h,v,[u.value,b],!0):u.value,l(n,b,f);return n.length=b,n}},"4e08":function(t,e,n){(function(t){var n;"undefined"!==typeof window?n=window.__DEV__:"undefined"!==typeof t&&(n=t.__DEV__),"undefined"===typeof n&&(n=!0);var i=n;e.__DEV__=i}).call(this,n("c8ba"))},"4e10":function(t,e,n){var i=n("6d8b"),r=n("e46b"),a=n("4f85"),o=n("eda2"),s=o.encodeHTML,l=o.addCommas,c=n("7023"),u=n("2b17"),h=u.retrieveRawAttr,d=n("5b87"),f=n("0f99"),p=f.makeSeriesEncodeForNameBased,g=a.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(t){for(var e=r(this,{coordDimensions:["value"],encodeDefaulter:i.curry(p,this)}),n=e.mapDimension("value"),a=i.createHashMap(),o=[],s=[],l=0,c=e.count();l<c;l++){var u=e.getName(l);a.set(u,!0),o.push({name:u,value:e.get(n,l),selected:h(e,l,"selected")})}var f=d.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return i.each(f.regions,(function(t){var e=t.name;a.get(e)||(o.push({name:e}),s.push(e))})),this.updateSelectedMap(o),e.appendValues([],s),e},getHostGeoModel:function(){var t=this.option.geoIndex;return null!=t?this.dependentModels.geo[t]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},getRegionModel:function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},formatTooltip:function(t){for(var e=this.getData(),n=l(this.getRawValue(t)),i=e.getName(t),r=this.seriesGroup,a=[],o=0;o<r.length;o++){var c=r[o].originalData.indexOfName(i),u=e.mapDimension("value");isNaN(r[o].originalData.get(u,c))||a.push(s(r[o].name))}return a.join(", ")+"<br />"+s(i+" : "+n)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});i.mixin(g,c);var m=g;t.exports=m},"4e47":function(t,e,n){var i=n("6d8b"),r=n("2306"),a={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},o=2,s=4;function l(t,e,n){r.Group.call(this);var i=new r.Sector({z2:o});i.seriesIndex=e.seriesIndex;var a=new r.Text({z2:s,silent:t.getModel("label").get("silent")});function l(){a.ignore=a.hoverIgnore}function c(){a.ignore=a.normalIgnore}this.add(i),this.add(a),this.updateData(!0,t,"normal",e,n),this.on("emphasis",l).on("normal",c).on("mouseover",l).on("mouseout",c)}var c=l.prototype;c.updateData=function(t,e,n,a,o){this.node=e,e.piece=this,a=a||this._seriesModel,o=o||this._ecModel;var s=this.childAt(0);s.dataIndex=e.dataIndex;var l=e.getModel(),c=e.getLayout(),u=i.extend({},c);u.label=null;var d=h(e,a,o);p(e,a,d);var f,g=l.getModel("itemStyle").getItemStyle();if("normal"===n)f=g;else{var m=l.getModel(n+".itemStyle").getItemStyle();f=i.merge(m,g)}f=i.defaults({lineJoin:"bevel",fill:f.fill||d},f),t?(s.setShape(u),s.shape.r=c.r0,r.updateProps(s,{shape:{r:c.r}},a,e.dataIndex),s.useStyle(f)):"object"===typeof f.fill&&f.fill.type||"object"===typeof s.style.fill&&s.style.fill.type?(r.updateProps(s,{shape:u},a),s.useStyle(f)):r.updateProps(s,{shape:u,style:f},a),this._updateLabel(a,d,n);var v=l.getShallow("cursor");if(v&&s.attr("cursor",v),t){var y=a.getShallow("highlightPolicy");this._initEvents(s,e,a,y)}this._seriesModel=a||this._seriesModel,this._ecModel=o||this._ecModel,r.setHoverStyle(this)},c.onEmphasis=function(t){var e=this;this.node.hostTree.root.eachNode((function(n){n.piece&&(e.node===n?n.piece.updateData(!1,n,"emphasis"):f(n,e.node,t)?n.piece.childAt(0).trigger("highlight"):t!==a.NONE&&n.piece.childAt(0).trigger("downplay"))}))},c.onNormal=function(){this.node.hostTree.root.eachNode((function(t){t.piece&&t.piece.updateData(!1,t,"normal")}))},c.onHighlight=function(){this.updateData(!1,this.node,"highlight")},c.onDownplay=function(){this.updateData(!1,this.node,"downplay")},c._updateLabel=function(t,e,n){var a=this.node.getModel(),o=a.getModel("label"),s="normal"===n||"emphasis"===n?o:a.getModel(n+".label"),l=a.getModel("emphasis.label"),c=i.retrieve(t.getFormattedLabel(this.node.dataIndex,n,null,null,"label"),this.node.name);!1===C("show")&&(c="");var u=this.node.getLayout(),h=s.get("minAngle");null==h&&(h=o.get("minAngle")),h=h/180*Math.PI;var d=u.endAngle-u.startAngle;null!=h&&Math.abs(d)<h&&(c="");var f=this.childAt(1);r.setLabelStyle(f.style,f.hoverStyle||{},o,l,{defaultText:s.getShallow("show")?c:null,autoColor:e,useInsideStyle:!0});var p,g=(u.startAngle+u.endAngle)/2,m=Math.cos(g),v=Math.sin(g),y=C("position"),x=C("distance")||0,b=C("align");"outside"===y?(p=u.r+x,b=g>Math.PI/2?"right":"left"):b&&"center"!==b?"left"===b?(p=u.r0+x,g>Math.PI/2&&(b="right")):"right"===b&&(p=u.r-x,g>Math.PI/2&&(b="left")):(p=(u.r+u.r0)/2,b="center"),f.attr("style",{text:c,textAlign:b,textVerticalAlign:C("verticalAlign")||"middle",opacity:C("opacity")});var _=p*m+u.cx,w=p*v+u.cy;f.attr("position",[_,w]);var S=C("rotate"),A=0;function C(t){var e=s.get(t);return null==e?o.get(t):e}"radial"===S?(A=-g,A<-Math.PI/2&&(A+=Math.PI)):"tangential"===S?(A=Math.PI/2-g,A>Math.PI/2?A-=Math.PI:A<-Math.PI/2&&(A+=Math.PI)):"number"===typeof S&&(A=S*Math.PI/180),f.attr("rotation",A)},c._initEvents=function(t,e,n,i){t.off("mouseover").off("mouseout").off("emphasis").off("normal");var r=this,a=function(){r.onEmphasis(i)},o=function(){r.onNormal()},s=function(){r.onDownplay()},l=function(){r.onHighlight()};n.isAnimationEnabled()&&t.on("mouseover",a).on("mouseout",o).on("emphasis",a).on("normal",o).on("downplay",s).on("highlight",l)},i.inherits(l,r.Group);var u=l;function h(t,e,n){var i=t.getVisual("color"),r=t.getVisual("visualMeta");r&&0!==r.length||(i=null);var a=t.getModel("itemStyle").get("color");if(a)return a;if(i)return i;if(0===t.depth)return n.option.color[0];var o=n.option.color.length;return a=n.option.color[d(t)%o],a}function d(t){var e=t;while(e.depth>1)e=e.parentNode;var n=t.getAncestors()[0];return i.indexOf(n.children,e)}function f(t,e,n){return n!==a.NONE&&(n===a.SELF?t===e:n===a.ANCESTOR?t===e||t.isAncestorOf(e):t===e||t.isDescendantOf(e))}function p(t,e,n){var i=e.getData();i.setItemVisual(t.dataIndex,"color",n)}t.exports=u},"4e9f":function(t,e,n){var i=n("22d1"),r=n("29a8"),a=n("2145"),o=r.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:o.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:o.lang.slice()},s.prototype.unusable=!i.canvasSupported;var l=s.prototype;l.onclick=function(t,e){var n=this.model,r=n.get("name")||t.get("title.0.text")||"echarts",a="svg"===e.getZr().painter.getType(),o=a?"svg":n.get("type",!0)||"png",s=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if("function"!==typeof MouseEvent||i.browser.ie||i.browser.edge)if(window.navigator.msSaveOrOpenBlob){var l=atob(s.split(",")[1]),c=l.length,u=new Uint8Array(c);while(c--)u[c]=l.charCodeAt(c);var h=new Blob([u]);window.navigator.msSaveOrOpenBlob(h,r+"."+o)}else{var d=n.get("lang"),f='<body style="margin:0;"><img src="'+s+'" style="max-width:100%;" title="'+(d&&d[0]||"")+'" /></body>',p=window.open();p.document.write(f)}else{var g=document.createElement("a");g.download=r+"."+o,g.target="_blank",g.href=s;var m=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});g.dispatchEvent(m)}},a.register("saveAsImage",s);var c=s;t.exports=c},"4f85":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),a=n("22d1"),o=n("eda2"),s=o.formatTime,l=o.encodeHTML,c=o.addCommas,u=o.getTooltipMarker,h=n("e0d3"),d=n("6cb7"),f=n("e47b"),p=n("38a2"),g=n("f934"),m=g.getLayoutParams,v=g.mergeLayoutParam,y=n("f47d"),x=y.createTask,b=n("0f99"),_=b.prepareSource,w=b.getSource,S=n("2b17"),A=S.retrieveRawValue,C=h.makeInner(),I=d.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(t,e,n,i){this.seriesIndex=this.componentIndex,this.dataTask=x({count:M,reset:D}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),_(this);var r=this.getInitialData(t,n);L(r,this),this.dataTask.context.data=r,C(this).dataBeforeProcessed=r,T(this)},mergeDefaultAndTheme:function(t,e){var n=this.layoutMode,i=n?m(t):{},a=this.subType;d.hasClass(a)&&(a+="Series"),r.merge(t,e.getTheme().get(this.subType)),r.merge(t,this.getDefaultOption()),h.defaultEmphasis(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&v(t,i,n)},mergeOption:function(t,e){t=r.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var n=this.layoutMode;n&&v(this.option,t,n),_(this);var i=this.getInitialData(t,e);L(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,C(this).dataBeforeProcessed=i,T(this)},fillDataTextStyle:function(t){if(t&&!r.isTypedArray(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&h.defaultEmphasis(t[n],"label",e)},getInitialData:function(){},appendData:function(t){var e=this.getRawData();e.appendData(t.data)},getData:function(t){var e=O(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return C(this).data},setData:function(t){var e=O(this);if(e){var n=e.context;n.data!==t&&e.modifyOutputEnd&&e.setOutputEnd(t.count()),n.outputData=t,e!==this.dataTask&&(n.data=t)}C(this).data=t},getSource:function(){return w(this)},getRawData:function(){return C(this).dataBeforeProcessed},getBaseAxis:function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},formatTooltip:function(t,e,n,i){var a=this;i=i||"html";var o="html"===i?"<br/>":"\n",d="richText"===i,f={},p=0;function g(n){var o=r.reduce(n,(function(t,e,n){var i=v.getDimensionInfo(n);return t|(i&&!1!==i.tooltip&&null!=i.displayName)}),0),h=[];function g(t,n){var r=v.getDimensionInfo(n);if(r&&!1!==r.otherDims.tooltip){var g=r.type,m="sub"+a.seriesIndex+"at"+p,y=u({color:w,type:"subItem",renderMode:i,markerId:m}),x="string"===typeof y?y:y.content,b=(o?x+l(r.displayName||"-")+": ":"")+l("ordinal"===g?t+"":"time"===g?e?"":s("yyyy/MM/dd hh:mm:ss",t):c(t));b&&h.push(b),d&&(f[m]=w,++p)}}y.length?r.each(y,(function(e){g(A(v,t,e),e)})):r.each(n,g);var m=o?d?"\n":"<br/>":"",x=m+h.join(m||", ");return{renderMode:i,content:x,style:f}}function m(t){return{renderMode:i,content:l(c(t)),style:f}}var v=this.getData(),y=v.mapDimension("defaultedTooltip",!0),x=y.length,b=this.getRawValue(t),_=r.isArray(b),w=v.getItemVisual(t,"color");r.isObject(w)&&w.colorStops&&(w=(w.colorStops[0]||{}).color),w=w||"transparent";var S=x>1||_&&!x?g(b):m(x?A(v,t,y[0]):_?b[0]:b),C=S.content,I=a.seriesIndex+"at"+p,T=u({color:w,type:"item",renderMode:i,markerId:I});f[I]=w,++p;var k=v.getName(t),M=this.name;h.isNameSpecified(this)||(M=""),M=M?l(M)+(e?": ":o):"";var D="string"===typeof T?T:T.content,E=e?D+M+C:M+D+(k?l(k)+": "+C:C);return{html:E,markers:f}},isAnimationEnabled:function(){if(a.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,n){var i=this.ecModel,r=f.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function T(t){var e=t.name;h.isNameSpecified(t)||(t.name=k(t)||e)}function k(t){var e=t.getRawData(),n=e.mapDimension("seriesName",!0),i=[];return r.each(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}function M(t){return t.model.getRawData().count()}function D(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),E}function E(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function L(t,e){r.each(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,r.curry(P,e))}))}function P(t){var e=O(t);e&&e.setOutputEnd(this.count())}function O(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}r.mixin(I,p),r.mixin(I,f);var R=I;t.exports=R},"4fac":function(t,e,n){var i=n("620b"),r=n("9c2c");function a(t,e,n){var a=e.points,o=e.smooth;if(a&&a.length>=2){if(o&&"spline"!==o){var s=r(a,o,n,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var l=a.length,c=0;c<(n?l:l-1);c++){var u=s[2*c],h=s[2*c+1],d=a[(c+1)%l];t.bezierCurveTo(u[0],u[1],h[0],h[1],d[0],d[1])}}else{"spline"===o&&(a=i(a,n)),t.moveTo(a[0][0],a[0][1]);c=1;for(var f=a.length;c<f;c++)t.lineTo(a[c][0],a[c][1])}n&&t.closePath()}}e.buildPath=a},5058:function(t,e,n){"use strict";t.exports=function(t){var e=t.idGenerator,n=t.stateHandler.getState;function i(t){var e=n(t);return e&&void 0!==e.id?e.id:null}function r(t){var i=n(t);if(!i)throw new Error("setId required the element to have a resize detection state.");var r=e.generate();return i.id=r,r}return{get:i,set:r}}},"50bf":function(t,e,n){"use strict";var i=t.exports={};function r(t,e,n){var i=t[e];return void 0!==i&&null!==i||void 0===n?i:n}i.getOption=r},"50e5":function(t,e,n){var i=n("6d8b"),r=n("eda2"),a=["x","y","z","radius","angle","single"],o=["cartesian2d","polar","singleAxis"];function s(t){return i.indexOf(o,t)>=0}function l(t,e){t=t.slice();var n=i.map(t,r.capitalFirst);e=(e||[]).slice();var a=i.map(e,r.capitalFirst);return function(r,o){i.each(t,(function(t,i){for(var s={name:t,capital:n[i]},l=0;l<e.length;l++)s[e[l]]=t+a[l];r.call(o,s)}))}}var c=l(a,["axisIndex","axis","index","id"]);function u(t,e,n){return function(n){var i,s={nodes:[],records:{}};if(e((function(t){s.records[t.name]={}})),!n)return s;o(n,s);do{i=!1,t(l)}while(i);function l(t){!r(t,s)&&a(t,s)&&(o(t,s),i=!0)}return s};function r(t,e){return i.indexOf(e.nodes,t)>=0}function a(t,r){var a=!1;return e((function(e){i.each(n(t,e)||[],(function(t){r.records[e.name][t]&&(a=!0)}))})),a}function o(t,r){r.nodes.push(t),e((function(e){i.each(n(t,e)||[],(function(t){r.records[e.name][t]=!0}))}))}}e.isCoordSupported=s,e.createNameEach=l,e.eachAxisDim=c,e.createLinkedNodesFinder=u},"527a":function(t,e,n){var i=n("6d8b"),r=n("3842");function a(t,e){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),n=t.coordinateSystem,i={},a=n.getRect();i.rect=a;var s=t.get("boundaryGap"),l=n.getAxis();if(i.boundaryGap=s,"horizontal"===l.orient){s[0]=r.parsePercent(s[0],a.height),s[1]=r.parsePercent(s[1],a.height);var c=a.height-s[0]-s[1];o(e,t,c)}else{s[0]=r.parsePercent(s[0],a.width),s[1]=r.parsePercent(s[1],a.width);var u=a.width-s[0]-s[1];o(e,t,u)}e.setLayout("layoutInfo",i)}))}function o(t,e,n){if(t.count())for(var r,a=e.coordinateSystem,o=e.getLayerSeries(),l=t.mapDimension("single"),c=t.mapDimension("value"),u=i.map(o,(function(e){return i.map(e.indices,(function(e){var n=a.dataToPoint(t.get(l,e));return n[1]=t.get(c,e),n}))})),h=s(u),d=h.y0,f=n/h.max,p=o.length,g=o[0].indices.length,m=0;m<g;++m){r=d[m]*f,t.setItemLayout(o[0].indices[m],{layerIndex:0,x:u[0][m][0],y0:r,y:u[0][m][1]*f});for(var v=1;v<p;++v)r+=u[v-1][m][1]*f,t.setItemLayout(o[v].indices[m],{layerIndex:v,x:u[v][m][0],y0:r,y:u[v][m][1]*f})}}function s(t){for(var e=t.length,n=t[0].length,i=[],r=[],a=0,o={},s=0;s<n;++s){for(var l=0,c=0;l<e;++l)c+=t[l][s][1];c>a&&(a=c),i.push(c)}for(var u=0;u<n;++u)r[u]=(a-i[u])/2;a=0;for(var h=0;h<n;++h){var d=i[h]+r[h];d>a&&(a=d)}return o.y0=r,o.max=a,o}t.exports=a},"53f3":function(t,e){function n(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,i=e.scale,r=i&&i[0]||1,a=e.getZoom(),o=(a-1)*n+1;return o/r}function i(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}e.getNodeGlobalScale=n,e.getSymbolSize=i},5450:function(t,e,n){n("7419"),n("29a9")},"54fb":function(t,e){function n(t){t.eachSeriesByType("map",(function(t){var e=t.get("color"),n=t.getModel("itemStyle"),i=n.get("areaColor"),r=n.get("color")||e[t.seriesIndex%e.length];t.getData().setVisual({areaColor:i,color:r})}))}t.exports=n},"551f":function(t,e,n){var i=n("282b"),r=i([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),a={getItemStyle:function(t,e){var n=r(this,t,e),i=this.getBorderLineDash();return i&&(n.lineDash=i),n},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}};t.exports=a},5522:function(t,e,n){n("23e0"),n("1748"),n("6c12")},5576:function(t,e,n){var i=n("6d8b"),r=n("4a01"),a=n("88b3"),o="\0_ec_dataZoom_roams";function s(t,e){var n=u(t),r=e.dataZoomId,o=e.coordId;i.each(n,(function(t,n){var a=t.dataZoomInfos;a[r]&&i.indexOf(e.allCoordIds,o)<0&&(delete a[r],t.count--)})),d(n);var s=n[o];s||(s=n[o]={coordId:o,dataZoomInfos:{},count:0},s.controller=h(t,s),s.dispatchAction=i.curry(f,t)),!s.dataZoomInfos[r]&&s.count++,s.dataZoomInfos[r]=e;var l=p(s.dataZoomInfos);s.controller.enable(l.controlType,l.opt),s.controller.setPointerChecker(e.containsPoint),a.createOrUpdate(s,"dispatchAction",e.dataZoomModel.get("throttle",!0),"fixRate")}function l(t,e){var n=u(t);i.each(n,(function(t){t.controller.dispose();var n=t.dataZoomInfos;n[e]&&(delete n[e],t.count--)})),d(n)}function c(t){return t.type+"\0_"+t.id}function u(t){var e=t.getZr();return e[o]||(e[o]={})}function h(t,e){var n=new r(t.getZr());return i.each(["pan","zoom","scrollMove"],(function(t){n.on(t,(function(n){var r=[];i.each(e.dataZoomInfos,(function(i){if(n.isAvailableBehavior(i.dataZoomModel.option)){var a=(i.getRange||{})[t],o=a&&a(e.controller,n);!i.dataZoomModel.get("disabled",!0)&&o&&r.push({dataZoomId:i.dataZoomId,start:o[0],end:o[1]})}})),r.length&&e.dispatchAction(r)}))})),n}function d(t){i.each(t,(function(e,n){e.count||(e.controller.dispose(),delete t[n])}))}function f(t,e){t.dispatchAction({type:"dataZoom",batch:e})}function p(t){var e,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return i.each(t,(function(t){var i=t.dataZoomModel,o=!i.get("disabled",!0)&&(!i.get("zoomLock",!0)||"move");r[n+o]>r[n+e]&&(e=o),a&=i.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}e.register=s,e.unregister=l,e.generateCoordId=c},"55ac":function(t,e,n){var i=n("6d8b");function r(t,e,n){if(t&&i.indexOf(e,t.type)>=0){var r=n.getData().tree.root,a=t.targetNode;if("string"===typeof a&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var o=t.targetNodeId;if(null!=o&&(a=r.getNodeById(o)))return{node:a}}}function a(t){var e=[];while(t)t=t.parentNode,t&&e.push(t);return e.reverse()}function o(t,e){var n=a(t);return i.indexOf(n,e)>=0}function s(t,e){var n=[];while(t){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}e.retrieveTargetInfo=r,e.getPathToRoot=a,e.aboveViewRoot=o,e.wrapTreePathInfo=s},"562e":function(t,e,n){var i=n("6d8b");function r(t){null!=t&&i.extend(this,t),this.otherDims={}}var a=r;t.exports=a},5693:function(t,e){function n(t,e){var n,i,r,a,o,s=e.x,l=e.y,c=e.width,u=e.height,h=e.r;c<0&&(s+=c,c=-c),u<0&&(l+=u,u=-u),"number"===typeof h?n=i=r=a=h:h instanceof Array?1===h.length?n=i=r=a=h[0]:2===h.length?(n=r=h[0],i=a=h[1]):3===h.length?(n=h[0],i=a=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],a=h[3]):n=i=r=a=0,n+i>c&&(o=n+i,n*=c/o,i*=c/o),r+a>c&&(o=r+a,r*=c/o,a*=c/o),i+r>u&&(o=i+r,i*=u/o,r*=u/o),n+a>u&&(o=n+a,n*=u/o,a*=u/o),t.moveTo(s+n,l),t.lineTo(s+c-i,l),0!==i&&t.arc(s+c-i,l+i,i,-Math.PI/2,0),t.lineTo(s+c,l+u-r),0!==r&&t.arc(s+c-r,l+u-r,r,0,Math.PI/2),t.lineTo(s+a,l+u),0!==a&&t.arc(s+a,l+u-a,a,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}e.buildPath=n},5866:function(t,e,n){var i=n("ef2b"),r=i.forceLayout,a=n("1c5f"),o=a.simpleLayout,s=n("94e4"),l=s.circularLayout,c=n("3842"),u=c.linearMap,h=n("401b"),d=n("6d8b");function f(t){t.eachSeriesByType("graph",(function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var n=t.preservedPoints||{},i=t.getGraph(),a=i.data,s=i.edgeData,c=t.getModel("force"),f=c.get("initLayout");t.preservedPoints?a.each((function(t){var e=a.getId(t);a.setItemLayout(t,n[e]||[NaN,NaN])})):f&&"none"!==f?"circular"===f&&l(t,"value"):o(t);var p=a.getDataExtent("value"),g=s.getDataExtent("value"),m=c.get("repulsion"),v=c.get("edgeLength");d.isArray(m)||(m=[m,m]),d.isArray(v)||(v=[v,v]),v=[v[1],v[0]];var y=a.mapArray("value",(function(t,e){var n=a.getItemLayout(e),i=u(t,p,m);return isNaN(i)&&(i=(m[0]+m[1])/2),{w:i,rep:i,fixed:a.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),x=s.mapArray("value",(function(t,e){var n=i.getEdgeByIndex(e),r=u(t,g,v);isNaN(r)&&(r=(v[0]+v[1])/2);var a=n.getModel();return{n1:y[n.node1.dataIndex],n2:y[n.node2.dataIndex],d:r,curveness:a.get("lineStyle.curveness")||0,ignoreForceLayout:a.get("ignoreForceLayout")}})),b=(e=t.coordinateSystem,e.getBoundingRect()),_=r(y,x,{rect:b,gravity:c.get("gravity"),friction:c.get("friction")}),w=_.step;_.step=function(t){for(var e=0,r=y.length;e<r;e++)y[e].fixed&&h.copy(y[e].p,i.getNodeByIndex(e).getLayout());w((function(e,r,o){for(var s=0,l=e.length;s<l;s++)e[s].fixed||i.getNodeByIndex(s).setLayout(e[s].p),n[a.getId(s)]=e[s].p;for(s=0,l=r.length;s<l;s++){var c=r[s],u=i.getEdgeByIndex(s),d=c.n1.p,f=c.n2.p,p=u.getLayout();p=p?p.slice():[],p[0]=p[0]||[],p[1]=p[1]||[],h.copy(p[0],d),h.copy(p[1],f),+c.curveness&&(p[2]=[(d[0]+f[0])/2-(d[1]-f[1])*c.curveness,(d[1]+f[1])/2-(f[0]-d[0])*c.curveness]),u.setLayout(p)}t&&t(o)}))},t.forceLayout=_,t.preservedPoints=n,_.step()}else t.forceLayout=null}))}t.exports=f},5899:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,n){var i=n("1d80"),r=n("5899"),a="["+r+"]",o=RegExp("^"+a+a+"*"),s=RegExp(a+a+"*$"),l=function(t){return function(e){var n=String(i(e));return 1&t&&(n=n.replace(o,"")),2&t&&(n=n.replace(s,"")),n}};t.exports={start:l(1),end:l(2),trim:l(3)}},"58df":function(t,e,n){var i=n("6d8b"),r=n("2306");function a(t,e,n,a){var o=n.axis;if(!o.scale.isBlank()){var s=n.getModel("splitArea"),l=s.getModel("areaStyle"),c=l.get("color"),u=a.coordinateSystem.getRect(),h=o.getTicksCoords({tickModel:s,clamp:!0});if(h.length){var d=c.length,f=t.__splitAreaColors,p=i.createHashMap(),g=0;if(f)for(var m=0;m<h.length;m++){var v=f.get(h[m].tickValue);if(null!=v){g=(v+(d-1)*m)%d;break}}var y=o.toGlobalCoord(h[0].coord),x=l.getAreaStyle();c=i.isArray(c)?c:[c];for(m=1;m<h.length;m++){var b,_,w,S,A=o.toGlobalCoord(h[m].coord);o.isHorizontal()?(b=y,_=u.y,w=A-b,S=u.height,y=b+w):(b=u.x,_=y,w=u.width,S=A-_,y=_+S);var C=h[m-1].tickValue;null!=C&&p.set(C,g),e.add(new r.Rect({anid:null!=C?"area_"+C:null,shape:{x:b,y:_,width:w,height:S},style:i.defaults({fill:c[g]},x),silent:!0})),g=(g+1)%d}t.__splitAreaColors=p}}}function o(t){t.__splitAreaColors=null}e.rectCoordAxisBuildSplitArea=a,e.rectCoordAxisHandleRemove=o},"5aa9":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),a=r.isObject,o=r.each,s=r.map,l=r.indexOf,c=(r.retrieve,n("f934")),u=c.getLayoutRect,h=n("697e"),d=h.createScaleByModel,f=h.ifAxisCrossZero,p=h.niceScaleExtent,g=h.estimateLabelUnionRect,m=n("cbe9"),v=n("ec02"),y=n("2039"),x=n("ee1a"),b=x.getStackedDimension;function _(t,e,n){return t.getCoordSysModel()===e}function w(t,e,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,n),this.model=t}n("8ed2");var S=w.prototype;function A(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,a=t[e],o=n.model,s=o.get("axisLine.onZero"),l=o.get("axisLine.onZeroAxisIndex");if(s){if(null!=l)C(a[l])&&(r=a[l]);else for(var c in a)if(a.hasOwnProperty(c)&&C(a[c])&&!i[u(a[c])]){r=a[c];break}r&&(i[u(r)]=!0)}function u(t){return t.dim+"_"+t.index}}function C(t){return t&&"category"!==t.type&&"time"!==t.type&&f(t)}function I(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}S.type="grid",S.axisPointerEnabled=!0,S.getRect=function(){return this._rect},S.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model),o(n.x,(function(t){p(t.scale,t.model)})),o(n.y,(function(t){p(t.scale,t.model)}));var i={};o(n.x,(function(t){A(n,"y",t,i)})),o(n.y,(function(t){A(n,"x",t,i)})),this.resize(this.model,e)},S.resize=function(t,e,n){var i=u(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=i;var r=this._axesList;function a(){o(r,(function(t){var e=t.isHorizontal(),n=e?[0,i.width]:[0,i.height],r=t.inverse?1:0;t.setExtent(n[r],n[1-r]),I(t,e?i.x:i.y)}))}a(),!n&&t.get("containLabel")&&(o(r,(function(t){if(!t.model.get("axisLabel.inside")){var e=g(t);if(e){var n=t.isHorizontal()?"height":"width",r=t.model.get("axisLabel.margin");i[n]-=e[n]+r,"top"===t.position?i.y+=e.height+r:"left"===t.position&&(i.x+=e.width+r)}}})),a())},S.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n){if(null==e)for(var i in n)if(n.hasOwnProperty(i))return n[i];return n[e]}},S.getAxes=function(){return this._axesList.slice()},S.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}a(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},S.getCartesians=function(){return this._coordsList.slice()},S.convertToPixel=function(t,e,n){var i=this._findConvertTarget(t,e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},S.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(t,e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},S._findConvertTarget=function(t,e){var n,i,r=e.seriesModel,a=e.xAxisModel||r&&r.getReferringComponents("xAxis")[0],o=e.yAxisModel||r&&r.getReferringComponents("yAxis")[0],s=e.gridModel,c=this._coordsList;if(r)n=r.coordinateSystem,l(c,n)<0&&(n=null);else if(a&&o)n=this.getCartesian(a.componentIndex,o.componentIndex);else if(a)i=this.getAxis("x",a.componentIndex);else if(o)i=this.getAxis("y",o.componentIndex);else if(s){var u=s.coordinateSystem;u===this&&(n=this._coordsList[0])}return{cartesian:n,axis:i}},S.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},S._initCartesian=function(t,e,n){var i={left:!1,right:!1,top:!1,bottom:!1},r={x:{},y:{}},a={x:0,y:0};if(e.eachComponent("xAxis",s("x"),this),e.eachComponent("yAxis",s("y"),this),!a.x||!a.y)return this._axesMap={},void(this._axesList=[]);function s(n){return function(o,s){if(_(o,t,e)){var l=o.get("position");"x"===n?"top"!==l&&"bottom"!==l&&(l=i.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=i.left?"right":"left"),i[l]=!0;var c=new v(n,d(o),[0,0],o.get("type"),l),u="category"===c.type;c.onBand=u&&o.get("boundaryGap"),c.inverse=o.get("inverse"),o.axis=c,c.model=o,c.grid=this,c.index=s,this._axesList.push(c),r[n][s]=c,a[n]++}}}this._axesMap=r,o(r.x,(function(e,n){o(r.y,(function(i,r){var a="x"+n+"y"+r,o=new m(a);o.grid=this,o.model=t,this._coordsMap[a]=o,this._coordsList.push(o),o.addAxis(e),o.addAxis(i)}),this)}),this)},S._updateScale=function(t,e){function n(t,e,n){o(t.mapDimension(e.dim,!0),(function(n){e.scale.unionExtentFromData(t,b(t,n))}))}o(this._axesList,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeries((function(i){if(M(i)){var r=k(i,t),a=r[0],o=r[1];if(!_(a,e,t)||!_(o,e,t))return;var s=this.getCartesian(a.componentIndex,o.componentIndex),l=i.getData(),c=s.getAxis("x"),u=s.getAxis("y");"list"===l.type&&(n(l,c,i),n(l,u,i))}}),this)},S.getTooltipAxes=function(t){var e=[],n=[];return o(this.getCartesians(),(function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),a=i.getOtherAxis(r);l(e,r)<0&&e.push(r),l(n,a)<0&&n.push(a)})),{baseAxes:e,otherAxes:n}};var T=["xAxis","yAxis"];function k(t,e){return s(T,(function(e){var n=t.getReferringComponents(e)[0];return n}))}function M(t){return"cartesian2d"===t.get("coordinateSystem")}w.create=function(t,e){var n=[];return t.eachComponent("grid",(function(i,r){var a=new w(i,t,e);a.name="grid_"+r,a.resize(i,e,!0),i.coordinateSystem=a,n.push(a)})),t.eachSeries((function(e){if(M(e)){var n=k(e,t),i=n[0],r=n[1],a=i.getCoordSysModel(),o=a.coordinateSystem;e.coordinateSystem=o.getCartesian(i.componentIndex,r.componentIndex)}})),n},w.dimensions=w.prototype.dimensions=m.prototype.dimensions,y.register("cartesian2d",w);var D=w;t.exports=D},"5b69":function(t,e,n){var i=n("2306"),r=n("3eba"),a=n("6d8b"),o=["itemStyle","opacity"],s=["emphasis","itemStyle","opacity"],l=["lineStyle","opacity"],c=["emphasis","lineStyle","opacity"];function u(t,e){return t.getVisual("opacity")||t.getModel().get(e)}function h(t,e,n){var i=t.getGraphicEl(),r=u(t,e);null!=n&&(null==r&&(r=1),r*=n),i.downplay&&i.downplay(),i.traverse((function(t){"group"!==t.type&&t.setStyle("opacity",r)}))}function d(t,e){var n=u(t,e),i=t.getGraphicEl();i.traverse((function(t){"group"!==t.type&&t.setStyle("opacity",n)})),i.highlight&&i.highlight()}var f=i.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),p=r.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(t,e,n){var r=this,a=t.getGraph(),o=this.group,s=t.layoutInfo,l=s.width,c=s.height,u=t.getData(),h=t.getData("edge"),d=t.get("orient");this._model=t,o.removeAll(),o.attr("position",[s.x,s.y]),a.eachEdge((function(e){var n=new f;n.dataIndex=e.dataIndex,n.seriesIndex=t.seriesIndex,n.dataType="edge";var r,a,s,u,p,g,m,v,y=e.getModel("lineStyle"),x=y.get("curveness"),b=e.node1.getLayout(),_=e.node1.getModel(),w=_.get("localX"),S=_.get("localY"),A=e.node2.getLayout(),C=e.node2.getModel(),I=C.get("localX"),T=C.get("localY"),k=e.getLayout();switch(n.shape.extent=Math.max(1,k.dy),n.shape.orient=d,"vertical"===d?(r=(null!=w?w*l:b.x)+k.sy,a=(null!=S?S*c:b.y)+b.dy,s=(null!=I?I*l:A.x)+k.ty,u=null!=T?T*c:A.y,p=r,g=a*(1-x)+u*x,m=s,v=a*x+u*(1-x)):(r=(null!=w?w*l:b.x)+b.dx,a=(null!=S?S*c:b.y)+k.sy,s=null!=I?I*l:A.x,u=(null!=T?T*c:A.y)+k.ty,p=r*(1-x)+s*x,g=a,m=r*x+s*(1-x),v=u),n.setShape({x1:r,y1:a,x2:s,y2:u,cpx1:p,cpy1:g,cpx2:m,cpy2:v}),n.setStyle(y.getItemStyle()),n.style.fill){case"source":n.style.fill=e.node1.getVisual("color");break;case"target":n.style.fill=e.node2.getVisual("color");break}i.setHoverStyle(n,e.getModel("emphasis.lineStyle").getItemStyle()),o.add(n),h.setItemGraphicEl(e.dataIndex,n)})),a.eachNode((function(e){var n=e.getLayout(),r=e.getModel(),a=r.get("localX"),s=r.get("localY"),h=r.getModel("label"),d=r.getModel("emphasis.label"),f=new i.Rect({shape:{x:null!=a?a*l:n.x,y:null!=s?s*c:n.y,width:n.dx,height:n.dy},style:r.getModel("itemStyle").getItemStyle()}),p=e.getModel("emphasis.itemStyle").getItemStyle();i.setLabelStyle(f.style,p,h,d,{labelFetcher:t,labelDataIndex:e.dataIndex,defaultText:e.id,isRectText:!0}),f.setStyle("fill",e.getVisual("color")),i.setHoverStyle(f,p),o.add(f),u.setItemGraphicEl(e.dataIndex,f),f.dataType="node"})),u.eachItemGraphicEl((function(e,i){var a=u.getItemModel(i);a.get("draggable")&&(e.drift=function(e,a){r._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=a,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:u.getRawIndex(i),localX:this.shape.x/l,localY:this.shape.y/c})},e.ondragend=function(){r._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move"),e.highlight=function(){this.trigger("emphasis")},e.downplay=function(){this.trigger("normal")},e.focusNodeAdjHandler&&e.off("mouseover",e.focusNodeAdjHandler),e.unfocusNodeAdjHandler&&e.off("mouseout",e.unfocusNodeAdjHandler),a.get("focusNodeAdjacency")&&(e.on("mouseover",e.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex}))}),e.on("mouseout",e.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(n)}))})),h.eachItemGraphicEl((function(e,i){var a=h.getItemModel(i);e.focusNodeAdjHandler&&e.off("mouseover",e.focusNodeAdjHandler),e.unfocusNodeAdjHandler&&e.off("mouseout",e.unfocusNodeAdjHandler),a.get("focusNodeAdjacency")&&(e.on("mouseover",e.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,edgeDataIndex:e.dataIndex}))}),e.on("mouseout",e.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(n)}))})),!this._data&&t.get("animation")&&o.setClipPath(g(o.getBoundingRect(),t,(function(){o.removeClipPath()}))),this._data=t.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(t){var e=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){e._unfocusDelayTimer=null,t.dispatchAction({type:"unfocusNodeAdjacency",seriesId:e._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(t,e,n,i){var r=t.getData(),u=r.graph,f=i.dataIndex,p=r.getItemModel(f),g=i.edgeDataIndex;if(null!=f||null!=g){var m=u.getNodeByIndex(f),v=u.getEdgeByIndex(g);if(u.eachNode((function(t){h(t,o,.1)})),u.eachEdge((function(t){h(t,l,.1)})),m){d(m,s);var y=p.get("focusNodeAdjacency");"outEdges"===y?a.each(m.outEdges,(function(t){t.dataIndex<0||(d(t,c),d(t.node2,s))})):"inEdges"===y?a.each(m.inEdges,(function(t){t.dataIndex<0||(d(t,c),d(t.node1,s))})):"allEdges"===y&&a.each(m.edges,(function(t){t.dataIndex<0||(d(t,c),t.node1!==m&&d(t.node1,s),t.node2!==m&&d(t.node2,s))}))}v&&(d(v,c),d(v.node1,s),d(v.node2,s))}},unfocusNodeAdjacency:function(t,e,n,i){var r=t.getGraph();r.eachNode((function(t){h(t,o)})),r.eachEdge((function(t){h(t,l)}))}});function g(t,e,n){var r=new i.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return i.initProps(r,{shape:{width:t.width+20}},e,n),r}t.exports=p},"5b87":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),a=r.each,o=r.createHashMap,s=n("ec34"),l=n("4c86"),c=n("c92f"),u=n("9850"),h={geoJSON:l,svg:c},d={load:function(t,e,n){var i,r=[],s=o(),l=o(),c=p(t);return a(c,(function(o){var c=h[o.type].load(t,o,n);a(c.regions,(function(t){var n=t.name;e&&e.hasOwnProperty(n)&&(t=t.cloneShallow(n=e[n])),r.push(t),s.set(n,t),l.set(n,t.center)}));var u=c.boundingRect;u&&(i?i.union(u):i=u.clone())})),{regions:r,regionsMap:s,nameCoordMap:l,boundingRect:i||new u(0,0,0,0)}},makeGraphic:f("makeGraphic"),removeGraphic:f("removeGraphic")};function f(t){return function(e,n){var i=p(e),r=[];return a(i,(function(i){var a=h[i.type][t];a&&r.push(a(e,i,n))})),r}}function p(t){var e=s.retrieveMap(t)||[];return e}t.exports=d},"5be5":function(t,e,n){"use strict";t.exports=function(t){var e=t.stateHandler.getState;function n(t){var n=e(t);return n&&!!n.isDetectable}function i(t){e(t).isDetectable=!0}function r(t){return!!e(t).busy}function a(t,n){e(t).busy=!!n}return{isDetectable:n,markAsDetectable:i,isBusy:r,markBusy:a}}},"5ce2":function(t,e,n){n("3970"),n("480e")},"5e68":function(t,e,n){var i=n("6d8b"),r=n("2cf4c"),a=r.devicePixelRatio,o=n("2b61"),s=n("dc2f");function l(){return!1}function c(t,e,n){var r=i.createCanvas(),a=e.getWidth(),o=e.getHeight(),s=r.style;return s&&(s.position="absolute",s.left=0,s.top=0,s.width=a+"px",s.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=a*n,r.height=o*n,r}var u=function(t,e,n){var r;n=n||a,"string"===typeof t?r=c(t,e,n):i.isObject(t)&&(r=t,t=r.id),this.id=t,this.dom=r;var o=r.style;o&&(r.onselectstart=l,o["-webkit-user-select"]="none",o["user-select"]="none",o["-webkit-touch-callout"]="none",o["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",o["padding"]=0,o["margin"]=0,o["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=e,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=n};u.prototype={constructor:u,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var t=this.dpr;this.domBack=c("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},resize:function(t,e){var n=this.dpr,i=this.dom,r=i.style,a=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,a&&(a.width=t*n,a.height=e*n,1!==n&&this.ctxBack.scale(n,n))},clear:function(t,e){var n,i=this.dom,r=this.ctx,a=i.width,l=i.height,c=(e=e||this.clearColor,this.motionBlur&&!t),u=this.lastFrameAlpha,h=this.dpr;(c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,a/h,l/h)),r.clearRect(0,0,a,l),e&&"transparent"!==e)&&(e.colorStops?(n=e.__canvasGradient||o.getGradient(r,e,{x:0,y:0,width:a,height:l}),e.__canvasGradient=n):e.image&&(n=s.prototype.getCanvasPattern.call(e,r)),r.save(),r.fillStyle=n||e,r.fillRect(0,0,a,l),r.restore());if(c){var d=this.domBack;r.save(),r.globalAlpha=u,r.drawImage(d,0,0,a,l),r.restore()}}};var h=u;t.exports=h},"5e76":function(t,e,n){var i=n("d51b"),r=new i(50);function a(t){if("string"===typeof t){var e=r.get(t);return e&&e.image}return t}function o(t,e,n,i,a){if(t){if("string"===typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=r.get(t),c={hostEl:n,cb:i,cbPayload:a};return o?(e=o.image,!l(e)&&o.pending.push(c)):(e=new Image,e.onload=e.onerror=s,r.put(t,e.__cachedImgObj={image:e,pending:[c]}),e.src=e.__zrImageSrc=t),e}return t}return e}function s(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function l(t){return t&&t.width&&t.height}e.findExistImage=a,e.createOrUpdateImage=o,e.isImageReady=l},"5e97":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("3eba")),a=n("6d8b"),o=n("a15a"),s=o.createSymbol,l=n("2306"),c=n("7919"),u=c.makeBackground,h=n("f934"),d=a.curry,f=a.each,p=l.Group,g=r.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new p),this._backgroundEl,this.group.add(this._selectorGroup=new p),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var s=t.get("selector",!0),l=t.get("selectorPosition",!0);!s||l&&"auto"!==l||(l="horizontal"===o?"end":"start"),this.renderInner(r,t,e,n,s,o,l);var c=t.getBoxLayoutParams(),d={width:n.getWidth(),height:n.getHeight()},f=t.get("padding"),p=h.getLayoutRect(c,d,f),g=this.layoutInner(t,r,p,i,s,l),m=h.getLayoutRect(a.defaults({width:g.width,height:g.height},c),d,f);this.group.attr("position",[m.x-g.x,m.y-g.y]),this.group.add(this._backgroundEl=u(g,t))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(t,e,n,i,r,o,s){var l=this.getContentGroup(),c=a.createHashMap(),u=e.get("selectedMode"),h=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&h.push(t.id)})),f(e.getData(),(function(r,a){var o=r.get("name");if(this.newlineDisabled||""!==o&&"\n"!==o){var s=n.getSeriesByName(o)[0];if(!c.get(o))if(s){var f=s.getData(),g=f.getVisual("color"),m=f.getVisual("borderColor");"function"===typeof g&&(g=g(s.getDataParams(0))),"function"===typeof m&&(m=m(s.getDataParams(0)));var b=f.getVisual("legendSymbol")||"roundRect",_=f.getVisual("symbol"),w=this._createItem(o,a,r,e,b,_,t,g,m,u);w.on("click",d(v,o,null,i,h)).on("mouseover",d(y,s.name,null,i,h)).on("mouseout",d(x,s.name,null,i,h)),c.set(o,!0)}else n.eachRawSeries((function(n){if(!c.get(o)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(o))return;var l=s.indexOfName(o),f=s.getItemVisual(l,"color"),p=s.getItemVisual(l,"borderColor"),g="roundRect",m=this._createItem(o,a,r,e,g,null,t,f,p,u);m.on("click",d(v,null,o,i,h)).on("mouseover",d(y,null,o,i,h)).on("mouseout",d(x,null,o,i,h)),c.set(o,!0)}}),this)}else l.add(new p({newline:!0}))}),this),r&&this._createSelector(r,e,i,o,s)},_createSelector:function(t,e,n,i,r){var a=this.getSelectorGroup();function o(t){var i=t.type,r=new l.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});a.add(r);var o=e.getModel("selectorLabel"),s=e.getModel("emphasis.selectorLabel");l.setLabelStyle(r.style,r.hoverStyle={},o,s,{defaultText:t.title,isRectText:!1}),l.setHoverStyle(r)}f(t,(function(t){o(t)}))},_createItem:function(t,e,n,i,r,o,c,u,h,d){var f=i.get("itemWidth"),g=i.get("itemHeight"),v=i.get("inactiveColor"),y=i.get("inactiveBorderColor"),x=i.get("symbolKeepAspect"),b=i.getModel("itemStyle"),_=i.isSelected(t),w=new p,S=n.getModel("textStyle"),A=n.get("icon"),C=n.getModel("tooltip"),I=C.parentModel;r=A||r;var T=s(r,0,0,f,g,_?u:v,null==x||x);if(w.add(m(T,r,b,h,y,_)),!A&&o&&(o!==r||"none"===o)){var k=.8*g;"none"===o&&(o="circle");var M=s(o,(f-k)/2,(g-k)/2,k,k,_?u:v,null==x||x);w.add(m(M,o,b,h,y,_))}var D="left"===c?f+5:-5,E=c,L=i.get("formatter"),P=t;"string"===typeof L&&L?P=L.replace("{name}",null!=t?t:""):"function"===typeof L&&(P=L(t)),w.add(new l.Text({style:l.setTextStyle({},S,{text:P,x:D,y:g/2,textFill:_?S.getTextColor():v,textAlign:E,textVerticalAlign:"middle"})}));var O=new l.Rect({shape:w.getBoundingRect(),invisible:!0,tooltip:C.get("show")?a.extend({content:t,formatter:I.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:i.componentIndex,name:t,$vars:["name"]}},C.option):null});return w.add(O),w.eachChild((function(t){t.silent=!0})),O.silent=!d,this.getContentGroup().add(w),l.setHoverStyle(w),w.__legendDataIndex=e,w},layoutInner:function(t,e,n,i,r,a){var o=this.getContentGroup(),s=this.getSelectorGroup();h.box(t.get("orient"),o,t.get("itemGap"),n.width,n.height);var l=o.getBoundingRect(),c=[-l.x,-l.y];if(r){h.box("horizontal",s,t.get("selectorItemGap",!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=t.get("selectorButtonGap",!0),p=t.getOrient().index,g=0===p?"width":"height",m=0===p?"height":"width",v=0===p?"y":"x";"end"===a?d[p]+=l[g]+f:c[p]+=u[g]+f,d[1-p]+=l[m]/2-u[m]/2,s.attr("position",d),o.attr("position",c);var y={x:0,y:0};return y[g]=l[g]+f+u[g],y[m]=Math.max(l[m],u[m]),y[v]=Math.min(0,u[v]+d[1-p]),y}return o.attr("position",c),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function m(t,e,n,i,r,a){var o;return"line"!==e&&e.indexOf("empty")<0?(o=n.getItemStyle(),t.style.stroke=i,a||(o.stroke=r)):o=n.getItemStyle(["borderWidth","borderColor"]),t.setStyle(o)}function v(t,e,n,i){x(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),y(t,e,n,i)}function y(t,e,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function x(t,e,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}t.exports=g},"5f14":function(t,e,n){var i=n("6d8b"),r=n("41ef"),a=n("3842"),o=a.linearMap,s=i.each,l=i.isObject,c=-1,u=function(t){var e=t.mappingMethod,n=t.type,r=this.option=i.clone(t);this.type=n,this.mappingMethod=e,this._normalizeData=S[e];var a=h[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._doMap=a._doMap[e],"piecewise"===e?(p(r),d(r)):"category"===e?r.categories?f(r):p(r,!0):(i.assert("linear"!==e||r.dataExtent),p(r))};u.prototype={constructor:u,mapValueToVisual:function(t){var e=this._normalizeData(t);return this._doMap(e,t)},getNormalizer:function(){return i.bind(this._normalizeData,this)}};var h=u.visualHandlers={color:{applyVisual:v("color"),getColorMapper:function(){var t=this.option;return i.bind("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),y.call(this,t)}:function(e,n,i){var a=!!i;return!n&&(e=this._normalizeData(e)),i=r.fastLerp(e,t.parsedVisual,i),a?i:r.stringify(i,"rgba")},this)},_doMap:{linear:function(t){return r.stringify(r.fastLerp(t,this.option.parsedVisual),"rgba")},category:y,piecewise:function(t,e){var n=_.call(this,e);return null==n&&(n=r.stringify(r.fastLerp(t,this.option.parsedVisual),"rgba")),n},fixed:x}},colorHue:g((function(t,e){return r.modifyHSL(t,e)})),colorSaturation:g((function(t,e){return r.modifyHSL(t,null,e)})),colorLightness:g((function(t,e){return r.modifyHSL(t,null,null,e)})),colorAlpha:g((function(t,e){return r.modifyAlpha(t,e)})),opacity:{applyVisual:v("opacity"),_doMap:b([0,1])},liftZ:{applyVisual:v("liftZ"),_doMap:{linear:x,category:x,piecewise:x,fixed:x}},symbol:{applyVisual:function(t,e,n){var r=this.mapValueToVisual(t);if(i.isString(r))n("symbol",r);else if(l(r))for(var a in r)r.hasOwnProperty(a)&&n(a,r[a])},_doMap:{linear:m,category:y,piecewise:function(t,e){var n=_.call(this,e);return null==n&&(n=m.call(this,t)),n},fixed:x}},symbolSize:{applyVisual:v("symbolSize"),_doMap:b([0,1])}};function d(t){var e=t.pieceList;t.hasSpecialVisual=!1,i.each(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}function f(t){var e=t.categories,n=t.visual,r=t.categoryMap={};if(s(e,(function(t,e){r[t]=e})),!i.isArray(n)){var a=[];i.isObject(n)?s(n,(function(t,e){var n=r[e];a[null!=n?n:c]=t})):a[c]=n,n=w(t,a)}for(var o=e.length-1;o>=0;o--)null==n[o]&&(delete r[e[o]],e.pop())}function p(t,e){var n=t.visual,r=[];i.isObject(n)?s(n,(function(t){r.push(t)})):null!=n&&r.push(n);var a={color:1,symbol:1};e||1!==r.length||a.hasOwnProperty(t.type)||(r[1]=r[0]),w(t,r)}function g(t){return{applyVisual:function(e,n,i){e=this.mapValueToVisual(e),i("color",t(n("color"),e))},_doMap:b([0,1])}}function m(t){var e=this.option.visual;return e[Math.round(o(t,[0,1],[0,e.length-1],!0))]||{}}function v(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function y(t){var e=this.option.visual;return e[this.option.loop&&t!==c?t%e.length:t]}function x(){return this.option.visual[0]}function b(t){return{linear:function(e){return o(e,t,this.option.visual,!0)},category:y,piecewise:function(e,n){var i=_.call(this,n);return null==i&&(i=o(e,t,this.option.visual,!0)),i},fixed:x}}function _(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=u.findPieceIndex(t,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function w(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=i.map(e,(function(t){return r.parse(t)}))),e}var S={linear:function(t){return o(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=u.findPieceIndex(t,e,!0);if(null!=n)return o(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?c:e},fixed:i.noop};function A(t,e,n){return t?e<=n:e<n}u.listVisualTypes=function(){var t=[];return i.each(h,(function(e,n){t.push(n)})),t},u.addVisualHandler=function(t,e){h[t]=e},u.isValidType=function(t){return h.hasOwnProperty(t)},u.eachVisual=function(t,e,n){i.isObject(t)?i.each(t,e,n):e.call(n,t)},u.mapVisual=function(t,e,n){var r,a=i.isArray(t)?[]:i.isObject(t)?{}:(r=!0,null);return u.eachVisual(t,(function(t,i){var o=e.call(n,t,i);r?a=o:a[i]=o})),a},u.retrieveVisuals=function(t){var e,n={};return t&&s(h,(function(i,r){t.hasOwnProperty(r)&&(n[r]=t[r],e=!0)})),e?n:null},u.prepareVisualTypes=function(t){if(l(t)){var e=[];s(t,(function(t,n){e.push(n)})),t=e}else{if(!i.isArray(t))return[];t=t.slice()}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},u.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},u.findPieceIndex=function(t,e,n){for(var i,r=1/0,a=0,o=e.length;a<o;a++){var s=e[a].value;if(null!=s){if(s===t||"string"===typeof s&&s===t+"")return a;n&&h(s,a)}}for(a=0,o=e.length;a<o;a++){var l=e[a],c=l.interval,u=l.close;if(c){if(c[0]===-1/0){if(A(u[1],t,c[1]))return a}else if(c[1]===1/0){if(A(u[0],c[0],t))return a}else if(A(u[0],c[0],t)&&A(u[1],t,c[1]))return a;n&&h(c[0],a),n&&h(c[1],a)}}if(n)return t===1/0?e.length-1:t===-1/0?0:i;function h(e,n){var a=Math.abs(e-t);a<r&&(r=a,i=n)}};var C=u;t.exports=C},"607d":function(t,e,n){var i=n("1fab");e.Dispatcher=i;var r=n("22d1"),a=n("65ed"),o=a.isCanvasEl,s=a.transformCoordWithViewport,l="undefined"!==typeof window&&!!window.addEventListener,c=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,u=[];function h(t,e,n,i){return n=n||{},i||!r.canvasSupported?d(t,e,n):r.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):d(t,e,n),n}function d(t,e,n){if(r.domSupported&&t.getBoundingClientRect){var i=e.clientX,a=e.clientY;if(o(t)){var l=t.getBoundingClientRect();return n.zrX=i-l.left,void(n.zrY=a-l.top)}if(s(u,t,i,a))return n.zrX=u[0],void(n.zrY=u[1])}n.zrX=n.zrY=0}function f(t){return t||window.event}function p(t,e,n){if(e=f(e),null!=e.zrX)return e;var i=e.type,r=i&&i.indexOf("touch")>=0;if(r){var a="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];a&&h(t,a,e,n)}else h(t,e,e,n),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var o=e.button;return null==e.which&&void 0!==o&&c.test(e.type)&&(e.which=1&o?1:2&o?3:4&o?2:0),e}function g(t,e,n,i){l?t.addEventListener(e,n,i):t.attachEvent("on"+e,n)}function m(t,e,n,i){l?t.removeEventListener(e,n,i):t.detachEvent("on"+e,n)}var v=l?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};function y(t){return 2===t.which||3===t.which}function x(t){return t.which>1}e.clientToLocal=h,e.getNativeEvent=f,e.normalizeEvent=p,e.addEventListener=g,e.removeEventListener=m,e.stop=v,e.isMiddleOrRightButtonOnMouseUpDown=y,e.notLeftMouse=x},"60d7":function(t,e,n){var i=n("2306"),r=n("e887"),a=.3,o=r.extend({type:"parallel",init:function(){this._dataGroup=new i.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(t,e,n,r){var a=this._dataGroup,o=t.getData(),d=this._data,f=t.coordinateSystem,p=f.dimensions,g=u(t);function m(t){var e=c(o,a,t,p,f);h(e,o,t,g)}function v(e,n){var a=d.getItemGraphicEl(n),s=l(o,e,p,f);o.setItemGraphicEl(e,a);var c=r&&!1===r.animation?null:t;i.updateProps(a,{shape:{points:s}},c,e),h(a,o,e,g)}function y(t){var e=d.getItemGraphicEl(t);a.remove(e)}if(o.diff(d).add(m).update(v).remove(y).execute(),!this._initialized){this._initialized=!0;var x=s(f,t,(function(){setTimeout((function(){a.removeClipPath()}))}));a.setClipPath(x)}this._data=o},incrementalPrepareRender:function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(t,e,n){for(var i=e.getData(),r=e.coordinateSystem,a=r.dimensions,o=u(e),s=t.start;s<t.end;s++){var l=c(i,this._dataGroup,s,a,r);l.incremental=!0,h(l,i,s,o)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function s(t,e,n){var r=t.model,a=t.getRect(),o=new i.Rect({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),s="horizontal"===r.get("layout")?"width":"height";return o.setShape(s,0),i.initProps(o,{shape:{width:a.width,height:a.height}},e,n),o}function l(t,e,n,i){for(var r=[],a=0;a<n.length;a++){var o=n[a],s=t.get(t.mapDimension(o),e);d(s,i.getAxis(o).type)||r.push(i.dataToPoint(s,o))}return r}function c(t,e,n,r,a){var o=l(t,n,r,a),s=new i.Polyline({shape:{points:o},silent:!0,z2:10});return e.add(s),t.setItemGraphicEl(n,s),s}function u(t){var e=t.get("smooth",!0);return!0===e&&(e=a),{lineStyle:t.getModel("lineStyle").getLineStyle(),smooth:null!=e?e:a}}function h(t,e,n,i){var r=i.lineStyle;if(e.hasItemOption){var a=e.getItemModel(n).getModel("lineStyle");r=a.getLineStyle()}t.useStyle(r);var o=t.style;o.fill=null,o.stroke=e.getItemVisual(n,"color"),o.opacity=e.getItemVisual(n,"opacity"),i.smooth&&(t.shape.smooth=i.smooth)}function d(t,e){return"category"===e?null==t:null==t||isNaN(t)}var f=o;t.exports=f},"60e3":function(t,e,n){var i=n("6d8b"),r={get:function(t,e,n){var r=i.clone((a[t]||{})[e]);return n&&i.isArray(r)?r[r.length-1]:r}},a={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},o=r;t.exports=o},6179:function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),a=n("4319"),o=n("80f0"),s=n("ec6f"),l=n("2b17"),c=l.defaultDimValueGetters,u=l.DefaultDataProvider,h=n("2f45"),d=h.summarizeDimensions,f=n("562e"),p=r.isObject,g="undefined",m=-1,v="e\0\0",y={float:typeof Float64Array===g?Array:Float64Array,int:typeof Int32Array===g?Array:Int32Array,ordinal:Array,number:Array,time:Array},x=typeof Uint32Array===g?Array:Uint32Array,b=typeof Int32Array===g?Array:Int32Array,_=typeof Uint16Array===g?Array:Uint16Array;function w(t){return t._rawCount>65535?x:_}function S(t){var e=t.constructor;return e===Array?t.slice():new e(t)}var A=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],C=["_extent","_approximateExtent","_rawExtent"];function I(t,e){r.each(A.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,r.each(C,(function(n){t[n]=r.clone(e[n])})),t._calculationInfo=r.extend(e._calculationInfo)}var T=function(t,e){t=t||["x","y"];for(var n={},i=[],a={},o=0;o<t.length;o++){var s=t[o];r.isString(s)?s=new f({name:s}):s instanceof f||(s=new f(s));var l=s.name;s.type=s.type||"float",s.coordDim||(s.coordDim=l,s.coordDimIndex=0),s.otherDims=s.otherDims||{},i.push(l),n[l]=s,s.index=o,s.createInvertedIndices&&(a[l]=[])}this.dimensions=i,this._dimensionInfos=n,this.hostModel=e,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=d(this),this._invertedIndicesMap=a,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},k=T.prototype;function M(t,e,n,i,r){var a=y[e.type],o=i-1,s=e.name,l=t[s][o];if(l&&l.length<n){for(var c=new a(Math.min(r-o*n,n)),u=0;u<l.length;u++)c[u]=l[u];t[s][o]=c}for(var h=i*n;h<r;h+=n)t[s].push(new a(Math.min(r-h,n)))}function D(t){var e=t._invertedIndicesMap;r.each(e,(function(n,i){var r=t._dimensionInfos[i],a=r.ordinalMeta;if(a){n=e[i]=new b(a.categories.length);for(var o=0;o<n.length;o++)n[o]=m;for(o=0;o<t._count;o++)n[t.get(i,o)]=o}}))}function E(t,e,n){var i;if(null!=e){var r=t._chunkSize,a=Math.floor(n/r),o=n%r,s=t.dimensions[e],l=t._storage[s][a];if(l){i=l[o];var c=t._dimensionInfos[s].ordinalMeta;c&&c.categories.length&&(i=c.categories[i])}}return i}function L(t){return t}function P(t){return t<this._count&&t>=0?this._indices[t]:-1}function O(t,e){var n=t._idList[e];return null==n&&(n=E(t,t._idDimIdx,e)),null==n&&(n=v+e),n}function R(t){return r.isArray(t)||(t=[t]),t}function N(t,e){var n=t.dimensions,i=new T(r.map(n,t.getDimensionInfo,t),t.hostModel);I(i,t);for(var a=i._storage={},o=t._storage,s=0;s<n.length;s++){var l=n[s];o[l]&&(r.indexOf(e,l)>=0?(a[l]=B(o[l]),i._rawExtent[l]=z(),i._extent[l]=null):a[l]=o[l])}return i}function B(t){for(var e=new Array(t.length),n=0;n<t.length;n++)e[n]=S(t[n]);return e}function z(){return[1/0,-1/0]}k.type="list",k.hasItemOption=!0,k.getDimension=function(t){return"number"!==typeof t&&(isNaN(t)||this._dimensionInfos.hasOwnProperty(t))||(t=this.dimensions[t]),t},k.getDimensionInfo=function(t){return this._dimensionInfos[this.getDimension(t)]},k.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},k.mapDimension=function(t,e){var n=this._dimensionsSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return!0===e?(i||[]).slice():i&&i[e]},k.initData=function(t,e,n){var i=s.isInstance(t)||r.isArrayLike(t);i&&(t=new u(t,this.dimensions.length)),this._rawData=t,this._storage={},this._indices=null,this._nameList=e||[],this._idList=[],this._nameRepeatCount={},n||(this.hasItemOption=!1),this.defaultDimValueGetter=c[this._rawData.getSource().sourceFormat],this._dimValueGetter=n=n||this.defaultDimValueGetter,this._dimValueGetterArrayRows=c.arrayRows,this._rawExtent={},this._initDataFromProvider(0,t.count()),t.pure&&(this.hasItemOption=!1)},k.getProvider=function(){return this._rawData},k.appendData=function(t){var e=this._rawData,n=this.count();e.appendData(t);var i=e.count();e.persistent||(i+=n),this._initDataFromProvider(n,i)},k.appendValues=function(t,e){for(var n=this._chunkSize,i=this._storage,r=this.dimensions,a=r.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e?e.length:0),c=this._chunkCount,u=0;u<a;u++){var h=r[u];o[h]||(o[h]=z()),i[h]||(i[h]=[]),M(i,this._dimensionInfos[h],n,c,l),this._chunkCount=i[h].length}for(var d=new Array(a),f=s;f<l;f++){for(var p=f-s,g=Math.floor(f/n),m=f%n,v=0;v<a;v++){h=r[v];var y=this._dimValueGetterArrayRows(t[p]||d,h,p,v);i[h][g][m]=y;var x=o[h];y<x[0]&&(x[0]=y),y>x[1]&&(x[1]=y)}e&&(this._nameList[f]=e[p])}this._rawCount=this._count=l,this._extent={},D(this)},k._initDataFromProvider=function(t,e){if(!(t>=e)){for(var n,i=this._chunkSize,r=this._rawData,a=this._storage,o=this.dimensions,s=o.length,l=this._dimensionInfos,c=this._nameList,u=this._idList,h=this._rawExtent,d=this._nameRepeatCount={},f=this._chunkCount,p=0;p<s;p++){var g=o[p];h[g]||(h[g]=z());var m=l[g];0===m.otherDims.itemName&&(n=this._nameDimIdx=p),0===m.otherDims.itemId&&(this._idDimIdx=p),a[g]||(a[g]=[]),M(a,m,i,f,e),this._chunkCount=a[g].length}for(var v=new Array(s),y=t;y<e;y++){v=r.getItem(y,v);for(var x=Math.floor(y/i),b=y%i,_=0;_<s;_++){g=o[_];var w=a[g][x],S=this._dimValueGetter(v,g,y,_);w[b]=S;var A=h[g];S<A[0]&&(A[0]=S),S>A[1]&&(A[1]=S)}if(!r.pure){var C=c[y];if(v&&null==C)if(null!=v.name)c[y]=C=v.name;else if(null!=n){var I=o[n],T=a[I][x];if(T){C=T[b];var k=l[I].ordinalMeta;k&&k.categories.length&&(C=k.categories[C])}}var E=null==v?null:v.id;null==E&&null!=C&&(d[C]=d[C]||0,E=C,d[C]>0&&(E+="__ec__"+d[C]),d[C]++),null!=E&&(u[y]=E)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent={},D(this)}},k.count=function(){return this._count},k.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array){r=new e(n);for(var i=0;i<n;i++)r[i]=t[i]}else r=new e(t.buffer,0,n)}else{e=w(this);var r=new e(this.count());for(i=0;i<r.length;i++)r[i]=i}return r},k.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._storage;if(!n[t])return NaN;e=this.getRawIndex(e);var i=Math.floor(e/this._chunkSize),r=e%this._chunkSize,a=n[t][i],o=a[r];return o},k.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._storage[t];if(!n)return NaN;var i=Math.floor(e/this._chunkSize),r=e%this._chunkSize,a=n[i];return a[r]},k._getFast=function(t,e){var n=Math.floor(e/this._chunkSize),i=e%this._chunkSize,r=this._storage[t][n];return r[i]},k.getValues=function(t,e){var n=[];r.isArray(t)||(e=t,t=this.dimensions);for(var i=0,a=t.length;i<a;i++)n.push(this.get(t[i],e));return n},k.hasValue=function(t){for(var e=this._dimensionsSummary.dataDimsOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this.get(e[n],t)))return!1;return!0},k.getDataExtent=function(t){t=this.getDimension(t);var e=this._storage[t],n=z();if(!e)return n;var i,r=this.count(),a=!this._indices;if(a)return this._rawExtent[t].slice();if(i=this._extent[t],i)return i.slice();i=n;for(var o=i[0],s=i[1],l=0;l<r;l++){var c=this._getFast(t,this.getRawIndex(l));c<o&&(o=c),c>s&&(s=c)}return i=[o,s],this._extent[t]=i,i},k.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},k.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},k.getCalculationInfo=function(t){return this._calculationInfo[t]},k.setCalculationInfo=function(t,e){p(t)?r.extend(this._calculationInfo,t):this._calculationInfo[t]=e},k.getSum=function(t){var e=this._storage[t],n=0;if(e)for(var i=0,r=this.count();i<r;i++){var a=this.get(t,i);isNaN(a)||(n+=a)}return n},k.getMedian=function(t){var e=[];this.each(t,(function(t,n){isNaN(t)||e.push(t)}));var n=[].concat(e).sort((function(t,e){return t-e})),i=this.count();return 0===i?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},k.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],i=n[e];return null==i||isNaN(i)?m:i},k.indexOfName=function(t){for(var e=0,n=this.count();e<n;e++)if(this.getName(e)===t)return e;return-1},k.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;var i=0,r=this._count-1;while(i<=r){var a=(i+r)/2|0;if(e[a]<t)i=a+1;else{if(!(e[a]>t))return a;r=a-1}}return-1},k.indicesOfNearest=function(t,e,n){var i=this._storage,r=i[t],a=[];if(!r)return a;null==n&&(n=1/0);for(var o=1/0,s=-1,l=0,c=0,u=this.count();c<u;c++){var h=e-this.get(t,c),d=Math.abs(h);d<=n&&((d<o||d===o&&h>=0&&s<0)&&(o=d,s=h,l=0),h===s&&(a[l++]=c))}return a.length=l,a},k.getRawIndex=L,k.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],n=0;n<this.dimensions.length;n++){var i=this.dimensions[n];e.push(this.get(i,t))}return e},k.getName=function(t){var e=this.getRawIndex(t);return this._nameList[e]||E(this,this._nameDimIdx,e)||""},k.getId=function(t){return O(this,this.getRawIndex(t))},k.each=function(t,e,n,i){"use strict";if(this._count){"function"===typeof t&&(i=n,n=e,e=t,t=[]),n=n||i||this,t=r.map(R(t),this.getDimension,this);for(var a=t.length,o=0;o<this.count();o++)switch(a){case 0:e.call(n,o);break;case 1:e.call(n,this.get(t[0],o),o);break;case 2:e.call(n,this.get(t[0],o),this.get(t[1],o),o);break;default:for(var s=0,l=[];s<a;s++)l[s]=this.get(t[s],o);l[s]=o,e.apply(n,l)}}},k.filterSelf=function(t,e,n,i){"use strict";if(this._count){"function"===typeof t&&(i=n,n=e,e=t,t=[]),n=n||i||this,t=r.map(R(t),this.getDimension,this);for(var a=this.count(),o=w(this),s=new o(a),l=[],c=t.length,u=0,h=t[0],d=0;d<a;d++){var f,p=this.getRawIndex(d);if(0===c)f=e.call(n,d);else if(1===c){var g=this._getFast(h,p);f=e.call(n,g,d)}else{for(var m=0;m<c;m++)l[m]=this._getFast(h,p);l[m]=d,f=e.apply(n,l)}f&&(s[u++]=p)}return u<a&&(this._indices=s),this._count=u,this._extent={},this.getRawIndex=this._indices?P:L,this}},k.selectRange=function(t){"use strict";if(this._count){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);var i=e.length;if(i){var r=this.count(),a=w(this),o=new a(r),s=0,l=e[0],c=t[l][0],u=t[l][1],h=!1;if(!this._indices){var d=0;if(1===i){for(var f=this._storage[e[0]],p=0;p<this._chunkCount;p++)for(var g=f[p],m=Math.min(this._count-p*this._chunkSize,this._chunkSize),v=0;v<m;v++){var y=g[v];(y>=c&&y<=u||isNaN(y))&&(o[s++]=d),d++}h=!0}else if(2===i){f=this._storage[l];var x=this._storage[e[1]],b=t[e[1]][0],_=t[e[1]][1];for(p=0;p<this._chunkCount;p++){g=f[p];var S=x[p];for(m=Math.min(this._count-p*this._chunkSize,this._chunkSize),v=0;v<m;v++){y=g[v];var A=S[v];(y>=c&&y<=u||isNaN(y))&&(A>=b&&A<=_||isNaN(A))&&(o[s++]=d),d++}}h=!0}}if(!h)if(1===i)for(v=0;v<r;v++){var C=this.getRawIndex(v);y=this._getFast(l,C);(y>=c&&y<=u||isNaN(y))&&(o[s++]=C)}else for(v=0;v<r;v++){var I=!0;for(C=this.getRawIndex(v),p=0;p<i;p++){var T=e[p];y=this._getFast(n,C);(y<t[T][0]||y>t[T][1])&&(I=!1)}I&&(o[s++]=this.getRawIndex(v))}return s<r&&(this._indices=o),this._count=s,this._extent={},this.getRawIndex=this._indices?P:L,this}}},k.mapArray=function(t,e,n,i){"use strict";"function"===typeof t&&(i=n,n=e,e=t,t=[]),n=n||i||this;var r=[];return this.each(t,(function(){r.push(e&&e.apply(this,arguments))}),n),r},k.map=function(t,e,n,i){"use strict";n=n||i||this,t=r.map(R(t),this.getDimension,this);var a=N(this,t);a._indices=this._indices,a.getRawIndex=a._indices?P:L;for(var o=a._storage,s=[],l=this._chunkSize,c=t.length,u=this.count(),h=[],d=a._rawExtent,f=0;f<u;f++){for(var p=0;p<c;p++)h[p]=this.get(t[p],f);h[c]=f;var g=e&&e.apply(n,h);if(null!=g){"object"!==typeof g&&(s[0]=g,g=s);for(var m=this.getRawIndex(f),v=Math.floor(m/l),y=m%l,x=0;x<g.length;x++){var b=t[x],_=g[x],w=d[b],S=o[b];S&&(S[v][y]=_),_<w[0]&&(w[0]=_),_>w[1]&&(w[1]=_)}}}return a},k.downSample=function(t,e,n,i){for(var r=N(this,[t]),a=r._storage,o=[],s=Math.floor(1/e),l=a[t],c=this.count(),u=this._chunkSize,h=r._rawExtent[t],d=new(w(this))(c),f=0,p=0;p<c;p+=s){s>c-p&&(s=c-p,o.length=s);for(var g=0;g<s;g++){var m=this.getRawIndex(p+g),v=Math.floor(m/u),y=m%u;o[g]=l[v][y]}var x=n(o),b=this.getRawIndex(Math.min(p+i(o,x)||0,c-1)),_=Math.floor(b/u),S=b%u;l[_][S]=x,x<h[0]&&(h[0]=x),x>h[1]&&(h[1]=x),d[f++]=b}return r._count=f,r._indices=d,r.getRawIndex=P,r},k.getItemModel=function(t){var e=this.hostModel;return new a(this.getRawDataItem(t),e,e&&e.ecModel)},k.diff=function(t){var e=this;return new o(t?t.getIndices():[],this.getIndices(),(function(e){return O(t,e)}),(function(t){return O(e,t)}))},k.getVisual=function(t){var e=this._visual;return e&&e[t]},k.setVisual=function(t,e){if(p(t))for(var n in t)t.hasOwnProperty(n)&&this.setVisual(n,t[n]);else this._visual=this._visual||{},this._visual[t]=e},k.setLayout=function(t,e){if(p(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},k.getLayout=function(t){return this._layout[t]},k.getItemLayout=function(t){return this._itemLayouts[t]},k.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?r.extend(this._itemLayouts[t]||{},e):e},k.clearItemLayouts=function(){this._itemLayouts.length=0},k.getItemVisual=function(t,e,n){var i=this._itemVisuals[t],r=i&&i[e];return null!=r||n?r:this.getVisual(e)},k.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{},r=this.hasItemVisual;if(this._itemVisuals[t]=i,p(e))for(var a in e)e.hasOwnProperty(a)&&(i[a]=e[a],r[a]=!0);else i[e]=n,r[e]=!0},k.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var F=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};k.setItemGraphicEl=function(t,e){var n=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=n&&n.seriesIndex,"group"===e.type&&e.traverse(F,e)),this._graphicEls[t]=e},k.getItemGraphicEl=function(t){return this._graphicEls[t]},k.eachItemGraphicEl=function(t,e){r.each(this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},k.cloneShallow=function(t){if(!t){var e=r.map(this.dimensions,this.getDimensionInfo,this);t=new T(e,this.hostModel)}if(t._storage=this._storage,I(t,this),this._indices){var n=this._indices.constructor;t._indices=new n(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?P:L,t},k.wrapMethod=function(t,e){var n=this[t];"function"===typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(r.slice(arguments)))})},k.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],k.CHANGABLE_METHODS=["filterSelf","selectRange"];var V=T;t.exports=V},"620b":function(t,e,n){var i=n("401b"),r=i.distance;function a(t,e,n,i,r,a,o){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*o+(-3*(e-n)-2*s-l)*a+s*r+e}function o(t,e){for(var n=t.length,i=[],o=0,s=1;s<n;s++)o+=r(t[s-1],t[s]);var l=o/2;l=l<n?n:l;for(s=0;s<l;s++){var c,u,h,d=s/(l-1)*(e?n:n-1),f=Math.floor(d),p=d-f,g=t[f%n];e?(c=t[(f-1+n)%n],u=t[(f+1)%n],h=t[(f+2)%n]):(c=t[0===f?f:f-1],u=t[f>n-2?n-1:f+1],h=t[f>n-3?n-1:f+2]);var m=p*p,v=p*m;i.push([a(c[0],g[0],u[0],h[0],p,m,v),a(c[1],g[1],u[1],h[1],p,m,v)])}return i}t.exports=o},"625e":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),a=".",o="___EC__COMPONENT__CONTAINER___";function s(t){var e={main:"",sub:""};return t&&(t=t.split(a),e.main=t[0]||"",e.sub=t[1]||""),e}function l(t){r.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function c(t,e){t.$constructor=t,t.extend=function(t){var e=this,n=function(){t.$constructor?t.$constructor.apply(this,arguments):e.apply(this,arguments)};return r.extend(n.prototype,t),n.extend=this.extend,n.superCall=d,n.superApply=f,r.inherits(n,this),n.superClass=e,n}}var u=0;function h(t){var e=["__\0is_clz",u++,Math.random().toFixed(3)].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function d(t,e){var n=r.slice(arguments,2);return this.superClass.prototype[e].apply(t,n)}function f(t,e,n){return this.superClass.prototype[e].apply(t,n)}function p(t,e){e=e||{};var n={};function i(t){var e=n[t.main];return e&&e[o]||(e=n[t.main]={},e[o]=!0),e}if(t.registerClass=function(t,e){if(e)if(l(e),e=s(e),e.sub){if(e.sub!==o){var r=i(e);r[e.sub]=t}}else n[e.main]=t;return t},t.getClass=function(t,e,i){var r=n[t];if(r&&r[o]&&(r=e?r[e]:null),i&&!r)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){t=s(t);var e=[],i=n[t.main];return i&&i[o]?r.each(i,(function(t,n){n!==o&&e.push(t)})):e.push(i),e},t.hasClass=function(t){return t=s(t),!!n[t.main]},t.getAllClassMainTypes=function(){var t=[];return r.each(n,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){t=s(t);var e=n[t.main];return e&&e[o]},t.parseClassType=s,e.registerWhenExtend){var a=t.extend;a&&(t.extend=function(e){var n=a.call(this,e);return t.registerClass(n,e.type)})}return t}function g(t,e){}e.parseClassType=s,e.enableClassExtend=c,e.enableClassCheck=h,e.enableClassManagement=p,e.setReadOnly=g},"627c":function(t,e,n){var i=n("6d8b"),r=n("3eba"),a=n("2306"),o=n("f934"),s=o.getLayoutRect,l=n("eda2"),c=l.windowOpen;r.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),r.extendComponentView({type:"title",render:function(t,e,n){if(this.group.removeAll(),t.get("show")){var r=this.group,o=t.getModel("textStyle"),l=t.getModel("subtextStyle"),u=t.get("textAlign"),h=i.retrieve2(t.get("textBaseline"),t.get("textVerticalAlign")),d=new a.Text({style:a.setTextStyle({},o,{text:t.get("text"),textFill:o.getTextColor()},{disableBox:!0}),z2:10}),f=d.getBoundingRect(),p=t.get("subtext"),g=new a.Text({style:a.setTextStyle({},l,{text:p,textFill:l.getTextColor(),y:f.height+t.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),m=t.get("link"),v=t.get("sublink"),y=t.get("triggerEvent",!0);d.silent=!m&&!y,g.silent=!v&&!y,m&&d.on("click",(function(){c(m,"_"+t.get("target"))})),v&&g.on("click",(function(){c(m,"_"+t.get("subtarget"))})),d.eventData=g.eventData=y?{componentType:"title",componentIndex:t.componentIndex}:null,r.add(d),p&&r.add(g);var x=r.getBoundingRect(),b=t.getBoxLayoutParams();b.width=x.width,b.height=x.height;var _=s(b,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));u||(u=t.get("left")||t.get("right"),"middle"===u&&(u="center"),"right"===u?_.x+=_.width:"center"===u&&(_.x+=_.width/2)),h||(h=t.get("top")||t.get("bottom"),"center"===h&&(h="middle"),"bottom"===h?_.y+=_.height:"middle"===h&&(_.y+=_.height/2),h=h||"top"),r.attr("position",[_.x,_.y]);var w={textAlign:u,textVerticalAlign:h};d.setStyle(w),g.setStyle(w),x=r.getBoundingRect();var S=_.margin,A=t.getItemStyle(["color","opacity"]);A.fill=t.get("backgroundColor");var C=new a.Rect({shape:{x:x.x-S[3],y:x.y-S[0],width:x.width+S[1]+S[3],height:x.height+S[0]+S[2],r:t.get("borderRadius")},style:A,subPixelOptimize:!0,silent:!0});r.add(C)}}})},6569:function(t,e,n){var i=n("6d8b"),r=n("e0d3");function a(t){o(t),s(t)}function o(t){if(!t.parallel){var e=!1;i.each(t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}}function s(t){var e=r.normalizeToArray(t.parallelAxis);i.each(e,(function(e){if(i.isObject(e)){var n=e.parallelIndex||0,a=r.normalizeToArray(t.parallel)[n];a&&a.parallelAxisDefault&&i.merge(e,a.parallelAxisDefault,!1)}}))}t.exports=a},6582:function(t,e,n){var i=n("cccd"),r={seriesType:"lines",plan:i(),reset:function(t){var e=t.coordinateSystem,n=t.get("polyline"),i=t.pipelineContext.large;function r(r,a){var o=[];if(i){var s,l=r.end-r.start;if(n){for(var c=0,u=r.start;u<r.end;u++)c+=t.getLineCoordsCount(u);s=new Float32Array(l+2*c)}else s=new Float32Array(4*l);var h=0,d=[];for(u=r.start;u<r.end;u++){var f=t.getLineCoords(u,o);n&&(s[h++]=f);for(var p=0;p<f;p++)d=e.dataToPoint(o[p],!1,d),s[h++]=d[0],s[h++]=d[1]}a.setLayout("linesPoints",s)}else for(u=r.start;u<r.end;u++){var g=a.getItemModel(u),m=(f=t.getLineCoords(u,o),[]);if(n)for(var v=0;v<f;v++)m.push(e.dataToPoint(o[v]));else{m[0]=e.dataToPoint(o[0]),m[1]=e.dataToPoint(o[1]);var y=g.get("lineStyle.curveness");+y&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*y,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*y])}a.setItemLayout(u,m)}}return{progress:r}}};t.exports=r},"65ed":function(t,e,n){var i=n("22d1"),r=n("84ec"),a=r.buildTransformer,o="___zrEVENTSAVED",s=[];function l(t,e,n,i,r){return c(s,e,i,r,!0)&&c(t,n,s[0],s[1])}function c(t,e,n,r,a){if(e.getBoundingClientRect&&i.domSupported&&!d(e)){var s=e[o]||(e[o]={}),l=u(e,s),c=h(l,s,a);if(c)return c(t,n,r),!0}return!1}function u(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,c=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[c]+":0",i[1-l]+":auto",r[1-c]+":auto",""].join("!important;"),t.appendChild(o),n.push(o)}return n}function h(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,s=!0,l=[],c=[],u=0;u<4;u++){var h=t[u].getBoundingClientRect(),d=2*u,f=h.left,p=h.top;l.push(f,p),s=s&&o&&f===o[d]&&p===o[d+1],c.push(t[u].offsetLeft,t[u].offsetTop)}return s&&r?r:(e.srcCoords=l,e[i]=n?a(c,l):a(l,c))}function d(t){return"CANVAS"===t.nodeName.toUpperCase()}e.transformLocalCoord=l,e.transformCoordWithViewport=c,e.isCanvasEl=d},6679:function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("3eba")),a=n("cd33"),o=r.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(t,e,n,i){this.axisPointerClass&&a.fixValue(t),o.superApply(this,"render",arguments),s(this,t,e,n,i,!0)},updateAxisPointer:function(t,e,n,i,r){s(this,t,e,n,i,!1)},remove:function(t,e){var n=this._axisPointer;n&&n.remove(e),o.superApply(this,"remove",arguments)},dispose:function(t,e){l(this,e),o.superApply(this,"dispose",arguments)}});function s(t,e,n,i,r,s){var c=o.getAxisPointerClass(t.axisPointerClass);if(c){var u=a.getAxisPointerModel(e);u?(t._axisPointer||(t._axisPointer=new c)).render(e,u,i,s):l(t,i)}}function l(t,e,n){var i=t._axisPointer;i&&i.dispose(e,n),t._axisPointer=null}var c=[];o.registerAxisPointerClass=function(t,e){c[t]=e},o.getAxisPointerClass=function(t){return t&&c[t]};var u=o;t.exports=u},"66a4":function(t,e,n){var i=n("6d8b");function r(t){var e=t&&t.timeline;i.isArray(e)||(e=e?[e]:[]),i.each(e,(function(t){t&&a(t)}))}function a(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),o(t),s(t,"controlPosition")){var r=t.controlStyle||(t.controlStyle={});s(r,"position")||(r.position=t.controlPosition),"none"!==r.position||s(r,"show")||(r.show=!1,delete r.position),delete t.controlPosition}i.each(t.data||[],(function(t){i.isObject(t)&&!i.isArray(t)&&(!s(t,"value")&&s(t,"name")&&(t.value=t.name),o(t))}))}function o(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),r=t.label||t.label||{},a=r.normal||(r.normal={}),o={normal:1,emphasis:1};i.each(r,(function(t,e){o[e]||s(a,e)||(a[e]=t)})),n.label&&!s(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function s(t,e){return t.hasOwnProperty(e)}t.exports=r},"66fc":function(t,e,n){var i=n("6d8b"),r=n("84ce"),a=function(t,e,n,i,a){r.call(this,t,e,n),this.type=i||"value",this.position=a||"bottom",this.orient=null};a.prototype={constructor:a,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},pointToData:function(t,e){return this.coordinateSystem.pointToData(t,e)[0]},toGlobalCoord:null,toLocalCoord:null},i.inherits(a,r);var o=a;t.exports=o},"675a":function(t,e){function n(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getGraph(),r=i.data,a=n.mapArray(n.getName);r.filterSelf((function(t){var n=r.getItemModel(t),i=n.getShallow("category");if(null!=i){"number"===typeof i&&(i=a[i]);for(var o=0;o<e.length;o++)if(!e[o].isSelected(i))return!1}return!0}))}),this)}t.exports=n},"675c":function(t,e,n){var i=n("3eba");n("4e10"),n("a666"),n("49e8"),n("eeea");var r=n("cee1"),a=n("54fb"),o=n("f6ed"),s=n("9442"),l=n("7782");i.registerLayout(r),i.registerVisual(a),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,o),i.registerPreprocessor(s),l("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},"67a8":function(t,e,n){var i=n("3301"),r=n("4f85"),a=r.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(t,e){return i(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});t.exports=a},"67cc":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("3eba")),a=n("6d8b"),o=n("2306"),s=n("e7aa"),l=s.setLabel,c=n("4319"),u=n("b5c7"),h=n("cbe5"),d=n("e1fc"),f=n("88b3"),p=f.throttle,g=n("b0af"),m=g.createClipPath,v=n("c2be"),y=["itemStyle","barBorderWidth"],x=[0,0];function b(t,e){var n=t.getArea&&t.getArea();if("cartesian2d"===t.type){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}a.extend(c.prototype,u);var _=r.extendChartView({type:"bar",render:function(t,e,n){this._updateDrawMode(t);var i=t.get("coordinateSystem");return"cartesian2d"!==i&&"polar"!==i||(this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n)),this.group},incrementalPrepareRender:function(t,e,n){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,n,i){this._incrementalRenderLarge(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t,e,n){var i,r=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,c=l.getBaseAxis();"cartesian2d"===l.type?i=c.isHorizontal():"polar"===l.type&&(i="angle"===c.dim);var u=t.isAnimationEnabled()?t:null,h=t.get("clip",!0),f=b(l,a);r.removeClipPath();var p=t.get("roundCap",!0),g=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),v=m.get("barBorderRadius")||0,y=[],x=this._backgroundEls||[];a.diff(s).add((function(e){var n=a.getItemModel(e),o=k[l.type](a,e,n);if(g){var s=k[l.type](a,e),c=F(l,i,s);c.useStyle(m.getBarItemStyle()),"cartesian2d"===l.type&&c.setShape("r",v),y[e]=c}if(a.hasValue(e)){if(h){var d=A[l.type](f,o);if(d)return void r.remove(x)}var x=C[l.type](e,o,i,u,!1,p);a.setItemGraphicEl(e,x),r.add(x),D(x,a,e,n,o,t,i,"polar"===l.type)}})).update((function(e,n){var c=a.getItemModel(e),d=k[l.type](a,e,c);if(g){var b=x[n];b.useStyle(m.getBarItemStyle()),"cartesian2d"===l.type&&b.setShape("r",v),y[e]=b;var _=k[l.type](a,e),w=z(i,_,l);o.updateProps(b,{shape:w},u,e)}var S=s.getItemGraphicEl(n);if(a.hasValue(e)){if(h){var I=A[l.type](f,d);if(I)return void r.remove(S)}S?o.updateProps(S,{shape:d},u,e):S=C[l.type](e,d,i,u,!0,p),a.setItemGraphicEl(e,S),r.add(S),D(S,a,e,c,d,t,i,"polar"===l.type)}else r.remove(S)})).remove((function(t){var e=s.getItemGraphicEl(t);"cartesian2d"===l.type?e&&I(t,u,e):e&&T(t,u,e)})).execute();var _=this._backgroundGroup||(this._backgroundGroup=new d);_.removeAll();for(var w=0;w<y.length;++w)_.add(y[w]);r.add(_),this._backgroundEls=y,this._data=a},_renderLarge:function(t,e,n){this._clear(),P(t,this.group);var i=t.get("clip",!0)?m(t.coordinateSystem,!1,t):null;i?this.group.setClipPath(i):this.group.removeClipPath()},_incrementalRenderLarge:function(t,e){this._removeBackground(),P(e,this.group,!0)},dispose:a.noop,remove:function(t){this._clear(t)},_clear:function(t){var e=this.group,n=this._data;t&&t.get("animation")&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){"sector"===e.type?T(e.dataIndex,t,e):I(e.dataIndex,t,e)}))):e.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),w=Math.max,S=Math.min,A={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=w(e.x,t.x),a=S(e.x+e.width,t.x+t.width),o=w(e.y,t.y),s=S(e.y+e.height,t.y+t.height);e.x=r,e.y=o,e.width=a-r,e.height=s-o;var l=e.width<0||e.height<0;return n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),l},polar:function(t){return!1}},C={cartesian2d:function(t,e,n,i,r){var s=new o.Rect({shape:a.extend({},e),z2:1});if(s.name="item",i){var l=s.shape,c=n?"height":"width",u={};l[c]=0,u[c]=e[c],o[r?"updateProps":"initProps"](s,{shape:u},i,t)}return s},polar:function(t,e,n,i,r,s){var l=e.startAngle<e.endAngle,c=!n&&s?v:o.Sector,u=new c({shape:a.defaults({clockwise:l},e),z2:1});if(u.name="item",i){var h=u.shape,d=n?"r":"endAngle",f={};h[d]=n?0:e.startAngle,f[d]=e[d],o[r?"updateProps":"initProps"](u,{shape:f},i,t)}return u}};function I(t,e,n){n.style.text=null,o.updateProps(n,{shape:{width:0}},e,t,(function(){n.parent&&n.parent.remove(n)}))}function T(t,e,n){n.style.text=null,o.updateProps(n,{shape:{r:n.shape.r0}},e,t,(function(){n.parent&&n.parent.remove(n)}))}var k={cartesian2d:function(t,e,n){var i=t.getItemLayout(e),r=n?E(n,i):0,a=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*r/2,y:i.y+o*r/2,width:i.width-a*r,height:i.height-o*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle}}};function M(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function D(t,e,n,i,r,s,c,u){var h=e.getItemVisual(n,"color"),d=e.getItemVisual(n,"opacity"),f=e.getVisual("borderColor"),p=i.getModel("itemStyle"),g=i.getModel("emphasis.itemStyle").getBarItemStyle();u||t.setShape("r",p.get("barBorderRadius")||0),t.useStyle(a.defaults({stroke:M(r)?"none":f,fill:M(r)?"none":h,opacity:d},p.getBarItemStyle()));var m=i.getShallow("cursor");m&&t.attr("cursor",m);var v=c?r.height>0?"bottom":"top":r.width>0?"left":"right";u||l(t.style,g,i,h,s,n,v),M(r)&&(g.fill=g.stroke="none"),o.setHoverStyle(t,g)}function E(t,e){var n=t.get(y)||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),r=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,r)}var L=h.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var n=e.points,i=this.__startPoint,r=this.__baseDimIdx,a=0;a<n.length;a+=2)i[r]=n[a+r],t.moveTo(i[0],i[1]),t.lineTo(n[a],n[a+1])}});function P(t,e,n){var i=t.getData(),r=[],a=i.getLayout("valueAxisHorizontal")?1:0;r[1-a]=i.getLayout("valueAxisStart");var o=i.getLayout("largeDataIndices"),s=i.getLayout("barWidth"),l=t.getModel("backgroundStyle"),c=t.get("showBackground",!0);if(c){var u=i.getLayout("largeBackgroundPoints"),h=[];h[1-a]=i.getLayout("backgroundStart");var d=new L({shape:{points:u},incremental:!!n,__startPoint:h,__baseDimIdx:a,__largeDataIndices:o,__barWidth:s,silent:!0,z2:0});B(d,l,i),e.add(d)}var f=new L({shape:{points:i.getLayout("largePoints")},incremental:!!n,__startPoint:r,__baseDimIdx:a,__largeDataIndices:o,__barWidth:s});e.add(f),N(f,t,i),f.seriesIndex=t.seriesIndex,t.get("silent")||(f.on("mousedown",O),f.on("mousemove",O))}var O=p((function(t){var e=this,n=R(e,t.offsetX,t.offsetY);e.dataIndex=n>=0?n:null}),30,!1);function R(t,e,n){var i=t.__baseDimIdx,r=1-i,a=t.shape.points,o=t.__largeDataIndices,s=Math.abs(t.__barWidth/2),l=t.__startPoint[r];x[0]=e,x[1]=n;for(var c=x[i],u=x[1-i],h=c-s,d=c+s,f=0,p=a.length/2;f<p;f++){var g=2*f,m=a[g+i],v=a[g+r];if(m>=h&&m<=d&&(l<=v?u>=l&&u<=v:u>=v&&u<=l))return o[f]}return-1}function N(t,e,n){var i=n.getVisual("borderColor")||n.getVisual("color"),r=e.getModel("itemStyle").getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=i,t.style.lineWidth=n.getLayout("barWidth")}function B(t,e,n){var i=e.get("borderColor")||e.get("color"),r=e.getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=i,t.style.lineWidth=n.getLayout("barWidth")}function z(t,e,n){var i,r="polar"===n.type;return i=r?n.getArea():n.grid.getRect(),r?{cx:i.cx,cy:i.cy,r0:t?i.r0:e.r0,r:t?i.r:e.r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}:{x:t?e.x:i.x,y:t?i.y:e.y,width:t?e.width:i.width,height:t?i.height:e.height}}function F(t,e,n){var i="polar"===t.type?o.Sector:o.Rect;return new i({shape:z(e,n,t),silent:!0,z2:0})}t.exports=_},"68ab":function(t,e,n){var i=n("4a3f"),r=i.quadraticProjectPoint;function a(t,e,n,i,a,o,s,l,c){if(0===s)return!1;var u=s;if(c>e+u&&c>i+u&&c>o+u||c<e-u&&c<i-u&&c<o-u||l>t+u&&l>n+u&&l>a+u||l<t-u&&l<n-u&&l<a-u)return!1;var h=r(t,e,n,i,a,o,l,c,null);return h<=u/2}e.containStroke=a},6932:function(t,e,n){var i=n("6cb7");i.registerSubTypeDefaulter("dataZoom",(function(){return"slider"}))},"697e":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),a=n("18c0"),o=n("89e3"),s=n("e0d8"),l=n("3842"),c=n("9d57"),u=c.prepareLayoutBarSeries,h=c.makeColumnLayout,d=c.retrieveColumnLayout,f=n("9850");function p(t,e){var n,i,a,o=t.type,s=e.getMin(),c=e.getMax(),d=t.getExtent();"ordinal"===o?n=e.getCategories().length:(i=e.get("boundaryGap"),r.isArray(i)||(i=[i||0,i||0]),"boolean"===typeof i[0]&&(i=[0,0]),i[0]=l.parsePercent(i[0],1),i[1]=l.parsePercent(i[1],1),a=d[1]-d[0]||Math.abs(d[0])),"dataMin"===s?s=d[0]:"function"===typeof s&&(s=s({min:d[0],max:d[1]})),"dataMax"===c?c=d[1]:"function"===typeof c&&(c=c({min:d[0],max:d[1]}));var f=null!=s,p=null!=c;null==s&&(s="ordinal"===o?n?0:NaN:d[0]-i[0]*a),null==c&&(c="ordinal"===o?n?n-1:NaN:d[1]+i[1]*a),(null==s||!isFinite(s))&&(s=NaN),(null==c||!isFinite(c))&&(c=NaN),t.setBlank(r.eqNaN(s)||r.eqNaN(c)||"ordinal"===o&&!t.getOrdinalMeta().categories.length),e.getNeedCrossZero()&&(s>0&&c>0&&!f&&(s=0),s<0&&c<0&&!p&&(c=0));var m=e.ecModel;if(m&&"time"===o){var v,y=u("bar",m);if(r.each(y,(function(t){v|=t.getBaseAxis()===e.axis})),v){var x=h(y),b=g(s,c,e,x);s=b.min,c=b.max}}return{extent:[s,c],fixMin:f,fixMax:p}}function g(t,e,n,i){var a=n.axis.getExtent(),o=a[1]-a[0],s=d(i,n.axis);if(void 0===s)return{min:t,max:e};var l=1/0;r.each(s,(function(t){l=Math.min(t.offset,l)}));var c=-1/0;r.each(s,(function(t){c=Math.max(t.offset+t.width,c)})),l=Math.abs(l),c=Math.abs(c);var u=l+c,h=e-t,f=1-(l+c)/o,p=h/f-h;return e+=p*(c/u),t-=p*(l/u),{min:t,max:e}}function m(t,e){var n=p(t,e),i=n.extent,r=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var a=t.type;t.setExtent(i[0],i[1]),t.niceExtent({splitNumber:r,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===a||"time"===a?e.get("minInterval"):null,maxInterval:"interval"===a||"time"===a?e.get("maxInterval"):null});var o=e.get("interval");null!=o&&t.setInterval&&t.setInterval(o)}function v(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new a(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new o;default:return(s.getClass(e)||o).create(t)}}function y(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}function x(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"string"===typeof e?(e=function(e){return function(n){return n=t.scale.getLabel(n),e.replace("{value}",null!=n?n:"")}}(e),e):"function"===typeof e?function(i,r){return null!=n&&(r=i-n),e(b(t,i),r)}:function(e){return t.scale.getLabel(e)}}function b(t,e){return"category"===t.type?t.scale.getLabel(e):e}function _(t){var e=t.model,n=t.scale;if(e.get("axisLabel.show")&&!n.isBlank()){var i,r,a="category"===t.type,o=n.getExtent();a?r=n.count():(i=n.getTicks(),r=i.length);var s,l=t.getLabelModel(),c=x(t),u=1;r>40&&(u=Math.ceil(r/40));for(var h=0;h<r;h+=u){var d=i?i[h]:o[0]+h,f=c(d),p=l.getTextRect(f),g=w(p,l.get("rotate")||0);s?s.union(g):s=g}return s}}function w(t,e){var n=e*Math.PI/180,i=t.plain(),r=i.width,a=i.height,o=r*Math.cos(n)+a*Math.sin(n),s=r*Math.sin(n)+a*Math.cos(n),l=new f(i.x,i.y,o,s);return l}function S(t){var e=t.get("interval");return null==e?"auto":e}function A(t){return"category"===t.type&&0===S(t.getLabelModel())}n("216a"),n("8c2a"),e.getScaleExtent=p,e.niceScaleExtent=m,e.createScaleByModel=v,e.ifAxisCrossZero=y,e.makeLabelFormatter=x,e.getAxisRawValue=b,e.estimateLabelUnionRect=_,e.getOptionCategoryInterval=S,e.shouldShowAllLabels=A},"697e7":function(t,e,n){var i=n("de00"),r=n("22d1"),a=n("6d8b"),o=n("d2cf"),s=n("afa0"),l=n("ed21"),c=n("30a3"),u=n("cdaa"),h=!r.canvasSupported,d={canvas:l},f={},p="4.3.1";function g(t,e){var n=new b(i(),t,e);return f[n.id]=n,n}function m(t){if(t)t.dispose();else{for(var e in f)f.hasOwnProperty(e)&&f[e].dispose();f={}}return this}function v(t){return f[t]}function y(t,e){d[t]=e}function x(t){delete f[t]}var b=function(t,e,n){n=n||{},this.dom=e,this.id=t;var i=this,l=new s,f=n.renderer;if(h){if(!d.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");f="vml"}else f&&d[f]||(f="canvas");var p=new d[f](e,l,n,t);this.storage=l,this.painter=p;var g=r.node||r.worker?null:new u(p.getViewportRoot(),p.root);this.handler=new o(l,p,g,p.root),this.animation=new c({stage:{update:a.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var m=l.delFromStorage,v=l.addToStorage;l.delFromStorage=function(t){m.call(l,t),t&&t.removeSelfFromZr(i)},l.addToStorage=function(t){v.call(l,t),t.addSelfToZr(i)}};b.prototype={constructor:b,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this._needsRefresh=!0},setBackgroundColor:function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var t;this._needsRefresh&&(t=!0,this.refreshImmediately()),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately()),t&&this.trigger("rendered")},addHover:function(t,e){if(this.painter.addHover){var n=this.painter.addHover(t,e);return this.refreshHover(),n}},removeHover:function(t){this.painter.removeHover&&(this.painter.removeHover(t),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(t,e){return this.painter.pathToImage(t,e)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},findHover:function(t,e){return this.handler.findHover(t,e)},on:function(t,e,n){this.handler.on(t,e,n)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler.trigger(t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,x(this.id)}},e.version=p,e.init=g,e.dispose=m,e.getInstance=v,e.registerPainter=y},"69ff":function(t,e,n){var i=n("6d8b"),r=i.each,a=i.map,o=i.isFunction,s=i.createHashMap,l=i.noop,c=n("f47d"),u=c.createTask,h=n("8918"),d=h.getUID,f=n("7e63"),p=n("843e"),g=n("e0d3"),m=g.normalizeToArray;function v(t,e,n,i){this.ecInstance=t,this.api=e,this.unfinished;n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice();this._allHandlers=n.concat(i),this._stageTaskMap=s()}var y=v.prototype;function x(t,e,n,i,a){var o;function s(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}a=a||{},r(e,(function(e,r){if(!a.visualType||a.visualType===e.visualType){var l=t._stageTaskMap.get(e.uid),c=l.seriesTaskMap,u=l.overallTask;if(u){var h,d=u.agentStubMap;d.each((function(t){s(a,t)&&(t.dirty(),h=!0)})),h&&u.dirty(),b(u,i);var f=t.getPerformArgs(u,a.block);d.each((function(t){t.perform(f)})),o|=u.perform(f)}else c&&c.each((function(r,l){s(a,r)&&r.dirty();var c=t.getPerformArgs(r,a.block);c.skip=!e.performRawSeries&&n.isSeriesFiltered(r.context.model),b(r,i),o|=r.perform(c)}))}})),t.unfinished|=o}y.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},y.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,a=r?n.step:null,o=i&&i.modDataCount,s=null!=o?Math.ceil(o/a):null;return{step:a,modBy:s,modDataCount:o}}},y.getPipeline=function(t){return this._pipelineMap.get(t)},y.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),r=i.count(),a=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,o=t.get("large")&&r>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:a,modDataCount:s,large:o}},y.restorePipelines=function(t){var e=this,n=e._pipelineMap=s();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),L(e,t,t.dataTask)}))},y.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.ecInstance.getModel(),n=this.api;r(this._allHandlers,(function(i){var r=t.get(i.uid)||t.set(i.uid,[]);i.reset&&_(this,i,r,e,n),i.overallReset&&w(this,i,r,e,n)}),this)},y.prepareView=function(t,e,n,i){var r=t.renderTask,a=r.context;a.model=e,a.ecModel=n,a.api=i,r.__block=!t.incrementalPrepareRender,L(this,e,r)},y.performDataProcessorTasks=function(t,e){x(this,this._dataProcessorHandlers,t,e,{block:!0})},y.performVisualTasks=function(t,e,n){x(this,this._visualHandlers,t,e,n)},y.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e|=t.dataTask.perform()})),this.unfinished|=e},y.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))};var b=y.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)};function _(t,e,n,i,r){var a=n.seriesTaskMap||(n.seriesTaskMap=s()),o=e.seriesType,l=e.getTargetSeries;function c(n){var o=n.uid,s=a.get(o)||a.set(o,u({plan:T,reset:k,count:E}));s.context={model:n,ecModel:i,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},L(t,n,s)}e.createOnAllSeries?i.eachRawSeries(c):o?i.eachRawSeriesByType(o,c):l&&l(i,r).each(c);var h=t._pipelineMap;a.each((function(t,e){h.get(e)||(t.dispose(),a.removeKey(e))}))}function w(t,e,n,i,a){var o=n.overallTask=n.overallTask||u({reset:S});o.context={ecModel:i,api:a,overallReset:e.overallReset,scheduler:t};var l=o.agentStubMap=o.agentStubMap||s(),c=e.seriesType,h=e.getTargetSeries,d=!0,f=e.modifyOutputEnd;function p(e){var n=e.uid,i=l.get(n);i||(i=l.set(n,u({reset:A,onDirty:I})),o.dirty()),i.context={model:e,overallProgress:d,modifyOutputEnd:f},i.agent=o,i.__block=d,L(t,e,i)}c?i.eachRawSeriesByType(c,p):h?h(i,a).each(p):(d=!1,r(i.getSeries(),p));var g=t._pipelineMap;l.each((function(t,e){g.get(e)||(t.dispose(),o.dirty(),l.removeKey(e))}))}function S(t){t.overallReset(t.ecModel,t.api,t.payload)}function A(t,e){return t.overallProgress&&C}function C(){this.agent.dirty(),this.getDownstream().dirty()}function I(){this.agent&&this.agent.dirty()}function T(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function k(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=m(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?a(e,(function(t,e){return D(e)})):M}var M=D(0);function D(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var a=e.start;a<e.end;a++)r.dataEach(i,a);else r&&r.progress&&r.progress(e,i)}}function E(t){return t.data.count()}function L(t,e,n){var i=e.uid,r=t._pipelineMap.get(i);!r.head&&(r.head=n),r.tail&&r.tail.pipe(n),r.tail=n,n.__idxInPipeline=r.count++,n.__pipeline=r}function P(t){O=null;try{t(R,N)}catch(e){}return O}v.wrapStageHandler=function(t,e){return o(t)&&(t={overallReset:t,seriesType:P(t)}),t.uid=d("stageHandler"),e&&(t.visualType=e),t};var O,R={},N={};function B(t,e){for(var n in e.prototype)t[n]=l}B(R,f),B(N,p),R.eachSeriesByType=R.eachRawSeriesByType=function(t){O=t},R.eachComponent=function(t){"series"===t.mainType&&t.subType&&(O=t.subType)};var z=v;t.exports=z},"6a4c":function(t,e,n){var i=n("4527"),r=n("6d8b"),a=n("0fd3"),o=n("401b");function s(t,e,n){a.call(this,t,e,n),this._lastFrame=0,this._lastFramePercent=0}var l=s.prototype;l.createLine=function(t,e,n){return new i(t,e,n)},l.updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,r=1;r<e.length;r++){var a=e[r-1],s=e[r];i+=o.dist(a,s),n.push(i)}if(0!==i){for(r=0;r<n.length;r++)n[r]/=i;this._offsets=n,this._length=i}},l.getLineLength=function(t){return this._length},l.updateSymbolPosition=function(t){var e=t.__t,n=this._points,i=this._offsets,r=n.length;if(i){var a=this._lastFrame;if(e<this._lastFramePercent){var s=Math.min(a+1,r-1);for(l=s;l>=0;l--)if(i[l]<=e)break;l=Math.min(l,r-2)}else{for(var l=a;l<r;l++)if(i[l]>e)break;l=Math.min(l-1,r-2)}o.lerp(t.position,n[l],n[l+1],(e-i[l])/(i[l+1]-i[l]));var c=n[l+1][0]-n[l][0],u=n[l+1][1]-n[l][1];t.rotation=-Math.atan2(u,c)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=e,t.ignore=!1}},r.inherits(s,a);var c=s;t.exports=c},"6acf":function(t,e,n){var i=n("eda2"),r=n("dcb3"),a=n("2306"),o=n("ff2e"),s=n("1687"),l=n("fab2"),c=n("6679"),u=r.extend({makeElOption:function(t,e,n,r,a){var s=n.axis;"angle"===s.dim&&(this.animationThreshold=Math.PI/18);var l,c=s.polar,u=c.getOtherAxis(s),f=u.getExtent();l=s["dataTo"+i.capitalFirst(s.dim)](e);var p=r.get("type");if(p&&"none"!==p){var g=o.buildElStyle(r),m=d[p](s,c,l,f,g);m.style=g,t.graphicKey=m.type,t.pointer=m}var v=r.get("label.margin"),y=h(e,n,r,c,v);o.buildLabelElOption(t,n,r,a,y)}});function h(t,e,n,i,r){var o=e.axis,c=o.dataToCoord(t),u=i.getAngleAxis().getExtent()[0];u=u/180*Math.PI;var h,d,f,p=i.getRadiusAxis().getExtent();if("radius"===o.dim){var g=s.create();s.rotate(g,g,u),s.translate(g,g,[i.cx,i.cy]),h=a.applyTransform([c,-r],g);var m=e.getModel("axisLabel").get("rotate")||0,v=l.innerTextLayout(u,m*Math.PI/180,-1);d=v.textAlign,f=v.textVerticalAlign}else{var y=p[1];h=i.coordToPoint([y+r,c]);var x=i.cx,b=i.cy;d=Math.abs(h[0]-x)/y<.3?"center":h[0]>x?"left":"right",f=Math.abs(h[1]-b)/y<.3?"middle":h[1]>b?"top":"bottom"}return{position:h,align:d,verticalAlign:f}}var d={line:function(t,e,n,i,r){return"angle"===t.dim?{type:"Line",shape:o.makeLineShape(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i,r){var a=Math.max(1,t.getBandWidth()),s=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:o.makeSectorShape(e.cx,e.cy,i[0],i[1],(-n-a/2)*s,(a/2-n)*s)}:{type:"Sector",shape:o.makeSectorShape(e.cx,e.cy,n-a/2,n+a/2,0,2*Math.PI)}}};c.registerAxisPointerClass("PolarAxisPointer",u);var f=u;t.exports=f},"6bd4":function(t,e){var n={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function i(t,e){if("world"===t){var i=n[e.name];if(i){var r=e.center;r[0]=i[0],r[1]=i[1]}}}t.exports=i},"6c12":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("3eba")),a=n("6d8b"),o=n("fab2"),s=n("2306"),l=["axisLine","axisTickLabel","axisName"],c=r.extendComponentView({type:"radar",render:function(t,e,n){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),i=a.map(n,(function(t){var n=new o(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return n}));a.each(i,(function(t){a.each(l,t.add,t),this.group.add(t.getGroup())}),this)},_buildSplitLineAndArea:function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),l=r.getModel("lineStyle"),c=o.getModel("areaStyle"),u=r.get("show"),h=o.get("show"),d=l.get("color"),f=c.get("color");d=a.isArray(d)?d:[d],f=a.isArray(f)?f:[f];var p=[],g=[];if("circle"===i)for(var m=n[0].getTicksCoords(),v=e.cx,y=e.cy,x=0;x<m.length;x++){if(u){var b=k(p,d,x);p[b].push(new s.Circle({shape:{cx:v,cy:y,r:m[x].coord}}))}if(h&&x<m.length-1){b=k(g,f,x);g[b].push(new s.Ring({shape:{cx:v,cy:y,r0:m[x].coord,r:m[x+1].coord}}))}}else{var _,w=a.map(n,(function(t,n){var i=t.getTicksCoords();return _=null==_?i.length-1:Math.min(i.length-1,_),a.map(i,(function(t){return e.coordToPoint(t.coord,n)}))})),S=[];for(x=0;x<=_;x++){for(var A=[],C=0;C<n.length;C++)A.push(w[C][x]);if(A[0]&&A.push(A[0].slice()),u){b=k(p,d,x);p[b].push(new s.Polyline({shape:{points:A}}))}if(h&&S){b=k(g,f,x-1);g[b].push(new s.Polygon({shape:{points:A.concat(S)}}))}S=A.slice().reverse()}}var I=l.getLineStyle(),T=c.getAreaStyle();a.each(g,(function(t,e){this.group.add(s.mergePath(t,{style:a.defaults({stroke:"none",fill:f[e%f.length]},T),silent:!0}))}),this),a.each(p,(function(t,e){this.group.add(s.mergePath(t,{style:a.defaults({fill:"none",stroke:d[e%d.length]},I),silent:!0}))}),this)}function k(t,e,n){var i=n%e.length;return t[i]=t[i]||[],i}}});t.exports=c},"6c12f":function(t,e,n){var i=n("3eba");n("2cfc"),n("adf4"),n("255c");var r=n("527a"),a=n("71b2"),o=n("d3f4");i.registerLayout(r),i.registerVisual(a),i.registerProcessor(o("themeRiver"))},"6cb7":function(t,e,n){var i=n("6d8b"),r=n("4319"),a=n("8918"),o=n("625e"),s=o.enableClassManagement,l=o.parseClassType,c=n("e0d3"),u=c.makeInner,h=n("f934"),d=n("de1c"),f=u(),p=r.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,n,i){r.call(this,t,e,n,i),this.uid=a.getUID("ec_cpt_model")},init:function(t,e,n,i){this.mergeDefaultAndTheme(t,n)},mergeDefaultAndTheme:function(t,e){var n=this.layoutMode,r=n?h.getLayoutParams(t):{},a=e.getTheme();i.merge(t,a.get(this.mainType)),i.merge(t,this.getDefaultOption()),n&&h.mergeLayoutParam(t,r,n)},mergeOption:function(t,e){i.merge(this.option,t,!0);var n=this.layoutMode;n&&h.mergeLayoutParam(this.option,t,n)},optionUpdated:function(t,e){},getDefaultOption:function(){var t=f(this);if(!t.defaultOption){var e=[],n=this.constructor;while(n){var r=n.prototype.defaultOption;r&&e.push(r),n=n.superClass}for(var a={},o=e.length-1;o>=0;o--)a=i.merge(a,e[o],!0);t.defaultOption=a}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});function g(t){var e=[];return i.each(p.getClassesByMainType(t),(function(t){e=e.concat(t.prototype.dependencies||[])})),e=i.map(e,(function(t){return l(t).main})),"dataset"!==t&&i.indexOf(e,"dataset")<=0&&e.unshift("dataset"),e}s(p,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(p),a.enableTopologicalTravel(p,g),i.mixin(p,d);var m=p;t.exports=m},"6cc5":function(t,e,n){var i=n("6d8b"),r=n("401b"),a=n("1687"),o=n("9850"),s=n("0cde"),l=r.applyTransform;function c(){s.call(this)}function u(t){this.name=t,this.zoomLimit,s.call(this),this._roamTransformable=new c,this._rawTransformable=new c,this._center,this._zoom}function h(t,e,n,i){var r=n.seriesModel,a=r?r.coordinateSystem:null;return a===this?a[t](i):null}i.mixin(c,s),u.prototype={constructor:u,type:"view",dimensions:["x","y"],setBoundingRect:function(t,e,n,i){return this._rect=new o(t,e,n,i),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,e,n,i){this.transformTo(t,e,n,i),this._viewRect=new o(t,e,n,i)},transformTo:function(t,e,n,i){var r=this.getBoundingRect(),a=this._rawTransformable;a.transform=r.calculateTransform(new o(t,e,n,i)),a.decomposeTransform(),this._updateTransform()},setCenter:function(t){t&&(this._center=t,this._updateCenterAndZoom())},setZoom:function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect(),e=t.x+t.width/2,n=t.y+t.height/2;return[e,n]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),a=this.getZoom();i=r.applyTransform([],i,t),n=r.applyTransform([],n,t),e.origin=i,e.position=[n[0]-i[0],n[1]-i[1]],e.scale=[a,a],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),a.copy(this.transform||(this.transform=[]),e.transform||a.create()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],a.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var t=this._roamTransformable.transform,e=this._rawTransformable;return{roamTransform:t?i.slice(t):a.create(),rawScale:i.slice(e.scale),rawPosition:i.slice(e.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,e,n){var i=e?this._rawTransform:this.transform;return n=n||[],i?l(n,t,i):r.copy(n,t)},pointToData:function(t){var e=this.invTransform;return e?l([],t,e):[t[0],t[1]]},convertToPixel:i.curry(h,"dataToPoint"),convertFromPixel:i.curry(h,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},i.mixin(u,s);var d=u;t.exports=d},"6cd8":function(t,e,n){var i=n("6d8b"),r=n("2306"),a=n("1418"),o=n("22da"),s=o.radialCoordinate,l=n("3eba"),c=n("e263"),u=n("6cc5"),h=n("01ef"),d=n("4a01"),f=n("c526"),p=f.onIrrelevantElement,g=n("4e08"),m=(g.__DEV__,n("3842")),v=m.parsePercent,y=r.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,a=n[0],o=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(a[0],a[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,c=1-l,u=v(e.forkPosition,1),h=[];h[l]=r[l],h[c]=r[c]+(o[c]-r[c])*u,t.moveTo(r[0],r[1]),t.lineTo(h[0],h[1]),t.moveTo(a[0],a[1]),h[l]=a[l],t.lineTo(h[0],h[1]),h[l]=o[l],t.lineTo(h[0],h[1]),t.lineTo(o[0],o[1]);for(var d=1;d<i-1;d++){var f=n[d];t.moveTo(f[0],f[1]),h[l]=f[l],t.lineTo(h[0],h[1])}}}),x=l.extendChartView({type:"tree",init:function(t,e){this._oldTree,this._mainGroup=new r.Group,this._controller=new d(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(t,e,n,i){var r=t.getData(),a=t.layoutInfo,o=this._mainGroup,s=t.get("layout");"radial"===s?o.attr("position",[a.x+a.width/2,a.y+a.height/2]):o.attr("position",[a.x,a.y]),this._updateViewCoordSys(t,a,s),this._updateController(t,e,n);var l=this._data,c={expandAndCollapse:t.get("expandAndCollapse"),layout:s,edgeShape:t.get("edgeShape"),edgeForkPosition:t.get("edgeForkPosition"),orient:t.getOrient(),curvature:t.get("lineStyle.curveness"),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverAnimation:t.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};r.diff(l).add((function(e){b(r,e)&&w(r,e,null,o,t,c)})).update((function(e,n){var i=l.getItemGraphicEl(n);b(r,e)?w(r,e,i,o,t,c):i&&A(l,n,i,o,t,c)})).remove((function(e){var n=l.getItemGraphicEl(e);n&&A(l,e,n,o,t,c)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===c.expandAndCollapse&&r.eachItemGraphicEl((function(e,i){e.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:i})}))})),this._data=r},_updateViewCoordSys:function(t){var e=t.getData(),n=[];e.each((function(t){var i=e.getItemLayout(t);!i||isNaN(i.x)||isNaN(i.y)||n.push([+i.x,+i.y])}));var i=[],r=[];c.fromPoints(n,i,r);var a=this._min,o=this._max;r[0]-i[0]===0&&(i[0]=a?a[0]:i[0]-1,r[0]=o?o[0]:r[0]+1),r[1]-i[1]===0&&(i[1]=a?a[1]:i[1]-1,r[1]=o?o[1]:r[1]+1);var s=t.coordinateSystem=new u;s.zoomLimit=t.get("scaleLimit"),s.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1]),s.setCenter(t.get("center")),s.setZoom(t.get("zoom")),this.group.attr({position:s.position,scale:s.scale}),this._viewCoordSys=s,this._min=i,this._max=r},_updateController:function(t,e,n){var i=this._controller,r=this._controllerHost,a=this.group;i.setPointerChecker((function(e,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!p(e,n,t)})),i.enable(t.get("roam")),r.zoomLimit=t.get("scaleLimit"),r.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(e){h.updateViewOnPan(r,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})}),this).on("zoom",(function(e){h.updateViewOnZoom(r,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),this._updateNodeAndLinkScale(t)}),this)},_updateNodeAndLinkScale:function(t){var e=t.getData(),n=this._getNodeGlobalScale(t),i=[n,n];e.eachItemGraphicEl((function(t,e){t.attr("scale",i)}))},_getNodeGlobalScale:function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,i=e.scale,r=i&&i[0]||1,a=e.getZoom(),o=(a-1)*n+1;return o/r},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function b(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)&&"none"!==t.getItemVisual(e,"symbol")}function _(t,e,n){return n.itemModel=e,n.itemStyle=e.getModel("itemStyle").getItemStyle(),n.hoverItemStyle=e.getModel("emphasis.itemStyle").getItemStyle(),n.lineStyle=e.getModel("lineStyle").getLineStyle(),n.labelModel=e.getModel("label"),n.hoverLabelModel=e.getModel("emphasis.label"),!1===t.isExpand&&0!==t.children.length?n.symbolInnerColor=n.itemStyle.fill:n.symbolInnerColor="#fff",n}function w(t,e,n,i,o,s){var l=!n,c=t.tree.getNodeByDataIndex(e),u=c.getModel(),h=(s=_(c,u,s),t.tree.root),d=c.parentNode===h?c:c.parentNode||c,f=t.getItemGraphicEl(d.dataIndex),p=d.getLayout(),g=f?{x:f.position[0],y:f.position[1],rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:p,m=c.getLayout();l?(n=new a(t,e,s),n.attr("position",[g.x,g.y])):n.updateData(t,e,s),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=m.rawX,n.__radialRawY=m.rawY,i.add(n),t.setItemGraphicEl(e,n),r.updateProps(n,{position:[m.x,m.y]},o);var v=n.getSymbolPath();if("radial"===s.layout){var y,x,b=h.children[0],w=b.getLayout(),A=b.children.length;if(m.x===w.x&&!0===c.isExpand){var C={};C.x=(b.children[0].getLayout().x+b.children[A-1].getLayout().x)/2,C.y=(b.children[0].getLayout().y+b.children[A-1].getLayout().y)/2,y=Math.atan2(C.y-w.y,C.x-w.x),y<0&&(y=2*Math.PI+y),x=C.x<w.x,x&&(y-=Math.PI)}else y=Math.atan2(m.y-w.y,m.x-w.x),y<0&&(y=2*Math.PI+y),0===c.children.length||0!==c.children.length&&!1===c.isExpand?(x=m.x<w.x,x&&(y-=Math.PI)):(x=m.x>w.x,x||(y-=Math.PI));var I=x?"left":"right",T=s.labelModel.get("rotate"),k=T*(Math.PI/180);v.setStyle({textPosition:s.labelModel.get("position")||I,textRotation:null==T?-y:k,textOrigin:"center",verticalAlign:"middle"})}S(o,c,h,n,g,p,m,i,s)}function S(t,e,n,a,o,s,l,c,u){var h=u.edgeShape,d=a.__edge;if("curve"===h)e.parentNode&&e.parentNode!==n&&(d||(d=a.__edge=new r.BezierCurve({shape:C(u,o,o),style:i.defaults({opacity:0,strokeNoScale:!0},u.lineStyle)})),r.updateProps(d,{shape:C(u,s,l),style:{opacity:1}},t));else if("polyline"===h&&"orthogonal"===u.layout&&e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var f=e.children,p=[],g=0;g<f.length;g++){var m=f[g].getLayout();p.push([m.x,m.y])}d||(d=a.__edge=new y({shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]],orient:u.orient,forkPosition:u.edgeForkPosition},style:i.defaults({opacity:0,strokeNoScale:!0},u.lineStyle)})),r.updateProps(d,{shape:{parentPoint:[l.x,l.y],childPoints:p},style:{opacity:1}},t)}c.add(d)}function A(t,e,n,i,a,o){var s,l=t.tree.getNodeByDataIndex(e),c=t.tree.root,u=l.getModel(),h=(o=_(l,u,o),l.parentNode===c?l:l.parentNode||l),d=o.edgeShape;while(s=h.getLayout(),null==s)h=h.parentNode===c?h:h.parentNode||h;r.updateProps(n,{position:[s.x+1,s.y+1]},a,(function(){i.remove(n),t.setItemGraphicEl(e,null)})),n.fadeOut(null,{keepLabel:!0});var f=t.getItemGraphicEl(h.dataIndex),p=f.__edge,g=n.__edge||(!1===h.isExpand||1===h.children.length?p:void 0);d=o.edgeShape;g&&("curve"===d?r.updateProps(g,{shape:C(o,s,s),style:{opacity:0}},a,(function(){i.remove(g)})):"polyline"===d&&"orthogonal"===o.layout&&r.updateProps(g,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},a,(function(){i.remove(g)})))}function C(t,e,n){var i,r,a,o,l,c,u,h,d=t.orient;if("radial"===t.layout){l=e.rawX,u=e.rawY,c=n.rawX,h=n.rawY;var f=s(l,u),p=s(l,u+(h-u)*t.curvature),g=s(c,h+(u-h)*t.curvature),m=s(c,h);return{x1:f.x,y1:f.y,x2:m.x,y2:m.y,cpx1:p.x,cpy1:p.y,cpx2:g.x,cpy2:g.y}}return l=e.x,u=e.y,c=n.x,h=n.y,"LR"!==d&&"RL"!==d||(i=l+(c-l)*t.curvature,r=u,a=c+(l-c)*t.curvature,o=h),"TB"!==d&&"BT"!==d||(i=l,r=u+(h-u)*t.curvature,a=c,o=h+(u-h)*t.curvature),{x1:l,y1:u,x2:c,y2:h,cpx1:i,cpy1:r,cpx2:a,cpy2:o}}t.exports=x},"6d8b":function(t,e){var n={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},i={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},r=Object.prototype.toString,a=Array.prototype,o=a.forEach,s=a.filter,l=a.slice,c=a.map,u=a.reduce,h={};function d(t,e){"createCanvas"===t&&(y=null),h[t]=e}function f(t){if(null==t||"object"!==typeof t)return t;var e=t,a=r.call(t);if("[object Array]"===a){if(!X(t)){e=[];for(var o=0,s=t.length;o<s;o++)e[o]=f(t[o])}}else if(i[a]){if(!X(t)){var l=t.constructor;if(t.constructor.from)e=l.from(t);else{e=new l(t.length);for(o=0,s=t.length;o<s;o++)e[o]=f(t[o])}}}else if(!n[a]&&!X(t)&&!z(t))for(var c in e={},t)t.hasOwnProperty(c)&&(e[c]=f(t[c]));return e}function p(t,e,n){if(!R(e)||!R(t))return n?f(e):t;for(var i in e)if(e.hasOwnProperty(i)){var r=t[i],a=e[i];!R(a)||!R(r)||L(a)||L(r)||z(a)||z(r)||N(a)||N(r)||X(a)||X(r)?!n&&i in t||(t[i]=f(e[i],!0)):p(r,a,n)}return t}function g(t,e){for(var n=t[0],i=1,r=t.length;i<r;i++)n=p(n,t[i],e);return n}function m(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function v(t,e,n){for(var i in e)e.hasOwnProperty(i)&&(n?null!=e[i]:null==t[i])&&(t[i]=e[i]);return t}var y,x=function(){return h.createCanvas()};function b(){return y||(y=x().getContext("2d")),y}function _(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function w(t,e){var n=t.prototype;function i(){}for(var r in i.prototype=e.prototype,t.prototype=new i,n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}function S(t,e,n){t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,v(t,e,n)}function A(t){if(t)return"string"!==typeof t&&"number"===typeof t.length}function C(t,e,n){if(t&&e)if(t.forEach&&t.forEach===o)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(n,t[a],a,t)}function I(t,e,n){if(t&&e){if(t.map&&t.map===c)return t.map(e,n);for(var i=[],r=0,a=t.length;r<a;r++)i.push(e.call(n,t[r],r,t));return i}}function T(t,e,n,i){if(t&&e){if(t.reduce&&t.reduce===u)return t.reduce(e,n,i);for(var r=0,a=t.length;r<a;r++)n=e.call(i,n,t[r],r,t);return n}}function k(t,e,n){if(t&&e){if(t.filter&&t.filter===s)return t.filter(e,n);for(var i=[],r=0,a=t.length;r<a;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}}function M(t,e,n){if(t&&e)for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t))return t[i]}function D(t,e){var n=l.call(arguments,2);return function(){return t.apply(e,n.concat(l.call(arguments)))}}function E(t){var e=l.call(arguments,1);return function(){return t.apply(this,e.concat(l.call(arguments)))}}function L(t){return"[object Array]"===r.call(t)}function P(t){return"function"===typeof t}function O(t){return"[object String]"===r.call(t)}function R(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function N(t){return!!n[r.call(t)]}function B(t){return!!i[r.call(t)]}function z(t){return"object"===typeof t&&"number"===typeof t.nodeType&&"object"===typeof t.ownerDocument}function F(t){return t!==t}function V(t){for(var e=0,n=arguments.length;e<n;e++)if(null!=arguments[e])return arguments[e]}function W(t,e){return null!=t?t:e}function U(t,e,n){return null!=t?t:null!=e?e:n}function H(){return Function.call.apply(l,arguments)}function G(t){if("number"===typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function j(t,e){if(!t)throw new Error(e)}function Y(t){return null==t?null:"function"===typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}h.createCanvas=function(){return document.createElement("canvas")};var q="__ec_primitive__";function K(t){t[q]=!0}function X(t){return t[q]}function Z(t){var e=L(t);this.data={};var n=this;function i(t,i){e?n.set(t,i):n.set(i,t)}t instanceof Z?t.each(i):t&&C(t,i)}function Q(t){return new Z(t)}function J(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n}function $(){}Z.prototype={constructor:Z,get:function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},set:function(t,e){return this.data[t]=e},each:function(t,e){for(var n in void 0!==e&&(t=D(t,e)),this.data)this.data.hasOwnProperty(n)&&t(this.data[n],n)},removeKey:function(t){delete this.data[t]}},e.$override=d,e.clone=f,e.merge=p,e.mergeAll=g,e.extend=m,e.defaults=v,e.createCanvas=x,e.getContext=b,e.indexOf=_,e.inherits=w,e.mixin=S,e.isArrayLike=A,e.each=C,e.map=I,e.reduce=T,e.filter=k,e.find=M,e.bind=D,e.curry=E,e.isArray=L,e.isFunction=P,e.isString=O,e.isObject=R,e.isBuiltInObject=N,e.isTypedArray=B,e.isDom=z,e.eqNaN=F,e.retrieve=V,e.retrieve2=W,e.retrieve3=U,e.slice=H,e.normalizeCssArray=G,e.assert=j,e.trim=Y,e.setAsPrimitive=K,e.isPrimitive=X,e.createHashMap=Q,e.concatArray=J,e.noop=$},"6d9a":function(t,e){function n(t,e,n){var i,r=[t],a=[];while(i=r.pop())if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)r.push(o[s])}while(i=a.pop())e(i,n)}function i(t,e){var n,i=[t];while(n=i.pop())if(e(n),n.isExpand){var r=n.children;if(r.length)for(var a=r.length-1;a>=0;a--)i.push(r[a])}}e.eachAfter=n,e.eachBefore=i},"6fda":function(t,e,n){var i=n("6d8b"),r=i.each,a="\0_ec_hist_store";function o(t,e){var n=u(t);r(e,(function(e,i){for(var r=n.length-1;r>=0;r--){var a=n[r];if(a[i])break}if(r<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var s=o.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}})),n.push(e)}function s(t){var e=u(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return r(n,(function(t,n){for(var r=e.length-1;r>=0;r--){t=e[r][n];if(t){i[n]=t;break}}})),i}function l(t){t[a]=null}function c(t){return u(t).length}function u(t){var e=t[a];return e||(e=t[a]=[{}]),e}e.push=o,e.pop=s,e.clear=l,e.count=c},7023:function(t,e,n){var i=n("6d8b"),r={updateSelectedMap:function(t){this._targetList=i.isArray(t)?t.slice():[],this._selectTargetMap=i.reduce(t||[],(function(t,e){return t.set(e.name,e),t}),i.createHashMap())},select:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t),i=this.get("selectedMode");"single"===i&&this._selectTargetMap.each((function(t){t.selected=!1})),n&&(n.selected=!0)},unSelect:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);n&&(n.selected=!1)},toggleSelected:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);if(null!=n)return this[n.selected?"unSelect":"select"](t,e),n.selected},isSelected:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);return n&&n.selected}};t.exports=r},"71ad":function(t,e,n){var i=n("6d8b"),r={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},a={};a.categoryAxis=i.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},r),a.valueAxis=i.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},r),a.timeAxis=i.defaults({scale:!0,min:"dataMin",max:"dataMax"},a.valueAxis),a.logAxis=i.defaults({scale:!0,logBase:10},a.valueAxis);var o=a;t.exports=o},"71b2":function(t,e,n){var i=n("6d8b"),r=i.createHashMap;function a(t){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),n=t.getRawData(),i=t.get("color"),a=r();e.each((function(t){a.set(e.getRawIndex(t),t)})),n.each((function(r){var o=n.getName(r),s=i[(t.nameMap.get(o)-1)%i.length];n.setItemVisual(r,"color",s);var l=a.get(r);null!=l&&e.setItemVisual(l,"color",s)}))}))}t.exports=a},7293:function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("4f85")),a=n("6179"),o=n("6d8b"),s=o.concatArray,l=o.mergeAll,c=o.map,u=n("eda2"),h=u.encodeHTML,d=(n("2039"),"undefined"===typeof Uint32Array?Array:Uint32Array),f="undefined"===typeof Float64Array?Array:Float64Array;function p(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=c(e,(function(t){var e=[t[0].coord,t[1].coord],n={coords:e};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),l([n,t[0],t[1]])})))}var g=r.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(t){t.data=t.data||[],p(t);var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count)),g.superApply(this,"init",arguments)},mergeOption:function(t){if(t.data=t.data||[],p(t),t.data){var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count))}g.superApply(this,"mergeOption",arguments)},appendData:function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=s(this._flatCoords,e.flatCoords),this._flatCoordsOffset=s(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},_getCoordsFromItemModel:function(t){var e=this.getData().getItemModel(t),n=e.option instanceof Array?e.option:e.getShallow("coords");return n},getLineCoordsCount:function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},getLineCoords:function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;r<i;r++)e[r]=e[r]||[],e[r][0]=this._flatCoords[n+2*r],e[r][1]=this._flatCoords[n+2*r+1];return i}var a=this._getCoordsFromItemModel(t);for(r=0;r<a.length;r++)e[r]=e[r]||[],e[r][0]=a[r][0],e[r][1]=a[r][1];return a.length},_processFlatCoordsArray:function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),"number"===typeof t[0]){for(var n=t.length,i=new d(n),r=new f(n),a=0,o=0,s=0,l=0;l<n;){s++;var c=t[l++];i[o++]=a+e,i[o++]=c;for(var u=0;u<c;u++){var h=t[l++],p=t[l++];r[a++]=h,r[a++]=p}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,o),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},getInitialData:function(t,e){var n=new a(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,i,r){if(t instanceof Array)return NaN;n.hasItemOption=!0;var a=t.value;return null!=a?a instanceof Array?a[r]:a:void 0})),n},formatTooltip:function(t){var e=this.getData(),n=e.getItemModel(t),i=n.get("name");if(i)return i;var r=n.get("fromName"),a=n.get("toName"),o=[];return null!=r&&o.push(r),null!=a&&o.push(a),h(o.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),m=g;t.exports=m},"72b6":function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=n("2306"),o=n("eda2"),s=n("f934"),l=n("5f14"),c=i.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(t,e){this.ecModel=t,this.api=e,this.visualMapModel},render:function(t,e,n,i){this.visualMapModel=t,!1!==t.get("show")?this.doRender.apply(this,arguments):this.group.removeAll()},renderBackground:function(t){var e=this.visualMapModel,n=o.normalizeCssArray(e.get("padding")||0),i=t.getBoundingRect();t.add(new a.Rect({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},getControllerVisual:function(t,e,n){n=n||{};var i=n.forceState,a=this.visualMapModel,o={};if("symbol"===e&&(o.symbol=a.get("itemSymbol")),"color"===e){var s=a.get("contentColor");o.color=s}function c(t){return o[t]}function u(t,e){o[t]=e}var h=a.controllerVisuals[i||a.getValueState(t)],d=l.prepareVisualTypes(h);return r.each(d,(function(i){var r=h[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=h.__alphaForOpacity),l.dependsOn(i,e)&&r&&r.applyVisual(t,c,u)})),o[e]},positionGroup:function(t){var e=this.visualMapModel,n=this.api;s.positionElement(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},doRender:r.noop});t.exports=c},7368:function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),a=n("625e"),o=a.enableClassCheck;function s(t){return"_EC_"+t}var l=function(t){this._directed=t||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},c=l.prototype;function u(t,e){this.id=null==t?"":t,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==e?-1:e}function h(t,e,n){this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}c.type="graph",c.isDirected=function(){return this._directed},c.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[s(t)]){var i=new u(t,e);return i.hostGraph=this,this.nodes.push(i),n[s(t)]=i,i}},c.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},c.getNodeById=function(t){return this._nodesMap[s(t)]},c.addEdge=function(t,e,n){var i=this._nodesMap,r=this._edgesMap;if("number"===typeof t&&(t=this.nodes[t]),"number"===typeof e&&(e=this.nodes[e]),u.isInstance(t)||(t=i[s(t)]),u.isInstance(e)||(e=i[s(e)]),t&&e){var a=t.id+"-"+e.id;if(!r[a]){var o=new h(t,e,n);return o.hostGraph=this,this._directed&&(t.outEdges.push(o),e.inEdges.push(o)),t.edges.push(o),t!==e&&e.edges.push(o),this.edges.push(o),r[a]=o,o}}},c.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},c.getEdge=function(t,e){u.isInstance(t)&&(t=t.id),u.isInstance(e)&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},c.eachNode=function(t,e){for(var n=this.nodes,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&t.call(e,n[r],r)},c.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},c.breadthFirstTraverse=function(t,e,n,i){if(u.isInstance(e)||(e=this._nodesMap[s(e)]),e){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!t.call(i,e,null)){var o=[e];while(o.length){var l=o.shift(),c=l[r];for(a=0;a<c.length;a++){var h=c[a],d=h.node1===l?h.node2:h.node1;if(!d.__visited){if(t.call(i,d,l))return;o.push(d),d.__visited=!0}}}}}},c.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,i=this.edges,r=0,a=n.length;r<a;r++)n[r].dataIndex=-1;for(r=0,a=t.count();r<a;r++)n[t.getRawIndex(r)].dataIndex=r;e.filterSelf((function(t){var n=i[e.getRawIndex(t)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(r=0,a=i.length;r<a;r++)i[r].dataIndex=-1;for(r=0,a=e.count();r<a;r++)i[e.getRawIndex(r)].dataIndex=r},c.clone=function(){for(var t=new l(this._directed),e=this.nodes,n=this.edges,i=0;i<e.length;i++)t.addNode(e[i].id,e[i].dataIndex);for(i=0;i<n.length;i++){var r=n[i];t.addEdge(r.node1.id,r.node2.id,r.dataIndex)}return t},u.prototype={constructor:u,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}}},h.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}};var d=function(t,e){return{getValue:function(n){var i=this[t][e];return i.get(i.getDimension(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n,i){return this[t][e].getItemVisual(this.dataIndex,n,i)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}};r.mixin(u,d("hostGraph","data")),r.mixin(h,d("hostGraph","edgeData")),l.Node=u,l.Edge=h,o(u),o(h);var f=l;t.exports=f},"73ca":function(t,e,n){var i=n("2306"),r=n("7e5b");function a(t){this._ctor=t||r,this.group=new i.Group}var o=a.prototype;function s(t,e,n,i){var r=e.getItemLayout(n);if(d(r)){var a=new t._ctor(e,n,i);e.setItemGraphicEl(n,a),t.group.add(a)}}function l(t,e,n,i,r,a){var o=e.getItemGraphicEl(i);d(n.getItemLayout(r))?(o?o.updateData(n,r,a):o=new t._ctor(n,r,a),n.setItemGraphicEl(r,o),t.group.add(o)):t.group.remove(o)}function c(t){return t.animators&&t.animators.length>0}function u(t){var e=t.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),hoverLineStyle:e.getModel("emphasis.lineStyle").getLineStyle(),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label")}}function h(t){return isNaN(t[0])||isNaN(t[1])}function d(t){return!h(t[0])&&!h(t[1])}o.isPersistent=function(){return!0},o.updateData=function(t){var e=this,n=e.group,i=e._lineData;e._lineData=t,i||n.removeAll();var r=u(t);t.diff(i).add((function(n){s(e,t,n,r)})).update((function(n,a){l(e,i,t,a,n,r)})).remove((function(t){n.remove(i.getItemGraphicEl(t))})).execute()},o.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},o.incrementalPrepareUpdate=function(t){this._seriesScope=u(t),this._lineData=null,this.group.removeAll()},o.incrementalUpdate=function(t,e){function n(t){t.isGroup||c(t)||(t.incremental=t.useHoverLayer=!0)}for(var i=t.start;i<t.end;i++){var r=e.getItemLayout(i);if(d(r)){var a=new this._ctor(e,i,this._seriesScope);a.traverse(n),this.group.add(a),e.setItemGraphicEl(i,a)}}},o.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},o._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var f=a;t.exports=f},7419:function(t,e,n){var i=n("3eba"),r=n("b336");n("bc5f"),n("ab05"),n("307a"),n("3cd6"),n("d6ef"),i.registerPreprocessor(r)},"74cb":function(t,e){var n={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i))},elasticOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-n.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*n.bounceIn(2*t):.5*n.bounceOut(2*t-1)+.5}},i=n;t.exports=i},7661:function(t,e,n){var i=n("0c41"),r=n("3eba"),a=r.extendComponentView({type:"geo",init:function(t,e){var n=new i(e,!0);this._mapDraw=n,this.group.add(n.group)},render:function(t,e,n,i){if(!i||"geoToggleSelect"!==i.type||i.from!==this.uid){var r=this._mapDraw;t.get("show")?r.draw(t,e,n,this,i):this._mapDraw.group.removeAll(),this.group.silent=t.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});t.exports=a},"767c":function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=n("607d"),o=n("29a8"),s=n("2145"),l=o.toolbox.dataView,c=new Array(60).join("-"),u="\t";function h(t){var e={},n=[],i=[];return t.eachRawSeries((function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(t);else{var a=r.getBaseAxis();if("category"===a.type){var o=a.dim+"_"+a.index;e[o]||(e[o]={categoryAxis:a,valueAxis:r.getOtherAxis(a),series:[]},i.push({axisDim:a.dim,axisIndex:a.index})),e[o].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:i}}function d(t){var e=[];return r.each(t,(function(t,n){var i=t.categoryAxis,a=t.valueAxis,o=a.dim,s=[" "].concat(r.map(t.series,(function(t){return t.name}))),l=[i.model.getCategories()];r.each(t.series,(function(t){l.push(t.getRawData().mapArray(o,(function(t){return t})))}));for(var c=[s.join(u)],h=0;h<l[0].length;h++){for(var d=[],f=0;f<l.length;f++)d.push(l[f][h]);c.push(d.join(u))}e.push(c.join("\n"))})),e.join("\n\n"+c+"\n\n")}function f(t){return r.map(t,(function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,r=arguments[t-1],a=e.getName(r),o=0;o<t-1;o++)i[o]=arguments[o];n.push((a?a+u:"")+i.join(u))})),n.join("\n")})).join("\n\n"+c+"\n\n")}function p(t){var e=h(t);return{value:r.filter([d(e.seriesGroupByCategoryAxis),f(e.other)],(function(t){return t.replace(/[\n\t\s]/g,"")})).join("\n\n"+c+"\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(u)>=0)return!0}var v=new RegExp("["+u+"]+","g");function y(t){for(var e=t.split(/\n+/g),n=g(e.shift()).split(v),i=[],a=r.map(n,(function(t){return{name:t,data:[]}})),o=0;o<e.length;o++){var s=g(e[o]).split(v);i.push(s.shift());for(var l=0;l<s.length;l++)a[l]&&(a[l].data[o]=s[l])}return{series:a,categories:i}}function x(t){for(var e=t.split(/\n+/g),n=g(e.shift()),i=[],r=0;r<e.length;r++){var a,o=g(e[r]).split(v),s="",l=!1;isNaN(o[0])?(l=!0,s=o[0],o=o.slice(1),i[r]={name:s,value:[]},a=i[r].value):a=i[r]=[];for(var c=0;c<o.length;c++)a.push(+o[c]);1===a.length&&(l?i[r].value=a[0]:i[r]=a[0])}return{name:n,data:i}}function b(t,e){var n=t.split(new RegExp("\n*"+c+"\n*","g")),i={series:[]};return r.each(n,(function(t,n){if(m(t)){var r=y(t),a=e[n],o=a.axisDim+"Axis";a&&(i[o]=i[o]||[],i[o][a.axisIndex]={data:r.categories},i.series=i.series.concat(r.series))}else{r=x(t);i.series.push(r)}})),i}function _(t){this._dom=null,this.model=t}function w(t,e){return r.map(t,(function(t,n){var i=e&&e[n];return r.isObject(i)&&!r.isArray(i)?(r.isObject(t)&&!r.isArray(t)&&(t=t.value),r.defaults({value:t},i)):t}))}_.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:r.clone(l.title),lang:r.clone(l.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},_.prototype.onclick=function(t,e){var n=e.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",o.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 c=document.createElement("div"),u=document.createElement("textarea");c.style.cssText="display:block;width:100%;overflow:auto;";var h=i.get("optionToContent"),d=i.get("contentToOption"),f=p(t);if("function"===typeof h){var g=h(e.getOption());"string"===typeof g?c.innerHTML=g:r.isDom(g)&&c.appendChild(g)}else c.appendChild(u),u.readOnly=i.get("readOnly"),u.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",u.style.color=i.get("textColor"),u.style.borderColor=i.get("textareaBorderColor"),u.style.backgroundColor=i.get("textareaColor"),u.value=f.value;var m=f.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"),_=document.createElement("div");y+=";background-color:"+i.get("buttonColor"),y+=";color:"+i.get("buttonTextColor");var w=this;function S(){n.removeChild(o),w._dom=null}a.addEventListener(x,"click",S),a.addEventListener(_,"click",(function(){var t;try{t="function"===typeof d?d(c,e.getOption()):b(u.value,m)}catch(n){throw S(),new Error("Data view format error "+n)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),S()})),x.innerHTML=l[1],_.innerHTML=l[2],_.style.cssText=y,x.style.cssText=y,!i.get("readOnly")&&v.appendChild(_),v.appendChild(x),o.appendChild(s),o.appendChild(c),o.appendChild(v),c.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},_.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},_.prototype.dispose=function(t,e){this.remove(t,e)},s.register("dataView",_),i.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var n=[];r.each(t.newOption.series,(function(t){var i=e.getSeriesByName(t.name)[0];if(i){var a=i.get("data");n.push({name:t.name,data:w(t.data,a)})}else n.push(r.extend({type:"scatter"},t))})),e.mergeOption(r.defaults({series:n},t.newOption))}));var S=_;t.exports=S},"76a5":function(t,e,n){var i=n("19eb"),r=n("6d8b"),a=n("e86a"),o=n("a73c"),s=n("82eb"),l=s.ContextCachedBy,c=function(t){i.call(this,t)};c.prototype={constructor:c,type:"text",brush:function(t,e){var n=this.style;this.__dirty&&o.normalizeTextStyle(n,!0),n.fill=n.stroke=n.shadowBlur=n.shadowColor=n.shadowOffsetX=n.shadowOffsetY=null;var i=n.text;null!=i&&(i+=""),o.needDrawText(i,n)?(this.setTransform(t),o.renderText(this,t,i,n,null,e),this.restoreTransform(t)):t.__attrCachedBy=l.NONE},getBoundingRect:function(){var t=this.style;if(this.__dirty&&o.normalizeTextStyle(t,!0),!this._rect){var e=t.text;null!=e?e+="":e="";var n=a.getBoundingRect(t.text+"",t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich);if(n.x+=t.x||0,n.y+=t.y||0,o.getStroke(t.textStroke,t.textStrokeWidth)){var i=t.textStrokeWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect}},r.inherits(c,i);var u=c;t.exports=u},7782:function(t,e,n){var i=n("3eba"),r=n("6d8b");function a(t,e){r.each(e,(function(e){e.update="updateView",i.registerAction(e,(function(n,i){var r={};return i.eachComponent({mainType:"series",subType:t,query:n},(function(t){t[e.method]&&t[e.method](n.name,n.dataIndex);var i=t.getData();i.each((function(e){var n=i.getName(e);r[n]=t.isSelected(n)||!1}))})),{name:n.name,selected:r,seriesId:n.seriesId}}))}))}t.exports=a},7887:function(t,e,n){var i=n("6d8b"),r=n("84ce");function a(t,e,n){r.call(this,t,e,n),this.type="value",this.angle=0,this.name="",this.model}i.inherits(a,r);var o=a;t.exports=o},7891:function(t,e,n){var i=n("6d8b");function r(t){var e=t.polar;if(e){i.isArray(e)||(e=[e]);var n=[];i.each(e,(function(e,r){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],i.isArray(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)})),t.polar=n}i.each(t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}t.exports=r},"78f0":function(t,e,n){var i=n("3eba");n("d9f1");var r=i.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e,n=this.ecModel;return n.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});t.exports=r},7919:function(t,e,n){var i=n("f934"),r=i.getLayoutRect,a=i.box,o=i.positionElement,s=n("eda2"),l=n("2306");function c(t,e,n){var i=e.getBoxLayoutParams(),s=e.get("padding"),l={width:n.getWidth(),height:n.getHeight()},c=r(i,l,s);a(e.get("orient"),t,e.get("itemGap"),c.width,c.height),o(t,i,l,s)}function u(t,e){var n=s.normalizeCssArray(e.get("padding")),i=e.getItemStyle(["color","opacity"]);i.fill=e.get("backgroundColor");t=new l.Rect({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1});return t}e.layout=c,e.makeBackground=u},"792e":function(t,e,n){n("1ccf"),n("14d3")},"7b0c":function(t,e,n){var i=n("6cc5"),r=n("f934"),a=r.getLayoutRect,o=n("e263");function s(t,e,n){var i=t.getBoxLayoutParams();return i.aspect=n,a(i,{width:e.getWidth(),height:e.getHeight()})}function l(t,e){var n=[];return t.eachSeriesByType("graph",(function(t){var r=t.get("coordinateSystem");if(!r||"view"===r){var a=t.getData(),l=a.mapArray((function(t){var e=a.getItemModel(t);return[+e.get("x"),+e.get("y")]})),c=[],u=[];o.fromPoints(l,c,u),u[0]-c[0]===0&&(u[0]+=1,c[0]-=1),u[1]-c[1]===0&&(u[1]+=1,c[1]-=1);var h=(u[0]-c[0])/(u[1]-c[1]),d=s(t,e,h);isNaN(h)&&(c=[d.x,d.y],u=[d.x+d.width,d.y+d.height]);var f=u[0]-c[0],p=u[1]-c[1],g=d.width,m=d.height,v=t.coordinateSystem=new i;v.zoomLimit=t.get("scaleLimit"),v.setBoundingRect(c[0],c[1],f,p),v.setViewRect(d.x,d.y,g,m),v.setCenter(t.get("center")),v.setZoom(t.get("zoom")),n.push(v)}})),n}t.exports=l},"7c4d":function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=n("fc82"),o=n("bd9e"),s=n("6fda"),l=n("ef6a"),c=n("29a8"),u=n("2145");n("dd39");var h=c.toolbox.dataZoom,d=r.each,f="\0_ec_\0toolbox-dataZoom_";function p(t,e,n){(this._brushController=new a(n.getZr())).on("brush",r.bind(this._onBrush,this)).mount(),this._isZoomActive}p.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:r.clone(h.title)};var g=p.prototype;g.render=function(t,e,n,i){this.model=t,this.ecModel=e,this.api=n,x(t,e,this,i,n),y(t,e)},g.onclick=function(t,e,n){m[n].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 r.each(["xAxisIndex","yAxisIndex"],(function(n){e[n]=t[n],null==e[n]&&(e[n]="all"),(!1===e[n]||"none"===e[n])&&(e[n]=[])})),e}function y(t,e){t.setIconStatus("back",s.count(e)>1?"emphasis":"normal")}function x(t,e,n,i,r){var a=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(a="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=a,t.setIconStatus("zoom",a?"emphasis":"normal");var s=new o(v(t.option),e,{include:["grid"]});n._brushController.setPanels(s.makePanelOpts(r,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}))).enableBrush(!!a&&{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}})}g._onBrush=function(t,e){if(e.isEnd&&t.length){var n={},i=this.ecModel;this._brushController.updateCovers([]);var r=new o(v(this.model.option),i,{include:["grid"]});r.matchOutputRanges(t,i,(function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(a("x",n,e[0]),a("y",n,e[1])):a({lineX:"x",lineY:"y"}[i],n,e)}})),s.push(i,n),this._dispatchZoomAction(n)}function a(t,e,r){var a=e.getAxis(t),o=a.model,s=c(t,o,i),u=s.findRepresentativeAxisProxy(o).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(r=l(0,r.slice(),a.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:r[0],endValue:r[1]})}function c(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var r=n.getAxisModel(t,e.componentIndex);r&&(i=n)})),i}},g._dispatchZoomAction=function(t){var e=[];d(t,(function(t,n){e.push(r.clone(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},u.register("dataZoom",p),i.registerPreprocessor((function(t){if(t){var e=t.dataZoom||(t.dataZoom=[]);r.isArray(e)||(t.dataZoom=e=[e]);var n=t.toolbox;if(n&&(r.isArray(n)&&(n=n[0]),n&&n.feature)){var i=n.feature.dataZoom;a("xAxis",i),a("yAxis",i)}}function a(t,n){if(n){var i=t+"Index",a=n[i];null==a||"all"===a||r.isArray(a)||(a=!1===a||"none"===a?[]:[a]),o(t,(function(o,s){if(null==a||"all"===a||-1!==r.indexOf(a,s)){var l={type:"select",$fromToolbox:!0,filterMode:n.filterMode||"filter",id:f+t+s};l[i]=s,e.push(l)}}))}}function o(e,n){var i=t[e];r.isArray(i)||(i=i?[i]:[]),d(i,n)}}));var b=p;t.exports=b},"7d6d":function(t,e){var n={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function i(t,e,i){return n.hasOwnProperty(e)?i*t.dpr:i}t.exports=i},"7dcf":function(t,e,n){var i=n("b12f"),r=i.extend({type:"dataZoom",render:function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},getTargetCoordInfo:function(){var t=this.dataZoomModel,e=this.ecModel,n={};function i(t,e,n,i){for(var r,a=0;a<n.length;a++)if(n[a].model===t){r=n[a];break}r||n.push(r={model:t,axisModels:[],coordIndex:i}),r.axisModels.push(e)}return t.eachTargetAxis((function(t,r){var a=e.getComponent(t.axis,r);if(a){var o=a.getCoordSysModel();o&&i(o,a,n[o.mainType]||(n[o.mainType]=[]),o.componentIndex)}}),this),n}});t.exports=r},"7e32":function(t,e,n){var i=n("3eba");n("43b8"),n("8e77"),i.registerPreprocessor((function(t){t.markArea=t.markArea||{}}))},"7e5b":function(t,e,n){var i=n("6d8b"),r=n("401b"),a=n("a15a"),o=n("7f91"),s=n("2306"),l=n("3842"),c=l.round,u=["fromSymbol","toSymbol"];function h(t){return"_"+t+"Type"}function d(t,e,n){var r=e.getItemVisual(n,"color"),o=e.getItemVisual(n,t),s=e.getItemVisual(n,t+"Size");if(o&&"none"!==o){i.isArray(s)||(s=[s,s]);var l=a.createSymbol(o,-s[0]/2,-s[1]/2,s[0],s[1],r);return l.name=t,l}}function f(t){var e=new o({name:"line",subPixelOptimize:!0});return p(e.shape,t),e}function p(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}function g(){var t=this,e=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.childOfName("label");if(e||n||!i.ignore){var a=1,o=this.parent;while(o)o.scale&&(a/=o.scale[0]),o=o.parent;var s=t.childOfName("line");if(this.__dirty||s.__dirty){var l=s.shape.percent,c=s.pointAt(0),u=s.pointAt(l),h=r.sub([],u,c);if(r.normalize(h,h),e){e.attr("position",c);var d=s.tangentAt(0);e.attr("rotation",Math.PI/2-Math.atan2(d[1],d[0])),e.attr("scale",[a*l,a*l])}if(n){n.attr("position",u);d=s.tangentAt(1);n.attr("rotation",-Math.PI/2-Math.atan2(d[1],d[0])),n.attr("scale",[a*l,a*l])}if(!i.ignore){var f,p,g,m;i.attr("position",u);var v=i.__labelDistance,y=v[0]*a,x=v[1]*a,b=l/2,_=(d=s.tangentAt(b),[d[1],-d[0]]),w=s.pointAt(b);_[1]>0&&(_[0]=-_[0],_[1]=-_[1]);var S,A=d[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var C=-Math.atan2(d[1],d[0]);u[0]<c[0]&&(C=Math.PI+C),i.attr("rotation",C)}switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":S=-x,g="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":S=x,g="top";break;default:S=0,g="middle"}switch(i.__position){case"end":f=[h[0]*y+u[0],h[1]*x+u[1]],p=h[0]>.8?"left":h[0]<-.8?"right":"center",g=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":f=[-h[0]*y+c[0],-h[1]*x+c[1]],p=h[0]>.8?"right":h[0]<-.8?"left":"center",g=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":f=[y*A+c[0],c[1]+S],p=d[0]<0?"right":"left",m=[-y*A,-S];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":f=[w[0],w[1]+S],p="center",m=[0,-S];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":f=[-y*A+u[0],u[1]+S],p=d[0]>=0?"right":"left",m=[y*A,-S];break}i.attr({style:{textVerticalAlign:i.__verticalAlign||g,textAlign:i.__textAlign||p},position:f,scale:[a,a],origin:m})}}}}function m(t,e,n){s.Group.call(this),this._createLine(t,e,n)}var v=m.prototype;v.beforeUpdate=g,v._createLine=function(t,e,n){var r=t.hostModel,a=t.getItemLayout(e),o=f(a);o.shape.percent=0,s.initProps(o,{shape:{percent:1}},r,e),this.add(o);var l=new s.Text({name:"label",lineLabelOriginalOpacity:1});this.add(l),i.each(u,(function(n){var i=d(n,t,e);this.add(i),this[h(n)]=t.getItemVisual(e,n)}),this),this._updateCommonStl(t,e,n)},v.updateData=function(t,e,n){var r=t.hostModel,a=this.childOfName("line"),o=t.getItemLayout(e),l={shape:{}};p(l.shape,o),s.updateProps(a,l,r,e),i.each(u,(function(n){var i=t.getItemVisual(e,n),r=h(n);if(this[r]!==i){this.remove(this.childOfName(n));var a=d(n,t,e);this.add(a)}this[r]=i}),this),this._updateCommonStl(t,e,n)},v._updateCommonStl=function(t,e,n){var r=t.hostModel,a=this.childOfName("line"),o=n&&n.lineStyle,l=n&&n.hoverLineStyle,h=n&&n.labelModel,d=n&&n.hoverLabelModel;if(!n||t.hasItemOption){var f=t.getItemModel(e);o=f.getModel("lineStyle").getLineStyle(),l=f.getModel("emphasis.lineStyle").getLineStyle(),h=f.getModel("label"),d=f.getModel("emphasis.label")}var p=t.getItemVisual(e,"color"),g=i.retrieve3(t.getItemVisual(e,"opacity"),o.opacity,1);a.useStyle(i.defaults({strokeNoScale:!0,fill:"none",stroke:p,opacity:g},o)),a.hoverStyle=l,i.each(u,(function(t){var e=this.childOfName(t);e&&(e.setColor(p),e.setStyle({opacity:g}))}),this);var m,v,y=h.getShallow("show"),x=d.getShallow("show"),b=this.childOfName("label");if((y||x)&&(m=p||"#000",v=r.getFormattedLabel(e,"normal",t.dataType),null==v)){var _=r.getRawValue(e);v=null==_?t.getName(e):isFinite(_)?c(_):_}var w=y?v:null,S=x?i.retrieve2(r.getFormattedLabel(e,"emphasis",t.dataType),v):null,A=b.style;if(null!=w||null!=S){s.setTextStyle(b.style,h,{text:w},{autoColor:m}),b.__textAlign=A.textAlign,b.__verticalAlign=A.textVerticalAlign,b.__position=h.get("position")||"middle";var C=h.get("distance");i.isArray(C)||(C=[C,C]),b.__labelDistance=C}b.hoverStyle=null!=S?{text:S,textFill:d.getTextColor(!0),fontStyle:d.getShallow("fontStyle"),fontWeight:d.getShallow("fontWeight"),fontSize:d.getShallow("fontSize"),fontFamily:d.getShallow("fontFamily")}:{text:null},b.ignore=!y&&!x,s.setHoverStyle(this)},v.highlight=function(){this.trigger("emphasis")},v.downplay=function(){this.trigger("normal")},v.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},v.setLinePoints=function(t){var e=this.childOfName("line");p(e.shape,t),e.dirty()},i.inherits(m,s.Group);var y=m;t.exports=y},"7e63":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),a=r.each,o=r.filter,s=r.map,l=r.isArray,c=r.indexOf,u=r.isObject,h=r.isString,d=r.createHashMap,f=r.assert,p=r.clone,g=r.merge,m=r.extend,v=r.mixin,y=n("e0d3"),x=n("4319"),b=n("6cb7"),_=n("8971"),w=n("e47b"),S=n("0f99"),A=S.resetSourceDefaulter,C="\0_ec_inner",I=x.extend({init:function(t,e,n,i){n=n||{},this.option=null,this._theme=new x(n),this._optionManager=i},setOption:function(t,e){f(!(C in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption(null)},resetOption:function(t){var e=!1,n=this._optionManager;if(!t||"recreate"===t){var i=n.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(i)):M.call(this,i),e=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var r=n.getTimelineOption(this);r&&(this.mergeOption(r),e=!0)}if(!t||"recreate"===t||"media"===t){var o=n.getMediaOption(this,this._api);o.length&&a(o,(function(t){this.mergeOption(t,e=!0)}),this)}return e},mergeOption:function(t){var e=this.option,n=this._componentsMap,i=[];function r(i,r){var o=y.normalizeToArray(t[i]),s=y.mappingToExists(n.get(i),o);y.makeIdAndName(s),a(s,(function(t,e){var n=t.option;u(n)&&(t.keyInfo.mainType=i,t.keyInfo.subType=E(i,n,t.exist))}));var l=D(n,r);e[i]=[],n.set(i,[]),a(s,(function(t,r){var a=t.exist,o=t.option;if(f(u(o)||a,"Empty component definition"),o){var s=b.getClass(i,t.keyInfo.subType,!0);if(a&&a.constructor===s)a.name=t.keyInfo.name,a.mergeOption(o,this),a.optionUpdated(o,!1);else{var c=m({dependentModels:l,componentIndex:r},t.keyInfo);a=new s(o,this,this,c),m(a,c),a.init(o,this,this,c),a.optionUpdated(null,!0)}}else a.mergeOption({},this),a.optionUpdated({},!1);n.get(i)[r]=a,e[i][r]=a.option}),this),"series"===i&&L(this,n.get("series"))}A(this),a(t,(function(t,n){null!=t&&(b.hasClass(n)?n&&i.push(n):e[n]=null==e[n]?p(t):g(e[n],t,!0))})),b.topologicalTravel(i,b.getAllClassMainTypes(),r,this),this._seriesIndicesMap=d(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var t=p(this.option);return a(t,(function(e,n){if(b.hasClass(n)){e=y.normalizeToArray(e);for(var i=e.length-1;i>=0;i--)y.isIdInner(e[i])&&e.splice(i,1);t[n]=e}})),delete t[C],t},getTheme:function(){return this._theme},getComponent:function(t,e){var n=this._componentsMap.get(t);if(n)return n[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,a=t.name,u=this._componentsMap.get(e);if(!u||!u.length)return[];if(null!=i)l(i)||(i=[i]),n=o(s(i,(function(t){return u[t]})),(function(t){return!!t}));else if(null!=r){var h=l(r);n=o(u,(function(t){return h&&c(r,t.id)>=0||!h&&t.id===r}))}else if(null!=a){var d=l(a);n=o(u,(function(t){return d&&c(a,t.name)>=0||!d&&t.name===a}))}else n=u.slice();return P(n,t)},findComponents:function(t){var e=t.query,n=t.mainType,i=a(e),r=i?this.queryComponents(i):this._componentsMap.get(n);return s(P(r,t));function a(t){var e=n+"Index",i=n+"Id",r=n+"Name";return!t||null==t[e]&&null==t[i]&&null==t[r]?null:{mainType:n,index:t[e],id:t[i],name:t[r]}}function s(e){return t.filter?o(e,t.filter):e}},eachComponent:function(t,e,n){var i=this._componentsMap;if("function"===typeof t)n=e,e=t,i.each((function(t,i){a(t,(function(t,r){e.call(n,i,t,r)}))}));else if(h(t))a(i.get(t),e,n);else if(u(t)){var r=this.findComponents(t);a(r,e,n)}},getSeriesByName:function(t){var e=this._componentsMap.get("series");return o(e,(function(e){return e.name===t}))},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){var e=this._componentsMap.get("series");return o(e,(function(e){return e.subType===t}))},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(t,e){O(this),a(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)}),this)},eachRawSeries:function(t,e){a(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,n){O(this),a(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)}),this)},eachRawSeriesByType:function(t,e,n){return a(this.getSeriesByType(t),e,n)},isSeriesFiltered:function(t){return O(this),null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){O(this);var n=o(this._componentsMap.get("series"),t,e);L(this,n)},restoreData:function(t){var e=this._componentsMap;L(this,e.get("series"));var n=[];e.each((function(t,e){n.push(e)})),b.topologicalTravel(n,b.getAllClassMainTypes(),(function(n,i){a(e.get(n),(function(e){("series"!==n||!T(e,t))&&e.restoreData()}))}))}});function T(t,e){if(e){var n=e.seiresIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}function k(t,e){var n=t.color&&!t.colorLayer;a(e,(function(e,i){"colorLayer"===i&&n||b.hasClass(i)||("object"===typeof e?t[i]=t[i]?g(t[i],e,!1):p(e):null==t[i]&&(t[i]=e))}))}function M(t){t=t,this.option={},this.option[C]=1,this._componentsMap=d({series:[]}),this._seriesIndices,this._seriesIndicesMap,k(t,this._theme.option),g(t,_,!1),this.mergeOption(t)}function D(t,e){l(e)||(e=e?[e]:[]);var n={};return a(e,(function(e){n[e]=(t.get(e)||[]).slice()})),n}function E(t,e,n){var i=e.type?e.type:n?n.subType:b.determineSubType(t,e);return i}function L(t,e){t._seriesIndicesMap=d(t._seriesIndices=s(e,(function(t){return t.componentIndex}))||[])}function P(t,e){return e.hasOwnProperty("subType")?o(t,(function(t){return t.subType===e.subType})):t}function O(t){}v(I,w);var R=I;t.exports=R},"7f59":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("3eba")),a=n("6d8b"),o=n("e0d3"),s=n("2306"),l=n("f934"),c=n("3842"),u=c.parsePercent,h={path:null,compoundPath:null,group:s.Group,image:s.Image,text:s.Text};r.registerPreprocessor((function(t){var e=t.graphic;a.isArray(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}));var d=r.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(t){var e=this.option.elements;this.option.elements=null,d.superApply(this,"mergeOption",arguments),this.option.elements=e},optionUpdated:function(t,e){var n=this.option,i=(e?n:t).elements,r=n.elements=e?[]:n.elements,s=[];this._flatten(i,s);var l=o.mappingToExists(r,s);o.makeIdAndName(l);var c=this._elOptionsToUpdate=[];a.each(l,(function(t,e){var n=t.option;n&&(c.push(n),v(t,n),y(r,e,n),x(r[e],n))}),this);for(var u=r.length-1;u>=0;u--)null==r[u]?r.splice(u,1):delete r[u].$action},_flatten:function(t,e,n){a.each(t,(function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;"group"===t.type&&i&&this._flatten(i,e,t),delete t.children}}),this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});function f(t,e,n,i){var r=n.type,a=h.hasOwnProperty(r)?h[r]:s.getShapeClass(r),o=new a(n);e.add(o),i.set(t,o),o.__ecGraphicId=t}function p(t,e){var n=t&&t.parent;n&&("group"===t.type&&t.traverse((function(t){p(t,e)})),e.removeKey(t.__ecGraphicId),n.remove(t))}function g(t){return t=a.extend({},t),a.each(["id","parentId","$action","hv","bounding"].concat(l.LOCATION_PARAMS),(function(e){delete t[e]})),t}function m(t,e){var n;return a.each(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}function v(t,e){var n=t.exist;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function y(t,e,n){var i=a.extend({},n),r=t[e],o=n.$action||"merge";"merge"===o?r?(a.merge(r,i,!0),l.mergeLayoutParam(r,i,{ignoreSize:!0}),l.copyLayoutParams(n,r)):t[e]=i:"replace"===o?t[e]=i:"remove"===o&&r&&(t[e]=null)}function x(t,e){t&&(t.hv=e.hv=[m(e,["left","right"]),m(e,["top","bottom"])],"group"===t.type&&(null==t.width&&(t.width=e.width=0),null==t.height&&(t.height=e.height=0)))}function b(t,e,n){var i=t.eventData;t.silent||t.ignore||i||(i=t.eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=t.info)}r.extendComponentView({type:"graphic",init:function(t,e){this._elMap=a.createHashMap(),this._lastGraphicModel},render:function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},_updateElements:function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,i=this.group;a.each(e,(function(e){var r=e.$action,a=e.id,o=n.get(a),s=e.parentId,l=null!=s?n.get(s):i,c=e.style;"text"===e.type&&c&&(e.hv&&e.hv[1]&&(c.textVerticalAlign=c.textBaseline=null),!c.hasOwnProperty("textFill")&&c.fill&&(c.textFill=c.fill),!c.hasOwnProperty("textStroke")&&c.stroke&&(c.textStroke=c.stroke));var u=g(e);r&&"merge"!==r?"replace"===r?(p(o,n),f(a,l,u,n)):"remove"===r&&p(o,n):o?o.attr(u):f(a,l,u,n);var h=n.get(a);h&&(h.__ecGraphicWidthOption=e.width,h.__ecGraphicHeightOption=e.height,b(h,t,e))}))}},_relocate:function(t,e){for(var n=t.option.elements,i=this.group,r=this._elMap,a=e.getWidth(),o=e.getHeight(),s=0;s<n.length;s++){var c=n[s],h=r.get(c.id);if(h&&h.isGroup){var d=h.parent,f=d===i;h.__ecGraphicWidth=u(h.__ecGraphicWidthOption,f?a:d.__ecGraphicWidth)||0,h.__ecGraphicHeight=u(h.__ecGraphicHeightOption,f?o:d.__ecGraphicHeight)||0}}for(s=n.length-1;s>=0;s--){c=n[s],h=r.get(c.id);if(h){d=h.parent;var p=d===i?{width:a,height:o}:{width:d.__ecGraphicWidth,height:d.__ecGraphicHeight};l.positionElement(h,c,p,null,{hv:c.hv,boundingMode:c.bounding})}}},_clear:function(){var t=this._elMap;t.each((function(e){p(e,t)})),this._elMap=a.createHashMap()},dispose:function(){this._clear()}})},"7f72":function(t,e,n){n("6932"),n("3a56"),n("7dcf"),n("a18f"),n("32a1"),n("2c17"),n("9e87")},"7f91":function(t,e,n){var i=n("2306"),r=n("401b"),a=i.Line.prototype,o=i.BezierCurve.prototype;function s(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var l=i.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){this[s(e)?"_buildPathLine":"_buildPathCurve"](t,e)},_buildPathLine:a.buildPath,_buildPathCurve:o.buildPath,pointAt:function(t){return this[s(this.shape)?"_pointAtLine":"_pointAtCurve"](t)},_pointAtLine:a.pointAt,_pointAtCurve:o.pointAt,tangentAt:function(t){var e=this.shape,n=s(e)?[e.x2-e.x1,e.y2-e.y1]:this._tangentAtCurve(t);return r.normalize(n,n)},_tangentAtCurve:o.tangentAt});t.exports=l},"7f96":function(t,e,n){var i=n("6d8b"),r=i.isFunction;function a(t,e,n){return{seriesType:t,performRawSeries:!0,reset:function(t,i,a){var o=t.getData(),s=t.get("symbol"),l=t.get("symbolSize"),c=t.get("symbolKeepAspect"),u=t.get("symbolRotate"),h=r(s),d=r(l),f=r(u),p=h||d||f,g=!h&&s?s:e,m=d?null:l;if(o.setVisual({legendSymbol:n||g,symbol:g,symbolSize:m,symbolKeepAspect:c,symbolRotate:u}),!i.isSeriesFiltered(t))return{dataEach:o.hasItemOption||p?v:null};function v(e,n){if(p){var i=t.getRawValue(n),r=t.getDataParams(n);h&&e.setItemVisual(n,"symbol",s(i,r)),d&&e.setItemVisual(n,"symbolSize",l(i,r)),f&&e.setItemVisual(n,"symbolRotate",u(i,r))}if(e.hasItemOption){var a=e.getItemModel(n),o=a.getShallow("symbol",!0),c=a.getShallow("symbolSize",!0),g=a.getShallow("symbolRotate",!0),m=a.getShallow("symbolKeepAspect",!0);null!=o&&e.setItemVisual(n,"symbol",o),null!=c&&e.setItemVisual(n,"symbolSize",c),null!=g&&e.setItemVisual(n,"symbolRotate",g),null!=m&&e.setItemVisual(n,"symbolKeepAspect",m)}}}}}t.exports=a},"80f0":function(t,e){function n(t){return t}function i(t,e,i,r,a){this._old=t,this._new=e,this._oldKeyGetter=i||n,this._newKeyGetter=r||n,this.context=a}function r(t,e,n,i,r){for(var a=0;a<t.length;a++){var o="_ec_"+r[i](t[a],a),s=e[o];null==s?(n.push(o),e[o]=a):(s.length||(e[o]=s=[s]),s.push(a))}}i.prototype={constructor:i,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t=this._old,e=this._new,n={},i={},a=[],o=[];for(r(t,n,a,"_oldKeyGetter",this),r(e,i,o,"_newKeyGetter",this),u=0;u<t.length;u++){var s=a[u],l=i[s];if(null!=l){var c=l.length;c?(1===c&&(i[s]=null),l=l.shift()):i[s]=null,this._update&&this._update(l,u)}else this._remove&&this._remove(u)}for(var u=0;u<o.length;u++){s=o[u];if(i.hasOwnProperty(s)){l=i[s];if(null==l)continue;if(l.length){var h=0;for(c=l.length;h<c;h++)this._add&&this._add(l[h])}else this._add&&this._add(l)}}}};var a=i;t.exports=a},"81ac":function(t,e,n){var i=n("f934"),r=n("6d8b"),a=n("e0d3"),o=a.groupData;function s(t,e,n){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),a=l(t,e);t.layoutInfo=a;var o=a.width,s=a.height,h=t.getGraph(),d=h.nodes,f=h.edges;u(d);var p=r.filter(d,(function(t){return 0===t.getLayout().value})),g=0!==p.length?0:t.get("layoutIterations"),m=t.get("orient"),v=t.get("nodeAlign");c(d,f,n,i,o,s,g,m,v)}))}function l(t,e){return i.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function c(t,e,n,i,r,a,o,s,l){h(t,e,n,r,a,s,l),m(t,e,a,r,i,o,s),M(t,s)}function u(t){r.each(t,(function(t){var e=T(t.outEdges,I),n=T(t.inEdges,I),i=t.getValue()||0,r=Math.max(e,n,i);t.setLayout({value:r},!0)}))}function h(t,e,n,i,r,a,o){for(var s=[],l=[],c=[],u=[],h=0,d=0,p=0;p<e.length;p++)s[p]=1;for(p=0;p<t.length;p++)l[p]=t[p].inEdges.length,0===l[p]&&c.push(t[p]);var m=-1;while(c.length){for(var v=0;v<c.length;v++){var y=c[v],x=y.hostGraph.data.getRawDataItem(y.dataIndex),b=null!=x.depth&&x.depth>=0;b&&x.depth>m&&(m=x.depth),y.setLayout({depth:b?x.depth:h},!0),"vertical"===a?y.setLayout({dy:n},!0):y.setLayout({dx:n},!0);for(var _=0;_<y.outEdges.length;_++){var w=y.outEdges[_],S=e.indexOf(w);s[S]=0;var A=w.node2,C=t.indexOf(A);0===--l[C]&&u.indexOf(A)<0&&u.push(A)}}++h,c=u,u=[]}for(p=0;p<s.length;p++)if(1===s[p])throw new Error("Sankey is a DAG, the original data has cycle!");var I=m>h-1?m:h-1;o&&"left"!==o&&f(t,o,a,I);d="vertical"===a?(r-n)/I:(i-n)/I;g(t,d,a)}function d(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function f(t,e,n,i){if("right"===e){var a=[],o=t,s=0;while(o.length){for(var l=0;l<o.length;l++){var c=o[l];c.setLayout({skNodeHeight:s},!0);for(var u=0;u<c.inEdges.length;u++){var h=c.inEdges[u];a.indexOf(h.node1)<0&&a.push(h.node1)}}o=a,a=[],++s}r.each(t,(function(t){d(t)||t.setLayout({depth:Math.max(0,i-t.getLayout().skNodeHeight)},!0)}))}else"justify"===e&&p(t,i)}function p(t,e){r.each(t,(function(t){d(t)||t.outEdges.length||t.setLayout({depth:e},!0)}))}function g(t,e,n){r.each(t,(function(t){var i=t.getLayout().depth*e;"vertical"===n?t.setLayout({y:i},!0):t.setLayout({x:i},!0)}))}function m(t,e,n,i,r,a,o){var s=v(t,o);y(s,e,n,i,r,o),x(s,r,n,i,o);for(var l=1;a>0;a--)l*=.99,b(s,l,o),x(s,r,n,i,o),k(s,l,o),x(s,r,n,i,o)}function v(t,e){var n=[],i="vertical"===e?"y":"x",a=o(t,(function(t){return t.getLayout()[i]}));return a.keys.sort((function(t,e){return t-e})),r.each(a.keys,(function(t){n.push(a.buckets.get(t))})),n}function y(t,e,n,i,a,o){var s=1/0;r.each(t,(function(t){var e=t.length,l=0;r.each(t,(function(t){l+=t.getLayout().value}));var c="vertical"===o?(i-(e-1)*a)/l:(n-(e-1)*a)/l;c<s&&(s=c)})),r.each(t,(function(t){r.each(t,(function(t,e){var n=t.getLayout().value*s;"vertical"===o?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))}))})),r.each(e,(function(t){var e=+t.getValue()*s;t.setLayout({dy:e},!0)}))}function x(t,e,n,i,a){var o="vertical"===a?"x":"y";r.each(t,(function(t){var r,s,l;t.sort((function(t,e){return t.getLayout()[o]-e.getLayout()[o]}));for(var c=0,u=t.length,h="vertical"===a?"dx":"dy",d=0;d<u;d++)s=t[d],l=c-s.getLayout()[o],l>0&&(r=s.getLayout()[o]+l,"vertical"===a?s.setLayout({x:r},!0):s.setLayout({y:r},!0)),c=s.getLayout()[o]+s.getLayout()[h]+e;var f="vertical"===a?i:n;if(l=c-e-f,l>0)for(r=s.getLayout()[o]-l,"vertical"===a?s.setLayout({x:r},!0):s.setLayout({y:r},!0),c=r,d=u-2;d>=0;--d)s=t[d],l=s.getLayout()[o]+s.getLayout()[h]+e-c,l>0&&(r=s.getLayout()[o]-l,"vertical"===a?s.setLayout({x:r},!0):s.setLayout({y:r},!0)),c=s.getLayout()[o]}))}function b(t,e,n){r.each(t.slice().reverse(),(function(t){r.each(t,(function(t){if(t.outEdges.length){var i=T(t.outEdges,_,n)/T(t.outEdges,I,n);if(isNaN(i)){var r=t.outEdges.length;i=r?T(t.outEdges,w,n)/r:0}if("vertical"===n){var a=t.getLayout().x+(i-C(t,n))*e;t.setLayout({x:a},!0)}else{var o=t.getLayout().y+(i-C(t,n))*e;t.setLayout({y:o},!0)}}}))}))}function _(t,e){return C(t.node2,e)*t.getValue()}function w(t,e){return C(t.node2,e)}function S(t,e){return C(t.node1,e)*t.getValue()}function A(t,e){return C(t.node1,e)}function C(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function I(t){return t.getValue()}function T(t,e,n){var i=0,r=t.length,a=-1;while(++a<r){var o=+e.call(t,t[a],n);isNaN(o)||(i+=o)}return i}function k(t,e,n){r.each(t,(function(t){r.each(t,(function(t){if(t.inEdges.length){var i=T(t.inEdges,S,n)/T(t.inEdges,I,n);if(isNaN(i)){var r=t.inEdges.length;i=r?T(t.inEdges,A,n)/r:0}if("vertical"===n){var a=t.getLayout().x+(i-C(t,n))*e;t.setLayout({x:a},!0)}else{var o=t.getLayout().y+(i-C(t,n))*e;t.setLayout({y:o},!0)}}}))}))}function M(t,e){var n="vertical"===e?"x":"y";r.each(t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]}))})),r.each(t,(function(t){var e=0,n=0;r.each(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),r.each(t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}t.exports=s},"82eb":function(t,e){var n={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},i=9;e.ContextCachedBy=n,e.WILL_BE_RESTORED=i},"82f9":function(t,e,n){var i=n("6d8b"),r=n("76a5");function a(t){this._zr=t.getZr(),this._show=!1,this._hideTimeout}a.prototype={constructor:a,_enterable:!0,update:function(){},show:function(t){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(t,e,n){this.el&&this._zr.remove(this.el);var i={},a=t,o="{marker",s="|}",l=a.indexOf(o);while(l>=0){var c=a.indexOf(s),u=a.substr(l+o.length,c-l-o.length);u.indexOf("sub")>-1?i["marker"+u]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:e[u],textOffset:[3,0]}:i["marker"+u]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:e[u]},a=a.substr(c+1),l=a.indexOf("{marker")}this.el=new r({style:{rich:i,text:t,textLineHeight:20,textBackgroundColor:n.get("backgroundColor"),textBorderRadius:n.get("borderRadius"),textFill:n.get("textStyle.color"),textPadding:n.get("padding")},z:n.get("z")}),this._zr.add(this.el);var h=this;this.el.on("mouseover",(function(){h._enterable&&(clearTimeout(h._hideTimeout),h._show=!0),h._inContent=!0})),this.el.on("mouseout",(function(){h._enterable&&h._show&&h.hideLater(h._hideDelay),h._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 o=a;t.exports=o},8344:function(t,e,n){var i=n("6d8b"),r=n("f706"),a=n("3842"),o=n("6179"),s=n("923d"),l=n("88f0");function c(t,e,n){var i=e.coordinateSystem;t.each((function(r){var o,s=t.getItemModel(r),l=a.parsePercent(s.get("x"),n.getWidth()),c=a.parsePercent(s.get("y"),n.getHeight());if(isNaN(l)||isNaN(c)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var u=t.get(i.dimensions[0],r),h=t.get(i.dimensions[1],r);o=i.dataToPoint([u,h])}}else o=[l,c];isNaN(l)||(o[0]=l),isNaN(c)||(o[1]=c),t.setItemLayout(r,o)}))}var u=l.extend({type:"markPoint",updateTransform:function(t,e,n){e.eachSeries((function(t){var e=t.markPointModel;e&&(c(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout(e))}),this)},renderSeries:function(t,e,n,a){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,d=u.get(s)||u.set(s,new r),f=h(o,t,e);e.setData(f),c(e.getData(),t,a),f.each((function(t){var n=f.getItemModel(t),r=n.getShallow("symbol"),a=n.getShallow("symbolSize"),o=i.isFunction(r),s=i.isFunction(a);if(o||s){var c=e.getRawValue(t),u=e.getDataParams(t);o&&(r=r(c,u)),s&&(a=a(c,u))}f.setItemVisual(t,{symbol:r,symbolSize:a,color:n.get("itemStyle.color")||l.getVisual("color")})})),d.updateData(f),this.group.add(d.group),f.eachItemGraphicEl((function(t){t.traverse((function(t){t.dataModel=e}))})),d.__keep=!0,d.group.silent=e.get("silent")||t.get("silent")}});function h(t,e,n){var r;r=t?i.map(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return i.defaults({name:t},n)})):[{name:"value",type:"float"}];var a=new o(r,n),l=i.map(n.get("data"),i.curry(s.dataTransform,e));return t&&(l=i.filter(l,i.curry(s.dataFilter,t))),a.initData(l,null,t?s.dimValueGetter:function(t){return t.value}),a}t.exports=u},"83ba":function(t,e,n){var i=n("6d8b"),r=n("6cb7"),a=n("f934"),o=a.getLayoutParams,s=a.sizeCalculable,l=a.mergeLayoutParam,c=r.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(t,e,n,i){var r=o(t);c.superApply(this,"init",arguments),u(t,r)},mergeOption:function(t,e){c.superApply(this,"mergeOption",arguments),u(this.option,t)}});function u(t,e){var n=t.cellSize;i.isArray(n)?1===n.length&&(n[1]=n[0]):n=t.cellSize=[n,n];var r=i.map([0,1],(function(t){return s(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));l(t,e,{type:"box",ignoreSize:r})}var h=c;t.exports=h},"843e":function(t,e,n){var i=n("6d8b"),r=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function a(t){i.each(r,(function(e){this[e]=i.bind(t[e],t)}),this)}var o=a;t.exports=o},8459:function(t,e,n){var i=n("3eba"),r={type:"axisAreaSelect",event:"axisAreaSelected"};i.registerAction(r,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),i.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))},"849b":function(t,e,n){var i=n("d9d0"),r=n("2039");function a(t,e){var n=[];return t.eachComponent("parallel",(function(r,a){var o=new i(r,t,e);o.name="parallel_"+a,o.resize(r,e),r.coordinateSystem=o,o.model=r,n.push(o)})),t.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"parallel",index:e.get("parallelIndex"),id:e.get("parallelId")})[0];e.coordinateSystem=n.coordinateSystem}})),n}r.register("parallel",{create:a})},"84ce":function(t,e,n){var i=n("6d8b"),r=i.each,a=i.map,o=n("3842"),s=o.linearMap,l=o.getPixelPrecision,c=o.round,u=n("e073"),h=u.createAxisTicks,d=u.createAxisLabels,f=u.calculateCategoryInterval,p=[0,1],g=function(t,e,n){this.dim=t,this.scale=e,this._extent=n||[0,0],this.inverse=!1,this.onBand=!1};function m(t,e){var n=t[1]-t[0],i=e,r=n/i/2;t[0]+=r,t[1]-=r}function v(t,e,n,i){var a=e.length;if(t.onBand&&!n&&a){var o,s,l=t.getExtent();if(1===a)e[0].coord=l[0],o=e[1]={coord:l[0]};else{var u=e[a-1].tickValue-e[0].tickValue,h=(e[a-1].coord-e[0].coord)/u;r(e,(function(t){t.coord-=h/2}));var d=t.scale.getExtent();s=1+d[1]-e[a-1].tickValue,o={coord:e[a-1].coord+h*s},e.push(o)}var f=l[0]>l[1];p(e[0].coord,l[0])&&(i?e[0].coord=l[0]:e.shift()),i&&p(l[0],e[0].coord)&&e.unshift({coord:l[0]}),p(l[1],o.coord)&&(i?o.coord=l[1]:e.pop()),i&&p(o.coord,l[1])&&e.push({coord:l[1]})}function p(t,e){return t=c(t),e=c(e),f?t>e:t<e}}g.prototype={constructor:g,contain:function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},containData:function(t){return this.scale.contain(t)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return l(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var n=this._extent;n[0]=t,n[1]=e},dataToCoord:function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&(n=n.slice(),m(n,i.count())),s(t,p,n,e)},coordToData:function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),m(n,i.count()));var r=s(t,n,p,e);return this.scale.scale(r)},pointToData:function(t,e){},getTicksCoords:function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=h(this,e),i=n.ticks,r=a(i,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this),o=e.get("alignWithLabel");return v(this,r,o,t.clamp),r},getMinorTicksCoords:function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),i=a(n,(function(t){return a(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return i},getViewLabels:function(){return d(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return f(this)}};var y=g;t.exports=y},"84d5":function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=n("4319"),o=n("e0d3"),s=o.isNameSpecified,l=n("29a8"),c=l.legend.selector,u={all:{type:"all",title:r.clone(c.all)},inverse:{type:"inverse",title:r.clone(c.inverse)}},h=i.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},mergeOption:function(t){h.superCall(this,"mergeOption",t),this._updateSelector(t)},_updateSelector:function(t){var e=t.selector;!0===e&&(e=t.selector=["all","inverse"]),r.isArray(e)&&r.each(e,(function(t,n){r.isString(t)&&(t={type:t}),e[n]=r.merge(t,u[t.type])}))},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}!e&&this.select(t[0].get("name"))}},_updateData:function(t){var e=[],n=[];t.eachRawSeries((function(i){var r,a=i.name;if(n.push(a),i.legendVisualProvider){var o=i.legendVisualProvider,l=o.getAllNames();t.isSeriesFiltered(i)||(n=n.concat(l)),l.length?e=e.concat(l):r=!0}else r=!0;r&&s(i)&&e.push(i.name)})),this._availableNames=n;var i=this.get("data")||e,o=r.map(i,(function(t){return"string"!==typeof t&&"number"!==typeof t||(t={name:t}),new a(t,this,this.ecModel)}),this);this._data=o},getData:function(){return this._data},select:function(t){var e=this.option.selected,n=this.get("selectedMode");if("single"===n){var i=this._data;r.each(i,(function(t){e[t.get("name")]=!1}))}e[t]=!0},unSelect:function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},toggleSelected:function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},allSelect:function(){var t=this._data,e=this.option.selected;r.each(t,(function(t){e[t.get("name",!0)]=!0}))},inverseSelect:function(){var t=this._data,e=this.option.selected;r.each(t,(function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]}))},isSelected:function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&r.indexOf(this._availableNames,t)>=0},getOrient:function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}}}),d=h;t.exports=d},"84ec":function(t,e){var n=Math.log(2);function i(t,e,r,a,o,s){var l=a+"-"+o,c=t.length;if(s.hasOwnProperty(l))return s[l];if(1===e){var u=Math.round(Math.log((1<<c)-1&~o)/n);return t[r][u]}var h=a|1<<r,d=r+1;while(a&1<<d)d++;for(var f=0,p=0,g=0;p<c;p++){var m=1<<p;m&o||(f+=(g%2?-1:1)*t[r][p]*i(t,e-1,d,h,o|m,s),g++)}return s[l]=f,f}function r(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},a=i(n,8,0,0,0,r);if(0!==a){for(var o=[],s=0;s<8;s++)for(var l=0;l<8;l++)null==o[l]&&(o[l]=0),o[l]+=((s+l)%2?-1:1)*i(n,7,0===s?1:0,1<<s,1<<l,r)/a*e[s];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}e.buildTransformer=r},"857a":function(t,e,n){var i=n("1d80"),r=/"/g;t.exports=function(t,e,n,a){var o=String(i(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(a).replace(r,""")+'"'),s+">"+o+"</"+e+">"}},"857d":function(t,e){var n=2*Math.PI;function i(t){return t%=n,t<0&&(t+=n),t}e.normalizeRadian=i},"862d":function(t,e,n){var i=n("6d8b"),r=i.createHashMap,a=i.each,o=i.isString,s=i.defaults,l=i.extend,c=i.isObject,u=i.clone,h=n("e0d3"),d=h.normalizeToArray,f=n("0f99"),p=f.guessOrdinal,g=f.BE_ORDINAL,m=n("ec6f"),v=n("2f45"),y=v.OTHER_DIMENSIONS,x=n("562e");function b(t,e,n){m.isInstance(e)||(e=m.seriesDataToSource(e)),n=n||{},t=(t||[]).slice();for(var i=(n.dimsDef||[]).slice(),h=r(),f=r(),v=[],b=_(e,t,i,n.dimCount),S=0;S<b;S++){var A=i[S]=l({},c(i[S])?i[S]:{name:i[S]}),C=A.name,I=v[S]=new x;null!=C&&null==h.get(C)&&(I.name=I.displayName=C,h.set(C,S)),null!=A.type&&(I.type=A.type),null!=A.displayName&&(I.displayName=A.displayName)}var T=n.encodeDef;!T&&n.encodeDefaulter&&(T=n.encodeDefaulter(e,b)),T=r(T),T.each((function(t,e){if(t=d(t).slice(),1===t.length&&!o(t[0])&&t[0]<0)T.set(e,!1);else{var n=T.set(e,[]);a(t,(function(t,i){o(t)&&(t=h.get(t)),null!=t&&t<b&&(n[i]=t,M(v[t],e,i))}))}}));var k=0;function M(t,e,n){null!=y.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,f.set(e,!0))}a(t,(function(t,e){var n,i,r;if(o(t))n=t,t={};else{n=t.name;var l=t.ordinalMeta;t.ordinalMeta=null,t=u(t),t.ordinalMeta=l,i=t.dimsDef,r=t.otherDims,t.name=t.coordDim=t.coordDimIndex=t.dimsDef=t.otherDims=null}var h=T.get(n);if(!1!==h){h=d(h);if(!h.length)for(var f=0;f<(i&&i.length||1);f++){while(k<v.length&&null!=v[k].coordDim)k++;k<v.length&&h.push(k++)}a(h,(function(e,a){var o=v[e];if(M(s(o,t),n,a),null==o.name&&i){var l=i[a];!c(l)&&(l={name:l}),o.name=o.displayName=l.name,o.defaultTooltip=l.defaultTooltip}r&&s(o.otherDims,r)}))}}));var D=n.generateCoord,E=n.generateCoordCount,L=null!=E;E=D?E||1:0;for(var P=D||"value",O=0;O<b;O++){I=v[O]=v[O]||new x;var R=I.coordDim;null==R&&(I.coordDim=w(P,f,L),I.coordDimIndex=0,(!D||E<=0)&&(I.isExtraCoord=!0),E--),null==I.name&&(I.name=w(I.coordDim,h)),null!=I.type||p(e,O,I.name)!==g.Must&&(!I.isExtraCoord||null==I.otherDims.itemName&&null==I.otherDims.seriesName)||(I.type="ordinal")}return v}function _(t,e,n,i){var r=Math.max(t.dimensionsDetectCount||1,e.length,n.length,i||0);return a(e,(function(t){var e=t.dimsDef;e&&(r=Math.max(r,e.length))})),r}function w(t,e,n){if(n||null!=e.get(t)){var i=0;while(null!=e.get(t+i))i++;t+=i}return e.set(t,!0),t}var S=b;t.exports=S},"870e":function(t,e,n){var i=n("6d8b");function r(t){t.eachSeriesByType("radar",(function(t){var e=t.getData(),n=[],r=t.coordinateSystem;if(r){var s=r.getIndicatorAxes();i.each(s,(function(t,i){e.each(e.mapDimension(s[i].dim),(function(t,e){n[e]=n[e]||[];var s=r.dataToPoint(t,i);n[e][i]=a(s)?s:o(r)}))})),e.each((function(t){var s=i.find(n[t],(function(t){return a(t)}))||o(r);n[t].push(s.slice()),e.setItemLayout(t,n[t])}))}}))}function a(t){return!isNaN(t[0])&&!isNaN(t[1])}function o(t){return[t.cx,t.cy]}t.exports=r},8727:function(t,e){var n="http://www.w3.org/2000/svg";function i(t){return document.createElementNS(n,t)}e.createElement=i},8728:function(t,e){function n(t,e,n,i,r,a){if(a>e&&a>i||a<e&&a<i)return 0;if(i===e)return 0;var o=i<e?1:-1,s=(a-e)/(i-e);1!==s&&0!==s||(o=i<e?.5:-.5);var l=s*(n-t)+t;return l===r?1/0:l>r?o:0}t.exports=n},"879e":function(t,e,n){var i=n("3eba"),r=n("6179"),a=n("6d8b"),o=n("e0d3"),s=o.defaultEmphasis,l=n("4319"),c=n("eda2"),u=c.encodeHTML,h=n("237f"),d=n("c4a3"),f=i.extendSeriesModel({type:"series.graph",init:function(t){f.superApply(this,"init",arguments);var e=this;function n(){return e._categoriesData}this.legendVisualProvider=new d(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeOption:function(t){f.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(t){f.superApply(this,"mergeDefaultAndTheme",arguments),s(t,["edgeLabel"],["show"])},getInitialData:function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],r=this;if(i&&n)return h(i,n,this,!0,a).data;function a(t,n){t.wrapMethod("getItemModel",(function(t){var e=r._categoriesModels,n=t.getShallow("category"),i=e[n];return i&&(i.parentModel=t.parentModel,t.parentModel=i),t}));var i=r.getModel("edgeLabel"),a=new l({label:i.option},i.parentModel,e),o=r.getModel("emphasis.edgeLabel"),s=new l({emphasis:{label:o.option}},o.parentModel,e);function c(t){return t=this.parsePath(t),t&&"label"===t[0]?a:t&&"emphasis"===t[0]&&"label"===t[1]?s:this.parentModel}n.wrapMethod("getItemModel",(function(t){return t.customizeGetParent(c),t}))}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),a=i.graph.getEdgeByIndex(t),o=i.getName(a.node1.dataIndex),s=i.getName(a.node2.dataIndex),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),l=u(l.join(" > ")),r.value&&(l+=" : "+u(r.value)),l}return f.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=a.map(this.option.categories||[],(function(t){return null!=t.value?t:a.extend({value:0},t)})),e=new r(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t,!0)}))},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return f.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}}),p=f;t.exports=p},"87b1":function(t,e,n){var i=n("cbe5"),r=n("4fac"),a=i.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,e){r.buildPath(t,e,!0)}});t.exports=a},"87c3":function(t,e,n){var i=n("6d8b"),r=i.map,a=n("cccd"),o=n("ee1a"),s=o.isDimensionStacked;function l(t){return{seriesType:t,plan:a(),reset:function(t){var e=t.getData(),n=t.coordinateSystem,i=t.pipelineContext,a=i.large;if(n){var o=r(n.dimensions,(function(t){return e.mapDimension(t)})).slice(0,2),l=o.length,c=e.getCalculationInfo("stackResultDimension");return s(e,o[0])&&(o[0]=c),s(e,o[1])&&(o[1]=c),l&&{progress:u}}function u(t,e){for(var i=t.end-t.start,r=a&&new Float32Array(i*l),s=t.start,c=0,u=[],h=[];s<t.end;s++){var d;if(1===l){var f=e.get(o[0],s);d=!isNaN(f)&&n.dataToPoint(f,null,h)}else{f=u[0]=e.get(o[0],s);var p=u[1]=e.get(o[1],s);d=!isNaN(f)&&!isNaN(p)&&n.dataToPoint(u,null,h)}a?(r[c++]=d?d[0]:NaN,r[c++]=d?d[1]:NaN):e.setItemLayout(s,d&&d.slice()||[NaN,NaN])}a&&e.setLayout("symbolPoints",r)}}}}t.exports=l},"88b3":function(t,e){var n="\0__throttleOriginMethod",i="\0__throttleRate",r="\0__throttleType";function a(t,e,n){var i,r,a,o,s,l=0,c=0,u=null;function h(){c=(new Date).getTime(),u=null,t.apply(a,o||[])}e=e||0;var d=function(){i=(new Date).getTime(),a=this,o=arguments;var t=s||e,d=s||n;s=null,r=i-(d?l:c)-t,clearTimeout(u),d?u=setTimeout(h,t):r>=0?h():u=setTimeout(h,-r),l=i};return d.clear=function(){u&&(clearTimeout(u),u=null)},d.debounceNextCall=function(t){s=t},d}function o(t,e,o,s){var l=t[e];if(l){var c=l[n]||l,u=l[r],h=l[i];if(h!==o||u!==s){if(null==o||!s)return t[e]=c;l=t[e]=a(c,o,"debounce"===s),l[n]=c,l[r]=s,l[i]=o}return l}}function s(t,e){var i=t[e];i&&i[n]&&(t[e]=i[n])}e.throttle=a,e.createOrUpdate=o,e.clear=s},"88f0":function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=i.extendComponentView({type:"marker",init:function(){this.markerGroupMap=r.createHashMap()},render:function(t,e,n){var i=this.markerGroupMap;i.each((function(t){t.__keep=!1}));var r=this.type+"Model";e.eachSeries((function(t){var i=t[r];i&&this.renderSeries(t,i,e,n)}),this),i.each((function(t){!t.__keep&&this.group.remove(t.group)}),this)},renderSeries:function(){}});t.exports=a},8918:function(t,e,n){var i=n("6d8b"),r=n("625e"),a=r.parseClassType,o=0;function s(t){return[t||"",o++,Math.random().toFixed(5)].join("_")}function l(t){var e={};return t.registerSubTypeDefaulter=function(t,n){t=a(t),e[t.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=a(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r},t}function c(t,e){function n(t){var n={},o=[];return i.each(t,(function(s){var l=r(n,s),c=l.originalDeps=e(s),u=a(c,t);l.entryCount=u.length,0===l.entryCount&&o.push(s),i.each(u,(function(t){i.indexOf(l.predecessor,t)<0&&l.predecessor.push(t);var e=r(n,t);i.indexOf(e.successor,t)<0&&e.successor.push(s)}))})),{graph:n,noEntryList:o}}function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function a(t,e){var n=[];return i.each(t,(function(t){i.indexOf(e,t)>=0&&n.push(t)})),n}t.topologicalTravel=function(t,e,r,a){if(t.length){var o=n(e),s=o.graph,l=o.noEntryList,c={};i.each(t,(function(t){c[t]=!0}));while(l.length){var u=l.pop(),h=s[u],d=!!c[u];d&&(r.call(a,u,h.originalDeps.slice()),delete c[u]),i.each(h.successor,d?p:f)}i.each(c,(function(){throw new Error("Circle dependency may exists")}))}function f(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function p(t){c[t]=!0,f(t)}}}e.getUID=s,e.enableSubTypeDefaulter=l,e.enableTopologicalTravel=c},8971:function(t,e){var n="";"undefined"!==typeof navigator&&(n=navigator.platform||"");var i={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:n.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};t.exports=i},"897a":function(t,e,n){var i=n("22d1"),r=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function a(t){return i.browser.ie&&i.browser.version>=11?function(){var e,n=this.__clipPaths,i=this.style;if(n)for(var a=0;a<n.length;a++){var o=n[a],s=o&&o.shape,l=o&&o.type;if(s&&("sector"===l&&s.startAngle===s.endAngle||"rect"===l&&(!s.width||!s.height))){for(var c=0;c<r.length;c++)r[c][2]=i[r[c][0]],i[r[c][0]]=r[c][1];e=!0;break}}if(t.apply(this,arguments),e)for(c=0;c<r.length;c++)i[r[c][0]]=r[c][2]}:t}t.exports=a},"89e3":function(t,e,n){var i=n("3842"),r=n("eda2"),a=n("e0d8"),o=n("944e"),s=i.round,l=a.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=o.getIntervalPrecision(t)},getTicks:function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,a=[];if(!e)return a;var o=1e4;n[0]<i[0]&&(t?a.push(s(i[0]-e,r)):a.push(n[0]));var l=i[0];while(l<=i[1]){if(a.push(l),l=s(l+e,r),l===a[a.length-1])break;if(a.length>o)return[]}var c=a.length?a[a.length-1]:i[1];return n[1]>c&&(t?a.push(s(c+e,r)):a.push(n[1])),a},getMinorTicks:function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),a=1;a<e.length;a++){var o=e[a],s=e[a-1],l=0,c=[],u=o-s,h=u/t;while(l<t-1){var d=i.round(s+(l+1)*h);d>r[0]&&d<r[1]&&c.push(d),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=s(t,n,!0),r.addCommas(t)},niceTicks:function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var a=o.intervalScaleNiceTicks(i,t,e,n);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.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 r=this._interval;t.fixMin||(e[0]=s(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=s(Math.ceil(e[1]/r)*r))}});l.create=function(){return new l};var c=l;t.exports=c},"8b7f":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),a=r.createHashMap,o=(r.retrieve,r.each);function s(t){this.coordSysName=t,this.coordSysDims=[],this.axisMap=a(),this.categoryAxisMap=a(),this.firstCategoryDimIndex=null}function l(t){var e=t.get("coordinateSystem"),n=new s(e),i=c[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}var c={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis")[0],a=t.getReferringComponents("yAxis")[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",a),u(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),u(a)&&(i.set("y",a),e.firstCategoryDimIndex,e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis")[0];e.coordSysDims=["single"],n.set("single",r),u(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar")[0],a=r.findAxisModel("radiusAxis"),o=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",o),u(a)&&(i.set("radius",a),e.firstCategoryDimIndex=0),u(o)&&(i.set("angle",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,a=r.getComponent("parallel",t.get("parallelIndex")),s=e.coordSysDims=a.dimensions.slice();o(a.parallelAxisIndex,(function(t,a){var o=r.getComponent("parallelAxis",t),l=s[a];n.set(l,o),u(o)&&null==e.firstCategoryDimIndex&&(i.set(l,o),e.firstCategoryDimIndex=a)}))}};function u(t){return"category"===t.get("type")}e.getCoordSysInfoBySeries=l},"8c2a":function(t,e,n){var i=n("6d8b"),r=n("e0d8"),a=n("3842"),o=n("89e3"),s=r.prototype,l=o.prototype,c=a.getPrecisionSafe,u=a.round,h=Math.floor,d=Math.ceil,f=Math.pow,p=Math.log,g=r.extend({type:"log",base:10,$constructor:function(){r.apply(this,arguments),this._originalScale=new o},getTicks:function(t){var e=this._originalScale,n=this._extent,r=e.getExtent();return i.map(l.getTicks.call(this,t),(function(t){var i=a.round(f(this.base,t));return i=t===n[0]&&e.__fixMin?m(i,r[0]):i,i=t===n[1]&&e.__fixMax?m(i,r[1]):i,i}),this)},getMinorTicks:l.getMinorTicks,getLabel:l.getLabel,scale:function(t){return t=s.scale.call(this,t),f(this.base,t)},setExtent:function(t,e){var n=this.base;t=p(t)/p(n),e=p(e)/p(n),l.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=s.getExtent.call(this);e[0]=f(t,e[0]),e[1]=f(t,e[1]);var n=this._originalScale,i=n.getExtent();return n.__fixMin&&(e[0]=m(e[0],i[0])),n.__fixMax&&(e[1]=m(e[1],i[1])),e},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=p(t[0])/p(e),t[1]=p(t[1])/p(e),s.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=a.quantity(n),r=t/n*i;r<=.5&&(i*=10);while(!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0)i*=10;var o=[a.round(d(e[0]/i)*i),a.round(h(e[1]/i)*i)];this._interval=i,this._niceExtent=o}},niceExtent:function(t){l.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});function m(t,e){return u(t,c(e))}i.each(["contain","normalize"],(function(t){g.prototype[t]=function(e){return e=p(e)/p(this.base),s[t].call(this,e)}})),g.create=function(){return new g};var v=g;t.exports=v},"8d32":function(t,e,n){var i=n("cbe5"),r=i.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),a=e.startAngle,o=e.endAngle,s=e.clockwise,l=Math.cos(a),c=Math.sin(a);t.moveTo(l*r+n,c*r+i),t.arc(n,i,r,a,o,!s)}});t.exports=r},"8deb":function(t,e,n){var i=n("3eba");n("5522"),n("a0168"),n("1466");var r=n("98e7"),a=n("7f96"),o=n("870e"),s=n("d3f4"),l=n("7891");i.registerVisual(r("radar")),i.registerVisual(a("radar","circle")),i.registerLayout(o),i.registerProcessor(s("radar")),i.registerPreprocessor(l)},"8e43":function(t,e,n){var i=n("6d8b"),r=i.createHashMap,a=i.isObject,o=i.map;function s(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this._map}s.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&o(n,u);return new s({categories:i,needCollect:!i,deduplication:!1!==e.dedplication})};var l=s.prototype;function c(t){return t._map||(t._map=r(t.categories))}function u(t){return a(t)&&null!=t.value?t.value:t+""}l.getOrdinal=function(t){return c(this).get(t)},l.parseAndCollect=function(t){var e,n=this._needCollect;if("string"!==typeof t&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=c(this);return e=i.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e};var h=s;t.exports=h},"8e77":function(t,e,n){var i=n("6d8b"),r=n("41ef"),a=n("6179"),o=n("3842"),s=n("2306"),l=n("923d"),c=n("88f0"),u=function(t,e,n,r){var a=l.dataTransform(t,r[0]),o=l.dataTransform(t,r[1]),s=i.retrieve,c=a.coord,u=o.coord;c[0]=s(c[0],-1/0),c[1]=s(c[1],-1/0),u[0]=s(u[0],1/0),u[1]=s(u[1],1/0);var h=i.mergeAll([{},a,o]);return h.coord=[a.coord,o.coord],h.x0=a.x,h.y0=a.y,h.x1=o.x,h.y1=o.y,h};function h(t){return!isNaN(t)&&!isFinite(t)}function d(t,e,n,i){var r=1-t;return h(e[r])&&h(n[r])}function f(t,e){var n=e.coord[0],i=e.coord[1];return!("cartesian2d"!==t.type||!n||!i||!d(1,n,i,t)&&!d(0,n,i,t))||(l.dataFilter(t,{coord:n,x:e.x0,y:e.y0})||l.dataFilter(t,{coord:i,x:e.x1,y:e.y1}))}function p(t,e,n,i,r){var a,s=i.coordinateSystem,l=t.getItemModel(e),c=o.parsePercent(l.get(n[0]),r.getWidth()),u=o.parsePercent(l.get(n[1]),r.getHeight());if(isNaN(c)||isNaN(u)){if(i.getMarkerPosition)a=i.getMarkerPosition(t.getValues(n,e));else{var d=t.get(n[0],e),f=t.get(n[1],e),p=[d,f];s.clampData&&s.clampData(p,p),a=s.dataToPoint(p,!0)}if("cartesian2d"===s.type){var g=s.getAxis("x"),m=s.getAxis("y");d=t.get(n[0],e),f=t.get(n[1],e);h(d)?a[0]=g.toGlobalCoord(g.getExtent()["x0"===n[0]?0:1]):h(f)&&(a[1]=m.toGlobalCoord(m.getExtent()["y0"===n[1]?0:1]))}isNaN(c)||(a[0]=c),isNaN(u)||(a[1]=u)}else a=[c,u];return a}var g=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];function m(t,e,n){var r,o,s=["x0","y0","x1","y1"];t?(r=i.map(t&&t.dimensions,(function(t){var n=e.getData(),r=n.getDimensionInfo(n.mapDimension(t))||{};return i.defaults({name:t},r)})),o=new a(i.map(s,(function(t,e){return{name:t,type:r[e%2].type}})),n)):(r=[{name:"value",type:"float"}],o=new a(r,n));var l=i.map(n.get("data"),i.curry(u,e,t,n));t&&(l=i.filter(l,i.curry(f,t)));var c=t?function(t,e,n,i){return t.coord[Math.floor(i/2)][i%2]}:function(t){return t.value};return o.initData(l,null,c),o.hasItemOption=!0,o}c.extend({type:"markArea",updateTransform:function(t,e,n){e.eachSeries((function(t){var e=t.markAreaModel;if(e){var r=e.getData();r.each((function(e){var a=i.map(g,(function(i){return p(r,e,i,t,n)}));r.setItemLayout(e,a);var o=r.getItemGraphicEl(e);o.setShape("points",a)}))}}),this)},renderSeries:function(t,e,n,a){var o=t.coordinateSystem,l=t.id,c=t.getData(),u=this.markerGroupMap,h=u.get(l)||u.set(l,{group:new s.Group});this.group.add(h.group),h.__keep=!0;var d=m(o,t,e);e.setData(d),d.each((function(e){d.setItemLayout(e,i.map(g,(function(n){return p(d,e,n,t,a)}))),d.setItemVisual(e,{color:c.getVisual("color")})})),d.diff(h.__data).add((function(t){var e=new s.Polygon({shape:{points:d.getItemLayout(t)}});d.setItemGraphicEl(t,e),h.group.add(e)})).update((function(t,n){var i=h.__data.getItemGraphicEl(n);s.updateProps(i,{shape:{points:d.getItemLayout(t)}},e,t),h.group.add(i),d.setItemGraphicEl(t,i)})).remove((function(t){var e=h.__data.getItemGraphicEl(t);h.group.remove(e)})).execute(),d.eachItemGraphicEl((function(t,n){var a=d.getItemModel(n),o=a.getModel("label"),l=a.getModel("emphasis.label"),c=d.getItemVisual(n,"color");t.useStyle(i.defaults(a.getModel("itemStyle").getItemStyle(),{fill:r.modifyAlpha(c,.4),stroke:c})),t.hoverStyle=a.getModel("emphasis.itemStyle").getItemStyle(),s.setLabelStyle(t.style,t.hoverStyle,o,l,{labelFetcher:e,labelDataIndex:n,defaultText:d.getName(n)||"",isRectText:!0,autoColor:c}),s.setHoverStyle(t,{}),t.dataModel=e})),h.__data=d,h.group.silent=e.get("silent")||t.get("silent")}})},"8ec5":function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=n("2145"),o=i.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){o.superApply(this,"optionUpdated",arguments),r.each(this.option.feature,(function(t,e){var n=a.get(e);n&&r.merge(t,n.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=o;t.exports=s},"8ed2":function(t,e,n){n("48c7");var i=n("6cb7"),r=i.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});t.exports=r},"8ee0":function(t,e,n){n("3f8e");var i=n("697e7"),r=i.registerPainter,a=n("dc20");r("svg",a)},"903c":function(t,e){function n(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0}))}t.exports=n},"90c2":function(t,e,n){var i=n("5f14"),r=n("41ef"),a=n("6d8b"),o=a.isArray,s="itemStyle",l={seriesType:"treemap",reset:function(t,e,n,i){var r=t.getData().tree,o=r.root,l=t.getModel(s);if(!o.isRemoved()){var u=a.map(r.levelModels,(function(t){return t?t.get(s):null}));c(o,{},u,l,t.getViewRoot().getAncestors(),t)}}};function c(t,e,n,i,r,o){var l=t.getModel(),f=t.getLayout();if(f&&!f.invisible&&f.isInView){var g,v=t.getModel(s),y=n[t.depth],x=u(v,e,y,i),b=v.get("borderColor"),_=v.get("borderColorSaturation");null!=_&&(g=h(x,t),b=d(_,g)),t.setVisual("borderColor",b);var w=t.viewChildren;if(w&&w.length){var S=p(t,l,f,v,x,w);a.each(w,(function(t,e){if(t.depth>=r.length||t===r[t.depth]){var a=m(l,x,t,e,S,o);c(t,a,n,i,r,o)}}))}else g=h(x,t),t.setVisual("color",g)}}function u(t,e,n,i){var r=a.extend({},e);return a.each(["color","colorAlpha","colorSaturation"],(function(a){var o=t.get(a,!0);null==o&&n&&(o=n[a]),null==o&&(o=e[a]),null==o&&(o=i.get(a)),null!=o&&(r[a]=o)})),r}function h(t){var e=f(t,"color");if(e){var n=f(t,"colorAlpha"),i=f(t,"colorSaturation");return i&&(e=r.modifyHSL(e,null,null,i)),n&&(e=r.modifyAlpha(e,n)),e}}function d(t,e){return null!=e?r.modifyHSL(e,null,null,t):null}function f(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function p(t,e,n,r,a,o){if(o&&o.length){var s=g(e,"color")||null!=a.color&&"none"!==a.color&&(g(e,"colorAlpha")||g(e,"colorSaturation"));if(s){var l=e.get("visualMin"),c=e.get("visualMax"),u=n.dataExtent.slice();null!=l&&l<u[0]&&(u[0]=l),null!=c&&c>u[1]&&(u[1]=c);var h=e.get("colorMappingBy"),d={type:s.name,dataExtent:u,visual:s.range};"color"!==d.type||"index"!==h&&"id"!==h?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var f=new i(d);return f.__drColorMappingBy=h,f}}}function g(t,e){var n=t.get(e);return o(n)&&n.length?{name:e,range:n}:null}function m(t,e,n,i,r,o){var s=a.extend({},e);if(r){var l=r.type,c="color"===l&&r.__drColorMappingBy,u="index"===c?i:"id"===c?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));s[l]=r.mapValueToVisual(u)}return s}t.exports=l},"923d":function(t,e,n){var i=n("6d8b"),r=n("3842"),a=n("ee1a"),o=a.isDimensionStacked,s=i.indexOf;function l(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function c(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function u(t,e,n,i,a,s){var l=[],c=o(e,i),u=c?e.getCalculationInfo("stackResultDimension"):i,h=y(e,u,t),d=e.indicesOfNearest(u,h)[0];l[a]=e.get(n,d),l[s]=e.get(u,d);var f=e.get(i,d),p=r.getPrecision(e.get(i,d));return p=Math.min(p,20),p>=0&&(l[s]=+l[s].toFixed(p)),[l,f]}var h=i.curry,d={min:h(u,"min"),max:h(u,"max"),average:h(u,"average")};function f(t,e){var n=t.getData(),r=t.coordinateSystem;if(e&&!c(e)&&!i.isArray(e.coord)&&r){var a=r.dimensions,o=p(e,n,r,t);if(e=i.clone(e),e.type&&d[e.type]&&o.baseAxis&&o.valueAxis){var l=s(a,o.baseAxis.dim),u=s(a,o.valueAxis.dim),h=d[e.type](n,o.baseDataDim,o.valueDataDim,l,u);e.coord=h[0],e.value=h[1]}else{for(var f=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],g=0;g<2;g++)d[f[g]]&&(f[g]=y(n,n.mapDimension(a[g]),f[g]));e.coord=f}}return e}function p(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(g(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function g(t,e){var n=t.getData(),i=n.dimensions;e=n.getDimension(e);for(var r=0;r<i.length;r++){var a=n.getDimensionInfo(i[r]);if(a.name===e)return a.coordDim}}function m(t,e){return!(t&&t.containData&&e.coord&&!l(e))||t.containData(e.coord)}function v(t,e,n,i){return i<2?t.coord&&t.coord[i]:t.value}function y(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,(function(t,e){isNaN(t)||(i+=t,r++)})),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e,!0)["max"===n?1:0]}e.dataTransform=f,e.getAxisInfo=p,e.dataFilter=m,e.dimValueGetter=v,e.numCalculate=y},9273:function(t,e,n){var i=n("6d8b"),r=n("84ce");function a(t,e){r.call(this,"radius",t,e),this.type="category"}a.prototype={constructor:a,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToRadius:r.prototype.dataToCoord,radiusToData:r.prototype.coordToData},i.inherits(a,r);var o=a;t.exports=o},"928d":function(t,e,n){var i=n("6d8b"),r=n("4f85"),a=n("06c7"),o=n("4319"),s=n("eda2"),l=s.encodeHTML,c=s.addCommas,u=n("55ac"),h=u.wrapTreePathInfo,d=r.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],preventUsingHoverLayer:!0,_viewRoot:null,defaultOption:{progressive:0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(t,e){var n={name:t.name,children:t.data};f(n);var r=t.levels||[];r=t.levels=p(r,e);var s=i.map(r||[],(function(t){return new o(t,this,e)}),this),l=a.createTree(n,this,null,c);function c(t){t.wrapMethod("getItemModel",(function(t,e){var n=l.getNodeByDataIndex(e),i=s[n.depth];return i&&(t.parentModel=i),t}))}return l.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(t){var e=this.getData(),n=this.getRawValue(t),r=i.isArray(n)?c(n[0]):c(n),a=e.getName(t);return l(a+": "+r)},getDataParams:function(t){var e=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=h(n,this),e},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},i.extend(this.layoutInfo,t)},mapIdToIndex:function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=i.createHashMap(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});function f(t){var e=0;i.each(t.children,(function(t){f(t);var n=t.value;i.isArray(n)&&(n=n[0]),e+=n}));var n=t.value;i.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),i.isArray(t.value)?t.value[0]=n:t.value=n}function p(t,e){var n=e.get("color");if(n){var r;if(t=t||[],i.each(t,(function(t){var e=new o(t),n=e.get("color");(e.get("itemStyle.color")||n&&"none"!==n)&&(r=!0)})),!r){var a=t[0]||(t[0]={});a.color=n.slice()}return t}}t.exports=d},"933b":function(t,e,n){var i=n("b12f"),r=i.extend({type:"timeline"});t.exports=r},9390:function(t,e,n){n("d090"),n("83ba"),n("ee66")},"93d0":function(t,e){var n="original",i="arrayRows",r="objectRows",a="keyedColumns",o="unknown",s="typedArray",l="column",c="row";e.SOURCE_FORMAT_ORIGINAL=n,e.SOURCE_FORMAT_ARRAY_ROWS=i,e.SOURCE_FORMAT_OBJECT_ROWS=r,e.SOURCE_FORMAT_KEYED_COLUMNS=a,e.SOURCE_FORMAT_UNKNOWN=o,e.SOURCE_FORMAT_TYPED_ARRAY=s,e.SERIES_LAYOUT_BY_COLUMN=l,e.SERIES_LAYOUT_BY_ROW=c},9442:function(t,e,n){var i=n("6d8b");function r(t){var e=[];i.each(t.series,(function(t){t&&"map"===t.type&&(e.push(t),t.map=t.map||t.mapType,i.defaults(t,t.mapLocation))}))}t.exports=r},"944e":function(t,e,n){var i=n("3842"),r=i.round;function a(t,e,n,a){var s={},c=t[1]-t[0],u=s.interval=i.nice(c/e,!0);null!=n&&u<n&&(u=s.interval=n),null!=a&&u>a&&(u=s.interval=a);var h=s.intervalPrecision=o(u),d=s.niceTickExtent=[r(Math.ceil(t[0]/u)*u,h),r(Math.floor(t[1]/u)*u,h)];return l(d,t),s}function o(t){return i.getPrecisionSafe(t)+2}function s(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]),s(t,0,e),s(t,1,e),t[0]>t[1]&&(t[0]=t[1])}e.intervalScaleNiceTicks=a,e.getIntervalPrecision=o,e.fixExtent=l},"94b1":function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=n("9d57"),o=a.layout,s=a.largeLayout;n("5aa9"),n("17b8"),n("67cc"),n("01ed"),i.registerLayout(i.PRIORITY.VISUAL.LAYOUT,r.curry(o,"bar")),i.registerLayout(i.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,s),i.registerVisual({seriesType:"bar",reset:function(t){t.getData().setVisual("legendSymbol","roundRect")}})},"94e4":function(t,e,n){var i=n("401b"),r=n("53f3"),a=r.getSymbolSize,o=r.getNodeGlobalScale,s=Math.PI,l=[];function c(t,e){var n=t.coordinateSystem;if(!n||"view"===n.type){var r=n.getBoundingRect(),a=t.getData(),o=a.graph,s=r.width/2+r.x,l=r.height/2+r.y,c=Math.min(r.width,r.height)/2,h=a.count();a.setLayout({cx:s,cy:l}),h&&(u[e](t,n,o,a,c,s,l,h),o.eachEdge((function(t){var e,n=t.getModel().get("lineStyle.curveness")||0,r=i.clone(t.node1.getLayout()),a=i.clone(t.node2.getLayout()),o=(r[0]+a[0])/2,c=(r[1]+a[1])/2;+n&&(n*=3,e=[s*n+o*(1-n),l*n+c*(1-n)]),t.setLayout([r,a,e])})))}}var u={value:function(t,e,n,i,r,a,o,s){var l=0,c=i.getSum("value"),u=2*Math.PI/(c||s);n.eachNode((function(t){var e=t.getValue("value"),n=u*(c?e:1)/2;l+=n,t.setLayout([r*Math.cos(l)+a,r*Math.sin(l)+o]),l+=n}))},symbolSize:function(t,e,n,i,r,c,u,h){var d=0;l.length=h;var f=o(t);n.eachNode((function(t){var e=a(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=f;var n=Math.asin(e/2/r);isNaN(n)&&(n=s/2),l[t.dataIndex]=n,d+=2*n}));var p=(2*s-d)/h/2,g=0;n.eachNode((function(t){var e=p+l[t.dataIndex];g+=e,t.setLayout([r*Math.cos(g)+c,r*Math.sin(g)+u]),g+=e}))}};e.circularLayout=c},"95a8":function(t,e,n){var i=n("3eba");n("1953"),n("307d"),i.registerPreprocessor((function(t){t.markLine=t.markLine||{}}))},9680:function(t,e){function n(t,e,n,i,r,a,o){if(0===r)return!1;var s=r,l=0,c=t;if(o>e+s&&o>i+s||o<e-s&&o<i-s||a>t+s&&a>n+s||a<t-s&&a<n-s)return!1;if(t===n)return Math.abs(a-t)<=s/2;l=(e-i)/(t-n),c=(t*i-n*e)/(t-n);var u=l*a-o+c,h=u*u/(l*l+1);return h<=s/2*s/2}e.containStroke=n},9704:function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=n("f706"),o=n("73ca"),s=n("4a01"),l=n("01ef"),c=n("c526"),u=c.onIrrelevantElement,h=n("2306"),d=n("480f"),f=n("53f3"),p=f.getNodeGlobalScale,g="__focusNodeAdjacency",m="__unfocusNodeAdjacency",v=["itemStyle","opacity"],y=["lineStyle","opacity"];function x(t,e){var n=t.getVisual("opacity");return null!=n?n:t.getModel().get(e)}function b(t,e,n){var i=t.getGraphicEl(),r=x(t,e);null!=n&&(null==r&&(r=1),r*=n),i.downplay&&i.downplay(),i.traverse((function(t){if(!t.isGroup){var e=t.lineLabelOriginalOpacity;null!=e&&null==n||(e=r),t.setStyle("opacity",e)}}))}function _(t,e){var n=x(t,e),i=t.getGraphicEl();i.traverse((function(t){!t.isGroup&&t.setStyle("opacity",n)})),i.highlight&&i.highlight()}var w=i.extendChartView({type:"graph",init:function(t,e){var n=new a,i=new o,r=this.group;this._controller=new s(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},render:function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var a=this._symbolDraw,o=this._lineDraw,s=this.group;if("view"===r.type){var l={position:r.position,scale:r.scale};this._firstRender?s.attr(l):h.updateProps(s,l,t)}d(t.getGraph(),p(t));var c=t.getData();a.updateData(c);var u=t.getEdgeData();o.updateData(u),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var f=t.forceLayout,v=t.get("force.layoutAnimation");f&&this._startForceLayoutIteration(f,v),c.eachItemGraphicEl((function(e,r){var a=c.getItemModel(r);e.off("drag").off("dragend");var o=a.get("draggable");o&&e.on("drag",(function(){f&&(f.warmUp(),!this._layouting&&this._startForceLayoutIteration(f,v),f.setFixed(r),c.setItemLayout(r,e.position))}),this).on("dragend",(function(){f&&f.setUnfixed(r)}),this),e.setDraggable(o&&f),e[g]&&e.off("mouseover",e[g]),e[m]&&e.off("mouseout",e[m]),a.get("focusNodeAdjacency")&&(e.on("mouseover",e[g]=function(){i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex})}),e.on("mouseout",e[m]=function(){i._dispatchUnfocus(n)}))}),this),c.graph.eachEdge((function(e){var r=e.getGraphicEl();r[g]&&r.off("mouseover",r[g]),r[m]&&r.off("mouseout",r[m]),e.getModel().get("focusNodeAdjacency")&&(r.on("mouseover",r[g]=function(){i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,edgeDataIndex:e.dataIndex})}),r.on("mouseout",r[m]=function(){i._dispatchUnfocus(n)}))}));var y="circular"===t.get("layout")&&t.get("circular.rotateLabel"),x=c.getLayout("cx"),b=c.getLayout("cy");c.eachItemGraphicEl((function(t,e){var n=c.getItemModel(e),i=n.get("label.rotate")||0,r=t.getSymbolPath();if(y){var a=c.getItemLayout(e),o=Math.atan2(a[1]-b,a[0]-x);o<0&&(o=2*Math.PI+o);var s=a[0]<x;s&&(o-=Math.PI);var l=s?"left":"right";h.modifyLabelStyle(r,{textRotation:-o,textPosition:l,textOrigin:"center"},{textPosition:l})}else h.modifyLabelStyle(r,{textRotation:i*=Math.PI/180})})),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={},this._clearTimer()},_dispatchUnfocus:function(t,e){var n=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){n._unfocusDelayTimer=null,t.dispatchAction({type:"unfocusNodeAdjacency",seriesId:n._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(t,e,n,i){var a=t.getData(),o=a.graph,s=i.dataIndex,l=i.edgeDataIndex,c=o.getNodeByIndex(s),u=o.getEdgeByIndex(l);(c||u)&&(o.eachNode((function(t){b(t,v,.1)})),o.eachEdge((function(t){b(t,y,.1)})),c&&(_(c,v),r.each(c.edges,(function(t){t.dataIndex<0||(_(t,y),_(t.node1,v),_(t.node2,v))}))),u&&(_(u,y),_(u.node1,v),_(u.node2,v)))},unfocusNodeAdjacency:function(t,e,n,i){var r=t.getData().graph;r.eachNode((function(t){b(t,v)})),r.eachEdge((function(t){b(t,y)}))},_startForceLayoutIteration:function(t,e){var n=this;(function i(){t.step((function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(i,16):i())}))})()},_updateController:function(t,e,n){var i=this._controller,r=this._controllerHost,a=this.group;i.setPointerChecker((function(e,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!u(e,n,t)})),"view"===t.coordinateSystem.type?(i.enable(t.get("roam")),r.zoomLimit=t.get("scaleLimit"),r.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(e){l.updateViewOnPan(r,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){l.updateViewOnZoom(r,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),this._updateNodeAndLinkScale(),d(t.getGraph(),p(t)),this._lineDraw.updateLayout()}),this)):i.disable()},_updateNodeAndLinkScale:function(){var t=this._model,e=t.getData(),n=p(t),i=[n,n];e.eachItemGraphicEl((function(t,e){t.attr("scale",i)}))},updateLayout:function(t){d(t.getGraph(),p(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});t.exports=w},9850:function(t,e,n){var i=n("401b"),r=n("1687"),a=i.applyTransform,o=Math.min,s=Math.max;function l(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}l.prototype={constructor:l,union:function(t){var e=o(t.x,this.x),n=o(t.y,this.y);this.width=s(t.x+t.width,this.x+this.width)-e,this.height=s(t.y+t.height,this.y+this.height)-n,this.x=e,this.y=n},applyTransform:function(){var t=[],e=[],n=[],i=[];return function(r){if(r){t[0]=n[0]=this.x,t[1]=i[1]=this.y,e[0]=i[0]=this.x+this.width,e[1]=n[1]=this.y+this.height,a(t,t,r),a(e,e,r),a(n,n,r),a(i,i,r),this.x=o(t[0],e[0],n[0],i[0]),this.y=o(t[1],e[1],n[1],i[1]);var l=s(t[0],e[0],n[0],i[0]),c=s(t[1],e[1],n[1],i[1]);this.width=l-this.x,this.height=c-this.y}}}(),calculateTransform:function(t){var e=this,n=t.width/e.width,i=t.height/e.height,a=r.create();return r.translate(a,a,[-e.x,-e.y]),r.scale(a,a,[n,i]),r.translate(a,a,[t.x,t.y]),a},intersect:function(t){if(!t)return!1;t instanceof l||(t=l.create(t));var e=this,n=e.x,i=e.x+e.width,r=e.y,a=e.y+e.height,o=t.x,s=t.x+t.width,c=t.y,u=t.y+t.height;return!(i<o||s<n||a<c||u<r)},contain:function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},clone:function(){return new l(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},l.create=function(t){return new l(t.x,t.y,t.width,t.height)};var c=l;t.exports=c},"98b7":function(t,e){var n="undefined"!==typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)};t.exports=n},"98e7":function(t,e,n){var i=n("6d8b"),r=i.createHashMap;function a(t){return{getTargetSeries:function(e){var n={},i=r();return e.eachSeriesByType(t,(function(t){t.__paletteScope=n,i.set(t.uid,t)})),i},reset:function(t,e){var n=t.getRawData(),i={},r=t.getData();r.each((function(t){var e=r.getRawIndex(t);i[e]=t})),n.each((function(e){var a,o=i[e],s=null!=o&&r.getItemVisual(o,"color",!0),l=null!=o&&r.getItemVisual(o,"borderColor",!0);if(s&&l||(a=n.getItemModel(e)),!s){var c=a.get("itemStyle.color")||t.getColorFromPalette(n.getName(e)||e+"",t.__paletteScope,n.count());null!=o&&r.setItemVisual(o,"color",c)}if(!l){var u=a.get("itemStyle.borderColor");null!=o&&r.setItemVisual(o,"borderColor",u)}}))}}}t.exports=a},9911:function(t,e,n){"use strict";var i=n("23e7"),r=n("857a"),a=n("af03");i({target:"String",proto:!0,forced:a("link")},{link:function(t){return r(this,"a","href",t)}})},"998c":function(t,e,n){var i=n("6d8b"),r=n("2306"),a=n("e86a"),o=Math.PI;function s(t,e){e=e||{},i.defaults(e,{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 r.Group,s=new r.Rect({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(s);var l=e.fontSize+" sans-serif",c=new r.Rect({style:{fill:"none",text:e.text,font:l,textPosition:"right",textDistance:10,textFill:e.textColor},zlevel:e.zlevel,z:10001});if(n.add(c),e.showSpinner){var u=new r.Arc({shape:{startAngle:-o/2,endAngle:-o/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001});u.animateShape(!0).when(1e3,{endAngle:3*o/2}).start("circularInOut"),u.animateShape(!0).when(1e3,{startAngle:3*o/2}).delay(300).start("circularInOut"),n.add(u)}return n.resize=function(){var n=a.getWidth(e.text,l),i=e.showSpinner?e.spinnerRadius:0,r=(t.getWidth()-2*i-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner?0:n/2),o=t.getHeight()/2;e.showSpinner&&u.setShape({cx:r,cy:o}),c.setShape({x:r-i,y:o-i,width:2*i,height:2*i}),s.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}t.exports=s},"9bdb":function(t,e,n){var i=n("282b"),r=i([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),a={getAreaStyle:function(t,e){return r(this,t,e)}};t.exports=a},"9c2c":function(t,e,n){var i=n("401b"),r=i.min,a=i.max,o=i.scale,s=i.distance,l=i.add,c=i.clone,u=i.sub;function h(t,e,n,i){var h,d,f,p,g=[],m=[],v=[],y=[];if(i){f=[1/0,1/0],p=[-1/0,-1/0];for(var x=0,b=t.length;x<b;x++)r(f,f,t[x]),a(p,p,t[x]);r(f,f,i[0]),a(p,p,i[1])}for(x=0,b=t.length;x<b;x++){var _=t[x];if(n)h=t[x?x-1:b-1],d=t[(x+1)%b];else{if(0===x||x===b-1){g.push(c(t[x]));continue}h=t[x-1],d=t[x+1]}u(m,d,h),o(m,m,e);var w=s(_,h),S=s(_,d),A=w+S;0!==A&&(w/=A,S/=A),o(v,m,-w),o(y,m,S);var C=l([],_,v),I=l([],_,y);i&&(a(C,C,f),r(C,C,p),a(I,I,f),r(I,I,p)),g.push(C),g.push(I)}return n&&g.push(g.shift()),g}t.exports=h},"9ca8":function(t,e,n){var i=n("6d8b"),r=n("9850"),a=n("3842"),o=a.parsePercent,s=a.MAX_SAFE_INTEGER,l=n("f934"),c=n("55ac"),u=Math.max,h=Math.min,d=i.retrieve,f=i.each,p=["itemStyle","borderWidth"],g=["itemStyle","gapWidth"],m=["upperLabel","show"],v=["upperLabel","height"],y={seriesType:"treemap",reset:function(t,e,n,a){var s=n.getWidth(),u=n.getHeight(),h=t.option,p=l.getLayoutRect(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),g=h.size||[],m=o(d(p.width,g[0]),s),v=o(d(p.height,g[1]),u),y=a&&a.type,b=["treemapZoomToNode","treemapRootToNode"],_=c.retrieveTargetInfo(a,b,t),w="treemapRender"===y||"treemapMove"===y?a.rootRect:null,S=t.getViewRoot(),A=c.getPathToRoot(S);if("treemapMove"!==y){var C="treemapZoomToNode"===y?I(t,_,S,m,v):w?[w.width,w.height]:[m,v],M=h.sort;M&&"asc"!==M&&"desc"!==M&&(M="desc");var D={squareRatio:h.squareRatio,sort:M,leafDepth:h.leafDepth};S.hostTree.clearLayouts();var E={x:0,y:0,width:C[0],height:C[1],area:C[0]*C[1]};S.setLayout(E),x(S,D,!1,0);E=S.getLayout();f(A,(function(t,e){var n=(A[e+1]||S).getValue();t.setLayout(i.extend({dataExtent:[n,n],borderWidth:0,upperHeight:0},E))}))}var L=t.getData().tree.root;L.setLayout(T(p,w,_),!0),t.setLayoutInfo(p),k(L,new r(-p.x,-p.y,s,u),A,S,0)}};function x(t,e,n,i){var r,a;if(!t.isRemoved()){var o=t.getLayout();r=o.width,a=o.height;var s=t.getModel(),l=s.get(p),c=s.get(g)/2,d=M(s),f=Math.max(l,d),m=l-c,v=f-c;s=t.getModel();t.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:d},!0),r=u(r-2*m,0),a=u(a-m-v,0);var y=r*a,_=b(t,s,y,e,n,i);if(_.length){var w={x:m,y:v,width:r,height:a},S=h(r,a),I=1/0,T=[];T.area=0;for(var k=0,D=_.length;k<D;){var E=_[k];T.push(E),T.area+=E.getLayout().area;var L=A(T,S,e.squareRatio);L<=I?(k++,I=L):(T.area-=T.pop().getLayout().area,C(T,S,w,c,!1),S=h(w.width,w.height),T.length=T.area=0,I=1/0)}if(T.length&&C(T,S,w,c,!0),!n){var P=s.get("childrenVisibleMin");null!=P&&y<P&&(n=!0)}for(k=0,D=_.length;k<D;k++)x(_[k],e,n,i+1)}}}function b(t,e,n,r,a,o){var s=t.children||[],l=r.sort;"asc"!==l&&"desc"!==l&&(l=null);var c=null!=r.leafDepth&&r.leafDepth<=o;if(a&&!c)return t.viewChildren=[];s=i.filter(s,(function(t){return!t.isRemoved()})),w(s,l);var u=S(e,s,l);if(0===u.sum)return t.viewChildren=[];if(u.sum=_(e,n,u.sum,l,s),0===u.sum)return t.viewChildren=[];for(var h=0,d=s.length;h<d;h++){var f=s[h].getValue()/u.sum*n;s[h].setLayout({area:f})}return c&&(s.length&&t.setLayout({isLeafRoot:!0},!0),s.length=0),t.viewChildren=s,t.setLayout({dataExtent:u.dataExtent},!0),s}function _(t,e,n,i,r){if(!i)return n;for(var a=t.get("visibleMin"),o=r.length,s=o,l=o-1;l>=0;l--){var c=r["asc"===i?o-l-1:l].getValue();c/n*e<a&&(s=l,n-=c)}return"asc"===i?r.splice(0,o-s):r.splice(s,o-s),n}function w(t,e){return e&&t.sort((function(t,n){var i="asc"===e?t.getValue()-n.getValue():n.getValue()-t.getValue();return 0===i?"asc"===e?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:i})),t}function S(t,e,n){for(var i=0,r=0,a=e.length;r<a;r++)i+=e[r].getValue();var o=t.get("visualDimension");if(e&&e.length)if("value"===o&&n)s=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&s.reverse();else{var s=[1/0,-1/0];f(e,(function(t){var e=t.getValue(o);e<s[0]&&(s[0]=e),e>s[1]&&(s[1]=e)}))}else s=[NaN,NaN];return{sum:i,dataExtent:s}}function A(t,e,n){for(var i,r=0,a=1/0,o=0,s=t.length;o<s;o++)i=t[o].getLayout().area,i&&(i<a&&(a=i),i>r&&(r=i));var l=t.area*t.area,c=e*e*n;return l?u(c*r/l,l/(c*a)):1/0}function C(t,e,n,i,r){var a=e===n.width?0:1,o=1-a,s=["x","y"],l=["width","height"],c=n[s[a]],d=e?t.area/e:0;(r||d>n[l[o]])&&(d=n[l[o]]);for(var f=0,p=t.length;f<p;f++){var g=t[f],m={},v=d?g.getLayout().area/d:0,y=m[l[o]]=u(d-2*i,0),x=n[s[a]]+n[l[a]]-c,b=f===p-1||x<v?x:v,_=m[l[a]]=u(b-2*i,0);m[s[o]]=n[s[o]]+h(i,y/2),m[s[a]]=c+h(i,_/2),c+=b,g.setLayout(m,!0)}n[s[o]]+=d,n[l[o]]-=d}function I(t,e,n,i,r){var a,o=(e||{}).node,l=[i,r];if(!o||o===n)return l;var c=i*r,u=c*t.option.zoomToNodeRatio;while(a=o.parentNode){for(var h=0,d=a.children,f=0,g=d.length;f<g;f++)h+=d[f].getValue();var m=o.getValue();if(0===m)return l;u*=h/m;var v=a.getModel(),y=v.get(p),x=Math.max(y,M(v,y));u+=4*y*y+(3*y+x)*Math.pow(u,.5),u>s&&(u=s),o=a}u<c&&(u=c);var b=Math.pow(u/c,.5);return[i*b,r*b]}function T(t,e,n){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!n)return i;var r=n.node,a=r.getLayout();if(!a)return i;var o=[a.width/2,a.height/2],s=r;while(s){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:t.width/2-o[0],y:t.height/2-o[1]}}function k(t,e,n,i,a){var o=t.getLayout(),s=n[a],l=s&&s===t;if(!(s&&!l||a===n.length&&t!==i)){t.setLayout({isInView:!0,invisible:!l&&!e.intersect(o),isAboveViewRoot:l},!0);var c=new r(e.x-o.x,e.y-o.y,e.width,e.height);f(t.viewChildren||[],(function(t){k(t,c,n,i,a+1)}))}}function M(t){return t.get(m)?t.get(v):0}t.exports=y},"9cf9":function(t,e){var n=Math.round;function i(t,e,i){if(e){var r=e.x1,o=e.x2,s=e.y1,l=e.y2;t.x1=r,t.x2=o,t.y1=s,t.y2=l;var c=i&&i.lineWidth;c&&(n(2*r)===n(2*o)&&(t.x1=t.x2=a(r,c,!0)),n(2*s)===n(2*l)&&(t.y1=t.y2=a(s,c,!0)))}}function r(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,s=e.height;t.x=i,t.y=r,t.width=o,t.height=s;var l=n&&n.lineWidth;l&&(t.x=a(i,l,!0),t.y=a(r,l,!0),t.width=Math.max(a(i+o,l,!1)-t.x,0===o?0:1),t.height=Math.max(a(r+s,l,!1)-t.y,0===s?0:1))}}function a(t,e,i){if(!e)return t;var r=n(2*t);return(r+n(e))%2===0?r/2:(r+(i?1:-1))/2}e.subPixelOptimizeLine=i,e.subPixelOptimizeRect=r,e.subPixelOptimize=a},"9d57":function(t,e,n){var i=n("6d8b"),r=n("3842"),a=r.parsePercent,o=n("ee1a"),s=o.isDimensionStacked,l=n("cccd"),c="__ec_stack_",u=.5,h="undefined"!==typeof Float32Array?Float32Array:Array;function d(t){return t.get("stack")||c+t.seriesIndex}function f(t){return t.dim+t.index}function p(t){var e=[],n=t.axis,r="axis0";if("category"===n.type){for(var a=n.getBandWidth(),o=0;o<t.count;o++)e.push(i.defaults({bandWidth:a,axisKey:r,stackId:c+o},t));var s=y(e),l=[];for(o=0;o<t.count;o++){var u=s[r][c+o];u.offsetCenter=u.offset+u.width/2,l.push(u)}return l}}function g(t,e){var n=[];return e.eachSeriesByType(t,(function(t){w(t)&&!S(t)&&n.push(t)})),n}function m(t){var e={};i.each(t,(function(t){var n=t.coordinateSystem,i=n.getBaseAxis();if("time"===i.type||"value"===i.type)for(var r=t.getData(),a=i.dim+"_"+i.index,o=r.mapDimension(i.dim),s=0,l=r.count();s<l;++s){var c=r.get(o,s);e[a]?e[a].push(c):e[a]=[c]}}));var n=[];for(var r in e)if(e.hasOwnProperty(r)){var a=e[r];if(a){a.sort((function(t,e){return t-e}));for(var o=null,s=1;s<a.length;++s){var l=a[s]-a[s-1];l>0&&(o=null===o?l:Math.min(o,l))}n[r]=o}}return n}function v(t){var e=m(t),n=[];return i.each(t,(function(t){var i,r=t.coordinateSystem,o=r.getBaseAxis(),s=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var l=o.dim+"_"+o.index,c=e[l],u=Math.abs(s[1]-s[0]),h=o.scale.getExtent(),p=Math.abs(h[1]-h[0]);i=c?u/p*c:u}else{var g=t.getData();i=Math.abs(s[1]-s[0])/g.count()}var m=a(t.get("barWidth"),i),v=a(t.get("barMaxWidth"),i),y=a(t.get("barMinWidth")||1,i),x=t.get("barGap"),b=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:m,barMaxWidth:v,barMinWidth:y,barGap:x,barCategoryGap:b,axisKey:f(o),stackId:d(t)})})),y(n)}function y(t){var e={};i.each(t,(function(t,n){var i=t.axisKey,r=t.bandWidth,a=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},o=a.stacks;e[i]=a;var s=t.stackId;o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!o[s].width&&(o[s].width=l,l=Math.min(a.remainedWidth,l),a.remainedWidth-=l);var c=t.barMaxWidth;c&&(o[s].maxWidth=c);var u=t.barMinWidth;u&&(o[s].minWidth=u);var h=t.barGap;null!=h&&(a.gap=h);var d=t.barCategoryGap;null!=d&&(a.categoryGap=d)}));var n={};return i.each(e,(function(t,e){n[e]={};var r=t.stacks,o=t.bandWidth,s=a(t.categoryGap,o),l=a(t.gap,1),c=t.remainedWidth,u=t.autoWidthCount,h=(c-s)/(u+(u-1)*l);h=Math.max(h,0),i.each(r,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,c-=i+l*i,u--}else{var i=h;e&&e<i&&(i=Math.min(e,c)),n&&n>i&&(i=n),i!==h&&(t.width=i,c-=i+l*i,u--)}})),h=(c-s)/(u+(u-1)*l),h=Math.max(h,0);var d,f=0;i.each(r,(function(t,e){t.width||(t.width=h),d=t,f+=t.width*(1+l)})),d&&(f-=d.width*l);var p=-f/2;i.each(r,(function(t,i){n[e][i]=n[e][i]||{bandWidth:o,offset:p,width:t.width},p+=t.width*(1+l)}))})),n}function x(t,e,n){if(t&&e){var i=t[f(e)];return null!=i&&null!=n&&(i=i[d(n)]),i}}function b(t,e){var n=g(t,e),r=v(n),a={},o={};i.each(n,(function(t){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),l=d(t),c=r[f(i)][l],u=c.offset,h=c.width,p=n.getOtherAxis(i),g=t.get("barMinHeight")||0;a[l]=a[l]||[],o[l]=o[l]||[],e.setLayout({bandWidth:c.bandWidth,offset:u,size:h});for(var m=e.mapDimension(p.dim),v=e.mapDimension(i.dim),y=s(e,m),x=p.isHorizontal(),b=A(i,p,y),_=0,w=e.count();_<w;_++){var S,C,I,T,k=e.get(m,_),M=e.get(v,_),D=k>=0?"p":"n",E=b;if(y&&(a[l][M]||(a[l][M]={p:b,n:b}),E=a[l][M][D]),x){var L=n.dataToPoint([k,M]);S=E,C=L[1]+u,I=L[0]-b,T=h,Math.abs(I)<g&&(I=(I<0?-1:1)*g),isNaN(I)||y&&(a[l][M][D]+=I)}else{L=n.dataToPoint([M,k]);S=L[0]+u,C=E,I=h,T=L[1]-b,Math.abs(T)<g&&(T=(T<=0?-1:1)*g),isNaN(T)||y&&(a[l][M][D]+=T)}e.setItemLayout(_,{x:S,y:C,width:I,height:T})}}),this)}var _={seriesType:"bar",plan:l(),reset:function(t){if(w(t)&&S(t)){var e=t.getData(),n=t.coordinateSystem,i=n.grid.getRect(),r=n.getBaseAxis(),a=n.getOtherAxis(r),o=e.mapDimension(a.dim),s=e.mapDimension(r.dim),l=a.isHorizontal(),c=l?0:1,d=x(v([t]),r,t).width;return d>u||(d=u),{progress:f}}function f(t,e){var u,f=t.count,p=new h(2*f),g=new h(2*f),m=new h(f),v=[],y=[],x=0,b=0;while(null!=(u=t.next()))y[c]=e.get(o,u),y[1-c]=e.get(s,u),v=n.dataToPoint(y,null,v),g[x]=l?i.x+i.width:v[0],p[x++]=v[0],g[x]=l?v[1]:i.y+i.height,p[x++]=v[1],m[b++]=u;e.setLayout({largePoints:p,largeDataIndices:m,largeBackgroundPoints:g,barWidth:d,valueAxisStart:A(r,a,!1),backgroundStart:l?i.x:i.y,valueAxisHorizontal:l})}}};function w(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function S(t){return t.pipelineContext&&t.pipelineContext.large}function A(t,e,n){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}e.getLayoutOnAxis=p,e.prepareLayoutBarSeries=g,e.makeColumnLayout=v,e.retrieveColumnLayout=x,e.layout=b,e.largeLayout=_},"9e2e":function(t,e,n){var i=n("a73c"),r=n("9850"),a=n("82eb"),o=a.WILL_BE_RESTORED,s=new r,l=function(){};l.prototype={constructor:l,drawRectText:function(t,e){var n=this.style;e=n.textRect||e,this.__dirty&&i.normalizeTextStyle(n,!0);var r=n.text;if(null!=r&&(r+=""),i.needDrawText(r,n)){t.save();var a=this.transform;n.transformText?this.setTransform(t):a&&(s.copy(e),s.applyTransform(a),e=s),i.renderText(this,t,r,n,e,o),t.restore()}}};var c=l;t.exports=c},"9e47":function(t,e,n){var i=n("6d8b"),r=n("71ad"),a=n("6cb7"),o=n("f934"),s=o.getLayoutParams,l=o.mergeLayoutParam,c=n("8e43"),u=["value","category","time","log"];function h(t,e,n,o){i.each(u,(function(a){e.extend({type:t+"Axis."+a,mergeDefaultAndTheme:function(e,r){var o=this.layoutMode,c=o?s(e):{},u=r.getTheme();i.merge(e,u.get(a+"Axis")),i.merge(e,this.getDefaultOption()),e.type=n(t,e),o&&l(e,c,o)},optionUpdated:function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=c.createByAxisModel(this))},getCategories:function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:i.mergeAll([{},r[a+"Axis"],o],!0)})})),a.registerSubTypeDefaulter(t+"Axis",i.curry(n,t))}t.exports=h},"9e87":function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=n("50e5");i.registerAction("dataZoom",(function(t,e){var n=a.createLinkedNodesFinder(r.bind(e.eachComponent,e,"dataZoom"),a.eachAxisDim,(function(t,e){return t.get(e.axisIndex)})),i=[];e.eachComponent({mainType:"dataZoom",query:t},(function(t,e){i.push.apply(i,n(t).nodes)})),r.each(i,(function(e,n){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))},"9f51":function(t,e,n){var i=n("857d"),r=i.normalizeRadian,a=2*Math.PI;function o(t,e,n,i,o,s,l,c,u){if(0===l)return!1;var h=l;c-=t,u-=e;var d=Math.sqrt(c*c+u*u);if(d-h>n||d+h<n)return!1;if(Math.abs(i-o)%a<1e-4)return!0;if(s){var f=i;i=r(o),o=r(f)}else i=r(i),o=r(o);i>o&&(o+=a);var p=Math.atan2(u,c);return p<0&&(p+=a),p>=i&&p<=o||p+a>=i&&p+a<=o}e.containStroke=o},"9f82":function(t,e,n){var i=n("ee1a"),r=i.isDimensionStacked,a=n("6d8b"),o=a.map;function s(t,e,n){var i,a=t.getBaseAxis(),s=t.getOtherAxis(a),c=l(s,n),u=a.dim,h=s.dim,d=e.mapDimension(h),f=e.mapDimension(u),p="x"===h||"radius"===h?1:0,g=o(t.dimensions,(function(t){return e.mapDimension(t)})),m=e.getCalculationInfo("stackResultDimension");return(i|=r(e,g[0]))&&(g[0]=m),(i|=r(e,g[1]))&&(g[1]=m),{dataDimsForPoint:g,valueStart:c,valueAxisDim:h,baseAxisDim:u,stacked:!!i,valueDim:d,baseDim:f,baseDataOffset:p,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function l(t,e){var n=0,i=t.scale.getExtent();return"start"===e?n=i[0]:"end"===e?n=i[1]:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function c(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=n.get(t.baseDim,i),o[1-a]=r,e.dataToPoint(o)}e.prepareDataCoordInfo=s,e.getStackedOnPoint=c},"9fa3":function(t,e,n){var i=n("4ab1"),r=n("6d8b"),a=n("1687");function o(t,e){i.call(this,t,e,"clipPath","__clippath_in_use__")}r.inherits(o,i),o.prototype.update=function(t){var e=this.getSvgElement(t);e&&this.updateDom(e,t.__clipPaths,!1);var n=this.getTextSvgElement(t);n&&this.updateDom(n,t.__clipPaths,!0),this.markUsed(t)},o.prototype.updateDom=function(t,e,n){if(e&&e.length>0){var i,r,o=this.getDefs(!0),s=e[0],l=n?"_textDom":"_dom";s[l]?(r=s[l].getAttribute("id"),i=s[l],o.contains(i)||o.appendChild(i)):(r="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,i=this.createElement("clipPath"),i.setAttribute("id",r),o.appendChild(i),s[l]=i);var c=this.getSvgProxy(s);if(s.transform&&s.parent.invTransform&&!n){var u=Array.prototype.slice.call(s.transform);a.mul(s.transform,s.parent.invTransform,s.transform),c.brush(s),s.transform=u}else c.brush(s);var h=this.getSvgElement(s);i.innerHTML="",i.appendChild(h.cloneNode()),t.setAttribute("clip-path","url(#"+r+")"),e.length>1&&this.updateDom(i,e.slice(1),n)}else t&&t.setAttribute("clip-path","none")},o.prototype.markUsed=function(t){var e=this;t.__clipPaths&&r.each(t.__clipPaths,(function(t){t._dom&&i.prototype.markUsed.call(e,t._dom),t._textDom&&i.prototype.markUsed.call(e,t._textDom)}))};var s=o;t.exports=s},a0168:function(t,e,n){var i=n("4f85"),r=n("e46b"),a=n("6d8b"),o=n("eda2"),s=o.encodeHTML,l=n("c4a3"),c=i.extend({type:"series.radar",dependencies:["radar"],init:function(t){c.superApply(this,"init",arguments),this.legendVisualProvider=new l(a.bind(this.getData,this),a.bind(this.getRawData,this))},getInitialData:function(t,e){return r(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(t){var e=this.getData(),n=this.coordinateSystem,i=n.getIndicatorAxes(),r=this.getData().getName(t);return s(""===r?this.name:r)+"<br/>"+a.map(i,(function(n,i){var r=e.get(e.mapDimension(n.dim),t);return s(n.name+" : "+r)})).join("<br />")},getTooltipPosition:function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,i=e.getValues(a.map(n.dimensions,(function(t){return e.mapDimension(t)})),t,!0),r=0,o=i.length;r<o;r++)if(!isNaN(i[r])){var s=n.getIndicatorAxes();return n.coordToPoint(s[r].dataToCoord(i[r]),r)}},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),u=c;t.exports=u},a04e:function(t,e,n){var i=n("6cb7");i.registerSubTypeDefaulter("timeline",(function(){return"slider"}))},a15a:function(t,e,n){var i=n("6d8b"),r=n("2306"),a=n("9850"),o=n("e86a"),s=o.calculateTextPosition,l=r.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,a=e.height/2;t.moveTo(n,i-a),t.lineTo(n+r,i+a),t.lineTo(n-r,i+a),t.closePath()}}),c=r.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,a=e.height/2;t.moveTo(n,i-a),t.lineTo(n+r,i),t.lineTo(n,i+a),t.lineTo(n-r,i),t.closePath()}}),u=r.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,a=Math.max(r,e.height),o=r/2,s=o*o/(a-o),l=i-a+o+s,c=Math.asin(s/o),u=Math.cos(c)*o,h=Math.sin(c),d=Math.cos(c),f=.6*o,p=.7*o;t.moveTo(n-u,l+s),t.arc(n,l,o,Math.PI-c,2*Math.PI+c),t.bezierCurveTo(n+u-h*f,l+s+d*f,n,i-p,n,i),t.bezierCurveTo(n,i-p,n-u+h*f,l+s+d*f,n-u,l+s),t.closePath()}}),h=r.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,a=e.y,o=i/3*2;t.moveTo(r,a),t.lineTo(r+o,a+n),t.lineTo(r,a+n/4*3),t.lineTo(r-o,a+n),t.lineTo(r,a),t.closePath()}}),d={line:r.Line,rect:r.Rect,roundRect:r.Rect,square:r.Rect,circle:r.Circle,diamond:c,pin:u,arrow:h,triangle:l},f={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var a=Math.min(n,i);r.x=t,r.y=e,r.width=a,r.height=a},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},p={};i.each(d,(function(t,e){p[e]=new t}));var g=r.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=s(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.textPosition&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=p[i];r||(i="rect",r=p[i]),f[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}});function m(t,e){if("image"!==this.type){var n=this.style,i=this.shape;i&&"line"===i.symbolType?n.stroke=t:this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff"):(n.fill&&(n.fill=t),n.stroke&&(n.stroke=t)),this.dirty(!1)}}function v(t,e,n,i,o,s,l){var c,u=0===t.indexOf("empty");return u&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),c=0===t.indexOf("image://")?r.makeImage(t.slice(8),new a(e,n,i,o),l?"center":"cover"):0===t.indexOf("path://")?r.makePath(t.slice(7),{},new a(e,n,i,o),l?"center":"cover"):new g({shape:{symbolType:t,x:e,y:n,width:i,height:o}}),c.__isEmptyBrush=u,c.setColor=m,c.setColor(s),c}e.createSymbol=v},a18f:function(t,e,n){var i=n("3a56"),r=i.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});t.exports=r},a38d:function(t,e,n){var i=n("2306"),r=n("392f"),a=n("9680"),o=n("68ab"),s=i.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(t,e){var n=e.segs,i=e.curveness;if(e.polyline)for(var r=0;r<n.length;){var a=n[r++];if(a>0){t.moveTo(n[r++],n[r++]);for(var o=1;o<a;o++)t.lineTo(n[r++],n[r++])}}else for(r=0;r<n.length;){var s=n[r++],l=n[r++],c=n[r++],u=n[r++];if(t.moveTo(s,l),i>0){var h=(s+c)/2-(l-u)*i,d=(l+u)/2-(c-s)*i;t.quadraticCurveTo(h,d,c,u)}else t.lineTo(c,u)}},findDataIndex:function(t,e){var n=this.shape,i=n.segs,r=n.curveness;if(n.polyline)for(var s=0,l=0;l<i.length;){var c=i[l++];if(c>0)for(var u=i[l++],h=i[l++],d=1;d<c;d++){var f=i[l++],p=i[l++];if(a.containStroke(u,h,f,p))return s}s++}else for(s=0,l=0;l<i.length;){u=i[l++],h=i[l++],f=i[l++],p=i[l++];if(r>0){var g=(u+f)/2-(h-p)*r,m=(h+p)/2-(f-u)*r;if(o.containStroke(u,h,g,m,f,p))return s}else if(a.containStroke(u,h,f,p))return s;s++}return-1}});function l(){this.group=new i.Group}var c=l.prototype;c.isPersistent=function(){return!this._incremental},c.updateData=function(t){this.group.removeAll();var e=new s({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},c.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>5e5?(this._incremental||(this._incremental=new r({silent:!0})),this.group.add(this._incremental)):this._incremental=null},c.incrementalUpdate=function(t,e){var n=new s;n.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(n,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=t.start,this.group.add(n))},c.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},c._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get("lineStyle.curveness")}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("color");r&&t.setStyle("stroke",r),t.setStyle("fill"),n||(t.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){t.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>0&&(t.dataIndex=n+t.__startIndex)})))},c._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var u=l;t.exports=u},a434:function(t,e,n){"use strict";var i=n("23e7"),r=n("23cb"),a=n("a691"),o=n("50c4"),s=n("7b0b"),l=n("65f0"),c=n("8418"),u=n("1dde"),h=n("ae40"),d=u("splice"),f=h("splice",{ACCESSORS:!0,0:0,1:2}),p=Math.max,g=Math.min,m=9007199254740991,v="Maximum allowed length exceeded";i({target:"Array",proto:!0,forced:!d||!f},{splice:function(t,e){var n,i,u,h,d,f,y=s(this),x=o(y.length),b=r(t,x),_=arguments.length;if(0===_?n=i=0:1===_?(n=0,i=x-b):(n=_-2,i=g(p(a(e),0),x-b)),x+n-i>m)throw TypeError(v);for(u=l(y,i),h=0;h<i;h++)d=b+h,d in y&&c(u,h,y[d]);if(u.length=i,n<i){for(h=b;h<x-i;h++)d=h+i,f=h+n,d in y?y[f]=y[d]:delete y[f];for(h=x;h>x-i+n;h--)delete y[h-1]}else if(n>i)for(h=x-i;h>b;h--)d=h+i-1,f=h+n-1,d in y?y[f]=y[d]:delete y[f];for(h=0;h<n;h++)y[h+b]=arguments[h+2];return y.length=x-i+n,u}})},a4b1:function(t,e,n){var i=n("3eba");n("00ba"),n("4d62");var r=n("98e7"),a=n("24b9"),o=n("d3f4");i.registerVisual(r("funnel")),i.registerLayout(a),i.registerProcessor(o("funnel"))},a4fe:function(t,e,n){var i=n("3eba"),r="\0_ec_interaction_mutex";function a(t,e,n){var i=l(t);i[e]=n}function o(t,e,n){var i=l(t),r=i[e];r===n&&(i[e]=null)}function s(t,e){return!!l(t)[e]}function l(t){return t[r]||(t[r]={})}i.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},(function(){})),e.take=a,e.release=o,e.isTaken=s},a630:function(t,e,n){var i=n("23e7"),r=n("4df4"),a=n("1c7e"),o=!a((function(t){Array.from(t)}));i({target:"Array",stat:!0,forced:o},{from:r})},a666:function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=n("2306"),o=n("0c41"),s="__seriesMapHighDown",l="__seriesMapCallKey",c=i.extendChartView({type:"map",render:function(t,e,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!t.getHostGeoModel()){if(i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id){a=this._mapDraw;a&&r.add(a.group)}else if(t.needsDrawMap){var a=this._mapDraw||new o(n,!0);r.add(a.group),a.draw(t,e,n,this,i),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t,e,n){var i=t.originalData,o=this.group;i.each(i.mapDimension("value"),(function(e,n){if(!isNaN(e)){var c=i.getItemLayout(n);if(c&&c.point){var d=c.point,f=c.offset,p=new a.Circle({style:{fill:t.getData().getVisual("color")},shape:{cx:d[0]+9*f,cy:d[1],r:3},silent:!0,z2:8+(f?0:a.Z2_EMPHASIS_LIFT+1)});if(!f){var g=t.mainSeries.getData(),m=i.getName(n),v=g.indexOfName(m),y=i.getItemModel(n),x=y.getModel("label"),b=y.getModel("emphasis.label"),_=g.getItemGraphicEl(v),w=r.retrieve2(t.getFormattedLabel(v,"normal"),m),S=r.retrieve2(t.getFormattedLabel(v,"emphasis"),w),A=_[s],C=Math.random();if(!A){A=_[s]={};var I=r.curry(u,!0),T=r.curry(u,!1);_.on("mouseover",I).on("mouseout",T).on("emphasis",I).on("normal",T)}_[l]=C,r.extend(A,{recordVersion:C,circle:p,labelModel:x,hoverLabelModel:b,emphasisText:S,normalText:w}),h(A,!1)}o.add(p)}}}))}});function u(t){var e=this[s];e&&e.recordVersion===this[l]&&h(e,t)}function h(t,e){var n=t.circle,i=t.labelModel,r=t.hoverLabelModel,o=t.emphasisText,s=t.normalText;e?(n.style.extendFrom(a.setTextStyle({},r,{text:r.get("show")?o:null},{isRectText:!0,useInsideStyle:!1},!0)),n.__mapOriginalZ2=n.z2,n.z2+=a.Z2_EMPHASIS_LIFT):(a.setTextStyle(n.style,i,{text:i.get("show")?s:null,textPosition:i.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),n.dirty(!1),null!=n.__mapOriginalZ2&&(n.z2=n.__mapOriginalZ2,n.__mapOriginalZ2=null))}t.exports=c},a73c:function(t,e,n){var i=n("6d8b"),r=i.retrieve2,a=i.retrieve3,o=i.each,s=i.normalizeCssArray,l=i.isString,c=i.isObject,u=n("e86a"),h=n("5693"),d=n("5e76"),f=n("7d6d"),p=n("82eb"),g=p.ContextCachedBy,m=p.WILL_BE_RESTORED,v=u.DEFAULT_FONT,y={left:1,right:1,center:1},x={top:1,bottom:1,middle:1},b=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],_={},w={};function S(t){return A(t),o(t.rich,A),t}function A(t){if(t){t.font=u.makeFont(t);var e=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||y[e]?e:"left";var n=t.textVerticalAlign||t.textBaseline;"center"===n&&(n="middle"),t.textVerticalAlign=null==n||x[n]?n:"top";var i=t.textPadding;i&&(t.textPadding=s(t.textPadding))}}function C(t,e,n,i,r,a){i.rich?T(t,e,n,i,r,a):I(t,e,n,i,r,a)}function I(t,e,n,i,r,a){"use strict";var o,s=E(i),l=!1,c=e.__attrCachedBy===g.PLAIN_TEXT;a!==m?(a&&(o=a.style,l=!s&&c&&o),e.__attrCachedBy=s?g.NONE:g.PLAIN_TEXT):c&&(e.__attrCachedBy=g.NONE);var h=i.font||v;l&&h===(o.font||v)||(e.font=h);var d=t.__computedFont;t.__styleFont!==h&&(t.__styleFont=h,d=t.__computedFont=e.font);var p=i.textPadding,y=i.textLineHeight,x=t.__textCotentBlock;x&&!t.__dirtyText||(x=t.__textCotentBlock=u.parsePlainText(n,d,p,y,i.truncate));var _=x.outerHeight,S=x.lines,A=x.lineHeight,C=O(w,t,i,r),I=C.baseX,T=C.baseY,k=C.textAlign||"left",D=C.textVerticalAlign;M(e,i,r,I,T);var P=u.adjustTextY(T,_,D),R=I,z=P;if(s||p){var V=u.getWidth(n,d),W=V;p&&(W+=p[1]+p[3]);var U=u.adjustTextX(I,W,k);s&&L(t,e,i,U,P,W,_),p&&(R=F(I,k,p),z+=p[0])}e.textAlign=k,e.textBaseline="middle",e.globalAlpha=i.opacity||1;for(var H=0;H<b.length;H++){var G=b[H],j=G[0],Y=G[1],q=i[j];l&&q===o[j]||(e[Y]=f(e,Y,q||G[2]))}z+=A/2;var K=i.textStrokeWidth,X=l?o.textStrokeWidth:null,Z=!l||K!==X,Q=!l||Z||i.textStroke!==o.textStroke,J=N(i.textStroke,K),$=B(i.textFill);if(J&&(Z&&(e.lineWidth=K),Q&&(e.strokeStyle=J)),$&&(l&&i.textFill===o.textFill||(e.fillStyle=$)),1===S.length)J&&e.strokeText(S[0],R,z),$&&e.fillText(S[0],R,z);else for(H=0;H<S.length;H++)J&&e.strokeText(S[H],R,z),$&&e.fillText(S[H],R,z),z+=A}function T(t,e,n,i,r,a){a!==m&&(e.__attrCachedBy=g.NONE);var o=t.__textCotentBlock;o&&!t.__dirtyText||(o=t.__textCotentBlock=u.parseRichText(n,i)),k(t,e,o,i,r)}function k(t,e,n,i,r){var a=n.width,o=n.outerWidth,s=n.outerHeight,l=i.textPadding,c=O(w,t,i,r),h=c.baseX,d=c.baseY,f=c.textAlign,p=c.textVerticalAlign;M(e,i,r,h,d);var g=u.adjustTextX(h,o,f),m=u.adjustTextY(d,s,p),v=g,y=m;l&&(v+=l[3],y+=l[0]);var x=v+a;E(i)&&L(t,e,i,g,m,o,s);for(var b=0;b<n.lines.length;b++){var _,S=n.lines[b],A=S.tokens,C=A.length,I=S.lineHeight,T=S.width,k=0,P=v,R=x,N=C-1;while(k<C&&(_=A[k],!_.textAlign||"left"===_.textAlign))D(t,e,_,i,I,y,P,"left"),T-=_.width,P+=_.width,k++;while(N>=0&&(_=A[N],"right"===_.textAlign))D(t,e,_,i,I,y,R,"right"),T-=_.width,R-=_.width,N--;P+=(a-(P-v)-(x-R)-T)/2;while(k<=N)_=A[k],D(t,e,_,i,I,y,P+_.width/2,"center"),P+=_.width,k++;y+=I}}function M(t,e,n,i,r){if(n&&e.textRotation){var a=e.textOrigin;"center"===a?(i=n.width/2+n.x,r=n.height/2+n.y):a&&(i=a[0]+n.x,r=a[1]+n.y),t.translate(i,r),t.rotate(-e.textRotation),t.translate(-i,-r)}}function D(t,e,n,i,o,s,l,c){var u=i.rich[n.styleName]||{};u.text=n.text;var h=n.textVerticalAlign,d=s+o/2;"top"===h?d=s+n.height/2:"bottom"===h&&(d=s+o-n.height/2),!n.isLineHolder&&E(u)&&L(t,e,u,"right"===c?l-n.width:"center"===c?l-n.width/2:l,d-n.height/2,n.width,n.height);var f=n.textPadding;f&&(l=F(l,c,f),d-=n.height/2-f[2]-n.textHeight/2),R(e,"shadowBlur",a(u.textShadowBlur,i.textShadowBlur,0)),R(e,"shadowColor",u.textShadowColor||i.textShadowColor||"transparent"),R(e,"shadowOffsetX",a(u.textShadowOffsetX,i.textShadowOffsetX,0)),R(e,"shadowOffsetY",a(u.textShadowOffsetY,i.textShadowOffsetY,0)),R(e,"textAlign",c),R(e,"textBaseline","middle"),R(e,"font",n.font||v);var p=N(u.textStroke||i.textStroke,m),g=B(u.textFill||i.textFill),m=r(u.textStrokeWidth,i.textStrokeWidth);p&&(R(e,"lineWidth",m),R(e,"strokeStyle",p),e.strokeText(n.text,l,d)),g&&(R(e,"fillStyle",g),e.fillText(n.text,l,d))}function E(t){return!!(t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor)}function L(t,e,n,i,r,a,o){var s=n.textBackgroundColor,u=n.textBorderWidth,f=n.textBorderColor,p=l(s);if(R(e,"shadowBlur",n.textBoxShadowBlur||0),R(e,"shadowColor",n.textBoxShadowColor||"transparent"),R(e,"shadowOffsetX",n.textBoxShadowOffsetX||0),R(e,"shadowOffsetY",n.textBoxShadowOffsetY||0),p||u&&f){e.beginPath();var g=n.textBorderRadius;g?h.buildPath(e,{x:i,y:r,width:a,height:o,r:g}):e.rect(i,r,a,o),e.closePath()}if(p)if(R(e,"fillStyle",s),null!=n.fillOpacity){var m=e.globalAlpha;e.globalAlpha=n.fillOpacity*n.opacity,e.fill(),e.globalAlpha=m}else e.fill();else if(c(s)){var v=s.image;v=d.createOrUpdateImage(v,null,t,P,s),v&&d.isImageReady(v)&&e.drawImage(v,i,r,a,o)}if(u&&f)if(R(e,"lineWidth",u),R(e,"strokeStyle",f),null!=n.strokeOpacity){m=e.globalAlpha;e.globalAlpha=n.strokeOpacity*n.opacity,e.stroke(),e.globalAlpha=m}else e.stroke()}function P(t,e){e.image=t}function O(t,e,n,i){var r=n.x||0,a=n.y||0,o=n.textAlign,s=n.textVerticalAlign;if(i){var l=n.textPosition;if(l instanceof Array)r=i.x+z(l[0],i.width),a=i.y+z(l[1],i.height);else{var c=e&&e.calculateTextPosition?e.calculateTextPosition(_,n,i):u.calculateTextPosition(_,n,i);r=c.x,a=c.y,o=o||c.textAlign,s=s||c.textVerticalAlign}var h=n.textOffset;h&&(r+=h[0],a+=h[1])}return t=t||{},t.baseX=r,t.baseY=a,t.textAlign=o,t.textVerticalAlign=s,t}function R(t,e,n){return t[e]=f(t,e,n),t[e]}function N(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function B(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function z(t,e){return"string"===typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function F(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function V(t,e){return null!=t&&(t||e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor||e.textPadding)}e.normalizeTextStyle=S,e.renderText=C,e.getBoxPosition=O,e.getStroke=N,e.getFill=B,e.parsePercent=z,e.needDrawText=V},a753:function(t,e,n){var i=n("1f0e"),r=n("2306"),a=n("e887"),o=n("3842"),s=o.parsePercent,l=o.round,c=o.linearMap;function u(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),a=Math.min(i,r),o=s(n[0],e.getWidth()),l=s(n[1],e.getHeight()),c=s(t.get("radius"),a/2);return{cx:o,cy:l,r:c}}function h(t,e){return e&&("string"===typeof e?t=e.replace("{value}",null!=t?t:""):"function"===typeof e&&(t=e(t))),t}var d=2*Math.PI,f=a.extend({type:"gauge",render:function(t,e,n){this.group.removeAll();var i=t.get("axisLine.lineStyle.color"),r=u(t,n);this._renderMain(t,e,n,i,r)},dispose:function(){},_renderMain:function(t,e,n,i,a){for(var o=this.group,s=t.getModel("axisLine"),l=s.getModel("lineStyle"),c=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,h=-t.get("endAngle")/180*Math.PI,f=(h-u)%d,p=u,g=l.get("width"),m=s.get("show"),v=0;m&&v<i.length;v++){var y=Math.min(Math.max(i[v][0],0),1),x=(h=u+f*y,new r.Sector({shape:{startAngle:p,endAngle:h,cx:a.cx,cy:a.cy,clockwise:c,r0:a.r-g,r:a.r},silent:!0}));x.setStyle({fill:i[v][1]}),x.setStyle(l.getLineStyle(["color","borderWidth","borderColor"])),o.add(x),p=h}var b=function(t){if(t<=0)return i[0][1];for(var e=0;e<i.length;e++)if(i[e][0]>=t&&(0===e?0:i[e-1][0])<t)return i[e][1];return i[e-1][1]};if(!c){var _=u;u=h,h=_}this._renderTicks(t,e,n,b,a,u,h,c),this._renderPointer(t,e,n,b,a,u,h,c),this._renderTitle(t,e,n,b,a),this._renderDetail(t,e,n,b,a)},_renderTicks:function(t,e,n,i,a,o,c,u){for(var d=this.group,f=a.cx,p=a.cy,g=a.r,m=+t.get("min"),v=+t.get("max"),y=t.getModel("splitLine"),x=t.getModel("axisTick"),b=t.getModel("axisLabel"),_=t.get("splitNumber"),w=x.get("splitNumber"),S=s(y.get("length"),g),A=s(x.get("length"),g),C=o,I=(c-o)/_,T=I/w,k=y.getModel("lineStyle").getLineStyle(),M=x.getModel("lineStyle").getLineStyle(),D=0;D<=_;D++){var E=Math.cos(C),L=Math.sin(C);if(y.get("show")){var P=new r.Line({shape:{x1:E*g+f,y1:L*g+p,x2:E*(g-S)+f,y2:L*(g-S)+p},style:k,silent:!0});"auto"===k.stroke&&P.setStyle({stroke:i(D/_)}),d.add(P)}if(b.get("show")){var O=h(l(D/_*(v-m)+m),b.get("formatter")),R=b.get("distance"),N=i(D/_);d.add(new r.Text({style:r.setTextStyle({},b,{text:O,x:E*(g-S-R)+f,y:L*(g-S-R)+p,textVerticalAlign:L<-.4?"top":L>.4?"bottom":"middle",textAlign:E<-.4?"left":E>.4?"right":"center"},{autoColor:N}),silent:!0}))}if(x.get("show")&&D!==_){for(var B=0;B<=w;B++){E=Math.cos(C),L=Math.sin(C);var z=new r.Line({shape:{x1:E*g+f,y1:L*g+p,x2:E*(g-A)+f,y2:L*(g-A)+p},silent:!0,style:M});"auto"===M.stroke&&z.setStyle({stroke:i((D+B/w)/_)}),d.add(z),C+=T}C-=T}else C+=I}},_renderPointer:function(t,e,n,a,o,l,u,h){var d=this.group,f=this._data;if(t.get("pointer.show")){var p=[+t.get("min"),+t.get("max")],g=[l,u],m=t.getData(),v=m.mapDimension("value");m.diff(f).add((function(e){var n=new i({shape:{angle:l}});r.initProps(n,{shape:{angle:c(m.get(v,e),p,g,!0)}},t),d.add(n),m.setItemGraphicEl(e,n)})).update((function(e,n){var i=f.getItemGraphicEl(n);r.updateProps(i,{shape:{angle:c(m.get(v,e),p,g,!0)}},t),d.add(i),m.setItemGraphicEl(e,i)})).remove((function(t){var e=f.getItemGraphicEl(t);d.remove(e)})).execute(),m.eachItemGraphicEl((function(t,e){var n=m.getItemModel(e),i=n.getModel("pointer");t.setShape({x:o.cx,y:o.cy,width:s(i.get("width"),o.r),r:s(i.get("length"),o.r)}),t.useStyle(n.getModel("itemStyle").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",a(c(m.get(v,e),p,[0,1],!0))),r.setHoverStyle(t,n.getModel("emphasis.itemStyle").getItemStyle())})),this._data=m}else f&&f.eachItemGraphicEl((function(t){d.remove(t)}))},_renderTitle:function(t,e,n,i,a){var o=t.getData(),l=o.mapDimension("value"),u=t.getModel("title");if(u.get("show")){var h=u.get("offsetCenter"),d=a.cx+s(h[0],a.r),f=a.cy+s(h[1],a.r),p=+t.get("min"),g=+t.get("max"),m=t.getData().get(l,0),v=i(c(m,[p,g],[0,1],!0));this.group.add(new r.Text({silent:!0,style:r.setTextStyle({},u,{x:d,y:f,text:o.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:v,forceRich:!0})}))}},_renderDetail:function(t,e,n,i,a){var o=t.getModel("detail"),l=+t.get("min"),u=+t.get("max");if(o.get("show")){var d=o.get("offsetCenter"),f=a.cx+s(d[0],a.r),p=a.cy+s(d[1],a.r),g=s(o.get("width"),a.r),m=s(o.get("height"),a.r),v=t.getData(),y=v.get(v.mapDimension("value"),0),x=i(c(y,[l,u],[0,1],!0));this.group.add(new r.Text({silent:!0,style:r.setTextStyle({},o,{x:f,y:p,text:h(y,o.get("formatter")),textWidth:isNaN(g)?null:g,textHeight:isNaN(m)?null:m,textAlign:"center",textVerticalAlign:"middle"},{autoColor:x,forceRich:!0})}))}}}),p=f;t.exports=p},a7e2:function(t,e,n){var i=n("3eba");n("7293"),n("ae46");var r=n("6582"),a=n("ee98");i.registerLayout(r),i.registerVisual(a)},a7f2:function(t,e){var n=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function i(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:n[0]})}t.exports=i},a87d:function(t,e,n){var i=n("22d1"),r=n("401b"),a=r.applyTransform,o=n("9850"),s=n("41ef"),l=n("e86a"),c=n("a73c"),u=n("9e2e"),h=n("19eb"),d=n("0da8"),f=n("76a5"),p=n("cbe5"),g=n("20c8"),m=n("42e5"),v=n("d3a4"),y=g.CMD,x=Math.round,b=Math.sqrt,_=Math.abs,w=Math.cos,S=Math.sin,A=Math.max;if(!i.canvasSupported){var C=",",I="progid:DXImageTransform.Microsoft",T=21600,k=T/2,M=1e5,D=1e3,E=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=T+","+T,t.coordorigin="0,0"},L=function(t){return String(t).replace(/&/g,"&").replace(/"/g,""")},P=function(t,e,n){return"rgb("+[t,e,n].join(",")+")"},O=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},R=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},N=function(t,e,n){return(parseFloat(t)||0)*M+(parseFloat(e)||0)*D+n},B=c.parsePercent,z=function(t,e,n){var i=s.parse(e);n=+n,isNaN(n)&&(n=1),i&&(t.color=P(i[0],i[1],i[2]),t.opacity=n*i[3])},F=function(t){var e=s.parse(t);return[P(e[0],e[1],e[2]),e[3]]},V=function(t,e,n){var i=e.fill;if(null!=i)if(i instanceof m){var r,o=0,s=[0,0],l=0,c=1,u=n.getBoundingRect(),h=u.width,d=u.height;if("linear"===i.type){r="gradient";var f=n.transform,p=[i.x*h,i.y*d],g=[i.x2*h,i.y2*d];f&&(a(p,p,f),a(g,g,f));var v=g[0]-p[0],y=g[1]-p[1];o=180*Math.atan2(v,y)/Math.PI,o<0&&(o+=360),o<1e-6&&(o=0)}else{r="gradientradial";p=[i.x*h,i.y*d],f=n.transform;var x=n.scale,b=h,_=d;s=[(p[0]-u.x)/b,(p[1]-u.y)/_],f&&a(p,p,f),b/=x[0]*T,_/=x[1]*T;var w=A(b,_);l=0/w,c=2*i.r/w-l}var S=i.colorStops.slice();S.sort((function(t,e){return t.offset-e.offset}));for(var C=S.length,I=[],k=[],M=0;M<C;M++){var D=S[M],E=F(D.color);k.push(D.offset*c+l+" "+E[0]),0!==M&&M!==C-1||I.push(E)}if(C>=2){var L=I[0][0],P=I[1][0],O=I[0][1]*e.opacity,R=I[1][1]*e.opacity;t.type=r,t.method="none",t.focus="100%",t.angle=o,t.color=L,t.color2=P,t.colors=k.join(","),t.opacity=R,t.opacity2=O}"radial"===r&&(t.focusposition=s.join(","))}else z(t,i,e.opacity)},W=function(t,e){e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e.stroke||e.stroke instanceof m||z(t,e.stroke,e.opacity)},U=function(t,e,n,i){var r="fill"===e,a=t.getElementsByTagName(e)[0];null!=n[e]&&"none"!==n[e]&&(r||!r&&n.lineWidth)?(t[r?"filled":"stroked"]="true",n[e]instanceof m&&R(t,a),a||(a=v.createNode(e)),r?V(a,n,i):W(a,n),O(t,a)):(t[r?"filled":"stroked"]="false",R(t,a))},H=[[],[],[]],G=function(t,e){var n,i,r,o,s,l,c=y.M,u=y.C,h=y.L,d=y.A,f=y.Q,p=[],g=t.data,m=t.len();for(o=0;o<m;){switch(r=g[o++],i="",n=0,r){case c:i=" m ",n=1,s=g[o++],l=g[o++],H[0][0]=s,H[0][1]=l;break;case h:i=" l ",n=1,s=g[o++],l=g[o++],H[0][0]=s,H[0][1]=l;break;case f:case u:i=" c ",n=3;var v,_,A=g[o++],I=g[o++],M=g[o++],D=g[o++];r===f?(v=M,_=D,M=(M+2*A)/3,D=(D+2*I)/3,A=(s+2*A)/3,I=(l+2*I)/3):(v=g[o++],_=g[o++]),H[0][0]=A,H[0][1]=I,H[1][0]=M,H[1][1]=D,H[2][0]=v,H[2][1]=_,s=v,l=_;break;case d:var E=0,L=0,P=1,O=1,R=0;e&&(E=e[4],L=e[5],P=b(e[0]*e[0]+e[1]*e[1]),O=b(e[2]*e[2]+e[3]*e[3]),R=Math.atan2(-e[1]/O,e[0]/P));var N=g[o++],B=g[o++],z=g[o++],F=g[o++],V=g[o++]+R,W=g[o++]+V+R;o++;var U=g[o++],G=N+w(V)*z,j=B+S(V)*F,Y=(A=N+w(W)*z,I=B+S(W)*F,U?" wa ":" at ");Math.abs(G-A)<1e-4&&(Math.abs(W-V)>.01?U&&(G+=270/T):Math.abs(j-B)<1e-4?U&&G<N||!U&&G>N?I-=270/T:I+=270/T:U&&j<B||!U&&j>B?A+=270/T:A-=270/T),p.push(Y,x(((N-z)*P+E)*T-k),C,x(((B-F)*O+L)*T-k),C,x(((N+z)*P+E)*T-k),C,x(((B+F)*O+L)*T-k),C,x((G*P+E)*T-k),C,x((j*O+L)*T-k),C,x((A*P+E)*T-k),C,x((I*O+L)*T-k)),s=A,l=I;break;case y.R:var q=H[0],K=H[1];q[0]=g[o++],q[1]=g[o++],K[0]=q[0]+g[o++],K[1]=q[1]+g[o++],e&&(a(q,q,e),a(K,K,e)),q[0]=x(q[0]*T-k),K[0]=x(K[0]*T-k),q[1]=x(q[1]*T-k),K[1]=x(K[1]*T-k),p.push(" m ",q[0],C,q[1]," l ",K[0],C,q[1]," l ",K[0],C,K[1]," l ",q[0],C,K[1]);break;case y.Z:p.push(" x ")}if(n>0){p.push(i);for(var X=0;X<n;X++){var Z=H[X];e&&a(Z,Z,e),p.push(x(Z[0]*T-k),C,x(Z[1]*T-k),X<n-1?C:"")}}}return p.join("")};p.prototype.brushVML=function(t){var e=this.style,n=this._vmlEl;n||(n=v.createNode("shape"),E(n),this._vmlEl=n),U(n,"fill",e,this),U(n,"stroke",e,this);var i=this.transform,r=null!=i,a=n.getElementsByTagName("stroke")[0];if(a){var o=e.lineWidth;if(r&&!e.strokeNoScale){var s=i[0]*i[3]-i[1]*i[2];o*=b(_(s))}a.weight=o+"px"}var l=this.path||(this.path=new g);this.__dirtyPath&&(l.beginPath(),l.subPixelOptimize=!1,this.buildPath(l,this.shape),l.toStatic(),this.__dirtyPath=!1),n.path=G(l,this.transform),n.style.zIndex=N(this.zlevel,this.z,this.z2),O(t,n),null!=e.text?this.drawRectText(t,this.getBoundingRect()):this.removeRectText(t)},p.prototype.onRemove=function(t){R(t,this._vmlEl),this.removeRectText(t)},p.prototype.onAdd=function(t){O(t,this._vmlEl),this.appendRectText(t)};var j=function(t){return"object"===typeof t&&t.tagName&&"IMG"===t.tagName.toUpperCase()};d.prototype.brushVML=function(t){var e,n,i=this.style,r=i.image;if(j(r)){var o=r.src;if(o===this._imageSrc)e=this._imageWidth,n=this._imageHeight;else{var s=r.runtimeStyle,l=s.width,c=s.height;s.width="auto",s.height="auto",e=r.width,n=r.height,s.width=l,s.height=c,this._imageSrc=o,this._imageWidth=e,this._imageHeight=n}r=o}else r===this._imageSrc&&(e=this._imageWidth,n=this._imageHeight);if(r){var u=i.x||0,h=i.y||0,d=i.width,f=i.height,p=i.sWidth,g=i.sHeight,m=i.sx||0,y=i.sy||0,_=p&&g,w=this._vmlEl;w||(w=v.doc.createElement("div"),E(w),this._vmlEl=w);var S,T=w.style,k=!1,M=1,D=1;if(this.transform&&(S=this.transform,M=b(S[0]*S[0]+S[1]*S[1]),D=b(S[2]*S[2]+S[3]*S[3]),k=S[1]||S[2]),k){var L=[u,h],P=[u+d,h],R=[u,h+f],B=[u+d,h+f];a(L,L,S),a(P,P,S),a(R,R,S),a(B,B,S);var z=A(L[0],P[0],R[0],B[0]),F=A(L[1],P[1],R[1],B[1]),V=[];V.push("M11=",S[0]/M,C,"M12=",S[2]/D,C,"M21=",S[1]/M,C,"M22=",S[3]/D,C,"Dx=",x(u*M+S[4]),C,"Dy=",x(h*D+S[5])),T.padding="0 "+x(z)+"px "+x(F)+"px 0",T.filter=I+".Matrix("+V.join("")+", SizingMethod=clip)"}else S&&(u=u*M+S[4],h=h*D+S[5]),T.filter="",T.left=x(u)+"px",T.top=x(h)+"px";var W=this._imageEl,U=this._cropEl;W||(W=v.doc.createElement("div"),this._imageEl=W);var H=W.style;if(_){if(e&&n)H.width=x(M*e*d/p)+"px",H.height=x(D*n*f/g)+"px";else{var G=new Image,Y=this;G.onload=function(){G.onload=null,e=G.width,n=G.height,H.width=x(M*e*d/p)+"px",H.height=x(D*n*f/g)+"px",Y._imageWidth=e,Y._imageHeight=n,Y._imageSrc=r},G.src=r}U||(U=v.doc.createElement("div"),U.style.overflow="hidden",this._cropEl=U);var q=U.style;q.width=x((d+m*d/p)*M),q.height=x((f+y*f/g)*D),q.filter=I+".Matrix(Dx="+-m*d/p*M+",Dy="+-y*f/g*D+")",U.parentNode||w.appendChild(U),W.parentNode!==U&&U.appendChild(W)}else H.width=x(M*d)+"px",H.height=x(D*f)+"px",w.appendChild(W),U&&U.parentNode&&(w.removeChild(U),this._cropEl=null);var K="",X=i.opacity;X<1&&(K+=".Alpha(opacity="+x(100*X)+") "),K+=I+".AlphaImageLoader(src="+r+", SizingMethod=scale)",H.filter=K,w.style.zIndex=N(this.zlevel,this.z,this.z2),O(t,w),null!=i.text&&this.drawRectText(t,this.getBoundingRect())}},d.prototype.onRemove=function(t){R(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},d.prototype.onAdd=function(t){O(t,this._vmlEl),this.appendRectText(t)};var Y,q="normal",K={},X=0,Z=100,Q=document.createElement("div"),J=function(t){var e=K[t];if(!e){X>Z&&(X=0,K={});var n,i=Q.style;try{i.font=t,n=i.fontFamily.split(",")[0]}catch(r){}e={style:i.fontStyle||q,variant:i.fontVariant||q,weight:i.fontWeight||q,size:0|parseFloat(i.fontSize||12),family:n||"Microsoft YaHei"},K[t]=e,X++}return e};l.$override("measureText",(function(t,e){var n=v.doc;Y||(Y=n.createElement("div"),Y.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",v.doc.body.appendChild(Y));try{Y.style.font=e}catch(i){}return Y.innerHTML="",Y.appendChild(n.createTextNode(t)),{width:Y.offsetWidth}}));for(var $=new o,tt=function(t,e,n,i){var r=this.style;this.__dirty&&c.normalizeTextStyle(r,!0);var o=r.text;if(null!=o&&(o+=""),o){if(r.rich){var s=l.parseRichText(o,r);o=[];for(var u=0;u<s.lines.length;u++){for(var h=s.lines[u].tokens,d=[],f=0;f<h.length;f++)d.push(h[f].text);o.push(d.join(""))}o=o.join("\n")}var p,g,m=r.textAlign,y=r.textVerticalAlign,b=J(r.font),_=b.style+" "+b.variant+" "+b.weight+" "+b.size+'px "'+b.family+'"';n=n||l.getBoundingRect(o,_,m,y,r.textPadding,r.textLineHeight);var w=this.transform;if(w&&!i&&($.copy(e),$.applyTransform(w),e=$),i)p=e.x,g=e.y;else{var S=r.textPosition;if(S instanceof Array)p=e.x+B(S[0],e.width),g=e.y+B(S[1],e.height),m=m||"left";else{var A=this.calculateTextPosition?this.calculateTextPosition({},r,e):l.calculateTextPosition({},r,e);p=A.x,g=A.y,m=m||A.textAlign,y=y||A.textVerticalAlign}}p=l.adjustTextX(p,n.width,m),g=l.adjustTextY(g,n.height,y),g+=n.height/2;var I,T,k,M=v.createNode,D=this._textVmlEl;D?(k=D.firstChild,I=k.nextSibling,T=I.nextSibling):(D=M("line"),I=M("path"),T=M("textpath"),k=M("skew"),T.style["v-text-align"]="left",E(D),I.textpathok=!0,T.on=!0,D.from="0 0",D.to="1000 0.05",O(D,k),O(D,I),O(D,T),this._textVmlEl=D);var P=[p,g],R=D.style;w&&i?(a(P,P,w),k.on=!0,k.matrix=w[0].toFixed(3)+C+w[2].toFixed(3)+C+w[1].toFixed(3)+C+w[3].toFixed(3)+",0,0",k.offset=(x(P[0])||0)+","+(x(P[1])||0),k.origin="0 0",R.left="0px",R.top="0px"):(k.on=!1,R.left=x(p)+"px",R.top=x(g)+"px"),T.string=L(o);try{T.style.font=_}catch(z){}U(D,"fill",{fill:r.textFill,opacity:r.opacity},this),U(D,"stroke",{stroke:r.textStroke,opacity:r.opacity,lineDash:r.lineDash||null},this),D.style.zIndex=N(this.zlevel,this.z,this.z2),O(t,D)}},et=function(t){R(t,this._textVmlEl),this._textVmlEl=null},nt=function(t){O(t,this._textVmlEl)},it=[u,h,d,p,f],rt=0;rt<it.length;rt++){var at=it[rt].prototype;at.drawRectText=tt,at.removeRectText=et,at.appendRectText=nt}f.prototype.brushVML=function(t){var e=this.style;null!=e.text?this.drawRectText(t,{x:e.x||0,y:e.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(t)},f.prototype.onRemove=function(t){this.removeRectText(t)},f.prototype.onAdd=function(t){this.appendRectText(t)}}},a890:function(t,e,n){var i=n("0655"),r=n("9850"),a=n("2306"),o=a.linePolygonIntersect,s={lineX:l(0),lineY:l(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&i.contain(n.range,t[0],t[1])},rect:function(t,e,n){var a=n.range;if(!t||a.length<=1)return!1;var s=t.x,l=t.y,c=t.width,u=t.height,h=a[0];return!!(i.contain(a,s,l)||i.contain(a,s+c,l)||i.contain(a,s,l+u)||i.contain(a,s+c,l+u)||r.create(t).contain(h[0],h[1])||o(s,l,s+c,l,a)||o(s,l,s,l+u,a)||o(s+c,l,s+c,l+u,a)||o(s,l+u,s+c,l+u,a))||void 0}}};function l(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e){var r=i.range,a=e[t];return c(a,r)}},rect:function(i,r,a){if(i){var o=a.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]<s[0]&&s.reverse(),c(s[0],o)||c(s[1],o)||c(o[0],s)||c(o[1],s)}}}}function c(t,e){return e[0]<=t&&t<=e[1]}var u=s;t.exports=u},a8c6:function(t,e,n){var i=n("2449"),r=i.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});t.exports=r},a96b:function(t,e,n){var i=n("3eba"),r=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=r},a991:function(t,e,n){var i=n("6d8b"),r=n("e86a"),a=n("84ce"),o=n("e0d3"),s=o.makeInner,l=s();function c(t,e){e=e||[0,360],a.call(this,"angle",t,e),this.type="category"}c.prototype={constructor:c,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToAngle:a.prototype.dataToCoord,angleToData:a.prototype.coordToData,calculateCategoryInterval:function(){var t=this,e=t.getLabelModel(),n=t.scale,i=n.getExtent(),a=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],s=t.dataToCoord(o+1)-t.dataToCoord(o),c=Math.abs(s),u=r.getBoundingRect(o,e.getFont(),"center","top"),h=Math.max(u.height,7),d=h/c;isNaN(d)&&(d=1/0);var f=Math.max(0,Math.floor(d)),p=l(t.model),g=p.lastAutoInterval,m=p.lastTickCount;return null!=g&&null!=m&&Math.abs(g-f)<=1&&Math.abs(m-a)<=1&&g>f?f=g:(p.lastTickCount=a,p.lastAutoInterval=f),f}},i.inherits(c,a);var u=c;t.exports=u},a9e3:function(t,e,n){"use strict";var i=n("83ab"),r=n("da84"),a=n("94ca"),o=n("6eeb"),s=n("5135"),l=n("c6b6"),c=n("7156"),u=n("c04e"),h=n("d039"),d=n("7c73"),f=n("241c").f,p=n("06cf").f,g=n("9bf2").f,m=n("58a8").trim,v="Number",y=r[v],x=y.prototype,b=l(d(x))==v,_=function(t){var e,n,i,r,a,o,s,l,c=u(t,!1);if("string"==typeof c&&c.length>2)if(c=m(c),e=c.charCodeAt(0),43===e||45===e){if(n=c.charCodeAt(2),88===n||120===n)return NaN}else if(48===e){switch(c.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+c}for(a=c.slice(2),o=a.length,s=0;s<o;s++)if(l=a.charCodeAt(s),l<48||l>r)return NaN;return parseInt(a,i)}return+c};if(a(v,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var w,S=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof S&&(b?h((function(){x.valueOf.call(n)})):l(n)!=v)?c(new y(_(e)),n,S):_(e)},A=i?f(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),C=0;A.length>C;C++)s(y,w=A[C])&&!s(S,w)&&g(S,w,p(y,w));S.prototype=x,x.constructor=S,o(r,v,S)}},aa01:function(t,e,n){var i=n("6d8b"),r=n("4f85"),a=n("06c7"),o=n("55ac"),s=o.wrapTreePathInfo,l=r.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(t,e){var n={name:t.name,children:t.data};c(n);var i=t.levels||[],r={};return r.levels=i,a.createTree(n,this,r).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(t){var e=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=s(n,this),e},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});function c(t){var e=0;i.each(t.children,(function(t){c(t);var n=t.value;i.isArray(n)&&(n=n[0]),e+=n}));var n=t.value;i.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),i.isArray(t.value)?t.value[0]=n:t.value=n}t.exports=l},aa3e:function(t,e,n){var i=n("6d8b");function r(t,e){return e=e||[0,0],i.map(["x","y"],(function(n,i){var r=this.getAxis(n),a=e[i],o=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(a-o)-r.dataToCoord(a+o))}),this)}function a(t){var e=t.grid.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:i.bind(r,t)}}}t.exports=a},aadf:function(t,e,n){var i=n("3eba"),r=n("6d8b");n("5aa9"),n("d6d9"),n("3329");var a=n("9d57"),o=a.layout,s=n("7f96");n("01ed"),i.registerLayout(r.curry(o,"pictorialBar")),i.registerVisual(s("pictorialBar","roundRect"))},ab05:function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=n("2b8c"),o=n("5f14"),s=i.PRIORITY.VISUAL.COMPONENT;function l(t,e,n,i){for(var r=e.targetVisuals[i],a=o.prepareVisualTypes(r),s={color:t.getData().getVisual("color")},l=0,c=a.length;l<c;l++){var u=a[l],h=r["opacity"===u?"__alphaForOpacity":u];h&&h.applyVisual(n,d,f)}return s.color;function d(t){return s[t]}function f(t,e){s[t]=e}}i.registerVisual(s,{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var i=t.pipelineContext;!e.isTargetSeries(t)||i&&i.large||n.push(a.incrementalApplyVisual(e.stateList,e.targetVisuals,r.bind(e.getValueState,e),e.getDataDimension(t.getData())))})),n}}),i.registerVisual(s,{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),i=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var a=e.getVisualMeta(r.bind(l,null,t,e))||{stops:[],outerColors:[]},o=e.getDataDimension(n),s=n.getDimensionInfo(o);null!=s&&(a.dimension=s.index,i.push(a))}})),t.getData().setVisual("visualMeta",i)}})},ab71:function(t,e){var n=["lineStyle","normal","opacity"],i={seriesType:"parallel",reset:function(t,e,i){var r=t.getModel("itemStyle"),a=t.getModel("lineStyle"),o=e.get("color"),s=a.get("color")||r.get("color")||o[t.seriesIndex%o.length],l=t.get("inactiveOpacity"),c=t.get("activeOpacity"),u=t.getModel("lineStyle").getLineStyle(),h=t.coordinateSystem,d=t.getData(),f={normal:u.opacity,active:c,inactive:l};function p(t,e){h.eachActiveState(e,(function(t,i){var r=f[t];if("normal"===t&&e.hasItemOption){var a=e.getItemModel(i).get(n,!0);null!=a&&(r=a)}e.setItemVisual(i,"opacity",r)}),t.start,t.end)}return d.setVisual("color",s),{progress:p}}};t.exports=i},abb4:function(t,e,n){"use strict";t.exports=function(t){function e(){}var n={log:e,warn:e,error:e};if(!t&&window.console){var i=function(t,e){t[e]=function(){var t=console[e];if(t.apply)t.apply(console,arguments);else for(var n=0;n<arguments.length;n++)t(arguments[n])}};i(n,"log"),i(n,"warn"),i(n,"error")}return n}},abff:function(t,e,n){var i=n("3eba"),r=n("f706"),a=n("c965"),o=n("87c3");i.extendChartView({type:"scatter",render:function(t,e,n){var i=t.getData(),r=this._updateSymbolDraw(i,t);r.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},incrementalPrepareRender:function(t,e,n){var i=t.getData(),r=this._updateSymbolDraw(i,t);r.incrementalPrepareUpdate(i),this._finished=!1},incrementalRender:function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var r=o().reset(t);r.progress&&r.progress({start:0,end:i.count()},i),this._symbolDraw.updateLayout(i)},_getClipShape:function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},_updateSymbolDraw:function(t,e){var n=this._symbolDraw,i=e.pipelineContext,o=i.large;return n&&o===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=o?new a:new r,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},ac0f:function(t,e,n){var i=n("cbe5"),r=n("401b"),a=n("4a3f"),o=a.quadraticSubdivide,s=a.cubicSubdivide,l=a.quadraticAt,c=a.cubicAt,u=a.quadraticDerivativeAt,h=a.cubicDerivativeAt,d=[];function f(t,e,n){var i=t.cpx2,r=t.cpy2;return null===i||null===r?[(n?h:c)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?h:c)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?u:l)(t.x1,t.cpx1,t.x2,e),(n?u:l)(t.y1,t.cpy1,t.y2,e)]}var p=i.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.x1,i=e.y1,r=e.x2,a=e.y2,l=e.cpx1,c=e.cpy1,u=e.cpx2,h=e.cpy2,f=e.percent;0!==f&&(t.moveTo(n,i),null==u||null==h?(f<1&&(o(n,l,r,f,d),l=d[1],r=d[2],o(i,c,a,f,d),c=d[1],a=d[2]),t.quadraticCurveTo(l,c,r,a)):(f<1&&(s(n,l,u,r,f,d),l=d[1],u=d[2],r=d[3],s(i,c,h,a,f,d),c=d[1],h=d[2],a=d[3]),t.bezierCurveTo(l,c,u,h,r,a)))},pointAt:function(t){return f(this.shape,t,!1)},tangentAt:function(t){var e=f(this.shape,t,!0);return r.normalize(e,e)}});t.exports=p},adda:function(t,e,n){var i=n("94e4"),r=i.circularLayout;function a(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&r(t,"symbolSize")}))}t.exports=a},adf4:function(t,e,n){var i=n("4f85"),r=n("b1d4"),a=n("2f45"),o=a.getDimensionTypeByAxis,s=n("6179"),l=n("6d8b"),c=n("e0d3"),u=c.groupData,h=n("eda2"),d=h.encodeHTML,f=n("c4a3"),p=2,g=i.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){g.superApply(this,"init",arguments),this.legendVisualProvider=new f(l.bind(this.getData,this),l.bind(this.getRawData,this))},fixData:function(t){var e=t.length,n=u(t,(function(t){return t[2]})),i=[];n.buckets.each((function(t,e){i.push({name:e,dataList:t})}));for(var r=i.length,a=-1,o=-1,s=0;s<r;++s){var l=i[s].dataList.length;l>a&&(a=l,o=s)}for(var c=0;c<r;++c)if(c!==o)for(var h=i[c].name,d=0;d<a;++d){for(var f=i[o].dataList[d][0],p=i[c].dataList.length,g=-1,m=0;m<p;++m){var v=i[c].dataList[m][0];if(v===f){g=m;break}}-1===g&&(t[e]=[],t[e][0]=f,t[e][1]=0,t[e][2]=h,e++)}return t},getInitialData:function(t,e){for(var n=e.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],i=n.get("type"),a=l.filter(t.data,(function(t){return void 0!==t[2]})),c=this.fixData(a||[]),u=[],h=this.nameMap=l.createHashMap(),d=0,f=0;f<c.length;++f)u.push(c[f][p]),h.get(c[f][p])||(h.set(c[f][p],d),d++);var g=r(c,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:o(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),m=new s(g,this);return m.initData(c),m},getLayerSeries:function(){for(var t=this.getData(),e=t.count(),n=[],i=0;i<e;++i)n[i]=i;var r=t.mapDimension("single"),a=u(n,(function(e){return t.get("name",e)})),o=[];return a.buckets.each((function(e,n){e.sort((function(e,n){return t.get(r,e)-t.get(r,n)})),o.push({name:n,indices:e})})),o},getAxisTooltipData:function(t,e,n){l.isArray(t)||(t=t?[t]:[]);for(var i,r=this.getData(),a=this.getLayerSeries(),o=[],s=a.length,c=0;c<s;++c){for(var u=Number.MAX_VALUE,h=-1,d=a[c].indices.length,f=0;f<d;++f){var p=r.get(t[0],a[c].indices[f]),g=Math.abs(p-e);g<=u&&(i=p,u=g,h=a[c].indices[f])}o.push(h)}return{dataIndices:o,nestestValue:i}},formatTooltip:function(t){var e=this.getData(),n=e.getName(t),i=e.get(e.mapDimension("value"),t);return(isNaN(i)||null==i)&&(i="-"),d(n+" : "+i)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",color:"#000",fontSize:11},emphasis:{label:{show:!0}}}}),m=g;t.exports=m},ae46:function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("3eba")),a=n("73ca"),o=n("0fd3"),s=n("7e5b"),l=n("4527"),c=n("6a4c"),u=n("a38d"),h=n("6582"),d=n("b0af"),f=d.createClipPath,p=r.extendChartView({type:"lines",init:function(){},render:function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t),a=t.get("zlevel"),o=t.get("effect.trailLength"),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(a).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&o&&(l||s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)})),r.updateData(i);var c=t.get("clip",!0)&&f(t.coordinateSystem,!1,t);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=a,this._finished=!0},incrementalPrepareRender:function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t);r.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},incrementalRender:function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,n){var i=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var a=h.reset(t);a.progress&&a.progress({start:0,end:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},_updateLineDraw:function(t,e){var n=this._lineDraw,i=this._showEffect(e),r=!!e.get("polyline"),h=e.pipelineContext,d=h.large;return n&&i===this._hasEffet&&r===this._isPolyline&&d===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=d?new u:new a(r?i?c:l:i?o:s),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=d,this.group.removeAll()),this.group.add(n.group),n},_showEffect:function(t){return!!t.get("effect.show")},_clearLayer:function(t){var e=t.getZr(),n="svg"===e.painter.getType();n||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},dispose:function(){}});t.exports=p},ae69:function(t,e,n){var i=n("cbe5"),r=i.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(t,e){var n=.5522848,i=e.cx,r=e.cy,a=e.rx,o=e.ry,s=a*n,l=o*n;t.moveTo(i-a,r),t.bezierCurveTo(i-a,r-l,i-s,r-o,i,r-o),t.bezierCurveTo(i+s,r-o,i+a,r-l,i+a,r),t.bezierCurveTo(i+a,r+l,i+s,r+o,i,r+o),t.bezierCurveTo(i-s,r+o,i-a,r+l,i-a,r),t.closePath()}});t.exports=r},ae75:function(t,e,n){var i=n("6d8b"),r=["rect","polygon","keep","clear"];function a(t,e){var n=t&&t.brush;if(i.isArray(n)||(n=n?[n]:[]),n.length){var a=[];i.each(n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(a=a.concat(e))}));var s=t&&t.toolbox;i.isArray(s)&&(s=s[0]),s||(s={feature:{}},t.toolbox=[s]);var l=s.feature||(s.feature={}),c=l.brush||(l.brush={}),u=c.type||(c.type=[]);u.push.apply(u,a),o(u),e&&!u.length&&u.push.apply(u,r)}}function o(t){var e={};i.each(t,(function(t){e[t]=1})),t.length=0,i.each(e,(function(e,n){t.push(n)}))}t.exports=a},af03:function(t,e,n){var i=n("d039");t.exports=function(t){return i((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},af24:function(t,e,n){n("48c7"),n("f273")},afa0:function(t,e,n){var i=n("6d8b"),r=n("22d1"),a=n("e1fc"),o=n("04f6");function s(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var l=function(){this._roots=[],this._displayList=[],this._displayListLen=0};l.prototype={constructor:l,traverse:function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},getDisplayList:function(t,e){return e=e||!1,t&&this.updateDisplayList(e),this._displayList},updateDisplayList:function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,a=e.length;i<a;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,r.canvasSupported&&o(n,s)},_updateAndAddDisplayable:function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.__dirty&&t.update(),t.afterUpdate();var i=t.clipPath;if(i){e=e?e.slice():[];var r=i,a=t;while(r)r.parent=a,r.updateTransform(),e.push(r),a=r,r=r.clipPath}if(t.isGroup){for(var o=t._children,s=0;s<o.length;s++){var l=o[s];t.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,e,n)}t.__dirty=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){t.__storage!==this&&(t instanceof a&&t.addChildrenToStorage(this),this.addToStorage(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots.length;e++){var n=this._roots[e];n instanceof a&&n.delChildrenFromStorage(this)}return this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array){e=0;for(var r=t.length;e<r;e++)this.delRoot(t[e])}else{var o=i.indexOf(this._roots,t);o>=0&&(this.delFromStorage(t),this._roots.splice(o,1),t instanceof a&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t&&(t.__storage=this,t.dirty(!1)),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:s};var c=l;t.exports=c},b006:function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=n("fab2"),o=n("fc82"),s=n("f4a2"),l=n("2306"),c=["axisLine","axisTickLabel","axisName"],u=i.extendComponentView({type:"parallelAxis",init:function(t,e){u.superApply(this,"init",arguments),(this._brushController=new o(e.getZr())).on("brush",r.bind(this._onBrush,this))},render:function(t,e,n,i){if(!h(t,e,i)){this.axisModel=t,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new l.Group,this.group.add(this._axisGroup),t.get("show")){var s=f(t,e),u=s.coordinateSystem,d=t.getAreaSelectStyle(),p=d.width,g=t.axis.dim,m=u.getAxisLayout(g),v=r.extend({strokeContainThreshold:p},m),y=new a(t,v);r.each(c,y.add,y),this._axisGroup.add(y.getGroup()),this._refreshBrushController(v,d,t,s,p,n);var x=i&&!1===i.animation?null:t;l.groupTransition(o,this._axisGroup,x)}}},_refreshBrushController:function(t,e,n,i,r,a){var o=n.axis.getExtent(),c=o[1]-o[0],u=Math.min(30,.1*Math.abs(c)),h=l.BoundingRect.create({x:o[0],y:-r/2,width:c,height:r});h.x-=u,h.width+=2*u,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,position:t.position}).setPanels([{panelId:"pl",clipPath:s.makeRectPanelClipPath(h),isTargetByCursor:s.makeRectIsTargetByCursor(h,a,i),getLinearBrushOtherExtent:s.makeLinearBrushOtherExtent(h,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(d(n))},_onBrush:function(t,e){var n=this.axisModel,i=n.axis,a=r.map(t,(function(t){return[i.coordToData(t.range[0],!0),i.coordToData(t.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:a})},dispose:function(){this._brushController.dispose()}});function h(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function d(t){var e=t.axis;return r.map(t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}function f(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var p=u;t.exports=p},b0af:function(t,e,n){var i=n("2306"),r=n("3842"),a=r.round;function o(t,e,n){var r=t.getArea(),a=t.getBaseAxis().isHorizontal(),o=r.x,s=r.y,l=r.width,c=r.height,u=n.get("lineStyle.width")||2;o-=u/2,s-=u/2,l+=u,c+=u,o=Math.floor(o),l=Math.round(l);var h=new i.Rect({shape:{x:o,y:s,width:l,height:c}});return e&&(h.shape[a?"width":"height"]=0,i.initProps(h,{shape:{width:l,height:c}},n)),h}function s(t,e,n){var r=t.getArea(),o=new i.Sector({shape:{cx:a(t.cx,1),cy:a(t.cy,1),r0:a(r.r0,1),r:a(r.r,1),startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return e&&(o.shape.endAngle=r.startAngle,i.initProps(o,{shape:{endAngle:r.endAngle}},n)),o}function l(t,e,n){return t?"polar"===t.type?s(t,e,n):"cartesian2d"===t.type?o(t,e,n):null:null}e.createGridClipPath=o,e.createPolarClipPath=s,e.createClipPath=l},b0c0:function(t,e,n){var i=n("83ab"),r=n("9bf2").f,a=Function.prototype,o=a.toString,s=/^\s*function ([^ (]*)/,l="name";i&&!(l in a)&&r(a,l,{configurable:!0,get:function(){try{return o.call(this).match(s)[1]}catch(t){return""}}})},b11c:function(t,e,n){n("8ec5"),n("db9e"),n("4e9f"),n("d3a0"),n("767c"),n("7c4d"),n("df70")},b12f:function(t,e,n){var i=n("e1fc"),r=n("8918"),a=n("625e"),o=function(){this.group=new i,this.uid=r.getUID("viewComponent")};o.prototype={constructor:o,init:function(t,e){},render:function(t,e,n,i){},dispose:function(){},filterForExposedEvent:null};var s=o.prototype;s.updateView=s.updateLayout=s.updateVisual=function(t,e,n,i){},a.enableClassExtend(o),a.enableClassManagement(o,{registerWhenExtend:!0});var l=o;t.exports=l},b16f:function(t,e,n){var i=n("4ab1"),r=n("6d8b"),a=n("4942"),o=n("41ef");function s(t,e){i.call(this,t,e,["linearGradient","radialGradient"],"__gradient_in_use__")}r.inherits(s,i),s.prototype.addWithoutUpdate=function(t,e){if(e&&e.style){var n=this;r.each(["fill","stroke"],(function(i){if(e.style[i]&&("linear"===e.style[i].type||"radial"===e.style[i].type)){var r,a=e.style[i],o=n.getDefs(!0);a._dom?(r=a._dom,o.contains(a._dom)||n.addDom(r)):r=n.add(a),n.markUsed(e);var s=r.getAttribute("id");t.setAttribute(i,"url(#"+s+")")}}))}},s.prototype.add=function(t){var e;if("linear"===t.type)e=this.createElement("linearGradient");else{if("radial"!==t.type)return a("Illegal gradient type."),null;e=this.createElement("radialGradient")}return t.id=t.id||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-gradient-"+t.id),this.updateDom(t,e),this.addDom(e),e},s.prototype.update=function(t){var e=this;i.prototype.update.call(this,t,(function(){var n=t.type,i=t._dom.tagName;"linear"===n&&"linearGradient"===i||"radial"===n&&"radialGradient"===i?e.updateDom(t,t._dom):(e.removeDom(t),e.add(t))}))},s.prototype.updateDom=function(t,e){if("linear"===t.type)e.setAttribute("x1",t.x),e.setAttribute("y1",t.y),e.setAttribute("x2",t.x2),e.setAttribute("y2",t.y2);else{if("radial"!==t.type)return void a("Illegal gradient type.");e.setAttribute("cx",t.x),e.setAttribute("cy",t.y),e.setAttribute("r",t.r)}t.global?e.setAttribute("gradientUnits","userSpaceOnUse"):e.setAttribute("gradientUnits","objectBoundingBox"),e.innerHTML="";for(var n=t.colorStops,i=0,r=n.length;i<r;++i){var s=this.createElement("stop");s.setAttribute("offset",100*n[i].offset+"%");var l=n[i].color;if(l.indexOf(!1)){var c=o.parse(l)[3],u=o.toHex(l);s.setAttribute("stop-color","#"+u),s.setAttribute("stop-opacity",c)}else s.setAttribute("stop-color",n[i].color);e.appendChild(s)}t._dom=e},s.prototype.markUsed=function(t){if(t.style){var e=t.style.fill;e&&e._dom&&i.prototype.markUsed.call(this,e._dom),e=t.style.stroke,e&&e._dom&&i.prototype.markUsed.call(this,e._dom)}};var l=s;t.exports=l},b1d4:function(t,e,n){var i=n("862d");function r(t,e){return e=e||{},i(e.coordDimensions||[],t,{dimsDef:e.dimensionsDefine||t.dimensionsDefine,encodeDef:e.encodeDefine||t.encodeDefine,dimCount:e.dimensionsCount,encodeDefaulter:e.encodeDefaulter,generateCoord:e.generateCoord,generateCoordCount:e.generateCoordCount})}t.exports=r},b336:function(t,e,n){var i=n("6d8b"),r=i.each;function a(t){var e=t&&t.visualMap;i.isArray(e)||(e=e?[e]:[]),r(e,(function(t){if(t){o(t,"splitList")&&!o(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&i.isArray(e)&&r(e,(function(t){i.isObject(t)&&(o(t,"start")&&!o(t,"min")&&(t.min=t.start),o(t,"end")&&!o(t,"max")&&(t.max=t.end))}))}}))}function o(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}t.exports=a},b369:function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=n("2306"),o=n("80f0"),s=n("55ac"),l=n("f610"),c=n("4a01"),u=n("9850"),h=n("1687"),d=n("e6cd"),f=n("282b"),p=n("eda2"),g=p.windowOpen,m=r.bind,v=a.Group,y=a.Rect,x=r.each,b=3,_=["label"],w=["emphasis","label"],S=["upperLabel"],A=["emphasis","upperLabel"],C=10,I=1,T=2,k=f([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),M=function(t){var e=k(t);return e.stroke=e.fill=e.lineWidth=null,e},D=i.extendChartView({type:"treemap",init:function(t,e){this._containerGroup,this._storage=E(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(t,e,n,i){var a=e.findComponents({mainType:"series",subType:"treemap",query:i});if(!(r.indexOf(a,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var o=["treemapZoomToNode","treemapRootToNode"],l=s.retrieveTargetInfo(i,o,t),c=i&&i.type,u=t.layoutInfo,h=!this._oldTree,d=this._storage,f="treemapRootToNode"===c&&l&&d?{rootNodeGroup:d.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,p=this._giveContainerGroup(u),g=this._doRender(p,t,f);h||c&&"treemapZoomToNode"!==c&&"treemapRootToNode"!==c?g.renderFinally():this._doAnimation(p,g,t,f),this._resetController(n),this._renderBreadcrumb(t,n,l)}},_giveContainerGroup:function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new v,this._initEvents(e),this.group.add(e)),e.attr("position",[t.x,t.y]),e},_doRender:function(t,e,n){var i=e.getData().tree,a=this._oldTree,s=E(),l=E(),c=this._storage,u=[],h=r.curry(L,e,l,c,n,s,u);f(i.root?[i.root]:[],a&&a.root?[a.root]:[],t,i===a||!a,0);var d=p(c);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:d,renderFinally:g};function f(t,e,n,i,a){function s(t){return t.getId()}function l(r,o){var s=null!=r?t[r]:null,l=null!=o?e[o]:null,c=h(s,l,n,a);c&&f(s&&s.viewChildren||[],l&&l.viewChildren||[],c,i,a+1)}i?(e=t,x(t,(function(t,e){!t.isRemoved()&&l(e,e)}))):new o(e,t,s,s).add(l).update(l).remove(r.curry(l,null)).execute()}function p(t){var e=E();return t&&x(t,(function(t,n){var i=e[n];x(t,(function(t){t&&(i.push(t),t.__tmWillDelete=1)}))})),e}function g(){x(d,(function(t){x(t,(function(t){t.parent&&t.parent.remove(t)}))})),x(u,(function(t){t.invisible=!0,t.dirty()}))}},_doAnimation:function(t,e,n,i){if(n.get("animation")){var a=n.get("animationDurationUpdate"),o=n.get("animationEasing"),s=d.createWrap();x(e.willDeleteEls,(function(t,e){x(t,(function(t,n){if(!t.invisible){var r,l=t.parent;if(i&&"drillDown"===i.direction)r=l===i.rootNodeGroup?{shape:{x:0,y:0,width:l.__tmNodeWidth,height:l.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,u=0;l.__tmWillDelete||(c=l.__tmNodeWidth/2,u=l.__tmNodeHeight/2),r="nodeGroup"===e?{position:[c,u],style:{opacity:0}}:{shape:{x:c,y:u,width:0,height:0},style:{opacity:0}}}r&&s.add(t,r,a,o)}}))})),x(this._storage,(function(t,n){x(t,(function(t,i){var l=e.lastsForAnimation[n][i],c={};l&&("nodeGroup"===n?l.old&&(c.position=t.position.slice(),t.attr("position",l.old)):(l.old&&(c.shape=r.extend({},t.shape),t.setShape(l.old)),l.fadein?(t.setStyle("opacity",0),c.style={opacity:1}):1!==t.style.opacity&&(c.style={opacity:1})),s.add(t,c,a,o))}))}),this),this._state="animating",s.done(m((function(){this._state="ready",e.renderFinally()}),this)).start()}},_resetController:function(t){var e=this._controller;e||(e=this._controller=new c(t.getZr()),e.enable(this.seriesModel.get("roam")),e.on("pan",m(this._onPan,this)),e.on("zoom",m(this._onZoom,this)));var n=new u(0,0,t.getWidth(),t.getHeight());e.setPointerChecker((function(t,e,i){return n.contain(e,i)}))},_clearController:function(){var t=this._controller;t&&(t.dispose(),t=null)},_onPan:function(t){if("animating"!==this._state&&(Math.abs(t.dx)>b||Math.abs(t.dy)>b)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},_onZoom:function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var a=new u(r.x,r.y,r.width,r.height),o=this.seriesModel.layoutInfo;e-=o.x,n-=o.y;var s=h.create();h.translate(s,s,[-e,-n]),h.scale(s,s,[t.scale,t.scale]),h.translate(s,s,[e,n]),a.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x,y:a.y,width:a.width,height:a.height}})}},_initEvents:function(t){t.on("click",(function(t){if("ready"===this._state){var e=this.seriesModel.get("nodeClick",!0);if(e){var n=this.findTarget(t.offsetX,t.offsetY);if(n){var i=n.node;if(i.getLayout().isLeafRoot)this._rootToNode(n);else if("zoomToNode"===e)this._zoomToNode(n);else if("link"===e){var r=i.hostTree.data.getItemModel(i.dataIndex),a=r.get("link",!0),o=r.get("target",!0)||"blank";a&&g(a,o)}}}}}),this)},_renderBreadcrumb:function(t,e,n){function i(e){"animating"!==this._state&&(s.aboveViewRoot(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))}n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new l(this.group))).render(t,e,n.node,m(i,this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=E(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var a=r.transformCoordToLocal(t,e),o=r.shape;if(!(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o.height))return!1;n={node:i,offsetX:a[0],offsetY:a[1]}}}),this),n}});function E(){return{nodeGroup:[],background:[],content:[]}}function L(t,e,n,i,o,s,l,c,u,h){if(l){var d=l.getLayout(),f=t.getData();if(f.setItemGraphicEl(l.dataIndex,null),d&&d.isInView){var p=d.width,g=d.height,m=d.borderWidth,x=d.invisible,b=l.getRawIndex(),C=c&&c.getRawIndex(),D=l.viewChildren,E=d.upperHeight,L=D&&D.length,O=l.getModel("itemStyle"),R=l.getModel("emphasis.itemStyle"),N=j("nodeGroup",v);if(N){if(u.add(N),N.attr("position",[d.x||0,d.y||0]),N.__tmNodeWidth=p,N.__tmNodeHeight=g,d.isAboveViewRoot)return N;var B=l.getModel(),z=j("background",y,h,I);if(z&&V(N,z,L&&d.upperLabelHeight),L)a.isHighDownDispatcher(N)&&a.setAsHighDownDispatcher(N,!1),z&&(a.setAsHighDownDispatcher(z,!0),f.setItemGraphicEl(l.dataIndex,z));else{var F=j("content",y,h,T);F&&W(N,F),z&&a.isHighDownDispatcher(z)&&a.setAsHighDownDispatcher(z,!1),a.setAsHighDownDispatcher(N,!0),f.setItemGraphicEl(l.dataIndex,N)}return N}}}function V(e,n,i){if(n.dataIndex=l.dataIndex,n.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:p,height:g}),x)U(n);else{n.invisible=!1;var r=l.getVisual("borderColor",!0),o=R.get("borderColor"),s=M(O);s.fill=r;var c=k(R);if(c.fill=o,i){var u=p-2*m;H(s,c,r,u,E,{x:m,y:0,width:u,height:E})}else s.text=c.text=null;n.setStyle(s),a.setElementHoverStyle(n,c)}e.add(n)}function W(e,n){n.dataIndex=l.dataIndex,n.seriesIndex=t.seriesIndex;var i=Math.max(p-2*m,0),r=Math.max(g-2*m,0);if(n.culling=!0,n.setShape({x:m,y:m,width:i,height:r}),x)U(n);else{n.invisible=!1;var o=l.getVisual("color",!0),s=M(O);s.fill=o;var c=k(R);H(s,c,o,i,r),n.setStyle(s),a.setElementHoverStyle(n,c)}e.add(n)}function U(t){!t.invisible&&s.push(t)}function H(e,n,i,o,s,c){var u=B.get("name"),h=B.getModel(c?S:_),f=B.getModel(c?A:w),p=h.getShallow("show");a.setLabelStyle(e,n,h,f,{defaultText:p?u:null,autoColor:i,isRectText:!0,labelFetcher:t,labelDataIndex:l.dataIndex,labelProp:c?"upperLabel":"label"}),G(e,c,d),G(n,c,d),c&&(e.textRect=r.clone(c)),e.truncate=p&&h.get("ellipsis")?{outerWidth:o,outerHeight:s,minChar:2}:null}function G(e,n,i){var r=e.text;if(!n&&i.isLeafRoot&&null!=r){var a=t.get("drillDownIcon",!0);e.text=a?a+" "+r:r}}function j(t,i,r,a){var s=null!=C&&n[t][C],l=o[t];return s?(n[t][C]=null,Y(l,s,t)):x||(s=new i({z:P(r,a)}),s.__tmDepth=r,s.__tmStorageName=t,q(l,s,t)),e[t][b]=s}function Y(t,e,n){var i=t[b]={};i.old="nodeGroup"===n?e.position.slice():r.extend({},e.shape)}function q(t,e,n){var r=t[b]={},a=l.parentNode;if(a&&(!i||"drillDown"===i.direction)){var s=0,c=0,u=o.background[a.getRawIndex()];!i&&u&&u.old&&(s=u.old.width,c=u.old.height),r.old="nodeGroup"===n?[0,c]:{x:s,y:c,width:0,height:0}}r.fadein="nodeGroup"!==n}}function P(t,e){var n=t*C+e;return(n-1)/n}t.exports=D},b419:function(t,e,n){var i=n("6d8b"),r=n("2306"),a=n("4319"),o=n("6679"),s=n("fab2"),l=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function c(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function u(t){var e=t.getRadiusAxis();return e.inverse?0:1}function h(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var d=o.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,r=n.polar,a=r.getRadiusAxis().getExtent(),o=n.getTicksCoords(),s=n.getMinorTicksCoords(),c=i.map(n.getViewLabels(),(function(t){t=i.clone(t);return t.coord=n.dataToCoord(t.tickValue),t}));h(c),h(o),i.each(l,(function(e){!t.get(e+".show")||n.scale.isBlank()&&"axisLine"!==e||this["_"+e](t,r,o,s,a,c)}),this)}},_axisLine:function(t,e,n,i,a){var o,s=t.getModel("axisLine.lineStyle"),l=u(e),c=l?0:1;o=0===a[c]?new r.Circle({shape:{cx:e.cx,cy:e.cy,r:a[l]},style:s.getLineStyle(),z2:1,silent:!0}):new r.Ring({shape:{cx:e.cx,cy:e.cy,r:a[l],r0:a[c]},style:s.getLineStyle(),z2:1,silent:!0}),o.style.fill=null,this.group.add(o)},_axisTick:function(t,e,n,a,o){var s=t.getModel("axisTick"),l=(s.get("inside")?-1:1)*s.get("length"),h=o[u(e)],d=i.map(n,(function(t){return new r.Line({shape:c(e,[h,h+l],t.coord)})}));this.group.add(r.mergePath(d,{style:i.defaults(s.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_minorTick:function(t,e,n,a,o){if(a.length){for(var s=t.getModel("axisTick"),l=t.getModel("minorTick"),h=(s.get("inside")?-1:1)*l.get("length"),d=o[u(e)],f=[],p=0;p<a.length;p++)for(var g=0;g<a[p].length;g++)f.push(new r.Line({shape:c(e,[d,d+h],a[p][g].coord)}));this.group.add(r.mergePath(f,{style:i.defaults(l.getModel("lineStyle").getLineStyle(),i.defaults(s.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}))}))}},_axisLabel:function(t,e,n,o,l,c){var h=t.getCategories(!0),d=t.getModel("axisLabel"),f=d.get("margin"),p=t.get("triggerEvent");i.each(c,(function(n,i){var o=d,c=n.tickValue,g=l[u(e)],m=e.coordToPoint([g+f,n.coord]),v=e.cx,y=e.cy,x=Math.abs(m[0]-v)/g<.3?"center":m[0]>v?"left":"right",b=Math.abs(m[1]-y)/g<.3?"middle":m[1]>y?"top":"bottom";h&&h[c]&&h[c].textStyle&&(o=new a(h[c].textStyle,d,d.ecModel));var _=new r.Text({silent:s.isLabelSilent(t)});this.group.add(_),r.setTextStyle(_.style,o,{x:m[0],y:m[1],textFill:o.getTextColor()||t.get("axisLine.lineStyle.color"),text:n.formattedLabel,textAlign:x,textVerticalAlign:b}),p&&(_.eventData=s.makeAxisEventDataBase(t),_.eventData.targetType="axisLabel",_.eventData.value=n.rawLabel)}),this)},_splitLine:function(t,e,n,a,o){var s=t.getModel("splitLine"),l=s.getModel("lineStyle"),u=l.get("color"),h=0;u=u instanceof Array?u:[u];for(var d=[],f=0;f<n.length;f++){var p=h++%u.length;d[p]=d[p]||[],d[p].push(new r.Line({shape:c(e,o,n[f].coord)}))}for(f=0;f<d.length;f++)this.group.add(r.mergePath(d[f],{style:i.defaults({stroke:u[f%u.length]},l.getLineStyle()),silent:!0,z:t.get("z")}))},_minorSplitLine:function(t,e,n,i,a){if(i.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var h=0;h<i[u].length;h++)l.push(new r.Line({shape:c(e,a,i[u][h].coord)}));this.group.add(r.mergePath(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},_splitArea:function(t,e,n,a,o){if(n.length){var s=t.getModel("splitArea"),l=s.getModel("areaStyle"),c=l.get("color"),u=0;c=c instanceof Array?c:[c];for(var h=[],d=Math.PI/180,f=-n[0].coord*d,p=Math.min(o[0],o[1]),g=Math.max(o[0],o[1]),m=t.get("clockwise"),v=1;v<n.length;v++){var y=u++%c.length;h[y]=h[y]||[],h[y].push(new r.Sector({shape:{cx:e.cx,cy:e.cy,r0:p,r:g,startAngle:f,endAngle:-n[v].coord*d,clockwise:m},silent:!0})),f=-n[v].coord*d}for(v=0;v<h.length;v++)this.group.add(r.mergePath(h[v],{style:i.defaults({fill:c[v%c.length]},l.getAreaStyle()),silent:!0}))}}});t.exports=d},b5c7:function(t,e,n){var i=n("282b"),r=i([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),a={getBarItemStyle:function(t){var e=r(this,t);if(this.getBorderLineDash){var n=this.getBorderLineDash();n&&(e.lineDash=n)}return e}};t.exports=a},b719:function(t,e,n){var i=n("697e7");e.zrender=i;var r=n("1687");e.matrix=r;var a=n("401b");e.vector=a;var o=n("6d8b"),s=n("41ef");e.color=s;var l=n("2306"),c=n("3842");e.number=c;var u=n("eda2");e.format=u;var h=n("88b3");h.throttle;e.throttle=h.throttle;var d=n("1548");e.helper=d;var f=n("bda7");e.parseGeoJSON=f;var p=n("6179");e.List=p;var g=n("4319");e.Model=g;var m=n("84ce");e.Axis=m;var v=n("22d1");e.env=v;var y=f,x={};o.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],(function(t){x[t]=o[t]}));var b={};o.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],(function(t){b[t]=l[t]})),e.parseGeoJson=y,e.util=x,e.graphic=b},b770:function(t,e,n){"use strict";var i=t.exports={};i.forEach=function(t,e){for(var n=0;n<t.length;n++){var i=e(t[n]);if(i)return i}}},b809:function(t,e,n){var i=n("6d8b"),r=n("29a8"),a=n("2b17"),o=a.retrieveRawValue;function s(t,e){var n=e.getModel("aria");if(n.get("show"))if(n.get("description"))t.setAttribute("aria-label",n.get("description"));else{var a=0;e.eachSeries((function(t,e){++a}),this);var s,l=n.get("data.maxCount")||10,c=n.get("series.maxCount")||10,u=Math.min(a,c);if(!(a<1)){var h=m();s=h?p(g("general.withTitle"),{title:h}):g("general.withoutTitle");var d=[],f=a>1?"series.multiple.prefix":"series.single.prefix";s+=p(g(f),{seriesCount:a}),e.eachSeries((function(t,e){if(e<u){var n,i=t.get("name"),r="series."+(a>1?"multiple":"single")+".";n=g(i?r+"withName":r+"withoutName"),n=p(n,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:v(t.subType)});var s=t.getData();window.data=s,s.count()>l?n+=p(g("data.partialData"),{displayCnt:l}):n+=g("data.allData");for(var c=[],h=0;h<s.count();h++)if(h<l){var f=s.getName(h),m=o(s,h);c.push(p(g(f?"data.withName":"data.withoutName"),{name:f,value:m}))}n+=c.join(g("data.separator.middle"))+g("data.separator.end"),d.push(n)}})),s+=d.join(g("series.multiple.separator.middle"))+g("series.multiple.separator.end"),t.setAttribute("aria-label",s)}}function p(t,e){if("string"!==typeof t)return t;var n=t;return i.each(e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n}function g(t){var e=n.get(t);if(null==e){for(var i=t.split("."),a=r.aria,o=0;o<i.length;++o)a=a[i[o]];return a}return e}function m(){var t=e.getModel("title").option;return t&&t.length&&(t=t[0]),t&&t.text}function v(t){return r.series.typeNames[t]||"自定义图"}}t.exports=s},b8ec:function(t,e,n){var i=n("3eba");i.registerAction({type:"brush",event:"brush"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),i.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},(function(){})),i.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},(function(){}))},bb70:function(t,e,n){var i=n("e86a"),r=n("3842"),a=r.parsePercent,o=Math.PI/180;function s(t,e,n,i,r,a,o,s,l,c){function u(e,n,i,r){for(var a=e;a<n;a++){if(t[a].y+i>l+o)break;if(t[a].y+=i,a>e&&a+1<n&&t[a+1].y>t[a].y+t[a].height)return void h(a,i/2)}h(n-1,i/2)}function h(e,n){for(var i=e;i>=0;i--){if(t[i].y-n<l)break;if(t[i].y-=n,i>0&&t[i].y>t[i-1].y+t[i-1].height)break}}function d(t,e,n,i,r,a){for(var o=e?Number.MAX_VALUE:0,s=0,l=t.length;s<l;s++)if("none"===t[s].labelAlignTo){var c=Math.abs(t[s].y-i),u=t[s].len,h=t[s].len2,d=c<r+u?Math.sqrt((r+u+h)*(r+u+h)-c*c):Math.abs(t[s].x-n);e&&d>=o&&(d=o-10),!e&&d<=o&&(d=o+10),t[s].x=n+d*a,o=d}}t.sort((function(t,e){return t.y-e.y}));for(var f,p=0,g=t.length,m=[],v=[],y=0;y<g;y++){if("outer"===t[y].position&&"labelLine"===t[y].labelAlignTo){var x=t[y].x-c;t[y].linePoints[1][0]+=x,t[y].x=c}f=t[y].y-p,f<0&&u(y,g,-f,r),p=t[y].y+t[y].height}o-p<0&&h(g-1,p-o);for(y=0;y<g;y++)t[y].y>=n?v.push(t[y]):m.push(t[y]);d(m,!1,e,n,i,r),d(v,!0,e,n,i,r)}function l(t,e,n,r,a,o,l,u){for(var h=[],d=[],f=Number.MAX_VALUE,p=-Number.MAX_VALUE,g=0;g<t.length;g++)c(t[g])||(t[g].x<e?(f=Math.min(f,t[g].x),h.push(t[g])):(p=Math.max(p,t[g].x),d.push(t[g])));s(d,e,n,r,1,a,o,l,u,p),s(h,e,n,r,-1,a,o,l,u,f);for(g=0;g<t.length;g++){var m=t[g];if(!c(m)){var v=m.linePoints;if(v){var y,x="edge"===m.labelAlignTo,b=m.textRect.width;y=x?m.x<e?v[2][0]-m.labelDistance-l-m.labelMargin:l+a-m.labelMargin-v[2][0]-m.labelDistance:m.x<e?m.x-l-m.bleedMargin:l+a-m.x-m.bleedMargin,y<m.textRect.width&&(m.text=i.truncateText(m.text,y,m.font),"edge"===m.labelAlignTo&&(b=i.getWidth(m.text,m.font)));var _=v[1][0]-v[2][0];x?m.x<e?v[2][0]=l+m.labelMargin+b+m.labelDistance:v[2][0]=l+a-m.labelMargin-b-m.labelDistance:(m.x<e?v[2][0]=m.x+m.labelDistance:v[2][0]=m.x-m.labelDistance,v[1][0]=v[2][0]+_),v[1][1]=v[2][1]=m.y}}}}function c(t){return"center"===t.position}function u(t,e,n,r,s,c){var u,h,d=t.getData(),f=[],p=!1,g=(t.get("minShowLabelAngle")||0)*o;d.each((function(r){var o=d.getItemLayout(r),l=d.getItemModel(r),c=l.getModel("label"),m=c.get("position")||l.get("emphasis.label.position"),v=c.get("distanceToLabelLine"),y=c.get("alignTo"),x=a(c.get("margin"),n),b=c.get("bleedMargin"),_=c.getFont(),w=l.getModel("labelLine"),S=w.get("length");S=a(S,n);var A=w.get("length2");if(A=a(A,n),!(o.angle<g)){var C,I,T,k,M=(o.startAngle+o.endAngle)/2,D=Math.cos(M),E=Math.sin(M);u=o.cx,h=o.cy;var L,P=t.getFormattedLabel(r,"normal")||d.getName(r),O=i.getBoundingRect(P,_,k,"top"),R="inside"===m||"inner"===m;if("center"===m)C=o.cx,I=o.cy,k="center";else{var N=(R?(o.r+o.r0)/2*D:o.r*D)+u,B=(R?(o.r+o.r0)/2*E:o.r*E)+h;if(C=N+3*D,I=B+3*E,!R){var z=N+D*(S+e-o.r),F=B+E*(S+e-o.r),V=z+(D<0?-1:1)*A,W=F;C="edge"===y?D<0?s+x:s+n-x:V+(D<0?-v:v),I=W,T=[[N,B],[z,F],[V,W]]}k=R?"center":"edge"===y?D>0?"right":"left":D>0?"left":"right"}var U=c.get("rotate");L="number"===typeof U?U*(Math.PI/180):U?D<0?-M+Math.PI:-M:0,p=!!L,o.label={x:C,y:I,position:m,height:O.height,len:S,len2:A,linePoints:T,textAlign:k,verticalAlign:"middle",rotation:L,inside:R,labelDistance:v,labelAlignTo:y,labelMargin:x,bleedMargin:b,textRect:O,text:P,font:_},R||f.push(o.label)}})),!p&&t.get("avoidLabelOverlap")&&l(f,u,h,e,n,r,s,c)}t.exports=u},bc5f:function(t,e,n){var i=n("6cb7");i.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}))},bcaa:function(t,e,n){var i=n("4ab1"),r=n("6d8b");function a(t,e){i.call(this,t,e,["filter"],"__filter_in_use__","_shadowDom")}function o(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY||t.textShadowBlur||t.textShadowOffsetX||t.textShadowOffsetY)}r.inherits(a,i),a.prototype.addWithoutUpdate=function(t,e){if(e&&o(e.style)){var n;if(e._shadowDom){n=e._shadowDom;var i=this.getDefs(!0);i.contains(e._shadowDom)||this.addDom(n)}else n=this.add(e);this.markUsed(e);var r=n.getAttribute("id");t.style.filter="url(#"+r+")"}},a.prototype.add=function(t){var e=this.createElement("filter");return t._shadowDomId=t._shadowDomId||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-shadow-"+t._shadowDomId),this.updateDom(t,e),this.addDom(e),e},a.prototype.update=function(t,e){var n=e.style;if(o(n)){var r=this;i.prototype.update.call(this,e,(function(){r.updateDom(e,e._shadowDom)}))}else this.remove(t,e)},a.prototype.remove=function(t,e){null!=e._shadowDomId&&(this.removeDom(t),t.style.filter="")},a.prototype.updateDom=function(t,e){var n=e.getElementsByTagName("feDropShadow");n=0===n.length?this.createElement("feDropShadow"):n[0];var i,r,a,o,s=t.style,l=t.scale&&t.scale[0]||1,c=t.scale&&t.scale[1]||1;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)i=s.shadowOffsetX||0,r=s.shadowOffsetY||0,a=s.shadowBlur,o=s.shadowColor;else{if(!s.textShadowBlur)return void this.removeDom(e,s);i=s.textShadowOffsetX||0,r=s.textShadowOffsetY||0,a=s.textShadowBlur,o=s.textShadowColor}n.setAttribute("dx",i/l),n.setAttribute("dy",r/c),n.setAttribute("flood-color",o);var u=a/2/l,h=a/2/c,d=u+" "+h;n.setAttribute("stdDeviation",d),e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width",Math.ceil(a/2*200)+"%"),e.setAttribute("height",Math.ceil(a/2*200)+"%"),e.appendChild(n),t._shadowDom=e},a.prototype.markUsed=function(t){t._shadowDom&&i.prototype.markUsed.call(this,t._shadowDom)};var s=a;t.exports=s},bcbe:function(t,e,n){var i=n("6d8b"),r=n("fab2"),a=n("2306"),o=n("edb9"),s=n("6679"),l=n("58df"),c=l.rectCoordAxisBuildSplitArea,u=l.rectCoordAxisHandleRemove,h=["axisLine","axisTickLabel","axisName"],d=["splitArea","splitLine"],f=s.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(t,e,n,s){var l=this.group;l.removeAll();var c=this._axisGroup;this._axisGroup=new a.Group;var u=o.layout(t),p=new r(t,u);i.each(h,p.add,p),l.add(this._axisGroup),l.add(p.getGroup()),i.each(d,(function(e){t.get(e+".show")&&this["_"+e](t)}),this),a.groupTransition(c,this._axisGroup,t),f.superCall(this,"render",t,e,n,s)},remove:function(){u(this)},_splitLine:function(t){var e=t.axis;if(!e.scale.isBlank()){var n=t.getModel("splitLine"),i=n.getModel("lineStyle"),r=i.get("width"),o=i.get("color");o=o instanceof Array?o:[o];for(var s=t.coordinateSystem.getRect(),l=e.isHorizontal(),c=[],u=0,h=e.getTicksCoords({tickModel:n}),d=[],f=[],p=0;p<h.length;++p){var g=e.toGlobalCoord(h[p].coord);l?(d[0]=g,d[1]=s.y,f[0]=g,f[1]=s.y+s.height):(d[0]=s.x,d[1]=g,f[0]=s.x+s.width,f[1]=g);var m=u++%o.length;c[m]=c[m]||[],c[m].push(new a.Line({subPixelOptimize:!0,shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]},style:{lineWidth:r},silent:!0}))}for(p=0;p<c.length;++p)this.group.add(a.mergePath(c[p],{style:{stroke:o[p%o.length],lineDash:i.getLineDash(r),lineWidth:r},silent:!0}))}},_splitArea:function(t){c(this,this._axisGroup,t,t)}}),p=f;t.exports=p},bd6b:function(t,e,n){var i=n("06ad"),r=n("4942"),a=n("6d8b"),o=a.isString,s=a.isFunction,l=a.isObject,c=a.isArrayLike,u=a.indexOf,h=function(){this.animators=[]};function d(t,e,n,i,r,a,l,c){o(i)?(a=r,r=i,i=0):s(r)?(a=r,r="linear",i=0):s(i)?(a=i,i=0):s(n)?(a=n,n=500):n||(n=500),t.stopAnimation(),f(t,"",t,e,n,i,c);var u=t.animators.slice(),h=u.length;function d(){h--,h||a&&a()}h||a&&a();for(var p=0;p<u.length;p++)u[p].done(d).start(r,l)}function f(t,e,n,i,r,a,o){var s={},u=0;for(var h in i)i.hasOwnProperty(h)&&(null!=n[h]?l(i[h])&&!c(i[h])?f(t,e?e+"."+h:h,n[h],i[h],r,a,o):(o?(s[h]=n[h],p(t,e,h,i[h])):s[h]=i[h],u++):null==i[h]||o||p(t,e,h,i[h]));u>0&&t.animate(e,!1).when(null==r?500:r,s).delay(a||0)}function p(t,e,n,i){if(e){var r={};r[e]={},r[e][n]=i,t.attr(r)}else t.attr(n,i)}h.prototype={constructor:h,animate:function(t,e){var n,a=!1,o=this,s=this.__zr;if(t){var l=t.split("."),c=o;a="shape"===l[0];for(var h=0,d=l.length;h<d;h++)c&&(c=c[l[h]]);c&&(n=c)}else n=o;if(n){var f=o.animators,p=new i(n,e);return p.during((function(t){o.dirty(a)})).done((function(){f.splice(u(f,p),1)})),f.push(p),s&&s.animation.addAnimator(p),p}r('Property "'+t+'" is not existed in element '+o.id)},stopAnimation:function(t){for(var e=this.animators,n=e.length,i=0;i<n;i++)e[i].stop(t);return e.length=0,this},animateTo:function(t,e,n,i,r,a){d(this,t,e,n,i,r,a)},animateFrom:function(t,e,n,i,r,a){d(this,t,e,n,i,r,a,!0)}};var g=h;t.exports=g},bd92:function(t,e,n){var i=n("6d8b"),r=n("4f85"),a=n("e468"),o=a.seriesModelMixin,s=r.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,clip:!0,itemStyle:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.brushRect)}});i.mixin(s,o,!0);var l=s;t.exports=l},bd9e:function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),a=n("2306"),o=n("e0d3"),s=n("f4a2"),l=r.each,c=r.indexOf,u=r.curry,h=["dataToPoint","pointToData"],d=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function f(t,e,n){var i=this._targetInfoList=[],r={},a=m(e,t);l(v,(function(t,e){(!n||!n.include||c(n.include,e)>=0)&&t(a,i,r)}))}var p=f.prototype;function g(t){return t[0]>t[1]&&t.reverse(),t}function m(t,e){return o.parseFinder(t,e,{includeMainTypes:d})}p.setOutputRanges=function(t,e){this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=b[t.brushType](0,n,e);t.__rangeOffset={offset:w[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}}))},p.matchOutputRanges=function(t,e,n){l(t,(function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&r.each(i.coordSyses,(function(i){var r=b[t.brushType](1,i,t.range);n(t,r.values,i,e)}))}),this)},p.setInputRanges=function(t,e){l(t,(function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&!0!==n){t.panelId=n.panelId;var i=b[t.brushType](0,n.coordSys,t.coordRange),r=t.__rangeOffset;t.range=r?w[t.brushType](i.values,r.offset,A(i.xyMinMax,r.xyMinMax)):i.values}}),this)},p.makePanelOpts=function(t,e){return r.map(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e&&e(n),clipPath:s.makeRectPanelClipPath(i),isTargetByCursor:s.makeRectIsTargetByCursor(i,t,n.coordSysModel),getLinearBrushOtherExtent:s.makeLinearBrushOtherExtent(i)}}))},p.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&c(i.coordSyses,e.coordinateSystem)>=0},p.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=m(e,t),r=0;r<n.length;r++){var a=n[r],o=t.panelId;if(o){if(a.panelId===o)return a}else for(r=0;r<y.length;r++)if(y[r](i,a))return a}return!0};var v={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,a=t.gridModels,o=r.createHashMap(),s={},u={};(n||i||a)&&(l(n,(function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0})),l(i,(function(t){var e=t.axis.grid.model;o.set(e.id,e),u[e.id]=!0})),l(a,(function(t){o.set(t.id,t),s[t.id]=!0,u[t.id]=!0})),o.each((function(t){var r=t.coordinateSystem,a=[];l(r.getCartesians(),(function(t,e){(c(n,t.getAxis("x").model)>=0||c(i,t.getAxis("y").model)>=0)&&a.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:a[0],coordSyses:a,getPanelRect:x.grid,xAxisDeclared:s[t.id],yAxisDeclared:u[t.id]})})))},geo:function(t,e){l(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:x.geo})}))}},y=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],x={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(a.getTransform(t)),e}},b={lineX:u(_,0),lineY:u(_,1),rect:function(t,e,n){var i=e[h[t]]([n[0][0],n[1][0]]),r=e[h[t]]([n[0][1],n[1][1]]),a=[g([i[0],r[0]]),g([i[1],r[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=r.map(n,(function(n){var r=e[h[t]](n);return i[0][0]=Math.min(i[0][0],r[0]),i[1][0]=Math.min(i[1][0],r[1]),i[0][1]=Math.max(i[0][1],r[0]),i[1][1]=Math.max(i[1][1],r[1]),r}));return{values:a,xyMinMax:i}}};function _(t,e,n,i){var a=n.getAxis(["x","y"][t]),o=g(r.map([0,1],(function(t){return e?a.coordToData(a.toLocalCoord(i[t])):a.toGlobalCoord(a.dataToCoord(i[t]))}))),s=[];return s[t]=o,s[1-t]=[NaN,NaN],{values:o,xyMinMax:s}}var w={lineX:u(S,0),lineY:u(S,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return r.map(t,(function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]}))}};function S(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function A(t,e){var n=C(t),i=C(e),r=[n[0]/i[0],n[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function C(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var I=f;t.exports=I},bda7:function(t,e,n){var i=n("6d8b"),r=n("f279");function a(t){if(!t.UTF8Encoding)return t;var e=t.UTF8Scale;null==e&&(e=1024);for(var n=t.features,i=0;i<n.length;i++)for(var r=n[i],a=r.geometry,s=a.coordinates,l=a.encodeOffsets,c=0;c<s.length;c++){var u=s[c];if("Polygon"===a.type)s[c]=o(u,l[c],e);else if("MultiPolygon"===a.type)for(var h=0;h<u.length;h++){var d=u[h];u[h]=o(d,l[c][h],e)}}return t.UTF8Encoding=!1,t}function o(t,e,n){for(var i=[],r=e[0],a=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,l=t.charCodeAt(o+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=a,r=s,a=l,i.push([s/n,l/n])}return i}function s(t,e){return a(t),i.map(i.filter(t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,a=t.geometry,o=a.coordinates,s=[];"Polygon"===a.type&&s.push({type:"polygon",exterior:o[0],interiors:o.slice(1)}),"MultiPolygon"===a.type&&i.each(o,(function(t){t[0]&&s.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})}));var l=new r(n[e||"name"],s,n.cp);return l.properties=n,l}))}t.exports=s},bdc0:function(t,e,n){var i=n("3eba");n("d2a5"),i.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))},bf9b:function(t,e,n){var i=n("3eba"),r=n("d81e"),a=r.updateCenterAndZoom;i.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=t.dataIndex,i=e.getData().tree,r=i.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),i.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=e.coordinateSystem,i=a(n,t);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)}))}))},c037:function(t,e,n){var i=n("3eba"),r=n("6d8b");n("f7c6"),n("1ab3");var a=n("7782"),o=n("98e7"),s=n("292e"),l=n("d3f4");a("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),i.registerVisual(o("pie")),i.registerLayout(r.curry(s,"pie")),i.registerProcessor(l("pie"))},c274:function(t,e,n){"use strict";var i=n("50bf");function r(){var t={},e=0,n=0,i=0;function r(r,a){a||(a=r,r=0),r>n?n=r:r<i&&(i=r),t[r]||(t[r]=[]),t[r].push(a),e++}function a(){for(var e=i;e<=n;e++)for(var r=t[e],a=0;a<r.length;a++){var o=r[a];o()}}function o(){return e}return{add:r,process:a,size:o}}t.exports=function(t){t=t||{};var e=t.reporter,n=i.getOption(t,"async",!0),a=i.getOption(t,"auto",!0);a&&!n&&(e&&e.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var o,s=r(),l=!1;function c(t,e){!l&&a&&n&&0===s.size()&&d(),s.add(t,e)}function u(){l=!0;while(s.size()){var t=s;s=r(),t.process()}l=!1}function h(t){l||(void 0===t&&(t=n),o&&(f(o),o=null),t?d():u())}function d(){o=p(u)}function f(t){var e=clearTimeout;return e(t)}function p(t){var e=function(t){return setTimeout(t,0)};return e(t)}return{add:c,force:h}}},c2be:function(t,e,n){var i=n("2306"),r=i.extendShape,a=r({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),a=Math.max(e.r,0),o=.5*(a-r),s=r+o,l=e.startAngle,c=e.endAngle,u=e.clockwise,h=Math.cos(l),d=Math.sin(l),f=Math.cos(c),p=Math.sin(c),g=u?c-l<2*Math.PI:l-c<2*Math.PI;g&&(t.moveTo(h*r+n,d*r+i),t.arc(h*s+n,d*s+i,o,-Math.PI+l,l,!u)),t.arc(n,i,a,l,c,!u),t.moveTo(f*a+n,p*a+i),t.arc(f*s+n,p*s+i,o,c-2*Math.PI,c-Math.PI,!u),0!==r&&(t.arc(n,i,r,c,l,u),t.moveTo(h*r+n,p*r+i)),t.closePath()}});t.exports=a},c2dd:function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=n("fc82"),o=n("10cc"),s=o.layoutCovers,l=i.extendComponentView({type:"brush",init:function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new a(e.getZr())).on("brush",r.bind(this._onBrush,this)).mount()},render:function(t){return this.model=t,c.apply(this,arguments)},updateTransform:function(t,e){return s(e),c.apply(this,arguments)},updateView:c,dispose:function(){this._brushController.dispose()},_onBrush:function(t,e){var n=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:r.clone(t),$from:n}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:r.clone(t),$from:n})}});function c(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())}t.exports=l},c4a3:function(t,e){function n(t,e){this.getAllNames=function(){var t=e();return t.mapArray(t.getName)},this.containName=function(t){var n=e();return n.indexOfName(t)>=0},this.indexOfName=function(e){var n=t();return n.indexOfName(e)},this.getItemVisual=function(e,n){var i=t();return i.getItemVisual(e,n)}}var i=n;t.exports=i},c515:function(t,e,n){n("849b"),n("8459"),n("b006")},c526:function(t,e){var n={axisPointer:1,tooltip:1,brush:1};function i(t,e,i){var r=e.getComponentByElement(t.topTarget),a=r&&r.coordinateSystem;return r&&r!==i&&!n[r.mainType]&&a&&a.model!==i}e.onIrrelevantElement=i},c533:function(t,e){var n=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],i={color:n,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],n]};t.exports=i},c62c:function(t,e,n){var i=n("6d8b"),r=n("6cb7"),a=n("9e47"),o=n("2023"),s=r.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),l={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}};function c(t,e){return e.type||(e.data?"category":"value")}i.merge(s.prototype,o),a("single",s,c,l);var u=s;t.exports=u},c775:function(t,e,n){var i=n("2b17"),r=i.retrieveRawValue;function a(t,e){var n=t.mapDimension("defaultedLabel",!0),i=n.length;if(1===i)return r(t,e,n[0]);if(i){for(var a=[],o=0;o<n.length;o++){var s=r(t,e,n[o]);a.push(s)}return a.join(" ")}}e.getDefaultLabel=a},c7a2:function(t,e,n){var i=n("cbe5"),r=n("5693"),a=n("9cf9"),o=a.subPixelOptimizeRect,s={},l=i.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,e){var n,i,a,l;this.subPixelOptimize?(o(s,e,this.style),n=s.x,i=s.y,a=s.width,l=s.height,s.r=e.r,e=s):(n=e.x,i=e.y,a=e.width,l=e.height),e.r?r.buildPath(t,e):t.rect(n,i,a,l),t.closePath()}});t.exports=l},c8b5:function(t,e,n){var i;
|
||
/*! Hammer.JS - v2.0.7 - 2016-04-22
|
||
* http://hammerjs.github.io/
|
||
*
|
||
* Copyright (c) 2016 Jorik Tangelder;
|
||
* Licensed under the MIT license */(function(r,a,o,s){"use strict";var l,c=["","webkit","Moz","MS","ms","o"],u=a.createElement("div"),h="function",d=Math.round,f=Math.abs,p=Date.now;function g(t,e,n){return setTimeout(w(t,n),e)}function m(t,e,n){return!!Array.isArray(t)&&(v(t,n[e],n),!0)}function v(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==s){i=0;while(i<t.length)e.call(n,t[i],i,t),i++}else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function y(t,e,n){var i="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",a=r.console&&(r.console.warn||r.console.log);return a&&a.call(r.console,i,n),t.apply(this,arguments)}}l="function"!==typeof Object.assign?function(t){if(t===s||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==s&&null!==i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var x=y((function(t,e,n){var i=Object.keys(e),r=0;while(r<i.length)(!n||n&&t[i[r]]===s)&&(t[i[r]]=e[i[r]]),r++;return t}),"extend","Use `assign`."),b=y((function(t,e){return x(t,e,!0)}),"merge","Use `assign`.");function _(t,e,n){var i,r=e.prototype;i=t.prototype=Object.create(r),i.constructor=t,i._super=r,n&&l(i,n)}function w(t,e){return function(){return t.apply(e,arguments)}}function S(t,e){return typeof t==h?t.apply(e&&e[0]||s,e):t}function A(t,e){return t===s?e:t}function C(t,e,n){v(M(e),(function(e){t.addEventListener(e,n,!1)}))}function I(t,e,n){v(M(e),(function(e){t.removeEventListener(e,n,!1)}))}function T(t,e){while(t){if(t==e)return!0;t=t.parentNode}return!1}function k(t,e){return t.indexOf(e)>-1}function M(t){return t.trim().split(/\s+/g)}function D(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);var i=0;while(i<t.length){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function E(t){return Array.prototype.slice.call(t,0)}function L(t,e,n){var i=[],r=[],a=0;while(a<t.length){var o=e?t[a][e]:t[a];D(r,o)<0&&i.push(t[a]),r[a]=o,a++}return n&&(i=e?i.sort((function(t,n){return t[e]>n[e]})):i.sort()),i}function P(t,e){var n,i,r=e[0].toUpperCase()+e.slice(1),a=0;while(a<c.length){if(n=c[a],i=n?n+r:e,i in t)return i;a++}return s}var O=1;function R(){return O++}function N(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}var B=/mobile|tablet|ip(ad|hone|od)|android/i,z="ontouchstart"in r,F=P(r,"PointerEvent")!==s,V=z&&B.test(navigator.userAgent),W="touch",U="pen",H="mouse",G="kinect",j=25,Y=1,q=2,K=4,X=8,Z=1,Q=2,J=4,$=8,tt=16,et=Q|J,nt=$|tt,it=et|nt,rt=["x","y"],at=["clientX","clientY"];function ot(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){S(t.options.enable,[t])&&n.handler(e)},this.init()}function st(t){var e,n=t.options.inputClass;return e=n||(F?kt:V?Nt:z?Vt:St),new e(t,lt)}function lt(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,a=e&Y&&i-r===0,o=e&(K|X)&&i-r===0;n.isFirst=!!a,n.isFinal=!!o,a&&(t.session={}),n.eventType=e,ct(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function ct(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=dt(e)),r>1&&!n.firstMultiple?n.firstMultiple=dt(e):1===r&&(n.firstMultiple=!1);var a=n.firstInput,o=n.firstMultiple,s=o?o.center:a.center,l=e.center=ft(i);e.timeStamp=p(),e.deltaTime=e.timeStamp-a.timeStamp,e.angle=vt(s,l),e.distance=mt(s,l),ut(n,e),e.offsetDirection=gt(e.deltaX,e.deltaY);var c=pt(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=f(c.x)>f(c.y)?c.x:c.y,e.scale=o?xt(o.pointers,i):1,e.rotation=o?yt(o.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,ht(n,e);var u=t.element;T(e.srcEvent.target,u)&&(u=e.srcEvent.target),e.target=u}function ut(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},a=t.prevInput||{};e.eventType!==Y&&a.eventType!==K||(r=t.prevDelta={x:a.deltaX||0,y:a.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}function ht(t,e){var n,i,r,a,o=t.lastInterval||e,l=e.timeStamp-o.timeStamp;if(e.eventType!=X&&(l>j||o.velocity===s)){var c=e.deltaX-o.deltaX,u=e.deltaY-o.deltaY,h=pt(l,c,u);i=h.x,r=h.y,n=f(h.x)>f(h.y)?h.x:h.y,a=gt(c,u),t.lastInterval=e}else n=o.velocity,i=o.velocityX,r=o.velocityY,a=o.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=a}function dt(t){var e=[],n=0;while(n<t.pointers.length)e[n]={clientX:d(t.pointers[n].clientX),clientY:d(t.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:e,center:ft(e),deltaX:t.deltaX,deltaY:t.deltaY}}function ft(t){var e=t.length;if(1===e)return{x:d(t[0].clientX),y:d(t[0].clientY)};var n=0,i=0,r=0;while(r<e)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:d(n/e),y:d(i/e)}}function pt(t,e,n){return{x:e/t||0,y:n/t||0}}function gt(t,e){return t===e?Z:f(t)>=f(e)?t<0?Q:J:e<0?$:tt}function mt(t,e,n){n||(n=rt);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function vt(t,e,n){n||(n=rt);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}function yt(t,e){return vt(e[1],e[0],at)+vt(t[1],t[0],at)}function xt(t,e){return mt(e[0],e[1],at)/mt(t[0],t[1],at)}ot.prototype={handler:function(){},init:function(){this.evEl&&C(this.element,this.evEl,this.domHandler),this.evTarget&&C(this.target,this.evTarget,this.domHandler),this.evWin&&C(N(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&I(this.element,this.evEl,this.domHandler),this.evTarget&&I(this.target,this.evTarget,this.domHandler),this.evWin&&I(N(this.element),this.evWin,this.domHandler)}};var bt={mousedown:Y,mousemove:q,mouseup:K},_t="mousedown",wt="mousemove mouseup";function St(){this.evEl=_t,this.evWin=wt,this.pressed=!1,ot.apply(this,arguments)}_(St,ot,{handler:function(t){var e=bt[t.type];e&Y&&0===t.button&&(this.pressed=!0),e&q&&1!==t.which&&(e=K),this.pressed&&(e&K&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:H,srcEvent:t}))}});var At={pointerdown:Y,pointermove:q,pointerup:K,pointercancel:X,pointerout:X},Ct={2:W,3:U,4:H,5:G},It="pointerdown",Tt="pointermove pointerup pointercancel";function kt(){this.evEl=It,this.evWin=Tt,ot.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&!r.PointerEvent&&(It="MSPointerDown",Tt="MSPointerMove MSPointerUp MSPointerCancel"),_(kt,ot,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=At[i],a=Ct[t.pointerType]||t.pointerType,o=a==W,s=D(e,t.pointerId,"pointerId");r&Y&&(0===t.button||o)?s<0&&(e.push(t),s=e.length-1):r&(K|X)&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:a,srcEvent:t}),n&&e.splice(s,1))}});var Mt={touchstart:Y,touchmove:q,touchend:K,touchcancel:X},Dt="touchstart",Et="touchstart touchmove touchend touchcancel";function Lt(){this.evTarget=Dt,this.evWin=Et,this.started=!1,ot.apply(this,arguments)}function Pt(t,e){var n=E(t.touches),i=E(t.changedTouches);return e&(K|X)&&(n=L(n.concat(i),"identifier",!0)),[n,i]}_(Lt,ot,{handler:function(t){var e=Mt[t.type];if(e===Y&&(this.started=!0),this.started){var n=Pt.call(this,t,e);e&(K|X)&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:W,srcEvent:t})}}});var Ot={touchstart:Y,touchmove:q,touchend:K,touchcancel:X},Rt="touchstart touchmove touchend touchcancel";function Nt(){this.evTarget=Rt,this.targetIds={},ot.apply(this,arguments)}function Bt(t,e){var n=E(t.touches),i=this.targetIds;if(e&(Y|q)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,a,o=E(t.changedTouches),s=[],l=this.target;if(a=n.filter((function(t){return T(t.target,l)})),e===Y){r=0;while(r<a.length)i[a[r].identifier]=!0,r++}r=0;while(r<o.length)i[o[r].identifier]&&s.push(o[r]),e&(K|X)&&delete i[o[r].identifier],r++;return s.length?[L(a.concat(s),"identifier",!0),s]:void 0}_(Nt,ot,{handler:function(t){var e=Ot[t.type],n=Bt.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:W,srcEvent:t})}});var zt=2500,Ft=25;function Vt(){ot.apply(this,arguments);var t=w(this.handler,this);this.touch=new Nt(this.manager,t),this.mouse=new St(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function Wt(t,e){t&Y?(this.primaryTouch=e.changedPointers[0].identifier,Ut.call(this,e)):t&(K|X)&&Ut.call(this,e)}function Ut(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches,r=function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)};setTimeout(r,zt)}}function Ht(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],a=Math.abs(e-r.x),o=Math.abs(n-r.y);if(a<=Ft&&o<=Ft)return!0}return!1}_(Vt,ot,{handler:function(t,e,n){var i=n.pointerType==W,r=n.pointerType==H;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)Wt.call(this,e,n);else if(r&&Ht.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Gt=P(u.style,"touchAction"),jt=Gt!==s,Yt="compute",qt="auto",Kt="manipulation",Xt="none",Zt="pan-x",Qt="pan-y",Jt=ee();function $t(t,e){this.manager=t,this.set(e)}function te(t){if(k(t,Xt))return Xt;var e=k(t,Zt),n=k(t,Qt);return e&&n?Xt:e||n?e?Zt:Qt:k(t,Kt)?Kt:qt}function ee(){if(!jt)return!1;var t={},e=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){t[n]=!e||r.CSS.supports("touch-action",n)})),t}$t.prototype={set:function(t){t==Yt&&(t=this.compute()),jt&&this.manager.element.style&&Jt[t]&&(this.manager.element.style[Gt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return v(this.manager.recognizers,(function(e){S(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),te(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,r=k(i,Xt)&&!Jt[Xt],a=k(i,Qt)&&!Jt[Qt],o=k(i,Zt)&&!Jt[Zt];if(r){var s=1===t.pointers.length,l=t.distance<2,c=t.deltaTime<250;if(s&&l&&c)return}if(!o||!a)return r||a&&n&et||o&&n&nt?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var ne=1,ie=2,re=4,ae=8,oe=ae,se=16,le=32;function ce(t){this.options=l({},this.defaults,t||{}),this.id=R(),this.manager=null,this.options.enable=A(this.options.enable,!0),this.state=ne,this.simultaneous={},this.requireFail=[]}function ue(t){return t&se?"cancel":t&ae?"end":t&re?"move":t&ie?"start":""}function he(t){return t==tt?"down":t==$?"up":t==Q?"left":t==J?"right":""}function de(t,e){var n=e.manager;return n?n.get(t):t}function fe(){ce.apply(this,arguments)}function pe(){fe.apply(this,arguments),this.pX=null,this.pY=null}function ge(){fe.apply(this,arguments)}function me(){ce.apply(this,arguments),this._timer=null,this._input=null}function ve(){fe.apply(this,arguments)}function ye(){fe.apply(this,arguments)}function xe(){ce.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function be(t,e){return e=e||{},e.recognizers=A(e.recognizers,be.defaults.preset),new Se(t,e)}ce.prototype={defaults:{},set:function(t){return l(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(m(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=de(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return m(t,"dropRecognizeWith",this)||(t=de(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(m(t,"requireFailure",this))return this;var e=this.requireFail;return t=de(t,this),-1===D(e,t)&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(m(t,"dropRequireFailure",this))return this;t=de(t,this);var e=D(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<ae&&i(e.options.event+ue(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=ae&&i(e.options.event+ue(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=le},canEmit:function(){var t=0;while(t<this.requireFail.length){if(!(this.requireFail[t].state&(le|ne)))return!1;t++}return!0},recognize:function(t){var e=l({},t);if(!S(this.options.enable,[this,e]))return this.reset(),void(this.state=le);this.state&(oe|se|le)&&(this.state=ne),this.state=this.process(e),this.state&(ie|re|ae|se)&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},_(fe,ce,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=e&(ie|re),r=this.attrTest(t);return i&&(n&X||!r)?e|se:i||r?n&K?e|ae:e&ie?e|re:ie:le}}),_(pe,fe,{defaults:{event:"pan",threshold:10,pointers:1,direction:it},getTouchAction:function(){var t=this.options.direction,e=[];return t&et&&e.push(Qt),t&nt&&e.push(Zt),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,a=t.deltaX,o=t.deltaY;return r&e.direction||(e.direction&et?(r=0===a?Z:a<0?Q:J,n=a!=this.pX,i=Math.abs(t.deltaX)):(r=0===o?Z:o<0?$:tt,n=o!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return fe.prototype.attrTest.call(this,t)&&(this.state&ie||!(this.state&ie)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=he(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),_(ge,fe,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Xt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&ie)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),_(me,ce,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[qt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||t.eventType&(K|X)&&!r)this.reset();else if(t.eventType&Y)this.reset(),this._timer=g((function(){this.state=oe,this.tryEmit()}),e.time,this);else if(t.eventType&K)return oe;return le},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===oe&&(t&&t.eventType&K?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),_(ve,fe,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Xt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&ie)}}),_(ye,fe,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:et|nt,pointers:1},getTouchAction:function(){return pe.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(et|nt)?e=t.overallVelocity:n&et?e=t.overallVelocityX:n&nt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&f(e)>this.options.velocity&&t.eventType&K},emit:function(t){var e=he(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),_(xe,ce,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Kt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&Y&&0===this.count)return this.failTimeout();if(i&&r&&n){if(t.eventType!=K)return this.failTimeout();var a=!this.pTime||t.timeStamp-this.pTime<e.interval,o=!this.pCenter||mt(this.pCenter,t.center)<e.posThreshold;this.pTime=t.timeStamp,this.pCenter=t.center,o&&a?this.count+=1:this.count=1,this._input=t;var s=this.count%e.taps;if(0===s)return this.hasRequireFailures()?(this._timer=g((function(){this.state=oe,this.tryEmit()}),e.interval,this),ie):oe}return le},failTimeout:function(){return this._timer=g((function(){this.state=le}),this.options.interval,this),le},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==oe&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),be.VERSION="2.0.7",be.defaults={domEvents:!1,touchAction:Yt,enable:!0,inputTarget:null,inputClass:null,preset:[[ve,{enable:!1}],[ge,{enable:!1},["rotate"]],[ye,{direction:et}],[pe,{direction:et},["swipe"]],[xe],[xe,{event:"doubletap",taps:2},["tap"]],[me]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var _e=1,we=2;function Se(t,e){this.options=l({},be.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=st(this),this.touchAction=new $t(this,this.options.touchAction),Ae(this,!0),v(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function Ae(t,e){var n,i=t.element;i.style&&(v(t.options.cssProps,(function(r,a){n=P(i.style,a),e?(t.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}function Ce(t,e){var n=a.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}Se.prototype={set:function(t){return l(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?we:_e},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&oe)&&(r=e.curRecognizer=null);var a=0;while(a<i.length)n=i[a],e.stopped===we||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&n.state&(ie|re|ae)&&(r=e.curRecognizer=n),a++}},get:function(t){if(t instanceof ce)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(m(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(m(t,"remove",this))return this;if(t=this.get(t),t){var e=this.recognizers,n=D(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==s&&e!==s){var n=this.handlers;return v(M(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(t!==s){var n=this.handlers;return v(M(t),(function(t){e?n[t]&&n[t].splice(D(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&Ce(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};var i=0;while(i<n.length)n[i](e),i++}},destroy:function(){this.element&&Ae(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(be,{INPUT_START:Y,INPUT_MOVE:q,INPUT_END:K,INPUT_CANCEL:X,STATE_POSSIBLE:ne,STATE_BEGAN:ie,STATE_CHANGED:re,STATE_ENDED:ae,STATE_RECOGNIZED:oe,STATE_CANCELLED:se,STATE_FAILED:le,DIRECTION_NONE:Z,DIRECTION_LEFT:Q,DIRECTION_RIGHT:J,DIRECTION_UP:$,DIRECTION_DOWN:tt,DIRECTION_HORIZONTAL:et,DIRECTION_VERTICAL:nt,DIRECTION_ALL:it,Manager:Se,Input:ot,TouchAction:$t,TouchInput:Nt,MouseInput:St,PointerEventInput:kt,TouchMouseInput:Vt,SingleTouchInput:Lt,Recognizer:ce,AttrRecognizer:fe,Tap:xe,Pan:pe,Swipe:ye,Pinch:ge,Rotate:ve,Press:me,on:C,off:I,each:v,merge:b,extend:x,assign:l,inherit:_,bindFn:w,prefixed:P});var Ie="undefined"!==typeof r?r:"undefined"!==typeof self?self:{};Ie.Hammer=be,i=function(){return be}.call(e,n,e,t),i===s||(t.exports=i)})(window,document)},c8ef:function(t,e,n){var i=n("6d8b"),r=n("a15a"),a=r.createSymbol,o=n("2306"),s=o.Group,l=n("3842"),c=l.parsePercent,u=n("1418"),h=3;function d(t){return i.isArray(t)||(t=[+t,+t]),t}function f(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}function p(t,e){s.call(this);var n=new u(t,e),i=new s;this.add(n),this.add(i),i.beforeUpdate=function(){this.attr(n.getScale())},this.updateData(t,e)}var g=p.prototype;g.stopEffectAnimation=function(){this.childAt(1).removeAll()},g.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=this.childAt(1),r=0;r<h;r++){var o=a(e,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var s=-r/h*t.period+t.effectOffset;o.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(s).start(),o.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),i.add(o)}f(i,t)},g.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale"],r=0;r<i.length;r++){var a=i[r];if(e[a]!==t[a])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}f(n,t)},g.highlight=function(){this.trigger("emphasis")},g.downplay=function(){this.trigger("normal")},g.updateData=function(t,e){var n=t.hostModel;this.childAt(0).updateData(t,e);var i=this.childAt(1),r=t.getItemModel(e),a=t.getItemVisual(e,"symbol"),o=d(t.getItemVisual(e,"symbolSize")),s=t.getItemVisual(e,"color");i.attr("scale",o),i.traverse((function(t){t.attr({fill:s})}));var l=r.getShallow("symbolOffset");if(l){var u=i.position;u[0]=c(l[0],o[0]),u[1]=c(l[1],o[1])}var h=t.getItemVisual(e,"symbolRotate");i.rotation=(h||0)*Math.PI/180||0;var f={};if(f.showEffectOn=n.get("showEffectOn"),f.rippleScale=r.get("rippleEffect.scale"),f.brushType=r.get("rippleEffect.brushType"),f.period=1e3*r.get("rippleEffect.period"),f.effectOffset=e/t.count(),f.z=r.getShallow("z")||0,f.zlevel=r.getShallow("zlevel")||0,f.symbolType=a,f.color=s,f.rippleEffectColor=r.get("rippleEffect.color"),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"render"===f.showEffectOn)this._effectCfg?this.updateEffectAnimation(f):this.startEffectAnimation(f),this._effectCfg=f;else{this._effectCfg=null,this.stopEffectAnimation();var p=this.childAt(0),g=function(){p.highlight(),"render"!==f.showEffectOn&&this.startEffectAnimation(f)},m=function(){p.downplay(),"render"!==f.showEffectOn&&this.stopEffectAnimation()};this.on("mouseover",g,this).on("mouseout",m,this).on("emphasis",g,this).on("normal",m,this)}this._effectCfg=f},g.fadeOut=function(t){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),t&&t()},i.inherits(p,s);var m=p;t.exports=m},c92f:function(t,e,n){var i=n("3041"),r=i.parseSVG,a=i.makeViewBoxTransform,o=n("e1fc"),s=n("c7a2"),l=n("6d8b"),c=l.assert,u=l.createHashMap,h=n("9850"),d=n("e0d3"),f=d.makeInner,p=f(),g={load:function(t,e){var n=p(e).originRoot;if(n)return{root:n,boundingRect:p(e).boundingRect};var i=m(e);return p(e).originRoot=i.root,p(e).boundingRect=i.boundingRect,i},makeGraphic:function(t,e,n){var i=p(e),r=i.rootMap||(i.rootMap=u()),a=r.get(n);if(a)return a;var o=i.originRoot,s=i.boundingRect;return i.originRootHostKey?a=m(e,s).root:(i.originRootHostKey=n,a=o),r.set(n,a)},removeGraphic:function(t,e,n){var i=p(e),r=i.rootMap;r&&r.removeKey(n),n===i.originRootHostKey&&(i.originRootHostKey=null)}};function m(t,e){var n,i,l=t.svgXML;try{n=l&&r(l,{ignoreViewBox:!0,ignoreRootClip:!0})||{},i=n.root,c(null!=i)}catch(m){throw new Error("Invalid svg format\n"+m.message)}var u=n.width,d=n.height,f=n.viewBoxRect;if(e||(e=null==u||null==d?i.getBoundingRect():new h(0,0,0,0),null!=u&&(e.width=u),null!=d&&(e.height=d)),f){var p=a(f,e.width,e.height),g=i;i=new o,i.add(g),g.scale=p.scale,g.position=p.position}return i.setClipPath(new s({shape:e.plain()})),{root:i,boundingRect:e}}t.exports=g},c946:function(t,e,n){"use strict";var i=n("b770").forEach;t.exports=function(t){t=t||{};var e=t.reporter,n=t.batchProcessor,r=t.stateHandler.getState,a=(t.stateHandler.hasState,t.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!e)throw new Error("Missing required dependency: reporter.");var o=h(),s="erd_scroll_detection_scrollbar_style",l="erd_scroll_detection_container";function c(t){d(t,s,l)}function u(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function h(){var t=500,e=500,n=document.createElement("div");n.style.cssText=u(["position: absolute","width: "+2*t+"px","height: "+2*e+"px","visibility: hidden","margin: 0","padding: 0"]);var i=document.createElement("div");i.style.cssText=u(["position: absolute","width: "+t+"px","height: "+e+"px","overflow: scroll","visibility: none","top: "+3*-t+"px","left: "+3*-e+"px","visibility: hidden","margin: 0","padding: 0"]),i.appendChild(n),document.body.insertBefore(i,document.body.firstChild);var r=t-i.clientWidth,a=e-i.clientHeight;return document.body.removeChild(i),{width:r,height:a}}function d(t,e,n){function i(n,i){i=i||function(e){t.head.appendChild(e)};var r=t.createElement("style");return r.innerHTML=n,r.id=e,i(r),r}if(!t.getElementById(e)){var r=n+"_animation",a=n+"_animation_active",o="/* Created by the element-resize-detector library. */\n";o+="."+n+" > div::-webkit-scrollbar { "+u(["display: none"])+" }\n\n",o+="."+a+" { "+u(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+r,"animation-name: "+r])+" }\n",o+="@-webkit-keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",o+="@keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",i(o)}}function f(t){t.className+=" "+l+"_animation_active"}function p(t,n,i){if(t.addEventListener)t.addEventListener(n,i);else{if(!t.attachEvent)return e.error("[scroll] Don't know how to add event listeners.");t.attachEvent("on"+n,i)}}function g(t,n,i){if(t.removeEventListener)t.removeEventListener(n,i);else{if(!t.detachEvent)return e.error("[scroll] Don't know how to remove event listeners.");t.detachEvent("on"+n,i)}}function m(t){return r(t).container.childNodes[0].childNodes[0].childNodes[0]}function v(t){return r(t).container.childNodes[0].childNodes[0].childNodes[1]}function y(t,e){var n=r(t).listeners;if(!n.push)throw new Error("Cannot add listener to an element that is not detectable.");r(t).listeners.push(e)}function x(t,s,c){function h(){if(t.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(a.get(s),"Scroll: "),e.log.apply)e.log.apply(null,n);else for(var i=0;i<n.length;i++)e.log(n[i])}}function d(t){function e(t){return t===t.ownerDocument.body||t.ownerDocument.body.contains(t)}return!e(t)||null===window.getComputedStyle(t)}function g(t){var e=r(t).container.childNodes[0],n=window.getComputedStyle(e);return!n.width||-1===n.width.indexOf("px")}function y(){var t=window.getComputedStyle(s),e={};return e.position=t.position,e.width=s.offsetWidth,e.height=s.offsetHeight,e.top=t.top,e.right=t.right,e.bottom=t.bottom,e.left=t.left,e.widthCSS=t.width,e.heightCSS=t.height,e}function x(){var t=y();r(s).startSize={width:t.width,height:t.height},h("Element start size",r(s).startSize)}function b(){r(s).listeners=[]}function _(){if(h("storeStyle invoked."),r(s)){var t=y();r(s).style=t}else h("Aborting because element has been uninstalled")}function w(t,e,n){r(t).lastWidth=e,r(t).lastHeight=n}function S(t){return m(t).childNodes[0]}function A(){return 2*o.width+1}function C(){return 2*o.height+1}function I(t){return t+10+A()}function T(t){return t+10+C()}function k(t){return 2*t+A()}function M(t){return 2*t+C()}function D(t,e,n){var i=m(t),r=v(t),a=I(e),o=T(n),s=k(e),l=M(n);i.scrollLeft=a,i.scrollTop=o,r.scrollLeft=s,r.scrollTop=l}function E(){var t=r(s).container;if(!t){t=document.createElement("div"),t.className=l,t.style.cssText=u(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),r(s).container=t,f(t),s.appendChild(t);var e=function(){r(s).onRendered&&r(s).onRendered()};p(t,"animationstart",e),r(s).onAnimationStart=e}return t}function L(){function n(){var n=r(s).style;if("static"===n.position){s.style.setProperty("position","relative",t.important?"important":"");var i=function(t,e,n,i){function r(t){return t.replace(/[^-\d\.]/g,"")}var a=n[i];"auto"!==a&&"0"!==r(a)&&(t.warn("An element that is positioned static has style."+i+"="+a+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",e),e.style[i]=0)};i(e,s,n,"top"),i(e,s,n,"right"),i(e,s,n,"bottom"),i(e,s,n,"left")}}function i(t,e,n,i){return t=t?t+"px":"0",e=e?e+"px":"0",n=n?n+"px":"0",i=i?i+"px":"0",["left: "+t,"top: "+e,"right: "+i,"bottom: "+n]}if(h("Injecting elements"),r(s)){n();var a=r(s).container;a||(a=E());var c=o.width,d=o.height,f=u(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),g=u(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(i(-(1+c),-(1+d),-d,-c))),m=u(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),v=u(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),y=u(["position: absolute","left: 0","top: 0"]),x=u(["position: absolute","width: 200%","height: 200%"]),b=document.createElement("div"),_=document.createElement("div"),w=document.createElement("div"),S=document.createElement("div"),A=document.createElement("div"),C=document.createElement("div");b.dir="ltr",b.style.cssText=f,b.className=l,_.className=l,_.style.cssText=g,w.style.cssText=m,S.style.cssText=y,A.style.cssText=v,C.style.cssText=x,w.appendChild(S),A.appendChild(C),_.appendChild(w),_.appendChild(A),b.appendChild(_),a.appendChild(b),p(w,"scroll",I),p(A,"scroll",T),r(s).onExpandScroll=I,r(s).onShrinkScroll=T}else h("Aborting because element has been uninstalled");function I(){r(s).onExpand&&r(s).onExpand()}function T(){r(s).onShrink&&r(s).onShrink()}}function P(){function o(e,n,i){var r=S(e),a=I(n),o=T(i);r.style.setProperty("width",a+"px",t.important?"important":""),r.style.setProperty("height",o+"px",t.important?"important":"")}function l(i){var l=s.offsetWidth,u=s.offsetHeight,d=l!==r(s).lastWidth||u!==r(s).lastHeight;h("Storing current size",l,u),w(s,l,u),n.add(0,(function(){if(d)if(r(s))if(c()){if(t.debug){var n=s.offsetWidth,i=s.offsetHeight;n===l&&i===u||e.warn(a.get(s),"Scroll: Size changed before updating detector elements.")}o(s,l,u)}else h("Aborting because element container has not been initialized");else h("Aborting because element has been uninstalled")})),n.add(1,(function(){r(s)?c()?D(s,l,u):h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")})),d&&i&&n.add(2,(function(){r(s)?c()?i():h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")}))}function c(){return!!r(s).container}function u(){function t(){return void 0===r(s).lastNotifiedWidth}h("notifyListenersIfNeeded invoked");var e=r(s);return t()&&e.lastWidth===e.startSize.width&&e.lastHeight===e.startSize.height?h("Not notifying: Size is the same as the start size, and there has been no notification yet."):e.lastWidth===e.lastNotifiedWidth&&e.lastHeight===e.lastNotifiedHeight?h("Not notifying: Size already notified"):(h("Current size not notified, notifying..."),e.lastNotifiedWidth=e.lastWidth,e.lastNotifiedHeight=e.lastHeight,void i(r(s).listeners,(function(t){t(s)})))}function d(){if(h("startanimation triggered."),g(s))h("Ignoring since element is still unrendered...");else{h("Element rendered.");var t=m(s),e=v(s);0!==t.scrollLeft&&0!==t.scrollTop&&0!==e.scrollLeft&&0!==e.scrollTop||(h("Scrollbars out of sync. Updating detector elements..."),l(u))}}function f(){h("Scroll detected."),g(s)?h("Scroll event fired while unrendered. Ignoring..."):l(u)}if(h("registerListenersAndPositionElements invoked."),r(s)){r(s).onRendered=d,r(s).onExpand=f,r(s).onShrink=f;var p=r(s).style;o(s,p.width,p.height)}else h("Aborting because element has been uninstalled")}function O(){if(h("finalizeDomMutation invoked."),r(s)){var t=r(s).style;w(s,t.width,t.height),D(s,t.width,t.height)}else h("Aborting because element has been uninstalled")}function R(){c(s)}function N(){h("Installing..."),b(),x(),n.add(0,_),n.add(1,L),n.add(2,P),n.add(3,O),n.add(4,R)}c||(c=s,s=t,t=null),t=t||{},h("Making detectable..."),d(s)?(h("Element is detached"),E(),h("Waiting until element is attached..."),r(s).onRendered=function(){h("Element is now attached"),N()}):N()}function b(t){var e=r(t);e&&(e.onExpandScroll&&g(m(t),"scroll",e.onExpandScroll),e.onShrinkScroll&&g(v(t),"scroll",e.onShrinkScroll),e.onAnimationStart&&g(e.container,"animationstart",e.onAnimationStart),e.container&&t.removeChild(e.container))}return c(window.document),{makeDetectable:x,addListener:y,uninstall:b,initDocument:c}}},c965:function(t,e,n){var i=n("2306"),r=n("a15a"),a=r.createSymbol,o=n("392f"),s=4,l=i.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(t,e){var n=e.points,i=e.size,r=this.symbolProxy,a=r.shape,o=t.getContext?t.getContext():t,l=o&&i[0]<s;if(!l)for(var c=0;c<n.length;){var u=n[c++],h=n[c++];isNaN(u)||isNaN(h)||(this.softClipShape&&!this.softClipShape.contain(u,h)||(a.x=u-i[0]/2,a.y=h-i[1]/2,a.width=i[0],a.height=i[1],r.buildPath(t,a,!0)))}},afterBrush:function(t){var e=this.shape,n=e.points,i=e.size,r=i[0]<s;if(r){this.setTransform(t);for(var a=0;a<n.length;){var o=n[a++],l=n[a++];isNaN(o)||isNaN(l)||(this.softClipShape&&!this.softClipShape.contain(o,l)||t.fillRect(o-i[0]/2,l-i[1]/2,i[0],i[1]))}this.restoreTransform(t)}},findDataIndex:function(t,e){for(var n=this.shape,i=n.points,r=n.size,a=Math.max(r[0],4),o=Math.max(r[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,c=i[l]-a/2,u=i[l+1]-o/2;if(t>=c&&e>=u&&t<=c+a&&e<=u+o)return s}return-1}});function c(){this.group=new i.Group}var u=c.prototype;u.isPersistent=function(){return!this._incremental},u.updateData=function(t,e){this.group.removeAll();var n=new l({rectHover:!0,cursor:"default"});n.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(n,t,!1,e),this.group.add(n),this._incremental=null},u.updateLayout=function(t){if(!this._incremental){var e=t.getLayout("symbolPoints");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e)}))}},u.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new o({silent:!0})),this.group.add(this._incremental)):this._incremental=null},u.incrementalUpdate=function(t,e,n){var i;this._incremental?(i=new l,this._incremental.addDisplayable(i,!0)):(i=new l({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end}),i.incremental=!0,this.group.add(i)),i.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(i,e,!!this._incremental,n)},u._setCommon=function(t,e,n,i){var r=e.hostModel;i=i||{};var o=e.getVisual("symbolSize");t.setShape("size",o instanceof Array?o:[o,o]),t.softClipShape=i.clipShape||null,t.symbolProxy=a(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var l=t.shape.size[0]<s;t.useStyle(r.getModel("itemStyle").getItemStyle(l?["color","shadowBlur","shadowColor"]:["color"]));var c=e.getVisual("color");c&&t.setColor(c),n||(t.seriesIndex=r.seriesIndex,t.on("mousemove",(function(e){t.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>=0&&(t.dataIndex=n+(t.startIndex||0))})))},u.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},u._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var h=c;t.exports=h},ca29:function(t,e,n){var i=n("6d9a"),r=i.eachAfter,a=i.eachBefore,o=n("22da"),s=o.init,l=o.firstWalk,c=o.secondWalk,u=o.separation,h=o.radialCoordinate,d=o.getViewRect;function f(t,e){t.eachSeriesByType("tree",(function(t){p(t,e)}))}function p(t,e){var n=d(t,e);t.layoutInfo=n;var i=t.get("layout"),o=0,f=0,p=null;"radial"===i?(o=2*Math.PI,f=Math.min(n.height,n.width)/2,p=u((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(o=n.width,f=n.height,p=u());var g=t.getData().tree.root,m=g.children[0];if(m){s(g),r(m,l,p),g.hierNode.modifier=-m.hierNode.prelim,a(m,c);var v=m,y=m,x=m;a(m,(function(t){var e=t.getLayout().x;e<v.getLayout().x&&(v=t),e>y.getLayout().x&&(y=t),t.depth>x.depth&&(x=t)}));var b=v===y?1:p(v,y)/2,_=b-v.getLayout().x,w=0,S=0,A=0,C=0;if("radial"===i)w=o/(y.getLayout().x+b+_),S=f/(x.depth-1||1),a(m,(function(t){A=(t.getLayout().x+_)*w,C=(t.depth-1)*S;var e=h(A,C);t.setLayout({x:e.x,y:e.y,rawX:A,rawY:C},!0)}));else{var I=t.getOrient();"RL"===I||"LR"===I?(S=f/(y.getLayout().x+b+_),w=o/(x.depth-1||1),a(m,(function(t){C=(t.getLayout().x+_)*S,A="LR"===I?(t.depth-1)*w:o-(t.depth-1)*w,t.setLayout({x:A,y:C},!0)}))):"TB"!==I&&"BT"!==I||(w=o/(y.getLayout().x+b+_),S=f/(x.depth-1||1),a(m,(function(t){A=(t.getLayout().x+_)*w,C="TB"===I?(t.depth-1)*S:f-(t.depth-1)*S,t.setLayout({x:A,y:C},!0)})))}}}t.exports=f},ca98:function(t,e,n){var i=n("6d8b"),r=n("e0d3"),a=n("6cb7"),o=i.each,s=i.clone,l=i.map,c=i.merge,u=/^(min|max)?(.+)$/;function h(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function d(t,e,n){var r,a,s=[],l=[],c=t.timeline;if(t.baseOption&&(a=t.baseOption),(c||t.options)&&(a=a||{},s=(t.options||[]).slice()),t.media){a=a||{};var u=t.media;o(u,(function(t){t&&t.option&&(t.query?l.push(t):r||(r=t))}))}return a||(a=t),a.timeline||(a.timeline=c),o([a].concat(s).concat(i.map(l,(function(t){return t.option}))),(function(t){o(e,(function(e){e(t,n)}))})),{baseOption:a,timelineOptions:s,mediaDefault:r,mediaList:l}}function f(t,e,n){var r={width:e,height:n,aspectratio:e/n},a=!0;return i.each(t,(function(t,e){var n=e.match(u);if(n&&n[1]&&n[2]){var i=n[1],o=n[2].toLowerCase();p(r[o],t,i)||(a=!1)}})),a}function p(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e}function g(t,e){return t.join(",")===e.join(",")}function m(t,e){e=e||{},o(e,(function(e,n){if(null!=e){var i=t[n];if(a.hasClass(n)){e=r.normalizeToArray(e),i=r.normalizeToArray(i);var o=r.mappingToExists(i,e);t[n]=l(o,(function(t){return t.option&&t.exist?c(t.exist,t.option,!0):t.exist||t.option}))}else t[n]=c(i,e,!0)}}))}h.prototype={constructor:h,setOption:function(t,e){t&&i.each(r.normalizeToArray(t.series),(function(t){t&&t.data&&i.isTypedArray(t.data)&&i.setAsPrimitive(t.data)})),t=s(t);var n=this._optionBackup,a=d.call(this,t,e,!n);this._newBaseOption=a.baseOption,n?(m(n.baseOption,a.baseOption),a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=l(e.timelineOptions,s),this._mediaList=l(e.mediaList,s),this._mediaDefault=s(e.mediaDefault),this._currentMediaIndices=[],s(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=s(n[i.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,r=this._mediaDefault,a=[],o=[];if(!i.length&&!r)return o;for(var c=0,u=i.length;c<u;c++)f(i[c].query,e,n)&&a.push(c);return!a.length&&r&&(a=[-1]),a.length&&!g(a,this._currentMediaIndices)&&(o=l(a,(function(t){return s(-1===t?r.option:i[t].option)}))),this._currentMediaIndices=a,o}};var v=h;t.exports=v},cb11:function(t,e,n){var i=n("cbe5"),r=n("9cf9"),a=r.subPixelOptimizeLine,o={},s=i.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n,i,r,s;this.subPixelOptimize?(a(o,e,this.style),n=o.x1,i=o.y1,r=o.x2,s=o.y2):(n=e.x1,i=e.y1,r=e.x2,s=e.y2);var l=e.percent;0!==l&&(t.moveTo(n,i),l<1&&(r=n*(1-l)+r*l,s=i*(1-l)+s*l),t.lineTo(r,s))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}});t.exports=s},cb69:function(t,e,n){var i=n("3301"),r=n("4f85"),a=r.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(t,e){return i(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});t.exports=a},cb6d:function(t,e){function n(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}function i(t,e){return{target:t,topTarget:e&&e.topTarget}}n.prototype={constructor:n,_dragStart:function(t){var e=t.target;while(e&&!e.draggable)e=e.parent;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.dispatchToElement(i(e,t),"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,r=t.offsetY,a=n-this._x,o=r-this._y;this._x=n,this._y=r,e.drift(a,o,t),this.dispatchToElement(i(e,t),"drag",t.event);var s=this.findHover(n,r,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.dispatchToElement(i(l,t),"dragleave",t.event),s&&s!==l&&this.dispatchToElement(i(s,t),"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(i(e,t),"dragend",t.event),this._dropTarget&&this.dispatchToElement(i(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null}};var r=n;t.exports=r},cb73:function(t,e,n){var i=n("3842"),r=i.parsePercent,a=n("6d8b"),o=Math.PI/180;function s(t,e,n,i){e.eachSeriesByType(t,(function(t){var e=t.get("center"),i=t.get("radius");a.isArray(i)||(i=[0,i]),a.isArray(e)||(e=[e,e]);var s=n.getWidth(),c=n.getHeight(),u=Math.min(s,c),h=r(e[0],s),d=r(e[1],c),f=r(i[0],u/2),p=r(i[1],u/2),g=-t.get("startAngle")*o,m=t.get("minAngle")*o,v=t.getData().tree.root,y=t.getViewRoot(),x=y.depth,b=t.get("sort");null!=b&&l(y,b);var _=0;a.each(y.children,(function(t){!isNaN(t.getValue())&&_++}));var w=y.getValue(),S=Math.PI/(w||_)*2,A=y.depth>0,C=y.height-(A?-1:1),I=(p-f)/(C||1),T=t.get("clockwise"),k=t.get("stillShowZeroSum"),M=T?1:-1,D=function(t,e){if(t){var n=e;if(t!==v){var i=t.getValue(),o=0===w&&k?S:i*S;o<m&&(o=m),n=e+M*o;var s=t.depth-x-(A?-1:1),l=f+I*s,c=f+I*(s+1),p=t.getModel();null!=p.get("r0")&&(l=r(p.get("r0"),u/2)),null!=p.get("r")&&(c=r(p.get("r"),u/2)),t.setLayout({angle:o,startAngle:e,endAngle:n,clockwise:T,cx:h,cy:d,r0:l,r:c})}if(t.children&&t.children.length){var g=0;a.each(t.children,(function(t){g+=D(t,e+g)}))}return n-e}};if(A){var E=f,L=f+I,P=2*Math.PI;v.setLayout({angle:P,startAngle:g,endAngle:g+P,clockwise:T,cx:h,cy:d,r0:E,r:L})}D(y,g)}))}function l(t,e){var n=t.children||[];t.children=c(n,e),n.length&&a.each(t.children,(function(t){l(t,e)}))}function c(t,e){if("function"===typeof e)return t.sort(e);var n="asc"===e;return t.sort((function(t,e){var i=(t.getValue()-e.getValue())*(n?1:-1);return 0===i?(t.dataIndex-e.dataIndex)*(n?-1:1):i}))}t.exports=s},cb8f:function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=n("cd33"),o=n("eb6b");n("48ac"),n("d4b1"),n("4a9d"),i.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!r.isArray(e)&&(t.axisPointer.link=[e])}})),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=a.collect(t,e)})),i.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},o)},cbb0:function(t,e,n){var i=n("6d8b"),r=n("f934"),a=r.getLayoutRect;function o(t,e,n){var i=t.option,r=i.align;if(null!=r&&"auto"!==r)return r;for(var o={width:e.getWidth(),height:e.getHeight()},s="horizontal"===i.orient?1:0,l=[["left","right","width"],["top","bottom","height"]],c=l[s],u=[0,null,10],h={},d=0;d<3;d++)h[l[1-s][d]]=u[d],h[c[d]]=2===d?n[0]:i[c[d]];var f=[["x","width",3],["y","height",0]][s],p=a(h,o,i.padding);return c[(p.margin[f[2]]||0)+p[f[0]]+.5*p[f[1]]<.5*o[f[1]]?0:1]}function s(t,e){return i.each(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}e.getItemAlign=o,e.makeHighDownBatch=s},cbe5:function(t,e,n){var i=n("19eb"),r=n("6d8b"),a=n("20c8"),o=n("d833"),s=n("dc2f"),l=s.prototype.getCanvasPattern,c=Math.abs,u=new a(!0);function h(t){i.call(this,t),this.path=null}h.prototype={constructor:h,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(t,e){var n,i=this.style,r=this.path||u,a=i.hasStroke(),o=i.hasFill(),s=i.fill,c=i.stroke,h=o&&!!s.colorStops,d=a&&!!c.colorStops,f=o&&!!s.image,p=a&&!!c.image;(i.bind(t,this,e),this.setTransform(t),this.__dirty)&&(h&&(n=n||this.getBoundingRect(),this._fillGradient=i.getGradient(t,s,n)),d&&(n=n||this.getBoundingRect(),this._strokeGradient=i.getGradient(t,c,n)));h?t.fillStyle=this._fillGradient:f&&(t.fillStyle=l.call(s,t)),d?t.strokeStyle=this._strokeGradient:p&&(t.strokeStyle=l.call(c,t));var g=i.lineDash,m=i.lineDashOffset,v=!!t.setLineDash,y=this.getGlobalScale();if(r.setScale(y[0],y[1],this.segmentIgnoreThreshold),this.__dirtyPath||g&&!v&&a?(r.beginPath(t),g&&!v&&(r.setLineDash(g),r.setLineDashOffset(m)),this.buildPath(r,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),o)if(null!=i.fillOpacity){var x=t.globalAlpha;t.globalAlpha=i.fillOpacity*i.opacity,r.fill(t),t.globalAlpha=x}else r.fill(t);if(g&&v&&(t.setLineDash(g),t.lineDashOffset=m),a)if(null!=i.strokeOpacity){x=t.globalAlpha;t.globalAlpha=i.strokeOpacity*i.opacity,r.stroke(t),t.globalAlpha=x}else r.stroke(t);g&&v&&t.setLineDash([]),null!=i.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))},buildPath:function(t,e,n){},createPathProxy:function(){this.path=new a},getBoundingRect:function(){var t=this._rect,e=this.style,n=!t;if(n){var i=this.path;i||(i=this.path=new a),this.__dirtyPath&&(i.beginPath(),this.buildPath(i,this.shape,!1)),t=i.getBoundingRect()}if(this._rect=t,e.hasStroke()){var r=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||n){r.copy(t);var o=e.lineWidth,s=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(o=Math.max(o,this.strokeContainThreshold||4)),s>1e-10&&(r.width+=o/s,r.height+=o/s,r.x-=o/s/2,r.y-=o/s/2)}return r}return t},contain:function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var a=this.path.data;if(r.hasStroke()){var s=r.lineWidth,l=r.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(r.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),o.containStroke(a,s/l,t,e)))return!0}if(r.hasFill())return o.contain(a,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):i.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var n=this.shape;if(n){if(r.isObject(t))for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);else n[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&c(t[0]-1)>1e-10&&c(t[3]-1)>1e-10?Math.sqrt(c(t[0]*t[3]-t[2]*t[1])):1}},h.extend=function(t){var e=function(e){h.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var n=t.shape;if(n){this.shape=this.shape||{};var i=this.shape;for(var r in n)!i.hasOwnProperty(r)&&n.hasOwnProperty(r)&&(i[r]=n[r])}t.init&&t.init.call(this,e)};for(var n in r.inherits(e,h),t)"style"!==n&&"shape"!==n&&(e.prototype[n]=t[n]);return e},r.inherits(h,i);var d=h;t.exports=d},cbe9:function(t,e,n){var i=n("6d8b"),r=n("9850"),a=n("cf7e");function o(t){a.call(this,t)}o.prototype={constructor:o,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},dataToPoint:function(t,e,n){var i=this.getAxis("x"),r=this.getAxis("y");return n=n||[],n[0]=i.toGlobalCoord(i.dataToCoord(t[0])),n[1]=r.toGlobalCoord(r.dataToCoord(t[1])),n},clampData:function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),a=i.getExtent(),o=n.parse(t[0]),s=i.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(r[0],r[1]),o),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),e},pointToData:function(t,e){var n=this.getAxis("x"),i=this.getAxis("y");return e=e||[],e[0]=n.coordToData(n.toLocalCoord(t[0])),e[1]=i.coordToData(i.toLocalCoord(t[1])),e},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")},getArea:function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(e[0],e[1]),a=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-i,s=new r(n,i,a,o);return s}},i.inherits(o,a);var s=o;t.exports=s},cc39:function(t,e,n){var i=n("6d8b"),r=n("3842"),a=n("50e5"),o=n("ef6a"),s=i.each,l=r.asc,c=function(t,e,n,i){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=i,this._dataZoomModel=n};function u(t,e,n){var i=[1/0,-1/0];return s(n,(function(t){var n=t.getData();n&&s(n.mapDimension(e,!0),(function(t){var e=n.getApproximateExtent(t);e[0]<i[0]&&(i[0]=e[0]),e[1]>i[1]&&(i[1]=e[1])}))})),i[1]<i[0]&&(i=[NaN,NaN]),h(t,i),i}function h(t,e){var n=t.getAxisModel(),i=n.getMin(!0),r="category"===n.get("type"),a=r&&n.getCategories().length;null!=i&&"dataMin"!==i&&"function"!==typeof i?e[0]=i:r&&(e[0]=a>0?0:NaN);var o=n.getMax(!0);return null!=o&&"dataMax"!==o&&"function"!==typeof o?e[1]=o:r&&(e[1]=a>0?a-1:NaN),n.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0)),e}function d(t,e){var n=t.getAxisModel(),i=t._percentWindow,a=t._valueWindow;if(i){var o=r.getPixelPrecision(a,[0,500]);o=Math.min(o,20);var s=e||0===i[0]&&100===i[1];n.setRange(s?null:+a[0].toFixed(o),s?null:+a[1].toFixed(o))}}function f(t){var e=t._minMaxSpan={},n=t._dataZoomModel,i=t._dataExtent;s(["min","max"],(function(a){var o=n.get(a+"Span"),s=n.get(a+"ValueSpan");null!=s&&(s=t.getAxisModel().axis.scale.parse(s)),null!=s?o=r.linearMap(i[0]+s,i,[0,100],!0):null!=o&&(s=r.linearMap(o,[0,100],i,!0)-i[0]),e[a+"Span"]=o,e[a+"ValueSpan"]=s}))}c.prototype={constructor:c,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this.ecModel;return e.eachSeries((function(n){if(a.isCoordSupported(n.get("coordinateSystem"))){var i=this._dimName,r=e.queryComponents({mainType:i+"Axis",index:n.get(i+"AxisIndex"),id:n.get(i+"AxisId")})[0];this._axisIndex===(r&&r.componentIndex)&&t.push(n)}}),this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,n,i=this._dimName,r=this.ecModel,a=this.getAxisModel(),o="x"===i||"y"===i;return o?(e="gridIndex",t="x"===i?"y":"x"):(e="polarIndex",t="angle"===i?"radius":"angle"),r.eachComponent(t+"Axis",(function(t){(t.get(e)||0)===(a.get(e)||0)&&(n=t)})),n},getMinMaxSpan:function(){return i.clone(this._minMaxSpan)},calculateDataWindow:function(t){var e,n=this._dataExtent,i=this.getAxisModel(),a=i.axis.scale,c=this._dataZoomModel.getRangePropMode(),u=[0,100],h=[],d=[];s(["start","end"],(function(i,o){var s=t[i],l=t[i+"Value"];"percent"===c[o]?(null==s&&(s=u[o]),l=a.parse(r.linearMap(s,u,n))):(e=!0,l=null==l?n[o]:a.parse(l),s=r.linearMap(l,n,u)),d[o]=l,h[o]=s})),l(d),l(h);var f=this._minMaxSpan;function p(t,e,n,i,s){var l=s?"Span":"ValueSpan";o(0,t,n,"all",f["min"+l],f["max"+l]);for(var c=0;c<2;c++)e[c]=r.linearMap(t[c],n,i,!0),s&&(e[c]=a.parse(e[c]))}return e?p(d,h,n,u,!1):p(h,d,u,n,!0),{valueWindow:d,percentWindow:h}},reset:function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=u(this,this._dimName,e),f(this);var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,d(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,d(this,!0))},filterData:function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),a=this._valueWindow;"none"!==r&&s(i,(function(t){var e=t.getData(),i=e.mapDimension(n,!0);i.length&&("weakFilter"===r?e.filterSelf((function(t){for(var n,r,o,s=0;s<i.length;s++){var l=e.get(i[s],t),c=!isNaN(l),u=l<a[0],h=l>a[1];if(c&&!u&&!h)return!0;c&&(o=!0),u&&(n=!0),h&&(r=!0)}return o&&n&&r})):s(i,(function(n){if("empty"===r)t.setData(e=e.map(n,(function(t){return o(t)?t:NaN})));else{var i={};i[n]=a,e.selectRange(i)}})),s(i,(function(t){e.setApproximateExtent(a,t)})))}))}function o(t){return t>=a[0]&&t<=a[1]}}};var p=c;t.exports=p},cccd:function(t,e,n){var i=n("e0d3"),r=i.makeInner;function a(){var t=r();return function(e){var n=t(e),i=e.pipelineContext,r=n.large,a=n.progressiveRender,o=n.large=i&&i.large,s=n.progressiveRender=i&&i.progressiveRender;return!!(r^o||a^s)&&"reset"}}t.exports=a},cd12:function(t,e,n){n("01ed"),n("4a9d"),n("cb8f")},cd33:function(t,e,n){var i=n("6d8b"),r=n("4319"),a=i.each,o=i.curry;function s(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return l(n,t,e),n.seriesInvolved&&u(n,t),n}function l(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),s=r.get("link",!0)||[],l=[];a(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var u=v(n.model),d=t.coordSysAxesInfo[u]={};t.coordSysMap[u]=n;var f=n.model,p=f.getModel("tooltip",i);if(a(n.getAxes(),o(b,!1,null)),n.getTooltipAxes&&i&&p.get("show")){var g="axis"===p.get("trigger"),y="cross"===p.get("axisPointer.type"),x=n.getTooltipAxes(p.get("axisPointer.axis"));(g||y)&&a(x.baseAxes,o(b,!y||"cross",g)),y&&a(x.otherAxes,o(b,"cross",!1))}}function b(i,a,o){var u=o.model.getModel("axisPointer",r),f=u.get("show");if(f&&("auto"!==f||i||m(u))){null==a&&(a=u.get("triggerTooltip")),u=i?c(o,p,r,e,i,a):u;var g=u.get("snap"),y=v(o.model),x=a||g||"category"===o.type,b=t.axesInfo[y]={key:y,axis:o,coordSys:n,axisPointerModel:u,triggerTooltip:a,involveSeries:x,snap:g,useHandle:m(u),seriesModels:[]};d[y]=b,t.seriesInvolved|=x;var _=h(s,o);if(null!=_){var w=l[_]||(l[_]={axesInfo:{}});w.axesInfo[y]=b,w.mapper=s[_].mapper,b.linkGroup=w}}}}))}function c(t,e,n,o,s,l){var c=e.getModel("axisPointer"),u={};a(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){u[t]=i.clone(c.get(t))})),u.snap="category"!==t.type&&!!l,"cross"===c.get("type")&&(u.type="line");var h=u.label||(u.label={});if(null==h.show&&(h.show=!1),"cross"===s){var d=c.get("label.show");if(h.show=null==d||d,!l){var f=u.lineStyle=c.get("crossStyle");f&&i.defaults(h,f.textStyle)}}return t.model.getModel("axisPointer",new r(u,n,o))}function u(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,i=e.get("tooltip.trigger",!0),r=e.get("tooltip.show",!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==e.get("axisPointer.show",!0)&&a(t.coordSysAxesInfo[v(n.model)],(function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}),this)}function h(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var a=t[r]||{};if(d(a[i+"AxisId"],n.id)||d(a[i+"AxisIndex"],n.componentIndex)||d(a[i+"AxisName"],n.name))return r}}function d(t,e){return"all"===t||i.isArray(t)&&i.indexOf(t,e)>=0||t===e}function f(t){var e=p(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,a=n.get("status"),o=n.get("value");null!=o&&(o=i.parse(o));var s=m(n);null==a&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),r.value=o,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function p(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[v(t)]}function g(t){var e=p(t);return e&&e.axisPointerModel}function m(t){return!!t.get("handle.show")}function v(t){return t.type+"||"+t.id}e.collect=s,e.fixValue=f,e.getAxisInfo=p,e.getAxisPointerModel=g,e.makeKey=v},cd84:function(t,e,n){var i=n("6d8b"),r=256;function a(){var t=i.createCanvas();this.canvas=t,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}a.prototype={update:function(t,e,n,i,a,o){var s=this._getBrush(),l=this._getGradient(t,a,"inRange"),c=this._getGradient(t,a,"outOfRange"),u=this.pointSize+this.blurSize,h=this.canvas,d=h.getContext("2d"),f=t.length;h.width=e,h.height=n;for(var p=0;p<f;++p){var g=t[p],m=g[0],v=g[1],y=g[2],x=i(y);d.globalAlpha=x,d.drawImage(s,m-u,v-u)}if(!h.width||!h.height)return h;var b=d.getImageData(0,0,h.width,h.height),_=b.data,w=0,S=_.length,A=this.minOpacity,C=this.maxOpacity,I=C-A;while(w<S){x=_[w+3]/256;var T=4*Math.floor(x*(r-1));if(x>0){var k=o(x)?l:c;x>0&&(x=x*I+A),_[w++]=k[T],_[w++]=k[T+1],_[w++]=k[T+2],_[w++]=k[T+3]*x*256}else w+=4}return d.putImageData(b,0,0),h},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=i.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var r=t.getContext("2d");return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-e,e,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),t},_getGradient:function(t,e,n){for(var i=this._gradientPixels,r=i[n]||(i[n]=new Uint8ClampedArray(1024)),a=[0,0,0,0],o=0,s=0;s<256;s++)e[n](s/255,!0,a),r[o++]=a[0],r[o++]=a[1],r[o++]=a[2],r[o++]=a[3];return r}};var o=a;t.exports=o},cdaa:function(t,e,n){var i=n("607d"),r=i.addEventListener,a=i.removeEventListener,o=i.normalizeEvent,s=i.getNativeEvent,l=n("6d8b"),c=n("1fab"),u=n("22d1"),h=300,d=u.domSupported,f=function(){var t=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=l.map(t,(function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t}));return{mouse:t,touch:e,pointer:i}}(),p={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function g(t){return"mousewheel"===t&&u.browser.firefox?"DOMMouseScroll":t}function m(t){var e=t.pointerType;return"pen"===e||"touch"===e}function v(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}function y(t){t&&(t.zrByTouch=!0)}function x(t,e){return o(t.dom,new _(t,e),!0)}function b(t,e){var n=e,i=!1;while(n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot))n=n.parentNode;return i}function _(t,e){this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}var w=_.prototype;w.stopPropagation=w.stopImmediatePropagation=w.preventDefault=l.noop;var S={mousedown:function(t){t=o(this.dom,t),this._mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=o(this.dom,t);var e=this._mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||M(this,!0),this.trigger("mousemove",t)},mouseup:function(t){t=o(this.dom,t),M(this,!1),this.trigger("mouseup",t)},mouseout:function(t){t=o(this.dom,t),this._pointerCapturing&&(t.zrEventControl="no_globalout");var e=t.toElement||t.relatedTarget;t.zrIsToLocalDOM=b(this,e),this.trigger("mouseout",t)},touchstart:function(t){t=o(this.dom,t),y(t),this._lastTouchMoment=new Date,this.handler.processGesture(t,"start"),S.mousemove.call(this,t),S.mousedown.call(this,t)},touchmove:function(t){t=o(this.dom,t),y(t),this.handler.processGesture(t,"change"),S.mousemove.call(this,t)},touchend:function(t){t=o(this.dom,t),y(t),this.handler.processGesture(t,"end"),S.mouseup.call(this,t),+new Date-this._lastTouchMoment<h&&S.click.call(this,t)},pointerdown:function(t){S.mousedown.call(this,t)},pointermove:function(t){m(t)||S.mousemove.call(this,t)},pointerup:function(t){S.mouseup.call(this,t)},pointerout:function(t){m(t)||S.mouseout.call(this,t)}};l.each(["click","mousewheel","dblclick","contextmenu"],(function(t){S[t]=function(e){e=o(this.dom,e),this.trigger(t,e)}}));var A={pointermove:function(t){m(t)||A.mousemove.call(this,t)},pointerup:function(t){A.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this._pointerCapturing;M(this,!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function C(t,e){var n=e.domHandlers;u.pointerEventsSupported?l.each(f.pointer,(function(i){T(e,i,(function(e){n[i].call(t,e)}))})):(u.touchEventsSupported&&l.each(f.touch,(function(i){T(e,i,(function(r){n[i].call(t,r),v(e)}))})),l.each(f.mouse,(function(i){T(e,i,(function(r){r=s(r),e.touching||n[i].call(t,r)}))})))}function I(t,e){function n(n){function i(i){i=s(i),b(t,i.target)||(i=x(t,i),e.domHandlers[n].call(t,i))}T(e,n,i,{capture:!0})}u.pointerEventsSupported?l.each(p.pointer,n):u.touchEventsSupported||l.each(p.mouse,n)}function T(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,r(t.domTarget,g(e),n,i)}function k(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&a(t.domTarget,g(n),e[n],t.listenerOpts[n]);t.mounted={}}function M(t,e){if(t._mayPointerCapture=null,d&&t._pointerCapturing^e){t._pointerCapturing=e;var n=t._globalHandlerScope;e?I(t,n):k(n)}}function D(t,e){this.domTarget=t,this.domHandlers=e,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function E(t,e){c.call(this),this.dom=t,this.painterRoot=e,this._localHandlerScope=new D(t,S),d&&(this._globalHandlerScope=new D(document,A)),this._pointerCapturing=!1,this._mayPointerCapture=null,C(this,this._localHandlerScope)}var L=E.prototype;L.dispose=function(){k(this._localHandlerScope),d&&k(this._globalHandlerScope)},L.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},l.mixin(E,c);var P=E;t.exports=P},cee1:function(t,e,n){var i=n("6d8b");function r(t){var e={};t.eachSeriesByType("map",(function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!e[r]){var a={};i.each(n.seriesGroup,(function(e){var n=e.coordinateSystem,i=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&i.each(i.mapDimension("value"),(function(t,e){var r=i.getName(e),o=n.getRegion(r);if(o&&!isNaN(t)){var s=a[r]||0,l=n.dataToPoint(o.center);a[r]=s+1,i.setItemLayout(e,{point:l,offset:s})}}))}));var o=n.getData();o.each((function(t){var e=o.getName(t),n=o.getItemLayout(t)||{};n.showLabel=!a[e],o.setItemLayout(t,n)})),e[r]=!0}}))}t.exports=r},cf7e:function(t,e,n){var i=n("6d8b");function r(t){return this._axes[t]}var a=function(t){this._axes={},this._dimList=[],this.name=t||""};a.prototype={constructor:a,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return i.map(this._dimList,r,this)},getAxesByScale:function(t){return t=t.toLowerCase(),i.filter(this.getAxes(),(function(e){return e.scale.type===t}))},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var n=this._dimList,i=t instanceof Array?[]:{},r=0;r<n.length;r++){var a=n[r],o=this._axes[a];i[a]=o[e](t[a])}return i}};var o=a;t.exports=o},d01c:function(t,e,n){var i=n("4f85"),r=n("237f"),a=n("eda2"),o=a.encodeHTML,s=n("4319"),l=n("4e08"),c=(l.__DEV__,i.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(t,e){for(var n=t.edges||t.links,i=t.data||t.nodes,a=t.levels,o=this.levelModels={},l=0;l<a.length;l++)null!=a[l].depth&&a[l].depth>=0&&(o[a[l].depth]=new s(a[l],this,e));if(i&&n){var c=r(i,n,this,!0,u);return c.data}function u(t,e){t.wrapMethod("getItemModel",(function(t,e){return t.customizeGetParent((function(t){var n=this.parentModel,i=n.getData().getItemLayout(e).depth,r=n.levelModels[i];return r||this.parentModel})),t})),e.wrapMethod("getItemModel",(function(t,e){return t.customizeGetParent((function(t){var n=this.parentModel,i=n.getGraph().getEdgeByIndex(e),r=i.node1.getLayout().depth,a=n.levelModels[r];return a||this.parentModel})),t}))}},setNodePosition:function(t,e){var n=this.option.data[t];n.localX=e[0],n.localY=e[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(t,e,n){if("edge"===n){var i=this.getDataParams(t,n),r=i.data,a=r.source+" -- "+r.target;return i.value&&(a+=" : "+i.value),o(a)}if("node"===n){var s=this.getGraph().getNodeByIndex(t),l=s.getLayout().value,u=this.getDataParams(t,n).data.name;if(l)a=u+" : "+l;return o(a)}return c.superCall(this,"formatTooltip",t,e)},optionUpdated:function(){var t=this.option;!0===t.focusNodeAdjacency&&(t.focusNodeAdjacency="allEdges")},getDataParams:function(t,e){var n=c.superCall(this,"getDataParams",t,e);if(null==n.value&&"node"===e){var i=this.getGraph().getNodeByIndex(t),r=i.getLayout().value;n.value=r}return n},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}})),u=c;t.exports=u},d070:function(t,e,n){var i=n("3eba"),r=n("6d8b");function a(t,e){e.update="updateView",i.registerAction(e,(function(e,n){var i={};return n.eachComponent({mainType:"geo",query:e},(function(n){n[t](e.name);var a=n.coordinateSystem;r.each(a.regions,(function(t){i[t.name]=n.isSelected(t.name)||!1}))})),{selected:i,name:e.name}}))}n("1f1a"),n("eeea"),n("7661"),n("49e8"),a("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),a("select",{type:"geoSelect",event:"geoselected"}),a("unSelect",{type:"geoUnSelect",event:"geounselected"})},d090:function(t,e,n){var i=n("6d8b"),r=n("f934"),a=n("3842"),o=n("2039"),s=864e5;function l(t,e,n){this._model=t}function c(t,e,n,i){var r=n.calendarModel,a=n.seriesModel,o=r?r.coordinateSystem:a?a.coordinateSystem:null;return o===this?o[t](i):null}l.prototype={constructor:l,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(t){t=a.parseDate(t);var e=t.getFullYear(),n=t.getMonth()+1;n=n<10?"0"+n:n;var i=t.getDate();i=i<10?"0"+i:i;var r=t.getDay();return r=Math.abs((r+7-this.getFirstDayOfWeek())%7),{y:e,m:n,d:i,day:r,time:t.getTime(),formatedDate:e+"-"+n+"-"+i,date:t}},getNextNDay:function(t,e){return e=e||0,0===e||(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e)),this.getDateInfo(t)},update:function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,a=["width","height"],o=this._model.get("cellSize").slice(),s=this._model.getBoxLayoutParams(),l="horizontal"===this._orient?[n,7]:[7,n];i.each([0,1],(function(t){h(o,t)&&(s[a[t]]=o[t]*l[t])}));var c={width:e.getWidth(),height:e.getHeight()},u=this._rect=r.getLayoutRect(s,c);function h(t,e){return null!=t[e]&&"auto"!==t[e]}i.each([0,1],(function(t){h(o,t)||(o[t]=u[a[t]]/l[t])})),this._sw=o[0],this._sh=o[1]},dataToPoint:function(t,e){i.isArray(t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),r=this._rangeInfo,a=n.formatedDate;if(e&&!(n.time>=r.start.time&&n.time<r.end.time+s))return[NaN,NaN];var o=n.day,l=this._getRangeInfo([r.start.time,a]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+l*this._sh+this._sh/2]:[this._rect.x+l*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},pointToData:function(t){var e=this.pointToDate(t);return e&&e.time},dataToRect:function(t,e){var n=this.dataToPoint(t,e);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},pointToDate:function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,i):this._getDateByWeeksAndDay(e,n-1,i)},convertToPixel:i.curry(c,"dataToPoint"),convertFromPixel:i.curry(c,"pointToData"),_initRangeOption:function(){var t=this._model.get("range"),e=t;if(i.isArray(e)&&1===e.length&&(e=e[0]),/^\d{4}$/.test(e)&&(t=[e+"-01-01",e+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(e)){var n=this.getDateInfo(e),r=n.date;r.setMonth(r.getMonth()+1);var a=this.getNextNDay(r,-1);t=[n.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(e)&&(t=[e,e]);var o=this._getRangeInfo(t);return o.start.time>o.end.time&&t.reverse(),t},_getRangeInfo:function(t){var e;t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],t[0].time>t[1].time&&(e=!0,t.reverse());var n=Math.floor(t[1].time/s)-Math.floor(t[0].time/s)+1,i=new Date(t[0].time),r=i.getDate(),a=t[1].date.getDate();i.setDate(r+n-1);var o=i.getDate();if(o!==a){var l=i.getTime()-t[1].time>0?1:-1;while((o=i.getDate())!==a&&(i.getTime()-t[1].time)*l>0)n-=l,i.setDate(o-l)}var c=Math.floor((n+t[0].day+6)/7),u=e?1-c:c-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:c,nthWeek:u,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&e<i.fweek||t===i.weeks&&e>i.lweek)return!1;var r=7*(t-1)-i.fweek+e,a=new Date(i.start.time);return a.setDate(i.start.d+r),this.getDateInfo(a)}},l.dimensions=l.prototype.dimensions,l.getDimensionsInfo=l.prototype.getDimensionsInfo,l.create=function(t,e){var n=[];return t.eachComponent("calendar",(function(i){var r=new l(i,t,e);n.push(r),i.coordinateSystem=r})),t.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])})),n},o.register("calendar",l);var u=l;t.exports=u},d15d:function(t,e,n){var i=n("6d8b"),r=i.createHashMap,a=i.each;function o(t){var e=r();t.eachSeries((function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),a={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(a)}})),e.each(s)}function s(t){a(t,(function(e,n){var i=[],r=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=o.map(a,(function(a,l,c){var u,h,d=o.get(e.stackedDimension,c);if(isNaN(d))return r;s?h=o.getRawIndex(c):u=o.get(e.stackedByDimension,c);for(var f=NaN,p=n-1;p>=0;p--){var g=t[p];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,u)),h>=0){var m=g.data.getByRawIndex(g.stackResultDimension,h);if(d>=0&&m>0||d<=0&&m<0){d+=m,f=m;break}}}return i[0]=d,i[1]=f,i}));o.hostModel.setData(l),e.data=l}))}t.exports=o},d28f:function(t,e,n){var i=n("3eba");n("84d5"),n("4650"),n("5e97");var r=n("903c"),a=n("6cb7");i.registerProcessor(i.PRIORITY.PROCESSOR.SERIES_FILTER,r),a.registerSubTypeDefaulter("legend",(function(){return"plain"}))},d2a5:function(t,e,n){var i=n("3eba");i.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},(function(){})),i.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},(function(){}))},d2cf:function(t,e,n){var i=n("6d8b"),r=n("401b"),a=n("cb6d"),o=n("1fab"),s=n("607d"),l=n("0b44"),c="silent";function u(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:h}}function h(){s.stop(this.event)}function d(){}d.prototype.dispose=function(){};var f=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],p=function(t,e,n,i){o.call(this),this.storage=t,this.painter=e,this.painterRoot=i,n=n||new d,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,a.call(this),this.setHandlerProxy(n)};function g(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){var i,r=t;while(r){if(r.clipPath&&!r.clipPath.contain(e,n))return!1;r.silent&&(i=!0),r=r.parent}return!i||c}return!1}function m(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}p.prototype={constructor:p,setHandlerProxy:function(t){this.proxy&&this.proxy.dispose(),t&&(i.each(f,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},mousemove:function(t){var e=t.zrX,n=t.zrY,i=m(this,e,n),r=this._hovered,a=r.target;a&&!a.__zr&&(r=this.findHover(r.x,r.y),a=r.target);var o=this._hovered=i?{x:e,y:n}:this.findHover(e,n),s=o.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),a&&s!==a&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(o,"mousemove",t),s&&s!==a&&this.dispatchToElement(o,"mouseover",t)},mouseout:function(t){var e=t.zrEventControl,n=t.zrIsToLocalDOM;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&!n&&this.trigger("globalout",{type:"globalout",event:t})},resize:function(t){this._hovered={}},dispatch:function(t,e){var n=this[t];n&&n.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,e,n){t=t||{};var i=t.target;if(!i||!i.silent){var r="on"+e,a=u(e,t,n);while(i)if(i[r]&&(a.cancelBubble=i[r].call(i,a)),i.trigger(e,a),i=i.parent,a.cancelBubble)break;a.cancelBubble||(this.trigger(e,a),this.painter&&this.painter.eachOtherLayer((function(t){"function"===typeof t[r]&&t[r].call(t,a),t.trigger&&t.trigger(e,a)})))}},findHover:function(t,e,n){for(var i=this.storage.getDisplayList(),r={x:t,y:e},a=i.length-1;a>=0;a--){var o;if(i[a]!==n&&!i[a].ignore&&(o=g(i[a],t,e))&&(!r.topTarget&&(r.topTarget=i[a]),o!==c)){r.target=i[a];break}}return r},processGesture:function(t,e){this._gestureMgr||(this._gestureMgr=new l);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r,this.dispatchToElement({target:i.target},r,i.event)}}},i.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){p.prototype[t]=function(e){var n,i,a=e.zrX,o=e.zrY,s=m(this,a,o);if("mouseup"===t&&s||(n=this.findHover(a,o),i=n.target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||r.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}})),i.mixin(p,o),i.mixin(p,a);var v=p;t.exports=v},d357:function(t,e,n){var i=n("6d8b"),r=i.each,a=n("1c5f"),o=a.simpleLayout,s=a.simpleLayoutEdge;function l(t,e){t.eachSeriesByType("graph",(function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var i=t.getData(),a=[];r(n.dimensions,(function(t){a=a.concat(i.mapDimension(t,!0))}));for(var l=0;l<i.count();l++){for(var c=[],u=!1,h=0;h<a.length;h++){var d=i.get(a[h],l);isNaN(d)||(u=!0),c.push(d)}u?i.setItemLayout(l,n.dataToPoint(c)):i.setItemLayout(l,[NaN,NaN])}s(i.graph)}else e&&"none"!==e||o(t)}))}t.exports=l},d3a0:function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=n("29a8"),o=n("2145"),s=a.toolbox.magicType,l="__ec_magicType_stack__";function c(t){this.model=t}c.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:r.clone(s.title),option:{},seriesIndex:{}};var u=c.prototype;u.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return r.each(t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n};var h={line:function(t,e,n,i){if("bar"===t)return r.merge({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.line")||{},!0)},bar:function(t,e,n,i){if("line"===t)return r.merge({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.bar")||{},!0)},stack:function(t,e,n,i){var a=n.get("stack")===l;if("line"===t||"bar"===t)return i.setIconStatus("stack",a?"normal":"emphasis"),r.merge({id:e,stack:a?"":l},i.get("option.stack")||{},!0)}},d=[["line","bar"],["stack"]];u.onclick=function(t,e,n){var i=this.model,a=i.get("seriesIndex."+n);if(h[n]){var o,c={series:[]},u=function(e){var a=e.subType,o=e.id,s=h[n](a,o,e,i);s&&(r.defaults(s,e.option),c.series.push(s));var l=e.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===n||"bar"===n)){var u=l.getAxesByScale("ordinal")[0];if(u){var d=u.dim,f=d+"Axis",p=t.queryComponents({mainType:f,index:e.get(name+"Index"),id:e.get(name+"Id")})[0],g=p.componentIndex;c[f]=c[f]||[];for(var m=0;m<=g;m++)c[f][g]=c[f][g]||{};c[f][g].boundaryGap="bar"===n}}};if(r.each(d,(function(t){r.indexOf(t,n)>=0&&r.each(t,(function(t){i.setIconStatus(t,"normal")}))})),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==a?null:{seriesIndex:a}},u),"stack"===n){var f=c.series&&c.series[0]&&c.series[0].stack===l;o=f?r.merge({stack:s.title.tiled},s.title):r.clone(s.title)}e.dispatchAction({type:"changeMagicType",currentType:n,newOption:c,newTitle:o,featureName:"magicType"})}},i.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)})),o.register("magicType",c);var f=c;t.exports=f},d3a4:function(t,e,n){var i,r=n("22d1"),a="urn:schemas-microsoft-com:vml",o="undefined"===typeof window?null:window,s=!1,l=o&&o.document;function c(t){return i(t)}if(l&&!r.canvasSupported)try{!l.namespaces.zrvml&&l.namespaces.add("zrvml",a),i=function(t){return l.createElement("<zrvml:"+t+' class="zrvml">')}}catch(h){i=function(t){return l.createElement("<"+t+' xmlns="'+a+'" class="zrvml">')}}function u(){if(!s&&l){s=!0;var t=l.styleSheets;t.length<31?l.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}}e.doc=l,e.createNode=c,e.initVML=u},d3f4:function(t,e){function n(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),r=0;r<n.length;r++)if(!n[r].isSelected(e))return!1;return!0}))}}}}t.exports=n},d498:function(t,e,n){var i=n("cbe5"),r=n("4fac"),a=i.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,e){r.buildPath(t,e,!1)}});t.exports=a},d4b1:function(t,e,n){var i=n("3eba"),r=n("17d6"),a=i.extendComponentView({type:"axisPointer",render:function(t,e,n){var i=e.getComponent("tooltip"),a=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";r.register("axisPointer",n,(function(t,e,n){"none"!==a&&("leave"===t||a.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},remove:function(t,e){r.unregister(e.getZr(),"axisPointer"),a.superApply(this._model,"remove",arguments)},dispose:function(t,e){r.unregister("axisPointer",e),a.superApply(this._model,"dispose",arguments)}}),o=a;t.exports=o},d4c6:function(t,e,n){var i=n("cbe5"),r=i.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,n=0;n<e.length;n++)t=t||e[n].__dirtyPath;this.__dirtyPath=t,this.__dirty=this.__dirty||t},beforeBrush:function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},buildPath:function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},afterBrush:function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),i.prototype.getBoundingRect.call(this)}});t.exports=r},d4d1:function(t,e,n){var i=n("cbe5"),r=n("401b"),a=n("897a"),o=r.min,s=r.max,l=r.scaleAndAdd,c=r.copy,u=[],h=[],d=[];function f(t){return isNaN(t[0])||isNaN(t[1])}function p(t,e,n,i,r,a,o,s,l,c,u){return"none"!==c&&c?g.apply(this,arguments):m.apply(this,arguments)}function g(t,e,n,i,r,a,o,s,l,u,p){for(var g=0,m=n,v=0;v<i;v++){var y=e[m];if(m>=r||m<0)break;if(f(y)){if(p){m+=a;continue}break}if(m===n)t[a>0?"moveTo":"lineTo"](y[0],y[1]);else if(l>0){var x=e[g],b="y"===u?1:0,_=(y[b]-x[b])*l;c(h,x),h[b]=x[b]+_,c(d,y),d[b]=y[b]-_,t.bezierCurveTo(h[0],h[1],d[0],d[1],y[0],y[1])}else t.lineTo(y[0],y[1]);g=m,m+=a}return v}function m(t,e,n,i,a,p,g,m,v,y,x){for(var b=0,_=n,w=0;w<i;w++){var S=e[_];if(_>=a||_<0)break;if(f(S)){if(x){_+=p;continue}break}if(_===n)t[p>0?"moveTo":"lineTo"](S[0],S[1]),c(h,S);else if(v>0){var A=_+p,C=e[A];if(x)while(C&&f(e[A]))A+=p,C=e[A];var I=.5,T=e[b];C=e[A];if(!C||f(C))c(d,S);else{var k,M;if(f(C)&&!x&&(C=S),r.sub(u,C,T),"x"===y||"y"===y){var D="x"===y?0:1;k=Math.abs(S[D]-T[D]),M=Math.abs(S[D]-C[D])}else k=r.dist(S,T),M=r.dist(S,C);I=M/(M+k),l(d,S,u,-v*(1-I))}o(h,h,m),s(h,h,g),o(d,d,m),s(d,d,g),t.bezierCurveTo(h[0],h[1],d[0],d[1],S[0],S[1]),l(h,S,u,v*I)}else t.lineTo(S[0],S[1]);b=_,_+=p}return w}function v(t,e){var n=[1/0,1/0],i=[-1/0,-1/0];if(e)for(var r=0;r<t.length;r++){var a=t[r];a[0]<n[0]&&(n[0]=a[0]),a[1]<n[1]&&(n[1]=a[1]),a[0]>i[0]&&(i[0]=a[0]),a[1]>i[1]&&(i[1]=a[1])}return{min:e?n:i,max:e?i:n}}var y=i.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:a(i.prototype.brush),buildPath:function(t,e){var n=e.points,i=0,r=n.length,a=v(n,e.smoothConstraint);if(e.connectNulls){for(;r>0;r--)if(!f(n[r-1]))break;for(;i<r;i++)if(!f(n[i]))break}while(i<r)i+=p(t,n,i,r,r,1,a.min,a.max,e.smooth,e.smoothMonotone,e.connectNulls)+1}}),x=i.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:a(i.prototype.brush),buildPath:function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,a=n.length,o=e.smoothMonotone,s=v(n,e.smoothConstraint),l=v(i,e.smoothConstraint);if(e.connectNulls){for(;a>0;a--)if(!f(n[a-1]))break;for(;r<a;r++)if(!f(n[r]))break}while(r<a){var c=p(t,n,r,a,a,1,s.min,s.max,e.smooth,o,e.connectNulls);p(t,i,r+c-1,c,a,-1,l.min,l.max,e.stackedOnSmooth,o,e.connectNulls),r+=c+1,t.closePath()}}});e.Polyline=y,e.Polygon=x},d51b:function(t,e){var n=function(){this.head=null,this.tail=null,this._len=0},i=n.prototype;i.insert=function(t){var e=new r(t);return this.insertEntry(e),e},i.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},i.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},i.len=function(){return this._len},i.clear=function(){this.head=this.tail=null,this._len=0};var r=function(t){this.value=t,this.next,this.prev},a=function(t){this._list=new n,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},o=a.prototype;o.put=function(t,e){var n=this._list,i=this._map,a=null;if(null==i[t]){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new r(e),s.key=t,n.insertEntry(s),i[t]=s}return a},o.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},o.clear=function(){this._list.clear(),this._map={}};var s=a;t.exports=s},d5b7:function(t,e,n){var i=n("de00"),r=n("1fab"),a=n("0cde"),o=n("bd6b"),s=n("6d8b"),l=function(t){a.call(this,t),r.call(this,t),o.call(this,t),this.id=t.id||i()};l.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,e){},attrKV:function(t,e){if("position"===t||"scale"===t||"origin"===t){if(e){var n=this[t];n||(n=this[t]=[]),n[0]=e[0],n[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"===typeof t)this.attrKV(t,e);else if(s.isObject(t))for(var n in t)t.hasOwnProperty(n)&&this.attrKV(n,t[n]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},s.mixin(l,o),s.mixin(l,a),s.mixin(l,r);var c=l;t.exports=c},d6d9:function(t,e,n){var i=n("3014"),r=i.extend({type:"series.pictorialBar",dependencies:["grid"],defaultOption:{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,hoverAnimation:!1},getInitialData:function(t){return t.stack=null,r.superApply(this,"getInitialData",arguments)}}),a=r;t.exports=a},d6eb:function(t,e,n){"use strict";var i="_erd";function r(t){return t[i]={},a(t)}function a(t){return t[i]}function o(t){delete t[i]}t.exports={initState:r,getState:a,cleanState:o}},d6ef:function(t,e,n){var i=n("3eba"),r={type:"selectDataRange",event:"dataRangeSelected",update:"update"};i.registerAction(r,(function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))}))},d716:function(t,e,n){var i=n("3eba"),r=n("6d8b");n("aa01"),n("340d"),n("44fb");var a=n("98e7"),o=n("cb73"),s=n("d3f4");i.registerVisual(r.curry(a,"sunburst")),i.registerLayout(r.curry(o,"sunburst")),i.registerProcessor(r.curry(s,"sunburst"))},d747:function(t,e,n){var i=n("3eba"),r=n("d81e"),a=r.updateCenterAndZoom;n("d2a5");var o={type:"graphRoam",event:"graphRoam",update:"none"};i.registerAction(o,(function(t,e){e.eachComponent({mainType:"series",query:t},(function(e){var n=e.coordinateSystem,i=a(n,t);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)}))}))},d81e:function(t,e){function n(t,e,n){var i=t.getZoom(),r=t.getCenter(),a=e.zoom,o=t.dataToPoint(r);if(null!=e.dx&&null!=e.dy){o[0]-=e.dx,o[1]-=e.dy;r=t.pointToData(o);t.setCenter(r)}if(null!=a){if(n){var s=n.min||0,l=n.max||1/0;a=Math.max(Math.min(i*a,l),s)/i}t.scale[0]*=a,t.scale[1]*=a;var c=t.position,u=(e.originX-c[0])*(a-1),h=(e.originY-c[1])*(a-1);c[0]-=u,c[1]-=h,t.updateTransform();r=t.pointToData(o);t.setCenter(r),t.setZoom(a*i)}return{center:t.getCenter(),zoom:t.getZoom()}}e.updateCenterAndZoom=n},d833:function(t,e,n){var i=n("20c8"),r=n("9680"),a=n("e7d2"),o=n("68ab"),s=n("9f51"),l=n("857d"),c=l.normalizeRadian,u=n("4a3f"),h=n("8728"),d=i.CMD,f=2*Math.PI,p=1e-4;function g(t,e){return Math.abs(t-e)<p}var m=[-1,-1,-1],v=[-1,-1];function y(){var t=v[0];v[0]=v[1],v[1]=t}function x(t,e,n,i,r,a,o,s,l,c){if(c>e&&c>i&&c>a&&c>s||c<e&&c<i&&c<a&&c<s)return 0;var h=u.cubicRootAt(e,i,a,s,c,m);if(0===h)return 0;for(var d,f,p=0,g=-1,x=0;x<h;x++){var b=m[x],_=0===b||1===b?.5:1,w=u.cubicAt(t,n,r,o,b);w<l||(g<0&&(g=u.cubicExtrema(e,i,a,s,v),v[1]<v[0]&&g>1&&y(),d=u.cubicAt(e,i,a,s,v[0]),g>1&&(f=u.cubicAt(e,i,a,s,v[1]))),2===g?b<v[0]?p+=d<e?_:-_:b<v[1]?p+=f<d?_:-_:p+=s<f?_:-_:b<v[0]?p+=d<e?_:-_:p+=s<d?_:-_)}return p}function b(t,e,n,i,r,a,o,s){if(s>e&&s>i&&s>a||s<e&&s<i&&s<a)return 0;var l=u.quadraticRootAt(e,i,a,s,m);if(0===l)return 0;var c=u.quadraticExtremum(e,i,a);if(c>=0&&c<=1){for(var h=0,d=u.quadraticAt(e,i,a,c),f=0;f<l;f++){var p=0===m[f]||1===m[f]?.5:1,g=u.quadraticAt(t,n,r,m[f]);g<o||(m[f]<c?h+=d<e?p:-p:h+=a<d?p:-p)}return h}p=0===m[0]||1===m[0]?.5:1,g=u.quadraticAt(t,n,r,m[0]);return g<o?0:a<e?p:-p}function _(t,e,n,i,r,a,o,s){if(s-=e,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);m[0]=-l,m[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u%f<1e-4){i=0,r=f;var h=a?1:-1;return o>=m[0]+t&&o<=m[1]+t?h:0}if(a){l=i;i=c(r),r=c(l)}else i=c(i),r=c(r);i>r&&(r+=f);for(var d=0,p=0;p<2;p++){var g=m[p];if(g+t>o){var v=Math.atan2(s,g);h=a?1:-1;v<0&&(v=f+v),(v>=i&&v<=r||v+f>=i&&v+f<=r)&&(v>Math.PI/2&&v<1.5*Math.PI&&(h=-h),d+=h)}}return d}function w(t,e,n,i,l){for(var c=0,u=0,f=0,p=0,m=0,v=0;v<t.length;){var y=t[v++];switch(y===d.M&&v>1&&(n||(c+=h(u,f,p,m,i,l))),1===v&&(u=t[v],f=t[v+1],p=u,m=f),y){case d.M:p=t[v++],m=t[v++],u=p,f=m;break;case d.L:if(n){if(r.containStroke(u,f,t[v],t[v+1],e,i,l))return!0}else c+=h(u,f,t[v],t[v+1],i,l)||0;u=t[v++],f=t[v++];break;case d.C:if(n){if(a.containStroke(u,f,t[v++],t[v++],t[v++],t[v++],t[v],t[v+1],e,i,l))return!0}else c+=x(u,f,t[v++],t[v++],t[v++],t[v++],t[v],t[v+1],i,l)||0;u=t[v++],f=t[v++];break;case d.Q:if(n){if(o.containStroke(u,f,t[v++],t[v++],t[v],t[v+1],e,i,l))return!0}else c+=b(u,f,t[v++],t[v++],t[v],t[v+1],i,l)||0;u=t[v++],f=t[v++];break;case d.A:var w=t[v++],S=t[v++],A=t[v++],C=t[v++],I=t[v++],T=t[v++];v+=1;var k=1-t[v++],M=Math.cos(I)*A+w,D=Math.sin(I)*C+S;v>1?c+=h(u,f,M,D,i,l):(p=M,m=D);var E=(i-w)*C/A+w;if(n){if(s.containStroke(w,S,C,I,I+T,k,e,E,l))return!0}else c+=_(w,S,C,I,I+T,k,E,l);u=Math.cos(I+T)*A+w,f=Math.sin(I+T)*C+S;break;case d.R:p=u=t[v++],m=f=t[v++];var L=t[v++],P=t[v++];M=p+L,D=m+P;if(n){if(r.containStroke(p,m,M,m,e,i,l)||r.containStroke(M,m,M,D,e,i,l)||r.containStroke(M,D,p,D,e,i,l)||r.containStroke(p,D,p,m,e,i,l))return!0}else c+=h(M,m,M,D,i,l),c+=h(p,D,p,m,i,l);break;case d.Z:if(n){if(r.containStroke(u,f,p,m,e,i,l))return!0}else c+=h(u,f,p,m,i,l);u=p,f=m;break}}return n||g(f,m)||(c+=h(u,f,p,m,i,l)||0),0!==c}function S(t,e,n){return w(t,0,!1,e,n)}function A(t,e,n,i){return w(t,e,!0,n,i)}e.contain=S,e.containStroke=A},d9d0:function(t,e,n){var i=n("6d8b"),r=n("1687"),a=n("f934"),o=n("697e"),s=n("0f55"),l=n("2306"),c=n("3842"),u=n("ef6a"),h=i.each,d=Math.min,f=Math.max,p=Math.floor,g=Math.ceil,m=c.round,v=Math.PI;function y(t,e,n){this._axesMap=i.createHashMap(),this._axesLayout={},this.dimensions=t.dimensions,this._rect,this._model=t,this._init(t,e,n)}function x(t,e){return d(f(t,e[0]),e[1])}function b(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function _(t,e){var n,i,r=e.layoutLength,a=e.axisExpandWidth,o=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,c=s,u=!1;return t<l[0]?(n=t*s,i=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*a-e.axisExpandWindow[0],c=a,u=!0):(n=r-(o-1-t)*s,i=s),{position:n,axisNameAvailableWidth:c,axisLabelShow:u,nameTruncateMaxWidth:i}}y.prototype={type:"parallel",constructor:y,_init:function(t,e,n){var i=t.dimensions,r=t.parallelAxisIndex;h(i,(function(t,n){var i=r[n],a=e.getComponent("parallelAxis",i),l=this._axesMap.set(t,new s(t,o.createScaleByModel(a),[0,0],a.get("type"),i)),c="category"===l.type;l.onBand=c&&a.get("boundaryGap"),l.inverse=a.get("inverse"),a.axis=l,l.model=a,l.coordinateSystem=a.coordinateSystem=this}),this)},update:function(t,e){this._updateAxesFromSeries(this._model,t)},containPoint:function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,r=e.pixelDimIndex,a=t[1-r],o=t[r];return a>=n&&a<=n+e.axisLength&&o>=i&&o<=i+e.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var i=n.getData();h(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),o.niceScaleExtent(e.scale,e.model)}),this)}}),this)},resize:function(t,e){this._rect=a.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],a=e.get("layout"),o="horizontal"===a?0:1,s=n[r[o]],l=[0,s],c=this.dimensions.length,u=x(e.get("axisExpandWidth"),l),h=x(e.get("axisExpandCount")||0,[0,c]),d=e.get("axisExpandable")&&c>3&&c>h&&h>1&&u>0&&s>0,f=e.get("axisExpandWindow");if(f)t=x(f[1]-f[0],l),f[1]=f[0]+t;else{t=x(u*(h-1),l);var v=e.get("axisExpandCenter")||p(c/2);f=[u*v-t/2],f[1]=f[0]+t}var y=(s-t)/(c-h);y<3&&(y=0);var b=[p(m(f[0]/u,1))+1,g(m(f[1]/u,1))-1],_=y/u*f[0];return{layout:a,pixelDimIndex:o,layoutBase:n[i[o]],layoutLength:s,axisBase:n[i[1-o]],axisLength:n[r[1-o]],axisExpandable:d,axisExpandWidth:u,axisCollapseWidth:y,axisExpandWindow:f,axisCount:c,winInnerIndices:b,axisExpandWindow0Pos:_}},_layoutAxes:function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;e.each((function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),h(n,(function(e,n){var o=(i.axisExpandable?_:b)(n,i),s={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},l={horizontal:v/2,vertical:0},c=[s[a].x+t.x,s[a].y+t.y],u=l[a],h=r.create();r.rotate(h,h,u),r.translate(h,h,c),this._axesLayout[e]={position:c,rotation:u,transform:h,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},getAxis:function(t){return this._axesMap.get(t)},dataToPoint:function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},eachActiveState:function(t,e,n,r){null==n&&(n=0),null==r&&(r=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];i.each(o,(function(e){s.push(t.mapDimension(e)),l.push(a.get(e).model)}));for(var c=this.hasAxisBrushed(),u=n;u<r;u++){var h;if(c){h="active";for(var d=t.getValues(s,u),f=0,p=o.length;f<p;f++){var g=l[f].getActiveState(d[f]);if("inactive"===g){h="inactive";break}}}else h="normal";e(h,u)}},hasAxisBrushed:function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,r=t.length;i<r;i++)"normal"!==e.get(t[i]).model.getActiveState()&&(n=!0);return n},axisCoordToPoint:function(t,e){var n=this._axesLayout[e];return l.applyTransform([t,0],n.transform)},getAxisLayout:function(t){return i.clone(this._axesLayout[t])},getSlidedAxisExpandWindow:function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,i=e.axisExpandWindow.slice(),r=i[1]-i[0],a=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var o,s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",c=e.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),p=null!=h[0];if(c)p&&c&&s<r*h[0]?(l="jump",o=s-r*h[2]):p&&c&&s>r*(1-h[0])?(l="jump",o=s-r*(1-h[2])):(o=s-r*h[1])>=0&&(o=s-r*(1-h[1]))<=0&&(o=0),o*=e.axisExpandWidth/c,o?u(o,i,a,"all"):l="none";else{r=i[1]-i[0];var g=a[1]*s/r;i=[f(0,g-r/2)],i[1]=d(a[1],i[0]+r),i[0]=i[1]-r}return{axisExpandWindow:i,behavior:l}}};var w=y;t.exports=w},d9f1:function(t,e,n){var i=n("6d8b"),r=n("6cb7"),a=n("9e47"),o=n("2023"),s=r.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});i.merge(s.prototype,o);var l={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function c(t,e){return e.type||(e.data?"category":"value")}a("angle",s,c,l.angle),a("radius",s,c,l.radius)},d9fc:function(t,e,n){var i=n("cbe5"),r=i.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,n){n&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}});t.exports=r},dae1:function(t,e,n){var i=n("3eba");n("928d"),n("b369"),n("4411");var r=n("90c2"),a=n("9ca8");i.registerVisual(r),i.registerLayout(a)},db0e:function(t,e,n){var i=n("3eba");n("a8c6"),n("8344"),i.registerPreprocessor((function(t){t.markPoint=t.markPoint||{}}))},db9e:function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=n("e86a"),o=n("2145"),s=n("2306"),l=n("4319"),c=n("80f0"),u=n("7919"),h=i.extendComponentView({type:"toolbox",render:function(t,e,n,i){var h=this.group;if(h.removeAll(),t.get("show")){var f=+t.get("itemSize"),p=t.get("feature")||{},g=this._features||(this._features={}),m=[];r.each(p,(function(t,e){m.push(e)})),new c(this._featureNames||[],m).add(v).update(v).remove(r.curry(v,null)).execute(),this._featureNames=m,u.layout(h,t,n),h.add(u.makeBackground(h.getBoundingRect(),t)),h.eachChild((function(t){var e=t.__title,i=t.hoverStyle;if(i&&e){var r=a.getBoundingRect(e,a.makeFont(i)),o=t.position[0]+h.position[0],s=t.position[1]+h.position[1]+f,l=!1;s+r.height>n.getHeight()&&(i.textPosition="top",l=!0);var c=l?-5-r.height:f+8;o+r.width/2>n.getWidth()?(i.textPosition=["100%",c],i.textAlign="right"):o-r.width/2<0&&(i.textPosition=[0,c],i.textAlign="left")}}))}function v(r,a){var s,c=m[r],u=m[a],h=p[c],f=new l(h,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===c&&(h.title=i.newTitle),c&&!u){if(d(c))s={model:f,onclick:f.option.onclick,featureName:c};else{var v=o.get(c);if(!v)return;s=new v(f,e,n)}g[c]=s}else{if(s=g[u],!s)return;s.model=f,s.ecModel=e,s.api=n}c||!u?f.get("show")&&!s.unusable?(y(f,s,c),f.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&i[t].trigger(e)},s.render&&s.render(f,e,n,i)):s.remove&&s.remove(e,n):s.dispose&&s.dispose(e,n)}function y(i,a,o){var l=i.getModel("iconStyle"),c=i.getModel("emphasis.iconStyle"),u=a.getIcons?a.getIcons():i.get("icon"),d=i.get("title")||{};if("string"===typeof u){var p=u,g=d;u={},d={},u[o]=p,d[o]=g}var m=i.iconPaths={};r.each(u,(function(o,u){var p=s.createIcon(o,{},{x:-f/2,y:-f/2,width:f,height:f});p.setStyle(l.getItemStyle()),p.hoverStyle=c.getItemStyle(),p.setStyle({text:d[u],textAlign:c.get("textAlign"),textBorderRadius:c.get("textBorderRadius"),textPadding:c.get("textPadding"),textFill:null});var g=t.getModel("tooltip");g&&g.get("show")&&p.attr("tooltip",r.extend({content:d[u],formatter:g.get("formatter",!0)||function(){return d[u]},formatterParams:{componentType:"toolbox",name:u,title:d[u],$vars:["name","title"]},position:g.get("position",!0)||"bottom"},g.option)),s.setHoverStyle(p),t.get("showTitle")&&(p.__title=d[u],p.on("mouseover",(function(){var e=c.getItemStyle(),n="vertical"===t.get("orient")?null==t.get("right")?"right":"left":null==t.get("bottom")?"bottom":"top";p.setStyle({textFill:c.get("textFill")||e.fill||e.stroke||"#000",textBackgroundColor:c.get("textBackgroundColor"),textPosition:c.get("textPosition")||n})})).on("mouseout",(function(){p.setStyle({textFill:null,textBackgroundColor:null})}))),p.trigger(i.get("iconStatus."+u)||"normal"),h.add(p),p.on("click",r.bind(a.onclick,a,e,n,u)),m[u]=p}))}},updateView:function(t,e,n,i){r.each(this._features,(function(t){t.updateView&&t.updateView(t.model,e,n,i)}))},remove:function(t,e){r.each(this._features,(function(n){n.remove&&n.remove(t,e)})),this.group.removeAll()},dispose:function(t,e){r.each(this._features,(function(n){n.dispose&&n.dispose(t,e)}))}});function d(t){return 0===t.indexOf("my")}t.exports=h},dc20:function(t,e,n){var i=n("8727"),r=i.createElement,a=n("6d8b"),o=n("4942"),s=n("cbe5"),l=n("0da8"),c=n("76a5"),u=n("0c12"),h=n("b16f"),d=n("9fa3"),f=n("bcaa"),p=n("3f8e"),g=p.path,m=p.image,v=p.text;function y(t){return parseInt(t,10)}function x(t){return t instanceof s?g:t instanceof l?m:t instanceof c?v:g}function b(t,e){return e&&t&&e.parentNode!==t}function _(t,e,n){if(b(t,e)&&n){var i=n.nextSibling;i?t.insertBefore(e,i):t.appendChild(e)}}function w(t,e){if(b(t,e)){var n=t.firstChild;n?t.insertBefore(e,n):t.appendChild(e)}}function S(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function A(t){return t.__textSvgEl}function C(t){return t.__svgEl}var I=function(t,e,n,i){this.root=t,this.storage=e,this._opts=n=a.extend({},n||{});var o=r("svg");o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("version","1.1"),o.setAttribute("baseProfile","full"),o.style.cssText="user-select:none;position:absolute;left:0;top:0;";var s=r("g");o.appendChild(s);var l=r("g");o.appendChild(l),this.gradientManager=new h(i,l),this.clipPathManager=new d(i,l),this.shadowManager=new f(i,l);var c=document.createElement("div");c.style.cssText="overflow:hidden;position:relative",this._svgDom=o,this._svgRoot=l,this._backgroundRoot=s,this._viewport=c,t.appendChild(c),c.appendChild(o),this.resize(n.width,n.height),this._visibleList=[]};function T(t){return function(){o('In SVG mode painter not support method "'+t+'"')}}I.prototype={constructor:I,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},setBackgroundColor:function(t){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var e=r("rect");e.setAttribute("width",this.getWidth()),e.setAttribute("height",this.getHeight()),e.setAttribute("x",0),e.setAttribute("y",0),e.setAttribute("id",0),e.style.fill=t,this._backgroundRoot.appendChild(e),this._backgroundNode=e},_paintList:function(t){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var e,n=this._svgRoot,i=this._visibleList,r=t.length,a=[];for(e=0;e<r;e++){var o=t[e],s=x(o),l=C(o)||A(o);o.invisible||(o.__dirty&&(s&&s.brush(o),this.clipPathManager.update(o),o.style&&(this.gradientManager.update(o.style.fill),this.gradientManager.update(o.style.stroke),this.shadowManager.update(l,o)),o.__dirty=!1),a.push(o))}var c,h=u(i,a);for(e=0;e<h.length;e++){var d=h[e];if(d.removed)for(var f=0;f<d.count;f++){o=i[d.indices[f]],l=C(o);var p=A(o);S(n,l),S(n,p)}}for(e=0;e<h.length;e++){d=h[e];if(d.added)for(f=0;f<d.count;f++){o=a[d.indices[f]],l=C(o),p=A(o);c?_(n,l,c):w(n,l),l?_(n,p,l):c?_(n,p,c):w(n,p),_(n,p,l),c=p||l||c,this.gradientManager.addWithoutUpdate(l||p,o),this.shadowManager.addWithoutUpdate(l||p,o),this.clipPathManager.markUsed(o)}else if(!d.removed)for(f=0;f<d.count;f++){o=a[d.indices[f]],l=C(o),p=A(o),l=C(o),p=A(o);this.gradientManager.markUsed(o),this.gradientManager.addWithoutUpdate(l||p,o),this.shadowManager.markUsed(o),this.shadowManager.addWithoutUpdate(l||p,o),this.clipPathManager.markUsed(o),p&&_(n,p,l),c=l||p||c}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=a},_getDefs:function(t){var e=this._svgDom,n=e.getElementsByTagName("defs");if(0===n.length){if(t){n=e.insertBefore(r("defs"),e.firstChild);return n.contains||(n.contains=function(t){var e=n.children;if(!e)return!1;for(var i=e.length-1;i>=0;--i)if(e[i]===t)return!0;return!1}),n}return null}return n[0]},resize:function(t,e){var n=this._viewport;n.style.display="none";var i=this._opts;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!==t||this._height!==e){this._width=t,this._height=e;var r=n.style;r.width=t+"px",r.height=e+"px";var a=this._svgDom;a.setAttribute("width",t),a.setAttribute("height",e)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",t),this._backgroundNode.setAttribute("height",e))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,n=["width","height"][t],i=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);var o=this.root,s=document.defaultView.getComputedStyle(o);return(o[i]||y(s[n])||y(o.style[n]))-(y(s[r])||0)-(y(s[a])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var t=encodeURIComponent(this._svgDom.outerHTML.replace(/></g,">\n\r<"));return"data:image/svg+xml;charset=UTF-8,"+t}},a.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],(function(t){I.prototype[t]=T(t)}));var k=I;t.exports=k},dc2f:function(t,e){var n=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};n.prototype.getCanvasPattern=function(t){return t.createPattern(this.image,this.repeat||"repeat")};var i=n;t.exports=i},dcb3:function(t,e,n){var i=n("6d8b"),r=n("625e"),a=n("2306"),o=n("cd33"),s=n("607d"),l=n("88b3"),c=n("e0d3"),u=c.makeInner,h=u(),d=i.clone,f=i.bind;function p(){}function g(t,e,n,i){m(h(n).lastProp,i)||(h(n).lastProp=i,e?a.updateProps(n,i,t):(n.stopAnimation(),n.attr(i)))}function m(t,e){if(i.isObject(t)&&i.isObject(e)){var n=!0;return i.each(e,(function(e,i){n=n&&m(t[i],e)})),!!n}return t===e}function v(t,e){t[e.get("label.show")?"show":"hide"]()}function y(t){return{position:t.position.slice(),rotation:t.rotation||0}}function x(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)}))}p.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,n,r){var o=e.get("value"),s=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,r||this._lastValue!==o||this._lastStatus!==s){this._lastValue=o,this._lastStatus=s;var l=this._group,c=this._handle;if(!s||"hide"===s)return l&&l.hide(),void(c&&c.hide());l&&l.show(),c&&c.show();var u={};this.makeElOption(u,o,t,e,n);var h=u.graphicKey;h!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=h;var d=this._moveAnimation=this.determineAnimation(t,e);if(l){var f=i.curry(g,e,d);this.updatePointerEl(l,u,f,e),this.updateLabelEl(l,u,f,e)}else l=this._group=new a.Group,this.createPointerEl(l,u,t,e),this.createLabelEl(l,u,t,e),n.getZr().add(l);x(l,e,!0),this._renderHandle(o)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,a=e.get("snap");if(!a&&!r)return!1;if("auto"===n||null==n){var s=this.animationThreshold;if(r&&i.getBandWidth()>s)return!0;if(a){var l=o.getAxisInfo(t).seriesDataCount,c=i.getExtent();return Math.abs(c[0]-c[1])/l>s}return!1}return!0===n},makeElOption:function(t,e,n,i,r){},createPointerEl:function(t,e,n,i){var r=e.pointer;if(r){var o=h(t).pointerEl=new a[r.type](d(e.pointer));t.add(o)}},createLabelEl:function(t,e,n,i){if(e.label){var r=h(t).labelEl=new a.Rect(d(e.label));t.add(r),v(r,i)}},updatePointerEl:function(t,e,n){var i=h(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,n,i){var r=h(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{shape:e.label.shape,position:e.label.position}),v(r,i))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,r=this._api.getZr(),o=this._handle,c=n.getModel("handle"),u=n.get("status");if(!c.get("show")||!u||"hide"===u)return o&&r.remove(o),void(this._handle=null);this._handle||(e=!0,o=this._handle=a.createIcon(c.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){s.stop(t.event)},onmousedown:f(this._onHandleDragMove,this,0,0),drift:f(this._onHandleDragMove,this),ondragend:f(this._onHandleDragEnd,this)}),r.add(o)),x(o,n,!1);var h=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];o.setStyle(c.getItemStyle(null,h));var d=c.get("size");i.isArray(d)||(d=[d,d]),o.attr("scale",[d[0]/2,d[1]/2]),l.createOrUpdate(this,"_doDispatchAxisPointer",c.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},_moveHandleToValue:function(t,e){g(this._axisPointerModel,!e&&this._moveAnimation,this._handle,y(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(y(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(y(i)),h(n).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},_onHandleDragEnd:function(t){this._dragging=!1;var e=this._handle;if(e){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}},p.prototype.constructor=p,r.enableClassExtend(p);var b=p;t.exports=b},dcea:function(t,e,n){var i=n("6d8b"),r=n("e887"),a=n("2306"),o=n("cbe5"),s=["itemStyle"],l=["emphasis","itemStyle"],c=r.extend({type:"boxplot",render:function(t,e,n){var i=t.getData(),r=this.group,a=this._data;this._data||r.removeAll();var o="horizontal"===t.get("layout")?1:0;i.diff(a).add((function(t){if(i.hasValue(t)){var e=i.getItemLayout(t),n=h(e,i,t,o,!0);i.setItemGraphicEl(t,n),r.add(n)}})).update((function(t,e){var n=a.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?d(s,n,i,t):n=h(s,i,t,o),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)})).remove((function(t){var e=a.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=i},remove:function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},dispose:i.noop}),u=o.extend({type:"boxplotBoxPath",shape:{},buildPath:function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])}});function h(t,e,n,i,r){var a=t.ends,o=new u({shape:{points:r?f(a,i,t):a}});return d(t,o,e,n,r),o}function d(t,e,n,i,r){var o=n.hostModel,c=a[r?"initProps":"updateProps"];c(e,{shape:{points:t.ends}},o,i);var u=n.getItemModel(i),h=u.getModel(s),d=n.getItemVisual(i,"color"),f=h.getItemStyle(["borderColor"]);f.stroke=d,f.strokeNoScale=!0,e.useStyle(f),e.z2=100;var p=u.getModel(l).getItemStyle();a.setHoverStyle(e,p)}function f(t,e,n){return i.map(t,(function(t){return t=t.slice(),t[e]=n.initBaseline,t}))}var p=c;t.exports=p},dd39:function(t,e,n){n("6932"),n("3a56"),n("7dcf"),n("414c"),n("4b08"),n("2c17"),n("9e87")},dd7e:function(t,e,n){var i=n("6d8b"),r=n("edaf"),a=n("38a2"),o=r.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});i.mixin(o,a);var s=o;t.exports=s},dded:function(t,e,n){var i=n("6d8b"),r=n("42e5"),a=function(t,e,n,i,a){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==n?.5:n,this.type="radial",this.global=a||!1,r.call(this,i)};a.prototype={constructor:a},i.inherits(a,r);var o=a;t.exports=o},de00:function(t,e){var n=2311;function i(){return n++}t.exports=i},de1c:function(t,e){var n={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}};t.exports=n},de6e:function(t,e){function n(t){return t instanceof Array||(t=[t,t]),t}function i(t){t.eachSeriesByType("graph",(function(t){var e=t.getGraph(),i=t.getEdgeData(),r=n(t.get("edgeSymbol")),a=n(t.get("edgeSymbolSize")),o="lineStyle.color".split("."),s="lineStyle.opacity".split(".");i.setVisual("fromSymbol",r&&r[0]),i.setVisual("toSymbol",r&&r[1]),i.setVisual("fromSymbolSize",a&&a[0]),i.setVisual("toSymbolSize",a&&a[1]),i.setVisual("color",t.get(o)),i.setVisual("opacity",t.get(s)),i.each((function(t){var r=i.getItemModel(t),a=e.getEdgeByIndex(t),l=n(r.getShallow("symbol",!0)),c=n(r.getShallow("symbolSize",!0)),u=r.get(o),h=r.get(s);switch(u){case"source":u=a.node1.getVisual("color");break;case"target":u=a.node2.getVisual("color");break}l[0]&&a.setVisual("fromSymbol",l[0]),l[1]&&a.setVisual("toSymbol",l[1]),c[0]&&a.setVisual("fromSymbolSize",c[0]),c[1]&&a.setVisual("toSymbolSize",c[1]),a.setVisual("color",u),a.setVisual("opacity",h)}))}))}t.exports=i},df3a:function(t,e,n){var i=n("6d8b"),r=n("6cb7"),a=n("282b"),o=n("9e47"),s=n("3842"),l=n("2023"),c=r.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return a([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var e=this.activeIntervals=i.clone(t);if(e)for(var n=e.length-1;n>=0;n--)s.asc(e[n])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;i<r;i++)if(e[i][0]<=t&&t<=e[i][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 h(t,e){return e.type||(e.data?"category":"value")}i.merge(c.prototype,l),o("parallel",c,h,u);var d=c;t.exports=d},df70:function(t,e,n){var i=n("3eba"),r=n("6fda"),a=n("29a8"),o=n("2145"),s=a.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 c=l.prototype;c.onclick=function(t,e,n){r.clear(t),e.dispatchAction({type:"restore",from:this.uid})},o.register("restore",l),i.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var u=l;t.exports=u},e057:function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),a=n("2306"),o=n("c775"),s=o.getDefaultLabel,l=n("3301"),c=n("9d57"),u=c.getLayoutOnAxis,h=n("80f0"),d=n("4f85"),f=n("4319"),p=n("e887"),g=n("b0af"),m=g.createClipPath,v=n("aa3e"),y=n("00d8"),x=n("307b"),b=n("eaeb"),_=n("471e"),w=a.CACHED_LABEL_STYLE_PROPERTIES,S=["itemStyle"],A=["emphasis","itemStyle"],C=["label"],I=["emphasis","label"],T="e\0\0",k={cartesian2d:v,geo:y,singleAxis:x,polar:b,calendar:_};function M(t){var e,n=t.type;if("path"===n){var i=t.shape,r=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,o=H(i);e=a.makePath(o,null,r,i.layout||"center"),e.__customPathData=o}else if("image"===n)e=new a.Image({}),e.__customImagePath=t.style.image;else if("text"===n)e=new a.Text({}),e.__customText=t.style.text;else if("group"===n)e=new a.Group;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var s=a.getShapeClass(n);e=new s}return e.__customGraphicType=n,e.name=t.name,e}function D(t,e,n,i,o,s,l){var c={},u=n.style||{};if(n.shape&&(c.shape=r.clone(n.shape)),n.position&&(c.position=n.position.slice()),n.scale&&(c.scale=n.scale.slice()),n.origin&&(c.origin=n.origin.slice()),n.rotation&&(c.rotation=n.rotation),"image"===t.type&&n.style){var h=c.style={};r.each(["x","y","width","height"],(function(e){E(e,h,u,t.style,s)}))}if("text"===t.type&&n.style){h=c.style={};r.each(["x","y"],(function(e){E(e,h,u,t.style,s)})),!u.hasOwnProperty("textFill")&&u.fill&&(u.textFill=u.fill),!u.hasOwnProperty("textStroke")&&u.stroke&&(u.textStroke=u.stroke)}if("group"!==t.type&&(t.useStyle(u),s)){t.style.opacity=0;var d=u.opacity;null==d&&(d=1),a.initProps(t,{style:{opacity:d}},i,e)}s?t.attr(c):a.updateProps(t,c,i,e),n.hasOwnProperty("z2")&&t.attr("z2",n.z2||0),n.hasOwnProperty("silent")&&t.attr("silent",n.silent),n.hasOwnProperty("invisible")&&t.attr("invisible",n.invisible),n.hasOwnProperty("ignore")&&t.attr("ignore",n.ignore),n.hasOwnProperty("info")&&t.attr("info",n.info);var f=n.styleEmphasis;a.setElementHoverStyle(t,f),l&&a.setAsHighDownDispatcher(t,!1!==f)}function E(t,e,n,i,r){null==n[t]||r||(e[t]=n[t],n[t]=i[t])}function L(t,e,n,i){var o=t.get("renderItem"),l=t.coordinateSystem,c={};l&&(c=l.prepareCustoms?l.prepareCustoms():k[l.type](l));var h,d,f,p,g,m=r.defaults({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:b,style:_,styleEmphasis:w,visual:T,barLayout:M,currentSeriesIndices:D,font:E},c.api||{}),v={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:c.coordSys,dataInsideLength:e.count(),encode:P(t.getData())},y=!0;return function(t,n){return h=t,y=!0,o&&o(r.defaults({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},v),m)};function x(t){null==t&&(t=h),y&&(d=e.getItemModel(t),f=d.getModel(C),p=d.getModel(I),g=e.getItemVisual(t,"color"),y=!1)}function b(t,n){return null==n&&(n=h),e.get(e.getDimension(t||0),n)}function _(n,i){null==i&&(i=h),x(i);var o=d.getModel(S).getItemStyle();null!=g&&(o.fill=g);var l=e.getItemVisual(i,"opacity");null!=l&&(o.opacity=l);var c=n?V(n,f):f;return a.setTextStyle(o,c,null,{autoColor:g,isRectText:!0}),o.text=c.getShallow("show")?r.retrieve2(t.getFormattedLabel(i,"normal"),s(e,i)):null,n&&W(o,n),o}function w(n,i){null==i&&(i=h),x(i);var o=d.getModel(A).getItemStyle(),l=n?V(n,p):p;return a.setTextStyle(o,l,null,{isRectText:!0},!0),o.text=l.getShallow("show")?r.retrieve3(t.getFormattedLabel(i,"emphasis"),t.getFormattedLabel(i,"normal"),s(e,i)):null,n&&W(o,n),o}function T(t,n){return null==n&&(n=h),e.getItemVisual(n,t)}function M(t){if(l.getBaseAxis){var e=l.getBaseAxis();return u(r.defaults({axis:e},t),i)}}function D(){return n.getCurrentSeriesIndices()}function E(t){return a.getFont(t,n)}}function P(t){var e={};return r.each(t.dimensions,(function(n,i){var r=t.getDimensionInfo(n);if(!r.isExtraCoord){var a=r.coordDim,o=e[a]=e[a]||[];o[r.coordDimIndex]=i}})),e}function O(t,e,n,i,r,a){return t=R(t,e,n,i,r,a,!0),t&&a.setItemGraphicEl(e,t),t}function R(t,e,n,i,r,a,o){var s=!n;n=n||{};var l=n.type,c=n.shape,u=n.style;if(t&&(s||null!=l&&l!==t.__customGraphicType||"path"===l&&G(c)&&H(c)!==t.__customPathData||"image"===l&&j(u,"image")&&u.image!==t.__customImagePath||"text"===l&&j(c,"text")&&u.text!==t.__customText)&&(r.remove(t),t=null),!s){var h=!t;return!t&&(t=M(n)),D(t,e,n,i,a,h,o),"group"===l&&N(t,e,n,i,a),r.add(t),t}}function N(t,e,n,i,r){var a=n.children,o=a?a.length:0,s=n.$mergeChildren,l="byName"===s||n.diffChildrenByName,c=!1===s;if(o||l||c)if(l)B({oldChildren:t.children()||[],newChildren:a||[],dataIndex:e,animatableModel:i,group:t,data:r});else{c&&t.removeAll();for(var u=0;u<o;u++)a[u]&&R(t.childAt(u),e,a[u],i,t,r)}}function B(t){new h(t.oldChildren,t.newChildren,z,z,t).add(F).update(F).remove(U).execute()}function z(t,e){var n=t&&t.name;return null!=n?n:T+e}function F(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;R(r,n.dataIndex,i,n.animatableModel,n.group,n.data)}function V(t,e){var n=new f({},e);return r.each(w,(function(e,i){t.hasOwnProperty(e)&&(n.option[i]=t[e])})),n}function W(t,e){for(var n in e)!e.hasOwnProperty(n)&&w.hasOwnProperty(n)||(t[n]=e[n])}function U(t){var e=this.context,n=e.oldChildren[t];n&&e.group.remove(n)}function H(t){return t&&(t.pathData||t.d)}function G(t){return t&&(t.hasOwnProperty("pathData")||t.hasOwnProperty("d"))}function j(t,e){return t&&t.hasOwnProperty(e)}d.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0,clip:!1},getInitialData:function(t,e){return l(this.getSource(),this)},getDataParams:function(t,e,n){var i=d.prototype.getDataParams.apply(this,arguments);return n&&(i.info=n.info),i}}),p.extend({type:"custom",_data:null,render:function(t,e,n,i){var r=this._data,a=t.getData(),o=this.group,s=L(t,a,e,n);a.diff(r).add((function(e){O(null,e,s(e,i),t,o,a)})).update((function(e,n){var l=r.getItemGraphicEl(n);O(l,e,s(e,i),t,o,a)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&o.remove(e)})).execute();var l=t.get("clip",!0)?m(t.coordinateSystem,!1,t):null;l?o.setClipPath(l):o.removeClipPath(),this._data=a},incrementalPrepareRender:function(t,e,n){this.group.removeAll(),this._data=null},incrementalRender:function(t,e,n,i,r){var a=e.getData(),o=L(e,a,n,i);function s(t){t.isGroup||(t.incremental=!0,t.useHoverLayer=!0)}for(var l=t.start;l<t.end;l++){var c=O(null,l,o(l,r),e,this.group,a);c.traverse(s)}},dispose:r.noop,filterForExposedEvent:function(t,e,n,i){var r=e.element;if(null==r||n.name===r)return!0;while((n=n.parent)&&n!==this.group)if(n.name===r)return!0;return!1}})},e073:function(t,e,n){var i=n("6d8b"),r=n("e86a"),a=n("e0d3"),o=a.makeInner,s=n("697e"),l=s.makeLabelFormatter,c=s.getOptionCategoryInterval,u=s.shouldShowAllLabels,h=o();function d(t){return"category"===t.type?p(t):v(t)}function f(t,e){return"category"===t.type?m(t,e):{ticks:t.scale.getTicks()}}function p(t){var e=t.getLabelModel(),n=g(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function g(t,e){var n,r,a=y(t,"labels"),o=c(e),s=x(a,o);return s||(i.isFunction(o)?n=C(t,o):(r="auto"===o?_(t):o,n=A(t,r)),b(a,o,{labels:n,labelCategoryInterval:r}))}function m(t,e){var n,r,a=y(t,"ticks"),o=c(e),s=x(a,o);if(s)return s;if(e.get("show")&&!t.scale.isBlank()||(n=[]),i.isFunction(o))n=C(t,o,!0);else if("auto"===o){var l=g(t,t.getLabelModel());r=l.labelCategoryInterval,n=i.map(l.labels,(function(t){return t.tickValue}))}else r=o,n=A(t,r,!0);return b(a,o,{ticks:n,tickCategoryInterval:r})}function v(t){var e=t.scale.getTicks(),n=l(t);return{labels:i.map(e,(function(e,i){return{formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e}}))}}function y(t,e){return h(t)[e]||(h(t)[e]=[])}function x(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function b(t,e,n){return t.push({key:e,value:n}),n}function _(t){var e=h(t).autoInterval;return null!=e?e:h(t).autoInterval=t.calculateCategoryInterval()}function w(t){var e=S(t),n=l(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,a=t.scale,o=a.getExtent(),s=a.count();if(o[1]-o[0]<1)return 0;var c=1;s>40&&(c=Math.max(1,Math.floor(s/40)));for(var u=o[0],d=t.dataToCoord(u+1)-t.dataToCoord(u),f=Math.abs(d*Math.cos(i)),p=Math.abs(d*Math.sin(i)),g=0,m=0;u<=o[1];u+=c){var v=0,y=0,x=r.getBoundingRect(n(u),e.font,"center","top");v=1.3*x.width,y=1.3*x.height,g=Math.max(g,v,7),m=Math.max(m,y,7)}var b=g/f,_=m/p;isNaN(b)&&(b=1/0),isNaN(_)&&(_=1/0);var w=Math.max(0,Math.floor(Math.min(b,_))),A=h(t.model),C=t.getExtent(),I=A.lastAutoInterval,T=A.lastTickCount;return null!=I&&null!=T&&Math.abs(I-w)<=1&&Math.abs(T-s)<=1&&I>w&&A.axisExtend0===C[0]&&A.axisExtend1===C[1]?w=I:(A.lastTickCount=s,A.lastAutoInterval=w,A.axisExtend0=C[0],A.axisExtend1=C[1]),w}function S(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function A(t,e,n){var i=l(t),r=t.scale,a=r.getExtent(),o=t.getLabelModel(),s=[],c=Math.max((e||0)+1,1),h=a[0],d=r.count();0!==h&&c>1&&d/c>2&&(h=Math.round(Math.ceil(h/c)*c));var f=u(t),p=o.get("showMinLabel")||f,g=o.get("showMaxLabel")||f;p&&h!==a[0]&&v(a[0]);for(var m=h;m<=a[1];m+=c)v(m);function v(t){s.push(n?t:{formattedLabel:i(t),rawLabel:r.getLabel(t),tickValue:t})}return g&&m-c!==a[1]&&v(a[1]),s}function C(t,e,n){var r=t.scale,a=l(t),o=[];return i.each(r.getTicks(),(function(t){var i=r.getLabel(t);e(t,i)&&o.push(n?t:{formattedLabel:a(t),rawLabel:i,tickValue:t})})),o}e.createAxisLabels=d,e.createAxisTicks=f,e.calculateCategoryInterval=w},e0d3:function(t,e,n){var i=n("6d8b"),r=n("22d1"),a=i.each,o=i.isObject,s=i.isArray,l="series\0";function c(t){return t instanceof Array?t:null==t?[]:[t]}function u(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var a=n[i];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var h=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function d(t){return!o(t)||s(t)||t instanceof Date?t:t.value}function f(t){return o(t)&&!(t instanceof Array)}function p(t,e){e=(e||[]).slice();var n=i.map(t||[],(function(t,e){return{exist:t}}));return a(e,(function(t,i){if(o(t)){for(var r=0;r<n.length;r++)if(!n[r].option&&null!=t.id&&n[r].exist.id===t.id+"")return n[r].option=t,void(e[i]=null);for(r=0;r<n.length;r++){var a=n[r].exist;if(!n[r].option&&(null==a.id||null==t.id)&&null!=t.name&&!v(t)&&!v(a)&&a.name===t.name+"")return n[r].option=t,void(e[i]=null)}}})),a(e,(function(t,e){if(o(t)){for(var i=0;i<n.length;i++){var r=n[i].exist;if(!n[i].option&&!v(r)&&null==t.id){n[i].option=t;break}}i>=n.length&&n.push({option:t})}})),n}function g(t){var e=i.createHashMap();a(t,(function(t,n){var i=t.exist;i&&e.set(i.id,t)})),a(t,(function(t,n){var r=t.option;i.assert(!r||null==r.id||!e.get(r.id)||e.get(r.id)===t,"id duplicates: "+(r&&r.id)),r&&null!=r.id&&e.set(r.id,t),!t.keyInfo&&(t.keyInfo={})})),a(t,(function(t,n){var i=t.exist,r=t.option,a=t.keyInfo;if(o(r)){if(a.name=null!=r.name?r.name+"":i?i.name:l+n,i)a.id=i.id;else if(null!=r.id)a.id=r.id+"";else{var s=0;do{a.id="\0"+a.name+"\0"+s++}while(e.get(a.id))}e.set(a.id,t)}}))}function m(t){var e=t.name;return!(!e||!e.indexOf(l))}function v(t){return o(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")}function y(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[a(n),a(i)];function r(t,e,n){for(var i=0,r=t.length;i<r;i++)for(var a=t[i].seriesId,o=c(t[i].dataIndex),s=n&&n[a],l=0,u=o.length;l<u;l++){var h=o[l];s&&s[h]?s[h]=null:(e[a]||(e[a]={}))[h]=1}}function a(t,e){var n=[];for(var i in t)if(t.hasOwnProperty(i)&&null!=t[i])if(e)n.push(+i);else{var r=a(t[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}}function x(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?i.isArray(e.dataIndex)?i.map(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?i.isArray(e.name)?i.map(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function b(){var t="__\0ec_inner_"+_+++"_"+Math.random().toFixed(5);return function(e){return e[t]||(e[t]={})}}var _=0;function w(t,e,n){if(i.isString(e)){var r={};r[e+"Index"]=0,e=r}var o=n&&n.defaultMainType;!o||S(e,o+"Index")||S(e,o+"Id")||S(e,o+"Name")||(e[o+"Index"]=0);var s={};return a(e,(function(r,a){r=e[a];if("dataIndex"!==a&&"dataIndexInside"!==a){var o=a.match(/^(\w+)(Index|Id|Name)$/)||[],l=o[1],c=(o[2]||"").toLowerCase();if(!(!l||!c||null==r||"index"===c&&"none"===r||n&&n.includeMainTypes&&i.indexOf(n.includeMainTypes,l)<0)){var u={mainType:l};"index"===c&&"all"===r||(u[c]=r);var h=t.queryComponents(u);s[l+"Models"]=h,s[l+"Model"]=h[0]}}else s[a]=r})),s}function S(t,e){return t&&t.hasOwnProperty(e)}function A(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function C(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function I(t){return"auto"===t?r.domSupported?"html":"richText":t||"html"}function T(t,e){var n=i.createHashMap(),r=[];return i.each(t,(function(t){var i=e(t);(n.get(i)||(r.push(i),n.set(i,[]))).push(t)})),{keys:r,buckets:n}}e.normalizeToArray=c,e.defaultEmphasis=u,e.TEXT_STYLE_OPTIONS=h,e.getDataItemValue=d,e.isDataItemOption=f,e.mappingToExists=p,e.makeIdAndName=g,e.isNameSpecified=m,e.isIdInner=v,e.compressBatches=y,e.queryDataIndex=x,e.makeInner=b,e.parseFinder=w,e.setAttribute=A,e.getAttribute=C,e.getTooltipRenderMode=I,e.groupData=T},e0d8:function(t,e,n){var i=n("625e");function r(t){this._setting=t||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}r.prototype.parse=function(t){return t},r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.contain=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},r.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},r.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r.prototype.getLabel=null,i.enableClassExtend(r),i.enableClassManagement(r,{registerWhenExtend:!0});var a=r;t.exports=a},e1fc:function(t,e,n){var i=n("6d8b"),r=n("d5b7"),a=n("9850"),o=function(t){for(var e in t=t||{},r.call(this,t),t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};o.prototype={constructor:o,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},childCount:function(){return this._children.length},add:function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,n=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof o&&t.addChildrenToStorage(e)),n&&n.refresh()},remove:function(t){var e=this.__zr,n=this.__storage,r=this._children,a=i.indexOf(r,t);return a<0||(r.splice(a,1),t.parent=null,n&&(n.delFromStorage(t),t instanceof o&&t.delChildrenFromStorage(n)),e&&e.refresh()),this},removeAll:function(){var t,e,n=this._children,i=this.__storage;for(e=0;e<n.length;e++)t=n[e],i&&(i.delFromStorage(t),t instanceof o&&t.delChildrenFromStorage(i)),t.parent=null;return n.length=0,this},eachChild:function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},traverse:function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n];t.call(e,i),"group"===i.type&&i.traverse(t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children.length;e++){var n=this._children[e];t.addToStorage(n),n instanceof o&&n.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children.length;e++){var n=this._children[e];t.delFromStorage(n),n instanceof o&&n.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,n=new a(0,0,0,0),i=t||this._children,r=[],o=0;o<i.length;o++){var s=i[o];if(!s.ignore&&!s.invisible){var l=s.getBoundingRect(),c=s.getLocalTransform(r);c?(n.copy(l),n.applyTransform(c),e=e||n.clone(),e.union(n)):(e=e||l.clone(),e.union(l))}}return e||n}},i.inherits(o,r);var s=o;t.exports=s},e263:function(t,e,n){var i=n("401b"),r=n("4a3f"),a=Math.min,o=Math.max,s=Math.sin,l=Math.cos,c=2*Math.PI,u=i.create(),h=i.create(),d=i.create();function f(t,e,n){if(0!==t.length){var i,r=t[0],s=r[0],l=r[0],c=r[1],u=r[1];for(i=1;i<t.length;i++)r=t[i],s=a(s,r[0]),l=o(l,r[0]),c=a(c,r[1]),u=o(u,r[1]);e[0]=s,e[1]=c,n[0]=l,n[1]=u}}function p(t,e,n,i,r,s){r[0]=a(t,n),r[1]=a(e,i),s[0]=o(t,n),s[1]=o(e,i)}var g=[],m=[];function v(t,e,n,i,s,l,c,u,h,d){var f,p=r.cubicExtrema,v=r.cubicAt,y=p(t,n,s,c,g);for(h[0]=1/0,h[1]=1/0,d[0]=-1/0,d[1]=-1/0,f=0;f<y;f++){var x=v(t,n,s,c,g[f]);h[0]=a(x,h[0]),d[0]=o(x,d[0])}for(y=p(e,i,l,u,m),f=0;f<y;f++){var b=v(e,i,l,u,m[f]);h[1]=a(b,h[1]),d[1]=o(b,d[1])}h[0]=a(t,h[0]),d[0]=o(t,d[0]),h[0]=a(c,h[0]),d[0]=o(c,d[0]),h[1]=a(e,h[1]),d[1]=o(e,d[1]),h[1]=a(u,h[1]),d[1]=o(u,d[1])}function y(t,e,n,i,s,l,c,u){var h=r.quadraticExtremum,d=r.quadraticAt,f=o(a(h(t,n,s),1),0),p=o(a(h(e,i,l),1),0),g=d(t,n,s,f),m=d(e,i,l,p);c[0]=a(t,s,g),c[1]=a(e,l,m),u[0]=o(t,s,g),u[1]=o(e,l,m)}function x(t,e,n,r,a,o,f,p,g){var m=i.min,v=i.max,y=Math.abs(a-o);if(y%c<1e-4&&y>1e-4)return p[0]=t-n,p[1]=e-r,g[0]=t+n,void(g[1]=e+r);if(u[0]=l(a)*n+t,u[1]=s(a)*r+e,h[0]=l(o)*n+t,h[1]=s(o)*r+e,m(p,u,h),v(g,u,h),a%=c,a<0&&(a+=c),o%=c,o<0&&(o+=c),a>o&&!f?o+=c:a<o&&f&&(a+=c),f){var x=o;o=a,a=x}for(var b=0;b<o;b+=Math.PI/2)b>a&&(d[0]=l(b)*n+t,d[1]=s(b)*r+e,m(p,d,p),v(g,d,g))}e.fromPoints=f,e.fromLine=p,e.fromCubic=v,e.fromQuadratic=y,e.fromArc=x},e468:function(t,e,n){var i=n("e46b"),r=n("6d8b"),a=n("2f45"),o=a.getDimensionTypeByAxis,s=n("0f99"),l=s.makeSeriesEncodeForAxisCoordSys,c={_baseAxisDim:null,getInitialData:function(t,e){var n,a,s=e.getComponent("xAxis",this.get("xAxisIndex")),c=e.getComponent("yAxis",this.get("yAxisIndex")),u=s.get("type"),h=c.get("type");"category"===u?(t.layout="horizontal",n=s.getOrdinalMeta(),a=!0):"category"===h?(t.layout="vertical",n=c.getOrdinalMeta(),a=!0):t.layout=t.layout||"horizontal";var d=["x","y"],f="horizontal"===t.layout?0:1,p=this._baseAxisDim=d[f],g=d[1-f],m=[s,c],v=m[f].get("type"),y=m[1-f].get("type"),x=t.data;if(x&&a){var b=[];r.each(x,(function(t,e){var n;t.value&&r.isArray(t.value)?(n=t.value.slice(),t.value.unshift(e)):r.isArray(t)?(n=t.slice(),t.unshift(e)):n=t,b.push(n)})),t.data=b}var _=this.defaultValueDimensions,w=[{name:p,type:o(v),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:g,type:o(y),dimsDef:_.slice()}];return i(this,{coordDimensions:w,dimensionsCount:_.length+1,encodeDefaulter:r.curry(l,w,this)})},getBaseAxis:function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis}};e.seriesModelMixin=c},e46b:function(t,e,n){var i=n("b1d4"),r=n("6179"),a=n("6d8b"),o=a.extend,s=a.isArray;function l(t,e,n){e=s(e)&&{coordDimensions:e}||o({},e);var a=t.getSource(),l=i(a,e),c=new r(l,t);return c.initData(a,n),c}t.exports=l},e47b:function(t,e,n){var i=n("e0d3"),r=i.makeInner,a=i.normalizeToArray,o=r();function s(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}var l={clearColorPalette:function(){o(this).colorIdx=0,o(this).colorNameMap={}},getColorFromPalette:function(t,e,n){e=e||this;var i=o(e),r=i.colorIdx||0,l=i.colorNameMap=i.colorNameMap||{};if(l.hasOwnProperty(t))return l[t];var c=a(this.get("color",!0)),u=this.get("colorLayer",!0),h=null!=n&&u?s(u,n):c;if(h=h||c,h&&h.length){var d=h[r];return t&&(l[t]=d),i.colorIdx=(r+1)%h.length,d}}};t.exports=l},e4d1:function(t,e,n){n("6932"),n("3a56"),n("7dcf"),n("3790"),n("2325"),n("2c17"),n("9e87")},e6cd:function(t,e,n){var i=n("6d8b");function r(){var t,e=[],n={};return{add:function(t,r,a,o,s){return i.isString(o)&&(s=o,o=0),!n[t.id]&&(n[t.id]=1,e.push({el:t,target:r,time:a,delay:o,easing:s}),!0)},done:function(e){return t=e,this},start:function(){for(var i=e.length,r=0,a=e.length;r<a;r++){var o=e[r];o.el.animateTo(o.target,o.time,o.delay,o.easing,s)}return this;function s(){i--,i||(e.length=0,n={},t&&t())}}}}e.createWrap=r},e7aa:function(t,e,n){var i=n("2306"),r=n("c775"),a=r.getDefaultLabel;function o(t,e,n,r,o,l,c){var u=n.getModel("label"),h=n.getModel("emphasis.label");i.setLabelStyle(t,e,u,h,{labelFetcher:o,labelDataIndex:l,defaultText:a(o.getData(),l),isRectText:!0,autoColor:r}),s(t),s(e)}function s(t,e){"outside"===t.textPosition&&(t.textPosition=e)}e.setLabel=o},e7d2:function(t,e,n){var i=n("4a3f");function r(t,e,n,r,a,o,s,l,c,u,h){if(0===c)return!1;var d=c;if(h>e+d&&h>r+d&&h>o+d&&h>l+d||h<e-d&&h<r-d&&h<o-d&&h<l-d||u>t+d&&u>n+d&&u>a+d&&u>s+d||u<t-d&&u<n-d&&u<a-d&&u<s-d)return!1;var f=i.cubicProjectPoint(t,e,n,r,a,o,s,l,u,h,null);return f<=d/2}e.containStroke=r},e86a:function(t,e,n){var i=n("9850"),r=n("5e76"),a=n("6d8b"),o=a.getContext,s=a.extend,l=a.retrieve2,c=a.retrieve3,u=a.trim,h={},d=0,f=5e3,p=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,g="12px sans-serif",m={};function v(t,e){m[t]=e}function y(t,e){e=e||g;var n=t+":"+e;if(h[n])return h[n];for(var i=(t+"").split("\n"),r=0,a=0,o=i.length;a<o;a++)r=Math.max(E(i[a],e).width,r);return d>f&&(d=0,h={}),d++,h[n]=r,r}function x(t,e,n,i,r,a,o,s){return o?_(t,e,n,i,r,a,o,s):b(t,e,n,i,r,a,s)}function b(t,e,n,r,a,o,s){var l=L(t,e,a,o,s),c=y(t,e);a&&(c+=a[1]+a[3]);var u=l.outerHeight,h=w(0,c,n),d=S(0,u,r),f=new i(h,d,c,u);return f.lineHeight=l.lineHeight,f}function _(t,e,n,r,a,o,s,l){var c=P(t,{rich:s,truncate:l,font:e,textAlign:n,textPadding:a,textLineHeight:o}),u=c.outerWidth,h=c.outerHeight,d=w(0,u,n),f=S(0,h,r);return new i(d,f,u,h)}function w(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function S(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function A(t,e,n){var i=e.textPosition,r=e.textDistance,a=n.x,o=n.y;r=r||0;var s=n.height,l=n.width,c=s/2,u="left",h="top";switch(i){case"left":a-=r,o+=c,u="right",h="middle";break;case"right":a+=r+l,o+=c,h="middle";break;case"top":a+=l/2,o-=r,u="center",h="bottom";break;case"bottom":a+=l/2,o+=s+r,u="center";break;case"inside":a+=l/2,o+=c,u="center",h="middle";break;case"insideLeft":a+=r,o+=c,h="middle";break;case"insideRight":a+=l-r,o+=c,u="right",h="middle";break;case"insideTop":a+=l/2,o+=r,u="center";break;case"insideBottom":a+=l/2,o+=s-r,u="center",h="bottom";break;case"insideTopLeft":a+=r,o+=r;break;case"insideTopRight":a+=l-r,o+=r,u="right";break;case"insideBottomLeft":a+=r,o+=s-r,h="bottom";break;case"insideBottomRight":a+=l-r,o+=s-r,u="right",h="bottom";break}return t=t||{},t.x=a,t.y=o,t.textAlign=u,t.textVerticalAlign=h,t}function C(t,e,n){var i={textPosition:t,textDistance:n};return A({},i,e)}function I(t,e,n,i,r){if(!e)return"";var a=(t+"").split("\n");r=T(e,n,i,r);for(var o=0,s=a.length;o<s;o++)a[o]=k(a[o],r);return a.join("\n")}function T(t,e,n,i){i=s({},i),i.font=e;n=l(n,"...");i.maxIterations=l(i.maxIterations,2);var r=i.minChar=l(i.minChar,0);i.cnCharWidth=y("国",e);var a=i.ascCharWidth=y("a",e);i.placeholder=l(i.placeholder,"");for(var o=t=Math.max(0,t-1),c=0;c<r&&o>=a;c++)o-=a;var u=y(n,e);return u>o&&(n="",u=0),o=t-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=o,i.containerWidth=t,i}function k(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var a=y(t,i);if(a<=n)return t;for(var o=0;;o++){if(a<=r||o>=e.maxIterations){t+=e.ellipsis;break}var s=0===o?M(t,r,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*r/a):0;t=t.substr(0,s),a=y(t,i)}return""===t&&(t=e.placeholder),t}function M(t,e,n,i){for(var r=0,a=0,o=t.length;a<o&&r<e;a++){var s=t.charCodeAt(a);r+=0<=s&&s<=127?n:i}return a}function D(t){return y("国",t)}function E(t,e){return m.measureText(t,e)}function L(t,e,n,i,r){null!=t&&(t+="");var a=l(i,D(e)),o=t?t.split("\n"):[],s=o.length*a,c=s,u=!0;if(n&&(c+=n[0]+n[2]),t&&r){u=!1;var h=r.outerHeight,d=r.outerWidth;if(null!=h&&c>h)t="",o=[];else if(null!=d)for(var f=T(d-(n?n[1]+n[3]:0),e,r.ellipsis,{minChar:r.minChar,placeholder:r.placeholder}),p=0,g=o.length;p<g;p++)o[p]=k(o[p],f)}return{lines:o,height:s,outerHeight:c,lineHeight:a,canCacheByTextString:u}}function P(t,e){var n={lines:[],width:0,height:0};if(null!=t&&(t+=""),!t)return n;var i,a=p.lastIndex=0;while(null!=(i=p.exec(t))){var o=i.index;o>a&&O(n,t.substring(a,o)),O(n,i[2],i[1]),a=p.lastIndex}a<t.length&&O(n,t.substring(a,t.length));var s=n.lines,u=0,h=0,d=[],f=e.textPadding,g=e.truncate,m=g&&g.outerWidth,v=g&&g.outerHeight;f&&(null!=m&&(m-=f[1]+f[3]),null!=v&&(v-=f[0]+f[2]));for(var x=0;x<s.length;x++){for(var b=s[x],_=0,w=0,S=0;S<b.tokens.length;S++){var A=b.tokens[S],C=A.styleName&&e.rich[A.styleName]||{},T=A.textPadding=C.textPadding,k=A.font=C.font||e.font,M=A.textHeight=l(C.textHeight,D(k));if(T&&(M+=T[0]+T[2]),A.height=M,A.lineHeight=c(C.textLineHeight,e.textLineHeight,M),A.textAlign=C&&C.textAlign||e.textAlign,A.textVerticalAlign=C&&C.textVerticalAlign||"middle",null!=v&&u+A.lineHeight>v)return{lines:[],width:0,height:0};A.textWidth=y(A.text,k);var E=C.textWidth,L=null==E||"auto"===E;if("string"===typeof E&&"%"===E.charAt(E.length-1))A.percentWidth=E,d.push(A),E=0;else{if(L){E=A.textWidth;var P=C.textBackgroundColor,R=P&&P.image;R&&(R=r.findExistImage(R),r.isImageReady(R)&&(E=Math.max(E,R.width*M/R.height)))}var N=T?T[1]+T[3]:0;E+=N;var B=null!=m?m-w:null;null!=B&&B<E&&(!L||B<N?(A.text="",A.textWidth=E=0):(A.text=I(A.text,B-N,k,g.ellipsis,{minChar:g.minChar}),A.textWidth=y(A.text,k),E=A.textWidth+N))}w+=A.width=E,C&&(_=Math.max(_,A.lineHeight))}b.width=w,b.lineHeight=_,u+=_,h=Math.max(h,w)}n.outerWidth=n.width=l(e.textWidth,h),n.outerHeight=n.height=l(e.textHeight,u),f&&(n.outerWidth+=f[1]+f[3],n.outerHeight+=f[0]+f[2]);for(x=0;x<d.length;x++){A=d[x];var z=A.percentWidth;A.width=parseInt(z,10)/100*h}return n}function O(t,e,n){for(var i=""===e,r=e.split("\n"),a=t.lines,o=0;o<r.length;o++){var s=r[o],l={styleName:n,text:s,isLineHolder:!s&&!i};if(o)a.push({tokens:[l]});else{var c=(a[a.length-1]||(a[0]={tokens:[]})).tokens,u=c.length;1===u&&c[0].isLineHolder?c[0]=l:(s||!u||i)&&c.push(l)}}}function R(t){var e=(t.fontSize||t.fontFamily)&&[t.fontStyle,t.fontWeight,(t.fontSize||12)+"px",t.fontFamily||"sans-serif"].join(" ");return e&&u(e)||t.textFont||t.font}m.measureText=function(t,e){var n=o();return n.font=e||g,n.measureText(t)},e.DEFAULT_FONT=g,e.$override=v,e.getWidth=y,e.getBoundingRect=x,e.adjustTextX=w,e.adjustTextY=S,e.calculateTextPosition=A,e.adjustTextPositionOnRect=C,e.truncateText=I,e.getLineHeight=D,e.measureText=E,e.parsePlainText=L,e.parseRichText=P,e.makeFont=R},e887:function(t,e,n){var i=n("6d8b"),r=i.each,a=n("e1fc"),o=n("8918"),s=n("625e"),l=n("e0d3"),c=n("2306"),u=n("f47d"),h=u.createTask,d=n("cccd"),f=l.makeInner(),p=d();function g(){this.group=new a,this.uid=o.getUID("viewChart"),this.renderTask=h({plan:x,reset:b}),this.renderTask.context={view:this}}g.prototype={type:"chart",init:function(t,e){},render:function(t,e,n,i){},highlight:function(t,e,n,i){y(t.getData(),i,"emphasis")},downplay:function(t,e,n,i){y(t.getData(),i,"normal")},remove:function(t,e){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var m=g.prototype;function v(t,e,n){if(t&&(t.trigger(e,n),t.isGroup&&!c.isHighDownDispatcher(t)))for(var i=0,r=t.childCount();i<r;i++)v(t.childAt(i),e,n)}function y(t,e,n){var i=l.queryDataIndex(t,e),a=e&&null!=e.highlightKey?c.getHighlightDigit(e.highlightKey):null;null!=i?r(l.normalizeToArray(i),(function(e){v(t.getItemGraphicEl(e),n,a)})):t.eachItemGraphicEl((function(t){v(t,n,a)}))}function x(t){return p(t.model)}function b(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=r&&f(r).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](e,n,i,r),_[l]}m.updateView=m.updateLayout=m.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},s.enableClassExtend(g,["dispose"]),s.enableClassManagement(g,{registerWhenExtend:!0}),g.markUpdateMethod=function(t,e){f(t).updateMethod=e};var _={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},w=g;t.exports=w},e9f9:function(t,e,n){var i=n("4942"),r=n("d3a4"),a=n("6d8b"),o=a.each;function s(t){return parseInt(t,10)}function l(t,e){r.initVML(),this.root=t,this.storage=e;var n=document.createElement("div"),i=document.createElement("div");n.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",i.style.cssText="position:absolute;left:0;top:0;",t.appendChild(n),this._vmlRoot=i,this._vmlViewport=n,this.resize();var a=e.delFromStorage,o=e.addToStorage;e.delFromStorage=function(t){a.call(e,t),t&&t.onRemove&&t.onRemove(i)},e.addToStorage=function(t){t.onAdd&&t.onAdd(i),o.call(e,t)},this._firstPaint=!0}function c(t){return function(){i('In IE8.0 VML mode painter not support method "'+t+'"')}}l.prototype={constructor:l,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0,!0);this._paintList(t)},_paintList:function(t){for(var e=this._vmlRoot,n=0;n<t.length;n++){var i=t[n];i.invisible||i.ignore?(i.__alreadyNotVisible||i.onRemove(e),i.__alreadyNotVisible=!0):(i.__alreadyNotVisible&&i.onAdd(e),i.__alreadyNotVisible=!1,i.__dirty&&(i.beforeBrush&&i.beforeBrush(),(i.brushVML||i.brush).call(i,e),i.afterBrush&&i.afterBrush())),i.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(e),this._firstPaint=!1)},resize:function(t,e){t=null==t?this._getWidth():t,e=null==e?this._getHeight():e;if(this._width!==t||this._height!==e){this._width=t,this._height=e;var n=this._vmlViewport.style;n.width=t+"px",n.height=e+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var t=this.root,e=t.currentStyle;return(t.clientWidth||s(e.width))-s(e.paddingLeft)-s(e.paddingRight)|0},_getHeight:function(){var t=this.root,e=t.currentStyle;return(t.clientHeight||s(e.height))-s(e.paddingTop)-s(e.paddingBottom)|0}},o(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],(function(t){l.prototype[t]=c(t)}));var u=l;t.exports=u},eabf:function(t,e,n){var i=n("6d8b");function r(t){t&&i.isArray(t.series)&&i.each(t.series,(function(t){i.isObject(t)&&"k"===t.type&&(t.type="candlestick")}))}t.exports=r},eaea:function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=n("22d1"),o=n("60e3"),s=n("5f14"),l=n("2b8c"),c=n("e0d3"),u=n("3842"),h=s.mapVisual,d=s.eachVisual,f=r.isArray,p=r.each,g=u.asc,m=u.linearMap,v=r.noop,y=i.extendComponentModel({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-1/0,1/0],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,dimension:null,inRange:null,outOfRange:null,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(t,e,n){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(t,n)},optionUpdated:function(t,e){var n=this.option;a.canvasSupported||(n.realtime=!1),!e&&l.replaceVisualOption(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(t){var e=this.stateList;t=r.bind(t,this),this.controllerVisuals=l.createVisualMappings(this.option.controller,e,t),this.targetVisuals=l.createVisualMappings(this.option.target,e,t)},getTargetSeriesIndices:function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=c.normalizeToArray(t),e},eachTargetSeries:function(t,e){r.each(this.getTargetSeriesIndices(),(function(n){t.call(e,this.ecModel.getSeriesByIndex(n))}),this)},isTargetSeries:function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},formatValueText:function(t,e,n){var i,a,o=this.option,s=o.precision,l=this.dataBound,c=o.formatter;return n=n||["<",">"],r.isArray(t)&&(t=t.slice(),i=!0),a=e?t:i?[u(t[0]),u(t[1])]:u(t),r.isString(c)?c.replace("{value}",i?a[0]:a).replace("{value2}",i?a[1]:a):r.isFunction(c)?i?c(t[0],t[1]):c(t):i?t[0]===l[0]?n[0]+" "+a[1]:t[1]===l[1]?n[1]+" "+a[0]:a[0]+" - "+a[1]:a;function u(t){return t===l[0]?"min":t===l[1]?"max":(+t).toFixed(Math.min(s,20))}},resetExtent:function(){var t=this.option,e=g([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension,n=t.dimensions;if(null!=e||n.length){if(null!=e)return t.getDimension(e);for(var i=t.dimensions,r=i.length-1;r>=0;r--){var a=i[r],o=t.getDimensionInfo(a);if(!o.isCalculationCoord)return a}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),a=e.controller||(e.controller={});r.merge(i,n),r.merge(a,n);var l=this.isCategory();function c(n){f(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")},p(this.stateList,(function(t){var e=n[t];if(r.isString(e)){var i=o.get(e,"active",l);i?(n[t]={},n[t][e]=i):delete n[t]}}),this)}function u(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},p(i,(function(t,e){if(s.isValidType(e)){var n=o.get(e,"inactive",l);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}function g(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor");p(this.stateList,(function(a){var o=this.itemSize,s=t[a];s||(s=t[a]={color:l?i:[i]}),null==s.symbol&&(s.symbol=e&&r.clone(e)||(l?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=n&&r.clone(n)||(l?o[0]:[o[0],o[0]])),s.symbol=h(s.symbol,(function(t){return"none"===t||"square"===t?"roundRect":t}));var c=s.symbolSize;if(null!=c){var u=-1/0;d(c,(function(t){t>u&&(u=t)})),s.symbolSize=h(c,(function(t){return m(t,[0,u],[0,o[0]],!0)}))}}),this)}c.call(this,i),c.call(this,a),u.call(this,i,"inRange","outOfRange"),g.call(this,a)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:v,getValueState:v,getVisualMeta:v}),x=y;t.exports=x},eaeb:function(t,e,n){var i=n("6d8b");function r(t,e){return i.map(["Radius","Angle"],(function(n,i){var r=this["get"+n+"Axis"](),a=e[i],o=t[i]/2,s="dataTo"+n,l="category"===r.type?r.getBandWidth():Math.abs(r[s](a-o)-r[s](a+o));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function a(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),a=e.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:a[1],r0:a[0]},api:{coord:i.bind((function(i){var r=e.dataToRadius(i[0]),a=n.dataToAngle(i[1]),o=t.coordToPoint([r,a]);return o.push(r,a*Math.PI/180),o})),size:i.bind(r,t)}}}t.exports=a},eb6b:function(t,e,n){var i=n("6d8b"),r=n("e0d3"),a=r.makeInner,o=n("cd33"),s=n("133d"),l=i.each,c=i.curry,u=a();function h(t,e,n){var r=t.currTrigger,a=[t.x,t.y],o=t,u=t.dispatchAction||i.bind(n.dispatchAction,n),h=e.getComponent("axisPointer").coordSysAxesInfo;if(h){_(a)&&(a=s({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var f=_(a),w=o.axesInfo,S=h.axesInfo,A="leave"===r||_(a),C={},I={},T={list:[],map:{}},k={showPointer:c(p,I),showTooltip:c(g,T)};l(h.coordSysMap,(function(t,e){var n=f||t.containPoint(a);l(h.coordSysAxesInfo[e],(function(t,e){var i=t.axis,r=x(w,t);if(!A&&n&&(!w||r)){var o=r&&r.value;null!=o||f||(o=i.pointToData(a)),null!=o&&d(t,o,k,!1,C)}}))}));var M={};return l(S,(function(t,e){var n=t.linkGroup;n&&!I[e]&&l(n.axesInfo,(function(e,i){var r=I[i];if(e!==t&&r){var a=r.value;n.mapper&&(a=t.axis.scale.parse(n.mapper(a,b(e),b(t)))),M[t.key]=a}}))})),l(M,(function(t,e){d(S[e],t,k,!0,C)})),m(I,S,C),v(T,a,t,u),y(S,u,n),C}}function d(t,e,n,r,a){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var s=f(e,t),l=s.payloadBatch,c=s.snapToValue;l[0]&&null==a.seriesIndex&&i.extend(a,l[0]),!r&&t.snap&&o.containData(c)&&null!=c&&(e=c),n.showPointer(t,e,l,a),n.showTooltip(t,s,c)}else n.showPointer(t,e)}function f(t,e){var n=e.axis,i=n.dim,r=t,a=[],o=Number.MAX_VALUE,s=-1;return l(e.seriesModels,(function(e,c){var u,h,d=e.getData().mapDimension(i,!0);if(e.getAxisTooltipData){var f=e.getAxisTooltipData(d,t,n);h=f.dataIndices,u=f.nestestValue}else{if(h=e.getData().indicesOfNearest(d[0],t,"category"===n.type?.5:null),!h.length)return;u=e.getData().get(d[0],h[0])}if(null!=u&&isFinite(u)){var p=t-u,g=Math.abs(p);g<=o&&((g<o||p>=0&&s<0)&&(o=g,s=p,r=u,a.length=0),l(h,(function(t){a.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:a,snapToValue:r}}function p(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function g(t,e,n,i){var r=n.payloadBatch,a=e.axis,s=a.model,l=e.axisPointerModel;if(e.triggerTooltip&&r.length){var c=e.coordSys.model,u=o.makeKey(c),h=t.map[u];h||(h=t.map[u]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:i,valueLabelOpt:{precision:l.get("label.precision"),formatter:l.get("label.formatter")},seriesDataIndices:r.slice()})}}function m(t,e,n){var i=n.axesInfo=[];l(e,(function(e,n){var r=e.axisPointerModel.option,a=t[n];a?(!e.useHandle&&(r.status="show"),r.value=a.value,r.seriesDataIndices=(a.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}function v(t,e,n,i){if(!_(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}function y(t,e,n){var r=n.getZr(),a="axisPointerLastHighlights",o=u(r)[a]||{},s=u(r)[a]={};l(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&l(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;s[e]=t}))}));var c=[],h=[];i.each(o,(function(t,e){!s[e]&&h.push(t)})),i.each(s,(function(t,e){!o[e]&&c.push(t)})),h.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,batch:h}),c.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,batch:c})}function x(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function b(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function _(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}t.exports=h},ebf9:function(t,e,n){var i=n("3eba");i.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))},ec02:function(t,e,n){var i=n("6d8b"),r=n("84ce"),a=function(t,e,n,i,a){r.call(this,t,e,n),this.type=i||"value",this.position=a||"bottom"};a.prototype={constructor:a,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},getGlobalExtent:function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},i.inherits(a,r);var o=a;t.exports=o},ec34:function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),a=r.createHashMap,o=r.isString,s=r.isArray,l=r.each,c=(r.assert,n("3041")),u=c.parseXML,h=a(),d={registerMap:function(t,e,n){var i;return s(e)?i=e:e.svg?i=[{type:"svg",source:e.svg,specialAreas:e.specialAreas}]:(e.geoJson&&!e.features&&(n=e.specialAreas,e=e.geoJson),i=[{type:"geoJSON",source:e,specialAreas:n}]),l(i,(function(t){var e=t.type;"geoJson"===e&&(e=t.type="geoJSON");var n=f[e];n(t)})),h.set(t,i)},retrieveMap:function(t){return h.get(t)}},f={geoJSON:function(t){var e=t.source;t.geoJSON=o(e)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e},svg:function(t){t.svgXML=u(t.source)}};t.exports=d},ec6f:function(t,e,n){var i=n("6d8b"),r=i.createHashMap,a=i.isTypedArray,o=n("625e"),s=o.enableClassCheck,l=n("93d0"),c=l.SOURCE_FORMAT_ORIGINAL,u=l.SERIES_LAYOUT_BY_COLUMN,h=l.SOURCE_FORMAT_UNKNOWN,d=l.SOURCE_FORMAT_TYPED_ARRAY,f=l.SOURCE_FORMAT_KEYED_COLUMNS;function p(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===f?{}:[]),this.sourceFormat=t.sourceFormat||h,this.seriesLayoutBy=t.seriesLayoutBy||u,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&r(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}p.seriesDataToSource=function(t){return new p({data:t,sourceFormat:a(t)?d:c,fromDataset:!1})},s(p);var g=p;t.exports=g},ecf8:function(t,e,n){var i=n("6d8b"),r=n("3842"),a=r.parsePercent,o=i.each;function s(t){var e=l(t);o(e,(function(t){var e=t.seriesModels;e.length&&(c(t),o(e,(function(e,n){u(e,t.boxOffsetList[n],t.boxWidthList[n])})))}))}function l(t){var e=[],n=[];return t.eachSeriesByType("boxplot",(function(t){var r=t.getBaseAxis(),a=i.indexOf(n,r);a<0&&(a=n.length,n[a]=r,e[a]={axis:r,seriesModels:[]}),e[a].seriesModels.push(t)})),e}function c(t){var e,n,r=t.axis,s=t.seriesModels,l=s.length,c=t.boxWidthList=[],u=t.boxOffsetList=[],h=[];if("category"===r.type)n=r.getBandWidth();else{var d=0;o(s,(function(t){d=Math.max(d,t.getData().count())})),e=r.getExtent(),Math.abs(e[1]-e[0])}o(s,(function(t){var e=t.get("boxWidth");i.isArray(e)||(e=[e,e]),h.push([a(e[0],n)||0,a(e[1],n)||0])}));var f=.8*n-2,p=f/l*.3,g=(f-p*(l-1))/l,m=g/2-f/2;o(s,(function(t,e){u.push(m),m+=p+g,c.push(Math.min(Math.max(g,h[e][0]),h[e][1]))}))}function u(t,e,n){var i=t.coordinateSystem,r=t.getData(),a=n/2,o="horizontal"===t.get("layout")?0:1,s=1-o,l=["x","y"],c=r.mapDimension(l[o]),u=r.mapDimension(l[s],!0);if(!(null==c||u.length<5))for(var h=0;h<r.count();h++){var d=r.get(c,h),f=x(d,u[2],h),p=x(d,u[0],h),g=x(d,u[1],h),m=x(d,u[3],h),v=x(d,u[4],h),y=[];b(y,g,0),b(y,m,1),y.push(p,g,v,m),_(y,p),_(y,v),_(y,f),r.setItemLayout(h,{initBaseline:f[s],ends:y})}function x(t,n,a){var l,c=r.get(n,a),u=[];return u[o]=t,u[s]=c,isNaN(t)||isNaN(c)?l=[NaN,NaN]:(l=i.dataToPoint(u),l[o]+=e),l}function b(t,e,n){var i=e.slice(),r=e.slice();i[o]+=a,r[o]-=a,n?t.push(i,r):t.push(r,i)}function _(t,e){var n=e.slice(),i=e.slice();n[o]-=a,i[o]+=a,t.push(n,i)}}t.exports=s},ed21:function(t,e,n){var i=n("2cf4c"),r=i.devicePixelRatio,a=n("6d8b"),o=n("4942"),s=n("9850"),l=n("04f6"),c=n("5e68"),u=n("98b7"),h=n("0da8"),d=n("22d1"),f=1e5,p=314159,g=.01,m=.001;function v(t){return parseInt(t,10)}function y(t){return!!t&&(!!t.__builtin__||"function"===typeof t.resize&&"function"===typeof t.refresh)}var x=new s(0,0,0,0),b=new s(0,0,0,0);function _(t,e,n){return x.copy(t.getBoundingRect()),t.transform&&x.applyTransform(t.transform),b.width=e,b.height=n,!x.intersect(b)}function w(t,e){if(t===e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function S(t,e){for(var n=0;n<t.length;n++){var i=t[n];i.setTransform(e),e.beginPath(),i.buildPath(e,i.shape),e.clip(),i.restoreTransform(e)}}function A(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var C=function(t,e,n){this.type="canvas";var i=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=a.extend({},n||{}),this.dpr=n.devicePixelRatio||r,this._singleCanvas=i,this.root=t;var o=t.style;o&&(o["-webkit-tap-highlight-color"]="transparent",o["-webkit-user-select"]=o["user-select"]=o["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var s=this._zlevelList=[],l=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,i){var u=t.width,h=t.height;null!=n.width&&(u=n.width),null!=n.height&&(h=n.height),this.dpr=n.devicePixelRatio||1,t.width=u*this.dpr,t.height=h*this.dpr,this._width=u,this._height=h;var d=new c(t,this,this.dpr);d.__builtin__=!0,d.initContext(),l[p]=d,d.zlevel=p,s.push(p),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var f=this._domRoot=A(this._width,this._height);t.appendChild(f)}this._hoverlayer=null,this._hoverElements=[]};C.prototype={constructor:C,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(t){var e=this.storage.getDisplayList(!0),n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,t,this._redrawId);for(var i=0;i<n.length;i++){var r=n[i],a=this._layers[r];if(!a.__builtin__&&a.refresh){var o=0===i?this._backgroundColor:null;a.refresh(o)}}return this.refreshHover(),this},addHover:function(t,e){if(!t.__hoverMir){var n=new t.constructor({style:t.style,shape:t.shape,z:t.z,z2:t.z2,silent:t.silent});return n.__from=t,t.__hoverMir=n,e&&n.setStyle(e),this._hoverElements.push(n),n}},removeHover:function(t){var e=t.__hoverMir,n=this._hoverElements,i=a.indexOf(n,e);i>=0&&n.splice(i,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,n=0;n<e.length;n++){var i=e[n].__from;i&&(i.__hoverMir=null)}e.length=0},refreshHover:function(){var t=this._hoverElements,e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){l(t,this.storage.displayableSortFunc),n||(n=this._hoverlayer=this.getLayer(f));var i={};n.ctx.save();for(var r=0;r<e;){var a=t[r],o=a.__from;o&&o.__zr?(r++,o.invisible||(a.transform=o.transform,a.invTransform=o.invTransform,a.__clipPaths=o.__clipPaths,this._doPaintEl(a,n,!0,i))):(t.splice(r,1),o.__hoverMir=null,e--)}n.ctx.restore()}},getHoverLayer:function(){return this.getLayer(f)},_paintList:function(t,e,n){if(this._redrawId===n){e=e||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e);if(this._needsManuallyCompositing&&this._compositeManually(),!i){var r=this;u((function(){r._paintList(t,e,n)}))}}},_compositeManually:function(){var t=this.getLayer(p).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)}))},_doPaintList:function(t,e){for(var n=[],i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i],o=this._layers[r];o.__builtin__&&o!==this._hoverlayer&&(o.__dirty||e)&&n.push(o)}for(var s=!0,l=0;l<n.length;l++){o=n[l];var c=o.ctx,u={};c.save();var h=e?o.__startIndex:o.__drawIndex,f=!e&&o.incremental&&Date.now,p=f&&Date.now(),g=o.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(o.__startIndex===o.__endIndex)o.clear(!1,g);else if(h===o.__startIndex){var m=t[h];m.incremental&&m.notClear&&!e||o.clear(!1,g)}-1===h&&(console.error("For some unknown reason. drawIndex is -1"),h=o.__startIndex);for(var v=h;v<o.__endIndex;v++){var y=t[v];if(this._doPaintEl(y,o,e,u),y.__dirty=y.__dirtyText=!1,f){var x=Date.now()-p;if(x>15)break}}o.__drawIndex=v,o.__drawIndex<o.__endIndex&&(s=!1),u.prevElClipPaths&&c.restore(),c.restore()}return d.wxa&&a.each(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),s},_doPaintEl:function(t,e,n,i){var r=e.ctx,a=t.transform;if((e.__dirty||n)&&!t.invisible&&0!==t.style.opacity&&(!a||a[0]||a[3])&&(!t.culling||!_(t,this._width,this._height))){var o=t.__clipPaths,s=i.prevElClipPaths;s&&!w(o,s)||(s&&(r.restore(),i.prevElClipPaths=null,i.prevEl=null),o&&(r.save(),S(o,r),i.prevElClipPaths=o)),t.beforeBrush&&t.beforeBrush(r),t.brush(r,i.prevEl||null),i.prevEl=t,t.afterBrush&&t.afterBrush(r)}},getLayer:function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=p);var n=this._layers[t];return n||(n=new c("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?a.merge(n,this._layerConfig[t],!0):this._layerConfig[t-g]&&a.merge(n,this._layerConfig[t-g],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},insertLayer:function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,a=null,s=-1,l=this._domRoot;if(n[t])o("ZLevel "+t+" has been used already");else if(y(e)){if(r>0&&t>i[0]){for(s=0;s<r-1;s++)if(i[s]<t&&i[s+1]>t)break;a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var c=a.dom;c.nextSibling?l.insertBefore(e.dom,c.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom)}else o("Layer of zlevel "+t+" is not valid")},eachLayer:function(t,e){var n,i,r=this._zlevelList;for(i=0;i<r.length;i++)n=r[i],t.call(e,this._layers[n],n)},eachBuiltinLayer:function(t,e){var n,i,r,a=this._zlevelList;for(r=0;r<a.length;r++)i=a[r],n=this._layers[i],n.__builtin__&&t.call(e,n,i)},eachOtherLayer:function(t,e){var n,i,r,a=this._zlevelList;for(r=0;r<a.length;r++)i=a[r],n=this._layers[i],n.__builtin__||t.call(e,n,i)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){function e(t){a&&(a.__endIndex!==t&&(a.__dirty=!0),a.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var r,a=null,s=0;for(n=0;n<t.length;n++){i=t[n];var l,c=i.zlevel;r!==c&&(r=c,s=0),i.incremental?(l=this.getLayer(c+m,this._needsManuallyCompositing),l.incremental=!0,s=1):l=this.getLayer(c+(s>0?g:0),this._needsManuallyCompositing),l.__builtin__||o("ZLevel "+c+" has been used by unkown layer "+l.id),l!==a&&(l.__used=!0,l.__startIndex!==n&&(l.__dirty=!0),l.__startIndex=n,l.incremental?l.__drawIndex=-1:l.__drawIndex=n,e(n),a=l),i.__dirty&&(l.__dirty=!0,l.incremental&&l.__drawIndex<0&&(l.__drawIndex=n))}e(n),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},setBackgroundColor:function(t){this._backgroundColor=t},configLayer:function(t,e){if(e){var n=this._layerConfig;n[t]?a.merge(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];if(r===t||r===t+g){var o=this._layers[r];a.merge(o,n[t],!0)}}}},delLayer:function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(a.indexOf(n,t),1))},resize:function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!==t||e!==this._height){for(var r in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].resize(t,e);a.each(this._progressiveLayers,(function(n){n.resize(t,e)})),this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(p).resize(t,e)}return this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[p].dom;var e=new c("image",this,t.pixelRatio||this.dpr);if(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,i=e.dom.height,r=e.ctx;this.eachLayer((function(t){t.__builtin__?r.drawImage(t.dom,0,0,n,i):t.renderToCanvas&&(e.ctx.save(),t.renderToCanvas(e.ctx),e.ctx.restore())}))}else for(var a={},o=this.storage.getDisplayList(!0),s=0;s<o.length;s++){var l=o[s];this._doPaintEl(l,e,!0,a)}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,n=["width","height"][t],i=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);var o=this.root,s=document.defaultView.getComputedStyle(o);return(o[i]||v(s[n])||v(o.style[n]))-(v(s[r])||0)-(v(s[a])||0)|0},pathToImage:function(t,e){e=e||this.dpr;var n=document.createElement("canvas"),i=n.getContext("2d"),r=t.getBoundingRect(),a=t.style,o=a.shadowBlur*e,s=a.shadowOffsetX*e,l=a.shadowOffsetY*e,c=a.hasStroke()?a.lineWidth:0,u=Math.max(c/2,-s+o),d=Math.max(c/2,s+o),f=Math.max(c/2,-l+o),p=Math.max(c/2,l+o),g=r.width+u+d,m=r.height+f+p;n.width=g*e,n.height=m*e,i.scale(e,e),i.clearRect(0,0,g,m),i.dpr=e;var v={position:t.position,rotation:t.rotation,scale:t.scale};t.position=[u-r.x,f-r.y],t.rotation=0,t.scale=[1,1],t.updateTransform(),t&&t.brush(i);var y=h,x=new y({style:{x:0,y:0,image:n}});return null!=v.position&&(x.position=t.position=v.position),null!=v.rotation&&(x.rotation=t.rotation=v.rotation),null!=v.scale&&(x.scale=t.scale=v.scale),x}};var I=C;t.exports=I},eda2:function(t,e,n){var i=n("6d8b"),r=n("e86a"),a=n("3842");function o(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:""))}function s(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var l=i.normalizeCssArray,c=/([&<>"'])/g,u={"&":"&","<":"<",">":">",'"':""","'":"'"};function h(t){return null==t?"":(t+"").replace(c,(function(t,e){return u[e]}))}var d=["a","b","c","d","e","f","g"],f=function(t,e){return"{"+t+(null==e?"":e)+"}"};function p(t,e,n){i.isArray(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],o=0;o<a.length;o++){var s=d[o];t=t.replace(f(s),f(s,0))}for(var l=0;l<r;l++)for(var c=0;c<a.length;c++){var u=e[l][a[c]];t=t.replace(f(d[c],l),n?h(u):u)}return t}function g(t,e,n){return i.each(e,(function(e,i){t=t.replace("{"+i+"}",n?h(e):e)})),t}function m(t,e){t=i.isString(t)?{color:t,extraCssText:e}:t||{};var n=t.color,r=t.type,a=(e=t.extraCssText,t.renderMode||"html"),o=t.markerId||"X";return n?"html"===a?"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+h(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+h(n)+";"+(e||"")+'"></span>':{renderMode:a,content:"{marker"+o+"|} ",style:{color:n}}:""}function v(t,e){return t+="","0000".substr(0,e-t.length)+t}function y(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=a.parseDate(e),r=n?"UTC":"",o=i["get"+r+"FullYear"](),s=i["get"+r+"Month"]()+1,l=i["get"+r+"Date"](),c=i["get"+r+"Hours"](),u=i["get"+r+"Minutes"](),h=i["get"+r+"Seconds"](),d=i["get"+r+"Milliseconds"]();return t=t.replace("MM",v(s,2)).replace("M",s).replace("yyyy",o).replace("yy",o%100).replace("dd",v(l,2)).replace("d",l).replace("hh",v(c,2)).replace("h",c).replace("mm",v(u,2)).replace("m",u).replace("ss",v(h,2)).replace("s",h).replace("SSS",v(d,3)),t}function x(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}var b=r.truncateText;function _(t){return r.getBoundingRect(t.text,t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich,t.truncate)}function w(t,e,n,i,a,o,s,l){return r.getBoundingRect(t,e,n,i,a,l,o,s)}function S(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location=t}else window.open(t,e)}e.addCommas=o,e.toCamelCase=s,e.normalizeCssArray=l,e.encodeHTML=h,e.formatTpl=p,e.formatTplSimple=g,e.getTooltipMarker=m,e.formatTime=y,e.capitalFirst=x,e.truncateText=b,e.getTextBoundingRect=_,e.getTextRect=w,e.windowOpen=S},edaf:function(t,e,n){var i=n("6d8b"),r=n("6cb7"),a=n("6179"),o=n("e0d3"),s=r.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(t,e,n){this._data,this._names,this.mergeDefaultAndTheme(t,n),this._initData()},mergeOption:function(t){s.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var t=this.option,e=t.data||[],n=t.axisType,r=this._names=[];if("category"===n){var s=[];i.each(e,(function(t,e){var n,a=o.getDataItemValue(t);i.isObject(t)?(n=i.clone(t),n.value=e):n=e,s.push(n),i.isString(a)||null!=a&&!isNaN(a)||(a=""),r.push(a+"")})),e=s}var l={category:"ordinal",time:"time"}[n]||"number",c=this._data=new a([{name:"value",type:l}],this);c.initData(e,r)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}}),l=s;t.exports=l},edb9:function(t,e,n){var i=n("6d8b");function r(t,e){e=e||{};var n=t.coordinateSystem,r=t.axis,a={},o=r.position,s=r.orient,l=n.getRect(),c=[l.x,l.x+l.width,l.y,l.y+l.height],u={horizontal:{top:c[2],bottom:c[3]},vertical:{left:c[0],right:c[1]}};a.position=["vertical"===s?u.vertical[o]:c[0],"horizontal"===s?u.horizontal[o]:c[3]];var h={horizontal:0,vertical:1};a.rotation=Math.PI/2*h[s];var d={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=d[o],t.get("axisTick.inside")&&(a.tickDirection=-a.tickDirection),i.retrieve(e.labelInside,t.get("axisLabel.inside"))&&(a.labelDirection=-a.labelDirection);var f=e.rotate;return null==f&&(f=t.get("axisLabel.rotate")),a.labelRotation="top"===o?-f:f,a.z2=1,a}e.layout=r},ee1a:function(t,e,n){var i=n("6d8b"),r=i.each,a=i.isString;function o(t,e,n){n=n||{};var i,o,s,l,c=n.byIndex,u=n.stackedCoordDimension,h=!(!t||!t.get("stack"));if(r(e,(function(t,n){a(t)&&(e[n]=t={name:t}),h&&!t.isExtraCoord&&(c||i||!t.ordinalMeta||(i=t),o||"ordinal"===t.type||"time"===t.type||u&&u!==t.coordDim||(o=t))})),!o||c||i||(c=!0),o){s="__\0ecstackresult",l="__\0ecstackedover",i&&(i.createInvertedIndices=!0);var d=o.coordDim,f=o.type,p=0;r(e,(function(t){t.coordDim===d&&p++})),e.push({name:s,coordDim:d,coordDimIndex:p,type:f,isExtraCoord:!0,isCalculationCoord:!0}),p++,e.push({name:l,coordDim:l,coordDimIndex:p,type:f,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:o&&o.name,stackedByDimension:i&&i.name,isStackedByIndex:c,stackedOverDimension:l,stackResultDimension:s}}function s(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function l(t,e){return s(t,e)?t.getCalculationInfo("stackResultDimension"):e}e.enableDataStack=o,e.isDimensionStacked=s,e.getStackedDimension=l},ee66:function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=n("2306"),o=n("eda2"),s=n("3842"),l={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},c={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},u=i.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,a=r.getRangeInfo(),o=r.getOrient();this._renderDayRect(t,a,i),this._renderLines(t,a,o,i),this._renderYearText(t,a,o,i),this._renderMonthText(t,o,i),this._renderWeekText(t,a,o,i)},_renderDayRect:function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),s=i.getCellHeight(),l=e.start.time;l<=e.end.time;l=i.getNextNDay(l,1).time){var c=i.dataToRect([l],!1).tl,u=new a.Rect({shape:{x:c[0],y:c[1],width:o,height:s},cursor:"default",style:r});n.add(u)}},_renderLines:function(t,e,n,i){var r=this,a=t.coordinateSystem,o=t.getModel("splitLine.lineStyle").getLineStyle(),s=t.get("splitLine.show"),l=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=e.start,u=0;c.time<=e.end.time;u++){d(c.formatedDate),0===u&&(c=a.getDateInfo(e.start.y+"-"+e.start.m));var h=c.date;h.setMonth(h.getMonth()+1),c=a.getDateInfo(h)}function d(e){r._firstDayOfMonth.push(a.getDateInfo(e)),r._firstDayPoints.push(a.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,o,i)}d(a.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),o,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),o,i)},_getEdgesPoints:function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},_drawSplitline:function(t,e,n){var i=new a.Polyline({z2:20,shape:{points:t},style:e});n.add(i)},_getLinePointsOfOneWeek:function(t,e,n){var i=t.coordinateSystem;e=i.getDateInfo(e);for(var r=[],a=0;a<7;a++){var o=i.getNextNDay(e.time,a),s=i.dataToRect([o.time],!1);r[2*o.day]=s.tl,r[2*o.day+1]=s["horizontal"===n?"bl":"tr"]}return r},_formatterLabel:function(t,e){return"string"===typeof t&&t?o.formatTplSimple(t,e):"function"===typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,n,i,r){e=e.slice();var a=["center","bottom"];"bottom"===i?(e[1]+=r,a=["center","top"]):"left"===i?e[0]-=r:"right"===i?(e[0]+=r,a=["center","top"]):e[1]-=r;var o=0;return"left"!==i&&"right"!==i||(o=Math.PI/2),{rotation:o,position:e,style:{textAlign:a[0],textVerticalAlign:a[1]}}},_renderYearText:function(t,e,n,i){var r=t.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),s=r.get("position");s||(s="horizontal"!==n?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(l[0][0]+l[1][0])/2,u=(l[0][1]+l[1][1])/2,h="horizontal"===n?0:1,d={top:[c,l[h][1]],bottom:[c,l[1-h][1]],left:[l[1-h][0],u],right:[l[h][0],u]},f=e.start.y;+e.end.y>+e.start.y&&(f=f+"-"+e.end.y);var p=r.get("formatter"),g={start:e.start.y,end:e.end.y,nameMap:f},m=this._formatterLabel(p,g),v=new a.Text({z2:30});a.setTextStyle(v.style,r,{text:m}),v.attr(this._yearTextPositionControl(v,d[s],n,s,o)),i.add(v)}},_monthTextPositionControl:function(t,e,n,i,r){var a="left",o="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(a="center"),"start"===i&&(o="bottom")):(s+=r,e&&(o="middle"),"start"===i&&(a="right")),{x:s,y:l,textAlign:a,textVerticalAlign:o}},_renderMonthText:function(t,e,n){var i=t.getModel("monthLabel");if(i.get("show")){var o=i.get("nameMap"),s=i.get("margin"),c=i.get("position"),u=i.get("align"),h=[this._tlpoints,this._blpoints];r.isString(o)&&(o=l[o.toUpperCase()]||[]);var d="start"===c?0:1,f="horizontal"===e?0:1;s="start"===c?-s:s;for(var p="center"===u,g=0;g<h[d].length-1;g++){var m=h[d][g].slice(),v=this._firstDayOfMonth[g];if(p){var y=this._firstDayPoints[g];m[f]=(y[f]+h[0][g+1][f])/2}var x=i.get("formatter"),b=o[+v.m-1],_={yyyy:v.y,yy:(v.y+"").slice(2),MM:v.m,M:+v.m,nameMap:b},w=this._formatterLabel(x,_),S=new a.Text({z2:30});r.extend(a.setTextStyle(S.style,i,{text:w}),this._monthTextPositionControl(m,p,e,c,s)),n.add(S)}}},_weekTextPositionControl:function(t,e,n,i,r){var a="center",o="middle",s=t[0],l=t[1],c="start"===n;return"horizontal"===e?(s=s+i+(c?1:-1)*r[0]/2,a=c?"right":"left"):(l=l+i+(c?1:-1)*r[1]/2,o=c?"bottom":"top"),{x:s,y:l,textAlign:a,textVerticalAlign:o}},_renderWeekText:function(t,e,n,i){var o=t.getModel("dayLabel");if(o.get("show")){var l=t.coordinateSystem,u=o.get("position"),h=o.get("nameMap"),d=o.get("margin"),f=l.getFirstDayOfWeek();r.isString(h)&&(h=c[h.toUpperCase()]||[]);var p=l.getNextNDay(e.end.time,7-e.lweek).time,g=[l.getCellWidth(),l.getCellHeight()];d=s.parsePercent(d,g["horizontal"===n?0:1]),"start"===u&&(p=l.getNextNDay(e.start.time,-(7+e.fweek)).time,d=-d);for(var m=0;m<7;m++){var v=l.getNextNDay(p,m),y=l.dataToRect([v.time],!1).center,x=m;x=Math.abs((m+f)%7);var b=new a.Text({z2:30});r.extend(a.setTextStyle(b.style,o,{text:h[x]}),this._weekTextPositionControl(y,n,u,d,g)),i.add(b)}}}});t.exports=u},ee84:function(t,e,n){var i=n("20c8"),r=n("401b"),a=r.applyTransform,o=i.CMD,s=[[],[],[]],l=Math.sqrt,c=Math.atan2;function u(t,e){var n,i,r,u,h,d=t.data,f=o.M,p=o.C,g=o.L,m=o.R,v=o.A,y=o.Q;for(r=0,u=0;r<d.length;){switch(n=d[r++],u=r,i=0,n){case f:i=1;break;case g:i=1;break;case p:i=3;break;case y:i=2;break;case v:var x=e[4],b=e[5],_=l(e[0]*e[0]+e[1]*e[1]),w=l(e[2]*e[2]+e[3]*e[3]),S=c(-e[1]/w,e[0]/_);d[r]*=_,d[r++]+=x,d[r]*=w,d[r++]+=b,d[r++]*=_,d[r++]*=w,d[r++]+=S,d[r++]+=S,r+=2,u=r;break;case m:A[0]=d[r++],A[1]=d[r++],a(A,A,e),d[u++]=A[0],d[u++]=A[1],A[0]+=d[r++],A[1]+=d[r++],a(A,A,e),d[u++]=A[0],d[u++]=A[1]}for(h=0;h<i;h++){var A=s[h];A[0]=d[r++],A[1]=d[r++],a(A,A,e),d[u++]=A[0],d[u++]=A[1]}}}t.exports=u},ee95:function(t,e,n){var i=n("3eba"),r=n("66a4");n("a04e"),n("3942"),n("dd7e"),n("347f"),i.registerPreprocessor(r)},ee98:function(t,e){function n(t){return t instanceof Array||(t=[t,t]),t}var i="lineStyle.opacity".split("."),r={seriesType:"lines",reset:function(t,e,r){var a=n(t.get("symbol")),o=n(t.get("symbolSize")),s=t.getData();function l(t,e){var r=t.getItemModel(e),a=n(r.getShallow("symbol",!0)),o=n(r.getShallow("symbolSize",!0)),s=r.get(i);a[0]&&t.setItemVisual(e,"fromSymbol",a[0]),a[1]&&t.setItemVisual(e,"toSymbol",a[1]),o[0]&&t.setItemVisual(e,"fromSymbolSize",o[0]),o[1]&&t.setItemVisual(e,"toSymbolSize",o[1]),t.setItemVisual(e,"opacity",s)}return s.setVisual("fromSymbol",a&&a[0]),s.setVisual("toSymbol",a&&a[1]),s.setVisual("fromSymbolSize",o&&o[0]),s.setVisual("toSymbolSize",o&&o[1]),s.setVisual("opacity",t.get(i)),{dataEach:s.hasItemOption?l:null}}};t.exports=r},eec4:function(t,e,n){"use strict";var i=n("b770").forEach,r=n("5be5"),a=n("49ad"),o=n("2cef"),s=n("5058"),l=n("abb4"),c=n("18e9"),u=n("c274"),h=n("d6eb"),d=n("18d2"),f=n("c946");function p(t){return Array.isArray(t)||void 0!==t.length}function g(t){if(Array.isArray(t))return t;var e=[];return i(t,(function(t){e.push(t)})),e}function m(t){return t&&1===t.nodeType}function v(t,e,n){var i=t[e];return void 0!==i&&null!==i||void 0===n?i:n}t.exports=function(t){var e;if(t=t||{},t.idHandler)e={get:function(e){return t.idHandler.get(e,!0)},set:t.idHandler.set};else{var n=o(),y=s({idGenerator:n,stateHandler:h});e=y}var x=t.reporter;if(!x){var b=!1===x;x=l(b)}var _=v(t,"batchProcessor",u({reporter:x})),w={};w.callOnAdd=!!v(t,"callOnAdd",!0),w.debug=!!v(t,"debug",!1);var S,A=a(e),C=r({stateHandler:h}),I=v(t,"strategy","object"),T=v(t,"important",!1),k={reporter:x,batchProcessor:_,stateHandler:h,idHandler:e,important:T};if("scroll"===I&&(c.isLegacyOpera()?(x.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),I="object"):c.isIE(9)&&(x.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),I="object")),"scroll"===I)S=f(k);else{if("object"!==I)throw new Error("Invalid strategy name: "+I);S=d(k)}var M={};function D(t,n,r){function a(t){var e=A.get(t);i(e,(function(e){e(t)}))}function o(t,e,n){A.add(e,n),t&&n(e)}if(r||(r=n,n=t,t={}),!n)throw new Error("At least one element required.");if(!r)throw new Error("Listener required.");if(m(n))n=[n];else{if(!p(n))return x.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=g(n)}var s=0,l=v(t,"callOnAdd",w.callOnAdd),c=v(t,"onReady",(function(){})),u=v(t,"debug",w.debug);i(n,(function(t){h.getState(t)||(h.initState(t),e.set(t));var d=e.get(t);if(u&&x.log("Attaching listener to element",d,t),!C.isDetectable(t))return u&&x.log(d,"Not detectable."),C.isBusy(t)?(u&&x.log(d,"System busy making it detectable"),o(l,t,r),M[d]=M[d]||[],void M[d].push((function(){s++,s===n.length&&c()}))):(u&&x.log(d,"Making detectable..."),C.markBusy(t,!0),S.makeDetectable({debug:u,important:T},t,(function(t){if(u&&x.log(d,"onElementDetectable"),h.getState(t)){C.markAsDetectable(t),C.markBusy(t,!1),S.addListener(t,a),o(l,t,r);var e=h.getState(t);if(e&&e.startSize){var f=t.offsetWidth,p=t.offsetHeight;e.startSize.width===f&&e.startSize.height===p||a(t)}M[d]&&i(M[d],(function(t){t()}))}else u&&x.log(d,"Element uninstalled before being detectable.");delete M[d],s++,s===n.length&&c()})));u&&x.log(d,"Already detecable, adding listener."),o(l,t,r),s++})),s===n.length&&c()}function E(t){if(!t)return x.error("At least one element is required.");if(m(t))t=[t];else{if(!p(t))return x.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");t=g(t)}i(t,(function(t){A.removeAllListeners(t),S.uninstall(t),h.cleanState(t)}))}function L(t){S.initDocument&&S.initDocument(t)}return{listenTo:D,removeListener:A.removeListener,removeAllListeners:A.removeAllListeners,uninstall:E,initDocument:L}}},eeea:function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("3eba")),a=n("6d8b"),o=n("0141"),s=n("f934"),l=n("3842"),c=n("5b87"),u=n("ec34");function h(t,e){var n=t.get("boundingCoords");if(null!=n){var i=n[0],r=n[1];isNaN(i[0])||isNaN(i[1])||isNaN(r[0])||isNaN(r[1])||this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}var a,o=this.getBoundingRect(),c=t.get("layoutCenter"),u=t.get("layoutSize"),h=e.getWidth(),d=e.getHeight(),f=o.width/o.height*this.aspectScale,p=!1;if(c&&u&&(c=[l.parsePercent(c[0],h),l.parsePercent(c[1],d)],u=l.parsePercent(u,Math.min(h,d)),isNaN(c[0])||isNaN(c[1])||isNaN(u)||(p=!0)),p){var g={};f>1?(g.width=u,g.height=u/f):(g.height=u,g.width=u*f),g.y=c[1]-g.height/2,g.x=c[0]-g.width/2}else a=t.getBoxLayoutParams(),a.aspect=f,g=s.getLayoutRect(a,{width:h,height:d});this.setViewRect(g.x,g.y,g.width,g.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function d(t,e){a.each(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}var f={dimensions:o.prototype.dimensions,create:function(t,e){var n=[];t.eachComponent("geo",(function(t,i){var r=t.get("map"),a=t.get("aspectScale"),s=!0,l=u.retrieveMap(r);l&&l[0]&&"svg"===l[0].type?(null==a&&(a=1),s=!1):null==a&&(a=.75);var c=new o(r+i,r,t.get("nameMap"),s);c.aspectScale=a,c.zoomLimit=t.get("scaleLimit"),n.push(c),d(c,t),t.coordinateSystem=c,c.model=t,c.resize=h,c.resize(t,e)})),t.eachSeries((function(t){var e=t.get("coordinateSystem");if("geo"===e){var i=t.get("geoIndex")||0;t.coordinateSystem=n[i]}}));var i={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();i[e]=i[e]||[],i[e].push(t)}})),a.each(i,(function(t,i){var r=a.map(t,(function(t){return t.get("nameMap")})),s=new o(i,i,a.mergeAll(r));s.zoomLimit=a.retrieve.apply(null,a.map(t,(function(t){return t.get("scaleLimit")}))),n.push(s),s.resize=h,s.aspectScale=t[0].get("aspectScale"),s.resize(t[0],e),a.each(t,(function(t){t.coordinateSystem=s,d(s,t)}))})),n},getFilledRegions:function(t,e,n){for(var i=(t||[]).slice(),r=a.createHashMap(),o=0;o<i.length;o++)r.set(i[o].name,i[o]);var s=c.load(e,n);return a.each(s.regions,(function(t){var e=t.name;!r.get(e)&&i.push({name:e})})),i}};r.registerCoordinateSystem("geo",f);var p=f;t.exports=p},ef2b:function(t,e,n){var i=n("401b"),r=i.scaleAndAdd;function a(t,e,n){for(var a=n.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],c=null==n.gravity?.1:n.gravity,u=0;u<t.length;u++){var h=t[u];h.p||(h.p=i.create(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=i.clone(h.p),h.edges=null}var d=null==n.friction?.6:n.friction,f=d;return{warmUp:function(){f=.8*d},setFixed:function(e){t[e].fixed=!0},setUnfixed:function(e){t[e].fixed=!1},step:function(n){for(var a=[],o=t.length,s=0;s<e.length;s++){var u=e[s];if(!u.ignoreForceLayout){var h=u.n1,d=u.n2;i.sub(a,d.p,h.p);var p=i.len(a)-u.d,g=d.w/(h.w+d.w);isNaN(g)&&(g=0),i.normalize(a,a),!h.fixed&&r(h.p,h.p,a,g*p*f),!d.fixed&&r(d.p,d.p,a,-(1-g)*p*f)}}for(s=0;s<o;s++){var m=t[s];m.fixed||(i.sub(a,l,m.p),r(m.p,m.p,a,c*f))}for(s=0;s<o;s++){h=t[s];for(var v=s+1;v<o;v++){d=t[v];i.sub(a,d.p,h.p);p=i.len(a);0===p&&(i.set(a,Math.random()-.5,Math.random()-.5),p=1);var y=(h.rep+d.rep)/p/p;!h.fixed&&r(h.pp,h.pp,a,y),!d.fixed&&r(d.pp,d.pp,a,-y)}}var x=[];for(s=0;s<o;s++){m=t[s];m.fixed||(i.sub(x,m.p,m.pp),r(m.p,m.p,x,f),i.copy(m.pp,m.p))}f*=.992,n&&n(t,e,f<.01)}}}e.forceLayout=a},ef6a:function(t,e){function n(t,e,n,a,o,s){t=t||0;var l=n[1]-n[0];if(null!=o&&(o=r(o,[0,l])),null!=s&&(s=Math.max(s,null!=o?o:0)),"all"===a){var c=Math.abs(e[1]-e[0]);c=r(c,[0,l]),o=s=r(c,[o,s]),a=0}e[0]=r(e[0],n),e[1]=r(e[1],n);var u=i(e,a);e[a]+=t;var h=o||0,d=n.slice();u.sign<0?d[0]+=h:d[1]-=h,e[a]=r(e[a],d);var f=i(e,a);null!=o&&(f.sign!==u.sign||f.span<o)&&(e[1-a]=e[a]+u.sign*o);f=i(e,a);return null!=s&&f.span>s&&(e[1-a]=e[a]+f.sign*s),e}function i(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function r(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}t.exports=n},ef97:function(t,e,n){var i=n("3eba");n("217b"),n("f17f");var r=n("7f96"),a=n("87c3"),o=n("fdde");n("01ed"),i.registerVisual(r("line","circle","line")),i.registerLayout(a("line")),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,o("line"))},ef97a:function(t,e,n){var i=n("3eba");n("2163"),n("6cd8"),n("bf9b");var r=n("7f96"),a=n("ca29");i.registerVisual(r("tree","circle")),i.registerLayout(a)},f123:function(t,e,n){var i=n("9f82"),r=i.prepareDataCoordInfo,a=i.getStackedOnPoint;function o(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}function s(t,e,n,i,s,l,c,u){for(var h=o(t,e),d=[],f=[],p=[],g=[],m=[],v=[],y=[],x=r(s,e,c),b=r(l,t,u),_=0;_<h.length;_++){var w=h[_],S=!0;switch(w.cmd){case"=":var A=t.getItemLayout(w.idx),C=e.getItemLayout(w.idx1);(isNaN(A[0])||isNaN(A[1]))&&(A=C.slice()),d.push(A),f.push(C),p.push(n[w.idx]),g.push(i[w.idx1]),y.push(e.getRawIndex(w.idx1));break;case"+":var I=w.idx;d.push(s.dataToPoint([e.get(x.dataDimsForPoint[0],I),e.get(x.dataDimsForPoint[1],I)])),f.push(e.getItemLayout(I).slice()),p.push(a(x,s,e,I)),g.push(i[I]),y.push(e.getRawIndex(I));break;case"-":I=w.idx;var T=t.getRawIndex(I);T!==I?(d.push(t.getItemLayout(I)),f.push(l.dataToPoint([t.get(b.dataDimsForPoint[0],I),t.get(b.dataDimsForPoint[1],I)])),p.push(n[I]),g.push(a(b,l,t,I)),y.push(T)):S=!1}S&&(m.push(w),v.push(v.length))}v.sort((function(t,e){return y[t]-y[e]}));var k=[],M=[],D=[],E=[],L=[];for(_=0;_<v.length;_++){I=v[_];k[_]=d[I],M[_]=f[I],D[_]=p[I],E[_]=g[I],L[_]=m[I]}return{current:k,next:M,stackedOnCurrent:D,stackedOnNext:E,status:L}}t.exports=s},f138:function(t,e,n){var i=n("dcb3"),r=n("ff2e"),a=n("edb9"),o=n("6679"),s=["x","y"],l=["width","height"],c=i.extend({makeElOption:function(t,e,n,i,o){var s=n.axis,l=s.coordinateSystem,c=d(l,1-h(s)),f=l.dataToPoint(e)[0],p=i.get("type");if(p&&"none"!==p){var g=r.buildElStyle(i),m=u[p](s,f,c);m.style=g,t.graphicKey=m.type,t.pointer=m}var v=a.layout(n);r.buildCartesianSingleLabelElOption(e,t,v,n,i,o)},getHandleTransform:function(t,e,n){var i=a.layout(e,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:r.getTransformedPosition(e.axis,t,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,i){var r=n.axis,a=r.coordinateSystem,o=h(r),s=d(a,o),l=t.position;l[o]+=e[o],l[o]=Math.min(s[1],l[o]),l[o]=Math.max(s[0],l[o]);var c=d(a,1-o),u=(c[1]+c[0])/2,f=[u,u];return f[o]=l[o],{position:l,rotation:t.rotation,cursorPoint:f,tooltipOption:{verticalAlign:"middle"}}}}),u={line:function(t,e,n){var i=r.makeLineShape([e,n[0]],[e,n[1]],h(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=t.getBandWidth(),a=n[1]-n[0];return{type:"Rect",shape:r.makeRectShape([e-i/2,n[0]],[i,a],h(t))}}};function h(t){return t.isHorizontal()?0:1}function d(t,e){var n=t.getRect();return[n[s[e]],n[s[e]]+n[l[e]]]}o.registerAxisPointerClass("SingleAxisPointer",c);var f=c;t.exports=f},f14c:function(t,e,n){var i=n("84d5"),r=n("f934"),a=r.mergeLayoutParam,o=r.getLayoutParams,s=i.extend({type:"legend.scroll",setScrollDataIndex:function(t){this.option.scrollDataIndex=t},defaultOption:{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},init:function(t,e,n,i){var r=o(t);s.superCall(this,"init",t,e,n,i),l(this,t,r)},mergeOption:function(t,e){s.superCall(this,"mergeOption",t,e),l(this,this.option,t)}});function l(t,e,n){var i=t.getOrient(),r=[1,1];r[i.index]=0,a(e,n,{type:"box",ignoreSize:r})}var c=s;t.exports=c},f170:function(t,e,n){n("a87d");var i=n("697e7"),r=i.registerPainter,a=n("e9f9");r("vml",a)},f17f:function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),a=n("e263"),o=a.fromPoints,s=n("f706"),l=n("1418"),c=n("f123"),u=n("2306"),h=n("e0d3"),d=n("d4d1"),f=d.Polyline,p=d.Polygon,g=n("e887"),m=n("9f82"),v=m.prepareDataCoordInfo,y=m.getStackedOnPoint,x=n("b0af"),b=x.createGridClipPath,_=x.createPolarClipPath;function w(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++){var i=t[n],r=e[n];if(i[0]!==r[0]||i[1]!==r[1])return}return!0}}function S(t,e){var n=[],i=[],r=[],a=[];return o(t,n,i),o(e,r,a),Math.max(Math.abs(n[0]-r[0]),Math.abs(n[1]-r[1]),Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]))}function A(t){return"number"===typeof t?t:t?.5:0}function C(t,e,n){if(!n.valueDim)return[];for(var i=[],r=0,a=e.count();r<a;r++)i.push(y(n,t,e,r));return i}function I(t,e,n){for(var i=e.getBaseAxis(),r="x"===i.dim||"radius"===i.dim?0:1,a=[],o=0;o<t.length-1;o++){var s=t[o+1],l=t[o];a.push(l);var c=[];switch(n){case"end":c[r]=s[r],c[1-r]=l[1-r],a.push(c);break;case"middle":var u=(l[r]+s[r])/2,h=[];c[r]=h[r]=u,c[1-r]=l[1-r],h[1-r]=s[1-r],a.push(c),a.push(h);break;default:c[r]=l[r],c[1-r]=s[1-r],a.push(c)}}return t[o]&&a.push(t[o]),a}function T(t,e){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var i,a,o=n.length-1;o>=0;o--){var s=n[o].dimension,l=t.dimensions[s],c=t.getDimensionInfo(l);if(i=c&&c.coordDim,"x"===i||"y"===i){a=n[o];break}}if(a){var h=e.getAxis(i),d=r.map(a.stops,(function(t){return{coord:h.toGlobalCoord(h.dataToCoord(t.value)),color:t.color}})),f=d.length,p=a.outerColors.slice();f&&d[0].coord>d[f-1].coord&&(d.reverse(),p.reverse());var g=10,m=d[0].coord-g,v=d[f-1].coord+g,y=v-m;if(y<.001)return"transparent";r.each(d,(function(t){t.offset=(t.coord-m)/y})),d.push({offset:f?d[f-1].offset:.5,color:p[1]||"transparent"}),d.unshift({offset:f?d[0].offset:.5,color:p[0]||"transparent"});var x=new u.LinearGradient(0,0,0,0,d,!0);return x[i]=m,x[i+"2"]=v,x}}}function k(t,e,n){var i=t.get("showAllSymbol"),a="auto"===i;if(!i||a){var o=n.getAxesByScale("ordinal")[0];if(o&&(!a||!M(o,e))){var s=e.mapDimension(o.dim),l={};return r.each(o.getViewLabels(),(function(t){l[t.tickValue]=1})),function(t){return!l.hasOwnProperty(e.get(s,t))}}}}function M(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),a=Math.max(1,Math.round(r/5)),o=0;o<r;o+=a)if(1.5*l.getSymbolSize(e,o)[t.isHorizontal()?1:0]>i)return!1;return!0}function D(t,e,n){if("cartesian2d"===t.type){var i=t.getBaseAxis().isHorizontal(),r=b(t,e,n);if(!n.get("clip",!0)){var a=r.shape,o=Math.max(a.width,a.height);i?(a.y-=o,a.height+=2*o):(a.x-=o,a.width+=2*o)}return r}return _(t,e,n)}var E=g.extend({type:"line",init:function(){var t=new u.Group,e=new s;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,n){var i=t.coordinateSystem,a=this.group,o=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),c=o.mapArray(o.getItemLayout),u="polar"===i.type,h=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,g=this._lineGroup,m=t.get("animation"),y=!l.isEmpty(),x=l.get("origin"),b=v(i,o,x),_=C(i,o,b),S=t.get("showSymbol"),M=S&&!u&&k(t,o,i),E=this._data;E&&E.eachItemGraphicEl((function(t,e){t.__temp&&(a.remove(t),E.setItemGraphicEl(e,null))})),S||d.remove(),a.add(g);var L,P=!u&&t.get("step");i&&i.getArea&&t.get("clip",!0)&&(L=i.getArea(),null!=L.width?(L.x-=.1,L.y-=.1,L.width+=.2,L.height+=.2):L.r0&&(L.r0-=.5,L.r1+=.5)),this._clipShapeForSymbol=L,f&&h.type===i.type&&P===this._step?(y&&!p?p=this._newPolygon(c,_,i,m):p&&!y&&(g.remove(p),p=this._polygon=null),g.setClipPath(D(i,!1,t)),S&&d.updateData(o,{isIgnore:M,clipShape:L}),o.eachItemGraphicEl((function(t){t.stopAnimation(!0)})),w(this._stackedOnPoints,_)&&w(this._points,c)||(m?this._updateAnimation(o,_,i,n,P,x):(P&&(c=I(c,i,P),_=I(_,i,P)),f.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:_})))):(S&&d.updateData(o,{isIgnore:M,clipShape:L}),P&&(c=I(c,i,P),_=I(_,i,P)),f=this._newPolyline(c,i,m),y&&(p=this._newPolygon(c,_,i,m)),g.setClipPath(D(i,!0,t)));var O=T(o,i)||o.getVisual("color");f.useStyle(r.defaults(s.getLineStyle(),{fill:"none",stroke:O,lineJoin:"bevel"}));var R=t.get("smooth");if(R=A(t.get("smooth")),f.setShape({smooth:R,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),p){var N=o.getCalculationInfo("stackedOnSeries"),B=0;p.useStyle(r.defaults(l.getAreaStyle(),{fill:O,opacity:.7,lineJoin:"bevel"})),N&&(B=A(N.get("smooth"))),p.setShape({smooth:R,stackedOnSmooth:B,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=o,this._coordSys=i,this._stackedOnPoints=_,this._points=c,this._step=P,this._valueOrigin=x},dispose:function(){},highlight:function(t,e,n,i){var r=t.getData(),a=h.queryDataIndex(r,i);if(!(a instanceof Array)&&null!=a&&a>=0){var o=r.getItemGraphicEl(a);if(!o){var s=r.getItemLayout(a);if(!s)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s[0],s[1]))return;o=new l(r,a),o.position=s,o.setZ(t.get("zlevel"),t.get("z")),o.ignore=isNaN(s[0])||isNaN(s[1]),o.__temp=!0,r.setItemGraphicEl(a,o),o.stopSymbolAnimation(!0),this.group.add(o)}o.highlight()}else g.prototype.highlight.call(this,t,e,n,i)},downplay:function(t,e,n,i){var r=t.getData(),a=h.queryDataIndex(r,i);if(null!=a&&a>=0){var o=r.getItemGraphicEl(a);o&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else g.prototype.downplay.call(this,t,e,n,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new f({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new p({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_updateAnimation:function(t,e,n,i,r,a){var o=this._polyline,s=this._polygon,l=t.hostModel,h=c(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,a),d=h.current,f=h.stackedOnCurrent,p=h.next,g=h.stackedOnNext;if(r&&(d=I(h.current,n,r),f=I(h.stackedOnCurrent,n,r),p=I(h.next,n,r),g=I(h.stackedOnNext,n,r)),S(d,p)>3e3||s&&S(f,g)>3e3)return o.setShape({points:p}),void(s&&s.setShape({points:p,stackedOnPoints:g}));o.shape.__points=h.current,o.shape.points=d,u.updateProps(o,{shape:{points:p}},l),s&&(s.setShape({points:d,stackedOnPoints:f}),u.updateProps(s,{shape:{points:p,stackedOnPoints:g}},l));for(var m=[],v=h.status,y=0;y<v.length;y++){var x=v[y].cmd;if("="===x){var b=t.getItemGraphicEl(v[y].idx1);b&&m.push({el:b,ptIdx:y})}}o.animators&&o.animators.length&&o.animators[0].during((function(){for(var t=0;t<m.length;t++){var e=m[t].el;e.attr("position",o.shape.__points[m[t].ptIdx])}}))},remove:function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});t.exports=E},f219:function(t,e){var n="#eee",i=function(){return{axisLine:{lineStyle:{color:n}},axisTick:{lineStyle:{color:n}},axisLabel:{textStyle:{color:n}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:n}}}},r=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],a={color:r,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:n},crossStyle:{color:n},label:{color:"#000"}}},legend:{textStyle:{color:n}},textStyle:{color:n},title:{textStyle:{color:n}},toolbox:{iconStyle:{normal:{borderColor:n}}},dataZoom:{textStyle:{color:n}},visualMap:{textStyle:{color:n}},timeline:{lineStyle:{color:n},itemStyle:{normal:{color:r[1]}},label:{normal:{textStyle:{color:n}}},controlStyle:{normal:{color:n,borderColor:n}}},timeAxis:i(),logAxis:i(),valueAxis:i(),categoryAxis:i(),line:{symbol:"circle"},graph:{color:r},gauge:{title:{textStyle:{color:n}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};a.categoryAxis.splitLine.show=!1;var o=a;t.exports=o},f273:function(t,e,n){var i=n("6d8b"),r=n("2306"),a=n("fab2"),o=n("6679"),s=n("0156"),l=n("58df"),c=l.rectCoordAxisBuildSplitArea,u=l.rectCoordAxisHandleRemove,h=["axisLine","axisTickLabel","axisName"],d=["splitArea","splitLine","minorSplitLine"],f=o.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(t,e,n,o){this.group.removeAll();var l=this._axisGroup;if(this._axisGroup=new r.Group,this.group.add(this._axisGroup),t.get("show")){var c=t.getCoordSysModel(),u=s.layout(c,t),p=new a(t,u);i.each(h,p.add,p),this._axisGroup.add(p.getGroup()),i.each(d,(function(e){t.get(e+".show")&&this["_"+e](t,c)}),this),r.groupTransition(l,this._axisGroup,t),f.superCall(this,"render",t,e,n,o)}},remove:function(){u(this)},_splitLine:function(t,e){var n=t.axis;if(!n.scale.isBlank()){var a=t.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=i.isArray(s)?s:[s];for(var l=e.coordinateSystem.getRect(),c=n.isHorizontal(),u=0,h=n.getTicksCoords({tickModel:a}),d=[],f=[],p=o.getLineStyle(),g=0;g<h.length;g++){var m=n.toGlobalCoord(h[g].coord);c?(d[0]=m,d[1]=l.y,f[0]=m,f[1]=l.y+l.height):(d[0]=l.x,d[1]=m,f[0]=l.x+l.width,f[1]=m);var v=u++%s.length,y=h[g].tickValue;this._axisGroup.add(new r.Line({anid:null!=y?"line_"+h[g].tickValue:null,subPixelOptimize:!0,shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]},style:i.defaults({stroke:s[v]},p),silent:!0}))}}},_minorSplitLine:function(t,e){var n=t.axis,i=t.getModel("minorSplitLine"),a=i.getModel("lineStyle"),o=e.coordinateSystem.getRect(),s=n.isHorizontal(),l=n.getMinorTicksCoords();if(l.length)for(var c=[],u=[],h=a.getLineStyle(),d=0;d<l.length;d++)for(var f=0;f<l[d].length;f++){var p=n.toGlobalCoord(l[d][f].coord);s?(c[0]=p,c[1]=o.y,u[0]=p,u[1]=o.y+o.height):(c[0]=o.x,c[1]=p,u[0]=o.x+o.width,u[1]=p),this._axisGroup.add(new r.Line({anid:"minor_line_"+l[d][f].tickValue,subPixelOptimize:!0,shape:{x1:c[0],y1:c[1],x2:u[0],y2:u[1]},style:h,silent:!0}))}},_splitArea:function(t,e){c(this,this._axisGroup,t,e)}});f.extend({type:"xAxis"}),f.extend({type:"yAxis"})},f279:function(t,e,n){var i=n("9850"),r=n("e263"),a=n("401b"),o=n("0655");function s(t,e,n){if(this.name=t,this.geometries=e,n)n=[n[0],n[1]];else{var i=this.getBoundingRect();n=[i.x+i.width/2,i.y+i.height/2]}this.center=n}s.prototype={constructor:s,properties:null,getBoundingRect:function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,n=[e,e],o=[-e,-e],s=[],l=[],c=this.geometries,u=0;u<c.length;u++)if("polygon"===c[u].type){var h=c[u].exterior;r.fromPoints(h,s,l),a.min(n,n,s),a.max(o,o,l)}return 0===u&&(n[0]=n[1]=o[0]=o[1]=0),this._rect=new i(n[0],n[1],o[0]-n[0],o[1]-n[1])},contain:function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,r=n.length;i<r;i++)if("polygon"===n[i].type){var a=n[i].exterior,s=n[i].interiors;if(o.contain(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(o.contain(s[l]))continue t;return!0}}return!1},transformTo:function(t,e,n,r){var o=this.getBoundingRect(),s=o.width/o.height;n?r||(r=n/s):n=s*r;for(var l=new i(t,e,n,r),c=o.calculateTransform(l),u=this.geometries,h=0;h<u.length;h++)if("polygon"===u[h].type){for(var d=u[h].exterior,f=u[h].interiors,p=0;p<d.length;p++)a.applyTransform(d[p],d[p],c);for(var g=0;g<(f?f.length:0);g++)for(p=0;p<f[g].length;p++)a.applyTransform(f[g][p],f[g][p],c)}o=this._rect,o.copy(l),this.center=[o.x+o.width/2,o.y+o.height/2]},cloneShallow:function(t){null==t&&(t=this.name);var e=new s(t,this.geometries,this.center);return e._rect=this._rect,e.transformTo=null,e}};var l=s;t.exports=l},f306:function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=n("88b3"),o=n("6569");n("849b"),n("217c"),n("c515");var s=5;i.extendComponentView({type:"parallel",render:function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},r.each(l,(function(t,e){n.getZr().on(e,this._handlers[e]=r.bind(t,this))}),this)),a.createOrUpdate(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},dispose:function(t,e){r.each(this._handlers,(function(t,n){e.getZr().off(n,t)})),this._handlers=null},_throttledDispatchExpand:function(t){this._dispatchExpand(t)},_dispatchExpand:function(t){t&&this._api.dispatchAction(r.extend({type:"parallelAxisExpand"},t))}});var l={mousedown:function(t){c(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(c(this,"click")&&e){var n=[t.offsetX,t.offsetY],i=Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2);if(i>s)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&c(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i&&null})}}};function c(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}i.registerPreprocessor(o)},f31f:function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("3eba")),a=n("6d8b"),o=n("2b8c"),s=n("4319"),l=["#ddd"],c=r.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,e){var n=this.option;!e&&o.replaceVisualOption(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:l},i.hasOwnProperty("liftZ")||(i.liftZ=5)},setAreas:function(t){t&&(this.areas=a.map(t,(function(t){return u(this.option,t)}),this))},setBrushOption:function(t){this.brushOption=u(this.option,t),this.brushType=this.brushOption.brushType}});function u(t,e){return a.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new s(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var h=c;t.exports=h},f47d:function(t,e,n){var i=n("6d8b"),r=(i.assert,i.isArray),a=n("4e08");a.__DEV__;function o(t){return new s(t)}function s(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0,this.context}var l=s.prototype;l.perform=function(t){var e,n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var a=this.context;a.data=a.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var o,s=f(this._modBy),l=this._modDataCount||0,c=f(t&&t.modBy),d=t&&t.modDataCount||0;function f(t){return!(t>=1)&&(t=1),t}s===c&&l===d||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=h(this,i)),this._modBy=c,this._modDataCount=d;var p=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var g=this._dueIndex,m=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(o||g<m)){var v=this._progress;if(r(v))for(var y=0;y<v.length;y++)u(this,v[y],g,m,c,d);else u(this,v,g,m,c,d)}this._dueIndex=m;var x=null!=this._settedOutputEnd?this._settedOutputEnd:m;this._outputDueEnd=x}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var c=function(){var t,e,n,i,r,a={reset:function(l,c,u,h){e=l,t=c,n=u,i=h,r=Math.ceil(i/n),a.next=n>1&&i>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var a=e%r*n+Math.ceil(e/r),o=e>=t?null:a<i?a:e;return e++,o}}();function u(t,e,n,i,r,a){c.reset(n,i,r,a),t._callingProgress=e,t._callingProgress({start:n,end:i,count:i-n,next:c.next},t.context)}function h(t,e){var n,i;t._dueIndex=t._outputDueEnd=t._dueEnd=0,t._settedOutputEnd=null,!e&&t._reset&&(n=t._reset(t.context),n&&n.progress&&(i=n.forceFirstProgress,n=n.progress),r(n)&&!n.length&&(n=null)),t._progress=n,t._modBy=t._modDataCount=null;var a=t._downstream;return a&&a.dirty(),i}l.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},l.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},l.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},l.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},l.getUpstream=function(){return this._upstream},l.getDownstream=function(){return this._downstream},l.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e.createTask=o},f4a2:function(t,e,n){var i=n("9850"),r=n("c526"),a=r.onIrrelevantElement,o=n("2306");function s(t){return t=u(t),function(e,n){return o.clipPointsByRect(e,t)}}function l(t,e){return t=u(t),function(n){var i=null!=e?e:n,r=i?t.width:t.height,a=i?t.x:t.y;return[a,a+(r||0)]}}function c(t,e,n){return t=u(t),function(i,r,o){return t.contain(r[0],r[1])&&!a(i,e,n)}}function u(t){return i.create(t)}e.makeRectPanelClipPath=s,e.makeLinearBrushOtherExtent=l,e.makeRectIsTargetByCursor=c},f5e6:function(t,e,n){n("1ccf"),n("b419")},f5ea:function(t,e,n){"use strict";(function(t){var i=n("2b0e"),r=n("c8b5"),a=n.n(r),o=n("fca5"),s=n.n(o);function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c={mode:"read",multiple:!0,rate:.2,src:null,width:null,min:300,max:null,markers:[],marker_size:20,marker_width:30,marker_height:30,enable_drag:!0,auto_index_z:!0,enable_canvas:!1,zoom_lock:!1,move_limit:!0,deviation_x:0,deviation_y:0,retainWdith:50,retainHeight:50};class u{constructor(t,e,n){l(this,"domId",void 0),l(this,"initImgDom",void 0),l(this,"config",void 0),l(this,"hammerObj",void 0),l(this,"offset",void 0),l(this,"callback",void 0),l(this,"paperMarkerData",void 0),l(this,"currentMarkerElement",void 0),l(this,"imgDomParentOffset",void 0),this.initImgDom=document.querySelector(t),this.domId=t,this.config={options:{},markerList:[]},this.offset={left:0,top:0},this.paperMarkerData=[],this.callback=n,this.initImgDom&&this.initImgDom.offsetParent&&(this.imgDomParentOffset={left:this.initImgDom.offsetParent.offsetLeft,top:this.initImgDom.offsetParent.offsetTop}),this.init(e)}init(t){document.ondragstart=function(){return!1};let e={};e="undefined"===typeof t?c:Object.assign({},c,t),this.config.options=e,h(this.config.options.src).then(t=>{this.initImgDom.src=this.config.options.src;let{setWidth:n,setHeight:i}=this.imageCenterAlign(t);this.setHammer(),this.initImgDom.addEventListener&&this.initImgDom.addEventListener("DOMMouseScroll",t=>{t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),this.setMousewheel(t)},!1),this.initImgDom.onmousewheel=t=>{t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),this.setMousewheel(t)},this.loadMarkers(e.markers,"back"),this.callback({type:"load",data:{width:n,height:i,src:this.config.options.src}})})}setMousewheel(t){let e=this.config.options,n=0;t.wheelDelta&&(n=t.wheelDelta,window.opera&&(n=-n)),t.detail&&(n=-t.detail),this.initImgDom=document.querySelector(this.domId),this.imgDomParentOffset={left:this.initImgDom.offsetParent.getBoundingClientRect().left,top:this.initImgDom.offsetParent.getBoundingClientRect().top};let i={x:t.pageX-this.imgDomParentOffset.left,y:t.pageY-this.imgDomParentOffset.top};this.zoomMarker_Zoom(e.zoom_lock?null:i,n>0?1+e.rate:1-e.rate)}setHammer(){let t=this.config.options;this.hammerObj=new a.a(this.initImgDom),this.hammerObj.get("pan").set({direction:a.a.DIRECTION_ALL}),this.hammerObj.on("panleft panright panup pandown",e=>{t.pinchlock||this.zoomMarker_Move(e.deltaX+this.offset.left,e.deltaY+this.offset.top)}),this.hammerObj.on("panstart",()=>{this.offset.left=this.initImgDom.offsetLeft,this.offset.top=this.initImgDom.offsetTop}),this.hammerObj.on("panend",()=>{t.pinchlock=!1}),this.hammerObj.on("tap",t=>{let e=this.initImgDom.dataset;if("undefined"===typeof t.pointers[0].x){let n={left:this.initImgDom.offsetLeft,top:this.initImgDom.offsetTop};this.callback({type:"mapClick",data:{x:(t.center.x-n.left)/this.initImgDom.width*Number(e.naturalWidth),y:(t.center.y-n.top)/this.initImgDom.height*Number(e.naturalHeight)}})}else this.callback({type:"mapClick",data:{pageX:t.pointers[0].offsetX,pageY:t.pointers[0].offsetY,x:t.pointers[0].offsetX/this.initImgDom.width*Number(e.naturalWidth),y:t.pointers[0].offsetY/this.initImgDom.height*Number(e.naturalHeight)}})})}zoomMarker_Move(t,e){let n=this.config.options;n.enable_drag&&(n.move_limit?this.limitLockOffset(this.initImgDom,t,e):(this.initImgDom.style.top=e+"px",this.initImgDom.style.left=t+"px"),this.reloadMarkers()),this.checkAllMarkerPosition(),this.callback({type:"imgMove",data:{top:e,left:t}})}zoomMarker_Zoom(t,e){let{options:n}=this.config,i=this.initImgDom.dataset,r={left:this.initImgDom.offsetLeft,top:this.initImgDom.offsetTop};const a=i.naturalHeight/i.naturalWidth,o=Number(i.width),s=Number(i.height);var l=o*e,c=l*a;null!=n.max&&l>n.max?(l=n.max,c=l*a):null!=n.min&&l<n.min&&(l=n.min,c=l*a),l=parseInt(l.toString()),c=parseInt(c.toString()),"undefined"!==typeof t&&null!==t||(t={},t.x=r.left+o/2,t.y=r.top+s/2);var u=t.y-c*(t.y-r.top)/s,h=t.x-l*(t.x-r.left)/o;this.initImgDom.dataset.width=l,this.initImgDom.dataset.height=c,this.initImgDom.style.width=l+"px",this.initImgDom.style.height=c+"px",this.initImgDom.style.left=h+"px",this.initImgDom.style.top=u+"px",this.reloadMarkers(),this.callback({type:"zoom"})}zoomMarker_AddMarker(t){this.addMarker(t),this.reloadMarkers()}imageCenterAlign(t){let e=t.width,n=t.height;null!==this.config.options.width&&(e=this.config.options.width,n=this.config.options.width/(t.width/t.height)),this.initImgDom.dataset.naturalWidth=e,this.initImgDom.dataset.naturalHeight=n;const i=this.initImgDom.offsetParent.getBoundingClientRect();let r=e/n,a=i.width/i.height,o={left:0,top:0,width:0,height:0};return r>=a?(o.width=i.width,o.height=i.width/r,o.top=(i.height-o.height)/2):(o.height=i.height,o.width=i.height*r,o.left=(i.width-o.width)/2),this.initImgDom.dataset.width=o.width,this.initImgDom.dataset.height=o.height,this.initImgDom.style.width=o.width+"px",this.initImgDom.style.height=o.height+"px",this.initImgDom.style.left=o.left+"px",this.initImgDom.style.top=o.top+"px",o}getMarkerOffset(t){let e=this.paperMarkerData.filter(e=>JSON.parse(e).id===t);return 0!==e.length?JSON.parse(e[0]):{}}addMarker(t,e){const n="undefined"===typeof t.draggable||t.draggable,i=document.getElementById(t.id);if(!i)return;let r=null;i.onclick=()=>{r=null},i.onmousemove=t=>{let e=t.currentTarget.id;if(this.currentMarkerElement=document.getElementById(e),null===r){let t=this.paperMarkerData.filter(t=>JSON.parse(t).id===e),n=0!==t.length?t[0]:"";""!==n&&this.callback({type:"markerOver",data:{id:e,left:this.currentMarkerElement.offsetLeft,top:this.currentMarkerElement.offsetTop,...JSON.parse(n)}})}},i.onmouseout=()=>{this.callback({type:"markerOut"})},this.paperMarkerData.push(JSON.stringify(t)),this.setMarkerOffset(i,t,{left:this.initImgDom.offsetLeft,top:this.initImgDom.offsetTop});const o=new a.a(i);return n&&"write"===this.config.options.mode&&(o.on("pan",e=>{let n={left:this.initImgDom.offsetLeft,top:this.initImgDom.offsetTop};const i=n.left-t.marker_width/2,a=i+Number(this.initImgDom.width),o=n.top-t.marker_height,s=o+Number(this.initImgDom.height);var l=e.deltaX+r.left,c=e.deltaY+r.top;l<i?l=i:l>a&&(l=a),c<o?c=o:c>s&&(c=s),this.callback({type:"markerMove",data:{id:t.id,left:l,top:c}}),this.currentMarkerElement.style.left=l+"px",this.currentMarkerElement.style.top=c+"px"}),o.on("panstart",()=>{r={left:this.currentMarkerElement.offsetLeft,top:this.currentMarkerElement.offsetTop}}),o.on("panend",()=>{this.updateMarker(this.currentMarkerElement)})),o.on("tap",t=>{let e=t.target.offsetParent.id,n=this.paperMarkerData.filter(t=>JSON.parse(t).id===e),i=0!==n.length?n[0]:"";""!==i&&this.callback({type:"markerClick",data:{...JSON.parse(i),left:this.currentMarkerElement.offsetLeft,top:this.currentMarkerElement.offsetTop}})}),t}loadMarkers(t,e){t.map(t=>{this.addMarker(JSON.parse(t),e)}),this.reloadMarkers()}toJSONData(){let t=[];return this.paperMarkerData.map(e=>{t.push(JSON.parse(e))}),{img:{src:this.config.options.src,naturalWidth:this.initImgDom.dataset.naturalWidth,naturalHeight:this.initImgDom.dataset.naturalHeight,width:this.initImgDom.dataset.width,height:this.initImgDom.dataset.height},markers:t}}setMarkerOffset(t,e,n){let i=this.initImgDom.dataset,r=Number(i.width)*e.x/i.naturalWidth+n.left-(e.marker_width||this.config.options.marker_width)/2+this.config.options.deviation_x,a=Number(i.height)*e.y/i.naturalHeight+n.top-(e.marker_height||this.config.options.marker_height)-this.config.options.deviation_y;return t.style.left=r+"px",t.style.top=a+"px",{left:r,top:a}}updateMarker(t){let e={left:this.initImgDom.offsetLeft,top:this.initImgDom.offsetTop},n=document.getElementById(t.id);const i=this.config.options,r=e.left-i.marker_width/2,a=e.top-i.marker_height,o=this.initImgDom.dataset;let s=(n.offsetLeft-r)*Number(o.naturalWidth)/this.initImgDom.width,l=(n.offsetTop-a)*Number(o.naturalHeight)/this.initImgDom.height,c=this.paperMarkerData.filter(e=>e.id===t.id||JSON.parse(e).id.toString()===t.id.toString());if(0!==c.length){let e=Object.assign({},JSON.parse(c[0]));e.x=s,e.y=l;let n=this.paperMarkerData.map(t=>JSON.parse(t).id.toString()).indexOf(t.id);this.paperMarkerData[n]=JSON.stringify(e)}else this.paperMarkerData.push(JSON.stringify({...t,x:s,y:l}));return this.callback({type:"markerUpload",data:this.paperMarkerData}),{x:s,y:l}}reloadMarkers(){this.paperMarkerData=this.paperMarkerData.map(t=>{let e=JSON.parse(t),n=document.getElementById(e.id);if(n){let t=this.setMarkerOffset(n,e,{left:this.initImgDom.offsetLeft,top:this.initImgDom.offsetTop});e.styleLeft=t.left,e.styleTop=t.top}return JSON.stringify(e)}),this.callback({type:"reloadMarkers",data:this.paperMarkerData})}limitLockOffset(t,e,n){let i=t.parentElement;const r={width:i.offsetWidth,height:i.offsetHeight,offsetLeft:i.offsetLeft,offsetTop:i.offsetTop},a=r.width+r.offsetLeft,o=r.height+r.offsetTop,s=t.width,l=t.height,c=this.config.options.retainWdith,u=this.config.options.retainHeight;var h=e,d=n;h+c>a?h=a-c:h<r.offsetLeft-s+c&&(h=r.offsetLeft-s+c),d+u>o?d=o-u:d<r.offsetTop-l+u&&(d=r.offsetTop-l+u),t.style.left=h+"px",t.style.top=d+"px"}removeMarker(t){let e=this.paperMarkerData.map(t=>JSON.parse(t).id).indexOf(t);-1!==e&&this.paperMarkerData.splice(e,1),this.reloadMarkers()}updateParentOffset(){this.initImgDom=document.querySelector(this.domId),this.imgDomParentOffset={left:this.initImgDom.offsetParent.offsetLeft,top:this.initImgDom.offsetParent.offsetTop}}getMarkerById(t){let e=this.paperMarkerData.filter(e=>JSON.parse(e).id===t);return 0!==e.length?Object.assign({},JSON.parse(e[0])):{}}removeMarkerToCenter(t){console.log(this.currentMarkerElement),console.log(this.imgDomParentOffset);let e=document.getElementById(t);console.log(e)}setFitView(t){const{offsetTop:e,offsetLeft:n}=this.initImgDom,i={x:0,y:0},r={x:this.initImgDom.parentElement.getBoundingClientRect().width/2,y:this.initImgDom.parentElement.getBoundingClientRect().height/2};if(t){let a=document.getElementById(t);const o={x:a.offsetLeft,y:a.offsetTop};o.x<r.x?i.x=n+(r.x-o.x):i.x=n-(o.x-r.x),o.y<r.y?i.y=e+(r.y-o.y):i.y=e-(o.y-r.y),this.initImgDom.style.left=i.x+"px",this.initImgDom.style.top=i.y+"px",this.reloadMarkers(),setTimeout(()=>{this.callback({type:"imgMove",data:{top:i.y,left:i.x}})},500)}}checkAllMarkerPosition(){const{offsetWidth:t,offsetHeight:e}=this.initImgDom.parentElement;let n=this.paperMarkerData.filter(n=>JSON.parse(n).styleLeft+this.config.options.marker_width<0||JSON.parse(n).styleLeft>t||JSON.parse(n).styleTop+this.config.options.marker_height<0||JSON.parse(n).styleTop>e);this.callback({type:"hasHidden",data:n})}calcAlaramPosition(){console.log("calcAlaramPosition"),this.paperMarkerData.map(t=>{let e=document.getElementById(JSON.parse(t).id);if(e){let n=document.getElementById("alarm-"+JSON.parse(t).id);n.style.left=parseFloat(e.style.left)-JSON.parse(t).dialogWidth/2+this.config.options.marker_width/2+"px",n.style.top=parseFloat(e.style.top)-JSON.parse(t).dialogHeight+"px"}})}}const h=t=>new Promise(e=>{let n=new Image;n.src=t,n.onload=function(){e({width:this.width,height:this.height})}}),d="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAA3CAYAAAB6i9geAAAHj0lEQVRoQ+2Yf2xUVRbH773vzXvTXzOgtKUt05mCtuIA0h9KW1qKtV0VXJQ1WRXlhwjFn0QSQVyzK8YYWdFgsv7ACoLU1EjiKkZAREenrVBW2ipsKcUUpqU/pAV0ZtrOvDfv3bu5sLOZlvfevOkMyZL4/mmad945n3vOvd9zz0BwlTwwGs5H9pLcpl6xUsKknAAyfUiE1/olYqA+jSwMJHDkPATwGIugIz+dO7BtHmwZa7yIQd89Qgw1rcLKXwWwRpCAdY4FuWdloMHpKcg3ZTwUzBzAFMYtAtTxK+GP9eO4wz04se4MNvMs6BzPg82L7fx7qwpgIBLoiEBv+1C4z+XBm21mlPhYHnP27hzGzer0IBEAdrfL5nea5VSXGw/aTGjNNw/xH+uF1RWm6sAF8w+dCe9LmMzfUGo486cbkFtvACW7f57A5g31AQuL4J6brUPLqyuvCesvLOij+3y2r07BfcWTmOQ3b2e7zPyl0kb7uAWAntwvZR7slgf+MJncueXOOJeWT01QCvllB2hYNM0AXy5j+qKFU/r+eaecVvvvALljCijRglUFpeX++mR84/12xvRyGXtFIIPgf3VKabWtsqcie7hQbRuoguZuFT6xJ6OymgWsZklikWUCAFjyecDWOkCcLSv4e5V8KoLS093vAzvqF3NtsdqT4RZE92zpTuHGlHi4VEkNLgPdsItwNef8rk3l3ODCHORRC3BumDAGFpKgboYD0fP+s3ZsesYhJq67xWgdrbOXgZZ84H+cZ+HGrxdxJ7Wc37UrcN2RPtlkn4CGZluQ5zYb45ltgUN6dVXNd2WtmO2X4PqGpdzboTaXgdqr/T+/WGoA92popU8C8Lq3/TNFGaBQZ/EGIOenIe8cC+OpyEKeaclQ0JPJUJtPTmDzC/UB0FplvF4VlPbuOpdw+Pij/FGtzOzrwElLPhezw0EkJ0CxMB15yjKRt3Iy8qQnQincN7SDTd0izCi1oMLtf+Sag/YjMjpzq7AuLxWu3XaXoVPL4TqHlLH9J2liuKAj3kNIpoyDvmIL8tyaiby3WuFgIgcVm8eKPQFrUz/Z9ONy/lVF0GnV/i9XF7A5K3OZ81oQJTvFG9rP44SIQEcZswjgGSlo6NkitrfchgZDX1e3yNe+1SS1H11pvEMR1F7t63lvHucuykDDahADw4CxV/tvIgSEbb/hFoIgIB8v5NrnWtFQqG1jD4lfsVc0t1YZMxRBbW/6/Ycf5ttS4oGsJUtP7JesP/TiJK9I2HAwWu+X3cT+sqmc7RltQ5Nxy3ZhqutJo1ERdOIbPrnrKWOLYcRZVg5FN31jN4l3dGLT912y6egATpDwSBXQgpwyHg07H+JO8CygjWnEI0gAWt8SZp592siogrqeMP6o9PFoZ8u/CFh7PISfncl4yq3IMz0F+p1dOPFbFzYd6sFJHb+ROECI4vag+3PPfdyJvInIp7SYAAYg8x/+3F+ejlMGpaX/18N8W7JG6YOOB0WCHJ0k8dtObDrUjZP6hwhXkI68pRZENdRr5oH81SlsquvCSY092DQwTLjgt2tmGbr/UsycVct4/zBgZmmVnh6mrfN4d2EGVD1Mas57BwlLwfZ14HEOlzw+NQEKhZMYz1wLpBrqPTsE2G9cOKnXS7jHC9j+5xyBSR8tNJxWSvmhHhy/am/AfEztMFF5eqqAzakKI0+314rZa4vY3oqskbJCF/E3p5T2TrOUvrGcO+0RCFN/RjY195HEjCQoFk9CHjpfvd4opa++me17wI5+U1r4RXk6IrUfrVKRJyr4+RPh2q3ztQU/ebM/nwYYWGNsCg10wUeYvG3itJxroG9/yF2BHryGLpLg6JRNB7tx0oJs9sLqAnROrTqPfBGwNvWR136q4v+ueJhoC3W6hMNtYVpoEPSxfLY3NFjrAI6v68LjPrqHb6/IgiNEXK+M0UXduEWYMceGZm2bx/1vvB7TpSQIqhQ8LxV5Q7OpFzBod/FSUhcAras0LiXUmF7zjCzceEDjmqdW+kihlOwrasVsQSLrG5Yata95wYvza+Xc4D0qF+crBfppOzY96wgkPDiBz9rwZyiGLkR9FBkmH9Qv4Y8rjSJap36sWb04itSIU1PiwDJdo0gw0KXhDpbtXGBwRX370EG/eLdkaz0nO1tWGPUPd9RvcFxeZGdML13hcfl5p5S26zh2l1/PFVVXQsVfTfT8APF9VS6LnytmVVuejoSpmrxyUEqtbpFQaSYoqVkQd1rNMGxVl+wh2XWn/N+tymfl9UWxhd14SEp9t0li5kw2zt05H2oOk2FB6QqDsFV5rByrzF7MZLM+SMqgCzTWsJFCRgQaK9ixQEYMGi3sWCHHBDpW2GggxwwaKWy0kFGB6oWNBWTUoOFgYwUZE1A12FhCxgx0NCz9PxIx19OCdQu+HmfBDkZt9bRFPT6DNjEFDWaW/g3XuyOBjGnpIw0cqX30GV122ghSAssAgXcDAKYCQCZcgoB0HG4DkOwG/YYdYEeWP1K4UPvoQdedrAcElGhCQNAAXs0u/R1UVwYuL33yf0s/8P9Vel2rid4o+j0aPYMuD7+D6kpTBEZXTUb/A/1AsWUIsZTIAAAAAElFTkSuQmCC",f="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAA3CAYAAAB6i9geAAAGj0lEQVRoQ+2Ye0zTVxTHvxda3hTEGR46i8KAUsrDhawaDdviDEPMTKYsEeIQY9BKQEQaE41/GE0mExAUkCyCGjSZZolLHCOabCM6xch8FBCKymuIMpVAQYoU+C2/H9ZR+L1KSzIT75/9nXvu555z7nmU4B1ZxBZOqrg4Bq2tX4CiPgdFqTAyMh+jo1JGp5OTCS4uL0FIAwj5DSEhV0lm5t3Znmc1KFVeLsXjx9swOJgNk0mOiIgBhIYOQS43IiDgNdzcJhiY4WEH9PQ4o7PTFXq9BxobvSCVdsLTsxBBQT+Q9HSTNdBWgVL79n2D3t5C+Pp6ICGhF2r1ABwcxJ03MQHU1XmhutoXvb1D8PXNJocP/yhuMyAKlCov98KDBxUYG1uL5OS/sXz5gNgDWOVu3vTCuXMfQiL5BeHhaSQ9XVCfIChVWBiIpqZfERq6ABpN11vX2kT6JjRKSxdDr38OpfJLkp3dwaeSF5SBbGi4jrg4gs2bn9rKxrr/7Fl/1NZSUKlW8sFygjLuvn27DqtWyeYM0kxeVUXDGhAbq+YKA27QrKyfsGhRHPbs4XWJXaxMUUB+fiC6u2tJUdHXbDpZQZnX3d9/Gnl5zXaLSaEb0elMqw2Ht/e3bNlgBih14YITrlzpwNatQ1CrDZz6DQZHSCSUXS9SVyfDqVMeiI2VT8+zM0G1Wg2k0u9w6FArrxEOHgxGa6sMcvkrKBQGREUZoFS+Ep1XuZTv3x8Ck2kvycsrnSoyE1SjeYjkZGDFCu7cNjpKsG1bNEwmy2zv7DyO4OBBREQYEBNjwOLFr4U8PuP7jRteqKoCKSv7iBOUqd0NDbdw8qSO1zL19Z4oKAgRhJDJRhEWZkBExCCWLTPAx2dMcA9dwdLTI6FUqkl29h2zvIVFqYwMLYKCcrFrVyevwsrKhbh61U/wUEsBCn5+RoSHG6BSDSIycgiurpN9wfRVVCRHW9v3pLg4jx10584aJCaGIj7+JS+EVhuG7m53K0EtxSWSCSa+N2zoQVTUkMXHmpr5uHxZT0pK4tlBNZonyMgYgEIxzAkxMOAIjSYKFCVYfgUvQgiFvXv1UKleWcjq9W4oLvYipaUL2UHT0kZQUNAML69x3rRUViZHa6snjEaJIAyfwOrVz5CW9mSGCG2M3bsVpKLChR00JWUclZV3IRFxPh30LS1uuH9fhqYmGTo73TE+LrLnA+DnN4wjR1oglVIzQE0mgrS0aFJV5cgNWlFxj3XzdG3Hjsnx4oUzlMrJHBoYOIKGBg/odDI0N3vi2TNXcLWRdHweONCC4GAjq8HHxoAtW2K4QcW43qzZaHSATvcfmMHgxORQGjw6ehDu7uO4c0eGxkZPtLTIQH83r/Xru5GU1Mv7DnhdTz+mzEx6tOB+TFza+/okDFh9vTd0unmYN+81k0OVSjqHDqK/X4J79zzR1+eEtWv/wZkzi5Cb2w7C8iabm91w4gTPYxKbnugyR6eV6GjLtEJfgm7ZqqsDkJraDqPREY2NMrS1ecDHZ5QptfR8delSABITnyIurp/13oLpiU74wcG5yMriT/ibNn3MHHD+/F8WB9GNSnZ2BPz9jRa9Av3wmprcmYdHx69a3Yd1615wup6O/0ePjpKSkiPsj4kuoTrdLZSX85dQM2hCQo/FYV1dbmhs9IZWq2e1tphcRl9q+/ZIqFSfTB2vZzYlO3Y8REoKf1NiBmU7eOnSQcHOiw9YTFNC76fEtHlcrhdjMSEZ0W2emMZ5rkAnG2d3rFmzhCQljU69E98ocgZ5eQ9YO3i+Vy9kMa7vk6OIAt7eqaJGEbMeyjzc5eR0sOa62QJx7Tt6NBBdXbXk+HHxwx0Tq+ZxOS5OhpSUuZnpzdD0bH/t2gBiY5dbPS4zsJN/QPyJ+PgJbNzIXfJsse7Fi76oqXGAQrGS0JWKYwn2lFR+fgiamv5AfPy43WEnIR2hVH5KcnJ4h0lBUMaycwFrBSTNIArU7rBWQloFajfYWUBaDWoz7CwhZwU6a1gbIGcNajWsjZA2gYqGtQOkzaCCsHaCtAsoJ6wdIe0GOgOW/kFkxRFbfUUnfDEK31YwWlhEWRSj0yxjV9C3lqVLnkDttgbSrq639mBr5W226O+BgS7+QCpFyFcAFKCoDxgIQuhxuJlQ1M9PgdOfdXSMWAs3Vd5m0JYlS65RwEo+CAJcD2tvX/UeVIwFprueAha8Cf7n/yvXi7mMPWRsjlF7QIjR8R5UjJWskXlnLPovuoYSZWNIBgcAAAAASUVORK5CYII=",p="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAA3CAYAAAB6i9geAAAGj0lEQVRoQ+2Ye0zTVxTHvxda3hTEGR46i8KAUsrDhawaDdviDEPMTKYsEeIQY9BKQEQaE41/GE0mExAUkCyCGjSZZolLHCOabCM6xch8FBCKymuIMpVAQYoU+C2/H9ZR+L1KSzIT75/9nXvu555z7nmU4B1ZxBZOqrg4Bq2tX4CiPgdFqTAyMh+jo1JGp5OTCS4uL0FIAwj5DSEhV0lm5t3Znmc1KFVeLsXjx9swOJgNk0mOiIgBhIYOQS43IiDgNdzcJhiY4WEH9PQ4o7PTFXq9BxobvSCVdsLTsxBBQT+Q9HSTNdBWgVL79n2D3t5C+Pp6ICGhF2r1ABwcxJ03MQHU1XmhutoXvb1D8PXNJocP/yhuMyAKlCov98KDBxUYG1uL5OS/sXz5gNgDWOVu3vTCuXMfQiL5BeHhaSQ9XVCfIChVWBiIpqZfERq6ABpN11vX2kT6JjRKSxdDr38OpfJLkp3dwaeSF5SBbGi4jrg4gs2bn9rKxrr/7Fl/1NZSUKlW8sFygjLuvn27DqtWyeYM0kxeVUXDGhAbq+YKA27QrKyfsGhRHPbs4XWJXaxMUUB+fiC6u2tJUdHXbDpZQZnX3d9/Gnl5zXaLSaEb0elMqw2Ht/e3bNlgBih14YITrlzpwNatQ1CrDZz6DQZHSCSUXS9SVyfDqVMeiI2VT8+zM0G1Wg2k0u9w6FArrxEOHgxGa6sMcvkrKBQGREUZoFS+Ep1XuZTv3x8Ck2kvycsrnSoyE1SjeYjkZGDFCu7cNjpKsG1bNEwmy2zv7DyO4OBBREQYEBNjwOLFr4U8PuP7jRteqKoCKSv7iBOUqd0NDbdw8qSO1zL19Z4oKAgRhJDJRhEWZkBExCCWLTPAx2dMcA9dwdLTI6FUqkl29h2zvIVFqYwMLYKCcrFrVyevwsrKhbh61U/wUEsBCn5+RoSHG6BSDSIycgiurpN9wfRVVCRHW9v3pLg4jx10584aJCaGIj7+JS+EVhuG7m53K0EtxSWSCSa+N2zoQVTUkMXHmpr5uHxZT0pK4tlBNZonyMgYgEIxzAkxMOAIjSYKFCVYfgUvQgiFvXv1UKleWcjq9W4oLvYipaUL2UHT0kZQUNAML69x3rRUViZHa6snjEaJIAyfwOrVz5CW9mSGCG2M3bsVpKLChR00JWUclZV3IRFxPh30LS1uuH9fhqYmGTo73TE+LrLnA+DnN4wjR1oglVIzQE0mgrS0aFJV5cgNWlFxj3XzdG3Hjsnx4oUzlMrJHBoYOIKGBg/odDI0N3vi2TNXcLWRdHweONCC4GAjq8HHxoAtW2K4QcW43qzZaHSATvcfmMHgxORQGjw6ehDu7uO4c0eGxkZPtLTIQH83r/Xru5GU1Mv7DnhdTz+mzEx6tOB+TFza+/okDFh9vTd0unmYN+81k0OVSjqHDqK/X4J79zzR1+eEtWv/wZkzi5Cb2w7C8iabm91w4gTPYxKbnugyR6eV6GjLtEJfgm7ZqqsDkJraDqPREY2NMrS1ecDHZ5QptfR8delSABITnyIurp/13oLpiU74wcG5yMriT/ibNn3MHHD+/F8WB9GNSnZ2BPz9jRa9Av3wmprcmYdHx69a3Yd1615wup6O/0ePjpKSkiPsj4kuoTrdLZSX85dQM2hCQo/FYV1dbmhs9IZWq2e1tphcRl9q+/ZIqFSfTB2vZzYlO3Y8REoKf1NiBmU7eOnSQcHOiw9YTFNC76fEtHlcrhdjMSEZ0W2emMZ5rkAnG2d3rFmzhCQljU69E98ocgZ5eQ9YO3i+Vy9kMa7vk6OIAt7eqaJGEbMeyjzc5eR0sOa62QJx7Tt6NBBdXbXk+HHxwx0Tq+ZxOS5OhpSUuZnpzdD0bH/t2gBiY5dbPS4zsJN/QPyJ+PgJbNzIXfJsse7Fi76oqXGAQrGS0JWKYwn2lFR+fgiamv5AfPy43WEnIR2hVH5KcnJ4h0lBUMaycwFrBSTNIArU7rBWQloFajfYWUBaDWoz7CwhZwU6a1gbIGcNajWsjZA2gYqGtQOkzaCCsHaCtAsoJ6wdIe0GOgOW/kFkxRFbfUUnfDEK31YwWlhEWRSj0yxjV9C3lqVLnkDttgbSrq639mBr5W226O+BgS7+QCpFyFcAFKCoDxgIQuhxuJlQ1M9PgdOfdXSMWAs3Vd5m0JYlS65RwEo+CAJcD2tvX/UeVIwFprueAha8Cf7n/yvXi7mMPWRsjlF7QIjR8R5UjJWskXlnLPovuoYSZWNIBgcAAAAASUVORK5CYII=",g="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAA3CAYAAAB6i9geAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAKqADAAQAAAABAAAANwAAAABvotQCAAAHuElEQVRoBe1ZSWwbVRi2nbEd70u9O7GbNI3TLU0JS5NAoSpLyyYuXOFSDoCEQEiIC1AJISHEgRtCnJA4IQ6AQAUKtCxp2pKqSdMtTbN69yTe7fFu/j+py8x4xvEWCaSONJn3/vcvn9/73//+/0Ug+J88wlZwjl9bcGZSuZdTFHU0my+Y8/mCMpsryFCnVEJQYjGRlIqJoEIm+7FTIfl0bHfvcrP2mgJ65uKNt1YjydeTVMZo0qsT3WZ9XKeSZ+QyaV4p68wjGBgTp6msOJJId7qDYXUoHFfBGGnQKT95ZHjgo0YBNwT0j0uzLwXW4u8LywLVkMvh7+0yxkRC6NXxlEpl4YKX1EzNrljLQkHCsk39zqEDrs/rEF1nqQvoZLksJs9e/glmZ/SAa7tvYLslXK8BLr4bSwH9pdklG6zCWePo4BP3CoXrq8DFW6FtCvTctKfLuxYclxAd2sce2LMAvlesCLfyBV/uOHX+am+uUIzat5nHDu7v8tTSVxMoglwMeK92mXTU2NBOT03mWlZ4xtBnxqfmujyhiKzHYt9TC6yIR4cAlxtnEkE+uAUg0S7+cNTttGxLoy20yYeHFyj6JCy3BmeST7hd9JHBHV50rdD4zM98OjmB4u7GjQM+udju5eYDcuSB3QvRRGoEbB/n4uEEiiEId3etjZPN5Tty+QKnPJehzWgyibg4vLvHG1yNfcDFW2UIgznGyc1C0Knz13q+PDkx9M2ZS67zVxetPjKiKNcVUblgbND6HeYIxFjV6cnZt9lcBJtARhNvYDBn0+n9AgRvMpJUYRBfjSaU+M7MuW1ioqNo1KkSNpMu7jDrE3q1IkOXq6c9tNPhuzzneQ14P6TzM4Di2T037zP02o0+OhO77Q2GlcVSsWo18oVih4+MavGdvLookEklOYtBE7cbdevHrEImKbB1sft93abYxMy8E7HQcwMG0Gwq84oZzm6RqPax6CEjarYBrj6VzUkWvaQBXyEctRqFjLIaNQmbURfvNumTBCEqseWQD1eFSmVehbG3KuMMoEkqe7TXZoxVBvm+fjKm4hvjo5fLZWE0mZbje33RbxYJRSVIUFLDu5w+mPEkXc5u0seX/eQTQLsDlLF8kKqZNCpZli7EblOw22NgjE1vtF8ql0RkJKEEuaotaNDIqVyuaKTrZADFfFIp30jT6Ez0NgrYTbqoRNyxqb/R5bjaAz3WIMxmij0m65QWYNIY7sVYekx6AWiOLUjvSyHeHR3Zu4DTEFiLyd3BiDqwGlVDfqrAWaLz1mprlfL0yL4dnJtW0SnJQ5zupMszgOJAqVgSCkSiquWgC2H79N/XnYl0Vmo1auP3QaA2aFWUJxRWekMRtX8tqo4lqPVMny2HffTPQ8OuJb5cFsYBAnNDM4Bi+ZDK5MQSMVHTT9EYJL1u921gkAE50rDDTRsxNLFnh31eQhBFd3BN7SWjqsBqTI0RAOXwGdzZ7QNeaqNX/TcB1QG4FiMGM4BijUNlsgQktJsCxdDSYzPE8UVTKSpHYMmx5F/VXriy4IDly1oM2gRkX/HRwT4v/BDC7Q+rsvm8GE+9Xy9c337k/l1L1TBRV0ZMEATDdxk+BYVYaDWW5l2yitJvf5/qXwmEccfeeTCYIwCtUrY+U0Mup0+nUqTnPSH9V6cu7D3z942eVDYrgdMq/ePETJ/Doo/eEWY1wG2kcPYH6GQGUKgWT3pDYcZuozNX2mQkrvr53BVXpV/5YtY+uxwwY8G3q8caHnJ1k0+ODc6/8NTY1MHB3hWio6N0bdFv6ndayJ0OMy9QWBmNUi49WdGLX8bSY0nrCa69icEZTwg6I1f73My8lU4Px9NyPEbvGXAwdrMQckUMQ7dDUc08AvOHYDiudvXZP6PrZgDFs/XrXybJW+6QptYvrii4Mu+1VdqVL85mFxyPlX6jX6xUFTIpObKrZ4kuywCKA1h3T82tnKgH6PHnDl2kK2tHG8tpk0HzHlsXw0dxcONyQBi/uRLUsZm3uo9ldFlQTj58oP9jtq0qoMiAlwMXry/a8VxnC2DfqFMnHj+4d5ZrrFkabsRLsys2s171LpcO3pLo5Pj0b4Viefjph/bPcQm2k4a79oc/p/sgNk8eGx18lEs354wiI95g4OXAxOV5O5dgO2lY2+cKhbhxZN8xPr28QPGaBW8w4KRRTF5bNvMpaJWOuuHwkFss+odqXe3wAkUAeHPhtBpG59x+7cUb7QeLOlH3dpthlF52cP14Xh+lM49P39oLGfdEv9MaHR5wBuljzbYR5M1lv9ZpNY6M7e+7spmeuoCiknaCbRQk2q8baLvANgOyYaCtgm0WZFNA/wW7Cj5rqdtnN0AGwCcNdfkk2qE/DS09XXDDZ+sD2ypItNs0UBSuB2w7QLYMdDOw7QLZFqB8YNsJsm1A2WCxf3O5+Y2D8uynJR9lK6v4LNKb3d1snVvWR7D4bpmB/7rilpf+xOnTROivhRch+X0Wgt1+qGDXb+GgiiXhnm4aDHxnerD3ixOHD7d0qVZV3DU6s8Hxhe+hzsG7TMYFIgB2AsWJPwB4nof2UWRp9qmZjzartFqu1X9DwMVatdLGKOax3qdFAuFxoUD4HSz3Mkin8cU20nDMPLbjmca03uW+OwN3Z2DLZuAfJo6pknH6fWQAAAAASUVORK5CYII=";var m=i["default"].extend({name:"ZoomMarkerControl",components:{QzPlayer:s()},props:{service:{required:!0},data:{type:Array,default:()=>[],required:!1},mode:{type:String,default:"read",required:!1},multiple:{type:Boolean,default:!1,required:!1},mapImg:{type:String,required:!1},mapId:{type:String,required:!1},getAll:{type:Boolean,required:!1},markerImg:{type:String,default:d,required:!1},markerImgOnline:{type:String,default:d},markerImgOffline:{type:String,default:p},markerImgDisabled:{type:String,default:g},markerHigLightImg:{type:String,default:f,required:!1},sysettingService:{type:String,default:"/ninca-common"},deviceService:{type:String,default:"/cwos-portal"},deviceFilterCodes:{type:Array,default:()=>[]},fullScreenAside:{type:Array,default:()=>["20px","20px"]},playerSlot:{type:Boolean,default:!1},rate:{type:Number,default:.2},limit:{type:Array,default:()=>[.1,2]},deviationX:{type:Number,default:0},deviationY:{type:Number,default:0},defaultMarker:{type:Boolean,default:!0},retainWdith:{type:Number,default:50},retainHeight:{type:Number,default:50},addDefaultSelected:{type:Boolean,default:!1},markerAlarms:{type:Array},position:{type:String,default:"top"},markerTracks:{type:Array},defaultPlay:{type:Boolean,default:!1},showPlayer:{type:Boolean,default:!0},showDeviceStatus:{type:Boolean,default:!1},deviceFilterStatus:{type:Array,default:()=>[]},markerIcon:{type:Object,required:!1},mapInitinalOptions:{type:Object},playerPluginUrl:{type:String}},data(){return{renderImgId:"",loading:!1,bgImgWidth:0,bgImgId:null,showPoper:!1,bgImgHeight:0,limitMax:0,limitMin:0,alarmList:[],popMarkerData:{},poperPosition:{id:"",left:0,top:0},selectedId:"",markerData:[],markerSize:{width:0,height:0},isFullScreen:!1,renderMapImg:null,currentMarkerPos:{},showPlayerDialog:!1,devicePlayerConfig:{playerServer:"",deviceItem:{rtspUrl:"",dcs:!1,timeOffsetHour:0,areaName:"",deviceName:""},basicConfig:{autoPlay:!1},pluginUrl:this.playerPluginUrl},lsRtspurl:"",isPlaying:!1,supportPlay:!0,markerDataCache:[],renderWidth:0,renderHeight:0,currentAlarm:0,timerList:{}}},watch:{mapInitinalOptions:{handler:function(t){t&&Object.keys(t).length}},data:{handler:function(t){t&&0!==t.length&&t.map(t=>{t.x&&t.x.toString()&&t.y&&t.y.toString()&&this.markerData.push(JSON.stringify(t))})},immediate:!0,deep:!0},markerAlarms:{handler:function(t){if(t){const e=this.alarmList.map(t=>t.objectId),n=this.markerData.filter(t=>!JSON.parse(t).hidden).map(t=>JSON.parse(t).objectId);t.map(t=>{-1!==n.indexOf(t.objectId)&&-1===e.indexOf(t.objectId)&&this.alarmList.push(t)}),this.calcAlaramPosition(),0!==t.length&&this.$emit("alarmShow",t)}},immediate:!0,deep:!0},mapImg:{handler:function(t){this.getImageSize(this.markerImg).then(e=>{this.markerSize.width=e.width,this.markerSize.height=e.height,t?this.getImageSize(t).then(e=>{this.renderMapImg=t,this.bgImgWidth=e.width,this.bgImgHeight=e.height,this.formatScaleSizeByLimit(),this.getAll&&this.mapId?this.getBindDevice(this.mapId).then(()=>{this.initDraw(t)}):this.initDraw(t)}):this.getMapImage().then(t=>{this.renderMapImg=t,this.initDraw(t),this.showAlarm()})})},immediate:!0,deep:!0},deviceFilterCodes:{handler:function(t){this.alarmList.map(e=>{-1===t.indexOf(e.objectId)&&this.closeAlarm(e)}),t&&0!==t.length?this.markerData=this.markerData.map(t=>{let e=JSON.parse(t);return e.hidden=!0,this.deviceFilterCodes.indexOf(e.deviceCode)>-1&&(e.hidden=!1),JSON.stringify(e)}):this.markerData=this.markerData.map(t=>{let e=JSON.parse(t);return e.hidden=!1,JSON.stringify(e)}),this.closePlayer(),this.$nextTick(()=>{this.drawPlugin&&this.drawPlugin.reloadMarkers()})},deep:!0},deviceFilterStatus:{handler:function(t){t&&0!==t.length?this.markerData=this.markerData.map(t=>(t.showStatus=this.deviceFilterStatus.indexOf(JSON.parse(t).deviceCode)>-1,t)):this.markerData=this.markerData.map(t=>(t.showStatus=this.showDeviceStatus,t))},deep:!0}},computed:{markerIdList:function(){let t=[];return t=this.markerData.map(t=>JSON.parse(t).id),t},playerDevices:function(){let t=[].concat(this.devicePlayerConfig.deviceItem);return t}},methods:{initDraw(t){this.drawPlugin=null,this.drawPlugin=new u("#"+this.renderImgId,{multiple:this.multiple,src:t,rate:this.rate,max:this.limitMax,min:this.limitMin,marker_width:this.markerSize.width,marker_height:this.markerSize.height,mode:this.mode,markers:this.markerData,deviation_x:this.deviationX,deviation_y:this.deviationY,retainWdith:this.retainWdith,retainHeight:this.retainHeight},t=>{if("load"===t.type&&(this.selectedId="",this.calcAlaramPosition(),this.$emit("mapLoaded")),"mapClick"===t.type){if(this.$emit("mapClick",t.data),!this.multiple&&this.markerData.length>1)return;let e=!this.multiple&&this.markerData.length<=1;"write"===this.mode&&this.mapClick(t.data,e)}if("markerOver"!==t.type&&"markerOut"!==t.type||this.showPoper&&t.data&&this.triggerPoper(t.type,t.data),"markerOut"===t.type&&(this.showPoper=!1),"markerClick"===t.type&&this.markerClick(t.data),"imgMove"===t.type){let e=this.drawPlugin.getMarkerOffset(this.poperPosition.id);0!==Object.keys(e).length&&(this.poperPosition.left=e.pageX+30,this.poperPosition.top=e.pageY),this.setPlayerDialog(),this.calcAlaramPosition(),this.$emit("mapMove",t.data)}"zoom"===t.type&&(this.showPoper=!1,this.setPlayerDialog(),this.calcAlaramPosition(),this.$emit("mapZoom")),"markerUpload"===t.type&&this.$emit("change",this.toJSONData()),"esc"===t.type&&(this.isFullScreen=!1),"markerMove"===t.type&&this.closePlayer(),"hasHidden"===t.type&&this.$emit("hasHidden",t.data),"reloadMarkers"===t.type&&this.calcAlaramPosition()}),this.markerDataCache=[].concat(this.markerData)},showAlarm(){if(this.markerAlarms&&0!==this.markerAlarms.length){const t=this.alarmList.map(t=>t.objectId);this.markerAlarms.map(e=>{-1!==this.markerIdList.indexOf(e.objectId)&&-1===t.indexOf(e.objectId)&&this.alarmList.push(e)}),this.calcAlaramPosition(),0!==this.markerAlarms.length&&this.$emit("alarmShow",this.markerAlarms)}},getAlaramPositionByObjectId(t){let e=document.getElementById(t.objectId),n=document.getElementById("alarm-"+t.objectId);if(n){let{width:t,height:i}=n.getBoundingClientRect();return e?{left:parseFloat(e.style.left)-t/2+this.markerSize.width/2,top:parseFloat(e.style.top)-i}:{left:0,top:0}}return{left:0,top:0}},calcAlaramPosition(){0!==this.alarmList.length&&this.$nextTick(()=>{this.alarmList=this.alarmList.map(t=>({...t,...this.getAlaramPositionByObjectId(t)})),this.alarmList.map(t=>{let e=document.getElementById(t.objectId);if(e){e.classList.add("jump-animate");let n=e.querySelector(".alarm-marker");if(!n&&t.markerIcon){e.querySelector(".marker-icon").style.display="none";let n=document.createElement("img");n.src=t.markerIcon,n.classList.add("alarm-marker"),n.classList.add("marker-icon"),n.style.width=(t.markerWidth||this.markerSize.width)+"px",n.style.height=(t.markerHeight||this.markerSize.height)+"px",e.append(n)}this.timerList[t.objectId]||this.autoCloseAlarm(t)}})})},closeAlarm(t){let e=document.getElementById(t.objectId);if(!e)return;let n=this.alarmList.map(t=>t.objectId).indexOf(t.objectId);this.alarmList.splice(n,1),this.currentAlarm=0;let i=e.querySelector(".alarm-marker");i&&t.markerIcon&&(e.querySelector(".marker-icon").style.display="initial",e.querySelector(".alarm-marker").remove()),e.classList.remove("jump-animate"),this.$nextTick(()=>{this.calcAlaramPosition();try{clearTimeout(this.timerList[t.objectId]),delete this.timerList[t.objectId]}catch(e){}})},autoCloseAlarm(t){-1===Object.keys(this.timerList).indexOf(t.objectId)&&this.$set(this.timerList,t.objectId,setTimeout(()=>{this.closeAlarm(t)},t.autoCloseTime||1e4))},closeAlarmByHand(t){if(t){let e=this.alarmList.filter(e=>e.objectId===t);0!==e.length&&this.closeAlarm(e[0])}else this.alarmList.map(t=>{this.closeAlarm(t)})},getMapImage(){return new Promise(t=>{this.service&&this.service.post&&this.service.post(this.sysettingService+"/sysetting/map/query",{}).then(e=>{if(e.success)if(0!==e.data.length){let n=e.data.filter(t=>"default"===t.ext2);if(0===n.length)return void this.$message.warning("暂无默认地图");let i=n[0],r=i.mapImg;this.bgImgId=i.id,this.getImageSize(r).then(e=>{this.bgImgWidth=e.width,this.bgImgHeight=e.height,this.formatScaleSizeByLimit(),this.getAll&&this.bgImgId?this.getBindDevice(this.bgImgId).then(()=>{t(r)}):t(r)})}else this.$message.warning("暂无地图");else this.$message.error("获取地图失败")})})},getBindDevice(t){return this.getAll?new Promise(e=>{this.service&&this.service.post&&this.service.post(this.deviceService+"/component/device/list",{mapId:t}).then(t=>{t.success?(t.data.map(t=>{let e={id:t.id,x:t.mapX,y:t.mapY,draggable:!0,size:30,marker_width:this.markerSize.width,marker_height:this.markerSize.height,showStatus:this.showDeviceStatus,hidden:!1,...t,data:{...t}};e.x.toString()&&e.y.toString()&&this.markerData.push(JSON.stringify(e))}),this.filterMarkerData(),this.$nextTick(()=>{e()})):this.$message.error("获取设备列表失败")})}):new Promise(t=>{this.filterMarkerData(),t()})},filterMarkerData(){0!==this.deviceFilterCodes.length&&(this.markerData=this.markerData.filter(t=>this.deviceFilterCodes.indexOf(JSON.parse(t).deviceCode)>-1))},formatScaleSizeByLimit(){if(0!==this.limit.length){let t=Number(this.limit[1]);this.limitMax=this.bgImgWidth*t}else this.limitMax=2e3;let t=parseFloat(this.renderWidth),e=1;e=this.bgImgWidth>t?parseInt((t/this.bgImgWidth*10).toString())/10:1,this.limitMin=this.bgImgWidth*e},mapClick(t,e){let n="marker"+(new Date).getTime(),i={id:n,x:t.x,y:t.y,draggable:!0,size:30,marker_width:this.markerSize.width,marker_height:this.markerSize.height,status:0,onlineStatus:2,exp:1};this.addMarker(i,e)},markerClick(t){this.showPlayerDialog=!1,this.isPlaying=!1,this.currentMarkerPos=t,this.devicePlayerConfig.playerServer=t.data.playerServer||"",this.devicePlayerConfig.dcs=t.data.dcs||!1,this.devicePlayerConfig.deviceItem={...t.data},this.lsRtspurl=t.rtspUrl,t.hasOwnProperty("taskName")&&(this.devicePlayerConfig.taskName=t.taskName),t.hasOwnProperty("edgeName")&&(this.devicePlayerConfig.edgeName=t.edgeName),this.defaultPlay&&(this.devicePlayerConfig.deviceItem.rtspUrl=t.data.rtspUrl),t.data&&t.data.rtspUrl?this.supportPlay=!0:this.supportPlay=!1,this.selectedId=t.id,this.showPlayerDialog=!0,this.$nextTick(()=>{this.$refs.playerDialog&&this.setPlayerDialog(t.id),this.$emit("markerClick",{...t})})},setPlayerDialog(){let t=0,e=0;if(this.selectedId&&this.$refs.playerDialog){let n=this.$refs.playerDialog.getBoundingClientRect(),i=this.$refs.renderDom.getBoundingClientRect(),r=document.getElementById(this.selectedId);if(!r)return void(this.showPlayerDialog=!1);let a=r.getBoundingClientRect(),o={left:a.left-i.left,top:a.top-i.top};t=o.left-n.width/2+this.markerSize.width/2,e=o.top-n.height,this.$refs.playerDialog.style.left=t+"px",this.$refs.playerDialog.style.top=e-8+"px"}},closePlayer(){this.showPlayerDialog=!1,this.selectedId=""},addMarker(t,e){e&&(this.markerData=[],this.closePlayer()),this.markerData.push(JSON.stringify(t)),this.markerDataCache.push(JSON.stringify(t)),this.$nextTick(()=>{this.drawPlugin&&(this.drawPlugin.zoomMarker_AddMarker(t),this.$emit("change",this.toJSONData()),this.addDefaultSelected?this.$emit("markerClick",{...t}):this.$emit("markerClick",{id:""}))})},triggerPoper(t,e){"markerOver"===t?(this.popMarkerData=e,this.poperPosition.id=e.id,this.poperPosition.left=e.left+30,this.poperPosition.top=e.top,this.showPoper=!0):this.showPoper=!1,this.$emit(t,e)},getImageSize(t){let e=this;return new Promise(n=>{let i=new Image;t&&(e.loading=!0,i.src=t,i.onload=function(){e.loading=!1,n({width:this.width,height:this.height})})})},toJSONData(t){return this.drawPlugin?this.drawPlugin.toJSONData(t):{}},removeMarker(t){let e=this.markerData.map(t=>JSON.parse(t).id).indexOf(t);-1!==e&&(this.markerData.splice(e,1),this.markerDataCache=[].concat(this.markerData),this.$nextTick(()=>{this.drawPlugin&&this.drawPlugin.removeMarker(t),this.$emit("change",this.toJSONData())}))},fullScreenTrigger(t,e){t.preventDefault(),t.stopPropagation();let n=this.$refs.renderDom;if("exit"===e)return document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen(),this.isFullScreen=!1,this.$emit("fullScreenChange",this.isFullScreen),void this.$nextTick(()=>{this.centerImgAfterFullScreen(e).then(()=>{this.drawPlugin&&(this.drawPlugin.reloadMarkers(),this.calcAlaramPosition(),this.setPlayerDialog())})});n.requestFullscreen?n.requestFullscreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.webkitRequestFullScreen&&n.webkitRequestFullScreen(),this.isFullScreen=!0,this.$emit("fullScreenChange",this.isFullScreen),this.$nextTick(()=>{this.centerImgAfterFullScreen(e).then(()=>{this.drawPlugin&&(this.drawPlugin.reloadMarkers(),this.setPlayerDialog(),this.calcAlaramPosition())})})},centerImgAfterFullScreen(t){let e=this;return new Promise(n=>{window.onresize=()=>{setTimeout(()=>{let{offsetTop:i,offsetLeft:r,offsetWidth:a,offsetHeight:o}=e.$refs.zoomImg,s={left:e.$refs.zoomImg.parentElement.offsetWidth/2,top:e.$refs.zoomImg.parentElement.offsetHeight/2},l=0,c=0,u={left:r+a/2,top:i+o/2};l=u.left<s.left?r+(s.left-u.left):r-(u.left-s.left),c=u.top<s.top?i+(s.top-u.top):i-(u.top-s.top),e.$refs.zoomImg.style.left=l+"px",e.$refs.zoomImg.style.top=c+"px","exit"===t&&(window.onresize=null),n()},10)}})},reloadMarkers(){this.$nextTick(()=>{this.drawPlugin&&this.drawPlugin.reloadMarkers()})},playerStart(){this.devicePlayerConfig.deviceItem.rtspUrl=this.lsRtspurl,this.isPlaying=!0,this.$nextTick(()=>{setTimeout(()=>{this.$refs.qzPlayer.play()},200)})},setMarkerHighligh(t){if(t)for(let e=0;e<this.markerData.length;e++){let n=JSON.parse(this.markerData[e]);n.id===t&&(n.highlight=!0),this.$set(this.markerData,e,JSON.stringify(n))}else this.markerData=this.markerData.map(t=>{let e=JSON.parse(t);return e.highlight=!1,JSON.stringify(e)});this.markerDataCache=[].concat(this.markerData)},setFitView(t){if(t)this.drawPlugin.setFitView(t);else if(0!==this.alarmList.length){let t=this.alarmList[0].objectId;this.drawPlugin.setFitView(t)}},formateDeviceStatus(t){let e=JSON.parse(t),n={status:"",text:""};return 0===e.status?2===e.onlineStatus?n={status:"online",text:"在线",markerImg:d}:3===e.onlineStatus&&(n={status:"offline",text:"离线",markerImg:p}):n=1===e.status?{status:"disabled",text:"禁用",markerImg:g}:{status:"disabled",text:"无效",markerImg:g},n},formateScreenSize(){const t=this.$refs.imgControlLayout.parentElement.parentElement;let e={offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight};0===e.offsetWidth&&console.warn("has no renderWidth"),0===e.offsetHeight&&console.warn("has no renderHeight"),this.renderWidth=e.offsetWidth,this.renderHeight=e.offsetHeight},switchAlarmDevice(){0!==this.alarmList.length&&(this.alarmList[this.currentAlarm]&&this.drawPlugin.setFitView(this.alarmList[this.currentAlarm].objectId),this.currentAlarm+1<this.alarmList.length?this.currentAlarm++:this.currentAlarm+1===this.alarmList.length&&(this.currentAlarm=0))}},created(){this.renderImgId="zoom-img_"+this._uid},mounted(){this.loading=!0,this.formateScreenSize(),document.addEventListener("fullscreenchange",()=>{null!==document.fullscreenElement?this.isFullScreen=!0:this.isFullScreen=!1}),console.log(this)}});const v="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHwAAAB8CAYAAACrHtS+AAAL0klEQVR4Xu2deWwU9xXH32/2Xt/4Xq/Xu14bc5gYwhVQUAKlUkWOpi3QUFRSRfmjaoWCoUmvKKFRE6ltFEgjWlVKKqUqTQS0CSRp/2jKoRBKIYVSjhjwsWt2F5/4XK9nj3nVLDWx3bU9v/HMMtv5jeS//H5v3vt+fu+3s79jlgC7dKUA0VW2LFlgwHXWCRhwBlxnCugsXVbhDLjOFNBZuqzCGXCdKaCzdFmFM+A6U0Bn6bIKZ8B1poDO0mUVzoDrTAGdpaupCnf9Cgsi/OguBLIQAJoNgH/pbLQd1RkTVdPVDHDH3tG6qIBNhJB9BMhRRJiHBJ/hAF/varQ9r6oKOnKuCeDF+zAbovxFIOTZ7h2Wg2P6F+3BcsDREDGQh7qftv5ZR1xUS1UbwF8b/RIKsKun0frFyZmW7OG3IgiPdDfaHldNBR051gbwvfz3EbGop9H6zGTty17lF8YBD/XstM7XERfVUtUG8NdGN4CAz3U32lb/T4XvjW5DTGxgFa5MH9AE8IUH0NwZGOUJR57u3mH95Vhq5XvRFUP+IiGGh7p3mE4qk7K+vWgCuIigeB+WAc+fQoKnCCGnQXxKR/wuR8h3uhqtv9Y3JuWy1wxwMSXHb9Aej/DfEhDqAeG6wUQ+6txuuahcusyTpoAzHOorwICrr7Gm7sCAawqH+sEw4OprrKk7MOCawqF+MAy4+hpr6g5pB97sC71EUHiKEDDQK4EEkXBIcIS+rfItCBI7ISgAEKT1jggJJNwbNW7Hj2nbzsY+rcARkWtrD8bn5OcRjuOo4w6PRED8KymaQ91WjQZdPbcgy25L/tFegiDArf4B9LgqzISQOG17ufZpBR4KheyjUSHsqaqQFW/fwBD09Q9Ctcz2sm46TaNWfxAK8nOhIC9Hlus2fxA4sDjc7uKbshzIaDRr4GLVtviC2whAPhiNf/NWlk05M8aATySUccDb2tCagECEEOhAgIOAsN1g4B7zuCoOp+p8DHiGA2/2BV4hAA1etzO5ccHnCy6Jo3DOANkFHk9B/2ToDHiGA2/xBd7nkHvT43G8N5ZKsy9whRiMX081tDPgmQ7cH3gZBfxhjacy+SzQ2h5aIwjCu3lZFk9xcfEQq/Dpn6oy7jMcEUmLL9gJBAIEsAkRthCOW+Otqki5WYFVeIZXuBi+CN3nu/nlBAj5RmI84XaXtU3Vrxnw/wPgNF8FGXAGnKa/AJt4oZIrpfGsJ15oQmAVziqcpr+wCqdSK7Vx2is8EhXC5SVFskIfCo/AcHhEU3Pp2Vl2yMmyy8rnZlcPGDJtLp0mU3FIH+ETYZo2qWy9bqckF109/fDJp59BwwIPVLvKJLWhMWrxBWjMU9pajOCsrKwMztqRRAfpr3BeCOfmZksMb6IZz/MwykdBKvAWfwecPHM56aSkKB9WLqmDOfny7p0qYBG41WIGi8UiK5/BwWEwGYQKl8sVkuVARqO0A0/n8uh44KI2hBCYW10BS+q9YDEbZcg1sYkul0dpVEv3U/pk4GOxWsymJHQRPplFl2fAZ6CvFeBjYc7Jz0kO8yVFeTT99o4tA55hwMfCFR/oljXUgs1qpgLPgGcocDFsk9EI9yxww4JaF3CctHE+XcA7OjqyYjGuXBBQMJkSHQ6HQ/YmTmmZUfX7qY21NqSnijQ3xw4rFs+FirLCGbNOB/AW340NiPAhIcSHAEaCYAIOnvJWOT+YMcAUBgz4FKq5HMXwwKp6mG53rdrAW/3BRxDxPSMxLKqqKr8ihtrSHlqGicRZzmhcWV1ZfoYWOgM+hWK52XZ4eP1yMJmm/vqmJvAbN9DGJ4LXjEAedbsrzo8P0+cLrBJfg+KtclYTQnga6Az4JLWMRgMsmueG+rqqGT/L1QTe3t7tiCX4816Ps3QyUHEPQqs/cIvDbE+qvYPTdQAGfJw67spSWN5QC3abtJkzNYG3tfXlJ0j4hreqIo8QIoyHiIjmVn+g32xwFlZWkgir8P8qMNXEy2SBCvKyYcWSuVBWXECjHagJHBFNrb5gAAg86XU7PxwfWKs/sA0F2FntrlhKCEnQBK3rCjeLM24Lq6HOK8640UuhJnARYmswWCdEhSYAbovdQo6YTCbDYDj2KGLi95yJLK52Oi/QwBZt6bOkvcM4e618LRPh1rgdsHSRFywWk+yM1AYuBtbWFlicIPAGAVyQPLSIcJED82MeT0mHnMDTDnyEF8IF+fLOYo3yPEQivKzVsjFxigvzktOphQXyYhgvsrhaZrNZwCpztayvfwiMZOazZYgonrQVT6iKvHDyZzoN+LsAPH3r4eM/w21WS7Kive5yGn2mtWXr4TNIeXtIx3BZ6cyzWKlcDQ3T7XhpD3bDidOXYH6NExoWVoPJKONI+jQ5iUN6csdLtrwdLx2dvcCBObNOj9KUy6IfnF56+NvOT9N5XDgWi087eUIT/2RbJT7Df/R+99p3ti85Pps4aNqmb0jffcyY5SdnLr5QsySdwGnEoLVVAvian7VdCJbGl8HutWl5KUD6gG85+rzNRH5y+cVaYMBvdy3xbNl9L7dA11DiBXh73Yu0HU6OfXqAf+PYYgA4YzOCiQH/HNMd4MNCDABWwB/W/ksORJo26gPffdkMVzvPAsA9NhMBBjwF8KHkZNm/oa50OexeGKUBSGurPvCtx34KAibfVMSAT8Qzbki//Q+OvAT71z5HC5HGXl3gW48vBwFPAWByjZEBnwE4kDhwZDXsf1AcEVW51AO+/boFem+cA4QFY5Ez4DMBT86lXYHCynvh9VqqdW6pvUM94FuP/hwEmPAbJgy4BODJoR1+AfvXPSsVIo2dOsC3HF8FRDgJCBPevseASwROQADk7oe3H/w7DUwptsoDbzxlg07+AiDWTg6AAZcIXDQj5DqUWhpgz2qqDQ4zQVcc+K5XPqla5I4fSXljgtycHGu9xUK3/3vMVzyegHgikTzPNdUlrm+LK2JKXN29A3D+cuuUrsRzbkaDAcRtUXIuno9Cfzh6RUhgylm2/kjsezu+uf6vcnxP1UZx4AeOfOyyWIz+aleJknFK8tUe7IUajyN5hEiJ61prEJrbQuCqkLfYM5sYWtu7YGBwZPO2TV+480uNs/E31lYV4Ha72T/P61AiPiofoc4+MJnMcN+9dVTtpjI+fe4qxGJRcJTSbX1S4uZNLSG41TfMgE8nZmQ0Cp81h2DTw/croTkc/OAkzK9xUB9BUuLmDLhEFS9c8SdPjRQXzm5HS3fvEAQ7eqFhQZXEOytrxoBL1HNgcAQuXwu01tU7VqyYN0/WGawzTU32pkvBs/VzKz15ufI2N0gMd0ozBpxCwWZfB3T2DP5p28Z1Gwmh+7UCcZP/7w4dPVRalPvVGrfyrwmRmgYDLlWp22+HhEtXb8DA8Og7drQ9uXmztO+yBw6cso2QyG/zsq2P19dVytq6TBHmtKYMOKWSgoAgVnpX7+BFYjDsfOJraz+azsVbfzy2HhOJV0sKcxeJlS31yDBlWJLNGXDJUk007O0bBl+gGyKjsX9yAO+igfsHIiZ/coIQUk4SwkoB4Cs2q2mp21mkyPZlmaFOaMaAz0JFRIDBoRG41T8M4QgP0ejt0zlmswGybJbkm53Ec+EyDp/MIqrpmzLgqkmrTccMuDa5qBYVA66atNp0zIBrk4tqUTHgqkmrTccMuDa5qBYVA66atNp0zIBrk4tqUTHgqkmrTccMuDa5qBYVA66atNp0zIBrk4tqUTHgqkmrTccMuDa5qBYVA66atNp0zIBrk4tqUWUM8LcOfOwqLDD759Wk/yCCaurfBcdNzSHo7Rva9MTm9YeUvL3iJ0/ePHw4xxzL6SnIyzKn98WeSspyl30hQN9AOMqBoX7rxgeuKxmN4sDF4PYfOlEbF2INRM4ba5XMLkN9ISIaOdMFpWGLcqgCPEN11kXYDLguMH+eJAPOgOtMAZ2lyyqcAdeZAjpLl1U4A64zBXSWLqtwBlxnCugsXVbhDLjOFNBZuqzCGXCdKaCzdFmFM+A6U0Bn6bIKZ8B1poDO0mUVzoDrTAGdpfsfkaE45v2RcG8AAAAASUVORK5CYII=",y="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAFSklEQVRoQ9VabUxbZRR+EBEJoETDYlZxMbKBCAPCpBoKfoytkMUOGqOJiSUaQ2gpQ8MPNeVLKFF/kAi0tDHEhJoscTEtaBbazI8ECloMAUWxKIvZsGZZ4jIFMxURc67c5gba3q/2Dt7kTaH3Pc85T+97zznvOTcJ8RkpAI5szywA3Ekaru+YPwCguSFXfZIMgPsA5AE4DKAIwC0isf4FsAjgRwDLAC6LlGeWSyFwJ4Dj2/NWKUojyPwD4NPt+ZsYTLEEWMPvFqNExNpfOUQEiQklcADAcwAeFIQqf9H3AM4CuMoHJYRAIYAXAaTzgcX5+h8A3gPwbSxcPgJPAng2zoaJhfsAwGfRhGIReBjAS2K1JWj9CICvImFHI3AvgI4EGSMVthfAzzuFIxG4A8DrAO6SqilBctcAvAngdy5+JALNAI4myAi5sN8AsMciQH7+GblaEix/bjtW7IrEFGFfBRAzSG1tbTWyBq6srFzV6/UXFhcXyeWJHkVFRelut/tEbm4uxZn/DUpKepcHiILd2wCYiM3dQnoAWj4rKioqsvx+f/guLS0t/VJSUnJ+Y2Nji0+Wez0lJSVpYWHhVEFBwUH2e41Gc256epoSP77hA+DmEqDEjH59QbmN2Ww+NDQ0FCY7NTV1saqqinIZwWNycvJ4ZWXlA6xAS0uLz2azXRIIQLkT3YXL7B2oBVAnUJhZZrPZipubm9WsjMfjWdTr9V8IwXC73Y/W19dTBssMu90eMJvNXwuR5awZAzDBEnhZSp7j9XqrtFptPgvqdDpnjUbjQixDHA5HSVNTUzm7xufzBWtqaiZFGk/LKV96hwjcBmBAQj7P6AwEAtry8vJDrAGdnZ2f9/b2Uo6/a3R0dBzu6el5gr0wOzt7Sa1W036WMug80UoEyOeT75c8gsGgLi8v7x4WoKGh4bzL5QpxAQ0Gg2p0dPQU+93y8vKV/Pz8jyQr3d59RKAeQI0cIJVKlRoIBE6rVCo6SmJ9ff1GbW3tx36/n/EoGo0ma2Ji4qmMjIw0+j8UCl1Xq9XjoVDoLzl6AXiJwAsAHpEJhLq6ugMul0ubmZnJGLm6unqtrKxsnP6em5s7nZOTw6Qma2trNwwGg29sbIw31xdg05dE4BUA4QdRgFDUJa2trff39/dXJycnM85hfn5+lT5LS0tz6HNzc3Orra3tk4GBgZ/k6OHIBknRGwDC+1cusNVqzbdYLFWRcPr6+ibb29uDcnVw5K8QAfJAt8cRFMPDw8VGozEcIwjb4XAETCaTWF/PZ9afCSFgt9uLTSaTYgTiuoW6urqOdHd3P67kForbQ9zY2JgzODhYnZqaSpU6xR7iuLhRnU6XPTIyUp2dnZ2ptBuVHcgKCwvTPR5POK9XOpA9BOAM3+Me7Trl9TMzMyePHTsWzocUTCUGyQvRfh2Umsx5vd7HtFotFXmZoXAyd4ZNp00AisXehfHx8QqdTkd3kBkKp9MUU4ZZAicAPC2GgN1uP2oymcI51E040HwI4AJLQNSR0mKx5FqtVio7MmMvHCnJDkGHeoPBcNDpdJ5MS0ujgxD2yqGebNn3ZRUisa8LW+yWlnTAF+MAZKxlDvJc+Ui1UaqSvXYTGhp8vKj699bOrk208jp1ZVr4EBW+PhSpWxOrwbEXujPsbxS1S8PXYtoLXZqo3Rlix0eA1lC3hupGSjc8qKFBvYBdXRm+hzjS1qauzfMKNj6okfH+zm5MJMOE3AGu3L5tdHNJ7OtXDbhEKAGkVJrOAjSlvOxBL3nQ/E7Jlz0ibUVK7Ki6Rw0LIa/bXARABa6/5caS/wCwkfkOnFI6EgAAAABJRU5ErkJggg==";function x(t,e,n,i,r,a,o,s,l,c){"boolean"!==typeof o&&(l=s,s=o,o=!1);const u="function"===typeof n?n.options:n;let h;if(t&&t.render&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),i&&(u._scopeId=i),a?(h=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=h):e&&(h=o?function(t){e.call(this,c(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),h)if(u.functional){const t=u.render;u.render=function(e,n){return h.call(n),t(e,n)}}else{const t=u.beforeCreate;u.beforeCreate=t?[].concat(t,h):[h]}return n}const b="undefined"!==typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function _(t){return(t,e)=>A(t,e)}let w;const S={};function A(t,e){const n=b?e.media||"default":t,i=S[n]||(S[n]={ids:new Set,styles:[]});if(!i.ids.has(t)){i.ids.add(t);let n=e.source;if(e.map&&(n+="\n/*# sourceURL="+e.map.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),i.element||(i.element=document.createElement("style"),i.element.type="text/css",e.media&&i.element.setAttribute("media",e.media),void 0===w&&(w=document.head||document.getElementsByTagName("head")[0]),w.appendChild(i.element)),"styleSheet"in i.element)i.styles.push(n),i.element.styleSheet.cssText=i.styles.filter(Boolean).join("\n");else{const t=i.ids.size-1,e=document.createTextNode(n),r=i.element.childNodes;r[t]&&i.element.removeChild(r[t]),r.length?i.element.insertBefore(e,r[t]):i.element.appendChild(e)}}}const C=m;var I=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"imgControlLayout",staticClass:"img-control-layout"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"renderDom",staticClass:"render-dom",attrs:{id:"render-dom"}},[n("img",t._b({ref:"zoomImg",staticClass:"zoom-img",attrs:{id:t.renderImgId,alt:""}},"img",{"data-width":t.bgImgWidth,"data-height":t.bgImgHeight},!1)),t._v(" "),n("div",{staticClass:"map-tools",style:{zIndex:t.markerData.length+1,top:""+t.fullScreenAside[0],right:""+t.fullScreenAside[1]}},[t.isFullScreen?n("button",{staticClass:"map-tools-button exit-fullscreen-button",on:{click:function(e){return t.fullScreenTrigger(e,"exit")}}},[n("i",{staticClass:"qz-map-icon button-icon exit-fullscreen"}),t._v(" "),n("span",{staticClass:"el-tooltip__popper is-dark button-tooltip"},[t._v("退出全屏")])]):n("button",{staticClass:"map-tools-button fullscreen-button",on:{click:function(e){return t.fullScreenTrigger(e,"full")}}},[n("i",{staticClass:"qz-map-icon button-icon fullscreen"}),t._v(" "),n("span",{staticClass:"el-tooltip__popper is-dark button-tooltip"},[t._v("全屏")])]),t._v(" "),0!==t.alarmList.length?n("button",{staticClass:"map-tools-button next-alarm-button",on:{click:t.switchAlarmDevice}},[n("i",{staticClass:"qz-map-icon button-icon next-alarm"}),t._v(" "),n("span",{staticClass:"el-tooltip__popper is-dark button-tooltip"},[t._v("查看下一个告警设备")])]):t._e()]),t._v(" "),t._l(t.markerData,(function(e,i){return n("div",{directives:[{name:"show",rawName:"v-show",value:!JSON.parse(e).hidden,expression:"!JSON.parse(markerItem).hidden"}],key:i,ref:"marker"+JSON.parse(e).id,refInFor:!0,staticClass:"zoom-marker",class:{selected:t.selectedId===JSON.parse(e).id},style:{zIndex:i+1,left:JSON.parse(e).x+"px",top:JSON.parse(e).y+"px"},attrs:{id:JSON.parse(e).id}},[JSON.parse(e).highlight?[n("img",{staticClass:"marker-icon",style:{width:t.markerSize.width+"px",height:t.markerSize.height+"px"},attrs:{draggable:"false",src:JSON.parse(e).markerHigLightImg||t.markerHigLightImg}})]:[n("img",{staticClass:"marker-icon",style:{width:t.markerSize.width+"px",height:t.markerSize.height+"px"},attrs:{draggable:"false",src:t.formateDeviceStatus(e).markerImg}})],t._v(" "),t._t("icon",null,{deviceItem:JSON.parse(e)})],2)})),t._v(" "),t._l(t.alarmList,(function(e,i){return t.markerIdList.indexOf(e.objectId)>-1?n("div",{key:Date.now()+i,staticClass:"pic-map-alarm",style:{left:e.left+"px",top:e.top+"px"},attrs:{id:"alarm-"+e.objectId}},[n("div",{staticClass:"alarm-dialog-container"},[t._t("alarmdialog",null,{data:e})],2),t._v(" "),n("div",{staticClass:"pic-map-arrow"})]):t._e()})),t._v(" "),void 0,t._v(" "),t.showPoper&&t.$slots.popover?n("div",{staticClass:"poper-dialog",style:{left:t.poperPosition.left+"px",top:t.poperPosition.top+"px"}},[t.$slots.popover?[t._t("popover",null,{data:t.popMarkerData})]:t._e()],2):t._e(),t._v(" "),t.showPlayer&&t.showPlayerDialog?n("div",{ref:"playerDialog",staticClass:"player-dialog"},[t.playerSlot?[t._t("player",null,{data:{devicePlayerConfig:t.devicePlayerConfig,marker:t.currentMarkerPos}})]:[n("div",{staticClass:"player-block",class:{"no-play":t.showPlayerDialog}},[t.supportPlay&&t.showPlayerDialog?n("qz-player",{ref:"qzPlayer",staticClass:"player-plugin",attrs:{type:"live",playerServer:t.devicePlayerConfig.playerServer,pluginUrl:t.devicePlayerConfig.pluginUrl,basicConfig:t.devicePlayerConfig.basicConfig,devices:t.playerDevices}}):n("div",{staticClass:"empty-video"},[n("img",{attrs:{src:v,alt:""}}),t._v(" "),n("span",[t._v("暂无视频")])])],1),t._v(" "),n("div",{staticClass:"device-info"},[t.devicePlayerConfig.deviceItem.taskName?n("p",[n("span",{staticClass:"title"},[t._v("布控任务:")]),t._v(" "),n("span",{staticClass:"info"},[t._v(t._s(t.devicePlayerConfig.deviceItem.taskName||"-"))])]):t._e(),t._v(" "),n("p",[n("span",{staticClass:"title"},[t._v("区域名称:")]),t._v(" "),n("span",{staticClass:"info"},[t._v(t._s(t.devicePlayerConfig.deviceItem.areaName))])]),t._v(" "),t.devicePlayerConfig.deviceItem.edgeName?n("p",[n("span",{staticClass:"title"},[t._v("边端名称:")]),t._v(" "),n("span",{staticClass:"info"},[t._v(t._s(t.devicePlayerConfig.deviceItem.edgeName||"-"))])]):t._e(),t._v(" "),n("p",[n("span",{staticClass:"title"},[t._v("设备名称:")]),t._v(" "),n("span",{staticClass:"info"},[t._v(t._s(t.devicePlayerConfig.deviceItem.deviceName))])])]),t._v(" "),n("img",{staticClass:"close-icon",attrs:{src:y,alt:""},on:{click:t.closePlayer}})]],2):t._e()],2)])},T=[];const k=function(t){t&&t("data-v-32c10c67_0",{source:".img-control-layout{position:relative;z-index:0;overflow:hidden;width:100%;height:100%}.img-control-layout .jump-animate .marker-icon{-webkit-animation:jumpIcon .5s cubic-bezier(.165,.84,.44,1) infinite alternate;animation:jumpIcon .5s cubic-bezier(.165,.84,.44,1) infinite alternate;-webkit-animation-delay:-.9s;animation-delay:-.9s}.img-control-layout .render-dom{width:100%;height:100%;background-color:#f7fafc}.img-control-layout .render-dom .set-full-button{position:absolute;right:20px;top:20px;z-index:99999}.img-control-layout .render-dom .zoom-img{position:absolute;left:0;top:0;box-shadow:0 2px 8px 0 rgba(0,0,0,.4)}.img-control-layout .render-dom .zoom-marker{position:absolute;cursor:pointer;border:1px solid transparent}.img-control-layout .render-dom .zoom-marker .marker-icon{cursor:pointer;vertical-align:middle}.img-control-layout .render-dom .zoom-marker.selected{border-color:#5b99ff}.img-control-layout .poper-dialog{position:absolute;z-index:9999;border:1px solid;border-radius:5px;background-color:#7b7b7b;padding:10px 15px;color:#fff;transition:all .3s}.pic-map-alarm{position:absolute;background:#fff;font-size:14px;border:1px solid #ebeef5;box-sizing:border-box}.pic-map-arrow{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid;left:50%;transform:translateX(-50%);border-width:6px;bottom:-6px;margin-right:3px;border-top-color:#ebeef5;border-bottom-width:0}.pic-map-arrow::after{content:' ';border-width:6px;bottom:1px;margin-left:-6px;border-top-color:#fff;border-bottom-width:0}.pic-map-alarm,.player-dialog{z-index:998}.player-dialog{position:absolute;background-color:#fff;border:1px solid #dcdfe3;padding:4px;width:320px}.player-dialog .close-icon{position:absolute;right:15px;top:15px;z-index:3;width:16px;height:16px;cursor:pointer}.player-dialog .player-block{position:relative;z-index:2;width:100%;height:180px}.player-dialog .player-block.no-play{background-color:#edeff1}.player-dialog .player-block .rtsp-player{width:100%;height:180px}.player-dialog .player-block .player-control-bar{display:none}.player-dialog .player-block .empty-video{display:flex;flex-flow:column;align-items:center;justify-content:center;width:100%;height:100%;color:#42526e;font-size:14px;font-weight:600}.player-dialog .player-block .empty-video img{width:62px;height:62px}.player-dialog .device-info{padding:16px;font-size:14px}.player-dialog .device-info p{display:flex;line-height:initial;margin:0}.player-dialog .device-info .title{color:#7a869a;flex-shrink:0}.player-dialog .device-info .info{color:#42526e}.player-dialog .play-button{position:absolute;z-index:998;left:50%;top:50%;transform:translate(-50%,-50%)}@keyframes jumpIcon{0%{-webkit-transform:translateY(0);transform:translateY(0)}100%{-webkit-transform:translateY(-35px);transform:translateY(-35px)}}",map:void 0,media:void 0})},M=void 0,D=void 0,E=!1,L=x({render:I,staticRenderFns:T},k,C,M,E,D,!1,_,void 0,void 0),P="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAHwElEQVR4Xu3dYW7bOBBAYQrtvZoepblI3XMU6B4l6r0aeJG42BhxbE3IUNJyvvwmGc8bPg1JW9JU/CGAwFUCEzYIIHCdAEHMDgRuECCI6YEAQcwBBOoIqCB13PRKQoAgSRItzDoCBKnjplcSAgRJkmhh1hEgSB03vZIQIEiSRAuzjgBB6rjplYQAQZIkWph1BAhSx02vJAQIkiTRwqwjQJA6bnolIUCQJIkWZh0BgtRx0ysJAYIkSbQw6wgQpI6bXkkIECRJooVZR4Agddz0SkKAIEkSLcw6AgSp46ZXEgIESZJoYdYRIEgdN72SECBIkkQLs44AQeq46ZWEAEGSJFqYdQQIUsdNryQECJIk0cKsI0CQOm56JSFAkCSJFmYdAYLUcdMrCQGCJEm0MOsIEKSOm15JCBAkSaKFWUeAIHXc9EpCgCBJEi3MOgIEqeOmVxICBEmSaGHWESBIHTe9khAgSJJEC7OOAEHquOmVhABBkiRamHUECFLHTa8kBAgSSPTdP8fv5VgOgaZXm8z3UxPru5/Hu/KpPLR8hjKVw/xt+tE0RrLOTUnLwoogWTJ9GSdBArknSADSoE0IEkgsQQKQBm1CkEBiCRKANGgTggQSS5AApEGbECSQWIIEIA3ahCCBxBIkAGnQJrsX5HlyNv61nv0T5CUBe8hH43R4V/f9C/LreHxXRJeN5/l++toyBkHOBNlBPlpy+d6+BAkQIwhBAtNkmyZ3O7hiEYQg28z+wH8lyAnSXn6LtYd8BKbNhzWxxAqgVEFUkMA02abJHq5YBCHINrM/8F8JYokVmCbdmlhiBdCqICpIYJps00QFUUG2mXmn/6qCBOirICpIYJps00QFUUG2mXkqSJi7CqKChCfL2g1VEBVk7Tl3/v/sQQL0VRAVJDBNtmmigqgg28w8e5AwdxVEBbmYLH4cdzYpPDjuPxjZKvrVPQhBCPJWiSXIXyoEIQhBbnyTThCCEIQgoY26Tfq+Nulr5sMeJKDImgm59nFU9G0qOkEIEiCggjjmvTFNVBCCEIQgoUrimNcx7+XFwheFvih8PStsCrfZFNqkLxeyNZe8NunL+ShrJoQgywlZMx8EWc4HQc4Y2YPYg9iD3DqwSPYoWBVEBQkQcMzrmNcxb0gUS6wPXmKVP+V3iPy1Rp/KQ1P/UubyWH40jfG5fCnHcmga47E0vaPk+X+3spjKQT5OWZzvp9Dt5n2XWE0zSmcE+hEgSD+2Rh6AAEEGSKIQ+hEgSD+2Rh6AAEEGSKIQ+hEgSD+2Rh6AAEEGSKIQ+hEgSD+2Rh6AAEEGSKIQ+hEgSD+2Rh6AAEEGSKIQ+hEgSD+2Rh6AAEEGSKIQ+hEgSD+2Rh6AAEEGSKIQ+hEgSD+2Rh6AwD4EebpBp/Wv9UalpxumpjK3fozmG6b2wGIPn2En+diNIPO3qeluvmy3eF4T2XPKXsh47M/ZLCHICQZBCPLmxZMgBHk9MVQQFeTiYqGCqCAqyI2TBIIQhCAECR02WmJZYlli3bpYrPg6ir7PxZrKwTHvKdPRc3fHvMtFRAVRQVQQFWT5SvF8/p/saeIqyPK8UEFUEBVEBVm+UqggZ0ebP493H/HwanvC9+0JbdIDnq5Z0i2xlhOyZj4IspwPr2BLvOQlCEECBM6WeskOTQgSmB5rlnRLrOWErJkPgiznwxLLEutylvhx3NmyYsWfNqggy1csFSTxFYsgBFkmQBBfFPqiMOaJn5qcOFnybrPktUkPeLrmmtcSazkha+aDIMv5cIqVeMlLEIIECPii0KZwJ5tCS6xlXy2xEpd0ghBkmQBBVPSdVHR7kICua5Z0FWQ5IWvmgyDL+XCKlbiiE4QgAQJOsax5d7LmtcRa9tUSK3FJJ0gyQcqf8ns55BstPpWHpv5PL2x5LE3vKCmfy5fmF+g8lq+NcZSPeGiDfJyyEH2QX989SPOMMAACfQgQpA9Xow5CgCCDJFIYfQgQpA9Xow5CgCCDJFIYfQgQpA9Xow5CgCCDJFIYfQgQpA9Xow5CgCCDJFIYfQgQpA9Xow5CgCCDJFIYfQgQpA9Xow5CgCCDJFIYfQgQpA9Xow5CgCCDJFIYfQgQpA9Xow5CYB+CTOXQzPPYPMZcpjJv/jn2wGIPn+HpBrYd5GM3gnjt8EnNaEKuiezp7i9k3JN+Nku8/uAEgyAEefPiSRCCvJ4YKogKcnGxUEFUEBXkxkkCQQhCEIKEDhstsSyxLLFuXSxWfC133+diTeXgmNcx76u5Ps/3U9ND9FQQFUQFUUFCy83imNcxr2PeW1eLX8djTKWrrf5XJf1aFE6xnGI5xXKKFboW2oPYg9iD2IOELhb2IH8xWWJZYlliWWKFrpqWWJZYllh7X2KFVNYIgcEJXP0mffC4hYdAiABBQpg0ykqAIFkzL+4QAYKEMGmUlQBBsmZe3CECBAlh0igrAYJkzby4QwQIEsKkUVYCBMmaeXGHCBAkhEmjrAQIkjXz4g4RIEgIk0ZZCRAka+bFHSJAkBAmjbISIEjWzIs7RIAgIUwaZSVAkKyZF3eIAEFCmDTKSoAgWTMv7hABgoQwaZSVAEGyZl7cIQIECWHSKCsBgmTNvLhDBAgSwqRRVgIEyZp5cYcIECSESaOsBAiSNfPiDhEgSAiTRlkJ/AuPGOtQro/0lwAAAABJRU5ErkJggg==",O="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAHRUlEQVR4Xu3dYW7bOBCGYfVk3Z5suydLe7IuBAdwECfSF9KUVM5jIP9IxfMOXw5HjuJvixcCCHxK4Bs2CCDwOQGCWB0IbBAgiOWBAEGsAQTaCKggbdzMKkKAIEUSLcw2AgRp42ZWEQIEKZJoYbYRIEgbN7OKECBIkUQLs40AQdq4mVWEAEGKJFqYbQQI0sbNrCIECFIk0cJsI0CQNm5mFSFAkCKJFmYbAYK0cTOrCAGCFEm0MNsIEKSNm1lFCBCkSKKF2UaAIG3czCpCgCBFEi3MNgIEaeNmVhECBCmSaGG2ESBIGzezihAgSJFEC7ONAEHauJlVhABBiiRamG0ECNLGzawiBAhSJNHCbCNAkDZuZhUhQJAiiRZmGwGCtHEzqwgBghRJtDDbCBCkjZtZRQgQpEiihdlGgCBt3MwqQoAgRRItzDYCBGnjZlYRAgQpkmhhthEgSBs3s4oQIEiRRAuzjQBB2riZVYQAQYokWphtBAjSxs2sIgQIkiX632VZfmZDPx3Vy/qfZVleOt/DGsN/ndcoNb03aVVgEaRKpt/FSZAs8QTJOE03iiBZSgmScZpuFEGylBIk4zTdKIJkKSVIxmm6UQTJUkqQjNN0owiSpZQgGafpRv0NgqyLs/fVe++fIPcMXCEfveshnv83CPInjubjgb+WZfnReQ2C3AFeIR+d6cynEyRjRRCCZCvlhFFX2LEIQpATln72Kwly43SVv8W6Qj6ylfOEUY5YGUQVRAXJVsoJo66wYxGEICcs/exXEsQRK1spA0Y5YmVQVRAVJFspJ4xSQVSQE5bd7VeqIBl6FUQFyVbKCaNUEBXkhGWngnwFugqignxlvRw6VgVRQQ5dcG9/mR4kQ6+CqCDZSjlhlAqigpyw7PQgX4GugqggD+vFH8fdkRDkWoIclo+tHoQgBPmoypY68hIkO2gdtmNtvB0b1gkbFkEIkhFwxNKDbKwUFYQgBCFIVEz0IK+YnHlPOPPqQSJJD6voepAoH8thCSFIlJDD8kGQKB8EeYPJEcsR68Gaw3YsFSTasQ7LhwoS5UMFUUEeF4omXZPuk3QlPSohh5V0+bhWPhyxonw4YjliOWJtqaKC+CTdJ+k+SY/Kqdu8T77N+zvC/vmgl8756/eD9H6BzvdlWX52vo/e7yhZf30vizUG+bglMnrcfHQP0rmmTEdgGAGCDEPrwjMQIMgMWRTDMAIEGYbWhWcgQJAZsiiGYQQIMgytC89AgCAzZFEMwwgQZBhaF56BAEFmyKIYhhEgyDC0LjwDAYLMkEUxDCNAkGFoXXgGAgSZIYtiGEaAIMPQuvAMBAgyQxbFMIwAQYahdeEZCFxCkN6HjNZE9F5jfWBq/el99b6P3vnPYHGF93CVfFxGkN6n+Uo94rlhsX/DdIdz2P8IGP1E4bpjEeSW2GjHIkhU6AnyBpMKcoOhgqggH+4eBCHI+4WhgqggD5uFCqKCqCB6ED1IREAFUUE2FoojFkEIQpCslmjSNema9A1XCEIQghBkt5y6i+UulrtY7mLtbhTrAE26Jl2TrkmPNotFD6IH0YPoQXZ3Cz2IHkQPogfZ3Sj0IO8QOWI5YjliOWLt7pyOWI5YjliOWLsbhSOWI9aHi0QFUUFUEBVEBYkI+KDQB4U+KMxUcRfLXSx3sdzF2t0t9CB6ED2IHmR3o3AXy10sd7F2NPHXvJp0TbomPaqm/pr3FZMeRA+iB9GDRLumI5YjliOWI1a0WThiOWI9LBQVRAVRQapUkN9Zofh01Evn/PULW3q/guH7E77I50dnHOv0Xhbr11HIxy0R0ddRjP5+kCesCZdAYAgBggzB6qKzECDILJkUxxACBBmC1UVnIUCQWTIpjiEECDIEq4vOQoAgs2RSHEMIEGQIVhedhQBBZsmkOIYQIMgQrC46CwGCzJJJcQwhQJAhWF10FgIEmSWT4hhCgCBDsLroLAQIMksmxTGEAEGGYHXRWQhcQpD1AZ3eV+811gem1p/eV+/76J2/vv/ea/TOf8Z7uEo+LiNI79N8/jfvTW3/9ue+xXkm/c12TxCCvK/+BCHIw4lQBVFBPmwTVBAVRAXZ6KAJQhCCEGT3JpsjliOWI9aGJgQhCEEIsltJ1wHuYrmL5S7WhioEIQhBCBJVU//d/RWTHkQPogfRg0S7piOWI5YjliNWtFk4YjliPSwUFUQFUUFUEBUkI3AbpUm/WJP+leQZi8CUBKKnqqaMXFAIBAQIEkAypC4BgtTNvcgDAgQJIBlSlwBB6uZe5AEBggSQDKlLgCB1cy/ygABBAkiG1CVAkLq5F3lAgCABJEPqEiBI3dyLPCBAkACSIXUJEKRu7kUeECBIAMmQugQIUjf3Ig8IECSAZEhdAgSpm3uRBwQIEkAypC4BgtTNvcgDAgQJIBlSlwBB6uZe5AEBggSQDKlLgCB1cy/ygABBAkiG1CVAkLq5F3lAgCABJEPqEiBI3dyLPCBAkACSIXUJ/A8iAlH2GCW/6AAAAABJRU5ErkJggg==",R=42,N=42;class B{constructor(t){l(this,"_icon",{}),this._icon=t||{},this._icon.onlineCamera||(this._icon.onlineCamera=d),this._icon.offlineCamera||(this._icon.offlineCamera=p),this._icon.disabledCamera||(this._icon.disbaledCamera=g),this._icon.onlineGate||(this._icon.onlineGate=P),this._icon.offlineGate||(this._icon.offlineGate=O)}createMarker(t){const{onlineIcon:e,offlineIcon:n,disabledIcon:i}=this.createMarkerIcon(t);return{marker:new AMap.Marker({position:new AMap.LngLat(t.lon,t.lat),title:t.objectName,offset:new AMap.Pixel(-(t.markerWidth||R)/2,-(t.markerHeight||N)),icon:this.formateDeviceStatus(t)}),onlineIcon:e,offlineIcon:n,disabledIcon:i}}createMarkerIcon(t){let e,n,i;return t.onlineIcon||t.offlineIcon||t.disabledIcon?t.onlineIcon&&t.offlineIcon&&t.disabledIcon?(e=t.onlineIcon,n=t.offlineIcon,i=t.disabledIcon):t.onlineIcon?(e=t.onlineIcon,n=t.onlineIcon,i=t.onlineIcon):t.offlineIcon?(e=t.offlineIcon,n=t.offlineIcon,i=t.offlineIcon):(e=t.disabledIconImage,n=t.disabledIconImage,i=t.disabledIconImage):"gate"===t.objectType?(e=this._icon.onlineGate,n=this._icon.offlineGate):(e=this._icon.onlineCamera,n=this._icon.offlineCamera,i=this._icon.disabledCamera),{onlineIcon:new AMap.Icon({size:new AMap.Size(t.markerWidth||R,t.markerHeight||N),image:e,imageSize:new AMap.Size(t.markerWidth||R,t.markerHeight||N)}),offlineIcon:new AMap.Icon({size:new AMap.Size(t.markerWidth||R,t.markerHeight||N),image:n,imageSize:new AMap.Size(t.markerWidth||R,t.markerHeight||N)}),disabledIcon:new AMap.Icon({size:new AMap.Size(t.markerWidth||R,t.markerHeight||N),image:i,imageSize:new AMap.Size(t.markerWidth||R,t.markerHeight||N)})}}formateDeviceStatus(t){return 0!==t.status?(t.status,g):2===t.onlineStatus?d:3===t.onlineStatus?p:void 0}}const z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAJKADAAQAAAABAAAAJAAAAAAJxsHGAAADV0lEQVRYCe1XS0hUURj+zmiOqYi0yIo2JQajQrZoH1FEuI3ATI0emwwqgoih6PZgjDYlVJsiEhIxItpIUJt2tcsgZxZmbSxzEyJpjuac/v8O49x7z2PujLrzwL3nnP/xfd899/z3Aaw3+woIu1vjdUZrsCgOIiPbyNsEKeup54PbFISYoj6JiBjGBvkOTvMf1xPyFF6QM7oFC7gOiZMkoiIUvhALEHiKCtwgYb/C5IQTFP9yERncIsDqMKCamFlEcA2Jlnsan89kF+TIcqRTjyAzZ3xZpU5E5DGisbNwxD8TRLnJ4drTqSckptsaU4yTLyyd4tt9wpQWMTkQT55eVTE5Ir5AxjY0/S2LJ7dSFY0DcqMhb4Vm8ZeqsAGJpskgkH6FMvLS2olhCXShLkdQDqgog80Zq8V8+ieZS62oIKJpPovK6DY4jTPeAHVTpxf3hxWzvbYcdw/XY9/OrPb332Zx+c0UJmaMReTlrkaW67XXqAoCDngDTGMW8/l8AzZV5SHaW+twaFcNdveNhxXFXD5Bmj0k95pEeO28Ml4xOR/b2BeuqVyqIInNYcByt0kXa/P54jVcqiAhQwnyAZc60XCpgmB+rHt5eQObms3nz1G5NIIw4U/Sz7iafs+p1cQ29oVsCpdO0IcwYFzaXE2DI9OYnFl0Dx4XUWFMo3Dla3ZZhXhFT9JTy1PLgEUdG/phiSjkYi5/U1coGntLz296j61xYw7mCjRVEH+riMjNQNzqT5lD812kCmLq1tgAveY+rr6KHCJhuxy5eb7XCzoqliikkw5zbecxih0xZieyHEquXhCH3Wn+St8s55SMlRoEelxsA45ZECckmp+RqF5DbvFmxupt6bclqt9DwWgpBeKpAfqcbQ+6ipqLyCASsQ76b5O2PPsKcSYDRGNd1A/ZgKw+zs1iWMW4dFYgr/OFLMOnZD/9JHZ4zQXHQgxgT1O3aRMH8wuvUC6DqyLa1EVL1pczFe4plnMMFaXLL7yHdFlXRrn67tMrpkznJtH82LhA1fRA7zdbSxPEePFkG2305/SvX+eDF5imJ/1x+sUZ9tlDTkoXxARXxxqwtPCS9lWryyfECMoqjuB2Y8nvwpUJYhXO90rMzz10BVVW9cDZMe+O109rtAL/AUvA7qP2DtrOAAAAAElFTkSuQmCC",F=36;class V{constructor(t){l(this,"_icon",{}),this._icon=t||{},this._icon.location||(this._icon.location=z)}createLocation(t){const e=this.createLocationIcon(t);return new AMap.Marker({position:new AMap.LngLat(t.lon,t.lat),title:t.objectName,offset:new AMap.Pixel(-F/2,-F),icon:e})}createLocationIcon(t){let e;return e=t.icon?icon:this._icon.location,new AMap.Icon({size:new AMap.Size(F,F),image:e,imageSize:new AMap.Size(F,F)})}}class W{constructor(t,e,n){l(this,"_map",void 0),l(this,"_alarmConfig",void 0),l(this,"_mapInfoWindow",void 0),l(this,"_mapAlarmIds",void 0),this._map=t,this._alarmConfig=e,this._mapInfoWindow=n,this._mapAlarmIds={}}showAlarmMsg(t,e,n){let i;this._alarmConfig.bounceIconOnAlarm&&e.marker&&e.marker.setAnimation("AMAP_ANIMATION_BOUNCE"),this._alarmConfig.showAlarmOnMap&&(i=this.openAlarmInfoWindow(e,t),this._mapInfoWindow.openedPointObjectId!==e.objectId&&-1===Object.keys(this._mapAlarmIds).indexOf(t.objectId)&&(this._map.add(i),this._mapAlarmIds[t.objectId]=i,this.setSwitchDeviceButtonText()));const r=()=>{this._alarmConfig.showAlarmOnMap&&(this._mapInfoWindow.openedPointObjectId!==e.objectId&&(this._map.remove(i),delete this._mapAlarmIds[t.objectId],this.setSwitchDeviceButtonText()),this.cancelAlarm(e),n(t,e))};return 0!==t.autoCloseTime&&setTimeout(r,t.autoCloseTime||1e4),i.on("remove",()=>{console.log("remove addEventListener")}),i}cancelAlarm(t){this._alarmConfig.bounceIconOnAlarm&&t.marker.setAnimation("AMAP_ANIMATION_NONE")}openAlarmInfoWindow(t,e){let{alarmWindow:n,closeButton:i,content:r}=this.createBasicAlarmWindow(e);this._alarmConfig.customAlarmInfoWindow?r.appendChild(this._alarmConfig.customAlarmInfoWindow({...t,marker:void 0,onlineIcon:void 0,offlineIcon:void 0,markerClickEvent:void 0},e)):r.appendChild(this.createAlarmInfoContent(e));const a=document.createElement("div");a.style.position="absolute",document.body.appendChild(a),a.appendChild(n),a.removeChild(n),document.body.removeChild(a);const o=new AMap.Marker({position:new AMap.LngLat(t.lon,t.lat),offset:new AMap.Pixel(-(e.dialogWidth||200)/2,-(e.dialogHeight||200)-80),content:n}),s=()=>{this._mapInfoWindow.openedPointObjectId!==t.objectId&&(this._map.remove(o),delete this._mapAlarmIds[e.objectId],this.setSwitchDeviceButtonText()),this.cancelAlarm(t)};return i.addEventListener("click",s),o}createBasicAlarmWindow(t){const e=document.createElement("div");e.classList.add("map-alarm-info-window"),e.style.width=t.dialogWidth+"px",e.style.height=t.dialogHeight+"px";const n=document.createElement("div");if(n.classList.add("map-alarm-info-close"),n.classList.add("qz-map-icon"),n.classList.add("close"),e.appendChild(n),t.title){const n=document.createElement("div");n.classList.add("map-alarm-info-title"),n.innerText=t.title,e.appendChild(n)}const i=document.createElement("div");return i.classList.add("map-alarm-info-content"),e.appendChild(i),{alarmWindow:e,closeButton:n,content:i}}createAlarmInfoContent(t){const e=document.createElement("div");return e.innerHTML=t.text,e}setSwitchDeviceButtonText(){let t=document.querySelector(".next-alarm-button");return t&&(0===Object.keys(this._mapAlarmIds).length?t.style.display="none":t.style.display="block",t.querySelector(".button-tooltip").innerText=`查看下一个告警设备(${Object.keys(this._mapAlarmIds).length})`),new Promise(t=>{t(this._mapAlarmIds)})}}var U={name:"PlayerVat",props:{url:{type:String},pointInfo:{type:Object},supportPlay:{type:Boolean,default:!0},pluginUrl:{type:String}},components:{QzPlayer:s()},data(){return{isPluginLoaded:!1,loading:null,devicePlayerConfig:{devices:[],basicConfig:{autoPlay:!1},playerServer:this.playerServer,pluginUrl:this.pluginUrl},isPlaying:!1}},methods:{pluginOnLoad(){this.isPluginLoaded=!0},onStreamStatus(t,e){2===e?this.loading=!1:null===this.loading&&(this.loading=!0)},closeStream(){this.$refs.qzPlayer&&this.$refs.qzPlayer.stop()},playerStart(){this.devicePlayerConfig.deviceItem.rtspUrl=this.pointInfo.rtspUrl,this.isPlaying=!0,this.$nextTick(()=>{setTimeout(()=>{this.$refs.qzPlayer.play()},200)})}},created(){this.devicePlayerConfig.playerServer=this.pointInfo.data.playerServer,this.devicePlayerConfig.devices=[].concat({rtspUrl:this.pointInfo.data.rtspUrl,dcs:this.pointInfo.data.dcs,areaName:this.pointInfo.data.areaName,deviceName:this.pointInfo.data.deviceName})},mounted(){},render(t){return t("div",{class:{"player-ctnr":!0},style:{position:"relative"}},[t("div",{class:"el-loading-mask",style:{position:"absolute",backgroundColor:"#101010",zIndex:"900",display:this.isPluginLoaded&&this.loading?"":"none"}},[t("div",{class:"el-loading-spinner",domProps:{innerHTML:'<svg viewBox="25 25 50 50" class="circular"><circle cx="50" cy="50" r="20" fill="none" class="path"></circle></svg>'}})]),(()=>{if(this.supportPlay)return t("qz-player",{ref:"qzPlayer",props:{type:"live",basicConfig:this.devicePlayerConfig.basicConfig,pluginUrl:this.devicePlayerConfig.pluginUrl,playerServer:this.devicePlayerConfig.playerServer,devices:this.devicePlayerConfig.devices}})})()])}};class H{constructor(t,e){l(this,"_map",void 0),l(this,"_infoWindowConfig",void 0),l(this,"_livePlayerInstance",void 0),l(this,"openedPointObjectId",null),this._map=t,this._infoWindowConfig=e}openInfoWindow(t,e){let{infoWindowNode:n,content:i}=this.createBasicInfoWindow(t,e);const r=new AMap.InfoWindow({...e.infoWindowConfig,content:n,position:[t.lon,t.lat],offset:new AMap.Pixel(0,-48),retainWhenClose:!0,isCustom:!0});r.on("close",t=>{this.openedPointObjectId=null,this.closeStream()}),r.open(this._map),this.openedPointObjectId=t.objectId}createBasicInfoWindow(t,e){const n=document.createElement("div");n.classList.add("map-info-window");const i=document.createElement("div");let r=null;if(t&&t.data&&t.data.rtspUrl&&(r=document.createElement("div"),r.classList.add("map-info-content"),r.appendChild(this.createInfoWindowContent(t.data.rtspUrl,t,e))),!r){r=document.createElement("div"),r.classList.add("map-info-no-play"),r.classList.add("empty-video");const t=document.createElement("img");t.src=v;const e=document.createElement("span");e.innerText="暂无视频",r.appendChild(t),r.appendChild(e)}let a=null;if(t&&t.data&&(t.data.deviceName||t.data.areaName)){if(a=document.createElement("div"),a.classList.add("map-info-device"),t.style&&0!==Object.keys(t.style).length&&(a.style={...a.style,...t.style}),t.data.hasOwnProperty("taskName")){let e,n,i=document.createElement("p");i.classList.add("map-task-name"),e=document.createElement("span"),e.classList.add("title"),e.innerText="布控任务:",n=document.createElement("span"),n.classList.add("info"),n.innerText=t.data.taskName||"-",i.appendChild(e),i.appendChild(n),a.appendChild(i)}let e,n,i=document.createElement("p");if(i.classList.add("map-area-name"),e=document.createElement("span"),e.classList.add("title"),e.innerText="区域名称:",n=document.createElement("span"),n.classList.add("info"),n.innerText=t.data.areaName,i.appendChild(e),i.appendChild(n),a.appendChild(i),t.data.hasOwnProperty("edgeName")){let e,n,i=document.createElement("p");i.classList.add("map-edge-name"),e=document.createElement("span"),e.classList.add("title"),e.innerText="边端名称:",n=document.createElement("span"),n.classList.add("info"),n.innerText=t.data.edgeName||"-",i.appendChild(e),i.appendChild(n),a.appendChild(i)}let r=document.createElement("p");r.classList.add("map-device-name"),e=document.createElement("span"),e.classList.add("title"),e.innerText="设备名称:",n=document.createElement("span"),n.classList.add("info"),n.innerText=t.data.deviceName,r.appendChild(e),r.appendChild(n),a.appendChild(r)}const o=document.createElement("img");return o.classList.add("map-info-close"),o.src=y,o.addEventListener("click",()=>{this._map.clearInfoWindow()}),this._infoWindowConfig.customMarkerInfoWindow?n.appendChild(this._infoWindowConfig.customMarkerInfoWindow(t,()=>{this._map.clearInfoWindow()})):(i.classList.add("map-info-content"),r&&n.appendChild(r),a&&n.appendChild(a),n.appendChild(o)),{infoWindowNode:n,content:i}}createInfoWindowContent(t,e,n){return this.createLivePlayer(t,e,n)}createLivePlayer(t,e,n){const r=i["default"].extend(U),a=new r({el:document.createElement("div"),propsData:{url:t,pointInfo:e,supportPlay:!n.customMarkerInfoWindow,pluginUrl:n.playerPluginUrl},methods:{closeInfoWindow(){this._map.clearInfoWindow()}}});return this._livePlayerInstance=a,a.$el}closeStream(){this._livePlayerInstance&&this._livePlayerInstance.closeStream(0),this._livePlayerInstance=null}}const G="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAWqElEQVR4Xu2dC5QcVZnH/191HgSCwIYAy0NBjhBAQCAg4TFdPQkgICAuIghIuiYhK7u8lgV1V9dw5CHBlSwvF5KuTjywJwYxBBZQEzI1ExABkYfIEYQEjIgSVJZggqG7vj2300FMuruqbt2u7q766pw+M0nf7/X7+j9VXXXrFkE2ISAEmhIgYSMEhEBzAiIQ+XQIgRYERCDy8RACIhD5DAgBPQKyB9HjJlYZISACyUijpUw9AiIQPW5ilRECIpCMNFrK1CMgAtHjJlYZISACyUijpUw9AiIQPW5ilRECIpCMNFrK1CMgAtHjJlYZISACyUijpUw9AiIQPW5ilRECIpCMNFrK1CMgAtHjJlYZISACyUijpUw9AiIQPW5ilRECIpCMNFrK1CMgAtHjJlYZISACyUijpUw9AiIQPW5ilRECIpCMNFrK1CMgAtHjJlYZISACyUijpUw9AiIQPW5ilRECIpCMNFrK1CMgAtHjJlYZISACyUijpUw9AiIQPW5ilRECIpCMNFrK1CMgAtHjJlYZISACyUijpUw9AiIQPW5ilRECIpCMNFrK1CMgAtHjJlYZISACyUijpUw9AiIQPW5ilRECIpCMNFrK1CMgAtHjJlYZISACyUijpUw9AiIQPW5ilRECIpCMNFrK1CMgAtHjJlYZISACyUijpUw9AiIQPW5ilRECIpCMNFrK1CMgAtHjJlYZISACyUijpUw9AiIQPW5ilRECIpCMNFrK1CMgAtHjJlYZISAC6VCj7Zt5rDUGe1WBvYmwF3xsQYTRPmE0eMPvYIxG/d8M5AC8Q4R18PEO1M/6v30f7xDwClt4gYBfeUX6XYfKSl1YEUibWzp5Du9YsXAwAXujLgbe8Psu7QrNwFsEvMDAC0R4IVfBogen0zPtipdmvyIQg921y7yFVcVhvoXDCDiMGRNB2MNgiDiuXiTGoiqw1FqFZd5MqsRxlhVbEUjMThdcPo6BYwBMrL+2iumy7eYE/JaBJWTh3sGpdFfbA/ZwABGIRvPsOWwjhxPBOBGEfTRcdJPJUyAssKpYsGwavdJNiXVDLiKQkF2wy3x4TRCovQ4KadZLw9YQY0GVsGDYoWW9lHg7cxWBBNC1Xf4kCOeBcVI7G9Flvr9nAdcvc+jHXZZX4umIQJogz6gw/oYGAzcQ4XqvSC8n/snskoAikE0aIcLY7JP5OxBmj98K1995Oq3vks9tYmmIQOqo++ZyH1m4lICTE6PPqICwkgkribEShNcaxmbMbPT/zHisdpER2LbdOTPwMwK+6Dm0tN2xusl/5gXS5/JuFnApgIva1RgGXifC4wAeB+Nl38dKWFg57NCqoJjqijvGYE0T4VziDdBs9V5fmT9CwAQAEyzGocyYBMKuQf6jvM+AT4xLN8aMYturYzMtELvMF4Fr4tjNYAPXMPA4qZeFx6mCn8Y5fdo/j/f0fbzYJL9zPIdub5b7ZJf3rTImMeEEAj5trEZCySvSNGP+uthRJgVSKPHJvjqcYvQZ6s1TDPzI8nHP4DR62JDPmpvCXD6SLTzUyCcBnxh06Idh4tlz+HDkcBaAsw0dkj3qOXR4mNi9PCZzAsmX+DIizIrZtDdB8OBjiIAHBgfo+Zj+mpoXyvxpZjS82k1VTBycTk9EiV07pGScD8IlAEZHsW0w9s+eQ2Nj+uhq88wIxB7kEXgZN4Lxj7odYeB+MO6mChZ5M+gNXT9R7Apz+Xy2cHMjmxE5fGjpufTrKP42jj3a5YNzqIlE7VHibKs8hz4Yx0E322ZCIIUS782EG7FhzlTU7WkQFpGPuwcH6OmoxnHH512+goD/aORnzbvY6okZtDZODNvl0wDMAxBnDtkSz6Fj4+TRrbapF0h+Ph9Pfm3PsWekJhB+wMAtQ0W6N5Kd4cF5l28l4LwGbld7Du1gIlzB5Y8D+D4DO8fwd5Pn0AUx7LvSNNUCsUt8FghNz/I06chy+LjFm0YLuqFjeZfvanIG6heeQx81maPt8k8AKLFobcS4bnCALtcy7lKj1ArEdlmdhpwTgfuTRLhpsEhuBJu2D7VdHgRgbxaIMegNUL/pBOwS/xwEbeEx4+tDA9TwkNB0rkn4S6VA8mW+gBg3hAXIwDW0Dld7/0Rvh7VJalyhzE8z44AG8b7rOXSG6Txqd0Dm8AwB2odvxDh3cIC+Yzq3TvhLnUAKLl/OwLUhYT7AhGuGirQ85PjEh9ku/6bR7bnMuHFogC5sR0J9JT7WIoS6vtIwPuMNAqZ04qSGaR6pEIg6t59jHMQWDkKTeUubgSPM9Ip0hWmgpv3ZLquzVGMa+P2q59CVpuNt9GeX+RowvhTD/6DnmD8EjJGPlmnPCcReyGP9t3CwlauJQd24dAgQ8Zi5R8Qx5VbepjISbzbqLBPOGypSlO9YkT4g9dhqz7p/JMP3DVbT5YccatscN928oth1vUD6yrw/bVj8YCIxDgVqL/2tR8ShCqxfv/llw2J9nOpNo7v1QQRbFsr8OWbcETyy5YiW88Vi+m67eVcJZN+FPGrHtTjGr6IfFiaSEgM3PLzQBbPcc8jU/CvdHELb9c/lPt/CUCMDsnDU4FSz874axbFdvh/A8aGT3nzgGgJOgoUKv4uq+ll7VVFB7n0/K6hgBCpYjwpGoYK1qGBLVPAKKp1cgaXjAul3+WAf6AdjMlnoZ8aoGM1obUo41Su296+uydxbzsNiTGjnHLCNdeTL/BliLDRZl6YvdVfjyyBs+OnjPm+AfqrpK7RZRwSi7l2wGKcAtddRobONO5BwBwPzh4q0JK6rJOxbXcsZ7WPcD6fRHxPKYxjA0UnEihhjFROWqPW+PIf+N6JtqOGJCiRf5nPA+BRtEIZaSrNT25MgLGYLj5GPR7wiNfwi3KnkNsZtdcracyix3mlcdE0eHeFeMG4zLZREIOdLfCqAi4mM3X9hsgFqvdvH1O2r8PEwcvC6RTB5l68lYPOpG4R1XpG2NAlho6/J83lcxceHLR97sIU9mHEyAUe0I1ZbfDIWeAN0pinfbRVIfS2piwF81lTCSfgh4GdMGEYVQ7mReK66Eis68UXRdlmdxm10594rnkO7h2Fx/A08+i8jsT2NwLiKhXFgbE+EcVAv9TswjoHtQdiZgD0Y+EAYv908hoC1PmPK0AA9EjfPtgkk7/KXCbg6boJdZK9WHVwBxgomvESo/VyxRRUvteu7QIuJio/7hJnw3/uwb68+7FAfdPWT/vo7EawuYphoKjlgvwcdei5OUOMCscs8AVwThjqsysr2JgMrLMJLrAQE/B8x1hFhrU9YV/vdwjrysY6BkexjDFsYYxHGqN+hfhLGgDHWArZmYGtseG3TcKJiVqjGrZPxYo5wShyRGBVIocT/wIT/aufS/nGZiX3GCMT8TmJMIPkyH0OMewBskbEWSLndToBwplfUu7/HiEDUHWkMqGkPO3U7K8kvkwR+4jk0Safy2AI5cj5/cGS1NjVaLVommxDoTgKEv9d5NF1sgRRcvoWBL3QnFclKCGwgQBZO03lYUCyBFObyiWyhLZf4pbFCwDCBqzyHvhLVZyyB2C6r+wWSm0sVtToZLwT+SuBWz6HIa6JpC6R+1upH0gEh0BMEGHd5A6TWAIu0aQukUOJZTLgsUjQZLAQ6R8DzHCpEDa8tkGaLCURNQMYLgYQIJCeQ+lNe1XpNsgmBXiGQoEBKPBWEcq+QkTyFAIAEBVLmr4VeXkd6IwS6g0CiAimDMbU76pYshEAoAgkKpNl6saHylEFCoCMERCAdwS5Be4WACKRXOiV5doSACKQj2CVorxAQgfRKpyTPjhAQgXQEuwTtFQIikF7plOTZEQIikCbY/wJAPYRmlVpMgoFdCGjLomsdaXs3ByX8CYxXAawBYzcQdu1guiIQAKvBeJgt3O8znlCiWO7Q6k2bctQtvN2IUdiFCR8hwnFA7RVqIbYONrjbQz8LwlJUsNgfgVf/vB6vNnpEtT2Hd2ULu6n7iEhxJ0xOqLAEBVLiB0D4REKFtQyjVtFjwiwlDM+hpbo5FebykZzDFDDUSpDb6vrJmN2zYJRg1ZZrfUqndrvMO7F6fj3jDAJO0PER0iY5geRLfDMRzg+ZWPuGMRb4jFnD0+hJU0HqC98pkcww5TOFfv4AYDbGYrZ3urkHn9ouqyVq/7lNd6kmJxC7xJeC8M0ONv4pEK7VXesoTN75EhdAuJiAk8OMz8oYZtzCFmYPF+lX7ao5X+LpRPia4QUIkxOIWq2dCN9vF6BWftXD6teOxpWPnk1vJRHfdvnG+l+1JMJ1e4wzPIe+m0SSbVjCNjmBHFPind+l2tmJRDcmHNuJh98Uynw+M25OtNjuCrbKH4H88OdpZdJpGVwEPTmBKEj5Mj9KjMOSApbkA2Ma1XS0y+NzwOtJ1dtFcR71HDq8k/nkXT6TgP+JmUOyArFd/jqAyOsM6RTJhL6hIqklhkJtdpm3RRU2Ew61gPFsYTwYWzGwmgivE2Olev5H1DMvdpl3ByPxv6Khim7PoFc9hyJdu6gx8mGThX1ZsWfsoFKrcQdW+4wnqYrl3nRS16ZCbwWXz2Pg1tAGmw9MViAFl49j4AcxEg5nyrjEG6DZYQbXTtVauIwIx4d8GKi6eLjYB2YNO6R+D9wKZT6BGfcFDuz9AWvg4whvGj0bphR7w23Yat2pj4cZD+CR2iPTBmheyPHIl1j1dlbY8ZuMS1YgKrhd5nvAOEkz4TBmX/UcujJo4KSFPGbU25jZ8HFlQcYb3lfimOU5dFOY4TEbFSZE58eEfCJwvswnEeNCAFM0k17KhBuGinRvGPsYJ006IBCXPwkgVGFhit9kzBLPoWOD7I6ewwfkcrVnkthBYwPfJ9ztFSnUg39sl9WieccE+uzBAQzMGnLoi0Gp2y6ra0X/HTQu1PuE2V6RLgka2+fybhbwMFC7Gh9lu91z6JwoBmqs9rpYGwO1ay8S5oyV3Z7FI970HNouCGSKV5Z8Hu/iKG8GvdGKQZv6vtRzKPCPju2yupioTr+H3xjf8Aboy+ENNoyMLZB+l4/wUXv8wdiowVuMv8lz6IJW/tr8HShso1J3jYQIA4NFcgPYf4uBwL/2Wp8HwiVeMfg7Z9Q9OBNOHyrSnVFzii0QFbBQ4s8zYX7U4E3G/8EHDmr1pfn42/kD69bjMQB7G4rZyM21nkNfauW/vrtX01zGtTGPJF0/4DnUcj5UQnvOczyHbm+5B9swLWVBaDhV7Bb1zJmRPch7h1ou/yuA60In3GwgYZ5XpGIrP02fHx47+GYOTgp6ML1d5tQsgcTA+UMOfTvgg9n2714E/LYyEhOXn0OvNctFPd76nbF4joEPB7WdgduGHNKaW2dkD/KeSEp8FggtlR9UDDFOGxygu5qNq5/KfSjIj5H3Cfd6RWo5F6v+4NLvGYnXQSdqVnQVmNBqz6117K9bE2GmV6QrWv6hLPF/EuFfgkKQhYmDU0nd/hB5MyoQFb1/LvdVLSwi4O8iZwO8PH4s9r7zdFrfzNZ2WT0L8RQN31omPuHE4SLd38z4Mwt51Oq38Xyv30/CwMIhh9RhS8PtyBJvPZLwC42zR1rc1V6E38WBrU4W2CU+CoSWF5B1v3tsTNq4QJTjQokP9AlXa8zvb/nlfNK3eMzobWvTPUyeEAhqYOCDV2Kcmw+KneT7LY/7+1zut4AHk0wozAkD2+UXAezZKC8i/Ptgka6Ok3NbBLIxocjz+y1M86ZSqVlBfXO5z7IwFKfgyLaE17wi7dzKzi7zVHCPL+ZN2Mcr0i+b1Vko8b8x4arI/OIZLPYc+lRL9i6rWeWNrl1N9xyaGy+8gdO8YRJQ8/sBnE2EvlbjLQv5ZVNpuOnhVXuuewSXUEXBm05es4H1U93q4lVPbgy8vsNY7Hzn6VRtyr5Dy80GTVK1Nz859LjP+MrwABl5+llb9yCbwrZdVtMRPqturwT97WESA+v9d7H78hnNz1zYJf52fb5P0h/ElvdBTJ7DO1ZzeAXA6KQTMxRvuedQyz9etsvPAdjHULzQbnJV7PTgdPp906OK7/A+VgXLGbiPGXcND9A9oZ2HGJioQDbm0z+XP+RTbe7OJFg4HIz9APzcc+gAzd1piFL1hxBw0aBDN7TykC/x00Romb9+Bm22JJS8Ik0LYP9HAIEzDExnmsvhwAfPpWda5lbmCa0OD+Pk1BGBNEq4fx7vuWwqvRTQpLafg28UP8yXvdpTt3p4a3UIqcqyXVZnFkcmXaIFHLnMoR8nHXdjvK4RSBgAeZfvIOBzYcaaHMOE84aKNMekz17zZZf5N2DsknTePmGvdt7/HlRPTwnELvP19WV5guoy+76PU71ppK6/ZHazXVZTaj6WOADCdl6R3kw8bj1gTwmk4PKFjNrU9mQ3H/uHvXEo2cSSi2Y3P53aziTe8Bwa384AQb57SiB2mT8GhrE1sILg1N9/1nNo/5BjUzss7/IXCLglyQIZcIccGkgy5qaxekogKnnb5V8nNd2hDusqz6FE7r3v5AchKHa+zIcS12ZQJ7aRhVMGp5o9bRs1+V4USKL3YMSZ6Ba1Gd0+3i7zQ2AcmVCeT3gOTUwoVtMwPSeQGLdcRmYdZ5p05GA9YFCYxyezj8VJpErAjEGHbksiVqsYPSeQ+mFW9FsuNUjL3mNzaHmXSwQ4GjijmHTF3kMl3JMCqYmkzIvAaDmRLUpHNh0bd5p0nNjdbDvlVt6mMhJqJfd2PS7inRxwyIMOqaktHd96ViD1Pcmf2vKoAkYxynpNHe9iwgn0lXl/i9Fy+oduSjlgv24RR0/vQTY2wHZ5SYw1mTbvY4g72XSbnya7yS7vW0XtBipzW8CsaXOBwnvq6T3I+0TyDQCB6zgFYomwimOgrwwMqImEsLA+2TROxS+iiulB88HiBNC1TYVA6t9JzgDjcgAHacBYTD6uG5xGPXtPh0bNRkz65/Mu1SouJEAt0zQmotN1DNyYy+GGZedS4k8LCJNragSiij3kVt5y61G4DFx77t3RAQB+D8YgWVgStA5UGJBZH1Nf4dKpsSd8NIDHEwQMV6qYt3x666nsneaaKoG8H6Za4Z1RX93dxw5kYUtfre5exercSKwIuseg043p5fhqhXcC9mUfO6gV3lUtamV3svA6V/CMzvpUneKRWoF0CqjETRcBEUi6+inVGCYgAjEMVNyli4AIJF39lGoMExCBGAYq7tJFQASSrn5KNYYJiEAMAxV36SIgAklXP6UawwREIIaBirt0ERCBpKufUo1hAiIQw0DFXboIiEDS1U+pxjABEYhhoOIuXQREIOnqp1RjmIAIxDBQcZcuAiKQdPVTqjFMQARiGKi4SxcBEUi6+inVGCYgAjEMVNyli4AIJF39lGoMExCBGAYq7tJFQASSrn5KNYYJiEAMAxV36SIgAklXP6UawwREIIaBirt0ERCBpKufUo1hAiIQw0DFXboIiEDS1U+pxjABEYhhoOIuXQREIOnqp1RjmIAIxDBQcZcuAiKQdPVTqjFMQARiGKi4SxcBEUi6+inVGCYgAjEMVNyli4AIJF39lGoMExCBGAYq7tJFQASSrn5KNYYJiEAMAxV36SIgAklXP6UawwREIIaBirt0ERCBpKufUo1hAiIQw0DFXboIiEDS1U+pxjABEYhhoOIuXQREIOnqp1RjmIAIxDBQcZcuAiKQdPVTqjFMQARiGKi4SxcBEUi6+inVGCYgAjEMVNyli4AIJF39lGoMExCBGAYq7tJFQASSrn5KNYYJ/D/yYYsjzqIhfQAAAABJRU5ErkJggg==",j="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAWSElEQVR4Xu2dC5QU1ZnH/1/3oJ4QTcz63KjB6PqIWV01kU0c6GoQFBOjh0Q30Qh09RAevp/JGt1oohsF8YGKInQVDx/xHZP4CDJ0NaCru0dN4iOii2E35hxdFOODqMDUt6cG0GGYma66dW91VffX53Biznzf/373/93fdPf07XsJ8kiFA6MX8C4fbcC3ARxAwK745N9uBAxm4A0E/xhvIIfXu///Bjxam0jLUjGBJi2CmnRemZiW5fIQIoxmHycAGKNY9J8ZuDOXw6LqBOpU1JC0fhwQQBqwNKy5fAxymArgOJ3DE+Fl38dtbW2Y1Tme3tKp3apaAkiCnS+4PIyAqWB81+iwhJUEzGJglleiD42O1eTiAkgCDR7u8j8S42wC7ASG6znEc2DM8sp0S8LjNs1wAojhVhYdPp4ZN4Kwh+Gh+pVn4NaaTZMaNX6WxxVADHbPqnAZhLkGh4givdizaVSUBIkFBBBDq8Cq8HkgXG1IXkmWgVdrNu2jlNyiSQKIgcYXXD6DGDMNSGuR9GySvod0UowKaVTYsKLDQxl4Mmx8g+L+y7PpiAaNnalhBRCN7Rq+gPfObcCrGiWNSTFhVq1EpxkboEmEBRBNjRy9gAev68KDYIzUJJmEzFWeTT9KYqCsjiGAaOqc5fJcMMqa5JKTYUyRz0n6t1sA0bAUCxUeQ4SHNUg1QuI5EI6QT9z7tl4A0bAkLYcfA3CUBqmGSBDhvGqJrmnI4CkfVACJ2SCrwpNBuDmmTGPTCSvzOQyVDY5bt0EAibE0hzm8c57xBAj7xpBJRSoz/q1Wpp+lopgUFSGAxGhGweEpwa7ZGBJpSl3h2XRAmgpKQy0CSIwuWBW+F9T9LcCmeOSAI5fY9ERTTEbTJASQGEZaLq8BY8cYEulKJVzqleiydBXV2GoEEEX/h1d4dI7wW8X0tKYt82wantbiGlGXAKLouuXwdADnK6anN+0DbO+dRu+nt8BkKxNAFP22HA42JA5VTE9tms84emmZFqW2wIQLE0AUDbcqvBqEnRTTU5vGPsbVOmhhagtMuDABRMHwMbfxDh+swzsKqVlIucCzKVVf9GqkaQKIgvvD5/OhuS48o5CahZSrPZsuyEKhSdQogCi4bDn8HQD3KKSmPoUIC6slGpf6QhMqUABRMNpy+YdgXKmQmvoUIiyqlujo1BeaUIECiILRBZcnEuNWhdQspDzg2TQ2C4UmUaMAouBycS6P5BwWK6SmP4Vxi1emKekvNJkKBRAFn4NDp8H4k0Jq+lNku8kWPRJAFJes5fAGAHnF9PSmEaZ4JTmqdHODBBDFpVp0eQUz9lNMT20aM8bWyvRAagtMuDABRNFwy+V7wc2z1X2zDT7h4KUlek7RlqZLE0AUW2pVeAIIrmJ6WtNWeTbtndbiGlGXAKLo+oi5/AU/h1WK6WlNu9Gz6Yy0FteIugSQGK5bFQ6+j/61GBKpSvUJ315aovtTVVSDixFAYjSgUOEriHBRDInUpDKwjrbD572T6c3UFJWCQgSQGE0oOnw0A4/GkEhT6q89m76VpoLSUIsAErMLBYfnE5D9zX0+xngd1Cywx+zqJ+kCSEwrixU+xCc8QcCnYko1Lp3wC69E32tcAekdWQDR0Juiyz9lxiUapBoiwYThtRIta8jgKR9UANHQIMvlzxLjcQa+pEEuUQkGnJpN2TuVPiGXBBBNRhfm8qmUwwJNcsnIMF7zczhWPjnv324BRONSzNpRQAScULXpQY0WNJ2UAKK5pUWXf8uM0Zpl9csxOrwyVfQLN5eiAGKgn5bDrwPY1YC0HknG+V6ZZugRa24VAcRQf60Kv5LGaxGYcGatRDcYmnbTyQogBltarPBMJqRm8x8B/1y16SmDU246aQHEcEstl88C4zrDwwwsT+j085i4dBw159eEDZorgBg0d7N0weHv5YCLG/I5CaGyTR5nLRpHaxOYatMNIYAk1NLuDxOBc33GeQltS1nMjGtqZXokoSk25TACSMJt3bR361xjGxwZ/w1ghtx9rqexAogeHyOrWC4fA8ZIBkYQcFhkgZ4JhLfhYwkH7zWAe5fZtDqWniR/7IAAkoLFMGIe7+MzRoExmggHMWOfAY8UYrwJwkoAy3zGY3Kfh7kmCiDmvI2lHBxOR13Yx8/jiwR8DoyVfh4rB+ex8pHv07uxxCU5tAMCSGirJLAVHRBAWrHrMufQDgggoa2SwFZ0QABpxa7LnEM7IICEtkoCW9EBAaQVuy5zDu2AABLaKglsRQcEkFbsusw5tAMCSGirJLAVHRBAWrHrMufQDgggoa2KF1icx4d3rceabT6DNYtPonfiqYXPHjmf/25dF3bNd2EXbyJ54TMlMnBAAElgHVgOfwfAPb2GehtAcJL6GgDvgrEWhPcBrGXC2lzwv0BXvfKIsS0zdmDC9gRsD8YOIOwEwi5g7NJz0yMBLn+AM73TKBhHHiEcEEBCmBQ3xKrwMyAcGldHRz4Bvk+YUCvRQh16za4hgBju8Ii5PNzPoWZ4mOjyjM5cGy5aMp7+M3py62QIIIZ7bbn8GzC+YXgYZXkCfr5+W0xffgoFL/nk0csBAcTgkii4/FVipP43NDNeBuHKmk3Ndilp7O4KILEt7F/AcngOgA6DQ+iWfpB8TK920OO6hbOqJ4AY6lxxHh/EPp43JG9UloFptB7TvUlyX6EAYmipFRy+hoBzDMknIbuCCNOqJXKSGCytYwggBjrT7vAX24CXAAwyIJ+0ZEu/7BJADCw3y+HLAfzYgHTDJIOXXW15TOscT281rIgGDCyAaDZ9uMN75ghPgbG7ZunGyzH+6ANXLi1Ttm7SiuGcABLDvL5SCw5fT8CZmmVTJcfA3ezjyqUd9GyqCjNQjACi0VRrDlvIo6pRMrVSBPyNCdPeW4fpT0+iv6W20JiFCSAxDeyZblX4N6D0fmqucao9pZ4F40yvTMsN6TdUVgDRZH/RZZsZrXrnX7B9f5Jn012a7EyNjACioRXtt/OObR8h+PT5QA1ymZUgYFLVplszO4E+ChdANHSz4PIVxLhIg1TmJZhxYa1M0zM/kU0TEEBidtKq8FeI8DgD28SUapp0As6q2jSzGSYkgMTsouXwLwD8S0yZpktnxtdrZfqPrE9MAInRwUKFJxKhqV5zx7Bj69RB+AfvVApuvMrsQwBRbF1wlRoDi7u//y2P/hxYDsJxXon+mlWLBBDFzhUcfoiAYxXTWyeNcZ9XpuDQikw+BBCFtlku/wSMSxVSWzIll8PRSybQoixOXgCJ2DWBI6JhG8Pv8mz6rlJmg5MEkAgNsCo8AQT53nYEzz4OZQzL4nYUASRks1tpI2JISyKFMeDUbCpHSkpBsAASogkCRwiTQoTk89gpa1+4EkDqNFbgCLHyQ4ZwHl+vjc/Wh4cCyADNFThCrvywYYySV6Z5YcPTECeA9NOFostjmXFfGprULDUEpzhWbcrUpk4BpI/VV3T4QgauapaFmZp5EO7zStn60FAA6bF62m/l/Qa14XIGTkzNomquQjzPpmKWptTSgBw+mz81OI/9c8D+IAwBcBoIe2SpgRmrVQBpRMMKc/lUyuFgEL4GxpGNqEHGDOWAABLKJo1BRYfvlpdECoYyKgx8RDnsCcZxCgoqKQKIimuqOQKHknMP5oGLOm16cXN2sIWGCDMY+JySYvgkASS8V/EiBQ4l/1bku1DonEhv9JVtubwYjJFKyuGSBJBwPsWLsircDsKyeCqtl+0zjl5aHnjbueXwDQBON+SOAGLI2C1kiw7PYmBKEmM10RirPJv2rjefMTN52w8/jScYOKxerMLPBRAF0yKlHDmf9xrUhT8A+EykRAkOvTgNvnwNXUNa2pW5z0H6uXM8LX6mto4o280tl68F42wDkxFADJi6haTl8PkAmuZgMtN+faxPuNQr0WVhxjP4rUkBJEwD4sQUXZ7JjDPiaLRkrgCi1PYsvsT6JYDjlWbbykkCiFL3sweIy4+AcYzSbM0mBQekvQbAMjuMoroAomRcFgG5E4y0nZAxuy2Pf9/QhfkCyIDrUN6DKGEaIcly+WYwJkdIMRn6EuVwcXUCdX+xynI4uF1KnkH6d1wAMbkauxehyz8H40emxwmh/14+j/bO8RR8JtP9EEDquiaA1LUoZkDB5VHEaPgpfZ5NW708FUDqNlcAqWuRhgDL4WcAHKpBSkmiv6P9mwaQhbwv1uMVJXMGSorwhwLtYysKZu5NejDPostTmXGT4pxjpTFwbs2ma/sSsRx+EsDQWAOYSo64OC2HHwYwRmc5TBheK1GmNplmEpBhDu+cYywnwn46G1hPiwkn1Up0T39xlsP/B2DnejoN+XlEQIZX+FtEmEPALjrqZcasWplO06GVpEYmAQkMKrg8jBgPAdg+CcPqwTFyDu/alcfrSdSiNEZEQIIxhs/hAymPGwkYoTTmxqTV7OO8WgctjKHRsNTMAtLdQJfH5nxcBcK+phwk4E4A11dtemqgMYrz+Ej2kd67whUACeZrubwdfEwmwnEcDZTgPcz9+Tzu6PmXPlN9MqWbaUA2NXA38nERE9oB7A5gt4hmfQTg3eAfAe/wxv9eAcZLnMMLtRI9Fkav6PI0ZlwQJrYhMYqA9KzVmsN7II8TAHwBwGd7/PsQQHCL1MZ/Xej0JpLXkHlqHjTzgGj2Q0lu9AIevG4Dnge6jw5K50MDIOmcmNmqBBAN/mbi3hABRKnTAoiSbVsmZeK+QgFEqdMCiJJtnyRZc/nLyOG5mDLm0wUQJY8FECXbegDi8I8BXB5Txny6AKLksQCiZNsnSYUKP0WEI2LKmE8XQJQ8FkCUbNuYVJjDwyiPpTEkkksVQJS8FkCUbNsEiMNXEXBhDInkUgUQJa8FECXbNiZZFX4RhANjSCSXKoAoeS2AKNnWvaP4WN64FywbDwFEqU8CiJJtQNFhh4GSYnryaQKIkucCiIJtwZ4kzuMFAnZQSG9MigCi5LsAomCb5fJZYFynkNq4FAFEyXsBRME2y+HgW3HB7uHsPAQQpV4JIBFtK1S4SIQlEdMaHy6AKPVAAIloW8Hlm4gxNWJa48MFEKUeCCARbBu2kHfPrcfzZP4uvwhVhQwVQEIatWWYABLBtoLD5xBwTYSU9IQKIEq9EEAi2Gb6WB8GZhJwZoSSwocKIOG96hEpgIS0zXL4mwB+HTI8ehjhIa9E37Qc5ujJITIEkBAmbR0igIS0zXL5NjBOCRkeNexpz6avBEkCSFTrzMYLICH8tVw+ANz9rcG2EOFRQ57epg3HLhpHwaFzAkhU9wzHCyAhDDZ4Z98b+TxG9zohXl5ihehJUiECSB2nT7yb86vf7z7S5wDdTWEf43qfOCgvsXS7HE9PAKnjn1XhU0C4LZ7NfWQzbvHKNKX3TwQQ7U7HEhRA6gHi8K8AHBfL5a2T388DQzttelEA0eysZjkBZABDR8zlI/wcBjyTV6kfhCu9Ev1rX7nyDKLkqLEkAWQAawsuzyDGuZrdX53L49Al4+kvAohmZw3ICSD9mNp+O++Y/6h739Xf6/S93j0Z8gyi0+34WgJIPx5aLk8G4+b4FvdS6EJxoJPPBRDtjscSFED6A8Th4Pj+Qix3t06ue4mlAKLZ8ZhyAkgfBloOHwUg1L0gUfwf6H7DzToCSBRHzccKIH0DMgdAh277+7sdt+c4lsPBZTTb6h4bsllRyVIBpJdtI+byF/yNp7XrvfuQ8ZpXpj3rdcly+VUw9q4XF/nnA/xpObJWCyUIIL2aXXT4BwzM1r0GCLinatNJ9XStCi8H4ch6cVF/zsAdNZtM7UaOWk5m4gWQXq2yHA5uY/2+9g4yOrwyVerpFhy+i4C6INXT6ePnyz2bhinktXSKALI1IKs2XVKpdWHk89i/czy9XE/UcvlaMM6uFxf15wz8b82m4PJNeURwQADpYZbl8j+B8WwE/8KGvufZFOoURsvh8wFMDyscJY58tFc76PEoOa0eK4D0BKTCZ4NwrYFFUffzj81jFl0+mRm3G6ghkHzQsym4xlkeIR0QQLZ8BnkA3H0PuO7HDM+m4Jmh7sOawxbyqNYNVAwgQrlaIkcxveXSBJAeLS84HBxI/SXdq4CBk2s23RlW13L4NQCfDxsfMW4F1qPdm0RvRsxryXABZMuXWO+B8GndK8H3cdjSDgr93qZg+OYq+ZNv+A4LIJu8Cnbvtn2ENeGtCx+Zz2OnzvH0VtiMosNDGXgybLxi3GzPpsmKuS2TJoBsanWxwocw4XcGOr/Wsynys1LR5d8z42AD9XwsyYQLayUy8hczk3UnqS2AbHLb2MFwjD96ZYr8vsbgSSq919coz6bFSS66LI0lgGzqVsHhKQTMMtC80H/i7Tl2Qi+zuockYFLVplsNzD3zkgLI5mcQl38CxqUGOqoESFCH6bOAe831as+mCwzMP9OSAkiaAZnHp8A3cORQP0uWCIvg48JqmX6f6VWtsXgBJMWAdD+LVPgBkJEPL/tcRgysgY9Lah1k4uWmxqWbjJQAknJACi4PI8bSZJZDj1EIt/sbcMnSifSnxMdO0YACSMoBCcorOHy9sXtDBl6Mr6ALPxjokIkUrWUjpQggGQDkqPm814YuPGFw+0n/i4uxAT5GtSokAkgGAAlKLLp8LjNmGPk1GUKUCcNrJQquv26phwCSEUC6IXH4IQaObdQKzQMH9XWecKPqSWJcASRDgIyYzfv4g/AQgP2TWBx9jdFqkAggGQKk+w27y6PIx8MgI7ddheKulSARQDIGSFCuVeHJIAPHoobCo3tvytt5RnsrvNwSQDIIyKY37dOY0citISvywNhmh0QAySggm96038fA2LC/+LXHEV7wGWOW2vRn7dopERRANjWi6PJUZtxkoC/KmxXD1GI5HNxSdWCYWEMxN3o2nWFIu+GyAsgnzyBDwNC/rYJQ8Uqk/ZzfnivH2IHX4Zan0V8A4UowFyWA9PDWcjg4TcTSbPepnk36LwHtVaTl8EsN+vOvAKJ5waRWzsi3+NbjQG8SBYvX+MMQ4APXTbjOK9E5xifXoAHkGWTr38SnA7hBQz/WgnG6V6Z5GrRCSyQNSV93vYcuNgOBAkgfTbIcDg6v/hmAISo9DL54lMvhgs7x9AeV/Lg5CUKyFoQveyUKzjNuyocA0k9bRy/gwevW40QmnEjh9j99CMJ9BNxfLdH9jV4tiUBCmOeVqNTouZocXwAJ4W7B5a8Sd+9/GkKMvZiwV/BpMoBV8PE/YKzyOujREFKJhpiGhAjfqJbo4UQnlfBgAkjChic9nClIGHBqNpWTnk/S4wkgSTvegPEMQPImMdqrZVrRgOkkOqQAkqjdjRvMcjg4NfIQHRUQ8MOqTdN0aKVdQwBJe4c01mdVeDUIO8WSJDzulag9lkaGkgWQDDVLR6lxt6VQDsdXJ9CvdNSSBQ0BJAtd0lhj+yzesW07tVPsGZhas+lmjeWkXkoASX2L9BdYrPD+TIi6/eViz6Yr9FeTbkUBJN39MVZdhAPpfgcfl3kd9EtjxaRYWABJcXNMl2a5vBsxKv2clLKWGddTDtO9Ev3VdC1p1RdA0tqZhOo6fDYP2r4N45hwRI4wxGe8ngP+wj7u8Dro+YTKSO0wAkhqWyOFpcGB/wc4UP0jVHdpzwAAAABJRU5ErkJggg==",Y=20;class q{constructor(t,e){l(this,"_map",{}),l(this,"_icon",{}),this._map=t,this._icon=e||{},this._icon.car||(this._icon.car=G),this._icon.person||(this._icon.person=j)}createTrack(t){const e=t.data.sort((t,e)=>t.timestamp-e.timestamp).map(t=>[t.lon,t.lat]),n=new AMap.LngLat(e[0][0],e[0][1]),i=new AMap.Marker({position:n,offset:new AMap.Pixel(-Y/2,-Y),icon:this.createMarkerIcon(t.trackType)}),r=new AMap.Polyline({strokeColor:t.strokeColor,strokeWeight:t.strokeWidth,strokeStyle:t.strokeStyle,strokeDasharray:t.strokeDasharray,path:JSON.parse(JSON.stringify(e)),extData:t.objectId});return{trackPloyline:r,lineArr:e,marker:i,startPosition:n}}createMarkerIcon(t){return t=t||"person",new AMap.Icon({size:new AMap.Size(Y,Y),image:this._icon[t],imageSize:new AMap.Size(Y,Y)})}}class K{constructor(t,e){l(this,"_map",void 0),l(this,"_popupConfig",void 0),this._map=t,this._popupConfig=e}showPopup(t){if(!this._popupConfig.customPopup)return this.removePopup(t.popup),void delete t.popup;const e=this._popupConfig.customPopup(t);if(!e)return this.removePopup(t.popup),void delete t.popup;const n=t.anchor||"right";let{popup:i,content:r}=this.createBasicPopup(n);r.appendChild(e);const a=document.createElement("div");a.style.position="absolute",document.body.appendChild(a),a.appendChild(i);const o=i.offsetHeight,s=i.offsetWidth;a.removeChild(i),document.body.removeChild(a);const l=this.getPopupOffset(n,o,s),c=new AMap.Marker({position:new AMap.LngLat(t.lon,t.lat),offset:l,content:i});return console.log(c),this._map.add(c),c}removePopup(t){t&&this._map.remove(t)}createBasicPopup(t){const e=document.createElement("div");e.classList.add("map-popup-window"),e.classList.add(t);const n=document.createElement("div");return n.classList.add("map-popup-content"),e.appendChild(n),{popup:e,content:n}}getPopupOffset(t,e,n){let i,r;switch(t){case"left":i=-n-F/2-12,r=-e/2-F/2;break;case"right":i=F/2+12,r=-e/2-F/2;break;case"top":r=-e-16-F,i=-n/2;break;case"bottom":r=16,i=-n/2;break}return console.log(e,n),new AMap.Pixel(i,r)}}class X{constructor(t,e,n="全屏",i="退出全屏",r=["20px","20px"]){l(this,"container",void 0),l(this,"parentElement",void 0),l(this,"fullscreenText",void 0),l(this,"exitFullscreenText",void 0),l(this,"fullScreenAside",void 0),l(this,"isFullScreen",void 0),l(this,"fullscreenButton",void 0),l(this,"buttonIcon",void 0),l(this,"tooltip",void 0),this.container=t,this.parentElement=e,this.fullscreenText=n,this.exitFullscreenText=i,this.fullScreenAside=r,this.isFullScreen=!1,this.init()}init(){this.fullscreenButton=document.createElement("button"),this.fullscreenButton.classList.add("map-tools-button"),this.fullscreenButton.classList.add("fullscreen-button"),this.buttonIcon=document.createElement("i"),this.buttonIcon.classList.add("qz-map-icon"),this.buttonIcon.classList.add("fullscreen"),this.buttonIcon.classList.add("button-icon"),this.fullscreenButton.appendChild(this.buttonIcon),this.tooltip=document.createElement("span"),this.tooltip.classList.add("el-tooltip__popper"),this.tooltip.classList.add("is-dark"),this.tooltip.classList.add("button-tooltip"),this.tooltip.innerText=this.fullscreenText,this.fullscreenButton.appendChild(this.tooltip),this.parentElement.appendChild(this.fullscreenButton),this.container.appendChild(this.parentElement),this.fullscreenButton.addEventListener("click",t=>{this.changeFullScreen(t)})}changeFullScreen(t){t.preventDefault(),t.stopPropagation(),this.isFullScreen?(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen(),this.isFullScreen=!1):(this.container.requestFullscreen?this.container.requestFullscreen():this.container.mozRequestFullScreen?this.container.mozRequestFullScreen():this.container.webkitRequestFullScreen&&this.container.webkitRequestFullScreen(),this.isFullScreen=!0),this.setFullscreenButtonText()}setFullscreenButtonText(){this.isFullScreen?(this.fullscreenButton.classList.remove("fullscreen-button"),this.fullscreenButton.classList.add("exit-fullscreen-button"),this.tooltip.innerText=this.exitFullscreenText,this.buttonIcon.classList.remove("fullscreen"),this.buttonIcon.classList.add("exit-fullscreen")):(this.fullscreenButton.classList.add("fullscreen-button"),this.fullscreenButton.classList.remove("exit-fullscreen-button"),this.tooltip.innerText=this.fullscreenText,this.buttonIcon.classList.add("fullscreen"),this.buttonIcon.classList.remove("exit-fullscreen"))}fullscreenListener(t){this.setFullscreenButtonText()}}class Z{constructor(t,e,n,i){l(this,"map",null),l(this,"isLoaded",!1),l(this,"isPluginLoaded",!1),l(this,"container",void 0),l(this,"currentMarker",void 0),l(this,"markerStore",{}),l(this,"trackPloylineStore",{}),l(this,"locationStore",{}),l(this,"mapMarker",void 0),l(this,"mapLocation",void 0),l(this,"mapPopup",void 0),l(this,"mapInfoWindow",void 0),l(this,"mapAlarm",void 0),l(this,"mapTrack",void 0),l(this,"fullscreenListener",void 0),l(this,"normalConfig",void 0);const r=i||{};this.currentMarker=0,this.loadScriptApi(t,e,n,r)}loadScriptApi(t,e,n,i){const r="__callback_"+(new Date).getTime(),a=`https://webapi.amap.com/maps?v=1.4.15&key=${t}&callback=${r}`,o=document.createElement("script");o.charset="utf-8",o.src=a,document.head.appendChild(o),window[r]=()=>{window[r]=void 0,this.onLoad(e,n,i)}}onLoad(t,e,n){this.isLoaded=!0,this.normalConfig=n,this.normalConfig.AMapMarkerList||(this.normalConfig.AMapMarkerList=[]),"string"===typeof t&&(t=document.querySelector("#"+t)),this.container=t;let i=document.createElement("div");i.classList.add("map-container"),t.appendChild(i),this.map=new AMap.Map(i,e),AMap.plugin(["AMap.Geocoder"],()=>{this.isPluginLoaded=!0,n.pluginLoaded&&n.pluginLoaded()}),n.mapClick&&this.map.on("click",t=>{let e=new AMap.LngLat(t.lnglat.getLng(),t.lnglat.getLat());this.map.plugin(["AMap.Geocoder"],(function(){let i=new AMap.Geocoder({extensions:"all"});AMap.event.addListener(i,"complete",e=>{let i={lnglatXY:[t.lnglat.getLng(),t.lnglat.getLat()]};if("NO_DATA"!==e.info){const{addressComponent:t,formattedAddress:n}=e.regeocode;i.addressComponent=t,i.formattedAddress=n}n.mapClick(i)}),i.getAddress(e)}))}),this.mapMarker=new B(n.markerIcon),this.mapLocation=new V(n.locationIcon),this.mapPopup=new K(this.map,{customPopup:n.customLocationPopup}),this.mapInfoWindow=new H(this.map,{customMarkerInfoWindow:n.customMarkerInfoWindow,infoWindowConfig:n.infoWindowConfig||{}}),this.mapAlarm=new W(this.map,{showAlarmOnMap:void 0===n.showAlarmOnMap||n.showAlarmOnMap,bounceIconOnAlarm:void 0===n.bounceIconOnAlarm||n.bounceIconOnAlarm,customAlarmInfoWindow:n.customAlarmInfoWindow},this.mapInfoWindow),this.mapTrack=new q(this.map,n.trackIcon),n.limitBounds&&this.setLimitBounds(n.limitBounds.sw,n.limitBounds.ne);const r=document.createElement("div");r.classList.add("map-tools"),r.style.top=n.fullScreenAside&&n.fullScreenAside[0]||"20px",r.style.right=n.fullScreenAside&&n.fullScreenAside[1]||"20px",t.appendChild(r),!1!==n.showFullscreenButton&&(this.fullscreenListener=new X(t,r,n.fullscreenText,n.exitFullscreenText,n.switchButtonAside),document.addEventListener("fullscreenchange",()=>{null!==document.fullscreenElement?this.fullscreenListener.isFullScreen=!0:this.fullscreenListener.isFullScreen=!1,this.fullscreenListener.setFullscreenButtonText()}));const a=document.createElement("button");a.classList.add("map-tools-button"),a.classList.add("next-alarm-button");const o=document.createElement("i");o.classList.add("qz-map-icon"),o.classList.add("next-alarm"),o.classList.add("button-icon"),a.appendChild(o);const s=document.createElement("i");s.classList.add("el-tooltip__popper"),s.classList.add("is-dark"),s.classList.add("button-tooltip"),s.innerText="查看下一个告警设备",a.appendChild(s),r.appendChild(a);const l=this.map;a.addEventListener("click",()=>{const{_mapAlarmIds:t}=this.mapAlarm,e=Object.keys(t);let n=e[this.currentMarker];try{l&&(t[n]||(this.currentMarker=0,n=Object.keys(t)[this.currentMarker]),this.setFitView(t[n],null,null,this.map.getZoom())),this.currentMarker+1<Object.keys(t).length?this.currentMarker++:this.currentMarker+1===Object.keys(t).length&&(this.currentMarker=0)}catch(i){}}),n.mapLoaded&&n.mapLoaded()}setFitView(t,e,n,i){t?(this.map,this.map.setFitView(t||null,e||null,n||null,i||null)):this.map&&this.map.setFitView()}destroy(){this.map&&this.map.destroy(),this.container.innerHTML=""}addPoints(t=[]){if(!this.isLoaded)return void console.error("cannot add points before map loaded!");const e=[];for(let n=0;n<t.length;n++){const i=Object.assign({},t[n]);if(!1!==i.show){const{marker:t,onlineIcon:n,offlineIcon:r,disabledIcon:a}=this.mapMarker.createMarker(i),o=t=>{this.cameraClick(t,i)};t.on("click",o),e.push(t),this.markerStore[i.objectId]={...i,marker:t,onlineIcon:n,offlineIcon:r,disabledIcon:a,markerClickEvent:o}}}this.map.add(e)}updatePoints(t=[]){if(!this.isLoaded)return void console.error("cannot update points before map loaded!");const e=[],n=[],i=t.map(t=>t.objectId),r=Object.keys(this.markerStore);for(let a=0;a<r.length;a++)if(-1===i.indexOf(r[a])){const t=this.markerStore[r[a]];n.push(t.marker),t.marker.off("click",t.markerClickEvent),delete this.markerStore[r[a]]}for(let a=0;a<t.length;a++){const i=Object.assign({},t[a]);if(this.markerStore[i.objectId]){const t=this.markerStore[i.objectId];n.push(t.marker),t.marker.off("click",t.markerClickEvent),delete this.markerStore[i.objectId]}if(!1!==i.show){const{marker:t,onlineIcon:n,offlineIcon:r,disabledIcon:a}=this.mapMarker.createMarker(i),o=t=>{this.cameraClick(t,i),this.normalConfig.markerClick({e:t,point:i})};t.on("click",o),e.push(t),this.markerStore[i.objectId]={...i,marker:t,onlineIcon:n,offlineIcon:r,disabledIcon:a,markerClickEvent:o}}}this.map.add(e),this.map.remove(n)}removePoints(t=[]){const e=[];for(let n=0;n<t.length;n++){const i=t[n];if(this.markerStore[i]){const t=this.markerStore[i];e.push(t.marker),t.marker.off("click",t.markerClickEvent),delete this.markerStore[i]}}this.map.remove(e)}cameraClick(t,e){this.mapInfoWindow.openInfoWindow(e,this.normalConfig,this.normalConfig.singleInforWindow)}addTracks(t=[]){if(this.isLoaded)for(let e=0;e<t.length;e++){const n=JSON.parse(JSON.stringify(t[e])),{trackPloyline:i,marker:r,lineArr:a,startPosition:o}=this.mapTrack.createTrack(n),s=t=>{this.trackClick(t,n)};i.on("click",s),i.setMap(this.map),this.trackPloylineStore[n.objectId]={...n,trackPloyline:i,marker:r,lineArr:a,startPosition:o,trackClickEvent:s}}else console.error("cannot add tracks before map loaded!")}updateTracks(t=[]){if(!this.isLoaded)return void console.error("cannot add tracks before map loaded!");const e=t.map(t=>t.objectId),n=Object.keys(this.trackPloylineStore);for(let i=0;i<n.length;i++)if(-1===e.indexOf(n[i])){const t=this.trackPloylineStore[n[i]];t.trackPloyline.off("click",t.trackClickEvent),t.trackPloyline.setMap(null),delete this.trackPloylineStore[n[i]]}for(let i=0;i<t.length;i++){const e=JSON.parse(JSON.stringify(t[i]));if(this.trackPloylineStore[e.objectId]){const t=this.trackPloylineStore[e.objectId];t.trackPloyline.off("click",t.trackClickEvent),t.trackPloyline.setMap(null),delete this.trackPloylineStore[e.objectId]}const{trackPloyline:n,marker:r,lineArr:a,startPosition:o}=this.mapTrack.createTrack(e),s=t=>{this.trackClick(t,e)};n.on("click",s),n.setMap(this.map),this.trackPloylineStore[e.objectId]={...e,trackPloyline:n,marker:r,lineArr:a,startPosition:o,trackClickEvent:s}}}removeTracks(t=[]){for(let e=0;e<t.length;e++){const n=t[e];if(this.trackPloylineStore[n]){const t=this.trackPloylineStore[n];t.trackPloyline.off("click",t.trackClickEvent),t.trackPloyline.setMap(null),delete this.trackPloylineStore[n]}}}playTrack(t,e=200,n=0){if(t&&this.trackPloylineStore[t]){const i=this.trackPloylineStore[t];if(this.map.add(i.marker),0===n){i.marker.moveAlong(JSON.parse(JSON.stringify(i.lineArr)),e);const t=()=>{i.marker.stopMove(),this.map.remove(i.marker),i.marker.setPosition(i.startPosition),i.marker.off("movealong",t)};i.marker.on("movealong",t)}else{const t=JSON.parse(JSON.stringify(i.data)).sort((t,e)=>t.timestamp-e.timestamp),n=t[0].timestamp,r=t[t.length-1].timestamp,a=r-n;for(let i=1;i<t.length;i++)t[i].speed=e*a/((t.length-1)*(t[i].timestamp-t[i-1].timestamp))}}}trackClick(t,e){console.log(t,e)}showAlarm(t=[]){if(0===t.length)this.setSwitchDeviceButtonText();else for(let e=0;e<t.length;e++)this.markerStore[t[e].objectId]&&this.normalConfig.AMapMarkerList.push(this.mapAlarm.showAlarmMsg(t[e],this.markerStore[t[e].objectId],(t,n)=>{this.normalConfig.AMapMarkerList[e]=null,this.setSwitchDeviceButtonText()}))}cancelAlarm(t=[]){for(let e=0;e<t.length;e++)this.mapAlarm.cancelAlarm(this.markerStore[t[e]])}setSwitchDeviceButtonText(){let t=document.querySelector(".next-alarm-button");t&&(0===Object.keys(this.mapAlarm._mapAlarmIds).length?t.style.display="none":t.style.display="block")}addLocations(t=[]){if(!this.isLoaded)return void console.error("cannot add points before map loaded!");const e=[];for(let n=0;n<t.length;n++){const i=JSON.parse(JSON.stringify(t[n]));if(!1!==i.show){const t=this.mapLocation.createLocation(i);let n;e.push(t),void 0!==i.msg&&null!==i.msg&&(n=this.showPopup(i)),this.locationStore[i.objectId]={...i,locationMarker:t,popup:n}}}this.map.add(e),this.setFitView()}updateLocations(t=[]){if(!this.isLoaded)return void console.error("cannot update points before map loaded!");const e=[],n=[],i=t.map(t=>t.objectId),r=Object.keys(this.locationStore);for(let a=0;a<r.length;a++)if(-1===i.indexOf(r[a])){const t=this.locationStore[r[a]];t.popup&&n.push(t.popup),n.push(t.locationMarker),delete this.locationStore[r[a]]}for(let a=0;a<t.length;a++){const i=Object.assign({},t[a]);if(this.locationStore[i.objectId]){const t=this.locationStore[i.objectId];n.push(t.locationMarker),delete this.locationStore[i.objectId]}if(!1!==i.show){const t=this.mapLocation.createLocation(i);let n;e.push(t),void 0!==i.msg&&null!==i.msg&&(n=this.mapPopup.showPopup(i)),this.locationStore[i.objectId]={...i,locationMarker:t,popup:n}}}this.map.add(e),this.map.remove(n),this.map.setFitView()}removeLocations(t=[]){const e=[];for(let n=0;n<t.length;n++){const i=t[n];if(this.locationStore[i]){const t=this.locationStore[i];e.push(t.locationMarker),t.popup&&e.push(t.popup),delete this.locationStore[i]}}this.map.remove(e)}bounceLocation(t,e=3e3){this.locationStore[t].locationMarker.setAnimation("AMAP_ANIMATION_BOUNCE"),setTimeout(()=>{this.cancelBounceLocation(t)},e)}cancelBounceLocation(t){this.locationStore[t].locationMarker.setAnimation("AMAP_ANIMATION_NONE")}setLimitBounds(t,e){this.map&&"number"===typeof t[0]&&"number"===typeof t[1]&&"number"===typeof e[0]&&"number"===typeof e[1]&&this.map.setLimitBounds(new AMap.Bounds(new AMap.LngLat(t[0],t[1]),new AMap.LngLat(e[0],e[1])))}clearLimitBounds(){this.map&&this.map.clearLimitBounds()}getLocationByAddress(t){return new Promise((e,n)=>{if(this.isPluginLoaded){const i=new AMap.Geocoder;i.getLocation(t,(t,i)=>{"complete"===t&&i.geocodes.length?e(i.geocodes.map(t=>({lon:t.location.lng,lat:t.location.lat,address:t.formattedAddress,country:t.addressComponent.country,province:t.addressComponent.province,city:t.addressComponent.city,citycode:t.addressComponent.citycode,district:t.addressComponent.district,township:t.addressComponent.township,street:t.addressComponent.street,streetNumber:t.addressComponent.streetNumber,building:t.addressComponent.building,buildingType:t.addressComponent.buildingType}))):n(new Error("getLocationError"))})}else n(new Error("GeocoderUnload"))})}getAddressByLocation(t){return new Promise((e,n)=>{if(this.isPluginLoaded){const i=new AMap.Geocoder;i.getAddress(t,(t,i)=>{if("complete"===t&&i.regeocode){const t=i.regeocode;e({address:t.formattedAddress,country:t.addressComponent.country,province:t.addressComponent.province,city:t.addressComponent.city,citycode:t.addressComponent.citycode,adcode:t.addressComponent.adcode,district:t.addressComponent.district,township:t.addressComponent.township,street:t.addressComponent.street,streetNumber:t.addressComponent.streetNumber,building:t.addressComponent.building,buildingType:t.addressComponent.buildingType})}else n(new Error("getAddressError"))})}else n(new Error("GeocoderUnload"))})}clearInfoWindow(){this.map.clearInfoWindow()}}var Q={name:"FcMap",props:{mapKey:{required:!0,type:String},mapInitinalOptions:{required:!0,type:Object},markerIcon:{type:Object},locationIcon:{type:String},trackIcon:{type:Object},limitBounds:{type:Object},showAlarmOnMap:{type:Boolean,default:()=>!0},bounceIconOnAlarm:{type:Boolean,default:()=>!0},customMarkerInfoWindow:{type:Function|Object},customAlarmInfoWindow:{type:Function|Object},showFullscreenButton:{type:Boolean,default:()=>!0},fullscreenText:{type:String,default:"全屏"},exitFullscreenText:{type:String,default:"退出全屏"},customLocationPopup:{type:Function|Object},points:{type:Array},alarms:{type:Array},locations:{type:Array},tracks:{type:Array},autoFitView:{type:Boolean,default:()=>!0},fullScreenAside:{type:Array},switchButtonAside:{type:Array},singleInforWindow:{type:Boolean,default:!0},playerPluginUrl:{type:String},infoWindowConfig:{type:Object,default:()=>{}}},data(){return{fcMap:null,isMapLoaded:!1}},methods:{mapLoaded(){this.isMapLoaded=!0,this.$emit("mapLoaded",this.fcMap),this.fcMap.updatePoints(this.points),this.fcMap.updateLocations(this.locations),this.fcMap.showAlarm(this.alarms),this.fcMap.updateTracks(this.tracks),this.autoFitView&&this.setFitView()},pluginLoaded(){this.isMapPluginLoaded=!0,this.$emit("pluginLoaded")},mapClick(t){this.$emit("mapClick",t)},markerClick(t){this.$emit("markerClick",t)},setFitView(){this.fcMap&&this.fcMap.setFitView()},cancelAlarm(t){this.fcMap&&this.fcMap.cancelAlarm(t)},bounceLocation(t,e){this.fcMap&&this.fcMap.bounceLocation(t,e)},cancelBounceLocation(t){this.fcMap&&this.fcMap.cancelBounceLocation(t)},playTrack(t,e,n){this.fcMap&&this.fcMap.playTrack(t,e,n)},getLocationByAddress(t){return this.fcMap?this.fcMap.getLocationByAddress(t):Promise.reject(new Error("fcMapIsNull"))},getAddressByLocation(t){return this.fcMap?this.fcMap.getAddressByLocation(t):Promise.reject(new Error("fcMapIsNull"))},destroy(){this.fcMap&&this.fcMap.destroy()},clearInfoWindow(){this.fcMap&&this.fcMap.clearInfoWindow()}},computed:{customMarkerInfoWindowComputed(){if(this.customMarkerInfoWindow instanceof Object)try{const t=i["default"].extend(this.customMarkerInfoWindow);return function(e,n){return new t({el:document.createElement("div"),propsData:{point:e,clearInfoWindow:n}}).$el}}catch(t){return}return this.customMarkerInfoWindow},customAlarmInfoWindowComputed(){if(this.customAlarmInfoWindow instanceof Object)try{const t=i["default"].extend(this.customAlarmInfoWindow);return function(e,n){return new t({el:document.createElement("div"),propsData:{point:e,msg:n}}).$el}}catch(t){return}return this.customAlarmInfoWindow},customLocationPopupComputed(){if(this.customLocationPopup instanceof Object)try{const t=i["default"].extend(this.customLocationPopup);return function(e){return new t({el:document.createElement("div"),propsData:{location:e}}).$el}}catch(t){return}return this.customLocationPopup}},watch:{points:{immediate:!0,deep:!0,handler(t,e){this.isMapLoaded&&(this.fcMap.updatePoints(this.points),this.$emit("pointsUpdated",this.points))}},locations:{immediate:!0,deep:!0,handler(t,e){this.isMapLoaded&&(this.fcMap.updateLocations(this.locations),this.$emit("locationUpdated",this.locations))}},alarms:{immediate:!0,deep:!0,handler(t,e){this.isMapLoaded&&(this.fcMap.showAlarm(this.alarms),this.$emit("alarmShow",this.alarms))}},tracks:{immediate:!0,deep:!0,handler(t,e){this.isMapLoaded&&(this.fcMap.updateTracks(this.tracks),this.$emit("trackUpdated",this.tracks))}},limitBounds:{immediate:!0,deep:!0,handler(t,e){this.isMapLoaded&&(this.limitBounds?this.fcMap.setLimitBounds(this.limitBounds):this.fcMap.clearLimitBounds(this.limitBounds),this.$emit("limitBoundsChanged",this.limitBounds))}}},mounted(){this.fcMap=new Z(this.mapKey,this.$refs.mapContainer,this.mapInitinalOptions,{mapLoaded:this.mapLoaded,pluginLoaded:this.pluginLoaded,mapClick:this.mapClick,markerClick:this.markerClick,markerIcon:this.markerIcon,fullScreenAside:this.fullScreenAside,switchButtonAside:this.switchButtonAside,locationIcon:this.locationIcon,trackIcon:this.trackIcon,limitBounds:this.limitBounds,playerPluginUrl:this.playerPluginUrl,showAlarmOnMap:this.showAlarmOnMap,bounceIconOnAlarm:this.bounceIconOnAlarm,customMarkerInfoWindow:this.customMarkerInfoWindowComputed,customAlarmInfoWindow:this.customAlarmInfoWindowComputed,showFullscreenButton:this.showFullscreenButton,fullscreenText:this.fullscreenText,exitFullscreenText:this.exitFullscreenText,customLocationPopup:this.customLocationPopupComputed,singleInforWindow:this.singleInforWindow,infoWindowConfig:this.infoWindowConfig})},render(t){return t("div",{ref:"mapContainer",class:"fc-map"})}},J=i["default"].extend({name:"CanoeMap",props:{map:{type:String,default:""},service:{required:!0},data:{type:Array,default:()=>[]},mode:{type:String,default:"read"},showAll:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},mapImg:{type:String,default:""},mapId:{type:String},markerImg:{type:String,default:d},markerImgOnline:{type:String},markerImgOffline:{type:String},markerImgDisabled:{type:String},deviceService:{type:String,default:"/cwos-portal"},sysettingService:{type:String,default:"/ninca-common"},addDefaultSelected:{type:Boolean,default:!1},rate:{type:Number,default:.2},limit:{type:Array,default:()=>[.2,2]},deviationX:{type:Number,default:0},deviationY:{type:Number,default:0},retainWdith:{type:Number,default:50},retainHeight:{type:Number,default:50},defaultPlay:{type:Boolean,default:!0},showPlayer:{type:Boolean,default:!0},deviceFilterCodes:{type:Array,default:()=>[]},fullScreenAside:{type:Array},showDeviceStatus:{type:Boolean},deviceFilterStatus:{type:Array},playerSlot:{type:Boolean},gmapKey:{type:String},mapInitinalOptions:{type:Object,default:()=>({zoom:4})},markerIcon:{type:Object},locationIcon:{type:String},trackIcon:{type:Object},limitBounds:{type:Object},showAlarmOnMap:{type:Boolean,default:!0},bounceIconOnAlarm:{type:Boolean,default:!0},showFullscreenButton:{type:Boolean,default:!0},fullscreenText:{type:String,default:"全屏"},exitFullscreenText:{type:String,default:"退出全屏"},customMarkerInfoWindow:{type:[Function,Object]},customAlarmInfoWindow:{type:[Function,Object]},customLocationPopup:{type:[Function,Object]},points:{type:Array},alarms:{type:Array},markerAlarms:{type:Array,default:()=>[]},position:{type:String},markerTracks:{type:Array},locations:{type:Array},tracks:{type:Array},autoFitView:{type:Boolean,default:!0},singleInforWindow:{type:Boolean,default:!0},playerPluginUrl:{type:String},infoWindowConfig:{type:Object,default:()=>{}}},components:{CanoePicMap:L,CanoeGisMap:Q},data(){return{markerData:[],renderMapType:"",mapKey:"",gisPoints:[],filterGisPoint:[]}},watch:{map:{handler:function(t){""!==t?"gis"==t?this.getMapKeys().then(()=>{this.showAll?this.getBindDevice().then(()=>{this.renderMapType="gis"}):this.renderMapType="gis"}):"pic"===t?this.renderMapType=t:(console.warn("传入地图类似错误"),this.renderMapType="gis"):this.getMapType()},immediate:!0,deep:!0},data:{handler:function(t){0!==t.length&&(this.markerData=t)},immediate:!0,deep:!0},points:{handler:function(t){t&&0!==t.length&&(this.gisPoints=this.gisPoints.concat(t.filter(t=>t.latitude&&t.longitude||t.lat&&t.lon)))},deep:!0,immediate:!0},deviceFilterCodes:{handler:function(t){let e=[];e=t&&0!==t.length?this.gisPoints.filter(e=>t.indexOf(e.objectId)>-1):this.gisPoints,this.filterGisPoint=e},deep:!0,immediate:!0},gisPoints:{handler:function(){let t=[];t=this.deviceFilterCodes&&0!==this.deviceFilterCodes.length?this.gisPoints.filter(t=>this.deviceFilterCodes.indexOf(t.objectId)>-1):this.gisPoints,this.filterGisPoint=t},deep:!0,immediate:!0}},methods:{getMapType(){return new Promise(t=>{this.service&&this.service.post&&this.service.post(this.sysettingService+"/sysetting/default/map/query",{}).then(e=>{if(e.success){let n=e.data;null!==n&&0!==n.length?"gis"===n[0].modeType?this.getMapKeys().then(()=>{this.renderMapType="gis",this.showAll&&this.getBindDevice()}):this.renderMapType="pic":""!==this.map?this.renderMapType=this.map:this.$message.warning("暂无地图"),t()}else this.$message.error("获取地图类型失败")})})},getMapKeys(){return new Promise(t=>{this.gmapKey?(this.mapKey=this.gmapKey,t()):this.service&&this.service.post&&this.service.post(this.sysettingService+"/sysetting/account/query",{type:1}).then(e=>{e.success&&0!==e.data.length&&(this.mapKey=e.data[0].key||"",t())})})},getBindDevice(){return new Promise(t=>{this.service&&this.service.post&&this.service.post(this.deviceService+"/component/device/list",{}).then(e=>{if(e.success){let n=[];e.data&&(e.data||[]).forEach(t=>{const e=!isNaN(t.longitude)&&Number(t.longitude),i=!isNaN(t.latitude)&&Number(t.latitude);let r={objectType:"camera",objectId:t.deviceCode,lon:e,lat:i,data:{...t},status:t.status,onlineStatus:t.onlineStatus,rtspUrl:t.cameraMainRtspUrl};(t.deviceCode&&e&&i&&(!this.deviceFilterCodes||0===this.deviceFilterCodes.length)||this.deviceFilterCodes.indexOf(t.deviceCode)>-1)&&n.push(r)}),0!==this.gisPoints.length?this.gisPoints=this.gisPoints.concat(n):this.gisPoints=n,this.$nextTick(()=>{this.$refs.fcMap&&this.$refs.fcMap.setFitView(),t()})}else this.$message.error("获取设备列表失败")})})},markerClick(t){this.$emit("markerClick",t)},toJSONData(t){return this.$refs.CanoePicMap?this.$refs.CanoePicMap.toJSONData(t):{}},removeMarker(t){this.$refs.CanoePicMap&&this.$refs.CanoePicMap.removeMarker(t)},setMarkerHighligh(t){this.$refs.CanoePicMap&&this.$refs.CanoePicMap.setMarkerHighligh(t)},closePlayer(){this.$refs.CanoePicMap.closePlayer()},picMapChange(t){this.$emit("change",t)},markerOver(t){this.$emit("markerOver",t)},markerOut(){this.$emit("markerOut")},mapMove(t){this.$emit("mapMove",t)},mapZoom(){this.$emit("mapZoom")},picMapClick(t){this.$emit("picMapClick",t)},picMapLoaded(t){this.$emit("picMapLoaded",t)},mapLoaded(){this.$emit("mapLoaded")},pluginLoaded(){this.$emit("pluginLoaded")},mapClick(t){this.$emit("mapClick",t)},alarmShow(t){this.$emit("alarmShow",t)},setFitView(t){"gis"===this.renderMapType?this.$refs.fcMap&&this.$refs.fcMap.setFitView():this.$refs.CanoePicMap&&this.$refs.CanoePicMap.setFitView(t)},clearInfoWindow(){"gis"===this.renderMapType&&this.$refs.fcMap&&this.$refs.fcMap.clearInfoWindow()},cancelAlarm(t){"gis"===this.renderMapType&&this.$refs.fcMap&&this.$refs.fcMap.cancelAlarm(t)},bounceLocation(t,e){"gis"===this.renderMapType&&this.$refs.fcMap&&this.$refs.fcMap.bounceLocation(t,e)},cancelBounceLocation(t){"gis"===this.renderMapType&&this.$refs.fcMap&&this.$refs.fcMap.cancelBounceLocation(t)},playTrack(t,e,n){"gis"===this.renderMapType&&this.$refs.fcMap&&this.$refs.fcMap.playTrack(t,e,n)},getLocationByAddress(t){if("gis"===this.renderMapType)return this.$refs.fcMap?this.$refs.fcMap.getLocationByAddress(t):Promise.reject(new Error("fcMapIsNull"))},getAddressByLocation(t){if("gis"===this.renderMapType)return this.$refs.fcMap?this.$refs.fcMap.getAddressByLocation(t):Promise.reject(new Error("fcMapIsNull"))},getMapObj(){let t={type:this.renderMapType,id:""};return"pic"===this.renderMapType?t.id=this.mapId||this.$refs.fcMap&&this.$refs.fcMap.bgImgId:t.id=this.mapKey,t},destroy(){"gis"===this.renderMapType&&this.$refs.fcMap&&this.$refs.fcMap.destroy()},closeAlarmByHand(t){this.$refs.CanoePicMap&&this.$refs.CanoePicMap.closeAlarmByHand(t)}},created(){},mounted(){}});const $=J;var tt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"qz-map canoe-img-layout"},["pic"===t.renderMapType?[n("CanoePicMap",{ref:"CanoePicMap",attrs:{data:t.markerData,mode:t.mode,service:t.service,playerPluginUrl:t.playerPluginUrl,mapImg:t.mapImg,mapId:t.mapId,markerImg:t.markerImg,markerImgOnline:t.markerImgOnline,markerImgOffline:t.markerImgOffline,markerImgDisabled:t.markerImgDisabled,sysettingService:t.sysettingService,rate:t.rate,limit:t.limit,deviationX:t.deviationX,deviationY:t.deviationY,retainWdith:t.retainWdith,retainHeight:t.retainHeight,markerAlarms:t.markerAlarms,markerTracks:t.markerTracks,multiple:t.multiple,position:t.position,addDefaultSelected:t.addDefaultSelected,getAll:t.showAll,defaultPlay:t.defaultPlay,showPlayer:t.showPlayer,deviceFilterCodes:t.deviceFilterCodes,fullScreenAside:t.fullScreenAside,showDeviceStatus:t.showDeviceStatus,deviceFilterStatus:t.deviceFilterStatus,playerSlot:t.playerSlot},on:{mapLoaded:t.picMapLoaded,markerClick:t.markerClick,change:t.picMapChange,markerOver:t.markerOver,markerOut:t.markerOut,mapMove:t.mapMove,mapZoom:t.mapZoom,mapClick:t.picMapClick,alarmShow:t.alarmShow},scopedSlots:t._u([{key:"player",fn:function(e){return[t._t("player",null,{data:e.data})]}},{key:"popover",fn:function(e){return[t._t("popover",null,{data:e.data})]}},{key:"icon",fn:function(e){return[t._t("icon",null,{data:e.deviceItem})]}},{key:"alarmdialog",fn:function(e){return[t._t("alarmdialog",null,{data:e.data})]}}],null,!0)})]:"gis"===t.renderMapType?[n("CanoeGisMap",{ref:"fcMap",attrs:{playerPluginUrl:t.playerPluginUrl,mapKey:t.mapKey,mapInitinalOptions:t.mapInitinalOptions,points:t.filterGisPoint,locations:t.locations,alarms:t.alarms,tracks:t.tracks,showAlarmOnMap:t.showAlarmOnMap,markerIcon:t.markerIcon,locationIcon:t.locationIcon,trackIcon:t.trackIcon,limitBounds:t.limitBounds,autoFitView:t.autoFitView,fullScreenAside:t.fullScreenAside,bounceIconOnAlarm:t.bounceIconOnAlarm,customLocationPopup:t.customLocationPopup,customMarkerInfoWindow:t.customMarkerInfoWindow,customAlarmInfoWindow:t.customAlarmInfoWindow,showFullscreenButton:t.showFullscreenButton,fullscreenText:t.fullscreenText,exitFullscreenText:t.exitFullscreenText,infoWindowConfig:t.infoWindowConfig},on:{mapLoaded:t.mapLoaded,pluginLoaded:t.pluginLoaded,mapClick:t.mapClick,markerClick:t.markerClick,alarmShow:t.alarmShow}})]:t._e()],2)},et=[];const nt=function(t){t&&t("data-v-bfea79b4_0",{source:"@font-face{font-family:qz-map;src:url(data:application/x-font-woff;base64,d09GRgABAAAAAAW8AAsAAAAACTAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAPQAAAFYzzECCY21hcAAAAYQAAABgAAABqOs5EjVnbHlmAAAB5AAAAc0AAAMQZijQNGhlYWQAAAO0AAAALgAAADYV9QgmaGhlYQAAA+QAAAAXAAAAJACGAExobXR4AAAD/AAAABMAAAAYAUYAAGxvY2EAAAQQAAAADgAAAA4ClgG4bWF4cAAABCAAAAAfAAAAIAEUAE1uYW1lAAAEQAAAASkAAAH+LM8R0nBvc3QAAAVsAAAATQAAAGuyFpy+eJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGQwY5zAwMrAwKDNoAMkOaC0HAMzgwADAxMDKzMDVhCQ5prC4PCK8RUrgwOQCyIZgTQIMwAA2PMFvwAAAHic7ZGxDcRACAQHHzh4fSUvl+LYkfsProkzC1+GkWYRK0SwAAGM5Egc7MZQXela+YNP+c6vdlz+jLVSTZqzl26567poO299S8//FEqrqfy2BvXR6A/TGyU6oyEeULURXXicTVF/b5swFHxnwM9NoDQtxNKUli1IczXUBUKo16Zpuj/2/T9S9+yoShDY9374fNwjReE50BvltCLy2wdU11j/xu4dtmXXDpatt+PkfP/d5MbkN2G5TbXOjMni+ibJgrmQyi3zbAZjMJsRpZH7hfZUUkM9fQi/MK7vsccB7ogNWKi3B3S4hy3RwNfVHt4ut7sN/DB1cC2f2kXLz3VlpxxADhO27gKvIlTIDfIFC1YxfAlxLAGbC7yYh2Oxp/wiUaAvzX/o9az5iNpGjWxHETOWmJweatHpWi/C7NQ7rl38h5btHi6UOtTDONnlO9xjoeKlpkB5hg1UARQmXN+JYtmSImyPIVfEan6GN/N4KkRPkjCxlSiJev+Jzpx+iNfk7TUexDHuW+dtXw/cOm5rnmw9esmMR7h+ravBtrIuQ2O13A7+eTdvEpVkqdD+Sp8yLLJS6zy9g0NSanUyCqUAjY8rxZyK0yvobJ4ld0lqMjVLCw2lVPx0UBf9/Pykv6Iv+LmhoyjchZnKjI9qg1LUdDJe/4qxAcvA7W6YfCMDHTgW3PMQ2nQ1irV+ct8ARuQHNF8GSwkkoccYxRd8dRHEUmxZnrJJOK8v8H9qVDNuAAAAeJxjYGRgYABiOQOxefH8Nl8ZuBkcgCIMtz1SQxH0//8MrmBxDgYmkCgA+e8JNgAAeJxjYGRgYHBgAAFXKMnIgArYABP6ANMAeJxjYAACByTsCsSODAwADf4BRwAAAAAAAC4AiADgATABiAAAeJxjYGRgYGBjcGRgYQABJiDmAkIGhv9gPgMAD6EBYgB4nF2QS07DMBRFb/pDtIAQSEjMPEAMQE3aDruAdl6JzNPW6UdJnDpupXbIAlgAq2ABjFkXN8kbUPwk67zr42fJAG7xAw/l8tCp9nI1cMGu5ibpWrhFvhduo4dH4Q7rSbiLV7wI92i/cYLXumRyhbVwAzdwwk3m78It8odwGw/4FO4w/xLuIsS3cA/P3t3u1E+jfKZX+ySydVPvobbFxmRq6A/qYKozbSOnl2p+VMVhNXIuVrE1qZqYzOkkMSq3ZqsXzl87l4+DIJbcX5gUO5zQR4oIOWbQWGGPhJ09O/nLIS2LAhsYZFAYwsfgzJjSyCor4o9oLGnNceRe4MAXRkwdYvYxHcNbCpNqWmknLMMkr862TBbMff5zeSvHGAEr/uf7tDjpF0GsVZQAAAB4nGNgYsAP2BiZGJkZWRhZGdkY2RlYk3Pyi1P5UysyS3TTSnNyipOLUlPzuJCYeakVJbqJOYlFubwF+cWZJZn5ebq5+WWpDAwAsUkWFAAAAA==) format('woff')}.qz-map-icon{font-family:qz-map!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.close::before{content:'\\ea01'}.exit-fullscreen::before{content:'\\ea02'}.fullscreen::before{content:'\\ea03'}.next-alarm::before{content:'\\ea04'}.position-move::before{content:'\\ea05'}.canoe-img-layout{width:100%;height:100%}.fc-map,.map-container{height:100%;width:100%}.fc-map{position:relative}.fc-map .map-alarm-info-window,.map-info-window,.map-popup-window{position:relative;background-color:#fff;border-radius:4px;box-shadow:0 0 5px 1px #cecece}.fc-map .map-alarm-info-window::after,.map-info-window::after{content:'';width:0;height:0;border:14px solid;position:absolute;bottom:-28px;left:calc(50% - 14px);border-color:#fff transparent transparent}.fc-map .map-alarm-info-close,.map-info-close{position:absolute;height:16px;width:16px;top:8px;right:8px;cursor:pointer;color:#fff;z-index:1000}.fc-map .map-alarm-info-window .map-alarm-info-content{overflow:auto}.fc-map .map-info-device{padding:16px;font-size:14px;background-color:#fff}.fc-map .map-info-device p{display:flex;line-height:initial;margin:0}.fc-map .map-info-device p .title{color:#7a869a;flex-shrink:0}.fc-map .map-info-device p .info{color:#42526e}.fc-map .map-alarm-info-title+.map-alarm-info-content,.map-info-content{padding-top:0;height:100%}.fc-map .map-alarm-info-content{padding-top:20px;height:calc(100% - 20px)}.fc-map .map-info-content,.map-info-no-play{width:100%;height:180px}.fc-map .map-info-no-play.empty-video{display:flex;flex-flow:column;align-items:center;justify-content:center;color:#42526e;font-size:14px;font-weight:600;background-color:#edeff1}.fc-map .map-info-no-play.empty-video img{width:124px;height:124px}.fc-map .map-info-content .player-ctnr{position:relative;z-index:2;height:100%;width:100%}.fc-map .map-info-content .player-ctnr.no-play{background-color:#edeff1}.fc-map .map-info-content .player-ctnr .play-button{position:absolute;z-index:998;left:50%;top:50%;transform:translate(-50%,-50%);cursor:pointer}.fc-map .map-alarm-info-window{min-width:200px;min-height:100px}.fc-map .map-info-window{border:1px solid #dcdfe3;padding:4px;width:320px}.fc-map .map-alarm-info-title{height:16px;line-height:16px;font-size:16px;border-bottom:1px solid #c3c3c3;white-space:nowrap;background-color:#f5b740;color:#fff;padding:8px 30px 8px 8px}.fc-map .map-popup-window.bottom::after,.fc-map .map-popup-window.left::after,.fc-map .map-popup-window.right::after,.fc-map .map-popup-window.top::after{content:'';width:0;height:0;border:14px solid;position:absolute}.fc-map .map-popup-window.top::after{bottom:-28px;left:calc(50% - 14px);border-color:#fff transparent transparent}.fc-map .map-popup-window.right::after{bottom:calc(50% - 14px);left:-28px;border-color:transparent #fff transparent transparent}.fc-map .map-popup-window.bottom::after{top:-28px;left:calc(50% - 14px);border-color:transparent transparent #fff}.fc-map .map-popup-window.left::after{bottom:calc(50% - 14px);right:-28px;border-color:transparent transparent transparent #fff}.fc-map .map-tools{position:absolute;display:flex;align-items:center;justify-content:center;cursor:pointer}.fc-map .map-fullscreen-button{display:flex;align-items:center;justify-content:center;cursor:pointer}.fc-map .map-fullscreen-button i{margin-right:5px}.fc-map .map-switch-device-button{display:flex;align-items:center;justify-content:center;cursor:pointer}.qz-map .map-tools{position:absolute;display:flex;flex-flow:column}.qz-map .map-tools .map-tools-button{position:relative;margin-top:38px;width:45px;height:45px;border-radius:100%;box-shadow:0 2px 8px 0 rgba(0,0,0,.4);background-color:#fff;background-repeat:no-repeat;background-position:center;cursor:pointer;border:none;outline:0;color:#5f666c;transition:all .3s}.qz-map .map-tools .map-tools-button .button-icon{font-size:30px;line-height:45px}.qz-map .map-tools .map-tools-button.next-alarm-button{padding-top:5px}.qz-map .map-tools .map-tools-button:hover{color:#0075da}.qz-map .map-tools .map-tools-button:hover .button-tooltip{display:initial}.qz-map .map-tools .map-tools-button .button-tooltip{display:none;left:-10px;top:50%;font-style:normal;transform:translate(-100%,-50%);white-space:nowrap;word-break:keep-all;transition:all .3s;color:#fff}.qz-map .map-tools .map-tools-button .button-tooltip::after{content:'';position:absolute;border:8px solid transparent;right:0;top:50%;border-left-color:#303133;transform:translate(16px,-50%)}.qz-map .map-tools .map-tools-button:first-child{margin-top:0}",map:void 0,media:void 0})},it=void 0,rt=void 0,at=!1,ot=x({render:tt,staticRenderFns:et},nt,$,it,at,rt,!1,_,void 0,void 0),st=function(t){st.installed||(st.installed=!0,t.component("CanoeMap",ot))},lt={install:st};let ct=null;"undefined"!==typeof window?ct=window.Vue:"undefined"!==typeof t&&(ct=t.Vue),ct&&ct.use(lt),ot.install=st,e["a"]=ot}).call(this,n("c8ba"))},f610:function(t,e,n){var i=n("2306"),r=n("f934"),a=n("6d8b"),o=n("55ac"),s=o.wrapTreePathInfo,l=8,c=8,u=5;function h(t){this.group=new i.Group,t.add(this.group)}function d(t,e,n,i,r,a){var o=[[r?t:t-u,e],[t+n,e],[t+n,e+i],[r?t:t-u,e+i]];return!a&&o.splice(2,0,[t+n+u,e+i/2]),!r&&o.push([t,e+i/2]),o}function f(t,e,n){t.eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&s(n,e)}}h.prototype={constructor:h,render:function(t,e,n,i){var a=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),a.get("show")&&n){var s=a.getModel("itemStyle"),l=s.getModel("textStyle"),c={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,l),this._renderContent(t,c,s,l,i),r.positionElement(o,c.pos,c.box)}},_prepare:function(t,e,n){for(var i=t;i;i=i.parentNode){var r=i.getModel().get("name"),a=n.getTextRect(r),o=Math.max(a.width+2*l,e.emptyItemWidth);e.totalWidth+=o+c,e.renderList.push({node:i,text:r,width:o})}},_renderContent:function(t,e,n,o,s){for(var l=0,u=e.emptyItemWidth,h=t.get("breadcrumb.height"),p=r.getAvailableSize(e.pos,e.box),g=e.totalWidth,m=e.renderList,v=m.length-1;v>=0;v--){var y=m[v],x=y.node,b=y.width,_=y.text;g>p.width&&(g-=b-u,b=u,_=null);var w=new i.Polygon({shape:{points:d(l,0,b,h,v===m.length-1,0===v)},style:a.defaults(n.getItemStyle(),{lineJoin:"bevel",text:_,textFill:o.getTextColor(),textFont:o.getFont()}),z:10,onclick:a.curry(s,x)});this.group.add(w),f(w,t,x),l+=b+c}},remove:function(){this.group.removeAll()}};var p=h;t.exports=p},f6ed:function(t,e,n){var i=n("6d8b");function r(t,e){var n={};return i.each(t,(function(t){t.each(t.mapDimension("value"),(function(e,i){var r="ec-"+t.getName(i);n[r]=n[r]||[],isNaN(e)||n[r].push(e)}))})),t[0].map(t[0].mapDimension("value"),(function(i,r){for(var a,o="ec-"+t[0].getName(r),s=0,l=1/0,c=-1/0,u=n[o].length,h=0;h<u;h++)l=Math.min(l,n[o][h]),c=Math.max(c,n[o][h]),s+=n[o][h];return a="min"===e?l:"max"===e?c:"average"===e?s/u:s,0===u?NaN:a}))}function a(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)})),i.each(e,(function(t,e){for(var n=r(i.map(t,(function(t){return t.getData()})),t[0].get("mapValueCalculation")),a=0;a<t.length;a++)t[a].originalData=t[a].getData();for(a=0;a<t.length;a++)t[a].seriesGroup=t,t[a].needsDrawMap=0===a&&!t[a].getHostGeoModel(),t[a].setData(n.cloneShallow()),t[a].mainSeries=t[0]}))}t.exports=a},f706:function(t,e,n){var i=n("2306"),r=n("1418"),a=n("6d8b"),o=a.isObject;function s(t){this.group=new i.Group,this._symbolCtor=t||r}var l=s.prototype;function c(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function u(t){return null==t||o(t)||(t={isIgnore:t}),t||{}}function h(t){var e=t.hostModel;return{itemStyle:e.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:e.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverAnimation:e.get("hoverAnimation"),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label"),cursorStyle:e.get("cursor")}}l.updateData=function(t,e){e=u(e);var n=this.group,r=t.hostModel,a=this._data,o=this._symbolCtor,s=h(t);a||n.removeAll(),t.diff(a).add((function(i){var r=t.getItemLayout(i);if(c(t,r,i,e)){var a=new o(t,i,s);a.attr("position",r),t.setItemGraphicEl(i,a),n.add(a)}})).update((function(l,u){var h=a.getItemGraphicEl(u),d=t.getItemLayout(l);c(t,d,l,e)?(h?(h.updateData(t,l,s),i.updateProps(h,{position:d},r)):(h=new o(t,l),h.attr("position",d)),n.add(h),t.setItemGraphicEl(l,h)):n.remove(h)})).remove((function(t){var e=a.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}))})).execute(),this._data=t},l.isPersistent=function(){return!0},l.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl((function(e,n){var i=t.getItemLayout(n);e.attr("position",i)}))},l.incrementalPrepareUpdate=function(t){this._seriesScope=h(t),this._data=null,this.group.removeAll()},l.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)}n=u(n);for(var r=t.start;r<t.end;r++){var a=e.getItemLayout(r);if(c(e,a,r,n)){var o=new this._symbolCtor(e,r,this._seriesScope);o.traverse(i),o.attr("position",a),this.group.add(o),e.setItemGraphicEl(r,o)}}},l.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}))})):e.removeAll()};var d=s;t.exports=d},f7c6:function(t,e,n){var i=n("3eba"),r=n("e46b"),a=n("6d8b"),o=n("e0d3"),s=n("3842"),l=s.getPercentWithPrecision,c=n("7023"),u=n("2b17"),h=u.retrieveRawAttr,d=n("0f99"),f=d.makeSeriesEncodeForNameBased,p=n("c4a3"),g=i.extendSeriesModel({type:"series.pie",init:function(t){g.superApply(this,"init",arguments),this.legendVisualProvider=new p(a.bind(this.getData,this),a.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(t)},mergeOption:function(t){g.superCall(this,"mergeOption",t),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(t,e){return r(this,{coordDimensions:["value"],encodeDefaulter:a.curry(f,this)})},_createSelectableList:function(){for(var t=this.getRawData(),e=t.mapDimension("value"),n=[],i=0,r=t.count();i<r;i++)n.push({name:t.getName(i),value:t.get(e,i),selected:h(t,i,"selected")});return n},getDataParams:function(t){var e=this.getData(),n=g.superCall(this,"getDataParams",t),i=[];return e.each(e.mapDimension("value"),(function(t){i.push(t)})),n.percent=l(i,t,e.hostModel.get("percentPrecision")),n.$vars.push("percent"),n},_defaultLabelLine:function(t){o.defaultEmphasis(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:!1,show:!0,position:"outer",alignTo:"none",margin:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationTypeUpdate:"transition",animationEasing:"cubicOut"}});a.mixin(g,c);var m=g;t.exports=m},f934:function(t,e,n){var i=n("6d8b"),r=n("9850"),a=n("3842"),o=a.parsePercent,s=n("eda2"),l=i.each,c=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function h(t,e,n,i,r){var a=0,o=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,c){var u,h,d=l.position,f=l.getBoundingRect(),p=e.childAt(c+1),g=p&&p.getBoundingRect();if("horizontal"===t){var m=f.width+(g?-g.x+f.x:0);u=a+m,u>i||l.newline?(a=0,u=m,o+=s+n,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(g?-g.y+f.y:0);h=o+v,h>r||l.newline?(a+=s+n,o=0,h=v,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=a,d[1]=o,"horizontal"===t?a=u+n:o=h+n)}))}var d=h,f=i.curry(h,"vertical"),p=i.curry(h,"horizontal");function g(t,e,n){var i=e.width,r=e.height,a=o(t.x,i),l=o(t.y,r),c=o(t.x2,i),u=o(t.y2,r);return(isNaN(a)||isNaN(parseFloat(t.x)))&&(a=0),(isNaN(c)||isNaN(parseFloat(t.x2)))&&(c=i),(isNaN(l)||isNaN(parseFloat(t.y)))&&(l=0),(isNaN(u)||isNaN(parseFloat(t.y2)))&&(u=r),n=s.normalizeCssArray(n||0),{width:Math.max(c-a-n[1]-n[3],0),height:Math.max(u-l-n[0]-n[2],0)}}function m(t,e,n){n=s.normalizeCssArray(n||0);var i=e.width,a=e.height,l=o(t.left,i),c=o(t.top,a),u=o(t.right,i),h=o(t.bottom,a),d=o(t.width,i),f=o(t.height,a),p=n[2]+n[0],g=n[1]+n[3],m=t.aspect;switch(isNaN(d)&&(d=i-u-g-l),isNaN(f)&&(f=a-h-p-c),null!=m&&(isNaN(d)&&isNaN(f)&&(m>i/a?d=.8*i:f=.8*a),isNaN(d)&&(d=m*f),isNaN(f)&&(f=d/m)),isNaN(l)&&(l=i-u-d-g),isNaN(c)&&(c=a-h-f-p),t.left||t.right){case"center":l=i/2-d/2-n[3];break;case"right":l=i-d-g;break}switch(t.top||t.bottom){case"middle":case"center":c=a/2-f/2-n[0];break;case"bottom":c=a-f-p;break}l=l||0,c=c||0,isNaN(d)&&(d=i-g-l-(u||0)),isNaN(f)&&(f=a-p-c-(h||0));var v=new r(l+n[3],c+n[0],d,f);return v.margin=n,v}function v(t,e,n,a,o){var s=!o||!o.hv||o.hv[0],l=!o||!o.hv||o.hv[1],c=o&&o.boundingMode||"all";if(s||l){var u;if("raw"===c)u="group"===t.type?new r(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();u=u.clone(),u.applyTransform(h)}e=m(i.defaults({width:u.width,height:u.height},e),n,a);var d=t.position,f=s?e.x-u.x:0,p=l?e.y-u.y:0;t.attr("position","raw"===c?[f,p]:[d[0]+f,d[1]+p])}}function y(t,e){return null!=t[u[e][0]]||null!=t[u[e][1]]&&null!=t[u[e][2]]}function x(t,e,n){!i.isObject(n)&&(n={});var r=n.ignoreSize;!i.isArray(r)&&(r=[r,r]);var a=s(u[0],0),o=s(u[1],1);function s(n,i){var a={},o=0,s={},u=0,d=2;if(l(n,(function(e){s[e]=t[e]})),l(n,(function(t){c(e,t)&&(a[t]=s[t]=e[t]),h(a,t)&&o++,h(s,t)&&u++})),r[i])return h(e,n[1])?s[n[2]]=null:h(e,n[2])&&(s[n[1]]=null),s;if(u!==d&&o){if(o>=d)return a;for(var f=0;f<n.length;f++){var p=n[f];if(!c(a,p)&&c(t,p)){a[p]=t[p];break}}return a}return s}function c(t,e){return t.hasOwnProperty(e)}function h(t,e){return null!=t[e]&&"auto"!==t[e]}function d(t,e,n){l(t,(function(t){e[t]=n[t]}))}d(u[0],t,a),d(u[1],t,o)}function b(t){return _({},t)}function _(t,e){return e&&t&&l(c,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}e.LOCATION_PARAMS=c,e.HV_NAMES=u,e.box=d,e.vbox=f,e.hbox=p,e.getAvailableSize=g,e.getLayoutRect=m,e.positionElement=v,e.sizeCalculable=y,e.mergeLayoutParam=x,e.getLayoutParams=b,e.copyLayoutParams=_},fa52:function(t,e,n){var i=n("3eba");n("febc"),n("dcea");var r=n("2f91"),a=n("ecf8");i.registerVisual(r),i.registerLayout(a)},fab2:function(t,e,n){var i=n("6d8b"),r=i.retrieve,a=i.defaults,o=i.extend,s=i.each,l=n("eda2"),c=n("2306"),u=n("4319"),h=n("3842"),d=h.isRadianAroundZero,f=h.remRadian,p=n("a15a"),g=p.createSymbol,m=n("1687"),v=n("401b"),y=v.applyTransform,x=n("697e"),b=x.shouldShowAllLabels,_=Math.PI,w=function(t,e){this.opt=e,this.axisModel=t,a(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new c.Group;var n=new c.Group({position:e.position.slice(),rotation:e.rotation});n.updateTransform(),this._transform=n.transform,this._dumbGroup=n};w.prototype={constructor:w,hasBuilder:function(t){return!!S[t]},add:function(t){S[t].call(this)},getGroup:function(){return this.group}};var S={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var n=this.axisModel.axis.getExtent(),i=this._transform,r=[n[0],0],a=[n[1],0];i&&(y(r,r,i),y(a,a,i));var l=o({lineCap:"round"},e.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new c.Line({anid:"line",subPixelOptimize:!0,shape:{x1:r[0],y1:r[1],x2:a[0],y2:a[1]},style:l,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1}));var u=e.get("axisLine.symbol"),h=e.get("axisLine.symbolSize"),d=e.get("axisLine.symbolOffset")||0;if("number"===typeof d&&(d=[d,d]),null!=u){"string"===typeof u&&(u=[u,u]),"string"!==typeof h&&"number"!==typeof h||(h=[h,h]);var f=h[0],p=h[1];s([{rotate:t.rotation+Math.PI/2,offset:d[0],r:0},{rotate:t.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((r[0]-a[0])*(r[0]-a[0])+(r[1]-a[1])*(r[1]-a[1]))}],(function(e,n){if("none"!==u[n]&&null!=u[n]){var i=g(u[n],-f/2,-p/2,f,p,l.stroke,!0),a=e.r+e.offset,o=[r[0]+a*Math.cos(t.rotation),r[1]-a*Math.sin(t.rotation)];i.attr({rotation:e.rotate,position:o,silent:!0,z2:11}),this.group.add(i)}}),this)}}},axisTickLabel:function(){var t=this.axisModel,e=this.opt,n=P(this,t,e),i=R(this,t,e);k(t,i,n),O(this,t,e)},axisName:function(){var t=this.opt,e=this.axisModel,n=r(t.axisName,e.get("name"));if(n){var i,a,s=e.get("nameLocation"),u=t.nameDirection,h=e.getModel("nameTextStyle"),d=e.get("nameGap")||0,f=this.axisModel.axis.getExtent(),p=f[0]>f[1]?-1:1,g=["start"===s?f[0]-p*d:"end"===s?f[1]+p*d:(f[0]+f[1])/2,E(s)?t.labelOffset+u*d:0],m=e.get("nameRotate");null!=m&&(m=m*_/180),E(s)?i=C(t.rotation,null!=m?m:t.rotation,u):(i=I(t,s,m||0,f),a=t.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(i.rotation)),!isFinite(a)&&(a=null)));var v=h.getFont(),y=e.get("nameTruncate",!0)||{},x=y.ellipsis,b=r(t.nameTruncateMaxWidth,y.maxWidth,a),w=null!=x&&null!=b?l.truncateText(n,b,v,x,{minChar:2,placeholder:y.placeholder}):n,S=e.get("tooltip",!0),k=e.mainType,M={componentType:k,name:n,$vars:["name"]};M[k+"Index"]=e.componentIndex;var D=new c.Text({anid:"name",__fullText:n,__truncatedText:w,position:g,rotation:i.rotation,silent:T(e),z2:1,tooltip:S&&S.show?o({content:n,formatter:function(){return n},formatterParams:M},S):null});c.setTextStyle(D.style,h,{text:w,textFont:v,textFill:h.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:h.get("align")||i.textAlign,textVerticalAlign:h.get("verticalAlign")||i.textVerticalAlign}),e.get("triggerEvent")&&(D.eventData=A(e),D.eventData.targetType="axisName",D.eventData.name=n),this._dumbGroup.add(D),D.updateTransform(),this.group.add(D),D.decomposeTransform()}}},A=w.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},C=w.innerTextLayout=function(t,e,n){var i,r,a=f(e-t);return d(a)?(r=n>0?"top":"bottom",i="center"):d(a-_)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=a>0&&a<_?n>0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:r}};function I(t,e,n,i){var r,a,o=f(n-t.rotation),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return d(o-_/2)?(a=l?"bottom":"top",r="center"):d(o-1.5*_)?(a=l?"top":"bottom",r="center"):(a="middle",r=o<1.5*_&&o>_/2?l?"left":"right":l?"right":"left"),{rotation:o,textAlign:r,textVerticalAlign:a}}var T=w.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)};function k(t,e,n){if(!b(t.axis)){var i=t.get("axisLabel.showMinLabel"),r=t.get("axisLabel.showMaxLabel");e=e||[],n=n||[];var a=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],c=n[0],u=n[1],h=n[n.length-1],d=n[n.length-2];!1===i?(M(a),M(c)):D(a,o)&&(i?(M(o),M(u)):(M(a),M(c))),!1===r?(M(s),M(h)):D(l,s)&&(r?(M(l),M(d)):(M(s),M(h)))}}function M(t){t&&(t.ignore=!0)}function D(t,e,n){var i=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(i&&r){var a=m.identity([]);return m.rotate(a,a,-t.rotation),i.applyTransform(m.mul([],a,t.getLocalTransform())),r.applyTransform(m.mul([],a,e.getLocalTransform())),i.intersect(r)}}function E(t){return"middle"===t||"center"===t}function L(t,e,n,i,r){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=n,e&&(y(o,o,e),y(s,s,e));var h=new c.Line({anid:r+"_"+t[l].tickValue,subPixelOptimize:!0,shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,silent:!0});a.push(h)}return a}function P(t,e,n){var i=e.axis,r=e.getModel("axisTick");if(r.get("show")&&!i.scale.isBlank()){for(var o=r.getModel("lineStyle"),s=n.tickDirection*r.get("length"),l=i.getTicksCoords(),c=L(l,t._transform,s,a(o.getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")}),"ticks"),u=0;u<c.length;u++)t.group.add(c[u]);return c}}function O(t,e,n){var i=e.axis,r=e.getModel("minorTick");if(r.get("show")&&!i.scale.isBlank()){var o=i.getMinorTicksCoords();if(o.length)for(var s=r.getModel("lineStyle"),l=n.tickDirection*r.get("length"),c=a(s.getLineStyle(),a(e.getModel("axisTick").getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")})),u=0;u<o.length;u++)for(var h=L(o[u],t._transform,l,c,"minorticks_"+u),d=0;d<h.length;d++)t.group.add(h[d])}}function R(t,e,n){var i=e.axis,a=r(n.axisLabelShow,e.get("axisLabel.show"));if(a&&!i.scale.isBlank()){var o=e.getModel("axisLabel"),l=o.get("margin"),h=i.getViewLabels(),d=(r(n.labelRotate,o.get("rotate"))||0)*_/180,f=C(n.rotation,d,n.labelDirection),p=e.getCategories&&e.getCategories(!0),g=[],m=T(e),v=e.get("triggerEvent");return s(h,(function(r,a){var s=r.tickValue,h=r.formattedLabel,d=r.rawLabel,y=o;p&&p[s]&&p[s].textStyle&&(y=new u(p[s].textStyle,o,e.ecModel));var x=y.getTextColor()||e.get("axisLine.lineStyle.color"),b=i.dataToCoord(s),_=[b,n.labelOffset+n.labelDirection*l],w=new c.Text({anid:"label_"+s,position:_,rotation:f.rotation,silent:m,z2:10});c.setTextStyle(w.style,y,{text:h,textAlign:y.getShallow("align",!0)||f.textAlign,textVerticalAlign:y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||f.textVerticalAlign,textFill:"function"===typeof x?x("category"===i.type?d:"value"===i.type?s+"":s,a):x}),v&&(w.eventData=A(e),w.eventData.targetType="axisLabel",w.eventData.value=d),t._dumbGroup.add(w),w.updateTransform(),g.push(w),t.group.add(w),w.decomposeTransform()})),g}}var N=w;t.exports=N},fb05:function(t,e,n){var i=n("6d8b"),r=i.each,a=i.isArray,o=i.isObject,s=n("26e1"),l=n("e0d3"),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 r,a=t,o=0;o<e.length-1;o++)r=e[o],null==a[r]&&(a[r]={}),a=a[r];(i||null==a[e[o]])&&(a[e[o]]=n)}function d(t){r(f,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var f=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],p=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];function g(t,e){s(t,e),t.series=c(t.series),r(t.series,(function(t){if(o(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)}d(t)}})),t.dataRange&&(t.visualMap=t.dataRange),r(p,(function(e){var n=t[e];n&&(a(n)||(n=[n]),r(n,(function(t){d(t)})))}))}t.exports=g},fb6a:function(t,e,n){"use strict";var i=n("23e7"),r=n("861d"),a=n("e8b5"),o=n("23cb"),s=n("50c4"),l=n("fc6a"),c=n("8418"),u=n("b622"),h=n("1dde"),d=n("ae40"),f=h("slice"),p=d("slice",{ACCESSORS:!0,0:0,1:2}),g=u("species"),m=[].slice,v=Math.max;i({target:"Array",proto:!0,forced:!f||!p},{slice:function(t,e){var n,i,u,h=l(this),d=s(h.length),f=o(t,d),p=o(void 0===e?d:e,d);if(a(h)&&(n=h.constructor,"function"!=typeof n||n!==Array&&!a(n.prototype)?r(n)&&(n=n[g],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return m.call(h,f,p);for(i=new(void 0===n?Array:n)(v(p-f,0)),u=0;f<p;f++,u++)f in h&&c(i,u,h[f]);return i.length=u,i}})},fc82:function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),a=n("1fab"),o=n("2306"),s=n("a4fe"),l=n("80f0"),c=r.curry,u=r.each,h=r.map,d=Math.min,f=Math.max,p=Math.pow,g=1e4,m=6,v=6,y="globalPan",x={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},b={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},_={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},w=0;function S(t){a.call(this),this._zr=t,this.group=new o.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+w++,this._handlers={},u(rt,(function(t,e){this._handlers[e]=r.bind(t,this)}),this)}function A(t,e){var n=t._zr;t._enableGlobalPan||s.take(n,y,t._uid),I(n,t._handlers),t._brushType=e.brushType,t._brushOption=r.merge(r.clone(_),e,!0)}function C(t){var e=t._zr;s.release(e,y,t._uid),T(e,t._handlers),t._brushType=t._brushOption=null}function I(t,e){u(e,(function(e,n){t.on(n,e)}))}function T(t,e){u(e,(function(e,n){t.off(n,e)}))}function k(t,e){var n=st[e.brushType].createCover(t,e);return n.__brushOption=e,E(n,e),t.group.add(n),n}function M(t,e){var n=P(e);return n.endCreating&&(n.endCreating(t,e),E(e,e.__brushOption)),e}function D(t,e){var n=e.__brushOption;P(e).updateCoverShape(t,e,n.range,n)}function E(t,e){var n=e.z;null==n&&(n=g),t.traverse((function(t){t.z=n,t.z2=n}))}function L(t,e){P(e).updateCommon(t,e),D(t,e)}function P(t){return st[t.__brushOption.brushType]}function O(t,e,n){var i,r=t._panels;if(!r)return!0;var a=t._transform;return u(r,(function(t){t.isTargetByCursor(e,n,a)&&(i=t)})),i}function R(t,e){var n=t._panels;if(!n)return!0;var i=e.__brushOption.panelId;return null==i||n[i]}function N(t){var e=t._covers,n=e.length;return u(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function B(t,e){var n=h(t._covers,(function(t){var e=t.__brushOption,n=r.clone(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}}));t.trigger("brush",n,{isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function z(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],r=n[0]-i[0],a=n[1]-i[1],o=p(r*r+a*a,.5);return o>m}function F(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function V(t,e,n,i){var r=new o.Group;return r.add(new o.Rect({name:"main",style:G(n),silent:!0,draggable:!0,cursor:"move",drift:c(t,e,r,"nswe"),ondragend:c(B,e,{isEnd:!0})})),u(i,(function(n){r.add(new o.Rect({name:n,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:c(t,e,r,n),ondragend:c(B,e,{isEnd:!0})}))})),r}function W(t,e,n,i){var r=i.brushStyle.lineWidth||0,a=f(r,v),o=n[0][0],s=n[1][0],l=o-r/2,c=s-r/2,u=n[0][1],h=n[1][1],d=u-a+r/2,p=h-a+r/2,g=u-o,m=h-s,y=g+r,x=m+r;H(t,e,"main",o,s,g,m),i.transformable&&(H(t,e,"w",l,c,a,x),H(t,e,"e",d,c,a,x),H(t,e,"n",l,c,y,a),H(t,e,"s",l,p,y,a),H(t,e,"nw",l,c,a,a),H(t,e,"ne",d,c,a,a),H(t,e,"sw",l,p,a,a),H(t,e,"se",d,p,a,a))}function U(t,e){var n=e.__brushOption,i=n.transformable,r=e.childAt(0);r.useStyle(G(n)),r.attr({silent:!i,cursor:i?"move":"default"}),u(["w","e","n","s","se","sw","ne","nw"],(function(n){var r=e.childOfName(n),a=q(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?b[a]+"-resize":null})}))}function H(t,e,n,i,r,a,o){var s=e.childOfName(n);s&&s.setShape(J(Q(t,e,[[i,r],[i+a,r+o]])))}function G(t){return r.defaults({strokeNoScale:!0},t.brushStyle)}function j(t,e,n,i){var r=[d(t,n),d(e,i)],a=[f(t,n),f(e,i)];return[[r[0],a[0]],[r[1],a[1]]]}function Y(t){return o.getTransform(t.group)}function q(t,e){if(e.length>1){e=e.split("");var n=[q(t,e[0]),q(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}var i={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"};n=o.transformDirection(i[e],Y(t));return r[n]}function K(t,e,n,i,r,a,o,s){var l=i.__brushOption,c=t(l.range),h=Z(n,a,o);u(r.split(""),(function(t){var e=x[t];c[e[0]][e[1]]+=h[e[0]]})),l.range=e(j(c[0][0],c[1][0],c[0][1],c[1][1])),L(n,i),B(n,{isEnd:!1})}function X(t,e,n,i,r){var a=e.__brushOption.range,o=Z(t,n,i);u(a,(function(t){t[0]+=o[0],t[1]+=o[1]})),L(t,e),B(t,{isEnd:!1})}function Z(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),a=i.transformCoordToLocal(0,0);return[r[0]-a[0],r[1]-a[1]]}function Q(t,e,n){var i=R(t,e);return i&&!0!==i?i.clipPath(n,t._transform):r.clone(n)}function J(t){var e=d(t[0][0],t[1][0]),n=d(t[0][1],t[1][1]),i=f(t[0][0],t[1][0]),r=f(t[0][1],t[1][1]);return{x:e,y:n,width:i-e,height:r-n}}function $(t,e,n){if(t._brushType&&!ot(t,e)){var i=t._zr,r=t._covers,a=O(t,e,n);if(!t._dragging)for(var o=0;o<r.length;o++){var s=r[o].__brushOption;if(a&&(!0===a||s.panelId===a.panelId)&&st[s.brushType].contain(r[o],n[0],n[1]))return}a&&i.setCursorStyle("crosshair")}}function tt(t){var e=t.event;e.preventDefault&&e.preventDefault()}function et(t,e,n){return t.childOfName("main").contain(e,n)}function nt(t,e,n,i){var a,o=t._creatingCover,s=t._creatingPanel,l=t._brushOption;if(t._track.push(n.slice()),z(t)||o){if(s&&!o){"single"===l.brushMode&&N(t);var c=r.clone(l);c.brushType=it(c.brushType,s),c.panelId=!0===s?null:s.panelId,o=t._creatingCover=k(t,c),t._covers.push(o)}if(o){var u=st[it(t._brushType,s)],h=o.__brushOption;h.range=u.getCreatingRange(Q(t,o,t._track)),i&&(M(t,o),u.updateCommon(t,o)),D(t,o),a={isEnd:i}}}else i&&"single"===l.brushMode&&l.removeOnClick&&O(t,e,n)&&N(t)&&(a={isEnd:i,removeOnClick:!0});return a}function it(t,e){return"auto"===t?e.defaultBrushType:t}S.prototype={constructor:S,enableBrush:function(t){return this._brushType&&C(this),t.brushType&&A(this,t),this},setPanels:function(t){if(t&&t.length){var e=this._panels={};r.each(t,(function(t){e[t.panelId]=r.clone(t)}))}else this._panels=null;return this},mount:function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({position:t.position||[0,0],rotation:t.rotation||0,scale:t.scale||[1,1]}),this._transform=e.getLocalTransform(),this},eachCover:function(t,e){u(this._covers,t,e)},updateCovers:function(t){t=r.map(t,(function(t){return r.merge(r.clone(_),t,!0)}));var e="\0-brush-index-",n=this._covers,i=this._covers=[],a=this,o=this._creatingCover;return new l(n,t,c,s).add(u).update(u).remove(h).execute(),this;function s(t,n){return(null!=t.id?t.id:e+n)+"-"+t.brushType}function c(t,e){return s(t.__brushOption,e)}function u(e,r){var s=t[e];if(null!=r&&n[r]===o)i[e]=n[r];else{var l=i[e]=null!=r?(n[r].__brushOption=s,n[r]):M(a,k(a,s));L(a,l)}}function h(t){n[t]!==o&&a.group.remove(n[t])}},unmount:function(){return this.enableBrush(!1),N(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},r.mixin(S,a);var rt={mousedown:function(t){if(this._dragging)at(this,t);else if(!t.target||!t.target.draggable){tt(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var n=this._creatingPanel=O(this,t,e);n&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,i=this.group.transformCoordToLocal(e,n);if($(this,t,i),this._dragging){tt(t);var r=nt(this,t,i,!1);r&&B(this,r)}},mouseup:function(t){at(this,t)}};function at(t,e){if(t._dragging){tt(e);var n=e.offsetX,i=e.offsetY,r=t.group.transformCoordToLocal(n,i),a=nt(t,e,r,!0);t._dragging=!1,t._track=[],t._creatingCover=null,a&&B(t,a)}}function ot(t,e,n){var i=t._zr;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}var st={lineX:lt(0),lineY:lt(1),rect:{createCover:function(t,e){return V(c(K,(function(t){return t}),(function(t){return t})),t,e,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(t){var e=F(t);return j(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){W(t,e,n,i)},updateCommon:U,contain:et},polygon:{createCover:function(t,e){var n=new o.Group;return n.add(new o.Polyline({name:"main",style:G(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new o.Polygon({name:"main",draggable:!0,drift:c(X,t,e),ondragend:c(B,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:Q(t,e,n)})},updateCommon:U,contain:et}};function lt(t){return{createCover:function(e,n){return V(c(K,(function(e){var n=[e,[0,100]];return t&&n.reverse(),n}),(function(e){return e[t]})),e,n,[["w","e"],["n","s"]][t])},getCreatingRange:function(e){var n=F(e),i=d(n[0][t],n[1][t]),r=f(n[0][t],n[1][t]);return[i,r]},updateCoverShape:function(e,n,i,r){var a,o=R(e,n);if(!0!==o&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(t,e._transform);else{var s=e._zr;a=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[i,a];t&&l.reverse(),W(e,n,l,r)},updateCommon:U,contain:et}}var ct=S;t.exports=ct},fca5:function(t,e,n){!function(e,i){t.exports=i(n("5c96"),n("bc3a"),n("2b0e"))}(window,(function(t,e,n){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=44)}([,,function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n,i,r,a=t[1]||"",o=t[3];if(!o)return a;if(e&&"function"==typeof btoa){var s=(n=o,i=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),"/*# ".concat(r," */")),l=o.sources.map((function(t){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(t," */")}));return[a].concat(l).concat([s]).join("\n")}return[a].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var a=0;a<this.length;a++){var o=this[a][0];null!=o&&(r[o]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);i&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},function(t,e,n){"use strict";var i,r=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},a=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),o=[];function s(t){for(var e=-1,n=0;n<o.length;n++)if(o[n].identifier===t){e=n;break}return e}function l(t,e){for(var n={},i=[],r=0;r<t.length;r++){var a=t[r],l=e.base?a[0]+e.base:a[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var h=s(u),d={css:a[1],media:a[2],sourceMap:a[3]};-1!==h?(o[h].references++,o[h].updater(d)):o.push({identifier:u,updater:m(d,e),references:1}),i.push(u)}return i}function c(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var r=n.nc;r&&(i.nonce=r)}if(Object.keys(i).forEach((function(t){e.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(e);else{var o=a(t.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(e)}return e}var u,h=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function d(t,e,n,i){var r=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=h(e,r);else{var a=document.createTextNode(r),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(a,o[e]):t.appendChild(a)}}function f(t,e,n){var i=n.css,r=n.media,a=n.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),a&&btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var p=null,g=0;function m(t,e){var n,i,r;if(e.singleton){var a=g++;n=p||(p=c(e)),i=d.bind(null,n,a,!1),r=d.bind(null,n,a,!0)}else n=c(e),i=f.bind(null,n,e),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=r());var n=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<n.length;i++){var r=s(n[i]);o[r].references--}for(var a=l(t,e),c=0;c<n.length;c++){var u=s(n[c]);0===o[u].references&&(o[u].updater(),o.splice(u,1))}n=a}}}},,,,function(t,e,n){var i=n(3),r=n(35);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a),t.exports=r.locals||{}},function(t,e,n){var i=n(3),r=n(37);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a),t.exports=r.locals||{}},function(t,e,n){var i=n(3),r=n(39);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a),t.exports=r.locals||{}},function(t,e,n){var i=n(3),r=n(41);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a),t.exports=r.locals||{}},function(t,e,n){var i=n(3),r=n(43);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a),t.exports=r.locals||{}},function(e,n){e.exports=t},function(t,n){t.exports=e},,,,,,function(t,e,n){(e=n(2)(!1)).push([t.i,'@font-face {\n font-family: "qz-player";\n src: url(data:application/x-font-woff;base64,d09GRgABAAAAAAQkAAsAAAAABpQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAPQAAAFYzy0B4Y21hcAAAAYQAAABbAAABmjp67sBnbHlmAAAB4AAAAFkAAACEt5X8wWhlYWQAAAI8AAAALAAAADYV2ESFaGhlYQAAAmgAAAAYAAAAJAB7AEZobXR4AAACgAAAAA4AAAAUAQAAAGxvY2EAAAKQAAAADAAAAAwASABmbWF4cAAAApwAAAAeAAAAIAERABRuYW1lAAACvAAAAS8AAAIieIN8EHBvc3QAAAPsAAAANQAAAEyTGkjLeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGQwZpzAwMrAwKDBoAMkOaC0HAMzgwADAxMDKzMDVhCQ5prC4PCK8RULgwOQywomGRgYQQQA1jQFtAAAAHic7ZG7DYAwDESfk4MCMQgFQzAEFftXWSL4wxic9M7yyXJhAwvQndMR2IMRuj21zDtb5uLIGUU+NKe7hXuv9OazsWPl155+fZ3iVkVerxVE7UV8YahAL2JeD18AeJxjYGIAASsGBwYmBjYGBnN2cXVlUWMrdXV1Xl4HBQVbK6AsuhpxdnNjUWU2LGrMgGqYGdiBaoAKQJiLn1+Wn98BCICyjGA1JmBzQKbwaGgAtTMAAMDLCwQAAAB4nGNgZGBgAOKOh+Xi8fw2Xxm4GRyAIgy3HZhbkGkGK7A4BwMTiAMA+ykHrHicY2BkYGBwYGCAk1YMjAyogBUAEqsAwnicY2AAAgdUDAAJFAEBAAAAAAAAABIAJAA2AEJ4nGNgZGBgYGXgYGBiAAEQyQWEDAz/wXwGAAnHASYAAHicbZBLbsIwFEVvIFAVpAq1UqXOrA46qQifAQMWAHMGzAM4fJTEwRgkWEBX0DV0DV1Bh11Dl8KN+8SgxZaezju+fpEDoIUvBChXgFtfy1XBDbtfrpJawiH5SbiGJp6F6/Rt4QZeMRBu4gExJwRhOe0eTriCO7wJV+nfhUPyh3ANj/gUrtN/CzcwxY9wEy/BYHtqF2l81Hail/s0tpf+AlNtd2uTq17UvbixzrWNnV6o2VHtDsu+c4lKrMnUyOROp6lRhTUbPXfRyrli2Okk4qO5ybDFiS8ukPJ9R2hYTFiX2Htjr5z/N1Nfd1jDIIdCDxG6V3Jj1txTzD+osWB2xjPFuwd+s0/rkLBPmDHISCM/s0yn3Iam8Gcbmjl9hJW/VWCIDnfyJx8xxUlnKiFhMgB4nGNgYsAPWBmZGJkZWRhZGdkYOJISk7PLE4tS2NPyi0A0a0FiaXEqa3FJYlEJAwMAtJcKugAAAA==) format(\'woff\');\n}\n\n.qz-player-icon {\n font-family: "qz-player" !important;\n font-size: 16px;\n font-style: normal;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.backward::before {\n content: "\\ea01";\n}\n\n.forward::before {\n content: "\\ea02";\n}\n\n.pause::before {\n content: "\\ea03";\n}\n\n.start::before {\n content: "\\ea04";\n}\n',""]),t.exports=e},function(t,e,n){(function(t){var i,r,a,o;function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}"undefined"!=typeof self&&self,o=function(t){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===s(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"01f9":function(t,e,n){"use strict";var i=n("2d00"),r=n("5ca1"),a=n("2aba"),o=n("32e9"),s=n("84f2"),l=n("41a0"),c=n("7f20"),u=n("38fd"),h=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),f="keys",p="values",g=function(){return this};t.exports=function(t,e,n,m,v,y,x){l(n,e,m);var b,_,w,S=function(t){if(!d&&t in T)return T[t];switch(t){case f:case p:return function(){return new n(this,t)}}return function(){return new n(this,t)}},A=e+" Iterator",C=v==p,I=!1,T=t.prototype,k=T[h]||T["@@iterator"]||v&&T[v],M=k||S(v),D=v?C?S("entries"):M:void 0,E="Array"==e&&T.entries||k;if(E&&(w=u(E.call(new t)))!==Object.prototype&&w.next&&(c(w,A,!0),i||"function"==typeof w[h]||o(w,h,g)),C&&k&&k.name!==p&&(I=!0,M=function(){return k.call(this)}),i&&!x||!d&&!I&&T[h]||o(T,h,M),s[e]=M,s[A]=g,v)if(b={values:C?M:S(p),keys:y?M:S(f),entries:D},x)for(_ in b)_ in T||a(T,_,b[_]);else r(r.P+r.F*(d||I),e,b);return b}},"02f4":function(t,e,n){var i=n("4588"),r=n("be13");t.exports=function(t){return function(e,n){var a,o,s=String(r(e)),l=i(n),c=s.length;return l<0||l>=c?t?"":void 0:(a=s.charCodeAt(l))<55296||a>56319||l+1===c||(o=s.charCodeAt(l+1))<56320||o>57343?t?s.charAt(l):a:t?s.slice(l,l+2):o-56320+(a-55296<<10)+65536}}},"0390":function(t,e,n){"use strict";var i=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},"09a8":function(t,e,n){var i=n("d814");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("52d7d31b",i,!0,{sourceMap:!1,shadowMode:!1})},"09fa":function(t,e,n){var i=n("4588"),r=n("9def");t.exports=function(t){if(void 0===t)return 0;var e=i(t),n=r(e);if(e!==n)throw RangeError("Wrong length!");return n}},"0a49":function(t,e,n){var i=n("9b43"),r=n("626a"),a=n("4bf8"),o=n("9def"),s=n("cd1c");t.exports=function(t,e){var n=1==t,l=2==t,c=3==t,u=4==t,h=6==t,d=5==t||h,f=e||s;return function(e,s,p){for(var g,m,v=a(e),y=r(v),x=i(s,p,3),b=o(y.length),_=0,w=n?f(e,b):l?f(e,0):void 0;b>_;_++)if((d||_ in y)&&(m=x(g=y[_],_,v),t))if(n)w[_]=m;else if(m)switch(t){case 3:return!0;case 5:return g;case 6:return _;case 2:w.push(g)}else if(u)return!1;return h?-1:c||u?u:w}}},"0bfb":function(t,e,n){"use strict";var i=n("cb7c");t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,n){var i=n("ce10"),r=n("e11e");t.exports=Object.keys||function(t){return i(t,r)}},"0f88":function(t,e,n){for(var i,r=n("7726"),a=n("32e9"),o=n("ca5a"),s=o("typed_array"),l=o("view"),c=!(!r.ArrayBuffer||!r.DataView),u=c,h=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");h<9;)(i=r[d[h++]])?(a(i.prototype,s,!0),a(i.prototype,l,!0)):u=!1;t.exports={ABV:c,CONSTR:u,TYPED:s,VIEW:l}},1169:function(t,e,n){var i=n("2d95");t.exports=Array.isArray||function(t){return"Array"==i(t)}},"11e9":function(t,e,n){var i=n("52a7"),r=n("4630"),a=n("6821"),o=n("6a99"),s=n("69a8"),l=n("c69a"),c=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?c:function(t,e){if(t=a(t),e=o(e,!0),l)try{return c(t,e)}catch(t){}if(s(t,e))return r(!i.f.call(t,e),t[e])}},1495:function(t,e,n){var i=n("86cc"),r=n("cb7c"),a=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){r(t);for(var n,o=a(e),s=o.length,l=0;s>l;)i.f(t,n=o[l++],e[n]);return t}},"18d2":function(t,e,n){"use strict";var i=n("18e9");t.exports=function(t){var e=(t=t||{}).reporter,n=t.batchProcessor,r=t.stateHandler.getState;if(!e)throw new Error("Missing required dependency: reporter.");function a(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function o(t){return r(t).object}return{makeDetectable:function(t,o,s){s||(s=o,o=t,t=null),(t=t||{}).debug,i.isIE(8)?s(o):function(o,s){var l=a(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),c=!1,u=window.getComputedStyle(o),h=o.offsetWidth,d=o.offsetHeight;function f(){function n(){if("static"===u.position){o.style.setProperty("position","relative",t.important?"important":"");var n=function(e,n,i,r){var a=i[r];"auto"!==a&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(a)&&(e.warn("An element that is positioned static has style."+r+"="+a+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",n),n.style.setProperty(r,"0",t.important?"important":""))};n(e,o,u,"top"),n(e,o,u,"right"),n(e,o,u,"bottom"),n(e,o,u,"left")}}""!==u.position&&(n(),c=!0);var a=document.createElement("object");a.style.cssText=l,a.tabIndex=-1,a.type="text/html",a.setAttribute("aria-hidden","true"),a.onload=function(){c||n(),function t(e,n){if(!e.contentDocument){var i=r(e);return i.checkForObjectDocumentTimeoutId&&window.clearTimeout(i.checkForObjectDocumentTimeoutId),void(i.checkForObjectDocumentTimeoutId=setTimeout((function(){i.checkForObjectDocumentTimeoutId=0,t(e,n)}),100))}n(e.contentDocument)}(this,(function(t){s(o)}))},i.isIE()||(a.data="about:blank"),r(o)&&(o.appendChild(a),r(o).object=a,i.isIE()&&(a.data="about:blank"))}r(o).startSize={width:h,height:d},n?n.add(f):f()}(o,s)},addListener:function(t,e){function n(){e(t)}if(i.isIE(8))r(t).object={proxy:n},t.attachEvent("onresize",n);else{var a=o(t);if(!a)throw new Error("Element is not detectable by this strategy.");a.contentDocument.defaultView.addEventListener("resize",n)}},uninstall:function(t){if(r(t)){var e=o(t);e&&(i.isIE(8)?t.detachEvent("onresize",e.proxy):t.removeChild(e),r(t).checkForObjectDocumentTimeoutId&&window.clearTimeout(r(t).checkForObjectDocumentTimeoutId),delete r(t).object)}}}}},"18e9":function(t,e,n){"use strict";var i=t.exports={};i.isIE=function(t){return!(!function(){var t=navigator.userAgent.toLowerCase();return-1!==t.indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/")}()||t&&t!==function(){var t=3,e=document.createElement("div"),n=e.getElementsByTagName("i");do{e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e"}while(n[0]);return t>4?t:void 0}())},i.isLegacyOpera=function(){return!!window.opera}},1991:function(t,e,n){var i,r,a,o=n("9b43"),s=n("31f4"),l=n("fab2"),c=n("230e"),u=n("7726"),h=u.process,d=u.setImmediate,f=u.clearImmediate,p=u.MessageChannel,g=u.Dispatch,m=0,v={},y="onreadystatechange",x=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},b=function(t){x.call(t.data)};d&&f||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++m]=function(){s("function"==typeof t?t:Function(t),e)},i(m),m},f=function(t){delete v[t]},"process"==n("2d95")(h)?i=function(t){h.nextTick(o(x,t,1))}:g&&g.now?i=function(t){g.now(o(x,t,1))}:p?(a=(r=new p).port2,r.port1.onmessage=b,i=o(a.postMessage,a,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(i=function(t){u.postMessage(t+"","*")},u.addEventListener("message",b,!1)):i=y in c("script")?function(t){l.appendChild(c("script"))[y]=function(){l.removeChild(this),x.call(t)}}:function(t){setTimeout(o(x,t,1),0)}),t.exports={set:d,clear:f}},"1c4c":function(t,e,n){"use strict";var i=n("9b43"),r=n("5ca1"),a=n("4bf8"),o=n("1fa8"),s=n("33a4"),l=n("9def"),c=n("f1ae"),u=n("27ee");r(r.S+r.F*!n("5cc5")((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,r,h,d=a(t),f="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g,v=0,y=u(d);if(m&&(g=i(g,p>2?arguments[2]:void 0,2)),null==y||f==Array&&s(y))for(n=new f(e=l(d.length));e>v;v++)c(n,v,m?g(d[v],v):d[v]);else for(h=y.call(d),n=new f;!(r=h.next()).done;v++)c(n,v,m?o(h,g,[r.value,v],!0):r.value);return n.length=v,n}})},"1d3b":function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,'.vue-slider-disabled .vue-slider-process{background-color:#a7a7a7}.vue-slider-disabled .vue-slider-dot-handle{border-color:#a7a7a7}.vue-slider-disabled .vue-slider-mark-step-active{-webkit-box-shadow:0 0 0 2px #a7a7a7;box-shadow:0 0 0 2px #a7a7a7}.vue-slider-rail{background-color:#f5f5f5;border-radius:15px;-webkit-transition:background-color .3s;transition:background-color .3s}.vue-slider:hover .vue-slider-rail{background-color:#e1e1e1}.vue-slider-process{background-color:#9cd5ff;border-radius:15px;-webkit-transition:background-color .3s;transition:background-color .3s}.vue-slider:hover .vue-slider-process{background-color:#69c0ff}.vue-slider-mark-step{width:100%;height:100%;border-radius:50%;-webkit-box-shadow:0 0 0 2px #e8e8e8;box-shadow:0 0 0 2px #e8e8e8;background-color:#fff}.vue-slider-mark-step-active{-webkit-box-shadow:0 0 0 2px #9cd5ff;box-shadow:0 0 0 2px #9cd5ff}.vue-slider:hover .vue-slider-mark-step-active{-webkit-box-shadow:0 0 0 2px #69c0ff;box-shadow:0 0 0 2px #69c0ff}.vue-slider-mark-label{font-size:12px;white-space:nowrap}.vue-slider-dot-handle{cursor:pointer;width:100%;height:100%;border-radius:50%;background-color:#fff;border:2px solid #9cd5ff;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:border-color .3s,-webkit-box-shadow .3s;transition:border-color .3s,-webkit-box-shadow .3s;transition:box-shadow .3s,border-color .3s;transition:box-shadow .3s,border-color .3s,-webkit-box-shadow .3s}.vue-slider:hover .vue-slider-dot-handle{border-color:#69c0ff}.vue-slider-dot-handle-focus{border-color:#36abff;-webkit-box-shadow:0 0 0 5px rgba(54,171,255,.2);box-shadow:0 0 0 5px rgba(54,171,255,.2)}.vue-slider-dot-handle:hover,.vue-slider:hover .vue-slider-dot-handle-focus,.vue-slider:hover .vue-slider-dot-handle:hover{border-color:#36abff}.vue-slider-dot-handle-disabled{cursor:not-allowed;border-color:#ddd!important}.vue-slider-dot-tooltip{opacity:0;visibility:hidden;-webkit-transition:all .3s;transition:all .3s}.vue-slider-dot-tooltip-inner{font-size:14px;white-space:nowrap;padding:6px 8px;color:#fff;border-radius:5px;border-color:rgba(0,0,0,.75);background-color:rgba(0,0,0,.75);-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15);-webkit-transform:scale(.9);transform:scale(.9);-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.vue-slider-dot-tooltip-inner:after{content:"";position:absolute}.vue-slider-dot-tooltip-inner-top:after{top:100%;border-color:transparent;border-style:solid;border-width:5px;border-top-color:inherit}.vue-slider-dot-tooltip-inner-bottom:after,.vue-slider-dot-tooltip-inner-top:after{left:50%;-webkit-transform:translate(-50%);transform:translate(-50%);height:0;width:0}.vue-slider-dot-tooltip-inner-bottom:after{bottom:100%;border-color:transparent;border-style:solid;border-width:5px;border-bottom-color:inherit}.vue-slider-dot-tooltip-inner-left:after{left:100%;border-color:transparent;border-style:solid;border-width:5px;border-left-color:inherit}.vue-slider-dot-tooltip-inner-left:after,.vue-slider-dot-tooltip-inner-right:after{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);height:0;width:0}.vue-slider-dot-tooltip-inner-right:after{right:100%;border-color:transparent;border-style:solid;border-width:5px;border-right-color:inherit}.vue-slider-dot-tooltip-inner-top{-webkit-transform-origin:50% 100%;transform-origin:50% 100%}.vue-slider-dot-tooltip-inner-bottom{-webkit-transform-origin:50% 0;transform-origin:50% 0}.vue-slider-dot-tooltip-inner-left{-webkit-transform-origin:100% 50%;transform-origin:100% 50%}.vue-slider-dot-tooltip-inner-right{-webkit-transform-origin:0 50%;transform-origin:0 50%}.vue-slider-dot-tooltip-show,.vue-slider-dot:hover .vue-slider-dot-tooltip{opacity:1;visibility:visible}.vue-slider-dot-tooltip-show .vue-slider-dot-tooltip-inner,.vue-slider-dot:hover .vue-slider-dot-tooltip .vue-slider-dot-tooltip-inner{-webkit-transform:scale(1);transform:scale(1)}',""])},"1fa8":function(t,e,n){var i=n("cb7c");t.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(e){var a=t.return;throw void 0!==a&&i(a.call(t)),e}}},"214f":function(t,e,n){"use strict";n("b0c5");var i=n("2aba"),r=n("32e9"),a=n("79e5"),o=n("be13"),s=n("2b4c"),l=n("520a"),c=s("species"),u=!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),h=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var d=s(t),f=!a((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),p=f?!a((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[d](""),!e})):void 0;if(!f||!p||"replace"===t&&!u||"split"===t&&!h){var g=/./[d],m=n(o,d,""[t],(function(t,e,n,i,r){return e.exec===l?f&&!r?{done:!0,value:g.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}})),v=m[0],y=m[1];i(String.prototype,t,v),r(RegExp.prototype,d,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},"215a":function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,".no-border,.no-border.selected,.no-border:hover{border:none}@-webkit-keyframes vatblink{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes vatblink{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.vatlive{width:100%;height:100%;background-color:#081b2a;border-color:#000;border-width:2px;padding:0;overflow:hidden}.vatlive,.vatlive *,.vatlive>table{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}.vatlive>table{width:100%;height:100%;border:1px solid #364a63;background-color:#081b2a;table-layout:fixed;word-break:break-all;padding:0;border-collapse:separate}.vatlive>table>tr{padding:0;vertical-align:top}.vatlive>table>tr>td{border:1px solid #364a63;background-color:#1b1b1b;overflow-x:hidden;overflow-y:hidden;padding:0;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}.vatlive>table>tr>td[max=true]{border:none}.vatlive>table>tr>td:hover{border:1px solid #4e408f}.vatlive>table>tr>td.selected{border:1px solid #bd1c1c}.vatlive>table>tr>td .vatwin{width:100%;height:100%;border:none;position:relative;vertical-align:middle;text-align:center;padding:0}.vatlive>table>tr>td .vatwin .drag-layer{z-index:100;position:absolute;margin:0;padding:0;left:0;top:0;right:0;bottom:0;background-color:rgba(0,0,0,.001)}.vatlive>table>tr>td .vatwin .drag-hover{border:1px solid #137c1c}.vatlive>table>tr>td .vatwin .vatrender{position:absolute;border:none;z-index:50;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.vatlive>table>tr>td .vatwin .vat-record{z-index:51;border:none;position:absolute;background:url(\"data:image/svg+xml;charset=utf-8,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M704 434.496l131.795-131.789a38.4 38.4 0 0165.549 27.155v388.48a38.4 38.4 0 01-65.549 27.15L704 613.701V729.6a38.4 38.4 0 01-38.4 38.4H166.4a38.4 38.4 0 01-38.4-38.4v-384a38.4 38.4 0 0138.4-38.4h499.2a38.4 38.4 0 0138.4 38.4v88.896zM281.6 524.8c42.413 0 76.8-34.387 76.8-76.8s-34.387-76.8-76.8-76.8-76.8 34.387-76.8 76.8 34.387 76.8 76.8 76.8z' fill='%23d81e06'/%3E%3C/svg%3E\");opacity:.8;width:32px;height:32px;top:12px;right:10px;animation:vatblink 2.2s infinite;-moz-animation:vatblink 2.2s infinite;-webkit-animation:vatblink 2.2s infinite;-o-animation:vatblink 2.2s infinite}.vatlive>table>tr>td .vatwin .vat-tool{position:absolute;display:block;border:1px solid rgba(3,88,109,.1);border-radius:3px;bottom:0;width:100%;height:auto;visibility:hidden;background:rgba(54,74,99,.4);opacity:0;z-index:110;text-align:center;-webkit-transition:visibility 0s linear .33s,opacity .33s linear;transition:visibility 0s linear .33s,opacity .33s linear;overflow:hidden}.vatlive>table>tr>td .vatwin .vat-tool a{width:28px;height:28px;margin-left:5px;margin-right:5px;margin-top:5px;background-size:cover;background-repeat:no-repeat;-webkit-transition:all .3s;transition:all .3s;display:inline-block}.vatlive>table>tr>td .vatwin .vat-tool a:hover{-webkit-transform:scale(1.2);transform:scale(1.2)}.vatlive>table>tr>td .vatwin .vat-tool a:active{-webkit-transform:scale(1);transform:scale(1)}.vatlive>table>tr>td .vatwin .vat-tool svg path{fill:#fefefe}.vatlive>table>tr>td .vatwin .vat-tool svg:hover path{fill:#42b7f7}.vatlive>table>tr>td .vatwin:hover .vat-tool{visibility:visible;opacity:.8;-webkit-transition-delay:0s;transition-delay:0s}.vatlive>table>tr>td .vatwin .vat-title{position:absolute;display:block;top:0;width:100%;height:16px;z-index:55;background:#0a1522;border:1px solid #050524}.vatlive>table>tr>td .vatwin .vat-title .state{position:absolute;left:0;display:inline-block;width:16px;height:16px;background-size:cover;-webkit-background-size:cover;-moz-background-size:cover}.vatlive>table>tr>td .vatwin .vat-title .vat-name{position:absolute;top:-1px;left:32px;height:100%;display:inline-block;color:#39aea6;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vatlive>table>tr>td .vatwin .vat-title .vat-speed{position:absolute;top:-1px;right:5px;height:100%;display:inline-block;color:#28312e;font-size:12px;margin-top:1px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.vatlive>table>tr>td .vatwin .vat-error{z-index:51;display:block;position:absolute;border:none;background:rgba(0,0,0,.4);font-size:18px;width:100%;height:100%}.vatlive>table>tr>td .vatwin .vat-error>table{width:100%;height:100%;background:transparent}.vatlive>table>tr>td .vatwin .vat-error>table td{opacity:.8;color:red;text-align:center}.vatlive>table>tr>td .vatwin .vat-roi-draw{z-index:102;position:absolute;margin:0;padding:0;left:0;top:0;right:0;bottom:0;border:none}.vatlive>table>tr>td .vatwin .vat-roi-view{z-index:99;position:absolute;margin:0;padding:0;left:0;top:0;right:0;bottom:0;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.vatlive>table>tr>td .vatwin .vat-roi-menu{z-index:120;position:absolute;background-color:#f0f;border:2px solid #1c4480;cursor:pointer;padding:0}.vatlive>table>tr>td .vatwin .vat-roi-menu li{height:25px;border:1px solid rgba(12,74,110,.877);color:#cccbcb;text-align:center;background:rgba(10,54,95,.877);list-style-type:none;padding:2px 5px 2px 5px;font-size:14px;overflow:hidden;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.vatlive>table>tr>td .vatwin .vat-roi-menu li:hover{border:1px solid rgba(22,105,153,.877);background:rgba(21,101,177,.877)}.vatlive>table>tr>td .vatwin .vat-face{z-index:51;position:absolute;margin:0;padding:0;left:0;top:0;right:0;bottom:0}.vatlive>table>tr>td .vatwin .vat-exrender{z-index:52;position:absolute;margin:0;padding:0;left:0;top:0;right:0;bottom:0}.vatlive>table>tr>td .vatwin .vat-ptz-panel{margin-top:20px;margin-left:5px;height:50%;padding-left:25%;z-index:109;background-color:#10313a;position:absolute;opacity:.5}.vatlive>table>tr>td .vat-down{padding-left:32px;height:32px;display:inline-block;cursor:pointer;background:url(\"data:image/svg+xml;charset=utf-8,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M128 806.4h768V896H128v-89.6zM732.288 528l-176.5 186.138c-10.95 11.206-26.412 18.49-43.788 18.49s-32.832-7.284-43.603-18.606l-176.87-185.888c-9.23-10.022-15.111-22.97-15.111-37.324 0-30.816 26.38-55.802 58.9-55.802.454 0 .895.058 1.343.07v-.352h116.435V297.94c0-30.835 26.388-55.82 58.9-55.82 32.53 0 58.905 24.979 58.905 55.82v136.787h114.285v.448c1.165-.064 2.31-.179 3.5-.179 32.526 0 58.9 24.992 58.9 55.815.006 14.355-5.882 27.296-15.296 37.19zM416 128h192v324.8H416V128z' fill='%231bb90a'/%3E%3C/svg%3E\") no-repeat}.vatlive>table>tr>td .vat-down span{display:table-cell;vertical-align:middle;height:32px}.vatlive .check_error{width:100%;height:100%;text-align:center;vertical-align:middle;font-size:20px;color:red}.vatlive .check_error a:link,.vatlive .check_error a:visited{color:red}.vatlive .check_error a:hover{color:#f0f}.vatlive .check_error a:active{color:#00f}.vatlive-dark>table{border:1px solid #364a63;background-color:#081b2a}.vatlive-dark>table>tr>td{border:1px solid #364a63;background-color:#1b1b1b}.vatlive-dark>table>tr>td:hover{border:1px solid #4e408f}.vatlive-dark>table>tr>td.selected{border:1px solid #bd1c1c}.vatlive-dark>table>tr>td .vatwin .drag-hover{border:1px solid #137c1c}.vatlive-dark>table>tr>td .vatwin .vat-tool{border:1px solid rgba(3,88,109,.1);background:rgba(20,20,20,.5)}.vatlive-dark>table>tr>td .vatwin .vat-tool svg path{fill:#fefefe}.vatlive-dark>table>tr>td .vatwin .vat-tool svg:hover path{fill:#3387ff}.vatlive-dark>table>tr>td .vatwin .vat-title{background:#0a1522;border:1px solid #050524}.vatlive-dark>table>tr>td .vatwin .vat-title .vat-name{color:#39aea6}.vatlive-dark>table>tr>td .vatwin .vat-title .vat-speed{color:#b9bcbb}.vatlive-dark>table>tr>td .vatwin .vat-error{background:rgba(0,0,0,.4)}.vatlive-dark>table>tr>td .vatwin .vat-error>table td{color:red}.vatlive-dark>table>tr>td .vatwin .vat-roi-menu{background-color:#f0f;border:2px solid #1c4480}.vatlive-dark>table>tr>td .vatwin .vat-roi-menu li{border:1px solid rgba(12,74,110,.877);color:#cccbcb;background:rgba(10,54,95,.877)}.vatlive-dark>table>tr>td .vatwin .vat-roi-menu li:hover{border:1px solid rgba(22,105,153,.877);background:rgba(21,101,177,.877)}.vatlive-dark .check_error,.vatlive-dark .check_error a:link,.vatlive-dark .check_error a:visited{color:red}.vatlive-dark .check_error a:hover{color:#f0f}.vatlive-dark .check_error a:active{color:#00f}.vatlive-red>table{border:1px solid #220f0f;background-color:#421602}.vatlive-red>table>tr>td{border:1px solid #ac0358;background-color:#241313}.vatlive-red>table>tr>td:hover{border:1px solid #4e408f}.vatlive-red>table>tr>td.selected{border:1px solid #6003ac}.vatlive-red>table>tr>td .vatwin .drag-hover{border:1px solid #7801bd}.vatlive-red>table>tr>td .vatwin .vat-tool{border:1px solid rgba(241,111,111,.1);background:rgba(20,20,20,.5)}.vatlive-red>table>tr>td .vatwin .vat-tool svg path{fill:#fefefe}.vatlive-red>table>tr>td .vatwin .vat-tool svg:hover path{fill:#f75bd0}.vatlive-red>table>tr>td .vatwin .vat-title{background:#410808;border:1px solid #520606}.vatlive-red>table>tr>td .vatwin .vat-title .vat-name{color:#d4af09}.vatlive-red>table>tr>td .vatwin .vat-title .vat-speed{color:#b9bcbb}.vatlive-red>table>tr>td .vatwin .vat-error{background:rgba(0,0,0,.4)}.vatlive-red>table>tr>td .vatwin .vat-error>table td{color:red}.vatlive-red>table>tr>td .vatwin .vat-roi-menu{background-color:#f0f;border:2px solid #5a041e}.vatlive-red>table>tr>td .vatwin .vat-roi-menu li{border:1px solid rgba(141,15,88,.877);color:#cccbcb;background:rgba(66,4,56,.877)}.vatlive-red>table>tr>td .vatwin .vat-roi-menu li:hover{border:1px solid rgba(153,22,114,.877);background:rgba(141,16,110,.877)}.vatlive-red .check_error,.vatlive-red .check_error a:link,.vatlive-red .check_error a:visited{color:red}.vatlive-red .check_error a:hover{color:#f0f}.vatlive-red .check_error a:active{color:#00f}.vatlive-blue>table{border:1px solid #0f1322;background-color:#34495c}.vatlive-blue>table>tr>td{border:1px solid #141f38;background-color:#081b2a}.vatlive-blue>table>tr>td:hover{border:1px solid #2a1588}.vatlive-blue>table>tr>td.selected{border:1px solid #810707}.vatlive-blue>table>tr>td .vatwin .drag-hover{border:1px solid #01851e}.vatlive-blue>table>tr>td .vatwin .vat-tool{border:1px solid rgba(50,53,235,.1);background:rgba(20,20,20,.5)}.vatlive-blue>table>tr>td .vatwin .vat-tool svg path{fill:#fefefe}.vatlive-blue>table>tr>td .vatwin .vat-tool svg:hover path{fill:#6c86f8}.vatlive-blue>table>tr>td .vatwin .vat-title{background:#02134b;border:1px solid #05133a}.vatlive-blue>table>tr>td .vatwin .vat-title .vat-name{color:#a7a7a7}.vatlive-blue>table>tr>td .vatwin .vat-title .vat-speed{color:#b9bcbb}.vatlive-blue>table>tr>td .vatwin .vat-error{background:#081b2a}.vatlive-blue>table>tr>td .vatwin .vat-error>table td{color:red}.vatlive-blue>table>tr>td .vatwin .vat-roi-menu{background-color:#0f378d;border:2px solid #160479}.vatlive-blue>table>tr>td .vatwin .vat-roi-menu li{border:1px solid rgba(14,25,75,.877);color:#cccbcb;background:rgba(3,39,94,.877)}.vatlive-blue>table>tr>td .vatwin .vat-roi-menu li:hover{border:1px solid rgba(2,105,25,.877);background:rgba(39,133,30,.877)}.vatlive-blue .check_error,.vatlive-blue .check_error a:link,.vatlive-blue .check_error a:visited{color:red}.vatlive-blue .check_error a:hover{color:#f0f}.vatlive-blue .check_error a:active{color:#00f}",""])},"230e":function(t,e,n){var i=n("d3f4"),r=n("7726").document,a=i(r)&&i(r.createElement);t.exports=function(t){return a?r.createElement(t):{}}},2341:function(t,e,n){"use strict";var i=n("3f97");n.n(i).a},2350:function(t,e){function n(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var r=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(i),a=i.sources.map((function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"}));return[n].concat(a).concat([r]).join("\n")}return[n].join("\n")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=n(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r<this.length;r++){var a=this[r][0];"number"==typeof a&&(i[a]=!0)}for(r=0;r<t.length;r++){var o=t[r];"number"==typeof o[0]&&i[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),e.push(o))}},e}},2397:function(t,e,n){var i=n("5ca1"),r=n("2aeb"),a=n("d8e8"),o=n("cb7c"),s=n("d3f4"),l=n("79e5"),c=n("f0c1"),u=(n("7726").Reflect||{}).construct,h=l((function(){function t(){}return!(u((function(){}),[],t)instanceof t)})),d=!l((function(){u((function(){}))}));i(i.S+i.F*(h||d),"Reflect",{construct:function(t,e){a(t),o(e);var n=arguments.length<3?t:a(arguments[2]);if(d&&!h)return u(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var i=[null];return i.push.apply(i,e),new(c.apply(t,i))}var l=n.prototype,f=r(s(l)?l:Object.prototype),p=Function.apply.call(t,f,e);return s(p)?p:f}})},"23c6":function(t,e,n){var i=n("2d95"),r=n("2b4c")("toStringTag"),a="Arguments"==i(function(){return arguments}());t.exports=function(t){var e,n,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),r))?n:a?i(e):"Object"==(o=i(e))&&"function"==typeof e.callee?"Arguments":o}},"241c":function(t,e,n){var i=n("75c6");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("7c62c0fa",i,!0,{sourceMap:!1,shadowMode:!1})},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"27ee":function(t,e,n){var i=n("23c6"),r=n("2b4c")("iterator"),a=n("84f2");t.exports=n("8378").getIteratorMethod=function(t){if(null!=t)return t[r]||t["@@iterator"]||a[i(t)]}},"28a5":function(t,e,n){"use strict";var i=n("aae3"),r=n("cb7c"),a=n("ebd6"),o=n("0390"),s=n("9def"),l=n("5f1b"),c=n("520a"),u=n("79e5"),h=Math.min,d=[].push,f="split",p="length",g="lastIndex",m=4294967295,v=!u((function(){RegExp(m,"y")}));n("214f")("split",2,(function(t,e,n,u){var y;return y="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[p]||2!="ab"[f](/(?:ab)*/)[p]||4!="."[f](/(.?)(.?)/)[p]||"."[f](/()()/)[p]>1||""[f](/.?/)[p]?function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!i(t))return n.call(r,t,e);for(var a,o,s,l=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,f=void 0===e?m:e>>>0,v=new RegExp(t.source,u+"g");(a=c.call(v,r))&&!((o=v[g])>h&&(l.push(r.slice(h,a.index)),a[p]>1&&a.index<r[p]&&d.apply(l,a.slice(1)),s=a[0][p],h=o,l[p]>=f));)v[g]===a.index&&v[g]++;return h===r[p]?!s&&v.test("")||l.push(""):l.push(r.slice(h)),l[p]>f?l.slice(0,f):l}:"0"[f](void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,i){var r=t(this),a=null==n?void 0:n[e];return void 0!==a?a.call(n,r,i):y.call(String(r),n,i)},function(t,e){var i=u(y,t,this,e,y!==n);if(i.done)return i.value;var c=r(t),d=String(this),f=a(c,RegExp),p=c.unicode,g=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),x=new f(v?c:"^(?:"+c.source+")",g),b=void 0===e?m:e>>>0;if(0===b)return[];if(0===d.length)return null===l(x,d)?[d]:[];for(var _=0,w=0,S=[];w<d.length;){x.lastIndex=v?w:0;var A,C=l(x,v?d:d.slice(w));if(null===C||(A=h(s(x.lastIndex+(v?0:w)),d.length))===_)w=o(d,w,p);else{if(S.push(d.slice(_,w)),S.length===b)return S;for(var I=1;I<=C.length-1;I++)if(S.push(C[I]),S.length===b)return S;w=_=A}}return S.push(d.slice(_)),S}]}))},"2aba":function(t,e,n){var i=n("7726"),r=n("32e9"),a=n("69a8"),o=n("ca5a")("src"),s=n("fa5b"),l="toString",c=(""+s).split(l);n("8378").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var l="function"==typeof n;l&&(a(n,"name")||r(n,"name",e)),t[e]!==n&&(l&&(a(n,o)||r(n,o,t[e]?""+t[e]:c.join(String(e)))),t===i?t[e]=n:s?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[o]||s.call(this)}))},"2aeb":function(t,e,n){var i=n("cb7c"),r=n("1495"),a=n("e11e"),o=n("613b")("IE_PROTO"),s=function(){},l="prototype",c=function(){var t,e=n("230e")("iframe"),i=a.length;for(e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;i--;)delete c[l][a[i]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[l]=i(t),n=new s,s[l]=null,n[o]=t):n=c(),void 0===e?n:r(n,e)}},"2b4c":function(t,e,n){var i=n("5537")("wks"),r=n("ca5a"),a=n("7726").Symbol,o="function"==typeof a;(t.exports=function(t){return i[t]||(i[t]=o&&a[t]||(o?a:r)("Symbol."+t))}).store=i},"2b6a":function(t,e,n){"use strict";var i=n("09a8");n.n(i).a},"2cef":function(t,e,n){"use strict";t.exports=function(){var t=1;return{generate:function(){return t++}}}},"2d00":function(t,e){t.exports=!1},"2d64":function(t,e,n){var i=n("9ba3");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("5713d8e2",i,!0,{sourceMap:!1,shadowMode:!1})},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2ed9":function(t,e,n){"use strict";var i=n("2d64");n.n(i).a},"31f4":function(t,e){t.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},"32e9":function(t,e,n){var i=n("86cc"),r=n("4630");t.exports=n("9e1e")?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},"33a4":function(t,e,n){var i=n("84f2"),r=n("2b4c")("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[r]===t)}},"34ef":function(t,e,n){n("ec30")("Uint8",1,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},"36bd":function(t,e,n){"use strict";var i=n("4bf8"),r=n("77f1"),a=n("9def");t.exports=function(t){for(var e=i(this),n=a(e.length),o=arguments.length,s=r(o>1?arguments[1]:void 0,n),l=o>2?arguments[2]:void 0,c=void 0===l?n:r(l,n);c>s;)e[s++]=t;return e}},"36f2":function(t,e,n){var i=n("e389");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("2bae203e",i,!0,{sourceMap:!1,shadowMode:!1})},"37c8":function(t,e,n){e.f=n("2b4c")},3846:function(t,e,n){n("9e1e")&&"g"!=/./g.flags&&n("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:n("0bfb")})},"38fd":function(t,e,n){var i=n("69a8"),r=n("4bf8"),a=n("613b")("IE_PROTO"),o=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?o:null}},"3a72":function(t,e,n){var i=n("7726"),r=n("8378"),a=n("2d00"),o=n("37c8"),s=n("86cc").f;t.exports=function(t){var e=r.Symbol||(r.Symbol=a?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:o.f(t)})}},"3e39":function(t,e,n){var i=n("1d3b");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("f8f69916",i,!0,{sourceMap:!1,shadowMode:!1})},"3f97":function(t,e,n){var i=n("d886");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("34ae1cdb",i,!0,{sourceMap:!1,shadowMode:!1})},"41a0":function(t,e,n){"use strict";var i=n("2aeb"),r=n("4630"),a=n("7f20"),o={};n("32e9")(o,n("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=i(o,{next:r(1,n)}),a(t,e+" Iterator")}},"456d":function(t,e,n){var i=n("4bf8"),r=n("0d58");n("5eda")("keys",(function(){return function(t){return r(i(t))}}))},4588:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4971:function(t,e,n){"undefined"!=typeof self&&self,t.exports=function(t){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===s(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"091b":function(t,e,n){(e=n("24fb")(!1)).push([t.i,".vue-slider-dot{position:absolute;-webkit-transition:all 0s;transition:all 0s;z-index:5}.vue-slider-dot-tooltip{position:absolute;visibility:hidden}.vue-slider-dot-hover:hover .vue-slider-dot-tooltip,.vue-slider-dot-tooltip-show{visibility:visible}.vue-slider-dot-tooltip-top{top:-10px;left:50%;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.vue-slider-dot-tooltip-bottom{bottom:-10px;left:50%;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.vue-slider-dot-tooltip-left{left:-10px;top:50%;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.vue-slider-dot-tooltip-right{right:-10px;top:50%;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}",""]),t.exports=e},"24fb":function(t,e,n){"use strict";function i(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var r=function(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(n," */")}(i),a=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[n].concat(a).concat([r]).join("\n")}return[n].join("\n")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=i(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var a=0;a<this.length;a++){var o=this[a][0];null!=o&&(r[o]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);i&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},2638:function(t,e,n){"use strict";function i(){return(i=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}var r=["attrs","props","domProps"],a=["class","style","directives"],o=["on","nativeOn"],s=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=function(t){return t.reduce((function(t,e){for(var n in e)if(t[n])if(-1!==r.indexOf(n))t[n]=i({},t[n],e[n]);else if(-1!==a.indexOf(n)){var l=t[n]instanceof Array?t[n]:[t[n]],c=e[n]instanceof Array?e[n]:[e[n]];t[n]=l.concat(c)}else if(-1!==o.indexOf(n))for(var u in e[n])if(t[n][u]){var h=t[n][u]instanceof Array?t[n][u]:[t[n][u]],d=e[n][u]instanceof Array?e[n][u]:[e[n][u]];t[n][u]=h.concat(d)}else t[n][u]=e[n][u];else if("hook"==n)for(var f in e[n])t[n][f]=t[n][f]?s(t[n][f],e[n][f]):e[n][f];else t[n]=e[n];else t[n]=e[n];return t}),{})}},"499e":function(t,e,n){"use strict";function i(t,e){for(var n=[],i={},r=0;r<e.length;r++){var a=e[r],o=a[0],s={id:t+":"+r,css:a[1],media:a[2],sourceMap:a[3]};i[o]?i[o].parts.push(s):n.push(i[o]={id:o,parts:[s]})}return n}n.r(e),n.d(e,"default",(function(){return p}));var r="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!r)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},o=r&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,u=function(){},h=null,d="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(t,e,n,r){c=n,h=r||{};var o=i(t,e);return g(o),function(e){for(var n=[],r=0;r<o.length;r++){var s=o[r],l=a[s.id];l.refs--,n.push(l)}for(e?g(o=i(t,e)):o=[],r=0;r<n.length;r++)if(0===(l=n[r]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete a[l.id]}}}function g(t){for(var e=0;e<t.length;e++){var n=t[e],i=a[n.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](n.parts[r]);for(;r<n.parts.length;r++)i.parts.push(v(n.parts[r]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var o=[];for(r=0;r<n.parts.length;r++)o.push(v(n.parts[r]));a[n.id]={id:n.id,refs:1,parts:o}}}}function m(){var t=document.createElement("style");return t.type="text/css",o.appendChild(t),t}function v(t){var e,n,i=document.querySelector("style["+d+'~="'+t.id+'"]');if(i){if(c)return u;i.parentNode.removeChild(i)}if(f){var r=l++;i=s||(s=m()),e=x.bind(null,i,r,!1),n=x.bind(null,i,r,!0)}else i=m(),e=b.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}var y=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function x(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=y(e,r);else{var a=document.createTextNode(r),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(a,o[e]):t.appendChild(a)}}function b(t,e){var n=e.css,i=e.media,r=e.sourceMap;if(i&&t.setAttribute("media",i),h.ssrId&&t.setAttribute(d,e.id),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},"4abb":function(t,e,n){var i=n("7a57");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("b2af7572",i,!0,{sourceMap:!1,shadowMode:!1})},"4ed8":function(t,e,n){var i=n("091b");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("2f6bee1a",i,!0,{sourceMap:!1,shadowMode:!1})},"556c":function(t,e,n){var i=n("eef2");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("1209fd47",i,!0,{sourceMap:!1,shadowMode:!1})},"65d9":function(t,e,n){"use strict";
|
||
/**
|
||
* vue-class-component v7.0.1
|
||
* (c) 2015-present Evan You
|
||
* @license MIT
|
||
*/Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){return t&&"object"===s(t)&&"default"in t?t.default:t}(n("8bbf")),r="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function a(t,e){o(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(n){o(t.prototype,e.prototype,n)})),Object.getOwnPropertyNames(e).forEach((function(n){o(t,e,n)}))}function o(t,e,n){(n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e)).forEach((function(i){var r=n?Reflect.getOwnMetadata(i,e,n):Reflect.getOwnMetadata(i,e);n?Reflect.defineMetadata(i,r,t,n):Reflect.defineMetadata(i,r,t)}))}var l={__proto__:[]}instanceof Array,c=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function u(t,e){void 0===e&&(e={}),e.name=e.name||t._componentTag||t.name;var n=t.prototype;Object.getOwnPropertyNames(n).forEach((function(t){if("constructor"!==t)if(c.indexOf(t)>-1)e[t]=n[t];else{var i=Object.getOwnPropertyDescriptor(n,t);void 0!==i.value?"function"==typeof i.value?(e.methods||(e.methods={}))[t]=i.value:(e.mixins||(e.mixins=[])).push({data:function(){var e;return(e={})[t]=i.value,e}}):(i.get||i.set)&&((e.computed||(e.computed={}))[t]={get:i.get,set:i.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return function(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var i in t.$options.props)t.hasOwnProperty(i)||n.push(i);n.forEach((function(n){"_"!==n.charAt(0)&&Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})}))};var i=new e;e.prototype._init=n;var r={};return Object.keys(i).forEach((function(t){void 0!==i[t]&&(r[t]=i[t])})),r}(this,t)}});var o=t.__decorators__;o&&(o.forEach((function(t){return t(e)})),delete t.__decorators__);var s=Object.getPrototypeOf(t.prototype),l=s instanceof i?s.constructor:i,u=l.extend(e);return h(u,t,l),r&&a(u,t),u}function h(t,e,n){Object.getOwnPropertyNames(e).forEach((function(i){if("prototype"!==i){var r=Object.getOwnPropertyDescriptor(t,i);if(!r||r.configurable){var a=Object.getOwnPropertyDescriptor(e,i);if(!l){if("cid"===i)return;var o=Object.getOwnPropertyDescriptor(n,i);if(!function(t){var e=s(t);return null==t||"object"!==e&&"function"!==e}(a.value)&&o&&o.value===a.value)return}Object.defineProperty(t,i,a)}}}))}function d(t){return"function"==typeof t?u(t):function(e){return u(e,t)}}d.registerHooks=function(t){c.push.apply(c,t)},e.default=d,e.createDecorator=function(t){return function(e,n,i){var r="function"==typeof e?e:e.constructor;r.__decorators__||(r.__decorators__=[]),"number"!=typeof i&&(i=void 0),r.__decorators__.push((function(e){return t(e,n,i)}))}},e.mixins=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i.extend({mixins:t})}},"7a57":function(t,e,n){(e=n("24fb")(!1)).push([t.i,".vue-slider{position:relative;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.vue-slider-rail{position:relative;width:100%;height:100%;-webkit-transition-property:width,height,left,right,top,bottom;transition-property:width,height,left,right,top,bottom}.vue-slider-process{position:absolute;z-index:1}",""]),t.exports=e},8875:function(t,e,n){var i,r,a;"undefined"!=typeof self&&self,r=[],void 0===(a="function"==typeof(i=function(){return function(){if(document.currentScript)return document.currentScript;try{throw new Error}catch(c){var t,e,n,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(c.stack)||/@([^@]*):(\d+):(\d+)\s*$/gi.exec(c.stack),r=i&&i[1]||!1,a=i&&i[2]||!1,o=document.location.href.replace(document.location.hash,""),s=document.getElementsByTagName("script");r===o&&(t=document.documentElement.outerHTML,e=new RegExp("(?:[^\\n]+?\\n){0,"+(a-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=t.replace(e,"$1").trim());for(var l=0;l<s.length;l++){if("interactive"===s[l].readyState)return s[l];if(s[l].src===r)return s[l];if(r===o&&s[l].innerHTML&&s[l].innerHTML.trim()===n)return s[l]}return null}}})?i.apply(e,r):i)||(t.exports=a)},"8bbf":function(e,n){e.exports=t},eef2:function(t,e,n){(e=n("24fb")(!1)).push([t.i,".vue-slider-marks{position:relative;width:100%;height:100%}.vue-slider-mark{position:absolute;z-index:1}.vue-slider-ltr .vue-slider-mark,.vue-slider-rtl .vue-slider-mark{width:0;height:100%;top:50%}.vue-slider-ltr .vue-slider-mark-step,.vue-slider-rtl .vue-slider-mark-step{top:0}.vue-slider-ltr .vue-slider-mark-label,.vue-slider-rtl .vue-slider-mark-label{top:100%;margin-top:10px}.vue-slider-ltr .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ltr .vue-slider-mark-step{left:0}.vue-slider-ltr .vue-slider-mark-label{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.vue-slider-rtl .vue-slider-mark{-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%)}.vue-slider-rtl .vue-slider-mark-step{right:0}.vue-slider-rtl .vue-slider-mark-label{right:50%;-webkit-transform:translateX(50%);transform:translateX(50%)}.vue-slider-btt .vue-slider-mark,.vue-slider-ttb .vue-slider-mark{width:100%;height:0;left:50%}.vue-slider-btt .vue-slider-mark-step,.vue-slider-ttb .vue-slider-mark-step{left:0}.vue-slider-btt .vue-slider-mark-label,.vue-slider-ttb .vue-slider-mark-label{left:100%;margin-left:10px}.vue-slider-btt .vue-slider-mark{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.vue-slider-btt .vue-slider-mark-step{top:0}.vue-slider-btt .vue-slider-mark-label{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.vue-slider-ttb .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ttb .vue-slider-mark-step{bottom:0}.vue-slider-ttb .vue-slider-mark-label{bottom:50%;-webkit-transform:translateY(50%);transform:translateY(50%)}.vue-slider-mark-label,.vue-slider-mark-step{position:absolute}",""]),t.exports=e},fb15:function(t,e,n){"use strict";if(n.r(e),n.d(e,"ERROR_TYPE",(function(){return z})),n.d(e,"VueSliderMark",(function(){return P})),n.d(e,"VueSliderDot",(function(){return A})),"undefined"!=typeof window){var i=window.document.currentScript,r=n("8875");i=r(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:r});var a=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(n.p=a[1])}var o=n("2638"),l=n.n(o);function c(t,e,n,i){var r,a=arguments.length,o=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===("undefined"==typeof Reflect?"undefined":s(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(o=(a<3?r(o):a>3?r(e,n,o):r(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}var u=n("8bbf"),h=n.n(u),d=n("65d9"),f=n.n(d);function p(t,e){return void 0===e&&(e={}),Object(d.createDecorator)((function(n,i){(n.props||(n.props={}))[i]=e,n.model={prop:i,event:t||i}}))}function g(t){return void 0===t&&(t={}),Object(d.createDecorator)((function(e,n){(e.props||(e.props={}))[n]=t}))}function m(t,e){void 0===e&&(e={});var n=e.deep,i=void 0!==n&&n,r=e.immediate,a=void 0!==r&&r;return Object(d.createDecorator)((function(e,n){"object"!==s(e.watch)&&(e.watch=Object.create(null));var r=e.watch;"object"!==s(r[t])||Array.isArray(r[t])?void 0===r[t]&&(r[t]=[]):r[t]=[r[t]],r[t].push({handler:n,deep:i,immediate:a})}))}function v(t){return(v="function"==typeof Symbol&&"symbol"===s(Symbol.iterator)?function(t){return s(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":s(t)})(t)}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function x(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=S(t);if(e){var r=S(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return w(this,n)}}function w(t,e){return!e||"object"!==v(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n("4ed8");var A=function(){var t=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}(n,t);var e=_(n);function n(){return y(this,n),e.apply(this,arguments)}return function(t,e,n){e&&x(t.prototype,e),n&&x(t,n)}(n,[{key:"dragStart",value:function(t){if(this.disabled)return!1;this.$emit("drag-start")}},{key:"render",value:function(){var t=arguments[0];return t("div",{ref:"dot",class:this.dotClasses,on:{mousedown:this.dragStart,touchstart:this.dragStart}},[this.$slots.dot||t("div",{class:this.handleClasses,style:this.dotStyle}),"none"!==this.tooltip?t("div",{class:this.tooltipClasses},[this.$slots.tooltip||t("div",{class:this.tooltipInnerClasses,style:this.tooltipStyle},[t("span",{class:"vue-slider-dot-tooltip-text"},[this.tooltipValue])])]):null])}},{key:"dotClasses",get:function(){return["vue-slider-dot",{"vue-slider-dot-hover":"hover"===this.tooltip||"active"===this.tooltip,"vue-slider-dot-disabled":this.disabled,"vue-slider-dot-focus":this.focus}]}},{key:"handleClasses",get:function(){return["vue-slider-dot-handle",{"vue-slider-dot-handle-disabled":this.disabled,"vue-slider-dot-handle-focus":this.focus}]}},{key:"tooltipClasses",get:function(){return["vue-slider-dot-tooltip",["vue-slider-dot-tooltip-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-show":this.showTooltip}]}},{key:"tooltipInnerClasses",get:function(){return["vue-slider-dot-tooltip-inner",["vue-slider-dot-tooltip-inner-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-inner-disabled":this.disabled,"vue-slider-dot-tooltip-inner-focus":this.focus}]}},{key:"showTooltip",get:function(){switch(this.tooltip){case"always":return!0;case"none":return!1;case"focus":case"active":return!!this.focus;default:return!1}}},{key:"tooltipValue",get:function(){return this.tooltipFormatter?"string"==typeof this.tooltipFormatter?this.tooltipFormatter.replace(/\{value\}/,String(this.value)):this.tooltipFormatter(this.value):this.value}}]),n}(h.a);return c([g({default:0})],t.prototype,"value",void 0),c([g()],t.prototype,"tooltip",void 0),c([g()],t.prototype,"dotStyle",void 0),c([g()],t.prototype,"tooltipStyle",void 0),c([g({type:String,validator:function(t){return["top","right","bottom","left"].indexOf(t)>-1},required:!0})],t.prototype,"tooltipPlacement",void 0),c([g({type:[String,Function]})],t.prototype,"tooltipFormatter",void 0),c([g({type:Boolean,default:!1})],t.prototype,"focus",void 0),c([g({default:!1})],t.prototype,"disabled",void 0),c([f.a],t)}();function C(t){return(C="function"==typeof Symbol&&"symbol"===s(Symbol.iterator)?function(t){return s(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":s(t)})(t)}function I(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function T(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function k(t,e){return(k=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function M(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=E(t);if(e){var r=E(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return D(this,n)}}function D(t,e){return!e||"object"!==C(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function E(t){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n("556c");var L,P=function(){var t=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&k(t,e)}(n,t);var e=M(n);function n(){return I(this,n),e.apply(this,arguments)}return function(t,e,n){e&&T(t.prototype,e),n&&T(t,n)}(n,[{key:"labelClickHandle",value:function(t){t.stopPropagation(),this.$emit("pressLabel",this.mark.pos)}},{key:"render",value:function(){var t=arguments[0],e=this.mark;return t("div",{class:this.marksClasses},[this.$slots.step||t("div",{class:this.stepClasses,style:[this.stepStyle,e.style,e.active?this.stepActiveStyle:null,e.active?e.activeStyle:null]}),this.hideLabel?null:this.$slots.label||t("div",{class:this.labelClasses,style:[this.labelStyle,e.labelStyle,e.active?this.labelActiveStyle:null,e.active?e.labelActiveStyle:null],on:{click:this.labelClickHandle}},[e.label])])}},{key:"marksClasses",get:function(){return["vue-slider-mark",{"vue-slider-mark-active":this.mark.active}]}},{key:"stepClasses",get:function(){return["vue-slider-mark-step",{"vue-slider-mark-step-active":this.mark.active}]}},{key:"labelClasses",get:function(){return["vue-slider-mark-label",{"vue-slider-mark-label-active":this.mark.active}]}}]),n}(h.a);return c([g({required:!0})],t.prototype,"mark",void 0),c([g(Boolean)],t.prototype,"hideLabel",void 0),c([g()],t.prototype,"stepStyle",void 0),c([g()],t.prototype,"stepActiveStyle",void 0),c([g()],t.prototype,"labelStyle",void 0),c([g()],t.prototype,"labelActiveStyle",void 0),c([f.a],t)}(),O=function(t){return"number"==typeof t?"".concat(t,"px"):t},R=function(t,e,n){var i="targetTouches"in t?t.targetTouches[0]:t,r=function(t){var e=document.documentElement,n=document.body,i=t.getBoundingClientRect();return{y:i.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||n.clientTop||0),x:i.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||n.clientLeft||0)}}(e),a={x:i.pageX-r.x,y:i.pageY-r.y};return{x:n?e.offsetWidth-a.x:a.x,y:n?e.offsetHeight-a.y:a.y}};function N(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}!function(t){t[t.PAGE_UP=33]="PAGE_UP",t[t.PAGE_DOWN=34]="PAGE_DOWN",t[t.END=35]="END",t[t.HOME=36]="HOME",t[t.LEFT=37]="LEFT",t[t.UP=38]="UP",t[t.RIGHT=39]="RIGHT",t[t.DOWN=40]="DOWN"}(L||(L={}));var B,z,F=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.num=e}return function(t,e,n){e&&N(t.prototype,e),n&&N(t,n)}(t,[{key:"decimal",value:function(t,e){var n=this.num,i=this.getDecimalLen(n),r=this.getDecimalLen(t),a=0;switch(e){case"+":a=this.getExponent(i,r),this.num=(this.safeRoundUp(n,a)+this.safeRoundUp(t,a))/a;break;case"-":a=this.getExponent(i,r),this.num=(this.safeRoundUp(n,a)-this.safeRoundUp(t,a))/a;break;case"*":this.num=this.safeRoundUp(this.safeRoundUp(n,this.getExponent(i)),this.safeRoundUp(t,this.getExponent(r)))/this.getExponent(i+r);break;case"/":a=this.getExponent(i,r),this.num=this.safeRoundUp(n,a)/this.safeRoundUp(t,a);break;case"%":a=this.getExponent(i,r),this.num=this.safeRoundUp(n,a)%this.safeRoundUp(t,a)/a}return this}},{key:"plus",value:function(t){return this.decimal(t,"+")}},{key:"minus",value:function(t){return this.decimal(t,"-")}},{key:"multiply",value:function(t){return this.decimal(t,"*")}},{key:"divide",value:function(t){return this.decimal(t,"/")}},{key:"remainder",value:function(t){return this.decimal(t,"%")}},{key:"toNumber",value:function(){return this.num}},{key:"getDecimalLen",value:function(t){var e="".concat(t).split("e");return("".concat(e[0]).split(".")[1]||"").length-(e[1]?+e[1]:0)}},{key:"getExponent",value:function(t,e){return Math.pow(10,void 0!==e?Math.max(t,e):t)}},{key:"safeRoundUp",value:function(t,e){return Math.round(t*e)}}]),t}();function V(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function W(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!e||n.length!==e);i=!0);}catch(t){r=!0,a=t}finally{try{i||null==s.return||s.return()}finally{if(r)throw a}}return n}}(t,e)||H(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(t){return function(t){if(Array.isArray(t))return G(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||H(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(t,e){if(t){if("string"==typeof t)return G(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(t,e):void 0}}function G(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function j(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}!function(t){t[t.VALUE=1]="VALUE",t[t.INTERVAL=2]="INTERVAL",t[t.MIN=3]="MIN",t[t.MAX=4]="MAX",t[t.ORDER=5]="ORDER"}(z||(z={}));var q=(Y(B={},z.VALUE,'The type of the "value" is illegal'),Y(B,z.INTERVAL,'The prop "interval" is invalid, "(max - min)" must be divisible by "interval"'),Y(B,z.MIN,'The "value" must be greater than or equal to the "min".'),Y(B,z.MAX,'The "value" must be less than or equal to the "max".'),Y(B,z.ORDER,'When "order" is false, the parameters "minRange", "maxRange", "fixed", "enabled" are invalid.'),B),K=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.dotsPos=[],this.dotsValue=[],this.cacheRangeDir={},this.data=e.data,this.max=e.max,this.min=e.min,this.interval=e.interval,this.order=e.order,this.marks=e.marks,this.included=e.included,this.process=e.process,this.adsorb=e.adsorb,this.dotOptions=e.dotOptions,this.onError=e.onError,this.order?(this.minRange=e.minRange||0,this.maxRange=e.maxRange||0,this.enableCross=e.enableCross,this.fixed=e.fixed):((e.minRange||e.maxRange||!e.enableCross||e.fixed)&&this.emitError(z.ORDER),this.minRange=0,this.maxRange=0,this.enableCross=!0,this.fixed=!1),this.setValue(e.value)}return function(t,e,n){e&&j(t.prototype,e),n&&j(t,n)}(t,[{key:"setValue",value:function(t){this.setDotsValue(Array.isArray(t)?U(t):[t],!0)}},{key:"setDotsValue",value:function(t,e){this.dotsValue=t,e&&this.syncDotsPos()}},{key:"setDotsPos",value:function(t){var e=this,n=this.order?U(t).sort((function(t,e){return t-e})):t;this.dotsPos=n,this.setDotsValue(n.map((function(t){return e.getValueByPos(t)})),this.adsorb)}},{key:"getValueByPos",value:function(t){var e=this.parsePos(t);if(this.included){var n=100;this.markList.forEach((function(i){var r=Math.abs(i.pos-t);r<n&&(n=r,e=i.value)}))}return e}},{key:"syncDotsPos",value:function(){var t=this;this.dotsPos=this.dotsValue.map((function(e){return t.parseValue(e)}))}},{key:"getRecentDot",value:function(t){var e=this.dotsPos.map((function(e){return Math.abs(e-t)}));return e.indexOf(Math.min.apply(Math,U(e)))}},{key:"getIndexByValue",value:function(t){return this.data?this.data.indexOf(t):new F(+t).minus(this.min).divide(this.interval).toNumber()}},{key:"getValueByIndex",value:function(t){return t<0?t=0:t>this.total&&(t=this.total),this.data?this.data[t]:new F(t).multiply(this.interval).plus(this.min).toNumber()}},{key:"setDotPos",value:function(t,e){var n=(t=this.getValidPos(t,e).pos)-this.dotsPos[e];if(n){var i=new Array(this.dotsPos.length);this.fixed?i=this.getFixedChangePosArr(n,e):this.minRange||this.maxRange?i=this.getLimitRangeChangePosArr(t,n,e):i[e]=n,this.setDotsPos(this.dotsPos.map((function(t,e){return t+(i[e]||0)})))}}},{key:"getFixedChangePosArr",value:function(t,e){var n=this;return this.dotsPos.forEach((function(i,r){if(r!==e){var a=n.getValidPos(i+t,r),o=a.pos;a.inRange||(t=Math.min(Math.abs(o-i),Math.abs(t))*(t<0?-1:1))}})),this.dotsPos.map((function(e){return t}))}},{key:"getLimitRangeChangePosArr",value:function(t,e,n){var i=this,r=[{index:n,changePos:e}],a=e;return[this.minRange,this.maxRange].forEach((function(o,s){if(!o)return!1;for(var l,c=0===s,u=e>0,h=function(t,e){var n=Math.abs(t-e);return c?n<i.minRangeDir:n>i.maxRangeDir},d=n+(l=c?u?1:-1:u?-1:1),f=i.dotsPos[d],p=t;i.isPos(f)&&h(f,p);){var g=i.getValidPos(f+a,d).pos;r.push({index:d,changePos:g-f}),d+=l,p=g,f=i.dotsPos[d]}})),this.dotsPos.map((function(t,e){var n=r.filter((function(t){return t.index===e}));return n.length?n[0].changePos:0}))}},{key:"isPos",value:function(t){return"number"==typeof t}},{key:"getValidPos",value:function(t,e){var n=this.valuePosRange[e],i=!0;return t<n[0]?(t=n[0],i=!1):t>n[1]&&(t=n[1],i=!1),{pos:t,inRange:i}}},{key:"parseValue",value:function(t){if(this.data)t=this.data.indexOf(t);else if("number"==typeof t||"string"==typeof t){if((t=+t)<this.min)return this.emitError(z.MIN),0;if(t>this.max)return this.emitError(z.MAX),0;if("number"!=typeof t||t!=t)return this.emitError(z.VALUE),0;t=new F(t).minus(this.min).divide(this.interval).toNumber()}var e=new F(t).multiply(this.gap).toNumber();return e<0?0:e>100?100:e}},{key:"parsePos",value:function(t){var e=Math.round(t/this.gap);return this.getValueByIndex(e)}},{key:"isActiveByPos",value:function(t){return this.processArray.some((function(e){var n=W(e,2),i=n[0],r=n[1];return t>=i&&t<=r}))}},{key:"getValues",value:function(){if(this.data)return this.data;for(var t=[],e=0;e<=this.total;e++)t.push(new F(e).multiply(this.interval).plus(this.min).toNumber());return t}},{key:"getRangeDir",value:function(t){return t?new F(t).divide(new F(this.data?this.data.length-1:this.max).minus(this.data?0:this.min).toNumber()).multiply(100).toNumber():100}},{key:"emitError",value:function(t){this.onError&&this.onError(t,q[t])}},{key:"getDotRange",value:function(t,e,n){if(!this.dotOptions)return n;var i=Array.isArray(this.dotOptions)?this.dotOptions[t]:this.dotOptions;return i&&void 0!==i[e]?this.parseValue(i[e]):n}},{key:"markList",get:function(){var t=this;if(!this.marks)return[];var e=function(e,n){var i=t.parseValue(e);return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?V(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({pos:i,value:e,label:e,active:t.isActiveByPos(i)},n)};return!0===this.marks?this.getValues().map((function(t){return e(t)})):"[object Object]"===Object.prototype.toString.call(this.marks)?Object.keys(this.marks).sort((function(t,e){return+t-+e})).map((function(n){var i=t.marks[n];return e(n,"string"!=typeof i?i:{label:i})})):Array.isArray(this.marks)?this.marks.map((function(t){return e(t)})):"function"==typeof this.marks?this.getValues().map((function(e){return{value:e,result:t.marks(e)}})).filter((function(t){return!!t.result})).map((function(t){var n=t.value,i=t.result;return e(n,i)})):[]}},{key:"processArray",get:function(){if(this.process){if("function"==typeof this.process)return this.process(this.dotsPos);if(1===this.dotsPos.length)return[[0,this.dotsPos[0]]];if(this.dotsPos.length>1)return[[Math.min.apply(Math,U(this.dotsPos)),Math.max.apply(Math,U(this.dotsPos))]]}return[]}},{key:"total",get:function(){var t;return(t=this.data?this.data.length-1:new F(this.max).minus(this.min).divide(this.interval).toNumber())-Math.floor(t)!=0?(this.emitError(z.INTERVAL),0):t}},{key:"gap",get:function(){return 100/this.total}},{key:"minRangeDir",get:function(){return this.cacheRangeDir[this.minRange]?this.cacheRangeDir[this.minRange]:this.cacheRangeDir[this.minRange]=this.getRangeDir(this.minRange)}},{key:"maxRangeDir",get:function(){return this.cacheRangeDir[this.maxRange]?this.cacheRangeDir[this.maxRange]:this.cacheRangeDir[this.maxRange]=this.getRangeDir(this.maxRange)}},{key:"valuePosRange",get:function(){var t=this,e=this.dotsPos,n=[];return e.forEach((function(i,r){n.push([Math.max(t.minRange?t.minRangeDir*r:0,t.enableCross?0:e[r-1]||0,t.getDotRange(r,"min",0)),Math.min(t.minRange?100-t.minRangeDir*(e.length-1-r):100,t.enableCross?100:e[r+1]||100,t.getDotRange(r,"max",100))])})),n}},{key:"dotsIndex",get:function(){var t=this;return this.dotsValue.map((function(e){return t.getIndexByValue(e)}))}}]),t}();function X(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var Z=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.states=0,this.map=e}return function(t,e,n){e&&X(t.prototype,e),n&&X(t,n)}(t,[{key:"add",value:function(t){this.states|=t}},{key:"delete",value:function(t){this.states&=~t}},{key:"toggle",value:function(t){this.has(t)?this.delete(t):this.add(t)}},{key:"has",value:function(t){return!!(this.states&t)}}]),t}();function Q(t){return(Q="function"==typeof Symbol&&"symbol"===s(Symbol.iterator)?function(t){return s(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":s(t)})(t)}function J(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function $(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?J(Object(n),!0).forEach((function(e){et(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function tt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!e||n.length!==e);i=!0);}catch(t){r=!0,a=t}finally{try{i||null==s.return||s.return()}finally{if(r)throw a}}return n}}(t,e)||it(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function et(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nt(t){return function(t){if(Array.isArray(t))return rt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||it(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function it(t,e){if(t){if("string"==typeof t)return rt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rt(t,e):void 0}}function rt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function at(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ot(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function st(t,e){return(st=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function lt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=ut(t);if(e){var r=ut(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return ct(this,n)}}function ct(t,e){return!e||"object"!==Q(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ut(t){return(ut=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n("4abb");var ht={None:0,Drag:2,Focus:4},dt=function(){var t=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&st(t,e)}(n,t);var e=lt(n);function n(){var t;return at(this,n),(t=e.apply(this,arguments)).states=new Z(ht),t.scale=1,t.focusDotIndex=0,t}return function(t,e,n){e&&ot(t.prototype,e),n&&ot(t,n)}(n,[{key:"onValueChanged",value:function(){this.control&&!this.states.has(ht.Drag)&&this.isNotSync&&this.control.setValue(this.value)}},{key:"created",value:function(){this.initControl()}},{key:"mounted",value:function(){this.bindEvent()}},{key:"beforeDestroy",value:function(){this.unbindEvent()}},{key:"bindEvent",value:function(){document.addEventListener("touchmove",this.dragMove,{passive:!1}),document.addEventListener("touchend",this.dragEnd,{passive:!1}),document.addEventListener("mousedown",this.blurHandle),document.addEventListener("mousemove",this.dragMove),document.addEventListener("mouseup",this.dragEnd),document.addEventListener("mouseleave",this.dragEnd),document.addEventListener("keydown",this.keydownHandle)}},{key:"unbindEvent",value:function(){document.removeEventListener("touchmove",this.dragMove),document.removeEventListener("touchend",this.dragEnd),document.removeEventListener("mousedown",this.blurHandle),document.removeEventListener("mousemove",this.dragMove),document.removeEventListener("mouseup",this.dragEnd),document.removeEventListener("mouseleave",this.dragEnd),document.removeEventListener("keydown",this.keydownHandle)}},{key:"setScale",value:function(){this.scale=new F(Math.floor(this.isHorizontal?this.$el.offsetWidth:this.$el.offsetHeight)).divide(100).toNumber()}},{key:"initControl",value:function(){var t=this;this.control=new K({value:this.value,data:this.data,enableCross:this.enableCross,fixed:this.fixed,max:this.max,min:this.min,interval:this.interval,minRange:this.minRange,maxRange:this.maxRange,order:this.order,marks:this.marks,included:this.included,process:this.process,adsorb:this.adsorb,dotOptions:this.dotOptions,onError:this.emitError}),["data","enableCross","fixed","max","min","interval","minRange","maxRange","order","marks","process","adsorb","included","dotOptions"].forEach((function(e){t.$watch(e,(function(n){if("data"===e&&Array.isArray(t.control.data)&&Array.isArray(n)&&t.control.data.length===n.length&&n.every((function(e,n){return e===t.control.data[n]})))return!1;t.control[e]=n,["data","max","min","interval"].indexOf(e)>-1&&t.control.syncDotsPos()}))}))}},{key:"syncValueByPos",value:function(){var t=this.control.dotsValue;this.isDiff(t,Array.isArray(this.value)?this.value:[this.value])&&this.$emit("change",1===t.length?t[0]:nt(t),this.focusDotIndex)}},{key:"isDiff",value:function(t,e){return t.length!==e.length||t.some((function(t,n){return t!==e[n]}))}},{key:"emitError",value:function(t,e){this.silent||console.error("[VueSlider error]: ".concat(e)),this.$emit("error",t,e)}},{key:"dragStartOnProcess",value:function(t){if(this.dragOnClick){this.setScale();var e=this.getPosByEvent(t),n=this.control.getRecentDot(e);if(this.dots[n].disabled)return;this.dragStart(n),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos()}}},{key:"dragStart",value:function(t){this.focusDotIndex=t,this.setScale(),this.states.add(ht.Drag),this.states.add(ht.Focus),this.$emit("drag-start",this.focusDotIndex)}},{key:"dragMove",value:function(t){if(!this.states.has(ht.Drag))return!1;t.preventDefault();var e=this.getPosByEvent(t);this.isCrossDot(e),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos();var n=this.control.dotsValue;this.$emit("dragging",1===n.length?n[0]:nt(n),this.focusDotIndex)}},{key:"isCrossDot",value:function(t){if(this.canSort){var e=this.focusDotIndex,n=t;n>this.dragRange[1]?(n=this.dragRange[1],this.focusDotIndex++):n<this.dragRange[0]&&(n=this.dragRange[0],this.focusDotIndex--),e!==this.focusDotIndex&&this.control.setDotPos(n,e)}}},{key:"dragEnd",value:function(){var t=this;if(!this.states.has(ht.Drag))return!1;setTimeout((function(){t.lazy&&t.syncValueByPos(),t.included&&t.isNotSync?t.control.setValue(t.value):t.control.syncDotsPos(),t.states.delete(ht.Drag),t.useKeyboard||t.states.delete(ht.Focus),t.$emit("drag-end",t.focusDotIndex)}))}},{key:"blurHandle",value:function(t){if(!this.states.has(ht.Focus)||!this.$refs.container||this.$refs.container.contains(t.target))return!1;this.states.delete(ht.Focus)}},{key:"clickHandle",value:function(t){if(!this.clickable||this.disabled)return!1;if(!this.states.has(ht.Drag)){this.setScale();var e=this.getPosByEvent(t);this.setValueByPos(e)}}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.states.add(ht.Focus),this.focusDotIndex=t}},{key:"blur",value:function(){this.states.delete(ht.Focus)}},{key:"getValue",value:function(){var t=this.control.dotsValue;return 1===t.length?t[0]:t}},{key:"getIndex",value:function(){var t=this.control.dotsIndex;return 1===t.length?t[0]:t}},{key:"setValue",value:function(t){this.control.setValue(Array.isArray(t)?nt(t):[t]),this.syncValueByPos()}},{key:"setIndex",value:function(t){var e=this,n=Array.isArray(t)?t.map((function(t){return e.control.getValueByIndex(t)})):this.control.getValueByIndex(t);this.setValue(n)}},{key:"setValueByPos",value:function(t){var e=this,n=this.control.getRecentDot(t);if(this.disabled||this.dots[n].disabled)return!1;this.focusDotIndex=n,this.control.setDotPos(t,n),this.syncValueByPos(),this.useKeyboard&&this.states.add(ht.Focus),setTimeout((function(){e.included&&e.isNotSync?e.control.setValue(e.value):e.control.syncDotsPos()}))}},{key:"keydownHandle",value:function(t){var e=this;if(!this.useKeyboard||!this.states.has(ht.Focus))return!1;var n=this.included&&this.marks,i=function(t,e){if(e.hook){var n=e.hook(t);if("function"==typeof n)return n;if(!n)return null}switch(t.keyCode){case L.UP:return function(t){return"ttb"===e.direction?t-1:t+1};case L.RIGHT:return function(t){return"rtl"===e.direction?t-1:t+1};case L.DOWN:return function(t){return"ttb"===e.direction?t+1:t-1};case L.LEFT:return function(t){return"rtl"===e.direction?t+1:t-1};case L.END:return function(){return e.max};case L.HOME:return function(){return e.min};case L.PAGE_UP:return function(t){return t+10};case L.PAGE_DOWN:return function(t){return t-10};default:return null}}(t,{direction:this.direction,max:n?this.control.markList.length-1:this.control.total,min:0,hook:this.keydownHook});if(i){t.preventDefault();var r=-1,a=0;n?(this.control.markList.some((function(t,n){return t.value===e.control.dotsValue[e.focusDotIndex]&&(r=i(n),!0)})),r<0?r=0:r>this.control.markList.length-1&&(r=this.control.markList.length-1),a=this.control.markList[r].pos):(r=i(this.control.getIndexByValue(this.control.dotsValue[this.focusDotIndex])),a=this.control.parseValue(this.control.getValueByIndex(r))),this.isCrossDot(a),this.control.setDotPos(a,this.focusDotIndex),this.syncValueByPos()}}},{key:"getPosByEvent",value:function(t){return R(t,this.$el,this.isReverse)[this.isHorizontal?"x":"y"]/this.scale}},{key:"renderSlot",value:function(t,e,n,i){var r=this.$createElement,a=this.$scopedSlots[t];return a?i?a(e):r("template",{slot:t},[a(e)]):n}},{key:"render",value:function(){var t=this,e=arguments[0];return e("div",l()([{ref:"container",class:this.containerClasses,style:this.containerStyles,on:{click:this.clickHandle,touchstart:this.dragStartOnProcess,mousedown:this.dragStartOnProcess}},this.$attrs]),[e("div",{class:"vue-slider-rail",style:this.railStyle},[this.processArray.map((function(n,i){return t.renderSlot("process",n,e("div",{class:"vue-slider-process",key:"process-".concat(i),style:n.style}),!0)})),this.marks?e("div",{class:"vue-slider-marks"},[this.control.markList.map((function(n,i){var r;return t.renderSlot("mark",n,e("vue-slider-mark",{key:"mark-".concat(i),attrs:{mark:n,hideLabel:t.hideLabel,stepStyle:t.stepStyle,stepActiveStyle:t.stepActiveStyle,labelStyle:t.labelStyle,labelActiveStyle:t.labelActiveStyle},style:(r={},et(r,t.isHorizontal?"height":"width","100%"),et(r,t.isHorizontal?"width":"height",t.tailSize),et(r,t.mainDirection,"".concat(n.pos,"%")),r),on:{pressLabel:function(e){return t.clickable&&t.setValueByPos(e)}}},[t.renderSlot("step",n,null),t.renderSlot("label",n,null)]),!0)}))]):null,this.dots.map((function(n,i){var r;return e("vue-slider-dot",{ref:"dot-".concat(i),key:"dot-".concat(i),attrs:{value:n.value,disabled:n.disabled,focus:n.focus,"dot-style":[n.style,n.disabled?n.disabledStyle:null,n.focus?n.focusStyle:null],tooltip:n.tooltip||t.tooltip,"tooltip-style":[t.tooltipStyle,n.tooltipStyle,n.disabled?n.tooltipDisabledStyle:null,n.focus?n.tooltipFocusStyle:null],"tooltip-formatter":Array.isArray(t.tooltipFormatter)?t.tooltipFormatter[i]:t.tooltipFormatter,"tooltip-placement":t.tooltipDirections[i]},style:[t.dotBaseStyle,(r={},et(r,t.mainDirection,"".concat(n.pos,"%")),et(r,"transition","".concat(t.mainDirection," ").concat(t.animateTime,"s")),r)],on:{"drag-start":function(){return t.dragStart(i)}}},[t.renderSlot("dot",n,null),t.renderSlot("tooltip",n,null)])})),this.renderSlot("default",{value:this.getValue()},null,!0)])])}},{key:"tailSize",get:function(){return O((this.isHorizontal?this.height:this.width)||4)}},{key:"containerClasses",get:function(){return["vue-slider",["vue-slider-".concat(this.direction)],{"vue-slider-disabled":this.disabled}]}},{key:"containerStyles",get:function(){var t=tt(Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],2),e=t[0],n=t[1],i=this.width?O(this.width):this.isHorizontal?"auto":O(4),r=this.height?O(this.height):this.isHorizontal?O(4):"auto";return{padding:this.contained?"".concat(n/2,"px ").concat(e/2,"px"):this.isHorizontal?"".concat(n/2,"px 0"):"0 ".concat(e/2,"px"),width:i,height:r}}},{key:"processArray",get:function(){var t=this;return this.control.processArray.map((function(e,n){var i,r=tt(e,3),a=r[0],o=r[1],s=r[2];if(a>o){var l=[o,a];a=l[0],o=l[1]}var c=t.isHorizontal?"width":"height";return{start:a,end:o,index:n,style:$($((i={},et(i,t.isHorizontal?"height":"width","100%"),et(i,t.isHorizontal?"top":"left",0),et(i,t.mainDirection,"".concat(a,"%")),et(i,c,"".concat(o-a,"%")),et(i,"transitionProperty","".concat(c,",").concat(t.mainDirection)),et(i,"transitionDuration","".concat(t.animateTime,"s")),i),t.processStyle),s)}}))}},{key:"dotBaseStyle",get:function(){var t,e=tt(Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],2),n=e[0],i=e[1];return t=this.isHorizontal?et({transform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),WebkitTransform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),top:"50%"},"ltr"===this.direction?"left":"right","0"):et({transform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),WebkitTransform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),left:"50%"},"btt"===this.direction?"bottom":"top","0"),$({width:"".concat(n,"px"),height:"".concat(i,"px")},t)}},{key:"mainDirection",get:function(){switch(this.direction){case"ltr":return"left";case"rtl":return"right";case"btt":return"bottom";case"ttb":return"top"}}},{key:"isHorizontal",get:function(){return"ltr"===this.direction||"rtl"===this.direction}},{key:"isReverse",get:function(){return"rtl"===this.direction||"btt"===this.direction}},{key:"tooltipDirections",get:function(){var t=this.tooltipPlacement||(this.isHorizontal?"top":"left");return Array.isArray(t)?t:this.dots.map((function(){return t}))}},{key:"dots",get:function(){var t=this;return this.control.dotsPos.map((function(e,n){return $({pos:e,index:n,value:t.control.dotsValue[n],focus:t.states.has(ht.Focus)&&t.focusDotIndex===n,disabled:t.disabled,style:t.dotStyle},(Array.isArray(t.dotOptions)?t.dotOptions[n]:t.dotOptions)||{})}))}},{key:"animateTime",get:function(){return this.states.has(ht.Drag)?0:this.duration}},{key:"canSort",get:function(){return this.order&&!this.minRange&&!this.maxRange&&!this.fixed&&this.enableCross}},{key:"isNotSync",get:function(){var t=this.control.dotsValue;return Array.isArray(this.value)?this.value.length!==t.length||this.value.some((function(e,n){return e!==t[n]})):this.value!==t[0]}},{key:"dragRange",get:function(){var t=this.dots[this.focusDotIndex-1],e=this.dots[this.focusDotIndex+1];return[t?t.pos:-1/0,e?e.pos:1/0]}}]),n}(h.a);return c([p("change",{default:0})],t.prototype,"value",void 0),c([g({type:Boolean,default:!1})],t.prototype,"silent",void 0),c([g({default:"ltr",validator:function(t){return["ltr","rtl","ttb","btt"].indexOf(t)>-1}})],t.prototype,"direction",void 0),c([g({type:[Number,String]})],t.prototype,"width",void 0),c([g({type:[Number,String]})],t.prototype,"height",void 0),c([g({default:14})],t.prototype,"dotSize",void 0),c([g({default:!1})],t.prototype,"contained",void 0),c([g({type:Number,default:0})],t.prototype,"min",void 0),c([g({type:Number,default:100})],t.prototype,"max",void 0),c([g({type:Number,default:1})],t.prototype,"interval",void 0),c([g({type:Boolean,default:!1})],t.prototype,"disabled",void 0),c([g({type:Boolean,default:!0})],t.prototype,"clickable",void 0),c([g({type:Boolean,default:!1})],t.prototype,"dragOnClick",void 0),c([g({type:Number,default:.5})],t.prototype,"duration",void 0),c([g(Array)],t.prototype,"data",void 0),c([g({type:Boolean,default:!1})],t.prototype,"lazy",void 0),c([g({type:String,validator:function(t){return["none","always","focus","hover","active"].indexOf(t)>-1},default:"active"})],t.prototype,"tooltip",void 0),c([g({type:[String,Array],validator:function(t){return(Array.isArray(t)?t:[t]).every((function(t){return["top","right","bottom","left"].indexOf(t)>-1}))}})],t.prototype,"tooltipPlacement",void 0),c([g({type:[String,Array,Function]})],t.prototype,"tooltipFormatter",void 0),c([g({type:Boolean,default:!1})],t.prototype,"useKeyboard",void 0),c([g(Function)],t.prototype,"keydownHook",void 0),c([g({type:Boolean,default:!0})],t.prototype,"enableCross",void 0),c([g({type:Boolean,default:!1})],t.prototype,"fixed",void 0),c([g({type:Boolean,default:!0})],t.prototype,"order",void 0),c([g(Number)],t.prototype,"minRange",void 0),c([g(Number)],t.prototype,"maxRange",void 0),c([g({type:[Boolean,Object,Array,Function],default:!1})],t.prototype,"marks",void 0),c([g({type:[Boolean,Function],default:!0})],t.prototype,"process",void 0),c([g(Boolean)],t.prototype,"included",void 0),c([g(Boolean)],t.prototype,"adsorb",void 0),c([g(Boolean)],t.prototype,"hideLabel",void 0),c([g()],t.prototype,"dotOptions",void 0),c([g()],t.prototype,"railStyle",void 0),c([g()],t.prototype,"processStyle",void 0),c([g()],t.prototype,"dotStyle",void 0),c([g()],t.prototype,"tooltipStyle",void 0),c([g()],t.prototype,"stepStyle",void 0),c([g()],t.prototype,"stepActiveStyle",void 0),c([g()],t.prototype,"labelStyle",void 0),c([g()],t.prototype,"labelActiveStyle",void 0),c([m("value")],t.prototype,"onValueChanged",null),c([f()({data:function(){return{control:null}},components:{VueSliderDot:A,VueSliderMark:P}})],t)}();dt.VueSliderMark=P,dt.VueSliderDot=A;var ft=dt;e.default=ft}}).default}(n("8bbf"))},"499e":function(t,e,n){"use strict";function i(t,e){for(var n=[],i={},r=0;r<e.length;r++){var a=e[r],o=a[0],s={id:t+":"+r,css:a[1],media:a[2],sourceMap:a[3]};i[o]?i[o].parts.push(s):n.push(i[o]={id:o,parts:[s]})}return n}n.r(e),n.d(e,"default",(function(){return p}));var r="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!r)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},o=r&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,u=function(){},h=null,d="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(t,e,n,r){c=n,h=r||{};var o=i(t,e);return g(o),function(e){for(var n=[],r=0;r<o.length;r++){var s=o[r],l=a[s.id];l.refs--,n.push(l)}for(e?g(o=i(t,e)):o=[],r=0;r<n.length;r++)if(0===(l=n[r]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete a[l.id]}}}function g(t){for(var e=0;e<t.length;e++){var n=t[e],i=a[n.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](n.parts[r]);for(;r<n.parts.length;r++)i.parts.push(v(n.parts[r]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var o=[];for(r=0;r<n.parts.length;r++)o.push(v(n.parts[r]));a[n.id]={id:n.id,refs:1,parts:o}}}}function m(){var t=document.createElement("style");return t.type="text/css",o.appendChild(t),t}function v(t){var e,n,i=document.querySelector("style["+d+'~="'+t.id+'"]');if(i){if(c)return u;i.parentNode.removeChild(i)}if(f){var r=l++;i=s||(s=m()),e=x.bind(null,i,r,!1),n=x.bind(null,i,r,!0)}else i=m(),e=b.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}var y=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function x(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=y(e,r);else{var a=document.createTextNode(r),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(a,o[e]):t.appendChild(a)}}function b(t,e){var n=e.css,i=e.media,r=e.sourceMap;if(i&&t.setAttribute("media",i),h.ssrId&&t.setAttribute(d,e.id),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},"49ad":function(t,e,n){"use strict";t.exports=function(t){var e={};function n(n){var i=t.get(n);return void 0===i?[]:e[i]||[]}return{get:n,add:function(n,i){var r=t.get(n);e[r]||(e[r]=[]),e[r].push(i)},removeListener:function(t,e){for(var i=n(t),r=0,a=i.length;r<a;++r)if(i[r]===e){i.splice(r,1);break}},removeAllListeners:function(t){var e=n(t);e&&(e.length=0)}}}},"4a59":function(t,e,n){var i=n("9b43"),r=n("1fa8"),a=n("33a4"),o=n("cb7c"),s=n("9def"),l=n("27ee"),c={},u={};(e=t.exports=function(t,e,n,h,d){var f,p,g,m,v=d?function(){return t}:l(t),y=i(n,h,e?2:1),x=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(a(v)){for(f=s(t.length);f>x;x++)if((m=e?y(o(p=t[x])[0],p[1]):y(t[x]))===c||m===u)return m}else for(g=v.call(t);!(p=g.next()).done;)if((m=r(g,y,p.value,e))===c||m===u)return m}).BREAK=c,e.RETURN=u},"4b0b":function(t,e,n){"use strict";var i=n("9bfc");n.n(i).a},"4bf8":function(t,e,n){var i=n("be13");t.exports=function(t){return Object(i(t))}},5058:function(t,e,n){"use strict";t.exports=function(t){var e=t.idGenerator,n=t.stateHandler.getState;return{get:function(t){var e=n(t);return e&&void 0!==e.id?e.id:null},set:function(t){var i=n(t);if(!i)throw new Error("setId required the element to have a resize detection state.");var r=e.generate();return i.id=r,r}}}},"50bf":function(t,e,n){"use strict";(t.exports={}).getOption=function(t,e,n){var i=t[e];return null!=i||void 0===n?i:n}},"520a":function(t,e,n){"use strict";var i=n("0bfb"),r=RegExp.prototype.exec,a=String.prototype.replace,o=r,s="lastIndex",l=function(){var t=/a/,e=/b*/g;return r.call(t,"a"),r.call(e,"a"),0!==t[s]||0!==e[s]}(),c=void 0!==/()??/.exec("")[1];(l||c)&&(o=function(t){var e,n,o,u,h=this;return c&&(n=new RegExp("^"+h.source+"$(?!\\s)",i.call(h))),l&&(e=h[s]),o=r.call(h,t),l&&o&&(h[s]=h.global?o.index+o[0].length:e),c&&o&&o.length>1&&a.call(o[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(o[u]=void 0)})),o}),t.exports=o},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5405:function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,'ul[data-v-3f7d81c4]{padding:0;margin:0;padding-inline:0}.calendarPanel[data-v-3f7d81c4]{width:300px;height:240px;border:3px solid #1f2332;-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column}.calendarPanel[data-v-3f7d81c4],.calendarPanel .calendar-header[data-v-3f7d81c4]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-direction:normal}.calendarPanel .calendar-header[data-v-3f7d81c4]{line-height:30px;color:#d3dfe9;background-color:#1e1b1a;-webkit-box-orient:horizontal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.calendarPanel .calendar-header .currentDate[data-v-3f7d81c4]{margin:0 10px;font-size:16px;font-family:PingFangSC-Medium,serif}.calendarPanel .calendar-header .icon[data-v-3f7d81c4]{width:12px;height:12px;margin:0 5px;cursor:pointer;font-weight:lighter;color:#b0b0b0}.calendarPanel .calendar-header .icon[data-v-3f7d81c4]:hover{color:#dedede}.calendarPanel .calendar-main[data-v-3f7d81c4]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;background-color:#161311;color:#d0dbd2}.calendarPanel .calendar-main .main-header[data-v-3f7d81c4]{display:-webkit-box;display:-ms-flexbox;display:flex;line-height:30px;color:#9ba2af}.calendarPanel .calendar-main .main-header li[data-v-3f7d81c4]{-webkit-box-flex:1;-ms-flex:1;flex:1;list-style:none}.calendarPanel .calendar-main ul.main[data-v-3f7d81c4]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-bottom:5px;font-size:14px}.calendarPanel .calendar-main ul.main li[data-v-3f7d81c4]{position:relative;width:42px;line-height:25px;cursor:pointer;list-style:none}.calendarPanel .calendar-main ul.main .disabled[data-v-3f7d81c4]{color:#7b827f;cursor:default}.calendarPanel .calendar-main ul.main .currentDay[data-v-3f7d81c4]:before{content:"";position:absolute;display:inline-block;left:8px;width:24px;height:24px;border-radius:50%;border:1px solid #ffe100}',""])},"551c":function(t,e,n){"use strict";var i,r,a,o,s=n("2d00"),l=n("7726"),c=n("9b43"),u=n("23c6"),h=n("5ca1"),d=n("d3f4"),f=n("d8e8"),p=n("f605"),g=n("4a59"),m=n("ebd6"),v=n("1991").set,y=n("8079")(),x=n("a5b8"),b=n("9c80"),_=n("a25f"),w=n("bcaa"),S="Promise",A=l.TypeError,C=l.process,I=C&&C.versions,T=I&&I.v8||"",k=l[S],M="process"==u(C),D=function(){},E=r=x.f,L=!!function(){try{var t=k.resolve(1),e=(t.constructor={})[n("2b4c")("species")]=function(t){t(D,D)};return(M||"function"==typeof PromiseRejectionEvent)&&t.then(D)instanceof e&&0!==T.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(t){}}(),P=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},O=function(t,e){if(!t._n){t._n=!0;var n=t._c;y((function(){for(var i=t._v,r=1==t._s,a=0,o=function(e){var n,a,o,s=r?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(r||(2==t._h&&B(t),t._h=1),!0===s?n=i:(u&&u.enter(),n=s(i),u&&(u.exit(),o=!0)),n===e.promise?c(A("Promise-chain cycle")):(a=P(n))?a.call(n,l,c):l(n)):c(i)}catch(t){u&&!o&&u.exit(),c(t)}};n.length>a;)o(n[a++]);t._c=[],t._n=!1,e&&!t._h&&R(t)}))}},R=function(t){v.call(l,(function(){var e,n,i,r=t._v,a=N(t);if(a&&(e=b((function(){M?C.emit("unhandledRejection",r,t):(n=l.onunhandledrejection)?n({promise:t,reason:r}):(i=l.console)&&i.error&&i.error("Unhandled promise rejection",r)})),t._h=M||N(t)?2:1),t._a=void 0,a&&e.e)throw e.v}))},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},B=function(t){v.call(l,(function(){var e;M?C.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})}))},z=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),O(e,!0))},F=function t(e){var n,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===e)throw A("Promise can't be resolved itself");(n=P(e))?y((function(){var r={_w:i,_d:!1};try{n.call(e,c(t,r,1),c(z,r,1))}catch(t){z.call(r,t)}})):(i._v=e,i._s=1,O(i,!1))}catch(t){z.call({_w:i,_d:!1},t)}}};L||(k=function(t){p(this,k,S,"_h"),f(t),i.call(this);try{t(c(F,this,1),c(z,this,1))}catch(t){z.call(this,t)}},(i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n("dcbc")(k.prototype,{then:function(t,e){var n=E(m(this,k));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=M?C.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&O(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),a=function(){var t=new i;this.promise=t,this.resolve=c(F,t,1),this.reject=c(z,t,1)},x.f=E=function(t){return t===k||t===o?new a(t):r(t)}),h(h.G+h.W+h.F*!L,{Promise:k}),n("7f20")(k,S),n("7a56")(S),o=n("8378")[S],h(h.S+h.F*!L,S,{reject:function(t){var e=E(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(s||!L),S,{resolve:function(t){return w(s&&this===o?k:this,t)}}),h(h.S+h.F*!(L&&n("5cc5")((function(t){k.all(t).catch(D)}))),S,{all:function(t){var e=this,n=E(e),i=n.resolve,r=n.reject,a=b((function(){var n=[],a=0,o=1;g(t,!1,(function(t){var s=a++,l=!1;n.push(void 0),o++,e.resolve(t).then((function(t){l||(l=!0,n[s]=t,--o||i(n))}),r)})),--o||i(n)}));return a.e&&r(a.v),n.promise},race:function(t){var e=this,n=E(e),i=n.reject,r=b((function(){g(t,!1,(function(t){e.resolve(t).then(n.resolve,i)}))}));return r.e&&i(r.v),n.promise}})},5537:function(t,e,n){var i=n("8378"),r=n("7726"),a="__core-js_shared__",o=r[a]||(r[a]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5be5":function(t,e,n){"use strict";t.exports=function(t){var e=t.stateHandler.getState;return{isDetectable:function(t){var n=e(t);return n&&!!n.isDetectable},markAsDetectable:function(t){e(t).isDetectable=!0},isBusy:function(t){return!!e(t).busy},markBusy:function(t,n){e(t).busy=!!n}}}},"5ca1":function(t,e,n){var i=n("7726"),r=n("8378"),a=n("32e9"),o=n("2aba"),s=n("9b43"),l="prototype",c=function t(e,n,c){var u,h,d,f,p=e&t.F,g=e&t.G,m=e&t.P,v=e&t.B,y=g?i:e&t.S?i[n]||(i[n]={}):(i[n]||{})[l],x=g?r:r[n]||(r[n]={}),b=x[l]||(x[l]={});for(u in g&&(c=n),c)d=((h=!p&&y&&void 0!==y[u])?y:c)[u],f=v&&h?s(d,i):m&&"function"==typeof d?s(Function.call,d):d,y&&o(y,u,d,e&t.U),x[u]!=d&&a(x,u,f),m&&b[u]!=d&&(b[u]=d)};i.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"5cc5":function(t,e,n){var i=n("2b4c")("iterator"),r=!1;try{var a=[7][i]();a.return=function(){r=!0},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var a=[7],o=a[i]();o.next=function(){return{done:n=!0}},a[i]=function(){return o},t(a)}catch(t){}return n}},"5df3":function(t,e,n){"use strict";var i=n("02f4")(!0);n("01f9")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})}))},"5eda":function(t,e,n){var i=n("5ca1"),r=n("8378"),a=n("79e5");t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],o={};o[t]=e(n),i(i.S+i.F*a((function(){n(1)})),"Object",o)}},"5f1b":function(t,e,n){"use strict";var i=n("23c6"),r=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var a=n.call(t,e);if("object"!==s(a))throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==i(t))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},"613b":function(t,e,n){var i=n("5537")("keys"),r=n("ca5a");t.exports=function(t){return i[t]||(i[t]=r(t))}},"626a":function(t,e,n){var i=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},"63d9":function(t,e,n){n("ec30")("Float32",4,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},"67ab":function(t,e,n){var i=n("ca5a")("meta"),r=n("d3f4"),a=n("69a8"),o=n("86cc").f,l=0,c=Object.isExtensible||function(){return!0},u=!n("79e5")((function(){return c(Object.preventExtensions({}))})),h=function(t){o(t,i,{value:{i:"O"+ ++l,w:{}}})},d=t.exports={KEY:i,NEED:!1,fastKey:function(t,e){if(!r(t))return"symbol"==s(t)?t:("string"==typeof t?"S":"P")+t;if(!a(t,i)){if(!c(t))return"F";if(!e)return"E";h(t)}return t[i].i},getWeak:function(t,e){if(!a(t,i)){if(!c(t))return!0;if(!e)return!1;h(t)}return t[i].w},onFreeze:function(t){return u&&d.NEED&&c(t)&&!a(t,i)&&h(t),t}}},6821:function(t,e,n){var i=n("626a"),r=n("be13");t.exports=function(t){return i(r(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var i=n("d3f4");t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},"6b54":function(t,e,n){"use strict";n("3846");var i=n("cb7c"),r=n("0bfb"),a=n("9e1e"),o="toString",s=/./[o],l=function(t){n("2aba")(RegExp.prototype,o,t,!0)};n("79e5")((function(){return"/a/b"!=s.call({source:"a",flags:"b"})}))?l((function(){var t=i(this);return"/".concat(t.source,"/","flags"in t?t.flags:!a&&t instanceof RegExp?r.call(t):void 0)})):s.name!=o&&l((function(){return s.call(this)}))},"6c7b":function(t,e,n){var i=n("5ca1");i(i.P,"Array",{fill:n("36bd")}),n("9c6c")("fill")},7514:function(t,e,n){"use strict";var i=n("5ca1"),r=n("0a49")(5),a="find",o=!0;a in[]&&Array(1)[a]((function(){o=!1})),i(i.P+i.F*o,"Array",{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(a)},"75c6":function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,"@-webkit-keyframes vatblink-data-v-b43b3934{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes vatblink-data-v-b43b3934{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.timeline[data-v-b43b3934]{display:-webkit-box;display:-ms-flexbox;display:flex;height:60px;background-color:#121212;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-ms-flex-line-pack:stretch;align-content:stretch;position:relative;overflow:hidden;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:100;-ms-flex-positive:100;flex-grow:100;border:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ruler[data-v-b43b3934]{z-index:10}.records[data-v-b43b3934],.ruler[data-v-b43b3934]{-webkit-box-flex:100;-ms-flex-positive:100;flex-grow:100;position:absolute}.records[data-v-b43b3934]{z-index:11;pointer-events:none}.time[data-v-b43b3934]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;font:12px Arial;color:#fefefe;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.time[data-v-b43b3934],.time-p[data-v-b43b3934]{position:relative;z-index:12;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;pointer-events:none}.time-p[data-v-b43b3934]{width:1px;height:45px;background-color:#e00}.scale[data-v-b43b3934]{position:absolute;left:10px;top:0;font:12px Arial;z-index:12;line-height:15px;color:#d0d0d0;pointer-events:none}",""])},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var i=n("4588"),r=Math.max,a=Math.min;t.exports=function(t,e){return(t=i(t))<0?r(t+e,0):a(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7a56":function(t,e,n){"use strict";var i=n("7726"),r=n("86cc"),a=n("9e1e"),o=n("2b4c")("species");t.exports=function(t){var e=i[t];a&&e&&!e[o]&&r.f(e,o,{configurable:!0,get:function(){return this}})}},"7bbc":function(t,e,n){var i=n("6821"),r=n("9093").f,a={}.toString,o="object"==("undefined"==typeof window?"undefined":s(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return o&&"[object Window]"==a.call(t)?function(t){try{return r(t)}catch(t){return o.slice()}}(t):r(i(t))}},"7da8":function(t,e,n){var i=n("852f");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("043b7139",i,!0,{sourceMap:!1,shadowMode:!1})},"7f20":function(t,e,n){var i=n("86cc").f,r=n("69a8"),a=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,a)&&i(t,a,{configurable:!0,value:e})}},"7f7f":function(t,e,n){var i=n("86cc").f,r=Function.prototype,a=/^\s*function ([^ (]*)/,o="name";o in r||n("9e1e")&&i(r,o,{configurable:!0,get:function(){try{return(""+this).match(a)[1]}catch(t){return""}}})},8079:function(t,e,n){var i=n("7726"),r=n("1991").set,a=i.MutationObserver||i.WebKitMutationObserver,o=i.process,s=i.Promise,l="process"==n("2d95")(o);t.exports=function(){var t,e,n,c=function(){var i,r;for(l&&(i=o.domain)&&i.exit();t;){r=t.fn,t=t.next;try{r()}catch(i){throw t?n():e=void 0,i}}e=void 0,i&&i.enter()};if(l)n=function(){o.nextTick(c)};else if(!a||i.navigator&&i.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(c)}}else n=function(){r.call(i,c)};else{var h=!0,d=document.createTextNode("");new a(c).observe(d,{characterData:!0}),n=function(){d.data=h=!h}}return function(i){var r={fn:i,next:void 0};e&&(e.next=r),t||(t=r,n()),e=r}}},8378:function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"852f":function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,".ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{height:15px;bottom:0}.ps__rail-x,.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;position:absolute}.ps__rail-y{width:15px;right:0}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y,.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y{opacity:.6}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:#eee;opacity:.9}.ps__thumb-x{transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px}.ps__thumb-x,.ps__thumb-y{background-color:#aaa;border-radius:6px;position:absolute}.ps__thumb-y{transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#999;height:11px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style:none){.ps{overflow:auto!important}}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.ps{overflow:auto!important}}",""])},"86cc":function(t,e,n){var i=n("cb7c"),r=n("c69a"),a=n("6a99"),o=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(i(t),e=a(e,!0),i(n),r)try{return o(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8a81":function(t,e,n){"use strict";var i=n("7726"),r=n("69a8"),a=n("9e1e"),o=n("5ca1"),l=n("2aba"),c=n("67ab").KEY,u=n("79e5"),h=n("5537"),d=n("7f20"),f=n("ca5a"),p=n("2b4c"),g=n("37c8"),m=n("3a72"),v=n("d4c0"),y=n("1169"),x=n("cb7c"),b=n("d3f4"),_=n("4bf8"),w=n("6821"),S=n("6a99"),A=n("4630"),C=n("2aeb"),I=n("7bbc"),T=n("11e9"),k=n("2621"),M=n("86cc"),D=n("0d58"),E=T.f,L=M.f,P=I.f,O=i.Symbol,R=i.JSON,N=R&&R.stringify,B="prototype",z=p("_hidden"),F=p("toPrimitive"),V={}.propertyIsEnumerable,W=h("symbol-registry"),U=h("symbols"),H=h("op-symbols"),G=Object[B],j="function"==typeof O&&!!k.f,Y=i.QObject,q=!Y||!Y[B]||!Y[B].findChild,K=a&&u((function(){return 7!=C(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a}))?function(t,e,n){var i=E(G,e);i&&delete G[e],L(t,e,n),i&&t!==G&&L(G,e,i)}:L,X=function(t){var e=U[t]=C(O[B]);return e._k=t,e},Z=j&&"symbol"==s(O.iterator)?function(t){return"symbol"==s(t)}:function(t){return t instanceof O},Q=function t(e,n,i){return e===G&&t(H,n,i),x(e),n=S(n,!0),x(i),r(U,n)?(i.enumerable?(r(e,z)&&e[z][n]&&(e[z][n]=!1),i=C(i,{enumerable:A(0,!1)})):(r(e,z)||L(e,z,A(1,{})),e[z][n]=!0),K(e,n,i)):L(e,n,i)},J=function(t,e){x(t);for(var n,i=v(e=w(e)),r=0,a=i.length;a>r;)Q(t,n=i[r++],e[n]);return t},$=function(t){var e=V.call(this,t=S(t,!0));return!(this===G&&r(U,t)&&!r(H,t))&&(!(e||!r(this,t)||!r(U,t)||r(this,z)&&this[z][t])||e)},tt=function(t,e){if(t=w(t),e=S(e,!0),t!==G||!r(U,e)||r(H,e)){var n=E(t,e);return!n||!r(U,e)||r(t,z)&&t[z][e]||(n.enumerable=!0),n}},et=function(t){for(var e,n=P(w(t)),i=[],a=0;n.length>a;)r(U,e=n[a++])||e==z||e==c||i.push(e);return i},nt=function(t){for(var e,n=t===G,i=P(n?H:w(t)),a=[],o=0;i.length>o;)!r(U,e=i[o++])||n&&!r(G,e)||a.push(U[e]);return a};j||(l((O=function(){if(this instanceof O)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function e(n){this===G&&e.call(H,n),r(this,z)&&r(this[z],t)&&(this[z][t]=!1),K(this,t,A(1,n))};return a&&q&&K(G,t,{configurable:!0,set:e}),X(t)})[B],"toString",(function(){return this._k})),T.f=tt,M.f=Q,n("9093").f=I.f=et,n("52a7").f=$,k.f=nt,a&&!n("2d00")&&l(G,"propertyIsEnumerable",$,!0),g.f=function(t){return X(p(t))}),o(o.G+o.W+o.F*!j,{Symbol:O});for(var it="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;it.length>rt;)p(it[rt++]);for(var at=D(p.store),ot=0;at.length>ot;)m(at[ot++]);o(o.S+o.F*!j,"Symbol",{for:function(t){return r(W,t+="")?W[t]:W[t]=O(t)},keyFor:function(t){if(!Z(t))throw TypeError(t+" is not a symbol!");for(var e in W)if(W[e]===t)return e},useSetter:function(){q=!0},useSimple:function(){q=!1}}),o(o.S+o.F*!j,"Object",{create:function(t,e){return void 0===e?C(t):J(C(t),e)},defineProperty:Q,defineProperties:J,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:nt});var st=u((function(){k.f(1)}));o(o.S+o.F*st,"Object",{getOwnPropertySymbols:function(t){return k.f(_(t))}}),R&&o(o.S+o.F*(!j||u((function(){var t=O();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,i=[t],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=e=i[1],(b(e)||void 0!==t)&&!Z(t))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Z(e))return e}),i[1]=e,N.apply(R,i)}}),O[B][F]||n("32e9")(O[B],F,O[B].valueOf),d(O,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},"8bbf":function(e,n){e.exports=t},"8e6e":function(t,e,n){var i=n("5ca1"),r=n("990b"),a=n("6821"),o=n("11e9"),s=n("f1ae");i(i.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,i=a(t),l=o.f,c=r(i),u={},h=0;c.length>h;)void 0!==(n=l(i,e=c[h++]))&&s(u,e,n);return u}})},9093:function(t,e,n){var i=n("ce10"),r=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},9224:function(t){t.exports=JSON.parse('{"name":"dcs-plugin","version":"1.0.0-beta.2","vatversion":"0.1.0","description":"DCS H5视频控件","author":"zhouqianlong@cloudwalk.com","homepage":"http://10.135.112.181","private":false,"main":"lib/dcs-plugin.umd.min.js","typings":"types/index.d.ts","scripts":{"serve":"vue-cli-service serve","build:demo":"vue-cli-service build","build-player":"vue-cli-service build --target lib --formats umd-min --dest lib ./src/index.ts","build-render":"vue-cli-service build --target lib --formats umd-min --dest lib/renders --name renders ./src/renders.ts","build":"npm run build-player","lint":"vue-cli-service lint","test:unit":"vue-cli-service test:unit"},"files":["lib","types","README.md"],"dependencies":{"axios":"^0.19.2","compare-versions":"^3.4.0","core-js":"^2.6.5","element-resize-detector":"^1.2.1","perfect-scrollbar":"^1.4.0","vue":"^2.6.6","vue-class-component":"^6.0.0","vue-property-decorator":"^8.0.0","vue-slider-component":"^3.0.43","vuex":"^3.0.1"},"devDependencies":{"@types/jest":"^23.1.4","@vue/cli-plugin-babel":"^3.5.0","@vue/cli-plugin-typescript":"^3.5.0","@vue/cli-plugin-unit-jest":"^3.5.0","@vue/cli-service":"^3.5.0","@vue/test-utils":"1.0.0-beta.29","babel-core":"7.0.0-bridge.0","node-sass":"^4.12.0","sass-loader":"^8.0.0","ts-jest":"^23.0.0","typescript":"^3.2.1","vue-template-compiler":"^2.5.21","zip-webpack-plugin":"^3.0.0"}}')},9564:function(t,e,n){"use strict";var i=n("36f2");n.n(i).a},"990b":function(t,e,n){var i=n("9093"),r=n("2621"),a=n("cb7c"),o=n("7726").Reflect;t.exports=o&&o.ownKeys||function(t){var e=i.f(a(t)),n=r.f;return n?e.concat(n(t)):e}},"9b43":function(t,e,n){var i=n("d8e8");t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},"9ba3":function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,"@-webkit-keyframes vatblink{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes vatblink{0%{opacity:1}50%{opacity:.4}to{opacity:1}}div[vat=vod-player]{width:100%;height:100%;border:0;padding:0;margin:0;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}div[vat=win-root]{width:100%;height:100%;overflow:hidden}table[vat=win-tab]{width:100%;height:100%;background-color:#2b2b2b;border:1px solid #364a63;border-collapse:separate}table[vat=win-tab],table[vat=win-tab]>tr>td{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}table[vat=win-tab]>tr>td{border:1px solid #2b2b2b;background-color:#101010;overflow-x:hidden;overflow-y:hidden;padding:0}table[vat=win-tab]>tr>td[max=true]{border:none}table[vat=win-tab]>tr>td:hover{border:1px solid #4e4067}table[vat=win-tab]>tr>td.selected{border:1px solid #811c1c}table[vat=vod-layout]{width:100%;height:100%;border:none;overflow:hidden;padding:0;margin:0;border-collapse:collapse;border-spacing:0;display:table;table-layout:fixed}table[vat=vod-layout]>tr{border:none}table[vat=vod-layout]>tr>td{border:none;overflow:hidden;position:relative}table[vat=vod-layout]>tr>td #vod-tool{width:100%;height:50px;background-color:#1c4480;display:block}div[vat=timeline]{height:50px;background-color:#0f1322}div[vat=vod-player]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-ms-flex-line-pack:stretch;align-content:stretch;background-color:#000;position:relative;outline:none}div[vat=vod-player] label{color:#b0d0d0;border-left:#d0d0d0;text-wrap:avoid;white-space:nowrap;display:inline-block;font:14px Arial;max-width:35px}div[vat=vod-player] .vod-wins{-ms-flex-item-align:initial;align-self:auto}.vatrender{position:absolute;border:none;z-index:49;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.vatwin{width:100%;height:100%;border:none;position:relative;vertical-align:middle;text-align:center;padding:0;background-color:#000}",""])},"9bfc":function(t,e,n){var i=n("215a");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("a79280b6",i,!0,{sourceMap:!1,shadowMode:!1})},"9c29":function(t,e,n){n("ec30")("Uint32",4,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},"9c6c":function(t,e,n){var i=n("2b4c")("unscopables"),r=Array.prototype;null==r[i]&&n("32e9")(r,i,{}),t.exports=function(t){r[i][t]=!0}},"9c80":function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},"9def":function(t,e,n){var i=n("4588"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a25f:function(t,e,n){var i=n("7726").navigator;t.exports=i&&i.userAgent||""},a354:function(t,e,n){"use strict";var i=n("241c");n.n(i).a},a481:function(t,e,n){"use strict";var i=n("cb7c"),r=n("4bf8"),a=n("9def"),o=n("4588"),s=n("0390"),l=n("5f1b"),c=Math.max,u=Math.min,h=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,p=function(t){return void 0===t?t:String(t)};n("214f")("replace",2,(function(t,e,n,g){return[function(i,r){var a=t(this),o=null==i?void 0:i[e];return void 0!==o?o.call(i,a,r):n.call(String(a),i,r)},function(t,e){var r=g(n,t,this,e);if(r.done)return r.value;var h=i(t),d=String(this),f="function"==typeof e;f||(e=String(e));var v=h.global;if(v){var y=h.unicode;h.lastIndex=0}for(var x=[];;){var b=l(h,d);if(null===b)break;if(x.push(b),!v)break;""===String(b[0])&&(h.lastIndex=s(d,a(h.lastIndex),y))}for(var _="",w=0,S=0;S<x.length;S++){b=x[S];for(var A=String(b[0]),C=c(u(o(b.index),d.length),0),I=[],T=1;T<b.length;T++)I.push(p(b[T]));var k=b.groups;if(f){var M=[A].concat(I,C,d);void 0!==k&&M.push(k);var D=String(e.apply(void 0,M))}else D=m(A,d,C,I,k,e);C>=w&&(_+=d.slice(w,C)+D,w=C+A.length)}return _+d.slice(w)}];function m(t,e,i,a,o,s){var l=i+t.length,c=a.length,u=f;return void 0!==o&&(o=r(o),u=d),n.call(s,u,(function(n,r){var s;switch(r.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(l);case"<":s=o[r.slice(1,-1)];break;default:var u=+r;if(0===u)return n;if(u>c){var d=h(u/10);return 0===d?n:d<=c?void 0===a[d-1]?r.charAt(1):a[d-1]+r.charAt(1):n}s=a[u-1]}return void 0===s?"":s}))}}))},a5b8:function(t,e,n){"use strict";var i=n("d8e8");function r(t){var e,n;this.promise=new t((function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i})),this.resolve=i(e),this.reject=i(n)}t.exports.f=function(t){return new r(t)}},aae3:function(t,e,n){var i=n("d3f4"),r=n("2d95"),a=n("2b4c")("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==r(t))}},abb4:function(t,e,n){"use strict";t.exports=function(t){function e(){}var n={log:e,warn:e,error:e};if(!t&&window.console){var i=function(t,e){t[e]=function(){var t=console[e];if(t.apply)t.apply(console,arguments);else for(var n=0;n<arguments.length;n++)t(arguments[n])}};i(n,"log"),i(n,"warn"),i(n,"error")}return n}},ac4d:function(t,e,n){n("3a72")("asyncIterator")},ac6a:function(t,e,n){for(var i=n("cadf"),r=n("0d58"),a=n("2aba"),o=n("7726"),s=n("32e9"),l=n("84f2"),c=n("2b4c"),u=c("iterator"),h=c("toStringTag"),d=l.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=r(f),g=0;g<p.length;g++){var m,v=p[g],y=f[v],x=o[v],b=x&&x.prototype;if(b&&(b[u]||s(b,u,d),b[h]||s(b,h,v),l[v]=d,y))for(m in i)b[m]||a(b,m,i[m],!0)}},af56:function(t,e,n){n("ec30")("Uint16",2,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},b0c5:function(t,e,n){"use strict";var i=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},b697:function(t,e,n){var i,r,a;r=[],i=function(){var t=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;function e(t){var e=t.replace(/^v/,"").replace(/\+.*$/,""),n=function(t,e){return-1===t.indexOf(e)?t.length:t.indexOf(e)}(e,"-"),i=e.substring(0,n).split(".");return i.push(e.substring(n+1)),i}function n(t){return isNaN(Number(t))?t:Number(t)}function i(e){if("string"!=typeof e)throw new TypeError("Invalid argument expected string");if(!t.test(e))throw new Error("Invalid argument not valid semver ('"+e+"' received)")}function r(t,r){[t,r].forEach(i);for(var a=e(t),o=e(r),s=0;s<Math.max(a.length-1,o.length-1);s++){var l=parseInt(a[s]||0,10),c=parseInt(o[s]||0,10);if(l>c)return 1;if(c>l)return-1}var u=a[a.length-1],h=o[o.length-1];if(u&&h){var d=u.split(".").map(n),f=h.split(".").map(n);for(s=0;s<Math.max(d.length,f.length);s++){if(void 0===d[s]||"string"==typeof f[s]&&"number"==typeof d[s])return-1;if(void 0===f[s]||"string"==typeof d[s]&&"number"==typeof f[s])return 1;if(d[s]>f[s])return 1;if(f[s]>d[s])return-1}}else if(u||h)return u?-1:1;return 0}var a=[">",">=","=","<","<="],o={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};return r.validate=function(e){return"string"==typeof e&&t.test(e)},r.compare=function(t,e,n){!function(t){if("string"!=typeof t)throw new TypeError("Invalid operator type, expected string but got "+s(t));if(-1===a.indexOf(t))throw new TypeError("Invalid operator, expected one of "+a.join("|"))}(n);var i=r(t,e);return o[n].indexOf(i)>-1},r},void 0===(a="function"==typeof i?i.apply(e,r):i)||(t.exports=a)},b770:function(t,e,n){"use strict";(t.exports={}).forEach=function(t,e){for(var n=0;n<t.length;n++){var i=e(t[n]);if(i)return i}}},ba92:function(t,e,n){"use strict";var i=n("4bf8"),r=n("77f1"),a=n("9def");t.exports=[].copyWithin||function(t,e){var n=i(this),o=a(n.length),s=r(t,o),l=r(e,o),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?o:r(c,o))-l,o-s),h=1;for(l<s&&s<l+u&&(h=-1,l+=u-1,s+=u-1);u-- >0;)l in n?n[s]=n[l]:delete n[s],s+=h,l+=h;return n}},bcaa:function(t,e,n){var i=n("cb7c"),r=n("d3f4"),a=n("a5b8");t.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var n=a.f(t);return(0,n.resolve)(e),n.promise}},be13:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},c0e8:function(t,e){},c274:function(t,e,n){"use strict";var i=n("50bf");function r(){var t={},e=0,n=0,i=0;return{add:function(r,a){a||(a=r,r=0),r>n?n=r:r<i&&(i=r),t[r]||(t[r]=[]),t[r].push(a),e++},process:function(){for(var e=i;e<=n;e++)for(var r=t[e],a=0;a<r.length;a++)(0,r[a])()},size:function(){return e}}}t.exports=function(t){var e=(t=t||{}).reporter,n=i.getOption(t,"async",!0),a=i.getOption(t,"auto",!0);a&&!n&&(e&&e.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var o,s=r(),l=!1;function c(){for(l=!0;s.size();){var t=s;s=r(),t.process()}l=!1}function u(){o=function(t){return function(t){return setTimeout(t,0)}(t)}(c)}return{add:function(t,e){!l&&a&&n&&0===s.size()&&u(),s.add(t,e)},force:function(t){l||(void 0===t&&(t=n),o&&(function(t){clearTimeout(t)}(o),o=null),t?u():c())}}}},c366:function(t,e,n){var i=n("6821"),r=n("9def"),a=n("77f1");t.exports=function(t){return function(e,n,o){var s,l=i(e),c=r(l.length),u=a(o,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c780:function(t,e,n){"use strict";var i=n("d2f3");n.n(i).a},c946:function(t,e,n){"use strict";var i=n("b770").forEach;t.exports=function(t){var e=(t=t||{}).reporter,n=t.batchProcessor,r=t.stateHandler.getState,a=(t.stateHandler.hasState,t.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!e)throw new Error("Missing required dependency: reporter.");var o=function(){var t=500,e=500,n=document.createElement("div");n.style.cssText=c(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"]);var i=document.createElement("div");i.style.cssText=c(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),i.appendChild(n),document.body.insertBefore(i,document.body.firstChild);var r=t-i.clientWidth,a=e-i.clientHeight;return document.body.removeChild(i),{width:r,height:a}}(),s="erd_scroll_detection_container";function l(t){!function(t,e,n){if(!t.getElementById(e)){var i=n+"_animation",r=n+"_animation_active",a="/* Created by the element-resize-detector library. */\n";a+="."+n+" > div::-webkit-scrollbar { "+c(["display: none"])+" }\n\n",a+="."+r+" { "+c(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+i,"animation-name: "+i])+" }\n",a+="@-webkit-keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(n,i){i=i||function(e){t.head.appendChild(e)};var r=t.createElement("style");r.innerHTML=n,r.id=e,i(r)}(a+="@keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(t,"erd_scroll_detection_scrollbar_style",s)}function c(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function u(t,n,i){if(t.addEventListener)t.addEventListener(n,i);else{if(!t.attachEvent)return e.error("[scroll] Don't know how to add event listeners.");t.attachEvent("on"+n,i)}}function h(t,n,i){if(t.removeEventListener)t.removeEventListener(n,i);else{if(!t.detachEvent)return e.error("[scroll] Don't know how to remove event listeners.");t.detachEvent("on"+n,i)}}function d(t){return r(t).container.childNodes[0].childNodes[0].childNodes[0]}function f(t){return r(t).container.childNodes[0].childNodes[0].childNodes[1]}return l(window.document),{makeDetectable:function(t,l,h){function p(){if(t.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(a.get(l),"Scroll: "),e.log.apply)e.log.apply(null,n);else for(var i=0;i<n.length;i++)e.log(n[i])}}function g(t){var e=r(t).container.childNodes[0],n=window.getComputedStyle(e);return!n.width||-1===n.width.indexOf("px")}function m(){var t=window.getComputedStyle(l),e={};return e.position=t.position,e.width=l.offsetWidth,e.height=l.offsetHeight,e.top=t.top,e.right=t.right,e.bottom=t.bottom,e.left=t.left,e.widthCSS=t.width,e.heightCSS=t.height,e}function v(){if(p("storeStyle invoked."),r(l)){var t=m();r(l).style=t}else p("Aborting because element has been uninstalled")}function y(t,e,n){r(t).lastWidth=e,r(t).lastHeight=n}function x(){return 2*o.width+1}function b(){return 2*o.height+1}function _(t){return t+10+x()}function w(t){return t+10+b()}function S(t,e,n){var i=d(t),r=f(t),a=_(e),o=w(n),s=function(t){return 2*t+x()}(e),l=function(t){return 2*t+b()}(n);i.scrollLeft=a,i.scrollTop=o,r.scrollLeft=s,r.scrollTop=l}function A(){var t=r(l).container;if(!t){(t=document.createElement("div")).className=s,t.style.cssText=c(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),r(l).container=t,function(t){t.className+=" "+s+"_animation_active"}(t),l.appendChild(t);var e=function(){r(l).onRendered&&r(l).onRendered()};u(t,"animationstart",e),r(l).onAnimationStart=e}return t}function C(){if(p("Injecting elements"),r(l)){!function(){var n=r(l).style;if("static"===n.position){l.style.setProperty("position","relative",t.important?"important":"");var i=function(t,e,n,i){var r=n[i];"auto"!==r&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(r)&&(t.warn("An element that is positioned static has style."+i+"="+r+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",e),e.style[i]=0)};i(e,l,n,"top"),i(e,l,n,"right"),i(e,l,n,"bottom"),i(e,l,n,"left")}}();var n=r(l).container;n||(n=A());var i=o.width,a=o.height,h=c(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),d=c(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(function(t,e,n,i){return["left: "+(t=t?t+"px":"0"),"top: "+(e=e?e+"px":"0"),"right: "+(i=i?i+"px":"0"),"bottom: "+(n=n?n+"px":"0")]}(-(1+i),-(1+a),-a,-i))),f=c(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),g=c(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),m=c(["position: absolute","left: 0","top: 0"]),v=c(["position: absolute","width: 200%","height: 200%"]),y=document.createElement("div"),x=document.createElement("div"),b=document.createElement("div"),_=document.createElement("div"),w=document.createElement("div"),S=document.createElement("div");y.dir="ltr",y.style.cssText=h,y.className=s,x.className=s,x.style.cssText=d,b.style.cssText=f,_.style.cssText=m,w.style.cssText=g,S.style.cssText=v,b.appendChild(_),w.appendChild(S),x.appendChild(b),x.appendChild(w),y.appendChild(x),n.appendChild(y),u(b,"scroll",C),u(w,"scroll",I),r(l).onExpandScroll=C,r(l).onShrinkScroll=I}else p("Aborting because element has been uninstalled");function C(){r(l).onExpand&&r(l).onExpand()}function I(){r(l).onShrink&&r(l).onShrink()}}function I(){function o(e,n,i){var r=function(t){return d(t).childNodes[0]}(e),a=_(n),o=w(i);r.style.setProperty("width",a+"px",t.important?"important":""),r.style.setProperty("height",o+"px",t.important?"important":"")}function s(i){var s=l.offsetWidth,u=l.offsetHeight,h=s!==r(l).lastWidth||u!==r(l).lastHeight;p("Storing current size",s,u),y(l,s,u),n.add(0,(function(){if(h)if(r(l))if(c()){if(t.debug){var n=l.offsetWidth,i=l.offsetHeight;n===s&&i===u||e.warn(a.get(l),"Scroll: Size changed before updating detector elements.")}o(l,s,u)}else p("Aborting because element container has not been initialized");else p("Aborting because element has been uninstalled")})),n.add(1,(function(){r(l)?c()?S(l,s,u):p("Aborting because element container has not been initialized"):p("Aborting because element has been uninstalled")})),h&&i&&n.add(2,(function(){r(l)?c()?i():p("Aborting because element container has not been initialized"):p("Aborting because element has been uninstalled")}))}function c(){return!!r(l).container}function u(){p("notifyListenersIfNeeded invoked");var t=r(l);return void 0===r(l).lastNotifiedWidth&&t.lastWidth===t.startSize.width&&t.lastHeight===t.startSize.height?p("Not notifying: Size is the same as the start size, and there has been no notification yet."):t.lastWidth===t.lastNotifiedWidth&&t.lastHeight===t.lastNotifiedHeight?p("Not notifying: Size already notified"):(p("Current size not notified, notifying..."),t.lastNotifiedWidth=t.lastWidth,t.lastNotifiedHeight=t.lastHeight,void i(r(l).listeners,(function(t){t(l)})))}function h(){p("Scroll detected."),g(l)?p("Scroll event fired while unrendered. Ignoring..."):s(u)}if(p("registerListenersAndPositionElements invoked."),r(l)){r(l).onRendered=function(){if(p("startanimation triggered."),g(l))p("Ignoring since element is still unrendered...");else{p("Element rendered.");var t=d(l),e=f(l);0!==t.scrollLeft&&0!==t.scrollTop&&0!==e.scrollLeft&&0!==e.scrollTop||(p("Scrollbars out of sync. Updating detector elements..."),s(u))}},r(l).onExpand=h,r(l).onShrink=h;var m=r(l).style;o(l,m.width,m.height)}else p("Aborting because element has been uninstalled")}function T(){if(p("finalizeDomMutation invoked."),r(l)){var t=r(l).style;y(l,t.width,t.height),S(l,t.width,t.height)}else p("Aborting because element has been uninstalled")}function k(){h(l)}function M(){p("Installing..."),r(l).listeners=[],function(){var t=m();r(l).startSize={width:t.width,height:t.height},p("Element start size",r(l).startSize)}(),n.add(0,v),n.add(1,C),n.add(2,I),n.add(3,T),n.add(4,k)}h||(h=l,l=t,t=null),t=t||{},p("Making detectable..."),function(t){return!function(t){return t===t.ownerDocument.body||t.ownerDocument.body.contains(t)}(t)||null===window.getComputedStyle(t)}(l)?(p("Element is detached"),A(),p("Waiting until element is attached..."),r(l).onRendered=function(){p("Element is now attached"),M()}):M()},addListener:function(t,e){if(!r(t).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");r(t).listeners.push(e)},uninstall:function(t){var e=r(t);e&&(e.onExpandScroll&&h(d(t),"scroll",e.onExpandScroll),e.onShrinkScroll&&h(f(t),"scroll",e.onShrinkScroll),e.onAnimationStart&&h(e.container,"animationstart",e.onAnimationStart),e.container&&t.removeChild(e.container))},initDocument:l}}},ca5a:function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},cadf:function(t,e,n){"use strict";var i=n("9c6c"),r=n("d53b"),a=n("84f2"),o=n("6821");t.exports=n("01f9")(Array,"Array",(function(t,e){this._t=o(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},cb7c:function(t,e,n){var i=n("d3f4");t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},cd1c:function(t,e,n){var i=n("e853");t.exports=function(t,e){return new(i(t))(e)}},ce10:function(t,e,n){var i=n("69a8"),r=n("6821"),a=n("c366")(!1),o=n("613b")("IE_PROTO");t.exports=function(t,e){var n,s=r(t),l=0,c=[];for(n in s)n!=o&&i(s,n)&&c.push(n);for(;e.length>l;)i(s,n=e[l++])&&(~a(c,n)||c.push(n));return c}},d2f3:function(t,e,n){var i=n("5405");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("4ba42f2c",i,!0,{sourceMap:!1,shadowMode:!1})},d3f4:function(t,e){t.exports=function(t){return"object"===s(t)?null!==t:"function"==typeof t}},d4c0:function(t,e,n){var i=n("0d58"),r=n("2621"),a=n("52a7");t.exports=function(t){var e=i(t),n=r.f;if(n)for(var o,s=n(t),l=a.f,c=0;s.length>c;)l.call(t,o=s[c++])&&e.push(o);return e}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d6eb:function(t,e,n){"use strict";var i="_erd";function r(t){return t[i]}t.exports={initState:function(t){return t[i]={},r(t)},getState:r,cleanState:function(t){delete t[i]}}},d814:function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,".play-pb[data-v-40ec3b00]{height:20px;position:relative;z-index:100;opacity:.7;margin:0 5px 0 5px}",""])},d886:function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,"#vat-tool[data-v-3a7105c5]{padding:0;width:100%;height:32px;background-color:#111;display:-webkit-box;display:-ms-flexbox;display:flex}svg[data-v-3a7105c5]:hover{cursor:pointer}svg>path[data-v-3a7105c5]:hover{fill:#bbb}svg.icon[data-v-3a7105c5]{margin-left:8px;margin-right:8px}svg.disabled[data-v-3a7105c5]{cursor:default;pointer-events:none}svg.disabled>path[data-v-3a7105c5]{fill:#666}svg.hide[data-v-3a7105c5]{display:none}table[data-v-3a7105c5]{width:100%;height:100%;border-spacing:0}.speed[data-v-3a7105c5]{color:#f0f0f0;line-height:32px;font:700 14px Microsoft YaHei;margin-left:10px;margin-right:30px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:40px}.btns[data-v-3a7105c5],.speed[data-v-3a7105c5]{display:-webkit-box;display:-ms-flexbox;display:flex}.btns[data-v-3a7105c5]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:0 auto;width:368px}.btn-menu[data-v-3a7105c5]{position:absolute;left:0;top:-100px;z-index:1001;opacity:0;-webkit-transition:visibility 0s linear .33s,opacity .33s linear;transition:visibility 0s linear .33s,opacity .33s linear}.btn-menu-icon:hover~.btn-menu[data-v-3a7105c5],.btn-menu[data-v-3a7105c5]:hover{visibility:visible;opacity:.9;-webkit-transition-delay:0s;transition-delay:0s}.scale-btns[data-v-3a7105c5]{width:78px}.scale-btns[data-v-3a7105c5],.speed-menu[data-v-3a7105c5]{display:-webkit-box;display:-ms-flexbox;display:flex}.speed-menu[data-v-3a7105c5]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;background:rgba(29,29,29,.67)}.speed-menu span[data-v-3a7105c5]{list-style:none;height:20px;width:60px;color:#f0f0f0;margin:0;padding:1px;font:14px Microsoft YaHei;cursor:pointer;border:1px solid #2a2a2a}.speed-menu span.active[data-v-3a7105c5]{color:#0f1322;background-color:#f0f0f0}.speed-menu span[data-v-3a7105c5]:hover{background-color:#00adee}",""])},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},dcbc:function(t,e,n){var i=n("2aba");t.exports=function(t,e,n){for(var r in e)i(t,r,e[r],n);return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e389:function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,".vod-wins[data-v-4355d158]{-webkit-box-flex:100;-ms-flex-positive:100;flex-grow:100;display:-webkit-box;display:-ms-flexbox;display:flex;overflow:hidden}.vod-times[data-v-4355d158]{display:block;overflow-y:hidden;position:relative}.times-panel[data-v-4355d158]{position:absolute;width:100%;border:none;margin:0 0;padding:0 0}.vod-time-row[data-v-4355d158]{-webkit-box-orient:horizontal;-ms-flex-direction:row;flex-direction:row;background-color:#121212}.vod-time-left[data-v-4355d158],.vod-time-row[data-v-4355d158]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-direction:normal}.vod-time-left[data-v-4355d158]{width:60px;padding:0 5px;-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column}.calendar-container[data-v-4355d158]{right:10px;bottom:100px;z-index:20;position:absolute}.err-msg[data-v-4355d158]{color:red;font:18px Arial;font-weight:bolder}",""])},e853:function(t,e,n){var i=n("d3f4"),r=n("1169"),a=n("2b4c")("species");t.exports=function(t){var e;return r(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!r(e.prototype)||(e=void 0),i(e)&&null===(e=e[a])&&(e=void 0)),void 0===e?Array:e}},ebd6:function(t,e,n){var i=n("cb7c"),r=n("d8e8"),a=n("2b4c")("species");t.exports=function(t,e){var n,o=i(t).constructor;return void 0===o||null==(n=i(o)[a])?e:r(n)}},ec30:function(t,e,n){"use strict";if(n("9e1e")){var i=n("2d00"),r=n("7726"),a=n("79e5"),o=n("5ca1"),l=n("0f88"),c=n("ed0b"),u=n("9b43"),h=n("f605"),d=n("4630"),f=n("32e9"),p=n("dcbc"),g=n("4588"),m=n("9def"),v=n("09fa"),y=n("77f1"),x=n("6a99"),b=n("69a8"),_=n("23c6"),w=n("d3f4"),S=n("4bf8"),A=n("33a4"),C=n("2aeb"),I=n("38fd"),T=n("9093").f,k=n("27ee"),M=n("ca5a"),D=n("2b4c"),E=n("0a49"),L=n("c366"),P=n("ebd6"),O=n("cadf"),R=n("84f2"),N=n("5cc5"),B=n("7a56"),z=n("36bd"),F=n("ba92"),V=n("86cc"),W=n("11e9"),U=V.f,H=W.f,G=r.RangeError,j=r.TypeError,Y=r.Uint8Array,q="ArrayBuffer",K="Shared"+q,X="BYTES_PER_ELEMENT",Z="prototype",Q=Array[Z],J=c.ArrayBuffer,$=c.DataView,tt=E(0),et=E(2),nt=E(3),it=E(4),rt=E(5),at=E(6),ot=L(!0),st=L(!1),lt=O.values,ct=O.keys,ut=O.entries,ht=Q.lastIndexOf,dt=Q.reduce,ft=Q.reduceRight,pt=Q.join,gt=Q.sort,mt=Q.slice,vt=Q.toString,yt=Q.toLocaleString,xt=D("iterator"),bt=D("toStringTag"),_t=M("typed_constructor"),wt=M("def_constructor"),St=l.CONSTR,At=l.TYPED,Ct=l.VIEW,It="Wrong length!",Tt=E(1,(function(t,e){return Lt(P(t,t[wt]),e)})),kt=a((function(){return 1===new Y(new Uint16Array([1]).buffer)[0]})),Mt=!!Y&&!!Y[Z].set&&a((function(){new Y(1).set({})})),Dt=function(t,e){var n=g(t);if(n<0||n%e)throw G("Wrong offset!");return n},Et=function(t){if(w(t)&&At in t)return t;throw j(t+" is not a typed array!")},Lt=function(t,e){if(!w(t)||!(_t in t))throw j("It is not a typed array constructor!");return new t(e)},Pt=function(t,e){return Ot(P(t,t[wt]),e)},Ot=function(t,e){for(var n=0,i=e.length,r=Lt(t,i);i>n;)r[n]=e[n++];return r},Rt=function(t,e,n){U(t,e,{get:function(){return this._d[n]}})},Nt=function(t){var e,n,i,r,a,o,s=S(t),l=arguments.length,c=l>1?arguments[1]:void 0,h=void 0!==c,d=k(s);if(null!=d&&!A(d)){for(o=d.call(s),i=[],e=0;!(a=o.next()).done;e++)i.push(a.value);s=i}for(h&&l>2&&(c=u(c,arguments[2],2)),e=0,n=m(s.length),r=Lt(this,n);n>e;e++)r[e]=h?c(s[e],e):s[e];return r},Bt=function(){for(var t=0,e=arguments.length,n=Lt(this,e);e>t;)n[t]=arguments[t++];return n},zt=!!Y&&a((function(){yt.call(new Y(1))})),Ft=function(){return yt.apply(zt?mt.call(Et(this)):Et(this),arguments)},Vt={copyWithin:function(t,e){return F.call(Et(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return it(Et(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return z.apply(Et(this),arguments)},filter:function(t){return Pt(this,et(Et(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return rt(Et(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return at(Et(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){tt(Et(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return st(Et(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return ot(Et(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return pt.apply(Et(this),arguments)},lastIndexOf:function(t){return ht.apply(Et(this),arguments)},map:function(t){return Tt(Et(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return dt.apply(Et(this),arguments)},reduceRight:function(t){return ft.apply(Et(this),arguments)},reverse:function(){for(var t,e=this,n=Et(e).length,i=Math.floor(n/2),r=0;r<i;)t=e[r],e[r++]=e[--n],e[n]=t;return e},some:function(t){return nt(Et(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return gt.call(Et(this),t)},subarray:function(t,e){var n=Et(this),i=n.length,r=y(t,i);return new(P(n,n[wt]))(n.buffer,n.byteOffset+r*n.BYTES_PER_ELEMENT,m((void 0===e?i:y(e,i))-r))}},Wt=function(t,e){return Pt(this,mt.call(Et(this),t,e))},Ut=function(t){Et(this);var e=Dt(arguments[1],1),n=this.length,i=S(t),r=m(i.length),a=0;if(r+e>n)throw G(It);for(;a<r;)this[e+a]=i[a++]},Ht={entries:function(){return ut.call(Et(this))},keys:function(){return ct.call(Et(this))},values:function(){return lt.call(Et(this))}},Gt=function(t,e){return w(t)&&t[At]&&"symbol"!=s(e)&&e in t&&String(+e)==String(e)},jt=function(t,e){return Gt(t,e=x(e,!0))?d(2,t[e]):H(t,e)},Yt=function(t,e,n){return!(Gt(t,e=x(e,!0))&&w(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?U(t,e,n):(t[e]=n.value,t)};St||(W.f=jt,V.f=Yt),o(o.S+o.F*!St,"Object",{getOwnPropertyDescriptor:jt,defineProperty:Yt}),a((function(){vt.call({})}))&&(vt=yt=function(){return pt.call(this)});var qt=p({},Vt);p(qt,Ht),f(qt,xt,Ht.values),p(qt,{slice:Wt,set:Ut,constructor:function(){},toString:vt,toLocaleString:Ft}),Rt(qt,"buffer","b"),Rt(qt,"byteOffset","o"),Rt(qt,"byteLength","l"),Rt(qt,"length","e"),U(qt,bt,{get:function(){return this[At]}}),t.exports=function(t,e,n,s){var c=t+((s=!!s)?"Clamped":"")+"Array",u="get"+t,d="set"+t,p=r[c],g=p||{},y=p&&I(p),x=!p||!l.ABV,b={},S=p&&p[Z],A=function(t,n){var i=t._d;return i.v[u](n*e+i.o,kt)},k=function(t,n,i){var r=t._d;s&&(i=(i=Math.round(i))<0?0:i>255?255:255&i),r.v[d](n*e+r.o,i,kt)},M=function(t,e){U(t,e,{get:function(){return A(this,e)},set:function(t){return k(this,e,t)},enumerable:!0})};x?(p=n((function(t,n,i,r){h(t,p,c,"_d");var a,o,s,l,u=0,d=0;if(w(n)){if(!(n instanceof J||(l=_(n))==q||l==K))return At in n?Ot(p,n):Nt.call(p,n);a=n,d=Dt(i,e);var g=n.byteLength;if(void 0===r){if(g%e)throw G(It);if((o=g-d)<0)throw G(It)}else if((o=m(r)*e)+d>g)throw G(It);s=o/e}else s=v(n),a=new J(o=s*e);for(f(t,"_d",{b:a,o:d,l:o,e:s,v:new $(a)});u<s;)M(t,u++)})),S=p[Z]=C(qt),f(S,"constructor",p)):a((function(){p(1)}))&&a((function(){new p(-1)}))&&N((function(t){new p,new p(null),new p(1.5),new p(t)}),!0)||(p=n((function(t,n,i,r){var a;return h(t,p,c),w(n)?n instanceof J||(a=_(n))==q||a==K?void 0!==r?new g(n,Dt(i,e),r):void 0!==i?new g(n,Dt(i,e)):new g(n):At in n?Ot(p,n):Nt.call(p,n):new g(v(n))})),tt(y!==Function.prototype?T(g).concat(T(y)):T(g),(function(t){t in p||f(p,t,g[t])})),p[Z]=S,i||(S.constructor=p));var D=S[xt],E=!!D&&("values"==D.name||null==D.name),L=Ht.values;f(p,_t,!0),f(S,At,c),f(S,Ct,!0),f(S,wt,p),(s?new p(1)[bt]==c:bt in S)||U(S,bt,{get:function(){return c}}),b[c]=p,o(o.G+o.W+o.F*(p!=g),b),o(o.S,c,{BYTES_PER_ELEMENT:e}),o(o.S+o.F*a((function(){g.of.call(p,1)})),c,{from:Nt,of:Bt}),X in S||f(S,X,e),o(o.P,c,Vt),B(c),o(o.P+o.F*Mt,c,{set:Ut}),o(o.P+o.F*!E,c,Ht),i||S.toString==vt||(S.toString=vt),o(o.P+o.F*a((function(){new p(1).slice()})),c,{slice:Wt}),o(o.P+o.F*(a((function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()}))||!a((function(){S.toLocaleString.call([1,2])}))),c,{toLocaleString:Ft}),R[c]=E?D:L,i||E||f(S,xt,L)}}else t.exports=function(){}},ed0b:function(t,e,n){"use strict";var i=n("7726"),r=n("9e1e"),a=n("2d00"),o=n("0f88"),s=n("32e9"),l=n("dcbc"),c=n("79e5"),u=n("f605"),h=n("4588"),d=n("9def"),f=n("09fa"),p=n("9093").f,g=n("86cc").f,m=n("36bd"),v=n("7f20"),y="ArrayBuffer",x="DataView",b="prototype",_="Wrong index!",w=i[y],S=i[x],A=i.Math,C=i.RangeError,I=i.Infinity,T=w,k=A.abs,M=A.pow,D=A.floor,E=A.log,L=A.LN2,P="buffer",O="byteLength",R="byteOffset",N=r?"_b":P,B=r?"_l":O,z=r?"_o":R;function F(t,e,n){var i,r,a,o=new Array(n),s=8*n-e-1,l=(1<<s)-1,c=l>>1,u=23===e?M(2,-24)-M(2,-77):0,h=0,d=t<0||0===t&&1/t<0?1:0;for((t=k(t))!=t||t===I?(r=t!=t?1:0,i=l):(i=D(E(t)/L),t*(a=M(2,-i))<1&&(i--,a*=2),(t+=i+c>=1?u/a:u*M(2,1-c))*a>=2&&(i++,a/=2),i+c>=l?(r=0,i=l):i+c>=1?(r=(t*a-1)*M(2,e),i+=c):(r=t*M(2,c-1)*M(2,e),i=0));e>=8;o[h++]=255&r,r/=256,e-=8);for(i=i<<e|r,s+=e;s>0;o[h++]=255&i,i/=256,s-=8);return o[--h]|=128*d,o}function V(t,e,n){var i,r=8*n-e-1,a=(1<<r)-1,o=a>>1,s=r-7,l=n-1,c=t[l--],u=127&c;for(c>>=7;s>0;u=256*u+t[l],l--,s-=8);for(i=u&(1<<-s)-1,u>>=-s,s+=e;s>0;i=256*i+t[l],l--,s-=8);if(0===u)u=1-o;else{if(u===a)return i?NaN:c?-I:I;i+=M(2,e),u-=o}return(c?-1:1)*i*M(2,u-e)}function W(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function U(t){return[255&t]}function H(t){return[255&t,t>>8&255]}function G(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function j(t){return F(t,52,8)}function Y(t){return F(t,23,4)}function q(t,e,n){g(t[b],e,{get:function(){return this[n]}})}function K(t,e,n,i){var r=f(+n);if(r+e>t[B])throw C(_);var a=t[N]._b,o=r+t[z],s=a.slice(o,o+e);return i?s:s.reverse()}function X(t,e,n,i,r,a){var o=f(+n);if(o+e>t[B])throw C(_);for(var s=t[N]._b,l=o+t[z],c=i(+r),u=0;u<e;u++)s[l+u]=c[a?u:e-u-1]}if(o.ABV){if(!c((function(){w(1)}))||!c((function(){new w(-1)}))||c((function(){return new w,new w(1.5),new w(NaN),w.name!=y}))){for(var Z,Q=(w=function(t){return u(this,w),new T(f(t))})[b]=T[b],J=p(T),$=0;J.length>$;)(Z=J[$++])in w||s(w,Z,T[Z]);a||(Q.constructor=w)}var tt=new S(new w(2)),et=S[b].setInt8;tt.setInt8(0,2147483648),tt.setInt8(1,2147483649),!tt.getInt8(0)&&tt.getInt8(1)||l(S[b],{setInt8:function(t,e){et.call(this,t,e<<24>>24)},setUint8:function(t,e){et.call(this,t,e<<24>>24)}},!0)}else w=function(t){u(this,w,y);var e=f(t);this._b=m.call(new Array(e),0),this[B]=e},S=function(t,e,n){u(this,S,x),u(t,w,x);var i=t[B],r=h(e);if(r<0||r>i)throw C("Wrong offset!");if(r+(n=void 0===n?i-r:d(n))>i)throw C("Wrong length!");this[N]=t,this[z]=r,this[B]=n},r&&(q(w,O,"_l"),q(S,P,"_b"),q(S,O,"_l"),q(S,R,"_o")),l(S[b],{getInt8:function(t){return K(this,1,t)[0]<<24>>24},getUint8:function(t){return K(this,1,t)[0]},getInt16:function(t){var e=K(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=K(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return W(K(this,4,t,arguments[1]))},getUint32:function(t){return W(K(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return V(K(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return V(K(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){X(this,1,t,U,e)},setUint8:function(t,e){X(this,1,t,U,e)},setInt16:function(t,e){X(this,2,t,H,e,arguments[2])},setUint16:function(t,e){X(this,2,t,H,e,arguments[2])},setInt32:function(t,e){X(this,4,t,G,e,arguments[2])},setUint32:function(t,e){X(this,4,t,G,e,arguments[2])},setFloat32:function(t,e){X(this,4,t,Y,e,arguments[2])},setFloat64:function(t,e){X(this,8,t,j,e,arguments[2])}});v(w,y),v(S,x),s(S[b],o.VIEW,!0),e[y]=w,e[x]=S},eec4:function(t,e,n){"use strict";var i=n("b770").forEach,r=n("5be5"),a=n("49ad"),o=n("2cef"),s=n("5058"),l=n("abb4"),c=n("18e9"),u=n("c274"),h=n("d6eb"),d=n("18d2"),f=n("c946");function p(t){return Array.isArray(t)||void 0!==t.length}function g(t){if(Array.isArray(t))return t;var e=[];return i(t,(function(t){e.push(t)})),e}function m(t){return t&&1===t.nodeType}function v(t,e,n){var i=t[e];return null!=i||void 0===n?i:n}t.exports=function(t){var e;if((t=t||{}).idHandler)e={get:function(e){return t.idHandler.get(e,!0)},set:t.idHandler.set};else{var n=o(),y=s({idGenerator:n,stateHandler:h});e=y}var x=t.reporter;x||(x=l(!1===x));var b=v(t,"batchProcessor",u({reporter:x})),_={};_.callOnAdd=!!v(t,"callOnAdd",!0),_.debug=!!v(t,"debug",!1);var w,S=a(e),A=r({stateHandler:h}),C=v(t,"strategy","object"),I=v(t,"important",!1),T={reporter:x,batchProcessor:b,stateHandler:h,idHandler:e,important:I};if("scroll"===C&&(c.isLegacyOpera()?(x.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),C="object"):c.isIE(9)&&(x.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),C="object")),"scroll"===C)w=f(T);else{if("object"!==C)throw new Error("Invalid strategy name: "+C);w=d(T)}var k={};return{listenTo:function(t,n,r){function a(t){var e=S.get(t);i(e,(function(e){e(t)}))}function o(t,e,n){S.add(e,n),t&&n(e)}if(r||(r=n,n=t,t={}),!n)throw new Error("At least one element required.");if(!r)throw new Error("Listener required.");if(m(n))n=[n];else{if(!p(n))return x.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=g(n)}var s=0,l=v(t,"callOnAdd",_.callOnAdd),c=v(t,"onReady",(function(){})),u=v(t,"debug",_.debug);i(n,(function(t){h.getState(t)||(h.initState(t),e.set(t));var d=e.get(t);if(u&&x.log("Attaching listener to element",d,t),!A.isDetectable(t))return u&&x.log(d,"Not detectable."),A.isBusy(t)?(u&&x.log(d,"System busy making it detectable"),o(l,t,r),k[d]=k[d]||[],void k[d].push((function(){++s===n.length&&c()}))):(u&&x.log(d,"Making detectable..."),A.markBusy(t,!0),w.makeDetectable({debug:u,important:I},t,(function(t){if(u&&x.log(d,"onElementDetectable"),h.getState(t)){A.markAsDetectable(t),A.markBusy(t,!1),w.addListener(t,a),o(l,t,r);var e=h.getState(t);if(e&&e.startSize){var f=t.offsetWidth,p=t.offsetHeight;e.startSize.width===f&&e.startSize.height===p||a(t)}k[d]&&i(k[d],(function(t){t()}))}else u&&x.log(d,"Element uninstalled before being detectable.");delete k[d],++s===n.length&&c()})));u&&x.log(d,"Already detecable, adding listener."),o(l,t,r),s++})),s===n.length&&c()},removeListener:S.removeListener,removeAllListeners:S.removeAllListeners,uninstall:function(t){if(!t)return x.error("At least one element is required.");if(m(t))t=[t];else{if(!p(t))return x.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");t=g(t)}i(t,(function(t){S.removeAllListeners(t),w.uninstall(t),h.cleanState(t)}))},initDocument:function(t){w.initDocument&&w.initDocument(t)}}}},f0c1:function(t,e,n){"use strict";var i=n("d8e8"),r=n("d3f4"),a=n("31f4"),o=[].slice,s={},l=function(t,e,n){if(!(e in s)){for(var i=[],r=0;r<e;r++)i[r]="a["+r+"]";s[e]=Function("F,a","return new F("+i.join(",")+")")}return s[e](t,n)};t.exports=Function.bind||function(t){var e=i(this),n=o.call(arguments,1),s=function i(){var r=n.concat(o.call(arguments));return this instanceof i?l(e,r.length,r):a(e,r,t)};return r(e.prototype)&&(s.prototype=e.prototype),s}},f1ae:function(t,e,n){"use strict";var i=n("86cc"),r=n("4630");t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},f605:function(t,e){t.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},f6fd:function(t,e){!function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(i){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(i.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})}(document)},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var i=n("7726").document;t.exports=i&&i.documentElement},fb15:function(t,e,n){"use strict";var i;function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function h(t){return(h="function"==typeof Symbol&&"symbol"===s(Symbol.iterator)?function(t){return s(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":s(t)})(t)}function d(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}
|
||
/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */function p(t,e,n,i){var r,a=arguments.length,o=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===("undefined"==typeof Reflect?"undefined":s(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(o=(a<3?r(o):a>3?r(e,n,o):r(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}n.r(e),n.d(e,"LivePlayer",(function(){return ce})),n.d(e,"RenderHandler",(function(){return sn.RenderHandler})),n.d(e,"VodPlayer",(function(){return on})),"undefined"!=typeof window&&(n("f6fd"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1])),n("ac4d"),n("8a81"),n("5df3"),n("1c4c"),n("7f7f"),n("8e6e"),n("ac6a"),n("cadf"),n("456d"),n("6b54"),n("2397");var g=n("8bbf"),m=n.n(g);
|
||
/**
|
||
* vue-class-component v7.2.3
|
||
* (c) 2015-present Evan You
|
||
* @license MIT
|
||
*/function v(t){return(v="function"==typeof Symbol&&"symbol"===s(Symbol.iterator)?function(t){return s(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":s(t)})(t)}function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function x(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function b(){return"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function _(t,e){w(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(n){w(t.prototype,e.prototype,n)})),Object.getOwnPropertyNames(e).forEach((function(n){w(t,e,n)}))}function w(t,e,n){(n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e)).forEach((function(i){var r=n?Reflect.getOwnMetadata(i,e,n):Reflect.getOwnMetadata(i,e);n?Reflect.defineMetadata(i,r,t,n):Reflect.defineMetadata(i,r,t)}))}var S={__proto__:[]}instanceof Array;function A(t){return function(e,n,i){var r="function"==typeof e?e:e.constructor;r.__decorators__||(r.__decorators__=[]),"number"!=typeof i&&(i=void 0),r.__decorators__.push((function(e){return t(e,n,i)}))}}function C(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var i in t.$options.props)t.hasOwnProperty(i)||n.push(i);n.forEach((function(n){"_"!==n.charAt(0)&&Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})}))};var i=new e;e.prototype._init=n;var r={};return Object.keys(i).forEach((function(t){void 0!==i[t]&&(r[t]=i[t])})),r}var I=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function T(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.name=e.name||t._componentTag||t.name;var n=t.prototype;Object.getOwnPropertyNames(n).forEach((function(t){if("constructor"!==t)if(I.indexOf(t)>-1)e[t]=n[t];else{var i=Object.getOwnPropertyDescriptor(n,t);void 0!==i.value?"function"==typeof i.value?(e.methods||(e.methods={}))[t]=i.value:(e.mixins||(e.mixins=[])).push({data:function(){return y({},t,i.value)}}):(i.get||i.set)&&((e.computed||(e.computed={}))[t]={get:i.get,set:i.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return C(this,t)}});var i=t.__decorators__;i&&(i.forEach((function(t){return t(e)})),delete t.__decorators__);var r=Object.getPrototypeOf(t.prototype),a=r instanceof m.a?r.constructor:m.a,o=a.extend(e);return M(o,t,a),b()&&_(o,t),o}var k={prototype:!0,arguments:!0,callee:!0,caller:!0};function M(t,e,n){Object.getOwnPropertyNames(e).forEach((function(i){if(!k[i]){var r=Object.getOwnPropertyDescriptor(t,i);if(!r||r.configurable){var a=Object.getOwnPropertyDescriptor(e,i);if(!S){if("cid"===i)return;var o=Object.getOwnPropertyDescriptor(n,i);if(!function(t){var e=v(t);return null==t||"object"!==e&&"function"!==e}(a.value)&&o&&o.value===a.value)return}Object.defineProperty(t,i,a)}}}))}function D(t){return"function"==typeof t?T(t):function(e){return T(e,t)}}D.registerHooks=function(t){I.push.apply(I,x(t))};var E=D,L="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function P(t){return void 0===t&&(t={}),function(e,n){(function(t,e,n){if(L&&!Array.isArray(t)&&"function"!=typeof t&&void 0===t.type){var i=Reflect.getMetadata("design:type",e,n);i!==Object&&(t.type=i)}})(t,e,n),A((function(e,n){(e.props||(e.props={}))[n]=t}))(e,n)}}function O(t,e){void 0===e&&(e={});var n=e.deep,i=void 0!==n&&n,r=e.immediate,a=void 0!==r&&r;return A((function(e,n){"object"!==s(e.watch)&&(e.watch=Object.create(null));var r=e.watch;"object"!==s(r[t])||Array.isArray(r[t])?void 0===r[t]&&(r[t]=[]):r[t]=[r[t]],r[t].push({handler:n,deep:i,immediate:a})}))}function R(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return N(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function N(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n("6c7b");var B=function(){function t(){a(this,t)}return l(t,null,[{key:"getSVG",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.DEFAULT_SIZE;if(!t.ALL_SVGS[e])return document.createElement("svg");var r=document.createElement("svg");r.innerHTML=t.ALL_SVGS[e],null!==n&&n.length>0&&t.setColor(r,n);var a=r.querySelector("svg");return null!==a&&(a.setAttribute("width","".concat(i)),a.setAttribute("height","".concat(i))),r}},{key:"setColor",value:function(t,e){if(e&&e.length>0){var n,i=R(t.getElementsByTagName("path"));try{for(i.s();!(n=i.n()).done;){var r=n.value,a=r.getAttribute("fill");null!==a&&a.length>0&&r.setAttribute("fill",e)}}catch(t){i.e(t)}finally{i.f()}}}}]),t}();B.SNAPSHOT='<svg t="1553688811386" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3995" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M901.12 227.328h-96.256c-12.288 0-23.552-7.168-28.672-19.456l-20.48-50.176c-11.264-27.648-36.864-45.056-66.56-45.056H333.824c-29.696 0-55.296 17.408-66.56 45.056l-20.48 50.176c-5.12 11.264-16.384 19.456-28.672 19.456H122.88c-39.936 0-71.68 31.744-71.68 71.68V839.68c0 39.936 31.744 71.68 71.68 71.68h778.24c39.936 0 71.68-31.744 71.68-71.68V299.008c0-38.912-31.744-71.68-71.68-71.68zM199.68 430.08C174.08 430.08 153.6 409.6 153.6 384s20.48-46.08 46.08-46.08 46.08 20.48 46.08 46.08-20.48 46.08-46.08 46.08zM512 788.48c-123.904 0-225.28-101.376-225.28-225.28s101.376-225.28 225.28-225.28 225.28 101.376 225.28 225.28-101.376 225.28-225.28 225.28z m184.32-225.28c0 101.376-82.944 184.32-184.32 184.32s-184.32-82.944-184.32-184.32 82.944-184.32 184.32-184.32 184.32 82.944 184.32 184.32z" p-id="3996" fill="#1296db"></path></svg>',B.MAXIMIZE='<svg t="1553741182915" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6244" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M874.24 604.49792c22.29248-2.14016 42.97728-11.73504 59.2384-27.56608l0 282.50112c0 48.85504-39.76192 88.59648-88.6272 88.59648l-634.9824 0c-48.87552 0-88.63744-39.74144-88.63744-88.59648L121.23136 225.1264c0-48.85504 39.76192-88.60672 88.63744-88.60672l283.26912 0c-15.24736 15.64672-25.38496 36.29056-27.60704 59.22816L209.85856 195.74784c-16.20992 0-29.39904 13.17888-29.39904 29.37856l0 634.29632c0 16.18944 13.18912 29.36832 29.39904 29.36832l634.9824 0c16.20992 0 29.39904-13.17888 29.39904-29.36832L874.24 604.49792zM890.15296 130.44736 589.2608 130.44736c-24.53504 0-44.42112 19.88608-44.42112 44.43136 0 24.53504 19.88608 44.42112 44.42112 44.42112l191.21152 0c-1.8432 1.34144-3.6864 2.70336-5.34528 4.37248L461.6704 537.10848l0-193.6384c0-24.53504-19.88608-44.42112-44.42112-44.42112-12.26752 0-23.37792 4.95616-31.41632 13.0048-8.0384 8.05888-13.01504 19.13856-13.01504 31.41632l0 300.9024c0 24.5248 19.88608 44.42112 44.42112 44.42112L718.1312 688.7936c24.53504 0 44.42112-19.89632 44.42112-44.4416 0-24.5248-19.88608-44.42112-44.42112-44.42112L526.94016 599.93088c1.8432-1.34144 3.67616-2.70336 5.33504-4.36224l313.43616-313.4464 0 193.64864c0 24.53504 19.88608 44.42112 44.42112 44.42112 12.26752 0 23.37792-4.95616 31.41632-13.0048 8.0384-8.05888 13.01504-19.1488 13.01504-31.41632L934.56384 174.86848C934.57408 150.34368 914.67776 130.44736 890.15296 130.44736z" p-id="6245" fill="#1296db"></path></svg>',B.ROI_RECT='<svg t="1553765768064" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="31493" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M768 910.222222c-17.066667 0-28.444444-11.377778-28.444444-28.444444s11.377778-28.444444 28.444444-28.444445H910.222222v-85.333333c0-17.066667 11.377778-28.444444 28.444445-28.444444s28.444444 11.377778 28.444444 28.444444v113.777778c0 17.066667-11.377778 28.444444-28.444444 28.444444h-170.666667zM910.222222 483.555556c0-17.066667 11.377778-28.444444 28.444445-28.444445s28.444444 11.377778 28.444444 28.444445v113.777777c0 17.066667-11.377778 28.444444-28.444444 28.444445s-28.444444-11.377778-28.444445-28.444445v-113.777777zM910.222222 227.555556h-142.222222c-17.066667 0-28.444444-11.377778-28.444444-28.444445s11.377778-28.444444 28.444444-28.444444h170.666667c17.066667 0 28.444444 11.377778 28.444444 28.444444v113.777778c0 17.066667-11.377778 28.444444-28.444444 28.444444s-28.444444-11.377778-28.444445-28.444444V227.555556zM398.222222 881.777778c0-17.066667 11.377778-28.444444 28.444445-28.444445h170.666666c17.066667 0 28.444444 11.377778 28.444445 28.444445s-11.377778 28.444444-28.444445 28.444444h-170.666666c-17.066667 0-28.444444-11.377778-28.444445-28.444444z m0-682.666667c0-17.066667 11.377778-28.444444 28.444445-28.444444h170.666666c17.066667 0 28.444444 11.377778 28.444445 28.444444s-11.377778 28.444444-28.444445 28.444445h-170.666666c-17.066667 0-28.444444-11.377778-28.444445-28.444445z m-341.333333 568.888889c0-17.066667 11.377778-28.444444 28.444444-28.444444s28.444444 11.377778 28.444445 28.444444V853.333333h142.222222c17.066667 0 28.444444 11.377778 28.444444 28.444445s-11.377778 28.444444-28.444444 28.444444h-170.666667c-17.066667 0-28.444444-11.377778-28.444444-28.444444v-113.777778z m56.888889-455.111111c0 17.066667-11.377778 28.444444-28.444445 28.444444S56.888889 329.955556 56.888889 312.888889v-113.777778c0-17.066667 11.377778-28.444444 28.444444-28.444444h170.666667c17.066667 0 28.444444 11.377778 28.444444 28.444444s-11.377778 28.444444-28.444444 28.444445H113.777778v85.333333z m0 284.444444c0 17.066667-11.377778 28.444444-28.444445 28.444445s-28.444444-11.377778-28.444444-28.444445v-113.777777c0-17.066667 11.377778-28.444444 28.444444-28.444445s28.444444 11.377778 28.444445 28.444445v113.777777z" p-id="31494" fill="#1296db"></path></svg>',B.ROI_POLYGON='<svg t="1553766890352" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="32066" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M85.333333 85.333333 85.333333 341.333333 182.613333 341.333333 237.653333 682.666667 170.666667 682.666667 170.666667 938.666667 426.666667 938.666667 426.666667 855.893333 640 855.466667 640 938.666667 896 938.666667 896 682.666667 817.92 682.666667 853.333333 384 938.666667 384 938.666667 128 682.666667 128 682.666667 278.613333 631.466667 341.333333 409.173333 341.333333 341.333333 248.32 341.333333 85.333333M170.666667 170.666667 256 170.666667 256 256 170.666667 256M768 213.333333 853.333333 213.333333 853.333333 298.666667 768 298.666667M269.226667 341.333333 303.36 341.333333 384 451.84 384 597.333333 640 597.333333 640 465.493333 706.986667 384 768 384 732.16 682.666667 640 682.666667 640 770.56 426.666667 770.56 426.666667 682.666667 324.266667 682.666667M469.333333 426.666667 554.666667 426.666667 554.666667 512 469.333333 512M256 768 341.333333 768 341.333333 853.333333 256 853.333333M725.333333 768 810.666667 768 810.666667 853.333333 725.333333 853.333333" p-id="32067" fill="#1296db"></path></svg>',B.SCALE_VIEW='<svg t="1553753941568" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11856" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M722.8 774.7c9.4 9.4 21.7 14.1 34 14.1s24.6-4.7 34-14.1c18.8-18.8 18.8-49.2 0-68L642.9 558.9c27.3-45 43.1-97.8 43.1-154.2 0-164.2-133.6-297.8-297.8-297.8S90.4 240.5 90.4 404.7 224 702.5 388.2 702.5c73.1 0 140.1-26.5 192-70.4l142.6 142.6zM388.2 606.4c-111.2 0-201.7-90.5-201.7-201.7C186.5 293.5 277 203 388.2 203c111.2 0 201.7 90.5 201.7 201.7 0 111.2-90.5 201.7-201.7 201.7z" p-id="11857" fill="#1296db"></path><path d="M490.8 345.9H447v-43.8c0-32.5-26.3-58.8-58.8-58.8s-58.8 26.3-58.8 58.8v43.8h-43.8c-32.5 0-58.8 26.3-58.8 58.8s26.3 58.8 58.8 58.8h43.8v43.8c0 32.5 26.3 58.8 58.8 58.8s58.8-26.3 58.8-58.8v-43.8h43.8c32.5 0 58.8-26.3 58.8-58.8 0-32.4-26.3-58.8-58.8-58.8zM791.5 133.6H689.8v96.2h101.6c27.6 0 50 22.4 50 50V356h96.2v-76.3c0-80.5-65.5-146.1-146.1-146.1zM841.5 773.3c0 27.6-22.4 50-50 50H689.8v96.2h101.6c80.6 0 146.2-65.6 146.2-146.2V697h-96.2v76.3zM197.2 773.3V697H101v76.3c0 80.6 65.6 146.2 146.2 146.2h101.6v-96.2H247.2c-27.6 0-50-22.4-50-50z" p-id="11858" fill="#1296db"></path></svg>',B.STOP='<svg t="1553752022557" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8879" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M511.968 73.152q119.424 0 220.288 58.848t159.712 159.712 58.848 220.288-58.848 220.288-159.712 159.712-220.288 58.848-220.288-58.848-159.712-159.712-58.848-220.288 58.848-220.288 159.712-159.712 220.288-58.848zM511.968 822.848q84.576 0 156-41.728t113.152-113.152 41.728-156-41.728-156-113.152-113.152-156-41.728-156 41.728-113.152 113.152-41.728 156 41.728 156 113.152 113.152 156 41.728zM347.392 694.848q-8 0-13.152-5.152t-5.152-13.152l0-329.152q0-8 5.152-13.152t13.152-5.152l329.152 0q8 0 13.152 5.152t5.152 13.152l0 329.152q0 8-5.152 13.152t-13.152 5.152l-329.152 0z" p-id="8880" fill="#1296db"></path></svg>',B.STATE_GREEN='<svg t="1553826704425" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="40346" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css"></style></defs><path d="M512 320a192.064 192.064 0 0 1 0 384 192 192 0 0 1 0-384z" fill="#1bb90a" p-id="40347"></path></svg>',B.STATE_RED='<svg t="1553826704425" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="40346" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css"></style></defs><path d="M512 320a192.064 192.064 0 0 1 0 384 192 192 0 0 1 0-384z" fill="#d81e06" p-id="40347"></path></svg>',B.STATE_YELLOW='<svg t="1553826937405" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="40561" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css"></style></defs><path d="M512 320a192.064 192.064 0 0 1 0 384 192 192 0 0 1 0-384z" fill="#dfc801" p-id="40562"></path></svg>',B.VOLUME_ON='<svg t="1555494805635" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7740" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M779.946667 357.12a42.666667 42.666667 0 1 0-66.56 53.76 170.666667 170.666667 0 0 1 0 202.24A42.666667 42.666667 0 0 0 746.666667 682.666667a42.666667 42.666667 0 0 0 33.28-15.786667 256 256 0 0 0 0-309.76z" p-id="7741" fill="#1296db"></path><path d="M837.973333 223.146667a42.666667 42.666667 0 1 0-54.613333 65.706666A290.133333 290.133333 0 0 1 896 512a290.133333 290.133333 0 0 1-112.64 223.146667 42.666667 42.666667 0 0 0-5.546667 60.16A42.666667 42.666667 0 0 0 810.666667 810.666667a42.666667 42.666667 0 0 0 27.306666-9.813334A373.333333 373.333333 0 0 0 981.333333 512a373.333333 373.333333 0 0 0-143.36-288.853333zM617.386667 133.12a42.666667 42.666667 0 0 0-42.666667 0L298.666667 322.986667H85.333333a42.666667 42.666667 0 0 0-42.666666 42.666666v292.693334a42.666667 42.666667 0 0 0 42.666666 42.666666h213.333334l273.493333 187.733334A45.226667 45.226667 0 0 0 597.333333 896a42.666667 42.666667 0 0 0 42.666667-42.666667V170.666667a42.666667 42.666667 0 0 0-22.613333-37.546667z" p-id="7742" fill="#1296db"></path></svg>',B.VOLUME_OFF='<svg t="1555494833118" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1596" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M721.493333 600.746667l61.44 61.44a256 256 0 0 0-2.986666-305.066667 42.666667 42.666667 0 1 0-66.56 53.76 170.666667 170.666667 0 0 1 8.106666 189.866667z" p-id="1597" fill="#1296db"></path><path d="M896 512a277.76 277.76 0 0 1-75.946667 187.306667l60.586667 60.586666A363.946667 363.946667 0 0 0 981.333333 512a373.333333 373.333333 0 0 0-143.36-288.853333 42.666667 42.666667 0 1 0-54.613333 65.706666A290.133333 290.133333 0 0 1 896 512zM640 519.253333V170.666667a42.666667 42.666667 0 0 0-66.986667-35.413334L384 264.533333zM202.24 322.986667H85.333333a42.666667 42.666667 0 0 0-42.666666 42.666666v292.693334a42.666667 42.666667 0 0 0 42.666666 42.666666h213.333334l273.493333 187.733334A45.226667 45.226667 0 0 0 597.333333 896a42.666667 42.666667 0 0 0 42.666667-42.666667v-92.586666zM200.96 140.373333a42.666667 42.666667 0 0 0-60.586667 60.586667l682.666667 682.666667a42.666667 42.666667 0 0 0 60.586667 0 42.666667 42.666667 0 0 0 0-60.586667z" p-id="1598" fill="#1296db"></path></svg>',B.RECORD='<svg t="1561699691315" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1847" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M704 434.496l131.7952-131.7888a38.4 38.4 0 0 1 65.5488 27.1552v388.48a38.4 38.4 0 0 1-65.5488 27.1488L704 613.7024V729.6a38.4 38.4 0 0 1-38.4 38.4H166.4a38.4 38.4 0 0 1-38.4-38.4V345.6a38.4 38.4 0 0 1 38.4-38.4h499.2a38.4 38.4 0 0 1 38.4 38.4v88.896zM281.6 524.8c42.4128 0 76.8-34.3872 76.8-76.8s-34.3872-76.8-76.8-76.8-76.8 34.3872-76.8 76.8 34.3872 76.8 76.8 76.8z" fill="#d81e06" p-id="1848"></path></svg>',B.TALK_ON='<svg class="icon" width="32px" height="32.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path fill="#1296db" d="M512 683.52c130.56 0 235.52-102.4 235.52-232.96V256c0-130.56-104.96-232.96-235.52-232.96s-235.52 102.4-235.52 232.96v194.56c0 130.56 102.4 232.96 235.52 232.96z m368.64-281.6c0-23.04-20.48-43.52-46.08-43.52s-43.52 20.48-43.52 43.52c0 5.12 0 10.24 2.56 12.8v33.28c0 151.04-125.44 276.48-281.6 276.48-153.6 0-281.6-125.44-281.6-276.48V409.6c0-2.56 2.56-5.12 2.56-10.24 0-23.04-20.48-43.52-43.52-43.52-25.6 0-43.52 20.48-43.52 43.52v64c0 186.88 140.8 335.36 320 360.96v87.04h-122.88c-25.6 0-46.08 20.48-46.08 46.08s20.48 43.52 46.08 43.52h332.8c28.16 0 43.52-17.92 43.52-43.52 0-23.04-17.92-46.08-43.52-46.08h-122.88v-87.04c184.32-20.48 327.68-174.08 327.68-360.96v-61.44z m0 0" /></svg>',B.TALK_OFF='<svg class="icon" width="32px" height="32.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path fill="#1296db" d="M840.533333 34.133333c17.066667 17.066667 17.066667 42.666667 0 59.733334l-682.666666 682.666666c-8.533333 8.533333-19.2 12.8-29.866667 12.8s-21.333333-4.266667-29.866667-12.8c-17.066667-17.066667-17.066667-42.666667 0-59.733333L196.266667 618.666667C179.2 578.133333 170.666667 535.466667 170.666667 490.666667c0-23.466667 19.2-42.666667 42.666666-42.666667s42.666667 19.2 42.666667 42.666667c0 21.333333 2.133333 40.533333 6.4 59.733333l36.266667-36.266667c0-8.533333-2.133333-14.933333-2.133334-23.466666V234.666667c0-117.333333 96-213.333333 213.333334-213.333334 57.6 0 110.933333 21.333333 151.466666 61.866667 10.666667 10.666667 21.333333 23.466667 29.866667 38.4l87.466667-87.466667c19.2-17.066667 44.8-17.066667 61.866666 0zM384 430.933333L629.333333 185.6c-6.4-14.933333-14.933333-27.733333-27.733333-40.533333C578.133333 119.466667 546.133333 106.666667 512 106.666667c-70.4 0-128 57.6-128 128v196.266666zM512 704c117.333333 0 213.333333-96 213.333333-213.333333v-128c0-23.466667-19.2-42.666667-42.666666-42.666667s-42.666667 19.2-42.666667 42.666667v128c0 70.4-57.6 128-128 128-25.6 0-51.2-8.533333-72.533333-23.466667-19.2-12.8-46.933333-8.533333-59.733334 10.666667-12.8 19.2-8.533333 46.933333 10.666667 59.733333C426.666667 691.2 467.2 704 512 704" /><path fill="#1296db" d="M853.333333 490.666667c0-23.466667-19.2-42.666667-42.666666-42.666667s-42.666667 19.2-42.666667 42.666667c0 140.8-115.2 256-256 256-57.6 0-115.2-21.333333-162.133333-57.6-19.2-14.933333-44.8-12.8-59.733334 6.4-14.933333 19.2-12.8 44.8 6.4 59.733333 49.066667 40.533333 108.8 66.133333 172.8 74.666667V896h-128c-23.466667 0-42.666667 19.2-42.666666 42.666667s19.2 42.666667 42.666666 42.666666h341.333334c23.466667 0 42.666667-19.2 42.666666-42.666666s-19.2-42.666667-42.666666-42.666667h-128v-66.133333c168.533333-21.333333 298.666667-166.4 298.666666-339.2" /></svg>',B.PTZ_CTL='<svg t="1591624538177" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4797" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M1013.474793 529.83766c-15.388062 9.085203-266.877827 154.732357-285.105015 164.669297a20.384923 20.384923 0 0 1-30.832906-17.659363v-329.338594a20.498488 20.498488 0 0 1 31.457514-17.772928l284.480407 164.669297a20.498488 20.498488 0 0 1 0 35.432291zM676.697689 326.499469H347.018399a20.384923 20.384923 0 0 1-17.659363-30.832907c10.107288-18.227188 155.811225-269.603387 164.669298-284.991449a20.498488 20.498488 0 0 1 35.716202 0c12.378589 21.350226 157.28757 271.817906 164.669298 284.366842a20.498488 20.498488 0 0 1-17.716145 31.400731z m-381.010685 368.177836c-18.227188-10.107288-269.603387-155.754442-284.991449-164.669298a20.498488 20.498488 0 0 1 0-35.716203l284.366841-164.669297a20.498488 20.498488 0 0 1 31.457514 17.772928v329.338594a20.384923 20.384923 0 0 1-30.832906 17.772928z m51.104265 2.839125h329.679289a20.498488 20.498488 0 0 1 17.772928 31.457514c-7.21138 12.548936-152.120361 263.073398-164.669297 284.480407a20.498488 20.498488 0 0 1-35.716203 0c-9.085203-15.388062-154.789139-266.877827-164.669297-285.105014a20.384923 20.384923 0 0 1 17.82971-30.889689z" p-id="4798" fill="#1296db"></path></svg>',B.ALL_SVGS={snapshot:B.SNAPSHOT,maximize:B.MAXIMIZE,"roi-rect":B.ROI_RECT,"roi-polygon":B.ROI_POLYGON,"scale-view":B.SCALE_VIEW,stop:B.STOP,"state-green":B.STATE_GREEN,"state-red":B.STATE_RED,"state-yellow":B.STATE_YELLOW,"volume-on":B.VOLUME_ON,"volume-off":B.VOLUME_OFF,"talk-on":B.TALK_ON,"talk-off":B.TALK_OFF,record:B.RECORD,ptz:B.PTZ_CTL},B.DEFAULT_SIZE=28;var z=function t(){a(this,t)};z.STATE=1,z.NAME=2,z.SPEED=4,z.ALL=65535;var F=function(){function t(e,n){a(this,t),this.box=e,this.stateSpan=null,this.nameSpan=null,this.speedSpan=null,this.isShow=!0,this.titleBar=document.createElement("div"),this.titleBar.classList.add("vat-title"),this.stateSpan=document.createElement("span"),this.stateSpan.classList.add("state"),this.titleBar.appendChild(this.stateSpan),this.nameSpan=document.createElement("span"),this.nameSpan.classList.add("vat-name"),this.nameSpan.innerText="未知设备",this.titleBar.appendChild(this.nameSpan),this.speedSpan=document.createElement("span"),this.speedSpan.classList.add("vat-speed"),this.speedSpan.innerText="20.5KB/s",this.titleBar.appendChild(this.speedSpan),this.box.appendChild(this.titleBar),this.hasTitleBar=0!==n,this.autoShow(),0==(n&z.STATE)&&(this.stateSpan.style.display="none"),0==(n&z.NAME)&&(this.nameSpan.style.display="none"),0==(n&z.SPEED)&&(this.speedSpan.style.display="none")}return l(t,[{key:"adjustWidth",value:function(t){this.nameSpan&&(this.nameSpan.style.maxWidth="".concat(t-120,"px"))}},{key:"show",value:function(){this.isShow=!0,this.titleBar.style.display="block"}},{key:"hide",value:function(){this.isShow=!1,this.titleBar.style.display="none"}},{key:"height",value:function(){return this.isShow?this.titleBar.offsetHeight:0}},{key:"autoShow",value:function(){this.hasTitleBar?this.show():this.hide()}},{key:"clear",value:function(){this.speedSpan&&(this.speedSpan.innerText=""),this.nameSpan&&(this.nameSpan.innerText=""),this.stateSpan&&(this.stateSpan.innerHTML=""),this.titleBar.style.display="none"}},{key:"setState",value:function(t){this.stateSpan&&(this.stateSpan.innerHTML="","red"===t?this.stateSpan.appendChild(B.getSVG("state-red",null,16)):"green"===t?this.stateSpan.appendChild(B.getSVG("state-green",null,16)):"yellow"===t&&this.stateSpan.appendChild(B.getSVG("state-yellow",null,16)))}},{key:"setName",value:function(t){this.nameSpan&&(this.nameSpan.innerText=t,this.nameSpan.title=t)}},{key:"setSpeed",value:function(t){var e;e=t<1024?"".concat(t," B/s"):t<1048576?"".concat(Math.round(t/10.24)/100," KB/s"):"".concat(Math.round(t/10485.76)/100," MB/s"),this.speedSpan&&(this.speedSpan.innerText=e)}}]),t}();function V(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function W(t){return function(t){if(Array.isArray(t))return V(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return V(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return H(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function H(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}F.STATE_CLOSE="red",F.STATE_WAITTING="yellow",F.STATE_RUNNING="green";var G=function(){function t(e,n,i){var r=this;a(this,t),this.onEscape=null,this.onSave=null,this._width=0,this._height=0,this._left=0,this._top=0,this.box=e,this.drawType=t.DRAW_NONE,this.oldDiagrams=[],this.diagrams=[],this.drawingDiagram=null,this._isDrawing=!1,this.maxRoi=n,this.storeCanvas=document.createElement("canvas"),this.storeCanvas.classList.add("vat-roi-view"),this.box.appendChild(this.storeCanvas),this.canvas=document.createElement("canvas"),this.canvas.classList.add("vat-roi-draw"),this.canvas.tabIndex=0,this.box.appendChild(this.canvas),this.ctx=this.canvas.getContext("2d"),this.menu=null,this.isShowMenu=i,this.lineColor="red";var o=this;this.canvas.onmousedown=function(e){var n=r.transPoint(e);if(2!==e.buttons)if(1!==e.buttons);else if(o.drawType===t.DRAW_RECT){if(o._isDrawing)return void(o._isDrawing=!1);o.drawingDiagram={points:[{x:n.x,y:n.y},{x:n.x,y:n.y}],type:o.drawType,width:r._width,height:r._height,color:r.lineColor},o._isDrawing=!0}else o.drawType===t.DRAW_POLYGON&&(null===o.drawingDiagram?o.drawingDiagram={points:[{x:n.x,y:n.y}],type:o.drawType,width:r._width,height:r._height,color:r.lineColor}:o.drawingDiagram.points.push({x:n.x,y:n.y}),o._isDrawing=!0)},this.canvas.onmouseup=function(e){if(o._isDrawing){var n=r.transPoint(e);if(o.drawType===t.DRAW_RECT)o.drawingDiagram&&(o.drawingDiagram.points[1].x=n.x,o.drawingDiagram.points[1].y=n.y),o._isDrawing=!1;else if(o.drawType===t.DRAW_POLYGON&&null!==o.drawingDiagram&&null!==o.ctx){o.ctx.beginPath();var i=o.drawingDiagram.points[o.drawingDiagram.points.length-1];o.ctx.moveTo(i.x,i.y),o.ctx.lineTo(n.x,n.y),o.ctx.stroke(),o.ctx.closePath()}}},this.canvas.onmousemove=function(e){if(o._isDrawing&&null!==o.drawingDiagram&&null!==o.ctx){var n=r.transPoint(e);if(o.ctx.strokeStyle=r.lineColor,o.ctx.lineWidth=2,o.drawType===t.DRAW_RECT){o.ctx.clearRect(0,0,o._width,o._height);var i=o.drawingDiagram.points[0].x,a=o.drawingDiagram.points[0].y,s=n.x-i,l=n.y-a;o.ctx.strokeRect(i,a,s,l),o.drawingDiagram.points[1].x=n.x,o.drawingDiagram.points[1].y=n.y}else if(o.drawType===t.DRAW_POLYGON){var c=o.drawingDiagram.points;o.ctx.clearRect(0,0,o._width,o._height),o.ctx.beginPath(),o.ctx.moveTo(c[0].x,c[0].y);for(var u=1;u<c.length;u++)o.ctx.lineTo(c[u].x,c[u].y);o.ctx.stroke(),o.ctx.closePath(),o.ctx.beginPath(),o.ctx.strokeStyle="yellow",o.ctx.moveTo(c[0].x,c[0].y),o.ctx.lineTo(n.x,n.y),o.ctx.lineTo(c[c.length-1].x,c[c.length-1].y),o.ctx.stroke(),o.ctx.closePath()}}},this.canvas.oncontextmenu=function(t){t.preventDefault(),r.isShowMenu&&r.showMenu(t)},this.canvas.style.display="none"}return l(t,[{key:"resize",value:function(t,e,n,i){this._left=t,this._top=e,this._width=n,this._height=i,this.canvas.width=n,this.canvas.height=i,this.canvas.style.top="".concat(e,"px"),this.canvas.style.left="".concat(t,"px"),this.storeCanvas.width=n,this.storeCanvas.height=i,this.storeCanvas.style.top="".concat(e,"px"),this.storeCanvas.style.left="".concat(t,"px"),this._width>0&&this._height>0&&(this.dumpDiagrams(),this.updateDrawing())}},{key:"destroy",value:function(){this.box.removeChild(this.storeCanvas),this.box.removeChild(this.canvas)}},{key:"start",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.drawType=e,null!==n&&(this.lineColor=n),this.canvas.style.display="",this.ctx&&(this.ctx.textAlign="center",this.ctx.textBaseline="middle",this.ctx.strokeStyle="red",this.ctx.fillStyle="red",this.ctx.font="16px Arial",this.drawType===t.DRAW_RECT?this.ctx.fillText("开始绘制矩形...",this.canvas.width/2,this.canvas.height/2-20):this.ctx.fillText("开始绘制多边形...",this.canvas.width/2,this.canvas.height/2-20),this.ctx.font="14px Arial",this.ctx.fillStyle="#ee0000",this.isShowMenu&&this.ctx.fillText("鼠标右键更多操作",this.canvas.width/2,this.canvas.height/2+20)),this.storeCanvas.style.background="#00000088",this.oldDiagrams=W(this.diagrams),this.canvas.focus()}},{key:"stop",value:function(){this.drawingDiagram=null,this._isDrawing=!1,this.drawType=t.DRAW_NONE,this.canvas.style.display="none",this.ctx&&this.ctx.clearRect(0,0,this._width,this._height),this.storeCanvas.style.background=""}},{key:"setROI",value:function(t){this.diagrams=t,this.oldDiagrams=W(this.diagrams),this.dumpDiagrams()}},{key:"saveQuit",value:function(){return!!this.checkDrawing()&&(this.diagrams.length+this.drawingCount()>this.maxRoi?(this.showMsg("已达到绘图数量限制!!"),!1):(this.saveDrawing(),this.onSave&&this.onSave(this.diagrams),!0))}},{key:"isUserDrawing",value:function(){return this.drawType!==t.DRAW_NONE}},{key:"showMsg",value:function(t){this.ctx&&(this.ctx.textAlign="center",this.ctx.textBaseline="middle",this.ctx.strokeStyle="red",this.ctx.fillStyle="red",this.ctx.font="16px Arial",this.ctx.fillText(t,this.canvas.width/2,this.canvas.height/2))}},{key:"dumpDiagrams",value:function(){var e=this.diagrams,n=this.storeCanvas.getContext("2d");if(n&&(n.clearRect(0,0,this.storeCanvas.width,this.storeCanvas.height),null!==e&&0!==e.length)){var i=this.storeCanvas.width,r=this.storeCanvas.height;n.strokeStyle=this.lineColor,n.lineWidth=2;var a,o=U(e);try{for(o.s();!(a=o.n()).done;){var s=a.value;s.color?n.strokeStyle=s.color:n.strokeStyle=this.lineColor;var l=i/s.width,c=r/s.height;if(s.type===t.DRAW_RECT){var u=this.scalePoint(s.points[0].x,l,i),h=this.scalePoint(s.points[0].y,c,r),d=this.scalePoint(s.points[1].x,l,i)-u,f=this.scalePoint(s.points[1].y,c,r)-h;n.strokeRect(u,h,d,f)}else if(s.type===t.DRAW_POLYGON){var p=this.scalePoint(s.points[0].x,l,i),g=this.scalePoint(s.points[0].y,c,r);n.beginPath(),n.moveTo(p,g);for(var m=1;m<s.points.length;m++){var v=this.scalePoint(s.points[m].x,l,i),y=this.scalePoint(s.points[m].y,c,r);n.lineTo(v,y)}n.lineTo(p,g),n.stroke(),n.closePath()}}}catch(t){o.e(t)}finally{o.f()}}}},{key:"checkDrawing",value:function(){if(null===this.drawingDiagram)return!0;var e,n=U(this.drawingDiagram.points);try{for(n.s();!(e=n.n()).done;){var i=e.value;i.x<0&&(i.x=0),i.y<0&&(i.y=0),i.x>this.drawingDiagram.width&&(i.x=this.drawingDiagram.width),i.y>this.drawingDiagram.height&&(i.y=this.drawingDiagram.height)}}catch(t){n.e(t)}finally{n.f()}if(this.drawingDiagram.type===t.DRAW_RECT){var r=this.drawingDiagram.points;2===r.length&&r[0].x===r[1].x&&r[0].y===r[1].y&&(this.drawingDiagram=null)}else if(this.drawingDiagram.type===t.DRAW_POLYGON&&this.drawingDiagram.points.length<3)return this.showMsg("至少需要画3个点!!"),!1;return!0}},{key:"saveDrawing",value:function(){null!=this.drawingDiagram&&((this.drawingDiagram.type===t.DRAW_RECT&&2===this.drawingDiagram.points.length||this.drawingDiagram.type===t.DRAW_POLYGON&&this.drawingDiagram.points.length>2)&&this.diagrams.push(this.drawingDiagram),this.drawingDiagram=null,this.dumpDiagrams())}},{key:"updateDrawing",value:function(){if(this.ctx){if(this.ctx.clearRect(0,0,this._width,this._height),null!=this.drawingDiagram){if(this._width!==this.drawingDiagram.width||this._height!==this.drawingDiagram.height){var e,n=this._width/this.drawingDiagram.width,i=this._height/this.drawingDiagram.height,r=U(this.drawingDiagram.points);try{for(r.s();!(e=r.n()).done;){var a=e.value;a.x=a.x*n,a.y=a.y*i}}catch(t){r.e(t)}finally{r.f()}this.drawingDiagram.width=this._width,this.drawingDiagram.height=this._height}if(this.ctx.strokeStyle=this.lineColor,this.drawType===t.DRAW_RECT&&2===this.drawingDiagram.points.length){var o=this.drawingDiagram.points[0].x,s=this.drawingDiagram.points[0].y,l=this.drawingDiagram.points[1].x-o,c=this.drawingDiagram.points[1].y-s;this.ctx.strokeRect(o,s,l,c)}else if(this.drawType===t.DRAW_POLYGON&&this.drawingDiagram.points.length>=2){var u=this.drawingDiagram.points;this.ctx.beginPath(),this.ctx.moveTo(u[0].x,u[0].y);for(var h=1;h<u.length;h++)this.ctx.lineTo(u[h].x,u[h].y);this.ctx.lineTo(u[0].x,u[0].y),this.ctx.stroke(),this.ctx.closePath()}}}else console.warn("updateDrawing ctx is null")}},{key:"showMenu",value:function(t){var e=this,n=this.transPoint(t);if(null===this.menu){this.menu=document.createElement("ul"),this.menu.classList.add("vat-roi-menu"),this.box.appendChild(this.menu);var i=this;this.menu.onmouseleave=function(t){i.menu&&(i.menu.style.display="none")},this.createMenuItem("保存&退出",(function(){i.checkDrawing()&&(i.diagrams.length+i.drawingCount()>i.maxRoi?i.showMsg("已达到绘图数量限制!!"):(i.saveDrawing(),i.onSave&&i.onSave(e.diagrams)))})),this.createMenuItem("取消&退出",(function(){i.diagrams=i.oldDiagrams,i.dumpDiagrams(),i.onEscape&&i.onEscape()})),this.createMenuItem("保存&继续",(function(){i.checkDrawing()&&(e.diagrams.length+i.drawingCount()>e.maxRoi?i.showMsg("已达到绘图数量限制!!"):(e.saveDrawing(),e.updateDrawing()),i._isDrawing=!1)})),this.createMenuItem("擦除一个",(function(){i._isDrawing=!1,null!=i.drawingDiagram?(i.drawingDiagram=null,i.ctx&&i.ctx.clearRect(0,0,i._width,i._height)):i.diagrams.length>0&&(i.diagrams.pop(),i.dumpDiagrams())})),this.createMenuItem("擦除所有",(function(){i._isDrawing=!1,null!=i.drawingDiagram&&(i.drawingDiagram=null,i.ctx&&i.ctx.clearRect(0,0,i._width,i._height)),i.diagrams.length>0&&(i.diagrams=[],i.dumpDiagrams())}))}this.menu.style.display="block",this.menu.style.left="".concat(n.x,"px"),this.menu.style.top="".concat(n.y,"px")}},{key:"createMenuItem",value:function(t,e){if(null!==this.menu){var n=document.createElement("li");n.innerText=t;var i=this;n.onclick=function(t){e(),i.menu&&(i.menu.style.display="none")},this.menu.appendChild(n)}}},{key:"drawingCount",value:function(){return null==this.drawingDiagram?0:this.drawingDiagram.points.length>0?1:0}},{key:"transPoint",value:function(t){var e={x:t.offsetX,y:t.offsetY};return 0===e.x&&0===e.y&&(e.x=t.layerX,e.y=t.layerY),e}},{key:"scalePoint",value:function(t,e,n){return(t*=e)<0?t=0:t>n&&(t=n),t}}]),t}();function j(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function Y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}G.DRAW_NONE=0,G.DRAW_RECT=1,G.DRAW_POLYGON=2,n("28a5");var q=function(){function t(){a(this,t)}return l(t,null,[{key:"parseUrl",value:function(e){return void 0===e||0===e.length?e||"":0!==e.indexOf("plive://")&&0!==e.indexOf("psub://")&&0!==e.indexOf("vms://")||e.indexOf("token=")>0||void 0===t.token||0===t.token.length?e:e.indexOf("?")>0?e+"&token="+t.token:e+"?token="+t.token}},{key:"parseVodUrl",value:function(t){var e={id:"",ip:"",port:0,start:"",end:"",type:0};if(0===t.indexOf("vms://")){var n=t.indexOf("/",6);if(n<0)return e;var i=t.indexOf("@",6);i<0&&(i=6);var r=t.substring(i,n).split(":");e.ip=r[0],e.port=parseInt(r[1],10),i=t.indexOf("/",n+1),n=t.indexOf("/",i+1),e.id=t.substring(i+1,n);var a,o={},s=j(t.substring(t.indexOf("?",i)+1).split("&"));try{for(s.s();!(a=s.n()).done;){var l=a.value.split("=",2);o[l[0]]=l[1]}}catch(t){s.e(t)}finally{s.f()}e.start=o.beginTime,e.end=o.endTime,e.type=parseInt(o.type?o.type:1,10)}return e}}]),t}(),K=function(){function t(){a(this,t),this.websocket=null,this.faceRectUrl=void 0,this.faceSnapUrl=void 0,this.extUrl=void 0,this.maxCacheTime=3e4,this.maxCacheCount=750}return l(t,[{key:"setUrl",value:function(t,e,n){this.faceRectUrl=t,this.faceSnapUrl=e,this.extUrl=n,this.websocket&&this.websocket.readyState===WebSocket.OPEN&&this.start(this.websocket)}},{key:"start",value:function(e){this.websocket=e;var n=JSON.stringify({cmd:t.CMD_OPEN_FACE,faceRectUrl:q.parseUrl(this.faceRectUrl),faceSnapUrl:q.parseUrl(this.faceSnapUrl),extUrl:q.parseUrl(this.extUrl)});this.websocket.send(n)}},{key:"stop",value:function(){if(null!==this.websocket&&this.websocket.readyState===WebSocket.OPEN){var e=JSON.stringify({cmd:t.CMD_CLOSE_FACE});this.websocket.send(e)}}}]),t}();K.CMD_OPEN_FACE="open_face",K.CMD_CLOSE_FACE="close_face",n("a481");var X=function(){function t(){a(this,t)}return l(t,null,[{key:"get",value:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(console.log(n,e[n]),t=t.replace("{".concat(n,"}"),e[n]));return t}},{key:"set",value:function(e,n){"plugin-service-disconnected"===e?t.PLUGIN_SERVICE_DISCONNECTED=n:"plugin-service-mismatch"===e?t.PLUGIN_SERVICE_MISMATCH=n:"plugin-service-notfound"===e?t.PLUGIN_SERVICE_NOTFOUND=n:"plugin-service-version-require"===e?t.PLUGIN_SERVICE_VERSION_REQUIRE=n:"plugin-service-error"===e?t.PLUGIN_SERVICE_ERROR=n:"plugin-download"===e?t.PLUGIN_DOWNLOAD=n:"plugin-vod-error"===e?t.PLUGIN_VOD_ERROR=n:"stream-no-data"===e?t.STREAM_NO_DATA=n:"stream-concurrency-limit"===e?t.STREAM_CONCURRENCY_LIMIT=n:"user-concurrency-limit"===e?t.USER_CONCURRENCY_LIMIT=n:"stream-connect-failed"===e?t.STREAM_CONNECT_FAILED=n:"stream-notfound"===e?t.STREAM_NOTFOUND=n:"stream-auth-failed"===e?t.STREAM_AUTH_FAILED=n:"stream-unknown-error"===e?t.STREAM_UNKNOWN_ERROR=n:"stream-protocol-error"===e?t.STREAM_PROTOCOL_ERROR=n:"stream-disconnected"===e?t.STREAM_DISCONNECTED=n:"stream-unsupported"===e?t.STREAM_UNSUPPORTED=n:"stream-open-failed"===e&&(t.STREAM_OPEN_FAILED=n)}}]),t}();function Z(t,e,n){return(Z="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}})(t,e,n||t)}X.PLUGIN_SERVICE_NOTFOUND="插件服务未安装或未启动",X.PLUGIN_SERVICE_DISCONNECTED="插件服务连接断开,请检查服务是否启动并刷新浏览器",X.PLUGIN_SERVICE_MISMATCH="插件版本不兼容",X.PLUGIN_SERVICE_VERSION_REQUIRE="插件服务版本不匹配,当前版本:{installed_version} 要求:{require_version}",X.PLUGIN_SERVICE_ERROR="连接插件服务错误",X.PLUGIN_DOWNLOAD="下载",X.PLUGIN_VOD_ERROR="启动回放进程失败",X.STREAM_NO_DATA="无视频数据",X.STREAM_CONCURRENCY_LIMIT="相机播放路数达到上限",X.USER_CONCURRENCY_LIMIT="用户播放路数达到上限",X.STREAM_CONNECT_FAILED="连接失败",X.STREAM_NOTFOUND="找不到流",X.STREAM_AUTH_FAILED="用户名或密码错误",X.STREAM_UNKNOWN_ERROR="未知异常",X.STREAM_PROTOCOL_ERROR="对方协议错误",X.STREAM_DISCONNECTED="连接断开",X.STREAM_UNSUPPORTED="不支持流类型",X.STREAM_OPEN_FAILED="打开流失败",n("9c29");var Q=function(){function t(){a(this,t),this.ctx=null,this.canvas=null,this.x1080pFactor=1,this.y1080pFactor=1,this.filter=null}return l(t,[{key:"setup",value:function(t){return this.canvas=t,this.ctx=t.getContext("2d"),null!==this.ctx}},{key:"clear",value:function(){this.ctx&&this.canvas&&this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height)}},{key:"destroy",value:function(){this.ctx=null,this.canvas=null}},{key:"resize",value:function(t,e){this.x1080pFactor=t/1920,this.y1080pFactor=e/1080}},{key:"setFilter",value:function(t){this.filter=t}}]),t}();function J(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}var $=function(t){u(n,t);var e=J(n);function n(){var t;return a(this,n),(t=e.call(this)).imagePool=[],t.imageCount=0,t.onDraw=null,t.timerId=0,t.imageList=[],t.isShow=!1,t}return l(n,[{key:"setAsync",value:function(t,e){var n=this;this.onDraw=e,0!==this.timerId&&clearInterval(this.timerId),this.timerId=setInterval((function(){n.onPlayTimer()}),1e3/t)}},{key:"render",value:function(t,e,n){this.isShow=!0;var i=this,r=new Blob([e]);if(i.imagePool.length>0){var a=i.imagePool.shift();a.image.src=URL.createObjectURL(r),a.time=n}else{var o={image:new Image,time:n};o.time=n,o.image.onload=function(t){i.onLoad(o)},o.image.onerror=function(t){o.image.src.length>0&&URL.revokeObjectURL(o.image.src),i.imagePool.push(o)},i.imageCount++,o.image.src=URL.createObjectURL(r)}}},{key:"clear",value:function(){Z(f(n.prototype),"clear",this).call(this),this.imageList=[],this.isShow=!1}},{key:"destroy",value:function(){0!==this.timerId&&(clearInterval(this.timerId),this.timerId=0),Z(f(n.prototype),"destroy",this).call(this)}},{key:"onLoad",value:function(t){if(!this.isShow)return URL.revokeObjectURL(t.image.src),void this.imagePool.push(t);0!==this.timerId?this.imageList.push(t):(this.ctx&&this.canvas&&this.ctx.drawImage(t.image,0,0,this.canvas.width,this.canvas.height),this.onDraw&&this.onDraw(t.time),URL.revokeObjectURL(t.image.src),this.imagePool.push(t))}},{key:"onPlayTimer",value:function(){if(this.isShow&&null!==this.ctx&&null!==this.canvas&&0!==this.imageList.length){for(;this.imageList.length>3;){var t=this.imageList.shift();void 0!==t&&(URL.revokeObjectURL(t.image.src),this.imagePool.push(t))}var e=this.imageList.shift();void 0!==e&&(this.ctx.drawImage(e.image,0,0,this.canvas.width,this.canvas.height),this.onDraw&&this.onDraw(e.time),URL.revokeObjectURL(e.image.src),this.imagePool.push(e))}}}]),n}(Q);$.MAX_CACHE_IMAGE_COUNT=10,n("63d9"),n("34ef"),n("af56");var tt=function(){function t(e){a(this,t),this.gl=e,this.texture=e.createTexture(),null!==this.texture&&(e.bindTexture(e.TEXTURE_2D,this.texture),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE))}return l(t,[{key:"bind",value:function(t,e,n){this.gl.activeTexture([this.gl.TEXTURE0,this.gl.TEXTURE1,this.gl.TEXTURE2][t]),this.gl.bindTexture(this.gl.TEXTURE_2D,this.texture),this.gl.uniform1i(this.gl.getUniformLocation(e,n),t)}},{key:"fill",value:function(t,e,n){this.gl.bindTexture(this.gl.TEXTURE_2D,this.texture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.LUMINANCE,t,e,0,this.gl.LUMINANCE,this.gl.UNSIGNED_BYTE,n)}}]),t}(),et=function(){function t(e,n){a(this,t),this.gl=e,this.y=new tt(this.gl),this.u=new tt(this.gl),this.v=new tt(this.gl),this.y.bind(0,n,"YTexture"),this.u.bind(1,n,"UTexture"),this.v.bind(2,n,"VTexture")}return l(t,[{key:"render",value:function(t,e,n){var i=e*n,r=i+i/4,a=e>>1,o=n>>1;this.gl.viewport(0,0,this.gl.canvas.width,this.gl.canvas.height),this.gl.clearColor(0,0,0,0),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.y.fill(e,n,t.subarray(0,i)),this.u.fill(a,o,t.subarray(i,r)),this.v.fill(a,o,t.subarray(r,t.length)),this.gl.drawArrays(this.gl.TRIANGLE_STRIP,0,4)}},{key:"clear",value:function(){this.gl.viewport(0,0,this.gl.canvas.width,this.gl.canvas.height),this.gl.clearColor(0,0,0,0),this.gl.clear(this.gl.COLOR_BUFFER_BIT)}},{key:"getGl",value:function(){return this.gl}}]),t}(),nt=function(){function t(){a(this,t),this.canvas=null,this.webgl=null,this.onDraw=null,this.timerId=0,this.cacheList=[]}return l(t,[{key:"setAsync",value:function(t,e){var n=this;this.onDraw=e,0!==this.timerId&&clearInterval(this.timerId),this.timerId=setInterval((function(){for(;n.cacheList.length>3;)n.cacheList.shift();var t=n.cacheList.shift();if(void 0!==t&&n.webgl){var e=new Uint16Array(t.data,4,2);n.webgl.render(new Uint8Array(t.data,16),e[0],e[1]),n.onDraw&&n.onDraw(t.time)}}),1e3/t)}},{key:"resize",value:function(t,e){}},{key:"clear",value:function(){this.webgl&&this.webgl.clear(),this.cacheList=[]}},{key:"destroy",value:function(){if(0!==this.timerId&&(clearInterval(this.timerId),this.timerId=0),null!==this.webgl){var t=this.webgl.getGl().getExtension("WEBGL_lose_context");null!==t&&t.loseContext()}this.webgl=null,this.canvas=null}},{key:"render",value:function(t,e,n){if(0!==this.timerId)this.cacheList.push({data:e,time:n});else if(this.webgl){var i=new Uint16Array(e,4,2);this.webgl.render(new Uint8Array(e,16),i[0],i[1])}}},{key:"setup",value:function(t){this.canvas=t;var e=t.getContext("webgl")||t.getContext("experimental-webgl");if(null===e)return!1;var n=e.createProgram();if(null===n)return!1;var i=["attribute lowp vec4 aVertexPosition;","attribute vec2 aTextureCoord;","varying lowp vec2 vTextureCoord;","void main(void) {"," gl_Position = aVertexPosition;"," vTextureCoord = aTextureCoord;","}"].join("\n"),r=e.createShader(e.VERTEX_SHADER);if(null===r)return!1;e.shaderSource(r,i),e.compileShader(r);var a=["precision lowp float;","varying lowp vec2 vTextureCoord;","uniform sampler2D YTexture;","uniform sampler2D UTexture;","uniform sampler2D VTexture;","const mat4 YUV2RGB = mat4","("," 1.1643828125, 0, 1.59602734375, -.87078515625,"," 1.1643828125, -.39176171875, -.81296875, .52959375,"," 1.1643828125, 2.017234375, 0, -1.081390625,"," 0, 0, 0, 1",");","void main(void) {"," gl_FragColor = vec4( texture2D(YTexture, vTextureCoord).x, texture2D(UTexture, vTextureCoord).x, ","texture2D(VTexture, vTextureCoord).x, 1) * YUV2RGB;","}"].join("\n"),o=e.createShader(e.FRAGMENT_SHADER);if(null===o)return!1;e.shaderSource(o,a),e.compileShader(o),e.attachShader(n,r),e.attachShader(n,o),e.linkProgram(n),e.useProgram(n),e.getProgramParameter(n,e.LINK_STATUS)||console.log("Shader link failed.");var s=e.getAttribLocation(n,"aVertexPosition");e.enableVertexAttribArray(s);var l=e.getAttribLocation(n,"aTextureCoord");e.enableVertexAttribArray(l);var c=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,c),e.bufferData(e.ARRAY_BUFFER,new Float32Array([1,1,0,-1,1,0,1,-1,0,-1,-1,0]),e.STATIC_DRAW),e.vertexAttribPointer(s,3,e.FLOAT,!1,0,0);var u=e.createBuffer();return e.bindBuffer(e.ARRAY_BUFFER,u),e.bufferData(e.ARRAY_BUFFER,new Float32Array([1,0,0,0,1,1,0,1]),e.STATIC_DRAW),e.vertexAttribPointer(l,2,e.FLOAT,!1,0,0),this.webgl=new et(e,n),!0}},{key:"setFilter",value:function(t){}}]),t}();ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=function(t,e){var n=this.byteLength;if(e=void 0===e?n:0|e,(t=0|t||0)<0&&(t=Math.max(t+n,0)),e<0&&(e=Math.max(e+n,0)),0===n||t>=n||t>=e)return new ArrayBuffer(0);var i=Math.min(n-t,e-t),r=new ArrayBuffer(i);return new Uint8Array(r).set(new Uint8Array(this,t,i)),r});var it=function(){function t(){a(this,t),this.queue=[],this.timerId=0}return l(t,[{key:"getUrl",value:function(t){var e=new Blob([t]),n=URL.createObjectURL(e);if(this.queue.push({url:n,time:performance.now()}),0===this.timerId){var i=this;this.timerId=setInterval((function(){i.check()}),1e3)}return n}},{key:"check",value:function(){if(void 0!==this.queue){for(;this.queue.length>0&&performance.now()-this.queue[0].time>t.DEFAULT_CACHE_TIME;)URL.revokeObjectURL(this.queue[0].url),this.queue.shift();0===this.queue.length&&(clearInterval(this.timerId),this.timerId=0)}else clearInterval(this.timerId)}}]),t}();it.DEFAULT_CACHE_TIME=15e3;var rt=function(){function t(e,n){a(this,t),this.box=e,this.canvas=document.createElement("canvas"),this.canvas.classList.add(n),this.box.appendChild(this.canvas),this.render=null,this.isShow=!0,this.lastRenderTime=0}return l(t,[{key:"setupRender",value:function(t){return this.render=t,this.canvas.width>0&&this.canvas.height>0&&this.render.resize(this.canvas.width,this.canvas.height),this.render.setup(this.canvas)}},{key:"stopView",value:function(){this.isShow=!1,this.render&&this.render.clear()}},{key:"destroy",value:function(){this.stopView(),this.render&&(this.render.destroy(),this.render=null),this.box&&this.canvas&&(this.box.removeChild(this.canvas),this.box=null)}},{key:"move",value:function(t,e,n,i){this.canvas.width=n,this.canvas.height=i,this.canvas.style.left="".concat(t,"px"),this.canvas.style.top="".concat(e,"px"),this.render&&this.render.resize(n,i)}},{key:"putData",value:function(t,e,n){this.isShow&&this.render&&(this.render.render(t,e,n),this.lastRenderTime=performance.now())}},{key:"restoreView",value:function(){this.isShow=!0}},{key:"getImage",value:function(t,e){e&&(t.width=this.canvas.width,t.height=this.canvas.height);var n=t.getContext("2d");return n&&n.drawImage(this.canvas,0,0,t.width,t.height),!0}},{key:"getRender",value:function(){return this.render}}]),t}();function at(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}var ot=function(t){u(n,t);var e=at(n);function n(t,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.DEFAULT_DURATION;return a(this,n),(r=e.call(this,t,i)).tmpCanvas=document.createElement("canvas"),r.syncTime=0,r.isSync=!0,r.queue=[],r.showDuration=o,r.ctx=null,r}return l(n,[{key:"setupRender",value:function(t){return null!==this.canvas&&(this.ctx=this.canvas.getContext("2d"),this.render=t,this.canvas.width>0&&this.canvas.height>0&&this.render.resize(this.canvas.width,this.canvas.height),this.render.setup(this.canvas))}},{key:"stopView",value:function(){Z(f(n.prototype),"stopView",this).call(this),this.queue=[],this.syncTime=0,null!==this.ctx&&this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height)}},{key:"move",value:function(t,e,i,r){this.tmpCanvas.width=i,this.tmpCanvas.height=r,Z(f(n.prototype),"move",this).call(this,t,e,i,r)}},{key:"putData",value:function(t,e,n){0!==this.syncTime&&this.isShow&&this.render&&this.ctx&&(this.isSync&&this.syncTime>0&&n>this.syncTime?this.queue.push({type:t,data:e,time:n}):this.renderData({type:t,data:e,time:n}))}},{key:"setSync",value:function(t){this.isSync=t,this.queue=[]}},{key:"sync",value:function(t){this.syncTime=t,0===t&&this.queue.length>0&&(this.renderData(this.queue[this.queue.length-1]),this.queue=[]);for(var e=-1,n=0;n<this.queue.length&&this.queue[n].time<=this.syncTime+10;n++)e=n;if(e>=0){if(this.syncTime-this.queue[e].time>this.showDuration){for(;e>=0;)this.queue.shift(),e--;return}for(this.renderData(this.queue[e]);e>0;)this.queue.shift(),e-=1}else this.lastRenderTime>0&&this.render&&performance.now()-this.lastRenderTime>this.showDuration&&(this.ctx&&this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.lastRenderTime=0)}},{key:"renderData",value:function(t){this.render&&this.ctx&&(this.render.render(t.type,t.data,t.time),this.lastRenderTime=performance.now())}}]),n}(rt);ot.DEFAULT_DURATION=42;var st=function(){function t(){a(this,t)}return l(t,null,[{key:"hollow",value:function(t,e,n,i,r){var a=Math.min(i,r)/3,o=e+i,s=n+r;t.moveTo(e,n+a),t.lineTo(e,n),t.lineTo(e+a,n),t.moveTo(o-a,n),t.lineTo(o,n),t.lineTo(o,n+a),t.moveTo(o,s-a),t.lineTo(o,s),t.lineTo(o-a,s),t.moveTo(e+a,s),t.lineTo(e,s),t.lineTo(e,s-a)}}]),t}();st.LINE_STYLE_SOLID=0,st.LINE_STYLE_HOWLLOW=16;var lt=function(){function t(){a(this,t)}return l(t,null,[{key:"render",value:function(e,n,i,r,a){var o=new DataView(n),s=o.getFloat32(0,!0),l=o.getUint32(16,!0),c=(n.byteLength-20)/l,u=0,h="";e.beginPath();for(var d=20;d<n.byteLength;d+=c)if(!(s>=.2&&null!==a)||a.filter(o.getUint32(d+20,!0))){var f=o.getFloat32(d,!0)*i,p=o.getFloat32(d+4,!0)*r,g=o.getFloat32(d+8,!0)*i,m=o.getFloat32(d+12,!0)*r,v="rgba(65,255,244,0.8)",y=2,x=o.getUint32(d+16,!0),b=t.LINE_STYLE_HOWLLOW;if(x>0){var _=o.getUint8(d+16),w=o.getUint8(d+17),S=o.getUint8(d+18);b=(y=o.getUint8(d+19))&t.LINE_STYLE_BYTES,y&=t.WEIGHT_BYTES,u===x?v=h:(h=v="rgba(".concat(_,", ").concat(w,", ").concat(S,", 0.8)"),u=x,e.stroke(),e.closePath(),e.strokeStyle=v,e.lineWidth=y,e.beginPath())}else 20===d&&(e.strokeStyle=v,e.lineWidth=y);t.LINE_STYLE_HOWLLOW===b?st.hollow(e,f,p,g,m):t.LINE_STYLE_SOLID===b&&e.strokeRect(f,p,g,m)}e.stroke(),e.closePath()}}]),t}();lt.LINE_STYLE_SOLID=0,lt.LINE_STYLE_HOWLLOW=16,lt.LINE_STYLE_BYTES=240,lt.WEIGHT_BYTES=15;var ct=function(){function t(){a(this,t)}return l(t,null,[{key:"render",value:function(e,n,i,r,a){for(var o=new DataView(n),s=o.getFloat32(0,!0),l=o.getUint32(16,!0),c=(n.byteLength-20)/l,u=20;u<n.byteLength;u+=c)if(!(s>=.2&&null!==a)||a.filter(o.getUint32(u+220,!0))){var h=t.parsePoints(o,u,i,r);t.renderBody(e,h)}}},{key:"parsePoints",value:function(t,e,n,i){for(var r=[],a=0;a<18;a++){var o=e+10*a,s=1===t.getUint8(o),l=t.getFloat32(o+2,!0)*n,c=t.getFloat32(o+6,!0)*i;r.push({valid:s,x:l,y:c})}return r}},{key:"drawPoint",value:function(t,e,n){t.beginPath(),t.arc(e,n,4,0,2*Math.PI),t.fill(),t.stroke()}},{key:"drawLine",value:function(t,e,n){e.valid&&n.valid&&(t.moveTo(e.x,e.y),t.lineTo(n.x,n.y))}},{key:"renderBody",value:function(e,n){e.strokeStyle="green",e.lineWidth=2,e.beginPath(),t.drawLine(e,n[16],n[14]),t.drawLine(e,n[17],n[15]),t.drawLine(e,n[14],n[0]),t.drawLine(e,n[15],n[0]),t.drawLine(e,n[0],n[1]),t.drawLine(e,n[1],n[2]),t.drawLine(e,n[2],n[3]),t.drawLine(e,n[3],n[4]),t.drawLine(e,n[1],n[5]),t.drawLine(e,n[5],n[6]),t.drawLine(e,n[6],n[7]),t.drawLine(e,n[1],n[8]),t.drawLine(e,n[8],n[9]),t.drawLine(e,n[9],n[10]),t.drawLine(e,n[1],n[11]),t.drawLine(e,n[11],n[12]),t.drawLine(e,n[12],n[13]),e.stroke(),e.closePath(),e.fillStyle="red";for(var i=0;i<18;i++)n[i].valid&&t.drawPoint(e,n[i].x,n[i].y)}}]),t}(),ut=function(){function t(){a(this,t)}return l(t,null,[{key:"render",value:function(t,e,n,i){var r=new DataView(e),a=r.getFloat32(0,!0),o=r.getUint32(12,!0),s=16;a>=.3&&(s=20);var l=(e.byteLength-s)/o;for(t.strokeStyle="rgba(65,255,244,0.8)",t.lineWidth=2,t.beginPath();s<e.byteLength;s+=l){var c=r.getFloat32(s,!0)*n,u=r.getFloat32(s+4,!0)*i,h=r.getFloat32(s+8,!0)*n,d=r.getFloat32(s+12,!0)*i;st.hollow(t,c,u,h,d)}t.stroke(),t.closePath()}}]),t}(),ht=function(){function t(){a(this,t)}return l(t,null,[{key:"render",value:function(t,e,n,i){var r=new DataView(e),a=r.getUint32(16,!0),o=(e.byteLength-20)/a;t.save(),t.scale(n,i),t.font="bold 24px Microsoft YaHei",t.textAlign="center",t.strokeStyle="#32CD3288";for(var s=20;s<e.byteLength;s+=o){var l=r.getFloat32(s,!0),c=r.getFloat32(s+4,!0),u=r.getFloat32(s+8,!0),h=r.getFloat32(s+12,!0),d=r.getUint8(s+16),f=r.getUint8(s+17),p=r.getUint8(s+18),g=r.getUint8(s+19);t.strokeRect(l,c,u,h),l+=u+5;var m=c;d>0&&(m+=33,this.drawText(t,this.BAG_TEXTS[d],l,m)),f>0&&(m+=33,this.drawText(t,this.SLEEVE_TEXTS[f],l,m)),p>0&&(m+=33,this.drawText(t,this.RIDE_TEXTS[p],l,m)),g>0&&(m+=33,this.drawText(t,this.HELMET_TEXTS[g],l,m))}t.restore()}},{key:"drawText",value:function(t,e,n,i){t.fillStyle="rgba(50, 205, 50, 0.75)",t.fillRect(n,i,140,30),t.fillStyle="rgb(0, 0, 0)",t.fillText(e,n+70,i+25)}}]),t}();ht.BAG_TEXTS=["未 知","未背单肩包","背单肩包"],ht.SLEEVE_TEXTS=["未 知","长 袖","短 袖","无 袖"],ht.RIDE_TEXTS=["未 知","未 骑 车","骑 车"],ht.HELMET_TEXTS=["未 知","未戴头盔","戴 头 盔"];var dt=function(){function t(){a(this,t)}return l(t,null,[{key:"render",value:function(e,n,i,r){var a=new DataView(n),o=a.getUint32(16,!0),s=(n.byteLength-20)/o;e.save(),e.scale(i,r),e.font="bold 24px Microsoft YaHei",e.textAlign="center",e.strokeStyle="#00CED188";for(var l=20;l<n.byteLength;l+=s){var c=a.getFloat32(l,!0),u=a.getFloat32(l+4,!0),h=a.getFloat32(l+8,!0),d=a.getFloat32(l+12,!0),f=a.getUint8(l+16),p=a.getUint8(l+17),g=a.getUint8(l+18);e.strokeRect(c,u,h,d);var m=u;f>0&&(m-=33,t.drawText(e,this.MASK_TEXTS[f],c,m)),p>0&&(m-=33,t.drawText(e,this.GENDER_TEXTS[p],c,m)),g>0&&(m-=33,t.drawText(e,this.NATION_TEXTS[g],c,m))}e.restore()}},{key:"drawText",value:function(t,e,n,i){t.fillStyle="rgba(0, 206, 209, 0.75)",t.fillRect(n,i,140,30),t.fillStyle="rgb(0, 0, 0)",t.fillText(e,n+70,i+25)}}]),t}();dt.GENDER_TEXTS=["未 知","男","女"],dt.MASK_TEXTS=["未 知","不戴口罩","戴 口 罩"],dt.NATION_TEXTS=["未 知","汉 族","维 族","少数民族"];var ft=function(){function t(){a(this,t)}return l(t,null,[{key:"render",value:function(t,e,n,i){var r=new DataView(e),a=r.getUint32(16,!0),o=(e.byteLength-20)/a;t.save(),t.scale(n,i),t.font="bold 24px Microsoft YaHei",t.textAlign="center",t.strokeStyle="#F0E68C88";for(var s=20;s<e.byteLength;s+=o){var l=r.getFloat32(s,!0),c=r.getFloat32(s+4,!0),u=r.getFloat32(s+8,!0),h=r.getFloat32(s+12,!0),d=r.getUint8(s+16),f=r.getUint8(s+17),p=r.getUint8(s+18);t.strokeRect(l,c,u,h),l+=u+5;var g=c;d>0&&(g+=33,this.drawText(t,this.COLOR_TEXTS[d],l,g)),f>0&&(g+=33,this.drawText(t,this.DIRECT_TEXTS[f],l,g)),p>0&&(g+=33,this.drawText(t,this.TYPE_TEXTS[p],l,g))}t.restore()}},{key:"drawText",value:function(t,e,n,i){t.fillStyle="rgba(240, 230, 140, 0.75)",t.fillRect(n,i,140,30),t.fillStyle="rgb(0, 0, 0)",t.fillText(e,n+70,i+25)}}]),t}();function pt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}ft.COLOR_TEXTS=["黑 色","蓝 色","棕 色","灰 色","绿 色","橘 色","粉 色","紫 色","红 色","白 色","黄 色","银 色"],ft.DIRECT_TEXTS=["后","右 后","右","右 前","前","左 前","左","左 后","未 知"],ft.TYPE_TEXTS=["轿 车","校 车","越 野 车","商 务 车","货 车","皮 卡","大 卡 车","小 卡 车","大 巴 士","小 巴 士","摩 托 车","三 轮 车","电 动 车","其它类型"];var gt=function(){function t(){a(this,t)}return l(t,[{key:"filter",value:function(t,e,n){return!0}},{key:"getDuration",value:function(t){return null}},{key:"render",value:function(t,e,n,i,r){return!1}}]),t}(),mt=function(t){u(n,t);var e=pt(n);function n(){var t;return a(this,n),(t=e.call(this)).handler=n.DEFAULT_HANDLER,t}return l(n,[{key:"render",value:function(t,e,i){null!=this.canvas&&null!==this.ctx&&(this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.handler.render(t,this.ctx,e,this.x1080pFactor,this.y1080pFactor)||(t===n.FACE_TRACK?ut.render(this.ctx,e,this.x1080pFactor,this.y1080pFactor):t===n.FACE_RECT||t===n.BODY_RECT?lt.render(this.ctx,e,this.x1080pFactor,this.y1080pFactor,this.filter):t===n.BODY_POINTS?ct.render(this.ctx,e,this.x1080pFactor,this.y1080pFactor,this.filter):t===n.POC_BODY_ATTR?ht.render(this.ctx,e,this.x1080pFactor,this.y1080pFactor):t===n.POC_FACE_ATTR?dt.render(this.ctx,e,this.x1080pFactor,this.y1080pFactor):t===n.POC_VEHICLE_ATTR&&ft.render(this.ctx,e,this.x1080pFactor,this.y1080pFactor)))}},{key:"setHandler",value:function(t){this.handler=null!==t?t:n.DEFAULT_HANDLER}}]),n}(Q);mt.FACE_TRACK=200,mt.FACE_RECT=1e4,mt.BODY_RECT=10001,mt.BODY_POINTS=10005,mt.POC_BODY_ATTR=10009,mt.POC_FACE_ATTR=10010,mt.POC_VEHICLE_ATTR=10011,mt.DEFAULT_HANDLER=new gt;var vt,yt,xt,bt,_t=function(){function t(){a(this,t)}return l(t,null,[{key:"closeWebsocket",value:function(t){null!==t&&(t.onopen=null,t.onclose=null,t.onerror=null,t.onmessage=null,t.close())}},{key:"createWebsocket",value:function(e,n){if(n&&n.length>6)return 0===n.indexOf("ws://")||0===n.indexOf("wss://")?new WebSocket(n):new WebSocket("ws://".concat(n,":").concat(e));var i=t.ipSeed%36+1;return t.ipSeed+=1,new WebSocket("ws://127.0.0.".concat(i,":").concat(e))}},{key:"isSupportWebGL",value:function(){if(null===t.hasGL){var e=document.createElement("canvas"),n=e.getContext("webgl")||e.getContext("experimental-webgl");t.hasGL=null!==n}return t.hasGL}},{key:"stringToUnix",value:function(t){return!t||t.length<19?0:Math.floor(new Date(t).getTime()/1e3)}}]),t}();function wt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}_t.hasGL=null,_t.ipSeed=0,function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.YUV=1]="YUV",t[t.JPEG=2]="JPEG"}(vt||(vt={})),function(t){t[t.YUV=0]="YUV",t[t.JPEG=1]="JPEG"}(yt||(yt={})),function(t){t[t.AUTO=0]="AUTO",t[t.REALTIME=1]="REALTIME",t[t.SMOOTH=2]="SMOOTH"}(xt||(xt={})),function(t){t[t.DEFAULT_CHANNEL=0]="DEFAULT_CHANNEL",t[t.LIVE_CHANNEL=1]="LIVE_CHANNEL",t[t.VOD_CHANNEL=2]="VOD_CHANNEL"}(bt||(bt={}));var St,At,Ct,It=function(){function t(){a(this,t),this.pingBuf=new ArrayBuffer(0),this.onCommand=function(){return 1},this.onFrame=function(){return 1},this.onConnected=function(){return 1},this.onDisconnected=function(){return 1},this.format=null,this.viewport=null,this.enableFilterLoss=null,this.websocket=null,this.proxyIp=null}return l(t,[{key:"init",value:function(t,e,n){this.proxyIp=n,this.close(),this.initChannel(t,e)}},{key:"close",value:function(){_t.closeWebsocket(this.websocket),this.websocket=null}},{key:"hasChannel",value:function(){return null!==this.websocket}},{key:"setFormat",value:function(e){this.format=e,this.sendCommand(t.CMD_SET_FORMAT,{format:this.formatString(e)})}},{key:"setViewport",value:function(e,n){this.viewport={width:e,height:n},this.sendCommand(t.CMD_SET_VIEWPORT,{width:e,height:n})}},{key:"setFilterLoss",value:function(e){this.enableFilterLoss=e,this.sendCommand(t.CMD_SET_FILTER_LOSS,{enable:e})}},{key:"snapshot",value:function(e){return this.sendCommand(t.CMD_REQ_SNAPSHOT,{time:e})}},{key:"setVolume",value:function(e){return this.sendCommand(t.CMD_SET_VOLUME,{volume:e})}},{key:"ping",value:function(){null!==this.websocket&&this.websocket.readyState===WebSocket.OPEN&&this.websocket.send(this.pingBuf)}},{key:"startRecord",value:function(e,n){return this.sendCommand(t.CMD_START_RECORD,{duration:e,path:n})}},{key:"stopRecord",value:function(){return this.sendCommand(t.CMD_STOP_RECORD,{})}},{key:"switchAudio",value:function(e){return this.sendCommand(t.CMD_SWITCH_AUDIO,{on:e})}},{key:"switchTalk",value:function(e){return this.sendCommand(t.CMD_SWITCH_TALK,{on:e})}},{key:"setMode",value:function(e){return this.sendCommand(t.CMD_SET_STREAM_MODE,{mode:e})}},{key:"setDelay",value:function(e){return this.sendCommand(t.CMD_SET_STREAM_DELAY,{delay:e})}},{key:"switchUrl",value:function(e,n){return this.sendCommand(t.CMD_SWITCH_URL,{url1:e,url2:n})}},{key:"switchIndex",value:function(e){return this.sendCommand(t.CMD_SWITCH_INDEX,{index:e})}},{key:"ptzControl",value:function(e,n){return this.sendCommand(t.CMD_PTZ_CONTROL,{ctl:e,value:n})}},{key:"ptzControl3D",value:function(e,n,i,r,a){return this.sendCommand(t.CMD_PTZ_CONTROL_3D,{direct:e,x:n,y:i,w:r,h:a})}},{key:"playRecord",value:function(e,n,i,r){return this.sendCommand(t.CMD_PLAY_RECORD,{startTime:e,endTime:n,type:i,direction:r})}},{key:"pause",value:function(){return this.sendCommand(t.CMD_PAUSE_STREAM,{})}},{key:"resume",value:function(e){return this.sendCommand(t.CMD_RESUME_STREAM,{direction:e})}},{key:"stop",value:function(){return this.sendCommand(t.CMD_STOP_STREAM,{})}},{key:"setSpeed",value:function(e){return this.sendCommand(t.CMD_SET_SPEED,{speed:e})}},{key:"changeDirection",value:function(e){return this.sendCommand(t.CMD_CHANGE_DIRECTION,{direction:e})}},{key:"queryRecords",value:function(e,n){return this.sendCommand(t.CMD_QUERY_RECORD,{startTime:e,endTime:n})}},{key:"sendCommand",value:function(t,e){if(null!==this.websocket&&this.websocket.readyState===WebSocket.OPEN){var n=JSON.stringify(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wt(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({cmd:t},e));return this.websocket.send(n),!0}return!1}},{key:"sendRaw",value:function(t){return null!==this.websocket&&this.websocket.readyState===WebSocket.OPEN&&(this.websocket.send(t),!0)}},{key:"formatString",value:function(t){var e="";return t===yt.YUV?e="yuv":t===yt.JPEG&&(e="jpeg"),e}},{key:"initChannel",value:function(e,n){var i=this;this.websocket=_t.createWebsocket(e,this.proxyIp),this.websocket.binaryType="arraybuffer",this.websocket.onopen=function(){var e="";bt.DEFAULT_CHANNEL===n?e="default":bt.LIVE_CHANNEL===n?e="live":bt.VOD_CHANNEL===n&&(e="vod"),i.sendCommand(t.CMD_INIT_CHANNEL,{type:e}),null!==i.format&&i.sendCommand(t.CMD_SET_FORMAT,{format:i.formatString(i.format)}),null!==i.viewport&&i.sendCommand(t.CMD_SET_VIEWPORT,i.viewport),null!==i.enableFilterLoss&&i.sendCommand(t.CMD_SET_FILTER_LOSS,{enable:i.enableFilterLoss}),i.onConnected()},this.websocket.onerror=function(){i.onDisconnected()},this.websocket.onclose=function(){i.onDisconnected()},this.websocket.onmessage=function(e){if("string"==typeof e.data)if("{"===e.data[0]){var n=JSON.parse(e.data);i.onCommand(n.cmd,n)}else if(e.data.length>6&&e.data.substr(0,5)===t.SB_CMD_SPEED){var r=parseInt(e.data.substr(t.SB_CMD_SPEED.length+1),10);i.onCommand(t.SB_CMD_SPEED,{speed:r})}else console.log("unknown command",e.data);else i.handleBinary(e.data)}}},{key:"handleBinary",value:function(t){var e=new Uint32Array(t,0,2);if(1129731417===e[0]){var n=new DataView(t,8,8).getFloat64(0,!0);this.onFrame(vt.YUV,t,n)}else if(3774863615===e[0]&&1179258880===e[1]){var i=new DataView(t,t.byteLength-8,8).getFloat64(0,!0);this.onFrame(vt.JPEG,t,i)}else if(1112954201===e[0]){var r=this.getUint64(new DataView(t,8,8),0);this.onFrame(vt.YUV,t,r)}else 827611205===e[0]||844388421===e[0]||console.log("unknown frame type",e[0])}},{key:"getUint64",value:function(t,e){return t.getUint32(e,!0)+4294967296*(16777215&t.getUint32(e+4,!0))}}]),t}();function Tt(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return kt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function kt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}It.CMD_INIT_CHANNEL="init_channel",It.CMD_SET_FORMAT="set_format",It.CMD_SET_VOLUME="set_volume",It.CMD_SET_FILTER_LOSS="set_filter_loss",It.CMD_REQ_SNAPSHOT="req_snapshot",It.CMD_SET_VIEWPORT="set_viewport",It.CMD_SWITCH_URL="switch_url",It.CMD_SWITCH_INDEX="switch_index",It.CMD_START_RECORD="start_record",It.CMD_STOP_RECORD="stop_record",It.CMD_SWITCH_AUDIO="switch_audio",It.CMD_SWITCH_TALK="switch_talk",It.CMD_SET_STREAM_MODE="set_mode",It.CMD_SET_STREAM_DELAY="set_delay",It.CMD_PTZ_CONTROL="req_ptz_ctl",It.CMD_PTZ_CONTROL_3D="req_ptz_ctl3D",It.CMD_OPEN_DEVICE="open_device",It.CMD_QUERY_RECORD="query_record",It.CMD_PLAY_RECORD="play_record",It.CMD_STOP_STREAM="stop_stream",It.CMD_PAUSE_STREAM="pause_stream",It.CMD_RESUME_STREAM="resume_stream",It.CMD_SET_SPEED="set_speed",It.CMD_PLAY_STATE="play_state",It.CMD_STREAM_STATE="stream_state",It.CMD_CHANGE_DIRECTION="change_direction",It.SB_CMD_SPEED="speed",It.SB_CMD_STREAM_STATUS="stream_status",It.SB_CMD_INFO="info",It.SB_CMD_STREAM_SIZE="stream_size",It.SB_CMD_RECORD_STATE="record_state",It.SB_CMD_AUDIO_STATE="audio_state",It.SB_CMD_RES_SNAPSHOT="res_snapshot",It.SB_CMD_PLAY_STATE="play_state",function(t){t[t.NONE=0]="NONE",t[t.JPEG_VIDEO_LAYER=1]="JPEG_VIDEO_LAYER",t[t.YUV_VIDEO_LAYER=2]="YUV_VIDEO_LAYER",t[t.FACE_TRACK_LAYER=3]="FACE_TRACK_LAYER",t[t.BODY_POINT_LAYER=4]="BODY_POINT_LAYER",t[t.ACTION_IDENT_LAYER=5]="ACTION_IDENT_LAYER",t[t.FACE_ATTR_LAYER=6]="FACE_ATTR_LAYER",t[t.FACE_RECT_LAYER=7]="FACE_RECT_LAYER",t[t.BODY_RECT_LAYER=8]="BODY_RECT_LAYER",t[t.EXT_LAYER=9]="EXT_LAYER"}(St||(St={})),function(t){t[t.FACE_SNAP=0]="FACE_SNAP",t[t.FACE_RECOGNITION=1]="FACE_RECOGNITION",t[t.BODY_RECOGNITION=2]="BODY_RECOGNITION",t[t.ACTION_RECOGNITION=3]="ACTION_RECOGNITION",t[t.FACE_COMPARE=4]="FACE_COMPARE"}(At||(At={})),function(t){t[t.FACE_RECT=1e4]="FACE_RECT",t[t.BODY_RECT=10001]="BODY_RECT",t[t.FACE_RECT_ATTR=10002]="FACE_RECT_ATTR",t[t.BODY_RECT_ATTR=10003]="BODY_RECT_ATTR",t[t.ACTION_RECOGNIZE=10004]="ACTION_RECOGNIZE",t[t.BODY_POINTS=10005]="BODY_POINTS",t[t.FACE_SNAP_ATTR=10006]="FACE_SNAP_ATTR",t[t.BODY_SNAP_ATTR=10007]="BODY_SNAP_ATTR",t[t.MOVE_RECOGNIZE=10008]="MOVE_RECOGNIZE",t[t.FACE_COMPARE=10012]="FACE_COMPARE"}(Ct||(Ct={}));var Mt,Dt=function(){function t(e,n){a(this,t),this.box=e,this.jpegLayer=null,this.yuvLayer=null,this.layers={},this.errorElement=null,this.errorTD=null,this.left=0,this.top=0,this.width=0,this.height=0,this.subscribeCallback=n,this.faceSnapQueue=[],this.faceRecognitionQueue=[],this.bodyRecognitionQueue=[],this.actionRecognitionQueue=[],this.imageCache=new it,this.syncs=[],this.trackIdFilters={},this.renderHandler=null,this.isShow=!0}return l(t,[{key:"initLayer",value:function(t){var e=this,n=null,i=null;return St.JPEG_VIDEO_LAYER===t?((n=new $).setAsync(25,(function(t){e.sync(t)})),i=new rt(this.box,"vatrender"),this.jpegLayer=i):St.YUV_VIDEO_LAYER===t&&((n=new nt).setAsync(25,(function(t){e.sync(t)})),i=new rt(this.box,"vatrender"),this.yuvLayer=i),!(null===n||null===i||!i.setupRender(n)||(this.layers[t]=i,i.move(this.left,this.top,this.width,this.height),this.trackIdFilters[t]?n.setFilter(this.trackIdFilters[t]):this.trackIdFilters[St.NONE]?n.setFilter(this.trackIdFilters[St.NONE]):n.setFilter(null),0))}},{key:"isYuv",value:function(){return null!==this.yuvLayer}},{key:"putExtData2",value:function(t,e,n){var i=this.renderHandler;if(null!==i&&!i.filter(t,n,e))return!1;var r=this.layers[t];if(r)r.putData(t,e,n);else if(this.isShow){var a=new mt,o=ot.DEFAULT_DURATION;if(null!==this.renderHandler){var s=this.renderHandler.getDuration(t);null!=s&&(o=s)}if(!(r=this.createExtLayer(o)).setupRender(a))return!1;this.layers[t]=r,r.move(this.left,this.top,this.width,this.height),this.trackIdFilters[t]?a.setFilter(this.trackIdFilters[t]):this.trackIdFilters[0]?a.setFilter(this.trackIdFilters[0]):a.setFilter(null),null!==this.renderHandler&&a.setHandler(this.renderHandler),r.putData(t,e,n)}return!0}},{key:"removeLayer",value:function(t){var e=this.layers[t];if(e){this.layers[t]=null,e.destroy();for(var n=0;n<this.syncs.length;n++)if(this.syncs[n]===e){this.syncs[n]=this.syncs[0],this.syncs.shift();break}}}},{key:"putFrame",value:function(t,e,n){vt.YUV===t?null!==this.yuvLayer&&this.yuvLayer.putData(1,e,n):vt.JPEG===t&&null!==this.jpegLayer&&this.jpegLayer.putData(0,e,n)}},{key:"putData",value:function(t){var e=new Uint32Array(t,0,2);if(3774863615===e[0]&&1179258880===e[1]){var n=new DataView(t,t.byteLength-8,8).getFloat64(0,!0);null!==this.jpegLayer&&this.jpegLayer.putData(0,t,n)}else if(1112954201===e[0]){var i=this.getUint64(new DataView(t,8,8),0);null!==this.yuvLayer&&this.yuvLayer.putData(1,t.slice(4),i)}else if(827611205===e[0]){var r=this.getUint64(new DataView(t,12,8),0);if(200===e[1])this.putExtData2(e[1],t.slice(8),r);else if(201===e[1]){var a=this.parseSnap(t.slice(8));a&&this.subscribeCallback(At.FACE_SNAP,a)}}else if(844388421===e[0]){var o=this.getUint64(new DataView(t,8,8),0),s=t.slice(16);if(Ct.FACE_SNAP_ATTR===e[1])this.subscribeCallback(At.FACE_RECOGNITION,this.parseFaceRecognition(s));else if(Ct.BODY_SNAP_ATTR===e[1])this.subscribeCallback(At.BODY_RECOGNITION,this.parseBodyRecognition(s));else if(Ct.FACE_COMPARE===e[1])this.subscribeCallback(At.FACE_COMPARE,this.parseFaceComparison(s));else if(!this.putExtData2(e[1],s,o))return;if(Ct.ACTION_RECOGNIZE===e[1]){var l=this.parseActions(s);l.length>0&&this.putNotifyData(this.actionRecognitionQueue,At.ACTION_RECOGNITION,l,o)}}else console.log(e[0])}},{key:"stopView",value:function(){for(var t in this.isShow=!1,this.layers)if(this.layers.hasOwnProperty(t)){var e=this.layers[t];null!==e&&e.stopView()}}},{key:"restoreView",value:function(){for(var t in this.isShow=!0,this.layers)if(this.layers.hasOwnProperty(t)){var e=this.layers[t];null!==e&&e.restoreView()}}},{key:"move",value:function(t,e,n,i){for(var r in this.left=t,this.top=e,this.width=n,this.height=i,this.layers)if(this.layers.hasOwnProperty(r)){var a=this.layers[r];a&&a.move(t,e,n,i)}}},{key:"getImage",value:function(t,e){return null!==this.yuvLayer?this.yuvLayer.getImage(t,e):null!==this.jpegLayer&&this.jpegLayer.getImage(t,e)}},{key:"showError",value:function(t){null!==t&&""!==t?(this.stopView(),null==this.errorElement&&this.createErrorElement(),this.errorTD&&(this.errorTD.innerText=t)):null!=this.errorElement?(this.box.removeChild(this.errorElement),this.errorElement=null,this.errorTD=null,this.restoreView(),this.reload()):this.restoreView()}},{key:"setTrackIdFilter",value:function(t,e){if(this.trackIdFilters[t]=e,St.NONE===t){for(var n in this.layers)if(this.layers.hasOwnProperty(n)){var i=this.layers[n],r=null===i?null:i.getRender();null!==r&&r.setFilter(e)}for(var a in this.trackIdFilters)this.trackIdFilters.hasOwnProperty(a)&&(this.trackIdFilters[a]=e)}else if(this.layers[t]&&this.layers.hasOwnProperty(t)){var o=this.layers[t].getRender();null!==o&&o.setFilter(e)}}},{key:"setExtRenderHandler",value:function(e){for(var n in this.renderHandler=e,this.layers)if(parseInt(n,10)>=t.EXT_COMMAND_BEGIN&&this.layers.hasOwnProperty(n)){var i=this.layers[n],r=null===i?null:i.getRender();null!==r&&r.setHandler(e)}}},{key:"createExtLayer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ot.DEFAULT_DURATION,e=new ot(this.box,"vat-exrender",t);return this.syncs.push(e),e.setSync(!0),e}},{key:"createErrorElement",value:function(){this.errorElement=document.createElement("div"),this.errorElement.classList.add("vat-error");var t=document.createElement("table"),e=document.createElement("tr"),n=document.createElement("td");e.appendChild(n),t.appendChild(e),this.errorElement.appendChild(t),this.errorTD=n,this.box.appendChild(this.errorElement)}},{key:"reload",value:function(){this.move(this.left,this.top,this.width,this.height)}},{key:"getUint64",value:function(t,e){return t.getUint32(e,!0)+4294967296*(16777215&t.getUint32(e+4,!0))}},{key:"parseSnap",value:function(t){var e=new DataView(t,0,56),n=e.getFloat32(0,!0),i=this.getUint64(e,4),r=this.getUint64(e,12),a=e.getFloat32(28,!0),o=e.getUint32(32,!0),s=e.getUint32(36,!0),l=e.getUint32(40,!0),c=e.getUint32(44,!0),u=0,h=48;n>=.2&&(u=e.getUint32(48,!0),h+=4);var d=0;n>=.3&&(d=e.getUint32(h,!0),h+=4);var f={id:r,time:i,score:a,x:o,y:s,w:l,h:c,trackId:u,image:this.imageCache.getUrl(t.slice(h)),channel:d,alive:!0};return setTimeout((function(){URL.revokeObjectURL(f.image),f.alive=!1}),6e3),f}},{key:"sync",value:function(t){this.syncNotifyData(this.faceSnapQueue,t),this.syncNotifyData(this.faceRecognitionQueue,t),this.syncNotifyData(this.bodyRecognitionQueue,t),this.syncNotifyData(this.actionRecognitionQueue,t);var e,n=Tt(this.syncs);try{for(n.s();!(e=n.n()).done;)e.value.sync(t)}catch(t){n.e(t)}finally{n.f()}}},{key:"putNotifyData",value:function(t,e,n,i){t.push({type:e,data:n,time:i}),t.length>15&&(this.subscribeCallback(t[0].type,t[0].data),t.shift())}},{key:"syncNotifyData",value:function(t,e){for(;t.length>0&&(t.length>50||t[0].time<e||0===e);)this.subscribeCallback(t[0].type,t[0].data),t.shift()}},{key:"parseActions",value:function(t){var e=[],n=new DataView(t),i=n.getUint32(16,!0),r=(t.byteLength-20)/i;if(0===r)return[];for(var a=20;a<t.byteLength;a+=r){var o=n.getUint32(a+16,!0);e.push(o)}return e}},{key:"parseBodyRecognition",value:function(t){var e=new DataView(t),n=this.getUint64(e,4),i=e.getUint32(12,!0),r=e.getUint32(16,!0),a={sex:e.getUint8(24),age:e.getUint8(25),hairStyle:e.getUint8(26),mask:e.getUint8(27),glass:e.getUint8(28),hat:e.getUint8(29),scarf:e.getUint8(30),direct:e.getUint8(31),upperColor:e.getUint8(32),bottomColor:e.getUint8(33),upperStyle:e.getUint8(34),bottomStyle:e.getUint8(35),phone:e.getUint8(36),umbrella:e.getUint8(37),handbag:e.getUint8(38),backpack:e.getUint8(39)};return{time:n,image:this.imageCache.getUrl(t.slice(t.byteLength-r)),fullImage:"",channel:i,attr:a}}},{key:"parseFaceRecognition",value:function(t){var e=new DataView(t),n=e.getFloat32(0,!0),i=this.getUint64(e,4),r=e.getUint32(12,!0),a=e.getUint32(16,!0),o=e.getUint32(20,!0),s=e.getUint8(24),l=e.getUint8(25),c=e.getUint8(26),u=e.getUint8(27),h=0,d=0;return n>=.3&&(h=e.getUint32(32,!0),d=e.getFloat32(52,!0)),{time:i,image:this.imageCache.getUrl(t.slice(t.byteLength-a-o)),fullImage:"",channel:r,attr:{age:s,sex:l,mask:c,glass:u},imageId:h,score:d}}},{key:"parseFaceComparison",value:function(t){var e=new DataView(t),n=e.getUint32(4,!0),i=this.getUint64(e,8),r=e.getUint32(16,!0);return{channel:n,snapTime:i,attr:{age:e.getUint8(20),sex:e.getUint8(21),mask:e.getUint8(22),glass:e.getUint8(23)},snapScore:e.getFloat32(24,!0),compareScore:e.getFloat32(28,!0),faceGroupId:e.getUint32(32,!0),faceGroupType:e.getUint32(36,!0),faceId:this.getUint64(e,40),compareTime:this.getUint64(e,48),faceSnapId:this.getUint64(e,56),snapImage:this.imageCache.getUrl(t.slice(68,68+r)),faceImage:this.imageCache.getUrl(t.slice(68+r))}}}],[{key:"chooseLayerType",value:function(t){if(!_t.isSupportWebGL())return St.JPEG_VIDEO_LAYER;var e=St.YUV_VIDEO_LAYER;return navigator.userAgent.indexOf("MSIE")>-1&&navigator.userAgent.indexOf("compatible")>-1&&(e=St.JPEG_VIDEO_LAYER),(window.ActiveXObject||"ActiveXObject"in window)&&(e=St.JPEG_VIDEO_LAYER),t>=16&&(e=St.JPEG_VIDEO_LAYER),e}}]),t}();Dt.EXT_COMMAND_BEGIN=1e4,function(t){t[t.OK=0]="OK",t[t.UNKNOWN_ERROR=-1]="UNKNOWN_ERROR",t[t.INVALID_STATE=-2]="INVALID_STATE",t[t.NOT_LOGIN=-3]="NOT_LOGIN",t[t.INVALID_PARAM=-4]="INVALID_PARAM",t[t.NETWORK_ERROR=-5]="NETWORK_ERROR",t[t.WINDOW_ID_CONFLICT=-6]="WINDOW_ID_CONFLICT",t[t.NO_MORE_FREE_WINDOW=-7]="NO_MORE_FREE_WINDOW",t[t.NO_TASK=-8]="NO_TASK",t[t.UNSUPPORT_OPERATION=-9]="UNSUPPORT_OPERATION",t[t.CWALKSDK_ERR_NOT_SUPPORT=-20001]="CWALKSDK_ERR_NOT_SUPPORT",t[t.CWALKSDK_ERR_NOT_IMPL=-20002]="CWALKSDK_ERR_NOT_IMPL",t[t.CWALKSDK_ERR_NOT_INIT=-20003]="CWALKSDK_ERR_NOT_INIT",t[t.CWALKSDK_ERR_NOT_ENOUGH_MEM=-20005]="CWALKSDK_ERR_NOT_ENOUGH_MEM",t[t.CWALKSDK_ERR_NOT_ENOUGH_ID=-20004]="CWALKSDK_ERR_NOT_ENOUGH_ID",t[t.CWALKSDK_ERR_INVALID_ID=-20006]="CWALKSDK_ERR_INVALID_ID",t[t.CWALKSDK_ERR_INVALID_NAME=-20007]="CWALKSDK_ERR_INVALID_NAME",t[t.CWALKSDK_ERR_INVALID_PARARM=-20008]="CWALKSDK_ERR_INVALID_PARARM",t[t.CWALKSDK_FILE_NOFIND=-20009]="CWALKSDK_FILE_NOFIND",t[t.CWALKSDK_ISFINDING=-20010]="CWALKSDK_ISFINDING",t[t.CWALKSDK_NOMOREFILE=-20011]="CWALKSDK_NOMOREFILE",t[t.CWALKSDK_FILE_EXCEPTION=-20012]="CWALKSDK_FILE_EXCEPTION",t[t.CWALKSDK_ERR_URLPATH=-20013]="CWALKSDK_ERR_URLPATH",t[t.CWALKSDK_ERR_EXISTKEY=-20014]="CWALKSDK_ERR_EXISTKEY",t[t.CWALKSDK_ERR_NO_OBJECT=-20015]="CWALKSDK_ERR_NO_OBJECT",t[t.CWALKSDK_ERR_OSD_SETTEXT=-20016]="CWALKSDK_ERR_OSD_SETTEXT",t[t.CWALKSDK_ERR_OSD_TYPE=-20017]="CWALKSDK_ERR_OSD_TYPE",t[t.CWALKSDK_ERR_OSD_SHOW=-20018]="CWALKSDK_ERR_OSD_SHOW",t[t.CWALKSDK_ERR_DEFAULTPORT=-20019]="CWALKSDK_ERR_DEFAULTPORT",t[t.CWALKSDK_ERROR_LOGIN=-20020]="CWALKSDK_ERROR_LOGIN",t[t.CWALKSDK_NOMOREDATA=-20021]="CWALKSDK_NOMOREDATA",t[t.CWALKSDK_ERR_SET_PASSWORD=-20022]="CWALKSDK_ERR_SET_PASSWORD",t[t.CWALKSDK_ERR_NO_KEY=-20023]="CWALKSDK_ERR_NO_KEY",t[t.CWALKSDK_ERR_NO_VALUE=-20024]="CWALKSDK_ERR_NO_VALUE",t[t.CWALKSDK_ERR_FUNCTION_NOT_IMPLEMENTED=-20025]="CWALKSDK_ERR_FUNCTION_NOT_IMPLEMENTED",t[t.CWALKSDK_ERR_CREATE_HANDLE=-20026]="CWALKSDK_ERR_CREATE_HANDLE",t[t.CWALKSDK_ERR_EVENT_RESUBSCRIBE=-20027]="CWALKSDK_ERR_EVENT_RESUBSCRIBE",t[t.CWALKSDK_ERR_END_OF_FILE=-20028]="CWALKSDK_ERR_END_OF_FILE",t[t.CWALKSDK_ERR_NO_HANDLE=-20029]="CWALKSDK_ERR_NO_HANDLE",t[t.CWALKSDK_ERR_NULL_OBJECT=-20030]="CWALKSDK_ERR_NULL_OBJECT",t[t.CWALKSDK_ERR_FIRST_NOT_IFRAME=-20031]="CWALKSDK_ERR_FIRST_NOT_IFRAME",t[t.CWALKSDK_ERR_UNSUPPORTED_PLATFORM=-20032]="CWALKSDK_ERR_UNSUPPORTED_PLATFORM",t[t.CWALKSDK_ERR_BUFFER_TOO_SMALL=-20033]="CWALKSDK_ERR_BUFFER_TOO_SMALL",t[t.CWALKSDK_ERR_UNKNOWN_SERVICE=-20034]="CWALKSDK_ERR_UNKNOWN_SERVICE",t[t.CWALKSDK_ERR_NO_PRIVILEGE=-20035]="CWALKSDK_ERR_NO_PRIVILEGE",t[t.CWALKSDK_ERR_VIEW_NUM=-20036]="CWALKSDK_ERR_VIEW_NUM",t[t.CWALKSDK_ERR_DISK_FULL=-20037]="CWALKSDK_ERR_DISK_FULL",t[t.CWALKSDK_ERR_INVALID_MEM=-20038]="CWALKSDK_ERR_INVALID_MEM",t[t.CWALKSDK_ERR_ENCODER_OPEN=-20039]="CWALKSDK_ERR_ENCODER_OPEN",t[t.CWALKSDK_ERR_SP_QUERY_SEGMENT=-20040]="CWALKSDK_ERR_SP_QUERY_SEGMENT",t[t.CWALKSDK_ERR_NO_PVM_ADD=-20041]="CWALKSDK_ERR_NO_PVM_ADD",t[t.CWALKSDK_ERR_ES_UNAVAILABLE=-20042]="CWALKSDK_ERR_ES_UNAVAILABLE",t[t.CWALKSDK_ERR_AVCF_ERROR=-20043]="CWALKSDK_ERR_AVCF_ERROR",t[t.CWALKSDK_ERR_PLAY_HD=-201001]="CWALKSDK_ERR_PLAY_HD",t[t.CWALKSDK_ERR_PLAY_NEED_SLICES=-201002]="CWALKSDK_ERR_PLAY_NEED_SLICES",t[t.CWALKSDK_ERR_PLAY_FULL_SILCES=-201003]="CWALKSDK_ERR_PLAY_FULL_SILCES",t[t.CWALKSDK_ERR_PLAY_INPUT_SLICES_CB=-20004]="CWALKSDK_ERR_PLAY_INPUT_SLICES_CB",t[t.CWALKSDK_ERR_PLAY_INVALID_CMD=-201005]="CWALKSDK_ERR_PLAY_INVALID_CMD",t[t.CWALKSDK_ERR_PLAY_INVALID_CMD_MATCH=-20007]="CWALKSDK_ERR_PLAY_INVALID_CMD_MATCH",t[t.CWALKSDK_ERR_PLAY_INVALID_SPEED=-20006]="CWALKSDK_ERR_PLAY_INVALID_SPEED",t[t.CWALKSDK_ERR_PLAY_INVALID_CB_MODE=-20007]="CWALKSDK_ERR_PLAY_INVALID_CB_MODE",t[t.CWALKSDK_ERR_PLAY_IS_RELEASED=-201008]="CWALKSDK_ERR_PLAY_IS_RELEASED",t[t.CWALKSDK_ERR_PLAY_THREAD_STOP=-201009]="CWALKSDK_ERR_PLAY_THREAD_STOP",t[t.CWALKSDK_ERR_PLAY_REOPEN=-201010]="CWALKSDK_ERR_PLAY_REOPEN",t[t.CWALKSDK_ERR_PLAY_OPEN_AUDIO=-201011]="CWALKSDK_ERR_PLAY_OPEN_AUDIO",t[t.CWALKSDK_ERR_PLAY_START_AUDIO=-201012]="CWALKSDK_ERR_PLAY_START_AUDIO",t[t.CWALKSDK_ERR_PLAY_STOP_AUDIO=-201013]="CWALKSDK_ERR_PLAY_STOP_AUDIO",t[t.CWALKSDK_ERR_PLAY_VIDEO_INFO=-201014]="CWALKSDK_ERR_PLAY_VIDEO_INFO",t[t.CWALKSDK_WARNING_PLAY_MAX_LOCALCACH=-20015]="CWALKSDK_WARNING_PLAY_MAX_LOCALCACH",t[t.CWALKSDK_WARNING_PLAY_MIN_LOCALCACH=-20016]="CWALKSDK_WARNING_PLAY_MIN_LOCALCACH",t[t.CWALKSDK_ERR_PLAY_PAUSE_CANNOT_SPEED=-20017]="CWALKSDK_ERR_PLAY_PAUSE_CANNOT_SPEED",t[t.CWALKSDK_ERR_LOG_UNKNOWTYPE=-202001]="CWALKSDK_ERR_LOG_UNKNOWTYPE",t[t.CWALKSDK_ERR_LOG_DATA=-202002]="CWALKSDK_ERR_LOG_DATA",t[t.DCS_ERR_SS_NOT_AVAILABLE=-101001]="DCS_ERR_SS_NOT_AVAILABLE",t[t.DCS_ERR_FS_NOT_AVAILABLE=-101002]="DCS_ERR_FS_NOT_AVAILABLE",t[t.DCS_ERR_PAU_NOT_AVAILABLE=-101003]="DCS_ERR_PAU_NOT_AVAILABLE",t[t.DCS_ERR_DEVICE_NOT_ATTACHE_PAU=-101004]="DCS_ERR_DEVICE_NOT_ATTACHE_PAU",t[t.DCS_ERR_USER_STREAM_OVERRAGE=-101005]="DCS_ERR_USER_STREAM_OVERRAGE",t[t.DCS_ERR_PLAT_STREAM_OVERRAGE=-101006]="DCS_ERR_PLAT_STREAM_OVERRAGE",t[t.DCS_ERR_INVALID_JOSN=-101007]="DCS_ERR_INVALID_JOSN",t[t.DCS_ERR_PAU_SEND_FAILED=-101008]="DCS_ERR_PAU_SEND_FAILED",t[t.DCS_ERR_MONITOR_LOCKED=-101030]="DCS_ERR_MONITOR_LOCKED",t[t.DCS_ERR_MONITOR_CANNOT_CONTROL=-101031]="DCS_ERR_MONITOR_CANNOT_CONTROL",t[t.DCS_ERR_SESSION_NOT_FOUND=-102001]="DCS_ERR_SESSION_NOT_FOUND",t[t.DCS_ERR_FS_STREAM_BROKEN=-102002]="DCS_ERR_FS_STREAM_BROKEN",t[t.DCS_ERR_NOT_LOCAL_MONITOR=-102003]="DCS_ERR_NOT_LOCAL_MONITOR",t[t.DCS_INF_MONITOR_LOCKED=-102004]="DCS_INF_MONITOR_LOCKED",t[t.DCS_ERR_CHANNLE_DISABLED=-103001]="DCS_ERR_CHANNLE_DISABLED",t[t.DCS_ERR_PAU_DISABLED=-103002]="DCS_ERR_PAU_DISABLED",t[t.DCS_ERR_LOG_NOT_AVAILABLE=-103003]="DCS_ERR_LOG_NOT_AVAILABLE",t[t.DCS_ERR_PAU_NOT_OPEN=-103004]="DCS_ERR_PAU_NOT_OPEN",t[t.DCS_ERR_DCS_NOT_OPEN=-103005]="DCS_ERR_DCS_NOT_OPEN",t[t.DCS_ERR_LOCALDB_UNINIT=-103006]="DCS_ERR_LOCALDB_UNINIT",t[t.DCS_ERR_LOCALDB_EXCEPTION=-103007]="DCS_ERR_LOCALDB_EXCEPTION",t[t.DCS_ERR_CHANNEL_RECORD_EXITS=-103008]="DCS_ERR_CHANNEL_RECORD_EXITS",t[t.DCS_ERR_DCS_NOT_AVAILABLE=-103009]="DCS_ERR_DCS_NOT_AVAILABLE",t[t.DCS_ERR_AUDIOTALK_IN_USE=-103010]="DCS_ERR_AUDIOTALK_IN_USE",t[t.DCS_ERR_DEVICE_NOT_EXIST=-103011]="DCS_ERR_DEVICE_NOT_EXIST",t[t.DCS_ERR_REQUEST_PATH_EXISTED=-103012]="DCS_ERR_REQUEST_PATH_EXISTED",t[t.DCS_ERR_ROFS3S_NOT_AVAILABLE=-103013]="DCS_ERR_ROFS3S_NOT_AVAILABLE",t[t.DCS_ERR_PAU_DISCONNECT=-103014]="DCS_ERR_PAU_DISCONNECT",t[t.DCS_ERR_RESOURCESHIELD=-103015]="DCS_ERR_RESOURCESHIELD",t[t.DCS_ERR_SCAN_EXIST=-103016]="DCS_ERR_SCAN_EXIST",t[t.DCS_ERR_MACRO_EXIST=-103017]="DCS_ERR_MACRO_EXIST",t[t.DCS_ERR_ORDER_CALL=-103018]="DCS_ERR_ORDER_CALL",t[t.DCS_ERR_USER_DISABLED=-103019]="DCS_ERR_USER_DISABLED",t[t.DCS_ERR_RECORD_REUSE=-103020]="DCS_ERR_RECORD_REUSE"}(Mt||(Mt={}));var Et=function(){function t(e){a(this,t),this.box=e,this.isShow=!1,this.websocket=null,this.panel=null,this.hide()}return l(t,[{key:"setWebsocket",value:function(t){this.websocket=t}},{key:"ptzControl",value:function(t,e){if(null===this.websocket)return Mt.INVALID_STATE;var n=JSON.stringify({cmd:"req_ptz_ctl",ctl:t,value:e});return this.websocket&&this.websocket.send(n),Mt.OK}},{key:"ptzControl3D",value:function(t,e,n,i,r){if(null===this.websocket)return Mt.INVALID_STATE;if(t<0||e<0||n<0||i<0||r<0)return Mt.INVALID_PARAM;if(e>1||n>1||i>1||r>1)return Mt.INVALID_PARAM;var a=JSON.stringify({cmd:"req_ptz_ctl3D",direct:t,x:e,y:n,w:i,h:r});return this.websocket&&this.websocket.send(a),Mt.OK}},{key:"toggle",value:function(){this.isShow?this.hide():this.show()}},{key:"show",value:function(){this.isShow=!0,this.panel||this.initElement(),this.panel&&(this.panel.style.display="block")}},{key:"hide",value:function(){this.isShow=!1,this.panel&&(this.panel.style.display="none")}},{key:"initElement",value:function(){this.panel=document.createElement("div"),this.panel.classList.add("vat-ptz-panel"),this.box.appendChild(this.panel)}}]),t}();function Lt(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Pt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function Pt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var Ot,Rt=function t(){a(this,t)};Rt.SNAPSHOT=1,Rt.ROI_RECT=2,Rt.ROI_POLYGON=4,Rt.MAXIMIZE=8,Rt.ZOOM=16,Rt.VOLUME=32,Rt.STOP=64,Rt.TALK=128,Rt.RECORD=256,Rt.ALL=65535,Rt.DEFAULT=Rt.SNAPSHOT|Rt.ROI_RECT|Rt.ROI_POLYGON|Rt.MAXIMIZE|Rt.STOP,function(t){t[t.CANVAS=0]="CANVAS",t[t.IMAGE=1]="IMAGE",t[t.YUV=2]="YUV"}(Ot||(Ot={}));var Nt=function(){function t(e,n,i){a(this,t),this.wsChannel=new It,this.id="",this.originIndex=e,this.index=e,this.span=1,this.config=i,this.httpPort=0,this.wsPort=0,this.dragLayer=null,this.status=0,this.width=0,this.height=0,this.urls=[],this.name="",this.isShowMain=!1,this.mainUrlIndex=0,this.toolBar=null,this.isDrawingROI=!1,this.drivingClosed=!0,this.roiLayer=null,this.streamWidth=0,this.streamHeight=0,this.recordIcon=null,this.isAudio=!1,this.isTalk=!1,this.toolButtons={},this.hasAudioInput=!1,this.hasAudioOutput=!1,this.delay=0,this.volume=100,this.heartTimer=0,this.streamMode=xt.AUTO,this.extStream=new K,this.element=document.createElement("div"),this.element.setAttribute("class","vatwin"),this.element.setAttribute("windex",""+e),n.appendChild(this.element),this.ptzPanel=new Et(this.element);var r=Dt.chooseLayerType(e);r===St.YUV_VIDEO_LAYER?this.renderType=Ot.YUV:this.renderType=Ot.CANVAS,this.config.proxy&&this.config.proxy.length>6&&(r=St.JPEG_VIDEO_LAYER,this.renderType=Ot.CANVAS),this.wsChannel.setFormat(Ot.YUV===this.renderType?yt.YUV:yt.JPEG);var o=this;this.layerManager=new Dt(this.element,(function(t,e){o.config.onExtData(o.id,t,e)})),this.layerManager.initLayer(r),this.titleBar=new F(this.element,this.config.titleBar),this.titleBar.clear(),this.initToolbar(),this.config.dragWindow&&this.createDragLayer(),this.caculateLayerShow()}return l(t,[{key:"handleChannelOpened",value:function(t,e){this.closeChannel(!1),this.initChannel(t,e)}},{key:"openExtStream",value:function(t,e,n){this.extStream.setUrl(t,e,n)}},{key:"closeExtStream",value:function(){this.extStream.setUrl("","","")}},{key:"ptzControl",value:function(t,e){return this.ptzPanel.ptzControl(t,e)}},{key:"ptzControl3D",value:function(t,e,n,i,r){return this.ptzPanel.ptzControl3D(t,e,n,i,r)}},{key:"openLiveStream",value:function(t){return null!==t.subUrl&&""!==t.subUrl&&void 0!==t.subUrl||(t.subUrl=t.url),this.id=t.id||"",this.name=t.name||"",this.titleBar.setName(this.name),(t.extUrl||t.faceSnapUrl||t.faceRectUrl)&&this.extStream.setUrl(t.faceRectUrl,t.faceSnapUrl,t.extUrl),2===this.urls.length&&this.urls[this.mainUrlIndex]===t.url&&this.urls[0===this.mainUrlIndex?1:0]===t.subUrl&&this.hasChannel()||(this.stopROI(),this.setROI([]),2===this.urls.length&&(this.urls[0]===t.url&&this.urls[1]===t.subUrl||this.urls[1]===t.url&&this.urls[0]===t.subUrl)||this.layerManager.stopView(),this.isShowMain?(this.mainUrlIndex=0,this.urls=[t.url,t.subUrl||""]):(this.mainUrlIndex=1,this.urls=[t.subUrl||"",t.url]),this.hasChannel()?this.wsChannel.switchUrl(this.urls[0],this.urls[1]):this.initChannel(this.wsPort,this.httpPort)),Mt.OK}},{key:"restoreStream",value:function(){2===this.urls.length&&(this.isShowMain&&1===this.mainUrlIndex?(this.urls.reverse(),this.mainUrlIndex=0):this.isShowMain||0!==this.mainUrlIndex||(this.urls.reverse(),this.mainUrlIndex=1),this.initChannel(this.wsPort,this.httpPort))}},{key:"closeStream",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!1,n=this.id;this.hasChannel()&&(e=!0,this.drivingClosed=t),t&&(this.delay=0,this.streamMode=xt.AUTO,this.id=""),this.closeChannel(this.drivingClosed),this.extStream.stop(),e&&this.config.onClose(this.index,n)}},{key:"showMain",value:function(t){if(this.hasChannel()&&this.isShowMain!==t&&this.urls.length>1){var e=t?this.mainUrlIndex:0===this.mainUrlIndex?1:0;this.wsChannel.switchIndex(e)}this.isShowMain=t}},{key:"fillWindow",value:function(t){}},{key:"hasChannel",value:function(){return this.wsChannel.hasChannel()}},{key:"isDrivingClosed",value:function(){return this.drivingClosed}},{key:"adjustSize",value:function(t,e,n,i,r){r<=0&&(r=this.span),this.width=t*r,this.height=e*r,r>1&&(this.width+=(r-1)*i,this.height+=(r-1)*n),this.element.style.width="".concat(this.width,"px"),this.element.style.height="".concat(this.height,"px"),this.updateChildSize(),this.changeViewport()}},{key:"setSpan",value:function(t){this.span=t}},{key:"setIndex",value:function(t){this.index=t}},{key:"setROI",value:function(t){null===this.roiLayer&&(this.roiLayer=this.createROILayer()),null!==this.roiLayer&&this.roiLayer.setROI(t)}},{key:"getImage",value:function(){var t=document.createElement("canvas");return this.layerManager.getImage(t,!0),t.toDataURL("image/jpeg")}},{key:"snapshot",value:function(){this.reqSnapshot()}},{key:"startROI",value:function(t,e){return(t===G.DRAW_RECT||t===G.DRAW_POLYGON)&&(null==this.roiLayer?this.createROILayer():this.roiLayer.stop(),this.roiLayer&&this.roiLayer.start(t,e),this.caculateLayerShow(),!0)}},{key:"stopROI",value:function(){null!=this.roiLayer&&this.roiLayer.stop(),this.caculateLayerShow()}},{key:"saveROI",value:function(){return null!=this.roiLayer&&this.roiLayer.saveQuit()}},{key:"getStreamWidth",value:function(){return this.streamWidth}},{key:"getStreamHeight",value:function(){return this.streamHeight}},{key:"startRecord",value:function(t,e){return this.wsChannel.startRecord(t,e)}},{key:"stopRecord",value:function(){return this.wsChannel.stopRecord()}},{key:"switchAudio",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.isAudio=t,this.toggleToolButton("volume",t),e&&this.wsChannel.switchAudio(t)}},{key:"switchTalk",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.isTalk=t,this.toggleToolButton("talk",t),e&&this.wsChannel.switchTalk(t)}},{key:"setStreamMode",value:function(t){this.streamMode=t,this.wsChannel.setMode(t)}},{key:"setDelay",value:function(t){this.delay=t,this.wsChannel.setDelay(t)}},{key:"setVolume",value:function(t){this.volume=t,this.wsChannel.setVolume(t)}},{key:"setFormat",value:function(t){var e=yt.JPEG;if("jpeg"===t&&this.renderType!==Ot.CANVAS)this.layerManager.removeLayer(St.YUV_VIDEO_LAYER),this.layerManager.initLayer(St.JPEG_VIDEO_LAYER),this.renderType=Ot.CANVAS,e=yt.JPEG;else{if("yuv"!==t||this.renderType===Ot.YUV)return!0;this.layerManager.removeLayer(St.JPEG_VIDEO_LAYER),this.layerManager.initLayer(St.YUV_VIDEO_LAYER),this.renderType=Ot.YUV,e=yt.YUV}return this.layerManager.move(0,this.titleBar.height(),this.width,this.height-this.titleBar.height()),this.wsChannel.setFormat(e),!0}},{key:"setFilterLoss",value:function(t){this.wsChannel.setFilterLoss(t)}},{key:"setTrackIdFilter",value:function(t,e){this.layerManager.setTrackIdFilter(t,e)}},{key:"setExtRenderHandler",value:function(t){this.layerManager.setExtRenderHandler(t)}},{key:"closeChannel",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.wsChannel.close(),this.status=-1,this.titleBar.clear(),this.layerManager.showError(""),this.layerManager.stopView(),this.ptzPanel.hide(),this.showRecordIcon(!1),t&&(this.stopROI(),null!=this.roiLayer&&(this.roiLayer.destroy(),this.roiLayer=null)),this.updateChildSize(),this.caculateLayerShow(),this.streamWidth=0,this.streamHeight=0,0!==this.heartTimer&&(clearInterval(this.heartTimer),this.heartTimer=0)}},{key:"initChannel",value:function(t,e){var n=this,i=this;this.wsPort=t,this.httpPort=e,i.status=0,i.titleBar.setState(F.STATE_CLOSE),i.titleBar.setName(this.name),i.titleBar.autoShow(),i.layerManager.showError(""),this.wsChannel.init(t,bt.LIVE_CHANNEL,this.config.proxy),this.wsChannel.onConnected=function(){i.titleBar.setState(F.STATE_WAITTING),i.isAudio&&i.switchAudio(!0),i.isTalk&&i.switchTalk(!0),i.setDelay(n.delay),i.setStreamMode(i.streamMode),n.changeViewport(),n.wsChannel.switchUrl(n.urls[0],n.urls[1]),console.log("channel "+i.index+" connected")},this.wsChannel.onDisconnected=function(){i.titleBar.setState(F.STATE_CLOSE),console.log("channel "+i.index+" disconnected")},this.wsChannel.onFrame=function(t,e,i){n.layerManager.putFrame(t,e,i)},this.wsChannel.onCommand=function(t,e){It.SB_CMD_SPEED===t?n.titleBar.setSpeed(e.speed):It.SB_CMD_STREAM_STATUS===t?n.onStreamStatus(e.status,e.errorCode,e.secondErrorCode):It.SB_CMD_RES_SNAPSHOT===t?null!==i.config.onSnapshot&&i.config.onSnapshot(i.id,e.data):It.SB_CMD_STREAM_SIZE===t?(i.streamWidth=e.width,i.streamHeight=e.height):It.SB_CMD_RECORD_STATE===t?-1===e.state?(i.showRecordIcon(!1),i.config.onRecord&&i.config.onRecord(i.id,"failed",""+e.param)):0===e.state?(i.showRecordIcon(!0),i.config.onRecord&&i.config.onRecord(i.id,"start",""+e.param)):1===e.state&&(i.showRecordIcon(!1),i.config.onRecord&&i.config.onRecord(i.id,"stop",""+e.param)):It.SB_CMD_AUDIO_STATE===t?(i.hasAudioInput=e.ainput,i.hasAudioOutput=e.aoutput,!e.ainputOpen&&i.isTalk&&i.switchTalk(!1,!1),!e.aoutputOpen&&i.isAudio&&i.switchAudio(!1,!1),i.config.onAudioState(i.id,e.ainput,e.aoutput,e.ainputOpen,e.aoutputOpen)):It.SB_CMD_INFO===t?(i.hasAudioInput=e.ainput,i.hasAudioOutput=e.aoutput,i.isAudio&&i.switchAudio(!1),i.isTalk&&i.switchTalk(!1),i.config.onAudioState(i.id,e.ainput,e.aoutput,!1,!1)):console.log(e)},this.updateChildSize(),this.caculateLayerShow()}},{key:"onStreamStatus",value:function(t,e,n){2===t?(this.titleBar.setState(F.STATE_RUNNING),this.layerManager.showError(""),null!==this.config.onRunning&&this.config.onRunning()):4===t?this.layerManager.showError(X.STREAM_NO_DATA):5===t?8===e&&this.layerManager.showError(X.STREAM_CONCURRENCY_LIMIT):(1===t?this.titleBar.setState(F.STATE_WAITTING):this.titleBar.setState(F.STATE_CLOSE),-1===e?this.layerManager.showError(X.STREAM_CONNECT_FAILED):-2===e?this.layerManager.showError(X.STREAM_NOTFOUND):-3===e?this.layerManager.showError(X.STREAM_AUTH_FAILED):-4===e?this.layerManager.showError(X.STREAM_UNKNOWN_ERROR):-5===e?this.layerManager.showError(X.STREAM_PROTOCOL_ERROR):-6===e?this.layerManager.showError(X.STREAM_DISCONNECTED):-100===e?this.layerManager.showError(X.STREAM_UNSUPPORTED):-101===e?-101005===n?this.layerManager.showError(X.USER_CONCURRENCY_LIMIT):this.layerManager.showError(X.STREAM_OPEN_FAILED):console.log("unhandled stream_status",t,e)),this.config.onStreamStatus(this.id,t,e,n)}},{key:"initToolbar",value:function(){var t=this;if(null!=this.toolBar&&this.element.removeChild(this.toolBar),this.config.toolBar){this.toolBar=document.createElement("div"),this.toolBar.classList.add("vat-tool"),this.element.appendChild(this.toolBar);var e,n=Lt(this.config.toolButtons);try{for(n.s();!(e=n.n()).done;){var i=e.value;if("volume"===i){var r=this.createToolButton("volume-off","打开声音"),a=this.createToolButton("volume-on","关闭声音");a.style.display="none",r.onclick=function(){t.switchAudio(!0)},a.onclick=function(){t.switchAudio(!1)}}else"snap"===i?this.createToolButton("snapshot","抓图").onclick=function(){t.reqSnapshot()}:"roi-rect"===i?this.createToolButton("roi-rect","ROI矩形绘图").onclick=function(){t.startROI(G.DRAW_RECT,null)}:"roi-polygon"===i?this.createToolButton("roi-polygon","ROI多点绘图").onclick=function(){t.startROI(G.DRAW_POLYGON,null)}:"maximize"===i?this.createToolButton("maximize","显示/取消最大化").onclick=function(){t.config.onZoom()}:"stop"===i?this.createToolButton("stop","停止").onclick=function(){t.closeStream()}:"ptz"===i&&(this.createToolButton("ptz","云台控制").onclick=function(){t.ptzPanel.toggle()})}}catch(t){n.e(t)}finally{n.f()}}}},{key:"showToolBar",value:function(t){null!=this.toolBar&&(this.toolBar.style.display=t?"":"none")}},{key:"showDragLayer",value:function(t){null!=this.dragLayer&&(this.dragLayer.style.display=t?"":"none")}},{key:"createDragLayer",value:function(){var e=this;null==e.dragLayer&&(this.dragLayer=document.createElement("div"),this.dragLayer.setAttribute("draggable","true"),this.dragLayer.classList.add("drag-layer"),this.dragLayer.addEventListener("dragstart",(function(n){if(e.hasChannel()&&!e.isDrawingROI){var i=document.createElement("canvas");if(i.width=e.width/e.span*.8,i.height=e.height/e.span*.8,i.style.opacity="1",i.width>300||i.height>300){var r=Math.min(300/i.width,300/i.height);i.width=i.width*r,i.height=i.height*r}e.layerManager.getImage(i,!1);var a=i.width/2,o=i.height/2;"function"!=typeof DataTransfer.prototype.setDragImage&&e.dragLayer?(e.dragLayer.style.left="".concat(n.layerX-a,"px"),e.dragLayer.style.top="".concat(n.layerY-o,"px"),e.dragLayer.style.width="".concat(i.width,"px"),e.dragLayer.style.height="".concat(i.height,"px"),e.dragLayer.appendChild(i),setTimeout((function(){e.dragLayer&&(e.dragLayer.style.left="",e.dragLayer.style.top="",e.dragLayer.style.width="",e.dragLayer.style.height="",e.dragLayer.removeChild(i))}),0)):(i.style.position="absolute",i.style.left="-999px",n.dataTransfer&&n.dataTransfer.setDragImage(i,a,o),document.body.appendChild(i),setTimeout((function(){document.body.removeChild(i)}),100)),n.dataTransfer&&n.dataTransfer.setData(t.DRAG_MIME,"vat:"+e.index)}else n.preventDefault()})),this.dragLayer.addEventListener("dragenter",(function(t){t.target.classList.add("drag-hover")})),this.dragLayer.addEventListener("dragleave",(function(t){t.target.classList.remove("drag-hover")})),this.dragLayer.addEventListener("drop",(function(n){n.preventDefault(),n.stopPropagation();var i=n.dataTransfer&&n.dataTransfer.getData(t.DRAG_MIME);return n.target.classList.remove("drag-hover"),i&&i.length>0&&e.config.onDrop&&e.config.onDrop(i,e.index),!1})),this.dragLayer.addEventListener("dragover",(function(t){t.preventDefault()})),e.element.appendChild(this.dragLayer))}},{key:"createToolButton",value:function(t,e){var n=document.createElement("a");n.title=e;var i=B.getSVG(t);return n.appendChild(i),this.toolBar&&(this.toolBar.appendChild(n),this.element.appendChild(this.toolBar),this.toolButtons[t]=n),n}},{key:"createROILayer",value:function(){var t=this;return null!=this.roiLayer?this.roiLayer:(this.roiLayer=new G(this.element,this.config.maxRoi,this.config.roiMenu),null===this.roiLayer?null:(this.roiLayer.onEscape=function(){t.stopROI()},this.roiLayer.onSave=function(e){t.stopROI(),t.config.onRoi&&t.config.onRoi(t.id,e)},this.updateChildSize(),this.roiLayer))}},{key:"updateChildSize",value:function(){this.layerManager.move(0,this.titleBar.height(),this.width,this.height-this.titleBar.height()),null!==this.roiLayer&&this.roiLayer.resize(0,this.titleBar.height(),this.width,this.height-this.titleBar.height()),this.titleBar.adjustWidth(this.width)}},{key:"caculateLayerShow",value:function(){!this.hasChannel()||null!==this.roiLayer&&this.roiLayer.isUserDrawing()?(this.showToolBar(!1),null!==this.roiLayer&&this.roiLayer.isUserDrawing()?this.showDragLayer(!1):this.showDragLayer(!0)):(this.showToolBar(!0),this.showDragLayer(!0))}},{key:"changeViewport",value:function(){this.wsChannel.setViewport(this.width,this.height-this.titleBar.height())}},{key:"reqSnapshot",value:function(){this.wsChannel.snapshot(0)}},{key:"showRecordIcon",value:function(t){t&&null==this.recordIcon&&(this.recordIcon=document.createElement("span"),this.recordIcon.setAttribute("class","vat-record"),this.recordIcon.style.visibility="hidden",this.element.appendChild(this.recordIcon)),null!=this.recordIcon&&(this.recordIcon.style.visibility=t?"visible":"hidden")}},{key:"toggleToolButton",value:function(t,e){var n=t+"-on",i=t+"-off";e?(this.toolButtons[n]&&(this.toolButtons[n].style.display="inline-block"),this.toolButtons[i]&&(this.toolButtons[i].style.display="none")):(this.toolButtons[n]&&(this.toolButtons[n].style.display="none"),this.toolButtons[i]&&(this.toolButtons[i].style.display="inline-block"))}}]),t}();Nt.DRAG_MIME="text",Nt.TITLE_BAR_HEIGHT=16,Nt.SB_CMD_SPEED="speed",Nt.SB_CMD_STREAM_STATUS="stream_status",Nt.SB_CMD_INFO="info",Nt.SB_CMD_STREAM_SIZE="stream_size",Nt.SB_CMD_RECORD_STATE="record_state",Nt.SB_CMD_AUDIO_STATE="audio_state",Nt.CMD_OPEN_CHANNEL="openchannel",Nt.CMD_CLOSE_CHANNEL="closechannel",Nt.CMD_SET_VIEWPORT="set_viewport",Nt.CMD_REQ_SNAPSHOT="req_snapshot",Nt.CMD_START_RECORD="start_record",Nt.CMD_STOP_RECORD="stop_record",Nt.CMD_SWITCH_AUDIO="switch_audio",Nt.CMD_SWITCH_TALK="switch_talk",Nt.CMD_SET_STREAM_MODE="set_mode",Nt.CMD_SET_STREAM_DELAY="set_delay",Nt.CMD_SET_STREAM_FORMAT="set_format",Nt.CMD_SET_VOLUME="set_volume";var Bt=n("eec4"),zt=function(){function t(){a(this,t),this.oldWidth=0,this.oldHeight=0,this.element=null,this.erd=null,this.callback=function(){return 1}}return l(t,[{key:"watch",value:function(t,e){var n=this;return null===this.element&&(this.callback=e,this.erd=Bt(),this.erd.listenTo(t,(function(t){t.clientWidth===n.oldWidth&&t.clientHeight===n.oldHeight||(n.oldWidth=t.clientWidth,n.oldHeight=t.clientHeight,n.callback(n.oldWidth,n.oldHeight))})),!0)}},{key:"destroy",value:function(){null!==this.erd&&null!==this.element&&this.erd.uninstall(this.element),this.element=null}}]),t}();function Ft(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Vt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function Vt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Wt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Ut(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Wt(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Ht={fill:!0,dbClick:!0,dragWindow:!0,toolBar:!0,titleBar:0,onSnapshot:null,onRoi:null,maxRoi:10,border:!0,toolButtons:[],filterLoss:!0,onExtData:function(t,e,n){},onStreamStatus:function(t,e,n){},onAudioState:function(t,e,n,i,r){}},Gt={rows:2,cols:2,combines:[],streams:[]},jt=function(){function t(e,n){var i=this;if(a(this,t),this.resizeWatcher=new zt,this.proxy=null,this.showMaxWindow=function(t){var e=i.findTDElement(t);if(null!=e){for(var n=i.getTDIndex(e);i.tableLayout.firstChild;)i.tableLayout.firstChild.nodeName,i.tableLayout.removeChild(i.tableLayout.firstChild);i.maxWindow=i.windows[n],e.removeChild(i.maxWindow.element);var r=document.createElement("td");r.setAttribute("rowSpan","1"),r.setAttribute("colSpan","1"),r.setAttribute("windex",""+n),r.setAttribute("max","true"),r.classList.add("no-border"),r.style.borderWidth="0px",r.appendChild(i.maxWindow.element),i.config.dbClick&&(r.ondblclick=function(t){i.showNormalWindow()});var a=document.createElement("tr");a.appendChild(r),i.tableLayout.appendChild(a),i.adjustSize(),i.onMaximize(i.maxWindow.id,n)}},this.onTDClick=function(t){null==i.maxWindow&&i.selectWindow(t.target)},this.selectWindow=function(e){var n=i.findTDElement(e);if(null!=n){if(i.selectedIndex>=0&&i.selectedIndex<i.windowCount){var r=i.findTDElement(i.windows[i.selectedIndex].element);null!=r&&r.classList.remove("selected")}i.windowCount>1&&n.classList.add("selected");var a=i.selectedIndex;i.selectedIndex=i.getTDIndex(n),i.config.onWinOp&&a!==i.selectedIndex&&i.config.onWinOp(i.selectedIndex,i.windows[i.selectedIndex].id,t.WIN_OP_SELECT)}},this.dropWindow=function(e,n){if(0===e.indexOf("vat:")){if(i.config.dragWindow){var r=parseInt(e.substr(4),10);i.swapWindow(r,n)}}else if(0===e.indexOf("rtsp:")){var a={url:e};i.openLiveStream(n,a)}else if(0===e.indexOf("vat-live:")){var o=t.parseLiveStreamParam(e.substr(9));i.openLiveStream(n,o)}},this.swapWindow=function(t,e){if(t!==e){var n=i.windows[t],r=i.windows[e];n.setSpan(r.span),r.setSpan(n.span),n.setIndex(e),r.setIndex(t),i.windows[t]=r,i.windows[e]=n;var a=r.element.style.width,o=r.element.style.height;r.element.style.width=n.element.style.width,r.element.style.height=n.element.style.height,n.element.style.width=a,n.element.style.height=o,i.updateLayout(i.layout.rows,i.layout.cols,i.layout.combines)}},this.windows=[],this.layout=Ut({},Gt),this.config=Ut(Ut({},Ht),n),this.windowCount=0,this.maxWindow=null,this.selectedIndex=0,this.wsPort=0,null==this.config.fill&&(this.config.fill=!0),this.onChannelStatus=function(t,e){console.log("dcs player channel ".concat(t," status=").concat(e))},this.onMaximize=function(t,e){return 0},!e)throw new Error("bad parentElement argument: "+e);var r=e;this.tableLayout=document.createElement("table"),this.tableLayout.setAttribute("cellspacing","1"),this.config.border||(this.tableLayout.style.borderWidth="0"),r.appendChild(this.tableLayout);var o=this;this.tableLayout.oncontextmenu=function(t){return!1},this.resizeWatcher.watch(r,(function(t,e){o.adjustSize(t,e)}))}return l(t,[{key:"getWsPort",value:function(){return this.wsPort}},{key:"setWsPort",value:function(t,e){this.wsPort=t,this.proxy=e;var n,i=Ft(this.windows);try{for(i.s();!(n=i.n()).done;)n.value.wsPort=this.wsPort}catch(t){i.e(t)}finally{i.f()}}},{key:"setLayout",value:function(t){if(0===this.wsPort)return Mt.INVALID_STATE;if("number"!=typeof t.rows||"number"!=typeof t.cols||"object"!==h(t.combines))return Mt.INVALID_PARAM;if(this.layout=Ut(Ut({},Gt),t),this.updateLayout(this.layout.rows,this.layout.cols,this.layout.combines),void 0===this.layout.streams||null===this.layout.streams)this.layout.streams={};else for(var e=0;e<this.windowCount;e++)this.layout.streams[e]&&this.openLiveStream(e,this.layout.streams[e]);return Mt.OK}},{key:"getLayout",value:function(){for(var t={},e=0;e<this.windowCount;e++){var n=this.windows[e];n.hasChannel()&&(t[e]={id:n.id,name:n.name,url:n.urls.length>0?n.urls[0]:"",subUrl:n.urls.length>1?n.urls[1]:"",hasChannel:n.hasChannel()})}var i=Ut({},this.layout);return i.streams=t,i}},{key:"toggleWindow",value:function(){if(null==this.maxWindow){var t=this._check_index(-1,!0);this.showMaxWindow(this.windows[t].element)}else this.showNormalWindow()}},{key:"openExtStream",value:function(t,e,n,i){this._check_state(),t=this._check_index(t,!0),this.windows[t].openExtStream(e,n,i)}},{key:"closeExtStream",value:function(t){this._check_state(),t=this._check_index(t,!0),this.windows[t].closeExtStream()}},{key:"openLiveStream",value:function(t,e){if(null===e.url||""===e.url)return Mt.INVALID_PARAM;if(this._check_state(),-2===t)for(var n=0;n<this.windowCount;n++){var i=(this.selectedIndex+n)%this.windowCount;if(!this.windows[i].hasChannel()){t=i,this.selectWindow(this.windows[i].element);break}}if(-2===t)return Mt.NO_MORE_FREE_WINDOW;if(e.id&&""!==e.id)for(var r=0;r<this.windowCount;r++)if(this.windows[r].id===e.id)return Mt.WINDOW_ID_CONFLICT;return t=this._check_index(t,!0),this.windows[t].openLiveStream(e),!0===e.realtime&&this.windows[t].setStreamMode(xt.REALTIME),"number"==typeof e.delay&&e.delay>0&&this.windows[t].setDelay(e.delay),t}},{key:"ptzControl",value:function(t,e,n){return this._check_state(),t=this._check_index(t,!1),this.windows[t].ptzControl(e,n)}},{key:"ptzControl3D",value:function(t,e,n,i,r,a){return this._check_state(),t=this._check_index(t,!1),this.windows[t].ptzControl3D(e,n,i,r,a)}},{key:"select",value:function(t){this._check_state(),t=this._check_index(t,!1),this.selectWindow(this.windows[t].element)}},{key:"setROI",value:function(t,e){this._check_state(),t=this._check_index(t,!0),null==e&&(e=[]);var n,i=Ft(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.width<=0||r.height<=0)throw new Error("diagrams width and height must be grater that 0");if(r.type===G.DRAW_RECT){if(null===r.points||2!==r.points.length)throw new Error("diagram rect need two points")}else{if(r.type!==G.DRAW_POLYGON)throw new Error("diagram bad type");if(null===r.points||r.points.length<2)throw new Error("diagram polygon least 3 points")}}}catch(t){i.e(t)}finally{i.f()}this.windows[t].setROI(e)}},{key:"startROI",value:function(t,e,n){return this._check_state(),t=this._check_index(t,!0),this.windows[t].startROI(e,n)}},{key:"stopROI",value:function(t){this._check_state(),t=this._check_index(t,!0),this.windows[t].stopROI()}},{key:"saveROI",value:function(t){return this._check_state(),t=this._check_index(t,!0),this.windows[t].saveROI()}},{key:"closeStream",value:function(t){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].closeStream()}},{key:"closeStreams",value:function(t){if(void 0===t){var e,n=Ft(this.windows);try{for(n.s();!(e=n.n()).done;)e.value.closeStream()}catch(t){n.e(t)}finally{n.f()}}else if(t instanceof Array){var i,r=Ft(t);try{for(r.s();!(i=r.n()).done;){var a=i.value;a>=0&&a<this.windowCount&&this.windows[a].closeStream()}}catch(t){r.e(t)}finally{r.f()}}}},{key:"getStreamInfo",value:function(t){var e={width:0,height:0};return t=this._check_index(t,!0),null!==this.windows[t]&&(e.width=this.windows[t].getStreamWidth(),e.height=this.windows[t].getStreamHeight()),e}},{key:"fillWindow",value:function(t,e){this._check_index(t,!0);for(var n=0;n<this.windowCount;n+=1)-1!==t&&t!==n||!this.windows[n]||this.windows[n].fillWindow(e)}},{key:"showFullscreen",value:function(){var t=this.tableLayout.parentElement;if(t.requestFullscreen)t.requestFullscreen().catch((function(){console.log("request fullscreen failed")}));else if(t.mozRequestFullScreen)t.mozRequestFullScreen();else if(t.webkitRequestFullscreen)t.webkitRequestFullscreen();else{if(!t.msRequestFullscreen)return console.log("不存在进入全屏的方法! => undefined"),!1;t.msRequestFullscreen()}return!0}},{key:"exitFullscreen",value:function(){var t=document;if(t.exitFullscreen)t.exitFullscreen().then((function(){return 1}));else if(t.mozCancelFullScreen)t.mozCancelFullScreen();else{if(!t.webkitExitFullscreen)return!1;t.webkitExitFullscreen()}}},{key:"snapshot",value:function(t){t=this._check_index(t,!0),this.windows[t].snapshot()}},{key:"getImage",value:function(t){return t=this._check_index(t,!0),this.windows[t].getImage()}},{key:"stop",value:function(){this.resizeWatcher.destroy();var t,e=Ft(this.windows);try{for(e.s();!(t=e.n()).done;)t.value.closeStream()}catch(t){e.e(t)}finally{e.f()}}},{key:"resize",value:function(){this.adjustSize()}},{key:"indexOf",value:function(t){if(null==t)return-1;for(var e=0;e<this.windowCount;e++)if(this.windows[e].id===t)return e;return-1}},{key:"startRecord",value:function(t,e,n){return t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].startRecord(e,n)}},{key:"stopRecord",value:function(t){return t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].stopRecord()}},{key:"switchAudio",value:function(t,e){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].switchAudio(e)}},{key:"switchTalk",value:function(t,e){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].switchTalk(e)}},{key:"setStreamMode",value:function(t,e){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].setStreamMode(e)}},{key:"setDelay",value:function(t,e){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].setDelay(e)}},{key:"setFormat",value:function(t,e){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].setFormat(e)}},{key:"showBorder",value:function(t){this.tableLayout.style.borderWidth=t?"null":"0"}},{key:"setTrackIdFilter",value:function(t,e,n){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].setTrackIdFilter(e,n)}},{key:"setExtRenderHandler",value:function(t,e){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].setExtRenderHandler(e)}},{key:"showCheckError",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.updateLayout(0,0,{});var n=document.createElement("tr"),i=document.createElement("td");i.className="check_error";var r=document.createElement("div");if(r.innerText=t,i.appendChild(r),e){var a=document.createElement("a");a.className="vat-down",a.innerHTML="<span>".concat(X.PLUGIN_DOWNLOAD,"</span>"),a.href=this.config.pluginUrl?this.config.pluginUrl:"#",i.appendChild(a)}n.appendChild(i),this.tableLayout.appendChild(n)}},{key:"_check_state",value:function(){if(0===this.wsPort)throw new Error("invalid state, plugin not initialized")}},{key:"_check_index",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(void 0===t)throw new Error("bad parameter index");if(e&&-1===t)return this.selectedIndex;if(t<0||t>=this.windowCount)throw new Error("index out of range");return t}},{key:"adjustSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(this.tableLayout.parentElement){var i=this.layout.rows,r=this.layout.cols;null!=this.maxWindow&&(i=1,r=1),-1===e&&(e=this.tableLayout.parentElement.clientWidth),-1===n&&(n=this.tableLayout.parentElement.clientHeight),e<t.MIN_WIDTH&&(e=t.MIN_WIDTH),n<t.MIN_HEIGHT&&(n=t.MIN_HEIGHT);var a=parseInt(this.tableLayout.cellSpacing,10),o=this.tableLayout.querySelector("td");if(o){var s=2;e=(e-s-a*(r+1)-t.getBDWx2(o)*r)/r,n=(n-s-a*(i+1)-t.getBDHx2(o)*i)/i,e=Math.max(Math.floor(e),0),n=Math.max(Math.floor(n),0);var l=a+t.getBDHx2(o),c=a+t.getBDWx2(o);if(null!=this.maxWindow)this.maxWindow.adjustSize(e,n,l,c,1),this.maxWindow.showMain(!0);else for(var u=i*r,h=u/4,d=0;d<this.windowCount;d+=1)if(this.windows[d]){this.windows[d].adjustSize(e,n,l,c,-1),Math.pow(this.windows[d].span,2)>=h?this.windows[d].showMain(!0):this.windows[d].showMain(!1);var f=this.findTDElement(this.windows[d].element);f&&(f.style.height="0px")}}}}},{key:"updateLayout",value:function(t,e,n){for(var i=this,r={},a=0,o=0;o<this.windowCount;o++)this.windows[o].element.parentElement&&this.windows[o].element.parentElement.removeChild(this.windows[o].element);for(this.maxWindow=null;this.tableLayout.firstChild;)this.tableLayout.removeChild(this.tableLayout.firstChild);for(var s=0;s<t;s++){for(var l=document.createElement("tr"),c=0;c<e;c++){var u=s*e+c;if(null==r[u]){var h=n[u];if(null==h)h=1;else if(h>1)for(var d=0;d<h;d++)for(var f=0;f<h;f++)r[(s+d)*e+c+f]=1;var p=document.createElement("td");if(p.setAttribute("rowSpan",""+h),p.setAttribute("colSpan",""+h),p.setAttribute("windex",""+a),0===a&&t*e==1&&(p.classList.add("no-border"),p.style.borderWidth="0px"),l.appendChild(p),this.config.dbClick&&(p.ondblclick=function(t){i.showMaxWindow(t.target)}),p.onclick=this.onTDClick,a<this.windows.length){var g=this.windows[a];g.element.style.width="1px",g.element.style.height="1px",p.appendChild(g.element),this.windows[a]=g,g.setIndex(a),g.setSpan(h)}else this.createWindow(a,p,h);a++}}this.tableLayout.appendChild(l)}for(var m=a;m<this.windowCount;m++)this.windows[m].closeStream(!1);this.windowCount=a,this.adjustSize();for(var v=0;v<a;v++)this.windows[v].isDrivingClosed()||this.windows[v].hasChannel()||this.windows[v].restoreStream();this.windowCount>0&&(this.selectedIndex>=this.windowCount&&(this.selectedIndex=0),this.selectWindow(this.windows[this.selectedIndex].element))}},{key:"createWindow",value:function(e,n,i){var r=this,a={dragWindow:this.config.dragWindow,toolBar:this.config.toolBar,toolButtons:this.config.toolButtons,titleBar:this.config.titleBar,onSnapshot:void 0===this.config.onSnapshot?null:this.config.onSnapshot,onDrop:this.dropWindow,onRoi:void 0===this.config.onRoi?null:this.config.onRoi,maxRoi:this.config.maxRoi,onZoom:function(){null==r.maxWindow?r.showMaxWindow(o.element):r.showNormalWindow()},onRunning:function(){r.update10Window()},onClose:function(e,n){r.config.onWinOp&&r.config.onWinOp(e,n,t.WIN_OP_CLOSE)},onExtData:this.config.onExtData,roiMenu:!0===this.config.roiMenu,onRecord:void 0===this.config.onRecord?null:this.config.onRecord,onStreamStatus:this.config.onStreamStatus,onAudioState:this.config.onAudioState,proxy:this.proxy},o=new Nt(e,n,a);o.fillWindow(!0===this.config.fill),o.setSpan(i),void 0!==this.config.filterLoss&&o.setFilterLoss(this.config.filterLoss),o.wsPort=this.wsPort,this.windows.push(o)}},{key:"update10Window",value:function(){for(var t=0,e=0;e<this.windowCount;e++)this.windows[e].hasChannel()&&t++;if(t>=10){var n=this;window.requestAnimationFrame((function(){n.updateLayout(n.layout.rows,n.layout.cols,n.layout.combines)}))}}},{key:"showNormalWindow",value:function(){if(null!=this.maxWindow&&null!=this.maxWindow.element.parentElement){for(this.maxWindow.element.parentElement.removeChild(this.maxWindow.element);this.tableLayout.firstChild;)this.tableLayout.removeChild(this.tableLayout.firstChild);this.updateLayout(this.layout.rows,this.layout.cols,this.layout.combines),this.maxWindow=null,this.adjustSize(),this.onMaximize(null,-1)}}},{key:"findTDElement",value:function(t){var e=null;do{if("TD"===t.nodeName&&null!=t.getAttribute("windex")){e=t;break}if(!t.parentElement)return null;t=t.parentElement}while("BODY"!==t.nodeName);return e}},{key:"getTDIndex",value:function(t){return null==t?-1:parseInt(t.getAttribute("windex")||"-1",10)}}],[{key:"getBDWx2",value:function(t){return t?t.offsetWidth-t.clientWidth:0}},{key:"getBDHx2",value:function(t){return t?t.offsetHeight-t.clientHeight:0}},{key:"parseLiveStreamParam",value:function(t){var e={};try{e=JSON.parse(t)}catch(e){throw Error("cannot parse param:"+t)}if(!e.url)throw Error("require param 'url'");return e}}]),t}();jt.MAX_CHANNEL_COUNT=9,jt.MIN_WIDTH=10,jt.MIN_HEIGHT=10,jt.WIN_OP_CLOSE="close",jt.WIN_OP_SELECT="select";var Yt=function(){function t(e,n){var i=this;a(this,t),this.ip="",this.port=0,this.username="",this.password="",this.isLogin=!1,this.loginCB=function(){return 0},this.listCameraCB=function(){return 0},this.wsPort=e,this.websocket=_t.createWebsocket(e,n);var r=this;this.websocket.onerror=function(){i.isLogin=!1,r.loginCB(!1,Mt.NETWORK_ERROR)},this.websocket.onmessage=function(t){r.onMessage(t)},this.websocket.onopen=function(){r.onOpen()}}return l(t,[{key:"loginByUrl",value:function(t){var e=t.indexOf(":");if(e<0)throw new Error("bad server info");var n=t.lastIndexOf("@");if(n<0)throw new Error("bad server info");var i=t.indexOf(":",n+1);if(i<0)throw new Error("bad server info");var r=t.substring(0,e),a=t.substring(e+1,n),o=t.substring(n+1,i),s=parseInt(t.substring(i+1),10);return this.login(o,s,r,a)}},{key:"login",value:function(t,e,n,i){return this.ip=t,this.port=e,this.username=n,this.password=i,this.websocket.readyState!==WebSocket.OPEN?Mt.INVALID_STATE:(this.sendLoginCmd(),Mt.OK)}},{key:"destroy",value:function(){null!==this.websocket&&(this.websocket.onclose=null,this.websocket.onerror=null,this.websocket.close())}},{key:"listCameras",value:function(){return this.websocket.readyState!==WebSocket.OPEN?Mt.INVALID_STATE:(this.websocket.send(JSON.stringify({cmd:"req_list_camera"})),Mt.OK)}},{key:"onMessage",value:function(t){var e=JSON.parse(t.data);"res_login"===e.cmd?(this.loginCB(e.success,e.code),!0===e.success&&(this.isLogin=!0)):"res_list_camera"===e.cmd&&this.listCameraCB(e.data)}},{key:"onOpen",value:function(){this.ip.length>0&&this.port>0&&this.sendLoginCmd()}},{key:"sendLoginCmd",value:function(){var t={cmd:"req_login",ip:this.ip,port:this.port,username:this.username,password:this.password};this.websocket.send(JSON.stringify(t))}}]),t}(),qt=function t(){a(this,t)};qt.WS_PORT=3457,qt.CMD_INIT="init",qt.CMD_OPEN_CHANNEL="openchannel",qt.CMD_CLOSE_CHANNEL="closechannel",qt.CMD_CHANNEL_STATUS="channel.status",qt.CMD_ERROR="error";var Kt=n("b697"),Xt=n.n(Kt),Zt=n("9224"),Qt=Zt.version,Jt=Zt.vatversion,$t=function(){function t(e){if(a(this,t),this.serverVersion="",this.timerId=0,this.currentIp="",this.proxy=e,this.onConnectFailed=function(){return 0},this.onDisconnected=function(){return 0},this.onInitError=function(){return 0},this.onInitOk=function(){return 0},this.socketOpened=!1,this.initOk=!1,this.proxyIp=null,this.proxy){var n=this.proxy.indexOf("://"),i=this.proxy.lastIndexOf(":");this.proxyIp=n<0&&i<0?this.proxy:n<0?this.proxy.substring(0,i):i<0||n===i?this.proxy.substring(n+3):this.proxy.substring(n+3,i)}this.websocket=this.initWebSocket("127.0.0.1")}return l(t,[{key:"isProxy",value:function(){return null!==this.proxy&&this.currentIp===this.proxy}},{key:"getConnectedProxyIp",value:function(){return this.isProxy()?this.proxyIp:null}},{key:"close",value:function(){this.clearTimer(),_t.closeWebsocket(this.websocket)}},{key:"initWebSocket",value:function(t){var e=this;this.currentIp=t,this.socketOpened=!1;var n=0===t.indexOf("ws://")||0===t.indexOf("wss://")?t:"ws://".concat(t,":").concat(qt.WS_PORT),i=new WebSocket(n);return i.onerror=i.onclose=function(){e.handleDisconnect()},i.onopen=function(){e.clearTimer(),e.socketOpened=!0;var t=JSON.stringify({cmd:qt.CMD_INIT,version:Qt});e.websocket.send(t)},i.onmessage=function(t){var n=JSON.parse(t.data);if(n.cmd===qt.CMD_INIT){e.serverVersion=n.version;var i=Jt;if(0!==n.code)_t.closeWebsocket(e.websocket),e.onInitError(e.serverVersion,X.PLUGIN_SERVICE_MISMATCH);else if(0===i.indexOf("="))if(0===Xt()(n.version,i.substring(1)))e.initOk=!0,e.onInitOk(e.serverVersion,n.port);else{var r=X.get(X.PLUGIN_SERVICE_VERSION_REQUIRE,{installed_version:n.version,require_version:i.substring(1)});e.onInitError(e.serverVersion,r)}else if(Xt()(n.version,i)>=0)e.initOk=!0,e.onInitOk(e.serverVersion,n.port);else{var a=X.get(X.PLUGIN_SERVICE_VERSION_REQUIRE,{installed_version:n.version,require_version:i});e.onInitError(e.serverVersion,a)}}else n.cmd===qt.CMD_CHANNEL_STATUS?e.onInitOk(e.serverVersion,n.ws_port):n.cmd===qt.CMD_ERROR&&console.error(t.data)},this.initTimer(),i}},{key:"initTimer",value:function(){var t=this;this.clearTimer(),this.timerId=setTimeout((function(){t.handleDisconnect()}),650)}},{key:"clearTimer",value:function(){0!==this.timerId&&(clearTimeout(this.timerId),this.timerId=0)}},{key:"handleDisconnect",value:function(){if(!this.socketOpened&&this.proxy&&this.currentIp!==this.proxy&&this.proxy.length>6)return _t.closeWebsocket(this.websocket),void(this.websocket=this.initWebSocket(this.proxy));this.socketOpened?this.onDisconnected():this.onConnectFailed(),this.socketOpened=!1}}]),t}();function te(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return ee(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ee(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function ee(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function ne(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ie(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ne(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function re(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}var ae={},oe=function(t){u(n,t);var e=re(n);function n(){var t;return a(this,n),(t=e.apply(this,arguments)).api=null,t.dcs=null,t.loaded=!1,t.wsInitChannel=null,t}return l(n,[{key:"login",value:function(t,e,n,i){return null===this.dcs?Mt.INVALID_STATE:this.dcs.login(t,e,n,i)}},{key:"setLayout",value:function(t){this.api&&this.api.setLayout(t)}},{key:"getLayout",value:function(){return this.api?this.api.getLayout():null}},{key:"toggleWindow",value:function(){this.api&&this.api.toggleWindow()}},{key:"openStream",value:function(t,e,n,i){return this.api?this.api.openLiveStream(t,{url:e,subUrl:n,name:i}):Mt.INVALID_STATE}},{key:"openStreamEx",value:function(t,e){return this.api?this.api.openLiveStream(t,e):Mt.INVALID_STATE}},{key:"ptzControl",value:function(t,e,n){return null===this.api?Mt.INVALID_STATE:this.api.ptzControl(t,e,n)}},{key:"ptzControl3D",value:function(t,e,n,i,r,a){return null===this.api?Mt.INVALID_STATE:this.api.ptzControl3D(t,e,n,i,r,a)}},{key:"selectWindow",value:function(t){this.api&&this.api.select(t)}},{key:"setROI",value:function(t,e){this.api&&this.api.setROI(t,e)}},{key:"startROI",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return null!==this.api&&this.api.startROI(t,e,n)}},{key:"stopROI",value:function(t){this.api&&this.api.stopROI(t)}},{key:"saveROI",value:function(t){return null!==this.api&&this.api.saveROI(t)}},{key:"closeStream",value:function(t){this.api&&this.api.closeStream(t)}},{key:"closeStreams",value:function(t){this.api&&this.api.closeStreams(t)}},{key:"fillWindow",value:function(t,e){this.api&&this.api.fillWindow(t,e)}},{key:"showFullscreen",value:function(){return this.api&&this.api.showFullscreen()}},{key:"exitFullscreen",value:function(){this.api&&this.api.exitFullscreen()}},{key:"getImage",value:function(t){return this.api?this.api.getImage(t):null}},{key:"snapshot",value:function(t){this.api&&this.api.snapshot(t)}},{key:"indexOf",value:function(t){return this.api?this.api.indexOf(t):Mt.INVALID_STATE}},{key:"getStreamInfo",value:function(t){if(this.api)return this.api.getStreamInfo(t)}},{key:"startRecord",value:function(t,e,n){return!!this.api&&(!this.wsInitChannel||!this.wsInitChannel.isProxy())&&(void 0===n&&(n=""),this.api.startRecord(t,e,n))}},{key:"stopRecord",value:function(t){return!!this.api&&this.api.stopRecord(t)}},{key:"closeExtStream",value:function(t){if(!this.api)return!1;this.api.closeExtStream(t)}},{key:"openExtStream",value:function(t,e){if(!this.api)return!1;this.api.openExtStream(t,"","",e)}},{key:"switchAudio",value:function(t,e){this.api&&this.api.switchAudio(t,e)}},{key:"switchTalk",value:function(t,e){this.api&&this.api.switchTalk(t,e)}},{key:"setStreamMode",value:function(t,e){this.api&&this.api.setStreamMode(t,e)}},{key:"setDelay",value:function(t,e){this.api&&this.api.setDelay(t,e)}},{key:"setTrackIdFilter",value:function(t,e,n){this.api&&this.api.setTrackIdFilter(t,e,n)}},{key:"setExtRenderHandler",value:function(t,e){this.api&&this.api.setExtRenderHandler(t,e)}},{key:"setMessage",value:function(t,e){X.set(t,e)}},{key:"onServerChange",value:function(t,e){void 0!==this.server&&""!==this.server&&this.loaded&&this.tryLogin()}},{key:"onBorderChange",value:function(t,e){if(!this.api)return!1;this.api.showBorder(t)}},{key:"mounted",value:function(){var t=this;q.token=this.$attrs.token;var e={rows:1,cols:1,combines:[],streams:{}};this.config.layout&&(e=ie({},this.config.layout));var n,i={pluginUrl:"#",onSnapshot:this.onSnapshot,onRoi:this.onROI,dbClick:!1!==this.config.dbClick,dragWindow:!1!==this.config.dragWindow,toolBar:!1!==this.config.toolBar,toolButtons:this.config.boolButtons||["volume","roi-rect","roi-polygon","snap","stop"],titleBar:!1===this.config.titleBar?0:z.ALL,maxRoi:this.config.maxRoi?this.config.maxRoi:10,onExtData:this.onExtData,onWinOp:this.onWinOp,roiMenu:!1!==this.config.roiMenu,onRecord:this.onRecord,onStreamStatus:this.onStreamStatus,onAudioState:this.onAudioState,border:!1!==this.config.border,filterLoss:this.config.filterLoss},r=te(void 0===this.$slots.default?[]:this.$slots.default);try{for(r.s();!(n=r.n()).done;){var a=n.value;if("download-url"===a.tag){if(void 0!==a.text)i.pluginUrl=a.text;else if(void 0!==a.children&&a.children.length>0){var o,s=te(a.children);try{for(s.s();!(o=s.n()).done;)void 0===o.value.tag&&(i.pluginUrl=a.children[0].text)}catch(t){s.e(t)}finally{s.f()}}}else if("msg"===a.tag){if(void 0===a.data||void 0===a.data.key)continue;var l="";if(void 0!==a.text)l=a.text;else if(void 0!==a.children&&a.children.length>0){var c,u=te(a.children);try{for(u.s();!(c=u.n()).done;)void 0===c.value.tag&&void 0!==a.children[0].text&&(l=a.children[0].text)}catch(t){u.e(t)}finally{u.f()}}X.set(""+a.data.key,l)}}}catch(t){r.e(t)}finally{r.f()}this.api=new jt(this.$el,i),this.api.onMaximize=function(e,n){t.$emit("onMaximize",e,n)},this.wsInitChannel=new $t(this.proxy),this.wsInitChannel.onInitOk=function(n,i){t.loaded=!0,null!==t.api&&(t.api.setWsPort(i,null===t.wsInitChannel?null:t.wsInitChannel.getConnectedProxyIp()),t.api.setLayout(e)),t.$emit("onLoad",t,n,t.wsInitChannel&&t.wsInitChannel.isProxy()),t.tryLogin()},this.wsInitChannel.onInitError=function(e,n){null!==t.api&&(t.api.showCheckError(n,void 0!==e&&e.length>0),t.$emit("onLoadFailed",n))},this.wsInitChannel.onConnectFailed=function(){null!==t.api&&t.api.showCheckError(X.PLUGIN_SERVICE_NOTFOUND,!0)},this.wsInitChannel.onDisconnected=function(){null!==t.api&&t.api.showCheckError(X.PLUGIN_SERVICE_DISCONNECTED,!0)}}},{key:"beforeDestroy",value:function(){this.api&&this.api.stop(),null!==this.wsInitChannel&&this.wsInitChannel.close()}},{key:"tryLogin",value:function(){var t=this;null!==this.api&&(null===this.dcs&&(this.dcs=new Yt(this.api.getWsPort(),null==this.wsInitChannel?null:this.wsInitChannel.getConnectedProxyIp())),this.dcs.loginCB=function(e,n){t.$emit("onLogin",e,n)},this.server.length>0&&this.dcs.loginByUrl(this.server))}},{key:"onSnapshot",value:function(t,e){this.$emit("onSnapshot",t,e)}},{key:"onROI",value:function(t,e){this.$emit("onRoi",t,e)}},{key:"onExtData",value:function(t,e,n){this.$emit("onExtData",t,e,n),e===At.FACE_SNAP&&this.$emit("onRecg",t,n)}},{key:"onWinOp",value:function(t,e,n){this.$emit("onWinOp",t,e,n)}},{key:"onRecord",value:function(t,e,n){this.$emit("onRecord",t,e,n)}},{key:"onStreamStatus",value:function(t,e,n,i){this.$emit("onStreamStatus",t,e,n,i)}},{key:"onAudioState",value:function(t,e,n,i,r){this.$emit("onAudioState",t,e,n,i,r)}}]),n}(m.a);p([P({default:function(){return ae}})],oe.prototype,"config",void 0),p([P({default:"dark"})],oe.prototype,"theme",void 0),p([P({default:""})],oe.prototype,"server",void 0),p([P({default:""})],oe.prototype,"proxy",void 0),p([O("$attrs.server",{immediate:!0})],oe.prototype,"onServerChange",null),p([O("$attrs.border",{immediate:!0})],oe.prototype,"onBorderChange",null);var se=oe=p([E({components:{}})],oe);function le(t,e,n,i,r,a,o,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:c}}n("4b0b");var ce=le(se,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{class:["vatlive","vatlive-"+t.theme]})}),[],!1,null,null,null).exports;function ue(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function he(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return de(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?de(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function de(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n("551c");var fe=function(){function t(e,n){a(this,t),this.windowCount=0,this.windows=[],this.selectedIndex=0,this.maxWindow=null,this.layout={rows:0,cols:0,combines:{}},this.enableDBClick=!1,this.resizeWatcher=new zt,this.getBDWx2=function(t){return t?t.offsetWidth-t.clientWidth:0},this.getBDHx2=function(t){return t?t.offsetHeight-t.clientHeight:0},this.tableLayout=e,this.cbCreateWindow=n,this.fastFrameUpdateId=0,this.fastFrameUpdateCount=0}return l(t,[{key:"setup",value:function(){var t=this,e=this.tableLayout.parentElement;return null!==e&&(this.resizeWatcher.watch(e,(function(){t.update()})),!0)}},{key:"destroy",value:function(){this.resizeWatcher.destroy(),this.updateLayout(0,0,{});var t,e=he(this.windows);try{for(e.s();!(t=e.n()).done;)t.value.close()}catch(t){e.e(t)}finally{e.f()}this.windows=[]}},{key:"setLayout",value:function(t){this.layout=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ue(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t),this.updateLayout(this.layout.rows,this.layout.cols,this.layout.combines)}},{key:"getWindowCount",value:function(){return this.windowCount}},{key:"getSelectedIndex",value:function(){return this.selectedIndex}},{key:"getSelectedWindow",value:function(){return this.windows.length<=this.selectedIndex?null:this.windows[this.selectedIndex]}},{key:"update",value:function(){this.updateLayout(this.layout.rows,this.layout.cols,this.layout.combines)}},{key:"getWindow",value:function(t){return-1===t&&(t=this.selectedIndex),t<0||t>=this.windowCount?null:this.windows[t]}},{key:"showMaxWindow",value:function(t){var e=this;if(-1===t&&(t=this.selectedIndex),t<0||t>=this.windowCount)return!1;for(;this.tableLayout.firstChild;)this.tableLayout.removeChild(this.tableLayout.firstChild);this.maxWindow=this.windows[t],this.maxWindow.element.parentElement&&this.maxWindow.element.parentElement.removeChild(this.maxWindow.element);var n=document.createElement("td");n.setAttribute("rowSpan","1"),n.setAttribute("colSpan","1"),n.setAttribute("windex",""+t),n.setAttribute("max","true"),n.classList.add("no-border"),n.style.borderWidth="0px",n.appendChild(this.maxWindow.element),this.enableDBClick&&(n.ondblclick=function(t){e.showNormalWindow()});var i=document.createElement("tr");return i.appendChild(n),this.tableLayout.appendChild(i),this.adjustSize(),!0}},{key:"showNormalWindow",value:function(){if(null!=this.maxWindow&&null!=this.maxWindow.element.parentElement){for(this.maxWindow.element.parentElement.removeChild(this.maxWindow.element);this.tableLayout.firstChild;)this.tableLayout.removeChild(this.tableLayout.firstChild);this.updateLayout(this.layout.rows,this.layout.cols,this.layout.combines),this.maxWindow=null,this.adjustSize()}}},{key:"selectWindow",value:function(t){if(this.selectedIndex>=0&&this.selectedIndex<this.windowCount){var e=this.windows[this.selectedIndex].element.parentElement;null!=e&&e.classList.remove("selected")}if(this.windowCount>1){var n=this.windows[t].element.parentElement;null!==n&&n.classList.add("selected")}this.selectedIndex,this.selectedIndex=t,this.selectedIndex}},{key:"adjustSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(this.tableLayout.parentElement){var i=this.layout.rows,r=this.layout.cols;null!=this.maxWindow&&(i=1,r=1),-1===e&&(e=this.tableLayout.parentElement.clientWidth),-1===n&&(n=this.tableLayout.parentElement.clientHeight),e<t.MIN_WIDTH&&(e=t.MIN_WIDTH),n<t.MIN_HEIGHT&&(n=t.MIN_HEIGHT);var a=this.tableLayout.cellSpacing;""===a&&null!==this.tableLayout.style.borderSpacing&&(a=this.tableLayout.style.borderSpacing),""===a&&(a="0");var o=parseInt(a,10),s=this.tableLayout.querySelector("td");if(s){var l=2;e=(e-l-o*(r+1)-this.getBDWx2(s)*r)/r,n=(n-l-o*(i+1)-this.getBDHx2(s)*i)/i,e=Math.max(Math.floor(e),0),n=Math.max(Math.floor(n),0);var c=o+this.getBDHx2(s),u=o+this.getBDWx2(s);if(null!=this.maxWindow)this.maxWindow.adjustSize(e,n,c,u,1),this.maxWindow.showMain(!0);else for(var h=i*r,d=h/4,f=0;f<this.windowCount;f+=1)if(this.windows[f]){this.windows[f].adjustSize(e,n,c,u,-1),Math.pow(this.windows[f].span,2)>=d?this.windows[f].showMain(!0):this.windows[f].showMain(!1);var p=this.findTDElement(this.windows[f].element);p&&(p.style.height="0px")}}}}},{key:"findTDElement",value:function(t){var e=null;do{if("TD"===t.nodeName&&null!=t.getAttribute("windex")){e=t;break}if(!t.parentElement)return null;t=t.parentElement}while("BODY"!==t.nodeName);return e}},{key:"updateLayout",value:function(t,e,n){for(var i=this,r={},a=0,o=0;o<this.windowCount;o++)this.windows[o].element.parentElement&&this.windows[o].element.parentElement.removeChild(this.windows[o].element);for(this.maxWindow=null;this.tableLayout.firstChild;)this.tableLayout.removeChild(this.tableLayout.firstChild);for(var s=0;s<t;s++){for(var l=document.createElement("tr"),c=0;c<e;c++){var u=s*e+c;if(null==r[u]){var h=n[u];if(null==h)h=1;else if(h>1)for(var d=0;d<h;d++)for(var f=0;f<h;f++)r[(s+d)*e+c+f]=1;var p=document.createElement("td");if(p.setAttribute("rowSpan",""+h),p.setAttribute("colSpan",""+h),p.setAttribute("windex",""+a),0===a&&t*e==1&&(p.classList.add("no-border"),p.style.borderWidth="0px"),l.appendChild(p),this.enableDBClick&&(p.ondblclick=function(t){i.showMaxWindow(i.findWinIndex(t.target))}),p.onclick=function(t){null==i.maxWindow&&i.selectWindow(i.findWinIndex(t.target))},a<this.windows.length){var g=this.windows[a];g.element.style.width="1px",g.element.style.height="1px",p.appendChild(g.element),this.windows[a]=g,g.index=a,g.span=h}else{var m=this.cbCreateWindow(a,p);m.span=h,this.windows.push(m)}a++}}this.tableLayout.appendChild(l)}for(var v=a;v<this.windowCount;v++)this.windows[v].pause();this.windowCount=a,this.adjustSize();for(var y=0;y<a;y++)this.windows[y].resume();this.windowCount>0&&(this.selectedIndex>=this.windowCount&&(this.selectedIndex=0),this.selectWindow(this.selectedIndex))}},{key:"findWinIndex",value:function(t){var e=null;do{if("TD"===t.nodeName&&null!=t.getAttribute("windex")){e=t;break}if(!t.parentElement)break;t=t.parentElement}while("BODY"!==t.nodeName);if(null!==e){var n=e.getAttribute("windex");if(null!==n)return parseInt(n,10)}return-1}}]),t}();fe.MAX_CHANNEL_COUNT=9,fe.MIN_WIDTH=10,fe.MIN_HEIGHT=10,fe.WIN_OP_CLOSE="close",fe.WIN_OP_SELECT="select";var pe,ge,me=function(){function t(e,n){a(this,t),this.id="",this.originIndex=e,this.index=e,this.span=1,this.width=0,this.height=0,this.name="",this.element=document.createElement("div"),this.element.setAttribute("class","vatwin"),this.element.setAttribute("windex",""+e),n.appendChild(this.element)}return l(t,[{key:"adjustSize",value:function(t,e,n,i,r){r<=0&&(r=this.span),this.width=t*r,this.height=e*r,r>1&&(this.width+=(r-1)*i,this.height+=(r-1)*n),this.element.style.width="".concat(this.width,"px"),this.element.style.height="".concat(this.height,"px"),this.onResize(this.width,this.height)}}]),t}();me.DRAG_MIME="text",me.TITLE_BAR_HEIGHT=16,me.SB_CMD_SPEED="speed",me.SB_CMD_STREAM_STATUS="stream_status",me.SB_CMD_INFO="info",me.SB_CMD_STREAM_SIZE="stream_size",me.SB_CMD_RECORD_STATE="record_state",me.SB_CMD_AUDIO_STATE="audio_state",me.CMD_OPEN_CHANNEL="openchannel",me.CMD_CLOSE_CHANNEL="closechannel",me.CMD_SET_VIEWPORT="set_viewport",me.CMD_REQ_SNAPSHOT="req_snapshot",me.CMD_START_RECORD="start_record",me.CMD_STOP_RECORD="stop_record",me.CMD_SWITCH_AUDIO="switch_audio",me.CMD_SWITCH_TALK="switch_talk",me.CMD_SET_STREAM_MODE="set_mode",me.CMD_SET_STREAM_DELAY="set_delay",me.CMD_SET_STREAM_FORMAT="set_format",function(t){t[t.STOPPED=0]="STOPPED",t[t.WAIT_RESULT=1]="WAIT_RESULT",t[t.RUNNING=2]="RUNNING",t[t.FINISHED=3]="FINISHED"}(pe||(pe={})),function(t){t[t.UNKOWN=0]="UNKOWN",t[t.DONE=1]="DONE",t[t.CONNECT_FAILED=2]="CONNECT_FAILED",t[t.NOT_FOUND=3]="NOT_FOUND"}(ge||(ge={}));var ve,ye,xe=function(){function t(e,n){var i=this;a(this,t),this.cmdCaches=[],this.streamIndex=0,this.streamStatus=pe.STOPPED,this.direction=1,this.backwardCaches=[],this.wsChannel=new It,this.onRecords=function(t,e,n){return 0},this.onStream=function(t){return 0},this.onLoad=function(){return 0},this.onPlayState=function(t){return 0},this.onStreamFinish=function(t,e){return 0},this.onSnapshot=function(t,e,n){return 0},this.wsChannel.init(e,bt.VOD_CHANNEL,n),this.wsChannel.onConnected=function(){for(;i.cmdCaches.length>0;){var t=i.cmdCaches.shift();i.wsChannel.sendRaw(t)}null!==i.onLoad&&i.onLoad()},this.wsChannel.onCommand=function(e,n){"records"===e?null!==i.onRecords&&i.onRecords(n.startTime,n.endTime,n.records):e===t.CMD_PLAY_STATE?n.index===i.streamIndex&&(n.success?i.streamStatus=pe.RUNNING:i.streamStatus=pe.STOPPED,i.onPlayState(n.success,n.code)):e===t.CMD_STREAM_STATE?(i.dispatchAllCaches(),i.onStreamFinish(n.state,n.time)):e===t.CMD_RES_SNAPSHOT?i.onSnapshot(n.data,n.path,n.time):console.log(n)},this.wsChannel.onFrame=function(t,e,n){i.handleFrame({yuv:t===vt.YUV,data:e,time:n})},this.deviceInfo=null}return l(t,[{key:"setFormat",value:function(t){this.wsChannel.setFormat(t)}},{key:"open",value:function(t){this.deviceInfo=t,this.sendOpenDevice()}},{key:"channel",value:function(){return this.wsChannel}},{key:"play",value:function(e,n){var i=++this.streamIndex;this.streamStatus=pe.WAIT_RESULT,this.direction=n,this.backwardCaches=[],this.queueOrSend({cmd:t.CMD_PLAY,pos:e,direction:n,index:i})}},{key:"stop",value:function(){this.streamStatus=pe.STOPPED,this.wsChannel.stop()}},{key:"pause",value:function(){this.wsChannel.pause()}},{key:"resume",value:function(t){this.wsChannel.resume(t)}},{key:"changeDirection",value:function(t){this.wsChannel.changeDirection(t)}},{key:"setSpeed",value:function(e){this.queueOrSend({cmd:t.CMD_SET_SPEED,speed:e})}},{key:"query",value:function(e,n){this.queueOrSend({cmd:t.CMD_QUERY_RECORD,startTime:e,endTime:n})}},{key:"snapshot",value:function(t){return this.wsChannel.snapshot(t)}},{key:"close",value:function(){this.wsChannel.close(),this.cmdCaches=[]}},{key:"queueOrSend",value:function(t){this.wsChannel.sendRaw(JSON.stringify(t))||this.cmdCaches.push(JSON.stringify(t))}},{key:"sendOpenDevice",value:function(){if(null===this.deviceInfo)return!1;var e={cmd:t.CMD_OPEN_DEVICE,id:this.deviceInfo.id,startTime:this.deviceInfo.minTime,endTime:this.deviceInfo.maxTime};return this.queueOrSend(e),!0}},{key:"handleFrame",value:function(t){if(this.direction>0)this.onStream(t);else if(0===this.backwardCaches.length)this.backwardCaches.push(t);else if(t.time<this.backwardCaches[0].time||this.backwardCaches.length>100){for(;this.backwardCaches.length>0;){var e=this.backwardCaches.pop();e&&this.onStream(e)}this.backwardCaches.push(t)}else this.backwardCaches.push(t)}},{key:"dispatchAllCaches",value:function(){for(;this.backwardCaches.length>0;){var t=this.backwardCaches.pop();t&&this.onStream(t)}}}]),t}();function be(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function _e(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?be(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function we(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}xe.CMD_INIT_CHANNEL="init_channel",xe.CMD_OPEN_DEVICE="open_device",xe.CMD_QUERY_RECORD="query_record",xe.CMD_PLAY="play",xe.CMD_SET_FORMAT="set_format",xe.CMD_STOP_STREAM="stop_stream",xe.CMD_PAUSE_STREAM="pause_stream",xe.CMD_RESUME_STREAM="resume_stream",xe.CMD_SET_SPEED="set_speed",xe.CMD_PLAY_STATE="play_state",xe.CMD_STREAM_STATE="stream_state",xe.CMD_REQ_SNAPSHOT="req_snapshot",xe.CMD_RES_SNAPSHOT="res_snapshot",xe.CMD_CHANGE_DIRECTION="change_direction",function(t){t[t.STOPPED=0]="STOPPED",t[t.FORWARD_PLAYING=1]="FORWARD_PLAYING",t[t.BACKWARD_PLAYING=2]="BACKWARD_PLAYING",t[t.STEP_PLAYING=3]="STEP_PLAYING",t[t.PAUSED=4]="PAUSED"}(ve||(ve={})),function(t){t[t.BACKWARD=-1]="BACKWARD",t[t.FORWARD=1]="FORWARD"}(ye||(ye={}));var Se=function(t){u(n,t);var e=we(n);function n(t,i,r,o){var s;a(this,n),(s=e.call(this,t,i)).direction=ye.FORWARD,s.frames=[],s.framePos=0,s.playTimer=0,s.firstPlayTick=0,s.firstPlayTime=0,s.finishTime=-1,s.onPlayState=function(t){return 0},s.speed=1,s.posSec=0,s.playTime=0,s.record={startTime:0,endTime:0,type:0},s.onStatus=function(t){return 1},s.onPosChange=function(t){return 1},s.onSnapshot=function(t,e){return 1},s.onPlayFinished=function(t){return 1},s.status=ve.STOPPED,s.deviceInfo=null,o&&o.length>6?s.format=yt.JPEG:s.format=Dt.chooseLayerType(t)===St.YUV_VIDEO_LAYER?yt.YUV:yt.JPEG;var l=new $;s.jpegLayer=new rt(s.element,"vatrender"),s.jpegLayer.setupRender(l);var c=new nt;return s.yuvLayer=new rt(s.element,"vatrender"),s.yuvLayer.setupRender(c),s.streamProxy=new xe(r,o),s.streamProxy.onLoad=function(){null!==s.deviceInfo&&s.streamProxy.open(s.deviceInfo),s.streamProxy.setFormat(s.format),s.streamProxy.setSpeed(s.speed)},s.streamProxy.onStream=function(t){s.status!==ve.STOPPED&&(s.frames.length>0&&t.time<s.frames[0].time?(s.framePos+=1,s.frames.unshift(t)):s.frames.push(t),(s.frames.length===n.CACHE_SIZE||s.frames.length>n.CACHE_SIZE+50)&&0===s.playTimer&&s.streamProxy.pause())},s.streamProxy.onStreamFinish=function(t,e){s.finishTime=e,(s.status===ve.FORWARD_PLAYING&&s.framePos>=s.frames.length||s.status===ve.BACKWARD_PLAYING&&0===s.framePos)&&s.stop()},s.streamProxy.onPlayState=function(t,e){t||s.stop(),s.onPlayState(t,e)},s.streamProxy.onSnapshot=function(t,e,n){s.onSnapshot(t,e,n)},s}return l(n,[{key:"setDevice",value:function(t){this.deviceInfo=_e({},t),this.record={startTime:t.minTime,endTime:t.maxTime,type:0},this.streamProxy.open(this.deviceInfo)}},{key:"playOne",value:function(t,e,n,i){this.record.startTime=Math.floor(new Date(t).getTime()/1e3),this.record.endTime=Math.floor(new Date(e).getTime()/1e3),this.record.type=n,this.posSec=i>0?i:this.record.startTime,this.play(ye.FORWARD)}},{key:"playPos",value:function(t,e){this.posSec=t>0?t:this.record.startTime,this.play(e)}},{key:"play",value:function(t){this.direction=t,ye.FORWARD===t?this.forward_play():ye.BACKWARD===t&&this.backward_play()}},{key:"syncPlay",value:function(t){ve.STOPPED!==this.status&&this.stop(),this.moveTo(t),this.status=ve.FORWARD_PLAYING,this.forward_play(!1)}},{key:"syncStep",value:function(){this.framePos>=0&&this.drawFrame(!0)}},{key:"minFrameTime",value:function(){return this.framePos>=this.frames.length?0:this.frames[0].time}},{key:"forward_play",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(ve.STOPPED!==this.status)return this.status=ve.FORWARD_PLAYING,this.checkStream(ye.FORWARD),void this.startPlayTimer(ye.FORWARD);(0===this.posSec||this.record.endTime>0&&this.posSec>=this.record.endTime)&&(this.posSec=this.record.startTime),this.finishTime=-1,this.streamProxy.play(this.posSec,1),this.changeStatus(ve.FORWARD_PLAYING),this.jpegLayer.restoreView(),this.yuvLayer.restoreView(),t&&this.startPlayTimer(ye.FORWARD)}},{key:"backward_play",value:function(){if(ve.STOPPED!==this.status)return this.status=ve.BACKWARD_PLAYING,this.checkStream(ye.BACKWARD),void this.startPlayTimer(ye.BACKWARD);this.posSec!==this.record.startTime&&(this.finishTime=-1,this.streamProxy.play(this.posSec,-1),this.changeStatus(ve.BACKWARD_PLAYING),this.jpegLayer.restoreView(),this.yuvLayer.restoreView(),this.startPlayTimer(ye.BACKWARD))}},{key:"stop",value:function(){this.streamProxy.stop(),this.changeStatus(ve.STOPPED),this.jpegLayer.stopView(),this.yuvLayer.stopView(),this.speed=1,this.stopPlayTimer(),this.framePos=0,this.frames=[]}},{key:"moveTo",value:function(t){t===this.posSec||t<this.record.startTime||(ve.STOPPED===this.status?(this.posSec=t,this.playTime=1e3*t):(this.streamProxy.stop(),this.jpegLayer.stopView(),this.yuvLayer.stopView(),this.stopPlayTimer(),this.framePos=0,this.frames=[],this.posSec=t,ve.FORWARD_PLAYING===this.status?(this.status=ve.STOPPED,this.forward_play()):ve.BACKWARD_PLAYING===this.status&&(this.status=ve.STOPPED,this.backward_play())))}},{key:"getPos",value:function(){return this.posSec}},{key:"stepPrev",value:function(){ve.STEP_PLAYING!==this.status&&(this.stopPlayTimer(),this.status=ve.STEP_PLAYING,this.checkStream(ye.BACKWARD)),this.framePos>=0&&this.drawFrame(!1)}},{key:"stepNext",value:function(){ve.STEP_PLAYING!==this.status&&(this.stopPlayTimer(),this.status=ve.STEP_PLAYING,this.checkStream(ye.FORWARD)),this.framePos<this.frames.length&&this.drawFrame(!0)}},{key:"close",value:function(){this.stop(),this.streamProxy.close()}},{key:"pause",value:function(){this.changeStatus(ve.PAUSED),this.streamProxy.pause(),this.stopPlayTimer()}},{key:"addSpeed",value:function(){this.speed>=8||this.setSpeed(2*this.speed)}},{key:"subSpeed",value:function(){this.speed<=.25||this.setSpeed(this.speed/2)}},{key:"setSpeed",value:function(t){this.speed=Math.floor(100*t)/100,this.streamProxy.setSpeed(t),this.firstPlayTick=0,this.firstPlayTime=0}},{key:"setRecord",value:function(t){null===t?ve.STOPPED!==this.status&&(this.stop(),this.record.startTime=this.record.endTime=0):t.startTime===this.record.startTime&&t.endTime===this.record.endTime||(this.record=_e({},t))}},{key:"snapshot",value:function(){return this.framePos>=0&&this.framePos<this.frames.length&&this.streamProxy.snapshot(this.frames[this.framePos].time)?0:Mt.INVALID_STATE}},{key:"resume",value:function(){}},{key:"showMain",value:function(t){}},{key:"getTitleBarHeight",value:function(){return 0}},{key:"onResize",value:function(t,e){this.jpegLayer.move(0,0,t,e),this.yuvLayer.move(0,0,t,e),t>=8&&e>=8&&this.streamProxy.channel().setViewport(t,e-this.getTitleBarHeight())}},{key:"changeStatus",value:function(t){var e=t!==this.status;this.status=t,e&&this.onStatus(t)}},{key:"onPlayTimer",value:function(){var t=this;if(this.framePos<this.frames.length){var e=performance.now();if(0===this.firstPlayTick)this.firstPlayTick=e,this.firstPlayTime=this.frames[this.framePos].time,this.drawFrame(!0);else if(this.frames.length>n.MAX_WATER_LINE)this.frames.pop(),this.frames.pop(),this.firstPlayTick=e,this.firstPlayTime=this.frames[this.framePos].time,this.drawFrame(!0);else{var i=(e-this.firstPlayTick)*this.speed-(this.frames[this.framePos].time-this.firstPlayTime);i>1e3?this.frames.length>=n.MAX_WATER_LINE&&(this.frames.pop(),i=(e-this.firstPlayTick)*this.speed-(this.frames[this.framePos].time-this.firstPlayTime)):i<-1e3&&(this.firstPlayTick=e,this.firstPlayTime=this.frames[this.framePos].time),i>=0&&this.drawFrame(!0)}if(this.framePos===this.frames.length&&this.finishTime>=0&&this.frames[this.frames.length-1].time>=this.finishTime)return this.stop(),void this.onPlayFinished(this.record,ye.FORWARD)}this.playTimer=requestAnimationFrame((function(){return t.onPlayTimer()}))}},{key:"onPlayBackwardTimer",value:function(){var t=this;if(this.framePos>0){var e=performance.now();if(0===this.firstPlayTick)this.firstPlayTick=e,this.firstPlayTime=this.frames[this.framePos-1].time,this.drawFrame(!1);else{var n=(e-this.firstPlayTick)*this.speed-(this.firstPlayTime-this.frames[this.framePos-1].time);(n>1e3||n<-1e3)&&(this.firstPlayTick=e,this.firstPlayTime=this.frames[this.framePos-1].time),n>0&&this.drawFrame(!1)}if(0===this.framePos&&this.finishTime>0)return this.stop(),void this.onPlayFinished(this.record,ye.BACKWARD)}this.playTimer=requestAnimationFrame((function(){return t.onPlayBackwardTimer()}))}},{key:"drawFrame",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=null;if(t){if(this.framePos<this.frames.length){e=this.frames[this.framePos],this.framePos>=n.LOW_WATER_LINE?this.frames.shift():this.framePos++;var i=this.frames.length-this.framePos;i!==n.LOW_WATER_LINE&&5!==i||this.streamProxy.resume(1)}}else if(this.framePos>0){e=this.frames[--this.framePos],(this.framePos===n.LOW_WATER_LINE||0===this.framePos&&this.posSec>this.record.startTime)&&this.streamProxy.resume(-1);var r=this.frames.length-this.framePos;if(r>n.LOW_WATER_LINE)for(this.frames.pop(),r--;r>=n.MAX_WATER_LINE;)this.frames.pop(),r--}if(null!==e){e.yuv?this.yuvLayer.putData(1,e.data,e.time):this.jpegLayer.putData(0,e.data,e.time),this.playTime=e.time;var a=Math.floor(this.playTime/1e3);a!==this.posSec&&(this.onPosChange(this.posSec),this.posSec=a)}}},{key:"startPlayTimer",value:function(t){var e=this;this.stopPlayTimer(),this.firstPlayTick=0,this.firstPlayTime=0,ye.BACKWARD===t?this.playTimer=requestAnimationFrame((function(){return e.onPlayBackwardTimer()})):this.playTimer=requestAnimationFrame((function(){return e.onPlayTimer()}))}},{key:"stopPlayTimer",value:function(){0!==this.playTimer&&(cancelAnimationFrame(this.playTimer),this.playTimer=0)}},{key:"checkStream",value:function(t){ye.FORWARD===t?this.frames.length-this.framePos<=n.LOW_WATER_LINE&&(this.streamProxy.changeDirection(1),this.streamProxy.resume(1)):ye.BACKWARD===t&&this.frames.length<=n.LOW_WATER_LINE&&this.posSec>this.record.startTime&&(this.streamProxy.changeDirection(-1),this.streamProxy.resume(-1))}}]),n}(me);Se.CACHE_SIZE=200,Se.MAX_WATER_LINE=70,Se.LOW_WATER_LINE=25;var Ae=n("4971"),Ce=n.n(Ae);function Ie(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}n("3e39");var Te=function(t){u(n,t);var e=Ie(n);function n(){var t;return a(this,n),(t=e.apply(this,arguments)).volume=50,t.options={dotSize:14,width:4,height:100,contained:!1,direction:"btt",min:0,max:100,interval:1,disabled:!1,clickable:!0,duration:.5,adsorb:!1,lazy:!1,tooltip:"focus",tooltipPlacement:"top"},t}return l(n,[{key:"onBtnClick",value:function(t,e){this.$emit("onBtnClick",t,e)}},{key:"speedStr",get:function(){return.25===this.speed?"0.25":this.speed>0?"".concat(this.speed.toFixed(1)):"1.0"}},{key:"disablePrevStep",get:function(){return this.syncMode||ye.BACKWARD!==this.playDirection||this.playStatus!==ve.STEP_PLAYING&&this.playStatus!==ve.BACKWARD_PLAYING}},{key:"disableNextStep",get:function(){return this.syncMode||ye.FORWARD!==this.playDirection||this.playStatus!==ve.STEP_PLAYING&&this.playStatus!==ve.FORWARD_PLAYING}},{key:"disableSpeed",get:function(){return this.syncMode||this.playStatus!==ve.FORWARD_PLAYING&&this.playStatus!==ve.BACKWARD_PLAYING}},{key:"showForwardPlay",get:function(){return ve.STOPPED===this.playStatus||ye.FORWARD===this.playDirection&&this.playStatus!==ve.FORWARD_PLAYING}},{key:"showBackwardPlay",get:function(){return ve.STOPPED===this.playStatus||ye.BACKWARD===this.playDirection&&this.playStatus!==ve.BACKWARD_PLAYING}},{key:"showPause",get:function(){return ve.FORWARD_PLAYING===this.playStatus||ve.BACKWARD_PLAYING===this.playStatus}},{key:"showPauseTemp",get:function(){return ve.STEP_PLAYING===this.playStatus&&ye.BACKWARD===this.playDirection}},{key:"disableStop",get:function(){return this.playStatus===ve.STOPPED}}]),n}(m.a);p([P({default:ve.STOPPED})],Te.prototype,"playStatus",void 0),p([P({default:ye.FORWARD})],Te.prototype,"playDirection",void 0),p([P({default:!1})],Te.prototype,"isFullscreen",void 0),p([P({default:!1})],Te.prototype,"isExpand",void 0),p([P({default:!1})],Te.prototype,"isSingle",void 0),p([P({default:1})],Te.prototype,"speed",void 0),p([P({default:!1})],Te.prototype,"syncMode",void 0);var ke,Me=Te=p([E({components:{VueSlider:Ce.a}})],Te),De=(n("2341"),le(Me,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"vat-tool"}},[t.isSingle?t._e():n("div",{staticClass:"scale-btns"},[n("svg",{staticClass:"icon",attrs:{width:"32px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("scale-up")}}},[n("title",[t._v("放大时间轴")]),n("path",{attrs:{fill:"#ffffff",d:"M911.9 839.2l-161-160.9C871 517.7 838.2 290.1 677.5 170s-388.2-87.3-508.3 73.4C122.3 306.1 97 382.4 97 460.8 97 661.4 259.6 824 460.1 824c78.4 0 154.7-25.4 217.5-72.3l160.8 160.8c20.2 20.3 53.1 20.3 73.4 0.1 20.3-20.3 20.3-53.1 0.1-73.4zM408.2 408.9h-51.9c-28.7 0-51.9 23.2-51.9 51.9s23.2 51.9 51.9 51.9h51.9v51.9c0 28.7 23.2 51.9 51.9 51.9s51.9-23.2 51.9-51.9v-51.9h51.9c28.7 0 51.9-23.2 51.9-51.9s-23.2-51.9-51.9-51.9H512V357c0-28.7-23.2-51.9-51.9-51.9s-51.9 23.2-51.9 51.9v51.9z m51.9 311.3c-143.3 0-259.4-116.1-259.4-259.4s116.1-259.4 259.4-259.4 259.4 116.1 259.4 259.4-116.1 259.4-259.4 259.4z"}})]),n("svg",{staticClass:"icon",attrs:{width:"32px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("scale-down")}}},[n("title",[t._v("缩小时间轴")]),n("path",{attrs:{fill:"#ffffff",d:"M911.8 839.7L750.9 678.8c120.1-160.6 87.3-388.2-73.4-508.3s-388.2-87.3-508.3 73.4C122.4 306.7 97 383 97 461.4c0 200.5 162.6 363.1 363.1 363.1 78.4 0 154.7-25.4 217.5-72.3L838.4 913c20.2 20.3 53.1 20.3 73.4 0.1s20.3-53.1 0-73.4z m-451.7-119c-143.2 2-261-112.4-263-255.7s112.4-261 255.7-263h7.3c143.2 0 259.4 116.1 259.4 259.4S603.4 720.7 460.1 720.7zM304.5 461.4c0 28.6 23.2 51.9 51.9 51.9h207.5c28.6 0 51.9-23.2 51.9-51.9 0-28.6-23.2-51.9-51.9-51.9H356.4c-28.7 0-51.9 23.2-51.9 51.9z"}})]),n("svg",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false && !isExpand"}],staticClass:"icon",attrs:{width:"32px",height:"31.97px",viewBox:"0 0 1025 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("expand")}}},[n("path",{attrs:{fill:"#ffffff",d:"M421.167248 520.869741 431.487222 531.189716C434.239215 533.941709 436.991208 536.521702 439.743201 538.929696 442.495194 541.33769 445.247187 543.917684 447.99918 546.669677L460.383149 559.053645C474.143115 572.813611 479.647101 584.853581 476.895108 595.173555 474.143115 605.493529 465.543136 617.533499 451.095172 631.293465 444.903188 638.173448 434.755213 648.665421 420.651248 662.769387 406.547283 676.873351 391.411321 692.181313 375.243362 708.693272 359.075403 725.20523 343.423442 741.02919 328.287479 756.165154 313.151516 771.301117 301.455544 783.341087 293.199566 792.285066 280.815596 804.66903 272.215618 815.505006 267.39963 824.792986 262.583643 834.080957 264.647637 843.196936 273.591614 852.140914 279.783599 858.3329 287.695579 866.588877 297.327555 876.908851 306.959532 887.228826 315.215511 895.828803 322.095494 902.708791 333.791465 914.404762 338.091455 924.724736 334.995462 933.668714 331.899468 942.612693 321.751494 947.772676 304.551537 949.148672 286.663582 951.21267 266.711632 953.620661 244.695687 956.372653 222.679742 959.124645 199.975798 961.704637 176.583856 964.112636 153.191915 966.520627 130.315972 969.100619 107.956028 971.852619 85.596084 974.604611 65.128135 977.012602 46.552181 979.0766 28.664225 981.14059 16.280256 978.9046 9.400274 972.368612 2.520291 965.832633-0.231702 954.308655 1.144295 937.796703 2.520291 920.59674 4.412286 901.332787 6.82028 880.004844 9.228274 858.676894 11.808268 836.832949 14.560261 814.473011 17.312254 792.113065 19.892247 769.925118 22.300241 747.909174 24.708235 725.893229 26.944229 705.597279 29.008224 687.021325 31.072219 667.069375 36.748205 654.341407 46.036182 648.837421 55.324159 643.333434 65.816133 646.429427 77.512104 658.125397 84.392086 665.00538 93.336064 673.433359 104.344037 683.409334 115.35201 693.38531 124.639987 702.157288 132.207967 709.725269 139.775949 717.29325 146.999931 719.701243 153.879914 716.94925 160.759897 714.197257 168.671877 708.693271 177.615855 700.437291 186.559832 691.493314 198.771802 679.109344 214.251763 663.285384 229.731725 647.461423 245.899685 631.121464 262.755643 614.265506 279.611601 597.409548 295.95156 580.897589 311.775521 564.729629 327.599482 548.56167 340.32745 535.661701 349.959426 526.029726 354.087415 521.901736 358.731403 517.945746 363.891391 514.161755 369.051378 510.377765 374.727363 507.797772 380.919349 506.421775 387.111333 505.045779 393.475318 505.389778 400.011301 507.453772 406.547285 509.517767 413.599267 513.989756 421.167249 520.869738L421.167248 520.869741ZM943.357944 0.743038C961.245901-1.320957 973.629873 0.915038 980.509854 7.451021 987.389834 13.987005 990.141826 25.510976 988.76583 42.022935 987.389834 59.222892 985.497844 78.486844 983.089845 99.814791 980.681854 121.142738 978.101862 142.986683 975.34987 165.346628 972.59787 187.706572 970.017879 210.066516 967.609888 232.42646 965.201888 254.786404 962.965898 275.254353 960.9019 293.830307 958.83791 313.782257 953.161925 326.338226 943.873946 331.498213 934.585966 336.6582 924.093991 333.390208 912.398021 321.694238 905.518041 314.814255 896.058061 305.870277 884.018097 294.862304 871.978126 283.854331 862.174145 274.566354 854.606171 266.998374 847.038188 259.430393 840.502201 256.162401 834.998217 257.194398 829.494233 258.226396 822.614244 262.870384 814.358268 271.126363 804.726288 280.758339 792.170323 293.486307 776.690361 309.310268 761.2104 325.134229 744.87044 341.818187 727.670483 359.362143 710.470526 376.9061 693.614568 393.934058 677.102609 410.446016L638.918704 448.629921C634.790714 452.75791 630.318726 456.8859 625.502738 461.01389 620.68675 465.14188 615.354763 468.237871 609.506777 470.301866 603.658791 472.365861 597.466807 472.70986 590.930823 471.333864 584.394839 469.957868 577.686856 465.485878 570.806873 457.917898L531.590971 418.701996C517.831005 404.94203 511.81102 392.386061 513.531015 381.03409 515.251011 369.682118 522.990992 357.12615 536.750958 343.366184 542.942942 337.1742 553.262917 326.682225 567.710881 311.890263 582.158845 297.098299 597.638806 281.446338 614.150765 264.934379 630.662723 248.42242 646.658683 232.25446 662.138645 216.4305 677.618608 200.606539 689.830577 188.566569 698.774554 180.310589 711.158523 167.92662 718.898504 157.778645 721.994496 149.866665 725.090488 141.954685 722.166496 133.526707 713.222518 124.582728 707.030534 118.390744 699.634553 110.822763 691.034574 101.878785 682.434595 92.934806 674.694613 85.022826 667.814631 78.142844 656.11866 66.446872 651.818671 56.126898 654.914664 47.182921 658.010656 38.238943 668.158631 32.734957 685.358588 30.670962 702.558544 28.606966 722.338495 26.198972 744.69844 23.44698 767.058385 20.694987 789.934324 18.114994 813.326265 15.706999 836.718206 13.299005 859.594153 10.719011 881.954099 7.967019 904.314045 5.215026 924.781993 2.807033 943.357944 0.743037L943.357944 0.743038Z"}})]),n("svg",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false && isExpand"}],staticClass:"icon",attrs:{width:"32px",height:"29.87px",viewBox:"0 0 1097 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("shrink")}}},[n("path",{attrs:{fill:"#ffffff",d:"M440.555466 539.129028C457.859892 537.206314 470.037082 539.769933 477.087033 546.819885 484.136985 553.869837 487.021056 565.726573 485.739246 582.390095 484.457437 599.694521 482.534723 619.242114 479.971104 641.032874 477.407485 662.823633 474.68364 685.09507 471.79957 707.847187 468.915499 730.599304 466.191653 753.191191 463.628035 775.622858 461.064416 798.054524 458.82125 818.883924 456.898536 838.111064 454.975822 858.620016 449.20768 871.598332 439.594109 877.046027 429.980539 882.493714 419.405611 879.128968 407.869326 866.951774 400.819375 859.901828 391.84671 851.249615 380.95133 840.995135 370.055951 830.740663 360.762832 822.088449 353.071976 815.038495 344.740215 806.706737 337.049358 803.822666 329.999407 806.386282 322.949455 808.949906 314.938147 814.718048 305.965481 823.690709 296.351911 833.304279 283.694043 846.122375 267.991878 862.144989 252.289714 878.167611 235.946644 894.831128 218.962669 912.135562 201.978694 929.439988 185.475399 946.263732 169.452782 962.606802 153.430166 978.949871 140.29162 991.928194 130.037144 1001.541764 126.191715 1006.028095 121.545156 1010.193978 116.097467 1014.039406 110.649777 1017.884834 104.881635 1020.608677 98.79304 1022.210937 92.704446 1023.813203 86.295398 1023.652976 79.565899 1021.730262 72.8364 1019.807548 65.626222 1015.000763 57.935366 1007.309907 53.449033 1002.823569 49.763831 999.298596 46.879759 996.734979 43.995688 994.171356 41.271843 991.607739 38.708225 989.044123L30.056012 980.39191 17.55837 967.894269C3.458467 953.794361-2.149449 941.617174 0.734622 931.362695 3.618693 921.108222 12.110681 908.610581 26.210583 893.869771 32.61963 887.460727 43.194557 877.046027 57.935366 862.625672 72.676174 848.205316 88.218112 832.663377 104.561182 815.999852 120.904251 799.336336 136.766642 783.153486 152.148356 767.451327 167.530069 751.74916 179.707258 739.411746 188.679923 730.439078 201.498017 717.620984 210.15023 706.565377 214.636563 697.27226 219.122896 687.979142 216.879729 678.84625 207.907063 669.873584 201.498017 663.464538 193.486709 654.97255 183.873138 644.397623 174.259568 633.822696 165.927807 625.010256 158.877855 617.960304 147.341571 606.42402 143.015463 596.009319 145.899534 586.7162 148.783605 577.423083 159.198306 571.815167 177.143638 569.892453 195.08897 567.969739 215.277467 565.566346 237.709131 562.682275 260.140795 559.798203 283.213364 557.074359 306.926838 554.51074 330.640312 551.947122 354.033333 549.223277 377.105902 546.339206 400.17847 543.455135 421.328325 541.051742 440.555466 539.129028L440.555466 539.129028ZM1013.52426 53.643725C1027.624161 67.743628 1033.872985 80.401496 1032.270718 91.617328 1030.668459 102.833159 1022.496928 115.81148 1007.756118 130.552288 1000.706164 137.602239 989.97101 148.497619 975.550654 163.238427 961.130299 177.979235 945.428139 193.841626 928.44416 210.825601 911.460189 227.809575 895.117119 244.312871 879.414952 260.335487 863.712785 276.358104 851.375371 288.855745 842.402703 297.828412 829.584615 310.646506 821.733531 320.90098 818.84946 328.591836 815.965389 336.282693 819.009687 344.614454 827.982348 353.58712 834.3914 359.996166 841.922029 367.847249 850.574242 377.140367 859.226455 386.433485 867.077538 394.60502 874.127492 401.654971 885.663777 413.191256 889.829652 423.605957 886.625134 432.899075 883.420608 442.192194 873.166135 447.800109 855.861709 449.722823 837.916373 451.645537 817.727876 454.04893 795.296209 456.933001 772.864551 459.817072 749.631755 462.540917 725.597827 465.104535 701.563902 467.668154 678.010654 470.391998 654.938085 473.27607 631.865516 476.160141 611.036114 478.563534 592.449878 480.486248 559.122834 484.331676 543.741122 470.231773 546.304741 438.186538 548.227455 420.882111 550.310395 401.334518 552.553561 379.543759 554.796727 357.753 557.360347 335.321336 560.244418 312.248766 563.128489 289.176198 565.852334 266.424081 568.415952 243.992417 570.979571 221.560753 573.222737 200.73135 575.145451 181.50421 577.068165 160.99526 582.836308 148.016939 592.449878 142.569249 602.063449 137.121559 612.958828 140.486308 625.136017 152.663498 628.340541 156.508926 632.506421 160.835033 637.633659 165.641818 642.760897 170.448603 648.04836 175.415614 653.49605 180.542852 658.943739 185.670089 664.231204 190.6371 669.358441 195.443886 674.485679 200.250671 678.972012 204.576777 682.81744 208.422206 691.1492 216.753967 697.878699 220.439169 703.005937 219.477812 708.133174 218.516455 715.183126 213.549444 724.155792 204.576779 733.76936 194.963208 746.587456 181.984887 762.610071 165.641818 778.632693 149.298748 795.456437 132.314774 813.081318 114.689895 830.706199 97.065016 847.690171 79.920815 864.03324 63.257294 880.376309 46.593772 893.67508 33.134773 903.92956 22.880298 907.774988 19.034869 912.261318 15.029215 917.388558 10.863335 922.515791 6.697455 927.963485 3.653157 933.731628 1.730443 939.49977-0.192272 945.588367-0.512724 951.997411 0.769086 958.406455 2.050896 965.456409 6.537229 973.147265 14.228084 977.633596 18.714417 981.318796 22.239393 984.202875 24.803012 987.086946 27.366631 989.810789 29.93025 992.374406 32.493869L1001.026619 41.146082 1013.52426 53.643725Z"}})])]),n("div",{staticClass:"btns"},[n("svg",{class:{icon:!0,disabled:!t.showBackwardPlay||t.syncMode},attrs:{id:"play-back",width:"32px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("play",-1)}}},[n("title",[t._v("倒放")]),n("path",{attrs:{fill:"#ffffff",d:"M160.250617 511.747125L863.749383 0v1024l-703.498766-512.252875z"}})]),n("svg",{class:{icon:!0,disabled:t.disableStop},attrs:{id:"stop",width:"32px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("stop")}}},[n("title",[t._v("停止")]),n("path",{attrs:{fill:"#ffffff",d:"M157.538462 157.538462h708.923076v708.923076H157.538462V157.538462z"}})]),n("svg",{class:{icon:!0,disabled:t.disablePrevStep},attrs:{id:"prev",width:"36px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("prev")}}},[n("title",[t._v("上一帧")]),n("path",{attrs:{fill:"#ffffff",d:"M635.74 805.62V218.38c0-59.56-67.95-93.96-115.77-57.89L126.94 454.12c-38.59 28.94-38.59 87.24 0 116.19l393.03 293.62c47.82 35.23 115.77 1.25 115.77-58.31z m226.5-679.52c-35.23 0-63.76 28.52-63.76 63.76v644.28c0 35.23 28.53 63.76 63.76 63.76S926 869.37 926 834.14V189.86c0-35.23-28.52-63.76-63.76-63.76z m0 0"}})]),n("svg",{class:{icon:!0,disabled:t.disableSpeed},attrs:{id:"back",width:"32px",height:"32.01px",viewBox:"0 0 1260 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("back")}}},[n("title",[t._v("慢放")]),n("path",{attrs:{fill:"#ffffff",d:"M1181.831855 12.560526l-536.645044 462.060479a50.329422 50.329422 0 0 0 0 72.76543l536.645044 463.879615a46.084772 46.084772 0 0 0 77.616459-36.382715V48.943241a46.084772 46.084772 0 0 0-77.616459-36.382715zM552.410888 12.560526L15.765843 474.621005A49.723044 49.723044 0 0 0 15.765843 546.173678l536.038666 465.092372a46.084772 46.084772 0 0 0 77.616459-36.382715V48.943241A46.084772 46.084772 0 0 0 552.410888 12.560526z"}})]),n("svg",{directives:[{name:"show",rawName:"v-show",value:t.showForwardPlay,expression:"showForwardPlay"}],staticClass:"icon",attrs:{id:"play",width:"32px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("play",1)}}},[n("title",[t._v("播放")]),n("path",{attrs:{fill:"#ffffff",d:"M73.142857 0 910.957714 512 73.142857 1024Z"}})]),n("svg",{directives:[{name:"show",rawName:"v-show",value:t.showPause,expression:"showPause"}],staticClass:"icon",attrs:{id:"pause",width:"32px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("pause")}}},[n("title",[t._v("暂停")]),n("path",{attrs:{fill:"#ffffff",d:"M379.337561 118.348432 145.347343 118.348432c-8.113795 0-16.247033 3.097548-22.444175 9.295714-6.197142 6.1777-9.295714 14.309914-9.295714 22.424732l0 729.759559c0 8.094352 3.098571 16.22759 9.295714 22.424732 6.197142 6.176676 14.33038 9.276271 22.444175 9.276271l233.990219 0c8.113795 0 16.247033-3.098571 22.444175-9.276271 6.1777-6.197142 9.275247-14.33038 9.275247-22.424732l0-729.760582c0-8.112772-3.098571-16.247033-9.275247-22.424732C395.584594 121.447003 387.451356 118.348432 379.337561 118.348432L379.337561 118.348432zM897.531634 127.643122c-6.197142-6.197142-14.33038-9.295714-22.444175-9.295714L641.09724 118.347408c-8.113795 0-16.247033 3.098571-22.444175 9.295714-6.196119 6.1777-9.295714 14.31196-9.295714 22.424732l0 729.759559c0 8.094352 3.099594 16.22759 9.295714 22.424732 6.197142 6.176676 14.33038 9.275247 22.444175 9.275247l233.990219 0c8.113795 0 16.247033-3.098571 22.444175-9.275247 6.197142-6.197142 9.275247-14.33038 9.275247-22.424732L906.806881 150.067854C906.806881 141.954059 903.727753 133.821845 897.531634 127.643122L897.531634 127.643122z"}})]),n("svg",{directives:[{name:"show",rawName:"v-show",value:t.showPauseTemp,expression:"showPauseTemp"}],staticClass:"icon disabled",attrs:{id:"pause2",width:"32px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[n("title",[t._v("暂停")]),n("path",{attrs:{fill:"#ffffff",d:"M379.337561 118.348432 145.347343 118.348432c-8.113795 0-16.247033 3.097548-22.444175 9.295714-6.197142 6.1777-9.295714 14.309914-9.295714 22.424732l0 729.759559c0 8.094352 3.098571 16.22759 9.295714 22.424732 6.197142 6.176676 14.33038 9.276271 22.444175 9.276271l233.990219 0c8.113795 0 16.247033-3.098571 22.444175-9.276271 6.1777-6.197142 9.275247-14.33038 9.275247-22.424732l0-729.760582c0-8.112772-3.098571-16.247033-9.275247-22.424732C395.584594 121.447003 387.451356 118.348432 379.337561 118.348432L379.337561 118.348432zM897.531634 127.643122c-6.197142-6.197142-14.33038-9.295714-22.444175-9.295714L641.09724 118.347408c-8.113795 0-16.247033 3.098571-22.444175 9.295714-6.196119 6.1777-9.295714 14.31196-9.295714 22.424732l0 729.759559c0 8.094352 3.099594 16.22759 9.295714 22.424732 6.197142 6.176676 14.33038 9.275247 22.444175 9.275247l233.990219 0c8.113795 0 16.247033-3.098571 22.444175-9.275247 6.197142-6.197142 9.275247-14.33038 9.275247-22.424732L906.806881 150.067854C906.806881 141.954059 903.727753 133.821845 897.531634 127.643122L897.531634 127.643122z"}})]),n("svg",{class:{icon:!0,disabled:t.disableSpeed},attrs:{id:"forward",width:"32px",height:"32.01px",viewBox:"0 0 1260 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("forward")}}},[n("title",[t._v("快放")]),n("path",{attrs:{fill:"#ffffff",d:"M77.738464 1011.260664l536.872038-462.255925a50.350711 50.350711 0 0 0 0-72.796208L77.738464 12.739336A46.104265 46.104265 0 0 0 0.089175 48.530806v926.331753a46.104265 46.104265 0 0 0 77.649289 36.398105z m629.687204 0l536.872038-462.255925a49.744076 49.744076 0 0 0 0-72.796208L707.425668 12.739336a46.104265 46.104265 0 0 0-77.649289 36.398105v925.725118a46.104265 46.104265 0 0 0 77.649289 36.398105z"}})]),n("svg",{class:{icon:!0,disabled:t.disableNextStep},attrs:{id:"next",width:"36px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("next")}}},[n("title",[t._v("下一帧")]),n("path",{attrs:{fill:"#ffffff",d:"M388.26 218.38v587.23c0 59.56 67.95 93.96 115.77 57.89l393.03-293.62c38.59-28.94 38.59-87.24 0-116.19L504.03 160.08c-47.82-35.24-115.77-1.26-115.77 58.3zM161.76 897.9c35.23 0 63.76-28.52 63.76-63.76V189.86c0-35.23-28.53-63.76-63.76-63.76S98 154.63 98 189.86v644.28c0 35.23 28.52 63.76 63.76 63.76z m0 0"}})]),n("div",{staticStyle:{position:"relative",display:"flex"},attrs:{title:"倍速"}},[n("span",{staticClass:"speed btn-menu-icon2"},[t._v("x"+t._s(t.speedStr))]),n("div",{staticClass:"btn-menu speed-menu",staticStyle:{top:"-120px"}},t._l([.25,.5,1,2,4,8],(function(e){return n("span",{key:e,class:{active:t.speed===e},on:{click:function(n){return t.onBtnClick("speed",e)}}},[t._v("x"+t._s(.25===e?"0.25":e.toFixed(1)))])})),0)]),n("div",{staticStyle:{position:"relative",display:"flex"},attrs:{title:"声音"}},[n("svg",{staticClass:"icon btn-menu-icon2 disabled",attrs:{id:"volume",width:"20px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("volume")}}},[n("path",{attrs:{fill:"#ffffff",d:"M475.428571 201.142857v621.714286c0 20.004571-16.566857 36.571429-36.571428 36.571428a36.205714 36.205714 0 0 1-25.709714-10.861714L222.866286 658.285714H73.142857c-20.004571 0-36.571429-16.566857-36.571428-36.571428v-219.428572c0-20.004571 16.566857-36.571429 36.571428-36.571428h149.723429l190.281143-190.281143A36.425143 36.425143 0 0 1 438.857143 164.571429c20.004571 0 36.571429 16.566857 36.571428 36.571428z m219.428572 310.857143c0 57.161143-34.852571 112.566857-88.576 134.290286a31.780571 31.780571 0 0 1-14.299429 2.852571c-20.004571 0-36.571429-16.018286-36.571428-36.571428 0-43.446857 66.304-31.414857 66.304-100.571429s-66.304-57.161143-66.304-100.571429c0-20.553143 16.566857-36.571429 36.571428-36.571428 4.571429 0 9.728 0.585143 14.299429 2.852571C660.004571 398.848 694.857143 454.838857 694.857143 512z m146.285714 0c0 116.004571-69.705143 224-177.152 269.129143a42.349714 42.349714 0 0 1-14.299428 2.852571 36.937143 36.937143 0 0 1-37.156572-36.571428c0-16.018286 9.142857-26.843429 22.272-33.718857 15.433143-8.009143 29.696-14.848 43.446857-25.161143 56.576-41.142857 89.709714-106.861714 89.709715-176.566857s-33.133714-135.424-89.709715-176.566858c-13.714286-10.276571-28.013714-17.152-43.446857-25.161142-13.129143-6.838857-22.272-17.700571-22.272-33.718858 0-20.004571 16.566857-36.571429 36.571429-36.571428 5.156571 0 10.276571 1.133714 14.848 2.852571 107.446857 45.129143 177.152 153.161143 177.152 269.129143z m146.285714 0c0 175.433143-104.557714 334.299429-265.728 403.419429a42.861714 42.861714 0 0 1-14.848 2.852571c-20.004571 0-36.571429-16.566857-36.571428-36.571429 0-16.566857 8.557714-25.709714 22.272-33.718857 8.009143-4.571429 17.152-7.424 25.709714-11.995428 16.018286-8.557714 32-18.285714 46.848-29.147429 93.696-69.156571 149.138286-178.285714 149.138286-294.838857s-55.442286-225.718857-149.138286-294.838857a402.505143 402.505143 0 0 0-46.848-29.147429c-8.557714-4.571429-17.700571-7.424-25.709714-11.995428-13.714286-8.009143-22.272-17.152-22.272-33.718857 0-20.004571 16.566857-36.571429 36.571428-36.571429 5.156571 0 10.276571 1.133714 14.848 2.852571A439.186286 439.186286 0 0 1 987.428571 512z"}})]),n("div",{staticClass:"btn-menu",staticStyle:{left:"10px"}},[n("vue-slider",t._b({model:{value:t.volume,callback:function(e){t.volume=e},expression:"volume"}},"vue-slider",t.options,!1))],1)])]),n("div",{staticStyle:{display:"flex","align-items":"center"}},[n("svg",{staticClass:"icon",staticStyle:{visibility:"hidden"},attrs:{width:"24px",height:"25.34px",viewBox:"0 0 1293 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("snap")}}},[n("path",{attrs:{fill:"#ffffff",d:"M646.682947 336.949895a235.304421 235.304421 0 0 0-235.034947 235.627789 235.304421 235.304421 0 0 0 234.981053 235.681684 235.304421 235.304421 0 0 0 235.088842-235.681684A235.304421 235.304421 0 0 0 646.736842 336.949895zM1209.936842 160.282947h-245.65221C951.242105 120.185263 906.725053 0 841.566316 0H451.799579C391.437474 0 342.554947 120.185263 327.68 160.282947H83.536842C37.402947 160.282947 0 199.949474 0 248.993684v686.403369C0 984.225684 37.402947 1024 83.536842 1024h1126.4c46.133895 0 83.536842-39.612632 83.536842-88.656842V248.832c-0.107789-48.882526-37.402947-88.549053-83.536842-88.549053z m-563.469474 707.098948c-162.169263 0-293.726316-131.934316-293.726315-294.534737a294.103579 294.103579 0 0 1 293.726315-294.534737c162.223158 0 293.834105 131.934316 293.834106 294.534737 0 162.708211-131.610947 294.534737-293.834106 294.534737z m421.241264-530.324211a49.044211 49.044211 0 0 1-48.882527-49.098105 48.936421 48.936421 0 1 1 97.765053 0 49.044211 49.044211 0 0 1-48.882526 49.098105zM286.72 83.806316c0 17.623579-14.174316 31.797895-31.690105 31.797895H107.466105a31.690105 31.690105 0 0 1-31.690105-31.797895c0-17.569684 14.174316-31.797895 31.690105-31.797895h147.56379c17.515789 0 31.690105 14.228211 31.690105 31.797895z"}})]),n("svg",{directives:[{name:"show",rawName:"v-show",value:!t.isFullscreen,expression:"!isFullscreen"}],staticClass:"icon",attrs:{id:"fullscreen",width:"20px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("fullscreen")}}},[n("title",[t._v("全屏显示")]),n("path",{attrs:{fill:"#ffffff",d:"M919.920093 725.414549q3.014188 26.122962 7.033105 58.776664t7.53547 66.814498 7.53547 67.819227 7.033105 60.786122q6.028376 47.222277-41.193901 44.208089-25.118232-2.009459-56.767205-5.526011t-64.805039-7.53547-65.809769-8.037834-59.781393-7.033105q-29.137149-3.014188-37.174984-16.578033t9.042564-30.644243q11.052022-10.047293 27.127691-27.630056t27.127691-28.634785q11.052022-12.056752 7.033105-22.104044t-16.075669-23.108774q-28.13242-27.127691-51.241194-49.231735t-51.241194-51.241194q-6.028376-6.028376-12.056752-13.061481t-9.042564-15.573304-1.004729-18.085127 13.061481-20.59695q6.028376-6.028376 10.047293-10.549658t8.037834-8.037834 8.540199-8.037834 11.554387-12.559116q20.094586-20.094586 37.174984-17.080398t37.174984 23.108774 41.193901 40.691536 47.222277 46.719912q19.089857 18.085127 32.653702 25.118232t26.625326-6.028376q9.042564-9.042564 22.606409-21.60168t23.611138-22.606409q17.080398-17.080398 30.644243-13.061481t16.578033 30.141879zM43.79615 383.80659q-3.014188-26.122962-7.033105-58.776664t-7.53547-66.814498-7.53547-67.819227-7.033105-60.786122q-3.014188-26.122962 6.53074-36.170255t33.658431-8.037834q25.118232 2.009459 56.767205 5.526011t64.805039 7.53547 65.809769 8.037834 59.781393 7.033105q30.141879 3.014188 37.677348 16.578033t-9.544928 30.644243q-10.047293 10.047293-24.615868 26.122962t-25.620597 27.127691q-12.056752 12.056752-8.037834 22.104044t17.080398 23.108774q13.061481 14.06621 24.615868 24.615868t22.606409 21.099315 23.108774 22.606409l25.118232 25.118232q6.028376 6.028376 11.554387 14.06621t8.037834 17.080398-0.502365 19.089857-13.061481 20.094586l-11.052022 11.052022q-4.018917 4.018917-7.53547 8.037834t-8.540199 8.037834l-11.052022 12.056752q-20.094586 20.094586-34.663161 15.070939t-34.663161-25.118232-38.179713-37.677348-44.208089-43.705724q-18.085127-18.085127-32.151337-25.118232t-27.127691 6.028376q-9.042564 10.047293-25.118232 24.615868t-26.122962 24.615868q-17.080398 17.080398-30.141879 13.061481t-16.075669-30.141879zM905.853883 84.397261q26.122962-3.014188 36.170255 6.53074t8.037834 34.663161-5.526011 56.767205-7.53547 64.805039-8.037834 65.809769-7.033105 59.781393q-3.014188 29.137149-16.578033 37.174984t-30.644243-10.047293q-10.047293-10.047293-26.122962-24.615868t-27.127691-25.620597q-12.056752-11.052022-22.104044-7.53547t-23.108774 16.578033q-27.127691 27.127691-47.724641 49.231735t-48.729371 50.236465q-6.028376 6.028376-14.06621 11.554387t-17.080398 8.037834-19.089857-0.502365-20.094586-14.06621q-6.028376-6.028376-10.549658-10.047293t-8.540199-8.037834-8.540199-8.037834-11.554387-12.056752q-20.094586-20.094586-16.075669-35.165525t25.118232-35.165525l38.179713-40.189172q19.089857-20.094586 45.212818-46.217547 19.089857-18.085127 26.122962-32.151337t-7.033105-26.122962q-9.042564-9.042564-23.108774-24.615868t-24.113503-25.620597q-17.080398-17.080398-13.061481-30.141879t30.141879-16.075669 58.776664-7.033105 67.316863-7.53547 67.819227-7.53547 60.283758-7.033105zM350.238584 640.012559q6.028376 6.028376 10.549658 10.047293t8.540199 8.037834l8.037834 9.042564 12.056752 11.052022q20.094586 20.094586 17.582763 36.672619t-23.611138 37.677348q-19.089857 19.089857-40.189172 40.691536t-47.222277 47.724641q-18.085127 18.085127-22.606409 29.639514t8.540199 24.615868q10.047293 9.042564 22.606409 22.606409t22.606409 23.611138q17.080398 17.080398 12.559116 30.141879t-30.644243 16.075669-58.274299 7.033105-66.814498 8.037834-68.321592 8.037834-60.786122 7.033105q-25.118232 2.009459-35.66789-7.53547t-8.540199-33.658431q2.009459-25.118232 5.526011-56.767205t7.53547-64.805039 8.037834-65.809769 7.033105-59.781393q3.014188-30.141879 16.578033-37.677348t30.644243 9.544928q10.047293 10.047293 27.630056 26.122962t28.634785 27.127691q12.056752 12.056752 20.094586 10.549658t20.094586-14.568575q13.061481-13.061481 25.118232-25.620597t24.113503-24.615868 24.615868-25.118232 26.625326-27.127691q6.028376-6.028376 13.061481-12.056752t15.573304-9.042564 18.085127-0.502365 20.59695 13.563845z"}})]),n("svg",{directives:[{name:"show",rawName:"v-show",value:t.isFullscreen,expression:"isFullscreen"}],staticClass:"icon",attrs:{width:"20px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("cancel-fullscreen")}}},[n("title",[t._v("取消全屏显示")]),n("path",{attrs:{fill:"#ffffff",d:"M638.272 128.064l82.048 82.112L930.56 0l91.52 91.456-210.176 210.112 81.856 82.048c0 35.328-28.352 63.872-63.808 63.872L638.272 447.488c-35.2 0-63.808-28.544-63.808-63.872L574.464 192C574.464 156.736 603.072 128.064 638.272 128.064L638.272 128.064 638.272 128.064zM128.064 638.336c0-35.136 28.672-63.808 63.872-63.808l191.68 0c35.328 0 63.872 28.672 63.872 63.808l0 191.68c0 35.392-28.544 63.808-63.872 63.808l-82.048-81.792-210.176 210.112L0 930.752l210.176-210.304L128.064 638.336 128.064 638.336 128.064 638.336zM638.272 574.528l191.68 0c35.456 0 63.808 28.672 63.808 63.808l-81.856 82.112 210.176 210.304-91.52 91.392-210.24-210.112-82.048 81.792c-35.2 0-63.808-28.416-63.808-63.808L574.464 638.336C574.464 603.2 603.072 574.528 638.272 574.528L638.272 574.528 638.272 574.528zM91.392 0l210.176 210.24 82.048-82.112c35.328 0 63.872 28.608 63.872 63.872l0 191.68c0 35.328-28.544 63.872-63.872 63.872L191.936 447.552c-35.2 0-63.872-28.544-63.872-63.872l82.112-82.048L0 91.456 91.392 0 91.392 0 91.392 0zM91.392 0"}})])])])}),[],!1,null,"3a7105c5",null)).exports,Ee=(n("7514"),function(){function t(){a(this,t),this.records=[]}return l(t,[{key:"add",value:function(t){if(0===this.records.length)this.records.push(t);else{var e=this.indexRecord(t.startTime);e>=this.records.length?this.records.push(t):this.records[e].startTime>t.startTime?this.records.splice(e,0,t):this.records[e].endTime===t.startTime&&this.records.splice(e+1,0,t)}}},{key:"merge",value:function(t,e){if(0!==this.records.length){var n=this.indexRecord(t);if(n>=this.records.length)this.records.push({startTime:t,endTime:e,type:0});else if(this.records[n].startTime>e)this.records.splice(n,0,{startTime:t,endTime:e,type:0});else if(this.records[n].startTime=Math.min(this.records[n].startTime,t),this.records[n].endTime<e)for(this.records[n].endTime=e,n+=1;n<this.records.length&&this.records[n].startTime<=e;)this.records[n-1].endTime=Math.max(this.records[n].endTime,e),this.records.splice(n,1)}else this.records.push({startTime:t,endTime:e,type:0})}},{key:"isInclude",value:function(t,e){if(0===this.records.length)return!1;if(e<=this.records[0].startTime)return!1;if(t>=this.records[this.records.length-1].endTime)return!1;for(var n=0,i=this.records.length-1;n<=i;){var r=n+Math.floor((i-n)/2);if(e<this.records[r].startTime)i=r-1;else{if(!(t>this.records[r].endTime))return this.records[r].startTime<=t&&this.records[r].endTime>=e;n=r+1}}return!1}},{key:"clear",value:function(){this.records=[]}},{key:"range",value:function(t,e){if(0===this.records.length)return[];var n=this.indexRecord(t);if(n>=this.records.length)return[];for(var i=n;i<this.records.length;){var r=this.records[i];if(r.endTime<t||r.startTime>e)break;i++}return this.records.slice(n,i)}},{key:"find",value:function(t){var e=this.indexRecord(t);return e>=0&&e<this.records.length&&this.records[e].startTime<=t?this.records[e]:null}},{key:"findNext",value:function(t){if(0===this.records.length)return null;var e=this.indexRecord(t);return e>=this.records.length?null:(this.records[e].endTime===t&&e++,e>=this.records.length?null:this.records[e])}},{key:"indexRecord",value:function(t){if(0===this.records.length)return 0;if(t<=this.records[0].startTime)return 0;if(t>this.records[this.records.length-1].endTime)return this.records.length;for(var e=0,n=this.records.length-1;e<=n;){var i=e+Math.floor((n-e)/2);if(t<this.records[i].startTime)n=i-1;else{if(!(t>this.records[i].endTime))return i;e=i+1}}return e}}]),t}());function Le(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Pe(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pe(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function Pe(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Oe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}var Re=ke=function(t){u(n,t);var e=Oe(n);function n(){var t;return a(this,n),(t=e.apply(this,arguments)).timerId=0,t.oldWidth=0,t.oldHeight=0,t.curTime=Math.floor(Date.now()/1e3),t.timeCtx=null,t.timeCanvas=null,t.recordCtx=null,t.recordCanvas=null,t.isDragging=!1,t.startDragTime=0,t.xOffset=0,t.tmpDate=new Date,t.timeScale=2,t.startDrawTime=0,t.startDrawOffset=0,t.normalRecords=new Ee,t.alarmRecords=new Ee,t.eventRecords=new Ee,t.queryCache=new Ee,t.streamProxy=null,t.prevMouseX=0,t}return l(n,[{key:"setTime",value:function(t){this.isDragging||(this.curTime=t,this.updateTimeLine(),this.updateRecordLine(),this.$emit("onRecord",this.winIndex,this.getCurrentRecord(),this.curTime))}},{key:"getTime",value:function(){return this.curTime}},{key:"setScale",value:function(t){this.timeScale=t,this.updateTimeLine(),this.updateRecordLine()}},{key:"findRecord",value:function(t){this.curTime=t;var e=this.normalRecords.findNext(this.curTime);return null!==e||(e=this.alarmRecords.findNext(this.curTime)),e}},{key:"addRecords",value:function(t,e,n){var i,r=Le(n);try{for(r.s();!(i=r.n()).done;){var a=i.value;1===a.type?this.normalRecords.add(a):2===a.type?this.alarmRecords.add(a):3===a.type&&this.eventRecords.add(a)}}catch(t){r.e(t)}finally{r.f()}this.queryCache.merge(t,e),this.updateRecordLine()}},{key:"mounted",value:function(){var t=this;this.timeCanvas=this.$refs.timeCanvas,this.timeCtx=this.timeCanvas.getContext("2d"),this.recordCanvas=this.$refs.recordCanvas,this.recordCtx=this.recordCanvas.getContext("2d"),this.timerId=setInterval((function(){null!==t.timeCanvas&&(t.oldWidth===t.$el.clientWidth&&t.oldHeight===t.$el.clientHeight||(t.oldWidth=t.$el.clientWidth,t.oldHeight=t.$el.clientHeight,t.onReSize()))}),500),void 0!==this.wsPort&&(this.streamProxy=new xe(this.wsPort,this.proxy),this.streamProxy.onRecords=function(e,n,i){t.addRecords(e,n,i)},this.streamProxy.open(this.deviceInfo)),0!==this.initTime&&(this.curTime=this.initTime),this.curTime<this.minTime?this.curTime=this.minTime:this.maxTime>0&&this.curTime>this.maxTime&&(this.curTime=this.maxTime),this.$emit("onRecord",this.winIndex,this.getCurrentRecord(),this.curTime)}},{key:"onTimeChange",value:function(t,e){var n=this;this.wsPort>0&&null===this.streamProxy&&(this.streamProxy=new xe(this.wsPort,this.proxy),this.streamProxy.onRecords=function(t,e,i){n.addRecords(t,e,i)},this.streamProxy.open(this.deviceInfo))}},{key:"onReSize",value:function(){null!==this.timeCanvas&&(this.timeCanvas.style.top="0px",this.timeCanvas.style.height="60px",this.timeCanvas.width=2*this.oldWidth,this.timeCanvas.height=60,this.timeCanvas.style.left="".concat(-this.oldWidth/2,"px"),this.timeCanvas.style.width="".concat(2*this.oldWidth,"px"),this.updateTimeLine()),null!==this.recordCanvas&&(this.recordCanvas.style.top="18px",this.recordCanvas.style.height="15px",this.recordCanvas.width=2*this.oldWidth,this.recordCanvas.height=15,this.recordCanvas.style.left="".concat(-this.oldWidth/2,"px"),this.recordCanvas.style.width="".concat(2*this.oldWidth,"px"),this.updateRecordLine())}},{key:"destroy",value:function(){this.timeCtx=null,this.recordCtx=null,0!==this.timerId&&(clearInterval(this.timerId),this.timerId=0),null!==this.streamProxy&&this.streamProxy.close()}},{key:"mouseDown",value:function(t){this.isDragging=!0,this.startDragTime=this.curTime,this.prevMouseX=t.screenX}},{key:"mouseMove",value:function(t){if(this.isDragging&&null!==this.timeCanvas){var e=this.curTime%ke.TIME_SCALE[this.timeScale];0!==e&&(this.curTime-=e);var n=t.movementX;n||(n=t.screenX-this.prevMouseX),this.prevMouseX=t.screenX;var i=this.curTime-n*ke.TIME_SCALE[this.timeScale];i<this.minTime||i>this.maxTime||(this.xOffset+=n,this.curTime=i,this.xOffset>-10||this.xOffset<-(this.oldWidth-10)?(this.updateTimeLine(),this.updateRecordLine()):(this.timeCanvas.style.left="".concat(this.xOffset,"px"),null!==this.recordCanvas&&(this.recordCanvas.style.left=this.timeCanvas.style.left)),this.$emit("onMove",this.winIndex,this.curTime))}else this.prevMouseX=t.screenX}},{key:"mouseUp",value:function(){this.isDragging&&this.startDragTime!==this.curTime&&this.$emit("onRecord",this.winIndex,this.getCurrentRecord(),this.curTime),this.isDragging=!1}},{key:"mouseLeave",value:function(){this.isDragging&&this.mouseUp(),this.isDragging=!1}},{key:"getCurrentRecord",value:function(){var t=this.normalRecords.find(this.curTime),e=this.alarmRecords.find(this.curTime);return null!==t&&null!==e?t.endTime>e.endTime?t:e:null!==t?t:null!==e?e:null}},{key:"updateTimeLine",value:function(){if(null!==this.timeCtx&&null!==this.timeCanvas&&0!==this.oldWidth){this.xOffset=-this.oldWidth/2,this.timeCanvas.style.left="".concat(this.xOffset,"px"),this.timeCtx.clearRect(0,0,this.timeCanvas.width,this.oldHeight),this.timeCtx.fillStyle="rgb(180, 180, 180)",this.timeCtx.strokeStyle="rgb(180, 180, 180)",this.timeCtx.font="11px Arial",this.timeCtx.lineWidth=1,this.timeCtx.beginPath(),this.timeCtx.moveTo(0,15.5),this.timeCtx.lineTo(this.timeCanvas.width,15.5);var t=this.curTime-this.curTime%ke.TIME_SCALE[this.timeScale],e=Math.floor(t-Math.floor(this.oldWidth)*ke.TIME_SCALE[this.timeScale]),n=60*ke.TIME_SCALE[this.timeScale],i=10*ke.TIME_SCALE[this.timeScale],r=e%i;e-=r,this.startDrawTime=e,this.startDrawOffset=-r/ke.TIME_SCALE[this.timeScale]+.5;for(var a=new Date,o=this.startDrawOffset;o<=this.timeCanvas.width;o+=10){if(this.timeCtx.moveTo(o,17),e<this.minTime||e>this.maxTime);else if(e%n==0){this.timeCtx.lineTo(o,40),a.setTime(1e3*e);var s,l=a.getHours(),c=a.getMinutes();s=l>9&&c>9?"".concat(l,":").concat(c):l>9?"".concat(l,":0").concat(c):c>9?"0".concat(l,":").concat(c):"0".concat(l,":0").concat(c),this.timeCtx.fillText(s,o-14,50)}else this.timeCtx.lineTo(o,33);e+=i}this.timeCtx.closePath(),this.timeCtx.stroke();var u=Math.round(this.startDrawTime+ke.TIME_SCALE[this.timeScale]*(this.timeCanvas.width-this.startDrawOffset));this.queryCache.isInclude(this.startDrawTime,u)||null!==this.streamProxy&&this.streamProxy.query(this.startDrawTime,u)}}},{key:"updateRecordLine",value:function(){null!==this.recordCtx&&null!==this.recordCanvas&&0!==this.oldWidth&&(this.recordCanvas.style.left="".concat(this.xOffset,"px"),this.recordCtx.clearRect(0,0,this.recordCanvas.width,this.recordCanvas.height),this.recordCtx.lineWidth=3,this.recordCtx.strokeStyle="rgba(220, 0, 0, 0.8)",this.recordCtx.beginPath(),this.drawRecordLine(this.recordCtx,this.alarmRecords,1,this.recordCanvas.width),this.recordCtx.closePath(),this.recordCtx.stroke(),this.recordCtx.strokeStyle="rgba(3,127,220,0.9)",this.recordCtx.beginPath(),this.drawRecordLine(this.recordCtx,this.normalRecords,12,this.recordCanvas.width),this.recordCtx.closePath(),this.recordCtx.stroke())}},{key:"drawRecordLine",value:function(t,e,n,i){var r,a=Le(e.range(this.startDrawTime,this.startDrawTime+ke.TIME_SCALE[this.timeScale]*i));try{for(a.s();!(r=a.n()).done;){var o=r.value,s=Math.floor((o.startTime-this.startDrawTime)/ke.TIME_SCALE[this.timeScale]),l=Math.round((o.endTime-this.startDrawTime)/ke.TIME_SCALE[this.timeScale]);t.moveTo(s+this.startDrawOffset,n),t.lineTo(l+this.startDrawOffset,n)}}catch(t){a.e(t)}finally{a.f()}}},{key:"curTimeStr",get:function(){return this.tmpDate.setTime(1e3*this.curTime),ke.formatTime(this.tmpDate)}},{key:"scaleStr",get:function(){return ke.TIME_SCALE_TIP[this.timeScale]}}],[{key:"pad",value:function(t){return t<10?"0".concat(t):"".concat(t)}},{key:"formatTime",value:function(t){var e=ke.pad;return"".concat(e(t.getFullYear()),"-").concat(e(t.getMonth()+1),"-").concat(e(t.getDate())," ").concat(e(t.getHours()),":").concat(e(t.getMinutes()),":").concat(e(t.getSeconds()))}}]),n}(m.a);Re.MAX_TIME_SCALE=3,Re.TIME_SCALE=[1,10,30,60],Re.TIME_SCALE_TIP=["缩放比例: 1分钟","缩放比例: 10分钟","缩放比例: 30分钟","缩放比例: 60分钟"],p([P({default:0})],Re.prototype,"initTime",void 0),p([P({default:0})],Re.prototype,"minTime",void 0),p([P({default:0})],Re.prototype,"maxTime",void 0),p([P({default:0})],Re.prototype,"winIndex",void 0),p([P()],Re.prototype,"deviceInfo",void 0),p([P()],Re.prototype,"wsPort",void 0),p([P()],Re.prototype,"proxy",void 0),p([O("$attrs.wsPort",{immediate:!0,deep:!0})],Re.prototype,"onTimeChange",null);var Ne=Re=ke=p([E({components:{}})],Re),Be=(n("a354"),le(Ne,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"timeline"},[n("canvas",{ref:"timeCanvas",staticClass:"ruler",attrs:{width:"400",height:"40"},on:{mousedown:t.mouseDown,mousemove:t.mouseMove,mouseleave:t.mouseLeave,mouseup:t.mouseUp}}),n("canvas",{ref:"recordCanvas",staticClass:"records",attrs:{width:"400",height:"40"}}),n("span",{staticClass:"scale"},[t._v(t._s(t.scaleStr))]),n("span",{staticClass:"time"},[t._v(t._s(t.curTimeStr))]),n("div",{staticClass:"time-p"})])}),[],!1,null,"b43b3934",null)).exports,ze=(n("7da8"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"calendarPanel"},[n("div",{staticClass:"calendar-header"},[n("span",{staticClass:"icon",on:{click:function(e){return t.changeDate("preYear")}}},[t._v("<<")]),n("span",{staticClass:"icon",on:{click:function(e){return t.changeDate("preMonth")}}},[t._v("<")]),n("span",{staticClass:"currentDate"},[t._v(t._s(t.year+"年"+t.month+"月"))]),n("span",{staticClass:"icon",on:{click:function(e){return t.changeDate("nextMonth")}}},[t._v(">")]),n("span",{staticClass:"icon",on:{click:function(e){return t.changeDate("nextYear")}}},[t._v(">>")])]),n("div",{staticClass:"calendar-main"},[n("ul",{staticClass:"main-header"},t._l(t.week,(function(e,i){return n("li",[t._v("\n "+t._s(e)+"\n ")])})),0),n("ul",{staticClass:"main"},[t._l(t.weekDay,(function(e){return n("li",{staticClass:"disabled"},[t._v("\n "+t._s(t.preMonthSize-t.weekDay+e)+"\n ")])})),t._l(t.monthList[t.month-1],(function(e){return n("li",[n("span",{class:{currentDay:e===t.day}},[t._v("\n "+t._s(e)+"\n ")])])})),t._l(t.lastWeekDay,(function(e){return n("li",{staticClass:"disabled"},[t._v(t._s(e))])}))],2)])])});function Fe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}var Ve,We=function(t){u(n,t);var e=Fe(n);function n(){var t;return a(this,n),(t=e.apply(this,arguments)).year=0,t.month=0,t.day=0,t.week=["日","一","二","三","四","五","六"],t.monthList=[31,28,31,30,31,30,31,31,30,31,30,31],t.weekDay=1,t.lastWeekDay=1,t}return l(n,[{key:"created",value:function(){this.getCurrentDate(),this.initDate()}},{key:"getCurrentDate",value:function(){var t=new Date;this.year=t.getFullYear(),this.month=t.getMonth()+1,this.day=t.getDate()}},{key:"getWeekDay",value:function(t,e,n){return new Date("".concat(t,"/").concat(e,"/").concat(n)).getDay()}},{key:"initDate",value:function(){this.year%4==0&&this.year%100!=0||this.year%400==0?this.monthList[1]=29:this.monthList[1]=28;var t=this.getWeekDay(this.year,this.month,1);this.weekDay=7===t?0:t;var e=this.getWeekDay(this.year,this.month,this.monthList[this.month-1]);this.lastWeekDay=7===e?6:6-e}},{key:"changeDate",value:function(t){switch(t){case"preYear":this.year-=1;break;case"preMonth":1===this.month?(this.month=12,this.year-=1):this.month-=1;break;case"nextYear":this.year+=1;break;case"nextMonth":12===this.month?(this.month=1,this.year+=1):this.month+=1}this.initDate()}},{key:"preMonthSize",get:function(){return this.month-1==0?31:this.monthList[this.month-2]}}]),n}(m.a),Ue=We=p([E],We),He=(n("c780"),le(Ue,ze,[],!1,null,"3f7d81c4",null)).exports;function Ge(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}var je=Ve=function(t){u(n,t);var e=Ge(n);function n(){var t;return a(this,n),(t=e.apply(this,arguments)).pos=0,t.date=new Date,t.dragging=!1,t}return l(n,[{key:"formatTime",value:function(t){if(0===t)return"";var e=Ve.pad;return this.date.setTime(1e3*t),"".concat(e(this.date.getHours()),":").concat(e(this.date.getMinutes()),":").concat(e(this.date.getSeconds()))}},{key:"onTimeChange",value:function(t,e){this.time>0?!this.dragging&&this.time>=this.record.startTime&&this.time<=this.record.endTime&&(this.pos=this.time):this.pos=this.record.startTime}},{key:"onDragEnd",value:function(){this.dragging=!1;var t=this.$refs.vs;this.$emit("onDrag",t.getValue())}}],[{key:"pad",value:function(t){return t<10?"0".concat(t):"".concat(t)}}]),n}(m.a);p([P({default:{startTime:0,endTime:0,type:0}})],je.prototype,"record",void 0),p([P({default:0})],je.prototype,"time",void 0),p([O("$attrs.time",{immediate:!0,deep:!0})],je.prototype,"onTimeChange",null);var Ye,qe=je=Ve=p([E({components:{VueSlider:Ce.a}})],je),Ke=(n("2b6a"),le(qe,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"play-pb"},[n("vue-slider",{ref:"vs",attrs:{silent:!0,min:t.record.startTime,max:t.record.endTime,"tooltip-formatter":function(e){return t.formatTime(e)},"rail-style":{backgroundColor:"#3d3d3d"},clickable:!1},on:{dragstart:function(e){t.dragging=!0},"drag-end":t.onDragEnd},model:{value:t.pos,callback:function(e){t.pos=e},expression:"pos"}})],1)}),[],!1,null,"40ec3b00",null)).exports;!function(t){t[t.STOPPED=0]="STOPPED",t[t.DOWNLOADING=1]="DOWNLOADING",t[t.DOWNLOAD_FAILED=2]="DOWNLOAD_FAILED",t[t.FINISHED=3]="FINISHED"}(Ye||(Ye={}));var Xe=function(){function t(e,n,i,r){a(this,t),this.websocket=null,this.downloading=!1,this.onStatus=function(){return 1},this.onProgress=function(){return 1},this.channelId=e,this.deviceId=n,this.record=i,this.targetPath=r||""}return l(t,[{key:"start",value:function(e){var n=this,i=_t.createWebsocket(e,null);this.websocket=i;var r=Math.floor(new Date(this.record.beginTime).getTime()/1e3),a=Math.floor(new Date(this.record.endTime).getTime()/1e3),o=this.targetPath;return this.websocket.onopen=function(){i.send(JSON.stringify({cmd:xe.CMD_INIT_CHANNEL,type:"vod"})),i.send(JSON.stringify({cmd:t.CMD_DOWNLOAD_RECORD,id:n.deviceId,startTime:r,endTime:a,path:o}))},this.websocket.onclose=function(){n.downloading&&n.onStatus(n.channelId,Ye.DOWNLOAD_FAILED,Mt.NETWORK_ERROR,"")},this.websocket.onerror=function(){n.downloading&&n.onStatus(n.channelId,Ye.DOWNLOAD_FAILED,Mt.NETWORK_ERROR,"")},this.websocket.onmessage=function(t){if("string"==typeof t.data){var e=JSON.parse(t.data);"download_status"===e.cmd?n.onStatus(n.channelId,e.status,e.code,e.path):"download_progress"===e.cmd?n.onProgress(n.channelId,Math.min(Math.max(100*e.progress,0),99.99),e.size):console.log(e)}},this.downloading=!0,Mt.OK}},{key:"stop",value:function(){if(this.downloading=!1,null===this.websocket)return null;this.websocket.close()}}]),t}();Xe.CMD_DOWNLOAD_RECORD="download_record";var Ze,Qe,Je=function(){function t(e){a(this,t),this.idSeed=1,this.channels={},this.onStatus=function(){return 1},this.onProgress=function(){return 1},this.wsPort=e}return l(t,[{key:"create",value:function(t,e,n){var i="".concat(this.idSeed),r=new Xe(i,t,e,n);return r.onStatus=this.onStatus,r.onProgress=this.onProgress,this.channels[i]=r,this.idSeed+=1,i}},{key:"start",value:function(t){var e=this.channels[t];return e?e.start(this.wsPort):Mt.NO_TASK}},{key:"stop",value:function(t){var e=this.channels[t];return e?(e.stop(),Mt.OK):Mt.NO_TASK}},{key:"delete",value:function(t){var e=this.channels[t];return e?(e.stop(),this.channels[t]=void 0,Mt.OK):Mt.NO_TASK}},{key:"destroy",value:function(){for(var t=0,e=Object.keys(this.channels);t<e.length;t++){var n=e[t],i=this.channels[n];i&&i.stop()}this.channels={}}}]),t}();function $e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function tn(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return en(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?en(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function en(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function nn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}!function(t){t[t.NONE=0]="NONE",t[t.SERVICE_CONNECTING=1]="SERVICE_CONNECTING",t[t.SERVICE_ESTABLISH=2]="SERVICE_ESTABLISH",t[t.CHANNEL_ESTABLISH=3]="CHANNEL_ESTABLISH",t[t.SERVICE_DISCONNECTED=4]="SERVICE_DISCONNECTED",t[t.CHANNEL_DISCONNECTED=5]="CHANNEL_DISCONNECTED",t[t.SERVICE_ERROR=6]="SERVICE_ERROR"}(Qe||(Qe={}));var rn=Ze=function(t){u(n,t);var e=nn(n);function n(){var t;return a(this,n),(t=e.call(this)).dcs=null,t.timeScaleIndex=2,t.isFullscreen=!1,t.fullScreenCheckTimer=0,t.ps=null,t.expandTimeline=!1,t.errorMsg="",t.wsPort=0,t.heartTimer=0,t.singleMode=!0,t.syncPlayTimer=0,t.syncPlayWindows=[],t.syncFirstTick=0,t.syncFirstTime=0,t.loaded=!1,t.downloader=null,t.lastDeviceId=null,t.wsInitChannel=null,t.windowInfos=[],t.windowLayout=null,new Promise((function(){return 1})),t}return l(n,[{key:"setLayout",value:function(t){void 0===t.combines&&(t.combines={}),null!=this.windowLayout&&this.windowLayout.setLayout(t),this.updateLayoutShow()}},{key:"openDevice",value:function(t,e,n){if(null===this.windowLayout||0===this.wsPort)return!1;this.lastDeviceId=t,this.windowInfos[0].deviceInfo.id=t,this.windowInfos[0].minTime=this.windowInfos[0].deviceInfo.minTime=_t.stringToUnix(e),this.windowInfos[0].minTime=this.windowInfos[0].deviceInfo.minTime=_t.stringToUnix(n);var i={id:t,minTime:this.windowInfos[0].deviceInfo.minTime,maxTime:this.windowInfos[0].deviceInfo.maxTime};return this.windowLayout.getWindow(0).setDevice(i),this.singleMode=!1,!0}},{key:"playVodStream",value:function(t,e,n){if(this.singleMode=!0,null!==this.windowLayout){for(var i=this.windowLayout.getWindowCount(),r=0;r<i;r++)this.windowLayout.getWindow(r).stop();0!==this.syncPlayTimer&&(cancelAnimationFrame(this.syncPlayTimer),this.syncPlayTimer=0);var a=this.windowLayout.getWindow(0),o=_t.stringToUnix(e.beginTime),s=_t.stringToUnix(e.endTime),l=_t.stringToUnix(n);a.setDevice({id:t,minTime:o,maxTime:s}),this.lastDeviceId=t,a.playPos(l,ye.FORWARD)}}},{key:"stopPlay",value:function(){this.stop(0)}},{key:"getPos",value:function(){return this.callWinFunc(0,(function(t){return t.getPos()}))}},{key:"snapshot",value:function(){return this.callWinFunc(0,(function(t){return t.snapshot()}))}},{key:"stop",value:function(t){if(null!==this.windowLayout&&!(t<0||t>=this.windowInfos.length)){var e=this.windowLayout.getWindow(t);if(null!==e){if(this.windowInfos[e.index].timeline.sync){cancelAnimationFrame(this.syncPlayTimer);var n,i=tn(this.getSyncIndexes(e.index));try{for(i.s();!(n=i.n()).done;){var r=n.value;this.windowLayout.getWindow(r).stop(),this.syncPlayTimer=0}}catch(t){i.e(t)}finally{i.f()}}else e.stop();this.$emit("onStop",t)}}}},{key:"showFullscreen",value:function(){var t=this,e=this.$el;if(e.requestFullscreen)e.requestFullscreen();else if(e.mozRequestFullScreen)e.mozRequestFullScreen();else if(e.webkitRequestFullscreen)e.webkitRequestFullscreen();else{if(!e.msRequestFullscreen)return console.log("不存在进入全屏的方法! => undefined"),!1;e.msRequestFullscreen()}return this.isFullscreen=!0,0===this.fullScreenCheckTimer&&(this.fullScreenCheckTimer=setInterval((function(){null===document.fullscreenElement&&t.exitFullscreen()}),1e3)),!0}},{key:"exitFullscreen",value:function(){var t=document;if(null===t.fullscreenElement);else if(t.exitFullscreen)t.exitFullscreen();else if(t.mozCancelFullScreen)t.mozCancelFullScreen();else{if(!t.webkitExitFullscreen)return!1;t.webkitExitFullscreen()}this.isFullscreen=!1,0!==this.fullScreenCheckTimer&&(clearInterval(this.fullScreenCheckTimer),this.fullScreenCheckTimer=0)}},{key:"login",value:function(t,e,n,i){return null===this.dcs?Mt.INVALID_STATE:this.dcs.login(t,e,n,i)}},{key:"createDownloadTask",value:function(t,e,n){return null===this.downloader||this.wsInitChannel&&this.wsInitChannel.isProxy()?"":this.downloader.create(t,e,n)}},{key:"startDownload",value:function(t){return null===this.downloader?Mt.INVALID_STATE:this.downloader.start(t)}},{key:"stopDownload",value:function(t){return null===this.downloader?Mt.INVALID_STATE:this.downloader.stop(t)}},{key:"destroyDownloadTask",value:function(t){return null===this.downloader?Mt.INVALID_STATE:this.downloader.delete(t)}},{key:"onLayoutChange",value:function(t,e){0!==this.wsPort&&this.setLayout(t)}},{key:"onServerChange",value:function(t,e){void 0!==this.server&&"undefined"!==this.server&&this.loaded&&this.tryLogin()}},{key:"onProgressDrag",value:function(t){var e=this.selectedWindow();null!==e&&e.moveTo(t)}},{key:"mounted",value:function(){var t=this,e=this;this.windowLayout=new fe(this.$refs.win_table,(function(n,i){var r=new Se(n,i,t.wsPort,null===t.wsInitChannel?null:t.wsInitChannel.getConnectedProxyIp());return r.onStatus=function(t){e.onWindowStatus(n,t)},r.onPosChange=function(t){e.onPlayPos(n,t)},r.onSnapshot=function(t,n,i){e.$emit("onSnapshot",t,n,i)},r.onPlayFinished=function(i,r){if(t.singleMode)e.$emit("onPlayFinished",n,i,r);else if(null!==e.windowLayout){var a=e.windowLayout.getWindow(n);null!==a&&e.playNext(a,r)}},r.onPlayState=function(t,n){e.$emit("onPlayState",t,n)},r})),this.windowLayout.setup(),this.wsInitChannel=new $t(this.proxy?this.proxy:null),this.wsInitChannel.onInitOk=function(n,i){e.wsPort=i,null!==e.windowLayout&&e.setLayout(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$e(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t.layout)),e.onLoad(n)},this.wsInitChannel.onInitError=function(e,n){t.errorMsg=n,t.wsPort=0,t.$emit("onLoadFailed",n)},this.wsInitChannel.onConnectFailed=function(){t.errorMsg=X.PLUGIN_SERVICE_NOTFOUND,t.wsPort=0},this.wsInitChannel.onDisconnected=function(){t.errorMsg=X.PLUGIN_SERVICE_DISCONNECTED,t.wsPort=0}}},{key:"beforeDestroy",value:function(){0!==this.syncPlayTimer&&(cancelAnimationFrame(this.syncPlayTimer),this.syncPlayTimer=0),0!==this.heartTimer&&window.clearInterval(this.heartTimer),null!==this.windowLayout&&this.windowLayout.destroy(),null!==this.ps&&(this.ps.destroy(),this.ps=null),null!==this.wsInitChannel&&this.wsInitChannel.close(),null!==this.dcs&&(this.dcs.destroy(),this.dcs=null)}},{key:"tryLogin",value:function(){var t=this;null===this.dcs&&(this.dcs=new Yt(this.wsPort,null===this.wsInitChannel?null:this.wsInitChannel.getConnectedProxyIp())),this.dcs.loginCB=function(e,n){e&&null===t.downloader&&(t.downloader=new Je(t.wsPort),t.downloader.onStatus=function(e,n,i,r){t.$emit("onDownloadStatus",e,n,i,r)},t.downloader.onProgress=function(e,n,i){t.$emit("onDownloadProgress",e,n,i)}),t.$emit("onLogin",e,n)},this.server.length>0&&this.dcs.loginByUrl(this.server)}},{key:"onWindowStatus",value:function(t,e){this.windowInfos[t].status=e}},{key:"onPlayPos",value:function(t,e){this.singleMode||null===this.windowLayout||this.getTimeLine(t).setTime(e)}},{key:"callWinFunc",value:function(t,e){if(null===this.windowLayout)return Mt.INVALID_STATE;if(t<0||t>=this.windowInfos.length)return Mt.INVALID_PARAM;var n=this.windowLayout.getWindow(0);return null===n?Mt.UNKNOWN_ERROR:e(n)}},{key:"updateLayoutShow",value:function(){if(null!==this.windowLayout){for(var t=this.windowInfos.length;t<this.windowLayout.getWindowCount();t++){var e={timeline:{time:0,scale:2,sync:!1},id:t,time:0,minTime:Math.floor(Date.now()/1e3)-172800,maxTime:Math.floor(Date.now()/1e3)+172800,deviceInfo:{id:"",streamIp:"",streamPort:0,queryIp:"",queryPort:0,name:"",minTime:0,maxTime:0},status:ve.STOPPED,record:{startTime:0,endTime:0,type:0},syncPlayTimer:0};this.windowInfos.push(e)}for(;this.windowInfos.length>this.windowLayout.getWindowCount();)this.windowInfos.pop()}else this.windowInfos=[]}},{key:"onLoad",value:function(t){this.loaded=!0,this.$emit("onLoad",this,t,this.wsInitChannel&&this.wsInitChannel.isProxy()),this.tryLogin()}},{key:"getTimeLine",value:function(t){return this.$refs.timelines[t]}},{key:"onTimeLineMove",value:function(t,e){if(!this.singleMode&&this.windowInfos[t].timeline.sync)for(var n=0;n<this.windowInfos.length;n++)n!==t&&this.windowInfos[n].timeline.sync&&this.getTimeLine(n).setTime(e)}},{key:"onTimeLineRecord",value:function(t,e,n){this.singleMode||null===this.windowLayout||this.windowLayout.getWindow(t).moveTo(n)}},{key:"onToolButton",value:function(t,e){var n=this;if("scale-up"===t){if(this.timeScaleIndex<Ze.MAX_TIME_SCALE&&this.timeScaleIndex++,!this.singleMode){var i,r=tn(this.$refs.timelines);try{for(r.s();!(i=r.n()).done;)i.value.setScale(this.timeScaleIndex)}catch(t){r.e(t)}finally{r.f()}}}else if("scale-down"===t){if(this.timeScaleIndex>0&&this.timeScaleIndex--,!this.singleMode){var a,o=tn(this.$refs.timelines);try{for(o.s();!(a=o.n()).done;)a.value.setScale(this.timeScaleIndex)}catch(t){o.e(t)}finally{o.f()}}}else if("fullscreen"===t)this.showFullscreen();else if("cancel-fullscreen"===t)this.exitFullscreen();else if("expand"===t)this.expandTimeline=!0;else if("shrink"===t)this.expandTimeline=!1;else if("snap"===t){var s=this.selectedWindow();null!==s&&s.snapshot()}else if("play"===t){var l=this.selectedWindow(),c=-1===e?ye.BACKWARD:ye.FORWARD,u=this.getSyncIndexes(l.index);if(u.length>1){this.syncPlayWindows=[];var h,d=this.getTimeLine(u[0]).getTime(),f=tn(u);try{for(f.s();!(h=f.n()).done;){var p=h.value;if(null!==this.windowLayout){this.getTimeLine(p).setTime(d);var g=this.windowLayout.getWindow(p);g.syncPlay(d),this.syncPlayWindows.push(g)}}}catch(t){f.e(t)}finally{f.f()}this.syncPlayTimer=requestAnimationFrame((function(){return n.syncPlay()})),this.syncFirstTick=0,this.syncFirstTime=0}else l.play(c)}else if("stop"===t){var m=this.selectedWindow();this.stop(m.index)}else if("pause"===t){var v=this.selectedWindow();null!==v&&v.pause()}else if("back"===t){var y=this.selectedWindow();null!==y&&y.subSpeed()}else if("forward"===t){var x=this.selectedWindow();null!==x&&x.addSpeed()}else if("speed"===t){var b=e;console.log("speed",b);var _=this.selectedWindow();null!==_&&_.setSpeed(b)}else if("prev"===t){var w=this.selectedWindow();null!==w&&w.stepPrev()}else if("next"===t){var S=this.selectedWindow();null!==S&&S.stepNext()}}},{key:"playNext",value:function(t,e){if(ye.FORWARD===e){var n=t.posSec;t.record.endTime>0&&t.posSec<t.record.endTime&&(n=t.record.endTime);var i=this.getTimeLine(t.index).findRecord(n);null!==i&&i.startTime<=n?t.play(e):null!==i&&(t.moveTo(i.startTime),t.play(e))}}},{key:"selectedWindow",value:function(){if(null===this.windowLayout)return null;var t=this.windowLayout.getSelectedWindow();return null===t?null:t}},{key:"getSyncIndexes",value:function(t){var e=[];if(!this.windowInfos[t].timeline.sync)return e;for(var n=0;n<this.windowInfos.length;n++)this.windowInfos[n].timeline.sync&&e.push(n);return e}},{key:"syncPlay",value:function(){var t,e=this,n=72057594037927940,i=null,r=tn(this.syncPlayWindows);try{for(r.s();!(t=r.n()).done;){var a=t.value,o=a.minFrameTime();o>0&&o<n&&(n=o,i=a)}}catch(t){r.e(t)}finally{r.f()}if(null===i)this.syncFirstTick=0;else if(0===this.syncFirstTick)this.syncFirstTick=performance.now()+10,this.syncFirstTime=n,i.syncStep();else{var s=performance.now(),l=s-this.syncFirstTick-(n-this.syncFirstTime);(l>1e3||l<-1e3)&&(this.syncFirstTick=s,this.syncFirstTime=n),l>0&&i.syncStep()}requestAnimationFrame((function(){return e.syncPlay()}))}},{key:"playStatus",get:function(){var t=this.selectedWindow();return null===t?ve.STOPPED:t.status}},{key:"playDirection",get:function(){var t=this.selectedWindow();return null===t?ye.FORWARD:t.direction}},{key:"currentRecord",get:function(){var t=this.selectedWindow();return null===t?{startTime:0,endTime:0,type:0}:t.record}},{key:"currentTime",get:function(){var t=this.selectedWindow();return null===t?0:t.posSec}},{key:"currentSpeed",get:function(){var t=this.selectedWindow();return null===t?1:t.speed}},{key:"syncMode",get:function(){var t=this.selectedWindow();if(null===t)return!1;if(!this.windowInfos[t.index].timeline.sync)return!1;for(var e=0;e<this.windowInfos.length;e++)if(e!==t.index&&this.windowInfos[e].timeline.sync)return!0;return!1}},{key:"showError",get:function(){return 0===this.wsPort}},{key:"timesHeight",get:function(){return this.expandTimeline?"".concat(60*this.windowInfos.length,"px"):"60px"}},{key:"timesTop",get:function(){if(this.expandTimeline||null===this.windowLayout)return"0px";var t=60*this.windowLayout.getSelectedIndex();return"-".concat(t,"px")}},{key:"proxyIp",get:function(){return this.wsInitChannel?this.wsInitChannel.getConnectedProxyIp():null}}]),n}(m.a);rn.MAX_TIME_SCALE=3,p([P({default:function(){return{rows:1,cols:1,combines:{}}}})],rn.prototype,"layout",void 0),p([P({default:"dark"})],rn.prototype,"theme",void 0),p([P({default:!1})],rn.prototype,"dbClick",void 0),p([P({default:!0})],rn.prototype,"timeLine",void 0),p([P({default:""})],rn.prototype,"server",void 0),p([P({default:""})],rn.prototype,"proxy",void 0),p([O("layout",{immediate:!0,deep:!1})],rn.prototype,"onLayoutChange",null),p([O("$attrs.server",{immediate:!0})],rn.prototype,"onServerChange",null);var an=rn=Ze=p([E({components:{ProgressBar:Ke,Calendar:He,VodToolBar:De,VodTimeLine:Be}})],rn),on=(n("9564"),n("2ed9"),le(an,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["vatvod","vatvod-"+t.theme],attrs:{vat:"vod-player",tabindex:"0"},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.onToolButton("cancel-fullscreen")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showError,expression:"showError"}],staticStyle:{position:"absolute",left:"0",right:"0",background:"#111111",width:"100%",height:"100%",display:"flex","z-index":"100","align-items":"center","justify-content":"center"}},[n("span",{staticClass:"vat-error err-msg"},[t._v(t._s(t.errorMsg))])]),n("div",{staticClass:"vod-wins"},[n("table",{ref:"win_table",attrs:{vat:"win-tab",cellspacing:"1"}})]),n("progress-bar",{directives:[{name:"show",rawName:"v-show",value:t.singleMode&&t.wsPort>0&&t.lastDeviceId,expression:"singleMode && wsPort > 0 && lastDeviceId"}],ref:"pb",attrs:{record:t.currentRecord,time:t.currentTime},on:{onDrag:t.onProgressDrag}}),n("vod-tool-bar",{directives:[{name:"show",rawName:"v-show",value:t.lastDeviceId,expression:"lastDeviceId"}],attrs:{"is-fullscreen":t.isFullscreen,"is-expand":t.windowInfos.length>1&&t.expandTimeline,"is-single":t.singleMode||!t.timeLine,"play-status":t.playStatus,"play-direction":t.playDirection,speed:t.currentSpeed,"sync-mode":t.syncMode},on:{onBtnClick:t.onToolButton}}),!t.singleMode&&t.timeLine?n("div",{ref:"times",staticClass:"vod-times",style:{height:t.timesHeight,overflow:"hidden"}},[n("div",{staticClass:"times-panel",style:{left:0,top:t.timesTop}},t._l(t.windowInfos,(function(e){return n("div",{key:e.id,staticClass:"vod-time-row"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.windowInfos.length>1&&t.expandTimeline,expression:"windowInfos.length > 1 && expandTimeline"}],staticClass:"vod-time-left"},[n("label",[t._v(t._s(e.deviceInfo.name))]),n("label",[t._v("\n 同步\n "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.timeline.sync,expression:"win.timeline.sync"}],attrs:{type:"checkbox",disabled:t.syncPlayTimer>0||0!==e.status},domProps:{checked:Array.isArray(e.timeline.sync)?t._i(e.timeline.sync,null)>-1:e.timeline.sync},on:{change:function(n){var i=e.timeline.sync,r=n.target,a=!!r.checked;if(Array.isArray(i)){var o=t._i(i,null);r.checked?o<0&&t.$set(e.timeline,"sync",i.concat([null])):o>-1&&t.$set(e.timeline,"sync",i.slice(0,o).concat(i.slice(o+1)))}else t.$set(e.timeline,"sync",a)}}})])]),n("vod-time-line",{key:e.id,ref:"timelines",refInFor:!0,attrs:{"win-index":e.id,"min-time":e.minTime,"max-time":e.maxTime,"device-info":e.deviceInfo,"ws-port":t.wsPort,proxy:t.proxyIp},on:{onMove:t.onTimeLineMove,onRecord:t.onTimeLineRecord}})],1)})),0)]):t._e()],1)}),[],!1,null,"4355d158",null)).exports,sn=n("c0e8"),ln={install:function(t,e){t.component("live-player",ce),t.component("vod-player",on)}};e.default=ln}})},"object"===s(e)&&"object"===s(t)?t.exports=o(n(33)):(r=[],void 0===(a="function"==typeof(i=o)?i.apply(e,r):i)||(t.exports=a))}).call(this,n(32)(t))},,,,,,,,,,,,function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){t.exports=n},function(t,e,n){"use strict";var i=n(7);n.n(i).a},function(t,e,n){(e=n(2)(!1)).push([t.i,".rtsp-player-component{position:relative}.rtsp-player-component .img,.rtsp-player-component .player,.rtsp-player-component .error-message{position:absolute;height:100%;width:100%;top:0;left:0}.rtsp-player-component .img{z-index:100;background-repeat:no-repeat;background-size:100% 100%;border:2px solid #fff0;box-sizing:border-box}.rtsp-player-component .error-message{z-index:100;color:#f56c6c;display:flex;justify-content:center;align-items:center}.rtsp-player-component .error-message .reconnect{cursor:pointer;color:#409eff}.fc-player .rtsp-player .el-loading-mask{background-color:#101010}",""]),t.exports=e},function(t,e,n){"use strict";var i=n(8);n.n(i).a},function(t,e,n){var i=n(2),r=n(19);(e=i(!1)).i(r),e.push([t.i,".player-control-bar{position:absolute;z-index:3;display:flex;justify-content:center;width:100%;height:60px;bottom:135px}.player-control-bar .center{display:flex;align-items:center;justify-content:center;width:180px}.player-control-bar .center .qz-player-control-icon{font-size:18px;margin:0 16px;cursor:pointer;transition:all .3s}.player-control-bar .center .qz-player-control-icon.start,.player-control-bar .center .qz-player-control-icon.pause{font-size:30px}",""]),t.exports=e},function(t,e,n){"use strict";var i=n(9);n.n(i).a},function(t,e,n){(e=n(2)(!1)).push([t.i,".player-time-select-bar{position:relative;z-index:2;display:flex;padding:0 10px;height:60px;border-top:1px solid}.player-time-select-bar .calendar{flex:1;display:flex;align-items:center}.player-time-select-bar .calendar .title{margin-left:20px;margin-right:20px;font-size:14px;color:#fff}.player-time-select-bar .calendar .el-date-editor{width:160px}.player-time-select-bar .calendar .el-date-editor .el-input__inner{border-radius:2px}",""]),t.exports=e},function(t,e,n){"use strict";var i=n(10);n.n(i).a},function(t,e,n){(e=n(2)(!1)).push([t.i,".player-progress-bar{position:relative;z-index:2;height:75px}.player-progress-bar .progress-outer{height:100%;background:#505f67}.player-progress-bar .progress-outer .time-title{font-size:14px;font-weight:bold}.player-progress-bar .progress-outer .time-rect{width:160px;height:30px}.player-progress-bar .progress-outer .ticks-container{background-color:#000}.player-progress-bar .progress-outer .ticks-container .enter{font-size:12px;font-weight:normal;user-select:none}.player-progress-bar .progress-outer .ticks-container .update{fill:#333}",""]),t.exports=e},function(t,e,n){"use strict";var i=n(11);n.n(i).a},function(t,e,n){var i=n(2),r=n(19);(e=i(!1)).i(r),e.push([t.i,'.qz-player{position:relative;z-index:1;height:100%;width:100%}.qz-player .el-loading-mask{background-color:#10101080}.qz-player .el-loading-mask .el-loading-spinner{margin-top:0;transform:translateY(-50%)}.qz-player .el-loading-mask .el-loading-spinner .circular{background-color:#2f4c5c;border-radius:100%;padding:9px}.qz-player .el-loading-mask .el-loading-spinner .circular .path{stroke-width:3px}.qz-player .rtsp-player{position:relative;z-index:2;height:100%}.qz-player .rtsp-player.playback-player{height:calc(100% - 135px)}.qz-player .start-player-icon{position:absolute;z-index:998;width:60px;height:60px;left:50%;top:50%;transform:translate(calc(-50% + 2px), -50%);background-repeat:no-repeat;background-size:100%;background-position:center;cursor:pointer;opacity:.9;border-radius:100%;font-size:20px}.qz-player .start-player-icon::before{position:absolute;left:50%;top:50%;transform:translate(calc(-50% + 2px), -50%)}.qz-player .player-control-bar{opacity:0;transition:all .3s}.qz-player .player-control-bar:hover,.qz-player .playback-player:hover+.player-control-bar{opacity:1}.qz-player.light-theme .start-player-icon{color:#0091ff;background-color:#fff;box-shadow:0px 0px 30px 0px rgba(255,255,255,.5),0px 5px 15px 0px rgba(255,255,255,.3)}.qz-player.light-theme .el-loading-mask .el-loading-spinner .circular{background-color:#fff}.qz-player.light-theme .el-loading-mask .el-loading-spinner .circular .path{stroke:#0091ff}.qz-player.light-theme .player-control-bar{background-color:rgba(255,255,255,.9);color:#7b858f}.qz-player.light-theme .player-control-bar .qz-player-control-icon:hover{color:#0091ff}.qz-player.light-theme .player-progress-bar .progress-outer{background:#fff}.qz-player.light-theme .player-progress-bar .times-tick{fill:#666}.qz-player.light-theme .player-progress-bar .tick-path{stroke:#dde0e7}.qz-player.light-theme .player-progress-bar .time-title{fill:#fff}.qz-player.light-theme .player-progress-bar .time-rect{fill:#0091ff}.qz-player.light-theme .player-progress-bar .available-path,.qz-player.light-theme .player-progress-bar .domain{stroke:#0091ff}.qz-player.light-theme .player-time-select-bar{border-top-color:#f1f2f5;background-color:#fff}.qz-player.light-theme .player-time-select-bar .title{color:#333}.qz-player.light-theme .player-time-select-bar .el-date-editor .el-input__inner{color:#333;border-color:#e3e6ec;background-color:#fff}.qz-player.dark-theme .start-player-icon{color:#ffc124;background-color:#2f4c5c;box-shadow:0px 0px 30px 0px rgba(0,0,0,.5),0px 5px 15px 0px rgba(0,0,0,.3)}.qz-player.dark-theme .el-loading-mask .el-loading-spinner .circular{background-color:#2f4c5c}.qz-player.dark-theme .el-loading-mask .el-loading-spinner .circular .path{stroke:#fff}.qz-player.dark-theme .player-control-bar{background:linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #18272f 100%)}.qz-player.dark-theme .player-control-bar .qz-player-control-icon:hover{color:#ffc124}.qz-player.dark-theme .player-progress-bar .progress-outer{background:#505f67}.qz-player.dark-theme .player-progress-bar .times-tick{fill:#fff}.qz-player.dark-theme .player-progress-bar .tick-path{stroke:#868f94}.qz-player.dark-theme .player-progress-bar .time-title{fill:#38474f}.qz-player.dark-theme .player-progress-bar .time-rect{fill:#ffc124}.qz-player.dark-theme .player-progress-bar .available-path,.qz-player.dark-theme .player-progress-bar .domain{stroke:#ffc124}.qz-player.dark-theme .player-time-select-bar{border-top-color:#6e7f88;background-color:#6e7f88}.qz-player.dark-theme .player-time-select-bar .title{color:#fff}.qz-player.dark-theme .player-time-select-bar .el-date-editor .el-input__inner{color:#fff;border-color:#586870;background-color:#586870}.el-picker-panel.qz-player-date-picker.dark-theme{border-radius:2px;background-color:#3c4852;border-color:#3c4852}.el-picker-panel.qz-player-date-picker.dark-theme .el-date-picker__header .el-picker-panel__icon-btn{color:#ffc124}.el-picker-panel.qz-player-date-picker.dark-theme .el-date-picker__header .el-date-picker__header-label{color:#e1e9ee}.el-picker-panel.qz-player-date-picker.dark-theme .el-picker-panel__content .el-date-table th{color:#e1e9ee;border-bottom:1px solid;border-color:#56646e}.el-picker-panel.qz-player-date-picker.dark-theme .el-picker-panel__content .el-date-table td.available span{color:#e1e9ee}.el-picker-panel.qz-player-date-picker.dark-theme .el-picker-panel__content .el-date-table td.current:not(.disabled) span{background-color:#ffc124;border-radius:2px;color:#38474f}.el-picker-panel.qz-player-date-picker.dark-theme .el-picker-panel__content .el-date-table td.prev-month span{color:#8e989e}.el-picker-panel.qz-player-date-picker.dark-theme .el-picker-panel__content .el-date-table td.next-month span{color:#8e989e}.el-picker-panel.qz-player-date-picker.dark-theme .el-picker-panel__content .el-date-table td.today span{background-color:#2e3a40;border-radius:2px}.el-picker-panel.qz-player-date-picker.dark-theme td.available.has-video div{position:relative}.el-picker-panel.qz-player-date-picker.dark-theme td.available.has-video div::after{content:"";position:absolute;height:4px;width:4px;border-radius:100%;background-color:#d8d8d8;bottom:-2px;left:50%;transform:translate(-50%, 0px)}.qz-player-date-picker.dark-theme.el-popper[x-placement^=top] .popper__arrow{border-top-color:#3c4852}.qz-player-date-picker.dark-theme.el-popper[x-placement^=top] .popper__arrow::after{border-top-color:#3c4852}',""]),t.exports=e},function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],class:"qz-player "+(t.basicConfig&&t.basicConfig.theme||"light-theme")},[n("rtsp-player",{ref:"player",staticClass:"rtsp-player",class:"playback"===t.type?"playback-player":"",attrs:{url:t.url,urls:t.urls,type:t.type,autoPlay:t.autoPlay,config:t.basicConfig,errorCode:t.errorCode},on:{onStreamStatus:t.onStreamStatus,reconnect:t.reconnect,pluginOnload:t.pluginOnload}}),t._v(" "),"live"!==t.type||this.isPlaying||!t.pluginLoadSuccess||t.autoPlay?t._e():n("div",{staticClass:"start-player-icon start qz-player-icon",on:{click:t.controlIconClick}}),t._v(" "),"playback"===t.type?[n("player-control-bar",{attrs:{type:t.type,paused:t.paused,date:t.date},on:{"update:paused":function(e){t.paused=e},play:t.play,pause:t.pause,backward:t.backward,forward:t.forward}}),t._v(" "),n("player-progress-bar",{ref:"playerProgressBar",attrs:{theme:t.basicConfig&&t.basicConfig.theme||"light-theme",currentTimeProp:t.date},on:{"update:currentTimeProp":function(e){t.date=e},"update:current-time-prop":function(e){t.date=e},updateBackwordList:t.onUpdateBackwordList,updateForwardList:t.onUpdateForwardList,updateCurrentPlay:t.onUpdateCurrentPlay,closeCurrentPlay:t.onCloseCurrentPlay,updatePlayState:t.onUpdatePlayState}}),t._v(" "),n("player-time-select-bar",{attrs:{type:t.type,date:t.date,theme:t.basicConfig&&t.basicConfig.theme||"light-theme",monthRecord:t.monthRecord},on:{"update:date":t.dateChange,focus:t.dateFocus}})]:t._e()],2)};i._withStripped=!0;var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"rtsp-player-component"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.img,expression:"img"}],staticClass:"img",style:{backgroundImage:t.img?"url("+t.img+")":""}}),t._v(" "),n("live-player",{ref:"player",attrs:{theme:"dark",config:t.playerConfig},on:{onStreamStatus:t.onStreamStatus,onLoad:t.pluginOnload,onSnapshot:t.onSnapshot}},[n("download-url",[t._v(t._s(t.pluginDownloadUrl))])],1),t._v(" "),t.errorCode?n("div",{staticClass:"error-message"},[1===t.errorCode?n("div",[n("span",[t._v("连接失败!")]),t._v(" "),n("span",{staticClass:"reconnect",on:{click:function(e){return t.$emit("reconnect")}}},[t._v("重新连接")])]):t._e(),t._v(" "),-1===t.errorCode?n("div",[t._v("\n 获取失败,请检查设备状态是否正常!\n ")]):t._e()]):t._e()],1)};r._withStripped=!0;var a=n(20);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l={name:"RtspPlayer",props:{url:{type:String,required:!1},urls:{type:Array,required:!1},type:{type:String,required:!1},errorCode:{type:Number,required:!1},autoPlay:{type:Boolean,required:!1,default:!1},config:{type:Object,required:!1,default:function(){}}},components:{LivePlayer:a.LivePlayer},computed:{pluginDownloadUrl:function(){var t="./player/DCSPlugin-".concat(this.playerConfig.version,".exe");return this.config&&this.config.pluginUrl||t}},data:function(){return{img:"",isPluginLoaded:!1,loading:!1,playerConfig:{titleBar:!1,toolBar:!1,roiMenu:!1,version:"1.0.0-beta.2",dragWindow:!1,dbClick:!1},multipleCanPlay:!1}},watch:{},methods:{onStreamStatus:function(t,e){2===e&&(this.$parent.loading=!1,this.img=""),this.$emit("onStreamStatus",t,e)},pluginOnload:function(){this.isPluginLoaded=!0;var t=this.playerConfig.layout,e=t.rows,n=t.cols,i=t.combines;this.$refs.player.setLayout({rows:e||1,cols:n||1,combines:i||{}}),this.$emit("pluginOnload",this.isPluginLoaded),(this.url||this.urls&&0!==this.urls.length)&&this.autoPlay&&this.streamPlay()},streamClose:function(t){this.isPluginLoaded&&(void 0!==t?this.$refs.player.closeStream(t):this.$refs.player.closeStream())},streamPlay:function(t){this.isPluginLoaded&&(this.showLoading(),1===this.playerConfig.layout.rows&&1===this.playerConfig.layout.cols?this.url?this.$refs.player.openStream(0,this.url):this.urls.length>1&&this.$refs.player.openStream(0,this.urls[0]):void 0!==t?this.$refs.player.openStream(t,this.urls[t]):this.multiplePlayStream())},capture:function(){var t=this;if(this.isPluginLoaded)return this.$refs.player.snapshot(0),new Promise((function(e){t.$on("snapshot",(function(t,n){e({id:t,data:n})}))}))},onSnapshot:function(t,e){this.$emit("snapshot",t,e)},play:function(t){this.isPluginLoaded&&this.streamPlay(t)},pause:function(){var t=this;if(this.isPluginLoaded)return new Promise((function(e,n){t.capture().then((function(n){var i=n.data;t.img=i,t.streamClose(),e()}))}))},stop:function(t){var e=this;this.isPluginLoaded&&(this.urls&&0!==this.urls.length?void 0!==t?this.$refs.player.closeStream(t):this.urls.map((function(t,n){e.$refs.player.closeStream(n)})):this.$refs.player.closeStream(0))},showLoading:function(){this.$parent.loading=!0},hideLoading:function(){this.$parent.loading=!1},multiplePlayStream:function(){var t=this;this.urls.map((function(e,n){t.$refs.player.openStream(n,e)}))},streamCloses:function(t){this.$refs.player&&this.$refs.player.closeStreams(t)}},created:function(){if(this.config&&this.config.defaultSetting){var t=this.playerConfig;for(var e in t=Object.assign(t,defaultSetting))this.$set(this.playerConfig,e,t[e])}if(this.config){var n=this.config;void 0===n.rows&&(n.rows=1),void 0===n.cols&&(n.cols=1),void 0===n.combines&&(n.combines={}),this.$set(this.playerConfig,"layout",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},n))}else this.$set(this.playerConfig,"layout",{rows:1,cols:1,combines:{}})}};function c(t,e,n,i,r,a,o,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:c}}n(34);var u=c(l,r,[],!1,null,null,null);u.options.__file="src/components/rtsp-player.vue";var h=u.exports,d=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"player-control-bar"},[n("div",{staticClass:"center"},["live"!==t.type?n("div",{staticClass:"qz-player-control-icon qz-player-icon backward",on:{click:t.backward}}):t._e(),t._v(" "),[t.paused?n("div",{staticClass:"qz-player-control-icon qz-player-icon start",on:{click:t.play}}):n("div",{staticClass:"qz-player-control-icon qz-player-icon pause",on:{click:t.pause}})],t._v(" "),"live"!==t.type?n("div",{staticClass:"qz-player-control-icon qz-player-icon forward",on:{click:t.forward}}):t._e()],2)])};d._withStripped=!0;var f=n(12),p={name:"PlayerControlBar",props:{type:{type:String,default:"live"},paused:{type:Boolean,default:!1}},components:{ElDatePicker:f.DatePicker},methods:{play:function(){this.$emit("play"),this.updatePaused(!1)},pause:function(){this.$emit("pause"),this.updatePaused(!0)},backward:function(){this.$emit("backward")},forward:function(){this.$emit("forward")},updatePaused:function(t){this.$emit("update:paused",t)}}},g=(n(36),c(p,d,[],!1,null,null,null));g.options.__file="src/components/player-control-bar.vue";var m=g.exports,v=function(){var t=this,e=t.$createElement,n=t._self._c||e;return"live"!==t.type?n("div",{staticClass:"player-time-select-bar"},[n("div",{staticClass:"calendar"},[n("span",{staticClass:"title"},[t._v("选择日期")]),t._v(" "),n("el-date-picker",{attrs:{value:t.date,clearable:!1,"picker-options":t.pickerOptions,"popper-class":"fc-player-date-picker "+t.theme,"value-format":"timestamp","suffix-icon":"el-icon-date",size:"small"},on:{input:t.handleDateChange,focus:t.handleFocus}})],1)]):t._e()};v._withStripped=!0;var y={name:"PlayerControlBar",props:{date:{type:Number,required:!0},type:{type:String,default:"live"},monthRecord:{type:Array,default:function(){return[]}},theme:{type:String,default:"light-theme"}},components:{ElDatePicker:f.DatePicker},computed:{pickerOptions:function(){var t=this;return{cellClassName:function(e){return e.getMonth()===new Date(t.date).getMonth()&&e.getFullYear()===new Date(t.date).getFullYear()&&1===t.monthRecord[e.getDate()-1]?"has-video":""}}}},methods:{handleDateChange:function(t){this.$emit("update:date",t)},handleFocus:function(){this.$emit("focus")}}},x=(n(38),c(y,v,[],!1,null,null,null));x.options.__file="src/components/player-time-select-bar.vue";var b=x.exports,_=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"progressCtnr",staticClass:"player-progress-bar"},[n("svg",{staticClass:"progress-outer",attrs:{width:"100%",viewBox:t.viewBox}},[n("g",{staticClass:"progress-inner",attrs:{fill:"none","font-size":"10","font-family":"sans-serif","text-anchor":"middle",transform:"translate(0,0)"}},[n("g",{staticClass:"ticks-container"}),t._v(" "),n("g",{staticClass:"available-container"})]),t._v(" "),n("g",[n("line",{staticClass:"domain",attrs:{"stroke-width":"2",x1:t.middle,x2:t.middle,y1:"0",y2:"50"}})]),t._v(" "),n("g",[n("rect",{staticClass:"time-rect",attrs:{rx:"light-theme"===t.theme?15:0,ry:"light-theme"===t.theme?15:0,x:t.curTimeX,y:"35"}}),t._v(" "),n("text",{staticClass:"time-title",attrs:{x:t.curTimeX+10,y:"55"}},[t._v("\n "+t._s(t.dateFormat(new Date(t.currentTime)))+"\n ")])])])])};_._withStripped=!0;var w=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},S=function(t){var e;return 1===t.length&&(e=t,t=function(t,n){return w(e(t),n)}),{left:function(e,n,i,r){for(null==i&&(i=0),null==r&&(r=e.length);i<r;){var a=i+r>>>1;t(e[a],n)<0?i=a+1:r=a}return i},right:function(e,n,i,r){for(null==i&&(i=0),null==r&&(r=e.length);i<r;){var a=i+r>>>1;t(e[a],n)>0?r=a:i=a+1}return i}}},A=S(w);A.right,A.left;var C=Array.prototype;C.slice,C.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2),Array.prototype.slice;var I={value:function(){}};function T(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t);i[t]=[]}return new k(i)}function k(t){this._=t}function M(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",i=t.indexOf(".");if(i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function D(t,e){for(var n,i=0,r=t.length;i<r;++i)if((n=t[i]).name===e)return n.value}function E(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=I,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}k.prototype=T.prototype={constructor:k,on:function(t,e){var n,i=this._,r=M(t+"",i),a=-1,o=r.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<o;)if(n=(t=r[a]).type)i[n]=E(i[n],t.name,e);else if(null==e)for(n in i)i[n]=E(i[n],t.name,null);return this}for(;++a<o;)if((n=(t=r[a]).type)&&(n=D(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new k(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,r=new Array(n),a=0;a<n;++a)r[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,n=(i=this._[t]).length;a<n;++a)i[a].value.apply(e,r)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],r=0,a=i.length;r<a;++r)i[r].value.apply(e,n)}};var L=T;function P(){}var O=function(t){return null==t?P:function(){return this.querySelector(t)}};function R(){return[]}var N=function(t){return null==t?R:function(){return this.querySelectorAll(t)}},B=function(t){return function(){return this.matches(t)}},z=function(t){return new Array(t.length)};function F(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function V(t,e,n,i,r,a){for(var o,s=0,l=e.length,c=a.length;s<c;++s)(o=e[s])?(o.__data__=a[s],i[s]=o):n[s]=new F(t,a[s]);for(;s<l;++s)(o=e[s])&&(r[s]=o)}function W(t,e,n,i,r,a,o){var s,l,c,u={},h=e.length,d=a.length,f=new Array(h);for(s=0;s<h;++s)(l=e[s])&&(f[s]=c="$"+o.call(l,l.__data__,s,e),c in u?r[s]=l:u[c]=l);for(s=0;s<d;++s)(l=u[c="$"+o.call(t,a[s],s,a)])?(i[s]=l,l.__data__=a[s],u[c]=null):n[s]=new F(t,a[s]);for(s=0;s<h;++s)(l=e[s])&&u[f[s]]===l&&(r[s]=l)}function U(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}F.prototype={constructor:F,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var H="http://www.w3.org/1999/xhtml",G={svg:"http://www.w3.org/2000/svg",xhtml:H,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},j=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),G.hasOwnProperty(e)?{space:G[e],local:t}:t};function Y(t){return function(){this.removeAttribute(t)}}function q(t){return function(){this.removeAttributeNS(t.space,t.local)}}function K(t,e){return function(){this.setAttribute(t,e)}}function X(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Z(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Q(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var J=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function $(t){return function(){this.style.removeProperty(t)}}function tt(t,e,n){return function(){this.style.setProperty(t,e,n)}}function et(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function nt(t,e){return t.style.getPropertyValue(e)||J(t).getComputedStyle(t,null).getPropertyValue(e)}function it(t){return function(){delete this[t]}}function rt(t,e){return function(){this[t]=e}}function at(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function ot(t){return t.trim().split(/^|\s+/)}function st(t){return t.classList||new lt(t)}function lt(t){this._node=t,this._names=ot(t.getAttribute("class")||"")}function ct(t,e){for(var n=st(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function ut(t,e){for(var n=st(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function ht(t){return function(){ct(this,t)}}function dt(t){return function(){ut(this,t)}}function ft(t,e){return function(){(e.apply(this,arguments)?ct:ut)(this,t)}}function pt(){this.textContent=""}function gt(t){return function(){this.textContent=t}}function mt(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function vt(){this.innerHTML=""}function yt(t){return function(){this.innerHTML=t}}function xt(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function bt(){this.nextSibling&&this.parentNode.appendChild(this)}function _t(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function wt(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===H&&e.documentElement.namespaceURI===H?e.createElement(t):e.createElementNS(n,t)}}function St(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}lt.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var At=function(t){var e=j(t);return(e.local?St:wt)(e)};function Ct(){return null}function It(){var t=this.parentNode;t&&t.removeChild(this)}function Tt(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function kt(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var Mt={},Dt=null;function Et(t,e,n){return t=Lt(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function Lt(t,e,n){return function(i){var r=Dt;Dt=i;try{t.call(this,this.__data__,e,n)}finally{Dt=r}}}function Pt(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function Ot(t){return function(){var e=this.__on;if(e){for(var n,i=0,r=-1,a=e.length;i<a;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++r]=n:this.removeEventListener(n.type,n.listener,n.capture);++r?e.length=r:delete this.__on}}}function Rt(t,e,n){var i=Mt.hasOwnProperty(t.type)?Et:Lt;return function(r,a,o){var s,l=this.__on,c=i(e,a,o);if(l)for(var u=0,h=l.length;u<h;++u)if((s=l[u]).type===t.type&&s.name===t.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=e);this.addEventListener(t.type,c,n),s={type:t.type,name:t.name,value:e,listener:c,capture:n},l?l.push(s):this.__on=[s]}}function Nt(t,e,n,i){var r=Dt;t.sourceEvent=Dt,Dt=t;try{return e.apply(n,i)}finally{Dt=r}}function Bt(t,e,n){var i=J(t),r=i.CustomEvent;"function"==typeof r?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function zt(t,e){return function(){return Bt(this,t,e)}}function Ft(t,e){return function(){return Bt(this,t,e.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Mt={mouseenter:"mouseover",mouseleave:"mouseout"}));var Vt=[null];function Wt(t,e){this._groups=t,this._parents=e}function Ut(){return new Wt([[document.documentElement]],Vt)}Wt.prototype=Ut.prototype={constructor:Wt,select:function(t){"function"!=typeof t&&(t=O(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var a,o,s=e[r],l=s.length,c=i[r]=new Array(l),u=0;u<l;++u)(a=s[u])&&(o=t.call(a,a.__data__,u,s))&&("__data__"in a&&(o.__data__=a.__data__),c[u]=o);return new Wt(i,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=N(t));for(var e=this._groups,n=e.length,i=[],r=[],a=0;a<n;++a)for(var o,s=e[a],l=s.length,c=0;c<l;++c)(o=s[c])&&(i.push(t.call(o,o.__data__,c,s)),r.push(o));return new Wt(i,r)},filter:function(t){"function"!=typeof t&&(t=B(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var a,o=e[r],s=o.length,l=i[r]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&l.push(a);return new Wt(i,this._parents)},data:function(t,e){if(!t)return p=new Array(this.size()),u=-1,this.each((function(t){p[++u]=t})),p;var n,i=e?W:V,r=this._parents,a=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var o=a.length,s=new Array(o),l=new Array(o),c=new Array(o),u=0;u<o;++u){var h=r[u],d=a[u],f=d.length,p=t.call(h,h&&h.__data__,u,r),g=p.length,m=l[u]=new Array(g),v=s[u]=new Array(g);i(h,d,m,v,c[u]=new Array(f),p,e);for(var y,x,b=0,_=0;b<g;++b)if(y=m[b]){for(b>=_&&(_=b+1);!(x=v[_])&&++_<g;);y._next=x||null}}return(s=new Wt(s,r))._enter=l,s._exit=c,s},enter:function(){return new Wt(this._enter||this._groups.map(z),this._parents)},exit:function(){return new Wt(this._exit||this._groups.map(z),this._parents)},join:function(t,e,n){var i=this.enter(),r=this,a=this.exit();return i="function"==typeof t?t(i):i.append(t+""),null!=e&&(r=e(r)),null==n?a.remove():n(a),i&&r?i.merge(r).order():r},merge:function(t){for(var e=this._groups,n=t._groups,i=e.length,r=n.length,a=Math.min(i,r),o=new Array(i),s=0;s<a;++s)for(var l,c=e[s],u=n[s],h=c.length,d=o[s]=new Array(h),f=0;f<h;++f)(l=c[f]||u[f])&&(d[f]=l);for(;s<i;++s)o[s]=e[s];return new Wt(o,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,r=t[e],a=r.length-1,o=r[a];--a>=0;)(i=r[a])&&(o&&4^i.compareDocumentPosition(o)&&o.parentNode.insertBefore(i,o),o=i);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=U);for(var n=this._groups,i=n.length,r=new Array(i),a=0;a<i;++a){for(var o,s=n[a],l=s.length,c=r[a]=new Array(l),u=0;u<l;++u)(o=s[u])&&(c[u]=o);c.sort(e)}return new Wt(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,a=i.length;r<a;++r){var o=i[r];if(o)return o}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r,a=e[n],o=0,s=a.length;o<s;++o)(r=a[o])&&t.call(r,r.__data__,o,a);return this},attr:function(t,e){var n=j(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?q:Y:"function"==typeof e?n.local?Q:Z:n.local?X:K)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?$:"function"==typeof e?et:tt)(t,e,null==n?"":n)):nt(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?it:"function"==typeof e?at:rt)(t,e)):this.node()[t]},classed:function(t,e){var n=ot(t+"");if(arguments.length<2){for(var i=st(this.node()),r=-1,a=n.length;++r<a;)if(!i.contains(n[r]))return!1;return!0}return this.each(("function"==typeof e?ft:e?ht:dt)(n,e))},text:function(t){return arguments.length?this.each(null==t?pt:("function"==typeof t?mt:gt)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?vt:("function"==typeof t?xt:yt)(t)):this.node().innerHTML},raise:function(){return this.each(bt)},lower:function(){return this.each(_t)},append:function(t){var e="function"==typeof t?t:At(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:At(t),i=null==e?Ct:"function"==typeof e?e:O(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(It)},clone:function(t){return this.select(t?kt:Tt)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,r,a=Pt(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?Rt:Ot,null==n&&(n=!1),i=0;i<o;++i)this.each(s(a[i],e,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(i=0,l=s[c];i<o;++i)if((r=a[i]).type===l.type&&r.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?Ft:zt)(t,e))}};var Ht=Ut,Gt=function(t){return"string"==typeof t?new Wt([[document.querySelector(t)]],[document.documentElement]):new Wt([[t]],Vt)};function jt(){Dt.stopImmediatePropagation()}var Yt=function(){Dt.preventDefault(),Dt.stopImmediatePropagation()},qt=function(t){var e=t.document.documentElement,n=Gt(t).on("dragstart.drag",Yt,!0);"onselectstart"in e?n.on("selectstart.drag",Yt,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")};function Kt(t,e){var n=t.document.documentElement,i=Gt(t).on("dragstart.drag",null);e&&(i.on("click.drag",Yt,!0),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var Xt=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function Zt(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function Qt(){}var Jt="\\s*([+-]?\\d+)\\s*",$t="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",te="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ee=/^#([0-9a-f]{3,8})$/,ne=new RegExp("^rgb\\("+[Jt,Jt,Jt]+"\\)$"),ie=new RegExp("^rgb\\("+[te,te,te]+"\\)$"),re=new RegExp("^rgba\\("+[Jt,Jt,Jt,$t]+"\\)$"),ae=new RegExp("^rgba\\("+[te,te,te,$t]+"\\)$"),oe=new RegExp("^hsl\\("+[$t,te,te]+"\\)$"),se=new RegExp("^hsla\\("+[$t,te,te,$t]+"\\)$"),le={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ce(){return this.rgb().formatHex()}function ue(){return this.rgb().formatRgb()}function he(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=ee.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?de(e):3===n?new me(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?fe(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?fe(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=ne.exec(t))?new me(e[1],e[2],e[3],1):(e=ie.exec(t))?new me(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=re.exec(t))?fe(e[1],e[2],e[3],e[4]):(e=ae.exec(t))?fe(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=oe.exec(t))?be(e[1],e[2]/100,e[3]/100,1):(e=se.exec(t))?be(e[1],e[2]/100,e[3]/100,e[4]):le.hasOwnProperty(t)?de(le[t]):"transparent"===t?new me(NaN,NaN,NaN,0):null}function de(t){return new me(t>>16&255,t>>8&255,255&t,1)}function fe(t,e,n,i){return i<=0&&(t=e=n=NaN),new me(t,e,n,i)}function pe(t){return t instanceof Qt||(t=he(t)),t?new me((t=t.rgb()).r,t.g,t.b,t.opacity):new me}function ge(t,e,n,i){return 1===arguments.length?pe(t):new me(t,e,n,null==i?1:i)}function me(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function ve(){return"#"+xe(this.r)+xe(this.g)+xe(this.b)}function ye(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function xe(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function be(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new we(t,e,n,i)}function _e(t){if(t instanceof we)return new we(t.h,t.s,t.l,t.opacity);if(t instanceof Qt||(t=he(t)),!t)return new we;if(t instanceof we)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),a=Math.max(e,n,i),o=NaN,s=a-r,l=(a+r)/2;return s?(o=e===a?(n-i)/s+6*(n<i):n===a?(i-e)/s+2:(e-n)/s+4,s/=l<.5?a+r:2-a-r,o*=60):s=l>0&&l<1?0:o,new we(o,s,l,t.opacity)}function we(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function Se(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Ae(t,e,n,i,r){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*i+o*r)/6}Xt(Qt,he,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:ce,formatHex:ce,formatHsl:function(){return _e(this).formatHsl()},formatRgb:ue,toString:ue}),Xt(me,ge,Zt(Qt,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new me(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new me(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ve,formatHex:ve,formatRgb:ye,toString:ye})),Xt(we,(function(t,e,n,i){return 1===arguments.length?_e(t):new we(t,e,n,null==i?1:i)}),Zt(Qt,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new we(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new we(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new me(Se(t>=240?t-240:t+120,r,i),Se(t,r,i),Se(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Ce=function(t){return function(){return t}};function Ie(t,e){return function(n){return t+n*e}}function Te(t){return 1==(t=+t)?ke:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):Ce(isNaN(e)?n:e)}}function ke(t,e){var n=e-t;return n?Ie(t,n):Ce(isNaN(t)?e:t)}var Me=function t(e){var n=Te(e);function i(t,e){var i=n((t=ge(t)).r,(e=ge(e)).r),r=n(t.g,e.g),a=n(t.b,e.b),o=ke(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=a(e),t.opacity=o(e),t+""}}return i.gamma=t,i}(1);function De(t){return function(e){var n,i,r=e.length,a=new Array(r),o=new Array(r),s=new Array(r);for(n=0;n<r;++n)i=ge(e[n]),a[n]=i.r||0,o[n]=i.g||0,s[n]=i.b||0;return a=t(a),o=t(o),s=t(s),i.opacity=1,function(t){return i.r=a(t),i.g=o(t),i.b=s(t),i+""}}}De((function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),r=t[i],a=t[i+1],o=i>0?t[i-1]:2*r-a,s=i<e-1?t[i+2]:2*a-r;return Ae((n-i/e)*e,o,r,a,s)}})),De((function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),r=t[(i+e-1)%e],a=t[i%e],o=t[(i+1)%e],s=t[(i+2)%e];return Ae((n-i/e)*e,r,a,o,s)}}));var Ee=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},Le=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Pe=new RegExp(Le.source,"g"),Oe=function(t,e){var n,i,r,a=Le.lastIndex=Pe.lastIndex=0,o=-1,s=[],l=[];for(t+="",e+="";(n=Le.exec(t))&&(i=Pe.exec(e));)(r=i.index)>a&&(r=e.slice(a,r),s[o]?s[o]+=r:s[++o]=r),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:Ee(n,i)})),a=Pe.lastIndex;return a<e.length&&(r=e.slice(a),s[o]?s[o]+=r:s[++o]=r),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,i=0;i<e;++i)s[(n=l[i]).i]=n.x(t);return s.join("")})},Re=function(){for(var t,e=Dt;t=e.sourceEvent;)e=t;return e},Ne=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,[(i=i.matrixTransform(t.getScreenCTM().inverse())).x,i.y]}var r=t.getBoundingClientRect();return[e.clientX-r.left-t.clientLeft,e.clientY-r.top-t.clientTop]},Be=function(t,e,n){arguments.length<3&&(n=e,e=Re().changedTouches);for(var i,r=0,a=e?e.length:0;r<a;++r)if((i=e[r]).identifier===n)return Ne(t,i);return null},ze=function(t){var e=Re();return e.changedTouches&&(e=e.changedTouches[0]),Ne(t,e)};function Fe(t){return(Fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Ve,We,Ue=0,He=0,Ge=0,je=0,Ye=0,qe=0,Ke="object"===("undefined"==typeof performance?"undefined":Fe(performance))&&performance.now?performance:Date,Xe="object"===("undefined"==typeof window?"undefined":Fe(window))&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Ze(){return Ye||(Xe(Qe),Ye=Ke.now()+qe)}function Qe(){Ye=0}function Je(){this._call=this._time=this._next=null}function $e(t,e,n){var i=new Je;return i.restart(t,e,n),i}function tn(){Ye=(je=Ke.now())+qe,Ue=He=0;try{!function(){Ze(),++Ue;for(var t,e=Ve;e;)(t=Ye-e._time)>=0&&e._call.call(null,t),e=e._next;--Ue}()}finally{Ue=0,function(){for(var t,e,n=Ve,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Ve=e);We=t,nn(i)}(),Ye=0}}function en(){var t=Ke.now(),e=t-je;e>1e3&&(qe-=e,je=t)}function nn(t){Ue||(He&&(He=clearTimeout(He)),t-Ye>24?(t<1/0&&(He=setTimeout(tn,t-Ke.now()-qe)),Ge&&(Ge=clearInterval(Ge))):(Ge||(je=Ke.now(),Ge=setInterval(en,1e3)),Ue=1,Xe(tn)))}Je.prototype=$e.prototype={constructor:Je,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Ze():+n)+(null==e?0:+e),this._next||We===this||(We?We._next=this:Ve=this,We=this),this._call=t,this._time=n,nn()},stop:function(){this._call&&(this._call=null,this._time=1/0,nn())}};var rn=function(t,e,n){var i=new Je;return e=null==e?0:+e,i.restart((function(n){i.stop(),t(n+e)}),e,n),i},an=L("start","end","cancel","interrupt"),on=[],sn=function(t,e,n,i,r,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var i,r=t.__transition;function a(l){var c,u,h,d;if(1!==n.state)return s();for(c in r)if((d=r[c]).name===n.name){if(3===d.state)return rn(a);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[c]):+c<e&&(d.state=6,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete r[c])}if(rn((function(){3===n.state&&(n.state=4,n.timer.restart(o,n.delay,n.time),o(l))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,i=new Array(h=n.tween.length),c=0,u=-1;c<h;++c)(d=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(i[++u]=d);i.length=u+1}}function o(e){for(var r=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(s),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(t,r);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),s())}function s(){for(var i in n.state=6,n.timer.stop(),delete r[e],r)return;delete t.__transition}r[e]=n,n.timer=$e((function(t){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}),0,n.time)}(t,n,{name:e,index:i,group:r,on:an,tween:on,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})};function ln(t,e){var n=un(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function cn(t,e){var n=un(t,e);if(n.state>3)throw new Error("too late; already running");return n}function un(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var hn,dn,fn,pn,gn=function(t,e){var n,i,r,a=t.__transition,o=!0;if(a){for(r in e=null==e?null:e+"",a)(n=a[r]).name===e?(i=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[r]):o=!1;o&&delete t.__transition}},mn=180/Math.PI,vn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},yn=function(t,e,n,i,r,a){var o,s,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(s=Math.sqrt(n*n+i*i))&&(n/=s,i/=s,l/=s),t*i<e*n&&(t=-t,e=-e,l=-l,o=-o),{translateX:r,translateY:a,rotate:Math.atan2(e,t)*mn,skewX:Math.atan(l)*mn,scaleX:o,scaleY:s}};function xn(t,e,n,i){function r(t){return t.length?t.pop()+" ":""}return function(a,o){var s=[],l=[];return a=t(a),o=t(o),function(t,i,r,a,o,s){if(t!==r||i!==a){var l=o.push("translate(",null,e,null,n);s.push({i:l-4,x:Ee(t,r)},{i:l-2,x:Ee(i,a)})}else(r||a)&&o.push("translate("+r+e+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,s,l),function(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(r(n)+"rotate(",null,i)-2,x:Ee(t,e)})):e&&n.push(r(n)+"rotate("+e+i)}(a.rotate,o.rotate,s,l),function(t,e,n,a){t!==e?a.push({i:n.push(r(n)+"skewX(",null,i)-2,x:Ee(t,e)}):e&&n.push(r(n)+"skewX("+e+i)}(a.skewX,o.skewX,s,l),function(t,e,n,i,a,o){if(t!==n||e!==i){var s=a.push(r(a)+"scale(",null,",",null,")");o.push({i:s-4,x:Ee(t,n)},{i:s-2,x:Ee(e,i)})}else 1===n&&1===i||a.push(r(a)+"scale("+n+","+i+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,l),a=o=null,function(t){for(var e,n=-1,i=l.length;++n<i;)s[(e=l[n]).i]=e.x(t);return s.join("")}}}var bn=xn((function(t){return"none"===t?vn:(hn||(hn=document.createElement("DIV"),dn=document.documentElement,fn=document.defaultView),hn.style.transform=t,t=fn.getComputedStyle(dn.appendChild(hn),null).getPropertyValue("transform"),dn.removeChild(hn),t=t.slice(7,-1).split(","),yn(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),_n=xn((function(t){return null==t?vn:(pn||(pn=document.createElementNS("http://www.w3.org/2000/svg","g")),pn.setAttribute("transform",t),(t=pn.transform.baseVal.consolidate())?(t=t.matrix,yn(t.a,t.b,t.c,t.d,t.e,t.f)):vn)}),", ",")",")");function wn(t,e){var n,i;return function(){var r=cn(this,t),a=r.tween;if(a!==n)for(var o=0,s=(i=n=a).length;o<s;++o)if(i[o].name===e){(i=i.slice()).splice(o,1);break}r.tween=i}}function Sn(t,e,n){var i,r;if("function"!=typeof n)throw new Error;return function(){var a=cn(this,t),o=a.tween;if(o!==i){r=(i=o).slice();for(var s={name:e,value:n},l=0,c=r.length;l<c;++l)if(r[l].name===e){r[l]=s;break}l===c&&r.push(s)}a.tween=r}}function An(t,e,n){var i=t._id;return t.each((function(){var t=cn(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return un(t,i).value[e]}}var Cn=function(t,e){var n;return("number"==typeof e?Ee:e instanceof he?Me:(n=he(e))?(e=n,Me):Oe)(t,e)};function In(t){return function(){this.removeAttribute(t)}}function Tn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function kn(t,e,n){var i,r,a=n+"";return function(){var o=this.getAttribute(t);return o===a?null:o===i?r:r=e(i=o,n)}}function Mn(t,e,n){var i,r,a=n+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===i?r:r=e(i=o,n)}}function Dn(t,e,n){var i,r,a;return function(){var o,s,l=n(this);if(null!=l)return(o=this.getAttribute(t))===(s=l+"")?null:o===i&&s===r?a:(r=s,a=e(i=o,l));this.removeAttribute(t)}}function En(t,e,n){var i,r,a;return function(){var o,s,l=n(this);if(null!=l)return(o=this.getAttributeNS(t.space,t.local))===(s=l+"")?null:o===i&&s===r?a:(r=s,a=e(i=o,l));this.removeAttributeNS(t.space,t.local)}}function Ln(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Pn(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function On(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&Pn(t,r)),n}return r._value=e,r}function Rn(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&Ln(t,r)),n}return r._value=e,r}function Nn(t,e){return function(){ln(this,t).delay=+e.apply(this,arguments)}}function Bn(t,e){return e=+e,function(){ln(this,t).delay=e}}function zn(t,e){return function(){cn(this,t).duration=+e.apply(this,arguments)}}function Fn(t,e){return e=+e,function(){cn(this,t).duration=e}}function Vn(t,e){if("function"!=typeof e)throw new Error;return function(){cn(this,t).ease=e}}function Wn(t,e,n){var i,r,a=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?ln:cn;return function(){var o=a(this,t),s=o.on;s!==i&&(r=(i=s).copy()).on(e,n),o.on=r}}var Un=Ht.prototype.constructor;function Hn(t){return function(){this.style.removeProperty(t)}}function Gn(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function jn(t,e,n){var i,r;function a(){var a=e.apply(this,arguments);return a!==r&&(i=(r=a)&&Gn(t,a,n)),i}return a._value=e,a}function Yn(t){return function(e){this.textContent=t.call(this,e)}}function qn(t){var e,n;function i(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&Yn(i)),e}return i._value=t,i}var Kn=0;function Xn(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function Zn(){return++Kn}var Qn=Ht.prototype;Xn.prototype=function(t){return Ht().transition(t)}.prototype={constructor:Xn,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=O(t));for(var i=this._groups,r=i.length,a=new Array(r),o=0;o<r;++o)for(var s,l,c=i[o],u=c.length,h=a[o]=new Array(u),d=0;d<u;++d)(s=c[d])&&(l=t.call(s,s.__data__,d,c))&&("__data__"in s&&(l.__data__=s.__data__),h[d]=l,sn(h[d],e,n,d,h,un(s,n)));return new Xn(a,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=N(t));for(var i=this._groups,r=i.length,a=[],o=[],s=0;s<r;++s)for(var l,c=i[s],u=c.length,h=0;h<u;++h)if(l=c[h]){for(var d,f=t.call(l,l.__data__,h,c),p=un(l,n),g=0,m=f.length;g<m;++g)(d=f[g])&&sn(d,e,n,g,f,p);a.push(f),o.push(l)}return new Xn(a,o,e,n)},filter:function(t){"function"!=typeof t&&(t=B(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var a,o=e[r],s=o.length,l=i[r]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&l.push(a);return new Xn(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,r=n.length,a=Math.min(i,r),o=new Array(i),s=0;s<a;++s)for(var l,c=e[s],u=n[s],h=c.length,d=o[s]=new Array(h),f=0;f<h;++f)(l=c[f]||u[f])&&(d[f]=l);for(;s<i;++s)o[s]=e[s];return new Xn(o,this._parents,this._name,this._id)},selection:function(){return new Un(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=Zn(),i=this._groups,r=i.length,a=0;a<r;++a)for(var o,s=i[a],l=s.length,c=0;c<l;++c)if(o=s[c]){var u=un(o,e);sn(o,t,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Xn(i,this._parents,t,n)},call:Qn.call,nodes:Qn.nodes,node:Qn.node,size:Qn.size,empty:Qn.empty,each:Qn.each,on:function(t,e){var n=this._id;return arguments.length<2?un(this.node(),n).on.on(t):this.each(Wn(n,t,e))},attr:function(t,e){var n=j(t),i="transform"===n?_n:Cn;return this.attrTween(t,"function"==typeof e?(n.local?En:Dn)(n,i,An(this,"attr."+t,e)):null==e?(n.local?Tn:In)(n):(n.local?Mn:kn)(n,i,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var i=j(t);return this.tween(n,(i.local?On:Rn)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?bn:Cn;return null==e?this.styleTween(t,function(t,e){var n,i,r;return function(){var a=nt(this,t),o=(this.style.removeProperty(t),nt(this,t));return a===o?null:a===n&&o===i?r:r=e(n=a,i=o)}}(t,i)).on("end.style."+t,Hn(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,r,a;return function(){var o=nt(this,t),s=n(this),l=s+"";return null==s&&(this.style.removeProperty(t),l=s=nt(this,t)),o===l?null:o===i&&l===r?a:(r=l,a=e(i=o,s))}}(t,i,An(this,"style."+t,e))).each(function(t,e){var n,i,r,a,o="style."+e,s="end."+o;return function(){var l=cn(this,t),c=l.on,u=null==l.value[o]?a||(a=Hn(e)):void 0;c===n&&r===u||(i=(n=c).copy()).on(s,r=u),l.on=i}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,r,a=n+"";return function(){var o=nt(this,t);return o===a?null:o===i?r:r=e(i=o,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;return this.tween(i,jn(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(An(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,qn(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i,r=un(this.node(),n).tween,a=0,o=r.length;a<o;++a)if((i=r[a]).name===t)return i.value;return null}return this.each((null==e?wn:Sn)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Nn:Bn)(e,t)):un(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?zn:Fn)(e,t)):un(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Vn(e,t)):un(this.node(),e).ease},end:function(){var t,e,n=this,i=n._id,r=n.size();return new Promise((function(a,o){var s={value:o},l={value:function(){0==--r&&a()}};n.each((function(){var n=cn(this,i),r=n.on;r!==t&&((e=(t=r).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(l)),n.on=e}))}))}};var Jn={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function $n(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return Jn.time=Ze(),Jn;return n}function ti(t){return{type:t}}Ht.prototype.interrupt=function(t){return this.each((function(){gn(this,t)}))},Ht.prototype.transition=function(t){var e,n;t instanceof Xn?(e=t._id,t=t._name):(e=Zn(),(n=Jn).time=Ze(),t=null==t?null:t+"");for(var i=this._groups,r=i.length,a=0;a<r;++a)for(var o,s=i[a],l=s.length,c=0;c<l;++c)(o=s[c])&&sn(o,t,e,c,s,n||$n(o,e));return new Xn(i,this._parents,t,e)},["w","e"].map(ti),["n","s"].map(ti),["n","w","e","s","nw","ne","sw","se"].map(ti),Math.cos,Math.sin,Math.PI,Math.max,Array.prototype.slice;var ei=Math.PI,ni=2*ei,ii=ni-1e-6;function ri(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ai(){return new ri}function oi(){}function si(t,e){var n=new oi;if(t instanceof oi)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var i,r=-1,a=t.length;if(null==e)for(;++r<a;)n.set(r,t[r]);else for(;++r<a;)n.set(e(i=t[r],r,t),i)}else if(t)for(var o in t)n.set(o,t[o]);return n}ri.prototype=ai.prototype={constructor:ri,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,r,a){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+a)},arcTo:function(t,e,n,i,r){t=+t,e=+e,n=+n,i=+i,r=+r;var a=this._x1,o=this._y1,s=n-t,l=i-e,c=a-t,u=o-e,h=c*c+u*u;if(r<0)throw new Error("negative radius: "+r);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>1e-6)if(Math.abs(u*s-l*c)>1e-6&&r){var d=n-a,f=i-o,p=s*s+l*l,g=d*d+f*f,m=Math.sqrt(p),v=Math.sqrt(h),y=r*Math.tan((ei-Math.acos((p+h-g)/(2*m*v)))/2),x=y/v,b=y/m;Math.abs(x-1)>1e-6&&(this._+="L"+(t+x*c)+","+(e+x*u)),this._+="A"+r+","+r+",0,0,"+ +(u*d>c*f)+","+(this._x1=t+b*s)+","+(this._y1=e+b*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,i,r,a){t=+t,e=+e,a=!!a;var o=(n=+n)*Math.cos(i),s=n*Math.sin(i),l=t+o,c=e+s,u=1^a,h=a?i-r:r-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-c)>1e-6)&&(this._+="L"+l+","+c),n&&(h<0&&(h=h%ni+ni),h>ii?this._+="A"+n+","+n+",0,1,"+u+","+(t-o)+","+(e-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):h>1e-6&&(this._+="A"+n+","+n+",0,"+ +(h>=ei)+","+u+","+(this._x1=t+n*Math.cos(r))+","+(this._y1=e+n*Math.sin(r))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}},oi.prototype=si.prototype={constructor:oi,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,e){return this["$"+t]=e,this},remove:function(t){var e="$"+t;return e in this&&delete this[e]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)"$"===e[0]&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)"$"===e[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var e in this)"$"===e[0]&&t(this[e],e.slice(1),this)}};var li=si;function ci(){}var ui=li.prototype;function hi(t,e){var n=new ci;if(t instanceof ci)t.each((function(t){n.add(t)}));else if(t){var i=-1,r=t.length;if(null==e)for(;++i<r;)n.add(t[i]);else for(;++i<r;)n.add(e(t[i],i,t))}return n}ci.prototype=hi.prototype={constructor:ci,has:ui.has,add:function(t){return this["$"+(t+="")]=t,this},remove:ui.remove,clear:ui.clear,values:ui.keys,size:ui.size,empty:ui.empty,each:ui.each},Array.prototype.slice;var di=function(t){return function(){return t}};function fi(t,e,n,i,r,a,o,s,l,c){this.target=t,this.type=e,this.subject=n,this.identifier=i,this.active=r,this.x=a,this.y=o,this.dx=s,this.dy=l,this._=c}function pi(){return!Dt.ctrlKey&&!Dt.button}function gi(){return this.parentNode}function mi(t){return null==t?{x:Dt.x,y:Dt.y}:t}function vi(){return navigator.maxTouchPoints||"ontouchstart"in this}function yi(t,e,n,i){if(isNaN(e)||isNaN(n))return t;var r,a,o,s,l,c,u,h,d,f=t._root,p={data:i},g=t._x0,m=t._y0,v=t._x1,y=t._y1;if(!f)return t._root=p,t;for(;f.length;)if((c=e>=(a=(g+v)/2))?g=a:v=a,(u=n>=(o=(m+y)/2))?m=o:y=o,r=f,!(f=f[h=u<<1|c]))return r[h]=p,t;if(s=+t._x.call(null,f.data),l=+t._y.call(null,f.data),e===s&&n===l)return p.next=f,r?r[h]=p:t._root=p,t;do{r=r?r[h]=new Array(4):t._root=new Array(4),(c=e>=(a=(g+v)/2))?g=a:v=a,(u=n>=(o=(m+y)/2))?m=o:y=o}while((h=u<<1|c)==(d=(l>=o)<<1|s>=a));return r[d]=f,r[h]=p,t}fi.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var xi=function(t,e,n,i,r){this.node=t,this.x0=e,this.y0=n,this.x1=i,this.y1=r};function bi(t){return t[0]}function _i(t){return t[1]}function wi(t,e,n){var i=new Si(null==e?bi:e,null==n?_i:n,NaN,NaN,NaN,NaN);return null==t?i:i.addAll(t)}function Si(t,e,n,i,r,a){this._x=t,this._y=e,this._x0=n,this._y0=i,this._x1=r,this._y1=a,this._root=void 0}function Ai(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Ci=wi.prototype=Si.prototype;Ci.copy=function(){var t,e,n=new Si(this._x,this._y,this._x0,this._y0,this._x1,this._y1),i=this._root;if(!i)return n;if(!i.length)return n._root=Ai(i),n;for(t=[{source:i,target:n._root=new Array(4)}];i=t.pop();)for(var r=0;r<4;++r)(e=i.source[r])&&(e.length?t.push({source:e,target:i.target[r]=new Array(4)}):i.target[r]=Ai(e));return n},Ci.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return yi(this.cover(e,n),e,n,t)},Ci.addAll=function(t){var e,n,i,r,a=t.length,o=new Array(a),s=new Array(a),l=1/0,c=1/0,u=-1/0,h=-1/0;for(n=0;n<a;++n)isNaN(i=+this._x.call(null,e=t[n]))||isNaN(r=+this._y.call(null,e))||(o[n]=i,s[n]=r,i<l&&(l=i),i>u&&(u=i),r<c&&(c=r),r>h&&(h=r));if(l>u||c>h)return this;for(this.cover(l,c).cover(u,h),n=0;n<a;++n)yi(this,o[n],s[n],t[n]);return this},Ci.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,i=this._y0,r=this._x1,a=this._y1;if(isNaN(n))r=(n=Math.floor(t))+1,a=(i=Math.floor(e))+1;else{for(var o,s,l=r-n,c=this._root;n>t||t>=r||i>e||e>=a;)switch(s=(e<i)<<1|t<n,(o=new Array(4))[s]=c,c=o,l*=2,s){case 0:r=n+l,a=i+l;break;case 1:n=r-l,a=i+l;break;case 2:r=n+l,i=a-l;break;case 3:n=r-l,i=a-l}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=i,this._x1=r,this._y1=a,this},Ci.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},Ci.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Ci.find=function(t,e,n){var i,r,a,o,s,l,c,u=this._x0,h=this._y0,d=this._x1,f=this._y1,p=[],g=this._root;for(g&&p.push(new xi(g,u,h,d,f)),null==n?n=1/0:(u=t-n,h=e-n,d=t+n,f=e+n,n*=n);l=p.pop();)if(!(!(g=l.node)||(r=l.x0)>d||(a=l.y0)>f||(o=l.x1)<u||(s=l.y1)<h))if(g.length){var m=(r+o)/2,v=(a+s)/2;p.push(new xi(g[3],m,v,o,s),new xi(g[2],r,v,m,s),new xi(g[1],m,a,o,v),new xi(g[0],r,a,m,v)),(c=(e>=v)<<1|t>=m)&&(l=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=l)}else{var y=t-+this._x.call(null,g.data),x=e-+this._y.call(null,g.data),b=y*y+x*x;if(b<n){var _=Math.sqrt(n=b);u=t-_,h=e-_,d=t+_,f=e+_,i=g.data}}return i},Ci.remove=function(t){if(isNaN(a=+this._x.call(null,t))||isNaN(o=+this._y.call(null,t)))return this;var e,n,i,r,a,o,s,l,c,u,h,d,f=this._root,p=this._x0,g=this._y0,m=this._x1,v=this._y1;if(!f)return this;if(f.length)for(;;){if((c=a>=(s=(p+m)/2))?p=s:m=s,(u=o>=(l=(g+v)/2))?g=l:v=l,e=f,!(f=f[h=u<<1|c]))return this;if(!f.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,d=h)}for(;f.data!==t;)if(i=f,!(f=f.next))return this;return(r=f.next)&&delete f.next,i?(r?i.next=r:delete i.next,this):e?(r?e[h]=r:delete e[h],(f=e[0]||e[1]||e[2]||e[3])&&f===(e[3]||e[2]||e[1]||e[0])&&!f.length&&(n?n[d]=f:this._root=f),this):(this._root=r,this)},Ci.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},Ci.root=function(){return this._root},Ci.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},Ci.visit=function(t){var e,n,i,r,a,o,s=[],l=this._root;for(l&&s.push(new xi(l,this._x0,this._y0,this._x1,this._y1));e=s.pop();)if(!t(l=e.node,i=e.x0,r=e.y0,a=e.x1,o=e.y1)&&l.length){var c=(i+a)/2,u=(r+o)/2;(n=l[3])&&s.push(new xi(n,c,u,a,o)),(n=l[2])&&s.push(new xi(n,i,u,c,o)),(n=l[1])&&s.push(new xi(n,c,r,a,u)),(n=l[0])&&s.push(new xi(n,i,r,c,u))}return this},Ci.visitAfter=function(t){var e,n=[],i=[];for(this._root&&n.push(new xi(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var r=e.node;if(r.length){var a,o=e.x0,s=e.y0,l=e.x1,c=e.y1,u=(o+l)/2,h=(s+c)/2;(a=r[0])&&n.push(new xi(a,o,s,u,h)),(a=r[1])&&n.push(new xi(a,u,s,l,h)),(a=r[2])&&n.push(new xi(a,o,h,u,c)),(a=r[3])&&n.push(new xi(a,u,h,l,c))}i.push(e)}for(;e=i.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},Ci.x=function(t){return arguments.length?(this._x=t,this):this._x},Ci.y=function(t){return arguments.length?(this._y=t,this):this._y},Math.PI,Math.sqrt(5);var Ii=function(){return Math.random()},Ti=(function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,1===arguments.length?(n=t,t=0):n-=t,function(){return e()*n+t}}return n.source=t,n}(Ii),function t(e){function n(t,n){var i,r;return t=null==t?0:+t,n=null==n?1:+n,function(){var a;if(null!=i)a=i,i=null;else do{i=2*e()-1,a=2*e()-1,r=i*i+a*a}while(!r||r>1);return t+n*a*Math.sqrt(-2*Math.log(r)/r)}}return n.source=t,n}(Ii)),ki=(function t(e){function n(){var t=Ti.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return n.source=t,n}(Ii),function t(e){function n(t){return function(){for(var n=0,i=0;i<t;++i)n+=e();return n}}return n.source=t,n}(Ii));(function t(e){function n(t){var n=ki.source(e)(t);return function(){return n()/t}}return n.source=t,n})(Ii),function t(e){function n(t){return function(){return-Math.log(1-e())/t}}return n.source=t,n}(Ii);var Mi=Array.prototype;Mi.map,Mi.slice;var Di=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ei(t){if(!(e=Di.exec(t)))throw new Error("invalid format: "+t);var e;return new Li({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Li(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}Ei.prototype=Li.prototype,Li.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Pi,Oi,Ri=function(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]},Ni=function(t){return(t=Ri(Math.abs(t)))?t[1]:NaN},Bi=function(t,e){var n=Ri(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")},zi={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Bi(100*t,e)},r:Bi,s:function(t,e){var n=Ri(t,e);if(!n)return t+"";var i=n[0],r=n[1],a=r-(Pi=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,o=i.length;return a===o?i:a>o?i+new Array(a-o+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+Ri(t,Math.max(0,e+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Fi=function(t){return t},Vi=Array.prototype.map,Wi=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];Oi=function(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?Fi:(e=Vi.call(t.grouping,Number),n=t.thousands+"",function(t,i){for(var r=t.length,a=[],o=0,s=e[0],l=0;r>0&&s>0&&(l+s+1>i&&(s=Math.max(1,i-l)),a.push(t.substring(r-=s,r+s)),!((l+=s+1)>i));)s=e[o=(o+1)%e.length];return a.reverse().join(n)}),r=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?Fi:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Vi.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"-":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=Ei(t)).fill,n=t.align,h=t.sign,d=t.symbol,f=t.zero,p=t.width,g=t.comma,m=t.precision,v=t.trim,y=t.type;"n"===y?(g=!0,y="g"):zi[y]||(void 0===m&&(m=12),v=!0,y="g"),(f||"0"===e&&"="===n)&&(f=!0,e="0",n="=");var x="$"===d?r:"#"===d&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",b="$"===d?a:/[%p]/.test(y)?l:"",_=zi[y],w=/[defgprs%]/.test(y);function S(t){var r,a,l,d=x,S=b;if("c"===y)S=_(t)+S,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?u:_(Math.abs(t),m),v&&(t=function(t){t:for(var e,n=t.length,i=1,r=-1;i<n;++i)switch(t[i]){case".":r=e=i;break;case"0":0===r&&(r=i),e=i;break;default:if(!+t[i])break t;r>0&&(r=0)}return r>0?t.slice(0,r)+t.slice(e+1):t}(t)),A&&0==+t&&"+"!==h&&(A=!1),d=(A?"("===h?h:c:"-"===h||"("===h?"":h)+d,S=("s"===y?Wi[8+Pi/3]:"")+S+(A&&"("===h?")":""),w)for(r=-1,a=t.length;++r<a;)if(48>(l=t.charCodeAt(r))||l>57){S=(46===l?o+t.slice(r+1):t.slice(r))+S,t=t.slice(0,r);break}}g&&!f&&(t=i(t,1/0));var C=d.length+t.length+S.length,I=C<p?new Array(p-C+1).join(e):"";switch(g&&f&&(t=i(I+t,I.length?p-S.length:1/0),I=""),n){case"<":t=d+t+S+I;break;case"=":t=d+I+t+S;break;case"^":t=I.slice(0,C=I.length>>1)+d+t+S+I.slice(C);break;default:t=I+d+t+S}return s(t)}return m=void 0===m?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return t+""},S}return{format:h,formatPrefix:function(t,e){var n=h(((t=Ei(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(Ni(e)/3))),r=Math.pow(10,-i),a=Wi[8+i/3];return function(t){return n(r*t)+a}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Oi.format,Oi.formatPrefix;var Ui=new Date,Hi=new Date;function Gi(t,e,n,i){function r(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return r.floor=function(e){return t(e=new Date(+e)),e},r.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},r.round=function(t){var e=r(t),n=r.ceil(t);return t-e<n-t?e:n},r.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},r.range=function(n,i,a){var o,s=[];if(n=r.ceil(n),a=null==a?1:Math.floor(a),!(n<i&&a>0))return s;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o<n&&n<i);return s},r.filter=function(n){return Gi((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,i){if(t>=t)if(i<0)for(;++i<=0;)for(;e(t,-1),!n(t););else for(;--i>=0;)for(;e(t,1),!n(t););}))},n&&(r.count=function(e,i){return Ui.setTime(+e),Hi.setTime(+i),t(Ui),t(Hi),Math.floor(n(Ui,Hi))},r.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(i?function(e){return i(e)%t==0}:function(e){return r.count(0,e)%t==0}):r:null}),r}var ji=Gi((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));ji.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Gi((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var Yi=ji,qi=(ji.range,Gi((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})));function Ki(t){return Gi((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}qi.range;var Xi=Ki(0),Zi=Ki(1),Qi=Ki(2),Ji=Ki(3),$i=Ki(4),tr=Ki(5),er=Ki(6),nr=(Xi.range,Zi.range,Qi.range,Ji.range,$i.range,tr.range,er.range,Gi((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1}))),ir=nr,rr=(nr.range,Gi((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getHours()}))),ar=(rr.range,Gi((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getMinutes()}))),or=(ar.range,Gi((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+1e3*e)}),(function(t,e){return(e-t)/1e3}),(function(t){return t.getUTCSeconds()}))),sr=(or.range,Gi((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t})));function lr(t){return Gi((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/6048e5}))}sr.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Gi((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):sr:null},sr.range;var cr=lr(0),ur=lr(1),hr=lr(2),dr=lr(3),fr=lr(4),pr=lr(5),gr=lr(6),mr=(cr.range,ur.range,hr.range,dr.range,fr.range,pr.range,gr.range,Gi((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1}))),vr=mr,yr=(mr.range,Gi((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));yr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Gi((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var xr=yr;function br(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function _r(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function wr(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}yr.range;var Sr,Ar={"-":"",_:" ",0:"0"},Cr=/^\s*\d+/,Ir=/^%/,Tr=/[\\^$*+?|[\]().{}]/g;function kr(t,e,n){var i=t<0?"-":"",r=(i?-t:t)+"",a=r.length;return i+(a<n?new Array(n-a+1).join(e)+r:r)}function Mr(t){return t.replace(Tr,"\\$&")}function Dr(t){return new RegExp("^(?:"+t.map(Mr).join("|")+")","i")}function Er(t){for(var e={},n=-1,i=t.length;++n<i;)e[t[n].toLowerCase()]=n;return e}function Lr(t,e,n){var i=Cr.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function Pr(t,e,n){var i=Cr.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function Or(t,e,n){var i=Cr.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function Rr(t,e,n){var i=Cr.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function Nr(t,e,n){var i=Cr.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function Br(t,e,n){var i=Cr.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function zr(t,e,n){var i=Cr.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function Fr(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function Vr(t,e,n){var i=Cr.exec(e.slice(n,n+1));return i?(t.q=3*i[0]-3,n+i[0].length):-1}function Wr(t,e,n){var i=Cr.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function Ur(t,e,n){var i=Cr.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function Hr(t,e,n){var i=Cr.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function Gr(t,e,n){var i=Cr.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function jr(t,e,n){var i=Cr.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function Yr(t,e,n){var i=Cr.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function qr(t,e,n){var i=Cr.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function Kr(t,e,n){var i=Cr.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function Xr(t,e,n){var i=Ir.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function Zr(t,e,n){var i=Cr.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function Qr(t,e,n){var i=Cr.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function Jr(t,e){return kr(t.getDate(),e,2)}function $r(t,e){return kr(t.getHours(),e,2)}function ta(t,e){return kr(t.getHours()%12||12,e,2)}function ea(t,e){return kr(1+ir.count(Yi(t),t),e,3)}function na(t,e){return kr(t.getMilliseconds(),e,3)}function ia(t,e){return na(t,e)+"000"}function ra(t,e){return kr(t.getMonth()+1,e,2)}function aa(t,e){return kr(t.getMinutes(),e,2)}function oa(t,e){return kr(t.getSeconds(),e,2)}function sa(t){var e=t.getDay();return 0===e?7:e}function la(t,e){return kr(Xi.count(Yi(t)-1,t),e,2)}function ca(t,e){var n=t.getDay();return t=n>=4||0===n?$i(t):$i.ceil(t),kr($i.count(Yi(t),t)+(4===Yi(t).getDay()),e,2)}function ua(t){return t.getDay()}function ha(t,e){return kr(Zi.count(Yi(t)-1,t),e,2)}function da(t,e){return kr(t.getFullYear()%100,e,2)}function fa(t,e){return kr(t.getFullYear()%1e4,e,4)}function pa(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+kr(e/60|0,"0",2)+kr(e%60,"0",2)}function ga(t,e){return kr(t.getUTCDate(),e,2)}function ma(t,e){return kr(t.getUTCHours(),e,2)}function va(t,e){return kr(t.getUTCHours()%12||12,e,2)}function ya(t,e){return kr(1+vr.count(xr(t),t),e,3)}function xa(t,e){return kr(t.getUTCMilliseconds(),e,3)}function ba(t,e){return xa(t,e)+"000"}function _a(t,e){return kr(t.getUTCMonth()+1,e,2)}function wa(t,e){return kr(t.getUTCMinutes(),e,2)}function Sa(t,e){return kr(t.getUTCSeconds(),e,2)}function Aa(t){var e=t.getUTCDay();return 0===e?7:e}function Ca(t,e){return kr(cr.count(xr(t)-1,t),e,2)}function Ia(t,e){var n=t.getUTCDay();return t=n>=4||0===n?fr(t):fr.ceil(t),kr(fr.count(xr(t),t)+(4===xr(t).getUTCDay()),e,2)}function Ta(t){return t.getUTCDay()}function ka(t,e){return kr(ur.count(xr(t)-1,t),e,2)}function Ma(t,e){return kr(t.getUTCFullYear()%100,e,2)}function Da(t,e){return kr(t.getUTCFullYear()%1e4,e,4)}function Ea(){return"+0000"}function La(){return"%"}function Pa(t){return+t}function Oa(t){return Math.floor(+t/1e3)}!function(t){Sr=function(t){var e=t.dateTime,n=t.date,i=t.time,r=t.periods,a=t.days,o=t.shortDays,s=t.months,l=t.shortMonths,c=Dr(r),u=Er(r),h=Dr(a),d=Er(a),f=Dr(o),p=Er(o),g=Dr(s),m=Er(s),v=Dr(l),y=Er(l),x={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Jr,e:Jr,f:ia,H:$r,I:ta,j:ea,L:na,m:ra,M:aa,p:function(t){return r[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Pa,s:Oa,S:oa,u:sa,U:la,V:ca,w:ua,W:ha,x:null,X:null,y:da,Y:fa,Z:pa,"%":La},b={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:ga,e:ga,f:ba,H:ma,I:va,j:ya,L:xa,m:_a,M:wa,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Pa,s:Oa,S:Sa,u:Aa,U:Ca,V:Ia,w:Ta,W:ka,x:null,X:null,y:Ma,Y:Da,Z:Ea,"%":La},_={a:function(t,e,n){var i=f.exec(e.slice(n));return i?(t.w=p[i[0].toLowerCase()],n+i[0].length):-1},A:function(t,e,n){var i=h.exec(e.slice(n));return i?(t.w=d[i[0].toLowerCase()],n+i[0].length):-1},b:function(t,e,n){var i=v.exec(e.slice(n));return i?(t.m=y[i[0].toLowerCase()],n+i[0].length):-1},B:function(t,e,n){var i=g.exec(e.slice(n));return i?(t.m=m[i[0].toLowerCase()],n+i[0].length):-1},c:function(t,n,i){return A(t,e,n,i)},d:Ur,e:Ur,f:Kr,H:Gr,I:Gr,j:Hr,L:qr,m:Wr,M:jr,p:function(t,e,n){var i=c.exec(e.slice(n));return i?(t.p=u[i[0].toLowerCase()],n+i[0].length):-1},q:Vr,Q:Zr,s:Qr,S:Yr,u:Pr,U:Or,V:Rr,w:Lr,W:Nr,x:function(t,e,i){return A(t,n,e,i)},X:function(t,e,n){return A(t,i,e,n)},y:zr,Y:Br,Z:Fr,"%":Xr};function w(t,e){return function(n){var i,r,a,o=[],s=-1,l=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===t.charCodeAt(s)&&(o.push(t.slice(l,s)),null!=(r=Ar[i=t.charAt(++s)])?i=t.charAt(++s):r="e"===i?" ":"0",(a=e[i])&&(i=a(n,r)),o.push(i),l=s+1);return o.push(t.slice(l,s)),o.join("")}}function S(t,e){return function(n){var i,r,a=wr(1900,void 0,1);if(A(a,t,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(e&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(r=(i=_r(wr(a.y,0,1))).getUTCDay(),i=r>4||0===r?ur.ceil(i):ur(i),i=vr.offset(i,7*(a.V-1)),a.y=i.getUTCFullYear(),a.m=i.getUTCMonth(),a.d=i.getUTCDate()+(a.w+6)%7):(r=(i=br(wr(a.y,0,1))).getDay(),i=r>4||0===r?Zi.ceil(i):Zi(i),i=ir.offset(i,7*(a.V-1)),a.y=i.getFullYear(),a.m=i.getMonth(),a.d=i.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),r="Z"in a?_r(wr(a.y,0,1)).getUTCDay():br(wr(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(r+5)%7:a.w+7*a.U-(r+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,_r(a)):br(a)}}function A(t,e,n,i){for(var r,a,o=0,s=e.length,l=n.length;o<s;){if(i>=l)return-1;if(37===(r=e.charCodeAt(o++))){if(r=e.charAt(o++),!(a=_[r in Ar?e.charAt(o++):r])||(i=a(t,n,i))<0)return-1}else if(r!=n.charCodeAt(i++))return-1}return i}return x.x=w(n,x),x.X=w(i,x),x.c=w(e,x),b.x=w(n,b),b.X=w(i,b),b.c=w(e,b),{format:function(t){var e=w(t+="",x);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t+="",!0);return e.toString=function(){return t},e}}}(t),Sr.format,Sr.parse,Sr.utcFormat,Sr.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Ra=Gi((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),Na=(Ra.range,Gi((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getUTCHours()}))),Ba=(Na.range,Gi((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getUTCMinutes()})));function za(){this._=null}function Fa(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Va(t,e){var n=e,i=e.R,r=n.U;r?r.L===n?r.L=i:r.R=i:t._=i,i.U=r,n.U=i,n.R=i.L,n.R&&(n.R.U=n),i.L=n}function Wa(t,e){var n=e,i=e.L,r=n.U;r?r.L===n?r.L=i:r.R=i:t._=i,i.U=r,n.U=i,n.L=i.R,n.L&&(n.L.U=n),i.R=n}function Ua(t){for(;t.L;)t=t.L;return t}Ba.range,za.prototype={constructor:za,insert:function(t,e){var n,i,r;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=Ua(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(i=n.U).L?(r=i.R)&&r.C?(n.C=r.C=!1,i.C=!0,t=i):(t===n.R&&(Va(this,n),n=(t=n).U),n.C=!1,i.C=!0,Wa(this,i)):(r=i.L)&&r.C?(n.C=r.C=!1,i.C=!0,t=i):(t===n.L&&(Wa(this,n),n=(t=n).U),n.C=!1,i.C=!0,Va(this,i)),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,i,r=t.U,a=t.L,o=t.R;if(n=a?o?Ua(o):a:o,r?r.L===t?r.L=n:r.R=n:this._=n,a&&o?(i=n.C,n.C=t.C,n.L=a,a.U=n,n!==o?(r=n.U,n.U=t.U,t=n.R,r.L=t,n.R=o,o.U=n):(n.U=r,r=n,t=n.R)):(i=t.C,t=n),t&&(t.U=r),!i)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===r.L){if((e=r.R).C&&(e.C=!1,r.C=!0,Va(this,r),e=r.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,Wa(this,e),e=r.R),e.C=r.C,r.C=e.R.C=!1,Va(this,r),t=this._;break}}else if((e=r.L).C&&(e.C=!1,r.C=!0,Wa(this,r),e=r.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,Va(this,e),e=r.L),e.C=r.C,r.C=e.L.C=!1,Wa(this,r),t=this._;break}e.C=!0,t=r,r=r.U}while(!t.C);t&&(t.C=!1)}}};var Ha=za;function Ga(t,e,n,i){var r=[null,null],a=go.push(r)-1;return r.left=t,r.right=e,n&&Ya(r,t,e,n),i&&Ya(r,e,t,i),fo[t.index].halfedges.push(a),fo[e.index].halfedges.push(a),r}function ja(t,e,n){var i=[e,n];return i.left=t,i}function Ya(t,e,n,i){t[0]||t[1]?t.left===n?t[1]=i:t[0]=i:(t[0]=i,t.left=e,t.right=n)}function qa(t,e,n,i,r){var a,o=t[0],s=t[1],l=o[0],c=o[1],u=0,h=1,d=s[0]-l,f=s[1]-c;if(a=e-l,d||!(a>0)){if(a/=d,d<0){if(a<u)return;a<h&&(h=a)}else if(d>0){if(a>h)return;a>u&&(u=a)}if(a=i-l,d||!(a<0)){if(a/=d,d<0){if(a>h)return;a>u&&(u=a)}else if(d>0){if(a<u)return;a<h&&(h=a)}if(a=n-c,f||!(a>0)){if(a/=f,f<0){if(a<u)return;a<h&&(h=a)}else if(f>0){if(a>h)return;a>u&&(u=a)}if(a=r-c,f||!(a<0)){if(a/=f,f<0){if(a>h)return;a>u&&(u=a)}else if(f>0){if(a<u)return;a<h&&(h=a)}return!(u>0||h<1)||(u>0&&(t[0]=[l+u*d,c+u*f]),h<1&&(t[1]=[l+h*d,c+h*f]),!0)}}}}}function Ka(t,e,n,i,r){var a=t[1];if(a)return!0;var o,s,l=t[0],c=t.left,u=t.right,h=c[0],d=c[1],f=u[0],p=u[1],g=(h+f)/2,m=(d+p)/2;if(p===d){if(g<e||g>=i)return;if(h>f){if(l){if(l[1]>=r)return}else l=[g,n];a=[g,r]}else{if(l){if(l[1]<n)return}else l=[g,r];a=[g,n]}}else if(s=m-(o=(h-f)/(p-d))*g,o<-1||o>1)if(h>f){if(l){if(l[1]>=r)return}else l=[(n-s)/o,n];a=[(r-s)/o,r]}else{if(l){if(l[1]<n)return}else l=[(r-s)/o,r];a=[(n-s)/o,n]}else if(d<p){if(l){if(l[0]>=i)return}else l=[e,o*e+s];a=[i,o*i+s]}else{if(l){if(l[0]<e)return}else l=[i,o*i+s];a=[e,o*e+s]}return t[0]=l,t[1]=a,!0}function Xa(t,e){var n=t.site,i=e.left,r=e.right;return n===r&&(r=i,i=n),r?Math.atan2(r[1]-i[1],r[0]-i[0]):(n===i?(i=e[1],r=e[0]):(i=e[0],r=e[1]),Math.atan2(i[0]-r[0],r[1]-i[1]))}function Za(t,e){return e[+(e.left!==t.site)]}function Qa(t,e){return e[+(e.left===t.site)]}var Ja,$a=[];function to(){Fa(this),this.x=this.y=this.arc=this.site=this.cy=null}function eo(t){var e=t.P,n=t.N;if(e&&n){var i=e.site,r=t.site,a=n.site;if(i!==a){var o=r[0],s=r[1],l=i[0]-o,c=i[1]-s,u=a[0]-o,h=a[1]-s,d=2*(l*h-c*u);if(!(d>=-vo)){var f=l*l+c*c,p=u*u+h*h,g=(h*f-c*p)/d,m=(l*p-u*f)/d,v=$a.pop()||new to;v.arc=t,v.site=r,v.x=g+o,v.y=(v.cy=m+s)+Math.sqrt(g*g+m*m),t.circle=v;for(var y=null,x=po._;x;)if(v.y<x.y||v.y===x.y&&v.x<=x.x){if(!x.L){y=x.P;break}x=x.L}else{if(!x.R){y=x;break}x=x.R}po.insert(y,v),y||(Ja=v)}}}}function no(t){var e=t.circle;e&&(e.P||(Ja=e.N),po.remove(e),$a.push(e),Fa(e),t.circle=null)}var io=[];function ro(){Fa(this),this.edge=this.site=this.circle=null}function ao(t){var e=io.pop()||new ro;return e.site=t,e}function oo(t){no(t),ho.remove(t),io.push(t),Fa(t)}function so(t){var e=t.circle,n=e.x,i=e.cy,r=[n,i],a=t.P,o=t.N,s=[t];oo(t);for(var l=a;l.circle&&Math.abs(n-l.circle.x)<mo&&Math.abs(i-l.circle.cy)<mo;)a=l.P,s.unshift(l),oo(l),l=a;s.unshift(l),no(l);for(var c=o;c.circle&&Math.abs(n-c.circle.x)<mo&&Math.abs(i-c.circle.cy)<mo;)o=c.N,s.push(c),oo(c),c=o;s.push(c),no(c);var u,h=s.length;for(u=1;u<h;++u)c=s[u],l=s[u-1],Ya(c.edge,l.site,c.site,r);l=s[0],(c=s[h-1]).edge=Ga(l.site,c.site,null,r),eo(l),eo(c)}function lo(t){for(var e,n,i,r,a=t[0],o=t[1],s=ho._;s;)if((i=co(s,o)-a)>mo)s=s.L;else{if(!((r=a-uo(s,o))>mo)){i>-mo?(e=s.P,n=s):r>-mo?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}!function(t){fo[t.index]={site:t,halfedges:[]}}(t);var l=ao(t);if(ho.insert(e,l),e||n){if(e===n)return no(e),n=ao(e.site),ho.insert(l,n),l.edge=n.edge=Ga(e.site,l.site),eo(e),void eo(n);if(n){no(e),no(n);var c=e.site,u=c[0],h=c[1],d=t[0]-u,f=t[1]-h,p=n.site,g=p[0]-u,m=p[1]-h,v=2*(d*m-f*g),y=d*d+f*f,x=g*g+m*m,b=[(m*y-f*x)/v+u,(d*x-g*y)/v+h];Ya(n.edge,c,p,b),l.edge=Ga(c,t,null,b),n.edge=Ga(t,p,null,b),eo(e),eo(n)}else l.edge=Ga(e.site,l.site)}}function co(t,e){var n=t.site,i=n[0],r=n[1],a=r-e;if(!a)return i;var o=t.P;if(!o)return-1/0;var s=(n=o.site)[0],l=n[1],c=l-e;if(!c)return s;var u=s-i,h=1/a-1/c,d=u/c;return h?(-d+Math.sqrt(d*d-2*h*(u*u/(-2*c)-l+c/2+r-a/2)))/h+i:(i+s)/2}function uo(t,e){var n=t.N;if(n)return co(n,e);var i=t.site;return i[1]===e?i[0]:1/0}var ho,fo,po,go,mo=1e-6,vo=1e-12;function yo(t,e){return e[1]-t[1]||e[0]-t[0]}function xo(t,e){var n,i,r,a=t.sort(yo).pop();for(go=[],fo=new Array(t.length),ho=new Ha,po=new Ha;;)if(r=Ja,a&&(!r||a[1]<r.y||a[1]===r.y&&a[0]<r.x))a[0]===n&&a[1]===i||(lo(a),n=a[0],i=a[1]),a=t.pop();else{if(!r)break;so(r.arc)}if(function(){for(var t,e,n,i,r=0,a=fo.length;r<a;++r)if((t=fo[r])&&(i=(e=t.halfedges).length)){var o=new Array(i),s=new Array(i);for(n=0;n<i;++n)o[n]=n,s[n]=Xa(t,go[e[n]]);for(o.sort((function(t,e){return s[e]-s[t]})),n=0;n<i;++n)s[n]=e[o[n]];for(n=0;n<i;++n)e[n]=s[n]}}(),e){var o=+e[0][0],s=+e[0][1],l=+e[1][0],c=+e[1][1];!function(t,e,n,i){for(var r,a=go.length;a--;)Ka(r=go[a],t,e,n,i)&&qa(r,t,e,n,i)&&(Math.abs(r[0][0]-r[1][0])>mo||Math.abs(r[0][1]-r[1][1])>mo)||delete go[a]}(o,s,l,c),function(t,e,n,i){var r,a,o,s,l,c,u,h,d,f,p,g,m=fo.length,v=!0;for(r=0;r<m;++r)if(a=fo[r]){for(o=a.site,s=(l=a.halfedges).length;s--;)go[l[s]]||l.splice(s,1);for(s=0,c=l.length;s<c;)p=(f=Qa(a,go[l[s]]))[0],g=f[1],h=(u=Za(a,go[l[++s%c]]))[0],d=u[1],(Math.abs(p-h)>mo||Math.abs(g-d)>mo)&&(l.splice(s,0,go.push(ja(o,f,Math.abs(p-t)<mo&&i-g>mo?[t,Math.abs(h-t)<mo?d:i]:Math.abs(g-i)<mo&&n-p>mo?[Math.abs(d-i)<mo?h:n,i]:Math.abs(p-n)<mo&&g-e>mo?[n,Math.abs(h-n)<mo?d:e]:Math.abs(g-e)<mo&&p-t>mo?[Math.abs(d-e)<mo?h:t,e]:null))-1),++c);c&&(v=!1)}if(v){var y,x,b,_=1/0;for(r=0,v=null;r<m;++r)(a=fo[r])&&(b=(y=(o=a.site)[0]-t)*y+(x=o[1]-e)*x)<_&&(_=b,v=a);if(v){var w=[t,e],S=[t,i],A=[n,i],C=[n,e];v.halfedges.push(go.push(ja(o=v.site,w,S))-1,go.push(ja(o,S,A))-1,go.push(ja(o,A,C))-1,go.push(ja(o,C,w))-1)}}for(r=0;r<m;++r)(a=fo[r])&&(a.halfedges.length||delete fo[r])}(o,s,l,c)}this.edges=go,this.cells=fo,ho=po=go=fo=null}function bo(t,e,n){this.k=t,this.x=e,this.y=n}function _o(t,e){for(var n=t.toString();n.length<e;)n="0"+n;return n}function wo(t){return _o(t,2)}xo.prototype={constructor:xo,polygons:function(){var t=this.edges;return this.cells.map((function(e){var n=e.halfedges.map((function(n){return Za(e,t[n])}));return n.data=e.site.data,n}))},triangles:function(){var t=[],e=this.edges;return this.cells.forEach((function(n,i){if(a=(r=n.halfedges).length)for(var r,a,o,s,l,c,u=n.site,h=-1,d=e[r[a-1]],f=d.left===u?d.right:d.left;++h<a;)o=f,f=(d=e[r[h]]).left===u?d.right:d.left,o&&f&&i<o.index&&i<f.index&&(l=o,c=f,((s=u)[0]-c[0])*(l[1]-s[1])-(s[0]-l[0])*(c[1]-s[1])<0)&&t.push([u.data,o.data,f.data])})),t},links:function(){return this.edges.filter((function(t){return t.right})).map((function(t){return{source:t.left.data,target:t.right.data}}))},find:function(t,e,n){for(var i,r,a=this,o=a._found||0,s=a.cells.length;!(r=a.cells[o]);)if(++o>=s)return null;var l=t-r.site[0],c=e-r.site[1],u=l*l+c*c;do{r=a.cells[i=o],o=null,r.halfedges.forEach((function(n){var i=a.edges[n],s=i.left;if(s!==r.site&&s||(s=i.right)){var l=t-s[0],c=e-s[1],h=l*l+c*c;h<u&&(u=h,o=s.index)}}))}while(null!==o);return a._found=i,null==n||u<=n*n?r.site:null}},Math.SQRT2,bo.prototype={constructor:bo,scale:function(t){return 1===t?this:new bo(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new bo(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},new bo(1,0,0),bo.prototype;var So=function(t,e){void 0===e&&(e="yyyy-MM-dd hh:mm:ss");var n,i,r,a,o=wo(t.getDate()),s=wo(t.getMonth()+1),l=wo(t.getFullYear()),c=wo(l.substring(2,4)),u=e.indexOf("yyyy")>-1?l:c,h=wo(t.getHours()),d=wo(t.getMinutes()),f=wo(t.getSeconds()),p=_o(t.getMilliseconds(),3),g=(n=t.getTimezoneOffset(),i=Math.abs(n),r=String(Math.floor(i/60)),a=String(i%60),1===r.length&&(r="0"+r),1===a.length&&(a="0"+a),n<0?"+"+r+a:"-"+r+a);return e.replace(/dd/g,o).replace(/MM/g,s).replace(/y{1,4}/g,u).replace(/hh/g,h).replace(/mm/g,d).replace(/ss/g,f).replace(/SSS/g,p).replace(/O/g,g)};function Ao(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Co(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Co(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function Co(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var Io={name:"PlaybackProgressBar",props:{currentTimeProp:{type:Number,required:!0},theme:{type:String}},data:function(){return{width:850,curTimeX:0,dateFormat:So,updateMoveLen:null,availableArray:[]}},computed:{middle:function(){return this.width/2},viewBox:function(){return"0 0 ".concat(this.width," 75")},currentTime:function(){return this.checkIfTimeAvailable(this.availableArray,this.currentTimeProp)||this.$emit("updatePlayState",!1),this.updateMoveLen&&this.updateMoveLen(this.currentTimeProp),this.currentTimeProp}},mounted:function(){this.curTimeX=(this.width-150)/2,this.renderBar()},methods:{checkIfTimeAvailable:function(t,e){var n,i=Ao(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.startTime<=e&&r.endTime>e)return!0}}catch(t){i.e(t)}finally{i.f()}return!1},rerenderBar:function(t,e){this.clearBar(),this.renderBar(t,e)},clearBar:function(){var t=Gt("g.progress-inner");t.selectAll("g.ticks-container > *").remove(),t.selectAll("g.available-container > *").remove()},formatHourMinute:function(t){return So(new Date(t),"hh:mm")},renderBar:function(t,e){var n=this,i=t||n.currentTimeProp,r=36e5,a=[{time:i-5*r,label:n.formatHourMinute(i-5*r)},{time:i-4*r,label:n.formatHourMinute(i-4*r)},{time:i-3*r,label:n.formatHourMinute(i-3*r)},{time:i-2*r,label:n.formatHourMinute(i-2*r)},{time:i-1*r,label:n.formatHourMinute(i-1*r)},{time:i,label:n.formatHourMinute(i)},{time:i+1*r,label:n.formatHourMinute(i+1*r)},{time:i+2*r,label:n.formatHourMinute(i+2*r)},{time:i+3*r,label:n.formatHourMinute(i+3*r)},{time:i+4*r,label:n.formatHourMinute(i+4*r)},{time:i+5*r,label:n.formatHourMinute(i+5*r)}];e||(e=[]),n.availableArray=e;var o=n.width/6,s=i,l=s-3*r;n.updateCurrentTime(s);var c=Gt("g.progress-inner"),u=0,h=0;function d(){var t=c.select("g.ticks-container").selectAll("g").data(a,(function(t,e){return t.time})).enter().append("g").attr("class","tick-item"),e=function(t){return(t.time-l)/r*o};t.append("text").attr("x",e).attr("class","enter times-tick").attr("dy",20).text((function(t){return t.label})),t.append("line").attr("x1",(function(t,n){return e(t)})).attr("x2",(function(t,n){return e(t)})).attr("class","tick-path").attr("y1",30).attr("y2",75).attr("stroke-width",1),t.append("line").attr("x1",(function(t,n){return e(t)-o/2})).attr("x2",(function(t,n){return e(t)+o/2})).attr("y1",40).attr("y2",38).attr("stroke","rgba(255,255,255,0)").attr("stroke-width",74),t.append("line").attr("x1",(function(t,n){return e(t)-o/2})).attr("x2",(function(t,n){return e(t)+o/2})).attr("class","tick-path").attr("y1",30).attr("y2",30).attr("stroke-width",3),c.select("g.available-container").selectAll("g").data(n.availableArray,(function(t){return t.startTime})).enter().append("g").attr("class","available-item").append("line").attr("x1",(function(t,e){return(t.startTime-l)/r*o})).attr("x2",(function(t,e){return(t.endTime-l)/r*o})).attr("y1",30).attr("y2",30).attr("stroke-width",3).attr("class","available-path")}n.updateMoveLen=function(t){var e=-(t-s)/r*o;Gt(".progress-inner").attr("transform",(function(){return"translate(".concat(e,",0)")}))},d();var f=i+6*r,p=0,g=i-6*r,m=0,v=n.debounceFunc((function(){n.$emit("updateCurrentPlay",n.currentTime)}),1500),y=!1,x=function(){var t,e,n,i,r=pi,a=gi,o=mi,s=vi,l={},c=L("start","drag","end"),u=0,h=0;function d(t){t.on("mousedown.drag",f).filter(s).on("touchstart.drag",m).on("touchmove.drag",v).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(){if(!i&&r.apply(this,arguments)){var o=x("mouse",a.apply(this,arguments),ze,this,arguments);o&&(Gt(Dt.view).on("mousemove.drag",p,!0).on("mouseup.drag",g,!0),qt(Dt.view),jt(),n=!1,t=Dt.clientX,e=Dt.clientY,o("start"))}}function p(){if(Yt(),!n){var i=Dt.clientX-t,r=Dt.clientY-e;n=i*i+r*r>h}l.mouse("drag")}function g(){Gt(Dt.view).on("mousemove.drag mouseup.drag",null),Kt(Dt.view,n),Yt(),l.mouse("end")}function m(){if(r.apply(this,arguments)){var t,e,n=Dt.changedTouches,i=a.apply(this,arguments),o=n.length;for(t=0;t<o;++t)(e=x(n[t].identifier,i,Be,this,arguments))&&(jt(),e("start"))}}function v(){var t,e,n=Dt.changedTouches,i=n.length;for(t=0;t<i;++t)(e=l[n[t].identifier])&&(Yt(),e("drag"))}function y(){var t,e,n=Dt.changedTouches,r=n.length;for(i&&clearTimeout(i),i=setTimeout((function(){i=null}),500),t=0;t<r;++t)(e=l[n[t].identifier])&&(jt(),e("end"))}function x(t,e,n,i,r){var a,s,h,f=n(e,t),p=c.copy();if(Nt(new fi(d,"beforestart",a,t,u,f[0],f[1],0,0,p),(function(){return null!=(Dt.subject=a=o.apply(i,r))&&(s=a.x-f[0]||0,h=a.y-f[1]||0,!0)})))return function o(c){var g,m=f;switch(c){case"start":l[t]=o,g=u++;break;case"end":delete l[t],--u;case"drag":f=n(e,t),g=u}Nt(new fi(d,c,a,t,g,f[0]+s,f[1]+h,f[0]-m[0],f[1]-m[1],p),p.apply,p,[c,i,r])}}return d.filter=function(t){return arguments.length?(r="function"==typeof t?t:di(!!t),d):r},d.container=function(t){return arguments.length?(a="function"==typeof t?t:di(t),d):a},d.subject=function(t){return arguments.length?(o="function"==typeof t?t:di(t),d):o},d.touchable=function(t){return arguments.length?(s="function"==typeof t?t:di(!!t),d):s},d.on=function(){var t=c.on.apply(c,arguments);return t===c?d:t},d.clickDistance=function(t){return arguments.length?(h=(t=+t)*t,d):Math.sqrt(h)},d}().subject((function(){return c})).on("start",(function(){u=Dt.sourceEvent.screenX})).on("drag",(function(t){var e=Dt.sourceEvent.screenX-u+h;n.updateCurrentTime(parseInt(s+-1*e/o*r)),e<=-p*o?(y=!0,function(){for(var t=0;t<3;t++){var e=new Date(f);a.push({time:f,label:n.dateFormat(e,"hh:mm")}),f+=36e5,p++}var i=f;n.$emit("updateForwardList",(function(t){n.availableArray=n.availableArray.concat(t),d()}),i-4*r,i-r)}(),d()):e>=m*o&&(y=!0,function(){for(var t=0;t<3;t++){var e=new Date(g);a.unshift({time:g,label:n.dateFormat(e,"hh:mm")}),g-=r,m++}var i=g;n.$emit("updateBackwordList",(function(t){n.availableArray=t.concat(n.availableArray),d()}),i+r,i+4*r)}(),d()),Gt(".progress-inner").attr("transform",(function(){return"translate(".concat(e,",0)")}))})).on("end",(function(){h=h+Dt.sourceEvent.screenX-u,y?setTimeout((function(){v()}),1e3):v()}));Gt(".progress-inner").call(x)},debounceFunc:function(t,e){var n=null;return function(){for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];clearTimeout(n),n=setTimeout((function(){t.apply(void 0,r)}),e)}},updateCurrentTime:function(t){this.$emit("update:currentTimeProp",t)}}},To=(n(40),c(Io,_,[],!1,null,null,null));To.options.__file="src/components/player-progress-bar.vue";var ko=To.exports,Mo=n(13),Do=n.n(Mo);function Eo(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Lo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Po(t){if(/^(\d){8}T(\d){6}Z$/.test(t))return t="".concat(t.slice(0,4),"-").concat(t.slice(4,6),"-").concat(t.slice(6,8)," ").concat(t.slice(9,11),":").concat(t.slice(11,13),":").concat(t.slice(13,15)),new Date(t).getTime()}var Oo=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Lo(this,"instance",void 0),Lo(this,"getPlaybackFileListUrl","/device/playback"),Lo(this,"getRecordForMonthUrl","/device/getRecordForMonth"),this.instance=Do.a.create({baseURL:e.baseUrl?e.baseUrl:""}),e.interceptors&&(e.interceptors.requestInterceptor&&this.instance.interceptors.request.use(e.interceptors.requestInterceptor),e.interceptors.responseInterceptor&&e.interceptors.responseRejectInterceptor&&this.instance.interceptors.response.use(e.interceptors.responseInterceptor,e.interceptors.responseRejectInterceptor)),e.urls&&(e.urls.getDeviceInfoUrl&&(this.getDeviceInfoUrl=e.urls.getDeviceInfoUrl),e.urls.getPlaybackFileListUrl&&(this.getPlaybackFileListUrl=e.urls.getPlaybackFileListUrl),e.urls.getRecordForMonthUrl&&(this.getRecordForMonthUrl=e.urls.getRecordForMonthUrl))}var e,n,i;return e=t,(n=[{key:"getPlaybackUrl",value:function(t,e,n,i){var r=function(t,e,n){return/starttime=(\d){8}T(\d){6}Z/.test(t)&&/endtime=(\d){8}T(\d){6}Z/.test(t)?t.replace(/starttime=(\d){8}T(\d){6}Z/,"starttime=".concat(So(new Date(e),"yyyyMMddThhmmss"),"Z")).replace(/endtime=(\d){8}T(\d){6}Z/,"endtime=".concat(So(new Date(n),"yyyyMMddThhmmss"),"Z")):/starttime=(\d){4}(_(\d){2}){5}/.test(t)&&/endtime=(\d){4}(_(\d){2}){5}/.test(t)?t.replace(/starttime=(\d){4}(_(\d){2}){5}/,"starttime=".concat(So(new Date(e),"yyyy_MM_dd_hh_mm_ss"))).replace(/endtime=(\d){4}(_(\d){2}){5}/,"endtime=".concat(So(new Date(n),"yyyy_MM_dd_hh_mm_ss"))):/b(\d){10}/.test(t)&&/e(\d){10}/.test(t)?t.replace(/b(\d){10}/,"b".concat(Math.floor(e/1e3))).replace(/e(\d){10}/,"e".concat(Math.floor(n/1e3))):""}(i,t,e);return new Promise((function(t){t({data:{success:!0,data:{url:r,endTime:e},code:"00000000",message:""}})}))}},{key:"getPlaybackFileList",value:function(t,e,n){var i=this;return new Promise((function(r,a){i.instance.post(i.getPlaybackFileListUrl,{id:t,startTime:e,stopTime:n}).then((function(t){var e=t.data;if(!e.success)throw new Error(e.message);var n=e.data.map((function(t){return{startTime:Po(t.fileStartTime),endTime:Po(t.fileStopTime),rtspUrl:t.fileRtspUrl}}));r(n)})).catch((function(t){console.error("getPlaybackFileList error",t),a(t)}))}))}},{key:"getRecordForMonth",value:function(t,e,n){return this.instance.post(this.getRecordForMonthUrl,{id:t,year:e,month:n})}}])&&Eo(e.prototype,n),i&&Eo(e,i),t}();function Ro(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function No(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Bo=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),No(this,"instance",void 0),No(this,"baseUrl",void 0),No(this,"rtspHost",""),this.instance=Do.a.create({baseURL:e}),this.baseUrl=e,this.rtspHost=n}var e,n,i;return e=t,(n=[{key:"getStreamList",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((function(i,r){var a=new XMLHttpRequest;a.open("get","".concat(t.baseUrl).concat("/pushers","?id=").concat(e,"&start=0&limit=100&sort=startAt&order=descending&_=").concat((new Date).getTime()),!n),a.send(),a.onload=function(){i(JSON.parse(a.response))},a.onerror=function(t){r(t)}}))}},{key:"closeStream",value:function(t,e){var n=this;return new Promise((function(i,r){var a=new XMLHttpRequest;a.open("get","".concat(n.baseUrl).concat("/stream/stop","?id=").concat(t,"&_=").concat((new Date).getTime()),!e),a.send(),a.onload=function(){i(JSON.parse(a.response))},a.onerror=function(t){r(t)}}))}},{key:"openStream",value:function(t){var e=this,n="/".concat((new Date).getTime());return new Promise((function(i,r){e.instance.get("/stream/start",{params:{url:t,customPath:n,transType:"TCP",idleTimeout:"",heartbeatInterval:"",_:(new Date).getTime()}}).then((function(t){i({url:"".concat(e.rtspHost).concat(n),id:t.data})})).catch((function(t){if(t.response&&t.response.data){var e=t.response.data;return/i\/o timeout/.test(e)?void r({code:-1,message:e}):(/Pull\ stream\ err/.test(e)||/connection\ reset\ by\ peer/.test(e),void r({code:1,message:e}))}r({code:2})}))}))}},{key:"open",value:function(t,e){var n=this;return new Promise((function(i,r){n.getStreamList().then((function(a){for(var o,s=a.rows,l=0;l<s.length;l++)s[l].source!==t||o||e||(o=s[l]),0===s[l].onlines&&s[l]!==o&&n.closeStream(s[l].id);o?i({id:o.id,url:"".concat(n.rtspHost).concat(o.path)}):n.openStream(t).then(i).catch((function(t){r(t)}))})).catch((function(){n.openStream(t).then(i).catch((function(t){r(t)}))}))}))}},{key:"close",value:function(t,e){var n=this;e?this.getStreamList(t,e).then((function(t){for(var i=t.rows,r=0;r<i.length;r++)0===i[r].onlines&&n.closeStream(i[r].id,e)})):this.getStreamList().then((function(t){for(var e=t.rows,i=0;i<e.length;i++)0===e[i].onlines&&n.closeStream(e[i].id)}))}}])&&Ro(e.prototype,n),i&&Ro(e,i),t}();function zo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Fo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zo(Object(n),!0).forEach((function(e){Vo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Vo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Wo={name:"QzPlayer",props:{devices:{type:Array},type:{type:String,default:"live"},requestConfig:{type:Object,default:function(){return null}},basicConfig:{type:Object,default:function(){}},useProxy:{type:Boolean,default:function(){return!0}},proxyBaseUrl:{type:String,default:function(){return"/live-proxy"}},proxyRtspHost:{type:String,default:function(){return"rtsp://".concat(location.hostname)}},autoPlay:{type:Boolean,default:!1}},components:{RtspPlayer:h,PlayerControlBar:m,PlayerProgressBar:ko,PlayerTimeSelectBar:b},data:function(){var t=new Date;return{url:"",urls:[],date:new Date("".concat(So(t,"yyyy-MM-dd")," 00:00:00")).getTime(),monthRecord:[],fileList:[],paused:!0,interval:null,request:null,proxyRequest:null,playingId:"",loading:!1,errorCode:0,isPlaying:!1,pluginLoadSuccess:!1,deviceItem:{}}},created:function(){this.initinalRequestConfig(),0!==this.devices.length&&(this.deviceItem=this.devices[0])},mounted:function(){var t=this;"playback"===this.type?void 0!==this.deviceItem.id&&(this.loading=!0,this.getRecordForMonth(),this.getPlaybackFileList().then((function(){t.loading=!1,t.getPlaybackUrl()})).catch((function(){t.loading=!1}))):(this.basicConfig&&this.basicConfig.rows,this.deviceItem.rtspUrl&&this.getPlayUrl(this.deviceItem.rtspUrl).then((function(e){t.url=e})))},beforeDestroy:function(){var t=this;this.$refs.player&&this.$refs.player.streamCloses(),setTimeout((function(){t.closeProxyStream()}),300),window.onbeforeunload=null},computed:{playerProgressBar:function(){return"playback"===this.type?this.$refs.playerProgressBar:null},deviceTimeOffsetHour:function(){return this.deviceItem.timeOffsetHour||0}},methods:{initinalRequestConfig:function(){var t=this;this.request=new Oo(this.requestConfig||{}),this.useProxy&&(this.proxyRequest=new Bo(this.proxyBaseUrl,this.proxyRtspHost),window.onbeforeunload=function(){t.closeProxyStream(!0)})},dateFocus:function(){var t=this;this.isCurrentTimeIsAvailable()||setTimeout((function(){document.getElementsByClassName("fc-player-date-picker")[0].addEventListener("click",(function(e){(e.target.className.indexOf("el-icon-arrow-right")>-1||e.target.className.indexOf("el-icon-d-arrow-right")>-1||e.target.className.indexOf("el-icon-d-arrow-left")>-1||e.target.className.indexOf("el-icon-arrow-left")>-1)&&t.newRecordForMonth()}))}))},newRecordForMonth:function(){var t=this;setTimeout((function(){var e=document.getElementsByClassName("el-date-picker__header-label"),n=Number(e[0].innerText.split(" ")[0]),i=Number(e[1].innerText.split(" ")[0]);t.monthRecord=[],t.request.getRecordForMonth(t.deviceItem.id,n,i).then((function(e){var n=e.data;n.success?t.monthRecord=n.data:console.error(n.code,n.message)})).catch((function(t){console.error(t)}))}))},dateChange:function(t){var e=this,n=new Date(this.date);this.date=t;var i=new Date(t);n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()||this.getRecordForMonth(),this.getPlaybackFileList().then((function(){e.getPlaybackUrl()})),this.playerProgressBar.rerenderBar(this.date)},getPlaybackFileList:function(){var t=this;return new Promise((function(e){t.fileList=[];var n=t.deviceTimeOffsetHour,i=36e5*n;t.request.getPlaybackFileList(t.deviceItem.id,t.date-36e5*(5+n),t.date+36e5*(5+n)).then((function(n){t.fileList=n.map((function(t){return Fo(Fo({},t),{},{startTime:t.startTime-i,endTime:t.endTime-i})})),t.playerProgressBar.rerenderBar(t.date,n),e(n)})).catch((function(){t.$refs.player&&t.$refs.player.hideLoading()}))}))},getPlaybackUrl:function(){var t=this;if(this.isCurrentTimeIsAvailable()){var e=this.getCurrentFileShard(),n=e.fileShard,i=e.index,r=this.getConsecutiveEndTime(i),a=36e5*this.deviceTimeOffsetHour;this.loading=!0,this.request.getPlaybackUrl(this.date-a,r-a,this.deviceItem.id,n.rtspUrl).then((function(e){var n=e.data;t.getPlayUrl(n.data.url).then((function(e){t.url=e,t.$forceUpdate(),t.loading=!1,t.$nextTick((function(){t.$refs.player&&t.$refs.player.streamPlay()}))}))})).catch((function(){t.loading=!1}))}else this.url="",this.$message.warning("选中的时间段没有视频,请拖动至有视频区域!")},getRecordForMonth:function(){var t=this;this.monthRecord=[];var e=new Date(this.date);this.request.getRecordForMonth(this.deviceItem.id,e.getFullYear(),e.getMonth()+1).then((function(e){var n=e.data;n.success?t.monthRecord=n.data:console.error(n.code,n.message)})).catch((function(t){console.error(t)}))},play:function(){"live"===this.type?(this.isPlaying=!this.isPlaying,this.$refs.player&&this.$refs.player.play()):this.getPlaybackUrl()},pause:function(){var t=this;this.isPlaying=!this.isPlaying,this.$refs.player&&this.$refs.player.pause().then((function(){"playback"===t.type&&t.stop()})),this.pauseTime()},stop:function(){var t=this;this.$refs.player&&this.$refs.player.stop(),this.pauseTime(),setTimeout((function(){t.closeProxyStream()}),300)},clearFileList:function(){this.fileList=[],this.playerProgressBar.rerenderBar(this.date,this.fileList)},backward:function(){var t=this;this.date-=15e3,this.pauseTime(),this.$refs.player&&this.$refs.player.streamCloses(),setTimeout((function(){t.getPlaybackUrl()}),300)},forward:function(){var t=this;this.date+=15e3,this.pauseTime(),this.$refs.player&&this.$refs.player.streamCloses(),setTimeout((function(){t.getPlaybackUrl()}),300)},onStreamStatus:function(t,e){2===e?this.updateTime():this.pauseTime(),this.$emit("onStreamStatus",{index:t,status:e})},updateTime:function(t,e){var n=this;if("playback"===this.type){if(this.interval)return;this.paused=!1,this.interval=window.setInterval((function(){n.date+=1e3}),1e3)}else this.isPlaying=!0},pauseTime:function(){"playback"===this.type&&(clearInterval(this.interval),this.interval=null)},isCurrentTimeIsAvailable:function(){for(var t=0;t<this.fileList.length;t++)if(this.date>=this.fileList[t].startTime&&this.date<this.fileList[t].endTime)return!0;return!1},getCurrentFileShard:function(){for(var t=0;t<this.fileList.length;t++)if(this.date>=this.fileList[t].startTime&&this.date<this.fileList[t].endTime)return{fileShard:this.fileList[t],index:t};return{}},getConsecutiveEndTime:function(t){for(var e=t+1;e<this.fileList.length;e++)if(this.fileList[e].startTime>this.fileList[e-1].endTime)return this.fileList[e-1].endTime;if(this.fileList.length>0)return this.fileList[this.fileList.length-1].endTime},onUpdateBackwordList:function(t,e,n){var i=this;this.request.getPlaybackFileList(this.deviceItem.id,e,n).then((function(e){i.fileList=e.concat(i.fileList),t(e)}))},onUpdateForwardList:function(t,e,n){var i=this;this.request.getPlaybackFileList(this.deviceItem.id,e,n).then((function(e){i.fileList=i.fileList.concat(e),t(e)}))},onUpdateCurrentPlay:function(t){var e=this;this.$refs.player&&this.$refs.player.streamCloses(),setTimeout((function(){e.getPlaybackUrl(t)}),300)},onCloseCurrentPlay:function(){var t=this;setTimeout((function(){t.closeProxyStream()}),300)},onUpdatePlayState:function(t){t?this.getPlaybackUrl():this.interval&&this.stop()},getPlayUrl:function(t){var e=this;return this.proxyRequest&&"live"===this.type?(this.loading=!0,this.playingId&&this.proxyRequest.close(this.playingId),new Promise((function(n,i){e.proxyRequest.open(t,"playback"===e.type).then((function(t){e.playingId=t.id,e.loading=!1,n(t.url)})).catch((function(t){e.loading=!1,1===t.code||-1===t.code?e.errorCode=t.code:e.$message.warning("获取视频流地址失败!")}))}))):Promise.resolve(t)},closeProxyStream:function(t){this.proxyRequest&&this.playingId&&this.proxyRequest.close(this.playingId,t)},reconnect:function(){var t=this;this.errorCode=0,this.devices&&0!==this.devices.length?(this.urls=[],this.devices.map((function(e){t.getPlayUrl(e.rtspUrl).then((function(e){t.urls.push(e)}))}))):this.deviceItem.rtspUrl&&this.getPlayUrl(this.deviceItem.rtspUrl).then((function(e){t.url=e}))},pluginOnload:function(t){this.pluginLoadSuccess=!0,this.$emit("onLoad")},controlIconClick:function(){"playback"!==this.type&&(this.isPlaying?this.pause():this.play())}}},Uo=(n(42),c(Wo,i,[],!1,null,null,null));Uo.options.__file="src/components/player.vue";var Ho=Uo.exports;e.default=Ho}]).default}))},fd27:function(t,e,n){var i=n("9273"),r=n("a991"),a=function(t){this.name=t||"",this.cx=0,this.cy=0,this._radiusAxis=new i,this._angleAxis=new r,this._radiusAxis.polar=this._angleAxis.polar=this};a.prototype={type:"polar",axisPointerEnabled:!0,constructor:a,dimensions:["radius","angle"],model:null,containPoint:function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},containData:function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},getAxis:function(t){return this["_"+t+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},dataToPoint:function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},pointToData:function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},pointToCoord:function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),a=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);i.inverse?a=o-360:o=a+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;var l=Math.atan2(-n,e)/Math.PI*180,c=l<a?1:-1;while(l<a||l>o)l+=360*c;return[s,l]},coordToPoint:function(t){var e=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*e+this.cx,r=-Math.sin(n)*e+this.cy;return[i,r]},getArea:function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*r,endAngle:-i[1]*r,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,r=n*n+i*i,a=this.r,o=this.r0;return r<=a*a&&r>=o*o}}}};var o=a;t.exports=o},fd63:function(t,e,n){var i=n("42e5"),r=n("6d8b"),a=r.isFunction,o={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=(t.visualColorAccessPath||"itemStyle.color").split("."),o=t.get(r),s=!a(o)||o instanceof i?null:o;o&&!s||(o=t.getColorFromPalette(t.name,null,e.getSeriesCount())),n.setVisual("color",o);var l=(t.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),c=t.get(l);if(n.setVisual("borderColor",c),!e.isSeriesFiltered(t)){s&&n.each((function(e){n.setItemVisual(e,"color",s(t.getDataParams(e)))}));var u=function(t,e){var n=t.getItemModel(e),i=n.get(r,!0),a=n.get(l,!0);null!=i&&t.setItemVisual(e,"color",i),null!=a&&t.setItemVisual(e,"borderColor",a)};return{dataEach:n.hasItemOption?u:null}}}};t.exports=o},fdde:function(t,e){var n={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]}},i=function(t,e){return Math.round(t.length/2)};function r(t){return{seriesType:t,modifyOutputEnd:!0,reset:function(t,e,r){var a=t.getData(),o=t.get("sampling"),s=t.coordinateSystem;if("cartesian2d"===s.type&&o){var l,c=s.getBaseAxis(),u=s.getOtherAxis(c),h=c.getExtent(),d=h[1]-h[0],f=Math.round(a.count()/d);if(f>1)"string"===typeof o?l=n[o]:"function"===typeof o&&(l=o),l&&t.setData(a.downSample(a.mapDimension(u.dim),1/f,l,i))}}}}t.exports=r},fe21:function(t,e,n){var i=n("e86a"),r=n("2306"),a=["textStyle","color"],o={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(a):null)},getFont:function(){return r.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return i.getBoundingRect(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};t.exports=o},febc:function(t,e,n){var i=n("6d8b"),r=n("4f85"),a=n("e468"),o=a.seriesModelMixin,s=r.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});i.mixin(s,o,!0);var l=s;t.exports=l},fecb:function(t,e,n){var i=n("6d8b"),r=n("2145"),a=n("29a8"),o=a.toolbox.brush;function s(t,e,n){this.model=t,this.ecModel=e,this.api=n,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(o.title)};var l=s.prototype;l.render=l.updateView=function(t,e,n){var r,a,o;e.eachComponent({mainType:"brush"},(function(t){r=t.brushType,a=t.brushOption.brushMode||"single",o|=t.areas.length})),this._brushType=r,this._brushMode=a,i.each(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===a:"clear"===e?o:e===r)?"emphasis":"normal")}))},l.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return i.each(t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},l.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},r.register("brush",s);var c=s;t.exports=c},ff2e:function(t,e,n){var i=n("6d8b"),r=n("2306"),a=n("e86a"),o=n("eda2"),s=n("1687"),l=n("697e"),c=n("fab2");function u(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle(),e.fill=null):"shadow"===n&&(e=i.getAreaStyle(),e.stroke=null),e}function h(t,e,n,i,r){var s=n.get("value"),l=f(s,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get("label.precision"),formatter:n.get("label.formatter")}),c=n.getModel("label"),u=o.normalizeCssArray(c.get("padding")||0),h=c.getFont(),p=a.getBoundingRect(l,h),g=r.position,m=p.width+u[1]+u[3],v=p.height+u[0]+u[2],y=r.align;"right"===y&&(g[0]-=m),"center"===y&&(g[0]-=m/2);var x=r.verticalAlign;"bottom"===x&&(g[1]-=v),"middle"===x&&(g[1]-=v/2),d(g,m,v,i);var b=c.get("backgroundColor");b&&"auto"!==b||(b=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:m,height:v,r:c.get("borderRadius")},position:g.slice(),style:{text:l,textFont:h,textFill:c.getTextColor(),textPosition:"inside",textPadding:u,fill:b,stroke:c.get("borderColor")||"transparent",lineWidth:c.get("borderWidth")||0,shadowBlur:c.get("shadowBlur"),shadowColor:c.get("shadowColor"),shadowOffsetX:c.get("shadowOffsetX"),shadowOffsetY:c.get("shadowOffsetY")},z2:10}}function d(t,e,n,i){var r=i.getWidth(),a=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,a)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function f(t,e,n,r,a){t=e.scale.parse(t);var o=e.scale.getLabel(t,{precision:a.precision}),s=a.formatter;if(s){var c={value:l.getAxisRawValue(e,t),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};i.each(r,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&c.seriesData.push(r)})),i.isString(s)?o=s.replace("{value}",o):i.isFunction(s)&&(o=s(c))}return o}function p(t,e,n){var i=s.create();return s.rotate(i,i,n.rotation),s.translate(i,i,n.position),r.applyTransform([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function g(t,e,n,i,r,a){var o=c.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get("label.margin"),h(e,i,r,a,{position:p(i.axis,t,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function m(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function v(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function y(t,e,n,i,r,a){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:a,clockwise:!0}}e.buildElStyle=u,e.buildLabelElOption=h,e.getValueLabel=f,e.getTransformedPosition=p,e.buildCartesianSingleLabelElOption=g,e.makeLineShape=m,e.makeRectShape=v,e.makeSectorShape=y}}]); |