echarts.min.js 568 KB

1
  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 _=function(t,e){return(_=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)};function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}_(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var x=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},b=new function(){this.browser=new x,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(b.wxa=!0,b.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?b.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(b.node=!0,b.svgSupported=!0):(J=navigator.userAgent,ne=(Ft=b).browser,ot=J.match(/Firefox\/([\d.]+)/),Y=J.match(/MSIE\s([\d.]+)/)||J.match(/Trident\/.+?rv:(([\d.]+))/),Q=J.match(/Edge?\/([\d.]+)/),J=/micromessenger/i.test(J),ot&&(ne.firefox=!0,ne.version=ot[1]),Y&&(ne.ie=!0,ne.version=Y[1]),Q&&(ne.edge=!0,ne.version=Q[1],ne.newEdge=18<+Q[1].split(".")[0]),J&&(ne.weChat=!0),Ft.svgSupported="undefined"!=typeof SVGRect,Ft.touchEventsSupported="ontouchstart"in window&&!ne.ie&&!ne.edge,Ft.pointerEventsSupported="onpointerdown"in window&&(ne.edge||ne.ie&&11<=+ne.version),Ft.domSupported="undefined"!=typeof document,ot=document.documentElement.style,Ft.transform3dSupported=(ne.ie&&"transition"in ot||ne.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in ot)&&!("OTransition"in ot),Ft.transformSupported=Ft.transform3dSupported||ne.ie&&9<=+ne.version);var j="12px sans-serif";var w,I,A=function(t){var e={};if("undefined"!=typeof JSON)for(var i=0;i<t.length;i++){var n=String.fromCharCode(i+32),o=(t.charCodeAt(i)-20)/100;e[n]=o}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),H={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(w||(i=H.createCanvas(),w=i&&i.getContext("2d")),w)return I!==e&&(I=w.font=e||j),w.measureText(t);t=t||"",e=e||j;var i=/((?:\d+)?\.?\d*)px/.exec(e),n=i&&+i[1]||12,o=0;if(0<=e.indexOf("mono"))o=n*t.length;else for(var r=0;r<t.length;r++){var a=A[t[r]];o+=null==a?n:a*n}return{width:o}},loadImage:function(t,e,i){var n=new Image;return n.onload=e,n.onerror=i,n.src=t,n}};function L(t){for(var e in H)t[e]&&(H[e]=t[e])}var G=lt(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),W=lt(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),X=Object.prototype.toString,Y=Array.prototype,Z=Y.forEach,q=Y.filter,K=Y.slice,$=Y.map,Q=function(){}.constructor,J=Q?Q.prototype:null,tt="__proto__",et=2311;function it(){return et++}function nt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function y(t){if(null==t||"object"!=typeof t)return t;var e=t,i=X.call(t);if("[object Array]"===i){if(!Dt(t))for(var e=[],n=0,o=t.length;n<o;n++)e[n]=y(t[n])}else if(W[i]){if(!Dt(t)){var r=t.constructor;if(r.from)e=r.from(t);else{e=new r(t.length);for(n=0,o=t.length;n<o;n++)e[n]=t[n]}}}else if(!G[i]&&!Dt(t)&&!gt(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==tt&&(e[a]=y(t[a]));return e}function d(t,e,i){if(!R(e)||!R(t))return i?y(e):t;for(var n in e){var o,r;e.hasOwnProperty(n)&&n!==tt&&(o=t[n],!R(r=e[n])||!R(o)||V(r)||V(o)||gt(r)||gt(o)||dt(r)||dt(o)||Dt(r)||Dt(o)?!i&&n in t||(t[n]=y(e[n])):d(o,r,i))}return t}function P(t,e){if(Object.assign)Object.assign(t,e);else for(var i in e)e.hasOwnProperty(i)&&i!==tt&&(t[i]=e[i]);return t}function E(t,e,i){for(var n=ht(e),o=0;o<n.length;o++){var r=n[o];(i?null!=e[r]:null==t[r])&&(t[r]=e[r])}return t}var ot=H.createCanvas;function C(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i}return-1}function rt(t,e){var i,n=t.prototype;function o(){}for(i in o.prototype=e.prototype,t.prototype=new o,n)n.hasOwnProperty(i)&&(t.prototype[i]=n[i]);(t.prototype.constructor=t).superClass=e}function at(t,e,i){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),o=0;o<n.length;o++){var r=n[o];"constructor"!==r&&(i?null!=e[r]:null==t[r])&&(t[r]=e[r])}else E(t,e,i)}function st(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function O(t,e,i){if(t&&e)if(t.forEach&&t.forEach===Z)t.forEach(e,i);else if(t.length===+t.length)for(var n=0,o=t.length;n<o;n++)e.call(i,t[n],n,t);else for(var r in t)t.hasOwnProperty(r)&&e.call(i,t[r],r,t)}function B(t,e,i){if(!t)return[];if(!e)return bt(t);if(t.map&&t.map===$)return t.map(e,i);for(var n=[],o=0,r=t.length;o<r;o++)n.push(e.call(i,t[o],o,t));return n}function lt(t,e,i,n){if(t&&e){for(var o=0,r=t.length;o<r;o++)i=e.call(n,i,t[o],o,t);return i}}function ut(t,e,i){if(!t)return[];if(!e)return bt(t);if(t.filter&&t.filter===q)return t.filter(e,i);for(var n=[],o=0,r=t.length;o<r;o++)e.call(i,t[o],o,t)&&n.push(t[o]);return n}function ht(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e,i=[];for(e in t)t.hasOwnProperty(e)&&i.push(e);return i}var S=J&&D(J.bind)?J.call.bind(J.bind):function(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return function(){return t.apply(e,i.concat(K.call(arguments)))}};function M(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return function(){return t.apply(this,e.concat(K.call(arguments)))}}function V(t){return Array.isArray?Array.isArray(t):"[object Array]"===X.call(t)}function D(t){return"function"==typeof t}function F(t){return"string"==typeof t}function ct(t){return"[object String]"===X.call(t)}function pt(t){return"number"==typeof t}function R(t){var e=typeof t;return"function"==e||!!t&&"object"==e}function dt(t){return!!G[X.call(t)]}function ft(t){return!!W[X.call(t)]}function gt(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function yt(t){return null!=t.colorStops}function mt(t){return null!=t.image}function vt(t){return"[object RegExp]"===X.call(t)}function _t(t){return t!=t}function xt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=0,n=t.length;i<n;i++)if(null!=t[i])return t[i]}function z(t,e){return null!=t?t:e}function wt(t,e,i){return null!=t?t:null!=e?e:i}function bt(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return K.apply(t,e)}function St(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 Mt(t,e){if(!t)throw new Error(e)}function Tt(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var It="__ec_primitive__";function Ct(t){t[It]=!0}function Dt(t){return t[It]}At.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},At.prototype.has=function(t){return this.data.hasOwnProperty(t)},At.prototype.get=function(t){return this.data[t]},At.prototype.set=function(t,e){return this.data[t]=e,this},At.prototype.keys=function(){return ht(this.data)},At.prototype.forEach=function(t){var e,i=this.data;for(e in i)i.hasOwnProperty(e)&&t(i[e],e)};var kt=At;function At(){this.data={}}var Lt="function"==typeof Map;Ot.prototype.hasKey=function(t){return this.data.has(t)},Ot.prototype.get=function(t){return this.data.get(t)},Ot.prototype.set=function(t,e){return this.data.set(t,e),e},Ot.prototype.each=function(i,n){this.data.forEach(function(t,e){i.call(n,t,e)})},Ot.prototype.keys=function(){var t=this.data.keys();return Lt?Array.from(t):t},Ot.prototype.removeKey=function(t){this.data.delete(t)};var Pt=Ot;function Ot(t){var i=V(t),n=(this.data=new(Lt?Map:kt),this);function e(t,e){i?n.set(t,e):n.set(e,t)}t instanceof Ot?t.each(e):t&&O(t,e)}function N(t){return new Pt(t)}function Rt(t,e){for(var i=new t.constructor(t.length+e.length),n=0;n<t.length;n++)i[n]=t[n];for(var o=t.length,n=0;n<e.length;n++)i[n+o]=e[n];return i}function zt(t,e){var i,t=Object.create?Object.create(t):((i=function(){}).prototype=t,new i);return e&&P(t,e),t}function Nt(t){t=t.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Et(t,e){return t.hasOwnProperty(e)}function Bt(){}var Vt=180/Math.PI,Ft=Object.freeze({__proto__:null,HashMap:Pt,RADIAN_TO_DEGREE:Vt,assert:Mt,bind:S,clone:y,concatArray:Rt,createCanvas:ot,createHashMap:N,createObject:zt,curry:M,defaults:E,disableUserSelect:Nt,each:O,eqNaN:_t,extend:P,filter:ut,find:function(t,e,i){if(t&&e)for(var n=0,o=t.length;n<o;n++)if(e.call(i,t[n],n,t))return t[n]},guid:it,hasOwn:Et,indexOf:C,inherits:rt,isArray:V,isArrayLike:st,isBuiltInObject:dt,isDom:gt,isFunction:D,isGradientObject:yt,isImagePatternObject:mt,isNumber:pt,isObject:R,isPrimitive:Dt,isRegExp:vt,isString:F,isStringSafe:ct,isTypedArray:ft,keys:ht,logError:nt,map:B,merge:d,mergeAll:function(t,e){for(var i=t[0],n=1,o=t.length;n<o;n++)i=d(i,t[n],e);return i},mixin:at,noop:Bt,normalizeCssArray:St,reduce:lt,retrieve:xt,retrieve2:z,retrieve3:wt,setAsPrimitive:Ct,slice:bt,trim:Tt});function Ht(t,e){return[t=null==t?0:t,e=null==e?0:e]}function Gt(t){return[t[0],t[1]]}function Wt(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t}function Xt(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t}function Ut(t){return Math.sqrt(Yt(t))}function Yt(t){return t[0]*t[0]+t[1]*t[1]}function Zt(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t}function qt(t,e){var i=Ut(e);return 0===i?(t[0]=0,t[1]=0):(t[0]=e[0]/i,t[1]=e[1]/i),t}function jt(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Kt=jt;function $t(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Qt=$t;function Jt(t,e,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t}function te(t,e,i){var n=e[0],e=e[1];return t[0]=i[0]*n+i[2]*e+i[4],t[1]=i[1]*n+i[3]*e+i[5],t}function ee(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t}function ie(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}var ne=Object.freeze({__proto__:null,add:Wt,applyTransform:te,clone:Gt,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},create:Ht,dist:Kt,distSquare:Qt,distance:jt,distanceSquare:$t,div:function(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},len:Ut,lenSquare:Yt,length:Ut,lengthSquare:Yt,lerp:Jt,max:ie,min:ee,mul:function(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:qt,scale:Zt,scaleAndAdd:function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t},set:function(t,e,i){return t[0]=e,t[1]=i,t},sub:Xt}),oe=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},re=(ae.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&((this._draggingTarget=e).dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new oe(e,t),"dragstart",t.event))},ae.prototype._drag=function(t){var e,i,n,o,r=this._draggingTarget;r&&(e=t.offsetX,i=t.offsetY,n=e-this._x,o=i-this._y,this._x=e,this._y=i,r.drift(n,o,t),this.handler.dispatchToElement(new oe(r,t),"drag",t.event),n=this.handler.findHover(e,i,r).target,o=this._dropTarget,r!==(this._dropTarget=n))&&(o&&n!==o&&this.handler.dispatchToElement(new oe(o,t),"dragleave",t.event),n)&&n!==o&&this.handler.dispatchToElement(new oe(n,t),"dragenter",t.event)},ae.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new oe(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new oe(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},ae);function ae(t){(this.handler=t).on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}le.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var o=this._$handlers;if("function"==typeof e&&(n=i,i=e,e=null),i&&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===i)return this;r={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},e=o[t].length-1,n=o[t][e];n&&n.callAtLast?o[t].splice(e,0,r):o[t].push(r)}return this},le.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},le.prototype.off=function(t,e){var i=this._$handlers;if(i)if(t)if(e){if(i[t]){for(var n=[],o=0,r=i[t].length;o<r;o++)i[t][o].h!==e&&n.push(i[t][o]);i[t]=n}i[t]&&0===i[t].length&&delete i[t]}else delete i[t];else this._$handlers={};return this},le.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(this._$handlers){var n=this._$handlers[t],o=this._$eventProcessor;if(n)for(var r=e.length,a=n.length,s=0;s<a;s++){var l=n[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},le.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(this._$handlers){var n=this._$handlers[t],o=this._$eventProcessor;if(n)for(var r=e.length,a=e[r-1],s=n.length,l=0;l<s;l++){var u=n[l];if(!o||!o.filter||null==u.query||o.filter(t,u.query))switch(r){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,r-1))}}o&&o.afterTrigger&&o.afterTrigger(t)}return this};var se=le;function le(t){t&&(this._$eventProcessor=t)}var ue=Math.log(2);function he(t,e,i,n,o,r){var a,s=n+"-"+o,l=t.length;if(r.hasOwnProperty(s))return r[s];if(1===e)return a=Math.round(Math.log((1<<l)-1&~o)/ue),t[i][a];for(var u=n|1<<i,h=i+1;n&1<<h;)h++;for(var c=0,p=0,d=0;p<l;p++){var f=1<<p;f&o||(c+=(d%2?-1:1)*t[i][p]*he(t,e-1,h,u,o|f,r),d++)}return r[s]=c}function ce(t,e){var i=[[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]]],n={},o=he(i,8,0,0,0,n);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)*he(i,7,0===a?1:0,1<<a,1<<s,n)/o*e[a];return function(t,e,i){var n=e*r[6]+i*r[7]+1;t[0]=(e*r[0]+i*r[1]+r[2])/n,t[1]=(e*r[3]+i*r[4]+r[5])/n}}}var pe="___zrEVENTSAVED",de=[];function fe(t,e,i,n,o){if(e.getBoundingClientRect&&b.domSupported&&!ge(e)){var r=e[pe]||(e[pe]={}),e=function(t,e,i){for(var n=i?"invTrans":"trans",o=e[n],r=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var h=t[u].getBoundingClientRect(),c=2*u,p=h.left,h=h.top;a.push(p,h),l=l&&r&&p===r[c]&&h===r[1+c],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&o?o:(e.srcCoords=a,e[n]=i?ce(s,a):ce(a,s))}(function(t,e){var i=e.markers;if(!i){i=e.markers=[];for(var n=["left","right"],o=["top","bottom"],r=0;r<4;r++){var a=document.createElement("div"),s=a.style,l=r%2,u=(r>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",o[u]+":0",n[1-l]+":auto",o[1-u]+":auto",""].join("!important;"),t.appendChild(a),i.push(a)}}return i}(e,r),r,o);if(e)return e(t,i,n),!0}return!1}function ge(t){return"CANVAS"===t.nodeName.toUpperCase()}var ye=/([&<>"'])/g,me={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ve(t){return null==t?"":(t+"").replace(ye,function(t,e){return me[e]})}var _e=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,xe=[],we=b.browser.firefox&&+b.browser.version.split(".")[0]<39;function be(t,e,i,n){return i=i||{},n?Se(t,e,i):we&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):Se(t,e,i),i}function Se(t,e,i){if(b.domSupported&&t.getBoundingClientRect){var n,o=e.clientX,e=e.clientY;if(ge(t))return n=t.getBoundingClientRect(),i.zrX=o-n.left,void(i.zrY=e-n.top);if(fe(xe,t,o,e))return i.zrX=xe[0],void(i.zrY=xe[1])}i.zrX=i.zrY=0}function Me(t){return t||window.event}function Te(t,e,i){var n;return null==(e=Me(e)).zrX&&((n=e.type)&&0<=n.indexOf("touch")?(n=("touchend"!==n?e.targetTouches:e.changedTouches)[0])&&be(t,n,e,i):(be(t,e,e,i),n=function(t){var e=t.wheelDelta;if(e)return e;var i=t.deltaX,t=t.deltaY;return null!=i&&null!=t?3*(0!==t?Math.abs(t):Math.abs(i))*(0<t||!(t<0)&&0<i?-1:1):e}(e),e.zrDelta=n?n/120:-(e.detail||0)/3),t=e.button,null==e.which&&void 0!==t&&_e.test(e.type))&&(e.which=1&t?1:2&t?3:4&t?2:0),e}var Ie=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function Ce(t){return 2===t.which||3===t.which}ke.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},ke.prototype.clear=function(){return this._track.length=0,this},ke.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var o={points:[],touches:[],target:e,event:t},r=0,a=n.length;r<a;r++){var s=n[r],l=be(i,s,{});o.points.push([l.zrX,l.zrY]),o.touches.push(s)}this._track.push(o)}},ke.prototype._recognize=function(t){for(var e in Le)if(Le.hasOwnProperty(e)){e=Le[e](this._track,t);if(e)return e}};var De=ke;function ke(){this._track=[]}function Ae(t){var e=t[1][0]-t[0][0],t=t[1][1]-t[0][1];return Math.sqrt(e*e+t*t)}var Le={pinch:function(t,e){var i,n=t.length;if(n)return i=(t[n-1]||{}).points,(n=(t[n-2]||{}).points||i)&&1<n.length&&i&&1<i.length?(n=Ae(i)/Ae(n),isFinite(n)||(n=1),e.pinchScale=n,n=[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2],e.pinchX=n[0],e.pinchY=n[1],{type:"pinch",target:t[0].target,event:e}):void 0}};function Pe(){return[1,0,0,1,0,0]}function Oe(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Re(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 ze(t,e,i){var n=e[0]*i[0]+e[2]*i[1],o=e[1]*i[0]+e[3]*i[1],r=e[0]*i[2]+e[2]*i[3],a=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],i=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=o,t[2]=r,t[3]=a,t[4]=s,t[5]=i,t}function Ne(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t}function Ee(t,e,i,n){void 0===n&&(n=[0,0]);var o=e[0],r=e[2],a=e[4],s=e[1],l=e[3],e=e[5],u=Math.sin(i),i=Math.cos(i);return t[0]=o*i+s*u,t[1]=-o*u+s*i,t[2]=r*i+l*u,t[3]=-r*u+i*l,t[4]=i*(a-n[0])+u*(e-n[1])+n[0],t[5]=i*(e-n[1])-u*(a-n[0])+n[1],t}function Be(t,e,i){var n=i[0],i=i[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function Ve(t,e){var i=e[0],n=e[2],o=e[4],r=e[1],a=e[3],e=e[5],s=i*a-r*n;return s?(t[0]=a*(s=1/s),t[1]=-r*s,t[2]=-n*s,t[3]=i*s,t[4]=(n*e-a*o)*s,t[5]=(r*o-i*e)*s,t):null}var Fe=Object.freeze({__proto__:null,clone:function(t){var e=Pe();return Re(e,t),e},copy:Re,create:Pe,identity:Oe,invert:Ve,mul:ze,rotate:Ee,scale:Be,translate:Ne}),T=(He.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},He.prototype.clone=function(){return new He(this.x,this.y)},He.prototype.set=function(t,e){return this.x=t,this.y=e,this},He.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},He.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},He.prototype.scale=function(t){this.x*=t,this.y*=t},He.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},He.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},He.prototype.dot=function(t){return this.x*t.x+this.y*t.y},He.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},He.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},He.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},He.prototype.distance=function(t){var e=this.x-t.x,t=this.y-t.y;return Math.sqrt(e*e+t*t)},He.prototype.distanceSquare=function(t){var e=this.x-t.x,t=this.y-t.y;return e*e+t*t},He.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},He.prototype.transform=function(t){var e,i;if(t)return e=this.x,i=this.y,this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this},He.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},He.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},He.set=function(t,e,i){t.x=e,t.y=i},He.copy=function(t,e){t.x=e.x,t.y=e.y},He.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},He.lenSquare=function(t){return t.x*t.x+t.y*t.y},He.dot=function(t,e){return t.x*e.x+t.y*e.y},He.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},He.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},He.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},He.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},He.lerp=function(t,e,i,n){var o=1-n;t.x=o*e.x+n*i.x,t.y=o*e.y+n*i.y},He);function He(t,e){this.x=t||0,this.y=e||0}var Ge=Math.min,We=Math.max,Xe=new T,Ue=new T,Ye=new T,Ze=new T,qe=new T,je=new T,U=(Ke.prototype.union=function(t){var e=Ge(t.x,this.x),i=Ge(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=We(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=We(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},Ke.prototype.applyTransform=function(t){Ke.applyTransform(this,this,t)},Ke.prototype.calculateTransform=function(t){var e=t.width/this.width,i=t.height/this.height,n=Pe();return Ne(n,n,[-this.x,-this.y]),Be(n,n,[e,i]),Ne(n,n,[t.x,t.y]),n},Ke.prototype.intersect=function(t,e){if(!t)return!1;t instanceof Ke||(t=Ke.create(t));var i,n,o,r,a,s,l,u,h=this,c=h.x,p=h.x+h.width,d=h.y,h=h.y+h.height,f=t.x,g=t.x+t.width,y=t.y,t=t.y+t.height,m=!(p<f||g<c||h<y||t<d);return e&&(i=1/0,n=0,o=Math.abs(p-f),r=Math.abs(g-c),a=Math.abs(h-y),s=Math.abs(t-d),l=Math.min(o,r),u=Math.min(a,s),p<f||g<c?n<l&&(n=l,o<r?T.set(je,-o,0):T.set(je,r,0)):l<i&&(i=l,o<r?T.set(qe,o,0):T.set(qe,-r,0)),h<y||t<d?n<u&&(n=u,a<s?T.set(je,0,-a):T.set(je,0,s)):l<i&&(i=l,a<s?T.set(qe,0,a):T.set(qe,0,-s))),e&&T.copy(e,m?qe:je),m},Ke.prototype.contain=function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},Ke.prototype.clone=function(){return new Ke(this.x,this.y,this.width,this.height)},Ke.prototype.copy=function(t){Ke.copy(this,t)},Ke.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},Ke.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Ke.prototype.isZero=function(){return 0===this.width||0===this.height},Ke.create=function(t){return new Ke(t.x,t.y,t.width,t.height)},Ke.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},Ke.applyTransform=function(t,e,i){var n,o,r,a;i?i[1]<1e-5&&-1e-5<i[1]&&i[2]<1e-5&&-1e-5<i[2]?(n=i[0],o=i[3],r=i[4],a=i[5],t.x=e.x*n+r,t.y=e.y*o+a,t.width=e.width*n,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)):(Xe.x=Ye.x=e.x,Xe.y=Ze.y=e.y,Ue.x=Ze.x=e.x+e.width,Ue.y=Ye.y=e.y+e.height,Xe.transform(i),Ze.transform(i),Ue.transform(i),Ye.transform(i),t.x=Ge(Xe.x,Ue.x,Ye.x,Ze.x),t.y=Ge(Xe.y,Ue.y,Ye.y,Ze.y),r=We(Xe.x,Ue.x,Ye.x,Ze.x),a=We(Xe.y,Ue.y,Ye.y,Ze.y),t.width=r-t.x,t.height=a-t.y):t!==e&&Ke.copy(t,e)},Ke);function Ke(t,e,i,n){i<0&&(t+=i,i=-i),n<0&&(e+=n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}var $e="silent";function Qe(){Ie(this.event)}u(ei,Je=se),ei.prototype.dispose=function(){},ei.prototype.setCursor=function(){};var Je,ti=ei;function ei(){var t=null!==Je&&Je.apply(this,arguments)||this;return t.handler=null,t}var ii,ni=function(t,e){this.x=t,this.y=e},oi=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ri=new U(0,0,0,0),ai=(u(si,ii=se),si.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(O(oi,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},si.prototype.mousemove=function(t){var e=t.zrX,i=t.zrY,n=ui(this,e,i),o=this._hovered,r=o.target,n=(r&&!r.__zr&&(r=(o=this.findHover(o.x,o.y)).target),this._hovered=n?new ni(e,i):this.findHover(e,i)),e=n.target,i=this.proxy;i.setCursor&&i.setCursor(e?e.cursor:"default"),r&&e!==r&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(n,"mousemove",t),e&&e!==r&&this.dispatchToElement(n,"mouseover",t)},si.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})},si.prototype.resize=function(){this._hovered=new ni(0,0)},si.prototype.dispatch=function(t,e){t=this[t];t&&t.call(this,e)},si.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},si.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},si.prototype.dispatchToElement=function(t,e,i){var n=(t=t||{}).target;if(!n||!n.silent){for(var o="on"+e,r={type:e,event:i,target:(t=t).target,topTarget:t.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:Qe};n&&(n[o]&&(r.cancelBubble=!!n[o].call(n,r)),n.trigger(e,r),n=n.__hostTarget||n.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)}))}},si.prototype.findHover=function(t,e,i){var n=this.storage.getDisplayList(),o=new ni(t,e);if(li(n,o,t,e,i),this._pointerSize&&!o.target){for(var r=[],a=this._pointerSize,s=a/2,l=new U(t-s,e-s,a,a),u=n.length-1;0<=u;u--){var h=n[u];h===i||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(ri.copy(h.getBoundingRect()),h.transform&&ri.applyTransform(h.transform),ri.intersect(l)&&r.push(h))}if(r.length)for(var c=Math.PI/12,p=2*Math.PI,d=0;d<s;d+=4)for(var f=0;f<p;f+=c)if(li(r,o,t+d*Math.cos(f),e+d*Math.sin(f),i),o.target)return o}return o},si.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new De);var i=this._gestureMgr,n=("start"===e&&i.clear(),i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom));"end"===e&&i.clear(),n&&(e=n.type,t.gestureEvent=e,(i=new ni).target=n.target,this.dispatchToElement(i,e,n.event))},si);function si(t,e,i,n,o){var r=ii.call(this)||this;return r._hovered=new ni(0,0),r.storage=t,r.painter=e,r.painterRoot=n,r._pointerSize=o,i=i||new ti,r.proxy=null,r.setHandlerProxy(i),r._draggingMgr=new re(r),r}function li(t,e,i,n,o){for(var r=t.length-1;0<=r;r--){var a=t[r],s=void 0;if(a!==o&&!a.ignore&&(s=function(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){for(var n=t,o=void 0,r=!1;n;){if(!(r=n.ignoreClip?!0:r)){var a=n.getClipPath();if(a&&!a.contain(e,i))return!1}n.silent&&(o=!0);a=n.__hostTarget,n=a||n.parent}return!o||$e}return!1}(a,i,n))&&(e.topTarget||(e.topTarget=a),s!==$e)){e.target=a;break}}}function ui(t,e,i){t=t.painter;return e<0||e>t.getWidth()||i<0||i>t.getHeight()}O(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){ai.prototype[a]=function(t){var e,i,n=t.zrX,o=t.zrY,r=ui(this,n,o);if("mouseup"===a&&r||(i=(e=this.findHover(n,o)).target),"mousedown"===a)this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if("mouseup"===a)this._upEl=i;else if("click"===a){if(this._downEl!==this._upEl||!this._downPoint||4<Kt(this._downPoint,[t.zrX,t.zrY]))return;this._downPoint=null}this.dispatchToElement(e,a,t)}});var hi=32,ci=7;function pi(t,e,i,n){var o=e+1;if(o===i)return 1;if(n(t[o++],t[e])<0){for(;o<i&&n(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<i&&0<=n(t[o],t[o-1]);)o++;return o-e}function di(t,e,i,n,o){for(n===e&&n++;n<i;n++){for(var r,a=t[n],s=e,l=n;s<l;)o(a,t[r=s+l>>>1])<0?l=r:s=1+r;var u=n-s;switch(u){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<u;)t[s+u]=t[s+u-1],u--}t[s]=a}}function fi(t,e,i,n,o,r){var a=0,s=0,l=1;if(0<r(t,e[i+o])){for(s=n-o;l<s&&0<r(t,e[i+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[i+o-l])<=0;)(l=1+((a=l)<<1))<=0&&(l=s);n=a,a=o-(l=s<l?s:l),l=o-n}for(a++;a<l;){var u=a+(l-a>>>1);0<r(t,e[i+u])?a=u+1:l=u}return l}function gi(t,e,i,n,o,r){var a=0,s=0,l=1;if(r(t,e[i+o])<0){for(s=o+1;l<s&&r(t,e[i+o-l])<0;)(l=1+((a=l)<<1))<=0&&(l=s);var u=a,a=o-(l=s<l?s:l),l=o-u}else{for(s=n-o;l<s&&0<=r(t,e[i+o+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=o,l+=o}for(a++;a<l;){var h=a+(l-a>>>1);r(t,e[i+h])<0?l=h:a=h+1}return l}function yi(A,L){var P,O,R=ci,z=0,N=[];function e(t){var e=P[t],i=O[t],n=P[t+1],o=O[t+1],t=(O[t]=i+o,t===z-3&&(P[t+1]=P[t+2],O[t+1]=O[t+2]),z--,gi(A[n],A,e,i,0,L));if(e+=t,0!=(i-=t)&&0!==(o=fi(A[e+i-1],A,n,o,o-1,L)))if(i<=o){var r=e,a=i,t=n,s=o,l=0;for(l=0;l<a;l++)N[l]=A[r+l];var u=0,h=t,c=r;if(A[c++]=A[h++],0==--s)for(l=0;l<a;l++)A[c+l]=N[u+l];else if(1===a){for(l=0;l<s;l++)A[c+l]=A[h+l];A[c+s]=N[u]}else{for(var p,d,f,g=R;;){d=p=0,f=!1;do{if(L(A[h],N[u])<0){if(A[c++]=A[h++],d++,(p=0)==--s){f=!0;break}}else if(A[c++]=N[u++],p++,d=0,1==--a){f=!0;break}}while((p|d)<g);if(f)break;do{if(0!==(p=gi(A[h],N,u,a,0,L))){for(l=0;l<p;l++)A[c+l]=N[u+l];if(c+=p,u+=p,(a-=p)<=1){f=!0;break}}if(A[c++]=A[h++],0==--s){f=!0;break}if(0!==(d=fi(N[u],A,h,s,0,L))){for(l=0;l<d;l++)A[c+l]=A[h+l];if(c+=d,h+=d,0===(s-=d)){f=!0;break}}if(A[c++]=N[u++],1==--a){f=!0;break}}while(g--,ci<=p||ci<=d);if(f)break;g<0&&(g=0),g+=2}if((R=g)<1&&(R=1),1===a){for(l=0;l<s;l++)A[c+l]=A[h+l];A[c+s]=N[u]}else{if(0===a)throw new Error;for(l=0;l<a;l++)A[c+l]=N[u+l]}}}else{var y=e,m=i,v=n,_=o,x=0;for(x=0;x<_;x++)N[x]=A[v+x];var w=y+m-1,b=_-1,S=v+_-1,M=0,T=0;if(A[S--]=A[w--],0==--m)for(M=S-(_-1),x=0;x<_;x++)A[M+x]=N[x];else if(1===_){for(T=(S-=m)+1,M=(w-=m)+1,x=m-1;0<=x;x--)A[T+x]=A[M+x];A[S]=N[b]}else{for(var I=R;;){var C=0,D=0,k=!1;do{if(L(N[b],A[w])<0){if(A[S--]=A[w--],C++,(D=0)==--m){k=!0;break}}else if(A[S--]=N[b--],D++,C=0,1==--_){k=!0;break}}while((C|D)<I);if(k)break;do{if(0!==(C=m-gi(N[b],A,y,m,m-1,L))){for(m-=C,T=(S-=C)+1,M=(w-=C)+1,x=C-1;0<=x;x--)A[T+x]=A[M+x];if(0===m){k=!0;break}}if(A[S--]=N[b--],1==--_){k=!0;break}if(0!==(D=_-fi(A[w],N,0,_,_-1,L))){for(_-=D,T=(S-=D)+1,M=(b-=D)+1,x=0;x<D;x++)A[T+x]=N[M+x];if(_<=1){k=!0;break}}if(A[S--]=A[w--],0==--m){k=!0;break}}while(I--,ci<=C||ci<=D);if(k)break;I<0&&(I=0),I+=2}if((R=I)<1&&(R=1),1===_){for(T=(S-=m)+1,M=(w-=m)+1,x=m-1;0<=x;x--)A[T+x]=A[M+x];A[S]=N[b]}else{if(0===_)throw new Error;for(M=S-(_-1),x=0;x<_;x++)A[M+x]=N[x]}}}}return P=[],O=[],{mergeRuns:function(){for(;1<z;){var t=z-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<z;){var t=z-2;0<t&&O[t-1]<O[t+1]&&t--,e(t)}},pushRun:function(t,e){P[z]=t,O[z]=e,z+=1}}}function mi(t,e,i,n){var o=(n=n||t.length)-(i=i||0);if(!(o<2)){var r=0;if(o<hi)di(t,i,n,i+(r=pi(t,i,n,e)),e);else{var a,s=yi(t,e),l=function(t){for(var e=0;hi<=t;)e|=1&t,t>>=1;return t+e}(o);do{}while((r=pi(t,i,n,e))<l&&(di(t,i,i+(a=l<(a=o)?l:o),i+r,e),r=a),s.pushRun(i,r),s.mergeRuns(),i+=r,0!==(o-=r));s.forceMergeRuns()}}}var vi=1,_i=4,xi=!1;function wi(){xi||(xi=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function bi(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}Mi.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},Mi.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return!t&&i.length||this.updateDisplayList(e),i},Mi.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,o=e.length;n<o;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,mi(i,bi)},Mi.prototype._updateAndAddDisplayable=function(t,e,i){if(!t.ignore||i){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath();if(t.ignoreClip)e=null;else if(n){e=e?e.slice():[];for(var o=n,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|=vi),this._updateAndAddDisplayable(l,e,i)}t.__dirty=0}else{n=t;e&&e.length?n.__clipPaths=e:n.__clipPaths&&0<n.__clipPaths.length&&(n.__clipPaths=[]),isNaN(n.z)&&(wi(),n.z=0),isNaN(n.z2)&&(wi(),n.z2=0),isNaN(n.zlevel)&&(wi(),n.zlevel=0),this._displayList[this._displayListLen++]=n}n=t.getDecalElement&&t.getDecalElement(),n=(n&&this._updateAndAddDisplayable(n,e,i),t.getTextGuideLine()),n=(n&&this._updateAndAddDisplayable(n,e,i),t.getTextContent());n&&this._updateAndAddDisplayable(n,e,i)}},Mi.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},Mi.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);else{var n=C(this._roots,t);0<=n&&this._roots.splice(n,1)}},Mi.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},Mi.prototype.getRoots=function(){return this._roots},Mi.prototype.dispose=function(){this._displayList=null,this._roots=null};var Si=Mi;function Mi(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=bi}var Ti=b.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},Ii={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,i=.1;return 0===t?0:1===t?1:(e=!i||i<1?(i=1,.1):.4*Math.asin(1/i)/(2*Math.PI),-(i*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)))},elasticOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(e=!i||i<1?(i=1,.1):.4*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(e=!i||i<1?(i=1,.1):.4*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?i*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:i*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-Ii.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*Ii.bounceIn(2*t):.5*Ii.bounceOut(2*t-1)+.5}},Ci=Math.pow,Di=Math.sqrt,ki=1e-8,Ai=Di(3),Li=1/3,Pi=Ht(),Oi=Ht(),Ri=Ht();function zi(t){return-ki<t&&t<ki}function Ni(t){return ki<t||t<-ki}function Ei(t,e,i,n,o){var r=1-o;return r*r*(r*t+3*o*e)+o*o*(o*n+3*r*i)}function Bi(t,e,i,n,o){var r=1-o;return 3*(((e-t)*r+2*(i-e)*o)*r+(n-i)*o*o)}function Vi(t,e,i,n,o,r){var a,s,n=n+3*(e-i)-t,i=3*(i-2*e+t),e=3*(e-t),t=t-o,o=i*i-3*n*e,l=i*e-9*n*t,t=e*e-3*i*t,u=0;return zi(o)&&zi(l)?zi(i)?r[0]=0:0<=(a=-e/i)&&a<=1&&(r[u++]=a):zi(e=l*l-4*o*t)?(s=-(t=l/o)/2,0<=(a=-i/n+t)&&a<=1&&(r[u++]=a),0<=s&&s<=1&&(r[u++]=s)):0<e?(e=o*i+1.5*n*(-l-(t=Di(e))),0<=(a=(-i-((t=(t=o*i+1.5*n*(-l+t))<0?-Ci(-t,Li):Ci(t,Li))+(e=e<0?-Ci(-e,Li):Ci(e,Li))))/(3*n))&&a<=1&&(r[u++]=a)):(t=(2*o*i-3*n*l)/(2*Di(o*o*o)),e=Math.acos(t)/3,a=(-i-2*(l=Di(o))*(t=Math.cos(e)))/(3*n),s=(-i+l*(t+Ai*Math.sin(e)))/(3*n),o=(-i+l*(t-Ai*Math.sin(e)))/(3*n),0<=a&&a<=1&&(r[u++]=a),0<=s&&s<=1&&(r[u++]=s),0<=o&&o<=1&&(r[u++]=o)),u}function Fi(t,e,i,n,o){var r,a=6*i-12*e+6*t,n=9*e+3*n-3*t-9*i,i=3*e-3*t,e=0;return zi(n)?Ni(a)&&0<=(r=-i/a)&&r<=1&&(o[e++]=r):zi(t=a*a-4*n*i)?o[0]=-a/(2*n):0<t&&(t=(-a-(i=Di(t)))/(2*n),0<=(r=(-a+i)/(2*n))&&r<=1&&(o[e++]=r),0<=t)&&t<=1&&(o[e++]=t),e}function Hi(t,e,i,n,o,r){var a=(e-t)*o+t,e=(i-e)*o+e,i=(n-i)*o+i,s=(e-a)*o+a,e=(i-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]=i,r[7]=n}function Gi(t,e,i,n,o,r,a,s,l,u,h){var c,p,d,f,g=.005,y=1/0;Pi[0]=l,Pi[1]=u;for(var m=0;m<1;m+=.05)Oi[0]=Ei(t,i,o,a,m),Oi[1]=Ei(e,n,r,s,m),(d=Qt(Pi,Oi))<y&&(c=m,y=d);for(var y=1/0,v=0;v<32&&!(g<1e-4);v++)p=c+g,Oi[0]=Ei(t,i,o,a,f=c-g),Oi[1]=Ei(e,n,r,s,f),d=Qt(Oi,Pi),0<=f&&d<y?(c=f,y=d):(Ri[0]=Ei(t,i,o,a,p),Ri[1]=Ei(e,n,r,s,p),f=Qt(Ri,Pi),p<=1&&f<y?(c=p,y=f):g*=.5);return h&&(h[0]=Ei(t,i,o,a,c),h[1]=Ei(e,n,r,s,c)),Di(y)}function Wi(t,e,i,n){var o=1-n;return o*(o*t+2*n*e)+n*n*i}function Xi(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function Ui(t,e,i){i=t+i-2*e;return 0==i?.5:(t-e)/i}function Yi(t,e,i,n,o){var r=(e-t)*n+t,e=(i-e)*n+e,n=(e-r)*n+r;o[0]=t,o[1]=r,o[2]=n,o[3]=n,o[4]=e,o[5]=i}function Zi(t,e,i,n,o,r,a,s,l){var u,h=.005,c=1/0;Pi[0]=a,Pi[1]=s;for(var p=0;p<1;p+=.05)Oi[0]=Wi(t,i,o,p),Oi[1]=Wi(e,n,r,p),(y=Qt(Pi,Oi))<c&&(u=p,c=y);for(var c=1/0,d=0;d<32&&!(h<1e-4);d++){var f=u-h,g=u+h,y=(Oi[0]=Wi(t,i,o,f),Oi[1]=Wi(e,n,r,f),Qt(Oi,Pi));0<=f&&y<c?(u=f,c=y):(Ri[0]=Wi(t,i,o,g),Ri[1]=Wi(e,n,r,g),f=Qt(Ri,Pi),g<=1&&f<c?(u=g,c=f):h*=.5)}return l&&(l[0]=Wi(t,i,o,u),l[1]=Wi(e,n,r,u)),Di(c)}var qi=/cubic-bezier\(([0-9,\.e ]+)\)/;function ji(t){t=t&&qi.exec(t);if(t){var e,t=t[1].split(","),i=+Tt(t[0]),n=+Tt(t[1]),o=+Tt(t[2]),r=+Tt(t[3]);if(!isNaN(i+n+o+r))return e=[],function(t){return t<=0?0:1<=t?1:Vi(0,i,o,1,t,e)&&Ei(0,n,r,1,e[0])}}}$i.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var i=this._life,n=t-this._startTime-this._pausedTime,o=n/i,r=(o<0&&(o=0),o=Math.min(o,1),this.easingFunc),r=r?r(o):o;if(this.onframe(r),1===o){if(!this.loop)return!0;this._startTime=t-n%i,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},$i.prototype.pause=function(){this._paused=!0},$i.prototype.resume=function(){this._paused=!1},$i.prototype.setEasing=function(t){this.easing=t,this.easingFunc=D(t)?t:Ii[t]||ji(t)};var Ki=$i;function $i(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Bt,this.ondestroy=t.ondestroy||Bt,this.onrestart=t.onrestart||Bt,t.easing&&this.setEasing(t.easing)}var Qi=function(t){this.value=t},Ji=(tn.prototype.insert=function(t){t=new Qi(t);return this.insertEntry(t),t},tn.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++},tn.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},tn.prototype.len=function(){return this._len},tn.prototype.clear=function(){this.head=this.tail=null,this._len=0},tn);function tn(){this._len=0}nn.prototype.put=function(t,e){var i,n,o=this._list,r=this._map,a=null;return null==r[t]&&(n=o.len(),i=this._lastRemovedEntry,n>=this._maxSize&&0<n&&(n=o.head,o.remove(n),delete r[n.key],a=n.value,this._lastRemovedEntry=n),i?i.value=e:i=new Qi(e),i.key=t,o.insertEntry(i),r[t]=i),a},nn.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},nn.prototype.clear=function(){this._list.clear(),this._map={}},nn.prototype.len=function(){return this._list.len()};var en=nn;function nn(t){this._list=new Ji,this._maxSize=10,this._map={},this._maxSize=t}var on={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 rn(t){return(t=Math.round(t))<0?0:255<t?255:t}function an(t){return t<0?0:1<t?1:t}function sn(t){return t.length&&"%"===t.charAt(t.length-1)?rn(parseFloat(t)/100*255):rn(parseInt(t,10))}function ln(t){return t.length&&"%"===t.charAt(t.length-1)?an(parseFloat(t)/100):an(parseFloat(t))}function un(t,e,i){return i<0?i+=1:1<i&&--i,6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function hn(t,e,i){return t+(e-t)*i}function cn(t,e,i,n,o){return t[0]=e,t[1]=i,t[2]=n,t[3]=o,t}function pn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var dn=new en(20),fn=null;function gn(t,e){fn&&pn(fn,e),fn=dn.put(t,fn||e.slice())}function yn(t,e){if(t){e=e||[];var i=dn.get(t);if(i)return pn(e,i);i=(t+="").replace(/ /g,"").toLowerCase();if(i in on)return pn(e,on[i]),gn(t,e),e;var n=i.length;if("#"===i.charAt(0))return 4===n||5===n?0<=(o=parseInt(i.slice(1,4),16))&&o<=4095?(cn(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===n?parseInt(i.slice(4),16)/15:1),gn(t,e),e):void cn(e,0,0,0,1):7===n||9===n?0<=(o=parseInt(i.slice(1,7),16))&&o<=16777215?(cn(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===n?parseInt(i.slice(7),16)/255:1),gn(t,e),e):void cn(e,0,0,0,1):void 0;var o=i.indexOf("("),r=i.indexOf(")");if(-1!==o&&r+1===n){var n=i.substr(0,o),a=i.substr(o+1,r-(o+1)).split(","),s=1;switch(n){case"rgba":if(4!==a.length)return 3===a.length?cn(e,+a[0],+a[1],+a[2],1):cn(e,0,0,0,1);s=ln(a.pop());case"rgb":return 3<=a.length?(cn(e,sn(a[0]),sn(a[1]),sn(a[2]),3===a.length?s:ln(a[3])),gn(t,e),e):void cn(e,0,0,0,1);case"hsla":return 4!==a.length?void cn(e,0,0,0,1):(a[3]=ln(a[3]),mn(a,e),gn(t,e),e);case"hsl":return 3!==a.length?void cn(e,0,0,0,1):(mn(a,e),gn(t,e),e);default:return}}cn(e,0,0,0,1)}}function mn(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=ln(t[1]),o=ln(t[2]),n=o<=.5?o*(n+1):o+n-o*n,o=2*o-n;return cn(e=e||[],rn(255*un(o,n,i+1/3)),rn(255*un(o,n,i)),rn(255*un(o,n,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function vn(t,e){var i=yn(t);if(i){for(var n=0;n<3;n++)i[n]=e<0?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0,255<i[n]?i[n]=255:i[n]<0&&(i[n]=0);return Mn(i,4===i.length?"rgba":"rgb")}}function _n(t,e,i){var n,o,r;if(e&&e.length&&0<=t&&t<=1)return i=i||[],t=t*(e.length-1),n=Math.floor(t),r=Math.ceil(t),o=e[n],e=e[r],i[0]=rn(hn(o[0],e[0],r=t-n)),i[1]=rn(hn(o[1],e[1],r)),i[2]=rn(hn(o[2],e[2],r)),i[3]=an(hn(o[3],e[3],r)),i}var xn=_n;function wn(t,e,i){var n,o,r,a;if(e&&e.length&&0<=t&&t<=1)return t=t*(e.length-1),n=Math.floor(t),o=Math.ceil(t),a=yn(e[n]),e=yn(e[o]),a=Mn([rn(hn(a[0],e[0],r=t-n)),rn(hn(a[1],e[1],r)),rn(hn(a[2],e[2],r)),an(hn(a[3],e[3],r))],"rgba"),i?{color:a,leftIndex:n,rightIndex:o,value:t}:a}var e=wn;function bn(t,e,i,n){var o=yn(t);if(t)return o=function(t){var e,i,n,o,r,a,s,l,u,h;if(t)return h=t[0]/255,e=t[1]/255,i=t[2]/255,s=Math.min(h,e,i),o=((n=Math.max(h,e,i))+s)/2,0==(u=n-s)?a=r=0:(a=o<.5?u/(n+s):u/(2-n-s),s=((n-h)/6+u/2)/u,l=((n-e)/6+u/2)/u,u=((n-i)/6+u/2)/u,h===n?r=u-l:e===n?r=1/3+s-u:i===n&&(r=2/3+l-s),r<0&&(r+=1),1<r&&--r),h=[360*r,a,o],null!=t[3]&&h.push(t[3]),h}(o),null!=e&&(o[0]=(t=e,(t=Math.round(t))<0?0:360<t?360:t)),null!=i&&(o[1]=ln(i)),null!=n&&(o[2]=ln(n)),Mn(mn(o),"rgba")}function Sn(t,e){t=yn(t);if(t&&null!=e)return t[3]=an(e),Mn(t,"rgba")}function Mn(t,e){var i;if(t&&t.length)return i=t[0]+","+t[1]+","+t[2],"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(i+=","+t[3]),e+"("+i+")"}function Tn(t,e){t=yn(t);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var In=new en(100);function Cn(t){var e;return F(t)?((e=In.get(t))||(e=vn(t,-.1),In.put(t,e)),e):yt(t)?((e=P({},t)).colorStops=B(t.colorStops,function(t){return{offset:t.offset,color:vn(t.color,-.1)}}),e):t}xn=Object.freeze({__proto__:null,fastLerp:_n,fastMapToColor:xn,lerp:wn,lift:vn,liftColor:Cn,lum:Tn,mapToColor:e,modifyAlpha:Sn,modifyHSL:bn,parse:yn,random:function(){return Mn([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:Mn,toHex:function(t){if(t=yn(t))return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}});b.hasGlobalWindow&&D(window.btoa);var Dn=Array.prototype.slice;function kn(t,e,i){return(e-t)*i+t}function An(t,e,i,n){for(var o=e.length,r=0;r<o;r++)t[r]=kn(e[r],i[r],n);return t}function Ln(t,e,i,n){for(var o=e.length,r=0;r<o;r++)t[r]=e[r]+i[r]*n;return t}function Pn(t,e,i,n){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]+i[a][s]*n}return t}function On(t){if(st(t)){var e=t.length;if(st(t[0])){for(var i=[],n=0;n<e;n++)i.push(Dn.call(t[n]));return i}return Dn.call(t)}return t}function Rn(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function zn(t){return 4===t||5===t}function Nn(t){return 1===t||2===t}var En=[0,0,0,0],Bn=(Vn.prototype.isFinished=function(){return this._finished},Vn.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},Vn.prototype.needsAnimate=function(){return 1<=this.keyframes.length},Vn.prototype.getAdditiveTrack=function(){return this._additiveTrack},Vn.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n,o=this.keyframes,r=o.length,a=!1,s=6,l=e,u=(st(e)?(1==(s=n=st((n=e)&&n[0])?2:1)&&!pt(e[0])||2==n&&!pt(e[0][0]))&&(a=!0):pt(e)&&!_t(e)?s=0:F(e)?isNaN(+e)?(n=yn(e))&&(l=n,s=3):s=0:yt(e)&&((u=P({},l)).colorStops=B(e.colorStops,function(t){return{offset:t.offset,color:yn(t.color)}}),"linear"===e.type?s=4:"radial"===e.type&&(s=5),l=u),0===r?this.valType=s:s===this.valType&&6!==s||(a=!0),this.discrete=this.discrete||a,{time:t,value:l,rawValue:e,percent:0});return i&&(u.easing=i,u.easingFunc=D(i)?i:Ii[i]||ji(i)),o.push(u),u},Vn.prototype.prepare=function(t,e){for(var i=this.keyframes,n=(this._needsSort&&i.sort(function(t,e){return t.time-e.time}),this.valType),o=i.length,r=i[o-1],a=this.discrete,s=Nn(n),l=zn(n),u=0;u<o;u++){var h=i[u],c=h.value,p=r.value;if(h.percent=h.time/t,!a)if(s&&u!==o-1){x=_=v=m=y=g=f=d=h=void 0;var d=p,f=n,g=h=c,y=d;if(g.push&&y.push){var h=g.length,m=y.length;if(h!==m)if(m<h)g.length=m;else for(var v=h;v<m;v++)g.push(1===f?y[v]:Dn.call(y[v]));for(var _=g[0]&&g[0].length,v=0;v<g.length;v++)if(1===f)isNaN(g[v])&&(g[v]=y[v]);else for(var x=0;x<_;x++)isNaN(g[v][x])&&(g[v][x]=y[v][x])}}else if(l){T=M=S=b=w=h=d=void 0;for(var d=c.colorStops,h=p.colorStops,w=d.length,b=h.length,S=b<w?h:d,h=Math.min(w,b),M=S[h-1]||{color:[0,0,0,0],offset:0},T=h;T<Math.max(w,b);T++)S.push({offset:M.offset,color:M.color.slice()})}}if(!a&&5!==n&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;for(var I=i[0].value,u=0;u<o;u++)0===n?i[u].additiveValue=i[u].value-I:3===n?i[u].additiveValue=Ln([],i[u].value,I,-1):Nn(n)&&(i[u].additiveValue=(1===n?Ln:Pn)([],i[u].value,I,-1))}},Vn.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i,n,o,r,a=null!=this._additiveTrack,s=a?"additiveValue":"value",l=this.valType,u=this.keyframes,h=u.length,c=this.propName,p=3===l,d=this._lastFr,f=Math.min;if(1===h)i=n=u[0];else{if(e<0)g=0;else if(e<this._lastFrP){for(var g=f(d+1,h-1);0<=g&&!(u[g].percent<=e);g--);g=f(g,h-2)}else{for(g=d;g<h&&!(u[g].percent>e);g++);g=f(g-1,h-2)}n=u[g+1],i=u[g]}i&&n&&(this._lastFr=g,this._lastFrP=e,d=n.percent-i.percent,o=0==d?1:f((e-i.percent)/d,1),n.easingFunc&&(o=n.easingFunc(o)),f=a?this._additiveValue:p?En:t[c],(Nn(l)||p)&&(f=f||(this._additiveValue=[])),this.discrete?t[c]=(o<1?i:n).rawValue:Nn(l)?(1===l?An:function(t,e,i,n){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]=kn(e[a][s],i[a][s],n)}})(f,i[s],n[s],o):zn(l)?(d=i[s],r=n[s],t[c]={type:(l=4===l)?"linear":"radial",x:kn(d.x,r.x,o),y:kn(d.y,r.y,o),colorStops:B(d.colorStops,function(t,e){e=r.colorStops[e];return{offset:kn(t.offset,e.offset,o),color:Rn(An([],t.color,e.color,o))}}),global:r.global},l?(t[c].x2=kn(d.x2,r.x2,o),t[c].y2=kn(d.y2,r.y2,o)):t[c].r=kn(d.r,r.r,o)):p?(An(f,i[s],n[s],o),a||(t[c]=Rn(f))):(l=kn(i[s],n[s],o),a?this._additiveValue=l:t[c]=l),a)&&this._addToTarget(t)}},Vn.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;0===e?t[i]=t[i]+n:3===e?(yn(t[i],En),Ln(En,En,n,1),t[i]=Rn(En)):1===e?Ln(t[i],t[i],n,1):2===e&&Pn(t[i],t[i],n,1)},Vn);function Vn(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}Hn.prototype.getMaxTime=function(){return this._maxTime},Hn.prototype.getDelay=function(){return this._delay},Hn.prototype.getLoop=function(){return this._loop},Hn.prototype.getTarget=function(){return this._target},Hn.prototype.changeTarget=function(t){this._target=t},Hn.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,ht(e),i)},Hn.prototype.whenWithKeys=function(t,e,i,n){for(var o=this._tracks,r=0;r<i.length;r++){var a=i[r];if(!(l=o[a])){var s,l=o[a]=new Bn(a),u=void 0,h=this._getAdditiveTrack(a);if(h?(u=(s=(s=h.keyframes)[s.length-1])&&s.value,3===h.valType&&(u=u&&Rn(u))):u=this._target[a],null==u)continue;0<t&&l.addKeyframe(0,On(u),n),this._trackKeys.push(a)}l.addKeyframe(t,On(e[a]),n)}return this._maxTime=Math.max(this._maxTime,t),this},Hn.prototype.pause=function(){this._clip.pause(),this._paused=!0},Hn.prototype.resume=function(){this._clip.resume(),this._paused=!1},Hn.prototype.isPaused=function(){return!!this._paused},Hn.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},Hn.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i<e;i++)t[i].call(this)},Hn.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},Hn.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},Hn.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var o=i[n].getTrack(t);o&&(e=o)}return e},Hn.prototype.start=function(t){if(!(0<this._started)){this._started=1;for(var e,r=this,a=[],i=this._maxTime||0,n=0;n<this._trackKeys.length;n++){var o=this._trackKeys[n],s=this._tracks[o],o=this._getAdditiveTrack(o),l=s.keyframes,u=l.length;s.prepare(i,o),s.needsAnimate()&&(!this._allowDiscrete&&s.discrete?((o=l[u-1])&&(r._target[s.propName]=o.rawValue),s.setFinished()):a.push(s))}return a.length||this._force?(e=new Ki({life:i,loop:this._loop,delay:this._delay||0,onframe:function(t){r._started=2;var e=r._additiveAnimators;if(e){for(var i=!1,n=0;n<e.length;n++)if(e[n]._clip){i=!0;break}i||(r._additiveAnimators=null)}for(n=0;n<a.length;n++)a[n].step(r._target,t);var o=r._onframeCbs;if(o)for(n=0;n<o.length;n++)o[n](r._target,t)},ondestroy:function(){r._doneCallback()}}),this._clip=e,this.animation&&this.animation.addClip(e),t&&e.setEasing(t)):this._doneCallback(),this}},Hn.prototype.stop=function(t){var e;this._clip&&(e=this._clip,t&&e.onframe(1),this._abortedCallback())},Hn.prototype.delay=function(t){return this._delay=t,this},Hn.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},Hn.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},Hn.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},Hn.prototype.getClip=function(){return this._clip},Hn.prototype.getTrack=function(t){return this._tracks[t]},Hn.prototype.getTracks=function(){var e=this;return B(this._trackKeys,function(t){return e._tracks[t]})},Hn.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,o=0;o<t.length;o++){var r=i[t[o]];r&&!r.isFinished()&&(e?r.step(this._target,1):1===this._started&&r.step(this._target,0),r.setFinished())}for(var a=!0,o=0;o<n.length;o++)if(!i[n[o]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},Hn.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var o=e[n],r=this._tracks[o];r&&!r.isFinished()&&(r=(r=r.keyframes)[i?0:r.length-1])&&(t[o]=On(r.rawValue))}}},Hn.prototype.__changeFinalValue=function(t,e){e=e||ht(t);for(var i=0;i<e.length;i++){var n,o=e[i],r=this._tracks[o];r&&1<(n=r.keyframes).length&&(n=n.pop(),r.addKeyframe(n.time,t[o]),r.prepare(this._maxTime,r.getAdditiveTrack()))}};var Fn=Hn;function Hn(t,e,i,n){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,(this._loop=e)&&n?nt("Can' use additive animation on looped animation."):(this._additiveAnimators=n,this._allowDiscrete=i)}function Gn(){return(new Date).getTime()}u(Un,Wn=se),Un.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?((this._tail.next=t).prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},Un.prototype.addAnimator=function(t){t.animation=this;t=t.getClip();t&&this.addClip(t)},Un.prototype.removeClip=function(t){var e,i;t.animation&&(e=t.prev,i=t.next,e?e.next=i:this._head=i,i?i.prev=e:this._tail=e,t.next=t.prev=t.animation=null)},Un.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},Un.prototype.update=function(t){for(var e=Gn()-this._pausedTime,i=e-this._time,n=this._head;n;)var o=n.next,n=(n.step(e,i)&&(n.ondestroy(),this.removeClip(n)),o);this._time=e,t||(this.trigger("frame",i),this.stage.update&&this.stage.update())},Un.prototype._startLoop=function(){var e=this;this._running=!0,Ti(function t(){e._running&&(Ti(t),e._paused||e.update())})},Un.prototype.start=function(){this._running||(this._time=Gn(),this._pausedTime=0,this._startLoop())},Un.prototype.stop=function(){this._running=!1},Un.prototype.pause=function(){this._paused||(this._pauseStart=Gn(),this._paused=!0)},Un.prototype.resume=function(){this._paused&&(this._pausedTime+=Gn()-this._pauseStart,this._paused=!1)},Un.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},Un.prototype.isFinished=function(){return null==this._head},Un.prototype.animate=function(t,e){e=e||{},this.start();t=new Fn(t,e.loop);return this.addAnimator(t),t};var Wn,Xn=Un;function Un(t){var e=Wn.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}var Yn,Zn=b.domSupported,qn=(Yn={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:B(e,function(t){var e=t.replace("mouse","pointer");return Yn.hasOwnProperty(e)?e:t})}),jn=["mousemove","mouseup"],Kn=["pointermove","pointerup"],$n=!1;function Qn(t){t=t.pointerType;return"pen"===t||"touch"===t}function Jn(t){t&&(t.zrByTouch=!0)}function to(t,e){for(var i=e,n=!1;i&&9!==i.nodeType&&!(n=i.domBelongToZr||i!==e&&i===t.painterRoot);)i=i.parentNode;return n}var eo=function(t,e){this.stopPropagation=Bt,this.stopImmediatePropagation=Bt,this.preventDefault=Bt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},io={mousedown:function(t){t=Te(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Te(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=Te(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){to(this,(t=Te(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){$n=!0,t=Te(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){$n||(t=Te(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Jn(t=Te(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),io.mousemove.call(this,t),io.mousedown.call(this,t)},touchmove:function(t){Jn(t=Te(this.dom,t)),this.handler.processGesture(t,"change"),io.mousemove.call(this,t)},touchend:function(t){Jn(t=Te(this.dom,t)),this.handler.processGesture(t,"end"),io.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&io.click.call(this,t)},pointerdown:function(t){io.mousedown.call(this,t)},pointermove:function(t){Qn(t)||io.mousemove.call(this,t)},pointerup:function(t){io.mouseup.call(this,t)},pointerout:function(t){Qn(t)||io.mouseout.call(this,t)}},no=(O(["click","dblclick","contextmenu"],function(e){io[e]=function(t){t=Te(this.dom,t),this.trigger(e,t)}}),{pointermove:function(t){Qn(t)||no.mousemove.call(this,t)},pointerup:function(t){no.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 oo(n,o){var r=o.domHandlers;b.pointerEventsSupported?O(qn.pointer,function(e){ao(o,e,function(t){r[e].call(n,t)})}):(b.touchEventsSupported&&O(qn.touch,function(i){ao(o,i,function(t){var e;r[i].call(n,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)})}),O(qn.mouse,function(e){ao(o,e,function(t){t=Me(t),o.touching||r[e].call(n,t)})}))}function ro(n,o){function t(i){ao(o,i,function(t){var e;t=Me(t),to(n,t.target)||(e=t,t=Te(n.dom,new eo(n,e),!0),o.domHandlers[i].call(n,t))},{capture:!0})}b.pointerEventsSupported?O(Kn,t):b.touchEventsSupported||O(jn,t)}function ao(t,e,i,n){t.mounted[e]=i,t.listenerOpts[e]=n,t.domTarget.addEventListener(e,i,n)}function so(t){var e,i,n,o,r,a=t.mounted;for(e in a)a.hasOwnProperty(e)&&(i=t.domTarget,o=a[n=e],r=t.listenerOpts[e],i.removeEventListener(n,o,r));t.mounted={}}var lo,uo=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},ho=(u(co,lo=se),co.prototype.dispose=function(){so(this._localHandlerScope),Zn&&so(this._globalHandlerScope)},co.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},co.prototype.__togglePointerCapture=function(t){var e;this.__mayPointerCapture=null,Zn&&+this.__pointerCapturing^+t&&(this.__pointerCapturing=t,e=this._globalHandlerScope,t?ro(this,e):so(e))},co);function co(t,e){var i=lo.call(this)||this;return i.__pointerCapturing=!1,i.dom=t,i.painterRoot=e,i._localHandlerScope=new uo(t,io),Zn&&(i._globalHandlerScope=new uo(document,no)),oo(i,i._localHandlerScope),i}var e=1,po=e=b.hasGlobalWindow?Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1):e,fo="#333",go="#ccc",yo=Oe;function mo(t){return 5e-5<t||t<-5e-5}var vo=[],_o=[],xo=Pe(),wo=Math.abs,bo=(So.prototype.getLocalTransform=function(t){return So.getLocalTransform(this,t)},So.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},So.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},So.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},So.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},So.prototype.needLocalTransform=function(){return mo(this.rotation)||mo(this.x)||mo(this.y)||mo(this.scaleX-1)||mo(this.scaleY-1)||mo(this.skewX)||mo(this.skewY)},So.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;e||t?(i=i||Pe(),e?this.getLocalTransform(i):yo(i),t&&(e?ze(i,t,i):Re(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)):i&&(yo(i),this.invTransform=null)},So.prototype._resolveGlobalScaleRatio=function(t){var e,i,n=this.globalScaleRatio;null!=n&&1!==n&&(this.getGlobalScale(vo),i=((vo[1]-(i=vo[1]<0?-1:1))*n+i)/vo[1]||0,t[0]*=n=((vo[0]-(e=vo[0]<0?-1:1))*n+e)/vo[0]||0,t[1]*=n,t[2]*=i,t[3]*=i),this.invTransform=this.invTransform||Pe(),Ve(this.invTransform,t)},So.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},So.prototype.setLocalTransform=function(t){var e,i,n,o;t&&(o=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],e=Math.atan2(t[1],t[0]),i=Math.PI/2+e-Math.atan2(t[3],t[2]),n=Math.sqrt(n)*Math.cos(i),o=Math.sqrt(o),this.skewX=i,this.skewY=0,this.rotation=-e,this.x=+t[4],this.y=+t[5],this.scaleX=o,this.scaleY=n,this.originX=0,this.originY=0)},So.prototype.decomposeTransform=function(){var t,e,i;this.transform&&(e=this.parent,t=this.transform,e&&e.transform&&(e.invTransform=e.invTransform||Pe(),ze(_o,e.invTransform,t),t=_o),e=this.originX,i=this.originY,(e||i)&&(xo[4]=e,xo[5]=i,ze(_o,t,xo),_o[4]-=e,_o[5]-=i,t=_o),this.setLocalTransform(t))},So.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},So.prototype.transformCoordToLocal=function(t,e){t=[t,e],e=this.invTransform;return e&&te(t,t,e),t},So.prototype.transformCoordToGlobal=function(t,e){t=[t,e],e=this.transform;return e&&te(t,t,e),t},So.prototype.getLineScale=function(){var t=this.transform;return t&&1e-10<wo(t[0]-1)&&1e-10<wo(t[3]-1)?Math.sqrt(wo(t[0]*t[3]-t[2]*t[1])):1},So.prototype.copyTransform=function(t){for(var e=this,i=t,n=0;n<Mo.length;n++){var o=Mo[n];e[o]=i[o]}},So.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,o=t.scaleX,r=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,t=t.skewY?Math.tan(-t.skewY):0;return i||n||a||s?(e[4]=-(a=i+a)*o-c*(s=n+s)*r,e[5]=-s*r-t*a*o):e[4]=e[5]=0,e[0]=o,e[3]=r,e[1]=t*o,e[2]=c*r,l&&Ee(e,e,l),e[4]+=i+u,e[5]+=n+h,e},So.initDefaultProps=((e=So.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),So);function So(){}var Mo=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];var To={};function Io(t,e){var i=To[e=e||j],n=(i=i||(To[e]=new en(500))).get(t);return null==n&&(n=H.measureText(t,e).width,i.put(t,n)),n}function Co(t,e,i,n){t=Io(t,e),e=Lo(e),i=ko(0,t,i),n=Ao(0,e,n);return new U(i,n,t,e)}function Do(t,e,i,n){var o=((t||"")+"").split("\n");if(1===o.length)return Co(o[0],e,i,n);for(var r=new U(0,0,0,0),a=0;a<o.length;a++){var s=Co(o[a],e,i,n);0===a?r.copy(s):r.union(s)}return r}function ko(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function Ao(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function Lo(t){return Io("国",t)}function Po(t,e){return"string"==typeof t?0<=t.lastIndexOf("%")?parseFloat(t)/100*e:parseFloat(t):t}function Oo(t,e,i){var n=e.position||"inside",o=null!=e.distance?e.distance:5,r=i.height,a=i.width,s=r/2,l=i.x,u=i.y,h="left",c="top";if(n instanceof Array)l+=Po(n[0],i.width),u+=Po(n[1],i.height),c=h=null;else switch(n){case"left":l-=o,u+=s,h="right",c="middle";break;case"right":l+=o+a,u+=s,c="middle";break;case"top":l+=a/2,u-=o,h="center",c="bottom";break;case"bottom":l+=a/2,u+=r+o,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=o,u+=s,c="middle";break;case"insideRight":l+=a-o,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=o,h="center";break;case"insideBottom":l+=a/2,u+=r-o,h="center",c="bottom";break;case"insideTopLeft":l+=o,u+=o;break;case"insideTopRight":l+=a-o,u+=o,h="right";break;case"insideBottomLeft":l+=o,u+=r-o,c="bottom";break;case"insideBottomRight":l+=a-o,u+=r-o,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}var Ro,zo="__zr_normal__",No=Mo.concat(["ignore"]),Eo=lt(Mo,function(t,e){return t[e]=!0,t},{ignore:!1}),Bo={},Vo=new U(0,0,0,0),e=(i.prototype._init=function(t){this.attr(t)},i.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var n=this.transform;(n=n||(this.transform=[1,0,0,1,0,0]))[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},i.prototype.beforeUpdate=function(){},i.prototype.afterUpdate=function(){},i.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},i.prototype.updateInnerText=function(t){var e,i,n,o,r,a,s,l,u,h,c=this._textContent;!c||c.ignore&&!t||(this.textConfig||(this.textConfig={}),l=(t=this.textConfig).local,n=i=void 0,o=!1,(e=c.innerTransformable).parent=l?this:null,h=!1,e.copyTransform(c),null!=t.position&&(u=Vo,t.layoutRect?u.copy(t.layoutRect):u.copy(this.getBoundingRect()),l||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Bo,t,u):Oo(Bo,t,u),e.x=Bo.x,e.y=Bo.y,i=Bo.align,n=Bo.verticalAlign,r=t.origin)&&null!=t.rotation&&(s=a=void 0,s="center"===r?(a=.5*u.width,.5*u.height):(a=Po(r[0],u.width),Po(r[1],u.height)),h=!0,e.originX=-e.x+a+(l?0:u.x),e.originY=-e.y+s+(l?0:u.y)),null!=t.rotation&&(e.rotation=t.rotation),(r=t.offset)&&(e.x+=r[0],e.y+=r[1],h||(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={}),h=u=l=void 0,a&&this.canBeInsideText()?(l=t.insideFill,u=t.insideStroke,null!=l&&"auto"!==l||(l=this.getInsideTextFill()),null!=u&&"auto"!==u||(u=this.getInsideTextStroke(l),h=!0)):(l=t.outsideFill,u=t.outsideStroke,null!=l&&"auto"!==l||(l=this.getOutsideFill()),null!=u&&"auto"!==u||(u=this.getOutsideStroke(l),h=!0)),(l=l||"#000")===s.fill&&u===s.stroke&&h===s.autoStroke&&i===s.align&&n===s.verticalAlign||(o=!0,s.fill=l,s.stroke=u,s.autoStroke=h,s.align=i,s.verticalAlign=n,c.setDefaultTextStyle(s)),c.__dirty|=vi,o&&c.dirtyStyle(!0))},i.prototype.canBeInsideText=function(){return!0},i.prototype.getInsideTextFill=function(){return"#fff"},i.prototype.getInsideTextStroke=function(t){return"#000"},i.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?go:fo},i.prototype.getOutsideStroke=function(t){for(var e=this.__zr&&this.__zr.getBackgroundColor(),i="string"==typeof e&&yn(e),n=(i=i||[255,255,255,1])[3],o=this.__zr.isDarkMode(),r=0;r<3;r++)i[r]=i[r]*n+(o?0:255)*(1-n);return i[3]=1,Mn(i,"rgba")},i.prototype.traverse=function(t,e){},i.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||{},P(this.extra,e)):this[t]=e},i.prototype.hide=function(){this.ignore=!0,this.markRedraw()},i.prototype.show=function(){this.ignore=!1,this.markRedraw()},i.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(R(t))for(var i=ht(t),n=0;n<i.length;n++){var o=i[n];this.attrKV(o,t[o])}return this.markRedraw(),this},i.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],o=n.__fromStateTransition;n.getLoop()||o&&o!==zo||(o=(o=n.targetName)?e[o]:e,n.saveTo(o))}},i.prototype._innerSaveToNormal=function(t){var e=(e=this._normalState)||(this._normalState={});t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,No)},i.prototype._savePrimaryToNormal=function(t,e,i){for(var n=0;n<i.length;n++){var o=i[n];null==t[o]||o in e||(e[o]=this[o])}},i.prototype.hasState=function(){return 0<this.currentStates.length},i.prototype.getState=function(t){return this.states[t]},i.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},i.prototype.clearStates=function(t){this.useState(zo,!1,t)},i.prototype.useState=function(t,e,i,n){var o=t===zo,r=this.hasState();if(r||!o){var a,r=this.currentStates,s=this.stateTransition;if(!(0<=C(r,t))||!e&&1!==r.length){if((a=(a=this.stateProxy&&!o?this.stateProxy(t):a)||this.states&&this.states[t])||o)return o||this.saveCurrentToNormalState(a),(r=!!(a&&a.hoverLayer||n))&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,a,this._normalState,e,!i&&!this.__inHover&&s&&0<s.duration,s),n=this._textContent,s=this._textGuide,n&&n.useState(t,e,i,r),s&&s.useState(t,e,i,r),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!r&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~vi),a;nt("State "+t+" not exists.")}}},i.prototype.useStates=function(t,e,i){if(t.length){var n=[],o=this.currentStates,r=t.length,a=r===o.length;if(a)for(var s=0;s<r;s++)if(t[s]!==o[s]){a=!1;break}if(!a){for(s=0;s<r;s++){var l=t[s],u=void 0;(u=(u=this.stateProxy?this.stateProxy(l,t):u)||this.states[l])&&n.push(u)}var h=n[r-1],h=!!(h&&h.hoverLayer||i),i=(h&&this._toggleHoverLayerFlag(!0),this._mergeStates(n)),c=this.stateTransition,i=(this.saveCurrentToNormalState(i),this._applyStateObj(t.join(","),i,this._normalState,!1,!e&&!this.__inHover&&c&&0<c.duration,c),this._textContent),c=this._textGuide;i&&i.useStates(t,e,h),c&&c.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~vi)}}else this.clearStates()},i.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},i.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},i.prototype.removeState=function(t){var e,t=C(this.currentStates,t);0<=t&&((e=this.currentStates.slice()).splice(t,1),this.useStates(e))},i.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),t=C(n,t),o=0<=C(n,e);0<=t?o?n.splice(t,1):n[t]=e:i&&!o&&n.push(e),this.useStates(n)},i.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},i.prototype._mergeStates=function(t){for(var e,i={},n=0;n<t.length;n++){var o=t[n];P(i,o),o.textConfig&&P(e=e||{},o.textConfig)}return e&&(i.textConfig=e),i},i.prototype._applyStateObj=function(t,e,i,n,o,r){for(var a=!(e&&n),s=(e&&e.textConfig?(this.textConfig=P({},(n?this:i).textConfig),P(this.textConfig,e.textConfig)):a&&i.textConfig&&(this.textConfig=i.textConfig),{}),l=!1,u=0;u<No.length;u++){var h=No[u],c=o&&Eo[h];e&&null!=e[h]?c?(l=!0,s[h]=e[h]):this[h]=e[h]:a&&null!=i[h]&&(c?(l=!0,s[h]=i[h]):this[h]=i[h])}if(!o)for(u=0;u<this.animators.length;u++){var p=this.animators[u],d=p.targetName;p.getLoop()||p.__changeFinalValue(d?(e||i)[d]:e||i)}l&&this._transitionState(t,s,r)},i.prototype._attachComponent=function(t){var e;t.__zr&&!t.__hostTarget||t!==this&&((e=this.__zr)&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this)},i.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},i.prototype.getClipPath=function(){return this._clipPath},i.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},i.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},i.prototype.getTextContent=function(){return this._textContent},i.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new bo,this._attachComponent(t),this._textContent=t,this.markRedraw())},i.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),P(this.textConfig,t),this.markRedraw()},i.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},i.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},i.prototype.getTextGuideLine=function(){return this._textGuide},i.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},i.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},i.prototype.markRedraw=function(){this.__dirty|=vi;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},i.prototype.dirty=function(){this.markRedraw()},i.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},i.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},i.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},i.prototype.animate=function(t,e,i){var n=t?this[t]:this,n=new Fn(n,e,i);return t&&(n.targetName=t),this.addAnimator(n,t),n},i.prototype.addAnimator=function(i,t){var e=this.__zr,n=this;i.during(function(){n.updateDuringAnimation(t)}).done(function(){var t=n.animators,e=C(t,i);0<=e&&t.splice(e,1)}),this.animators.push(i),e&&e.animation.addAnimator(i),e&&e.wakeUp()},i.prototype.updateDuringAnimation=function(t){this.markRedraw()},i.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,o=[],r=0;r<n;r++){var a=i[r];t&&t!==a.scope?o.push(a):a.stop(e)}return this.animators=o,this},i.prototype.animateTo=function(t,e,i){Ho(this,t,e,i)},i.prototype.animateFrom=function(t,e,i){Ho(this,t,e,i,!0)},i.prototype._transitionState=function(t,e,i,n){for(var o=Ho(this,e,i,n),r=0;r<o.length;r++)o[r].__fromStateTransition=t},i.prototype.getBoundingRect=function(){return null},i.prototype.getPaintRect=function(){return null},i.initDefaultProps=((Ro=i.prototype).type="element",Ro.name="",Ro.ignore=Ro.silent=Ro.isGroup=Ro.draggable=Ro.dragging=Ro.ignoreClip=Ro.__inHover=!1,Ro.__dirty=vi,void(Object.defineProperty&&(Fo("position","_legacyPos","x","y"),Fo("scale","_legacyScale","scaleX","scaleY"),Fo("origin","_legacyOrigin","originX","originY")))),i);function i(t){this.id=et++,this.animators=[],this.currentStates=[],this.states={},this._init(t)}function Fo(t,e,i,n){function o(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[n]},set:function(t){e[n]=t}})}Object.defineProperty(Ro,t,{get:function(){var t;return this[e]||(t=this[e]=[],o(this,t)),this[e]},set:function(t){this[i]=t[0],this[n]=t[1],this[e]=t,o(this,t)}})}function Ho(t,e,i,n,o){function r(){u=!0,--l<=0&&(u?h&&h():c&&c())}function a(){--l<=0&&(u?h&&h():c&&c())}var s=[],l=(!function t(e,i,n,o,r,a,s,l){var u=ht(o);var h=r.duration;var c=r.delay;var p=r.additive;var d=r.setToFinal;var f=!R(a);var g=e.animators;var y=[];for(var m=0;m<u.length;m++){var v=u[m],_=o[v];null!=_&&null!=n[v]&&(f||a[v])?!R(_)||st(_)||yt(_)?y.push(v):i?l||(n[v]=_,e.updateDuringAnimation(i)):t(e,v,n[v],_,r,a&&a[v],s,l):l||(n[v]=_,e.updateDuringAnimation(i),y.push(v))}var x=y.length;if(!p&&x)for(var w,b=0;b<g.length;b++)(S=g[b]).targetName===i&&S.stopTracks(y)&&(w=C(g,S),g.splice(w,1));r.force||(y=ut(y,function(t){return!Xo(o[t],n[t])}),x=y.length);if(0<x||r.force&&!s.length){var S,M=void 0,T=void 0,I=void 0;if(l){T={},d&&(M={});for(b=0;b<x;b++){v=y[b];T[v]=n[v],d?M[v]=o[v]:n[v]=o[v]}}else if(d){I={};for(b=0;b<x;b++){v=y[b];I[v]=On(n[v]),Wo(n,o,v)}}(S=new Fn(n,!1,!1,p?ut(g,function(t){return t.targetName===i}):null)).targetName=i,r.scope&&(S.scope=r.scope),d&&M&&S.whenWithKeys(0,M,y),I&&S.whenWithKeys(0,I,y),S.whenWithKeys(null==h?500:h,l?T:o,y).delay(c||0),e.addAnimator(S,i),s.push(S)}}(t,"",t,e,i=i||{},n,s,o),s.length),u=!1,h=i.done,c=i.aborted;l||h&&h(),0<s.length&&i.during&&s[0].during(function(t,e){i.during(e)});for(var p=0;p<s.length;p++){var d=s[p];d.done(r),d.aborted(a),i.force&&d.duration(i.duration),d.start(i.easing)}return s}function Go(t,e,i){for(var n=0;n<i;n++)t[n]=e[n]}function Wo(t,e,i){if(st(e[i]))if(st(t[i])||(t[i]=[]),ft(e[i])){var n=e[i].length;t[i].length!==n&&(t[i]=new e[i].constructor(n),Go(t[i],e[i],n))}else{var o=e[i],r=t[i],a=o.length;if(st(o[0]))for(var s=o[0].length,l=0;l<a;l++)r[l]?Go(r[l],o[l],s):r[l]=Array.prototype.slice.call(o[l]);else Go(r,o,a);r.length=o.length}else t[i]=e[i]}function Xo(t,e){return t===e||st(t)&&st(e)&&function(t,e){var i=t.length;if(i!==e.length)return!1;for(var n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}(t,e)}at(e,se),at(e,bo);u(Zo,Uo=e),Zo.prototype.childrenRef=function(){return this._children},Zo.prototype.children=function(){return this._children.slice()},Zo.prototype.childAt=function(t){return this._children[t]},Zo.prototype.childOfName=function(t){for(var e=this._children,i=0;i<e.length;i++)if(e[i].name===t)return e[i]},Zo.prototype.childCount=function(){return this._children.length},Zo.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},Zo.prototype.addBefore=function(t,e){var i;return t&&t!==this&&t.parent!==this&&e&&e.parent===this&&0<=(e=(i=this._children).indexOf(e))&&(i.splice(e,0,t),this._doAdd(t)),this},Zo.prototype.replace=function(t,e){t=C(this._children,t);return 0<=t&&this.replaceAt(e,t),this},Zo.prototype.replaceAt=function(t,e){var i=this._children,n=i[e];return t&&t!==this&&t.parent!==this&&t!==n&&(i[e]=t,n.parent=null,(i=this.__zr)&&n.removeSelfFromZr(i),this._doAdd(t)),this},Zo.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()},Zo.prototype.remove=function(t){var e=this.__zr,i=this._children,n=C(i,t);return n<0||(i.splice(n,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},Zo.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,i=0;i<t.length;i++){var n=t[i];e&&n.removeSelfFromZr(e),n.parent=null}return t.length=0,this},Zo.prototype.eachChild=function(t,e){for(var i=this._children,n=0;n<i.length;n++){var o=i[n];t.call(e,o,n)}return this},Zo.prototype.traverse=function(t,e){for(var i=0;i<this._children.length;i++){var n=this._children[i],o=t.call(e,n);n.isGroup&&!o&&n.traverse(t,e)}return this},Zo.prototype.addSelfToZr=function(t){Uo.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].addSelfToZr(t)},Zo.prototype.removeSelfFromZr=function(t){Uo.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].removeSelfFromZr(t)},Zo.prototype.getBoundingRect=function(t){for(var e=new U(0,0,0,0),i=t||this._children,n=[],o=null,r=0;r<i.length;r++){var a,s=i[r];s.ignore||s.invisible||(a=s.getBoundingRect(),(s=s.getLocalTransform(n))?(U.applyTransform(e,a,s),(o=o||e.clone()).union(e)):(o=o||a.clone()).union(a))}return o||e};var Uo,Yo=Zo;function Zo(t){var e=Uo.call(this)||this;return e.isGroup=!0,e._children=[],e.attr(t),e}Yo.prototype.type="group";var qo={},jo={};Qo.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},Qo.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},Qo.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},Qo.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(t){if("string"==typeof t)return Tn(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,i=0,n=e.length,o=0;o<n;o++)i+=Tn(e[o].color,1);return(i/=n)<.4}}return!1}(t))},Qo.prototype.getBackgroundColor=function(){return this._backgroundColor},Qo.prototype.setDarkMode=function(t){this._darkMode=t},Qo.prototype.isDarkMode=function(){return this._darkMode},Qo.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},Qo.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},Qo.prototype.flush=function(){this._disposed||this._flush(!1)},Qo.prototype._flush=function(t){var e,i=Gn(),t=(this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),Gn());e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:t-i})):0<this._sleepAfterStill&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill)&&this.animation.stop()},Qo.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},Qo.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},Qo.prototype.refreshHover=function(){this._needsRefreshHover=!0},Qo.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},Qo.prototype.resize=function(t){this._disposed||(this.painter.resize((t=t||{}).width,t.height),this.handler.resize())},Qo.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},Qo.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},Qo.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},Qo.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},Qo.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},Qo.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},Qo.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},Qo.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},Qo.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Yo&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},Qo.prototype.dispose=function(){var t;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,t=this.id,delete jo[t])};var Ko,$o=Qo;function Qo(t,e,i){var n,o=this,r=(this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t,new Si),a=i.renderer||"canvas",a=(qo[a]||(a=ht(qo)[0]),i.useDirtyRect=null!=i.useDirtyRect&&i.useDirtyRect,new qo[a](e,r,i,t)),e=i.ssr||a.ssrOnly,t=(this.storage=r,this.painter=a,b.node||b.worker||e?null:new ho(a.getViewportRoot(),a.root)),s=i.useCoarsePointer;(null==s||"auto"===s?b.touchEventsSupported:!!s)&&(n=z(i.pointerSize,44)),this.handler=new ai(r,a,t,a.root,n),this.animation=new Xn({stage:{update:e?null:function(){return o._flush(!0)}}}),e||this.animation.start()}function Jo(t,e){t=new $o(et++,t,e);return jo[t.id]=t}function tr(t,e){qo[t]=e}function er(t){Ko=t}var ir=Object.freeze({__proto__:null,dispose:function(t){t.dispose()},disposeAll:function(){for(var t in jo)jo.hasOwnProperty(t)&&jo[t].dispose();jo={}},getElementSSRData:function(t){if("function"==typeof Ko)return Ko(t)},getInstance:function(t){return jo[t]},init:Jo,registerPainter:tr,registerSSRDataGetter:er,version:"5.6.0"}),nr=20;function or(t,e,i,n){var o=e[0],e=e[1],r=i[0],i=i[1],a=e-o,s=i-r;if(0==a)return 0==s?r:(r+i)/2;if(n)if(0<a){if(t<=o)return r;if(e<=t)return i}else{if(o<=t)return r;if(t<=e)return i}else{if(t===o)return r;if(t===e)return i}return(t-o)/a*s+r}function rr(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 F(t)?t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function ar(t,e,i){return null==e&&(e=10),e=Math.min(Math.max(0,e),nr),t=(+t).toFixed(e),i?t:+t}function sr(t){return t.sort(function(t,e){return t-e}),t}function lr(t){if(t=+t,isNaN(t))return 0;if(1e-14<t)for(var e=1,i=0;i<15;i++,e*=10)if(Math.round(t*e)/e===t)return i;return ur(t)}function ur(t){var t=t.toString().toLowerCase(),e=t.indexOf("e"),i=0<e?+t.slice(e+1):0,e=0<e?e:t.length,t=t.indexOf(".");return Math.max(0,(t<0?0:e-1-t)-i)}function hr(t,e){var i=Math.log,n=Math.LN10,t=Math.floor(i(t[1]-t[0])/n),i=Math.round(i(Math.abs(e[1]-e[0]))/n),e=Math.min(Math.max(-t+i,0),20);return isFinite(e)?e:20}function cr(t){var e=2*Math.PI;return(t%e+e)%e}function pr(t){return-1e-4<t&&t<1e-4}var dr=/^(?:(\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 fr(t){var e,i;return t instanceof Date?t:F(t)?(e=dr.exec(t))?e[8]?(i=+e[4]||0,"Z"!==e[8].toUpperCase()&&(i-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,i,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))):new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0):new Date(NaN):null==t?new Date(NaN):new Date(Math.round(t))}function gr(t){return Math.pow(10,yr(t))}function yr(t){var e;return 0===t?0:(e=Math.floor(Math.log(t)/Math.LN10),10<=t/Math.pow(10,e)&&e++,e)}function mr(t,e){var i=yr(t),n=Math.pow(10,i),o=t/n,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*n,-20<=i?+t.toFixed(i<0?-i:0):t}function vr(t){t.sort(function(t,e){return function t(e,i,n){return e.interval[n]<i.interval[n]||e.interval[n]===i.interval[n]&&(e.close[n]-i.close[n]==(n?-1:1)||!n&&t(e,i,1))}(t,e,0)?-1:1});for(var e=-1/0,i=1,n=0;n<t.length;){for(var o=t[n].interval,r=t[n].close,a=0;a<2;a++)o[a]<=e&&(o[a]=e,r[a]=a?1:1-i),e=o[a],i=r[a];o[0]===o[1]&&r[0]*r[1]!=1?t.splice(n,1):n++}return t}function _r(t){var e=parseFloat(t);return e==t&&(0!==e||!F(t)||t.indexOf("x")<=0)?e:NaN}function xr(t){return!isNaN(_r(t))}function wr(){return Math.round(9*Math.random())}function br(t,e){return null==t?e:null==e?t:t*e/function t(e,i){return 0===i?e:t(i,e%i)}(t,e)}function f(t){throw new Error(t)}function Sr(t,e,i){return(e-t)*i+t}var Mr="series\0";function Tr(t){return t instanceof Array?t:null==t?[]:[t]}function Ir(t,e,i){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,o=i.length;n<o;n++){var r=i[n];!t.emphasis[e].hasOwnProperty(r)&&t[e].hasOwnProperty(r)&&(t.emphasis[e][r]=t[e][r])}}}var Cr=["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 Dr(t){return!R(t)||V(t)||t instanceof Date?t:t.value}function kr(t,i,e){var r,a,s,l,o,u,n,h,c,p,d="normalMerge"===e,f="replaceMerge"===e,g="replaceAll"===e,y=(t=t||[],i=(i||[]).slice(),N()),e=(O(i,function(t,e){R(t)||(i[e]=null)}),function(t,e,i){var n=[];if("replaceAll"!==i)for(var o=0;o<t.length;o++){var r=t[o];r&&null!=r.id&&e.set(r.id,o),n.push({existing:"replaceMerge"===i||Rr(r)?null:r,newOption:null,keyInfo:null,brandNew:null})}return n}(t,y,e));return(d||f)&&(r=e,a=t,s=y,O(l=i,function(t,e){var i,n,o;t&&null!=t.id&&(i=Lr(t.id),null!=(n=s.get(i)))&&(Mt(!(o=r[n]).newOption,'Duplicated option on id "'+i+'".'),o.newOption=t,o.existing=a[n],l[e]=null)})),d&&(o=e,O(u=i,function(t,e){if(t&&null!=t.name)for(var i=0;i<o.length;i++){var n=o[i].existing;if(!o[i].newOption&&n&&(null==n.id||null==t.id)&&!Rr(t)&&!Rr(n)&&Ar("name",n,t))return o[i].newOption=t,void(u[e]=null)}})),d||f?(h=e,c=f,O(i,function(t){if(t){for(var e,i=0;(e=h[i])&&(e.newOption||Rr(e.existing)||e.existing&&null!=t.id&&!Ar("id",t,e.existing));)i++;e?(e.newOption=t,e.brandNew=c):h.push({newOption:t,brandNew:c,existing:null,keyInfo:null}),i++}})):g&&(n=e,O(i,function(t){n.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})),t=e,p=N(),O(t,function(t){var e=t.existing;e&&p.set(e.id,t)}),O(t,function(t){var e=t.newOption;Mt(!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={})}),O(t,function(t,e){var i=t.existing,n=t.newOption,o=t.keyInfo;if(R(n)){if(o.name=null!=n.name?Lr(n.name):i?i.name:Mr+e,i)o.id=Lr(i.id);else if(null!=n.id)o.id=Lr(n.id);else for(var r=0;o.id="\0"+o.name+"\0"+r++,p.get(o.id););p.set(o.id,t)}}),e}function Ar(t,e,i){e=Pr(e[t],null),i=Pr(i[t],null);return null!=e&&null!=i&&e===i}function Lr(t){return Pr(t,"")}function Pr(t,e){return null==t?e:F(t)?t:pt(t)||ct(t)?t+"":e}function Or(t){t=t.name;return!(!t||!t.indexOf(Mr))}function Rr(t){return t&&null!=t.id&&0===Lr(t.id).indexOf("\0_ec_\0")}function zr(t,o,r){O(t,function(t){var e,i,n=t.newOption;R(n)&&(t.keyInfo.mainType=o,t.keyInfo.subType=(e=o,n=n,t=t.existing,i=r,n.type||(t?t.subType:i.determineSubType(e,n))))})}function Nr(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?V(t.dataIndex)?B(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?V(t.name)?B(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function Er(){var e="__ec_inner_"+Br++;return function(t){return t[e]||(t[e]={})}}var Br=wr();function Vr(i,t,n){var t=Fr(t,n),e=t.mainTypeSpecified,o=t.queryOptionMap,r=t.others,a=n?n.defaultMainType:null;return!e&&a&&o.set(a,{}),o.each(function(t,e){t=Wr(i,e,t,{useDefault:a===e,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});r[e+"Models"]=t.models,r[e+"Model"]=t.models[0]}),r}function Fr(t,n){var e=F(t)?((e={})[t+"Index"]=0,e):t,o=N(),r={},a=!1;return O(e,function(t,e){var i;"dataIndex"===e||"dataIndexInside"===e?r[e]=t:(i=(e=e.match(/^(\w+)(Index|Id|Name)$/)||[])[1],e=(e[2]||"").toLowerCase(),!i||!e||n&&n.includeMainTypes&&C(n.includeMainTypes,i)<0||(a=a||!!i,(o.get(i)||o.set(i,{}))[e]=t))}),{mainTypeSpecified:a,queryOptionMap:o,others:r}}var Hr={useDefault:!0,enableAll:!1,enableNone:!1},Gr={useDefault:!1,enableAll:!0,enableNone:!0};function Wr(t,e,i,n){n=n||Hr;var o=i.index,r=i.id,i=i.name,a={models:null,specified:null!=o||null!=r||null!=i};return a.specified?"none"===o||!1===o?(Mt(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),a.models=[]):("all"===o&&(Mt(n.enableAll,'`"all"` is not a valid value on index option.'),o=r=i=null),a.models=t.queryComponents({mainType:e,index:o,id:r,name:i})):(o=void 0,a.models=n.useDefault&&(o=t.getComponent(e))?[o]:[]),a}function Xr(t,e,i){t.setAttribute?t.setAttribute(e,i):t[e]=i}function Ur(t,e,i,n,o){var r=null==e||"auto"===e;if(null==n)return n;if(pt(n))return ar(p=Sr(i||0,n,o),r?Math.max(lr(i||0),lr(n)):e);if(F(n))return o<1?i:n;for(var a=[],s=i,l=n,u=Math.max(s?s.length:0,l.length),h=0;h<u;++h){var c,p,d=t.getDimensionInfo(h);d&&"ordinal"===d.type?a[h]=(o<1&&s?s:l)[h]:(p=Sr(d=s&&s[h]?s[h]:0,c=l[h],o),a[h]=ar(p,r?Math.max(lr(d),lr(c)):e))}return a}var Yr=".",Zr="___EC__COMPONENT__CONTAINER___",qr="___EC__EXTENDED_CLASS___";function jr(t){var e={main:"",sub:""};return t&&(t=t.split(Yr),e.main=t[0]||"",e.sub=t[1]||""),e}function Kr(t){(t.$constructor=t).extend=function(t){var e,i,n,o=this;function r(){return i.apply(this,arguments)||this}return D(n=o)&&/^class\s/.test(Function.prototype.toString.call(n))?(u(r,i=o),e=r):rt(e=function(){(t.$constructor||o).apply(this,arguments)},this),P(e.prototype,t),e[qr]=!0,e.extend=this.extend,e.superCall=Jr,e.superApply=ta,e.superClass=o,e}}function $r(t,e){t.extend=e.extend}var Qr=Math.round(10*Math.random());function Jr(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,i)}function ta(t,e,i){return this.superClass.prototype[e].apply(t,i)}function ea(t){var o={};t.registerClass=function(t){var e,i=t.type||t.prototype.type;return i&&(Mt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e=i),'componentType "'+e+'" illegal'),(e=jr(t.prototype.type=i)).sub?e.sub!==Zr&&(function(t){var e=o[t.main];e&&e[Zr]||(e=o[t.main]={___EC__COMPONENT__CONTAINER___:!0});return e}(e)[e.sub]=t):o[e.main]=t),t},t.getClass=function(t,e,i){var n=o[t];if(n&&n[Zr]&&(n=e?n[e]:null),i&&!n)throw new Error(e?"Component "+t+"."+(e||"")+" is used but not imported.":t+".type should be specified.");return n},t.getClassesByMainType=function(t){var t=jr(t),i=[],t=o[t.main];return t&&t[Zr]?O(t,function(t,e){e!==Zr&&i.push(t)}):i.push(t),i},t.hasClass=function(t){t=jr(t);return!!o[t.main]},t.getAllClassMainTypes=function(){var i=[];return O(o,function(t,e){i.push(e)}),i},t.hasSubTypes=function(t){t=jr(t),t=o[t.main];return t&&t[Zr]}}function ia(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,i){for(var n={},o=0;o<a.length;o++){var r=a[o][1];e&&0<=C(e,r)||i&&C(i,r)<0||null!=(r=t.getShallow(r,s))&&(n[a[o][0]]=r)}return n}}var na=ia([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),oa=(ra.prototype.getAreaStyle=function(t,e){return na(this,t,e)},ra);function ra(){}var aa=new en(50);function sa(t,e,i,n,o){return t?"string"==typeof t?(e&&e.__zrImageSrc===t||!i||(i={hostEl:i,cb:n,cbPayload:o},(n=aa.get(t))?ua(e=n.image)||n.pending.push(i):((e=H.loadImage(t,la,la)).__zrImageSrc=t,aa.put(t,e.__cachedImgObj={image:e,pending:[i]}))),e):t:e}function la(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var i=t.pending[e],n=i.cb;n&&n(this,i.cbPayload),i.hostEl.dirty()}t.pending.length=0}function ua(t){return t&&t.width&&t.height}var ha=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function ca(t,e,i,n,o){if(!e)return"";var r=(t+"").split("\n");o=pa(e,i,n,o);for(var a=0,s=r.length;a<s;a++)r[a]=da(r[a],o);return r.join("\n")}function pa(t,e,i,n){for(var o=P({},n=n||{}),r=(o.font=e,i=z(i,"..."),o.maxIterations=z(n.maxIterations,2),o.minChar=z(n.minChar,0)),a=(o.cnCharWidth=Io("国",e),o.ascCharWidth=Io("a",e)),s=(o.placeholder=z(n.placeholder,""),t=Math.max(0,t-1)),l=0;l<r&&a<=s;l++)s-=a;n=Io(i,e);return s<n&&(i="",n=0),s=t-n,o.ellipsis=i,o.ellipsisWidth=n,o.contentWidth=s,o.containerWidth=t,o}function da(t,e){var i=e.containerWidth,n=e.font,o=e.contentWidth;if(!i)return"";var r=Io(t,n);if(!(r<=i)){for(var a=0;;a++){if(r<=o||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?function(t,e,i,n){for(var o=0,r=0,a=t.length;r<a&&o<e;r++){var s=t.charCodeAt(r);o+=0<=s&&s<=127?i:n}return r}(t,o,e.ascCharWidth,e.cnCharWidth):0<r?Math.floor(t.length*o/r):0,r=Io(t=t.substr(0,s),n)}""===t&&(t=e.placeholder)}return t}var fa=function(){},ga=function(t){this.tokens=[],t&&(this.tokens=t)},ya=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function ma(t,e){var i=new ya;if(null!=t&&(t+=""),t){for(var n,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=ha.lastIndex=0;null!=(n=ha.exec(t));){var u=n.index;l<u&&va(i,t.substring(l,u),e,s),va(i,n[2],e,s,n[1]),l=ha.lastIndex}l<t.length&&va(i,t.substring(l,t.length),e,s);var h,c=[],p=0,d=0,f=e.padding,g="truncate"===a,y="truncate"===e.lineOverflow;t:for(var m=0;m<i.lines.length;m++){for(var v=i.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,I=(k.contentHeight=Lo(T),z(b.height,k.contentHeight));if(k.innerHeight=I,S&&(I+=S[0]+S[2]),k.height=I,k.lineHeight=wt(b.lineHeight,e.lineHeight,I),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),L(v,x,_),i.lines=i.lines.slice(0,m+1)):i.lines=i.lines.slice(0,m);break t}var C,S=b.width,D=null==S||"auto"===S;"string"==typeof S&&"%"===S.charAt(S.length-1)?(k.percentWidth=S,c.push(k),k.contentWidth=Io(k.text,T)):(D&&(S=(S=b.backgroundColor)&&S.image)&&(C=void 0,ua(S="string"==typeof(h=S)?(C=aa.get(h))&&C.image:h))&&(k.width=Math.max(k.width,S.width*I/S.height)),null!=(C=g&&null!=o?o-x:null)&&C<k.width?!D||C<M?(k.text="",k.width=k.contentWidth=0):(k.text=ca(k.text,C-M,T,e.ellipsis,{minChar:e.truncateMinChar}),k.width=k.contentWidth=Io(k.text,T)):k.contentWidth=Io(k.text,T)),k.width+=M,x+=k.width,b&&(_=Math.max(_,k.lineHeight))}L(v,x,_)}i.outerWidth=i.width=z(o,d),i.outerHeight=i.height=z(r,p),i.contentHeight=p,i.contentWidth=d,f&&(i.outerWidth+=f[1]+f[3],i.outerHeight+=f[0]+f[2]);for(m=0;m<c.length;m++){var k,A=(k=c[m]).percentWidth;k.width=parseInt(A,10)/100*i.width}}return i;function L(t,e,i){t.width=e,t.lineHeight=i,p+=i,d=Math.max(d,e)}}function va(t,e,i,n,o){var r,a,s=""===e,l=o&&i.rich[o]||{},u=t.lines,h=l.font||i.font,c=!1;n?(i=(t=l.padding)?t[1]+t[3]:0,null!=l.width&&"auto"!==l.width?(t=Po(l.width,n.width)+i,0<u.length&&t+n.accumWidth>n.width&&(r=e.split("\n"),c=!0),n.accumWidth=t):(t=xa(e,h,n.width,n.breakAll,n.accumWidth),n.accumWidth=t.accumWidth+i,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 fa;y.styleName=o,y.text=g,y.isLineHolder=!g&&!s,"number"==typeof l.width?y.width=l.width:y.width=a?a[p]:Io(g,h),p||c?u.push(new ga([y])):1===(f=(d=(u[u.length-1]||(u[0]=new ga)).tokens).length)&&d[0].isLineHolder?d[0]=y:!g&&f&&!s||d.push(y)}}var _a=lt(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function xa(t,e,i,n,o){for(var r,a=[],s=[],l="",u="",h=0,c=0,p=0;p<t.length;p++){var d,f,g=t.charAt(p);"\n"===g?(u&&(l+=u,c+=h),a.push(l),s.push(c),u=l="",c=h=0):(d=Io(g,e),f=!(n||(f=void 0,!(32<=(f=(f=r=g).charCodeAt(0))&&f<=591||880<=f&&f<=4351||4608<=f&&f<=5119||7680<=f&&f<=8303))||!!_a[r]),(a.length?i<c+d:i<o+c+d)?c?(l||u)&&(c=f?(l||(l=u,u="",c=h=0),a.push(l),s.push(c-h),u+=g,l="",h+=d):(u&&(l+=u,u="",h=0),a.push(l),s.push(c),l=g,d)):f?(a.push(u),s.push(h),u=g,h=d):(a.push(g),s.push(d)):(c+=d,f?(u+=g,h+=d):(u&&(l+=u,u="",h=0),l+=g)))}return a.length||l||(l=t,u="",h=0),u&&(l+=u),l&&(a.push(l),s.push(c)),1===a.length&&(c+=o),{accumWidth:c,lines:a,linesWidths:s}}var wa,ba="__zr_style_"+Math.round(10*Math.random()),Sa={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ma={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},Ta=(Sa[ba]=!0,["z","z2","invisible"]),Ia=["invisible"],e=(u(n,wa=e),n.prototype._init=function(t){for(var e=ht(t),i=0;i<e.length;i++){var n=e[i];"style"===n?this.useStyle(t[n]):wa.prototype.attrKV.call(this,n,t[n])}this.style||this.useStyle({})},n.prototype.beforeBrush=function(){},n.prototype.afterBrush=function(){},n.prototype.innerBeforeBrush=function(){},n.prototype.innerAfterBrush=function(){},n.prototype.shouldBePainted=function(t,e,i,n){var o=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,i){Ca.copy(t.getBoundingRect()),t.transform&&Ca.applyTransform(t.transform);return Da.width=e,Da.height=i,!Ca.intersect(Da)}(this,t,e)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths)for(var r=0;r<this.__clipPaths.length;++r)if(this.__clipPaths[r].isZeroArea())return!1;if(n&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},n.prototype.contain=function(t,e){return this.rectContain(t,e)},n.prototype.traverse=function(t,e){t.call(e,this)},n.prototype.rectContain=function(t,e){t=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(t[0],t[1])},n.prototype.getPaintRect=function(){var t,e,i,n,o,r=this._paintRect;return this._paintRect&&!this.__dirty||(o=this.transform,t=this.getBoundingRect(),e=(n=this.style).shadowBlur||0,i=n.shadowOffsetX||0,n=n.shadowOffsetY||0,r=this._paintRect||(this._paintRect=new U(0,0,0,0)),o?U.applyTransform(r,t,o):r.copy(t),(e||i||n)&&(r.width+=2*e+Math.abs(i),r.height+=2*e+Math.abs(n),r.x=Math.min(r.x,r.x+i-e),r.y=Math.min(r.y,r.y+n-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},n.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new U(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},n.prototype.getPrevPaintRect=function(){return this._prevPaintRect},n.prototype.animateStyle=function(t){return this.animate("style",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},n.prototype.attrKV=function(t,e){"style"!==t?wa.prototype.attrKV.call(this,t,e):this.style?this.setStyle(e):this.useStyle(e)},n.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:P(this.style,t),this.dirtyStyle(),this},n.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},n.prototype.dirty=function(){this.dirtyStyle()},n.prototype.styleChanged=function(){return!!(2&this.__dirty)},n.prototype.styleUpdated=function(){this.__dirty&=-3},n.prototype.createStyle=function(t){return zt(Sa,t)},n.prototype.useStyle=function(t){t[ba]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},n.prototype.isStyleObject=function(t){return t[ba]},n.prototype._innerSaveToNormal=function(t){wa.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,Ta)},n.prototype._applyStateObj=function(t,e,i,n,o,r){wa.prototype._applyStateObj.call(this,t,e,i,n,o,r);var a,s=!(e&&n);if(e&&e.style?o?n?a=e.style:(a=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(a,e.style)):(a=this._mergeStyle(this.createStyle(),(n?this:i).style),this._mergeStyle(a,e.style)):s&&(a=i.style),a)if(o){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var u=ht(l),h=0;h<u.length;h++)(p=u[h])in a&&(a[p]=a[p],this.style[p]=l[p]);for(var c=ht(a),h=0;h<c.length;h++){var p=c[h];this.style[p]=this.style[p]}this._transitionState(t,{style:a},r,this.getAnimationStyleProps())}else this.useStyle(a);for(var d=this.__inHover?Ia:Ta,h=0;h<d.length;h++){p=d[h];e&&null!=e[p]?this[p]=e[p]:s&&null!=i[p]&&(this[p]=i[p])}},n.prototype._mergeStates=function(t){for(var e,i=wa.prototype._mergeStates.call(this,t),n=0;n<t.length;n++){var o=t[n];o.style&&this._mergeStyle(e=e||{},o.style)}return e&&(i.style=e),i},n.prototype._mergeStyle=function(t,e){return P(t,e),t},n.prototype.getAnimationStyleProps=function(){return Ma},n.initDefaultProps=((e=n.prototype).type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,void(e.__dirty=2|vi)),n);function n(t){return wa.call(this,t)||this}var Ca=new U(0,0,0,0),Da=new U(0,0,0,0);var ka=Math.min,Aa=Math.max,La=Math.sin,Pa=Math.cos,Oa=2*Math.PI,Ra=Ht(),za=Ht(),Na=Ht();function Ea(t,e,i,n,o,r){o[0]=ka(t,i),o[1]=ka(e,n),r[0]=Aa(t,i),r[1]=Aa(e,n)}var Ba=[],Va=[];var Fa={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ha=[],Ga=[],Wa=[],Xa=[],Ua=[],Ya=[],Za=Math.min,qa=Math.max,ja=Math.cos,Ka=Math.sin,$a=Math.abs,Qa=Math.PI,Ja=2*Qa,ts="undefined"!=typeof Float32Array,es=[];function is(t){return Math.round(t/Qa*1e8)/1e8%2*Qa}o.prototype.increaseVersion=function(){this._version++},o.prototype.getVersion=function(){return this._version},o.prototype.setScale=function(t,e,i){0<(i=i||0)&&(this._ux=$a(i/po/t)||0,this._uy=$a(i/po/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._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},o.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Fa.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 i=$a(t-this._xi),n=$a(e-this._yi),o=i>this._ux||n>this._uy;return this.addData(Fa.L,t,e),this._ctx&&o&&this._ctx.lineTo(t,e),o?(this._xi=t,this._yi=e,this._pendingPtDist=0):(o=i*i+n*n)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o),this},o.prototype.bezierCurveTo=function(t,e,i,n,o,r){return this._drawPendingPt(),this.addData(Fa.C,t,e,i,n,o,r),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,o,r),this._xi=o,this._yi=r,this},o.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(Fa.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},o.prototype.arc=function(t,e,i,n,o,r){this._drawPendingPt(),es[0]=n,es[1]=o,s=r,(l=is((a=es)[0]))<0&&(l+=Ja),h=l-a[0],u=a[1],u+=h,!s&&Ja<=u-l?u=l+Ja:s&&Ja<=l-u?u=l-Ja:!s&&u<l?u=l+(Ja-is(l-u)):s&&l<u&&(u=l-(Ja-is(u-l))),a[0]=l,a[1]=u;var a,s,l,u,h=(o=es[1])-(n=es[0]);return this.addData(Fa.A,t,e,i,i,n,h,0,r?0:1),this._ctx&&this._ctx.arc(t,e,i,n,o,r),this._xi=ja(o)*i+t,this._yi=Ka(o)*i+e,this},o.prototype.arcTo=function(t,e,i,n,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,o),this},o.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(Fa.R,t,e,i,n),this},o.prototype.closePath=function(){this._drawPendingPt(),this.addData(Fa.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},o.prototype.fill=function(t){t&&t.fill(),this.toStatic()},o.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},o.prototype.len=function(){return this._len},o.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!ts||(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e},o.prototype.appendPath=function(t){for(var e=(t=t instanceof Array?t:[t]).length,i=0,n=this._len,o=0;o<e;o++)i+=t[o].len();ts&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(o=0;o<e;o++)for(var r=t[o].data,a=0;a<r.length;a++)this.data[n++]=r[a];this._len=n},o.prototype.addData=function(t,e,i,n,o,r,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var h=0;h<arguments.length;h++)u[this._len++]=arguments[h]}},o.prototype._drawPendingPt=function(){0<this._pendingPtDist&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},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.toStatic=function(){var t;this._saveData&&(this._drawPendingPt(),(t=this.data)instanceof Array)&&(t.length=this._len,ts)&&11<this._len&&(this.data=new Float32Array(t))},o.prototype.getBoundingRect=function(){Wa[0]=Wa[1]=Ua[0]=Ua[1]=Number.MAX_VALUE,Xa[0]=Xa[1]=Ya[0]=Ya[1]=-Number.MAX_VALUE;for(var t,e=this.data,i=0,n=0,o=0,r=0,a=0;a<this._len;){var N=e[a++],E=1===a;switch(E&&(o=i=e[a],r=n=e[a+1]),N){case Fa.M:i=o=e[a++],n=r=e[a++],Ua[0]=o,Ua[1]=r,Ya[0]=o,Ya[1]=r;break;case Fa.L:Ea(i,n,e[a],e[a+1],Ua,Ya),i=e[a++],n=e[a++];break;case Fa.C:G=H=m=y=F=g=f=d=p=c=V=B=h=u=l=s=void 0;var s=i,l=n,u=e[a++],h=e[a++],B=e[a++],V=e[a++],c=e[a],p=e[a+1],d=Ua,f=Ya,g=Fi,F=Ei,y=g(s,u,B,c,Ba);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=F(s,u,B,c,Ba[m]);d[0]=ka(H,d[0]),f[0]=Aa(H,f[0])}for(y=g(l,h,V,p,Va),m=0;m<y;m++){var G=F(l,h,V,p,Va[m]);d[1]=ka(G,d[1]),f[1]=Aa(G,f[1])}d[0]=ka(s,d[0]),f[0]=Aa(s,f[0]),d[0]=ka(c,d[0]),f[0]=Aa(c,f[0]),d[1]=ka(l,d[1]),f[1]=Aa(l,f[1]),d[1]=ka(p,d[1]),f[1]=Aa(p,f[1]),i=e[a++],n=e[a++];break;case Fa.Q:g=i,P=n,M=e[a++],x=e[a++],S=e[a],v=e[a+1],b=Ua,T=Ya,t=w=t=_=void 0,_=Wi,t=Aa(ka((w=Ui)(g,M,S),1),0),w=Aa(ka(w(P,x,v),1),0),M=_(g,M,S,t),t=_(P,x,v,w),b[0]=ka(g,S,M),b[1]=ka(P,v,t),T[0]=Aa(g,S,M),T[1]=Aa(P,v,t),i=e[a++],n=e[a++];break;case Fa.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++]),I=(E&&(o=ja(S)*w+_,r=Ka(S)*b+x),z=v=X=W=R=O=P=L=A=k=D=C=I=void 0,_),C=x,D=w,k=b,A=S,L=M,P=T,O=Ua,R=Ya,W=ee,X=ie;if((v=Math.abs(A-L))%Oa<1e-4&&1e-4<v)O[0]=I-D,O[1]=C-k,R[0]=I+D,R[1]=C+k;else{Ra[0]=Pa(A)*D+I,Ra[1]=La(A)*k+C,za[0]=Pa(L)*D+I,za[1]=La(L)*k+C,W(O,Ra,za),X(R,Ra,za),(A%=Oa)<0&&(A+=Oa),(L%=Oa)<0&&(L+=Oa),L<A&&!P?L+=Oa:A<L&&P&&(A+=Oa),P&&(v=L,L=A,A=v);for(var z=0;z<L;z+=Math.PI/2)A<z&&(Na[0]=Pa(z)*D+I,Na[1]=La(z)*k+C,W(O,Na,O),X(R,Na,R))}i=ja(M)*w+_,n=Ka(M)*b+x;break;case Fa.R:Ea(o=i=e[a++],r=n=e[a++],o+e[a++],r+e[a++],Ua,Ya);break;case Fa.Z:i=o,n=r}ee(Wa,Wa,Ua),ie(Xa,Xa,Ya)}return 0===a&&(Wa[0]=Wa[1]=Xa[0]=Xa[1]=0),new U(Wa[0],Wa[1],Xa[0]-Wa[0],Xa[1]-Wa[1])},o.prototype._calculateLength=function(){for(var t=this.data,e=this._len,i=this._ux,n=this._uy,o=0,r=0,a=0,s=0,l=(this._pathSegLen||(this._pathSegLen=[]),this._pathSegLen),u=0,h=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 Fa.M:o=a=t[c++],r=s=t[c++];break;case Fa.L:var g=t[c++],y=(_=t[c++])-r;($a(C=g-o)>i||$a(y)>n||c===e-1)&&(f=Math.sqrt(C*C+y*y),o=g,r=_);break;case Fa.C:var m=t[c++],v=t[c++],g=t[c++],_=t[c++],x=t[c++],w=t[c++],f=function(t,e,i,n,o,r,a,s,l){for(var u=t,h=e,c=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=Ei(t,i,o,a,f),f=Ei(e,n,r,s,f),y=g-u,m=f-h;c+=Math.sqrt(y*y+m*m),u=g,h=f}return c}(o,r,m,v,g,_,x,w,10),o=x,r=w;break;case Fa.Q:f=function(t,e,i,n,o,r,a){for(var s=t,l=e,u=0,h=1/a,c=1;c<=a;c++){var p=c*h,d=Wi(t,i,o,p),p=Wi(e,n,r,p),f=d-s,g=p-l;u+=Math.sqrt(f*f+g*g),s=d,l=p}return u}(o,r,m=t[c++],v=t[c++],g=t[c++],_=t[c++],10),o=g,r=_;break;case Fa.A:var x=t[c++],w=t[c++],b=t[c++],S=t[c++],M=t[c++],T=t[c++],I=T+M;c+=1,d&&(a=ja(M)*b+x,s=Ka(M)*S+w),f=qa(b,S)*Za(Ja,Math.abs(T)),o=ja(I)*b+x,r=Ka(I)*S+w;break;case Fa.R:a=o=t[c++],s=r=t[c++];f=2*t[c++]+2*t[c++];break;case Fa.Z:var C=a-o,y=s-r;f=Math.sqrt(C*C+y*y),o=a,r=s}0<=f&&(u+=l[h++]=f)}return this._pathLen=u},o.prototype.rebuildPath=function(t,e){var i,n,o,r,a,s,l,u,h=this.data,N=this._ux,E=this._uy,B=this._len,c=e<1,p=0,d=0,f=0;if(!c||(this._pathSegLen||this._calculateLength(),a=this._pathSegLen,s=e*this._pathLen))t:for(var g=0;g<B;){var y=h[g++],V=1===g;switch(V&&(i=o=h[g],n=r=h[g+1]),y!==Fa.L&&0<f&&(t.lineTo(l,u),f=0),y){case Fa.M:i=o=h[g++],n=r=h[g++],t.moveTo(o,r);break;case Fa.L:var m=h[g++],v=h[g++],_=$a(m-o),x=$a(v-r);if(N<_||E<x){if(c){if(s<p+(z=a[d++])){var w=(s-p)/z;t.lineTo(o*(1-w)+m*w,r*(1-w)+v*w);break t}p+=z}t.lineTo(m,v),o=m,r=v,f=0}else{_=_*_+x*x;f<_&&(l=m,u=v,f=_)}break;case Fa.C:var b=h[g++],S=h[g++],M=h[g++],T=h[g++],x=h[g++],_=h[g++];if(c){if(s<p+(z=a[d++])){Hi(o,b,M,x,w=(s-p)/z,Ha),Hi(r,S,T,_,w,Ga),t.bezierCurveTo(Ha[1],Ga[1],Ha[2],Ga[2],Ha[3],Ga[3]);break t}p+=z}t.bezierCurveTo(b,S,M,T,x,_),o=x,r=_;break;case Fa.Q:b=h[g++],S=h[g++],M=h[g++],T=h[g++];if(c){if(s<p+(z=a[d++])){Yi(o,b,M,w=(s-p)/z,Ha),Yi(r,S,T,w,Ga),t.quadraticCurveTo(Ha[1],Ga[1],Ha[2],Ga[2]);break t}p+=z}t.quadraticCurveTo(b,S,M,T),o=M,r=T;break;case Fa.A:var I=h[g++],C=h[g++],D=h[g++],k=h[g++],A=h[g++],L=h[g++],P=h[g++],F=!h[g++],H=k<D?D:k,O=.001<$a(D-k),R=A+L,G=!1;if(c&&(s<p+(z=a[d++])&&(R=A+L*(s-p)/z,G=!0),p+=z),O&&t.ellipse?t.ellipse(I,C,D,k,P,A,R,F):t.arc(I,C,H,A,R,F),G)break t;V&&(i=ja(A)*D+I,n=Ka(A)*k+C),o=ja(R)*D+I,r=Ka(R)*k+C;break;case Fa.R:i=o=h[g],n=r=h[g+1],m=h[g++],v=h[g++];var z,L=h[g++],O=h[g++];if(c){if(s<p+(z=a[d++])){P=s-p;t.moveTo(m,v),t.lineTo(m+Za(P,L),v),0<(P-=L)&&t.lineTo(m+L,v+Za(P,O)),0<(P-=O)&&t.lineTo(m+qa(L-P,0),v+O),0<(P-=L)&&t.lineTo(m,v+qa(O-P,0));break t}p+=z}t.rect(m,v,L,O);break;case Fa.Z:if(c){if(s<p+(z=a[d++])){w=(s-p)/z;t.lineTo(o*(1-w)+i*w,r*(1-w)+n*w);break t}p+=z}t.closePath(),o=i,r=n}}},o.prototype.clone=function(){var t=new o,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},o.CMD=Fa,o.initDefaultProps=((_u=o.prototype)._saveData=!0,_u._ux=0,_u._uy=0,_u._pendingPtDist=0,void(_u._version=0));var ns=o;function o(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}function os(t,e,i,n,o,r,a){var s;if(0!==o)return s=0,!(e+(o=o)<a&&n+o<a||a<e-o&&a<n-o||t+o<r&&i+o<r||r<t-o&&r<i-o)&&(t===i?Math.abs(r-t)<=o/2:(r=(s=(e-n)/(t-i))*r-a+(t*n-i*e)/(t-i))*r/(s*s+1)<=o/2*o/2)}var rs=2*Math.PI;function as(t){return(t%=rs)<0&&(t+=rs),t}var ss=2*Math.PI;function ls(t,e,i,n,o,r){return e<r&&n<r||r<e&&r<n||n===e?0:(i=(r=(r-e)/(n-e))*(i-t)+t)===o?1/0:o<i?1!=r&&0!=r?n<e?1:-1:n<e?.5:-.5:0}var us=ns.CMD,hs=2*Math.PI,cs=1e-4;var ps=[-1,-1,-1],ds=[-1,-1];function fs(t,e,i,n,o,r,a,s,l,u){if(e<u&&n<u&&r<u&&s<u||u<e&&u<n&&u<r&&u<s)return 0;var h=Vi(e,n,r,s,u,ps);if(0===h)return 0;for(var c,p=0,d=-1,f=void 0,g=void 0,y=0;y<h;y++){var m=ps[y],v=0===m||1===m?.5:1;Ei(t,i,o,a,m)<l||(d<0&&(d=Fi(e,n,r,s,ds),ds[1]<ds[0]&&1<d&&(c=void 0,c=ds[0],ds[0]=ds[1],ds[1]=c),f=Ei(e,n,r,s,ds[0]),1<d)&&(g=Ei(e,n,r,s,ds[1])),2===d?m<ds[0]?p+=f<e?v:-v:m<ds[1]?p+=g<f?v:-v:p+=s<g?v:-v:m<ds[0]?p+=f<e?v:-v:p+=s<f?v:-v)}return p}function gs(t,e,i,n,o,r,a,s){if(e<s&&n<s&&r<s||s<e&&s<n&&s<r)return 0;c=ps,h=(l=e)-2*(u=n)+(h=r),u=2*(u-l),l-=s=s,s=0,zi(h)?Ni(u)&&0<=(p=-l/u)&&p<=1&&(c[s++]=p):zi(l=u*u-4*h*l)?0<=(p=-u/(2*h))&&p<=1&&(c[s++]=p):0<l&&(d=(-u-(l=Di(l)))/(2*h),0<=(p=(-u+l)/(2*h))&&p<=1&&(c[s++]=p),0<=d)&&d<=1&&(c[s++]=d);var l,u,h,c,p,d,f=s;if(0===f)return 0;var g=Ui(e,n,r);if(0<=g&&g<=1){for(var y=0,m=Wi(e,n,r,g),v=0;v<f;v++){var _=0===ps[v]||1===ps[v]?.5:1;Wi(t,i,o,ps[v])<a||(ps[v]<g?y+=m<e?_:-_:y+=r<m?_:-_)}return y}return _=0===ps[0]||1===ps[0]?.5:1,Wi(t,i,o,ps[0])<a?0:r<e?_:-_}function ys(t,e,i,n,o){for(var r,a=t.data,s=t.len(),l=0,u=0,h=0,c=0,p=0,d=0;d<s;){var f=a[d++],g=1===d;switch(f===us.M&&1<d&&(i||(l+=ls(u,h,c,p,n,o))),g&&(c=u=a[d],p=h=a[d+1]),f){case us.M:u=c=a[d++],h=p=a[d++];break;case us.L:if(i){if(os(u,h,a[d],a[d+1],e,n,o))return!0}else l+=ls(u,h,a[d],a[d+1],n,o)||0;u=a[d++],h=a[d++];break;case us.C:if(i){if(function(t,e,i,n,o,r,a,s,l,u,h){if(0!==l)return!(e+(l=l)<h&&n+l<h&&r+l<h&&s+l<h||h<e-l&&h<n-l&&h<r-l&&h<s-l||t+l<u&&i+l<u&&o+l<u&&a+l<u||u<t-l&&u<i-l&&u<o-l&&u<a-l)&&Gi(t,e,i,n,o,r,a,s,u,h,null)<=l/2}(u,h,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,o))return!0}else l+=fs(u,h,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,o)||0;u=a[d++],h=a[d++];break;case us.Q:if(i){if(function(t,e,i,n,o,r,a,s,l){if(0!==a)return!(e+(a=a)<l&&n+a<l&&r+a<l||l<e-a&&l<n-a&&l<r-a||t+a<s&&i+a<s&&o+a<s||s<t-a&&s<i-a&&s<o-a)&&Zi(t,e,i,n,o,r,s,l,null)<=a/2}(u,h,a[d++],a[d++],a[d],a[d+1],e,n,o))return!0}else l+=gs(u,h,a[d++],a[d++],a[d],a[d+1],n,o)||0;u=a[d++],h=a[d++];break;case us.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+=ls(u,h,S,M,n,o),(n-y)*_/v+y);if(i){if(function(t,e,i,n,o,r,a,s,l){if(0!==a)return a=a,s-=t,l-=e,!(i<(t=Math.sqrt(s*s+l*l))-a||t+a<i)&&(Math.abs(n-o)%ss<1e-4||((o=r?(e=n,n=as(o),as(e)):(n=as(n),as(o)))<n&&(o+=ss),(t=Math.atan2(l,s))<0&&(t+=ss),n<=t&&t<=o)||n<=t+ss&&t+ss<=o)}(y,m,_,x,x+w,b,e,T,o))return!0}else l+=function(t,e,i,n,o,r,a,s){if(i<(s-=e)||s<-i)return 0;var e=Math.sqrt(i*i-s*s);if(ps[0]=-e,ps[1]=e,(i=Math.abs(n-o))<1e-4)return 0;if(hs-1e-4<=i)return o=hs,h=r?1:-1,a>=ps[n=0]+t&&a<=ps[1]+t?h:0;o<n&&(e=n,n=o,o=e),n<0&&(n+=hs,o+=hs);for(var l=0,u=0;u<2;u++){var h,c=ps[u];a<c+t&&(h=r?1:-1,n<=(c=(c=Math.atan2(s,c))<0?hs+c:c)&&c<=o||n<=c+hs&&c+hs<=o)&&(l+=h=c>Math.PI/2&&c<1.5*Math.PI?-h:h)}return l}(y,m,_,x,x+w,b,T,o);u=Math.cos(x+w)*v+y,h=Math.sin(x+w)*_+m;break;case us.R:c=u=a[d++],p=h=a[d++];if(S=c+a[d++],M=p+a[d++],i){if(os(c,p,S,p,e,n,o)||os(S,p,S,M,e,n,o)||os(S,M,c,M,e,n,o)||os(c,M,c,p,e,n,o))return!0}else l=(l+=ls(S,p,S,M,n,o))+ls(c,M,c,p,n,o);break;case us.Z:if(i){if(os(u,h,c,p,e,n,o))return!0}else l+=ls(u,h,c,p,n,o);u=c,h=p}}return i||(t=h,r=p,Math.abs(t-r)<cs)||(l+=ls(u,h,c,p,n,o)||0),0!==l}var ms,vs=E({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Sa),_s={style:E({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ma.style)},xs=Mo.concat(["invisible","culling","z","z2","zlevel","parent"]),ws=(u(a,ms=e),a.prototype.update=function(){var e=this,t=(ms.prototype.update.call(this),this.style);if(t.decal){var i,n=this._decalEl=this._decalEl||new a,o=(n.buildPath===a.prototype.buildPath&&(n.buildPath=function(t){e.buildPath(t,e.shape)}),n.silent=!0,n.style);for(i in t)o[i]!==t[i]&&(o[i]=t[i]);o.fill=t.fill?t.decal:null,o.decal=null,o.shadowColor=null,t.strokeFirst&&(o.stroke=null);for(var r=0;r<xs.length;++r)n[xs[r]]=this[xs[r]];n.__dirty|=vi}else this._decalEl&&(this._decalEl=null)},a.prototype.getDecalElement=function(){return this._decalEl},a.prototype._init=function(t){var e=ht(t),i=(this.shape=this.getDefaultShape(),this.getDefaultStyle());i&&this.useStyle(i);for(var n=0;n<e.length;n++){var o=e[n],r=t[o];"style"===o?this.style?P(this.style,r):this.useStyle(r):"shape"===o?P(this.shape,r):ms.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(F(e))return.5<(t=Tn(e,0))?fo:.2<t?"#eee":go;if(e)return go}return fo},a.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(F(e)){var i=this.__zr;if(!(!i||!i.isDarkMode())==Tn(t,0)<.4)return e}},a.prototype.buildPath=function(t,e,i){},a.prototype.pathUpdated=function(){this.__dirty&=~_i},a.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},a.prototype.createPathProxy=function(){this.path=new ns(!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,i=this._rect,n=this.style,o=!i;return o&&(t=!1,this.path||(t=!0,this.createPathProxy()),e=this.path,(t||this.__dirty&_i)&&(e.beginPath(),this.buildPath(e,this.shape,!1),this.pathUpdated()),i=e.getBoundingRect()),this._rect=i,this.hasStroke()&&this.path&&0<this.path.len()?(t=this._rectStroke||(this._rectStroke=i.clone()),(this.__dirty||o)&&(t.copy(i),e=n.strokeNoScale?this.getLineScale():1,o=n.lineWidth,this.hasFill()||(n=this.strokeContainThreshold,o=Math.max(o,null==n?4:n)),1e-10<e)&&(t.width+=o/e,t.height+=o/e,t.x-=o/e/2,t.y-=o/e/2),t):i},a.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),o=this.style;if(t=i[0],e=i[1],n.contain(t,e)){i=this.path;if(this.hasStroke()){n=o.lineWidth,o=o.strokeNoScale?this.getLineScale():1;if(1e-10<o&&(this.hasFill()||(n=Math.max(n,this.strokeContainThreshold)),ys(i,n/o,!0,t,e)))return!0}if(this.hasFill())return ys(i,0,!1,t,e)}return!1},a.prototype.dirtyShape=function(){this.__dirty|=_i,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):ms.prototype.attrKV.call(this,t,e)},a.prototype.setShape=function(t,e){var i=(i=this.shape)||(this.shape={});return"string"==typeof t?i[t]=e:P(i,t),this.dirtyShape(),this},a.prototype.shapeChanged=function(){return!!(this.__dirty&_i)},a.prototype.createStyle=function(t){return zt(vs,t)},a.prototype._innerSaveToNormal=function(t){ms.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.shape&&!e.shape&&(e.shape=P({},this.shape))},a.prototype._applyStateObj=function(t,e,i,n,o,r){ms.prototype._applyStateObj.call(this,t,e,i,n,o,r);var a,s=!(e&&n);if(e&&e.shape?o?n?a=e.shape:(a=P({},i.shape),P(a,e.shape)):(a=P({},(n?this:i).shape),P(a,e.shape)):s&&(a=i.shape),a)if(o){this.shape=P({},this.shape);for(var l={},u=ht(a),h=0;h<u.length;h++){var c=u[h];"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,i=ms.prototype._mergeStates.call(this,t),n=0;n<t.length;n++){var o=t[n];o.shape&&this._mergeStyle(e=e||{},o.shape)}return e&&(i.shape=e),i},a.prototype.getAnimationStyleProps=function(){return _s},a.prototype.isZeroArea=function(){return!1},a.extend=function(i){u(o,n=a),o.prototype.getDefaultStyle=function(){return y(i.style)},o.prototype.getDefaultShape=function(){return y(i.shape)};var n,t,e=o;function o(t){var e=n.call(this,t)||this;return i.init&&i.init.call(e,t),e}for(t in i)"function"==typeof i[t]&&(e.prototype[t]=i[t]);return e},a.initDefaultProps=((_u=a.prototype).type="path",_u.strokeContainThreshold=5,_u.segmentIgnoreThreshold=0,_u.subPixelOptimize=!1,_u.autoBatch=!1,void(_u.__dirty=2|vi|_i)),a);function a(t){return ms.call(this,t)||this}var bs,Ss=E({strokeFirst:!0,font:j,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},vs),Ms=(u(Ts,bs=e),Ts.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&0<t.lineWidth},Ts.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},Ts.prototype.createStyle=function(t){return zt(Ss,t)},Ts.prototype.setBoundingRect=function(t){this._rect=t},Ts.prototype.getBoundingRect=function(){var t,e=this.style;return this._rect||(null!=(t=e.text)?t+="":t="",(t=Do(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},Ts.initDefaultProps=void(Ts.prototype.dirtyRectTolerance=10),Ts);function Ts(){return null!==bs&&bs.apply(this,arguments)||this}Ms.prototype.type="tspan";var Is=E({x:0,y:0},Sa),Cs={style:E({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ma.style)};u(As,Ds=e),As.prototype.createStyle=function(t){return zt(Is,t)},As.prototype._getSize=function(t){var e,i=this.style,n=i[t];return null!=n?n:(n=(n=i.image)&&"string"!=typeof n&&n.width&&n.height?i.image:this.__image)?null==(e=i[i="width"===t?"height":"width"])?n[t]:n[t]/n[i]*e:0},As.prototype.getWidth=function(){return this._getSize("width")},As.prototype.getHeight=function(){return this._getSize("height")},As.prototype.getAnimationStyleProps=function(){return Cs},As.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new U(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect};var Ds,ks=As;function As(){return null!==Ds&&Ds.apply(this,arguments)||this}ks.prototype.type="image";var Ls=Math.round;function Ps(t,e,i){var n,o,r;if(e)return n=e.x1,o=e.x2,r=e.y1,e=e.y2,t.x1=n,t.x2=o,t.y1=r,t.y2=e,(i=i&&i.lineWidth)&&(Ls(2*n)===Ls(2*o)&&(t.x1=t.x2=Rs(n,i,!0)),Ls(2*r)===Ls(2*e))&&(t.y1=t.y2=Rs(r,i,!0)),t}function Os(t,e,i){var n,o,r;if(e)return n=e.x,o=e.y,r=e.width,e=e.height,t.x=n,t.y=o,t.width=r,t.height=e,(i=i&&i.lineWidth)&&(t.x=Rs(n,i,!0),t.y=Rs(o,i,!0),t.width=Math.max(Rs(n+r,i,!1)-t.x,0===r?0:1),t.height=Math.max(Rs(o+e,i,!1)-t.y,0===e?0:1)),t}function Rs(t,e,i){var n;return e?((n=Ls(2*t))+Ls(e))%2==0?n/2:(n+(i?1:-1))/2:t}var zs,Ns=function(){this.x=0,this.y=0,this.width=0,this.height=0},Es={},Bs=(u(Vs,zs=ws),Vs.prototype.getDefaultShape=function(){return new Ns},Vs.prototype.buildPath=function(t,e){var i,n,o,r,a,s,l,u,h,c,p,d,f,g;this.subPixelOptimize?(i=(a=Os(Es,e,this.style)).x,n=a.y,o=a.width,r=a.height,a.r=e.r,e=a):(i=e.x,n=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=u=h=e:e instanceof Array?1===e.length?s=l=u=h=e[0]:2===e.length?(s=u=e[0],l=h=e[1]):3===e.length?(s=e[0],l=h=e[1],u=e[2]):(s=e[0],l=e[1],u=e[2],h=e[3]):s=l=u=h=0,f<s+l&&(s*=f/(c=s+l),l*=f/c),f<u+h&&(u*=f/(c=u+h),h*=f/c),g<l+u&&(l*=g/(c=l+u),u*=g/c),g<s+h&&(s*=g/(c=s+h),h*=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-u),0!==u&&a.arc(p+f-u,d+g-u,u,0,Math.PI/2),a.lineTo(p+h,d+g),0!==h&&a.arc(p+h,d+g-h,h,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(i,n,o,r)},Vs.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},Vs);function Vs(t){return zs.call(this,t)||this}Bs.prototype.type="rect";var Fs,Hs={fill:"#000"},Gs={style:E({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},Ma.style)},Ws=(u(Xs,Fs=e),Xs.prototype.childrenRef=function(){return this._children},Xs.prototype.update=function(){Fs.prototype.update.call(this),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}},Xs.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):Fs.prototype.updateTransform.call(this)},Xs.prototype.getLocalTransform=function(t){var e=this.innerTransformable;return e?e.getLocalTransform(t):Fs.prototype.getLocalTransform.call(this,t)},Xs.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),Fs.prototype.getComputedTransform.call(this)},Xs.prototype._updateSubTexts=function(){var t;this._childCursor=0,js(t=this.style),O(t.rich,js),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},Xs.prototype.addSelfToZr=function(t){Fs.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=t},Xs.prototype.removeSelfFromZr=function(t){Fs.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=null},Xs.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new U(0,0,0,0),e=this._children,i=[],n=null,o=0;o<e.length;o++){var r=e[o],a=r.getBoundingRect(),r=r.getLocalTransform(i);r?(t.copy(a),t.applyTransform(r),(n=n||t.clone()).union(t)):(n=n||a.clone()).union(a)}this._rect=n||t}return this._rect},Xs.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Hs},Xs.prototype.setTextContent=function(t){},Xs.prototype._mergeStyle=function(t,e){var i,n;return e&&(i=e.rich,n=t.rich||i&&{},P(t,e),i&&n?(this._mergeRich(n,i),t.rich=n):n&&(t.rich=n)),t},Xs.prototype._mergeRich=function(t,e){for(var i=ht(e),n=0;n<i.length;n++){var o=i[n];t[o]=t[o]||{},P(t[o],e[o])}},Xs.prototype.getAnimationStyleProps=function(){return Gs},Xs.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},Xs.prototype._updatePlainTexts=function(){for(var t,e=this.style,i=e.font||j,n=e.padding,o=function(t,e){null!=t&&(t+="");var i,n=e.overflow,o=e.padding,r=e.font,a="truncate"===n,s=Lo(r),l=z(e.lineHeight,s),u=!!e.backgroundColor,h="truncate"===e.lineOverflow,c=e.width,n=(i=null==c||"break"!==n&&"breakAll"!==n?t?t.split("\n"):[]:t?xa(t,e.font,c,"breakAll"===n,0).lines:[]).length*l,p=z(e.height,n);if(p<n&&h&&(h=Math.floor(p/l),i=i.slice(0,h)),t&&a&&null!=c)for(var d=pa(c,r,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),f=0;f<i.length;f++)i[f]=da(i[f],d);for(var h=p,g=0,f=0;f<i.length;f++)g=Math.max(Io(i[f],r),g);return null==c&&(c=g),t=g,o&&(h+=o[0]+o[2],t+=o[1]+o[3],c+=o[1]+o[3]),{lines:i,height:p,outerWidth:t=u?c:t,outerHeight:h,lineHeight:l,calculatedLineHeight:s,contentWidth:g,contentHeight:n,width:c}}(Js(e),e),r=tl(e),a=!!e.backgroundColor,s=o.outerHeight,l=o.outerWidth,u=o.contentWidth,h=o.lines,c=o.lineHeight,p=this._defaultStyle,d=e.x||0,f=e.y||0,g=e.align||p.align||"left",y=e.verticalAlign||p.verticalAlign||"top",m=d,v=Ao(f,o.contentHeight,y),_=((r||n)&&(t=ko(d,l,g),f=Ao(f,s,y),r)&&this._renderBackground(e,e,t,f,l,s),v+=c/2,n&&(m=Qs(d,g,n),"top"===y?v+=n[0]:"bottom"===y&&(v-=n[2])),0),r=!1,x=($s(("fill"in e?e:(r=!0,p)).fill)),w=(Ks("stroke"in e?e.stroke:a||p.autoStroke&&!r?null:(_=2,p.stroke))),b=0<e.textShadowBlur,S=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),M=o.calculatedLineHeight,T=0;T<h.length;T++){var I=this._getOrCreateChild(Ms),C=I.createStyle();I.useStyle(C),C.text=h[T],C.x=m,C.y=v,g&&(C.textAlign=g),C.textBaseline="middle",C.opacity=e.opacity,C.strokeFirst=!0,b&&(C.shadowBlur=e.textShadowBlur||0,C.shadowColor=e.textShadowColor||"transparent",C.shadowOffsetX=e.textShadowOffsetX||0,C.shadowOffsetY=e.textShadowOffsetY||0),C.stroke=w,C.fill=x,w&&(C.lineWidth=e.lineWidth||_,C.lineDash=e.lineDash,C.lineDashOffset=e.lineDashOffset||0),C.font=i,qs(C,e),v+=c,S&&I.setBoundingRect(new U(ko(C.x,e.width,C.textAlign),Ao(C.y,M,C.textBaseline),u,M))}},Xs.prototype._updateRichTexts=function(){for(var t=this.style,e=ma(Js(t),t),i=e.width,n=e.outerWidth,o=e.outerHeight,r=t.padding,a=t.x||0,s=t.y||0,l=this._defaultStyle,u=t.align||l.align,l=t.verticalAlign||l.verticalAlign,a=ko(a,n,u),u=Ao(s,o,l),h=a,c=u,p=(r&&(h+=r[3],c+=r[0]),h+i),d=(tl(t)&&this._renderBackground(t,t,a,u,n,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=h,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+=(i-(w-h)-(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}},Xs.prototype._placeToken=function(t,e,i,n,o,r,a){var s=e.rich[t.styleName]||{},l=(s.text=t.text,t.verticalAlign),u=n+i/2;"top"===l?u=n+t.height/2:"bottom"===l&&(u=n+i-t.height/2);!t.isLineHolder&&tl(s)&&this._renderBackground(s,e,"right"===r?o-t.width:"center"===r?o-t.width/2:o,u-t.height/2,t.width,t.height);var l=!!s.backgroundColor,n=t.textPadding,i=(n&&(o=Qs(o,r,n),u-=t.height/2-n[0]-t.innerHeight/2),this._getOrCreateChild(Ms)),n=i.createStyle(),h=(i.useStyle(n),this._defaultStyle),c=!1,p=0,d=$s(("fill"in s?s:"fill"in e?e:(c=!0,h)).fill),l=Ks("stroke"in s?s.stroke:"stroke"in e?e.stroke:l||a||h.autoStroke&&!c?null:(p=2,h.stroke)),a=0<s.textShadowBlur||0<e.textShadowBlur,c=(n.text=t.text,n.x=o,n.y=u,a&&(n.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,n.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",n.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,n.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),n.textAlign=r,n.textBaseline="middle",n.font=t.font||j,n.opacity=wt(s.opacity,e.opacity,1),qs(n,s),l&&(n.lineWidth=wt(s.lineWidth,e.lineWidth,p),n.lineDash=z(s.lineDash,e.lineDash),n.lineDashOffset=e.lineDashOffset||0,n.stroke=l),d&&(n.fill=d),t.contentWidth),h=t.contentHeight;i.setBoundingRect(new U(ko(n.x,c,n.textAlign),Ao(n.y,h,n.textBaseline),c,h))},Xs.prototype._renderBackground=function(t,e,i,n,o,r){var a,s,l,u,h=t.backgroundColor,c=t.borderWidth,p=t.borderColor,d=h&&h.image,f=h&&!d,g=t.borderRadius,y=this,g=((f||t.lineHeight||c&&p)&&((a=this._getOrCreateChild(Bs)).useStyle(a.createStyle()),a.style.fill=null,(l=a.shape).x=i,l.y=n,l.width=o,l.height=r,l.r=g,a.dirtyShape()),f?((u=a.style).fill=h||null,u.fillOpacity=z(t.fillOpacity,1)):d&&((s=this._getOrCreateChild(ks)).onload=function(){y.dirtyStyle()},(l=s.style).image=h.image,l.x=i,l.y=n,l.width=o,l.height=r),c&&p&&((u=a.style).lineWidth=c,u.stroke=p,u.strokeOpacity=z(t.strokeOpacity,1),u.lineDash=t.borderDash,u.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill())&&a.hasStroke()&&(u.strokeFirst=!0,u.lineWidth*=2),(a||s).style);g.shadowBlur=t.shadowBlur||0,g.shadowColor=t.shadowColor||"transparent",g.shadowOffsetX=t.shadowOffsetX||0,g.shadowOffsetY=t.shadowOffsetY||0,g.opacity=wt(t.opacity,e.opacity,1)},Xs.makeFont=function(t){var e,i="";return(i=null!=(e=t).fontSize||e.fontFamily||e.fontWeight?[t.fontStyle,t.fontWeight,"string"!=typeof(e=t.fontSize)||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?"12px":e+"px":e,t.fontFamily||"sans-serif"].join(" "):i)&&Tt(i)||t.textFont||t.font},Xs);function Xs(t){var e=Fs.call(this)||this;return e.type="text",e._children=[],e._defaultStyle=Hs,e.attr(t),e}var Us={left:!0,right:1,center:1},Ys={top:1,bottom:1,middle:1},Zs=["fontStyle","fontWeight","fontSize","fontFamily"];function qs(t,e){for(var i=0;i<Zs.length;i++){var n=Zs[i],o=e[n];null!=o&&(t[n]=o)}}function js(t){var e;t&&(t.font=Ws.makeFont(t),e=t.align,t.align=null==(e="middle"===e?"center":e)||Us[e]?e:"left",e=t.verticalAlign,t.verticalAlign=null==(e="center"===e?"middle":e)||Ys[e]?e:"top",t.padding)&&(t.padding=St(t.padding))}function Ks(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function $s(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Qs(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}function Js(t){t=t.text;return null!=t&&(t+=""),t}function tl(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var k=Er(),el=1,il={},nl=Er(),ol=Er(),rl=0,al=1,sl=2,ll=["emphasis","blur","select"],ul=["normal","emphasis","blur","select"],hl="highlight",cl="downplay",pl="select",dl="unselect",fl="toggleSelect";function gl(t){return null!=t&&"none"!==t}function yl(t,e,i){t.onHoverStateChange&&(t.hoverState||0)!==i&&t.onHoverStateChange(e),t.hoverState=i}function ml(t){yl(t,"emphasis",sl)}function vl(t){t.hoverState===sl&&yl(t,"normal",rl)}function _l(t){yl(t,"blur",al)}function xl(t){t.hoverState===al&&yl(t,"normal",rl)}function wl(t){t.selected=!0}function bl(t){t.selected=!1}function Sl(t,e,i){e(t,i)}function Ml(t,e,i){Sl(t,e,i),t.isGroup&&t.traverse(function(t){Sl(t,e,i)})}function Tl(t,e){switch(e){case"emphasis":t.hoverState=sl;break;case"normal":t.hoverState=rl;break;case"blur":t.hoverState=al;break;case"select":t.selected=!0}}function Il(t,e,i){var n=0<=C(t.currentStates,e),o=t.style.opacity,t=n?null:function(t,e,i,n){for(var o=t.style,r={},a=0;a<e.length;a++){var s=e[a],l=o[s];r[s]=null==l?n&&n[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(i)<0&&"style"===u.targetName&&u.saveTo(r,e)}return r}(t,["opacity"],e,{opacity:1}),e=(i=i||{}).style||{};return null==e.opacity&&(i=P({},i),e=P({opacity:n?o:.1*t.opacity},e),i.style=e),i}function Cl(t,e){var i,n,o,r,a,s=this.states[t];if(this.style){if("emphasis"===t)return i=this,n=s,e=(e=e)&&0<=C(e,"select"),a=!1,i instanceof ws&&(o=nl(i),r=e&&o.selectFill||o.normalFill,e=e&&o.selectStroke||o.normalStroke,gl(r)||gl(e))&&("inherit"===(o=(n=n||{}).style||{}).fill?(a=!0,n=P({},n),(o=P({},o)).fill=r):!gl(o.fill)&&gl(r)?(a=!0,n=P({},n),(o=P({},o)).fill=Cn(r)):!gl(o.stroke)&&gl(e)&&(a||(n=P({},n),o=P({},o)),o.stroke=Cn(e)),n.style=o),n&&null==n.z2&&(a||(n=P({},n)),r=i.z2EmphasisLift,n.z2=i.z2+(null!=r?r:10)),n;if("blur"===t)return Il(this,t,s);if("select"===t)return e=this,(o=s)&&null==o.z2&&(o=P({},o),a=e.z2SelectLift,o.z2=e.z2+(null!=a?a:9)),o}return s}function Dl(t){t.stateProxy=Cl;var e=t.getTextContent(),t=t.getTextGuideLine();e&&(e.stateProxy=Cl),t&&(t.stateProxy=Cl)}function kl(t,e){El(t,e)||t.__highByOuter||Ml(t,ml)}function Al(t,e){El(t,e)||t.__highByOuter||Ml(t,vl)}function Ll(t,e){t.__highByOuter|=1<<(e||0),Ml(t,ml)}function Pl(t,e){(t.__highByOuter&=~(1<<(e||0)))||Ml(t,vl)}function Ol(t){Ml(t,_l)}function Rl(t){Ml(t,xl)}function zl(t){Ml(t,wl)}function Nl(t){Ml(t,bl)}function El(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Bl(o){var e=o.getModel(),r=[],a=[];e.eachComponent(function(t,e){var i=ol(e),t="series"===t,n=t?o.getViewOfSeriesModel(e):o.getViewOfComponentModel(e);t||a.push(n),i.isBlured&&(n.group.traverse(function(t){xl(t)}),t)&&r.push(e),i.isBlured=!1}),O(a,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(r,!1,e)})}function Vl(t,r,a,s){var l,u,h,i=s.getModel();function c(t,e){for(var i=0;i<e.length;i++){var n=t.getItemGraphicEl(e[i]);n&&Rl(n)}}a=a||"coordinateSystem",null!=t&&r&&"none"!==r&&(l=i.getSeriesByIndex(t),(u=l.coordinateSystem)&&u.master&&(u=u.master),h=[],i.eachSeries(function(t){var e=l===t,i=t.coordinateSystem,i=(i=i&&i.master?i.master:i)&&u?i===u:e;if(!("series"===a&&!e||"coordinateSystem"===a&&!i||"series"===r&&e)){if(s.getViewOfSeriesModel(t).group.traverse(function(t){t.__highByOuter&&e&&"self"===r||_l(t)}),st(r))c(t.getData(),r);else if(R(r))for(var n=ht(r),o=0;o<n.length;o++)c(t.getData(n[o]),r[n[o]]);h.push(t),ol(t).isBlured=!0}}),i.eachComponent(function(t,e){"series"!==t&&(t=s.getViewOfComponentModel(e))&&t.toggleBlurSeries&&t.toggleBlurSeries(h,!0,i)}))}function Fl(t,e,i){var n;null!=t&&null!=e&&(t=i.getModel().getComponent(t,e))&&(ol(t).isBlured=!0,n=i.getViewOfComponentModel(t))&&n.focusBlurEnabled&&n.group.traverse(function(t){_l(t)})}function Hl(t,e,i,n){var o={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==i)return o;t=n.getModel().getComponent(t,e);if(!t)return o;e=n.getViewOfComponentModel(t);if(!e||!e.findHighDownDispatchers)return o;for(var r,a=e.findHighDownDispatchers(i),s=0;s<a.length;s++)if("self"===k(a[s]).focus){r=!0;break}return{focusSelf:r,dispatchers:a}}function Gl(n){O(n.getAllData(),function(t){var e=t.data,i=t.type;e.eachItemGraphicEl(function(t,e){(n.isSelected(e,i)?zl:Nl)(t)})})}function Wl(t,e,i){ql(t,!0),Ml(t,Dl);t=k(t),null!=e?(t.focus=e,t.blurScope=i):t.focus&&(t.focus=null)}function Xl(t,e,i,n){n?ql(t,!1):Wl(t,e,i)}var Ul=["emphasis","blur","select"],Yl={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Zl(t,e,i,n){i=i||"itemStyle";for(var o=0;o<Ul.length;o++){var r=Ul[o],a=e.getModel([r,i]);t.ensureState(r).style=n?n(a):a[Yl[i]]()}}function ql(t,e){var e=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),e&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!e)}function jl(t){return!(!t||!t.__highDownDispatcher)}function Kl(t){t=t.type;return t===pl||t===dl||t===fl}function $l(t){t=t.type;return t===hl||t===cl}var Ql=ns.CMD,Jl=[[],[],[]],tu=Math.sqrt,eu=Math.atan2;var iu=Math.sqrt,nu=Math.sin,ou=Math.cos,ru=Math.PI;function au(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function su(t,e){return(t[0]*e[0]+t[1]*e[1])/(au(t)*au(e))}function lu(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(su(t,e))}function uu(t,e,i,n,o,r,a,s,l,u,h){var l=l*(ru/180),c=ou(l)*(t-i)/2+nu(l)*(e-n)/2,p=-1*nu(l)*(t-i)/2+ou(l)*(e-n)/2,d=c*c/(a*a)+p*p/(s*s),d=(1<d&&(a*=iu(d),s*=iu(d)),(o===r?-1:1)*iu((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+i)/2+ou(l)*o-nu(l)*d,i=(e+n)/2+nu(l)*o+ou(l)*d,e=lu([1,0],[(c-o)/a,(p-d)/s]),n=[(c-o)/a,(p-d)/s],c=[(-1*c-o)/a,(-1*p-d)/s],o=lu(n,c);su(n,c)<=-1&&(o=ru),(o=1<=su(n,c)?0:o)<0&&(p=Math.round(o/ru*1e6)/1e6,o=2*ru+p%2*ru),h.addData(u,t,i,a,s,e,o,l,r)}var hu=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,cu=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;u(fu,pu=ws),fu.prototype.applyTransform=function(t){};var pu,du=fu;function fu(){return null!==pu&&pu.apply(this,arguments)||this}function gu(t){return null!=t.setData}function yu(t,e){var S=function(t){var e=new ns;if(t){var i,n=0,o=0,r=n,a=o,s=ns.CMD,l=t.match(hu);if(l){for(var u=0;u<l.length;u++){for(var h=l[u],c=h.charAt(0),p=void 0,d=h.match(cu)||[],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=n,T=o,I=void 0,C=void 0;switch(c){case"l":n+=d[y++],o+=d[y++],p=s.L,e.addData(p,n,o);break;case"L":n=d[y++],o=d[y++],p=s.L,e.addData(p,n,o);break;case"m":n+=d[y++],o+=d[y++],p=s.M,e.addData(p,n,o),r=n,a=o,c="l";break;case"M":n=d[y++],o=d[y++],p=s.M,e.addData(p,n,o),r=n,a=o,c="L";break;case"h":n+=d[y++],p=s.L,e.addData(p,n,o);break;case"H":n=d[y++],p=s.L,e.addData(p,n,o);break;case"v":o+=d[y++],p=s.L,e.addData(p,n,o);break;case"V":o=d[y++],p=s.L,e.addData(p,n,o);break;case"C":p=s.C,e.addData(p,d[y++],d[y++],d[y++],d[y++],d[y++],d[y++]),n=d[y-2],o=d[y-1];break;case"c":p=s.C,e.addData(p,d[y++]+n,d[y++]+o,d[y++]+n,d[y++]+o,d[y++]+n,d[y++]+o),n+=d[y-2],o+=d[y-1];break;case"S":m=n,v=o,I=e.len(),C=e.data,i===s.C&&(m+=n-C[I-4],v+=o-C[I-3]),p=s.C,M=d[y++],T=d[y++],n=d[y++],o=d[y++],e.addData(p,m,v,M,T,n,o);break;case"s":m=n,v=o,I=e.len(),C=e.data,i===s.C&&(m+=n-C[I-4],v+=o-C[I-3]),p=s.C,M=n+d[y++],T=o+d[y++],n+=d[y++],o+=d[y++],e.addData(p,m,v,M,T,n,o);break;case"Q":M=d[y++],T=d[y++],n=d[y++],o=d[y++],p=s.Q,e.addData(p,M,T,n,o);break;case"q":M=d[y++]+n,T=d[y++]+o,n+=d[y++],o+=d[y++],p=s.Q,e.addData(p,M,T,n,o);break;case"T":m=n,v=o,I=e.len(),C=e.data,i===s.Q&&(m+=n-C[I-4],v+=o-C[I-3]),n=d[y++],o=d[y++],p=s.Q,e.addData(p,m,v,n,o);break;case"t":m=n,v=o,I=e.len(),C=e.data,i===s.Q&&(m+=n-C[I-4],v+=o-C[I-3]),n+=d[y++],o+=d[y++],p=s.Q,e.addData(p,m,v,n,o);break;case"A":_=d[y++],x=d[y++],w=d[y++],b=d[y++],S=d[y++],uu(M=n,T=o,n=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++],uu(M=n,T=o,n+=d[y++],o+=d[y++],b,S,_,x,w,p=s.A,e)}}"z"!==c&&"Z"!==c||(p=s.Z,e.addData(p),n=r,o=a),i=p}e.toStatic()}}return e}(t),t=P({},e);return t.buildPath=function(t){var e;gu(t)?(t.setData(S.data),(e=t.getContext())&&t.rebuildPath(e,1)):S.rebuildPath(e=t,1)},t.applyTransform=function(t){var e=S,i=t;if(i){for(var n,o,r,a,s=e.data,l=e.len(),u=Ql.M,h=Ql.C,c=Ql.L,p=Ql.R,d=Ql.A,f=Ql.Q,g=0,y=0;g<l;){switch(n=s[g++],y=g,o=0,n){case u:case c:o=1;break;case h:o=3;break;case f:o=2;break;case d:var m=i[4],v=i[5],_=tu(i[0]*i[0]+i[1]*i[1]),x=tu(i[2]*i[2]+i[3]*i[3]),w=eu(-i[1]/x,i[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:a[0]=s[g++],a[1]=s[g++],te(a,a,i),s[y++]=a[0],s[y++]=a[1],a[0]+=s[g++],a[1]+=s[g++],te(a,a,i),s[y++]=a[0],s[y++]=a[1]}for(r=0;r<o;r++){var b=Jl[r];b[0]=s[g++],b[1]=s[g++],te(b,b,i),s[y++]=b[0],s[y++]=b[1]}}e.increaseVersion()}this.dirtyShape()},t}var mu,vu=function(){this.cx=0,this.cy=0,this.r=0},_u=(u(xu,mu=ws),xu.prototype.getDefaultShape=function(){return new vu},xu.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},xu);function xu(t){return mu.call(this,t)||this}_u.prototype.type="circle";var wu,bu=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},Su=(u(Mu,wu=ws),Mu.prototype.getDefaultShape=function(){return new bu},Mu.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,o=e.rx,e=e.ry,r=.5522848*o,a=.5522848*e;t.moveTo(i-o,n),t.bezierCurveTo(i-o,n-a,i-r,n-e,i,n-e),t.bezierCurveTo(i+r,n-e,i+o,n-a,i+o,n),t.bezierCurveTo(i+o,n+a,i+r,n+e,i,n+e),t.bezierCurveTo(i-r,n+e,i-o,n+a,i-o,n),t.closePath()},Mu);function Mu(t){return wu.call(this,t)||this}Su.prototype.type="ellipse";var Tu=Math.PI,Iu=2*Tu,Cu=Math.sin,Du=Math.cos,ku=Math.acos,Au=Math.atan2,Lu=Math.abs,Pu=Math.sqrt,Ou=Math.max,Ru=Math.min,zu=1e-4;function Nu(t,e,i,n,o,r,a){var s=t-i,l=e-n,a=(a?r:-r)/Pu(s*s+l*l),l=a*l,a=-a*s,s=t+l,t=e+a,e=i+l,i=n+a,n=(s+e)/2,u=(t+i)/2,h=e-s,c=i-t,p=h*h+c*c,r=o-r,s=s*i-e*t,i=(c<0?-1:1)*Pu(Ou(0,r*r*p-s*s)),e=(s*c-h*i)/p,t=(-s*h-c*i)/p,d=(s*c+h*i)/p,s=(-s*h+c*i)/p,h=e-n,c=t-u,i=d-n,p=s-u;return i*i+p*p<h*h+c*c&&(e=d,t=s),{cx:e,cy:t,x0:-l,y0:-a,x1:e*(o/r-1),y1:t*(o/r-1)}}function Eu(t,e){var i,n,o,r,a,s,l,u,h,c,p,d,f,g,y,m,v,_,x,w,b,S,M,T,I,C,D,k,A,L,P=Ou(e.r,0),O=Ou(e.r0||0,0),R=0<P;(R||0<O)&&(R||(P=O,O=0),P<O&&(R=P,P=O,O=R),R=e.startAngle,i=e.endAngle,isNaN(R)||isNaN(i)||(n=e.cx,o=e.cy,r=!!e.clockwise,m=Lu(i-R),zu<(a=Iu<m&&m%Iu)&&(m=a),zu<P?Iu-zu<m?(t.moveTo(n+P*Du(R),o+P*Cu(R)),t.arc(n,o,P,R,i,!r),zu<O&&(t.moveTo(n+O*Du(i),o+O*Cu(i)),t.arc(n,o,O,i,R,r))):(S=b=w=x=_=v=c=h=C=I=T=M=u=l=s=a=void 0,p=P*Du(R),d=P*Cu(R),f=O*Du(i),g=O*Cu(i),(y=zu<m)&&((e=e.cornerRadius)&&(a=(e=function(t){if(V(t)){var e=t.length;if(!e)return t;e=1===e?[t[0],t[0],0,0]:2===e?[t[0],t[0],t[1],t[1]]:3===e?t.concat(t[2]):t}else e=[t,t,t,t];return e}(e))[0],s=e[1],l=e[2],u=e[3]),e=Lu(P-O)/2,M=Ru(e,l),T=Ru(e,u),I=Ru(e,a),C=Ru(e,s),v=h=Ou(M,T),_=c=Ou(I,C),zu<h||zu<c)&&(x=P*Du(i),w=P*Cu(i),b=O*Du(R),S=O*Cu(R),m<Tu)&&(e=function(t,e,i,n,o,r,a,s){var l=(s=s-r)*(i=i-t)-(a=a-o)*(n=n-e);if(!(l*l<zu))return[t+(l=(a*(e-r)-s*(t-o))/l)*i,e+l*n]}(p,d,b,S,x,w,f,g))&&(M=p-e[0],T=d-e[1],I=x-e[0],C=w-e[1],m=1/Cu(ku((M*I+T*C)/(Pu(M*M+T*T)*Pu(I*I+C*C)))/2),M=Pu(e[0]*e[0]+e[1]*e[1]),v=Ru(h,(P-M)/(1+m)),_=Ru(c,(O-M)/(m-1))),y?zu<v?(D=Ru(l,v),k=Ru(u,v),A=Nu(b,S,p,d,P,D,r),L=Nu(x,w,f,g,P,k,r),t.moveTo(n+A.cx+A.x0,o+A.cy+A.y0),v<h&&D===k?t.arc(n+A.cx,o+A.cy,v,Au(A.y0,A.x0),Au(L.y0,L.x0),!r):(0<D&&t.arc(n+A.cx,o+A.cy,D,Au(A.y0,A.x0),Au(A.y1,A.x1),!r),t.arc(n,o,P,Au(A.cy+A.y1,A.cx+A.x1),Au(L.cy+L.y1,L.cx+L.x1),!r),0<k&&t.arc(n+L.cx,o+L.cy,k,Au(L.y1,L.x1),Au(L.y0,L.x0),!r))):(t.moveTo(n+p,o+d),t.arc(n,o,P,R,i,!r)):t.moveTo(n+p,o+d),zu<O&&y?zu<_?(D=Ru(a,_),A=Nu(f,g,x,w,O,-(k=Ru(s,_)),r),L=Nu(p,d,b,S,O,-D,r),t.lineTo(n+A.cx+A.x0,o+A.cy+A.y0),_<c&&D===k?t.arc(n+A.cx,o+A.cy,_,Au(A.y0,A.x0),Au(L.y0,L.x0),!r):(0<k&&t.arc(n+A.cx,o+A.cy,k,Au(A.y0,A.x0),Au(A.y1,A.x1),!r),t.arc(n,o,O,Au(A.cy+A.y1,A.cx+A.x1),Au(L.cy+L.y1,L.cx+L.x1),r),0<D&&t.arc(n+L.cx,o+L.cy,D,Au(L.y1,L.x1),Au(L.y0,L.x0),!r))):(t.lineTo(n+f,o+g),t.arc(n,o,O,i,R,r)):t.lineTo(n+f,o+g)):t.moveTo(n,o),t.closePath()))}var Bu,Vu=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},Fu=(u(Hu,Bu=ws),Hu.prototype.getDefaultShape=function(){return new Vu},Hu.prototype.buildPath=function(t,e){Eu(t,e)},Hu.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},Hu);function Hu(t){return Bu.call(this,t)||this}Fu.prototype.type="sector";var Gu,Wu=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},Xu=(u(Uu,Gu=ws),Uu.prototype.getDefaultShape=function(){return new Wu},Uu.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,o=2*Math.PI;t.moveTo(i+e.r,n),t.arc(i,n,e.r,0,o,!1),t.moveTo(i+e.r0,n),t.arc(i,n,e.r0,0,o,!0)},Uu);function Uu(t){return Gu.call(this,t)||this}function Yu(t,e,i){var n=e.smooth,o=e.points;if(o&&2<=o.length){if(n)for(var r=function(t,e,i,n){var o,r,a=[],s=[],l=[],u=[];if(n){for(var h=[1/0,1/0],c=[-1/0,-1/0],p=0,d=t.length;p<d;p++)ee(h,h,t[p]),ie(c,c,t[p]);ee(h,h,n[0]),ie(c,c,n[1])}for(p=0,d=t.length;p<d;p++){var f=t[p];if(i)o=t[p?p-1:d-1],r=t[(p+1)%d];else{if(0===p||p===d-1){a.push(Gt(t[p]));continue}o=t[p-1],r=t[p+1]}Xt(s,r,o),Zt(s,s,e);var g=jt(f,o),y=jt(f,r),m=g+y,m=(0!==m&&(g/=m,y/=m),Zt(l,s,-g),Zt(u,s,y),Wt([],f,l)),g=Wt([],f,u);n&&(ie(m,m,h),ee(m,m,c),ie(g,g,h),ee(g,g,c)),a.push(m),a.push(g)}return i&&a.push(a.shift()),a}(o,n,i,e.smoothConstraint),a=(t.moveTo(o[0][0],o[0][1]),o.length),s=0;s<(i?a:a-1);s++){var l=r[2*s],u=r[2*s+1],h=o[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}else{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])}i&&t.closePath()}}Xu.prototype.type="ring";var Zu,qu=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},ju=(u(Ku,Zu=ws),Ku.prototype.getDefaultShape=function(){return new qu},Ku.prototype.buildPath=function(t,e){Yu(t,e,!0)},Ku);function Ku(t){return Zu.call(this,t)||this}ju.prototype.type="polygon";var $u,Qu=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},Ju=(u(th,$u=ws),th.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},th.prototype.getDefaultShape=function(){return new Qu},th.prototype.buildPath=function(t,e){Yu(t,e,!1)},th);function th(t){return $u.call(this,t)||this}Ju.prototype.type="polyline";var eh,ih={},nh=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},oh=(u(rh,eh=ws),rh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},rh.prototype.getDefaultShape=function(){return new nh},rh.prototype.buildPath=function(t,e){r=(this.subPixelOptimize?(i=(r=Ps(ih,e,this.style)).x1,n=r.y1,o=r.x2,r):(i=e.x1,n=e.y1,o=e.x2,e)).y2;var i,n,o,r,e=e.percent;0!==e&&(t.moveTo(i,n),e<1&&(o=i*(1-e)+o*e,r=n*(1-e)+r*e),t.lineTo(o,r))},rh.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},rh);function rh(t){return eh.call(this,t)||this}oh.prototype.type="line";var ah=[],sh=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function lh(t,e,i){var n=t.cpx2,o=t.cpy2;return null!=n||null!=o?[(i?Bi:Ei)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?Bi:Ei)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?Xi:Wi)(t.x1,t.cpx1,t.x2,e),(i?Xi:Wi)(t.y1,t.cpy1,t.y2,e)]}u(ch,uh=ws),ch.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},ch.prototype.getDefaultShape=function(){return new sh},ch.prototype.buildPath=function(t,e){var i=e.x1,n=e.y1,o=e.x2,r=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,e=e.percent;0!==e&&(t.moveTo(i,n),null==l||null==u?(e<1&&(Yi(i,a,o,e,ah),a=ah[1],o=ah[2],Yi(n,s,r,e,ah),s=ah[1],r=ah[2]),t.quadraticCurveTo(a,s,o,r)):(e<1&&(Hi(i,a,l,o,e,ah),a=ah[1],l=ah[2],o=ah[3],Hi(n,s,u,r,e,ah),s=ah[1],u=ah[2],r=ah[3]),t.bezierCurveTo(a,s,l,u,o,r)))},ch.prototype.pointAt=function(t){return lh(this.shape,t,!1)},ch.prototype.tangentAt=function(t){t=lh(this.shape,t,!0);return qt(t,t)};var uh,hh=ch;function ch(t){return uh.call(this,t)||this}hh.prototype.type="bezier-curve";var ph,dh=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},fh=(u(gh,ph=ws),gh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},gh.prototype.getDefaultShape=function(){return new dh},gh.prototype.buildPath=function(t,e){var i=e.cx,n=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+i,l*o+n),t.arc(i,n,o,r,a,!e)},gh);function gh(t){return ph.call(this,t)||this}fh.prototype.type="arc";u(vh,yh=ws),vh.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),i=0;i<t.length;i++)e=e||t[i].shapeChanged();e&&this.dirtyShape()},vh.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),i=0;i<t.length;i++)t[i].path||t[i].createPathProxy(),t[i].path.setScale(e[0],e[1],t[i].segmentIgnoreThreshold)},vh.prototype.buildPath=function(t,e){for(var i=e.paths||[],n=0;n<i.length;n++)i[n].buildPath(t,i[n].shape,!0)},vh.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},vh.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ws.prototype.getBoundingRect.call(this)};var yh,mh=vh;function vh(){var t=null!==yh&&yh.apply(this,arguments)||this;return t.type="compound",t}xh.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})};var _h=xh;function xh(t){this.colorStops=t||[]}u(Sh,wh=_h);var wh,bh=Sh;function Sh(t,e,i,n,o,r){o=wh.call(this,o)||this;return o.x=null==t?0:t,o.y=null==e?0:e,o.x2=null==i?1:i,o.y2=null==n?0:n,o.type="linear",o.global=r||!1,o}u(Th,Mh=_h);var Mh,_h=Th;function Th(t,e,i,n,o){n=Mh.call(this,n)||this;return n.x=null==t?.5:t,n.y=null==e?.5:e,n.r=null==i?.5:i,n.type="radial",n.global=o||!1,n}var Ih=[0,0],Ch=[0,0],Dh=new T,kh=new T,Ah=(Lh.prototype.fromBoundingRect=function(t,e){var i=this._corners,n=this._axes,o=t.x,r=t.y,a=o+t.width,t=r+t.height;if(i[0].set(o,r),i[1].set(a,r),i[2].set(a,t),i[3].set(o,t),e)for(var s=0;s<4;s++)i[s].transform(e);T.sub(n[0],i[1],i[0]),T.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(s=0;s<2;s++)this._origin[s]=n[s].dot(i[0])},Lh.prototype.intersect=function(t,e){var i=!0,n=!e;return Dh.set(1/0,1/0),kh.set(0,0),!this._intersectCheckOneSide(this,t,Dh,kh,n,1)&&(i=!1,n)||!this._intersectCheckOneSide(t,this,Dh,kh,n,-1)&&(i=!1,n)||n||T.copy(e,i?Dh:kh),i},Lh.prototype._intersectCheckOneSide=function(t,e,i,n,o,r){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,Ih),this._getProjMinMaxOnAxis(s,e._corners,Ch),Ih[1]<Ch[0]||Ch[1]<Ih[0]){if(a=!1,o)return a;var u=Math.abs(Ch[0]-Ih[1]),h=Math.abs(Ih[0]-Ch[1]);Math.min(u,h)>n.len()&&(u<h?T.scale(n,l,-u*r):T.scale(n,l,h*r))}else i&&(u=Math.abs(Ch[0]-Ih[1]),h=Math.abs(Ih[0]-Ch[1]),Math.min(u,h)<i.len())&&(u<h?T.scale(i,l,u*r):T.scale(i,l,-h*r))}return a},Lh.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],o=this._origin,r=e[0].dot(n)+o[t],a=r,s=r,l=1;l<e.length;l++)var u=e[l].dot(n)+o[t],a=Math.min(u,a),s=Math.max(u,s);i[0]=a,i[1]=s},Lh);function Lh(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new T;for(i=0;i<2;i++)this._axes[i]=new T;t&&this.fromBoundingRect(t,e)}var Ph,Oh=[],e=(u(Rh,Ph=e),Rh.prototype.traverse=function(t,e){t.call(e,this)},Rh.prototype.useStyle=function(){this.style={}},Rh.prototype.getCursor=function(){return this._cursor},Rh.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},Rh.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},Rh.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},Rh.prototype.addDisplayable=function(t,e){(e?this._temporaryDisplayables:this._displayables).push(t),this.markRedraw()},Rh.prototype.addDisplayables=function(t,e){e=e||!1;for(var i=0;i<t.length;i++)this.addDisplayable(t[i],e)},Rh.prototype.getDisplayables=function(){return this._displayables},Rh.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},Rh.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])},Rh.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},Rh.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new U(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var i=this._displayables[e],n=i.getBoundingRect().clone();i.needLocalTransform()&&n.applyTransform(i.getLocalTransform(Oh)),t.union(n)}this._rect=t}return this._rect},Rh.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(i[0],i[1]))for(var n=0;n<this._displayables.length;n++)if(this._displayables[n].contain(t,e))return!0;return!1},Rh);function Rh(){var t=null!==Ph&&Ph.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}var zh=Er();function Nh(t,e,i,n,o,r,a){var s,l,u,h,c,p,d=!1,f=(D(o)?(a=r,r=o,o=null):R(o)&&(r=o.cb,a=o.during,d=o.isFrom,l=o.removeOpt,o=o.dataIndex),"leave"===t),g=(f||e.stopAnimation("leave"),p=t,s=o,l=f?l||{}:null,n=(g=n)&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,o):null,g&&g.ecModel&&(u=(u=g.ecModel.getUpdatePayload())&&u.animation),p="update"===p,g&&g.isAnimationEnabled()?(c=h=o=void 0,c=l?(o=z(l.duration,200),h=z(l.easing,"cubicOut"),0):(o=g.getShallow(p?"animationDurationUpdate":"animationDuration"),h=g.getShallow(p?"animationEasingUpdate":"animationEasing"),g.getShallow(p?"animationDelayUpdate":"animationDelay")),D(c=u&&(null!=u.duration&&(o=u.duration),null!=u.easing&&(h=u.easing),null!=u.delay)?u.delay:c)&&(c=c(s,n)),{duration:(o=D(o)?o(s):o)||0,delay:c,easing:h}):null);g&&0<g.duration?(p={duration:g.duration,delay:g.delay||0,easing:g.easing,done:r,force:!!r||!!a,setToFinal:!f,scope:t,during:a},d?e.animateFrom(i,p):e.animateTo(i,p)):(e.stopAnimation(),d||e.attr(i),a&&a(1),r&&r())}function Eh(t,e,i,n,o,r){Nh("update",t,e,i,n,o,r)}function Bh(t,e,i,n,o,r){Nh("enter",t,e,i,n,o,r)}function Vh(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++)if("leave"===t.animators[e].scope)return!0;return!1}function Fh(t,e,i,n,o,r){Vh(t)||Nh("leave",t,e,i,n,o,r)}function Hh(t,e,i,n){t.removeTextContent(),t.removeTextGuideLine(),Fh(t,{style:{opacity:0}},e,i,n)}var Gh=Math.max,Wh=Math.min,Xh={};function Uh(t){return ws.extend(t)}var Yh=function(t,e){var i,n=yu(t,e);function o(t){t=i.call(this,t)||this;return t.applyTransform=n.applyTransform,t.buildPath=n.buildPath,t}return u(o,i=du),o};function Zh(t,e){return Yh(t,e)}function qh(t,e){Xh[t]=e}function jh(t){if(Xh.hasOwnProperty(t))return Xh[t]}function Kh(t,e,i,n){t=new du(yu(t,e));return i&&("center"===n&&(i=Qh(i,t.getBoundingRect())),tc(t,i)),t}function $h(t,e,i){var n=new ks({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){"center"===i&&(t={width:t.width,height:t.height},n.setStyle(Qh(e,t)))}});return n}function Qh(t,e){var e=e.width/e.height,i=t.height*e,e=i<=t.width?t.height:(i=t.width)/e;return{x:t.x+t.width/2-i/2,y:t.y+t.height/2-e/2,width:i,height:e}}function Jh(t,e){for(var i=[],n=t.length,o=0;o<n;o++){var r=t[o];i.push(r.getUpdatedPathProxy(!0))}return(e=new ws(e)).createPathProxy(),e.buildPath=function(t){var e;gu(t)&&(t.appendPath(i),e=t.getContext())&&t.rebuildPath(e,1)},e}function tc(t,e){t.applyTransform&&(e=t.getBoundingRect().calculateTransform(e),t.applyTransform(e))}function ec(t,e){return Ps(t,t,{lineWidth:e}),t}var ic=Rs;function nc(t,e){for(var i=Oe([]);t&&t!==e;)ze(i,t.getLocalTransform(),i),t=t.parent;return i}function oc(t,e,i){return e&&!st(e)&&(e=bo.getLocalTransform(e)),te([],t,e=i?Ve([],e):e)}function rc(t,e,i){var n=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]),n=oc(["left"===t?-n:"right"===t?n:0,"top"===t?-o:"bottom"===t?o:0],e,i);return Math.abs(n[0])>Math.abs(n[1])?0<n[0]?"right":"left":0<n[1]?"bottom":"top"}function ac(t){return!t.isGroup}function sc(t,e,n){var o,i;function r(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=P({},t.shape)),e}t&&e&&(i={},t.traverse(function(t){ac(t)&&t.anid&&(i[t.anid]=t)}),o=i,e.traverse(function(t){var e,i;ac(t)&&t.anid&&(e=o[t.anid])&&(i=r(t),t.attr(r(e)),Eh(t,i,n,k(t).dataIndex))}))}function lc(t,i){return B(t,function(t){var e=t[0],e=Gh(e,i.x),t=(e=Wh(e,i.x+i.width),t[1]),t=Gh(t,i.y);return[e,Wh(t,i.y+i.height)]})}function uc(t,e){var i=Gh(t.x,e.x),n=Wh(t.x+t.width,e.x+e.width),o=Gh(t.y,e.y),t=Wh(t.y+t.height,e.y+e.height);if(i<=n&&o<=t)return{x:i,y:o,width:n-i,height:t-o}}function hc(t,e,i){var e=P({rectHover:!0},e),n=e.style={strokeNoScale:!0};if(i=i||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(n.image=t.slice(8),E(n,i),new ks(e)):Kh(t.replace("path://",""),e,i,"center")}function cc(t,e,i,n,o,r,a,s){var l,i=i-t,n=n-e,a=a-o,s=s-r,u=a*n-i*s;return!((l=u)<=1e-6&&-1e-6<=l||(o=((l=t-o)*n-i*(t=e-r))/u)<0||1<o||(n=(l*s-a*t)/u)<0||1<n)}function pc(t){var e=t.itemTooltipOption,i=t.componentModel,n=t.itemName,e=F(e)?{formatter:e}:e,o=i.mainType,i=i.componentIndex,r={componentType:o,name:n,$vars:["name"]},a=(r[o+"Index"]=i,t.formatterParamsExtra),t=(a&&O(ht(a),function(t){Et(r,t)||(r[t]=a[t],r.$vars.push(t))}),k(t.el));t.componentMainType=o,t.componentIndex=i,t.tooltipConfig={name:n,option:E({content:n,encodeHTMLContent:!0,formatterParams:r},e)}}function dc(t,e){var i;(i=t.isGroup?e(t):i)||t.traverse(e)}function fc(t,e){if(t)if(V(t))for(var i=0;i<t.length;i++)dc(t[i],e);else dc(t,e)}qh("circle",_u),qh("ellipse",Su),qh("sector",Fu),qh("ring",Xu),qh("polygon",ju),qh("polyline",Ju),qh("rect",Bs),qh("line",oh),qh("bezierCurve",hh),qh("arc",fh);var gc=Object.freeze({__proto__:null,Arc:fh,BezierCurve:hh,BoundingRect:U,Circle:_u,CompoundPath:mh,Ellipse:Su,Group:Yo,Image:ks,IncrementalDisplayable:e,Line:oh,LinearGradient:bh,OrientedBoundingRect:Ah,Path:ws,Point:T,Polygon:ju,Polyline:Ju,RadialGradient:_h,Rect:Bs,Ring:Xu,Sector:Fu,Text:Ws,applyTransform:oc,clipPointsByRect:lc,clipRectByRect:uc,createIcon:hc,extendPath:Zh,extendShape:Uh,getShapeClass:jh,getTransform:nc,groupTransition:sc,initProps:Bh,isElementRemoved:Vh,lineLineIntersect:cc,linePolygonIntersect:function(t,e,i,n,o){for(var r=0,a=o[o.length-1];r<o.length;r++){var s=o[r];if(cc(t,e,i,n,s[0],s[1],a[0],a[1]))return!0;a=s}},makeImage:$h,makePath:Kh,mergePath:Jh,registerShape:qh,removeElement:Fh,removeElementWithFadeOut:function(t,e,i){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||Hh(t,e,i,n)}):Hh(t,e,i,n)},resizePath:tc,setTooltipConfig:pc,subPixelOptimize:ic,subPixelOptimizeLine:ec,subPixelOptimizeRect:function(t){return Os(t.shape,t.shape,t.style),t},transformDirection:rc,traverseElements:fc,updateProps:Eh}),yc={};function mc(t,e){for(var i=0;i<ll.length;i++){var n=ll[i],o=e[n],n=t.ensureState(n);n.style=n.style||{},n.style.text=o}var r=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(r,!0)}function vc(t,e,i){for(var n,o=t.labelFetcher,r=t.labelDataIndex,a=t.labelDimIndex,s=e.normal,l={normal:n=null==(n=o?o.getFormattedLabel(r,"normal",null,a,s&&s.get("formatter"),null!=i?{interpolatedValue:i}:null):n)?D(t.defaultText)?t.defaultText(r,t,i):t.defaultText:n},u=0;u<ll.length;u++){var h=ll[u],c=e[h];l[h]=z(o?o.getFormattedLabel(r,h,null,a,c&&c.get("formatter")):null,n)}return l}function _c(t,e,i,n){i=i||yc;for(var o=t instanceof Ws,r=!1,a=0;a<ul.length;a++)if((p=e[ul[a]])&&p.getShallow("show")){r=!0;break}var s=o?t:t.getTextContent();if(r){o||(s||(s=new Ws,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=vc(i,e),u=e.normal,h=!!u.getShallow("show"),c=wc(u,n&&n.normal,i,!1,!o);c.text=l.normal,o||t.setTextConfig(bc(u,i,!1));for(a=0;a<ll.length;a++){var p,d,f,g=ll[a];(p=e[g])&&(d=s.ensureState(g),(f=!!z(p.getShallow("show"),h))!=h&&(d.ignore=!f),d.style=wc(p,n&&n[g],i,!0,!o),d.style.text=l[g],o||(t.ensureState(g).textConfig=bc(p,i,!0)))}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(c.x=s.style.x),null!=s.style.y&&(c.y=s.style.y),s.ignore=!h,s.useStyle(c),s.dirty(),i.enableTextSetter&&(Cc(s).setLabelText=function(t){t=vc(i,e,t);mc(s,t)})}else s&&(s.ignore=!0);t.dirty()}function xc(t,e){for(var i={normal:t.getModel(e=e||"label")},n=0;n<ll.length;n++){var o=ll[n];i[o]=t.getModel([o,e])}return i}function wc(t,e,i,n,o){var r,a={},s=a,l=t,u=i,h=n,c=o;u=u||yc;var p,t=l.ecModel,d=t&&t.option.textStyle,f=function(t){var e;for(;t&&t!==t.ecModel;){var i=(t.option||yc).rich;if(i){e=e||{};for(var n=ht(i),o=0;o<n.length;o++){var r=n[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]),Ic(p[g]={},r,d,u,h,c,!1,!0));return p&&(s.rich=p),(t=l.get("overflow"))&&(s.overflow=t),null!=(t=l.get("minMargin"))&&(s.margin=t),Ic(s,l,d,u,h,c,!0,!1),e&&P(a,e),a}function bc(t,e,i){e=e||{};var n={},o=t.getShallow("rotate"),r=z(t.getShallow("distance"),i?null:5),a=t.getShallow("offset"),i=t.getShallow("position")||(i?null:"inside");return null!=(i="outside"===i?e.defaultOutsidePosition||"top":i)&&(n.position=i),null!=a&&(n.offset=a),null!=o&&(o*=Math.PI/180,n.rotation=o),null!=r&&(n.distance=r),n.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",n}var Sc=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Mc=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Tc=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Ic(t,e,i,n,o,r,a,s){i=!o&&i||yc;var l=n&&n.inheritColor,u=e.getShallow("color"),h=e.getShallow("textBorderColor"),c=z(e.getShallow("opacity"),i.opacity),u=("inherit"!==u&&"auto"!==u||(u=l||null),"inherit"!==h&&"auto"!==h||(h=l||null),r||(u=u||i.color,h=h||i.textBorderColor),null!=u&&(t.fill=u),null!=h&&(t.stroke=h),z(e.getShallow("textBorderWidth"),i.textBorderWidth)),h=(null!=u&&(t.lineWidth=u),z(e.getShallow("textBorderType"),i.textBorderType)),u=(null!=h&&(t.lineDash=h),z(e.getShallow("textBorderDashOffset"),i.textBorderDashOffset));null!=u&&(t.lineDashOffset=u),null!=(c=o||null!=c||s?c:n&&n.defaultOpacity)&&(t.opacity=c),o||r||null==t.fill&&n.inheritColor&&(t.fill=n.inheritColor);for(var p=0;p<Sc.length;p++){var d=Sc[p];null!=(f=z(e.getShallow(d),i[d]))&&(t[d]=f)}for(var p=0;p<Mc.length;p++){d=Mc[p];null!=(f=e.getShallow(d))&&(t[d]=f)}if(null==t.verticalAlign&&null!=(h=e.getShallow("baseline"))&&(t.verticalAlign=h),!a||!n.disableBox){for(p=0;p<Tc.length;p++){var f,d=Tc[p];null!=(f=e.getShallow(d))&&(t[d]=f)}u=e.getShallow("borderType");null!=u&&(t.borderDash=u),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}var Cc=Er();function Dc(i,n,o,t,r){var a,s,l,u=Cc(i);u.valueAnimation&&u.prevValue!==u.value&&(a=u.defaultInterpolatedText,s=z(u.interpolatedValue,u.prevValue),l=u.value,i.percent=0,(null==u.prevValue?Bh:Eh)(i,{percent:1},t,n,null,function(t){var e=Ur(o,u.precision,s,l,t),t=(u.interpolatedValue=1===t?null:e,vc({labelDataIndex:n,labelFetcher:r,defaultText:a?a(e):e+""},u.statesModels,e));mc(i,t)}))}var kc=["textStyle","color"],Ac=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Lc=new Ws,ic=(Pc.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(kc):null)},Pc.prototype.getFont=function(){return t={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},e=(e=this.ecModel)&&e.getModel("textStyle"),Tt([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 t,e},Pc.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<Ac.length;i++)e[Ac[i]]=this.getShallow(Ac[i]);return Lc.useStyle(e),Lc.update(),Lc.getBoundingRect()},Pc);function Pc(){}var Oc=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Rc=ia(Oc),zc=(Nc.prototype.getLineStyle=function(t){return Rc(this,t)},Nc);function Nc(){}var Ec=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Bc=ia(Ec),Vc=(Fc.prototype.getItemStyle=function(t,e){return Bc(this,t,e)},Fc);function Fc(){}Wc.prototype.init=function(t,e,i){},Wc.prototype.mergeOption=function(t,e){d(this.option,t,!0)},Wc.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},Wc.prototype.getShallow=function(t,e){var i=this.option,i=null==i?i:i[t];return null!=i||e||(e=this.parentModel)&&(i=e.getShallow(t)),i},Wc.prototype.getModel=function(t,e){var i=null!=t,t=i?this.parsePath(t):null;return new Wc(i?this._doGet(t):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(t)),this.ecModel)},Wc.prototype.isEmpty=function(){return null==this.option},Wc.prototype.restoreData=function(){},Wc.prototype.clone=function(){return new this.constructor(y(this.option))},Wc.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},Wc.prototype.resolveParentPath=function(t){return t},Wc.prototype.isAnimationEnabled=function(){if(!b.node&&this.option)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0},Wc.prototype._doGet=function(t,e){var i=this.option;if(t){for(var n=0;n<t.length&&(!t[n]||null!=(i=i&&"object"==typeof i?i[t[n]]:null));n++);null==i&&e&&(i=e._doGet(this.resolveParentPath(t),e.parentModel))}return i};var Hc,Gc=Wc;function Wc(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}Kr(Gc),rp=Gc,Hc=["__\0is_clz",Qr++].join("_"),rp.prototype[Hc]=!0,rp.isInstance=function(t){return!(!t||!t[Hc])},at(Gc,zc),at(Gc,Vc),at(Gc,oa),at(Gc,ic);var Xc=Math.round(10*Math.random());function Uc(t){return[t||"",Xc++].join("_")}function Yc(t,e){return d(d({},t,!0),e,!0)}var Zc="ZH",qc="EN",jc=qc,Kc={},$c={},Qc=b.domSupported&&-1<(document.documentElement.lang||navigator.language||navigator.browserLanguage||jc).toUpperCase().indexOf(Zc)?Zc:jc;function Jc(t,e){t=t.toUpperCase(),$c[t]=new Gc(e),Kc[t]=e}Jc(qc,{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:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},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:". "}}}}),Jc(Zc,{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:"旭日图",custom:"自定义图表",chart:"图表"}},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 tp=1e3,ep=60*tp,ip=60*ep,np=24*ip,Qr=365*np,op={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}"},rp="{yyyy}-{MM}-{dd}",ap={year:"{yyyy}",month:"{yyyy}-{MM}",day:rp,hour:rp+" "+op.hour,minute:rp+" "+op.minute,second:rp+" "+op.second,millisecond:op.none},sp=["year","month","day","hour","minute","second","millisecond"],lp=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function up(t,e){return"0000".substr(0,e-(t+="").length)+t}function hp(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 cp(t,e,i,n){var t=fr(t),o=t[fp(i)](),r=t[gp(i)]()+1,a=Math.floor((r-1)/3)+1,s=t[yp(i)](),l=t["get"+(i?"UTC":"")+"Day"](),u=t[mp(i)](),h=(u-1)%12+1,c=t[vp(i)](),p=t[_p(i)](),t=t[xp(i)](),i=12<=u?"pm":"am",d=i.toUpperCase(),n=(n instanceof Gc?n:$c[n||Qc]||$c[jc]).getModel("time"),f=n.get("month"),g=n.get("monthAbbr"),y=n.get("dayOfWeek"),n=n.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,i+"").replace(/{A}/g,d+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,up(o%100+"",2)).replace(/{Q}/g,a+"").replace(/{MMMM}/g,f[r-1]).replace(/{MMM}/g,g[r-1]).replace(/{MM}/g,up(r,2)).replace(/{M}/g,r+"").replace(/{dd}/g,up(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,y[l]).replace(/{ee}/g,n[l]).replace(/{e}/g,l+"").replace(/{HH}/g,up(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,up(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,up(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,up(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,up(t,3)).replace(/{S}/g,t+"")}function pp(t,e){var t=fr(t),i=t[gp(e)]()+1,n=t[yp(e)](),o=t[mp(e)](),r=t[vp(e)](),a=t[_p(e)](),t=0===t[xp(e)](),e=t&&0===a,a=e&&0===r,r=a&&0===o,o=r&&1===n;return o&&1===i?"year":o?"month":r?"day":a?"hour":e?"minute":t?"second":"millisecond"}function dp(t,e,i){var n=pt(t)?fr(t):t;switch(e=e||pp(t,i)){case"year":return n[fp(i)]();case"half-year":return 6<=n[gp(i)]()?1:0;case"quarter":return Math.floor((n[gp(i)]()+1)/4);case"month":return n[gp(i)]();case"day":return n[yp(i)]();case"half-day":return n[mp(i)]()/24;case"hour":return n[mp(i)]();case"minute":return n[vp(i)]();case"second":return n[_p(i)]();case"millisecond":return n[xp(i)]()}}function fp(t){return t?"getUTCFullYear":"getFullYear"}function gp(t){return t?"getUTCMonth":"getMonth"}function yp(t){return t?"getUTCDate":"getDate"}function mp(t){return t?"getUTCHours":"getHours"}function vp(t){return t?"getUTCMinutes":"getMinutes"}function _p(t){return t?"getUTCSeconds":"getSeconds"}function xp(t){return t?"getUTCMilliseconds":"getMilliseconds"}function wp(t){return t?"setUTCMonth":"setMonth"}function bp(t){return t?"setUTCDate":"setDate"}function Sp(t){return t?"setUTCHours":"setHours"}function Mp(t){return t?"setUTCMinutes":"setMinutes"}function Tp(t){return t?"setUTCSeconds":"setSeconds"}function Ip(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Cp(t){var e;return xr(t)?(e=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1<e.length?"."+e[1]:""):F(t)?t:"-"}function Dp(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 kp=St;function Ap(t,e,i){function n(t){return t&&Tt(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?fr(t):t;if(!isNaN(+r))return cp(r,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",i);if(a)return"-"}return"ordinal"===e?ct(t)?n(t):pt(t)&&o(t)?t+"":"-":o(r=_r(t))?Cp(r):ct(t)?n(t):"boolean"==typeof t?t+"":"-"}function Lp(t,e){return"{"+t+(null==e?"":e)+"}"}var Pp=["a","b","c","d","e","f","g"];function Op(t,e,i){var n=(e=V(e)?e:[e]).length;if(!n)return"";for(var o=e[0].$vars||[],r=0;r<o.length;r++){var a=Pp[r];t=t.replace(Lp(a),Lp(a,0))}for(var s=0;s<n;s++)for(var l=0;l<o.length;l++){var u=e[s][o[l]];t=t.replace(Lp(Pp[l],s),i?ve(u):u)}return t}function Rp(t,e){var t=F(t)?{color:t,extraCssText:e}:t||{},i=t.color,n=t.type,o=(e=t.extraCssText,t.renderMode||"html");return i?"html"===o?"subItem"===n?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+ve(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ve(i)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(t.markerId||"markerX")+"|} ",style:"subItem"===n?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function zp(t,e){return e=e||"transparent",F(t)?t:R(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Np(t,e){var i;"_blank"===e||"blank"===e?((i=window.open()).opener=null,i.location.href=t):window.open(t,e)}var Ep=O,Bp=["left","right","top","bottom","width","height"],Vp=[["width","left","right"],["height","top","bottom"]];function Fp(a,s,l,u,h){var c=0,p=0,d=(null==u&&(u=1/0),null==h&&(h=1/0),0);s.eachChild(function(t,e){var i,n,o,r=t.getBoundingRect(),e=s.childAt(e+1),e=e&&e.getBoundingRect();d="horizontal"===a?(n=r.width+(e?-e.x+r.x:0),u<(i=c+n)||t.newline?(c=0,i=n,p+=d+l,r.height):Math.max(d,r.height)):(n=r.height+(e?-e.y+r.y:0),h<(o=p+n)||t.newline?(c+=d+l,p=0,o=n,r.width):Math.max(d,r.width)),t.newline||(t.x=c,t.y=p,t.markRedraw(),"horizontal"===a?c=i+l:p=o+l)})}var Hp=Fp;function Gp(t,e,i){i=kp(i||0);var n=e.width,o=e.height,r=rr(t.left,n),a=rr(t.top,o),e=rr(t.right,n),s=rr(t.bottom,o),l=rr(t.width,n),u=rr(t.height,o),h=i[2]+i[0],c=i[1]+i[3],p=t.aspect;switch(isNaN(l)&&(l=n-e-c-r),isNaN(u)&&(u=o-s-h-a),null!=p&&(isNaN(l)&&isNaN(u)&&(n/o<p?l=.8*n:u=.8*o),isNaN(l)&&(l=p*u),isNaN(u))&&(u=l/p),isNaN(r)&&(r=n-e-l-c),isNaN(a)&&(a=o-s-u-h),t.left||t.right){case"center":r=n/2-l/2-i[3];break;case"right":r=n-l-c}switch(t.top||t.bottom){case"middle":case"center":a=o/2-u/2-i[0];break;case"bottom":a=o-u-h}r=r||0,a=a||0,isNaN(l)&&(l=n-c-r-(e||0)),isNaN(u)&&(u=o-h-a-(s||0));p=new U(r+i[3],a+i[0],l,u);return p.margin=i,p}function Wp(t){t=t.layoutMode||t.constructor.layoutMode;return R(t)?t:t?{type:t}:null}function Xp(l,u,t){var h=t&&t.ignoreSize,t=(V(h)||(h=[h,h]),i(Vp[0],0)),e=i(Vp[1],1);function i(t,e){var i={},n=0,o={},r=0;if(Ep(t,function(t){o[t]=l[t]}),Ep(t,function(t){c(u,t)&&(i[t]=o[t]=u[t]),p(i,t)&&n++,p(o,t)&&r++}),h[e])p(u,t[1])?o[t[2]]=null:p(u,t[2])&&(o[t[1]]=null);else if(2!==r&&n){if(!(2<=n))for(var a=0;a<t.length;a++){var s=t[a];if(!c(i,s)&&c(l,s)){i[s]=l[s];break}}return i}return o}function c(t,e){return t.hasOwnProperty(e)}function p(t,e){return null!=t[e]&&"auto"!==t[e]}function n(t,e,i){Ep(t,function(t){e[t]=i[t]})}n(Vp[0],l,t),n(Vp[1],l,e)}function Up(t){return e={},(i=t)&&e&&Ep(Bp,function(t){i.hasOwnProperty(t)&&(e[t]=i[t])}),e;var e,i}M(Fp,"vertical"),M(Fp,"horizontal");var Yp,Zp,qp,jp,Kp=Er(),g=(u($p,Yp=Gc),$p.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i)},$p.prototype.mergeDefaultAndTheme=function(t,e){var i=Wp(this),n=i?Up(t):{};d(t,e.getTheme().get(this.mainType)),d(t,this.getDefaultOption()),i&&Xp(t,n,i)},$p.prototype.mergeOption=function(t,e){d(this.option,t,!0);var i=Wp(this);i&&Xp(this.option,t,i)},$p.prototype.optionUpdated=function(t,e){},$p.prototype.getDefaultOption=function(){var t=this.constructor;if(!(e=t)||!e[qr])return t.defaultOption;var e=Kp(this);if(!e.defaultOption){for(var i=[],n=t;n;){var o=n.prototype.defaultOption;o&&i.push(o),n=n.superClass}for(var r={},a=i.length-1;0<=a;a--)r=d(r,i[a],!0);e.defaultOption=r}return e.defaultOption},$p.prototype.getReferringComponents=function(t,e){var i=t+"Id";return Wr(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(i,!0)},e)},$p.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")}},$p.prototype.getZLevelKey=function(){return""},$p.prototype.setZLevel=function(t){this.option.zlevel=t},$p.protoInitialize=((zc=$p.prototype).type="component",zc.id="",zc.name="",zc.mainType="",zc.subType="",void(zc.componentIndex=0)),$p);function $p(t,e,i){t=Yp.call(this,t,e,i)||this;return t.uid=Uc("ec_cpt_model"),t}function Qp(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}$r(g,Gc),ea(g),qp={},(Zp=g).registerSubTypeDefaulter=function(t,e){t=jr(t);qp[t.main]=e},Zp.determineSubType=function(t,e){var i,n=e.type;return n||(i=jr(t).main,Zp.hasSubTypes(t)&&qp[i]&&(n=qp[i](e))),n},jp=function(t){var e=[];O(g.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=B(e,function(t){return jr(t).main}),"dataset"!==t&&C(e,"dataset")<=0&&e.unshift("dataset");return e},g.topologicalTravel=function(t,e,i,n){if(t.length){a={},s=[],O(r=e,function(i){var e,n,o=Qp(a,i),t=o.originalDeps=jp(i),t=(e=r,n=[],O(t,function(t){0<=C(e,t)&&n.push(t)}),n);o.entryCount=t.length,0===o.entryCount&&s.push(i),O(t,function(t){C(o.predecessor,t)<0&&o.predecessor.push(t);var e=Qp(a,t);C(e.successor,t)<0&&e.successor.push(i)})});var r,a,s,e={graph:a,noEntryList:s},o=e.graph,l=e.noEntryList,u={};for(O(t,function(t){u[t]=!0});l.length;){var h=l.pop(),c=o[h],p=!!u[h];p&&(i.call(n,h,c.originalDeps.slice()),delete u[h]),O(c.successor,p?f:d)}O(u,function(){throw new Error("")})}function d(t){o[t].entryCount--,0===o[t].entryCount&&l.push(t)}function f(t){u[t]=!0,d(t)}};var Vc="",oa=("undefined"!=typeof navigator&&(Vc=navigator.platform||""),"rgba(0, 0, 0, 0.2)"),Jp={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:oa,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:oa,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:oa,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:oa,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:oa,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:oa,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Vc.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},td=N(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),ed="original",id="arrayRows",nd="objectRows",od="keyedColumns",rd="typedArray",ad="unknown",sd="column",ld="row",ud={Must:1,Might:2,Not:3},hd=Er();function cd(i,t,e){var o,r,a,n,s,l={},u=pd(t);return u&&i&&(o=[],r=[],t=t.ecModel,t=hd(t).datasetMap,u=u.uid+"_"+e.seriesLayoutBy,O(i=i.slice(),function(t,e){t=R(t)?t:i[e]={name:t};"ordinal"===t.type&&null==a&&(a=e,n=c(t)),l[t.name]=[]}),s=t.get(u)||t.set(u,{categoryWayDim:n,valueWayDim:0}),O(i,function(t,e){var i,n=t.name,t=c(t);null==a?(i=s.valueWayDim,h(l[n],i,t),h(r,i,t),s.valueWayDim+=t):a===e?(h(l[n],0,t),h(o,0,t)):(i=s.categoryWayDim,h(l[n],i,t),h(r,i,t),s.categoryWayDim+=t)}),o.length&&(l.itemName=o),r.length)&&(l.seriesName=r),l;function h(t,e,i){for(var n=0;n<i;n++)t.push(e+n)}function c(t){t=t.dimsDef;return t?t.length:1}}function pd(t){if(!t.get("data",!0))return Wr(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Hr).models[0]}function dd(t,e){var i,n,o,r=t.data,a=t.sourceFormat,s=t.seriesLayoutBy,l=t.dimensionsDefine,u=t.startIndex,h=e;if(!ft(r)){if(l&&(R(l=l[h])?(n=l.name,o=l.type):F(l)&&(n=l)),null!=o)return"ordinal"===o?ud.Must:ud.Not;if(a===id){var c=r;if(s===ld){for(var p=c[h],d=0;d<(p||[]).length&&d<5;d++)if(null!=(i=_(p[u+d])))return i}else for(d=0;d<c.length&&d<5;d++){var f=c[u+d];if(f&&null!=(i=_(f[h])))return i}}else if(a===nd){var g=r;if(!n)return ud.Not;for(d=0;d<g.length&&d<5;d++)if((m=g[d])&&null!=(i=_(m[n])))return i}else if(a===od){l=r;if(!n)return ud.Not;if(!(p=l[n])||ft(p))return ud.Not;for(d=0;d<p.length&&d<5;d++)if(null!=(i=_(p[d])))return i}else if(a===ed)for(var y=r,d=0;d<y.length&&d<5;d++){var m,v=Dr(m=y[d]);if(!V(v))return ud.Not;if(null!=(i=_(v[h])))return i}}return ud.Not;function _(t){var e=F(t);return null!=t&&Number.isFinite(Number(t))&&""!==t?e?ud.Might:ud.Not:e&&"-"!==t?ud.Must:void 0}}var fd=N();var gd,yd,md,vd=Er(),_d=(Er(),xd.prototype.getColorFromPalette=function(t,e,i){var n=Tr(this.get("color",!0)),o=this.get("colorLayer",!0),r=this,a=vd;return a=a(e=e||r),r=a.paletteIdx||0,(e=a.paletteNameMap=a.paletteNameMap||{}).hasOwnProperty(t)?e[t]:(o=(o=i==null||!o?n:wd(o,i))||n)&&o.length?(i=o[r],t&&(e[t]=i),a.paletteIdx=(r+1)%o.length,i):void 0},xd.prototype.clearColorPalette=function(){var t,e;(e=vd)(t=this).paletteIdx=0,e(t).paletteNameMap={}},xd);function xd(){}function wd(t,e){for(var i=t.length,n=0;n<i;n++)if(t[n].length>e)return t[n];return t[i-1]}var bd,Sd="\0_ec_inner",Md=(u(r,bd=Gc),r.prototype.init=function(t,e,i,n,o,r){n=n||{},this.option=null,this._theme=new Gc(n),this._locale=new Gc(o),this._optionManager=r},r.prototype.setOption=function(t,e,i){e=Cd(e);this._optionManager.setOption(t,i,e),this._resetOption(null,e)},r.prototype.resetOption=function(t,e){return this._resetOption(t,Cd(e))},r.prototype._resetOption=function(t,e){var i,n=!1,o=this._optionManager;return t&&"recreate"!==t||(i=o.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):md(this,i),n=!0),"timeline"!==t&&"media"!==t||this.restoreData(),t&&"recreate"!==t&&"timeline"!==t||(i=o.getTimelineOption(this))&&(n=!0,this._mergeOption(i,e)),t&&"recreate"!==t&&"media"!==t||(i=o.getMediaOption(this)).length&&O(i,function(t){n=!0,this._mergeOption(t,e)},this),n},r.prototype.mergeOption=function(t){this._mergeOption(t,null)},r.prototype._mergeOption=function(n,t){var o=this.option,h=this._componentsMap,c=this._componentsCount,i=[],r=N(),p=t&&t.replaceMergeMainTypeMap;hd(this).datasetMap=N(),O(n,function(t,e){null!=t&&(g.hasClass(e)?e&&(i.push(e),r.set(e,!0)):o[e]=null==o[e]?y(t):d(o[e],t,!0))}),p&&p.each(function(t,e){g.hasClass(e)&&!r.get(e)&&(i.push(e),r.set(e,!0))}),g.topologicalTravel(i,g.getAllClassMainTypes(),function(r){var a,t=function(t,e,i){return(e=(e=fd.get(e))&&e(t))?i.concat(e):i}(this,r,Tr(n[r])),e=h.get(r),i=e?p&&p.get(r)?"replaceMerge":"normalMerge":"replaceAll",e=kr(e,t,i),s=(zr(e,r,g),o[r]=null,h.set(r,null),c.set(r,0),[]),l=[],u=0;O(e,function(t,e){var i=t.existing,n=t.newOption;if(n){var o=g.getClass(r,t.keyInfo.subType,!("series"===r));if(!o)return;if("tooltip"===r){if(a)return;a=!0}i&&i.constructor===o?(i.name=t.keyInfo.name,i.mergeOption(n,this),i.optionUpdated(n,!1)):(e=P({componentIndex:e},t.keyInfo),P(i=new o(n,this,this,e),e),t.brandNew&&(i.__requireNewView=!0),i.init(n,this,this),i.optionUpdated(null,!0))}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(s.push(i.option),l.push(i),u++):(s.push(void 0),l.push(void 0))},this),o[r]=s,h.set(r,l),c.set(r,u),"series"===r&&gd(this)},this),this._seriesIndices||gd(this)},r.prototype.getOption=function(){var a=y(this.option);return O(a,function(t,e){if(g.hasClass(e)){for(var i=Tr(t),n=i.length,o=!1,r=n-1;0<=r;r--)i[r]&&!Rr(i[r])?o=!0:(i[r]=null,o||n--);i.length=n,a[e]=i}}),delete a[Sd],a},r.prototype.getTheme=function(){return this._theme},r.prototype.getLocaleModel=function(){return this._locale},r.prototype.setUpdatePayload=function(t){this._payload=t},r.prototype.getUpdatePayload=function(){return this._payload},r.prototype.getComponent=function(t,e){var i=this._componentsMap.get(t);if(i){t=i[e||0];if(t)return t;if(null==e)for(var n=0;n<i.length;n++)if(i[n])return i[n]}},r.prototype.queryComponents=function(t){var e,i,n,o,r,a=t.mainType;return a&&(e=t.index,i=t.id,n=t.name,o=this._componentsMap.get(a))&&o.length?(null!=e?(r=[],O(Tr(e),function(t){o[t]&&r.push(o[t])})):r=null!=i?Td("id",i,o):null!=n?Td("name",n,o):ut(o,function(t){return!!t}),Id(r,t)):[]},r.prototype.findComponents=function(t){var e,i=t.query,n=t.mainType,o=(o=n+"Index",r=n+"Id",e=n+"Name",!(i=i)||null==i[o]&&null==i[r]&&null==i[e]?null:{mainType:n,index:i[o],id:i[r],name:i[e]}),r=o?this.queryComponents(o):ut(this._componentsMap.get(n),function(t){return!!t});return i=Id(r,t),t.filter?ut(i,t.filter):i},r.prototype.eachComponent=function(t,e,i){var n=this._componentsMap;if(D(t)){var o=e,r=t;n.each(function(t,e){for(var i=0;t&&i<t.length;i++){var n=t[i];n&&r.call(o,e,n,n.componentIndex)}})}else for(var a=F(t)?n.get(t):R(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(i,l,l.componentIndex)}},r.prototype.getSeriesByName=function(t){var e=Pr(t,null);return ut(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 ut(this._componentsMap.get("series"),function(t){return!!t&&t.subType===e})},r.prototype.getSeries=function(){return ut(this._componentsMap.get("series"),function(t){return!!t})},r.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},r.prototype.eachSeries=function(i,n){yd(this),O(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];i.call(n,e,t)},this)},r.prototype.eachRawSeries=function(e,i){O(this._componentsMap.get("series"),function(t){t&&e.call(i,t,t.componentIndex)})},r.prototype.eachSeriesByType=function(i,n,o){yd(this),O(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];e.subType===i&&n.call(o,e,t)},this)},r.prototype.eachRawSeriesByType=function(t,e,i){return O(this.getSeriesByType(t),e,i)},r.prototype.isSeriesFiltered=function(t){return yd(this),null==this._seriesIndicesMap.get(t.componentIndex)},r.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},r.prototype.filterSeries=function(i,n){yd(this);var o=[];O(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];i.call(n,e,t)&&o.push(t)},this),this._seriesIndices=o,this._seriesIndicesMap=N(o)},r.prototype.restoreData=function(i){gd(this);var t=this._componentsMap,n=[];t.each(function(t,e){g.hasClass(e)&&n.push(e)}),g.topologicalTravel(n,g.getAllClassMainTypes(),function(e){O(t.get(e),function(t){!t||"series"===e&&function(t,e){{var i,n;if(e)return i=e.seriesIndex,n=e.seriesId,e=e.seriesName,null!=i&&t.componentIndex!==i||null!=n&&t.id!==n||null!=e&&t.name!==e}}(t,i)||t.restoreData()})})},r.internalField=(gd=function(t){var e=t._seriesIndices=[];O(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=N(e)},yd=function(t){},void(md=function(t,e){t.option={},t.option[Sd]=1,t._componentsMap=N({series:[]}),t._componentsCount=N();var i,n,o=e.aria;R(o)&&null==o.enabled&&(o.enabled=!0),i=e,o=t._theme.option,n=i.color&&!i.colorLayer,O(o,function(t,e){"colorLayer"===e&&n||g.hasClass(e)||("object"==typeof t?i[e]=i[e]?d(i[e],t,!1):y(t):null==i[e]&&(i[e]=t))}),d(e,Jp,!1),t._mergeOption(e,null)})),r);function r(){return null!==bd&&bd.apply(this,arguments)||this}function Td(e,t,i){var n,o;return V(t)?(n=N(),O(t,function(t){null!=t&&null!=Pr(t,null)&&n.set(t,!0)}),ut(i,function(t){return t&&n.get(t[e])})):(o=Pr(t,null),ut(i,function(t){return t&&null!=o&&t[e]===o}))}function Id(t,e){return e.hasOwnProperty("subType")?ut(t,function(t){return t&&t.subType===e.subType}):t}function Cd(t){var e=N();return t&&O(Tr(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}at(Md,_d);function Dd(e){O(kd,function(t){this[t]=S(e[t],e)},this)}var kd=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Ad={},Ld=(Pd.prototype.create=function(i,n){var o=[];O(Ad,function(t,e){t=t.create(i,n);o=o.concat(t||[])}),this._coordinateSystems=o},Pd.prototype.update=function(e,i){O(this._coordinateSystems,function(t){t.update&&t.update(e,i)})},Pd.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},Pd.register=function(t,e){Ad[t]=e},Pd.get=function(t){return Ad[t]},Pd);function Pd(){this._coordinateSystems=[]}var Od=/^(min|max)?(.+)$/,Rd=(zd.prototype.setOption=function(t,e,i){t&&(O(Tr(t.series),function(t){t&&t.data&&ft(t.data)&&Ct(t.data)}),O(Tr(t.dataset),function(t){t&&t.source&&ft(t.source)&&Ct(t.source)})),t=y(t);var n=this._optionBackup,t=function(t,i,n){var e,o,r=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,h=!!t.media,c=!!(l||s||a&&a.timeline);a?(o=a).timeline||(o.timeline=s):((c||h)&&(t.options=t.media=null),o=t);h&&V(u)&&O(u,function(t){t&&t.option&&(t.query?r.push(t):e=e||t)});function p(e){O(i,function(t){t(e,n)})}return p(o),O(l,p),O(r,function(t){return p(t.option)}),{baseOption:o,timelineOptions:l||[],mediaDefault:e,mediaList:r}}(t,e,!n);this._newBaseOption=t.baseOption,n?(t.timelineOptions.length&&(n.timelineOptions=t.timelineOptions),t.mediaList.length&&(n.mediaList=t.mediaList),t.mediaDefault&&(n.mediaDefault=t.mediaDefault)):this._optionBackup=t},zd.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],y(t?e.baseOption:this._newBaseOption)},zd.prototype.getTimelineOption=function(t){var e,i=this._timelineOptions;return e=i.length&&(t=t.getComponent("timeline"))?y(i[t.getCurrentIndex()]):e},zd.prototype.getMediaOption=function(t){var e=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,o=this._mediaDefault,r=[],a=[];if(n.length||o){for(var s,l,u=0,h=n.length;u<h;u++)!function(t,e,i){var n={width:e,height:i,aspectratio:e/i},o=!0;return O(t,function(t,e){var i,e=e.match(Od);e&&e[1]&&e[2]&&(i=e[1],e=e[2].toLowerCase(),e=n[e],t=t,("min"===(i=i)?t<=e:"max"===i?e<=t:e===t)||(o=!1))}),o}(n[u].query,e,i)||r.push(u);(r=!r.length&&o?[-1]:r).length&&(s=r,l=this._currentMediaIndices,s.join(",")!==l.join(","))&&(a=B(r,function(t){return y((-1===t?o:n[t]).option)})),this._currentMediaIndices=r}return a},zd);function zd(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}var Nd=O,Ed=R,Bd=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Vd(t){var e=t&&t.itemStyle;if(e)for(var i=0,n=Bd.length;i<n;i++){var o=Bd[i],r=e.normal,a=e.emphasis;r&&r[o]&&(t[o]=t[o]||{},t[o].normal?d(t[o].normal,r[o]):t[o].normal=r[o],r[o]=null),a&&a[o]&&(t[o]=t[o]||{},t[o].emphasis?d(t[o].emphasis,a[o]):t[o].emphasis=a[o],a[o]=null)}}function Fd(t,e,i){var n,o;t&&t[e]&&(t[e].normal||t[e].emphasis)&&(n=t[e].normal,o=t[e].emphasis,n&&(i?(t[e].normal=t[e].emphasis=null,E(t[e],n)):t[e]=n),o)&&(t.emphasis=t.emphasis||{},(t.emphasis[e]=o).focus&&(t.emphasis.focus=o.focus),o.blurScope)&&(t.emphasis.blurScope=o.blurScope)}function Hd(t){Fd(t,"itemStyle"),Fd(t,"lineStyle"),Fd(t,"areaStyle"),Fd(t,"label"),Fd(t,"labelLine"),Fd(t,"upperLabel"),Fd(t,"edgeLabel")}function Gd(t,e){var i=Ed(t)&&t[e],n=Ed(i)&&i.textStyle;if(n)for(var o=0,r=Cr.length;o<r;o++){var a=Cr[o];n.hasOwnProperty(a)&&(i[a]=n[a])}}function Wd(t){t&&(Hd(t),Gd(t,"label"),t.emphasis)&&Gd(t.emphasis,"label")}function Xd(t){return V(t)?t:t?[t]:[]}function Ud(t){return(V(t)?t[0]:t)||{}}function Yd(e,t){Nd(Xd(e.series),function(t){if(Ed(t))if(Ed(t)){Vd(t),Hd(t),Gd(t,"label"),Gd(t,"upperLabel"),Gd(t,"edgeLabel"),t.emphasis&&(Gd(t.emphasis,"label"),Gd(t.emphasis,"upperLabel"),Gd(t.emphasis,"edgeLabel"));var e=t.markPoint,i=(e&&(Vd(e),Wd(e)),t.markLine),n=(i&&(Vd(i),Wd(i)),t.markArea),o=(n&&Wd(n),t.data);if("graph"===t.type){var o=o||t.nodes,r=t.links||t.edges;if(r&&!ft(r))for(var a=0;a<r.length;a++)Wd(r[a]);O(t.categories,function(t){Hd(t)})}if(o&&!ft(o))for(a=0;a<o.length;a++)Wd(o[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)Wd(s[a]);if((i=t.markLine)&&i.data)for(var l=i.data,a=0;a<l.length;a++)V(l[a])?(Wd(l[a][0]),Wd(l[a][1])):Wd(l[a]);"gauge"===t.type?(Gd(t,"axisLabel"),Gd(t,"title"),Gd(t,"detail")):"treemap"===t.type?(Fd(t.breadcrumb,"itemStyle"),O(t.levels,function(t){Hd(t)})):"tree"===t.type&&Hd(t.leaves)}});var i=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&i.push("valueAxis","categoryAxis","logAxis","timeAxis"),Nd(i,function(t){Nd(Xd(e[t]),function(t){t&&(Gd(t,"axisLabel"),Gd(t.axisPointer,"label"))})}),Nd(Xd(e.parallel),function(t){t=t&&t.parallelAxisDefault;Gd(t,"axisLabel"),Gd(t&&t.axisPointer,"label")}),Nd(Xd(e.calendar),function(t){Fd(t,"itemStyle"),Gd(t,"dayLabel"),Gd(t,"monthLabel"),Gd(t,"yearLabel")}),Nd(Xd(e.radar),function(t){Gd(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)}),Nd(Xd(e.geo),function(t){Ed(t)&&(Wd(t),Nd(Xd(t.regions),function(t){Wd(t)}))}),Nd(Xd(e.timeline),function(t){Wd(t),Fd(t,"label"),Fd(t,"itemStyle"),Fd(t,"controlStyle",!0);t=t.data;V(t)&&O(t,function(t){R(t)&&(Fd(t,"label"),Fd(t,"itemStyle"))})}),Nd(Xd(e.toolbox),function(t){Fd(t,"iconStyle"),Nd(t.feature,function(t){Fd(t,"iconStyle")})}),Gd(Ud(e.axisPointer),"label"),Gd(Ud(e.tooltip).axisPointer,"label")}function Zd(e){e&&O(qd,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var qd=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],jd=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Kd=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function $d(t){var e=t&&t.itemStyle;if(e)for(var i=0;i<Kd.length;i++){var n=Kd[i][1],o=Kd[i][0];null!=e[n]&&(e[o]=e[n])}}function Qd(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Jd(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function tf(e,t){Yd(e,t),e.series=Tr(e.series),O(e.series,function(t){if(R(t)){var e,i=t.type;if("line"===i)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===i||"gauge"===i){if(null!=t.clockWise&&(t.clockwise=t.clockWise),Qd(t.label),(e=t.data)&&!ft(e))for(var n=0;n<e.length;n++)Qd(e[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset)}else if("gauge"===i){var o=function(t,e){for(var i=e.split(","),n=t,o=0;o<i.length&&null!=(n=n&&n[i[o]]);o++);return n}(t,"pointer.color");if(null!=o){var r=t;var a="itemStyle.color";var s=void 0;for(var l,u=a.split(","),h=r,c=0;c<u.length-1;c++)null==h[l=u[c]]&&(h[l]={}),h=h[l];!s&&null!=h[u[c]]||(h[u[c]]=o)}}else if("bar"===i){if($d(t),$d(t.backgroundStyle),$d(t.emphasis),(e=t.data)&&!ft(e))for(n=0;n<e.length;n++)"object"==typeof e[n]&&($d(e[n]),$d(e[n]&&e[n].emphasis))}else"sunburst"===i?((a=t.highlightPolicy)&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=a)),Jd(t),function t(e,i){if(e)for(var n=0;n<e.length;n++)i(e[n]),e[n]&&t(e[n].children,i)}(t.data,Jd)):"graph"===i||"sankey"===i?(r=t)&&null!=r.focusNodeAdjacency&&(r.emphasis=r.emphasis||{},null==r.emphasis.focus)&&(r.emphasis.focus="adjacency"):"map"===i&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation)&&E(t,t.mapLocation);null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis)&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation),Zd(t)}}),e.dataRange&&(e.visualMap=e.dataRange),O(jd,function(t){t=e[t];t&&O(t=V(t)?t:[t],function(t){Zd(t)})})}function ef(_){O(_,function(p,d){var f=[],g=[NaN,NaN],t=[p.stackResultDimension,p.stackedOverDimension],y=p.data,m=p.isStackedByIndex,v=p.seriesModel.get("stackStrategy")||"samesign";y.modify(t,function(t,e,i){var n,o,r=y.get(p.stackedDimension,i);if(isNaN(r))return g;m?o=y.getRawIndex(i):n=y.get(p.stackedByDimension,i);for(var a,s,l,u=NaN,h=d-1;0<=h;h--){var c=_[h];if(0<=(o=m?o:c.data.rawIndexOf(c.stackedByDimension,n))){c=c.data.getByRawIndex(c.stackResultDimension,o);if("all"===v||"positive"===v&&0<c||"negative"===v&&c<0||"samesign"===v&&0<=r&&0<c||"samesign"===v&&r<=0&&c<0){a=r,s=c,l=void 0,l=Math.max(lr(a),lr(s)),a+=s,r=nr<l?a:ar(a,l),u=c;break}}}return f[0]=r,f[1]=u,f})})}var nf,of,rf=function(t){this.data=t.data||(t.sourceFormat===od?{}:[]),this.sourceFormat=t.sourceFormat||ad,this.seriesLayoutBy=t.seriesLayoutBy||sd,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;i<e.length;i++){var n=e[i];null==n.type&&dd(this,i)===ud.Must&&(n.type="ordinal")}};function af(t){return t instanceof rf}function sf(t,e,i){i=i||uf(t);var n=e.seriesLayoutBy,o=function(t,e,i,n,o){var r,a;if(!t)return{dimensionsDefine:hf(o),startIndex:a,dimensionsDetectedCount:r};{var s;e===id?(s=t,"auto"===n||null==n?cf(function(t){null!=t&&"-"!==t&&(F(t)?null==a&&(a=1):a=0)},i,s,10):a=pt(n)?n:n?1:0,o||1!==a||(o=[],cf(function(t,e){o[e]=null!=t?t+"":""},i,s,1/0)),r=o?o.length:i===ld?s.length:s[0]?s[0].length:null):e===nd?o=o||function(t){var e,i=0;for(;i<t.length&&!(e=t[i++]););if(e)return ht(e)}(t):e===od?o||(o=[],O(t,function(t,e){o.push(e)})):e===ed&&(n=Dr(t[0]),r=V(n)&&n.length||1)}return{startIndex:a,dimensionsDefine:hf(o),dimensionsDetectedCount:r}}(t,i,n,e.sourceHeader,e.dimensions);return new rf({data:t,sourceFormat:i,seriesLayoutBy:n,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:y(e)})}function lf(t){return new rf({data:t,sourceFormat:ft(t)?rd:ed})}function uf(t){var e=ad;if(ft(t))e=rd;else if(V(t)){0===t.length&&(e=id);for(var i=0,n=t.length;i<n;i++){var o=t[i];if(null!=o){if(V(o)||ft(o)){e=id;break}if(R(o)){e=nd;break}}}}else if(R(t))for(var r in t)if(Et(t,r)&&st(t[r])){e=od;break}return e}function hf(t){var n;if(t)return n=N(),B(t,function(t,e){var i,t={name:(t=R(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};return null!=t.name&&(t.name+="",null==t.displayName&&(t.displayName=t.name),(i=n.get(t.name))?t.name+="-"+i.count++:n.set(t.name,{count:1})),t})}function cf(t,e,i,n){if(e===ld)for(var o=0;o<i.length&&o<n;o++)t(i[o]?i[o][0]:null,o);else for(var r=i[0]||[],o=0;o<r.length&&o<n;o++)t(r[o],o)}function pf(t){t=t.sourceFormat;return t===nd||t===od}mf.prototype.getSource=function(){return this._source},mf.prototype.count=function(){return 0},mf.prototype.getItem=function(t,e){},mf.prototype.appendData=function(t){},mf.prototype.clean=function(){},mf.protoInitialize=((ic=mf.prototype).pure=!1,void(ic.persistent=!0)),mf.internalField=(of=function(t,e,i){var n,o=i.sourceFormat,r=i.seriesLayoutBy,a=i.startIndex,i=i.dimensionsDefine;P(t,nf[Df(o,r)]),o===rd?(t.getItem=df,t.count=gf,t.fillStorage=ff):(n=wf(o,r),t.getItem=S(n,null,e,a,i),n=Mf(o,r),t.count=S(n,null,e,a,i))},df=function(t,e){t-=this._offset,e=e||[];for(var i=this._data,n=this._dimSize,o=n*t,r=0;r<n;r++)e[r]=i[o+r];return e},ff=function(t,e,i,n){for(var o=this._data,r=this._dimSize,a=0;a<r;a++){for(var s=n[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],h=e-t,c=i[a],p=0;p<h;p++){var d=o[p*r+a];(c[t+p]=d)<l&&(l=d),u<d&&(u=d)}s[0]=l,s[1]=u}},gf=function(){return this._data?this._data.length/this._dimSize:0},(ic={})[id+"_"+sd]={pure:!0,appendData:vf},ic[id+"_"+ld]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},ic[nd]={pure:!0,appendData:vf},ic[od]={pure:!0,appendData:function(t){var o=this._data;O(t,function(t,e){for(var i=o[e]||(o[e]=[]),n=0;n<(t||[]).length;n++)i.push(t[n])})}},ic[ed]={appendData:vf},ic[rd]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},void(nf=ic));var df,ff,gf,yf=mf;function mf(t,e){var t=af(t)?t:lf(t),i=(this._source=t,this._data=t.data);t.sourceFormat===rd&&(this._offset=0,this._dimSize=e,this._data=i),of(this,i,t)}function vf(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function _f(t,e,i,n){return t[n]}(rp={})[id+"_"+sd]=function(t,e,i,n){return t[n+e]},rp[id+"_"+ld]=function(t,e,i,n,o){n+=e;for(var r=o||[],a=t,s=0;s<a.length;s++){var l=a[s];r[s]=l?l[n]:null}return r},rp[nd]=_f,rp[od]=function(t,e,i,n,o){for(var r=o||[],a=0;a<i.length;a++){var s=t[i[a].name];r[a]=s?s[n]:null}return r},rp[ed]=_f;var xf=rp;function wf(t,e){return xf[Df(t,e)]}function bf(t,e,i){return t.length}(zc={})[id+"_"+sd]=function(t,e,i){return Math.max(0,t.length-e)},zc[id+"_"+ld]=function(t,e,i){t=t[0];return t?Math.max(0,t.length-e):0},zc[nd]=bf,zc[od]=function(t,e,i){t=t[i[0].name];return t?t.length:0},zc[ed]=bf;var Sf=zc;function Mf(t,e){return Sf[Df(t,e)]}function Tf(t,e,i){return t[e]}(oa={})[id]=Tf,oa[nd]=function(t,e,i){return t[i]},oa[od]=Tf,oa[ed]=function(t,e,i){t=Dr(t);return t instanceof Array?t[e]:t},oa[rd]=Tf;var If=oa;function Cf(t){return If[t]}function Df(t,e){return t===id?t+"_"+e:t}function kf(t,e,i){if(t){var n,o,e=t.getRawDataItem(e);if(null!=e)return n=(o=t.getStore()).getSource().sourceFormat,null!=i?(t=t.getDimensionIndex(i),i=o.getDimensionProperty(t),Cf(n)(e,t,i)):(o=e,n===ed?Dr(e):o)}}var Af=/\{@(.+?)\}/g,Lf=(Pf.prototype.getDataParams=function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),o=i.getRawIndex(t),r=i.getName(t),a=i.getRawDataItem(t),s=i.getItemVisual(t,"style"),t=s&&s[i.getItemVisual(t,"drawType")||"fill"],s=s&&s.stroke,l=this.mainType,u="series"===l,i=i.userOutput&&i.userOutput.get();return{componentType:l,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:u?this.subType:null,seriesIndex:this.seriesIndex,seriesId:u?this.id:null,seriesName:u?this.name:null,name:r,dataIndex:o,data:a,dataType:e,value:n,color:t,borderColor:s,dimensionNames:i?i.fullDimensions:null,encode:i?i.encode:null,$vars:["seriesName","name","value"]}},Pf.prototype.getFormattedLabel=function(n,t,e,i,o,r){t=t||"normal";var a=this.getData(e),e=this.getDataParams(n,e);return r&&(e.value=r.interpolatedValue),null!=i&&V(e.value)&&(e.value=e.value[i]),D(o=o||a.getItemModel(n).get("normal"===t?["label","formatter"]:[t,"label","formatter"]))?(e.status=t,e.dimensionIndex=i,o(e)):F(o)?Op(o,e).replace(Af,function(t,e){var i=e.length,i=("["===e.charAt(0)&&"]"===e.charAt(i-1)&&(e=+e.slice(1,i-1)),kf(a,n,e));return null!=(i=r&&V(r.interpolatedValue)&&0<=(e=a.getDimensionIndex(e))?r.interpolatedValue[e]:i)?i+"":""}):void 0},Pf.prototype.getRawValue=function(t,e){return kf(this.getData(e),t)},Pf.prototype.formatTooltip=function(t,e,i){},Pf);function Pf(){}function Of(t){var e,i;return R(t)?t.type&&(i=t):e=t,{text:e,frag:i}}function Rf(t){return new zf(t)}Nf.prototype.perform=function(t){var e,i,n=this._upstream,o=t&&t.skip,r=(this._dirty&&n&&((r=this.context).data=r.outputData=n.context.outputData),this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!o&&(e=this._plan(this.context)),u(this._modBy)),a=this._modDataCount||0,s=u(t&&t.modBy),l=t&&t.modDataCount||0;function u(t){return t=1<=t?t:1}r===s&&a===l||(e="reset"),!this._dirty&&"reset"!==e||(this._dirty=!1,i=this._doReset(o)),this._modBy=s,this._modDataCount=l;r=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,c=Math.min(null!=r?this._dueIndex+r:1/0,this._dueEnd);if(!o&&(i||h<c)){var p=this._progress;if(V(p))for(var d=0;d<p.length;d++)this._doProgress(p[d],h,c,s,l);else this._doProgress(p,h,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()},Nf.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},Nf.prototype._doProgress=function(t,e,i,n,o){Wf.reset(e,i,n,o),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:Wf.next},this.context)},Nf.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(i=e.forceFirstProgress,e=e.progress),V(e))&&!e.length&&(e=null),this._progress=e,this._modBy=this._modDataCount=null;var e,i,t=this._downstream;return t&&t.dirty(),i},Nf.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},Nf.prototype.pipe=function(t){this._downstream===t&&!this._dirty||((this._downstream=t)._upstream=this,t.dirty())},Nf.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},Nf.prototype.getUpstream=function(){return this._upstream},Nf.prototype.getDownstream=function(){return this._downstream},Nf.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var zf=Nf;function Nf(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}var Ef,Bf,Vf,Ff,Hf,Gf,Wf=Gf={reset:function(t,e,i,n){Bf=t,Ef=e,Vf=i,Ff=n,Hf=Math.ceil(Ff/Vf),Gf.next=1<Vf&&0<Ff?Uf:Xf}};function Xf(){return Bf<Ef?Bf++:null}function Uf(){var t=Bf%Hf*Vf+Math.ceil(Bf/Hf),t=Ef<=Bf?null:t<Ff?t:Bf;return Bf++,t}function Yf(t,e){e=e&&e.type;return"ordinal"===e?t:null==(t="time"!==e||pt(t)||null==t||"-"===t?t:+fr(t))||""===t?NaN:Number(t)}var Zf=N({number:function(t){return parseFloat(t)},time:function(t){return+fr(t)},trim:function(t){return F(t)?Tt(t):t}});function qf(t){return Zf.get(t)}var jf={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}},Kf=($f.prototype.evaluate=function(t){return pt(t)?this._opFn(t,this._rvalFloat):this._opFn(_r(t),this._rvalFloat)},$f);function $f(t,e){pt(e)||f(""),this._opFn=jf[t],this._rvalFloat=_r(e)}Jf.prototype.evaluate=function(t,e){var i=pt(t)?t:_r(t),n=pt(e)?e:_r(e),o=isNaN(i),r=isNaN(n);return o&&(i=this._incomparable),r&&(n=this._incomparable),o&&r&&(o=F(t),r=F(e),o&&(i=r?t:0),r)&&(n=o?e:0),i<n?this._resultLT:n<i?-this._resultLT:0};var Qf=Jf;function Jf(t,e){t="desc"===t;this._resultLT=t?1:-1,this._incomparable="min"===(e=null==e?t?"min":"max":e)?-1/0:1/0}eg.prototype.evaluate=function(t){var e,i=t===this._rval;return i||(e=typeof t)===this._rvalTypeof||"number"!=e&&"number"!==this._rvalTypeof||(i=_r(t)===this._rvalFloat),this._isEQ?i:!i};var tg=eg;function eg(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=_r(e)}ng.prototype.getRawData=function(){throw new Error("not supported")},ng.prototype.getRawDataItem=function(t){throw new Error("not supported")},ng.prototype.cloneRawData=function(){},ng.prototype.getDimensionInfo=function(t){},ng.prototype.cloneAllDimensionInfo=function(){},ng.prototype.count=function(){},ng.prototype.retrieveValue=function(t,e){},ng.prototype.retrieveValueFromItem=function(t,e){},ng.prototype.convertValue=Yf;var ig=ng;function ng(){}function og(t){return hg(t.sourceFormat)||f(""),t.data}function rg(t){var e=t.sourceFormat,i=t.data;if(hg(e)||f(""),e===id){for(var n=[],o=0,r=i.length;o<r;o++)n.push(i[o].slice());return n}if(e===nd){for(n=[],o=0,r=i.length;o<r;o++)n.push(P({},i[o]));return n}}function ag(t,e,i){if(null!=i)return pt(i)||!isNaN(i)&&!Et(e,i)?t[i]:Et(e,i)?e[i]:void 0}function sg(t){return y(t)}var lg=N();function ug(t,e){var i=Tr(t),t=i.length;t||f("");for(var n=0,o=t;n<o;n++)e=function(t,n){n.length||f("");R(t)||f("");var e=t.type,d=lg.get(e);d||f("");e=B(n,function(t){var e=t,t=d,i=new ig,n=e.data,o=i.sourceFormat=e.sourceFormat,r=e.startIndex,a=(e.seriesLayoutBy!==sd&&f(""),[]),s={};if(h=e.dimensionsDefine)O(h,function(t,e){var i=t.name,e={index:e,name:i,displayName:t.displayName};a.push(e),null!=i&&(Et(s,i)&&f(""),s[i]=e)});else for(var l=0;l<e.dimensionsDetectedCount;l++)a.push({index:l});var u=wf(o,sd),h=(t.__isBuiltIn&&(i.getRawDataItem=function(t){return u(n,r,a,t)},i.getRawData=S(og,null,e)),i.cloneRawData=S(rg,null,e),Mf(o,sd)),c=(i.count=S(h,null,n,r,a),Cf(o)),p=(i.retrieveValue=function(t,e){t=u(n,r,a,t);return p(t,e)},i.retrieveValueFromItem=function(t,e){var i;return null!=t&&(i=a[e])?c(t,e,i.name):void 0});return i.getDimensionInfo=S(ag,null,a,s),i.cloneAllDimensionInfo=S(sg,null,a),i});return B(Tr(d.transform({upstream:e[0],upstreamList:e,config:y(t.config)})),function(t,e){R(t)||f(""),t.data||f("");hg(uf(t.data))||f("");var i=n[0],e=i&&0===e&&!t.dimensions?((e=i.startIndex)&&(t.data=i.data.slice(0,e).concat(t.data)),{seriesLayoutBy:sd,sourceHeader:e,dimensions:i.metaRawOption.dimensions}):{seriesLayoutBy:sd,sourceHeader:0,dimensions:t.dimensions};return sf(t.data,e,null)})}(i[n],e),n!==o-1&&(e.length=Math.max(e.length,1));return e}function hg(t){return t===id||t===nd}var cg,Vc="undefined",pg=typeof Uint32Array==Vc?Array:Uint32Array,dg=typeof Uint16Array==Vc?Array:Uint16Array,fg=typeof Int32Array==Vc?Array:Int32Array,ic=typeof Float64Array==Vc?Array:Float64Array,gg={float:ic,int:fg,ordinal:Array,number:Array,time:ic};function yg(t){return 65535<t?pg:dg}function mg(){return[1/0,-1/0]}function vg(t,e,i,n,o){i=gg[i||"float"];if(o){var r=t[e],a=r&&r.length;if(a!==n){for(var s=new i(n),l=0;l<a;l++)s[l]=r[l];t[e]=s}}else t[e]=new i(n)}l.prototype.initData=function(t,e,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),o=this.defaultDimValueGetter=cg[n.sourceFormat];this._dimValueGetter=i||o,this._rawExtent=[],pf(n),this._dimensions=B(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},l.prototype.getProvider=function(){return this._provider},l.prototype.getSource=function(){return this._provider.getSource()},l.prototype.ensureCalculationDimension=function(t,e){var i=this._calcDimNameToIdx,n=this._dimensions,o=i.get(t);if(null!=o){if(n[o].type===e)return o}else o=n.length;return n[o]={type:e},i.set(t,o),this._chunks[o]=new gg[e||"float"](this._rawCount),this._rawExtent[o]=mg(),o},l.prototype.collectOrdinalMeta=function(t,e){for(var i=this._chunks[t],n=this._dimensions[t],o=this._rawExtent,r=n.ordinalOffset||0,a=i.length,s=(0===r&&(o[t]=mg()),o[t]),l=r;l<a;l++){var u=i[l]=e.parseAndCollect(i[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}n.ordinalMeta=e,n.ordinalOffset=a,n.type="ordinal"},l.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},l.prototype.getDimensionProperty=function(t){t=this._dimensions[t];return t&&t.property},l.prototype.appendData=function(t){var e=this._provider,i=this.count(),t=(e.appendData(t),e.count());return e.persistent||(t+=i),i<t&&this._initDataFromProvider(i,t,!0),[i,t]},l.prototype.appendValues=function(t,e){for(var i=this._chunks,n=this._dimensions,o=n.length,r=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<o;l++)vg(i,l,(d=n[l]).type,s,!0);for(var u=[],h=a;h<s;h++)for(var c=h-a,p=0;p<o;p++){var d=n[p],f=cg.arrayRows.call(this,t[c]||u,d.property,c,p),g=(i[p][h]=f,r[p]);f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return{start:a,end:this._rawCount=this._count=s}},l.prototype._initDataFromProvider=function(t,e,i){for(var n=this._provider,o=this._chunks,r=this._dimensions,a=r.length,s=this._rawExtent,l=B(r,function(t){return t.property}),u=0;u<a;u++){var h=r[u];s[u]||(s[u]=mg()),vg(o,u,h.type,e,i)}if(n.fillStorage)n.fillStorage(t,e,o,s);else for(var c=[],p=t;p<e;p++)for(var c=n.getItem(p,c),d=0;d<a;d++){var f=o[d],g=this._dimValueGetter(c,l[d],p,d),f=(f[p]=g,s[d]);g<f[0]&&(f[0]=g),g>f[1]&&(f[1]=g)}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},l.prototype.count=function(){return this._count},l.prototype.get=function(t,e){return 0<=e&&e<this._count&&(t=this._chunks[t])?t[this.getRawIndex(e)]:NaN},l.prototype.getValues=function(t,e){var i=[],n=[];if(null==e){e=t,t=[];for(var o=0;o<this._dimensions.length;o++)n.push(o)}else n=t;for(var o=0,r=n.length;o<r;o++)i.push(this.get(n[o],e));return i},l.prototype.getByRawIndex=function(t,e){return 0<=e&&e<this._rawCount&&(t=this._chunks[t])?t[e]:NaN},l.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var i=0,n=this.count();i<n;i++){var o=this.get(t,i);isNaN(o)||(e+=o)}return e},l.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})),i=this.count();return 0===i?0:i%2==1?t[(i-1)/2]:(t[i/2]+t[i/2-1])/2},l.prototype.indexOfRawIndex=function(t){if(!(t>=this._rawCount||t<0)){if(!this._indices)return t;var e=this._indices,i=e[t];if(null!=i&&i<this._count&&i===t)return t;for(var n=0,o=this._count-1;n<=o;){var r=(n+o)/2|0;if(e[r]<t)n=1+r;else{if(!(e[r]>t))return r;o=r-1}}}return-1},l.prototype.indicesOfNearest=function(t,e,i){var n=this._chunks[t],o=[];if(n){null==i&&(i=1/0);for(var r=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var h=e-n[this.getRawIndex(l)],c=Math.abs(h);c<=i&&((c<r||c===r&&0<=h&&a<0)&&(r=c,a=h,s=0),h===a)&&(o[s++]=l)}o.length=s}return o},l.prototype.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,i=this._count;if(e===Array)for(var n=new e(i),o=0;o<i;o++)n[o]=t[o];else n=new e(t.buffer,0,i)}else{n=new(e=yg(this._rawCount))(this.count());for(o=0;o<n.length;o++)n[o]=o}return n},l.prototype.filter=function(t,e){if(!this._count)return this;for(var i=this.clone(),n=i.count(),o=new(yg(i._rawCount))(n),r=[],a=t.length,s=0,l=t[0],u=i._chunks,h=0;h<n;h++){var c=void 0,p=i.getRawIndex(h);if(0===a)c=e(h);else if(1===a)c=e(u[l][p],h);else{for(var d=0;d<a;d++)r[d]=u[t[d]][p];r[d]=h,c=e.apply(null,r)}c&&(o[s++]=p)}return s<n&&(i._indices=o),i._count=s,i._extent=[],i._updateGetRawIdx(),i},l.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var n=ht(t),o=n.length;if(!o)return this;var r=e.count(),a=new(yg(e._rawCount))(r),s=0,l=n[0],u=t[l][0],h=t[l][1],c=e._chunks,l=!1;if(!e._indices){var p=0;if(1===o){for(var d=c[n[0]],f=0;f<i;f++)(u<=(v=d[f])&&v<=h||isNaN(v))&&(a[s++]=p),p++;l=!0}else if(2===o){for(var d=c[n[0]],g=c[n[1]],y=t[n[1]][0],m=t[n[1]][1],f=0;f<i;f++){var v=d[f],_=g[f];(u<=v&&v<=h||isNaN(v))&&(y<=_&&_<=m||isNaN(_))&&(a[s++]=p),p++}l=!0}}if(!l)if(1===o)for(f=0;f<r;f++){var x=e.getRawIndex(f);(u<=(v=c[n[0]][x])&&v<=h||isNaN(v))&&(a[s++]=x)}else for(f=0;f<r;f++){for(var w=!0,x=e.getRawIndex(f),b=0;b<o;b++){var S=n[b];((v=c[S][x])<t[S][0]||v>t[S][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(f))}return s<r&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},l.prototype.map=function(t,e){var i=this.clone(t);return this._updateDims(i,t,e),i},l.prototype.modify=function(t,e){this._updateDims(this,t,e)},l.prototype._updateDims=function(t,e,i){for(var n=t._chunks,o=[],r=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=mg();for(var h=0;h<a;h++){for(var c=t.getRawIndex(h),p=0;p<r;p++)s[p]=n[e[p]][c];s[r]=h;var d=i&&i.apply(null,s);if(null!=d){"object"!=typeof d&&(o[0]=d,d=o);for(u=0;u<d.length;u++){var f=e[u],g=d[u],y=l[f],f=n[f];f&&(f[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},l.prototype.lttbDownSample=function(t,e){var i,n=this.clone([t],!0),o=n._chunks[t],r=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),u=new(yg(this._rawCount))(Math.min(2*(Math.ceil(r/s)+2),r));u[a++]=l;for(var h=1;h<r-1;h+=s){for(var c=Math.min(h+s,r-1),p=Math.min(h+2*s,r),d=(p+c)/2,f=0,g=c;g<p;g++){var y=o[M=this.getRawIndex(g)];isNaN(y)||(f+=y)}f/=p-c;for(var c=h,m=Math.min(h+s,r),v=h-1,_=o[l],x=-1,w=c,b=-1,S=0,g=c;g<m;g++){var M,y=o[M=this.getRawIndex(g)];isNaN(y)?(S++,b<0&&(b=M)):x<(i=Math.abs((v-d)*(y-_)-(v-g)*(f-_)))&&(x=i,w=M)}0<S&&S<m-c&&(u[a++]=Math.min(b,w),w=Math.max(b,w)),l=u[a++]=w}return u[a++]=this.getRawIndex(r-1),n._count=a,n._indices=u,n.getRawIndex=this._getRawIdx,n},l.prototype.downSample=function(t,e,i,n){for(var o=this.clone([t],!0),r=o._chunks,a=[],s=Math.floor(1/e),l=r[t],u=this.count(),h=o._rawExtent[t]=mg(),c=new(yg(this._rawCount))(Math.ceil(u/s)),p=0,d=0;d<u;d+=s){u-d<s&&(a.length=s=u-d);for(var f=0;f<s;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var y=i(a),m=this.getRawIndex(Math.min(d+n(a,y)||0,u-1));(l[m]=y)<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),c[p++]=m}return o._count=p,o._indices=c,o._updateGetRawIdx(),o},l.prototype.each=function(t,e){if(this._count)for(var i=t.length,n=this._chunks,o=0,r=this.count();o<r;o++){var a=this.getRawIndex(o);switch(i){case 0:e(o);break;case 1:e(n[t[0]][a],o);break;case 2:e(n[t[0]][a],n[t[1]][a],o);break;default:for(var s=0,l=[];s<i;s++)l[s]=n[t[s]][a];l[s]=o,e.apply(null,l)}}},l.prototype.getDataExtent=function(t){var e=this._chunks[t],i=mg();if(!e)return i;var n=this.count();if(!this._indices)return this._rawExtent[t].slice();if(o=this._extent[t])return o.slice();for(var o,r=(o=i)[0],a=o[1],s=0;s<n;s++){var l=e[this.getRawIndex(s)];l<r&&(r=l),a<l&&(a=l)}return this._extent[t]=o=[r,a]},l.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],n=this._chunks,o=0;o<n.length;o++)i.push(n[o][e]);return i},l.prototype.clone=function(t,e){var i,n,o=new l,r=this._chunks,a=t&&lt(t,function(t,e){return t[e]=!0,t},{});if(a)for(var s=0;s<r.length;s++)o._chunks[s]=a[s]?(i=r[s],n=void 0,(n=i.constructor)===Array?i.slice():new n(i)):r[s];else o._chunks=r;return this._copyCommonProps(o),e||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},l.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=y(this._extent),t._rawExtent=y(this._rawExtent)},l.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array)for(var i=this._indices.length,e=new t(i),n=0;n<i;n++)e[n]=this._indices[n];else e=new t(this._indices);return e}return null},l.prototype._getRawIdxIdentity=function(t){return t},l.prototype._getRawIdx=function(t){return t<this._count&&0<=t?this._indices[t]:-1},l.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},l.internalField=void(cg={arrayRows:xg,objectRows:function(t,e,i,n){return Yf(t[e],this._dimensions[n])},keyedColumns:xg,original:function(t,e,i,n){t=t&&(null==t.value?t:t.value);return Yf(t instanceof Array?t[n]:t,this._dimensions[n])},typedArray:function(t,e,i,n){return t[n]}});var _g=l;function l(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=N()}function xg(t,e,i,n){return Yf(t[n],this._dimensions[n])}bg.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},bg.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,9e10<this._versionSignBase&&(this._versionSignBase=0)},bg.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},bg.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},bg.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,i,n,o,r,a,s=this._sourceHost,l=this._getUpstreamSourceManagers(),u=!!l.length;Mg(s)?(n=s,o=t=r=void 0,e=u?((e=l[0]).prepareSource(),r=(o=e.getSource()).data,t=o.sourceFormat,[e._getVersionSign()]):(t=ft(r=n.get("data",!0))?rd:ed,[]),n=this._getSourceMetaRawOption()||{},o=o&&o.metaRawOption||{},a=z(n.seriesLayoutBy,o.seriesLayoutBy)||null,i=z(n.sourceHeader,o.sourceHeader),n=z(n.dimensions,o.dimensions),o=a!==o.seriesLayoutBy||!!i!=!!o.sourceHeader||n?[sf(r,{seriesLayoutBy:a,sourceHeader:i,dimensions:n},t)]:[]):(r=s,e=u?(o=(a=this._applyTransform(l)).sourceList,a.upstreamSignList):(o=[sf(r.get("source",!0),this._getSourceMetaRawOption(),null)],[])),this._setLocalSource(o,e)},bg.prototype._applyTransform=function(t){var e,i=this._sourceHost,n=i.get("transform",!0),o=i.get("fromTransformResult",!0),r=(null!=o&&1!==t.length&&Tg(""),[]),a=[];return O(t,function(t){t.prepareSource();var e=t.getSource(o||0);null==o||e||Tg(""),r.push(e),a.push(t._getVersionSign())}),n?e=ug(n,r,i.componentIndex):null!=o&&(e=[new rf({data:(t=r[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:y(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})]),{sourceList:e,upstreamSignList:a}},bg.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var i=t[e];if(i._isDirty()||this._upstreamSignList[e]!==i._getVersionSign())return!0}},bg.prototype.getSource=function(t){var e=this._sourceList[t=t||0];return e||(e=this._getUpstreamSourceManagers())[0]&&e[0].getSource(t)},bg.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},bg.prototype._innerGetDataStore=function(t,e,i){var n,o=this._storeList,r=o[0],o=(r=r||(o[0]={}))[i];return o||(n=this._getUpstreamSourceManagers()[0],Mg(this._sourceHost)&&n?o=n._innerGetDataStore(t,e,i):(o=new _g).initData(new yf(e,t.length),t),r[i]=o),o},bg.prototype._getUpstreamSourceManagers=function(){var t,e=this._sourceHost;return Mg(e)?(t=pd(e))?[t.getSourceManager()]:[]:B((t=e).get("transform",!0)||t.get("fromTransformResult",!0)?Wr(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Hr).models:[],function(t){return t.getSourceManager()})},bg.prototype._getSourceMetaRawOption=function(){var t,e,i,n=this._sourceHost;return Mg(n)?(t=n.get("seriesLayoutBy",!0),e=n.get("sourceHeader",!0),i=n.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(t=(n=n).get("seriesLayoutBy",!0),e=n.get("sourceHeader",!0),i=n.get("dimensions",!0)),{seriesLayoutBy:t,sourceHeader:e,dimensions:i}};var wg=bg;function bg(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}function Sg(t){t.option.transform&&Ct(t.option.transform)}function Mg(t){return"series"===t.mainType}function Tg(t){throw new Error(t)}var Ig="line-height:1";function Cg(t,e){var i=t.color||"#6e7079",n=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:"+ve(n+"")+"px;color:"+ve(i)+";font-weight:"+ve(o+""),valueStyle:"font-size:"+ve(a+"")+"px;color:"+ve(r)+";font-weight:"+ve(t+"")}:{nameStyle:{fontSize:n,fill:i,fontWeight:o},valueStyle:{fontSize:a,fill:r,fontWeight:t}}}var Dg=[0,10,20,30],kg=["","\n","\n\n","\n\n\n"];function Ag(t,e){return e.type=t,e}function Lg(t){return"section"===t.type}function Pg(t){return Lg(t)?Og:Rg}function Og(n,o,t,r){var i,e=o.noHeader,a=(l=function i(t){var n,e,o;return Lg(t)?(n=0,e=t.blocks.length,o=1<e||0<e&&!t.noHeader,O(t.blocks,function(t){var e=i(t);n<=e&&(n=e+ +(o&&(!e||Lg(t)&&!t.noHeader)))}),n):0}(o),{html:Dg[l],richText:kg[l]}),s=[],l=o.blocks||[],u=(Mt(!l||V(l)),l=l||[],n.orderMode),h=(o.sortBlocks&&u&&(l=l.slice(),Et(h={valueAsc:"asc",valueDesc:"desc"},u)?(i=new Qf(h[u],null),l.sort(function(t,e){return i.evaluate(t.sortParam,e.sortParam)})):"seriesDesc"===u&&l.reverse()),O(l,function(t,e){var i=o.valueFormatter,i=Pg(t)(i?P(P({},n),{valueFormatter:i}):n,t,0<e?a.html:0,r);null!=i&&s.push(i)}),"richText"===n.renderMode?s.join(a.richText):Ng(s.join(""),e?t:a.html));return e?h:(u=Ap(o.header,"ordinal",n.useUTC),l=Cg(r,n.renderMode).nameStyle,"richText"===n.renderMode?Eg(n,u,l)+a.richText+h:Ng('<div style="'+l+";"+Ig+';">'+ve(u)+"</div>"+h,t))}function Rg(t,e,i,n){var o,r,a,s,l=t.renderMode,u=e.noName,h=e.noValue,c=!e.markerType,p=e.name,d=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(t){return B(t=V(t)?t:[t],function(t,e){return Ap(t,V(r)?r[e]:r,d)})};if(!u||!h)return o=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",l),p=u?"":Ap(p,"ordinal",d),r=e.valueType,f=h?[]:f(e.value,e.dataIndex),e=!c||!u,a=!c&&u,n=Cg(n,l),s=n.nameStyle,n=n.valueStyle,"richText"===l?(c?"":o)+(u?"":Eg(t,p,s))+(h?"":function(t,e,i,n,o){o=[o],n=n?10:20;return i&&o.push({padding:[0,0,0,n],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(V(e)?e.join(" "):e,o)}(t,f,e,a,n)):Ng((c?"":o)+(u?"":'<span style="'+s+";"+(!c?"margin-left:2px":"")+'">'+ve(p)+"</span>")+(h?"":function(t,e,i,n){i=i?"10px":"20px",e=e?"float:right;margin-left:"+i:"";return t=V(t)?t:[t],'<span style="'+e+";"+n+'">'+B(t,ve).join("&nbsp;&nbsp;")+"</span>"}(f,e,a,n)),i)}function zg(t,e,i,n,o,r){if(t)return Pg(t)({useUTC:o,renderMode:i,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,r)}function Ng(t,e){return'<div style="'+("margin: "+e+"px 0 0")+";"+Ig+';">'+t+'<div style="clear:both"></div></div>'}function Eg(t,e,i){return t.markupStyleCreator.wrapRichTextStyle(e,i)}function Bg(t,e){t=t.get("padding");return null!=t?t:"richText"===e?[8,10]:10}Fg.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},Fg.prototype.makeTooltipMarker=function(t,e,i){var n="richText"===i?this._generateStyleName():null,e=Rp({color:e,type:t,renderMode:i,markerId:n});return F(e)?e:(this.richTextStyles[n]=e.style,e.content)},Fg.prototype.wrapRichTextStyle=function(t,e){var i={},e=(V(e)?O(e,function(t){return P(i,t)}):P(i,e),this._generateStyleName());return this.richTextStyles[e]=i,"{"+e+"|"+t+"}"};var Vg=Fg;function Fg(){this.richTextStyles={},this._nextStyleNameId=wr()}function Hg(t){var e,i,n,o,r,a,s,l,u,h,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=V(m),_=(_=d,zp((w=p).getData().getItemVisual(_,"style")[w.visualDrawType]));function x(t,e){e=s.getDimensionInfo(e);e&&!1!==e.otherDims.tooltip&&(l?c.push(Ag("nameValue",{markerType:"subItem",markerColor:a,name:e.displayName,value:t,valueType:e.type})):(u.push(t),h.push(e.type)))}1<y||v&&!y?(w=m,o=d,r=g,a=_,s=p.getData(),l=lt(w,function(t,e,i){i=s.getDimensionInfo(i);return t||i&&!1!==i.tooltip&&null!=i.displayName},!1),u=[],h=[],c=[],r.length?O(r,function(t){x(kf(s,o,t),t)}):O(w,x),e=(r={inlineValues:u,inlineValueTypes:h,blocks:c}).inlineValueTypes,i=r.blocks,n=(r=r.inlineValues)[0]):y?(w=f.getDimensionInfo(g[0]),n=r=kf(f,d,g[0]),e=w.type):n=r=v?m[0]:m;var y=Or(p),g=y&&p.name||"",w=f.getName(d),v=t?g:w;return Ag("section",{header:g,noHeader:t||!y,sortParam:n,blocks:[Ag("nameValue",{markerType:"item",markerColor:_,name:v,noName:!Tt(v),value:r,valueType:e,dataIndex:d})].concat(i||[])})}var Gg=Er();function Wg(t,e){return t.getName(e)||t.getId(e)}u(s,Xg=g),s.prototype.init=function(t,e,i){this.seriesIndex=this.componentIndex,this.dataTask=Rf({count:Zg,reset:qg}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i);(Gg(this).sourceManager=new wg(this)).prepareSource();t=this.getInitialData(t,i);Kg(t,this),this.dataTask.context.data=t,Gg(this).dataBeforeProcessed=t,Yg(this),this._initSelectedMapFromData(t)},s.prototype.mergeDefaultAndTheme=function(t,e){var i=Wp(this),n=i?Up(t):{},o=this.subType;g.hasClass(o),d(t,e.getTheme().get(this.subType)),d(t,this.getDefaultOption()),Ir(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&Xp(t,n,i)},s.prototype.mergeOption=function(t,e){t=d(this.option,t,!0),this.fillDataTextStyle(t.data);var i=Wp(this),i=(i&&Xp(this.option,t,i),Gg(this).sourceManager),i=(i.dirty(),i.prepareSource(),this.getInitialData(t,e));Kg(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Gg(this).dataBeforeProcessed=i,Yg(this),this._initSelectedMapFromData(i)},s.prototype.fillDataTextStyle=function(t){if(t&&!ft(t))for(var e=["show"],i=0;i<t.length;i++)t[i]&&t[i].label&&Ir(t[i],"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=Qg(this);return e?(e=e.context.data,null!=t&&e.getLinkedData?e.getLinkedData(t):e):Gg(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,i=Qg(this);i&&((e=i.context).outputData=t,i!==this.dataTask)&&(e.data=t),Gg(this).data=t},s.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return N(t)},s.prototype.getSourceManager=function(){return Gg(this).sourceManager},s.prototype.getSource=function(){return this.getSourceManager().getSource()},s.prototype.getRawData=function(){return Gg(this).dataBeforeProcessed},s.prototype.getColorBy=function(){return this.get("colorBy")||"series"},s.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},s.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},s.prototype.formatTooltip=function(t,e,i){return Hg({series:this,dataIndex:t,multipleSeries:e})},s.prototype.isAnimationEnabled=function(){var t=this.ecModel;return!!(!b.node||t&&t.ssr)&&!!(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,i){var n=this.ecModel;return _d.prototype.getColorFromPalette.call(this,t,e,i)||n.getColorFromPalette(t,e,i)},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 i=this.option.selectedMap;if(i){var n=this.option.selectedMode,o=this.getData(e);if("series"===n||"all"===i)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var r=0;r<t.length;r++){var a=Wg(o,t[r]);i[a]=!1,this._selectedDataIndicesMap[a]=-1}}},s.prototype.toggleSelect=function(t,e){for(var i=[],n=0;n<t.length;n++)i[0]=t[n],this.isSelected(t[n],e)?this.unselect(i,e):this.select(i,e)},s.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=ht(t),i=[],n=0;n<e.length;n++){var o=t[e[n]];0<=o&&i.push(o)}return i},s.prototype.isSelected=function(t,e){var i=this.option.selectedMap;return!!i&&(e=this.getData(e),"all"===i||i[Wg(e,t)])&&!e.getItemModel(t).get(["select","disabled"])},s.prototype.isUniversalTransitionEnabled=function(){var t;return!!this.__universalTransitionEnabled||!!(t=this.option.universalTransition)&&(!0===t||t&&t.enabled)},s.prototype._innerSelect=function(t,e){var i=this.option,n=i.selectedMode,o=e.length;if(n&&o)if("series"===n)i.selectedMap="all";else if("multiple"===n){R(i.selectedMap)||(i.selectedMap={});for(var r=i.selectedMap,a=0;a<o;a++){var s,l=e[a];r[s=Wg(t,l)]=!0,this._selectedDataIndicesMap[s]=t.getRawIndex(l)}}else"single"!==n&&!0!==n||(s=Wg(t,n=e[o-1]),i.selectedMap=((i={})[s]=!0,i),this._selectedDataIndicesMap=((i={})[s]=t.getRawIndex(n),i))},s.prototype._initSelectedMapFromData=function(i){var n;this.option.selectedMap||(n=[],i.hasItemOption&&i.each(function(t){var e=i.getRawDataItem(t);e&&e.selected&&n.push(t)}),0<n.length&&this._innerSelect(i,n))},s.registerClass=function(t){return g.registerClass(t)},s.protoInitialize=((rp=s.prototype).type="series.__base__",rp.seriesIndex=0,rp.ignoreStyleOnData=!1,rp.hasSymbolVisual=!1,rp.defaultSymbol="circle",rp.visualStyleAccessPath="itemStyle",void(rp.visualDrawType="fill"));var Xg,Ug=s;function s(){var t=null!==Xg&&Xg.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}function Yg(t){var e,i,n=t.name;Or(t)||(t.name=(t=(e=(t=t).getRawData()).mapDimensionsAll("seriesName"),i=[],O(t,function(t){t=e.getDimensionInfo(t);t.displayName&&i.push(t.displayName)}),i.join(" ")||n))}function Zg(t){return t.model.getRawData().count()}function qg(t){t=t.model;return t.setData(t.getRawData().cloneShallow()),jg}function jg(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Kg(e,i){O(Rt(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(t){e.wrapMethod(t,M($g,i))})}function $g(t,e){t=Qg(t);return t&&t.setOutputEnd((e||this).count()),e}function Qg(t){var e,i=(t.ecModel||{}).scheduler,i=i&&i.getPipeline(t.uid);if(i)return(i=i.currentTask)&&(e=i.agentStubMap)?e.get(t.uid):i}at(Ug,Lf),at(Ug,_d),$r(Ug,g);ty.prototype.init=function(t,e){},ty.prototype.render=function(t,e,i,n){},ty.prototype.dispose=function(t,e){},ty.prototype.updateView=function(t,e,i,n){},ty.prototype.updateLayout=function(t,e,i,n){},ty.prototype.updateVisual=function(t,e,i,n){},ty.prototype.toggleBlurSeries=function(t,e,i){},ty.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var Jg=ty;function ty(){this.group=new Yo,this.uid=Uc("viewComponent")}function ey(){var r=Er();return function(t){var e=r(t),t=t.pipelineContext,i=!!e.large,n=!!e.progressiveRender,o=e.large=!(!t||!t.large),e=e.progressiveRender=!(!t||!t.progressiveRender);return!(i==o&&n==e)&&"reset"}}Kr(Jg),ea(Jg);var iy=Er(),ny=ey(),oy=(ry.prototype.init=function(t,e){},ry.prototype.render=function(t,e,i,n){},ry.prototype.highlight=function(t,e,i,n){t=t.getData(n&&n.dataType);t&&sy(t,n,"emphasis")},ry.prototype.downplay=function(t,e,i,n){t=t.getData(n&&n.dataType);t&&sy(t,n,"normal")},ry.prototype.remove=function(t,e){this.group.removeAll()},ry.prototype.dispose=function(t,e){},ry.prototype.updateView=function(t,e,i,n){this.render(t,e,i,n)},ry.prototype.updateLayout=function(t,e,i,n){this.render(t,e,i,n)},ry.prototype.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},ry.prototype.eachRendered=function(t){fc(this.group,t)},ry.markUpdateMethod=function(t,e){iy(t).updateMethod=e},ry.protoInitialize=void(ry.prototype.type="chart"),ry);function ry(){this.group=new Yo,this.uid=Uc("viewChart"),this.renderTask=Rf({plan:ly,reset:uy}),this.renderTask.context={view:this}}function ay(t,e,i){t&&jl(t)&&("emphasis"===e?Ll:Pl)(t,i)}function sy(e,t,i){var n,o=Nr(e,t),r=t&&null!=t.highlightKey?(t=t.highlightKey,n=null==(n=il[t])&&el<=32?il[t]=el++:n):null;null!=o?O(Tr(o),function(t){ay(e.getItemGraphicEl(t),i,r)}):e.eachItemGraphicEl(function(t){ay(t,i,r)})}function ly(t){return ny(t.model)}function uy(t){var e=t.model,i=t.ecModel,n=t.api,o=t.payload,r=e.pipelineContext.progressiveRender,t=t.view,a=o&&iy(o).updateMethod,r=r?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==r&&t[r](e,i,n,o),hy[r]}Kr(oy),ea(oy);var hy={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)}}},cy="\0__throttleOriginMethod",py="\0__throttleRate",dy="\0__throttleType";function fy(t,o,r){var a,s,l,u,h,c=0,p=0,d=null;function f(){p=(new Date).getTime(),d=null,t.apply(l,u||[])}o=o||0;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];a=(new Date).getTime(),l=this,u=t;var i=h||o,n=h||r;h=null,s=a-(n?c:p)-i,clearTimeout(d),n?d=setTimeout(f,i):0<=s?f():d=setTimeout(f,-s),c=a}return e.clear=function(){d&&(clearTimeout(d),d=null)},e.debounceNextCall=function(t){h=t},e}function gy(t,e,i,n){var o=t[e];if(o){var r=o[cy]||o,a=o[dy];if(o[py]!==i||a!==n){if(null==i||!n)return t[e]=r;(o=t[e]=fy(r,i,"debounce"===n))[cy]=r,o[dy]=n,o[py]=i}}}function yy(t,e){var i=t[e];i&&i[cy]&&(i.clear&&i.clear(),t[e]=i[cy])}var my=Er(),vy={itemStyle:ia(Ec,!0),lineStyle:ia(Oc,!0)},_y={lineStyle:"stroke",itemStyle:"fill"};function xy(t,e){t=t.visualStyleMapper||vy[e];return t||(console.warn("Unknown style type '"+e+"'."),vy.itemStyle)}function wy(t,e){t=t.visualDrawType||_y[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var zc={createOnAllSeries:!0,performRawSeries:!0,reset:function(o,t){var e=o.getData(),i=o.visualStyleAccessPath||"itemStyle",n=o.getModel(i),r=xy(o,i)(n),n=n.getShallow("decal"),a=(n&&(e.setVisual("decal",n),n.dirty=!0),wy(o,i)),n=r[a],s=D(n)?n:null,i="auto"===r.fill||"auto"===r.stroke;if(r[a]&&!s&&!i||(n=o.getColorFromPalette(o.name,null,t.getSeriesCount()),r[a]||(r[a]=n,e.setVisual("colorFromPalette",!0)),r.fill="auto"===r.fill||D(r.fill)?n:r.fill,r.stroke="auto"===r.stroke||D(r.stroke)?n:r.stroke),e.setVisual("style",r),e.setVisual("drawType",a),!t.isSeriesFiltered(o)&&s)return e.setVisual("colorFromPalette",!1),{dataEach:function(t,e){var i=o.getDataParams(e),n=P({},r);n[a]=s(i),t.setItemVisual(e,"style",n)}}}},by=new Gc,oa={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n,o,r;if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t))return e=t.getData(),n=t.visualStyleAccessPath||"itemStyle",o=xy(t,n),r=e.getVisual("drawType"),{dataEach:e.hasItemOption?function(t,e){var i=t.getRawDataItem(e);i&&i[n]&&(by.option=i[n],i=o(by),P(t.ensureUniqueItemVisual(e,"style"),i),by.option.decal&&(t.setItemVisual(e,"decal",by.option.decal),by.option.decal.dirty=!0),r in i)&&t.setItemVisual(e,"colorFromPalette",!1)}:null}}},Vc={performRawSeries:!0,overallReset:function(e){var n=N();e.eachSeries(function(t){var e,i=t.getColorBy();t.isColorBySeries()||(i=t.type+"-"+i,(e=n.get(i))||n.set(i,e={}),my(t).scope=e)}),e.eachSeries(function(n){var o,r,a,s,t,l;n.isColorBySeries()||e.isSeriesFiltered(n)||(o=n.getRawData(),r={},a=n.getData(),s=my(n).scope,t=n.visualStyleAccessPath||"itemStyle",l=wy(n,t),a.each(function(t){var e=a.getRawIndex(t);r[e]=t}),o.each(function(t){var e,i=r[t];a.getItemVisual(i,"colorFromPalette")&&(i=a.ensureUniqueItemVisual(i,"style"),t=o.getName(t)||t+"",e=o.count(),i[l]=n.getColorFromPalette(t,s,e))}))})}},Sy=Math.PI;Ty.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){t=t.overallTask;t&&t.dirty()})},Ty.prototype.getPerformArgs=function(t,e){var i,n;if(t.__pipeline)return n=(i=this._pipelineMap.get(t.__pipeline.id)).context,{step:e=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex?i.step:null,modBy:null!=(t=n&&n.modDataCount)?Math.ceil(t/e):null,modDataCount:t}},Ty.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},Ty.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData().count(),e=i.progressiveEnabled&&e.incrementalPrepareRender&&n>=i.threshold,o=t.get("large")&&n>=t.get("largeThreshold"),n="mod"===t.get("progressiveChunkMode")?n:null;t.pipelineContext=i.context={progressiveRender:e,modDataCount:n,large:o}},Ty.prototype.restorePipelines=function(t){var n=this,o=n._pipelineMap=N();t.eachSeries(function(t){var e=t.getProgressive(),i=t.uid;o.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:e&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(e||700),count:0}),n._pipe(t,t.dataTask)})},Ty.prototype.prepareStageTasks=function(){var i=this._stageTaskMap,n=this.api.getModel(),o=this.api;O(this._allHandlers,function(t){var e=i.get(t.uid)||i.set(t.uid,{});Mt(!(t.reset&&t.overallReset),""),t.reset&&this._createSeriesStageTask(t,e,n,o),t.overallReset&&this._createOverallStageTask(t,e,n,o)},this)},Ty.prototype.prepareView=function(t,e,i,n){var o=t.renderTask,r=o.context;r.model=e,r.ecModel=i,r.api=n,o.__block=!t.incrementalPrepareRender,this._pipe(e,o)},Ty.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},Ty.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},Ty.prototype._performStageTasks=function(t,s,l,u){u=u||{};var h=!1,c=this;function p(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}O(t,function(n,t){var e,i,o,r,a;u.visualType&&u.visualType!==n.visualType||(e=(i=c._stageTaskMap.get(n.uid)).seriesTaskMap,(i=i.overallTask)?((r=i.agentStubMap).each(function(t){p(u,t)&&(t.dirty(),o=!0)}),o&&i.dirty(),c.updatePayload(i,l),a=c.getPerformArgs(i,u.block),r.each(function(t){t.perform(a)}),i.perform(a)&&(h=!0)):e&&e.each(function(t,e){p(u,t)&&t.dirty();var i=c.getPerformArgs(t,u.block);i.skip=!n.performRawSeries&&s.isSeriesFiltered(t.context.model),c.updatePayload(t,l),t.perform(i)&&(h=!0)}))}),this.unfinished=h||this.unfinished},Ty.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},Ty.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())})},Ty.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},Ty.prototype._createSeriesStageTask=function(i,t,n,o){var r=this,a=t.seriesTaskMap,s=t.seriesTaskMap=N(),t=i.seriesType,e=i.getTargetSeries;function l(t){var e=t.uid,e=s.set(e,a&&a.get(e)||Rf({plan:Ay,reset:Ly,count:Ry}));e.context={model:t,ecModel:n,api:o,useClearVisual:i.isVisual&&!i.isLayout,plan:i.plan,reset:i.reset,scheduler:r},r._pipe(t,e)}i.createOnAllSeries?n.eachRawSeries(l):t?n.eachRawSeriesByType(t,l):e&&e(n,o).each(l)},Ty.prototype._createOverallStageTask=function(t,e,i,n){var o=this,r=e.overallTask=e.overallTask||Rf({reset:Iy}),a=(r.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:o},r.agentStubMap),s=r.agentStubMap=N(),e=t.seriesType,l=t.getTargetSeries,u=!0,h=!1;function c(t){var e=t.uid,e=s.set(e,a&&a.get(e)||(h=!0,Rf({reset:Cy,onDirty:ky})));e.context={model:t,overallProgress:u},e.agent=r,e.__block=u,o._pipe(t,e)}Mt(!t.createOnAllSeries,""),e?i.eachRawSeriesByType(e,c):l?l(i,n).each(c):(u=!1,O(i.getSeries(),c)),h&&r.dirty()},Ty.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},Ty.wrapStageHandler=function(t,e){return(t=D(t)?{overallReset:t,seriesType:function(t){zy=null;try{t(Ny,Ey)}catch(t){}return zy}(t)}:t).uid=Uc("stageHandler"),e&&(t.visualType=e),t};var My=Ty;function Ty(t,e,i,n){this._stageTaskMap=N(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}function Iy(t){t.overallReset(t.ecModel,t.api,t.payload)}function Cy(t){return t.overallProgress&&Dy}function Dy(){this.agent.dirty(),this.getDownstream().dirty()}function ky(){this.agent&&this.agent.dirty()}function Ay(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Ly(t){t.useClearVisual&&t.data.clearAllVisual();t=t.resetDefines=Tr(t.reset(t.model,t.ecModel,t.api,t.payload));return 1<t.length?B(t,function(t,e){return Oy(e)}):Py}var Py=Oy(0);function Oy(r){return function(t,e){var i=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var o=t.start;o<t.end;o++)n.dataEach(i,o);else n&&n.progress&&n.progress(t,i)}}function Ry(t){return t.data.count()}var zy,Ny={},Ey={};function By(t,e){for(var i in e.prototype)t[i]=Bt}By(Ny,Md),By(Ey,Dd),Ny.eachSeriesByType=Ny.eachRawSeriesByType=function(t){zy=t},Ny.eachComponent=function(t){"series"===t.mainType&&t.subType&&(zy=t.subType)};function Vy(){return{axisLine:{lineStyle:{color:Fy}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}}var ic=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],rp={color:ic,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],ic]},Fy="#B9B8CE",Ec="#100C2A",Oc=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],ic={darkMode:!0,color:Oc,backgroundColor:Ec,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Fy}},textStyle:{color:Fy},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Fy}},dataZoom:{borderColor:"#71708A",textStyle:{color:Fy},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:Fy}},timeline:{lineStyle:{color:Fy},label:{color:Fy},controlStyle:{color:Fy,borderColor:Fy}},calendar:{itemStyle:{color:Ec},dayLabel:{color:Fy},monthLabel:{color:Fy},yearLabel:{color:Fy}},timeAxis:Vy(),logAxis:Vy(),valueAxis:Vy(),categoryAxis:Vy(),line:{symbol:"circle"},graph:{color:Oc},gauge:{title:{color:Fy},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Fy},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}},Hy=(ic.categoryAxis.splitLine.show=!1,Gy.prototype.normalizeQuery=function(t){var e,a,s,l={},u={},h={};return F(t)?(e=jr(t),l.mainType=e.main||null,l.subType=e.sub||null):(a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1},O(t,function(t,e){for(var i=!1,n=0;n<a.length;n++){var o=a[n],r=e.lastIndexOf(o);0<r&&r===e.length-o.length&&"data"!==(r=e.slice(0,r))&&(l.mainType=r,l[o.toLowerCase()]=t,i=!0)}s.hasOwnProperty(e)&&(u[e]=t,i=!0),i||(h[e]=t)})),{cptQuery:l,dataQuery:u,otherQuery:h}},Gy.prototype.filter=function(t,e){var i,n,o,r,a,s=this.eventInfo;return!s||(i=s.targetEl,n=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,n,"name")&&l(a,n,"dataIndex")&&l(a,n,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,i,n)));function l(t,e,i,n){return null==t[i]||e[n||i]===t[i]}},Gy.prototype.afterTrigger=function(){this.eventInfo=null},Gy);function Gy(){}var Wy=["symbol","symbolSize","symbolRotate","symbolOffset"],Xy=Wy.concat(["symbolKeepAspect"]),Ec={createOnAllSeries:!0,performRawSeries:!0,reset:function(a,t){var e=a.getData();if(a.legendIcon&&e.setVisual("legendIcon",a.legendIcon),a.hasSymbolVisual){for(var s,i={},l={},n=!1,o=0;o<Wy.length;o++){var r=Wy[o],u=a.get(r);D(u)?(n=!0,l[r]=u):i[r]=u}if(i.symbol=i.symbol||a.defaultSymbol,e.setVisual(P({legendIcon:a.legendIcon||i.symbol,symbolKeepAspect:a.get("symbolKeepAspect")},i)),!t.isSeriesFiltered(a))return s=ht(l),{dataEach:n?function(t,e){for(var i=a.getRawValue(e),n=a.getDataParams(e),o=0;o<s.length;o++){var r=s[o];t.setItemVisual(e,r,l[r](i,n))}}:null}}}},Oc={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var i=t.getItemModel(e),n=0;n<Xy.length;n++){var o=Xy[n],r=i.getShallow(o,!0);null!=r&&t.setItemVisual(e,o,r)}}:null}}};function Uy(t,e,i){switch(i){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,i)}}function Yy(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function Zy(t,e,s,i,l){var u=t+e;s.isSilent(u)||i.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e,i,n=t.seriesIndex,o=t.option.selectedMap,r=l.selected,a=0;a<r.length;a++)r[a].seriesIndex===n&&(i=Nr(e=t.getData(),l.fromActionPayload),s.trigger(u,{type:u,seriesId:t.id,name:V(i)?e.getName(i[0]):e.getName(i),selected:F(o)?o:P({},o)}))})}function qy(t,e,i){for(var n;t&&(!e(t)||(n=t,!i));)t=t.__hostTarget||t.parent;return n}var jy=Math.round(9*Math.random()),Ky="function"==typeof Object.defineProperty,$y=(Qy.prototype.get=function(t){return this._guard(t)[this._id]},Qy.prototype.set=function(t,e){t=this._guard(t);return Ky?Object.defineProperty(t,this._id,{value:e,enumerable:!1,configurable:!0}):t[this._id]=e,this},Qy.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},Qy.prototype.has=function(t){return!!this._guard(t)[this._id]},Qy.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},Qy);function Qy(){this._id="__ec_inner_"+jy++}var Jy=ws.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,o=e.width/2,e=e.height/2;t.moveTo(i,n-e),t.lineTo(i+o,n+e),t.lineTo(i-o,n+e),t.closePath()}}),tm=ws.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,o=e.width/2,e=e.height/2;t.moveTo(i,n-e),t.lineTo(i+o,n),t.lineTo(i,n+e),t.lineTo(i-o,n),t.closePath()}}),em=ws.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,o=e.width/5*3,e=Math.max(o,e.height),o=o/2,r=o*o/(e-o),e=n-e+o+r,a=Math.asin(r/o),s=Math.cos(a)*o,l=Math.sin(a),u=Math.cos(a),h=.6*o,c=.7*o;t.moveTo(i-s,e+r),t.arc(i,e,o,Math.PI-a,2*Math.PI+a),t.bezierCurveTo(i+s-l*h,e+r+u*h,i,n-c,i,n),t.bezierCurveTo(i,n-c,i-s+l*h,e+r+u*h,i-s,e+r),t.closePath()}}),im=ws.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.height,n=e.width,o=e.x,e=e.y,n=n/3*2;t.moveTo(o,e),t.lineTo(o+n,e+i),t.lineTo(o,e+i/4*3),t.lineTo(o-n,e+i),t.lineTo(o,e),t.closePath()}}),nm={line:function(t,e,i,n,o){o.x1=t,o.y1=e+n/2,o.x2=t+i,o.y2=e+n/2},rect:function(t,e,i,n,o){o.x=t,o.y=e,o.width=i,o.height=n},roundRect:function(t,e,i,n,o){o.x=t,o.y=e,o.width=i,o.height=n,o.r=Math.min(i,n)/4},square:function(t,e,i,n,o){i=Math.min(i,n);o.x=t,o.y=e,o.width=i,o.height=i},circle:function(t,e,i,n,o){o.cx=t+i/2,o.cy=e+n/2,o.r=Math.min(i,n)/2},diamond:function(t,e,i,n,o){o.cx=t+i/2,o.cy=e+n/2,o.width=i,o.height=n},pin:function(t,e,i,n,o){o.x=t+i/2,o.y=e+n/2,o.width=i,o.height=n},arrow:function(t,e,i,n,o){o.x=t+i/2,o.y=e+n/2,o.width=i,o.height=n},triangle:function(t,e,i,n,o){o.cx=t+i/2,o.cy=e+n/2,o.width=i,o.height=n}},om={},rm=(O({line:oh,rect:Bs,roundRect:Bs,square:Bs,circle:_u,diamond:tm,pin:em,arrow:im,triangle:Jy},function(t,e){om[e]=new t}),ws.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,i){var t=Oo(t,e,i),n=this.shape;return n&&"pin"===n.symbolType&&"inside"===e.position&&(t.y=i.y+.4*i.height),t},buildPath:function(t,e,i){var n,o=e.symbolType;"none"!==o&&(n=(n=om[o])||om[o="rect"],nm[o](e.x,e.y,e.width,e.height,n.shape),n.buildPath(t,n.shape,i))}}));function am(t,e){var i;"image"!==this.type&&(i=this.style,this.__isEmptyBrush?(i.stroke=t,i.fill=e||"#fff",i.lineWidth=2):"line"===this.shape.symbolType?i.stroke=t:i.fill=t,this.markRedraw())}function sm(t,e,i,n,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://")?$h(t.slice(8),new U(e,i,n,o),a?"center":"cover"):0===t.indexOf("path://")?Kh(t.slice(7),{},new U(e,i,n,o),a?"center":"cover"):new rm({shape:{symbolType:t,x:e,y:i,width:n,height:o}})).__isEmptyBrush=s,a.setColor=am,r&&a.setColor(r),a}function lm(t){return[(t=V(t)?t:[+t,+t])[0]||0,t[1]||0]}function um(t,e){if(null!=t)return[rr((t=V(t)?t:[t,t])[0],e[0])||0,rr(z(t[1],t[0]),e[1])||0]}function hm(t){return isFinite(t)}function cm(t,e,i){for(var n,o,r,a,s,l,u,h,c,p="radial"===e.type?(n=t,o=e,a=(r=i).width,s=r.height,l=Math.min(a,s),u=null==o.x?.5:o.x,h=null==o.y?.5:o.y,c=null==o.r?.5:o.r,o.global||(u=u*a+r.x,h=h*s+r.y,c*=l),u=hm(u)?u:.5,h=hm(h)?h:.5,c=0<=c&&hm(c)?c:.5,n.createRadialGradient(u,h,0,u,h,c)):(o=t,a=i,r=null==(s=e).x?0:s.x,l=null==s.x2?1:s.x2,n=null==s.y?0:s.y,u=null==s.y2?0:s.y2,s.global||(r=r*a.width+a.x,l=l*a.width+a.x,n=n*a.height+a.y,u=u*a.height+a.y),r=hm(r)?r:0,l=hm(l)?l:1,n=hm(n)?n:0,u=hm(u)?u:0,o.createLinearGradient(r,n,l,u)),d=e.colorStops,f=0;f<d.length;f++)p.addColorStop(d[f].offset,d[f].color);return p}function pm(t){return parseInt(t,10)}function dm(t,e,i){var n=["width","height"][e],o=["clientWidth","clientHeight"][e],r=["paddingLeft","paddingTop"][e],e=["paddingRight","paddingBottom"][e];return null!=i[n]&&"auto"!==i[n]?parseFloat(i[n]):(i=document.defaultView.getComputedStyle(t),(t[o]||pm(i[n])||pm(t.style[n]))-(pm(i[r])||0)-(pm(i[e])||0)|0)}function fm(t){var e,i=t.style,n=i.lineDash&&0<i.lineWidth&&(o=i.lineDash,n=i.lineWidth,o&&"solid"!==o&&0<n?"dashed"===o?[4*n,2*n]:"dotted"===o?[n]:pt(o)?[o]:V(o)?o:null:null),o=i.lineDashOffset;return n&&(e=i.strokeNoScale&&t.getLineScale?t.getLineScale():1)&&1!==e&&(n=B(n,function(t){return t/e}),o/=e),[n,o]}var gm=new ns(!0);function ym(t){var e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))}function mm(t){return"string"==typeof t&&"none"!==t}function vm(t){t=t.fill;return null!=t&&"none"!==t}function _m(t,e){var i;null!=e.fillOpacity&&1!==e.fillOpacity?(i=t.globalAlpha,t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=i):t.fill()}function xm(t,e){var i;null!=e.strokeOpacity&&1!==e.strokeOpacity?(i=t.globalAlpha,t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=i):t.stroke()}function wm(t,e,i){var i=sa(e.image,e.__image,i);if(ua(i))return t=t.createPattern(i,e.repeat||"repeat"),"function"==typeof DOMMatrix&&t&&t.setTransform&&((i=new DOMMatrix).translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*Vt),i.scaleSelf(e.scaleX||1,e.scaleY||1),t.setTransform(i)),t}var bm=["shadowBlur","shadowOffsetX","shadowOffsetY"],Sm=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Mm(t,e,i,n,o){var r,a=!1;if(!n&&e===(i=i||{}))return!1;!n&&e.opacity===i.opacity||(Lm(t,o),a=!0,r=Math.max(Math.min(e.opacity,1),0),t.globalAlpha=isNaN(r)?Sa.opacity:r),!n&&e.blend===i.blend||(a||(Lm(t,o),a=!0),t.globalCompositeOperation=e.blend||Sa.blend);for(var s=0;s<bm.length;s++){var l=bm[s];!n&&e[l]===i[l]||(a||(Lm(t,o),a=!0),t[l]=t.dpr*(e[l]||0))}return!n&&e.shadowColor===i.shadowColor||(a||(Lm(t,o),a=!0),t.shadowColor=e.shadowColor||Sa.shadowColor),a}function Tm(t,e,i,n,o){var r=Pm(e,o.inHover),a=n?null:i&&Pm(i,o.inHover)||{};if(r!==a){var s=Mm(t,r,a,n,o);(n||r.fill!==a.fill)&&(s||(Lm(t,o),s=!0),mm(r.fill))&&(t.fillStyle=r.fill),(n||r.stroke!==a.stroke)&&(s||(Lm(t,o),s=!0),mm(r.stroke))&&(t.strokeStyle=r.stroke),!n&&r.opacity===a.opacity||(s||(Lm(t,o),s=!0),t.globalAlpha=null==r.opacity?1:r.opacity),e.hasStroke()&&(i=r.lineWidth/(r.strokeNoScale&&e.getLineScale?e.getLineScale():1),t.lineWidth!==i)&&(s||(Lm(t,o),s=!0),t.lineWidth=i);for(var l=0;l<Sm.length;l++){var u=Sm[l],h=u[0];!n&&r[h]===a[h]||(s||(Lm(t,o),s=!0),t[h]=r[h]||u[1])}}}function Im(t,e){var e=e.transform,i=t.dpr||1;e?t.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):t.setTransform(i,0,0,i,0,0)}var Cm=1,Dm=2,km=3,Am=4;function Lm(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Pm(t,e){return e&&t.__hoverStyle||t.style}function Om(t,e){Rm(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Rm(t,e,i,N){var n=e.transform;if(e.shouldBePainted(i.viewWidth,i.viewHeight,!1,!1)){var o=e.__clipPaths,r=i.prevElClipPaths,a=!1,s=!1;if(!r||function(t,e){if(t!==e&&(t||e)){if(!t||!e||t.length!==e.length)return 1;for(var i=0;i<t.length;i++)if(t[i]!==e[i])return 1}}(o,r)){if(r&&r.length&&(Lm(t,i),t.restore(),s=a=!0,i.prevElClipPaths=null,i.allClipped=!1,i.prevEl=null),o&&o.length){Lm(t,i),t.save();for(var E=o,l=t,r=i,B=!1,V=0;V<E.length;V++){var F=E[V],B=B||F.isZeroArea();Im(l,F),l.beginPath(),F.buildPath(l,F.shape),l.clip()}r.allClipped=B,a=!0}i.prevElClipPaths=o}if(i.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u,h,c,p,d,f,g,y,m,v,_,x,w,H,b,S,M,T,I,C,D,k,A,r=i.prevEl,L=(r||(s=a=!0),e instanceof ws&&e.autoBatch&&(o=e.style,L=vm(o),u=ym(o),!(o.lineDash||!(+L^+u)||L&&"string"!=typeof o.fill||u&&"string"!=typeof o.stroke||o.strokePercent<1||o.strokeOpacity<1||o.fillOpacity<1))),a=(a||(u=n,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)?(Lm(t,i),Im(t,e)):L||Lm(t,i),Pm(e,i.inHover));if(e instanceof ws)i.lastDrawType!==Cm&&(s=!0,i.lastDrawType=Cm),Tm(t,e,r,s,i),L&&(i.batchFill||i.batchStroke)||t.beginPath(),n=t,o=e,R=L,b=ym(p=a),S=vm(p),M=p.strokePercent,T=M<1,I=!o.path,o.silent&&!T||!I||o.createPathProxy(),C=o.path||gm,D=o.__dirty,R||(d=p.fill,A=p.stroke,f=S&&!!d.colorStops,g=b&&!!A.colorStops,y=S&&!!d.image,m=b&&!!A.image,k=w=x=_=v=void 0,(f||g)&&(k=o.getBoundingRect()),f&&(v=D?cm(n,d,k):o.__canvasFillGradient,o.__canvasFillGradient=v),g&&(_=D?cm(n,A,k):o.__canvasStrokeGradient,o.__canvasStrokeGradient=_),y&&(x=D||!o.__canvasFillPattern?wm(n,d,o):o.__canvasFillPattern,o.__canvasFillPattern=x),m&&(w=D||!o.__canvasStrokePattern?wm(n,A,o):o.__canvasStrokePattern,o.__canvasStrokePattern=x),f?n.fillStyle=v:y&&(x?n.fillStyle=x:S=!1),g?n.strokeStyle=_:m&&(w?n.strokeStyle=w:b=!1)),k=o.getGlobalScale(),C.setScale(k[0],k[1],o.segmentIgnoreThreshold),n.setLineDash&&p.lineDash&&(H=(d=fm(o))[0],O=d[1]),A=!0,(I||D&_i)&&(C.setDPR(n.dpr),T?C.setContext(null):(C.setContext(n),A=!1),C.reset(),o.buildPath(C,o.shape,R),C.toStatic(),o.pathUpdated()),A&&C.rebuildPath(n,T?M:1),H&&(n.setLineDash(H),n.lineDashOffset=O),R||(p.strokeFirst?(b&&xm(n,p),S&&_m(n,p)):(S&&_m(n,p),b&&xm(n,p))),H&&n.setLineDash([]),L&&(i.batchFill=a.fill||"",i.batchStroke=a.stroke||"");else if(e instanceof Ms)i.lastDrawType!==km&&(s=!0,i.lastDrawType=km),Tm(t,e,r,s,i),f=t,v=e,null!=(x=(y=a).text)&&(x+=""),x&&(f.font=y.font||j,f.textAlign=y.textAlign,f.textBaseline=y.textBaseline,_=g=void 0,f.setLineDash&&y.lineDash&&(g=(v=fm(v))[0],_=v[1]),g&&(f.setLineDash(g),f.lineDashOffset=_),y.strokeFirst?(ym(y)&&f.strokeText(x,y.x,y.y),vm(y)&&f.fillText(x,y.x,y.y)):(vm(y)&&f.fillText(x,y.x,y.y),ym(y)&&f.strokeText(x,y.x,y.y)),g)&&f.setLineDash([]);else if(e instanceof ks)i.lastDrawType!==Dm&&(s=!0,i.lastDrawType=Dm),m=r,w=s,Mm(t,Pm(e,(k=i).inHover),m&&Pm(m,k.inHover),w,k),d=t,I=a,(o=(D=e).__image=sa(I.image,D.__image,D,D.onload))&&ua(o)&&(A=I.x||0,C=I.y||0,T=D.getWidth(),D=D.getHeight(),M=o.width/o.height,null==T&&null!=D?T=D*M:null==D&&null!=T?D=T/M:null==T&&null==D&&(T=o.width,D=o.height),I.sWidth&&I.sHeight?(h=I.sx||0,c=I.sy||0,d.drawImage(o,h,c,I.sWidth,I.sHeight,A,C,T,D)):I.sx&&I.sy?(h=I.sx,c=I.sy,d.drawImage(o,h,c,T-h,D-c,A,C,T,D)):d.drawImage(o,A,C,T,D));else if(e.getTemporalDisplayables){i.lastDrawType!==Am&&(s=!0,i.lastDrawType=Am);var P,G,W=t,O=e,R=i,X=O.getDisplayables(),U=O.getTemporalDisplayables(),Y=(W.save(),{prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:R.viewWidth,viewHeight:R.viewHeight,inHover:R.inHover});for(P=O.getCursor(),G=X.length;P<G;P++)(z=X[P]).beforeBrush&&z.beforeBrush(),z.innerBeforeBrush(),Rm(W,z,Y,P===G-1),z.innerAfterBrush(),z.afterBrush&&z.afterBrush(),Y.prevEl=z;for(var z,Z=0,q=U.length;Z<q;Z++)(z=U[Z]).beforeBrush&&z.beforeBrush(),z.innerBeforeBrush(),Rm(W,z,Y,Z===q-1),z.innerAfterBrush(),z.afterBrush&&z.afterBrush(),Y.prevEl=z;O.clearTemporalDisplayables(),O.notClear=!0,W.restore()}L&&N&&Lm(t,i),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),(i.prevEl=e).__dirty=0,e.__isRendered=!0}}else e.__dirty&=~vi,e.__isRendered=!1}var zm=new $y,Nm=new en(100),Em=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Bm(t,e){if("none"===t)return null;var a=e.getDevicePixelRatio(),s=e.getZr(),l="svg"===s.painter.type,e=(t.dirty&&zm.delete(t),zm.get(t));if(e)return e;for(var i,u=E(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"===u.backgroundColor&&(u.backgroundColor=null),{repeat:"repeat"}),n=e,o=[a],r=!0,h=0;h<Em.length;++h){var c=u[Em[h]];if(null!=c&&!V(c)&&!F(c)&&!pt(c)&&"boolean"!=typeof c){r=!1;break}o.push(c)}r&&(i=o.join(",")+(l?"-svg":""),v=Nm.get(i))&&(l?n.svgElement=v:n.image=v);var p,d=function t(e){if(!e||0===e.length)return[[0,0]];if(pt(e))return[[r=Math.ceil(e),r]];var i=!0;for(var n=0;n<e.length;++n)if(!pt(e[n])){i=!1;break}if(i)return t([e]);var o=[];for(n=0;n<e.length;++n){var r;pt(e[n])?(r=Math.ceil(e[n]),o.push([r,r])):(r=B(e[n],function(t){return Math.ceil(t)})).length%2==1?o.push(r.concat(r)):o.push(r)}return o}(u.dashArrayX),f=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(pt(t))return[e=Math.ceil(t),e];var e=B(t,function(t){return Math.ceil(t)});return t.length%2?e.concat(e):e}(u.dashArrayY),g=function t(e){if(!e||0===e.length)return[["rect"]];if(F(e))return[[e]];var i=!0;for(var n=0;n<e.length;++n)if(!F(e[n])){i=!1;break}if(i)return t([e]);var o=[];for(n=0;n<e.length;++n)F(e[n])?o.push([e[n]]):o.push(e[n]);return o}(u.symbol),y=function(t){return B(t,Vm)}(d),m=Vm(f),v=!l&&H.createCanvas(),_=l&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var t=1,e=0,i=y.length;e<i;++e)t=br(t,y[e]);for(var n=1,e=0,i=g.length;e<i;++e)n=br(n,g[e].length);t*=n;var o=m*y.length*g.length;return{width:Math.max(1,Math.min(t,u.maxTileWidth)),height:Math.max(1,Math.min(o,u.maxTileHeight))}}();v&&(v.width=x.width*a,v.height=x.height*a,p=v.getContext("2d")),p&&(p.clearRect(0,0,v.width,v.height),u.backgroundColor)&&(p.fillStyle=u.backgroundColor,p.fillRect(0,0,v.width,v.height));for(var w=0,b=0;b<f.length;++b)w+=f[b];if(!(w<=0))for(var S=-m,M=0,T=0,I=0;S<x.height;){if(M%2==0){for(var C=T/2%g.length,D=0,k=0,A=0;D<2*x.width;){for(var L,P,O,R,z,N=0,b=0;b<d[I].length;++b)N+=d[I][b];if(N<=0)break;k%2==0&&(P=.5*(1-u.symbolSize),L=D+d[I][k]*P,P=S+f[M]*P,O=d[I][k]*u.symbolSize,R=f[M]*u.symbolSize,z=A/2%g[C].length,function(t,e,i,n,o){var r=l?1:a,o=sm(o,t*r,e*r,i*r,n*r,u.color,u.symbolKeepAspect);l?(t=s.painter.renderOneToVNode(o))&&_.children.push(t):Om(p,o)}(L,P,O,R,g[C][z])),D+=d[I][k],++A,++k===d[I].length&&(k=0)}++I===d.length&&(I=0)}S+=f[M],++T,++M===f.length&&(M=0)}return r&&Nm.put(i,v||_),n.image=v,n.svgElement=_,n.svgWidth=x.width,n.svgHeight=x.height,e.rotation=u.rotation,e.scaleX=e.scaleY=l?1:1/a,zm.set(t,e),t.dirty=!1,e}function Vm(t){for(var e=0,i=0;i<t.length;++i)e+=t[i];return t.length%2==1?2*e:e}var Fm=new se,Hm={};var tm={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}},Gm="__flagInMainProcess",Wm="__pendingUpdate",Xm="__needsUpdateStatus",Um=/^[a-zA-Z0-9_]+$/,Ym="__connectUpdateStatus";function Zm(i){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!this.isDisposed())return jm(this,i,t);this.id}}function qm(i){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return jm(this,i,t)}}function jm(t,e,i){return i[0]=i[0]&&i[0].toLowerCase(),se.prototype[e].apply(t,i)}u(Qm,Km=se);var Km,$m=Qm;function Qm(){return null!==Km&&Km.apply(this,arguments)||this}var Jm,t0,e0,i0,n0,o0,r0,a0,s0,l0,u0,h0,c0,p0,d0,f0,g0,y0,m0,em=$m.prototype,v0=(em.on=qm("on"),em.off=qm("off"),u(h,m0=se),h.prototype._onframe=function(){if(!this._disposed){y0(this);var t=this._scheduler;if(this[Wm]){var e=this[Wm].silent;this[Gm]=!0;try{Jm(this),i0.update.call(this,null,this[Wm].updateParams)}catch(t){throw this[Gm]=!1,this[Wm]=null,t}this._zr.flush(),this[Gm]=!1,this[Wm]=null,a0.call(this,e),s0.call(this,e)}else if(t.unfinished){var i=1,n=this._model,o=this._api;t.unfinished=!1;do{var r=+new Date}while(t.performSeriesTasks(n),t.performDataProcessorTasks(n),o0(this,n),t.performVisualTasks(n),p0(this,this._model,o,"remain",{}),0<(i-=+new Date-r)&&t.unfinished);t.unfinished||this._zr.flush()}}},h.prototype.getDom=function(){return this._dom},h.prototype.getId=function(){return this.id},h.prototype.getZr=function(){return this._zr},h.prototype.isSSR=function(){return this._ssr},h.prototype.setOption=function(t,e,i){if(!this[Gm])if(this._disposed)this.id;else{R(e)&&(i=e.lazyUpdate,n=e.silent,o=e.replaceMerge,r=e.transition,e=e.notMerge),this[Gm]=!0,this._model&&!e||(e=new Rd(this._api),a=this._theme,(s=this._model=new Md).scheduler=this._scheduler,s.ssr=this._ssr,s.init(null,null,null,a,this._locale,e)),this._model.setOption(t,{replaceMerge:o},D0);var n,o,r,a,s={seriesTransition:r,optionChanged:!0};if(i)this[Wm]={silent:n,updateParams:s},this[Gm]=!1,this.getZr().wakeUp();else{try{Jm(this),i0.update.call(this,null,s)}catch(t){throw this[Wm]=null,this[Gm]=!1,t}this._ssr||this._zr.flush(),this[Wm]=null,this[Gm]=!1,a0.call(this,n),s0.call(this,n)}}},h.prototype.setTheme=function(){},h.prototype.getModel=function(){return this._model},h.prototype.getOption=function(){return this._model&&this._model.getOption()},h.prototype.getWidth=function(){return this._zr.getWidth()},h.prototype.getHeight=function(){return this._zr.getHeight()},h.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||b.hasGlobalWindow&&window.devicePixelRatio||1},h.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},h.prototype.renderToCanvas=function(t){return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},h.prototype.renderToSVGString=function(t){return this._zr.painter.renderToString({useViewBox:(t=t||{}).useViewBox})},h.prototype.getSvgDataURL=function(){var t;if(b.svgSupported)return O((t=this._zr).storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},h.prototype.getDataURL=function(t){var e,i,n,o;if(!this._disposed)return o=(t=t||{}).excludeComponents,e=this._model,i=[],n=this,O(o,function(t){e.eachComponent({mainType:t},function(t){t=n._componentsMap[t.__viewId];t.group.ignore||(i.push(t),t.group.ignore=!0)})}),o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png")),O(i,function(t){t.group.ignore=!1}),o;this.id},h.prototype.getConnectedDataURL=function(n){var o,r,a,s,l,u,h,c,p,e,t,i,d,f,g;if(!this._disposed)return o="svg"===n.type,r=this.group,a=Math.min,s=Math.max,O0[r]?(u=l=1/0,c=h=-1/0,p=[],e=n&&n.pixelRatio||this.getDevicePixelRatio(),O(P0,function(t,e){var i;t.group===r&&(i=o?t.getZr().painter.getSvgDom().innerHTML:t.renderToCanvas(y(n)),t=t.getDom().getBoundingClientRect(),l=a(t.left,l),u=a(t.top,u),h=s(t.right,h),c=s(t.bottom,c),p.push({dom:i,left:t.left,top:t.top}))}),t=(h*=e)-(l*=e),i=(c*=e)-(u*=e),d=H.createCanvas(),(f=Jo(d,{renderer:o?"svg":"canvas"})).resize({width:t,height:i}),o?(g="",O(p,function(t){var e=t.left-l,i=t.top-u;g+='<g transform="translate('+e+","+i+')">'+t.dom+"</g>"}),f.painter.getSvgRoot().innerHTML=g,n.connectedBackgroundColor&&f.painter.setBackgroundColor(n.connectedBackgroundColor),f.refreshImmediately(),f.painter.toDataURL()):(n.connectedBackgroundColor&&f.add(new Bs({shape:{x:0,y:0,width:t,height:i},style:{fill:n.connectedBackgroundColor}})),O(p,function(t){t=new ks({style:{x:t.left*e-l,y:t.top*e-u,image:t.dom}});f.add(t)}),f.refreshImmediately(),d.toDataURL("image/"+(n&&n.type||"png")))):this.getDataURL(n);this.id},h.prototype.convertToPixel=function(t,e){return n0(this,"convertToPixel",t,e)},h.prototype.convertFromPixel=function(t,e){return n0(this,"convertFromPixel",t,e)},h.prototype.containPixel=function(t,n){var o;if(!this._disposed)return O(Vr(this._model,t),function(t,i){0<=i.indexOf("Models")&&O(t,function(t){var e=t.coordinateSystem;e&&e.containPoint?o=o||!!e.containPoint(n):"seriesModels"===i&&(e=this._chartsMap[t.__viewId])&&e.containPoint&&(o=o||e.containPoint(n,t))},this)},this),!!o;this.id},h.prototype.getVisual=function(t,e){var t=Vr(this._model,t,{defaultMainType:"series"}),i=t.seriesModel.getData(),t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?i.indexOfRawIndex(t.dataIndex):null;return null!=t?Uy(i,t,e):Yy(i,e)},h.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},h.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},h.prototype._initEvents=function(){var t,i,n,s=this;O(M0,function(a){function t(t){var i,e,n,o=s.getModel(),r=t.target;"globalout"===a?i={}:r&&qy(r,function(t){var e,t=k(t);return t&&null!=t.dataIndex?(e=t.dataModel||o.getSeriesByIndex(t.seriesIndex),i=e&&e.getDataParams(t.dataIndex,t.dataType,r)||{},1):t.eventData&&(i=P({},t.eventData),1)},!0),i&&(e=i.componentType,n=i.componentIndex,"markLine"!==e&&"markPoint"!==e&&"markArea"!==e||(e="series",n=i.seriesIndex),n=(e=e&&null!=n&&o.getComponent(e,n))&&s["series"===e.mainType?"_chartsMap":"_componentsMap"][e.__viewId],i.event=t,i.type=a,s._$eventProcessor.eventInfo={targetEl:r,packedEvent:i,model:e,view:n},s.trigger(a,i))}t.zrEventfulCallAtLast=!0,s._zr.on(a,t,s)}),O(I0,function(t,e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),O(["selectchanged"],function(e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),t=this._messageCenter,n=(i=this)._api,t.on("selectchanged",function(t){var e=n.getModel();t.isFromClick?(Zy("map","selectchanged",i,e,t),Zy("pie","selectchanged",i,e,t)):"select"===t.fromAction?(Zy("map","selected",i,e,t),Zy("pie","selected",i,e,t)):"unselect"===t.fromAction&&(Zy("map","unselected",i,e,t),Zy("pie","unselected",i,e,t))})},h.prototype.isDisposed=function(){return this._disposed},h.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},h.prototype.dispose=function(){var t,e,i;this._disposed?this.id:(this._disposed=!0,this.getDom()&&Xr(this.getDom(),N0,""),e=(t=this)._api,i=t._model,O(t._componentsViews,function(t){t.dispose(i,e)}),O(t._chartsViews,function(t){t.dispose(i,e)}),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete P0[t.id])},h.prototype.resize=function(t){if(!this[Gm])if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var e=e.resetOption("media"),i=t&&t.silent;this[Wm]&&(null==i&&(i=this[Wm].silent),e=!0,this[Wm]=null),this[Gm]=!0;try{e&&Jm(this),i0.update.call(this,{type:"resize",animation:P({duration:0},t&&t.animation)})}catch(t){throw this[Gm]=!1,t}this[Gm]=!1,a0.call(this,i),s0.call(this,i)}}},h.prototype.showLoading=function(t,e){this._disposed?this.id:(R(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),L0[t]&&(t=L0[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},h.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},h.prototype.makeActionFromEvent=function(t){var e=P({},t);return e.type=I0[t.type],e},h.prototype.dispatchAction=function(t,e){var i;this._disposed?this.id:(R(e)||(e={silent:!!e}),T0[t.type]&&this._model&&(this[Gm]?this._pendingActions.push(t):(i=e.silent,r0.call(this,t,i),(t=e.flush)?this._zr.flush():!1!==t&&b.browser.weChat&&this._throttledZrFlush(),a0.call(this,i),s0.call(this,i))))},h.prototype.updateLabelLayout=function(){Fm.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},h.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())},h.internalField=(Jm=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),t0(t,!0),t0(t,!1),e.plan()},t0=function(t,o){for(var r=t._model,a=t._scheduler,s=o?t._componentsViews:t._chartsViews,l=o?t._componentsMap:t._chartsMap,u=t._zr,h=t._api,e=0;e<s.length;e++)s[e].__alive=!1;function i(t){var e,i=t.__requireNewView,n=(t.__requireNewView=!1,"_ec_"+t.id+"_"+t.type),i=!i&&l[n];i||(e=jr(t.type),(i=new(o?Jg.getClass(e.main,e.sub):oy.getClass(e.sub))).init(r,h),l[n]=i,s.push(i),u.add(i.group)),t.__viewId=i.__id=n,i.__alive=!0,i.__model=t,i.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},o||a.prepareView(i,t,r,h)}o?r.eachComponent(function(t,e){"series"!==t&&i(e)}):r.eachSeries(i);for(e=0;e<s.length;){var n=s[e];n.__alive?e++:(o||n.renderTask.dispose(),u.remove(n.group),n.dispose(r,h),s.splice(e,1),l[n.__id]===n&&delete l[n.__id],n.__id=n.group.__ecComponentInfo=null)}},e0=function(c,e,p,i,t){var n,d,o=c._model;function r(t){t&&t.__alive&&t[e]&&t[e](t.__model,o,c._api,p)}o.setUpdatePayload(p),i?((n={})[i+"Id"]=p[i+"Id"],n[i+"Index"]=p[i+"Index"],n[i+"Name"]=p[i+"Name"],n={mainType:i,query:n},t&&(n.subType=t),null!=(t=p.excludeSeriesId)&&(d=N(),O(Tr(t),function(t){t=Pr(t,null);null!=t&&d.set(t,!0)})),o&&o.eachComponent(n,function(t){var e,i,n=d&&null!=d.get(t.id);if(!n)if($l(p))if(t instanceof Ug){if(p.type===hl&&!p.notBlur&&!t.get(["emphasis","disabled"])){var n=t,o=p,r=c._api,a=n.seriesIndex,s=n.getData(o.dataType);if(s){var o=(V(o=Nr(s,o))?o[0]:o)||0,l=s.getItemGraphicEl(o);if(!l)for(var u=s.count(),h=0;!l&&h<u;)l=s.getItemGraphicEl(h++);l?Vl(a,(o=k(l)).focus,o.blurScope,r):(o=n.get(["emphasis","focus"]),n=n.get(["emphasis","blurScope"]),null!=o&&Vl(a,o,n,r))}}}else{a=Hl(t.mainType,t.componentIndex,p.name,c._api),o=a.focusSelf,n=a.dispatchers;p.type===hl&&o&&!p.notBlur&&Fl(t.mainType,t.componentIndex,c._api),n&&O(n,function(t){(p.type===hl?Ll:Pl)(t)})}else Kl(p)&&t instanceof Ug&&(r=t,n=p,c._api,Kl(n)&&(e=n.dataType,V(i=Nr(r.getData(e),n))||(i=[i]),r[n.type===fl?"toggleSelect":n.type===pl?"select":"unselect"](i,e)),Gl(t),g0(c))},c),o&&o.eachComponent(n,function(t){d&&null!=d.get(t.id)||r(c["series"===i?"_chartsMap":"_componentsMap"][t.__viewId])},c)):O([].concat(c._componentsViews).concat(c._chartsViews),r)},i0={prepareAndUpdate:function(t){Jm(this),i0.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(t,e){var i=this._model,n=this._api,o=this._zr,r=this._coordSysMgr,a=this._scheduler;i&&(i.setUpdatePayload(t),a.restoreData(i,t),a.performSeriesTasks(i),r.create(i,n),a.performDataProcessorTasks(i,t),o0(this,i),r.update(i,n),_0(i),a.performVisualTasks(i,t),h0(this,i,n,t,e),r=i.get("backgroundColor")||"transparent",a=i.get("darkMode"),o.setBackgroundColor(r),null!=a&&"auto"!==a&&o.setDarkMode(a),Fm.trigger("afterupdate",i,n))},updateTransform:function(i){var n,o,r=this,a=this._model,s=this._api;a&&(a.setUpdatePayload(i),n=[],a.eachComponent(function(t,e){"series"!==t&&(t=r.getViewOfComponentModel(e))&&t.__alive&&(!t.updateTransform||(e=t.updateTransform(e,a,s,i))&&e.update)&&n.push(t)}),o=N(),a.eachSeries(function(t){var e=r._chartsMap[t.__viewId];(!e.updateTransform||(e=e.updateTransform(t,a,s,i))&&e.update)&&o.set(t.uid,1)}),_0(a),this._scheduler.performVisualTasks(a,i,{setDirty:!0,dirtyMap:o}),p0(this,a,s,i,{},o),Fm.trigger("afterupdate",a,s))},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),oy.markUpdateMethod(t,"updateView"),_0(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),h0(this,e,this._api,t,{}),Fm.trigger("afterupdate",e,this._api))},updateVisual:function(i){var n=this,o=this._model;o&&(o.setUpdatePayload(i),o.eachSeries(function(t){t.getData().clearAllVisual()}),oy.markUpdateMethod(i,"updateVisual"),_0(o),this._scheduler.performVisualTasks(o,i,{visualType:"visual",setDirty:!0}),o.eachComponent(function(t,e){"series"!==t&&(t=n.getViewOfComponentModel(e))&&t.__alive&&t.updateVisual(e,o,n._api,i)}),o.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,o,n._api,i)}),Fm.trigger("afterupdate",o,this._api))},updateLayout:function(t){i0.update.call(this,t)}},n0=function(t,e,i,n){if(t._disposed)t.id;else for(var o=t._model,r=t._coordSysMgr.getCoordinateSystems(),a=Vr(o,i),s=0;s<r.length;s++){var l=r[s];if(l[e]&&null!=(l=l[e](o,a,n)))return l}},o0=function(t,e){var i=t._chartsMap,n=t._scheduler;e.eachSeries(function(t){n.updateStreamModes(t,i[t.__viewId])})},r0=function(n,t){var o,r,a=this,e=this.getModel(),i=n.type,s=n.escapeConnect,l=T0[i],u=l.actionInfo,h=(u.update||"update").split(":"),c=h.pop(),p=null!=h[0]&&jr(h[0]),h=(this[Gm]=!0,[n]),d=!1,f=(n.batch&&(d=!0,h=B(n.batch,function(t){return(t=E(P({},t),n)).batch=null,t})),[]),g=Kl(n),y=$l(n);if(y&&Bl(this._api),O(h,function(t){var e,i;(o=(o=l.action(t,a._model,a._api))||P({},t)).type=u.event||o.type,f.push(o),y?(e=(i=Fr(n)).queryOptionMap,i=i.mainTypeSpecified?e.keys()[0]:"series",e0(a,c,t,i),g0(a)):g?(e0(a,c,t,"series"),g0(a)):p&&e0(a,c,t,p.main,p.sub)}),"none"!==c&&!y&&!g&&!p)try{this[Wm]?(Jm(this),i0.update.call(this,n),this[Wm]=null):i0[c].call(this,n)}catch(t){throw this[Gm]=!1,t}o=d?{type:u.event||i,escapeConnect:s,batch:f}:f[0],this[Gm]=!1,t||((h=this._messageCenter).trigger(o.type,o),g&&(d={type:"selectchanged",escapeConnect:s,selected:(r=[],e.eachSeries(function(i){O(i.getAllData(),function(t){t.data;var t=t.type,e=i.getSelectedDataIndices();0<e.length&&(e={dataIndex:e,seriesIndex:i.seriesIndex},null!=t&&(e.dataType=t),r.push(e))})}),r),isFromClick:n.isFromClick||!1,fromAction:n.type,fromActionPayload:n},h.trigger(d.type,d)))},a0=function(t){for(var e=this._pendingActions;e.length;){var i=e.shift();r0.call(this,i,t)}},s0=function(t){t||this.trigger("updated")},l0=function(e,i){e.on("rendered",function(t){i.trigger("rendered",t),!e.animation.isFinished()||i[Wm]||i._scheduler.unfinished||i._pendingActions.length||i.trigger("finished")})},u0=function(t,a){t.on("mouseover",function(t){var e,i,n,o,r=qy(t.target,jl);r&&(r=r,e=t,t=a._api,i=k(r),n=(o=Hl(i.componentMainType,i.componentIndex,i.componentHighDownName,t)).dispatchers,o=o.focusSelf,n?(o&&Fl(i.componentMainType,i.componentIndex,t),O(n,function(t){return kl(t,e)})):(Vl(i.seriesIndex,i.focus,i.blurScope,t),"self"===i.focus&&Fl(i.componentMainType,i.componentIndex,t),kl(r,e)),g0(a))}).on("mouseout",function(t){var e,i,n=qy(t.target,jl);n&&(n=n,e=t,Bl(t=a._api),(i=Hl((i=k(n)).componentMainType,i.componentIndex,i.componentHighDownName,t).dispatchers)?O(i,function(t){return Al(t,e)}):Al(n,e),g0(a))}).on("click",function(t){var e,t=qy(t.target,function(t){return null!=k(t).dataIndex},!0);t&&(e=t.selected?"unselect":"select",t=k(t),a._api.dispatchAction({type:e,dataType:t.dataType,dataIndexInside:t.dataIndex,seriesIndex:t.seriesIndex,isFromClick:!0}))})},h0=function(t,e,i,n,o){var r,a,s,l,u,h,c;u=[],c=!(h=[]),(r=e).eachComponent(function(t,e){var i=e.get("zlevel")||0,n=e.get("z")||0,o=e.getZLevelKey();c=c||!!o,("series"===t?h:u).push({zlevel:i,z:n,idx:e.componentIndex,type:t,key:o})}),c&&(mi(a=u.concat(h),function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),O(a,function(t){var e=r.getComponent(t.type,t.idx),i=t.zlevel,t=t.key;null!=s&&(i=Math.max(s,i)),t?(i===s&&t!==l&&i++,l=t):l&&(i===s&&i++,l=""),s=i,e.setZLevel(i)})),c0(t,e,i,n,o),O(t._chartsViews,function(t){t.__alive=!1}),p0(t,e,i,n,o),O(t._chartsViews,function(t){t.__alive||t.remove(e,i)})},c0=function(t,i,n,o,e,r){O(r||t._componentsViews,function(t){var e=t.__model;b0(0,t),t.render(e,i,n,o),w0(e,t),S0(e,t)})},p0=function(o,t,e,r,i,a){var n,s,l,u,h=o._scheduler,c=(i=P(i||{},{updatedSeries:t.getSeries()}),Fm.trigger("series:beforeupdate",t,e,i),!1);t.eachSeries(function(t){var e,i=o._chartsMap[t.__viewId],n=(i.__alive=!0,i.renderTask);h.updatePayload(n,r),b0(0,i),a&&a.get(t.uid)&&n.dirty(),n.perform(h.getPerformArgs(n))&&(c=!0),i.group.silent=!!t.get("silent"),n=i,e=t.get("blendMode")||null,n.eachRendered(function(t){t.isGroup||(t.style.blend=e)}),Gl(t)}),h.unfinished=c||h.unfinished,Fm.trigger("series:layoutlabels",t,e,i),Fm.trigger("series:transition",t,e,i),t.eachSeries(function(t){var e=o._chartsMap[t.__viewId];w0(t,e),S0(t,e)}),s=t,l=(n=o)._zr.storage,u=0,l.traverse(function(t){t.isGroup||u++}),u>s.get("hoverLayerThreshold")&&!b.node&&!b.worker&&s.eachSeries(function(t){t.preventUsingHoverLayer||(t=n._chartsMap[t.__viewId]).__alive&&t.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}),Fm.trigger("series:afterupdate",t,e,i)},g0=function(t){t[Xm]=!0,t.getZr().wakeUp()},y0=function(t){t[Xm]&&(t.getZr().storage.traverse(function(t){Vh(t)||x0(t)}),t[Xm]=!1)},d0=function(i){return u(t,e=Dd),t.prototype.getCoordinateSystems=function(){return i._coordSysMgr.getCoordinateSystems()},t.prototype.getComponentByElement=function(t){for(;t;){var e=t.__ecComponentInfo;if(null!=e)return i._model.getComponent(e.mainType,e.index);t=t.parent}},t.prototype.enterEmphasis=function(t,e){Ll(t,e),g0(i)},t.prototype.leaveEmphasis=function(t,e){Pl(t,e),g0(i)},t.prototype.enterBlur=function(t){Ol(t),g0(i)},t.prototype.leaveBlur=function(t){Rl(t),g0(i)},t.prototype.enterSelect=function(t){zl(t),g0(i)},t.prototype.leaveSelect=function(t){Nl(t),g0(i)},t.prototype.getModel=function(){return i.getModel()},t.prototype.getViewOfComponentModel=function(t){return i.getViewOfComponentModel(t)},t.prototype.getViewOfSeriesModel=function(t){return i.getViewOfSeriesModel(t)},new t(i);function t(){return null!==e&&e.apply(this,arguments)||this}var e},void(f0=function(n){function o(t,e){for(var i=0;i<t.length;i++)t[i][Ym]=e}O(I0,function(t,e){n._messageCenter.on(e,function(t){var e,i;!O0[n.group]||0===n[Ym]||t&&t.escapeConnect||(e=n.makeActionFromEvent(t),i=[],O(P0,function(t){t!==n&&t.group===n.group&&i.push(t)}),o(i,0),O(i,function(t){1!==t[Ym]&&t.dispatchAction(e)}),o(i,2))})})})),h);function h(t,e,i){var n=m0.call(this,new Hy)||this,t=(n._chartsViews=[],n._chartsMap={},n._componentsViews=[],n._componentsMap={},n._pendingActions=[],i=i||{},F(e)&&(e=A0[e]),n._dom=t,i.ssr&&er(function(t){var e,t=k(t),i=t.dataIndex;if(null!=i)return(e=N()).set("series_index",t.seriesIndex),e.set("data_index",i),t.ssrType&&e.set("ssr_type",t.ssrType),e}),n._zr=Jo(t,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:z(i.useDirtyRect,!1),useCoarsePointer:z(i.useCoarsePointer,"auto"),pointerSize:i.pointerSize})),i=(n._ssr=i.ssr,n._throttledZrFlush=fy(S(t.flush,t),17),(e=y(e))&&tf(e,!0),n._theme=e,n._locale=F(e=i.locale||Qc)?(i=Kc[e.toUpperCase()]||{},e===Zc||e===qc?y(i):d(y(i),y(Kc[jc]),!1)):d(y(e),y(Kc[jc]),!1),n._coordSysMgr=new Ld,n._api=d0(n));function o(t,e){return t.__prio-e.__prio}return mi(k0,o),mi(C0,o),n._scheduler=new My(n,i,C0,k0),n._messageCenter=new $m,n._initEvents(),n.resize=S(n.resize,n),t.animation.on("frame",n._onframe,n),l0(t,n),u0(t,n),Ct(n),n}function _0(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function x0(t){for(var e=[],i=t.currentStates,n=0;n<i.length;n++){var o=i[n];"emphasis"!==o&&"blur"!==o&&"select"!==o&&e.push(o)}t.selected&&t.states.select&&e.push("select"),t.hoverState===sl&&t.states.emphasis?e.push("emphasis"):t.hoverState===al&&t.states.blur&&e.push("blur"),t.useStates(e)}function w0(t,e){var i,n;t.preventAutoZ||(i=t.get("z")||0,n=t.get("zlevel")||0,e.eachRendered(function(t){return function t(e,i,n,o){var r=e.getTextContent();var a=e.getTextGuideLine();var s=e.isGroup;if(s)for(var l=e.childrenRef(),u=0;u<l.length;u++)o=Math.max(t(l[u],i,n,o),o);else e.z=i,e.zlevel=n,o=Math.max(e.z2,o);r&&(r.z=i,r.zlevel=n,isFinite(o))&&(r.z2=o+2);a&&(s=e.textGuideLineConfig,a.z=i,a.zlevel=n,isFinite(o))&&(a.z2=o+(s&&s.showAbove?1:-1));return o}(t,i,n,-1/0),!0}))}function b0(t,e){e.eachRendered(function(t){var e,i;Vh(t)||(e=t.getTextContent(),i=t.getTextGuideLine(),t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),i&&i.stateTransition&&(i.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null))})}function S0(t,e){var i=t.getModel("stateAnimation"),o=t.isAnimationEnabled(),t=i.get("duration"),r=0<t?{duration:t,delay:i.get("delay"),easing:i.get("easing")}:null;e.eachRendered(function(t){var e,i,n;t.states&&t.states.emphasis&&(Vh(t)||(t instanceof ws&&((n=nl(i=t)).normalFill=i.style.fill,n.normalStroke=i.style.stroke,i=i.states.select||{},n.selectFill=i.style&&i.style.fill||null,n.selectStroke=i.style&&i.style.stroke||null),t.__dirty&&(n=t.prevStates)&&t.useStates(n),o&&(t.stateTransition=r,i=t.getTextContent(),e=t.getTextGuideLine(),i&&(i.stateTransition=r),e)&&(e.stateTransition=r),t.__dirty&&x0(t)))})}var im=v0.prototype,M0=(im.on=Zm("on"),im.off=Zm("off"),im.one=function(n,o,t){var r=this;this.on.call(this,n,function t(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];o&&o.apply&&o.apply(this,e),r.off(n,t)},t)},["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"]);var T0={},I0={},C0=[],D0=[],k0=[],A0={},L0={},P0={},O0={},R0=+new Date,z0=+new Date,N0="_echarts_instance_";function E0(t){O0[t]=!1}Jy=E0;function B0(t){return P0[e=N0,(t=t).getAttribute?t.getAttribute(e):t[e]];var e}function V0(t,e){A0[t]=e}function F0(t){C(D0,t)<0&&D0.push(t)}function H0(t,e){K0(C0,t,e,2e3)}function G0(t){X0("afterinit",t)}function W0(t){X0("afterupdate",t)}function X0(t,e){Fm.on(t,e)}function U0(t,e,i){D(e)&&(i=e,e="");var n=R(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,I0[e]||(Mt(Um.test(n)&&Um.test(e)),T0[n]||(T0[n]={action:i,actionInfo:t}),I0[e]=n)}function Y0(t,e){Ld.register(t,e)}function Z0(t,e){K0(k0,t,e,1e3,"layout")}function q0(t,e){K0(k0,t,e,3e3,"visual")}var j0=[];function K0(t,e,i,n,o){(D(e)||R(e))&&(i=e,e=n),0<=C(j0,i)||(j0.push(i),(n=My.wrapStageHandler(i,o)).__prio=e,n.__raw=i,t.push(n))}function $0(t,e){L0[t]=e}function Q0(t,e,i){var n=Hm.registerMap;n&&n(t,e,i)}function J0(t){var e=(t=y(t)).type,i=(e||f(""),e.split(":")),n=(2!==i.length&&f(""),!1);"echarts"===i[0]&&(e=i[1],n=!0),t.__isBuiltIn=n,lg.set(e,t)}q0(2e3,zc),q0(4500,oa),q0(4500,Vc),q0(2e3,Ec),q0(4500,Oc),q0(7e3,function(e,n){e.eachRawSeries(function(t){var i;!e.isSeriesFiltered(t)&&((i=t.getData()).hasItemVisual()&&i.each(function(t){var e=i.getItemVisual(t,"decal");e&&(i.ensureUniqueItemVisual(t,"style").decal=Bm(e,n))}),t=i.getVisual("decal"))&&(i.getVisual("style").decal=Bm(t,n))})}),F0(tf),H0(900,function(t){var n=N();t.eachSeries(function(t){var e,i=t.get("stack");i&&(i=n.get(i)||n.set(i,[]),(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)&&(i.length&&e.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(t))}),n.each(ef)}),$0("default",function(n,o){E(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 Yo,a=new Bs({style:{fill:o.maskColor},zlevel:o.zlevel,z:1e4}),s=(t.add(a),new Ws({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 Bs({style:{fill:"none"},textContent:s,textConfig:{position:"right",distance:10},zlevel:o.zlevel,z:10001});return t.add(l),o.showSpinner&&((r=new fh({shape:{startAngle:-Sy/2,endAngle:-Sy/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*Sy/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Sy/2}).delay(300).start("circularInOut"),t.add(r)),t.resize=function(){var t=s.getBoundingRect().width,e=o.showSpinner?o.spinnerRadius:0,t=(n.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),i=n.getHeight()/2;o.showSpinner&&r.setShape({cx:t,cy:i}),l.setShape({x:t-e,y:i-e,width:2*e,height:2*e}),a.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},t.resize(),t}),U0({type:hl,event:hl,update:hl},Bt),U0({type:cl,event:cl,update:cl},Bt),U0({type:pl,event:pl,update:pl},Bt),U0({type:dl,event:dl,update:dl},Bt),U0({type:fl,event:fl,update:fl},Bt),V0("light",rp),V0("dark",ic);function tv(t){return null==t?0:t.length||1}function ev(t){return t}nv.prototype.add=function(t){return this._add=t,this},nv.prototype.update=function(t){return this._update=t,this},nv.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},nv.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},nv.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},nv.prototype.remove=function(t){return this._remove=t,this},nv.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},nv.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},n=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var r=0;r<t.length;r++){var a,s=n[r],l=i[s],u=tv(l);1<u?(a=l.shift(),1===l.length&&(i[s]=l[0]),this._update&&this._update(a,r)):1===u?(i[s]=null,this._update&&this._update(l,r)):this._remove&&this._remove(r)}this._performRestAdd(o,i)},nv.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},o=[],r=[];this._initIndexMap(t,i,o,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var a=0;a<o.length;a++){var s=o[a],l=i[s],u=n[s],h=tv(l),c=tv(u);if(1<h&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),n[s]=null;else if(1===h&&1<c)this._updateOneToMany&&this._updateOneToMany(u,l),n[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),n[s]=null;else if(1<h&&1<c)this._updateManyToMany&&this._updateManyToMany(u,l),n[s]=null;else if(1<h)for(var p=0;p<h;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(r,n)},nv.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],o=e[n],r=tv(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[n]=null}},nv.prototype._initIndexMap=function(t,e,i,n){for(var o=this._diffModeMultiple,r=0;r<t.length;r++){var a,s,l="_ec_"+this[n](t[r],r);o||(i[r]=l),e&&(0===(s=tv(a=e[l]))?(e[l]=r,o&&i.push(l)):1===s?e[l]=[a,r]:a.push(r))}};var iv=nv;function nv(t,e,i,n,o,r){this._old=t,this._new=e,this._oldKeyGetter=i||ev,this._newKeyGetter=n||ev,this.context=o,this._diffModeMultiple="multiple"===r}rv.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},rv.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames};var ov=rv;function rv(t,e){this._encode=t,this._schema=e}function av(r,t){var e={},a=e.encode={},s=N(),l=[],u=[],h={},n=(O(r.dimensions,function(t){var e,i,n=r.getDimensionInfo(t),o=n.coordDim;o&&(e=n.coordDimIndex,sv(a,o)[e]=t,n.isExtraCoord||(s.set(o,1),"ordinal"!==(i=n.type)&&"time"!==i&&(l[0]=t),sv(h,o)[e]=r.getDimensionIndex(n.name)),n.defaultTooltip)&&u.push(t),td.each(function(t,e){var i=sv(a,e),e=n.otherDims[e];null!=e&&!1!==e&&(i[e]=n.name)})}),[]),o={},i=(s.each(function(t,e){var i=a[e];o[e]=i[0],n=n.concat(i)}),e.dataDimsOnCoord=n,e.dataDimIndicesOnCoord=B(n,function(t){return r.getDimensionInfo(t).storeDimIndex}),e.encodeFirstDimNotExtra=o,a.label),i=(i&&i.length&&(l=i.slice()),a.tooltip);return i&&i.length?u=i.slice():u.length||(u=l.slice()),a.defaultedLabel=l,a.defaultedTooltip=u,e.userOutput=new ov(h,t),e}function sv(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}var lv=function(t){this.otherDims={},null!=t&&P(this,t)},uv=Er(),hv={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},cv=(pv.prototype.isDimensionOmitted=function(){return this._dimOmitted},pv.prototype._updateDimOmitted=function(t){(this._dimOmitted=t)&&!this._dimNameMap&&(this._dimNameMap=gv(this.source))},pv.prototype.getSourceDimensionIndex=function(t){return z(this._dimNameMap.get(t),-1)},pv.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},pv.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=pf(this.source),i=!(30<t),n="",o=[],r=0,a=0;r<t;r++){var s,l=void 0,u=void 0,h=void 0,c=this.dimensions[a];c&&c.storeDimIndex===r?(l=e?c.name:null,u=c.type,h=c.ordinalMeta,a++):(s=this.getSourceDimension(r))&&(l=e?s.name:null,u=s.type),o.push({property:l,type:u,ordinalMeta:h}),!e||null==l||c&&c.isCalculationCoord||(n+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n=n+"$"+(hv[u]||"f"),h&&(n+=h.uid),n+="$"}var p=this.source;return{dimensions:o,hash:[p.seriesLayoutBy,p.startIndex,n].join("$$")}},pv.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,i=0;e<this._fullDimCount;e++){var n=void 0,o=this.dimensions[i];o&&o.storeDimIndex===e?(o.isCalculationCoord||(n=o.name),i++):(o=this.getSourceDimension(e))&&(n=o.name),t.push(n)}return t},pv.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},pv);function pv(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}function dv(t){return t instanceof cv}function fv(t){for(var e=N(),i=0;i<(t||[]).length;i++){var n=t[i],n=R(n)?n.name:n;null!=n&&null==e.get(n)&&e.set(n,i)}return e}function gv(t){var e=uv(t);return e.dimNameMap||(e.dimNameMap=fv(t.dimensionsDefine))}var yv,mv,vv,_v,xv,wv,bv,Sv=R,Mv=B,Tv="undefined"==typeof Int32Array?Array:Int32Array,Iv=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Cv=["_approximateExtent"],Dv=(c.prototype.getDimension=function(t){var e;return null==(e=this._recognizeDimIndex(t))?t:(e=t,this._dimOmitted?null!=(t=this._dimIdxToName.get(e))?t:(t=this._schema.getSourceDimension(e))?t.name:void 0:this.dimensions[e])},c.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);return null!=e?e:null==t?-1:(e=this._getDimInfo(t))?e.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},c.prototype._recognizeDimIndex=function(t){if(pt(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},c.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},c.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},c.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},c.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},c.prototype.mapDimension=function(t,e){var i=this._dimSummary;return null==e?i.encodeFirstDimNotExtra[t]:(i=i.encode[t])?i[e]:null},c.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},c.prototype.getStore=function(){return this._store},c.prototype.initData=function(t,e,i){var n,o,r=this;(n=t instanceof _g?t:n)||(o=this.dimensions,t=af(t)||st(t)?new yf(t,o.length):t,n=new _g,o=Mv(o,function(t){return{type:r._dimInfos[t].type,property:t}}),n.initData(t,o,i)),this._store=n,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,n.count()),this._dimSummary=av(this,this._schema),this.userOutput=this._dimSummary.userOutput},c.prototype.appendData=function(t){t=this._store.appendData(t);this._doInit(t[0],t[1])},c.prototype.appendValues=function(t,e){var t=this._store.appendValues(t,e.length),i=t.start,n=t.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var r=i;r<n;r++)this._nameList[r]=e[r-i],o&&bv(this,r)},c.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,i=0;i<e.length;i++){var n=this._dimInfos[e[i]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},c.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==rd&&!t.fillStorage},c.prototype._doInit=function(t,e){if(!(e<=t)){var i=this._store.getProvider(),n=(this._updateOrdinalMeta(),this._nameList),o=this._idList;if(i.getSource().sourceFormat===ed&&!i.pure)for(var r=[],a=t;a<e;a++){var s,l=i.getItem(a,r);this.hasItemOption||!R(s=l)||s instanceof Array||(this.hasItemOption=!0),l&&(s=l.name,null==n[a]&&null!=s&&(n[a]=Pr(s,null)),l=l.id,null==o[a])&&null!=l&&(o[a]=Pr(l,null))}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)bv(this,a);yv(this)}},c.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(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){Sv(t)?P(this._calculationInfo,t):this._calculationInfo[t]=e},c.prototype.getName=function(t){var t=this.getRawIndex(t),e=this._nameList[t];return e=null==(e=null==e&&null!=this._nameDimIdx?vv(this,this._nameDimIdx,t):e)?"":e},c.prototype._getCategory=function(t,e){e=this._store.get(t,e),t=this._store.getOrdinalMeta(t);return t?t.categories[e]:e},c.prototype.getId=function(t){return mv(this,this.getRawIndex(t))},c.prototype.count=function(){return this._store.count()},c.prototype.get=function(t,e){var i=this._store,t=this._dimInfos[t];if(t)return i.get(t.storeDimIndex,e)},c.prototype.getByRawIndex=function(t,e){var i=this._store,t=this._dimInfos[t];if(t)return i.getByRawIndex(t.storeDimIndex,e)},c.prototype.getIndices=function(){return this._store.getIndices()},c.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},c.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},c.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},c.prototype.getValues=function(t,e){var i=this,n=this._store;return V(t)?n.getValues(Mv(t,function(t){return i._getStoreDimIndex(t)}),e):n.getValues(t)},c.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,i=0,n=e.length;i<n;i++)if(isNaN(this._store.get(e[i],t)))return!1;return!0},c.prototype.indexOfName=function(t){for(var e=0,i=this._store.count();e<i;e++)if(this.getName(e)===t)return e;return-1},c.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},c.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},c.prototype.rawIndexOf=function(t,e){t=(t&&this._invertedIndicesMap[t])[e];return null==t||isNaN(t)?-1:t},c.prototype.indicesOfNearest=function(t,e,i){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,i)},c.prototype.each=function(t,e,i){D(t)&&(i=e,e=t,t=[]);i=i||this,t=Mv(_v(t),this._getStoreDimIndex,this);this._store.each(t,i?S(e,i):e)},c.prototype.filterSelf=function(t,e,i){D(t)&&(i=e,e=t,t=[]);i=i||this,t=Mv(_v(t),this._getStoreDimIndex,this);return this._store=this._store.filter(t,i?S(e,i):e),this},c.prototype.selectRange=function(i){var n=this,o={};return O(ht(i),function(t){var e=n._getStoreDimIndex(t);o[e]=i[t]}),this._store=this._store.selectRange(o),this},c.prototype.mapArray=function(t,e,i){D(t)&&(i=e,e=t,t=[]);var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},i=i||this),n},c.prototype.map=function(t,e,i,n){i=i||n||this,n=Mv(_v(t),this._getStoreDimIndex,this),t=wv(this);return t._store=this._store.map(n,i?S(e,i):e),t},c.prototype.modify=function(t,e,i,n){i=i||n||this,n=Mv(_v(t),this._getStoreDimIndex,this);this._store.modify(n,i?S(e,i):e)},c.prototype.downSample=function(t,e,i,n){var o=wv(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),e,i,n),o},c.prototype.lttbDownSample=function(t,e){var i=wv(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),i},c.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},c.prototype.getItemModel=function(t){var e=this.hostModel,t=this.getRawDataItem(t);return new Gc(t,e,e&&e.ecModel)},c.prototype.diff=function(e){var i=this;return new iv(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return mv(e,t)},function(t){return mv(i,t)})},c.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},c.prototype.setVisual=function(t,e){this._visual=this._visual||{},Sv(t)?P(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 i=this._itemVisuals,n=i[t],i=(n=n||(i[t]={}))[e];return null==i&&(V(i=this.getVisual(e))?i=i.slice():Sv(i)&&(i=P({},i)),n[e]=i),i},c.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,Sv(e)?P(n,e):n[e]=i},c.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},c.prototype.setLayout=function(t,e){Sv(t)?P(this._layout,t):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,i){this._itemLayouts[t]=i?P(this._itemLayouts[t]||{},e):e},c.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},c.prototype.setItemGraphicEl=function(t,e){var i,n,o,r,a=this.hostModel&&this.hostModel.seriesIndex;i=a,n=this.dataType,o=t,(a=e)&&((r=k(a)).dataIndex=o,r.dataType=n,r.seriesIndex=i,r.ssrType="chart","group"===a.type)&&a.traverse(function(t){t=k(t);t.seriesIndex=i,t.dataIndex=o,t.dataType=n,t.ssrType="chart"}),this._graphicEls[t]=e},c.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},c.prototype.eachItemGraphicEl=function(i,n){O(this._graphicEls,function(t,e){t&&i&&i.call(n,t,e)})},c.prototype.cloneShallow=function(t){return t=t||new c(this._schema||Mv(this.dimensions,this._getDimInfo,this),this.hostModel),xv(t,this),t._store=this._store,t},c.prototype.wrapMethod=function(t,e){var i=this[t];D(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(bt(arguments)))})},c.internalField=(yv=function(a){var s=a._invertedIndicesMap;O(s,function(t,e){var i=a._dimInfos[e],n=i.ordinalMeta,o=a._store;if(n){t=s[e]=new Tv(n.categories.length);for(var r=0;r<t.length;r++)t[r]=-1;for(r=0;r<o.count();r++)t[o.get(i.storeDimIndex,r)]=r}})},vv=function(t,e,i){return Pr(t._getCategory(e,i),null)},mv=function(t,e){var i=t._idList[e];return i=null==(i=null==i&&null!=t._idDimIdx?vv(t,t._idDimIdx,e):i)?"e\0\0"+e:i},_v=function(t){return t=V(t)?t:null!=t?[t]:[]},wv=function(t){var e=new c(t._schema||Mv(t.dimensions,t._getDimInfo,t),t.hostModel);return xv(e,t),e},xv=function(e,i){O(Iv.concat(i.__wrappedMethods||[]),function(t){i.hasOwnProperty(t)&&(e[t]=i[t])}),e.__wrappedMethods=i.__wrappedMethods,O(Cv,function(t){e[t]=y(i[t])}),e._calculationInfo=P({},i._calculationInfo)},void(bv=function(t,e){var i=t._nameList,n=t._idList,o=t._nameDimIdx,r=t._idDimIdx,a=i[e],s=n[e];null==a&&null!=o&&(i[e]=a=vv(t,o,e)),null==s&&null!=r&&(n[e]=s=vv(t,r,e)),null==s&&null!=a&&(s=a,1<(o=(i=t._nameRepeatCount)[a]=(i[a]||0)+1)&&(s+="__ec__"+o),n[e]=s)})),c);function c(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"];for(var i,n,o=!(this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"]),r=(dv(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(o=!0,i=t),i=i||["x","y"],{}),a=[],s={},l=!1,u={},h=0;h<i.length;h++){var c=i[h],c=F(c)?new lv({name:c}):c instanceof lv?c:new lv(c),p=c.name,d=(c.type=c.type||"float",c.coordDim||(c.coordDim=p,c.coordDimIndex=0),c.otherDims=c.otherDims||{});a.push(p),null!=u[p]&&(l=!0),(r[p]=c).createInvertedIndices&&(s[p]=[]),0===d.itemName&&(this._nameDimIdx=h),0===d.itemId&&(this._idDimIdx=h),o&&(c.storeDimIndex=h)}this.dimensions=a,this._dimInfos=r,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted&&(n=this._dimIdxToName=N(),O(a,function(t){n.set(r[t].storeDimIndex,t)}))}function kv(t,e){af(t)||(t=lf(t));for(var i,n,o=(e=e||{}).coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],a=N(),s=[],l=(u=t,i=o,p=e.dimensionsCount,n=Math.max(u.dimensionsDetectedCount||1,i.length,r.length,p||0),O(i,function(t){R(t)&&(t=t.dimsDef)&&(n=Math.max(n,t.length))}),n),u=e.canOmitUnusedDimensions&&30<l,h=r===t.dimensionsDefine,c=h?gv(t):fv(r),p=e.encodeDefine,d=N(p=!p&&e.encodeDefaulter?e.encodeDefaulter(t,l):p),f=new fg(l),g=0;g<f.length;g++)f[g]=-1;function y(t){var e,i,n,o=f[t];return o<0?(e=R(e=r[t])?e:{name:e},i=new lv,null!=(n=e.name)&&null!=c.get(n)&&(i.name=i.displayName=n),null!=e.type&&(i.type=e.type),null!=e.displayName&&(i.displayName=e.displayName),f[t]=s.length,i.storeDimIndex=t,s.push(i),i):s[o]}if(!u)for(g=0;g<l;g++)y(g);d.each(function(t,i){var n,t=Tr(t).slice();1===t.length&&!F(t[0])&&t[0]<0?d.set(i,!1):(n=d.set(i,[]),O(t,function(t,e){t=F(t)?c.get(t):t;null!=t&&t<l&&v(y(n[e]=t),i,e)}))});var m=0;function v(t,e,i){null!=td.get(e)?t.otherDims[e]=i:(t.coordDim=e,t.coordDimIndex=i,a.set(e,!0))}O(o,function(t){F(t)?(r=t,o={}):(r=(o=t).name,t=o.ordinalMeta,o.ordinalMeta=null,(o=P({},o)).ordinalMeta=t,i=o.dimsDef,n=o.otherDims,o.name=o.coordDim=o.coordDimIndex=o.dimsDef=o.otherDims=null);var i,n,o,r,e=d.get(r);if(!1!==e){if(!(e=Tr(e)).length)for(var a=0;a<(i&&i.length||1);a++){for(;m<l&&null!=y(m).coordDim;)m++;m<l&&e.push(m++)}O(e,function(t,e){t=y(t);h&&null!=o.type&&(t.type=o.type),v(E(t,o),r,e),null==t.name&&i&&(R(e=i[e])||(e={name:e}),t.name=t.displayName=e.name,t.defaultTooltip=e.defaultTooltip),n&&E(t.otherDims,n)})}});var _=e.generateCoord,x=null!=(w=e.generateCoordCount),w=_?w||1:0,b=_||"value";function S(t){null==t.name&&(t.name=t.coordDim)}if(u)O(s,function(t){S(t)}),s.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var M=0;M<l;M++){var T=y(M);null==T.coordDim&&(T.coordDim=function(t,e,i){if(i||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}(b,a,x),T.coordDimIndex=0,(!_||w<=0)&&(T.isExtraCoord=!0),w--),S(T),null!=T.type||dd(t,M)!==ud.Must&&(!T.isExtraCoord||null==T.otherDims.itemName&&null==T.otherDims.seriesName)||(T.type="ordinal")}for(var I=s,C=N(),D=0;D<I.length;D++){var k=I[D],A=k.name,L=C.get(A)||0;0<L&&(k.name=A+(L-1)),L++,C.set(A,L)}return new cv({source:t,dimensions:s,fullDimensionCount:l,dimensionOmitted:u})}var Av=function(t){this.coordSysDims=[],this.axisMap=N(),this.categoryAxisMap=N(),this.coordSysName=t};var Lv={cartesian2d:function(t,e,i,n){var o=t.getReferringComponents("xAxis",Hr).models[0],t=t.getReferringComponents("yAxis",Hr).models[0];e.coordSysDims=["x","y"],i.set("x",o),i.set("y",t),Pv(o)&&(n.set("x",o),e.firstCategoryDimIndex=0),Pv(t)&&(n.set("y",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},singleAxis:function(t,e,i,n){t=t.getReferringComponents("singleAxis",Hr).models[0];e.coordSysDims=["single"],i.set("single",t),Pv(t)&&(n.set("single",t),e.firstCategoryDimIndex=0)},polar:function(t,e,i,n){var t=t.getReferringComponents("polar",Hr).models[0],o=t.findAxisModel("radiusAxis"),t=t.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],i.set("radius",o),i.set("angle",t),Pv(o)&&(n.set("radius",o),e.firstCategoryDimIndex=0),Pv(t)&&(n.set("angle",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},geo:function(t,e,i,n){e.coordSysDims=["lng","lat"]},parallel:function(t,n,o,r){var a=t.ecModel,t=a.getComponent("parallel",t.get("parallelIndex")),s=n.coordSysDims=t.dimensions.slice();O(t.parallelAxisIndex,function(t,e){var t=a.getComponent("parallelAxis",t),i=s[e];o.set(i,t),Pv(t)&&(r.set(i,t),null==n.firstCategoryDimIndex)&&(n.firstCategoryDimIndex=e)})}};function Pv(t){return"category"===t.get("type")}function Ov(t,e,i){var n,o,r,a,s,l,u,h,c,p=(i=i||{}).byIndex,d=i.stackedCoordDimension,f=(dv(e.schema)?(o=e.schema,n=o.dimensions,r=e.store):n=e,!(!t||!t.get("stack")));return O(n,function(t,e){F(t)&&(n[e]=t={name:t}),f&&!t.isExtraCoord&&(p||a||!t.ordinalMeta||(a=t),s||"ordinal"===t.type||"time"===t.type||d&&d!==t.coordDim||(s=t))}),!s||p||a||(p=!0),s&&(l="__\0ecstackresult_"+t.id,u="__\0ecstackedover_"+t.id,a&&(a.createInvertedIndices=!0),h=s.coordDim,i=s.type,c=0,O(n,function(t){t.coordDim===h&&c++}),e={name:l,coordDim:h,coordDimIndex:c,type:i,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},t={name:u,coordDim:u,coordDimIndex:c+1,type:i,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1},o?(r&&(e.storeDimIndex=r.ensureCalculationDimension(u,i),t.storeDimIndex=r.ensureCalculationDimension(l,i)),o.appendCalculationDimension(e),o.appendCalculationDimension(t)):(n.push(e),n.push(t))),{stackedDimension:s&&s.name,stackedByDimension:a&&a.name,isStackedByIndex:p,stackedOverDimension:u,stackResultDimension:l}}function Rv(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function zv(t,e){return Rv(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Nv(t,e,i){i=i||{};var n,o,r,a,s,l,u=e.getSourceManager(),h=!1,t=(t?(h=!0,n=lf(t)):h=(n=u.getSource()).sourceFormat===ed,function(t){var e=t.get("coordinateSystem"),i=new Av(e);if(e=Lv[e])return e(t,i,i.axisMap,i.categoryAxisMap),i}(e)),c=(o=t,c=(c=e).get("coordinateSystem"),c=Ld.get(c),p=(p=o&&o.coordSysDims?B(o.coordSysDims,function(t){var e={name:t},t=o.axisMap.get(t);return t&&(t=t.get("type"),e.type="category"===(t=t)?"ordinal":"time"===t?"time":"float"),e}):p)||c&&(c.getDimensionsInfo?c.getDimensionsInfo():c.dimensions.slice())||["x","y"]),p=i.useEncodeDefaulter,p=D(p)?p:p?M(cd,c,e):null,c={coordDimensions:c,generateCoord:i.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:p,canOmitUnusedDimensions:!h},p=kv(n,c),d=(c=p.dimensions,r=i.createInvertedIndices,(a=t)&&O(c,function(t,e){var i=t.coordDim,i=a.categoryAxisMap.get(i);i&&(null==s&&(s=e),t.ordinalMeta=i.getOrdinalMeta(),r)&&(t.createInvertedIndices=!0),null!=t.otherDims.itemName&&(l=!0)}),l||null==s||(c[s].otherDims.itemName=0),s),i=h?null:u.getSharedDataStore(p),t=Ov(e,{schema:p,store:i}),c=new Dv(p,e),p=(c.setCalculationInfo(t),null==d||(u=n).sourceFormat!==ed||V(Dr(function(t){var e=0;for(;e<t.length&&null==t[e];)e++;return t[e]}(u.data||[])))?null:function(t,e,i,n){return n===d?i:this.defaultDimValueGetter(t,e,i,n)});return c.hasItemOption=!1,c.initData(h?n:i,null,p),c}Bv.prototype.getSetting=function(t){return this._setting[t]},Bv.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},Bv.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},Bv.prototype.getExtent=function(){return this._extent.slice()},Bv.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},Bv.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},Bv.prototype.isBlank=function(){return this._isBlank},Bv.prototype.setBlank=function(t){this._isBlank=t};var Ev=Bv;function Bv(t){this._setting=t||{},this._extent=[1/0,-1/0]}ea(Ev);var Vv=0,Fv=(Hv.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&B(e,Gv);return new Hv({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},Hv.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},Hv.prototype.parseAndCollect=function(t){var e,i,n=this._needCollect;return F(t)||n?(n&&!this._deduplication?(i=this.categories.length,this.categories[i]=t):null==(i=(e=this._getOrCreateMap()).get(t))&&(n?(i=this.categories.length,this.categories[i]=t,e.set(t,i)):i=NaN),i):t},Hv.prototype._getOrCreateMap=function(){return this._map||(this._map=N(this.categories))},Hv);function Hv(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Vv}function Gv(t){return R(t)&&null!=t.value?t.value:t+""}function Wv(t){return"interval"===t.type||"log"===t.type}function Xv(t,e,i,n){var o={},r=t[1]-t[0],r=o.interval=mr(r/e,!0),e=(null!=i&&r<i&&(r=o.interval=i),null!=n&&n<r&&(r=o.interval=n),o.intervalPrecision=Yv(r)),i=o.niceTickExtent=[ar(Math.ceil(t[0]/r)*r,e),ar(Math.floor(t[1]/r)*r,e)];return n=i,r=t,isFinite(n[0])||(n[0]=r[0]),isFinite(n[1])||(n[1]=r[1]),Zv(n,0,r),Zv(n,1,r),n[0]>n[1]&&(n[0]=n[1]),o}function Uv(t){var e=Math.pow(10,yr(t)),t=t/e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,ar(t*e)}function Yv(t){return lr(t)+2}function Zv(t,e,i){t[e]=Math.max(Math.min(t[e],i[1]),i[0])}function qv(t,e){return t>=e[0]&&t<=e[1]}function jv(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Kv(t,e){return t*(e[1]-e[0])+e[0]}u(Jv,$v=Ev),Jv.prototype.parse=function(t){return null==t?NaN:F(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},Jv.prototype.contain=function(t){return qv(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},Jv.prototype.normalize=function(t){return jv(t=this._getTickNumber(this.parse(t)),this._extent)},Jv.prototype.scale=function(t){return t=Math.round(Kv(t,this._extent)),this.getRawOrdinalNumber(t)},Jv.prototype.getTicks=function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push({value:i}),i++;return t},Jv.prototype.getMinorTicks=function(t){},Jv.prototype.setSortInfo=function(t){if(null==t)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var e=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],o=0,r=this._ordinalMeta.categories.length,a=Math.min(r,e.length);o<a;++o){var s=e[o];n[i[o]=s]=o}for(var l=0;o<r;++o){for(;null!=n[l];)l++;i.push(l),n[l]=o}}},Jv.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&0<=t&&t<e.length?e[t]:t},Jv.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&0<=t&&t<e.length?e[t]:t},Jv.prototype.getLabel=function(t){if(!this.isBlank())return t=this.getRawOrdinalNumber(t.value),null==(t=this._ordinalMeta.categories[t])?"":t+""},Jv.prototype.count=function(){return this._extent[1]-this._extent[0]+1},Jv.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},Jv.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},Jv.prototype.getOrdinalMeta=function(){return this._ordinalMeta},Jv.prototype.calcNiceTicks=function(){},Jv.prototype.calcNiceExtent=function(){},Jv.type="ordinal";var $v,Qv=Jv;function Jv(t){var t=$v.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return V(e=e||new Fv({}))&&(e=new Fv({categories:B(e,function(t){return R(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}Ev.registerClass(Qv);var t_,e_=ar,i_=(u(n_,t_=Ev),n_.prototype.parse=function(t){return t},n_.prototype.contain=function(t){return qv(t,this._extent)},n_.prototype.normalize=function(t){return jv(t,this._extent)},n_.prototype.scale=function(t){return Kv(t,this._extent)},n_.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},n_.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])},n_.prototype.getInterval=function(){return this._interval},n_.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Yv(t)},n_.prototype.getTicks=function(t){var e=this._interval,i=this._extent,n=this._niceExtent,o=this._intervalPrecision,r=[];if(e){i[0]<n[0]&&r.push(t?{value:e_(n[0]-e,o)}:{value:i[0]});for(var a=n[0];a<=n[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:n[1];i[1]>s&&r.push(t?{value:e_(s+e,o)}:{value:i[1]})}return r},n_.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),i=[],n=this.getExtent(),o=1;o<e.length;o++){for(var r=e[o],a=e[o-1],s=0,l=[],u=(r.value-a.value)/t;s<t-1;){var h=e_(a.value+(s+1)*u);h>n[0]&&h<n[1]&&l.push(h),s++}i.push(l)}return i},n_.prototype.getLabel=function(t,e){return null==t?"":(null==(e=e&&e.precision)?e=lr(t.value)||0:"auto"===e&&(e=this._intervalPrecision),Cp(e_(t.value,e,!0)))},n_.prototype.calcNiceTicks=function(t,e,i){t=t||5;var n=this._extent,o=n[1]-n[0];isFinite(o)&&(o<0&&n.reverse(),o=Xv(n,t,e,i),this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent)},n_.prototype.calcNiceExtent=function(t){var e=this._extent,i=(e[0]===e[1]&&(0!==e[0]?(i=Math.abs(e[0]),t.fixMax||(e[1]+=i/2),e[0]-=i/2):e[1]=1),e[1]-e[0]),i=(isFinite(i)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval),this._interval);t.fixMin||(e[0]=e_(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=e_(Math.ceil(e[1]/i)*i))},n_.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},n_.type="interval",n_);function n_(){var t=null!==t_&&t_.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}Ev.registerClass(i_);var o_="undefined"!=typeof Float32Array,r_=o_?Float32Array:Array;function a_(t){return V(t)?o_?new Float32Array(t):t:new r_(t)}function s_(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function l_(t){return t.dim+t.index}function u_(t,e){var i=[];return e.eachSeriesByType(t,function(t){var e;(e=t).coordinateSystem&&"cartesian2d"===e.coordinateSystem.type&&i.push(t)}),i}function h_(t){var a,d,u=function(t){var e,l={},i=(O(t,function(t){var e=t.coordinateSystem.getBaseAxis();if("time"===e.type||"value"===e.type)for(var t=t.getData(),i=e.dim+"_"+e.index,n=t.getDimensionIndex(t.mapDimension(e.dim)),o=t.getStore(),r=0,a=o.count();r<a;++r){var s=o.get(n,r);l[i]?l[i].push(s):l[i]=[s]}}),{});for(e in l)if(l.hasOwnProperty(e)){var n=l[e];if(n){n.sort(function(t,e){return t-e});for(var o=null,r=1;r<n.length;++r){var a=n[r]-n[r-1];0<a&&(o=null===o?a:Math.min(o,a))}i[e]=o}}return i}(t),h=[];return O(t,function(t){var e,i,n=t.coordinateSystem.getBaseAxis(),o=n.getExtent(),r=(e="category"===n.type?n.getBandWidth():"value"===n.type||"time"===n.type?(e=n.dim+"_"+n.index,e=u[e],r=Math.abs(o[1]-o[0]),i=n.scale.getExtent(),i=Math.abs(i[1]-i[0]),e?r/i*e:r):(i=t.getData(),Math.abs(o[1]-o[0])/i.count()),rr(t.get("barWidth"),e)),o=rr(t.get("barMaxWidth"),e),a=rr(t.get("barMinWidth")||((i=t).pipelineContext&&i.pipelineContext.large?.5:1),e),s=t.get("barGap"),l=t.get("barCategoryGap");h.push({bandWidth:e,barWidth:r,barMaxWidth:o,barMinWidth:a,barGap:s,barCategoryGap:l,axisKey:l_(n),stackId:s_(t)})}),a={},O(h,function(t,e){var i=t.axisKey,n=t.bandWidth,n=a[i]||{bandWidth:n,remainedWidth:n,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=n.stacks,i=(a[i]=n,t.stackId),r=(o[i]||n.autoWidthCount++,o[i]=o[i]||{width:0,maxWidth:0},t.barWidth),r=(r&&!o[i].width&&(o[i].width=r,r=Math.min(n.remainedWidth,r),n.remainedWidth-=r),t.barMaxWidth),r=(r&&(o[i].maxWidth=r),t.barMinWidth),o=(r&&(o[i].minWidth=r),t.barGap),i=(null!=o&&(n.gap=o),t.barCategoryGap);null!=i&&(n.categoryGap=i)}),d={},O(a,function(t,i){d[i]={};var n,e=t.stacks,o=t.bandWidth,r=t.categoryGap,a=(null==r&&(a=ht(e).length,r=Math.max(35-4*a,15)+"%"),rr(r,o)),s=rr(t.gap,1),l=t.remainedWidth,u=t.autoWidthCount,h=(l-a)/(u+(u-1)*s),h=Math.max(h,0),c=(O(e,function(t){var e,i=t.maxWidth,n=t.minWidth;t.width?(e=t.width,i&&(e=Math.min(e,i)),n&&(e=Math.max(e,n)),t.width=e,l-=e+s*e,u--):(e=h,i&&i<e&&(e=Math.min(i,l)),(e=n&&e<n?n:e)!==h&&(t.width=e,l-=e+s*e,u--))}),h=(l-a)/(u+(u-1)*s),h=Math.max(h,0),0),p=(O(e,function(t,e){t.width||(t.width=h),c+=(n=t).width*(1+s)}),n&&(c-=n.width*s),-c/2);O(e,function(t,e){d[i][e]=d[i][e]||{bandWidth:o,offset:p,width:t.width},p+=t.width*(1+s)})}),d}u(d_,c_=i_),d_.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return cp(t.value,ap[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(hp(this._minLevelUnit))]||ap.second,e,this.getSetting("locale"))},d_.prototype.getFormattedLabel=function(t,e,i){var n=this.getSetting("useUTC"),o=this.getSetting("locale"),r=null;if(F(i))r=i;else if(D(i))r=i(t.value,e,{level:t.level});else{var a=P({},op);if(0<t.level)for(var s=0;s<sp.length;++s)a[sp[s]]="{primary|"+a[sp[s]]+"}";var l=i?!1===i.inherit?i:E(i,a):a,u=pp(t.value,n);if(l[u])r=l[u];else if(l.inherit){for(s=lp.indexOf(u)-1;0<=s;--s)if(l[u]){r=l[u];break}r=r||a.none}V(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 cp(new Date(t.value),r,n,o)},d_.prototype.getTicks=function(){var t=this._interval,e=this._extent,i=[];return t&&(i.push({value:e[0],level:0}),t=this.getSetting("useUTC"),t=function(t,b,S,M){var e=lp,i=0;function n(t,e,i){var n=[],o=!e.length;if(!function(t,e,i,n){function o(t){return dp(c,t,n)===dp(p,t,n)}function r(){return o("year")}function a(){return r()&&o("month")}function s(){return a()&&o("day")}function l(){return s()&&o("hour")}function u(){return l()&&o("minute")}function h(){return u()&&o("second")}var c=fr(e),p=fr(i);switch(t){case"year":return r();case"month":return a();case"day":return s();case"hour":return l();case"minute":return u();case"second":return h();case"millisecond":return h()&&o("millisecond")}}(hp(t),M[0],M[1],S)){o&&(e=[{value:function(t,e,i){var n=new Date(t);switch(hp(e)){case"year":case"month":n[wp(i)](0);case"day":n[bp(i)](1);case"hour":n[Sp(i)](0);case"minute":n[Mp(i)](0);case"second":n[Tp(i)](0),n[Ip(i)](0)}return n.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,u=e[s+1].value;if(l!==u){var h=void 0,c=void 0,p=void 0;switch(t){case"year":h=Math.max(1,Math.round(b/np/365)),c=fp(S),p=S?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":a=b,h=6<(a/=30*np)?6:3<a?3:2<a?2:1,c=gp(S),p=wp(S);break;case"week":case"half-week":case"day":a=b,h=16<(a/=np)?16:7.5<a?7:3.5<a?4:1.5<a?2:1,c=yp(S),p=bp(S),0;break;case"half-day":case"quarter-day":case"hour":r=b,h=12<(r/=ip)?12:6<r?6:3.5<r?4:2<r?2:1,c=mp(S),p=Sp(S);break;case"minute":h=g_(b,!0),c=vp(S),p=Mp(S);break;case"second":h=g_(b,!1),c=_p(S),p=Tp(S);break;case"millisecond":h=mr(b,!0),c=xp(S),p=Ip(S)}w=x=_=v=m=y=g=f=d=void 0;for(var d=h,f=l,g=u,y=c,m=p,v=n,_=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<i.length&&0===s&&i.unshift({value:i[0].value-h})}}for(s=0;s<n.length;s++)i.push(n[s])}}for(var o=[],r=[],a=0,s=0,l=0;l<e.length&&i++<1e4;++l){var u=hp(e[l]);if(function(t){return t===hp(t)}(e[l])){n(e[l],o[o.length-1]||[],r);var h=e[l+1]?hp(e[l+1]):null;if(u!==h){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++)}u=(M[1]-M[0])/b;if(1.5*u<a&&u/1.5<s)break;if(o.push(c),u<a||t===e[l])break}r=[]}}}for(var f=ut(B(o,function(t){return ut(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,t,e),(i=i.concat(t)).push({value:e[1],level:0})),i},d_.prototype.calcNiceExtent=function(t){var e,i=this._extent;i[0]===i[1]&&(i[0]-=np,i[1]+=np),i[1]===-1/0&&i[0]===1/0&&(e=new Date,i[1]=+new Date(e.getFullYear(),e.getMonth(),e.getDate()),i[0]=i[1]-np),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},d_.prototype.calcNiceTicks=function(t,e,i){var n=this._extent,n=n[1]-n[0],n=(this._approxInterval=n/(t=t||10),null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=i&&this._approxInterval>i&&(this._approxInterval=i),f_.length),t=Math.min(function(t,e,i,n){for(;i<n;){var o=i+n>>>1;t[o][1]<e?i=1+o:n=o}return i}(f_,this._approxInterval,0,n),n-1);this._interval=f_[t][1],this._minLevelUnit=f_[Math.max(t-1,0)][0]},d_.prototype.parse=function(t){return pt(t)?t:+fr(t)},d_.prototype.contain=function(t){return qv(this.parse(t),this._extent)},d_.prototype.normalize=function(t){return jv(this.parse(t),this._extent)},d_.prototype.scale=function(t){return Kv(t,this._extent)},d_.type="time";var c_,p_=d_;function d_(t){t=c_.call(this,t)||this;return t.type="time",t}var f_=[["second",tp],["minute",ep],["hour",ip],["quarter-day",6*ip],["half-day",12*ip],["day",1.2*np],["half-week",3.5*np],["week",7*np],["month",31*np],["quarter",95*np],["half-year",Qr/2],["year",Qr]];function g_(t,e){return 30<(t/=e?ep:tp)?30:20<t?20:15<t?15:10<t?10:5<t?5:2<t?2:1}Ev.registerClass(p_);var y_,m_=Ev.prototype,v_=i_.prototype,__=ar,x_=Math.floor,w_=Math.ceil,b_=Math.pow,S_=Math.log,M_=(u(T_,y_=Ev),T_.prototype.getTicks=function(t){var e=this._originalScale,i=this._extent,n=e.getExtent();return B(v_.getTicks.call(this,t),function(t){var t=t.value,e=ar(b_(this.base,t)),e=t===i[0]&&this._fixMin?I_(e,n[0]):e;return{value:t===i[1]&&this._fixMax?I_(e,n[1]):e}},this)},T_.prototype.setExtent=function(t,e){var i=S_(this.base);t=S_(Math.max(0,t))/i,e=S_(Math.max(0,e))/i,v_.setExtent.call(this,t,e)},T_.prototype.getExtent=function(){var t=this.base,e=m_.getExtent.call(this);e[0]=b_(t,e[0]),e[1]=b_(t,e[1]);t=this._originalScale.getExtent();return this._fixMin&&(e[0]=I_(e[0],t[0])),this._fixMax&&(e[1]=I_(e[1],t[1])),e},T_.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=S_(t[0])/S_(e),t[1]=S_(t[1])/S_(e),m_.unionExtent.call(this,t)},T_.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},T_.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(i==1/0||i<=0)){var n=gr(i);for(t/i*n<=.5&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&0<Math.abs(n);)n*=10;t=[ar(w_(e[0]/n)*n),ar(x_(e[1]/n)*n)];this._interval=n,this._niceExtent=t}},T_.prototype.calcNiceExtent=function(t){v_.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},T_.prototype.parse=function(t){return t},T_.prototype.contain=function(t){return qv(t=S_(t)/S_(this.base),this._extent)},T_.prototype.normalize=function(t){return jv(t=S_(t)/S_(this.base),this._extent)},T_.prototype.scale=function(t){return t=Kv(t,this._extent),b_(this.base,t)},T_.type="log",T_);function T_(){var t=null!==y_&&y_.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new i_,t._interval=0,t}$y=M_.prototype;function I_(t,e){return __(t,lr(e))}$y.getMinorTicks=v_.getMinorTicks,$y.getLabel=v_.getLabel,Ev.registerClass(M_);D_.prototype._prepareParams=function(t,e,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var n=this._isOrdinal="ordinal"===t.type,o=(this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero(),e.get("min",!0)),o=(null==o&&(o=e.get("startValue",!0)),this._modelMinRaw=o),o=(D(o)?this._modelMinNum=P_(t,o({min:i[0],max:i[1]})):"dataMin"!==o&&(this._modelMinNum=P_(t,o)),this._modelMaxRaw=e.get("max",!0));D(o)?this._modelMaxNum=P_(t,o({min:i[0],max:i[1]})):"dataMax"!==o&&(this._modelMaxNum=P_(t,o)),n?this._axisDataLen=e.getCategories().length:"boolean"==typeof(t=V(i=e.get("boundaryGap"))?i:[i||0,i||0])[0]||"boolean"==typeof t[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Po(t[0],1),Po(t[1],1)]},D_.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,i=this._dataMax,n=this._axisDataLen,o=this._boundaryGapInner,r=t?null:i-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?i:this._modelMaxNum,l=null!=a,u=null!=s,e=(null==a&&(a=t?n?0:NaN:e-o[0]*r),null==s&&(s=t?n?n-1:NaN:i+o[1]*r),null!=a&&isFinite(a)||(a=NaN),null!=s&&isFinite(s)||(s=NaN),_t(a)||_t(s)||t&&!n),i=(this._needCrossZero&&(a=0<a&&0<s&&!l?0:a)<0&&s<0&&!u&&(s=0),this._determinedMin),o=this._determinedMax;return null!=i&&(a=i,l=!0),null!=o&&(s=o,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:e}},D_.prototype.modifyDataMinMax=function(t,e){this[A_[t]]=e},D_.prototype.setDeterminedMinMax=function(t,e){this[k_[t]]=e},D_.prototype.freeze=function(){this.frozen=!0};var C_=D_;function D_(t,e,i){this._prepareParams(t,e,i)}var k_={min:"_determinedMin",max:"_determinedMax"},A_={min:"_dataMin",max:"_dataMax"};function L_(t,e,i){var n=t.rawExtentInfo;return n||(n=new C_(t,e,i),t.rawExtentInfo=n),n}function P_(t,e){return null==e?null:_t(e)?NaN:t.parse(e)}function O_(t,e){var i,n,o,r,a,s,l=t.type,u=L_(t,e,t.getExtent()).calculate(),t=(t.setBlank(u.isBlank),u.min),h=u.max,c=e.ecModel;return c&&"time"===l&&(l=u_("bar",c),i=!1,O(l,function(t){i=i||t.getBaseAxis()===e.axis}),i)&&(c=h_(l),l=t,n=h,c=c,s=(s=(o=e).axis.getExtent())[1]-s[0],void 0!==(c=function(t,e,i){if(t&&e)return null!=(t=t[l_(e)])&&null!=i?t[s_(i)]:t}(c,o.axis))&&(r=1/0,O(c,function(t){r=Math.min(t.offset,r)}),a=-1/0,O(c,function(t){a=Math.max(t.offset+t.width,a)}),r=Math.abs(r),a=Math.abs(a),n+=a/(o=r+a)*(s=(c=n-l)/(1-(r+a)/s)-c),l-=r/o*s),t=(c={min:l,max:n}).min,h=c.max),{extent:[t,h],fixMin:u.minFixed,fixMax:u.maxFixed}}function R_(t,e){var i=O_(t,e),n=i.extent,o=e.get("splitNumber"),r=(t instanceof M_&&(t.base=e.get("logBase")),t.type),a=e.get("interval"),r="interval"===r||"time"===r;t.setExtent(n[0],n[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:r?e.get("minInterval"):null,maxInterval:r?e.get("maxInterval"):null}),null!=a&&t.setInterval&&t.setInterval(a)}function z_(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Qv({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new p_({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Ev.getClass(e)||i_)}}function N_(i){var n,e,o,t=i.getLabelModel().get("formatter"),r="category"===i.type?i.scale.getExtent()[0]:null;return"time"===i.scale.type?(o=t,function(t,e){return i.scale.getFormattedLabel(t,e,o)}):F(t)?(e=t,function(t){t=i.scale.getLabel(t);return e.replace("{value}",null!=t?t:"")}):D(t)?(n=t,function(t,e){return null!=r&&(e=t.value-r),n(E_(i,t),e,null!=t.level?{level:t.level}:null)}):function(t){return i.scale.getLabel(t)}}function E_(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function B_(t){var e=t.model,i=t.scale;if(e.get(["axisLabel","show"])&&!i.isBlank()){var n,o,r=i.getExtent(),a=i instanceof Qv?i.count():(n=i.getTicks()).length,s=t.getLabelModel(),l=N_(t),u=1;40<a&&(u=Math.ceil(a/40));for(var h,c,p,d=0;d<a;d+=u){var f=l(n?n[d]:{value:r[0]+d},d),f=s.getTextRect(f),g=(f=f,h=s.get("rotate")||0,c=p=g=c=void 0,h=h*Math.PI/180,c=f.width,g=f.height,p=c*Math.abs(Math.cos(h))+Math.abs(g*Math.sin(h)),c=c*Math.abs(Math.sin(h))+Math.abs(g*Math.cos(h)),new U(f.x,f.y,p,c));o?o.union(g):o=g}return o}}function V_(t){t=t.get("interval");return null==t?"auto":t}function F_(t){return"category"===t.type&&0===V_(t.getLabelModel())}function H_(e,t){var i={};return O(e.mapDimensionsAll(t),function(t){i[zv(e,t)]=!0}),ht(i)}W_.prototype.getNeedCrossZero=function(){return!this.option.scale},W_.prototype.getCoordSysModel=function(){};var G_=W_;function W_(){}var em=Object.freeze({__proto__:null,createDimensions:function(t,e){return kv(t,e).dimensions},createList:function(t){return Nv(null,t)},createScale:function(t,e){var i=e;return(e=z_(i=e instanceof Gc?i:new Gc(e))).setExtent(t[0],t[1]),R_(e,i),e},createSymbol:sm,createTextStyle:function(t,e){return wc(t,null,null,"normal"!==(e=e||{}).state)},dataStack:{isDimensionStacked:Rv,enableDataStack:Ov,getStackedDimension:zv},enableHoverEmphasis:Wl,getECData:k,getLayoutRect:Gp,mixinAxisModelCommonMethods:function(t){at(t,G_)}}),X_=[],U_={registerPreprocessor:F0,registerProcessor:H0,registerPostInit:G0,registerPostUpdate:W0,registerUpdateLifecycle:X0,registerAction:U0,registerCoordinateSystem:Y0,registerLayout:Z0,registerVisual:q0,registerTransform:J0,registerLoading:$0,registerMap:Q0,registerImpl:function(t,e){Hm[t]=e},PRIORITY:tm,ComponentModel:g,ComponentView:Jg,SeriesModel:Ug,ChartView:oy,registerComponentModel:function(t){g.registerClass(t)},registerComponentView:function(t){Jg.registerClass(t)},registerSeriesModel:function(t){Ug.registerClass(t)},registerChartView:function(t){oy.registerClass(t)},registerSubTypeDefaulter:function(t,e){g.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){tr(t,e)}};function Y_(t){V(t)?O(t,function(t){Y_(t)}):0<=C(X_,t)||(X_.push(t),(t=D(t)?{install:t}:t).install(U_))}var Z_=1e-8;function q_(t,e){return Math.abs(t-e)<Z_}function j_(t,e,i){var n=0,o=t[0];if(o){for(var r=1;r<t.length;r++){var a=t[r];n+=ls(o[0],o[1],a[0],a[1],e,i),o=a}var s=t[0];return q_(o[0],s[0])&&q_(o[1],s[1])||(n+=ls(o[0],o[1],s[0],s[1],e,i)),0!==n}}var K_=[];function $_(t,e){for(var i=0;i<t.length;i++)te(t[i],t[i],e)}function Q_(t,e,i,n){for(var o=0;o<t.length;o++){var r=t[o];(r=n?n.project(r):r)&&isFinite(r[0])&&isFinite(r[1])&&(ee(e,e,r),ie(i,i,r))}}J_.prototype.setCenter=function(t){this._center=t},J_.prototype.getCenter=function(){return this._center||(this._center=this.calcCenter())};im=J_;function J_(t){this.name=t}var t1,e1,i1=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},n1=function(t){this.type="linestring",this.points=t},o1=(u(r1,t1=im),r1.prototype.calcCenter=function(){for(var t,e=this.geometries,i=0,n=0;n<e.length;n++){var o=e[n],r=o.exterior,r=r&&r.length;i<r&&(t=o,i=r)}if(t){for(var a=t.exterior,s=0,l=0,u=0,h=a.length,c=a[h-1][0],p=a[h-1][1],d=0;d<h;d++){var f=a[d][0],g=a[d][1],y=c*g-f*p;s+=y,l+=(c+f)*y,u+=(p+g)*y,c=f,p=g}return s?[l/s/3,u/s/3,s]:[a[0][0]||0,a[0][1]||0]}var m=this.getBoundingRect();return[m.x+m.width/2,m.y+m.height/2]},r1.prototype.getBoundingRect=function(e){var i,n,t=this._rect;return t&&!e||(i=[1/0,1/0],n=[-1/0,-1/0],O(this.geometries,function(t){"polygon"===t.type?Q_(t.exterior,i,n,e):O(t.points,function(t){Q_(t,i,n,e)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(n[0])&&isFinite(n[1])||(i[0]=i[1]=n[0]=n[1]=0),t=new U(i[0],i[1],n[0]-i[0],n[1]-i[1]),e)||(this._rect=t),t},r1.prototype.contain=function(t){var e=this.getBoundingRect(),i=this.geometries;if(e.contain(t[0],t[1]))t:for(var n=0,o=i.length;n<o;n++){var r=i[n];if("polygon"===r.type){var a=r.exterior,s=r.interiors;if(j_(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(j_(s[l],t[0],t[1]))continue t;return!0}}}return!1},r1.prototype.transformTo=function(t,e,i,n){for(var o=this.getBoundingRect(),r=o.width/o.height,r=(i?n=n||i/r:i=r*n,new U(t,e,i,n)),a=o.calculateTransform(r),s=this.geometries,l=0;l<s.length;l++){var u=s[l];"polygon"===u.type?($_(u.exterior,a),O(u.interiors,function(t){$_(t,a)})):O(u.points,function(t){$_(t,a)})}(o=this._rect).copy(r),this._center=[o.x+o.width/2,o.y+o.height/2]},r1.prototype.cloneShallow=function(t){t=new r1(t=null==t?this.name:t,this.geometries,this._center);return t._rect=this._rect,t.transformTo=null,t},r1);function r1(t,e,i){t=t1.call(this,t)||this;return t.type="geoJSON",t.geometries=e,t._center=i&&[i[0],i[1]],t}function a1(t,e){t=e1.call(this,t)||this;return t.type="geoSVG",t._elOnlyForCalculate=e,t}function s1(t,e,i){for(var n=0;n<t.length;n++)t[n]=l1(t[n],e[n],i)}function l1(t,e,i){for(var n=[],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);n.push([(o=s+=o)/i,(r=l+=r)/i])}return n}function u1(t,r){var e,i,o;return B(ut((t=(e=t).UTF8Encoding?(null==(o=(i=e).UTF8Scale)&&(o=1024),O(i.features,function(t){var e=t.geometry,i=e.encodeOffsets,n=e.coordinates;if(i)switch(e.type){case"LineString":e.coordinates=l1(n,i,o);break;case"Polygon":case"MultiLineString":s1(n,i,o);break;case"MultiPolygon":O(n,function(t,e){return s1(t,i[e],o)})}}),i.UTF8Encoding=!1,i):e).features,function(t){return t.geometry&&t.properties&&0<t.geometry.coordinates.length}),function(t){var e=t.properties,i=t.geometry,n=[];switch(i.type){case"Polygon":var o=i.coordinates;n.push(new i1(o[0],o.slice(1)));break;case"MultiPolygon":O(i.coordinates,function(t){t[0]&&n.push(new i1(t[0],t.slice(1)))});break;case"LineString":n.push(new n1([i.coordinates]));break;case"MultiLineString":n.push(new n1(i.coordinates))}t=new o1(e[r||"name"],n,e.cp);return t.properties=e,t})}u(a1,e1=im),a1.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),e=[e.x+e.width/2,e.y+e.height/2],i=Oe(K_),n=t;n&&!n.isGeoSVGGraphicRoot;)ze(i,n.getLocalTransform(),i),n=n.parent;return Ve(i,i),te(e,e,i),e};var zc=Object.freeze({__proto__:null,MAX_SAFE_INTEGER:9007199254740991,asc:sr,getPercentWithPrecision:function(t,e,i){return t[e]&&function(t,e){var i=lt(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return[];var n=Math.pow(10,e),e=B(t,function(t){return(isNaN(t)?0:t)/i*n*100}),o=100*n,r=B(e,function(t){return Math.floor(t)}),a=lt(r,function(t,e){return t+e},0),s=B(e,function(t,e){return t-r[e]});for(;a<o;){for(var l=Number.NEGATIVE_INFINITY,u=null,h=0,c=s.length;h<c;++h)s[h]>l&&(l=s[h],u=h);++r[u],s[u]=0,++a}return B(r,function(t){return t/n})}(t,i)[e]||0},getPixelPrecision:hr,getPrecision:lr,getPrecisionSafe:ur,isNumeric:xr,isRadianAroundZero:pr,linearMap:or,nice:mr,numericToNumber:_r,parseDate:fr,quantile:function(t,e){var e=(t.length-1)*e+1,i=Math.floor(e),n=+t[i-1];return(e=e-i)?n+e*(t[i]-n):n},quantity:gr,quantityExponent:yr,reformIntervals:vr,remRadian:cr,round:ar}),oa=Object.freeze({__proto__:null,format:cp,parse:fr}),Vc=Object.freeze({__proto__:null,Arc:fh,BezierCurve:hh,BoundingRect:U,Circle:_u,CompoundPath:mh,Ellipse:Su,Group:Yo,Image:ks,IncrementalDisplayable:e,Line:oh,LinearGradient:bh,Polygon:ju,Polyline:Ju,RadialGradient:_h,Rect:Bs,Ring:Xu,Sector:Fu,Text:Ws,clipPointsByRect:lc,clipRectByRect:uc,createIcon:hc,extendPath:Zh,extendShape:Uh,getShapeClass:jh,getTransform:nc,initProps:Bh,makeImage:$h,makePath:Kh,mergePath:Jh,registerShape:qh,resizePath:tc,updateProps:Eh}),Ec=Object.freeze({__proto__:null,addCommas:Cp,capitalFirst:function(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)},encodeHTML:ve,formatTime:function(t,e,i){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var n=(e=fr(e))[(i=i?"getUTC":"get")+"FullYear"](),o=e[i+"Month"]()+1,r=e[i+"Date"](),a=e[i+"Hours"](),s=e[i+"Minutes"](),l=e[i+"Seconds"](),e=e[i+"Milliseconds"]();return t=t.replace("MM",up(o,2)).replace("M",o).replace("yyyy",n).replace("yy",up(n%100+"",2)).replace("dd",up(r,2)).replace("d",r).replace("hh",up(a,2)).replace("h",a).replace("mm",up(s,2)).replace("m",s).replace("ss",up(l,2)).replace("s",l).replace("SSS",up(e,3))},formatTpl:Op,getTextRect:function(t,e,i,n,o,r,a,s){return new Ws({style:{text:t,font:e,align:i,verticalAlign:n,padding:o,rich:r,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:Rp,normalizeCssArray:kp,toCamelCase:Dp,truncateText:ca}),Oc=Object.freeze({__proto__:null,bind:S,clone:y,curry:M,defaults:E,each:O,extend:P,filter:ut,indexOf:C,inherits:rt,isArray:V,isFunction:D,isObject:R,isString:F,map:B,merge:d,reduce:lt}),h1=Er();function c1(e,t){t=B(t,function(t){return e.scale.parse(t)});return"time"===e.type&&0<t.length&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function p1(i){var n,o,r,t,e,a=i.getLabelModel().get("customValues");return a?(n=N_(i),{labels:c1(i,a).map(function(t){var e={value:t};return{formattedLabel:n(e),rawLabel:i.scale.getLabel(e),tickValue:t}})}):"category"===i.type?(t=(a=i).getLabelModel(),e=f1(a,t),!t.get("show")||a.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e):(t=(o=i).scale.getTicks(),r=N_(o),{labels:B(t,function(t,e){return{level:t.level,formattedLabel:r(t,e),rawLabel:o.scale.getLabel(t),tickValue:t.value}})})}function d1(t,e){var i,n,o,r,a,s=t.getTickModel().get("customValues");return s?{ticks:c1(t,s)}:"category"===t.type?(s=e,o=g1(e=t,"ticks"),r=V_(s),(a=y1(o,r))||(s.get("show")&&!e.scale.isBlank()||(i=[]),i=D(r)?_1(e,r,!0):"auto"===r?(a=f1(e,e.getLabelModel()),n=a.labelCategoryInterval,B(a.labels,function(t){return t.tickValue})):v1(e,n=r,!0),m1(o,r,{ticks:i,tickCategoryInterval:n}))):{ticks:B(t.scale.getTicks(),function(t){return t.value})}}function f1(t,e){var i,n=g1(t,"labels"),e=V_(e),o=y1(n,e);return o||m1(n,e,{labels:D(e)?_1(t,e):v1(t,i="auto"===e?null!=(n=h1(o=t).autoInterval)?n:h1(o).autoInterval=o.calculateCategoryInterval():e),labelCategoryInterval:i})}function g1(t,e){return h1(t)[e]||(h1(t)[e]=[])}function y1(t,e){for(var i=0;i<t.length;i++)if(t[i].key===e)return t[i].value}function m1(t,e,i){return t.push({key:e,value:i}),i}function v1(t,e,i){for(var n=N_(t),o=t.scale,r=o.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),e=r[0],u=o.count(),u=(0!==e&&1<l&&2<u/l&&(e=Math.round(Math.ceil(e/l)*l)),F_(t)),t=a.get("showMinLabel")||u,a=a.get("showMaxLabel")||u,h=(t&&e!==r[0]&&c(r[0]),e);h<=r[1];h+=l)c(h);function c(t){var e={value:t};s.push(i?t:{formattedLabel:n(e),rawLabel:o.getLabel(e),tickValue:t})}return a&&h-l!==r[1]&&c(r[1]),s}function _1(t,n,o){var r=t.scale,a=N_(t),s=[];return O(r.getTicks(),function(t){var e=r.getLabel(t),i=t.value;n(t.value,e)&&s.push(o?i:{formattedLabel:a(t),rawLabel:e,tickValue:i})}),s}var x1=[0,1],rp=(w1.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),e=Math.max(e[0],e[1]);return i<=t&&t<=e},w1.prototype.containData=function(t){return this.scale.contain(t)},w1.prototype.getExtent=function(){return this._extent.slice()},w1.prototype.getPixelPrecision=function(t){return hr(t||this.scale.getExtent(),this._extent)},w1.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},w1.prototype.dataToCoord=function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&b1(i=i.slice(),n.count()),or(t,x1,i,e)},w1.prototype.coordToData=function(t,e){var i=this._extent,n=this.scale,n=(this.onBand&&"ordinal"===n.type&&b1(i=i.slice(),n.count()),or(t,i,x1,e));return this.scale.scale(n)},w1.prototype.pointToData=function(t,e){},w1.prototype.getTicksCoords=function(t){var e,i,n,o,r,a,s,l=(t=t||{}).tickModel||this.getTickModel(),u=B(d1(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 h(t,e){return t=ar(t),e=ar(e),a?e<t:t<e}return e=this,i=u,l=l,t=t.clamp,s=i.length,e.onBand&&!l&&s&&(l=e.getExtent(),1===s?(i[0].coord=l[0],n=i[1]={coord:l[1]}):(r=i[s-1].tickValue-i[0].tickValue,o=(i[s-1].coord-i[0].coord)/r,O(i,function(t){t.coord-=o/2}),e=1+(r=e.scale.getExtent())[1]-i[s-1].tickValue,n={coord:i[s-1].coord+o*e},i.push(n)),a=l[0]>l[1],h(i[0].coord,l[0])&&(t?i[0].coord=l[0]:i.shift()),t&&h(l[0],i[0].coord)&&i.unshift({coord:l[0]}),h(l[1],n.coord)&&(t?n.coord=l[1]:i.pop()),t)&&h(n.coord,l[1])&&i.push({coord:l[1]}),u},w1.prototype.getMinorTicksCoords=function(){var t;return"ordinal"===this.scale.type?[]:(t=this.model.getModel("minorTick").get("splitNumber"),B(this.scale.getMinorTicks(t=0<t&&t<100?t:5),function(t){return B(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this))},w1.prototype.getViewLabels=function(){return p1(this).labels},w1.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},w1.prototype.getTickModel=function(){return this.model.getModel("axisTick")},w1.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},w1.prototype.calculateCategoryInterval=function(){o=(i=d=this).getLabelModel();var t={axisRotate:i.getRotate?i.getRotate():i.isHorizontal&&!i.isHorizontal()?90:0,labelRotate:o.get("rotate")||0,font:o.getFont()},e=N_(d),i=(t.axisRotate-t.labelRotate)/180*Math.PI,n=(o=d.scale).getExtent(),o=o.count();if(n[1]-n[0]<1)return 0;for(var r=1,a=(40<o&&(r=Math.max(1,Math.floor(o/40))),n[0]),s=d.dataToCoord(a+1)-d.dataToCoord(a),l=Math.abs(s*Math.cos(i)),s=Math.abs(s*Math.sin(i)),u=0,h=0;a<=n[1];a+=r)var c=1.3*(p=Do(e({value:a}),t.font,"center","top")).width,p=1.3*p.height,u=Math.max(u,c,7),h=Math.max(h,p,7);var i=u/l,l=h/s,s=(isNaN(i)&&(i=1/0),isNaN(l)&&(l=1/0),Math.max(0,Math.floor(Math.min(i,l)))),i=h1(d.model),l=d.getExtent(),d=i.lastAutoInterval,f=i.lastTickCount;return null!=d&&null!=f&&Math.abs(d-s)<=1&&Math.abs(f-o)<=1&&s<d&&i.axisExtent0===l[0]&&i.axisExtent1===l[1]?s=d:(i.lastTickCount=o,i.lastAutoInterval=s,i.axisExtent0=l[0],i.axisExtent1=l[1]),s},w1);function w1(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}function b1(t,e){e=(t[1]-t[0])/e/2;t[0]+=e,t[1]-=e}var S1=2*Math.PI,M1=ns.CMD,T1=["top","right","bottom","left"];function I1(t,e,i,n,o,r,a,s){var l=o-t,u=r-e,i=i-t,n=n-e,h=Math.sqrt(i*i+n*n),l=(l*(i/=h)+u*(n/=h))/h,u=(s&&(l=Math.min(Math.max(l,0),1)),a[0]=t+(l*=h)*i),s=a[1]=e+l*n;return Math.sqrt((u-o)*(u-o)+(s-r)*(s-r))}function C1(t,e,i,n,o,r,a){i<0&&(t+=i,i=-i),n<0&&(e+=n,n=-n);i=t+i,n=e+n,t=a[0]=Math.min(Math.max(o,t),i),i=a[1]=Math.min(Math.max(r,e),n);return Math.sqrt((t-o)*(t-o)+(i-r)*(i-r))}var D1=[];function k1(t,e,i){for(var n,o,r,a,s,l,u,h,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 M1.M:p=f=m[x++],d=g=m[x++];break;case M1.L:b=I1(p,d,m[x],m[x+1],v,_,D1,!0),p=m[x++],d=m[x++];break;case M1.C:b=Gi(p,d,m[x++],m[x++],m[x++],m[x++],m[x],m[x+1],v,_,D1),p=m[x++],d=m[x++];break;case M1.Q:b=Zi(p,d,m[x++],m[x++],m[x],m[x+1],v,_,D1),p=m[x++],d=m[x++];break;case M1.A:var S=m[x++],M=m[x++],T=m[x++],I=m[x++],C=m[x++],D=m[x++],k=(x+=1,!!(1-m[x++])),A=Math.cos(C)*T+S,L=Math.sin(C)*I+M;x<=1&&(f=A,g=L),L=(A=C)+D,k=k,a=(v-S)*(r=I)/T+S,s=_,l=D1,c=h=u=void 0,a-=n=S,s-=o=M,u=Math.sqrt(a*a+s*s),h=(a/=u)*r+n,c=(s/=u)*r+o,b=Math.abs(A-L)%S1<1e-4||((L=k?(k=A,A=as(L),as(k)):(A=as(A),as(L)))<A&&(L+=S1),(k=Math.atan2(s,a))<0&&(k+=S1),A<=k&&k<=L)||A<=k+S1&&k+S1<=L?(l[0]=h,l[1]=c,u-r):(c=((k=r*Math.cos(A)+n)-a)*(k-a)+((h=r*Math.sin(A)+o)-s)*(h-s))<(n=((u=r*Math.cos(L)+n)-a)*(u-a)+((A=r*Math.sin(L)+o)-s)*(A-s))?(l[0]=k,l[1]=h,Math.sqrt(c)):(l[0]=u,l[1]=A,Math.sqrt(n)),p=Math.cos(C+D)*T+S,d=Math.sin(C+D)*I+M;break;case M1.R:b=C1(f=p=m[x++],g=d=m[x++],m[x++],m[x++],v,_,D1);break;case M1.Z:b=I1(p,d,f,g,v,_,D1,!0),p=f,d=g}b<y&&(y=b,i.set(D1[0],D1[1]))}return y}var A1=new T,L1=new T,P1=new T,O1=new T,R1=new T;function z1(t,e){if(t){var i=t.getTextGuideLine(),n=t.getTextContent();if(n&&i){var o=t.textGuideLineConfig||{},r=[[0,0],[0,0],[0,0]],a=o.candidates||T1,s=n.getBoundingRect().clone(),l=(s.applyTransform(n.getComputedTransform()),1/0),u=o.anchor,h=t.getComputedTransform(),c=h&&Ve([],h),p=e.get("length2")||0;u&&P1.copy(u);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=A1,w=O1,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)}T.scaleAndAdd(L1,A1,O1,p),L1.transform(c);y=t.getBoundingRect(),y=u?u.distance(L1):t instanceof ws?k1(L1,t.path,P1):(m=P1,d=C1((d=y).x,y.y,y.width,y.height,L1.x,L1.y,D1),m.set(D1[0],D1[1]),d);y<l&&(l=y,L1.transform(h),P1.transform(h),P1.toArray(r[0]),L1.toArray(r[1]),A1.toArray(r[2]))}n=r,(o=e.get("minTurnAngle"))<=180&&0<o&&(o=o/180*Math.PI,A1.fromArray(n[0]),L1.fromArray(n[1]),P1.fromArray(n[2]),T.sub(O1,A1,L1),T.sub(R1,P1,L1),e=O1.len(),f=R1.len(),e<.001||f<.001||(O1.scale(1/e),R1.scale(1/f),e=O1.dot(R1),Math.cos(o)<e&&(f=I1(L1.x,L1.y,P1.x,P1.y,A1.x,A1.y,N1,!1),E1.fromArray(N1),E1.scaleAndAdd(R1,f/Math.tan(Math.PI-o)),e=P1.x!==L1.x?(E1.x-L1.x)/(P1.x-L1.x):(E1.y-L1.y)/(P1.y-L1.y),isNaN(e)||(e<0?T.copy(E1,L1):1<e&&T.copy(E1,P1),E1.toArray(n[1]))))),i.setShape({points:r})}}}var N1=[],E1=new T;function B1(t,e,i,n){var o="normal"===i,i=o?t:t.ensureState(i),e=(i.ignore=e,n.get("smooth")),e=(e&&!0===e&&(e=.3),i.shape=i.shape||{},0<e&&(i.shape.smooth=e),n.getModel("lineStyle").getLineStyle());o?t.useStyle(e):i.style=e}function V1(t,e){var i=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),0<i&&3<=n.length){var e=Kt(n[0],n[1]),o=Kt(n[1],n[2]);e&&o?(i=Math.min(e,o)*i,e=Jt([],n[1],n[0],i/e),i=Jt([],n[1],n[2],i/o),o=Jt([],e,i,.5),t.bezierCurveTo(e[0],e[1],e[0],e[1],o[0],o[1]),t.bezierCurveTo(i[0],i[1],i[0],i[1],n[2][0],n[2][1])):(t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]))}else for(var r=1;r<n.length;r++)t.lineTo(n[r][0],n[r][1])}function F1(t){for(var e=[],i=0;i<t.length;i++){var n,o,r,a,s,l,u=t[i];u.defaultAttr.ignore||(o=(n=u.label).getComputedTransform(),r=n.getBoundingRect(),a=!o||o[1]<1e-5&&o[2]<1e-5,l=n.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 Ah(r,o):null,e.push({label:n,labelLine:u.labelLine,rect:s,localRect:r,obb:l,priority:u.priority,defaultAttr:u.defaultAttr,layoutOption:u.computedLayoutOption,axisAligned:a,transform:o}))}return e}function H1(s,l,u,t,e,i){var h=s.length;if(!(h<2)){s.sort(function(t,e){return t.rect[l]-e.rect[l]});for(var n=0,r=!1,o=0,a=0;a<h;a++){var c,p=s[a],d=p.rect;(c=d[l]-n)<0&&(d[l]-=c,p.label[l]-=c,r=!0),o+=Math.max(-c,0),n=d[l]+d[u]}0<o&&i&&x(-o/h,0,h);var f,g,y=s[0],m=s[h-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[u]}function _(t,e,i){t<0&&(0<(e=Math.min(e,-t))?(x(e*i,0,h),(e=e+t)<0&&w(-e*i,1)):w(-t*i,1))}function x(t,e,i){0!==t&&(r=!0);for(var n=e;n<i;n++){var o=s[n];o.rect[l]+=t,o.label[l]+=t}}function w(t,e){for(var i=[],n=0,o=1;o<h;o++){var r=s[o-1].rect,r=Math.max(s[o].rect[l]-r[l]-r[u],0);i.push(r),n+=r}if(n){var a=Math.min(Math.abs(t)/n,e);if(0<t)for(o=0;o<h-1;o++)x(i[o]*a,0,o+1);else for(o=h-1;0<o;o--)x(-(i[o-1]*a),o,h)}}function b(t){for(var e=t<0?-1:1,i=(t=Math.abs(t),Math.ceil(t/(h-1))),n=0;n<h-1;n++)if(0<e?x(i,0,n+1):x(-i,h-n-1,h),(t-=i)<=0)return}}function G1(t){var e=[],i=(t.sort(function(t,e){return e.priority-t.priority}),new U(0,0,0,0));function n(t){var e;t.ignore||null==(e=t.ensureState("emphasis")).ignore&&(e.ignore=!1),t.ignore=!0}for(var o=0;o<t.length;o++){for(var r=t[o],a=r.axisAligned,s=r.localRect,l=r.transform,u=r.label,h=r.labelLine,c=(i.copy(r.rect),i.width-=.1,i.height-=.1,i.x+=.05,i.y+=.05,r.obb),p=!1,d=0;d<e.length;d++){var f=e[d];if(i.intersect(f.rect)){if(a&&f.axisAligned){p=!0;break}if(f.obb||(f.obb=new Ah(f.localRect,f.transform)),(c=c||new Ah(s,l)).intersect(f.obb)){p=!0;break}}}p?(n(u),h&&n(h)):(u.attr("ignore",r.defaultAttr.ignore),h&&h.attr("ignore",r.defaultAttr.labelGuideIgnore),e.push(r))}}function W1(t,e){var i=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:i.style.align,verticalAlign:i.style.verticalAlign,labelLinePoints:function(t){if(t){for(var e=[],i=0;i<t.length;i++)e.push(t[i].slice());return e}}(e&&e.shape.points)}}var X1=["align","verticalAlign","width","height","fontSize"],U1=new bo,Y1=Er(),Z1=Er();function q1(t,e,i){for(var n=0;n<i.length;n++){var o=i[n];null!=e[o]&&(t[o]=e[o])}}var j1=["x","y","rotation"],K1=($1.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},$1.prototype._addLabel=function(t,e,i,n,o){var r,a=n.style,s=n.__hostTarget.textConfig||{},l=n.getComputedTransform(),u=n.getBoundingRect().plain(),l=(U.applyTransform(u,u,l),l?U1.setLocalTransform(l):(U1.x=U1.y=U1.rotation=U1.originX=U1.originY=0,U1.scaleX=U1.scaleY=1),U1.rotation=as(U1.rotation),n.__hostTarget),h=(l&&(r=l.getBoundingRect().plain(),h=l.getComputedTransform(),U.applyTransform(r,r,h)),r&&l.getTextGuideLine());this._labelList.push({label:n,labelLine:h,seriesModel:i,dataIndex:t,dataType:e,layoutOption:o,computedLayoutOption:null,rect:u,hostRect:r,priority:r?r.width*r.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:h&&h.ignore,x:U1.x,y:U1.y,scaleX:U1.scaleX,scaleY:U1.scaleY,rotation:U1.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:n.cursor,attachedPos:s.position,attachedRot:s.rotation}})},$1.prototype.addLabelsOfSeries=function(t){var i=this,n=(this._chartViewList.push(t),t.__model),o=n.get("labelLayout");(D(o)||ht(o).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var e=t.getTextContent(),t=k(t);e&&!e.disableLabelLayout&&i._addLabel(t.dataIndex,t.dataType,n,e,o)})},$1.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),i=t.getHeight();for(var n=0;n<this._labelList.length;n++){var o=this._labelList[n],r=o.label,a=r.__hostTarget,s=o.defaultAttr,l=void 0,l=D(o.layoutOption)?o.layoutOption(W1(o,a)):o.layoutOption,u=(o.computedLayoutOption=l=l||{},Math.PI/180),h=(a&&a.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:s.attachedPos,rotation:null!=l.rotate?l.rotate*u:s.attachedRot,offset:[l.dx||0,l.dy||0]}),!1);null!=l.x?(r.x=rr(l.x,e),r.setStyle("x",0),h=!0):(r.x=s.x,r.setStyle("x",s.style.x)),null!=l.y?(r.y=rr(l.y,i),r.setStyle("y",0),h=!0):(r.y=s.y,r.setStyle("y",s.style.y)),l.labelLinePoints&&(c=a.getTextGuideLine())&&(c.setShape({points:l.labelLinePoints}),h=!1),Y1(r).needsUpdateLabelLine=h,r.rotation=null!=l.rotate?l.rotate*u:s.rotation,r.scaleX=s.scaleX,r.scaleY=s.scaleY;for(var c,p=0;p<X1.length;p++){var d=X1[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(){z1(t,e)}}(a,c.getModel("labelLine"))))):(r.off("drag"),r.cursor=s.cursor)}},$1.prototype.layout=function(t){var e,i,n=t.getWidth(),t=t.getHeight(),o=F1(this._labelList),r=ut(o,function(t){return"shiftX"===t.layoutOption.moveOverlap}),a=ut(o,function(t){return"shiftY"===t.layoutOption.moveOverlap});H1(r,"x","width",0,n,e),H1(a,"y","height",0,t,i),G1(ut(o,function(t){return t.layoutOption.hideOverlap}))},$1.prototype.processLabelsOverall=function(){var a=this;O(this._chartViewList,function(t){var n=t.__model,o=t.ignoreLabelLineUpdate,r=n.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var e=!o,i=t.getTextContent();(e=!e&&i?Y1(i).needsUpdateLabelLine:e)&&a._updateLabelLine(t,n),r&&a._animateLabels(t,n)})})},$1.prototype._updateLabelLine=function(t,e){var i=t.getTextContent(),n=k(t),o=n.dataIndex;if(i&&null!=o){var i=e.getData(n.dataType),e=i.getItemModel(o),n={},o=i.getItemVisual(o,"style"),o=(o&&(i=i.getVisual("drawType"),n.stroke=o[i]),e.getModel("labelLine")),r=t,a=function(t,e){for(var i={normal:t.getModel(e=e||"labelLine")},n=0;n<ll.length;n++){var o=ll[n];i[o]=t.getModel([o,e])}return i}(e),i=n,s=r.getTextGuideLine(),l=r.getTextContent();if(l){for(var e=a.normal,u=e.get("show"),h=l.ignore,c=0;c<ul.length;c++){var p,d=ul[c],f=a[d],g="normal"===d;f&&(p=f.get("show"),(g?h:z(l.states[d]&&l.states[d].ignore,h))||!z(p,u)?((p=g?s:s&&s.states[d])&&(p.ignore=!0),s&&B1(s,!0,d,f)):(s||(s=new Ju,r.setTextGuideLine(s),g||!h&&u||B1(s,!0,"normal",a.normal),r.stateProxy&&(s.stateProxy=r.stateProxy)),B1(s,!1,d,f)))}s&&(E(s.style,i),s.style.fill=null,i=e.get("showAbove"),(r.textGuideLineConfig=r.textGuideLineConfig||{}).showAbove=i||!1,s.buildPath=V1)}else s&&r.removeTextGuideLine();z1(t,o)}},$1.prototype._animateLabels=function(t,e){var i,n,o,r,a,s=t.getTextContent(),l=t.getTextGuideLine();!s||!t.forceLabelAnimation&&(s.ignore||s.invisible||t.disableLabelAnimation||Vh(t))||(r=(o=Y1(s)).oldLayout,i=(n=k(t)).dataIndex,a={x:s.x,y:s.y,rotation:s.rotation},n=e.getData(n.dataType),r?(s.attr(r),(t=t.prevStates)&&(0<=C(t,"select")&&s.attr(o.oldLayoutSelect),0<=C(t,"emphasis"))&&s.attr(o.oldLayoutEmphasis),Eh(s,a,e,i)):(s.attr(a),Cc(s).valueAnimation||(t=z(s.style.opacity,1),s.style.opacity=0,Bh(s,{style:{opacity:t}},e,i))),o.oldLayout=a,s.states.select&&(q1(t=o.oldLayoutSelect={},a,j1),q1(t,s.states.select,j1)),s.states.emphasis&&(q1(t=o.oldLayoutEmphasis={},a,j1),q1(t,s.states.emphasis,j1)),Dc(s,i,n,e,e)),!l||l.ignore||l.invisible||(r=(o=Z1(l)).oldLayout,a={points:l.shape.points},r?(l.attr({shape:r}),Eh(l,{shape:a},e)):(l.setShape(a),l.style.strokePercent=0,Bh(l,{style:{strokePercent:1}},e)),o.oldLayout=a)},$1);function $1(){this._labelList=[],this._chartViewList=[]}var Q1=Er();function J1(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,i){(Q1(e).labelManager||(Q1(e).labelManager=new K1)).clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,i){var n=Q1(e).labelManager;i.updatedSeries.forEach(function(t){n.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}function tx(t,e,i){var n=H.createCanvas(),o=e.getWidth(),e=e.getHeight(),r=n.style;return r&&(r.position="absolute",r.left="0",r.top="0",r.width=o+"px",r.height=e+"px",n.setAttribute("data-zr-dom-id",t)),n.width=o*i,n.height=e*i,n}Y_(J1);u(nx,ex=se),nx.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},nx.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},nx.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},nx.prototype.setUnpainted=function(){this.__firstTimePaint=!0},nx.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=tx("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},nx.prototype.createRepaintRects=function(t,e,i,n){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var l=[],u=this.maxRepaintRectCount,h=!1,c=new U(0,0,0,0);function o(t){if(t.isFinite()&&!t.isZero())if(0===l.length)(e=new U(0,0,0,0)).copy(t),l.push(e);else{for(var e,i=!1,n=1/0,o=0,r=0;r<l.length;++r){var a=l[r];if(a.intersect(t)){var s=new U(0,0,0,0);s.copy(a),s.union(t),l[r]=s,i=!0;break}h&&(c.copy(t),c.union(a),s=t.width*t.height,a=a.width*a.height,(a=c.width*c.height-s-a)<n)&&(n=a,o=r)}h&&(l[o].union(t),i=!0),i||((e=new U(0,0,0,0)).copy(t),l.push(e)),h=h||l.length>=u}}for(var r,a=this.__startIndex;a<this.__endIndex;++a)(s=t[a])&&(d=s.shouldBePainted(i,n,!0,!0),(p=s.__isRendered&&(s.__dirty&vi||!d)?s.getPrevPaintRect():null)&&o(p),r=d&&(s.__dirty&vi||!s.__isRendered)?s.getPaintRect():null)&&o(r);for(a=this.__prevStartIndex;a<this.__prevEndIndex;++a){var s,p,d=(s=e[a])&&s.shouldBePainted(i,n,!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},nx.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},nx.prototype.resize=function(t,e){var i=this.dpr,n=this.dom,o=n.style,r=this.domBack;o&&(o.width=t+"px",o.height=e+"px"),n.width=t*i,n.height=e*i,r&&(r.width=t*i,r.height=e*i,1!==i)&&this.ctxBack.scale(i,i)},nx.prototype.clear=function(t,r,e){var i=this.dom,a=this.ctx,n=i.width,o=i.height,s=(r=r||this.clearColor,this.motionBlur&&!t),l=this.lastFrameAlpha,u=this.dpr,h=this,c=(s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,n/u,o/u)),this.domBack);function p(t,e,i,n){var o;a.clearRect(t,e,i,n),r&&"transparent"!==r&&(o=void 0,yt(r)?(o=(r.global||r.__width===i&&r.__height===n)&&r.__canvasGradient||cm(a,r,{x:0,y:0,width:i,height:n}),r.__canvasGradient=o,r.__width=i,r.__height=n):mt(r)&&(r.scaleX=r.scaleX||u,r.scaleY=r.scaleY||u,o=wm(a,r,{dirty:function(){h.setUnpainted(),h.painter.refresh()}})),a.save(),a.fillStyle=o||r,a.fillRect(t,e,i,n),a.restore()),s&&(a.save(),a.globalAlpha=l,a.drawImage(c,t,e,i,n),a.restore())}!e||s?p(0,0,n,o):e.length&&O(e,function(t){p(t.x*u,t.y*u,t.width*u,t.height*u)})};var ex,ix=nx;function nx(t,e,i){var n,o=ex.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,i=i||po,"string"==typeof t?n=tx(t,e,i):R(t)&&(t=(n=t).id),o.id=t,(o.dom=n).style);return t&&(Nt(n),n.onselectstart=function(){return!1},t.padding="0",t.margin="0",t.borderWidth="0"),o.painter=e,o.dpr=i,o}var ox=314159;p.prototype.getType=function(){return"canvas"},p.prototype.isSingleCanvas=function(){return this._singleCanvas},p.prototype.getViewportRoot=function(){return this._domRoot},p.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},p.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),i=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var o=0;o<n.length;o++){var r,a=n[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},p.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},p.prototype._paintHoverList=function(t){var e=t.length,i=this._hoverlayer;if(i&&i.clear(),e){for(var n,o={inHover:!0,viewWidth:this._width,viewHeight:this._height},r=0;r<e;r++){var a=t[r];a.__inHover&&(i=i||(this._hoverlayer=this.getLayer(1e5)),n||(n=i.ctx).save(),Rm(n,a,o,r===e-1))}n&&n.restore()}},p.prototype.getHoverLayer=function(){return this.getLayer(1e5)},p.prototype.paintOne=function(t,e){Om(t,e)},p.prototype._paintList=function(t,e,i,n){var o,r,a;this._redrawId===n&&(i=i||!1,this._updateLayerStatus(t),o=(r=this._doPaintList(t,e,i)).finished,r=r.needsRefreshHover,this._needsManuallyCompositing&&this._compositeManually(),r&&this._paintHoverList(t),o?this.eachLayer(function(t){t.afterBrush&&t.afterBrush()}):(a=this,Ti(function(){a._paintList(t,e,i,n)})))},p.prototype._compositeManually=function(){var e=this.getLayer(ox).ctx,i=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,i,n),this.eachBuiltinLayer(function(t){t.virtual&&e.drawImage(t.dom,0,0,i,n)})},p.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,i=function(t){function e(t){var e={inHover:!1,allClipped:!1,prevEl:null,viewWidth:y._width,viewHeight:y._height};for(n=s;n<o.__endIndex;n++){var i=d[n];if(i.__inHover&&(x=!0),y._doPaintEl(i,o,v,t,e,n===o.__endIndex-1),l)if(15<Date.now()-u)break}e.prevElClipPaths&&r.restore()}var i,n,o=m[t],r=o.ctx,a=v&&o.createRepaintRects(d,f,w._width,w._height),s=g?o.__startIndex:o.__drawIndex,l=!g&&o.incremental&&Date.now,u=l&&Date.now(),t=o.zlevel===w._zlevelList[0]?w._backgroundColor:null;o.__startIndex!==o.__endIndex&&(s!==o.__startIndex||(i=d[s]).incremental&&i.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)n=o.__endIndex;else for(var h=w.dpr,c=0;c<a.length;++c){var p=a[c];r.save(),r.beginPath(),r.rect(p.x*h,p.y*h,p.width*h,p.height*h),r.clip(),e(p),r.restore()}else r.save(),e(),r.restore();o.__drawIndex=n,o.__drawIndex<o.__endIndex&&(_=!1)},w=this,n=0;n<m.length;n++)i(n);return b.wxa&&O(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:_,needsRefreshHover:x}},p.prototype._doPaintEl=function(t,e,i,n,o,r){e=e.ctx;i?(i=t.getPaintRect(),(!n||i&&i.intersect(n))&&(Rm(e,t,o,r),t.setPrevPaintRect(i))):Rm(e,t,o,r)},p.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=ox);var i=this._layers[t];return i||((i=new ix("zr_"+t,this,this.dpr)).zlevel=t,i.__builtin__=!0,this._layerConfig[t]?d(i,this._layerConfig[t],!0):this._layerConfig[t-.01]&&d(i,this._layerConfig[t-.01],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},p.prototype.insertLayer=function(t,e){var i,n=this._layers,o=this._zlevelList,r=o.length,a=this._domRoot,s=null,l=-1;if(!n[t]&&(i=e)&&(i.__builtin__||"function"==typeof i.resize&&"function"==typeof i.refresh)){if(0<r&&t>o[0]){for(l=0;l<r-1&&!(o[l]<t&&o[l+1]>t);l++);s=n[o[l]]}o.splice(l+1,0,t),(n[t]=e).virtual||(s?(i=s.dom).nextSibling?a.insertBefore(e.dom,i.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.painter||(e.painter=this)}},p.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var o=i[n];t.call(e,this._layers[o],o)}},p.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var o=i[n],r=this._layers[o];r.__builtin__&&t.call(e,r,o)}},p.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var o=i[n],r=this._layers[o];r.__builtin__||t.call(e,r,o)}},p.prototype.getLayers=function(){return this._layers},p.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 i=1;i<t.length;i++)if((s=t[i]).zlevel!==t[i-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}for(var n,o=null,r=0,a=0;a<t.length;a++){var s,l=(s=t[a]).zlevel,u=void 0;n!==l&&(n=l,r=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,r=1):u=this.getLayer(l+(0<r?.01:0),this._needsManuallyCompositing),u.__builtin__||nt("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==a&&(u.__dirty=!0),u.__startIndex=a,u.incremental?u.__drawIndex=-1:u.__drawIndex=a,e(a),o=u),s.__dirty&vi&&!s.__inHover&&(u.__dirty=!0,u.incremental)&&u.__drawIndex<0&&(u.__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)})},p.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},p.prototype._clearLayer=function(t){t.clear()},p.prototype.setBackgroundColor=function(t){this._backgroundColor=t,O(this._layers,function(t){t.setUnpainted()})},p.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?d(i[t],e,!0):i[t]=e;for(var n=0;n<this._zlevelList.length;n++){var o=this._zlevelList[n];o!==t&&o!==t+.01||d(this._layers[o],i[t],!0)}}},p.prototype.delLayer=function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i.splice(C(i,t),1))},p.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot,n=(i.style.display="none",this._opts),o=this.root;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=dm(o,0,n),e=dm(o,1,n),i.style.display="",this._width!==t||e!==this._height){for(var r in i.style.width=t+"px",i.style.height=e+"px",this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].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(ox).resize(t,e)}return this},p.prototype.clearLayer=function(t){t=this._layers[t];t&&t.clear()},p.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},p.prototype.getRenderedCanvas=function(t){if(this._singleCanvas&&!this._compositeManually)return this._layers[ox].dom;var e=new ix("image",this,(t=t||{}).pixelRatio||this.dpr),i=(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),e.ctx);if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,o=e.dom.height;this.eachLayer(function(t){t.__builtin__?i.drawImage(t.dom,0,0,n,o):t.renderToCanvas&&(i.save(),t.renderToCanvas(i),i.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 u=a[s];Rm(i,u,r,s===l-1)}return e.dom},p.prototype.getWidth=function(){return this._width},p.prototype.getHeight=function(){return this._height};var rx=p;function p(t,e,i,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=i=P({},i||{}),this.dpr=i.devicePixelRatio||po,this._singleCanvas=o;(this.root=t).style&&(Nt(t),t.innerHTML=""),this.storage=e;var r,a,e=this._zlevelList,s=(this._prevDisplayList=[],this._layers);o?(r=(o=t).width,a=o.height,null!=i.width&&(r=i.width),null!=i.height&&(a=i.height),this.dpr=i.devicePixelRatio||1,o.width=r*this.dpr,o.height=a*this.dpr,this._width=r,this._height=a,(r=new ix(o,this,this.dpr)).__builtin__=!0,r.initContext(),(s[ox]=r).zlevel=ox,e.push(ox),this._domRoot=t):(this._width=dm(t,0,i),this._height=dm(t,1,i),r=this._domRoot=(a=this._width,o=this._height,(s=document.createElement("div")).style.cssText=["position:relative","width:"+a+"px","height:"+o+"px","padding:0","margin:0","border-width:0"].join(";")+";",s),t.appendChild(r))}u(lx,ax=g),lx.prototype.init=function(t,e,i){ax.prototype.init.call(this,t,e,i),this._sourceManager=new wg(this),Sg(this)},lx.prototype.mergeOption=function(t,e){ax.prototype.mergeOption.call(this,t,e),Sg(this)},lx.prototype.optionUpdated=function(){this._sourceManager.dirty()},lx.prototype.getSourceManager=function(){return this._sourceManager},lx.type="dataset",lx.defaultOption={seriesLayoutBy:sd};var ax,sx=lx;function lx(){var t=null!==ax&&ax.apply(this,arguments)||this;return t.type="dataset",t}u(cx,ux=Jg),cx.type="dataset";var ux,hx=cx;function cx(){var t=null!==ux&&ux.apply(this,arguments)||this;return t.type="dataset",t}function px(t){t.registerComponentModel(sx),t.registerComponentView(hx)}Y_([function(t){t.registerPainter("canvas",rx)},px]),Y_(J1);u(gx,dx=Ug),gx.prototype.getInitialData=function(t){return Nv(null,this,{useEncodeDefaulter:!0})},gx.prototype.getLegendIcon=function(t){var e=new Yo,i=sm("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1),i=(e.add(i),i.setStyle(t.lineStyle),this.getData().getVisual("symbol")),n=this.getData().getVisual("symbolRotate"),i="none"===i?"circle":i,o=.8*t.itemHeight,o=sm(i,(t.itemWidth-o)/2,(t.itemHeight-o)/2,o,o,t.itemStyle.fill),n=(e.add(o),o.setStyle(t.itemStyle),"inherit"===t.iconRotate?n:t.iconRotate||0);return o.rotation=n*Math.PI/180,o.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<i.indexOf("empty")&&(o.style.stroke=o.style.fill,o.style.fill="#fff",o.style.lineWidth=2),e},gx.type="series.line",gx.dependencies=["grid","polar"],gx.defaultOption={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},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,universalTransition:{divideShape:"clone"},triggerLineEvent:!1};var dx,fx=gx;function gx(){var t=null!==dx&&dx.apply(this,arguments)||this;return t.type=gx.type,t.hasSymbolVisual=!0,t}function yx(t,e){var i,n=t.mapDimensionsAll("defaultedLabel"),o=n.length;if(1===o)return null!=(i=kf(t,e,n[0]))?i+"":null;if(o){for(var r=[],a=0;a<n.length;a++)r.push(kf(t,e,n[a]));return r.join(" ")}}u(_x,mx=Yo),_x.prototype._createSymbol=function(t,e,i,n,o){this.removeAll();o=sm(t,-1,-1,2,2,null,o);o.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),o.drift=xx,this._symbolType=t,this.add(o)},_x.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},_x.prototype.getSymbolType=function(){return this._symbolType},_x.prototype.getSymbolPath=function(){return this.childAt(0)},_x.prototype.highlight=function(){Ll(this.childAt(0))},_x.prototype.downplay=function(){Pl(this.childAt(0))},_x.prototype.setZ=function(t,e){var i=this.childAt(0);i.zlevel=t,i.z=e},_x.prototype.setDraggable=function(t,e){var i=this.childAt(0);i.draggable=t,i.cursor=!e&&t?"move":i.cursor},_x.prototype.updateData=function(t,e,i,n){this.silent=!1;var o,r,a,s=t.getItemVisual(e,"symbol")||"circle",l=t.hostModel,u=_x.getSymbolSize(t,e),h=s!==this._symbolType,c=n&&n.disableAnimation;h?(o=t.getItemVisual(e,"symbolKeepAspect"),this._createSymbol(s,t,e,u,o)):((r=this.childAt(0)).silent=!1,a={scaleX:u[0]/2,scaleY:u[1]/2},c?r.attr(a):Eh(r,a,l,e),zh(s=r).oldStyle=s.style),this._updateCommon(t,e,u,i,n),h&&(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,Bh(r,a,l,e))),c&&this.childAt(0).stopAnimation("leave")},_x.prototype._updateCommon=function(e,t,i,n,o){var r,a,s,l,u,h,c,p,d=this.childAt(0),f=e.hostModel,g=(n&&(r=n.emphasisItemStyle,s=n.blurItemStyle,a=n.selectItemStyle,l=n.focus,u=n.blurScope,c=n.labelStatesModels,p=n.hoverScale,y=n.cursorStyle,h=n.emphasisDisabled),n&&!e.hasItemOption||(r=(g=(n=n&&n.itemModel?n.itemModel:e.getItemModel(t)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),a=n.getModel(["select","itemStyle"]).getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=g.get("focus"),u=g.get("blurScope"),h=g.get("disabled"),c=xc(n),p=g.getShallow("scale"),y=n.getShallow("cursor")),e.getItemVisual(t,"symbolRotate")),n=(d.attr("rotation",(g||0)*Math.PI/180||0),um(e.getItemVisual(t,"symbolOffset"),i)),g=(n&&(d.x=n[0],d.y=n[1]),y&&d.attr("cursor",y),e.getItemVisual(t,"style")),n=g.fill,y=(d instanceof ks?(y=d.style,d.useStyle(P({image:y.image,x:y.x,y:y.y,width:y.width,height:y.height},g))):(d.__isEmptyBrush?d.useStyle(P({},g)):d.useStyle(g),d.style.decal=null,d.setColor(n,o&&o.symbolInnerColor),d.style.strokeNoScale=!0),e.getItemVisual(t,"liftZ")),m=this._z2,v=(null!=y?null==m&&(this._z2=d.z2,d.z2+=y):null!=m&&(d.z2=m,this._z2=null),o&&o.useNameLabel);_c(d,c,{labelFetcher:f,labelDataIndex:t,defaultText:function(t){return v?e.getName(t):yx(e,t)},inheritColor:n,defaultOpacity:g.opacity}),this._sizeX=i[0]/2,this._sizeY=i[1]/2;y=d.ensureState("emphasis"),y.style=r,d.ensureState("select").style=a,d.ensureState("blur").style=s,m=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&0<p?+p:1;y.scaleX=this._sizeX*m,y.scaleY=this._sizeY*m,this.setSymbolScale(1),Xl(this,l,u,h)},_x.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},_x.prototype.fadeOut=function(t,e,i){var n=this.childAt(0),o=k(this).dataIndex,r=i&&i.animation;this.silent=n.silent=!0,i&&i.fadeLabel?(i=n.getTextContent())&&Fh(i,{style:{opacity:0}},e,{dataIndex:o,removeOpt:r,cb:function(){n.removeTextContent()}}):n.removeTextContent(),Fh(n,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:o,cb:t,removeOpt:r})},_x.getSymbolSize=function(t,e){return lm(t.getItemVisual(e,"symbolSize"))};var mx,vx=_x;function _x(t,e,i,n){var o=mx.call(this)||this;return o.updateData(t,e,i,n),o}function xx(t,e){this.parent.drift(t,e)}function bx(t,e,i,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&(!n.isIgnore||!n.isIgnore(i))&&(!n.clipShape||n.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(i,"symbol")}function Sx(t){return(t=null==t||R(t)?t:{isIgnore:t})||{}}function Mx(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"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:xc(t),cursorStyle:t.get("cursor")}}Ix.prototype.updateData=function(r,a){this._progressiveEls=null,a=Sx(a);var s=this.group,l=r.hostModel,u=this._data,h=this._SymbolCtor,c=a.disableAnimation,p=Mx(r),d={disableAnimation:c},f=a.getSymbolPoint||function(t){return r.getItemLayout(t)};u||s.removeAll(),r.diff(u).add(function(t){var e,i=f(t);bx(r,i,t,a)&&((e=new h(r,t,p,d)).setPosition(i),r.setItemGraphicEl(t,e),s.add(e))}).update(function(t,e){var i,n,e=u.getItemGraphicEl(e),o=f(t);bx(r,o,t,a)?(i=r.getItemVisual(t,"symbol")||"circle",n=e&&e.getSymbolType&&e.getSymbolType(),!e||n&&n!==i?(s.remove(e),(e=new h(r,t,p,d)).setPosition(o)):(e.updateData(r,t,p,d),n={x:o[0],y:o[1]},c?e.attr(n):Eh(e,n,l)),s.add(e),r.setItemGraphicEl(t,e)):s.remove(e)}).remove(function(t){var e=u.getItemGraphicEl(t);e&&e.fadeOut(function(){s.remove(e)},l)}).execute(),this._getSymbolPoint=f,this._data=r},Ix.prototype.updateLayout=function(){var i=this,t=this._data;t&&t.eachItemGraphicEl(function(t,e){e=i._getSymbolPoint(e);t.setPosition(e),t.markRedraw()})},Ix.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Mx(t),this._data=null,this.group.removeAll()},Ix.prototype.incrementalUpdate=function(t,e,i){function n(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],i=Sx(i);for(var o=t.start;o<t.end;o++){var r,a=e.getItemLayout(o);bx(e,a,o,i)&&((r=new this._SymbolCtor(e,o,this._seriesScope)).traverse(n),r.setPosition(a),this.group.add(r),e.setItemGraphicEl(o,r),this._progressiveEls.push(r))}},Ix.prototype.eachRendered=function(t){fc(this._progressiveEls||this.group,t)},Ix.prototype.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)},i.hostModel)}):e.removeAll()};var Tx=Ix;function Ix(t){this.group=new Yo,this._SymbolCtor=t||vx}function Cx(t,e,i){var n=t.getBaseAxis(),o=t.getOtherAxis(n),i=function(t,e){var i=0,t=t.scale.getExtent();"start"===e?i=t[0]:"end"===e?i=t[1]:pt(e)&&!isNaN(e)?i=e:0<t[0]?i=t[0]:t[1]<0&&(i=t[1]);return i}(o,i),n=n.dim,o=o.dim,r=e.mapDimension(o),a=e.mapDimension(n),s="x"===o||"radius"===o?1:0,t=B(t.dimensions,function(t){return e.mapDimension(t)}),l=!1,u=e.getCalculationInfo("stackResultDimension");return Rv(e,t[0])&&(l=!0,t[0]=u),Rv(e,t[1])&&(l=!0,t[1]=u),{dataDimsForPoint:t,valueStart:i,valueAxisDim:o,baseAxisDim:n,stacked:!!l,valueDim:r,baseDim:a,baseDataOffset:s,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Dx(t,e,i,n){var o=NaN,r=(t.stacked&&(o=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(o)&&(o=t.valueStart),t.baseDataOffset),a=[];return a[r]=i.get(t.baseDim,n),a[1-r]=o,e.dataToPoint(a)}var kx=Math.min,Ax=Math.max;function Lx(t,e){return isNaN(t)||isNaN(e)}function Px(t,e,i,n,o,r,a,s,l){for(var u,h,c,p,d=i,f=0;f<n;f++){var g=e[2*d],y=e[2*d+1];if(o<=d||d<0)break;if(Lx(g,y)){if(l){d+=r;continue}break}if(d===i)t[0<r?"moveTo":"lineTo"](g,y),c=g,p=y;else{var m=g-u,v=y-h;if(m*m+v*v<.5){d+=r;continue}if(0<a){for(var _=d+r,x=e[2*_],w=e[2*_+1];x===g&&w===y&&f<n;)f++,d+=r,x=e[2*(_+=r)],w=e[2*_+1],g=e[2*d],y=e[2*d+1];var b=f+1;if(l)for(;Lx(x,w)&&b<n;)b++,x=e[2*(_+=r)],w=e[2*_+1];var S,M,T,I,C,D,k,A,L,m=0,v=0,P=void 0,O=void 0;n<=b||Lx(x,w)?(k=g,A=y):(m=x-u,v=w-h,S=g-u,M=x-g,T=y-h,I=w-y,D=C=void 0,O="x"===s?(k=g-(L=0<m?1:-1)*(C=Math.abs(S))*a,A=y,P=g+L*(D=Math.abs(M))*a,y):"y"===s?(A=y-(L=0<v?1:-1)*(C=Math.abs(T))*a,P=k=g,y+L*(D=Math.abs(I))*a):(C=Math.sqrt(S*S+T*T),k=g-m*a*(1-(S=(D=Math.sqrt(M*M+I*I))/(D+C))),A=y-v*a*(1-S),O=y+v*a*S,P=kx(P=g+m*a*S,Ax(x,g)),O=kx(O,Ax(w,y)),P=Ax(P,kx(x,g)),A=y-(v=(O=Ax(O,kx(w,y)))-y)*C/D,k=kx(k=g-(m=P-g)*C/D,Ax(u,g)),A=kx(A,Ax(h,y)),P=g+(m=g-(k=Ax(k,kx(u,g))))*D/C,y+(v=y-(A=Ax(A,kx(h,y))))*D/C)),t.bezierCurveTo(c,p,k,A,g,y),c=P,p=O}else t.lineTo(g,y)}u=g,h=y,d+=r}return f}var Ox,Rx=function(){this.smooth=0,this.smoothConstraint=!0},zx=(u(Nx,Ox=ws),Nx.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Nx.prototype.getDefaultShape=function(){return new Rx},Nx.prototype.buildPath=function(t,e){var i=e.points,n=0,o=i.length/2;if(e.connectNulls){for(;0<o&&Lx(i[2*o-2],i[2*o-1]);o--);for(;n<o&&Lx(i[2*n],i[2*n+1]);n++);}for(;n<o;)n+=Px(t,i,n,o,o,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},Nx.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i,n,o=this.path.data,r=ns.CMD,a="x"===e,s=[],l=0;l<o.length;){var u=void 0,h=void 0;switch(o[l++]){case r.M:i=o[l++],n=o[l++];break;case r.L:var c,u=o[l++],h=o[l++];if((c=a?(t-i)/(u-i):(t-n)/(h-n))<=1&&0<=c)return v=a?(h-n)*c+n:(u-i)*c+i,a?[t,v]:[v,t];i=u,n=h;break;case r.C:u=o[l++],h=o[l++];var p=o[l++],d=o[l++],f=o[l++],g=o[l++],y=a?Vi(i,u,p,f,t,s):Vi(n,h,d,g,t,s);if(0<y)for(var m=0;m<y;m++){var v,_=s[m];if(_<=1&&0<=_)return v=a?Ei(n,h,d,g,_):Ei(i,u,p,f,_),a?[t,v]:[v,t]}i=f,n=g}}},Nx);function Nx(t){t=Ox.call(this,t)||this;return t.type="ec-polyline",t}u(Vx,Ex=Rx);var Ex,Bx=Vx;function Vx(){return null!==Ex&&Ex.apply(this,arguments)||this}u(Gx,Fx=ws),Gx.prototype.getDefaultShape=function(){return new Bx},Gx.prototype.buildPath=function(t,e){var i=e.points,n=e.stackedOnPoints,o=0,r=i.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;0<r&&Lx(i[2*r-2],i[2*r-1]);r--);for(;o<r&&Lx(i[2*o],i[2*o+1]);o++);}for(;o<r;){var s=Px(t,i,o,r,r,1,e.smooth,a,e.connectNulls);Px(t,n,o+s-1,s,r,-1,e.stackedOnSmooth,a,e.connectNulls),o+=s+1,t.closePath()}};var Fx,Hx=Gx;function Gx(t){t=Fx.call(this,t)||this;return t.type="ec-polygon",t}function Wx(t,e){return t.type===e}function Xx(t,e){if(t.length===e.length){for(var i=0;i<t.length;i++)if(t[i]!==e[i])return;return 1}}function Ux(t){for(var e=1/0,i=1/0,n=-1/0,o=-1/0,r=0;r<t.length;){var a=t[r++],s=t[r++];isNaN(a)||(e=Math.min(a,e),n=Math.max(a,n)),isNaN(s)||(i=Math.min(s,i),o=Math.max(s,o))}return[[e,i],[n,o]]}function Yx(t,e){var t=Ux(t),i=t[0],t=t[1],e=Ux(e),n=e[0],e=e[1];return Math.max(Math.abs(i[0]-n[0]),Math.abs(i[1]-n[1]),Math.abs(t[0]-e[0]),Math.abs(t[1]-e[1]))}function Zx(t){return pt(t)?t:t?.5:0}function qx(t,e,i,n){var e=e.getBaseAxis(),o="x"===e.dim||"radius"===e.dim?0:1,r=[],a=0,s=[],l=[],u=[],h=[];if(n){for(a=0;a<t.length;a+=2)isNaN(t[a])||isNaN(t[a+1])||h.push(t[a],t[a+1]);t=h}for(a=0;a<t.length-2;a+=2)switch(u[0]=t[a+2],u[1]=t[a+3],l[0]=t[a],l[1]=t[a+1],r.push(l[0],l[1]),i){case"end":s[o]=u[o],s[1-o]=l[1-o],r.push(s[0],s[1]);break;case"middle":var c=[];s[o]=c[o]=(l[o]+u[o])/2,s[1-o]=l[1-o],c[1-o]=u[1-o],r.push(s[0],s[1]),r.push(c[0],c[1]);break;default:s[o]=l[o],s[1-o]=u[1-o],r.push(s[0],s[1])}return r.push(t[a++],t[a++]),r}function jx(t,e,i){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var o,r=n.length-1;0<=r;r--){var a,s=t.getDimensionInfo(n[r].dimension);if("x"===(a=s&&s.coordDim)||"y"===a){o=n[r];break}}if(o){var l=e.getAxis(a),e=B(o.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),u=e.length,h=o.outerColors.slice(),i=(u&&e[0].coord>e[u-1].coord&&(e.reverse(),h.reverse()),function(t,e){var i,n,o=[],r=t.length;function a(t,e,i){var n=t.coord;return{coord:i,color:wn((i-n)/(e.coord-n),[t.color,e.color])}}for(var s=0;s<r;s++){var l=t[s],u=l.coord;if(u<0)i=l;else{if(e<u){n?o.push(a(n,l,e)):i&&o.push(a(i,l,0),a(i,l,e));break}i&&(o.push(a(i,l,0)),i=null),o.push(l),n=l}}return o}(e,"x"===a?i.getWidth():i.getHeight())),c=i.length;if(!c&&u)return e[0].coord<0?h[1]||e[u-1].color:h[0]||e[0].color;var p=i[0].coord-10,u=i[c-1].coord+10,d=u-p;if(d<.001)return"transparent";O(i,function(t){t.offset=(t.coord-p)/d}),i.push({offset:c?i[c-1].offset:.5,color:h[1]||"transparent"}),i.unshift({offset:c?i[0].offset:.5,color:h[0]||"transparent"});e=new bh(0,0,0,0,i,!0);return e[a]=p,e[a+"2"]=u,e}}}function Kx(t,e,i){var t=t.get("showAllSymbol"),n="auto"===t;if(!t||n){var o,r,a=i.getAxesByScale("ordinal")[0];if(a)if(!n||!function(t,e){for(var i=t.getExtent(),n=Math.abs(i[1]-i[0])/t.scale.count(),o=(isNaN(n)&&(n=0),e.count()),r=Math.max(1,Math.round(o/5)),a=0;a<o;a+=r)if(1.5*vx.getSymbolSize(e,a)[t.isHorizontal()?1:0]>n)return;return 1}(a,e))return o=e.mapDimension(a.dim),r={},O(a.getViewLabels(),function(t){t=a.scale.getRawOrdinalNumber(t.tickValue);r[t]=1}),function(t){return!r.hasOwnProperty(e.get(o,t))}}}function $x(t){for(var e,i,n=t.length/2;0<n&&(e=t[2*n-2],i=t[2*n-1],isNaN(e)||isNaN(i));n--);return n-1}function Qx(t,e){return[t[2*e],t[2*e+1]]}function Jx(t){if(t.get(["endLabel","show"]))return 1;for(var e=0;e<ll.length;e++)if(t.get([ll[e],"endLabel","show"]))return 1}function tw(i,n,e,t){var o,r,a,s,l,u,h,c,p,d,f,g,y,m,v,_,x;return Wx(n,"cartesian2d")?(o=t.getModel("endLabel"),r=o.get("valueAnimation"),a=t.getData(),s={lastFrameIndex:0},l=Jx(t)?function(t,e){i._endLabelOnDuring(t,e,a,s,r,o,n)}:null,u=n.getBaseAxis().isHorizontal(),c=e,p=t,d=function(){var t=i._endLabel;t&&e&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})},f=l,g=(v=(h=n).getArea()).x,y=v.y,m=v.width,v=v.height,_=p.get(["lineStyle","width"])||2,g-=_/2,y-=_/2,m+=_,v+=_,m=Math.ceil(m),g!==Math.floor(g)&&(g=Math.floor(g),m++),x=new Bs({shape:{x:g,y:y,width:m,height:v}}),c&&(c=(_=h.getBaseAxis()).isHorizontal(),h=_.inverse,c?(h&&(x.shape.x+=m),x.shape.width=0):(h||(x.shape.y+=v),x.shape.height=0),_=D(f)?function(t){f(t,x)}:null,Bh(x,{shape:{width:m,height:v,x:g,y:y}},p,null,d,_)),c=x,t.get("clip",!0)||(h=c.shape,m=Math.max(h.width,h.height),u?(h.y-=m,h.height+=2*m):(h.x-=m,h.width+=2*m)),l&&l(1,c),c):(v=e,g=t,p=(y=n).getArea(),d=ar(p.r0,1),_=ar(p.r,1),u=new Fu({shape:{cx:ar(y.cx,1),cy:ar(y.cy,1),r0:d,r:_,startAngle:p.startAngle,endAngle:p.endAngle,clockwise:p.clockwise}}),v&&("angle"===y.getBaseAxis().dim?u.shape.endAngle=p.startAngle:u.shape.r=d,Bh(u,{shape:{endAngle:p.endAngle,r:_}},g)),u)}u(nw,ew=oy),nw.prototype.init=function(){var t=new Yo,e=new Tx;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},nw.prototype.render=function(t,e,i){function n(t){r._changePolyState(t)}var o,r=this,a=t.coordinateSystem,s=this.group,l=t.getData(),u=t.getModel("lineStyle"),h=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,e=!e.ssr&&t.get("animation"),v=!h.isEmpty(),_=h.get("origin"),x=Cx(a,l,_),x=v&&function(t,e,i){if(!i.valueDim)return[];for(var n=e.count(),o=a_(2*n),r=0;r<n;r++){var a=Dx(i,t,e,r);o[2*r]=a[0],o[2*r+1]=a[1]}return o}(a,l,x),w=t.get("showSymbol"),b=t.get("connectNulls"),S=w&&!p&&Kx(t,l,a),M=this._data,T=(M&&M.eachItemGraphicEl(function(t,e){t.__temp&&(s.remove(t),M.setItemGraphicEl(e,null))}),w||f.remove(),s.add(m),!p&&t.get("step")),I=(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,jx(l,a,i)||l.getVisual("style")[l.getVisual("drawType")]),d=(g&&d.type===a.type&&T===this._step?(v&&!y?y=this._newPolygon(c,x):y&&!v&&(m.remove(y),y=this._polygon=null),p||this._initOrUpdateEndLabel(t,a,zp(I)),(d=m.getClipPath())?Bh(d,{shape:tw(this,a,!1,t).shape},t):m.setClipPath(tw(this,a,!0,t)),w&&f.updateData(l,{isIgnore:S,clipShape:o,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),Xx(this._stackedOnPoints,x)&&Xx(this._points,c)||(e?this._doUpdateAnimation(l,x,a,i,T,_,b):(T&&(c=qx(c,a,T,b),x=x&&qx(x,a,T,b)),g.setShape({points:c}),y&&y.setShape({points:c,stackedOnPoints:x})))):(w&&f.updateData(l,{isIgnore:S,clipShape:o,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),e&&this._initSymbolLabelAnimation(l,a,o),T&&(c=qx(c,a,T,b),x=x&&qx(x,a,T,b)),g=this._newPolyline(c),v?y=this._newPolygon(c,x):y&&(m.remove(y),y=this._polygon=null),p||this._initOrUpdateEndLabel(t,a,zp(I)),m.setClipPath(tw(this,a,!0,t))),t.getModel("emphasis")),i=d.get("focus"),w=d.get("blurScope"),f=d.get("disabled"),S=(g.useStyle(E(u.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),Zl(g,t,"lineStyle"),0<g.style.lineWidth&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(g.getState("emphasis").style.lineWidth=+g.style.lineWidth+1),k(g).seriesIndex=t.seriesIndex,Xl(g,i,w,f),Zx(t.get("smooth"))),e=t.get("smoothMonotone");g.setShape({smooth:S,smoothMonotone:e,connectNulls:b}),y&&(o=l.getCalculationInfo("stackedOnSeries"),v=0,y.useStyle(E(h.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),o&&(v=Zx(o.get("smooth"))),y.setShape({smooth:S,stackedOnSmooth:v,smoothMonotone:e,connectNulls:b}),Zl(y,t,"areaStyle"),k(y).seriesIndex=t.seriesIndex,Xl(y,i,w,f));l.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=n)}),this._polyline.onHoverStateChange=n,this._data=l,this._coordSys=a,this._stackedOnPoints=x,this._points=c,this._step=T,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,g),y)&&this.packEventData(t,y)},nw.prototype.packEventData=function(t,e){k(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},nw.prototype.highlight=function(t,e,i,n){var o=t.getData(),r=Nr(o,n);if(this._changePolyState("emphasis"),!(r instanceof Array)&&null!=r&&0<=r){var a=o.getLayout("points");if(!(l=o.getItemGraphicEl(r))){var s=a[2*r],a=a[2*r+1];if(isNaN(s)||isNaN(a))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s,a))return;var l,u=t.get("zlevel")||0,h=t.get("z")||0,s=((l=new vx(o,r)).x=s,l.y=a,l.setZ(u,h),l.getSymbolPath().getTextContent());s&&(s.zlevel=u,s.z=h,s.z2=this._polyline.z2+1),l.__temp=!0,o.setItemGraphicEl(r,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else oy.prototype.highlight.call(this,t,e,i,n)},nw.prototype.downplay=function(t,e,i,n){var o,r=t.getData(),a=Nr(r,n);this._changePolyState("normal"),null!=a&&0<=a?(o=r.getItemGraphicEl(a))&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay()):oy.prototype.downplay.call(this,t,e,i,n)},nw.prototype._changePolyState=function(t){var e=this._polygon;Tl(this._polyline,t),e&&Tl(e,t)},nw.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new zx({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e},nw.prototype._newPolygon=function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new Hx({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i},nw.prototype._initSymbolLabelAnimation=function(t,l,u){var h,c,e=l.getBaseAxis(),p=e.inverse,e=("cartesian2d"===l.type?(h=e.isHorizontal(),c=!1):"polar"===l.type&&(h="angle"===e.dim,c=!0),t.hostModel),d=e.get("animationDuration"),f=(D(d)&&(d=d(null)),e.get("animationDelay")||0),g=D(f)?f(null):f;t.eachItemGraphicEl(function(t,e){var i,n,o,r,a,s=t;s&&(r=[t.x,t.y],a=n=i=void 0,u&&(a=c?(o=u,r=l.pointToCoord(r),h?(i=o.startAngle,n=o.endAngle,-r[1]/180*Math.PI):(i=o.r0,n=o.r,r[0])):h?(i=u.x,n=u.x+u.width,t.x):(i=u.y+u.height,n=u.y,t.y)),o=n===i?0:(a-i)/(n-i),p&&(o=1-o),r=D(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,setToFinal:!0,delay:r}),a&&a.animateFrom({style:{opacity:0}},{duration:300,delay:r}),t.disableLabelAnimation=!0)})},nw.prototype._initOrUpdateEndLabel=function(t,e,i){var u,n,o,r=t.getModel("endLabel");Jx(t)?(u=t.getData(),n=this._polyline,(o=u.getLayout("points"))?(this._endLabel||((this._endLabel=new Ws({z2:200})).ignoreClip=!0,n.setTextContent(this._endLabel),n.disableLabelAnimation=!0),0<=(o=$x(o))&&(_c(n,xc(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:o,defaultText:function(t,e,i){if(null==i)return yx(u,t);var n=u,o=i,r=n.mapDimensionsAll("defaultedLabel");if(!V(o))return o+"";for(var a=[],s=0;s<r.length;s++){var l=n.getDimensionIndex(r[s]);0<=l&&a.push(o[l])}return a.join(" ")},enableTextSetter:!0},(i=r,o=(t=(t=e).getBaseAxis()).isHorizontal(),t=t.inverse,r=o?t?"right":"left":"center",o=o?"middle":t?"top":"bottom",{normal:{align:i.get("align")||r,verticalAlign:i.get("verticalAlign")||o}})),n.textConfig.position=null)):(n.removeTextContent(),this._endLabel=null)):this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},nw.prototype._endLabelOnDuring=function(t,e,i,n,o,r,a){var s,l,u,h,c,p,d,f,g,y,m=this._endLabel,v=this._polyline;m&&(t<1&&null==n.originalX&&(n.originalX=m.x,n.originalY=m.y),s=i.getLayout("points"),g=(l=i.hostModel).get("connectNulls"),u=r.get("precision"),r=r.get("distance")||0,c=(a=a.getBaseAxis()).isHorizontal(),a=a.inverse,e=e.shape,h=(c?r:0)*(a?-1:1),r=(c?0:-r)*(a?-1:1),d=void 0,1<=(f=(p=(c=function(t,e,i){for(var n,o,r=t.length/2,a="x"===i?0:1,s=0,l=-1,u=0;u<r;u++)if(o=t[2*u+a],!isNaN(o)&&!isNaN(t[2*u+1-a])){if(0!==u){if(n<=e&&e<=o||e<=n&&o<=e){l=u;break}s=u}n=o}return{range:[s,l],t:(e-n)/(o-n)}}(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=Qx(s,p[0]),m.attr({x:y[0]+h,y:y[1]+r}),o&&(d=l.getRawValue(p[0]))):((y=v.getPointOn(a,e))&&m.attr({x:y[0]+h,y:y[1]+r}),f=l.getRawValue(p[0]),g=l.getRawValue(p[1]),o&&(d=Ur(i,u,f,g,c.t))),n.lastFrameIndex=p[0]):(y=Qx(s,v=1===t||0<n.lastFrameIndex?p[0]:0),o&&(d=l.getRawValue(v)),m.attr({x:y[0]+h,y:y[1]+r})),o)&&"function"==typeof(a=Cc(m)).setLabelText&&a.setLabelText(d)},nw.prototype._doUpdateAnimation=function(t,e,i,n,o,r,a){var s=this._polyline,l=this._polygon,u=t.hostModel,e=function(t,e,i,n,o,r){a=[],e.diff(t).add(function(t){a.push({cmd:"+",idx:t})}).update(function(t,e){a.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){a.push({cmd:"-",idx:t})}).execute();for(var a,s=a,l=[],u=[],h=[],c=[],p=[],d=[],f=[],g=Cx(o,e,r),y=t.getLayout("points")||[],m=e.getLayout("points")||[],v=0;v<s.length;v++){var _=s[v],x=!0,w=void 0;switch(_.cmd){case"=":var b=2*_.idx,w=2*_.idx1,S=y[b],M=y[1+b],T=m[w],I=m[w+1];(isNaN(S)||isNaN(M))&&(S=T,M=I),l.push(S,M),u.push(T,I),h.push(i[b],i[1+b]),c.push(n[w],n[w+1]),f.push(e.getRawIndex(_.idx1));break;case"+":S=_.idx,M=g.dataDimsForPoint,T=o.dataToPoint([e.get(M[0],S),e.get(M[1],S)]),I=(w=2*S,l.push(T[0],T[1]),u.push(m[w],m[w+1]),Dx(g,o,e,S));h.push(I[0],I[1]),c.push(n[w],n[w+1]),f.push(e.getRawIndex(S));break;case"-":x=!1}x&&(p.push(_),d.push(d.length))}d.sort(function(t,e){return f[t]-f[e]});for(var C=a_(r=l.length),D=a_(r),k=a_(r),A=a_(r),L=[],v=0;v<d.length;v++){var P=d[v],O=2*v,R=2*P;C[O]=l[R],C[1+O]=l[1+R],D[O]=u[R],D[1+O]=u[1+R],k[O]=h[R],k[1+O]=h[1+R],A[O]=c[R],A[1+O]=c[1+R],L[v]=p[P]}return{current:C,next:D,stackedOnCurrent:k,stackedOnNext:A,status:L}}(this._data,t,this._stackedOnPoints,e,this._coordSys,this._valueOrigin),h=e.current,c=e.stackedOnCurrent,p=e.next,d=e.stackedOnNext;if(o&&(h=qx(e.current,i,o,a),c=qx(e.stackedOnCurrent,i,o,a),p=qx(e.next,i,o,a),d=qx(e.stackedOnNext,i,o,a)),3e3<Yx(h,p)||l&&3e3<Yx(c,d))s.stopAnimation(),s.setShape({points:p}),l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:d}));else{s.shape.__points=e.current,s.shape.points=h;for(var f,i={shape:{points:p}},g=(e.current!==h&&(i.shape.__points=e.next),s.stopAnimation(),Eh(s,i,u),l&&(l.setShape({points:h,stackedOnPoints:c}),l.stopAnimation(),Eh(l,{shape:{stackedOnPoints:d}},u),s.shape.points!==l.shape.points)&&(l.shape.points=s.shape.points),[]),y=e.status,m=0;m<y.length;m++)"="===y[m].cmd&&(f=t.getItemGraphicEl(y[m].idx1))&&g.push({el:f,ptIdx:m});s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<g.length;e++){var i=g[e].el,n=2*g[e].ptIdx;i.x=t[n],i.y=t[1+n],i.markRedraw()}})}},nw.prototype.remove=function(t){var i=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(t,e){t.__temp&&(i.remove(t),n.setItemGraphicEl(e,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},nw.type="line";var ew,iw=nw;function nw(){return null!==ew&&ew.apply(this,arguments)||this}var ow={average:function(t){for(var e=0,i=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],i++);return 0===i?NaN:e/i},sum:function(t){for(var e=0,i=0;i<t.length;i++)e+=t[i]||0;return e},max:function(t){for(var e=-1/0,i=0;i<t.length;i++)t[i]>e&&(e=t[i]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,i=0;i<t.length;i++)t[i]<e&&(e=t[i]);return isFinite(e)?e:NaN},minmax:function(t){for(var e=-1/0,i=-1/0,n=0;n<t.length;n++){var o=t[n],r=Math.abs(o);e<r&&(e=r,i=o)}return isFinite(i)?i:NaN},nearest:function(t){return t[0]}},rw=function(t){return Math.round(t.length/2)};Y_(function(t){var n;t.registerChartView(iw),t.registerSeriesModel(fx),t.registerLayout((n=!0,{seriesType:"line",plan:ey(),reset:function(t){var h,e,c,p,d,i=t.getData(),f=t.coordinateSystem,t=t.pipelineContext,g=n||t.large;if(f)return t=B(f.dimensions,function(t){return i.mapDimension(t)}).slice(0,2),h=t.length,e=i.getCalculationInfo("stackResultDimension"),Rv(i,t[0])&&(t[0]=e),Rv(i,t[1])&&(t[1]=e),c=i.getStore(),p=i.getDimensionIndex(t[0]),d=i.getDimensionIndex(t[1]),h&&{progress:function(t,e){for(var i=t.end-t.start,n=g&&a_(i*h),o=[],r=[],a=t.start,s=0;a<t.end;a++){var l,u=void 0;u=1===h?(l=c.get(p,a),f.dataToPoint(l,null,r)):(o[0]=c.get(p,a),o[1]=c.get(d,a),f.dataToPoint(o,null,r)),g?(n[s++]=u[0],n[s++]=u[1]):e.setItemLayout(a,u.slice())}g&&e.setLayout("points",n)}}}})),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,i){var n,o=t.getData(),r=t.get("sampling"),a=t.coordinateSystem,s=o.count();10<s&&"cartesian2d"===a.type&&r&&(n=a.getBaseAxis(),a=a.getOtherAxis(n),n=n.getExtent(),i=i.getDevicePixelRatio(),n=Math.abs(n[1]-n[0])*(i||1),i=Math.round(s/n),isFinite(i))&&1<i&&("lttb"===r&&t.setData(o.lttbDownSample(o.mapDimension(a.dim),1/i)),s=void 0,F(r)?s=ow[r]:D(r)&&(s=r),s)&&t.setData(o.downSample(o.mapDimension(a.dim),1/i,s,rw))}})});u(lw,aw=g),lw.type="grid",lw.dependencies=["xAxis","yAxis"],lw.layoutMode="box",lw.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"};var aw,sw=lw;function lw(){return null!==aw&&aw.apply(this,arguments)||this}u(cw,uw=g),cw.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Hr).models[0]},cw.type="cartesian2dAxis";var uw,hw=cw;function cw(){return null!==uw&&uw.apply(this,arguments)||this}at(hw,G_);var ic={show:!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)"]}}},Qr=d({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},ic),$y=d({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}}},ic),pw={category:Qr,value:$y,time:d({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},$y),log:E({logBase:10},$y)},dw={value:1,category:1,time:1,log:1};function fw(r,a,s,l){O(dw,function(t,o){var e,i=d(d({},pw[o],!0),l,!0),i=(u(n,e=s),n.prototype.mergeDefaultAndTheme=function(t,e){var i=Wp(this),n=i?Up(t):{};d(t,e.getTheme().get(o+"Axis")),d(t,this.getDefaultOption()),t.type=gw(t),i&&Xp(t,n,i)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Fv.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=i,n);function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a+"Axis."+o,t}r.registerComponentModel(i)}),r.registerSubTypeDefaulter(a+"Axis",gw)}function gw(t){return t.type||(t.data?"category":"value")}function yw(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}yw.prototype.getAxis=function(t){return this._axes[t]},yw.prototype.getAxes=function(){return B(this._dimList,function(t){return this._axes[t]},this)},yw.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ut(this.getAxes(),function(t){return t.scale.type===e})},yw.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)};var mw=["x","y"];function vw(t){return"interval"===t.type||"time"===t.type}u(ww,_w=yw),ww.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t,e,i,n,o=this.getAxis("x").scale,r=this.getAxis("y").scale;vw(o)&&vw(r)&&(o=o.getExtent(),r=r.getExtent(),n=this.dataToPoint([o[0],r[0]]),e=this.dataToPoint([o[1],r[1]]),t=o[1]-o[0],i=r[1]-r[0],t)&&i&&(t=(e[0]-n[0])/t,e=(e[1]-n[1])/i,i=n[0]-o[0]*t,o=n[1]-r[0]*e,n=this._transform=[t,0,0,e,i,o],this._invTransform=Ve([],n))},ww.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},ww.prototype.containPoint=function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},ww.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},ww.prototype.containZone=function(t,e){var t=this.dataToPoint(t),e=this.dataToPoint(e),i=this.getArea(),e=new U(t[0],t[1],e[0]-t[0],e[1]-t[1]);return i.intersect(e)},ww.prototype.dataToPoint=function(t,e,i){i=i||[];var n,o=t[0],r=t[1];return this._transform&&null!=o&&isFinite(o)&&null!=r&&isFinite(r)?te(i,t,this._transform):(t=this.getAxis("x"),n=this.getAxis("y"),i[0]=t.toGlobalCoord(t.dataToCoord(o,e)),i[1]=n.toGlobalCoord(n.dataToCoord(r,e)),i)},ww.prototype.clampData=function(t,e){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,o=i.getExtent(),r=n.getExtent(),i=i.parse(t[0]),n=n.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(o[0],o[1]),i),Math.max(o[0],o[1])),e[1]=Math.min(Math.max(Math.min(r[0],r[1]),n),Math.max(r[0],r[1])),e},ww.prototype.pointToData=function(t,e){var i,n,o=[];return this._invTransform?te(o,t,this._invTransform):(i=this.getAxis("x"),n=this.getAxis("y"),o[0]=i.coordToData(i.toLocalCoord(t[0]),e),o[1]=n.coordToData(n.toLocalCoord(t[1]),e),o)},ww.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},ww.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1])-t,o=Math.min(i[0],i[1])-t,e=Math.max(e[0],e[1])-n+t,i=Math.max(i[0],i[1])-o+t;return new U(n,o,e,i)};var _w,xw=ww;function ww(){var t=null!==_w&&_w.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=mw,t}u(Mw,bw=rp),Mw.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},Mw.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},Mw.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},Mw.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var bw,Sw=Mw;function Mw(t,e,i,n,o){t=bw.call(this,t,e,i)||this;return t.index=0,t.type=n||"value",t.position=o||"bottom",t}function Tw(t,e,i){i=i||{};var t=t.coordinateSystem,n=e.axis,o={},r=n.getAxesOnZeroOf()[0],a=n.position,s=r?"onZero":a,n=n.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},u=e.get("offset")||0,u="x"===n?[t[2]-u,t[3]+u]:[t[0]-u,t[1]+u],h=(r&&(h=r.toGlobalCoord(r.dataToCoord(0)),u[l.onZero]=Math.max(Math.min(h,u[1]),u[0])),o.position=["y"===n?u[l[s]]:t[0],"x"===n?u[l[s]]:t[3]],o.rotation=Math.PI/2*("x"===n?0:1),o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],o.labelOffset=r?u[l[a]]-u[l.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),xt(i.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection),e.get(["axisLabel","rotate"]));return o.labelRotate="top"===s?-h:h,o.z2=1,o}function Iw(t){return"cartesian2d"===t.get("coordinateSystem")}function Cw(n){var o={xAxisModel:null,yAxisModel:null};return O(o,function(t,e){var i=e.replace(/Model$/,""),i=n.getReferringComponents(i,Hr).models[0];o[e]=i}),o}var Dw=Math.log;Aw.prototype.getRect=function(){return this._rect},Aw.prototype.update=function(t,e){var i=this._axesMap;function n(t){var d,e=ht(t),i=e.length;if(i){for(var n=[],o=i-1;0<=o;o--){var r=t[+e[o]],a=r.model,s=r.scale;Wv(s)&&a.get("alignTicks")&&null==a.get("interval")?n.push(r):(R_(s,a),Wv(s)&&(d=r))}n.length&&(d||R_((d=n.pop()).scale,d.model),O(n,function(t){var e=t.scale,t=t.model,i=d.scale,n=i_.prototype,o=n.getTicks.call(i),r=n.getTicks.call(i,!0),a=o.length-1,i=n.getInterval.call(i),s=(t=O_(e,t)).extent,l=t.fixMin,t=t.fixMax,u=("log"===e.type&&(u=Dw(e.base),s=[Dw(s[0])/u,Dw(s[1])/u]),e.setExtent(s[0],s[1]),e.calcNiceExtent({splitNumber:a,fixMin:l,fixMax:t}),n.getExtent.call(e)),h=(l&&(s[0]=u[0]),t&&(s[1]=u[1]),n.getInterval.call(e)),c=s[0],p=s[1];if(l&&t)h=(p-c)/a;else if(l)for(p=s[0]+h*a;p<s[1]&&isFinite(p)&&isFinite(s[1]);)h=Uv(h),p=s[0]+h*a;else if(t)for(c=s[1]-h*a;c>s[0]&&isFinite(c)&&isFinite(s[0]);)h=Uv(h),c=s[1]-h*a;else{u=(h=a<e.getTicks().length-1?Uv(h):h)*a;(c=ar((p=Math.ceil(s[1]/h)*h)-u))<0&&0<=s[0]?(c=0,p=ar(u)):0<p&&s[1]<=0&&(p=0,c=-ar(u))}l=(o[0].value-r[0].value)/i,t=(o[a].value-r[a].value)/i,n.setExtent.call(e,c+h*l,p+h*t),n.setInterval.call(e,h),(l||t)&&n.setNiceExtent.call(e,c+h,p-h)}))}}this._updateScale(t,this.model),n(i.x),n(i.y);var o={};O(i.x,function(t){Pw(i,"y",t,o)}),O(i.y,function(t){Pw(i,"x",t,o)}),this.resize(this.model,e)},Aw.prototype.resize=function(t,e,i){var n=t.getBoxLayoutParams(),i=!i&&t.get("containLabel"),a=Gp(n,{width:e.getWidth(),height:e.getHeight()}),o=(this._rect=a,this._axesList);function r(){O(o,function(t){var e,i,n=t.isHorizontal(),o=n?[0,a.width]:[0,a.height],r=t.inverse?1:0;t.setExtent(o[r],o[1-r]),o=t,e=n?a.x:a.y,r=o.getExtent(),i=r[0]+r[1],o.toGlobalCoord="x"===o.dim?function(t){return t+e}:function(t){return i-t+e},o.toLocalCoord="x"===o.dim?function(t){return t-e}:function(t){return i-t+e}})}r(),i&&(O(o,function(t){var e,i,n;t.model.get(["axisLabel","inside"])||(e=B_(t))&&(i=t.isHorizontal()?"height":"width",n=t.model.get(["axisLabel","margin"]),a[i]-=e[i]+n,"top"===t.position?a.y+=e.height+n:"left"===t.position&&(a.x+=e.width+n))}),r()),O(this._coordsList,function(t){t.calcAffineTransform()})},Aw.prototype.getAxis=function(t,e){t=this._axesMap[t];if(null!=t)return t[e||0]},Aw.prototype.getAxes=function(){return this._axesList.slice()},Aw.prototype.getCartesian=function(t,e){if(null!=t&&null!=e)return this._coordsMap["x"+t+"y"+e];R(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,n=this._coordsList;i<n.length;i++)if(n[i].getAxis("x").index===t||n[i].getAxis("y").index===e)return n[i]},Aw.prototype.getCartesians=function(){return this._coordsList.slice()},Aw.prototype.convertToPixel=function(t,e,i){e=this._findConvertTarget(e);return e.cartesian?e.cartesian.dataToPoint(i):e.axis?e.axis.toGlobalCoord(e.axis.dataToCoord(i)):null},Aw.prototype.convertFromPixel=function(t,e,i){e=this._findConvertTarget(e);return e.cartesian?e.cartesian.pointToData(i):e.axis?e.axis.coordToData(e.axis.toLocalCoord(i)):null},Aw.prototype._findConvertTarget=function(t){var e,i,n=t.seriesModel,o=t.xAxisModel||n&&n.getReferringComponents("xAxis",Hr).models[0],r=t.yAxisModel||n&&n.getReferringComponents("yAxis",Hr).models[0],t=t.gridModel,a=this._coordsList;return n?C(a,e=n.coordinateSystem)<0&&(e=null):o&&r?e=this.getCartesian(o.componentIndex,r.componentIndex):o?i=this.getAxis("x",o.componentIndex):r?i=this.getAxis("y",r.componentIndex):t&&t.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:i}},Aw.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},Aw.prototype._initCartesian=function(r,t,e){var a=this,s=this,l={left:!1,right:!1,top:!1,bottom:!1},u={x:{},y:{}},h={x:0,y:0};function i(o){return function(t,e){var i,n;Lw(t,r)&&(i=t.get("position"),"x"===o?"top"!==i&&"bottom"!==i&&(i=l.bottom?"top":"bottom"):"left"!==i&&"right"!==i&&(i=l.left?"right":"left"),l[i]=!0,n="category"===(i=new Sw(o,z_(t),[0,0],t.get("type"),i)).type,i.onBand=n&&t.get("boundaryGap"),i.inverse=t.get("inverse"),(t.axis=i).model=t,i.grid=s,i.index=e,s._axesList.push(i),u[o][e]=i,h[o]++)}}t.eachComponent("xAxis",i("x"),this),t.eachComponent("yAxis",i("y"),this),h.x&&h.y?O((this._axesMap=u).x,function(n,o){O(u.y,function(t,e){var e="x"+o+"y"+e,i=new xw(e);i.master=a,i.model=r,a._coordsMap[e]=i,a._coordsList.push(i),i.addAxis(n),i.addAxis(t)})}):(this._axesMap={},this._axesList=[])},Aw.prototype._updateScale=function(t,n){function o(e,i){O(H_(e,i.dim),function(t){i.scale.unionExtentFromData(e,t)})}O(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,i;Iw(t)&&(i=(e=Cw(t)).xAxisModel,e=e.yAxisModel,Lw(i,n))&&Lw(e,n)&&(i=this.getCartesian(i.componentIndex,e.componentIndex),e=t.getData(),t=i.getAxis("x"),i=i.getAxis("y"),o(e,t),o(e,i))},this)},Aw.prototype.getTooltipAxes=function(i){var n=[],o=[];return O(this.getCartesians(),function(t){var e=null!=i&&"auto"!==i?t.getAxis(i):t.getBaseAxis(),t=t.getOtherAxis(e);C(n,e)<0&&n.push(e),C(o,t)<0&&o.push(t)}),{baseAxes:n,otherAxes:o}},Aw.create=function(n,o){var r=[];return n.eachComponent("grid",function(t,e){var i=new Aw(t,n,o);i.name="grid_"+e,i.resize(t,o,!0),t.coordinateSystem=i,r.push(i)}),n.eachSeries(function(t){var e,i,n;Iw(t)&&(e=(i=Cw(t)).xAxisModel,i=i.yAxisModel,n=e.getCoordSysModel().coordinateSystem,t.coordinateSystem=n.getCartesian(e.componentIndex,i.componentIndex))}),r},Aw.dimensions=mw;var kw=Aw;function Aw(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=mw,this._initCartesian(t,e,i),this.model=t}function Lw(t,e){return t.getCoordSysModel()===e}function Pw(t,e,i,n){i.getAxesOnZeroOf=function(){return o?[o]:[]};var o,r=t[e],t=i.model,e=t.get(["axisLine","onZero"]),i=t.get(["axisLine","onZeroAxisIndex"]);if(e){if(null!=i)Ow(r[i])&&(o=r[i]);else for(var a in r)if(r.hasOwnProperty(a)&&Ow(r[a])&&!n[s(r[a])]){o=r[a];break}o&&(n[s(o)]=!0)}function s(t){return t.dim+"_"+t.index}}function Ow(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 Rw=Math.PI,zw=(Nw.prototype.hasBuilder=function(t){return!!Ew[t]},Nw.prototype.add=function(t){Ew[t](this.opt,this.axisModel,this.group,this._transformGroup)},Nw.prototype.getGroup=function(){return this.group},Nw.innerTextLayout=function(t,e,i){var n,e=cr(e-t),t=pr(e)?(n=0<i?"top":"bottom","center"):pr(e-Rw)?(n=0<i?"bottom":"top","center"):(n="middle",0<e&&e<Rw?0<i?"right":"left":0<i?"left":"right");return{rotation:e,textAlign:t,textVerticalAlign:n}},Nw.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},Nw.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},Nw);function Nw(t,e){this.group=new Yo,this.opt=e,this.axisModel=t,E(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});t=new Yo({x:e.position[0],y:e.position[1],rotation:e.rotation});t.updateTransform(),this._transformGroup=t}var Ew={axisLine:function(n,t,o,e){var r,a,s,l,u,h,c,i=t.get(["axisLine","show"]);(i="auto"===i&&n.handleAutoShown?n.handleAutoShown("axisLine"):i)&&(i=t.axis.getExtent(),e=e.transform,r=[i[0],0],a=[i[1],0],s=a[0]<r[0],e&&(te(r,r,e),te(a,a,e)),l=P({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),ec((i=new oh({shape:{x1:r[0],y1:r[1],x2:a[0],y2:a[1]},style:l,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1})).shape,i.style.lineWidth),i.anid="line",o.add(i),null!=(u=t.get(["axisLine","symbol"])))&&(e=t.get(["axisLine","symbolSize"]),F(u)&&(u=[u,u]),(F(e)||pt(e))&&(e=[e,e]),i=um(t.get(["axisLine","symbolOffset"])||0,e),h=e[0],c=e[1],O([{rotate:n.rotation+Math.PI/2,offset:i[0],r:0},{rotate:n.rotation-Math.PI/2,offset:i[1],r:Math.sqrt((r[0]-a[0])*(r[0]-a[0])+(r[1]-a[1])*(r[1]-a[1]))}],function(t,e){var i;"none"!==u[e]&&null!=u[e]&&(e=sm(u[e],-h/2,-c/2,h,c,l.stroke,!0),i=t.r+t.offset,e.attr({rotation:t.rotate,x:(t=s?a:r)[0]+i*Math.cos(n.rotation),y:t[1]-i*Math.sin(n.rotation),silent:!0,z2:11}),o.add(e))}))},axisTickLabel:function(t,e,i,n){var o,r,a,s,l,u=function(t,e,i,n){var o=i.axis,r=i.getModel("axisTick"),a=r.get("show");"auto"===a&&n.handleAutoShown&&(a=n.handleAutoShown("axisTick"));if(a&&!o.scale.isBlank()){for(var a=r.getModel("lineStyle"),n=n.tickDirection*r.get("length"),s=Hw(o.getTicksCoords(),e.transform,n,E(a.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),l=0;l<s.length;l++)t.add(s[l]);return s}}(i,n,e,t),h=function(f,g,y,m){var v,_,x,w,b,S,M,T,I=y.axis,t=xt(m.axisLabelShow,y.get(["axisLabel","show"]));if(t&&!I.scale.isBlank())return v=y.getModel("axisLabel"),_=v.get("margin"),x=I.getViewLabels(),t=(xt(m.labelRotate,v.get("rotate"))||0)*Rw/180,w=zw.innerTextLayout(m.rotation,t,m.labelDirection),b=y.getCategories&&y.getCategories(!0),S=[],M=zw.isLabelSilent(y),T=y.get("triggerEvent"),O(x,function(t,e){var i="ordinal"===I.scale.type?I.scale.getRawOrdinalNumber(t.tickValue):t.tickValue,n=t.formattedLabel,o=t.rawLabel,r=v,a=(r=b&&b[i]&&R(a=b[i])&&a.textStyle?new Gc(a.textStyle,v,y.ecModel):r).getTextColor()||y.get(["axisLine","lineStyle","color"]),s=I.dataToCoord(i),l=r.getShallow("align",!0)||w.textAlign,u=z(r.getShallow("alignMinLabel",!0),l),h=z(r.getShallow("alignMaxLabel",!0),l),c=r.getShallow("verticalAlign",!0)||r.getShallow("baseline",!0)||w.textVerticalAlign,p=z(r.getShallow("verticalAlignMinLabel",!0),c),d=z(r.getShallow("verticalAlignMaxLabel",!0),c),s=new Ws({x:s,y:m.labelOffset+m.labelDirection*_,rotation:w.rotation,silent:M,z2:10+(t.level||0),style:wc(r,{text:n,align:0===e?u:e===x.length-1?h:l,verticalAlign:0===e?p:e===x.length-1?d:c,fill:D(a)?a("category"===I.type?o:"value"===I.type?i+"":i,e):a})});s.anid="label_"+i,T&&((t=zw.makeAxisEventDataBase(y)).targetType="axisLabel",t.value=o,t.tickIndex=e,"category"===I.type&&(t.dataIndex=i),k(s).eventData=t),g.add(s),s.updateTransform(),S.push(s),f.add(s),s.decomposeTransform()}),S}(i,n,e,t),c=(r=h,u=u,F_((o=e).axis)||(d=o.get(["axisLabel","showMinLabel"]),o=o.get(["axisLabel","showMaxLabel"]),u=u||[],y=(r=r||[])[0],f=r[1],a=r[r.length-1],r=r[r.length-2],s=u[0],g=u[1],l=u[u.length-1],u=u[u.length-2],!1===d?(Bw(y),Bw(s)):Vw(y,f)&&(d?(Bw(f),Bw(g)):(Bw(y),Bw(s))),!1===o?(Bw(a),Bw(l)):Vw(r,a)&&(o?(Bw(r),Bw(u)):(Bw(a),Bw(l)))),i),p=n,d=e,f=t.tickDirection,g=d.axis,y=d.getModel("minorTick");if(y.get("show")&&!g.scale.isBlank()){var m=g.getMinorTicksCoords();if(m.length)for(var g=y.getModel("lineStyle"),v=f*y.get("length"),_=E(g.getLineStyle(),E(d.getModel("axisTick").getLineStyle(),{stroke:d.get(["axisLine","lineStyle","color"])})),x=0;x<m.length;x++)for(var w=Hw(m[x],p.transform,v,_,"minorticks_"+x),b=0;b<w.length;b++)c.add(w[b])}e.get(["axisLabel","hideOverlap"])&&G1(F1(B(h,function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})))},axisName:function(t,e,i,n){var o,r,a,s,l,u,h,c,p=xt(t.axisName,e.get("name"));p&&(c=e.get("nameLocation"),l=t.nameDirection,o=e.getModel("nameTextStyle"),u=e.get("nameGap")||0,r=(h=e.axis.getExtent())[0]>h[1]?-1:1,r=["start"===c?h[0]-r*u:"end"===c?h[1]+r*u:(h[0]+h[1])/2,Fw(c)?t.labelOffset+l*u:0],null!=(u=e.get("nameRotate"))&&(u=u*Rw/180),Fw(c)?a=zw.innerTextLayout(t.rotation,null!=u?u:t.rotation,l):(a=function(t,e,i,n){var o,i=cr(i-t),t=n[0]>n[1],n="start"===e&&!t||"start"!==e&&t;e=pr(i-Rw/2)?(o=n?"bottom":"top","center"):pr(i-1.5*Rw)?(o=n?"top":"bottom","center"):(o="middle",i<1.5*Rw&&Rw/2<i?n?"left":"right":n?"right":"left");return{rotation:i,textAlign:e,textVerticalAlign:o}}(t.rotation,c,u||0,h),null!=(s=t.axisNameAvailableWidth)&&(s=Math.abs(s/Math.sin(a.rotation)),isFinite(s)||(s=null))),l=o.getFont(),u=(c=e.get("nameTruncate",!0)||{}).ellipsis,h=xt(t.nameTruncateMaxWidth,c.maxWidth,s),pc({el:t=new Ws({x:r[0],y:r[1],rotation:a.rotation,silent:zw.isLabelSilent(e),style:wc(o,{text:p,font:l,overflow:"truncate",width:h,ellipsis:u,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=zw.makeAxisEventDataBase(e)).targetType="axisName",c.name=p,k(t).eventData=c),n.add(t),t.updateTransform(),i.add(t),t.decomposeTransform())}};function Bw(t){t&&(t.ignore=!0)}function Vw(t,e){var i,n=t&&t.getBoundingRect().clone(),o=e&&e.getBoundingRect().clone();if(n&&o)return Ee(i=Oe([]),i,-t.rotation),n.applyTransform(ze([],i,t.getLocalTransform())),o.applyTransform(ze([],i,e.getLocalTransform())),n.intersect(o)}function Fw(t){return"middle"===t||"center"===t}function Hw(t,e,i,n,o){for(var r=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord,u=(a[0]=u,s[a[1]=0]=u,s[1]=i,e&&(te(a,a,e),te(s,s,e)),new oh({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0}));ec(u.shape,u.style.lineWidth),u.anid=o+"_"+t[l].tickValue,r.push(u)}return r}function Gw(t,e){var h,c,o,p,d,f,r,i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return h=i,e=e,o=(c=t).getComponent("tooltip"),p=c.getComponent("axisPointer"),d=p.get("link",!0)||[],f=[],O(e.getCoordinateSystems(),function(s){var l,u,t,e,i;function n(t,e,i){var n,o,r=i.model.getModel("axisPointer",p),a=r.get("show");a&&("auto"!==a||t||Uw(r))&&(null==e&&(e=r.get("triggerTooltip")),a=(r=t?function(t,e,i,n,o,r){var a=e.getModel("axisPointer"),s={};O(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=y(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"))&&E(e,o.textStyle));return t.model.getModel("axisPointer",new Gc(s,i,n))}(i,u,p,c,t,e):r).get("snap"),t=r.get("triggerEmphasis"),n=Yw(i.model),o=e||a||"category"===i.type,e=h.axesInfo[n]={key:n,axis:i,coordSys:s,axisPointerModel:r,triggerTooltip:e,triggerEmphasis:t,involveSeries:o,snap:a,useHandle:Uw(r),seriesModels:[],linkGroup:null},l[n]=e,h.seriesInvolved=h.seriesInvolved||o,null!=(t=function(t,e){for(var i=e.model,n=e.dim,o=0;o<t.length;o++){var r=t[o]||{};if(Ww(r[n+"AxisId"],i.id)||Ww(r[n+"AxisIndex"],i.componentIndex)||Ww(r[n+"AxisName"],i.name))return o}}(d,i)))&&((a=f[t]||(f[t]={axesInfo:{}})).axesInfo[n]=e,a.mapper=d[t].mapper,e.linkGroup=a)}s.axisPointerEnabled&&(t=Yw(s.model),l=h.coordSysAxesInfo[t]={},u=(h.coordSysMap[t]=s).model.getModel("tooltip",o),O(s.getAxes(),M(n,!1,null)),s.getTooltipAxes)&&o&&u.get("show")&&(t="axis"===u.get("trigger"),e="cross"===u.get(["axisPointer","type"]),i=s.getTooltipAxes(u.get(["axisPointer","axis"])),(t||e)&&O(i.baseAxes,M(n,!e||"cross",t)),e)&&O(i.otherAxes,M(n,"cross",!1))}),i.seriesInvolved&&(r=i,t.eachSeries(function(i){var n=i.coordinateSystem,t=i.get(["tooltip","trigger"],!0),e=i.get(["tooltip","show"],!0);n&&"none"!==t&&!1!==t&&"item"!==t&&!1!==e&&!1!==i.get(["axisPointer","show"],!0)&&O(r.coordSysAxesInfo[Yw(n.model)],function(t){var e=t.axis;n.getAxis(e.dim)===e&&(t.seriesModels.push(i),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=i.getData().count())})})),i}function Ww(t,e){return"all"===t||V(t)&&0<=C(t,e)||t===e}function Xw(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Yw(t)]}function Uw(t){return!!t.get(["handle","show"])}function Yw(t){return t.type+"||"+t.id}var Zw,qw={},jw=(u(Kw,Zw=Jg),Kw.prototype.render=function(t,e,i,n){var o,r,a,s,l,u;this.axisPointerClass&&(o=Xw(o=t))&&(l=o.axisPointerModel,r=o.axis.scale,a=l.option,u=l.get("status"),null!=(s=l.get("value"))&&(s=r.parse(s)),l=Uw(l),null==u&&(a.status=l?"show":"hide"),(u=r.getExtent().slice())[0]>u[1]&&u.reverse(),(s=null==s||s>u[1]?u[1]:s)<u[0]&&(s=u[0]),a.value=s,l)&&(a.status=o.axis.scale.isBlank()?"hide":"show"),Zw.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,i,!0)},Kw.prototype.updateAxisPointer=function(t,e,i,n){this._doUpdateAxisPointerClass(t,i,!1)},Kw.prototype.remove=function(t,e){var i=this._axisPointer;i&&i.remove(e)},Kw.prototype.dispose=function(t,e){this._disposeAxisPointer(e),Zw.prototype.dispose.apply(this,arguments)},Kw.prototype._doUpdateAxisPointerClass=function(t,e,i){var n,o=Kw.getAxisPointerClass(this.axisPointerClass);o&&((n=(n=Xw(n=t))&&n.axisPointerModel)?(this._axisPointer||(this._axisPointer=new o)).render(t,n,e,i):this._disposeAxisPointer(e))},Kw.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},Kw.registerAxisPointerClass=function(t,e){qw[t]=e},Kw.getAxisPointerClass=function(t){return t&&qw[t]},Kw.type="axis",Kw);function Kw(){var t=null!==Zw&&Zw.apply(this,arguments)||this;return t.type=Kw.type,t}var $w=Er();var Qw,Jw=["axisLine","axisTickLabel","axisName"],tb=["splitArea","splitLine","minorSplitLine"],im=(u(eb,Qw=jw),eb.prototype.render=function(n,t,e,i){this.group.removeAll();var o,r,a=this._axisGroup;this._axisGroup=new Yo,this.group.add(this._axisGroup),n.get("show")&&(r=Tw(o=n.getCoordSysModel(),n),r=new zw(n,P({handleAutoShown:function(t){for(var e=o.coordinateSystem.getCartesians(),i=0;i<e.length;i++)if(Wv(e[i].getOtherAxis(n.axis).scale))return!0;return!1}},r)),O(Jw,r.add,r),this._axisGroup.add(r.getGroup()),O(tb,function(t){n.get([t,"show"])&&nb[t](this,this._axisGroup,n,o)},this),i&&"changeAxisOrder"===i.type&&i.isInitSort||sc(a,this._axisGroup,n),Qw.prototype.render.call(this,n,t,e,i))},eb.prototype.remove=function(){$w(this).splitAreaColors=null},eb.type="cartesianAxis",eb);function eb(){var t=null!==Qw&&Qw.apply(this,arguments)||this;return t.type=eb.type,t.axisPointerClass="CartesianAxisPointer",t}var ib,nb={splitLine:function(t,e,i,n){var o=i.axis;if(!o.scale.isBlank())for(var i=i.getModel("splitLine"),r=i.getModel("lineStyle"),a=V(a=r.get("color"))?a:[a],s=n.coordinateSystem.getRect(),l=o.isHorizontal(),u=0,h=o.getTicksCoords({tickModel:i}),c=[],p=[],d=r.getLineStyle(),f=0;f<h.length;f++){var g=o.toGlobalCoord(h[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),u++%a.length),y=h[f].tickValue,y=new oh({anid:null!=y?"line_"+h[f].tickValue:null,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]},style:E({stroke:a[g]},d),silent:!0});ec(y.shape,d.lineWidth),e.add(y)}},minorSplitLine:function(t,e,i,n){var o=i.axis,i=i.getModel("minorSplitLine").getModel("lineStyle"),r=n.coordinateSystem.getRect(),a=o.isHorizontal(),s=o.getMinorTicksCoords();if(s.length)for(var l=[],u=[],h=i.getLineStyle(),c=0;c<s.length;c++)for(var p=0;p<s[c].length;p++){var d=o.toGlobalCoord(s[c][p].coord),d=(a?(l[0]=d,l[1]=r.y,u[0]=d,u[1]=r.y+r.height):(l[0]=r.x,l[1]=d,u[0]=r.x+r.width,u[1]=d),new oh({anid:"minor_line_"+s[c][p].tickValue,autoBatch:!0,shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:h,silent:!0}));ec(d.shape,h.lineWidth),e.add(d)}},splitArea:function(t,e,i,n){var o=e,e=n,r=(n=i).axis;if(!r.scale.isBlank()){var n=n.getModel("splitArea"),i=n.getModel("areaStyle"),a=i.get("color"),s=e.coordinateSystem.getRect(),l=r.getTicksCoords({tickModel:n,clamp:!0});if(l.length){var u=a.length,h=$w(t).splitAreaColors,c=N(),p=0;if(h)for(var d=0;d<l.length;d++){var f=h.get(l[d].tickValue);if(null!=f){p=(f+(u-1)*d)%u;break}}for(var g=r.toGlobalCoord(l[0].coord),y=i.getAreaStyle(),a=V(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 Bs({anid:null!=m?"area_"+m:null,shape:{x:v,y:_,width:x,height:w},style:E({fill:a[p]},y),autoBatch:!0,silent:!0})),p=(p+1)%u}$w(t).splitAreaColors=c}}}},ob=(u(rb,ib=im),rb.type="xAxis",rb);function rb(){var t=null!==ib&&ib.apply(this,arguments)||this;return t.type=rb.type,t}u(lb,ab=im),lb.type="yAxis";var ab,sb=lb;function lb(){var t=null!==ab&&ab.apply(this,arguments)||this;return t.type=ob.type,t}u(cb,ub=Jg),cb.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new Bs({shape:t.coordinateSystem.getRect(),style:E({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},cb.type="grid";var ub,hb=cb;function cb(){var t=null!==ub&&ub.apply(this,arguments)||this;return t.type="grid",t}var pb={offset:0};Y_(function(t){t.registerComponentView(hb),t.registerComponentModel(sw),t.registerCoordinateSystem("cartesian2d",kw),fw(t,"x",hw,pb),fw(t,"y",hw,pb),t.registerComponentView(ob),t.registerComponentView(sb),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})});u(gb,db=g),gb.type="title",gb.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}};var db,fb=gb;function gb(){var t=null!==db&&db.apply(this,arguments)||this;return t.type=gb.type,t.layoutMode={type:"box",ignoreSize:!0},t}u(vb,yb=Jg),vb.prototype.render=function(t,e,i){var n,o,r,a,s,l,u,h,c;this.group.removeAll(),t.get("show")&&(n=this.group,u=t.getModel("textStyle"),o=t.getModel("subtextStyle"),h=t.get("textAlign"),c=z(t.get("textBaseline"),t.get("textVerticalAlign")),s=(u=new Ws({style:wc(u,{text:t.get("text"),fill:u.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),l=t.get("subtext"),o=new Ws({style:wc(o,{text:l,fill:o.getTextColor(),y:s.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),r=t.get("link"),a=t.get("sublink"),s=t.get("triggerEvent",!0),u.silent=!r&&!s,o.silent=!a&&!s,r&&u.on("click",function(){Np(r,"_"+t.get("target"))}),a&&o.on("click",function(){Np(a,"_"+t.get("subtarget"))}),k(u).eventData=k(o).eventData=s?{componentType:"title",componentIndex:t.componentIndex}:null,n.add(u),l&&n.add(o),s=n.getBoundingRect(),(l=t.getBoxLayoutParams()).width=s.width,l.height=s.height,l=Gp(l,{width:i.getWidth(),height:i.getHeight()},t.get("padding")),h||("right"===(h="middle"===(h=t.get("left")||t.get("right"))?"center":h)?l.x+=l.width:"center"===h&&(l.x+=l.width/2)),c||("bottom"===(c="center"===(c=t.get("top")||t.get("bottom"))?"middle":c)?l.y+=l.height:"middle"===c&&(l.y+=l.height/2),c=c||"top"),n.x=l.x,n.y=l.y,n.markRedraw(),u.setStyle(i={align:h,verticalAlign:c}),o.setStyle(i),s=n.getBoundingRect(),u=l.margin,(h=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),c=new Bs({shape:{x:s.x-u[3],y:s.y-u[0],width:s.width+u[1]+u[3],height:s.height+u[0]+u[2],r:t.get("borderRadius")},style:h,subPixelOptimize:!0,silent:!0}),n.add(c))},vb.type="title";var yb,mb=vb;function vb(){var t=null!==yb&&yb.apply(this,arguments)||this;return t.type=vb.type,t}Y_(function(t){t.registerComponentModel(fb),t.registerComponentView(mb)});u(wb,_b=g),wb.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{},this._updateSelector(t)},wb.prototype.mergeOption=function(t,e){_b.prototype.mergeOption.call(this,t,e),this._updateSelector(t)},wb.prototype._updateSelector=function(t){var i=t.selector,n=this.ecModel;V(i=!0===i?t.selector=["all","inverse"]:i)&&O(i,function(t,e){F(t)&&(t={type:t}),i[e]=d(t,(e=n,"all"===(t=t.type)?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0))})},wb.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,i=0;i<t.length;i++){var n=t[i].get("name");if(this.isSelected(n)){this.select(n),e=!0;break}}e||this.select(t[0].get("name"))}},wb.prototype._updateData=function(n){var o=[],r=[],t=(n.eachRawSeries(function(t){var e,i=t.name;r.push(i),t.legendVisualProvider&&(i=t.legendVisualProvider.getAllNames(),n.isSeriesFiltered(t)||(r=r.concat(i)),i.length)?o=o.concat(i):e=!0,e&&Or(t)&&o.push(t.name)}),this._availableNames=r,this.get("data")||o),e=N(),t=B(t,function(t){return(F(t)||pt(t))&&(t={name:t}),e.get(t.name)?null:(e.set(t.name,!0),new Gc(t,this,this.ecModel))},this);this._data=ut(t,function(t){return!!t})},wb.prototype.getData=function(){return this._data},wb.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&O(this._data,function(t){e[t.get("name")]=!1}),e[t]=!0},wb.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},wb.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},wb.prototype.allSelect=function(){var t=this._data,e=this.option.selected;O(t,function(t){e[t.get("name",!0)]=!0})},wb.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;O(t,function(t){t=t.get("name",!0);e.hasOwnProperty(t)||(e[t]=!0),e[t]=!e[t]})},wb.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&0<=C(this._availableNames,t)},wb.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},wb.type="legend.plain",wb.dependencies=["series"],wb.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}};var _b,xb=wb;function wb(){var t=null!==_b&&_b.apply(this,arguments)||this;return t.type=wb.type,t.layoutMode={type:"box",ignoreSize:!0},t}var bb,Sb=M,Mb=O,Tb=Yo,Ib=(u(Cb,bb=Jg),Cb.prototype.init=function(){this.group.add(this._contentGroup=new Tb),this.group.add(this._selectorGroup=new Tb),this._isFirstRender=!0},Cb.prototype.getContentGroup=function(){return this._contentGroup},Cb.prototype.getSelectorGroup=function(){return this._selectorGroup},Cb.prototype.render=function(t,e,i){var n,o,r,a,s,l=this._isFirstRender;this._isFirstRender=!1,this.resetInner(),t.get("show",!0)&&(o=t.get("align"),n=t.get("orient"),o&&"auto"!==o||(o="right"===t.get("left")&&"vertical"===n?"right":"left"),a=t.get("selector",!0),s=t.get("selectorPosition",!0),this.renderInner(o,t,e,i,a,n,s=!a||s&&"auto"!==s?s:"horizontal"===n?"end":"start"),r=Gp(e=t.getBoxLayoutParams(),n={width:i.getWidth(),height:i.getHeight()},i=t.get("padding")),r=Gp(E({width:(o=this.layoutInner(t,o,r,l,a,s)).width,height:o.height},e),n,i),this.group.x=r.x-o.x,this.group.y=r.y-o.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(l=o,s=kp((a=t).get("padding")),(e=a.getItemStyle(["color","opacity"])).fill=a.get("backgroundColor"),l=new Bs({shape:{x:l.x-s[3],y:l.y-s[0],width:l.width+s[1]+s[3],height:l.height+s[0]+s[2],r:a.get("borderRadius")},style:e,silent:!0,z2:-1}))))},Cb.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},Cb.prototype.renderInner=function(s,l,u,h,t,e,i){var c=this.getContentGroup(),p=N(),d=l.get("selectedMode"),f=[];u.eachRawSeries(function(t){t.get("legendHoverLink")||f.push(t.id)}),Mb(l.getData(),function(o,r){var e,t,i,n,a=o.get("name");this.newlineDisabled||""!==a&&"\n"!==a?(e=u.getSeriesByName(a)[0],p.get(a)||(e?(n=(i=e.getData()).getVisual("legendLineStyle")||{},t=i.getVisual("legendIcon"),i=i.getVisual("style"),(n=this._createItem(e,a,r,o,l,s,n,i,t,d,h)).on("click",Sb(Db,a,null,h,f)).on("mouseover",Sb(Ab,e.name,null,h,f)).on("mouseout",Sb(Lb,e.name,null,h,f)),u.ssr&&n.eachChild(function(t){t=k(t);t.seriesIndex=e.seriesIndex,t.dataIndex=r,t.ssrType="legend"}),p.set(a,!0)):u.eachRawSeries(function(e){var t,i,n;p.get(a)||e.legendVisualProvider&&(i=e.legendVisualProvider).containName(a)&&(n=i.indexOfName(a),t=i.getItemVisual(n,"style"),i=i.getItemVisual(n,"legendIcon"),(n=yn(t.fill))&&0===n[3]&&(n[3]=.2,t=P(P({},t),{fill:Mn(n,"rgba")})),(n=this._createItem(e,a,r,o,l,s,{},t,i,d,h)).on("click",Sb(Db,null,a,h,f)).on("mouseover",Sb(Ab,null,a,h,f)).on("mouseout",Sb(Lb,null,a,h,f)),u.ssr&&n.eachChild(function(t){t=k(t);t.seriesIndex=e.seriesIndex,t.dataIndex=r,t.ssrType="legend"}),p.set(a,!0))},this))):((i=new Tb).newline=!0,c.add(i))},this),t&&this._createSelector(t,l,h,e,i)},Cb.prototype._createSelector=function(t,n,o,e,i){var r=this.getSelectorGroup();Mb(t,function(t){var e=t.type,i=new Ws({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){o.dispatchAction({type:"all"===e?"legendAllSelect":"legendInverseSelect"})}});r.add(i),_c(i,{normal:n.getModel("selectorLabel"),emphasis:n.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),Wl(i)})},Cb.prototype._createItem=function(t,e,i,n,o,r,a,s,l,u,h){var c=t.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),f=o.isSelected(e),g=n.get("symbolRotate"),y=n.get("symbolKeepAspect"),m=n.get("icon"),a=function(t,e,i,n,o,r,a){function s(i,n){"auto"===i.lineWidth&&(i.lineWidth=0<n.lineWidth?2:0),Mb(i,function(t,e){"inherit"===i[e]&&(i[e]=n[e])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),t=0===t.lastIndexOf("empty",0)?"fill":"stroke",l=l.getShallow("decal");u.decal=l&&"inherit"!==l?Bm(l,a):n.decal,"inherit"===u.fill&&(u.fill=n[o]);"inherit"===u.stroke&&(u.stroke=n[t]);"inherit"===u.opacity&&(u.opacity=("fill"===o?n:i).opacity);s(u,n);l=e.getModel("lineStyle"),a=l.getLineStyle();s(a,i),"auto"===u.fill&&(u.fill=n.fill),"auto"===u.stroke&&(u.stroke=n.fill),"auto"===a.stroke&&(a.stroke=n.fill),r||(o=e.get("inactiveBorderWidth"),i=u[t],u.lineWidth="auto"===o?0<n.lineWidth&&i?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),a.stroke=l.get("inactiveColor"),a.lineWidth=l.get("inactiveWidth"));return{itemStyle:u,lineStyle:a}}(l=m||l||"roundRect",n,a,s,c,f,h),s=new Tb,c=n.getModel("textStyle"),m=(!D(t.getLegendIcon)||m&&"inherit"!==m?(h="inherit"===m&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0,s.add(function(t){var e=t.icon||"roundRect",i=sm(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);i.setStyle(t.itemStyle),i.rotation=(t.iconRotate||0)*Math.PI/180,i.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<e.indexOf("empty")&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2);return i}({itemWidth:p,itemHeight:d,icon:l,iconRotate:h,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:y}))):s.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:l,iconRotate:g,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:y})),"left"===r?p+5:-5),h=r,t=o.get("formatter"),l=e,g=(F(t)&&t?l=t.replace("{name}",null!=e?e:""):D(t)&&(l=t(e)),f?c.getTextColor():n.get("inactiveColor")),a=(s.add(new Ws({style:wc(c,{text:l,x:m,y:d/2,fill:g,align:h,verticalAlign:"middle"},{inheritColor:g})})),new Bs({shape:s.getBoundingRect(),style:{fill:"transparent"}})),y=n.getModel("tooltip");return y.get("show")&&pc({el:a,componentModel:o,itemName:e,itemTooltipOption:y.option}),s.add(a),s.eachChild(function(t){t.silent=!0}),a.silent=!u,this.getContentGroup().add(s),Wl(s),s.__legendDataIndex=i,s},Cb.prototype.layoutInner=function(t,e,i,n,o,r){var a,s,l,u,h,c=this.getContentGroup(),p=this.getSelectorGroup(),i=(Hp(t.get("orient"),c,t.get("itemGap"),i.width,i.height),c.getBoundingRect()),d=[-i.x,-i.y];return p.markRedraw(),c.markRedraw(),o?(Hp("horizontal",p,t.get("selectorItemGap",!0)),a=[-(o=p.getBoundingRect()).x,-o.y],s=t.get("selectorButtonGap",!0),l=0===(t=t.getOrient().index)?"width":"height",u=0===t?"height":"width",h=0===t?"y":"x","end"===r?a[t]+=i[l]+s:d[t]+=o[l]+s,a[1-t]+=i[u]/2-o[u]/2,p.x=a[0],p.y=a[1],c.x=d[0],c.y=d[1],(r={x:0,y:0})[l]=i[l]+s+o[l],r[u]=Math.max(i[u],o[u]),r[h]=Math.min(0,o[h]+a[1-t]),r):(c.x=d[0],c.y=d[1],this.group.getBoundingRect())},Cb.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},Cb.type="legend.plain",Cb);function Cb(){var t=null!==bb&&bb.apply(this,arguments)||this;return t.type=Cb.type,t.newlineDisabled=!1,t}function Db(t,e,i,n){Lb(t,e,i,n),i.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),Ab(t,e,i,n)}function kb(t){for(var e,i=t.getZr().storage.getDisplayList(),n=0,o=i.length;n<o&&!(e=i[n].states.emphasis);)n++;return e&&e.hoverLayer}function Ab(t,e,i,n){kb(i)||i.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function Lb(t,e,i,n){kb(i)||i.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function Pb(t){var i=t.findComponents({mainType:"legend"});i&&i.length&&t.filterSeries(function(t){for(var e=0;e<i.length;e++)if(!i[e].isSelected(t.name))return!1;return!0})}function Ob(t,e,i){var n,o={},r="toggleSelected"===t;return i.eachComponent("legend",function(i){r&&null!=n?i[n?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?i[t]():(i[t](e.name),n=i.isSelected(e.name)),O(i.getData(),function(t){var e,t=t.get("name");"\n"!==t&&""!==t&&(e=i.isSelected(t),o.hasOwnProperty(t)?o[t]=o[t]&&e:o[t]=e)})}),"allSelect"===t||"inverseSelect"===t?{selected:o}:{name:e.name,selected:o}}function Rb(t){t.registerComponentModel(xb),t.registerComponentView(Ib),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,Pb),t.registerSubTypeDefaulter("legend",function(){return"plain"}),(t=t).registerAction("legendToggleSelect","legendselectchanged",M(Ob,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",M(Ob,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",M(Ob,"inverseSelect")),t.registerAction("legendSelect","legendselected",M(Ob,"select")),t.registerAction("legendUnSelect","legendunselected",M(Ob,"unSelect"))}u(Eb,zb=xb),Eb.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},Eb.prototype.init=function(t,e,i){var n=Up(t);zb.prototype.init.call(this,t,e,i),Bb(this,t,n)},Eb.prototype.mergeOption=function(t,e){zb.prototype.mergeOption.call(this,t,e),Bb(this,this.option,t)},Eb.type="legend.scroll",Eb.defaultOption=Yc(xb.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800});var zb,Nb=Eb;function Eb(){var t=null!==zb&&zb.apply(this,arguments)||this;return t.type=Eb.type,t}function Bb(t,e,i){var n=[1,1];n[t.getOrient().index]=0,Xp(e,i,{type:"box",ignoreSize:!!n})}var Vb,Fb=Yo,Hb=["width","height"],Gb=["x","y"],Wb=(u(Xb,Vb=Ib),Xb.prototype.init=function(){Vb.prototype.init.call(this),this.group.add(this._containerGroup=new Fb),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Fb)},Xb.prototype.resetInner=function(){Vb.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},Xb.prototype.renderInner=function(t,n,e,o,i,r,a){var s=this,l=(Vb.prototype.renderInner.call(this,t,n,e,o,i,r,a),this._controllerGroup),t=n.get("pageIconSize",!0),u=V(t)?t:[t,t],e=(h("pagePrev",0),n.getModel("pageTextStyle"));function h(t,e){var i=t+"DataIndex",e=hc(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:S(s._pageGo,s,i,n,o)},{x:-u[0]/2,y:-u[1]/2,width:u[0],height:u[1]});e.name=t,l.add(e)}l.add(new Ws({name:"pageText",style:{text:"xx/xx",fill:e.getTextColor(),font:e.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),h("pageNext",1)},Xb.prototype.layoutInner=function(t,e,i,n,o,r){var a=this.getSelectorGroup(),s=t.getOrient().index,l=Hb[s],u=Gb[s],h=Hb[1-s],c=Gb[1-s],p=(o&&Hp("horizontal",a,t.get("selectorItemGap",!0)),t.get("selectorButtonGap",!0)),d=a.getBoundingRect(),f=[-d.x,-d.y],g=y(i),i=(o&&(g[l]=i[l]-d[l]-p),this._layoutContentAndController(t,n,g,s,l,h,c,u));return o&&("end"===r?f[s]+=i[l]+p:(t=d[l]+p,f[s]-=t,i[u]-=t),i[l]+=d[l]+p,f[1-s]+=i[c]+i[h]/2-d[h]/2,i[h]=Math.max(i[h],d[h]),i[c]=Math.min(i[c],d[c]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()),i},Xb.prototype._layoutContentAndController=function(t,e,i,n,o,r,a,s){var l=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup,c=(Hp(t.get("orient"),l,t.get("itemGap"),n?i.width:null,n?null:i.height),Hp("horizontal",h,t.get("pageButtonItemGap",!0)),l.getBoundingRect()),p=h.getBoundingRect(),d=this._showController=c[o]>i[o],f=[-c.x,-c.y],e=(e||(f[n]=l[s]),[0,0]),s=[-p.x,-p.y],g=z(t.get("pageButtonGap",!0),t.get("itemGap",!0)),f=(d&&("end"===t.get("pageButtonPosition",!0)?s[n]+=i[o]-p[o]:e[n]+=p[o]+g),s[1-n]+=c[r]/2-p[r]/2,l.setPosition(f),u.setPosition(e),h.setPosition(s),{x:0,y:0}),c=(f[o]=(d?i:c)[o],f[r]=Math.max(c[r],p[r]),f[a]=Math.min(0,p[a]+s[1-n]),u.__rectSize=i[o],d?((e={x:0,y:0})[o]=Math.max(i[o]-p[o]-g,0),e[r]=f[r],u.setClipPath(new Bs({shape:e})),u.__rectSize=e[o]):h.eachChild(function(t){t.attr({invisible:!0,silent:!0})}),this._getPageInfo(t));return null!=c.pageIndex&&Eh(l,{x:c.contentPosition[0],y:c.contentPosition[1]},d?t:null),this._updatePageInfoView(t,c),f},Xb.prototype._pageGo=function(t,e,i){t=this._getPageInfo(e)[t];null!=t&&i.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},Xb.prototype._updatePageInfoView=function(i,n){var o=this._controllerGroup,t=(O(["pagePrev","pageNext"],function(t){var e=null!=n[t+"DataIndex"],t=o.childOfName(t);t&&(t.setStyle("fill",e?i.get("pageIconColor",!0):i.get("pageIconInactiveColor",!0)),t.cursor=e?"pointer":"default")}),o.childOfName("pageText")),e=i.get("pageFormatter"),r=n.pageIndex,r=null!=r?r+1:0,a=n.pageCount;t&&e&&t.setStyle("text",F(e)?e.replace("{current}",null==r?"":r+"").replace("{total}",null==a?"":a+""):e({current:r,total:a}))},Xb.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),i=this.getContentGroup(),n=this._containerGroup.__rectSize,t=t.getOrient().index,o=Hb[t],r=Gb[t],e=this._findTargetItemIndex(e),a=i.children(),s=a[e],l=a.length,u=l?1:0,h={contentPosition:[i.x,i.y],pageCount:u,pageIndex:u-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(s){i=g(s);h.contentPosition[t]=-i.s;for(var c=e+1,p=i,d=i,f=null;c<=l;++c)(!(f=g(a[c]))&&d.e>p.s+n||f&&!y(f,p.s))&&(p=d.i>p.i?d:f)&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=p.i),++h.pageCount),d=f;for(c=e-1,p=i,d=i,f=null;-1<=c;--c)(f=g(a[c]))&&y(d,f.s)||!(p.i<d.i)||(d=p,null==h.pagePrevDataIndex&&(h.pagePrevDataIndex=p.i),++h.pageCount,++h.pageIndex),p=f}return h;function g(t){var e,i;if(t)return{s:i=(e=t.getBoundingRect())[r]+t[r],e:i+e[o],i:t.__legendDataIndex}}function y(t,e){return t.e>=e&&t.s<=e+n}},Xb.prototype._findTargetItemIndex=function(i){var n,o;return this._showController?(this.getContentGroup().eachChild(function(t,e){t=t.__legendDataIndex;null==o&&null!=t&&(o=e),t===i&&(n=e)}),null!=n?n:o):0},Xb.type="legend.scroll",Xb);function Xb(){var t=null!==Vb&&Vb.apply(this,arguments)||this;return t.type=Xb.type,t.newlineDisabled=!0,t._currentIndex=0,t}Y_(function(t){Y_(Rb),t.registerComponentModel(Nb),t.registerComponentView(Wb),t.registerAction("legendScroll","legendscroll",function(t,e){var i=t.scrollDataIndex;null!=i&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(i)})})});var Ub=Er(),Yb=y,Zb=S;function qb(){this._dragging=!1,this.animationThreshold=15}function jb(t,e,i,n){!function i(n,t){{var o;return R(n)&&R(t)?(o=!0,O(t,function(t,e){o=o&&i(n[e],t)}),!!o):n===t}}(Ub(i).lastProp,n)&&(Ub(i).lastProp=n,e?Eh(i,n,t):(i.stopAnimation(),i.attr(n)))}function Kb(t,e){t[e.get(["label","show"])?"show":"hide"]()}function $b(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Qb(t,e,i){var n=e.get("z"),o=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=o&&(t.zlevel=o),t.silent=i)})}function Jb(t,e,i,n,o){var r=tS(i.get("value"),e.axis,e.ecModel,i.get("seriesDataIndices"),{precision:i.get(["label","precision"]),formatter:i.get(["label","formatter"])}),i=i.getModel("label"),a=kp(i.get("padding")||0),s=i.getFont(),l=Do(r,s),u=o.position,h=l.width+a[1]+a[3],l=l.height+a[0]+a[2],c=o.align,c=("right"===c&&(u[0]-=h),"center"===c&&(u[0]-=h/2),o.verticalAlign),n=("bottom"===c&&(u[1]-=l),"middle"===c&&(u[1]-=l/2),o=u,c=h,h=l,n=(l=n).getWidth(),l=l.getHeight(),o[0]=Math.min(o[0]+c,n)-c,o[1]=Math.min(o[1]+h,l)-h,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0),i.get("backgroundColor"));n&&"auto"!==n||(n=e.get(["axisLine","lineStyle","color"])),t.label={x:u[0],y:u[1],style:wc(i,{text:r,font:s,fill:i.getTextColor(),padding:a,backgroundColor:n}),z2:10}}function tS(t,e,i,n,o){t=e.scale.parse(t);var r,a=e.scale.getLabel({value:t},{precision:o.precision}),o=o.formatter;return o&&(r={value:E_(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},O(n,function(t){var e=i.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&r.seriesData.push(e)}),F(o)?a=o.replace("{value}",a):D(o)&&(a=o(r))),a}function eS(t,e,i){var n=Pe();return Ee(n,n,i.rotation),Ne(n,n,i.position),oc([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}qb.prototype.render=function(t,e,i,n){var o,r,a=e.get("value"),s=e.get("status");this._axisModel=t,this._axisPointerModel=e,this._api=i,!n&&this._lastValue===a&&this._lastStatus===s||(this._lastValue=a,this._lastStatus=s,n=this._group,o=this._handle,s&&"hide"!==s?(n&&n.show(),o&&o.show(),this.makeElOption(s={},a,t,e,i),(r=s.graphicKey)!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=r,r=this._moveAnimation=this.determineAnimation(t,e),n?(r=M(jb,e,r),this.updatePointerEl(n,s,r),this.updateLabelEl(n,s,r,e)):(n=this._group=new Yo,this.createPointerEl(n,s,t,e),this.createLabelEl(n,s,t,e),i.getZr().add(n)),Qb(n,e,!0),this._renderHandle(a)):(n&&n.hide(),o&&o.hide()))},qb.prototype.remove=function(t){this.clear(t)},qb.prototype.dispose=function(t){this.clear(t)},qb.prototype.determineAnimation=function(t,e){var i,n=e.get("animation"),o=t.axis,r="category"===o.type,e=e.get("snap");return!(!e&&!r)&&("auto"===n||null==n?(i=this.animationThreshold,r&&o.getBandWidth()>i||!!e&&(r=Xw(t).seriesDataCount,e=o.getExtent(),Math.abs(e[0]-e[1])/r>i)):!0===n)},qb.prototype.makeElOption=function(t,e,i,n,o){},qb.prototype.createPointerEl=function(t,e,i,n){var o=e.pointer;o&&(o=Ub(t).pointerEl=new gc[o.type](Yb(e.pointer)),t.add(o))},qb.prototype.createLabelEl=function(t,e,i,n){e.label&&(e=Ub(t).labelEl=new Ws(Yb(e.label)),t.add(e),Kb(e,n))},qb.prototype.updatePointerEl=function(t,e,i){t=Ub(t).pointerEl;t&&e.pointer&&(t.setStyle(e.pointer.style),i(t,{shape:e.pointer.shape}))},qb.prototype.updateLabelEl=function(t,e,i,n){t=Ub(t).labelEl;t&&(t.setStyle(e.label.style),i(t,{x:e.label.x,y:e.label.y}),Kb(t,n))},qb.prototype._renderHandle=function(t){var e,i,n,o,r,a;!this._dragging&&this.updateHandleTransform&&(e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,o=e.getModel("handle"),a=e.get("status"),o.get("show")&&a&&"hide"!==a?(this._handle||(r=!0,n=this._handle=hc(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Ie(t.event)},onmousedown:Zb(this._onHandleDragMove,this,0,0),drift:Zb(this._onHandleDragMove,this),ondragend:Zb(this._onHandleDragEnd,this)}),i.add(n)),Qb(n,e,!1),n.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),V(a=o.get("size"))||(a=[a,a]),n.scaleX=a[0]/2,n.scaleY=a[1]/2,gy(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,r)):(n&&i.remove(n),this._handle=null))},qb.prototype._moveHandleToValue=function(t,e){jb(this._axisPointerModel,!e&&this._moveAnimation,this._handle,$b(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},qb.prototype._onHandleDragMove=function(t,e){var i=this._handle;i&&(this._dragging=!0,t=this.updateHandleTransform($b(i),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,i.stopAnimation(),i.attr($b(t)),Ub(i).lastProp=null,this._doDispatchAxisPointer())},qb.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}]}))},qb.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},qb.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var t=t.getZr(),e=this._group,i=this._handle;t&&e&&(this._lastGraphicKey=null,e&&t.remove(e),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),yy(this,"_doDispatchAxisPointer")},qb.prototype.doClear=function(){},qb.prototype.buildLabel=function(t,e,i){return{x:t[i=i||0],y:t[1-i],width:e[i],height:e[1-i]}};u(oS,iS=qb),oS.prototype.makeElOption=function(t,e,i,n,o){var r,a,s=i.axis,l=s.grid,u=n.get("type"),h=rS(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(e,!0)),p=(u&&"none"!==u&&(r=(a=n).get("type"),a=a.getModel(r+"Style"),"line"===r?(p=a.getLineStyle()).fill=null:"shadow"===r&&((p=a.getAreaStyle()).stroke=null),r=p,(a=aS[u](s,c,h)).style=r,t.graphicKey=a.type,t.pointer=a),Tw(l.model,i));u=e,s=t,c=p,h=i,r=n,a=o,l=zw.innerTextLayout(c.rotation,0,c.labelDirection),c.labelMargin=r.get(["label","margin"]),Jb(s,h,r,a,{position:eS(h.axis,u,c),align:l.textAlign,verticalAlign:l.textVerticalAlign})},oS.prototype.getHandleTransform=function(t,e,i){var n=Tw(e.axis.grid.model,e,{labelInside:!1}),i=(n.labelMargin=i.get(["handle","margin"]),eS(e.axis,t,n));return{x:i[0],y:i[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},oS.prototype.updateHandleTransform=function(t,e,i,n){var i=i.axis,o=i.grid,r=i.getGlobalExtent(!0),o=rS(o,i).getOtherAxis(i).getGlobalExtent(),i="x"===i.dim?0:1,a=[t.x,t.y],e=(a[i]+=e[i],a[i]=Math.min(r[1],a[i]),a[i]=Math.max(r[0],a[i]),(o[1]+o[0])/2),r=[e,e];r[i]=a[i];return{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:r,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][i]}};var iS,nS=oS;function oS(){return null!==iS&&iS.apply(this,arguments)||this}function rS(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}var aS={line:function(t,e,i){var n;return n=[e,i[0]],e=[e,i[1]],i=sS(t),{type:"Line",subPixelOptimize:!0,shape:{x1:n[i=i||0],y1:n[1-i],x2:e[i],y2:e[1-i]}}},shadow:function(t,e,i){var n=Math.max(1,t.getBandWidth()),o=i[1]-i[0];return{type:"Rect",shape:(e=[e-n/2,i[0]],i=[n,o],n=sS(t),{x:e[n=n||0],y:e[1-n],width:i[n],height:i[1-n]})}}};function sS(t){return"x"===t.dim?0:1}u(hS,lS=g),hS.type="axisPointer",hS.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!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 lS,uS=hS;function hS(){var t=null!==lS&&lS.apply(this,arguments)||this;return t.type=hS.type,t}var cS=Er(),pS=O;function dS(t,e,i){var n,c,p;function o(t,h){c.on(t,function(e){i=p;var i,n,o={dispatchAction:r,pendings:n={showTip:[],hideTip:[]}};function r(t){var e=n[t.type];e?e.push(t):(t.dispatchAction=r,i.dispatchAction(t))}pS(cS(c).records,function(t){t&&h(t,e,o.dispatchAction)});var t,a=o.pendings,s=p,l=a.showTip.length,u=a.hideTip.length;l?t=a.showTip[l-1]:u&&(t=a.hideTip[u-1]),t&&(t.dispatchAction=null,s.dispatchAction(t))})}b.node||(n=e.getZr(),cS(n).records||(cS(n).records={}),p=e,cS(c=n).initialized||(cS(c).initialized=!0,o("click",M(gS,"click")),o("mousemove",M(gS,"mousemove")),o("globalout",fS)),(cS(n).records[t]||(cS(n).records[t]={})).handler=i)}function fS(t,e,i){t.handler("leave",null,i)}function gS(t,e,i,n){e.handler(t,i,n)}function yS(t,e){b.node||(e=e.getZr(),(cS(e).records||{})[t]&&(cS(e).records[t]=null))}u(_S,mS=Jg),_S.prototype.render=function(t,e,i){var e=e.getComponent("tooltip"),n=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";dS("axisPointer",i,function(t,e,i){"none"!==n&&("leave"===t||0<=n.indexOf(t))&&i({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},_S.prototype.remove=function(t,e){yS("axisPointer",e)},_S.prototype.dispose=function(t,e){yS("axisPointer",e)},_S.type="axisPointer";var mS,vS=_S;function _S(){var t=null!==mS&&mS.apply(this,arguments)||this;return t.type=_S.type,t}function xS(t,e){var i,n,o,r,a=[],s=t.seriesIndex;return null==s||!(e=e.getSeriesByIndex(s))||null==(s=Nr(i=e.getData(),t))||s<0||V(s)?{point:[]}:(n=i.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=i.mapDimension(e),(r=[])[t]=i.get(e,s),r[1-t]=i.get(i.getCalculationInfo("stackResultDimension"),s),o.dataToPoint(r)||[]):o.dataToPoint(i.getValues(B(o.dimensions,function(t){return i.mapDimension(t)}),s))||[]:n&&((e=n.getBoundingRect().clone()).applyTransform(n.transform),a=[e.x+e.width/2,e.y+e.height/2]),{point:a,el:n})}var wS=Er();function bS(t,e,i){var r,a,n,s,l,o,u,h,c,p,d,f,g,y,m=t.currTrigger,v=[t.x,t.y],_=t,x=t.dispatchAction||S(i.dispatchAction,i),w=e.getComponent("axisPointer").coordSysAxesInfo;if(w)return CS(v)&&(v=xS({seriesIndex:_.seriesIndex,dataIndex:_.dataIndex},e).point),r=CS(v),a=_.axesInfo,n=w.axesInfo,s="leave"===m||CS(v),l={},e={list:[],map:{}},u={showPointer:M(MS,o={}),showTooltip:M(TS,e)},O(w.coordSysMap,function(t,e){var o=r||t.containPoint(v);O(w.coordSysAxesInfo[e],function(t,e){var i=t.axis,n=function(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}(a,t);s||!o||a&&!n||null!=(n=null!=(n=n&&n.value)||r?n:i.pointToData(v))&&SS(t,n,u,!1,l)})}),h={},O(n,function(i,t){var n=i.linkGroup;n&&!o[t]&&O(n.axesInfo,function(t,e){var e=o[e];t!==i&&e&&(e=e.value,n.mapper&&(e=i.axis.scale.parse(n.mapper(e,IS(t),IS(i)))),h[i.key]=e)})}),O(h,function(t,e){SS(n[e],t,u,!0,l)}),c=o,_=n,p=l.axesInfo=[],O(_,function(t,e){var i=t.axisPointerModel.option,e=c[e];e?(t.useHandle||(i.status="show"),i.value=e.value,i.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(i.status="hide"),"show"===i.status&&p.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})}),m=e,_=t,e=x,CS(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=n,_=(t=i).getZr(),x="axisPointerLastHighlights",d=wS(_)[x]||{},f=wS(_)[x]={},O(e,function(t,e){var i=t.axisPointerModel.option;"show"===i.status&&t.triggerEmphasis&&O(i.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;f[e]=t})}),g=[],y=[],O(d,function(t,e){f[e]||y.push(t)}),O(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 SS(t,e,i,n,o){var r,a,s,l,u,h,c,p,d,f,g=t.axis;!g.scale.isBlank()&&g.containData(e)&&(t.involveSeries?(a=e,s=t.axis,l=s.dim,u=a,h=[],c=Number.MAX_VALUE,p=-1,O(t.seriesModels,function(e,t){var i,n=e.getData().mapDimensionsAll(l);if(e.getAxisTooltipData)var o=e.getAxisTooltipData(n,a,s),r=o.dataIndices,o=o.nestestValue;else{if(!(r=e.getData().indicesOfNearest(n[0],a,"category"===s.type?.5:null)).length)return;o=e.getData().get(n[0],r[0])}null!=o&&isFinite(o)&&(n=a-o,(i=Math.abs(n))<=c)&&((i<c||0<=n&&p<0)&&(c=i,p=n,u=o,h.length=0),O(r,function(t){h.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}),f=(r={payloadBatch:h,snapToValue:u}).snapToValue,(d=r.payloadBatch)[0]&&null==o.seriesIndex&&P(o,d[0]),!n&&t.snap&&g.containData(f)&&null!=f&&(e=f),i.showPointer(t,e,d),i.showTooltip(t,r,f)):i.showPointer(t,e))}function MS(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function TS(t,e,i,n){var o,r,i=i.payloadBatch,a=e.axis,s=a.model,l=e.axisPointerModel;e.triggerTooltip&&i.length&&(o=Yw(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:n,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:i.slice()}))}function IS(t){var e=t.axis.model,i={},t=i.axisDim=t.axis.dim;return i.axisIndex=i[t+"AxisIndex"]=e.componentIndex,i.axisName=i[t+"AxisName"]=e.name,i.axisId=i[t+"AxisId"]=e.id,i}function CS(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function DS(t){jw.registerAxisPointerClass("CartesianAxisPointer",nS),t.registerComponentModel(uS),t.registerComponentView(vS),t.registerPreprocessor(function(t){var e;t&&(t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={}),e=t.axisPointer.link)&&!V(e)&&(t.axisPointer.link=[e])}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Gw(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},bS)}u(LS,kS=g),LS.type="tooltip",LS.dependencies=["axisPointer"],LS.defaultOption={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 kS,AS=LS;function LS(){var t=null!==kS&&kS.apply(this,arguments)||this;return t.type=LS.type,t}function PS(t){var e=t.get("confine");return null!=e?e:"richText"===t.get("renderMode")}function OS(t){if(b.domSupported)for(var e=document.documentElement.style,i=0,n=t.length;i<n;i++)if(t[i]in e)return t[i]}var RS=OS(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function zS(t,e){if(!t)return e;e=Dp(e,!0);var i=t.indexOf(e);return(t=-1===i?e:"-"+t.slice(0,i)+"-"+e).toLowerCase()}var NS=zS(OS(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),ES=zS(RS,"transform"),BS="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(b.transform3dSupported?"will-change:transform;":"");function VS(t,e,i){var n,t=t.toFixed(0)+"px",e=e.toFixed(0)+"px";return b.transformSupported?(n="translate"+((n=b.transform3dSupported)?"3d":"")+"("+t+","+e+(n?",0":"")+")",i?"top:0;left:0;"+ES+":"+n+";":[["top",0],["left",0],[RS,n]]):i?"top:"+e+";left:"+t+";":[["top",e],["left",t]]}function FS(n,t,e){var i,o,r=[],a=n.get("transitionDuration"),s=n.get("backgroundColor"),l=n.get("shadowBlur"),u=n.get("shadowColor"),h=n.get("shadowOffsetX"),c=n.get("shadowOffsetY"),p=n.getModel("textStyle"),d=Bg(n,"html");return r.push("box-shadow:"+(h+"px "+c+"px "+l+"px "+u)),t&&a&&r.push((u="opacity"+(l=" "+(h=a)/2+"s "+(c="cubic-bezier(0.23,1,0.32,1)"))+",visibility"+l,e||(l=" "+h+"s "+c,u+=b.transformSupported?","+ES+l:",left"+l+",top"+l),NS+":"+u)),s&&r.push("background-color:"+s),O(["width","color","radius"],function(t){var e="border-"+t,i=Dp(e),i=n.get(i);null!=i&&r.push(e+":"+i+("color"===t?"":"px"))}),r.push((o=[],t=(i=p).get("fontSize"),(a=i.getTextColor())&&o.push("color:"+a),o.push("font:"+i.getFont()),t&&o.push("line-height:"+Math.round(3*t/2)+"px"),a=i.get("textShadowColor"),t=i.get("textShadowBlur")||0,e=i.get("textShadowOffsetX")||0,h=i.get("textShadowOffsetY")||0,a&&t&&o.push("text-shadow:"+e+"px "+h+"px "+t+"px "+a),O(["decoration","align"],function(t){var e=i.get(t);e&&o.push("text-"+t+":"+e)}),o.join(";"))),null!=d&&r.push("padding:"+kp(d).join("px ")+"px"),r.join(";")+";"}function HS(t,e,i,n,o){var r,a,s=e&&e.painter;i?(r=s&&s.getViewportRoot())&&(a=t,i=i,fe(de,r,n,o,!0))&&fe(a,i,de[0],de[1]):(t[0]=n,t[1]=o,(r=s&&s.getViewportRootOffset())&&(t[0]+=r.offsetLeft,t[1]+=r.offsetTop)),t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}WS.prototype.update=function(t){this._container||(n=this._api.getDom(),i="position",i=(e=(e=n).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e))?i?e[i]:e:null,"absolute"!==(e=n.style).position&&"absolute"!==i&&(e.position="relative"));var e,i,n=t.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n,this.el.className=t.get("className")||""},WS.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,o=this._styleCoord;i.innerHTML?n.cssText=BS+FS(t,!this._firstShow,this._longHide)+VS(o[0],o[1],!0)+"border-color:"+zp(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},WS.prototype.setContent=function(t,e,i,n,o){var r=this.el;if(null==t)r.innerHTML="";else{var a,s,l,u,h,c="";if(F(o)&&"item"===i.get("trigger")&&!PS(i)&&(i=i,n=n,c=F(o=o)&&"inside"!==o?(a=i.get("backgroundColor"),i=i.get("borderWidth"),n=zp(n),o=o="left"===(o=o)?"right":"right"===o?"left":"top"===o?"bottom":"top",p=Math.max(1.5*Math.round(i),6),s="",l=ES+":",-1<C(["left","right"],o)?(s+="top:50%",l+="translateY(-50%) rotate("+(h="left"==o?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(h="top"==o?225:45)+"deg)"),h=h*Math.PI/180,h=(u=p+i)*Math.abs(Math.cos(h))+u*Math.abs(Math.sin(h)),n=n+" solid "+i+"px;",'<div style="'+["position:absolute;width:"+p+"px;height:"+p+"px;z-index:-1;",(s+=";"+o+":-"+Math.round(100*((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-u)/2))/100+"px")+";"+l+";","border-bottom:"+n,"border-right:"+n,"background-color:"+a+";"].join("")+'"></div>'):""),F(t))r.innerHTML=t+c;else if(t){r.innerHTML="",V(t)||(t=[t]);for(var p,d=0;d<t.length;d++)gt(t[d])&&t[d].parentNode!==r&&r.appendChild(t[d]);c&&r.childNodes.length&&((p=document.createElement("div")).innerHTML=c,r.appendChild(p))}}},WS.prototype.setEnterable=function(t){this._enterable=t},WS.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},WS.prototype.moveTo=function(t,e){var i,n=this._styleCoord;HS(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]&&(i=this.el.style,O(VS(n[0],n[1]),function(t){i[t[0]]=t[1]}))},WS.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},WS.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)},WS.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(S(this.hide,this),t)):this.hide())},WS.prototype.isShow=function(){return this._show},WS.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null};var GS=WS;function WS(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,b.wxa)return null;var i=document.createElement("div"),n=(i.domBelongToZr=!0,this.el=i,this._zr=t.getZr()),e=e.appendTo,e=e&&(F(e)?document.querySelector(e):gt(e)?e:D(e)&&e(t.getDom())),o=(HS(this._styleCoord,n,e,t.getWidth()/2,t.getHeight()/2),(e||t.getDom()).appendChild(i),this._api=t,this._container=e,this);i.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},i.onmousemove=function(t){var e;t=t||window.event,o._enterable||(e=n.handler,Te(n.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t))},i.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}US.prototype.update=function(t){t=t.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},US.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},US.prototype.setContent=function(t,e,i,n,o){var r=this,a=(R(t)&&f(""),this.el&&this._zr.remove(this.el),i.getModel("textStyle")),s=(this.el=new Ws({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:a.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Bg(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),O(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){r.el.style[t]=i.get(t)}),O(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){r.el.style[t]=a.get(t)||0}),this._zr.add(this.el),this);this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},US.prototype.setEnterable=function(t){this._enterable=t},US.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),t=ZS(t.style);return[e.width+t.left+t.right,e.height+t.top+t.bottom]},US.prototype.moveTo=function(t,e){var i,n,o=this.el;o&&(qS(n=this._styleCoord,this._zr,t,e),t=n[0],e=n[1],i=YS((n=o.style).borderWidth||0),n=ZS(n),o.x=t+i+n.left,o.y=e+i+n.top,o.markRedraw())},US.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},US.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},US.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(S(this.hide,this),t)):this.hide())},US.prototype.isShow=function(){return this._show},US.prototype.dispose=function(){this._zr.remove(this.el)};var XS=US;function US(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),qS(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}function YS(t){return Math.max(0,t)}function ZS(t){var e=YS(t.shadowBlur||0),i=YS(t.shadowOffsetX||0),t=YS(t.shadowOffsetY||0);return{left:YS(e-i),right:YS(e+i),top:YS(e-t),bottom:YS(e+t)}}function qS(t,e,i,n){t[0]=i,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var jS,KS=new Bs({shape:{x:-1,y:-1,width:2,height:2}}),$S=(u(QS,jS=Jg),QS.prototype.init=function(t,e){var i;!b.node&&e.getDom()&&(t=t.getComponent("tooltip"),i=this._renderMode="auto"===(i=t.get("renderMode"))?b.domSupported?"html":"richText":i||"html",this._tooltipContent="richText"===i?new XS(e):new GS(e,{appendTo:t.get("appendToBody",!0)?"body":t.get("appendTo",!0)}))},QS.prototype.render=function(t,e,i){!b.node&&i.getDom()&&(this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,(e=this._tooltipContent).update(t),e.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?gy(this,"_updatePosition",50,"fixRate"):yy(this,"_updatePosition"))},QS.prototype._initGlobalListener=function(){var n=this._tooltipModel.get("triggerOn");dS("itemTooltip",this._api,S(function(t,e,i){"none"!==n&&(0<=n.indexOf(t)?this._tryShow(e,i):"leave"===t&&this._hide(i))},this))},QS.prototype._keepShow=function(){var t,e=this._tooltipModel,i=this._ecModel,n=this._api,o=e.get("triggerOn");null!=this._lastX&&null!=this._lastY&&"none"!==o&&"click"!==o&&(t=this,clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){n.isDisposed()||t.manuallyShowTip(e,i,n,{x:t._lastX,y:t._lastY,dataByCoordSys:t._lastDataByCoordSys})}))},QS.prototype.manuallyShowTip=function(t,e,i,n){var o,r,a,s;n.from!==this.uid&&!b.node&&i.getDom()&&(o=tM(n,i),this._ticket="",s=n.dataByCoordSys,(r=function(i,t,e){var n=Fr(i).queryOptionMap,o=n.keys()[0];if(o&&"series"!==o){var r,t=Wr(t,o,n.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(t)if(e.getViewOfComponentModel(t).group.traverse(function(t){var e=k(t).tooltipConfig;if(e&&e.name===i.name)return r=t,!0}),r)return{componentMainType:o,componentIndex:t.componentIndex,el:r}}}(n,e,i))?((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:n.position,positionDefault:"bottom"},o)):n.tooltip&&null!=n.x&&null!=n.y?((a=KS).x=n.x,a.y=n.y,a.update(),k(a).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:a},o)):s?this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:s,tooltipOption:n.tooltipOption},o):null!=n.seriesIndex?this._manuallyAxisShowTip(t,e,i,n)||(a=(r=xS(n,e)).point[0],s=r.point[1],null!=a&&null!=s&&this._tryShow({offsetX:a,offsetY:s,target:r.el,position:n.position,positionDefault:"bottom"},o)):null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},o)))},QS.prototype.manuallyHideTip=function(t,e,i,n){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(tM(n,i))},QS.prototype._manuallyAxisShowTip=function(t,e,i,n){var o=n.seriesIndex,r=n.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=r&&null!=a){a=e.getSeriesByIndex(o);if(a){e=JS([a.getData().getItemModel(r),a,(a.coordinateSystem||{}).model],this._tooltipModel);if("axis"===e.get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:r,position:n.position}),!0}}},QS.prototype._tryShow=function(t,e){var i,n,o,r=t.target;this._tooltipModel&&(this._lastX=t.offsetX,this._lastY=t.offsetY,(i=t.dataByCoordSys)&&i.length?this._showAxisTooltip(i,t):r?"legend"!==k(r).ssrType&&(qy(r,function(t){return null!=k(t).dataIndex?(n=t,1):null!=k(t).tooltipConfig&&(o=t,1)},!(this._lastDataByCoordSys=null)),n?this._showSeriesItemTooltip(t,n,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)):(this._lastDataByCoordSys=null,this._hide(e)))},QS.prototype._showOrMove=function(t,e){t=t.get("showDelay");e=S(e,this),clearTimeout(this._showTimout),0<t?this._showTimout=setTimeout(e,t):e()},QS.prototype._showAxisTooltip=function(t,e){var u=this._ecModel,h=this._tooltipModel,i=[e.offsetX,e.offsetY],n=JS([e.tooltipOption],h),c=this._renderMode,p=[],d=Ag("section",{blocks:[],noHeader:!0}),f=[],g=new Vg,o=(O(t,function(t){O(t.dataByAxis,function(o){var r,a,s=u.getComponent(o.axisDim+"Axis",o.axisIndex),l=o.value;s&&null!=l&&(r=tS(l,s.axis,u,o.seriesDataIndices,o.valueLabelOpt),a=Ag("section",{header:r,noHeader:!Tt(r),sortBlocks:!0,blocks:[]}),d.blocks.push(a),O(o.seriesDataIndices,function(t){var e,i=u.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,n=i.getDataParams(t);n.dataIndex<0||(n.axisDim=o.axisDim,n.axisIndex=o.axisIndex,n.axisType=o.axisType,n.axisId=o.axisId,n.axisValue=E_(s.axis,{value:l}),n.axisValueLabel=r,n.marker=g.makeTooltipMarker("item",zp(n.color),c),(e=(t=Of(i.formatTooltip(t,!0,null))).frag)&&(i=JS([i],h).get("valueFormatter"),a.blocks.push(i?P({valueFormatter:i},e):e)),t.text&&f.push(t.text),p.push(n))}))})}),d.blocks.reverse(),f.reverse(),e.position),e=n.get("order"),e=zg(d,g,c,e,u.get("useUTC"),n.get("textStyle")),e=(e&&f.unshift(e),"richText"===c?"\n\n":"<br/>"),r=f.join(e);this._showOrMove(n,function(){this._updateContentNotChangedOnAxis(t,p)?this._updatePosition(n,o,i[0],i[1],this._tooltipContent,p):this._showTooltipContent(n,r,p,Math.random()+"",i[0],i[1],o,null,g)})},QS.prototype._showSeriesItemTooltip=function(t,e,i){var n,o,r,a,s,l=this._ecModel,e=k(e),u=e.seriesIndex,h=l.getSeriesByIndex(u),c=e.dataModel||h,p=e.dataIndex,e=e.dataType,d=c.getData(e),f=this._renderMode,g=t.positionDefault,y=JS([d.getItemModel(p),c,h&&(h.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),h=y.get("trigger");null!=h&&"item"!==h||(n=c.getDataParams(p,e),o=new Vg,n.marker=o.makeTooltipMarker("item",zp(n.color),f),g=Of(c.formatTooltip(p,!1,e)),h=y.get("order"),e=y.get("valueFormatter"),r=g.frag,a=r?zg(e?P({valueFormatter:e},r):r,o,f,h,l.get("useUTC"),y.get("textStyle")):g.text,s="item_"+c.name+"_"+p,this._showOrMove(y,function(){this._showTooltipContent(y,a,n,s,t.offsetX,t.offsetY,t.position,t.target,o)}),i({type:"showTip",dataIndexInside:p,dataIndex:d.getRawIndex(p),seriesIndex:u,from:this.uid}))},QS.prototype._showComponentItemTooltip=function(e,i,t){var n="html"===this._renderMode,o=k(i),r=o.tooltipConfig.option||{},a=r.encodeHTMLContent,a=(F(r)&&(r={content:r,formatter:r},a=!0),a&&n&&r.content&&((r=y(r)).content=ve(r.content)),[r]),n=this._ecModel.getComponent(o.componentMainType,o.componentIndex),o=(n&&a.push(n),a.push({formatter:r.content}),e.positionDefault),s=JS(a,this._tooltipModel,o?{position:o}:null),l=s.get("content"),u=Math.random()+"",h=new Vg;this._showOrMove(s,function(){var t=y(s.get("formatterParams")||{});this._showTooltipContent(s,l,t,u,e.offsetX,e.offsetY,e.position,i,h)}),t({type:"showTip",from:this.uid})},QS.prototype._showTooltipContent=function(i,t,n,e,o,r,a,s,l){var u,h,c,p,d;this._ticket="",i.get("showContent")&&i.get("show")&&((u=this._tooltipContent).setEnterable(i.get("enterable")),h=i.get("formatter"),a=a||i.get("position"),t=t,c=this._getNearestPoint([o,r],n,i.get("trigger"),i.get("borderColor")).color,h&&(t=F(h)?(p=i.ecModel.get("useUTC"),t=h,Op(t=(d=V(n)?n[0]:n)&&d.axisType&&0<=d.axisType.indexOf("time")?cp(d.axisValue,t,p):t,n,!0)):D(h)?(d=S(function(t,e){t===this._ticket&&(u.setContent(e,l,i,c,a),this._updatePosition(i,a,o,r,u,n,s))},this),this._ticket=e,h(n,e,d)):h),u.setContent(t,l,i,c,a),u.show(i,c),this._updatePosition(i,a,o,r,u,n,s))},QS.prototype._getNearestPoint=function(t,e,i,n){return"axis"===i||V(e)?{color:n||("html"===this._renderMode?"#fff":"none")}:V(e)?void 0:{color:n||e.color||e.borderColor}},QS.prototype._updatePosition=function(t,e,i,n,o,r,a){var s,l=this._api.getWidth(),u=this._api.getHeight(),h=(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),V(e=D(e)?e([i,n],r,o.el,d,{viewSize:[l,u],contentSize:h.slice()}):e)?(i=rr(e[0],l),n=rr(e[1],u)):R(e)?((r=e).width=h[0],r.height=h[1],i=(r=Gp(r,{width:l,height:u})).x,n=r.y,p=c=null):n=(i=(s=F(e)&&a?function(t,e,i,n){var o=i[0],r=i[1],a=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-o/2,l=e.y+h/2-r/2;break;case"top":s=e.x+u/2-o/2,l=e.y-r-a;break;case"bottom":s=e.x+u/2-o/2,l=e.y+h+a;break;case"left":s=e.x-o-a,l=e.y+h/2-r/2;break;case"right":s=e.x+u+a,l=e.y+h/2-r/2}return[s,l]}(e,d,h,t.get("borderWidth")):function(t,e,i,n,o,r,a){var i=i.getSize(),s=i[0],i=i[1];null!=r&&(n<t+s+r+2?t-=s+r:t+=r);null!=a&&(o<e+i+a?e-=i+a:e+=a);return[t,e]}(i,n,o,l,u,c?null:20,p?null:20))[0],s[1]),c&&(i-=eM(c)?h[0]/2:"right"===c?h[0]:0),p&&(n-=eM(p)?h[1]/2:"bottom"===p?h[1]:0),PS(t)&&(r=i,a=n,e=l,d=u,c=(c=o).getSize(),p=c[0],c=c[1],r=Math.min(r+p,e)-p,a=Math.min(a+c,d)-c,r=Math.max(r,0),a=Math.max(a,0),i=(s=[r,a])[0],n=s[1]),o.moveTo(i,n)},QS.prototype._updateContentNotChangedOnAxis=function(i,r){var t=this._lastDataByCoordSys,a=this._cbParamsList,s=!!t&&t.length===i.length;return s&&O(t,function(t,e){var t=t.dataByAxis||[],o=(i[e]||{}).dataByAxis||[];(s=s&&t.length===o.length)&&O(t,function(t,e){var e=o[e]||{},i=t.seriesDataIndices||[],n=e.seriesDataIndices||[];(s=s&&t.value===e.value&&t.axisType===e.axisType&&t.axisId===e.axisId&&i.length===n.length)&&O(i,function(t,e){e=n[e];s=s&&t.seriesIndex===e.seriesIndex&&t.dataIndex===e.dataIndex}),a&&O(t.seriesDataIndices,function(t){var t=t.seriesIndex,e=r[t],t=a[t];e&&t&&t.data!==e.data&&(s=!1)})})}),this._lastDataByCoordSys=i,this._cbParamsList=r,!!s},QS.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},QS.prototype.dispose=function(t,e){!b.node&&e.getDom()&&(yy(this,"_updatePosition"),this._tooltipContent.dispose(),yS("itemTooltip",e))},QS.type="tooltip",QS);function QS(){var t=null!==jS&&jS.apply(this,arguments)||this;return t.type=QS.type,t}function JS(t,e,i){for(var n=e.ecModel,o=i?(o=new Gc(i,n,n),new Gc(e.option,o,n)):e,r=t.length-1;0<=r;r--){var a=t[r];(a=a&&(F(a=a instanceof Gc?a.get("tooltip",!0):a)?{formatter:a}:a))&&(o=new Gc(a,o,n))}return o}function tM(t,e){return t.dispatchAction||S(e.dispatchAction,e)}function eM(t){return"center"===t||"middle"===t}function iM(t,e){if(t)for(var i=V(t)?t:[t],n=0;n<i.length;n++)if(i[n]&&i[n][e])return 1}function nM(t){Ir(t,"label",["show"])}Y_(function(t){Y_(DS),t.registerComponentModel(AS),t.registerComponentView($S),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Bt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Bt)});var oM,rM=Er(),aM=(u(sM,oM=g),sM.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i),this._mergeOption(t,i,!1,!0)},sM.prototype.isAnimationEnabled=function(){var t;return!b.node&&(t=this.__hostSeries,this.getShallow("animation"))&&t&&t.isAnimationEnabled()},sM.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},sM.prototype._mergeOption=function(t,n,e,o){var r=this.mainType;e||n.eachSeries(function(t){var e=t.get(this.mainType,!0),i=rM(t)[r];e&&e.data?(i?i._mergeOption(e,n,!0):(o&&nM(e),O(e.data,function(t){t instanceof Array?(nM(t[0]),nM(t[1])):nM(t)}),P(i=this.createMarkerModelFromSeries(e,this,n),{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),i.__hostSeries=t),rM(t)[r]=i):rM(t)[r]=null},this)},sM.prototype.formatTooltip=function(t,e,i){var n=this.getData(),o=this.getRawValue(t),n=n.getName(t);return Ag("section",{header:this.name,blocks:[Ag("nameValue",{name:n,value:o,noName:!n,noValue:null==o})]})},sM.prototype.getData=function(){return this._data},sM.prototype.setData=function(t){this._data=t},sM.prototype.getDataParams=function(t,e){t=Lf.prototype.getDataParams.call(this,t,e),e=this.__hostSeries;return e&&(t.seriesId=e.id,t.seriesName=e.name,t.seriesType=e.subType),t},sM.getMarkerModelFromSeries=function(t,e){return rM(t)[e]},sM.type="marker",sM.dependencies=["series","grid","polar","geo"],sM);function sM(){var t=null!==oM&&oM.apply(this,arguments)||this;return t.type=sM.type,t.createdBySelf=!1,t}at(aM,Lf.prototype);u(hM,lM=aM),hM.prototype.createMarkerModelFromSeries=function(t,e,i){return new hM(t,e,i)},hM.type="markPoint",hM.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}};var lM,uM=hM;function hM(){var t=null!==lM&&lM.apply(this,arguments)||this;return t.type=hM.type,t}function cM(t,e,i,n,o,r){var a=[],s=Rv(e,n)?e.getCalculationInfo("stackResultDimension"):n,t=mM(e,s,t),t=e.indicesOfNearest(s,t)[0],o=(a[o]=e.get(i,t),a[r]=e.get(s,t),e.get(n,t)),i=lr(e.get(n,t));return 0<=(i=Math.min(i,20))&&(a[r]=+a[r].toFixed(i)),[a,o]}var pM={min:M(cM,"min"),max:M(cM,"max"),average:M(cM,"average"),median:M(cM,"median")};function dM(t,e){if(e){var i,n=t.getData(),o=t.coordinateSystem,r=o&&o.dimensions;if(i=e,(isNaN(parseFloat(i.x))||isNaN(parseFloat(i.y)))&&!V(e.coord)&&V(r)&&(i=fM(e,n,o,t),(e=y(e)).type&&pM[e.type]&&i.baseAxis&&i.valueAxis?(o=C(r,i.baseAxis.dim),t=C(r,i.valueAxis.dim),i=pM[e.type](n,i.baseDataDim,i.valueDataDim,o,t),e.coord=i[0],e.value=i[1]):e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]),null!=e.coord&&V(r))for(var a=e.coord,s=0;s<2;s++)pM[a[s]]&&(a[s]=mM(n,n.mapDimension(r[s]),a[s]));else e.coord=[];return e}}function fM(t,e,i,n){var o={};return null!=t.valueIndex||null!=t.valueDim?(o.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,o.valueAxis=i.getAxis(function(t,e){t=t.getData().getDimensionInfo(e);return t&&t.coordDim}(n,o.valueDataDim)),o.baseAxis=i.getOtherAxis(o.valueAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim)):(o.baseAxis=n.getBaseAxis(),o.valueAxis=i.getOtherAxis(o.baseAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim),o.valueDataDim=e.mapDimension(o.valueAxis.dim)),o}function gM(t,e){return!(t&&t.containData&&e.coord&&(i=e,isNaN(parseFloat(i.x)))&&isNaN(parseFloat(i.y)))||t.containData(e.coord);var i}function yM(t,o){return t?function(t,e,i,n){return Yf(n<2?t.coord&&t.coord[n]:t.value,o[n])}:function(t,e,i,n){return Yf(t.value,o[n])}}function mM(t,e,i){var n,o;return"average"===i?(o=n=0,t.each(e,function(t,e){isNaN(t)||(n+=t,o++)}),n/o):"median"===i?t.getMedian(e):t.getDataExtent(e)["max"===i?1:0]}var vM,_M=Er(),_u=(u(xM,vM=Jg),xM.prototype.init=function(){this.markerGroupMap=N()},xM.prototype.render=function(t,i,n){var o=this,e=this.markerGroupMap;e.each(function(t){_M(t).keep=!1}),i.eachSeries(function(t){var e=aM.getMarkerModelFromSeries(t,o.type);e&&o.renderSeries(t,e,i,n)}),e.each(function(t){_M(t).keep||o.group.remove(t.group)})},xM.prototype.markKeep=function(t){_M(t).keep=!0},xM.prototype.toggleBlurSeries=function(t,e){var i=this;O(t,function(t){t=aM.getMarkerModelFromSeries(t,i.type);t&&t.getData().eachItemGraphicEl(function(t){t&&(e?Ol:Rl)(t)})})},xM.type="marker",xM);function xM(){var t=null!==vM&&vM.apply(this,arguments)||this;return t.type=xM.type,t}function wM(a,s,l){var u=s.coordinateSystem;a.each(function(t){var e,i,n,o=a.getItemModel(t),r=rr(o.get("x"),l.getWidth()),o=rr(o.get("y"),l.getHeight());isNaN(r)||isNaN(o)?s.getMarkerPosition?n=s.getMarkerPosition(a.getValues(a.dimensions,t)):u&&(e=a.get(u.dimensions[0],t),i=a.get(u.dimensions[1],t),n=u.dataToPoint([e,i])):n=[r,o],isNaN(r)||(n[0]=r),isNaN(o)||(n[1]=o),a.setItemLayout(t,n)})}u(MM,bM=_u),MM.prototype.updateTransform=function(t,e,i){e.eachSeries(function(t){var e=aM.getMarkerModelFromSeries(t,"markPoint");e&&(wM(e.getData(),t,i),this.markerGroupMap.get(t.id).updateLayout())},this)},MM.prototype.renderSeries=function(t,u,e,i){var n=t.coordinateSystem,o=t.id,h=t.getData(),r=this.markerGroupMap,r=r.get(o)||r.set(o,new Tx),c=function(t,e,i){var n;n=t?B(t&&t.dimensions,function(t){return P(P({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}];var o=new Dv(n,i),i=B(i.get("data"),M(dM,e));t&&(i=ut(i,M(gM,t)));t=yM(!!t,n);return o.initData(i,null,t),o}(n,t,u);u.setData(c),wM(u.getData(),t,i),c.each(function(t){var e=c.getItemModel(t),i=e.getShallow("symbol"),n=e.getShallow("symbolSize"),o=e.getShallow("symbolRotate"),r=e.getShallow("symbolOffset"),a=e.getShallow("symbolKeepAspect"),s=((D(i)||D(n)||D(o)||D(r))&&(s=u.getRawValue(t),l=u.getDataParams(t),D(i)&&(i=i(s,l)),D(n)&&(n=n(s,l)),D(o)&&(o=o(s,l)),D(r))&&(r=r(s,l)),e.getModel("itemStyle").getItemStyle()),l=Yy(h,"color");s.fill||(s.fill=l),c.setItemVisual(t,{symbol:i,symbolSize:n,symbolRotate:o,symbolOffset:r,symbolKeepAspect:a,style:s})}),r.updateData(c),this.group.add(r.group),c.eachItemGraphicEl(function(t){t.traverse(function(t){k(t).dataModel=u})}),this.markKeep(r),r.group.silent=u.get("silent")||t.get("silent")},MM.type="markPoint";var bM,SM=MM;function MM(){var t=null!==bM&&bM.apply(this,arguments)||this;return t.type=MM.type,t}Y_(function(t){t.registerComponentModel(uM),t.registerComponentView(SM),t.registerPreprocessor(function(t){iM(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})});u(CM,TM=aM),CM.prototype.createMarkerModelFromSeries=function(t,e,i){return new CM(t,e,i)},CM.type="markLine",CM.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"};var TM,IM=CM;function CM(){var t=null!==TM&&TM.apply(this,arguments)||this;return t.type=CM.type,t}var DM,kM=oh.prototype,AM=hh.prototype,LM=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};function PM(){return null!==DM&&DM.apply(this,arguments)||this}function OM(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}u(PM,DM=LM);u(NM,RM=ws),NM.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},NM.prototype.getDefaultShape=function(){return new LM},NM.prototype.buildPath=function(t,e){(OM(e)?kM:AM).buildPath.call(this,t,e)},NM.prototype.pointAt=function(t){return(OM(this.shape)?kM:AM).pointAt.call(this,t)},NM.prototype.tangentAt=function(t){var e=this.shape,e=OM(e)?[e.x2-e.x1,e.y2-e.y1]:AM.tangentAt.call(this,t);return qt(e,e)};var RM,zM=NM;function NM(t){t=RM.call(this,t)||this;return t.type="ec-line",t}var EM=["fromSymbol","toSymbol"];function BM(t){return"_"+t+"Type"}function VM(t,e,i){var n,o,r,a=e.getItemVisual(i,t);return a&&"none"!==a?(n=e.getItemVisual(i,t+"Size"),o=e.getItemVisual(i,t+"Rotate"),r=e.getItemVisual(i,t+"Offset"),e=e.getItemVisual(i,t+"KeepAspect"),a+(i=lm(n))+um(r||0,i)+(o||"")+(e||"")):a}function FM(t,e,i){var n,o,r,a=e.getItemVisual(i,t);if(a&&"none"!==a)return r=e.getItemVisual(i,t+"Size"),n=e.getItemVisual(i,t+"Rotate"),o=e.getItemVisual(i,t+"Offset"),e=e.getItemVisual(i,t+"KeepAspect"),o=um(o||0,i=lm(r)),(r=sm(a,-i[0]/2+o[0],-i[1]/2+o[1],i[0],i[1],null,e)).__specifiedRotation=null==n||isNaN(n)?void 0:+n*Math.PI/180||0,r.name=t,r}function HM(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;e=e[2];e?(t.cpx1=e[0],t.cpy1=e[1]):(t.cpx1=NaN,t.cpy1=NaN)}u(XM,GM=Yo),XM.prototype._createLine=function(i,n,t){var e,o=i.hostModel,r=i.getItemLayout(n),r=(r=r,HM((e=new zM({name:"line",subPixelOptimize:!0})).shape,r),e);r.shape.percent=0,Bh(r,{shape:{percent:1}},o,n),this.add(r),O(EM,function(t){var e=FM(t,i,n);this.add(e),this[BM(t)]=VM(t,i,n)},this),this._updateCommonStl(i,n,t)},XM.prototype.updateData=function(n,o,t){var e=n.hostModel,i=this.childOfName("line"),r=n.getItemLayout(o),a={shape:{}};HM(a.shape,r),Eh(i,a,e,o),O(EM,function(t){var e=VM(t,n,o),i=BM(t);this[i]!==e&&(this.remove(this.childOfName(t)),t=FM(t,n,o),this.add(t)),this[i]=e},this),this._updateCommonStl(n,o,t)},XM.prototype.getLinePath=function(){return this.childAt(0)},XM.prototype._updateCommonStl=function(i,t,e){var n=i.hostModel,r=this.childOfName("line"),o=e&&e.emphasisLineStyle,a=e&&e.blurLineStyle,s=e&&e.selectLineStyle,l=e&&e.labelStatesModels,u=e&&e.emphasisDisabled,h=e&&e.focus,c=e&&e.blurScope,p=(e&&!i.hasItemOption||(o=(f=(e=i.getItemModel(t)).getModel("emphasis")).getModel("lineStyle").getLineStyle(),a=e.getModel(["blur","lineStyle"]).getLineStyle(),s=e.getModel(["select","lineStyle"]).getLineStyle(),u=f.get("disabled"),h=f.get("focus"),c=f.get("blurScope"),l=xc(e)),i.getItemVisual(t,"style")),d=p.stroke,f=(r.useStyle(p),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,r.ensureState("blur").style=a,r.ensureState("select").style=s,O(EM,function(t){var e=this.childOfName(t);if(e){e.setColor(d),e.style.opacity=p.opacity;for(var i=0;i<ll.length;i++){var n=ll[i],o=r.getState(n);o&&(o=o.style||{},n=(n=e.ensureState(n)).style||(n.style={}),null!=o.stroke&&(n[e.__isEmptyBrush?"stroke":"fill"]=o.stroke),null!=o.opacity)&&(n.opacity=o.opacity)}e.markRedraw()}},this),n.getRawValue(t)),e=(_c(this,l,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,e){return n.getFormattedLabel(t,e,i.dataType)}},inheritColor:d||"#000",defaultOpacity:p.opacity,defaultText:(null==f?i.getName(t):isFinite(f)?ar(f):f)+""}),this.getTextContent());e&&(o=l.normal,e.__align=e.style.align,e.__verticalAlign=e.style.verticalAlign,e.__position=o.get("position")||"middle",V(a=o.get("distance"))||(a=[a,a]),e.__labelDistance=a),this.setTextConfig({position:null,local:!0,inside:!1}),Xl(this,h,c,u)},XM.prototype.highlight=function(){Ll(this)},XM.prototype.downplay=function(){Pl(this)},XM.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},XM.prototype.setLinePoints=function(t){var e=this.childOfName("line");HM(e.shape,t),e.dirty()},XM.prototype.beforeUpdate=function(){var t=this.childOfName("fromSymbol"),e=this.childOfName("toSymbol"),i=this.getTextContent();if(t||e||i&&!i.ignore){for(var n=1,o=this.parent;o;)o.scaleX&&(n/=o.scaleX),o=o.parent;var r=this.childOfName("line");if(this.__dirty||r.__dirty){var a=r.shape.percent,s=r.pointAt(0),l=r.pointAt(a),u=Xt([],l,s);if(qt(u,u),t&&(t.setPosition(s),v(t,0),t.scaleX=t.scaleY=n*a,t.markRedraw()),e&&(e.setPosition(l),v(e,1),e.scaleX=e.scaleY=n*a,e.markRedraw()),i&&!i.ignore){i.x=i.y=0;var h=void(i.originX=i.originY=0),c=void 0,t=i.__labelDistance,p=t[0]*n,d=t[1]*n,e=a/2,f=r.tangentAt(e),t=[f[1],-f[0]],g=r.pointAt(e),y=(0<t[1]&&(t[0]=-t[0],t[1]=-t[1]),f[0]<0?-1:1),m=("start"!==i.__position&&"end"!==i.__position&&(a=-Math.atan2(f[1],f[0]),l[0]<s[0]&&(a=Math.PI+a),i.rotation=a),void 0);switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":m=-d,c="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":m=d,c="top";break;default:m=0,c="middle"}switch(i.__position){case"end":i.x=u[0]*p+l[0],i.y=u[1]*d+l[1],h=.8<u[0]?"left":u[0]<-.8?"right":"center",c=.8<u[1]?"top":u[1]<-.8?"bottom":"middle";break;case"start":i.x=-u[0]*p+s[0],i.y=-u[1]*d+s[1],h=.8<u[0]?"right":u[0]<-.8?"left":"center",c=.8<u[1]?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=p*y+s[0],i.y=s[1]+m,h=f[0]<0?"right":"left",i.originX=-p*y,i.originY=-m;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=g[0],i.y=g[1]+m,h="center",i.originY=-m;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-p*y+l[0],i.y=l[1]+m,h=0<=f[0]?"right":"left",i.originX=p*y,i.originY=-m}i.scaleX=i.scaleY=n,i.setStyle({verticalAlign:i.__verticalAlign||c,align:i.__align||h})}}}function v(t,e){var i,n=t.__specifiedRotation;null==n?(i=r.tangentAt(e),t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))):t.attr("rotation",n)}};var GM,WM=XM;function XM(t,e,i){var n=GM.call(this)||this;return n._createLine(t,e,i),n}YM.prototype.updateData=function(i){var n=this,e=(this._progressiveEls=null,this.group),o=this._lineData,r=(this._lineData=i,o||e.removeAll(),ZM(i));i.diff(o).add(function(t){n._doAdd(i,t,r)}).update(function(t,e){n._doUpdate(o,i,e,t,r)}).remove(function(t){e.remove(o.getItemGraphicEl(t))}).execute()},YM.prototype.updateLayout=function(){var i=this._lineData;i&&i.eachItemGraphicEl(function(t,e){t.updateLayout(i,e)},this)},YM.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=ZM(t),this._lineData=null,this.group.removeAll()},YM.prototype.incrementalUpdate=function(t,e){function i(t){var e;t.isGroup||(e=t).animators&&0<e.animators.length||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var n,o=t.start;o<t.end;o++)jM(e.getItemLayout(o))&&((n=new this._LineCtor(e,o,this._seriesScope)).traverse(i),this.group.add(n),e.setItemGraphicEl(o,n),this._progressiveEls.push(n))},YM.prototype.remove=function(){this.group.removeAll()},YM.prototype.eachRendered=function(t){fc(this._progressiveEls||this.group,t)},YM.prototype._doAdd=function(t,e,i){jM(t.getItemLayout(e))&&(i=new this._LineCtor(t,e,i),t.setItemGraphicEl(e,i),this.group.add(i))},YM.prototype._doUpdate=function(t,e,i,n,o){t=t.getItemGraphicEl(i);jM(e.getItemLayout(n))?(t?t.updateData(e,n,o):t=new this._LineCtor(e,n,o),e.setItemGraphicEl(n,t),this.group.add(t)):this.group.remove(t)};var UM=YM;function YM(t){this.group=new Yo,this._LineCtor=t||WM}function ZM(t){var t=t.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:xc(t)}}function qM(t){return isNaN(t[0])||isNaN(t[1])}function jM(t){return t&&!qM(t[0])&&!qM(t[1])}function KM(t,e,i,n){var o,r,a,s,l=t.getData();return(e=[dM(t,(i=V(n)?n:"min"===(o=n.type)||"max"===o||"average"===o||"median"===o||null!=n.xAxis||null!=n.yAxis?(r=s=void 0,r=null!=n.yAxis||null!=n.xAxis?(s=e.getAxis(null!=n.yAxis?"y":"x"),xt(n.yAxis,n.xAxis)):(s=(e=fM(n,l,e,t)).valueAxis,mM(l,zv(l,e.valueDataDim),o)),e=1-(l="x"===s.dim?0:1),s={coord:[]},(a=y(n)).type=null,a.coord=[],a.coord[e]=-1/0,s.coord[e]=1/0,0<=(e=i.get("precision"))&&pt(r)&&(r=+r.toFixed(Math.min(e,20))),a.coord[l]=s.coord[l]=r,[a,s,{type:o,valueIndex:n.valueIndex,value:r}]):[])[0]),dM(t,i[1]),P({},i[2])])[2].type=e[2].type||null,d(e[2],e[0]),d(e[2],e[1]),e}var $M=Er();function QM(t){return!isNaN(t)&&!isFinite(t)}function JM(t,e,i,n){var o=1-t,r=n.dimensions[t];return QM(e[o])&&QM(i[o])&&e[t]===i[t]&&n.getAxis(r).containData(e[t])}function tT(t,e){if("cartesian2d"===t.type){var i=e[0].coord,n=e[1].coord;if(i&&n&&(JM(1,i,n,t)||JM(0,i,n,t)))return!0}return gM(t,e[0])&&gM(t,e[1])}function eT(t,e,i,n,o){var r,a,s=n.coordinateSystem,l=t.getItemModel(e),u=rr(l.get("x"),o.getWidth()),l=rr(l.get("y"),o.getHeight());isNaN(u)||isNaN(l)?(r=n.getMarkerPosition?n.getMarkerPosition(t.getValues(t.dimensions,e)):(a=s.dimensions,o=t.get(a[0],e),n=t.get(a[1],e),s.dataToPoint([o,n])),Wx(s,"cartesian2d")&&(o=s.getAxis("x"),n=s.getAxis("y"),a=s.dimensions,QM(t.get(a[0],e))?r[0]=o.toGlobalCoord(o.getExtent()[i?0:1]):QM(t.get(a[1],e))&&(r[1]=n.toGlobalCoord(n.getExtent()[i?0:1]))),isNaN(u)||(r[0]=u),isNaN(l)||(r[1]=l)):r=[u,l],t.setItemLayout(e,r)}u(oT,iT=_u),oT.prototype.updateTransform=function(t,e,r){e.eachSeries(function(e){var i,n,o,t=aM.getMarkerModelFromSeries(e,"markLine");t&&(i=t.getData(),n=$M(t).from,o=$M(t).to,n.each(function(t){eT(n,t,!0,e,r),eT(o,t,!1,e,r)}),i.each(function(t){i.setItemLayout(t,[n.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(e.id).updateLayout())},this)},oT.prototype.renderSeries=function(r,e,t,a){var i=r.coordinateSystem,n=r.id,s=r.getData(),o=this.markerGroupMap,o=o.get(n)||o.set(n,new UM),n=(this.group.add(o.group),function(t,e,i){var n;n=t?B(t&&t.dimensions,function(t){return P(P({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}];var o=new Dv(n,i),r=new Dv(n,i),a=new Dv([],i),i=B(i.get("data"),M(KM,e,t,i));t&&(i=ut(i,M(tT,t)));t=yM(!!t,n);return o.initData(B(i,function(t){return t[0]}),null,t),r.initData(B(i,function(t){return t[1]}),null,t),a.initData(B(i,function(t){return t[2]})),a.hasItemOption=!0,{from:o,to:r,line:a}}(i,r,e)),l=n.from,u=n.to,h=n.line,c=($M(e).from=l,$M(e).to=u,e.setData(h),e.get("symbol")),p=e.get("symbolSize"),d=e.get("symbolRotate"),f=e.get("symbolOffset");function g(t,e,i){var n=t.getItemModel(e),o=(eT(t,e,i,r,a),n.getModel("itemStyle").getItemStyle());null==o.fill&&(o.fill=Yy(s,"color")),t.setItemVisual(e,{symbolKeepAspect:n.get("symbolKeepAspect"),symbolOffset:z(n.get("symbolOffset",!0),f[i?0:1]),symbolRotate:z(n.get("symbolRotate",!0),d[i?0:1]),symbolSize:z(n.get("symbolSize"),p[i?0:1]),symbol:z(n.get("symbol",!0),c[i?0:1]),style:o})}V(c)||(c=[c,c]),V(p)||(p=[p,p]),V(d)||(d=[d,d]),V(f)||(f=[f,f]),n.from.each(function(t){g(l,t,!0),g(u,t,!1)}),h.each(function(t){var e=h.getItemModel(t).getModel("lineStyle").getLineStyle();h.setItemLayout(t,[l.getItemLayout(t),u.getItemLayout(t)]),null==e.stroke&&(e.stroke=l.getItemVisual(t,"style").fill),h.setItemVisual(t,{fromSymbolKeepAspect:l.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:l.getItemVisual(t,"symbolOffset"),fromSymbolRotate:l.getItemVisual(t,"symbolRotate"),fromSymbolSize:l.getItemVisual(t,"symbolSize"),fromSymbol:l.getItemVisual(t,"symbol"),toSymbolKeepAspect:u.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:u.getItemVisual(t,"symbolOffset"),toSymbolRotate:u.getItemVisual(t,"symbolRotate"),toSymbolSize:u.getItemVisual(t,"symbolSize"),toSymbol:u.getItemVisual(t,"symbol"),style:e})}),o.updateData(h),n.line.eachItemGraphicEl(function(t){k(t).dataModel=e,t.traverse(function(t){k(t).dataModel=e})}),this.markKeep(o),o.group.silent=e.get("silent")||r.get("silent")},oT.type="markLine";var iT,nT=oT;function oT(){var t=null!==iT&&iT.apply(this,arguments)||this;return t.type=oT.type,t}Y_(function(t){t.registerComponentModel(IM),t.registerComponentView(nT),t.registerPreprocessor(function(t){iM(t.series,"markLine")&&(t.markLine=t.markLine||{})})});var rT=["x","y","radius","angle","single"],aT=["cartesian2d","polar","singleAxis"];function sT(t){return t+"Axis"}function lT(t,e){var n,o=N(),i=[],r=N();for(t.eachComponent({mainType:"dataZoom",query:e},function(t){r.get(t.uid)||s(t)});n=!1,t.eachComponent("dataZoom",a),n;);function a(t){var i;!r.get(t.uid)&&(i=!1,t.eachTargetAxis(function(t,e){t=o.get(t);t&&t[e]&&(i=!0)}),i)&&(s(t),n=!0)}function s(t){r.set(t.uid,!0),i.push(t),t.eachTargetAxis(function(t,e){(o.get(t)||o.set(t,[]))[e]=!0})}return i}function uT(t){var o=t.ecModel,r={infoList:[],infoMap:N()};return t.eachTargetAxis(function(t,e){var i,n,t=o.getComponent(sT(t),e);t&&(e=t.getCoordSysModel())&&(i=e.uid,(n=r.infoMap.get(i))||(r.infoList.push(n={model:e,axisModels:[]}),r.infoMap.set(i,n)),n.axisModels.push(t))}),r}cT.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)};var hT=cT;function cT(){this.indexList=[],this.indexMap=[]}u(dT,pT=g),dT.prototype.init=function(t,e,i){var n=fT(t);this.settledOption=n,this.mergeDefaultAndTheme(t,i),this._doInit(n)},dT.prototype.mergeOption=function(t){var e=fT(t);d(this.option,t,!0),d(this.settledOption,e,!0),this._doInit(e)},dT.prototype._doInit=function(t){var i=this.option,n=(this._setDefaultThrottle(t),this._updateRangeUse(t),this.settledOption);O([["start","startValue"],["end","endValue"]],function(t,e){"value"===this._rangePropMode[e]&&(i[t[0]]=n[t[0]]=null)},this),this._resetTarget()},dT.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=N();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)},dT.prototype._fillSpecifiedTargetAxis=function(n){var o=!1;return O(rT,function(t){var e,i=this.getReferringComponents(sT(t),Gr);i.specified&&(o=!0,e=new hT,O(i.models,function(t){e.add(t.componentIndex)}),n.set(t,e))},this),o},dT.prototype._fillAutoTargetAxisByOrient=function(r,e){var t,n=this.ecModel,a=!0;function i(t,e){var i,n,o=t[0];o&&((i=new hT).add(o.componentIndex),r.set(e,i),a=!1,"x"!==e&&"y"!==e||(n=o.getReferringComponents("grid",Hr).models[0])&&O(t,function(t){o.componentIndex!==t.componentIndex&&n===t.getReferringComponents("grid",Hr).models[0]&&i.add(t.componentIndex)}))}a&&i(n.findComponents({mainType:(t="vertical"===e?"y":"x")+"Axis"}),t),a&&i(n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single"),a&&O(rT,function(t){var e,i;a&&(e=n.findComponents({mainType:sT(t),filter:function(t){return"category"===t.get("type",!0)}}))[0]&&((i=new hT).add(e[0].componentIndex),r.set(t,i),a=!1)},this)},dT.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){e=e||t},this),"y"===e?"vertical":"horizontal"},dT.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)},dT.prototype._updateRangeUse=function(n){var o=this._rangePropMode,r=this.get("rangeMode");O([["start","startValue"],["end","endValue"]],function(t,e){var i=null!=n[t[0]],t=null!=n[t[1]];i&&!t?o[e]="percent":!i&&t?o[e]="value":r?o[e]=r[e]:i&&(o[e]="percent")})},dT.prototype.noTarget=function(){return this._noTarget},dT.prototype.getFirstTargetAxisModel=function(){var i;return this.eachTargetAxis(function(t,e){null==i&&(i=this.ecModel.getComponent(sT(t),e))},this),i},dT.prototype.eachTargetAxis=function(i,n){this._targetAxisInfoMap.each(function(t,e){O(t.indexList,function(t){i.call(n,e,t)})})},dT.prototype.getAxisProxy=function(t,e){t=this.getAxisModel(t,e);if(t)return t.__dzAxisProxy},dT.prototype.getAxisModel=function(t,e){var i=this._targetAxisInfoMap.get(t);if(i&&i.indexMap[e])return this.ecModel.getComponent(sT(t),e)},dT.prototype.setRawRange=function(e){var i=this.option,n=this.settledOption;O([["start","startValue"],["end","endValue"]],function(t){null==e[t[0]]&&null==e[t[1]]||(i[t[0]]=n[t[0]]=e[t[0]],i[t[1]]=n[t[1]]=e[t[1]])},this),this._updateRangeUse(e)},dT.prototype.setCalculatedRange=function(e){var i=this.option;O(["start","startValue","end","endValue"],function(t){i[t]=e[t]})},dT.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},dT.prototype.getValueRange=function(t,e){return null!=t||null!=e?this.getAxisProxy(t,e).getDataValueWindow():(t=this.findRepresentativeAxisProxy())?t.getDataValueWindow():void 0},dT.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,i=this._targetAxisInfoMap.keys(),n=0;n<i.length;n++)for(var o=i[n],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},dT.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},dT.prototype.getOrient=function(){return this._orient},dT.type="dataZoom",dT.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],dT.defaultOption={z:4,filterMode:"filter",start:0,end:100};var pT,mh=dT;function dT(){var t=null!==pT&&pT.apply(this,arguments)||this;return t.type=dT.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}function fT(e){var i={};return O(["start","end","startValue","endValue","throttle"],function(t){e.hasOwnProperty(t)&&(i[t]=e[t])}),i}u(mT,gT=mh),mT.type="dataZoom.inside",mT.defaultOption=Yc(mh.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0});var gT,yT=mT;function mT(){var t=null!==gT&&gT.apply(this,arguments)||this;return t.type=mT.type,t}u(_T,vT=Jg),_T.prototype.render=function(t,e,i,n){this.dataZoomModel=t,this.ecModel=e,this.api=i},_T.type="dataZoom";var vT,Su=_T;function _T(){var t=null!==vT&&vT.apply(this,arguments)||this;return t.type=_T.type,t}function xT(t,e,i,n,o,r){t=t||0;var a=i[1]-i[0],a=(null!=o&&(o=bT(o,[0,a])),null!=r&&(r=Math.max(r,null!=o?o:0)),"all"===n&&(s=bT(s=Math.abs(e[1]-e[0]),[0,a]),o=r=bT(s,[o,r]),n=0),e[0]=bT(e[0],i),e[1]=bT(e[1],i),wT(e,n)),s=(e[n]+=t,o||0),t=i.slice();a.sign<0?t[0]+=s:t[1]-=s,e[n]=bT(e[n],t),i=wT(e,n),null!=o&&(i.sign!==a.sign||i.span<o)&&(e[1-n]=e[n]+a.sign*o),i=wT(e,n),null!=r&&i.span>r&&(e[1-n]=e[n]+i.sign*r)}function wT(t,e){t=t[e]-t[1-e];return{span:Math.abs(t),sign:0<t||!(t<0)&&e?-1:1}}function bT(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var ST="\0_ec_interaction_mutex";function MT(t,e){return((t=t)[ST]||(t[ST]={}))[e]}U0({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Bt);u(CT,TT=se),CT.prototype.isDragging=function(){return this._dragging},CT.prototype.isPinching=function(){return this._pinching},CT.prototype.setPointerChecker=function(t){this.pointerChecker=t},CT.prototype.dispose=function(){this.disable()},CT.prototype._mousedownHandler=function(t){if(!Ce(t)){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var i=t.offsetX,n=t.offsetY;this.pointerChecker&&this.pointerChecker(t,i,n)&&(this._x=i,this._y=n,this._dragging=!0)}},CT.prototype._mousemoveHandler=function(t){var e,i,n,o,r,a;this._dragging&&AT("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!MT(this._zr,"globalPan")&&(e=t.offsetX,i=t.offsetY,r=e-(n=this._x),a=i-(o=this._y),this._x=e,this._y=i,this._opt.preventDefaultMouseMove&&Ie(t.event),kT(this,"pan","moveOnMouseMove",t,{dx:r,dy:a,oldX:n,oldY:o,newX:e,newY:i,isAvailableBehavior:null}))},CT.prototype._mouseupHandler=function(t){Ce(t)||(this._dragging=!1)},CT.prototype._mousewheelHandler=function(t){var e=AT("zoomOnMouseWheel",t,this._opt),i=AT("moveOnMouseWheel",t,this._opt),n=t.wheelDelta,o=Math.abs(n),r=t.offsetX,a=t.offsetY;0!==n&&(e||i)&&(e&&(e=3<o?1.4:1<o?1.2:1.1,DT(this,"zoom","zoomOnMouseWheel",t,{scale:0<n?e:1/e,originX:r,originY:a,isAvailableBehavior:null})),i)&&DT(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(0<n?1:-1)*(3<(o=Math.abs(n))?.4:1<o?.15:.05),originX:r,originY:a,isAvailableBehavior:null})},CT.prototype._pinchHandler=function(t){MT(this._zr,"globalPan")||DT(this,"zoom",null,t,{scale:1<t.pinchScale?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})};var TT,IT=CT;function CT(i){var t=TT.call(this)||this,n=(t._zr=i,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=E(y(e)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),!0!==(t=null==t?!0:t)&&"move"!==t&&"pan"!==t||(i.on("mousedown",n),i.on("mousemove",o),i.on("mouseup",r)),!0!==t&&"scale"!==t&&"zoom"!==t||(i.on("mousewheel",a),i.on("pinch",s))},t.disable=function(){i.off("mousedown",n),i.off("mousemove",o),i.off("mouseup",r),i.off("mousewheel",a),i.off("pinch",s)},t}function DT(t,e,i,n,o){t.pointerChecker&&t.pointerChecker(n,o.originX,o.originY)&&(Ie(n.event),kT(t,e,i,n,o))}function kT(t,e,i,n,o){o.isAvailableBehavior=S(AT,null,i,n),t.trigger(e,o)}function AT(t,e,i){i=i[t];return!t||i&&(!F(i)||e.event[i+"Key"])}var LT=Er();function PT(t,e){e&&(t.removeKey(e.model.uid),t=e.controller)&&t.dispose()}function OT(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function RT(t,e,i,n){return t.coordinateSystem.containPoint([i,n])}function zT(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(t,a){var e=LT(a),l=e.coordSysRecordMap||(e.coordSysRecordMap=N());l.each(function(t){t.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){O(uT(o).infoList,function(t){var r,e,i=t.model.uid,n=l.get(i)||l.set(i,(i=a,n=t.model,r={model:n,containsPoint:M(RT,n),dispatchAction:M(OT,i),dataZoomInfoMap:null,controller:null},e=r.controller=new IT(i.getZr()),O(["pan","zoom","scrollMove"],function(o){e.on(o,function(i){var n=[];r.dataZoomInfoMap.each(function(t){var e;i.isAvailableBehavior(t.model.option)&&(e=(e=(t.getRange||{})[o])&&e(t.dzReferCoordSysInfo,r.model.mainType,r.controller,i),!t.model.get("disabled",!0))&&e&&n.push({dataZoomId:t.model.id,start:e[0],end:e[1]})}),n.length&&r.dispatchAction(n)})}),r));(n.dataZoomInfoMap||(n.dataZoomInfoMap=N())).set(o.uid,{dzReferCoordSysInfo:t,model:o,getRange:null})})}),l.each(function(t){var e,i,n,o,r,a=t.controller,s=t.dataZoomInfoMap;(e=s&&null!=(i=s.keys()[0])?s.get(i):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_"+n]<o["type_"+e]&&(n=e),r=r&&t.get("preventDefaultMouseMove",!0)}),i={controlType:n,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}},a.enable(i.controlType,i.opt),a.setPointerChecker(t.containsPoint),gy(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")):PT(l,t)})})}u(BT,NT=Su),BT.prototype.render=function(t,e,i){var n,o;NT.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),i=i,n=t,o={pan:S(VT.pan,this),zoom:S(VT.zoom,this),scrollMove:S(VT.scrollMove,this)},LT(i).coordSysRecordMap.each(function(t){t=t.dataZoomInfoMap.get(n.uid);t&&(t.getRange=o)}))},BT.prototype.dispose=function(){this._clear(),NT.prototype.dispose.apply(this,arguments)},BT.prototype._clear=function(){for(var t=this.api,e=this.dataZoomModel,i=LT(t).coordSysRecordMap,n=i.keys(),o=0;o<n.length;o++){var r,a=n[o],a=i.get(a),s=a.dataZoomInfoMap;s&&(r=e.uid,s.get(r))&&(s.removeKey(r),s.keys().length||PT(i,a))}this.range=null},BT.type="dataZoom.inside";var NT,ET=BT;function BT(){var t=null!==NT&&NT.apply(this,arguments)||this;return t.type="dataZoom.inside",t}var VT={zoom:function(t,e,i,n){var o=this.range,r=o.slice(),a=t.axisModels[0];if(a)return a=(0<(e=HT[e](null,[n.originX,n.originY],a,i,t)).signal?e.pixelStart+e.pixelLength-e.pixel:e.pixel-e.pixelStart)/e.pixelLength*(r[1]-r[0])+r[0],i=Math.max(1/n.scale,0),r[0]=(r[0]-a)*i+a,r[1]=(r[1]-a)*i+a,xT(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:FT(function(t,e,i,n,o,r){n=HT[n]([r.oldX,r.oldY],[r.newX,r.newY],e,o,i);return n.signal*(t[1]-t[0])*n.pixel/n.pixelLength}),scrollMove:FT(function(t,e,i,n,o,r){return HT[n]([0,0],[r.scrollDelta,r.scrollDelta],e,o,i).signal*(t[1]-t[0])*r.scrollDelta})};function FT(s){return function(t,e,i,n){var o=this.range,r=o.slice(),a=t.axisModels[0];if(a)return xT(s(r,a,t,e,i,n),r,[0,100],"all"),this.range=r,o[0]!==r[0]||o[1]!==r[1]?r:void 0}}var HT={grid:function(t,e,i,n,o){var i=i.axis,r={},o=o.model.coordinateSystem.getRect();return t=t||[0,0],"x"===i.dim?(r.pixel=e[0]-t[0],r.pixelLength=o.width,r.pixelStart=o.x,r.signal=i.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixelLength=o.height,r.pixelStart=o.y,r.signal=i.inverse?-1:1),r},polar:function(t,e,i,n,o){var r=i.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"===i.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,i,n,o){var i=i.axis,o=o.model.coordinateSystem.getRect(),r={};return t=t||[0,0],"horizontal"===i.orient?(r.pixel=e[0]-t[0],r.pixelLength=o.width,r.pixelStart=o.x,r.signal=i.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixelLength=o.height,r.pixelStart=o.y,r.signal=i.inverse?-1:1),r}},GT=O,WT=sr,XT=(UT.prototype.hostedBy=function(t){return this._dataZoomModel===t},UT.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},UT.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},UT.prototype.getTargetSeriesModels=function(){var i=[];return this.ecModel.eachSeries(function(t){var e;e=(e=t).get("coordinateSystem"),0<=C(aT,e)&&(e=sT(this._dimName),e=t.getReferringComponents(e,Hr).models[0])&&this._axisIndex===e.componentIndex&&i.push(t)},this),i},UT.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},UT.prototype.getMinMaxSpan=function(){return y(this._minMaxSpan)},UT.prototype.calculateDataWindow=function(n){var o,r=this._dataExtent,s=this.getAxisModel().axis.scale,a=this._dataZoomModel.getRangePropMode(),l=[0,100],u=[],h=[],c=(GT(["start","end"],function(t,e){var i=n[t],t=n[t+"Value"];"percent"===a[e]?t=s.parse(or(i=null==i?l[e]:i,l,r)):(o=!0,i=or(t=null==t?r[e]:s.parse(t),r,l)),h[e]=null==t||isNaN(t)?r[e]:t,u[e]=null==i||isNaN(i)?l[e]:i}),WT(h),WT(u),this._minMaxSpan);function t(t,e,i,n,o){var r=o?"Span":"ValueSpan";xT(0,t,i,"all",c["min"+r],c["max"+r]);for(var a=0;a<2;a++)e[a]=or(t[a],i,n,!0),o&&(e[a]=s.parse(e[a]))}return o?t(h,u,r,l,!1):t(u,h,l,r,!0),{valueWindow:h,percentWindow:u}},UT.prototype.reset=function(t){var e,n,o,i;t===this._dataZoomModel&&(i=this.getTargetSeriesModels(),this._dataExtent=(n=(e=this)._dimName,o=[1/0,-1/0],GT(i=i,function(t){var e,i;e=o,i=t.getData(),t=n,i&&O(H_(i,t),function(t){t=i.getApproximateExtent(t);t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])})}),[(e=L_((i=e.getAxisModel()).axis.scale,i,o).calculate()).min,e.max]),this._updateMinMaxSpan(),i=this.calculateDataWindow(t.settledOption),this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,this._setAxisModel())},UT.prototype.filterData=function(t,e){var o,i,r,c;t===this._dataZoomModel&&(o=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),c=this._valueWindow,"none"!==r)&&GT(i,function(i){var l,u,n=i.getData(),h=n.mapDimensionsAll(o);h.length&&("weakFilter"===r?(l=n.getStore(),u=B(h,function(t){return n.getDimensionIndex(t)},n),n.filterSelf(function(t){for(var e,i,n,o=0;o<h.length;o++){var r=l.get(u[o],t),a=!isNaN(r),s=r<c[0],r=r>c[1];if(a&&!s&&!r)return!0;a&&(n=!0),s&&(e=!0),r&&(i=!0)}return n&&e&&i})):GT(h,function(t){var e;"empty"===r?i.setData(n=n.map(t,function(t){return(e=t)>=c[0]&&e<=c[1]?t:NaN;var e})):((e={})[t]=c,n.selectRange(e))}),GT(h,function(t){n.setApproximateExtent(c,t)}))})},UT.prototype._updateMinMaxSpan=function(){var n=this._minMaxSpan={},o=this._dataZoomModel,r=this._dataExtent;GT(["min","max"],function(t){var e=o.get(t+"Span"),i=o.get(t+"ValueSpan");null!=(i=null!=i?this.getAxisModel().axis.scale.parse(i):i)?e=or(r[0]+i,r,[0,100],!0):null!=e&&(i=or(e,[0,100],r,!0)-r[0]),n[t+"Span"]=e,n[t+"ValueSpan"]=i},this)},UT.prototype._setAxisModel=function(){var t,e=this.getAxisModel(),i=this._percentWindow,n=this._valueWindow;i&&(t=hr(n,[0,500]),t=Math.min(t,20),e=e.axis.scale.rawExtentInfo,0!==i[0]&&e.setDeterminedMinMax("min",+n[0].toFixed(t)),100!==i[1]&&e.setDeterminedMinMax("max",+n[1].toFixed(t)),e.freeze())},UT);function UT(t,e,i,n){this._dimName=t,this._axisIndex=e,this.ecModel=n,this._dataZoomModel=i}var YT={getTargetSeries:function(r){function t(o){r.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(t,e){var i=r.getComponent(sT(t),e);o(t,e,i,n)})})}t(function(t,e,i,n){i.__dzAxisProxy=null});var o=[],e=(t(function(t,e,i,n){i.__dzAxisProxy||(i.__dzAxisProxy=new XT(t,e,n,r),o.push(i.__dzAxisProxy))}),N());return O(o,function(t){O(t.getTargetSeriesModels(),function(t){e.set(t.uid,t)})}),e},overallReset:function(t,n){t.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(t,e){i.getAxisProxy(t,e).reset(i)}),i.eachTargetAxis(function(t,e){i.getAxisProxy(t,e).filterData(i,n)})}),t.eachComponent("dataZoom",function(t){var e,i=t.findRepresentativeAxisProxy();i&&(e=i.getDataPercentWindow(),i=i.getDataValueWindow(),t.setCalculatedRange({start:e[0],end:e[1],startValue:i[0],endValue:i[1]}))})}};var ZT=!1;function qT(t){ZT||(ZT=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,YT),t.registerAction("dataZoom",function(e,t){O(lT(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 jT(t){qT(t),t.registerComponentModel(yT),t.registerComponentView(ET),zT(t)}u(QT,KT=mh),QT.type="dataZoom.slider",QT.layoutMode="box",QT.defaultOption=Yc(mh.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 KT,$T=QT;function QT(){var t=null!==KT&&KT.apply(this,arguments)||this;return t.type=QT.type,t}var JT,tI=Bs,eI="horizontal",iI="vertical",nI=["line","bar","candlestick","scatter"],oI={easing:"cubicOut",duration:100,delay:0},rI=(u(m,JT=Su),m.prototype.init=function(t,e){this.api=e,this._onBrush=S(this._onBrush,this),this._onBrushEnd=S(this._onBrushEnd,this)},m.prototype.render=function(t,e,i,n){JT.prototype.render.apply(this,arguments),gy(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1===t.get("show")?this.group.removeAll():t.noTarget()?(this._clear(),this.group.removeAll()):(n&&"dataZoom"===n.type&&n.from===this.uid||this._buildView(),this._updateView())},m.prototype.dispose=function(){this._clear(),JT.prototype.dispose.apply(this,arguments)},m.prototype._clear=function(){yy(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},m.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 Yo);this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},m.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,i=t.get("brushSelect")?7:0,n=this._findCoordRect(),e={width:e.getWidth(),height:e.getHeight()},o=this._orient===eI?{right:e.width-n.x-n.width,top:e.height-30-7-i,width:n.width,height:30}:{right:7,top:n.y,width:30,height:n.height},r=Up(t.option),i=(O(["right","top","width","height"],function(t){"ph"===r[t]&&(r[t]=o[t])}),Gp(r,e));this._location={x:i.x,y:i.y},this._size=[i.width,i.height],this._orient===iI&&this._size.reverse()},m.prototype._positionGroup=function(){var t=this.group,e=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),n=n&&n.get("inverse"),o=this._displayables.sliderGroup,r=(this._dataShadowInfo||{}).otherAxisInverse,i=(o.attr(i!==eI||n?i===eI&&n?{scaleY:r?1:-1,scaleX:-1}:i!==iI||n?{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-i.x,t.y=e.y-i.y,t.markRedraw()},m.prototype._getViewExtent=function(){return[0,this._size[0]]},m.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,i=this._displayables.sliderGroup,n=t.get("brushSelect"),t=(i.add(new tI({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),new tI({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();n?(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)),i.add(t)},m.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,i=this._shadowSize||[],n=t.series,o=n.getRawData(),r=n.getShadowDim&&n.getShadowDim(),r=r&&o.getDimensionInfo(r)?n.getShadowDim():t.otherDim;if(null!=r)for(var a,s,l,u,h,c,p,d,f,g,y=this._shadowPolygonPts,m=this._shadowPolylinePts,v=(o===this._shadowData&&r===this._shadowDim&&e[0]===i[0]&&e[1]===i[1]||(n=.3*((a=o.getDataExtent(r))[1]-a[0]),a=[a[0]-n,a[1]+n],s=[0,e[1]],t=[0,e[0]],l=[[e[0],0],[0,0]],u=[],h=t[1]/(o.count()-1),c=0,p=Math.round(o.count()/e[0]),o.each([r],function(t,e){var i;0<p&&e%p?c+=h:(t=(i=null==t||isNaN(t)||""===t)?0:or(t,a,s,!0),i&&!d&&e?(l.push([l[l.length-1][0],0]),u.push([u[u.length-1][0],0])):!i&&d&&(l.push([c,0]),u.push([c,0])),l.push([c,t]),u.push([c,t]),c+=h,d=i)}),y=this._shadowPolygonPts=l,m=this._shadowPolylinePts=u),this._shadowData=o,this._shadowDim=r,this._shadowSize=[e[0],e[1]],this.dataZoomModel),_=0;_<3;_++){f=1===_,x=g=void 0,f=v.getModel(f?"selectedDataBackground":"dataBackground"),g=new Yo,x=new ju({shape:{points:y},segmentIgnoreThreshold:1,style:f.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),f=new Ju({shape:{points:m},segmentIgnoreThreshold:1,style:f.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19}),g.add(x),g.add(f);var x=g;this._displayables.sliderGroup.add(x),this._displayables.dataShadowSegs.push(x)}}},m.prototype._prepareDataShadowInfo=function(){var s,l,t=this.dataZoomModel,u=t.get("showDataShadow");if(!1!==u)return l=this.ecModel,t.eachTargetAxis(function(r,a){O(t.getAxisProxy(r,a).getTargetSeriesModels(),function(t){var e,i,n,o;s||!0!==u&&C(nI,t.get("type"))<0||(e=l.getComponent(sT(r),a).axis,o=t.coordinateSystem,null!=(i={x:"y",y:"x",radius:"angle",angle:"radius"}[r])&&o.getOtherAxis&&(n=o.getOtherAxis(e).inverse),i=t.getData().mapDimension(i),s={thisAxis:e,series:t,thisDim:r,otherDim:i,otherAxisInverse:n})},this)},this),s},m.prototype._renderHandle=function(){var t,e,o=this.group,i=this._displayables,r=i.handles=[null,null],a=i.handleLabels=[null,null],s=this._displayables.sliderGroup,n=this._size,l=this.dataZoomModel,u=this.api,h=l.get("borderRadius")||0,c=l.get("brushSelect"),p=i.filler=new tI({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}}),h=(s.add(p),s.add(new tI({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:n[0],height:n[1],r:h},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),O([0,1],function(t){var e=l.get("handleIcon"),e=sm(e=!om[e]&&e.indexOf("path://")<0&&e.indexOf("image://")<0?"path://"+e:e,-1,0,2,2,null,!0),i=(e.attr({cursor:aI(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()),n=l.get("handleSize"),n=(this._handleHeight=rr(n,this._size[1]),this._handleWidth=i.width/i.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(),Wl(e),l.get("handleColor")),i=(null!=n&&(e.style.fill=n),s.add(r[t]=e),l.getModel("textStyle"));o.add(a[t]=new Ws({silent:!0,invisible:!0,style:wc(i,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:i.getTextColor(),font:i.getFont()}),z2:10}))},this),p);c&&(p=rr(l.get("moveHandleSize"),n[1]),t=i.moveHandle=new Bs({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:n[1]-.5,height:p}}),c=.8*p,(c=i.moveHandleIcon=sm(l.get("moveHandleIcon"),-c/2,-c/2,c,c,"#fff",!0)).silent=!0,c.y=n[1]+p/2-.5,t.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle(),e=Math.min(n[1]/2,Math.max(p,10)),(h=i.moveZone=new Bs({invisible:!0,shape:{y:n[1]-e,height:p+e}})).on("mouseover",function(){u.enterEmphasis(t)}).on("mouseout",function(){u.leaveEmphasis(t)}),s.add(t),s.add(c),s.add(h)),h.attr({draggable:!0,cursor:aI(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)})},m.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[or(t[0],[0,100],e,!0),or(t[1],[0,100],e,!0)]},m.prototype._updateInterval=function(t,e){var i=this.dataZoomModel,n=this._handleEnds,o=this._getViewExtent(),r=i.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100],e=(xT(e,n,o,i.get("zoomLock")?"all":t,null!=r.minSpan?or(r.minSpan,a,o,!0):null,null!=r.maxSpan?or(r.maxSpan,a,o,!0):null),this._range),i=this._range=sr([or(n[0],o,a,!0),or(n[1],o,a,!0)]);return!e||e[0]!==i[0]||e[1]!==i[1]},m.prototype._updateView=function(t){for(var n=this._displayables,o=this._handleEnds,e=sr(o.slice()),r=this._size,i=(O([0,1],function(t){var e=n.handles[t],i=this._handleHeight;e.attr({scaleX:i/2,scaleY:i/2,x:o[t]+(t?-1:1),y:r[1]/2-i/2})},this),n.filler.setShape({x:e[0],y:0,width:e[1]-e[0],height:r[1]}),{x:e[0],width:e[1]-e[0]}),a=(n.moveHandle&&(n.moveHandle.setShape(i),n.moveZone.setShape(i),n.moveZone.getBoundingRect(),n.moveHandleIcon)&&n.moveHandleIcon.attr("x",i.x+i.width/2),n.dataShadowSegs),s=[0,e[0],e[1],r[0]],l=0;l<a.length;l++){var u=a[l],h=u.getClipPath();h||(h=new Bs,u.setClipPath(h)),h.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(t)},m.prototype._updateDataInfo=function(t){var e,i,n=this.dataZoomModel,o=this._displayables,r=o.handleLabels,a=this._orient,s=["",""],l=(n.get("showDetail")&&(n=n.findRepresentativeAxisProxy())&&(e=n.getAxisModel().axis,i=this._range,t=t?n.calculateDataWindow({start:i[0],end:i[1]}).valueWindow:n.getDataValueWindow(),s=[this._formatLabel(t[0],e),this._formatLabel(t[1],e)]),sr(this._handleEnds.slice()));function u(t){var e=nc(o.handles[t].parent,this.group),i=rc(0===t?"right":"left",e),n=this._handleWidth/2+5,n=oc([l[t]+(0===t?-n:n),this._size[1]/2],e);r[t].setStyle({x:n[0],y:n[1],verticalAlign:a===eI?"middle":i,align:a===eI?i:"center",text:s[t]})}u.call(this,0),u.call(this,1)},m.prototype._formatLabel=function(t,e){var i=this.dataZoomModel,n=i.get("labelFormatter"),i=i.get("labelPrecision"),e=(null!=i&&"auto"!==i||(i=e.getPixelPrecision()),null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(i,20)));return D(n)?n(t,e):F(n)?n.replace("{value}",e):e},m.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,i=e.handleLabels;i[0].attr("invisible",!t),i[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},m.prototype._onDragMove=function(t,e,i,n){this._dragging=!0,Ie(n.event);n=oc([e,i],this._displayables.sliderGroup.getLocalTransform(),!0),e=this._updateInterval(t,n[0]),i=this.dataZoomModel.get("realtime");this._updateView(!i),e&&i&&this._dispatchZoomAction(!0)},m.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),this.dataZoomModel.get("realtime")||this._dispatchZoomAction(!1)},m.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))},m.prototype._onBrushStart=function(t){var e=t.offsetX,t=t.offsetY;this._brushStart=new T(e,t),this._brushing=!0,this._brushStartTime=+new Date},m.prototype._onBrushEnd=function(t){var e,i,n;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||(i=this._getViewExtent(),this._range=sr([or(e.x,i,n=[0,100],!0),or(e.x+e.width,i,n,!0)]),this._handleEnds=[e.x,e.x+e.width],this._updateView(),this._dispatchZoomAction(!1)))},m.prototype._onBrush=function(t){this._brushing&&(Ie(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},m.prototype._updateBrushRect=function(t,e){var i=this._displayables,n=this.dataZoomModel,o=i.brushRect,n=(o||(o=i.brushRect=new tI({silent:!0,style:n.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1),this._brushStart),i=this._displayables.sliderGroup,t=i.transformCoordToLocal(t,e),e=i.transformCoordToLocal(n.x,n.y),i=this._size;t[0]=Math.max(Math.min(i[0],t[0]),0),o.setShape({x:e[0],y:0,width:t[0]-e[0],height:i[1]})},m.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?oI:null,start:e[0],end:e[1]})},m.prototype._findCoordRect=function(){var t,e,i=uT(this.dataZoomModel).infoList;return t=(t=!t&&i.length?(i=i[0].model.coordinateSystem).getRect&&i.getRect():t)?t:{x:.2*(i=this.api.getWidth()),y:.2*(e=this.api.getHeight()),width:.6*i,height:.6*e}},m.type="dataZoom.slider",m);function m(){var t=null!==JT&&JT.apply(this,arguments)||this;return t.type=m.type,t._displayables={},t}function aI(t){return"vertical"===t?"ns-resize":"ew-resize"}function sI(t){t.registerComponentModel($T),t.registerComponentView(rI),qT(t)}Y_(function(t){Y_(jT),Y_(sI)});var lI=function(t,e,i){t=y((uI[t]||{})[e]);return i&&V(t)?t[t.length-1]:t},uI={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},hI=O,cI=R,pI=-1,dI=(fI.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},fI.prototype.getNormalizer=function(){return S(this._normalizeData,this)},fI.listVisualTypes=function(){return ht(fI.visualHandlers)},fI.isValidType=function(t){return fI.visualHandlers.hasOwnProperty(t)},fI.eachVisual=function(t,e,i){R(t)?O(t,e,i):e.call(i,t)},fI.mapVisual=function(t,i,n){var o,r=V(t)?[]:R(t)?{}:(o=!0,null);return fI.eachVisual(t,function(t,e){t=i.call(n,t,e);o?r=t:r[e]=t}),r},fI.retrieveVisuals=function(i){var n,o={};return i&&hI(fI.visualHandlers,function(t,e){i.hasOwnProperty(e)&&(o[e]=i[e],n=!0)}),n?o:null},fI.prepareVisualTypes=function(t){if(V(t))t=t.slice();else{if(!cI(t))return[];var i=[];hI(t,function(t,e){i.push(e)}),t=i}return t.sort(function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1}),t},fI.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},fI.findPieceIndex=function(i,t,e){for(var n,o=1/0,r=0,a=t.length;r<a;r++){var s=t[r].value;if(null!=s){if(s===i||F(s)&&s===i+"")return r;e&&h(s,r)}}for(r=0,a=t.length;r<a;r++){var l=t[r],u=l.interval,l=l.close;if(u){if(u[0]===-1/0){if(TI(l[1],i,u[1]))return r}else if(u[1]===1/0){if(TI(l[0],u[0],i))return r}else if(TI(l[0],u[0],i)&&TI(l[1],i,u[1]))return r;e&&h(u[0],r),e&&h(u[1],r)}}if(e)return i===1/0?t.length-1:i===-1/0?0:n;function h(t,e){t=Math.abs(t-i);t<o&&(o=t,n=e)}},fI.visualHandlers={color:{applyVisual:vI("color"),getColorMapper:function(){var o=this.option;return S("category"===o.mappingMethod?function(t,e){return e||(t=this._normalizeData(t)),_I.call(this,t)}:function(t,e,i){var n=!!i;return i=_n(t=e?t:this._normalizeData(t),o.parsedVisual,i),n?i:Mn(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Mn(_n(t,this.option.parsedVisual),"rgba")},category:_I,piecewise:function(t,e){e=bI.call(this,e);return e=null==e?Mn(_n(t,this.option.parsedVisual),"rgba"):e},fixed:xI}},colorHue:yI(function(t,e){return bn(t,e)}),colorSaturation:yI(function(t,e){return bn(t,null,e)}),colorLightness:yI(function(t,e){return bn(t,null,null,e)}),colorAlpha:yI(Sn),decal:{applyVisual:vI("decal"),_normalizedToVisual:{linear:null,category:_I,piecewise:null,fixed:null}},opacity:{applyVisual:vI("opacity"),_normalizedToVisual:wI([0,1])},liftZ:{applyVisual:vI("liftZ"),_normalizedToVisual:{linear:xI,category:xI,piecewise:xI,fixed:xI}},symbol:{applyVisual:function(t,e,i){i("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:mI,category:_I,piecewise:function(t,e){e=bI.call(this,e);return e=null==e?mI.call(this,t):e},fixed:xI}},symbolSize:{applyVisual:vI("symbolSize"),_normalizedToVisual:wI([0,1])}},fI);function fI(t){var i,e=t.mappingMethod,n=t.type,t=this.option=y(t),n=(this.type=n,this.mappingMethod=e,this._normalizeData=MI[e],fI.visualHandlers[n]);if(this.applyVisual=n.applyVisual,this.getColorMapper=n.getColorMapper,this._normalizedToVisual=n._normalizedToVisual[e],"piecewise"===e)gI(t),n=(i=t).pieceList,i.hasSpecialVisual=!1,O(n,function(t,e){t.originIndex=e,null!=t.visual&&(i.hasSpecialVisual=!0)});else if("category"===e)if(t.categories){var o,n=t,r=n.categories,a=n.categoryMap={},s=n.visual;hI(r,function(t,e){a[t]=e}),V(s)||(o=[],R(s)?hI(s,function(t,e){e=a[e];o[null!=e?e:pI]=t}):o[pI]=s,s=SI(n,o));for(var l=r.length-1;0<=l;l--)null==s[l]&&(delete a[r[l]],r.pop())}else gI(t,!0);else Mt("linear"!==e||t.dataExtent),gI(t)}function gI(t,e){var i=t.visual,n=[];R(i)?hI(i,function(t){n.push(t)}):null!=i&&n.push(i);e||1!==n.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(n[1]=n[0]),SI(t,n)}function yI(n){return{applyVisual:function(t,e,i){t=this.mapValueToVisual(t);i("color",n(e("color"),t))},_normalizedToVisual:wI([0,1])}}function mI(t){var e=this.option.visual;return e[Math.round(or(t,[0,1],[0,e.length-1],!0))]||{}}function vI(n){return function(t,e,i){i(n,this.mapValueToVisual(t))}}function _I(t){var e=this.option.visual;return e[this.option.loop&&t!==pI?t%e.length:t]}function xI(){return this.option.visual[0]}function wI(i){return{linear:function(t){return or(t,i,this.option.visual,!0)},category:_I,piecewise:function(t,e){e=bI.call(this,e);return e=null==e?or(t,i,this.option.visual,!0):e},fixed:xI}}function bI(t){var e=this.option,i=e.pieceList;if(e.hasSpecialVisual){e=i[dI.findPieceIndex(t,i)];if(e&&e.visual)return e.visual[this.type]}}function SI(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=B(e,function(t){t=yn(t);return t||[0,0,0,1]})),e}var MI={linear:function(t){return or(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,t=dI.findPieceIndex(t,e,!0);if(null!=t)return or(t,[0,e.length-1],[0,1],!0)},category:function(t){t=this.option.categories?this.option.categoryMap[t]:t;return null==t?pI:t},fixed:Bt};function TI(t,e,i){return t?e<=i:e<i}var II=O;function CI(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return 1}function DI(e,t,o){var r={};return II(t,function(i){var n=r[i]=(t.prototype.__hidden=t.prototype,new t);function t(){}II(e[i],function(t,e){dI.isValidType(e)&&(t={type:e,visual:t},o&&o(t,i),n[e]=new dI(t),"opacity"===e)&&((t=y(t)).type="colorAlpha",n.__hidden.__alphaForOpacity=new dI(t))})}),r}function kI(t,f,g,y){var m={};return O(t,function(t){var e=dI.prepareVisualTypes(f[t]);m[t]=e}),{progress:function(t,a){var e,s;function i(t){return Uy(a,s,t)}function n(t,e){var i=a,n=s,o=t,r=e;switch(o){case"color":i.ensureUniqueItemVisual(n,"style")[i.getVisual("drawType")]=r,i.setItemVisual(n,"colorFromPalette",!1);break;case"opacity":i.ensureUniqueItemVisual(n,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":i.setItemVisual(n,o,r)}}null!=y&&(e=a.getDimensionIndex(y));for(var o=a.getStore();null!=(s=t.next());){var r=a.getRawDataItem(s);if(!r||!1!==r.visualMap)for(var l=null!=y?o.get(e,s):s,r=g(l),u=f[r],h=m[r],c=0,p=h.length;c<p;c++){var d=h[c];u[d]&&u[d].applyVisual(l,i,n)}}}}}var AI,LI=dI.mapVisual,PI=dI.eachVisual,OI=V,RI=O,zI=sr,NI=or,e=(u(EI,AI=g),EI.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i)},EI.prototype.optionUpdated=function(t,e){var i,n,o,r=this.option;e||(i=r,n=t,O(e=this.replacableOptionKeys,function(t){n.hasOwnProperty(t)&&CI(n[t])&&(o=!0)}),o&&O(e,function(t){n.hasOwnProperty(t)&&CI(n[t])?i[t]=y(n[t]):delete i[t]})),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},EI.prototype.resetVisual=function(t){var e=this.stateList;t=S(t,this),this.controllerVisuals=DI(this.option.controller,e,t),this.targetVisuals=DI(this.option.target,e,t)},EI.prototype.getItemSymbol=function(){return null},EI.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,i=[];return null==t||"all"===t?this.ecModel.eachSeries(function(t,e){i.push(e)}):i=Tr(t),i},EI.prototype.eachTargetSeries=function(e,i){O(this.getTargetSeriesIndices(),function(t){t=this.ecModel.getSeriesByIndex(t);t&&e.call(i,t)},this)},EI.prototype.isTargetSeries=function(e){var i=!1;return this.eachTargetSeries(function(t){t===e&&(i=!0)}),i},EI.prototype.formatValueText=function(t,e,i){var n,o=this.option,r=o.precision,a=this.dataBound,o=o.formatter,e=(i=i||["<",">"],V(t)&&(t=t.slice(),n=!0),e?t:n?[s(t[0]),s(t[1])]:s(t));return F(o)?o.replace("{value}",n?e[0]:e).replace("{value2}",n?e[1]:e):D(o)?n?o(t[0],t[1]):o(t):n?t[0]===a[0]?i[0]+" "+e[1]:t[1]===a[1]?i[1]+" "+e[0]:e[0]+" - "+e[1]:e;function s(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(r,20))}},EI.prototype.resetExtent=function(){var t=this.option,t=zI([t.min,t.max]);this._dataExtent=t},EI.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var i=t.dimensions,n=i.length-1;0<=n;n--){var o=i[n],o=t.getDimensionInfo(o);if(!o.isCalculationCoord)return o.storeDimIndex}},EI.prototype.getExtent=function(){return this._dataExtent.slice()},EI.prototype.completeVisualOption=function(){var e=this.ecModel,i=this.option,t={inRange:i.inRange,outOfRange:i.outOfRange},n=i.target||(i.target={}),o=i.controller||(i.controller={}),u=(d(n,t),d(o,t),this.isCategory());function r(t){OI(i.color)&&!t.inRange&&(t.inRange={color:i.color.slice().reverse()}),t.inRange=t.inRange||{color:e.get("gradientColor")}}r.call(this,n),r.call(this,o),function(t,e,i){var e=t[e],n=t[i];e&&!n&&(n=t[i]={},RI(e,function(t,e){var i;dI.isValidType(e)&&null!=(i=lI(e,"inactive",u))&&(n[e]=i,"color"!==e||n.hasOwnProperty("opacity")||n.hasOwnProperty("colorAlpha")||(n.opacity=[0,0]))}))}.call(this,n,"inRange","outOfRange"),function(o){var r=(o.inRange||{}).symbol||(o.outOfRange||{}).symbol,a=(o.inRange||{}).symbolSize||(o.outOfRange||{}).symbolSize,s=this.get("inactiveColor"),l=this.getItemSymbol()||"roundRect";RI(this.stateList,function(t){var e,i=this.itemSize,n=o[t],t=(null==(n=n||(o[t]={color:u?s:[s]})).symbol&&(n.symbol=r&&y(r)||(u?l:[l])),null==n.symbolSize&&(n.symbolSize=a&&y(a)||(u?i[0]:[i[0],i[0]])),n.symbol=LI(n.symbol,function(t){return"none"===t?l:t}),n.symbolSize);null!=t&&(e=-1/0,PI(t,function(t){e<t&&(e=t)}),n.symbolSize=LI(t,function(t){return NI(t,[0,e],[0,i[0]],!0)}))},this)}.call(this,o)},EI.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},EI.prototype.isCategory=function(){return!!this.option.categories},EI.prototype.setSelected=function(t){},EI.prototype.getSelected=function(){return null},EI.prototype.getValueState=function(t){return null},EI.prototype.getVisualMeta=function(t){return null},EI.type="visualMap",EI.dependencies=["series"],EI.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},EI);function EI(){var t=null!==AI&&AI.apply(this,arguments)||this;return t.type=EI.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}var BI,VI=[20,140],FI=(u(HI,BI=e),HI.prototype.optionUpdated=function(t,e){BI.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()}),this._resetRange()},HI.prototype.resetItemSize=function(){BI.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;null!=t[0]&&!isNaN(t[0])||(t[0]=VI[0]),null!=t[1]&&!isNaN(t[1])||(t[1]=VI[1])},HI.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):V(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},HI.prototype.completeVisualOption=function(){BI.prototype.completeVisualOption.apply(this,arguments),O(this.stateList,function(t){t=this.option.controller[t].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},HI.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},HI.prototype.getSelected=function(){var t=this.getExtent(),e=sr((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},HI.prototype.getValueState=function(t){var e=this.option.range,i=this.getExtent();return(e[0]<=i[0]||e[0]<=t)&&(e[1]>=i[1]||t<=e[1])?"inRange":"outOfRange"},HI.prototype.findTargetDataIndices=function(n){var o=[];return this.eachTargetSeries(function(t){var i=[],e=t.getData();e.each(this.getDataDimensionIndex(e),function(t,e){n[0]<=t&&t<=n[1]&&i.push(e)},this),o.push({seriesId:t.id,dataIndex:i})},this),o},HI.prototype.getVisualMeta=function(i){var t=GI(0,0,this.getExtent()),e=GI(0,0,this.option.range.slice()),n=[];function o(t,e){n.push({value:t,color:i(t,e)})}for(var r=0,a=0,s=e.length,l=t.length;a<l&&(!e.length||t[a]<=e[0]);a++)t[a]<e[r]&&o(t[a],"outOfRange");for(var u=1;r<s;r++,u=0)u&&n.length&&o(e[r],"outOfRange"),o(e[r],"inRange");for(u=1;a<l;a++)(!e.length||e[e.length-1]<t[a])&&(u&&(n.length&&o(n[n.length-1].value,"outOfRange"),u=0),o(t[a],"outOfRange"));var h=n.length;return{stops:n,outerColors:[h?n[0].color:"transparent",h?n[h-1].color:"transparent"]}},HI.type="visualMap.continuous",HI.defaultOption=Yc(e.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),HI);function HI(){var t=null!==BI&&BI.apply(this,arguments)||this;return t.type=HI.type,t}function GI(t,e,i){if(i[0]===i[1])return i.slice();for(var n=(i[1]-i[0])/200,o=i[0],r=[],a=0;a<=200&&o<i[1];a++)r.push(o),o+=n;return r.push(i[1]),r}u(XI,WI=Jg),XI.prototype.init=function(t,e){this.ecModel=t,this.api=e},XI.prototype.render=function(t,e,i,n){!1===(this.visualMapModel=t).get("show")?this.group.removeAll():this.doRender(t,e,i,n)},XI.prototype.renderBackground=function(t){var e=this.visualMapModel,i=kp(e.get("padding")||0),n=t.getBoundingRect();t.add(new Bs({z2:-1,silent:!0,shape:{x:n.x-i[3],y:n.y-i[0],width:n.width+i[3]+i[1],height:n.height+i[0]+i[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},XI.prototype.getControllerVisual=function(i,n,o){var t,e=(o=o||{}).forceState,r=this.visualMapModel,a={};function s(t){return a[t]}function l(t,e){a[t]=e}"color"===n&&(t=r.get("contentColor"),a.color=t);var u=r.controllerVisuals[e||r.getValueState(i)];return O(dI.prepareVisualTypes(u),function(t){var e=u[t];o.convertOpacityToAlpha&&"opacity"===t&&(t="colorAlpha",e=u.__alphaForOpacity),dI.dependsOn(t,n)&&e&&e.applyVisual(i,s,l)}),a[n]},XI.prototype.positionGroup=function(t){var e,i,n,o,r,a,s,l=this.visualMapModel,u=this.api;t=t,l=l.getBoxLayoutParams(),u={width:u.getWidth(),height:u.getHeight()},a=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],i=i&&i.boundingMode||"all",(n=n||t).x=t.x,n.y=t.y,(a||s)&&("raw"===i?o="group"===t.type?new U(0,0,+l.width||0,+l.height||0):t.getBoundingRect():(o=t.getBoundingRect(),t.needLocalTransform()&&(r=t.getLocalTransform(),(o=o.clone()).applyTransform(r))),r=Gp(E({width:o.width,height:o.height},l),u,e),l=a?r.x-o.x:0,u=s?r.y-o.y:0,"raw"===i?(n.x=l,n.y=u):(n.x+=l,n.y+=u),n===t)&&t.markRedraw()},XI.prototype.doRender=function(t,e,i,n){},XI.type="visualMap";var WI,_h=XI;function XI(){var t=null!==WI&&WI.apply(this,arguments)||this;return t.type=XI.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}var UI=[["left","right","width"],["top","bottom","height"]];function YI(t,e,i){var n=t.option,t=n.align;if(null!=t&&"auto"!==t)return t;for(var t={width:e.getWidth(),height:e.getHeight()},o="horizontal"===n.orient?1:0,r=UI[o],a=[0,null,10],s={},l=0;l<3;l++)s[UI[1-o][l]]=a[l],s[r[l]]=2===l?i[0]:n[r[l]];var e=[["x","width",3],["y","height",0]][o],u=Gp(s,t,n.padding);return r[(u.margin[e[2]]||0)+u[e[0]]+.5*u[e[1]]<.5*t[e[1]]?0:1]}function ZI(t,e){return O(t||[],function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}var qI,jI=or,KI=O,$I=Math.min,QI=Math.max,JI=(u(v,qI=_h),v.prototype.init=function(t,e){qI.prototype.init.call(this,t,e),this._hoverLinkFromSeriesMouseOver=S(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=S(this._hideIndicator,this)},v.prototype.doRender=function(t,e,i,n){n&&"selectDataRange"===n.type&&n.from===this.uid||this._buildView()},v.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group,t=(this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e),t.get("text"));this._renderEndsText(e,t,0),this._renderEndsText(e,t,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},v.prototype._renderEndsText=function(t,e,i){var n,o,r;e&&(e=null!=(e=e[1-i])?e+"":"",o=(n=this.visualMapModel).get("textGap"),n=n.itemSize,r=this._shapes.mainGroup,n=this._applyTransform([n[0]/2,0===i?-o:n[1]+o],r),o=this._applyTransform(0===i?"bottom":"top",r),i=this._orient,r=this.visualMapModel.textStyleModel,this.group.add(new Ws({style:wc(r,{x:n[0],y:n[1],verticalAlign:"horizontal"===i?"middle":o,align:"horizontal"===i?o:"center",text:e})})))},v.prototype._renderBar=function(t){var e=this.visualMapModel,i=this._shapes,n=e.itemSize,o=this._orient,r=this._useHandle,a=YI(e,this.api,n),a=i.mainGroup=this._createBarGroup(a),s=new Yo,s=(a.add(s),s.add(i.outOfRange=tC()),s.add(i.inRange=tC(null,r?iC(this._orient):null,S(this._dragHandle,this,"all",!1),S(this._dragHandle,this,"all",!0))),s.setClipPath(new Bs({shape:{x:0,y:0,width:n[0],height:n[1],r:3}})),e.textStyleModel.getTextRect("国")),s=QI(s.width,s.height);r&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(e,a,0,n,s,o),this._createHandle(e,a,1,n,s,o)),this._createIndicator(e,a,n,s,o),t.add(a)},v.prototype._createHandle=function(t,e,i,n,o,r){var a=S(this._dragHandle,this,i,!1),s=S(this._dragHandle,this,i,!0),l=Po(t.get("handleSize"),n[0]),u=sm(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),h=iC(this._orient),n=(u.attr({cursor:h,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){Ie(t.event)}}),u.x=n[0]/2,u.useStyle(t.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),ql(u,!0),e.add(u),this.visualMapModel.textStyleModel),t=new Ws({cursor:h,draggable:!0,drift:a,onmousemove:function(t){Ie(t.event)},ondragend:s,style:wc(n,{x:0,y:0,text:""})}),e=(t.ensureState("blur").style={opacity:.1},t.stateTransition={duration:200},this.group.add(t),[l,0]),h=this._shapes;h.handleThumbs[i]=u,h.handleLabelPoints[i]=e,h.handleLabels[i]=t},v.prototype._createIndicator=function(t,e,i,n,o){var r=Po(t.get("indicatorSize"),i[0]),r=sm(t.get("indicatorIcon"),-r/2,-r/2,r,r,null,!0),t=(r.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2}),t.getModel("indicatorStyle").getItemStyle()),a=(r instanceof ks?(a=r.style,r.useStyle(P({image:a.image,x:a.x,y:a.y,width:a.width,height:a.height},t))):r.useStyle(t),e.add(r),this.visualMapModel.textStyleModel),t=new Ws({silent:!0,invisible:!0,style:wc(a,{x:0,y:0,text:""})}),e=(this.group.add(t),[("horizontal"===o?n/2:6)+i[0]/2,0]),a=this._shapes;a.indicator=r,a.indicatorLabel=t,a.indicatorLabelPoint=e,this._firstShowIndicator=!0},v.prototype._dragHandle=function(t,e,i,n){this._useHandle&&(this._dragging=!e,e||(i=this._applyTransform([i,n],this._shapes.mainGroup,!0),this._updateInterval(t,i[1]),this._hideIndicator(),this._updateView()),e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?this._hovering||this._clearHoverLinkToSeries():eC(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1))},v.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),i=t.getExtent(),t=[0,t.itemSize[1]];this._handleEnds=[jI(e[0],i,t,!0),jI(e[1],i,t,!0)]},v.prototype._updateInterval=function(t,e){var i=this.visualMapModel,n=this._handleEnds,o=[0,i.itemSize[1]],e=(xT(e=e||0,n,o,t,0),i.getExtent());this._dataInterval=[jI(n[0],o,e,!0),jI(n[1],o,e,!0)]},v.prototype._updateView=function(t){var e=this.visualMapModel,i=e.getExtent(),n=this._shapes,e=[0,e.itemSize[1]],t=t?e:this._handleEnds,o=this._createBarVisual(this._dataInterval,i,t,"inRange"),i=this._createBarVisual(i,i,e,"outOfRange");n.inRange.setStyle({fill:o.barColor}).setShape("points",o.barPoints),n.outOfRange.setStyle({fill:i.barColor}).setShape("points",i.barPoints),this._updateHandle(t,o)},v.prototype._createBarVisual=function(t,e,i,n){var n={forceState:n,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,n),t=[this.getControllerVisual(t[0],"symbolSize",n),this.getControllerVisual(t[1],"symbolSize",n)],n=this._createBarPoints(i,t);return{barColor:new bh(0,0,0,1,o),barPoints:n,handlesColor:[o[0].color,o[o.length-1].color]}},v.prototype._makeColorGradient=function(t,e){var i=[],n=(t[1]-t[0])/100;i.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var o=1;o<100;o++){var r=t[0]+n*o;if(r>t[1])break;i.push({color:this.getControllerVisual(r,"color",e),offset:o/100})}return i.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),i},v.prototype._createBarPoints=function(t,e){var i=this.visualMapModel.itemSize;return[[i[0]-e[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-e[1],t[1]]]},v.prototype._createBarGroup=function(t){var e=this._orient,i=this.visualMapModel.get("inverse");return new Yo("horizontal"!==e||i?"horizontal"===e&&i?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||i?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},v.prototype._updateHandle=function(n,o){var r,a,s,l,u,h;this._useHandle&&(r=this._shapes,a=this.visualMapModel,s=r.handleThumbs,l=r.handleLabels,u=a.itemSize,h=a.getExtent(),KI([0,1],function(t){var e=s[t],i=(e.setStyle("fill",o.handlesColor[t]),e.y=n[t],jI(n[t],[0,u[1]],h,!0)),i=this.getControllerVisual(i,"symbolSize"),i=(e.scaleX=e.scaleY=i/u[0],e.x=u[0]-i/2,oc(r.handleLabelPoints[t],nc(e,this.group)));l[t].setStyle({x:i[0],y:i[1],text:a.formatValueText(this._dataInterval[t]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",r.mainGroup):"center"})},this))},v.prototype._showIndicator=function(t,e,i,n){var o=this.visualMapModel,r=o.getExtent(),a=o.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var h=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),c=this.getControllerVisual(t,"symbolSize"),t=jI(t,r,s,!0),r=a[0]-c/2,s={x:u.x,y:u.y},a=(u.y=t,u.x=r,oc(l.indicatorLabelPoint,nc(u,this.group))),c=l.indicatorLabel,l=(c.attr("invisible",!1),this._applyTransform("left",l.mainGroup)),p="horizontal"===this._orient,i=(c.setStyle({text:(i||"")+o.formatValueText(e),verticalAlign:p?l:"middle",align:p?"center":l}),{x:r,y:t,style:{fill:h}}),e={style:{x:a[0],y:a[1]}},d=(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator?(p={duration:100,easing:"cubicInOut",additive:!0},u.x=s.x,u.y=s.y,u.animateTo(i,p),c.animateTo(e,p)):(u.attr(i),c.attr(e)),this._firstShowIndicator=!1,this._shapes.handleLabels);if(d)for(var f=0;f<d.length;f++)this.api.enterBlur(d[f])}},v.prototype._enableHoverLinkToSeries=function(){var i=this;this._shapes.mainGroup.on("mousemove",function(t){var e;i._hovering=!0,i._dragging||(e=i.visualMapModel.itemSize,(t=i._applyTransform([t.offsetX,t.offsetY],i._shapes.mainGroup,!0,!0))[1]=$I(QI(0,t[1]),e[1]),i._doHoverLinkToSeries(t[1],0<=t[0]&&t[0]<=e[0]))}).on("mouseout",function(){i._hovering=!1,i._dragging||i._clearHoverLinkToSeries()})},v.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},v.prototype._doHoverLinkToSeries=function(t,e){var i,n,o,r=this.visualMapModel,a=r.itemSize;function s(t,e,i){for(var n=0,o=t.length;n<o;n++){var r=Pr(t[n].seriesId,null);if(null==r)return;for(var a=Tr(t[n].dataIndex),s=i&&i[r],l=0,u=a.length;l<u;l++){var h=a[l];s&&s[h]?s[h]=null:(e[r]||(e[r]={}))[h]=1}}}function l(t,e){var i,n,o=[];for(i in t)t.hasOwnProperty(i)&&null!=t[i]&&(e?o.push(+i):(n=l(t[i],!0)).length&&o.push({seriesId:i,dataIndex:n}));return o}r.option.hoverLink&&(a=[0,a[1]],n=r.getExtent(),i=[(t=$I(QI(a[0],t),a[1]))-(o=function(t,e,i){var n=6,t=t.get("hoverLinkDataSize");t&&(n=jI(t,e,i,!0)/2);return n}(r,n,a)),t+o],t=jI(t,a,n,!0),n=[jI(i[0],a,n,!0),jI(i[1],a,n,!0)],i[0]<a[0]&&(n[0]=-1/0),a[1]<i[1]&&(n[1]=1/0),e&&(n[0]===-1/0?this._showIndicator(t,n[1],"< ",o):n[1]===1/0?this._showIndicator(t,n[0],"> ",o):this._showIndicator(t,t,"≈ ",o)),a=this._hoverLinkDataIndices,i=[],(e||eC(r))&&(i=this._hoverLinkDataIndices=r.findTargetDataIndices(n)),t=i,o={},s(a||[],e={}),s(t||[],o,e),n=[l(e),l(o)],this._dispatchHighDown("downplay",ZI(n[0],r)),this._dispatchHighDown("highlight",ZI(n[1],r)))},v.prototype._hoverLinkFromSeriesMouseOver=function(t){var e,i;qy(t.target,function(t){t=k(t);return null!=t.dataIndex&&(e=t,1)},!0),e&&(t=this.ecModel.getSeriesByIndex(e.seriesIndex),(i=this.visualMapModel).isTargetSeries(t))&&(i=(t=t.getData(e.dataType)).getStore().get(i.getDataDimensionIndex(t),e.dataIndex),isNaN(i)||this._showIndicator(i,i))},v.prototype._hideIndicator=function(){var t=this._shapes,e=(t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0),this._shapes.handleLabels);if(e)for(var i=0;i<e.length;i++)this.api.leaveBlur(e[i])},v.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",ZI(t,this.visualMapModel)),t.length=0},v.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},v.prototype._applyTransform=function(t,e,i,n){e=nc(e,n?null:this.group);return(V(t)?oc:rc)(t,e,i)},v.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},v.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},v.type="visualMap.continuous",v);function v(){var t=null!==qI&&qI.apply(this,arguments)||this;return t.type=v.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}function tC(t,e,i,n){return new ju({shape:{points:t},draggable:!!i,cursor:e,drift:i,onmousemove:function(t){Ie(t.event)},ondragend:n})}function eC(t){var e=t.get("hoverLinkOnHandle");return null==e?t.get("realtime"):e}function iC(t){return"vertical"===t?"ns-resize":"ew-resize"}function nC(e,t){t.eachComponent({mainType:"visualMap",query:e},function(t){t.setSelected(e.selected)})}var oC={type:"selectDataRange",event:"dataRangeSelected",update:"update"},rC=[{createOnAllSeries:!0,reset:function(i,t){var n=[];return t.eachComponent("visualMap",function(t){var e=i.pipelineContext;!t.isTargetSeries(i)||e&&e.large||n.push(kI(t.stateList,t.targetVisuals,S(t.getValueState,t),t.getDataDimensionIndex(i.getData())))}),n}},{createOnAllSeries:!0,reset:function(i,t){var n=i.getData(),o=[];t.eachComponent("visualMap",function(t){var e;t.isTargetSeries(i)&&(e=t.getVisualMeta(S(aC,null,i,t))||{stops:[],outerColors:[]},0<=(t=t.getDataDimensionIndex(n)))&&(e.dimension=t,o.push(e))}),i.getData().setVisual("visualMeta",o)}}];function aC(t,e,i,n){for(var o=e.targetVisuals[n],r=dI.prepareVisualTypes(o),a={color:Yy(t.getData(),"color")},s=0,l=r.length;s<l;s++){var u=r[s],u=o["opacity"===u?"__alphaForOpacity":u];u&&u.applyVisual(i,h,c)}return a.color;function h(t){return a[t]}function c(t,e){a[t]=e}}var sC=O;function lC(t){t=t&&t.visualMap;V(t)||(t=t?[t]:[]),sC(t,function(t){t&&(uC(t,"splitList")&&!uC(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList),t=t.pieces)&&V(t)&&sC(t,function(t){R(t)&&(uC(t,"start")&&!uC(t,"min")&&(t.min=t.start),uC(t,"end"))&&!uC(t,"max")&&(t.max=t.end)})})}function uC(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var hC=!1;function cC(e){hC||(hC=!0,e.registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?0<t.pieces.length:0<t.splitNumber)&&!t.calculable?"piecewise":"continuous"}),e.registerAction(oC,nC),O(rC,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(lC))}function pC(t){t.registerComponentModel(FI),t.registerComponentView(JI),cC(t)}u(gC,dC=e),gC.prototype.optionUpdated=function(t,e){dC.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode(),n=(this._pieceList=[],yC[this._mode].call(this,this._pieceList),this._resetSelected(t,e),this.option.categories);this.resetVisual(function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=y(n)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=B(this._pieceList,function(t){return t=y(t),"inRange"!==e&&(t.visual=null),t}))})},gC.prototype.completeVisualOption=function(){var n=this.option,i={},t=dI.listVisualTypes(),o=this.isCategory();function r(t,e,i){return t&&t[e]&&t[e].hasOwnProperty(i)}O(n.pieces,function(e){O(t,function(t){e.hasOwnProperty(t)&&(i[t]=1)})}),O(i,function(t,e){var i=!1;O(this.stateList,function(t){i=i||r(n,t,e)||r(n.target,t,e)},this),i||O(this.stateList,function(t){(n[t]||(n[t]={}))[e]=lI(e,"inRange"===t?"active":"inactive",o)})},this),dC.prototype.completeVisualOption.apply(this,arguments)},gC.prototype._resetSelected=function(t,e){var i,n=this.option,o=this._pieceList,r=(e?n:t).selected||{};n.selected=r,O(o,function(t,e){t=this.getSelectedMapKey(t);r.hasOwnProperty(t)||(r[t]=!0)},this),"single"===n.selectedMode&&(i=!1,O(o,function(t,e){t=this.getSelectedMapKey(t);r[t]&&(i?r[t]=!1:i=!0)},this))},gC.prototype.getItemSymbol=function(){return this.get("itemSymbol")},gC.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},gC.prototype.getPieceList=function(){return this._pieceList},gC.prototype._determineMode=function(){var t=this.option;return t.pieces&&0<t.pieces.length?"pieces":this.option.categories?"categories":"splitNumber"},gC.prototype.setSelected=function(t){this.option.selected=y(t)},gC.prototype.getValueState=function(t){t=dI.findPieceIndex(t,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},gC.prototype.findTargetDataIndices=function(n){var o=[],r=this._pieceList;return this.eachTargetSeries(function(t){var i=[],e=t.getData();e.each(this.getDataDimensionIndex(e),function(t,e){dI.findPieceIndex(t,r)===n&&i.push(e)},this),o.push({seriesId:t.id,dataIndex:i})},this),o},gC.prototype.getRepresentValue=function(t){return this.isCategory()||null!=t.value?t.value:(t=t.interval||[])[0]===-1/0&&t[1]===1/0?0:(t[0]+t[1])/2},gC.prototype.getVisualMeta=function(n){var o,r,a,t,e,i;if(!this.isCategory())return o=[],r=["",""],(t=(a=this)._pieceList.slice()).length?((e=t[0].interval[0])!==-1/0&&t.unshift({interval:[-1/0,e]}),(e=t[t.length-1].interval[1])!==1/0&&t.push({interval:[e,1/0]})):t.push({interval:[-1/0,1/0]}),i=-1/0,O(t,function(t){t=t.interval;t&&(t[0]>i&&s([i,t[0]],"outOfRange"),s(t.slice()),i=t[1])},this),{stops:o,outerColors:r};function s(t,e){var i=a.getRepresentValue({interval:t}),i=(e=e||a.getValueState(i),n(i,e));t[0]===-1/0?r[0]=i:t[1]===1/0?r[1]=i:o.push({value:t[0],color:i},{value:t[1],color:i})}},gC.type="visualMap.piecewise",gC.defaultOption=Yc(e.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0});var dC,fC=gC;function gC(){var t=null!==dC&&dC.apply(this,arguments)||this;return t.type=gC.type,t._pieceList=[],t}var yC={splitNumber:function(t){var e=this.option,i=Math.min(e.precision,20),n=this.getExtent(),o=e.splitNumber,o=Math.max(parseInt(o,10),1);e.splitNumber=o;for(var r=(n[1]-n[0])/o;+r.toFixed(i)!==r&&i<5;)i++;e.precision=i,r=+r.toFixed(i),e.minOpen&&t.push({interval:[-1/0,n[0]],close:[0,0]});for(var a=0,s=n[0];a<o;s+=r,a++){var l=a===o-1?n[1]:s+r;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[n[1],1/0],close:[0,0]}),vr(t),O(t,function(t,e){t.index=e,t.text=this.formatValueText(t.interval)},this)},categories:function(e){var t=this.option;O(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),mC(t,e)},pieces:function(c){var t=this.option;O(t.pieces,function(t,e){e={text:"",index:e};if(null!=(t=R(t)?t:{value:t}).label&&(e.text=t.label),t.hasOwnProperty("value")){var i=e.value=t.value;e.interval=[i,i],e.close=[1,1]}else{for(var n=e.interval=[],o=e.close=[0,0],r=[1,0,1],a=[-1/0,1/0],s=[],l=0;l<2;l++){for(var u=[["gte","gt","min"],["lte","lt","max"]][l],h=0;h<3&&null==n[l];h++)n[l]=t[u[h]],o[l]=r[h],s[l]=2===h;null==n[l]&&(n[l]=a[l])}s[0]&&n[1]===1/0&&(o[0]=0),s[1]&&n[0]===-1/0&&(o[1]=0),n[0]===n[1]&&o[0]&&o[1]&&(e.value=n[0])}e.visual=dI.retrieveVisuals(t),c.push(e)},this),mC(t,c),vr(c),O(c,function(t){var e=t.close,e=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,e)},this)}};function mC(t,e){var i=t.inverse;("vertical"===t.orient?!i:i)&&e.reverse()}u(xC,vC=_h),xC.prototype.doRender=function(){var n=this.group,o=(n.removeAll(),this.visualMapModel),r=o.get("textGap"),t=o.textStyleModel,a=t.getFont(),s=t.getTextColor(),l=this._getItemAlign(),u=o.itemSize,t=this._getViewData(),e=t.endsText,h=xt(o.get("showLabel",!0),!e);e&&this._renderEndsText(n,e[0],u,h,l),O(t.viewPieceList,function(t){var e=t.piece,i=new Yo,t=(i.onclick=S(this._onItemClick,this,e),this._enableHoverLink(i,t.indexInModelPieceList),o.getRepresentValue(e));this._createItemSymbol(i,t,[0,0,u[0],u[1]]),h&&(t=this.visualMapModel.getValueState(t),i.add(new Ws({style:{x:"right"===l?-r:u[0]+r,y:u[1]/2,text:e.text,verticalAlign:"middle",align:l,font:a,fill:s,opacity:"outOfRange"===t?.5:1}}))),n.add(i)},this),e&&this._renderEndsText(n,e[1],u,h,l),Hp(o.get("orient"),n,o.get("itemGap")),this.renderBackground(n),this.positionGroup(n)},xC.prototype._enableHoverLink=function(t,i){var n=this,e=(t.on("mouseover",function(){return e("highlight")}).on("mouseout",function(){return e("downplay")}),function(t){var e=n.visualMapModel;e.option.hoverLink&&n.api.dispatchAction({type:t,batch:ZI(e.findTargetDataIndices(i),e)})})},xC.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;return"vertical"===e.orient?YI(t,this.api,t.itemSize):(t=e.align)&&"auto"!==t?t:"left"},xC.prototype._renderEndsText=function(t,e,i,n,o){var r,a;e&&(r=new Yo,a=this.visualMapModel.textStyleModel,r.add(new Ws({style:wc(a,{x:n?"right"===o?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:n?o:"center",text:e})})),t.add(r))},xC.prototype._getViewData=function(){var t=this.visualMapModel,e=B(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),i=t.get("text"),n=t.get("orient"),t=t.get("inverse");return("horizontal"===n?t:!t)?e.reverse():i=i&&i.slice().reverse(),{viewPieceList:e,endsText:i}},xC.prototype._createItemSymbol=function(t,e,i){t.add(sm(this.getControllerVisual(e,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(e,"color")))},xC.prototype._onItemClick=function(t){var i,n,e=this.visualMapModel,o=e.option,r=o.selectedMode;r&&(i=y(o.selected),n=e.getSelectedMapKey(t),"single"===r||!0===r?(i[n]=!0,O(i,function(t,e){i[e]=e===n})):i[n]=!i[n],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i}))},xC.type="visualMap.piecewise";var vC,_C=xC;function xC(){var t=null!==vC&&vC.apply(this,arguments)||this;return t.type=xC.type,t}function wC(t){t.registerComponentModel(fC),t.registerComponentView(_C),cC(t)}Y_(function(t){Y_(pC),Y_(wC)}),Y_(px);var bC={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},SC=(MC.prototype.evaluate=function(t){var e=typeof t;return F(e)?this._condVal.test(t):!!pt(e)&&this._condVal.test(t+"")},MC);function MC(t){null==(this._condVal=F(t)?new RegExp(t):vt(t)?t:null)&&f("")}IC.prototype.evaluate=function(){return this.value};var TC=IC;function IC(){}DC.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0};var CC=DC;function DC(){}AC.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1};var kC=AC;function AC(){}PC.prototype.evaluate=function(){return!this.child.evaluate()};var LC=PC;function PC(){}RC.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),i=t?this.valueParser(e):null,n=0;n<this.subCondList.length;n++)if(!this.subCondList[n].evaluate(t?i:e))return!1;return!0};var OC=RC;function RC(){}function zC(t,e){if(!0===t||!1===t)return(i=new TC).value=t,i;var i;if(EC(t)||f(""),t.and)return NC("and",t,e);if(t.or)return NC("or",t,e);if(t.not)return i=e,EC(r=(r=t).not)||f(""),(l=new LC).child=zC(r,i),l.child||f(""),l;for(var n=t,o=e,r=o.prepareGetValue(n),a=[],s=ht(n),l=n.parser,u=l?qf(l):null,h=0;h<s.length;h++){var c,p=s[h];"parser"===p||o.valueGetterAttrMap.get(p)||(c=Et(bC,p)?bC[p]:p,p=n[p],p=u?u(p):p,(c=function(t,e){return"eq"===t||"ne"===t?new tg("eq"===t,e):Et(jf,t)?new Kf(t,e):null}(c,p)||"reg"===c&&new SC(p))||f(""),a.push(c))}return a.length||f(""),(l=new OC).valueGetterParam=r,l.valueParser=u,l.getValue=o.getValue,l.subCondList=a,l}function NC(t,e,i){e=e[t],V(e)||f(""),e.length||f(""),t=new("and"===t?CC:kC);return t.children=B(e,function(t){return zC(t,i)}),t.children.length||f(""),t}function EC(t){return R(t)&&!st(t)}VC.prototype.evaluate=function(){return this._cond.evaluate()};var BC=VC;function VC(t,e){this._cond=zC(t,e)}var FC={type:"echarts:filter",transform:function(t){for(var e,i,n=t.upstream,o=(t=t.config,i={valueGetterAttrMap:N({dimension:!0}),prepareGetValue:function(t){var e=t.dimension,t=(Et(t,"dimension")||f(""),n.getDimensionInfo(e));return t||f(""),{dimIdx:t.index}},getValue:function(t){return n.retrieveValueFromItem(e,t.dimIdx)}},new BC(t,i)),r=[],a=0,s=n.count();a<s;a++)e=n.getRawDataItem(a),o.evaluate()&&r.push(e);return{data:r}}},HC={type:"echarts:sort",transform:function(t){for(var a=t.upstream,t=t.config,t=Tr(t),s=(t.length||f(""),[]),t=(O(t,function(t){var e=t.dimension,i=t.order,n=t.parser,t=t.incomparable,e=(null==e&&f(""),"asc"!==i&&"desc"!==i&&f(""),t&&"min"!==t&&"max"!==t&&f(""),"asc"!==i&&"desc"!==i&&f(""),a.getDimensionInfo(e)),o=(e||f(""),n?qf(n):null);n&&!o&&f(""),s.push({dimIdx:e.index,parser:o,comparator:new Qf(i,t)})}),a.sourceFormat),e=(t!==id&&t!==nd&&f(""),[]),i=0,n=a.count();i<n;i++)e.push(a.getRawDataItem(i));return e.sort(function(t,e){for(var i=0;i<s.length;i++){var n=s[i],o=a.retrieveValueFromItem(t,n.dimIdx),r=a.retrieveValueFromItem(e,n.dimIdx),n=(n.parser&&(o=n.parser(o),r=n.parser(r)),n.comparator.evaluate(o,r));if(0!==n)return n}return 0}),{data:e}}};Y_(function(t){t.registerTransform(FC),t.registerTransform(HC)}),t.Axis=rp,t.ChartView=oy,t.ComponentModel=g,t.ComponentView=Jg,t.List=Dv,t.Model=Gc,t.PRIORITY=tm,t.SeriesModel=Ug,t.color=xn,t.connect=function(e){var t;return V(e)&&(t=e,e=null,O(t,function(t){null!=t.group&&(e=t.group)}),e=e||"g_"+z0++,O(t,function(t){t.group=e})),O0[e]=!0,e},t.dataTool={},t.dependencies={zrender:"5.6.0"},t.disConnect=Jy,t.disconnect=E0,t.dispose=function(t){F(t)?t=P0[t]:t instanceof v0||(t=B0(t)),t instanceof v0&&!t.isDisposed()&&t.dispose()},t.env=b,t.extendChartView=function(t){return t=oy.extend(t),oy.registerClass(t),t},t.extendComponentModel=function(t){return t=g.extend(t),g.registerClass(t),t},t.extendComponentView=function(t){return t=Jg.extend(t),Jg.registerClass(t),t},t.extendSeriesModel=function(t){return t=Ug.extend(t),Ug.registerClass(t),t},t.format=Ec,t.getCoordinateSystemDimensions=function(t){if(t=Ld.get(t))return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},t.getInstanceByDom=B0,t.getInstanceById=function(t){return P0[t]},t.getMap=function(t){var e=Hm.getMap;return e&&e(t)},t.graphic=Vc,t.helper=em,t.init=function(t,e,i){var n=!(i&&i.ssr);if(n){var o=B0(t);if(o)return o}return(o=new v0(t,e,i)).id="ec_"+R0++,P0[o.id]=o,n&&Xr(t,N0,o.id),f0(o),Fm.trigger("afterinit",o),o},t.innerDrawElementOnCanvas=Om,t.matrix=Fe,t.number=zc,t.parseGeoJSON=u1,t.parseGeoJson=u1,t.registerAction=U0,t.registerCoordinateSystem=Y0,t.registerLayout=Z0,t.registerLoading=$0,t.registerLocale=Jc,t.registerMap=Q0,t.registerPostInit=G0,t.registerPostUpdate=W0,t.registerPreprocessor=F0,t.registerProcessor=H0,t.registerTheme=V0,t.registerTransform=J0,t.registerUpdateLifecycle=X0,t.registerVisual=q0,t.setCanvasCreator=function(t){L({createCanvas:t})},t.setPlatformAPI=L,t.throttle=fy,t.time=oa,t.use=Y_,t.util=Oc,t.vector=ne,t.version="5.5.1",t.zrUtil=Ft,t.zrender=ir});