| 1 |
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).echarts={})}(this,function(t){"use strict";var m=function(t,e){return(m=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)};function h(t,e){function n(){this.constructor=t}m(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function v(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var i=Array(t),o=0,e=0;e<n;e++)for(var r=arguments[e],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i}var _=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},b=new function(){this.browser=new _,this.node=!1,this.wxa=!1,this.worker=!1,this.canvasSupported=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(b.wxa=!0,b.canvasSupported=!0,b.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?(b.worker=!0,b.canvasSupported=!0):"undefined"==typeof navigator?(b.node=!0,b.canvasSupported=!0,b.svgSupported=!0):(Y=navigator.userAgent,ze=(Zt=b).browser,Dt=Y.match(/Firefox\/([\d.]+)/),z=Y.match(/MSIE\s([\d.]+)/)||Y.match(/Trident\/.+?rv:(([\d.]+))/),U=Y.match(/Edge?\/([\d.]+)/),Y=/micromessenger/i.test(Y),Dt&&(ze.firefox=!0,ze.version=Dt[1]),z&&(ze.ie=!0,ze.version=z[1]),U&&(ze.edge=!0,ze.version=U[1],ze.newEdge=18<+U[1].split(".")[0]),Y&&(ze.weChat=!0),Zt.canvasSupported=!!document.createElement("canvas").getContext,Zt.svgSupported="undefined"!=typeof SVGRect,Zt.touchEventsSupported="ontouchstart"in window&&!ze.ie&&!ze.edge,Zt.pointerEventsSupported="onpointerdown"in window&&(ze.edge||ze.ie&&11<=+ze.version),Zt.domSupported="undefined"!=typeof document,Dt=document.documentElement.style,Zt.transform3dSupported=(ze.ie&&"transition"in Dt||ze.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in Dt)&&!("OTransition"in Dt),Zt.transformSupported=Zt.transform3dSupported||ze.ie&&9<=+ze.version);var x={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},w={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0},E=Object.prototype.toString,z=Array.prototype,V=z.forEach,H=z.filter,W=z.slice,G=z.map,U=function(){}.constructor,Y=U?U.prototype:null,Z={};function K(t,e){Z[t]=e}var $=2311;function J(){return $++}function Q(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function M(t){if(null==t||"object"!=typeof t)return t;var e=t,n=E.call(t);if("[object Array]"===n){if(!Tt(t))for(var e=[],i=0,o=t.length;i<o;i++)e[i]=M(t[i])}else if(w[n]){if(!Tt(t)){var r=t.constructor;if(r.from)e=r.from(t);else{e=new r(t.length);for(i=0,o=t.length;i<o;i++)e[i]=M(t[i])}}}else if(!x[n]&&!Tt(t)&&!pt(t))for(var a in e={},t)t.hasOwnProperty(a)&&(e[a]=M(t[a]));return e}function p(t,e,n){if(!D(e)||!D(t))return n?M(e):t;for(var i in e){var o,r;e.hasOwnProperty(i)&&(o=t[i],!D(r=e[i])||!D(o)||F(r)||F(o)||pt(r)||pt(o)||ut(r)||ut(o)||Tt(r)||Tt(o)?!n&&i in t||(t[i]=M(e[i])):p(o,r,n))}return t}function T(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function N(t,e,n){for(var i=k(e),o=0;o<i.length;o++){var r=i[o];(n?null!=e[r]:null==t[r])&&(t[r]=e[r])}return t}var tt=function(){return Z.createCanvas()};function A(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function et(t,e){var n,i=t.prototype;function o(){}for(n in o.prototype=e.prototype,t.prototype=new o,i)i.hasOwnProperty(n)&&(t.prototype[n]=i[n]);(t.prototype.constructor=t).superClass=e}function nt(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),o=0;o<i.length;o++){var r=i[o];"constructor"!==r&&(n?null!=e[r]:null==t[r])&&(t[r]=e[r])}else N(t,e,n)}function it(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function I(t,e,n){if(t&&e)if(t.forEach&&t.forEach===V)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,o=t.length;i<o;i++)e.call(n,t[i],i,t);else for(var r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function q(t,e,n){if(!t)return[];if(!e)return _t(t);if(t.map&&t.map===G)return t.map(e,n);for(var i=[],o=0,r=t.length;o<r;o++)i.push(e.call(n,t[o],o,t));return i}function ot(t,e,n,i){if(t&&e){for(var o=0,r=t.length;o<r;o++)n=e.call(i,n,t[o],o,t);return n}}function rt(t,e,n){if(!t)return[];if(!e)return _t(t);if(t.filter&&t.filter===H)return t.filter(e,n);for(var i=[],o=0,r=t.length;o<r;o++)e.call(n,t[o],o,t)&&i.push(t[o]);return i}function k(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e,n=[];for(e in t)t.hasOwnProperty(e)&&n.push(e);return n}Z.createCanvas=function(){return document.createElement("canvas")};var S=Y&&st(Y.bind)?Y.call.bind(Y.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(W.call(arguments)))}};function at(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(W.call(arguments)))}}function F(t){return Array.isArray?Array.isArray(t):"[object Array]"===E.call(t)}function st(t){return"function"==typeof t}function C(t){return"string"==typeof t}function lt(t){return"[object String]"===E.call(t)}function ht(t){return"number"==typeof t}function D(t){var e=typeof t;return"function"==e||!!t&&"object"==e}function ut(t){return!!x[E.call(t)]}function ct(t){return!!w[E.call(t)]}function pt(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function dt(t){return null!=t.colorStops}function ft(t){return null!=t.image}function gt(t){return"[object RegExp]"===E.call(t)}function yt(t){return t!=t}function mt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function L(t,e){return null!=t?t:e}function vt(t,e,n){return null!=t?t:null!=e?e:n}function _t(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return W.apply(t,e)}function xt(t){var e;return"number"==typeof t?[t,t,t,t]:2===(e=t.length)?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function wt(t,e){if(!t)throw new Error(e)}function bt(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var St="__ec_primitive__";function Mt(t){t[St]=!0}function Tt(t){return t[St]}At.prototype.get=function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},At.prototype.set=function(t,e){return this.data[t]=e},At.prototype.each=function(t,e){for(var n in this.data)this.data.hasOwnProperty(n)&&t.call(e,this.data[n],n)},At.prototype.keys=function(){return k(this.data)},At.prototype.removeKey=function(t){delete this.data[t]};var Ct=At;function At(t){this.data={};var n=F(t),i=(this.data={},this);function e(t,e){n?i.set(t,e):i.set(e,t)}t instanceof At?t.each(e):t&&I(t,e)}function P(t){return new Ct(t)}function It(t,e){var n,t=Object.create?Object.create(t):((n=function(){}).prototype=t,new n);return e&&T(t,e),t}function O(t,e){return t.hasOwnProperty(e)}function kt(){}var Dt=Object.freeze({__proto__:null,$override:K,HashMap:Ct,assert:wt,bind:S,clone:M,concatArray:function(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];for(var o=t.length,i=0;i<e.length;i++)n[i+o]=e[i];return n},createCanvas:tt,createHashMap:P,createObject:It,curry:at,defaults:N,each:I,eqNaN:yt,extend:T,filter:rt,find:function(t,e,n){if(t&&e)for(var i=0,o=t.length;i<o;i++)if(e.call(n,t[i],i,t))return t[i]},guid:J,hasOwn:O,indexOf:A,inherits:et,isArray:F,isArrayLike:it,isBuiltInObject:ut,isDom:pt,isFunction:st,isGradientObject:dt,isNumber:ht,isObject:D,isPatternObject:ft,isPrimitive:Tt,isRegExp:gt,isString:C,isStringSafe:lt,isTypedArray:ct,keys:k,logError:Q,map:q,merge:p,mergeAll:function(t,e){for(var n=t[0],i=1,o=t.length;i<o;i++)n=p(n,t[i],e);return n},mixin:nt,noop:kt,normalizeCssArray:xt,reduce:ot,retrieve:mt,retrieve2:L,retrieve3:vt,setAsPrimitive:Mt,slice:_t,trim:bt});function Pt(t,e){return[t=null==t?0:t,e=null==e?0:e]}function Lt(t){return[t[0],t[1]]}function Ot(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Rt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function Et(t){return Math.sqrt(Bt(t))}function Bt(t){return t[0]*t[0]+t[1]*t[1]}function zt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function Nt(t,e){var n=Et(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function Ft(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Vt=Ft;function Ht(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Wt=Ht;function Gt(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function Ut(t,e,n){var i=e[0],e=e[1];return t[0]=n[0]*i+n[2]*e+n[4],t[1]=n[1]*i+n[3]*e+n[5],t}function Xt(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function Yt(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var Zt=Object.freeze({__proto__:null,add:Ot,applyTransform:Ut,clone:Lt,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},create:Pt,dist:Vt,distSquare:Wt,distance:Ft,distanceSquare:Ht,div:function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},len:Et,lenSquare:Bt,length:Et,lengthSquare:Bt,lerp:Gt,max:Yt,min:Xt,mul:function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:Nt,scale:zt,scaleAndAdd:function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},set:function(t,e,n){return t[0]=e,t[1]=n,t},sub:Rt}),qt=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},jt=(Kt.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent;e&&((this._draggingTarget=e).dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new qt(e,t),"dragstart",t.event))},Kt.prototype._drag=function(t){var e,n,i,o,r=this._draggingTarget;r&&(e=t.offsetX,n=t.offsetY,i=e-this._x,o=n-this._y,this._x=e,this._y=n,r.drift(i,o,t),this.handler.dispatchToElement(new qt(r,t),"drag",t.event),i=this.handler.findHover(e,n,r).target,o=this._dropTarget,r!==(this._dropTarget=i))&&(o&&i!==o&&this.handler.dispatchToElement(new qt(o,t),"dragleave",t.event),i)&&i!==o&&this.handler.dispatchToElement(new qt(i,t),"dragenter",t.event)},Kt.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new qt(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new qt(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},Kt);function Kt(t){(this.handler=t).on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}Jt.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var o=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),n&&t){var r=this._$eventProcessor;null!=e&&r&&r.normalizeQuery&&(e=r.normalizeQuery(e)),o[t]||(o[t]=[]);for(var a=0;a<o[t].length;a++)if(o[t][a].h===n)return this;r={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},e=o[t].length-1,i=o[t][e];i&&i.callAtLast?o[t].splice(e,0,r):o[t].push(r)}return this},Jt.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},Jt.prototype.off=function(t,e){var n=this._$handlers;if(n)if(t)if(e){if(n[t]){for(var i=[],o=0,r=n[t].length;o<r;o++)n[t][o].h!==e&&i.push(n[t][o]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];else this._$handlers={};return this},Jt.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(this._$handlers){var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var r=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!o||!o.filter||null==l.query||o.filter(t,l.query))switch(r){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}o&&o.afterTrigger&&o.afterTrigger(t)}return this},Jt.prototype.triggerWithContext=function(t){if(this._$handlers){var e=this._$handlers[t],n=this._$eventProcessor;if(e)for(var i=arguments,o=i.length,r=i[o-1],a=e.length,s=0;s<a;s++){var l=e[s];if(!n||!n.filter||null==l.query||n.filter(t,l.query))switch(o){case 0:l.h.call(r);break;case 1:l.h.call(r,i[0]);break;case 2:l.h.call(r,i[0],i[1]);break;default:l.h.apply(r,i.slice(1,o-1))}}n&&n.afterTrigger&&n.afterTrigger(t)}return this};var $t=Jt;function Jt(t){t&&(this._$eventProcessor=t)}var Qt=Math.log(2);function te(t,e,n,i,o,r){var a,s=i+"-"+o,l=t.length;if(r.hasOwnProperty(s))return r[s];if(1===e)return a=Math.round(Math.log((1<<l)-1&~o)/Qt),t[n][a];for(var h=i|1<<n,u=n+1;i&1<<u;)u++;for(var c=0,p=0,d=0;p<l;p++){var f=1<<p;f&o||(c+=(d%2?-1:1)*t[n][p]*te(t,e-1,u,h,o|f,r),d++)}return r[s]=c}function ee(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},o=te(n,8,0,0,0,i);if(0!==o){for(var r=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==r[s]&&(r[s]=0),r[s]+=((a+s)%2?-1:1)*te(n,7,0===a?1:0,1<<a,1<<s,i)/o*e[a];return function(t,e,n){var i=e*r[6]+n*r[7]+1;t[0]=(e*r[0]+n*r[1]+r[2])/i,t[1]=(e*r[3]+n*r[4]+r[5])/i}}}var ne="___zrEVENTSAVED",ie=[];function oe(t,e,n,i,o){if(e.getBoundingClientRect&&b.domSupported&&!re(e)){var r=e[ne]||(e[ne]={}),e=function(t,e,n){for(var i=n?"invTrans":"trans",o=e[i],r=e.srcCoords,a=[],s=[],l=!0,h=0;h<4;h++){var u=t[h].getBoundingClientRect(),c=2*h,p=u.left,u=u.top;a.push(p,u),l=l&&r&&p===r[c]&&u===r[1+c],s.push(t[h].offsetLeft,t[h].offsetTop)}return l&&o?o:(e.srcCoords=a,e[i]=n?ee(s,a):ee(a,s))}(function(t,e){var n=e.markers;if(!n){n=e.markers=[];for(var i=["left","right"],o=["top","bottom"],r=0;r<4;r++){var a=document.createElement("div"),s=a.style,l=r%2,h=(r>>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",o[h]+":0",i[1-l]+":auto",o[1-h]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}}return n}(e,r),r,o);if(e)return e(t,n,i),!0}return!1}function re(t){return"CANVAS"===t.nodeName.toUpperCase()}var ae="undefined"!=typeof window&&!!window.addEventListener,se=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,le=[];function he(t,e,n,i){return n=n||{},i||!b.canvasSupported?ue(t,e,n):b.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):ue(t,e,n),n}function ue(t,e,n){if(b.domSupported&&t.getBoundingClientRect){var i,o=e.clientX,e=e.clientY;if(re(t))return i=t.getBoundingClientRect(),n.zrX=o-i.left,void(n.zrY=e-i.top);if(oe(le,t,o,e))return n.zrX=le[0],void(n.zrY=le[1])}n.zrX=n.zrY=0}function ce(t){return t||window.event}function pe(t,e,n){var i;return null==(e=ce(e)).zrX&&((i=e.type)&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&he(t,i,e,n):(he(t,e,e,n),i=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,t=t.deltaY;return null!=n&&null!=t?3*(0!==t?Math.abs(t):Math.abs(n))*(0<t||!(t<0)&&0<n?-1:1):e}(e),e.zrDelta=i?i/120:-(e.detail||0)/3),t=e.button,null==e.which&&void 0!==t&&se.test(e.type))&&(e.which=1&t?1:2&t?3:4&t?2:0),e}var de=ae?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};function fe(t){return 2===t.which||3===t.which}ye.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},ye.prototype.clear=function(){return this._track.length=0,this},ye.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var o={points:[],touches:[],target:e,event:t},r=0,a=i.length;r<a;r++){var s=i[r],l=he(n,s,{});o.points.push([l.zrX,l.zrY]),o.touches.push(s)}this._track.push(o)}},ye.prototype._recognize=function(t){for(var e in ve)if(ve.hasOwnProperty(e)){e=ve[e](this._track,t);if(e)return e}};var ge=ye;function ye(){this._track=[]}function me(t){var e=t[1][0]-t[0][0],t=t[1][1]-t[0][1];return Math.sqrt(e*e+t*t)}var ve={pinch:function(t,e){var n,i=t.length;if(i)return n=(t[i-1]||{}).points,(i=(t[i-2]||{}).points||n)&&1<i.length&&n&&1<n.length?(i=me(n)/me(i),isFinite(i)||(i=1),e.pinchScale=i,i=[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2],e.pinchX=i[0],e.pinchY=i[1],{type:"pinch",target:t[0].target,event:e}):void 0}};function _e(){de(this.event)}h(be,xe=$t),be.prototype.dispose=function(){},be.prototype.setCursor=function(){};var xe,we=be;function be(){var t=null!==xe&&xe.apply(this,arguments)||this;return t.handler=null,t}var Se,Me=function(t,e){this.x=t,this.y=e},Te=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ce=(h(Ae,Se=$t),Ae.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(I(Te,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},Ae.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=Ie(this,e,n),o=this._hovered,r=o.target,i=(r&&!r.__zr&&(r=(o=this.findHover(o.x,o.y)).target),this._hovered=i?new Me(e,n):this.findHover(e,n)),e=i.target,n=this.proxy;n.setCursor&&n.setCursor(e?e.cursor:"default"),r&&e!==r&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(i,"mousemove",t),e&&e!==r&&this.dispatchToElement(i,"mouseover",t)},Ae.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},Ae.prototype.resize=function(){this._hovered=new Me(0,0)},Ae.prototype.dispatch=function(t,e){t=this[t];t&&t.call(this,e)},Ae.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},Ae.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},Ae.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var o="on"+e,r={type:e,event:n,target:(t=t).target,topTarget:t.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:_e};i&&(i[o]&&(r.cancelBubble=!!i[o].call(i,r)),i.trigger(e,r),i=i.__hostTarget||i.parent,!r.cancelBubble););r.cancelBubble||(this.trigger(e,r),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[o]&&t[o].call(t,r),t.trigger&&t.trigger(e,r)}))}},Ae.prototype.findHover=function(t,e,n){for(var i=this.storage.getDisplayList(),o=new Me(t,e),r=i.length-1;0<=r;r--){var a=void 0;if(i[r]!==n&&!i[r].ignore&&(a=function(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,o=void 0,r=!1;i;){if(!(r=i.ignoreClip?!0:r)){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(o=!0)}a=i.__hostTarget;i=a||i.parent}return!o||"silent"}return!1}(i[r],t,e))&&(o.topTarget||(o.topTarget=i[r]),"silent"!==a)){o.target=i[r];break}}return o},Ae.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new ge);var n=this._gestureMgr,i=("start"===e&&n.clear(),n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom));"end"===e&&n.clear(),i&&(e=i.type,t.gestureEvent=e,(n=new Me).target=i.target,this.dispatchToElement(n,e,i.event))},Ae);function Ae(t,e,n,i){var o=Se.call(this)||this;return o._hovered=new Me(0,0),o.storage=t,o.painter=e,o.painterRoot=i,n=n||new we,o.proxy=null,o.setHandlerProxy(n),o._draggingMgr=new jt(o),o}function Ie(t,e,n){t=t.painter;return e<0||e>t.getWidth()||n<0||n>t.getHeight()}function ke(){return[1,0,0,1,0,0]}function De(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Pe(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Le(t,e,n){var i=e[0]*n[0]+e[2]*n[1],o=e[1]*n[0]+e[3]*n[1],r=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],n=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=o,t[2]=r,t[3]=a,t[4]=s,t[5]=n,t}function Oe(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function Re(t,e,n){var i=e[0],o=e[2],r=e[4],a=e[1],s=e[3],e=e[5],l=Math.sin(n),n=Math.cos(n);return t[0]=i*n+a*l,t[1]=-i*l+a*n,t[2]=o*n+s*l,t[3]=-o*l+n*s,t[4]=n*r+l*e,t[5]=n*e-l*r,t}function Ee(t,e,n){var i=n[0],n=n[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function Be(t,e){var n=e[0],i=e[2],o=e[4],r=e[1],a=e[3],e=e[5],s=n*a-r*i;return s?(t[0]=a*(s=1/s),t[1]=-r*s,t[2]=-i*s,t[3]=n*s,t[4]=(i*e-a*o)*s,t[5]=(r*o-n*e)*s,t):null}I(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){Ce.prototype[a]=function(t){var e,n,i=t.zrX,o=t.zrY,r=Ie(this,i,o);if("mouseup"===a&&r||(n=(e=this.findHover(i,o)).target),"mousedown"===a)this._downEl=n,this._downPoint=[t.zrX,t.zrY],this._upEl=n;else if("mouseup"===a)this._upEl=n;else if("click"===a){if(this._downEl!==this._upEl||!this._downPoint||4<Vt(this._downPoint,[t.zrX,t.zrY]))return;this._downPoint=null}this.dispatchToElement(e,a,t)}});var ze=Object.freeze({__proto__:null,clone:function(t){var e=ke();return Pe(e,t),e},copy:Pe,create:ke,identity:De,invert:Be,mul:Le,rotate:Re,scale:Ee,translate:Oe}),Ne=De;function Fe(t){return 5e-5<t||t<-5e-5}var Ve=[],He=[],We=ke(),Ge=Math.abs,Ue=(Xe.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},Xe.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},Xe.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},Xe.prototype.needLocalTransform=function(){return Fe(this.rotation)||Fe(this.x)||Fe(this.y)||Fe(this.scaleX-1)||Fe(this.scaleY-1)},Xe.prototype.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),i=this.transform;n||e?(i=i||ke(),n?this.getLocalTransform(i):Ne(i),e&&(n?Le(i,t.transform,i):Pe(i,t.transform)),this.transform=i,this._resolveGlobalScaleRatio(i)):i&&Ne(i)},Xe.prototype._resolveGlobalScaleRatio=function(t){var e,n,i=this.globalScaleRatio;null!=i&&1!==i&&(this.getGlobalScale(Ve),n=((Ve[1]-(n=Ve[1]<0?-1:1))*i+n)/Ve[1]||0,t[0]*=i=((Ve[0]-(e=Ve[0]<0?-1:1))*i+e)/Ve[0]||0,t[1]*=i,t[2]*=n,t[3]*=n),this.invTransform=this.invTransform||ke(),Be(this.invTransform,t)},Xe.prototype.getLocalTransform=function(t){return Xe.getLocalTransform(this,t)},Xe.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},Xe.prototype.setLocalTransform=function(t){var e,n;t&&(e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],Fe(e-1)&&(e=Math.sqrt(e)),Fe(n-1)&&(n=Math.sqrt(n)),t[0]<0&&(e=-e),t[3]<0&&(n=-n),this.rotation=Math.atan2(-t[1]/n,t[0]/e),e<0&&n<0&&(this.rotation+=Math.PI,e=-e,n=-n),this.x=t[4],this.y=t[5],this.scaleX=e,this.scaleY=n)},Xe.prototype.decomposeTransform=function(){var t,e,n;this.transform&&(e=this.parent,t=this.transform,e&&e.transform&&(Le(He,e.invTransform,t),t=He),e=this.originX,n=this.originY,(e||n)&&(We[4]=e,We[5]=n,Le(He,t,We),He[4]-=e,He[5]-=n,t=He),this.setLocalTransform(t))},Xe.prototype.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[0]=1,t[1]=1),t},Xe.prototype.transformCoordToLocal=function(t,e){t=[t,e],e=this.invTransform;return e&&Ut(t,t,e),t},Xe.prototype.transformCoordToGlobal=function(t,e){t=[t,e],e=this.transform;return e&&Ut(t,t,e),t},Xe.prototype.getLineScale=function(){var t=this.transform;return t&&1e-10<Ge(t[0]-1)&&1e-10<Ge(t[3]-1)?Math.sqrt(Ge(t[0]*t[3]-t[2]*t[1])):1},Xe.getLocalTransform=function(t,e){Ne(e=e||[]);var n=t.originX||0,i=t.originY||0,o=t.scaleX,r=t.scaleY,a=t.rotation||0,s=t.x,t=t.y;return e[4]-=n,e[5]-=i,e[0]*=o,e[1]*=r,e[2]*=o,e[3]*=r,e[4]*=o,e[5]*=r,a&&Re(e,e,a),e[4]+=n,e[5]+=i,e[4]+=s,e[5]+=t,e},Xe.initDefaultProps=((wn=Xe.prototype).x=0,wn.y=0,wn.scaleX=1,wn.scaleY=1,wn.originX=0,wn.originY=0,wn.rotation=0,void(wn.globalScaleRatio=1)),Xe);function Xe(){}var Ye={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return--t*t*(2.70158*t+1.70158)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((1+e)*t-e)*.5:.5*((t-=2)*t*((1+e)*t+e)+2)},bounceIn:function(t){return 1-Ye.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Ye.bounceIn(2*t):.5*Ye.bounceOut(2*t-1)+.5}},Ze=(qe.prototype.step=function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),!this._paused){var n=(t-this._startTime-this._pausedTime)/this._life,i=(n<0&&(n=0),n=Math.min(n,1),this.easing),i="string"==typeof i?Ye[i]:i,i="function"==typeof i?i(n):n;if(this.onframe&&this.onframe(i),1===n){if(!this.loop)return!0;this._restart(t),this.onrestart&&this.onrestart()}return!1}this._pausedTime+=e},qe.prototype._restart=function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0},qe.prototype.pause=function(){this._paused=!0},qe.prototype.resume=function(){this._paused=!1},qe);function qe(t){this._initialized=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart}var je=function(t){this.value=t},Ke=($e.prototype.insert=function(t){t=new je(t);return this.insertEntry(t),t},$e.prototype.insertEntry=function(t){this.head?((this.tail.next=t).prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},$e.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},$e.prototype.len=function(){return this._len},$e.prototype.clear=function(){this.head=this.tail=null,this._len=0},$e);function $e(){this._len=0}Qe.prototype.put=function(t,e){var n,i,o=this._list,r=this._map,a=null;return null==r[t]&&(i=o.len(),n=this._lastRemovedEntry,i>=this._maxSize&&0<i&&(i=o.head,o.remove(i),delete r[i.key],a=i.value,this._lastRemovedEntry=i),n?n.value=e:n=new je(e),n.key=t,o.insertEntry(n),r[t]=n),a},Qe.prototype.get=function(t){var t=this._map[t],e=this._list;if(null!=t)return t!==e.tail&&(e.remove(t),e.insertEntry(t)),t.value},Qe.prototype.clear=function(){this._list.clear(),this._map={}},Qe.prototype.len=function(){return this._list.len()};var Je=Qe;function Qe(t){this._list=new Ke,this._maxSize=10,this._map={},this._maxSize=t}var tn={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function en(t){return(t=Math.round(t))<0?0:255<t?255:t}function nn(t){return t<0?0:1<t?1:t}function on(t){return t.length&&"%"===t.charAt(t.length-1)?en(parseFloat(t)/100*255):en(parseInt(t,10))}function rn(t){return t.length&&"%"===t.charAt(t.length-1)?nn(parseFloat(t)/100):nn(parseFloat(t))}function an(t,e,n){return n<0?n+=1:1<n&&--n,6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function sn(t,e,n){return t+(e-t)*n}function ln(t,e,n,i,o){return t[0]=e,t[1]=n,t[2]=i,t[3]=o,t}function hn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var un=new Je(20),cn=null;function pn(t,e){cn&&hn(cn,e),cn=un.put(t,cn||e.slice())}function dn(t,e){if(t){e=e||[];var n=un.get(t);if(n)return hn(e,n);n=(t+="").replace(/ /g,"").toLowerCase();if(n in tn)return hn(e,tn[n]),pn(t,e),e;var i=n.length;if("#"===n.charAt(0))return 4===i||5===i?0<=(o=parseInt(n.slice(1,4),16))&&o<=4095?(ln(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===i?parseInt(n.slice(4),16)/15:1),pn(t,e),e):void ln(e,0,0,0,1):7===i||9===i?0<=(o=parseInt(n.slice(1,7),16))&&o<=16777215?(ln(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===i?parseInt(n.slice(7),16)/255:1),pn(t,e),e):void ln(e,0,0,0,1):void 0;var o=n.indexOf("("),r=n.indexOf(")");if(-1!==o&&r+1===i){var i=n.substr(0,o),a=n.substr(o+1,r-(o+1)).split(","),s=1;switch(i){case"rgba":if(4!==a.length)return 3===a.length?ln(e,+a[0],+a[1],+a[2],1):ln(e,0,0,0,1);s=rn(a.pop());case"rgb":return 3!==a.length?void ln(e,0,0,0,1):(ln(e,on(a[0]),on(a[1]),on(a[2]),s),pn(t,e),e);case"hsla":return 4!==a.length?void ln(e,0,0,0,1):(a[3]=rn(a[3]),fn(a,e),pn(t,e),e);case"hsl":return 3!==a.length?void ln(e,0,0,0,1):(fn(a,e),pn(t,e),e);default:return}}ln(e,0,0,0,1)}}function fn(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=rn(t[1]),o=rn(t[2]),i=o<=.5?o*(i+1):o+i-o*i,o=2*o-i;return ln(e=e||[],en(255*an(o,i,n+1/3)),en(255*an(o,i,n)),en(255*an(o,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function gn(t,e){var n=dn(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,255<n[i]?n[i]=255:n[i]<0&&(n[i]=0);return _n(n,4===n.length?"rgba":"rgb")}}function yn(t){t=dn(t);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function mn(t,e,n){var i,o,r;if(e&&e.length&&0<=t&&t<=1)return n=n||[],t=t*(e.length-1),i=Math.floor(t),r=Math.ceil(t),o=e[i],e=e[r],n[0]=en(sn(o[0],e[0],r=t-i)),n[1]=en(sn(o[1],e[1],r)),n[2]=en(sn(o[2],e[2],r)),n[3]=nn(sn(o[3],e[3],r)),n}function vn(t,e,n){var i,o,r,a;if(e&&e.length&&0<=t&&t<=1)return t=t*(e.length-1),i=Math.floor(t),o=Math.ceil(t),a=dn(e[i]),e=dn(e[o]),a=_n([en(sn(a[0],e[0],r=t-i)),en(sn(a[1],e[1],r)),en(sn(a[2],e[2],r)),nn(sn(a[3],e[3],r))],"rgba"),n?{color:a,leftIndex:i,rightIndex:o,value:t}:a}function _n(t,e){var n;if(t&&t.length)return n=t[0]+","+t[1]+","+t[2],"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}function xn(t,e){t=dn(t);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var wn=Object.freeze({__proto__:null,fastLerp:mn,fastMapToColor:mn,lerp:vn,lift:gn,lum:xn,mapToColor:vn,modifyAlpha:function(t,e){if((t=dn(t))&&null!=e)return t[3]=nn(e),_n(t,"rgba")},modifyHSL:function(t,e,n,i){var o=dn(t);if(t)return o=function(t){var e,n,i,o,r,a,s,l,h,u;if(t)return u=t[0]/255,e=t[1]/255,n=t[2]/255,s=Math.min(u,e,n),o=((i=Math.max(u,e,n))+s)/2,0==(h=i-s)?a=r=0:(a=o<.5?h/(i+s):h/(2-i-s),s=((i-u)/6+h/2)/h,l=((i-e)/6+h/2)/h,h=((i-n)/6+h/2)/h,u===i?r=h-l:e===i?r=1/3+s-h:n===i&&(r=2/3+l-s),r<0&&(r+=1),1<r&&--r),u=[360*r,a,o],null!=t[3]&&u.push(t[3]),u}(o),null!=e&&(o[0]=(t=e,(t=Math.round(t))<0?0:360<t?360:t)),null!=n&&(o[1]=rn(n)),null!=i&&(o[2]=rn(i)),_n(fn(o),"rgba")},parse:dn,random:function(){return"rgb("+Math.round(255*Math.random())+","+Math.round(255*Math.random())+","+Math.round(255*Math.random())+")"},stringify:_n,toHex:yn}),bn=Array.prototype.slice;function Sn(t,e,n){return(e-t)*n+t}function Mn(t,e,n,i){for(var o=e.length,r=0;r<o;r++)t[r]=Sn(e[r],n[r],i)}function Tn(t,e,n,i){for(var o=e.length,r=0;r<o;r++)t[r]=e[r]+n[r]*i;return t}function Cn(t,e,n,i){for(var o=e.length,r=o&&e[0].length,a=0;a<o;a++){t[a]||(t[a]=[]);for(var s=0;s<r;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function An(t,e){var n=t.length;if(n===e.length){for(var i=0;i<n;i++)if(t[i]!==e[i])return;return 1}}function In(t,e,n,i,o,r,a){t=.5*(n-t),i=.5*(i-e);return(2*(e-n)+t+i)*a+(-3*(e-n)-2*t-i)*r+t*o+e}function kn(t,e,n,i,o,r,a,s){for(var l=e.length,h=0;h<l;h++)t[h]=In(e[h],n[h],i[h],o[h],r,a,s)}function Dn(t){if(it(t)){var e=t.length;if(it(t[0])){for(var n=[],i=0;i<e;i++)n.push(bn.call(t[i]));return n}return bn.call(t)}return t}function Pn(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}var Ln=[0,0,0,0],On=(Rn.prototype.isFinished=function(){return this._finished},Rn.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},Rn.prototype.needsAnimate=function(){return!this._isAllValueEqual&&2<=this.keyframes.length&&this.interpolable},Rn.prototype.getAdditiveTrack=function(){return this._additiveTrack},Rn.prototype.addKeyframe=function(t,e){t>=this.maxTime?this.maxTime=t:this._needsSort=!0;var n=this.keyframes,i=n.length;if(this.interpolable)if(it(e)){var o,r=it((r=e)&&r[0])?2:1;if(0<i&&this.arrDim!==r)return void(this.interpolable=!1);if(1==r&&"number"!=typeof e[0]||2==r&&"number"!=typeof e[0][0])return void(this.interpolable=!1);0<i&&(o=n[i-1],!this._isAllValueEqual||1==r&&An(e,o.value)||(this._isAllValueEqual=!1)),this.arrDim=r}else{if(0<this.arrDim)return void(this.interpolable=!1);if("string"==typeof e){r=dn(e);r?(e=r,this.isValueColor=!0):this.interpolable=!1}else if("number"!=typeof e||isNaN(e))return void(this.interpolable=!1);this._isAllValueEqual&&0<i&&(o=n[i-1],this.isValueColor&&!An(o.value,e)||o.value!==e)&&(this._isAllValueEqual=!1)}n={time:t,value:e,percent:0};return this.keyframes.push(n),n},Rn.prototype.prepare=function(t){for(var e=this.keyframes,n=(this._needsSort&&e.sort(function(t,e){return t.time-e.time}),this.arrDim),i=e.length,o=e[i-1],r=0;r<i;r++)if(e[r].percent=e[r].time/this.maxTime,0<n&&r!==i-1){f=d=p=c=u=h=l=s=a=void 0;var a=e[r].value,s=o.value,l=n,h=a,u=s;if(h.push&&u.push){var a=h.length,c=u.length;if(a!==c)if(c<a)h.length=c;else for(var p=a;p<c;p++)h.push(1===l?u[p]:bn.call(u[p]));for(var d=h[0]&&h[0].length,p=0;p<h.length;p++)if(1===l)isNaN(h[p])&&(h[p]=u[p]);else for(var f=0;f<d;f++)isNaN(h[p][f])&&(h[p][f]=u[p][f])}}if(t&&this.needsAnimate()&&t.needsAnimate()&&n===t.arrDim&&this.isValueColor===t.isValueColor&&!t._finished){this._additiveTrack=t;for(var g=e[0].value,r=0;r<i;r++)0===n?this.isValueColor?e[r].additiveValue=Tn([],e[r].value,g,-1):e[r].additiveValue=e[r].value-g:1===n?e[r].additiveValue=Tn([],e[r].value,g,-1):2===n&&(e[r].additiveValue=Cn([],e[r].value,g,-1))}},Rn.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=null!=this._additiveTrack,i=n?"additiveValue":"value",o=this.keyframes,r=this.keyframes.length,a=this.propName,s=this.arrDim,l=this.isValueColor;if(e<0)h=0;else if(e<this._lastFramePercent){for(var h=Math.min(this._lastFrame+1,r-1);0<=h&&!(o[h].percent<=e);h--);h=Math.min(h,r-2)}else{for(h=this._lastFrame;h<r&&!(o[h].percent>e);h++);h=Math.min(h-1,r-2)}var u,c,p,d,f,g,y,m=o[h+1],v=o[h];v&&m&&(this._lastFrame=h,this._lastFramePercent=e,0!=(u=m.percent-v.percent))&&(u=(e-v.percent)/u,c=n?this._additiveValue:l?Ln:t[a],(0<s||l)&&!c&&(c=this._additiveValue=[]),this.useSpline?(y=o[h][i],g=o[0===h?h:h-1][i],p=o[r-2<h?r-1:h+1][i],d=o[r-3<h?r-1:h+2][i],0<s?(1===s?kn:function(t,e,n,i,o,r,a,s){for(var l=e.length,h=e[0].length,u=0;u<l;u++){t[u]||(t[1]=[]);for(var c=0;c<h;c++)t[u][c]=In(e[u][c],n[u][c],i[u][c],o[u][c],r,a,s)}})(c,g,y,p,d,u,u*u,u*u*u):l?(kn(c,g,y,p,d,u,u*u,u*u*u),n||(t[a]=Pn(c))):(f=void 0,f=this.interpolable?In(g,y,p,d,u,u*u,u*u*u):p,n?this._additiveValue=f:t[a]=f)):0<s?(1===s?Mn:function(t,e,n,i){for(var o=e.length,r=o&&e[0].length,a=0;a<o;a++){t[a]||(t[a]=[]);for(var s=0;s<r;s++)t[a][s]=Sn(e[a][s],n[a][s],i)}})(c,v[i],m[i],u):l?(Mn(c,v[i],m[i],u),n||(t[a]=Pn(c))):(f=void 0,f=this.interpolable?Sn(v[i],m[i],u):(g=v[i],y=m[i],.5<u?y:g),n?this._additiveValue=f:t[a]=f),n)&&this._addToTarget(t)}},Rn.prototype._addToTarget=function(t){var e=this.arrDim,n=this.propName,i=this._additiveValue;0===e?this.isValueColor?(dn(t[n],Ln),Tn(Ln,Ln,i,1),t[n]=Pn(Ln)):t[n]=t[n]+i:1===e?Tn(t[n],t[n],i,1):2===e&&Cn(t[n],t[n],i,1)},Rn);function Rn(t){this.keyframes=[],this.maxTime=0,this.arrDim=0,this.interpolable=!0,this._needsSort=!1,this._isAllValueEqual=!0,this._lastFrame=0,this._lastFramePercent=0,this.propName=t}Bn.prototype.getTarget=function(){return this._target},Bn.prototype.changeTarget=function(t){this._target=t},Bn.prototype.when=function(t,e){return this.whenWithKeys(t,e,k(e))},Bn.prototype.whenWithKeys=function(t,e,n){for(var i=this._tracks,o=0;o<n.length;o++){var r=n[o];if(!(s=i[r])){var a,s=i[r]=new On(r),l=void 0,h=this._getAdditiveTrack(r);if(h?(l=(a=h.keyframes[h.keyframes.length-1])&&a.value,h.isValueColor&&(l=l&&Pn(l))):l=this._target[r],null==l)continue;0!==t&&s.addKeyframe(0,Dn(l)),this._trackKeys.push(r)}s.addKeyframe(t,Dn(e[r]))}return this._maxTime=Math.max(this._maxTime,t),this},Bn.prototype.pause=function(){this._clip.pause(),this._paused=!0},Bn.prototype.resume=function(){this._clip.resume(),this._paused=!1},Bn.prototype.isPaused=function(){return!!this._paused},Bn.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneList;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},Bn.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedList;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},Bn.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},Bn.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var o=n[i].getTrack(t);o&&(e=o)}return e},Bn.prototype.start=function(t,e){if(!(0<this._started)){this._started=1;for(var r=this,a=[],n=0;n<this._trackKeys.length;n++){var i=this._trackKeys[n],o=this._tracks[i],i=this._getAdditiveTrack(i),s=o.keyframes;o.prepare(i),o.needsAnimate()?a.push(o):o.interpolable||(i=s[s.length-1])&&(r._target[o.propName]=i.value)}return a.length||e?(e=new Ze({life:this._maxTime,loop:this._loop,delay:this._delay,onframe:function(t){r._started=2;var e=r._additiveAnimators;if(e){for(var n=!1,i=0;i<e.length;i++)if(e[i]._clip){n=!0;break}n||(r._additiveAnimators=null)}for(i=0;i<a.length;i++)a[i].step(r._target,t);var o=r._onframeList;if(o)for(i=0;i<o.length;i++)o[i](r._target,t)},ondestroy:function(){r._doneCallback()}}),this._clip=e,this.animation&&this.animation.addClip(e),t&&"spline"!==t&&(e.easing=t)):this._doneCallback(),this}},Bn.prototype.stop=function(t){var e;this._clip&&(e=this._clip,t&&e.onframe(1),this._abortedCallback())},Bn.prototype.delay=function(t){return this._delay=t,this},Bn.prototype.during=function(t){return t&&(this._onframeList||(this._onframeList=[]),this._onframeList.push(t)),this},Bn.prototype.done=function(t){return t&&(this._doneList||(this._doneList=[]),this._doneList.push(t)),this},Bn.prototype.aborted=function(t){return t&&(this._abortedList||(this._abortedList=[]),this._abortedList.push(t)),this},Bn.prototype.getClip=function(){return this._clip},Bn.prototype.getTrack=function(t){return this._tracks[t]},Bn.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,o=0;o<t.length;o++){var r=n[t[o]];r&&(e?r.step(this._target,1):1===this._started&&r.step(this._target,0),r.setFinished())}for(var a=!0,o=0;o<i.length;o++)if(!n[i[o]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},Bn.prototype.saveFinalToTarget=function(t,e){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var i,o=e[n],r=this._tracks[o];r&&!r.isFinished()&&(i=(i=r.keyframes)[i.length-1])&&(i=Dn(i.value),r.isValueColor&&(i=Pn(i)),t[o]=i)}}},Bn.prototype.__changeFinalValue=function(t,e){e=e||k(t);for(var n=0;n<e.length;n++){var i,o=e[n],r=this._tracks[o];r&&1<(i=r.keyframes).length&&(i=i.pop(),r.addKeyframe(i.time,t[o]),r.prepare(r.getAdditiveTrack()))}};var En=Bn;function Bn(t,e,n){this._tracks={},this._trackKeys=[],this._delay=0,this._maxTime=0,this._paused=!1,this._started=0,this._clip=null,this._target=t,(this._loop=e)&&n?Q("Can' use additive animation on looped animation."):this._additiveAnimators=n}zn.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},zn.prototype.clone=function(){return new zn(this.x,this.y)},zn.prototype.set=function(t,e){return this.x=t,this.y=e,this},zn.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},zn.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},zn.prototype.scale=function(t){this.x*=t,this.y*=t},zn.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},zn.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},zn.prototype.dot=function(t){return this.x*t.x+this.y*t.y},zn.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},zn.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},zn.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},zn.prototype.distance=function(t){var e=this.x-t.x,t=this.y-t.y;return Math.sqrt(e*e+t*t)},zn.prototype.distanceSquare=function(t){var e=this.x-t.x,t=this.y-t.y;return e*e+t*t},zn.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},zn.prototype.transform=function(t){var e,n;if(t)return e=this.x,n=this.y,this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this},zn.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},zn.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},zn.set=function(t,e,n){t.x=e,t.y=n},zn.copy=function(t,e){t.x=e.x,t.y=e.y},zn.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},zn.lenSquare=function(t){return t.x*t.x+t.y*t.y},zn.dot=function(t,e){return t.x*e.x+t.y*e.y},zn.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},zn.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},zn.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},zn.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},zn.lerp=function(t,e,n,i){var o=1-i;t.x=o*e.x+i*n.x,t.y=o*e.y+i*n.y};var R=zn;function zn(t,e){this.x=t||0,this.y=e||0}var Nn=Math.min,Fn=Math.max,Vn=new R,Hn=new R,Wn=new R,Gn=new R,Un=new R,Xn=new R,X=(Yn.prototype.union=function(t){var e=Nn(t.x,this.x),n=Nn(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Fn(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Fn(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},Yn.prototype.applyTransform=function(t){Yn.applyTransform(this,this,t)},Yn.prototype.calculateTransform=function(t){var e=t.width/this.width,n=t.height/this.height,i=ke();return Oe(i,i,[-this.x,-this.y]),Ee(i,i,[e,n]),Oe(i,i,[t.x,t.y]),i},Yn.prototype.intersect=function(t,e){if(!t)return!1;t instanceof Yn||(t=Yn.create(t));var n,i,o,r,a,s,l,h,u=this,c=u.x,p=u.x+u.width,d=u.y,u=u.y+u.height,f=t.x,g=t.x+t.width,y=t.y,t=t.y+t.height,m=!(p<f||g<c||u<y||t<d);return e&&(n=1/0,i=0,o=Math.abs(p-f),r=Math.abs(g-c),a=Math.abs(u-y),s=Math.abs(t-d),l=Math.min(o,r),h=Math.min(a,s),p<f||g<c?i<l&&(i=l,o<r?R.set(Xn,-o,0):R.set(Xn,r,0)):l<n&&(n=l,o<r?R.set(Un,o,0):R.set(Un,-r,0)),u<y||t<d?i<h&&(i=h,a<s?R.set(Xn,0,-a):R.set(Xn,0,s)):l<n&&(n=l,a<s?R.set(Un,0,a):R.set(Un,0,-s))),e&&R.copy(e,m?Un:Xn),m},Yn.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},Yn.prototype.clone=function(){return new Yn(this.x,this.y,this.width,this.height)},Yn.prototype.copy=function(t){Yn.copy(this,t)},Yn.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},Yn.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Yn.prototype.isZero=function(){return 0===this.width||0===this.height},Yn.create=function(t){return new Yn(t.x,t.y,t.width,t.height)},Yn.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},Yn.applyTransform=function(t,e,n){var i,o,r,a;n?n[1]<1e-5&&-1e-5<n[1]&&n[2]<1e-5&&-1e-5<n[2]?(i=n[0],o=n[3],r=n[4],a=n[5],t.x=e.x*i+r,t.y=e.y*o+a,t.width=e.width*i,t.height=e.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height)):(Vn.x=Wn.x=e.x,Vn.y=Gn.y=e.y,Hn.x=Gn.x=e.x+e.width,Hn.y=Wn.y=e.y+e.height,Vn.transform(n),Gn.transform(n),Hn.transform(n),Wn.transform(n),t.x=Nn(Vn.x,Hn.x,Wn.x,Gn.x),t.y=Nn(Vn.y,Hn.y,Wn.y,Gn.y),r=Fn(Vn.x,Hn.x,Wn.x,Gn.x),a=Fn(Vn.y,Hn.y,Wn.y,Gn.y),t.width=r-t.x,t.height=a-t.y):t!==e&&Yn.copy(t,e)},Yn);function Yn(t,e,n,i){n<0&&isFinite(n)&&(t+=n,n=-n),i<0&&isFinite(i)&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}var Zn,qn,jn={},Kn="12px sans-serif";var $n={measureText:function(t,e){return Zn=Zn||tt().getContext("2d"),qn!==e&&(qn=Zn.font=e||Kn),Zn.measureText(t)}};function Jn(t,e){var n=jn[e=e||Kn],i=(n=n||(jn[e]=new Je(500))).get(t);return null==i&&(i=$n.measureText(t,e).width,n.put(t,i)),i}function Qn(t,e,n,i){t=Jn(t,e),e=ii(e),n=ei(0,t,n),i=ni(0,e,i);return new X(n,i,t,e)}function ti(t,e,n,i){var o=((t||"")+"").split("\n");if(1===o.length)return Qn(o[0],e,n,i);for(var r=new X(0,0,0,0),a=0;a<o.length;a++){var s=Qn(o[a],e,n,i);0===a?r.copy(s):r.union(s)}return r}function ei(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function ni(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function ii(t){return Jn("国",t)}function oi(t,e){return"string"==typeof t?0<=t.lastIndexOf("%")?parseFloat(t)/100*e:parseFloat(t):t}function ri(t,e,n){var i=e.position||"inside",o=null!=e.distance?e.distance:5,r=n.height,a=n.width,s=r/2,l=n.x,h=n.y,u="left",c="top";if(i instanceof Array)l+=oi(i[0],n.width),h+=oi(i[1],n.height),c=u=null;else switch(i){case"left":l-=o,h+=s,u="right",c="middle";break;case"right":l+=o+a,h+=s,c="middle";break;case"top":l+=a/2,h-=o,u="center",c="bottom";break;case"bottom":l+=a/2,h+=r+o,u="center";break;case"inside":l+=a/2,h+=s,u="center",c="middle";break;case"insideLeft":l+=o,h+=s,c="middle";break;case"insideRight":l+=a-o,h+=s,u="right",c="middle";break;case"insideTop":l+=a/2,h+=o,u="center";break;case"insideBottom":l+=a/2,h+=r-o,u="center",c="bottom";break;case"insideTopLeft":l+=o,h+=o;break;case"insideTopRight":l+=a-o,h+=o,u="right";break;case"insideBottomLeft":l+=o,h+=r-o,c="bottom";break;case"insideBottomRight":l+=a-o,h+=r-o,u="right",c="bottom"}return(t=t||{}).x=l,t.y=h,t.align=u,t.verticalAlign=c,t}var ai,si,li=1,hi=li="undefined"!=typeof window?Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1):li,ui="#333",ci="#ccc",pi="__zr_normal__",di=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],fi={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},gi={},yi=new X(0,0,0,0),mi=(d.prototype._init=function(t){this.attr(t)},d.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;(i=i||(this.transform=[1,0,0,1,0,0]))[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},d.prototype.beforeUpdate=function(){},d.prototype.afterUpdate=function(){},d.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},d.prototype.updateInnerText=function(t){var e,n,i,o,r,a,s,l,h,u,c=this._textContent;!c||c.ignore&&!t||(this.textConfig||(this.textConfig={}),l=(t=this.textConfig).local,i=n=void 0,o=!1,(e=c.attachedTransform).parent=l?this:null,u=!1,e.x=c.x,e.y=c.y,e.originX=c.originX,e.originY=c.originY,e.rotation=c.rotation,e.scaleX=c.scaleX,e.scaleY=c.scaleY,null!=t.position&&(h=yi,t.layoutRect?h.copy(t.layoutRect):h.copy(this.getBoundingRect()),l||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(gi,t,h):ri(gi,t,h),e.x=gi.x,e.y=gi.y,n=gi.align,i=gi.verticalAlign,r=t.origin)&&null!=t.rotation&&(s=a=void 0,s="center"===r?(a=.5*h.width,.5*h.height):(a=oi(r[0],h.width),oi(r[1],h.height)),u=!0,e.originX=-e.x+a+(l?0:h.x),e.originY=-e.y+s+(l?0:h.y)),null!=t.rotation&&(e.rotation=t.rotation),(r=t.offset)&&(e.x+=r[0],e.y+=r[1],u||(e.originX=-r[0],e.originY=-r[1])),a=null==t.inside?"string"==typeof t.position&&0<=t.position.indexOf("inside"):t.inside,s=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),u=h=l=void 0,a&&this.canBeInsideText()?(l=t.insideFill,h=t.insideStroke,null!=l&&"auto"!==l||(l=this.getInsideTextFill()),null!=h&&"auto"!==h||(h=this.getInsideTextStroke(l),u=!0)):(l=t.outsideFill,h=t.outsideStroke,null!=l&&"auto"!==l||(l=this.getOutsideFill()),null!=h&&"auto"!==h||(h=this.getOutsideStroke(l),u=!0)),(l=l||"#000")===s.fill&&h===s.stroke&&u===s.autoStroke&&n===s.align&&i===s.verticalAlign||(o=!0,s.fill=l,s.stroke=h,s.autoStroke=u,s.align=n,s.verticalAlign=i,c.setDefaultTextStyle(s)),o&&c.dirtyStyle(),c.markRedraw())},d.prototype.canBeInsideText=function(){return!0},d.prototype.getInsideTextFill=function(){return"#fff"},d.prototype.getInsideTextStroke=function(t){return"#000"},d.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ci:ui},d.prototype.getOutsideStroke=function(t){for(var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&dn(e),i=(n=n||[255,255,255,1])[3],o=this.__zr.isDarkMode(),r=0;r<3;r++)n[r]=n[r]*i+(o?0:255)*(1-i);return n[3]=1,_n(n,"rgba")},d.prototype.traverse=function(t,e){},d.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},T(this.extra,e)):this[t]=e},d.prototype.hide=function(){this.ignore=!0,this.markRedraw()},d.prototype.show=function(){this.ignore=!1,this.markRedraw()},d.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(D(t))for(var n=k(t),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,t[o])}return this.markRedraw(),this},d.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],o=i.__fromStateTransition;o&&o!==pi||(o=(o=i.targetName)?e[o]:e,i.saveFinalToTarget(o))}},d.prototype._innerSaveToNormal=function(t){var e=(e=this._normalState)||(this._normalState={});t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,di)},d.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var o=n[i];null==t[o]||o in e||(e[o]=this[o])}},d.prototype.hasState=function(){return 0<this.currentStates.length},d.prototype.getState=function(t){return this.states[t]},d.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},d.prototype.clearStates=function(t){this.useState(pi,!1,t)},d.prototype.useState=function(t,e,n){var i=t===pi,o=this.hasState();if(o||!i){var r,o=this.currentStates,a=this.stateTransition;if(!(0<=A(o,t))||!e&&1!==o.length){if((r=(r=this.stateProxy&&!i?this.stateProxy(t):r)||this.states&&this.states[t])||i)return i||this.saveCurrentToNormalState(r),(o=!(!r||!r.hoverLayer))&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,r,this._normalState,e,!n&&!this.__inHover&&a&&0<a.duration,a),this._textContent&&this._textContent.useState(t,e),this._textGuide&&this._textGuide.useState(t,e),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!o&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~d.REDARAW_BIT),r;Q("State "+t+" not exists.")}}},d.prototype.useStates=function(t,e){if(t.length){var n=[],i=this.currentStates,o=t.length,r=o===i.length;if(r)for(var a=0;a<o;a++)if(t[a]!==i[a]){r=!1;break}if(!r){for(a=0;a<o;a++){var s=t[a],l=void 0;(l=(l=this.stateProxy?this.stateProxy(s,t):l)||this.states[s])&&n.push(l)}var h=!(!n[o-1]||!n[o-1].hoverLayer),u=(h&&this._toggleHoverLayerFlag(!0),this._mergeStates(n)),c=this.stateTransition;this.saveCurrentToNormalState(u),this._applyStateObj(t.join(","),u,this._normalState,!1,!e&&!this.__inHover&&c&&0<c.duration,c),this._textContent&&this._textContent.useStates(t),this._textGuide&&this._textGuide.useStates(t),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~d.REDARAW_BIT)}}else this.clearStates()},d.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},d.prototype.removeState=function(t){var e,t=A(this.currentStates,t);0<=t&&((e=this.currentStates.slice()).splice(t,1),this.useStates(e))},d.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),t=A(i,t),o=0<=A(i,e);0<=t?o?i.splice(t,1):i[t]=e:n&&!o&&i.push(e),this.useStates(i)},d.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},d.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var o=t[i];T(n,o),o.textConfig&&T(e=e||{},o.textConfig)}return e&&(n.textConfig=e),n},d.prototype._applyStateObj=function(t,e,n,i,o,r){for(var a=!(e&&i),s=(e&&e.textConfig?(this.textConfig=T({},(i?this:n).textConfig),T(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig),{}),l=!1,h=0;h<di.length;h++){var u=di[h],c=o&&fi[u];e&&null!=e[u]?c?(l=!0,s[u]=e[u]):this[u]=e[u]:a&&null!=n[u]&&(c?(l=!0,s[u]=n[u]):this[u]=n[u])}if(!o)for(h=0;h<this.animators.length;h++){var p=this.animators[h],d=p.targetName;p.__changeFinalValue(d?(e||n)[d]:e||n)}l&&this._transitionState(t,s,r)},d.prototype._attachComponent=function(t){if(t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");if(t===this)throw new Error("Recursive component attachment.");var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this},d.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},d.prototype.getClipPath=function(){return this._clipPath},d.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},d.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},d.prototype.getTextContent=function(){return this._textContent},d.prototype.setTextContent=function(t){var e=this._textContent;if(e!==t){if(e&&e!==t&&this.removeTextContent(),t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.attachedTransform=new Ue,this._attachComponent(t),this._textContent=t,this.markRedraw()}},d.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),T(this.textConfig,t),this.markRedraw()},d.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},d.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.attachedTransform=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},d.prototype.getTextGuideLine=function(){return this._textGuide},d.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},d.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},d.prototype.markRedraw=function(){this.__dirty|=d.REDARAW_BIT;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},d.prototype.dirty=function(){this.markRedraw()},d.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},d.prototype.addSelfToZr=function(t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)},d.prototype.removeSelfFromZr=function(t){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)},d.prototype.animate=function(t,e){var n=t?this[t]:this;if(n)return n=new En(n,e),this.addAnimator(n,t),n;Q('Property "'+t+'" is not existed in element '+this.id)},d.prototype.addAnimator=function(n,t){var e=this.__zr,i=this;n.during(function(){i.updateDuringAnimation(t)}).done(function(){var t=i.animators,e=A(t,n);0<=e&&t.splice(e,1)}),this.animators.push(n),e&&e.animation.addAnimator(n),e&&e.wakeUp()},d.prototype.updateDuringAnimation=function(t){this.markRedraw()},d.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,o=[],r=0;r<i;r++){var a=n[r];t&&t!==a.scope?o.push(a):a.stop(e)}return this.animators=o,this},d.prototype.animateTo=function(t,e,n){xi(this,t,e,n)},d.prototype.animateFrom=function(t,e,n){xi(this,t,e,n,!0)},d.prototype._transitionState=function(t,e,n,i){for(var o=xi(this,e,n,i),r=0;r<o.length;r++)o[r].__fromStateTransition=t},d.prototype.getBoundingRect=function(){return null},d.prototype.getPaintRect=function(){return null},d.REDARAW_BIT=1,d.initDefaultProps=((ai=d.prototype).type="element",ai.name="",ai.ignore=!1,ai.silent=!1,ai.isGroup=!1,ai.draggable=!1,ai.dragging=!1,ai.ignoreClip=!1,ai.__inHover=!1,ai.__dirty=d.REDARAW_BIT,si={},void(Object.defineProperty&&(!b.browser.ie||8<b.browser.version)&&(_i("position","_legacyPos","x","y"),_i("scale","_legacyScale","scaleX","scaleY"),_i("origin","_legacyOrigin","originX","originY")))),d);function d(t){this.id=$++,this.animators=[],this.currentStates=[],this.states={},this._init(t)}function vi(t,e,n){si[t+e+n]||(console.warn("DEPRECATED: '"+t+"' has been deprecated. use '"+e+"', '"+n+"' instead"),si[t+e+n]=!0)}function _i(e,n,i,o){function r(e,t){Object.defineProperty(t,0,{get:function(){return e[i]},set:function(t){e[i]=t}}),Object.defineProperty(t,1,{get:function(){return e[o]},set:function(t){e[o]=t}})}Object.defineProperty(ai,e,{get:function(){var t;return vi(e,i,o),this[n]||(t=this[n]=[],r(this,t)),this[n]},set:function(t){vi(e,i,o),this[i]=t[0],this[o]=t[1],this[n]=t,r(this,t)}})}function xi(t,e,n,i,o){function r(){h=!0,--l<=0&&(h?u&&u():c&&c())}function a(){--l<=0&&(h?u&&u():c&&c())}var s=[],l=(!function t(e,n,i,o,r,a,s,l){var h=[];var u=[];var c=k(o);var p=r.duration;var d=r.delay;var f=r.additive;var g=r.setToFinal;var y=!D(a);for(var m=0;m<c.length;m++){var v=c[m];null!=i[v]&&null!=o[v]&&(y||a[v])?D(o[v])&&!it(o[v])?n?l||(i[v]=o[v],e.updateDuringAnimation(n)):t(e,v,i[v],o[v],r,a&&a[v],s,l):(h.push(v),u.push(v)):l||(i[v]=o[v],e.updateDuringAnimation(n),u.push(v))}var _=h.length;if(0<_||r.force&&!s.length){for(var x=e.animators,w=[],b=0;b<x.length;b++)x[b].targetName===n&&w.push(x[b]);if(!f&&w.length)for(b=0;b<w.length;b++){var S=w[b].stopTracks(u);S&&(S=A(x,w[b]),x.splice(S,1))}var M=void 0,T=void 0,C=void 0;if(l){T={},g&&(M={});for(b=0;b<_;b++)T[v=h[b]]=i[v],g?M[v]=o[v]:i[v]=o[v]}else if(g){C={};for(b=0;b<_;b++)C[v=h[b]]=Dn(i[v]),bi(i,o,v)}f=new En(i,!1,f?w:null);f.targetName=n,r.scope&&(f.scope=r.scope),g&&M&&f.whenWithKeys(0,M,h),C&&f.whenWithKeys(0,C,h),f.whenWithKeys(null==p?500:p,l?T:o,h).delay(d||0),e.addAnimator(f,n),s.push(f)}}(t,"",t,e,n=n||{},i,s,o),s.length),h=!1,u=n.done,c=n.aborted;l||u&&u(),0<s.length&&n.during&&s[0].during(function(t,e){n.during(e)});for(var p=0;p<s.length;p++){var d=s[p];d.done(r),d.aborted(a),d.start(n.easing,n.force)}return s}function wi(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function bi(t,e,n){if(it(e[n]))if(it(t[n])||(t[n]=[]),ct(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),wi(t[n],e[n],i))}else{var o=e[n],r=t[n],a=o.length;if(it(o[0]))for(var s=o[0].length,l=0;l<a;l++)r[l]?wi(r[l],o[l],s):r[l]=Array.prototype.slice.call(o[l]);else wi(r,o,a);r.length=o.length}else t[n]=e[n]}nt(mi,$t),nt(mi,Ue);var Si=32,Mi=7;function Ti(t,e,n,i){var o=e+1;if(o===n)return 1;if(i(t[o++],t[e])<0){for(;o<n&&i(t[o],t[o-1])<0;)o++;var r=t,a=e,s=o;for(s--;a<s;){var l=r[a];r[a++]=r[s],r[s--]=l}}else for(;o<n&&0<=i(t[o],t[o-1]);)o++;return o-e}function Ci(t,e,n,i,o){for(i===e&&i++;i<n;i++){for(var r,a=t[i],s=e,l=i;s<l;)o(a,t[r=s+l>>>1])<0?l=r:s=1+r;var h=i-s;switch(h){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:for(;0<h;)t[s+h]=t[s+h-1],h--}t[s]=a}}function Ai(t,e,n,i,o,r){var a=0,s=0,l=1;if(0<r(t,e[n+o])){for(s=i-o;l<s&&0<r(t,e[n+o+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=o,l+=o}else{for(s=o+1;l<s&&r(t,e[n+o-l])<=0;)(l=1+((a=l)<<1))<=0&&(l=s);i=a,a=o-(l=s<l?s:l),l=o-i}for(a++;a<l;){var h=a+(l-a>>>1);0<r(t,e[n+h])?a=h+1:l=h}return l}function Ii(t,e,n,i,o,r){var a=0,s=0,l=1;if(r(t,e[n+o])<0){for(s=o+1;l<s&&r(t,e[n+o-l])<0;)(l=1+((a=l)<<1))<=0&&(l=s);var h=a,a=o-(l=s<l?s:l),l=o-h}else{for(s=i-o;l<s&&0<=r(t,e[n+o+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=o,l+=o}for(a++;a<l;){var u=a+(l-a>>>1);r(t,e[n+u])<0?l=u:a=u+1}return l}function ki(D,P){var L,O,R=Mi,E=0,B=(D.length,[]);function e(t){var e=L[t],n=O[t],i=L[t+1],o=O[t+1],t=(O[t]=n+o,t===E-3&&(L[t+1]=L[t+2],O[t+1]=O[t+2]),E--,Ii(D[i],D,e,n,0,P));if(e+=t,0!=(n-=t)&&0!==(o=Ai(D[e+n-1],D,i,o,o-1,P)))if(n<=o){var r=e,a=n,t=i,s=o,l=0;for(l=0;l<a;l++)B[l]=D[r+l];var h=0,u=t,c=r;if(D[c++]=D[u++],0==--s)for(l=0;l<a;l++)D[c+l]=B[h+l];else if(1===a){for(l=0;l<s;l++)D[c+l]=D[u+l];D[c+s]=B[h]}else{for(var p,d,f,g=R;;){d=p=0,f=!1;do{if(P(D[u],B[h])<0){if(D[c++]=D[u++],d++,(p=0)==--s){f=!0;break}}else if(D[c++]=B[h++],p++,d=0,1==--a){f=!0;break}}while((p|d)<g);if(f)break;do{if(0!==(p=Ii(D[u],B,h,a,0,P))){for(l=0;l<p;l++)D[c+l]=B[h+l];if(c+=p,h+=p,(a-=p)<=1){f=!0;break}}if(D[c++]=D[u++],0==--s){f=!0;break}if(0!==(d=Ai(B[h],D,u,s,0,P))){for(l=0;l<d;l++)D[c+l]=D[u+l];if(c+=d,u+=d,0===(s-=d)){f=!0;break}}if(D[c++]=B[h++],1==--a){f=!0;break}}while(g--,Mi<=p||Mi<=d);if(f)break;g<0&&(g=0),g+=2}if((R=g)<1&&(R=1),1===a){for(l=0;l<s;l++)D[c+l]=D[u+l];D[c+s]=B[h]}else{if(0===a)throw new Error;for(l=0;l<a;l++)D[c+l]=B[h+l]}}}else{var y=e,m=n,v=i,_=o,x=0;for(x=0;x<_;x++)B[x]=D[v+x];var w=y+m-1,b=_-1,S=v+_-1,M=0,T=0;if(D[S--]=D[w--],0==--m)for(M=S-(_-1),x=0;x<_;x++)D[M+x]=B[x];else if(1===_){for(T=(S-=m)+1,M=(w-=m)+1,x=m-1;0<=x;x--)D[T+x]=D[M+x];D[S]=B[b]}else{for(var C=R;;){var A=0,I=0,k=!1;do{if(P(B[b],D[w])<0){if(D[S--]=D[w--],A++,(I=0)==--m){k=!0;break}}else if(D[S--]=B[b--],I++,A=0,1==--_){k=!0;break}}while((A|I)<C);if(k)break;do{if(0!==(A=m-Ii(B[b],D,y,m,m-1,P))){for(m-=A,T=(S-=A)+1,M=(w-=A)+1,x=A-1;0<=x;x--)D[T+x]=D[M+x];if(0===m){k=!0;break}}if(D[S--]=B[b--],1==--_){k=!0;break}if(0!==(I=_-Ai(D[w],B,0,_,_-1,P))){for(_-=I,T=(S-=I)+1,M=(b-=I)+1,x=0;x<I;x++)D[T+x]=B[M+x];if(_<=1){k=!0;break}}if(D[S--]=D[w--],0==--m){k=!0;break}}while(C--,Mi<=A||Mi<=I);if(k)break;C<0&&(C=0),C+=2}if((R=C)<1&&(R=1),1===_){for(T=(S-=m)+1,M=(w-=m)+1,x=m-1;0<=x;x--)D[T+x]=D[M+x];D[S]=B[b]}else{if(0===_)throw new Error;for(M=S-(_-1),x=0;x<_;x++)D[M+x]=B[x]}}}}return L=[],O=[],{mergeRuns:function(){for(;1<E;){var t=E-2;if(1<=t&&O[t-1]<=O[t]+O[t+1]||2<=t&&O[t-2]<=O[t]+O[t-1])O[t-1]<O[t+1]&&t--;else if(O[t]>O[t+1])break;e(t)}},forceMergeRuns:function(){for(;1<E;){var t=E-2;0<t&&O[t-1]<O[t+1]&&t--,e(t)}},pushRun:function(t,e){L[E]=t,O[E]=e,E+=1}}}function Di(t,e,n,i){var o=(i=i||t.length)-(n=n||0);if(!(o<2)){var r=0;if(o<Si)Ci(t,n,i,n+(r=Ti(t,n,i,e)),e);else{var a,s=ki(t,e),l=function(t){for(var e=0;Si<=t;)e|=1&t,t>>=1;return t+e}(o);do{}while((r=Ti(t,n,i,e))<l&&(Ci(t,n,n+(a=l<(a=o)?l:o),n+r,e),r=a),s.pushRun(n,r),s.mergeRuns(),n+=r,0!==(o-=r));s.forceMergeRuns()}}}var Pi=!1;function Li(){Pi||(Pi=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Oi(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}Ei.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},Ei.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},Ei.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,o=e.length;i<o;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,b.canvasSupported&&Di(n,Oi)},Ei.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e=e?e.slice():[];for(var o=i,r=t;o;)o.parent=r,o.updateTransform(),e.push(o),o=(r=o).getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=mi.REDARAW_BIT),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{i=t;e&&e.length?i.__clipPaths=e:i.__clipPaths&&0<i.__clipPaths.length&&(i.__clipPaths=[]),isNaN(i.z)&&(Li(),i.z=0),isNaN(i.z2)&&(Li(),i.z2=0),isNaN(i.zlevel)&&(Li(),i.zlevel=0),this._displayList[this._displayListLen++]=i}i=t.getDecalElement&&t.getDecalElement(),i=(i&&this._updateAndAddDisplayable(i,e,n),t.getTextGuideLine()),i=(i&&this._updateAndAddDisplayable(i,e,n),t.getTextContent());i&&this._updateAndAddDisplayable(i,e,n)}},Ei.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},Ei.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=A(this._roots,t);0<=i&&this._roots.splice(i,1)}},Ei.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},Ei.prototype.getRoots=function(){return this._roots},Ei.prototype.dispose=function(){this._displayList=null,this._roots=null};var Ri=Ei;function Ei(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Oi}var Bi,zi="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},Ni=(h(Fi,Bi=$t),Fi.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._clipsHead?((this._clipsTail.next=t).prev=this._clipsTail,t.next=null,this._clipsTail=t):this._clipsHead=this._clipsTail=t,t.animation=this},Fi.prototype.addAnimator=function(t){t.animation=this;t=t.getClip();t&&this.addClip(t)},Fi.prototype.removeClip=function(t){var e,n;t.animation&&(e=t.prev,n=t.next,e?e.next=n:this._clipsHead=n,n?n.prev=e:this._clipsTail=e,t.next=t.prev=t.animation=null)},Fi.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},Fi.prototype.update=function(t){for(var e=(new Date).getTime()-this._pausedTime,n=e-this._time,i=this._clipsHead;i;)var o=i.next,i=(i.step(e,n)&&(i.ondestroy&&i.ondestroy(),this.removeClip(i)),o);this._time=e,t||(this.onframe(n),this.trigger("frame",n),this.stage.update&&this.stage.update())},Fi.prototype._startLoop=function(){var e=this;this._running=!0,zi(function t(){e._running&&(zi(t),e._paused||e.update())})},Fi.prototype.start=function(){this._running||(this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop())},Fi.prototype.stop=function(){this._running=!1},Fi.prototype.pause=function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},Fi.prototype.resume=function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},Fi.prototype.clear=function(){for(var t=this._clipsHead;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._clipsHead=this._clipsTail=null},Fi.prototype.isFinished=function(){return null==this._clipsHead},Fi.prototype.animate=function(t,e){e=e||{},this.start();t=new En(t,e.loop);return this.addAnimator(t),t},Fi);function Fi(t){var e=Bi.call(this)||this;return e._running=!1,e._time=0,e._pausedTime=0,e._pauseStart=0,e._paused=!1,e.stage=(t=t||{}).stage||{},e.onframe=t.onframe||function(){},e}var Vi,Hi=b.domSupported,Wi=(Vi={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:li=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:q(li,function(t){var e=t.replace("mouse","pointer");return Vi.hasOwnProperty(e)?e:t})}),Gi=["mousemove","mouseup"],Ui=["pointermove","pointerup"],Xi=!1;function Yi(t){t=t.pointerType;return"pen"===t||"touch"===t}function Zi(t){t&&(t.zrByTouch=!0)}function qi(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var ji=function(t,e){this.stopPropagation=kt,this.stopImmediatePropagation=kt,this.preventDefault=kt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Ki={mousedown:function(t){t=pe(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=pe(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=pe(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){qi(this,(t=pe(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Xi=!0,t=pe(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Xi||(t=pe(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Zi(t=pe(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Ki.mousemove.call(this,t),Ki.mousedown.call(this,t)},touchmove:function(t){Zi(t=pe(this.dom,t)),this.handler.processGesture(t,"change"),Ki.mousemove.call(this,t)},touchend:function(t){Zi(t=pe(this.dom,t)),this.handler.processGesture(t,"end"),Ki.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Ki.click.call(this,t)},pointerdown:function(t){Ki.mousedown.call(this,t)},pointermove:function(t){Yi(t)||Ki.mousemove.call(this,t)},pointerup:function(t){Ki.mouseup.call(this,t)},pointerout:function(t){Yi(t)||Ki.mouseout.call(this,t)}},$i=(I(["click","dblclick","contextmenu"],function(e){Ki[e]=function(t){t=pe(this.dom,t),this.trigger(e,t)}}),{pointermove:function(t){Yi(t)||$i.mousemove.call(this,t)},pointerup:function(t){$i.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}});function Ji(i,o){var r=o.domHandlers;b.pointerEventsSupported?I(Wi.pointer,function(e){to(o,e,function(t){r[e].call(i,t)})}):(b.touchEventsSupported&&I(Wi.touch,function(n){to(o,n,function(t){var e;r[n].call(i,t),(e=o).touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)})}),I(Wi.mouse,function(e){to(o,e,function(t){t=ce(t),o.touching||r[e].call(i,t)})}))}function Qi(i,o){function t(n){to(o,n,function(t){var e;t=ce(t),qi(i,t.target)||(e=t,t=pe(i.dom,new ji(i,e),!0),o.domHandlers[n].call(i,t))},{capture:!0})}b.pointerEventsSupported?I(Ui,t):b.touchEventsSupported||I(Gi,t)}function to(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,t=t.domTarget,e=e,n=n,i=i,ae?t.addEventListener(e,n,i):t.attachEvent("on"+e,n)}function eo(t){var e,n,i,o,r,a=t.mounted;for(e in a)a.hasOwnProperty(e)&&(n=t.domTarget,o=a[i=e],r=t.listenerOpts[e],ae?n.removeEventListener(i,o,r):n.detachEvent("on"+i,o));t.mounted={}}var no,io=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},oo=(h(ro,no=$t),ro.prototype.dispose=function(){eo(this._localHandlerScope),Hi&&eo(this._globalHandlerScope)},ro.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},ro.prototype.__togglePointerCapture=function(t){var e;this.__mayPointerCapture=null,Hi&&+this.__pointerCapturing^+t&&(this.__pointerCapturing=t,e=this._globalHandlerScope,t?Qi(this,e):eo(e))},ro);function ro(t,e){var n=no.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=e,n._localHandlerScope=new io(t,Ki),Hi&&(n._globalHandlerScope=new io(document,$i)),Ji(n,n._localHandlerScope),n}h(lo,ao=mi),lo.prototype.childrenRef=function(){return this._children},lo.prototype.children=function(){return this._children.slice()},lo.prototype.childAt=function(t){return this._children[t]},lo.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},lo.prototype.childCount=function(){return this._children.length},lo.prototype.add=function(t){if(t&&(t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),t.__hostTarget))throw"This elemenet has been used as an attachment";return this},lo.prototype.addBefore=function(t,e){var n;return t&&t!==this&&t.parent!==this&&e&&e.parent===this&&0<=(e=(n=this._children).indexOf(e))&&(n.splice(e,0,t),this._doAdd(t)),this},lo.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];return t&&t!==this&&t.parent!==this&&t!==i&&(n[e]=t,i.parent=null,(n=this.__zr)&&i.removeSelfFromZr(n),this._doAdd(t)),this},lo.prototype._doAdd=function(t){t.parent&&t.parent.remove(t);var e=(t.parent=this).__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},lo.prototype.remove=function(t){var e=this.__zr,n=this._children,i=A(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},lo.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},lo.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var o=n[i];t.call(e,o,i)}return this},lo.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],o=t.call(e,i);i.isGroup&&!o&&i.traverse(t,e)}return this},lo.prototype.addSelfToZr=function(t){ao.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].addSelfToZr(t)},lo.prototype.removeSelfFromZr=function(t){ao.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].removeSelfFromZr(t)},lo.prototype.getBoundingRect=function(t){for(var e=new X(0,0,0,0),n=t||this._children,i=[],o=null,r=0;r<n.length;r++){var a,s=n[r];s.ignore||s.invisible||(a=s.getBoundingRect(),(s=s.getLocalTransform(i))?(X.applyTransform(e,a,s),(o=o||e.clone()).union(e)):(o=o||a.clone()).union(a))}return o||e};var ao,so=lo;function lo(t){var e=ao.call(this)||this;return e.isGroup=!0,e._children=[],e.attr(t),e}so.prototype.type="group";var ho=!b.canvasSupported,uo={},co={};e.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},e.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(t){if("string"==typeof t)return xn(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,o=0;o<i;o++)n+=xn(e[o].color,1);return(n/=i)<.4}}return!1}(t)},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},e.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},e.prototype.flush=function(){this._flush(!1)},e.prototype._flush=function(t){var e,n=(new Date).getTime(),t=(this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),(new Date).getTime());e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:t-n})):0<this._sleepAfterStill&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill)&&this.animation.stop()},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.addHover=function(t){},e.prototype.removeHover=function(t){},e.prototype.clearHover=function(){},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},e.prototype.resize=function(t){this.painter.resize((t=t||{}).width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.pathToImage=function(t,e){if(this.painter.pathToImage)return this.painter.pathToImage(t,e)},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},e.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},e.prototype.off=function(t,e){this.handler.off(t,e)},e.prototype.trigger=function(t,e){this.handler.trigger(t,e)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof so&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},e.prototype.dispose=function(){var t;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,t=this.id,delete co[t]};var po=e;function e(t,e,n){var i=this,o=(this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t,new Ri),r=n.renderer||"canvas";if(ho)throw new Error("IE8 support has been dropped since 5.0");if(uo[r]||(r=k(uo)[0]),!uo[r])throw new Error("Renderer '"+r+"' is not imported. Please import it first.");n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;r=new uo[r](e,o,n,t),this.storage=o,this.painter=r,e=b.node||b.worker?null:new oo(r.getViewportRoot(),r.root);this.handler=new Ce(o,r,e,r.root),this.animation=new Ni({stage:{update:function(){return i._flush(!0)}}}),this.animation.start()}function fo(t,e){t=new po($++,t,e);return co[t.id]=t}function go(t,e){uo[t]=e}li=Object.freeze({__proto__:null,dispose:function(t){t.dispose()},disposeAll:function(){for(var t in co)co.hasOwnProperty(t)&&co[t].dispose();co={}},getInstance:function(t){return co[t]},init:fo,registerPainter:go,version:"5.1.0"});function yo(t,e,n,i){var o=e[1]-e[0],r=n[1]-n[0];if(0==o)return 0==r?n[0]:(n[0]+n[1])/2;if(i)if(0<o){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])/o*r+n[0]}function B(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function mo(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function vo(t){return t.sort(function(t,e){return t-e}),t}function _o(t){var t=t.toString(),e=t.indexOf("e");return 0<e?(e=+t.slice(e+1))<0?-e:0:(e=t.indexOf("."))<0?0:t.length-1-e}function xo(t,e){var n=Math.log,i=Math.LN10,t=Math.floor(n(t[1]-t[0])/i),n=Math.round(n(Math.abs(e[1]-e[0]))/i),e=Math.min(Math.max(-t+n,0),20);return isFinite(e)?e:20}function wo(t){var e=2*Math.PI;return(t%e+e)%e}function bo(t){return-1e-4<t&&t<1e-4}var So=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Mo(t){var e,n;return t instanceof Date?t:"string"==typeof t?(e=So.exec(t))?e[8]?(n=+e[4]||0,"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,+e[7]||0))):new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0):new Date(NaN):null==t?new Date(NaN):new Date(Math.round(t))}function To(t){return Math.pow(10,Co(t))}function Co(t){var e;return 0===t?0:(e=Math.floor(Math.log(t)/Math.LN10),10<=t/Math.pow(10,e)&&e++,e)}function Ao(t,e){var n=Co(t),i=Math.pow(10,n),o=t/i,e=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10;return t=e*i,-20<=n?+t.toFixed(n<0?-n:0):t}function Io(t){var e=parseFloat(t);return e==t&&(0!==e||"string"!=typeof t||t.indexOf("x")<=0)?e:NaN}function ko(t){return!isNaN(Io(t))}function Do(){return Math.round(9*Math.random())}function Po(t,e){return null==t?e:null==e?t:t*e/function t(e,n){return 0===n?e:t(n,e%n)}(t,e)}function f(t){throw new Error(t)}var Lo="series\0";function Oo(t){return t instanceof Array?t:null==t?[]:[t]}function Ro(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,o=n.length;i<o;i++){var r=n[i];!t.emphasis[e].hasOwnProperty(r)&&t[e].hasOwnProperty(r)&&(t.emphasis[e][r]=t[e][r])}}}var Eo=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Bo(t){return!D(t)||F(t)||t instanceof Date?t:t.value}function zo(t,n,e){var r,a,s,l,o,h,i,u,c,p,d="normalMerge"===e,f="replaceMerge"===e,g="replaceAll"===e,y=(t=t||[],n=(n||[]).slice(),P()),e=(I(n,function(t,e){D(t)||(n[e]=null)}),function(t,e,n){var i=[];if("replaceAll"!==n)for(var o=0;o<t.length;o++){var r=t[o];r&&null!=r.id&&e.set(r.id,o),i.push({existing:"replaceMerge"===n||Wo(r)?null:r,newOption:null,keyInfo:null,brandNew:null})}return i}(t,y,e));return(d||f)&&(r=e,a=t,s=y,I(l=n,function(t,e){var n,i,o;t&&null!=t.id&&(n=Fo(t.id),null!=(i=s.get(n)))&&(wt(!(o=r[i]).newOption,'Duplicated option on id "'+n+'".'),o.newOption=t,o.existing=a[i],l[e]=null)})),d&&(o=e,I(h=n,function(t,e){if(t&&null!=t.name)for(var n=0;n<o.length;n++){var i=o[n].existing;if(!o[n].newOption&&i&&(null==i.id||null==t.id)&&!Wo(t)&&!Wo(i)&&No("name",i,t))return o[n].newOption=t,void(h[e]=null)}})),d||f?(u=e,c=f,I(n,function(t){if(t){for(var e,n=0;(e=u[n])&&(e.newOption||Wo(e.existing)||e.existing&&null!=t.id&&!No("id",t,e.existing));)n++;e?(e.newOption=t,e.brandNew=c):u.push({newOption:t,brandNew:c,existing:null,keyInfo:null}),n++}})):g&&(i=e,I(n,function(t){i.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})),t=e,p=P(),I(t,function(t){var e=t.existing;e&&p.set(e.id,t)}),I(t,function(t){var e=t.newOption;wt(!e||null==e.id||!p.get(e.id)||p.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&p.set(e.id,t),t.keyInfo||(t.keyInfo={})}),I(t,function(t,e){var n=t.existing,i=t.newOption,o=t.keyInfo;if(D(i)){if(o.name=null!=i.name?Fo(i.name):n?n.name:Lo+e,n)o.id=Fo(n.id);else if(null!=i.id)o.id=Fo(i.id);else for(var r=0;o.id="\0"+o.name+"\0"+r++,p.get(o.id););p.set(o.id,t)}}),e}function No(t,e,n){e=Vo(e[t],null),n=Vo(n[t],null);return null!=e&&null!=n&&e===n}function Fo(t){return Vo(t,"")}function Vo(t,e){var n;return null==t?e:"string"==(n=typeof t)?t:"number"==n||lt(t)?t+"":e}function Ho(t){t=t.name;return!(!t||!t.indexOf(Lo))}function Wo(t){return t&&null!=t.id&&0===Fo(t.id).indexOf("\0_ec_\0")}function Go(t,o,r){I(t,function(t){var e,n,i=t.newOption;D(i)&&(t.keyInfo.mainType=o,t.keyInfo.subType=(e=o,i=i,t=t.existing,n=r,i.type||(t?t.subType:n.determineSubType(e,i))))})}function Uo(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?F(t.dataIndex)?q(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?F(t.name)?q(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function Xo(){var e="__ec_inner_"+Yo++;return function(t){return t[e]||(t[e]={})}}var Yo=Do();function Zo(n,t,i){var t=qo(t,i),e=t.mainTypeSpecified,o=t.queryOptionMap,r=t.others,a=i?i.defaultMainType:null;return!e&&a&&o.set(a,{}),o.each(function(t,e){t=$o(n,e,t,{useDefault:a===e,enableAll:!i||null==i.enableAll||i.enableAll,enableNone:!i||null==i.enableNone||i.enableNone});r[e+"Models"]=t.models,r[e+"Model"]=t.models[0]}),r}function qo(t,i){var e=C(t)?((e={})[t+"Index"]=0,e):t,o=P(),r={},a=!1;return I(e,function(t,e){var n;"dataIndex"===e||"dataIndexInside"===e?r[e]=t:(n=(e=e.match(/^(\w+)(Index|Id|Name)$/)||[])[1],e=(e[2]||"").toLowerCase(),!n||!e||i&&i.includeMainTypes&&A(i.includeMainTypes,n)<0||(a=a||!!n,(o.get(n)||o.set(n,{}))[e]=t))}),{mainTypeSpecified:a,queryOptionMap:o,others:r}}var jo={useDefault:!0,enableAll:!1,enableNone:!1},Ko={useDefault:!1,enableAll:!0,enableNone:!0};function $o(t,e,n,i){i=i||jo;var o=n.index,r=n.id,n=n.name,a={models:null,specified:null!=o||null!=r||null!=n};return a.specified?"none"===o||!1===o?(wt(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),a.models=[]):("all"===o&&(wt(i.enableAll,'`"all"` is not a valid value on index option.'),o=r=n=null),a.models=t.queryComponents({mainType:e,index:o,id:r,name:n})):(o=void 0,a.models=i.useDefault&&(o=t.getComponent(e))?[o]:[]),a}function Jo(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function Qo(t,e,n,i,o){var r=null==e||"auto"===e;if(null==i)return i;if("number"==typeof i)return mo(l=Sn(n||0,i,o),r?Math.max(_o(n||0),_o(i)):e);if("string"==typeof i)return o<1?n:i;for(var a,s,l,h=[],u=n,c=i,p=Math.max(u?u.length:0,c.length),d=0;d<p;++d)"ordinal"===t.getDimensionInfo(d).type?h[d]=(o<1&&u?u:c)[d]:(l=Sn(a=u&&u[d]?u[d]:0,s=c[d],o),h[d]=mo(l,r?Math.max(_o(a),_o(s)):e));return h}var tr=".",er="___EC__COMPONENT__CONTAINER___",nr="___EC__EXTENDED_CLASS___";function ir(t){var e={main:"",sub:""};return t&&(t=t.split(tr),e.main=t[0]||"",e.sub=t[1]||""),e}function or(t){(t.$constructor=t).extend=function(i){var o=this;function r(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(i.$constructor)i.$constructor.apply(this,arguments);else{if("function"==typeof(t=o)&&/^class\s/.test(Function.prototype.toString.call(t)))return It(r.prototype,new(o.bind.apply(o,v([void 0],e))));o.apply(this,arguments)}}return r[nr]=!0,T(r.prototype,i),r.extend=this.extend,r.superCall=sr,r.superApply=lr,et(r,this),r.superClass=o,r}}function rr(t,e){t.extend=e.extend}var ar=Math.round(10*Math.random());function sr(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function lr(t,e,n){return this.superClass.prototype[e].apply(t,n)}function hr(t){var o={};t.registerClass=function(t){var e,n=t.type||t.prototype.type;return n&&(wt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e=n),'componentType "'+e+'" illegal'),(e=ir(t.prototype.type=n)).sub?e.sub!==er&&(function(t){var e=o[t.main];e&&e[er]||(e=o[t.main]={___EC__COMPONENT__CONTAINER___:!0});return e}(e)[e.sub]=t):o[e.main]=t),t},t.getClass=function(t,e,n){var i=o[t];if(i&&i[er]&&(i=e?i[e]:null),n&&!i)throw new Error(e?"Component "+t+"."+(e||"")+" is used but not imported.":t+".type should be specified.");return i},t.getClassesByMainType=function(t){var t=ir(t),n=[],t=o[t.main];return t&&t[er]?I(t,function(t,e){e!==er&&n.push(t)}):n.push(t),n},t.hasClass=function(t){t=ir(t);return!!o[t.main]},t.getAllClassMainTypes=function(){var n=[];return I(o,function(t,e){n.push(e)}),n},t.hasSubTypes=function(t){t=ir(t),t=o[t.main];return t&&t[er]}}function ur(a,s){for(var t=0;t<a.length;t++)a[t][1]||(a[t][1]=a[t][0]);return s=s||!1,function(t,e,n){for(var i={},o=0;o<a.length;o++){var r=a[o][1];e&&0<=A(e,r)||n&&A(n,r)<0||null!=(r=t.getShallow(r,s))&&(i[a[o][0]]=r)}return i}}var cr=ur([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),pr=(dr.prototype.getAreaStyle=function(t,e){return cr(this,t,e)},dr);function dr(){}var fr=new Je(50);function gr(t,e,n,i,o){return t?"string"==typeof t?(e&&e.__zrImageSrc===t||!n||(n={hostEl:n,cb:i,cbPayload:o},(i=fr.get(t))?mr(e=i.image)||i.pending.push(n):((e=new Image).onload=e.onerror=yr,fr.put(t,e.__cachedImgObj={image:e,pending:[n]}),e.src=e.__zrImageSrc=t)),e):t:e}function yr(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function mr(t){return t&&t.width&&t.height}var vr=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function _r(t,e,n,i,o){if(!e)return"";var r=(t+"").split("\n");o=xr(e,n,i,o);for(var a=0,s=r.length;a<s;a++)r[a]=wr(r[a],o);return r.join("\n")}function xr(t,e,n,i){for(var o=T({},i=i||{}),r=(o.font=e,n=L(n,"..."),o.maxIterations=L(i.maxIterations,2),o.minChar=L(i.minChar,0)),a=(o.cnCharWidth=Jn("国",e),o.ascCharWidth=Jn("a",e)),s=(o.placeholder=L(i.placeholder,""),t=Math.max(0,t-1)),l=0;l<r&&a<=s;l++)s-=a;i=Jn(n,e);return s<i&&(n="",i=0),s=t-i,o.ellipsis=n,o.ellipsisWidth=i,o.contentWidth=s,o.containerWidth=t,o}function wr(t,e){var n=e.containerWidth,i=e.font,o=e.contentWidth;if(!n)return"";var r=Jn(t,i);if(!(r<=n)){for(var a=0;;a++){if(r<=o||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?function(t,e,n,i){for(var o=0,r=0,a=t.length;r<a&&o<e;r++){var s=t.charCodeAt(r);o+=0<=s&&s<=127?n:i}return r}(t,o,e.ascCharWidth,e.cnCharWidth):0<r?Math.floor(t.length*o/r):0,r=Jn(t=t.substr(0,s),i)}""===t&&(t=e.placeholder)}return t}var br=function(){},Sr=function(t){this.tokens=[],t&&(this.tokens=t)},Mr=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function Tr(t,e){var n=new Mr;if(null!=t&&(t+=""),t){for(var i,o=e.width,r=e.height,a=e.overflow,s="break"!==a&&"breakAll"!==a||null==o?null:{width:o,accumWidth:0,breakAll:"breakAll"===a},l=vr.lastIndex=0;null!=(i=vr.exec(t));){var h=i.index;l<h&&Cr(n,t.substring(l,h),e,s),Cr(n,i[2],e,s,i[1]),l=vr.lastIndex}l<t.length&&Cr(n,t.substring(l,t.length),e,s);var u,c=[],p=0,d=0,f=e.padding,g="truncate"===a,y="truncate"===e.lineOverflow;t:for(var m=0;m<n.lines.length;m++){for(var v=n.lines[m],_=0,x=0,w=0;w<v.tokens.length;w++){var b=(k=v.tokens[w]).styleName&&e.rich[k.styleName]||{},S=k.textPadding=b.padding,M=S?S[1]+S[3]:0,T=k.font=b.font||e.font,C=(k.contentHeight=ii(T),L(b.height,k.contentHeight));if(k.innerHeight=C,S&&(C+=S[0]+S[2]),k.height=C,k.lineHeight=vt(b.lineHeight,e.lineHeight,C),k.align=b&&b.align||e.align,k.verticalAlign=b&&b.verticalAlign||"middle",y&&null!=r&&p+k.lineHeight>r){0<w?(v.tokens=v.tokens.slice(0,w),P(v,x,_),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break t}var A,S=b.width,I=null==S||"auto"===S;"string"==typeof S&&"%"===S.charAt(S.length-1)?(k.percentWidth=S,c.push(k),k.contentWidth=Jn(k.text,T)):(I&&(S=(S=b.backgroundColor)&&S.image)&&(A=void 0,mr(S="string"==typeof(u=S)?(A=fr.get(u))&&A.image:u))&&(k.width=Math.max(k.width,S.width*C/S.height)),null!=(A=g&&null!=o?o-x:null)&&A<k.width?!I||A<M?(k.text="",k.width=k.contentWidth=0):(k.text=_r(k.text,A-M,T,e.ellipsis,{minChar:e.truncateMinChar}),k.width=k.contentWidth=Jn(k.text,T)):k.contentWidth=Jn(k.text,T)),k.width+=M,x+=k.width,b&&(_=Math.max(_,k.lineHeight))}P(v,x,_)}n.outerWidth=n.width=L(o,d),n.outerHeight=n.height=L(r,p),n.contentHeight=p,n.contentWidth=d,f&&(n.outerWidth+=f[1]+f[3],n.outerHeight+=f[0]+f[2]);for(m=0;m<c.length;m++){var k,D=(k=c[m]).percentWidth;k.width=parseInt(D,10)/100*n.width}}return n;function P(t,e,n){t.width=e,t.lineHeight=n,p+=n,d=Math.max(d,e)}}function Cr(t,e,n,i,o){var r,a,s=""===e,l=o&&n.rich[o]||{},h=t.lines,u=l.font||n.font,c=!1;i?(n=(t=l.padding)?t[1]+t[3]:0,null!=l.width&&"auto"!==l.width?(t=oi(l.width,i.width)+n,0<h.length&&t+i.accumWidth>i.width&&(r=e.split("\n"),c=!0),i.accumWidth=t):(t=Ir(e,u,i.width,i.breakAll,i.accumWidth),i.accumWidth=t.accumWidth+n,a=t.linesWidths,r=t.lines)):r=e.split("\n");for(var p=0;p<r.length;p++){var d,f,g=r[p],y=new br;y.styleName=o,y.text=g,y.isLineHolder=!g&&!s,"number"==typeof l.width?y.width=l.width:y.width=a?a[p]:Jn(g,u),p||c?h.push(new Sr([y])):1===(f=(d=(h[h.length-1]||(h[0]=new Sr)).tokens).length)&&d[0].isLineHolder?d[0]=y:!g&&f&&!s||d.push(y)}}var Ar=ot(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function Ir(t,e,n,i,o){for(var r,a=[],s=[],l="",h="",u=0,c=0,p=0;p<t.length;p++){var d,f,g=t.charAt(p);"\n"===g?(h&&(l+=h,c+=u),a.push(l),s.push(c),h=l="",c=u=0):(d=Jn(g,e),f=!i&&(f=void 0,!!(33<=(f=(f=r=g).charCodeAt(0))&&f<=255&&!Ar[r])),(a.length?n<c+d:n<o+c+d)?c?(l||h)&&(c=f?(l||(l=h,h="",c=u=0),a.push(l),s.push(c-u),h+=g,l="",u+=d):(h&&(l+=h,c+=u,h="",u=0),a.push(l),s.push(c),l=g,d)):f?(a.push(h),s.push(u),h=g,u=d):(a.push(g),s.push(d)):(c+=d,f?(h+=g,u+=d):(h&&(l+=h,h="",u=0),l+=g)))}return a.length||l||(l=t,h="",u=0),h&&(l+=h),l&&(a.push(l),s.push(c)),1===a.length&&(c+=o),{accumWidth:c,lines:a,linesWidths:s}}var kr,Dr="__zr_style_"+Math.round(10*Math.random()),Pr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Lr={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},Or=(Pr[Dr]=!0,["z","z2","invisible"]),n=(h(i,kr=mi),i.prototype._init=function(t){for(var e=k(t),n=0;n<e.length;n++){var i=e[n];"style"===i?this.useStyle(t[i]):kr.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},i.prototype.beforeBrush=function(){},i.prototype.afterBrush=function(){},i.prototype.innerBeforeBrush=function(){},i.prototype.innerAfterBrush=function(){},i.prototype.shouldBePainted=function(t,e,n,i){var o=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,n){Rr.copy(t.getBoundingRect()),t.transform&&Rr.applyTransform(t.transform);return Er.width=e,Er.height=n,!Rr.intersect(Er)}(this,t,e)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths)for(var r=0;r<this.__clipPaths.length;++r)if(this.__clipPaths[r].isZeroArea())return!1;if(i&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},i.prototype.contain=function(t,e){return this.rectContain(t,e)},i.prototype.traverse=function(t,e){t.call(e,this)},i.prototype.rectContain=function(t,e){t=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(t[0],t[1])},i.prototype.getPaintRect=function(){var t,e,n,i,o,r=this._paintRect;return this._paintRect&&!this.__dirty||(o=this.transform,t=this.getBoundingRect(),e=(i=this.style).shadowBlur||0,n=i.shadowOffsetX||0,i=i.shadowOffsetY||0,r=this._paintRect||(this._paintRect=new X(0,0,0,0)),o?X.applyTransform(r,t,o):r.copy(t),(e||n||i)&&(r.width+=2*e+Math.abs(n),r.height+=2*e+Math.abs(i),r.x=Math.min(r.x,r.x+n-e),r.y=Math.min(r.y,r.y+i-e)),o=this.dirtyRectTolerance,r.isZero())||(r.x=Math.floor(r.x-o),r.y=Math.floor(r.y-o),r.width=Math.ceil(r.width+1+2*o),r.height=Math.ceil(r.height+1+2*o)),r},i.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new X(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},i.prototype.getPrevPaintRect=function(){return this._prevPaintRect},i.prototype.animateStyle=function(t){return this.animate("style",t)},i.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},i.prototype.attrKV=function(t,e){"style"!==t?kr.prototype.attrKV.call(this,t,e):this.style?this.setStyle(e):this.useStyle(e)},i.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:T(this.style,t),this.dirtyStyle(),this},i.prototype.dirtyStyle=function(){this.markRedraw(),this.__dirty|=i.STYLE_CHANGED_BIT,this._rect&&(this._rect=null)},i.prototype.dirty=function(){this.dirtyStyle()},i.prototype.styleChanged=function(){return!!(this.__dirty&i.STYLE_CHANGED_BIT)},i.prototype.styleUpdated=function(){this.__dirty&=~i.STYLE_CHANGED_BIT},i.prototype.createStyle=function(t){return It(Pr,t)},i.prototype.useStyle=function(t){t[Dr]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},i.prototype.isStyleObject=function(t){return t[Dr]},i.prototype._innerSaveToNormal=function(t){kr.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.style&&!e.style&&(e.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,e,Or)},i.prototype._applyStateObj=function(t,e,n,i,o,r){kr.prototype._applyStateObj.call(this,t,e,n,i,o,r);var a,s=!(e&&i);if(e&&e.style?o?i?a=e.style:(a=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(a,e.style)):(a=this._mergeStyle(this.createStyle(),(i?this:n).style),this._mergeStyle(a,e.style)):s&&(a=n.style),a)if(o){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var h=k(l),u=0;u<h.length;u++)(p=h[u])in a&&(a[p]=a[p],this.style[p]=l[p]);for(var c=k(a),u=0;u<c.length;u++){var p=c[u];this.style[p]=this.style[p]}this._transitionState(t,{style:a},r,this.getAnimationStyleProps())}else this.useStyle(a);for(u=0;u<Or.length;u++){p=Or[u];e&&null!=e[p]?this[p]=e[p]:s&&null!=n[p]&&(this[p]=n[p])}},i.prototype._mergeStates=function(t){for(var e,n=kr.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.style&&this._mergeStyle(e=e||{},o.style)}return e&&(n.style=e),n},i.prototype._mergeStyle=function(t,e){return T(t,e),t},i.prototype.getAnimationStyleProps=function(){return Lr},i.STYLE_CHANGED_BIT=2,i.initDefaultProps=((n=i.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=mi.REDARAW_BIT|i.STYLE_CHANGED_BIT)),i);function i(t){return kr.call(this,t)||this}var Rr=new X(0,0,0,0),Er=new X(0,0,0,0);var Br=Math.pow,zr=Math.sqrt,Nr=1e-8,Fr=zr(3),Vr=Pt(),Hr=Pt(),Wr=Pt();function Gr(t){return-Nr<t&&t<Nr}function Ur(t){return Nr<t||t<-Nr}function Xr(t,e,n,i,o){var r=1-o;return r*r*(r*t+3*o*e)+o*o*(o*i+3*r*n)}function Yr(t,e,n,i,o){var r=1-o;return 3*(((e-t)*r+2*(n-e)*o)*r+(i-n)*o*o)}function Zr(t,e,n,i,o,r){var a,s,i=i+3*(e-n)-t,n=3*(n-2*e+t),e=3*(e-t),t=t-o,o=n*n-3*i*e,l=n*e-9*i*t,t=e*e-3*n*t,h=0;return Gr(o)&&Gr(l)?Gr(n)?r[0]=0:0<=(a=-e/n)&&a<=1&&(r[h++]=a):Gr(e=l*l-4*o*t)?(s=-(t=l/o)/2,0<=(a=-n/i+t)&&a<=1&&(r[h++]=a),0<=s&&s<=1&&(r[h++]=s)):0<e?(e=o*n+1.5*i*(-l-(t=zr(e))),0<=(a=(-n-((t=(t=o*n+1.5*i*(-l+t))<0?-Br(-t,1/3):Br(t,1/3))+(e=e<0?-Br(-e,1/3):Br(e,1/3))))/(3*i))&&a<=1&&(r[h++]=a)):(t=(2*o*n-3*i*l)/(2*zr(o*o*o)),e=Math.acos(t)/3,a=(-n-2*(l=zr(o))*(t=Math.cos(e)))/(3*i),s=(-n+l*(t+Fr*Math.sin(e)))/(3*i),o=(-n+l*(t-Fr*Math.sin(e)))/(3*i),0<=a&&a<=1&&(r[h++]=a),0<=s&&s<=1&&(r[h++]=s),0<=o&&o<=1&&(r[h++]=o)),h}function qr(t,e,n,i,o){var r,a=6*n-12*e+6*t,i=9*e+3*i-3*t-9*n,n=3*e-3*t,e=0;return Gr(i)?Ur(a)&&0<=(r=-n/a)&&r<=1&&(o[e++]=r):Gr(t=a*a-4*i*n)?o[0]=-a/(2*i):0<t&&(t=(-a-(n=zr(t)))/(2*i),0<=(r=(-a+n)/(2*i))&&r<=1&&(o[e++]=r),0<=t)&&t<=1&&(o[e++]=t),e}function jr(t,e,n,i,o,r){var a=(e-t)*o+t,e=(n-e)*o+e,n=(i-n)*o+n,s=(e-a)*o+a,e=(n-e)*o+e,o=(e-s)*o+s;r[0]=t,r[1]=a,r[2]=s,r[3]=o,r[4]=o,r[5]=e,r[6]=n,r[7]=i}function Kr(t,e,n,i,o,r,a,s,l,h,u){var c,p,d,f,g=.005,y=1/0;Vr[0]=l,Vr[1]=h;for(var m=0;m<1;m+=.05)Hr[0]=Xr(t,n,o,a,m),Hr[1]=Xr(e,i,r,s,m),(d=Wt(Vr,Hr))<y&&(c=m,y=d);for(var y=1/0,v=0;v<32&&!(g<1e-4);v++)p=c+g,Hr[0]=Xr(t,n,o,a,f=c-g),Hr[1]=Xr(e,i,r,s,f),d=Wt(Hr,Vr),0<=f&&d<y?(c=f,y=d):(Wr[0]=Xr(t,n,o,a,p),Wr[1]=Xr(e,i,r,s,p),f=Wt(Wr,Vr),p<=1&&f<y?(c=p,y=f):g*=.5);return u&&(u[0]=Xr(t,n,o,a,c),u[1]=Xr(e,i,r,s,c)),zr(y)}function $r(t,e,n,i){var o=1-i;return o*(o*t+2*i*e)+i*i*n}function Jr(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function Qr(t,e,n){n=t+n-2*e;return 0==n?.5:(t-e)/n}function ta(t,e,n,i,o){var r=(e-t)*i+t,e=(n-e)*i+e,i=(e-r)*i+r;o[0]=t,o[1]=r,o[2]=i,o[3]=i,o[4]=e,o[5]=n}function ea(t,e,n,i,o,r,a,s,l){var h,u=.005,c=1/0;Vr[0]=a,Vr[1]=s;for(var p=0;p<1;p+=.05)Hr[0]=$r(t,n,o,p),Hr[1]=$r(e,i,r,p),(y=Wt(Vr,Hr))<c&&(h=p,c=y);for(var c=1/0,d=0;d<32&&!(u<1e-4);d++){var f=h-u,g=h+u,y=(Hr[0]=$r(t,n,o,f),Hr[1]=$r(e,i,r,f),Wt(Hr,Vr));0<=f&&y<c?(h=f,c=y):(Wr[0]=$r(t,n,o,g),Wr[1]=$r(e,i,r,g),f=Wt(Wr,Vr),g<=1&&f<c?(h=g,c=f):u*=.5)}return l&&(l[0]=$r(t,n,o,h),l[1]=$r(e,i,r,h)),zr(c)}var na=Math.min,ia=Math.max,oa=Math.sin,ra=Math.cos,aa=2*Math.PI,sa=Pt(),la=Pt(),ha=Pt();function ua(t,e,n,i,o,r){o[0]=na(t,n),o[1]=na(e,i),r[0]=ia(t,n),r[1]=ia(e,i)}var ca=[],pa=[];var da={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},fa=[],ga=[],ya=[],ma=[],va=[],_a=[],xa=Math.min,wa=Math.max,ba=Math.cos,Sa=Math.sin,Ma=Math.sqrt,Ta=Math.abs,Ca=Math.PI,Aa=2*Ca,Ia="undefined"!=typeof Float32Array,ka=[];function Da(t){return Math.round(t/Ca*1e8)/1e8%2*Ca}function Pa(t,e){var n=Da(t[0]),i=(n<0&&(n+=Aa),n-t[0]),o=t[1];o+=i,!e&&Aa<=o-n?o=n+Aa:e&&Aa<=n-o?o=n-Aa:!e&&o<n?o=n+(Aa-Da(n-o)):e&&n<o&&(o=n-(Aa-Da(o-n))),t[0]=n,t[1]=o}o.prototype.increaseVersion=function(){this._version++},o.prototype.getVersion=function(){return this._version},o.prototype.setScale=function(t,e,n){0<(n=n||0)&&(this._ux=Ta(n/hi/t)||0,this._uy=Ta(n/hi/e)||0)},o.prototype.setDPR=function(t){this.dpr=t},o.prototype.setContext=function(t){this._ctx=t},o.prototype.getContext=function(){return this._ctx},o.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},o.prototype.reset=function(){this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},o.prototype.moveTo=function(t,e){return this.addData(da.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},o.prototype.lineTo=function(t,e){var n=Ta(t-this._xi)>this._ux||Ta(e-this._yi)>this._uy||this._len<5;return this.addData(da.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},o.prototype.bezierCurveTo=function(t,e,n,i,o,r){return this.addData(da.C,t,e,n,i,o,r),this._ctx&&(this._needsDash?this._dashedBezierTo(t,e,n,i,o,r):this._ctx.bezierCurveTo(t,e,n,i,o,r)),this._xi=o,this._yi=r,this},o.prototype.quadraticCurveTo=function(t,e,n,i){return this.addData(da.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},o.prototype.arc=function(t,e,n,i,o,r){return ka[0]=i,ka[1]=o,Pa(ka,r),this.addData(da.A,t,e,n,n,i=ka[0],(o=ka[1])-i,0,r?0:1),this._ctx&&this._ctx.arc(t,e,n,i,o,r),this._xi=ba(o)*n+t,this._yi=Sa(o)*n+e,this},o.prototype.arcTo=function(t,e,n,i,o){return this._ctx&&this._ctx.arcTo(t,e,n,i,o),this},o.prototype.rect=function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(da.R,t,e,n,i),this},o.prototype.closePath=function(){this.addData(da.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},o.prototype.fill=function(t){t&&t.fill(),this.toStatic()},o.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},o.prototype.setLineDash=function(t){if(t instanceof Array){this._lineDash=t;for(var e=this._dashIdx=0,n=0;n<t.length;n++)e+=t[n];this._dashSum=e,this._needsDash=!0}else this._lineDash=null,this._needsDash=!1;return this},o.prototype.setLineDashOffset=function(t){return this._dashOffset=t,this},o.prototype.len=function(){return this._len},o.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Ia||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},o.prototype.appendPath=function(t){for(var e=(t=t instanceof Array?t:[t]).length,n=0,i=this._len,o=0;o<e;o++)n+=t[o].len();Ia&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(o=0;o<e;o++)for(var r=t[o].data,a=0;a<r.length;a++)this.data[i++]=r[a];this._len=i},o.prototype.addData=function(t,e,n,i,o,r,a,s,l){if(this._saveData){var h=this.data;this._len+arguments.length>h.length&&(this._expandData(),h=this.data);for(var u=0;u<arguments.length;u++)h[this._len++]=arguments[u]}},o.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},o.prototype._dashedLineTo=function(t,e){var n,i,o=this._dashSum,r=this._lineDash,a=this._ctx,s=this._dashOffset,l=this._xi,h=this._yi,u=t-l,c=e-h,p=Ma(u*u+c*c),d=l,f=h,g=r.length;for(s<0&&(s=o+s),d-=(s%=o)*(u/=p),f-=s*(c/=p);0<u&&d<=t||u<0&&t<=d||0===u&&(0<c&&f<=e||c<0&&e<=f);)d+=u*(n=r[i=this._dashIdx]),f+=c*n,this._dashIdx=(i+1)%g,0<u&&d<l||u<0&&l<d||0<c&&f<h||c<0&&h<f||a[i%2?"moveTo":"lineTo"]((0<=u?xa:wa)(d,t),(0<=c?xa:wa)(f,e));this._dashOffset=-Ma((u=d-t)*u+(c=f-e)*c)},o.prototype._dashedBezierTo=function(t,e,n,i,o,r){var a,s,l,h,u,c=this._ctx,p=this._dashSum,d=this._dashOffset,f=this._lineDash,g=this._xi,y=this._yi,m=0,v=this._dashIdx,_=f.length,x=0;for(d<0&&(d=p+d),d%=p,a=0;a<1;a+=.1)s=Xr(g,t,n,o,a+.1)-Xr(g,t,n,o,a),l=Xr(y,e,i,r,a+.1)-Xr(y,e,i,r,a),m+=Ma(s*s+l*l);for(;v<_&&!(d<(x+=f[v]));v++);for(a=(x-d)/m;a<=1;)h=Xr(g,t,n,o,a),u=Xr(y,e,i,r,a),v%2?c.moveTo(h,u):c.lineTo(h,u),a+=f[v]/m,v=(v+1)%_;v%2!=0&&c.lineTo(o,r),this._dashOffset=-Ma((s=o-h)*s+(l=r-u)*l)},o.prototype._dashedQuadraticTo=function(t,e,n,i){var o=n,r=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,o,r)},o.prototype.toStatic=function(){var t;this._saveData&&(t=this.data)instanceof Array&&(t.length=this._len,Ia)&&11<this._len&&(this.data=new Float32Array(t))},o.prototype.getBoundingRect=function(){ya[0]=ya[1]=va[0]=va[1]=Number.MAX_VALUE,ma[0]=ma[1]=_a[0]=_a[1]=-Number.MAX_VALUE;for(var t,e=this.data,n=0,i=0,o=0,r=0,a=0;a<this._len;){var B=e[a++],z=1===a;switch(z&&(o=n=e[a],r=i=e[a+1]),B){case da.M:n=o=e[a++],i=r=e[a++],va[0]=o,va[1]=r,_a[0]=o,_a[1]=r;break;case da.L:ua(n,i,e[a],e[a+1],va,_a),n=e[a++],i=e[a++];break;case da.C:W=H=m=y=V=g=f=d=p=c=F=N=u=h=l=s=void 0;var s=n,l=i,h=e[a++],u=e[a++],N=e[a++],F=e[a++],c=e[a],p=e[a+1],d=va,f=_a,g=qr,V=Xr,y=g(s,h,N,c,ca);d[0]=1/0,d[1]=1/0,f[0]=-1/0,f[1]=-1/0;for(var m=0;m<y;m++){var H=V(s,h,N,c,ca[m]);d[0]=na(H,d[0]),f[0]=ia(H,f[0])}for(y=g(l,u,F,p,pa),m=0;m<y;m++){var W=V(l,u,F,p,pa[m]);d[1]=na(W,d[1]),f[1]=ia(W,f[1])}d[0]=na(s,d[0]),f[0]=ia(s,f[0]),d[0]=na(c,d[0]),f[0]=ia(c,f[0]),d[1]=na(l,d[1]),f[1]=ia(l,f[1]),d[1]=na(p,d[1]),f[1]=ia(p,f[1]),n=e[a++],i=e[a++];break;case da.Q:g=n,L=i,M=e[a++],x=e[a++],S=e[a],v=e[a+1],b=va,T=_a,t=w=t=_=void 0,_=$r,t=ia(na((w=Qr)(g,M,S),1),0),w=ia(na(w(L,x,v),1),0),M=_(g,M,S,t),t=_(L,x,v,w),b[0]=na(g,S,M),b[1]=na(L,v,t),T[0]=ia(g,S,M),T[1]=ia(L,v,t),n=e[a++],i=e[a++];break;case da.A:var v,_=e[a++],x=e[a++],w=e[a++],b=e[a++],S=e[a++],M=e[a++]+S,T=(a+=1,!e[a++]),C=(z&&(o=ba(S)*w+_,r=Sa(S)*b+x),E=v=U=G=R=O=L=P=D=k=I=A=C=void 0,_),A=x,I=w,k=b,D=S,P=M,L=T,O=va,R=_a,G=Xt,U=Yt;if((v=Math.abs(D-P))%aa<1e-4&&1e-4<v)O[0]=C-I,O[1]=A-k,R[0]=C+I,R[1]=A+k;else{sa[0]=ra(D)*I+C,sa[1]=oa(D)*k+A,la[0]=ra(P)*I+C,la[1]=oa(P)*k+A,G(O,sa,la),U(R,sa,la),(D%=aa)<0&&(D+=aa),(P%=aa)<0&&(P+=aa),P<D&&!L?P+=aa:D<P&&L&&(D+=aa),L&&(v=P,P=D,D=v);for(var E=0;E<P;E+=Math.PI/2)D<E&&(ha[0]=ra(E)*I+C,ha[1]=oa(E)*k+A,G(O,ha,O),U(R,ha,R))}n=ba(M)*w+_,i=Sa(M)*b+x;break;case da.R:ua(o=n=e[a++],r=i=e[a++],o+e[a++],r+e[a++],va,_a);break;case da.Z:n=o,i=r}Xt(ya,ya,va),Yt(ma,ma,_a)}return 0===a&&(ya[0]=ya[1]=ma[0]=ma[1]=0),new X(ya[0],ya[1],ma[0]-ya[0],ma[1]-ya[1])},o.prototype._calculateLength=function(){for(var t=this.data,e=this._len,n=this._ux,i=this._uy,o=0,r=0,a=0,s=0,l=(this._pathSegLen||(this._pathSegLen=[]),this._pathSegLen),h=0,u=0,c=0;c<e;){var p=t[c++],d=1===c,f=(d&&(a=o=t[c],s=r=t[c+1]),-1);switch(p){case da.M:o=a=t[c++],r=s=t[c++];break;case da.L:var g=t[c++],y=(_=t[c++])-r;(Ta(A=g-o)>n||Ta(y)>i||c===e-1)&&(f=Math.sqrt(A*A+y*y),o=g,r=_);break;case da.C:var m=t[c++],v=t[c++],g=t[c++],_=t[c++],x=t[c++],w=t[c++],f=function(t,e,n,i,o,r,a,s,l){for(var h=t,u=e,c=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=Xr(t,n,o,a,f),f=Xr(e,i,r,s,f),y=g-h,m=f-u;c+=Math.sqrt(y*y+m*m),h=g,u=f}return c}(o,r,m,v,g,_,x,w,10),o=x,r=w;break;case da.Q:f=function(t,e,n,i,o,r,a){for(var s=t,l=e,h=0,u=1/a,c=1;c<=a;c++){var p=c*u,d=$r(t,n,o,p),p=$r(e,i,r,p),f=d-s,g=p-l;h+=Math.sqrt(f*f+g*g),s=d,l=p}return h}(o,r,m=t[c++],v=t[c++],g=t[c++],_=t[c++],10),o=g,r=_;break;case da.A:var x=t[c++],w=t[c++],b=t[c++],S=t[c++],M=t[c++],T=t[c++],C=T+M;c+=1,t[c++],d&&(a=ba(M)*b+x,s=Sa(M)*S+w),f=wa(b,S)*xa(Aa,Math.abs(T)),o=ba(C)*b+x,r=Sa(C)*S+w;break;case da.R:a=o=t[c++],s=r=t[c++];f=2*t[c++]+2*t[c++];break;case da.Z:var A=a-o,y=s-r;f=Math.sqrt(A*A+y*y),o=a,r=s}0<=f&&(h+=l[u++]=f)}return this._pathLen=h},o.prototype.rebuildPath=function(t,e){var n,i,o,r,a=this.data,s=this._ux,l=this._uy,h=this._len,u=e<1,c=0,p=0;if(!u||(this._pathSegLen||this._calculateLength(),o=this._pathSegLen,r=e*this._pathLen))t:for(var d=0;d<h;){var B=a[d++],f=1===d;switch(f&&(L=n=a[d],O=i=a[d+1]),B){case da.M:L=n=a[d++],O=i=a[d++],t.moveTo(n,i);break;case da.L:if(R=a[d++],E=a[d++],Ta(R-n)>s||Ta(E-i)>l||d===h-1){if(u){if(r<c+(P=o[p++])){var g=(r-c)/P;t.lineTo(n*(1-g)+R*g,i*(1-g)+E*g);break t}c+=P}t.lineTo(R,E),n=R,i=E}break;case da.C:var y=a[d++],m=a[d++],v=a[d++],_=a[d++],x=a[d++],w=a[d++];if(u){if(r<c+(P=o[p++])){jr(n,y,v,x,g=(r-c)/P,fa),jr(i,m,_,w,g,ga),t.bezierCurveTo(fa[1],ga[1],fa[2],ga[2],fa[3],ga[3]);break t}c+=P}t.bezierCurveTo(y,m,v,_,x,w),n=x,i=w;break;case da.Q:y=a[d++],m=a[d++],v=a[d++],_=a[d++];if(u){if(r<c+(P=o[p++])){ta(n,y,v,g=(r-c)/P,fa),ta(i,m,_,g,ga),t.quadraticCurveTo(fa[1],ga[1],fa[2],ga[2]);break t}c+=P}t.quadraticCurveTo(y,m,v,_),n=v,i=_;break;case da.A:var x=a[d++],w=a[d++],b=a[d++],S=a[d++],M=a[d++],T=a[d++],C=a[d++],A=!a[d++],z=S<b?b:S,I=.001<Ta(b-S),k=M+T,D=!1;if(u&&(r<c+(P=o[p++])&&(k=M+T*(r-c)/P,D=!0),c+=P),I&&t.ellipse?t.ellipse(x,w,b,S,C,M,k,A):t.arc(x,w,z,M,k,A),D)break t;f&&(L=ba(M)*b+x,O=Sa(M)*S+w),n=ba(k)*b+x,i=Sa(k)*S+w;break;case da.R:var P,L=n=a[d],O=i=a[d+1],R=a[d++],E=a[d++],T=a[d++],I=a[d++];if(u){if(r<c+(P=o[p++])){C=r-c;t.moveTo(R,E),t.lineTo(R+xa(C,T),E),0<(C-=T)&&t.lineTo(R+T,E+xa(C,I)),0<(C-=I)&&t.lineTo(R+wa(T-C,0),E+I),0<(C-=T)&&t.lineTo(R,E+wa(I-C,0));break t}c+=P}t.rect(R,E,T,I);break;case da.Z:if(u){if(r<c+(P=o[p++])){g=(r-c)/P;t.lineTo(n*(1-g)+L*g,i*(1-g)+O*g);break t}c+=P}t.closePath(),n=L,i=O}}},o.CMD=da,o.initDefaultProps=((gh=o.prototype)._saveData=!0,gh._needsDash=!1,gh._dashOffset=0,gh._dashIdx=0,gh._dashSum=0,gh._ux=0,void(gh._uy=0));var La=o;function o(t){this.dpr=1,this._version=0,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}function Oa(t,e,n,i,o,r,a){var s;if(0!==o)return s=0,!(e+(o=o)<a&&i+o<a||a<e-o&&a<i-o||t+o<r&&n+o<r||r<t-o&&r<n-o)&&(t===n?Math.abs(r-t)<=o/2:(r=(s=(e-i)/(t-n))*r-a+(t*i-n*e)/(t-n))*r/(s*s+1)<=o/2*o/2)}var Ra=2*Math.PI;function Ea(t){return(t%=Ra)<0&&(t+=Ra),t}var Ba=2*Math.PI;function za(t,e,n,i,o,r){return e<r&&i<r||r<e&&r<i||i===e?0:(n=(r=(r-e)/(i-e))*(n-t)+t)===o?1/0:o<n?1!=r&&0!=r?i<e?1:-1:i<e?.5:-.5:0}var Na=La.CMD,Fa=2*Math.PI,Va=1e-4;var Ha=[-1,-1,-1],Wa=[-1,-1];function Ga(t,e,n,i,o,r,a,s,l,h){if(e<h&&i<h&&r<h&&s<h||h<e&&h<i&&h<r&&h<s)return 0;var u=Zr(e,i,r,s,h,Ha);if(0===u)return 0;for(var c,p=0,d=-1,f=void 0,g=void 0,y=0;y<u;y++){var m=Ha[y],v=0===m||1===m?.5:1;Xr(t,n,o,a,m)<l||(d<0&&(d=qr(e,i,r,s,Wa),Wa[1]<Wa[0]&&1<d&&(c=void 0,c=Wa[0],Wa[0]=Wa[1],Wa[1]=c),f=Xr(e,i,r,s,Wa[0]),1<d)&&(g=Xr(e,i,r,s,Wa[1])),2===d?m<Wa[0]?p+=f<e?v:-v:m<Wa[1]?p+=g<f?v:-v:p+=s<g?v:-v:m<Wa[0]?p+=f<e?v:-v:p+=s<f?v:-v)}return p}function Ua(t,e,n,i,o,r,a,s){if(e<s&&i<s&&r<s||s<e&&s<i&&s<r)return 0;c=Ha,u=(l=e)-2*(h=i)+(u=r),h=2*(h-l),l-=s=s,s=0,Gr(u)?Ur(h)&&0<=(p=-l/h)&&p<=1&&(c[s++]=p):Gr(l=h*h-4*u*l)?0<=(p=-h/(2*u))&&p<=1&&(c[s++]=p):0<l&&(d=(-h-(l=zr(l)))/(2*u),0<=(p=(-h+l)/(2*u))&&p<=1&&(c[s++]=p),0<=d)&&d<=1&&(c[s++]=d);var l,h,u,c,p,d,f=s;if(0===f)return 0;var g=Qr(e,i,r);if(0<=g&&g<=1){for(var y=0,m=$r(e,i,r,g),v=0;v<f;v++){var _=0===Ha[v]||1===Ha[v]?.5:1;$r(t,n,o,Ha[v])<a||(Ha[v]<g?y+=m<e?_:-_:y+=r<m?_:-_)}return y}return _=0===Ha[0]||1===Ha[0]?.5:1,$r(t,n,o,Ha[0])<a?0:r<e?_:-_}function Xa(t,e,n,i,o){for(var r,a=t.data,s=t.len(),l=0,h=0,u=0,c=0,p=0,d=0;d<s;){var f=a[d++],g=1===d;switch(f===Na.M&&1<d&&(n||(l+=za(h,u,c,p,i,o))),g&&(c=h=a[d],p=u=a[d+1]),f){case Na.M:h=c=a[d++],u=p=a[d++];break;case Na.L:if(n){if(Oa(h,u,a[d],a[d+1],e,i,o))return!0}else l+=za(h,u,a[d],a[d+1],i,o)||0;h=a[d++],u=a[d++];break;case Na.C:if(n){if(function(t,e,n,i,o,r,a,s,l,h,u){if(0!==l)return!(e+(l=l)<u&&i+l<u&&r+l<u&&s+l<u||u<e-l&&u<i-l&&u<r-l&&u<s-l||t+l<h&&n+l<h&&o+l<h&&a+l<h||h<t-l&&h<n-l&&h<o-l&&h<a-l)&&Kr(t,e,n,i,o,r,a,s,h,u,null)<=l/2}(h,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,i,o))return!0}else l+=Ga(h,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,o)||0;h=a[d++],u=a[d++];break;case Na.Q:if(n){if(function(t,e,n,i,o,r,a,s,l){if(0!==a)return!(e+(a=a)<l&&i+a<l&&r+a<l||l<e-a&&l<i-a&&l<r-a||t+a<s&&n+a<s&&o+a<s||s<t-a&&s<n-a&&s<o-a)&&ea(t,e,n,i,o,r,s,l,null)<=a/2}(h,u,a[d++],a[d++],a[d],a[d+1],e,i,o))return!0}else l+=Ua(h,u,a[d++],a[d++],a[d],a[d+1],i,o)||0;h=a[d++],u=a[d++];break;case Na.A:var y=a[d++],m=a[d++],v=a[d++],_=a[d++],x=a[d++],w=a[d++],b=(d+=1,!!(1-a[d++])),S=Math.cos(x)*v+y,M=Math.sin(x)*_+m,T=(g?(c=S,p=M):l+=za(h,u,S,M,i,o),(i-y)*_/v+y);if(n){if(function(t,e,n,i,o,r,a,s,l){if(0!==a)return a=a,s-=t,l-=e,!(n<(t=Math.sqrt(s*s+l*l))-a||t+a<n)&&(Math.abs(i-o)%Ba<1e-4||((o=r?(e=i,i=Ea(o),Ea(e)):(i=Ea(i),Ea(o)))<i&&(o+=Ba),(t=Math.atan2(l,s))<0&&(t+=Ba),i<=t&&t<=o)||i<=t+Ba&&t+Ba<=o)}(y,m,_,x,x+w,b,e,T,o))return!0}else l+=function(t,e,n,i,o,r,a,s){if(n<(s-=e)||s<-n)return 0;var e=Math.sqrt(n*n-s*s);if(Ha[0]=-e,Ha[1]=e,(n=Math.abs(i-o))<1e-4)return 0;if(Fa-1e-4<=n)return o=Fa,u=r?1:-1,a>=Ha[i=0]+t&&a<=Ha[1]+t?u:0;o<i&&(e=i,i=o,o=e),i<0&&(i+=Fa,o+=Fa);for(var l=0,h=0;h<2;h++){var u,c=Ha[h];a<c+t&&(u=r?1:-1,i<=(c=(c=Math.atan2(s,c))<0?Fa+c:c)&&c<=o||i<=c+Fa&&c+Fa<=o)&&(l+=u=c>Math.PI/2&&c<1.5*Math.PI?-u:u)}return l}(y,m,_,x,x+w,b,T,o);h=Math.cos(x+w)*v+y,u=Math.sin(x+w)*_+m;break;case Na.R:c=h=a[d++],p=u=a[d++];if(S=c+a[d++],M=p+a[d++],n){if(Oa(c,p,S,p,e,i,o)||Oa(S,p,S,M,e,i,o)||Oa(S,M,c,M,e,i,o)||Oa(c,M,c,p,e,i,o))return!0}else l=(l+=za(S,p,S,M,i,o))+za(c,M,c,p,i,o);break;case Na.Z:if(n){if(Oa(h,u,c,p,e,i,o))return!0}else l+=za(h,u,c,p,i,o);h=c,u=p}}return n||(t=u,r=p,Math.abs(t-r)<Va)||(l+=za(h,u,c,p,i,o)||0),0!==l}var Ya,Za=N({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Pr),qa={style:N({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Lr.style)},ja=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],j=(h(a,Ya=n),a.prototype.update=function(){var e=this,t=(Ya.prototype.update.call(this),this.style);if(t.decal){var n,i=this._decalEl=this._decalEl||new a,o=(i.buildPath===a.prototype.buildPath&&(i.buildPath=function(t){e.buildPath(t,e.shape)}),i.silent=!0,i.style);for(n in t)o[n]!==t[n]&&(o[n]=t[n]);o.fill=t.fill?t.decal:null,o.decal=null,o.shadowColor=null,t.strokeFirst&&(o.stroke=null);for(var r=0;r<ja.length;++r)i[ja[r]]=this[ja[r]];i.__dirty|=mi.REDARAW_BIT}else this._decalEl&&(this._decalEl=null)},a.prototype.getDecalElement=function(){return this._decalEl},a.prototype._init=function(t){var e=k(t),n=(this.shape=this.getDefaultShape(),this.getDefaultStyle());n&&this.useStyle(n);for(var i=0;i<e.length;i++){var o=e[i],r=t[o];"style"===o?this.style?T(this.style,r):this.useStyle(r):"shape"===o?T(this.shape,r):Ya.prototype.attrKV.call(this,o,r)}this.style||this.useStyle({})},a.prototype.getDefaultStyle=function(){return null},a.prototype.getDefaultShape=function(){return{}},a.prototype.canBeInsideText=function(){return this.hasFill()},a.prototype.getInsideTextFill=function(){var t,e=this.style.fill;if("none"!==e){if(C(e))return.5<(t=xn(e,0))?ui:.2<t?"#eee":ci;if(e)return ci}return ui},a.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(C(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==xn(t,0)<.4)return e}},a.prototype.buildPath=function(t,e,n){},a.prototype.pathUpdated=function(){this.__dirty&=~a.SHAPE_CHANGED_BIT},a.prototype.createPathProxy=function(){this.path=new La(!1)},a.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))},a.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},a.prototype.getBoundingRect=function(){var t,e,n=this._rect,i=this.style,o=!n;return o&&(t=!1,this.path||(t=!0,this.createPathProxy()),e=this.path,(t||this.__dirty&a.SHAPE_CHANGED_BIT)&&(e.beginPath(),this.buildPath(e,this.shape,!1),this.pathUpdated()),n=e.getBoundingRect()),this._rect=n,this.hasStroke()&&this.path&&0<this.path.len()?(t=this._rectWithStroke||(this._rectWithStroke=n.clone()),(this.__dirty||o)&&(t.copy(n),e=i.strokeNoScale?this.getLineScale():1,o=i.lineWidth,this.hasFill()||(i=this.strokeContainThreshold,o=Math.max(o,null==i?4:i)),1e-10<e)&&(t.width+=o/e,t.height+=o/e,t.x-=o/e/2,t.y-=o/e/2),t):n},a.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),o=this.style;if(t=n[0],e=n[1],i.contain(t,e)){n=this.path;if(this.hasStroke()){i=o.lineWidth,o=o.strokeNoScale?this.getLineScale():1;if(1e-10<o&&(this.hasFill()||(i=Math.max(i,this.strokeContainThreshold)),Xa(n,i/o,!0,t,e)))return!0}if(this.hasFill())return Xa(n,0,!1,t,e)}return!1},a.prototype.dirtyShape=function(){this.__dirty|=a.SHAPE_CHANGED_BIT,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},a.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},a.prototype.animateShape=function(t){return this.animate("shape",t)},a.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},a.prototype.attrKV=function(t,e){"shape"===t?this.setShape(e):Ya.prototype.attrKV.call(this,t,e)},a.prototype.setShape=function(t,e){var n=(n=this.shape)||(this.shape={});return"string"==typeof t?n[t]=e:T(n,t),this.dirtyShape(),this},a.prototype.shapeChanged=function(){return!!(this.__dirty&a.SHAPE_CHANGED_BIT)},a.prototype.createStyle=function(t){return It(Za,t)},a.prototype._innerSaveToNormal=function(t){Ya.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.shape&&!e.shape&&(e.shape=T({},this.shape))},a.prototype._applyStateObj=function(t,e,n,i,o,r){Ya.prototype._applyStateObj.call(this,t,e,n,i,o,r);var a,s=!(e&&i);if(e&&e.shape?o?i?a=e.shape:(a=T({},n.shape),T(a,e.shape)):(a=T({},(i?this:n).shape),T(a,e.shape)):s&&(a=n.shape),a)if(o){this.shape=T({},this.shape);for(var l={},h=k(a),u=0;u<h.length;u++){var c=h[u];"object"==typeof a[c]?this.shape[c]=a[c]:l[c]=a[c]}this._transitionState(t,{shape:l},r)}else this.shape=a,this.dirtyShape()},a.prototype._mergeStates=function(t){for(var e,n=Ya.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.shape&&this._mergeStyle(e=e||{},o.shape)}return e&&(n.shape=e),n},a.prototype.getAnimationStyleProps=function(){return qa},a.prototype.isZeroArea=function(){return!1},a.extend=function(n){h(o,i=a),o.prototype.getDefaultStyle=function(){return M(n.style)},o.prototype.getDefaultShape=function(){return M(n.shape)};var i,t,e=o;function o(t){var e=i.call(this,t)||this;return n.init&&n.init.call(e,t),e}for(t in n)"function"==typeof n[t]&&(e.prototype[t]=n[t]);return e},a.SHAPE_CHANGED_BIT=4,a.initDefaultProps=((gh=a.prototype).type="path",gh.strokeContainThreshold=5,gh.segmentIgnoreThreshold=0,gh.subPixelOptimize=!1,gh.autoBatch=!1,void(gh.__dirty=mi.REDARAW_BIT|n.STYLE_CHANGED_BIT|a.SHAPE_CHANGED_BIT)),a);function a(t){return Ya.call(this,t)||this}var Ka,$a=N({strokeFirst:!0,font:Kn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Za),Ja=(h(Qa,Ka=n),Qa.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&0<t.lineWidth},Qa.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},Qa.prototype.createStyle=function(t){return It($a,t)},Qa.prototype.setBoundingRect=function(t){this._rect=t},Qa.prototype.getBoundingRect=function(){var t,e=this.style;return this._rect||(null!=(t=e.text)?t+="":t="",(t=ti(t,e.font,e.textAlign,e.textBaseline)).x+=e.x||0,t.y+=e.y||0,this.hasStroke()&&(e=e.lineWidth,t.x-=e/2,t.y-=e/2,t.width+=e,t.height+=e),this._rect=t),this._rect},Qa.initDefaultProps=void(Qa.prototype.dirtyRectTolerance=10),Qa);function Qa(){return null!==Ka&&Ka.apply(this,arguments)||this}Ja.prototype.type="tspan";var ts=N({x:0,y:0},Pr),es={style:N({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Lr.style)};h(os,ns=n),os.prototype.createStyle=function(t){return It(ts,t)},os.prototype._getSize=function(t){var e,n=this.style,i=n[t];return null!=i?i:(i=(i=n.image)&&"string"!=typeof i&&i.width&&i.height?n.image:this.__image)?null==(e=n[n="width"===t?"height":"width"])?i[t]:i[t]/i[n]*e:0},os.prototype.getWidth=function(){return this._getSize("width")},os.prototype.getHeight=function(){return this._getSize("height")},os.prototype.getAnimationStyleProps=function(){return es},os.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new X(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect};var ns,is=os;function os(){return null!==ns&&ns.apply(this,arguments)||this}is.prototype.type="image";var rs=Math.round;function as(t,e,n){var i,o,r;if(e)return i=e.x1,o=e.x2,r=e.y1,e=e.y2,t.x1=i,t.x2=o,t.y1=r,t.y2=e,(n=n&&n.lineWidth)&&(rs(2*i)===rs(2*o)&&(t.x1=t.x2=ls(i,n,!0)),rs(2*r)===rs(2*e))&&(t.y1=t.y2=ls(r,n,!0)),t}function ss(t,e,n){var i,o,r;if(e)return i=e.x,o=e.y,r=e.width,e=e.height,t.x=i,t.y=o,t.width=r,t.height=e,(n=n&&n.lineWidth)&&(t.x=ls(i,n,!0),t.y=ls(o,n,!0),t.width=Math.max(ls(i+r,n,!1)-t.x,0===r?0:1),t.height=Math.max(ls(o+e,n,!1)-t.y,0===e?0:1)),t}function ls(t,e,n){var i;return e?((i=rs(2*t))+rs(e))%2==0?i/2:(i+(n?1:-1))/2:t}var hs,us=function(){this.x=0,this.y=0,this.width=0,this.height=0},cs={},ps=(h(ds,hs=j),ds.prototype.getDefaultShape=function(){return new us},ds.prototype.buildPath=function(t,e){var n,i,o,r,a,s,l,h,u,c,p,d,f,g;this.subPixelOptimize?(n=(a=ss(cs,e,this.style)).x,i=a.y,o=a.width,r=a.height,a.r=e.r,e=a):(n=e.x,i=e.y,o=e.width,r=e.height),e.r?(a=t,p=(e=e).x,d=e.y,f=e.width,g=e.height,e=e.r,f<0&&(p+=f,f=-f),g<0&&(d+=g,g=-g),"number"==typeof e?s=l=h=u=e:e instanceof Array?1===e.length?s=l=h=u=e[0]:2===e.length?(s=h=e[0],l=u=e[1]):3===e.length?(s=e[0],l=u=e[1],h=e[2]):(s=e[0],l=e[1],h=e[2],u=e[3]):s=l=h=u=0,f<s+l&&(s*=f/(c=s+l),l*=f/c),f<h+u&&(h*=f/(c=h+u),u*=f/c),g<l+h&&(l*=g/(c=l+h),h*=g/c),g<s+u&&(s*=g/(c=s+u),u*=g/c),a.moveTo(p+s,d),a.lineTo(p+f-l,d),0!==l&&a.arc(p+f-l,d+l,l,-Math.PI/2,0),a.lineTo(p+f,d+g-h),0!==h&&a.arc(p+f-h,d+g-h,h,0,Math.PI/2),a.lineTo(p+u,d+g),0!==u&&a.arc(p+u,d+g-u,u,Math.PI/2,Math.PI),a.lineTo(p,d+s),0!==s&&a.arc(p+s,d+s,s,Math.PI,1.5*Math.PI)):t.rect(n,i,o,r)},ds.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},ds);function ds(t){return hs.call(this,t)||this}ps.prototype.type="rect";var fs,gs={fill:"#000"},ys={style:N({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Lr.style)},ms=(h(vs,fs=n),vs.prototype.childrenRef=function(){return this._children},vs.prototype.update=function(){this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var e=this._children[t];e.zlevel=this.zlevel,e.z=this.z,e.z2=this.z2,e.culling=this.culling,e.cursor=this.cursor,e.invisible=this.invisible}var n=this.attachedTransform;n?(n.updateTransform(),(n=n.transform)?(this.transform=this.transform||[],Pe(this.transform,n)):this.transform=null):fs.prototype.update.call(this)},vs.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),this.attachedTransform?this.attachedTransform.getComputedTransform():fs.prototype.getComputedTransform.call(this)},vs.prototype._updateSubTexts=function(){var t;this._childCursor=0,ws(t=this.style),I(t.rich,ws),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},vs.prototype.addSelfToZr=function(t){fs.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=t},vs.prototype.removeSelfFromZr=function(t){fs.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=null},vs.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new X(0,0,0,0),e=this._children,n=[],i=null,o=0;o<e.length;o++){var r=e[o],a=r.getBoundingRect(),r=r.getLocalTransform(n);r?(t.copy(a),t.applyTransform(r),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},vs.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||gs},vs.prototype.setTextContent=function(t){throw new Error("Can't attach text on another text")},vs.prototype._mergeStyle=function(t,e){var n,i;return e&&(n=e.rich,i=t.rich||n&&{},T(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i)),t},vs.prototype._mergeRich=function(t,e){for(var n=k(e),i=0;i<n.length;i++){var o=n[i];t[o]=t[o]||{},T(t[o],e[o])}},vs.prototype.getAnimationStyleProps=function(){return ys},vs.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),(this._children[this._childCursor++]=e).__zr=this.__zr,e.parent=this,e},vs.prototype._updatePlainTexts=function(){for(var t,e,n=this.style,i=n.font||Kn,o=n.padding,r=function(t,e){null!=t&&(t+="");var n,i=e.overflow,o=e.padding,r=e.font,a="truncate"===i,s=ii(r),l=L(e.lineHeight,s),h="truncate"===e.lineOverflow,u=e.width,i=(n=null!=u&&"break"===i||"breakAll"===i?t?Ir(t,e.font,u,"breakAll"===i,0).lines:[]:t?t.split("\n"):[]).length*l,c=L(e.height,i),h=(c<i&&h&&(h=Math.floor(c/l),n=n.slice(0,h)),c),p=u;if(o&&(h+=o[0]+o[2],null!=p)&&(p+=o[1]+o[3]),t&&a&&null!=p)for(var d=xr(u,r,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),f=0;f<n.length;f++)n[f]=wr(n[f],d);if(null==u){for(var g=0,f=0;f<n.length;f++)g=Math.max(Jn(n[f],r),g);u=g}return{lines:n,height:c,outerHeight:h,lineHeight:l,calculatedLineHeight:s,contentHeight:i,width:u}}(Ms(n),n),a=Ts(n),s=!!n.backgroundColor,l=r.outerHeight,h=r.lines,u=r.lineHeight,c=this._defaultStyle,p=n.x||0,d=n.y||0,f=n.align||c.align||"left",g=n.verticalAlign||c.verticalAlign||"top",y=p,m=ni(d,r.contentHeight,g),v=((a||o)&&(t=r.width,o&&(t+=o[1]+o[3]),e=ei(p,t,f),d=ni(d,l,g),a)&&this._renderBackground(n,n,e,d,t,l),m+=u/2,o&&(y=Ss(p,f,o),"top"===g?m+=o[0]:"bottom"===g&&(m-=o[2])),0),a=!1,_=(null==(e=("fill"in n?n:(a=!0,c)).fill)||"none"===e?null:e.image||e.colorStops?"#000":e),x=(bs("stroke"in n?n.stroke:s||c.autoStroke&&!a?null:(v=2,c.stroke))),w=0<n.textShadowBlur,b=null!=n.width&&("truncate"===n.overflow||"break"===n.overflow||"breakAll"===n.overflow),S=r.calculatedLineHeight,M=0;M<h.length;M++){var T=this._getOrCreateChild(Ja),C=T.createStyle();T.useStyle(C),C.text=h[M],C.x=y,C.y=m,f&&(C.textAlign=f),C.textBaseline="middle",C.opacity=n.opacity,C.strokeFirst=!0,w&&(C.shadowBlur=n.textShadowBlur||0,C.shadowColor=n.textShadowColor||"transparent",C.shadowOffsetX=n.textShadowOffsetX||0,C.shadowOffsetY=n.textShadowOffsetY||0),x&&(C.stroke=x,C.lineWidth=n.lineWidth||v,C.lineDash=n.lineDash,C.lineDashOffset=n.lineDashOffset||0),_&&(C.fill=_),C.font=i,m+=u,b&&T.setBoundingRect(new X(ei(C.x,n.width,C.textAlign),ni(C.y,S,C.textBaseline),n.width,S))}},vs.prototype._updateRichTexts=function(){for(var t=this.style,e=Tr(Ms(t),t),n=e.width,i=e.outerWidth,o=e.outerHeight,r=t.padding,a=t.x||0,s=t.y||0,l=this._defaultStyle,h=t.align||l.align,l=t.verticalAlign||l.verticalAlign,a=ei(a,i,h),h=ni(s,o,l),u=a,c=h,p=(r&&(u+=r[3],c+=r[0]),u+n),d=(Ts(t)&&this._renderBackground(t,t,a,h,i,o),!!t.backgroundColor),f=0;f<e.lines.length;f++){for(var g=e.lines[f],y=g.tokens,m=y.length,v=g.lineHeight,_=g.width,x=0,w=u,b=p,S=m-1,M=void 0;x<m&&(!(M=y[x]).align||"left"===M.align);)this._placeToken(M,t,v,c,w,"left",d),_-=M.width,w+=M.width,x++;for(;0<=S&&"right"===(M=y[S]).align;)this._placeToken(M,t,v,c,b,"right",d),_-=M.width,b-=M.width,S--;for(w+=(n-(w-u)-(p-b)-_)/2;x<=S;)M=y[x],this._placeToken(M,t,v,c,w+M.width/2,"center",d),w+=M.width,x++;c+=v}},vs.prototype._placeToken=function(t,e,n,i,o,r,a){var s=e.rich[t.styleName]||{},l=(s.text=t.text,t.verticalAlign),h=i+n/2;"top"===l?h=i+t.height/2:"bottom"===l&&(h=i+n-t.height/2);!t.isLineHolder&&Ts(s)&&this._renderBackground(s,e,"right"===r?o-t.width:"center"===r?o-t.width/2:o,h-t.height/2,t.width,t.height);var l=!!s.backgroundColor,i=t.textPadding,n=(i&&(o=Ss(o,r,i),h-=t.height/2-i[0]-t.innerHeight/2),this._getOrCreateChild(Ja)),i=n.createStyle(),u=(n.useStyle(i),this._defaultStyle),c=!1,p=0,d=bs(("fill"in s?s:"fill"in e?e:(c=!0,u)).fill),l=bs("stroke"in s?s.stroke:"stroke"in e?e.stroke:l||a||u.autoStroke&&!c?null:(p=2,u.stroke)),a=0<s.textShadowBlur||0<e.textShadowBlur,c=(i.text=t.text,i.x=o,i.y=h,a&&(i.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,i.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",i.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,i.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),i.textAlign=r,i.textBaseline="middle",i.font=t.font||Kn,i.opacity=vt(s.opacity,e.opacity,1),l&&(i.lineWidth=vt(s.lineWidth,e.lineWidth,p),i.lineDash=L(s.lineDash,e.lineDash),i.lineDashOffset=e.lineDashOffset||0,i.stroke=l),d&&(i.fill=d),t.contentWidth),u=t.contentHeight;n.setBoundingRect(new X(ei(i.x,c,i.textAlign),ni(i.y,u,i.textBaseline),c,u))},vs.prototype._renderBackground=function(t,e,n,i,o,r){var a,s,l,h,u=t.backgroundColor,c=t.borderWidth,p=t.borderColor,d=C(u),f=t.borderRadius,g=this,f=((d||c&&p)&&((a=this._getOrCreateChild(ps)).useStyle(a.createStyle()),a.style.fill=null,(l=a.shape).x=n,l.y=i,l.width=o,l.height=r,l.r=f,a.dirtyShape()),d?((h=a.style).fill=u||null,h.fillOpacity=L(t.fillOpacity,1)):u&&u.image&&((s=this._getOrCreateChild(is)).onload=function(){g.dirtyStyle()},(l=s.style).image=u.image,l.x=n,l.y=i,l.width=o,l.height=r),c&&p&&((h=a.style).lineWidth=c,h.stroke=p,h.strokeOpacity=L(t.strokeOpacity,1),h.lineDash=t.borderDash,h.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill())&&a.hasStroke()&&(h.strokeFirst=!0,h.lineWidth*=2),(a||s).style);f.shadowBlur=t.shadowBlur||0,f.shadowColor=t.shadowColor||"transparent",f.shadowOffsetX=t.shadowOffsetX||0,f.shadowOffsetY=t.shadowOffsetY||0,f.opacity=vt(t.opacity,e.opacity,1)},vs.makeFont=function(t){var e,n="";return(t.fontSize||t.fontFamily||t.fontWeight)&&(e="",e="string"!=typeof t.fontSize||-1===t.fontSize.indexOf("px")&&-1===t.fontSize.indexOf("rem")&&-1===t.fontSize.indexOf("em")?isNaN(+t.fontSize)?"12px":t.fontSize+"px":t.fontSize,n=[t.fontStyle,t.fontWeight,e,t.fontFamily||"sans-serif"].join(" ")),n&&bt(n)||t.textFont||t.font},vs);function vs(t){var e=fs.call(this)||this;return e.type="text",e._children=[],e._defaultStyle=gs,e.attr(t),e}var _s={left:!0,right:1,center:1},xs={top:1,bottom:1,middle:1};function ws(t){var e;t&&(t.font=ms.makeFont(t),e=t.align,t.align=null==(e="middle"===e?"center":e)||_s[e]?e:"left",e=t.verticalAlign,t.verticalAlign=null==(e="center"===e?"middle":e)||xs[e]?e:"top",t.padding)&&(t.padding=xt(t.padding))}function bs(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Ss(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Ms(t){t=t.text;return null!=t&&(t+=""),t}function Ts(t){return!!(t.backgroundColor||t.borderWidth&&t.borderColor)}var Cs=Xo(),As=1,Is={},ks=Xo(),Ds=0,Ps=1,Ls=2,Os=["emphasis","blur","select"],Rs=["normal","emphasis","blur","select"],Es="highlight",Bs="downplay",zs="select",Ns="unselect",Fs="toggleSelect";function Vs(t){return null!=t&&"none"!==t}var Hs=new Je(100);function Ws(t){var e;return"string"!=typeof t?t:((e=Hs.get(t))||(e=gn(t,-.1),Hs.put(t,e)),e)}function Gs(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Us(t){Gs(t,"emphasis",Ls)}function Xs(t){t.hoverState===Ls&&Gs(t,"normal",Ds)}function Ys(t){Gs(t,"blur",Ps)}function Zs(t){t.hoverState===Ps&&Gs(t,"normal",Ds)}function qs(t){t.selected=!0}function js(t){t.selected=!1}function Ks(t,e,n){e(t,n)}function $s(t,e,n){Ks(t,e,n),t.isGroup&&t.traverse(function(t){Ks(t,e,n)})}function Js(t,e){switch(e){case"emphasis":t.hoverState=Ls;break;case"normal":t.hoverState=Ds;break;case"blur":t.hoverState=Ps;break;case"select":t.selected=!0}}function Qs(t,e,n){var i=0<=A(t.currentStates,e),o=t.style.opacity,t=i?null:function(t,e,n,i){for(var o=t.style,r={},a=0;a<e.length;a++){var s=e[a],l=o[s];r[s]=null==l?i&&i[s]:l}for(a=0;a<t.animators.length;a++){var h=t.animators[a];h.__fromStateTransition&&h.__fromStateTransition.indexOf(n)<0&&"style"===h.targetName&&h.saveFinalToTarget(r,e)}return r}(t,["opacity"],e,{opacity:1}),e=(n=n||{}).style||{};return null==e.opacity&&(n=T({},n),e=T({opacity:i?o:.1*t.opacity},e),n.style=e),n}function tl(t,e){var n,i,o,r,a,s=this.states[t];if(this.style){if("emphasis"===t)return n=this,i=s,e=(e=e)&&0<=A(e,"select"),a=!1,n instanceof j&&(o=ks(n),r=e&&o.selectFill||o.normalFill,e=e&&o.selectStroke||o.normalStroke,Vs(r)||Vs(e))&&(!Vs((o=(i=i||{}).style||{}).fill)&&Vs(r)?(a=!0,i=T({},i),(o=T({},o)).fill=Ws(r)):!Vs(o.stroke)&&Vs(e)&&(a||(i=T({},i),o=T({},o)),o.stroke=Ws(e)),i.style=o),i&&null==i.z2&&(a||(i=T({},i)),r=n.z2EmphasisLift,i.z2=n.z2+(null!=r?r:10)),i;if("blur"===t)return Qs(this,t,s);if("select"===t)return e=this,(o=s)&&null==o.z2&&(o=T({},o),a=e.z2SelectLift,o.z2=e.z2+(null!=a?a:9)),o}return s}function el(t){t.stateProxy=tl;var e=t.getTextContent(),t=t.getTextGuideLine();e&&(e.stateProxy=tl),t&&(t.stateProxy=tl)}function nl(t,e){hl(t,e)||t.__highByOuter||$s(t,Us)}function il(t,e){hl(t,e)||t.__highByOuter||$s(t,Xs)}function ol(t,e){t.__highByOuter|=1<<(e||0),$s(t,Us)}function rl(t,e){(t.__highByOuter&=~(1<<(e||0)))||$s(t,Xs)}function al(t){$s(t,Zs)}function sl(t){$s(t,qs)}function ll(t){$s(t,js)}function hl(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function ul(n){n.getModel().eachComponent(function(t,e){("series"===t?n.getViewOfSeriesModel(e):n.getViewOfComponentModel(e)).group.traverse(function(t){Zs(t)})})}function cl(t,r,a,s){var l,h,u,n=s.getModel();function c(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&al(i)}}a=a||"coordinateSystem",null!=t&&r&&"none"!==r&&(l=n.getSeriesByIndex(t),(h=l.coordinateSystem)&&h.master&&(h=h.master),u=[],n.eachSeries(function(t){var e=l===t,n=t.coordinateSystem,n=(n=n&&n.master?n.master:n)&&h?n===h:e;if(!("series"===a&&!e||"coordinateSystem"===a&&!n||"series"===r&&e)){if(s.getViewOfSeriesModel(t).group.traverse(function(t){Ys(t)}),it(r))c(t.getData(),r);else if(D(r))for(var i=k(r),o=0;o<i.length;o++)c(t.getData(i[o]),r[i[o]]);u.push(t)}}),n.eachComponent(function(t,e){"series"!==t&&(t=s.getViewOfComponentModel(e))&&t.blurSeries&&t.blurSeries(u,n)}))}function pl(t,e,n){var i;null!=t&&null!=e&&(t=n.getModel().getComponent(t,e))&&(i=n.getViewOfComponentModel(t))&&i.focusBlurEnabled&&i.group.traverse(function(t){Ys(t)})}function dl(t,e,n,i){var o={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return o;t=i.getModel().getComponent(t,e);if(!t)return o;e=i.getViewOfComponentModel(t);if(!e||!e.findHighDownDispatchers)return o;for(var r,a=e.findHighDownDispatchers(n),s=0;s<a.length;s++)if("self"===Cs(a[s]).focus){r=!0;break}return{focusSelf:r,dispatchers:a}}function fl(i){I(i.getAllData(),function(t){var e=t.data,n=t.type;e.eachItemGraphicEl(function(t,e){(i.isSelected(e,n)?sl:ll)(t)})})}function gl(t,e,n){var i=t,o=!1===(o=!0),r=i,i=(i.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=i.highDownSilentOnTouch),o&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!o),$s(t,el),t),r=e,o=n;i=Cs(i),null!=r?(i.focus=r,i.blurScope=o):i.focus&&(i.focus=null)}var yl=["emphasis","blur","select"],ml={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function vl(t,e,n,i){n=n||"itemStyle";for(var o=0;o<yl.length;o++){var r=yl[o],a=e.getModel([r,n]);t.ensureState(r).style=i?i(a):a[ml[n]]()}}function _l(t){return!(!t||!t.__highDownDispatcher)}function xl(t){t=t.type;return t===zs||t===Ns||t===Fs}function wl(t){t=t.type;return t===Es||t===Bs}var bl=La.CMD,Sl=[[],[],[]],Ml=Math.sqrt,Tl=Math.atan2;var Cl=Math.sqrt,Al=Math.sin,Il=Math.cos,kl=Math.PI;function Dl(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Pl(t,e){return(t[0]*e[0]+t[1]*e[1])/(Dl(t)*Dl(e))}function Ll(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Pl(t,e))}function Ol(t,e,n,i,o,r,a,s,l,h,u){var l=l*(kl/180),c=Il(l)*(t-n)/2+Al(l)*(e-i)/2,p=-1*Al(l)*(t-n)/2+Il(l)*(e-i)/2,d=c*c/(a*a)+p*p/(s*s),d=(1<d&&(a*=Cl(d),s*=Cl(d)),(o===r?-1:1)*Cl((a*a*(s*s)-a*a*(p*p)-s*s*(c*c))/(a*a*(p*p)+s*s*(c*c)))||0),o=d*a*p/s,d=d*-s*c/a,t=(t+n)/2+Il(l)*o-Al(l)*d,n=(e+i)/2+Al(l)*o+Il(l)*d,e=Ll([1,0],[(c-o)/a,(p-d)/s]),i=[(c-o)/a,(p-d)/s],c=[(-1*c-o)/a,(-1*p-d)/s],o=Ll(i,c);Pl(i,c)<=-1&&(o=kl),(o=1<=Pl(i,c)?0:o)<0&&(p=Math.round(o/kl*1e6)/1e6,o=2*kl+p%2*kl),u.addData(h,t,n,a,s,e,o,l,r)}var Rl=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,El=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;h(Nl,Bl=j),Nl.prototype.applyTransform=function(t){};var Bl,zl=Nl;function Nl(){return null!==Bl&&Bl.apply(this,arguments)||this}function Fl(t){return null!=t.setData}function Vl(t,e){var S=function(t){var e=new La;if(t){var n,i=0,o=0,r=i,a=o,s=La.CMD,l=t.match(Rl);if(l){for(var h=0;h<l.length;h++){for(var u=l[h],c=u.charAt(0),p=void 0,d=u.match(El)||[],f=d.length,g=0;g<f;g++)d[g]=parseFloat(d[g]);for(var y=0;y<f;){var m=void 0,v=void 0,_=void 0,x=void 0,w=void 0,b=void 0,S=void 0,M=i,T=o,C=void 0,A=void 0;switch(c){case"l":i+=d[y++],o+=d[y++],p=s.L,e.addData(p,i,o);break;case"L":i=d[y++],o=d[y++],p=s.L,e.addData(p,i,o);break;case"m":i+=d[y++],o+=d[y++],p=s.M,e.addData(p,i,o),r=i,a=o,c="l";break;case"M":i=d[y++],o=d[y++],p=s.M,e.addData(p,i,o),r=i,a=o,c="L";break;case"h":i+=d[y++],p=s.L,e.addData(p,i,o);break;case"H":i=d[y++],p=s.L,e.addData(p,i,o);break;case"v":o+=d[y++],p=s.L,e.addData(p,i,o);break;case"V":o=d[y++],p=s.L,e.addData(p,i,o);break;case"C":p=s.C,e.addData(p,d[y++],d[y++],d[y++],d[y++],d[y++],d[y++]),i=d[y-2],o=d[y-1];break;case"c":p=s.C,e.addData(p,d[y++]+i,d[y++]+o,d[y++]+i,d[y++]+o,d[y++]+i,d[y++]+o),i+=d[y-2],o+=d[y-1];break;case"S":m=i,v=o,C=e.len(),A=e.data,n===s.C&&(m+=i-A[C-4],v+=o-A[C-3]),p=s.C,M=d[y++],T=d[y++],i=d[y++],o=d[y++],e.addData(p,m,v,M,T,i,o);break;case"s":m=i,v=o,C=e.len(),A=e.data,n===s.C&&(m+=i-A[C-4],v+=o-A[C-3]),p=s.C,M=i+d[y++],T=o+d[y++],i+=d[y++],o+=d[y++],e.addData(p,m,v,M,T,i,o);break;case"Q":M=d[y++],T=d[y++],i=d[y++],o=d[y++],p=s.Q,e.addData(p,M,T,i,o);break;case"q":M=d[y++]+i,T=d[y++]+o,i+=d[y++],o+=d[y++],p=s.Q,e.addData(p,M,T,i,o);break;case"T":m=i,v=o,C=e.len(),A=e.data,n===s.Q&&(m+=i-A[C-4],v+=o-A[C-3]),i=d[y++],o=d[y++],p=s.Q,e.addData(p,m,v,i,o);break;case"t":m=i,v=o,C=e.len(),A=e.data,n===s.Q&&(m+=i-A[C-4],v+=o-A[C-3]),i+=d[y++],o+=d[y++],p=s.Q,e.addData(p,m,v,i,o);break;case"A":_=d[y++],x=d[y++],w=d[y++],b=d[y++],S=d[y++],Ol(M=i,T=o,i=d[y++],o=d[y++],b,S,_,x,w,p=s.A,e);break;case"a":_=d[y++],x=d[y++],w=d[y++],b=d[y++],S=d[y++],Ol(M=i,T=o,i+=d[y++],o+=d[y++],b,S,_,x,w,p=s.A,e)}}"z"!==c&&"Z"!==c||(p=s.Z,e.addData(p),i=r,o=a),n=p}e.toStatic()}}return e}(t),t=T({},e);return t.buildPath=function(t){var e;Fl(t)?(t.setData(S.data),(e=t.getContext())&&t.rebuildPath(e,1)):S.rebuildPath(e=t,1)},t.applyTransform=function(t){for(var e,n,i,o,r=S,a=t,s=r.data,l=r.len(),h=bl.M,u=bl.C,c=bl.L,p=bl.R,d=bl.A,f=bl.Q,g=0,y=0;g<l;){switch(e=s[g++],y=g,n=0,e){case h:case c:n=1;break;case u:n=3;break;case f:n=2;break;case d:var m=a[4],v=a[5],_=Ml(a[0]*a[0]+a[1]*a[1]),x=Ml(a[2]*a[2]+a[3]*a[3]),w=Tl(-a[1]/x,a[0]/_);s[g]*=_,s[g++]+=m,s[g]*=x,s[g++]+=v,s[g++]*=_,s[g++]*=x,s[g++]+=w,s[g++]+=w,y=g+=2;break;case p:o[0]=s[g++],o[1]=s[g++],Ut(o,o,a),s[y++]=o[0],s[y++]=o[1],o[0]+=s[g++],o[1]+=s[g++],Ut(o,o,a),s[y++]=o[0],s[y++]=o[1]}for(i=0;i<n;i++){var b=Sl[i];b[0]=s[g++],b[1]=s[g++],Ut(b,b,a),s[y++]=b[0],s[y++]=b[1]}}r.increaseVersion(),this.dirtyShape()},t}function Hl(t,e){return new zl(Vl(t,e))}var Wl,Gl=function(){this.cx=0,this.cy=0,this.r=0},Ul=(h(Xl,Wl=j),Xl.prototype.getDefaultShape=function(){return new Gl},Xl.prototype.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)},Xl);function Xl(t){return Wl.call(this,t)||this}Ul.prototype.type="circle";var Yl,Zl=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},ql=(h(jl,Yl=j),jl.prototype.getDefaultShape=function(){return new Zl},jl.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=e.rx,e=e.ry,r=.5522848*o,a=.5522848*e;t.moveTo(n-o,i),t.bezierCurveTo(n-o,i-a,n-r,i-e,n,i-e),t.bezierCurveTo(n+r,i-e,n+o,i-a,n+o,i),t.bezierCurveTo(n+o,i+a,n+r,i+e,n,i+e),t.bezierCurveTo(n-r,i+e,n-o,i+a,n-o,i),t.closePath()},jl);function jl(t){return Yl.call(this,t)||this}ql.prototype.type="ellipse";var Kl=Math.PI,$l=2*Kl,Jl=Math.sin,Ql=Math.cos,th=Math.acos,eh=Math.atan2,nh=Math.abs,ih=Math.sqrt,oh=Math.max,rh=Math.min,ah=1e-4;function sh(t,e,n,i,o,r,a){var s=t-n,l=e-i,a=(a?r:-r)/ih(s*s+l*l),l=a*l,a=-a*s,s=t+l,t=e+a,e=n+l,n=i+a,i=(s+e)/2,h=(t+n)/2,u=e-s,c=n-t,p=u*u+c*c,r=o-r,s=s*n-e*t,n=(c<0?-1:1)*ih(oh(0,r*r*p-s*s)),e=(s*c-u*n)/p,t=(-s*u-c*n)/p,d=(s*c+u*n)/p,s=(-s*u+c*n)/p,u=e-i,c=t-h,n=d-i,p=s-h;return n*n+p*p<u*u+c*c&&(e=d,t=s),{cx:e,cy:t,x01:-l,y01:-a,x11:e*(o/r-1),y11:t*(o/r-1)}}function lh(t,e){var n,i,o,r,a,s,l,h,u,c,p,d,f,g,y,m,v,_,x,w,b,S,M,T=oh(e.r,0),C=oh(e.r0||0,0),A=0<T;(A||0<C)&&(A||(T=C,C=0),T<C&&(A=T,T=C,C=A),A=!!e.clockwise,o=(n=e.startAngle)===(i=e.endAngle)?0:(Pa(o=[n,i],!A),nh(o[0]-o[1])),r=e.cx,a=e.cy,s=e.cornerRadius||0,e=e.innerCornerRadius||0,ah<T?$l-ah<o?(t.moveTo(r+T*Ql(n),a+T*Jl(n)),t.arc(r,a,T,n,i,!A),ah<C&&(t.moveTo(r+C*Ql(i),a+C*Jl(i)),t.arc(r,a,C,i,n,A))):(l=nh(T-C)/2,s=rh(l,s),e=l=rh(l,e),v=s,h=T*Ql(n),u=T*Jl(n),c=C*Ql(i),p=C*Jl(i),b=w=x=_=void 0,(ah<s||ah<l)&&(_=T*Ql(i),x=T*Jl(i),w=C*Ql(n),b=C*Jl(n),o<Kl)&&(d=function(t,e,n,i,o,r,a,s){var l=(s=s-r)*(n=n-t)-(a=a-o)*(i=i-e);if(!(l*l<ah))return[t+(l=(a*(e-r)-s*(t-o))/l)*n,e+l*i]}(h,u,w,b,_,x,c,p))&&(y=h-d[0],m=u-d[1],f=_-d[0],g=x-d[1],y=1/Jl(th((y*f+m*g)/(ih(y*y+m*m)*ih(f*f+g*g)))/2),m=ih(d[0]*d[0]+d[1]*d[1]),e=rh(l,(C-m)/(y-1)),v=rh(s,(T-m)/(1+y))),ah<o?ah<v?(S=sh(w,b,h,u,T,v,A),M=sh(_,x,c,p,T,v,A),t.moveTo(r+S.cx+S.x01,a+S.cy+S.y01),v<s?t.arc(r+S.cx,a+S.cy,v,eh(S.y01,S.x01),eh(M.y01,M.x01),!A):(t.arc(r+S.cx,a+S.cy,v,eh(S.y01,S.x01),eh(S.y11,S.x11),!A),t.arc(r,a,T,eh(S.cy+S.y11,S.cx+S.x11),eh(M.cy+M.y11,M.cx+M.x11),!A),t.arc(r+M.cx,a+M.cy,v,eh(M.y11,M.x11),eh(M.y01,M.x01),!A))):(t.moveTo(r+h,a+u),t.arc(r,a,T,n,i,!A)):t.moveTo(r+h,a+u),ah<C&&ah<o?ah<e?(S=sh(c,p,_,x,C,-e,A),M=sh(h,u,w,b,C,-e,A),t.lineTo(r+S.cx+S.x01,a+S.cy+S.y01),e<l?t.arc(r+S.cx,a+S.cy,e,eh(S.y01,S.x01),eh(M.y01,M.x01),!A):(t.arc(r+S.cx,a+S.cy,e,eh(S.y01,S.x01),eh(S.y11,S.x11),!A),t.arc(r,a,C,eh(S.cy+S.y11,S.cx+S.x11),eh(M.cy+M.y11,M.cx+M.x11),A),t.arc(r+M.cx,a+M.cy,e,eh(M.y11,M.x11),eh(M.y01,M.x01),!A))):(t.lineTo(r+c,a+p),t.arc(r,a,C,i,n,A)):t.lineTo(r+c,a+p)):t.moveTo(r,a),t.closePath())}var hh,uh=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0,this.innerCornerRadius=0},ch=(h(ph,hh=j),ph.prototype.getDefaultShape=function(){return new uh},ph.prototype.buildPath=function(t,e){lh(t,e)},ph.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},ph);function ph(t){return hh.call(this,t)||this}ch.prototype.type="sector";var dh,fh=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},gh=(h(yh,dh=j),yh.prototype.getDefaultShape=function(){return new fh},yh.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,o,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,o,!0)},yh);function yh(t){return dh.call(this,t)||this}function mh(t,e,n,i,o,r,a){t=.5*(n-t),i=.5*(i-e);return(2*(e-n)+t+i)*a+(-3*(e-n)-2*t-i)*r+t*o+e}function vh(t,e,n){var i=e.smooth,o=e.points;if(o&&2<=o.length){if(i&&"spline"!==i)for(var r=function(t,e,n,i){var o,r,a=[],s=[],l=[],h=[];if(i){for(var u=[1/0,1/0],c=[-1/0,-1/0],p=0,d=t.length;p<d;p++)Xt(u,u,t[p]),Yt(c,c,t[p]);Xt(u,u,i[0]),Yt(c,c,i[1])}for(p=0,d=t.length;p<d;p++){var f=t[p];if(n)o=t[p?p-1:d-1],r=t[(p+1)%d];else{if(0===p||p===d-1){a.push(Lt(t[p]));continue}o=t[p-1],r=t[p+1]}Rt(s,r,o),zt(s,s,e);var g=Ft(f,o),y=Ft(f,r),m=g+y,m=(0!==m&&(g/=m,y/=m),zt(l,s,-g),zt(h,s,y),Ot([],f,l)),g=Ot([],f,h);i&&(Yt(m,m,u),Xt(m,m,c),Yt(g,g,u),Xt(g,g,c)),a.push(m),a.push(g)}return n&&a.push(a.shift()),a}(o,i,n,e.smoothConstraint),a=(t.moveTo(o[0][0],o[0][1]),o.length),s=0;s<(n?a:a-1);s++){var l=r[2*s],h=r[2*s+1],u=o[(s+1)%a];t.bezierCurveTo(l[0],l[1],h[0],h[1],u[0],u[1])}else{"spline"===i&&(o=function(t,e){for(var n=t.length,i=[],o=0,r=1;r<n;r++)o+=Ft(t[r-1],t[r]);for(var a=(a=o/2)<n?n:a,r=0;r<a;r++){var s=r/(a-1)*(e?n:n-1),l=Math.floor(s),s=s-l,h=void 0,u=t[l%n],c=void 0,p=void 0,p=e?(h=t[(l-1+n)%n],c=t[(l+1)%n],t[(l+2)%n]):(h=t[0===l?l:l-1],c=t[n-2<l?n-1:l+1],t[n-3<l?n-1:l+2]),l=s*s,d=s*l;i.push([mh(h[0],u[0],c[0],p[0],s,l,d),mh(h[1],u[1],c[1],p[1],s,l,d)])}return i}(o,n)),t.moveTo(o[0][0],o[0][1]);for(var s=1,c=o.length;s<c;s++)t.lineTo(o[s][0],o[s][1])}n&&t.closePath()}}gh.prototype.type="ring";var _h,xh=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},wh=(h(bh,_h=j),bh.prototype.getDefaultShape=function(){return new xh},bh.prototype.buildPath=function(t,e){vh(t,e,!0)},bh);function bh(t){return _h.call(this,t)||this}wh.prototype.type="polygon";var Sh,Mh=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},Th=(h(Ch,Sh=j),Ch.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Ch.prototype.getDefaultShape=function(){return new Mh},Ch.prototype.buildPath=function(t,e){vh(t,e,!1)},Ch);function Ch(t){return Sh.call(this,t)||this}Th.prototype.type="polyline";var Ah,Ih={},kh=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},Dh=(h(Ph,Ah=j),Ph.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Ph.prototype.getDefaultShape=function(){return new kh},Ph.prototype.buildPath=function(t,e){r=(this.subPixelOptimize?(n=(r=as(Ih,e,this.style)).x1,i=r.y1,o=r.x2,r):(n=e.x1,i=e.y1,o=e.x2,e)).y2;var n,i,o,r,e=e.percent;0!==e&&(t.moveTo(n,i),e<1&&(o=n*(1-e)+o*e,r=i*(1-e)+r*e),t.lineTo(o,r))},Ph.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},Ph);function Ph(t){return Ah.call(this,t)||this}Dh.prototype.type="line";var Lh=[],Oh=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Rh(t,e,n){var i=t.cpx2,o=t.cpy2;return null===i||null===o?[(n?Yr:Xr)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?Yr:Xr)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?Jr:$r)(t.x1,t.cpx1,t.x2,e),(n?Jr:$r)(t.y1,t.cpy1,t.y2,e)]}h(zh,Eh=j),zh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},zh.prototype.getDefaultShape=function(){return new Oh},zh.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,o=e.x2,r=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,h=e.cpy2,e=e.percent;0!==e&&(t.moveTo(n,i),null==l||null==h?(e<1&&(ta(n,a,o,e,Lh),a=Lh[1],o=Lh[2],ta(i,s,r,e,Lh),s=Lh[1],r=Lh[2]),t.quadraticCurveTo(a,s,o,r)):(e<1&&(jr(n,a,l,o,e,Lh),a=Lh[1],l=Lh[2],o=Lh[3],jr(i,s,h,r,e,Lh),s=Lh[1],h=Lh[2],r=Lh[3]),t.bezierCurveTo(a,s,l,h,o,r)))},zh.prototype.pointAt=function(t){return Rh(this.shape,t,!1)},zh.prototype.tangentAt=function(t){t=Rh(this.shape,t,!0);return Nt(t,t)};var Eh,Bh=zh;function zh(t){return Eh.call(this,t)||this}Bh.prototype.type="bezier-curve";var Nh,Fh=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Vh=(h(Hh,Nh=j),Hh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Hh.prototype.getDefaultShape=function(){return new Fh},Hh.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=Math.max(e.r,0),r=e.startAngle,a=e.endAngle,e=e.clockwise,s=Math.cos(r),l=Math.sin(r);t.moveTo(s*o+n,l*o+i),t.arc(n,i,o,r,a,!e)},Hh);function Hh(t){return Nh.call(this,t)||this}Vh.prototype.type="arc";h(Uh,Wh=j),Uh.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},Uh.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},Uh.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},Uh.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},Uh.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),j.prototype.getBoundingRect.call(this)};var Wh,Gh=Uh;function Uh(){var t=null!==Wh&&Wh.apply(this,arguments)||this;return t.type="compound",t}Yh.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})};var Xh=Yh;function Yh(t){this.colorStops=t||[]}h(jh,Zh=Xh);var Zh,qh=jh;function jh(t,e,n,i,o,r){o=Zh.call(this,o)||this;return o.x=null==t?0:t,o.y=null==e?0:e,o.x2=null==n?1:n,o.y2=null==i?0:i,o.type="linear",o.global=r||!1,o}h(Jh,Kh=Xh);var Kh,$h=Jh;function Jh(t,e,n,i,o){i=Kh.call(this,i)||this;return i.x=null==t?.5:t,i.y=null==e?.5:e,i.r=null==n?.5:n,i.type="radial",i.global=o||!1,i}var Qh=[0,0],tu=[0,0],eu=new R,nu=new R,iu=(ou.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,o=t.x,r=t.y,a=o+t.width,t=r+t.height;if(n[0].set(o,r),n[1].set(a,r),n[2].set(a,t),n[3].set(o,t),e)for(var s=0;s<4;s++)n[s].transform(e);R.sub(i[0],n[1],n[0]),R.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(s=0;s<2;s++)this._origin[s]=i[s].dot(n[0])},ou.prototype.intersect=function(t,e){var n=!0,i=!e;return eu.set(1/0,1/0),nu.set(0,0),!this._intersectCheckOneSide(this,t,eu,nu,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,eu,nu,i,-1)&&(n=!1,i)||i||R.copy(e,n?eu:nu),n},ou.prototype._intersectCheckOneSide=function(t,e,n,i,o,r){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,Qh),this._getProjMinMaxOnAxis(s,e._corners,tu),Qh[1]<tu[0]||tu[1]<Qh[0]){if(a=!1,o)return a;var h=Math.abs(tu[0]-Qh[1]),u=Math.abs(Qh[0]-tu[1]);Math.min(h,u)>i.len()&&(h<u?R.scale(i,l,-h*r):R.scale(i,l,u*r))}else n&&(h=Math.abs(tu[0]-Qh[1]),u=Math.abs(Qh[0]-tu[1]),Math.min(h,u)<n.len())&&(h<u?R.scale(n,l,h*r):R.scale(n,l,-u*r))}return a},ou.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],o=this._origin,r=e[0].dot(i)+o[t],a=r,s=r,l=1;l<e.length;l++)var h=e[l].dot(i)+o[t],a=Math.min(h,a),s=Math.max(h,s);n[0]=a,n[1]=s},ou);function ou(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new R;for(n=0;n<2;n++)this._axes[n]=new R;t&&this.fromBoundingRect(t,e)}var ru,au=[],su=(h(lu,ru=n),lu.prototype.traverse=function(t,e){t.call(e,this)},lu.prototype.useStyle=function(){this.style={}},lu.prototype.getCursor=function(){return this._cursor},lu.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},lu.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},lu.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},lu.prototype.addDisplayable=function(t,e){(e?this._temporaryDisplayables:this._displayables).push(t),this.markRedraw()},lu.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},lu.prototype.getDisplayables=function(){return this._displayables},lu.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},lu.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},lu.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++)(e=this._displayables[t]).parent=this,e.update(),e.parent=null;for(var e,t=0;t<this._temporaryDisplayables.length;t++)(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null},lu.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new X(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(au)),t.union(i)}this._rect=t}return this._rect},lu.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++)if(this._displayables[i].contain(t,e))return!0;return!1},lu);function lu(){var t=null!==ru&&ru.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}var hu=Math.max,uu=Math.min,cu={};function pu(t){return j.extend(t)}var du=function(t,e){var n,i=Vl(t,e);function o(t){t=n.call(this,t)||this;return t.applyTransform=i.applyTransform,t.buildPath=i.buildPath,t}return h(o,n=zl),o};function fu(t,e){return du(t,e)}function gu(t,e){cu[t]=e}function yu(t){if(cu.hasOwnProperty(t))return cu[t]}function mu(t,e,n,i){t=Hl(t,e);return n&&("center"===i&&(n=_u(n,t.getBoundingRect())),wu(t,n)),t}function vu(t,e,n){var i=new is({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){"center"===n&&(t={width:t.width,height:t.height},i.setStyle(_u(e,t)))}});return i}function _u(t,e){var e=e.width/e.height,n=t.height*e,e=n<=t.width?t.height:(n=t.width)/e;return{x:t.x+t.width/2-n/2,y:t.y+t.height/2-e/2,width:n,height:e}}function xu(t,e){for(var n=[],i=t.length,o=0;o<i;o++){var r=t[o];r.path||r.createPathProxy(),r.shapeChanged()&&r.buildPath(r.path,r.shape,!0),n.push(r.path)}return(e=new j(e)).createPathProxy(),e.buildPath=function(t){var e;Fl(t)&&(t.appendPath(n),e=t.getContext())&&t.rebuildPath(e,1)},e}function wu(t,e){t.applyTransform&&(e=t.getBoundingRect().calculateTransform(e),t.applyTransform(e))}Xh=ls;function bu(t,e,n,i,o,r,a){var s,l,h,u,c=!1,p=("function"==typeof o?(a=r,r=o,o=null):D(o)&&(r=o.cb,a=o.during,c=o.isFrom,s=o.removeOpt,o=o.dataIndex),"update"===t),d="remove"===t,f=(i&&i.ecModel&&(l=(l=i.ecModel.getUpdatePayload())&&l.animation),i&&i.isAnimationEnabled());d||e.stopAnimation("remove"),f?(u=h=f=void 0,"function"==typeof(u=l?(f=l.duration||0,h=l.easing||"cubicOut",l.delay||0):d?(f=L((s=s||{}).duration,200),h=L(s.easing,"cubicOut"),0):(f=i.getShallow(p?"animationDurationUpdate":"animationDuration"),h=i.getShallow(p?"animationEasingUpdate":"animationEasing"),i.getShallow(p?"animationDelayUpdate":"animationDelay")))&&(u=u(o,i.getAnimationDelayParams?i.getAnimationDelayParams(e,o):null)),0<(f="function"==typeof f?f(o):f)?c?e.animateFrom(n,{duration:f,delay:u||0,easing:h,done:r,force:!!r||!!a,scope:t,during:a}):e.animateTo(n,{duration:f,delay:u||0,easing:h,done:r,force:!!r||!!a,setToFinal:!0,scope:t,during:a}):(e.stopAnimation(),c||e.attr(n),r&&r())):(e.stopAnimation(),c||e.attr(n),a&&a(1),r&&r())}function Su(t,e,n,i,o,r){bu("update",t,e,n,i,o,r)}function Mu(t,e,n,i,o,r){bu("init",t,e,n,i,o,r)}function Tu(t,e,n,i,o,r){Au(t)||bu("remove",t,e,n,i,o,r)}function Cu(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),Tu(t,{style:{opacity:0}},e,n,i)}function Au(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++)if("remove"===t.animators[e].scope)return!0;return!1}function Iu(t,e){for(var n=De([]);t&&t!==e;)Le(n,t.getLocalTransform(),n),t=t.parent;return n}function ku(t,e,n){return e&&!it(e)&&(e=Ue.getLocalTransform(e)),Ut([],t,e=n?Be([],e):e)}function Du(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),o=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),i=ku(["left"===t?-i:"right"===t?i:0,"top"===t?-o:"bottom"===t?o:0],e,n);return Math.abs(i[0])>Math.abs(i[1])?0<i[0]?"right":"left":0<i[1]?"bottom":"top"}function Pu(t){return!t.isGroup}function Lu(t,e,i){var o,n;function r(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=T({},t.shape)),e}t&&e&&(n={},t.traverse(function(t){Pu(t)&&t.anid&&(n[t.anid]=t)}),o=n,e.traverse(function(t){var e,n;Pu(t)&&t.anid&&(e=o[t.anid])&&(n=r(t),t.attr(r(e)),Su(t,n,i,Cs(t).dataIndex))}))}function Ou(t,n){return q(t,function(t){var e=t[0],e=hu(e,n.x),t=(e=uu(e,n.x+n.width),t[1]),t=hu(t,n.y);return[e,uu(t,n.y+n.height)]})}function Ru(t,e){var n=hu(t.x,e.x),i=uu(t.x+t.width,e.x+e.width),o=hu(t.y,e.y),t=uu(t.y+t.height,e.y+e.height);if(n<=i&&o<=t)return{x:n,y:o,width:i-n,height:t-o}}function Eu(t,e,n){var e=T({rectHover:!0},e),i=e.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),N(i,n),new is(e)):mu(t.replace("path://",""),e,n,"center")}function Bu(t,e,n,i,o,r,a,s){var l,n=n-t,i=i-e,a=a-o,s=s-r,h=a*i-n*s;return!((l=h)<=1e-6&&-1e-6<=l||(o=((l=t-o)*i-n*(t=e-r))/h)<0||1<o||(i=(l*s-a*t)/h)<0||1<i)}function zu(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,e=C(e)?{formatter:e}:e,o=n.mainType,n=n.componentIndex,r={componentType:o,name:i,$vars:["name"]},a=(r[o+"Index"]=n,t.formatterParamsExtra),t=(a&&I(k(a),function(t){O(r,t)||(r[t]=a[t],r.$vars.push(t))}),Cs(t.el));t.componentMainType=o,t.componentIndex=n,t.tooltipConfig={name:i,option:N({content:i,formatterParams:r},e)}}gu("circle",Ul),gu("ellipse",ql),gu("sector",ch),gu("ring",gh),gu("polygon",wh),gu("polyline",Th),gu("rect",ps),gu("line",Dh),gu("bezierCurve",Bh),gu("arc",Vh);var Nu=Object.freeze({__proto__:null,Arc:Vh,BezierCurve:Bh,BoundingRect:X,Circle:Ul,CompoundPath:Gh,Ellipse:ql,Group:so,Image:is,IncrementalDisplayable:su,Line:Dh,LinearGradient:qh,OrientedBoundingRect:iu,Path:j,Point:R,Polygon:wh,Polyline:Th,RadialGradient:$h,Rect:ps,Ring:gh,Sector:ch,Text:ms,applyTransform:ku,clipPointsByRect:Ou,clipRectByRect:Ru,createIcon:Eu,extendPath:fu,extendShape:pu,getShapeClass:yu,getTransform:Iu,groupTransition:Lu,initProps:Mu,isElementRemoved:Au,lineLineIntersect:Bu,linePolygonIntersect:function(t,e,n,i,o){for(var r=0,a=o[o.length-1];r<o.length;r++){var s=o[r];if(Bu(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}},makeImage:vu,makePath:mu,mergePath:xu,registerShape:gu,removeElement:Tu,removeElementWithFadeOut:function(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||Cu(t,e,n,i)}):Cu(t,e,n,i)},resizePath:wu,setTooltipConfig:zu,subPixelOptimize:Xh,subPixelOptimizeLine:function(t){return as(t.shape,t.shape,t.style),t},subPixelOptimizeRect:function(t){return ss(t.shape,t.shape,t.style),t},transformDirection:Du,updateProps:Su}),Fu={};function Vu(t,e){for(var n=0;n<Os.length;n++){var i=Os[n],o=e[i],i=t.ensureState(i);i.style=i.style||{},i.style.text=o}var r=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(r,!0)}function Hu(t,e,n){for(var i,o=t.labelFetcher,r=t.labelDataIndex,a=t.labelDimIndex,s=e.normal,l={normal:i=null==(i=o?o.getFormattedLabel(r,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null):i)?st(t.defaultText)?t.defaultText(r,t,n):t.defaultText:i},h=0;h<Os.length;h++){var u=Os[h],c=e[u];l[u]=L(o?o.getFormattedLabel(r,u,null,a,c&&c.get("formatter")):null,i)}return l}function Wu(t,e,n,i){n=n||Fu;for(var o=t instanceof ms,r=!1,a=0;a<Rs.length;a++)if((p=e[Rs[a]])&&p.getShallow("show")){r=!0;break}var s=o?t:t.getTextContent();if(r){o||(s||(s=new ms,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=Hu(n,e),h=e.normal,u=!!h.getShallow("show"),c=Uu(h,i&&i.normal,n,!1,!o);c.text=l.normal,o||t.setTextConfig(Xu(h,n,!1));for(a=0;a<Os.length;a++){var p,d,f,g=Os[a];(p=e[g])&&(d=s.ensureState(g),(f=!!L(p.getShallow("show"),u))!=u&&(d.ignore=!f),d.style=Uu(p,i&&i[g],n,!0,!o),d.style.text=l[g],o||(t.ensureState(g).textConfig=Xu(p,n,!0)))}s.silent=!!h.getShallow("silent"),null!=s.style.x&&(c.x=s.style.x),null!=s.style.y&&(c.y=s.style.y),s.ignore=!u,s.useStyle(c),s.dirty(),n.enableTextSetter&&($u(s).setLabelText=function(t){t=Hu(n,e,t);Vu(s,t)})}else s&&(s.ignore=!0);t.dirty()}function Gu(t,e){for(var n={normal:t.getModel(e=e||"label")},i=0;i<Os.length;i++){var o=Os[i];n[o]=t.getModel([o,e])}return n}function Uu(t,e,n,i,o){var r,a={},s=a,l=t,h=n,u=i,c=o;h=h||Fu;var p,t=l.ecModel,d=t&&t.option.textStyle,f=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||Fu).rich;if(n){e=e||{};for(var i=k(n),o=0;o<i.length;o++){var r=i[o];e[r]=1}}t=t.parentModel}return e}(l);if(f)for(var g in p={},f)f.hasOwnProperty(g)&&(r=l.getModel(["rich",g]),ju(p[g]={},r,d,h,u,c,!1,!0));return p&&(s.rich=p),(t=l.get("overflow"))&&(s.overflow=t),null!=(t=l.get("minMargin"))&&(s.margin=t),ju(s,l,d,h,u,c,!0,!1),e&&T(a,e),a}function Xu(t,e,n){e=e||{};var i={},o=t.getShallow("rotate"),r=L(t.getShallow("distance"),n?null:5),a=t.getShallow("offset"),n=t.getShallow("position")||(n?null:"inside");return null!=(n="outside"===n?e.defaultOutsidePosition||"top":n)&&(i.position=n),null!=a&&(i.offset=a),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=r&&(i.distance=r),i.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",i}var Yu=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Zu=["align","lineHeight","width","height","tag","verticalAlign"],qu=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function ju(t,e,n,i,o,r,a,s){n=!o&&n||Fu;var l=i&&i.inheritColor,h=e.getShallow("color"),u=e.getShallow("textBorderColor"),c=L(e.getShallow("opacity"),n.opacity),h=("inherit"!==h&&"auto"!==h||(h=l||null),"inherit"!==u&&"auto"!==u||(u=l||null),r||(h=h||n.color,u=u||n.textBorderColor),null!=h&&(t.fill=h),null!=u&&(t.stroke=u),L(e.getShallow("textBorderWidth"),n.textBorderWidth)),u=(null!=h&&(t.lineWidth=h),L(e.getShallow("textBorderType"),n.textBorderType)),h=(null!=u&&(t.lineDash=u),L(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset));null!=h&&(t.lineDashOffset=h),null!=(c=o||null!=c||s?c:i&&i.defaultOpacity)&&(t.opacity=c),o||r||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var p=0;p<Yu.length;p++){var d=Yu[p];null!=(f=L(e.getShallow(d),n[d]))&&(t[d]=f)}for(var p=0;p<Zu.length;p++){d=Zu[p];null!=(f=e.getShallow(d))&&(t[d]=f)}if(null==t.verticalAlign&&null!=(u=e.getShallow("baseline"))&&(t.verticalAlign=u),!a||!i.disableBox){for(p=0;p<qu.length;p++){var f,d=qu[p];null!=(f=e.getShallow(d))&&(t[d]=f)}h=e.getShallow("borderType");null!=h&&(t.borderDash=h),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function Ku(t,e){e=e&&e.getModel("textStyle");return bt([t.fontStyle||e&&e.getShallow("fontStyle")||"",t.fontWeight||e&&e.getShallow("fontWeight")||"",(t.fontSize||e&&e.getShallow("fontSize")||12)+"px",t.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var $u=Xo();function Ju(n,i,o,t,r){var a,s,l,h=$u(n);h.valueAnimation&&(a=h.defaultInterpolatedText,s=L(h.interpolatedValue,h.prevValue),l=h.value,(null==s?Mu:Su)(n,{},t,i,null,function(t){var e=Qo(o,h.precision,s,l,t),t=(h.interpolatedValue=1===t?null:e,Hu({labelDataIndex:i,labelFetcher:r,defaultText:a?a(e):e+""},h.statesModels,e));Vu(n,t)}))}var Qu=["textStyle","color"],tc=new ms,n=(ec.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Qu):null)},ec.prototype.getFont=function(){return Ku({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},ec.prototype.getTextRect=function(t){return tc.useStyle({text:t,fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily"),verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline"),padding:this.getShallow("padding"),lineHeight:this.getShallow("lineHeight"),rich:this.getShallow("rich")}),tc.update(),tc.getBoundingRect()},ec);function ec(){}var Xh=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],nc=ur(Xh),ic=(oc.prototype.getLineStyle=function(t){return nc(this,t)},oc);function oc(){}var rc=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],ac=ur(rc),sc=(lc.prototype.getItemStyle=function(t,e){return ac(this,t,e)},lc);function lc(){}cc.prototype.init=function(t,e,n){},cc.prototype.mergeOption=function(t,e){p(this.option,t,!0)},cc.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},cc.prototype.getShallow=function(t,e){var n=this.option,n=null==n?n:n[t];return null!=n||e||(e=this.parentModel)&&(n=e.getShallow(t)),n},cc.prototype.getModel=function(t,e){var n=null!=t,t=n?this.parsePath(t):null;return new cc(n?this._doGet(t):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(t)),this.ecModel)},cc.prototype.isEmpty=function(){return null==this.option},cc.prototype.restoreData=function(){},cc.prototype.clone=function(){return new this.constructor(M(this.option))},cc.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},cc.prototype.resolveParentPath=function(t){return t},cc.prototype.isAnimationEnabled=function(){if(!b.node&&this.option)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0},cc.prototype._doGet=function(t,e){var n=this.option;if(t){for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel))}return n};var hc,uc=cc;function cc(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}or(uc),Ac=uc,hc=["__\0is_clz",ar++].join("_"),Ac.prototype[hc]=!0,Ac.isInstance=function(t){return!(!t||!t[hc])},nt(uc,ic),nt(uc,sc),nt(uc,pr),nt(uc,n);var pc=Math.round(10*Math.random());function dc(t){return[t||"",pc++].join("_")}function fc(t,e){return p(p({},t,!0),e,!0)}var gc="ZH",yc="EN",mc=yc,vc={},_c={},xc=b.domSupported&&-1<(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(gc)?gc:mc;function wc(t,e){t=t.toUpperCase(),_c[t]=new uc(e),vc[t]=e}wc(yc,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Guage",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),wc(gc,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var bc=1e3,Sc=60*bc,Mc=60*Sc,Tc=24*Mc,ar=365*Tc,Cc={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{hh}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss} {SSS}"},Ac="{yyyy}-{MM}-{dd}",Ic={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ac,hour:Ac+" "+Cc.hour,minute:Ac+" "+Cc.minute,second:Ac+" "+Cc.second,millisecond:Cc.none},kc=["year","month","day","hour","minute","second","millisecond"],Dc=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Pc(t,e){return"0000".substr(0,e-(t+="").length)+t}function Lc(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function Oc(t,e,n,i){var t=Mo(t),o=t[Bc(n)](),r=t[zc(n)]()+1,a=Math.floor((r-1)/4)+1,s=t[Nc(n)](),l=t["get"+(n?"UTC":"")+"Day"](),h=t[Fc(n)](),u=(h-1)%12+1,c=t[Vc(n)](),p=t[Hc(n)](),t=t[Wc(n)](),n=(i instanceof uc?i:_c[i||xc]||_c[mc]).getModel("time"),i=n.get("month"),d=n.get("monthAbbr"),f=n.get("dayOfWeek"),n=n.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,a+"").replace(/{MMMM}/g,i[r-1]).replace(/{MMM}/g,d[r-1]).replace(/{MM}/g,Pc(r,2)).replace(/{M}/g,r+"").replace(/{dd}/g,Pc(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,f[l]).replace(/{ee}/g,n[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Pc(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,Pc(u+"",2)).replace(/{h}/g,u+"").replace(/{mm}/g,Pc(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Pc(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Pc(t,3)).replace(/{S}/g,t+"")}function Rc(t,e){var t=Mo(t),n=t[zc(e)]()+1,i=t[Nc(e)](),o=t[Fc(e)](),r=t[Vc(e)](),a=t[Hc(e)](),t=0===t[Wc(e)](),e=t&&0===a,a=e&&0===r,r=a&&0===o,o=r&&1===i;return o&&1===n?"year":o?"month":r?"day":a?"hour":e?"minute":t?"second":"millisecond"}function Ec(t,e,n){var i="number"==typeof t?Mo(t):t;switch(e=e||Rc(t,n)){case"year":return i[Bc(n)]();case"half-year":return 6<=i[zc(n)]()?1:0;case"quarter":return Math.floor((i[zc(n)]()+1)/4);case"month":return i[zc(n)]();case"day":return i[Nc(n)]();case"half-day":return i[Fc(n)]()/24;case"hour":return i[Fc(n)]();case"minute":return i[Vc(n)]();case"second":return i[Hc(n)]();case"millisecond":return i[Wc(n)]()}}function Bc(t){return t?"getUTCFullYear":"getFullYear"}function zc(t){return t?"getUTCMonth":"getMonth"}function Nc(t){return t?"getUTCDate":"getDate"}function Fc(t){return t?"getUTCHours":"getHours"}function Vc(t){return t?"getUTCMinutes":"getMinutes"}function Hc(t){return t?"getUTCSeconds":"getSeconds"}function Wc(t){return t?"getUTCSeconds":"getSeconds"}function Gc(t){return t?"setUTCMonth":"setMonth"}function Uc(t){return t?"setUTCDate":"setDate"}function Xc(t){return t?"setUTCHours":"setHours"}function Yc(t){return t?"setUTCMinutes":"setMinutes"}function Zc(t){return t?"setUTCSeconds":"setSeconds"}function qc(t){return t?"setUTCSeconds":"setSeconds"}function jc(t){var e;return ko(t)?(e=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1<e.length?"."+e[1]:""):C(t)?t:"-"}function Kc(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),t=e?t&&t.charAt(0).toUpperCase()+t.slice(1):t}var $c=xt,Jc=/([&<>"'])/g,Qc={"&":"&","<":"<",">":">",'"':""","'":"'"};function tp(t){return null==t?"":(t+"").replace(Jc,function(t,e){return Qc[e]})}function ep(t,e,n){function i(t){return t&&bt(t)?t:"-"}function o(t){return null!=t&&!isNaN(t)&&isFinite(t)}var r="time"===e,a=t instanceof Date;if(r||a){var r=r?Mo(t):t;if(!isNaN(+r))return Oc(r,"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}",n);if(a)return"-"}return"ordinal"===e?lt(t)?i(t):ht(t)&&o(t)?t+"":"-":o(r=Io(t))?jc(r):lt(t)?i(t):"-"}function np(t,e){return"{"+t+(null==e?"":e)+"}"}var ip=["a","b","c","d","e","f","g"];function op(t,e,n){var i=(e=F(e)?e:[e]).length;if(!i)return"";for(var o=e[0].$vars||[],r=0;r<o.length;r++){var a=ip[r];t=t.replace(np(a),np(a,0))}for(var s=0;s<i;s++)for(var l=0;l<o.length;l++){var h=e[s][o[l]];t=t.replace(np(ip[l],s),n?tp(h):h)}return t}function rp(t,e){var t=C(t)?{color:t,extraCssText:e}:t||{},n=t.color,i=t.type,o=(e=t.extraCssText,t.renderMode||"html");return n?"html"===o?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+tp(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+tp(n)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(t.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""}function ap(t,e){return e=e||"transparent",C(t)?t:D(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var sp=I,lp=["left","right","top","bottom","width","height"],hp=[["width","left","right"],["height","top","bottom"]];function up(a,s,l,h,u){var c=0,p=0,d=(null==h&&(h=1/0),null==u&&(u=1/0),0);s.eachChild(function(t,e){var n,i,o,r=t.getBoundingRect(),e=s.childAt(e+1),e=e&&e.getBoundingRect();d="horizontal"===a?(i=r.width+(e?-e.x+r.x:0),h<(n=c+i)||t.newline?(c=0,n=i,p+=d+l,r.height):Math.max(d,r.height)):(i=r.height+(e?-e.y+r.y:0),u<(o=p+i)||t.newline?(c+=d+l,p=0,o=i,r.width):Math.max(d,r.width)),t.newline||(t.x=c,t.y=p,t.markRedraw(),"horizontal"===a?c=n+l:p=o+l)})}function cp(t,e,n){n=$c(n||0);var i=e.width,o=e.height,r=B(t.left,i),a=B(t.top,o),e=B(t.right,i),s=B(t.bottom,o),l=B(t.width,i),h=B(t.height,o),u=n[2]+n[0],c=n[1]+n[3],p=t.aspect;switch(isNaN(l)&&(l=i-e-c-r),isNaN(h)&&(h=o-s-u-a),null!=p&&(isNaN(l)&&isNaN(h)&&(i/o<p?l=.8*i:h=.8*o),isNaN(l)&&(l=p*h),isNaN(h))&&(h=l/p),isNaN(r)&&(r=i-e-l-c),isNaN(a)&&(a=o-s-h-u),t.left||t.right){case"center":r=i/2-l/2-n[3];break;case"right":r=i-l-c}switch(t.top||t.bottom){case"middle":case"center":a=o/2-h/2-n[0];break;case"bottom":a=o-h-u}r=r||0,a=a||0,isNaN(l)&&(l=i-c-r-(e||0)),isNaN(h)&&(h=o-u-a-(s||0));p=new X(r+n[3],a+n[0],l,h);return p.margin=n,p}function pp(t){t=t.layoutMode||t.constructor.layoutMode;return D(t)?t:t?{type:t}:null}function dp(l,h,t){var u=t&&t.ignoreSize,t=(F(u)||(u=[u,u]),n(hp[0],0)),e=n(hp[1],1);function n(t,e){var n={},i=0,o={},r=0;if(sp(t,function(t){o[t]=l[t]}),sp(t,function(t){c(h,t)&&(n[t]=o[t]=h[t]),p(n,t)&&i++,p(o,t)&&r++}),u[e])p(h,t[1])?o[t[2]]=null:p(h,t[2])&&(o[t[1]]=null);else if(2!==r&&i){if(!(2<=i))for(var a=0;a<t.length;a++){var s=t[a];if(!c(n,s)&&c(l,s)){n[s]=l[s];break}}return n}return o}function c(t,e){return t.hasOwnProperty(e)}function p(t,e){return null!=t[e]&&"auto"!==t[e]}function i(t,e,n){sp(t,function(t){e[t]=n[t]})}i(hp[0],l,t),i(hp[1],l,e)}function fp(t){return gp({},t)}function gp(e,n){return n&&e&&sp(lp,function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e}at(up,"vertical"),at(up,"horizontal");var yp,mp,vp,_p,xp=Xo(),g=(h(wp,yp=uc),wp.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},wp.prototype.mergeDefaultAndTheme=function(t,e){var n=pp(this),i=n?fp(t):{};p(t,e.getTheme().get(this.mainType)),p(t,this.getDefaultOption()),n&&dp(t,i,n)},wp.prototype.mergeOption=function(t,e){p(this.option,t,!0);var n=pp(this);n&&dp(this.option,t,n)},wp.prototype.optionUpdated=function(t,e){},wp.prototype.getDefaultOption=function(){var t=this.constructor;if(!(e=t)||!e[nr])return t.defaultOption;var e=xp(this);if(!e.defaultOption){for(var n=[],i=t;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var r={},a=n.length-1;0<=a;a--)r=p(r,n[a],!0);e.defaultOption=r}return e.defaultOption},wp.prototype.getReferringComponents=function(t,e){var n=t+"Id";return $o(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(n,!0)},e)},wp.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},wp.protoInitialize=((ic=wp.prototype).type="component",ic.id="",ic.name="",ic.mainType="",ic.subType="",void(ic.componentIndex=0)),wp);function wp(t,e,n){t=yp.call(this,t,e,n)||this;return t.uid=dc("ec_cpt_model"),t}function bp(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}rr(g,uc),hr(g),vp={},(mp=g).registerSubTypeDefaulter=function(t,e){t=ir(t);vp[t.main]=e},mp.determineSubType=function(t,e){var n,i=e.type;return i||(n=ir(t).main,mp.hasSubTypes(t)&&vp[n]&&(i=vp[n](e))),i},_p=function(t){var e=[];I(g.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=q(e,function(t){return ir(t).main}),"dataset"!==t&&A(e,"dataset")<=0&&e.unshift("dataset");return e},g.topologicalTravel=function(t,e,n,i){if(t.length){a={},s=[],I(r=e,function(n){var e,i,o=bp(a,n),t=o.originalDeps=_p(n),t=(e=r,i=[],I(t,function(t){0<=A(e,t)&&i.push(t)}),i);o.entryCount=t.length,0===o.entryCount&&s.push(n),I(t,function(t){A(o.predecessor,t)<0&&o.predecessor.push(t);var e=bp(a,t);A(e.successor,t)<0&&e.successor.push(n)})});var r,a,s,e={graph:a,noEntryList:s},o=e.graph,l=e.noEntryList,h={};for(I(t,function(t){h[t]=!0});l.length;){var u=l.pop(),c=o[u],p=!!h[u];p&&(n.call(i,u,c.originalDeps.slice()),delete h[u]),I(c.successor,p?f:d)}I(h,function(){throw new Error("")})}function d(t){o[t].entryCount--,0===o[t].entryCount&&l.push(t)}function f(t){h[t]=!0,d(t)}};var sc="",pr=("undefined"!=typeof navigator&&(sc=navigator.platform||""),"rgba(0, 0, 0, 0.2)"),Sp={darkMode:"auto",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:pr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:pr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:pr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:pr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:pr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:pr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:sc.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},Mp=P(["tooltip","label","itemName","itemId","seriesName"]),Tp="original",Cp="arrayRows",Ap="objectRows",Ip="keyedColumns",kp="typedArray",Dp="unknown",Pp="column",Lp="row",Op={Must:1,Might:2,Not:3},Rp=Xo();function Ep(n,t,e){var o,r,a,i,s,l={},h=Bp(t);return h&&n&&(o=[],r=[],t=t.ecModel,t=Rp(t).datasetMap,h=h.uid+"_"+e.seriesLayoutBy,I(n=n.slice(),function(t,e){t=D(t)?t:n[e]={name:t};"ordinal"===t.type&&null==a&&(a=e,i=c(t)),l[t.name]=[]}),s=t.get(h)||t.set(h,{categoryWayDim:i,valueWayDim:0}),I(n,function(t,e){var n,i=t.name,t=c(t);null==a?(n=s.valueWayDim,u(l[i],n,t),u(r,n,t),s.valueWayDim+=t):a===e?(u(l[i],0,t),u(o,0,t)):(n=s.categoryWayDim,u(l[i],n,t),u(r,n,t),s.categoryWayDim+=t)}),o.length&&(l.itemName=o),r.length)&&(l.seriesName=r),l;function u(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function c(t){t=t.dimsDef;return t?t.length:1}}function Bp(t){if(!t.get("data",!0))return $o(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},jo).models[0]}function zp(t,e){var n,i,o,r=t.data,a=t.sourceFormat,s=t.seriesLayoutBy,l=t.dimensionsDefine,h=t.startIndex,u=e;if(!ct(r)){if(l&&(D(l=l[u])?(i=l.name,o=l.type):C(l)&&(i=l)),null!=o)return"ordinal"===o?Op.Must:Op.Not;if(a===Cp){var c=r;if(s===Lp){for(var p=c[u],d=0;d<(p||[]).length&&d<5;d++)if(null!=(n=_(p[h+d])))return n}else for(d=0;d<c.length&&d<5;d++){var f=c[h+d];if(f&&null!=(n=_(f[u])))return n}}else if(a===Ap){var g=r;if(!i)return Op.Not;for(d=0;d<g.length&&d<5;d++)if((m=g[d])&&null!=(n=_(m[i])))return n}else if(a===Ip){l=r;if(!i)return Op.Not;if(!(p=l[i])||ct(p))return Op.Not;for(d=0;d<p.length&&d<5;d++)if(null!=(n=_(p[d])))return n}else if(a===Tp)for(var y=r,d=0;d<y.length&&d<5;d++){var m,v=Bo(m=y[d]);if(!F(v))return Op.Not;if(null!=(n=_(v[u])))return n}}return Op.Not;function _(t){var e=C(t);return null!=t&&isFinite(t)&&""!==t?e?Op.Might:Op.Not:e&&"-"!==t?Op.Must:void 0}}var Np=P();var Fp,Vp,Hp,Wp=Xo(),Gp=(Xo(),Up.prototype.getColorFromPalette=function(t,e,n){var i=Oo(this.get("color",!0)),o=this.get("colorLayer",!0),r=this,a=Wp;return a=a(e=e||r),r=a.paletteIdx||0,(e=a.paletteNameMap=a.paletteNameMap||{}).hasOwnProperty(t)?e[t]:(o=(o=n==null||!o?i:Xp(o,n))||i)&&o.length?(n=o[r],t&&(e[t]=n),a.paletteIdx=(r+1)%o.length,n):void 0},Up.prototype.clearColorPalette=function(){var t,e;(e=Wp)(t=this).paletteIdx=0,e(t).paletteNameMap={}},Up);function Up(){}function Xp(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}var Yp,Zp="\0_ec_inner",qp=(h(r,Yp=uc),r.prototype.init=function(t,e,n,i,o,r){i=i||{},this.option=null,this._theme=new uc(i),this._locale=new uc(o),this._optionManager=r},r.prototype.setOption=function(t,e,n){e=$p(e);this._optionManager.setOption(t,n,e),this._resetOption(null,e)},r.prototype.resetOption=function(t,e){return this._resetOption(t,$p(e))},r.prototype._resetOption=function(t,e){var n,i=!1,o=this._optionManager;return t&&"recreate"!==t||(n=o.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(n,e)):Hp(this,n),i=!0),"timeline"!==t&&"media"!==t||this.restoreData(),t&&"recreate"!==t&&"timeline"!==t||(n=o.getTimelineOption(this))&&(i=!0,this._mergeOption(n,e)),t&&"recreate"!==t&&"media"!==t||(n=o.getMediaOption(this)).length&&I(n,function(t){i=!0,this._mergeOption(t,e)},this),i},r.prototype.mergeOption=function(t){this._mergeOption(t,null)},r.prototype._mergeOption=function(i,t){var o=this.option,h=this._componentsMap,u=this._componentsCount,n=[],r=P(),c=t&&t.replaceMergeMainTypeMap;Rp(this).datasetMap=P(),I(i,function(t,e){null!=t&&(g.hasClass(e)?e&&(n.push(e),r.set(e,!0)):o[e]=null==o[e]?M(t):p(o[e],t,!0))}),c&&c.each(function(t,e){g.hasClass(e)&&!r.get(e)&&(n.push(e),r.set(e,!0))}),g.topologicalTravel(n,g.getAllClassMainTypes(),function(r){var t=function(t,e,n){return(e=(e=Np.get(e))&&e(t))?n.concat(e):n}(this,r,Oo(i[r])),e=h.get(r),n=e?c&&c.get(r)?"replaceMerge":"normalMerge":"replaceAll",e=zo(e,t,n),a=(Go(e,r,g),o[r]=null,h.set(r,null),u.set(r,0),[]),s=[],l=0;I(e,function(t,e){var n=t.existing,i=t.newOption;if(i){var o=g.getClass(r,t.keyInfo.subType,!("series"===r));if(!o)return;n&&n.constructor===o?(n.name=t.keyInfo.name,n.mergeOption(i,this),n.optionUpdated(i,!1)):(e=T({componentIndex:e},t.keyInfo),T(n=new o(i,this,this,e),e),t.brandNew&&(n.__requireNewView=!0),n.init(i,this,this),n.optionUpdated(null,!0))}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(a.push(n.option),s.push(n),l++):(a.push(void 0),s.push(void 0))},this),o[r]=a,h.set(r,s),u.set(r,l),"series"===r&&Fp(this)},this),this._seriesIndices||Fp(this)},r.prototype.getOption=function(){var a=M(this.option);return I(a,function(t,e){if(g.hasClass(e)){for(var n=Oo(t),i=n.length,o=!1,r=i-1;0<=r;r--)n[r]&&!Wo(n[r])?o=!0:(n[r]=null,o||i--);n.length=i,a[e]=n}}),delete a[Zp],a},r.prototype.getTheme=function(){return this._theme},r.prototype.getLocaleModel=function(){return this._locale},r.prototype.getLocale=function(t){return this.getLocaleModel().get(t)},r.prototype.setUpdatePayload=function(t){this._payload=t},r.prototype.getUpdatePayload=function(){return this._payload},r.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){t=n[e||0];if(t)return t;if(null==e)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},r.prototype.queryComponents=function(t){var e,n,i,o,r,a=t.mainType;return a&&(e=t.index,n=t.id,i=t.name,o=this._componentsMap.get(a))&&o.length?(null!=e?(r=[],I(Oo(e),function(t){o[t]&&r.push(o[t])})):r=null!=n?jp("id",n,o):null!=i?jp("name",i,o):rt(o,function(t){return!!t}),Kp(r,t)):[]},r.prototype.findComponents=function(t){var e,n=t.query,i=t.mainType,o=(o=i+"Index",r=i+"Id",e=i+"Name",!(n=n)||null==n[o]&&null==n[r]&&null==n[e]?null:{mainType:i,index:n[o],id:n[r],name:n[e]}),r=o?this.queryComponents(o):rt(this._componentsMap.get(i),function(t){return!!t});return n=Kp(r,t),t.filter?rt(n,t.filter):n},r.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(st(t)){var o=e,r=t;i.each(function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&r.call(o,e,i,i.componentIndex)}})}else for(var a=C(t)?i.get(t):D(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},r.prototype.getSeriesByName=function(t){var e=Vo(t,null);return rt(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},r.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},r.prototype.getSeriesByType=function(e){return rt(this._componentsMap.get("series"),function(t){return!!t&&t.subType===e})},r.prototype.getSeries=function(){return rt(this._componentsMap.get("series").slice(),function(t){return!!t})},r.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},r.prototype.eachSeries=function(n,i){Vp(this),I(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];n.call(i,e,t)},this)},r.prototype.eachRawSeries=function(e,n){I(this._componentsMap.get("series"),function(t){t&&e.call(n,t,t.componentIndex)})},r.prototype.eachSeriesByType=function(n,i,o){Vp(this),I(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];e.subType===n&&i.call(o,e,t)},this)},r.prototype.eachRawSeriesByType=function(t,e,n){return I(this.getSeriesByType(t),e,n)},r.prototype.isSeriesFiltered=function(t){return Vp(this),null==this._seriesIndicesMap.get(t.componentIndex)},r.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},r.prototype.filterSeries=function(n,i){Vp(this);var o=[];I(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];n.call(i,e,t)&&o.push(t)},this),this._seriesIndices=o,this._seriesIndicesMap=P(o)},r.prototype.restoreData=function(n){Fp(this);var t=this._componentsMap,i=[];t.each(function(t,e){g.hasClass(e)&&i.push(e)}),g.topologicalTravel(i,g.getAllClassMainTypes(),function(e){I(t.get(e),function(t){!t||"series"===e&&function(t,e){{var n,i;if(e)return n=e.seriesIndex,i=e.seriesId,e=e.seriesName,null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=e&&t.name!==e}}(t,n)||t.restoreData()})})},r.internalField=(Fp=function(t){var e=t._seriesIndices=[];I(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=P(e)},Vp=function(t){},void(Hp=function(t,e){t.option={},t.option[Zp]=1,t._componentsMap=P({series:[]}),t._componentsCount=P();var n,i,o=e.aria;D(o)&&null==o.enabled&&(o.enabled=!0),n=e,o=t._theme.option,i=n.color&&!n.colorLayer,I(o,function(t,e){"colorLayer"===e&&i||g.hasClass(e)||("object"==typeof t?n[e]=n[e]?p(n[e],t,!1):M(t):null==n[e]&&(n[e]=t))}),p(e,Sp,!1),t._mergeOption(e,null)})),r);function r(){return null!==Yp&&Yp.apply(this,arguments)||this}function jp(e,t,n){var i,o;return F(t)?(i=P(),I(t,function(t){null!=t&&null!=Vo(t,null)&&i.set(t,!0)}),rt(n,function(t){return t&&i.get(t[e])})):(o=Vo(t,null),rt(n,function(t){return t&&null!=o&&t[e]===o}))}function Kp(t,e){return e.hasOwnProperty("subType")?rt(t,function(t){return t&&t.subType===e.subType}):t}function $p(t){var e=P();return t&&I(Oo(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}nt(qp,Gp);function Jp(e){I(Qp,function(t){this[t]=S(e[t],e)},this)}var Qp=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],td={},ed=(nd.prototype.create=function(n,i){var o=[];I(td,function(t,e){t=t.create(n,i);o=o.concat(t||[])}),this._coordinateSystems=o},nd.prototype.update=function(e,n){I(this._coordinateSystems,function(t){t.update&&t.update(e,n)})},nd.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},nd.register=function(t,e){td[t]=e},nd.get=function(t){return td[t]},nd);function nd(){this._coordinateSystems=[]}var id=/^(min|max)?(.+)$/,od=(rd.prototype.setOption=function(t,e,n){t&&(I(Oo(t.series),function(t){t&&t.data&&ct(t.data)&&Mt(t.data)}),I(Oo(t.dataset),function(t){t&&t.source&&ct(t.source)&&Mt(t.source)})),t=M(t);var i=this._optionBackup,t=function(t,n,i){var e,o,r=[],a=t.baseOption,s=t.timeline,l=t.options,h=t.media,u=!!t.media,c=!!(l||s||a&&a.timeline);a?(o=a).timeline||(o.timeline=s):((c||u)&&(t.options=t.media=null),o=t);u&&F(h)&&I(h,function(t){t&&t.option&&(t.query?r.push(t):e=e||t)});function p(e){I(n,function(t){t(e,i)})}return p(o),I(l,p),I(r,function(t){return p(t.option)}),{baseOption:o,timelineOptions:l||[],mediaDefault:e,mediaList:r}}(t,e,!i);this._newBaseOption=t.baseOption,i?(t.timelineOptions.length&&(i.timelineOptions=t.timelineOptions),t.mediaList.length&&(i.mediaList=t.mediaList),t.mediaDefault&&(i.mediaDefault=t.mediaDefault)):this._optionBackup=t},rd.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],M(t?e.baseOption:this._newBaseOption)},rd.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;return e=n.length&&(t=t.getComponent("timeline"))?M(n[t.getCurrentIndex()]):e},rd.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,o=this._mediaDefault,r=[],a=[];if(i.length||o){for(var s,l,h=0,u=i.length;h<u;h++)!function(t,e,n){var i={width:e,height:n,aspectratio:e/n},o=!0;return I(t,function(t,e){var n,e=e.match(id);e&&e[1]&&e[2]&&(n=e[1],e=e[2].toLowerCase(),e=i[e],t=t,("min"===(n=n)?t<=e:"max"===n?e<=t:e===t)||(o=!1))}),o}(i[h].query,e,n)||r.push(h);(r=!r.length&&o?[-1]:r).length&&(s=r,l=this._currentMediaIndices,s.join(",")!==l.join(","))&&(a=q(r,function(t){return M((-1===t?o:i[t]).option)})),this._currentMediaIndices=r}return a},rd);function rd(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}var ad=I,sd=D,ld=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function hd(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=ld.length;n<i;n++){var o=ld[n],r=e.normal,a=e.emphasis;r&&r[o]&&(t[o]=t[o]||{},t[o].normal?p(t[o].normal,r[o]):t[o].normal=r[o],r[o]=null),a&&a[o]&&(t[o]=t[o]||{},t[o].emphasis?p(t[o].emphasis,a[o]):t[o].emphasis=a[o],a[o]=null)}}function ud(t,e,n){var i,o;t&&t[e]&&(t[e].normal||t[e].emphasis)&&(i=t[e].normal,o=t[e].emphasis,i&&(n?(t[e].normal=t[e].emphasis=null,N(t[e],i)):t[e]=i),o)&&(t.emphasis=t.emphasis||{},(t.emphasis[e]=o).focus&&(t.emphasis.focus=o.focus),o.blurScope)&&(t.emphasis.blurScope=o.blurScope)}function cd(t){ud(t,"itemStyle"),ud(t,"lineStyle"),ud(t,"areaStyle"),ud(t,"label"),ud(t,"labelLine"),ud(t,"upperLabel"),ud(t,"edgeLabel")}function pd(t,e){var n=sd(t)&&t[e],i=sd(n)&&n.textStyle;if(i)for(var o=0,r=Eo.length;o<r;o++){var a=Eo[o];i.hasOwnProperty(a)&&(n[a]=i[a])}}function dd(t){t&&(cd(t),pd(t,"label"),t.emphasis)&&pd(t.emphasis,"label")}function fd(t){return F(t)?t:t?[t]:[]}function gd(t){return(F(t)?t[0]:t)||{}}function yd(e,t){ad(fd(e.series),function(t){if(sd(t))if(sd(t)){hd(t),cd(t),pd(t,"label"),pd(t,"upperLabel"),pd(t,"edgeLabel"),t.emphasis&&(pd(t.emphasis,"label"),pd(t.emphasis,"upperLabel"),pd(t.emphasis,"edgeLabel"));var e=t.markPoint,n=(e&&(hd(e),dd(e)),t.markLine),i=(n&&(hd(n),dd(n)),t.markArea),o=(i&&dd(i),t.data);if("graph"===t.type){var o=o||t.nodes,r=t.links||t.edges;if(r&&!ct(r))for(var a=0;a<r.length;a++)dd(r[a]);I(t.categories,function(t){cd(t)})}if(o&&!ct(o))for(a=0;a<o.length;a++)dd(o[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)dd(s[a]);if((n=t.markLine)&&n.data)for(var l=n.data,a=0;a<l.length;a++)F(l[a])?(dd(l[a][0]),dd(l[a][1])):dd(l[a]);"gauge"===t.type?(pd(t,"axisLabel"),pd(t,"title"),pd(t,"detail")):"treemap"===t.type?(ud(t.breadcrumb,"itemStyle"),I(t.levels,function(t){cd(t)})):"tree"===t.type&&cd(t.leaves)}});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),ad(n,function(t){ad(fd(e[t]),function(t){t&&(pd(t,"axisLabel"),pd(t.axisPointer,"label"))})}),ad(fd(e.parallel),function(t){t=t&&t.parallelAxisDefault;pd(t,"axisLabel"),pd(t&&t.axisPointer,"label")}),ad(fd(e.calendar),function(t){ud(t,"itemStyle"),pd(t,"dayLabel"),pd(t,"monthLabel"),pd(t,"yearLabel")}),ad(fd(e.radar),function(t){pd(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)}),ad(fd(e.geo),function(t){sd(t)&&(dd(t),ad(fd(t.regions),function(t){dd(t)}))}),ad(fd(e.timeline),function(t){dd(t),ud(t,"label"),ud(t,"itemStyle"),ud(t,"controlStyle",!0);t=t.data;F(t)&&I(t,function(t){D(t)&&(ud(t,"label"),ud(t,"itemStyle"))})}),ad(fd(e.toolbox),function(t){ud(t,"iconStyle"),ad(t.feature,function(t){ud(t,"iconStyle")})}),pd(gd(e.axisPointer),"label"),pd(gd(e.tooltip).axisPointer,"label")}function md(e){e&&I(vd,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var vd=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],_d=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],xd=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function wd(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<xd.length;n++){var i=xd[n][1],o=xd[n][0];null!=e[i]&&(e[o]=e[i])}}function bd(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Sd(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Md(e,t){yd(e,t),e.series=Oo(e.series),I(e.series,function(t){if(D(t)){var e,n=t.type;if("line"===n)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===n||"gauge"===n){if(null!=t.clockWise&&(t.clockwise=t.clockWise),bd(t.label),(e=t.data)&&!ct(e))for(var i=0;i<e.length;i++)bd(e[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset)}else if("gauge"===n){var o=function(t,e){for(var n=e.split(","),i=t,o=0;o<n.length&&null!=(i=i&&i[n[o]]);o++);return i}(t,"pointer.color");if(null!=o){var r=t;var a="itemStyle.color";var s=void 0;for(var l,h=a.split(","),u=r,c=0;c<h.length-1;c++)null==u[l=h[c]]&&(u[l]={}),u=u[l];!s&&null!=u[h[c]]||(u[h[c]]=o)}}else if("bar"===n){if(wd(t),wd(t.backgroundStyle),wd(t.emphasis),(e=t.data)&&!ct(e))for(i=0;i<e.length;i++)"object"==typeof e[i]&&(wd(e[i]),wd(e[i]&&e[i].emphasis))}else"sunburst"===n?((a=t.highlightPolicy)&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=a)),Sd(t),function t(e,n){if(e)for(var i=0;i<e.length;i++)n(e[i]),e[i]&&t(e[i].children,n)}(t.data,Sd)):"graph"===n||"sankey"===n?(r=t)&&null!=r.focusNodeAdjacency&&(r.emphasis=r.emphasis||{},null==r.emphasis.focus)&&(r.emphasis.focus="adjacency"):"map"===n&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation)&&N(t,t.mapLocation);null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis)&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation),md(t)}}),e.dataRange&&(e.visualMap=e.dataRange),I(_d,function(t){t=e[t];t&&I(t=F(t)?t:[t],function(t){md(t)})})}function Td(g){I(g,function(h,u){var c=[],p=[NaN,NaN],t=[h.stackResultDimension,h.stackedOverDimension],d=h.data,f=h.isStackedByIndex,t=d.map(t,function(t,e,n){var i,o,r=d.get(h.stackedDimension,n);if(isNaN(r))return p;f?o=d.getRawIndex(n):i=d.get(h.stackedByDimension,n);for(var a=NaN,s=u-1;0<=s;s--){var l=g[s];if(0<=(o=f?o:l.data.rawIndexOf(l.stackedByDimension,i))){l=l.data.getByRawIndex(l.stackResultDimension,o);if(0<=r&&0<l||r<=0&&l<0){r+=l,a=l;break}}}return c[0]=r,c[1]=a,c});d.hostModel.setData(t),h.data=t})}var Cd,Ad,Id=function(t){this.data=t.data||(t.sourceFormat===Ip?{}:[]),this.sourceFormat=t.sourceFormat||Dp,this.seriesLayoutBy=t.seriesLayoutBy||Pp,this.startIndex=t.startIndex||0,this.dimensionsDefine=t.dimensionsDefine,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.encodeDefine=t.encodeDefine,this.metaRawOption=t.metaRawOption};function kd(t){return t instanceof Id}function Dd(t,e,n,i){n=n||Od(t);var o=e.seriesLayoutBy,r=function(t,e,n,i,o){var r,a;if(!t)return{dimensionsDefine:Rd(o),startIndex:a,dimensionsDetectedCount:r};{var s;e===Cp?(s=t,"auto"===i||null==i?Ed(function(t){null!=t&&"-"!==t&&(C(t)?null==a&&(a=1):a=0)},n,s,10):a=ht(i)?i:i?1:0,o||1!==a||(o=[],Ed(function(t,e){o[e]=null!=t?t+"":""},n,s,1/0)),r=o?o.length:n===Lp?s.length:s[0]?s[0].length:null):e===Ap?o=o||function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););{var i;if(e)return i=[],I(e,function(t,e){i.push(e)}),i}}(t):e===Ip?o||(o=[],I(t,function(t,e){o.push(e)})):e===Tp&&(i=Bo(t[0]),r=F(i)&&i.length||1)}return{startIndex:a,dimensionsDefine:Rd(o),dimensionsDetectedCount:r}}(t,n,o,e.sourceHeader,e.dimensions);return new Id({data:t,sourceFormat:n,seriesLayoutBy:o,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,encodeDefine:Ld(i),metaRawOption:M(e)})}function Pd(t){return new Id({data:t,sourceFormat:ct(t)?kp:Tp})}function Ld(t){return t?P(t):null}function Od(t){var e=Dp;if(ct(t))e=kp;else if(F(t)){0===t.length&&(e=Cp);for(var n=0,i=t.length;n<i;n++){var o=t[n];if(null!=o){if(F(o)){e=Cp;break}if(D(o)){e=Ap;break}}}}else if(D(t))for(var r in t)if(O(t,r)&&it(t[r])){e=Ip;break}return e}function Rd(t){var i;if(t)return i=P(),q(t,function(t,e){var n,t={name:(t=D(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};return null!=t.name&&(t.name+="",null==t.displayName&&(t.displayName=t.name),(n=i.get(t.name))?t.name+="-"+n.count++:i.set(t.name,{count:1})),t})}function Ed(t,e,n,i){if(e===Lp)for(var o=0;o<n.length&&o<i;o++)t(n[o]?n[o][0]:null,o);else for(var r=n[0]||[],o=0;o<r.length&&o<i;o++)t(r[o],o)}Vd.prototype.getSource=function(){return this._source},Vd.prototype.count=function(){return 0},Vd.prototype.getItem=function(t,e){},Vd.prototype.appendData=function(t){},Vd.prototype.clean=function(){},Vd.protoInitialize=((n=Vd.prototype).pure=!1,void(n.persistent=!0)),Vd.internalField=(Ad=function(t,e,n){var i,o=n.sourceFormat,r=n.seriesLayoutBy,a=n.startIndex,n=n.dimensionsDefine;T(t,Cd[$d(o,r)]),o===kp?(t.getItem=Bd,t.count=Nd,t.fillStorage=zd):(i=Ud(o,r),t.getItem=S(i,null,e,a,n),i=Zd(o,r),t.count=S(i,null,e,a,n))},Bd=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,o=i*t,r=0;r<i;r++)e[r]=n[o+r];return e},zd=function(t,e,n,i){for(var o=this._data,r=this._dimSize,a=0;a<r;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],h=null==s[1]?-1/0:s[1],u=e-t,c=n[a],p=0;p<u;p++){var d=o[p*r+a];(c[t+p]=d)<l&&(l=d),h<d&&(h=d)}s[0]=l,s[1]=h}},Nd=function(){return this._data?this._data.length/this._dimSize:0},(n={})[Cp+"_"+Pp]={pure:!0,appendData:Hd},n[Cp+"_"+Lp]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},n[Ap]={pure:!0,appendData:Hd},n[Ip]={pure:!0,appendData:function(t){var o=this._data;I(t,function(t,e){for(var n=o[e]||(o[e]=[]),i=0;i<(t||[]).length;i++)n.push(t[i])})}},n[Tp]={appendData:Hd},n[kp]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},void(Cd=n));var Bd,zd,Nd,Fd=Vd;function Vd(t,e){var t=kd(t)?t:Pd(t),n=(this._source=t,this._data=t.data);t.sourceFormat===kp&&(this._offset=0,this._dimSize=e,this._data=n),Ad(this,n,t)}function Hd(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function Wd(t,e,n,i){return t[i]}(Ac={})[Cp+"_"+Pp]=function(t,e,n,i){return t[i+e]},Ac[Cp+"_"+Lp]=function(t,e,n,i){i+=e;for(var o=[],r=t,a=0;a<r.length;a++){var s=r[a];o.push(s?s[i]:null)}return o},Ac[Ap]=Wd,Ac[Ip]=function(t,e,n,i){for(var o=[],r=0;r<n.length;r++){var a=t[n[r].name];o.push(a?a[i]:null)}return o},Ac[Tp]=Wd;var Gd=Ac;function Ud(t,e){return Gd[$d(t,e)]}function Xd(t,e,n){return t.length}(ic={})[Cp+"_"+Pp]=function(t,e,n){return Math.max(0,t.length-e)},ic[Cp+"_"+Lp]=function(t,e,n){t=t[0];return t?Math.max(0,t.length-e):0},ic[Ap]=Xd,ic[Ip]=function(t,e,n){t=t[n[0].name];return t?t.length:0},ic[Tp]=Xd;var Yd=ic;function Zd(t,e){return Yd[$d(t,e)]}function qd(t,e,n){return null!=e?t[e]:t}(pr={})[Cp]=qd,pr[Ap]=function(t,e,n){return null!=e?t[n]:t},pr[Ip]=qd,pr[Tp]=function(t,e,n){t=Bo(t);return null!=e&&t instanceof Array?t[e]:t},pr[kp]=qd;var jd=pr;function Kd(t){return jd[t]}function $d(t,e){return t===Cp?t+"_"+e:t}function Jd(t,e,n){if(t){var i,o,r,e=t.getRawDataItem(e);if(null!=e)return i=t.getProvider().getSource().sourceFormat,(t=t.getDimensionInfo(n))&&(o=t.name,r=t.index),Kd(i)(e,r,o)}}var Qd=/\{@(.+?)\}/g,sc=(tf.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),o=n.getRawIndex(t),r=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),t=s&&s[n.getItemVisual(t,"drawType")||"fill"],s=s&&s.stroke,l=this.mainType,h="series"===l,n=n.userOutput;return{componentType:l,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:r,dataIndex:o,data:a,dataType:e,value:i,color:t,borderColor:s,dimensionNames:n?n.dimensionNames:null,encode:n?n.encode:null,$vars:["seriesName","name","value"]}},tf.prototype.getFormattedLabel=function(i,t,e,n,o,r){t=t||"normal";var a=this.getData(e),e=this.getDataParams(i,e);return r&&(e.value=r.interpolatedValue),null!=n&&F(e.value)&&(e.value=e.value[n]),"function"==typeof(o=o||a.getItemModel(i).get("normal"===t?["label","formatter"]:[t,"label","formatter"]))?(e.status=t,e.dimensionIndex=n,o(e)):"string"==typeof o?op(o,e).replace(Qd,function(t,e){var n=e.length,n="["===e.charAt(0)&&"]"===e.charAt(n-1)?+e.slice(1,n-1):e,e=Jd(a,i,n);return null!=(e=r&&F(r.interpolatedValue)&&(n=a.getDimensionInfo(n))?r.interpolatedValue[n.index]:e)?e+"":""}):void 0},tf.prototype.getRawValue=function(t,e){return Jd(this.getData(e),t)},tf.prototype.formatTooltip=function(t,e,n){},tf);function tf(){}function ef(t){var e,n;return D(t)?t.type&&(n=t):e=t,{markupText:e,markupFragment:n}}function nf(t){return new of(t)}rf.prototype.perform=function(t){var e,n,i=this._upstream,o=t&&t.skip,r=(this._dirty&&i&&((r=this.context).data=r.outputData=i.context.outputData),this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!o&&(e=this._plan(this.context)),h(this._modBy)),a=this._modDataCount||0,s=h(t&&t.modBy),l=t&&t.modDataCount||0;function h(t){return t=1<=t?t:1}r===s&&a===l||(e="reset"),!this._dirty&&"reset"!==e||(this._dirty=!1,n=this._doReset(o)),this._modBy=s,this._modDataCount=l;r=t&&t.step;if(this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var u=this._dueIndex,c=Math.min(null!=r?this._dueIndex+r:1/0,this._dueEnd);if(!o&&(n||u<c)){var p=this._progress;if(F(p))for(var d=0;d<p.length;d++)this._doProgress(p[d],u,c,s,l);else this._doProgress(p,u,c,s,l)}this._dueIndex=c;a=null!=this._settedOutputEnd?this._settedOutputEnd:c;this._outputDueEnd=a}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},rf.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},rf.prototype._doProgress=function(t,e,n,i,o){pf.reset(e,n,i,o),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:pf.next},this.context)},rf.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),F(e))&&!e.length&&(e=null),this._progress=e,this._modBy=this._modDataCount=null;var e,n,t=this._downstream;return t&&t.dirty(),n},rf.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},rf.prototype.pipe=function(t){this._downstream===t&&!this._dirty||((this._downstream=t)._upstream=this,t.dirty())},rf.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},rf.prototype.getUpstream=function(){return this._upstream},rf.prototype.getDownstream=function(){return this._downstream},rf.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var of=rf;function rf(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}var af,sf,lf,hf,uf,cf,pf=cf={reset:function(t,e,n,i){sf=t,af=e,lf=n,hf=i,uf=Math.ceil(hf/lf),cf.next=1<lf&&0<hf?ff:df}};function df(){return sf<af?sf++:null}function ff(){var t=sf%uf*lf+Math.ceil(sf/uf),t=af<=sf?null:t<hf?t:sf;return sf++,t}function gf(t,e){var n=e&&e.type;return"ordinal"===n?(e=e&&e.ordinalMeta)?e.parseAndCollect(t):t:null==(t="time"===n&&"number"!=typeof t&&null!=t&&"-"!==t?+Mo(t):t)||""===t?NaN:+t}var yf=P({number:function(t){return parseFloat(t)},time:function(t){return+Mo(t)},trim:function(t){return"string"==typeof t?bt(t):t}});function mf(t){return yf.get(t)}var vf={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return e<t},gte:function(t,e){return e<=t}},_f=(xf.prototype.evaluate=function(t){return"number"==typeof t?this._opFn(t,this._rvalFloat):this._opFn(Io(t),this._rvalFloat)},xf);function xf(t,e){"number"!=typeof e&&f(""),this._opFn=vf[t],this._rvalFloat=Io(e)}bf.prototype.evaluate=function(t,e){var n=typeof t,i=typeof e,o="number"==n?t:Io(t),r="number"==i?e:Io(e),a=isNaN(o),s=isNaN(r);return a&&(o=this._incomparable),s&&(r=this._incomparable),a&&s&&(a="string"==i,(s="string"==n)&&(o=a?t:0),a)&&(r=s?e:0),o<r?this._resultLT:r<o?-this._resultLT:0};var wf=bf;function bf(t,e){t="desc"===t;this._resultLT=t?1:-1,this._incomparable="min"===(e=null==e?t?"min":"max":e)?-1/0:1/0}Mf.prototype.evaluate=function(t){var e,n=t===this._rval;return n||(e=typeof t)===this._rvalTypeof||"number"!=e&&"number"!==this._rvalTypeof||(n=Io(t)===this._rvalFloat),this._isEQ?n:!n};var Sf=Mf;function Mf(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Io(e)}Cf.prototype.getRawData=function(){throw new Error("not supported")},Cf.prototype.getRawDataItem=function(t){throw new Error("not supported")},Cf.prototype.cloneRawData=function(){},Cf.prototype.getDimensionInfo=function(t){},Cf.prototype.cloneAllDimensionInfo=function(){},Cf.prototype.count=function(){},Cf.prototype.retrieveValue=function(t,e){},Cf.prototype.retrieveValueFromItem=function(t,e){},Cf.prototype.convertValue=gf;var Tf=Cf;function Cf(){}function Af(t){return Of(t.sourceFormat)||f(""),t.data}function If(t){var e=t.sourceFormat,n=t.data;if(Of(e)||f(""),e===Cp){for(var i=[],o=0,r=n.length;o<r;o++)i.push(n[o].slice());return i}if(e===Ap){for(i=[],o=0,r=n.length;o<r;o++)i.push(T({},n[o]));return i}}function kf(t,e,n){if(null!=n)return"number"==typeof n||!isNaN(n)&&!O(e,n)?t[n]:O(e,n)?e[n]:void 0}function Df(t){return M(t)}var Pf=P();function Lf(t,e){var n=Oo(t),t=n.length;t||f("");for(var i=0,o=t;i<o;i++)e=function(t,i){i.length||f("");D(t)||f("");var e=t.type,d=Pf.get(e);d||f("");e=q(i,function(t){var e=t,t=d,n=new Tf,i=e.data,o=n.sourceFormat=e.sourceFormat,r=e.startIndex,a=(e.seriesLayoutBy!==Pp&&f(""),[]),s={};if(u=e.dimensionsDefine)I(u,function(t,e){var n=t.name,e={index:e,name:n,displayName:t.displayName};a.push(e),null!=n&&(O(s,n)&&f(""),s[n]=e)});else for(var l=0;l<e.dimensionsDetectedCount;l++)a.push({index:l});var h=Ud(o,Pp),u=(t.__isBuiltIn&&(n.getRawDataItem=function(t){return h(i,r,a,t)},n.getRawData=S(Af,null,e)),n.cloneRawData=S(If,null,e),Zd(o,Pp)),c=(n.count=S(u,null,i,r,a),Kd(o)),p=(n.retrieveValue=function(t,e){t=h(i,r,a,t);return p(t,e)},n.retrieveValueFromItem=function(t,e){var n;return null!=t&&(n=a[e])?c(t,e,n.name):void 0});return n.getDimensionInfo=S(kf,null,a,s),n.cloneAllDimensionInfo=S(Df,null,a),n});return q(Oo(d.transform({upstream:e[0],upstreamList:e,config:M(t.config)})),function(t,e){D(t)||f(""),t.data||f("");Of(Od(t.data))||f("");var n=i[0],e=n&&0===e&&!t.dimensions?((e=n.startIndex)&&(t.data=n.data.slice(0,e).concat(t.data)),{seriesLayoutBy:Pp,sourceHeader:e,dimensions:n.metaRawOption.dimensions}):{seriesLayoutBy:Pp,sourceHeader:0,dimensions:t.dimensions};return Dd(t.data,e,null,null)})}(n[i],e),i!==o-1&&(e.length=Math.max(e.length,1));return e}function Of(t){return t===Cp||t===Ap}Ef.prototype.dirty=function(){this._setLocalSource([],[])},Ef.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,9e10<this._versionSignBase&&(this._versionSignBase=0)},Ef.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},Ef.prototype.prepareSource=function(){this._isDirty()&&this._createSource()},Ef.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n,i,o,r,a=this._sourceHost,s=this._getUpstreamSourceManagers(),l=!!s.length;zf(a)?(t=a,r=e=i=void 0,n=l?((n=s[0]).prepareSource(),i=(r=n.getSource()).data,e=r.sourceFormat,[n._getVersionSign()]):(e=ct(i=t.get("data",!0))?kp:Tp,[]),o=this._getSourceMetaRawOption(),r=r?r.metaRawOption:null,i=[Dd(i,{seriesLayoutBy:L(o.seriesLayoutBy,r?r.seriesLayoutBy:null),sourceHeader:L(o.sourceHeader,r?r.sourceHeader:null),dimensions:L(o.dimensions,r?r.dimensions:null)},e,t.get("encode",!0))]):(o=a,n=l?(i=(r=this._applyTransform(s)).sourceList,r.upstreamSignList):(i=[Dd(o.get("source",!0),this._getSourceMetaRawOption(),null,null)],[])),this._setLocalSource(i,n)},Ef.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),o=n.get("fromTransformResult",!0),r=(null!=o&&1!==t.length&&Nf(""),[]),a=[];return I(t,function(t){t.prepareSource();var e=t.getSource(o||0);null==o||e||Nf(""),r.push(e),a.push(t._getVersionSign())}),i?e=Lf(i,r,n.componentIndex):null!=o&&(e=[new Id({data:(t=r[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:M(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount,encodeDefine:Ld(t.encodeDefine)})]),{sourceList:e,upstreamSignList:a}},Ef.prototype._isDirty=function(){if(!this._sourceList.length)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},Ef.prototype.getSource=function(t){return this._sourceList[t||0]},Ef.prototype._getUpstreamSourceManagers=function(){var t,e=this._sourceHost;return zf(e)?(t=Bp(e))?[t.getSourceManager()]:[]:q((t=e).get("transform",!0)||t.get("fromTransformResult",!0)?$o(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},jo).models:[],function(t){return t.getSourceManager()})},Ef.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;return zf(i)?(t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(t=(i=i).get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)),{seriesLayoutBy:t,sourceHeader:e,dimensions:n}};var Rf=Ef;function Ef(t){this._sourceList=[],this._upstreamSignList=[],this._versionSignBase=0,this._sourceHost=t}function Bf(t){t.option.transform&&Mt(t.option.transform)}function zf(t){return"series"===t.mainType}function Nf(t){throw new Error(t)}var Ff="line-height:1";function Vf(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,o=t.fontWeight||"400",r=t.color||"#464646",a=t.fontSize||14,t=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+tp(i+"")+"px;color:"+tp(n)+";font-weight:"+tp(o+""),valueStyle:"font-size:"+tp(a+"")+"px;color:"+tp(r)+";font-weight:"+tp(t+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:o},valueStyle:{fontSize:a,fill:r,fontWeight:t}}}var Hf=[0,10,20,30],Wf=["","\n","\n\n","\n\n\n"];function Gf(t,e){return e.type=t,e}function Uf(t){return O(Xf,t.type)&&Xf[t.type]}var Xf={section:{planLayout:function(t){var e=t.blocks.length,n=1<e||0<e&&!t.noHeader,i=0;I(t.blocks,function(t){Uf(t).planLayout(t);var e=t.__gapLevelBetweenSubBlocks;i<=e&&(i=e+(!n||e&&("section"!==t.type||t.noHeader)?0:1))}),t.__gapLevelBetweenSubBlocks=i},build:function(t,e,n,i){var o=e.noHeader,r=Zf(e),a=function(i,t,e,o){var r=[],n=t.blocks||[],a=(wt(!n||F(n)),n=n||[],i.orderMode);{var s,l;t.sortBlocks&&a&&(n=n.slice(),O(s={valueAsc:"asc",valueDesc:"desc"},a)?(l=new wf(s[a],null),n.sort(function(t,e){return l.evaluate(t.sortParam,e.sortParam)})):"seriesDesc"===a&&n.reverse())}var h=Zf(t);if(I(n,function(t,e){var n=Uf(t).build(i,t,e>0?h.html:0,o);n!=null&&r.push(n)}),r.length)return"richText"===i.renderMode?r.join(h.richText):qf(r.join(""),e)}(t,e,o?n:r.html,i);return o?a:(o=ep(e.header,"ordinal",t.useUTC),e=Vf(i,t.renderMode).nameStyle,"richText"===t.renderMode?jf(t,o,e)+r.richText+a:qf('<div style="'+e+";"+Ff+';">'+tp(o)+"</div>"+a,n))}},nameValue:{planLayout:function(t){t.__gapLevelBetweenSubBlocks=0},build:function(t,e,n,i){var o,r,a,s,l=t.renderMode,h=e.noName,u=e.noValue,c=!e.markerType,p=e.name,d=e.value,f=t.useUTC;if(!h||!u)return o=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",l),p=h?"":ep(p,"ordinal",f),r=e.valueType,e=u?[]:F(d)?q(d,function(t,e){return ep(t,F(r)?r[e]:r,f)}):[ep(d,F(r)?r[0]:r,f)],d=!c||!h,a=!c&&h,i=Vf(i,l),s=i.nameStyle,i=i.valueStyle,"richText"===l?(c?"":o)+(h?"":jf(t,p,s))+(u?"":function(t,e,n,i,o){o=[o],i=i?10:20;return n&&o.push({padding:[0,0,0,i],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(e.join(" "),o)}(t,e,d,a,i)):qf((c?"":o)+(h?"":'<span style="'+s+";"+(!c?"margin-left:2px":"")+'">'+tp(p)+"</span>")+(u?"":function(t,e,n,i){n=n?"10px":"20px";return'<span style="'+(e?"float:right;margin-left:"+n:"")+";"+i+'">'+q(t,tp).join(" ")+"</span>"}(e,d,a,i)),n)}}};function Yf(t,e,n,i,o,r){var a;if(t)return(a=Uf(t)).planLayout(t),a.build({useUTC:o,renderMode:n,orderMode:i,markupStyleCreator:e},t,0,r)}function Zf(t){t=t.__gapLevelBetweenSubBlocks;return{html:Hf[t],richText:Wf[t]}}function qf(t,e){return'<div style="'+("margin: "+e+"px 0 0")+";"+Ff+';">'+t+'<div style="clear:both"></div></div>'}function jf(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Kf(t,e){t=t.get("padding");return null!=t?t:"richText"===e?[8,10]:10}Jf.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},Jf.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,e=rp({color:e,type:t,renderMode:n,markerId:i});return C(e)?e:(this.richTextStyles[i]=e.style,e.content)},Jf.prototype.wrapRichTextStyle=function(t,e){var n={},e=(F(e)?I(e,function(t){return T(n,t)}):T(n,e),this._generateStyleName());return this.richTextStyles[e]=n,"{"+e+"|"+t+"}"};var $f=Jf;function Jf(){this.richTextStyles={},this._nextStyleNameId=Do()}function Qf(t){var e,n,i,o,r,a,s,l,h,u,c,p=t.series,d=t.dataIndex,t=t.multipleSeries,f=p.getData(),g=f.mapDimensionsAll("defaultedTooltip"),y=g.length,m=p.getRawValue(d),v=F(m),_=(_=d,ap((w=p).getData().getItemVisual(_,"style")[w.visualDrawType]));function x(t,e){e=s.getDimensionInfo(e);e&&!1!==e.otherDims.tooltip&&(l?c.push(Gf("nameValue",{markerType:"subItem",markerColor:a,name:e.displayName,value:t,valueType:e.type})):(h.push(t),u.push(e.type)))}1<y||v&&!y?(w=m,o=d,r=g,a=_,s=p.getData(),l=ot(w,function(t,e,n){n=s.getDimensionInfo(n);return t||n&&!1!==n.tooltip&&null!=n.displayName},!1),h=[],u=[],c=[],r.length?I(r,function(t){x(Jd(s,o,t),t)}):I(w,x),e=(r={inlineValues:h,inlineValueTypes:u,blocks:c}).inlineValueTypes,n=r.blocks,i=(r=r.inlineValues)[0]):y?(w=f.getDimensionInfo(g[0]),i=r=Jd(f,d,g[0]),e=w.type):i=r=v?m[0]:m;var y=Ho(p),g=y&&p.name||"",w=f.getName(d),v=t?g:w;return Gf("section",{header:g,noHeader:t||!y,sortParam:i,blocks:[Gf("nameValue",{markerType:"item",markerColor:_,name:v,noName:!bt(v),value:r,valueType:e})].concat(n||[])})}var tg=Xo();function eg(t,e){return t.getName(e)||t.getId(e)}h(s,ng=g),s.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=nf({count:rg,reset:ag}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);(tg(this).sourceManager=new Rf(this)).prepareSource();t=this.getInitialData(t,n);lg(t,this),this.dataTask.context.data=t,tg(this).dataBeforeProcessed=t,og(this),this._initSelectedMapFromData(t)},s.prototype.mergeDefaultAndTheme=function(t,e){var n=pp(this),i=n?fp(t):{},o=this.subType;g.hasClass(o),p(t,e.getTheme().get(this.subType)),p(t,this.getDefaultOption()),Ro(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&dp(t,i,n)},s.prototype.mergeOption=function(t,e){t=p(this.option,t,!0),this.fillDataTextStyle(t.data);var n=pp(this),n=(n&&dp(this.option,t,n),tg(this).sourceManager),n=(n.dirty(),n.prepareSource(),this.getInitialData(t,e));lg(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,tg(this).dataBeforeProcessed=n,og(this),this._initSelectedMapFromData(n)},s.prototype.fillDataTextStyle=function(t){if(t&&!ct(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Ro(t[n],"label",e)},s.prototype.getInitialData=function(t,e){},s.prototype.appendData=function(t){this.getRawData().appendData(t.data)},s.prototype.getData=function(t){var e=ug(this);return e?(e=e.context.data,null==t?e:e.getLinkedData(t)):tg(this).data},s.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},s.prototype.setData=function(t){var e,n=ug(this);n&&((e=n.context).outputData=t,n!==this.dataTask)&&(e.data=t),tg(this).data=t},s.prototype.getSource=function(){return tg(this).sourceManager.getSource()},s.prototype.getRawData=function(){return tg(this).dataBeforeProcessed},s.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},s.prototype.formatTooltip=function(t,e,n){return Qf({series:this,dataIndex:t,multipleSeries:e})},s.prototype.isAnimationEnabled=function(){var t;return!b.node&&!!(t=(t=this.getShallow("animation"))&&this.getData().count()>this.getShallow("animationThreshold")?!1:t)},s.prototype.restoreData=function(){this.dataTask.dirty()},s.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return Gp.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},s.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},s.prototype.getProgressive=function(){return this.get("progressive")},s.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},s.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},s.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n)for(var i=this.getData(e),o=0;o<t.length;o++){var r=eg(i,t[o]);n[r]=!1,this._selectedDataIndicesMap[r]=-1}},s.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},s.prototype.getSelectedDataIndices=function(){for(var t=this._selectedDataIndicesMap,e=k(t),n=[],i=0;i<e.length;i++){var o=t[e[i]];0<=o&&n.push(o)}return n},s.prototype.isSelected=function(t,e){var n=this.option.selectedMap;return n&&n[eg(this.getData(e),t)]||!1},s.prototype._innerSelect=function(t,e){var n,i=this.option.selectedMode,o=e.length;if(i&&o)if("multiple"===i)for(var r=this.option.selectedMap||(this.option.selectedMap={}),a=0;a<o;a++){var s,l=e[a];r[s=eg(t,l)]=!0,this._selectedDataIndicesMap[s]=t.getRawIndex(l)}else"single"!==i&&!0!==i||(s=eg(t,i=e[o-1]),this.option.selectedMap=((n={})[s]=!0,n),this._selectedDataIndicesMap=((n={})[s]=t.getRawIndex(i),n))},s.prototype._initSelectedMapFromData=function(n){var i;this.option.selectedMap||(i=[],n.hasItemOption&&n.each(function(t){var e=n.getRawDataItem(t);e&&e.selected&&i.push(t)}),0<i.length&&this._innerSelect(n,i))},s.registerClass=function(t){return g.registerClass(t)},s.protoInitialize=((n=s.prototype).type="series.__base__",n.seriesIndex=0,n.useColorPaletteOnData=!1,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill"));var ng,ig=s;function s(){var t=null!==ng&&ng.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}function og(t){var e,n,i=t.name;Ho(t)||(t.name=(t=(e=(t=t).getRawData()).mapDimensionsAll("seriesName"),n=[],I(t,function(t){t=e.getDimensionInfo(t);t.displayName&&n.push(t.displayName)}),n.join(" ")||i))}function rg(t){return t.model.getRawData().count()}function ag(t){t=t.model;return t.setData(t.getRawData().cloneShallow()),sg}function sg(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function lg(e,n){I(v(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(t){e.wrapMethod(t,at(hg,n))})}function hg(t,e){t=ug(t);return t&&t.setOutputEnd((e||this).count()),e}function ug(t){var e,n=(t.ecModel||{}).scheduler,n=n&&n.getPipeline(t.uid);if(n)return(n=n.currentTask)&&(e=n.agentStubMap)?e.get(t.uid):n}nt(ig,sc),nt(ig,Gp),rr(ig,g);pg.prototype.init=function(t,e){},pg.prototype.render=function(t,e,n,i){},pg.prototype.dispose=function(t,e){},pg.prototype.updateView=function(t,e,n,i){},pg.prototype.updateLayout=function(t,e,n,i){},pg.prototype.updateVisual=function(t,e,n,i){},pg.prototype.blurSeries=function(t,e){};var cg=pg;function pg(){this.group=new so,this.uid=dc("viewComponent")}function dg(){var r=Xo();return function(t){var e=r(t),t=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,o=e.large=!(!t||!t.large),e=e.progressiveRender=!(!t||!t.progressiveRender);return!(n==o&&i==e)&&"reset"}}or(cg),hr(cg);var fg=Xo(),gg=dg(),yg=(mg.prototype.init=function(t,e){},mg.prototype.render=function(t,e,n,i){},mg.prototype.highlight=function(t,e,n,i){_g(t.getData(),i,"emphasis")},mg.prototype.downplay=function(t,e,n,i){_g(t.getData(),i,"normal")},mg.prototype.remove=function(t,e){this.group.removeAll()},mg.prototype.dispose=function(t,e){},mg.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},mg.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},mg.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},mg.markUpdateMethod=function(t,e){fg(t).updateMethod=e},mg.protoInitialize=void(mg.prototype.type="chart"),mg);function mg(){this.group=new so,this.uid=dc("viewChart"),this.renderTask=nf({plan:xg,reset:wg}),this.renderTask.context={view:this}}function vg(t,e,n){t&&("emphasis"===e?ol:rl)(t,n)}function _g(e,t,n){var i,o=Uo(e,t),r=t&&null!=t.highlightKey?(t=t.highlightKey,i=null==(i=Is[t])&&As<=32?Is[t]=As++:i):null;null!=o?I(Oo(o),function(t){vg(e.getItemGraphicEl(t),n,r)}):e.eachItemGraphicEl(function(t){vg(t,n,r)})}function xg(t){return gg(t.model)}function wg(t){var e=t.model,n=t.ecModel,i=t.api,o=t.payload,r=e.pipelineContext.progressiveRender,t=t.view,a=o&&fg(o).updateMethod,r=r?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==r&&t[r](e,n,i,o),bg[r]}or(yg),hr(yg);var bg={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Sg="\0__throttleOriginMethod",Mg="\0__throttleRate",Tg="\0__throttleType";function Cg(t,o,r){var a,s,l,h,u,c=0,p=0,d=null;function f(){p=(new Date).getTime(),d=null,t.apply(l,h||[])}o=o||0;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];a=(new Date).getTime(),l=this,h=t;var n=u||o,i=u||r;u=null,s=a-(i?c:p)-n,clearTimeout(d),i?d=setTimeout(f,n):0<=s?f():d=setTimeout(f,-s),c=a}return e.clear=function(){d&&(clearTimeout(d),d=null)},e.debounceNextCall=function(t){u=t},e}function Ag(t,e,n,i){var o=t[e];if(o){var r=o[Sg]||o,a=o[Tg];if(o[Mg]!==n||a!==i){if(null==n||!i)return t[e]=r;(o=t[e]=Cg(r,n,"debounce"===i))[Sg]=r,o[Tg]=i,o[Mg]=n}}}var Ig=Xo(),kg={itemStyle:ur(rc,!0),lineStyle:ur(Xh,!0)},Dg={lineStyle:"stroke",itemStyle:"fill"};function Pg(t,e){t=t.visualStyleMapper||kg[e];return t||(console.warn("Unkown style type '"+e+"'."),kg.itemStyle)}function Lg(t,e){t=t.visualDrawType||Dg[e];return t||(console.warn("Unkown style type '"+e+"'."),"fill")}var Ac={createOnAllSeries:!0,performRawSeries:!0,reset:function(o,t){var e=o.getData(),n=o.visualStyleAccessPath||"itemStyle",i=o.getModel(n),r=Pg(o,n)(i),i=i.getShallow("decal"),a=(i&&(e.setVisual("decal",i),i.dirty=!0),Lg(o,n)),i=r[a],s=st(i)?i:null,n="auto"===r.fill||"auto"===r.stroke;if(r[a]&&!s&&!n||(i=o.getColorFromPalette(o.name,null,t.getSeriesCount()),r[a]||(r[a]=i,e.setVisual("colorFromPalette",!0)),r.fill="auto"===r.fill||"function"==typeof r.fill?i:r.fill,r.stroke="auto"===r.stroke||"function"==typeof r.stroke?i:r.stroke),e.setVisual("style",r),e.setVisual("drawType",a),!t.isSeriesFiltered(o)&&s)return e.setVisual("colorFromPalette",!1),{dataEach:function(t,e){var n=o.getDataParams(e),i=T({},r);i[a]=s(n),t.setItemVisual(e,"style",i)}}}},Og=new uc,ic={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i,o,r;if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t))return e=t.getData(),i=t.visualStyleAccessPath||"itemStyle",o=Pg(t,i),r=e.getVisual("drawType"),{dataEach:e.hasItemOption?function(t,e){var n=t.getRawDataItem(e);n&&n[i]&&(Og.option=n[i],n=o(Og),T(t.ensureUniqueItemVisual(e,"style"),n),Og.option.decal&&(t.setItemVisual(e,"decal",Og.option.decal),Og.option.decal.dirty=!0),r in n)&&t.setItemVisual(e,"colorFromPalette",!1)}:null}}},pr={performRawSeries:!0,overallReset:function(e){var n=P();e.eachSeries(function(t){var e;t.useColorPaletteOnData&&((e=n.get(t.type))||n.set(t.type,e={}),Ig(t).scope=e)}),e.eachSeries(function(i){var o,r,a,s,t,l;i.useColorPaletteOnData&&!e.isSeriesFiltered(i)&&(o=i.getRawData(),r={},a=i.getData(),s=Ig(i).scope,t=i.visualStyleAccessPath||"itemStyle",l=Lg(i,t),a.each(function(t){var e=a.getRawIndex(t);r[e]=t}),o.each(function(t){var e,n=r[t];a.getItemVisual(n,"colorFromPalette")&&(n=a.ensureUniqueItemVisual(n,"style"),t=o.getName(t)||t+"",e=o.count(),n[l]=i.getColorFromPalette(t,s,e))}))})}},Rg=Math.PI;Bg.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){t=t.overallTask;t&&t.dirty()})},Bg.prototype.getPerformArgs=function(t,e){var n,i;if(t.__pipeline)return i=(n=this._pipelineMap.get(t.__pipeline.id)).context,{step:e=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,modBy:null!=(t=i&&i.modDataCount)?Math.ceil(t/e):null,modDataCount:t}},Bg.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},Bg.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),e=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),i="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:e,modDataCount:i,large:o}},Bg.prototype.restorePipelines=function(t){var i=this,o=i._pipelineMap=P();t.eachSeries(function(t){var e=t.getProgressive(),n=t.uid;o.set(n,{id:n,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:e&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(e||700),count:0}),i._pipe(t,t.dataTask)})},Bg.prototype.prepareStageTasks=function(){var n=this._stageTaskMap,i=this.api.getModel(),o=this.api;I(this._allHandlers,function(t){var e=n.get(t.uid)||n.set(t.uid,{});wt(!(t.reset&&t.overallReset),""),t.reset&&this._createSeriesStageTask(t,e,i,o),t.overallReset&&this._createOverallStageTask(t,e,i,o)},this)},Bg.prototype.prepareView=function(t,e,n,i){var o=t.renderTask,r=o.context;r.model=e,r.ecModel=n,r.api=i,o.__block=!t.incrementalPrepareRender,this._pipe(e,o)},Bg.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},Bg.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},Bg.prototype._performStageTasks=function(t,s,l,h){h=h||{};var u=!1,c=this;function p(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}I(t,function(i,t){var e,n,o,r,a;h.visualType&&h.visualType!==i.visualType||(e=(n=c._stageTaskMap.get(i.uid)).seriesTaskMap,(n=n.overallTask)?((r=n.agentStubMap).each(function(t){p(h,t)&&(t.dirty(),o=!0)}),o&&n.dirty(),c.updatePayload(n,l),a=c.getPerformArgs(n,h.block),r.each(function(t){t.perform(a)}),n.perform(a)&&(u=!0)):e&&e.each(function(t,e){p(h,t)&&t.dirty();var n=c.getPerformArgs(t,h.block);n.skip=!i.performRawSeries&&s.isSeriesFiltered(t.context.model),c.updatePayload(t,l),t.perform(n)&&(u=!0)}))}),this.unfinished=u||this.unfinished},Bg.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},Bg.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}}while(e=e.getUpstream())})},Bg.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},Bg.prototype._createSeriesStageTask=function(n,t,i,o){var r=this,a=t.seriesTaskMap,s=t.seriesTaskMap=P(),t=n.seriesType,e=n.getTargetSeries;function l(t){var e=t.uid,e=s.set(e,a&&a.get(e)||nf({plan:Hg,reset:Wg,count:Xg}));e.context={model:t,ecModel:i,api:o,useClearVisual:n.isVisual&&!n.isLayout,plan:n.plan,reset:n.reset,scheduler:r},r._pipe(t,e)}n.createOnAllSeries?i.eachRawSeries(l):t?i.eachRawSeriesByType(t,l):e&&e(i,o).each(l)},Bg.prototype._createOverallStageTask=function(t,e,n,i){var o=this,r=e.overallTask=e.overallTask||nf({reset:zg}),a=(r.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o},r.agentStubMap),s=r.agentStubMap=P(),e=t.seriesType,l=t.getTargetSeries,h=!0,u=!1;function c(t){var e=t.uid,e=s.set(e,a&&a.get(e)||(u=!0,nf({reset:Ng,onDirty:Vg})));e.context={model:t,overallProgress:h},e.agent=r,e.__block=h,o._pipe(t,e)}wt(!t.createOnAllSeries,""),e?n.eachRawSeriesByType(e,c):l?l(n,i).each(c):(h=!1,I(n.getSeries(),c)),u&&r.dirty()},Bg.prototype._pipe=function(t,e){t=t.uid,t=this._pipelineMap.get(t);t.head||(t.head=e),t.tail&&t.tail.pipe(e),(t.tail=e).__idxInPipeline=t.count++,e.__pipeline=t},Bg.wrapStageHandler=function(t,e){return(t=st(t)?{overallReset:t,seriesType:function(t){Yg=null;try{t(Zg,qg)}catch(t){}return Yg}(t)}:t).uid=dc("stageHandler"),e&&(t.visualType=e),t};var Eg=Bg;function Bg(t,e,n,i){this._stageTaskMap=P(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function zg(t){t.overallReset(t.ecModel,t.api,t.payload)}function Ng(t){return t.overallProgress&&Fg}function Fg(){this.agent.dirty(),this.getDownstream().dirty()}function Vg(){this.agent&&this.agent.dirty()}function Hg(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Wg(t){t.useClearVisual&&t.data.clearAllVisual();t=t.resetDefines=Oo(t.reset(t.model,t.ecModel,t.api,t.payload));return 1<t.length?q(t,function(t,e){return Ug(e)}):Gg}var Gg=Ug(0);function Ug(r){return function(t,e){var n=e.data,i=e.resetDefines[r];if(i&&i.dataEach)for(var o=t.start;o<t.end;o++)i.dataEach(n,o);else i&&i.progress&&i.progress(t,n)}}function Xg(t){return t.data.count()}var Yg,Zg={},qg={};function jg(t,e){for(var n in e.prototype)t[n]=kt}jg(Zg,qp),jg(qg,Jp),Zg.eachSeriesByType=Zg.eachRawSeriesByType=function(t){Yg=t},Zg.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Yg=t.subType)};function Kg(){return{axisLine:{lineStyle:{color:$g}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}}var n=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],sc={color:n,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],n]},$g="#B9B8CE",rc="#100C2A",Xh=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],n={darkMode:!0,color:Xh,backgroundColor:rc,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:$g}},textStyle:{color:$g},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:$g}},dataZoom:{borderColor:"#71708A",textStyle:{color:$g},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:$g}},timeline:{lineStyle:{color:$g},label:{color:$g},controlStyle:{color:$g,borderColor:$g}},calendar:{itemStyle:{color:rc},dayLabel:{color:$g},monthLabel:{color:$g},yearLabel:{color:$g}},timeAxis:Kg(),logAxis:Kg(),valueAxis:Kg(),categoryAxis:Kg(),line:{symbol:"circle"},graph:{color:Xh},gauge:{title:{color:$g},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:$g},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}},Jg=(n.categoryAxis.splitLine.show=!1,Qg.prototype.normalizeQuery=function(t){var e,a,s,l={},h={},u={};return C(t)?(e=ir(t),l.mainType=e.main||null,l.subType=e.sub||null):(a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1},I(t,function(t,e){for(var n=!1,i=0;i<a.length;i++){var o=a[i],r=e.lastIndexOf(o);0<r&&r===e.length-o.length&&"data"!==(r=e.slice(0,r))&&(l.mainType=r,l[o.toLowerCase()]=t,n=!0)}s.hasOwnProperty(e)&&(h[e]=t,n=!0),n||(u[e]=t)})),{cptQuery:l,dataQuery:h,otherQuery:u}},Qg.prototype.filter=function(t,e){var n,i,o,r,a,s=this.eventInfo;return!s||(n=s.targetEl,i=s.packedEvent,o=s.model,s=s.view,!o)||!s||(r=e.cptQuery,a=e.dataQuery,l(r,o,"mainType")&&l(r,o,"subType")&&l(r,o,"index","componentIndex")&&l(r,o,"name")&&l(r,o,"id")&&l(a,i,"name")&&l(a,i,"dataIndex")&&l(a,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,i)));function l(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},Qg.prototype.afterTrigger=function(){this.eventInfo=null},Qg);function Qg(){}rc={createOnAllSeries:!0,performRawSeries:!0,reset:function(o,t){var e=o.getData();if(o.legendSymbol&&e.setVisual("legendSymbol",o.legendSymbol),o.hasSymbolVisual){var r=o.get("symbol"),a=o.get("symbolSize"),n=o.get("symbolKeepAspect"),s=o.get("symbolRotate"),l=o.get("symbolOffset"),h=st(r),u=st(a),c=st(s),p=st(l),i=h||u||c||p,d=!h&&r?r:o.defaultSymbol,f=u?null:a,g=c?null:s,y=p?null:l;if(e.setVisual({legendSymbol:o.legendSymbol||d,symbol:d,symbolSize:f,symbolKeepAspect:n,symbolRotate:g,symbolOffset:y}),!t.isSeriesFiltered(o))return{dataEach:i?function(t,e){var n=o.getRawValue(e),i=o.getDataParams(e);h&&t.setItemVisual(e,"symbol",r(n,i)),u&&t.setItemVisual(e,"symbolSize",a(n,i)),c&&t.setItemVisual(e,"symbolRotate",s(n,i)),p&&t.setItemVisual(e,"symbolOffset",l(n,i))}:null}}}},Xh={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){var n=(a=t.getItemModel(e)).getShallow("symbol",!0),i=a.getShallow("symbolSize",!0),o=a.getShallow("symbolRotate",!0),r=a.getShallow("symbolOffset",!0),a=a.getShallow("symbolKeepAspect",!0);null!=n&&t.setItemVisual(e,"symbol",n),null!=i&&t.setItemVisual(e,"symbolSize",i),null!=o&&t.setItemVisual(e,"symbolRotate",o),null!=r&&t.setItemVisual(e,"symbolOffset",r),null!=a&&t.setItemVisual(e,"symbolKeepAspect",a)}:null}}};var ty=2*Math.PI,ey=La.CMD,ny=["top","right","bottom","left"];function iy(t,e,n,i,o,r,a,s){var l=o-t,h=r-e,n=n-t,i=i-e,u=Math.sqrt(n*n+i*i),l=(l*(n/=u)+h*(i/=u))/u,h=(s&&(l=Math.min(Math.max(l,0),1)),a[0]=t+(l*=u)*n),s=a[1]=e+l*i;return Math.sqrt((h-o)*(h-o)+(s-r)*(s-r))}function oy(t,e,n,i,o,r,a){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i);n=t+n,i=e+i,t=a[0]=Math.min(Math.max(o,t),n),n=a[1]=Math.min(Math.max(r,e),i);return Math.sqrt((t-o)*(t-o)+(n-r)*(n-r))}var ry=[];function ay(t,e,n){for(var i,o,r,a,s,l,h,u,c,p=0,d=0,f=0,g=0,y=1/0,m=e.data,v=t.x,_=t.y,x=0;x<m.length;){var w=m[x++],b=(1===x&&(f=p=m[x],g=d=m[x+1]),y);switch(w){case ey.M:p=f=m[x++],d=g=m[x++];break;case ey.L:b=iy(p,d,m[x],m[x+1],v,_,ry,!0),p=m[x++],d=m[x++];break;case ey.C:b=Kr(p,d,m[x++],m[x++],m[x++],m[x++],m[x],m[x+1],v,_,ry),p=m[x++],d=m[x++];break;case ey.Q:b=ea(p,d,m[x++],m[x++],m[x],m[x+1],v,_,ry),p=m[x++],d=m[x++];break;case ey.A:var S=m[x++],M=m[x++],T=m[x++],C=m[x++],A=m[x++],I=m[x++],k=(x+=1,!!(1-m[x++])),D=Math.cos(A)*T+S,P=Math.sin(A)*C+M;x<=1&&(f=D,g=P),P=(D=A)+I,k=k,a=(v-S)*(r=C)/T+S,s=_,l=ry,c=u=h=void 0,a-=i=S,s-=o=M,h=Math.sqrt(a*a+s*s),u=(a/=h)*r+i,c=(s/=h)*r+o,b=Math.abs(D-P)%ty<1e-4||((P=k?(k=D,D=Ea(P),Ea(k)):(D=Ea(D),Ea(P)))<D&&(P+=ty),(k=Math.atan2(s,a))<0&&(k+=ty),D<=k&&k<=P)||D<=k+ty&&k+ty<=P?(l[0]=u,l[1]=c,h-r):(c=((k=r*Math.cos(D)+i)-a)*(k-a)+((u=r*Math.sin(D)+o)-s)*(u-s))<(i=((h=r*Math.cos(P)+i)-a)*(h-a)+((D=r*Math.sin(P)+o)-s)*(D-s))?(l[0]=k,l[1]=u,Math.sqrt(c)):(l[0]=h,l[1]=D,Math.sqrt(i)),p=Math.cos(A+I)*T+S,d=Math.sin(A+I)*C+M;break;case ey.R:b=oy(f=p=m[x++],g=d=m[x++],m[x++],m[x++],v,_,ry);break;case ey.Z:b=iy(p,d,f,g,v,_,ry,!0),p=f,d=g}b<y&&(y=b,n.set(ry[0],ry[1]))}return y}var sy=new R,ly=new R,hy=new R,uy=new R,cy=new R;function py(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var o=t.textGuideLineConfig||{},r=[[0,0],[0,0],[0,0]],a=o.candidates||ny,s=i.getBoundingRect().clone(),l=(s.applyTransform(i.getComputedTransform()),1/0),h=o.anchor,u=t.getComputedTransform(),c=u&&Be([],u),p=e.get("length2")||0;h&&hy.copy(h);for(var d,f,g=0;g<a.length;g++){var y=a[g],m=(S=b=w=x=_=v=m=void 0,y),v=0,_=s,x=sy,w=uy,b=_.width,S=_.height;switch(m){case"top":x.set(_.x+b/2,_.y-v),w.set(0,-1);break;case"bottom":x.set(_.x+b/2,_.y+S+v),w.set(0,1);break;case"left":x.set(_.x-v,_.y+S/2),w.set(-1,0);break;case"right":x.set(_.x+b+v,_.y+S/2),w.set(1,0)}R.scaleAndAdd(ly,sy,uy,p),ly.transform(c);y=t.getBoundingRect(),y=h?h.distance(ly):t instanceof j?ay(ly,t.path,hy):(m=hy,d=oy((d=y).x,y.y,y.width,y.height,ly.x,ly.y,ry),m.set(ry[0],ry[1]),d);y<l&&(l=y,ly.transform(u),hy.transform(u),hy.toArray(r[0]),ly.toArray(r[1]),sy.toArray(r[2]))}i=r,(o=e.get("minTurnAngle"))<=180&&0<o&&(o=o/180*Math.PI,sy.fromArray(i[0]),ly.fromArray(i[1]),hy.fromArray(i[2]),R.sub(uy,sy,ly),R.sub(cy,hy,ly),e=uy.len(),f=cy.len(),e<.001||f<.001||(uy.scale(1/e),cy.scale(1/f),e=uy.dot(cy),Math.cos(o)<e&&(f=iy(ly.x,ly.y,hy.x,hy.y,sy.x,sy.y,dy,!1),fy.fromArray(dy),fy.scaleAndAdd(cy,f/Math.tan(Math.PI-o)),e=hy.x!==ly.x?(fy.x-ly.x)/(hy.x-ly.x):(fy.y-ly.y)/(hy.y-ly.y),isNaN(e)||(e<0?R.copy(fy,ly):1<e&&R.copy(fy,hy),fy.toArray(i[1]))))),n.setShape({points:r})}}}var dy=[],fy=new R;function gy(t,e,n,i){var o="normal"===n,n=o?t:t.ensureState(n),e=(n.ignore=e,i.get("smooth")),e=(e&&!0===e&&(e=.3),n.shape=n.shape||{},0<e&&(n.shape.smooth=e),i.getModel("lineStyle").getLineStyle());o?t.useStyle(e):n.style=e}function yy(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),0<n&&3<=i.length){var e=Vt(i[0],i[1]),o=Vt(i[1],i[2]);e&&o?(n=Math.min(e,o)*n,e=Gt([],i[1],i[0],n/e),n=Gt([],i[1],i[2],n/o),o=Gt([],e,n,.5),t.bezierCurveTo(e[0],e[1],e[0],e[1],o[0],o[1]),t.bezierCurveTo(n[0],n[1],n[0],n[1],i[2][0],i[2][1])):(t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]))}else for(var r=1;r<i.length;r++)t.lineTo(i[r][0],i[r][1])}function my(s,l,h,t,e,n){var u=s.length;if(!(u<2)){s.sort(function(t,e){return t.rect[l]-e.rect[l]});for(var i=0,r=!1,o=0,a=0;a<u;a++){var c,p=s[a],d=p.rect;(c=d[l]-i)<0&&(d[l]-=c,p.label[l]-=c,r=!0),o+=Math.max(-c,0),i=d[l]+d[h]}0<o&&n&&x(-o/u,0,u);var f,g,y=s[0],m=s[u-1];return v(),f<0&&w(-f,.8),g<0&&w(g,.8),v(),_(f,g,1),_(g,f,-1),v(),f<0&&b(-f),g<0&&b(g),r}function v(){f=y.rect[l]-t,g=e-m.rect[l]-m.rect[h]}function _(t,e,n){t<0&&(0<(e=Math.min(e,-t))?(x(e*n,0,u),(e=e+t)<0&&w(-e*n,1)):w(-t*n,1))}function x(t,e,n){0!==t&&(r=!0);for(var i=e;i<n;i++){var o=s[i];o.rect[l]+=t,o.label[l]+=t}}function w(t,e){for(var n=[],i=0,o=1;o<u;o++){var r=s[o-1].rect,r=Math.max(s[o].rect[l]-r[l]-r[h],0);n.push(r),i+=r}if(i){var a=Math.min(Math.abs(t)/i,e);if(0<t)for(o=0;o<u-1;o++)x(n[o]*a,0,o+1);else for(o=u-1;0<o;o--)x(-(n[o-1]*a),o,u)}}function b(t){for(var e=t<0?-1:1,n=(t=Math.abs(t),Math.ceil(t/(u-1))),i=0;i<u-1;i++)if(0<e?x(n,0,i+1):x(-n,u-i-1,u),(t-=n)<=0)return}}function vy(t,e){var n=t.label,e=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:function(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}(e&&e.shape.points)}}var _y=["align","verticalAlign","width","height","fontSize"],xy=new Ue,wy=Xo(),by=Xo();function Sy(t,e,n){for(var i=0;i<n.length;i++){var o=n[i];null!=e[o]&&(t[o]=e[o])}}var My=["x","y","rotation"],Ty=(Cy.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},Cy.prototype._addLabel=function(t,e,n,i,o){var r,a=i.style,s=i.__hostTarget.textConfig||{},l=i.getComputedTransform(),h=i.getBoundingRect().plain(),l=(X.applyTransform(h,h,l),l?xy.setLocalTransform(l):(xy.x=xy.y=xy.rotation=xy.originX=xy.originY=0,xy.scaleX=xy.scaleY=1),i.__hostTarget),u=(l&&(r=l.getBoundingRect().plain(),u=l.getComputedTransform(),X.applyTransform(r,r,u)),r&&l.getTextGuideLine());this._labelList.push({label:i,labelLine:u,seriesModel:n,dataIndex:t,dataType:e,layoutOption:o,computedLayoutOption:null,rect:h,hostRect:r,priority:r?r.width*r.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:u&&u.ignore,x:xy.x,y:xy.y,scaleX:xy.scaleX,scaleY:xy.scaleY,rotation:xy.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},Cy.prototype.addLabelsOfSeries=function(t){var n=this,i=(this._chartViewList.push(t),t.__model),o=i.get("labelLayout");(st(o)||k(o).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var e=t.getTextContent(),t=Cs(t);e&&!e.disableLabelLayout&&n._addLabel(t.dataIndex,t.dataType,i,e,o)})},Cy.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],r=o.label,a=r.__hostTarget,s=o.defaultAttr,l=void 0,l="function"==typeof o.layoutOption?o.layoutOption(vy(o,a)):o.layoutOption,h=(o.computedLayoutOption=l=l||{},Math.PI/180),u=(a&&a.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:s.attachedPos,rotation:null!=l.rotate?l.rotate*h:s.attachedRot,offset:[l.dx||0,l.dy||0]}),!1);null!=l.x?(r.x=B(l.x,e),r.setStyle("x",0),u=!0):(r.x=s.x,r.setStyle("x",s.style.x)),null!=l.y?(r.y=B(l.y,n),r.setStyle("y",0),u=!0):(r.y=s.y,r.setStyle("y",s.style.y)),l.labelLinePoints&&(c=a.getTextGuideLine())&&(c.setShape({points:l.labelLinePoints}),u=!1),wy(r).needsUpdateLabelLine=u,r.rotation=null!=l.rotate?l.rotate*h:s.rotation,r.scaleX=s.scaleX,r.scaleY=s.scaleY;for(var c,p=0;p<_y.length;p++){var d=_y[p];r.setStyle(d,(null!=l[d]?l:s.style)[d])}l.draggable?(r.draggable=!0,r.cursor="move",a&&(c=o.seriesModel,null!=o.dataIndex&&(c=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex)),r.on("drag",function(t,e){return function(){py(t,e)}}(a,c.getModel("labelLine"))))):(r.off("drag"),r.cursor=s.cursor)}},Cy.prototype.layout=function(t){var e,n,i=t.getWidth(),t=t.getHeight(),o=function(t){for(var e=[],n=0;n<t.length;n++){var i,o,r,a,s,l,h=t[n];h.defaultAttr.ignore||(o=(i=h.label).getComputedTransform(),r=i.getBoundingRect(),a=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,(s=r.clone()).applyTransform(o),s.x-=l/2,s.y-=l/2,s.width+=l,s.height+=l,l=a?new iu(r,o):null,e.push({label:i,labelLine:h.labelLine,rect:s,localRect:r,obb:l,priority:h.priority,defaultAttr:h.defaultAttr,layoutOption:h.computedLayoutOption,axisAligned:a,transform:o}))}return e}(this._labelList),r=rt(o,function(t){return"shiftX"===t.layoutOption.moveOverlap}),a=rt(o,function(t){return"shiftY"===t.layoutOption.moveOverlap});my(r,"x","width",0,i,e),my(a,"y","height",0,t,n);var s=rt(o,function(t){return t.layoutOption.hideOverlap}),l=[],h=(s.sort(function(t,e){return e.priority-t.priority}),new X(0,0,0,0));function u(t){var e;t.ignore||null==(e=t.ensureState("emphasis")).ignore&&(e.ignore=!1),t.ignore=!0}for(var c=0;c<s.length;c++){for(var p=s[c],d=p.axisAligned,f=p.localRect,g=p.transform,y=p.label,m=p.labelLine,v=(h.copy(p.rect),h.width-=.1,h.height-=.1,h.x+=.05,h.y+=.05,p.obb),_=!1,x=0;x<l.length;x++){var w=l[x];if(h.intersect(w.rect)){if(d&&w.axisAligned){_=!0;break}if(w.obb||(w.obb=new iu(w.localRect,w.transform)),(v=v||new iu(f,g)).intersect(w.obb)){_=!0;break}}}_?(u(y),m&&u(m)):(y.attr("ignore",p.defaultAttr.ignore),m&&m.attr("ignore",p.defaultAttr.labelGuideIgnore),l.push(p))}},Cy.prototype.processLabelsOverall=function(){var a=this;I(this._chartViewList,function(t){var i=t.__model,o=t.ignoreLabelLineUpdate,r=i.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore)return!0;var e=!o,n=t.getTextContent();(e=!e&&n?wy(n).needsUpdateLabelLine:e)&&a._updateLabelLine(t,i),r&&a._animateLabels(t,i)})})},Cy.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=Cs(t),o=i.dataIndex;if(n&&null!=o){var n=e.getData(i.dataType),e=n.getItemModel(o),i={},o=n.getItemVisual(o,"style"),n=n.getVisual("drawType"),o=(i.stroke=o[n],e.getModel("labelLine")),r=t,a=function(t,e){for(var n={normal:t.getModel(e=e||"labelLine")},i=0;i<Os.length;i++){var o=Os[i];n[o]=t.getModel([o,e])}return n}(e),n=i,s=r.getTextGuideLine(),l=r.getTextContent();if(l){for(var e=a.normal,h=e.get("show"),u=l.ignore,c=0;c<Rs.length;c++){var p,d=Rs[c],f=a[d],g="normal"===d;f&&(p=f.get("show"),(g?u:L(l.states[d]&&l.states[d].ignore,u))||!L(p,h)?(p=g?s:s&&s.states.normal)&&(p.ignore=!0):(s||(s=new Th,r.setTextGuideLine(s),g||!u&&h||gy(s,!0,"normal",a.normal),r.stateProxy&&(s.stateProxy=r.stateProxy)),gy(s,!1,d,f)))}s&&(N(s.style,n),s.style.fill=null,n=e.get("showAbove"),(r.textGuideLineConfig=r.textGuideLineConfig||{}).showAbove=n||!1,s.buildPath=yy)}else s&&r.removeTextGuideLine();py(t,o)}},Cy.prototype._animateLabels=function(t,e){var n,i,o,r,a,s=t.getTextContent(),l=t.getTextGuideLine();!s||s.ignore||s.invisible||t.disableLabelAnimation||Au(t)||(r=(o=wy(s)).oldLayout,n=(i=Cs(t)).dataIndex,a={x:s.x,y:s.y,rotation:s.rotation},i=e.getData(i.dataType),r?(s.attr(r),(t=t.prevStates)&&(0<=A(t,"select")&&s.attr(o.oldLayoutSelect),0<=A(t,"emphasis"))&&s.attr(o.oldLayoutEmphasis),Su(s,a,e,n)):(s.attr(a),$u(s).valueAnimation||(t=L(s.style.opacity,1),s.style.opacity=0,Mu(s,{style:{opacity:t}},e,n))),o.oldLayout=a,s.states.select&&(Sy(t=o.oldLayoutSelect={},a,My),Sy(t,s.states.select,My)),s.states.emphasis&&(Sy(t=o.oldLayoutEmphasis={},a,My),Sy(t,s.states.emphasis,My)),Ju(s,n,i,e,e)),!l||l.ignore||l.invisible||(r=(o=by(l)).oldLayout,a={points:l.shape.points},r?(l.attr({shape:r}),Su(l,{shape:a},e)):(l.setShape(a),l.style.strokePercent=0,Mu(l,{style:{strokePercent:1}},e)),o.oldLayout=a)},Cy);function Cy(){this._labelList=[],this._chartViewList=[]}function Ay(t,e,a,n,s){var l=t+e;a.isSilent(l)||n.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e,n,i=t.seriesIndex,o=s.selected,r=0;r<o.length;r++)o[r].seriesIndex===i&&(n=Uo(e=t.getData(),s.fromActionPayload),a.trigger(l,{type:l,seriesId:t.id,name:F(n)?e.getName(n[0]):e.getName(n),selected:T({},t.option.selectedMap)}))})}function Iy(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}var ky=Math.round(9*Math.random()),Dy=(Py.prototype.get=function(t){return this._guard(t)[this._id]},Py.prototype.set=function(t,e){t=this._guard(t);return"function"==typeof Object.defineProperty?Object.defineProperty(t,this._id,{value:e,enumerable:!1,configurable:!0}):t[this._id]=e,this},Py.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},Py.prototype.has=function(t){return!!this._guard(t)[this._id]},Py.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},Py);function Py(){this._id="__ec_inner_"+ky++}var Ly=j.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,o=e.width/2,e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+o,i+e),t.lineTo(n-o,i+e),t.closePath()}}),Oy=j.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,o=e.width/2,e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+o,i),t.lineTo(n,i+e),t.lineTo(n-o,i),t.closePath()}}),Ry=j.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,o=e.width/5*3,e=Math.max(o,e.height),o=o/2,r=o*o/(e-o),e=i-e+o+r,a=Math.asin(r/o),s=Math.cos(a)*o,l=Math.sin(a),h=Math.cos(a),u=.6*o,c=.7*o;t.moveTo(n-s,e+r),t.arc(n,e,o,Math.PI-a,2*Math.PI+a),t.bezierCurveTo(n+s-l*u,e+r+h*u,n,i-c,n,i),t.bezierCurveTo(n,i-c,n-s+l*u,e+r+h*u,n-s,e+r),t.closePath()}}),Ey=j.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,o=e.x,e=e.y,i=i/3*2;t.moveTo(o,e),t.lineTo(o+i,e+n),t.lineTo(o,e+n/4*3),t.lineTo(o-i,e+n),t.lineTo(o,e),t.closePath()}}),By={line:function(t,e,n,i,o){o.x1=t,o.y1=e+i/2,o.x2=t+n,o.y2=e+i/2},rect:function(t,e,n,i,o){o.x=t,o.y=e,o.width=n,o.height=i},roundRect:function(t,e,n,i,o){o.x=t,o.y=e,o.width=n,o.height=i,o.r=Math.min(n,i)/4},square:function(t,e,n,i,o){n=Math.min(n,i);o.x=t,o.y=e,o.width=n,o.height=n},circle:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.r=Math.min(n,i)/2},diamond:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.width=n,o.height=i},pin:function(t,e,n,i,o){o.x=t+n/2,o.y=e+i/2,o.width=n,o.height=i},arrow:function(t,e,n,i,o){o.x=t+n/2,o.y=e+i/2,o.width=n,o.height=i},triangle:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.width=n,o.height=i}},zy={},Ny=(I({line:Dh,rect:ps,roundRect:ps,square:ps,circle:Ul,diamond:Oy,pin:Ry,arrow:Ey,triangle:Ly},function(t,e){zy[e]=new t}),j.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var t=ri(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(t.y=n.y+.4*n.height),t},buildPath:function(t,e,n){var i,o=e.symbolType;"none"!==o&&(i=(i=zy[o])||zy[o="rect"],By[o](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n))}}));function Fy(t,e){var n;"image"!==this.type&&(n=this.style,this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw())}function Vy(t,e,n,i,o,r,a){var s=0===t.indexOf("empty");return(a=0===(t=s?t.substr(5,1).toLowerCase()+t.substr(6):t).indexOf("image://")?vu(t.slice(8),new X(e,n,i,o),a?"center":"cover"):0===t.indexOf("path://")?mu(t.slice(7),{},new X(e,n,i,o),a?"center":"cover"):new Ny({shape:{symbolType:t,x:e,y:n,width:i,height:o}})).__isEmptyBrush=s,a.setColor=Fy,r&&a.setColor(r),a}function Hy(t,e,n){for(var i,o,r,a,s,l,h,u,c,p="radial"===e.type?(i=t,o=e,a=(r=n).width,s=r.height,l=Math.min(a,s),h=null==o.x?.5:o.x,u=null==o.y?.5:o.y,c=null==o.r?.5:o.r,o.global||(h=h*a+r.x,u=u*s+r.y,c*=l),i.createRadialGradient(h,u,0,h,u,c)):(o=t,a=n,r=null==(s=e).x?0:s.x,l=null==s.x2?1:s.x2,i=null==s.y?0:s.y,h=null==s.y2?0:s.y2,s.global||(r=r*a.width+a.x,l=l*a.width+a.x,i=i*a.height+a.y,h=h*a.height+a.y),r=isNaN(r)?0:r,l=isNaN(l)?1:l,i=isNaN(i)?0:i,h=isNaN(h)?0:h,o.createLinearGradient(r,i,l,h)),d=e.colorStops,f=0;f<d.length;f++)p.addColorStop(d[f].offset,d[f].color);return p}function Wy(t,e){if(t!==e&&(t||e)){if(!t||!e||t.length!==e.length)return 1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return 1}}function Gy(t,e){return t&&"solid"!==t&&0<e?(e=e||1,"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:ht(t)?[t]:F(t)?t:null):null}var Uy=new La(!0);function Xy(t){var e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))}function Yy(t){t=t.fill;return null!=t&&"none"!==t}function Zy(t,e){var n;null!=e.fillOpacity&&1!==e.fillOpacity?(n=t.globalAlpha,t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n):t.fill()}function qy(t,e){var n;null!=e.strokeOpacity&&1!==e.strokeOpacity?(n=t.globalAlpha,t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n):t.stroke()}function jy(t,e,n){var n=gr(e.image,e.__image,n);if(mr(n))return t=t.createPattern(n,e.repeat||"repeat"),"function"==typeof DOMMatrix&&t.setTransform&&((n=new DOMMatrix).rotateSelf(0,0,(e.rotation||0)/Math.PI*180),n.scaleSelf(e.scaleX||1,e.scaleY||1),n.translateSelf(e.x||0,e.y||0),t.setTransform(n)),t}var Ky=["shadowBlur","shadowOffsetX","shadowOffsetY"],$y=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Jy(t,e,n,i,o){var r,a=!1;if(!i&&e===(n=n||{}))return!1;!i&&e.opacity===n.opacity||(a||(rm(t,o),a=!0),r=Math.max(Math.min(e.opacity,1),0),t.globalAlpha=isNaN(r)?Pr.opacity:r),!i&&e.blend===n.blend||(a||(rm(t,o),a=!0),t.globalCompositeOperation=e.blend||Pr.blend);for(var s=0;s<Ky.length;s++){var l=Ky[s];!i&&e[l]===n[l]||(a||(rm(t,o),a=!0),t[l]=t.dpr*(e[l]||0))}return!i&&e.shadowColor===n.shadowColor||(a||(rm(t,o),a=!0),t.shadowColor=e.shadowColor||Pr.shadowColor),a}function Qy(t,e,n,i,o){var r=am(e,o.inHover),a=i?null:n&&am(n,o.inHover)||{};if(r!==a){var s=Jy(t,r,a,i,o);!i&&r.fill===a.fill||(s||(rm(t,o),s=!0),t.fillStyle=r.fill),!i&&r.stroke===a.stroke||(s||(rm(t,o),s=!0),t.strokeStyle=r.stroke),!i&&r.opacity===a.opacity||(s||(rm(t,o),s=!0),t.globalAlpha=null==r.opacity?1:r.opacity),e.hasStroke()&&(n=r.lineWidth/(r.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1),t.lineWidth!==n)&&(s||(rm(t,o),s=!0),t.lineWidth=n);for(var l=0;l<$y.length;l++){var h=$y[l],u=h[0];!i&&r[u]===a[u]||(s||(rm(t,o),s=!0),t[u]=r[u]||h[1])}}}function tm(t,e){var e=e.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)}var em=1,nm=2,im=3,om=4;function rm(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function am(t,e){return e&&t.__hoverStyle||t.style}function sm(t,e){lm(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function lm(t,e,n,B){var i=e.transform;if(e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){var o=e.__clipPaths,r=n.prevElClipPaths,a=!1,s=!1;if(!r||Wy(o,r)){if(r&&r.length&&(rm(t,n),t.restore(),s=a=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length){rm(t,n),t.save();for(var z=o,l=t,r=n,N=!1,F=0;F<z.length;F++){var h=z[F],N=N||h.isZeroArea();tm(l,h),l.beginPath(),h.buildPath(l,h.shape),l.clip()}r.allClipped=N,a=!0}n.prevElClipPaths=o}if(n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u,c,p,d,f,g,y,m,v,_,x,w,V,b,S,M,T,C,A,I,k,D,r=n.prevEl,P=(r||(s=a=!0),e instanceof j&&e.autoBatch&&(o=e.style,P=Yy(o),u=Xy(o),!(o.lineDash||!(+P^+u)||P&&"string"!=typeof o.fill||u&&"string"!=typeof o.stroke||o.strokePercent<1||o.strokeOpacity<1||o.fillOpacity<1))),a=(a||(u=i,o=r.transform,u&&o?u[0]!==o[0]||u[1]!==o[1]||u[2]!==o[2]||u[3]!==o[3]||u[4]!==o[4]||u[5]!==o[5]:u||o)?(rm(t,n),tm(t,e)):P||rm(t,n),am(e,n.inHover));if(e instanceof j)n.lastDrawType!==em&&(s=!0,n.lastDrawType=em),Qy(t,e,r,s,n),P&&(n.batchFill||n.batchStroke)||t.beginPath(),i=t,o=e,g=P,b=Xy(f=a),S=Yy(f),M=f.strokePercent,T=M<1,C=!o.path,o.silent&&!T||!C||o.createPathProxy(),A=o.path||Uy,g||(I=f.fill,R=f.stroke,k=S&&!!I.colorStops,y=b&&!!R.colorStops,m=S&&!!I.image,v=b&&!!R.image,O=w=x=_=D=void 0,(k||y)&&(O=o.getBoundingRect()),k&&(D=o.__dirty?Hy(i,I,O):o.__canvasFillGradient,o.__canvasFillGradient=D),y&&(_=o.__dirty?Hy(i,R,O):o.__canvasStrokeGradient,o.__canvasStrokeGradient=_),m&&(x=o.__dirty||!o.__canvasFillPattern?jy(i,I,o):o.__canvasFillPattern,o.__canvasFillPattern=x),v&&(w=o.__dirty||!o.__canvasStrokePattern?jy(i,R,o):o.__canvasStrokePattern,o.__canvasStrokePattern=x),k?i.fillStyle=D:m&&(x?i.fillStyle=x:S=!1),y?i.strokeStyle=_:v&&(w?i.strokeStyle=w:b=!1)),O=f.lineDash&&0<f.lineWidth&&Gy(f.lineDash,f.lineWidth),I=f.lineDashOffset,R=!!i.setLineDash,k=o.getGlobalScale(),A.setScale(k[0],k[1],o.segmentIgnoreThreshold),O&&(V=f.strokeNoScale&&o.getLineScale?o.getLineScale():1)&&1!==V&&(O=q(O,function(t){return t/V}),I/=V),D=!0,(C||o.__dirty&j.SHAPE_CHANGED_BIT||O&&!R&&b)&&(A.setDPR(i.dpr),T?A.setContext(null):(A.setContext(i),D=!1),A.reset(),O&&!R&&(A.setLineDash(O),A.setLineDashOffset(I)),o.buildPath(A,o.shape,g),A.toStatic(),o.pathUpdated()),D&&A.rebuildPath(i,T?M:1),O&&R&&(i.setLineDash(O),i.lineDashOffset=I),g||(f.strokeFirst?(b&&qy(i,f),S&&Zy(i,f)):(S&&Zy(i,f),b&&qy(i,f))),O&&R&&i.setLineDash([]),P&&(n.batchFill=a.fill||"",n.batchStroke=a.stroke||"");else if(e instanceof Ja)n.lastDrawType!==im&&(s=!0,n.lastDrawType=im),Qy(t,e,r,s,n),m=t,x=e,null!=(_=(y=a).text)&&(_+=""),_&&(m.font=y.font||Kn,m.textAlign=y.textAlign,m.textBaseline=y.textBaseline,v=void 0,m.setLineDash&&(w=y.lineDash&&0<y.lineWidth&&Gy(y.lineDash,y.lineWidth),k=y.lineDashOffset,w)&&((d=y.strokeNoScale&&x.getLineScale?x.getLineScale():1)&&1!==d&&(w=q(w,function(t){return t/d}),k/=d),m.setLineDash(w),m.lineDashOffset=k,v=!0),y.strokeFirst?(Xy(y)&&m.strokeText(_,y.x,y.y),Yy(y)&&m.fillText(_,y.x,y.y)):(Yy(y)&&m.fillText(_,y.x,y.y),Xy(y)&&m.strokeText(_,y.x,y.y)),v)&&m.setLineDash([]);else if(e instanceof is)n.lastDrawType!==nm&&(s=!0,n.lastDrawType=nm),C=r,o=s,Jy(t,am(e,(D=n).inHover),C&&am(C,D.inHover),o,D),A=t,T=a,(I=(M=e).__image=gr(T.image,M.__image,M,M.onload))&&mr(I)&&(g=T.x||0,S=T.y||0,b=M.getWidth(),M=M.getHeight(),f=I.width/I.height,null==b&&null!=M?b=M*f:null==M&&null!=b?M=b/f:null==b&&null==M&&(b=I.width,M=I.height),T.sWidth&&T.sHeight?(c=T.sx||0,p=T.sy||0,A.drawImage(I,c,p,T.sWidth,T.sHeight,g,S,b,M)):T.sx&&T.sy?(c=T.sx,p=T.sy,A.drawImage(I,c,p,b-c,M-p,g,S,b,M)):A.drawImage(I,g,S,b,M));else if(e instanceof su){n.lastDrawType!==om&&(s=!0,n.lastDrawType=om);var L,H,W=t,O=e,R=n,G=O.getDisplayables(),U=O.getTemporalDisplayables(),X=(W.save(),{prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:R.viewWidth,viewHeight:R.viewHeight,inHover:R.inHover});for(L=O.getCursor(),H=G.length;L<H;L++)(E=G[L]).beforeBrush&&E.beforeBrush(),E.innerBeforeBrush(),lm(W,E,X,L===H-1),E.innerAfterBrush(),E.afterBrush&&E.afterBrush(),X.prevEl=E;for(var E,Y=0,Z=U.length;Y<Z;Y++)(E=U[Y]).beforeBrush&&E.beforeBrush(),E.innerBeforeBrush(),lm(W,E,X,Y===Z-1),E.innerAfterBrush(),E.afterBrush&&E.afterBrush(),X.prevEl=E;O.clearTemporalDisplayables(),O.notClear=!0,W.restore()}P&&B&&rm(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),(n.prevEl=e).__dirty=0,e.__isRendered=!0}}else e.__dirty&=~mi.REDARAW_BIT,e.__isRendered=!1}var hm,um=new Dy,cm=new Je(100),pm=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function dm(t,e){if("none"===t)return null;var a=e.getDevicePixelRatio(),s=e.getZr(),l="svg"===s.painter.type,e=(t.dirty&&um.delete(t),um.get(t));if(e)return e;for(var n,h=N(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512}),e=("none"===h.backgroundColor&&(h.backgroundColor=null),{repeat:"repeat"}),i=e,o=[a],r=!0,u=0;u<pm.length;++u){var c=h[pm[u]],p=typeof c;if(null!=c&&!F(c)&&"string"!=p&&"number"!=p&&"boolean"!=p){r=!1;break}o.push(c)}r&&(n=o.join(",")+(l?"-svg":""),_=cm.get(n))&&(l?i.svgElement=_:i.image=_);var d,f=function t(e){if(!e||0===e.length)return[[0,0]];if("number"==typeof e)return[[r=Math.ceil(e),r]];var n=!0;for(var i=0;i<e.length;++i)if("number"!=typeof e[i]){n=!1;break}if(n)return t([e]);var o=[];for(i=0;i<e.length;++i){var r;"number"==typeof e[i]?(r=Math.ceil(e[i]),o.push([r,r])):(r=q(e[i],function(t){return Math.ceil(t)})).length%2==1?o.push(r.concat(r)):o.push(r)}return o}(h.dashArrayX),g=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if("number"==typeof t)return[e=Math.ceil(t),e];var e=q(t,function(t){return Math.ceil(t)});return t.length%2?e.concat(e):e}(h.dashArrayY),y=function t(e){if(!e||0===e.length)return[["rect"]];if("string"==typeof e)return[[e]];var n=!0;for(var i=0;i<e.length;++i)if("string"!=typeof e[i]){n=!1;break}if(n)return t([e]);var o=[];for(i=0;i<e.length;++i)"string"==typeof e[i]?o.push([e[i]]):o.push(e[i]);return o}(h.symbol),m=function(t){return q(t,fm)}(f),v=fm(g),_=!l&&tt(),x=l&&s.painter.createSVGElement("g"),w=function(){for(var t=1,e=0,n=m.length;e<n;++e)t=Po(t,m[e]);for(var i=1,e=0,n=y.length;e<n;++e)i=Po(i,y[e].length);t*=i;var o=v*m.length*y.length;return{width:Math.max(1,Math.min(t,h.maxTileWidth)),height:Math.max(1,Math.min(o,h.maxTileHeight))}}();_&&(_.width=w.width*a,_.height=w.height*a,d=_.getContext("2d")),d&&(d.clearRect(0,0,_.width,_.height),h.backgroundColor)&&(d.fillStyle=h.backgroundColor,d.fillRect(0,0,_.width,_.height));for(var b=0,S=0;S<g.length;++S)b+=g[S];if(!(b<=0))for(var M=-v,T=0,C=0,A=0;M<w.height;){if(T%2==0){for(var I=C/2%y.length,k=0,D=0,P=0;k<2*w.width;){for(var L,O,R,E,B,z=0,S=0;S<f[A].length;++S)z+=f[A][S];if(z<=0)break;D%2==0&&(O=.5*(1-h.symbolSize),L=k+f[A][D]*O,O=M+g[T]*O,R=f[A][D]*h.symbolSize,E=g[T]*h.symbolSize,B=P/2%y[I].length,function(t,e,n,i,o){var r=l?1:a,o=Vy(o,t*r,e*r,n*r,i*r,h.color,h.symbolKeepAspect);l?x.appendChild(s.painter.paintOne(o)):sm(d,o)}(L,O,R,E,y[I][B])),k+=f[A][D],++P,++D===f[A].length&&(D=0)}++A===f.length&&(A=0)}M+=g[T],++C,++T===g.length&&(T=0)}return r&&cm.put(n,_||x),i.image=_,i.svgElement=x,i.svgWidth=w.width,i.svgHeight=w.height,e.rotation=h.rotation,e.scaleX=e.scaleY=l?1:1/a,um.set(t,e),t.dirty=!1,e}function fm(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}function gm(t){var e=t=C(t)?(new DOMParser).parseFromString(t,"text/xml"):t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var ym={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},mm=k(ym),vm={"alignment-baseline":"textBaseline","stop-color":"stopColor"},_m=k(vm),xm=(wm.prototype.parse=function(t,e){e=e||{};t=gm(t);if(!t)throw new Error("Illegal svg");this._defsUsePending=[];for(var n,i,o=new so,r=(this._root=o,[]),a=t.getAttribute("viewBox")||"",s=parseFloat(t.getAttribute("width")||e.width),l=parseFloat(t.getAttribute("height")||e.height),h=(isNaN(s)&&(s=null),isNaN(l)&&(l=null),Am(t,o,null,!0,!1),t.firstChild);h;)this._parseNode(h,o,r,null,!1,!1),h=h.nextSibling;for(var u=this._defs,c=this._defsUsePending,p=0;p<c.length;p++){var d=c[p];d[0].style[d[1]]=u[d[2]]}return this._defsUsePending=[],(n=a&&4<=(t=Pm(a)).length?{x:parseFloat(t[0]||0),y:parseFloat(t[1]||0),width:parseFloat(t[2]),height:parseFloat(t[3])}:n)&&null!=s&&null!=l&&(i=Em(n,{x:0,y:0,width:s,height:l}),e.ignoreViewBox||(a=o,(o=new so).add(a),a.scaleX=a.scaleY=i.scale,a.x=i.x,a.y=i.y)),e.ignoreRootClip||null==s||null==l||o.setClipPath(new ps({shape:{x:0,y:0,width:s,height:l}})),{root:o,width:s,height:l,viewBoxRect:n,viewBoxTransform:i,named:r}},wm.prototype._parseNode=function(t,e,n,i,o,r){var a,s,l=t.nodeName.toLowerCase(),h=i;if("defs"===l&&(o=!0),"text"===l&&(r=!0),"defs"===l||"switch"===l?a=e:(o||(s=hm[l])&&O(hm,l)&&(a=s.call(this,t,e),(s=t.getAttribute("name"))?(n.push(s={name:s,namedFrom:null,svgNodeTagLower:l,el:a}),"g"===l&&(h=s)):i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:l,el:a}),e.add(a)),(s=bm[l])&&O(bm,l)&&(i=s.call(this,t),e=t.getAttribute("id"))&&(this._defs[e]=i)),a&&a.isGroup)for(var u=t.firstChild;u;)1===u.nodeType?this._parseNode(u,a,n,h,o,r):3===u.nodeType&&r&&this._parseText(u,a),u=u.nextSibling},wm.prototype._parseText=function(t,e){var n=new Ja({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0}),t=(Tm(e,n),Am(t,n,this._defsUsePending,!1,!1),n),i=e,o=i.__selfStyle,o=(o&&(o=o.textBaseline,!(r=o)||"auto"===o||"baseline"===o?r="alphabetic":"before-edge"===o||"text-before-edge"===o?r="top":"after-edge"===o||"text-after-edge"===o?r="bottom":"central"!==o&&"mathematical"!==o||(r="middle"),t.style.textBaseline=r),(o=i.__inheritedStyle)&&(r=o.textAlign,i=r)&&("middle"===r&&(i="center"),t.style.textAlign=i),n.style),r=o.fontSize,t=(r&&r<9&&(o.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9),(o.fontSize||o.fontFamily)&&[o.fontStyle,o.fontWeight,(o.fontSize||12)+"px",o.fontFamily||"sans-serif"].join(" ")),i=(o.font=t,n.getBoundingRect());return this._textX+=i.width,e.add(n),n},wm.internalField=void(hm={g:function(t,e){var n=new so;return Tm(e,n),Am(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new ps;return Tm(e,n),Am(t,n,this._defsUsePending,!1,!1),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.silent=!0,n},circle:function(t,e){var n=new Ul;return Tm(e,n),Am(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Dh;return Tm(e,n),Am(t,n,this._defsUsePending,!1,!1),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.silent=!0,n},ellipse:function(t,e){var n=new ql;return Tm(e,n),Am(t,n,this._defsUsePending,!1,!1),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.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute("points"),i=(i&&(n=Cm(i)),new wh({shape:{points:n||[]},silent:!0}));return Tm(e,i),Am(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n,i=t.getAttribute("points"),i=(i&&(n=Cm(i)),new Th({shape:{points:n||[]},silent:!0}));return Tm(e,i),Am(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new is;return Tm(e,n),Am(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",o=t.getAttribute("dx")||"0",r=t.getAttribute("dy")||"0",n=(this._textX=parseFloat(n)+parseFloat(o),this._textY=parseFloat(i)+parseFloat(r),new so);return Tm(e,n),Am(t,n,this._defsUsePending,!1,!0),n},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y"),n=(null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i)),t.getAttribute("dx")||"0"),i=t.getAttribute("dy")||"0",o=new so;return Tm(e,o),Am(t,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(i),o},path:function(t,e){var n=Hl(t.getAttribute("d")||"");return Tm(e,n),Am(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),wm);function wm(){this._defs={},this._root=null}var bm={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),o=parseInt(t.getAttribute("y2")||"0",10),e=new qh(e,n,i,o);return Sm(t,e),Mm(t,e),e},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),e=new $h(e,n,i);return Sm(t,e),Mm(t,e),e}};function Sm(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function Mm(t,e){for(var n,i,o=t.firstChild;o;)1===o.nodeType&&"stop"===o.nodeName.toLocaleLowerCase()&&(n=void 0,n=(i=o.getAttribute("offset"))&&0<i.indexOf("%")?parseInt(i,10)/100:i?parseFloat(i):0,Rm(o,i={},i),i=i.stopColor||o.getAttribute("stop-color")||"#000000",e.colorStops.push({offset:n,color:i})),o=o.nextSibling}function Tm(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),N(e.__inheritedStyle,t.__inheritedStyle))}function Cm(t){for(var e=Pm(t),n=[],i=0;i<e.length;i+=2){var o=parseFloat(e[i]),r=parseFloat(e[i+1]);n.push([o,r])}return n}function Am(t,e,n,i,o){var r=e,a=r.__inheritedStyle=r.__inheritedStyle||{},s={};if(1===t.nodeType){var l=t;if(l=l.getAttribute("transform")){l=l.replace(/,/g," ");var h=[],u=null;l.replace(Lm,function(t,e,n){return h.push(e,n),""});for(var c=h.length-1;0<c;c-=2){var p=h[c],d=void 0;switch(u=u||ke(),h[c-1]){case"translate":d=Pm(p),Oe(u,u,[parseFloat(d[0]),parseFloat(d[1]||"0")]);break;case"scale":d=Pm(p),Ee(u,u,[parseFloat(d[0]),parseFloat(d[1]||d[0])]);break;case"rotate":d=Pm(p),Re(u,u,-parseFloat(d[0])/180*Math.PI);break;case"skew":d=Pm(p),console.warn("Skew transform is not supported yet");break;case"matrix":d=Pm(p),u[0]=parseFloat(d[0]),u[1]=parseFloat(d[1]),u[2]=parseFloat(d[2]),u[3]=parseFloat(d[3]),u[4]=parseFloat(d[4]),u[5]=parseFloat(d[5])}}e.setLocalTransform(u)}if(Rm(t,a,s),!i){for(var f=t,g=a,y=s,m=0;m<mm.length;m++){var v=mm[m];null!=(_=f.getAttribute(v))&&(g[ym[v]]=_)}for(m=0;m<_m.length;m++){var _,v=_m[m];null!=(_=f.getAttribute(v))&&(y[vm[v]]=_)}}}r.style=r.style||{},null!=a.fill&&(r.style.fill=km(r,"fill",a.fill,n)),null!=a.stroke&&(r.style.stroke=km(r,"stroke",a.stroke,n)),I(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(t){null!=a[t]&&(r.style[t]=parseFloat(a[t]))}),I(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(t){null!=a[t]&&(r.style[t]=a[t])}),o&&(r.__selfStyle=s),a.lineDash&&(r.style.lineDash=q(Pm(a.lineDash),function(t){return parseFloat(t)})),"hidden"!==a.visibility&&"collapse"!==a.visibility||(r.invisible=!0),"none"===a.display&&(r.ignore=!0),r.z=-1e4,r.z2=-1e3}var Im=/^url\(\s*#(.*?)\)/;function km(t,e,n,i){var o=n&&n.match(Im);if(!o)return n="none"===n?null:n;n=bt(o[1]),i.push([t,e,n])}var Dm=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Pm(t){return t.match(Dm)||[]}var Lm=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g;var Om=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Rm(t,e,n){var i,o=t.getAttribute("style");if(o)for(Om.lastIndex=0;null!=(i=Om.exec(o));){var r=i[1],a=O(ym,r)?ym[r]:null,a=(a&&(e[a]=i[2]),O(vm,r)?vm[r]:null);a&&(n[a]=i[2])}}function Em(t,e){var n=e.width/t.width,i=e.height/t.height,n=Math.min(n,i);return{scale:n,x:-(t.x+t.width/2)*n+(e.x+e.width/2),y:-(t.y+t.height/2)*n+(e.y+e.height/2)}}var Bm=1e-8;function zm(t,e){return Math.abs(t-e)<Bm}function Nm(t,e,n){var i=0,o=t[0];if(o){for(var r=1;r<t.length;r++){var a=t[r];i+=za(o[0],o[1],a[0],a[1],e,n),o=a}var s=t[0];return zm(o[0],s[0])&&zm(o[1],s[1])||(i+=za(o[0],o[1],s[0],s[1],e,n)),0!==i}}var Fm=[],Oy=(Vm.prototype.getCenter=function(){},Vm);function Vm(t){this.name=t}h(Gm,Hm=Oy),Gm.prototype.getBoundingRect=function(){var t=this._rect;if(t)return t;for(var t=Number.MAX_VALUE,e=[t,t],n=[-t,-t],i=[],o=[],r=this.geometries,a=0;a<r.length;a++)if("polygon"===r[a].type){var s=r[a].exterior,l=(y=g=f=d=p=c=u=h=l=void 0,s),h=i,u=o;if(0!==l.length){for(var c=l[0],p=c[0],d=c[0],f=c[1],g=c[1],y=1;y<l.length;y++)c=l[y],p=na(p,c[0]),d=ia(d,c[0]),f=na(f,c[1]),g=ia(g,c[1]);h[0]=p,h[1]=f,u[0]=d,u[1]=g}Xt(e,e,i),Yt(n,n,o)}return 0===a&&(e[0]=e[1]=n[0]=n[1]=0),this._rect=new X(e[0],e[1],n[0]-e[0],n[1]-e[1])},Gm.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(e.contain(t[0],t[1]))t:for(var i=0,o=n.length;i<o;i++)if("polygon"===n[i].type){var r=n[i].exterior,a=n[i].interiors;if(Nm(r,t[0],t[1])){for(var s=0;s<(a?a.length:0);s++)if(Nm(a[s],t[0],t[1]))continue t;return!0}}return!1},Gm.prototype.transformTo=function(t,e,n,i){for(var o=this.getBoundingRect(),r=o.width/o.height,r=(n?i=i||n/r:n=r*i,new X(t,e,n,i)),a=o.calculateTransform(r),s=this.geometries,l=0;l<s.length;l++)if("polygon"===s[l].type){for(var h=s[l].exterior,u=s[l].interiors,c=0;c<h.length;c++)Ut(h[c],h[c],a);for(var p=0;p<(u?u.length:0);p++)for(c=0;c<u[p].length;c++)Ut(u[p][c],u[p][c],a)}(o=this._rect).copy(r),this._center=[o.x+o.width/2,o.y+o.height/2]},Gm.prototype.cloneShallow=function(t){t=new Gm(t=null==t?this.name:t,this.geometries,this._center);return t._rect=this._rect,t.transformTo=null,t},Gm.prototype.getCenter=function(){return this._center},Gm.prototype.setCenter=function(t){this._center=t};var Hm,Wm=Gm;function Gm(t,e,n){t=Hm.call(this,t)||this;return t.type="geoJSON",t.geometries=e,n=n?[n[0],n[1]]:[(e=t.getBoundingRect()).x+e.width/2,e.y+e.height/2],t._center=n,t}h(Ym,Um=Oy),Ym.prototype.getCenter=function(){return this._center||(this._center=this._calculateCenter())},Ym.prototype._calculateCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),e=[e.x+e.width/2,e.y+e.height/2],n=De(Fm),i=t;i&&!i.isGeoSVGGraphicRoot;)Le(n,i.getLocalTransform(),n),i=i.parent;return Be(n,n),Ut(e,e,n),e};var Um,Xm=Ym;function Ym(t,e){t=Um.call(this,t)||this;return t.type="geoSVG",t._elOnlyForCalculate=e,t}var Zm=P(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),qm=(jm.prototype.load=function(){var t,e,n,i;return this._firstGraphic||(e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone(),e=e.named,n=[],i=P(),I(e,function(t){var e;null==t.namedFrom&&(e=new Xm(t.name,t.el),n.push(e),i.set(t.name,e))}),t=(e={regions:n,regionsMap:i}).regionsMap,this._regions=e.regions,this._regionsMap=t),{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},jm.prototype._buildGraphic=function(t){var e,n,i,o;try{wt(null!=(n=(e=t&&(i=t,o={ignoreViewBox:!0,ignoreRootClip:!0},(new xm).parse(i,o))||{}).root))}catch(t){throw new Error("Invalid svg format\n"+t.message)}var r,a,s,l,t=new so,h=(t.add(n),t.isGeoSVGGraphicRoot=!0,e.width),u=e.height,c=e.viewBoxRect,p=this._boundingRect,d=(p||(l=s=a=r=void 0,null!=h?(r=0,s=h):c&&(r=c.x,s=c.width),null!=u?(a=0,l=u):c&&(a=c.y,l=c.height),null!=r&&null!=a||(h=n.getBoundingRect(),null==r&&(r=h.x,s=h.width),null==a&&(a=h.y,l=h.height)),p=this._boundingRect=new X(r,a,s,l)),c&&(u=Em(c,p),n.scaleX=n.scaleY=u.scale,n.x=u.x,n.y=u.y),t.setClipPath(new ps({shape:p.plain()})),[]);return I(e.named,function(t){null!=Zm.get(t.svgNodeTagLower)&&(d.push(t),(t=t.el).silent=!1,t.isGroup)&&t.traverse(function(t){t.silent=!1})}),{root:t,boundingRect:p,named:d}},jm.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n)),n},jm.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},jm);function jm(t,e){this.type="geoSVG",this._usedGraphicMap=P(),this._freedGraphics=[],this._mapName=t,this._parsedXML=gm(e)}function Km(t,e,n){for(var i=[],o=e[0],r=e[1],a=0;a<t.length;a+=2){var s=(s=t.charCodeAt(a)-64)>>1^-(1&s),l=(l=t.charCodeAt(a+1)-64)>>1^-(1&l);i.push([(o=s+=o)/n,(r=l+=r)/n])}return i}function $m(t,o){return q(rt((t=function(t){if(t.UTF8Encoding){for(var e=t.UTF8Scale,n=(null==e&&(e=1024),t.features),i=0;i<n.length;i++){var o=n[i].geometry;if("Polygon"===o.type)for(var r=o.coordinates,a=0;a<r.length;a++)r[a]=Km(r[a],o.encodeOffsets[a],e);else if("MultiPolygon"===o.type)for(r=o.coordinates,a=0;a<r.length;a++)for(var s=r[a],l=0;l<s.length;l++)s[l]=Km(s[l],o.encodeOffsets[a][l],e)}t.UTF8Encoding=!1}return t}(t)).features,function(t){return t.geometry&&t.properties&&0<t.geometry.coordinates.length}),function(t){var e,n=t.properties,t=t.geometry,i=[],t=("Polygon"===t.type&&(e=t.coordinates,i.push({type:"polygon",exterior:e[0],interiors:e.slice(1)})),"MultiPolygon"===t.type&&I(e=t.coordinates,function(t){t[0]&&i.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})}),new Wm(n[o||"name"],i,n.cp));return t.properties=n,t})}for(var Jm=[126,25],Qm=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],t0=0;t0<Qm.length;t0++)for(var e0=0;e0<Qm[t0].length;e0++)Qm[t0][e0][0]/=10.5,Qm[t0][e0][1]/=-14,Qm[t0][e0][0]+=Jm[0],Qm[t0][e0][1]+=Jm[1];var n0={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};var i0={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};var o0=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];a0.prototype.load=function(n,t){var e,i=this._parsedMap.get(t=t||"name"),o=(i||(e=this._parseToRegions(t),i=this._parsedMap.set(t,{regions:e,boundingRect:function(t){for(var e,n=0;n<t.length;n++){var i=t[n].getBoundingRect();(e=e||i.clone()).union(i)}return e}(e)})),P()),r=[];return I(i.regions,function(t){var e=t.name;n&&n.hasOwnProperty(e)&&(t=t.cloneShallow(e=n[e])),r.push(t),o.set(e,t)}),{regions:r,boundingRect:i.boundingRect||new X(0,0,0,0),regionsMap:o}},a0.prototype._parseToRegions=function(t){var e,r=this._mapName,n=this._geoJSON;try{e=n?$m(n,t):[]}catch(t){throw new Error("Invalid geoJson format\n"+t.message)}return n=e,"china"===r&&n.push(new Wm("南海诸岛",q(Qm,function(t){return{type:"polygon",exterior:t}}),Jm)),I(e,function(t){var e,n,i=t.name,o=(e=t,"china"===(o=r)&&(o=n0[e.name])&&((n=e.getCenter())[0]+=o[0]/10.5,n[1]+=-o[1]/14,e.setCenter(n)),o=t,"world"===(e=r)&&(e=i0[o.name])&&(e=[e[0],e[1]],o.setCenter(e)),n=t,"china"===r&&"台湾"===n.name&&n.geometries.push({type:"polygon",exterior:o0[0]}),this._specialAreas&&this._specialAreas[i]);o&&t.transformTo(o.left,o.top,o.width,o.height)},this),e},a0.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}};var r0=a0;function a0(t,e,n){this.type="geoJSON",this._parsedMap=P(),this._mapName=t,this._specialAreas=n,this._geoJSON=C(t=e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}var s0=P(),l0=function(t,e,n){var i;e=e.svg?new qm(t,e.svg):((i=e.geoJson||e.geoJSON)&&!e.features?n=e.specialAreas:i=e,new r0(t,i,n)),s0.set(t,e)},h0=function(t){t=s0.get(t);return t&&"geoJSON"===t.type&&t.getMapForUser()},u0=wt,c0=I,p0=st,d0=D,f0=A,g0="undefined"!=typeof window,Ry={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},y0="__flagInMainProcess",m0="__optionUpdated",v0="__needsUpdateStatus",_0=/^[a-zA-Z0-9_]+$/,x0="__connectUpdateStatus";function w0(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!this.isDisposed())return S0(this,n,t);this.id}}function b0(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return S0(this,n,t)}}function S0(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),$t.prototype[e].apply(t,n)}h(C0,M0=$t);var M0,T0=C0;function C0(){return null!==M0&&M0.apply(this,arguments)||this}var A0,I0,k0,D0,P0,L0,O0,R0,E0,B0,z0,N0,F0,V0,H0,W0,G0,U0,X0,Y0,Z0,q0,Ey=T0.prototype,j0=(Ey.on=b0("on"),Ey.off=b0("off"),h(l,q0=$t),l.prototype._onframe=function(){if(!this._disposed){Z0(this);var t=this._scheduler;if(this[m0]){var e=this[m0].silent;this[y0]=!0,A0(this),D0.update.call(this),this._zr.flush(),this[y0]=!1,this[m0]=!1,R0.call(this,e),E0.call(this,e)}else if(t.unfinished){var n=1,i=this._model,o=this._api;t.unfinished=!1;do{var r=+new Date}while(t.performSeriesTasks(i),t.performDataProcessorTasks(i),L0(this,i),t.performVisualTasks(i),H0(this,this._model,o,"remain"),0<(n-=+new Date-r)&&t.unfinished);t.unfinished||this._zr.flush()}}},l.prototype.getDom=function(){return this._dom},l.prototype.getId=function(){return this.id},l.prototype.getZr=function(){return this._zr},l.prototype.setOption=function(t,e,n){var i,o,r,a,s;this._disposed?this.id:(d0(e)&&(n=e.lazyUpdate,i=e.silent,o=e.replaceMerge,r=e.transition,e=e.notMerge),this[y0]=!0,this._model&&!e||(e=new od(this._api),a=this._theme,(s=this._model=new qp).scheduler=this._scheduler,s.init(null,null,null,a,this._locale,e)),this._model.setOption(t,{replaceMerge:o},ov),X0(this,r),n?(this[m0]={silent:i},this[y0]=!1,this.getZr().wakeUp()):(A0(this),D0.update.call(this),this._zr.flush(),this[m0]=!1,this[y0]=!1,R0.call(this,i),E0.call(this,i)))},l.prototype.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},l.prototype.getModel=function(){return this._model},l.prototype.getOption=function(){return this._model&&this._model.getOption()},l.prototype.getWidth=function(){return this._zr.getWidth()},l.prototype.getHeight=function(){return this._zr.getHeight()},l.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||g0&&window.devicePixelRatio||1},l.prototype.getRenderedCanvas=function(t){if(b.canvasSupported)return(t=T({},t||{})).pixelRatio=t.pixelRatio||this.getDevicePixelRatio(),t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor"),this._zr.painter.getRenderedCanvas(t)},l.prototype.getSvgDataURL=function(){var t;if(b.svgSupported)return I((t=this._zr).storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},l.prototype.getDataURL=function(t){var e,n,i,o;if(!this._disposed)return o=(t=t||{}).excludeComponents,e=this._model,n=[],i=this,c0(o,function(t){e.eachComponent({mainType:t},function(t){t=i._componentsMap[t.__viewId];t.group.ignore||(n.push(t),t.group.ignore=!0)})}),o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png")),c0(n,function(t){t.group.ignore=!1}),o;this.id},l.prototype.getConnectedDataURL=function(i){var o,r,a,s,l,h,u,c,p,e,t,n,d,f,g;if(this._disposed)this.id;else if(b.canvasSupported)return o="svg"===i.type,r=this.group,a=Math.min,s=Math.max,cv[r]?(h=l=1/0,c=u=-1/0,p=[],e=i&&i.pixelRatio||this.getDevicePixelRatio(),I(uv,function(t,e){var n;t.group===r&&(n=o?t.getZr().painter.getSvgDom().innerHTML:t.getRenderedCanvas(M(i)),t=t.getDom().getBoundingClientRect(),l=a(t.left,l),h=a(t.top,h),u=s(t.right,u),c=s(t.bottom,c),p.push({dom:n,left:t.left,top:t.top}))}),t=(u*=e)-(l*=e),n=(c*=e)-(h*=e),d=tt(),(f=fo(d,{renderer:o?"svg":"canvas"})).resize({width:t,height:n}),o?(g="",c0(p,function(t){var e=t.left-l,n=t.top-h;g+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),f.painter.getSvgRoot().innerHTML=g,i.connectedBackgroundColor&&f.painter.setBackgroundColor(i.connectedBackgroundColor),f.refreshImmediately(),f.painter.toDataURL()):(i.connectedBackgroundColor&&f.add(new ps({shape:{x:0,y:0,width:t,height:n},style:{fill:i.connectedBackgroundColor}})),c0(p,function(t){t=new is({style:{x:t.left*e-l,y:t.top*e-h,image:t.dom}});f.add(t)}),f.refreshImmediately(),d.toDataURL("image/"+(i&&i.type||"png")))):this.getDataURL(i)},l.prototype.convertToPixel=function(t,e){return P0(this,"convertToPixel",t,e)},l.prototype.convertFromPixel=function(t,e){return P0(this,"convertFromPixel",t,e)},l.prototype.containPixel=function(t,i){var o;if(!this._disposed)return I(Zo(this._model,t),function(t,n){0<=n.indexOf("Models")&&I(t,function(t){var e=t.coordinateSystem;e&&e.containPoint?o=o||!!e.containPoint(i):"seriesModels"===n&&(e=this._chartsMap[t.__viewId])&&e.containPoint&&(o=o||e.containPoint(i,t))},this)},this),!!o;this.id},l.prototype.getVisual=function(t,e){var t=Zo(this._model,t,{defaultMainType:"series"}),n=t.seriesModel.getData(),t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;if(null!=t){var i=n,o=t,r=e;switch(r){case"color":return i.getItemVisual(o,"style")[i.getVisual("drawType")];case"opacity":return i.getItemVisual(o,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return i.getItemVisual(o,r)}}else{var a=n,s=e;switch(s){case"color":return a.getVisual("style")[a.getVisual("drawType")];case"opacity":return a.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return a.getVisual(s)}}},l.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},l.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},l.prototype._initEvents=function(){var t,n,i,s=this;c0(tv,function(a){function t(t){var n,e,i,o=s.getModel(),r=t.target;"globalout"===a?n={}:r&&Iy(r,function(t){var e,t=Cs(t);return t&&null!=t.dataIndex?(e=t.dataModel||o.getSeriesByIndex(t.seriesIndex),n=e&&e.getDataParams(t.dataIndex,t.dataType)||{},1):t.eventData&&(n=T({},t.eventData),1)},!0),n&&(e=n.componentType,i=n.componentIndex,"markLine"!==e&&"markPoint"!==e&&"markArea"!==e||(e="series",i=n.seriesIndex),i=(e=e&&null!=i&&o.getComponent(e,i))&&s["series"===e.mainType?"_chartsMap":"_componentsMap"][e.__viewId],n.event=t,n.type=a,s._$eventProcessor.eventInfo={targetEl:r,packedEvent:n,model:e,view:i},s.trigger(a,n))}t.zrEventfulCallAtLast=!0,s._zr.on(a,t,s)}),c0(nv,function(t,e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),c0(["selectchanged"],function(e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),t=this._messageCenter,i=(n=this)._api,t.on("selectchanged",function(t){var e=i.getModel();t.isFromClick?(Ay("map","selectchanged",n,e,t),Ay("pie","selectchanged",n,e,t)):"select"===t.fromAction?(Ay("map","selected",n,e,t),Ay("pie","selected",n,e,t)):"unselect"===t.fromAction&&(Ay("map","unselected",n,e,t),Ay("pie","unselected",n,e,t))})},l.prototype.isDisposed=function(){return this._disposed},l.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},l.prototype.dispose=function(){var e,n;this._disposed?this.id:(this._disposed=!0,Jo(this.getDom(),fv,""),e=this._api,n=this._model,c0(this._componentsViews,function(t){t.dispose(n,e)}),c0(this._chartsViews,function(t){t.dispose(n,e)}),this._zr.dispose(),delete uv[this.id])},l.prototype.resize=function(t){var e,n;this._disposed?this.id:(this._zr.resize(t),e=this._model,this._loadingFX&&this._loadingFX.resize(),e&&(e=e.resetOption("media"),n=t&&t.silent,this[y0]=!0,e&&A0(this),D0.update.call(this,{type:"resize",animation:T({duration:0},t&&t.animation)}),this[y0]=!1,R0.call(this,n),E0.call(this,n)))},l.prototype.showLoading=function(t,e){this._disposed?this.id:(d0(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),hv[t]&&(t=hv[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},l.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},l.prototype.makeActionFromEvent=function(t){var e=T({},t);return e.type=nv[t.type],e},l.prototype.dispatchAction=function(t,e){var n;this._disposed?this.id:(d0(e)||(e={silent:!!e}),ev[t.type]&&this._model&&(this[y0]?this._pendingActions.push(t):(n=e.silent,O0.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&b.browser.weChat&&this._throttledZrFlush(),R0.call(this,n),E0.call(this,n))))},l.prototype.updateLabelLayout=function(){var t=this._labelManager;t.updateLayoutConfig(this._api),t.layout(this._api),t.processLabelsOverall()},l.prototype.appendData=function(t){var e;this._disposed?this.id:(e=t.seriesIndex,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp())},l.internalField=(A0=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),I0(t,!0),I0(t,!1),e.plan()},I0=function(t,o){for(var r=t._model,a=t._scheduler,s=o?t._componentsViews:t._chartsViews,l=o?t._componentsMap:t._chartsMap,h=t._zr,u=t._api,e=0;e<s.length;e++)s[e].__alive=!1;function n(t){var e,n=t.__requireNewView,i=(t.__requireNewView=!1,"_ec_"+t.id+"_"+t.type),n=!n&&l[i];n||(e=ir(t.type),(n=new(o?cg.getClass(e.main,e.sub):yg.getClass(e.sub))).init(r,u),l[i]=n,s.push(n),h.add(n.group)),t.__viewId=n.__id=i,n.__alive=!0,n.__model=t,n.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},o||a.prepareView(n,t,r,u)}o?r.eachComponent(function(t,e){"series"!==t&&n(e)}):r.eachSeries(n);for(e=0;e<s.length;){var i=s[e];i.__alive?e++:(o||i.renderTask.dispose(),h.remove(i.group),i.dispose(r,u),s.splice(e,1),l[i.__id]===i&&delete l[i.__id],i.__id=i.group.__ecComponentInfo=null)}},k0=function(p,e,d,f,t){var n,g,i=p._model;function y(t){t&&t.__alive&&t[e]&&t[e](t.__model,i,p._api,d)}i.setUpdatePayload(d),f?((n={})[f+"Id"]=d[f+"Id"],n[f+"Index"]=d[f+"Index"],n[f+"Name"]=d[f+"Name"],n={mainType:f,query:n},t&&(n.subType=t),null!=(t=d.excludeSeriesId)&&(g=P(),c0(Oo(t),function(t){t=Vo(t,null);null!=t&&g.set(t,!0)})),wl(d)&&ul(p._api),i&&i.eachComponent(n,function(t){if(!g||null==g.get(t.id)){if(wl(d))if(t instanceof ig){if(d.type===Es&&!d.notBlur){var e=t,n=d,i=p._api,o=e.seriesIndex,r=e.getData(n.dataType),n=(F(n=Uo(r,n))?n[0]:n)||0,a=r.getItemGraphicEl(n);if(!a)for(var s=r.count(),l=0;!a&&l<s;)a=r.getItemGraphicEl(l++);a?cl(o,(n=Cs(a)).focus,n.blurScope,i):(n=e.get(["emphasis","focus"]),e=e.get(["emphasis","blurScope"]),null!=n&&cl(o,n,e,i))}}else{o=dl(t.mainType,t.componentIndex,d.name,p._api),n=o.focusSelf,e=o.dispatchers;d.type===Es&&n&&!d.notBlur&&pl(t.mainType,t.componentIndex,p._api),e&&c0(e,function(t){(d.type===Es?ol:rl)(t)})}else xl(d)&&t instanceof ig&&(i=t,h=d,p._api,xl(h)&&(u=h.dataType,F(c=Uo(i.getData(u),h))||(c=[c]),i[h.type===Fs?"toggleSelect":h.type===zs?"select":"unselect"](c,u)),fl(t),Y0(p));y(p["series"===f?"_chartsMap":"_componentsMap"][t.__viewId])}var h,u,c},p)):c0([].concat(p._componentsViews).concat(p._chartsViews),y)},D0={prepareAndUpdate:function(t){A0(this),D0.update.call(this,t)},update:function(t){var e=this._model,n=this._api,i=this._zr,o=this._coordSysMgr,r=this._scheduler;e&&(e.setUpdatePayload(t),r.restoreData(e,t),r.performSeriesTasks(e),o.create(e,n),r.performDataProcessorTasks(e,t),L0(this,e),o.update(e,n),N0(e),r.performVisualTasks(e,t),F0(this,e,n,t),o=e.get("backgroundColor")||"transparent",r=e.get("darkMode"),b.canvasSupported?(i.setBackgroundColor(o),null!=r&&"auto"!==r&&i.setDarkMode(r)):(o=_n(t=dn(o),"rgb"),0===t[3]&&(o="transparent")),W0(e,n))},updateTransform:function(n){var i,o,r=this,a=this._model,s=this._api;a&&(a.setUpdatePayload(n),i=[],a.eachComponent(function(t,e){"series"!==t&&(t=r.getViewOfComponentModel(e))&&t.__alive&&(!t.updateTransform||(e=t.updateTransform(e,a,s,n))&&e.update)&&i.push(t)}),o=P(),a.eachSeries(function(t){var e=r._chartsMap[t.__viewId];(!e.updateTransform||(e=e.updateTransform(t,a,s,n))&&e.update)&&o.set(t.uid,1)}),N0(a),this._scheduler.performVisualTasks(a,n,{setDirty:!0,dirtyMap:o}),H0(this,a,s,n,o),W0(a,this._api))},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),yg.markUpdateMethod(t,"updateView"),N0(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),F0(this,this._model,this._api,t),W0(e,this._api))},updateVisual:function(n){var i=this,o=this._model;o&&(o.setUpdatePayload(n),o.eachSeries(function(t){t.getData().clearAllVisual()}),yg.markUpdateMethod(n,"updateVisual"),N0(o),this._scheduler.performVisualTasks(o,n,{visualType:"visual",setDirty:!0}),o.eachComponent(function(t,e){"series"!==t&&(t=i.getViewOfComponentModel(e))&&t.__alive&&t.updateVisual(e,o,i._api,n)}),o.eachSeries(function(t){i._chartsMap[t.__viewId].updateVisual(t,o,i._api,n)}),W0(o,this._api))},updateLayout:function(t){D0.update.call(this,t)}},P0=function(t,e,n,i){if(t._disposed)t.id;else for(var o=t._model,r=t._coordSysMgr.getCoordinateSystems(),a=Zo(o,n),s=0;s<r.length;s++){var l=r[s];if(l[e]&&null!=(l=l[e](o,a,i)))return l}},L0=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},O0=function(i,t){var o,r,a=this,e=this.getModel(),n=i.type,s=i.escapeConnect,l=ev[n],h=l.actionInfo,u=(h.update||"update").split(":"),c=u.pop(),p=null!=u[0]&&ir(u[0]),u=(this[y0]=!0,[i]),d=!1,f=(i.batch&&(d=!0,u=q(i.batch,function(t){return(t=N(T({},t),i)).batch=null,t})),[]),g=xl(i),y=wl(i);c0(u,function(t){var e,n;(o=(o=l.action(t,a._model,a._api))||T({},t)).type=h.event||o.type,f.push(o),y?(e=(n=qo(i)).queryOptionMap,n=n.mainTypeSpecified?e.keys()[0]:"series",k0(a,c,t,n),Y0(a)):g?(k0(a,c,t,"series"),Y0(a)):p&&k0(a,c,t,p.main,p.sub)}),"none"===c||y||g||p||(this[m0]?(A0(this),D0.update.call(this,i),this[m0]=!1):D0[c].call(this,i)),o=d?{type:h.event||n,escapeConnect:s,batch:f}:f[0],this[y0]=!1,t||((u=this._messageCenter).trigger(o.type,o),g&&(d={type:"selectchanged",escapeConnect:s,selected:(r=[],e.eachSeries(function(n){I(n.getAllData(),function(t){t.data;var t=t.type,e=n.getSelectedDataIndices();0<e.length&&(e={dataIndex:e,seriesIndex:n.seriesIndex},null!=t&&(e.dataType=t),r.push(e))})}),r),isFromClick:i.isFromClick||!1,fromAction:i.type,fromActionPayload:i},u.trigger(d.type,d)))},R0=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();O0.call(this,n,t)}},E0=function(t){t||this.trigger("updated")},B0=function(e,n){e.on("rendered",function(t){n.trigger("rendered",t),!e.animation.isFinished()||n[m0]||n._scheduler.unfinished||n._pendingActions.length||n.trigger("finished")})},z0=function(t,a){t.on("mouseover",function(t){var e,n,i,o,r=Iy(t.target,_l);r&&(r=r,e=t,t=a._api,n=Cs(r),i=(o=dl(n.componentMainType,n.componentIndex,n.componentHighDownName,t)).dispatchers,o=o.focusSelf,i?(o&&pl(n.componentMainType,n.componentIndex,t),I(i,function(t){return nl(t,e)})):(cl(n.seriesIndex,n.focus,n.blurScope,t),"self"===n.focus&&pl(n.componentMainType,n.componentIndex,t),nl(r,e)),Y0(a))}).on("mouseout",function(t){var e,n,i=Iy(t.target,_l);i&&(i=i,e=t,ul(t=a._api),(n=dl((n=Cs(i)).componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers)?I(n,function(t){return il(t,e)}):il(i,e),Y0(a))}).on("click",function(t){var e,t=Iy(t.target,function(t){return null!=Cs(t).dataIndex},!0);t&&(e=t.selected?"unselect":"select",t=Cs(t),a._api.dispatchAction({type:e,dataType:t.dataType,dataIndexInside:t.dataIndex,seriesIndex:t.seriesIndex,isFromClick:!0}))})},N0=function(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})},F0=function(t,e,n,i){V0(t,e,n,i),c0(t._chartsViews,function(t){t.__alive=!1}),H0(t,e,n,i),c0(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},V0=function(t,n,i,o,e){c0(e||t._componentsViews,function(t){var e=t.__model;J0(0,t),t.render(e,n,i,o),$0(e,t),Q0(e,t)})},H0=function(o,t,e,r,a){var n,i,s=o._scheduler,l=o._labelManager,h=(l.clearLabels(),!1);t.eachSeries(function(t){var e,n=o._chartsMap[t.__viewId],i=(n.__alive=!0,n.renderTask);s.updatePayload(i,r),J0(0,n),a&&a.get(t.uid)&&i.dirty(),i.perform(s.getPerformArgs(i))&&(h=!0),t.__transientTransitionOpt=null,n.group.silent=!!t.get("silent"),i=n,e=t.get("blendMode")||null,i.group.traverse(function(t){t.isGroup||(t.style.blend=e),t.eachPendingDisplayable&&t.eachPendingDisplayable(function(t){t.style.blend=e})}),fl(t),l.addLabelsOfSeries(n)}),s.unfinished=h||s.unfinished,l.updateLayoutConfig(e),l.layout(e),l.processLabelsOverall(),t.eachSeries(function(t){var e=o._chartsMap[t.__viewId];$0(t,e),Q0(t,e)}),e=t,t=(n=o)._zr.storage,i=0,t.traverse(function(t){t.isGroup||i++}),i>e.get("hoverLayerThreshold")&&!b.node&&!b.worker&&e.eachSeries(function(t){t.preventUsingHoverLayer||(t=n._chartsMap[t.__viewId]).__alive&&t.group.traverse(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})})},W0=function(e,n){c0(av,function(t){t(e,n)})},Y0=function(t){t[v0]=!0,t.getZr().wakeUp()},Z0=function(t){t[v0]&&(t.getZr().storage.traverse(function(t){Au(t)||K0(t)}),t[v0]=!1)},G0=function(n){return h(t,e=Jp),t.prototype.getCoordinateSystems=function(){return n._coordSysMgr.getCoordinateSystems()},t.prototype.getComponentByElement=function(t){for(;t;){var e=t.__ecComponentInfo;if(null!=e)return n._model.getComponent(e.mainType,e.index);t=t.parent}},t.prototype.enterEmphasis=function(t,e){ol(t,e),Y0(n)},t.prototype.leaveEmphasis=function(t,e){rl(t,e),Y0(n)},t.prototype.enterBlur=function(t){$s(t,Ys),Y0(n)},t.prototype.leaveBlur=function(t){al(t),Y0(n)},t.prototype.enterSelect=function(t){sl(t),Y0(n)},t.prototype.leaveSelect=function(t){ll(t),Y0(n)},t.prototype.getModel=function(){return n.getModel()},t.prototype.getViewOfComponentModel=function(t){return n.getViewOfComponentModel(t)},t.prototype.getViewOfSeriesModel=function(t){return n.getViewOfSeriesModel(t)},new t(n);function t(){return null!==e&&e.apply(this,arguments)||this}var e},U0=function(i){function o(t,e){for(var n=0;n<t.length;n++)t[n][x0]=e}c0(nv,function(t,e){i._messageCenter.on(e,function(t){var e,n;!cv[i.group]||0===i[x0]||t&&t.escapeConnect||(e=i.makeActionFromEvent(t),n=[],c0(uv,function(t){t!==i&&t.group===i.group&&n.push(t)}),o(n,0),c0(n,function(t){1!==t[x0]&&t.dispatchAction(e)}),o(n,2))})})},void(X0=function(t,e){var a=t._model;I(Oo(e),function(t){var e,n=t.from,i=t.to,o=(null==i&&f(e),{includeMainTypes:["series"],enableAll:!1,enableNone:!1}),r=n?Zo(a,n,o):null,o=Zo(a,i,o).seriesModel;null==o&&(e=""),null!=(e=r&&r.seriesModel!==o?"":e)&&f(e),o.__transientTransitionOpt={from:n?n.dimension:null,to:i.dimension,dividingMethod:t.dividingMethod}})})),l);function l(t,e,n){var i=q0.call(this,new Jg)||this,t=(i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},"string"==typeof e&&(e=lv[e]),i._dom=t,i._zr=fo(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,useDirtyRect:null!=n.useDirtyRect&&n.useDirtyRect})),n=(i._throttledZrFlush=Cg(S(t.flush,t),17),(e=M(e))&&Md(e,!0),i._theme=e,i._locale=C(e=n.locale||xc)?(n=vc[e.toUpperCase()]||{},e===gc||e===yc?M(n):p(M(n),M(vc[mc]),!1)):p(M(e),M(vc[mc]),!1),i._coordSysMgr=new ed,i._api=G0(i));function o(t,e){return t.__prio-e.__prio}return Di(sv,o),Di(iv,o),i._scheduler=new Eg(i,n,iv,sv),i._messageCenter=new T0,i._labelManager=new Ty,i._initEvents(),i.resize=S(i.resize,i),t.animation.on("frame",i._onframe,i),B0(t,i),z0(t,i),Mt(i),i}function K0(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var o=n[i];"emphasis"!==o&&"blur"!==o&&"select"!==o&&e.push(o)}t.selected&&t.states.select&&e.push("select"),t.hoverState===Ls&&t.states.emphasis?e.push("emphasis"):t.hoverState===Ps&&t.states.blur&&e.push("blur"),t.useStates(e)}function $0(t,e){t.preventAutoZ||!function t(e,n,i,o){var r=e.getTextContent();var a=e.getTextGuideLine();var s=e.isGroup;if(s)for(var l=e.childrenRef(),h=0;h<l.length;h++)o=Math.max(t(l[h],n,i,o),o);else e.z=n,e.zlevel=i,o=Math.max(e.z2,o);r&&(r.z=n,r.zlevel=i,isFinite(o))&&(r.z2=o+2);a&&(s=e.textGuideLineConfig,a.z=n,a.zlevel=i,isFinite(o))&&(a.z2=o+(s&&s.showAbove?1:-1));return o}(e.group,t.get("z")||0,t.get("zlevel")||0,-1/0)}function J0(t,e){e.group.traverse(function(t){var e,n;Au(t)||(e=t.getTextContent(),n=t.getTextGuideLine(),t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null))})}function Q0(t,e){var n=t.getModel("stateAnimation"),o=t.isAnimationEnabled(),t=n.get("duration"),r=0<t?{duration:t,delay:n.get("delay"),easing:n.get("easing")}:null;e.group.traverse(function(t){var e,n,i;t.states&&t.states.emphasis&&(Au(t)||(t instanceof j&&((i=ks(n=t)).normalFill=n.style.fill,i.normalStroke=n.style.stroke,n=n.states.select||{},i.selectFill=n.style&&n.style.fill||null,i.selectStroke=n.style&&n.style.stroke||null),t.__dirty&&(i=t.prevStates)&&t.useStates(i),o&&(t.stateTransition=r,n=t.getTextContent(),e=t.getTextGuideLine(),n&&(n.stateTransition=r),e)&&(e.stateTransition=r),t.__dirty&&K0(t)))})}var Ly=j0.prototype,tv=(Ly.on=w0("on"),Ly.off=w0("off"),Ly.one=function(i,o,t){var r=this;this.on.call(this,i,function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];o&&o.apply&&o.apply(this,e),r.off(i,t)},t)},["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"]);var ev={},nv={},iv=[],ov=[],rv=[],av=[],sv=[],lv={},hv={},uv={},cv={},pv=+new Date,dv=+new Date,fv="_echarts_instance_";function gv(t){cv[t]=!1}Oy=gv;function yv(t){return uv[e=fv,(t=t).getAttribute?t.getAttribute(e):t[e]];var e}function mv(t,e){lv[t]=e}function vv(t){f0(ov,t)<0&&ov.push(t)}function _v(t,e){Av(iv,t,e,2e3)}function xv(t){f0(rv,t)<0&&t&&rv.push(t)}function wv(t){f0(av,t)<0&&t&&av.push(t)}function bv(t,e,n){"function"==typeof e&&(n=e,e="");var i=d0(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,nv[e]||(u0(_0.test(i)&&_0.test(e)),ev[i]||(ev[i]={action:n,actionInfo:t}),nv[e]=i)}function Sv(t,e){ed.register(t,e)}function Mv(t,e){Av(sv,t,e,1e3,"layout")}function Tv(t,e){Av(sv,t,e,3e3,"visual")}var Cv=[];function Av(t,e,n,i,o){(p0(e)||d0(e))&&(n=e,e=i),0<=f0(Cv,n)||(Cv.push(n),(i=Eg.wrapStageHandler(n,o)).__prio=e,i.__raw=n,t.push(i))}function Iv(t,e){hv[t]=e}function kv(t,e,n){l0(t,e,n)}function Dv(t){var e=(t=M(t)).type,n=(e||f(""),e.split(":")),i=(2!==n.length&&f(""),!1);"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,Pf.set(e,t)}Tv(2e3,Ac),Tv(4500,ic),Tv(4500,pr),Tv(2e3,rc),Tv(4500,Xh),Tv(7e3,function(e,i){e.eachRawSeries(function(t){var n;!e.isSeriesFiltered(t)&&((n=t.getData()).hasItemVisual()&&n.each(function(t){var e=n.getItemVisual(t,"decal");e&&(n.ensureUniqueItemVisual(t,"style").decal=dm(e,i))}),t=n.getVisual("decal"))&&(n.getVisual("style").decal=dm(t,i))})}),vv(Md),_v(900,function(t){var i=P();t.eachSeries(function(t){var e,n=t.get("stack");n&&(n=i.get(n)||i.set(n,[]),(t={stackResultDimension:(e=t.getData()).getCalculationInfo("stackResultDimension"),stackedOverDimension:e.getCalculationInfo("stackedOverDimension"),stackedDimension:e.getCalculationInfo("stackedDimension"),stackedByDimension:e.getCalculationInfo("stackedByDimension"),isStackedByIndex:e.getCalculationInfo("isStackedByIndex"),data:e,seriesModel:t}).stackedDimension)&&(t.isStackedByIndex||t.stackedByDimension)&&(n.length&&e.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(t))}),i.each(Td)}),Iv("default",function(i,o){N(o=o||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r,t=new so,a=new ps({style:{fill:o.maskColor},zlevel:o.zlevel,z:1e4}),s=(t.add(a),new ms({style:{text:o.text,fill:o.textColor,fontSize:o.fontSize,fontWeight:o.fontWeight,fontStyle:o.fontStyle,fontFamily:o.fontFamily},zlevel:o.zlevel,z:10001})),l=new ps({style:{fill:"none"},textContent:s,textConfig:{position:"right",distance:10},zlevel:o.zlevel,z:10001});return t.add(l),o.showSpinner&&((r=new Vh({shape:{startAngle:-Rg/2,endAngle:-Rg/2+.1,r:o.spinnerRadius},style:{stroke:o.color,lineCap:"round",lineWidth:o.lineWidth},zlevel:o.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Rg/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Rg/2}).delay(300).start("circularInOut"),t.add(r)),t.resize=function(){var t=s.getBoundingRect().width,e=o.showSpinner?o.spinnerRadius:0,t=(i.getWidth()-2*e-(o.showSpinner&&t?10:0)-t)/2-(o.showSpinner&&t?0:5+t/2)+(o.showSpinner?0:t/2)+(t?0:e),n=i.getHeight()/2;o.showSpinner&&r.setShape({cx:t,cy:n}),l.setShape({x:t-e,y:n-e,width:2*e,height:2*e}),a.setShape({x:0,y:0,width:i.getWidth(),height:i.getHeight()})},t.resize(),t}),bv({type:Es,event:Es,update:Es},kt),bv({type:Bs,event:Bs,update:Bs},kt),bv({type:zs,event:zs,update:zs},kt),bv({type:Ns,event:Ns,update:Ns},kt),bv({type:Fs,event:Fs,update:Fs},kt),mv("light",sc),mv("dark",n);function Pv(t){return null==t?0:t.length||1}function Lv(t){return t}Rv.prototype.add=function(t){return this._add=t,this},Rv.prototype.update=function(t){return this._update=t,this},Rv.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},Rv.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},Rv.prototype.remove=function(t){return this._remove=t,this},Rv.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},Rv.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var r=0;r<t.length;r++){var a,s=i[r],l=n[s],h=Pv(l);1<h?(a=l.shift(),1===l.length&&(n[s]=l[0]),this._update&&this._update(a,r)):1===h?(n[s]=null,this._update&&this._update(l,r)):this._remove&&this._remove(r)}this._performRestAdd(o,n)},Rv.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},o=[],r=[];this._initIndexMap(t,n,o,"_oldKeyGetter"),this._initIndexMap(e,i,r,"_newKeyGetter");for(var a=0;a<o.length;a++){var s=o[a],l=n[s],h=i[s],u=Pv(l),c=Pv(h);if(1<u&&1===c)this._updateManyToOne&&this._updateManyToOne(h,l),i[s]=null;else if(1===u&&1<c)this._updateOneToMany&&this._updateOneToMany(h,l),i[s]=null;else if(1===u&&1===c)this._update&&this._update(h,l),i[s]=null;else if(1<u)for(var p=0;p<u;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(r,i)},Rv.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],o=e[i],r=Pv(o);if(1<r)for(var a=0;a<r;a++)this._add&&this._add(o[a]);else 1===r&&this._add&&this._add(o);e[i]=null}},Rv.prototype._initIndexMap=function(t,e,n,i){for(var o=this._diffModeMultiple,r=0;r<t.length;r++){var a,s,l="_ec_"+this[i](t[r],r);o||(n[r]=l),e&&(0===(s=Pv(a=e[l]))?(e[l]=r,o&&n.push(l)):1===s?e[l]=[a,r]:a.push(r))}};var Ov=Rv;function Rv(t,e,n,i,o,r){this._old=t,this._new=e,this._oldKeyGetter=n||Lv,this._newKeyGetter=i||Lv,this.context=o,this._diffModeMultiple="multiple"===r}function Ev(r){var t={},a=t.encode={},s=P(),l=[],h=[],u=t.userOutput={dimensionNames:r.dimensions.slice(),encode:{}},i=(I(r.dimensions,function(t){var e,n,i=r.getDimensionInfo(t),o=i.coordDim;o&&(e=i.coordDimIndex,Bv(a,o)[e]=t,i.isExtraCoord||(s.set(o,1),"ordinal"!==(n=i.type)&&"time"!==n&&(l[0]=t),Bv(u.encode,o)[e]=i.index),i.defaultTooltip)&&h.push(t),Mp.each(function(t,e){var n=Bv(a,e),e=i.otherDims[e];null!=e&&!1!==e&&(n[e]=i.name)})}),[]),o={},e=(s.each(function(t,e){var n=a[e];o[e]=n[0],i=i.concat(n)}),t.dataDimsOnCoord=i,t.encodeFirstDimNotExtra=o,a.label),e=(e&&e.length&&(l=e.slice()),a.tooltip);return e&&e.length?h=e.slice():h.length||(h=l.slice()),a.defaultedLabel=l,a.defaultedTooltip=h,t}function Bv(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}var zv,Nv,Fv,Vv,Hv,Wv,Gv,Uv,Xv,Yv,Zv,qv,jv,Kv,$v=function(t){this.otherDims={},null!=t&&T(this,t)},Jv=Math.floor,Qv=D,t_=q,Ey="undefined",e_={float:typeof Float64Array==Ey?Array:Float64Array,int:typeof Int32Array==Ey?Array:Int32Array,ordinal:Array,number:Array,time:Array},n_=typeof Uint32Array==Ey?Array:Uint32Array,i_=typeof Int32Array==Ey?Array:Int32Array,o_=typeof Uint16Array==Ey?Array:Uint16Array,r_=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx","_nameRepeatCount"],a_=["_extent","_approximateExtent","_rawExtent"],s_=(c.prototype.getDimension=function(t){return t="number"!=typeof t&&(isNaN(t)||this._dimensionInfos.hasOwnProperty(t))?t:this.dimensions[t]},c.prototype.getDimensionInfo=function(t){return this._dimensionInfos[this.getDimension(t)]},c.prototype.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},c.prototype.mapDimension=function(t,e){var n=this._dimensionsSummary;return null==e?n.encodeFirstDimNotExtra[t]:(n=n.encode[t])?n[e]:null},c.prototype.mapDimensionsAll=function(t){return(this._dimensionsSummary.encode[t]||[]).slice()},c.prototype.initData=function(t,e,n){var t=kd(t)||it(t)?new Fd(t,this.dimensions.length):t,i=(this._rawData=t).getSource().sourceFormat;this._storage={},this._indices=null,this._dontMakeIdFromName=null!=this._idDimIdx||i===kp||!!t.fillStorage,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},n||(this.hasItemOption=!1),this.defaultDimValueGetter=zv[i],this._dimValueGetter=n=n||this.defaultDimValueGetter,this._dimValueGetterArrayRows=zv.arrayRows,this._rawExtent={},this._initDataFromProvider(0,t.count()),t.pure&&(this.hasItemOption=!1)},c.prototype.getProvider=function(){return this._rawData},c.prototype.appendData=function(t){var e=this._rawData,n=this.count(),t=(e.appendData(t),e.count());e.persistent||(t+=n),this._initDataFromProvider(n,t,!0)},c.prototype.appendValues=function(t,e){for(var n=this._storage,i=this.dimensions,o=i.length,r=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e?e.length:0),l=0;l<o;l++){var h=i[l];r[h]||(r[h]=qv()),Vv(n,this._dimensionInfos[h],s,!0)}for(var u=t_(i,function(t){return r[t]}),c=this._storageArr=t_(i,function(t){return n[t]}),p=[],d=a;d<s;d++){for(var f=d-a,g=0;g<o;g++){var h=i[g],y=this._dimValueGetterArrayRows(t[f]||p,h,f,g),m=(c[g][d]=y,u[g]);y<m[0]&&(m[0]=y),y>m[1]&&(m[1]=y)}e&&(this._nameList[d]=e[f],this._dontMakeIdFromName||Xv(this,d))}this._rawCount=this._count=s,this._extent={},Nv(this)},c.prototype._initDataFromProvider=function(t,e,n){if(!(e<=t)){for(var i=this._rawData,o=this._storage,r=this.dimensions,a=r.length,s=this._dimensionInfos,l=this._nameList,h=this._idList,u=this._rawExtent,c=i.getSource().sourceFormat===Tp,p=0;p<a;p++){var d=r[p];u[d]||(u[d]=qv()),Vv(o,s[d],e,n)}var f=this._storageArr=t_(r,function(t){return o[t]}),g=t_(r,function(t){return u[t]});if(i.fillStorage)i.fillStorage(t,e,f,g);else for(var y=[],m=t;m<e;m++){for(var v,y=i.getItem(m,y),_=0;_<a;_++){var d=r[_],x=f[_],w=this._dimValueGetter(y,d,m,_),x=(x[m]=w,g[_]);w<x[0]&&(x[0]=w),w>x[1]&&(x[1]=w)}c&&!i.pure&&y&&(v=y.name,null==l[m]&&null!=v&&(l[m]=Vo(v,null)),v=y.id,null==h[m])&&null!=v&&(h[m]=Vo(v,null)),this._dontMakeIdFromName||Xv(this,m)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent={},Nv(this)}},c.prototype.count=function(){return this._count},c.prototype.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array)for(var i=new e(n),o=0;o<n;o++)i[o]=t[o];else i=new e(t.buffer,0,n)}else{i=new(e=Fv(this))(this.count());for(o=0;o<i.length;o++)i[o]=o}return i},c.prototype.getByDimIdx=function(t,e){return 0<=e&&e<this._count&&(t=this._storageArr[t])?t[this.getRawIndex(e)]:NaN},c.prototype.get=function(t,e){return 0<=e&&e<this._count&&(t=this._storage[t])?t[this.getRawIndex(e)]:NaN},c.prototype.getByRawIndex=function(t,e){return 0<=e&&e<this._rawCount&&(t=this._storage[t])?t[e]:NaN},c.prototype.getValues=function(t,e){var n=[];F(t)||(e=t,t=this.dimensions);for(var i=0,o=t.length;i<o;i++)n.push(this.get(t[i],e));return n},c.prototype.hasValue=function(t){for(var e=this._dimensionsSummary.dataDimsOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this.get(e[n],t)))return!1;return!0},c.prototype.getDataExtent=function(t){t=this.getDimension(t);var e=this._storage[t],n=qv();if(!e)return n;var i=this.count();if(!this._indices)return this._rawExtent[t].slice();if(o=this._extent[t])return o.slice();for(var o,r=(o=n)[0],a=o[1],s=0;s<i;s++){var l=e[this.getRawIndex(s)];l<r&&(r=l),a<l&&(a=l)}return this._extent[t]=o=[r,a]},c.prototype.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},c.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},c.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},c.prototype.setCalculationInfo=function(t,e){Qv(t)?T(this._calculationInfo,t):this._calculationInfo[t]=e},c.prototype.getSum=function(t){var e=0;if(this._storage[t])for(var n=0,i=this.count();n<i;n++){var o=this.get(t,n);isNaN(o)||(e+=o)}return e},c.prototype.getMedian=function(t){var e=[],t=(this.each(t,function(t){isNaN(t)||e.push(t)}),e.sort(function(t,e){return t-e})),n=this.count();return 0===n?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},c.prototype.rawIndexOf=function(t,e){t=(t&&this._invertedIndicesMap[t])[e];return null==t||isNaN(t)?-1:t},c.prototype.indexOfName=function(t){for(var e=0,n=this.count();e<n;e++)if(this.getName(e)===t)return e;return-1},c.prototype.indexOfRawIndex=function(t){if(!(t>=this._rawCount||t<0)){if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,o=this._count-1;i<=o;){var r=(i+o)/2|0;if(e[r]<t)i=1+r;else{if(!(e[r]>t))return r;o=r-1}}}return-1},c.prototype.indicesOfNearest=function(t,e,n){var i=this._storage[t],o=[];if(i){null==n&&(n=1/0);for(var r=1/0,a=-1,s=0,l=0,h=this.count();l<h;l++){var u=e-i[this.getRawIndex(l)],c=Math.abs(u);c<=n&&((c<r||c===r&&0<=u&&a<0)&&(r=c,a=u,s=0),u===a)&&(o[s++]=l)}o.length=s}return o},c.prototype.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],n=0;n<this.dimensions.length;n++){var i=this.dimensions[n];e.push(this.get(i,t))}return e},c.prototype.getName=function(t){var t=this.getRawIndex(t),e=this._nameList[t];return e=null==(e=null==e&&null!=this._nameDimIdx?Uv(this,this._nameDimIdx,this._nameOrdinalMeta,t):e)?"":e},c.prototype.getId=function(t){return Gv(this,this.getRawIndex(t))},c.prototype.each=function(t,e,n,i){var o=this;if(this._count){"function"==typeof t&&(i=n,n=e,e=t,t=[]);for(var r=n||i||this,n=t_(Yv(t),this.getDimension,this),a=n.length,s=t_(n,function(t){return o._dimensionInfos[t].index}),l=this._storageArr,h=0,u=this.count();h<u;h++){var c=this.getRawIndex(h);switch(a){case 0:e.call(r,h);break;case 1:e.call(r,l[s[0]][c],h);break;case 2:e.call(r,l[s[0]][c],l[s[1]][c],h);break;default:for(var p=0,d=[];p<a;p++)d[p]=l[s[p]][c];d[p]=h,e.apply(r,d)}}}},c.prototype.filterSelf=function(t,e,n,i){var o=this;if(this._count){"function"==typeof t&&(i=n,n=e,e=t,t=[]);for(var r=n||i||this,n=t_(Yv(t),this.getDimension,this),a=this.count(),s=new(Fv(this))(a),l=[],h=n.length,u=0,c=t_(n,function(t){return o._dimensionInfos[t].index}),p=c[0],d=this._storageArr,f=0;f<a;f++){var g=void 0,y=this.getRawIndex(f);if(0===h)g=e.call(r,f);else if(1===h)var m=d[p][y],g=e.call(r,m,f);else{for(var v=0;v<h;v++)l[v]=d[c[v]][y];l[v]=f,g=e.apply(r,l)}g&&(s[u++]=y)}return u<a&&(this._indices=s),this._count=u,this._extent={},this.getRawIndex=this._indices?Wv:Hv,this}},c.prototype.selectRange=function(t){var e=this,n=this._count;if(n){var i,o=[];for(i in t)t.hasOwnProperty(i)&&o.push(i);var r=o.length;if(r){var a=this.count(),s=new(Fv(this))(a),l=0,h=o[0],u=t_(o,function(t){return e._dimensionInfos[t].index}),c=t[h][0],p=t[h][1],d=this._storageArr,h=!1;if(!this._indices){var f=0;if(1===r){for(var g=d[u[0]],y=0;y<n;y++)(c<=(x=g[y])&&x<=p||isNaN(x))&&(s[l++]=f),f++;h=!0}else if(2===r){for(var g=d[u[0]],m=d[u[1]],v=t[o[1]][0],_=t[o[1]][1],y=0;y<n;y++){var x=g[y],w=m[y];(c<=x&&x<=p||isNaN(x))&&(v<=w&&w<=_||isNaN(w))&&(s[l++]=f),f++}h=!0}}if(!h)if(1===r)for(y=0;y<a;y++){var b=this.getRawIndex(y);(c<=(x=d[u[0]][b])&&x<=p||isNaN(x))&&(s[l++]=b)}else for(y=0;y<a;y++){for(var S=!0,b=this.getRawIndex(y),M=0;M<r;M++){var T=o[M];((x=d[u[M]][b])<t[T][0]||x>t[T][1])&&(S=!1)}S&&(s[l++]=this.getRawIndex(y))}return l<a&&(this._indices=s),this._count=l,this._extent={},this.getRawIndex=this._indices?Wv:Hv,this}}},c.prototype.mapArray=function(t,e,n,i){"function"==typeof t&&(i=n,n=e,e=t,t=[]);var o=[];return this.each(t,function(){o.push(e&&e.apply(this,arguments))},n=n||i||this),o},c.prototype.map=function(t,e,n,i){for(var o=n||i||this,r=t_(Yv(t),this.getDimension,this),n=Zv(this,r),a=n._storage,s=(n._indices=this._indices,n.getRawIndex=n._indices?Wv:Hv,[]),l=r.length,h=this.count(),u=[],c=n._rawExtent,p=0;p<h;p++){for(var d=0;d<l;d++)u[d]=this.get(r[d],p);u[l]=p;var f=e&&e.apply(o,u);if(null!=f){"object"!=typeof f&&(s[0]=f,f=s);for(var g=this.getRawIndex(p),y=0;y<f.length;y++){var m=r[y],v=f[y],_=c[m],m=a[m];m&&(m[g]=v),v<_[0]&&(_[0]=v),v>_[1]&&(_[1]=v)}}}return n},c.prototype.downSample=function(t,e,n,i){for(var o=Zv(this,[t]),r=o._storage,a=[],s=Jv(1/e),l=r[t],h=this.count(),u=o._rawExtent[t],c=new(Fv(this))(h),p=0,d=0;d<h;d+=s){h-d<s&&(a.length=s=h-d);for(var f=0;f<s;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var y=n(a),m=this.getRawIndex(Math.min(d+i(a,y)||0,h-1));(l[m]=y)<u[0]&&(u[0]=y),y>u[1]&&(u[1]=y),c[p++]=m}return o._count=p,o._indices=c,o.getRawIndex=Wv,o},c.prototype.lttbDownSample=function(t,e){var n,i=Zv(this,[]),o=i._storage[t],r=this.count(),a=new(Fv(this))(r),s=0,l=Jv(1/e),h=this.getRawIndex(0);a[s++]=h;for(var u=1;u<r-1;u+=l){for(var c=Math.min(u+l,r-1),p=Math.min(u+2*l,r),d=(p+c)/2,f=0,g=c;g<p;g++){var y=o[b=this.getRawIndex(g)];isNaN(y)||(f+=y)}f/=p-c;for(var c=u,m=Math.min(u+l,r),v=u-1,_=o[h],x=-1,w=c,g=c;g<m;g++){var b,y=o[b=this.getRawIndex(g)];isNaN(y)||x<(n=Math.abs((v-d)*(y-_)-(v-g)*(f-_)))&&(x=n,w=b)}h=a[s++]=w}return a[s++]=this.getRawIndex(r-1),i._count=s,i._indices=a,i.getRawIndex=Wv,i},c.prototype.getItemModel=function(t){var e=this.hostModel,t=this.getRawDataItem(t);return new uc(t,e,e&&e.ecModel)},c.prototype.diff=function(e){var n=this;return new Ov(e?e.getIndices():[],this.getIndices(),function(t){return Gv(e,t)},function(t){return Gv(n,t)})},c.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},c.prototype.setVisual=function(t,e){this._visual=this._visual||{},Qv(t)?T(this._visual,t):this._visual[t]=e},c.prototype.getItemVisual=function(t,e){t=this._itemVisuals[t],t=t&&t[e];return null==t?this.getVisual(e):t},c.prototype.hasItemVisual=function(){return 0<this._itemVisuals.length},c.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t],n=(i=i||(n[t]={}))[e];return null==n&&(F(n=this.getVisual(e))?n=n.slice():Qv(n)&&(n=T({},n)),i[e]=n),n},c.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Qv(e)?T(i,e):i[e]=n},c.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},c.prototype.setLayout=function(t,e){if(Qv(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},c.prototype.getLayout=function(t){return this._layout[t]},c.prototype.getItemLayout=function(t){return this._itemLayouts[t]},c.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?T(this._itemLayouts[t]||{},e):e},c.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},c.prototype.setItemGraphicEl=function(t,e){var n,i=this.hostModel;e&&((n=Cs(e)).dataIndex=t,n.dataType=this.dataType,n.seriesIndex=i&&i.seriesIndex,"group"===e.type)&&e.traverse(jv,e),this._graphicEls[t]=e},c.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},c.prototype.eachItemGraphicEl=function(n,i){I(this._graphicEls,function(t,e){t&&n&&n.call(i,t,e)})},c.prototype.cloneShallow=function(t){if((t=t||new c(t_(this.dimensions,this.getDimensionInfo,this),this.hostModel))._storage=this._storage,t._storageArr=this._storageArr,Kv(t,this),this._indices){var e=this._indices.constructor;if(e===Array){var n=this._indices.length;t._indices=new e(n);for(var i=0;i<n;i++)t._indices[i]=this._indices[i]}else t._indices=new e(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?Wv:Hv,t},c.prototype.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(_t(arguments)))})},c.internalField=(zv={arrayRows:l_,objectRows:function(t,e,n,i){return gf(t[e],this._dimensionInfos[e])},keyedColumns:l_,original:function(t,e,n,i){var o=t&&(null==t.value?t:t.value);return this._rawData.pure||!D(t=t)||t instanceof Array||(this.hasItemOption=!0),gf(o instanceof Array?o[i]:o,this._dimensionInfos[e])},typedArray:function(t,e,n,i){return t[i]}},Nv=function(o){var r=o._invertedIndicesMap;I(r,function(t,e){var n=o._dimensionInfos[e].ordinalMeta;if(n){t=r[e]=new i_(n.categories.length);for(var i=0;i<t.length;i++)t[i]=-1;for(i=0;i<o._count;i++)t[o.get(e,i)]=i}})},Uv=function(t,e,n,i){var o,t=t._storageArr[e];return Vo(o=t&&(o=t[i],n)&&n.categories.length?n.categories[o]:o,null)},Fv=function(t){return 65535<t._rawCount?n_:o_},Vv=function(t,e,n,i){var o=e_[e.type],e=e.name;if(i){var r=t[e],a=r&&r.length;if(a!==n){for(var s=new o(n),l=0;l<a;l++)s[l]=r[l];t[e]=s}}else t[e]=new o(n)},Hv=function(t){return t},Wv=function(t){return t<this._count&&0<=t?this._indices[t]:-1},Gv=function(t,e){var n=t._idList[e];return n=null==(n=null==n&&null!=t._idDimIdx?Uv(t,t._idDimIdx,t._idOrdinalMeta,e):n)?"e\0\0"+e:n},Yv=function(t){return t=F(t)?t:null!=t?[t]:[]},Zv=function(t,e){for(var n,i,o=t.dimensions,r=new c(t_(o,t.getDimensionInfo,t),t.hostModel),a=(Kv(r,t),r._storage={}),s=t._storage,l=r._storageArr=[],h=0;h<o.length;h++){var u=o[h];s[u]&&(0<=A(e,u)?(a[u]=(n=s[u],i=void 0,(i=n.constructor)===Array?n.slice():new i(n)),r._rawExtent[u]=qv(),r._extent[u]=null):a[u]=s[u],l.push(a[u]))}return r},qv=function(){return[1/0,-1/0]},jv=function(t){var t=Cs(t),e=Cs(this);t.seriesIndex=e.seriesIndex,t.dataIndex=e.dataIndex,t.dataType=e.dataType},Kv=function(e,n){I(r_.concat(n.__wrappedMethods||[]),function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e.__wrappedMethods=n.__wrappedMethods,I(a_,function(t){e[t]=M(n[t])}),e._calculationInfo=T({},n._calculationInfo)},void(Xv=function(t,e){var n=t._nameList,i=t._idList,o=t._nameDimIdx,r=t._idDimIdx,a=n[e],s=i[e];null==a&&null!=o&&(n[e]=a=Uv(t,o,t._nameOrdinalMeta,e)),null==s&&null!=r&&(i[e]=s=Uv(t,r,t._idOrdinalMeta,e)),null==s&&null!=a&&(s=a,1<(o=(n=t._nameRepeatCount)[a]=(n[a]||0)+1)&&(s+="__ec__"+o),i[e]=s)})),c);function c(t,e){this.type="list",this._count=0,this._rawCount=0,this._storage={},this._storageArr=[],this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._rawExtent={},this._extent={},this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!0,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"],this.getRawIndex=Hv,t=t||["x","y"];for(var n={},i=[],o={},r=0;r<t.length;r++){var a=t[r],a=C(a)?new $v({name:a}):a instanceof $v?a:new $v(a),s=a.name,l=(a.type=a.type||"float",a.coordDim||(a.coordDim=s,a.coordDimIndex=0),a.otherDims=a.otherDims||{});i.push(s),(n[s]=a).index=r,a.createInvertedIndices&&(o[s]=[]),0===l.itemName&&(this._nameDimIdx=r,this._nameOrdinalMeta=a.ordinalMeta),0===l.itemId&&(this._idDimIdx=r,this._idOrdinalMeta=a.ordinalMeta)}this.dimensions=i,this._dimensionInfos=n,this.hostModel=e,this._dimensionsSummary=Ev(this),this._invertedIndicesMap=o,this.userOutput=this._dimensionsSummary.userOutput}function l_(t,e,n,i){return gf(t[i],this._dimensionInfos[e])}function h_(t,e,n){kd(e)||(e=Pd(e)),n=n||{},t=(t||[]).slice();for(var i,o,r,a=(n.dimsDef||[]).slice(),s=P(),l=P(),h=[],u=(g=e,i=t,o=n.dimCount,r=Math.max(g.dimensionsDetectedCount||1,i.length,a.length,o||0),I(i,function(t){D(t)&&(t=t.dimsDef)&&(r=Math.max(r,t.length))}),r),c=0;c<u;c++){var p=a[c],p=a[c]=T({},D(p)?p:{name:p}),d=p.name,f=h[c]=new $v;null!=d&&null==s.get(d)&&(f.name=f.displayName=d,s.set(d,c)),null!=p.type&&(f.type=p.type),null!=p.displayName&&(f.displayName=p.displayName)}var g=n.encodeDef,y=P(g=!g&&n.encodeDefaulter?n.encodeDefaulter(e,u):g),m=(y.each(function(t,n){var i,t=Oo(t).slice();1===t.length&&!C(t[0])&&t[0]<0?y.set(n,!1):(i=y.set(n,[]),I(t,function(t,e){t=C(t)?s.get(t):t;null!=t&&t<u&&(i[e]=t,v(h[t],n,e))}))}),0);function v(t,e,n){null!=Mp.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,l.set(e,!0))}I(t,function(t){C(t)?(r=t,o={}):(r=(o=t).name,t=o.ordinalMeta,o.ordinalMeta=null,(o=M(o)).ordinalMeta=t,n=o.dimsDef,i=o.otherDims,o.name=o.coordDim=o.coordDimIndex=o.dimsDef=o.otherDims=null);var n,i,o,r,e=y.get(r);if(!1!==e){if(!(e=Oo(e)).length)for(var a=0;a<(n&&n.length||1);a++){for(;m<h.length&&null!=h[m].coordDim;)m++;m<h.length&&e.push(m++)}I(e,function(t,e){t=h[t];v(N(t,o),r,e),null==t.name&&n&&(D(e=n[e])||(e={name:e}),t.name=t.displayName=e.name,t.defaultTooltip=e.defaultTooltip),i&&N(t.otherDims,i)})}});for(var _=n.generateCoord,x=null!=(w=n.generateCoordCount),w=_?w||1:0,b=_||"value",S=0;S<u;S++)null==(f=h[S]=h[S]||new $v).coordDim&&(f.coordDim=u_(b,l,x),f.coordDimIndex=0,(!_||w<=0)&&(f.isExtraCoord=!0),w--),null==f.name&&(f.name=u_(f.coordDim,s,!1)),null!=f.type||zp(e,S)!==Op.Must&&(!f.isExtraCoord||null==f.otherDims.itemName&&null==f.otherDims.seriesName)||(f.type="ordinal");return h}function u_(t,e,n){if(n||null!=e.get(t)){for(var i=0;null!=e.get(t+i);)i++;t+=i}return e.set(t,!0),t}function c_(t,e){return h_((e=e||{}).coordDimensions||[],t,{dimsDef:e.dimensionsDefine||t.dimensionsDefine,encodeDef:e.encodeDefine||t.encodeDefine,dimCount:e.dimensionsCount,encodeDefaulter:e.encodeDefaulter,generateCoord:e.generateCoord,generateCoordCount:e.generateCoordCount})}var p_=function(t){this.coordSysDims=[],this.axisMap=P(),this.categoryAxisMap=P(),this.coordSysName=t};var d_={cartesian2d:function(t,e,n,i){var o=t.getReferringComponents("xAxis",jo).models[0],t=t.getReferringComponents("yAxis",jo).models[0];e.coordSysDims=["x","y"],n.set("x",o),n.set("y",t),f_(o)&&(i.set("x",o),e.firstCategoryDimIndex=0),f_(t)&&(i.set("y",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){t=t.getReferringComponents("singleAxis",jo).models[0];e.coordSysDims=["single"],n.set("single",t),f_(t)&&(i.set("single",t),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var t=t.getReferringComponents("polar",jo).models[0],o=t.findAxisModel("radiusAxis"),t=t.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",t),f_(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),f_(t)&&(i.set("angle",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,i,o,r){var a=t.ecModel,t=a.getComponent("parallel",t.get("parallelIndex")),s=i.coordSysDims=t.dimensions.slice();I(t.parallelAxisIndex,function(t,e){var t=a.getComponent("parallelAxis",t),n=s[e];o.set(n,t),f_(t)&&(r.set(n,t),null==i.firstCategoryDimIndex)&&(i.firstCategoryDimIndex=e)})}};function f_(t){return"category"===t.get("type")}function g_(t,n,e){var i,o,r,a,s,l,h=(e=e||{}).byIndex,u=e.stackedCoordDimension,c=!(!t||!t.get("stack"));return I(n,function(t,e){C(t)&&(n[e]=t={name:t}),c&&!t.isExtraCoord&&(h||i||!t.ordinalMeta||(i=t),o||"ordinal"===t.type||"time"===t.type||u&&u!==t.coordDim||(o=t))}),!o||h||i||(h=!0),o&&(r="__\0ecstackresult",a="__\0ecstackedover",i&&(i.createInvertedIndices=!0),s=o.coordDim,e=o.type,l=0,I(n,function(t){t.coordDim===s&&l++}),n.push({name:r,coordDim:s,coordDimIndex:l,type:e,isExtraCoord:!0,isCalculationCoord:!0}),l++,n.push({name:a,coordDim:a,coordDimIndex:l,type:e,isExtraCoord:!0,isCalculationCoord:!0})),{stackedDimension:o&&o.name,stackedByDimension:i&&i.name,isStackedByIndex:h,stackedOverDimension:a,stackResultDimension:r}}function y_(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function m_(t,e){return y_(t,e)?t.getCalculationInfo("stackResultDimension"):e}function v_(t,e,i){i=i||{},kd(t)||(t=Pd(t));var o,r,n=e.get("coordinateSystem"),n=ed.get(n),a=function(t){var e=t.get("coordinateSystem"),n=new p_(e);if(e=d_[e])return e(t,n,n.axisMap,n.categoryAxisMap),n}(e),n=(s=(s=a&&a.coordSysDims?q(a.coordSysDims,function(t){var e={name:t},t=a.axisMap.get(t);return t&&(t=t.get("type"),e.type="category"===(t=t)?"ordinal":"time"===t?"time":"float"),e}):s)||n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"],i.useEncodeDefaulter),n=c_(t,{coordDimensions:s,generateCoord:i.generateCoord,encodeDefaulter:st(n)?n:n?at(Ep,s,e):null}),s=(a&&I(n,function(t,e){var n=t.coordDim,n=a.categoryAxisMap.get(n);n&&(null==o&&(o=e),t.ordinalMeta=n.getOrdinalMeta(),i.createInvertedIndices)&&(t.createInvertedIndices=!0),null!=t.otherDims.itemName&&(r=!0)}),r||null==o||(n[o].otherDims.itemName=0),g_(e,n)),n=new s_(n,e),e=(n.setCalculationInfo(s),null!=o&&function(t){if(t.sourceFormat===Tp)return null!=(t=function(t){var e=0;for(;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]))&&!F(Bo(t))}(t)?function(t,e,n,i){return i===o?n:this.defaultDimValueGetter(t,e,n,i)}:null);return n.hasItemOption=!1,n.initData(t,null,e),n}x_.prototype.getSetting=function(t){return this._setting[t]},x_.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},x_.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},x_.prototype.getExtent=function(){return this._extent.slice()},x_.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},x_.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},x_.prototype.isBlank=function(){return this._isBlank},x_.prototype.setBlank=function(t){this._isBlank=t};var __=x_;function x_(t){this._setting=t||{},this._extent=[1/0,-1/0]}hr(__);b_.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&q(e,S_);return new b_({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},b_.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},b_.prototype.parseAndCollect=function(t){var e,n,i=this._needCollect;return"string"==typeof t||i?(i&&!this._deduplication?(n=this.categories.length,this.categories[n]=t):null==(n=(e=this._getOrCreateMap()).get(t))&&(i?(n=this.categories.length,this.categories[n]=t,e.set(t,n)):n=NaN),n):t},b_.prototype._getOrCreateMap=function(){return this._map||(this._map=P(this.categories))};var w_=b_;function b_(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication}function S_(t){return D(t)&&null!=t.value?t.value:t+""}var M_=mo;function T_(t,e,n,i){var o={},r=t[1]-t[0],r=o.interval=Ao(r/e,!0),e=(null!=n&&r<n&&(r=o.interval=n),null!=i&&i<r&&(r=o.interval=i),o.intervalPrecision=C_(r)),n=o.niceTickExtent=[M_(Math.ceil(t[0]/r)*r,e),M_(Math.floor(t[1]/r)*r,e)];return i=n,r=t,isFinite(i[0])||(i[0]=r[0]),isFinite(i[1])||(i[1]=r[1]),A_(i,0,r),A_(i,1,r),i[0]>i[1]&&(i[0]=i[1]),o}function C_(t){return _o(t)+2}function A_(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function I_(t,e){return t>=e[0]&&t<=e[1]}function k_(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function D_(t,e){return t*(e[1]-e[0])+e[0]}h(O_,P_=__),O_.prototype.parse=function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},O_.prototype.contain=function(t){return I_(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},O_.prototype.normalize=function(t){return k_(t=this._getTickNumber(this.parse(t)),this._extent)},O_.prototype.scale=function(t){return t=Math.round(D_(t,this._extent)),this.getRawOrdinalNumber(t)},O_.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},O_.prototype.getMinorTicks=function(t){},O_.prototype.setSortInfo=function(t){if(null==t)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,r=this._ordinalMeta.categories.length,a=Math.min(r,e.length);o<a;++o){var s=e[o];i[n[o]=s]=o}for(var l=0;o<r;++o){for(;null!=i[l];)l++;n.push(l),i[l]=o}}},O_.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&0<=t&&t<e.length?e[t]:t},O_.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&0<=t&&t<e.length?e[t]:t},O_.prototype.getLabel=function(t){if(!this.isBlank())return t=this.getRawOrdinalNumber(t.value),null==(t=this._ordinalMeta.categories[t])?"":t+""},O_.prototype.count=function(){return this._extent[1]-this._extent[0]+1},O_.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},O_.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},O_.prototype.getOrdinalMeta=function(){return this._ordinalMeta},O_.prototype.niceTicks=function(){},O_.prototype.niceExtent=function(){},O_.type="ordinal";var P_,L_=O_;function O_(t){var t=P_.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return F(e=e||new w_({}))&&(e=new w_({categories:q(e,function(t){return D(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}__.registerClass(L_);var R_,E_=mo,B_=(h(z_,R_=__),z_.prototype.parse=function(t){return t},z_.prototype.contain=function(t){return I_(t,this._extent)},z_.prototype.normalize=function(t){return k_(t,this._extent)},z_.prototype.scale=function(t){return D_(t,this._extent)},z_.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},z_.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},z_.prototype.getInterval=function(){return this._interval},z_.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=C_(t)},z_.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,r=[];if(e){n[0]<i[0]&&r.push(t?{value:E_(i[0]-e,o)}:{value:n[0]});for(var a=i[0];a<=i[1]&&(r.push({value:a}),(a=E_(a+e,o))!==r[r.length-1].value);)if(1e4<r.length)return[];var s=r.length?r[r.length-1].value:i[1];n[1]>s&&r.push(t?{value:E_(s+e,o)}:{value:n[1]})}return r},z_.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),o=1;o<e.length;o++){for(var r=e[o],a=e[o-1],s=0,l=[],h=(r.value-a.value)/t;s<t-1;){var u=E_(a.value+(s+1)*h);u>i[0]&&u<i[1]&&l.push(u),s++}n.push(l)}return n},z_.prototype.getLabel=function(t,e){return null==t?"":(null==(e=e&&e.precision)?e=_o(t.value)||0:"auto"===e&&(e=this._intervalPrecision),jc(E_(t.value,e,!0)))},z_.prototype.niceTicks=function(t,e,n){t=t||5;var i=this._extent,o=i[1]-i[0];isFinite(o)&&(o<0&&i.reverse(),o=T_(i,t,e,n),this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent)},z_.prototype.niceExtent=function(t){var e=this._extent,n=(e[0]===e[1]&&(0!==e[0]?(n=e[0],t.fixMax||(e[1]+=n/2),e[0]-=n/2):e[1]=1),e[1]-e[0]),n=(isFinite(n)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval),this._interval);t.fixMin||(e[0]=E_(Math.floor(e[0]/n)*n)),t.fixMax||(e[1]=E_(Math.ceil(e[1]/n)*n))},z_.type="interval",z_);function z_(){var t=null!==R_&&R_.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}__.registerClass(B_);var N_="__ec_stack_";"undefined"==typeof Float32Array&&Array;function F_(t){return t.get("stack")||N_+t.seriesIndex}function V_(t){return t.dim+t.index}function H_(t){var l=function(t){var e,l={},n=(I(t,function(t){var e=t.coordinateSystem.getBaseAxis();if("time"===e.type||"value"===e.type)for(var n=t.getData(),i=e.dim+"_"+e.index,o=n.mapDimension(e.dim),r=0,a=n.count();r<a;++r){var s=n.get(o,r);l[i]?l[i].push(s):l[i]=[s]}}),{});for(e in l)if(l.hasOwnProperty(e)){var i=l[e];if(i){i.sort(function(t,e){return t-e});for(var o=null,r=1;r<i.length;++r){var a=i[r]-i[r-1];0<a&&(o=null===o?a:Math.min(o,a))}n[e]=o}}return n}(t),h=[];return I(t,function(t){var e,n=t.coordinateSystem.getBaseAxis(),i=n.getExtent(),o=(e="category"===n.type?n.getBandWidth():"value"===n.type||"time"===n.type?(e=n.dim+"_"+n.index,e=l[e],o=Math.abs(i[1]-i[0]),r=n.scale.getExtent(),r=Math.abs(r[1]-r[0]),e?o/r*e:o):(r=t.getData(),Math.abs(i[1]-i[0])/r.count()),B(t.get("barWidth"),e)),i=B(t.get("barMaxWidth"),e),r=B(t.get("barMinWidth")||1,e),a=t.get("barGap"),s=t.get("barCategoryGap");h.push({bandWidth:e,barWidth:o,barMaxWidth:i,barMinWidth:r,barGap:a,barCategoryGap:s,axisKey:V_(n),stackId:F_(t)})}),W_(h)}function W_(t){var a={},d=(I(t,function(t,e){var n=t.axisKey,i=t.bandWidth,i=a[n]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=i.stacks,n=(a[n]=i,t.stackId),r=(o[n]||i.autoWidthCount++,o[n]=o[n]||{width:0,maxWidth:0},t.barWidth),r=(r&&!o[n].width&&(o[n].width=r,r=Math.min(i.remainedWidth,r),i.remainedWidth-=r),t.barMaxWidth),r=(r&&(o[n].maxWidth=r),t.barMinWidth),o=(r&&(o[n].minWidth=r),t.barGap),n=(null!=o&&(i.gap=o),t.barCategoryGap);null!=n&&(i.categoryGap=n)}),{});return I(a,function(t,n){d[n]={};var i,e=t.stacks,o=t.bandWidth,r=t.categoryGap,a=(null==r&&(a=k(e).length,r=Math.max(35-4*a,15)+"%"),B(r,o)),s=B(t.gap,1),l=t.remainedWidth,h=t.autoWidthCount,u=(l-a)/(h+(h-1)*s),u=Math.max(u,0),c=(I(e,function(t){var e,n=t.maxWidth,i=t.minWidth;t.width?(e=t.width,n&&(e=Math.min(e,n)),i&&(e=Math.max(e,i)),t.width=e,l-=e+s*e,h--):(e=u,n&&n<e&&(e=Math.min(n,l)),(e=i&&e<i?i:e)!==u&&(t.width=e,l-=e+s*e,h--))}),u=(l-a)/(h+(h-1)*s),u=Math.max(u,0),0),p=(I(e,function(t,e){t.width||(t.width=u),c+=(i=t).width*(1+s)}),i&&(c-=i.width*s),-c/2);I(e,function(t,e){d[n][e]=d[n][e]||{bandWidth:o,offset:p,width:t.width},p+=t.width*(1+s)})}),d}function G_(t,e,n){if(t&&e)return null!=(t=t[V_(e)])&&null!=n?t[F_(n)]:t}function U_(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function X_(t){return t.pipelineContext&&t.pipelineContext.large}dg();h(q_,Y_=B_),q_.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Oc(t.value,Ic[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Lc(this._minLevelUnit))]||Ic.second,e,this.getSetting("locale"))},q_.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale"),r=null;if("string"==typeof n)r=n;else if("function"==typeof n)r=n(t.value,e,{level:t.level});else{var a=T({},Cc);if(0<t.level)for(var s=0;s<kc.length;++s)a[kc[s]]="{primary|"+a[kc[s]]+"}";var l=n?!1===n.inherit?n:N(n,a):a,h=Rc(t.value,i);if(l[h])r=l[h];else if(l.inherit){for(s=Dc.indexOf(h)-1;0<=s;--s)if(l[h]){r=l[h];break}r=r||a.none}F(r)&&(e=null==t.level?0:0<=t.level?t.level:r.length+t.level,r=r[e=Math.min(e,r.length-1)])}return Oc(new Date(t.value),r,i,o)},q_.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=[];return e&&(i.push({value:n[0],level:0}),e=this.getSetting("useUTC"),e=function(t,b,S,M){var e=Dc,n=0;function i(t,e,n){var i=[],o=!e.length;if(!function(t,e,n,i){function o(t){return Ec(c,t,i)===Ec(p,t,i)}function r(){return o("year")}function a(){return r()&&o("month")}function s(){return a()&&o("day")}function l(){return s()&&o("hour")}function h(){return l()&&o("minute")}function u(){return h()&&o("second")}var c=Mo(e),p=Mo(n);switch(t){case"year":return r();case"month":return a();case"day":return s();case"hour":return l();case"minute":return h();case"second":return u();case"millisecond":return u()&&o("millisecond")}}(Lc(t),M[0],M[1],S)){o&&(e=[{value:function(t,e,n){var i=new Date(t);switch(Lc(e)){case"year":case"month":i[Gc(n)](0);case"day":i[Uc(n)](1);case"hour":i[Xc(n)](0);case"minute":i[Yc(n)](0);case"second":i[Zc(n)](0),i[qc(n)](0)}return i.getTime()}(new Date(M[0]),t,S)},{value:M[1]}]);for(var r,a,s=0;s<e.length-1;s++){var l=e[s].value,h=e[s+1].value;if(l!==h){var u=void 0,c=void 0,p=void 0;switch(t){case"year":u=Math.max(1,Math.round(b/Tc/365)),c=Bc(S),p=S?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":a=b,u=6<(a/=30*Tc)?6:3<a?3:2<a?2:1,c=zc(S),p=Gc(S);break;case"week":case"half-week":case"day":a=b,u=16<(a/=Tc)?16:7.5<a?7:3.5<a?4:1.5<a?2:1,c=Nc(S),p=Uc(S),0;break;case"half-day":case"quarter-day":case"hour":r=b,u=12<(r/=Mc)?12:6<r?6:3.5<r?4:2<r?2:1,c=Fc(S),p=Xc(S);break;case"minute":u=K_(b,!0),c=Vc(S),p=Yc(S);break;case"second":u=K_(b,!1),c=Hc(S),p=Zc(S);break;case"millisecond":u=Ao(b,!0),c=Wc(S),p=qc(S)}w=x=_=v=m=y=g=f=d=void 0;for(var d=u,f=l,g=h,y=c,m=p,v=i,_=new Date(f),x=f,w=_[y]();x<g&&x<=M[1];)v.push({value:x}),_[m](w+=d),x=_.getTime();v.push({value:x,notAdd:!0}),"year"===t&&1<n.length&&0===s&&n.unshift({value:n[0].value-u})}}for(s=0;s<i.length;s++)n.push(i[s])}}for(var o=[],r=[],a=0,s=0,l=0;l<e.length&&n++<1e4;++l){var h=Lc(e[l]);if(function(t){return t===Lc(t)}(e[l])){i(e[l],o[o.length-1]||[],r);var u=e[l+1]?Lc(e[l+1]):null;if(h!==u){if(r.length){s=a,r.sort(function(t,e){return t.value-e.value});for(var c=[],p=0;p<r.length;++p){var d=r[p].value;0!==p&&r[p-1].value===d||(c.push(r[p]),d>=M[0]&&d<=M[1]&&a++)}h=(M[1]-M[0])/b;if(1.5*h<a&&h/1.5<s)break;if(o.push(c),h<a||t===e[l])break}r=[]}}}for(var f=rt(q(o,function(t){return rt(t,function(t){return t.value>=M[0]&&t.value<=M[1]&&!t.notAdd})}),function(t){return 0<t.length}),g=[],y=f.length-1,l=0;l<f.length;++l)for(var m=f[l],v=0;v<m.length;++v)g.push({value:m[v].value,level:y-l});g.sort(function(t,e){return t.value-e.value});for(var _=[],l=0;l<g.length;++l)0!==l&&g[l].value===g[l-1].value||_.push(g[l]);return _}(this._minLevelUnit,this._approxInterval,e,n),(i=i.concat(e)).push({value:n[1],level:0})),i},q_.prototype.niceExtent=function(t){var e,n=this._extent;n[0]===n[1]&&(n[0]-=Tc,n[1]+=Tc),n[1]===-1/0&&n[0]===1/0&&(e=new Date,n[1]=+new Date(e.getFullYear(),e.getMonth(),e.getDate()),n[0]=n[1]-Tc),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval)},q_.prototype.niceTicks=function(t,e,n){var i=this._extent,i=i[1]-i[0],i=(this._approxInterval=i/(t=t||10),null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n),j_.length),t=Math.min(function(t,e,n,i){for(;n<i;){var o=n+i>>>1;t[o][1]<e?n=1+o:i=o}return n}(j_,this._approxInterval,0,i),i-1);this._interval=j_[t][1],this._minLevelUnit=j_[Math.max(t-1,0)][0]},q_.prototype.parse=function(t){return"number"==typeof t?t:+Mo(t)},q_.prototype.contain=function(t){return I_(this.parse(t),this._extent)},q_.prototype.normalize=function(t){return k_(this.parse(t),this._extent)},q_.prototype.scale=function(t){return D_(t,this._extent)},q_.type="time";var Y_,Z_=q_;function q_(t){t=Y_.call(this,t)||this;return t.type="time",t}var j_=[["second",bc],["minute",Sc],["hour",Mc],["quarter-day",6*Mc],["half-day",12*Mc],["day",1.2*Tc],["half-week",3.5*Tc],["week",7*Tc],["month",31*Tc],["quarter",95*Tc],["half-year",ar/2],["year",ar]];function K_(t,e){return 30<(t/=e?Sc:bc)?30:20<t?20:15<t?15:10<t?10:5<t?5:2<t?2:1}__.registerClass(Z_);var $_,J_=__.prototype,Q_=B_.prototype,t1=_o,e1=mo,n1=Math.floor,i1=Math.ceil,o1=Math.pow,r1=Math.log,a1=(h(s1,$_=__),s1.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return q(Q_.getTicks.call(this,t),function(t){var t=t.value,e=mo(o1(this.base,t)),e=t===n[0]&&this._fixMin?l1(e,i[0]):e;return{value:t===n[1]&&this._fixMax?l1(e,i[1]):e}},this)},s1.prototype.setExtent=function(t,e){var n=this.base;t=r1(t)/r1(n),e=r1(e)/r1(n),Q_.setExtent.call(this,t,e)},s1.prototype.getExtent=function(){var t=this.base,e=J_.getExtent.call(this);e[0]=o1(t,e[0]),e[1]=o1(t,e[1]);t=this._originalScale.getExtent();return this._fixMin&&(e[0]=l1(e[0],t[0])),this._fixMax&&(e[1]=l1(e[1],t[1])),e},s1.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=r1(t[0])/r1(e),t[1]=r1(t[1])/r1(e),J_.unionExtent.call(this,t)},s1.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},s1.prototype.niceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n==1/0||n<=0)){var i=To(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&0<Math.abs(i);)i*=10;t=[mo(i1(e[0]/i)*i),mo(n1(e[1]/i)*i)];this._interval=i,this._niceExtent=t}},s1.prototype.niceExtent=function(t){Q_.niceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},s1.prototype.parse=function(t){return t},s1.prototype.contain=function(t){return I_(t=r1(t)/r1(this.base),this._extent)},s1.prototype.normalize=function(t){return k_(t=r1(t)/r1(this.base),this._extent)},s1.prototype.scale=function(t){return t=D_(t,this._extent),o1(this.base,t)},s1.type="log",s1);function s1(){var t=null!==$_&&$_.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new B_,t._interval=0,t}Ly=a1.prototype;function l1(t,e){return e1(t,t1(e))}Ly.getMinorTicks=Q_.getMinorTicks,Ly.getLabel=Q_.getLabel,__.registerClass(a1);u1.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===t.type,o=(this._needCrossZero=e.getNeedCrossZero&&e.getNeedCrossZero(),this._modelMinRaw=e.get("min",!0)),o=(st(o)?this._modelMinNum=f1(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=f1(t,o)),this._modelMaxRaw=e.get("max",!0));st(o)?this._modelMaxNum=f1(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=f1(t,o)),i?this._axisDataLen=e.getCategories().length:"boolean"==typeof(t=F(n=e.get("boundaryGap"))?n:[n||0,n||0])[0]||"boolean"==typeof t[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[oi(t[0],1),oi(t[1],1)]},u1.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,o=this._boundaryGapInner,r=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,h=null!=s,e=(null==a&&(a=t?i?0:NaN:e-o[0]*r),null==s&&(s=t?i?i-1:NaN:n+o[1]*r),null!=a&&isFinite(a)||(a=NaN),(s=null!=s&&isFinite(s)?s:NaN)<a&&(s=a=NaN),yt(a)||yt(s)||t&&!i),n=(this._needCrossZero&&(a=0<a&&0<s&&!l?0:a)<0&&s<0&&!h&&(s=0),this._determinedMin),o=this._determinedMax;return null!=n&&(a=n,l=!0),null!=o&&(s=o,h=!0),{min:a,max:s,minFixed:l,maxFixed:h,isBlank:e}},u1.prototype.modifyDataMinMax=function(t,e){this[p1[t]]=e},u1.prototype.setDeterminedMinMax=function(t,e){this[c1[t]]=e},u1.prototype.freeze=function(){this.frozen=!0};var h1=u1;function u1(t,e,n){this._prepareParams(t,e,n)}var c1={min:"_determinedMin",max:"_determinedMax"},p1={min:"_dataMin",max:"_dataMax"};function d1(t,e,n){var i=t.rawExtentInfo;return i||(i=new h1(t,e,n),t.rawExtentInfo=i),i}function f1(t,e){return null==e?null:yt(e)?NaN:t.parse(e)}function g1(t,e){var n,i,o,r,a,s,l,h=t.type,u=d1(t,e,t.getExtent()).calculate(),t=(t.setBlank(u.isBlank),u.min),c=u.max,p=e.ecModel;return p&&"time"===h&&(h="bar",l=[],p.eachSeriesByType(h,function(t){U_(t)&&!X_(t)&&l.push(t)}),n=!1,I(p=l,function(t){n=n||t.getBaseAxis()===e.axis}),n)&&(h=H_(p),p=t,i=c,h=h,s=(s=(o=e).axis.getExtent())[1]-s[0],void 0!==(h=G_(h,o.axis))&&(r=1/0,I(h,function(t){r=Math.min(t.offset,r)}),a=-1/0,I(h,function(t){a=Math.max(t.offset+t.width,a)}),r=Math.abs(r),a=Math.abs(a),i+=a/(o=r+a)*(s=(h=i-p)/(1-(r+a)/s)-h),p-=r/o*s),t=(h={min:p,max:i}).min,c=h.max),{extent:[t,c],fixMin:u.minFixed,fixMax:u.maxFixed}}function y1(t,e){var n=g1(t,e),i=n.extent,o=e.get("splitNumber"),r=(t instanceof a1&&(t.base=e.get("logBase")),t.type),i=(t.setExtent(i[0],i[1]),t.niceExtent({splitNumber:o,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===r||"time"===r?e.get("minInterval"):null,maxInterval:"interval"===r||"time"===r?e.get("maxInterval"):null}),e.get("interval"));null!=i&&t.setInterval&&t.setInterval(i)}function m1(t,e){if(e=e||t.get("type"))switch(e){case"category":return new L_({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new Z_({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(__.getClass(e)||B_)}}function v1(n){var i,e,o,t=n.getLabelModel().get("formatter"),r="category"===n.type?n.scale.getExtent()[0]:null;return"time"===n.scale.type?(o=t,function(t,e){return n.scale.getFormattedLabel(t,e,o)}):"string"==typeof t?(e=t,function(t){t=n.scale.getLabel(t);return e.replace("{value}",null!=t?t:"")}):"function"==typeof t?(i=t,function(t,e){return null!=r&&(e=t.value-r),i(_1(n,t),e,null!=t.level?{level:t.level}:null)}):function(t){return n.scale.getLabel(t)}}function _1(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function x1(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,o,r=n.getExtent(),a=n instanceof L_?n.count():(i=n.getTicks()).length,s=t.getLabelModel(),l=v1(t),h=1;40<a&&(h=Math.ceil(a/40));for(var u,c,p,d=0;d<a;d+=h){var f=l(i?i[d]:{value:r[0]+d},d),f=s.getTextRect(f),g=(f=f,u=s.get("rotate")||0,c=p=g=c=void 0,u=u*Math.PI/180,c=f.width,g=f.height,p=c*Math.abs(Math.cos(u))+Math.abs(g*Math.sin(u)),c=c*Math.abs(Math.sin(u))+Math.abs(g*Math.cos(u)),new X(f.x,f.y,p,c));o?o.union(g):o=g}return o}}function w1(t){t=t.get("interval");return null==t?"auto":t}function b1(t){return"category"===t.type&&0===w1(t.getLabelModel())}function S1(e,t){var n={};return I(e.mapDimensionsAll(t),function(t){n[m_(e,t)]=!0}),k(n)}T1.prototype.getNeedCrossZero=function(){return!this.option.scale},T1.prototype.getCoordSysModel=function(){};var M1=T1;function T1(){}var Ac=Object.freeze({__proto__:null,createDimensions:c_,createList:function(t){return v_(t.getSource(),t)},createScale:function(t,e){var n=e;return(e=m1(n=e instanceof uc?n:new uc(e))).setExtent(t[0],t[1]),y1(e,n),e},createSymbol:Vy,createTextStyle:function(t,e){return Uu(t,null,null,"normal"!==(e=e||{}).state)},dataStack:{isDimensionStacked:y_,enableDataStack:g_,getStackedDimension:m_},enableHoverEmphasis:gl,getECData:Cs,getLayoutRect:cp,mixinAxisModelCommonMethods:function(t){nt(t,M1)}}),C1=[],A1={registerPreprocessor:vv,registerProcessor:_v,registerPostInit:xv,registerPostUpdate:wv,registerAction:bv,registerCoordinateSystem:Sv,registerLayout:Mv,registerVisual:Tv,registerTransform:Dv,registerLoading:Iv,registerMap:kv,PRIORITY:Ry,ComponentModel:g,ComponentView:cg,SeriesModel:ig,ChartView:yg,registerComponentModel:function(t){g.registerClass(t)},registerComponentView:function(t){cg.registerClass(t)},registerSeriesModel:function(t){ig.registerClass(t)},registerChartView:function(t){yg.registerClass(t)},registerSubTypeDefaulter:function(t,e){g.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){go(t,e)}};function I1(t){F(t)?I(t,function(t){I1(t)}):0<=A(C1,t)||(C1.push(t),(t=st(t)?{install:t}:t).install(A1))}var ic=Object.freeze({__proto__:null,MAX_SAFE_INTEGER:9007199254740991,asc:vo,getPercentWithPrecision:function(t,e,n){if(!t[e])return 0;var i=ot(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return 0;for(var o=Math.pow(10,n),n=q(t,function(t){return(isNaN(t)?0:t)/i*o*100}),r=100*o,a=q(n,function(t){return Math.floor(t)}),s=ot(a,function(t,e){return t+e},0),l=q(n,function(t,e){return t-a[e]});s<r;){for(var h=Number.NEGATIVE_INFINITY,u=null,c=0,p=l.length;c<p;++c)l[c]>h&&(h=l[c],u=c);++a[u],l[u]=0,++s}return a[e]/o},getPixelPrecision:xo,getPrecision:function(t){if(t=+t,isNaN(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n},getPrecisionSafe:_o,isNumeric:ko,isRadianAroundZero:bo,linearMap:yo,nice:Ao,numericToNumber:Io,parseDate:Mo,quantile:function(t,e){var e=(t.length-1)*e+1,n=Math.floor(e),i=+t[n-1];return(e=e-n)?i+e*(t[n]-i):i},quantity:To,quantityExponent:Co,reformIntervals:function(t){t.sort(function(t,e){return function t(e,n,i){return e.interval[i]<n.interval[i]||e.interval[i]===n.interval[i]&&(e.close[i]-n.close[i]==(i?-1:1)||!i&&t(e,n,1))}(t,e,0)?-1:1});for(var e=-1/0,n=1,i=0;i<t.length;){for(var o=t[i].interval,r=t[i].close,a=0;a<2;a++)o[a]<=e&&(o[a]=e,r[a]=a?1:1-n),e=o[a],n=r[a];o[0]===o[1]&&r[0]*r[1]!=1?t.splice(i,1):i++}return t},remRadian:wo,round:mo}),pr=Object.freeze({__proto__:null,format:Oc,parse:Mo}),rc=Object.freeze({__proto__:null,Arc:Vh,BezierCurve:Bh,BoundingRect:X,Circle:Ul,CompoundPath:Gh,Ellipse:ql,Group:so,Image:is,IncrementalDisplayable:su,Line:Dh,LinearGradient:qh,Polygon:wh,Polyline:Th,RadialGradient:$h,Rect:ps,Ring:gh,Sector:ch,Text:ms,clipPointsByRect:Ou,clipRectByRect:Ru,createIcon:Eu,extendPath:fu,extendShape:pu,getShapeClass:yu,getTransform:Iu,initProps:Mu,makeImage:vu,makePath:mu,mergePath:xu,registerShape:gu,resizePath:wu,updateProps:Su}),Xh=Object.freeze({__proto__:null,addCommas:jc,capitalFirst:function(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)},encodeHTML:tp,formatTime:function(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=(e=Mo(e))["get"+(n=n?"UTC":"")+"FullYear"](),o=e["get"+n+"Month"]()+1,r=e["get"+n+"Date"](),a=e["get"+n+"Hours"](),s=e["get"+n+"Minutes"](),l=e["get"+n+"Seconds"](),e=e["get"+n+"Milliseconds"]();return t=t.replace("MM",Pc(o,2)).replace("M",o).replace("yyyy",i).replace("yy",i%100+"").replace("dd",Pc(r,2)).replace("d",r).replace("hh",Pc(a,2)).replace("h",a).replace("mm",Pc(s,2)).replace("m",s).replace("ss",Pc(l,2)).replace("s",l).replace("SSS",Pc(e,3))},formatTpl:op,getTextRect:function(t,e,n,i,o,r,a,s){return new ms({style:{text:t,font:e,align:n,verticalAlign:i,padding:o,rich:r,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:rp,normalizeCssArray:$c,toCamelCase:Kc,truncateText:_r}),sc=Object.freeze({__proto__:null,bind:S,clone:M,curry:at,defaults:N,each:I,extend:T,filter:rt,indexOf:A,inherits:et,isArray:F,isFunction:st,isObject:D,isString:C,map:q,merge:p,reduce:ot}),k1=Xo();function D1(t){return"category"===t.type?(o=(e=t).getLabelModel(),r=L1(e,o),!o.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r):(o=(n=t).scale.getTicks(),i=v1(n),{labels:q(o,function(t,e){return{formattedLabel:i(t,e),rawLabel:n.scale.getLabel(t),tickValue:t.value}})});var n,i,e,o,r}function P1(t,e){var n,i,o,r,a,s;return"category"===t.type?(e=e,r=O1(n=t,"ticks"),a=w1(e),(s=R1(r,a))||(e.get("show")&&!n.scale.isBlank()||(i=[]),i=st(a)?z1(n,a,!0):"auto"===a?(s=L1(n,n.getLabelModel()),o=s.labelCategoryInterval,q(s.labels,function(t){return t.tickValue})):B1(n,o=a,!0),E1(r,a,{ticks:i,tickCategoryInterval:o}))):{ticks:q(t.scale.getTicks(),function(t){return t.value})}}function L1(t,e){var n,i=O1(t,"labels"),e=w1(e),o=R1(i,e);return o||E1(i,e,{labels:st(e)?z1(t,e):B1(t,n="auto"===e?null!=(i=k1(o=t).autoInterval)?i:k1(o).autoInterval=o.calculateCategoryInterval():e),labelCategoryInterval:n})}function O1(t,e){return k1(t)[e]||(k1(t)[e]=[])}function R1(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function E1(t,e,n){return t.push({key:e,value:n}),n}function B1(t,e,n){for(var i=v1(t),o=t.scale,r=o.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),e=r[0],h=o.count(),h=(0!==e&&1<l&&2<h/l&&(e=Math.round(Math.ceil(e/l)*l)),b1(t)),t=a.get("showMinLabel")||h,a=a.get("showMaxLabel")||h,u=(t&&e!==r[0]&&c(r[0]),e);u<=r[1];u+=l)c(u);function c(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:o.getLabel(e),tickValue:t})}return a&&u-l!==r[1]&&c(r[1]),s}function z1(t,i,o){var r=t.scale,a=v1(t),s=[];return I(r.getTicks(),function(t){var e=r.getLabel(t),n=t.value;i(t.value,e)&&s.push(o?n:{formattedLabel:a(t),rawLabel:e,tickValue:n})}),s}var N1=[0,1],n=(F1.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),e=Math.max(e[0],e[1]);return n<=t&&t<=e},F1.prototype.containData=function(t){return this.scale.contain(t)},F1.prototype.getExtent=function(){return this._extent.slice()},F1.prototype.getPixelPrecision=function(t){return xo(t||this.scale.getExtent(),this._extent)},F1.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},F1.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&V1(n=n.slice(),i.count()),yo(t,N1,n,e)},F1.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale,i=(this.onBand&&"ordinal"===i.type&&V1(n=n.slice(),i.count()),yo(t,n,N1,e));return this.scale.scale(i)},F1.prototype.pointToData=function(t,e){},F1.prototype.getTicksCoords=function(t){var e,n,i,o,r,a,s,l=(t=t||{}).tickModel||this.getTickModel(),h=q(P1(this,l).ticks,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this),l=l.get("alignWithLabel");function u(t,e){return t=mo(t),e=mo(e),a?e<t:t<e}return e=this,n=h,l=l,t=t.clamp,s=n.length,e.onBand&&!l&&s&&(l=e.getExtent(),1===s?(n[0].coord=l[0],i=n[1]={coord:l[0]}):(r=n[s-1].tickValue-n[0].tickValue,o=(n[s-1].coord-n[0].coord)/r,I(n,function(t){t.coord-=o/2}),e=1+(r=e.scale.getExtent())[1]-n[s-1].tickValue,i={coord:n[s-1].coord+o*e},n.push(i)),a=l[0]>l[1],u(n[0].coord,l[0])&&(t?n[0].coord=l[0]:n.shift()),t&&u(l[0],n[0].coord)&&n.unshift({coord:l[0]}),u(l[1],i.coord)&&(t?i.coord=l[1]:n.pop()),t)&&u(i.coord,l[1])&&n.push({coord:l[1]}),h},F1.prototype.getMinorTicksCoords=function(){var t;return"ordinal"===this.scale.type?[]:(t=this.model.getModel("minorTick").get("splitNumber"),q(this.scale.getMinorTicks(t=0<t&&t<100?t:5),function(t){return q(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this))},F1.prototype.getViewLabels=function(){return D1(this).labels},F1.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},F1.prototype.getTickModel=function(){return this.model.getModel("axisTick")},F1.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),e=e[1]-e[0]+(this.onBand?1:0),t=(0===e&&(e=1),Math.abs(t[1]-t[0]));return Math.abs(t)/e},F1.prototype.calculateCategoryInterval=function(){o=(n=d=this).getLabelModel();var t={axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:o.get("rotate")||0,font:o.getFont()},e=v1(d),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=(o=d.scale).getExtent(),o=o.count();if(i[1]-i[0]<1)return 0;for(var r=1,a=(40<o&&(r=Math.max(1,Math.floor(o/40))),i[0]),s=d.dataToCoord(a+1)-d.dataToCoord(a),l=Math.abs(s*Math.cos(n)),s=Math.abs(s*Math.sin(n)),h=0,u=0;a<=i[1];a+=r)var c=1.3*(p=ti(e({value:a}),t.font,"center","top")).width,p=1.3*p.height,h=Math.max(h,c,7),u=Math.max(u,p,7);var n=h/l,l=u/s,s=(isNaN(n)&&(n=1/0),isNaN(l)&&(l=1/0),Math.max(0,Math.floor(Math.min(n,l)))),n=k1(d.model),l=d.getExtent(),d=n.lastAutoInterval,f=n.lastTickCount;return null!=d&&null!=f&&Math.abs(d-s)<=1&&Math.abs(f-o)<=1&&s<d&&n.axisExtent0===l[0]&&n.axisExtent1===l[1]?s=d:(n.lastTickCount=o,n.lastAutoInterval=s,n.axisExtent0=l[0],n.axisExtent1=l[1]),s},F1);function F1(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}function V1(t,e){e=(t[1]-t[0])/e/2;t[0]+=e,t[1]-=e}function H1(){return!1}function W1(t,e,n){var i=tt(),o=e.getWidth(),e=e.getHeight(),r=i.style;return r&&(r.position="absolute",r.left="0",r.top="0",r.width=o+"px",r.height=e+"px",i.setAttribute("data-zr-dom-id",t)),i.width=o*n,i.height=e*n,i}h(X1,G1=$t),X1.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},X1.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},X1.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},X1.prototype.setUnpainted=function(){this.__firstTimePaint=!0},X1.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=W1("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},X1.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var l=[],h=this.maxRepaintRectCount,u=!1,c=new X(0,0,0,0);function o(t){if(t.isFinite()&&!t.isZero())if(0===l.length)(e=new X(0,0,0,0)).copy(t),l.push(e);else{for(var e,n=!1,i=1/0,o=0,r=0;r<l.length;++r){var a=l[r];if(a.intersect(t)){var s=new X(0,0,0,0);s.copy(a),s.union(t),l[r]=s,n=!0;break}u&&(c.copy(t),c.union(a),s=t.width*t.height,a=a.width*a.height,(a=c.width*c.height-s-a)<i)&&(i=a,o=r)}u&&(l[o].union(t),n=!0),n||((e=new X(0,0,0,0)).copy(t),l.push(e)),u=u||l.length>=h}}for(var r,a=this.__startIndex;a<this.__endIndex;++a)(s=t[a])&&(d=s.shouldBePainted(n,i,!0,!0),(p=s.__isRendered&&(s.__dirty&mi.REDARAW_BIT||!d)?s.getPrevPaintRect():null)&&o(p),r=d&&(s.__dirty&mi.REDARAW_BIT||!s.__isRendered)?s.getPaintRect():null)&&o(r);for(a=this.__prevStartIndex;a<this.__prevEndIndex;++a){var s,p,d=(s=e[a]).shouldBePainted(n,i,!0,!0);!s||d&&s.__zr||!s.__isRendered||(p=s.getPrevPaintRect())&&o(p)}do{for(var f=!1,a=0;a<l.length;)if(l[a].isZero())l.splice(a,1);else{for(var g=a+1;g<l.length;)l[a].intersect(l[g])?(f=!0,l[a].union(l[g]),l.splice(g,1)):g++;a++}}while(f);return this._paintRects=l},X1.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},X1.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,o=i.style,r=this.domBack;o&&(o.width=t+"px",o.height=e+"px"),i.width=t*n,i.height=e*n,r&&(r.width=t*n,r.height=e*n,1!==n)&&this.ctxBack.scale(n,n)},X1.prototype.clear=function(t,r,e){var n=this.dom,a=this.ctx,i=n.width,o=n.height,s=(r=r||this.clearColor,this.motionBlur&&!t),l=this.lastFrameAlpha,h=this.dpr,u=this,c=(s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,i/h,o/h)),this.domBack);function p(t,e,n,i){var o;a.clearRect(t,e,n,i),r&&"transparent"!==r&&(o=void 0,dt(r)?(o=r.__canvasGradient||Hy(a,r,{x:0,y:0,width:n,height:i}),r.__canvasGradient=o):ft(r)&&(o=jy(a,r,{dirty:function(){u.setUnpainted(),u.__painter.refresh()}})),a.save(),a.fillStyle=o||r,a.fillRect(t,e,n,i),a.restore()),s&&(a.save(),a.globalAlpha=l,a.drawImage(c,t,e,n,i),a.restore())}!e||s?p(0,0,i,o):e.length&&I(e,function(t){p(t.x*h,t.y*h,t.width*h,t.height*h)})};var G1,U1=X1;function X1(t,e,n){var i,o=G1.call(this)||this,t=(o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,n=n||hi,"string"==typeof t?i=W1(t,e,n):D(t)&&(t=(i=t).id),o.id=t,(o.dom=i).style);return t&&(i.onselectstart=H1,t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none",t.padding="0",t.margin="0",t.borderWidth="0"),o.domBack=null,o.ctxBack=null,o.painter=e,o.config=null,o.dpr=n,o}var Y1=314159;function Z1(t){return parseInt(t,10)}u.prototype.getType=function(){return"canvas"},u.prototype.isSingleCanvas=function(){return this._singleCanvas},u.prototype.getViewportRoot=function(){return this._domRoot},u.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},u.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var o=0;o<i.length;o++){var r,a=i[o],a=this._layers[a];!a.__builtin__&&a.refresh&&(r=0===o?this._backgroundColor:null,a.refresh(r))}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},u.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},u.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,o={inHover:!0,viewWidth:this._width,viewHeight:this._height},r=0;r<e;r++){var a=t[r];a.__inHover&&(n=n||(this._hoverlayer=this.getLayer(1e5)),i||(i=n.ctx).save(),lm(i,a,o,r===e-1))}i&&i.restore()}},u.prototype.getHoverLayer=function(){return this.getLayer(1e5)},u.prototype.paintOne=function(t,e){sm(t,e)},u.prototype._paintList=function(t,e,n,i){var o,r,a;this._redrawId===i&&(n=n||!1,this._updateLayerStatus(t),o=(r=this._doPaintList(t,e,n)).finished,r=r.needsRefreshHover,this._needsManuallyCompositing&&this._compositeManually(),r&&this._paintHoverList(t),o?this.eachLayer(function(t){t.afterBrush&&t.afterBrush()}):(a=this,zi(function(){a._paintList(t,e,n,i)})))},u.prototype._compositeManually=function(){var e=this.getLayer(Y1).ctx,n=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,n,i),this.eachBuiltinLayer(function(t){t.virtual&&e.drawImage(t.dom,0,0,n,i)})},u.prototype._doPaintList=function(d,f,g){for(var y=this,m=[],v=this._opts.useDirtyRect,t=0;t<this._zlevelList.length;t++){var e=this._zlevelList[t],e=this._layers[e];e.__builtin__&&e!==this._hoverlayer&&(e.__dirty||g)&&m.push(e)}for(var _=!0,x=!1,n=function(t){function e(t){var e={inHover:!1,allClipped:!1,prevEl:null,viewWidth:y._width,viewHeight:y._height};for(i=s;i<o.__endIndex;i++){var n=d[i];if(n.__inHover&&(x=!0),y._doPaintEl(n,o,v,t,e,i===o.__endIndex-1),l)if(15<Date.now()-h)break}e.prevElClipPaths&&r.restore()}var n,i,o=m[t],r=o.ctx,a=v&&o.createRepaintRects(d,f,w._width,w._height),s=(r.save(),g?o.__startIndex:o.__drawIndex),l=!g&&o.incremental&&Date.now,h=l&&Date.now(),t=o.zlevel===w._zlevelList[0]?w._backgroundColor:null;o.__startIndex!==o.__endIndex&&(s!==o.__startIndex||(n=d[s]).incremental&&n.notClear&&!g)||o.clear(!1,t,a),-1===s&&(console.error("For some unknown reason. drawIndex is -1"),s=o.__startIndex);if(a)if(0===a.length)i=o.__endIndex;else for(var u=w.dpr,c=0;c<a.length;++c){var p=a[c];r.save(),r.beginPath(),r.rect(p.x*u,p.y*u,p.width*u,p.height*u),r.clip(),e(p),r.restore()}else r.save(),e(),r.restore();o.__drawIndex=i,o.__drawIndex<o.__endIndex&&(_=!1)},w=this,i=0;i<m.length;i++)n(i);return b.wxa&&I(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:_,needsRefreshHover:x}},u.prototype._doPaintEl=function(t,e,n,i,o,r){e=e.ctx;n?(n=t.getPaintRect(),(!i||n&&n.intersect(i))&&(lm(e,t,o,r),t.setPrevPaintRect(n))):lm(e,t,o,r)},u.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Y1);var n=this._layers[t];return n||((n=new U1("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?p(n,this._layerConfig[t],!0):this._layerConfig[t-.01]&&p(n,this._layerConfig[t-.01],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},u.prototype.insertLayer=function(t,e){var n,i=this._layers,o=this._zlevelList,r=o.length,a=this._domRoot,s=null,l=-1;if(i[t])Q("ZLevel "+t+" has been used already");else if((n=e)&&(n.__builtin__||"function"==typeof n.resize&&"function"==typeof n.refresh)){if(0<r&&t>o[0]){for(l=0;l<r-1&&!(o[l]<t&&o[l+1]>t);l++);s=i[o[l]]}o.splice(l+1,0,t),(i[t]=e).virtual||(s?(n=s.dom).nextSibling?a.insertBefore(e.dom,n.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.__painter=this}else Q("Layer of zlevel "+t+" is not valid")},u.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i];t.call(e,this._layers[o],o)}},u.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i],r=this._layers[o];r.__builtin__&&t.call(e,r,o)}},u.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i],r=this._layers[o];r.__builtin__||t.call(e,r,o)}},u.prototype.getLayers=function(){return this._layers},u.prototype._updateLayerStatus=function(t){function e(t){o&&(o.__endIndex!==t&&(o.__dirty=!0),o.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n=1;n<t.length;n++)if((s=t[n]).zlevel!==t[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}for(var i,o=null,r=0,a=0;a<t.length;a++){var s,l=(s=t[a]).zlevel,h=void 0;i!==l&&(i=l,r=0),s.incremental?((h=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,r=1):h=this.getLayer(l+(0<r?.01:0),this._needsManuallyCompositing),h.__builtin__||Q("ZLevel "+l+" has been used by unkown layer "+h.id),h!==o&&(h.__used=!0,h.__startIndex!==a&&(h.__dirty=!0),h.__startIndex=a,h.incremental?h.__drawIndex=-1:h.__drawIndex=a,e(a),o=h),s.__dirty&mi.REDARAW_BIT&&!s.__inHover&&(h.__dirty=!0,h.incremental)&&h.__drawIndex<0&&(h.__drawIndex=a)}e(a),this.eachBuiltinLayer(function(t,e){!t.__used&&0<t.getElementCount()&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},u.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},u.prototype._clearLayer=function(t){t.clear()},u.prototype.setBackgroundColor=function(t){this._backgroundColor=t,I(this._layers,function(t){t.setUnpainted()})},u.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?p(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];o!==t&&o!==t+.01||p(this._layers[o],n[t],!0)}}},u.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(A(n,t),1))},u.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot,i=(n.style.display="none",this._opts);if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(Y1).resize(t,e)}return this},u.prototype.clearLayer=function(t){t=this._layers[t];t&&t.clear()},u.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},u.prototype.getRenderedCanvas=function(t){if(this._singleCanvas&&!this._compositeManually)return this._layers[Y1].dom;var e=new U1("image",this,(t=t||{}).pixelRatio||this.dpr),n=(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),e.ctx);if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,o=e.dom.height;this.eachLayer(function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,o):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())})}else for(var r={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var h=a[s];lm(n,h,r,s===l-1)}return e.dom},u.prototype.getWidth=function(){return this._width},u.prototype.getHeight=function(){return this._height},u.prototype._getSize=function(t){var e,n=this._opts,i=["width","height"][t],o=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],t=["paddingRight","paddingBottom"][t];return null!=n[i]&&"auto"!==n[i]?parseFloat(n[i]):(n=this.root,e=document.defaultView.getComputedStyle(n),(n[o]||Z1(e[i])||Z1(n.style[i]))-(Z1(e[r])||0)-(Z1(e[t])||0)|0)},u.prototype.pathToImage=function(t,e){e=e||this.dpr;var n=document.createElement("canvas"),i=n.getContext("2d"),o=t.getBoundingRect(),r=t.style,a=r.shadowBlur*e,s=r.shadowOffsetX*e,l=r.shadowOffsetY*e,r=t.hasStroke()?r.lineWidth:0,h=Math.max(r/2,a-s),s=Math.max(r/2,s+a),u=Math.max(r/2,a-l),r=Math.max(r/2,l+a),l=o.width+h+s,a=o.height+u+r,s=(n.width=l*e,n.height=a*e,i.scale(e,e),i.clearRect(0,0,l,a),i.dpr=e,{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY,rotation:t.rotation,originX:t.originX,originY:t.originY}),r=(t.x=h-o.x,t.y=u-o.y,t.rotation=0,t.scaleX=1,t.scaleY=1,t.updateTransform(),t&&lm(i,t,{inHover:!1,viewWidth:this._width,viewHeight:this._height},!0),new is({style:{x:0,y:0,image:n}}));return T(t,s),r};var q1=u;function u(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o,r,a=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase(),s=(this._opts=n=T({},n||{}),this.dpr=n.devicePixelRatio||hi,this._singleCanvas=a,(this.root=t).style),s=(s&&(s.webkitTapHighlightColor="transparent",s.webkitUserSelect="none",s.userSelect="none",s["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e,this._zlevelList),e=(this._prevDisplayList=[],this._layers);a?(o=(a=t).width,r=a.height,null!=n.width&&(o=n.width),null!=n.height&&(r=n.height),this.dpr=n.devicePixelRatio||1,a.width=o*this.dpr,a.height=r*this.dpr,this._width=o,this._height=r,(n=new U1(a,this,this.dpr)).__builtin__=!0,n.initContext(),(e[Y1]=n).zlevel=Y1,s.push(Y1),this._domRoot=t):(this._width=this._getSize(0),this._height=this._getSize(1),e=this._domRoot=(o=this._width,r=this._height,(a=document.createElement("div")).style.cssText=["position:relative","width:"+o+"px","height:"+r+"px","padding:0","margin:0","border-width:0"].join(";")+";",a),t.appendChild(e))}h($1,j1=g),$1.prototype.init=function(t,e,n){j1.prototype.init.call(this,t,e,n),this._sourceManager=new Rf(this),Bf(this)},$1.prototype.mergeOption=function(t,e){j1.prototype.mergeOption.call(this,t,e),Bf(this)},$1.prototype.optionUpdated=function(){this._sourceManager.dirty()},$1.prototype.getSourceManager=function(){return this._sourceManager},$1.type="dataset",$1.defaultOption={seriesLayoutBy:Pp};var j1,K1=$1;function $1(){var t=null!==j1&&j1.apply(this,arguments)||this;return t.type="dataset",t}h(tx,J1=cg),tx.type="dataset";var J1,Q1=tx;function tx(){var t=null!==J1&&J1.apply(this,arguments)||this;return t.type="dataset",t}function ex(t){t.registerComponentModel(K1),t.registerComponentView(Q1)}I1([function(t){t.registerPainter("canvas",q1)},ex]);h(ox,nx=ig),ox.prototype.getInitialData=function(t){return v_(this.getSource(),this,{useEncodeDefaulter:!0})},ox.prototype.getLegendIcon=function(t){var e=new so,n=Vy("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1),n=(e.add(n),n.setStyle(t.lineStyle),this.getData().getVisual("symbol")),n="none"===n?"circle":n,i=.8*t.itemHeight,i=Vy(n,(t.itemWidth-i)/2,(t.itemHeight-i)/2,i,i,t.itemStyle.fill,t.symbolKeepAspect);return e.add(i),i.setStyle(t.itemStyle),-1<n.indexOf("empty")&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),e},ox.type="series.line",ox.dependencies=["grid","polar"],ox.defaultOption={zlevel:0,z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0,lineStyle:{width:"bolder"}},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};var nx,ix=ox;function ox(){var t=null!==nx&&nx.apply(this,arguments)||this;return t.type=ox.type,t.hasSymbolVisual=!0,t}function rx(t,e){var n,i=t.mapDimensionsAll("defaultedLabel"),o=i.length;if(1===o)return null!=(n=Jd(t,e,i[0]))?n+"":null;if(o){for(var r=[],a=0;a<i.length;a++)r.push(Jd(t,e,i[a]));return r.join(" ")}}h(lx,ax=so),lx.prototype._createSymbol=function(t,e,n,i,o){this.removeAll();o=Vy(t,-1,-1,2,2,null,o);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=hx,this._symbolType=t,this.add(o)},lx.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},lx.prototype.getSymbolPath=function(){return this.childAt(0)},lx.prototype.highlight=function(){ol(this.childAt(0))},lx.prototype.downplay=function(){rl(this.childAt(0))},lx.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},lx.prototype.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},lx.prototype.updateData=function(t,e,n,i){this.silent=!1;var o,r,a,s=t.getItemVisual(e,"symbol")||"circle",l=t.hostModel,h=lx.getSymbolSize(t,e),u=s!==this._symbolType,c=i&&i.disableAnimation;u?(o=t.getItemVisual(e,"symbolKeepAspect"),this._createSymbol(s,t,e,h,o)):((r=this.childAt(0)).silent=!1,a={scaleX:h[0]/2,scaleY:h[1]/2},c?r.attr(a):Su(r,a,l,e)),this._updateCommon(t,e,h,n,i),u&&(r=this.childAt(0),c||(a={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:r.style.opacity}},r.scaleX=r.scaleY=0,r.style.opacity=0,Mu(r,a,l,e))),c&&this.childAt(0).stopAnimation("remove"),this._seriesModel=l},lx.prototype._updateCommon=function(e,t,n,i,o){var r,a,s,l,h,u,c,p=this.childAt(0),d=e.hostModel,f=(i&&(r=i.emphasisItemStyle,s=i.blurItemStyle,a=i.selectItemStyle,l=i.focus,h=i.blurScope,u=i.labelStatesModels,c=i.hoverScale,g=i.cursorStyle),i&&!e.hasItemOption||(r=(f=(i=i&&i.itemModel?i.itemModel:e.getItemModel(t)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),a=i.getModel(["select","itemStyle"]).getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=f.get("focus"),h=f.get("blurScope"),u=Gu(i),c=f.getShallow("scale"),g=i.getShallow("cursor")),e.getItemVisual(t,"symbolRotate")),i=(p.attr("rotation",(f||0)*Math.PI/180||0),e.getItemVisual(t,"symbolOffset")||0),f=(i&&(F(i)||(i=[i,i]),p.x=B(i[0],n[0]),p.y=B(L(i[1],i[0])||0,n[1])),g&&p.attr("cursor",g),e.getItemVisual(t,"style")),i=f.fill,g=(p instanceof is?(g=p.style,p.useStyle(T({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},f))):(p.__isEmptyBrush?p.useStyle(T({},f)):p.useStyle(f),p.style.decal=null,p.setColor(i,o&&o.symbolInnerColor),p.style.strokeNoScale=!0),e.getItemVisual(t,"liftZ")),y=this._z2,m=(null!=g?null==y&&(this._z2=p.z2,p.z2+=g):null!=y&&(p.z2=y,this._z2=null),o&&o.useNameLabel);Wu(p,u,{labelFetcher:d,labelDataIndex:t,defaultText:function(t){return m?e.getName(t):rx(e,t)},inheritColor:i,defaultOpacity:f.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;g=p.ensureState("emphasis");g.style=r,p.ensureState("select").style=a,p.ensureState("blur").style=s,c&&(y=Math.max(1.1,3/this._sizeY),g.scaleX=this._sizeX*y,g.scaleY=this._sizeY*y),this.setSymbolScale(1),gl(this,l,h)},lx.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},lx.prototype.fadeOut=function(t,e){var n=this.childAt(0),i=this._seriesModel,o=Cs(this).dataIndex,r=e&&e.animation;this.silent=n.silent=!0,e&&e.fadeLabel?(e=n.getTextContent())&&Tu(e,{style:{opacity:0}},i,{dataIndex:o,removeOpt:r,cb:function(){n.removeTextContent()}}):n.removeTextContent(),Tu(n,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:t,removeOpt:r})},lx.getSymbolSize=function(t,e){t=t.getItemVisual(e,"symbolSize");return F(t)?t.slice():[+t,+t]};var ax,sx=lx;function lx(t,e,n,i){var o=ax.call(this)||this;return o.updateData(t,e,n,i),o}function hx(t,e){this.parent.drift(t,e)}function ux(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&(!i.isIgnore||!i.isIgnore(n))&&(!i.clipShape||i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function cx(t){return(t=null==t||D(t)?t:{isIgnore:t})||{}}function px(t){var t=t.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),hoverScale:e.get("scale"),labelStatesModels:Gu(t),cursorStyle:t.get("cursor")}}fx.prototype.updateData=function(o,r){r=cx(r);var a=this.group,s=o.hostModel,l=this._data,h=this._SymbolCtor,u=r.disableAnimation,c=px(o),p={disableAnimation:u},d=r.getSymbolPoint||function(t){return o.getItemLayout(t)};l||a.removeAll(),o.diff(l).add(function(t){var e,n=d(t);ux(o,n,t,r)&&((e=new h(o,t,c,p)).setPosition(n),o.setItemGraphicEl(t,e),a.add(e))}).update(function(t,e){var n,e=l.getItemGraphicEl(e),i=d(t);ux(o,i,t,r)?(e?(e.updateData(o,t,c,p),n={x:i[0],y:i[1]},u?e.attr(n):Su(e,n,s)):(e=new h(o,t)).setPosition(i),a.add(e),o.setItemGraphicEl(t,e)):a.remove(e)}).remove(function(t){var e=l.getItemGraphicEl(t);e&&e.fadeOut(function(){a.remove(e)})}).execute(),this._getSymbolPoint=d,this._data=o},fx.prototype.isPersistent=function(){return!0},fx.prototype.updateLayout=function(){var n=this,t=this._data;t&&t.eachItemGraphicEl(function(t,e){e=n._getSymbolPoint(e);t.setPosition(e),t.markRedraw()})},fx.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=px(t),this._data=null,this.group.removeAll()},fx.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}n=cx(n);for(var o=t.start;o<t.end;o++){var r,a=e.getItemLayout(o);ux(e,a,o,n)&&((r=new this._SymbolCtor(e,o,this._seriesScope)).traverse(i),r.setPosition(a),this.group.add(r),e.setItemGraphicEl(o,r))}},fx.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)})}):e.removeAll()};var dx=fx;function fx(t){this.group=new so,this._SymbolCtor=t||sx}function gx(t,e,n){var i=t.getBaseAxis(),o=t.getOtherAxis(i),n=function(t,e){var n=0,t=t.scale.getExtent();"start"===e?n=t[0]:"end"===e?n=t[1]:0<t[0]?n=t[0]:t[1]<0&&(n=t[1]);return n}(o,n),i=i.dim,o=o.dim,r=e.mapDimension(o),a=e.mapDimension(i),s="x"===o||"radius"===o?1:0,t=q(t.dimensions,function(t){return e.mapDimension(t)}),l=!1,h=e.getCalculationInfo("stackResultDimension");return y_(e,t[0])&&(l=!0,t[0]=h),y_(e,t[1])&&(l=!0,t[1]=h),{dataDimsForPoint:t,valueStart:n,valueAxisDim:o,baseAxisDim:i,stacked:!!l,valueDim:r,baseDim:a,baseDataOffset:s,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function yx(t,e,n,i){var o=NaN,r=(t.stacked&&(o=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(o)&&(o=t.valueStart),t.baseDataOffset),a=[];return a[r]=n.get(t.baseDim,i),a[1-r]=o,e.dataToPoint(a)}var mx="undefined"!=typeof Float32Array,vx=mx?Float32Array:Array;function _x(t){return F(t)?mx?new Float32Array(t):t:new vx(t)}var xx=Math.min,bx=Math.max;function Sx(t,e){return isNaN(t)||isNaN(e)}function Mx(t,e,n,i,o,r,a,s,l){for(var h,u,c,p,d,f,g=n,y=0;y<i;y++){var m=e[2*g],v=e[2*g+1];if(o<=g||g<0)break;if(Sx(m,v)){if(l){g+=r;continue}break}if(g===n)t[0<r?"moveTo":"lineTo"](m,v),c=m,p=v;else{var _=m-h,x=v-u;if(_*_+x*x<.5){g+=r;continue}if(0<a){var w=g+r,b=e[2*w],S=e[2*w+1],M=y+1;if(l)for(;Sx(b,S)&&M<i;)M++,b=e[2*(w+=r)],S=e[2*w+1];var T,C,A,I,k,D,_=0,x=0,P=void 0,L=void 0;i<=M||Sx(b,S)?(d=m,f=v):(_=b-h,x=S-u,T=m-h,C=b-m,A=v-u,I=S-v,D=k=void 0,L="x"===s?(k=Math.abs(T),D=Math.abs(C),d=m-k*a,P=m+k*a,f=v):"y"===s?(k=Math.abs(A),D=Math.abs(I),f=v-k*a,P=d=m,v+k*a):(k=Math.sqrt(T*T+A*A),d=m-_*a*(1-(T=(D=Math.sqrt(C*C+I*I))/(D+k))),f=v-x*a*(1-T),L=v+x*a*T,P=xx(P=m+_*a*T,bx(b,m)),L=xx(L,bx(S,v)),P=bx(P,xx(b,m)),f=v-(x=(L=bx(L,xx(S,v)))-v)*k/D,d=xx(d=m-(_=P-m)*k/D,bx(h,m)),f=xx(f,bx(u,v)),P=m+(_=m-(d=bx(d,xx(h,m))))*D/k,v+(x=v-(f=bx(f,xx(u,v))))*D/k)),t.bezierCurveTo(c,p,d,f,m,v),c=P,p=L}else t.lineTo(m,v)}h=m,u=v,g+=r}return y}var Tx,Cx=function(){this.smooth=0,this.smoothConstraint=!0},Ax=(h(Ix,Tx=j),Ix.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Ix.prototype.getDefaultShape=function(){return new Cx},Ix.prototype.buildPath=function(t,e){var n=e.points,i=0,o=n.length/2;if(e.connectNulls){for(;0<o&&Sx(n[2*o-2],n[2*o-1]);o--);for(;i<o&&Sx(n[2*i],n[2*i+1]);i++);}for(;i<o;)i+=Mx(t,n,i,o,o,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},Ix.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,o=this.path.data,r=La.CMD,a="x"===e,s=[],l=0;l<o.length;){var h=void 0,u=void 0;switch(o[l++]){case r.M:n=o[l++],i=o[l++];break;case r.L:var c,h=o[l++],u=o[l++];if((c=a?(t-n)/(h-n):(t-i)/(u-i))<=1&&0<=c)return v=a?(u-i)*c+i:(h-n)*c+n,a?[t,v]:[v,t];n=h,i=u;break;case r.C:h=o[l++],u=o[l++];var p=o[l++],d=o[l++],f=o[l++],g=o[l++],y=a?Zr(n,h,p,f,t,s):Zr(i,u,d,g,t,s);if(0<y)for(var m=0;m<y;m++){var v,_=s[m];if(_<=1&&0<=_)return v=a?Xr(i,u,d,g,_):Xr(n,h,p,f,_),a?[t,v]:[v,t]}n=f,i=g}}},Ix);function Ix(t){t=Tx.call(this,t)||this;return t.type="ec-polyline",t}h(Px,kx=Cx);var kx,Dx=Px;function Px(){return null!==kx&&kx.apply(this,arguments)||this}h(Rx,Lx=j),Rx.prototype.getDefaultShape=function(){return new Dx},Rx.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,o=0,r=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;0<r&&Sx(n[2*r-2],n[2*r-1]);r--);for(;o<r&&Sx(n[2*o],n[2*o+1]);o++);}for(;o<r;){var s=Mx(t,n,o,r,r,1,e.smooth,a,e.connectNulls);Mx(t,i,o+s-1,s,r,-1,e.stackedOnSmooth,a,e.connectNulls),o+=s+1,t.closePath()}};var Lx,Ox=Rx;function Rx(t){t=Lx.call(this,t)||this;return t.type="ec-polygon",t}function Ex(t,e,n,i,o){var r=t.getArea(),a=r.x,s=r.y,l=r.width,r=r.height,h=n.get(["lineStyle","width"])||2,u=(a-=h/2,s-=h/2,l+=h,r+=h,a=Math.floor(a),l=Math.round(l),new ps({shape:{x:a,y:s,width:l,height:r}}));return e&&(e=(h=t.getBaseAxis()).isHorizontal(),t=h.inverse,e?(t&&(u.shape.x+=l),u.shape.width=0):(t||(u.shape.y+=r),u.shape.height=0),Mu(u,{shape:{width:l,height:r,x:a,y:s}},n,null,i,"function"==typeof o?function(t){o(t,u)}:null)),u}function Bx(t,e,n){var i=t.getArea(),o=mo(i.r0,1),r=mo(i.r,1),a=new ch({shape:{cx:mo(t.cx,1),cy:mo(t.cy,1),r0:o,r:r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=i.startAngle:a.shape.r=o,Mu(a,{shape:{endAngle:i.endAngle,r:r}},n)),a}function zx(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return 1}}function Nx(t){for(var e=1/0,n=1/0,i=-1/0,o=-1/0,r=0;r<t.length;){var a=t[r++],s=t[r++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),o=Math.max(s,o))}return[[e,n],[i,o]]}function Fx(t,e){var t=Nx(t),n=t[0],t=t[1],e=Nx(e),i=e[0],e=e[1];return Math.max(Math.abs(n[0]-i[0]),Math.abs(n[1]-i[1]),Math.abs(t[0]-e[0]),Math.abs(t[1]-e[1]))}function Vx(t){return"number"==typeof t?t:t?.5:0}function Hx(t,e,n){for(var e=e.getBaseAxis(),i="x"===e.dim||"radius"===e.dim?0:1,o=[],r=0,a=[],s=[],l=[];r<t.length-2;r+=2)switch(l[0]=t[r+2],l[1]=t[r+3],s[0]=t[r],s[1]=t[r+1],o.push(s[0],s[1]),n){case"end":a[i]=l[i],a[1-i]=s[1-i],o.push(a[0],a[1]);break;case"middle":var h=[];a[i]=h[i]=(s[i]+l[i])/2,a[1-i]=s[1-i],h[1-i]=l[1-i],o.push(a[0],a[1]),o.push(h[0],h[1]);break;default:a[i]=s[i],a[1-i]=l[1-i],o.push(a[0],a[1])}return o.push(t[r++],t[r++]),o}function Wx(t,e,n){var t=t.get("showAllSymbol"),i="auto"===t;if(!t||i){var o,r,a=n.getAxesByScale("ordinal")[0];if(a)if(!i||!function(t,e){for(var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count(),o=(isNaN(i)&&(i=0),e.count()),r=Math.max(1,Math.round(o/5)),a=0;a<o;a+=r)if(1.5*sx.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return;return 1}(a,e))return o=e.mapDimension(a.dim),r={},I(a.getViewLabels(),function(t){t=a.scale.getRawOrdinalNumber(t.tickValue);r[t]=1}),function(t){return!r.hasOwnProperty(e.get(o,t))}}}function Gx(t){for(var e,n,i=t.length/2;0<i&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}function Ux(t,e){return[t[2*e],t[2*e+1]]}function Xx(n,i,e,t){var o,r,a,s,l,h,u,c,p;return p="cartesian2d",i.type===p?(p=(o=t.getModel("endLabel")).get("show"),r=o.get("valueAnimation"),a=t.getData(),s={lastFrameIndex:0},p=p?function(t,e){n._endLabelOnDuring(t,e,a,s,r,o,i)}:null,l=i.getBaseAxis().isHorizontal(),h=Ex(i,e,t,function(){var t=n._endLabel;t&&e&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})},p),t.get("clip",!0)||(u=h.shape,c=Math.max(u.width,u.height),l?(u.y-=c,u.height+=2*c):(u.x-=c,u.width+=2*c)),p&&p(1,h),h):Bx(i,e,t)}h(qx,Yx=yg),qx.prototype.init=function(){var t=new so,e=new dx;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},qx.prototype.render=function(t,e,n){function i(t){r._changePolyState(t)}var o,r=this,a=t.coordinateSystem,s=this.group,l=t.getData(),h=t.getModel("lineStyle"),u=t.getModel("areaStyle"),c=l.getLayout("points")||[],p="polar"===a.type,d=this._coordSys,f=this._symbolDraw,g=this._polyline,y=this._polygon,m=this._lineGroup,v=t.get("animation"),_=!u.isEmpty(),x=u.get("origin"),w=gx(a,l,x),w=_&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),o=_x(2*i),r=0;r<i;r++){var a=yx(n,t,e,r);o[2*r]=a[0],o[2*r+1]=a[1]}return o}(a,l,w),b=t.get("showSymbol"),S=b&&!p&&Wx(t,l,a),M=this._data,T=(M&&M.eachItemGraphicEl(function(t,e){t.__temp&&(s.remove(t),M.setItemGraphicEl(e,null))}),b||f.remove(),s.add(m),!p&&t.get("step")),C=(a&&a.getArea&&t.get("clip",!0)&&(null!=(o=a.getArea()).width?(o.x-=.1,o.y-=.1,o.width+=.2,o.height+=.2):o.r0&&(o.r0-=.5,o.r+=.5)),this._clipShapeForSymbol=o,function(t,e){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var i,o=n.length-1;0<=o;o--){var r,a=n[o].dimension,a=t.dimensions[a],a=t.getDimensionInfo(a);if("x"===(r=a&&a.coordDim)||"y"===r){i=n[o];break}}if(i){var s=e.getAxis(r),e=q(i.stops,function(t){return{offset:0,coord:s.toGlobalCoord(s.dataToCoord(t.value)),color:t.color}}),l=e.length,h=i.outerColors.slice(),u=(l&&e[0].coord>e[l-1].coord&&(e.reverse(),h.reverse()),e[0].coord-10),c=e[l-1].coord+10,p=c-u;if(p<.001)return"transparent";I(e,function(t){t.offset=(t.coord-u)/p}),e.push({offset:l?e[l-1].offset:.5,color:h[1]||"transparent"}),e.unshift({offset:l?e[0].offset:.5,color:h[0]||"transparent"});l=new qh(0,0,0,0,e,!0);return l[r]=u,l[r+"2"]=c,l}}}(l,a)||l.getVisual("style")[l.getVisual("drawType")]),d=(g&&d.type===a.type&&T===this._step?(_&&!y?y=this._newPolygon(c,w):y&&!_&&(m.remove(y),y=this._polygon=null),p||this._initOrUpdateEndLabel(t,a,ap(C)),m.setClipPath(Xx(this,a,!1,t)),b&&f.updateData(l,{isIgnore:S,clipShape:o,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),zx(this._stackedOnPoints,w)&&zx(this._points,c)||(v?this._doUpdateAnimation(l,w,a,n,T,x):(T&&(c=Hx(c,a,T),w=w&&Hx(w,a,T)),g.setShape({points:c}),y&&y.setShape({points:c,stackedOnPoints:w})))):(b&&f.updateData(l,{isIgnore:S,clipShape:o,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),v&&this._initSymbolLabelAnimation(l,a,o),T&&(c=Hx(c,a,T),w=w&&Hx(w,a,T)),g=this._newPolyline(c),_&&(y=this._newPolygon(c,w)),p||this._initOrUpdateEndLabel(t,a,ap(C)),m.setClipPath(Xx(this,a,!0,t))),t.get(["emphasis","focus"])),n=t.get(["emphasis","blurScope"]),b=(g.useStyle(N(h.getLineStyle(),{fill:"none",stroke:C,lineJoin:"bevel"})),vl(g,t,"lineStyle"),0<g.style.lineWidth&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(g.getState("emphasis").style.lineWidth=+g.style.lineWidth+1),Cs(g).seriesIndex=t.seriesIndex,gl(g,d,n),Vx(t.get("smooth"))),f=t.get("smoothMonotone"),S=t.get("connectNulls");g.setShape({smooth:b,smoothMonotone:f,connectNulls:S}),y&&(v=l.getCalculationInfo("stackedOnSeries"),o=0,y.useStyle(N(u.getAreaStyle(),{fill:C,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),v&&(o=Vx(v.get("smooth"))),y.setShape({smooth:b,stackedOnSmooth:o,smoothMonotone:f,connectNulls:S}),vl(y,t,"areaStyle"),Cs(y).seriesIndex=t.seriesIndex,gl(y,d,n));l.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=i)}),this._polyline.onHoverStateChange=i,this._data=l,this._coordSys=a,this._stackedOnPoints=w,this._points=c,this._step=T,this._valueOrigin=x},qx.prototype.dispose=function(){},qx.prototype.highlight=function(t,e,n,i){var o=t.getData(),r=Uo(o,i);if(this._changePolyState("emphasis"),!(r instanceof Array)&&null!=r&&0<=r){var a=o.getLayout("points"),s=o.getItemGraphicEl(r);if(!s){var l=a[2*r],a=a[2*r+1];if(isNaN(l)||isNaN(a))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,a))return;(s=new sx(o,r)).x=l,s.y=a,s.setZ(t.get("zlevel"),t.get("z"));l=s.getSymbolPath().getTextContent();l&&(l.z2=this._polyline.z2+1),s.__temp=!0,o.setItemGraphicEl(r,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else yg.prototype.highlight.call(this,t,e,n,i)},qx.prototype.downplay=function(t,e,n,i){var o,r=t.getData(),a=Uo(r,i);this._changePolyState("normal"),null!=a&&0<=a?(o=r.getItemGraphicEl(a))&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay()):yg.prototype.downplay.call(this,t,e,n,i)},qx.prototype._changePolyState=function(t){var e=this._polygon;Js(this._polyline,t),e&&Js(e,t)},qx.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new Ax({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e},qx.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Ox({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n},qx.prototype._initSymbolLabelAnimation=function(t,l,h){var u,c,e=l.getBaseAxis(),p=e.inverse,e=("cartesian2d"===l.type?(u=e.isHorizontal(),c=!1):"polar"===l.type&&(u="angle"===e.dim,c=!0),t.hostModel),d=e.get("animationDuration"),f=("function"==typeof d&&(d=d(null)),e.get("animationDelay")||0),g="function"==typeof f?f(null):f;t.eachItemGraphicEl(function(t,e){var n,i,o,r,a,s=t;s&&(r=[t.x,t.y],a=i=n=void 0,a=c?(o=h,r=l.pointToCoord(r),u?(n=o.startAngle,i=o.endAngle,-r[1]/180*Math.PI):(n=o.r0,i=o.r,r[0])):u?(n=h.x,i=h.x+h.width,t.x):(n=h.y+h.height,i=h.y,t.y),o=i===n?0:(a-n)/(i-n),p&&(o=1-o),r="function"==typeof f?f(e):d*o+g,a=(t=s.getSymbolPath()).getTextContent(),s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,delay:r}),a&&a.animateFrom({style:{opacity:0}},{duration:300,delay:r}),t.disableLabelAnimation=!0)})},qx.prototype._initOrUpdateEndLabel=function(t,e,n){var h,i,o,r=t.getModel("endLabel");r.get("show")?(h=t.getData(),i=this._polyline,this._endLabel||((this._endLabel=new ms({z2:200})).ignoreClip=!0,i.setTextContent(this._endLabel),i.disableLabelAnimation=!0),0<=(o=Gx(h.getLayout("points")))&&(Wu(i,Gu(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:o,defaultText:function(t,e,n){if(null==n)return rx(h,t);var i=h,o=n,r=i.mapDimensionsAll("defaultedLabel");if(!F(o))return o+"";for(var a=[],s=0;s<r.length;s++){var l=i.getDimensionInfo(r[s]);l&&a.push(o[l.index])}return a.join(" ")},enableTextSetter:!0},(n=r,o=(t=(t=e).getBaseAxis()).isHorizontal(),t=t.inverse,r=o?t?"right":"left":"center",o=o?"middle":t?"top":"bottom",{normal:{align:n.get("align")||r,verticalAlign:n.get("verticalAlign")||o}})),i.textConfig.position=null)):this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},qx.prototype._endLabelOnDuring=function(t,e,n,i,o,r,a){var s,l,h,u,c,p,d,f,g,y,m=this._endLabel,v=this._polyline;m&&(t<1&&null==i.originalX&&(i.originalX=m.x,i.originalY=m.y),s=n.getLayout("points"),g=(l=n.hostModel).get("connectNulls"),h=r.get("precision"),r=r.get("distance")||0,c=(a=a.getBaseAxis()).isHorizontal(),a=a.inverse,e=e.shape,u=(c?r:0)*(a?-1:1),r=(c?0:-r)*(a?-1:1),d=void 0,1<=(f=(p=(c=function(t,e,n){for(var i,o,r=t.length/2,a="x"===n?0:1,s=0,l=-1,h=0;h<r;h++)if(o=t[2*h+a],!isNaN(o)&&!isNaN(t[2*h+1-a])){if(0!==h){if(i<=e&&e<=o||e<=i&&o<=e){l=h;break}s=h}i=o}return{range:[s,l],t:(e-i)/(o-i)}}(s,a=a?c?e.x:e.y+e.height:c?e.x+e.width:e.y,e=c?"x":"y")).range)[1]-p[0])?(1<f&&!g?(y=Ux(s,p[0]),m.attr({x:y[0]+u,y:y[1]+r}),o&&(d=l.getRawValue(p[0]))):((y=v.getPointOn(a,e))&&m.attr({x:y[0]+u,y:y[1]+r}),f=l.getRawValue(p[0]),g=l.getRawValue(p[1]),o&&(d=Qo(n,h,f,g,c.t))),i.lastFrameIndex=p[0]):(y=Ux(s,v=1===t||0<i.lastFrameIndex?p[0]:0),o&&(d=l.getRawValue(v)),m.attr({x:y[0]+u,y:y[1]+r})),o)&&$u(m).setLabelText(d)},qx.prototype._doUpdateAnimation=function(t,e,n,i,o,r){var a=this._polyline,s=this._polygon,l=t.hostModel,e=function(t,e,n,i,o,r,a,B){s=[],e.diff(t).add(function(t){s.push({cmd:"+",idx:t})}).update(function(t,e){s.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){s.push({cmd:"-",idx:t})}).execute();for(var s,l=s,h=[],u=[],c=[],p=[],d=[],f=[],g=[],y=gx(o,e,a),m=(gx(r,t,B),t.getLayout("points")||[]),v=e.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],w=!0,b=void 0;switch(x.cmd){case"=":var S=2*x.idx,b=2*x.idx1,M=m[S],T=m[1+S],C=v[b],A=v[b+1];(isNaN(M)||isNaN(T))&&(M=C,T=A),h.push(M,T),u.push(C,A),c.push(n[S],n[1+S]),p.push(i[b],i[b+1]),g.push(e.getRawIndex(x.idx1));break;case"+":M=x.idx,T=y.dataDimsForPoint,C=o.dataToPoint([e.get(T[0],M),e.get(T[1],M)]),A=(b=2*M,h.push(C[0],C[1]),u.push(v[b],v[b+1]),yx(y,o,e,M));c.push(A[0],A[1]),p.push(i[b],i[b+1]),g.push(e.getRawIndex(M));break;case"-":w=!1}w&&(d.push(x),f.push(f.length))}f.sort(function(t,e){return g[t]-g[e]});for(var I=_x(a=h.length),k=_x(a),D=_x(a),P=_x(a),L=[],_=0;_<f.length;_++){var O=f[_],R=2*_,E=2*O;I[R]=h[E],I[1+R]=h[1+E],k[R]=u[E],k[1+R]=u[1+E],D[R]=c[E],D[1+R]=c[1+E],P[R]=p[E],P[1+R]=p[1+E],L[_]=d[O]}return{current:I,next:k,stackedOnCurrent:D,stackedOnNext:P,status:L}}(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,r),r=e.current,h=e.stackedOnCurrent,u=e.next,c=e.stackedOnNext;if(o&&(r=Hx(e.current,n,o),h=Hx(e.stackedOnCurrent,n,o),u=Hx(e.next,n,o),c=Hx(e.stackedOnNext,n,o)),3e3<Fx(r,u)||s&&3e3<Fx(h,c))a.setShape({points:u}),s&&s.setShape({points:u,stackedOnPoints:c});else{a.shape.__points=e.current,a.shape.points=r;for(var p,n={shape:{points:u}},d=(e.current!==r&&(n.shape.__points=e.next),a.stopAnimation(),Su(a,n,l),s&&(s.setShape({points:r,stackedOnPoints:h}),s.stopAnimation(),Su(s,{shape:{stackedOnPoints:c}},l),a.shape.points!==s.shape.points)&&(s.shape.points=a.shape.points),[]),f=e.status,g=0;g<f.length;g++)"="===f[g].cmd&&(p=t.getItemGraphicEl(f[g].idx1))&&d.push({el:p,ptIdx:g});a.animators&&a.animators.length&&a.animators[0].during(function(){s&&s.dirtyShape();for(var t=a.shape.__points,e=0;e<d.length;e++){var n=d[e].el,i=2*d[e].ptIdx;n.x=t[i],n.y=t[1+i],n.markRedraw()}})}},qx.prototype.remove=function(t){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(t,e){t.__temp&&(n.remove(t),i.setItemGraphicEl(e,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},qx.type="line";var Yx,Zx=qx;function qx(){return null!==Yx&&Yx.apply(this,arguments)||this}var jx={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},Kx=function(t){return Math.round(t.length/2)};I1(function(t){var i;t.registerChartView(Zx),t.registerSeriesModel(ix),t.registerLayout((i=!0,{seriesType:"line",plan:dg(),reset:function(t){var u,e,c,p,n=t.getData(),d=t.coordinateSystem,t=t.pipelineContext,f=i||t.large;if(d)return t=q(d.dimensions,function(t){return n.mapDimension(t)}).slice(0,2),u=t.length,e=n.getCalculationInfo("stackResultDimension"),y_(n,t[0])&&(t[0]=e),y_(n,t[1])&&(t[1]=e),e=n.getDimensionInfo(t[0]),t=n.getDimensionInfo(t[1]),c=e&&e.index,p=t&&t.index,u&&{progress:function(t,e){for(var n=t.end-t.start,i=f&&_x(n*u),o=[],r=[],a=t.start,s=0;a<t.end;a++){var l,h=void 0;h=1===u?(l=e.getByDimIdx(c,a),d.dataToPoint(l,null,r)):(o[0]=e.getByDimIdx(c,a),o[1]=e.getByDimIdx(p,a),d.dataToPoint(o,null,r)),f?(i[s++]=h[0],i[s++]=h[1]):e.setItemLayout(a,h.slice())}f&&e.setLayout("points",i)}}}})),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),t=t.getModel("lineStyle").getLineStyle();t&&!t.stroke&&(t.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",t)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{seriesType:"line",reset:function(t,e,n){var i,o=t.getData(),r=t.get("sampling"),a=t.coordinateSystem,s=o.count();10<s&&"cartesian2d"===a.type&&r&&(i=a.getBaseAxis(),a=a.getOtherAxis(i),i=i.getExtent(),n=n.getDevicePixelRatio(),i=Math.abs(i[1]-i[0])*(n||1),1<(n=Math.round(s/i)))&&("lttb"===r&&t.setData(o.lttbDownSample(o.mapDimension(a.dim),1/n)),s=void 0,"string"==typeof r?s=jx[r]:"function"==typeof r&&(s=r),s)&&t.setData(o.downSample(o.mapDimension(a.dim),1/n,s,Kx))}})});var $x,Jx=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},Qx=(h(tw,$x=j),tw.prototype.getDefaultShape=function(){return new Jx},tw.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,o=e.r,r=e.width,a=e.angle,s=e.x-n(a)*r*(o/3<=r?1:2),l=e.y-i(a)*r*(o/3<=r?1:2),a=e.angle-Math.PI/2;t.moveTo(s,l),t.lineTo(e.x+n(a)*r,e.y+i(a)*r),t.lineTo(e.x+n(e.angle)*o,e.y+i(e.angle)*o),t.lineTo(e.x-n(a)*r,e.y-i(a)*r),t.lineTo(s,l)},tw);function tw(t){t=$x.call(this,t)||this;return t.type="pointer",t}var ew,nw=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},iw=(h(ow,ew=j),ow.prototype.getDefaultShape=function(){return new nw},ow.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=Math.max(e.r0||0,0),r=Math.max(e.r,0),a=.5*(r-o),s=o+a,l=e.startAngle,h=e.endAngle,e=e.clockwise,u=Math.cos(l),c=Math.sin(l),p=Math.cos(h),d=Math.sin(h);(e?h-l<2*Math.PI:l-h<2*Math.PI)&&(t.moveTo(u*o+n,c*o+i),t.arc(u*s+n,c*s+i,a,-Math.PI+l,l,!e)),t.arc(n,i,r,l,h,!e),t.moveTo(p*r+n,d*r+i),t.arc(p*s+n,d*s+i,a,h-2*Math.PI,h-Math.PI,!e),0!==o&&(t.arc(n,i,o,h,l,e),t.moveTo(u*o+n,d*o+i)),t.closePath()},ow);function ow(t){t=ew.call(this,t)||this;return t.type="sausage",t}function rw(t,e){var n=null==t?"":t+"";return e&&("string"==typeof e?n=e.replace("{value}",n):"function"==typeof e&&(n=e(t))),n}var aw,sw=2*Math.PI,lw=(h(hw,aw=yg),hw.prototype.render=function(t,e,n){this.group.removeAll();var i,o,r,a,s=t.get(["axisLine","lineStyle","color"]),l=(o=n,r=(i=t).get("center"),a=o.getWidth(),l=o.getHeight(),a=Math.min(a,l),{cx:B(r[0],o.getWidth()),cy:B(r[1],o.getHeight()),r:B(i.get("radius"),a/2)});this._renderMain(t,e,n,s,l),this._data=t.getData()},hw.prototype.dispose=function(){},hw.prototype._renderMain=function(t,e,n,i,o){for(var r=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,h=t.getModel("axisLine"),u=h.get("roundCap")?iw:ch,c=h.get("show"),p=h.getModel("lineStyle"),d=p.get("width"),f=(l-s)%sw||l===s?(l-s)%sw:sw,g=s,y=0;c&&y<i.length;y++){var m=new u({shape:{startAngle:g,endAngle:l=s+f*Math.min(Math.max(i[y][0],0),1),cx:o.cx,cy:o.cy,clockwise:a,r0:o.r-d,r:o.r},silent:!0});m.setStyle({fill:i[y][1]}),m.setStyle(p.getLineStyle(["color","width"])),r.add(m),g=l}function v(t){if(t<=0)return i[0][1];for(var e=0;e<i.length;e++)if(i[e][0]>=t&&(0===e?0:i[e-1][0])<t)return i[e][1];return i[e-1][1]}a||(h=s,s=l,l=h),this._renderTicks(t,e,n,v,o,s,l,a,d),this._renderTitleAndDetail(t,e,n,v,o),this._renderAnchor(t,o),this._renderPointer(t,e,n,v,o,s,l,a,d)},hw.prototype._renderTicks=function(t,e,n,i,o,r,a,E,s){for(var l,h,u,c=this.group,p=o.cx,d=o.cy,f=o.r,g=+t.get("min"),y=+t.get("max"),m=t.getModel("splitLine"),v=t.getModel("axisTick"),_=t.getModel("axisLabel"),x=t.get("splitNumber"),w=v.get("splitNumber"),b=B(m.get("length"),f),S=B(v.get("length"),f),M=r,T=(a-r)/x,C=T/w,A=m.getModel("lineStyle").getLineStyle(),I=v.getModel("lineStyle").getLineStyle(),k=m.get("distance"),D=0;D<=x;D++)if(L=Math.cos(M),O=Math.sin(M),m.get("show")&&(l=new Dh({shape:{x1:L*(f-(u=k?k+s:s))+p,y1:O*(f-u)+d,x2:L*(f-b-u)+p,y2:O*(f-b-u)+d},style:A,silent:!0}),"auto"===A.stroke&&l.setStyle({stroke:i(D/x)}),c.add(l)),_.get("show")&&(u=_.get("distance")+k,l=rw(mo(D/x*(y-g)+g),_.get("formatter")),h=i(D/x),c.add(new ms({style:Uu(_,{text:l,x:L*(f-b-u)+p,y:O*(f-b-u)+d,verticalAlign:O<-.8?"top":.8<O?"bottom":"middle",align:L<-.4?"left":.4<L?"right":"center"},{inheritColor:h}),silent:!0}))),v.get("show")&&D!==x){u=(u=v.get("distance"))?u+s:s;for(var P=0;P<=w;P++){var L=Math.cos(M),O=Math.sin(M),R=new Dh({shape:{x1:L*(f-u)+p,y1:O*(f-u)+d,x2:L*(f-S-u)+p,y2:O*(f-S-u)+d},silent:!0,style:I});"auto"===I.stroke&&R.setStyle({stroke:i((D+P/w)/x)}),c.add(R),M+=C}M-=C}else M+=T},hw.prototype._renderPointer=function(s,t,e,l,h,a,n,u,c){var o=this.group,r=this._data,p=this._progressEls,d=[],f=s.get(["pointer","show"]),g=s.getModel("progress"),y=g.get("show"),m=s.getData(),v=m.mapDimension("value"),i=+s.get("min"),_=+s.get("max"),x=[i,_],w=[a,n];function b(t,e){var t=m.getItemModel(t).getModel("pointer"),n=B(t.get("width"),h.r),i=B(t.get("length"),h.r),o=s.get(["pointer","icon"]),r=t.get("offsetCenter"),a=B(r[0],h.r),r=B(r[1],h.r),t=t.get("keepAspect"),o=o?Vy(o,a-n/2,r-i,n,i,null,t):new Qx({shape:{angle:-Math.PI/2,width:n,r:i,x:a,y:r}});return o.rotation=-(e+Math.PI/2),o.x=h.cx,o.y=h.cy,o}function S(t,e){var n=g.get("roundCap")?iw:ch,i=g.get("overlap"),o=i?g.get("width"):c/m.count(),r=i?h.r-o:h.r-(t+1)*o,o=i?h.r:h.r-t*o,n=new n({shape:{startAngle:a,endAngle:e,cx:h.cx,cy:h.cy,clockwise:u,r0:r,r:o}});return i&&(n.z2=_-m.get(v,t)%_),n}(y||f)&&(m.diff(r).add(function(t){var e,n;f&&(Mu(e=b(t,a),{rotation:-(yo(m.get(v,t),x,w,!0)+Math.PI/2)},s),o.add(e),m.setItemGraphicEl(t,e)),y&&(e=S(t,a),n=g.get("clip"),Mu(e,{shape:{endAngle:yo(m.get(v,t),x,w,n)}},s),o.add(e),d[t]=e)}).update(function(t,e){var n,i;f&&((i=b(t,n=(n=r.getItemGraphicEl(e))?n.rotation:a)).rotation=n,Su(i,{rotation:-(yo(m.get(v,t),x,w,!0)+Math.PI/2)},s),o.add(i),m.setItemGraphicEl(t,i)),y&&(i=S(t,(n=p[e])?n.shape.endAngle:a),e=g.get("clip"),Su(i,{shape:{endAngle:yo(m.get(v,t),x,w,e)}},s),o.add(i),d[t]=i)}).execute(),m.each(function(t){var e,n,i,o,r=m.getItemModel(t),a=r.getModel("emphasis");f&&(e=m.getItemGraphicEl(t),i=(n=m.getItemVisual(t,"style")).fill,e instanceof is?(o=e.style,e.useStyle(T({image:o.image,x:o.x,y:o.y,width:o.width,height:o.height},n))):(e.useStyle(n),"pointer"!==e.type&&e.setColor(i)),e.setStyle(r.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===e.style.fill&&e.setStyle("fill",l(yo(m.get(v,t),x,[0,1],!0))),e.z2EmphasisLift=0,vl(e,r),gl(e,a.get("focus"),a.get("blurScope"))),y&&((o=d[t]).useStyle(m.getItemVisual(t,"style")),o.setStyle(r.getModel(["progress","itemStyle"]).getItemStyle()),o.z2EmphasisLift=0,vl(o,r),gl(o,a.get("focus"),a.get("blurScope")))}),this._progressEls=d)},hw.prototype._renderAnchor=function(t,e){var n,i,o,r,t=t.getModel("anchor");t.get("show")&&(n=t.get("size"),r=t.get("icon"),i=t.get("offsetCenter"),o=t.get("keepAspect"),(r=Vy(r,e.cx-n/2+B(i[0],e.r),e.cy-n/2+B(i[1],e.r),n,n,null,o)).z2=t.get("showAbove")?1:0,r.setStyle(t.getModel("itemStyle").getItemStyle()),this.group.add(r))},hw.prototype._renderTitleAndDetail=function(c,t,e,p,d){var n=this,f=c.getData(),g=f.mapDimension("value"),y=+c.get("min"),m=+c.get("max"),v=new so,_=[],x=[],w=c.isAnimationEnabled();f.diff(this._data).add(function(t){_[t]=new ms({silent:!0}),x[t]=new ms({silent:!0})}).update(function(t,e){_[t]=n._titleEls[e],x[t]=n._detailEls[e]}).execute(),f.each(function(t){var e,a,n,i,o,r=f.getItemModel(t),s=f.get(g,t),l=new so,h=p(yo(s,[y,m],[0,1],!0)),u=r.getModel("title"),u=(u.get("show")&&(i=u.get("offsetCenter"),o=d.cx+B(i[0],d.r),i=d.cy+B(i[1],d.r),(e=_[t]).attr({style:Uu(u,{x:o,y:i,text:f.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:h})}),l.add(e)),r.getModel("detail"));u.get("show")&&(o=u.get("offsetCenter"),i=d.cx+B(o[0],d.r),r=d.cy+B(o[1],d.r),o=B(u.get("width"),d.r),n=B(u.get("height"),d.r),h=c.get(["progress","show"])?f.getItemVisual(t,"style").fill:h,e=x[t],a=u.get("formatter"),e.attr({style:Uu(u,{x:i,y:r,text:rw(s,a),width:isNaN(o)?null:o,height:isNaN(n)?null:n,align:"center",verticalAlign:"middle"},{inheritColor:h})}),i={normal:u},r=s,o=function(t){return rw(t,a)},(n=e)&&((n=$u(n)).prevValue=n.value,n.value=r,r=i.normal,n.valueAnimation=r.get("valueAnimation"),n.valueAnimation)&&(n.precision=r.get("precision"),n.defaultInterpolatedText=o,n.statesModels=i),w&&Ju(e,t,f,c,{getFormattedLabel:function(t,e,n,i,o,r){return rw(r?r.interpolatedValue:s,a)}}),l.add(e)),v.add(l)}),this.group.add(v),this._titleEls=_,this._detailEls=x},hw.type="gauge",hw);function hw(){var t=null!==aw&&aw.apply(this,arguments)||this;return t.type=hw.type,t}h(pw,uw=ig),pw.prototype.getInitialData=function(t,e){return n=this,i=F(i=["value"])?{coordDimensions:i}:T({},i),r=n.getSource(),i=c_(r,i),(i=new s_(i,n)).initData(r,o),i;var n,i,o,r},pw.type="series.gauge",pw.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,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}};var uw,cw=pw;function pw(){var t=null!==uw&&uw.apply(this,arguments)||this;return t.type=pw.type,t.visualStyleAccessPath="itemStyle",t.useColorPaletteOnData=!0,t}function dw(i,o){return o=o||[0,0],q(["x","y"],function(t,e){var t=this.getAxis(t),n=o[e],e=i[e]/2;return"category"===t.type?t.getBandWidth():Math.abs(t.dataToCoord(n-e)-t.dataToCoord(n+e))},this)}function fw(r,a){return a=a||[0,0],q([0,1],function(t){var e=a[t],n=r[t]/2,i=[],o=[];return i[t]=e-n,o[t]=e+n,i[1-t]=o[1-t]=a[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function gw(t,e){var n=this.getAxis(),e=e instanceof Array?e[0]:e,t=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(e-t)-n.dataToCoord(e+t))}function yw(o,r){return r=r||[0,0],q(["Radius","Angle"],function(t,e){var n=this["get"+t+"Axis"](),i=r[e],e=o[e]/2,n="category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-e)-n.dataToCoord(i+e));return n="Angle"===t?n*Math.PI/180:n},this)}function mw(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||O(t,"text")))}function vw(t,e,n){var i,o,r,a=t;return"text"===e?i=a:(i={},O(a,"text")&&(i.text=a.text),O(a,"rich")&&(i.rich=a.rich),O(a,"textFill")&&(i.fill=a.textFill),O(a,"textStroke")&&(i.stroke=a.textStroke),o={type:"text",style:i,silent:!0},r={},e=O(a,"textPosition"),n?r.position=e?a.textPosition:"inside":e&&(r.position=a.textPosition),O(a,"textPosition")&&(r.position=a.textPosition),O(a,"textOffset")&&(r.offset=a.textOffset),O(a,"textRotation")&&(r.rotation=a.textRotation),O(a,"textDistance")&&(r.distance=a.textDistance)),_w(i,t),I(i.rich,function(t){_w(t,t)}),{textConfig:r,textContent:o}}function _w(t,e){e&&(e.font=e.textFont||e.font,O(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),O(e,"textAlign")&&(t.align=e.textAlign),O(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),O(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),O(e,"textWidth")&&(t.width=e.textWidth),O(e,"textHeight")&&(t.height=e.textHeight),O(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),O(e,"textPadding")&&(t.padding=e.textPadding),O(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),O(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),O(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),O(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),O(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),O(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),O(e,"textBoxShadowOffsetY"))&&(t.shadowOffsetY=e.textBoxShadowOffsetY)}function xw(t,e,n){var i=t,o=(i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance),0<=i.textPosition.indexOf("inside")),r=t.fill||"#000",a=(ww(i,e),null==i.textFill);return o?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),i.textStroke||(i.textStroke=r),null==i.textStrokeWidth)&&(i.textStrokeWidth=2):(a&&(i.textFill=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,I(e.rich,function(t){ww(t,t)}),i}function ww(t,e){e&&(O(e,"fill")&&(t.textFill=e.fill),O(e,"stroke")&&(t.textStroke=e.fill),O(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),O(e,"font")&&(t.font=e.font),O(e,"fontStyle")&&(t.fontStyle=e.fontStyle),O(e,"fontWeight")&&(t.fontWeight=e.fontWeight),O(e,"fontSize")&&(t.fontSize=e.fontSize),O(e,"fontFamily")&&(t.fontFamily=e.fontFamily),O(e,"align")&&(t.textAlign=e.align),O(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),O(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),O(e,"width")&&(t.textWidth=e.width),O(e,"height")&&(t.textHeight=e.height),O(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),O(e,"padding")&&(t.textPadding=e.padding),O(e,"borderColor")&&(t.textBorderColor=e.borderColor),O(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),O(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),O(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),O(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),O(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),O(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),O(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),O(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),O(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),O(e,"textShadowOffsetY"))&&(t.textShadowOffsetY=e.textShadowOffsetY)}I1(function(t){t.registerChartView(lw),t.registerSeriesModel(cw)});var bw=La.CMD,Sw=2*Math.PI,Mw=["x","y"],Tw=["width","height"],Cw=[];function Aw(t,e){return Math.abs(t-e)<1e-5}function Iw(B){var o,t,e=B.data,z=B.len(),n=[],i=0,r=0,a=0,s=0;function l(t,e){o&&2<o.length&&n.push(o),o=[t,e]}function h(t,e,n,i){Aw(t,n)&&Aw(e,i)||o.push(t,e,n,i,n,i)}for(var u,c,p,d,f,g,y,m,v,_,x,w,b=0;b<z;){var S=e[b++],N=1===b;switch(N&&(a=i=e[b],s=r=e[b+1],S!==bw.L&&S!==bw.C&&S!==bw.Q||(o=[a,s])),S){case bw.M:i=a=e[b++],r=s=e[b++],l(a,s);break;case bw.L:h(i,r,P=e[b++],L=e[b++]),i=P,r=L;break;case bw.C:o.push(e[b++],e[b++],e[b++],e[b++],i=e[b++],r=e[b++]);break;case bw.Q:P=e[b++],L=e[b++],I=e[b++],t=e[b++],o.push(i+2/3*(P-i),r+2/3*(L-r),I+2/3*(P-I),t+2/3*(L-t),I,t),i=I,r=t;break;case bw.A:var M=e[b++],T=e[b++],C=e[b++],A=e[b++],I=e[b++],k=e[b++]+I,D=(b+=1,!e[b++]),P=Math.cos(I)*C+M,L=Math.sin(I)*A+T;N?l(a=P,s=L):h(i,r,P,L);for(var i=Math.cos(k)*C+M,r=Math.sin(k)*A+T,O=(D?-1:1)*Math.PI/2,R=I;D?k<R:R<k;R+=O){var E=D?Math.max(R+O,k):Math.min(R+O,k);u=R,E=E,c=M,p=T,d=C,f=A,g=w=x=_=v=m=y=g=void 0,g=Math.abs(E-u),g=4*Math.tan(g/4)/3,y=E<u?-1:1,m=Math.cos(u),u=Math.sin(u),v=Math.cos(E),E=Math.sin(E),_=v*d+c,x=E*f+p,w=d*g*y,g=f*g*y,o.push(m*d+c-w*u,u*f+p+g*m,_+w*E,x-g*v,_,x)}break;case bw.R:a=i=e[b++],s=r=e[b++],P=a+e[b++],L=s+e[b++],l(P,s),h(P,s,P,L),h(P,L,a,L),h(a,L,a,s),h(a,s,P,s);break;case bw.Z:o&&h(i,r,a,s),i=a,r=s}}return o&&2<o.length&&n.push(o),n}function kw(t,e){for(var n=t.length,i=t[n-2],o=t[n-1],r=[],a=0;a<e.length;)r[a++]=i,r[a++]=o;return r}function Dw(t,e){for(var n,i,o=[],r=[],a=0;a<Math.max(t.length,e.length);a++){var s=t[a],l=e[a],h=void 0,u=void 0;s?l?(n=h=(i=function(t,e){var n=t.length,i=e.length;if(n===i)return[t,e];for(var o=n<i?t:e,r=Math.min(n,i),i=Math.abs(i-n)/6,a=Math.ceil(i/((r-2)/6))+1,s=[o[0],o[1]],l=i,h=[],u=[],c=2;c<r;){var p=o[c-2],d=o[c-1],f=o[c++],g=o[c++],y=o[c++],m=o[c++],v=o[c++],_=o[c++];if(l<=0)s.push(f,g,y,m,v,_);else{for(var x=Math.min(l,a-1)+1,w=1;w<=x;w++){var b=w/x;jr(p,f,y,v,b,h),jr(d,g,m,_,b,u),s.push(h[1],u[1],h[2],u[2],p=h[3],d=u[3]),f=h[5],g=u[5],y=h[6],m=u[6]}l-=x-1}}return o===t?[s,e]:[t,s]}(s,l))[0],i=u=i[1]):(u=kw(i||s,s),h=s):(h=kw(n||l,l),u=l),o.push(h),r.push(u)}return[o,r]}function Pw(t){for(var e=0,n=0,i=0,o=t.length,r=0,a=o-2;r<o;a=r,r+=2){var s=t[a],l=t[a+1],h=t[r],u=t[r+1],c=s*u-h*l;e+=c,n+=(s+h)*c,i+=(l+u)*c}return 0===e?[t[0]||0,t[1]||0]:[n/e/3,i/e/3,e]}function Lw(t,e,n,i){for(var o,r=[],a=0;a<t.length;a++){for(var s=t[a],l=e[a],h=Pw(s),u=Pw(l),c=(null==o&&(o=h[2]<0!=u[2]<0),[]),p=[],d=0,f=1/0,g=[],y=s.length,m=6*function(t,e,n,i){for(var o=(t.length-2)/6,r=1/0,a=0,s=t.length,l=s-2,h=0;h<o;h++){for(var u=6*h,c=0,p=0;p<s;p+=2){var d=0===p?u:(u+p-2)%l+2,f=t[d]-n[0],d=t[1+d]-n[1],f=e[p]-i[0]-f,d=e[p+1]-i[1]-d;c+=f*f+d*d}c<r&&(r=c,a=h)}return a}(s=o?function(t){for(var e=[],n=t.length,i=0;i<n;i+=2)e[i]=t[n-i-2],e[i+1]=t[n-i-1];return e}(s):s,l,h,u),v=y-2,_=0;_<v;_+=2){var x=(m+_)%v+2;c[_+2]=s[x]-h[0],c[_+3]=s[1+x]-h[1]}if(c[0]=s[m]-h[0],c[1]=s[1+m]-h[1],0<n)for(var w=i/n,b=-i/2;b<=i/2;b+=w){for(var S=Math.sin(b),M=Math.cos(b),T=0,_=0;_<s.length;_+=2){var C=c[_],A=c[_+1],I=l[_]-u[0],k=l[_+1]-u[1],D=I*M-k*S,I=I*S+k*M,k=(g[_]=D)-C,D=(g[_+1]=I)-A;T+=k*k+D*D}if(T<f)for(var f=T,d=b,P=0;P<g.length;P++)p[P]=g[P]}else for(var L=0;L<y;L+=2)p[L]=l[L]-u[0],p[L+1]=l[L+1]-u[1];r.push({from:c,to:p,fromCp:h,toCp:u,rotation:-d})}return r}function Ow(t,e,n){var i,o,r,a,s;t&&e&&(t.path||t.createPathProxy(),(o=t.path).beginPath(),t.buildPath(o,t.shape),e.path||e.createPathProxy(),(t=(t=e.path)===o?new La(!1):t).beginPath(),Bw(e)?e.__oldBuildPath(t,e.shape):e.buildPath(t,e.shape),t=Lw((o=Dw(Iw(o),Iw(t)))[0],o[1],10,Math.PI),o=t,t=0,Bw(i=e)?Ew(i,o,t):((i=i).__oldBuildPath=i.buildPath,i.buildPath=Rw,Ew(i,o,t)),r=n&&n.done,a=n&&n.aborted,s=n&&n.during,e.animateTo({__morphT:1},N({during:function(t){e.dirtyShape(),s&&s(t)},done:function(){var t;Bw(t=e)&&(t.buildPath=t.__oldBuildPath,t.__oldBuildPath=t.__morphingData=null),e.createPathProxy(),e.dirtyShape(),r&&r()},aborted:function(){a&&a()}},n)))}function Rw(t){for(var e=this.__morphingData,n=this.__morphT,i=1-n,o=[],r=0;r<e.length;r++){var a=e[r],s=a.from,l=a.to,h=a.rotation*n,u=a.fromCp,a=a.toCp,c=Math.sin(h),p=Math.cos(h);Gt(o,u,a,n);for(var d=0;d<s.length;d+=2){var f=s[d],g=s[d+1],f=f*i+l[d]*n,g=g*i+l[d+1]*n;Cw[d]=f*p-g*c+o[0],Cw[d+1]=f*c+g*p+o[1]}for(d=0;d<s.length;)0===d&&t.moveTo(Cw[d++],Cw[d++]),t.bezierCurveTo(Cw[d++],Cw[d++],Cw[d++],Cw[d++],Cw[d++],Cw[d++])}}function Ew(t,e,n){t.__morphingData=e,t.__morphT=n}function Bw(t){return null!=t.__oldBuildPath}function zw(t){return!!t.__combiningSubList}function Nw(t,e,n,i){for(var o=[],r=0,a=0;a<t.length;a++){var s=t[a];if(zw(s)){for(var l=s.__combiningSubList,h=0;h<l.length;h++)o.push(l[h]);r+=l.length}else o.push(s),r++}if(r){for(var u,c=n?n.dividingMethod:null,p=Uw(e,r,c),d=(wt(p.length===r),n&&n.done),f=n&&n.aborted,g=n&&n.during,y=0,m=!1,v=N({during:function(t){g&&g(t)},done:function(){var t;++y===p.length&&(zw(t=e)&&(Fw(t=t,null),t.addSelfToZr=t.__oldAddSelfToZr,t.removeSelfFromZr=t.__oldRemoveSelfFromZr,t.buildPath=t.__oldBuildPath,t.childrenRef=t.__combiningSubList=t.__oldAddSelfToZr=t.__oldRemoveSelfFromZr=t.__oldBuildPath=null),d)&&d()},aborted:function(){m||(m=!0,f&&f())}},n),a=0;a<r;a++){var _=o[a],x=p[a];i&&i(e,x,!0),Ow(_,x,v)}return c=p,zw(n=e)?Fw(n,c):(Fw(u=n,c),u.__oldAddSelfToZr=n.addSelfToZr,u.__oldRemoveSelfFromZr=n.removeSelfFromZr,u.addSelfToZr=Vw,u.removeSelfFromZr=Ww,u.__oldBuildPath=u.buildPath,u.buildPath=kt,u.childrenRef=Gw),{fromIndividuals:o,toIndividuals:p,count:r}}}function Fw(t,e){if(t.__combiningSubList!==e){if(Hw(t,"removeSelfFromZr"),t.__combiningSubList=e)for(var n=0;n<e.length;n++)e[n].parent=t;Hw(t,"addSelfToZr")}}function Vw(t){this.__oldAddSelfToZr(t),Hw(this,"addSelfToZr")}function Hw(t,e){var n=t.__combiningSubList,i=t.__zr;if(n&&i)for(var o=0;o<n.length;o++)n[o][e](i)}function Ww(t){this.__oldRemoveSelfFromZr(t);for(var e=this.__combiningSubList,n=0;n<e.length;n++)e[n].removeSelfFromZr(t)}function Gw(){return this.__combiningSubList}function Uw(t,e,n){return("duplicate"===n?Xw:function(t,e){var n=[];if(!(e<=0)){if(1===e)return Xw(t,e);if(t instanceof ps)for(var i=(c=t.shape).height>c.width?1:0,o=Tw[i],r=Mw[i],a=c[o]/e,s=c[r],l=0;l<e;l++,s+=a){var h={x:c.x,y:c.y,width:c.width,height:c.height},u=(h[r]=s,h[o]=l<e-1?a:c[r]+c[o]-s,new ps({shape:h}));n.push(u)}else{if(!(t instanceof ch))return Xw(t,e);for(var c,p=(c=t.shape).clockwise,i=c.startAngle,d=c.endAngle,f=(function(t,e,n){return e+Sw*Math[n?"ceil":"floor"]((t-e)/Sw)}(i,c.endAngle,p)-i)/e,g=i,l=0;l<e;l++,g+=f){u=new ch({shape:{cx:c.cx,cy:c.cy,r:c.r,r0:c.r0,clockwise:p,startAngle:g,endAngle:l===e-1?d:g+f}});n.push(u)}}}return n})(t,e)}function Xw(t,e){var n=[];if(!(e<=0))for(var i=t.constructor,o=0;o<e;o++){var r=new i({shape:M(t.shape)});n.push(r)}return n}var Yw,Zw=Xo(),qw=(k({x:1,y:1,scaleX:1,scaleY:1,originX:1,originY:1,rotation:1}).join(", "),{color:"fill",borderColor:"stroke"}),jw={symbol:1,symbolSize:1,symbolKeepAspect:1,legendSymbol:1,visualMeta:1,liftZ:1,decal:1},Kw="emphasis",$w="normal",Ey="blur",ar="select",Jw=[$w,Kw,Ey,ar],Qw={normal:["itemStyle"],emphasis:[Kw,"itemStyle"],blur:[Ey,"itemStyle"],select:[ar,"itemStyle"]},tb={normal:["label"],emphasis:[Kw,"label"],blur:[Ey,"label"],select:[ar,"label"]},eb="e\0\0",nb={normal:{},emphasis:{},blur:{},select:{}},ib={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},ob=new Ue,rb={cartesian2d:function(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:S(dw,e)}}},geo:function(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:S(fw,e)}}},singleAxis:function(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:S(gw,e)}}},polar:function(i){var o=i.getRadiusAxis(),r=i.getAngleAxis(),t=o.getExtent();return t[0]>t[1]&&t.reverse(),{coordSys:{type:"polar",cx:i.cx,cy:i.cy,r:t[1],r0:t[0]},api:{coord:function(t){var e=o.dataToRadius(t[0]),t=r.dataToAngle(t[1]),n=i.coordToPoint([e,t]);return n.push(e,t*Math.PI/180),n},size:S(yw,i)}}},calendar:function(n){var t=n.getRect(),e=n.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(t,e){return n.dataToPoint(t,e)}}}}},ab=(h(sb,Yw=ig),sb.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},sb.prototype.getInitialData=function(t,e){return v_(this.getSource(),this)},sb.prototype.getDataParams=function(t,e,n){t=Yw.prototype.getDataParams.call(this,t,e);return n&&(t.info=Zw(n).info),t},sb.type="series.custom",sb.dependencies=["grid","polar","geo","singleAxis","calendar"],sb.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,clip:!1},sb);function sb(){var t=null!==Yw&&Yw.apply(this,arguments)||this;return t.type=sb.type,t}h(ub,lb=yg),ub.prototype.render=function(o,t,r,a){var s,e,n,i,l,h=this._data,u=o.getData(),c=this.group,p=kb(o,u,t,r),t=o.__transientTransitionOpt,t=(!t||null!=t.from&&null!=t.to?(s=new Gb(o,t),e=t?"multiple":"oneToOne",new Ov(h?h.getIndices():[],u.getIndices(),cb(h,e,t&&t.from),cb(u,e,t&&t.to),null,e).add(function(t){Db(r,null,t,p(t,a),o,c,u,null)}).remove(function(t){Fb(h.getItemGraphicEl(t),o,c)}).update(function(t,e){s.reset("oneToOne");e=h.getItemGraphicEl(e);s.findAndAddFrom(e),s.hasFrom()&&(Wb(e,c),e=null),Db(r,e,t,p(t,a),o,c,u,s),s.applyMorphing()}).updateManyToOne(function(t,e){s.reset("manyToOne");for(var n=0;n<e.length;n++){var i=h.getItemGraphicEl(e[n]);s.findAndAddFrom(i),Wb(i,c)}Db(r,null,t,p(t,a),o,c,u,s),s.applyMorphing()}).updateOneToMany(function(t,e){s.reset("oneToMany");var n=t.length,e=h.getItemGraphicEl(e);s.findAndAddFrom(e),Wb(e,c);for(var i=0;i<n;i++)Db(r,null,t[i],p(t[i],a),o,c,u,s);s.applyMorphing()}).execute()):(h&&h.each(function(t){Fb(h.getItemGraphicEl(t),o,c)}),u.each(function(t){Db(r,null,t,p(t,a),o,c,u,null)})),o.get("clip",!0)&&(t=o.coordinateSystem,e=!1,n=o,t)?"polar"===t.type?Bx(t,e,n):"cartesian2d"===t.type?Ex(t,e,n,i,l):null:null);t?c.setClipPath(t):c.removeClipPath(),this._data=u},ub.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},ub.prototype.incrementalRender=function(t,e,n,i,o){var r=e.getData(),a=kb(e,r,n,i);function s(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var l=t.start;l<t.end;l++)Db(null,null,l,a(l,o),e,this.group,r,null).traverse(s)},ub.prototype.filterForExposedEvent=function(t,e,n,i){var o=e.element;if(null==o||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},ub.type="custom";var lb,hb=ub;function ub(){var t=null!==lb&&lb.apply(this,arguments)||this;return t.type=ub.type,t}function cb(n,t,e){var i,o;if(n)return"oneToOne"===t?function(t,e){return n.getId(e)}:(i=n.getDimension(e),(t=n.getDimensionInfo(i))||f(""),o=t.ordinalMeta,function(t,e){e=n.get(i,e);return null==(e=o?o.categories[e]:e)||yt(e)?t+"":"_ec_"+e})}function pb(t){var e=t.type;if("path"===e){var n=t.shape,i=null!=n.width&&null!=n.height?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,o=Vb(n),i=mu(o,null,i,n.layout||"center");Zw(i).customPathData=o}else if("image"===e)i=new is({}),Zw(i).customImagePath=t.style.image;else if("text"===e)i=new ms({});else if("group"===e)i=new so;else{if("compoundPath"===e)throw new Error('"compoundPath" is not supported yet.');n=yu(e);n||f(""),i=new n}return Zw(i).customGraphicType=e,i.name=t.name,i.z2EmphasisLift=1,i.z2SelectLift=1,i}function db(t,e,n,i,o,r,a,s,l,h){var u,c={},p={},d=e.isGroup?null:e,f=(n||yb("shape",e,null,o,c,l),mb("shape",o,p),n||yb("extra",e,null,o,c,l),mb("extra",o,p),n||vb(e,null,o,c,l),Cb(f=o,u=p,"position"),Cb(f,u,"scale"),Cb(f,u,"origin"),Ab(f,u,"x"),Ab(f,u,"y"),Ab(f,u,"scaleX"),Ab(f,u,"scaleY"),Ab(f,u,"originX"),Ab(f,u,"originY"),Ab(f,u,"rotation"),a&&a.normal.cfg);return f&&e.setTextConfig(f),"text"===e.type&&r&&(O(u=r,"textFill")&&(u.fill=u.textFill),O(u,"textStroke"))&&(u.stroke=u.textStroke),r&&(a=void 0,f=Hb(e)?r.decal:null,t&&f&&(f.dirty=!0,a=dm(f,t)),r.__decalPattern=a),n||_b(e,null,o,r,c,l),d&&O(o,"invisible")&&(d.invisible=o.invisible),n||(fb(e,p,r),gb(e,i,o,s,c,l)),O(o,"silent")&&(e.silent=o.silent),O(o,"ignore")&&(e.ignore=o.ignore),h||O(o,"info")&&(Zw(e).info=o.info),r?e.dirty():e.markRedraw(),n?p:null}function fb(t,e,n){var i=t.isGroup?null:t;if(i&&n)for(var o=n.__decalPattern,r=void 0,a=(o&&(r=n.decal,n.decal=o),i.useStyle(n),o&&(n.decal=r),i.animators),s=0;s<a.length;s++){var l=a[s];"style"===l.targetName&&l.changeTarget(i.style)}e&&t.attr(e)}function gb(t,e,n,i,o,r){o&&(n=n.during,(r?Mu:Su)(t,o,i,{dataIndex:e,isFrom:!0,during:(Zw(t).userDuring=n)?S(Sb,{el:t,userDuring:n}):null}))}function yb(t,e,n,i,o,r){var a=i[t];if(a){var s,l,h=e[t],u=a.enterFrom;if(r&&u)for(var c=c||(o[t]={}),p=k(u),d=0;d<p.length;d++)c[v=p[d]]=u[v];if(!r&&h&&(null==n||"shape"!==t))if(a.transition){c=c||(o[t]={});for(var f=Oo(a.transition),d=0;d<f.length;d++){var g=h[v=f[d]];c[v]=g}}else if(0<=A(i.transition,t)){c=c||(o[t]={});for(var y=k(h),d=0;d<y.length;d++){g=h[v=y[d]];s=a[v],l=g,(it(s)?s!==l:null!=s&&isFinite(s))&&(c[v]=g)}}var m=a.leaveTo;if(m)for(var v,r=xb(e),_=r[t]||(r[t]={}),x=k(m),d=0;d<x.length;d++)_[v=x[d]]=m[v]}}function mb(t,e,n){var i=e[t];if(i)for(var o=n[t]={},r=k(i),a=0;a<r.length;a++){var s=r[a];o[s]=Dn(i[s])}}function vb(t,e,n,i,o){var r=n.enterFrom;if(o&&r)for(var a=k(r),s=0;s<a.length;s++)i[c=a[s]]=r[c];if(!o)if(e){o=function(t,e){if(!t||t===e||t.parent===e.parent)return t;var n=ob.transform||(ob.transform=De([])),i=t.getComputedTransform(),i=(i?Pe(n,i):De(n),e.parent);i&&i.getComputedTransform();return ob.originX=t.originX,ob.originY=t.originY,ob.parent=i,ob.decomposeTransform(),ob}(e,t);Ib(i,"x",o),Ib(i,"y",o),Ib(i,"scaleX",o),Ib(i,"scaleY",o),Ib(i,"originX",o),Ib(i,"originY",o),Ib(i,"rotation",o)}else if(n.transition)for(var l,h=Oo(n.transition),s=0;s<h.length;s++)"style"!==(c=h[s])&&"shape"!==c&&"extra"!==c&&(l=t[c],i[c]=l);else Ib(i,"x",t),Ib(i,"y",t);var u=n.leaveTo;if(u)for(var c,p=xb(t),d=k(u),s=0;s<d.length;s++)p[c=d[s]]=u[c]}function _b(t,e,n,i,o,r){if(i){var a=(e||t).style,s=i.enterFrom;if(r&&s)for(var l=k(s),h=h||(o.style={}),u=0;u<l.length;u++)h[y=l[u]]=s[y];if(!r&&a)if(i.transition){var c=Oo(i.transition);h=h||(o.style={});for(u=0;u<c.length;u++){var p=a[y=c[u]];h[y]=p}}else if(t.getAnimationStyleProps&&0<=A(n.transition,"style")){var e=t.getAnimationStyleProps(),d=e?e.style:null;if(d){h=h||(o.style={});for(var f=k(i),u=0;u<f.length;u++)d[y=f[u]]&&(p=a[y],h[y]=p)}}var g=i.leaveTo;if(g)for(var y,m=k(g),r=xb(t),v=r.style||(r.style={}),u=0;u<m.length;u++)v[y=m[u]]=g[y]}}function xb(t){t=Zw(t);return t.leaveToProps||(t.leaveToProps={})}var wb={},bb={setTransform:function(t,e){return wb.el[t]=e,this},getTransform:function(t){return wb.el[t]},setShape:function(t,e){return(wb.el.shape||(wb.el.shape={}))[t]=e,wb.isShapeDirty=!0,this},getShape:function(t){var e=wb.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=wb.el.style;return n&&(n[t]=e,wb.isStyleDirty=!0),this},getStyle:function(t){var e=wb.el.style;if(e)return e[t]},setExtra:function(t,e){return(wb.el.extra||(wb.el.extra={}))[t]=e,this},getExtra:function(t){var e=wb.el.extra;if(e)return e[t]}};function Sb(){var t,e=this.el;e&&(Zw(e).userDuring!==(t=this.userDuring)?this.el=this.userDuring=null:(wb.el=e,wb.isShapeDirty=!1,wb.isStyleDirty=!1,t(bb),wb.isShapeDirty&&e.dirtyShape&&e.dirtyShape(),wb.isStyleDirty&&e.dirtyStyle&&e.dirtyStyle()))}function Mb(t,e,n,i,o){var r,e=e.isGroup?null:e,o=o&&o[t].cfg;e&&(r=e.ensureState(t),!1===i?(t=e.getState(t))&&(t.style=null):r.style=i||null,o&&(r.textConfig=o),el(e))}function Tb(t,e,n){if(!t.isGroup){var i=t,t=n.currentZ,n=n.currentZLevel,t=(i.z=t,i.zlevel=n,e.z2);null!=t&&(i.z2=t||0);for(var o,r,a,s,l=0;l<Jw.length;l++)o=i,r=e,a=Jw[l],s=void 0,null!=(r=(r=(s=a===$w)?r:Rb(r,a))?r.z2:null)&&((s?o:o.ensureState(a)).z2=r||0)}}function Cb(t,e,n,i){t=t[n],n=ib[n];t&&(i?(e[n[0]]=i[n[0]],e[n[1]]=i[n[1]]):(e[n[0]]=t[0],e[n[1]]=t[1]))}function Ab(t,e,n,i){null!=t[n]&&(e[n]=(i||t)[n])}function Ib(t,e,n){n&&(t[e]=n[e])}function kb(a,s,e,t){for(var i,o,l,n,r=a.get("renderItem"),h=a.coordinateSystem,u={},c=(h&&(u=h.prepareCustoms?h.prepareCustoms(h):rb[h.type](h)),N({getWidth:t.getWidth,getHeight:t.getHeight,getZr:t.getZr,getDevicePixelRatio:t.getDevicePixelRatio,value:function(t,e){return null==e&&(e=l),s.get(s.getDimension(t||0),e)},style:function(t,e){null==e&&(e=l);var n=s.getItemVisual(e,"style"),i=n&&n.fill,n=n&&n.opacity,o=x(e,$w).getItemStyle(),n=(null!=i&&(o.fill=i),null!=n&&(o.opacity=n),{inheritColor:C(i)?i:"#000"}),i=w(e,$w),r=Uu(i,null,n,!1,!0),e=(r.text=i.getShallow("show")?L(a.getFormattedLabel(e,$w),rx(s,e)):null,Xu(i,n,!1));return S(t,o),o=xw(o,r,e),t&&b(o,t),o.legacy=!0,o},ordinalRawValue:function(t,e){null==e&&(e=l);var t=s.getDimensionInfo(t||0);if(t)return e=s.get(t.name,e),(t=t&&t.ordinalMeta)?t.categories[e]:e},styleEmphasis:function(t,e){var n=x(e=null==e?l:e,Kw).getItemStyle(),i=w(e,Kw),o=Uu(i,null,null,!0,!0),e=(o.text=i.getShallow("show")?vt(a.getFormattedLabel(e,Kw),a.getFormattedLabel(e,$w),rx(s,e)):null,Xu(i,null,!0));return S(t,n),n=xw(n,o,e),t&&b(n,t),n.legacy=!0,n},visual:function(t,e){{var n;if(null==e&&(e=l),O(qw,t))return(n=s.getItemVisual(e,"style"))?n[qw[t]]:null}if(O(jw,t))return s.getItemVisual(e,t)},barLayout:function(t){if("cartesian2d"===h.type)return function(t){var e=[],n=t.axis;if("category"===n.type){for(var i=n.getBandWidth(),o=0;o<t.count;o++)e.push(N({bandWidth:i,axisKey:"axis0",stackId:N_+o},t));for(var r=W_(e),a=[],o=0;o<t.count;o++){var s=r.axis0[N_+o];s.offsetCenter=s.offset+s.width/2,a.push(s)}return a}}(N({axis:h.getBaseAxis()},t))},currentSeriesIndices:function(){return e.getCurrentSeriesIndices()},font:function(t){return Ku(t,e)}},u.api||{})),p={context:{},seriesId:a.id,seriesName:a.name,seriesIndex:a.seriesIndex,coordSys:u.coordSys,dataInsideLength:s.count(),encode:(i=a.getData(),o={},I(i.dimensions,function(t,e){var n,t=i.getDimensionInfo(t);t.isExtraCoord||(n=t.coordDim,(o[n]=o[n]||[])[t.coordDimIndex]=e)}),o)},d={},f={},g={},y={},m=0;m<Jw.length;m++){var v=Jw[m];g[v]=a.getModel(Qw[v]),y[v]=a.getModel(tb[v])}function _(t){return t===l?n=n||s.getItemModel(t):s.getItemModel(t)}function x(t,e){return s.hasItemOption?t===l?d[e]||(d[e]=_(t).getModel(Qw[e])):_(t).getModel(Qw[e]):g[e]}function w(t,e){return s.hasItemOption?t===l?f[e]||(f[e]=_(t).getModel(tb[e])):_(t).getModel(tb[e]):y[e]}return function(t,e){return l=t,n=null,d={},f={},r&&r(N({dataIndexInside:t,dataIndex:s.getRawIndex(t),actionType:e?e.type:null},p),c)};function b(t,e){for(var n in e)O(e,n)&&(t[n]=e[n])}function S(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition)&&(e.textPosition=t.textPosition)}}function Db(t,e,n,i,o,r,a,s){if(i)return(e=Pb(t,e,n,i,o,r,0,s))&&a.setItemGraphicEl(n,e),gl(e,i.focus,i.blurScope),e;Wb(e,r)}function Pb(t,e,n,i,o,r,a,s){var l=-1,h=(e&&Lb(e,i)&&(l=r.childrenRef().indexOf(e),e=null),!e);e?e.clearStates():e=pb(i);var u=(Zw(e).canMorph=i.morph&&Hb(e))&&s&&s.hasFrom(),h=h&&!u,c=(nb.normal.cfg=nb.normal.conOpt=nb.emphasis.cfg=nb.emphasis.conOpt=nb.blur.cfg=nb.blur.conOpt=nb.select.cfg=nb.select.conOpt=null,nb.isLegacy=!1,e),p=n,d=i,f=o,g=h,y=nb;if(!c.isGroup){Ob(d,null,y),Ob(d,Kw,y);var m=y.normal.conOpt,d=y.emphasis.conOpt,v=y.blur.conOpt,_=y.select.conOpt;if(null!=m||null!=d||null!=_||null!=v){var x=c.getTextContent();if(!1===m)x&&c.removeTextContent();else{m=y.normal.conOpt=m||{type:"text"},x?x.clearStates():(x=pb(m),c.setTextContent(x));d=m&&m.style;db(null,x,null,p,m,d,null,f,g,!0);for(var w=0;w<Jw.length;w++){var b,S=Jw[w];S!==$w&&(b=y[S].conOpt,Mb(S,x,0,Eb(m,b,S),null))}d?x.dirty():x.markRedraw()}}}_=e,v=n,c=i,p=o,f=h,!1===(c=c.clipPath)?_&&_.getClipPath()&&_.removeClipPath():c&&((g=(g=_.getClipPath())&&Lb(g,c)?null:g)||(g=pb(c),_.setClipPath(g)),db(null,g,null,v,c,null,null,p,f,!1)),d=db(t,e,u,n,i,i.style,nb,o,h,!1);u&&s.addTo(e,i,n,d);for(var M=0;M<Jw.length;M++){var T=Jw[M];T!==$w&&Mb(T,e,0,Eb(i,Rb(i,T),T),nb)}if(Tb(e,i,o),"group"===i.type){var C=t,A=e,I=n,k=o,D=s,P=(g=i).children,L=P?P.length:0,g="byName"===(c=g.$mergeChildren)||g.diffChildrenByName,c=!1===c;if(L||g||c)if(g){g={api:C,oldChildren:A.children()||[],newChildren:P||[],dataIndex:I,seriesModel:k,group:A,morphPreparation:D};new Ov(g.oldChildren,g.newChildren,Bb,Bb,g).add(zb).update(zb).remove(Nb).execute()}else{c&&A.removeAll();for(var O=0;O<L;O++)P[O]&&Pb(C,A.childAt(O),I,P[O],k,A,0,D);for(var R=A.childCount()-1;O<=R;R--)Fb(A.childAt(R),k,A)}}return 0<=l?r.replaceAt(e,l):r.add(e),e}function Lb(t,e){var n,t=Zw(t),i=e.type,o=e.shape,e=e.style;return null!=i&&i!==t.customGraphicType||"path"===i&&(n=o)&&(O(n,"pathData")||O(n,"d"))&&Vb(o)!==t.customPathData||"image"===i&&O(e,"image")&&e.image!==t.customImagePath}function Ob(t,e,n){var i=e?Rb(t,e):t,o=e?Eb(t,i,Kw):t.style,r=t.type,i=i?i.textConfig:null,t=t.textContent,t=t?e?Rb(t,e):t:null,o=(o&&(n.isLegacy||mw(o,r,!!i,!!t))&&(n.isLegacy=!0,o=vw(o,r,!e),!i&&o.textConfig&&(i=o.textConfig),!t)&&o.textContent&&(t=o.textContent),e||!t||(r=t).type||(r.type="text"),e?n[e]:n.normal);o.cfg=i,o.conOpt=t}function Rb(t,e){return e?t?t[e]:null:t}function Eb(t,e,n){e=e&&e.style;return e=null==e&&n===Kw&&t?t.styleEmphasis:e}function Bb(t,e){t=t&&t.name;return null!=t?t:eb+e}function zb(t,e){var n=this.context,t=null!=t?n.newChildren[t]:null,e=null!=e?n.oldChildren[e]:null;Pb(n.api,e,n.dataIndex,t,n.seriesModel,n.group,0,n.morphPreparation)}function Nb(t){var e=this.context;Fb(e.oldChildren[t],e.seriesModel,e.group)}function Fb(t,e,n){var i;t&&((i=Zw(t).leaveToProps)?Su(t,i,e,{cb:function(){n.remove(t)}}):n.remove(t))}function Vb(t){return t&&(t.pathData||t.d)}function Hb(t){return t&&t instanceof j}function Wb(t,e){t&&e.remove(t)}Ub.prototype.hasFrom=function(){return!!this._fromList.length},Ub.prototype.findAndAddFrom=function(t){if(t&&(Zw(t).canMorph&&this._fromList.push(t),t.isGroup))for(var e=t.childrenRef(),n=0;n<e.length;n++)this.findAndAddFrom(e[n])},Ub.prototype.addTo=function(t,e,n,i){t&&(this._toList.push(t),this._toElOptionList.push(e),this._toDataIndices.push(n),this._allPropsFinalList.push(i))},Ub.prototype.applyMorphing=function(){var t=this._type,e=this._fromList,n=this._toList.length,i=e.length;if(i&&n)if("oneToOne"===t)for(var o=0;o<n;o++)this._oneToOneForSingleTo(o,o);else if("manyToOne"===t)for(var r=Math.max(1,Math.floor(i/n)),o=0,a=0;o<n;o++,a+=r)this._manyToOneForSingleTo(o,i<=a?null:a,n<=o+1?i-a:r);else if("oneToMany"===t)for(var s=Math.max(1,Math.floor(n/i)),l=0,h=0;l<n;l+=s,h++)this._oneToManyForSingleFrom(l,n<=l+s?n-l:s,i<=h?null:h)},Ub.prototype._oneToOneForSingleTo=function(t,e){var n,i=this._toList[t],o=this._toElOptionList[t],r=this._toDataIndices[t],a=this._allPropsFinalList[t],e=this._fromList[e],s=this._getOrCreateMorphConfig(r),l=s.duration;e&&zw(e)?(fb(i,a,o.style),l&&(n=Nw([e],i,s,Xb),this._processResultIndividuals(n,t,null))):(yb("shape",i,t=l&&e&&(e!==i||Bw(n=e)||zw(n))?e:null,o,l={},!1),yb("extra",i,t,o,l,!1),vb(i,t,o,l,!1),_b(i,t,o,o.style,l,!1),fb(i,a,o.style),t&&Ow(t,i,s),gb(i,r,o,this._seriesModel,l,!1))},Ub.prototype._manyToOneForSingleTo=function(t,e,n){var i=this._toList[t],o=this._toElOptionList[t],o=(fb(i,this._allPropsFinalList[t],o.style),this._getOrCreateMorphConfig(this._toDataIndices[t]));if(o.duration&&null!=e){for(var r=[],a=e;a<n;a++)r.push(this._fromList[a]);e=Nw(r,i,o,Xb);this._processResultIndividuals(e,t,null)}},Ub.prototype._oneToManyForSingleFrom=function(t,e,n){for(var n=null==n?null:this._fromList[n],i=this._toList,o=[],r=t;r<e;r++){var a=i[r];fb(a,this._allPropsFinalList[r],this._toElOptionList[r].style),o.push(a)}var s=this._getOrCreateMorphConfig(this._toDataIndices[t]);s.duration&&n&&(n=function(t,e,n,i){var o,r,a=e.length,s=n?n.dividingMethod:null,l=!1;zw(t)&&(r=t.__combiningSubList).length===a?o=r:(o=Uw(t,a,s),l=!0),wt(o.length===a);for(var h=0;h<a;h++)l&&i&&i(t,o[h],!1),Ow(o[h],e[h],n);return{fromIndividuals:o,toIndividuals:e,count:a}}(n,o,s,Xb),this._processResultIndividuals(n,t,e))},Ub.prototype._processResultIndividuals=function(t,e,n){for(var i=null!=n,o=0;o<t.count;o++){var r=t.fromIndividuals[o],a=t.toIndividuals[o],s=e+(i?o:0),l=this._toElOptionList[s],s=this._toDataIndices[s],h={};vb(a,r,l,h,!1),_b(a,r,l,l.style,h,!1),gb(a,s,l,this._seriesModel,h,!1)}},Ub.prototype._getOrCreateMorphConfig=function(t){var e,n,i,o,r,a,s,l=this._morphConfigList,h=l[t];return h||(e=this._seriesModel,n=this._transOpt,e.isAnimationEnabled()&&(a=void 0,(a=e&&e.ecModel?(o=e.ecModel.getUpdatePayload())&&o.animation:a)?(s=a.duration||0,i=a.easing||"cubicOut",r=a.delay||0):(i=e.get("animationEasingUpdate"),r=st(o=e.get("animationDelayUpdate"))?o(t):o,s=st(a=e.get("animationDurationUpdate"))?a(t):a)),h={duration:s||0,delay:r,easing:i,dividingMethod:n?n.dividingMethod:null},l[t]=h),h},Ub.prototype.reset=function(t){this._type=t,this._fromList.length=this._toList.length=this._toElOptionList.length=this._allPropsFinalList.length=this._toDataIndices.length=0};var Gb=Ub;function Ub(t,e){this._fromList=[],this._toList=[],this._toElOptionList=[],this._allPropsFinalList=[],this._toDataIndices=[],this._morphConfigList=[],this._seriesModel=t,this._transOpt=e}function Xb(t,e,n){e.style=n?M(t.style):t.style,e.zlevel=t.zlevel,e.z=t.z,e.z2=t.z2}I1(function(t){t.registerChartView(hb),t.registerSeriesModel(ab)});h(qb,Yb=g),qb.type="grid",qb.dependencies=["xAxis","yAxis"],qb.layoutMode="box",qb.defaultOption={show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"};var Yb,Zb=qb;function qb(){return null!==Yb&&Yb.apply(this,arguments)||this}h($b,jb=g),$b.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",jo).models[0]},$b.type="cartesian2dAxis";var jb,Kb=$b;function $b(){return null!==jb&&jb.apply(this,arguments)||this}nt(Kb,M1);var Ly={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:"#6E7079",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:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Bh=p({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Ly),Gh=p({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Ly),Jb={category:Bh,value:Gh,time:p({scale:!0,splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Gh),log:N({scale:!0,logBase:10},Gh)},Qb={value:1,category:1,time:1,log:1};function tS(r,a,s,l){I(Qb,function(t,o){var i,e=p(p({},Jb[o],!0),l,!0),e=(h(n,i=s),n.prototype.mergeDefaultAndTheme=function(t,e){var n=pp(this),i=n?fp(t):{};p(t,e.getTheme().get(o+"Axis")),p(t,this.getDefaultOption()),t.type=eS(t),n&&dp(t,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=w_.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=a+"Axis."+o,n.defaultOption=e,n);function n(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=i.apply(this,t)||this;return n.type=a+"Axis."+o,n}r.registerComponentModel(e)}),r.registerSubTypeDefaulter(a+"Axis",eS)}function eS(t){return t.type||(t.data?"category":"value")}function nS(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}nS.prototype.getAxis=function(t){return this._axes[t]},nS.prototype.getAxes=function(){return q(this._dimList,function(t){return this._axes[t]},this)},nS.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),rt(this.getAxes(),function(t){return t.scale.type===e})},nS.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)};var iS=["x","y"];function oS(t){return"interval"===t.type||"time"===t.type}h(sS,rS=nS),sS.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t,e,n,i,o=this.getAxis("x").scale,r=this.getAxis("y").scale;oS(o)&&oS(r)&&(o=o.getExtent(),r=r.getExtent(),i=this.dataToPoint([o[0],r[0]]),e=this.dataToPoint([o[1],r[1]]),t=o[1]-o[0],n=r[1]-r[0],t)&&n&&(t=(e[0]-i[0])/t,e=(e[1]-i[1])/n,n=i[0]-o[0]*t,o=i[1]-r[0]*e,i=this._transform=[t,0,0,e,n,o],this._invTransform=Be([],i))},sS.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},sS.prototype.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]))},sS.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},sS.prototype.dataToPoint=function(t,e,n){n=n||[];var i,o=t[0],r=t[1];return this._transform&&null!=o&&isFinite(o)&&null!=r&&isFinite(r)?Ut(n,t,this._transform):(t=this.getAxis("x"),i=this.getAxis("y"),n[0]=t.toGlobalCoord(t.dataToCoord(o)),n[1]=i.toGlobalCoord(i.dataToCoord(r)),n)},sS.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),r=i.getExtent(),n=n.parse(t[0]),i=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(o[0],o[1]),n),Math.max(o[0],o[1])),e[1]=Math.min(Math.max(Math.min(r[0],r[1]),i),Math.max(r[0],r[1])),e},sS.prototype.pointToData=function(t,e){var n,i;return e=e||[],this._invTransform?Ut(e,t,this._invTransform):(n=this.getAxis("x"),i=this.getAxis("y"),e[0]=n.coordToData(n.toLocalCoord(t[0])),e[1]=i.coordToData(i.toLocalCoord(t[1])),e)},sS.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},sS.prototype.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]),t=Math.max(t[0],t[1])-n,e=Math.max(e[0],e[1])-i;return new X(n,i,t,e)};var rS,aS=sS;function sS(){var t=null!==rS&&rS.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=iS,t}h(uS,lS=n),uS.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},uS.prototype.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},uS.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},uS.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var lS,hS=uS;function uS(t,e,n,i,o){t=lS.call(this,t,e,n)||this;return t.index=0,t.type=i||"value",t.position=o||"bottom",t}function cS(t,e,n){n=n||{};var t=t.coordinateSystem,i=e.axis,o={},r=i.getAxesOnZeroOf()[0],a=i.position,s=r?"onZero":a,i=i.dim,t=t.getRect(),t=[t.x,t.x+t.width,t.y,t.y+t.height],l={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,h="x"===i?[t[2]-h,t[3]+h]:[t[0]-h,t[1]+h],u=(r&&(u=r.toGlobalCoord(r.dataToCoord(0)),h[l.onZero]=Math.max(Math.min(u,h[1]),h[0])),o.position=["y"===i?h[l[s]]:t[0],"x"===i?h[l[s]]:t[3]],o.rotation=Math.PI/2*("x"===i?0:1),o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],o.labelOffset=r?h[l[a]]-h[l.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),mt(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection),e.get(["axisLabel","rotate"]));return o.labelRotate="top"===s?-u:u,o.z2=1,o}function pS(t){return"cartesian2d"===t.get("coordinateSystem")}function dS(i){var o={xAxisModel:null,yAxisModel:null};return I(o,function(t,e){var n=e.replace(/Model$/,""),n=i.getReferringComponents(n,jo).models[0];o[e]=n}),o}gS.prototype.getRect=function(){return this._rect},gS.prototype.update=function(t,e){var n=this._axesMap,i=(this._updateScale(t,this.model),I(n.x,function(t){y1(t.scale,t.model)}),I(n.y,function(t){y1(t.scale,t.model)}),{});I(n.x,function(t){mS(n,"y",t,i)}),I(n.y,function(t){mS(n,"x",t,i)}),this.resize(this.model,e)},gS.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),n=!n&&t.get("containLabel"),a=cp(i,{width:e.getWidth(),height:e.getHeight()}),o=(this._rect=a,this._axesList);function r(){I(o,function(t){var e,n,i=t.isHorizontal(),o=i?[0,a.width]:[0,a.height],r=t.inverse?1:0;t.setExtent(o[r],o[1-r]),o=t,e=i?a.x:a.y,r=o.getExtent(),n=r[0]+r[1],o.toGlobalCoord="x"===o.dim?function(t){return t+e}:function(t){return n-t+e},o.toLocalCoord="x"===o.dim?function(t){return t-e}:function(t){return n-t+e}})}r(),n&&(I(o,function(t){var e,n,i;t.model.get(["axisLabel","inside"])||(e=x1(t))&&(n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]),a[n]-=e[n]+i,"top"===t.position?a.y+=e.height+i:"left"===t.position&&(a.x+=e.width+i))}),r()),I(this._coordsList,function(t){t.calcAffineTransform()})},gS.prototype.getAxis=function(t,e){t=this._axesMap[t];if(null!=t)return t[e||0]},gS.prototype.getAxes=function(){return this._axesList.slice()},gS.prototype.getCartesian=function(t,e){if(null!=t&&null!=e)return this._coordsMap["x"+t+"y"+e];D(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===t||i[n].getAxis("y").index===e)return i[n]},gS.prototype.getCartesians=function(){return this._coordsList.slice()},gS.prototype.convertToPixel=function(t,e,n){e=this._findConvertTarget(e);return e.cartesian?e.cartesian.dataToPoint(n):e.axis?e.axis.toGlobalCoord(e.axis.dataToCoord(n)):null},gS.prototype.convertFromPixel=function(t,e,n){e=this._findConvertTarget(e);return e.cartesian?e.cartesian.pointToData(n):e.axis?e.axis.coordToData(e.axis.toLocalCoord(n)):null},gS.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,o=t.xAxisModel||i&&i.getReferringComponents("xAxis",jo).models[0],r=t.yAxisModel||i&&i.getReferringComponents("yAxis",jo).models[0],t=t.gridModel,a=this._coordsList;return i?A(a,e=i.coordinateSystem)<0&&(e=null):o&&r?e=this.getCartesian(o.componentIndex,r.componentIndex):o?n=this.getAxis("x",o.componentIndex):r?n=this.getAxis("y",r.componentIndex):t&&t.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:n}},gS.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},gS.prototype._initCartesian=function(r,t,e){var a=this,s=this,l={left:!1,right:!1,top:!1,bottom:!1},h={x:{},y:{}},u={x:0,y:0};function n(o){return function(t,e){var n,i;yS(t,r)&&(n=t.get("position"),"x"===o?"top"!==n&&"bottom"!==n&&(n=l.bottom?"top":"bottom"):"left"!==n&&"right"!==n&&(n=l.left?"right":"left"),l[n]=!0,i="category"===(n=new hS(o,m1(t),[0,0],t.get("type"),n)).type,n.onBand=i&&t.get("boundaryGap"),n.inverse=t.get("inverse"),(t.axis=n).model=t,n.grid=s,n.index=e,s._axesList.push(n),h[o][e]=n,u[o]++)}}t.eachComponent("xAxis",n("x"),this),t.eachComponent("yAxis",n("y"),this),u.x&&u.y?I((this._axesMap=h).x,function(i,o){I(h.y,function(t,e){var e="x"+o+"y"+e,n=new aS(e);n.master=a,n.model=r,a._coordsMap[e]=n,a._coordsList.push(n),n.addAxis(i),n.addAxis(t)})}):(this._axesMap={},this._axesList=[])},gS.prototype._updateScale=function(t,i){function o(e,n){I(S1(e,n.dim),function(t){n.scale.unionExtentFromData(e,t)})}I(this._axesList,function(t){var e;t.scale.setExtent(1/0,-1/0),"category"===t.type&&(e=t.model.get("categorySortInfo"),t.scale.setSortInfo(e))}),t.eachSeries(function(t){var e,n;pS(t)&&(n=(e=dS(t)).xAxisModel,e=e.yAxisModel,yS(n,i))&&yS(e,i)&&(n=this.getCartesian(n.componentIndex,e.componentIndex),e=t.getData(),t=n.getAxis("x"),n=n.getAxis("y"),"list"===e.type)&&(o(e,t),o(e,n))},this)},gS.prototype.getTooltipAxes=function(n){var i=[],o=[];return I(this.getCartesians(),function(t){var e=null!=n&&"auto"!==n?t.getAxis(n):t.getBaseAxis(),t=t.getOtherAxis(e);A(i,e)<0&&i.push(e),A(o,t)<0&&o.push(t)}),{baseAxes:i,otherAxes:o}},gS.create=function(i,o){var r=[];return i.eachComponent("grid",function(t,e){var n=new gS(t,i,o);n.name="grid_"+e,n.resize(t,o,!0),t.coordinateSystem=n,r.push(n)}),i.eachSeries(function(t){var e,n,i;pS(t)&&(e=(n=dS(t)).xAxisModel,n=n.yAxisModel,i=e.getCoordSysModel().coordinateSystem,t.coordinateSystem=i.getCartesian(e.componentIndex,n.componentIndex))}),r},gS.dimensions=iS;var fS=gS;function gS(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=iS,this._initCartesian(t,e,n),this.model=t}function yS(t,e){return t.getCoordSysModel()===e}function mS(t,e,n,i){n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,r=t[e],t=n.model,e=t.get(["axisLine","onZero"]),n=t.get(["axisLine","onZeroAxisIndex"]);if(e){if(null!=n)vS(r[n])&&(o=r[n]);else for(var a in r)if(r.hasOwnProperty(a)&&vS(r[a])&&!i[s(r[a])]){o=r[a];break}o&&(i[s(o)]=!0)}function s(t){return t.dim+"_"+t.index}}function vS(t){return t&&"category"!==t.type&&"time"!==t.type&&(e=(t=(t=t).scale.getExtent())[0],t=t[1],!(0<e&&0<t||e<0&&t<0));var e}var _S=Math.PI,xS=(wS.prototype.hasBuilder=function(t){return!!bS[t]},wS.prototype.add=function(t){bS[t](this.opt,this.axisModel,this.group,this._transformGroup)},wS.prototype.getGroup=function(){return this.group},wS.innerTextLayout=function(t,e,n){var i,e=wo(e-t),t=bo(e)?(i=0<n?"top":"bottom","center"):bo(e-_S)?(i=0<n?"bottom":"top","center"):(i="middle",0<e&&e<_S?0<n?"right":"left":0<n?"left":"right");return{rotation:e,textAlign:t,textVerticalAlign:i}},wS.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},wS.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},wS);function wS(t,e){this.group=new so,this.opt=e,this.axisModel=t,N(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});t=new so({x:e.position[0],y:e.position[1],rotation:e.rotation});t.updateTransform(),this._transformGroup=t}var bS={axisLine:function(i,t,o,e){var r,a,s,l,h,n=t.get(["axisLine","show"]);(n="auto"===n&&i.handleAutoShown?i.handleAutoShown("axisLine"):n)&&(n=t.axis.getExtent(),e=e.transform,r=[n[0],0],n=[n[1],0],e&&(Ut(r,r,e),Ut(n,n,e)),a=T({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),(e=new Dh({subPixelOptimize:!0,shape:{x1:r[0],y1:r[1],x2:n[0],y2:n[1]},style:a,strokeContainThreshold:i.strokeContainThreshold||5,silent:!0,z2:1})).anid="line",o.add(e),s=t.get(["axisLine","symbol"]),e=t.get(["axisLine","symbolSize"]),"number"==typeof(t=t.get(["axisLine","symbolOffset"])||0)&&(t=[t,t]),null!=s)&&("string"==typeof s&&(s=[s,s]),l=(e="string"!=typeof e&&"number"!=typeof e?e:[e,e])[0],h=e[1],I([{rotate:i.rotation+Math.PI/2,offset:t[0],r:0},{rotate:i.rotation-Math.PI/2,offset:t[1],r:Math.sqrt((r[0]-n[0])*(r[0]-n[0])+(r[1]-n[1])*(r[1]-n[1]))}],function(t,e){var n;"none"!==s[e]&&null!=s[e]&&(e=Vy(s[e],-l/2,-h/2,l,h,a.stroke,!0),n=t.r+t.offset,e.attr({rotation:t.rotate,x:r[0]+n*Math.cos(i.rotation),y:r[1]-n*Math.sin(i.rotation),silent:!0,z2:11}),o.add(e))}))},axisTickLabel:function(t,e,n,i){var o,r,a,s,l=function(t,e,n,i){var o=n.axis,r=n.getModel("axisTick"),a=r.get("show");"auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick"));if(a&&!o.scale.isBlank()){for(var a=r.getModel("lineStyle"),i=i.tickDirection*r.get("length"),s=CS(o.getTicksCoords(),e.transform,i,N(a.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),l=0;l<s.length;l++)t.add(s[l]);return s}}(n,i,e,t),h=function(s,l,h,u){var c,p,t,d,f,g,y,m,v=h.axis,e=mt(u.axisLabelShow,h.get(["axisLabel","show"]));if(e&&!v.scale.isBlank())return c=h.getModel("axisLabel"),p=c.get("margin"),e=v.getViewLabels(),t=(mt(u.labelRotate,c.get("rotate"))||0)*_S/180,d=xS.innerTextLayout(u.rotation,t,u.labelDirection),f=h.getCategories&&h.getCategories(!0),g=[],y=xS.isLabelSilent(h),m=h.get("triggerEvent"),I(e,function(t,e){var n="ordinal"===v.scale.type?v.scale.getRawOrdinalNumber(t.tickValue):t.tickValue,i=t.formattedLabel,t=t.rawLabel,o=c,r=(o=f&&f[n]&&D(r=f[n])&&r.textStyle?new uc(r.textStyle,c,h.ecModel):o).getTextColor()||h.get(["axisLine","lineStyle","color"]),a=v.dataToCoord(n),a=new ms({x:a,y:u.labelOffset+u.labelDirection*p,rotation:d.rotation,silent:y,z2:10,style:Uu(o,{text:i,align:o.getShallow("align",!0)||d.textAlign,verticalAlign:o.getShallow("verticalAlign",!0)||o.getShallow("baseline",!0)||d.textVerticalAlign,fill:"function"==typeof r?r("category"===v.type?t:"value"===v.type?n+"":n,e):r})});a.anid="label_"+n,m&&((i=xS.makeAxisEventDataBase(h)).targetType="axisLabel",i.value=t,Cs(a).eventData=i),l.add(a),a.updateTransform(),g.push(a),s.add(a),a.decomposeTransform()}),g}(n,i,e,t),u=(h=h,l=l,b1((o=e).axis)||(p=o.get(["axisLabel","showMinLabel"]),o=o.get(["axisLabel","showMaxLabel"]),l=l||[],g=(h=h||[])[0],d=h[1],r=h[h.length-1],h=h[h.length-2],a=l[0],f=l[1],s=l[l.length-1],l=l[l.length-2],!1===p?(SS(g),SS(a)):MS(g,d)&&(p?(SS(d),SS(f)):(SS(g),SS(a))),!1===o?(SS(r),SS(s)):MS(h,r)&&(o?(SS(h),SS(l)):(SS(r),SS(s)))),n),c=i,p=e,d=t.tickDirection,f=p.axis,g=p.getModel("minorTick");if(g.get("show")&&!f.scale.isBlank()){var y=f.getMinorTicksCoords();if(y.length)for(var f=g.getModel("lineStyle"),m=d*g.get("length"),v=N(f.getLineStyle(),N(p.getModel("axisTick").getLineStyle(),{stroke:p.get(["axisLine","lineStyle","color"])})),_=0;_<y.length;_++)for(var x=CS(y[_],c.transform,m,v,"minorticks_"+_),w=0;w<x.length;w++)u.add(x[w])}},axisName:function(t,e,n,i){var o,r,a,s,l,h,u,c,p=mt(t.axisName,e.get("name"));p&&(c=e.get("nameLocation"),l=t.nameDirection,o=e.getModel("nameTextStyle"),h=e.get("nameGap")||0,r=(u=e.axis.getExtent())[0]>u[1]?-1:1,r=["start"===c?u[0]-r*h:"end"===c?u[1]+r*h:(u[0]+u[1])/2,TS(c)?t.labelOffset+l*h:0],null!=(h=e.get("nameRotate"))&&(h=h*_S/180),TS(c)?a=xS.innerTextLayout(t.rotation,null!=h?h:t.rotation,l):(a=function(t,e,n,i){var o,n=wo(n-t),t=i[0]>i[1],i="start"===e&&!t||"start"!==e&&t;e=bo(n-_S/2)?(o=i?"bottom":"top","center"):bo(n-1.5*_S)?(o=i?"top":"bottom","center"):(o="middle",n<1.5*_S&&_S/2<n?i?"left":"right":i?"right":"left");return{rotation:n,textAlign:e,textVerticalAlign:o}}(t.rotation,c,h||0,u),null!=(s=t.axisNameAvailableWidth)&&(s=Math.abs(s/Math.sin(a.rotation)),isFinite(s)||(s=null))),l=o.getFont(),h=(c=e.get("nameTruncate",!0)||{}).ellipsis,u=mt(t.nameTruncateMaxWidth,c.maxWidth,s),zu({el:t=new ms({x:r[0],y:r[1],rotation:a.rotation,silent:xS.isLabelSilent(e),style:Uu(o,{text:p,font:l,overflow:"truncate",width:u,ellipsis:h,fill:o.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:o.get("align")||a.textAlign,verticalAlign:o.get("verticalAlign")||a.textVerticalAlign}),z2:1}),componentModel:e,itemName:p}),t.__fullText=p,t.anid="name",e.get("triggerEvent")&&((c=xS.makeAxisEventDataBase(e)).targetType="axisName",c.name=p,Cs(t).eventData=c),i.add(t),t.updateTransform(),n.add(t),t.decomposeTransform())}};function SS(t){t&&(t.ignore=!0)}function MS(t,e){var n,i=t&&t.getBoundingRect().clone(),o=e&&e.getBoundingRect().clone();if(i&&o)return Re(n=De([]),n,-t.rotation),i.applyTransform(Le([],n,t.getLocalTransform())),o.applyTransform(Le([],n,e.getLocalTransform())),i.intersect(o)}function TS(t){return"middle"===t||"center"===t}function CS(t,e,n,i,o){for(var r=[],a=[],s=[],l=0;l<t.length;l++){var h=t[l].coord,h=(a[0]=h,s[a[1]=0]=h,s[1]=n,e&&(Ut(a,a,e),Ut(s,s,e)),new Dh({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0}));h.anid=o+"_"+t[l].tickValue,r.push(h)}return r}function AS(t,e){var h,u,o,c,p,d,r,n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return h=n,e=e,o=(u=t).getComponent("tooltip"),c=u.getComponent("axisPointer"),p=c.get("link",!0)||[],d=[],I(e.getCoordinateSystems(),function(a){var s,l,t,e,n;function i(t,e,n){var i,o=n.model.getModel("axisPointer",c),r=o.get("show");r&&("auto"!==r||t||DS(o))&&(null==e&&(e=o.get("triggerTooltip")),r=(o=t?function(t,e,n,i,o,r){var a=e.getModel("axisPointer"),s={};I(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=M(a.get(t))}),s.snap="category"!==t.type&&!!r,"cross"===a.get("type")&&(s.type="line");e=s.label||(s.label={});null==e.show&&(e.show=!1),"cross"===o&&(o=a.get(["label","show"]),e.show=null==o||o,r||(o=s.lineStyle=a.get("crossStyle"))&&N(e,o.textStyle));return t.model.getModel("axisPointer",new uc(s,n,i))}(n,l,c,u,t,e):o).get("snap"),t=PS(n.model),i=e||r||"category"===n.type,e=h.axesInfo[t]={key:t,axis:n,coordSys:a,axisPointerModel:o,triggerTooltip:e,involveSeries:i,snap:r,useHandle:DS(o),seriesModels:[],linkGroup:null},s[t]=e,h.seriesInvolved=h.seriesInvolved||i,null!=(r=function(t,e){for(var n=e.model,i=e.dim,o=0;o<t.length;o++){var r=t[o]||{};if(IS(r[i+"AxisId"],n.id)||IS(r[i+"AxisIndex"],n.componentIndex)||IS(r[i+"AxisName"],n.name))return o}}(p,n)))&&((o=d[r]||(d[r]={axesInfo:{}})).axesInfo[t]=e,o.mapper=p[r].mapper,e.linkGroup=o)}a.axisPointerEnabled&&(t=PS(a.model),s=h.coordSysAxesInfo[t]={},l=(h.coordSysMap[t]=a).model.getModel("tooltip",o),I(a.getAxes(),at(i,!1,null)),a.getTooltipAxes)&&o&&l.get("show")&&(t="axis"===l.get("trigger"),e="cross"===l.get(["axisPointer","type"]),n=a.getTooltipAxes(l.get(["axisPointer","axis"])),(t||e)&&I(n.baseAxes,at(i,!e||"cross",t)),e)&&I(n.otherAxes,at(i,"cross",!1))}),n.seriesInvolved&&(r=n,t.eachSeries(function(n){var i=n.coordinateSystem,t=n.get(["tooltip","trigger"],!0),e=n.get(["tooltip","show"],!0);i&&"none"!==t&&!1!==t&&"item"!==t&&!1!==e&&!1!==n.get(["axisPointer","show"],!0)&&I(r.coordSysAxesInfo[PS(i.model)],function(t){var e=t.axis;i.getAxis(e.dim)===e&&(t.seriesModels.push(n),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=n.getData().count())})})),n}function IS(t,e){return"all"===t||F(t)&&0<=A(t,e)||t===e}function kS(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[PS(t)]}function DS(t){return!!t.get(["handle","show"])}function PS(t){return t.type+"||"+t.id}var LS,OS={},RS=(h(ES,LS=cg),ES.prototype.render=function(t,e,n,i){var o,r,a,s,l,h;this.axisPointerClass&&(o=kS(o=t))&&(l=o.axisPointerModel,r=o.axis.scale,a=l.option,h=l.get("status"),null!=(s=l.get("value"))&&(s=r.parse(s)),l=DS(l),null==h&&(a.status=l?"show":"hide"),(h=r.getExtent().slice())[0]>h[1]&&h.reverse(),(s=null==s||s>h[1]?h[1]:s)<h[0]&&(s=h[0]),a.value=s,l)&&(a.status=o.axis.scale.isBlank()?"hide":"show"),LS.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},ES.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},ES.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},ES.prototype.dispose=function(t,e){this._disposeAxisPointer(e),LS.prototype.dispose.apply(this,arguments)},ES.prototype._doUpdateAxisPointerClass=function(t,e,n){var i,o=ES.getAxisPointerClass(this.axisPointerClass);o&&((i=(i=kS(i=t))&&i.axisPointerModel)?(this._axisPointer||(this._axisPointer=new o)).render(t,i,e,n):this._disposeAxisPointer(e))},ES.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},ES.registerAxisPointerClass=function(t,e){OS[t]=e},ES.getAxisPointerClass=function(t){return t&&OS[t]},ES.type="axis",ES);function ES(){var t=null!==LS&&LS.apply(this,arguments)||this;return t.type=ES.type,t}var BS=Xo();var zS,NS=["axisLine","axisTickLabel","axisName"],FS=["splitArea","splitLine","minorSplitLine"],gh=(h(VS,zS=RS),VS.prototype.render=function(o,t,e,n){this.group.removeAll();var r,i,a=this._axisGroup;this._axisGroup=new so,this.group.add(this._axisGroup),o.get("show")&&(i=cS(r=o.getCoordSysModel(),o),i=new xS(o,T({handleAutoShown:function(t){for(var e=r.coordinateSystem.getCartesians(),n=0;n<e.length;n++){var i=e[n].getOtherAxis(o.axis).type;if("value"===i||"log"===i)return!0}return!1}},i)),I(NS,i.add,i),this._axisGroup.add(i.getGroup()),I(FS,function(t){o.get([t,"show"])&&WS[t](this,this._axisGroup,o,r)},this),Lu(a,this._axisGroup,o),zS.prototype.render.call(this,o,t,e,n))},VS.prototype.remove=function(){BS(this).splitAreaColors=null},VS.type="cartesianAxis",VS);function VS(){var t=null!==zS&&zS.apply(this,arguments)||this;return t.type=VS.type,t.axisPointerClass="CartesianAxisPointer",t}var HS,WS={splitLine:function(t,e,n,i){var o=n.axis;if(!o.scale.isBlank())for(var n=n.getModel("splitLine"),r=n.getModel("lineStyle"),a=F(a=r.get("color"))?a:[a],s=i.coordinateSystem.getRect(),l=o.isHorizontal(),h=0,u=o.getTicksCoords({tickModel:n}),c=[],p=[],d=r.getLineStyle(),f=0;f<u.length;f++){var g=o.toGlobalCoord(u[f].coord),g=(l?(c[0]=g,c[1]=s.y,p[0]=g,p[1]=s.y+s.height):(c[0]=s.x,c[1]=g,p[0]=s.x+s.width,p[1]=g),h++%a.length),y=u[f].tickValue;e.add(new Dh({anid:null!=y?"line_"+u[f].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]},style:N({stroke:a[g]},d),silent:!0}))}},minorSplitLine:function(t,e,n,i){var o=n.axis,n=n.getModel("minorSplitLine").getModel("lineStyle"),r=i.coordinateSystem.getRect(),a=o.isHorizontal(),s=o.getMinorTicksCoords();if(s.length)for(var l=[],h=[],u=n.getLineStyle(),c=0;c<s.length;c++)for(var p=0;p<s[c].length;p++){var d=o.toGlobalCoord(s[c][p].coord);a?(l[0]=d,l[1]=r.y,h[0]=d,h[1]=r.y+r.height):(l[0]=r.x,l[1]=d,h[0]=r.x+r.width,h[1]=d),e.add(new Dh({anid:"minor_line_"+s[c][p].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:l[0],y1:l[1],x2:h[0],y2:h[1]},style:u,silent:!0}))}},splitArea:function(t,e,n,i){var o=e,e=i,r=(i=n).axis;if(!r.scale.isBlank()){var i=i.getModel("splitArea"),n=i.getModel("areaStyle"),a=n.get("color"),s=e.coordinateSystem.getRect(),l=r.getTicksCoords({tickModel:i,clamp:!0});if(l.length){var h=a.length,u=BS(t).splitAreaColors,c=P(),p=0;if(u)for(var d=0;d<l.length;d++){var f=u.get(l[d].tickValue);if(null!=f){p=(f+(h-1)*d)%h;break}}for(var g=r.toGlobalCoord(l[0].coord),y=n.getAreaStyle(),a=F(a)?a:[a],d=1;d<l.length;d++){var m=r.toGlobalCoord(l[d].coord),v=void 0,_=void 0,x=void 0,w=void 0,g=r.isHorizontal()?(v=g,_=s.y,w=s.height,v+(x=m-v)):(v=s.x,_=g,x=s.width,_+(w=m-_)),m=l[d-1].tickValue;null!=m&&c.set(m,p),o.add(new ps({anid:null!=m?"area_"+m:null,shape:{x:v,y:_,width:x,height:w},style:N({fill:a[p]},y),autoBatch:!0,silent:!0})),p=(p+1)%h}BS(t).splitAreaColors=c}}}},GS=(h(US,HS=gh),US.type="xAxis",US);function US(){var t=null!==HS&&HS.apply(this,arguments)||this;return t.type=US.type,t}h(ZS,XS=gh),ZS.type="yAxis";var XS,YS=ZS;function ZS(){var t=null!==XS&&XS.apply(this,arguments)||this;return t.type=GS.type,t}h(KS,qS=cg),KS.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new ps({shape:t.coordinateSystem.getRect(),style:N({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},KS.type="grid";var qS,jS=KS;function KS(){var t=null!==qS&&qS.apply(this,arguments)||this;return t.type="grid",t}var $S={offset:0};I1(function(t){t.registerComponentView(jS),t.registerComponentModel(Zb),t.registerCoordinateSystem("cartesian2d",fS),tS(t,"x",Kb,$S),tS(t,"y",Kb,$S),t.registerComponentView(GS),t.registerComponentView(YS),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})});var JS=Xo(),QS=M,tM=S;function eM(){this._dragging=!1,this.animationThreshold=15}function nM(t,e,n,i){!function n(i,t){{var o;return D(i)&&D(t)?(o=!0,I(t,function(t,e){o=o&&n(i[e],t)}),!!o):i===t}}(JS(n).lastProp,i)&&(JS(n).lastProp=i,e?Su(n,i,t):(n.stopAnimation(),n.attr(i)))}function iM(t,e){t[e.get(["label","show"])?"show":"hide"]()}function oM(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function rM(t,e,n){var i=e.get("z"),o=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=o&&(t.zlevel=o),t.silent=n)})}function aM(t,e,n,i,o){var r=sM(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),n=n.getModel("label"),a=$c(n.get("padding")||0),s=n.getFont(),l=ti(r,s),h=o.position,u=l.width+a[1]+a[3],l=l.height+a[0]+a[2],c=o.align,c=("right"===c&&(h[0]-=u),"center"===c&&(h[0]-=u/2),o.verticalAlign),i=("bottom"===c&&(h[1]-=l),"middle"===c&&(h[1]-=l/2),o=h,c=u,u=l,i=(l=i).getWidth(),l=l.getHeight(),o[0]=Math.min(o[0]+c,i)-c,o[1]=Math.min(o[1]+u,l)-u,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0),n.get("backgroundColor"));i&&"auto"!==i||(i=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:Uu(n,{text:r,font:s,fill:n.getTextColor(),padding:a,backgroundColor:i}),z2:10}}function sM(t,e,n,i,o){t=e.scale.parse(t);var r,a=e.scale.getLabel({value:t},{precision:o.precision}),o=o.formatter;return o&&(r={value:_1(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},I(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&r.seriesData.push(e)}),C(o)?a=o.replace("{value}",a):st(o)&&(a=o(r))),a}function lM(t,e,n){var i=ke();return Re(i,i,n.rotation),Oe(i,i,n.position),ku([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}eM.prototype.render=function(t,e,n,i){var o,r,a=e.get("value"),s=e.get("status");this._axisModel=t,this._axisPointerModel=e,this._api=n,!i&&this._lastValue===a&&this._lastStatus===s||(this._lastValue=a,this._lastStatus=s,i=this._group,o=this._handle,s&&"hide"!==s?(i&&i.show(),o&&o.show(),this.makeElOption(s={},a,t,e,n),(r=s.graphicKey)!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=r,r=this._moveAnimation=this.determineAnimation(t,e),i?(r=at(nM,e,r),this.updatePointerEl(i,s,r),this.updateLabelEl(i,s,r,e)):(i=this._group=new so,this.createPointerEl(i,s,t,e),this.createLabelEl(i,s,t,e),n.getZr().add(i)),rM(i,e,!0),this._renderHandle(a)):(i&&i.hide(),o&&o.hide()))},eM.prototype.remove=function(t){this.clear(t)},eM.prototype.dispose=function(t){this.clear(t)},eM.prototype.determineAnimation=function(t,e){var n,i=e.get("animation"),o=t.axis,r="category"===o.type,e=e.get("snap");return!(!e&&!r)&&("auto"===i||null==i?(n=this.animationThreshold,r&&o.getBandWidth()>n||!!e&&(r=kS(t).seriesDataCount,e=o.getExtent(),Math.abs(e[0]-e[1])/r>n)):!0===i)},eM.prototype.makeElOption=function(t,e,n,i,o){},eM.prototype.createPointerEl=function(t,e,n,i){var o=e.pointer;o&&(o=JS(t).pointerEl=new Nu[o.type](QS(e.pointer)),t.add(o))},eM.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=JS(t).labelEl=new ms(QS(e.label)),t.add(e),iM(e,i))},eM.prototype.updatePointerEl=function(t,e,n){t=JS(t).pointerEl;t&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},eM.prototype.updateLabelEl=function(t,e,n,i){t=JS(t).labelEl;t&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),iM(t,i))},eM.prototype._renderHandle=function(t){var e,n,i,o,r,a;!this._dragging&&this.updateHandleTransform&&(e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,o=e.getModel("handle"),a=e.get("status"),o.get("show")&&a&&"hide"!==a?(this._handle||(r=!0,i=this._handle=Eu(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){de(t.event)},onmousedown:tM(this._onHandleDragMove,this,0,0),drift:tM(this._onHandleDragMove,this),ondragend:tM(this._onHandleDragEnd,this)}),n.add(i)),rM(i,e,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),F(a=o.get("size"))||(a=[a,a]),i.scaleX=a[0]/2,i.scaleY=a[1]/2,Ag(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,r)):(i&&n.remove(i),this._handle=null))},eM.prototype._moveHandleToValue=function(t,e){nM(this._axisPointerModel,!e&&this._moveAnimation,this._handle,oM(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},eM.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(oM(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(oM(t)),JS(n).lastProp=null,this._doDispatchAxisPointer())},eM.prototype._doDispatchAxisPointer=function(){var t,e;this._handle&&(t=this._payloadInfo,e=this._axisModel,this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]}))},eM.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},eM.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var t=t.getZr(),e=this._group,n=this._handle;t&&e&&(this._lastGraphicKey=null,e&&t.remove(e),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},eM.prototype.doClear=function(){},eM.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}};h(cM,hM=eM),cM.prototype.makeElOption=function(t,e,n,i,o){var r,a,s=n.axis,l=s.grid,h=i.get("type"),u=pM(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(e,!0)),p=(h&&"none"!==h&&(r=(a=i).get("type"),a=a.getModel(r+"Style"),"line"===r?(p=a.getLineStyle()).fill=null:"shadow"===r&&((p=a.getAreaStyle()).stroke=null),r=p,(a=dM[h](s,c,u)).style=r,t.graphicKey=a.type,t.pointer=a),cS(l.model,n));h=e,s=t,c=p,u=n,r=i,a=o,l=xS.innerTextLayout(c.rotation,0,c.labelDirection),c.labelMargin=r.get(["label","margin"]),aM(s,u,r,a,{position:lM(u.axis,h,c),align:l.textAlign,verticalAlign:l.textVerticalAlign})},cM.prototype.getHandleTransform=function(t,e,n){var i=cS(e.axis.grid.model,e,{labelInside:!1}),n=(i.labelMargin=n.get(["handle","margin"]),lM(e.axis,t,i));return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},cM.prototype.updateHandleTransform=function(t,e,n,i){var n=n.axis,o=n.grid,r=n.getGlobalExtent(!0),o=pM(o,n).getOtherAxis(n).getGlobalExtent(),n="x"===n.dim?0:1,a=[t.x,t.y],e=(a[n]+=e[n],a[n]=Math.min(r[1],a[n]),a[n]=Math.max(r[0],a[n]),(o[1]+o[0])/2),r=[e,e];r[n]=a[n];return{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:r,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][n]}};var hM,uM=cM;function cM(){return null!==hM&&hM.apply(this,arguments)||this}function pM(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var dM={line:function(t,e,n){var i;return i=[e,n[0]],e=[e,n[1]],n=fM(t),{type:"Line",subPixelOptimize:!0,shape:{x1:i[n=n||0],y1:i[1-n],x2:e[n],y2:e[1-n]}}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:(e=[e-i/2,n[0]],n=[i,o],i=fM(t),{x:e[i=i||0],y:e[1-i],width:n[i],height:n[1-i]})}}};function fM(t){return"x"===t.dim?0:1}h(mM,gM=g),mM.type="axisPointer",mM.defaultOption={show:"auto",zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},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}};var gM,yM=mM;function mM(){var t=null!==gM&&gM.apply(this,arguments)||this;return t.type=mM.type,t}var vM=Xo(),_M=I;function xM(t,e,n){var i,c,p;function o(t,u){c.on(t,function(e){n=p;var n,i,o={dispatchAction:r,pendings:i={showTip:[],hideTip:[]}};function r(t){var e=i[t.type];e?e.push(t):(t.dispatchAction=r,n.dispatchAction(t))}_M(vM(c).records,function(t){t&&u(t,e,o.dispatchAction)});var t,a=o.pendings,s=p,l=a.showTip.length,h=a.hideTip.length;l?t=a.showTip[l-1]:h&&(t=a.hideTip[h-1]),t&&(t.dispatchAction=null,s.dispatchAction(t))})}b.node||(i=e.getZr(),vM(i).records||(vM(i).records={}),p=e,vM(c=i).initialized||(vM(c).initialized=!0,o("click",at(bM,"click")),o("mousemove",at(bM,"mousemove")),o("globalout",wM)),(vM(i).records[t]||(vM(i).records[t]={})).handler=n)}function wM(t,e,n){t.handler("leave",null,n)}function bM(t,e,n,i){e.handler(t,n,i)}function SM(t,e){b.node||(e=e.getZr(),(vM(e).records||{})[t]&&(vM(e).records[t]=null))}h(CM,MM=cg),CM.prototype.render=function(t,e,n){var e=e.getComponent("tooltip"),i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";xM("axisPointer",n,function(t,e,n){"none"!==i&&("leave"===t||0<=i.indexOf(t))&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},CM.prototype.remove=function(t,e){SM("axisPointer",e)},CM.prototype.dispose=function(t,e){SM("axisPointer",e)},CM.type="axisPointer";var MM,TM=CM;function CM(){var t=null!==MM&&MM.apply(this,arguments)||this;return t.type=CM.type,t}function AM(t,e){var n,i,o,r,a=[],s=t.seriesIndex;return null==s||!(e=e.getSeriesByIndex(s))||null==(s=Uo(n=e.getData(),t))||s<0||F(s)?{point:[]}:(i=n.getItemGraphicEl(s),o=e.coordinateSystem,e.getTooltipPosition?a=e.getTooltipPosition(s)||[]:o&&o.dataToPoint?a=t.isStacked?(e=o.getBaseAxis(),t=o.getOtherAxis(e).dim,e=e.dim,t="x"===t||"radius"===t?1:0,e=n.mapDimension(e),(r=[])[t]=n.get(e,s),r[1-t]=n.get(n.getCalculationInfo("stackResultDimension"),s),o.dataToPoint(r)||[]):o.dataToPoint(n.getValues(q(o.dimensions,function(t){return n.mapDimension(t)}),s))||[]:i&&((e=i.getBoundingRect().clone()).applyTransform(i.transform),a=[e.x+e.width/2,e.y+e.height/2]),{point:a,el:i})}var IM=Xo();function kM(t,e,n){var r,a,i,s,l,o,h,u,c,p,d,f,g,y,m=t.currTrigger,v=[t.x,t.y],_=t,x=t.dispatchAction||S(n.dispatchAction,n),w=e.getComponent("axisPointer").coordSysAxesInfo;if(w)return RM(v)&&(v=AM({seriesIndex:_.seriesIndex,dataIndex:_.dataIndex},e).point),r=RM(v),a=_.axesInfo,i=w.axesInfo,s="leave"===m||RM(v),l={},e={list:[],map:{}},h={showPointer:at(PM,o={}),showTooltip:at(LM,e)},I(w.coordSysMap,function(t,e){var o=r||t.containPoint(v);I(w.coordSysAxesInfo[e],function(t,e){var n=t.axis,i=function(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}}(a,t);s||!o||a&&!i||null!=(i=null!=(i=i&&i.value)||r?i:n.pointToData(v))&&DM(t,i,h,!1,l)})}),u={},I(i,function(n,t){var i=n.linkGroup;i&&!o[t]&&I(i.axesInfo,function(t,e){var e=o[e];t!==n&&e&&(e=e.value,i.mapper&&(e=n.axis.scale.parse(i.mapper(e,OM(t),OM(n)))),u[n.key]=e)})}),I(u,function(t,e){DM(i[e],t,h,!0,l)}),c=o,_=i,p=l.axesInfo=[],I(_,function(t,e){var n=t.axisPointerModel.option,e=c[e];e?(t.useHandle||(n.status="show"),n.value=e.value,n.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&p.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),m=e,_=t,e=x,RM(t=v)||!m.list.length?e({type:"hideTip"}):(x=((m.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},e({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:_.tooltipOption,position:_.position,dataIndexInside:x.dataIndexInside,dataIndex:x.dataIndex,seriesIndex:x.seriesIndex,dataByCoordSys:m.list})),e=i,_=(t=n).getZr(),x="axisPointerLastHighlights",d=IM(_)[x]||{},f=IM(_)[x]={},I(e,function(t,e){t=t.axisPointerModel.option;"show"===t.status&&I(t.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;f[e]=t})}),g=[],y=[],I(d,function(t,e){f[e]||y.push(t)}),I(f,function(t,e){d[e]||g.push(t)}),y.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:y}),g.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:g}),l}function DM(t,e,n,i,o){var r,a,s,l,h,u,c,p,d,f,g=t.axis;!g.scale.isBlank()&&g.containData(e)&&(t.involveSeries?(a=e,s=t.axis,l=s.dim,h=a,u=[],c=Number.MAX_VALUE,p=-1,I(t.seriesModels,function(e,t){var n,i=e.getData().mapDimensionsAll(l);if(e.getAxisTooltipData)var o=e.getAxisTooltipData(i,a,s),r=o.dataIndices,o=o.nestestValue;else{if(!(r=e.getData().indicesOfNearest(i[0],a,"category"===s.type?.5:null)).length)return;o=e.getData().get(i[0],r[0])}null!=o&&isFinite(o)&&(i=a-o,(n=Math.abs(i))<=c)&&((n<c||0<=i&&p<0)&&(c=n,p=i,h=o,u.length=0),I(r,function(t){u.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}),f=(r={payloadBatch:u,snapToValue:h}).snapToValue,(d=r.payloadBatch)[0]&&null==o.seriesIndex&&T(o,d[0]),!i&&t.snap&&g.containData(f)&&null!=f&&(e=f),n.showPointer(t,e,d),n.showTooltip(t,r,f)):n.showPointer(t,e))}function PM(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function LM(t,e,n,i){var o,r,n=n.payloadBatch,a=e.axis,s=a.model,l=e.axisPointerModel;e.triggerTooltip&&n.length&&(o=PS(e=e.coordSys.model),(r=t.map[o])||(r=t.map[o]={coordSysId:e.id,coordSysIndex:e.componentIndex,coordSysType:e.type,coordSysMainType:e.mainType,dataByAxis:[]},t.list.push(r)),r.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:n.slice()}))}function OM(t){var e=t.axis.model,n={},t=n.axisDim=t.axis.dim;return n.axisIndex=n[t+"AxisIndex"]=e.componentIndex,n.axisName=n[t+"AxisName"]=e.name,n.axisId=n[t+"AxisId"]=e.id,n}function RM(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function EM(t){RS.registerAxisPointerClass("CartesianAxisPointer",uM),t.registerComponentModel(yM),t.registerComponentView(TM),t.registerPreprocessor(function(t){var e;t&&(t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={}),e=t.axisPointer.link)&&!F(e)&&(t.axisPointer.link=[e])}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=AS(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},kM)}h(NM,BM=g),NM.type="tooltip",NM.dependencies=["axisPointer"],NM.defaultOption={zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}};var BM,zM=NM;function NM(){var t=null!==BM&&BM.apply(this,arguments)||this;return t.type=NM.type,t}function FM(t){var e=t.get("confine");return null!=e?e:"richText"===t.get("renderMode")}function VM(t){if(b.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var HM=VM(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function WM(t,e){if(!t)return e;e=Kc(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}function GM(t,e){t=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return t?e?t[e]:t:null}var UM=WM(VM(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),XM=WM(HM,"transform"),YM="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(b.transform3dSupported?"will-change:transform;":"");function ZM(t,e,n){var i,t=t.toFixed(0)+"px",e=e.toFixed(0)+"px";return b.transformSupported?(i="translate"+((i=b.transform3dSupported)?"3d":"")+"("+t+","+e+(i?",0":"")+")",n?"top:0;left:0;"+XM+":"+i+";":[["top",0],["left",0],[HM,i]]):n?"top:"+e+";left:"+t+";":[["top",e],["left",t]]}function qM(i,t,e){var n,o,r=[],a=i.get("transitionDuration"),s=i.get("backgroundColor"),l=i.get("shadowBlur"),h=i.get("shadowColor"),u=i.get("shadowOffsetX"),c=i.get("shadowOffsetY"),p=i.getModel("textStyle"),d=Kf(i,"html");return r.push("box-shadow:"+(u+"px "+c+"px "+l+"px "+h)),t&&a&&r.push((h="opacity"+(l=" "+(u=a)/2+"s "+(c="cubic-bezier(0.23,1,0.32,1)"))+",visibility"+l,e||(l=" "+u+"s "+c,h+=b.transformSupported?","+HM+l:",left"+l+",top"+l),UM+":"+h)),s&&(b.canvasSupported?r.push("background-color:"+s):(r.push("background-color:#"+yn(s)),r.push("filter:alpha(opacity=70)"))),I(["width","color","radius"],function(t){var e="border-"+t,n=Kc(e),n=i.get(n);null!=n&&r.push(e+":"+n+("color"===t?"":"px"))}),r.push((o=[],t=(n=p).get("fontSize"),(a=n.getTextColor())&&o.push("color:"+a),o.push("font:"+n.getFont()),t&&o.push("line-height:"+Math.round(3*t/2)+"px"),a=n.get("textShadowColor"),t=n.get("textShadowBlur")||0,e=n.get("textShadowOffsetX")||0,u=n.get("textShadowOffsetY")||0,a&&t&&o.push("text-shadow:"+e+"px "+u+"px "+t+"px "+a),I(["decoration","align"],function(t){var e=n.get(t);e&&o.push("text-"+t+":"+e)}),o.join(";"))),null!=d&&r.push("padding:"+$c(d).join("px ")+"px"),r.join(";")+";"}function jM(t,e,n,i,o){var r,a,s=e&&e.painter;n?(n=s&&s.getViewportRoot())&&(r=t,a=document.body,oe(ie,n,i,o,!0))&&oe(r,a,ie[0],ie[1]):(t[0]=i,t[1]=o,(n=s&&s.getViewportRootOffset())&&(t[0]+=n.offsetLeft,t[1]+=n.offsetTop)),t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}$M.prototype.update=function(t){var e=this._container,n=GM(e,"position"),e=e.style;"absolute"!==e.position&&"absolute"!==n&&(e.position="relative"),t.get("alwaysShowContent")&&this._moveIfResized(),this.el.className=t.get("className")||""},$M.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,o=this._styleCoord;n.innerHTML?i.cssText=YM+qM(t,!this._firstShow,this._longHide)+ZM(o[0],o[1],!0)+"border-color:"+ap(e)+";"+(t.get("extraCssText")||"")+";pointer-event:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},$M.prototype.setContent=function(t,e,n,i,o){if(null!=t){var r=this.el;if(C(o)&&"item"===n.get("trigger")&&!FM(n)&&(t+=function(t,e,n){if(!C(n)||"inside"===n)return"";e=ap(e);var i=(n=n="left"===(n=n)?"right":"right"===n?"left":"top"===n?"bottom":"top")+":-6px;",o=XM+":",n=(-1<A(["left","right"],n)?(i+="top:50%",o+="translateY(-50%) rotate("+("left"==n?-225:-45)+"deg)"):(i+="left:50%",o+="translateX(-50%) rotate("+("top"==n?225:45)+"deg)"),e+" solid 1px;");return'<div style="'+["position:absolute;width:10px;height:10px;",i+";"+o+";","border-bottom:"+n,"border-right:"+n,"background-color:"+t+";","box-shadow:8px 8px 16px -3px #000;"].join("")+'"></div>'}(n.get("backgroundColor"),i,o)),C(t))r.innerHTML=t;else if(t){r.innerHTML="",F(t)||(t=[t]);for(var a=0;a<t.length;a++)pt(t[a])&&t[a].parentNode!==r&&r.appendChild(t[a])}}},$M.prototype.setEnterable=function(t){this._enterable=t},$M.prototype.getSize=function(){var t=this.el;return[t.clientWidth,t.clientHeight]},$M.prototype.moveTo=function(t,e){var n,i=this._styleCoord;jM(i,this._zr,this._appendToBody,t,e),null!=i[0]&&null!=i[1]&&(n=this.el.style,I(ZM(i[0],i[1]),function(t){n[t[0]]=t[1]}))},$M.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},$M.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",b.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},$M.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(S(this.hide,this),t)):this.hide())},$M.prototype.isShow=function(){return this._show},$M.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},$M.prototype.getOuterSize=function(){var t=this.el.clientWidth,e=this.el.clientHeight,n=GM(this.el);return n&&(t+=parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),e+=parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10)),{width:t,height:e}};var KM=$M;function $M(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,b.wxa)return null;var i=document.createElement("div"),o=(i.domBelongToZr=!0,this.el=i,this._zr=e.getZr()),n=this._appendToBody=n&&n.appendToBody,r=(jM(this._styleCoord,o,n,e.getWidth()/2,e.getHeight()/2),(n?document.body:t).appendChild(i),this._container=t,this);i.onmouseenter=function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},i.onmousemove=function(t){var e;t=t||window.event,r._enterable||(e=o.handler,pe(o.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t))},i.onmouseleave=function(){r._inContent=!1,r._enterable&&r._show&&r.hideLater(r._hideDelay)}}QM.prototype.update=function(t){t.get("alwaysShowContent")&&this._moveIfResized()},QM.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},QM.prototype.setContent=function(t,e,n,i,o){D(t)&&f(""),this.el&&this._zr.remove(this.el);var r=n.getModel("textStyle"),a=(this.el=new ms({style:{rich:e.richTextStyles,text:t,lineHeight:22,backgroundColor:n.get("backgroundColor"),borderRadius:n.get("borderRadius"),borderWidth:1,borderColor:i,shadowColor:n.get("shadowColor"),shadowBlur:n.get("shadowBlur"),shadowOffsetX:n.get("shadowOffsetX"),shadowOffsetY:n.get("shadowOffsetY"),textShadowColor:r.get("textShadowColor"),textShadowBlur:r.get("textShadowBlur")||0,textShadowOffsetX:r.get("textShadowOffsetX")||0,textShadowOffsetY:r.get("textShadowOffsetY")||0,fill:n.get(["textStyle","color"]),padding:Kf(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),this._zr.add(this.el),this);this.el.on("mouseover",function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0}),this.el.on("mouseout",function(){a._enterable&&a._show&&a.hideLater(a._hideDelay),a._inContent=!1})},QM.prototype.setEnterable=function(t){this._enterable=t},QM.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),t=eT(t.style);return[e.width+t.left+t.right,e.height+t.top+t.bottom]},QM.prototype.moveTo=function(t,e){var n,i,o=this.el;o&&(nT(i=this._styleCoord,this._zr,t,e),t=i[0],e=i[1],n=tT((i=o.style).borderWidth||0),i=eT(i),o.x=t+n+i.left,o.y=e+n+i.top,o.markRedraw())},QM.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},QM.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},QM.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(S(this.hide,this),t)):this.hide())},QM.prototype.isShow=function(){return this._show},QM.prototype.getOuterSize=function(){var t=this.getSize();return{width:t[0],height:t[1]}},QM.prototype.dispose=function(){this._zr.remove(this.el)};var JM=QM;function QM(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),nT(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}function tT(t){return Math.max(0,t)}function eT(t){var e=tT(t.shadowBlur||0),n=tT(t.shadowOffsetX||0),t=tT(t.shadowOffsetY||0);return{left:tT(e-n),right:tT(e+n),top:tT(e-t),bottom:tT(e+t)}}function nT(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var iT,oT=S,rT=I,aT=B,sT=new ps({shape:{x:-1,y:-1,width:2,height:2}}),lT=(h(hT,iT=cg),hT.prototype.init=function(t,e){var n;b.node||(t=t.getComponent("tooltip"),n=t.get("renderMode"),this._renderMode="auto"===(n=n)?b.domSupported?"html":"richText":n||"html",this._tooltipContent="richText"===this._renderMode?new JM(e):new KM(e.getDom(),e,{appendToBody:t.get("appendToBody",!0)}))},hT.prototype.render=function(t,e,n){b.node||(this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._alwaysShowContent=t.get("alwaysShowContent"),(e=this._tooltipContent).update(t),e.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow())},hT.prototype._initGlobalListener=function(){var i=this._tooltipModel.get("triggerOn");xM("itemTooltip",this._api,oT(function(t,e,n){"none"!==i&&(0<=i.indexOf(t)?this._tryShow(e,n):"leave"===t&&this._hide(n))},this))},hT.prototype._keepShow=function(){var t,e=this._tooltipModel,n=this._ecModel,i=this._api;null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")&&(t=this,clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){i.isDisposed()||t.manuallyShowTip(e,n,i,{x:t._lastX,y:t._lastY,dataByCoordSys:t._lastDataByCoordSys})}))},hT.prototype.manuallyShowTip=function(t,e,n,i){var o,r,a,s;i.from===this.uid||b.node||(o=cT(i,n),this._ticket="",s=i.dataByCoordSys,(r=function(n,t,e){var i=qo(n).queryOptionMap,o=i.keys()[0];if(o&&"series"!==o){var r,t=$o(t,o,i.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(t)if(e.getViewOfComponentModel(t).group.traverse(function(t){var e=Cs(t).tooltipConfig;if(e&&e.name===n.name)return r=t,!0}),r)return{componentMainType:o,componentIndex:t.componentIndex,el:r}}}(i,e,n))?((a=r.el.getBoundingRect().clone()).applyTransform(r.el.transform),this._tryShow({offsetX:a.x+a.width/2,offsetY:a.y+a.height/2,target:r.el,position:i.position,positionDefault:"bottom"},o)):i.tooltip&&null!=i.x&&null!=i.y?((a=sT).x=i.x,a.y=i.y,a.update(),Cs(a).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:a},o)):s?this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o):null!=i.seriesIndex?this._manuallyAxisShowTip(t,e,n,i)||(a=(r=AM(i,e)).point[0],s=r.point[1],null!=a&&null!=s&&this._tryShow({offsetX:a,offsetY:s,target:r.el,position:i.position,positionDefault:"bottom"},o)):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},o)))},hT.prototype.manuallyHideTip=function(t,e,n,i){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(cT(i,n))},hT.prototype._manuallyAxisShowTip=function(t,e,n,i){var o=i.seriesIndex,r=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=r&&null!=a){a=e.getSeriesByIndex(o);if(a){e=uT([a.getData().getItemModel(r),a,(a.coordinateSystem||{}).model],this._tooltipModel);if("axis"===e.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:r,position:i.position}),!0}}},hT.prototype._tryShow=function(t,e){var n,i,o,r=t.target;this._tooltipModel&&(this._lastX=t.offsetX,this._lastY=t.offsetY,(n=t.dataByCoordSys)&&n.length?this._showAxisTooltip(n,t):r?(Iy(r,function(t){return null!=Cs(t).dataIndex?(i=t,1):null!=Cs(t).tooltipConfig&&(o=t,1)},!(this._lastDataByCoordSys=null)),i?this._showSeriesItemTooltip(t,i,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)):(this._lastDataByCoordSys=null,this._hide(e)))},hT.prototype._showOrMove=function(t,e){t=t.get("showDelay");e=S(e,this),clearTimeout(this._showTimout),0<t?this._showTimout=setTimeout(e,t):e()},hT.prototype._showAxisTooltip=function(t,e){var l=this._ecModel,n=this._tooltipModel,i=[e.offsetX,e.offsetY],o=uT([e.tooltipOption],n),h=this._renderMode,u=[],c=Gf("section",{blocks:[],noHeader:!0}),p=[],d=new $f,r=(rT(t,function(t){rT(t.dataByAxis,function(i){var o,r,a=l.getComponent(i.axisDim+"Axis",i.axisIndex),s=i.value;a&&null!=s&&(o=sM(s,a.axis,l,i.seriesDataIndices,i.valueLabelOpt),r=Gf("section",{header:o,noHeader:!bt(o),sortBlocks:!0,blocks:[]}),c.blocks.push(r),I(i.seriesDataIndices,function(t){var e=l.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,n=e.getDataParams(t),e=(n.axisDim=i.axisDim,n.axisIndex=i.axisIndex,n.axisType=i.axisType,n.axisId=i.axisId,n.axisValue=_1(a.axis,{value:s}),n.axisValueLabel=o,n.marker=d.makeTooltipMarker("item",ap(n.color),h),ef(e.formatTooltip(t,!0,null)));e.markupFragment&&r.blocks.push(e.markupFragment),e.markupText&&p.push(e.markupText),u.push(n)}))})}),c.blocks.reverse(),p.reverse(),e.position),n=o.get("order"),e=Yf(c,d,h,n,l.get("useUTC"),o.get("textStyle")),n=(e&&p.unshift(e),"richText"===h?"\n\n":"<br/>"),a=p.join(n);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(o,r,i[0],i[1],this._tooltipContent,u):this._showTooltipContent(o,a,u,Math.random()+"",i[0],i[1],r,null,d)})},hT.prototype._showSeriesItemTooltip=function(t,e,n){var i,o,r,a,s=this._ecModel,e=Cs(e),l=e.seriesIndex,h=s.getSeriesByIndex(l),u=e.dataModel||h,c=e.dataIndex,e=e.dataType,p=u.getData(e),d=this._renderMode,f=t.positionDefault,g=uT([p.getItemModel(c),u,h&&(h.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),h=g.get("trigger");null!=h&&"item"!==h||(i=u.getDataParams(c,e),o=new $f,i.marker=o.makeTooltipMarker("item",ap(i.color),d),f=ef(u.formatTooltip(c,!1,e)),h=g.get("order"),r=f.markupFragment?Yf(f.markupFragment,o,d,h,s.get("useUTC"),g.get("textStyle")):f.markupText,a="item_"+u.name+"_"+c,this._showOrMove(g,function(){this._showTooltipContent(g,r,i,a,t.offsetX,t.offsetY,t.position,t.target,o)}),n({type:"showTip",dataIndexInside:c,dataIndex:p.getRawIndex(c),seriesIndex:l,from:this.uid}))},hT.prototype._showComponentItemTooltip=function(e,n,t){var i=Cs(n),o=i.tooltipConfig.option,o=[o=C(o)?{content:o,formatter:o}:o],i=this._ecModel.getComponent(i.componentMainType,i.componentIndex),i=(i&&o.push(i),e.positionDefault),r=uT(o,this._tooltipModel,i?{position:i}:null),a=r.get("content"),s=Math.random()+"",l=new $f;this._showOrMove(r,function(){var t=M(r.get("formatterParams")||{});this._showTooltipContent(r,a,t,s,e.offsetX,e.offsetY,e.position,n,l)}),t({type:"showTip",from:this.uid})},hT.prototype._showTooltipContent=function(n,t,i,e,o,r,a,s,l){var h,u,c,p,d;this._ticket="",n.get("showContent")&&n.get("show")&&(h=this._tooltipContent,u=n.get("formatter"),a=a||n.get("position"),t=t,c=this._getNearestPoint([o,r],i,n.get("trigger"),n.get("borderColor")).color,u&&C(u)?(p=n.ecModel.get("useUTC"),t=u,t=op(t=(d=F(i)?i[0]:i)&&d.axisType&&0<=d.axisType.indexOf("time")?Oc(d.axisValue,t,p):t,i,!0)):st(u)&&(d=oT(function(t,e){t===this._ticket&&(h.setContent(e,l,n,c,a),this._updatePosition(n,a,o,r,h,i,s))},this),this._ticket=e,t=u(i,e,d)),h.setContent(t,l,n,c,a),h.show(n,c),this._updatePosition(n,a,o,r,h,i,s))},hT.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||F(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:F(e)?void 0:{color:i||e.color||e.borderColor}},hT.prototype._updatePosition=function(t,e,n,i,o,r,a){var s,l=this._api.getWidth(),h=this._api.getHeight(),u=(e=e||t.get("position"),o.getSize()),c=t.get("align"),p=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();a&&d.applyTransform(a.transform),F(e=st(e)?e([n,i],r,o.el,d,{viewSize:[l,h],contentSize:u.slice()}):e)?(n=aT(e[0],l),i=aT(e[1],h)):D(e)?((r=e).width=u[0],r.height=u[1],n=(r=cp(r,{width:l,height:h})).x,i=r.y,p=c=null):i=(n=(s=C(e)&&a?function(t,e,n){var i=n[0],o=n[1],r=0,a=0,s=e.width,l=e.height;switch(t){case"inside":r=e.x+s/2-i/2,a=e.y+l/2-o/2;break;case"top":r=e.x+s/2-i/2,a=e.y-o-10;break;case"bottom":r=e.x+s/2-i/2,a=e.y+l+10;break;case"left":r=e.x-i-10-5,a=e.y+l/2-o/2;break;case"right":r=e.x+s+10+5,a=e.y+l/2-o/2}return[r,a]}(e,d,u):function(t,e,n,i,o,r,a){var n=n.getOuterSize(),s=n.width,n=n.height;null!=r&&(i<t+s+r+2?t-=s+r:t+=r);null!=a&&(o<e+n+a?e-=n+a:e+=a);return[t,e]}(n,i,o,l,h,c?null:20,p?null:20))[0],s[1]),c&&(n-=pT(c)?u[0]/2:"right"===c?u[0]:0),p&&(i-=pT(p)?u[1]/2:"bottom"===p?u[1]:0),FM(t)&&(r=n,a=i,e=l,d=h,c=(c=o).getOuterSize(),p=c.width,c=c.height,r=Math.min(r+p,e)-p,a=Math.min(a+c,d)-c,r=Math.max(r,0),a=Math.max(a,0),n=(s=[r,a])[0],i=s[1]),o.moveTo(n,i)},hT.prototype._updateContentNotChangedOnAxis=function(n){var t=this._lastDataByCoordSys,r=!!t&&t.length===n.length;return r&&rT(t,function(t,e){var t=t.dataByAxis||[],o=(n[e]||{}).dataByAxis||[];(r=r&&t.length===o.length)&&rT(t,function(t,e){var e=o[e]||{},n=t.seriesDataIndices||[],i=e.seriesDataIndices||[];(r=r&&t.value===e.value&&t.axisType===e.axisType&&t.axisId===e.axisId&&n.length===i.length)&&rT(n,function(t,e){e=i[e];r=r&&t.seriesIndex===e.seriesIndex&&t.dataIndex===e.dataIndex})})}),this._lastDataByCoordSys=n,!!r},hT.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},hT.prototype.dispose=function(t,e){b.node||(this._tooltipContent.dispose(),SM("itemTooltip",e))},hT.type="tooltip",hT);function hT(){var t=null!==iT&&iT.apply(this,arguments)||this;return t.type=hT.type,t}function uT(t,e,n){for(var i=e.ecModel,o=n?(o=new uc(n,i,i),new uc(e.option,o,i)):e,r=t.length-1;0<=r;r--){var a=t[r];(a=a&&(C(a=a instanceof uc?a.get("tooltip",!0):a)?{formatter:a}:a))&&(o=new uc(a,o,i))}return o}function cT(t,e){return t.dispatchAction||S(e.dispatchAction,e)}function pT(t){return"center"===t||"middle"===t}I1(function(t){I1(EM),t.registerComponentModel(zM),t.registerComponentView(lT),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})});var dT=["x","y","radius","angle","single"],fT=["cartesian2d","polar","singleAxis"];function gT(t){return t+"Axis"}function yT(t,e){var i,o=P(),n=[],r=P();for(t.eachComponent({mainType:"dataZoom",query:e},function(t){r.get(t.uid)||s(t)});i=!1,t.eachComponent("dataZoom",a),i;);function a(t){var n;!r.get(t.uid)&&(n=!1,t.eachTargetAxis(function(t,e){t=o.get(t);t&&t[e]&&(n=!0)}),n)&&(s(t),i=!0)}function s(t){r.set(t.uid,!0),n.push(t),t.eachTargetAxis(function(t,e){(o.get(t)||o.set(t,[]))[e]=!0})}return n}function mT(t){var o=t.ecModel,r={infoList:[],infoMap:P()};return t.eachTargetAxis(function(t,e){var n,i,t=o.getComponent(gT(t),e);t&&(e=t.getCoordSysModel())&&(n=e.uid,(i=r.infoMap.get(n))||(r.infoList.push(i={model:e,axisModels:[]}),r.infoMap.set(n,i)),i.axisModels.push(t))}),r}_T.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)};var vT=_T;function _T(){this.indexList=[],this.indexMap=[]}h(wT,xT=g),wT.prototype.init=function(t,e,n){var i=bT(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},wT.prototype.mergeOption=function(t){var e=bT(t);p(this.option,t,!0),p(this.settledOption,e,!0),this._doInit(e)},wT.prototype._doInit=function(t){var n=this.option,i=(this._setDefaultThrottle(t),this._updateRangeUse(t),this.settledOption);I([["start","startValue"],["end","endValue"]],function(t,e){"value"===this._rangePropMode[e]&&(n[t[0]]=i[t[0]]=null)},this),this._resetTarget()},wT.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=P();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each(function(t){t.indexList.length&&(this._noTarget=!1)},this)},wT.prototype._fillSpecifiedTargetAxis=function(i){var o=!1;return I(dT,function(t){var e,n=this.getReferringComponents(gT(t),Ko);n.specified&&(o=!0,e=new vT,I(n.models,function(t){e.add(t.componentIndex)}),i.set(t,e))},this),o},wT.prototype._fillAutoTargetAxisByOrient=function(r,e){var t,i=this.ecModel,a=!0;function n(t,e){var n,i,o=t[0];o&&((n=new vT).add(o.componentIndex),r.set(e,n),a=!1,"x"!==e&&"y"!==e||(i=o.getReferringComponents("grid",jo).models[0])&&I(t,function(t){o.componentIndex!==t.componentIndex&&i===t.getReferringComponents("grid",jo).models[0]&&n.add(t.componentIndex)}))}a&&n(i.findComponents({mainType:(t="vertical"===e?"y":"x")+"Axis"}),t),a&&n(i.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single"),a&&I(dT,function(t){var e,n;a&&(e=i.findComponents({mainType:gT(t),filter:function(t){return"category"===t.get("type",!0)}}))[0]&&((n=new vT).add(e[0].componentIndex),r.set(t,n),a=!1)},this)},wT.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){e=e||t},this),"y"===e?"vertical":"horizontal"},wT.prototype._setDefaultThrottle=function(t){t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle&&(t=this.ecModel.option,this.option.throttle=t.animation&&0<t.animationDurationUpdate?100:20)},wT.prototype._updateRangeUse=function(i){var o=this._rangePropMode,r=this.get("rangeMode");I([["start","startValue"],["end","endValue"]],function(t,e){var n=null!=i[t[0]],t=null!=i[t[1]];n&&!t?o[e]="percent":!n&&t?o[e]="value":r?o[e]=r[e]:n&&(o[e]="percent")})},wT.prototype.noTarget=function(){return this._noTarget},wT.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(t,e){null==n&&(n=this.ecModel.getComponent(gT(t),e))},this),n},wT.prototype.eachTargetAxis=function(n,i){this._targetAxisInfoMap.each(function(t,e){I(t.indexList,function(t){n.call(i,e,t)})})},wT.prototype.getAxisProxy=function(t,e){t=this.getAxisModel(t,e);if(t)return t.__dzAxisProxy},wT.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(gT(t),e)},wT.prototype.setRawRange=function(e){var n=this.option,i=this.settledOption;I([["start","startValue"],["end","endValue"]],function(t){null==e[t[0]]&&null==e[t[1]]||(n[t[0]]=i[t[0]]=e[t[0]],n[t[1]]=i[t[1]]=e[t[1]])},this),this._updateRangeUse(e)},wT.prototype.setCalculatedRange=function(e){var n=this.option;I(["start","startValue","end","endValue"],function(t){n[t]=e[t]})},wT.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},wT.prototype.getValueRange=function(t,e){return null!=t||null!=e?this.getAxisProxy(t,e).getDataValueWindow():(t=this.findRepresentativeAxisProxy())?t.getDataValueWindow():void 0},wT.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],r=this._targetAxisInfoMap.get(o),a=0;a<r.indexList.length;a++){var s=this.getAxisProxy(o,r.indexList[a]);if(s.hostedBy(this))return s;e=e||s}return e},wT.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},wT.prototype.getOrient=function(){return this._orient},wT.type="dataZoom",wT.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],wT.defaultOption={zlevel:0,z:4,filterMode:"filter",start:0,end:100};var xT,Ey=wT;function wT(){var t=null!==xT&&xT.apply(this,arguments)||this;return t.type=wT.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}function bT(e){var n={};return I(["start","end","startValue","endValue","throttle"],function(t){e.hasOwnProperty(t)&&(n[t]=e[t])}),n}h(TT,ST=Ey),TT.type="dataZoom.inside",TT.defaultOption=fc(Ey.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0});var ST,MT=TT;function TT(){var t=null!==ST&&ST.apply(this,arguments)||this;return t.type=TT.type,t}h(AT,CT=cg),AT.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},AT.type="dataZoom";var CT,ar=AT;function AT(){var t=null!==CT&&CT.apply(this,arguments)||this;return t.type=AT.type,t}function IT(t,e,n,i,o,r){t=t||0;var a=n[1]-n[0],a=(null!=o&&(o=DT(o,[0,a])),null!=r&&(r=Math.max(r,null!=o?o:0)),"all"===i&&(s=DT(s=Math.abs(e[1]-e[0]),[0,a]),o=r=DT(s,[o,r]),i=0),e[0]=DT(e[0],n),e[1]=DT(e[1],n),kT(e,i)),s=(e[i]+=t,o||0),t=n.slice();a.sign<0?t[0]+=s:t[1]-=s,e[i]=DT(e[i],t),n=kT(e,i),null!=o&&(n.sign!==a.sign||n.span<o)&&(e[1-i]=e[i]+a.sign*o),n=kT(e,i),null!=r&&n.span>r&&(e[1-i]=e[i]+n.sign*r)}function kT(t,e){t=t[e]-t[1-e];return{span:Math.abs(t),sign:0<t||!(t<0)&&e?-1:1}}function DT(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var PT="\0_ec_interaction_mutex";function LT(t,e){return((t=t)[PT]||(t[PT]={}))[e]}bv({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){});h(ET,OT=$t),ET.prototype.isDragging=function(){return this._dragging},ET.prototype.isPinching=function(){return this._pinching},ET.prototype.setPointerChecker=function(t){this.pointerChecker=t},ET.prototype.dispose=function(){this.disable()},ET.prototype._mousedownHandler=function(t){var e,n;fe(t)||t.target&&t.target.draggable||(e=t.offsetX,n=t.offsetY,this.pointerChecker&&this.pointerChecker(t,e,n)&&(this._x=e,this._y=n,this._dragging=!0))},ET.prototype._mousemoveHandler=function(t){var e,n,i,o,r,a;this._dragging&&NT("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!LT(this._zr,"globalPan")&&(e=t.offsetX,n=t.offsetY,r=e-(i=this._x),a=n-(o=this._y),this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&de(t.event),zT(this,"pan","moveOnMouseMove",t,{dx:r,dy:a,oldX:i,oldY:o,newX:e,newY:n,isAvailableBehavior:null}))},ET.prototype._mouseupHandler=function(t){fe(t)||(this._dragging=!1)},ET.prototype._mousewheelHandler=function(t){var e=NT("zoomOnMouseWheel",t,this._opt),n=NT("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),r=t.offsetX,a=t.offsetY;0!==i&&(e||n)&&(e&&(e=3<o?1.4:1<o?1.2:1.1,BT(this,"zoom","zoomOnMouseWheel",t,{scale:0<i?e:1/e,originX:r,originY:a,isAvailableBehavior:null})),n)&&BT(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(0<i?1:-1)*(3<(o=Math.abs(i))?.4:1<o?.15:.05),originX:r,originY:a,isAvailableBehavior:null})},ET.prototype._pinchHandler=function(t){LT(this._zr,"globalPan")||BT(this,"zoom",null,t,{scale:1<t.pinchScale?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})};var OT,RT=ET;function ET(n){var t=OT.call(this)||this,i=(t._zr=n,S(t._mousedownHandler,t)),o=S(t._mousemoveHandler,t),r=S(t._mouseupHandler,t),a=S(t._mousewheelHandler,t),s=S(t._pinchHandler,t);return t.enable=function(t,e){this.disable(),this._opt=N(M(e)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),!0!==(t=null==t?!0:t)&&"move"!==t&&"pan"!==t||(n.on("mousedown",i),n.on("mousemove",o),n.on("mouseup",r)),!0!==t&&"scale"!==t&&"zoom"!==t||(n.on("mousewheel",a),n.on("pinch",s))},t.disable=function(){n.off("mousedown",i),n.off("mousemove",o),n.off("mouseup",r),n.off("mousewheel",a),n.off("pinch",s)},t}function BT(t,e,n,i,o){t.pointerChecker&&t.pointerChecker(i,o.originX,o.originY)&&(de(i.event),zT(t,e,n,i,o))}function zT(t,e,n,i,o){o.isAvailableBehavior=S(NT,null,n,i),t.trigger(e,o)}function NT(t,e,n){n=n[t];return!t||n&&(!C(n)||e.event[n+"Key"])}var FT=Xo();function VT(t,e){e&&(t.removeKey(e.model.uid),t=e.controller)&&t.dispose()}function HT(t,e){t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function WT(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function GT(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(t,a){var e=FT(a),l=e.coordSysRecordMap||(e.coordSysRecordMap=P());l.each(function(t){t.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){I(mT(o).infoList,function(t){var r,e,n=t.model.uid,i=l.get(n)||l.set(n,(n=a,i=t.model,r={model:i,containsPoint:at(WT,i),dispatchAction:at(HT,n),dataZoomInfoMap:null,controller:null},e=r.controller=new RT(n.getZr()),I(["pan","zoom","scrollMove"],function(o){e.on(o,function(n){var i=[];r.dataZoomInfoMap.each(function(t){var e;n.isAvailableBehavior(t.model.option)&&(e=(e=(t.getRange||{})[o])&&e(t.dzReferCoordSysInfo,r.model.mainType,r.controller,n),!t.model.get("disabled",!0))&&e&&i.push({dataZoomId:t.model.id,start:e[0],end:e[1]})}),i.length&&r.dispatchAction(i)})}),r));(i.dataZoomInfoMap||(i.dataZoomInfoMap=P())).set(o.uid,{dzReferCoordSysInfo:t,model:o,getRange:null})})}),l.each(function(t){var e,n,i,o,r,a=t.controller,s=t.dataZoomInfoMap;(e=s&&null!=(n=s.keys()[0])?s.get(n):e)?(o={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0,s.each(function(t){var t=t.model,e=!t.get("disabled",!0)&&(!t.get("zoomLock",!0)||"move");o["type_"+i]<o["type_"+e]&&(i=e),r=r&&t.get("preventDefaultMouseMove",!0)}),n={controlType:i,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}},a.enable(n.controlType,n.opt),a.setPointerChecker(t.containsPoint),Ag(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")):VT(l,t)})})}h(YT,UT=ar),YT.prototype.render=function(t,e,n){var i,o;UT.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),n=n,i=t,o={pan:S(ZT.pan,this),zoom:S(ZT.zoom,this),scrollMove:S(ZT.scrollMove,this)},FT(n).coordSysRecordMap.each(function(t){t=t.dataZoomInfoMap.get(i.uid);t&&(t.getRange=o)}))},YT.prototype.dispose=function(){this._clear(),UT.prototype.dispose.apply(this,arguments)},YT.prototype._clear=function(){for(var t=this.api,e=this.dataZoomModel,n=FT(t).coordSysRecordMap,i=n.keys(),o=0;o<i.length;o++){var r,a=i[o],a=n.get(a),s=a.dataZoomInfoMap;s&&(r=e.uid,s.get(r))&&(s.removeKey(r),s.keys().length||VT(n,a))}this.range=null},YT.type="dataZoom.inside";var UT,XT=YT;function YT(){var t=null!==UT&&UT.apply(this,arguments)||this;return t.type="dataZoom.inside",t}var ZT={zoom:function(t,e,n,i){var o=this.range,r=o.slice(),a=t.axisModels[0];if(a)return a=(0<(e=jT[e](null,[i.originX,i.originY],a,n,t)).signal?e.pixelStart+e.pixelLength-e.pixel:e.pixel-e.pixelStart)/e.pixelLength*(r[1]-r[0])+r[0],n=Math.max(1/i.scale,0),r[0]=(r[0]-a)*n+a,r[1]=(r[1]-a)*n+a,IT(0,r,[0,100],0,(t=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan()).minSpan,t.maxSpan),this.range=r,o[0]!==r[0]||o[1]!==r[1]?r:void 0},pan:qT(function(t,e,n,i,o,r){i=jT[i]([r.oldX,r.oldY],[r.newX,r.newY],e,o,n);return i.signal*(t[1]-t[0])*i.pixel/i.pixelLength}),scrollMove:qT(function(t,e,n,i,o,r){return jT[i]([0,0],[r.scrollDelta,r.scrollDelta],e,o,n).signal*(t[1]-t[0])*r.scrollDelta})};function qT(s){return function(t,e,n,i){var o=this.range,r=o.slice(),a=t.axisModels[0];if(a)return IT(s(r,a,t,e,n,i),r,[0,100],"all"),this.range=r,o[0]!==r[0]||o[1]!==r[1]?r:void 0}}var jT={grid:function(t,e,n,i,o){var n=n.axis,r={},o=o.model.coordinateSystem.getRect();return t=t||[0,0],"x"===n.dim?(r.pixel=e[0]-t[0],r.pixelLength=o.width,r.pixelStart=o.x,r.signal=n.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixelLength=o.height,r.pixelStart=o.y,r.signal=n.inverse?-1:1),r},polar:function(t,e,n,i,o){var r=n.axis,a={},o=o.model.coordinateSystem,s=o.getRadiusAxis().getExtent(),l=o.getAngleAxis().getExtent();return t=t?o.pointToCoord(t):[0,0],e=o.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=s[1]-s[0],a.pixelStart=s[0],a.signal=r.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=r.inverse?-1:1),a},singleAxis:function(t,e,n,i,o){var n=n.axis,o=o.model.coordinateSystem.getRect(),r={};return t=t||[0,0],"horizontal"===n.orient?(r.pixel=e[0]-t[0],r.pixelLength=o.width,r.pixelStart=o.x,r.signal=n.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixelLength=o.height,r.pixelStart=o.y,r.signal=n.inverse?-1:1),r}},KT=I,$T=vo,JT=(QT.prototype.hostedBy=function(t){return this._dataZoomModel===t},QT.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},QT.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},QT.prototype.getTargetSeriesModels=function(){var n=[];return this.ecModel.eachSeries(function(t){var e;e=(e=t).get("coordinateSystem"),0<=A(fT,e)&&(e=gT(this._dimName),e=t.getReferringComponents(e,jo).models[0])&&this._axisIndex===e.componentIndex&&n.push(t)},this),n},QT.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},QT.prototype.getMinMaxSpan=function(){return M(this._minMaxSpan)},QT.prototype.calculateDataWindow=function(i){var o,r=this._dataExtent,s=this.getAxisModel().axis.scale,a=this._dataZoomModel.getRangePropMode(),l=[0,100],h=[],u=[],c=(KT(["start","end"],function(t,e){var n=i[t],t=i[t+"Value"];"percent"===a[e]?t=s.parse(yo(n=null==n?l[e]:n,l,r)):(o=!0,n=yo(t=null==t?r[e]:s.parse(t),r,l)),u[e]=t,h[e]=n}),$T(u),$T(h),this._minMaxSpan);function t(t,e,n,i,o){var r=o?"Span":"ValueSpan";IT(0,t,n,"all",c["min"+r],c["max"+r]);for(var a=0;a<2;a++)e[a]=yo(t[a],n,i,!0),o&&(e[a]=s.parse(e[a]))}return o?t(u,h,r,l,!1):t(h,u,l,r,!0),{valueWindow:u,percentWindow:h}},QT.prototype.reset=function(t){var e,i,o,n;t===this._dataZoomModel&&(n=this.getTargetSeriesModels(),this._dataExtent=(i=(e=this)._dimName,o=[1/0,-1/0],KT(n=n,function(t){var e,n;e=o,n=t.getData(),t=i,n&&I(S1(n,t),function(t){t=n.getApproximateExtent(t);t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])})}),[(e=d1((n=e.getAxisModel()).axis.scale,n,o).calculate()).min,e.max]),this._updateMinMaxSpan(),n=this.calculateDataWindow(t.settledOption),this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel())},QT.prototype.filterData=function(t,e){var i,n,o,u;t===this._dataZoomModel&&(i=this._dimName,n=this.getTargetSeriesModels(),o=t.get("filterMode"),u=this._valueWindow,"none"!==o)&&KT(n,function(n){var l=n.getData(),h=l.mapDimensionsAll(i);h.length&&("weakFilter"===o?l.filterSelf(function(t){for(var e,n,i,o=0;o<h.length;o++){var r=l.get(h[o],t),a=!isNaN(r),s=r<u[0],r=r>u[1];if(a&&!s&&!r)return!0;a&&(i=!0),s&&(e=!0),r&&(n=!0)}return i&&e&&n}):KT(h,function(t){var e;"empty"===o?n.setData(l=l.map(t,function(t){return(e=t)>=u[0]&&e<=u[1]?t:NaN;var e})):((e={})[t]=u,l.selectRange(e))}),KT(h,function(t){l.setApproximateExtent(u,t)}))})},QT.prototype._updateMinMaxSpan=function(){var i=this._minMaxSpan={},o=this._dataZoomModel,r=this._dataExtent;KT(["min","max"],function(t){var e=o.get(t+"Span"),n=o.get(t+"ValueSpan");null!=(n=null!=n?this.getAxisModel().axis.scale.parse(n):n)?e=yo(r[0]+n,r,[0,100],!0):null!=e&&(n=yo(e,[0,100],r,!0)-r[0]),i[t+"Span"]=e,i[t+"ValueSpan"]=n},this)},QT.prototype._setAxisModel=function(){var t,e=this.getAxisModel(),n=this._percentWindow,i=this._valueWindow;n&&(t=xo(i,[0,500]),t=Math.min(t,20),e=e.axis.scale.rawExtentInfo,0!==n[0]&&e.setDeterminedMinMax("min",+i[0].toFixed(t)),100!==n[1]&&e.setDeterminedMinMax("max",+i[1].toFixed(t)),e.freeze())},QT);function QT(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}var t2={getTargetSeries:function(r){function t(o){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(t,e){var n=r.getComponent(gT(t),e);o(t,e,n,i)})})}t(function(t,e,n,i){n.__dzAxisProxy=null});var o=[],e=(t(function(t,e,n,i){n.__dzAxisProxy||(n.__dzAxisProxy=new JT(t,e,i,r),o.push(n.__dzAxisProxy))}),P());return I(o,function(t){I(t.getTargetSeriesModels(),function(t){e.set(t.uid,t)})}),e},overallReset:function(t,i){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(t,e){n.getAxisProxy(t,e).reset(n)}),n.eachTargetAxis(function(t,e){n.getAxisProxy(t,e).filterData(n,i)})}),t.eachComponent("dataZoom",function(t){var e,n=t.findRepresentativeAxisProxy();n&&(e=n.getDataPercentWindow(),n=n.getDataValueWindow(),t.setCalculatedRange({start:e[0],end:e[1],startValue:n[0],endValue:n[1]}))})}};var e2=!1;function n2(t){e2||(e2=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,t2),t.registerAction("dataZoom",function(e,t){I(yT(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})}),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function i2(t){n2(t),t.registerComponentModel(MT),t.registerComponentView(XT),GT(t)}h(a2,o2=Ey),a2.type="dataZoom.slider",a2.layoutMode="box",a2.defaultOption=fc(Ey.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}});var o2,r2=a2;function a2(){var t=null!==o2&&o2.apply(this,arguments)||this;return t.type=a2.type,t}var s2,l2=ps,h2="horizontal",u2="vertical",c2=["line","bar","candlestick","scatter"],p2={easing:"cubicOut",duration:100},d2=(h(y,s2=ar),y.prototype.init=function(t,e){this.api=e,this._onBrush=S(this._onBrush,this),this._onBrushEnd=S(this._onBrushEnd,this)},y.prototype.render=function(t,e,n,i){s2.prototype.render.apply(this,arguments),Ag(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1===t.get("show")?this.group.removeAll():t.noTarget()?(this._clear(),this.group.removeAll()):(i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView())},y.prototype.dispose=function(){this._clear(),s2.prototype.dispose.apply(this,arguments)},y.prototype._clear=function(){(e=(n=this)[t="_dispatchZoomAction"])&&e[Sg]&&(n[t]=e[Sg]);var t,e,n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},y.prototype._buildView=function(){var t=this.group,e=(t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval(),this._displayables.sliderGroup=new so);this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},y.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,i=this._findCoordRect(),e={width:e.getWidth(),height:e.getHeight()},o=this._orient===h2?{right:e.width-i.x-i.width,top:e.height-30-7-n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},r=fp(t.option),n=(I(["right","top","width","height"],function(t){"ph"===r[t]&&(r[t]=o[t])}),cp(r,e));this._location={x:n.x,y:n.y},this._size=[n.width,n.height],this._orient===u2&&this._size.reverse()},y.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),i=i&&i.get("inverse"),o=this._displayables.sliderGroup,r=(this._dataShadowInfo||{}).otherAxisInverse,n=(o.attr(n!==h2||i?n===h2&&i?{scaleY:r?1:-1,scaleX:-1}:n!==u2||i?{scaleY:r?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:r?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:r?1:-1,scaleX:1}),t.getBoundingRect([o]));t.x=e.x-n.x,t.y=e.y-n.y,t.markRedraw()},y.prototype._getViewExtent=function(){return[0,this._size[0]]},y.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect"),t=(n.add(new l2({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),new l2({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:S(this._onClickPanel,this)})),e=this.api.getZr();i?(t.on("mousedown",this._onBrushStart,this),t.cursor="crosshair",e.on("mousemove",this._onBrush),e.on("mouseup",this._onBrushEnd)):(e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)),n.add(t)},y.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=t.series,i=n.getRawData(),n=n.getShadowDim?n.getShadowDim():t.otherDim;if(null!=n)for(var o,r,a,t=.3*((s=i.getDataExtent(n))[1]-s[0]),s=[s[0]-t,s[1]+t],l=[0,e[1]],t=[0,e[0]],h=[[e[0],0],[0,0]],u=[],c=t[1]/(i.count()-1),p=0,d=Math.round(i.count()/e[0]),f=(i.each([n],function(t,e){var n;0<d&&e%d?p+=c:(t=(n=null==t||isNaN(t)||""===t)?0:yo(t,s,l,!0),n&&!o&&e?(h.push([h[h.length-1][0],0]),u.push([u[u.length-1][0],0])):!n&&o&&(h.push([p,0]),u.push([p,0])),h.push([p,t]),u.push([p,t]),p+=c,o=n)}),this.dataZoomModel),g=0;g<3;g++){r=1===g,y=a=void 0,r=f.getModel(r?"selectedDataBackground":"dataBackground"),a=new so,y=new wh({shape:{points:h},segmentIgnoreThreshold:1,style:r.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new Th({shape:{points:u},segmentIgnoreThreshold:1,style:r.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19}),a.add(y),a.add(r);var y=a;this._displayables.sliderGroup.add(y),this._displayables.dataShadowSegs.push(y)}}},y.prototype._prepareDataShadowInfo=function(){var s,l,t=this.dataZoomModel,h=t.get("showDataShadow");if(!1!==h)return l=this.ecModel,t.eachTargetAxis(function(r,a){I(t.getAxisProxy(r,a).getTargetSeriesModels(),function(t){var e,n,i,o;s||!0!==h&&A(c2,t.get("type"))<0||(e=l.getComponent(gT(r),a).axis,o=t.coordinateSystem,null!=(n={x:"y",y:"x",radius:"angle",angle:"radius"}[r])&&o.getOtherAxis&&(i=o.getOtherAxis(e).inverse),n=t.getData().mapDimension(n),s={thisAxis:e,series:t,thisDim:r,otherDim:n,otherAxisInverse:i})},this)},this),s},y.prototype._renderHandle=function(){var t,e,o=this.group,n=this._displayables,r=n.handles=[null,null],a=n.handleLabels=[null,null],s=this._displayables.sliderGroup,i=this._size,l=this.dataZoomModel,h=this.api,u=l.get("borderRadius")||0,c=l.get("brushSelect"),p=n.filler=new l2({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}}),u=(s.add(p),s.add(new l2({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:i[0],height:i[1],r:u},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),I([0,1],function(t){var e=l.get("handleIcon"),e=Vy(e=!zy[e]&&e.indexOf("path://")<0&&e.indexOf("image://")<0?"path://"+e:e,-1,0,2,2,null,!0),n=(e.attr({cursor:f2(this._orient),draggable:!0,drift:S(this._onDragMove,this,t),ondragend:S(this._onDragEnd,this),onmouseover:S(this._showDataInfo,this,!0),onmouseout:S(this._showDataInfo,this,!1),z2:5}),e.getBoundingRect()),i=l.get("handleSize"),i=(this._handleHeight=B(i,this._size[1]),this._handleWidth=n.width/n.height*this._handleHeight,e.setStyle(l.getModel("handleStyle").getItemStyle()),e.style.strokeNoScale=!0,e.rectHover=!0,e.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),gl(e),l.get("handleColor")),n=(null!=i&&(e.style.fill=i),s.add(r[t]=e),l.getModel("textStyle"));o.add(a[t]=new ms({silent:!0,invisible:!0,style:Uu(n,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:n.getTextColor(),font:n.getFont()}),z2:10}))},this),p);c&&(p=B(l.get("moveHandleSize"),i[1]),t=n.moveHandle=new ps({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:i[1]-.5,height:p}}),c=.8*p,(c=n.moveHandleIcon=Vy(l.get("moveHandleIcon"),-c/2,-c/2,c,c,"#fff",!0)).silent=!0,c.y=i[1]+p/2-.5,t.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle(),e=Math.min(i[1]/2,Math.max(p,10)),(u=n.moveZone=new ps({invisible:!0,shape:{y:i[1]-e,height:p+e}})).on("mouseover",function(){h.enterEmphasis(t)}).on("mouseout",function(){h.leaveEmphasis(t)}),s.add(t),s.add(c),s.add(u)),u.attr({draggable:!0,cursor:f2(this._orient),drift:S(this._onDragMove,this,"all"),ondragstart:S(this._showDataInfo,this,!0),ondragend:S(this._onDragEnd,this),onmouseover:S(this._showDataInfo,this,!0),onmouseout:S(this._showDataInfo,this,!1)})},y.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[yo(t[0],[0,100],e,!0),yo(t[1],[0,100],e,!0)]},y.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),r=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100],e=(IT(e,i,o,n.get("zoomLock")?"all":t,null!=r.minSpan?yo(r.minSpan,a,o,!0):null,null!=r.maxSpan?yo(r.maxSpan,a,o,!0):null),this._range),n=this._range=vo([yo(i[0],o,a,!0),yo(i[1],o,a,!0)]);return!e||e[0]!==n[0]||e[1]!==n[1]},y.prototype._updateView=function(t){for(var i=this._displayables,o=this._handleEnds,e=vo(o.slice()),r=this._size,n=(I([0,1],function(t){var e=i.handles[t],n=this._handleHeight;e.attr({scaleX:n/2,scaleY:n/2,x:o[t]+(t?-1:1),y:r[1]/2-n/2})},this),i.filler.setShape({x:e[0],y:0,width:e[1]-e[0],height:r[1]}),{x:e[0],width:e[1]-e[0]}),a=(i.moveHandle&&(i.moveHandle.setShape(n),i.moveZone.setShape(n),i.moveZone.getBoundingRect(),i.moveHandleIcon)&&i.moveHandleIcon.attr("x",n.x+n.width/2),i.dataShadowSegs),s=[0,e[0],e[1],r[0]],l=0;l<a.length;l++){var h=a[l],u=h.getClipPath();u||(u=new ps,h.setClipPath(u)),u.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(t)},y.prototype._updateDataInfo=function(t){var e,n,i=this.dataZoomModel,o=this._displayables,r=o.handleLabels,a=this._orient,s=["",""],l=(i.get("showDetail")&&(i=i.findRepresentativeAxisProxy())&&(e=i.getAxisModel().axis,n=this._range,t=t?i.calculateDataWindow({start:n[0],end:n[1]}).valueWindow:i.getDataValueWindow(),s=[this._formatLabel(t[0],e),this._formatLabel(t[1],e)]),vo(this._handleEnds.slice()));function h(t){var e=Iu(o.handles[t].parent,this.group),n=Du(0===t?"right":"left",e),i=this._handleWidth/2+5,i=ku([l[t]+(0===t?-i:i),this._size[1]/2],e);r[t].setStyle({x:i[0],y:i[1],verticalAlign:a===h2?"middle":n,align:a===h2?n:"center",text:s[t]})}h.call(this,0),h.call(this,1)},y.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),n=n.get("labelPrecision"),e=(null!=n&&"auto"!==n||(n=e.getPixelPrecision()),null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(n,20)));return st(i)?i(t,e):C(i)?i.replace("{value}",e):e},y.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,n=e.handleLabels;n[0].attr("invisible",!t),n[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},y.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,de(i.event);i=ku([e,n],this._displayables.sliderGroup.getLocalTransform(),!0),e=this._updateInterval(t,i[0]),n=this.dataZoomModel.get("realtime");this._updateView(!n),e&&n&&this._dispatchZoomAction(!0)},y.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),this.dataZoomModel.get("realtime")||this._dispatchZoomAction(!1)},y.prototype._onClickPanel=function(t){var e=this._size,t=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);t[0]<0||t[0]>e[0]||t[1]<0||t[1]>e[1]||(e=((e=this._handleEnds)[0]+e[1])/2,t=this._updateInterval("all",t[0]-e),this._updateView(),t&&this._dispatchZoomAction(!1))},y.prototype._onBrushStart=function(t){var e=t.offsetX,t=t.offsetY;this._brushStart=new R(e,t),this._brushing=!0,this._brushStartTime=+new Date},y.prototype._onBrushEnd=function(t){var e,n,i;this._brushing&&(e=this._displayables.brushRect,this._brushing=!1,e)&&(e.attr("ignore",!0),e=e.shape,+new Date-this._brushStartTime<200&&Math.abs(e.width)<5||(n=this._getViewExtent(),this._range=vo([yo(e.x,n,i=[0,100],!0),yo(e.x+e.width,n,i,!0)]),this._handleEnds=[e.x,e.x+e.width],this._updateView(),this._dispatchZoomAction(!1)))},y.prototype._onBrush=function(t){this._brushing&&(de(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},y.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect,i=(o||(o=n.brushRect=new l2({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1),this._brushStart),n=this._displayables.sliderGroup,t=n.transformCoordToLocal(t,e),e=n.transformCoordToLocal(i.x,i.y),n=this._size;t[0]=Math.max(Math.min(n[0],t[0]),0),o.setShape({x:e[0],y:0,width:t[0]-e[0],height:n[1]})},y.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?p2:null,start:e[0],end:e[1]})},y.prototype._findCoordRect=function(){var t,e,n=mT(this.dataZoomModel).infoList;return t=(t=!t&&n.length?(n=n[0].model.coordinateSystem).getRect&&n.getRect():t)?t:{x:.2*(n=this.api.getWidth()),y:.2*(e=this.api.getHeight()),width:.6*n,height:.6*e}},y.type="dataZoom.slider",y);function y(){var t=null!==s2&&s2.apply(this,arguments)||this;return t.type=y.type,t._displayables={},t}function f2(t){return"vertical"===t?"ns-resize":"ew-resize"}function g2(t){t.registerComponentModel(r2),t.registerComponentView(d2),n2(t)}I1(function(t){I1(i2),I1(g2)});function y2(t){var e=t.graphic;F(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}var m2,v2=Xo(),_2={path:null,compoundPath:null,group:so,image:is,text:ms},x2=(h(w2,m2=g),w2.prototype.mergeOption=function(t,e){var n=this.option.elements;this.option.elements=null,m2.prototype.mergeOption.call(this,t,e),this.option.elements=n},w2.prototype.optionUpdated=function(t,e){var n=this.option,t=(e?n:t).elements,l=n.elements=e?[]:n.elements,e=[],n=(this._flatten(t,e,null),zo(l,e,"normalMerge")),h=this._elOptionsToUpdate=[];I(n,function(t,e){var n,i,o,r,a,s=t.newOption;s&&(h.push(s),r=s,n=(t=t).existing,r.id=t.keyInfo.id,!r.type&&n&&(r.type=n.type),null==r.parentId&&((t=r.parentOption)?r.parentId=t.id:n&&(r.parentId=n.parentId)),r.parentOption=null,t=l,n=e,a=T({},r=s),i=t[n],"merge"===(o=r.$action||"merge")?i?(p(i,a,!0),dp(i,a,{ignoreSize:!0}),gp(r,i)):t[n]=a:"replace"===o?t[n]=a:"remove"===o&&i&&(t[n]=null),r=l[e],a=s,r)&&(r.hv=a.hv=[A2(a,["left","right"]),A2(a,["top","bottom"])],"group"===r.type)&&(a=a,null==(r=r).width&&(r.width=a.width=0),null==r.height)&&(r.height=a.height=0)},this);for(var i=l.length-1;0<=i;i--)null==l[i]?l.splice(i,1):delete l[i].$action},w2.prototype._flatten=function(t,n,i){I(t,function(t){var e;t&&(i&&(t.parentOption=i),n.push(t),e=t.children,"group"===t.type&&e&&this._flatten(e,n,t),delete t.children)},this)},w2.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},w2.type="graphic",w2.defaultOption={elements:[]},w2);function w2(){var t=null!==m2&&m2.apply(this,arguments)||this;return t.type=w2.type,t.preventAutoZ=!0,t}h(M2,b2=cg),M2.prototype.init=function(){this._elMap=P()},M2.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},M2.prototype._updateElements=function(h){var u,c,t=h.useElOptionsToUpdate();t&&(u=this._elMap,c=this.group,I(t,function(t){var e,n=Vo(t.id,null),i=null!=n?u.get(n):null,o=Vo(t.parentId,null),o=null!=o?u.get(o):c,r=t.type,a=t.style,s=("text"===r&&a&&t.hv&&t.hv[1]&&(a.textVerticalAlign=a.textBaseline=a.verticalAlign=a.align=null),t.textContent),l=t.textConfig,r=(a&&mw(a,r,!!l,!!s)&&(a=vw(a,r,!0),!l&&a.textConfig&&(t.textConfig=a.textConfig),!s)&&a.textContent&&(s=a.textContent),e=T({},e=t),I(["id","parentId","$action","hv","bounding","textContent"].concat(lp),function(t){delete e[t]}),e),l=t.$action||"merge",a=("merge"===l?i?i.attr(r):T2(n,o,r,u):"replace"===l?(C2(i,u),T2(n,o,r,u)):"remove"===l&&C2(i,u),u.get(n));a&&s&&("merge"===l?(o=a.getTextContent())?o.attr(s):a.setTextContent(new ms(s)):"replace"===l&&a.setTextContent(new ms(s))),a&&((r=v2(a)).__ecGraphicWidthOption=t.width,r.__ecGraphicHeightOption=t.height,i=h,n=t,l=Cs(o=a).eventData,(l=o.silent||o.ignore?l:l||(Cs(o).eventData={componentType:"graphic",componentIndex:i.componentIndex,name:o.name}))&&(l.info=n.info),zu({el:a,componentModel:h,itemName:a.name,itemTooltipOption:t.tooltip}))}))},M2.prototype._relocate=function(t,e){for(var n,i,o=t.option.elements,r=this.group,a=this._elMap,s=e.getWidth(),l=e.getHeight(),h=0;h<o.length;h++)(p=null!=(c=Vo((u=o[h]).id,null))?a.get(c):null)&&p.isGroup&&(n=(d=p.parent)===r,i=v2(p),f=v2(d),i.__ecGraphicWidth=B(i.__ecGraphicWidthOption,n?s:f.__ecGraphicWidth)||0,i.__ecGraphicHeight=B(i.__ecGraphicHeightOption,n?l:f.__ecGraphicHeight)||0);for(var u,c,p,d,f,g,y,m,v,_,x,w,b,S,h=o.length-1;0<=h;h--)(p=null!=(c=Vo((u=o[h]).id,null))?a.get(c):null)&&(d=p.parent,f=v2(d),m=d===r?{width:s,height:l}:{width:f.__ecGraphicWidth,height:f.__ecGraphicHeight},g=p,m=m,v=null,_={hv:(y=u).hv,boundingMode:u.bounding},S=b=w=x=void 0,b=!_||!_.hv||_.hv[0],S=!_||!_.hv||_.hv[1],_=_&&_.boundingMode||"all",b||S)&&("raw"===_?x="group"===g.type?new X(0,0,+y.width||0,+y.height||0):g.getBoundingRect():(x=g.getBoundingRect(),g.needLocalTransform()&&(w=g.getLocalTransform(),(x=x.clone()).applyTransform(w))),w=cp(N({width:x.width,height:x.height},y),m,v),y=b?w.x-x.x:0,m=S?w.y-x.y:0,"raw"===_?(g.x=y,g.y=m):(g.x+=y,g.y+=m),g.markRedraw())},M2.prototype._clear=function(){var e=this._elMap;e.each(function(t){C2(t,e)}),this._elMap=P()},M2.prototype.dispose=function(){this._clear()},M2.type="graphic";var b2,S2=M2;function M2(){var t=null!==b2&&b2.apply(this,arguments)||this;return t.type=M2.type,t}function T2(t,e,n,i){var o=n.type,o=new(O(_2,o)?_2[o]:yu(o))(n);e.add(o),i.set(t,o),v2(o).__ecGraphicId=t}function C2(t,e){var n=t&&t.parent;n&&("group"===t.type&&t.traverse(function(t){C2(t,e)}),e.removeKey(v2(t).__ecGraphicId),n.remove(t))}function A2(e,t){var n;return I(t,function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)}),n}I1(function(t){t.registerComponentModel(x2),t.registerComponentView(S2),t.registerPreprocessor(y2)}),I1(ex);var I2={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},k2=(D2.prototype.evaluate=function(t){var e=typeof t;return"string"==e?this._condVal.test(t):"number"==e&&this._condVal.test(t+"")},D2);function D2(t){null==(this._condVal=C(t)?new RegExp(t):gt(t)?t:null)&&f("")}L2.prototype.evaluate=function(){return this.value};var P2=L2;function L2(){}R2.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0};var O2=R2;function R2(){}B2.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1};var E2=B2;function B2(){}N2.prototype.evaluate=function(){return!this.child.evaluate()};var z2=N2;function N2(){}V2.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),n=t?this.valueParser(e):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?n:e))return!1;return!0};var F2=V2;function V2(){}function H2(t,e){if(!0===t||!1===t)return(n=new P2).value=t,n;var n;if(G2(t)||f(""),t.and)return W2("and",t,e);if(t.or)return W2("or",t,e);if(t.not)return n=e,G2(r=(r=t).not)||f(""),(l=new z2).child=H2(r,n),l.child||f(""),l;for(var i=t,o=e,r=o.prepareGetValue(i),a=[],s=k(i),l=i.parser,h=l?mf(l):null,u=0;u<s.length;u++){var c,p=s[u];"parser"===p||o.valueGetterAttrMap.get(p)||(c=O(I2,p)?I2[p]:p,p=i[p],p=h?h(p):p,(c=function(t,e){return"eq"===t||"ne"===t?new Sf("eq"===t,e):O(vf,t)?new _f(t,e):null}(c,p)||"reg"===c&&new k2(p))||f(""),a.push(c))}return a.length||f(""),(l=new F2).valueGetterParam=r,l.valueParser=h,l.getValue=o.getValue,l.subCondList=a,l}function W2(t,e,n){e=e[t],F(e)||f(""),e.length||f(""),t=new("and"===t?O2:E2);return t.children=q(e,function(t){return H2(t,n)}),t.children.length||f(""),t}function G2(t){return D(t)&&!it(t)}X2.prototype.evaluate=function(){return this._cond.evaluate()};var U2=X2;function X2(t,e){this._cond=H2(t,e)}var Y2={type:"echarts:filter",transform:function(t){for(var e,n,i=t.upstream,o=(t=t.config,n={valueGetterAttrMap:P({dimension:!0}),prepareGetValue:function(t){var e=t.dimension,t=(O(t,"dimension")||f(""),i.getDimensionInfo(e));return t||f(""),{dimIdx:t.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}},new U2(t,n)),r=[],a=0,s=i.count();a<s;a++)e=i.getRawDataItem(a),o.evaluate()&&r.push(e);return{data:r}}},Z2={type:"echarts:sort",transform:function(t){for(var a=t.upstream,t=t.config,t=Oo(t),s=(t.length||f(""),[]),t=(I(t,function(t){var e=t.dimension,n=t.order,i=t.parser,t=t.incomparable,e=(null==e&&f(""),"asc"!==n&&"desc"!==n&&f(""),t&&"min"!==t&&"max"!==t&&f(""),"asc"!==n&&"desc"!==n&&f(""),a.getDimensionInfo(e)),o=(e||f(""),i?mf(i):null);i&&!o&&f(""),s.push({dimIdx:e.index,parser:o,comparator:new wf(n,t)})}),a.sourceFormat),e=(t!==Cp&&t!==Ap&&f(""),[]),n=0,i=a.count();n<i;n++)e.push(a.getRawDataItem(n));return e.sort(function(t,e){for(var n=0;n<s.length;n++){var i=s[n],o=a.retrieveValueFromItem(t,i.dimIdx),r=a.retrieveValueFromItem(e,i.dimIdx),i=(i.parser&&(o=i.parser(o),r=i.parser(r)),i.comparator.evaluate(o,r));if(0!==i)return i}return 0}),{data:e}}};function q2(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function j2(g,y,m){m=m||function(t,e){return t===e},g=g.slice();var v=(y=y.slice()).length,_=g.length,x=1,t=v+_,w=[{newPos:-1,components:[]}],e=K2(w[0],y,g,0,m);if(w[0].newPos+1>=v&&_<=e+1){for(var n=[],i=0;i<y.length;i++)n.push(i);return[{indices:n,count:y.length,added:!1,removed:!1}]}for(;x<=t;){var o=function(){for(var t=-1*x;t<=x;t+=2){var e,n=w[t-1],i=w[t+1],o=(i?i.newPos:0)-t,r=(n&&(w[t-1]=void 0),n&&n.newPos+1<v),a=i&&0<=o&&o<_;if(r||a){if(!r||a&&n.newPos<i.newPos?$2((e={newPos:(r=i).newPos,components:r.components.slice(0)}).components,!1,!0):((e=n).newPos++,$2(e.components,!0,!1)),o=K2(e,y,g,t,m),e.newPos+1>=v&&_<=o+1){for(var s=e.components,l=0,h=s.length,u=0,c=0;l<h;l++){var p=s[l];if(p.removed){for(f=c;f<c+p.count;f++)p.indices.push(f);c+=p.count}else{for(var d=[],f=u;f<u+p.count;f++)d.push(f);p.indices=d,u+=p.count,p.added||(c+=p.count)}}return s}w[t]=e}else w[t]=void 0}x++}();if(o)return o}}function K2(t,e,n,i,o){for(var r=e.length,a=n.length,s=t.newPos,l=s-i,h=0;s+1<r&&l+1<a&&o(e[s+1],n[l+1]);)s++,l++,h++;return h&&t.components.push({count:h,added:!1,removed:!1,indices:[]}),t.newPos=s,l}function $2(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,indices:[]}:t.push({count:1,added:e,removed:n,indices:[]})}I1(function(t){t.registerTransform(Y2),t.registerTransform(Z2)});var J2="none",Q2=Math.round,tC=Math.sin,eC=Math.cos,nC=Math.PI,iC=2*Math.PI,oC=180/nC;function rC(t){return Q2(1e3*t)/1e3}function aC(t){return Q2(1e4*t)/1e4}function sC(t){return t<1e-4&&-1e-4<t}function lC(t,e){e&&hC(t,"transform","matrix("+rC(e[0])+","+rC(e[1])+","+rC(e[2])+","+rC(e[3])+","+aC(e[4])+","+aC(e[5])+")")}function hC(t,e,n){n&&("linear"===n.type||"radial"===n.type)||t.setAttribute(e,n)}function uC(t,e,n){var i,o,r=null==e.opacity?1:e.opacity;n instanceof is?t.style.opacity=r+"":(null!=(o=(o=e).fill)&&o!==J2?(hC(t,"fill",o="transparent"===(o=e.fill)?J2:o),hC(t,"fill-opacity",(null!=e.fillOpacity?e.fillOpacity*r:r)+"")):hC(t,"fill",J2),null!=(o=(o=e).stroke)&&o!==J2?(hC(t,"stroke",o="transparent"===(o=e.stroke)?J2:o),o=e.lineWidth,hC(t,"stroke-width",((i=e.strokeNoScale?n.getLineScale():1)?o/i:0)+""),hC(t,"paint-order",e.strokeFirst?"stroke":"fill"),hC(t,"stroke-opacity",(null!=e.strokeOpacity?e.strokeOpacity*r:r)+""),(n=e.lineDash&&0<o&&Gy(e.lineDash,o))?(r=e.lineDashOffset,i&&1!==i&&(n=q(n,function(t){return t/i}),r=r&&Q2(r/=i)),hC(t,"stroke-dasharray",n.join(",")),hC(t,"stroke-dashoffset",(r||0)+"")):hC(t,"stroke-dasharray",""),e.lineCap&&hC(t,"stroke-linecap",e.lineCap),e.lineJoin&&hC(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&hC(t,"stroke-miterlimit",e.miterLimit+"")):hC(t,"stroke",J2))}pC.prototype.reset=function(){this._d=[],this._str=""},pC.prototype.moveTo=function(t,e){this._add("M",t,e)},pC.prototype.lineTo=function(t,e){this._add("L",t,e)},pC.prototype.bezierCurveTo=function(t,e,n,i,o,r){this._add("C",t,e,n,i,o,r)},pC.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},pC.prototype.arc=function(t,e,n,i,o,r){this.ellipse(t,e,n,n,0,i,o,r)},pC.prototype.ellipse=function(t,e,n,i,o,r,a,s){var l=0===this._d.length,a=a-r,s=!s,h=Math.abs(a),u=sC(h-iC)||(s?iC<=a:iC<=-a),c=!1,c=!!u||!sC(h)&&nC<=(0<a?a%iC:a%iC+iC)==!!s,h=aC(t+n*eC(r)),p=aC(e+i*tC(r)),u=(u&&(a=s?iC-1e-4:1e-4-iC,c=!0,l)&&this._d.push("M",h,p),aC(t+n*eC(r+a))),l=aC(e+i*tC(r+a));if(isNaN(h)||isNaN(p)||isNaN(n)||isNaN(i)||isNaN(o)||isNaN(oC)||isNaN(u)||isNaN(l))return"";this._d.push("A",aC(n),aC(i),Q2(o*oC),+c,+s,u,l)},pC.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("L",t+n,e),this._add("L",t+n,e+i),this._add("L",t,e+i),this._add("L",t,e)},pC.prototype.closePath=function(){0<this._d.length&&this._add("Z")},pC.prototype._add=function(t,e,n,i,o,r,a,s,l){this._d.push(t);for(var h=1;h<arguments.length;h++){var u=arguments[h];if(isNaN(u))return void(this._invalid=!0);this._d.push(aC(u))}},pC.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(" "),this._d=[]},pC.prototype.getStr=function(){return this._str};var cC=pC;function pC(){}var dC={brush:function(t){var e=t.style,n=t.__svgEl,i=(n||(n=q2("path"),t.__svgEl=n),t.path||t.createPathProxy(),t.path),o=(t.shapeChanged()&&(i.beginPath(),t.buildPath(i,t.shape),t.pathUpdated()),i.getVersion()),r=t,a=r.__svgPathBuilder;(r.__svgPathVersion!==o||!a||t.style.strokePercent<1)&&((a=a||(r.__svgPathBuilder=new cC)).reset(),i.rebuildPath(a,t.style.strokePercent),a.generateStr(),r.__svgPathVersion=o),hC(n,"d",a.getStr()),uC(n,e,t),lC(n,t.transform)}},fC={brush:function(t){var e,n,i,o,r,a,s,l=t.style,h=l.image;h instanceof HTMLImageElement?h=h.src:h instanceof HTMLCanvasElement&&(h=h.toDataURL()),h&&(e=l.x||0,n=l.y||0,i=l.width,o=l.height,(r=t.__svgEl)||(r=q2("image"),t.__svgEl=r),h!==t.__imageSrc&&(a="href",s=h,r.setAttributeNS("http://www.w3.org/1999/xlink",a,s),t.__imageSrc=h),hC(r,"width",i+""),hC(r,"height",o+""),hC(r,"x",e+""),hC(r,"y",n+""),uC(r,l,t),lC(r,t.transform))}},gC={left:"start",right:"end",center:"middle",middle:"middle"};var yC={brush:function(t){var e,n,i,o,r=t.style,a=r.text;null!=a&&(a+=""),!a||isNaN(r.x)||isNaN(r.y)||((e=t.__svgEl)||(e=q2("text"),n="xml:space",i="preserve",e.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,i),t.__svgEl=e),n=r.font||Kn,e.style.font=n,e.textContent=a,uC(e,r,t),lC(e,t.transform),i=r.x||0,a=r.y||0,t=ii(n),"top"===(o=r.textBaseline)?a+=t/2:"bottom"===o&&(a-=t/2),o=a,t=gC[r.textAlign]||r.textAlign,hC(e,"dominant-baseline","central"),hC(e,"text-anchor",t),hC(e,"x",i+""),hC(e,"y",o+""))}},Ly=(mC.prototype.getDefs=function(t){var i,e=this._svgRoot,n=this._svgRoot.getElementsByTagName("defs");return 0===n.length?t?((i=e.insertBefore(this.createElement("defs"),e.firstChild)).contains||(i.contains=function(t){var e=i.children;if(e)for(var n=e.length-1;0<=n;--n)if(e[n]===t)return!0;return!1}),i):null:n[0]},mC.prototype.doUpdate=function(t,e){var n;t&&(n=this.getDefs(!1),t[this._domName]&&n.contains(t[this._domName])?"function"==typeof e&&e(t):(n=this.add(t))&&(t[this._domName]=n))},mC.prototype.add=function(t){return null},mC.prototype.addDom=function(t){var e=this.getDefs(!0);t.parentNode!==e&&e.appendChild(t)},mC.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},mC.prototype.getDoms=function(){var i,o=this.getDefs(!1);return o?(i=[],I(this._tagNames,function(t){for(var e=o.getElementsByTagName(t),n=0;n<e.length;n++)i.push(e[n])}),i):[]},mC.prototype.markAllUnused=function(){var t=this.getDoms(),e=this;I(t,function(t){t[e._markLabel]="0"})},mC.prototype.markDomUsed=function(t){t&&(t[this._markLabel]="1")},mC.prototype.markDomUnused=function(t){t&&(t[this._markLabel]="0")},mC.prototype.isDomUnused=function(t){return t&&"1"!==t[this._markLabel]},mC.prototype.removeUnused=function(){var e=this,n=this.getDefs(!1);n&&I(this.getDoms(),function(t){e.isDomUnused(t)&&n.removeChild(t)})},mC.prototype.getSvgProxy=function(t){return t instanceof j?dC:t instanceof is?fC:t instanceof Ja?yC:dC},mC.prototype.getSvgElement=function(t){return t.__svgEl},mC);function mC(t,e,n,i,o){this.nextId=0,this._domName="_dom",this.createElement=q2,this._zrId=t,this._svgRoot=e,this._tagNames="string"==typeof n?[n]:n,this._markLabel=i,o&&(this._domName=o)}function vC(t){return"linear"===t.type}function _C(t){return"radial"===t.type}function xC(t){return t&&("linear"===t.type||"radial"===t.type)}h(SC,wC=Ly),SC.prototype.addWithoutUpdate=function(o,r){var a;r&&r.style&&(a=this,I(["fill","stroke"],function(t){var e,n,i=r.style[t];xC(i)&&(i=i,n=a.getDefs(!0),e=void 0,i.__dom?(e=i.__dom,n.contains(i.__dom)||a.addDom(e)):e=a.add(i),a.markUsed(r),n=e.getAttribute("id"),o.setAttribute(t,"url(#"+n+")"))}))},SC.prototype.add=function(t){var e;if(vC(t))e=this.createElement("linearGradient");else{if(!_C(t))return Q("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},SC.prototype.update=function(n){var i;xC(n)&&(i=this).doUpdate(n,function(){var t,e=n.__dom;e&&(e=e.tagName,"linear"===(t=n.type)&&"linearGradient"===e||"radial"===t&&"radialGradient"===e?i.updateDom(n,n.__dom):(i.removeDom(n),i.add(n)))})},SC.prototype.updateDom=function(t,e){if(vC(t))e.setAttribute("x1",t.x+""),e.setAttribute("y1",t.y+""),e.setAttribute("x2",t.x2+""),e.setAttribute("y2",t.y2+"");else{if(!_C(t))return void Q("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,o=n.length;i<o;++i){var r,a=this.createElement("stop"),s=(a.setAttribute("offset",100*n[i].offset+"%"),n[i].color);-1<s.indexOf("rgba")?(r=dn(s)[3],s=yn(s),a.setAttribute("stop-color","#"+s),a.setAttribute("stop-opacity",r+"")):a.setAttribute("stop-color",n[i].color),e.appendChild(a)}t.__dom=e},SC.prototype.markUsed=function(t){var e;t.style&&((e=t.style.fill)&&e.__dom&&wC.prototype.markDomUsed.call(this,e.__dom),e=t.style.stroke)&&e.__dom&&wC.prototype.markDomUsed.call(this,e.__dom)};var wC,bC=SC;function SC(t,e){return wC.call(this,t,e,["linearGradient","radialGradient"],"__gradient_in_use__")||this}function MC(t){return t&&(t.image||t.svgElement)}var TC,CC=new Dy,AC=(h(IC,TC=Ly),IC.prototype.addWithoutUpdate=function(o,r){var a;r&&r.style&&(a=this,I(["fill","stroke"],function(t){var e,n,i=r.style[t];MC(i)&&(n=a.getDefs(!0),(e=CC.get(i))?n.contains(e)||a.addDom(e):e=a.add(i),a.markUsed(r),n=e.getAttribute("id"),o.setAttribute(t,"url(#"+n+")"))}))},IC.prototype.add=function(t){var e;if(MC(t))return e=this.createElement("pattern"),t.id=null==t.id?this.nextId++:t.id,e.setAttribute("id","zr"+this._zrId+"-pattern-"+t.id),e.setAttribute("x","0"),e.setAttribute("y","0"),e.setAttribute("patternUnits","userSpaceOnUse"),this.updateDom(t,e),this.addDom(e),e},IC.prototype.update=function(e){var n;MC(e)&&(n=this).doUpdate(e,function(){var t=CC.get(e);n.updateDom(e,t)})},IC.prototype.updateDom=function(t,e){var n=t.svgElement;if(n instanceof SVGElement)n.parentNode!==e&&(e.innerHTML="",e.appendChild(n),e.setAttribute("width",t.svgWidth+""),e.setAttribute("height",t.svgHeight+""));else{var n=void 0,i=e.getElementsByTagName("image");if(i.length){if(!t.image)return void e.removeChild(i[0]);n=i[0]}else t.image&&(n=this.createElement("image"));n&&(i=void 0,"string"==typeof t.image?i=t.image:t.image instanceof HTMLImageElement?i=t.image.src:t.image instanceof HTMLCanvasElement&&(i=t.image.toDataURL()),i)&&(n.setAttribute("href",i),n.setAttribute("x","0"),n.setAttribute("y","0"),(i=gr(i,n,{dirty:function(){}},function(t){e.setAttribute("width",t.width+""),e.setAttribute("height",t.height+"")}))&&i.width&&i.height&&(e.setAttribute("width",i.width+""),e.setAttribute("height",i.height+"")),e.appendChild(n))}var i=t.x||0,n=t.y||0,o=(t.rotation||0)/Math.PI*180,r=t.scaleX||1,a=t.scaleY||1;e.setAttribute("patternTransform","translate("+i+", "+n+") rotate("+o+") scale("+r+", "+a+")"),CC.set(t,e)},IC.prototype.markUsed=function(t){t.style&&(MC(t.style.fill)&&TC.prototype.markDomUsed.call(this,CC.get(t.style.fill)),MC(t.style.stroke))&&TC.prototype.markDomUsed.call(this,CC.get(t.style.stroke))},IC);function IC(t,e){return TC.call(this,t,e,["pattern"],"__pattern_in_use__")||this}function kC(t){t=t.__clipPaths;return t&&0<t.length}h(LC,DC=Ly),LC.prototype.markAllUnused=function(){for(var t in DC.prototype.markAllUnused.call(this),this._refGroups)this.markDomUnused(this._refGroups[t]);this._keyDuplicateCount={}},LC.prototype._getClipPathGroup=function(t,e){var n,i;if(kC(t))return t=t.__clipPaths,n=this._keyDuplicateCount,i=function(t){var e=[];if(t)for(var n=0;n<t.length;n++){var i=t[n];e.push(i.id)}return e.join(",")}(t),Wy(t,e&&e.__clipPaths)&&(n[i]=n[i]||0,n[i]&&(i+="-"+n[i]),n[i]++),this._refGroups[i]||(this._refGroups[i]=this.createElement("g"))},LC.prototype.update=function(t,e){e=this._getClipPathGroup(t,e);return e&&(this.markDomUsed(e),this.updateDom(e,t.__clipPaths)),e},LC.prototype.updateDom=function(t,e){var n,i,o,r;e&&0<e.length?(r=this.getDefs(!0),o=i=void 0,(n=e[0])._dom?(o=n._dom.getAttribute("id"),i=n._dom,r.contains(i)||r.appendChild(i)):(o="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(i=this.createElement("clipPath")).setAttribute("id",o),r.appendChild(i),n._dom=i),this.getSvgProxy(n).brush(n),r=this.getSvgElement(n),i.innerHTML="",i.appendChild(r),t.setAttribute("clip-path","url(#"+o+")"),1<e.length&&this.updateDom(i,e.slice(1))):t&&t.setAttribute("clip-path","none")},LC.prototype.markUsed=function(t){var e=this;t.__clipPaths&&I(t.__clipPaths,function(t){t._dom&&DC.prototype.markDomUsed.call(e,t._dom)})},LC.prototype.removeUnused=function(){DC.prototype.removeUnused.call(this);var t,e={};for(t in this._refGroups){var n=this._refGroups[t];this.isDomUnused(n)?n.parentNode&&n.parentNode.removeChild(n):e[t]=n}this._refGroups=e};var DC,PC=LC;function LC(t,e){t=DC.call(this,t,e,"clipPath","__clippath_in_use__")||this;return t._refGroups={},t._keyDuplicateCount={},t}h(EC,OC=Ly),EC.prototype._getFromPool=function(){var t,e=this._shadowDomPool.pop();return e||((e=this.createElement("filter")).setAttribute("id","zr"+this._zrId+"-shadow-"+this.nextId++),t=this.createElement("feDropShadow"),e.appendChild(t),this.addDom(e)),e},EC.prototype.update=function(t,e){var n,i=e.style;(i=i)&&(i.shadowBlur||i.shadowOffsetX||i.shadowOffsetY)?(n=(i=e).style,i=i.getGlobalScale(),n=[n.shadowColor,(n.shadowBlur||0).toFixed(2),(n.shadowOffsetX||0).toFixed(2),(n.shadowOffsetY||0).toFixed(2),i[0],i[1]].join(","),(i=e._shadowDom=this._shadowDomMap[n])||(i=this._getFromPool(),this._shadowDomMap[n]=i),this.updateDom(t,e,i)):this.remove(t,e)},EC.prototype.remove=function(t,e){null!=e._shadowDom&&(e._shadowDom=null,t.style.filter="")},EC.prototype.updateDom=function(t,e,n){var i,o,r,a=n.children[0],s=e.style,l=e.getGlobalScale(),h=l[0],l=l[1];h&&l&&(r=s.shadowOffsetX||0,i=s.shadowOffsetY||0,o=s.shadowBlur,s=s.shadowColor,a.setAttribute("dx",r/h+""),a.setAttribute("dy",i/l+""),a.setAttribute("flood-color",s),a.setAttribute("stdDeviation",o/2/h+" "+o/2/l),n.setAttribute("x","-100%"),n.setAttribute("y","-100%"),n.setAttribute("width","300%"),n.setAttribute("height","300%"),r=(e._shadowDom=n).getAttribute("id"),t.style.filter="url(#"+r+")")},EC.prototype.removeUnused=function(){if(this.getDefs(!1)){var t,e=this._shadowDomPool;for(t in this._shadowDomMap){var n=this._shadowDomMap[t];e.push(n)}this._shadowDomMap={}}};var OC,RC=EC;function EC(t,e){t=OC.call(this,t,e,["filter"],"__filter_in_use__","_shadowDom")||this;return t._shadowDomMap={},t._shadowDomPool=[],t}function BC(t){return parseInt(t,10)}function zC(t){return t instanceof j?dC:t instanceof is?fC:t instanceof Ja?yC:dC}function NC(t,e){return e&&t&&e.parentNode!==t}function FC(t,e,n){NC(t,e)&&n&&((n=n.nextSibling)?t.insertBefore(e,n):t.appendChild(e))}function VC(t,e){var n;NC(t,e)&&((n=t.firstChild)?t.insertBefore(e,n):t.appendChild(e))}function HC(t){return t.__svgEl}function WC(t,e,n,i){this.type="svg",this.refreshHover=GC("refreshHover"),this.pathToImage=GC("pathToImage"),this.configLayer=GC("configLayer"),this.root=t,this.storage=e,this._opts=n=T({},n||{});var e=q2("svg"),o=(e.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),e.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),e.setAttribute("version","1.1"),e.setAttribute("baseProfile","full"),e.style.cssText="user-select:none;position:absolute;left:0;top:0;",q2("g")),r=(e.appendChild(o),q2("g")),i=(e.appendChild(r),this._gradientManager=new bC(i,r),this._patternManager=new AC(i,r),this._clipPathManager=new PC(i,r),this._shadowManager=new RC(i,r),document.createElement("div"));i.style.cssText="overflow:hidden;position:relative",this._svgDom=e,this._svgRoot=r,this._backgroundRoot=o,this._viewport=i,t.appendChild(i),i.appendChild(e),this.resize(n.width,n.height),this._visibleList=[]}function GC(t){return function(){Q('In SVG mode painter not support method "'+t+'"')}}WC.prototype.getType=function(){return"svg"},WC.prototype.getViewportRoot=function(){return this._viewport},WC.prototype.getSvgDom=function(){return this._svgDom},WC.prototype.getSvgRoot=function(){return this._svgRoot},WC.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},WC.prototype.refresh=function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},WC.prototype.setBackgroundColor=function(t){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var e=q2("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},WC.prototype.createSVGElement=q2,WC.prototype.paintOne=function(t){var e=zC(t);return e&&e.brush(t),HC(t)},WC.prototype._paintList=function(t){for(var e=this._gradientManager,n=this._patternManager,i=this._clipPathManager,o=this._shadowManager,r=(e.markAllUnused(),n.markAllUnused(),i.markAllUnused(),o.markAllUnused(),this._svgRoot),a=this._visibleList,s=t.length,l=[],h=0;h<s;h++){var u=zC(w=t[h]),c=HC(w);w.invisible||(!w.__dirty&&c||(u&&u.brush(w),(c=HC(w))&&w.style&&(e.update(w.style.fill),e.update(w.style.stroke),n.update(w.style.fill),n.update(w.style.stroke),o.update(c,w)),w.__dirty=0),c&&l.push(w))}for(var p,d,f,g,y,m,v=j2(a,l),h=0;h<v.length;h++)if((x=v[h]).removed)for(var _=0;_<x.count;_++){c=HC(w=a[x.indices[_]]);kC(w)?(g=c)&&g.parentNode&&g.parentNode.removeChild(g):(g=r,(f=c)&&g&&f.parentNode===g&&g.removeChild(f))}for(h=0;h<v.length;h++){var x=v[h];if(!x.removed)for(_=0;_<x.count;_++){var w=l[x.indices[_]],b=i.update(w,y),c=(b!==m&&(p=d,b&&(p?FC(r,b,p):VC(r,b),d=b,p=null),m=b),HC(w));p?FC(m||r,c,p):VC(m||r,c),p=c||p,m||(d=p),e.markUsed(w),e.addWithoutUpdate(c,w),n.markUsed(w),n.addWithoutUpdate(c,w),i.markUsed(w),y=w}}e.removeUnused(),n.removeUnused(),i.removeUnused(),o.removeUnused(),this._visibleList=l},WC.prototype.resize=function(t,e){var n=this._viewport,i=(n.style.display="none",this._opts);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,(i=n.style).width=t+"px",i.height=e+"px",(n=this._svgDom).setAttribute("width",t+""),n.setAttribute("height",e+"")),this._backgroundNode&&(this._backgroundNode.setAttribute("width",t),this._backgroundNode.setAttribute("height",e))},WC.prototype.getWidth=function(){return this._width},WC.prototype.getHeight=function(){return this._height},WC.prototype._getSize=function(t){var e,n=this._opts,i=["width","height"][t],o=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],t=["paddingRight","paddingBottom"][t];return null!=n[i]&&"auto"!==n[i]?parseFloat(n[i]):(n=this.root,e=document.defaultView.getComputedStyle(n),(n[o]||BC(e[i])||BC(n.style[i]))-(BC(e[r])||0)-(BC(e[t])||0)|0)},WC.prototype.dispose=function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},WC.prototype.clear=function(){var t=this._viewport;t&&t.parentNode&&t.parentNode.removeChild(t)},WC.prototype.toDataURL=function(){this.refresh();var t=this._svgDom,t=t.outerHTML||(t.parentNode&&t.parentNode).innerHTML;return"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(t.replace(/></g,">\n\r<"))},go("svg",WC),t.Axis=n,t.ChartView=yg,t.ComponentModel=g,t.ComponentView=cg,t.List=s_,t.Model=uc,t.PRIORITY=Ry,t.SeriesModel=ig,t.color=wn,t.connect=function(e){var t;return F(e)&&(t=e,e=null,c0(t,function(t){null!=t.group&&(e=t.group)}),e=e||"g_"+dv++,c0(t,function(t){t.group=e})),cv[e]=!0,e},t.dataTool={},t.dependencies={zrender:"5.1.0"},t.disConnect=gv,t.disconnect=Oy,t.dispose=function(t){"string"==typeof t?t=uv[t]:t instanceof j0||(t=yv(t)),t instanceof j0&&!t.isDisposed()&&t.dispose()},t.env=b,t.extendChartView=function(t){return t=yg.extend(t),yg.registerClass(t),t},t.extendComponentModel=function(t){return t=g.extend(t),g.registerClass(t),t},t.extendComponentView=function(t){return t=cg.extend(t),cg.registerClass(t),t},t.extendSeriesModel=function(t){return t=ig.extend(t),ig.registerClass(t),t},t.format=Xh,t.getCoordinateSystemDimensions=function(t){if(t=ed.get(t))return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},t.getInstanceByDom=yv,t.getInstanceById=function(t){return uv[t]},t.getMap=function(t){return h0(t)},t.graphic=rc,t.helper=Ac,t.init=function(t,e,n){var i,o=yv(t);return o||((i=new j0(t,e,n)).id="ec_"+pv++,uv[i.id]=i,Jo(t,fv,i.id),U0(i),c0(rv,function(t){t(i)}),i)},t.innerDrawElementOnCanvas=sm,t.matrix=ze,t.number=ic,t.parseGeoJSON=$m,t.parseGeoJson=$m,t.registerAction=bv,t.registerCoordinateSystem=Sv,t.registerLayout=Mv,t.registerLoading=Iv,t.registerLocale=wc,t.registerMap=kv,t.registerPostInit=xv,t.registerPostUpdate=wv,t.registerPreprocessor=vv,t.registerProcessor=_v,t.registerTheme=mv,t.registerTransform=Dv,t.registerVisual=Tv,t.setCanvasCreator=function(t){K("createCanvas",t)},t.throttle=Cg,t.time=pr,t.use=I1,t.util=sc,t.vector=Zt,t.version="5.1.1",t.zrUtil=Dt,t.zrender=li});
|