(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=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=0)r++;return r-e}function o(t,e,n){n--;while(e>>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(l0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}else{s=r+1;while(ls&&(l=s);var c=o;o=r-l,l=r-c}o++;while(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(ls&&(l=s);var c=o;o=r-l,l=r-c}else{s=i-r;while(l=0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}o++;while(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])break;p(t)}}function f(){while(s>1){var t=s-2;t>0&&r[t-1]=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=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=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=0;h--)t[m+h]=t[g+h];t[p]=u[f]}else for(g=p-(s-1),h=0;hd&&(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).5?e:t}function d(t,e,n,i,r){var a=t.length;if(1===r)for(var o=0;or;if(a)t.length=r;else for(var o=i;o=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;te&&(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=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;n0?"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","≥"][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:n0?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;o1&&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=o&&h+1>=s){for(var d=[],f=0;f=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=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;eo&&(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=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;i0&&(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.__lastTe[0][1]&&(e[0][1]=a[0]),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;l0&&!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+"]>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;i0?"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=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=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)=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;l3&&(r=n.call(r,1));for(var o=e.length,s=0;s4&&(r=n.call(r,1,r.length-1));for(var o=r[r.length-1],s=e.length,l=0;lthis._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;ne.length&&(this._expandData(),e=this.data);for(var n=0;n0&&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&&fl||h>0&&mc||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(;_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;ll||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>>1;t[r][1]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];a1)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 "+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;ln[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+="
"),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=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);n0},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=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;i0;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]=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=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=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),n=0;n0?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(e0?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,u0: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]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=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]),n0){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(ch&&(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=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=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;n0?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;at[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[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;o0&&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+=''+t.dom+""})),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;ce.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;l0&&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-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=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;RL){for(;D255?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="
"):(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=0;i--){o=e[i].interval;if(o[0]<=t&&t<=o[1]){a=i;break}}return i>=0&&i=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=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;r3?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&&tl||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),_=0&&_=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=0&&x=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;n0?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"+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)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='',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":"\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":"
":"",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=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=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;ma&&(a=c),i.push(c)}for(var u=0;ua&&(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=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=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;s65535?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=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=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;nx[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;pA[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=0&&e=0&&es&&(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=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))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=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=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=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=c&&y<=u||isNaN(y))&&(o[s++]=C)}else for(v=0;vt[T][1])&&(I=!1)}I&&(o[s++]=this.getRawIndex(v))}return sw[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;pc-p&&(s=c-p,o.length=s);for(var g=0;gh[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;sn-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>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;o0?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=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=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||ct+u&&l>n+u&&l>a+u||l0&&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;hn.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=0;l--)if(i[l]<=e)break;l=Math.min(l,r-2)}else{for(var l=a;le)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=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;dw.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=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 "))},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=0&&t.call(e,n[r],r)},c.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r=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=0&&n.node2.dataIndex>=0}));for(r=0,a=i.length;r=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=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;o1?"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;a0&&(_[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].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=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=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;_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;l0;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;c0&&(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=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=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=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<"+o+""}},"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;Se&&a>i||ar?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=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;ae[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]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;ar[0]&&d0)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=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&&lu[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;ra&&(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||ot+s&&a>n+s||a=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=0;l--){var c=r["asc"===i?o-l-1:l].getValue();c/n*es[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;or&&(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;fs&&(u=s),o=a}u0&&(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&&ei&&(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();_=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)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+ho&&(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)+"
"+a.map(i,(function(n,i){var r=e.get(e.mapDimension(n.dim),t);return s(n.name+" : "+r)})).join("
")},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;r0){t.moveTo(n[r++],n[r++]);for(var o=1;o0){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;l0)for(var u=i[l++],h=i[l++],d=1;d0){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;hx-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=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=t&&(0===e?0:i[e-1][0]).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=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.01?U&&(G+=270/T):Math.abs(j-B)<1e-4?U&&GN?I-=270/T:I+=270/T:U&&jB?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;XZ&&(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;uf?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;sr)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;l1e4||!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;sa&&(a=l,o=s)}for(var c=0;c3}))}},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=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;ib||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;pv?"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;f1?"series.multiple.prefix":"series.single.prefix";s+=p(g(f),{seriesCount:a}),e.eachSeries((function(t,e){if(e1?"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;hl+o)break;if(t[a].y+=i,a>e&&a+1t[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-n0&&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=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=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;g0?"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;p0&&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=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=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>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=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\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-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(in[e]})):i.sort()),i}function P(t,e){var n,i,r=e[0].toUpperCase()+e.slice(1),a=0;while(a1&&!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=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-1&&i.splice(t,1)};setTimeout(r,zt)}}function Ht(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i-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))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=le},canEmit:function(){var t=0;while(te.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.distancee.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 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=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]=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;ey.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;c0,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;o1e-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[1]&&(i[1]=e[1])}))})),i[1]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;sa[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=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]),o0){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=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.timeo.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&&ei.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=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("')}}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=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=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=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;ri[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(;i0;a--)if(!f(n[a-1]))break;for(;r=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;ne&&c>i&&c>a&&c>s||c1&&y(),d=u.cubicAt(e,i,a,s,v[0]),g>1&&(f=u.cubicAt(e,i,a,s,v[1]))),2===g?be&&s>i&&s>a||s=0&&c<=1){for(var h=0,d=u.quadraticAt(e,i,a,c),f=0;fn||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;v1&&(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=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;ur*(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=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(/>\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=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;i40&&(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=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=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[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=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;e1e-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:aa&&(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;ie)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;re+d&&h>r+d&&h>o+d&&h>l+d||ht+d&&u>n+d&&u>a+d&&u>s+d||uf&&(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=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;ah)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;pa&&O(n,t.substring(a,o)),O(n,i[2],i[1]),a=p.lastIndex}av)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"],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=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=0&&n.splice(i,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,n=0;n15)break}}o.__drawIndex=v,o.__drawIndex0&&t>i[0]){for(s=0;st)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;i0?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;i1?"."+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':'':{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;g1?(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;os&&(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;_=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;oi)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;ys)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||g1&&i>0?s:o}};return a;function o(){return e=t?null:a{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=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;la&&(l=a),cs&&(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:ho?d=o-u:dJSON.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{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{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{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{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:''}})]),(()=>{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{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{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{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{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{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{this.normalConfig.AMapMarkerList[e]=null,this.setSwitchDeviceButtonText()}))}cancelAlarm(t=[]){for(let e=0;et.objectId),r=Object.keys(this.locationStore);for(let a=0;a{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;hi||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;ff[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;lm}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;oi.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=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+"]>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,"$")})),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;r1||""[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=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=[];wdocument.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;an.parts.length&&(i.parts.length=n.parts.length)}else{var o=[];for(r=0;r-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([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=t.replace(e,"$1").trim());for(var l=0;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-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;nt.length)&&(e=t.length);for(var n=0,i=new Array(e);nthis.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?ni.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 tn[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.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;e1)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;nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n-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++):n0&&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;rn.parts.length&&(i.parts.length=n.parts.length)}else{var o=[];for(r=0;rx;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;ua;)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=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;nc)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;sf[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;n2?arguments[2]:void 0,u=Math.min((void 0===c?o:r(c,o))-l,o-s),h=1;for(l0;)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:ru;)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=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;r1?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(;a255?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>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<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<>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$;)(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=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);e1&&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);n1&&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='',B.MAXIMIZE='',B.ROI_RECT='',B.ROI_POLYGON='',B.SCALE_VIEW='',B.STOP='',B.STATE_GREEN='',B.STATE_RED='',B.STATE_YELLOW='',B.VOLUME_ON='',B.VOLUME_OFF='',B.RECORD='',B.TALK_ON='',B.TALK_OFF='',B.PTZ_CTL='',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=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);n0&&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;mthis.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;hi.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);n0||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=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=.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=.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();s0&&(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;l0&&(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;s0&&(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;e6&&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);n0&&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=.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);n6&&(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=0&&i.selectedIndex1&&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;e0?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;n0&&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 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;e1&&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="".concat(X.PLUGIN_DOWNLOAD,""),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=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;o1)for(var d=0;d0&&(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=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);n2&&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=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.selectedIndex1){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=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;o1)for(var d=0;d0&&(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.time100){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;e6?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.timen.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=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=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=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.framePosn.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=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=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(ethis.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;ie)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?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(tthis.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);n0&&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];ithis.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),ethis.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=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=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;e0&&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;tthis.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;n0&&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.posSec0&&o1e3||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;e0&&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;ee?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>>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>>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=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;i0)for(var n,i,r=new Array(n),a=0;ae?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=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=_&&(_=b+1);!(x=v[_])&&++_=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;a1?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>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*(n0&&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=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=ia&&(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=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]):+c0)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*i180?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=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;o1e-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=(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;nu&&(u=i),rh&&(h=r));if(l>u||c>h)return this;for(this.cover(l,c).cover(u,h),n=0;nt||t>=r||i>e||e>=a;)switch(s=(ed||(a=l.y0)>f||(o=l.x1)=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=(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;e1);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=^]))?([+\-( ])?([$#])?(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;i0&&(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(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>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-e0))return s;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o=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+(a68?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));++s53)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=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(a0){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(a0)){if(a/=f,f<0){if(a0){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(a0||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=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]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]=i)return}else l=[e,o*e+s];a=[i,o*i+s]}else{if(l){if(l[0]=-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.ymo)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]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;rmo||Math.abs(g-d)>mo)&&(l.splice(s,0,go.push(ja(o,f,Math.abs(p-t)mo?[t,Math.abs(h-t)mo?[Math.abs(d-i)mo?[n,Math.abs(h-n)mo?[Math.abs(d-e)=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-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);ne)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=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;a0&&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-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[t].startTime&&this.date=this.fileList[t].startTime&&this.datethis.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=lo)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;ie&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n1)"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}}]);