1 line
668 KiB
JavaScript
1 line
668 KiB
JavaScript
!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 p=function(t,e){return(p=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)};function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var y=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},w=new function(){this.browser=new y,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?(w.wxa=!0,w.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?w.worker=!0:!w.hasGlobalWindow||"Deno"in window||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&-1<navigator.userAgent.indexOf("Node.js")?(w.node=!0,w.svgSupported=!0):(et=navigator.userAgent,Wt=(Ht=w).browser,st=et.match(/Firefox\/([\d.]+)/),O=et.match(/MSIE\s([\d.]+)/)||et.match(/Trident\/.+?rv:(([\d.]+))/),tt=et.match(/Edge?\/([\d.]+)/),et=/micromessenger/i.test(et),st&&(Wt.firefox=!0,Wt.version=st[1]),O&&(Wt.ie=!0,Wt.version=O[1]),tt&&(Wt.edge=!0,Wt.version=tt[1],Wt.newEdge=18<+tt[1].split(".")[0]),et&&(Wt.weChat=!0),Ht.svgSupported="undefined"!=typeof SVGRect,Ht.touchEventsSupported="ontouchstart"in window&&!Wt.ie&&!Wt.edge,Ht.pointerEventsSupported="onpointerdown"in window&&(Wt.edge||Wt.ie&&11<=+Wt.version),(Ht.domSupported="undefined"!=typeof document)&&(st=document.documentElement.style,Ht.transform3dSupported=(Wt.ie&&"transition"in st||Wt.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in st)&&!("OTransition"in st),Ht.transformSupported=Ht.transform3dSupported||Wt.ie&&9<=+Wt.version));var m=12,v="sans-serif",j=m+"px "+v;var _,x,b=function(t){var e={};if("undefined"!=typeof JSON)for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),o=(t.charCodeAt(n)-20)/100;e[i]=o}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),K={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(_||(n=K.createCanvas(),_=n&&n.getContext("2d")),_)return x!==e&&(x=_.font=e||j),_.measureText(t);t=t||"",e=e||j;var n=/((?:\d+)?\.?\d*)px/.exec(e),i=n&&+n[1]||m,o=0;if(0<=e.indexOf("mono"))o=i*t.length;else for(var r=0;r<t.length;r++){var a=b[t[r]];o+=null==a?i:a*i}return{width:o}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}};function k(t){for(var e in K)t[e]&&(K[e]=t[e])}var D=ct(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),A=ct(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),P=Object.prototype.toString,O=Array.prototype,R=O.forEach,$=O.filter,Q=O.slice,J=O.map,tt=function(){}.constructor,et=tt?tt.prototype:null,nt="__proto__",it=2311;function ot(){return it++}function rt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function S(t){if(null==t||"object"!=typeof t)return t;var e=t,n=P.call(t);if("[object Array]"===n){if(!At(t))for(var e=[],i=0,o=t.length;i<o;i++)e[i]=S(t[i])}else if(A[n]){if(!At(t)){var r=t.constructor;if(r.from)e=r.from(t);else{e=new r(t.length);for(i=0,o=t.length;i<o;i++)e[i]=t[i]}}}else if(!D[n]&&!At(t)&&!mt(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==nt&&(e[a]=S(t[a]));return e}function d(t,e,n){if(!N(e)||!N(t))return n?S(e):t;for(var i in e){var o,r;e.hasOwnProperty(i)&&i!==nt&&(o=t[i],!N(r=e[i])||!N(o)||V(r)||V(o)||mt(r)||mt(o)||gt(r)||gt(o)||At(r)||At(o)?!n&&i in t||(t[i]=S(e[i])):d(o,r,n))}return t}function at(t,e){for(var n=t[0],i=1,o=t.length;i<o;i++)n=d(n,t[i],e);return n}function G(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==nt&&(t[n]=e[n]);return t}function B(t,e,n){for(var i=X(e),o=0,r=i.length;o<r;o++){var a=i[o];(n?null!=e[a]:null==t[a])&&(t[a]=e[a])}return t}var st=K.createCanvas;function U(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function lt(t,e){var n,i=t.prototype;function o(){}for(n in o.prototype=e.prototype,t.prototype=new o,i)i.hasOwnProperty(n)&&(t.prototype[n]=i[n]);(t.prototype.constructor=t).superClass=e}function ut(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),o=0;o<i.length;o++){var r=i[o];"constructor"!==r&&(n?null!=e[r]:null==t[r])&&(t[r]=e[r])}else B(t,e,n)}function ht(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function Z(t,e,n){if(t&&e)if(t.forEach&&t.forEach===R)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,o=t.length;i<o;i++)e.call(n,t[i],i,t);else for(var r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function E(t,e,n){if(!t)return[];if(!e)return Mt(t);if(t.map&&t.map===J)return t.map(e,n);for(var i=[],o=0,r=t.length;o<r;o++)i.push(e.call(n,t[o],o,t));return i}function ct(t,e,n,i){if(t&&e){for(var o=0,r=t.length;o<r;o++)n=e.call(i,n,t[o],o,t);return n}}function pt(t,e,n){if(!t)return[];if(!e)return Mt(t);if(t.filter&&t.filter===$)return t.filter(e,n);for(var i=[],o=0,r=t.length;o<r;o++)e.call(n,t[o],o,t)&&i.push(t[o]);return i}function X(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e,n=[];for(e in t)t.hasOwnProperty(e)&&n.push(e);return n}var M=et&&z(et.bind)?et.call.bind(et.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(Q.call(arguments)))}};function T(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(Q.call(arguments)))}}function V(t){return Array.isArray?Array.isArray(t):"[object Array]"===P.call(t)}function z(t){return"function"==typeof t}function F(t){return"string"==typeof t}function dt(t){return"[object String]"===P.call(t)}function ft(t){return"number"==typeof t}function N(t){var e=typeof t;return"function"==e||!!t&&"object"==e}function gt(t){return!!D[P.call(t)]}function yt(t){return!!A[P.call(t)]}function mt(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function vt(t){return null!=t.colorStops}function _t(t){return null!=t.image}function xt(t){return"[object RegExp]"===P.call(t)}function bt(t){return t!=t}function wt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function H(t,e){return null!=t?t:e}function St(t,e,n){return null!=t?t:null!=e?e:n}function Mt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Q.apply(t,e)}function Tt(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 Ct(t,e){if(!t)throw new Error(e)}function It(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var kt="__ec_primitive__";function Dt(t){t[kt]=!0}function At(t){return t[kt]}Lt.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},Lt.prototype.has=function(t){return this.data.hasOwnProperty(t)},Lt.prototype.get=function(t){return this.data[t]},Lt.prototype.set=function(t,e){return this.data[t]=e,this},Lt.prototype.keys=function(){return X(this.data)},Lt.prototype.forEach=function(t){var e,n=this.data;for(e in n)n.hasOwnProperty(e)&&t(n[e],e)};var Pt=Lt;function Lt(){this.data={}}var Ot="function"==typeof Map;zt.prototype.hasKey=function(t){return this.data.has(t)},zt.prototype.get=function(t){return this.data.get(t)},zt.prototype.set=function(t,e){return this.data.set(t,e),e},zt.prototype.each=function(n,i){this.data.forEach(function(t,e){n.call(i,t,e)})},zt.prototype.keys=function(){var t=this.data.keys();return Ot?Array.from(t):t},zt.prototype.removeKey=function(t){this.data.delete(t)};var Rt=zt;function zt(t){var n=V(t),i=(this.data=new(Ot?Map:Pt),this);function e(t,e){n?i.set(t,e):i.set(e,t)}t instanceof zt?t.each(e):t&&Z(t,e)}function L(t){return new Rt(t)}function Nt(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];for(var o=t.length,i=0;i<e.length;i++)n[i+o]=e[i];return n}function Bt(t,e){var n,t=Object.create?Object.create(t):((n=function(){}).prototype=t,new n);return e&&G(t,e),t}function Et(t){t=t.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Y(t,e){return t.hasOwnProperty(e)}function Vt(){}var Ft=180/Math.PI,Ht=Number.EPSILON||Math.pow(2,-52),Wt=Object.freeze({__proto__:null,EPSILON:Ht,HashMap:Rt,RADIAN_TO_DEGREE:Ft,assert:Ct,bind:M,clone:S,concatArray:Nt,createCanvas:st,createHashMap:L,createObject:Bt,curry:T,defaults:B,disableUserSelect:Et,each:Z,eqNaN:bt,extend:G,filter:pt,find:function(t,e,n){if(t&&e)for(var i=0,o=t.length;i<o;i++)if(e.call(n,t[i],i,t))return t[i]},guid:ot,hasOwn:Y,indexOf:U,inherits:lt,isArray:V,isArrayLike:ht,isBuiltInObject:gt,isDom:mt,isFunction:z,isGradientObject:vt,isImagePatternObject:_t,isNumber:ft,isObject:N,isPrimitive:At,isRegExp:xt,isString:F,isStringSafe:dt,isTypedArray:yt,keys:X,logError:rt,map:E,merge:d,mergeAll:at,mixin:ut,noop:Vt,normalizeCssArray:Tt,reduce:ct,retrieve:wt,retrieve2:H,retrieve3:St,setAsPrimitive:Dt,slice:Mt,trim:It});function Gt(t,e){return[t=null==t?0:t,e=null==e?0:e]}function Ut(t){return[t[0],t[1]]}function Zt(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Xt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function Yt(t){return Math.sqrt(qt(t))}function qt(t){return t[0]*t[0]+t[1]*t[1]}function jt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function Kt(t,e){var n=Yt(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function $t(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Qt=$t;function Jt(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var te=Jt;function ee(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function ne(t,e,n){var i=e[0],e=e[1];return t[0]=n[0]*i+n[2]*e+n[4],t[1]=n[1]*i+n[3]*e+n[5],t}function ie(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function oe(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var re=Object.freeze({__proto__:null,add:Zt,applyTransform:ne,clone:Ut,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},create:Gt,dist:Qt,distSquare:te,distance:$t,distanceSquare:Jt,div:function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},len:Yt,lenSquare:qt,length:Yt,lengthSquare:qt,lerp:ee,max:oe,min:ie,mul:function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:Kt,scale:jt,scaleAndAdd:function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},set:function(t,e,n){return t[0]=e,t[1]=n,t},sub:Xt}),ae=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},se=(le.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 ae(e,t),"dragstart",t.event))},le.prototype._drag=function(t){var e,n,i,o,r=this._draggingTarget;r&&(e=t.offsetX,n=t.offsetY,i=e-this._x,o=n-this._y,this._x=e,this._y=n,r.drift(i,o,t),this.handler.dispatchToElement(new ae(r,t),"drag",t.event),i=this.handler.findHover(e,n,r).target,o=this._dropTarget,r!==(this._dropTarget=i))&&(o&&i!==o&&this.handler.dispatchToElement(new ae(o,t),"dragleave",t.event),i)&&i!==o&&this.handler.dispatchToElement(new ae(i,t),"dragenter",t.event)},le.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new ae(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new ae(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},le);function le(t){(this.handler=t).on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}he.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var o=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),n&&t){var r=this._$eventProcessor;null!=e&&r&&r.normalizeQuery&&(e=r.normalizeQuery(e)),o[t]||(o[t]=[]);for(var a=0;a<o[t].length;a++)if(o[t][a].h===n)return this;r={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},e=o[t].length-1,i=o[t][e];i&&i.callAtLast?o[t].splice(e,0,r):o[t].push(r)}return this},he.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},he.prototype.off=function(t,e){var n=this._$handlers;if(n)if(t)if(e){if(n[t]){for(var i=[],o=0,r=n[t].length;o<r;o++)n[t][o].h!==e&&i.push(n[t][o]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];else this._$handlers={};return this},he.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(this._$handlers){var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var r=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!o||!o.filter||null==l.query||o.filter(t,l.query))switch(r){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}o&&o.afterTrigger&&o.afterTrigger(t)}return this},he.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(this._$handlers){var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var r=e.length,a=e[r-1],s=i.length,l=0;l<s;l++){var u=i[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 ue=he;function he(t){t&&(this._$eventProcessor=t)}var ce=Math.log(2);function pe(t,e,n,i,o,r){var a,s=i+"-"+o,l=t.length;if(r.hasOwnProperty(s))return r[s];if(1===e)return a=Math.round(Math.log((1<<l)-1&~o)/ce),t[n][a];for(var u=i|1<<n,h=n+1;i&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[n][p]*pe(t,e-1,h,u,o|f,r),d++)}return r[s]=c}function de(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},o=pe(n,8,0,0,0,i);if(0!==o){for(var r=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==r[s]&&(r[s]=0),r[s]+=((a+s)%2?-1:1)*pe(n,7,0===a?1:0,1<<a,1<<s,i)/o*e[a];return function(t,e,n){var i=e*r[6]+n*r[7]+1;t[0]=(e*r[0]+n*r[1]+r[2])/i,t[1]=(e*r[3]+n*r[4]+r[5])/i}}}var fe="___zrEVENTSAVED",ge=[];function ye(t,e,n,i,o){if(e.getBoundingClientRect&&w.domSupported&&!me(e)){var r=e[fe]||(e[fe]={}),e=function(t,e,n){for(var i=n?"invTrans":"trans",o=e[i],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[i]=n?de(s,a):de(a,s))}(function(t,e){var n=e.markers;if(!n){n=e.markers=[];for(var i=["left","right"],o=["top","bottom"],r=0;r<4;r++){var a=document.createElement("div"),s=a.style,l=r%2,u=(r>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",o[u]+":0",i[1-l]+":auto",o[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}e.clearMarkers=function(){Z(n,function(t){t.parentNode&&t.parentNode.removeChild(t)})}}return n}(e,r),r,o);if(e)return e(t,n,i),!0}return!1}function me(t){return"CANVAS"===t.nodeName.toUpperCase()}var ve=/([&<>"'])/g,_e={"&":"&","<":"<",">":">",'"':""","'":"'"};function xe(t){return null==t?"":(t+"").replace(ve,function(t,e){return _e[e]})}var be=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,we=[],Se=w.browser.firefox&&+w.browser.version.split(".")[0]<39;function Me(t,e,n,i){return n=n||{},i?Te(t,e,n):Se&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):Te(t,e,n),n}function Te(t,e,n){if(w.domSupported&&t.getBoundingClientRect){var i,o=e.clientX,e=e.clientY;if(me(t))return i=t.getBoundingClientRect(),n.zrX=o-i.left,void(n.zrY=e-i.top);if(ye(we,t,o,e))return n.zrX=we[0],void(n.zrY=we[1])}n.zrX=n.zrY=0}function Ce(t){return t||window.event}function Ie(t,e,n){var i;return null==(e=Ce(e)).zrX&&((i=e.type)&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&Me(t,i,e,n):(Me(t,e,e,n),i=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,t=t.deltaY;return null!=n&&null!=t?3*(0!==t?Math.abs(t):Math.abs(n))*(0<t||!(t<0)&&0<n?-1:1):e}(e),e.zrDelta=i?i/120:-(e.detail||0)/3),t=e.button,null==e.which&&void 0!==t&&be.test(e.type))&&(e.which=1&t?1:2&t?3:4&t?2:0),e}function ke(t,e,n,i){t.addEventListener(e,n,i)}var De=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function Ae(t){return 2===t.which||3===t.which}Le.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},Le.prototype.clear=function(){return this._track.length=0,this},Le.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var o={points:[],touches:[],target:e,event:t},r=0,a=i.length;r<a;r++){var s=i[r],l=Me(n,s,{});o.points.push([l.zrX,l.zrY]),o.touches.push(s)}this._track.push(o)}},Le.prototype._recognize=function(t){for(var e in Re)if(Re.hasOwnProperty(e)){e=Re[e](this._track,t);if(e)return e}};var Pe=Le;function Le(){this._track=[]}function Oe(t){var e=t[1][0]-t[0][0],t=t[1][1]-t[0][1];return Math.sqrt(e*e+t*t)}var Re={pinch:function(t,e){var n,i=t.length;if(i)return n=(t[i-1]||{}).points,(i=(t[i-2]||{}).points||n)&&1<i.length&&n&&1<n.length?(i=Oe(n)/Oe(i),isFinite(i)||(i=1),e.pinchScale=i,i=[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2],e.pinchX=i[0],e.pinchY=i[1],{type:"pinch",target:t[0].target,event:e}):void 0}};function ze(){return[1,0,0,1,0,0]}function Ne(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Be(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 Ee(t,e,n){var i=e[0]*n[0]+e[2]*n[1],o=e[1]*n[0]+e[3]*n[1],r=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],n=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=o,t[2]=r,t[3]=a,t[4]=s,t[5]=n,t}function Ve(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function Fe(t,e,n,i){void 0===i&&(i=[0,0]);var o=e[0],r=e[2],a=e[4],s=e[1],l=e[3],e=e[5],u=Math.sin(n),n=Math.cos(n);return t[0]=o*n+s*u,t[1]=-o*u+s*n,t[2]=r*n+l*u,t[3]=-r*u+n*l,t[4]=n*(a-i[0])+u*(e-i[1])+i[0],t[5]=n*(e-i[1])-u*(a-i[0])+i[1],t}function He(t,e,n){var i=n[0],n=n[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function We(t,e){var n=e[0],i=e[2],o=e[4],r=e[1],a=e[3],e=e[5],s=n*a-r*i;return s?(t[0]=a*(s=1/s),t[1]=-r*s,t[2]=-i*s,t[3]=n*s,t[4]=(i*e-a*o)*s,t[5]=(r*o-n*e)*s,t):null}var Ge=Object.freeze({__proto__:null,clone:function(t){var e=ze();return Be(e,t),e},copy:Be,create:ze,identity:Ne,invert:We,mul:Ee,rotate:Fe,scale:He,translate:Ve}),C=(Ue.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},Ue.prototype.clone=function(){return new Ue(this.x,this.y)},Ue.prototype.set=function(t,e){return this.x=t,this.y=e,this},Ue.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},Ue.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},Ue.prototype.scale=function(t){this.x*=t,this.y*=t},Ue.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},Ue.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},Ue.prototype.dot=function(t){return this.x*t.x+this.y*t.y},Ue.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},Ue.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},Ue.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},Ue.prototype.distance=function(t){var e=this.x-t.x,t=this.y-t.y;return Math.sqrt(e*e+t*t)},Ue.prototype.distanceSquare=function(t){var e=this.x-t.x,t=this.y-t.y;return e*e+t*t},Ue.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},Ue.prototype.transform=function(t){var e,n;if(t)return e=this.x,n=this.y,this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this},Ue.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},Ue.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},Ue.set=function(t,e,n){t.x=e,t.y=n},Ue.copy=function(t,e){t.x=e.x,t.y=e.y},Ue.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},Ue.lenSquare=function(t){return t.x*t.x+t.y*t.y},Ue.dot=function(t,e){return t.x*e.x+t.y*e.y},Ue.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},Ue.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},Ue.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},Ue.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},Ue.lerp=function(t,e,n,i){var o=1-i;t.x=o*e.x+i*n.x,t.y=o*e.y+i*n.y},Ue);function Ue(t,e){this.x=t||0,this.y=e||0}var Ze=Math.min,Xe=Math.max,Ye=Math.abs,qe=["x","y"],je=["width","height"],Ke=new C,$e=new C,Qe=new C,Je=new C,tn=un(),en=tn.minTv,nn=tn.maxTv,on=[0,0],q=(rn.set=function(t,e,n,i,o){return i<0&&(e+=i,i=-i),o<0&&(n+=o,o=-o),t.x=e,t.y=n,t.width=i,t.height=o,t},rn.prototype.union=function(t){var e=Ze(t.x,this.x),n=Ze(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Xe(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Xe(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},rn.prototype.applyTransform=function(t){rn.applyTransform(this,this,t)},rn.prototype.calculateTransform=function(t){var e=t.width/this.width,n=t.height/this.height,i=ze();return Ve(i,i,[-this.x,-this.y]),He(i,i,[e,n]),Ve(i,i,[t.x,t.y]),i},rn.prototype.intersect=function(t,e,n){return rn.intersect(this,t,e,n)},rn.intersect=function(t,e,n,i){n&&C.set(n,0,0);var o=i&&i.outIntersectRect||null,r=i&&i.clamp;if(o&&(o.x=o.y=o.width=o.height=NaN),!t||!e)return!1;t instanceof rn||(t=rn.set(an,t.x,t.y,t.width,t.height)),e instanceof rn||(e=rn.set(sn,e.x,e.y,e.width,e.height));var a=!!n,i=(tn.reset(i,a),tn.touchThreshold),s=t.x+i,l=t.x+t.width-i,u=t.y+i,t=t.y+t.height-i,h=e.x+i,c=e.x+e.width-i,p=e.y+i,e=e.y+e.height-i;return!(l<s||t<u||c<h||e<p)&&(i=!(l<h||c<s||t<p||e<u),(a||o)&&(on[0]=1/0,ln(s,l,h,c,on[1]=0,a,o,r),ln(u,t,p,e,1,a,o,r),a)&&C.copy(n,i?tn.useDir?tn.dirMinTv:en:nn),i)},rn.contain=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},rn.prototype.contain=function(t,e){return rn.contain(this,t,e)},rn.prototype.clone=function(){return new rn(this.x,this.y,this.width,this.height)},rn.prototype.copy=function(t){rn.copy(this,t)},rn.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},rn.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},rn.prototype.isZero=function(){return 0===this.width||0===this.height},rn.create=function(t){return new rn(t.x,t.y,t.width,t.height)},rn.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},rn.applyTransform=function(t,e,n){var i,o,r,a;n?n[1]<1e-5&&-1e-5<n[1]&&n[2]<1e-5&&-1e-5<n[2]?(i=n[0],o=n[3],r=n[4],a=n[5],t.x=e.x*i+r,t.y=e.y*o+a,t.width=e.width*i,t.height=e.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height)):(Ke.x=Qe.x=e.x,Ke.y=Je.y=e.y,$e.x=Je.x=e.x+e.width,$e.y=Qe.y=e.y+e.height,Ke.transform(n),Je.transform(n),$e.transform(n),Qe.transform(n),t.x=Ze(Ke.x,$e.x,Qe.x,Je.x),t.y=Ze(Ke.y,$e.y,Qe.y,Je.y),r=Xe(Ke.x,$e.x,Qe.x,Je.x),a=Xe(Ke.y,$e.y,Qe.y,Je.y),t.width=r-t.x,t.height=a-t.y):t!==e&&rn.copy(t,e)},rn);function rn(t,e,n,i){rn.set(this,t,e,n,i)}var an=new q(0,0,0,0),sn=new q(0,0,0,0);function ln(t,e,n,i,o,r,a,s){var l=Ye(e-n),u=Ye(i-t),h=Ze(l,u),c=qe[o],p=qe[1-o],o=je[o];e<n||i<t?l<u?(r&&(nn[c]=-l),s&&(a[c]=e,a[o]=0)):(r&&(nn[c]=u),s&&(a[c]=t,a[o]=0)):(a&&(a[c]=Xe(t,n),a[o]=Ze(e,i)-a[c]),r&&(h<on[0]||tn.useDir)&&(on[0]=Ze(h,on[0]),(l<u||!tn.bidirectional)&&(en[c]=l,en[p]=0,tn.useDir)&&tn.calcDirMTV(),u<=l||!tn.bidirectional)&&(en[c]=-u,en[p]=0,tn.useDir)&&tn.calcDirMTV())}function un(){var a=0,s=new C,l=new C,u={minTv:new C,maxTv:new C,useDir:!1,dirMinTv:new C,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(t,e){u.touchThreshold=0,t&&null!=t.touchThreshold&&(u.touchThreshold=Xe(0,t.touchThreshold)),u.negativeSize=!1,e&&(u.minTv.set(1/0,1/0),u.maxTv.set(0,0),u.useDir=!1,t)&&null!=t.direction&&(u.useDir=!0,u.dirMinTv.copy(u.minTv),l.copy(u.minTv),a=t.direction,u.bidirectional=null==t.bidirectional||!!t.bidirectional,u.bidirectional||s.set(Math.cos(a),Math.sin(a)))},calcDirMTV:function(){var t=u.minTv,e=u.dirMinTv,n=t.y*t.y+t.x*t.x,i=Math.sin(a),o=Math.cos(a),r=i*t.y+o*t.x;h(r)?h(t.x)&&h(t.y)&&e.set(0,0):(l.x=n*o/r,l.y=n*i/r,h(l.x)&&h(l.y)?e.set(0,0):(u.bidirectional||0<s.dot(l))&&l.len()<e.len()&&e.copy(l))}};function h(t){return Ye(t)<1e-10}return u}var hn="silent";function cn(){De(this.event)}a(fn,pn=ue),fn.prototype.dispose=function(){},fn.prototype.setCursor=function(){};var pn,dn=fn;function fn(){var t=null!==pn&&pn.apply(this,arguments)||this;return t.handler=null,t}var gn,yn=function(t,e){this.x=t,this.y=e},mn=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],vn=new q(0,0,0,0),_n=(a(xn,gn=ue),xn.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(Z(mn,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},xn.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=wn(this,e,n),o=this._hovered,r=o.target,i=(r&&!r.__zr&&(r=(o=this.findHover(o.x,o.y)).target),this._hovered=i?new yn(e,n):this.findHover(e,n)),e=i.target,n=this.proxy;n.setCursor&&n.setCursor(e?e.cursor:"default"),r&&e!==r&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(i,"mousemove",t),e&&e!==r&&this.dispatchToElement(i,"mouseover",t)},xn.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})},xn.prototype.resize=function(){this._hovered=new yn(0,0)},xn.prototype.dispatch=function(t,e){t=this[t];t&&t.call(this,e)},xn.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},xn.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},xn.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var o="on"+e,r={type:e,event:n,target:(t=t).target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:cn};i&&(i[o]&&(r.cancelBubble=!!i[o].call(i,r)),i.trigger(e,r),i=i.__hostTarget||i.parent,!r.cancelBubble););r.cancelBubble||(this.trigger(e,r),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[o]&&t[o].call(t,r),t.trigger&&t.trigger(e,r)}))}},xn.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),o=new yn(t,e);if(bn(i,o,t,e,n),this._pointerSize&&!o.target){for(var r=[],a=this._pointerSize,s=a/2,l=new q(t-s,e-s,a,a),u=i.length-1;0<=u;u--){var h=i[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(vn.copy(h.getBoundingRect()),h.transform&&vn.applyTransform(h.transform),vn.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(bn(r,o,t+d*Math.cos(f),e+d*Math.sin(f),n),o.target)return o}return o},xn.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new Pe);var n=this._gestureMgr,i=("start"===e&&n.clear(),n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom));"end"===e&&n.clear(),i&&(e=i.type,t.gestureEvent=e,(n=new yn).target=i.target,this.dispatchToElement(n,e,i.event))},xn);function xn(t,e,n,i,o){var r=gn.call(this)||this;return r._hovered=new yn(0,0),r.storage=t,r.painter=e,r.painterRoot=i,r._pointerSize=o,n=n||new dn,r.proxy=null,r.setHandlerProxy(n),r._draggingMgr=new se(r),r}function bn(t,e,n,i,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,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,o=void 0,r=!1;i;){if(!(r=i.ignoreClip?!0:r)){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1}i.silent&&(o=!0);a=i.__hostTarget,i=a?i.ignoreHostSilent?null:a:i.parent}return!o||hn}return!1}(a,n,i))&&(e.topTarget||(e.topTarget=a),s!==hn)){e.target=a;break}}}function wn(t,e,n){t=t.painter;return e<0||e>t.getWidth()||n<0||n>t.getHeight()}Z(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){_n.prototype[a]=function(t){var e,n,i=t.zrX,o=t.zrY,r=wn(this,i,o);if("mouseup"===a&&r||(n=(e=this.findHover(i,o)).target),"mousedown"===a)this._downEl=n,this._downPoint=[t.zrX,t.zrY],this._upEl=n;else if("mouseup"===a)this._upEl=n;else if("click"===a){if(this._downEl!==this._upEl||!this._downPoint||4<Qt(this._downPoint,[t.zrX,t.zrY]))return;this._downPoint=null}this.dispatchToElement(e,a,t)}});var Sn=32,Mn=7;function Tn(t,e,n,i){var o=e+1;if(o===n)return 1;if(i(t[o++],t[e])<0){for(;o<n&&i(t[o],t[o-1])<0;)o++;var r=t,a=e,s=o;for(s--;a<s;){var l=r[a];r[a++]=r[s],r[s--]=l}}else for(;o<n&&0<=i(t[o],t[o-1]);)o++;return o-e}function Cn(t,e,n,i,o){for(i===e&&i++;i<n;i++){for(var r,a=t[i],s=e,l=i;s<l;)o(a,t[r=s+l>>>1])<0?l=r:s=1+r;var u=i-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 In(t,e,n,i,o,r){var a=0,s=0,l=1;if(0<r(t,e[n+o])){for(s=i-o;l<s&&0<r(t,e[n+o+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=o,l+=o}else{for(s=o+1;l<s&&r(t,e[n+o-l])<=0;)(l=1+((a=l)<<1))<=0&&(l=s);i=a,a=o-(l=s<l?s:l),l=o-i}for(a++;a<l;){var u=a+(l-a>>>1);0<r(t,e[n+u])?a=u+1:l=u}return l}function kn(t,e,n,i,o,r){var a=0,s=0,l=1;if(r(t,e[n+o])<0){for(s=o+1;l<s&&r(t,e[n+o-l])<0;)(l=1+((a=l)<<1))<=0&&(l=s);var u=a,a=o-(l=s<l?s:l),l=o-u}else{for(s=i-o;l<s&&0<=r(t,e[n+o+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=o,l+=o}for(a++;a<l;){var h=a+(l-a>>>1);r(t,e[n+h])<0?l=h:a=h+1}return l}function Dn(A,P){var L,O,R=Mn,z=0,N=[];function e(t){var e=L[t],n=O[t],i=L[t+1],o=O[t+1],t=(O[t]=n+o,t===z-3&&(L[t+1]=L[t+2],O[t+1]=O[t+2]),z--,kn(A[i],A,e,n,0,P));if(e+=t,0!=(n-=t)&&0!==(o=In(A[e+n-1],A,i,o,o-1,P)))if(n<=o){var r=e,a=n,t=i,s=o,l=0;for(l=0;l<a;l++)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(P(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=kn(A[h],N,u,a,0,P))){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=In(N[u],A,h,s,0,P))){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--,Mn<=p||Mn<=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=n,v=i,_=o,x=0;for(x=0;x<_;x++)N[x]=A[v+x];var b=y+m-1,w=_-1,S=v+_-1,M=0,T=0;if(A[S--]=A[b--],0==--m)for(M=S-(_-1),x=0;x<_;x++)A[M+x]=N[x];else if(1===_){for(T=(S-=m)+1,M=(b-=m)+1,x=m-1;0<=x;x--)A[T+x]=A[M+x];A[S]=N[w]}else{for(var C=R;;){var I=0,k=0,D=!1;do{if(P(N[w],A[b])<0){if(A[S--]=A[b--],I++,(k=0)==--m){D=!0;break}}else if(A[S--]=N[w--],k++,I=0,1==--_){D=!0;break}}while((I|k)<C);if(D)break;do{if(0!==(I=m-kn(N[w],A,y,m,m-1,P))){for(m-=I,T=(S-=I)+1,M=(b-=I)+1,x=I-1;0<=x;x--)A[T+x]=A[M+x];if(0===m){D=!0;break}}if(A[S--]=N[w--],1==--_){D=!0;break}if(0!==(k=_-In(A[b],N,0,_,_-1,P))){for(_-=k,T=(S-=k)+1,M=(w-=k)+1,x=0;x<k;x++)A[T+x]=N[M+x];if(_<=1){D=!0;break}}if(A[S--]=A[b--],0==--m){D=!0;break}}while(C--,Mn<=I||Mn<=k);if(D)break;C<0&&(C=0),C+=2}if((R=C)<1&&(R=1),1===_){for(T=(S-=m)+1,M=(b-=m)+1,x=m-1;0<=x;x--)A[T+x]=A[M+x];A[S]=N[w]}else{if(0===_)throw new Error;for(M=S-(_-1),x=0;x<_;x++)A[M+x]=N[x]}}}}return L=[],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){L[z]=t,O[z]=e,z+=1}}}function An(t,e,n,i){var o=(i=i||t.length)-(n=n||0);if(!(o<2)){var r=0;if(o<Sn)Cn(t,n,i,n+(r=Tn(t,n,i,e)),e);else{var a,s=Dn(t,e),l=function(t){for(var e=0;Sn<=t;)e|=1&t,t>>=1;return t+e}(o);do{}while((r=Tn(t,n,i,e))<l&&(Cn(t,n,n+(a=l<(a=o)?l:o),n+r,e),r=a),s.pushRun(n,r),s.mergeRuns(),n+=r,0!==(o-=r));s.forceMergeRuns()}}}var Pn=1,Ln=4,On=!1;function Rn(){On||(On=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function zn(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}Bn.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},Bn.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},Bn.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,o=e.length;i<o;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,An(n,zn)},Bn.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath(),o=e&&e.length,r=0,a=t.__clipPaths;if(!t.ignoreClip&&(o||i)){if(a=a||(t.__clipPaths=[]),o)for(var s=0;s<e.length;s++)a[r++]=e[s];for(var l=i,u=t;l;)l.parent=u,l.updateTransform(),l=(u=a[r++]=l).getClipPath()}if(a&&(a.length=r),t.childrenRef){for(var h=t.childrenRef(),c=0;c<h.length;c++){var p=h[c];t.__dirty&&(p.__dirty|=Pn),this._updateAndAddDisplayable(p,a,n)}t.__dirty=0}else{o=t;isNaN(o.z)&&(Rn(),o.z=0),isNaN(o.z2)&&(Rn(),o.z2=0),isNaN(o.zlevel)&&(Rn(),o.zlevel=0),this._displayList[this._displayListLen++]=o}i=t.getDecalElement&&t.getDecalElement(),o=(i&&this._updateAndAddDisplayable(i,a,n),t.getTextGuideLine()),i=(o&&this._updateAndAddDisplayable(o,a,n),t.getTextContent());i&&this._updateAndAddDisplayable(i,a,n)}},Bn.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},Bn.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=U(this._roots,t);0<=i&&this._roots.splice(i,1)}},Bn.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},Bn.prototype.getRoots=function(){return this._roots},Bn.prototype.dispose=function(){this._displayList=null,this._roots=null};var Nn=Bn;function Bn(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=zn}var En=w.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},Vn={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return--t*t*(2.70158*t+1.70158)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((1+e)*t-e)*.5:.5*((t-=2)*t*((1+e)*t+e)+2)},bounceIn:function(t){return 1-Vn.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*Vn.bounceIn(2*t):.5*Vn.bounceOut(2*t-1)+.5}},Fn=Math.pow,Hn=Math.sqrt,Wn=1e-8,Gn=Hn(3),Un=1/3,Zn=Gt(),Xn=Gt(),Yn=Gt();function qn(t){return-Wn<t&&t<Wn}function jn(t){return Wn<t||t<-Wn}function Kn(t,e,n,i,o){var r=1-o;return r*r*(r*t+3*o*e)+o*o*(o*i+3*r*n)}function $n(t,e,n,i,o){var r=1-o;return 3*(((e-t)*r+2*(n-e)*o)*r+(i-n)*o*o)}function Qn(t,e,n,i,o,r){var a,s,i=i+3*(e-n)-t,n=3*(n-2*e+t),e=3*(e-t),t=t-o,o=n*n-3*i*e,l=n*e-9*i*t,t=e*e-3*n*t,u=0;return qn(o)&&qn(l)?qn(n)?r[0]=0:0<=(a=-e/n)&&a<=1&&(r[u++]=a):qn(e=l*l-4*o*t)?(s=-(t=l/o)/2,0<=(a=-n/i+t)&&a<=1&&(r[u++]=a),0<=s&&s<=1&&(r[u++]=s)):0<e?(e=o*n+1.5*i*(-l-(t=Hn(e))),0<=(a=(-n-((t=(t=o*n+1.5*i*(-l+t))<0?-Fn(-t,Un):Fn(t,Un))+(e=e<0?-Fn(-e,Un):Fn(e,Un))))/(3*i))&&a<=1&&(r[u++]=a)):(t=(2*o*n-3*i*l)/(2*Hn(o*o*o)),e=Math.acos(t)/3,a=(-n-2*(l=Hn(o))*(t=Math.cos(e)))/(3*i),s=(-n+l*(t+Gn*Math.sin(e)))/(3*i),o=(-n+l*(t-Gn*Math.sin(e)))/(3*i),0<=a&&a<=1&&(r[u++]=a),0<=s&&s<=1&&(r[u++]=s),0<=o&&o<=1&&(r[u++]=o)),u}function Jn(t,e,n,i,o){var r,a=6*n-12*e+6*t,i=9*e+3*i-3*t-9*n,n=3*e-3*t,e=0;return qn(i)?jn(a)&&0<=(r=-n/a)&&r<=1&&(o[e++]=r):qn(t=a*a-4*i*n)?o[0]=-a/(2*i):0<t&&(t=(-a-(n=Hn(t)))/(2*i),0<=(r=(-a+n)/(2*i))&&r<=1&&(o[e++]=r),0<=t)&&t<=1&&(o[e++]=t),e}function ti(t,e,n,i,o,r){var a=(e-t)*o+t,e=(n-e)*o+e,n=(i-n)*o+n,s=(e-a)*o+a,e=(n-e)*o+e,o=(e-s)*o+s;r[0]=t,r[1]=a,r[2]=s,r[3]=o,r[4]=o,r[5]=e,r[6]=n,r[7]=i}function ei(t,e,n,i,o,r,a,s,l,u,h){var c,p,d,f,g=.005,y=1/0;Zn[0]=l,Zn[1]=u;for(var m=0;m<1;m+=.05)Xn[0]=Kn(t,n,o,a,m),Xn[1]=Kn(e,i,r,s,m),(d=te(Zn,Xn))<y&&(c=m,y=d);for(var y=1/0,v=0;v<32&&!(g<1e-4);v++)p=c+g,Xn[0]=Kn(t,n,o,a,f=c-g),Xn[1]=Kn(e,i,r,s,f),d=te(Xn,Zn),0<=f&&d<y?(c=f,y=d):(Yn[0]=Kn(t,n,o,a,p),Yn[1]=Kn(e,i,r,s,p),f=te(Yn,Zn),p<=1&&f<y?(c=p,y=f):g*=.5);return h&&(h[0]=Kn(t,n,o,a,c),h[1]=Kn(e,i,r,s,c)),Hn(y)}function ni(t,e,n,i){var o=1-i;return o*(o*t+2*i*e)+i*i*n}function ii(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function oi(t,e,n){n=t+n-2*e;return 0==n?.5:(t-e)/n}function ri(t,e,n,i,o){var r=(e-t)*i+t,e=(n-e)*i+e,i=(e-r)*i+r;o[0]=t,o[1]=r,o[2]=i,o[3]=i,o[4]=e,o[5]=n}function ai(t,e,n,i,o,r,a,s,l){var u,h=.005,c=1/0;Zn[0]=a,Zn[1]=s;for(var p=0;p<1;p+=.05)Xn[0]=ni(t,n,o,p),Xn[1]=ni(e,i,r,p),(y=te(Zn,Xn))<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=(Xn[0]=ni(t,n,o,f),Xn[1]=ni(e,i,r,f),te(Xn,Zn));0<=f&&y<c?(u=f,c=y):(Yn[0]=ni(t,n,o,g),Yn[1]=ni(e,i,r,g),f=te(Yn,Zn),g<=1&&f<c?(u=g,c=f):h*=.5)}return l&&(l[0]=ni(t,n,o,u),l[1]=ni(e,i,r,u)),Hn(c)}var si=/cubic-bezier\(([0-9,\.e ]+)\)/;function li(t){t=t&&si.exec(t);if(t){var e,t=t[1].split(","),n=+It(t[0]),i=+It(t[1]),o=+It(t[2]),r=+It(t[3]);if(!isNaN(n+i+o+r))return e=[],function(t){return t<=0?0:1<=t?1:Qn(0,n,o,1,t,e)&&Kn(0,i,r,1,e[0])}}}hi.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,o=i/n,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-i%n,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},hi.prototype.pause=function(){this._paused=!0},hi.prototype.resume=function(){this._paused=!1},hi.prototype.setEasing=function(t){this.easing=t,this.easingFunc=z(t)?t:Vn[t]||li(t)};var ui=hi;function hi(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||Vt,this.ondestroy=t.ondestroy||Vt,this.onrestart=t.onrestart||Vt,t.easing&&this.setEasing(t.easing)}var ci=function(t){this.value=t},pi=(di.prototype.insert=function(t){t=new ci(t);return this.insertEntry(t),t},di.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++},di.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},di.prototype.len=function(){return this._len},di.prototype.clear=function(){this.head=this.tail=null,this._len=0},di);function di(){this._len=0}gi.prototype.put=function(t,e){var n,i,o=this._list,r=this._map,a=null;return null==r[t]&&(i=o.len(),n=this._lastRemovedEntry,i>=this._maxSize&&0<i&&(i=o.head,o.remove(i),delete r[i.key],a=i.value,this._lastRemovedEntry=i),n?n.value=e:n=new ci(e),n.key=t,o.insertEntry(n),r[t]=n),a},gi.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},gi.prototype.clear=function(){this._list.clear(),this._map={}},gi.prototype.len=function(){return this._list.len()};var fi=gi;function gi(t){this._list=new pi,this._maxSize=10,this._map={},this._maxSize=t}var yi={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 mi(t){return(t=Math.round(t))<0?0:255<t?255:t}function vi(t){return t<0?0:1<t?1:t}function _i(t){return t.length&&"%"===t.charAt(t.length-1)?mi(parseFloat(t)/100*255):mi(parseInt(t,10))}function xi(t){return t.length&&"%"===t.charAt(t.length-1)?vi(parseFloat(t)/100):vi(parseFloat(t))}function bi(t,e,n){return n<0?n+=1:1<n&&--n,6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function wi(t,e,n){return t+(e-t)*n}function Si(t,e,n,i,o){return t[0]=e,t[1]=n,t[2]=i,t[3]=o,t}function Mi(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Ti=new fi(20),Ci=null;function Ii(t,e){Ci&&Mi(Ci,e),Ci=Ti.put(t,Ci||e.slice())}function ki(t,e){if(t){e=e||[];var n=Ti.get(t);if(n)return Mi(e,n);n=(t+="").replace(/ /g,"").toLowerCase();if(n in yi)return Mi(e,yi[n]),Ii(t,e),e;var i=n.length;if("#"===n.charAt(0))return 4===i||5===i?0<=(o=parseInt(n.slice(1,4),16))&&o<=4095?(Si(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===i?parseInt(n.slice(4),16)/15:1),Ii(t,e),e):void Si(e,0,0,0,1):7===i||9===i?0<=(o=parseInt(n.slice(1,7),16))&&o<=16777215?(Si(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===i?parseInt(n.slice(7),16)/255:1),Ii(t,e),e):void Si(e,0,0,0,1):void 0;var o=n.indexOf("("),r=n.indexOf(")");if(-1!==o&&r+1===i){var i=n.substr(0,o),a=n.substr(o+1,r-(o+1)).split(","),s=1;switch(i){case"rgba":if(4!==a.length)return 3===a.length?Si(e,+a[0],+a[1],+a[2],1):Si(e,0,0,0,1);s=xi(a.pop());case"rgb":return 3<=a.length?(Si(e,_i(a[0]),_i(a[1]),_i(a[2]),3===a.length?s:xi(a[3])),Ii(t,e),e):void Si(e,0,0,0,1);case"hsla":return 4!==a.length?void Si(e,0,0,0,1):(a[3]=xi(a[3]),Di(a,e),Ii(t,e),e);case"hsl":return 3!==a.length?void Si(e,0,0,0,1):(Di(a,e),Ii(t,e),e);default:return}}Si(e,0,0,0,1)}}function Di(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=xi(t[1]),o=xi(t[2]),i=o<=.5?o*(i+1):o+i-o*i,o=2*o-i;return Si(e=e||[],mi(255*bi(o,i,n+1/3)),mi(255*bi(o,i,n)),mi(255*bi(o,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Ai(t,e){var n=ki(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,255<n[i]?n[i]=255:n[i]<0&&(n[i]=0);return Ni(n,4===n.length?"rgba":"rgb")}}function Pi(t,e,n){var i,o,r;if(e&&e.length&&0<=t&&t<=1)return n=n||[],t=t*(e.length-1),i=Math.floor(t),r=Math.ceil(t),o=e[i],e=e[r],n[0]=mi(wi(o[0],e[0],r=t-i)),n[1]=mi(wi(o[1],e[1],r)),n[2]=mi(wi(o[2],e[2],r)),n[3]=vi(wi(o[3],e[3],r)),n}var Li=Pi;function Oi(t,e,n){var i,o,r,a;if(e&&e.length&&0<=t&&t<=1)return t=t*(e.length-1),i=Math.floor(t),o=Math.ceil(t),a=ki(e[i]),e=ki(e[o]),a=Ni([mi(wi(a[0],e[0],r=t-i)),mi(wi(a[1],e[1],r)),mi(wi(a[2],e[2],r)),vi(wi(a[3],e[3],r))],"rgba"),n?{color:a,leftIndex:i,rightIndex:o,value:t}:a}var e=Oi;function Ri(t,e,n,i){var o=ki(t);if(t)return o=function(t){var e,n,i,o,r,a,s,l,u,h;if(t)return h=t[0]/255,e=t[1]/255,n=t[2]/255,s=Math.min(h,e,n),o=((i=Math.max(h,e,n))+s)/2,0==(u=i-s)?a=r=0:(a=o<.5?u/(i+s):u/(2-i-s),s=((i-h)/6+u/2)/u,l=((i-e)/6+u/2)/u,u=((i-n)/6+u/2)/u,h===i?r=u-l:e===i?r=1/3+s-u:n===i&&(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=z(e)?e(o[0]):e,(t=Math.round(t))<0?0:360<t?360:t)),null!=n&&(o[1]=xi(z(n)?n(o[1]):n)),null!=i&&(o[2]=xi(z(i)?i(o[2]):i)),Ni(Di(o),"rgba")}function zi(t,e){t=ki(t);if(t&&null!=e)return t[3]=vi(e),Ni(t,"rgba")}function Ni(t,e){var n;if(t&&t.length)return n=t[0]+","+t[1]+","+t[2],"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}function Bi(t,e){t=ki(t);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var Ei=new fi(100);function Vi(t){var e;return F(t)?((e=Ei.get(t))||(e=Ai(t,-.1),Ei.put(t,e)),e):vt(t)?((e=G({},t)).colorStops=E(t.colorStops,function(t){return{offset:t.offset,color:Ai(t.color,-.1)}}),e):t}var Li=Object.freeze({__proto__:null,fastLerp:Pi,fastMapToColor:Li,lerp:Oi,lift:Ai,liftColor:Vi,lum:Bi,mapToColor:e,modifyAlpha:zi,modifyHSL:Ri,parse:ki,parseCssFloat:xi,parseCssInt:_i,random:function(){return Ni([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:Ni,toHex:function(t){if(t=ki(t))return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}}),Fi=Math.round;function Hi(t){var e,n;return t&&"transparent"!==t?"string"==typeof t&&-1<t.indexOf("rgba")&&(n=ki(t))&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3]):t="none",{color:t,opacity:null==e?1:e}}function Wi(t){return t<1e-4&&-1e-4<t}function Gi(t){return Fi(1e3*t)/1e3}function Ui(t){return Fi(1e4*t)/1e4}var Zi={left:"start",right:"end",center:"middle",middle:"middle"};function Xi(t){return t&&!!t.image}function Yi(t){return Xi(t)||(t=t)&&!!t.svgElement}function qi(t){return"linear"===t.type}function ji(t){return"radial"===t.type}function Ki(t){return t&&("linear"===t.type||"radial"===t.type)}function $i(t){return"url(#"+t+")"}function Qi(t){t=t.getGlobalScale(),t=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function Ji(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*Ft,o=H(t.scaleX,1),r=H(t.scaleY,1),a=t.skewX||0,t=t.skewY||0,s=[];return(e||n)&&s.push("translate("+e+"px,"+n+"px)"),i&&s.push("rotate("+i+")"),1===o&&1===r||s.push("scale("+o+","+r+")"),(a||t)&&s.push("skew("+Fi(a*Ft)+"deg, "+Fi(t*Ft)+"deg)"),s.join(" ")}var to=w.hasGlobalWindow&&z(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return null},eo=Array.prototype.slice;function no(t,e,n){return(e-t)*n+t}function io(t,e,n,i){for(var o=e.length,r=0;r<o;r++)t[r]=no(e[r],n[r],i);return t}function oo(t,e,n,i){for(var o=e.length,r=0;r<o;r++)t[r]=e[r]+n[r]*i;return t}function ro(t,e,n,i){for(var o=e.length,r=o&&e[0].length,a=0;a<o;a++){t[a]||(t[a]=[]);for(var s=0;s<r;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function ao(t){if(ht(t)){var e=t.length;if(ht(t[0])){for(var n=[],i=0;i<e;i++)n.push(eo.call(t[i]));return n}return eo.call(t)}return t}function so(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 lo(t){return 4===t||5===t}function uo(t){return 1===t||2===t}var ho=[0,0,0,0],co=(po.prototype.isFinished=function(){return this._finished},po.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},po.prototype.needsAnimate=function(){return 1<=this.keyframes.length},po.prototype.getAdditiveTrack=function(){return this._additiveTrack},po.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i,o=this.keyframes,r=o.length,a=!1,s=6,l=e,u=(ht(e)?(1==(s=i=ht((i=e)&&i[0])?2:1)&&!ft(e[0])||2==i&&!ft(e[0][0]))&&(a=!0):ft(e)&&!bt(e)?s=0:F(e)?isNaN(+e)?(i=ki(e))&&(l=i,s=3):s=0:vt(e)&&((u=G({},l)).colorStops=E(e.colorStops,function(t){return{offset:t.offset,color:ki(t.color)}}),qi(e)?s=4:ji(e)&&(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 n&&(u.easing=n,u.easingFunc=z(n)?n:Vn[n]||li(n)),o.push(u),u},po.prototype.prepare=function(t,e){for(var n=this.keyframes,i=(this._needsSort&&n.sort(function(t,e){return t.time-e.time}),this.valType),o=n.length,r=n[o-1],a=this.discrete,s=uo(i),l=lo(i),u=0;u<o;u++){var h=n[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=i,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]:eo.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=w=b=h=d=void 0;for(var d=c.colorStops,h=p.colorStops,b=d.length,w=h.length,S=w<b?h:d,h=Math.min(b,w),M=S[h-1]||{color:[0,0,0,0],offset:0},T=h;T<Math.max(b,w);T++)S.push({offset:M.offset,color:M.color.slice()})}}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var C=n[0].value,u=0;u<o;u++)0===i?n[u].additiveValue=n[u].value-C:3===i?n[u].additiveValue=oo([],n[u].value,C,-1):uo(i)&&(n[u].additiveValue=(1===i?oo:ro)([],n[u].value,C,-1))}},po.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,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)n=i=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)}i=u[g+1],n=u[g]}n&&i&&(this._lastFr=g,this._lastFrP=e,d=i.percent-n.percent,o=0==d?1:f((e-n.percent)/d,1),i.easingFunc&&(o=i.easingFunc(o)),f=a?this._additiveValue:p?ho:t[c],(uo(l)||p)&&(f=f||(this._additiveValue=[])),this.discrete?t[c]=(o<1?n:i).rawValue:uo(l)?(1===l?io:function(t,e,n,i){for(var o=e.length,r=o&&e[0].length,a=0;a<o;a++){t[a]||(t[a]=[]);for(var s=0;s<r;s++)t[a][s]=no(e[a][s],n[a][s],i)}})(f,n[s],i[s],o):lo(l)?(d=n[s],r=i[s],t[c]={type:(l=4===l)?"linear":"radial",x:no(d.x,r.x,o),y:no(d.y,r.y,o),colorStops:E(d.colorStops,function(t,e){e=r.colorStops[e];return{offset:no(t.offset,e.offset,o),color:so(io([],t.color,e.color,o))}}),global:r.global},l?(t[c].x2=no(d.x2,r.x2,o),t[c].y2=no(d.y2,r.y2,o)):t[c].r=no(d.r,r.r,o)):p?(io(f,n[s],i[s],o),a||(t[c]=so(f))):(l=no(n[s],i[s],o),a?this._additiveValue=l:t[c]=l),a)&&this._addToTarget(t)}},po.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(ki(t[n],ho),oo(ho,ho,i,1),t[n]=so(ho)):1===e?oo(t[n],t[n],i,1):2===e&&ro(t[n],t[n],i,1)},po);function po(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}go.prototype.getMaxTime=function(){return this._maxTime},go.prototype.getDelay=function(){return this._delay},go.prototype.getLoop=function(){return this._loop},go.prototype.getTarget=function(){return this._target},go.prototype.changeTarget=function(t){this._target=t},go.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,X(e),n)},go.prototype.whenWithKeys=function(t,e,n,i){for(var o=this._tracks,r=0;r<n.length;r++){var a=n[r];if(!(l=o[a])){var s,l=o[a]=new co(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&&so(u))):u=this._target[a],null==u)continue;0<t&&l.addKeyframe(0,ao(u),i),this._trackKeys.push(a)}l.addKeyframe(t,ao(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},go.prototype.pause=function(){this._clip.pause(),this._paused=!0},go.prototype.resume=function(){this._clip.resume(),this._paused=!1},go.prototype.isPaused=function(){return!!this._paused},go.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},go.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},go.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},go.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},go.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var o=n[i].getTrack(t);o&&(e=o)}return e},go.prototype.start=function(t){if(!(0<this._started)){this._started=1;for(var e,r=this,a=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],o=this._getAdditiveTrack(o),l=s.keyframes,u=l.length;s.prepare(n,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 ui({life:n,loop:this._loop,delay:this._delay||0,onframe:function(t){r._started=2;var e=r._additiveAnimators;if(e){for(var n=!1,i=0;i<e.length;i++)if(e[i]._clip){n=!0;break}n||(r._additiveAnimators=null)}for(i=0;i<a.length;i++)a[i].step(r._target,t);var o=r._onframeCbs;if(o)for(i=0;i<o.length;i++)o[i](r._target,t)},ondestroy:function(){r._doneCallback()}}),this._clip=e,this.animation&&this.animation.addClip(e),t&&e.setEasing(t)):this._doneCallback(),this}},go.prototype.stop=function(t){var e;this._clip&&(e=this._clip,t&&e.onframe(1),this._abortedCallback())},go.prototype.delay=function(t){return this._delay=t,this},go.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},go.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},go.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},go.prototype.getClip=function(){return this._clip},go.prototype.getTrack=function(t){return this._tracks[t]},go.prototype.getTracks=function(){var e=this;return E(this._trackKeys,function(t){return e._tracks[t]})},go.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,o=0;o<t.length;o++){var r=n[t[o]];r&&!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<i.length;o++)if(!n[i[o]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},go.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var o=e[i],r=this._tracks[o];r&&!r.isFinished()&&(r=(r=r.keyframes)[n?0:r.length-1])&&(t[o]=ao(r.rawValue))}}},go.prototype.__changeFinalValue=function(t,e){e=e||X(t);for(var n=0;n<e.length;n++){var i,o=e[n],r=this._tracks[o];r&&1<(i=r.keyframes).length&&(i=i.pop(),r.addKeyframe(i.time,t[o]),r.prepare(this._maxTime,r.getAdditiveTrack()))}};var fo=go;function go(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,(this._loop=e)&&i?rt("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}function yo(){return(new Date).getTime()}a(_o,mo=ue),_o.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},_o.prototype.addAnimator=function(t){t.animation=this;t=t.getClip();t&&this.addClip(t)},_o.prototype.removeClip=function(t){var e,n;t.animation&&(e=t.prev,n=t.next,e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null)},_o.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},_o.prototype.update=function(t){for(var e=yo()-this._pausedTime,n=e-this._time,i=this._head;i;)var o=i.next,i=(i.step(e,n)&&(i.ondestroy(),this.removeClip(i)),o);this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},_o.prototype._startLoop=function(){var e=this;this._running=!0,En(function t(){e._running&&(En(t),e._paused||e.update())})},_o.prototype.start=function(){this._running||(this._time=yo(),this._pausedTime=0,this._startLoop())},_o.prototype.stop=function(){this._running=!1},_o.prototype.pause=function(){this._paused||(this._pauseStart=yo(),this._paused=!0)},_o.prototype.resume=function(){this._paused&&(this._pausedTime+=yo()-this._pauseStart,this._paused=!1)},_o.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},_o.prototype.isFinished=function(){return null==this._head},_o.prototype.animate=function(t,e){e=e||{},this.start();t=new fo(t,e.loop);return this.addAnimator(t),t};var mo,vo=_o;function _o(t){var e=mo.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 xo,bo=w.domSupported,wo=(xo={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:E(e,function(t){var e=t.replace("mouse","pointer");return xo.hasOwnProperty(e)?e:t})}),So=["mousemove","mouseup"],Mo=["pointermove","pointerup"],To=!1;function Co(t){t=t.pointerType;return"pen"===t||"touch"===t}function Io(t){t&&(t.zrByTouch=!0)}function ko(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var Do=function(t,e){this.stopPropagation=Vt,this.stopImmediatePropagation=Vt,this.preventDefault=Vt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Ao={mousedown:function(t){t=Ie(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Ie(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=Ie(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){ko(this,(t=Ie(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){To=!0,t=Ie(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){To||(t=Ie(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Io(t=Ie(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Ao.mousemove.call(this,t),Ao.mousedown.call(this,t)},touchmove:function(t){Io(t=Ie(this.dom,t)),this.handler.processGesture(t,"change"),Ao.mousemove.call(this,t)},touchend:function(t){Io(t=Ie(this.dom,t)),this.handler.processGesture(t,"end"),Ao.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Ao.click.call(this,t)},pointerdown:function(t){Ao.mousedown.call(this,t)},pointermove:function(t){Co(t)||Ao.mousemove.call(this,t)},pointerup:function(t){Ao.mouseup.call(this,t)},pointerout:function(t){Co(t)||Ao.mouseout.call(this,t)}},Po=(Z(["click","dblclick","contextmenu"],function(e){Ao[e]=function(t){t=Ie(this.dom,t),this.trigger(e,t)}}),{pointermove:function(t){Co(t)||Po.mousemove.call(this,t)},pointerup:function(t){Po.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 Lo(i,o){var r=o.domHandlers;w.pointerEventsSupported?Z(wo.pointer,function(e){Ro(o,e,function(t){r[e].call(i,t)})}):(w.touchEventsSupported&&Z(wo.touch,function(n){Ro(o,n,function(t){var e;r[n].call(i,t),(e=o).touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)})}),Z(wo.mouse,function(e){Ro(o,e,function(t){t=Ce(t),o.touching||r[e].call(i,t)})}))}function Oo(i,o){function t(n){Ro(o,n,function(t){var e;t=Ce(t),ko(i,t.target)||(e=t,t=Ie(i.dom,new Do(i,e),!0),o.domHandlers[n].call(i,t))},{capture:!0})}w.pointerEventsSupported?Z(Mo,t):w.touchEventsSupported||Z(So,t)}function Ro(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,ke(t.domTarget,e,n,i)}function zo(t){var e,n,i,o,r,a=t.mounted;for(e in a)a.hasOwnProperty(e)&&(n=t.domTarget,o=a[i=e],r=t.listenerOpts[e],n.removeEventListener(i,o,r));t.mounted={}}var No,Bo=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},Eo=(a(Vo,No=ue),Vo.prototype.dispose=function(){zo(this._localHandlerScope),bo&&zo(this._globalHandlerScope)},Vo.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},Vo.prototype.__togglePointerCapture=function(t){var e;this.__mayPointerCapture=null,bo&&+this.__pointerCapturing^+t&&(this.__pointerCapturing=t,e=this._globalHandlerScope,t?Oo(this,e):zo(e))},Vo);function Vo(t,e){var n=No.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=e,n._localHandlerScope=new Bo(t,Ao),bo&&(n._globalHandlerScope=new Bo(document,Po)),Lo(n,n._localHandlerScope),n}var e=1,Fo=e=w.hasGlobalWindow?Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1):e,Ho="#333",Wo="#ccc",Go=Ne;function Uo(t){return 5e-5<t||t<-5e-5}var Zo=[],Xo=[],Yo=ze(),qo=Math.abs,jo=(Ko.prototype.getLocalTransform=function(t){return Ko.getLocalTransform(this,t)},Ko.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},Ko.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},Ko.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},Ko.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},Ko.prototype.needLocalTransform=function(){return Uo(this.rotation)||Uo(this.x)||Uo(this.y)||Uo(this.scaleX-1)||Uo(this.scaleY-1)||Uo(this.skewX)||Uo(this.skewY)},Ko.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||ze(),e?this.getLocalTransform(n):Go(n),t&&(e?Ee(n,t,n):Be(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(Go(n),this.invTransform=null)},Ko.prototype._resolveGlobalScaleRatio=function(t){var e,n,i=this.globalScaleRatio;null!=i&&1!==i&&(this.getGlobalScale(Zo),n=((Zo[1]-(n=Zo[1]<0?-1:1))*i+n)/Zo[1]||0,t[0]*=i=((Zo[0]-(e=Zo[0]<0?-1:1))*i+e)/Zo[0]||0,t[1]*=i,t[2]*=n,t[3]*=n),this.invTransform=this.invTransform||ze(),We(this.invTransform,t)},Ko.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},Ko.prototype.setLocalTransform=function(t){var e,n,i,o;t&&(o=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],e=Math.atan2(t[1],t[0]),n=Math.PI/2+e-Math.atan2(t[3],t[2]),i=Math.sqrt(i)*Math.cos(n),o=Math.sqrt(o),this.skewX=n,this.skewY=0,this.rotation=-e,this.x=+t[4],this.y=+t[5],this.scaleX=o,this.scaleY=i,this.originX=0,this.originY=0)},Ko.prototype.decomposeTransform=function(){var t,e,n;this.transform&&(e=this.parent,t=this.transform,e&&e.transform&&(e.invTransform=e.invTransform||ze(),Ee(Xo,e.invTransform,t),t=Xo),e=this.originX,n=this.originY,(e||n)&&(Yo[4]=e,Yo[5]=n,Ee(Xo,t,Yo),Xo[4]-=e,Xo[5]-=n,t=Xo),this.setLocalTransform(t))},Ko.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},Ko.prototype.transformCoordToLocal=function(t,e){t=[t,e],e=this.invTransform;return e&&ne(t,t,e),t},Ko.prototype.transformCoordToGlobal=function(t,e){t=[t,e],e=this.transform;return e&&ne(t,t,e),t},Ko.prototype.getLineScale=function(){var t=this.transform;return t&&1e-10<qo(t[0]-1)&&1e-10<qo(t[3]-1)?Math.sqrt(qo(t[0]*t[3]-t[2]*t[1])):1},Ko.prototype.copyTransform=function(t){Jo(this,t)},Ko.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=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 n||i||a||s?(e[4]=-(a=n+a)*o-c*(s=i+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&&Fe(e,e,l),e[4]+=n+u,e[5]+=i+h,e},Ko.initDefaultProps=((e=Ko.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)),Ko);function Ko(){}var $o,Qo=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Jo(t,e){for(var n=0;n<Qo.length;n++){var i=Qo[n];t[i]=e[i]}}function tr(t){$o=$o||new fi(100),t=t||j;var e=$o.get(t);return e||(e={font:t,strWidthCache:new fi(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:K.measureText("国",t).width,asciiCharWidth:K.measureText("a",t).width},$o.put(t,e)),e}var er=0;function nr(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=function(t){if(!(5<=er)){t=t||j;for(var e=[],n=+new Date,i=0;i<=127;i++)e[i]=K.measureText(String.fromCharCode(i),t).width;n=+new Date-n;return 16<n?er=5:2<n&&er++,e}}(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?null!=t.asciiWidthMap?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function ir(t,e){var n=t.strWidthCache,i=n.get(e);return null==i&&(i=K.measureText(e,t.font).width,n.put(e,i)),i}function or(t,e,n,i){t=ir(tr(e),t),e=lr(e),n=ar(0,t,n),i=sr(0,e,i);return new q(n,i,t,e)}function rr(t,e,n,i){var o=((t||"")+"").split("\n");if(1===o.length)return or(o[0],e,n,i);for(var r=new q(0,0,0,0),a=0;a<o.length;a++){var s=or(o[a],e,n,i);0===a?r.copy(s):r.union(s)}return r}function ar(t,e,n,i){return"right"===n?i?t+=e:t-=e:"center"===n&&(i?t+=e/2:t-=e/2),t}function sr(t,e,n,i){return"middle"===n?i?t+=e/2:t-=e/2:"bottom"===n&&(i?t+=e:t-=e),t}function lr(t){return tr(t).stWideCharWidth}function ur(t,e){return"string"==typeof t?0<=t.lastIndexOf("%")?parseFloat(t)/100*e:parseFloat(t):t}function hr(t,e,n){var i=e.position||"inside",o=null!=e.distance?e.distance:5,r=n.height,a=n.width,s=r/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=ur(i[0],n.width),u+=ur(i[1],n.height),c=h=null;else switch(i){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 cr,pr="__zr_normal__",dr=Qo.concat(["ignore"]),fr=ct(Qo,function(t,e){return t[e]=!0,t},{ignore:!1}),gr={},yr=new q(0,0,0,0),mr=[],e=(n.prototype._init=function(t){this.attr(t)},n.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;(i=i||(this.transform=[1,0,0,1,0,0]))[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(t){var e,n,i,o,r,a,s,l,u,h,c,p=this._textContent;!p||p.ignore&&!t||(this.textConfig||(this.textConfig={}),u=(t=this.textConfig).local,a=r=void 0,n=!1,(e=p.innerTransformable).parent=u?this:null,h=!1,e.copyTransform(p),c=null!=t.position,o=void 0,((i=t.autoOverflowArea)||c)&&(o=yr,t.layoutRect?o.copy(t.layoutRect):o.copy(this.getBoundingRect()),u||o.applyTransform(this.transform)),c&&(this.calculateTextPosition?this.calculateTextPosition(gr,t,o):hr(gr,t,o),e.x=gr.x,e.y=gr.y,r=gr.align,a=gr.verticalAlign,c=t.origin)&&null!=t.rotation&&(l=s=void 0,l="center"===c?(s=.5*o.width,.5*o.height):(s=ur(c[0],o.width),ur(c[1],o.height)),h=!0,e.originX=-e.x+s+(u?0:o.x),e.originY=-e.y+l+(u?0:o.y)),null!=t.rotation&&(e.rotation=t.rotation),(c=t.offset)&&(e.x+=c[0],e.y+=c[1],h||(e.originX=-c[0],e.originY=-c[1])),s=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),i?(l=s.overflowRect=s.overflowRect||new q(0,0,0,0),e.getLocalTransform(mr),We(mr,mr),q.copy(l,o),l.applyTransform(mr)):s.overflowRect=null,c=h=u=void 0,(null==t.inside?"string"==typeof t.position&&0<=t.position.indexOf("inside"):t.inside)&&this.canBeInsideText()?(u=t.insideFill,h=t.insideStroke,null!=u&&"auto"!==u||(u=this.getInsideTextFill()),null!=h&&"auto"!==h||(h=this.getInsideTextStroke(u),c=!0)):(u=t.outsideFill,h=t.outsideStroke,null!=u&&"auto"!==u||(u=this.getOutsideFill()),null!=h&&"auto"!==h||(h=this.getOutsideStroke(u),c=!0)),(u=u||"#000")===s.fill&&h===s.stroke&&c===s.autoStroke&&r===s.align&&a===s.verticalAlign||(n=!0,s.fill=u,s.stroke=h,s.autoStroke=c,s.align=r,s.verticalAlign=a,p.setDefaultTextStyle(s)),p.__dirty|=Pn,n&&p.dirtyStyle(!0))},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(t){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Wo:Ho},n.prototype.getOutsideStroke=function(t){for(var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&ki(e),i=(n=n||[255,255,255,1])[3],o=this.__zr.isDarkMode(),r=0;r<3;r++)n[r]=n[r]*i+(o?0:255)*(1-i);return n[3]=1,Ni(n,"rgba")},n.prototype.traverse=function(t,e){},n.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||{},G(this.extra,e)):this[t]=e},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(N(t))for(var n=X(t),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,t[o])}return this.markRedraw(),this},n.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],o=i.__fromStateTransition;i.getLoop()||o&&o!==pr||(o=(o=i.targetName)?e[o]:e,i.saveTo(o))}},n.prototype._innerSaveToNormal=function(t){var e=(e=this._normalState)||(this._normalState={});t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,dr)},n.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var o=n[i];null==t[o]||o in e||(e[o]=this[o])}},n.prototype.hasState=function(){return 0<this.currentStates.length},n.prototype.getState=function(t){return this.states[t]},n.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},n.prototype.clearStates=function(t){this.useState(pr,!1,t)},n.prototype.useState=function(t,e,n,i){var o=t===pr,r=this.hasState();if(r||!o){var a,r=this.currentStates,s=this.stateTransition;if(!(0<=U(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||i))&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,a,this._normalState,e,!n&&!this.__inHover&&s&&0<s.duration,s),i=this._textContent,s=this._textGuide,i&&i.useState(t,e,n,r),s&&s.useState(t,e,n,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&=~Pn),a;rt("State "+t+" not exists.")}}},n.prototype.useStates=function(t,e,n){if(t.length){var i=[],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])&&i.push(u)}var h=i[r-1],h=!!(h&&h.hoverLayer||n),n=(h&&this._toggleHoverLayerFlag(!0),this._mergeStates(i)),c=this.stateTransition,n=(this.saveCurrentToNormalState(n),this._applyStateObj(t.join(","),n,this._normalState,!1,!e&&!this.__inHover&&c&&0<c.duration,c),this._textContent),c=this._textGuide;n&&n.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&=~Pn)}}else this.clearStates()},n.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget,t=e?t.ignoreHostSilent?null:e:t.parent}return!1},n.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},n.prototype.removeState=function(t){var e,t=U(this.currentStates,t);0<=t&&((e=this.currentStates.slice()).splice(t,1),this.useStates(e))},n.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),t=U(i,t),o=0<=U(i,e);0<=t?o?i.splice(t,1):i[t]=e:n&&!o&&i.push(e),this.useStates(i)},n.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},n.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var o=t[i];G(n,o),o.textConfig&&G(e=e||{},o.textConfig)}return e&&(n.textConfig=e),n},n.prototype._applyStateObj=function(t,e,n,i,o,r){for(var a=!(e&&i),s=(e&&e.textConfig?(this.textConfig=G({},(i?this:n).textConfig),G(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig),{}),l=!1,u=0;u<dr.length;u++){var h=dr[u],c=o&&fr[h];e&&null!=e[h]?c?(l=!0,s[h]=e[h]):this[h]=e[h]:a&&null!=n[h]&&(c?(l=!0,s[h]=n[h]):this[h]=n[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||n)[d]:e||n)}l&&this._transitionState(t,s,r)},n.prototype._attachComponent=function(t){var e;t.__zr&&!t.__hostTarget||t!==this&&((e=this.__zr)&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this)},n.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},n.prototype.getClipPath=function(){return this._clipPath},n.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},n.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},n.prototype.getTextContent=function(){return this._textContent},n.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new jo,this._attachComponent(t),this._textContent=t,this.markRedraw())},n.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),G(this.textConfig,t),this.markRedraw()},n.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},n.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},n.prototype.getTextGuideLine=function(){return this._textGuide},n.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},n.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},n.prototype.markRedraw=function(){this.__dirty|=Pn;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},n.prototype.dirty=function(){this.markRedraw()},n.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},n.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},n.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},n.prototype.animate=function(t,e,n){var i=t?this[t]:this,i=new fo(i,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},n.prototype.addAnimator=function(n,t){var e=this.__zr,i=this;n.during(function(){i.updateDuringAnimation(t)}).done(function(){var t=i.animators,e=U(t,n);0<=e&&t.splice(e,1)}),this.animators.push(n),e&&e.animation.addAnimator(n),e&&e.wakeUp()},n.prototype.updateDuringAnimation=function(t){this.markRedraw()},n.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,o=[],r=0;r<i;r++){var a=n[r];t&&t!==a.scope?o.push(a):a.stop(e)}return this.animators=o,this},n.prototype.animateTo=function(t,e,n){_r(this,t,e,n)},n.prototype.animateFrom=function(t,e,n){_r(this,t,e,n,!0)},n.prototype._transitionState=function(t,e,n,i){for(var o=_r(this,e,n,i),r=0;r<o.length;r++)o[r].__fromStateTransition=t},n.prototype.getBoundingRect=function(){return null},n.prototype.getPaintRect=function(){return null},n.initDefaultProps=((cr=n.prototype).type="element",cr.name="",cr.ignore=cr.silent=cr.ignoreHostSilent=cr.isGroup=cr.draggable=cr.dragging=cr.ignoreClip=cr.__inHover=!1,cr.__dirty=Pn,void(Object.defineProperty&&(vr("position","_legacyPos","x","y"),vr("scale","_legacyScale","scaleX","scaleY"),vr("origin","_legacyOrigin","originX","originY")))),n);function n(t){this.id=it++,this.animators=[],this.currentStates=[],this.states={},this._init(t)}function vr(t,e,n,i){function o(e,t){Object.defineProperty(t,0,{get:function(){return e[n]},set:function(t){e[n]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}Object.defineProperty(cr,t,{get:function(){var t;return this[e]||(t=this[e]=[],o(this,t)),this[e]},set:function(t){this[n]=t[0],this[i]=t[1],this[e]=t,o(this,t)}})}function _r(t,e,n,i,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,n,i,o,r,a,s,l){var u=X(o);var h=r.duration;var c=r.delay;var p=r.additive;var d=r.setToFinal;var f=!N(a);var g=e.animators;var y=[];for(var m=0;m<u.length;m++){var v=u[m],_=o[v];null!=_&&null!=i[v]&&(f||a[v])?!N(_)||ht(_)||vt(_)?y.push(v):n?l||(i[v]=_,e.updateDuringAnimation(n)):t(e,v,i[v],_,r,a&&a[v],s,l):l||(i[v]=_,e.updateDuringAnimation(n),y.push(v))}var x=y.length;if(!p&&x)for(var b,w=0;w<g.length;w++)(S=g[w]).targetName===n&&S.stopTracks(y)&&(b=U(g,S),g.splice(b,1));r.force||(y=pt(y,function(t){return!wr(o[t],i[t])}),x=y.length);if(0<x||r.force&&!s.length){var S,M=void 0,T=void 0,C=void 0;if(l){T={},d&&(M={});for(w=0;w<x;w++){v=y[w];T[v]=i[v],d?M[v]=o[v]:i[v]=o[v]}}else if(d){C={};for(w=0;w<x;w++){v=y[w];C[v]=ao(i[v]),br(i,o,v)}}(S=new fo(i,!1,!1,p?pt(g,function(t){return t.targetName===n}):null)).targetName=n,r.scope&&(S.scope=r.scope),d&&M&&S.whenWithKeys(0,M,y),C&&S.whenWithKeys(0,C,y),S.whenWithKeys(null==h?500:h,l?T:o,y).delay(c||0),e.addAnimator(S,n),s.push(S)}}(t,"",t,e,n=n||{},i,s,o),s.length),u=!1,h=n.done,c=n.aborted;l||h&&h(),0<s.length&&n.during&&s[0].during(function(t,e){n.during(e)});for(var p=0;p<s.length;p++){var d=s[p];d.done(r),d.aborted(a),n.force&&d.duration(n.duration),d.start(n.easing)}return s}function xr(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function br(t,e,n){if(ht(e[n]))if(ht(t[n])||(t[n]=[]),yt(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),xr(t[n],e[n],i))}else{var o=e[n],r=t[n],a=o.length;if(ht(o[0]))for(var s=o[0].length,l=0;l<a;l++)r[l]?xr(r[l],o[l],s):r[l]=Array.prototype.slice.call(o[l]);else xr(r,o,a);r.length=o.length}else t[n]=e[n]}function wr(t,e){return t===e||ht(t)&&ht(e)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(t,e)}ut(e,ue),ut(e,jo);a(Tr,Sr=e),Tr.prototype.childrenRef=function(){return this._children},Tr.prototype.children=function(){return this._children.slice()},Tr.prototype.childAt=function(t){return this._children[t]},Tr.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},Tr.prototype.childCount=function(){return this._children.length},Tr.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},Tr.prototype.addBefore=function(t,e){var n;return t&&t!==this&&t.parent!==this&&e&&e.parent===this&&0<=(e=(n=this._children).indexOf(e))&&(n.splice(e,0,t),this._doAdd(t)),this},Tr.prototype.replace=function(t,e){t=U(this._children,t);return 0<=t&&this.replaceAt(e,t),this},Tr.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];return t&&t!==this&&t.parent!==this&&t!==i&&(n[e]=t,i.parent=null,(n=this.__zr)&&i.removeSelfFromZr(n),this._doAdd(t)),this},Tr.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()},Tr.prototype.remove=function(t){var e=this.__zr,n=this._children,i=U(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},Tr.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},Tr.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var o=n[i];t.call(e,o,i)}return this},Tr.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],o=t.call(e,i);i.isGroup&&!o&&i.traverse(t,e)}return this},Tr.prototype.addSelfToZr=function(t){Sr.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].addSelfToZr(t)},Tr.prototype.removeSelfFromZr=function(t){Sr.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].removeSelfFromZr(t)},Tr.prototype.getBoundingRect=function(t){for(var e=new q(0,0,0,0),n=t||this._children,i=[],o=null,r=0;r<n.length;r++){var a,s=n[r];s.ignore||s.invisible||(a=s.getBoundingRect(),(s=s.getLocalTransform(i))?(q.applyTransform(e,a,s),(o=o||e.clone()).union(e)):(o=o||a.clone()).union(a))}return o||e};var Sr,Mr=Tr;function Tr(t){var e=Sr.call(this)||this;return e.isGroup=!0,e._children=[],e.attr(t),e}Mr.prototype.type="group";var Cr={},Ir={};Ar.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},Ar.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},Ar.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},Ar.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 Bi(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,o=0;o<i;o++)n+=Bi(e[o].color,1);return(n/=i)<.4}}return!1}(t))},Ar.prototype.getBackgroundColor=function(){return this._backgroundColor},Ar.prototype.setDarkMode=function(t){this._darkMode=t},Ar.prototype.isDarkMode=function(){return this._darkMode},Ar.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},Ar.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},Ar.prototype.flush=function(){this._disposed||this._flush(!1)},Ar.prototype._flush=function(t){var e,n=yo(),t=(this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),yo());e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:t-n})):0<this._sleepAfterStill&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill)&&this.animation.stop()},Ar.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},Ar.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},Ar.prototype.refreshHover=function(){this._needsRefreshHover=!0},Ar.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},Ar.prototype.resize=function(t){this._disposed||(this.painter.resize((t=t||{}).width,t.height),this.handler.resize())},Ar.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},Ar.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},Ar.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},Ar.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},Ar.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},Ar.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},Ar.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},Ar.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},Ar.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Mr&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},Ar.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 Ir[t])};var kr,Dr=Ar;function Ar(t,e,n){var i,o=this,r=(this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t,new Nn),a=n.renderer||"canvas",a=(Cr[a]||(a=X(Cr)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect,new Cr[a](e,r,n,t)),e=n.ssr||a.ssrOnly,t=(this.storage=r,this.painter=a,w.node||w.worker||e?null:new Eo(a.getViewportRoot(),a.root)),s=n.useCoarsePointer;(null==s||"auto"===s?w.touchEventsSupported:!!s)&&(i=H(n.pointerSize,44)),this.handler=new _n(r,a,t,a.root,i),this.animation=new vo({stage:{update:e?null:function(){return o._flush(!0)}}}),e||this.animation.start()}function Pr(t,e){t=new Dr(it++,t,e);return Ir[t.id]=t}function Lr(t,e){Cr[t]=e}function Or(t){if("function"==typeof kr)return kr(t)}function Rr(t){kr=t}var zr=Object.freeze({__proto__:null,dispose:function(t){t.dispose()},disposeAll:function(){for(var t in Ir)Ir.hasOwnProperty(t)&&Ir[t].dispose();Ir={}},getElementSSRData:Or,getInstance:function(t){return Ir[t]},init:Pr,registerPainter:Lr,registerSSRDataGetter:Rr,version:"6.0.0"}),Nr=20;var Br=Math.min,Er=Math.max,Vr=Math.abs;function Fr(t,e,n,i){var o=e[0],e=e[1],r=n[0],n=n[1],a=e-o,s=n-r;if(0==a)return 0==s?r:(r+n)/2;if(i)if(0<a){if(t<=o)return r;if(e<=t)return n}else{if(o<=t)return r;if(t<=e)return n}else{if(t===o)return r;if(t===e)return n}return(t-o)/a*s+r}var Hr=function(t,e,n){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return function(t,e,n){if(F(t))return t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e+(n||0):parseFloat(t);return null==t?NaN:+t}(t,e,n)};function Wr(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),Nr),t=(+t).toFixed(e),n?t:+t}function Gr(t){return t.sort(function(t,e){return t-e}),t}function Ur(t){if(t=+t,isNaN(t))return 0;if(1e-14<t)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return Zr(t)}function Zr(t){var t=t.toString().toLowerCase(),e=t.indexOf("e"),n=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)-n)}function Xr(t,e){var n=Math.log,i=Math.LN10,t=Math.floor(n(t[1]-t[0])/i),n=Math.round(n(Vr(e[1]-e[0]))/i),e=Math.min(Math.max(-t+n,0),20);return isFinite(e)?e:20}function Yr(t){var e=2*Math.PI;return(t%e+e)%e}function qr(t){return-1e-4<t&&t<1e-4}var jr=/^(?:(\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 Kr(t){var e,n;return t instanceof Date?t:F(t)?(e=jr.exec(t))?e[8]?(n=+e[4]||0,"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+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 $r(t){return Math.pow(10,Qr(t))}function Qr(t){var e;return 0===t?0:(e=Math.floor(Math.log(t)/Math.LN10),10<=t/Math.pow(10,e)&&e++,e)}function Jr(t,e){var n=Qr(t),i=Math.pow(10,n),o=t/i,e=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10;return t=e*i,-20<=n?+t.toFixed(n<0?-n:0):t}function ta(t){t.sort(function(t,e){return function t(e,n,i){return e.interval[i]<n.interval[i]||e.interval[i]===n.interval[i]&&(e.close[i]-n.close[i]==(i?-1:1)||!i&&t(e,n,1))}(t,e,0)?-1:1});for(var e=-1/0,n=1,i=0;i<t.length;){for(var o=t[i].interval,r=t[i].close,a=0;a<2;a++)o[a]<=e&&(o[a]=e,r[a]=a?1:1-n),e=o[a],n=r[a];o[0]===o[1]&&r[0]*r[1]!=1?t.splice(i,1):i++}return t}function ea(t){var e=parseFloat(t);return e==t&&(0!==e||!F(t)||t.indexOf("x")<=0)?e:NaN}function na(t){return!isNaN(ea(t))}function ia(){return Math.round(9*Math.random())}function oa(t,e){return null==t?e:null==e?t:t*e/function t(e,n){return 0===n?e:t(n,e%n)}(t,e)}function f(t){throw new Error(t)}function ra(t,e,n){return(e-t)*n+t}var aa="series\0",sa="\0_ec_\0";function la(t){return t instanceof Array?t:null==t?[]:[t]}function ua(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,o=n.length;i<o;i++){var r=n[i];!t.emphasis[e].hasOwnProperty(r)&&t[e].hasOwnProperty(r)&&(t.emphasis[e][r]=t[e][r])}}}var ha=["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 ca(t){return!N(t)||V(t)||t instanceof Date?t:t.value}function pa(t,n,e){var r,a,s,l,o,u,i,h,c,p,d="normalMerge"===e,f="replaceMerge"===e,g="replaceAll"===e,y=(t=t||[],n=(n||[]).slice(),L()),e=(Z(n,function(t,e){N(t)||(n[e]=null)}),function(t,e,n){var i=[];if("replaceAll"!==n)for(var o=0;o<t.length;o++){var r=t[o];r&&null!=r.id&&e.set(r.id,o),i.push({existing:"replaceMerge"===n||ma(r)?null:r,newOption:null,keyInfo:null,brandNew:null})}return i}(t,y,e));return(d||f)&&(r=e,a=t,s=y,Z(l=n,function(t,e){var n,i,o;t&&null!=t.id&&(n=fa(t.id),null!=(i=s.get(n)))&&(Ct(!(o=r[i]).newOption,'Duplicated option on id "'+n+'".'),o.newOption=t,o.existing=a[i],l[e]=null)})),d&&(o=e,Z(u=n,function(t,e){if(t&&null!=t.name)for(var n=0;n<o.length;n++){var i=o[n].existing;if(!o[n].newOption&&i&&(null==i.id||null==t.id)&&!ma(t)&&!ma(i)&&da("name",i,t))return o[n].newOption=t,void(u[e]=null)}})),d||f?(h=e,c=f,Z(n,function(t){if(t){for(var e,n=0;(e=h[n])&&(e.newOption||ma(e.existing)||e.existing&&null!=t.id&&!da("id",t,e.existing));)n++;e?(e.newOption=t,e.brandNew=c):h.push({newOption:t,brandNew:c,existing:null,keyInfo:null}),n++}})):g&&(i=e,Z(n,function(t){i.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})),t=e,p=L(),Z(t,function(t){var e=t.existing;e&&p.set(e.id,t)}),Z(t,function(t){var e=t.newOption;Ct(!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={})}),Z(t,function(t,e){var n=t.existing,i=t.newOption,o=t.keyInfo;if(N(i)){if(o.name=null!=i.name?fa(i.name):n?n.name:aa+e,n)o.id=fa(n.id);else if(null!=i.id)o.id=fa(i.id);else for(var r=0;o.id="\0"+o.name+"\0"+r++,p.get(o.id););p.set(o.id,t)}}),e}function da(t,e,n){e=ga(e[t],null),n=ga(n[t],null);return null!=e&&null!=n&&e===n}function fa(t){return ga(t,"")}function ga(t,e){return null==t?e:F(t)?t:ft(t)||dt(t)?t+"":e}function ya(t){t=t.name;return!(!t||!t.indexOf(aa))}function ma(t){return t&&null!=t.id&&0===fa(t.id).indexOf(sa)}function va(t,o,r){Z(t,function(t){var e,n,i=t.newOption;N(i)&&(t.keyInfo.mainType=o,t.keyInfo.subType=(e=o,i=i,t=t.existing,n=r,i.type||(t?t.subType:n.determineSubType(e,i))))})}function _a(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?V(t.dataIndex)?E(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?V(t.name)?E(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function i(){var e="__ec_inner_"+xa++;return function(t){return t[e]||(t[e]={})}}var xa=ia();function ba(n,t,i){var t=wa(t,i),e=t.mainTypeSpecified,o=t.queryOptionMap,r=t.others,a=i?i.defaultMainType:null;return!e&&a&&o.set(a,{}),o.each(function(t,e){t=Ta(n,e,t,{useDefault:a===e,enableAll:!i||null==i.enableAll||i.enableAll,enableNone:!i||null==i.enableNone||i.enableNone});r[e+"Models"]=t.models,r[e+"Model"]=t.models[0]}),r}function wa(t,i){var e=F(t)?((e={})[t+"Index"]=0,e):t,o=L(),r={},a=!1;return Z(e,function(t,e){var n;"dataIndex"===e||"dataIndexInside"===e?r[e]=t:(n=(e=e.match(/^(\w+)(Index|Id|Name)$/)||[])[1],e=(e[2]||"").toLowerCase(),!n||!e||i&&i.includeMainTypes&&U(i.includeMainTypes,n)<0||(a=a||!!n,(o.get(n)||o.set(n,{}))[e]=t))}),{mainTypeSpecified:a,queryOptionMap:o,others:r}}var Sa={useDefault:!0,enableAll:!1,enableNone:!1},Ma={useDefault:!1,enableAll:!0,enableNone:!0};function Ta(t,e,n,i){i=i||Sa;var o=n.index,r=n.id,n=n.name,a={models:null,specified:null!=o||null!=r||null!=n};if(a.specified){if("none"===o||!1===o){if(i.enableNone)return a.models=[],a;o=-1}"all"===o&&(o=i.enableAll?r=n=null:-1),a.models=t.queryComponents({mainType:e,index:o,id:r,name:n})}else o=void 0,a.models=i.useDefault&&(o=t.getComponent(e))?[o]:[];return a}function Ca(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function Ia(t,e,n,i,o){var r=null==e||"auto"===e;if(null==i)return i;if(ft(i))return Wr(p=ra(n||0,i,o),r?Math.max(Ur(n||0),Ur(i)):e);if(F(i))return o<1?n:i;for(var a=[],s=n,l=i,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=ra(d=s&&s[h]?s[h]:0,c=l[h],o),a[h]=Wr(p,r?Math.max(Ur(d),Ur(c)):e))}return a}var ka=".",Da="___EC__COMPONENT__CONTAINER___",Aa="___EC__EXTENDED_CLASS___";function Pa(t){var e={main:"",sub:""};return t&&(t=t.split(ka),e.main=t[0]||"",e.sub=t[1]||""),e}function La(t){(t.$constructor=t).extend=function(t){var e,n,i,o=this;function r(){return n.apply(this,arguments)||this}return z(i=o)&&/^class\s/.test(Function.prototype.toString.call(i))?(a(r,n=o),e=r):lt(e=function(){(t.$constructor||o).apply(this,arguments)},this),G(e.prototype,t),e[Aa]=!0,e.extend=this.extend,e.superCall=za,e.superApply=Na,e.superClass=o,e}}function Oa(t,e){t.extend=e.extend}var Ra=Math.round(10*Math.random());function za(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function Na(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Ba(t){var o={};t.registerClass=function(t){var e,n=t.type||t.prototype.type;return n&&(Ct(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e=n),'componentType "'+e+'" illegal'),(e=Pa(t.prototype.type=n)).sub?e.sub!==Da&&(function(t){var e=o[t.main];e&&e[Da]||(e=o[t.main]={___EC__COMPONENT__CONTAINER___:!0});return e}(e)[e.sub]=t):o[e.main]=t),t},t.getClass=function(t,e,n){var i=o[t];if(i&&i[Da]&&(i=e?i[e]:null),n&&!i)throw new Error(e?"Component "+t+"."+(e||"")+" is used but not imported.":t+".type should be specified.");return i},t.getClassesByMainType=function(t){var t=Pa(t),n=[],t=o[t.main];return t&&t[Da]?Z(t,function(t,e){e!==Da&&n.push(t)}):n.push(t),n},t.hasClass=function(t){t=Pa(t);return!!o[t.main]},t.getAllClassMainTypes=function(){var n=[];return Z(o,function(t,e){n.push(e)}),n},t.hasSubTypes=function(t){t=Pa(t),t=o[t.main];return t&&t[Da]}}function Ea(a,s){for(var t=0;t<a.length;t++)a[t][1]||(a[t][1]=a[t][0]);return s=s||!1,function(t,e,n){for(var i={},o=0;o<a.length;o++){var r=a[o][1];e&&0<=U(e,r)||n&&U(n,r)<0||null!=(r=t.getShallow(r,s))&&(i[a[o][0]]=r)}return i}}var Va=Ea([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Fa=(Ha.prototype.getAreaStyle=function(t,e){return Va(this,t,e)},Ha);function Ha(){}var Wa=new fi(50);function Ga(t,e,n,i,o){return t?"string"==typeof t?(e&&e.__zrImageSrc===t||!n||(n={hostEl:n,cb:i,cbPayload:o},(i=Wa.get(t))?Za(e=i.image)||i.pending.push(n):((e=K.loadImage(t,Ua,Ua)).__zrImageSrc=t,Wa.put(t,e.__cachedImgObj={image:e,pending:[n]}))),e):t:e}function Ua(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function Za(t){return t&&t.width&&t.height}var Xa=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Ya(t,e,n,i,o,r){if(n){for(var a=(e+"").split("\n"),s=(r=qa(n,i,o,r),!1),l={},u=0,h=a.length;u<h;u++)ja(l,a[u],r),a[u]=l.textLine,s=s||l.isTruncated;t.text=a.join("\n"),t.isTruncated=s}else t.text="",t.isTruncated=!1}function qa(t,e,n,i){for(var o=G({},i=i||{}),r=(n=H(n,"..."),o.maxIterations=H(i.maxIterations,2),o.minChar=H(i.minChar,0)),e=o.fontMeasureInfo=tr(e),a=e.asciiCharWidth,s=(o.placeholder=H(i.placeholder,""),t=Math.max(0,t-1)),l=0;l<r&&a<=s;l++)s-=a;i=ir(e,n);return s<i&&(n="",i=0),s=t-i,o.ellipsis=n,o.ellipsisWidth=i,o.contentWidth=s,o.containerWidth=t,o}function ja(t,e,n){var i=n.containerWidth,o=n.contentWidth,r=n.fontMeasureInfo;if(i)if((l=ir(r,e))<=i)t.textLine=e,t.isTruncated=!1;else{for(var a=0;;a++){if(l<=o||a>=n.maxIterations){e+=n.ellipsis;break}var s=0===a?function(t,e,n){for(var i=0,o=0,r=t.length;o<r&&i<e;o++)i+=nr(n,t.charCodeAt(o));return o}(e,o,r):0<l?Math.floor(e.length*o/l):0,l=ir(r,e=e.substr(0,s))}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}else t.textLine="",t.isTruncated=!1}var Ka=function(){},$a=function(t){this.tokens=[],t&&(this.tokens=t)},Qa=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function Ja(t,e,n,i,o){var r=new Qa,a=as(t);if(a){for(var s,t=e.padding,l=t?t[1]+t[3]:0,t=t?t[0]+t[2]:0,u=e.width,h=(null==u&&null!=n&&(u=n-l),e.height),n=(null==h&&null!=i&&(h=i-t),e.overflow),c="break"!==n&&"breakAll"!==n||null==u?null:{width:u,accumWidth:0,breakAll:"breakAll"===n},p=Xa.lastIndex=0;null!=(s=Xa.exec(a));){var d=s.index;p<d&&ts(r,a.substring(p,d),e,c),ts(r,s[2],e,c,s[1]),p=Xa.lastIndex}p<a.length&&ts(r,a.substring(p,a.length),e,c);var f,g=[],y=0,m=0,v="truncate"===n,_="truncate"===e.lineOverflow,x={};t:for(var b=0;b<r.lines.length;b++){for(var w=r.lines[b],S=0,M=0,T=0;T<w.tokens.length;T++){var C=(O=w.tokens[T]).styleName&&e.rich[O.styleName]||{},I=O.textPadding=C.padding,k=I?I[1]+I[3]:0,D=O.font=C.font||e.font,A=(O.contentHeight=lr(D),H(C.height,O.contentHeight));if(O.innerHeight=A,I&&(A+=I[0]+I[2]),O.height=A,O.lineHeight=St(C.lineHeight,e.lineHeight,A),O.align=C&&C.align||o,O.verticalAlign=C&&C.verticalAlign||"middle",_&&null!=h&&y+O.lineHeight>h){I=r.lines.length;0<T?(w.tokens=w.tokens.slice(0,T),z(w,M,S),r.lines=r.lines.slice(0,b+1)):r.lines=r.lines.slice(0,b),r.isTruncated=r.isTruncated||r.lines.length<I;break t}var P,I=C.width,L=null==I||"auto"===I;"string"==typeof I&&"%"===I.charAt(I.length-1)?(O.percentWidth=I,g.push(O),O.contentWidth=ir(tr(D),O.text)):(L&&(I=(I=C.backgroundColor)&&I.image)&&(P=void 0,Za(I="string"==typeof(f=I)?(P=Wa.get(f))&&P.image:f))&&(O.width=Math.max(O.width,I.width*A/I.height)),null!=(P=v&&null!=u?u-M:null)&&P<O.width?!L||P<k?(O.text="",O.width=O.contentWidth=0):(Ya(x,O.text,P-k,D,e.ellipsis,{minChar:e.truncateMinChar}),O.text=x.text,r.isTruncated=r.isTruncated||x.isTruncated,O.width=O.contentWidth=ir(tr(D),O.text)):O.contentWidth=ir(tr(D),O.text)),O.width+=k,M+=O.width,C&&(S=Math.max(S,O.lineHeight))}z(w,M,S)}r.outerWidth=r.width=H(u,m),r.outerHeight=r.height=H(h,y),r.contentHeight=y,r.contentWidth=m,r.outerWidth+=l,r.outerHeight+=t;for(b=0;b<g.length;b++){var O,R=(O=g[b]).percentWidth;O.width=parseInt(R,10)/100*r.width}}return r;function z(t,e,n){t.width=e,t.lineHeight=n,y+=n,m=Math.max(m,e)}}function ts(t,e,n,i,o){for(var r,a,s,l=""===e,u=o&&n.rich[o]||{},h=t.lines,t=u.font||n.font,c=!1,p=(i&&(n=(n=u.padding)?n[1]+n[3]:0,null!=u.width&&"auto"!==u.width?(s=ur(u.width,i.width)+n,0<h.length&&s+i.accumWidth>i.width&&(r=e.split("\n"),c=!0),i.accumWidth=s):(s=ns(e,t,i.width,i.breakAll,i.accumWidth),i.accumWidth=s.accumWidth+n,a=s.linesWidths,r=s.lines)),r=r||e.split("\n"),tr(t)),d=0;d<r.length;d++){var f,g,y=r[d],m=new Ka;m.styleName=o,m.text=y,m.isLineHolder=!y&&!l,"number"==typeof u.width?m.width=u.width:m.width=a?a[d]:ir(p,y),d||c?h.push(new $a([m])):1===(g=(f=(h[h.length-1]||(h[0]=new $a)).tokens).length)&&f[0].isLineHolder?f[0]=m:!y&&g&&!l||f.push(m)}}var es=ct(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function ns(t,e,n,i,o){for(var r,a=[],s=[],l="",u="",h=0,c=0,p=tr(e),d=0;d<t.length;d++){var f,g,y=t.charAt(d);"\n"===y?(u&&(l+=u,c+=h),a.push(l),s.push(c),u=l="",c=h=0):(f=nr(p,y.charCodeAt(0)),g=!(i||(g=void 0,!(32<=(g=(g=r=y).charCodeAt(0))&&g<=591||880<=g&&g<=4351||4608<=g&&g<=5119||7680<=g&&g<=8303))||!!es[r]),(a.length?n<c+f:n<o+c+f)?c?(l||u)&&(c=g?(l||(l=u,u="",c=h=0),a.push(l),s.push(c-h),u+=y,l="",h+=f):(u&&(l+=u,u="",h=0),a.push(l),s.push(c),l=y,f)):g?(a.push(u),s.push(h),u=y,h=f):(a.push(y),s.push(f)):(c+=f,g?(u+=y,h+=f):(u&&(l+=u,u="",h=0),l+=y)))}return u&&(l+=u),l&&(a.push(l),s.push(c)),1===a.length&&(c+=o),{accumWidth:c,lines:a,linesWidths:s}}function is(t,e,n,i,o,r){var a,s;t.baseX=n,t.baseY=i,t.outerWidth=t.outerHeight=null,e&&(a=2*e.width,s=2*e.height,q.set(os,ar(n,a,o),sr(i,s,r),a,s),q.intersect(e,os,null,rs),t.outerWidth=(n=rs.outIntersectRect).width,t.outerHeight=n.height,t.baseX=ar(n.x,n.width,o,!0),t.baseY=sr(n.y,n.height,r,!0))}var os=new q(0,0,0,0),rs={outIntersectRect:{},clamp:!0};function as(t){return null!=t?t+"":""}function ss(t,e,n,i){e=new q(ar(t.x||0,e,t.textAlign),sr(t.y||0,n,t.textBaseline),e,n),n=null!=i?i:ls(t)?t.lineWidth:0;return 0<n&&(e.x-=n/2,e.y-=n/2,e.width+=n,e.height+=n),e}function ls(t){var e=t.stroke;return null!=e&&"none"!==e&&0<t.lineWidth}var us,hs="__zr_style_"+Math.round(10*Math.random()),cs={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ps={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},ds=(cs[hs]=!0,["z","z2","invisible"]),fs=["invisible"],gs=(a(ys,us=e),ys.prototype._init=function(t){for(var e=X(t),n=0;n<e.length;n++){var i=e[n];"style"===i?this.useStyle(t[i]):us.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},ys.prototype.beforeBrush=function(){},ys.prototype.afterBrush=function(){},ys.prototype.innerBeforeBrush=function(){},ys.prototype.innerAfterBrush=function(){},ys.prototype.shouldBePainted=function(t,e,n,i){var o=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,n){ms.copy(t.getBoundingRect()),t.transform&&ms.applyTransform(t.transform);return vs.width=e,vs.height=n,!ms.intersect(vs)}(this,t,e)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length)for(var r=0;r<this.__clipPaths.length;++r)if(this.__clipPaths[r].isZeroArea())return!1;if(i&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},ys.prototype.contain=function(t,e){return this.rectContain(t,e)},ys.prototype.traverse=function(t,e){t.call(e,this)},ys.prototype.rectContain=function(t,e){t=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(t[0],t[1])},ys.prototype.getPaintRect=function(){var t,e,n,i,o,r=this._paintRect;return this._paintRect&&!this.__dirty||(o=this.transform,t=this.getBoundingRect(),e=(i=this.style).shadowBlur||0,n=i.shadowOffsetX||0,i=i.shadowOffsetY||0,r=this._paintRect||(this._paintRect=new q(0,0,0,0)),o?q.applyTransform(r,t,o):r.copy(t),(e||n||i)&&(r.width+=2*e+Math.abs(n),r.height+=2*e+Math.abs(i),r.x=Math.min(r.x,r.x+n-e),r.y=Math.min(r.y,r.y+i-e)),o=this.dirtyRectTolerance,r.isZero())||(r.x=Math.floor(r.x-o),r.y=Math.floor(r.y-o),r.width=Math.ceil(r.width+1+2*o),r.height=Math.ceil(r.height+1+2*o)),r},ys.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new q(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},ys.prototype.getPrevPaintRect=function(){return this._prevPaintRect},ys.prototype.animateStyle=function(t){return this.animate("style",t)},ys.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},ys.prototype.attrKV=function(t,e){"style"!==t?us.prototype.attrKV.call(this,t,e):this.style?this.setStyle(e):this.useStyle(e)},ys.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:G(this.style,t),this.dirtyStyle(),this},ys.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},ys.prototype.dirty=function(){this.dirtyStyle()},ys.prototype.styleChanged=function(){return!!(2&this.__dirty)},ys.prototype.styleUpdated=function(){this.__dirty&=-3},ys.prototype.createStyle=function(t){return Bt(cs,t)},ys.prototype.useStyle=function(t){t[hs]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},ys.prototype.isStyleObject=function(t){return t[hs]},ys.prototype._innerSaveToNormal=function(t){us.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,ds)},ys.prototype._applyStateObj=function(t,e,n,i,o,r){us.prototype._applyStateObj.call(this,t,e,n,i,o,r);var a,s=!(e&&i);if(e&&e.style?o?i?a=e.style:(a=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(a,e.style)):(a=this._mergeStyle(this.createStyle(),(i?this:n).style),this._mergeStyle(a,e.style)):s&&(a=n.style),a)if(o){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var u=X(l),h=0;h<u.length;h++)(p=u[h])in a&&(a[p]=a[p],this.style[p]=l[p]);for(var c=X(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?fs:ds,h=0;h<d.length;h++){p=d[h];e&&null!=e[p]?this[p]=e[p]:s&&null!=n[p]&&(this[p]=n[p])}},ys.prototype._mergeStates=function(t){for(var e,n=us.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.style&&this._mergeStyle(e=e||{},o.style)}return e&&(n.style=e),n},ys.prototype._mergeStyle=function(t,e){return G(t,e),t},ys.prototype.getAnimationStyleProps=function(){return ps},ys.initDefaultProps=((e=ys.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|Pn)),ys);function ys(t){return us.call(this,t)||this}var ms=new q(0,0,0,0),vs=new q(0,0,0,0);var _s=Math.min,xs=Math.max,bs=Math.sin,ws=Math.cos,Ss=2*Math.PI,Ms=Gt(),Ts=Gt(),Cs=Gt();function Is(t,e,n,i,o,r){o[0]=_s(t,n),o[1]=_s(e,i),r[0]=xs(t,n),r[1]=xs(e,i)}var ks=[],Ds=[];var As={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ps=[],Ls=[],Os=[],Rs=[],zs=[],Ns=[],Bs=Math.min,Es=Math.max,Vs=Math.cos,Fs=Math.sin,Hs=Math.abs,Ws=Math.PI,Gs=2*Ws,Us="undefined"!=typeof Float32Array,Zs=[];function Xs(t){return Math.round(t/Ws*1e8)/1e8%2*Ws}o.prototype.increaseVersion=function(){this._version++},o.prototype.getVersion=function(){return this._version},o.prototype.setScale=function(t,e,n){0<(n=n||0)&&(this._ux=Hs(n/Fo/t)||0,this._uy=Hs(n/Fo/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(As.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},o.prototype.lineTo=function(t,e){var n=Hs(t-this._xi),i=Hs(e-this._yi),o=n>this._ux||i>this._uy;return this.addData(As.L,t,e),this._ctx&&o&&this._ctx.lineTo(t,e),o?(this._xi=t,this._yi=e,this._pendingPtDist=0):(o=n*n+i*i)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o),this},o.prototype.bezierCurveTo=function(t,e,n,i,o,r){return this._drawPendingPt(),this.addData(As.C,t,e,n,i,o,r),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,o,r),this._xi=o,this._yi=r,this},o.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(As.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},o.prototype.arc=function(t,e,n,i,o,r){this._drawPendingPt(),Zs[0]=i,Zs[1]=o,s=r,(l=Xs((a=Zs)[0]))<0&&(l+=Gs),h=l-a[0],u=a[1],u+=h,!s&&Gs<=u-l?u=l+Gs:s&&Gs<=l-u?u=l-Gs:!s&&u<l?u=l+(Gs-Xs(l-u)):s&&l<u&&(u=l-(Gs-Xs(u-l))),a[0]=l,a[1]=u;var a,s,l,u,h=(o=Zs[1])-(i=Zs[0]);return this.addData(As.A,t,e,n,n,i,h,0,r?0:1),this._ctx&&this._ctx.arc(t,e,n,i,o,r),this._xi=Vs(o)*n+t,this._yi=Fs(o)*n+e,this},o.prototype.arcTo=function(t,e,n,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,o),this},o.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(As.R,t,e,n,i),this},o.prototype.closePath=function(){this._drawPendingPt(),this.addData(As.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},o.prototype.fill=function(t){t&&t.fill(),this.toStatic()},o.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},o.prototype.len=function(){return this._len},o.prototype.setData=function(t){if(this._saveData){var e=t.length;this.data&&this.data.length===e||!Us||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e}},o.prototype.appendPath=function(t){if(this._saveData){for(var e=(t=t instanceof Array?t:[t]).length,n=0,i=this._len,o=0;o<e;o++)n+=t[o].len();var r=this.data;if(Us&&(r instanceof Float32Array||!r)&&(this.data=new Float32Array(i+n),0<i)&&r)for(var a=0;a<i;a++)this.data[a]=r[a];for(o=0;o<e;o++)for(var s=t[o].data,a=0;a<s.length;a++)this.data[i++]=s[a];this._len=i}},o.prototype.addData=function(t,e,n,i,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,Us)&&11<this._len&&(this.data=new Float32Array(t))},o.prototype.getBoundingRect=function(){Os[0]=Os[1]=zs[0]=zs[1]=Number.MAX_VALUE,Rs[0]=Rs[1]=Ns[0]=Ns[1]=-Number.MAX_VALUE;for(var t,e=this.data,n=0,i=0,o=0,r=0,a=0;a<this._len;){var N=e[a++],B=1===a;switch(B&&(o=n=e[a],r=i=e[a+1]),N){case As.M:n=o=e[a++],i=r=e[a++],zs[0]=o,zs[1]=r,Ns[0]=o,Ns[1]=r;break;case As.L:Is(n,i,e[a],e[a+1],zs,Ns),n=e[a++],i=e[a++];break;case As.C:W=H=m=y=F=g=f=d=p=c=V=E=h=u=l=s=void 0;var s=n,l=i,u=e[a++],h=e[a++],E=e[a++],V=e[a++],c=e[a],p=e[a+1],d=zs,f=Ns,g=Jn,F=Kn,y=g(s,u,E,c,ks);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,E,c,ks[m]);d[0]=_s(H,d[0]),f[0]=xs(H,f[0])}for(y=g(l,h,V,p,Ds),m=0;m<y;m++){var W=F(l,h,V,p,Ds[m]);d[1]=_s(W,d[1]),f[1]=xs(W,f[1])}d[0]=_s(s,d[0]),f[0]=xs(s,f[0]),d[0]=_s(c,d[0]),f[0]=xs(c,f[0]),d[1]=_s(l,d[1]),f[1]=xs(l,f[1]),d[1]=_s(p,d[1]),f[1]=xs(p,f[1]),n=e[a++],i=e[a++];break;case As.Q:g=n,L=i,M=e[a++],x=e[a++],S=e[a],v=e[a+1],w=zs,T=Ns,t=b=t=_=void 0,_=ni,t=xs(_s((b=oi)(g,M,S),1),0),b=xs(_s(b(L,x,v),1),0),M=_(g,M,S,t),t=_(L,x,v,b),w[0]=_s(g,S,M),w[1]=_s(L,v,t),T[0]=xs(g,S,M),T[1]=xs(L,v,t),n=e[a++],i=e[a++];break;case As.A:var v,_=e[a++],x=e[a++],b=e[a++],w=e[a++],S=e[a++],M=e[a++]+S,T=(a+=1,!e[a++]),C=(B&&(o=Vs(S)*b+_,r=Fs(S)*w+x),z=v=U=G=R=O=L=P=A=D=k=I=C=void 0,_),I=x,k=b,D=w,A=S,P=M,L=T,O=zs,R=Ns,G=ie,U=oe;if((v=Math.abs(A-P))%Ss<1e-4&&1e-4<v)O[0]=C-k,O[1]=I-D,R[0]=C+k,R[1]=I+D;else{Ms[0]=ws(A)*k+C,Ms[1]=bs(A)*D+I,Ts[0]=ws(P)*k+C,Ts[1]=bs(P)*D+I,G(O,Ms,Ts),U(R,Ms,Ts),(A%=Ss)<0&&(A+=Ss),(P%=Ss)<0&&(P+=Ss),P<A&&!L?P+=Ss:A<P&&L&&(A+=Ss),L&&(v=P,P=A,A=v);for(var z=0;z<P;z+=Math.PI/2)A<z&&(Cs[0]=ws(z)*k+C,Cs[1]=bs(z)*D+I,G(O,Cs,O),U(R,Cs,R))}n=Vs(M)*b+_,i=Fs(M)*w+x;break;case As.R:Is(o=n=e[a++],r=i=e[a++],o+e[a++],r+e[a++],zs,Ns);break;case As.Z:n=o,i=r}ie(Os,Os,zs),oe(Rs,Rs,Ns)}return 0===a&&(Os[0]=Os[1]=Rs[0]=Rs[1]=0),new q(Os[0],Os[1],Rs[0]-Os[0],Rs[1]-Os[1])},o.prototype._calculateLength=function(){for(var t=this.data,e=this._len,n=this._ux,i=this._uy,o=0,r=0,a=0,s=0,l=(this._pathSegLen||(this._pathSegLen=[]),this._pathSegLen),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 As.M:o=a=t[c++],r=s=t[c++];break;case As.L:var g=t[c++],y=(_=t[c++])-r;(Hs(I=g-o)>n||Hs(y)>i||c===e-1)&&(f=Math.sqrt(I*I+y*y),o=g,r=_);break;case As.C:var m=t[c++],v=t[c++],g=t[c++],_=t[c++],x=t[c++],b=t[c++],f=function(t,e,n,i,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=Kn(t,n,o,a,f),f=Kn(e,i,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,b,10),o=x,r=b;break;case As.Q:f=function(t,e,n,i,o,r,a){for(var s=t,l=e,u=0,h=1/a,c=1;c<=a;c++){var p=c*h,d=ni(t,n,o,p),p=ni(e,i,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 As.A:var x=t[c++],b=t[c++],w=t[c++],S=t[c++],M=t[c++],T=t[c++],C=T+M;c+=1,d&&(a=Vs(M)*w+x,s=Fs(M)*S+b),f=Es(w,S)*Bs(Gs,Math.abs(T)),o=Vs(C)*w+x,r=Fs(C)*S+b;break;case As.R:a=o=t[c++],s=r=t[c++];f=2*t[c++]+2*t[c++];break;case As.Z:var I=a-o,y=s-r;f=Math.sqrt(I*I+y*y),o=a,r=s}0<=f&&(u+=l[h++]=f)}return this._pathLen=u},o.prototype.rebuildPath=function(t,e){var n,i,o,r,a,s,l,u,h=this.data,N=this._ux,B=this._uy,E=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<E;){var y=h[g++],V=1===g;switch(V&&(n=o=h[g],i=r=h[g+1]),y!==As.L&&0<f&&(t.lineTo(l,u),f=0),y){case As.M:n=o=h[g++],i=r=h[g++],t.moveTo(o,r);break;case As.L:var m=h[g++],v=h[g++],_=Hs(m-o),x=Hs(v-r);if(N<_||B<x){if(c){if(s<p+(z=a[d++])){var b=(s-p)/z;t.lineTo(o*(1-b)+m*b,r*(1-b)+v*b);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 As.C:var w=h[g++],S=h[g++],M=h[g++],T=h[g++],x=h[g++],_=h[g++];if(c){if(s<p+(z=a[d++])){ti(o,w,M,x,b=(s-p)/z,Ps),ti(r,S,T,_,b,Ls),t.bezierCurveTo(Ps[1],Ls[1],Ps[2],Ls[2],Ps[3],Ls[3]);break t}p+=z}t.bezierCurveTo(w,S,M,T,x,_),o=x,r=_;break;case As.Q:w=h[g++],S=h[g++],M=h[g++],T=h[g++];if(c){if(s<p+(z=a[d++])){ri(o,w,M,b=(s-p)/z,Ps),ri(r,S,T,b,Ls),t.quadraticCurveTo(Ps[1],Ls[1],Ps[2],Ls[2]);break t}p+=z}t.quadraticCurveTo(w,S,M,T),o=M,r=T;break;case As.A:var C=h[g++],I=h[g++],k=h[g++],D=h[g++],A=h[g++],P=h[g++],L=h[g++],F=!h[g++],H=D<k?k:D,O=.001<Hs(k-D),R=A+P,W=!1;if(c&&(s<p+(z=a[d++])&&(R=A+P*(s-p)/z,W=!0),p+=z),O&&t.ellipse?t.ellipse(C,I,k,D,L,A,R,F):t.arc(C,I,H,A,R,F),W)break t;V&&(n=Vs(A)*k+C,i=Fs(A)*D+I),o=Vs(R)*k+C,r=Fs(R)*D+I;break;case As.R:n=o=h[g],i=r=h[g+1],m=h[g++],v=h[g++];var z,P=h[g++],O=h[g++];if(c){if(s<p+(z=a[d++])){L=s-p;t.moveTo(m,v),t.lineTo(m+Bs(L,P),v),0<(L-=P)&&t.lineTo(m+P,v+Bs(L,O)),0<(L-=O)&&t.lineTo(m+Es(P-L,0),v+O),0<(L-=P)&&t.lineTo(m,v+Es(O-L,0));break t}p+=z}t.rect(m,v,P,O);break;case As.Z:if(c){if(s<p+(z=a[d++])){b=(s-p)/z;t.lineTo(o*(1-b)+n*b,r*(1-b)+i*b);break t}p+=z}t.closePath(),o=n,r=i}}},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.prototype.canSave=function(){return!!this._saveData},o.CMD=As,o.initDefaultProps=((e=o.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0));var Ys=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 qs(t,e,n,i,o,r,a){var s;if(0!==o)return s=0,!(e+(o=o)<a&&i+o<a||a<e-o&&a<i-o||t+o<r&&n+o<r||r<t-o&&r<n-o)&&(t===n?Math.abs(r-t)<=o/2:(r=(s=(e-i)/(t-n))*r-a+(t*i-n*e)/(t-n))*r/(s*s+1)<=o/2*o/2)}var js=2*Math.PI;function Ks(t){return(t%=js)<0&&(t+=js),t}var $s=2*Math.PI;function Qs(t,e,n,i,o,r){return e<r&&i<r||r<e&&r<i||i===e?0:(n=(r=(r-e)/(i-e))*(n-t)+t)===o?1/0:o<n?1!=r&&0!=r?i<e?1:-1:i<e?.5:-.5:0}var Js=Ys.CMD,tl=2*Math.PI,el=1e-4;var nl=[-1,-1,-1],il=[-1,-1];function ol(t,e,n,i,o,r,a,s,l,u){if(e<u&&i<u&&r<u&&s<u||u<e&&u<i&&u<r&&u<s)return 0;var h=Qn(e,i,r,s,u,nl);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=nl[y],v=0===m||1===m?.5:1;Kn(t,n,o,a,m)<l||(d<0&&(d=Jn(e,i,r,s,il),il[1]<il[0]&&1<d&&(c=void 0,c=il[0],il[0]=il[1],il[1]=c),f=Kn(e,i,r,s,il[0]),1<d)&&(g=Kn(e,i,r,s,il[1])),2===d?m<il[0]?p+=f<e?v:-v:m<il[1]?p+=g<f?v:-v:p+=s<g?v:-v:m<il[0]?p+=f<e?v:-v:p+=s<f?v:-v)}return p}function rl(t,e,n,i,o,r,a,s){if(e<s&&i<s&&r<s||s<e&&s<i&&s<r)return 0;c=nl,h=(l=e)-2*(u=i)+(h=r),u=2*(u-l),l-=s=s,s=0,qn(h)?jn(u)&&0<=(p=-l/u)&&p<=1&&(c[s++]=p):qn(l=u*u-4*h*l)?0<=(p=-u/(2*h))&&p<=1&&(c[s++]=p):0<l&&(d=(-u-(l=Hn(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=oi(e,i,r);if(0<=g&&g<=1){for(var y=0,m=ni(e,i,r,g),v=0;v<f;v++){var _=0===nl[v]||1===nl[v]?.5:1;ni(t,n,o,nl[v])<a||(nl[v]<g?y+=m<e?_:-_:y+=r<m?_:-_)}return y}return _=0===nl[0]||1===nl[0]?.5:1,ni(t,n,o,nl[0])<a?0:r<e?_:-_}function al(t,e,n,i,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===Js.M&&1<d&&(n||(l+=Qs(u,h,c,p,i,o))),g&&(c=u=a[d],p=h=a[d+1]),f){case Js.M:u=c=a[d++],h=p=a[d++];break;case Js.L:if(n){if(qs(u,h,a[d],a[d+1],e,i,o))return!0}else l+=Qs(u,h,a[d],a[d+1],i,o)||0;u=a[d++],h=a[d++];break;case Js.C:if(n){if(function(t,e,n,i,o,r,a,s,l,u,h){if(0!==l)return!(e+(l=l)<h&&i+l<h&&r+l<h&&s+l<h||h<e-l&&h<i-l&&h<r-l&&h<s-l||t+l<u&&n+l<u&&o+l<u&&a+l<u||u<t-l&&u<n-l&&u<o-l&&u<a-l)&&ei(t,e,n,i,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,i,o))return!0}else l+=ol(u,h,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,o)||0;u=a[d++],h=a[d++];break;case Js.Q:if(n){if(function(t,e,n,i,o,r,a,s,l){if(0!==a)return!(e+(a=a)<l&&i+a<l&&r+a<l||l<e-a&&l<i-a&&l<r-a||t+a<s&&n+a<s&&o+a<s||s<t-a&&s<n-a&&s<o-a)&&ai(t,e,n,i,o,r,s,l,null)<=a/2}(u,h,a[d++],a[d++],a[d],a[d+1],e,i,o))return!0}else l+=rl(u,h,a[d++],a[d++],a[d],a[d+1],i,o)||0;u=a[d++],h=a[d++];break;case Js.A:var y=a[d++],m=a[d++],v=a[d++],_=a[d++],x=a[d++],b=a[d++],w=(d+=1,!!(1-a[d++])),S=Math.cos(x)*v+y,M=Math.sin(x)*_+m,T=(g?(c=S,p=M):l+=Qs(u,h,S,M,i,o),(i-y)*_/v+y);if(n){if(function(t,e,n,i,o,r,a,s,l){if(0!==a)return a=a,s-=t,l-=e,!(n<(t=Math.sqrt(s*s+l*l))-a||t+a<n)&&(Math.abs(i-o)%$s<1e-4||((o=r?(e=i,i=Ks(o),Ks(e)):(i=Ks(i),Ks(o)))<i&&(o+=$s),(t=Math.atan2(l,s))<0&&(t+=$s),i<=t&&t<=o)||i<=t+$s&&t+$s<=o)}(y,m,_,x,x+b,w,e,T,o))return!0}else l+=function(t,e,n,i,o,r,a,s){if(n<(s-=e)||s<-n)return 0;var e=Math.sqrt(n*n-s*s);if(nl[0]=-e,nl[1]=e,(n=Math.abs(i-o))<1e-4)return 0;if(tl-1e-4<=n)return o=tl,h=r?1:-1,a>=nl[i=0]+t&&a<=nl[1]+t?h:0;o<i&&(e=i,i=o,o=e),i<0&&(i+=tl,o+=tl);for(var l=0,u=0;u<2;u++){var h,c=nl[u];a<c+t&&(h=r?1:-1,i<=(c=(c=Math.atan2(s,c))<0?tl+c:c)&&c<=o||i<=c+tl&&c+tl<=o)&&(l+=h=c>Math.PI/2&&c<1.5*Math.PI?-h:h)}return l}(y,m,_,x,x+b,w,T,o);u=Math.cos(x+b)*v+y,h=Math.sin(x+b)*_+m;break;case Js.R:c=u=a[d++],p=h=a[d++];if(S=c+a[d++],M=p+a[d++],n){if(qs(c,p,S,p,e,i,o)||qs(S,p,S,M,e,i,o)||qs(S,M,c,M,e,i,o)||qs(c,M,c,p,e,i,o))return!0}else l=(l+=Qs(S,p,S,M,i,o))+Qs(c,M,c,p,i,o);break;case Js.Z:if(n){if(qs(u,h,c,p,e,i,o))return!0}else l+=Qs(u,h,c,p,i,o);u=c,h=p}}return n||(t=h,r=p,Math.abs(t-r)<el)||(l+=Qs(u,h,c,p,i,o)||0),0!==l}var sl,ll=B({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},cs),ul={style:B({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ps.style)},hl=Qo.concat(["invisible","culling","z","z2","zlevel","parent"]),cl=(a(s,sl=gs),s.prototype.update=function(){var e=this,t=(sl.prototype.update.call(this),this.style);if(t.decal){var n,i=this._decalEl=this._decalEl||new s,o=(i.buildPath===s.prototype.buildPath&&(i.buildPath=function(t){e.buildPath(t,e.shape)}),i.silent=!0,i.style);for(n in t)o[n]!==t[n]&&(o[n]=t[n]);o.fill=t.fill?t.decal:null,o.decal=null,o.shadowColor=null,t.strokeFirst&&(o.stroke=null);for(var r=0;r<hl.length;++r)i[hl[r]]=this[hl[r]];i.__dirty|=Pn}else this._decalEl&&(this._decalEl=null)},s.prototype.getDecalElement=function(){return this._decalEl},s.prototype._init=function(t){var e=X(t),n=(this.shape=this.getDefaultShape(),this.getDefaultStyle());n&&this.useStyle(n);for(var i=0;i<e.length;i++){var o=e[i],r=t[o];"style"===o?this.style?G(this.style,r):this.useStyle(r):"shape"===o?G(this.shape,r):sl.prototype.attrKV.call(this,o,r)}this.style||this.useStyle({})},s.prototype.getDefaultStyle=function(){return null},s.prototype.getDefaultShape=function(){return{}},s.prototype.canBeInsideText=function(){return this.hasFill()},s.prototype.getInsideTextFill=function(){var t,e=this.style.fill;if("none"!==e){if(F(e))return.5<(t=Bi(e,0))?Ho:.2<t?"#eee":Wo;if(e)return Wo}return Ho},s.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(F(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==Bi(t,0)<.4)return e}},s.prototype.buildPath=function(t,e,n){},s.prototype.pathUpdated=function(){this.__dirty&=~Ln},s.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},s.prototype.createPathProxy=function(){this.path=new Ys(!1)},s.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))},s.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},s.prototype.getBoundingRect=function(){var t,e,n=this._rect,i=this.style,o=!n;return o&&(t=!1,this.path||(t=!0,this.createPathProxy()),e=this.path,(t||this.__dirty&Ln)&&(e.beginPath(),this.buildPath(e,this.shape,!1),this.pathUpdated()),n=e.getBoundingRect()),this._rect=n,this.hasStroke()&&this.path&&0<this.path.len()?(t=this._rectStroke||(this._rectStroke=n.clone()),(this.__dirty||o)&&(t.copy(n),e=i.strokeNoScale?this.getLineScale():1,o=i.lineWidth,this.hasFill()||(i=this.strokeContainThreshold,o=Math.max(o,null==i?4:i)),1e-10<e)&&(t.width+=o/e,t.height+=o/e,t.x-=o/e/2,t.y-=o/e/2),t):n},s.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),o=this.style;if(t=n[0],e=n[1],i.contain(t,e)){n=this.path;if(this.hasStroke()){i=o.lineWidth,o=o.strokeNoScale?this.getLineScale():1;if(1e-10<o&&(this.hasFill()||(i=Math.max(i,this.strokeContainThreshold)),al(n,i/o,!0,t,e)))return!0}if(this.hasFill())return al(n,0,!1,t,e)}return!1},s.prototype.dirtyShape=function(){this.__dirty|=Ln,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},s.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},s.prototype.animateShape=function(t){return this.animate("shape",t)},s.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},s.prototype.attrKV=function(t,e){"shape"===t?this.setShape(e):sl.prototype.attrKV.call(this,t,e)},s.prototype.setShape=function(t,e){var n=(n=this.shape)||(this.shape={});return"string"==typeof t?n[t]=e:G(n,t),this.dirtyShape(),this},s.prototype.shapeChanged=function(){return!!(this.__dirty&Ln)},s.prototype.createStyle=function(t){return Bt(ll,t)},s.prototype._innerSaveToNormal=function(t){sl.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.shape&&!e.shape&&(e.shape=G({},this.shape))},s.prototype._applyStateObj=function(t,e,n,i,o,r){sl.prototype._applyStateObj.call(this,t,e,n,i,o,r);var a,s=!(e&&i);if(e&&e.shape?o?i?a=e.shape:(a=G({},n.shape),G(a,e.shape)):(a=G({},(i?this:n).shape),G(a,e.shape)):s&&(a=n.shape),a)if(o){this.shape=G({},this.shape);for(var l={},u=X(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()},s.prototype._mergeStates=function(t){for(var e,n=sl.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.shape&&this._mergeStyle(e=e||{},o.shape)}return e&&(n.shape=e),n},s.prototype.getAnimationStyleProps=function(){return ul},s.prototype.isZeroArea=function(){return!1},s.extend=function(n){a(o,i=s),o.prototype.getDefaultStyle=function(){return S(n.style)},o.prototype.getDefaultShape=function(){return S(n.shape)};var i,t,e=o;function o(t){var e=i.call(this,t)||this;return n.init&&n.init.call(e,t),e}for(t in n)"function"==typeof n[t]&&(e.prototype[t]=n[t]);return e},s.initDefaultProps=((e=s.prototype).type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,void(e.__dirty=2|Pn|Ln)),s);function s(t){return sl.call(this,t)||this}var pl,dl=B({strokeFirst:!0,font:j,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},ll),fl=(a(gl,pl=gs),gl.prototype.hasStroke=function(){return ls(this.style)},gl.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},gl.prototype.createStyle=function(t){return Bt(dl,t)},gl.prototype.setBoundingRect=function(t){this._rect=t},gl.prototype.getBoundingRect=function(){var t,e,n;return this._rect||(this._rect=(t=this.style,e=as(t.text),n=t.font,ss(t,ir(tr(n),e),lr(n),null))),this._rect},gl.initDefaultProps=void(gl.prototype.dirtyRectTolerance=10),gl);function gl(){return null!==pl&&pl.apply(this,arguments)||this}fl.prototype.type="tspan";var yl=B({x:0,y:0},cs),ml={style:B({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ps.style)};a(xl,vl=gs),xl.prototype.createStyle=function(t){return Bt(yl,t)},xl.prototype._getSize=function(t){var e,n=this.style,i=n[t];return null!=i?i:(i=(i=n.image)&&"string"!=typeof i&&i.width&&i.height?n.image:this.__image)?null==(e=n[n="width"===t?"height":"width"])?i[t]:i[t]/i[n]*e:0},xl.prototype.getWidth=function(){return this._getSize("width")},xl.prototype.getHeight=function(){return this._getSize("height")},xl.prototype.getAnimationStyleProps=function(){return ml},xl.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new q(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect};var vl,_l=xl;function xl(){return null!==vl&&vl.apply(this,arguments)||this}_l.prototype.type="image";var bl=Math.round;function wl(t,e,n){var i,o,r;if(e)return i=e.x1,o=e.x2,r=e.y1,e=e.y2,t.x1=i,t.x2=o,t.y1=r,t.y2=e,(n=n&&n.lineWidth)&&(bl(2*i)===bl(2*o)&&(t.x1=t.x2=Ml(i,n,!0)),bl(2*r)===bl(2*e))&&(t.y1=t.y2=Ml(r,n,!0)),t}function Sl(t,e,n){var i,o,r;if(e)return i=e.x,o=e.y,r=e.width,e=e.height,t.x=i,t.y=o,t.width=r,t.height=e,(n=n&&n.lineWidth)&&(t.x=Ml(i,n,!0),t.y=Ml(o,n,!0),t.width=Math.max(Ml(i+r,n,!1)-t.x,0===r?0:1),t.height=Math.max(Ml(o+e,n,!1)-t.y,0===e?0:1)),t}function Ml(t,e,n){var i;return e?((i=bl(2*t))+bl(e))%2==0?i/2:(i+(n?1:-1))/2:t}var Tl,Cl=function(){this.x=0,this.y=0,this.width=0,this.height=0},Il={},kl=(a(Dl,Tl=cl),Dl.prototype.getDefaultShape=function(){return new Cl},Dl.prototype.buildPath=function(t,e){var n,i,o,r,a,s,l,u,h,c,p,d,f,g;this.subPixelOptimize?(n=(a=Sl(Il,e,this.style)).x,i=a.y,o=a.width,r=a.height,a.r=e.r,e=a):(n=e.x,i=e.y,o=e.width,r=e.height),e.r?(a=t,p=(e=e).x,d=e.y,f=e.width,g=e.height,e=e.r,f<0&&(p+=f,f=-f),g<0&&(d+=g,g=-g),"number"==typeof e?s=l=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(n,i,o,r)},Dl.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},Dl);function Dl(t){return Tl.call(this,t)||this}kl.prototype.type="rect";var Al,Pl={fill:"#000"},Ll={},Ol={style:B({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},ps.style)},Rl=(a(zl,Al=gs),zl.prototype.childrenRef=function(){return this._children},zl.prototype.update=function(){Al.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}},zl.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):Al.prototype.updateTransform.call(this)},zl.prototype.getLocalTransform=function(t){var e=this.innerTransformable;return e?e.getLocalTransform(t):Al.prototype.getLocalTransform.call(this,t)},zl.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),Al.prototype.getComputedTransform.call(this)},zl.prototype._updateSubTexts=function(){var t;this._childCursor=0,Wl(t=this.style),Z(t.rich,Wl),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},zl.prototype.addSelfToZr=function(t){Al.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=t},zl.prototype.removeSelfFromZr=function(t){Al.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=null},zl.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new q(0,0,0,0),e=this._children,n=[],i=null,o=0;o<e.length;o++){var r=e[o],a=r.getBoundingRect(),r=r.getLocalTransform(n);r?(t.copy(a),t.applyTransform(r),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},zl.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Pl},zl.prototype.setTextContent=function(t){},zl.prototype._mergeStyle=function(t,e){var n,i;return e&&(n=e.rich,i=t.rich||n&&{},G(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i)),t},zl.prototype._mergeRich=function(t,e){for(var n=X(e),i=0;i<n.length;i++){var o=n[i];t[o]=t[o]||{},G(t[o],e[o])}},zl.prototype.getAnimationStyleProps=function(){return Ol},zl.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},zl.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||j,n=t.padding,i=this._defaultStyle,o=t.x||0,r=t.y||0,a=t.align||i.align||"left",s=t.verticalAlign||i.verticalAlign||"top";is(Ll,i.overflowRect,o,r,a,s);for(var l,o=Ll.baseX,r=Ll.baseY,u=function(t,e,n,i){var o,t=as(t),r=e.overflow,a=(s=e.padding)?s[1]+s[3]:0,s=s?s[0]+s[2]:0,l=e.font,u="truncate"===r,h=lr(l),c=H(e.lineHeight,h),p="truncate"===e.lineOverflow,d=!1,f=e.width,g=e.height,i=(null==g&&null!=i&&(g=i-s),(o=null==(f=null==f&&null!=n?n-a:f)||"break"!==r&&"breakAll"!==r?t?t.split("\n"):[]:t?ns(t,e.font,f,"breakAll"===r,0).lines:[]).length*c);if((g=null==g?i:g)<i&&p&&(n=Math.floor(g/c),d=d||o.length>n,i=(o=o.slice(0,n)).length*c),t&&u&&null!=f)for(var y=qa(f,l,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m={},v=0;v<o.length;v++)ja(m,o[v],y),o[v]=m.textLine,d=d||m.isTruncated;for(var r=g,_=0,x=tr(l),v=0;v<o.length;v++)_=Math.max(ir(x,o[v]),_);return p=f=null==f?_:f,{lines:o,height:g,outerWidth:p+=a,outerHeight:r+=s,lineHeight:c,calculatedLineHeight:h,contentWidth:_,contentHeight:i,width:f,isTruncated:d}}(Xl(t),t,Ll.outerWidth,Ll.outerHeight),h=Yl(t),c=!!t.backgroundColor,p=u.outerHeight,d=u.outerWidth,f=u.lines,g=u.lineHeight,y=(this.isTruncated=!!u.isTruncated,o),m=sr(r,u.contentHeight,s),v=((h||n)&&(l=ar(o,d,a),r=sr(r,p,s),h)&&this._renderBackground(t,t,l,r,d,p),m+=g/2,n&&(y=Zl(o,a,n),"top"===s?m+=n[0]:"bottom"===s&&(m-=n[2])),0),_=!1,h=!1,x=(Ul(("fill"in t?t:(h=!0,i)).fill)),b=(Gl("stroke"in t?t.stroke:c||i.autoStroke&&!h?null:(v=2,_=!0,i.stroke))),w=0<t.textShadowBlur,S=0;S<f.length;S++){var M=this._getOrCreateChild(fl),T=M.createStyle();M.useStyle(T),T.text=f[S],T.x=y,T.y=m,a&&(T.textAlign=a),T.textBaseline="middle",T.opacity=t.opacity,T.strokeFirst=!0,w&&(T.shadowBlur=t.textShadowBlur||0,T.shadowColor=t.textShadowColor||"transparent",T.shadowOffsetX=t.textShadowOffsetX||0,T.shadowOffsetY=t.textShadowOffsetY||0),T.stroke=b,T.fill=x,b&&(T.lineWidth=t.lineWidth||v,T.lineDash=t.lineDash,T.lineDashOffset=t.lineDashOffset||0),T.font=e,Fl(T,t),m+=g,M.setBoundingRect(ss(T,u.contentWidth,u.calculatedLineHeight,_?0:null))}},zl.prototype._updateRichTexts=function(){var t=this.style,e=this._defaultStyle,n=t.align||e.align,i=t.verticalAlign||e.verticalAlign,o=t.x||0,r=t.y||0;is(Ll,e.overflowRect,o,r,n,i);for(var o=Ll.baseX,r=Ll.baseY,a=Ja(Xl(t),t,Ll.outerWidth,Ll.outerHeight,n),s=a.width,e=a.outerWidth,l=a.outerHeight,u=t.padding,o=(this.isTruncated=!!a.isTruncated,ar(o,e,n)),n=sr(r,l,i),h=o,c=n,p=(u&&(h+=u[3],c+=u[0]),h+s),d=(Yl(t)&&this._renderBackground(t,t,o,n,e,l),!!t.backgroundColor),f=0;f<a.lines.length;f++){for(var g=a.lines[f],y=g.tokens,m=y.length,v=g.lineHeight,_=g.width,x=0,b=h,w=p,S=m-1,M=void 0;x<m&&(!(M=y[x]).align||"left"===M.align);)this._placeToken(M,t,v,c,b,"left",d),_-=M.width,b+=M.width,x++;for(;0<=S&&"right"===(M=y[S]).align;)this._placeToken(M,t,v,c,w,"right",d),_-=M.width,w-=M.width,S--;for(b+=(s-(b-h)-(p-w)-_)/2;x<=S;)M=y[x],this._placeToken(M,t,v,c,b+M.width/2,"center",d),b+=M.width,x++;c+=v}},zl.prototype._placeToken=function(t,e,n,i,o,r,a){var s=e.rich[t.styleName]||{},l=(s.text=t.text,t.verticalAlign),u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2);!t.isLineHolder&&Yl(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,i=t.textPadding,n=(i&&(o=Zl(o,r,i),u-=t.height/2-i[0]-t.innerHeight/2),this._getOrCreateChild(fl)),i=n.createStyle(),h=(n.useStyle(i),this._defaultStyle),c=!1,p=0,d=!1,f=Ul(("fill"in s?s:"fill"in e?e:(c=!0,h)).fill),l=Gl("stroke"in s?s.stroke:"stroke"in e?e.stroke:l||a||h.autoStroke&&!c?null:(p=2,d=!0,h.stroke)),a=0<s.textShadowBlur||0<e.textShadowBlur;i.text=t.text,i.x=o,i.y=u,a&&(i.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,i.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",i.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,i.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),i.textAlign=r,i.textBaseline="middle",i.font=t.font||j,i.opacity=St(s.opacity,e.opacity,1),Fl(i,s),l&&(i.lineWidth=St(s.lineWidth,e.lineWidth,p),i.lineDash=H(s.lineDash,e.lineDash),i.lineDashOffset=e.lineDashOffset||0,i.stroke=l),f&&(i.fill=f),n.setBoundingRect(ss(i,t.contentWidth,t.contentHeight,d?0:null))},zl.prototype._renderBackground=function(t,e,n,i,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(kl)).useStyle(a.createStyle()),a.style.fill=null,(l=a.shape).x=n,l.y=i,l.width=o,l.height=r,l.r=g,a.dirtyShape()),f?((u=a.style).fill=h||null,u.fillOpacity=H(t.fillOpacity,1)):d&&((s=this._getOrCreateChild(_l)).onload=function(){y.dirtyStyle()},(l=s.style).image=h.image,l.x=n,l.y=i,l.width=o,l.height=r),c&&p&&((u=a.style).lineWidth=c,u.stroke=p,u.strokeOpacity=H(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=St(t.opacity,e.opacity,1)},zl.makeFont=function(t){var e="";return(e=Hl(t)?[t.fontStyle,t.fontWeight,Vl(t.fontSize),t.fontFamily||"sans-serif"].join(" "):e)&&It(e)||t.textFont||t.font},zl);function zl(t){var e=Al.call(this)||this;return e.type="text",e._children=[],e._defaultStyle=Pl,e.attr(t),e}var Nl={left:!0,right:1,center:1},Bl={top:1,bottom:1,middle:1},El=["fontStyle","fontWeight","fontSize","fontFamily"];function Vl(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?m+"px":t+"px":t}function Fl(t,e){for(var n=0;n<El.length;n++){var i=El[n],o=e[i];null!=o&&(t[i]=o)}}function Hl(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function Wl(t){var e;t&&(t.font=Rl.makeFont(t),e=t.align,t.align=null==(e="middle"===e?"center":e)||Nl[e]?e:"left",e=t.verticalAlign,t.verticalAlign=null==(e="center"===e?"middle":e)||Bl[e]?e:"top",t.padding)&&(t.padding=Tt(t.padding))}function Gl(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Ul(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Zl(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Xl(t){t=t.text;return null!=t&&(t+=""),t}function Yl(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var W=i(),ql=1,jl={},Kl=i(),$l=i(),Ql=0,Jl=1,tu=2,eu=["emphasis","blur","select"],nu=["normal","emphasis","blur","select"],iu="highlight",ou="downplay",ru="select",au="unselect",su="toggleSelect",e="selectchanged";function lu(t){return null!=t&&"none"!==t}function uu(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function hu(t){uu(t,"emphasis",tu)}function cu(t){t.hoverState===tu&&uu(t,"normal",Ql)}function pu(t){uu(t,"blur",Jl)}function du(t){t.hoverState===Jl&&uu(t,"normal",Ql)}function fu(t){t.selected=!0}function gu(t){t.selected=!1}function yu(t,e,n){e(t,n)}function mu(t,e,n){yu(t,e,n),t.isGroup&&t.traverse(function(t){yu(t,e,n)})}function vu(t,e){switch(e){case"emphasis":t.hoverState=tu;break;case"normal":t.hoverState=Ql;break;case"blur":t.hoverState=Jl;break;case"select":t.selected=!0}}function _u(t,e,n){var i=0<=U(t.currentStates,e),o=t.style.opacity,t=i?null:function(t,e,n,i){for(var o=t.style,r={},a=0;a<e.length;a++){var s=e[a],l=o[s];r[s]=null==l?i&&i[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(r,e)}return r}(t,["opacity"],e,{opacity:1}),e=(n=n||{}).style||{};return null==e.opacity&&(n=G({},n),e=G({opacity:i?o:.1*t.opacity},e),n.style=e),n}function xu(t,e){var n,i,o,r,a,s=this.states[t];if(this.style){if("emphasis"===t)return n=this,i=s,e=(e=e)&&0<=U(e,"select"),a=!1,n instanceof cl&&(o=Kl(n),r=e&&o.selectFill||o.normalFill,e=e&&o.selectStroke||o.normalStroke,lu(r)||lu(e))&&("inherit"===(o=(i=i||{}).style||{}).fill?(a=!0,i=G({},i),(o=G({},o)).fill=r):!lu(o.fill)&&lu(r)?(a=!0,i=G({},i),(o=G({},o)).fill=Vi(r)):!lu(o.stroke)&&lu(e)&&(a||(i=G({},i),o=G({},o)),o.stroke=Vi(e)),i.style=o),i&&null==i.z2&&(a||(i=G({},i)),r=n.z2EmphasisLift,i.z2=n.z2+(null!=r?r:10)),i;if("blur"===t)return _u(this,t,s);if("select"===t)return e=this,(o=s)&&null==o.z2&&(o=G({},o),a=e.z2SelectLift,o.z2=e.z2+(null!=a?a:9)),o}return s}function bu(t){t.stateProxy=xu;var e=t.getTextContent(),t=t.getTextGuideLine();e&&(e.stateProxy=xu),t&&(t.stateProxy=xu)}function wu(t,e){Au(t,e)||t.__highByOuter||mu(t,hu)}function Su(t,e){Au(t,e)||t.__highByOuter||mu(t,cu)}function Mu(t,e){t.__highByOuter|=1<<(e||0),mu(t,hu)}function Tu(t,e){(t.__highByOuter&=~(1<<(e||0)))||mu(t,cu)}function Cu(t){mu(t,pu)}function Iu(t){mu(t,du)}function ku(t){mu(t,fu)}function Du(t){mu(t,gu)}function Au(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Pu(o){var e=o.getModel(),r=[],a=[];e.eachComponent(function(t,e){var n=$l(e),t="series"===t,i=t?o.getViewOfSeriesModel(e):o.getViewOfComponentModel(e);t||a.push(i),n.isBlured&&(i.group.traverse(function(t){du(t)}),t)&&r.push(e),n.isBlured=!1}),Z(a,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(r,!1,e)})}function Lu(t,r,a,s){var l,u,h,n=s.getModel();function c(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&Iu(i)}}a=a||"coordinateSystem",null!=t&&r&&"none"!==r&&(l=n.getSeriesByIndex(t),(u=l.coordinateSystem)&&u.master&&(u=u.master),h=[],n.eachSeries(function(t){var e=l===t,n=t.coordinateSystem,n=(n=n&&n.master?n.master:n)&&u?n===u:e;if(!("series"===a&&!e||"coordinateSystem"===a&&!n||"series"===r&&e)){if(s.getViewOfSeriesModel(t).group.traverse(function(t){t.__highByOuter&&e&&"self"===r||pu(t)}),ht(r))c(t.getData(),r);else if(N(r))for(var i=X(r),o=0;o<i.length;o++)c(t.getData(i[o]),r[i[o]]);h.push(t),$l(t).isBlured=!0}}),n.eachComponent(function(t,e){"series"!==t&&(t=s.getViewOfComponentModel(e))&&t.toggleBlurSeries&&t.toggleBlurSeries(h,!0,n)}))}function Ou(t,e,n){var i;null!=t&&null!=e&&(t=n.getModel().getComponent(t,e))&&($l(t).isBlured=!0,i=n.getViewOfComponentModel(t))&&i.focusBlurEnabled&&i.group.traverse(function(t){pu(t)})}function Ru(t,e,n,i){var o={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return o;t=i.getModel().getComponent(t,e);if(!t)return o;e=i.getViewOfComponentModel(t);if(!e||!e.findHighDownDispatchers)return o;for(var r,a=e.findHighDownDispatchers(n),s=0;s<a.length;s++)if("self"===W(a[s]).focus){r=!0;break}return{focusSelf:r,dispatchers:a}}function zu(i){Z(i.getAllData(),function(t){var e=t.data,n=t.type;e.eachItemGraphicEl(function(t,e){(i.isSelected(e,n)?ku:Du)(t)})})}function Nu(t,e,n){Hu(t,!0),mu(t,bu);t=W(t),null!=e?(t.focus=e,t.blurScope=n):t.focus&&(t.focus=null)}function Bu(t,e,n,i){i?Hu(t,!1):Nu(t,e,n)}var Eu=["emphasis","blur","select"],Vu={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Fu(t,e,n,i){n=n||"itemStyle";for(var o=0;o<Eu.length;o++){var r=Eu[o],a=e.getModel([r,n]);t.ensureState(r).style=i?i(a):a[Vu[n]]()}}function Hu(t,e){var e=!1===e,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),e&&!n.__highDownDispatcher||(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!e)}function Wu(t){return!(!t||!t.__highDownDispatcher)}function Gu(t){t=t.type;return t===ru||t===au||t===su}function Uu(t){t=t.type;return t===iu||t===ou}var Zu=Ys.CMD,Xu=[[],[],[]],Yu=Math.sqrt,qu=Math.atan2;var ju=Math.sqrt,Ku=Math.sin,$u=Math.cos,Qu=Math.PI;function Ju(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function th(t,e){return(t[0]*e[0]+t[1]*e[1])/(Ju(t)*Ju(e))}function eh(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(th(t,e))}function nh(t,e,n,i,o,r,a,s,l,u,h){var l=l*(Qu/180),c=$u(l)*(t-n)/2+Ku(l)*(e-i)/2,p=-1*Ku(l)*(t-n)/2+$u(l)*(e-i)/2,d=c*c/(a*a)+p*p/(s*s),d=(1<d&&(a*=ju(d),s*=ju(d)),(o===r?-1:1)*ju((a*a*(s*s)-a*a*(p*p)-s*s*(c*c))/(a*a*(p*p)+s*s*(c*c)))||0),o=d*a*p/s,d=d*-s*c/a,t=(t+n)/2+$u(l)*o-Ku(l)*d,n=(e+i)/2+Ku(l)*o+$u(l)*d,e=eh([1,0],[(c-o)/a,(p-d)/s]),i=[(c-o)/a,(p-d)/s],c=[(-1*c-o)/a,(-1*p-d)/s],o=eh(i,c);th(i,c)<=-1&&(o=Qu),(o=1<=th(i,c)?0:o)<0&&(p=Math.round(o/Qu*1e6)/1e6,o=2*Qu+p%2*Qu),h.addData(u,t,n,a,s,e,o,l,r)}var ih=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,oh=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;a(sh,rh=cl),sh.prototype.applyTransform=function(t){};var rh,ah=sh;function sh(){return null!==rh&&rh.apply(this,arguments)||this}function lh(t){return null!=t.setData}function uh(t,e){var S=function(t){var e=new Ys;if(t){var n,i=0,o=0,r=i,a=o,s=Ys.CMD,l=t.match(ih);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(oh)||[],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,b=void 0,w=void 0,S=void 0,M=i,T=o,C=void 0,I=void 0;switch(c){case"l":i+=d[y++],o+=d[y++],p=s.L,e.addData(p,i,o);break;case"L":i=d[y++],o=d[y++],p=s.L,e.addData(p,i,o);break;case"m":i+=d[y++],o+=d[y++],p=s.M,e.addData(p,i,o),r=i,a=o,c="l";break;case"M":i=d[y++],o=d[y++],p=s.M,e.addData(p,i,o),r=i,a=o,c="L";break;case"h":i+=d[y++],p=s.L,e.addData(p,i,o);break;case"H":i=d[y++],p=s.L,e.addData(p,i,o);break;case"v":o+=d[y++],p=s.L,e.addData(p,i,o);break;case"V":o=d[y++],p=s.L,e.addData(p,i,o);break;case"C":p=s.C,e.addData(p,d[y++],d[y++],d[y++],d[y++],d[y++],d[y++]),i=d[y-2],o=d[y-1];break;case"c":p=s.C,e.addData(p,d[y++]+i,d[y++]+o,d[y++]+i,d[y++]+o,d[y++]+i,d[y++]+o),i+=d[y-2],o+=d[y-1];break;case"S":m=i,v=o,C=e.len(),I=e.data,n===s.C&&(m+=i-I[C-4],v+=o-I[C-3]),p=s.C,M=d[y++],T=d[y++],i=d[y++],o=d[y++],e.addData(p,m,v,M,T,i,o);break;case"s":m=i,v=o,C=e.len(),I=e.data,n===s.C&&(m+=i-I[C-4],v+=o-I[C-3]),p=s.C,M=i+d[y++],T=o+d[y++],i+=d[y++],o+=d[y++],e.addData(p,m,v,M,T,i,o);break;case"Q":M=d[y++],T=d[y++],i=d[y++],o=d[y++],p=s.Q,e.addData(p,M,T,i,o);break;case"q":M=d[y++]+i,T=d[y++]+o,i+=d[y++],o+=d[y++],p=s.Q,e.addData(p,M,T,i,o);break;case"T":m=i,v=o,C=e.len(),I=e.data,n===s.Q&&(m+=i-I[C-4],v+=o-I[C-3]),i=d[y++],o=d[y++],p=s.Q,e.addData(p,m,v,i,o);break;case"t":m=i,v=o,C=e.len(),I=e.data,n===s.Q&&(m+=i-I[C-4],v+=o-I[C-3]),i+=d[y++],o+=d[y++],p=s.Q,e.addData(p,m,v,i,o);break;case"A":_=d[y++],x=d[y++],b=d[y++],w=d[y++],S=d[y++],nh(M=i,T=o,i=d[y++],o=d[y++],w,S,_,x,b,p=s.A,e);break;case"a":_=d[y++],x=d[y++],b=d[y++],w=d[y++],S=d[y++],nh(M=i,T=o,i+=d[y++],o+=d[y++],w,S,_,x,b,p=s.A,e)}}"z"!==c&&"Z"!==c||(p=s.Z,e.addData(p),i=r,o=a),n=p}e.toStatic()}}return e}(t),t=G({},e);return t.buildPath=function(t){var e,n=lh(t);n&&t.canSave()?(t.appendPath(S),(e=t.getContext())&&t.rebuildPath(e,1)):(e=n?t.getContext():t)&&S.rebuildPath(e,1)},t.applyTransform=function(t){var e=S,n=t;if(n){for(var i,o,r,a,s=e.data,l=e.len(),u=Zu.M,h=Zu.C,c=Zu.L,p=Zu.R,d=Zu.A,f=Zu.Q,g=0,y=0;g<l;){switch(i=s[g++],y=g,o=0,i){case u:case c:o=1;break;case h:o=3;break;case f:o=2;break;case d:var m=n[4],v=n[5],_=Yu(n[0]*n[0]+n[1]*n[1]),x=Yu(n[2]*n[2]+n[3]*n[3]),b=qu(-n[1]/x,n[0]/_);s[g]*=_,s[g++]+=m,s[g]*=x,s[g++]+=v,s[g++]*=_,s[g++]*=x,s[g++]+=b,s[g++]+=b,y=g+=2;break;case p:a[0]=s[g++],a[1]=s[g++],ne(a,a,n),s[y++]=a[0],s[y++]=a[1],a[0]+=s[g++],a[1]+=s[g++],ne(a,a,n),s[y++]=a[0],s[y++]=a[1]}for(r=0;r<o;r++){var w=Xu[r];w[0]=s[g++],w[1]=s[g++],ne(w,w,n),s[y++]=w[0],s[y++]=w[1]}}e.increaseVersion()}this.dirtyShape()},t}var hh,ch=function(){this.cx=0,this.cy=0,this.r=0},ph=(a(dh,hh=cl),dh.prototype.getDefaultShape=function(){return new ch},dh.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)},dh);function dh(t){return hh.call(this,t)||this}ph.prototype.type="circle";var fh,gh=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},yh=(a(mh,fh=cl),mh.prototype.getDefaultShape=function(){return new gh},mh.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=e.rx,e=e.ry,r=.5522848*o,a=.5522848*e;t.moveTo(n-o,i),t.bezierCurveTo(n-o,i-a,n-r,i-e,n,i-e),t.bezierCurveTo(n+r,i-e,n+o,i-a,n+o,i),t.bezierCurveTo(n+o,i+a,n+r,i+e,n,i+e),t.bezierCurveTo(n-r,i+e,n-o,i+a,n-o,i),t.closePath()},mh);function mh(t){return fh.call(this,t)||this}yh.prototype.type="ellipse";var vh=Math.PI,_h=2*vh,xh=Math.sin,bh=Math.cos,wh=Math.acos,Sh=Math.atan2,Mh=Math.abs,Th=Math.sqrt,Ch=Math.max,Ih=Math.min,kh=1e-4;function Dh(t,e,n,i,o,r,a){var s=t-n,l=e-i,a=(a?r:-r)/Th(s*s+l*l),l=a*l,a=-a*s,s=t+l,t=e+a,e=n+l,n=i+a,i=(s+e)/2,u=(t+n)/2,h=e-s,c=n-t,p=h*h+c*c,r=o-r,s=s*n-e*t,n=(c<0?-1:1)*Th(Ch(0,r*r*p-s*s)),e=(s*c-h*n)/p,t=(-s*h-c*n)/p,d=(s*c+h*n)/p,s=(-s*h+c*n)/p,h=e-i,c=t-u,n=d-i,p=s-u;return n*n+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 Ah(t,e){var n,i,o,r,a,s,l,u,h,c,p,d,f,g,y,m,v,_,x,b,w,S,M,T,C,I,k,D,A,P,L=Ch(e.r,0),O=Ch(e.r0||0,0),R=0<L;(R||0<O)&&(R||(L=O,O=0),L<O&&(R=L,L=O,O=R),R=e.startAngle,n=e.endAngle,isNaN(R)||isNaN(n)||(i=e.cx,o=e.cy,r=!!e.clockwise,m=Mh(n-R),kh<(a=_h<m&&m%_h)&&(m=a),kh<L?_h-kh<m?(t.moveTo(i+L*bh(R),o+L*xh(R)),t.arc(i,o,L,R,n,!r),kh<O&&(t.moveTo(i+O*bh(n),o+O*xh(n)),t.arc(i,o,O,n,R,r))):(S=w=b=x=_=v=c=h=I=C=T=M=u=l=s=a=void 0,p=L*bh(R),d=L*xh(R),f=O*bh(n),g=O*xh(n),(y=kh<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=Mh(L-O)/2,M=Ih(e,l),T=Ih(e,u),C=Ih(e,a),I=Ih(e,s),v=h=Ch(M,T),_=c=Ch(C,I),kh<h||kh<c)&&(x=L*bh(n),b=L*xh(n),w=O*bh(R),S=O*xh(R),m<vh)&&(e=function(t,e,n,i,o,r,a,s){var l=(s=s-r)*(n=n-t)-(a=a-o)*(i=i-e);if(!(l*l<kh))return[t+(l=(a*(e-r)-s*(t-o))/l)*n,e+l*i]}(p,d,w,S,x,b,f,g))&&(M=p-e[0],T=d-e[1],C=x-e[0],I=b-e[1],m=1/xh(wh((M*C+T*I)/(Th(M*M+T*T)*Th(C*C+I*I)))/2),M=Th(e[0]*e[0]+e[1]*e[1]),v=Ih(h,(L-M)/(1+m)),_=Ih(c,(O-M)/(m-1))),y?kh<v?(k=Ih(l,v),D=Ih(u,v),A=Dh(w,S,p,d,L,k,r),P=Dh(x,b,f,g,L,D,r),t.moveTo(i+A.cx+A.x0,o+A.cy+A.y0),v<h&&k===D?t.arc(i+A.cx,o+A.cy,v,Sh(A.y0,A.x0),Sh(P.y0,P.x0),!r):(0<k&&t.arc(i+A.cx,o+A.cy,k,Sh(A.y0,A.x0),Sh(A.y1,A.x1),!r),t.arc(i,o,L,Sh(A.cy+A.y1,A.cx+A.x1),Sh(P.cy+P.y1,P.cx+P.x1),!r),0<D&&t.arc(i+P.cx,o+P.cy,D,Sh(P.y1,P.x1),Sh(P.y0,P.x0),!r))):(t.moveTo(i+p,o+d),t.arc(i,o,L,R,n,!r)):t.moveTo(i+p,o+d),kh<O&&y?kh<_?(k=Ih(a,_),A=Dh(f,g,x,b,O,-(D=Ih(s,_)),r),P=Dh(p,d,w,S,O,-k,r),t.lineTo(i+A.cx+A.x0,o+A.cy+A.y0),_<c&&k===D?t.arc(i+A.cx,o+A.cy,_,Sh(A.y0,A.x0),Sh(P.y0,P.x0),!r):(0<D&&t.arc(i+A.cx,o+A.cy,D,Sh(A.y0,A.x0),Sh(A.y1,A.x1),!r),t.arc(i,o,O,Sh(A.cy+A.y1,A.cx+A.x1),Sh(P.cy+P.y1,P.cx+P.x1),r),0<k&&t.arc(i+P.cx,o+P.cy,k,Sh(P.y1,P.x1),Sh(P.y0,P.x0),!r))):(t.lineTo(i+f,o+g),t.arc(i,o,O,n,R,r)):t.lineTo(i+f,o+g)):t.moveTo(i,o),t.closePath()))}var Ph,Lh=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},Oh=(a(Rh,Ph=cl),Rh.prototype.getDefaultShape=function(){return new Lh},Rh.prototype.buildPath=function(t,e){Ah(t,e)},Rh.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},Rh);function Rh(t){return Ph.call(this,t)||this}Oh.prototype.type="sector";var zh,Nh=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},Bh=(a(Eh,zh=cl),Eh.prototype.getDefaultShape=function(){return new Nh},Eh.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,o,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,o,!0)},Eh);function Eh(t){return zh.call(this,t)||this}function Vh(t,e,n){var i=e.smooth,o=e.points;if(o&&2<=o.length){if(i)for(var r=function(t,e,n,i){var o,r,a=[],s=[],l=[],u=[];if(i){for(var h=[1/0,1/0],c=[-1/0,-1/0],p=0,d=t.length;p<d;p++)ie(h,h,t[p]),oe(c,c,t[p]);ie(h,h,i[0]),oe(c,c,i[1])}for(p=0,d=t.length;p<d;p++){var f=t[p];if(n)o=t[p?p-1:d-1],r=t[(p+1)%d];else{if(0===p||p===d-1){a.push(Ut(t[p]));continue}o=t[p-1],r=t[p+1]}Xt(s,r,o),jt(s,s,e);var g=$t(f,o),y=$t(f,r),m=g+y,m=(0!==m&&(g/=m,y/=m),jt(l,s,-g),jt(u,s,y),Zt([],f,l)),g=Zt([],f,u);i&&(oe(m,m,h),ie(m,m,c),oe(g,g,h),ie(g,g,c)),a.push(m),a.push(g)}return n&&a.push(a.shift()),a}(o,i,n,e.smoothConstraint),a=(t.moveTo(o[0][0],o[0][1]),o.length),s=0;s<(n?a:a-1);s++){var l=r[2*s],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])}n&&t.closePath()}}Bh.prototype.type="ring";var Fh,Hh=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},Wh=(a(Gh,Fh=cl),Gh.prototype.getDefaultShape=function(){return new Hh},Gh.prototype.buildPath=function(t,e){Vh(t,e,!0)},Gh);function Gh(t){return Fh.call(this,t)||this}Wh.prototype.type="polygon";var Uh,Zh=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},Xh=(a(Yh,Uh=cl),Yh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Yh.prototype.getDefaultShape=function(){return new Zh},Yh.prototype.buildPath=function(t,e){Vh(t,e,!1)},Yh);function Yh(t){return Uh.call(this,t)||this}Xh.prototype.type="polyline";var qh,jh={},Kh=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},$h=(a(Qh,qh=cl),Qh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Qh.prototype.getDefaultShape=function(){return new Kh},Qh.prototype.buildPath=function(t,e){r=(this.subPixelOptimize?(n=(r=wl(jh,e,this.style)).x1,i=r.y1,o=r.x2,r):(n=e.x1,i=e.y1,o=e.x2,e)).y2;var n,i,o,r,e=e.percent;0!==e&&(t.moveTo(n,i),e<1&&(o=n*(1-e)+o*e,r=i*(1-e)+r*e),t.lineTo(o,r))},Qh.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},Qh);function Qh(t){return qh.call(this,t)||this}$h.prototype.type="line";var Jh=[],tc=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function ec(t,e,n){var i=t.cpx2,o=t.cpy2;return null!=i||null!=o?[(n?$n:Kn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?$n:Kn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?ii:ni)(t.x1,t.cpx1,t.x2,e),(n?ii:ni)(t.y1,t.cpy1,t.y2,e)]}a(oc,nc=cl),oc.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},oc.prototype.getDefaultShape=function(){return new tc},oc.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,o=e.x2,r=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,e=e.percent;0!==e&&(t.moveTo(n,i),null==l||null==u?(e<1&&(ri(n,a,o,e,Jh),a=Jh[1],o=Jh[2],ri(i,s,r,e,Jh),s=Jh[1],r=Jh[2]),t.quadraticCurveTo(a,s,o,r)):(e<1&&(ti(n,a,l,o,e,Jh),a=Jh[1],l=Jh[2],o=Jh[3],ti(i,s,u,r,e,Jh),s=Jh[1],u=Jh[2],r=Jh[3]),t.bezierCurveTo(a,s,l,u,o,r)))},oc.prototype.pointAt=function(t){return ec(this.shape,t,!1)},oc.prototype.tangentAt=function(t){t=ec(this.shape,t,!0);return Kt(t,t)};var nc,ic=oc;function oc(t){return nc.call(this,t)||this}ic.prototype.type="bezier-curve";var rc,ac=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},sc=(a(lc,rc=cl),lc.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},lc.prototype.getDefaultShape=function(){return new ac},lc.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=Math.max(e.r,0),r=e.startAngle,a=e.endAngle,e=e.clockwise,s=Math.cos(r),l=Math.sin(r);t.moveTo(s*o+n,l*o+i),t.arc(n,i,o,r,a,!e)},lc);function lc(t){return rc.call(this,t)||this}sc.prototype.type="arc";a(cc,uc=cl),cc.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},cc.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},cc.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},cc.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},cc.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),cl.prototype.getBoundingRect.call(this)};var uc,hc=cc;function cc(){var t=null!==uc&&uc.apply(this,arguments)||this;return t.type="compound",t}dc.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})};var pc=dc;function dc(t){this.colorStops=t||[]}a(yc,fc=pc);var fc,gc=yc;function yc(t,e,n,i,o,r){o=fc.call(this,o)||this;return o.x=null==t?0:t,o.y=null==e?0:e,o.x2=null==n?1:n,o.y2=null==i?0:i,o.type="linear",o.global=r||!1,o}a(vc,mc=pc);var mc,pc=vc;function vc(t,e,n,i,o){i=mc.call(this,i)||this;return i.x=null==t?.5:t,i.y=null==e?.5:e,i.r=null==n?.5:n,i.type="radial",i.global=o||!1,i}var _c=Math.min,xc=Math.max,bc=Math.abs,wc=[0,0],Sc=[0,0],Mc=un(),Tc=Mc.minTv,Cc=Mc.maxTv,Ic=(kc.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,o=t.x,r=t.y,a=o+t.width,t=r+t.height;if(n[0].set(o,r),n[1].set(a,r),n[2].set(a,t),n[3].set(o,t),e)for(var s=0;s<4;s++)n[s].transform(e);C.sub(i[0],n[1],n[0]),C.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(s=0;s<2;s++)this._origin[s]=i[s].dot(n[0])},kc.prototype.intersect=function(t,e,n){var i=!0,o=!e;return e&&C.set(e,0,0),Mc.reset(n,!o),!this._intersectCheckOneSide(this,t,o,1)&&(i=!1,o)||!this._intersectCheckOneSide(t,this,o,-1)&&(i=!1,o)||o||Mc.negativeSize||C.copy(e,i?Mc.useDir?Mc.dirMinTv:Tc:Cc),i},kc.prototype._intersectCheckOneSide=function(t,e,n,i){for(var o=!0,r=0;r<2;r++){var a=t._axes[r];if(t._getProjMinMaxOnAxis(r,t._corners,wc),t._getProjMinMaxOnAxis(r,e._corners,Sc),Mc.negativeSize||wc[1]<Sc[0]||Sc[1]<wc[0]){if(o=!1,Mc.negativeSize||n)return o;var s=bc(Sc[0]-wc[1]),l=bc(wc[0]-Sc[1]);_c(s,l)>Cc.len()&&(s<l?C.scale(Cc,a,-s*i):C.scale(Cc,a,l*i))}else n||(s=bc(Sc[0]-wc[1]),l=bc(wc[0]-Sc[1]),(Mc.useDir||_c(s,l)<Tc.len())&&((s<l||!Mc.bidirectional)&&(C.scale(Tc,a,s*i),Mc.useDir)&&Mc.calcDirMTV(),l<=s||!Mc.bidirectional)&&(C.scale(Tc,a,-l*i),Mc.useDir)&&Mc.calcDirMTV())}return o},kc.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],o=this._origin,r=e[0].dot(i)+o[t],a=r,s=r,l=1;l<e.length;l++)var u=e[l].dot(i)+o[t],a=_c(u,a),s=xc(u,s);n[0]=a+Mc.touchThreshold,n[1]=s-Mc.touchThreshold,Mc.negativeSize=n[1]<n[0]},kc);function kc(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new C;for(n=0;n<2;n++)this._axes[n]=new C;t&&this.fromBoundingRect(t,e)}var Dc,Ac=[],Pc=(a(Lc,Dc=gs),Lc.prototype.traverse=function(t,e){t.call(e,this)},Lc.prototype.useStyle=function(){this.style={}},Lc.prototype.getCursor=function(){return this._cursor},Lc.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},Lc.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},Lc.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},Lc.prototype.addDisplayable=function(t,e){(e?this._temporaryDisplayables:this._displayables).push(t),this.markRedraw()},Lc.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},Lc.prototype.getDisplayables=function(){return this._displayables},Lc.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},Lc.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])},Lc.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},Lc.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new q(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(Ac)),t.union(i)}this._rect=t}return this._rect},Lc.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++)if(this._displayables[i].contain(t,e))return!0;return!1},Lc);function Lc(){var t=null!==Dc&&Dc.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}var Oc=i();function Rc(t,e,n,i,o){var r;e&&e.ecModel&&(r=(r=e.ecModel.getUpdatePayload())&&r.animation);var a,s,l,t="update"===t;return e&&e.isAnimationEnabled()?(l=s=a=void 0,l=i?(a=H(i.duration,200),s=H(i.easing,"cubicOut"),0):(a=e.getShallow(t?"animationDurationUpdate":"animationDuration"),s=e.getShallow(t?"animationEasingUpdate":"animationEasing"),e.getShallow(t?"animationDelayUpdate":"animationDelay")),z(l=r&&(null!=r.duration&&(a=r.duration),null!=r.easing&&(s=r.easing),null!=r.delay)?r.delay:l)&&(l=l(n,o)),{duration:(a=z(a)?a(n):a)||0,delay:l,easing:s}):null}function zc(t,e,n,i,o,r,a){var s=!1,l=(z(o)?(a=r,r=o,o=null):N(o)&&(r=o.cb,a=o.during,s=o.isFrom,u=o.removeOpt,o=o.dataIndex),"leave"===t),u=(l||e.stopAnimation("leave"),Rc(t,i,o,l?u||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,o):null));u&&0<u.duration?(i={duration:u.duration,delay:u.delay||0,easing:u.easing,done:r,force:!!r||!!a,setToFinal:!l,scope:t,during:a},s?e.animateFrom(n,i):e.animateTo(n,i)):(e.stopAnimation(),s||e.attr(n),a&&a(1),r&&r())}function Nc(t,e,n,i,o,r){zc("update",t,e,n,i,o,r)}function Bc(t,e,n,i,o,r){zc("enter",t,e,n,i,o,r)}function Ec(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 Vc(t,e,n,i,o,r){Ec(t)||zc("leave",t,e,n,i,o,r)}function Fc(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),Vc(t,{style:{opacity:0}},e,n,i)}var Hc={},Wc=["x","y"],Gc=["width","height"];function Uc(t){return cl.extend(t)}var Zc=function(t,e){var n,i=uh(t,e);function o(t){t=n.call(this,t)||this;return t.applyTransform=i.applyTransform,t.buildPath=i.buildPath,t}return a(o,n=ah),o};function Xc(t,e){return Zc(t,e)}function Yc(t,e){Hc[t]=e}function qc(t){if(Hc.hasOwnProperty(t))return Hc[t]}function jc(t,e,n,i){t=new ah(uh(t,e));return n&&("center"===i&&(n=$c(n,t.getBoundingRect())),Jc(t,n)),t}function Kc(t,e,n){var i=new _l({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){"center"===n&&(t={width:t.width,height:t.height},i.setStyle($c(e,t)))}});return i}function $c(t,e){var e=e.width/e.height,n=t.height*e,e=n<=t.width?t.height:(n=t.width)/e;return{x:t.x+t.width/2-n/2,y:t.y+t.height/2-e/2,width:n,height:e}}function Qc(t,e){for(var n=[],i=t.length,o=0;o<i;o++){var r=t[o];n.push(r.getUpdatedPathProxy(!0))}return(e=new cl(e)).createPathProxy(),e.buildPath=function(t){var e;lh(t)&&(t.appendPath(n),e=t.getContext())&&t.rebuildPath(e,1)},e}function Jc(t,e){t.applyTransform&&(e=t.getBoundingRect().calculateTransform(e),t.applyTransform(e))}function tp(t,e){return wl(t,t,{lineWidth:e}),t}var ep=Ml;function np(t,e){for(var n=Ne([]);t&&t!==e;)Ee(n,t.getLocalTransform(),n),t=t.parent;return n}function ip(t,e,n){return e&&!ht(e)&&(e=jo.getLocalTransform(e)),ne([],t,e=n?We([],e):e)}function op(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Vr(2*e[4]/e[0]),o=0===e[4]||0===e[5]||0===e[2]?1:Vr(2*e[4]/e[2]),i=ip(["left"===t?-i:"right"===t?i:0,"top"===t?-o:"bottom"===t?o:0],e,n);return Vr(i[0])>Vr(i[1])?0<i[0]?"right":"left":0<i[1]?"bottom":"top"}function rp(t){return!t.isGroup}function ap(t,n){return E(t,function(t){var e=t[0],e=Er(e,n.x),t=(e=Br(e,n.x+n.width),t[1]),t=Er(t,n.y);return[e,Br(t,n.y+n.height)]})}function sp(t,e){var n=Er(t.x,e.x),i=Br(t.x+t.width,e.x+e.width),o=Er(t.y,e.y),t=Br(t.y+t.height,e.y+e.height);if(n<=i&&o<=t)return{x:n,y:o,width:i-n,height:t-o}}function lp(t,e,n){var e=G({rectHover:!0},e),i=e.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),B(i,n),new _l(e)):jc(t.replace("path://",""),e,n,"center")}function up(t,e,n,i,o){for(var r=0,a=o[o.length-1];r<o.length;r++){var s=o[r];if(hp(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function hp(t,e,n,i,o,r,a,s){var l,n=n-t,i=i-e,a=a-o,s=s-r,u=a*i-n*s;return!((l=u)<=1e-6&&-1e-6<=l||(o=((l=t-o)*i-n*(t=e-r))/u)<0||1<o||(i=(l*s-a*t)/u)<0||1<i)}function cp(t,e,n,i,o){return null!=e&&(ft(e)?pp[0]=pp[1]=pp[2]=pp[3]=e:(pp[0]=e[0],pp[1]=e[1],pp[2]=e[2],pp[3]=e[3]),i&&(pp[0]=Er(0,pp[0]),pp[1]=Er(0,pp[1]),pp[2]=Er(0,pp[2]),pp[3]=Er(0,pp[3])),n&&(pp[0]=-pp[0],pp[1]=-pp[1],pp[2]=-pp[2],pp[3]=-pp[3]),dp(t,pp,"x","width",3,1,o&&o[0]||0),dp(t,pp,"y","height",0,2,o&&o[1]||0)),t}var pp=[0,0,0,0];function dp(t,e,n,i,o,r,a){var s=e[r]+e[o],l=t[i];t[i]+=s,a=Er(0,Br(a,l)),t[i]<a?(t[i]=a,t[n]+=0<=e[o]?-e[o]:0<=e[r]?l+e[r]:1e-8<Vr(s)?(l-a)*e[o]/s:0):t[n]-=e[o]}function fp(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,e=F(e)?{formatter:e}:e,o=n.mainType,n=n.componentIndex,r={componentType:o,name:i,$vars:["name"]},a=(r[o+"Index"]=n,t.formatterParamsExtra),t=(a&&Z(X(a),function(t){Y(r,t)||(r[t]=a[t],r.$vars.push(t))}),W(t.el));t.componentMainType=o,t.componentIndex=n,t.tooltipConfig={name:i,option:B({content:i,encodeHTMLContent:!0,formatterParams:r},e)}}function gp(t,e){var n;(n=t.isGroup?e(t):n)||t.traverse(e)}function yp(t,e){if(t)if(V(t))for(var n=0;n<t.length;n++)gp(t[n],e);else gp(t,e)}function mp(t){return!t||Vr(t[1])<1e-5&&Vr(t[2])<1e-5||Vr(t[0])<1e-5&&Vr(t[3])<1e-5}function vp(t,e){return t?q.copy(t,e):e.clone()}function _p(t,e){return e?Be(t||ze(),e):void 0}function xp(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function bp(t,e,n){!function t(e,n,i,o){if(e.ignoreModelZ)return 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=Er(t(l[u],n,i,o),o);else e.z=n,e.zlevel=i,o=Er(e.z2||0,o);r&&(r.z=n,r.zlevel=i,isFinite(o))&&(r.z2=o+2);a&&(s=e.textGuideLineConfig,a.z=n,a.zlevel=i,isFinite(o))&&(a.z2=o+(s&&s.showAbove?1:-1));return o}(t,e,n,-1/0)}Yc("circle",ph),Yc("ellipse",yh),Yc("sector",Oh),Yc("ring",Bh),Yc("polygon",Wh),Yc("polyline",Xh),Yc("rect",kl),Yc("line",$h),Yc("bezierCurve",ic),Yc("arc",sc);var wp=Object.freeze({__proto__:null,Arc:sc,BezierCurve:ic,BoundingRect:q,Circle:ph,CompoundPath:hc,Ellipse:yh,Group:Mr,Image:_l,IncrementalDisplayable:Pc,Line:$h,LinearGradient:gc,OrientedBoundingRect:Ic,Path:cl,Point:C,Polygon:Wh,Polyline:Xh,RadialGradient:pc,Rect:kl,Ring:Bh,Sector:Oh,Text:Rl,WH:Gc,XY:Wc,applyTransform:ip,calcZ2Range:function(t){var e=-1/0,n=1/0;function i(t){if(t&&!t.isGroup){var e=t.currentStates;if(e.length)for(var n=0;n<e.length;n++)o(t.states[e[n]]);o(t)}}function o(t){t&&(t=t.z2,e<t&&(e=t),t<n)&&(n=t)}return gp(t,function(t){i(t),i(t.getTextContent()),i(t.getTextGuideLine())}),{min:n=e<n?e=0:n,max:e}},clipPointsByRect:ap,clipRectByRect:sp,createIcon:lp,ensureCopyRect:vp,ensureCopyTransform:_p,expandOrShrinkRect:cp,extendPath:Xc,extendShape:Uc,getShapeClass:qc,getTransform:np,groupTransition:function(t,e,i){var o,n;function r(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=S(t.shape)),e}t&&e&&(n={},t.traverse(function(t){rp(t)&&t.anid&&(n[t.anid]=t)}),o=n,e.traverse(function(t){var e,n;rp(t)&&t.anid&&(e=o[t.anid])&&(n=r(t),t.attr(r(e)),Nc(t,n,i,W(t).dataIndex))}))},initProps:Bc,isBoundingRectAxisAligned:mp,isElementRemoved:Ec,lineLineIntersect:hp,linePolygonIntersect:up,makeImage:Kc,makePath:jc,mergePath:Qc,registerShape:Yc,removeElement:Vc,removeElementWithFadeOut:function(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||Fc(t,e,n,i)}):Fc(t,e,n,i)},resizePath:Jc,retrieveZInfo:xp,setTooltipConfig:fp,subPixelOptimize:ep,subPixelOptimizeLine:tp,subPixelOptimizeRect:function(t,e){return Sl(t,t,e),t},transformDirection:op,traverseElements:yp,traverseUpdateZ:bp,updateProps:Nc}),Sp={};function Mp(t,e){for(var n=0;n<eu.length;n++){var i=eu[n],o=e[i],i=t.ensureState(i);i.style=i.style||{},i.style.text=o}var r=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(r,!0)}function Tp(t,e,n){for(var i,o=t.labelFetcher,r=t.labelDataIndex,a=t.labelDimIndex,s=e.normal,l={normal:i=null==(i=o?o.getFormattedLabel(r,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null):i)?z(t.defaultText)?t.defaultText(r,t,n):t.defaultText:i},u=0;u<eu.length;u++){var h=eu[u],c=e[h];l[h]=H(o?o.getFormattedLabel(r,h,null,a,c&&c.get("formatter")):null,i)}return l}function Cp(t,e,n,i){n=n||Sp;for(var o=t instanceof Rl,r=!1,a=0;a<nu.length;a++)if((p=e[nu[a]])&&p.getShallow("show")){r=!0;break}var s=o?t:t.getTextContent();if(r){o||(s||(s=new Rl,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=Tp(n,e),u=e.normal,h=!!u.getShallow("show"),c=kp(u,i&&i.normal,n,!1,!o);c.text=l.normal,o||t.setTextConfig(Dp(u,n,!1));for(a=0;a<eu.length;a++){var p,d,f,g=eu[a];(p=e[g])&&(d=s.ensureState(g),(f=!!H(p.getShallow("show"),h))!=h&&(d.ignore=!f),d.style=kp(p,i&&i[g],n,!0,!o),d.style.text=l[g],o||(t.ensureState(g).textConfig=Dp(p,n,!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(),n.enableTextSetter&&(zp(s).setLabelText=function(t){t=Tp(n,e,t);Mp(s,t)})}else s&&(s.ignore=!0);t.dirty()}function Ip(t,e){for(var n={normal:t.getModel(e=e||"label")},i=0;i<eu.length;i++){var o=eu[i];n[o]=t.getModel([o,e])}return n}function kp(t,e,n,i,o){var r={},a=r,s=t,l=n,u=i,h=o;l=l||Sp;var c,t=s.ecModel,p=t&&t.option.textStyle,d=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||Sp).rich;if(n){e=e||{};for(var i=X(n),o=0;o<i.length;o++){var r=i[o];e[r]=1}}t=t.parentModel}return e}(s);if(d){c={};var f,g,y="richInheritPlainLabel",m=H(s.get(y),t?t.get(y):void 0);for(f in d)d.hasOwnProperty(f)&&(g=s.getModel(["rich",f]),Op(c[f]={},g,p,s,m,l,u,h,!1,!0))}return c&&(a.rich=c),(t=s.get("overflow"))&&(a.overflow=t),(y=s.get("lineOverflow"))&&(a.lineOverflow=y),t=a,null!=(y=s.get("minMargin"))?(y=ft(y)?y/2:0,t.margin=[y,y,y,y],t.__marginType=Bp.minMargin):null!=(y=s.get("textMargin"))&&(t.margin=Tt(y),t.__marginType=Bp.textMargin),Op(a,s,p,null,null,l,u,h,!0,!1),e&&G(r,e),r}function Dp(t,e,n){e=e||{};var i={},o=t.getShallow("rotate"),r=H(t.getShallow("distance"),n?null:5),a=t.getShallow("offset"),n=t.getShallow("position")||(n?null:"inside");return null!=(n="outside"===n?e.defaultOutsidePosition||"top":n)&&(i.position=n),null!=a&&(i.offset=a),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=r&&(i.distance=r),i.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",null!=e.autoOverflowArea&&(i.autoOverflowArea=e.autoOverflowArea),null!=e.layoutRect&&(i.layoutRect=e.layoutRect),i}var Ap=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Pp=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Lp=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Op(t,e,n,i,o,r,a,s,l,u){n=!a&&n||Sp;var h=r&&r.inheritColor,c=e.getShallow("color"),p=e.getShallow("textBorderColor"),d=H(e.getShallow("opacity"),n.opacity),c=("inherit"!==c&&"auto"!==c||(c=h||null),"inherit"!==p&&"auto"!==p||(p=h||null),s||(c=c||n.color,p=p||n.textBorderColor),null!=c&&(t.fill=c),null!=p&&(t.stroke=p),H(e.getShallow("textBorderWidth"),n.textBorderWidth)),p=(null!=c&&(t.lineWidth=c),H(e.getShallow("textBorderType"),n.textBorderType)),c=(null!=p&&(t.lineDash=p),H(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset));null!=c&&(t.lineDashOffset=c),null!=(d=a||null!=d||u?d:r&&r.defaultOpacity)&&(t.opacity=d),a||s||null==t.fill&&r.inheritColor&&(t.fill=r.inheritColor);for(var f=0;f<Ap.length;f++){var g=Ap[f];null!=(y=!1!==o&&i?St(e.getShallow(g),i.getShallow(g),n[g]):H(e.getShallow(g),n[g]))&&(t[g]=y)}for(var f=0;f<Pp.length;f++){g=Pp[f];null!=(y=e.getShallow(g))&&(t[g]=y)}if(null==t.verticalAlign&&null!=(p=e.getShallow("baseline"))&&(t.verticalAlign=p),!l||!r.disableBox){for(f=0;f<Lp.length;f++){var y,g=Lp[f];null!=(y=e.getShallow(g))&&(t[g]=y)}c=e.getShallow("borderType");null!=c&&(t.borderDash=c),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!h||(t.backgroundColor=h),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!h||(t.borderColor=h)}}function Rp(t,e){e=e&&e.getModel("textStyle");return It([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 zp=i();function Np(n,i,o,t,r){var a,s,l,u=zp(n);u.valueAnimation&&u.prevValue!==u.value&&(a=u.defaultInterpolatedText,s=H(u.interpolatedValue,u.prevValue),l=u.value,n.percent=0,(null==u.prevValue?Bc:Nc)(n,{percent:1},t,i,null,function(t){var e=Ia(o,u.precision,s,l,t),t=(u.interpolatedValue=1===t?null:e,Tp({labelDataIndex:i,labelFetcher:r,defaultText:a?a(e):e+""},u.statesModels,e));Mp(n,t)}))}var Bp={minMargin:1,textMargin:2},Ep=["textStyle","color"],Vp=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Fp=new Rl,ep=(Hp.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Ep):null)},Hp.prototype.getFont=function(){return Rp({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},Hp.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Vp.length;n++)e[Vp[n]]=this.getShallow(Vp[n]);return Fp.useStyle(e),Fp.update(),Fp.getBoundingRect()},Hp);function Hp(){}var Wp=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Gp=Ea(Wp),Up=(Zp.prototype.getLineStyle=function(t){return Gp(this,t)},Zp);function Zp(){}var Xp=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Yp=Ea(Xp),qp=(jp.prototype.getItemStyle=function(t,e){return Yp(this,t,e)},jp);function jp(){}Qp.prototype.init=function(t,e,n){},Qp.prototype.mergeOption=function(t,e){d(this.option,t,!0)},Qp.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},Qp.prototype.getShallow=function(t,e){var n=this.option,n=null==n?n:n[t];return null!=n||e||(e=this.parentModel)&&(n=e.getShallow(t)),n},Qp.prototype.getModel=function(t,e){var n=null!=t,t=n?this.parsePath(t):null;return new Qp(n?this._doGet(t):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(t)),this.ecModel)},Qp.prototype.isEmpty=function(){return null==this.option},Qp.prototype.restoreData=function(){},Qp.prototype.clone=function(){return new this.constructor(S(this.option))},Qp.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},Qp.prototype.resolveParentPath=function(t){return t},Qp.prototype.isAnimationEnabled=function(){if(!w.node&&this.option)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0},Qp.prototype._doGet=function(t,e){var n=this.option;if(t){for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel))}return n};var Kp,$p=Qp;function Qp(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}La($p),yd=$p,Kp=["__\0is_clz",Ra++].join("_"),yd.prototype[Kp]=!0,yd.isInstance=function(t){return!(!t||!t[Kp])},ut($p,Up),ut($p,qp),ut($p,Fa),ut($p,ep);var Jp=Math.round(10*Math.random());function td(t){return[t||"",Jp++].join("_")}function ed(t,e){return d(d({},t,!0),e,!0)}var nd="ZH",id="EN",od=id,rd={},ad={},sd=w.domSupported&&-1<(document.documentElement.lang||navigator.language||navigator.browserLanguage||od).toUpperCase().indexOf(nd)?nd:od;function ld(t,e){t=t.toUpperCase(),ad[t]=new $p(e),rd[t]=e}ld(id,{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:". "}}}}),ld(nd,{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 ud=null;var hd=1e3,cd=60*hd,pd=60*cd,dd=24*pd,Ra=365*dd,fd={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},gd={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},yd="{yyyy}-{MM}-{dd}",md={year:"{yyyy}",month:"{yyyy}-{MM}",day:yd,hour:yd+" "+gd.hour,minute:yd+" "+gd.minute,second:yd+" "+gd.second,millisecond:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},vd=["year","month","day","hour","minute","second","millisecond"],_d=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function xd(t){return F(t)||z(t)?t:(l=(l=t)||{},u={},h=!0,Z(vd,function(t){h=h&&null==l[t]}),Z(vd,function(t,e){for(var n=l[t],i=(u[t]={},null),o=e;0<=o;o--){var r=vd[o],a=N(n)&&!V(n)?n[r]:n,s=void 0;V(a)?i=(s=a.slice())[0]||"":F(a)?s=[i=a]:(null==i?i=gd[t]:fd[r].test(i)||(i=u[r][r][0]+" "+i),s=[i],h&&(s[1]="{primary|"+i+"}")),u[t][r]=s}}),u);var l,u,h}function bd(t,e){return"0000".substr(0,e-(t+="").length)+t}function wd(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 Sd(t,e,n,i){var t=Kr(t),o=t[Cd(n)](),r=t[Id(n)]()+1,a=Math.floor((r-1)/3)+1,s=t[kd(n)](),l=t["get"+(n?"UTC":"")+"Day"](),u=t[Dd(n)](),h=(u-1)%12+1,c=t[Ad(n)](),p=t[Pd(n)](),t=t[Ld(n)](),n=12<=u?"pm":"am",d=n.toUpperCase(),i=(i instanceof $p?i:ad[i||sd]||ad[od]).getModel("time"),f=i.get("month"),g=i.get("monthAbbr"),y=i.get("dayOfWeek"),i=i.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,n+"").replace(/{A}/g,d+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,bd(o%100+"",2)).replace(/{Q}/g,a+"").replace(/{MMMM}/g,f[r-1]).replace(/{MMM}/g,g[r-1]).replace(/{MM}/g,bd(r,2)).replace(/{M}/g,r+"").replace(/{dd}/g,bd(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,y[l]).replace(/{ee}/g,i[l]).replace(/{e}/g,l+"").replace(/{HH}/g,bd(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,bd(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,bd(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,bd(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,bd(t,3)).replace(/{S}/g,t+"")}function Md(t,e){var t=Kr(t),n=t[Id(e)]()+1,i=t[kd(e)](),o=t[Dd(e)](),r=t[Ad(e)](),a=t[Pd(e)](),t=0===t[Ld(e)](),e=t&&0===a,a=e&&0===r,r=a&&0===o,o=r&&1===i;return o&&1===n?"year":o?"month":r?"day":a?"hour":e?"minute":t?"second":"millisecond"}function Td(t,e,n){switch(e){case"year":t[Od(n)](0);case"month":t[Rd(n)](1);case"day":t[zd(n)](0);case"hour":t[Nd(n)](0);case"minute":t[Bd(n)](0);case"second":t[Ed(n)](0)}return t}function Cd(t){return t?"getUTCFullYear":"getFullYear"}function Id(t){return t?"getUTCMonth":"getMonth"}function kd(t){return t?"getUTCDate":"getDate"}function Dd(t){return t?"getUTCHours":"getHours"}function Ad(t){return t?"getUTCMinutes":"getMinutes"}function Pd(t){return t?"getUTCSeconds":"getSeconds"}function Ld(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Od(t){return t?"setUTCMonth":"setMonth"}function Rd(t){return t?"setUTCDate":"setDate"}function zd(t){return t?"setUTCHours":"setHours"}function Nd(t){return t?"setUTCMinutes":"setMinutes"}function Bd(t){return t?"setUTCSeconds":"setSeconds"}function Ed(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Vd(t){var e;return na(t)?(e=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1<e.length?"."+e[1]:""):F(t)?t:"-"}function Fd(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 Hd=Tt;function Wd(t,e,n){function i(t){return t&&It(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?Kr(t):t;if(!isNaN(+r))return Sd(r,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}return"ordinal"===e?dt(t)?i(t):ft(t)&&o(t)?t+"":"-":o(r=ea(t))?Vd(r):dt(t)?i(t):"boolean"==typeof t?t+"":"-"}function Gd(t,e){return"{"+t+(null==e?"":e)+"}"}var Ud=["a","b","c","d","e","f","g"];function Zd(t,e,n){var i=(e=V(e)?e:[e]).length;if(!i)return"";for(var o=e[0].$vars||[],r=0;r<o.length;r++){var a=Ud[r];t=t.replace(Gd(a),Gd(a,0))}for(var s=0;s<i;s++)for(var l=0;l<o.length;l++){var u=e[s][o[l]];t=t.replace(Gd(Ud[l],s),n?xe(u):u)}return t}function Xd(t,e){var t=F(t)?{color:t,extraCssText:e}:t||{},n=t.color,i=t.type,o=(e=t.extraCssText,t.renderMode||"html");return n?"html"===o?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+xe(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+xe(n)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(t.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""}function Yd(t,e){return e=e||"transparent",F(t)?t:N(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function qd(t,e){var n;"_blank"===e||"blank"===e?((n=window.open()).opener=null,n.location.href=t):window.open(t,e)}var jd={},Kd={},$d=(Qd.prototype.create=function(i,o){function t(t){var n=[];return Z(t,function(t,e){t=t.create(i,o);n=n.concat(t||[])}),n}this._nonSeriesBoxMasterList=t(jd),this._normalMasterList=t(Kd)},Qd.prototype.update=function(e,n){Z(this._normalMasterList,function(t){t.update&&t.update(e,n)})},Qd.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},Qd.register=function(t,e){"matrix"===t||"calendar"===t?jd[t]=e:Kd[t]=e},Qd.get=function(t){return Kd[t]||jd[t]},Qd);function Qd(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}var Jd={coord:1,coord2:2},tf=L();var ef=Z,nf=["left","right","top","bottom","width","height"],of=[["width","left","right"],["height","top","bottom"]];function rf(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 n,i,o,r=t.getBoundingRect(),e=s.childAt(e+1),e=e&&e.getBoundingRect();d="horizontal"===a?(i=r.width+(e?-e.x+r.x:0),u<(n=c+i)||t.newline?(c=0,n=i,p+=d+l,r.height):Math.max(d,r.height)):(i=r.height+(e?-e.y+r.y:0),h<(o=p+i)||t.newline?(c+=d+l,p=0,o=i,r.width):Math.max(d,r.width)),t.newline||(t.x=c,t.y=p,t.markRedraw(),"horizontal"===a?c=n+l:p=o+l)})}var af=rf;function sf(t,e,n){n=Hd(n||0);var i=e.width,o=e.height,r=Hr(t.left,i),a=Hr(t.top,o),s=Hr(t.right,i),l=Hr(t.bottom,o),u=Hr(t.width,i),h=Hr(t.height,o),c=n[2]+n[0],p=n[1]+n[3],d=t.aspect;switch(isNaN(u)&&(u=i-s-p-r),isNaN(h)&&(h=o-l-c-a),null!=d&&(isNaN(u)&&isNaN(h)&&(i/o<d?u=.8*i:h=.8*o),isNaN(u)&&(u=d*h),isNaN(h))&&(h=u/d),isNaN(r)&&(r=i-s-u-p),isNaN(a)&&(a=o-l-h-c),t.left||t.right){case"center":r=i/2-u/2-n[3];break;case"right":r=i-u-p}switch(t.top||t.bottom){case"middle":case"center":a=o/2-h/2-n[0];break;case"bottom":a=o-h-c}r=r||0,a=a||0,isNaN(u)&&(u=i-p-r-(s||0)),isNaN(h)&&(h=o-c-a-(l||0));d=new q((e.x||0)+r+n[3],(e.y||0)+a+n[0],u,h);return d.margin=n,d}T(rf,"vertical"),T(rf,"horizontal");var lf=1,uf=2;function hf(t,e,n){var i,o,r,a,s,l,u,h=t.boxCoordinateSystem;return h&&(l=(t=t).getShallow("coord",!0),u=Jd.coord,null==l&&(s=tf.get(t.type))&&s.getCoord2&&(u=Jd.coord2,l=s.getCoord2(t)),t=(s={coord:l,from:u}).coord,l=s.from,h.dataToLayout?(o=lf,r=l,a=(u=h.dataToLayout(t)).contentRect||u.rect):n&&n.enableLayoutOnlyByCenter&&h.dataToPoint&&(o=uf,r=l,i=h.dataToPoint(t))),(o=null==o?lf:o)===lf&&(i=[(a=a||{x:0,y:0,width:e.getWidth(),height:e.getHeight()}).x+a.width/2,a.y+a.height/2]),{type:o,refContainer:a,refPoint:i,boxCoordFrom:r}}function cf(t,e,n,i,o,r){var a,s=!o||!o.hv||o.hv[0],l=!o||!o.hv||o.hv[1],o=o&&o.boundingMode||"all";if((r=r||t).x=t.x,r.y=t.y,!s&&!l)return!1;"raw"===o?a="group"===t.type?new q(0,0,+e.width||0,+e.height||0):t.getBoundingRect():(a=t.getBoundingRect(),t.needLocalTransform()&&(u=t.getLocalTransform(),(a=a.clone()).applyTransform(u)));var u=sf(B({width:a.width,height:a.height},e),n,i),e=s?u.x-a.x:0,n=l?u.y-a.y:0;return"raw"===o?(r.x=e,r.y=n):(r.x+=e,r.y+=n),r===t&&t.markRedraw(),!0}function pf(t){t=t.layoutMode||t.constructor.layoutMode;return N(t)?t:t?{type:t}:null}function df(l,u,t){var h=t&&t.ignoreSize,t=(V(h)||(h=[h,h]),n(of[0],0)),e=n(of[1],1);function n(t,e){var n={},i=0,o={},r=0;if(ef(t,function(t){o[t]=l[t]}),ef(t,function(t){Y(u,t)&&(n[t]=o[t]=u[t]),c(n,t)&&i++,c(o,t)&&r++}),h[e])c(u,t[1])?o[t[2]]=null:c(u,t[2])&&(o[t[1]]=null);else if(2!==r&&i){if(!(2<=i))for(var a=0;a<t.length;a++){var s=t[a];if(!Y(n,s)&&Y(l,s)){n[s]=l[s];break}}return n}return o}function c(t,e){return null!=t[e]&&"auto"!==t[e]}function i(t,e,n){ef(t,function(t){e[t]=n[t]})}i(of[0],l,t),i(of[1],l,e)}function ff(t){return gf({},t)}function gf(e,n){return n&&e&&ef(nf,function(t){Y(n,t)&&(e[t]=n[t])}),e}var yf,mf,vf,_f,xf=i(),g=(a(bf,yf=$p),bf.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},bf.prototype.mergeDefaultAndTheme=function(t,e){var n=pf(this),i=n?ff(t):{};d(t,e.getTheme().get(this.mainType)),d(t,this.getDefaultOption()),n&&df(t,i,n)},bf.prototype.mergeOption=function(t,e){d(this.option,t,!0);var n=pf(this);n&&df(this.option,t,n)},bf.prototype.optionUpdated=function(t,e){},bf.prototype.getDefaultOption=function(){var t=this.constructor;if(!(e=t)||!e[Aa])return t.defaultOption;var e=xf(this);if(!e.defaultOption){for(var n=[],i=t;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var r={},a=n.length-1;0<=a;a--)r=d(r,n[a],!0);e.defaultOption=r}return e.defaultOption},bf.prototype.getReferringComponents=function(t,e){var n=t+"Id";return Ta(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(n,!0)},e)},bf.prototype.getBoxLayoutParams=function(){return e=!1,{left:(t=this).getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)};var t,e},bf.prototype.getZLevelKey=function(){return""},bf.prototype.setZLevel=function(t){this.option.zlevel=t},bf.protoInitialize=((Up=bf.prototype).type="component",Up.id="",Up.name="",Up.mainType="",Up.subType="",void(Up.componentIndex=0)),bf);function bf(t,e,n){t=yf.call(this,t,e,n)||this;return t.uid=td("ec_cpt_model"),t}function wf(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}Oa(g,$p),Ba(g),vf={},(mf=g).registerSubTypeDefaulter=function(t,e){t=Pa(t);vf[t.main]=e},mf.determineSubType=function(t,e){var n,i=e.type;return i||(n=Pa(t).main,mf.hasSubTypes(t)&&vf[n]&&(i=vf[n](e))),i},_f=function(t){var e=[];Z(g.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=E(e,function(t){return Pa(t).main}),"dataset"!==t&&U(e,"dataset")<=0&&e.unshift("dataset");return e},g.topologicalTravel=function(t,e,n,i){if(t.length){a={},s=[],Z(r=e,function(n){var e,i,o=wf(a,n),t=o.originalDeps=_f(n),t=(e=r,i=[],Z(t,function(t){0<=U(e,t)&&i.push(t)}),i);o.entryCount=t.length,0===o.entryCount&&s.push(n),Z(t,function(t){U(o.predecessor,t)<0&&o.predecessor.push(t);var e=wf(a,t);U(e.successor,t)<0&&e.successor.push(n)})});var r,a,s,e={graph:a,noEntryList:s},o=e.graph,l=e.noEntryList,u={};for(Z(t,function(t){u[t]=!0});l.length;){var h=l.pop(),c=o[h],p=!!u[h];p&&(n.call(i,h,c.originalDeps.slice()),delete u[h]),Z(c.successor,p?f:d)}Z(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 Sf,Mf,I={color:{},darkColor:{},size:{}},Tf=I.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};for(Sf in G(Tf,{primary:Tf.neutral80,secondary:Tf.neutral70,tertiary:Tf.neutral60,quaternary:Tf.neutral50,disabled:Tf.neutral20,border:Tf.neutral30,borderTint:Tf.neutral20,borderShade:Tf.neutral40,background:Tf.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Tf.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Tf.neutral70,axisLineTint:Tf.neutral40,axisTick:Tf.neutral70,axisTickMinor:Tf.neutral60,axisLabel:Tf.neutral70,axisSplitLine:Tf.neutral15,axisMinorSplitLine:Tf.neutral05}),Tf)Tf.hasOwnProperty(Sf)&&(Mf=Tf[Sf],"theme"===Sf?I.darkColor.theme=Tf.theme.slice():"highlight"===Sf?I.darkColor.highlight="rgba(255,231,130,0.4)":0===Sf.indexOf("accent")?I.darkColor[Sf]=Ri(Mf,null,function(t){return.5*t},function(t){return Math.min(1,1.3-t)}):I.darkColor[Sf]=Ri(Mf,null,function(t){return.9*t},function(t){return 1-Math.pow(t,1.5)}));I.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var qp="",Fa=("undefined"!=typeof navigator&&(qp=navigator.platform||""),"rgba(0, 0, 0, 0.2)"),ep=I.color.theme[0],yd=Ri(ep,null,null,.9),Cf={darkMode:"auto",colorBy:"series",color:I.color.theme,gradientColor:[yd,ep],aria:{decal:{decals:[{color:Fa,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Fa,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Fa,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Fa,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Fa,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Fa,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:qp.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},If=L(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),kf="original",Df="arrayRows",Af="objectRows",Pf="keyedColumns",Lf="typedArray",Of="unknown",Rf="column",zf="row",Nf={Must:1,Might:2,Not:3},Bf=i();function Ef(n,t,e){var o,r,a,i,s,l={},u=Vf(t);return u&&n&&(o=[],r=[],t=t.ecModel,t=Bf(t).datasetMap,u=u.uid+"_"+e.seriesLayoutBy,Z(n=n.slice(),function(t,e){t=N(t)?t:n[e]={name:t};"ordinal"===t.type&&null==a&&(a=e,i=c(t)),l[t.name]=[]}),s=t.get(u)||t.set(u,{categoryWayDim:i,valueWayDim:0}),Z(n,function(t,e){var n,i=t.name,t=c(t);null==a?(n=s.valueWayDim,h(l[i],n,t),h(r,n,t),s.valueWayDim+=t):a===e?(h(l[i],0,t),h(o,0,t)):(n=s.categoryWayDim,h(l[i],n,t),h(r,n,t),s.categoryWayDim+=t)}),o.length&&(l.itemName=o),r.length)&&(l.seriesName=r),l;function h(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function c(t){t=t.dimsDef;return t?t.length:1}}function Vf(t){if(!t.get("data",!0))return Ta(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Sa).models[0]}function Ff(t,e){var n,i,o,r=t.data,a=t.sourceFormat,s=t.seriesLayoutBy,l=t.dimensionsDefine,u=t.startIndex,h=e;if(!yt(r)){if(l&&(N(l=l[h])?(i=l.name,o=l.type):F(l)&&(i=l)),null!=o)return"ordinal"===o?Nf.Must:Nf.Not;if(a===Df){var c=r;if(s===zf){for(var p=c[h],d=0;d<(p||[]).length&&d<5;d++)if(null!=(n=_(p[u+d])))return n}else for(d=0;d<c.length&&d<5;d++){var f=c[u+d];if(f&&null!=(n=_(f[h])))return n}}else if(a===Af){var g=r;if(!i)return Nf.Not;for(d=0;d<g.length&&d<5;d++)if((m=g[d])&&null!=(n=_(m[i])))return n}else if(a===Pf){l=r;if(!i)return Nf.Not;if(!(p=l[i])||yt(p))return Nf.Not;for(d=0;d<p.length&&d<5;d++)if(null!=(n=_(p[d])))return n}else if(a===kf)for(var y=r,d=0;d<y.length&&d<5;d++){var m,v=ca(m=y[d]);if(!V(v))return Nf.Not;if(null!=(n=_(v[h])))return n}}return Nf.Not;function _(t){var e=F(t);return null!=t&&Number.isFinite(Number(t))&&""!==t?e?Nf.Might:Nf.Not:e&&"-"!==t?Nf.Must:void 0}}var Hf=L();var Wf,Gf,Uf,Zf=i(),Xf=(i(),Yf.prototype.getColorFromPalette=function(t,e,n){var i=la(this.get("color",!0)),o=this.get("colorLayer",!0),r=this,a=Zf;return a=a(e=e||r),r=a.paletteIdx||0,(e=a.paletteNameMap=a.paletteNameMap||{}).hasOwnProperty(t)?e[t]:(o=(o=n==null||!o?i:qf(o,n))||i)&&o.length?(n=o[r],t&&(e[t]=n),a.paletteIdx=(r+1)%o.length,n):void 0},Yf.prototype.clearColorPalette=function(){var t,e;(e=Zf)(t=this).paletteIdx=0,e(t).paletteNameMap={}},Yf);function Yf(){}function qf(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}var jf,Kf="\0_ec_inner",$f=(a(Qf,jf=$p),Qf.prototype.init=function(t,e,n,i,o,r){i=i||{},this.option=null,this._theme=new $p(i),this._locale=new $p(o),this._optionManager=r},Qf.prototype.setOption=function(t,e,n){e=eg(e);this._optionManager.setOption(t,n,e),this._resetOption(null,e)},Qf.prototype.resetOption=function(t,e){return this._resetOption(t,eg(e))},Qf.prototype._resetOption=function(t,e){var n,i=!1,o=this._optionManager;return t&&"recreate"!==t||(n=o.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(n,e)):Uf(this,n),i=!0),"timeline"!==t&&"media"!==t||this.restoreData(),t&&"recreate"!==t&&"timeline"!==t||(n=o.getTimelineOption(this))&&(i=!0,this._mergeOption(n,e)),t&&"recreate"!==t&&"media"!==t||(n=o.getMediaOption(this)).length&&Z(n,function(t){i=!0,this._mergeOption(t,e)},this),i},Qf.prototype.mergeOption=function(t){this._mergeOption(t,null)},Qf.prototype._mergeOption=function(i,t){var o=this.option,h=this._componentsMap,c=this._componentsCount,n=[],r=L(),p=t&&t.replaceMergeMainTypeMap;Bf(this).datasetMap=L(),Z(i,function(t,e){null!=t&&(g.hasClass(e)?e&&(n.push(e),r.set(e,!0)):o[e]=null==o[e]?S(t):d(o[e],t,!0))}),p&&p.each(function(t,e){g.hasClass(e)&&!r.get(e)&&(n.push(e),r.set(e,!0))}),g.topologicalTravel(n,g.getAllClassMainTypes(),function(r){var a,t=function(t,e,n){return(e=(e=Hf.get(e))&&e(t))?n.concat(e):n}(this,r,la(i[r])),e=h.get(r),n=e?p&&p.get(r)?"replaceMerge":"normalMerge":"replaceAll",e=pa(e,t,n),s=(va(e,r,g),o[r]=null,h.set(r,null),c.set(r,0),[]),l=[],u=0;Z(e,function(t,e){var n=t.existing,i=t.newOption;if(i){var o=g.getClass(r,t.keyInfo.subType,!("series"===r));if(!o)return;if("tooltip"===r){if(a)return;a=!0}n&&n.constructor===o?(n.name=t.keyInfo.name,n.mergeOption(i,this),n.optionUpdated(i,!1)):(e=G({componentIndex:e},t.keyInfo),G(n=new o(i,this,this,e),e),t.brandNew&&(n.__requireNewView=!0),n.init(i,this,this),n.optionUpdated(null,!0))}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(s.push(n.option),l.push(n),u++):(s.push(void 0),l.push(void 0))},this),o[r]=s,h.set(r,l),c.set(r,u),"series"===r&&Wf(this)},this),this._seriesIndices||Wf(this)},Qf.prototype.getOption=function(){var a=S(this.option);return Z(a,function(t,e){if(g.hasClass(e)){for(var n=la(t),i=n.length,o=!1,r=i-1;0<=r;r--)n[r]&&!ma(n[r])?o=!0:(n[r]=null,o||i--);n.length=i,a[e]=n}}),delete a[Kf],a},Qf.prototype.setTheme=function(t){this._theme=new $p(t),this._resetOption("recreate",null)},Qf.prototype.getTheme=function(){return this._theme},Qf.prototype.getLocaleModel=function(){return this._locale},Qf.prototype.setUpdatePayload=function(t){this._payload=t},Qf.prototype.getUpdatePayload=function(){return this._payload},Qf.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){t=n[e||0];if(t)return t;if(null==e)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},Qf.prototype.queryComponents=function(t){var e,n,i,o,r,a=t.mainType;return a&&(e=t.index,n=t.id,i=t.name,o=this._componentsMap.get(a))&&o.length?(null!=e?(r=[],Z(la(e),function(t){o[t]&&r.push(o[t])})):r=null!=n?Jf("id",n,o):null!=i?Jf("name",i,o):pt(o,function(t){return!!t}),tg(r,t)):[]},Qf.prototype.findComponents=function(t){var e,n=t.query,i=t.mainType,o=(o=i+"Index",r=i+"Id",e=i+"Name",!(n=n)||null==n[o]&&null==n[r]&&null==n[e]?null:{mainType:i,index:n[o],id:n[r],name:n[e]}),r=o?this.queryComponents(o):pt(this._componentsMap.get(i),function(t){return!!t});return n=tg(r,t),t.filter?pt(n,t.filter):n},Qf.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(z(t)){var o=e,r=t;i.each(function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&r.call(o,e,i,i.componentIndex)}})}else for(var a=F(t)?i.get(t):N(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},Qf.prototype.getSeriesByName=function(t){var e=ga(t,null);return pt(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},Qf.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},Qf.prototype.getSeriesByType=function(e){return pt(this._componentsMap.get("series"),function(t){return!!t&&t.subType===e})},Qf.prototype.getSeries=function(){return pt(this._componentsMap.get("series"),function(t){return!!t})},Qf.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},Qf.prototype.eachSeries=function(n,i){Gf(this),Z(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];n.call(i,e,t)},this)},Qf.prototype.eachRawSeries=function(e,n){Z(this._componentsMap.get("series"),function(t){t&&e.call(n,t,t.componentIndex)})},Qf.prototype.eachSeriesByType=function(n,i,o){Gf(this),Z(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];e.subType===n&&i.call(o,e,t)},this)},Qf.prototype.eachRawSeriesByType=function(t,e,n){return Z(this.getSeriesByType(t),e,n)},Qf.prototype.isSeriesFiltered=function(t){return Gf(this),null==this._seriesIndicesMap.get(t.componentIndex)},Qf.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},Qf.prototype.filterSeries=function(n,i){Gf(this);var o=[];Z(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];n.call(i,e,t)&&o.push(t)},this),this._seriesIndices=o,this._seriesIndicesMap=L(o)},Qf.prototype.restoreData=function(n){Wf(this);var t=this._componentsMap,i=[];t.each(function(t,e){g.hasClass(e)&&i.push(e)}),g.topologicalTravel(i,g.getAllClassMainTypes(),function(e){Z(t.get(e),function(t){!t||"series"===e&&function(t,e){{var n,i;if(e)return n=e.seriesIndex,i=e.seriesId,e=e.seriesName,null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=e&&t.name!==e}}(t,n)||t.restoreData()})})},Qf.internalField=(Wf=function(t){var e=t._seriesIndices=[];Z(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=L(e)},Gf=function(t){},void(Uf=function(t,e){t.option={},t.option[Kf]=1,t._componentsMap=L({series:[]}),t._componentsCount=L();var n,i,o=e.aria;N(o)&&null==o.enabled&&(o.enabled=!0),n=e,o=t._theme.option,i=n.color&&!n.colorLayer,Z(o,function(t,e){"colorLayer"===e&&i||"color"===e&&n.color||g.hasClass(e)||("object"==typeof t?n[e]=n[e]?d(n[e],t,!1):S(t):null==n[e]&&(n[e]=t))}),d(e,Cf,!1),t._mergeOption(e,null)})),Qf);function Qf(){return null!==jf&&jf.apply(this,arguments)||this}function Jf(e,t,n){var i,o;return V(t)?(i=L(),Z(t,function(t){null!=t&&null!=ga(t,null)&&i.set(t,!0)}),pt(n,function(t){return t&&i.get(t[e])})):(o=ga(t,null),pt(n,function(t){return t&&null!=o&&t[e]===o}))}function tg(t,e){return e.hasOwnProperty("subType")?pt(t,function(t){return t&&t.subType===e.subType}):t}function eg(t){var e=L();return t&&Z(la(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}ut($f,Xf);function ng(e){Z(ig,function(t){this[t]=M(e[t],e)},this)}var ig=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],og=/^(min|max)?(.+)$/,rg=(ag.prototype.setOption=function(t,e,n){t&&(Z(la(t.series),function(t){t&&t.data&&yt(t.data)&&Dt(t.data)}),Z(la(t.dataset),function(t){t&&t.source&&yt(t.source)&&Dt(t.source)})),t=S(t);var i=this._optionBackup,t=function(t,n,i){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)&&Z(u,function(t){t&&t.option&&(t.query?r.push(t):e=e||t)});function p(e){Z(n,function(t){t(e,i)})}return p(o),Z(l,p),Z(r,function(t){return p(t.option)}),{baseOption:o,timelineOptions:l||[],mediaDefault:e,mediaList:r}}(t,e,!i);this._newBaseOption=t.baseOption,i?(t.timelineOptions.length&&(i.timelineOptions=t.timelineOptions),t.mediaList.length&&(i.mediaList=t.mediaList),t.mediaDefault&&(i.mediaDefault=t.mediaDefault)):this._optionBackup=t},ag.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],S(t?e.baseOption:this._newBaseOption)},ag.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;return e=n.length&&(t=t.getComponent("timeline"))?S(n[t.getCurrentIndex()]):e},ag.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,o=this._mediaDefault,r=[],a=[];if(i.length||o){for(var s,l,u=0,h=i.length;u<h;u++)!function(t,e,n){var i={width:e,height:n,aspectratio:e/n},o=!0;return Z(t,function(t,e){var n,e=e.match(og);e&&e[1]&&e[2]&&(n=e[1],e=e[2].toLowerCase(),e=i[e],t=t,("min"===(n=n)?t<=e:"max"===n?e<=t:e===t)||(o=!1))}),o}(i[u].query,e,n)||r.push(u);(r=!r.length&&o?[-1]:r).length&&(s=r,l=this._currentMediaIndices,s.join(",")!==l.join(","))&&(a=E(r,function(t){return S((-1===t?o:i[t]).option)})),this._currentMediaIndices=r}return a},ag);function ag(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}var sg=Z,lg=N,ug=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function hg(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=ug.length;n<i;n++){var o=ug[n],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 cg(t,e,n){var i,o;t&&t[e]&&(t[e].normal||t[e].emphasis)&&(i=t[e].normal,o=t[e].emphasis,i&&(n?(t[e].normal=t[e].emphasis=null,B(t[e],i)):t[e]=i),o)&&(t.emphasis=t.emphasis||{},(t.emphasis[e]=o).focus&&(t.emphasis.focus=o.focus),o.blurScope)&&(t.emphasis.blurScope=o.blurScope)}function pg(t){cg(t,"itemStyle"),cg(t,"lineStyle"),cg(t,"areaStyle"),cg(t,"label"),cg(t,"labelLine"),cg(t,"upperLabel"),cg(t,"edgeLabel")}function dg(t,e){var n=lg(t)&&t[e],i=lg(n)&&n.textStyle;if(i)for(var o=0,r=ha.length;o<r;o++){var a=ha[o];i.hasOwnProperty(a)&&(n[a]=i[a])}}function fg(t){t&&(pg(t),dg(t,"label"),t.emphasis)&&dg(t.emphasis,"label")}function gg(t){return V(t)?t:t?[t]:[]}function yg(t){return(V(t)?t[0]:t)||{}}function mg(e,t){sg(gg(e.series),function(t){if(lg(t))if(lg(t)){hg(t),pg(t),dg(t,"label"),dg(t,"upperLabel"),dg(t,"edgeLabel"),t.emphasis&&(dg(t.emphasis,"label"),dg(t.emphasis,"upperLabel"),dg(t.emphasis,"edgeLabel"));var e=t.markPoint,n=(e&&(hg(e),fg(e)),t.markLine),i=(n&&(hg(n),fg(n)),t.markArea),o=(i&&fg(i),t.data);if("graph"===t.type){var o=o||t.nodes,r=t.links||t.edges;if(r&&!yt(r))for(var a=0;a<r.length;a++)fg(r[a]);Z(t.categories,function(t){pg(t)})}if(o&&!yt(o))for(a=0;a<o.length;a++)fg(o[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)fg(s[a]);if((n=t.markLine)&&n.data)for(var l=n.data,a=0;a<l.length;a++)V(l[a])?(fg(l[a][0]),fg(l[a][1])):fg(l[a]);"gauge"===t.type?(dg(t,"axisLabel"),dg(t,"title"),dg(t,"detail")):"treemap"===t.type?(cg(t.breadcrumb,"itemStyle"),Z(t.levels,function(t){pg(t)})):"tree"===t.type&&pg(t.leaves)}});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),sg(n,function(t){sg(gg(e[t]),function(t){t&&(dg(t,"axisLabel"),dg(t.axisPointer,"label"))})}),sg(gg(e.parallel),function(t){t=t&&t.parallelAxisDefault;dg(t,"axisLabel"),dg(t&&t.axisPointer,"label")}),sg(gg(e.calendar),function(t){cg(t,"itemStyle"),dg(t,"dayLabel"),dg(t,"monthLabel"),dg(t,"yearLabel")}),sg(gg(e.radar),function(t){dg(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)}),sg(gg(e.geo),function(t){lg(t)&&(fg(t),sg(gg(t.regions),function(t){fg(t)}))}),sg(gg(e.timeline),function(t){fg(t),cg(t,"label"),cg(t,"itemStyle"),cg(t,"controlStyle",!0);t=t.data;V(t)&&Z(t,function(t){N(t)&&(cg(t,"label"),cg(t,"itemStyle"))})}),sg(gg(e.toolbox),function(t){cg(t,"iconStyle"),sg(t.feature,function(t){cg(t,"iconStyle")})}),dg(yg(e.axisPointer),"label"),dg(yg(e.tooltip).axisPointer,"label")}function vg(e){e&&Z(_g,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var _g=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],xg=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],bg=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function wg(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<bg.length;n++){var i=bg[n][1],o=bg[n][0];null!=e[i]&&(e[o]=e[i])}}function Sg(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Mg(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Tg(e,t){mg(e,t),e.series=la(e.series),Z(e.series,function(t){if(N(t)){var e,n=t.type;if("line"===n)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===n||"gauge"===n){if(null!=t.clockWise&&(t.clockwise=t.clockWise),Sg(t.label),(e=t.data)&&!yt(e))for(var i=0;i<e.length;i++)Sg(e[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset)}else if("gauge"===n){var o=function(t,e){for(var n=e.split(","),i=t,o=0;o<n.length&&null!=(i=i&&i[n[o]]);o++);return i}(t,"pointer.color");if(null!=o){var r=t;var a="itemStyle.color";var s=void 0;for(var l,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"===n){if(wg(t),wg(t.backgroundStyle),wg(t.emphasis),(e=t.data)&&!yt(e))for(i=0;i<e.length;i++)"object"==typeof e[i]&&(wg(e[i]),wg(e[i]&&e[i].emphasis))}else"sunburst"===n?((a=t.highlightPolicy)&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=a)),Mg(t),function t(e,n){if(e)for(var i=0;i<e.length;i++)n(e[i]),e[i]&&t(e[i].children,n)}(t.data,Mg)):"graph"===n||"sankey"===n?(r=t)&&null!=r.focusNodeAdjacency&&(r.emphasis=r.emphasis||{},null==r.emphasis.focus)&&(r.emphasis.focus="adjacency"):"map"===n&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation)&&B(t,t.mapLocation);null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis)&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation),vg(t)}}),e.dataRange&&(e.visualMap=e.dataRange),Z(xg,function(t){t=e[t];t&&Z(t=V(t)?t:[t],function(t){vg(t)})})}var Cg,Ig,kg=function(t){this.data=t.data||(t.sourceFormat===Pf?{}:[]),this.sourceFormat=t.sourceFormat||Of,this.seriesLayoutBy=t.seriesLayoutBy||Rf,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];null==i.type&&Ff(this,n)===Nf.Must&&(i.type="ordinal")}};function Dg(t){return t instanceof kg}function Ag(t,e,n){n=n||Lg(t);var i=e.seriesLayoutBy,o=function(t,e,n,i,o){var r,a;if(!t)return{dimensionsDefine:Og(o),startIndex:a,dimensionsDetectedCount:r};{var s;e===Df?(s=t,"auto"===i||null==i?Rg(function(t){null!=t&&"-"!==t&&(F(t)?null==a&&(a=1):a=0)},n,s,10):a=ft(i)?i:i?1:0,o||1!==a||(o=[],Rg(function(t,e){o[e]=null!=t?t+"":""},n,s,1/0)),r=o?o.length:n===zf?s.length:s[0]?s[0].length:null):e===Af?o=o||function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););if(e)return X(e)}(t):e===Pf?o||(o=[],Z(t,function(t,e){o.push(e)})):e===kf&&(i=ca(t[0]),r=V(i)&&i.length||1)}return{startIndex:a,dimensionsDefine:Og(o),dimensionsDetectedCount:r}}(t,n,i,e.sourceHeader,e.dimensions);return new kg({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:S(e)})}function Pg(t){return new kg({data:t,sourceFormat:yt(t)?Lf:kf})}function Lg(t){var e=Of;if(yt(t))e=Lf;else if(V(t)){0===t.length&&(e=Df);for(var n=0,i=t.length;n<i;n++){var o=t[n];if(null!=o){if(V(o)||yt(o)){e=Df;break}if(N(o)){e=Af;break}}}}else if(N(t))for(var r in t)if(Y(t,r)&&ht(t[r])){e=Pf;break}return e}function Og(t){var i;if(t)return i=L(),E(t,function(t,e){var n,t={name:(t=N(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};return null!=t.name&&(t.name+="",null==t.displayName&&(t.displayName=t.name),(n=i.get(t.name))?t.name+="-"+n.count++:i.set(t.name,{count:1})),t})}function Rg(t,e,n,i){if(e===zf)for(var o=0;o<n.length&&o<i;o++)t(n[o]?n[o][0]:null,o);else for(var r=n[0]||[],o=0;o<r.length&&o<i;o++)t(r[o],o)}function zg(t){t=t.sourceFormat;return t===Af||t===Pf}Fg.prototype.getSource=function(){return this._source},Fg.prototype.count=function(){return 0},Fg.prototype.getItem=function(t,e){},Fg.prototype.appendData=function(t){},Fg.prototype.clean=function(){},Fg.protoInitialize=((Up=Fg.prototype).pure=!1,void(Up.persistent=!0)),Fg.internalField=(Ig=function(t,e,n){var i,o=n.sourceFormat,r=n.seriesLayoutBy,a=n.startIndex,n=n.dimensionsDefine;G(t,Cg[$g(o,r)]),o===Lf?(t.getItem=Ng,t.count=Eg,t.fillStorage=Bg):(i=Ug(o,r),t.getItem=M(i,null,e,a,n),i=Yg(o,r),t.count=M(i,null,e,a,n))},Ng=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,o=i*t,r=0;r<i;r++)e[r]=n[o+r];return e},Bg=function(t,e,n,i){for(var o=this._data,r=this._dimSize,a=0;a<r;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],h=e-t,c=n[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}},Eg=function(){return this._data?this._data.length/this._dimSize:0},(Up={})[Df+"_"+Rf]={pure:!0,appendData:Hg},Up[Df+"_"+zf]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},Up[Af]={pure:!0,appendData:Hg},Up[Pf]={pure:!0,appendData:function(t){var o=this._data;Z(t,function(t,e){for(var n=o[e]||(o[e]=[]),i=0;i<(t||[]).length;i++)n.push(t[i])})}},Up[kf]={appendData:Hg},Up[Lf]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},void(Cg=Up));var Ng,Bg,Eg,Vg=Fg;function Fg(t,e){var t=Dg(t)?t:Pg(t),n=(this._source=t,this._data=t.data),i=t.sourceFormat;t.seriesLayoutBy,i===Lf&&(this._offset=0,this._dimSize=e,this._data=n),Ig(this,n,t)}function Hg(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function Wg(t,e,n,i){return t[i]}(yd={})[Df+"_"+Rf]=function(t,e,n,i){return t[i+e]},yd[Df+"_"+zf]=function(t,e,n,i,o){i+=e;for(var r=o||[],a=t,s=0;s<a.length;s++){var l=a[s];r[s]=l?l[i]:null}return r},yd[Af]=Wg,yd[Pf]=function(t,e,n,i,o){for(var r=o||[],a=0;a<n.length;a++){var s=n[a].name,s=null!=s?t[s]:null;r[a]=s?s[i]:null}return r},yd[kf]=Wg;var Gg=yd;function Ug(t,e){return Gg[$g(t,e)]}function Zg(t,e,n){return t.length}(ep={})[Df+"_"+Rf]=function(t,e,n){return Math.max(0,t.length-e)},ep[Df+"_"+zf]=function(t,e,n){t=t[0];return t?Math.max(0,t.length-e):0},ep[Af]=Zg,ep[Pf]=function(t,e,n){n=n[0].name,t=null!=n?t[n]:null;return t?t.length:0},ep[kf]=Zg;var Xg=ep;function Yg(t,e){return Xg[$g(t,e)]}function qg(t,e,n){return t[e]}(Fa={})[Df]=qg,Fa[Af]=function(t,e,n){return t[n]},Fa[Pf]=qg,Fa[kf]=function(t,e,n){t=ca(t);return t instanceof Array?t[e]:t},Fa[Lf]=qg;var jg=Fa;function Kg(t){return jg[t]}function $g(t,e){return t===Df?t+"_"+e:t}function Qg(t,e,n){if(t){var i,o,e=t.getRawDataItem(e);if(null!=e)return i=(o=t.getStore()).getSource().sourceFormat,null!=n?(t=t.getDimensionIndex(n),n=o.getDimensionProperty(t),Kg(i)(e,t,n)):(o=e,i===kf?ca(e):o)}}var Jg=/\{@(.+?)\}/g,ty=(ey.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),o=n.getRawIndex(t),r=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),t=s&&s[n.getItemVisual(t,"drawType")||"fill"],s=s&&s.stroke,l=this.mainType,u="series"===l,n=n.userOutput&&n.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:i,color:t,borderColor:s,dimensionNames:n?n.fullDimensions:null,encode:n?n.encode:null,$vars:["seriesName","name","value"]}},ey.prototype.getFormattedLabel=function(i,t,e,n,o,r){t=t||"normal";var a=this.getData(e),e=this.getDataParams(i,e);return r&&(e.value=r.interpolatedValue),null!=n&&V(e.value)&&(e.value=e.value[n]),z(o=o||a.getItemModel(i).get("normal"===t?["label","formatter"]:[t,"label","formatter"]))?(e.status=t,e.dimensionIndex=n,o(e)):F(o)?Zd(o,e).replace(Jg,function(t,e){var n=e.length,n=("["===e.charAt(0)&&"]"===e.charAt(n-1)&&(e=+e.slice(1,n-1)),Qg(a,i,e));return null!=(n=r&&V(r.interpolatedValue)&&0<=(e=a.getDimensionIndex(e))?r.interpolatedValue[e]:n)?n+"":""}):void 0},ey.prototype.getRawValue=function(t,e){return Qg(this.getData(e),t)},ey.prototype.formatTooltip=function(t,e,n){},ey);function ey(){}function ny(t){var e,n;return N(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function iy(t){return new oy(t)}ry.prototype.perform=function(t){var e,n,i=this._upstream,o=t&&t.skip,r=(this._dirty&&i&&((r=this.context).data=r.outputData=i.context.outputData),this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!o&&(e=this._plan(this.context)),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,n=this._doReset(o)),this._modBy=s,this._modDataCount=l;r=t&&t.step;if(this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,c=Math.min(null!=r?this._dueIndex+r:1/0,this._dueEnd);if(!o&&(n||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()},ry.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},ry.prototype._doProgress=function(t,e,n,i,o){py.reset(e,n,i,o),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:py.next},this.context)},ry.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),V(e))&&!e.length&&(e=null),this._progress=e,this._modBy=this._modDataCount=null;var e,n,t=this._downstream;return t&&t.dirty(),n},ry.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},ry.prototype.pipe=function(t){this._downstream===t&&!this._dirty||((this._downstream=t)._upstream=this,t.dirty())},ry.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},ry.prototype.getUpstream=function(){return this._upstream},ry.prototype.getDownstream=function(){return this._downstream},ry.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var oy=ry;function ry(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}var ay,sy,ly,uy,hy,cy,py=cy={reset:function(t,e,n,i){sy=t,ay=e,ly=n,uy=i,hy=Math.ceil(uy/ly),cy.next=1<ly&&0<uy?fy:dy}};function dy(){return sy<ay?sy++:null}function fy(){var t=sy%hy*ly+Math.ceil(sy/hy),t=ay<=sy?null:t<uy?t:sy;return sy++,t}function gy(t,e){e=e&&e.type;return"ordinal"===e?t:null==(t="time"!==e||ft(t)||null==t||"-"===t?t:+Kr(t))||""===t?NaN:Number(t)}var yy=L({number:function(t){return parseFloat(t)},time:function(t){return+Kr(t)},trim:function(t){return F(t)?It(t):t}});function my(t){return yy.get(t)}var vy={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}},_y=(xy.prototype.evaluate=function(t){return ft(t)?this._opFn(t,this._rvalFloat):this._opFn(ea(t),this._rvalFloat)},xy);function xy(t,e){ft(e)||f(""),this._opFn=vy[t],this._rvalFloat=ea(e)}wy.prototype.evaluate=function(t,e){var n=ft(t)?t:ea(t),i=ft(e)?e:ea(e),o=isNaN(n),r=isNaN(i);return o&&(n=this._incomparable),r&&(i=this._incomparable),o&&r&&(o=F(t),r=F(e),o&&(n=r?t:0),r)&&(i=o?e:0),n<i?this._resultLT:i<n?-this._resultLT:0};var by=wy;function wy(t,e){t="desc"===t;this._resultLT=t?1:-1,this._incomparable="min"===(e=null==e?t?"min":"max":e)?-1/0:1/0}My.prototype.evaluate=function(t){var e,n=t===this._rval;return n||(e=typeof t)===this._rvalTypeof||"number"!=e&&"number"!==this._rvalTypeof||(n=ea(t)===this._rvalFloat),this._isEQ?n:!n};var Sy=My;function My(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=ea(e)}Cy.prototype.getRawData=function(){throw new Error("not supported")},Cy.prototype.getRawDataItem=function(t){throw new Error("not supported")},Cy.prototype.cloneRawData=function(){},Cy.prototype.getDimensionInfo=function(t){},Cy.prototype.cloneAllDimensionInfo=function(){},Cy.prototype.count=function(){},Cy.prototype.retrieveValue=function(t,e){},Cy.prototype.retrieveValueFromItem=function(t,e){},Cy.prototype.convertValue=gy;var Ty=Cy;function Cy(){}function Iy(t){return Oy(t.sourceFormat)||f(""),t.data}function ky(t){var e=t.sourceFormat,n=t.data;if(Oy(e)||f(""),e===Df){for(var i=[],o=0,r=n.length;o<r;o++)i.push(n[o].slice());return i}if(e===Af){for(i=[],o=0,r=n.length;o<r;o++)i.push(G({},n[o]));return i}}function Dy(t,e,n){if(null!=n)return ft(n)||!isNaN(n)&&!Y(e,n)?t[n]:Y(e,n)?e[n]:void 0}function Ay(t){return S(t)}var Py=L();function Ly(t,e){var n=la(t),t=n.length;t||f("");for(var i=0,o=t;i<o;i++)e=function(t,i){i.length||f("");N(t)||f("");var e=t.type,d=Py.get(e);d||f("");e=E(i,function(t){var e=t,t=d,n=new Ty,i=e.data,o=n.sourceFormat=e.sourceFormat,r=e.startIndex,a=(e.seriesLayoutBy!==Rf&&f(""),[]),s={};if(h=e.dimensionsDefine)Z(h,function(t,e){var n=t.name,e={index:e,name:n,displayName:t.displayName};a.push(e),null!=n&&(Y(s,n)&&f(""),s[n]=e)});else for(var l=0;l<e.dimensionsDetectedCount;l++)a.push({index:l});var u=Ug(o,Rf),h=(t.__isBuiltIn&&(n.getRawDataItem=function(t){return u(i,r,a,t)},n.getRawData=M(Iy,null,e)),n.cloneRawData=M(ky,null,e),Yg(o,Rf)),c=(n.count=M(h,null,i,r,a),Kg(o)),p=(n.retrieveValue=function(t,e){t=u(i,r,a,t);return p(t,e)},n.retrieveValueFromItem=function(t,e){var n;return null!=t&&(n=a[e])?c(t,e,n.name):void 0});return n.getDimensionInfo=M(Dy,null,a,s),n.cloneAllDimensionInfo=M(Ay,null,a),n});return E(la(d.transform({upstream:e[0],upstreamList:e,config:S(t.config)})),function(t,e){N(t)||f(""),t.data||f("");Oy(Lg(t.data))||f("");var n=i[0],e=n&&0===e&&!t.dimensions?((e=n.startIndex)&&(t.data=n.data.slice(0,e).concat(t.data)),{seriesLayoutBy:Rf,sourceHeader:e,dimensions:n.metaRawOption.dimensions}):{seriesLayoutBy:Rf,sourceHeader:0,dimensions:t.dimensions};return Ag(t.data,e,null)})}(n[i],e),i!==o-1&&(e.length=Math.max(e.length,1));return e}function Oy(t){return t===Df||t===Af}var Ry,qp="undefined",zy=typeof Uint32Array==qp?Array:Uint32Array,Ny=typeof Uint16Array==qp?Array:Uint16Array,By=typeof Int32Array==qp?Array:Int32Array,Up=typeof Float64Array==qp?Array:Float64Array,Ey={float:Up,int:By,ordinal:Array,number:Array,time:Up};function Vy(t){return 65535<t?zy:Ny}function Fy(){return[1/0,-1/0]}function Hy(t,e,n,i,o){n=Ey[n||"float"];if(o){var r=t[e],a=r&&r.length;if(a!==i){for(var s=new n(i),l=0;l<a;l++)s[l]=r[l];t[e]=s}}else t[e]=new n(i)}l.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),o=this.defaultDimValueGetter=Ry[i.sourceFormat];this._dimValueGetter=n||o,this._rawExtent=[],zg(i),this._dimensions=E(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 n=this._calcDimNameToIdx,i=this._dimensions,o=n.get(t);if(null!=o){if(i[o].type===e)return o}else o=i.length;return i[o]={type:e},n.set(t,o),this._chunks[o]=new Ey[e||"float"](this._rawCount),this._rawExtent[o]=Fy(),o},l.prototype.collectOrdinalMeta=function(t,e){for(var n=this._chunks[t],i=this._dimensions[t],o=this._rawExtent,r=i.ordinalOffset||0,a=n.length,s=(0===r&&(o[t]=Fy()),o[t]),l=r;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=e,i.ordinalOffset=a,i.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,n=this.count(),t=(e.appendData(t),e.count());return e.persistent||(t+=n),n<t&&this._initDataFromProvider(n,t,!0),[n,t]},l.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,o=i.length,r=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<o;l++)Hy(n,l,(d=i[l]).type,s,!0);for(var u=[],h=a;h<s;h++)for(var c=h-a,p=0;p<o;p++){var d=i[p],f=Ry.arrayRows.call(this,t[c]||u,d.property,c,p),g=(n[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,n){for(var i=this._provider,o=this._chunks,r=this._dimensions,a=r.length,s=this._rawExtent,l=E(r,function(t){return t.property}),u=0;u<a;u++){var h=r[u];s[u]||(s[u]=Fy()),Hy(o,u,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,o,s);else for(var c=[],p=t;p<e;p++)for(var c=i.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)}!i.persistent&&i.clean&&i.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 n=[],i=[];if(null==e){e=t,t=[];for(var o=0;o<this._dimensions.length;o++)i.push(o)}else i=t;for(var o=0,r=i.length;o<r;o++)n.push(this.get(i[o],e));return n},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 n=0,i=this.count();n<i;n++){var o=this.get(t,n);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})),n=this.count();return 0===n?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},l.prototype.indexOfRawIndex=function(t){if(!(t>=this._rawCount||t<0)){if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,o=this._count-1;i<=o;){var r=(i+o)/2|0;if(e[r]<t)i=1+r;else{if(!(e[r]>t))return r;o=r-1}}}return-1},l.prototype.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array)for(var i=new e(n),o=0;o<n;o++)i[o]=t[o];else i=new e(t.buffer,0,n)}else{i=new(e=Vy(this._rawCount))(this.count());for(o=0;o<i.length;o++)i[o]=o}return i},l.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),o=new(Vy(n._rawCount))(i),r=[],a=t.length,s=0,l=t[0],u=n._chunks,h=0;h<i;h++){var c=void 0,p=n.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<i&&(n._indices=o),n._count=s,n._extent=[],n._updateGetRawIdx(),n},l.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=X(t),o=i.length;if(!o)return this;var r=e.count(),a=new(Vy(e._rawCount))(r),s=0,l=i[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[i[0]],f=0;f<n;f++)(u<=(v=d[f])&&v<=h||isNaN(v))&&(a[s++]=p),p++;l=!0}else if(2===o){for(var d=c[i[0]],g=c[i[1]],y=t[i[1]][0],m=t[i[1]][1],f=0;f<n;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[i[0]][x])&&v<=h||isNaN(v))&&(a[s++]=x)}else for(f=0;f<r;f++){for(var b=!0,x=e.getRawIndex(f),w=0;w<o;w++){var S=i[w];((v=c[S][x])<t[S][0]||v>t[S][1])&&(b=!1)}b&&(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 n=this.clone(t);return this._updateDims(n,t,e),n},l.prototype.modify=function(t,e){this._updateDims(this,t,e)},l.prototype._updateDims=function(t,e,n){for(var i=t._chunks,o=[],r=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=Fy();for(var h=0;h<a;h++){for(var c=t.getRawIndex(h),p=0;p<r;p++)s[p]=i[e[p]][c];s[r]=h;var d=n&&n.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=i[f];f&&(f[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},l.prototype.lttbDownSample=function(t,e){var n,i=this.clone([t],!0),o=i._chunks[t],r=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),u=new(Vy(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,b=c,w=-1,S=0,g=c;g<m;g++){var M,y=o[M=this.getRawIndex(g)];isNaN(y)?(S++,w<0&&(w=M)):x<(n=Math.abs((v-d)*(y-_)-(v-g)*(f-_)))&&(x=n,b=M)}0<S&&S<m-c&&(u[a++]=Math.min(w,b),b=Math.max(w,b)),l=u[a++]=b}return u[a++]=this.getRawIndex(r-1),i._count=a,i._indices=u,i.getRawIndex=this._getRawIdx,i},l.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),i=n._chunks,o=Math.floor(1/e),r=i[t],a=this.count(),s=new(Vy(this._rawCount))(2*Math.ceil(a/o)),l=0,u=0;u<a;u+=o){var h=u,c=r[this.getRawIndex(h)],p=u,d=r[this.getRawIndex(p)],f=o;a<u+o&&(f=a-u);for(var g=0;g<f;g++){var y=r[this.getRawIndex(u+g)];y<c&&(c=y,h=u+g),d<y&&(d=y,p=u+g)}var m=this.getRawIndex(h),v=this.getRawIndex(p);h<p?(s[l++]=m,s[l++]=v):(s[l++]=v,s[l++]=m)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},l.prototype.downSample=function(t,e,n,i){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]=Fy(),c=new(Vy(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=n(a),m=this.getRawIndex(Math.min(d+i(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 n=t.length,i=this._chunks,o=0,r=this.count();o<r;o++){var a=this.getRawIndex(o);switch(n){case 0:e(o);break;case 1:e(i[t[0]][a],o);break;case 2:e(i[t[0]][a],i[t[1]][a],o);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=o,e.apply(null,l)}}},l.prototype.getDataExtent=function(t){var e=this._chunks[t],n=Fy();if(!e)return n;var i=this.count();if(!this._indices)return this._rawExtent[t].slice();if(o=this._extent[t])return o.slice();for(var o,r=(o=n)[0],a=o[1],s=0;s<i;s++){var l=e[this.getRawIndex(s)];l<r&&(r=l),a<l&&(a=l)}return this._extent[t]=o=[r,a]},l.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,o=0;o<i.length;o++)n.push(i[o][e]);return n},l.prototype.clone=function(t,e){var n,i,o=new l,r=this._chunks,a=t&&ct(t,function(t,e){return t[e]=!0,t},{});if(a)for(var s=0;s<r.length;s++)o._chunks[s]=a[s]?(n=r[s],i=void 0,(i=n.constructor)===Array?n.slice():new i(n)):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=S(this._extent),t._rawExtent=S(this._rawExtent)},l.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array)for(var n=this._indices.length,e=new t(n),i=0;i<n;i++)e[i]=this._indices[i];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(Ry={arrayRows:Gy,objectRows:function(t,e,n,i){return gy(t[e],this._dimensions[i])},keyedColumns:Gy,original:function(t,e,n,i){t=t&&(null==t.value?t:t.value);return gy(t instanceof Array?t[i]:t,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}});var Wy=l;function l(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=L()}function Gy(t,e,n,i){return gy(t[i],this._dimensions[i])}Zy.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},Zy.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,9e10<this._versionSignBase&&(this._versionSignBase=0)},Zy.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},Zy.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},Zy.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n,i,o,r,a,s=this._sourceHost,l=this._getUpstreamSourceManagers(),u=!!l.length;Yy(s)?(i=s,o=t=r=void 0,e=u?((e=l[0]).prepareSource(),r=(o=e.getSource()).data,t=o.sourceFormat,[e._getVersionSign()]):(t=yt(r=i.get("data",!0))?Lf:kf,[]),i=this._getSourceMetaRawOption()||{},o=o&&o.metaRawOption||{},a=H(i.seriesLayoutBy,o.seriesLayoutBy)||null,n=H(i.sourceHeader,o.sourceHeader),i=H(i.dimensions,o.dimensions),o=a!==o.seriesLayoutBy||!!n!=!!o.sourceHeader||i?[Ag(r,{seriesLayoutBy:a,sourceHeader:n,dimensions:i},t)]:[]):(r=s,e=u?(o=(a=this._applyTransform(l)).sourceList,a.upstreamSignList):(o=[Ag(r.get("source",!0),this._getSourceMetaRawOption(),null)],[])),this._setLocalSource(o,e)},Zy.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),o=n.get("fromTransformResult",!0),r=(null!=o&&1!==t.length&&qy(""),[]),a=[];return Z(t,function(t){t.prepareSource();var e=t.getSource(o||0);null==o||e||qy(""),r.push(e),a.push(t._getVersionSign())}),i?e=Ly(i,r,n.componentIndex):null!=o&&(e=[new kg({data:(t=r[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:S(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})]),{sourceList:e,upstreamSignList:a}},Zy.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},Zy.prototype.getSource=function(t){var e=this._sourceList[t=t||0];return e||(e=this._getUpstreamSourceManagers())[0]&&e[0].getSource(t)},Zy.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},Zy.prototype._innerGetDataStore=function(t,e,n){var i,o=this._storeList,r=o[0],o=(r=r||(o[0]={}))[n];return o||(i=this._getUpstreamSourceManagers()[0],Yy(this._sourceHost)&&i?o=i._innerGetDataStore(t,e,n):(o=new Wy).initData(new Vg(e,t.length),t),r[n]=o),o},Zy.prototype._getUpstreamSourceManagers=function(){var t,e=this._sourceHost;return Yy(e)?(t=Vf(e))?[t.getSourceManager()]:[]:E((t=e).get("transform",!0)||t.get("fromTransformResult",!0)?Ta(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Sa).models:[],function(t){return t.getSourceManager()})},Zy.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;return Yy(i)?(t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(t=(i=i).get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)),{seriesLayoutBy:t,sourceHeader:e,dimensions:n}};var Uy=Zy;function Zy(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}function Xy(t){t.option.transform&&Dt(t.option.transform)}function Yy(t){return"series"===t.mainType}function qy(t){throw new Error(t)}var jy="line-height:1";function Ky(t){t=t.lineHeight;return null==t?jy:"line-height:"+xe(t+"")+"px"}function $y(t,e){var n=t.color||I.color.tertiary,i=t.fontSize||12,o=t.fontWeight||"400",r=t.color||I.color.secondary,a=t.fontSize||14,t=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+xe(i+"")+"px;color:"+xe(n)+";font-weight:"+xe(o+""),valueStyle:"font-size:"+xe(a+"")+"px;color:"+xe(r)+";font-weight:"+xe(t+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:o},valueStyle:{fontSize:a,fill:r,fontWeight:t}}}var Qy=[0,10,20,30],Jy=["","\n","\n\n","\n\n\n"];function tm(t,e){return e.type=t,e}function em(t){return"section"===t.type}function nm(t){return em(t)?im:om}function im(i,o,t,r){var n,e=o.noHeader,a=(l=function n(t){var i,e,o;return em(t)?(i=0,e=t.blocks.length,o=1<e||0<e&&!t.noHeader,Z(t.blocks,function(t){var e=n(t);i<=e&&(i=e+ +(o&&(!e||em(t)&&!t.noHeader)))}),i):0}(o),{html:Qy[l],richText:Jy[l]}),s=[],l=o.blocks||[],u=(Ct(!l||V(l)),l=l||[],i.orderMode),h=(o.sortBlocks&&u&&(l=l.slice(),Y(h={valueAsc:"asc",valueDesc:"desc"},u)?(n=new by(h[u],null),l.sort(function(t,e){return n.evaluate(t.sortParam,e.sortParam)})):"seriesDesc"===u&&l.reverse()),Z(l,function(t,e){var n=o.valueFormatter,n=nm(t)(n?G(G({},i),{valueFormatter:n}):i,t,0<e?a.html:0,r);null!=n&&s.push(n)}),"richText"===i.renderMode?s.join(a.richText):am(r,s.join(""),e?t:a.html));return e?h:(u=Wd(o.header,"ordinal",i.useUTC),l=$y(r,i.renderMode).nameStyle,e=Ky(r),"richText"===i.renderMode?sm(i,u,l)+a.richText+h:am(r,'<div style="'+l+";"+e+';">'+xe(u)+"</div>"+h,t))}function om(t,e,n,i){var o,r,a,s,l,u=t.renderMode,h=e.noName,c=e.noValue,p=!e.markerType,d=e.name,f=t.useUTC,g=e.valueFormatter||t.valueFormatter||function(t){return E(t=V(t)?t:[t],function(t,e){return Wd(t,V(r)?r[e]:r,f)})};if(!h||!c)return o=p?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||I.color.secondary,u),d=h?"":Wd(d,"ordinal",f),r=e.valueType,g=c?[]:g(e.value,e.dataIndex),e=!p||!h,a=!p&&h,l=$y(i,u),s=l.nameStyle,l=l.valueStyle,"richText"===u?(p?"":o)+(h?"":sm(t,d,s))+(c?"":function(t,e,n,i,o){o=[o],i=i?10:20;return n&&o.push({padding:[0,0,0,i],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(V(e)?e.join(" "):e,o)}(t,g,e,a,l)):am(i,(p?"":o)+(h?"":'<span style="'+s+";"+(!p?"margin-left:2px":"")+'">'+xe(d)+"</span>")+(c?"":function(t,e,n,i){n=n?"10px":"20px",e=e?"float:right;margin-left:"+n:"";return t=V(t)?t:[t],'<span style="'+e+";"+i+'">'+E(t,xe).join(" ")+"</span>"}(g,e,a,l)),n)}function rm(t,e,n,i,o,r){if(t)return nm(t)({useUTC:o,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,r)}function am(t,e,n){return'<div style="'+("margin: "+n+"px 0 0")+";"+Ky(t)+';">'+e+'<div style="clear:both"></div></div>'}function sm(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function lm(t,e){t=t.get("padding");return null!=t?t:"richText"===e?[8,10]:10}hm.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},hm.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,e=Xd({color:e,type:t,renderMode:n,markerId:i});return F(e)?e:(this.richTextStyles[i]=e.style,e.content)},hm.prototype.wrapRichTextStyle=function(t,e){var n={},e=(V(e)?Z(e,function(t){return G(n,t)}):G(n,e),this._generateStyleName());return this.richTextStyles[e]=n,"{"+e+"|"+t+"}"};var um=hm;function hm(){this.richTextStyles={},this._nextStyleNameId=ia()}function cm(t){var e,n,i,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,Yd((b=p).getData().getItemVisual(_,"style")[b.visualDrawType]));function x(t,e){e=s.getDimensionInfo(e);e&&!1!==e.otherDims.tooltip&&(l?c.push(tm("nameValue",{markerType:"subItem",markerColor:a,name:e.displayName,value:t,valueType:e.type})):(u.push(t),h.push(e.type)))}1<y||v&&!y?(b=m,o=d,r=g,a=_,s=p.getData(),l=ct(b,function(t,e,n){n=s.getDimensionInfo(n);return t||n&&!1!==n.tooltip&&null!=n.displayName},!1),u=[],h=[],c=[],r.length?Z(r,function(t){x(Qg(s,o,t),t)}):Z(b,x),e=(r={inlineValues:u,inlineValueTypes:h,blocks:c}).inlineValueTypes,n=r.blocks,i=(r=r.inlineValues)[0]):y?(b=f.getDimensionInfo(g[0]),i=r=Qg(f,d,g[0]),e=b.type):i=r=v?m[0]:m;var y=ya(p),g=y&&p.name||"",b=f.getName(d),v=t?g:b;return tm("section",{header:g,noHeader:t||!y,sortParam:i,blocks:[tm("nameValue",{markerType:"item",markerColor:_,name:v,noName:!It(v),value:r,valueType:e,dataIndex:d})].concat(n||[])})}var pm=i();function dm(t,e){return t.getName(e)||t.getId(e)}a(r,fm=g),r.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=iy({count:mm,reset:vm}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);(pm(this).sourceManager=new Uy(this)).prepareSource();t=this.getInitialData(t,n);xm(t,this),this.dataTask.context.data=t,pm(this).dataBeforeProcessed=t,ym(this),this._initSelectedMapFromData(t)},r.prototype.mergeDefaultAndTheme=function(t,e){var n=pf(this),i=n?ff(t):{},o=this.subType;g.hasClass(o),d(t,e.getTheme().get(this.subType)),d(t,this.getDefaultOption()),ua(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&df(t,i,n)},r.prototype.mergeOption=function(t,e){t=d(this.option,t,!0),this.fillDataTextStyle(t.data);var n=pf(this),n=(n&&df(this.option,t,n),pm(this).sourceManager),n=(n.dirty(),n.prepareSource(),this.getInitialData(t,e));xm(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,pm(this).dataBeforeProcessed=n,ym(this),this._initSelectedMapFromData(n)},r.prototype.fillDataTextStyle=function(t){if(t&&!yt(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&ua(t[n],"label",e)},r.prototype.getInitialData=function(t,e){},r.prototype.appendData=function(t){this.getRawData().appendData(t.data)},r.prototype.getData=function(t){var e=wm(this);return e?(e=e.context.data,null!=t&&e.getLinkedData?e.getLinkedData(t):e):pm(this).data},r.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},r.prototype.setData=function(t){var e,n=wm(this);n&&((e=n.context).outputData=t,n!==this.dataTask)&&(e.data=t),pm(this).data=t},r.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return L(t)},r.prototype.getSourceManager=function(){return pm(this).sourceManager},r.prototype.getSource=function(){return this.getSourceManager().getSource()},r.prototype.getRawData=function(){return pm(this).dataBeforeProcessed},r.prototype.getColorBy=function(){return this.get("colorBy")||"series"},r.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},r.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},r.prototype.indicesOfNearest=function(t,e,n,i){var o,r,a,s,l,u=this.getData(),h=this.coordinateSystem,c=h&&h.getAxis(t);return h&&c?(o=c.dataToCoord(n),null==i&&(i=1/0),r=[],a=1/0,s=-1,l=0,u.each(e,function(t,e){var t=c.dataToCoord(t),t=o-t,n=Math.abs(t);n<=i&&((n<a||n===a&&0<=t&&s<0)&&(a=n,s=t,l=0),t===s)&&(r[l++]=e)}),r.length=l,r):[]},r.prototype.formatTooltip=function(t,e,n){return cm({series:this,dataIndex:t,multipleSeries:e})},r.prototype.isAnimationEnabled=function(){var t=this.ecModel;return!!(!w.node||t&&t.ssr)&&!!(t=(t=this.getShallow("animation"))&&this.getData().count()>this.getShallow("animationThreshold")?!1:t)},r.prototype.restoreData=function(){this.dataTask.dirty()},r.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return Xf.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},r.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},r.prototype.getProgressive=function(){return this.get("progressive")},r.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},r.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},r.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(e);if("series"===i||"all"===n)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var r=0;r<t.length;r++){var a=dm(o,t[r]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},r.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},r.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=X(t),n=[],i=0;i<e.length;i++){var o=t[e[i]];0<=o&&n.push(o)}return n},r.prototype.isSelected=function(t,e){var n=this.option.selectedMap;return!!n&&(e=this.getData(e),"all"===n||n[dm(e,t)])&&!e.getItemModel(t).get(["select","disabled"])},r.prototype.isUniversalTransitionEnabled=function(){var t;return!!this.__universalTransitionEnabled||!!(t=this.option.universalTransition)&&(!0===t||t&&t.enabled)},r.prototype._innerSelect=function(t,e){var n=this.option,i=n.selectedMode,o=e.length;if(i&&o)if("series"===i)n.selectedMap="all";else if("multiple"===i){N(n.selectedMap)||(n.selectedMap={});for(var r=n.selectedMap,a=0;a<o;a++){var s,l=e[a];r[s=dm(t,l)]=!0,this._selectedDataIndicesMap[s]=t.getRawIndex(l)}}else"single"!==i&&!0!==i||(s=dm(t,i=e[o-1]),n.selectedMap=((n={})[s]=!0,n),this._selectedDataIndicesMap=((n={})[s]=t.getRawIndex(i),n))},r.prototype._initSelectedMapFromData=function(n){var i;this.option.selectedMap||(i=[],n.hasItemOption&&n.each(function(t){var e=n.getRawDataItem(t);e&&e.selected&&i.push(t)}),0<i.length&&this._innerSelect(n,i))},r.registerClass=function(t){return g.registerClass(t)},r.protoInitialize=((yd=r.prototype).type="series.__base__",yd.seriesIndex=0,yd.ignoreStyleOnData=!1,yd.hasSymbolVisual=!1,yd.defaultSymbol="circle",yd.visualStyleAccessPath="itemStyle",void(yd.visualDrawType="fill"));var fm,gm=r;function r(){var t=null!==fm&&fm.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}function ym(t){var e,n,i=t.name;ya(t)||(t.name=(t=(e=(t=t).getRawData()).mapDimensionsAll("seriesName"),n=[],Z(t,function(t){t=e.getDimensionInfo(t);t.displayName&&n.push(t.displayName)}),n.join(" ")||i))}function mm(t){return t.model.getRawData().count()}function vm(t){t=t.model;return t.setData(t.getRawData().cloneShallow()),_m}function _m(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function xm(e,n){Z(Nt(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(t){e.wrapMethod(t,T(bm,n))})}function bm(t,e){t=wm(t);return t&&t.setOutputEnd((e||this).count()),e}function wm(t){var e,n=(t.ecModel||{}).scheduler,n=n&&n.getPipeline(t.uid);if(n)return(n=n.currentTask)&&(e=n.agentStubMap)?e.get(t.uid):n}ut(gm,ty),ut(gm,Xf),Oa(gm,g);Mm.prototype.init=function(t,e){},Mm.prototype.render=function(t,e,n,i){},Mm.prototype.dispose=function(t,e){},Mm.prototype.updateView=function(t,e,n,i){},Mm.prototype.updateLayout=function(t,e,n,i){},Mm.prototype.updateVisual=function(t,e,n,i){},Mm.prototype.toggleBlurSeries=function(t,e,n){},Mm.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var Sm=Mm;function Mm(){this.group=new Mr,this.uid=td("viewComponent")}function Tm(){var r=i();return function(t){var e=r(t),t=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,o=e.large=!(!t||!t.large),e=e.progressiveRender=!(!t||!t.progressiveRender);return!(n==o&&i==e)&&"reset"}}La(Sm),Ba(Sm);var Cm=i(),Im=Tm(),km=(Dm.prototype.init=function(t,e){},Dm.prototype.render=function(t,e,n,i){},Dm.prototype.highlight=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&Pm(t,i,"emphasis")},Dm.prototype.downplay=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&Pm(t,i,"normal")},Dm.prototype.remove=function(t,e){this.group.removeAll()},Dm.prototype.dispose=function(t,e){},Dm.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},Dm.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},Dm.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},Dm.prototype.eachRendered=function(t){yp(this.group,t)},Dm.markUpdateMethod=function(t,e){Cm(t).updateMethod=e},Dm.protoInitialize=void(Dm.prototype.type="chart"),Dm);function Dm(){this.group=new Mr,this.uid=td("viewChart"),this.renderTask=iy({plan:Lm,reset:Om}),this.renderTask.context={view:this}}function Am(t,e,n){t&&Wu(t)&&("emphasis"===e?Mu:Tu)(t,n)}function Pm(e,t,n){var i,o=_a(e,t),r=t&&null!=t.highlightKey?(t=t.highlightKey,i=null==(i=jl[t])&&ql<=32?jl[t]=ql++:i):null;null!=o?Z(la(o),function(t){Am(e.getItemGraphicEl(t),n,r)}):e.eachItemGraphicEl(function(t){Am(t,n,r)})}function Lm(t){return Im(t.model)}function Om(t){var e=t.model,n=t.ecModel,i=t.api,o=t.payload,r=e.pipelineContext.progressiveRender,t=t.view,a=o&&Cm(o).updateMethod,r=r?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==r&&t[r](e,n,i,o),Rm[r]}La(km),Ba(km);var Rm={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)}}},zm="\0__throttleOriginMethod",Nm="\0__throttleRate",Bm="\0__throttleType";function Em(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 n=h||o,i=h||r;h=null,s=a-(i?c:p)-n,clearTimeout(d),i?d=setTimeout(f,n):0<=s?f():d=setTimeout(f,-s),c=a}return e.clear=function(){d&&(clearTimeout(d),d=null)},e.debounceNextCall=function(t){h=t},e}function Vm(t,e,n,i){var o=t[e];if(o){var r=o[zm]||o,a=o[Bm];if(o[Nm]!==n||a!==i){if(null==n||!i)return t[e]=r;(o=t[e]=Em(r,n,"debounce"===i))[zm]=r,o[Bm]=i,o[Nm]=n}return o}}function Fm(t,e){var n=t[e];n&&n[zm]&&(n.clear&&n.clear(),t[e]=n[zm])}var Hm=i(),Wm={itemStyle:Ea(Xp,!0),lineStyle:Ea(Wp,!0)},Gm={lineStyle:"stroke",itemStyle:"fill"};function Um(t,e){t=t.visualStyleMapper||Wm[e];return t||(console.warn("Unknown style type '"+e+"'."),Wm.itemStyle)}function Zm(t,e){t=t.visualDrawType||Gm[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var ep={createOnAllSeries:!0,performRawSeries:!0,reset:function(o,t){var e=o.getData(),n=o.visualStyleAccessPath||"itemStyle",i=o.getModel(n),r=Um(o,n)(i),i=i.getShallow("decal"),a=(i&&(e.setVisual("decal",i),i.dirty=!0),Zm(o,n)),i=r[a],s=z(i)?i:null,n="auto"===r.fill||"auto"===r.stroke;if(r[a]&&!s&&!n||(i=o.getColorFromPalette(o.name,null,t.getSeriesCount()),r[a]||(r[a]=i,e.setVisual("colorFromPalette",!0)),r.fill="auto"===r.fill||z(r.fill)?i:r.fill,r.stroke="auto"===r.stroke||z(r.stroke)?i:r.stroke),e.setVisual("style",r),e.setVisual("drawType",a),!t.isSeriesFiltered(o)&&s)return e.setVisual("colorFromPalette",!1),{dataEach:function(t,e){var n=o.getDataParams(e),i=G({},r);i[a]=s(n),t.setItemVisual(e,"style",i)}}}},Xm=new $p,Fa={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i,o,r;if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t))return e=t.getData(),i=t.visualStyleAccessPath||"itemStyle",o=Um(t,i),r=e.getVisual("drawType"),{dataEach:e.hasItemOption?function(t,e){var n=t.getRawDataItem(e);n&&n[i]&&(Xm.option=n[i],n=o(Xm),G(t.ensureUniqueItemVisual(e,"style"),n),Xm.option.decal&&(t.setItemVisual(e,"decal",Xm.option.decal),Xm.option.decal.dirty=!0),r in n)&&t.setItemVisual(e,"colorFromPalette",!1)}:null}}},qp={performRawSeries:!0,overallReset:function(e){var i=L();e.eachSeries(function(t){var e,n=t.getColorBy();t.isColorBySeries()||(n=t.type+"-"+n,(e=i.get(n))||i.set(n,e={}),Hm(t).scope=e)}),e.eachSeries(function(i){var o,r,a,s,t,l;i.isColorBySeries()||e.isSeriesFiltered(i)||(o=i.getRawData(),r={},a=i.getData(),s=Hm(i).scope,t=i.visualStyleAccessPath||"itemStyle",l=Zm(i,t),a.each(function(t){var e=a.getRawIndex(t);r[e]=t}),o.each(function(t){var e,n=r[t];a.getItemVisual(n,"colorFromPalette")&&(n=a.ensureUniqueItemVisual(n,"style"),t=o.getName(t)||t+"",e=o.count(),n[l]=i.getColorFromPalette(t,s,e))}))})}},Ym=Math.PI;jm.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){t=t.overallTask;t&&t.dirty()})},jm.prototype.getPerformArgs=function(t,e){var n,i;if(t.__pipeline)return i=(n=this._pipelineMap.get(t.__pipeline.id)).context,{step:e=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,modBy:null!=(t=i&&i.modDataCount)?Math.ceil(t/e):null,modDataCount:t}},jm.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},jm.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),e=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),i="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:e,modDataCount:i,large:o}},jm.prototype.restorePipelines=function(t){var i=this,o=i._pipelineMap=L();t.eachSeries(function(t){var e=t.getProgressive(),n=t.uid;o.set(n,{id:n,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:e&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(e||700),count:0}),i._pipe(t,t.dataTask)})},jm.prototype.prepareStageTasks=function(){var n=this._stageTaskMap,i=this.api.getModel(),o=this.api;Z(this._allHandlers,function(t){var e=n.get(t.uid)||n.set(t.uid,{});Ct(!(t.reset&&t.overallReset),""),t.reset&&this._createSeriesStageTask(t,e,i,o),t.overallReset&&this._createOverallStageTask(t,e,i,o)},this)},jm.prototype.prepareView=function(t,e,n,i){var o=t.renderTask,r=o.context;r.model=e,r.ecModel=n,r.api=i,o.__block=!t.incrementalPrepareRender,this._pipe(e,o)},jm.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},jm.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},jm.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))}Z(t,function(i,t){var e,n,o,r,a;u.visualType&&u.visualType!==i.visualType||(e=(n=c._stageTaskMap.get(i.uid)).seriesTaskMap,(n=n.overallTask)?((r=n.agentStubMap).each(function(t){p(u,t)&&(t.dirty(),o=!0)}),o&&n.dirty(),c.updatePayload(n,l),a=c.getPerformArgs(n,u.block),r.each(function(t){t.perform(a)}),n.perform(a)&&(h=!0)):e&&e.each(function(t,e){p(u,t)&&t.dirty();var n=c.getPerformArgs(t,u.block);n.skip=!i.performRawSeries&&s.isSeriesFiltered(t.context.model),c.updatePayload(t,l),t.perform(n)&&(h=!0)}))}),this.unfinished=h||this.unfinished},jm.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},jm.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())})},jm.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},jm.prototype._createSeriesStageTask=function(n,t,i,o){var r=this,a=t.seriesTaskMap,s=t.seriesTaskMap=L(),t=n.seriesType,e=n.getTargetSeries;function l(t){var e=t.uid,e=s.set(e,a&&a.get(e)||iy({plan:t0,reset:e0,count:o0}));e.context={model:t,ecModel:i,api:o,useClearVisual:n.isVisual&&!n.isLayout,plan:n.plan,reset:n.reset,scheduler:r},r._pipe(t,e)}n.createOnAllSeries?i.eachRawSeries(l):t?i.eachRawSeriesByType(t,l):e&&e(i,o).each(l)},jm.prototype._createOverallStageTask=function(t,e,n,i){var o=this,r=e.overallTask=e.overallTask||iy({reset:Km}),a=(r.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o},r.agentStubMap),s=r.agentStubMap=L(),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,iy({reset:$m,onDirty:Jm})));e.context={model:t,overallProgress:u},e.agent=r,e.__block=u,o._pipe(t,e)}Ct(!t.createOnAllSeries,""),e?n.eachRawSeriesByType(e,c):l?l(n,i).each(c):(u=!1,Z(n.getSeries(),c)),h&&r.dirty()},jm.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},jm.wrapStageHandler=function(t,e){return(t=z(t)?{overallReset:t,seriesType:function(t){r0=null;try{t(a0,s0)}catch(t){}return r0}(t)}:t).uid=td("stageHandler"),e&&(t.visualType=e),t};var qm=jm;function jm(t,e,n,i){this._stageTaskMap=L(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function Km(t){t.overallReset(t.ecModel,t.api,t.payload)}function $m(t){return t.overallProgress&&Qm}function Qm(){this.agent.dirty(),this.getDownstream().dirty()}function Jm(){this.agent&&this.agent.dirty()}function t0(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function e0(t){t.useClearVisual&&t.data.clearAllVisual();t=t.resetDefines=la(t.reset(t.model,t.ecModel,t.api,t.payload));return 1<t.length?E(t,function(t,e){return i0(e)}):n0}var n0=i0(0);function i0(r){return function(t,e){var n=e.data,i=e.resetDefines[r];if(i&&i.dataEach)for(var o=t.start;o<t.end;o++)i.dataEach(n,o);else i&&i.progress&&i.progress(t,n)}}function o0(t){return t.data.count()}var r0,a0={},s0={};function l0(t,e){for(var n in e.prototype)t[n]=Vt}l0(a0,$f),l0(s0,ng),a0.eachSeriesByType=a0.eachRawSeriesByType=function(t){r0=t},a0.eachComponent=function(t){"series"===t.mainType&&t.subType&&(r0=t.subType)};function u0(){return{axisLine:{lineStyle:{color:u.axisLine}},splitLine:{lineStyle:{color:u.axisSplitLine}},splitArea:{areaStyle:{color:[u.backgroundTint,u.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:u.axisMinorSplitLine}},axisLabel:{color:u.axisLabel},axisName:{}}}var u=I.darkColor,Up=u.background,yd={label:{color:u.secondary},itemStyle:{borderColor:u.borderTint},dividerLineStyle:{color:u.border}},Wp={darkMode:!0,color:u.theme,backgroundColor:Up,axisPointer:{lineStyle:{color:u.border},crossStyle:{color:u.borderShade},label:{color:u.tertiary}},legend:{textStyle:{color:u.secondary},pageTextStyle:{color:u.tertiary}},textStyle:{color:u.secondary},title:{textStyle:{color:u.primary},subtextStyle:{color:u.quaternary}},toolbox:{iconStyle:{borderColor:u.accent50}},tooltip:{backgroundColor:u.neutral20,defaultBorderColor:u.border,textStyle:{color:u.tertiary}},dataZoom:{borderColor:u.accent10,textStyle:{color:u.tertiary},brushStyle:{color:u.backgroundTint},handleStyle:{color:u.neutral00,borderColor:u.accent20},moveHandleStyle:{color:u.accent40},emphasis:{handleStyle:{borderColor:u.accent50}},dataBackground:{lineStyle:{color:u.accent30},areaStyle:{color:u.accent20}},selectedDataBackground:{lineStyle:{color:u.accent50},areaStyle:{color:u.accent30}}},visualMap:{textStyle:{color:u.secondary},handleStyle:{borderColor:u.neutral30}},timeline:{lineStyle:{color:u.accent10},label:{color:u.tertiary},controlStyle:{color:u.accent30,borderColor:u.accent30}},calendar:{itemStyle:{color:u.neutral00,borderColor:u.neutral20},dayLabel:{color:u.tertiary},monthLabel:{color:u.secondary},yearLabel:{color:u.secondary}},matrix:{x:yd,y:yd,backgroundColor:{borderColor:u.axisLine},body:{itemStyle:{borderColor:u.borderTint}}},timeAxis:u0(),logAxis:u0(),valueAxis:u0(),categoryAxis:u0(),line:{symbol:"circle"},graph:{color:u.theme},gauge:{title:{color:u.secondary},axisLine:{lineStyle:{color:[[1,u.neutral05]]}},axisLabel:{color:u.axisLabel},detail:{color:u.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:u.background}},radar:((Xp=u0()).axisName={color:u.axisLabel},Xp.axisLine.lineStyle.color=u.neutral20,Xp),treemap:{breadcrumb:{itemStyle:{color:u.neutral20,textStyle:{color:u.secondary}},emphasis:{itemStyle:{color:u.neutral30}}}},sunburst:{itemStyle:{borderColor:u.background}},map:{itemStyle:{borderColor:u.border,areaColor:u.neutral10},label:{color:u.tertiary},emphasis:{label:{color:u.primary},itemStyle:{areaColor:u.highlight}},select:{label:{color:u.primary},itemStyle:{areaColor:u.highlight}}},geo:{itemStyle:{borderColor:u.border,areaColor:u.neutral10},emphasis:{label:{color:u.primary},itemStyle:{areaColor:u.highlight}},select:{label:{color:u.primary},itemStyle:{color:u.highlight}}}},h0=(Wp.categoryAxis.splitLine.show=!1,c0.prototype.normalizeQuery=function(t){var e,a,s,l={},u={},h={};return F(t)?(e=Pa(t),l.mainType=e.main||null,l.subType=e.sub||null):(a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1},Z(t,function(t,e){for(var n=!1,i=0;i<a.length;i++){var o=a[i],r=e.lastIndexOf(o);0<r&&r===e.length-o.length&&"data"!==(r=e.slice(0,r))&&(l.mainType=r,l[o.toLowerCase()]=t,n=!0)}s.hasOwnProperty(e)&&(u[e]=t,n=!0),n||(h[e]=t)})),{cptQuery:l,dataQuery:u,otherQuery:h}},c0.prototype.filter=function(t,e){var n,i,o,r,a,s=this.eventInfo;return!s||(n=s.targetEl,i=s.packedEvent,o=s.model,s=s.view,!o)||!s||(r=e.cptQuery,a=e.dataQuery,l(r,o,"mainType")&&l(r,o,"subType")&&l(r,o,"index","componentIndex")&&l(r,o,"name")&&l(r,o,"id")&&l(a,i,"name")&&l(a,i,"dataIndex")&&l(a,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,i)));function l(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},c0.prototype.afterTrigger=function(){this.eventInfo=null},c0);function c0(){}var p0=["symbol","symbolSize","symbolRotate","symbolOffset"],d0=p0.concat(["symbolKeepAspect"]),Up={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,n={},l={},i=!1,o=0;o<p0.length;o++){var r=p0[o],u=a.get(r);z(u)?(i=!0,l[r]=u):n[r]=u}if(n.symbol=n.symbol||a.defaultSymbol,e.setVisual(G({legendIcon:a.legendIcon||n.symbol,symbolKeepAspect:a.get("symbolKeepAspect")},n)),!t.isSeriesFiltered(a))return s=X(l),{dataEach:i?function(t,e){for(var n=a.getRawValue(e),i=a.getDataParams(e),o=0;o<s.length;o++){var r=s[o];t.setItemVisual(e,r,l[r](n,i))}}:null}}}},yd={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),i=0;i<d0.length;i++){var o=d0[i],r=n.getShallow(o,!0);null!=r&&t.setItemVisual(e,o,r)}}:null}}};function f0(t,e,n){switch(n){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,n)}}function g0(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 y0(t,e,n,i){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,i)}}function m0(t,e,s,n,l){var u=t+e;s.isSilent(u)||n.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e,n,i=t.seriesIndex,o=t.option.selectedMap,r=l.selected,a=0;a<r.length;a++)r[a].seriesIndex===i&&(n=_a(e=t.getData(),l.fromActionPayload),s.trigger(u,{type:u,seriesId:t.id,name:V(n)?e.getName(n[0]):e.getName(n),selected:F(o)?o:G({},o)}))})}function v0(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}var _0=Math.round(9*Math.random()),x0="function"==typeof Object.defineProperty,Xp=(b0.prototype.get=function(t){return this._guard(t)[this._id]},b0.prototype.set=function(t,e){t=this._guard(t);return x0?Object.defineProperty(t,this._id,{value:e,enumerable:!1,configurable:!0}):t[this._id]=e,this},b0.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},b0.prototype.has=function(t){return!!this._guard(t)[this._id]},b0.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},b0);function b0(){this._id="__ec_inner_"+_0++}var w0=cl.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,o=e.width/2,e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+o,i+e),t.lineTo(n-o,i+e),t.closePath()}}),S0=cl.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,o=e.width/2,e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+o,i),t.lineTo(n,i+e),t.lineTo(n-o,i),t.closePath()}}),M0=cl.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,o=e.width/5*3,e=Math.max(o,e.height),o=o/2,r=o*o/(e-o),e=i-e+o+r,a=Math.asin(r/o),s=Math.cos(a)*o,l=Math.sin(a),u=Math.cos(a),h=.6*o,c=.7*o;t.moveTo(n-s,e+r),t.arc(n,e,o,Math.PI-a,2*Math.PI+a),t.bezierCurveTo(n+s-l*h,e+r+u*h,n,i-c,n,i),t.bezierCurveTo(n,i-c,n-s+l*h,e+r+u*h,n-s,e+r),t.closePath()}}),T0=cl.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,o=e.x,e=e.y,i=i/3*2;t.moveTo(o,e),t.lineTo(o+i,e+n),t.lineTo(o,e+n/4*3),t.lineTo(o-i,e+n),t.lineTo(o,e),t.closePath()}}),C0={line:function(t,e,n,i,o){o.x1=t,o.y1=e+i/2,o.x2=t+n,o.y2=e+i/2},rect:function(t,e,n,i,o){o.x=t,o.y=e,o.width=n,o.height=i},roundRect:function(t,e,n,i,o){o.x=t,o.y=e,o.width=n,o.height=i,o.r=Math.min(n,i)/4},square:function(t,e,n,i,o){n=Math.min(n,i);o.x=t,o.y=e,o.width=n,o.height=n},circle:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.r=Math.min(n,i)/2},diamond:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.width=n,o.height=i},pin:function(t,e,n,i,o){o.x=t+n/2,o.y=e+i/2,o.width=n,o.height=i},arrow:function(t,e,n,i,o){o.x=t+n/2,o.y=e+i/2,o.width=n,o.height=i},triangle:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.width=n,o.height=i}},I0={},k0=(Z({line:$h,rect:kl,roundRect:kl,square:kl,circle:ph,diamond:S0,pin:M0,arrow:T0,triangle:w0},function(t,e){I0[e]=new t}),cl.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var t=hr(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(t.y=n.y+.4*n.height),t},buildPath:function(t,e,n){var i,o=e.symbolType;"none"!==o&&(i=(i=I0[o])||I0[o="rect"],C0[o](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n))}}));function D0(t,e){var n;"image"!==this.type&&(n=this.style,this.__isEmptyBrush?(n.stroke=t,n.fill=e||I.color.neutral00,n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw())}function A0(t,e,n,i,o,r,a){var s=0===t.indexOf("empty");return(a=0===(t=s?t.substr(5,1).toLowerCase()+t.substr(6):t).indexOf("image://")?Kc(t.slice(8),new q(e,n,i,o),a?"center":"cover"):0===t.indexOf("path://")?jc(t.slice(7),{},new q(e,n,i,o),a?"center":"cover"):new k0({shape:{symbolType:t,x:e,y:n,width:i,height:o}})).__isEmptyBrush=s,a.setColor=D0,r&&a.setColor(r),a}function P0(t){return[(t=V(t)?t:[+t,+t])[0]||0,t[1]||0]}function L0(t,e){if(null!=t)return V(t)||(t=[t,t]),[Hr(t[0],e[0])||0,Hr(H(t[1],t[0]),e[1])||0]}function O0(t){return isFinite(t)}function R0(t,e,n){for(var i,o,r,a,s,l,u,h,c,p="radial"===e.type?(i=t,o=e,a=(r=n).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=O0(u)?u:.5,h=O0(h)?h:.5,c=0<=c&&O0(c)?c:.5,i.createRadialGradient(u,h,0,u,h,c)):(o=t,a=n,r=null==(s=e).x?0:s.x,l=null==s.x2?1:s.x2,i=null==s.y?0:s.y,u=null==s.y2?0:s.y2,s.global||(r=r*a.width+a.x,l=l*a.width+a.x,i=i*a.height+a.y,u=u*a.height+a.y),r=O0(r)?r:0,l=O0(l)?l:1,i=O0(i)?i:0,u=O0(u)?u:0,o.createLinearGradient(r,i,l,u)),d=e.colorStops,f=0;f<d.length;f++)p.addColorStop(d[f].offset,d[f].color);return p}function z0(t){return parseInt(t,10)}function N0(t,e,n){var i=["width","height"][e],o=["clientWidth","clientHeight"][e],r=["paddingLeft","paddingTop"][e],e=["paddingRight","paddingBottom"][e];return null!=n[i]&&"auto"!==n[i]?parseFloat(n[i]):(n=document.defaultView.getComputedStyle(t),(t[o]||z0(n[i])||z0(t.style[i]))-(z0(n[r])||0)-(z0(n[e])||0)|0)}function B0(t){var e,n=t.style,i=n.lineDash&&0<n.lineWidth&&(o=n.lineDash,i=n.lineWidth,o&&"solid"!==o&&0<i?"dashed"===o?[4*i,2*i]:"dotted"===o?[i]:ft(o)?[o]:V(o)?o:null:null),o=n.lineDashOffset;return i&&(e=n.strokeNoScale&&t.getLineScale?t.getLineScale():1)&&1!==e&&(i=E(i,function(t){return t/e}),o/=e),[i,o]}var E0=new Ys(!0);function V0(t){var e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))}function F0(t){return"string"==typeof t&&"none"!==t}function H0(t){t=t.fill;return null!=t&&"none"!==t}function W0(t,e){var n;null!=e.fillOpacity&&1!==e.fillOpacity?(n=t.globalAlpha,t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n):t.fill()}function G0(t,e){var n;null!=e.strokeOpacity&&1!==e.strokeOpacity?(n=t.globalAlpha,t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n):t.stroke()}function U0(t,e,n){var n=Ga(e.image,e.__image,n);if(Za(n))return t=t.createPattern(n,e.repeat||"repeat"),"function"==typeof DOMMatrix&&t&&t.setTransform&&((n=new DOMMatrix).translateSelf(e.x||0,e.y||0),n.rotateSelf(0,0,(e.rotation||0)*Ft),n.scaleSelf(e.scaleX||1,e.scaleY||1),t.setTransform(n)),t}var Z0=["shadowBlur","shadowOffsetX","shadowOffsetY"],X0=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Y0(t,e,n,i,o){var r,a=!1;if(!i&&e===(n=n||{}))return!1;!i&&e.opacity===n.opacity||(tv(t,o),a=!0,r=Math.max(Math.min(e.opacity,1),0),t.globalAlpha=isNaN(r)?cs.opacity:r),!i&&e.blend===n.blend||(a||(tv(t,o),a=!0),t.globalCompositeOperation=e.blend||cs.blend);for(var s=0;s<Z0.length;s++){var l=Z0[s];!i&&e[l]===n[l]||(a||(tv(t,o),a=!0),t[l]=t.dpr*(e[l]||0))}return!i&&e.shadowColor===n.shadowColor||(a||(tv(t,o),a=!0),t.shadowColor=e.shadowColor||cs.shadowColor),a}function q0(t,e,n,i,o){var r=ev(e,o.inHover),a=i?null:n&&ev(n,o.inHover)||{};if(r!==a){var s=Y0(t,r,a,i,o);(i||r.fill!==a.fill)&&(s||(tv(t,o),s=!0),F0(r.fill))&&(t.fillStyle=r.fill),(i||r.stroke!==a.stroke)&&(s||(tv(t,o),s=!0),F0(r.stroke))&&(t.strokeStyle=r.stroke),!i&&r.opacity===a.opacity||(s||(tv(t,o),s=!0),t.globalAlpha=null==r.opacity?1:r.opacity),e.hasStroke()&&(n=r.lineWidth/(r.strokeNoScale&&e.getLineScale?e.getLineScale():1),t.lineWidth!==n)&&(s||(tv(t,o),s=!0),t.lineWidth=n);for(var l=0;l<X0.length;l++){var u=X0[l],h=u[0];!i&&r[h]===a[h]||(s||(tv(t,o),s=!0),t[h]=r[h]||u[1])}}}function j0(t,e){var e=e.transform,n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)}var K0=1,$0=2,Q0=3,J0=4;function tv(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function ev(t,e){return e&&t.__hoverStyle||t.style}function nv(t,e){iv(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function iv(t,e,n,N){var i=e.transform;if(e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){var o=e.__clipPaths,r=n.prevElClipPaths,a=!1,s=!1;if(!r||function(t,e){if(t!==e&&(t||e)){if(!t||!e||t.length!==e.length)return 1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return 1}}(o,r)){if(r&&r.length&&(tv(t,n),t.restore(),s=a=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length){tv(t,n),t.save();for(var B=o,l=t,r=n,E=!1,V=0;V<B.length;V++){var F=B[V],E=E||F.isZeroArea();j0(l,F),l.beginPath(),F.buildPath(l,F.shape),l.clip()}r.allClipped=E,a=!0}n.prevElClipPaths=o}if(n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u,h,c,p,d,f,g,y,m,v,_,x,b,H,w,S,M,T,C,I,k,D,A,r=n.prevEl,P=(r||(s=a=!0),e instanceof cl&&e.autoBatch&&(o=e.style,P=H0(o),u=V0(o),!(o.lineDash||!(+P^+u)||P&&"string"!=typeof o.fill||u&&"string"!=typeof o.stroke||o.strokePercent<1||o.strokeOpacity<1||o.fillOpacity<1))),a=(a||(u=i,o=r.transform,u&&o?u[0]!==o[0]||u[1]!==o[1]||u[2]!==o[2]||u[3]!==o[3]||u[4]!==o[4]||u[5]!==o[5]:u||o)?(tv(t,n),j0(t,e)):P||tv(t,n),ev(e,n.inHover));if(e instanceof cl)n.lastDrawType!==K0&&(s=!0,n.lastDrawType=K0),q0(t,e,r,s,n),P&&(n.batchFill||n.batchStroke)||t.beginPath(),i=t,o=e,R=P,w=V0(p=a),S=H0(p),M=p.strokePercent,T=M<1,C=!o.path,o.silent&&!T||!C||o.createPathProxy(),I=o.path||E0,k=o.__dirty,R||(d=p.fill,A=p.stroke,f=S&&!!d.colorStops,g=w&&!!A.colorStops,y=S&&!!d.image,m=w&&!!A.image,D=b=x=_=v=void 0,(f||g)&&(D=o.getBoundingRect()),f&&(v=k?R0(i,d,D):o.__canvasFillGradient,o.__canvasFillGradient=v),g&&(_=k?R0(i,A,D):o.__canvasStrokeGradient,o.__canvasStrokeGradient=_),y&&(x=k||!o.__canvasFillPattern?U0(i,d,o):o.__canvasFillPattern,o.__canvasFillPattern=x),m&&(b=k||!o.__canvasStrokePattern?U0(i,A,o):o.__canvasStrokePattern,o.__canvasStrokePattern=b),f?i.fillStyle=v:y&&(x?i.fillStyle=x:S=!1),g?i.strokeStyle=_:m&&(b?i.strokeStyle=b:w=!1)),D=o.getGlobalScale(),I.setScale(D[0],D[1],o.segmentIgnoreThreshold),i.setLineDash&&p.lineDash&&(H=(d=B0(o))[0],O=d[1]),A=!0,(C||k&Ln)&&(I.setDPR(i.dpr),T?I.setContext(null):(I.setContext(i),A=!1),I.reset(),o.buildPath(I,o.shape,R),I.toStatic(),o.pathUpdated()),A&&I.rebuildPath(i,T?M:1),H&&(i.setLineDash(H),i.lineDashOffset=O),R||(p.strokeFirst?(w&&G0(i,p),S&&W0(i,p)):(S&&W0(i,p),w&&G0(i,p))),H&&i.setLineDash([]),P&&(n.batchFill=a.fill||"",n.batchStroke=a.stroke||"");else if(e instanceof fl)n.lastDrawType!==Q0&&(s=!0,n.lastDrawType=Q0),q0(t,e,r,s,n),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=B0(v))[0],_=v[1]),g&&(f.setLineDash(g),f.lineDashOffset=_),y.strokeFirst?(V0(y)&&f.strokeText(x,y.x,y.y),H0(y)&&f.fillText(x,y.x,y.y)):(H0(y)&&f.fillText(x,y.x,y.y),V0(y)&&f.strokeText(x,y.x,y.y)),g)&&f.setLineDash([]);else if(e instanceof _l)n.lastDrawType!==$0&&(s=!0,n.lastDrawType=$0),m=r,b=s,Y0(t,ev(e,(D=n).inHover),m&&ev(m,D.inHover),b,D),d=t,C=a,(o=(k=e).__image=Ga(C.image,k.__image,k,k.onload))&&Za(o)&&(A=C.x||0,I=C.y||0,T=k.getWidth(),k=k.getHeight(),M=o.width/o.height,null==T&&null!=k?T=k*M:null==k&&null!=T?k=T/M:null==T&&null==k&&(T=o.width,k=o.height),C.sWidth&&C.sHeight?(h=C.sx||0,c=C.sy||0,d.drawImage(o,h,c,C.sWidth,C.sHeight,A,I,T,k)):C.sx&&C.sy?(h=C.sx,c=C.sy,d.drawImage(o,h,c,T-h,k-c,A,I,T,k)):d.drawImage(o,A,I,T,k));else if(e.getTemporalDisplayables){n.lastDrawType!==J0&&(s=!0,n.lastDrawType=J0);var L,W,G=t,O=e,R=n,U=O.getDisplayables(),Z=O.getTemporalDisplayables(),X=(G.save(),{prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:R.viewWidth,viewHeight:R.viewHeight,inHover:R.inHover});for(L=O.getCursor(),W=U.length;L<W;L++)(z=U[L]).beforeBrush&&z.beforeBrush(),z.innerBeforeBrush(),iv(G,z,X,L===W-1),z.innerAfterBrush(),z.afterBrush&&z.afterBrush(),X.prevEl=z;for(var z,Y=0,q=Z.length;Y<q;Y++)(z=Z[Y]).beforeBrush&&z.beforeBrush(),z.innerBeforeBrush(),iv(G,z,X,Y===q-1),z.innerAfterBrush(),z.afterBrush&&z.afterBrush(),X.prevEl=z;O.clearTemporalDisplayables(),O.notClear=!0,G.restore()}P&&N&&tv(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),(n.prevEl=e).__dirty=0,e.__isRendered=!0}}else e.__dirty&=~Pn,e.__isRendered=!1}var ov=new Xp,rv=new fi(100),av=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function sv(t,e){if("none"===t)return null;var a=e.getDevicePixelRatio(),s=e.getZr(),l="svg"===s.painter.type,e=(t.dirty&&ov.delete(t),ov.get(t));if(e)return e;for(var n,u=B(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"}),i=e,o=[a],r=!0,h=0;h<av.length;++h){var c=u[av[h]];if(null!=c&&!V(c)&&!F(c)&&!ft(c)&&"boolean"!=typeof c){r=!1;break}o.push(c)}r&&(n=o.join(",")+(l?"-svg":""),v=rv.get(n))&&(l?i.svgElement=v:i.image=v);var p,d=function t(e){if(!e||0===e.length)return[[0,0]];if(ft(e))return[[r=Math.ceil(e),r]];var n=!0;for(var i=0;i<e.length;++i)if(!ft(e[i])){n=!1;break}if(n)return t([e]);var o=[];for(i=0;i<e.length;++i){var r;ft(e[i])?(r=Math.ceil(e[i]),o.push([r,r])):(r=E(e[i],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(ft(t))return[e=Math.ceil(t),e];var e=E(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 n=!0;for(var i=0;i<e.length;++i)if(!F(e[i])){n=!1;break}if(n)return t([e]);var o=[];for(i=0;i<e.length;++i)F(e[i])?o.push([e[i]]):o.push(e[i]);return o}(u.symbol),y=function(t){return E(t,lv)}(d),m=lv(f),v=!l&&K.createCanvas(),_=l&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var t=1,e=0,n=y.length;e<n;++e)t=oa(t,y[e]);for(var i=1,e=0,n=g.length;e<n;++e)i=oa(i,g[e].length);t*=i;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 b=0,w=0;w<f.length;++w)b+=f[w];if(!(b<=0))for(var S=-m,M=0,T=0,C=0;S<x.height;){if(M%2==0){for(var I=T/2%g.length,k=0,D=0,A=0;k<2*x.width;){for(var P,L,O,R,z,N=0,w=0;w<d[C].length;++w)N+=d[C][w];if(N<=0)break;D%2==0&&(L=.5*(1-u.symbolSize),P=k+d[C][D]*L,L=S+f[M]*L,O=d[C][D]*u.symbolSize,R=f[M]*u.symbolSize,z=A/2%g[I].length,function(t,e,n,i,o){var r=l?1:a,o=A0(o,t*r,e*r,n*r,i*r,u.color,u.symbolKeepAspect);l?(t=s.painter.renderOneToVNode(o))&&_.children.push(t):nv(p,o)}(P,L,O,R,g[I][z])),k+=d[C][D],++A,++D===d[C].length&&(D=0)}++C===d.length&&(C=0)}S+=f[M],++T,++M===f.length&&(M=0)}return r&&rv.put(n,v||_),i.image=v,i.svgElement=_,i.svgWidth=x.width,i.svgHeight=x.height,e.rotation=u.rotation,e.scaleX=e.scaleY=l?1:1/a,ov.set(t,e),t.dirty=!1,e}function lv(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}var uv=new ue,hv={};var S0={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}},cv="__flagInMainProcess",pv="__mainProcessVersion",dv="__pendingUpdate",fv="__needsUpdateStatus",gv=/^[a-zA-Z0-9_]+$/,yv="__connectUpdateStatus";function mv(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!this.isDisposed())return _v(this,n,t);this.id}}function vv(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return _v(this,n,t)}}function _v(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),ue.prototype[e].apply(t,n)}a(wv,xv=ue);var xv,bv=wv;function wv(){return null!==xv&&xv.apply(this,arguments)||this}var Sv,Mv,Tv,Cv,Iv,kv,Dv,Av,Pv,Lv,Ov,Rv,zv,Nv,Bv,Ev,Vv,Fv,Hv,Wv,M0=bv.prototype,Gv=(M0.on=vv("on"),M0.off=vv("off"),a(h,Wv=ue),h.prototype._onframe=function(){if(!this._disposed){Fv(this);var t=this._scheduler;if(this[dv]){var e=this[dv].silent;this[cv]=!0,Hv(this);try{Sv(this),Cv.update.call(this,null,this[dv].updateParams)}catch(t){throw this[cv]=!1,this[dv]=null,t}this._zr.flush(),this[cv]=!1,this[dv]=null,Av.call(this,e),Pv.call(this,e)}else if(t.unfinished){var n=1,i=this._model,o=this._api;t.unfinished=!1;do{var r=+new Date}while(t.performSeriesTasks(i),t.performDataProcessorTasks(i),kv(this,i),t.performVisualTasks(i),Nv(this,this._model,o,"remain",{}),0<(n-=+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,n){if(!this[cv])if(this._disposed)this.id;else{N(e)&&(n=e.lazyUpdate,i=e.silent,o=e.replaceMerge,r=e.transition,e=e.notMerge),this[cv]=!0,Hv(this),this._model&&!e||(e=new rg(this._api),a=this._theme,(s=this._model=new $f).scheduler=this._scheduler,s.ssr=this._ssr,s.init(null,null,null,a,this._locale,e)),this._model.setOption(t,{replaceMerge:o},t1);var i,o,r,a,s={seriesTransition:r,optionChanged:!0};if(n)this[dv]={silent:i,updateParams:s},this[cv]=!1,this.getZr().wakeUp();else{try{Sv(this),Cv.update.call(this,null,s)}catch(t){throw this[dv]=null,this[cv]=!1,t}this._ssr||this._zr.flush(),this[dv]=null,this[cv]=!1,Av.call(this,i),Pv.call(this,i)}}},h.prototype.setTheme=function(t,e){if(!this[cv])if(this._disposed)this.id;else{var n=this._model;if(n){var e=e&&e.silent,i=null;this[dv]&&(null==e&&(e=this[dv].silent),i=this[dv].updateParams,this[dv]=null),this[cv]=!0,Hv(this);try{this._updateTheme(t),n.setTheme(this._theme),Sv(this),Cv.update.call(this,{type:"setTheme"},i)}catch(t){throw this[cv]=!1,t}this[cv]=!1,Av.call(this,e),Pv.call(this,e)}}},h.prototype._updateTheme=function(t){(t=F(t)?n1[t]:t)&&((t=S(t))&&Tg(t,!0),this._theme=t)},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||w.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=this._zr;return Z(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},h.prototype.getDataURL=function(t){var e,n,i,o;if(!this._disposed)return o=(t=t||{}).excludeComponents,e=this._model,n=[],i=this,Z(o,function(t){e.eachComponent({mainType:t},function(t){t=i._componentsMap[t.__viewId];t.group.ignore||(n.push(t),t.group.ignore=!0)})}),o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png")),Z(n,function(t){t.group.ignore=!1}),o;this.id},h.prototype.getConnectedDataURL=function(i){var o,r,a,s,l,u,h,c,p,e,t,n,d,f,g;if(!this._disposed)return o="svg"===i.type,r=this.group,a=Math.min,s=Math.max,r1[r]?(u=l=1/0,c=h=-1/0,p=[],e=i&&i.pixelRatio||this.getDevicePixelRatio(),Z(o1,function(t,e){var n;t.group===r&&(n=o?t.getZr().painter.getSvgDom().innerHTML:t.renderToCanvas(S(i)),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:n,left:t.left,top:t.top}))}),t=(h*=e)-(l*=e),n=(c*=e)-(u*=e),d=K.createCanvas(),(f=Pr(d,{renderer:o?"svg":"canvas"})).resize({width:t,height:n}),o?(g="",Z(p,function(t){var e=t.left-l,n=t.top-u;g+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),f.painter.getSvgRoot().innerHTML=g,i.connectedBackgroundColor&&f.painter.setBackgroundColor(i.connectedBackgroundColor),f.refreshImmediately(),f.painter.toDataURL()):(i.connectedBackgroundColor&&f.add(new kl({shape:{x:0,y:0,width:t,height:n},style:{fill:i.connectedBackgroundColor}})),Z(p,function(t){t=new _l({style:{x:t.left*e-l,y:t.top*e-u,image:t.dom}});f.add(t)}),f.refreshImmediately(),d.toDataURL("image/"+(i&&i.type||"png")))):this.getDataURL(i);this.id},h.prototype.convertToPixel=function(t,e,n){return Iv(this,"convertToPixel",t,e,n)},h.prototype.convertToLayout=function(t,e,n){return Iv(this,"convertToLayout",t,e,n)},h.prototype.convertFromPixel=function(t,e,n){return Iv(this,"convertFromPixel",t,e,n)},h.prototype.containPixel=function(t,i){var o;if(!this._disposed)return Z(ba(this._model,t),function(t,n){0<=n.indexOf("Models")&&Z(t,function(t){var e=t.coordinateSystem;e&&e.containPoint?o=o||!!e.containPoint(i):"seriesModels"===n&&(e=this._chartsMap[t.__viewId])&&e.containPoint&&(o=o||e.containPoint(i,t))},this)},this),!!o;this.id},h.prototype.getVisual=function(t,e){var t=ba(this._model,t,{defaultMainType:"series"}),n=t.seriesModel.getData(),t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;return null!=t?f0(n,t,e):g0(n,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 n,i,s=this,o=(Z(jv,function(a){function t(t){var n,e,i,o=s.getModel(),r=t.target;"globalout"===a?n={}:r&&v0(r,function(t){var e,t=W(t);return t&&null!=t.dataIndex?(e=t.dataModel||o.getSeriesByIndex(t.seriesIndex),n=e&&e.getDataParams(t.dataIndex,t.dataType,r)||{},1):t.eventData&&(n=G({},t.eventData),1)},!0),n&&(e=n.componentType,i=n.componentIndex,"markLine"!==e&&"markPoint"!==e&&"markArea"!==e||(e="series",i=n.seriesIndex),i=(e=e&&null!=i&&o.getComponent(e,i))&&s["series"===e.mainType?"_chartsMap":"_componentsMap"][e.__viewId],n.event=t,n.type=a,s._$eventProcessor.eventInfo={targetEl:r,packedEvent:n,model:e,view:i},s.trigger(a,n))}t.zrEventfulCallAtLast=!0,s._zr.on(a,t,s)}),this._messageCenter);Z(Qv,function(t,e){o.on(e,function(t){s.trigger(e,t)})}),i=(n=this)._api,o.on("selectchanged",function(t){var e=i.getModel();t.isFromClick?(m0("map","selectchanged",n,e,t),m0("pie","selectchanged",n,e,t)):"select"===t.fromAction?(m0("map","selected",n,e,t),m0("pie","selected",n,e,t)):"unselect"===t.fromAction&&(m0("map","unselected",n,e,t),m0("pie","unselected",n,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,n;this._disposed?this.id:(this._disposed=!0,this.getDom()&&Ca(this.getDom(),l1,""),e=(t=this)._api,n=t._model,Z(t._componentsViews,function(t){t.dispose(n,e)}),Z(t._chartsViews,function(t){t.dispose(n,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 o1[t.id])},h.prototype.resize=function(t){if(!this[cv])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"),n=t&&t.silent;this[dv]&&(null==n&&(n=this[dv].silent),e=!0,this[dv]=null),this[cv]=!0,Hv(this);try{e&&Sv(this),Cv.update.call(this,{type:"resize",animation:G({duration:0},t&&t.animation)})}catch(t){throw this[cv]=!1,t}this[cv]=!1,Av.call(this,n),Pv.call(this,n)}}},h.prototype.showLoading=function(t,e){this._disposed?this.id:(N(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),i1[t]&&(t=i1[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=G({},t);return e.type=$v[t.type],e},h.prototype.dispatchAction=function(t,e){var n;this._disposed?this.id:(N(e)||(e={silent:!!e}),Kv[t.type]&&this._model&&(this[cv]?this._pendingActions.push(t):(n=e.silent,Dv.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&w.browser.weChat&&this._throttledZrFlush(),Av.call(this,n),Pv.call(this,n))))},h.prototype.updateLabelLayout=function(){uv.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=(Sv=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Mv(t,!0),Mv(t,!1),e.plan()},Mv=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 n(t){var e,n=t.__requireNewView,i=(t.__requireNewView=!1,"_ec_"+t.id+"_"+t.type),n=!n&&l[i];n||(e=Pa(t.type),(n=new(o?Sm.getClass(e.main,e.sub):km.getClass(e.sub))).init(r,h),l[i]=n,s.push(n),u.add(n.group)),t.__viewId=n.__id=i,n.__alive=!0,n.__model=t,n.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},o||a.prepareView(n,t,r,h)}o?r.eachComponent(function(t,e){"series"!==t&&n(e)}):r.eachSeries(n);for(e=0;e<s.length;){var i=s[e];i.__alive?e++:(o||i.renderTask.dispose(),u.remove(i.group),i.dispose(r,h),s.splice(e,1),l[i.__id]===i&&delete l[i.__id],i.__id=i.group.__ecComponentInfo=null)}},Tv=function(c,e,p,n,t){var i,d,o=c._model;function r(t){t&&t.__alive&&t[e]&&t[e](t.__model,o,c._api,p)}o.setUpdatePayload(p),n?((i={})[n+"Id"]=p[n+"Id"],i[n+"Index"]=p[n+"Index"],i[n+"Name"]=p[n+"Name"],i={mainType:n,query:i},t&&(i.subType=t),null!=(t=p.excludeSeriesId)&&(d=L(),Z(la(t),function(t){t=ga(t,null);null!=t&&d.set(t,!0)})),o&&o.eachComponent(i,function(t){var e,n,i=d&&null!=d.get(t.id);if(!i)if(Uu(p))if(t instanceof gm){if(p.type===iu&&!p.notBlur&&!t.get(["emphasis","disabled"])){var i=t,o=p,r=c._api,a=i.seriesIndex,s=i.getData(o.dataType);if(s){var o=(V(o=_a(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?Lu(a,(o=W(l)).focus,o.blurScope,r):(o=i.get(["emphasis","focus"]),i=i.get(["emphasis","blurScope"]),null!=o&&Lu(a,o,i,r))}}}else{a=Ru(t.mainType,t.componentIndex,p.name,c._api),o=a.focusSelf,i=a.dispatchers;p.type===iu&&o&&!p.notBlur&&Ou(t.mainType,t.componentIndex,c._api),i&&Z(i,function(t){(p.type===iu?Mu:Tu)(t)})}else Gu(p)&&t instanceof gm&&(r=t,i=p,c._api,Gu(i)&&(e=i.dataType,V(n=_a(r.getData(e),i))||(n=[n]),r[i.type===su?"toggleSelect":i.type===ru?"select":"unselect"](n,e)),zu(t),Vv(c))},c),o&&o.eachComponent(i,function(t){d&&null!=d.get(t.id)||r(c["series"===n?"_chartsMap":"_componentsMap"][t.__viewId])},c)):Z([].concat(c._componentsViews).concat(c._chartsViews),r)},Cv={prepareAndUpdate:function(t){Sv(this),Cv.update.call(this,t,t&&{optionChanged:null!=t.newOption})},update:function(t,e){var n=this._model,i=this._api,o=this._zr,r=this._coordSysMgr,a=this._scheduler;n&&(n.setUpdatePayload(t),a.restoreData(n,t),a.performSeriesTasks(n),r.create(n,i),a.performDataProcessorTasks(n,t),kv(this,n),r.update(n,i),Uv(n),a.performVisualTasks(n,t),r=n.get("backgroundColor")||"transparent",o.setBackgroundColor(r),null!=(a=n.get("darkMode"))&&"auto"!==a&&o.setDarkMode(a),Rv(this,n,i,t,e),uv.trigger("afterupdate",n,i))},updateTransform:function(n){var i,o,r=this,a=this._model,s=this._api;a&&(a.setUpdatePayload(n),i=[],a.eachComponent(function(t,e){"series"!==t&&(t=r.getViewOfComponentModel(e))&&t.__alive&&(!t.updateTransform||(e=t.updateTransform(e,a,s,n))&&e.update)&&i.push(t)}),o=L(),a.eachSeries(function(t){var e=r._chartsMap[t.__viewId];(!e.updateTransform||(e=e.updateTransform(t,a,s,n))&&e.update)&&o.set(t.uid,1)}),Uv(a),this._scheduler.performVisualTasks(a,n,{setDirty:!0,dirtyMap:o}),Nv(this,a,s,n,{},o),uv.trigger("afterupdate",a,s))},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),km.markUpdateMethod(t,"updateView"),Uv(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),Rv(this,e,this._api,t,{}),uv.trigger("afterupdate",e,this._api))},updateVisual:function(n){var i=this,o=this._model;o&&(o.setUpdatePayload(n),o.eachSeries(function(t){t.getData().clearAllVisual()}),km.markUpdateMethod(n,"updateVisual"),Uv(o),this._scheduler.performVisualTasks(o,n,{visualType:"visual",setDirty:!0}),o.eachComponent(function(t,e){"series"!==t&&(t=i.getViewOfComponentModel(e))&&t.__alive&&t.updateVisual(e,o,i._api,n)}),o.eachSeries(function(t){i._chartsMap[t.__viewId].updateVisual(t,o,i._api,n)}),uv.trigger("afterupdate",o,this._api))},updateLayout:function(t){Cv.update.call(this,t)}},Iv=function(t,e,n,i,o){if(t._disposed)t.id;else for(var r=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=ba(r,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(u=u[e](r,s,i,o)))return u}},kv=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},Dv=function(i,t){var o,r=this,a=this.getModel(),e=i.type,n=i.escapeConnect,s=Kv[e],e=(s.update||"update").split(":"),l=e.pop(),u=null!=e[0]&&Pa(e[0]),e=(this[cv]=!0,Hv(this),[i]),h=!1,c=(i.batch&&(h=!0,e=E(i.batch,function(t){return(t=B(G({},t),i)).batch=null,t})),[]),p=[],d=s.nonRefinedEventType,f=Gu(i),g=Uu(i);if(g&&Pu(this._api),Z(e,function(t){var e,n=s.action(t,a,r._api);s.refineEvent?p.push(n):o=n,(o=o||G({},t)).type=d,c.push(o),g?(e=(n=wa(i)).queryOptionMap,n=n.mainTypeSpecified?e.keys()[0]:"series",Tv(r,l,t,n),Vv(r)):f?(Tv(r,l,t,"series"),Vv(r)):u&&Tv(r,l,t,u.main,u.sub)}),"none"!==l&&!g&&!f&&!u)try{this[dv]?(Sv(this),Cv.update.call(this,i),this[dv]=null):Cv[l].call(this,i)}catch(t){throw this[cv]=!1,t}o=h?{type:d,escapeConnect:n,batch:c}:c[0],this[cv]=!1,t||(e=void 0,s.refineEvent&&(Ct(N(h=s.refineEvent(p,i,a,this._api).eventContent)),(e=B({type:s.refinedEventType},h)).fromAction=i.type,e.fromActionPayload=i,e.escapeConnect=!0),(n=this._messageCenter).trigger(o.type,o),e&&n.trigger(e.type,e))},Av=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();Dv.call(this,n,t)}},Pv=function(t){t||this.trigger("updated")},Lv=function(e,n){e.on("rendered",function(t){n.trigger("rendered",t),!e.animation.isFinished()||n[dv]||n._scheduler.unfinished||n._pendingActions.length||n.trigger("finished")})},Ov=function(t,a){t.on("mouseover",function(t){var e,n,i,o,r=v0(t.target,Wu);r&&(r=r,e=t,t=a._api,n=W(r),i=(o=Ru(n.componentMainType,n.componentIndex,n.componentHighDownName,t)).dispatchers,o=o.focusSelf,i?(o&&Ou(n.componentMainType,n.componentIndex,t),Z(i,function(t){return wu(t,e)})):(Lu(n.seriesIndex,n.focus,n.blurScope,t),"self"===n.focus&&Ou(n.componentMainType,n.componentIndex,t),wu(r,e)),Vv(a))}).on("mouseout",function(t){var e,n,i=v0(t.target,Wu);i&&(i=i,e=t,Pu(t=a._api),(n=Ru((n=W(i)).componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers)?Z(n,function(t){return Su(t,e)}):Su(i,e),Vv(a))}).on("click",function(t){var e,t=v0(t.target,function(t){return null!=W(t).dataIndex},!0);t&&(e=t.selected?"unselect":"select",t=W(t),a._api.dispatchAction({type:e,dataType:t.dataType,dataIndexInside:t.dataIndex,seriesIndex:t.seriesIndex,isFromClick:!0}))})},Rv=function(t,e,n,i,o){var r,a,s,l,u,h,c;u=[],c=!(h=[]),(r=e).eachComponent(function(t,e){var n=e.get("zlevel")||0,i=e.get("z")||0,o=e.getZLevelKey();c=c||!!o,("series"===t?h:u).push({zlevel:n,z:i,idx:e.componentIndex,type:t,key:o})}),c&&(An(a=u.concat(h),function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),Z(a,function(t){var e=r.getComponent(t.type,t.idx),n=t.zlevel,t=t.key;null!=s&&(n=Math.max(s,n)),t?(n===s&&t!==l&&n++,l=t):l&&(n===s&&n++,l=""),s=n,e.setZLevel(n)})),zv(t,e,n,i,o),Z(t._chartsViews,function(t){t.__alive=!1}),Nv(t,e,n,i,o),Z(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},zv=function(t,n,i,o,e,r){Z(r||t._componentsViews,function(t){var e=t.__model;Yv(0,t),t.render(e,n,i,o),Xv(e,t),qv(e,t)})},Nv=function(o,t,e,r,n,a){var i,s,l,u,h=o._scheduler,c=(n=G(n||{},{updatedSeries:t.getSeries()}),uv.trigger("series:beforeupdate",t,e,n),!1);t.eachSeries(function(t){var e,n=o._chartsMap[t.__viewId],i=(n.__alive=!0,n.renderTask);h.updatePayload(i,r),Yv(0,n),a&&a.get(t.uid)&&i.dirty(),i.perform(h.getPerformArgs(i))&&(c=!0),n.group.silent=!!t.get("silent"),i=n,e=t.get("blendMode")||null,i.eachRendered(function(t){t.isGroup||(t.style.blend=e)}),zu(t)}),h.unfinished=c||h.unfinished,uv.trigger("series:layoutlabels",t,e,n),uv.trigger("series:transition",t,e,n),t.eachSeries(function(t){var e=o._chartsMap[t.__viewId];Xv(t,e),qv(t,e)}),s=t,l=(i=o)._zr.storage,u=0,l.traverse(function(t){t.isGroup||u++}),u>s.get("hoverLayerThreshold")&&!w.node&&!w.worker&&s.eachSeries(function(t){t.preventUsingHoverLayer||(t=i._chartsMap[t.__viewId]).__alive&&t.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}),uv.trigger("series:afterupdate",t,e,n)},Vv=function(t){t[fv]=!0,t.getZr().wakeUp()},Hv=function(t){t[pv]=(t[pv]+1)%1e3},Fv=function(t){t[fv]&&(t.getZr().storage.traverse(function(t){Ec(t)||Zv(t)}),t[fv]=!1)},Bv=function(n){return a(t,e=ng),t.prototype.getCoordinateSystems=function(){return n._coordSysMgr.getCoordinateSystems()},t.prototype.getComponentByElement=function(t){for(;t;){var e=t.__ecComponentInfo;if(null!=e)return n._model.getComponent(e.mainType,e.index);t=t.parent}},t.prototype.enterEmphasis=function(t,e){Mu(t,e),Vv(n)},t.prototype.leaveEmphasis=function(t,e){Tu(t,e),Vv(n)},t.prototype.enterBlur=function(t){Cu(t),Vv(n)},t.prototype.leaveBlur=function(t){Iu(t),Vv(n)},t.prototype.enterSelect=function(t){ku(t),Vv(n)},t.prototype.leaveSelect=function(t){Du(t),Vv(n)},t.prototype.getModel=function(){return n.getModel()},t.prototype.getViewOfComponentModel=function(t){return n.getViewOfComponentModel(t)},t.prototype.getViewOfSeriesModel=function(t){return n.getViewOfSeriesModel(t)},t.prototype.getMainProcessVersion=function(){return n[pv]},new t(n);function t(){return null!==e&&e.apply(this,arguments)||this}var e},void(Ev=function(i){function o(t,e){for(var n=0;n<t.length;n++)t[n][yv]=e}Z($v,function(t,e){i._messageCenter.on(e,function(t){var e,n;!r1[i.group]||0===i[yv]||t&&t.escapeConnect||(e=i.makeActionFromEvent(t),n=[],Z(o1,function(t){t!==i&&t.group===i.group&&n.push(t)}),o(n,0),Z(n,function(t){1!==t[yv]&&t.dispatchAction(e)}),o(n,2))})})})),h);function h(t,e,n){var i=Wv.call(this,new h0)||this,t=(i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},i._dom=t,i[pv]=1,n.ssr&&Rr(function(t){var e,t=W(t),n=t.dataIndex;if(null!=n)return(e=L()).set("series_index",t.seriesIndex),e.set("data_index",n),t.ssrType&&e.set("ssr_type",t.ssrType),e}),i._zr=Pr(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:H(n.useDirtyRect,!1),useCoarsePointer:H(n.useCoarsePointer,"auto"),pointerSize:n.pointerSize})),n=(i._ssr=n.ssr,i._throttledZrFlush=Em(M(t.flush,t),17),i._updateTheme(e),i._locale=F(e=n.locale||sd)?(n=rd[e.toUpperCase()]||{},e===nd||e===id?S(n):d(S(n),S(rd[od]),!1)):d(S(e),S(rd[od]),!1),i._coordSysMgr=new $d,i._api=Bv(i));function o(t,e){return t.__prio-e.__prio}return An(e1,o),An(Jv,o),i._scheduler=new qm(i,n,Jv,e1),i._messageCenter=new bv,i._initEvents(),i.resize=M(i.resize,i),t.animation.on("frame",i._onframe,i),Lv(t,i),Ov(t,i),Dt(i),i}function Uv(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function Zv(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var o=n[i];"emphasis"!==o&&"blur"!==o&&"select"!==o&&e.push(o)}t.selected&&t.states.select&&e.push("select"),t.hoverState===tu&&t.states.emphasis?e.push("emphasis"):t.hoverState===Jl&&t.states.blur&&e.push("blur"),t.useStates(e)}function Xv(t,e){var n;t.preventAutoZ||(n=xp(t),e.eachRendered(function(t){return bp(t,n.z,n.zlevel),!0}))}function Yv(t,e){e.eachRendered(function(t){var e,n;Ec(t)||(e=t.getTextContent(),n=t.getTextGuideLine(),t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null))})}function qv(t,e){var n=t.getModel("stateAnimation"),o=t.isAnimationEnabled(),t=n.get("duration"),r=0<t?{duration:t,delay:n.get("delay"),easing:n.get("easing")}:null;e.eachRendered(function(t){var e,n,i;t.states&&t.states.emphasis&&(Ec(t)||(t instanceof cl&&((i=Kl(n=t)).normalFill=n.style.fill,i.normalStroke=n.style.stroke,n=n.states.select||{},i.selectFill=n.style&&n.style.fill||null,i.selectStroke=n.style&&n.style.stroke||null),t.__dirty&&(i=t.prevStates)&&t.useStates(i),o&&(t.stateTransition=r,n=t.getTextContent(),e=t.getTextGuideLine(),n&&(n.stateTransition=r),e)&&(e.stateTransition=r),t.__dirty&&Zv(t)))})}var T0=Gv.prototype,jv=(T0.on=mv("on"),T0.off=mv("off"),T0.one=function(i,o,t){var r=this;this.on.call(this,i,function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];o&&o.apply&&o.apply(this,e),r.off(i,t)},t)},["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"]);var Kv={},$v={},Qv={},Jv=[],t1=[],e1=[],n1={},i1={},o1={},r1={},a1=+new Date,s1=+new Date,l1="_echarts_instance_";function u1(t){r1[t]=!1}w0=u1;function h1(t){return o1[e=l1,(t=t).getAttribute?t.getAttribute(e):t[e]];var e}function c1(t,e){n1[t]=e}function p1(t){U(t1,t)<0&&t1.push(t)}function d1(t,e){w1(Jv,t,e,2e3)}function f1(t){y1("afterinit",t)}function g1(t){y1("afterupdate",t)}function y1(t,e){uv.on(t,e)}function m1(t,e,n){var i,o,r,a;function s(t){return t.toLowerCase()}z(e)&&(n=e,e=""),N(t)?(i=t.type,l=t.event,r=t.update,a=t.publishNonRefinedEvent,n=n||t.action,o=t.refineEvent):(i=t,l=e);var l=s(l||i),t=o?s(i):l;Kv[i]||(Ct(gv.test(i)&&gv.test(l)),o&&Ct(l!==i),Kv[i]={actionType:i,refinedEventType:l,nonRefinedEventType:t,update:r,action:n,refineEvent:o},Qv[l]=1,o&&a&&(Qv[t]=1),$v[t]=i)}function v1(t,e){$d.register(t,e)}function _1(t,e){w1(e1,t,e,1e3,"layout")}function x1(t,e){w1(e1,t,e,3e3,"visual")}var b1=[];function w1(t,e,n,i,o){(z(e)||N(e))&&(n=e,e=i),0<=U(b1,n)||(b1.push(n),(i=qm.wrapStageHandler(n,o)).__prio=e,i.__raw=n,t.push(i))}function S1(t,e){i1[t]=e}function M1(t,e,n){var i=hv.registerMap;i&&i(t,e,n)}function T1(t){var e=(t=S(t)).type,n=(e||f(""),e.split(":")),i=(2!==n.length&&f(""),!1);"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,Py.set(e,t)}function C1(t,e,n,i){return{eventContent:{selected:(o=[],n.eachSeries(function(n){Z(n.getAllData(),function(t){t.data;var t=t.type,e=n.getSelectedDataIndices();0<e.length&&(e={dataIndex:e,seriesIndex:n.seriesIndex},null!=t&&(e.dataType=t),o.push(e))})}),o),isFromClick:e.isFromClick||!1}};var o}x1(2e3,ep),x1(4500,Fa),x1(4500,qp),x1(2e3,Up),x1(4500,yd),x1(7e3,function(e,i){e.eachRawSeries(function(t){var n;!e.isSeriesFiltered(t)&&((n=t.getData()).hasItemVisual()&&n.each(function(t){var e=n.getItemVisual(t,"decal");e&&(n.ensureUniqueItemVisual(t,"style").decal=sv(e,i))}),t=n.getVisual("decal"))&&(n.getVisual("style").decal=sv(t,i))})}),p1(Tg),d1(900,function(t){var i=L();t.eachSeries(function(t){var e,n=t.get("stack");n&&(n=i.get(n)||i.set(n,[]),(e={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)&&(e.isStackedByIndex||e.stackedByDimension)&&n.push(e)}),i.each(function(n){var _;0!==n.length&&("seriesDesc"===(n[0].seriesModel.get("stackOrder")||"seriesAsc")&&n.reverse(),Z(n,function(t,e){t.data.setCalculationInfo("stackedOnSeries",0<e?n[e-1].seriesModel:null)}),Z(_=n,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,n){var i,o,r=y.get(p.stackedDimension,n);if(isNaN(r))return g;m?o=y.getRawIndex(n):i=y.get(p.stackedByDimension,n);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,i))){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(Ur(a),Ur(s)),a+=s,r=Nr<l?a:Wr(a,l),u=c;break}}}return f[0]=r,f[1]=u,f})}))})}),S1("default",function(i,o){B(o=o||{},{text:"loading",textColor:I.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:I.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r,t=new Mr,a=new kl({style:{fill:o.maskColor},zlevel:o.zlevel,z:1e4}),s=(t.add(a),new Rl({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 kl({style:{fill:"none"},textContent:s,textConfig:{position:"right",distance:10},zlevel:o.zlevel,z:10001});return t.add(l),o.showSpinner&&((r=new sc({shape:{startAngle:-Ym/2,endAngle:-Ym/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*Ym/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Ym/2}).delay(300).start("circularInOut"),t.add(r)),t.resize=function(){var t=s.getBoundingRect().width,e=o.showSpinner?o.spinnerRadius:0,t=(i.getWidth()-2*e-(o.showSpinner&&t?10:0)-t)/2-(o.showSpinner&&t?0:5+t/2)+(o.showSpinner?0:t/2)+(t?0:e),n=i.getHeight()/2;o.showSpinner&&r.setShape({cx:t,cy:n}),l.setShape({x:t-e,y:n-e,width:2*e,height:2*e}),a.setShape({x:0,y:0,width:i.getWidth(),height:i.getHeight()})},t.resize(),t}),m1({type:iu,event:iu,update:iu},Vt),m1({type:ou,event:ou,update:ou},Vt),m1({type:ru,event:e,update:ru,action:Vt,refineEvent:C1,publishNonRefinedEvent:!0}),m1({type:au,event:e,update:au,action:Vt,refineEvent:C1,publishNonRefinedEvent:!0}),m1({type:su,event:e,update:su,action:Vt,refineEvent:C1,publishNonRefinedEvent:!0}),c1("default",{}),c1("dark",Wp);function I1(t){return null==t?0:t.length||1}function k1(t){return t}A1.prototype.add=function(t){return this._add=t,this},A1.prototype.update=function(t){return this._update=t,this},A1.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},A1.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},A1.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},A1.prototype.remove=function(t){return this._remove=t,this},A1.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},A1.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var r=0;r<t.length;r++){var a,s=i[r],l=n[s],u=I1(l);1<u?(a=l.shift(),1===l.length&&(n[s]=l[0]),this._update&&this._update(a,r)):1===u?(n[s]=null,this._update&&this._update(l,r)):this._remove&&this._remove(r)}this._performRestAdd(o,n)},A1.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},o=[],r=[];this._initIndexMap(t,n,o,"_oldKeyGetter"),this._initIndexMap(e,i,r,"_newKeyGetter");for(var a=0;a<o.length;a++){var s=o[a],l=n[s],u=i[s],h=I1(l),c=I1(u);if(1<h&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===h&&1<c)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),i[s]=null;else if(1<h&&1<c)this._updateManyToMany&&this._updateManyToMany(u,l),i[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,i)},A1.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],o=e[i],r=I1(o);if(1<r)for(var a=0;a<r;a++)this._add&&this._add(o[a]);else 1===r&&this._add&&this._add(o);e[i]=null}},A1.prototype._initIndexMap=function(t,e,n,i){for(var o=this._diffModeMultiple,r=0;r<t.length;r++){var a,s,l="_ec_"+this[i](t[r],r);o||(n[r]=l),e&&(0===(s=I1(a=e[l]))?(e[l]=r,o&&n.push(l)):1===s?e[l]=[a,r]:a.push(r))}};var D1=A1;function A1(t,e,n,i,o,r){this._old=t,this._new=e,this._oldKeyGetter=n||k1,this._newKeyGetter=i||k1,this.context=o,this._diffModeMultiple="multiple"===r}L1.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},L1.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames};var P1=L1;function L1(t,e){this._encode=t,this._schema=e}function O1(r,t){var e={},a=e.encode={},s=L(),l=[],u=[],h={},i=(Z(r.dimensions,function(t){var e,n,i=r.getDimensionInfo(t),o=i.coordDim;o&&(e=i.coordDimIndex,R1(a,o)[e]=t,i.isExtraCoord||(s.set(o,1),"ordinal"!==(n=i.type)&&"time"!==n&&(l[0]=t),R1(h,o)[e]=r.getDimensionIndex(i.name)),i.defaultTooltip)&&u.push(t),If.each(function(t,e){var n=R1(a,e),e=i.otherDims[e];null!=e&&!1!==e&&(n[e]=i.name)})}),[]),o={},n=(s.each(function(t,e){var n=a[e];o[e]=n[0],i=i.concat(n)}),e.dataDimsOnCoord=i,e.dataDimIndicesOnCoord=E(i,function(t){return r.getDimensionInfo(t).storeDimIndex}),e.encodeFirstDimNotExtra=o,a.label),n=(n&&n.length&&(l=n.slice()),a.tooltip);return n&&n.length?u=n.slice():u.length||(u=l.slice()),a.defaultedLabel=l,a.defaultedTooltip=u,e.userOutput=new P1(h,t),e}function R1(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}var z1=function(t){this.otherDims={},null!=t&&G(this,t)},N1=i(),B1={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},E1=(V1.prototype.isDimensionOmitted=function(){return this._dimOmitted},V1.prototype._updateDimOmitted=function(t){(this._dimOmitted=t)&&!this._dimNameMap&&(this._dimNameMap=W1(this.source))},V1.prototype.getSourceDimensionIndex=function(t){return H(this._dimNameMap.get(t),-1)},V1.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},V1.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=zg(this.source),n=!(30<t),i="",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||(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i=i+"$"+(B1[u]||"f"),h&&(i+=h.uid),i+="$"}var p=this.source;return{dimensions:o,hash:[p.seriesLayoutBy,p.startIndex,i].join("$$")}},V1.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,o=this.dimensions[n];o&&o.storeDimIndex===e?(o.isCalculationCoord||(i=o.name),n++):(o=this.getSourceDimension(e))&&(i=o.name),t.push(i)}return t},V1.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},V1);function V1(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}function F1(t){return t instanceof E1}function H1(t){for(var e=L(),n=0;n<(t||[]).length;n++){var i=t[n],i=N(i)?i.name:i;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function W1(t){var e=N1(t);return e.dimNameMap||(e.dimNameMap=H1(t.dimensionsDefine))}var G1,U1,Z1,X1,Y1,q1,j1,K1=N,$1=E,Q1="undefined"==typeof Int32Array?Array:Int32Array,J1=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],t_=["_approximateExtent"],e_=(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(ft(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 n=this._dimSummary;return null==e?n.encodeFirstDimNotExtra[t]:(n=n.encode[t])?n[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,n){var i,o,r=this;(i=t instanceof Wy?t:i)||(o=this.dimensions,t=Dg(t)||ht(t)?new Vg(t,o.length):t,i=new Wy,o=$1(o,function(t){return{type:r._dimInfos[t].type,property:t}}),i.initData(t,o,n)),this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=O1(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&&e.length),n=t.start,i=t.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var r=n;r<i;r++)this._nameList[r]=e[r-n],o&&j1(this,r)},c.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},c.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==Lf&&!t.fillStorage},c.prototype._doInit=function(t,e){if(!(e<=t)){var n=this._store.getProvider(),i=(this._updateOrdinalMeta(),this._nameList),o=this._idList;if(n.getSource().sourceFormat===kf&&!n.pure)for(var r=[],a=t;a<e;a++){var s,l=n.getItem(a,r);this.hasItemOption||!N(s=l)||s instanceof Array||(this.hasItemOption=!0),l&&(s=l.name,null==i[a]&&null!=s&&(i[a]=ga(s,null)),l=l.id,null==o[a])&&null!=l&&(o[a]=ga(l,null))}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)j1(this,a);G1(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){K1(t)?G(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?Z1(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 U1(this,this.getRawIndex(t))},c.prototype.count=function(){return this._store.count()},c.prototype.get=function(t,e){var n=this._store,t=this._dimInfos[t];if(t)return n.get(t.storeDimIndex,e)},c.prototype.getByRawIndex=function(t,e){var n=this._store,t=this._dimInfos[t];if(t)return n.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 n=this,i=this._store;return V(t)?i.getValues($1(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},c.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},c.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;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],t=t&&t[e];return null==t||isNaN(t)?-1:t},c.prototype.each=function(t,e,n){z(t)&&(n=e,e=t,t=[]);n=n||this,t=$1(X1(t),this._getStoreDimIndex,this);this._store.each(t,n?M(e,n):e)},c.prototype.filterSelf=function(t,e,n){z(t)&&(n=e,e=t,t=[]);n=n||this,t=$1(X1(t),this._getStoreDimIndex,this);return this._store=this._store.filter(t,n?M(e,n):e),this},c.prototype.selectRange=function(n){var i=this,o={};return Z(X(n),function(t){var e=i._getStoreDimIndex(t);o[e]=n[t]}),this._store=this._store.selectRange(o),this},c.prototype.mapArray=function(t,e,n){z(t)&&(n=e,e=t,t=[]);var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n=n||this),i},c.prototype.map=function(t,e,n,i){n=n||i||this,i=$1(X1(t),this._getStoreDimIndex,this),t=q1(this);return t._store=this._store.map(i,n?M(e,n):e),t},c.prototype.modify=function(t,e,n,i){n=n||i||this,i=$1(X1(t),this._getStoreDimIndex,this);this._store.modify(i,n?M(e,n):e)},c.prototype.downSample=function(t,e,n,i){var o=q1(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),o},c.prototype.minmaxDownSample=function(t,e){var n=q1(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},c.prototype.lttbDownSample=function(t,e){var n=q1(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},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 $p(t,e,e&&e.ecModel)},c.prototype.diff=function(e){var n=this;return new D1(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return U1(e,t)},function(t){return U1(n,t)})},c.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},c.prototype.setVisual=function(t,e){this._visual=this._visual||{},K1(t)?G(this._visual,t):this._visual[t]=e},c.prototype.getItemVisual=function(t,e){t=this._itemVisuals[t],t=t&&t[e];return null==t?this.getVisual(e):t},c.prototype.hasItemVisual=function(){return 0<this._itemVisuals.length},c.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t],n=(i=i||(n[t]={}))[e];return null==n&&(V(n=this.getVisual(e))?n=n.slice():K1(n)&&(n=G({},n)),i[e]=n),n},c.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,K1(e)?G(i,e):i[e]=n},c.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},c.prototype.setLayout=function(t,e){K1(t)?G(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,n){this._itemLayouts[t]=n?G(this._itemLayouts[t]||{},e):e},c.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},c.prototype.setItemGraphicEl=function(t,e){var n,i,o,r,a=this.hostModel&&this.hostModel.seriesIndex;n=a,i=this.dataType,o=t,(a=e)&&((r=W(a)).dataIndex=o,r.dataType=i,r.seriesIndex=n,r.ssrType="chart","group"===a.type)&&a.traverse(function(t){t=W(t);t.seriesIndex=n,t.dataIndex=o,t.dataType=i,t.ssrType="chart"}),this._graphicEls[t]=e},c.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},c.prototype.eachItemGraphicEl=function(n,i){Z(this._graphicEls,function(t,e){t&&n&&n.call(i,t,e)})},c.prototype.cloneShallow=function(t){return t=t||new c(this._schema||$1(this.dimensions,this._getDimInfo,this),this.hostModel),Y1(t,this),t._store=this._store,t},c.prototype.wrapMethod=function(t,e){var n=this[t];z(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(Mt(arguments)))})},c.internalField=(G1=function(a){var s=a._invertedIndicesMap;Z(s,function(t,e){var n=a._dimInfos[e],i=n.ordinalMeta,o=a._store;if(i){t=s[e]=new Q1(i.categories.length);for(var r=0;r<t.length;r++)t[r]=-1;for(r=0;r<o.count();r++)t[o.get(n.storeDimIndex,r)]=r}})},Z1=function(t,e,n){return ga(t._getCategory(e,n),null)},U1=function(t,e){var n=t._idList[e];return n=null==(n=null==n&&null!=t._idDimIdx?Z1(t,t._idDimIdx,e):n)?"e\0\0"+e:n},X1=function(t){return t=V(t)?t:null!=t?[t]:[]},q1=function(t){var e=new c(t._schema||$1(t.dimensions,t._getDimInfo,t),t.hostModel);return Y1(e,t),e},Y1=function(e,n){Z(J1.concat(n.__wrappedMethods||[]),function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e.__wrappedMethods=n.__wrappedMethods,Z(t_,function(t){e[t]=S(n[t])}),e._calculationInfo=G({},n._calculationInfo)},void(j1=function(t,e){var n=t._nameList,i=t._idList,o=t._nameDimIdx,r=t._idDimIdx,a=n[e],s=i[e];null==a&&null!=o&&(n[e]=a=Z1(t,o,e)),null==s&&null!=r&&(i[e]=s=Z1(t,r,e)),null==s&&null!=a&&(s=a,1<(o=(n=t._nameRepeatCount)[a]=(n[a]||0)+1)&&(s+="__ec__"+o),i[e]=s)})),c);function c(t,e){this.type="list",this._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","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"];for(var n,i,o=!(this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"]),r=(F1(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(o=!0,n=t),n=n||["x","y"],{}),a=[],s={},l=!1,u={},h=0;h<n.length;h++){var c=n[h],c=F(c)?new z1({name:c}):c instanceof z1?c:new z1(c),p=c.name,d=(c.type=c.type||"float",c.coordDim||(c.coordDim=p,c.coordDimIndex=0),c.otherDims=c.otherDims||{}),p=(a.push(p),null!=u[p]&&(l=!0),(r[p]=c).createInvertedIndices&&(s[p]=[]),h);ft(c.storeDimIndex)&&(p=c.storeDimIndex),0===d.itemName&&(this._nameDimIdx=p),0===d.itemId&&(this._idDimIdx=p),o&&(c.storeDimIndex=h)}this.dimensions=a,this._dimInfos=r,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted&&(i=this._dimIdxToName=L(),Z(a,function(t){i.set(r[t].storeDimIndex,t)}))}function n_(t,e){Dg(t)||(t=Pg(t));for(var n,i,o=(e=e||{}).coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],a=L(),s=[],l=(u=t,n=o,p=e.dimensionsCount,i=Math.max(u.dimensionsDetectedCount||1,n.length,r.length,p||0),Z(n,function(t){N(t)&&(t=t.dimsDef)&&(i=Math.max(i,t.length))}),i),u=e.canOmitUnusedDimensions&&30<l,h=r===t.dimensionsDefine,c=h?W1(t):H1(r),p=e.encodeDefine,d=L(p=!p&&e.encodeDefaulter?e.encodeDefaulter(t,l):p),f=new By(l),g=0;g<f.length;g++)f[g]=-1;function y(t){var e,n,i,o=f[t];return o<0?(e=N(e=r[t])?e:{name:e},n=new z1,null!=(i=e.name)&&null!=c.get(i)&&(n.name=n.displayName=i),null!=e.type&&(n.type=e.type),null!=e.displayName&&(n.displayName=e.displayName),f[t]=s.length,n.storeDimIndex=t,s.push(n),n):s[o]}if(!u)for(g=0;g<l;g++)y(g);d.each(function(t,n){var i,t=la(t).slice();1===t.length&&!F(t[0])&&t[0]<0?d.set(n,!1):(i=d.set(n,[]),Z(t,function(t,e){t=F(t)?c.get(t):t;null!=t&&t<l&&v(y(i[e]=t),n,e)}))});var m=0;function v(t,e,n){null!=If.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,a.set(e,!0))}Z(o,function(t){F(t)?(r=t,o={}):(r=(o=t).name,t=o.ordinalMeta,o.ordinalMeta=null,(o=G({},o)).ordinalMeta=t,n=o.dimsDef,i=o.otherDims,o.name=o.coordDim=o.coordDimIndex=o.dimsDef=o.otherDims=null);var n,i,o,r,e=d.get(r);if(!1!==e){if(!(e=la(e)).length)for(var a=0;a<(n&&n.length||1);a++){for(;m<l&&null!=y(m).coordDim;)m++;m<l&&e.push(m++)}Z(e,function(t,e){t=y(t);h&&null!=o.type&&(t.type=o.type),v(B(t,o),r,e),null==t.name&&n&&(N(e=n[e])||(e={name:e}),t.name=t.displayName=e.name,t.defaultTooltip=e.defaultTooltip),i&&B(t.otherDims,i)})}});var _=e.generateCoord,x=null!=(b=e.generateCoordCount),b=_?b||1:0,w=_||"value";function S(t){null==t.name&&(t.name=t.coordDim)}if(u)Z(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,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}(w,a,x),T.coordDimIndex=0,(!_||b<=0)&&(T.isExtraCoord=!0),b--),S(T),null!=T.type||Ff(t,M)!==Nf.Must&&(!T.isExtraCoord||null==T.otherDims.itemName&&null==T.otherDims.seriesName)||(T.type="ordinal")}for(var C=s,I=L(),k=0;k<C.length;k++){var D=C[k],A=D.name,P=I.get(A)||0;0<P&&(D.name=A+(P-1)),P++,I.set(A,P)}return new E1({source:t,dimensions:s,fullDimensionCount:l,dimensionOmitted:u})}var i_=function(t){this.coordSysDims=[],this.axisMap=L(),this.categoryAxisMap=L(),this.coordSysName=t};var o_={cartesian2d:function(t,e,n,i){var o=t.getReferringComponents("xAxis",Sa).models[0],t=t.getReferringComponents("yAxis",Sa).models[0];e.coordSysDims=["x","y"],n.set("x",o),n.set("y",t),r_(o)&&(i.set("x",o),e.firstCategoryDimIndex=0),r_(t)&&(i.set("y",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){t=t.getReferringComponents("singleAxis",Sa).models[0];e.coordSysDims=["single"],n.set("single",t),r_(t)&&(i.set("single",t),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var t=t.getReferringComponents("polar",Sa).models[0],o=t.findAxisModel("radiusAxis"),t=t.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",t),r_(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),r_(t)&&(i.set("angle",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,i,o,r){var a=t.ecModel,t=a.getComponent("parallel",t.get("parallelIndex")),s=i.coordSysDims=t.dimensions.slice();Z(t.parallelAxisIndex,function(t,e){var t=a.getComponent("parallelAxis",t),n=s[e];o.set(n,t),r_(t)&&(r.set(n,t),null==i.firstCategoryDimIndex)&&(i.firstCategoryDimIndex=e)})},matrix:function(t,e,n,i){t=t.getReferringComponents("matrix",Sa).models[0],e.coordSysDims=["x","y"],e=t.getDimensionModel("x"),t=t.getDimensionModel("y");n.set("x",e),n.set("y",t),i.set("x",e),i.set("y",t)}};function r_(t){return"category"===t.get("type")}function a_(t,e,n){var i,o,r,a,s,l,u,h,c,p=(n=n||{}).byIndex,d=n.stackedCoordDimension,f=(F1(e.schema)?(o=e.schema,i=o.dimensions,r=e.store):i=e,!(!t||!t.get("stack")));return Z(i,function(t,e){F(t)&&(i[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,n=s.type,c=0,Z(i,function(t){t.coordDim===h&&c++}),e={name:l,coordDim:h,coordDimIndex:c,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},t={name:u,coordDim:u,coordDimIndex:c+1,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1},o?(r&&(e.storeDimIndex=r.ensureCalculationDimension(u,n),t.storeDimIndex=r.ensureCalculationDimension(l,n)),o.appendCalculationDimension(e),o.appendCalculationDimension(t)):(i.push(e),i.push(t))),{stackedDimension:s&&s.name,stackedByDimension:a&&a.name,isStackedByIndex:p,stackedOverDimension:u,stackResultDimension:l}}function s_(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function l_(t,e){return s_(t,e)?t.getCalculationInfo("stackResultDimension"):e}function u_(t,e,n){n=n||{};var i,o,r,a,s,l,u=e.getSourceManager(),h=!1,t=(t?(h=!0,i=Pg(t)):h=(i=u.getSource()).sourceFormat===kf,function(t){var e=t.get("coordinateSystem"),n=new i_(e);if(e=o_[e])return e(t,n,n.axisMap,n.categoryAxisMap),n}(e)),c=(o=t,c=(c=e).get("coordinateSystem"),c=$d.get(c),p=(p=o&&o.coordSysDims?E(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=n.useEncodeDefaulter,p=z(p)?p:p?T(Ef,c,e):null,c={coordDimensions:c,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:p,canOmitUnusedDimensions:!h},p=n_(i,c),d=(c=p.dimensions,r=n.createInvertedIndices,(a=t)&&Z(c,function(t,e){var n=t.coordDim,n=a.categoryAxisMap.get(n);n&&(null==s&&(s=e),t.ordinalMeta=n.getOrdinalMeta(),r)&&(t.createInvertedIndices=!0),null!=t.otherDims.itemName&&(l=!0)}),l||null==s||(c[s].otherDims.itemName=0),s),n=h?null:u.getSharedDataStore(p),t=a_(e,{schema:p,store:n}),c=new e_(p,e),p=(c.setCalculationInfo(t),null==d||(u=i).sourceFormat!==kf||V(ca(function(t){var e=0;for(;e<t.length&&null==t[e];)e++;return t[e]}(u.data||[])))?null:function(t,e,n,i){return i===d?n:this.defaultDimValueGetter(t,e,n,i)});return c.hasItemOption=!1,c.initData(h?i:n,null,p),c}function h_(t,e,n,i,o){var r={},e=r.interval=Jr(e/n,!0),n=(null!=i&&e<i&&(e=r.interval=i),null!=o&&o<e&&(e=r.interval=o),r.intervalPrecision=c_(e)),i=r.niceTickExtent=[Wr(Math.ceil(t[0]/e)*e,n),Wr(Math.floor(t[1]/e)*e,n)];return o=i,e=t,isFinite(o[0])||(o[0]=e[0]),isFinite(o[1])||(o[1]=e[1]),p_(o,0,e),p_(o,1,e),o[0]>o[1]&&(o[0]=o[1]),r}function c_(t){return Ur(t)+2}function p_(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function d_(t,e){return t>=e[0]&&t<=e[1]}g_.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=M(t.normalize,t),this.scale=M(t.scale,t)):(this.normalize=y_,this.scale=m_)};var f_=g_;function g_(){this.normalize=y_,this.scale=m_}function y_(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function m_(t,e){return t*(e[1]-e[0])+e[0]}function v_(t,e,n){t=Math.log(t);return[Math.log(n?e[0]:Math.max(0,e[0]))/t,Math.log(n?e[1]:Math.max(0,e[1]))/t]}x_.prototype.getSetting=function(t){return this._setting[t]},x_.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent((t[0]<e[0]?t:e)[0],(t[1]>e[1]?t:e)[1])},x_.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},x_.prototype.getExtent=function(){return this._extent.slice()},x_.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},x_.prototype._innerSetExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e),this._brkCtx&&this._brkCtx.update(n)},x_.prototype.setBreaksFromOption=function(t){},x_.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},x_.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},x_.prototype.hasBreaks=function(){return!!this._brkCtx&&this._brkCtx.hasBreaks()},x_.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},x_.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},x_.prototype.isBlank=function(){return this._isBlank},x_.prototype.setBlank=function(t){this._isBlank=t};var __=x_;function x_(t){this._calculator=new f_,this._setting=t||{},this._extent=[1/0,-1/0]}Ba(__);var b_=0,w_=(S_.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&E(e,M_);return new S_({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},S_.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},S_.prototype.parseAndCollect=function(t){var e,n,i=this._needCollect;return F(t)||i?(i&&!this._deduplication?(n=this.categories.length,this.categories[n]=t,this._onCollect&&this._onCollect(t,n)):null==(n=(e=this._getOrCreateMap()).get(t))&&(i?(n=this.categories.length,this.categories[n]=t,e.set(t,n),this._onCollect&&this._onCollect(t,n)):n=NaN),n):t},S_.prototype._getOrCreateMap=function(){return this._map||(this._map=L(this.categories))},S_);function S_(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++b_,this._onCollect=t.onCollect}function M_(t){return N(t)&&null!=t.value?t.value:t+""}a(I_,T_=__),I_.prototype.parse=function(t){return null==t?NaN:F(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},I_.prototype.contain=function(t){return d_(t,this._extent)&&0<=t&&t<this._ordinalMeta.categories.length},I_.prototype.normalize=function(t){return t=this._getTickNumber(t),this._calculator.normalize(t,this._extent)},I_.prototype.scale=function(t){return t=Math.round(this._calculator.scale(t,this._extent)),this.getRawOrdinalNumber(t)},I_.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},I_.prototype.getMinorTicks=function(t){},I_.prototype.setSortInfo=function(t){if(null==t)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,r=this._ordinalMeta.categories.length,a=Math.min(r,e.length);o<a;++o){var s=e[o];i[n[o]=s]=o}for(var l=0;o<r;++o){for(;null!=i[l];)l++;n.push(l),i[l]=o}}},I_.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&0<=t&&t<e.length?e[t]:t},I_.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&0<=t&&t<e.length?e[t]:t},I_.prototype.getLabel=function(t){if(!this.isBlank())return t=this.getRawOrdinalNumber(t.value),null==(t=this._ordinalMeta.categories[t])?"":t+""},I_.prototype.count=function(){return this._extent[1]-this._extent[0]+1},I_.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},I_.prototype.getOrdinalMeta=function(){return this._ordinalMeta},I_.prototype.calcNiceTicks=function(){},I_.prototype.calcNiceExtent=function(){},I_.type="ordinal";var T_,C_=I_;function I_(t){var t=T_.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return V(e=e||new w_({}))&&(e=new w_({categories:E(e,function(t){return N(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}__.registerClass(C_);var k_,D_=Wr,A_=(a(P_,k_=__),P_.prototype.parse=function(t){return null==t||""===t?NaN:Number(t)},P_.prototype.contain=function(t){return d_(t,this._extent)},P_.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},P_.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},P_.prototype.getInterval=function(){return this._interval},P_.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=c_(t)},P_.prototype.getTicks=function(t){t=t||{};var n=this._interval,e=this._extent,i=this._niceExtent,o=this._intervalPrecision,r=ud,a=[];if(n)if("only_break"===t.breakTicks&&r)r.addBreaksToTicks(a,this._brkCtx.breaks,this._extent);else{e[0]<i[0]&&(t.expandToNicedExtent?a.push({value:D_(i[0]-n,o)}):a.push({value:e[0]}));for(var s,l=function(t,e){return Math.round((e-t)/n)},u=i[0];u<=i[1];){if(a.push({value:u}),u=D_(u+n,o),this._brkCtx&&0<=(s=this._brkCtx.calcNiceTickMultiple(u,l))&&(u=D_(u+s*n,o)),0<a.length&&u===a[a.length-1].value)break;if(1e4<a.length)return[]}var h=a.length?a[a.length-1].value:i[1];e[1]>h&&(t.expandToNicedExtent?a.push({value:D_(h+n,o)}):a.push({value:e[1]})),"none"!==t.breakTicks&&r&&r.addBreaksToTicks(a,this._brkCtx.breaks,this._extent)}return a},P_.prototype.getMinorTicks=function(t){for(var e=this.getTicks({expandToNicedExtent:!0}),n=[],i=this.getExtent(),o=1;o<e.length;o++){var r=e[o],a=e[o-1];if(!a.break&&!r.break){for(var s=0,l=[],u=(r.value-a.value)/t,h=c_(u);s<t-1;){var c=D_(a.value+(s+1)*u,h);c>i[0]&&c<i[1]&&l.push(c),s++}ud&&ud.pruneTicksByBreak("auto",l,this._getNonTransBreaks(),function(t){return t},this._interval,i),n.push(l)}}return n},P_.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},P_.prototype.getLabel=function(t,e){return null==t?"":(null==(e=e&&e.precision)?e=Ur(t.value)||0:"auto"===e&&(e=this._intervalPrecision),Vd(D_(t.value,e,!0)))},P_.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent.slice(),o=this._getExtentSpanWithBreaks();isFinite(o)&&(o<0&&(o=-o,i.reverse(),this._innerSetExtent(i[0],i[1]),i=this._extent.slice()),i=h_(i,o,t,e,n),this._intervalPrecision=i.intervalPrecision,this._interval=i.interval,this._niceExtent=i.niceTickExtent)},P_.prototype.calcNiceExtent=function(t){var e=this._extent.slice(),n=(e[0]===e[1]&&(0!==e[0]?(n=Math.abs(e[0]),t.fixMax||(e[1]+=n/2),e[0]-=n/2):e[1]=1),e[1]-e[0]),n=(isFinite(n)||(e[0]=0,e[1]=1),this._innerSetExtent(e[0],e[1]),e=this._extent.slice(),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval),this._interval),i=this._intervalPrecision;t.fixMin||(e[0]=D_(Math.floor(e[0]/n)*n,i)),t.fixMax||(e[1]=D_(Math.ceil(e[1]/n)*n,i)),this._innerSetExtent(e[0],e[1])},P_.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},P_.type="interval",P_);function P_(){var t=null!==k_&&k_.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}__.registerClass(A_);var L_="undefined"!=typeof Float32Array,O_=L_?Float32Array:Array;function R_(t){return V(t)?L_?new Float32Array(t):t:new O_(t)}function z_(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function N_(t){return t.dim+t.index}function B_(t,e){var n=[];return e.eachSeriesByType(t,function(t){var e;(e=t).coordinateSystem&&"cartesian2d"===e.coordinateSystem.type&&n.push(t)}),n}function E_(t){var a,d,h=function(t){var e,l={},n=(Z(t,function(t){var e=t.coordinateSystem.getBaseAxis();if("time"===e.type||"value"===e.type)for(var t=t.getData(),n=e.dim+"_"+e.index,i=t.getDimensionIndex(t.mapDimension(e.dim)),o=t.getStore(),r=0,a=o.count();r<a;++r){var s=o.get(i,r);l[n]?l[n].push(s):l[n]=[s]}}),{});for(e in l)if(l.hasOwnProperty(e)){var i=l[e];if(i){i.sort(function(t,e){return t-e});for(var o=null,r=1;r<i.length;++r){var a=i[r]-i[r-1];0<a&&(o=null===o?a:Math.min(o,a))}n[e]=o}}return n}(t),c=[];return Z(t,function(t){var e,n,i=t.coordinateSystem.getBaseAxis(),o=i.getExtent(),r=(e="category"===i.type?i.getBandWidth():"value"===i.type||"time"===i.type?(e=i.dim+"_"+i.index,e=h[e],r=Math.abs(o[1]-o[0]),n=i.scale.getExtent(),n=Math.abs(n[1]-n[0]),e?r/n*e:r):(n=t.getData(),Math.abs(o[1]-o[0])/n.count()),Hr(t.get("barWidth"),e)),o=Hr(t.get("barMaxWidth"),e),a=Hr(t.get("barMinWidth")||((n=t).pipelineContext&&n.pipelineContext.large?.5:1),e),s=t.get("barGap"),l=t.get("barCategoryGap"),u=t.get("defaultBarGap");c.push({bandWidth:e,barWidth:r,barMaxWidth:o,barMinWidth:a,barGap:s,barCategoryGap:l,defaultBarGap:u,axisKey:N_(i),stackId:z_(t)})}),a={},Z(c,function(t,e){var n=t.axisKey,i=t.bandWidth,i=a[n]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:t.defaultBarGap||0,stacks:{}},o=i.stacks,n=(a[n]=i,t.stackId),r=(o[n]||i.autoWidthCount++,o[n]=o[n]||{width:0,maxWidth:0},t.barWidth),r=(r&&!o[n].width&&(o[n].width=r,r=Math.min(i.remainedWidth,r),i.remainedWidth-=r),t.barMaxWidth),r=(r&&(o[n].maxWidth=r),t.barMinWidth),o=(r&&(o[n].minWidth=r),t.barGap),n=(null!=o&&(i.gap=o),t.barCategoryGap);null!=n&&(i.categoryGap=n)}),d={},Z(a,function(t,n){d[n]={};var i,e=t.stacks,o=t.bandWidth,r=t.categoryGap,a=(null==r&&(a=X(e).length,r=Math.max(35-4*a,15)+"%"),Hr(r,o)),s=Hr(t.gap,1),l=t.remainedWidth,u=t.autoWidthCount,h=(l-a)/(u+(u-1)*s),h=Math.max(h,0),c=(Z(e,function(t){var e,n=t.maxWidth,i=t.minWidth;t.width?(e=t.width,n&&(e=Math.min(e,n)),i&&(e=Math.max(e,i)),t.width=e,l-=e+s*e,u--):(e=h,n&&n<e&&(e=Math.min(n,l)),(e=i&&e<i?i:e)!==h&&(t.width=e,l-=e+s*e,u--))}),h=(l-a)/(u+(u-1)*s),h=Math.max(h,0),0),p=(Z(e,function(t,e){t.width||(t.width=h),c+=(i=t).width*(1+s)}),i&&(c-=i.width*s),-c/2);Z(e,function(t,e){d[n][e]=d[n][e]||{bandWidth:o,offset:p,width:t.width},p+=t.width*(1+s)})}),d}a(H_,V_=A_),H_.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Sd(t.value,md[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(wd(this._minLevelUnit))]||md.second,e,this.getSetting("locale"))},H_.prototype.getFormattedLabel=function(t,e,n){var i,o,r=this.getSetting("useUTC"),a=this.getSetting("locale");return t=t,e=e,a=a,r=r,o=null,o=F(n=n)?n:z(n)?(i={time:t.time,level:t.time.level},ud&&ud.makeAxisLabelFormatterParamBreak(i,t.break),n(t.value,e,i)):(e=t.time)?(i=n[e.lowerTimeUnit][e.upperTimeUnit])[Math.min(e.level,i.length-1)]||"":n[e=Md(t.value,r)][e][0],Sd(new Date(t.value),o,r,a)},H_.prototype.getTicks=function(t){var e,n,i,o=this._interval,r=this._extent,a=[];return o&&(o=this.getSetting("useUTC"),e=Md(r[1],o),a.push({value:r[0],time:{level:0,upperTimeUnit:e,lowerTimeUnit:e}}),e=function(t,m,v,_,e,y){var x=1e4,n=_d,b=0;function w(t,e,n,i,o,r,a){s=o,l=t,(u=new Date(0))[s](1),h=u.getTime(),u[s](1+l),c=u.getTime()-h;for(var s,l,u,h,c,p,d=function(t,e){return Math.max(0,Math.round((e-t)/c))},f=e,g=new Date(f);f<n&&f<=_[1]&&(a.push({value:f}),!(b++>x));)g[o](g[i]()+t),f=g.getTime(),y&&0<(p=y.calcNiceTickMultiple(f,d))&&(g[o](g[i]()+p*t),f=g.getTime());a.push({value:f,notAdd:!0})}function i(t,e,n){var i,o,r,a,s=[],l=!e.length;if(i=wd(t),o=_[0],r=_[1],a=v,Td(new Date(o),i,a).getTime()!==Td(new Date(r),i,a).getTime()){l&&(e=[{value:function(t,e,n){e=Math.max(0,U(vd,e)-1);return Td(new Date(t),vd[e],n).getTime()}(_[0],t,v)},{value:_[1]}]);for(var u,h,c=0;c<e.length-1;c++){var p=e[c].value,d=e[c+1].value;if(p!==d){var f=void 0,g=void 0,y=void 0;switch(t){case"year":f=Math.max(1,Math.round(m/dd/365)),g=Cd(v),y=v?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":h=m,f=6<(h/=30*dd)?6:3<h?3:2<h?2:1,g=Id(v),y=Od(v);break;case"week":case"half-week":case"day":h=m,f=16<(h/=dd)?16:7.5<h?7:3.5<h?4:1.5<h?2:1,g=kd(v),y=Rd(v),0;break;case"half-day":case"quarter-day":case"hour":u=m,f=12<(u/=pd)?12:6<u?6:3.5<u?4:2<u?2:1,g=Dd(v),y=zd(v);break;case"minute":f=G_(m,!0),g=Ad(v),y=Nd(v);break;case"second":f=G_(m,!1),g=Pd(v),y=Bd(v);break;case"millisecond":f=Jr(m,!0),g=Ld(v),y=Ed(v)}d>=_[0]&&p<=_[1]&&w(f,p,d,g,y,0,s),"year"===t&&1<n.length&&0===c&&n.unshift({value:n[0].value-f})}}for(c=0;c<s.length;c++)n.push(s[c])}}for(var o=[],r=[],a=0,s=0,l=0;l<n.length;++l){var u=wd(n[l]);if(function(t){return t===wd(t)}(n[l])){i(n[l],o[o.length-1]||[],r);var h=n[l+1]?wd(n[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>=_[0]&&d<=_[1]&&a++)}u=e/m;if(1.5*u<a&&u/1.5<s)break;if(o.push(c),u<a||t===n[l])break}r=[]}}}for(var f=pt(E(o,function(t){return pt(t,function(t){return t.value>=_[0]&&t.value<=_[1]&&!t.notAdd})}),function(t){return 0<t.length}),g=[],S=f.length-1,l=0;l<f.length;++l)for(var M=f[l],T=0;T<M.length;++T){var C=Md(M[T].value,v);g.push({value:M[T].value,time:{level:S-l,upperTimeUnit:C,lowerTimeUnit:C}})}g.sort(function(t,e){return t.value-e.value});for(var I=[],l=0;l<g.length;++l)0!==l&&g[l].value===g[l-1].value||I.push(g[l]);return I}(this._minLevelUnit,this._approxInterval,o,r,this._getExtentSpanWithBreaks(),this._brkCtx),a=a.concat(e),e=Md(r[1],o),a.push({value:r[1],time:{level:0,upperTimeUnit:e,lowerTimeUnit:e}}),this.getSetting("useUTC"),n=vd.length-1,i=0,Z(a,function(t){n=Math.min(n,U(vd,t.time.upperTimeUnit)),i=Math.max(i,t.time.level)})),a},H_.prototype.calcNiceExtent=function(t){var e,n=this.getExtent();n[0]===n[1]&&(n[0]-=dd,n[1]+=dd),n[1]===-1/0&&n[0]===1/0&&(e=new Date,n[1]=+new Date(e.getFullYear(),e.getMonth(),e.getDate()),n[0]=n[1]-dd),this._innerSetExtent(n[0],n[1]),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},H_.prototype.calcNiceTicks=function(t,e,n){t=t||10;var i=this._getExtentSpanWithBreaks(),i=(this._approxInterval=i/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n),W_.length),t=Math.min(function(t,e,n,i){for(;n<i;){var o=n+i>>>1;t[o][1]<e?n=1+o:i=o}return n}(W_,this._approxInterval,0,i),i-1);this._interval=W_[t][1],this._intervalPrecision=c_(this._interval),this._minLevelUnit=W_[Math.max(t-1,0)][0]},H_.prototype.parse=function(t){return ft(t)?t:+Kr(t)},H_.prototype.contain=function(t){return d_(t,this._extent)},H_.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},H_.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},H_.type="time";var V_,F_=H_;function H_(t){t=V_.call(this,t)||this;return t.type="time",t}var W_=[["second",hd],["minute",cd],["hour",pd],["quarter-day",6*pd],["half-day",12*pd],["day",1.2*dd],["half-week",3.5*dd],["week",7*dd],["month",31*dd],["quarter",95*dd],["half-year",Ra/2],["year",Ra]];function G_(t,e){return 30<(t/=e?cd:hd)?30:20<t?20:15<t?15:10<t?10:5<t?5:2<t?2:1}__.registerClass(F_);var U_,Z_=Wr,X_=Math.floor,Y_=Math.ceil,q_=Math.pow,j_=Math.log,K_=(a($_,U_=A_),$_.prototype.getTicks=function(t){t=t||{};var i=this._extent.slice(),o=this._originalScale.getExtent(),t=U_.prototype.getTicks.call(this,t),r=this.base;return this._originalScale._innerGetBreaks(),E(t,function(t){var t=t.value,e=null,n=q_(r,t);return t===i[0]&&this._fixMin?e=o[0]:t===i[1]&&this._fixMax&&(e=o[1]),{value:n=null!=e?Q_(n,e):n,break:void 0}},this)},$_.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},$_.prototype.setExtent=function(t,e){this._originalScale.setExtent(t,e);t=v_(this.base,[t,e]);U_.prototype.setExtent.call(this,t[0],t[1])},$_.prototype.getExtent=function(){var t=this.base,e=U_.prototype.getExtent.call(this),t=(e[0]=q_(t,e[0]),e[1]=q_(t,e[1]),this._originalScale.getExtent());return this._fixMin&&(e[0]=Q_(e[0],t[0])),this._fixMax&&(e[1]=Q_(e[1],t[1])),e},$_.prototype.unionExtentFromData=function(t,e){this._originalScale.unionExtentFromData(t,e);t=v_(this.base,t.getApproximateExtent(e),!0);this._innerUnionExtent(t)},$_.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(isFinite(n)&&!(n<=0)){var i=$r(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&0<Math.abs(i);)i*=10;t=[Z_(Y_(e[0]/i)*i),Z_(X_(e[1]/i)*i)];this._interval=i,this._intervalPrecision=c_(i),this._niceExtent=t}},$_.prototype.calcNiceExtent=function(t){U_.prototype.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},$_.prototype.contain=function(t){return t=j_(t)/j_(this.base),U_.prototype.contain.call(this,t)},$_.prototype.normalize=function(t){return t=j_(t)/j_(this.base),U_.prototype.normalize.call(this,t)},$_.prototype.scale=function(t){return t=U_.prototype.scale.call(this,t),q_(this.base,t)},$_.prototype.setBreaksFromOption=function(t){},$_.type="log",$_);function $_(){var t=null!==U_&&U_.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new A_,t}function Q_(t,e){return Z_(t,Ur(e))}__.registerClass(K_);tx.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===t.type,o=(this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero(),e.get("min",!0)),o=(null==o&&(o=e.get("startValue",!0)),this._modelMinRaw=o),o=(z(o)?this._modelMinNum=ox(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=ox(t,o)),this._modelMaxRaw=e.get("max",!0));z(o)?this._modelMaxNum=ox(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=ox(t,o)),i?this._axisDataLen=e.getCategories().length:"boolean"==typeof(t=V(n=e.get("boundaryGap"))?n:[n||0,n||0])[0]||"boolean"==typeof t[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[ur(t[0],1),ur(t[1],1)]},tx.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,o=this._boundaryGapInner,r=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s,e=(null==a&&(a=t?i?0:NaN:e-o[0]*r),null==s&&(s=t?i?i-1:NaN:n+o[1]*r),null!=a&&isFinite(a)||(a=NaN),null!=s&&isFinite(s)||(s=NaN),bt(a)||bt(s)||t&&!i),n=(this._needCrossZero&&(a=0<a&&0<s&&!l?0:a)<0&&s<0&&!u&&(s=0),this._determinedMin),o=this._determinedMax;return null!=n&&(a=n,l=!0),null!=o&&(s=o,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:e}},tx.prototype.modifyDataMinMax=function(t,e){this[nx[t]]=e},tx.prototype.setDeterminedMinMax=function(t,e){this[ex[t]]=e},tx.prototype.freeze=function(){this.frozen=!0};var J_=tx;function tx(t,e,n){this._prepareParams(t,e,n)}var ex={min:"_determinedMin",max:"_determinedMax"},nx={min:"_dataMin",max:"_dataMax"};function ix(t,e,n){var i=t.rawExtentInfo;return i||(i=new J_(t,e,n),t.rawExtentInfo=i),i}function ox(t,e){return null==e?null:bt(e)?NaN:t.parse(e)}function rx(t,e){var n,i,o,r,a,s,l=t.type,u=ix(t,e,t.getExtent()).calculate(),t=(t.setBlank(u.isBlank),u.min),h=u.max,c=e.ecModel;return c&&"time"===l&&(l=B_("bar",c),n=!1,Z(l,function(t){n=n||t.getBaseAxis()===e.axis}),n)&&(c=E_(l),l=t,i=h,c=c,s=(o=e).axis.getExtent(),s=Math.abs(s[1]-s[0]),void 0!==(c=function(t,e,n){if(t&&e)return null!=(t=t[N_(e)])&&null!=n?t[z_(n)]:t}(c,o.axis))&&(r=1/0,Z(c,function(t){r=Math.min(t.offset,r)}),a=-1/0,Z(c,function(t){a=Math.max(t.offset+t.width,a)}),r=Math.abs(r),a=Math.abs(a),i+=a/(o=r+a)*(s=(c=i-l)/(1-(r+a)/s)-c),l-=r/o*s),t=(c={min:l,max:i}).min,h=c.max),{extent:[t,h],fixMin:u.minFixed,fixMax:u.maxFixed}}function ax(t,e){var n=rx(t,e),i=n.extent,o=e.get("splitNumber"),r=(t instanceof K_&&(t.base=e.get("logBase")),t.type),a=e.get("interval"),r="interval"===r||"time"===r;t.setBreaksFromOption(void e.get("breaks",!0)),t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:r?e.get("minInterval"):null,maxInterval:r?e.get("maxInterval"):null}),null!=a&&t.setInterval&&t.setInterval(a)}function sx(i){var n,o,r=i.getLabelModel().get("formatter");return"time"===i.type?(n=xd(r),function(t,e){return i.scale.getFormattedLabel(t,e,n)}):F(r)?function(t){t=i.scale.getLabel(t);return r.replace("{value}",null!=t?t:"")}:z(r)?"category"===i.type?function(t,e){return r(lx(i,t),t.value-i.scale.getExtent()[0],null)}:(o=ud,function(t,e){var n=null;return o&&(n=o.makeAxisLabelFormatterParamBreak(n,t.break)),r(lx(i,t),e,n)}):function(t){return i.scale.getLabel(t)}}function lx(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function ux(t){t=t.get("interval");return null==t?"auto":t}function hx(t){return"category"===t.type&&0===ux(t.getLabelModel())}function cx(e,n,t){var i,o;n&&Z((o={},Z((i=n).mapDimensionsAll(t),function(t){o[l_(i,t)]=!0}),X(o)),function(t){t=n.getApproximateExtent(t);t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])})}function px(t){return"middle"===t||"center"===t}fx.prototype.getNeedCrossZero=function(){return!this.option.scale},fx.prototype.getCoordSysModel=function(){};var dx=fx;function fx(){}var Xp=Object.freeze({__proto__:null,createDimensions:function(t,e){return n_(t,e).dimensions},createList:function(t){return u_(null,t)},createScale:function(t,e){var n=e;return(e=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new C_({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new F_({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(__.getClass(e)||A_)}}(n=e instanceof $p?n:new $p(e))).setExtent(t[0],t[1]),ax(e,n),e},createSymbol:A0,createTextStyle:function(t,e){return kp(t,null,null,"normal"!==(e=e||{}).state)},dataStack:{isDimensionStacked:s_,enableDataStack:a_,getStackedDimension:l_},enableHoverEmphasis:Nu,getECData:W,getLayoutRect:sf,mixinAxisModelCommonMethods:function(t){ut(t,dx)}}),gx=[],yx={registerPreprocessor:p1,registerProcessor:d1,registerPostInit:f1,registerPostUpdate:g1,registerUpdateLifecycle:y1,registerAction:m1,registerCoordinateSystem:v1,registerLayout:_1,registerVisual:x1,registerTransform:T1,registerLoading:S1,registerMap:M1,registerImpl:function(t,e){hv[t]=e},PRIORITY:S0,ComponentModel:g,ComponentView:Sm,SeriesModel:gm,ChartView:km,registerComponentModel:function(t){g.registerClass(t)},registerComponentView:function(t){Sm.registerClass(t)},registerSeriesModel:function(t){gm.registerClass(t)},registerChartView:function(t){km.registerClass(t)},registerCustomSeries:function(t,e){},registerSubTypeDefaulter:function(t,e){g.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Lr(t,e)}};function mx(t){V(t)?Z(t,function(t){mx(t)}):0<=U(gx,t)||(gx.push(t),(t=z(t)?{install:t}:t).install(yx))}var vx=1e-8;function _x(t,e){return Math.abs(t-e)<vx}function xx(t,e,n){var i=0,o=t[0];if(!o)return!1;for(var r=1;r<t.length;r++){var a=t[r];i+=Qs(o[0],o[1],a[0],a[1],e,n),o=a}var s=t[0];return _x(o[0],s[0])&&_x(o[1],s[1])||(i+=Qs(o[0],o[1],s[0],s[1],e,n)),0!==i}var bx=[];function Sx(t,e){for(var n=0;n<t.length;n++)ne(t[n],t[n],e)}function Mx(t,e,n,i){for(var o=0;o<t.length;o++){var r=t[o];(r=i?i.project(r):r)&&isFinite(r[0])&&isFinite(r[1])&&(ie(e,e,r),oe(n,n,r))}}Tx.prototype.setCenter=function(t){this._center=t},Tx.prototype.getCenter=function(){return this._center||(this._center=this.calcCenter())};M0=Tx;function Tx(t){this.name=t}var Cx,Ix,kx=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},Dx=function(t){this.type="linestring",this.points=t},Ax=(a(Px,Cx=M0),Px.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,i=0;i<e.length;i++){var o=e[i],r=o.exterior,r=r&&r.length;n<r&&(t=o,n=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]},Px.prototype.getBoundingRect=function(e){var n,i,t=this._rect;return t&&!e||(n=[1/0,1/0],i=[-1/0,-1/0],Z(this.geometries,function(t){"polygon"===t.type?Mx(t.exterior,n,i,e):Z(t.points,function(t){Mx(t,n,i,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),t=new q(n[0],n[1],i[0]-n[0],i[1]-n[1]),e)||(this._rect=t),t},Px.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(e.contain(t[0],t[1]))t:for(var i=0,o=n.length;i<o;i++){var r=n[i];if("polygon"===r.type){var a=r.exterior,s=r.interiors;if(xx(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(xx(s[l],t[0],t[1]))continue t;return!0}}}return!1},Px.prototype.transformTo=function(t,e,n,i){for(var o=this.getBoundingRect(),r=o.width/o.height,r=(n?i=i||n/r:n=r*i,new q(t,e,n,i)),a=o.calculateTransform(r),s=this.geometries,l=0;l<s.length;l++){var u=s[l];"polygon"===u.type?(Sx(u.exterior,a),Z(u.interiors,function(t){Sx(t,a)})):Z(u.points,function(t){Sx(t,a)})}(o=this._rect).copy(r),this._center=[o.x+o.width/2,o.y+o.height/2]},Px.prototype.cloneShallow=function(t){t=new Px(t=null==t?this.name:t,this.geometries,this._center);return t._rect=this._rect,t.transformTo=null,t},Px);function Px(t,e,n){t=Cx.call(this,t)||this;return t.type="geoJSON",t.geometries=e,t._center=n&&[n[0],n[1]],t}function Lx(t,e){t=Ix.call(this,t)||this;return t.type="geoSVG",t._elOnlyForCalculate=e,t}function Ox(t,e,n){for(var i=0;i<t.length;i++)t[i]=Rx(t[i],e[i],n)}function Rx(t,e,n){for(var i=[],o=e[0],r=e[1],a=0;a<t.length;a+=2){var s=(s=t.charCodeAt(a)-64)>>1^-(1&s),l=(l=t.charCodeAt(a+1)-64)>>1^-(1&l);i.push([(o=s+=o)/n,(r=l+=r)/n])}return i}function zx(t,r){var e,n,o;return E(pt((t=(e=t).UTF8Encoding?(null==(o=(n=e).UTF8Scale)&&(o=1024),Z(n.features,function(t){var e=t.geometry,n=e.encodeOffsets,i=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=Rx(i,n,o);break;case"Polygon":case"MultiLineString":Ox(i,n,o);break;case"MultiPolygon":Z(i,function(t,e){return Ox(t,n[e],o)})}}),n.UTF8Encoding=!1,n):e).features,function(t){return t.geometry&&t.properties&&0<t.geometry.coordinates.length}),function(t){var e=t.properties,n=t.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new kx(o[0],o.slice(1)));break;case"MultiPolygon":Z(n.coordinates,function(t){t[0]&&i.push(new kx(t[0],t.slice(1)))});break;case"LineString":i.push(new Dx([n.coordinates]));break;case"MultiLineString":i.push(new Dx(n.coordinates))}t=new Ax(e[r||"name"],i,e.cp);return t.properties=e,t})}a(Lx,Ix=M0),Lx.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),e=[e.x+e.width/2,e.y+e.height/2],n=Ne(bx),i=t;i&&!i.isGeoSVGGraphicRoot;)Ee(n,i.getLocalTransform(),n),i=i.parent;return We(n,n),ne(e,e,n),e};var T0=Object.freeze({__proto__:null,MAX_SAFE_INTEGER:9007199254740991,asc:Gr,getPercentWithPrecision:function(t,e,n){return t[e]&&function(t,e){var n=ct(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];var i=Math.pow(10,e),e=E(t,function(t){return(isNaN(t)?0:t)/n*i*100}),o=100*i,r=E(e,function(t){return Math.floor(t)}),a=ct(r,function(t,e){return t+e},0),s=E(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 E(r,function(t){return t/i})}(t,n)[e]||0},getPixelPrecision:Xr,getPrecision:Ur,getPrecisionSafe:Zr,isNumeric:na,isRadianAroundZero:qr,linearMap:Fr,nice:Jr,numericToNumber:ea,parseDate:Kr,parsePercent:Hr,quantile:function(t,e){var e=(t.length-1)*e+1,n=Math.floor(e),i=+t[n-1];return(e=e-n)?i+e*(t[n]-i):i},quantity:$r,quantityExponent:Qr,reformIntervals:ta,remRadian:Yr,round:Wr}),ep=Object.freeze({__proto__:null,format:Sd,parse:Kr,roundTime:Td}),Fa=Object.freeze({__proto__:null,Arc:sc,BezierCurve:ic,BoundingRect:q,Circle:ph,CompoundPath:hc,Ellipse:yh,Group:Mr,Image:_l,IncrementalDisplayable:Pc,Line:$h,LinearGradient:gc,Polygon:Wh,Polyline:Xh,RadialGradient:pc,Rect:kl,Ring:Bh,Sector:Oh,Text:Rl,clipPointsByRect:ap,clipRectByRect:sp,createIcon:lp,extendPath:Xc,extendShape:Uc,getShapeClass:qc,getTransform:np,initProps:Bc,makeImage:Kc,makePath:jc,mergePath:Qc,registerShape:Yc,resizePath:Jc,updateProps:Nc}),qp=Object.freeze({__proto__:null,addCommas:Vd,capitalFirst:function(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)},encodeHTML:xe,formatTime:function(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=(e=Kr(e))[(n=n?"getUTC":"get")+"FullYear"](),o=e[n+"Month"]()+1,r=e[n+"Date"](),a=e[n+"Hours"](),s=e[n+"Minutes"](),l=e[n+"Seconds"](),e=e[n+"Milliseconds"]();return t=t.replace("MM",bd(o,2)).replace("M",o).replace("yyyy",i).replace("yy",bd(i%100+"",2)).replace("dd",bd(r,2)).replace("d",r).replace("hh",bd(a,2)).replace("h",a).replace("mm",bd(s,2)).replace("m",s).replace("ss",bd(l,2)).replace("s",l).replace("SSS",bd(e,3))},formatTpl:Zd,getTextRect:function(t,e,n,i,o,r,a,s){return new Rl({style:{text:t,font:e,align:n,verticalAlign:i,padding:o,rich:r,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:Xd,normalizeCssArray:Hd,toCamelCase:Fd,truncateText:function(t,e,n,i,o){var r={};return Ya(r,t,e,n,i,o),r.text}}),Up=Object.freeze({__proto__:null,bind:M,clone:S,curry:T,defaults:B,each:Z,extend:G,filter:pt,indexOf:U,inherits:lt,isArray:V,isFunction:z,isObject:N,isString:F,map:E,merge:d,reduce:ct}),Nx=i(),Bx=i(),Ex={estimate:1,determine:2};function Vx(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function Fx(e,t){t=E(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 Hx(n,t){var i,e,o,r,a,s=n.getLabelModel().get("customValues");return s?(i=sx(n),e=n.scale.getExtent(),{labels:E(pt(Fx(n,s),function(t){return t>=e[0]&&t<=e[1]}),function(t){var e={value:t};return{formattedLabel:i(e),rawLabel:n.scale.getLabel(e),tickValue:t,time:void 0,break:void 0}})}):"category"===n.type?(s=t,a=(t=n).getLabelModel(),s=Gx(t,a,s),!a.get("show")||t.scale.isBlank()?{labels:[]}:s):(a=(o=n).scale.getTicks(),r=sx(o),{labels:E(a,function(t,e){return{formattedLabel:r(t,e),rawLabel:o.scale.getLabel(t),tickValue:t.value,time:t.time,break:t.break}})})}function Wx(t,e,n){var i,o,r,a,s,l,u=t.getTickModel().get("customValues");return u?(i=t.scale.getExtent(),{ticks:pt(Fx(t,u),function(t){return t>=i[0]&&t<=i[1]})}):"category"===t.type?(u=e,a=Ux(e=t),s=ux(u),(l=Yx(a,s))||(u.get("show")&&!e.scale.isBlank()||(o=[]),o=z(s)?Qx(e,s,!0):"auto"===s?(l=Gx(e,e.getLabelModel(),Vx(Ex.determine)),r=l.labelCategoryInterval,E(l.labels,function(t){return t.tickValue})):$x(e,r=s,!0),qx(a,s,{ticks:o,tickCategoryInterval:r}))):{ticks:E(t.scale.getTicks(n),function(t){return t.value})}}function Gx(t,e,n){var i,o=Zx(t),r=ux(e),e=n.kind===Ex.estimate;if(!e){var a=Yx(o,r);if(a)return a}var s={labels:z(r)?Qx(t,r):$x(t,i="auto"===r?function(t,e){{var n;if(e.kind===Ex.estimate)return n=t.calculateCategoryInterval(e),e.out.noPxChangeTryDetermine.push(function(){return Bx(t).autoInterval=n,!0}),n}var i=Bx(t).autoInterval;return null!=i?i:Bx(t).autoInterval=t.calculateCategoryInterval(e)}(t,n):r),labelCategoryInterval:i};return e?n.out.noPxChangeTryDetermine.push(function(){return qx(o,r,s),!0}):qx(o,r,s),s}var Ux=Xx("axisTick"),Zx=Xx("axisLabel");function Xx(e){return function(t){return Bx(t)[e]||(Bx(t)[e]={list:[]})}}function Yx(t,e){for(var n=0;n<t.list.length;n++)if(t.list[n].key===e)return t.list[n].value}function qx(t,e,n){return t.list.push({key:e,value:n}),n}function jx(t,e,n){return null==Kx(t,e,n)}function Kx(t,e,n){var i=Nx(t.model),t=t.getExtent(),o=i.lastAutoInterval,r=i.lastTickCount;if(null!=o&&null!=r&&Math.abs(o-e)<=1&&Math.abs(r-n)<=1&&e<o&&i.axisExtent0===t[0]&&i.axisExtent1===t[1])return o;i.lastTickCount=n,i.lastAutoInterval=e,i.axisExtent0=t[0],i.axisExtent1=t[1]}function $x(t,e,n){for(var i=sx(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)),hx(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(n?t:{formattedLabel:i(e),rawLabel:o.getLabel(e),tickValue:t,time:void 0,break:void 0})}return a&&h-l!==r[1]&&c(r[1]),s}function Qx(t,i,o){var r=t.scale,a=sx(t),s=[];return Z(r.getTicks(),function(t){var e=r.getLabel(t),n=t.value;i(t.value,e)&&s.push(o?n:{formattedLabel:a(t),rawLabel:e,tickValue:n,time:void 0,break:void 0})}),s}var Jx=[0,1],yd=(tb.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),e=Math.max(e[0],e[1]);return n<=t&&t<=e},tb.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},tb.prototype.getExtent=function(){return this._extent.slice()},tb.prototype.getPixelPrecision=function(t){return Xr(t||this.scale.getExtent(),this._extent)},tb.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},tb.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(i.parse(t)),this.onBand&&"ordinal"===i.type&&eb(n=n.slice(),i.count()),Fr(t,Jx,n,e)},tb.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale,i=(this.onBand&&"ordinal"===i.type&&eb(n=n.slice(),i.count()),Fr(t,n,Jx,e));return this.scale.scale(i)},tb.prototype.pointToData=function(t,e){},tb.prototype.getTicksCoords=function(t){var e,n,i,o,r,a,s,l=(t=t||{}).tickModel||this.getTickModel(),u=E(Wx(this,l,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}).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=Wr(t),e=Wr(e),a?e<t:t<e}return e=this,n=u,l=l,t=t.clamp,s=n.length,e.onBand&&!l&&s&&(l=e.getExtent(),1===s?(n[0].coord=l[0],n[0].onBand=!0,i=n[1]={coord:l[1],tickValue:n[0].tickValue,onBand:!0}):(r=n[s-1].tickValue-n[0].tickValue,o=(n[s-1].coord-n[0].coord)/r,Z(n,function(t){t.coord-=o/2,t.onBand=!0}),e=1+(r=e.scale.getExtent())[1]-n[s-1].tickValue,i={coord:n[s-1].coord+o*e,tickValue:r[1]+1,onBand:!0},n.push(i)),a=l[0]>l[1],h(n[0].coord,l[0])&&(t?n[0].coord=l[0]:n.shift()),t&&h(l[0],n[0].coord)&&n.unshift({coord:l[0],onBand:!0}),h(l[1],i.coord)&&(t?i.coord=l[1]:n.pop()),t)&&h(i.coord,l[1])&&n.push({coord:l[1],onBand:!0}),u},tb.prototype.getMinorTicksCoords=function(){var t;return"ordinal"===this.scale.type?[]:(t=this.model.getModel("minorTick").get("splitNumber"),E(this.scale.getMinorTicks(t=0<t&&t<100?t:5),function(t){return E(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this))},tb.prototype.getViewLabels=function(t){return Hx(this,t=t||Vx(Ex.determine)).labels},tb.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},tb.prototype.getTickModel=function(){return this.model.getModel("axisTick")},tb.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},tb.prototype.calculateCategoryInterval=function(t){t=t||Vx(Ex.determine);var e=this,n=t.kind,i=(s=(r=e).getLabelModel(),{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:s.get("rotate")||0,font:s.getFont()}),o=sx(e),r=(i.axisRotate-i.labelRotate)/180*Math.PI,a=(s=e.scale).getExtent(),s=s.count();if(a[1]-a[0]<1)return 0;for(var l=1,u=(40<s&&(l=Math.max(1,Math.floor(s/40))),a[0]),h=e.dataToCoord(u+1)-e.dataToCoord(u),c=Math.abs(h*Math.cos(r)),h=Math.abs(h*Math.sin(r)),p=0,d=0;u<=a[1];u+=l)var f=1.3*(g=rr(o({value:u}),i.font,"center","top")).width,g=1.3*g.height,p=Math.max(p,f,7),d=Math.max(d,g,7);var r=p/c,c=d/h,h=(isNaN(r)&&(r=1/0),isNaN(c)&&(c=1/0),Math.max(0,Math.floor(Math.min(r,c))));return n===Ex.estimate?(t.out.noPxChangeTryDetermine.push(M(jx,null,e,h,s)),h):null!=(r=Kx(e,h,s))?r:h},tb);function tb(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}function eb(t,e){e=(t[1]-t[0])/e/2;t[0]+=e,t[1]-=e}var nb=2*Math.PI,ib=Ys.CMD,ob=["top","right","bottom","left"];function rb(t,e,n,i,o,r,a,s){var l=o-t,u=r-e,n=n-t,i=i-e,h=Math.sqrt(n*n+i*i),l=(l*(n/=h)+u*(i/=h))/h,u=(s&&(l=Math.min(Math.max(l,0),1)),a[0]=t+(l*=h)*n),s=a[1]=e+l*i;return Math.sqrt((u-o)*(u-o)+(s-r)*(s-r))}function ab(t,e,n,i,o,r,a){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i);n=t+n,i=e+i,t=a[0]=Math.min(Math.max(o,t),n),n=a[1]=Math.min(Math.max(r,e),i);return Math.sqrt((t-o)*(t-o)+(n-r)*(n-r))}var sb=[];function lb(t,e,n){for(var i,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 b=m[x++],w=(1===x&&(f=p=m[x],g=d=m[x+1]),y);switch(b){case ib.M:p=f=m[x++],d=g=m[x++];break;case ib.L:w=rb(p,d,m[x],m[x+1],v,_,sb,!0),p=m[x++],d=m[x++];break;case ib.C:w=ei(p,d,m[x++],m[x++],m[x++],m[x++],m[x],m[x+1],v,_,sb),p=m[x++],d=m[x++];break;case ib.Q:w=ai(p,d,m[x++],m[x++],m[x],m[x+1],v,_,sb),p=m[x++],d=m[x++];break;case ib.A:var S=m[x++],M=m[x++],T=m[x++],C=m[x++],I=m[x++],k=m[x++],D=(x+=1,!!(1-m[x++])),A=Math.cos(I)*T+S,P=Math.sin(I)*C+M;x<=1&&(f=A,g=P),P=(A=I)+k,D=D,a=(v-S)*(r=C)/T+S,s=_,l=sb,c=h=u=void 0,a-=i=S,s-=o=M,u=Math.sqrt(a*a+s*s),h=(a/=u)*r+i,c=(s/=u)*r+o,w=Math.abs(A-P)%nb<1e-4||((P=D?(D=A,A=Ks(P),Ks(D)):(A=Ks(A),Ks(P)))<A&&(P+=nb),(D=Math.atan2(s,a))<0&&(D+=nb),A<=D&&D<=P)||A<=D+nb&&D+nb<=P?(l[0]=h,l[1]=c,u-r):(c=((D=r*Math.cos(A)+i)-a)*(D-a)+((h=r*Math.sin(A)+o)-s)*(h-s))<(i=((u=r*Math.cos(P)+i)-a)*(u-a)+((A=r*Math.sin(P)+o)-s)*(A-s))?(l[0]=D,l[1]=h,Math.sqrt(c)):(l[0]=u,l[1]=A,Math.sqrt(i)),p=Math.cos(I+k)*T+S,d=Math.sin(I+k)*C+M;break;case ib.R:w=ab(f=p=m[x++],g=d=m[x++],m[x++],m[x++],v,_,sb);break;case ib.Z:w=rb(p,d,f,g,v,_,sb,!0),p=f,d=g}w<y&&(y=w,n.set(sb[0],sb[1]))}return y}var ub=new C,hb=new C,cb=new C,pb=new C,db=new C;function fb(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var o=t.textGuideLineConfig||{},r=[[0,0],[0,0],[0,0]],a=o.candidates||ob,s=i.getBoundingRect().clone(),l=(s.applyTransform(i.getComputedTransform()),1/0),u=o.anchor,h=t.getComputedTransform(),c=h&&We([],h),p=e.get("length2")||0;u&&cb.copy(u);for(var d,f,g=0;g<a.length;g++){var y=a[g],m=(S=w=b=x=_=v=m=void 0,y),v=0,_=s,x=ub,b=pb,w=_.width,S=_.height;switch(m){case"top":x.set(_.x+w/2,_.y-v),b.set(0,-1);break;case"bottom":x.set(_.x+w/2,_.y+S+v),b.set(0,1);break;case"left":x.set(_.x-v,_.y+S/2),b.set(-1,0);break;case"right":x.set(_.x+w+v,_.y+S/2),b.set(1,0)}C.scaleAndAdd(hb,ub,pb,p),hb.transform(c);y=t.getBoundingRect(),y=u?u.distance(hb):t instanceof cl?lb(hb,t.path,cb):(m=cb,d=ab((d=y).x,y.y,y.width,y.height,hb.x,hb.y,sb),m.set(sb[0],sb[1]),d);y<l&&(l=y,hb.transform(h),cb.transform(h),cb.toArray(r[0]),hb.toArray(r[1]),ub.toArray(r[2]))}i=r,(o=e.get("minTurnAngle"))<=180&&0<o&&(o=o/180*Math.PI,ub.fromArray(i[0]),hb.fromArray(i[1]),cb.fromArray(i[2]),C.sub(pb,ub,hb),C.sub(db,cb,hb),e=pb.len(),f=db.len(),e<.001||f<.001||(pb.scale(1/e),db.scale(1/f),e=pb.dot(db),Math.cos(o)<e&&(f=rb(hb.x,hb.y,cb.x,cb.y,ub.x,ub.y,gb,!1),yb.fromArray(gb),yb.scaleAndAdd(db,f/Math.tan(Math.PI-o)),e=cb.x!==hb.x?(yb.x-hb.x)/(cb.x-hb.x):(yb.y-hb.y)/(cb.y-hb.y),isNaN(e)||(e<0?C.copy(yb,hb):1<e&&C.copy(yb,cb),yb.toArray(i[1]))))),n.setShape({points:r})}}}var gb=[],yb=new C;function mb(t,e,n,i){var o="normal"===n,n=o?t:t.ensureState(n),e=(n.ignore=e,i.get("smooth")),e=(e&&!0===e&&(e=.3),n.shape=n.shape||{},0<e&&(n.shape.smooth=e),i.getModel("lineStyle").getLineStyle());o?t.useStyle(e):n.style=e}function vb(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),0<n&&3<=i.length){var e=Qt(i[0],i[1]),o=Qt(i[1],i[2]);e&&o?(n=Math.min(e,o)*n,e=ee([],i[1],i[0],n/e),n=ee([],i[1],i[2],n/o),o=ee([],e,n,.5),t.bezierCurveTo(e[0],e[1],e[0],e[1],o[0],o[1]),t.bezierCurveTo(n[0],n[1],n[0],n[1],i[2][0],i[2][1])):(t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]))}else for(var r=1;r<i.length;r++)t.lineTo(i[r][0],i[r][1])}var _b=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],xb=2,bb=1|xb;function wb(t,e,n){n=n||bb,e?t.dirty|=n:t.dirty&=~n}function Sb(t,e){return e=e||bb,null==t.dirty||t.dirty&e}function Mb(t){if(t){if(Sb(t)){var e=t,n=t.label,i=t,o=n.getComputedTransform(),r=(e.transform=_p(e.transform,o),e.localRect=vp(e.localRect,n.getBoundingRect())),a=n.style,s=a.margin,l=i&&i.marginForce,u=i&&i.minMarginForce,i=i&&i.marginDefault,h=a.__marginType;null==h&&i&&(s=i,h=Bp.textMargin);for(var c=0;c<4;c++)Tb[c]=h===Bp.minMargin&&u&&null!=u[c]?u[c]:l&&null!=l[c]?l[c]:s?s[c]:0;h===Bp.textMargin&&cp(r,Tb,!1,!1),a=e.rect=vp(e.rect,r),o&&a.applyTransform(o),h===Bp.minMargin&&cp(a,Tb,!1,!1),e.axisAligned=mp(o),(e.label=e.label||{}).ignore=n.ignore,wb(e,!1),wb(e,!0,xb)}return t}}var Tb=[0,0,0,0];function Cb(t,e){for(var n=0;n<_b.length;n++){var i=_b[n];null==t[i]&&(t[i]=e[i])}return Mb(t)}function Ib(t){var e=t.obb;return e&&!Sb(t,xb)||(t.obb=e=e||new Ic,e.fromBoundingRect(t.localRect,t.transform),wb(t,!1,xb)),e}function kb(s,t,e,n,i){var l=s.length,u=Wc[t],h=Gc[t];if(!(l<2)){s.sort(function(t,e){return t.rect[u]-e.rect[u]});for(var o=0,r=0,a=0;a<l;a++){var c,p=s[a],d=p.rect;(c=d[u]-o)<0&&(d[u]-=c,p.label[u]-=c,0),r+=Math.max(-c,0),o=d[u]+d[h]}0<r&&i&&x(-r/l,0,l);var f,g,y=s[0],m=s[l-1];v(),f<0&&b(-f,.8),g<0&&b(g,.8),v(),_(f,g,1),_(g,f,-1),v(),f<0&&w(-f),g<0&&w(g)}function v(){f=y.rect[u]-e,g=n-m.rect[u]-m.rect[h]}function _(t,e,n){t<0&&(0<(e=Math.min(e,-t))?(x(e*n,0,l),(e=e+t)<0&&b(-e*n,1)):b(-t*n,1))}function x(t,e,n){0!==t&&0;for(var i=e;i<n;i++){var o=s[i];o.rect[u]+=t,o.label[u]+=t}}function b(t,e){for(var n=[],i=0,o=1;o<l;o++){var r=s[o-1].rect,r=Math.max(s[o].rect[u]-r[u]-r[h],0);n.push(r),i+=r}if(i){var a=Math.min(Math.abs(t)/i,e);if(0<t)for(o=0;o<l-1;o++)x(n[o]*a,0,o+1);else for(o=l-1;0<o;o--)x(-(n[o-1]*a),o,l)}}function w(t){for(var e=t<0?-1:1,n=(t=Math.abs(t),Math.ceil(t/(l-1))),i=0;i<l-1;i++)if(0<e?x(n,0,i+1):x(-n,l-i-1,l),(t-=n)<=0)return}}function Db(t){var e=[];function n(t){var e;t.ignore||null==(e=t.ensureState("emphasis")).ignore&&(e.ignore=!1),t.ignore=!0}t.sort(function(t,e){return(e.suggestIgnore?1:0)-(t.suggestIgnore?1:0)||e.priority-t.priority});for(var i=0;i<t.length;i++){var o=Mb(t[i]);if(!o.label.ignore){for(var r=o.label,a=o.labelLine,s=!1,l=0;l<e.length;l++)if(Ab(o,e[l],null,{touchThreshold:.05})){s=!0;break}s?(n(r),a&&n(a)):e.push(o)}}}function Ab(t,e,n,i){return t&&e&&!(t.label&&t.label.ignore||e.label&&e.label.ignore)&&t.rect.intersect(e.rect,n,i)&&(t.axisAligned&&e.axisAligned||Ib(t).intersect(Ib(e),n,i))}function Pb(t,e){var n=t.label,e=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:function(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}(e&&e.shape.points)}}var Lb=["align","verticalAlign","width","height","fontSize"],Ob=new jo,Rb=i(),zb=i();function Nb(t,e,n){for(var i=0;i<n.length;i++){var o=n[i];null!=e[o]&&(t[o]=e[o])}}var Bb=["x","y","rotation"],Eb=(Vb.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},Vb.prototype._addLabel=function(t,e,n,i,o){var r,a=i.style,s=i.__hostTarget.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain(),l=(q.applyTransform(u,u,l),l?Ob.setLocalTransform(l):(Ob.x=Ob.y=Ob.rotation=Ob.originX=Ob.originY=0,Ob.scaleX=Ob.scaleY=1),Ob.rotation=Ks(Ob.rotation),i.__hostTarget),h=(l&&(r=l.getBoundingRect().plain(),h=l.getComputedTransform(),q.applyTransform(r,r,h)),r&&l.getTextGuideLine());this._labelList.push({label:i,labelLine:h,seriesModel:n,dataIndex:t,dataType:e,layoutOptionOrCb:o,layoutOption:null,rect:u,hostRect:r,priority:r?r.width*r.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:h&&h.ignore,x:Ob.x,y:Ob.y,scaleX:Ob.scaleX,scaleY:Ob.scaleY,rotation:Ob.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},Vb.prototype.addLabelsOfSeries=function(t){var n=this,i=(this._chartViewList.push(t),t.__model),o=i.get("labelLayout");(z(o)||X(o).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var e=t.getTextContent(),t=W(t);e&&!e.disableLabelLayout&&n._addLabel(t.dataIndex,t.dataType,i,e,o)})},Vb.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],r=o.label,a=r.__hostTarget,s=o.defaultAttr,l=void 0,l=z(o.layoutOptionOrCb)?o.layoutOptionOrCb(Pb(o,a)):o.layoutOptionOrCb,u=(o.layoutOption=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=Hr(l.x,e),r.setStyle("x",0),h=!0):(r.x=s.x,r.setStyle("x",s.style.x)),null!=l.y?(r.y=Hr(l.y,n),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),Rb(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<Lb.length;p++){var d=Lb[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(){fb(t,e)}}(a,c.getModel("labelLine"))))):(r.off("drag"),r.cursor=s.cursor)}},Vb.prototype.layout=function(t){for(var e=t.getWidth(),t=t.getHeight(),n=[],i=(Z(this._labelList,function(t){t.defaultAttr.ignore||n.push(Cb({},t))}),pt(n,function(t){return"shiftX"===t.layoutOption.moveOverlap})),o=pt(n,function(t){return"shiftY"===t.layoutOption.moveOverlap}),i=(kb(i,0,0,e),kb(o,1,0,t),pt(n,function(t){return t.layoutOption.hideOverlap})),r=i,a=0;a<r.length;a++){var s=r[a],l=s.defaultAttr,u=s.labelLine;s.label.attr("ignore",l.ignore),u&&u.attr("ignore",l.labelGuideIgnore)}Db(i)},Vb.prototype.processLabelsOverall=function(){var a=this;Z(this._chartViewList,function(t){var i=t.__model,o=t.ignoreLabelLineUpdate,r=i.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var e=!o,n=t.getTextContent();(e=!e&&n?Rb(n).needsUpdateLabelLine:e)&&a._updateLabelLine(t,i),r&&a._animateLabels(t,i)})})},Vb.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=W(t),o=i.dataIndex;if(n&&null!=o){var n=e.getData(i.dataType),e=n.getItemModel(o),i={},o=n.getItemVisual(o,"style"),o=(o&&(n=n.getVisual("drawType"),i.stroke=o[n]),e.getModel("labelLine")),r=t,a=function(t,e){for(var n={normal:t.getModel(e=e||"labelLine")},i=0;i<eu.length;i++){var o=eu[i];n[o]=t.getModel([o,e])}return n}(e),n=i,s=r.getTextGuideLine(),l=r.getTextContent();if(l){for(var e=a.normal,u=e.get("show"),h=l.ignore,c=0;c<nu.length;c++){var p,d=nu[c],f=a[d],g="normal"===d;f&&(p=f.get("show"),(g?h:H(l.states[d]&&l.states[d].ignore,h))||!H(p,u)?((p=g?s:s&&s.states[d])&&(p.ignore=!0),s&&mb(s,!0,d,f)):(s||(s=new Xh,r.setTextGuideLine(s),g||!h&&u||mb(s,!0,"normal",a.normal),r.stateProxy&&(s.stateProxy=r.stateProxy)),mb(s,!1,d,f)))}s&&(B(s.style,n),s.style.fill=null,n=e.get("showAbove"),(r.textGuideLineConfig=r.textGuideLineConfig||{}).showAbove=n||!1,s.buildPath=vb)}else s&&r.removeTextGuideLine();fb(t,o)}},Vb.prototype._animateLabels=function(t,e){var n,i,o,r,a,s=t.getTextContent(),l=t.getTextGuideLine();!s||!t.forceLabelAnimation&&(s.ignore||s.invisible||t.disableLabelAnimation||Ec(t))||(r=(o=Rb(s)).oldLayout,n=(i=W(t)).dataIndex,a={x:s.x,y:s.y,rotation:s.rotation},i=e.getData(i.dataType),r?(s.attr(r),(t=t.prevStates)&&(0<=U(t,"select")&&s.attr(o.oldLayoutSelect),0<=U(t,"emphasis"))&&s.attr(o.oldLayoutEmphasis),Nc(s,a,e,n)):(s.attr(a),zp(s).valueAnimation||(t=H(s.style.opacity,1),s.style.opacity=0,Bc(s,{style:{opacity:t}},e,n))),o.oldLayout=a,s.states.select&&(Nb(t=o.oldLayoutSelect={},a,Bb),Nb(t,s.states.select,Bb)),s.states.emphasis&&(Nb(t=o.oldLayoutEmphasis={},a,Bb),Nb(t,s.states.emphasis,Bb)),Np(s,n,i,e,e)),!l||l.ignore||l.invisible||(r=(o=zb(l)).oldLayout,a={points:l.shape.points},r?(l.attr({shape:r}),Nc(l,{shape:a},e)):(l.setShape(a),l.style.strokePercent=0,Bc(l,{style:{strokePercent:1}},e)),o.oldLayout=a)},Vb);function Vb(){this._labelList=[],this._chartViewList=[]}var Fb=i();function Hb(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){(Fb(e).labelManager||(Fb(e).labelManager=new Eb)).clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=Fb(e).labelManager;n.updatedSeries.forEach(function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}function Wb(t,e,n){var i=K.createCanvas(),o=e.getWidth(),e=e.getHeight(),r=i.style;return r&&(r.position="absolute",r.left="0",r.top="0",r.width=o+"px",r.height=e+"px",i.setAttribute("data-zr-dom-id",t)),i.width=o*n,i.height=e*n,i}mx(Hb);a(Zb,Gb=ue),Zb.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},Zb.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},Zb.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},Zb.prototype.setUnpainted=function(){this.__firstTimePaint=!0},Zb.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Wb("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},Zb.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var l=[],u=this.maxRepaintRectCount,h=!1,c=new q(0,0,0,0);function o(t){if(t.isFinite()&&!t.isZero())if(0===l.length)(e=new q(0,0,0,0)).copy(t),l.push(e);else{for(var e,n=!1,i=1/0,o=0,r=0;r<l.length;++r){var a=l[r];if(a.intersect(t)){var s=new q(0,0,0,0);s.copy(a),s.union(t),l[r]=s,n=!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)<i)&&(i=a,o=r)}h&&(l[o].union(t),n=!0),n||((e=new q(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(n,i,!0,!0),(p=s.__isRendered&&(s.__dirty&Pn||!d)?s.getPrevPaintRect():null)&&o(p),r=d&&(s.__dirty&Pn||!s.__isRendered)?s.getPaintRect():null)&&o(r);for(a=this.__prevStartIndex;a<this.__prevEndIndex;++a){var s,p,d=(s=e[a])&&s.shouldBePainted(n,i,!0,!0);!s||d&&s.__zr||!s.__isRendered||(p=s.getPrevPaintRect())&&o(p)}do{for(var f=!1,a=0;a<l.length;)if(l[a].isZero())l.splice(a,1);else{for(var g=a+1;g<l.length;)l[a].intersect(l[g])?(f=!0,l[a].union(l[g]),l.splice(g,1)):g++;a++}}while(f);return this._paintRects=l},Zb.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},Zb.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,o=i.style,r=this.domBack;o&&(o.width=t+"px",o.height=e+"px"),i.width=t*n,i.height=e*n,r&&(r.width=t*n,r.height=e*n,1!==n)&&this.ctxBack.scale(n,n)},Zb.prototype.clear=function(t,r,e){var n=this.dom,a=this.ctx,i=n.width,o=n.height,s=(r=r||this.clearColor,this.motionBlur&&!t),l=this.lastFrameAlpha,u=this.dpr,h=this,c=(s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,i/u,o/u)),this.domBack);function p(t,e,n,i){var o;a.clearRect(t,e,n,i),r&&"transparent"!==r&&(o=void 0,vt(r)?(o=(r.global||r.__width===n&&r.__height===i)&&r.__canvasGradient||R0(a,r,{x:0,y:0,width:n,height:i}),r.__canvasGradient=o,r.__width=n,r.__height=i):_t(r)&&(r.scaleX=r.scaleX||u,r.scaleY=r.scaleY||u,o=U0(a,r,{dirty:function(){h.setUnpainted(),h.painter.refresh()}})),a.save(),a.fillStyle=o||r,a.fillRect(t,e,n,i),a.restore()),s&&(a.save(),a.globalAlpha=l,a.drawImage(c,t,e,n,i),a.restore())}!e||s?p(0,0,i,o):e.length&&Z(e,function(t){p(t.x*u,t.y*u,t.width*u,t.height*u)})};var Gb,Ub=Zb;function Zb(t,e,n){var i,o=Gb.call(this)||this,t=(o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,n=n||Fo,"string"==typeof t?i=Wb(t,e,n):N(t)&&(t=(i=t).id),o.id=t,(o.dom=i).style);return t&&(Et(i),i.onselectstart=function(){return!1},t.padding="0",t.margin="0",t.borderWidth="0"),o.painter=e,o.dpr=n,o}var Xb=314159;qb.prototype.getType=function(){return"canvas"},qb.prototype.isSingleCanvas=function(){return this._singleCanvas},qb.prototype.getViewportRoot=function(){return this._domRoot},qb.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},qb.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var o=0;o<i.length;o++){var r,a=i[o],a=this._layers[a];!a.__builtin__&&a.refresh&&(r=0===o?this._backgroundColor:null,a.refresh(r))}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},qb.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},qb.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,o={inHover:!0,viewWidth:this._width,viewHeight:this._height},r=0;r<e;r++){var a=t[r];a.__inHover&&(n=n||(this._hoverlayer=this.getLayer(1e5)),i||(i=n.ctx).save(),iv(i,a,o,r===e-1))}i&&i.restore()}},qb.prototype.getHoverLayer=function(){return this.getLayer(1e5)},qb.prototype.paintOne=function(t,e){nv(t,e)},qb.prototype._paintList=function(t,e,n,i){var o,r,a;this._redrawId===i&&(n=n||!1,this._updateLayerStatus(t),o=(r=this._doPaintList(t,e,n)).finished,r=r.needsRefreshHover,this._needsManuallyCompositing&&this._compositeManually(),r&&this._paintHoverList(t),o?this.eachLayer(function(t){t.afterBrush&&t.afterBrush()}):(a=this,En(function(){a._paintList(t,e,n,i)})))},qb.prototype._compositeManually=function(){var e=this.getLayer(Xb).ctx,n=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,n,i),this.eachBuiltinLayer(function(t){t.virtual&&e.drawImage(t.dom,0,0,n,i)})},qb.prototype._doPaintList=function(d,f,g){for(var y=this,m=[],v=this._opts.useDirtyRect,t=0;t<this._zlevelList.length;t++){var e=this._zlevelList[t],e=this._layers[e];e.__builtin__&&e!==this._hoverlayer&&(e.__dirty||g)&&m.push(e)}for(var _=!0,x=!1,n=function(t){function e(t){var e={inHover:!1,allClipped:!1,prevEl:null,viewWidth:y._width,viewHeight:y._height};for(i=s;i<o.__endIndex;i++){var n=d[i];if(n.__inHover&&(x=!0),y._doPaintEl(n,o,v,t,e,i===o.__endIndex-1),l)if(15<Date.now()-u)break}e.prevElClipPaths&&r.restore()}var n,i,o=m[t],r=o.ctx,a=v&&o.createRepaintRects(d,f,b._width,b._height),s=g?o.__startIndex:o.__drawIndex,l=!g&&o.incremental&&Date.now,u=l&&Date.now(),t=o.zlevel===b._zlevelList[0]?b._backgroundColor:null;o.__startIndex!==o.__endIndex&&(s!==o.__startIndex||(n=d[s]).incremental&&n.notClear&&!g)||o.clear(!1,t,a),-1===s&&(console.error("For some unknown reason. drawIndex is -1"),s=o.__startIndex);if(a)if(0===a.length)i=o.__endIndex;else for(var h=b.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=i,o.__drawIndex<o.__endIndex&&(_=!1)},b=this,i=0;i<m.length;i++)n(i);return w.wxa&&Z(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:_,needsRefreshHover:x}},qb.prototype._doPaintEl=function(t,e,n,i,o,r){e=e.ctx;n?(n=t.getPaintRect(),(!i||n&&n.intersect(i))&&(iv(e,t,o,r),t.setPrevPaintRect(n))):iv(e,t,o,r)},qb.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Xb);var n=this._layers[t];return n||((n=new Ub("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?d(n,this._layerConfig[t],!0):this._layerConfig[t-.01]&&d(n,this._layerConfig[t-.01],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},qb.prototype.insertLayer=function(t,e){var n,i=this._layers,o=this._zlevelList,r=o.length,a=this._domRoot,s=null,l=-1;if(!i[t]&&(n=e)&&(n.__builtin__||"function"==typeof n.resize&&"function"==typeof n.refresh)){if(0<r&&t>o[0]){for(l=0;l<r-1&&!(o[l]<t&&o[l+1]>t);l++);s=i[o[l]]}o.splice(l+1,0,t),(i[t]=e).virtual||(s?(n=s.dom).nextSibling?a.insertBefore(e.dom,n.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.painter||(e.painter=this)}},qb.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i];t.call(e,this._layers[o],o)}},qb.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i],r=this._layers[o];r.__builtin__&&t.call(e,r,o)}},qb.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i],r=this._layers[o];r.__builtin__||t.call(e,r,o)}},qb.prototype.getLayers=function(){return this._layers},qb.prototype._updateLayerStatus=function(t){function e(t){o&&(o.__endIndex!==t&&(o.__dirty=!0),o.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n=1;n<t.length;n++)if((s=t[n]).zlevel!==t[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}for(var i,o=null,r=0,a=0;a<t.length;a++){var s,l=(s=t[a]).zlevel,u=void 0;i!==l&&(i=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__||rt("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&Pn&&!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)})},qb.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},qb.prototype._clearLayer=function(t){t.clear()},qb.prototype.setBackgroundColor=function(t){this._backgroundColor=t,Z(this._layers,function(t){t.setUnpainted()})},qb.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?d(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];o!==t&&o!==t+.01||d(this._layers[o],n[t],!0)}}},qb.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(U(n,t),1))},qb.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot,i=(n.style.display="none",this._opts),o=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=N0(o,0,i),e=N0(o,1,i),n.style.display="",this._width!==t||e!==this._height){for(var r in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(Xb).resize(t,e)}return this},qb.prototype.clearLayer=function(t){t=this._layers[t];t&&t.clear()},qb.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},qb.prototype.getRenderedCanvas=function(t){if(this._singleCanvas&&!this._compositeManually)return this._layers[Xb].dom;var e=new Ub("image",this,(t=t||{}).pixelRatio||this.dpr),n=(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),e.ctx);if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,o=e.dom.height;this.eachLayer(function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,o):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())})}else for(var r={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];iv(n,u,r,s===l-1)}return e.dom},qb.prototype.getWidth=function(){return this._width},qb.prototype.getHeight=function(){return this._height};var Yb=qb;function qb(t,e,n,i){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=n=G({},n||{}),this.dpr=n.devicePixelRatio||Fo,this._singleCanvas=o;(this.root=t).style&&(Et(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!=n.width&&(r=n.width),null!=n.height&&(a=n.height),this.dpr=n.devicePixelRatio||1,o.width=r*this.dpr,o.height=a*this.dpr,this._width=r,this._height=a,(r=new Ub(o,this,this.dpr)).__builtin__=!0,r.initContext(),(s[Xb]=r).zlevel=Xb,e.push(Xb),this._domRoot=t):(this._width=N0(t,0,n),this._height=N0(t,1,n),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))}a($b,jb=g),$b.prototype.init=function(t,e,n){jb.prototype.init.call(this,t,e,n),this._sourceManager=new Uy(this),Xy(this)},$b.prototype.mergeOption=function(t,e){jb.prototype.mergeOption.call(this,t,e),Xy(this)},$b.prototype.optionUpdated=function(){this._sourceManager.dirty()},$b.prototype.getSourceManager=function(){return this._sourceManager},$b.type="dataset",$b.defaultOption={seriesLayoutBy:Rf};var jb,Kb=$b;function $b(){var t=null!==jb&&jb.apply(this,arguments)||this;return t.type="dataset",t}a(tw,Qb=Sm),tw.type="dataset";var Qb,Jb=tw;function tw(){var t=null!==Qb&&Qb.apply(this,arguments)||this;return t.type="dataset",t}function ew(t){t.registerComponentModel(Kb),t.registerComponentView(Jb)}mx([function(t){t.registerPainter("canvas",Yb)},ew]),mx(Hb);a(ow,nw=gm),ow.prototype.getInitialData=function(t){return u_(null,this,{useEncodeDefaulter:!0})},ow.prototype.getLegendIcon=function(t){var e=new Mr,n=A0("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1),n=(e.add(n),n.setStyle(t.lineStyle),this.getData().getVisual("symbol")),i=this.getData().getVisual("symbolRotate"),n="none"===n?"circle":n,o=.8*t.itemHeight,o=A0(n,(t.itemWidth-o)/2,(t.itemHeight-o)/2,o,o,t.itemStyle.fill),i=(e.add(o),o.setStyle(t.itemStyle),"inherit"===t.iconRotate?i:t.iconRotate||0);return o.rotation=i*Math.PI/180,o.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<n.indexOf("empty")&&(o.style.stroke=o.style.fill,o.style.fill=I.color.neutral00,o.style.lineWidth=2),e},ow.type="series.line",ow.dependencies=["grid","polar"],ow.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:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1};var nw,iw=ow;function ow(){var t=null!==nw&&nw.apply(this,arguments)||this;return t.type=ow.type,t.hasSymbolVisual=!0,t}function rw(t,e){var n,i=t.mapDimensionsAll("defaultedLabel"),o=i.length;if(1===o)return null!=(n=Qg(t,e,i[0]))?n+"":null;if(o){for(var r=[],a=0;a<i.length;a++)r.push(Qg(t,e,i[a]));return r.join(" ")}}a(lw,aw=Mr),lw.prototype._createSymbol=function(t,e,n,i,o,r){this.removeAll();r=A0(t,-1,-1,2,2,null,r);r.attr({z2:H(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),r.drift=uw,this._symbolType=t,this.add(r)},lw.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},lw.prototype.getSymbolType=function(){return this._symbolType},lw.prototype.getSymbolPath=function(){return this.childAt(0)},lw.prototype.highlight=function(){Mu(this.childAt(0))},lw.prototype.downplay=function(){Tu(this.childAt(0))},lw.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},lw.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},lw.prototype.updateData=function(t,e,n,i){this.silent=!1;var o,r,a,s=t.getItemVisual(e,"symbol")||"circle",l=t.hostModel,u=lw.getSymbolSize(t,e),h=lw.getSymbolZ2(t,e),c=s!==this._symbolType,p=i&&i.disableAnimation;c?(o=t.getItemVisual(e,"symbolKeepAspect"),this._createSymbol(s,t,e,u,h,o)):((r=this.childAt(0)).silent=!1,a={scaleX:u[0]/2,scaleY:u[1]/2},p?r.attr(a):Nc(r,a,l,e),Oc(s=r).oldStyle=s.style),this._updateCommon(t,e,u,n,i),c&&(r=this.childAt(0),p||(a={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:r.style.opacity}},r.scaleX=r.scaleY=0,r.style.opacity=0,Bc(r,a,l,e))),p&&this.childAt(0).stopAnimation("leave")},lw.prototype._updateCommon=function(e,t,n,i,o){var r,a,s,l,u,h,c,p,d=this.childAt(0),f=e.hostModel,g=(i&&(r=i.emphasisItemStyle,s=i.blurItemStyle,a=i.selectItemStyle,l=i.focus,u=i.blurScope,c=i.labelStatesModels,p=i.hoverScale,y=i.cursorStyle,h=i.emphasisDisabled),i&&!e.hasItemOption||(r=(g=(i=i&&i.itemModel?i.itemModel:e.getItemModel(t)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),a=i.getModel(["select","itemStyle"]).getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=g.get("focus"),u=g.get("blurScope"),h=g.get("disabled"),c=Ip(i),p=g.getShallow("scale"),y=i.getShallow("cursor")),e.getItemVisual(t,"symbolRotate")),i=(d.attr("rotation",(g||0)*Math.PI/180||0),L0(e.getItemVisual(t,"symbolOffset"),n)),g=(i&&(d.x=i[0],d.y=i[1]),y&&d.attr("cursor",y),e.getItemVisual(t,"style")),i=g.fill,y=(d instanceof _l?(y=d.style,d.useStyle(G({image:y.image,x:y.x,y:y.y,width:y.width,height:y.height},g))):(d.__isEmptyBrush?d.useStyle(G({},g)):d.useStyle(g),d.style.decal=null,d.setColor(i,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);Cp(d,c,{labelFetcher:f,labelDataIndex:t,defaultText:function(t){return v?e.getName(t):rw(e,t)},inheritColor:i,defaultOpacity:g.opacity}),this._sizeX=n[0]/2,this._sizeY=n[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),Bu(this,l,u,h)},lw.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},lw.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),o=W(this).dataIndex,r=n&&n.animation;this.silent=i.silent=!0,n&&n.fadeLabel?(n=i.getTextContent())&&Vc(n,{style:{opacity:0}},e,{dataIndex:o,removeOpt:r,cb:function(){i.removeTextContent()}}):i.removeTextContent(),Vc(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:o,cb:t,removeOpt:r})},lw.getSymbolSize=function(t,e){return P0(t.getItemVisual(e,"symbolSize"))},lw.getSymbolZ2=function(t,e){return t.getItemVisual(e,"z2")};var aw,sw=lw;function lw(t,e,n,i){var o=aw.call(this)||this;return o.updateData(t,e,n,i),o}function uw(t,e){this.parent.drift(t,e)}function hw(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&(!i.isIgnore||!i.isIgnore(n))&&(!i.clipShape||i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function cw(t){return(t=null==t||N(t)?t:{isIgnore:t})||{}}function pw(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:Ip(t),cursorStyle:t.get("cursor")}}fw.prototype.updateData=function(r,a){this._progressiveEls=null,a=cw(a);var s=this.group,l=r.hostModel,u=this._data,h=this._SymbolCtor,c=a.disableAnimation,p=pw(r),d={disableAnimation:c},f=a.getSymbolPoint||function(t){return r.getItemLayout(t)};u||s.removeAll(),r.diff(u).add(function(t){var e,n=f(t);hw(r,n,t,a)&&((e=new h(r,t,p,d)).setPosition(n),r.setItemGraphicEl(t,e),s.add(e))}).update(function(t,e){var n,i,e=u.getItemGraphicEl(e),o=f(t);hw(r,o,t,a)?(n=r.getItemVisual(t,"symbol")||"circle",i=e&&e.getSymbolType&&e.getSymbolType(),!e||i&&i!==n?(s.remove(e),(e=new h(r,t,p,d)).setPosition(o)):(e.updateData(r,t,p,d),i={x:o[0],y:o[1]},c?e.attr(i):Nc(e,i,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},fw.prototype.updateLayout=function(){var n=this,t=this._data;t&&t.eachItemGraphicEl(function(t,e){e=n._getSymbolPoint(e);t.setPosition(e),t.markRedraw()})},fw.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=pw(t),this._data=null,this.group.removeAll()},fw.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=cw(n);for(var o=t.start;o<t.end;o++){var r,a=e.getItemLayout(o);hw(e,a,o,n)&&((r=new this._SymbolCtor(e,o,this._seriesScope)).traverse(i),r.setPosition(a),this.group.add(r),e.setItemGraphicEl(o,r),this._progressiveEls.push(r))}},fw.prototype.eachRendered=function(t){yp(this._progressiveEls||this.group,t)},fw.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)},n.hostModel)}):e.removeAll()};var dw=fw;function fw(t){this.group=new Mr,this._SymbolCtor=t||sw}function gw(t,e,n){var i=t.getBaseAxis(),o=t.getOtherAxis(i),n=function(t,e){var n=0,t=t.scale.getExtent();"start"===e?n=t[0]:"end"===e?n=t[1]:ft(e)&&!isNaN(e)?n=e:0<t[0]?n=t[0]:t[1]<0&&(n=t[1]);return n}(o,n),i=i.dim,o=o.dim,r=e.mapDimension(o),a=e.mapDimension(i),s="x"===o||"radius"===o?1:0,t=E(t.dimensions,function(t){return e.mapDimension(t)}),l=!1,u=e.getCalculationInfo("stackResultDimension");return s_(e,t[0])&&(l=!0,t[0]=u),s_(e,t[1])&&(l=!0,t[1]=u),{dataDimsForPoint:t,valueStart:n,valueAxisDim:o,baseAxisDim:i,stacked:!!l,valueDim:r,baseDim:a,baseDataOffset:s,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function yw(t,e,n,i){var o=NaN,r=(t.stacked&&(o=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(o)&&(o=t.valueStart),t.baseDataOffset),a=[];return a[r]=n.get(t.baseDim,i),a[1-r]=o,e.dataToPoint(a)}var mw=Math.min,vw=Math.max;function _w(t,e){return isNaN(t)||isNaN(e)}function xw(t,e,n,i,o,r,a,s,l){for(var u,h,c,p,d=n,f=0;f<i;f++){var g=e[2*d],y=e[2*d+1];if(o<=d||d<0)break;if(_w(g,y)){if(l){d+=r;continue}break}if(d===n)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*_],b=e[2*_+1];x===g&&b===y&&f<i;)f++,d+=r,x=e[2*(_+=r)],b=e[2*_+1],g=e[2*d],y=e[2*d+1];var w=f+1;if(l)for(;_w(x,b)&&w<i;)w++,x=e[2*(_+=r)],b=e[2*_+1];var S,M,T,C,I,k,D,A,P,m=0,v=0,L=void 0,O=void 0;i<=w||_w(x,b)?(D=g,A=y):(m=x-u,v=b-h,S=g-u,M=x-g,T=y-h,C=b-y,k=I=void 0,O="x"===s?(D=g-(P=0<m?1:-1)*(I=Math.abs(S))*a,A=y,L=g+P*(k=Math.abs(M))*a,y):"y"===s?(A=y-(P=0<v?1:-1)*(I=Math.abs(T))*a,L=D=g,y+P*(k=Math.abs(C))*a):(I=Math.sqrt(S*S+T*T),D=g-m*a*(1-(S=(k=Math.sqrt(M*M+C*C))/(k+I))),A=y-v*a*(1-S),O=y+v*a*S,L=mw(L=g+m*a*S,vw(x,g)),O=mw(O,vw(b,y)),L=vw(L,mw(x,g)),A=y-(v=(O=vw(O,mw(b,y)))-y)*I/k,D=mw(D=g-(m=L-g)*I/k,vw(u,g)),A=mw(A,vw(h,y)),L=g+(m=g-(D=vw(D,mw(u,g))))*k/I,y+(v=y-(A=vw(A,mw(h,y))))*k/I)),t.bezierCurveTo(c,p,D,A,g,y),c=L,p=O}else t.lineTo(g,y)}u=g,h=y,d+=r}return f}var bw,ww=function(){this.smooth=0,this.smoothConstraint=!0},Sw=(a(Mw,bw=cl),Mw.prototype.getDefaultStyle=function(){return{stroke:I.color.neutral99,fill:null}},Mw.prototype.getDefaultShape=function(){return new ww},Mw.prototype.buildPath=function(t,e){var n=e.points,i=0,o=n.length/2;if(e.connectNulls){for(;0<o&&_w(n[2*o-2],n[2*o-1]);o--);for(;i<o&&_w(n[2*i],n[2*i+1]);i++);}for(;i<o;)i+=xw(t,n,i,o,o,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},Mw.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,o=this.path.data,r=Ys.CMD,a="x"===e,s=[],l=0;l<o.length;){var u=void 0,h=void 0;switch(o[l++]){case r.M:n=o[l++],i=o[l++];break;case r.L:var c,u=o[l++],h=o[l++];if((c=a?(t-n)/(u-n):(t-i)/(h-i))<=1&&0<=c)return v=a?(h-i)*c+i:(u-n)*c+n,a?[t,v]:[v,t];n=u,i=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?Qn(n,u,p,f,t,s):Qn(i,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?Kn(i,h,d,g,_):Kn(n,u,p,f,_),a?[t,v]:[v,t]}n=f,i=g}}},Mw);function Mw(t){t=bw.call(this,t)||this;return t.type="ec-polyline",t}a(Iw,Tw=ww);var Tw,Cw=Iw;function Iw(){return null!==Tw&&Tw.apply(this,arguments)||this}a(Aw,kw=cl),Aw.prototype.getDefaultShape=function(){return new Cw},Aw.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,o=0,r=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;0<r&&_w(n[2*r-2],n[2*r-1]);r--);for(;o<r&&_w(n[2*o],n[2*o+1]);o++);}for(;o<r;){var s=xw(t,n,o,r,r,1,e.smooth,a,e.connectNulls);xw(t,i,o+s-1,s,r,-1,e.stackedOnSmooth,a,e.connectNulls),o+=s+1,t.closePath()}};var kw,Dw=Aw;function Aw(t){t=kw.call(this,t)||this;return t.type="ec-polygon",t}function Pw(t,e){return t.type===e}function Lw(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return 1}}function Ow(t){for(var e=1/0,n=1/0,i=-1/0,o=-1/0,r=0;r<t.length;){var a=t[r++],s=t[r++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),o=Math.max(s,o))}return[[e,n],[i,o]]}function Rw(t,e){var t=Ow(t),n=t[0],t=t[1],e=Ow(e),i=e[0],e=e[1];return Math.max(Math.abs(n[0]-i[0]),Math.abs(n[1]-i[1]),Math.abs(t[0]-e[0]),Math.abs(t[1]-e[1]))}function zw(t){return ft(t)?t:t?.5:0}function Nw(t,e,n,i,o){var n=n.getBaseAxis(),r="x"===n.dim||"radius"===n.dim?0:1,a=[],s=0,l=[],u=[],h=[],c=[];if(o){for(s=0;s<t.length;s+=2){var p=e||t;isNaN(p[s])||isNaN(p[s+1])||c.push(t[s],t[s+1])}t=c}for(s=0;s<t.length-2;s+=2)switch(h[0]=t[s+2],h[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],a.push(u[0],u[1]),i){case"end":l[r]=h[r],l[1-r]=u[1-r],a.push(l[0],l[1]);break;case"middle":var d=[];l[r]=d[r]=(u[r]+h[r])/2,l[1-r]=u[1-r],d[1-r]=h[1-r],a.push(l[0],l[1]),a.push(d[0],d[1]);break;default:l[r]=u[r],l[1-r]=h[1-r],a.push(l[0],l[1])}return a.push(t[s++],t[s++]),a}function Bw(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var o,r=i.length-1;0<=r;r--){var a,s=t.getDimensionInfo(i[r].dimension);if("x"===(a=s&&s.coordDim)||"y"===a){o=i[r];break}}if(o){var l=e.getAxis(a),e=E(o.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),u=e.length,h=o.outerColors.slice(),n=(u&&e[0].coord>e[u-1].coord&&(e.reverse(),h.reverse()),function(t,e){var n,i,o=[],r=t.length;function a(t,e,n){var i=t.coord;return{coord:n,color:Oi((n-i)/(e.coord-i),[t.color,e.color])}}for(var s=0;s<r;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(e<u){i?o.push(a(i,l,e)):n&&o.push(a(n,l,0),a(n,l,e));break}n&&(o.push(a(n,l,0)),n=null),o.push(l),i=l}}return o}(e,"x"===a?n.getWidth():n.getHeight())),c=n.length;if(!c&&u)return e[0].coord<0?h[1]||e[u-1].color:h[0]||e[0].color;var p=n[0].coord-10,u=n[c-1].coord+10,d=u-p;if(d<.001)return"transparent";Z(n,function(t){t.offset=(t.coord-p)/d}),n.push({offset:c?n[c-1].offset:.5,color:h[1]||"transparent"}),n.unshift({offset:c?n[0].offset:.5,color:h[0]||"transparent"});e=new gc(0,0,0,0,n,!0);return e[a]=p,e[a+"2"]=u,e}}}function Ew(t,e,n){var t=t.get("showAllSymbol"),i="auto"===t;if(!t||i){var o,r,a=n.getAxesByScale("ordinal")[0];if(a)if(!i||!function(t,e){for(var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count(),o=(isNaN(i)&&(i=0),e.count()),r=Math.max(1,Math.round(o/5)),a=0;a<o;a+=r)if(1.5*sw.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return;return 1}(a,e))return o=e.mapDimension(a.dim),r={},Z(a.getViewLabels(),function(t){t=a.scale.getRawOrdinalNumber(t.tickValue);r[t]=1}),function(t){return!r.hasOwnProperty(e.get(o,t))}}}function Vw(t){for(var e,n,i=t.length/2;0<i&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}function Fw(t,e){return[t[2*e],t[2*e+1]]}function Hw(t){if(t.get(["endLabel","show"]))return 1;for(var e=0;e<eu.length;e++)if(t.get([eu[e],"endLabel","show"]))return 1}function Ww(n,i,e,t){var o,r,a,s,l,u,h,c,p,d,f,g,y,m,v,_,x;return Pw(i,"cartesian2d")?(o=t.getModel("endLabel"),r=o.get("valueAnimation"),a=t.getData(),s={lastFrameIndex:0},l=Hw(t)?function(t,e){n._endLabelOnDuring(t,e,a,s,r,o,i)}:null,u=i.getBaseAxis().isHorizontal(),c=e,p=t,d=function(){var t=n._endLabel;t&&e&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})},f=l,g=(v=(h=i).getArea()).x,y=v.y,m=v.width,v=v.height,_=p.get(["lineStyle","width"])||0,g-=_/2,y-=_/2,m+=_,v+=_,m=Math.ceil(m),g!==Math.floor(g)&&(g=Math.floor(g),m++),x=new kl({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),_=z(f)?function(t){f(t,x)}:null,Bc(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=i).getArea(),d=Wr(p.r0,1),_=Wr(p.r,1),u=new Oh({shape:{cx:Wr(y.cx,1),cy:Wr(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,Bc(u,{shape:{endAngle:p.endAngle,r:_}},g)),u)}a(Zw,Gw=km),Zw.prototype.init=function(){var t=new Mr,e=new dw;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t,this._changePolyState=M(this._changePolyState,this)},Zw.prototype.render=function(t,e,n){var i,o=t.coordinateSystem,r=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.getLayout("points")||[],h="polar"===o.type,c=this._coordSys,p=this._symbolDraw,d=this._polyline,f=this._polygon,g=this._lineGroup,e=!e.ssr&&t.get("animation"),y=!l.isEmpty(),m=l.get("origin"),v=gw(o,a,m),v=y&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),o=R_(2*i),r=0;r<i;r++){var a=yw(n,t,e,r);o[2*r]=a[0],o[2*r+1]=a[1]}return o}(o,a,v),_=t.get("showSymbol"),x=t.get("connectNulls"),b=_&&!h&&Ew(t,a,o),w=this._data,S=(w&&w.eachItemGraphicEl(function(t,e){t.__temp&&(r.remove(t),w.setItemGraphicEl(e,null))}),_||p.remove(),r.add(g),!h&&t.get("step")),M=(o&&o.getArea&&t.get("clip",!0)&&(null!=(i=o.getArea()).width?(i.x-=.1,i.y-=.1,i.width+=.2,i.height+=.2):i.r0&&(i.r0-=.5,i.r+=.5)),this._clipShapeForSymbol=i,Bw(a,o,n)||a.getVisual("style")[a.getVisual("drawType")]),c=(d&&c.type===o.type&&S===this._step?(y&&!f?f=this._newPolygon(u,v):f&&!y&&(g.remove(f),f=this._polygon=null),h||this._initOrUpdateEndLabel(t,o,Yd(M)),(c=g.getClipPath())?Bc(c,{shape:Ww(this,o,!1,t).shape},t):g.setClipPath(Ww(this,o,!0,t)),_&&p.updateData(a,{isIgnore:b,clipShape:i,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),Lw(this._stackedOnPoints,v)&&Lw(this._points,u)||(e?this._doUpdateAnimation(a,v,o,n,S,m,x):(S&&(v=v&&Nw(v,u,o,S,x),u=Nw(u,null,o,S,x)),d.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:v})))):(_&&p.updateData(a,{isIgnore:b,clipShape:i,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),e&&this._initSymbolLabelAnimation(a,o,i),S&&(v=v&&Nw(v,u,o,S,x),u=Nw(u,null,o,S,x)),d=this._newPolyline(u),y?f=this._newPolygon(u,v):f&&(g.remove(f),f=this._polygon=null),h||this._initOrUpdateEndLabel(t,o,Yd(M)),g.setClipPath(Ww(this,o,!0,t))),t.getModel("emphasis")),n=c.get("focus"),_=c.get("blurScope"),p=c.get("disabled"),b=(d.useStyle(B(s.getLineStyle(),{fill:"none",stroke:M,lineJoin:"bevel"})),Fu(d,t,"lineStyle"),0<d.style.lineWidth&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1),W(d).seriesIndex=t.seriesIndex,Bu(d,n,_,p),zw(t.get("smooth"))),e=t.get("smoothMonotone"),T=(d.setShape({smooth:b,smoothMonotone:e,connectNulls:x}),f&&(i=a.getCalculationInfo("stackedOnSeries"),y=0,f.useStyle(B(l.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),i&&(y=zw(i.get("smooth"))),f.setShape({smooth:b,stackedOnSmooth:y,smoothMonotone:e,connectNulls:x}),Fu(f,t,"areaStyle"),W(f).seriesIndex=t.seriesIndex,Bu(f,n,_,p)),this._changePolyState);a.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=T)}),this._polyline.onHoverStateChange=T,this._data=a,this._coordSys=o,this._stackedOnPoints=v,this._points=u,this._step=S,this._valueOrigin=m,t.get("triggerLineEvent")&&(this.packEventData(t,d),f)&&this.packEventData(t,f)},Zw.prototype.packEventData=function(t,e){W(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},Zw.prototype.highlight=function(t,e,n,i){var o=t.getData(),r=_a(o,i);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 sw(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 km.prototype.highlight.call(this,t,e,n,i)},Zw.prototype.downplay=function(t,e,n,i){var o,r=t.getData(),a=_a(r,i);this._changePolyState("normal"),null!=a&&0<=a?(o=r.getItemGraphicEl(a))&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay()):km.prototype.downplay.call(this,t,e,n,i)},Zw.prototype._changePolyState=function(t){var e=this._polygon;vu(this._polyline,t),e&&vu(e,t)},Zw.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new Sw({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e},Zw.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Dw({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n},Zw.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=(z(d)&&(d=d(null)),e.get("animationDelay")||0),g=z(f)?f(null):f;t.eachItemGraphicEl(function(t,e){var n,i,o,r,a,s=t;s&&(r=[t.x,t.y],a=i=n=void 0,u&&(a=c?(o=u,r=l.pointToCoord(r),h?(n=o.startAngle,i=o.endAngle,-r[1]/180*Math.PI):(n=o.r0,i=o.r,r[0])):h?(n=u.x,i=u.x+u.width,t.x):(n=u.y+u.height,i=u.y,t.y)),o=i===n?0:(a-n)/(i-n),p&&(o=1-o),r=z(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)})},Zw.prototype._initOrUpdateEndLabel=function(t,e,n){var u,i,o,r=t.getModel("endLabel");Hw(t)?(u=t.getData(),i=this._polyline,(o=u.getLayout("points"))?(this._endLabel||((this._endLabel=new Rl({z2:200})).ignoreClip=!0,i.setTextContent(this._endLabel),i.disableLabelAnimation=!0),0<=(o=Vw(o))&&(Cp(i,Ip(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:o,defaultText:function(t,e,n){if(null==n)return rw(u,t);var i=u,o=n,r=i.mapDimensionsAll("defaultedLabel");if(!V(o))return o+"";for(var a=[],s=0;s<r.length;s++){var l=i.getDimensionIndex(r[s]);0<=l&&a.push(o[l])}return a.join(" ")},enableTextSetter:!0},(n=r,o=(t=(t=e).getBaseAxis()).isHorizontal(),t=t.inverse,r=o?t?"right":"left":"center",o=o?"middle":t?"top":"bottom",{normal:{align:n.get("align")||r,verticalAlign:n.get("verticalAlign")||o}})),i.textConfig.position=null)):(i.removeTextContent(),this._endLabel=null)):this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},Zw.prototype._endLabelOnDuring=function(t,e,n,i,o,r,a){var s,l,u,h,c,p,d,f,g,y,m=this._endLabel,v=this._polyline;m&&(t<1&&null==i.originalX&&(i.originalX=m.x,i.originalY=m.y),s=n.getLayout("points"),g=(l=n.hostModel).get("connectNulls"),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,n){for(var i,o,r=t.length/2,a="x"===n?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(i<=e&&e<=o||e<=i&&o<=e){l=u;break}s=u}i=o}return{range:[s,l],t:(e-i)/(o-i)}}(s,a=a?c?e.x:e.y+e.height:c?e.x+e.width:e.y,e=c?"x":"y")).range)[1]-p[0])?(1<f&&!g?(y=Fw(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=Ia(n,u,f,g,c.t))),i.lastFrameIndex=p[0]):(y=Fw(s,v=1===t||0<i.lastFrameIndex?p[0]:0),o&&(d=l.getRawValue(v)),m.attr({x:y[0]+h,y:y[1]+r})),o)&&"function"==typeof(a=zp(m)).setLabelText&&a.setLabelText(d)},Zw.prototype._doUpdateAnimation=function(t,e,n,i,o,r,a){var s=this._polyline,l=this._polygon,u=t.hostModel,e=function(t,e,n,i,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=gw(o,e,r),y=t.getLayout("points")||[],m=e.getLayout("points")||[],v=0;v<s.length;v++){var _=s[v],x=!0,b=void 0;switch(_.cmd){case"=":var w=2*_.idx,b=2*_.idx1,S=y[w],M=y[1+w],T=m[b],C=m[b+1];(isNaN(S)||isNaN(M))&&(S=T,M=C),l.push(S,M),u.push(T,C),h.push(n[w],n[1+w]),c.push(i[b],i[b+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)]),C=(b=2*S,l.push(T[0],T[1]),u.push(m[b],m[b+1]),yw(g,o,e,S));h.push(C[0],C[1]),c.push(i[b],i[b+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 I=R_(r=l.length),k=R_(r),D=R_(r),A=R_(r),P=[],v=0;v<d.length;v++){var L=d[v],O=2*v,R=2*L;I[O]=l[R],I[1+O]=l[1+R],k[O]=u[R],k[1+O]=u[1+R],D[O]=h[R],D[1+O]=h[1+R],A[O]=c[R],A[1+O]=c[1+R],P[v]=p[L]}return{current:I,next:k,stackedOnCurrent:D,stackedOnNext:A,status:P}}(this._data,t,this._stackedOnPoints,e,this._coordSys,this._valueOrigin),h=e.current,c=e.stackedOnCurrent,p=e.next,d=e.stackedOnNext;if(o&&(c=Nw(e.stackedOnCurrent,e.current,n,o,a),h=Nw(e.current,null,n,o,a),d=Nw(e.stackedOnNext,e.next,n,o,a),p=Nw(e.next,null,n,o,a)),3e3<Rw(h,p)||l&&3e3<Rw(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,n={shape:{points:p}},g=(e.current!==h&&(n.shape.__points=e.next),s.stopAnimation(),Nc(s,n,u),l&&(l.setShape({points:h,stackedOnPoints:c}),l.stopAnimation(),Nc(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 n=g[e].el,i=2*g[e].ptIdx;n.x=t[i],n.y=t[1+i],n.markRedraw()}})}},Zw.prototype.remove=function(t){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(t,e){t.__temp&&(n.remove(t),i.setItemGraphicEl(e,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},Zw.type="line";var Gw,Uw=Zw;function Zw(){return null!==Gw&&Gw.apply(this,arguments)||this}var Xw={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},Yw=function(t){return Math.round(t.length/2)};mx(function(t){var i;t.registerChartView(Uw),t.registerSeriesModel(iw),t.registerLayout((i=!0,{seriesType:"line",plan:Tm(),reset:function(t){var h,e,c,p,d,n=t.getData(),f=t.coordinateSystem,t=t.pipelineContext,g=i||t.large;if(f)return t=E(f.dimensions,function(t){return n.mapDimension(t)}).slice(0,2),h=t.length,e=n.getCalculationInfo("stackResultDimension"),s_(n,t[0])&&(t[0]=e),s_(n,t[1])&&(t[1]=e),c=n.getStore(),p=n.getDimensionIndex(t[0]),d=n.getDimensionIndex(t[1]),h&&{progress:function(t,e){for(var n=t.end-t.start,i=g&&R_(n*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?(i[s++]=u[0],i[s++]=u[1]):e.setItemLayout(a,u.slice())}g&&e.setLayout("points",i)}}}})),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),t=t.getModel("lineStyle").getLineStyle();t&&!t.stroke&&(t.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",t)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{seriesType:"line",reset:function(t,e,n){var i,o=t.getData(),r=t.get("sampling"),a=t.coordinateSystem,s=o.count();10<s&&"cartesian2d"===a.type&&r&&(i=a.getBaseAxis(),a=a.getOtherAxis(i),i=i.getExtent(),n=n.getDevicePixelRatio(),i=Math.abs(i[1]-i[0])*(n||1),n=Math.round(s/i),isFinite(n))&&1<n&&("lttb"===r?t.setData(o.lttbDownSample(o.mapDimension(a.dim),1/n)):"minmax"===r&&t.setData(o.minmaxDownSample(o.mapDimension(a.dim),1/n)),s=void 0,F(r)?s=Xw[r]:z(r)&&(s=r),s)&&t.setData(o.downSample(o.mapDimension(a.dim),1/n,s,Yw))}})});a(Kw,qw=g),Kw.type="title",Kw.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:I.size.m,backgroundColor:I.color.transparent,borderColor:I.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:I.color.primary},subtextStyle:{fontSize:12,color:I.color.quaternary}};var qw,jw=Kw;function Kw(){var t=null!==qw&&qw.apply(this,arguments)||this;return t.type=Kw.type,t.layoutMode={type:"box",ignoreSize:!0},t}a(Jw,$w=Sm),Jw.prototype.render=function(t,e,n){var i,o,r,a,s,l,u,h,c;this.group.removeAll(),t.get("show")&&(i=this.group,u=t.getModel("textStyle"),o=t.getModel("subtextStyle"),h=t.get("textAlign"),c=H(t.get("textBaseline"),t.get("textVerticalAlign")),s=(u=new Rl({style:kp(u,{text:t.get("text"),fill:u.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),l=t.get("subtext"),o=new Rl({style:kp(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(){qd(r,"_"+t.get("target"))}),a&&o.on("click",function(){qd(a,"_"+t.get("subtarget"))}),W(u).eventData=W(o).eventData=s?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(u),l&&i.add(o),s=i.getBoundingRect(),(l=t.getBoxLayoutParams()).width=s.width,l.height=s.height,l=sf(l,hf(t,n).refContainer,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"),i.x=l.x,i.y=l.y,i.markRedraw(),u.setStyle(n={align:h,verticalAlign:c}),o.setStyle(n),s=i.getBoundingRect(),u=l.margin,(h=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),c=new kl({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}),i.add(c))},Jw.type="title";var $w,Qw=Jw;function Jw(){var t=null!==$w&&$w.apply(this,arguments)||this;return t.type=Jw.type,t}mx(function(t){t.registerComponentModel(jw),t.registerComponentView(Qw)});a(nS,tS=g),nS.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},nS.prototype.mergeOption=function(t,e){tS.prototype.mergeOption.call(this,t,e),this._updateSelector(t)},nS.prototype._updateSelector=function(t){var n=t.selector,i=this.ecModel;V(n=!0===n?t.selector=["all","inverse"]:n)&&Z(n,function(t,e){F(t)&&(t={type:t}),n[e]=d(t,(e=i,"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))})},nS.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}e||this.select(t[0].get("name"))}},nS.prototype._updateData=function(i){var o=[],r=[],t=(i.eachRawSeries(function(t){var e,n=t.name;r.push(n),t.legendVisualProvider&&(n=t.legendVisualProvider.getAllNames(),i.isSeriesFiltered(t)||(r=r.concat(n)),n.length)?o=o.concat(n):e=!0,e&&ya(t)&&o.push(t.name)}),this._availableNames=r,this.get("data")||o),e=L(),t=E(t,function(t){return(F(t)||ft(t))&&(t={name:t}),e.get(t.name)?null:(e.set(t.name,!0),new $p(t,this,this.ecModel))},this);this._data=pt(t,function(t){return!!t})},nS.prototype.getData=function(){return this._data},nS.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&Z(this._data,function(t){e[t.get("name")]=!1}),e[t]=!0},nS.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},nS.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},nS.prototype.allSelect=function(){var t=this._data,e=this.option.selected;Z(t,function(t){e[t.get("name",!0)]=!0})},nS.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;Z(t,function(t){t=t.get("name",!0);e.hasOwnProperty(t)||(e[t]=!0),e[t]=!e[t]})},nS.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&0<=U(this._availableNames,t)},nS.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},nS.type="legend.plain",nS.dependencies=["series"],nS.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:I.size.m,align:"auto",backgroundColor:I.color.transparent,borderColor:I.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:I.color.disabled,inactiveBorderColor:I.color.disabled,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:I.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:I.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:I.color.tertiary,borderWidth:1,borderColor:I.color.border},emphasis:{selectorLabel:{show:!0,color:I.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1};var tS,eS=nS;function nS(){var t=null!==tS&&tS.apply(this,arguments)||this;return t.type=nS.type,t.layoutMode={type:"box",ignoreSize:!0},t}function iS(t,e){var n=Hd(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),new kl({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}var oS,rS=T,aS=Z,sS=Mr,lS=(a(uS,oS=Sm),uS.prototype.init=function(){this.group.add(this._contentGroup=new sS),this.group.add(this._selectorGroup=new sS),this._isFirstRender=!0},uS.prototype.getContentGroup=function(){return this._contentGroup},uS.prototype.getSelectorGroup=function(){return this._selectorGroup},uS.prototype.render=function(t,e,n){var i,o,r,a,s,l=this._isFirstRender;this._isFirstRender=!1,this.resetInner(),t.get("show",!0)&&(a=t.get("align"),r=t.get("orient"),a&&"auto"!==a||(a="right"===t.get("left")&&"vertical"===r?"right":"left"),i=t.get("selector",!0),o=t.get("selectorPosition",!0),this.renderInner(a,t,e,n,i,r,o=!i||o&&"auto"!==o?o:"horizontal"===r?"end":"start"),e=hf(t,n).refContainer,s=sf(r=t.getBoxLayoutParams(),e,n=t.get("padding")),s=sf(B({width:(a=this.layoutInner(t,a,s,l,i,o)).width,height:a.height},r),e,n),this.group.x=s.x-a.x,this.group.y=s.y-a.y,this.group.markRedraw(),this.group.add(this._backgroundEl=iS(a,t)))},uS.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},uS.prototype.renderInner=function(l,u,h,c,t,e,n){var p=this.getContentGroup(),d=L(),f=u.get("selectedMode"),g=u.get("triggerEvent"),y=[];h.eachRawSeries(function(t){t.get("legendHoverLink")||y.push(t.id)}),aS(u.getData(),function(r,a){var e,t,n,i,o=this,s=r.get("name");this.newlineDisabled||""!==s&&"\n"!==s?(e=h.getSeriesByName(s)[0],d.get(s)||(e?(i=(n=e.getData()).getVisual("legendLineStyle")||{},t=n.getVisual("legendIcon"),n=n.getVisual("style"),(i=this._createItem(e,s,a,r,u,l,i,n,t,f,c)).on("click",rS(hS,s,null,c,y)).on("mouseover",rS(pS,e.name,null,c,y)).on("mouseout",rS(dS,e.name,null,c,y)),h.ssr&&i.eachChild(function(t){t=W(t);t.seriesIndex=e.seriesIndex,t.dataIndex=a,t.ssrType="legend"}),g&&i.eachChild(function(t){o.packEventData(t,u,e,a,s)}),d.set(s,!0)):h.eachRawSeries(function(e){var t,n,i,o=this;d.get(s)||e.legendVisualProvider&&(n=e.legendVisualProvider).containName(s)&&(i=n.indexOfName(s),t=n.getItemVisual(i,"style"),n=n.getItemVisual(i,"legendIcon"),(i=ki(t.fill))&&0===i[3]&&(i[3]=.2,t=G(G({},t),{fill:Ni(i,"rgba")})),(i=this._createItem(e,s,a,r,u,l,{},t,n,f,c)).on("click",rS(hS,null,s,c,y)).on("mouseover",rS(pS,null,s,c,y)).on("mouseout",rS(dS,null,s,c,y)),h.ssr&&i.eachChild(function(t){t=W(t);t.seriesIndex=e.seriesIndex,t.dataIndex=a,t.ssrType="legend"}),g&&i.eachChild(function(t){o.packEventData(t,u,e,a,s)}),d.set(s,!0))},this))):((n=new sS).newline=!0,p.add(n))},this),t&&this._createSelector(t,u,c,e,n)},uS.prototype.packEventData=function(t,e,n,i,o){e={componentType:"legend",componentIndex:e.componentIndex,dataIndex:i,value:o,seriesIndex:n.seriesIndex};W(t).eventData=e},uS.prototype._createSelector=function(t,i,o,e,n){var r=this.getSelectorGroup();aS(t,function(t){var e=t.type,n=new Rl({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){o.dispatchAction({type:"all"===e?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});r.add(n),Cp(n,{normal:i.getModel("selectorLabel"),emphasis:i.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),Nu(n)})},uS.prototype._createItem=function(t,e,n,i,o,r,a,s,l,u,h){var c=t.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),f=o.isSelected(e),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),m=i.get("icon"),a=function(t,e,n,i,o,r,a){function s(n,i){"auto"===n.lineWidth&&(n.lineWidth=0<i.lineWidth?2:0),aS(n,function(t,e){"inherit"===n[e]&&(n[e]=i[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?sv(l,a):i.decal,"inherit"===u.fill&&(u.fill=i[o]);"inherit"===u.stroke&&(u.stroke=i[t]);"inherit"===u.opacity&&(u.opacity=("fill"===o?i:n).opacity);s(u,i);l=e.getModel("lineStyle"),a=l.getLineStyle();s(a,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===a.stroke&&(a.stroke=i.fill),r||(o=e.get("inactiveBorderWidth"),n=u[t],u.lineWidth="auto"===o?0<i.lineWidth&&n?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",i,a,s,c,f,h),s=new sS,c=i.getModel("textStyle"),m=(!z(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",n=A0(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<e.indexOf("empty")&&(n.style.stroke=n.style.fill,n.style.fill=I.color.neutral00,n.style.lineWidth=2);return n}({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:""):z(t)&&(l=t(e)),f?c.getTextColor():i.get("inactiveColor")),a=(s.add(new Rl({style:kp(c,{text:l,x:m,y:d/2,fill:g,align:h,verticalAlign:"middle"},{inheritColor:g})})),new kl({shape:s.getBoundingRect(),style:{fill:"transparent"}})),y=i.getModel("tooltip");return y.get("show")&&fp({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),Nu(s),s.__legendDataIndex=n,s},uS.prototype.layoutInner=function(t,e,n,i,o,r){var a,s,l,u,h,c=this.getContentGroup(),p=this.getSelectorGroup(),n=(af(t.get("orient"),c,t.get("itemGap"),n.width,n.height),c.getBoundingRect()),d=[-n.x,-n.y];return p.markRedraw(),c.markRedraw(),o?(af("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]+=n[l]+s:d[t]+=o[l]+s,a[1-t]+=n[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]=n[l]+s+o[l],r[u]=Math.max(n[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())},uS.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},uS.type="legend.plain",uS);function uS(){var t=null!==oS&&oS.apply(this,arguments)||this;return t.type=uS.type,t.newlineDisabled=!1,t}function hS(t,e,n,i){dS(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),pS(t,e,n,i)}function cS(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,o=n.length;i<o&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function pS(t,e,n,i){cS(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function dS(t,e,n,i){cS(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}function fS(t){var n=t.findComponents({mainType:"legend"});n&&n.length&&t.filterSeries(function(t){for(var e=0;e<n.length;e++)if(!n[e].isSelected(t.name))return!1;return!0})}function gS(e,n,t){var i="allSelect"===e||"inverseSelect"===e,o={},r=[],a=(t.eachComponent({mainType:"legend",query:n},function(t){i?t[e]():t[e](n.name),yS(t,o),r.push(t.componentIndex)}),{});return t.eachComponent("legend",function(n){Z(o,function(t,e){n[t?"select":"unSelect"](e)}),yS(n,a)}),i?{selected:a,legendIndex:r}:{name:n.name,selected:a}}function yS(n,t){var i=t||{};Z(n.getData(),function(t){var e,t=t.get("name");"\n"!==t&&""!==t&&(e=n.isSelected(t),Y(i,t)?i[t]=i[t]&&e:i[t]=e)})}function mS(t){t.registerComponentModel(eS),t.registerComponentView(lS),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,fS),t.registerSubTypeDefaulter("legend",function(){return"plain"}),(t=t).registerAction("legendToggleSelect","legendselectchanged",T(gS,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",T(gS,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",T(gS,"inverseSelect")),t.registerAction("legendSelect","legendselected",T(gS,"select")),t.registerAction("legendUnSelect","legendunselected",T(gS,"unSelect"))}a(xS,vS=eS),xS.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},xS.prototype.init=function(t,e,n){var i=ff(t);vS.prototype.init.call(this,t,e,n),bS(this,t,i)},xS.prototype.mergeOption=function(t,e){vS.prototype.mergeOption.call(this,t,e),bS(this,this.option,t)},xS.type="legend.scroll",xS.defaultOption=ed(eS.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:I.color.accent50,pageIconInactiveColor:I.color.accent10,pageIconSize:15,pageTextStyle:{color:I.color.tertiary},animationDurationUpdate:800});var vS,_S=xS;function xS(){var t=null!==vS&&vS.apply(this,arguments)||this;return t.type=xS.type,t}function bS(t,e,n){var i=[1,1];i[t.getOrient().index]=0,df(e,n,{type:"box",ignoreSize:!!i})}var wS,SS=Mr,MS=["width","height"],TS=["x","y"],CS=(a(IS,wS=lS),IS.prototype.init=function(){wS.prototype.init.call(this),this.group.add(this._containerGroup=new SS),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new SS)},IS.prototype.resetInner=function(){wS.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},IS.prototype.renderInner=function(t,i,e,o,n,r,a){var s=this,l=(wS.prototype.renderInner.call(this,t,i,e,o,n,r,a),this._controllerGroup),t=i.get("pageIconSize",!0),u=V(t)?t:[t,t],e=(h("pagePrev",0),i.getModel("pageTextStyle"));function h(t,e){var n=t+"DataIndex",e=lp(i.get("pageIcons",!0)[i.getOrient().name][e],{onclick:M(s._pageGo,s,n,i,o)},{x:-u[0]/2,y:-u[1]/2,width:u[0],height:u[1]});e.name=t,l.add(e)}l.add(new Rl({name:"pageText",style:{text:"xx/xx",fill:e.getTextColor(),font:e.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),h("pageNext",1)},IS.prototype.layoutInner=function(t,e,n,i,o,r){var a=this.getSelectorGroup(),s=t.getOrient().index,l=MS[s],u=TS[s],h=MS[1-s],c=TS[1-s],p=(o&&af("horizontal",a,t.get("selectorItemGap",!0)),t.get("selectorButtonGap",!0)),d=a.getBoundingRect(),f=[-d.x,-d.y],g=S(n),n=(o&&(g[l]=n[l]-d[l]-p),this._layoutContentAndController(t,i,g,s,l,h,c,u));return o&&("end"===r?f[s]+=n[l]+p:(t=d[l]+p,f[s]-=t,n[u]-=t),n[l]+=d[l]+p,f[1-s]+=n[c]+n[h]/2-d[h]/2,n[h]=Math.max(n[h],d[h]),n[c]=Math.min(n[c],d[c]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()),n},IS.prototype._layoutContentAndController=function(t,e,n,i,o,r,a,s){var l=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup,c=(af(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),af("horizontal",h,t.get("pageButtonItemGap",!0)),l.getBoundingRect()),p=h.getBoundingRect(),d=this._showController=c[o]>n[o],f=[-c.x,-c.y],e=(e||(f[i]=l[s]),[0,0]),s=[-p.x,-p.y],g=H(t.get("pageButtonGap",!0),t.get("itemGap",!0)),f=(d&&("end"===t.get("pageButtonPosition",!0)?s[i]+=n[o]-p[o]:e[i]+=p[o]+g),s[1-i]+=c[r]/2-p[r]/2,l.setPosition(f),u.setPosition(e),h.setPosition(s),{x:0,y:0}),c=(f[o]=(d?n:c)[o],f[r]=Math.max(c[r],p[r]),f[a]=Math.min(0,p[a]+s[1-i]),u.__rectSize=n[o],d?((e={x:0,y:0})[o]=Math.max(n[o]-p[o]-g,0),e[r]=f[r],u.setClipPath(new kl({shape:e})),u.__rectSize=e[o]):h.eachChild(function(t){t.attr({invisible:!0,silent:!0})}),this._getPageInfo(t));return null!=c.pageIndex&&Nc(l,{x:c.contentPosition[0],y:c.contentPosition[1]},d?t:null),this._updatePageInfoView(t,c),f},IS.prototype._pageGo=function(t,e,n){t=this._getPageInfo(e)[t];null!=t&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},IS.prototype._updatePageInfoView=function(n,i){var o=this._controllerGroup,t=(Z(["pagePrev","pageNext"],function(t){var e=null!=i[t+"DataIndex"],t=o.childOfName(t);t&&(t.setStyle("fill",e?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),t.cursor=e?"pointer":"default")}),o.childOfName("pageText")),e=n.get("pageFormatter"),r=i.pageIndex,r=null!=r?r+1:0,a=i.pageCount;t&&e&&t.setStyle("text",F(e)?e.replace("{current}",null==r?"":r+"").replace("{total}",null==a?"":a+""):e({current:r,total:a}))},IS.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,t=t.getOrient().index,o=MS[t],r=TS[t],e=this._findTargetItemIndex(e),a=n.children(),s=a[e],l=a.length,u=l?1:0,h={contentPosition:[n.x,n.y],pageCount:u,pageIndex:u-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(s){n=g(s);h.contentPosition[t]=-n.s;for(var c=e+1,p=n,d=n,f=null;c<=l;++c)(!(f=g(a[c]))&&d.e>p.s+i||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=n,d=n,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,n;if(t)return{s:n=(e=t.getBoundingRect())[r]+t[r],e:n+e[o],i:t.__legendDataIndex}}function y(t,e){return t.e>=e&&t.s<=e+i}},IS.prototype._findTargetItemIndex=function(n){var i,o;return this._showController?(this.getContentGroup().eachChild(function(t,e){t=t.__legendDataIndex;null==o&&null!=t&&(o=e),t===n&&(i=e)}),null!=i?i:o):0},IS.type="legend.scroll",IS);function IS(){var t=null!==wS&&wS.apply(this,arguments)||this;return t.type=IS.type,t.newlineDisabled=!0,t._currentIndex=0,t}function kS(t,e){var h,c,o,p,d,f,r,n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return h=n,e=e,o=(c=t).getComponent("tooltip"),p=c.getComponent("axisPointer"),d=p.get("link",!0)||[],f=[],Z(e.getCoordinateSystems(),function(s){var l,u,t,e,n;function i(t,e,n){var i,o,r=n.model.getModel("axisPointer",p),a=r.get("show");a&&("auto"!==a||t||PS(r))&&(null==e&&(e=r.get("triggerTooltip")),a=(r=t?function(t,e,n,i,o,r){var a=e.getModel("axisPointer"),s={};Z(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=S(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"))&&B(e,o.textStyle));return t.model.getModel("axisPointer",new $p(s,n,i))}(n,u,p,c,t,e):r).get("snap"),t=r.get("triggerEmphasis"),i=LS(n.model),o=e||a||"category"===n.type,e=h.axesInfo[i]={key:i,axis:n,coordSys:s,axisPointerModel:r,triggerTooltip:e,triggerEmphasis:t,involveSeries:o,snap:a,useHandle:PS(r),seriesModels:[],linkGroup:null},l[i]=e,h.seriesInvolved=h.seriesInvolved||o,null!=(t=function(t,e){for(var n=e.model,i=e.dim,o=0;o<t.length;o++){var r=t[o]||{};if(DS(r[i+"AxisId"],n.id)||DS(r[i+"AxisIndex"],n.componentIndex)||DS(r[i+"AxisName"],n.name))return o}}(d,n)))&&((a=f[t]||(f[t]={axesInfo:{}})).axesInfo[i]=e,a.mapper=d[t].mapper,e.linkGroup=a)}s.axisPointerEnabled&&(t=LS(s.model),l=h.coordSysAxesInfo[t]={},u=(h.coordSysMap[t]=s).model.getModel("tooltip",o),Z(s.getAxes(),T(i,!1,null)),s.getTooltipAxes)&&o&&u.get("show")&&(t="axis"===u.get("trigger"),e="cross"===u.get(["axisPointer","type"]),n=s.getTooltipAxes(u.get(["axisPointer","axis"])),(t||e)&&Z(n.baseAxes,T(i,!e||"cross",t)),e)&&Z(n.otherAxes,T(i,"cross",!1))}),n.seriesInvolved&&(r=n,t.eachSeries(function(n){var i=n.coordinateSystem,t=n.get(["tooltip","trigger"],!0),e=n.get(["tooltip","show"],!0);i&&i.model&&"none"!==t&&!1!==t&&"item"!==t&&!1!==e&&!1!==n.get(["axisPointer","show"],!0)&&Z(r.coordSysAxesInfo[LS(i.model)],function(t){var e=t.axis;i.getAxis(e.dim)===e&&(t.seriesModels.push(n),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=n.getData().count())})})),n}function DS(t,e){return"all"===t||V(t)&&0<=U(t,e)||t===e}function AS(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[LS(t)]}function PS(t){return!!t.get(["handle","show"])}function LS(t){return t.type+"||"+t.id}mx(function(t){mx(mS),t.registerComponentModel(_S),t.registerComponentView(CS),t.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})});var OS,RS={},zS=(a(NS,OS=Sm),NS.prototype.render=function(t,e,n,i){var o,r,a,s,l,u;this.axisPointerClass&&(o=AS(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=PS(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"),OS.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},NS.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},NS.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},NS.prototype.dispose=function(t,e){this._disposeAxisPointer(e),OS.prototype.dispose.apply(this,arguments)},NS.prototype._doUpdateAxisPointerClass=function(t,e,n){var i,o=NS.getAxisPointerClass(this.axisPointerClass);o&&((i=(i=AS(i=t))&&i.axisPointerModel)?(this._axisPointer||(this._axisPointer=new o)).render(t,i,e,n):this._disposeAxisPointer(e))},NS.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},NS.registerAxisPointerClass=function(t,e){RS[t]=e},NS.getAxisPointerClass=function(t){return t&&RS[t]},NS.type="axis",NS);function NS(){var t=null!==OS&&OS.apply(this,arguments)||this;return t.type=NS.type,t}var BS=i(),ES=S,VS=M,e=(FS.prototype.render=function(t,e,n,i){var o,r,a=e.get("value"),s=e.get("status");this._axisModel=t,this._axisPointerModel=e,this._api=n,!i&&this._lastValue===a&&this._lastStatus===s||(this._lastValue=a,this._lastStatus=s,i=this._group,o=this._handle,s&&"hide"!==s?(i&&i.show(),o&&o.show(),this.makeElOption(s={},a,t,e,n),(r=s.graphicKey)!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=r,r=this._moveAnimation=this.determineAnimation(t,e),i?(r=T(HS,e,r),this.updatePointerEl(i,s,r),this.updateLabelEl(i,s,r,e)):(i=this._group=new Mr,this.createPointerEl(i,s,t,e),this.createLabelEl(i,s,t,e),n.getZr().add(i)),US(i,e,!0),this._renderHandle(a)):(i&&i.hide(),o&&o.hide()))},FS.prototype.remove=function(t){this.clear(t)},FS.prototype.dispose=function(t){this.clear(t)},FS.prototype.determineAnimation=function(t,e){var n,i=e.get("animation"),o=t.axis,r="category"===o.type,e=e.get("snap");return!(!e&&!r)&&("auto"===i||null==i?(n=this.animationThreshold,r&&o.getBandWidth()>n||!!e&&(r=AS(t).seriesDataCount,e=o.getExtent(),Math.abs(e[0]-e[1])/r>n)):!0===i)},FS.prototype.makeElOption=function(t,e,n,i,o){},FS.prototype.createPointerEl=function(t,e,n,i){var o=e.pointer;o&&(o=BS(t).pointerEl=new wp[o.type](ES(e.pointer)),t.add(o))},FS.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=BS(t).labelEl=new Rl(ES(e.label)),t.add(e),WS(e,i))},FS.prototype.updatePointerEl=function(t,e,n){t=BS(t).pointerEl;t&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},FS.prototype.updateLabelEl=function(t,e,n,i){t=BS(t).labelEl;t&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),WS(t,i))},FS.prototype._renderHandle=function(t){var e,n,i,o,r,a;!this._dragging&&this.updateHandleTransform&&(e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,o=e.getModel("handle"),a=e.get("status"),o.get("show")&&a&&"hide"!==a?(this._handle||(r=!0,i=this._handle=lp(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){De(t.event)},onmousedown:VS(this._onHandleDragMove,this,0,0),drift:VS(this._onHandleDragMove,this),ondragend:VS(this._onHandleDragEnd,this)}),n.add(i)),US(i,e,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),V(a=o.get("size"))||(a=[a,a]),i.scaleX=a[0]/2,i.scaleY=a[1]/2,Vm(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,r)):(i&&n.remove(i),this._handle=null))},FS.prototype._moveHandleToValue=function(t,e){HS(this._axisPointerModel,!e&&this._moveAnimation,this._handle,GS(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},FS.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(GS(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(GS(t)),BS(n).lastProp=null,this._doDispatchAxisPointer())},FS.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}]}))},FS.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},FS.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var t=t.getZr(),e=this._group,n=this._handle;t&&e&&(this._lastGraphicKey=null,e&&t.remove(e),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Fm(this,"_doDispatchAxisPointer")},FS.prototype.doClear=function(){},FS.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},FS);function FS(){this._dragging=!1,this.animationThreshold=15}function HS(t,e,n,i){!function n(i,t){{var o;return N(i)&&N(t)?(o=!0,Z(t,function(t,e){o=o&&n(i[e],t)}),!!o):i===t}}(BS(n).lastProp,i)&&(BS(n).lastProp=i,e?Nc(n,i,t):(n.stopAnimation(),n.attr(i)))}function WS(t,e){t[e.get(["label","show"])?"show":"hide"]()}function GS(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function US(t,e,n){var i=e.get("z"),o=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=o&&(t.zlevel=o),t.silent=n)})}var ZS="expandAxisBreak",XS=Math.PI,YS=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],qS=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],jS=i(),KS=i(),$S=(QS.prototype.ensureRecord=function(t){var e=t.axis.dim,t=t.componentIndex,n=this.recordMap,n=n[e]||(n[e]=[]);return n[t]||(n[t]={ready:{}})},QS);function QS(t){this.recordMap={},this.resolveAxisNameOverlap=t}function JS(t,e,n,i,o,r){if(px(t.nameLocation)){t=r.stOccupiedRect;t&&nM((d={},t=t,f=r.transGroup.transform,d.transform=_p(d.transform,f),d.localRect=vp(d.localRect,t),d.rect=vp(d.rect,t),f&&d.rect.applyTransform(f),d.axisAligned=mp(f),d.obb=void 0,(d.label=d.label||{}).ignore=!1,d),i,o)}else for(var a=r.labelInfoList,t=r.dirVec,s=i,l=o,u=0<=C.dot(l,t),h=0,c=a.length;h<c;h++){var p=a[u?h:c-1-h];p.label.ignore||nM(p,s,l)}var d,f}var tM=ze(),eM=new q(0,0,0,0);function nM(t,e,n){var i=new C;Ab(t,e,i,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&(t=i,n=e)&&(n.label.x+=t.x,n.label.y+=t.y,n.label.markRedraw(),(i=n.transform)&&(i[4]+=t.x,i[5]+=t.y),(e=n.rect)&&(e.x+=t.x,e.y+=t.y),e=n.obb)&&e.fromBoundingRect(n.localRect,i)}oM.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},oM.prototype.__getRawCfg=function(){return this._cfg.raw},oM.prototype._resetCfgDetermined=function(t){var e=this._axisModel,n=e.getDefaultOption?e.getDefaultOption():{},i=H(t.axisName,e.get("name")),o=e.get("nameMoveOverlap"),t=(null!=o&&"auto"!==o||(o=H(t.defaultNameMoveOverlap,!0)),{raw:t,position:t.position,rotation:t.rotation,nameDirection:H(t.nameDirection,1),tickDirection:H(t.tickDirection,1),labelDirection:H(t.labelDirection,1),labelOffset:H(t.labelOffset,0),silent:H(t.silent,!0),axisName:i,nameLocation:St(e.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:!!i&&o,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])}),n=(this._cfg=t,new Mr({x:t.position[0],y:t.position[1],rotation:t.rotation})),i=(n.updateTransform(),this._transformGroup=n,this._shared.ensureRecord(e));i.transGroup=this._transformGroup,i.dirVec=new C(Math.cos(-t.rotation),Math.sin(-t.rotation))},oM.prototype.build=function(e,n){var i=this;return e=e||{axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0},Z(rM,function(t){e[t]&&aM[t](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,n||{})}),this},oM.innerTextLayout=function(t,e,n){var i,e=Yr(e-t),t=qr(e)?(i=0<n?"top":"bottom","center"):qr(e-XS)?(i=0<n?"bottom":"top","center"):(i="middle",0<e&&e<XS?0<n?"right":"left":0<n?"left":"right");return{rotation:e,textAlign:t,textVerticalAlign:i}},oM.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},oM.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)};var iM=oM;function oM(t,e,n,i){this.group=new Mr,this._axisModel=t,this._api=e,this._local={},this._shared=i||new $S(JS),this._resetCfgDetermined(n)}var rM=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],aM={axisLine:function(i,t,e,n,o,r,a){var s,l,u,h,c,p,d,f,g=n.get(["axisLine","show"]);(g="auto"===g&&(g=!0,null!=i.raw.axisLineAutoShow)?!!i.raw.axisLineAutoShow:g)&&(g=n.axis.getExtent(),c=r.transform,s=[g[0],0],l=[g[1],0],u=l[0]<s[0],c&&(ne(s,s,c),ne(l,l,c)),h=G({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),g={strokeContainThreshold:i.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h},n.get(["axisLine","breakLine"])&&n.axis.scale.hasBreaks()?null.buildAxisBreakLine(n,o,r,g):(tp((c=new $h(G({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]}},g))).shape,c.style.lineWidth),c.anid="line",o.add(c)),null!=(p=n.get(["axisLine","symbol"])))&&(r=n.get(["axisLine","symbolSize"]),F(p)&&(p=[p,p]),(F(r)||ft(r))&&(r=[r,r]),g=L0(n.get(["axisLine","symbolOffset"])||0,r),d=r[0],f=r[1],Z([{rotate:i.rotation+Math.PI/2,offset:g[0],r:0},{rotate:i.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(t,e){var n;"none"!==p[e]&&null!=p[e]&&(e=A0(p[e],-d/2,-f/2,d,f,h.stroke,!0),n=t.r+t.offset,e.attr({rotation:t.rotate,x:(t=u?l:s)[0]+n*Math.cos(i.rotation),y:t[1]-n*Math.sin(i.rotation),silent:!0,z2:11}),o.add(e))}))},axisTickLabelEstimate:function(t,e,n,i,o,r,a,s){hM(e,o,s)&&sM(t,e,n,i,o,r,a,Ex.estimate)},axisTickLabelDetermine:function(t,e,n,i,o,r,a,s){hM(e,o,s)&&sM(t,e,n,i,o,r,a,Ex.determine);var l,s=function(t,e,n,i){var o=i.axis,r=i.getModel("axisTick"),a=r.get("show");"auto"===a&&(a=!0,null!=t.raw.axisTickAutoShow)&&(a=!!t.raw.axisTickAutoShow);if(!a||o.scale.isBlank())return[];for(var a=r.getModel("lineStyle"),t=t.tickDirection*r.get("length"),s=uM(o.getTicksCoords(),n.transform,t,B(a.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),l=0;l<s.length;l++)e.add(s[l]);return s}(t,o,r,i),a=(n=e.labelLayoutList,l=s,t.showMinorTicks||Z(n,function(t){if(t&&t.label.ignore)for(var e=0;e<l.length;e++){var n=l[e],i=KS(n),o=jS(t.label);if(null!=i.tickValue&&!i.onBand&&i.tickValue===o.tickValue)return void lM(n)}}),t),u=o,h=r,e=i,s=t.tickDirection,n=e.axis,o=e.getModel("minorTick");if(a.showMinorTicks&&!n.scale.isBlank()){var c=n.getMinorTicksCoords();if(c.length)for(var a=o.getModel("lineStyle"),p=s*o.get("length"),d=B(a.getLineStyle(),B(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),f=0;f<c.length;f++)for(var g=uM(c[f],h.transform,p,d,"minorticks_"+f),y=0;y<g.length;y++)u.add(g[y])}},axisName:function(t,e,n,i,o,r,a,s){var l,u,h,c,p,d,f,g,y,m,v=n.ensureRecord(i),_=(e.nameEl&&(o.remove(e.nameEl),e.nameEl=v.nameLayout=v.nameLocation=null),t.axisName);_&&(l=t.nameLocation,f=t.nameDirection,u=i.getModel("nameTextStyle"),p=i.get("nameGap")||0,d=i.axis.getExtent(),m=i.axis.inverse?-1:1,y=new C(0,0),h=new C(0,0),"start"===l?(y.x=d[0]-m*p,h.x=-m):"end"===l?(y.x=d[1]+m*p,h.x=m):(y.x=(d[0]+d[1])/2,y.y=t.labelOffset+f*p,h.y=f),m=ze(),h.transform(Fe(m,m,t.rotation)),null!=(p=i.get("nameRotate"))&&(p=p*XS/180),px(l)?c=iM.innerTextLayout(t.rotation,null!=p?p:t.rotation,f):(c=function(t,e,n,i){var o,n=Yr(n-t),t=i[0]>i[1],i="start"===e&&!t||"start"!==e&&t;e=qr(n-XS/2)?(o=i?"bottom":"top","center"):qr(n-1.5*XS)?(o=i?"top":"bottom","center"):(o="middle",n<1.5*XS&&XS/2<n?i?"left":"right":i?"right":"left");return{rotation:n,textAlign:e,textVerticalAlign:o}}(t.rotation,l,p||0,d),null!=(g=t.raw.axisNameAvailableWidth)&&(g=Math.abs(g/Math.sin(c.rotation)),isFinite(g)||(g=null))),m=u.getFont(),p=(f=i.get("nameTruncate",!0)||{}).ellipsis,d=wt(t.raw.nameTruncateMaxWidth,f.maxWidth,g),f=s.nameMarginLevel||0,fp({el:g=new Rl({x:y.x,y:y.y,rotation:c.rotation,silent:iM.isLabelSilent(i),style:kp(u,{text:_,font:m,overflow:"truncate",width:d,ellipsis:p,fill:u.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:u.get("align")||c.textAlign,verticalAlign:u.get("verticalAlign")||c.textVerticalAlign}),z2:1}),componentModel:i,itemName:_}),g.__fullText=_,g.anid="name",i.get("triggerEvent")&&((s=iM.makeAxisEventDataBase(i)).targetType="axisName",s.name=_,W(g).eventData=s),r.add(g),g.updateTransform(),e.nameEl=g,y=v.nameLayout=Mb({label:g,priority:g.z2,defaultAttr:{ignore:g.ignore},marginDefault:(px(l)?YS:qS)[f]}),v.nameLocation=l,o.add(g),g.decomposeTransform(),t.shouldNameMoveOverlap)&&y&&(m=n.ensureRecord(i),n.resolveAxisNameOverlap(t,n,i,y,h,m))}};function sM(t,e,n,i,o,r,a,s){cM(e)||(h=t,O=e,o=o,s=s,_=a,k=(v=i).axis,a=wt(h.raw.axisLabelShow,v.get(["axisLabel","show"])),D=new Mr,o.add(D),o=Vx(s),!a||k.scale.isBlank()?pM(O,[],D,o):(x=v.getModel("axisLabel"),b=k.getViewLabels(o),s=(wt(h.raw.labelRotate,x.get("rotate"))||0)*XS/180,w=iM.innerTextLayout(h.rotation,s,h.labelDirection),S=v.getCategories&&v.getCategories(!0),M=[],T=v.get("triggerEvent"),C=1/0,I=-1/0,Z(b,function(t,e){var n,i,o,r="ordinal"===k.scale.type?k.scale.getRawOrdinalNumber(t.tickValue):t.tickValue,a=t.formattedLabel,s=t.rawLabel,l=x,u=(l=S&&S[r]&&N(u=S[r])&&u.textStyle?new $p(u.textStyle,x,v.ecModel):l).getTextColor()||v.get(["axisLine","lineStyle","color"]),h=l.getShallow("align",!0)||w.textAlign,c=H(l.getShallow("alignMinLabel",!0),h),p=H(l.getShallow("alignMaxLabel",!0),h),d=l.getShallow("verticalAlign",!0)||l.getShallow("baseline",!0)||w.textVerticalAlign,f=H(l.getShallow("verticalAlignMinLabel",!0),d),g=H(l.getShallow("verticalAlignMaxLabel",!0),d),y=10+((null==(y=t.time)?void 0:y.level)||0),m=(C=Math.min(C,y),I=Math.max(I,y),new Rl({x:0,y:0,rotation:0,silent:iM.isLabelSilent(v),z2:y,style:kp(l,{text:a,align:0===e?c:e===b.length-1?p:h,verticalAlign:0===e?f:e===b.length-1?g:d,fill:z(u)?u("category"===k.type?s:"value"===k.type?r+"":r,e):u})})),y=(m.anid="label_"+r,jS(m));y.break=t.break,y.tickValue=r,y.layoutRotation=w.rotation,fp({el:m,componentModel:v,itemName:a,formatterParamsExtra:{isTruncated:function(){return m.isTruncated},value:s,tickIndex:e}}),T&&((l=iM.makeAxisEventDataBase(v)).targetType="axisLabel",l.value=s,l.tickIndex=e,t.break&&(l.break={start:t.break.parsedBreak.vmin,end:t.break.parsedBreak.vmax}),"category"===k.type&&(l.dataIndex=r),W(m).eventData=l,t.break)&&(n=v,i=_,o=t.break,m.on("click",function(t){var e={type:ZS,breaks:[{start:o.parsedBreak.breakOption.start,end:o.parsedBreak.breakOption.end}]};e[n.axis.dim+"AxisIndex"]=n.componentIndex,i.dispatchAction(e)})),M.push(m),D.add(m)}),a=E(M,function(t){return{label:t,priority:jS(t).break?t.z2+(I-C+1):t.z2,defaultAttr:{ignore:t.ignore}}}),pM(O,a,D,o)));var v,_,x,b,w,S,M,T,C,I,k,D,l,u,h,c,p,d,f,g,y,m,A,P,L,s=e.labelLayoutList,O=(l=t,h=s,c=r,p=(u=i).get(["axisLabel","margin"]),Z(h,function(t,e){var n,i,t=Mb(t);t&&(n=t.label,i=jS(n),t.suggestIgnore=n.ignore,n.ignore=!1,Jo(dM,fM),dM.x=u.axis.dataToCoord(i.tickValue),dM.y=l.labelOffset+l.labelDirection*p,dM.rotation=i.layoutRotation,c.add(dM),dM.updateTransform(),c.remove(dM),dM.decomposeTransform(),Jo(n,dM),n.markRedraw(),wb(t,!0),Mb(t))}),t.rotation,t.optionHideOverlap);function R(t,e,n){var i,e=Mb(d[e]),n=Mb(d[n]);e&&n&&(!1===t||e.suggestIgnore?lM(e.label):n.suggestIgnore?lM(n.label):(f||(e=Cb({marginForce:i=[0,0,0,0]},e),n=Cb({marginForce:i},n)),Ab(e,n,null,{touchThreshold:.1})&&lM((t?n:e).label)))}d=s,f=O,hx((a=i).axis)||(o=a.get(["axisLabel","showMinLabel"]),a=a.get(["axisLabel","showMaxLabel"]),e=d.length,R(o,0,1),R(a,e-1,e-2)),O&&Db(pt(s,function(t){return t&&!t.label.ignore})),r=t,o=n,a=s,t=(e=i).axis,y=o.ensureRecord(e),m=[],A=!!r.axisName&&px(r.nameLocation),Z(a,function(t){var e,t=Mb(t);t&&!t.label.ignore&&(m.push(t),e=y.transGroup,A)&&(e.transform?We(tM,e.transform):Ne(tM),t.transform&&Ee(tM,tM,t.transform),q.copy(eM,t.localRect),eM.applyTransform(tM),g?g.union(eM):q.copy(g=new q(0,0,0,0),eM))}),P=.1<Math.abs(y.dirVec.x)?"x":"y",L=y.transGroup[P],m.sort(function(t,e){return Math.abs(t.label[P]-L)-Math.abs(e.label[P]-L)}),A&&g&&(o=t.getExtent(),e=Math.min(o[0],o[1]),r=Math.max(o[0],o[1])-e,g.union(new q(e,0,r,1))),y.stOccupiedRect=g,y.labelInfoList=m}function lM(t){t&&(t.ignore=!0)}function uM(t,e,n,i,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]=n,e&&(ne(a,a,e),ne(s,s,e)),new $h({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0})),u=(tp(u.shape,u.style.lineWidth),u.anid=o+"_"+t[l].tickValue,r.push(u),KS(u));u.onBand=!!t[l].onBand,u.tickValue=t[l].tickValue}return r}function hM(t,e,n){if(cM(t)){var i=t.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var o=!0,r=0;r<i.length;r++)o=o&&i[r]();if(o)return!1}i.length&&(e.remove(t.labelGroup),pM(t,null,null,null))}return!0}function cM(t){return t.labelLayoutList}function pM(t,e,n,i){t.labelLayoutList=e,t.labelGroup=n,t.axisLabelsCreationContext=i}var dM=new kl,fM=new kl;function gM(t,e,n,i,o){var r=yM(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),n=n.getModel("label"),a=Hd(n.get("padding")||0),s=n.getFont(),l=rr(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),i=("bottom"===c&&(u[1]-=l),"middle"===c&&(u[1]-=l/2),o=u,c=h,h=l,i=(l=i).getWidth(),l=l.getHeight(),o[0]=Math.min(o[0]+c,i)-c,o[1]=Math.min(o[1]+h,l)-h,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0),n.get("backgroundColor"));i&&"auto"!==i||(i=e.get(["axisLine","lineStyle","color"])),t.label={x:u[0],y:u[1],style:kp(n,{text:r,font:s,fill:n.getTextColor(),padding:a,backgroundColor:i}),z2:10}}function yM(t,e,n,i,o){t=e.scale.parse(t);var r,a=e.scale.getLabel({value:t},{precision:o.precision}),o=o.formatter;return o&&(r={value:lx(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},Z(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&r.seriesData.push(e)}),F(o)?a=o.replace("{value}",a):z(o)&&(a=o(r))),a}function mM(t,e,n){var i=ze();return Fe(i,i,n.rotation),Ve(i,i,n.position),ip([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function vM(t,e,n){n=n||{};var i=e.axis,o={},r=i.getAxesOnZeroOf()[0],a=i.position,s=r?"onZero":a,i=i.dim,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"===i?[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"===i?u[l[s]]:t[0],"x"===i?u[l[s]]:t[3]],o.rotation=Math.PI/2*("x"===i?0:1),o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],o.labelOffset=r?u[l[a]]-u[l.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),wt(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection),e.get(["axisLabel","rotate"]));return o.labelRotate="top"===s?-h:h,o.z2=1,o}a(bM,_M=e),bM.prototype.makeElOption=function(t,e,n,i,o){var r,a,s=n.axis,l=s.grid,u=i.get("type"),h=wM(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(e,!0)),p=(u&&"none"!==u&&(r=(a=i).get("type"),a=a.getModel(r+"Style"),"line"===r?(p=a.getLineStyle()).fill=null:"shadow"===r&&((p=a.getAreaStyle()).stroke=null),r=p,(a=SM[u](s,c,h)).style=r,t.graphicKey=a.type,t.pointer=a),vM(l.getRect(),n));u=e,s=t,c=p,h=n,r=i,a=o,l=iM.innerTextLayout(c.rotation,0,c.labelDirection),c.labelMargin=r.get(["label","margin"]),gM(s,h,r,a,{position:mM(h.axis,u,c),align:l.textAlign,verticalAlign:l.textVerticalAlign})},bM.prototype.getHandleTransform=function(t,e,n){var i=vM(e.axis.grid.getRect(),e,{labelInside:!1}),n=(i.labelMargin=n.get(["handle","margin"]),mM(e.axis,t,i));return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},bM.prototype.updateHandleTransform=function(t,e,n,i){var n=n.axis,o=n.grid,r=n.getGlobalExtent(!0),o=wM(o,n).getOtherAxis(n).getGlobalExtent(),n="x"===n.dim?0:1,a=[t.x,t.y],e=(a[n]+=e[n],a[n]=Math.min(r[1],a[n]),a[n]=Math.max(r[0],a[n]),(o[1]+o[0])/2),r=[e,e];r[n]=a[n];return{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:r,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][n]}};var _M,xM=bM;function bM(){return null!==_M&&_M.apply(this,arguments)||this}function wM(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var SM={line:function(t,e,n){var i;return i=[e,n[0]],e=[e,n[1]],n=MM(t),{type:"Line",subPixelOptimize:!0,shape:{x1:i[n=n||0],y1:i[1-n],x2:e[n],y2:e[1-n]}}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:(e=[e-i/2,n[0]],n=[i,o],i=MM(t),{x:e[i=i||0],y:e[1-i],width:n[i],height:n[1-i]})}}};function MM(t){return"x"===t.dim?0:1}a(IM,TM=g),IM.type="axisPointer",IM.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:I.color.border,width:1,type:"dashed"},shadowStyle:{color:I.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:I.color.neutral00,padding:[5,7,5,7],backgroundColor:I.color.accent60,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:I.color.accent40,throttle:40}};var TM,CM=IM;function IM(){var t=null!==TM&&TM.apply(this,arguments)||this;return t.type=IM.type,t}var kM=i(),DM=Z;function AM(t,e,n){var i,c,p;function o(t,h){c.on(t,function(e){n=p;var n,i,o={dispatchAction:r,pendings:i={showTip:[],hideTip:[]}};function r(t){var e=i[t.type];e?e.push(t):(t.dispatchAction=r,n.dispatchAction(t))}DM(kM(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))})}w.node||(i=e.getZr(),kM(i).records||(kM(i).records={}),p=e,kM(c=i).initialized||(kM(c).initialized=!0,o("click",T(LM,"click")),o("mousemove",T(LM,"mousemove")),o("globalout",PM)),(kM(i).records[t]||(kM(i).records[t]={})).handler=n)}function PM(t,e,n){t.handler("leave",null,n)}function LM(t,e,n,i){e.handler(t,n,i)}function OM(t,e){w.node||(e=e.getZr(),(kM(e).records||{})[t]&&(kM(e).records[t]=null))}a(NM,RM=Sm),NM.prototype.render=function(t,e,n){var e=e.getComponent("tooltip"),i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";AM("axisPointer",n,function(t,e,n){"none"!==i&&("leave"===t||0<=i.indexOf(t))&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},NM.prototype.remove=function(t,e){OM("axisPointer",e)},NM.prototype.dispose=function(t,e){OM("axisPointer",e)},NM.type="axisPointer";var RM,zM=NM;function NM(){var t=null!==RM&&RM.apply(this,arguments)||this;return t.type=NM.type,t}function BM(t,e){var n,i,o,r,a=[],s=t.seriesIndex;return null==s||!(e=e.getSeriesByIndex(s))||null==(s=_a(n=e.getData(),t))||s<0||V(s)?{point:[]}:(i=n.getItemGraphicEl(s),o=e.coordinateSystem,e.getTooltipPosition?a=e.getTooltipPosition(s)||[]:o&&o.dataToPoint?a=t.isStacked?(e=o.getBaseAxis(),t=o.getOtherAxis(e).dim,e=e.dim,t="x"===t||"radius"===t?1:0,e=n.mapDimension(e),(r=[])[t]=n.get(e,s),r[1-t]=n.get(n.getCalculationInfo("stackResultDimension"),s),o.dataToPoint(r)||[]):o.dataToPoint(n.getValues(E(o.dimensions,function(t){return n.mapDimension(t)}),s))||[]:i&&((e=i.getBoundingRect().clone()).applyTransform(i.transform),a=[e.x+e.width/2,e.y+e.height/2]),{point:a,el:i})}var EM=i();function VM(t,e,n){var r,a,i,s,l,o,u,h,c,p,d,f,g,y,m=t.currTrigger,v=[t.x,t.y],_=t,x=t.dispatchAction||M(n.dispatchAction,n),b=e.getComponent("axisPointer").coordSysAxesInfo;if(b)return UM(v)&&(v=BM({seriesIndex:_.seriesIndex,dataIndex:_.dataIndex},e).point),r=UM(v),a=_.axesInfo,i=b.axesInfo,s="leave"===m||UM(v),l={},e={list:[],map:{}},u={showPointer:T(HM,o={}),showTooltip:T(WM,e)},Z(b.coordSysMap,function(t,e){var o=r||t.containPoint(v);Z(b.coordSysAxesInfo[e],function(t,e){var n=t.axis,i=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(a,t);s||!o||a&&!i||null!=(i=null!=(i=i&&i.value)||r?i:n.pointToData(v))&&FM(t,i,u,!1,l)})}),h={},Z(i,function(n,t){var i=n.linkGroup;i&&!o[t]&&Z(i.axesInfo,function(t,e){var e=o[e];t!==n&&e&&(e=e.value,i.mapper&&(e=n.axis.scale.parse(i.mapper(e,GM(t),GM(n)))),h[n.key]=e)})}),Z(h,function(t,e){FM(i[e],t,u,!0,l)}),c=o,_=i,p=l.axesInfo=[],Z(_,function(t,e){var n=t.axisPointerModel.option,e=c[e];e?(t.useHandle||(n.status="show"),n.value=e.value,n.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&p.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),m=e,_=t,e=x,UM(t=v)||!m.list.length?e({type:"hideTip"}):(x=((m.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},e({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:_.tooltipOption,position:_.position,dataIndexInside:x.dataIndexInside,dataIndex:x.dataIndex,seriesIndex:x.seriesIndex,dataByCoordSys:m.list})),e=i,_=(t=n).getZr(),x="axisPointerLastHighlights",d=EM(_)[x]||{},f=EM(_)[x]={},Z(e,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&Z(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;f[e]=t})}),g=[],y=[],Z(d,function(t,e){f[e]||y.push(t)}),Z(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 FM(t,e,n,i,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,Z(t.seriesModels,function(e,t){var n,i=e.getData().mapDimensionsAll(l);if(e.getAxisTooltipData)var o=e.getAxisTooltipData(i,a,s),r=o.dataIndices,o=o.nestestValue;else{if(!(r=e.indicesOfNearest(l,i[0],a,"category"===s.type?.5:null)).length)return;o=e.getData().get(i[0],r[0])}null!=o&&isFinite(o)&&(i=a-o,(n=Math.abs(i))<=c)&&((n<c||0<=i&&p<0)&&(c=n,p=i,u=o,h.length=0),Z(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&&G(o,d[0]),!i&&t.snap&&g.containData(f)&&null!=f&&(e=f),n.showPointer(t,e,d),n.showTooltip(t,r,f)):n.showPointer(t,e))}function HM(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function WM(t,e,n,i){var o,r,n=n.payloadBatch,a=e.axis,s=a.model,l=e.axisPointerModel;e.triggerTooltip&&n.length&&(o=LS(e=e.coordSys.model),(r=t.map[o])||(r=t.map[o]={coordSysId:e.id,coordSysIndex:e.componentIndex,coordSysType:e.type,coordSysMainType:e.mainType,dataByAxis:[]},t.list.push(r)),r.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:i,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:n.slice()}))}function GM(t){var e=t.axis.model,n={},t=n.axisDim=t.axis.dim;return n.axisIndex=n[t+"AxisIndex"]=e.componentIndex,n.axisName=n[t+"AxisName"]=e.name,n.axisId=n[t+"AxisId"]=e.id,n}function UM(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function ZM(t){zS.registerAxisPointerClass("CartesianAxisPointer",xM),t.registerComponentModel(CM),t.registerComponentView(zM),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=kS(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},VM)}a(qM,XM=g),qM.type="tooltip",qM.dependencies=["axisPointer"],qM.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:I.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:I.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:I.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:I.color.tertiary,fontSize:14}};var XM,YM=qM;function qM(){var t=null!==XM&&XM.apply(this,arguments)||this;return t.type=qM.type,t}function jM(t){var e=t.get("confine");return null!=e?e:"richText"===t.get("renderMode")}function KM(t){if(w.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var $M=KM(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function QM(t,e){if(!t)return e;e=Fd(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var JM=QM(KM(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),tT=QM($M,"transform"),eT="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(w.transform3dSupported?"will-change:transform;":"");function nT(t,e,n){var i,t=t.toFixed(0)+"px",e=e.toFixed(0)+"px";return w.transformSupported?(i="translate"+((i=w.transform3dSupported)?"3d":"")+"("+t+","+e+(i?",0":"")+")",n?"top:0;left:0;"+tT+":"+i+";":[["top",0],["left",0],[$M,i]]):n?"top:"+e+";left:"+t+";":[["top",e],["left",t]]}function iT(i,t,e,n){var o,r,a=[],s=i.get("transitionDuration"),l=i.get("backgroundColor"),u=i.get("shadowBlur"),h=i.get("shadowColor"),c=i.get("shadowOffsetX"),p=i.get("shadowOffsetY"),d=i.getModel("textStyle"),f=lm(i,"html");return a.push("box-shadow:"+(c+"px "+p+"px "+u+"px "+h)),t&&0<s&&a.push((c=s,p="cubic-bezier(0.23,1,0.32,1)",h=u="",n&&(h="opacity"+(u=" "+c/2+"s "+p)+",visibility"+u),e||(u=" "+c+"s "+p,h+=(h.length?",":"")+(w.transformSupported?""+tT+u:",left"+u+",top"+u)),JM+":"+h)),l&&a.push("background-color:"+l),Z(["width","color","radius"],function(t){var e="border-"+t,n=Fd(e),n=i.get(n);null!=n&&a.push(e+":"+n+("color"===t?"":"px"))}),a.push((r=[],t=(o=d).get("fontSize"),(s=o.getTextColor())&&r.push("color:"+s),r.push("font:"+o.getFont()),s=H(o.get("lineHeight"),Math.round(3*t/2)),t&&r.push("line-height:"+s+"px"),t=o.get("textShadowColor"),s=o.get("textShadowBlur")||0,n=o.get("textShadowOffsetX")||0,e=o.get("textShadowOffsetY")||0,t&&s&&r.push("text-shadow:"+n+"px "+e+"px "+s+"px "+t),Z(["decoration","align"],function(t){var e=o.get(t);e&&r.push("text-"+t+":"+e)}),r.join(";"))),null!=f&&a.push("padding:"+Hd(f).join("px ")+"px"),a.join(";")+";"}function oT(t,e,n,i,o){var r,a,s=e&&e.painter;n?(r=s&&s.getViewportRoot())&&(a=t,n=n,ye(ge,r,i,o,!0))&&ye(a,n,ge[0],ge[1]):(t[0]=i,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()}aT.prototype.update=function(t){this._container||(i=this._api.getDom(),n="position",n=(e=(e=i).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e))?n?e[n]:e:null,"absolute"!==(e=i.style).position&&"absolute"!==n&&(e.position="relative"));var e,n,i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=t.get("displayTransition")&&0<t.get("transitionDuration"),this.el.className=t.get("className")||""},aT.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,o=this._styleCoord;n.innerHTML?i.cssText=eT+iT(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+nT(o[0],o[1],!0)+"border-color:"+Yd(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},aT.prototype.setContent=function(t,e,n,i,o){var r=this.el;if(null==t)r.innerHTML="";else{var a,s,l,u,h,c="";if(F(o)&&"item"===n.get("trigger")&&!jM(n)&&(n=n,i=i,c=F(o=o)&&"inside"!==o?(a=n.get("backgroundColor"),n=n.get("borderWidth"),i=Yd(i),o=o="left"===(o=o)?"right":"right"===o?"left":"top"===o?"bottom":"top",p=Math.max(1.5*Math.round(n),6),s="",l=tT+":",-1<U(["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+n)*Math.abs(Math.cos(h))+u*Math.abs(Math.sin(h)),i=i+" solid "+n+"px;",'<div style="'+["position:absolute;width:"+p+"px;height:"+p+"px;z-index:-1;",(s+=";"+o+":-"+Math.round(100*((h-Math.SQRT2*n)/2+Math.SQRT2*n-(h-u)/2))/100+"px")+";"+l+";","border-bottom:"+i,"border-right:"+i,"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++)mt(t[d])&&t[d].parentNode!==r&&r.appendChild(t[d]);c&&r.childNodes.length&&((p=document.createElement("div")).innerHTML=c,r.appendChild(p))}}},aT.prototype.setEnterable=function(t){this._enterable=t},aT.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},aT.prototype.moveTo=function(t,e){var n,i;this.el&&(oT(n=this._styleCoord,this._zr,this._container,t,e),null!=n[0])&&null!=n[1]&&(i=this.el.style,Z(nT(n[0],n[1]),function(t){i[t[0]]=t[1]}))},aT.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},aT.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",w.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},aT.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(M(this.hide,this),t)):this.hide())},aT.prototype.isShow=function(){return this._show},aT.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;function e(t){var e=t[fe];e&&(e.clearMarkers&&e.clearMarkers(),delete t[fe])}t=t&&t.painter&&t.painter.getViewportRoot(),n=this._container,t&&e(t),n&&e(n);var n,t=this.el;t&&(t.onmouseenter=t.onmousemove=t.onmouseleave=null,n=t.parentNode)&&n.removeChild(t),this.el=this._container=null};var rT=aT;function aT(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,w.wxa)return null;var n=document.createElement("div"),i=(n.domBelongToZr=!0,this.el=n,this._zr=t.getZr()),e=e.appendTo,e=e&&(F(e)?document.querySelector(e):mt(e)?e:z(e)&&e(t.getDom())),o=(oT(this._styleCoord,i,e,t.getWidth()/2,t.getHeight()/2),(e||t.getDom()).appendChild(n),this._api=t,this._container=e,this);n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(t){var e;t=t||window.event,o._enterable||(e=i.handler,Ie(i.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t))},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}lT.prototype.update=function(t){t=t.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},lT.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},lT.prototype.setContent=function(t,e,n,i,o){var r=this,a=(N(t)&&f(""),this.el&&this._zr.remove(this.el),n.getModel("textStyle")),s=(this.el=new Rl({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:lm(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),Z(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){r.el.style[t]=n.get(t)}),Z(["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})},lT.prototype.setEnterable=function(t){this._enterable=t},lT.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),t=hT(t.style);return[e.width+t.left+t.right,e.height+t.top+t.bottom]},lT.prototype.moveTo=function(t,e){var n,i,o=this.el;o&&(cT(i=this._styleCoord,this._zr,t,e),t=i[0],e=i[1],n=uT((i=o.style).borderWidth||0),i=hT(i),o.x=t+n+i.left,o.y=e+n+i.top,o.markRedraw())},lT.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},lT.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},lT.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(M(this.hide,this),t)):this.hide())},lT.prototype.isShow=function(){return this._show},lT.prototype.dispose=function(){this._zr.remove(this.el)};var sT=lT;function lT(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),cT(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}function uT(t){return Math.max(0,t)}function hT(t){var e=uT(t.shadowBlur||0),n=uT(t.shadowOffsetX||0),t=uT(t.shadowOffsetY||0);return{left:uT(e-n),right:uT(e+n),top:uT(e-t),bottom:uT(e+t)}}function cT(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var pT,dT=new kl({shape:{x:-1,y:-1,width:2,height:2}}),fT=(a(gT,pT=Sm),gT.prototype.init=function(t,e){var n;!w.node&&e.getDom()&&(t=t.getComponent("tooltip"),n=this._renderMode="auto"===(n=t.get("renderMode"))?w.domSupported?"html":"richText":n||"html",this._tooltipContent="richText"===n?new sT(e):new rT(e,{appendTo:t.get("appendToBody",!0)?"body":t.get("appendTo",!0)}))},gT.prototype.render=function(t,e,n){!w.node&&n.getDom()&&(this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,(e=this._tooltipContent).update(t),e.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?Vm(this,"_updatePosition",50,"fixRate"):Fm(this,"_updatePosition"))},gT.prototype._initGlobalListener=function(){var i=this._tooltipModel.get("triggerOn");AM("itemTooltip",this._api,M(function(t,e,n){"none"!==i&&(0<=i.indexOf(t)?this._tryShow(e,n):"leave"===t&&this._hide(n))},this))},gT.prototype._keepShow=function(){var t,e=this._tooltipModel,n=this._ecModel,i=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(){i.isDisposed()||t.manuallyShowTip(e,n,i,{x:t._lastX,y:t._lastY,dataByCoordSys:t._lastDataByCoordSys})}))},gT.prototype.manuallyShowTip=function(t,e,n,i){var o,r,a,s;i.from!==this.uid&&!w.node&&n.getDom()&&(o=mT(i,n),this._ticket="",s=i.dataByCoordSys,(r=function(n,t,e){var i=wa(n).queryOptionMap,o=i.keys()[0];if(o&&"series"!==o){var r,t=Ta(t,o,i.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(t)if(e.getViewOfComponentModel(t).group.traverse(function(t){var e=W(t).tooltipConfig;if(e&&e.name===n.name)return r=t,!0}),r)return{componentMainType:o,componentIndex:t.componentIndex,el:r}}}(i,e,n))?((a=r.el.getBoundingRect().clone()).applyTransform(r.el.transform),this._tryShow({offsetX:a.x+a.width/2,offsetY:a.y+a.height/2,target:r.el,position:i.position,positionDefault:"bottom"},o)):i.tooltip&&null!=i.x&&null!=i.y?((a=dT).x=i.x,a.y=i.y,a.update(),W(a).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:a},o)):s?this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o):null!=i.seriesIndex?this._manuallyAxisShowTip(t,e,n,i)||(a=(r=BM(i,e)).point[0],s=r.point[1],null!=a&&null!=s&&this._tryShow({offsetX:a,offsetY:s,target:r.el,position:i.position,positionDefault:"bottom"},o)):null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o)))},gT.prototype.manuallyHideTip=function(t,e,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(mT(i,n))},gT.prototype._manuallyAxisShowTip=function(t,e,n,i){var o=i.seriesIndex,r=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=r&&null!=a){a=e.getSeriesByIndex(o);if(a){e=yT([a.getData().getItemModel(r),a,(a.coordinateSystem||{}).model],this._tooltipModel);if("axis"===e.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:r,position:i.position}),!0}}},gT.prototype._tryShow=function(t,e){var n,i,o,r=t.target;this._tooltipModel&&(this._lastX=t.offsetX,this._lastY=t.offsetY,(n=t.dataByCoordSys)&&n.length?this._showAxisTooltip(n,t):r?"legend"!==W(r).ssrType&&(v0(r,function(t){if(t.tooltipDisabled)return i=o=null,1;i||o||(null!=W(t).dataIndex?i=t:null!=W(t).tooltipConfig&&(o=t))},!(this._lastDataByCoordSys=null)),i?this._showSeriesItemTooltip(t,i,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)):(this._lastDataByCoordSys=null,this._hide(e)))},gT.prototype._showOrMove=function(t,e){t=t.get("showDelay");e=M(e,this),clearTimeout(this._showTimout),0<t?this._showTimout=setTimeout(e,t):e()},gT.prototype._showAxisTooltip=function(t,e){var u=this._ecModel,h=this._tooltipModel,n=[e.offsetX,e.offsetY],i=yT([e.tooltipOption],h),c=this._renderMode,p=[],d=tm("section",{blocks:[],noHeader:!0}),f=[],g=new um,o=(Z(t,function(t){Z(t.dataByAxis,function(o){var r,a,s=u.getComponent(o.axisDim+"Axis",o.axisIndex),l=o.value;s&&null!=l&&(r=yM(l,s.axis,u,o.seriesDataIndices,o.valueLabelOpt),a=tm("section",{header:r,noHeader:!It(r),sortBlocks:!0,blocks:[]}),d.blocks.push(a),Z(o.seriesDataIndices,function(t){var e,n=u.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,i=n.getDataParams(t);i.dataIndex<0||(i.axisDim=o.axisDim,i.axisIndex=o.axisIndex,i.axisType=o.axisType,i.axisId=o.axisId,i.axisValue=lx(s.axis,{value:l}),i.axisValueLabel=r,i.marker=g.makeTooltipMarker("item",Yd(i.color),c),(e=(t=ny(n.formatTooltip(t,!0,null))).frag)&&(n=yT([n],h).get("valueFormatter"),a.blocks.push(n?G({valueFormatter:n},e):e)),t.text&&f.push(t.text),p.push(i))}))})}),d.blocks.reverse(),f.reverse(),e.position),e=i.get("order"),e=rm(d,g,c,e,u.get("useUTC"),i.get("textStyle")),e=(e&&f.unshift(e),"richText"===c?"\n\n":"<br/>"),r=f.join(e);this._showOrMove(i,function(){this._updateContentNotChangedOnAxis(t,p)?this._updatePosition(i,o,n[0],n[1],this._tooltipContent,p):this._showTooltipContent(i,r,p,Math.random()+"",n[0],n[1],o,null,g)})},gT.prototype._showSeriesItemTooltip=function(t,e,n){var i,o,r,a,s,l=this._ecModel,e=W(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=yT([d.getItemModel(p),c,h&&(h.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),h=y.get("trigger");null!=h&&"item"!==h||(i=c.getDataParams(p,e),o=new um,i.marker=o.makeTooltipMarker("item",Yd(i.color),f),g=ny(c.formatTooltip(p,!1,e)),h=y.get("order"),e=y.get("valueFormatter"),r=g.frag,a=r?rm(e?G({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,i,s,t.offsetX,t.offsetY,t.position,t.target,o)}),n({type:"showTip",dataIndexInside:p,dataIndex:d.getRawIndex(p),seriesIndex:u,from:this.uid}))},gT.prototype._showComponentItemTooltip=function(e,n,t){var i="html"===this._renderMode,o=W(n),r=o.tooltipConfig.option||{},a=r.encodeHTMLContent,a=(F(r)&&(r={content:r,formatter:r},a=!0),a&&i&&r.content&&((r=S(r)).content=xe(r.content)),[r]),i=this._ecModel.getComponent(o.componentMainType,o.componentIndex),o=(i&&a.push(i),a.push({formatter:r.content}),e.positionDefault),s=yT(a,this._tooltipModel,o?{position:o}:null),l=s.get("content"),u=Math.random()+"",h=new um;this._showOrMove(s,function(){var t=S(s.get("formatterParams")||{});this._showTooltipContent(s,l,t,u,e.offsetX,e.offsetY,e.position,n,h)}),t({type:"showTip",from:this.uid})},gT.prototype._showTooltipContent=function(n,t,i,e,o,r,a,s,l){var u,h,c,p,d;this._ticket="",n.get("showContent")&&n.get("show")&&((u=this._tooltipContent).setEnterable(n.get("enterable")),h=n.get("formatter"),a=a||n.get("position"),t=t,c=this._getNearestPoint([o,r],i,n.get("trigger"),n.get("borderColor"),n.get("defaultBorderColor",!0)).color,h&&(t=F(h)?(p=n.ecModel.get("useUTC"),t=h,Zd(t=(d=V(i)?i[0]:i)&&d.axisType&&0<=d.axisType.indexOf("time")?Sd(d.axisValue,t,p):t,i,!0)):z(h)?(d=M(function(t,e){t===this._ticket&&(u.setContent(e,l,n,c,a),this._updatePosition(n,a,o,r,u,i,s))},this),this._ticket=e,h(i,e,d)):h),u.setContent(t,l,n,c,a),u.show(n,c),this._updatePosition(n,a,o,r,u,i,s))},gT.prototype._getNearestPoint=function(t,e,n,i,o){return"axis"===n||V(e)?{color:i||o}:V(e)?void 0:{color:i||e.color||e.borderColor}},gT.prototype._updatePosition=function(t,e,n,i,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=z(e)?e([n,i],r,o.el,d,{viewSize:[l,u],contentSize:h.slice()}):e)?(n=Hr(e[0],l),i=Hr(e[1],u)):N(e)?((r=e).width=h[0],r.height=h[1],n=(r=sf(r,{width:l,height:u})).x,i=r.y,p=c=null):i=(n=(s=F(e)&&a?function(t,e,n,i){var o=n[0],r=n[1],a=Math.ceil(Math.SQRT2*i)+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,n,i,o,r,a){var n=n.getSize(),s=n[0],n=n[1];null!=r&&(i<t+s+r+2?t-=s+r:t+=r);null!=a&&(o<e+n+a?e-=n+a:e+=a);return[t,e]}(n,i,o,l,u,c?null:20,p?null:20))[0],s[1]),c&&(n-=vT(c)?h[0]/2:"right"===c?h[0]:0),p&&(i-=vT(p)?h[1]/2:"bottom"===p?h[1]:0),jM(t)&&(r=n,a=i,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),n=(s=[r,a])[0],i=s[1]),o.moveTo(n,i)},gT.prototype._updateContentNotChangedOnAxis=function(n,r){var t=this._lastDataByCoordSys,a=this._cbParamsList,s=!!t&&t.length===n.length;return s&&Z(t,function(t,e){var t=t.dataByAxis||[],o=(n[e]||{}).dataByAxis||[];(s=s&&t.length===o.length)&&Z(t,function(t,e){var e=o[e]||{},n=t.seriesDataIndices||[],i=e.seriesDataIndices||[];(s=s&&t.value===e.value&&t.axisType===e.axisType&&t.axisId===e.axisId&&n.length===i.length)&&Z(n,function(t,e){e=i[e];s=s&&t.seriesIndex===e.seriesIndex&&t.dataIndex===e.dataIndex}),a&&Z(t.seriesDataIndices,function(t){var t=t.seriesIndex,e=r[t],t=a[t];e&&t&&t.data!==e.data&&(s=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!s},gT.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},gT.prototype.dispose=function(t,e){!w.node&&e.getDom()&&(Fm(this,"_updatePosition"),this._tooltipContent.dispose(),OM("itemTooltip",e))},gT.type="tooltip",gT);function gT(){var t=null!==pT&&pT.apply(this,arguments)||this;return t.type=gT.type,t}function yT(t,e,n){for(var i=e.ecModel,o=n?(o=new $p(n,i,i),new $p(e.option,o,i)):e,r=t.length-1;0<=r;r--){var a=t[r];(a=a&&(F(a=a instanceof $p?a.get("tooltip",!0):a)?{formatter:a}:a))&&(o=new $p(a,o,i))}return o}function mT(t,e){return t.dispatchAction||M(e.dispatchAction,e)}function vT(t){return"center"===t||"middle"===t}function _T(t,e){if(t)for(var n=V(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i][e])return 1}function xT(t){ua(t,"label",["show"])}mx(function(t){mx(ZM),t.registerComponentModel(YM),t.registerComponentView(fT),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Vt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Vt)});var bT,wT=i(),ST=(a(MT,bT=g),MT.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},MT.prototype.isAnimationEnabled=function(){var t;return!w.node&&(t=this.__hostSeries,this.getShallow("animation"))&&t&&t.isAnimationEnabled()},MT.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},MT.prototype._mergeOption=function(t,i,e,o){var r=this.mainType;e||i.eachSeries(function(t){var e=t.get(this.mainType,!0),n=wT(t)[r];e&&e.data?(n?n._mergeOption(e,i,!0):(o&&xT(e),Z(e.data,function(t){t instanceof Array?(xT(t[0]),xT(t[1])):xT(t)}),G(n=this.createMarkerModelFromSeries(e,this,i),{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),n.__hostSeries=t),wT(t)[r]=n):wT(t)[r]=null},this)},MT.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=this.getRawValue(t),i=i.getName(t);return tm("section",{header:this.name,blocks:[tm("nameValue",{name:i,value:o,noName:!i,noValue:null==o})]})},MT.prototype.getData=function(){return this._data},MT.prototype.setData=function(t){this._data=t},MT.prototype.getDataParams=function(t,e){t=ty.prototype.getDataParams.call(this,t,e),e=this.__hostSeries;return e&&(t.seriesId=e.id,t.seriesName=e.name,t.seriesType=e.subType),t},MT.getMarkerModelFromSeries=function(t,e){return wT(t)[e]},MT.type="marker",MT.dependencies=["series","grid","polar","geo"],MT);function MT(){var t=null!==bT&&bT.apply(this,arguments)||this;return t.type=MT.type,t.createdBySelf=!1,t.preventAutoZ=!0,t}ut(ST,ty.prototype);a(IT,TT=ST),IT.prototype.createMarkerModelFromSeries=function(t,e,n){return new IT(t,e,n)},IT.type="markPoint",IT.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}};var TT,CT=IT;function IT(){var t=null!==TT&&TT.apply(this,arguments)||this;return t.type=IT.type,t}function kT(t){return!isNaN(parseFloat(t.x))||!isNaN(parseFloat(t.y))}function DT(t,e,n,i,o,r,a){var s=[],l=s_(e,o)?e.getCalculationInfo("stackResultDimension"):o,t=zT(e,l,t),n=e.hostModel.indicesOfNearest(n,l,t)[0],t=(s[r]=e.get(i,n),s[a]=e.get(l,n),e.get(o,n)),r=Ur(e.get(o,n));return 0<=(r=Math.min(r,20))&&(s[a]=+s[a].toFixed(r)),[s,t]}var AT={min:T(DT,"min"),max:T(DT,"max"),average:T(DT,"average"),median:T(DT,"median")};function PT(t,e){if(e){var n,i=t.getData(),o=t.coordinateSystem,r=o&&o.dimensions;if(n=e,(isNaN(parseFloat(n.x))||isNaN(parseFloat(n.y)))&&!V(e.coord)&&V(r)&&(n=LT(e,i,o,t),(e=S(e)).type&&AT[e.type]&&n.baseAxis&&n.valueAxis?(u=U(r,n.baseAxis.dim),l=U(r,n.valueAxis.dim),n=AT[e.type](i,n.valueAxis.dim,n.baseDataDim,n.valueDataDim,u,l),e.coord=n[0],e.value=n[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++)AT[a[s]]&&(a[s]=zT(i,i.mapDimension(r[s]),a[s]));else{e.coord=[];var l,u=t.getBaseAxis();u&&e.type&&AT[e.type]&&(l=o.getOtherAxis(u))&&(e.value=zT(i,i.mapDimension(l.dim),e.type))}return e}}function LT(t,e,n,i){var o={};return null!=t.valueIndex||null!=t.valueDim?(o.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,o.valueAxis=n.getAxis(function(t,e){t=t.getData().getDimensionInfo(e);return t&&t.coordDim}(i,o.valueDataDim)),o.baseAxis=n.getOtherAxis(o.valueAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim)):(o.baseAxis=i.getBaseAxis(),o.valueAxis=n.getOtherAxis(o.baseAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim),o.valueDataDim=e.mapDimension(o.valueAxis.dim)),o}function OT(t,e){return!(t&&t.containData&&e.coord&&!kT(e))||t.containData(e.coord)}function RT(t,o){return t?function(t,e,n,i){return gy(i<2?t.coord&&t.coord[i]:t.value,o[i])}:function(t,e,n,i){return gy(t.value,o[i])}}function zT(t,e,n){var i,o;return"average"===n?(o=i=0,t.each(e,function(t,e){isNaN(t)||(i+=t,o++)}),i/o):"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var NT,BT=i(),Wp=(a(ET,NT=Sm),ET.prototype.init=function(){this.markerGroupMap=L()},ET.prototype.render=function(t,n,i){var o,r,a=this,e=this.markerGroupMap;e.each(function(t){BT(t).keep=!1}),n.eachSeries(function(t){var e=ST.getMarkerModelFromSeries(t,a.type);e&&a.renderSeries(t,e,n,i)}),e.each(function(t){BT(t).keep||a.group.remove(t.group)}),o=e,r=this.type,n.eachSeries(function(t){var e,n=ST.getMarkerModelFromSeries(t,r),t=o.get(t.id);n&&t&&t.group&&(e=(n=xp(n)).z,n=n.zlevel,bp(t.group,e,n))})},ET.prototype.markKeep=function(t){BT(t).keep=!0},ET.prototype.toggleBlurSeries=function(t,e){var n=this;Z(t,function(t){t=ST.getMarkerModelFromSeries(t,n.type);t&&t.getData().eachItemGraphicEl(function(t){t&&(e?Cu:Iu)(t)})})},ET.type="marker",ET);function ET(){var t=null!==NT&&NT.apply(this,arguments)||this;return t.type=ET.type,t}function VT(s,l,t){var u=l.coordinateSystem,h=t.getWidth(),c=t.getHeight(),p=u&&u.getArea&&u.getArea();s.each(function(t){var e,n=s.getItemModel(t),i="coordinate"===n.get("relativeTo"),o=i?p?p.width:0:h,r=i?p?p.height:0:c,a=i&&p?p.x:0,i=i&&p?p.y:0,o=Hr(n.get("x"),o)+a,a=Hr(n.get("y"),r)+i;isNaN(o)||isNaN(a)?l.getMarkerPosition?e=l.getMarkerPosition(s.getValues(s.dimensions,t)):u&&(n=s.get(u.dimensions[0],t),r=s.get(u.dimensions[1],t),e=u.dataToPoint([n,r])):e=[o,a],isNaN(o)||(e[0]=o),isNaN(a)||(e[1]=a),s.setItemLayout(t,e)})}a(WT,FT=Wp),WT.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=ST.getMarkerModelFromSeries(t,"markPoint");e&&(VT(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())},this)},WT.prototype.renderSeries=function(t,u,e,n){var i=t.coordinateSystem,o=t.id,h=t.getData(),r=this.markerGroupMap,r=r.get(o)||r.set(o,new dw),c=function(t,e,n){var i;i=t?E(t&&t.dimensions,function(t){return G(G({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}];var o=new e_(i,n),n=E(n.get("data"),T(PT,e));t&&(n=pt(n,T(OT,t)));t=RT(!!t,i);return o.initData(n,null,t),o}(i,t,u);u.setData(c),VT(u.getData(),t,n),c.each(function(t){var e=c.getItemModel(t),n=e.getShallow("symbol"),i=e.getShallow("symbolSize"),o=e.getShallow("symbolRotate"),r=e.getShallow("symbolOffset"),a=e.getShallow("symbolKeepAspect"),s=((z(n)||z(i)||z(o)||z(r))&&(s=u.getRawValue(t),l=u.getDataParams(t),z(n)&&(n=n(s,l)),z(i)&&(i=i(s,l)),z(o)&&(o=o(s,l)),z(r))&&(r=r(s,l)),e.getModel("itemStyle").getItemStyle()),l=e.get("z2"),e=g0(h,"color");s.fill||(s.fill=e),c.setItemVisual(t,{z2:H(l,0),symbol:n,symbolSize:i,symbolRotate:o,symbolOffset:r,symbolKeepAspect:a,style:s})}),r.updateData(c),this.group.add(r.group),c.eachItemGraphicEl(function(t){t.traverse(function(t){W(t).dataModel=u})}),this.markKeep(r),r.group.silent=u.get("silent")||t.get("silent")},WT.type="markPoint";var FT,HT=WT;function WT(){var t=null!==FT&&FT.apply(this,arguments)||this;return t.type=WT.type,t}mx(function(t){t.registerComponentModel(CT),t.registerComponentView(HT),t.registerPreprocessor(function(t){_T(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})});a(ZT,GT=ST),ZT.prototype.createMarkerModelFromSeries=function(t,e,n){return new ZT(t,e,n)},ZT.type="markLine",ZT.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 GT,UT=ZT;function ZT(){var t=null!==GT&>.apply(this,arguments)||this;return t.type=ZT.type,t}var XT,YT=$h.prototype,qT=ic.prototype,jT=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};function KT(){return null!==XT&&XT.apply(this,arguments)||this}function $T(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}a(KT,XT=jT);a(t2,QT=cl),t2.prototype.getDefaultStyle=function(){return{stroke:I.color.neutral99,fill:null}},t2.prototype.getDefaultShape=function(){return new jT},t2.prototype.buildPath=function(t,e){($T(e)?YT:qT).buildPath.call(this,t,e)},t2.prototype.pointAt=function(t){return($T(this.shape)?YT:qT).pointAt.call(this,t)},t2.prototype.tangentAt=function(t){var e=this.shape,e=$T(e)?[e.x2-e.x1,e.y2-e.y1]:qT.tangentAt.call(this,t);return Kt(e,e)};var QT,JT=t2;function t2(t){t=QT.call(this,t)||this;return t.type="ec-line",t}var e2=["fromSymbol","toSymbol"];function n2(t){return"_"+t+"Type"}function i2(t,e,n){var i,o,r,a=e.getItemVisual(n,t);return a&&"none"!==a?(i=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),r=e.getItemVisual(n,t+"Offset"),e=e.getItemVisual(n,t+"KeepAspect"),a+(n=P0(i))+L0(r||0,n)+(o||"")+(e||"")):a}function o2(t,e,n){var i,o,r,a=e.getItemVisual(n,t);if(a&&"none"!==a)return r=e.getItemVisual(n,t+"Size"),i=e.getItemVisual(n,t+"Rotate"),o=e.getItemVisual(n,t+"Offset"),e=e.getItemVisual(n,t+"KeepAspect"),o=L0(o||0,n=P0(r)),(r=A0(a,-n[0]/2+o[0],-n[1]/2+o[1],n[0],n[1],null,e)).__specifiedRotation=null==i||isNaN(i)?void 0:+i*Math.PI/180||0,r.name=t,r}function r2(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)}a(l2,a2=Mr),l2.prototype._createLine=function(n,i,t){var e,o=n.hostModel,r=n.getItemLayout(i),a=n.getItemVisual(i,"z2"),r=(r=r,r2((e=new JT({name:"line",subPixelOptimize:!0})).shape,r),e);r.shape.percent=0,Bc(r,{z2:H(a,0),shape:{percent:1}},o,i),this.add(r),Z(e2,function(t){var e=o2(t,n,i);this.add(e),this[n2(t)]=i2(t,n,i)},this),this._updateCommonStl(n,i,t)},l2.prototype.updateData=function(i,o,t){var e=i.hostModel,n=this.childOfName("line"),r=i.getItemLayout(o),a={shape:{}};r2(a.shape,r),Nc(n,a,e,o),Z(e2,function(t){var e=i2(t,i,o),n=n2(t);this[n]!==e&&(this.remove(this.childOfName(t)),t=o2(t,i,o),this.add(t)),this[n]=e},this),this._updateCommonStl(i,o,t)},l2.prototype.getLinePath=function(){return this.childAt(0)},l2.prototype._updateCommonStl=function(n,t,e){var i=n.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&&!n.hasItemOption||(o=(f=(e=n.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=Ip(e)),n.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,Z(e2,function(t){var e=this.childOfName(t);if(e){e.setColor(d),e.style.opacity=p.opacity;for(var n=0;n<eu.length;n++){var i=eu[n],o=r.getState(i);o&&(o=o.style||{},i=(i=e.ensureState(i)).style||(i.style={}),null!=o.stroke&&(i[e.__isEmptyBrush?"stroke":"fill"]=o.stroke),null!=o.opacity)&&(i.opacity=o.opacity)}e.markRedraw()}},this),i.getRawValue(t)),e=(Cp(this,l,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,e){return i.getFormattedLabel(t,e,n.dataType)}},inheritColor:d||I.color.neutral99,defaultOpacity:p.opacity,defaultText:(null==f?n.getName(t):isFinite(f)?Wr(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}),Bu(this,h,c,u)},l2.prototype.highlight=function(){Mu(this)},l2.prototype.downplay=function(){Tu(this)},l2.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},l2.prototype.setLinePoints=function(t){var e=this.childOfName("line");r2(e.shape,t),e.dirty()},l2.prototype.beforeUpdate=function(){var t=this.childOfName("fromSymbol"),e=this.childOfName("toSymbol"),n=this.getTextContent();if(t||e||n&&!n.ignore){for(var i=1,o=this.parent;o;)o.scaleX&&(i/=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(Kt(u,u),t&&(t.setPosition(s),v(t,0),t.scaleX=t.scaleY=i*a,t.markRedraw()),e&&(e.setPosition(l),v(e,1),e.scaleX=e.scaleY=i*a,e.markRedraw()),n&&!n.ignore){n.x=n.y=0;var h=void(n.originX=n.originY=0),c=void 0,t=n.__labelDistance,p=t[0]*i,d=t[1]*i,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"!==n.__position&&"end"!==n.__position&&(a=-Math.atan2(f[1],f[0]),l[0]<s[0]&&(a=Math.PI+a),n.rotation=a),void 0);switch(n.__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(n.__position){case"end":n.x=u[0]*p+l[0],n.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":n.x=-u[0]*p+s[0],n.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":n.x=p*y+s[0],n.y=s[1]+m,h=f[0]<0?"right":"left",n.originX=-p*y,n.originY=-m;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=g[0],n.y=g[1]+m,h="center",n.originY=-m;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-p*y+l[0],n.y=l[1]+m,h=0<=f[0]?"right":"left",n.originX=p*y,n.originY=-m}n.scaleX=n.scaleY=i,n.setStyle({verticalAlign:n.__verticalAlign||c,align:n.__align||h})}}}function v(t,e){var n,i=t.__specifiedRotation;null==i?(n=r.tangentAt(e),t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(n[1],n[0]))):t.attr("rotation",i)}};var a2,s2=l2;function l2(t,e,n){var i=a2.call(this)||this;return i._createLine(t,e,n),i}h2.prototype.updateData=function(n){var i=this,e=(this._progressiveEls=null,this.group),o=this._lineData,r=(this._lineData=n,o||e.removeAll(),c2(n));n.diff(o).add(function(t){i._doAdd(n,t,r)}).update(function(t,e){i._doUpdate(o,n,e,t,r)}).remove(function(t){e.remove(o.getItemGraphicEl(t))}).execute()},h2.prototype.updateLayout=function(){var n=this._lineData;n&&n.eachItemGraphicEl(function(t,e){t.updateLayout(n,e)},this)},h2.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=c2(t),this._lineData=null,this.group.removeAll()},h2.prototype.incrementalUpdate=function(t,e){function n(t){var e;t.isGroup||(e=t).animators&&0<e.animators.length||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i,o=t.start;o<t.end;o++)d2(e.getItemLayout(o))&&((i=new this._LineCtor(e,o,this._seriesScope)).traverse(n),this.group.add(i),e.setItemGraphicEl(o,i),this._progressiveEls.push(i))},h2.prototype.remove=function(){this.group.removeAll()},h2.prototype.eachRendered=function(t){yp(this._progressiveEls||this.group,t)},h2.prototype._doAdd=function(t,e,n){d2(t.getItemLayout(e))&&(n=new this._LineCtor(t,e,n),t.setItemGraphicEl(e,n),this.group.add(n))},h2.prototype._doUpdate=function(t,e,n,i,o){t=t.getItemGraphicEl(n);d2(e.getItemLayout(i))?(t?t.updateData(e,i,o):t=new this._LineCtor(e,i,o),e.setItemGraphicEl(i,t),this.group.add(t)):this.group.remove(t)};var u2=h2;function h2(t){this.group=new Mr,this._LineCtor=t||s2}function c2(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:Ip(t)}}function p2(t){return isNaN(t[0])||isNaN(t[1])}function d2(t){return t&&!p2(t[0])&&!p2(t[1])}function f2(t,e,n,i){var o,r,a,s,l=t.getData();return(e=[PT(t,(n=V(i)?i:"min"===(o=i.type)||"max"===o||"average"===o||"median"===o||null!=i.xAxis||null!=i.yAxis?(r=s=void 0,r=null!=i.yAxis||null!=i.xAxis?(s=e.getAxis(null!=i.yAxis?"y":"x"),wt(i.yAxis,i.xAxis)):(s=(e=LT(i,l,e,t)).valueAxis,zT(l,l_(l,e.valueDataDim),o)),e=1-(l="x"===s.dim?0:1),s={coord:[]},(a=S(i)).type=null,a.coord=[],a.coord[e]=-1/0,s.coord[e]=1/0,0<=(e=n.get("precision"))&&ft(r)&&(r=+r.toFixed(Math.min(e,20))),a.coord[l]=s.coord[l]=r,[a,s,{type:o,valueIndex:i.valueIndex,value:r}]):[])[0]),PT(t,n[1]),G({},n[2])])[2].type=e[2].type||null,d(e[2],e[0]),d(e[2],e[1]),e}var g2=i();function y2(t){return!isNaN(t)&&!isFinite(t)}function m2(t,e,n,i){var o=1-t,r=i.dimensions[t];return y2(e[o])&&y2(n[o])&&e[t]===n[t]&&i.getAxis(r).containData(e[t])}function v2(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(m2(1,n,i,t)||m2(0,n,i,t)))return!0}return OT(t,e[0])&&OT(t,e[1])}function _2(t,e,n,i,o){var r,a,s=i.coordinateSystem,l=t.getItemModel(e),u=Hr(l.get("x"),o.getWidth()),l=Hr(l.get("y"),o.getHeight());isNaN(u)||isNaN(l)?(r=i.getMarkerPosition?i.getMarkerPosition(t.getValues(t.dimensions,e)):(a=s.dimensions,o=t.get(a[0],e),i=t.get(a[1],e),s.dataToPoint([o,i])),Pw(s,"cartesian2d")&&(o=s.getAxis("x"),i=s.getAxis("y"),a=s.dimensions,y2(t.get(a[0],e))?r[0]=o.toGlobalCoord(o.getExtent()[n?0:1]):y2(t.get(a[1],e))&&(r[1]=i.toGlobalCoord(i.getExtent()[n?0:1]))),isNaN(u)||(r[0]=u),isNaN(l)||(r[1]=l)):r=[u,l],t.setItemLayout(e,r)}a(w2,x2=Wp),w2.prototype.updateTransform=function(t,e,r){e.eachSeries(function(e){var n,i,o,t=ST.getMarkerModelFromSeries(e,"markLine");t&&(n=t.getData(),i=g2(t).from,o=g2(t).to,i.each(function(t){_2(i,t,!0,e,r),_2(o,t,!1,e,r)}),n.each(function(t){n.setItemLayout(t,[i.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(e.id).updateLayout())},this)},w2.prototype.renderSeries=function(r,e,t,a){var n=r.coordinateSystem,i=r.id,s=r.getData(),o=this.markerGroupMap,o=o.get(i)||o.set(i,new u2),i=(this.group.add(o.group),function(t,e,n){var i;i=t?E(t&&t.dimensions,function(t){return G(G({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}];var o=new e_(i,n),r=new e_(i,n),a=new e_([],n),n=E(n.get("data"),T(f2,e,t,n));t&&(n=pt(n,T(v2,t)));t=RT(!!t,i);return o.initData(E(n,function(t){return t[0]}),null,t),r.initData(E(n,function(t){return t[1]}),null,t),a.initData(E(n,function(t){return t[2]})),a.hasItemOption=!0,{from:o,to:r,line:a}}(n,r,e)),l=i.from,u=i.to,h=i.line,c=(g2(e).from=l,g2(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,n){var i=t.getItemModel(e),o=(_2(t,e,n,r,a),i.getModel("itemStyle").getItemStyle());null==o.fill&&(o.fill=g0(s,"color")),t.setItemVisual(e,{symbolKeepAspect:i.get("symbolKeepAspect"),symbolOffset:H(i.get("symbolOffset",!0),f[n?0:1]),symbolRotate:H(i.get("symbolRotate",!0),d[n?0:1]),symbolSize:H(i.get("symbolSize"),p[n?0:1]),symbol:H(i.get("symbol",!0),c[n?0:1]),style:o})}V(c)||(c=[c,c]),V(p)||(p=[p,p]),V(d)||(d=[d,d]),V(f)||(f=[f,f]),i.from.each(function(t){g(l,t,!0),g(u,t,!1)}),h.each(function(t){var e=h.getItemModel(t),n=e.getModel("lineStyle").getLineStyle(),e=(h.setItemLayout(t,[l.getItemLayout(t),u.getItemLayout(t)]),e.get("z2"));null==n.stroke&&(n.stroke=l.getItemVisual(t,"style").fill),h.setItemVisual(t,{z2:H(e,0),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:n})}),o.updateData(h),i.line.eachItemGraphicEl(function(t){W(t).dataModel=e,t.traverse(function(t){W(t).dataModel=e})}),this.markKeep(o),o.group.silent=e.get("silent")||r.get("silent")},w2.type="markLine";var x2,b2=w2;function w2(){var t=null!==x2&&x2.apply(this,arguments)||this;return t.type=w2.type,t}mx(function(t){t.registerComponentModel(UT),t.registerComponentView(b2),t.registerPreprocessor(function(t){_T(t.series,"markLine")&&(t.markLine=t.markLine||{})})});a(T2,S2=ST),T2.prototype.createMarkerModelFromSeries=function(t,e,n){return new T2(t,e,n)},T2.type="markArea",T2.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}};var S2,M2=T2;function T2(){var t=null!==S2&&S2.apply(this,arguments)||this;return t.type=T2.type,t}function C2(t,e,n,i){var o,r=i[0],i=i[1];if(r&&i)return r=PT(t,r),t=PT(t,i),i=r.coord,o=t.coord,i[0]=wt(i[0],-1/0),i[1]=wt(i[1],-1/0),o[0]=wt(o[0],1/0),o[1]=wt(o[1],1/0),(i=at([{},r,t])).coord=[r.coord,t.coord],i.x0=r.x,i.y0=r.y,i.x1=t.x,i.y1=t.y,i}var I2=i();function k2(t){return!isNaN(t)&&!isFinite(t)}function D2(t,e,n){t=1-t;return k2(e[t])&&k2(n[t])}function A2(t,e){var n,i,o,r=e.coord[0],a=e.coord[1],s={coord:r,x:e.x0,y:e.y0},e={coord:a,x:e.x1,y:e.y1};return Pw(t,"cartesian2d")?!((!r||!a||!D2(1,r,a)&&!D2(0,r,a))&&(i=s,o=e,n=t)&&n.containZone&&i.coord&&o.coord&&!kT(i)&&!kT(o))||n.containZone(i.coord,o.coord):OT(t,s)||OT(t,e)}function P2(t,e,n,i,o){var r,a,s,l,u,h,c=i.coordinateSystem,p=t.getItemModel(e),d=Hr(p.get(n[0]),o.getWidth()),p=Hr(p.get(n[1]),o.getHeight());return isNaN(d)||isNaN(p)?(h=i.getMarkerPosition?(o=t.getValues(["x0","y0"],e),s=t.getValues(["x1","y1"],e),a=c.clampData(o),h=c.clampData(s),r=[],"x0"===n[0]?r[0]=(a[0]>h[0]?s:o)[0]:r[0]=(a[0]>h[0]?o:s)[0],"y0"===n[1]?r[1]=(a[1]>h[1]?s:o)[1]:r[1]=(a[1]>h[1]?o:s)[1],i.getMarkerPosition(r,n,!0)):(a=[l=t.get(n[0],e),u=t.get(n[1],e)],c.clampData&&c.clampData(a,a),c.dataToPoint(a,!0)),Pw(c,"cartesian2d")&&(o=c.getAxis("x"),s=c.getAxis("y"),l=t.get(n[0],e),u=t.get(n[1],e),k2(l)?h[0]=o.toGlobalCoord(o.getExtent()["x0"===n[0]?0:1]):k2(u)&&(h[1]=s.toGlobalCoord(s.getExtent()["y0"===n[1]?0:1]))),isNaN(d)||(h[0]=d),isNaN(p)||(h[1]=p)):h=[d,p],h}var L2,O2=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],R2=(a(z2,L2=Wp),z2.prototype.updateTransform=function(t,e,o){e.eachSeries(function(n){var i,t=ST.getMarkerModelFromSeries(n,"markArea");t&&(i=t.getData()).each(function(e){var t=E(O2,function(t){return P2(i,e,t,n,o)});i.setItemLayout(e,t),i.getItemGraphicEl(e).setShape("points",t)})},this)},z2.prototype.renderSeries=function(a,o,t,s){var l=a.coordinateSystem,e=a.id,u=a.getData(),n=this.markerGroupMap,r=n.get(e)||n.set(e,{group:new Mr}),h=(this.group.add(r.group),this.markKeep(r),function(t,n,e){var i,o;{var r;i=t?(r=E(t&&t.dimensions,function(t){var e=n.getData();return G(G({},e.getDimensionInfo(e.mapDimension(t))||{}),{name:t,ordinalMeta:null})}),o=E(["x0","y0","x1","y1"],function(t,e){return{name:t,type:r[e%2].type}}),new e_(o,e)):new e_(o=[{name:"value",type:"float"}],e)}e=E(e.get("data"),T(C2,n,t,e));t&&(e=pt(e,T(A2,t)));t=t?function(t,e,n,i){return gy(t.coord[Math.floor(i/2)][i%2],o[i])}:function(t,e,n,i){return gy(t.value,o[i])};return i.initData(e,null,t),i.hasItemOption=!0,i}(l,a,o));o.setData(h),h.each(function(e){var t=E(O2,function(t){return P2(h,e,t,a,s)}),n=l.getAxis("x").scale,i=l.getAxis("y").scale,o=n.getExtent(),r=i.getExtent(),n=[n.parse(h.get("x0",e)),n.parse(h.get("x1",e))],i=[i.parse(h.get("y0",e)),i.parse(h.get("y1",e))],o=(Gr(n),Gr(i),!(o[0]>n[1]||o[1]<n[0]||r[0]>i[1]||r[1]<i[0])),n=(h.setItemLayout(e,{points:t,allClipped:!o}),h.getItemModel(e)),r=n.getModel("itemStyle").getItemStyle(),i=n.get("z2"),t=g0(u,"color");r.fill||(r.fill=t,F(r.fill)&&(r.fill=zi(r.fill,.4))),r.stroke||(r.stroke=t),h.setItemVisual(e,"style",r),h.setItemVisual(e,"z2",H(i,0))}),h.diff(I2(r).data).add(function(t){var e=h.getItemLayout(t),n=h.getItemVisual(t,"z2");e.allClipped||(n=new Wh({z2:H(n,0),shape:{points:e.points}}),h.setItemGraphicEl(t,n),r.group.add(n))}).update(function(t,e){var e=I2(r).data.getItemGraphicEl(e),n=h.getItemLayout(t),i=h.getItemVisual(t,"z2");n.allClipped?e&&r.group.remove(e):(e?Nc(e,{z2:H(i,0),shape:{points:n.points}},o,t):e=new Wh({shape:{points:n.points}}),h.setItemGraphicEl(t,e),r.group.add(e))}).remove(function(t){t=I2(r).data.getItemGraphicEl(t);r.group.remove(t)}).execute(),h.eachItemGraphicEl(function(t,e){var n=h.getItemModel(e),i=h.getItemVisual(e,"style");t.useStyle(h.getItemVisual(e,"style")),Cp(t,Ip(n),{labelFetcher:o,labelDataIndex:e,defaultText:h.getName(e)||"",inheritColor:F(i.fill)?zi(i.fill,1):I.color.neutral99}),Fu(t,n),Bu(t,null,null,n.get(["emphasis","disabled"])),W(t).dataModel=o}),I2(r).data=h,r.group.silent=o.get("silent")||a.get("silent")},z2.type="markArea",z2);function z2(){var t=null!==L2&&L2.apply(this,arguments)||this;return t.type=z2.type,t}mx(function(t){t.registerComponentModel(M2),t.registerComponentView(R2),t.registerPreprocessor(function(t){_T(t.series,"markArea")&&(t.markArea=t.markArea||{})})});a(B2,N2=g),B2.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},B2.prototype.mergeOption=function(t){N2.prototype.mergeOption.apply(this,arguments),this._initData()},B2.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t=e<=t?e-1:t)<0&&(t=0),this.option.currentIndex=t},B2.prototype.getCurrentIndex=function(){return this.option.currentIndex},B2.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},B2.prototype.setPlayState=function(t){this.option.autoPlay=!!t},B2.prototype.getPlayState=function(){return!!this.option.autoPlay},B2.prototype._initData=function(){var o,t=this.option,e=t.data||[],t=t.axisType,r=this._names=[],e=("category"===t?(o=[],Z(e,function(t,e){var n,i=ga(ca(t),"");N(t)?(n=S(t)).value=e:n=e,o.push(n),r.push(i)})):o=e,{category:"ordinal",time:"time",value:"number"}[t]||"number");(this._data=new e_([{name:"value",type:e}],this)).initData(o,r)},B2.prototype.getData=function(){return this._data},B2.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},B2.type="timeline",B2.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:I.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:I.color.secondary},data:[]};var N2,Ra=B2;function B2(){var t=null!==N2&&N2.apply(this,arguments)||this;return t.type=B2.type,t.layoutMode="box",t}a(F2,E2=Ra),F2.type="timeline.slider",F2.defaultOption=ed(Ra.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:I.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:I.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:I.color.tertiary},itemStyle:{color:I.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:I.color.accent50,borderColor:I.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:I.color.accent50,borderColor:I.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:I.color.accent60},itemStyle:{color:I.color.accent60,borderColor:I.color.accent60},controlStyle:{color:I.color.accent70,borderColor:I.color.accent70}},progress:{lineStyle:{color:I.color.accent30},itemStyle:{color:I.color.accent40}},data:[]});var E2,V2=F2;function F2(){var t=null!==E2&&E2.apply(this,arguments)||this;return t.type=F2.type,t}ut(V2,ty.prototype);a(W2,H2=Sm),W2.type="timeline";var H2,M0=W2;function W2(){var t=null!==H2&&H2.apply(this,arguments)||this;return t.type=W2.type,t}a(Z2,G2=yd),Z2.prototype.getLabelModel=function(){return this.model.getModel("label")},Z2.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")};var G2,U2=Z2;function Z2(t,e,n,i){t=G2.call(this,t,e,n)||this;return t.type=i||"value",t}var X2,Y2=Math.PI,q2=i(),j2=(a(K2,X2=M0),K2.prototype.init=function(t,e){this.api=e},K2.prototype.render=function(e,t,n){var i,o,r;this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)&&(i=this._layout(e,n),o=this._createGroup("_mainGroup"),t=this._createGroup("_labelGroup"),r=this._axis=this._createAxis(i,e),e.formatTooltip=function(t){return tm("nameValue",{noName:!0,value:r.scale.getLabel({value:t})})},Z(["AxisLine","AxisTick","Control","CurrentPointer"],function(t){this["_render"+t](i,o,r,e)},this),this._renderAxisLabel(i,t,r,e),this._position(i,e)),this._doPlayStop(),this._updateTicksStatus()},K2.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},K2.prototype.dispose=function(){this._clearTimer()},K2.prototype._layout=function(t,e){var n,i,o,r=t.get(["label","position"]),a=t.get("orient"),s=(s=e,sf((l=t).getBoxLayoutParams(),hf(l,s).refContainer,l.get("padding"))),l=null==r||"auto"===r?"horizontal"===a?s.y+s.height/2<e.getHeight()/2?"-":"+":s.x+s.width/2<e.getWidth()/2?"+":"-":F(r)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][r]:r,e={horizontal:"center",vertical:0<=l||"+"===l?"left":"right"},r={horizontal:0<=l||"+"===l?"top":"bottom",vertical:"middle"},u={horizontal:0,vertical:Y2/2},h="vertical"===a?s.height:s.width,c=t.getModel("controlStyle"),p=c.get("show",!0),d=p?c.get("itemSize"):0,f=p?c.get("itemGap"):0,g=d+f,y=(t.get(["label","rotate"])||0)*Y2/180,m=c.get("position",!0),v=p&&c.get("showPlayBtn",!0),_=p&&c.get("showPrevBtn",!0),p=p&&c.get("showNextBtn",!0),c=0,x=h,m=("left"===m||"bottom"===m?(v&&(n=[0,0],c+=g),_&&(i=[c,0],c+=g)):(v&&(n=[x-d,0],x-=g),_&&(i=[0,0],c+=g)),p&&(o=[x-d,0],x-=g),[c,x]);return t.get("inverse")&&m.reverse(),{viewRect:s,mainLength:h,orient:a,rotation:u[a],labelRotation:y,labelPosOpt:l,labelAlign:t.get(["label","align"])||e[a],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||r[a],playPosition:n,prevBtnPosition:i,nextBtnPosition:o,axisExtent:m,controlSize:d,controlGap:f}},K2.prototype._position=function(t,e){var n,i=this._mainGroup,o=this._labelGroup,r=t.viewRect,a=("vertical"===t.orient&&(Ve(u=ze(),u,[-(s=r.x),-(l=r.y+r.height)]),Fe(u,u,-Y2/2),Ve(u,u,[s,l]),(r=r.clone()).applyTransform(u)),p(r)),s=p(i.getBoundingRect()),l=p(o.getBoundingRect()),u=[i.x,i.y],r=[o.x,o.y],h=(r[0]=u[0]=a[0][0],t.labelPosOpt);function c(t){t.originX=a[0][0]-t.x,t.originY=a[1][0]-t.y}function p(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function d(t,e,n,i,o){t[i]+=n[i][o]-e[i][o]}null==h||F(h)?(d(u,s,a,1,n="+"===h?0:1),d(r,l,a,1,1-n)):(d(u,s,a,1,n=0<=h?0:1),r[1]=u[1]+h),i.setPosition(u),o.setPosition(r),i.rotation=o.rotation=t.rotation,c(i),c(o)},K2.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),o=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new C_({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new F_({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new A_}}(e,i),r=(o.getTicks=function(){return n.mapArray(["value"],function(t){return{value:t}})},n.getDataExtent("value")),r=(o.setExtent(r[0],r[1]),o.calcNiceTicks(),new U2("value",o,t.axisExtent,i));return r.model=e,r},K2.prototype._createGroup=function(t){t=this[t]=new Mr;return this.group.add(t),t},K2.prototype._renderAxisLine=function(t,e,n,i){var o,n=n.getExtent();i.get(["lineStyle","show"])&&(o=new $h({shape:{x1:n[0],y1:0,x2:n[1],y2:0},style:G({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}),e.add(o),n=this._progressLine=new $h({shape:{x1:n[0],x2:this._currentPointer?this._currentPointer.x:n[0],y1:0,y2:0},style:B({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1}),e.add(n))},K2.prototype._renderAxisTick=function(t,a,s,l){var u=this,h=l.getData(),e=s.scale.getTicks();this._tickSymbols=[],Z(e,function(t){var e=s.dataToCoord(t.value),n=h.getItemModel(t.value),i=n.getModel("itemStyle"),o=n.getModel(["emphasis","itemStyle"]),r=n.getModel(["progress","itemStyle"]),e={x:e,y:0,onclick:M(u._changeTimeline,u,t.value)},i=$2(n,i,a,e),e=(i.ensureState("emphasis").style=o.getItemStyle(),i.ensureState("progress").style=r.getItemStyle(),Nu(i),W(i));n.get("tooltip")?(e.dataIndex=t.value,e.dataModel=l):e.dataIndex=e.dataModel=null,u._tickSymbols.push(i)})},K2.prototype._renderAxisLabel=function(a,s,l,t){var u,h=this;l.getLabelModel().get("show")&&(u=t.getData(),t=l.getViewLabels(),this._tickLabels=[],Z(t,function(t){var e=t.tickValue,n=u.getItemModel(e),i=n.getModel("label"),o=n.getModel(["emphasis","label"]),n=n.getModel(["progress","label"]),r=l.dataToCoord(t.tickValue),r=new Rl({x:r,y:0,rotation:a.labelRotation-a.rotation,onclick:M(h._changeTimeline,h,e),silent:!1,style:kp(i,{text:t.formattedLabel,align:a.labelAlign,verticalAlign:a.labelBaseline})});r.ensureState("emphasis").style=kp(o),r.ensureState("progress").style=kp(n),s.add(r),Nu(r),q2(r).dataIndex=e,h._tickLabels.push(r)}))},K2.prototype._renderControl=function(t,r,e,a){var s=t.controlSize,l=t.rotation,u=a.getModel("controlStyle").getItemStyle(),h=a.getModel(["emphasis","controlStyle"]).getItemStyle(),n=a.getPlayState(),i=a.get("inverse",!0);function o(t,e,n,i){var o;t&&(o=ur(H(a.get(["controlStyle",e+"BtnSize"]),s),s),(e=function(t,e,n,i){var o=i.style,t=lp(t.get(["controlStyle",e]),i||{},new q(n[0],n[1],n[2],n[3]));o&&t.setStyle(o);return t}(a,e+"Icon",[0,-o/2,o,o],{x:t[0],y:t[1],originX:s/2,originY:0,rotation:i?-l:0,rectHover:!0,style:u,onclick:n})).ensureState("emphasis").style=h,r.add(e),Nu(e))}o(t.nextBtnPosition,"next",M(this._changeTimeline,this,i?"-":"+")),o(t.prevBtnPosition,"prev",M(this._changeTimeline,this,i?"+":"-")),o(t.playPosition,n?"stop":"play",M(this._handlePlayClick,this,!n),!0)},K2.prototype._renderCurrentPointer=function(t,e,n,i){var o=i.getData(),r=i.getCurrentIndex(),o=o.getItemModel(r).getModel("checkpointStyle"),a=this;this._currentPointer=$2(o,o,this._mainGroup,{},this._currentPointer,{onCreate:function(t){t.draggable=!0,t.drift=M(a._handlePointerDrag,a),t.ondragend=M(a._handlePointerDragend,a),Q2(t,a._progressLine,r,n,i,!0)},onUpdate:function(t){Q2(t,a._progressLine,r,n,i)}})},K2.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},K2.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},K2.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},K2.prototype._pointerChangeTimeline=function(t,e){var t=this._toAxisCoord(t)[0],n=Gr(this._axis.getExtent().slice()),n=((t=t>n[1]?n[1]:t)<n[0]&&(t=n[0]),this._currentPointer.x=t,this._currentPointer.markRedraw(),this._progressLine),n=(n&&(n.shape.x2=t,n.dirty()),this._findNearestTick(t)),t=this.model;(e||n!==t.getCurrentIndex()&&t.get("realtime"))&&this._changeTimeline(n)},K2.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},K2.prototype._toAxisCoord=function(t){return ip(t,this._mainGroup.getLocalTransform(),!0)},K2.prototype._findNearestTick=function(n){var i,t=this.model.getData(),o=1/0,r=this._axis;return t.each(["value"],function(t,e){t=r.dataToCoord(t),t=Math.abs(t-n);t<o&&(o=t,i=e)}),i},K2.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},K2.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},K2.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var i=0;i<e.length;i++)e&&e[i]&&e[i].toggleState("progress",i<t);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",q2(n[i]).dataIndex<=t)},K2.type="timeline.slider",K2);function K2(){var t=null!==X2&&X2.apply(this,arguments)||this;return t.type=K2.type,t}function $2(t,e,n,i,o,r){var a=e.get("color"),a=(o?(o.setColor(a),n.add(o),r&&r.onUpdate(o)):((o=A0(t.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(o),r&&r.onCreate(o)),e.getItemStyle(["color"])),n=(o.setStyle(a),i=d({rectHover:!0,z2:100},i,!0),P0(t.get("symbolSize"))),r=(i.scaleX=n[0]/2,i.scaleY=n[1]/2,L0(t.get("symbolOffset"),n)),e=(r&&(i.x=(i.x||0)+r[0],i.y=(i.y||0)+r[1]),t.get("symbolRotate"));return i.rotation=(e||0)*Math.PI/180||0,o.attr(i),o.updateTransform(),o}function Q2(t,e,n,i,o,r){var a;t.dragging||(a=o.getModel("checkpointStyle"),i=i.dataToCoord(o.getData().get("value",n)),r||!a.get("animation",!0)?(t.attr({x:i,y:0}),e&&e.attr({shape:{x2:i}})):(o={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)},t.stopAnimation(null,!0),t.animateTo({x:i,y:0},o),e&&e.animateTo({shape:{x2:i}},o)))}function J2(t){t=t&&t.timeline;Z(t=V(t)?t:t?[t]:[],function(t){var e,n;t&&(e=(t=t).type,(n={number:"value",time:"time"})[e]&&(t.axisType=n[e],delete t.type),tC(t),eC(t,"controlPosition")&&(eC(n=t.controlStyle||(t.controlStyle={}),"position")||(n.position=t.controlPosition),"none"!==n.position||eC(n,"show")||(n.show=!1,delete n.position),delete t.controlPosition),Z(t.data||[],function(t){N(t)&&!V(t)&&(!eC(t,"value")&&eC(t,"name")&&(t.value=t.name),tC(t))}))})}function tC(t){var e=t.itemStyle||(t.itemStyle={}),e=e.emphasis||(e.emphasis={}),t=t.label||t.label||{},n=t.normal||(t.normal={}),i={normal:1,emphasis:1};Z(t,function(t,e){i[e]||eC(n,e)||(n[e]=t)}),e.label&&!eC(t,"emphasis")&&(t.emphasis=e.label,delete e.label)}function eC(t,e){return t.hasOwnProperty(e)}mx(function(t){var e;t.registerComponentModel(V2),t.registerComponentView(j2),t.registerSubTypeDefaulter("timeline",function(){return"slider"}),(e=t).registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e,n){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0))&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from})),e.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),B({currentIndex:i.option.currentIndex},t)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){e=e.getComponent("timeline");e&&null!=t.playState&&e.setPlayState(t.playState)}),t.registerPreprocessor(J2)});var nC=["x","y","radius","angle","single"],iC=["cartesian2d","polar","singleAxis"];function oC(t){return t+"Axis"}function rC(t,e){var i,o=L(),n=[],r=L();for(t.eachComponent({mainType:"dataZoom",query:e},function(t){r.get(t.uid)||s(t)});i=!1,t.eachComponent("dataZoom",a),i;);function a(t){var n;!r.get(t.uid)&&(n=!1,t.eachTargetAxis(function(t,e){t=o.get(t);t&&t[e]&&(n=!0)}),n)&&(s(t),i=!0)}function s(t){r.set(t.uid,!0),n.push(t),t.eachTargetAxis(function(t,e){(o.get(t)||o.set(t,[]))[e]=!0})}return n}function aC(t){var o=t.ecModel,r={infoList:[],infoMap:L()};return t.eachTargetAxis(function(t,e){var n,i,t=o.getComponent(oC(t),e);t&&(e=t.getCoordSysModel())&&(n=e.uid,(i=r.infoMap.get(n))||(r.infoList.push(i={model:e,axisModels:[]}),r.infoMap.set(n,i)),i.axisModels.push(t))}),r}lC.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)};var sC=lC;function lC(){this.indexList=[],this.indexMap=[]}a(hC,uC=g),hC.prototype.init=function(t,e,n){var i=cC(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},hC.prototype.mergeOption=function(t){var e=cC(t);d(this.option,t,!0),d(this.settledOption,e,!0),this._doInit(e)},hC.prototype._doInit=function(t){var n=this.option,i=(this._setDefaultThrottle(t),this._updateRangeUse(t),this.settledOption);Z([["start","startValue"],["end","endValue"]],function(t,e){"value"===this._rangePropMode[e]&&(n[t[0]]=i[t[0]]=null)},this),this._resetTarget()},hC.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=L();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)},hC.prototype._fillSpecifiedTargetAxis=function(i){var o=!1;return Z(nC,function(t){var e,n=this.getReferringComponents(oC(t),Ma);n.specified&&(o=!0,e=new sC,Z(n.models,function(t){e.add(t.componentIndex)}),i.set(t,e))},this),o},hC.prototype._fillAutoTargetAxisByOrient=function(r,e){var t,i=this.ecModel,a=!0;function n(t,e){var n,i,o=t[0];o&&((n=new sC).add(o.componentIndex),r.set(e,n),a=!1,"x"!==e&&"y"!==e||(i=o.getReferringComponents("grid",Sa).models[0])&&Z(t,function(t){o.componentIndex!==t.componentIndex&&i===t.getReferringComponents("grid",Sa).models[0]&&n.add(t.componentIndex)}))}a&&n(i.findComponents({mainType:(t="vertical"===e?"y":"x")+"Axis"}),t),a&&n(i.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single"),a&&Z(nC,function(t){var e,n;a&&(e=i.findComponents({mainType:oC(t),filter:function(t){return"category"===t.get("type",!0)}}))[0]&&((n=new sC).add(e[0].componentIndex),r.set(t,n),a=!1)},this)},hC.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){e=e||t},this),"y"===e?"vertical":"horizontal"},hC.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)},hC.prototype._updateRangeUse=function(i){var o=this._rangePropMode,r=this.get("rangeMode");Z([["start","startValue"],["end","endValue"]],function(t,e){var n=null!=i[t[0]],t=null!=i[t[1]];n&&!t?o[e]="percent":!n&&t?o[e]="value":r?o[e]=r[e]:n&&(o[e]="percent")})},hC.prototype.noTarget=function(){return this._noTarget},hC.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(t,e){null==n&&(n=this.ecModel.getComponent(oC(t),e))},this),n},hC.prototype.eachTargetAxis=function(n,i){this._targetAxisInfoMap.each(function(t,e){Z(t.indexList,function(t){n.call(i,e,t)})})},hC.prototype.getAxisProxy=function(t,e){t=this.getAxisModel(t,e);if(t)return t.__dzAxisProxy},hC.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(oC(t),e)},hC.prototype.setRawRange=function(e){var n=this.option,i=this.settledOption;Z([["start","startValue"],["end","endValue"]],function(t){null==e[t[0]]&&null==e[t[1]]||(n[t[0]]=i[t[0]]=e[t[0]],n[t[1]]=i[t[1]]=e[t[1]])},this),this._updateRangeUse(e)},hC.prototype.setCalculatedRange=function(e){var n=this.option;Z(["start","startValue","end","endValue"],function(t){n[t]=e[t]})},hC.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},hC.prototype.getValueRange=function(t,e){return null!=t||null!=e?this.getAxisProxy(t,e).getDataValueWindow():(t=this.findRepresentativeAxisProxy())?t.getDataValueWindow():void 0},hC.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],r=this._targetAxisInfoMap.get(o),a=0;a<r.indexList.length;a++){var s=this.getAxisProxy(o,r.indexList[a]);if(s.hostedBy(this))return s;e=e||s}return e},hC.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},hC.prototype.getOrient=function(){return this._orient},hC.type="dataZoom",hC.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],hC.defaultOption={z:4,filterMode:"filter",start:0,end:100};var uC,ph=hC;function hC(){var t=null!==uC&&uC.apply(this,arguments)||this;return t.type=hC.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}function cC(e){var n={};return Z(["start","end","startValue","endValue","throttle"],function(t){e.hasOwnProperty(t)&&(n[t]=e[t])}),n}a(fC,pC=ph),fC.type="dataZoom.inside",fC.defaultOption=ed(ph.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0});var pC,dC=fC;function fC(){var t=null!==pC&&pC.apply(this,arguments)||this;return t.type=fC.type,t}a(yC,gC=Sm),yC.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},yC.type="dataZoom";var gC,yh=yC;function yC(){var t=null!==gC&&gC.apply(this,arguments)||this;return t.type=yC.type,t}function mC(t,e,n,i,o,r){t=t||0;var a=n[1]-n[0],a=(null!=o&&(o=_C(o,[0,a])),null!=r&&(r=Math.max(r,null!=o?o:0)),"all"===i&&(s=_C(s=Math.abs(e[1]-e[0]),[0,a]),o=r=_C(s,[o,r]),i=0),e[0]=_C(e[0],n),e[1]=_C(e[1],n),vC(e,i)),s=(e[i]+=t,o||0),t=n.slice();return a.sign<0?t[0]+=s:t[1]-=s,e[i]=_C(e[i],t),n=vC(e,i),null!=o&&(n.sign!==a.sign||n.span<o)&&(e[1-i]=e[i]+a.sign*o),n=vC(e,i),null!=r&&n.span>r&&(e[1-i]=e[i]+n.sign*r),e}function vC(t,e){t=t[e]-t[1-e];return{span:Math.abs(t),sign:0<t||!(t<0)&&e?-1:1}}function _C(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var xC=i();function bC(t,e){return xC(t)[e]}m1({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Vt);var wC={axisPointer:1,tooltip:1,brush:1};function SC(t,e,n){e=e.getComponentByElement(t.topTarget);if(e&&e!==n&&!wC.hasOwnProperty(e.mainType)){var t=e.coordinateSystem;if(t&&t.model!==n)return t=xp(e),e=xp(n),(t.zlevel-e.zlevel||t.z-e.z)<=0?void 0:1}}a(CC,MC=ue),CC.prototype.isDragging=function(){return this._dragging},CC.prototype.isPinching=function(){return this._pinching},CC.prototype._checkPointer=function(t,e,n){var i=this._opt,o=i.zInfoParsed;return!(SC(t,i.api,o.component)||(i=(i="global"===(o=i.triggerInfo).roamTrigger)||o.isInSelf(t,e,n))&&o.isInClip&&!o.isInClip(t,e,n))&&i},CC.prototype._decideCursorStyle=function(t,e,n,i){var o=t.target;return!o&&this._checkPointer(t,e,n)?"grab":i?o&&o.cursor||"default":void 0},CC.prototype.dispose=function(){this.disable()},CC.prototype._mousedownHandler=function(t){if(!Ae(t)&&!IC(t)){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,i=t.offsetY;this._checkPointer(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},CC.prototype._mousemoveHandler=function(t){var e,n,i,o,r,a,s=this._zr;"pinch"===t.gestureEvent||bC(s,"globalPan")||IC(t)||(e=t.offsetX,n=t.offsetY,this._dragging&&OC("moveOnMouseMove",t,this._opt)?(s.setCursorStyle("grabbing"),r=e-(i=this._x),a=n-(o=this._y),this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&De(t.event),t.__ecRoamConsumed=!0,LC(this,"pan","moveOnMouseMove",t,{dx:r,dy:a,oldX:i,oldY:o,newX:e,newY:n,isAvailableBehavior:null})):(r=this._decideCursorStyle(t,e,n,!1))&&s.setCursorStyle(r))},CC.prototype._mouseupHandler=function(t){var e;IC(t)||(e=this._zr,!Ae(t)&&(this._dragging=!1,t=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0))&&e.setCursorStyle(t))},CC.prototype._mousewheelHandler=function(t){var e,n,i,o,r,a;IC(t)||(r=OC("zoomOnMouseWheel",t,this._opt),e=OC("moveOnMouseWheel",t,this._opt),n=t.wheelDelta,a=Math.abs(n),i=t.offsetX,o=t.offsetY,0!==n&&(r||e)&&(r&&(r=3<a?1.4:1<a?1.2:1.1,this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:0<n?r:1/r,originX:i,originY:o,isAvailableBehavior:null})),e)&&(a=Math.abs(n),this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(0<n?1:-1)*(3<a?.4:1<a?.15:.05),originX:i,originY:o,isAvailableBehavior:null})))},CC.prototype._pinchHandler=function(t){var e;bC(this._zr,"globalPan")||IC(t)||(e=1<t.pinchScale?1.1:1/1.1,this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null}))},CC.prototype._checkTriggerMoveZoom=function(t,e,n,i,o){t._checkPointer(i,o.originX,o.originY)&&(De(i.event),i.__ecRoamConsumed=!0,LC(t,e,n,i,o))};var MC,TC=CC;function CC(r){var t=MC.call(this)||this,a=(t._zr=r,M(t._mousedownHandler,t)),s=M(t._mousemoveHandler,t),l=M(t._mouseupHandler,t),u=M(t._mousewheelHandler,t),h=M(t._pinchHandler,t);return t.enable=function(t,e){var n=e.zInfo,i=xp(n.component),o=i.z,i=i.zlevel,o={component:n.component,z:o,zlevel:i,z2:H(n.z2,-1/0)},i=G({},e.triggerInfo);this._opt=B(G({},e),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:o,triggerInfo:i}),null==t&&(t=!0),this._enabled&&this._controlType===t||(this._enabled=!0,this.disable(),!0!==t&&"move"!==t&&"pan"!==t||(AC(r,"mousedown",a,o),AC(r,"mousemove",s,o),AC(r,"mouseup",l,o)),!0!==t&&"scale"!==t&&"zoom"!==t)||(AC(r,"mousewheel",u,o),AC(r,"pinch",h,o))},t.disable=function(){this._enabled=!1,PC(r,"mousedown",a),PC(r,"mousemove",s),PC(r,"mouseup",l),PC(r,"mousewheel",u),PC(r,"pinch",h)},t}function IC(t){return t.__ecRoamConsumed}var kC=i();function DC(t){t=kC(t);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function AC(t,e,n,i){for(var o,r,a=DC(t).roam,s=a[e]=a[e]||[],l=0;l<s.length;l++){var u=s[l].zInfoParsed;if((u.zlevel-i.zlevel||u.z-i.z||u.z2-i.z2)<=0)break}s.splice(l,0,{listener:n,zInfoParsed:i}),o=e,(r=DC(a=t)).uniform[o]||a.on(o,r.uniform[o]=function(t){var e=r.roam[o];if(e)for(var n=0;n<e.length;n++)e[n].listener(t)})}function PC(t,e,n){for(var i,o,r,a=DC(t).roam[e]||[],s=0;s<a.length;s++)if(a[s].listener===n)return a.splice(s,1),void(a.length||(o=e,r=void 0,(r=DC(i=t).uniform)[o]&&(i.off(o,r[o]),r[o]=null)))}function LC(t,e,n,i,o){o.isAvailableBehavior=M(OC,null,n,i),t.trigger(e,o)}function OC(t,e,n){n=n[t];return!t||n&&(!F(n)||e.event[n+"Key"])}var RC=i();function zC(t,e){e&&(t.removeKey(e.model.uid),t=e.controller)&&t.dispose()}function NC(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function BC(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function EC(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(t,u){var e=RC(u),h=e.coordSysRecordMap||(e.coordSysRecordMap=L());h.each(function(t){t.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){Z(aC(o).infoList,function(t){var r,e,n=t.model.uid,i=h.get(n)||h.set(n,(n=u,i=t.model,r={model:i,containsPoint:T(BC,i),dispatchAction:T(NC,n),dataZoomInfoMap:null,controller:null},e=r.controller=new TC(n.getZr()),Z(["pan","zoom","scrollMove"],function(o){e.on(o,function(n){var i=[];r.dataZoomInfoMap.each(function(t){var e;n.isAvailableBehavior(t.model.option)&&(e=(e=(t.getRange||{})[o])&&e(t.dzReferCoordSysInfo,r.model.mainType,r.controller,n),!t.model.get("disabled",!0))&&e&&i.push({dataZoomId:t.model.id,start:e[0],end:e[1]})}),i.length&&r.dispatchAction(i)})}),r));(i.dataZoomInfoMap||(i.dataZoomInfoMap=L())).set(o.uid,{dzReferCoordSysInfo:t,model:o,getRange:null})})}),h.each(function(t){var e,n,i,o,r,a,s=t.controller,l=t.dataZoomInfoMap;(e=l&&null!=(n=l.keys()[0])?l.get(n):e)?(n=t,i=u,r={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0,l.each(function(t){var t=t.model,e=!t.get("disabled",!0)&&(!t.get("zoomLock",!0)||"move");r["type_"+o]<r["type_"+e]&&(o=e),a=a&&t.get("preventDefaultMouseMove",!0)}),l={controlType:o,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a,api:i,zInfo:{component:n.model},triggerInfo:{roamTrigger:null,isInSelf:n.containsPoint}}},s.enable(l.controlType,l.opt),Vm(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")):zC(h,t)})})}a(HC,VC=yh),HC.prototype.render=function(t,e,n){var i,o;VC.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),n=n,i=t,o={pan:M(WC.pan,this),zoom:M(WC.zoom,this),scrollMove:M(WC.scrollMove,this)},RC(n).coordSysRecordMap.each(function(t){t=t.dataZoomInfoMap.get(i.uid);t&&(t.getRange=o)}))},HC.prototype.dispose=function(){this._clear(),VC.prototype.dispose.apply(this,arguments)},HC.prototype._clear=function(){for(var t=this.api,e=this.dataZoomModel,n=RC(t).coordSysRecordMap,i=n.keys(),o=0;o<i.length;o++){var r,a=i[o],a=n.get(a),s=a.dataZoomInfoMap;s&&(r=e.uid,s.get(r))&&(s.removeKey(r),s.keys().length||zC(n,a))}this.range=null},HC.type="dataZoom.inside";var VC,FC=HC;function HC(){var t=null!==VC&&VC.apply(this,arguments)||this;return t.type="dataZoom.inside",t}var WC={zoom:function(t,e,n,i){var o=this.range,r=o.slice(),a=t.axisModels[0];if(a)return a=(0<(e=UC[e](null,[i.originX,i.originY],a,n,t)).signal?e.pixelStart+e.pixelLength-e.pixel:e.pixel-e.pixelStart)/e.pixelLength*(r[1]-r[0])+r[0],n=Math.max(1/i.scale,0),r[0]=(r[0]-a)*n+a,r[1]=(r[1]-a)*n+a,mC(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:GC(function(t,e,n,i,o,r){i=UC[i]([r.oldX,r.oldY],[r.newX,r.newY],e,o,n);return i.signal*(t[1]-t[0])*i.pixel/i.pixelLength}),scrollMove:GC(function(t,e,n,i,o,r){return UC[i]([0,0],[r.scrollDelta,r.scrollDelta],e,o,n).signal*(t[1]-t[0])*r.scrollDelta})};function GC(s){return function(t,e,n,i){var o=this.range,r=o.slice(),a=t.axisModels[0];if(a)return mC(s(r,a,t,e,n,i),r,[0,100],"all"),this.range=r,o[0]!==r[0]||o[1]!==r[1]?r:void 0}}var UC={grid:function(t,e,n,i,o){var n=n.axis,r={},o=o.model.coordinateSystem.getRect();return t=t||[0,0],"x"===n.dim?(r.pixel=e[0]-t[0],r.pixelLength=o.width,r.pixelStart=o.x,r.signal=n.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixelLength=o.height,r.pixelStart=o.y,r.signal=n.inverse?-1:1),r},polar:function(t,e,n,i,o){var r=n.axis,a={},o=o.model.coordinateSystem,s=o.getRadiusAxis().getExtent(),l=o.getAngleAxis().getExtent();return t=t?o.pointToCoord(t):[0,0],e=o.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=s[1]-s[0],a.pixelStart=s[0],a.signal=r.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=r.inverse?-1:1),a},singleAxis:function(t,e,n,i,o){var n=n.axis,o=o.model.coordinateSystem.getRect(),r={};return t=t||[0,0],"horizontal"===n.orient?(r.pixel=e[0]-t[0],r.pixelLength=o.width,r.pixelStart=o.x,r.signal=n.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixelLength=o.height,r.pixelStart=o.y,r.signal=n.inverse?-1:1),r}},ZC=Z,XC=Gr,YC=(qC.prototype.hostedBy=function(t){return this._dataZoomModel===t},qC.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},qC.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},qC.prototype.getTargetSeriesModels=function(){var n=[];return this.ecModel.eachSeries(function(t){var e;e=(e=t).get("coordinateSystem"),0<=U(iC,e)&&(e=oC(this._dimName),e=t.getReferringComponents(e,Sa).models[0])&&this._axisIndex===e.componentIndex&&n.push(t)},this),n},qC.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},qC.prototype.getMinMaxSpan=function(){return S(this._minMaxSpan)},qC.prototype.calculateDataWindow=function(i){var o,r=this._dataExtent,s=this.getAxisModel().axis.scale,a=this._dataZoomModel.getRangePropMode(),l=[0,100],u=[],h=[],c=(ZC(["start","end"],function(t,e){var n=i[t],t=i[t+"Value"];"percent"===a[e]?t=s.parse(Fr(n=null==n?l[e]:n,l,r)):(o=!0,n=Fr(t=null==t?r[e]:s.parse(t),r,l)),h[e]=null==t||isNaN(t)?r[e]:t,u[e]=null==n||isNaN(n)?l[e]:n}),XC(h),XC(u),this._minMaxSpan);function t(t,e,n,i,o){var r=o?"Span":"ValueSpan";mC(0,t,n,"all",c["min"+r],c["max"+r]);for(var a=0;a<2;a++)e[a]=Fr(t[a],n,i,!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}},qC.prototype.reset=function(t){var e,n,i,o;t===this._dataZoomModel&&(o=this.getTargetSeriesModels(),this._dataExtent=(n=(e=this)._dimName,i=[1/0,-1/0],ZC(o=o,function(t){cx(i,t.getData(),n)}),[(e=ix((o=e.getAxisModel()).axis.scale,o,i).calculate()).min,e.max]),this._updateMinMaxSpan(),o=this.calculateDataWindow(t.settledOption),this._valueWindow=o.valueWindow,this._percentWindow=o.percentWindow,this._setAxisModel())},qC.prototype.filterData=function(t,e){var o,n,r,c;t===this._dataZoomModel&&(o=this._dimName,n=this.getTargetSeriesModels(),r=t.get("filterMode"),c=this._valueWindow,"none"!==r)&&ZC(n,function(n){var l,u,i=n.getData(),h=i.mapDimensionsAll(o);h.length&&("weakFilter"===r?(l=i.getStore(),u=E(h,function(t){return i.getDimensionIndex(t)},i),i.filterSelf(function(t){for(var e,n,i,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&&(i=!0),s&&(e=!0),r&&(n=!0)}return i&&e&&n})):ZC(h,function(t){var e;"empty"===r?n.setData(i=i.map(t,function(t){return(e=t)>=c[0]&&e<=c[1]?t:NaN;var e})):((e={})[t]=c,i.selectRange(e))}),ZC(h,function(t){i.setApproximateExtent(c,t)}))})},qC.prototype._updateMinMaxSpan=function(){var i=this._minMaxSpan={},o=this._dataZoomModel,r=this._dataExtent;ZC(["min","max"],function(t){var e=o.get(t+"Span"),n=o.get(t+"ValueSpan");null!=(n=null!=n?this.getAxisModel().axis.scale.parse(n):n)?e=Fr(r[0]+n,r,[0,100],!0):null!=e&&(n=Fr(e,[0,100],r,!0)-r[0]),i[t+"Span"]=e,i[t+"ValueSpan"]=n},this)},qC.prototype._setAxisModel=function(){var t,e=this.getAxisModel(),n=this._percentWindow,i=this._valueWindow;n&&(t=Xr(i,[0,500]),t=Math.min(t,20),e=e.axis.scale.rawExtentInfo,0!==n[0]&&e.setDeterminedMinMax("min",+i[0].toFixed(t)),100!==n[1]&&e.setDeterminedMinMax("max",+i[1].toFixed(t)),e.freeze())},qC);function qC(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}var jC={getTargetSeries:function(r){function t(o){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(t,e){var n=r.getComponent(oC(t),e);o(t,e,n,i)})})}t(function(t,e,n,i){n.__dzAxisProxy=null});var o=[],e=(t(function(t,e,n,i){n.__dzAxisProxy||(n.__dzAxisProxy=new YC(t,e,i,r),o.push(n.__dzAxisProxy))}),L());return Z(o,function(t){Z(t.getTargetSeriesModels(),function(t){e.set(t.uid,t)})}),e},overallReset:function(t,i){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(t,e){n.getAxisProxy(t,e).reset(n)}),n.eachTargetAxis(function(t,e){n.getAxisProxy(t,e).filterData(n,i)})}),t.eachComponent("dataZoom",function(t){var e,n=t.findRepresentativeAxisProxy();n&&(e=n.getDataPercentWindow(),n=n.getDataValueWindow(),t.setCalculatedRange({start:e[0],end:e[1],startValue:n[0],endValue:n[1]}))})}};var KC=!1;function $C(t){KC||(KC=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,jC),t.registerAction("dataZoom",function(e,t){Z(rC(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 QC(t){$C(t),t.registerComponentModel(dC),t.registerComponentView(FC),EC(t)}a(eI,JC=ph),eI.type="dataZoom.slider",eI.layoutMode="box",eI.defaultOption=ed(ph.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:I.color.accent10,borderRadius:0,backgroundColor:I.color.transparent,dataBackground:{lineStyle:{color:I.color.accent30,width:.5},areaStyle:{color:I.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:I.color.accent40,width:.5},areaStyle:{color:I.color.accent20,opacity:.3}},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:I.color.neutral00,borderColor:I.color.accent20},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:I.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:I.color.tertiary},brushSelect:!0,brushStyle:{color:I.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:I.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15});var JC,tI=eI;function eI(){var t=null!==JC&&JC.apply(this,arguments)||this;return t.type=eI.type,t}var nI,iI=kl,oI="horizontal",rI="vertical",aI=["line","bar","candlestick","scatter"],sI={easing:"cubicOut",duration:100,delay:0},lI=(a(uI,nI=yh),uI.prototype.init=function(t,e){this.api=e,this._onBrush=M(this._onBrush,this),this._onBrushEnd=M(this._onBrushEnd,this)},uI.prototype.render=function(t,e,n,i){nI.prototype.render.apply(this,arguments),Vm(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1===t.get("show")?this.group.removeAll():t.noTarget()?(this._clear(),this.group.removeAll()):(i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView())},uI.prototype.dispose=function(){this._clear(),nI.prototype.dispose.apply(this,arguments)},uI.prototype._clear=function(){Fm(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},uI.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 Mr);this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},uI.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,e=hf(t,e).refContainer,i=this._findCoordRect(),o=t.get("defaultLocationEdgeGap",!0)||0,r=this._orient===oI?{right:e.width-i.x-i.width,top:e.height-30-o-n,width:i.width,height:30}:{right:o,top:i.y,width:30,height:i.height},a=ff(t.option),n=(Z(["right","top","width","height"],function(t){"ph"===a[t]&&(a[t]=r[t])}),sf(a,e));this._location={x:n.x,y:n.y},this._size=[n.width,n.height],this._orient===rI&&this._size.reverse()},uI.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),i=i&&i.get("inverse"),o=this._displayables.sliderGroup,r=(this._dataShadowInfo||{}).otherAxisInverse,n=(o.attr(n!==oI||i?n===oI&&i?{scaleY:r?1:-1,scaleX:-1}:n!==rI||i?{scaleY:r?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:r?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:r?1:-1,scaleX:1}),t.getBoundingRect([o]));t.x=e.x-n.x,t.y=e.y-n.y,t.markRedraw()},uI.prototype._getViewExtent=function(){return[0,this._size[0]]},uI.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect"),t=(n.add(new iI({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),new iI({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:M(this._onClickPanel,this)})),e=this.api.getZr();i?(t.on("mousedown",this._onBrushStart,this),t.cursor="crosshair",e.on("mousemove",this._onBrush),e.on("mouseup",this._onBrushEnd)):(e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)),n.add(t)},uI.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,o=i.getRawData(),r=i.getShadowDim&&i.getShadowDim(),r=r&&o.getDimensionInfo(r)?i.getShadowDim():t.otherDim;if(null!=r)for(var a,s,l,u,h,c,p,d,f,g,y,m,v,_=this._shadowPolygonPts,x=this._shadowPolylinePts,b=(o===this._shadowData&&r===this._shadowDim&&e[0]===n[0]&&e[1]===n[1]||(a=o.getDataExtent(t.thisDim),i=.3*((s=o.getDataExtent(r))[1]-s[0]),s=[s[0]-i,s[1]+i],l=[0,e[1]],n=[0,e[0]],u=[[e[0],0],[0,0]],h=[],c=n[1]/Math.max(1,o.count()-1),p=e[0]/(a[1]-a[0]),d="time"===t.thisAxis.type,f=-c,g=Math.round(o.count()/e[0]),o.each([t.thisDim,r],function(t,e,n){0<g&&n%g?d||(f+=c):(f=d?(+t-a[0])*p:f+c,e=(t=null==e||isNaN(e)||""===e)?0:Fr(e,s,l,!0),t&&!y&&n?(u.push([u[u.length-1][0],0]),h.push([h[h.length-1][0],0])):!t&&y&&(u.push([f,0]),h.push([f,0])),t||(u.push([f,e]),h.push([f,e])),y=t)}),_=this._shadowPolygonPts=u,x=this._shadowPolylinePts=h),this._shadowData=o,this._shadowDim=r,this._shadowSize=[e[0],e[1]],this.dataZoomModel),w=0;w<3;w++){m=1===w,S=v=void 0,m=b.getModel(m?"selectedDataBackground":"dataBackground"),v=new Mr,S=new Wh({shape:{points:_},segmentIgnoreThreshold:1,style:m.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),m=new Xh({shape:{points:x},segmentIgnoreThreshold:1,style:m.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19}),v.add(S),v.add(m);var S=v;this._displayables.sliderGroup.add(S),this._displayables.dataShadowSegs.push(S)}}},uI.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){Z(t.getAxisProxy(r,a).getTargetSeriesModels(),function(t){var e,n,i,o;s||!0!==u&&U(aI,t.get("type"))<0||(e=l.getComponent(oC(r),a).axis,o=t.coordinateSystem,null!=(n={x:"y",y:"x",radius:"angle",angle:"radius"}[r])&&o.getOtherAxis&&(i=o.getOtherAxis(e).inverse),n=t.getData().mapDimension(n),o=t.getData().mapDimension(r),s={thisAxis:e,series:t,thisDim:o,otherDim:n,otherAxisInverse:i})},this)},this),s},uI.prototype._renderHandle=function(){var t,e,o=this.group,n=this._displayables,r=n.handles=[null,null],a=n.handleLabels=[null,null],s=this._displayables.sliderGroup,i=this._size,l=this.dataZoomModel,u=this.api,h=l.get("borderRadius")||0,c=l.get("brushSelect"),p=n.filler=new iI({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}}),h=(s.add(p),s.add(new iI({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:i[0],height:i[1],r:h},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:1,fill:I.color.transparent}})),Z([0,1],function(t){var e=l.get("handleIcon"),e=A0(e=!I0[e]&&e.indexOf("path://")<0&&e.indexOf("image://")<0?"path://"+e:e,-1,0,2,2,null,!0),n=(e.attr({cursor:"vertical"===this._orient?"ns-resize":"ew-resize",draggable:!0,drift:M(this._onDragMove,this,t),ondragend:M(this._onDragEnd,this),onmouseover:M(this._showDataInfo,this,!0),onmouseout:M(this._showDataInfo,this,!1),z2:5}),e.getBoundingRect()),i=l.get("handleSize"),i=(this._handleHeight=Hr(i,this._size[1]),this._handleWidth=n.width/n.height*this._handleHeight,e.setStyle(l.getModel("handleStyle").getItemStyle()),e.style.strokeNoScale=!0,e.rectHover=!0,e.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Nu(e),l.get("handleColor")),n=(null!=i&&(e.style.fill=i),s.add(r[t]=e),l.getModel("textStyle")),i=(l.get("handleLabel")||{}).show||!1;o.add(a[t]=new Rl({silent:!0,invisible:!i,style:kp(n,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:n.getTextColor(),font:n.getFont()}),z2:10}))},this),p);c&&(p=Hr(l.get("moveHandleSize"),i[1]),t=n.moveHandle=new kl({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:i[1]-.5,height:p}}),c=.8*p,(c=n.moveHandleIcon=A0(l.get("moveHandleIcon"),-c/2,-c/2,c,c,I.color.neutral00,!0)).silent=!0,c.y=i[1]+p/2-.5,t.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle(),e=Math.min(i[1]/2,Math.max(p,10)),(h=n.moveZone=new kl({invisible:!0,shape:{y:i[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:"default",drift:M(this._onDragMove,this,"all"),ondragstart:M(this._showDataInfo,this,!0),ondragend:M(this._onDragEnd,this),onmouseover:M(this._showDataInfo,this,!0),onmouseout:M(this._showDataInfo,this,!1)})},uI.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[Fr(t[0],[0,100],e,!0),Fr(t[1],[0,100],e,!0)]},uI.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),r=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100],e=(mC(e,i,o,n.get("zoomLock")?"all":t,null!=r.minSpan?Fr(r.minSpan,a,o,!0):null,null!=r.maxSpan?Fr(r.maxSpan,a,o,!0):null),this._range),n=this._range=Gr([Fr(i[0],o,a,!0),Fr(i[1],o,a,!0)]);return!e||e[0]!==n[0]||e[1]!==n[1]},uI.prototype._updateView=function(t){for(var i=this._displayables,o=this._handleEnds,e=Gr(o.slice()),r=this._size,n=(Z([0,1],function(t){var e=i.handles[t],n=this._handleHeight;e.attr({scaleX:n/2,scaleY:n/2,x:o[t]+(t?-1:1),y:r[1]/2-n/2})},this),i.filler.setShape({x:e[0],y:0,width:e[1]-e[0],height:r[1]}),{x:e[0],width:e[1]-e[0]}),a=(i.moveHandle&&(i.moveHandle.setShape(n),i.moveZone.setShape(n),i.moveZone.getBoundingRect(),i.moveHandleIcon)&&i.moveHandleIcon.attr("x",n.x+n.width/2),i.dataShadowSegs),s=[0,e[0],e[1],r[0]],l=0;l<a.length;l++){var u=a[l],h=u.getClipPath();h||(h=new kl,u.setClipPath(h)),h.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(t)},uI.prototype._updateDataInfo=function(t){var e,n,i=this.dataZoomModel,o=this._displayables,r=o.handleLabels,a=this._orient,s=["",""],l=(i.get("showDetail")&&(i=i.findRepresentativeAxisProxy())&&(e=i.getAxisModel().axis,n=this._range,t=t?i.calculateDataWindow({start:n[0],end:n[1]}).valueWindow:i.getDataValueWindow(),s=[this._formatLabel(t[0],e),this._formatLabel(t[1],e)]),Gr(this._handleEnds.slice()));function u(t){var e=np(o.handles[t].parent,this.group),n=op(0===t?"right":"left",e),i=this._handleWidth/2+5,i=ip([l[t]+(0===t?-i:i),this._size[1]/2],e);r[t].setStyle({x:i[0],y:i[1],verticalAlign:a===oI?"middle":n,align:a===oI?n:"center",text:s[t]})}u.call(this,0),u.call(this,1)},uI.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),n=n.get("labelPrecision"),e=(null!=n&&"auto"!==n||(n=e.getPixelPrecision()),null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(n,20)));return z(i)?i(t,e):F(i)?i.replace("{value}",e):e},uI.prototype._showDataInfo=function(t){var e=(this.dataZoomModel.get("handleLabel")||{}).show||!1,n=this.dataZoomModel.getModel(["emphasis","handleLabel"]).get("show")||!1,t=t||this._dragging?n:e,n=this._displayables,e=n.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t),n.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},uI.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,De(i.event);i=ip([e,n],this._displayables.sliderGroup.getLocalTransform(),!0),e=this._updateInterval(t,i[0]),n=this.dataZoomModel.get("realtime");this._updateView(!n),e&&n&&this._dispatchZoomAction(!0)},uI.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),this.dataZoomModel.get("realtime")||this._dispatchZoomAction(!1)},uI.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))},uI.prototype._onBrushStart=function(t){var e=t.offsetX,t=t.offsetY;this._brushStart=new C(e,t),this._brushing=!0,this._brushStartTime=+new Date},uI.prototype._onBrushEnd=function(t){var e,n,i,o;this._brushing&&(i=this._displayables.brushRect,this._brushing=!1,i)&&(i.attr("ignore",!0),i=i.shape,+new Date-this._brushStartTime<200&&Math.abs(i.width)<5||(e=this._getViewExtent(),n=[0,100],mC(0,i=this._handleEnds=[i.x,i.x+i.width],e,0,null!=(o=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan()).minSpan?Fr(o.minSpan,n,e,!0):null,null!=o.maxSpan?Fr(o.maxSpan,n,e,!0):null),this._range=Gr([Fr(i[0],e,n,!0),Fr(i[1],e,n,!0)]),this._updateView(),this._dispatchZoomAction(!1)))},uI.prototype._onBrush=function(t){this._brushing&&(De(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},uI.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect,i=(o||(o=n.brushRect=new iI({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1),this._brushStart),n=this._displayables.sliderGroup,t=n.transformCoordToLocal(t,e),e=n.transformCoordToLocal(i.x,i.y),n=this._size;t[0]=Math.max(Math.min(n[0],t[0]),0),o.setShape({x:e[0],y:0,width:t[0]-e[0],height:n[1]})},uI.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?sI:null,start:e[0],end:e[1]})},uI.prototype._findCoordRect=function(){var t,e,n=aC(this.dataZoomModel).infoList;return t=(t=!t&&n.length?(n=n[0].model.coordinateSystem).getRect&&n.getRect():t)?t:{x:.2*(n=this.api.getWidth()),y:.2*(e=this.api.getHeight()),width:.6*n,height:.6*e}},uI.type="dataZoom.slider",uI);function uI(){var t=null!==nI&&nI.apply(this,arguments)||this;return t.type=uI.type,t._displayables={},t}function hI(t){t.registerComponentModel(tI),t.registerComponentView(lI),$C(t)}mx(function(t){mx(QC),mx(hI)});var cI=["rect","polygon","keep","clear"];function pI(t,e){var n,i,o,r=la(t?t.brush:[]);r.length&&(n=[],Z(r,function(t){t=t.hasOwnProperty("toolbox")?t.toolbox:[];t instanceof Array&&(n=n.concat(t))}),(r=V(r=t&&t.toolbox)?r[0]:r)||(t.toolbox=[r={feature:{}}]),r=(t=r.feature||(r.feature={})).brush||(t.brush={}),(t=r.type||(r.type=[])).push.apply(t,n),o={},Z(i=t,function(t){o[t]=1}),i.length=0,Z(o,function(t,e){i.push(e)}),e)&&!t.length&&t.push.apply(t,cI)}var dI,fI=!0,gI=Math.min,yI=Math.max,mI=Math.pow,vI=1e4,_I=6,xI=6,bI="globalPan",wI={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},SI={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},MI={brushStyle:{lineWidth:2,stroke:I.color.backgroundTint,fill:I.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},TI=0,CI=(a(II,dI=ue),II.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},II.prototype._doEnableBrush=function(t){var e,n,i=this._zr;this._enableGlobalPan||(e=bI,n=this._uid,xC(i)[e]=n),Z(this._handlers,function(t,e){i.on(e,t)}),this._brushType=t.brushType,this._brushOption=d(S(MI),t,!0)},II.prototype._doDisableBrush=function(){var t,e,n,i=this._zr;t=i,e=bI,n=this._uid,(t=xC(t))[e]===n&&(t[e]=null),Z(this._handlers,function(t,e){i.off(e,t)}),this._brushType=this._brushOption=null},II.prototype.setPanels=function(t){var e;return t&&t.length?(e=this._panels={},Z(t,function(t){e[t.panelId]=S(t)})):this._panels=null,this},II.prototype.mount=function(t){this._enableGlobalPan=(t=t||{}).enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},II.prototype.updateCovers=function(i){i=E(i,function(t){return d(S(MI),t,!0)});var n="\0-brush-index-",o=this._covers,r=this._covers=[],a=this,s=this._creatingCover;return new D1(o,i,function(t,e){return l(t.__brushOption,e)},l).add(t).update(t).remove(function(t){o[t]!==s&&a.group.remove(o[t])}).execute(),this;function l(t,e){return(null!=t.id?t.id:n+e)+"-"+t.brushType}function t(t,e){var n=i[t];null!=e&&o[e]===s?r[t]=o[e]:(t=r[t]=null!=e?(o[e].__brushOption=n,o[e]):DI(a,kI(a,n)),LI(a,t))}},II.prototype.unmount=function(){return this.enableBrush(!1),NI(this),this._zr.remove(this.group),this},II.prototype.dispose=function(){this.unmount(),this.off()},II);function II(t){var e=dI.call(this)||this;return e._track=[],e._covers=[],e._handlers={},e._zr=t,e.group=new Mr,e._uid="brushController_"+TI++,Z(ek,function(t,e){this._handlers[e]=M(t,this)},e),e}function kI(t,e){var n=ik[e.brushType].createCover(t,e);return n.__brushOption=e,PI(n,e),t.group.add(n),n}function DI(t,e){var n=OI(e);return n.endCreating&&(n.endCreating(t,e),PI(e,e.__brushOption)),e}function AI(t,e){var n=e.__brushOption;OI(e).updateCoverShape(t,e,n.range,n)}function PI(t,e){var n=e.z;null==n&&(n=vI),t.traverse(function(t){t.z=n,t.z2=n})}function LI(t,e){OI(e).updateCommon(t,e),AI(t,e)}function OI(t){return ik[t.__brushOption.brushType]}function RI(t,e,n){var i,o,r=t._panels;return r?(o=t._transform,Z(r,function(t){t.isTargetByCursor(e,n,o)&&(i=t)}),i):fI}function zI(t,e){t=t._panels;return t&&null!=(e=e.__brushOption.panelId)?t[e]:fI}function NI(e){var t=e._covers,n=t.length;return Z(t,function(t){e.group.remove(t)},e),t.length=0,n}function BI(t,e){var n=E(t._covers,function(t){var t=t.__brushOption,e=S(t.range);return{brushType:t.brushType,panelId:t.panelId,range:e}});t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function EI(t){var e=t.length-1;return[t[0],t[e=e<0?0:e]]}function VI(e,n,t,i){var o=new Mr;return o.add(new kl({name:"main",style:GI(t),silent:!0,draggable:!0,cursor:"move",drift:T(XI,e,n,o,["n","s","w","e"]),ondragend:T(BI,n,{isEnd:!0})})),Z(i,function(t){o.add(new kl({name:t.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:T(XI,e,n,o,t),ondragend:T(BI,n,{isEnd:!0})}))}),o}function FI(t,e,n,i){var o=i.brushStyle.lineWidth||0,r=yI(o,xI),a=n[0][0],s=n[1][0],l=a-o/2,u=s-o/2,h=n[0][1],n=n[1][1],c=h-r+o/2,p=n-r+o/2,h=h-a,n=n-s,d=h+o,o=n+o;WI(t,e,"main",a,s,h,n),i.transformable&&(WI(t,e,"w",l,u,r,o),WI(t,e,"e",c,u,r,o),WI(t,e,"n",l,u,d,r),WI(t,e,"s",l,p,d,r),WI(t,e,"nw",l,u,r,r),WI(t,e,"ne",c,u,r,r),WI(t,e,"sw",l,p,r,r),WI(t,e,"se",c,p,r,r))}function HI(n,i){var t=i.__brushOption,o=t.transformable,e=i.childAt(0);e.useStyle(GI(t)),e.attr({silent:!o,cursor:o?"move":"default"}),Z([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(t){var e=i.childOfName(t.join("")),t=1===t.length?ZI(n,t[0]):function(t,e){t=[ZI(t,e[0]),ZI(t,e[1])];return"e"!==t[0]&&"w"!==t[0]||t.reverse(),t.join("")}(n,t);e&&e.attr({silent:!o,invisible:!o,cursor:o?SI[t]+"-resize":null})})}function WI(t,e,n,i,o,r,a){var n=e.childOfName(n);n&&n.setShape((n=jI(t,e,[[i,o],[i+r,o+a]]),t=gI(n[0][0],n[1][0]),e=gI(n[0][1],n[1][1]),i=yI(n[0][0],n[1][0]),n=yI(n[0][1],n[1][1]),{x:t,y:e,width:i-t,height:n-e}))}function GI(t){return B({strokeNoScale:!0},t.brushStyle)}function UI(t,e,n,i){var o=[gI(t,n),gI(e,i)],t=[yI(t,n),yI(e,i)];return[[o[0],t[0]],[o[1],t[1]]]}function ZI(t,e){return{left:"w",right:"e",top:"n",bottom:"s"}[op({w:"left",e:"right",n:"top",s:"bottom"}[e],np(t.group))]}function XI(t,e,n,i,o,r){var a=n.__brushOption,s=t.toRectRange(a.range),l=qI(e,o,r);Z(i,function(t){t=wI[t];s[t[0]][t[1]]+=l[t[0]]}),a.range=t.fromRectRange(UI(s[0][0],s[1][0],s[0][1],s[1][1])),LI(e,n),BI(e,{isEnd:!1})}function YI(t,e,n,i){var o=e.__brushOption.range,r=qI(t,n,i);Z(o,function(t){t[0]+=r[0],t[1]+=r[1]}),LI(t,e),BI(t,{isEnd:!1})}function qI(t,e,n){t=t.group,e=t.transformCoordToLocal(e,n),n=t.transformCoordToLocal(0,0);return[e[0]-n[0],e[1]-n[1]]}function jI(t,e,n){e=zI(t,e);return e&&e!==fI?e.clipPath(n,t._transform):S(n)}function KI(t,e,n){if(t._brushType&&!function(t,e,n){t=t._zr;return e<0||e>t.getWidth()||n<0||n>t.getHeight()}(t,e.offsetX,e.offsetY)){var i=t._zr,o=t._covers,r=RI(t,e,n);if(!t._dragging)for(var a=0;a<o.length;a++){var s=o[a].__brushOption;if(r&&(r===fI||s.panelId===r.panelId)&&ik[s.brushType].contain(o[a],n[0],n[1]))return}r&&i.setCursorStyle("crosshair")}}function $I(t){t=t.event;t.preventDefault&&t.preventDefault()}function QI(t,e,n){return t.childOfName("main").contain(e,n)}function JI(t,e,n,i){var o,r,a=t._creatingCover,s=t._creatingPanel,l=t._brushOption;return t._track.push(n.slice()),function(t){var e,n;if((t=t._track).length)return n=t[t.length-1],t=t[0],e=n[0]-t[0],n=n[1]-t[1],t=mI(e*e+n*n,.5),_I<t}(t)||a?(s&&!a&&("single"===l.brushMode&&NI(t),(r=S(l)).brushType=tk(r.brushType,s),r.panelId=s===fI?null:s.panelId,a=t._creatingCover=kI(t,r),t._covers.push(a)),a&&(r=ik[tk(t._brushType,s)],a.__brushOption.range=r.getCreatingRange(jI(t,a,t._track)),i&&(DI(t,a),r.updateCommon(t,a)),AI(t,a),o={isEnd:i})):i&&"single"===l.brushMode&&l.removeOnClick&&RI(t,e,n)&&NI(t)&&(o={isEnd:i,removeOnClick:!0}),o}function tk(t,e){return"auto"===t?e.defaultBrushType:t}var ek={mousedown:function(t){var e;this._dragging?nk(this,t):t.target&&t.target.draggable||($I(t),e=this.group.transformCoordToLocal(t.offsetX,t.offsetY),this._creatingCover=null,(this._creatingPanel=RI(this,t,e))&&(this._dragging=!0,this._track=[e.slice()]))},mousemove:function(t){var e=t.offsetX,n=t.offsetY,e=this.group.transformCoordToLocal(e,n);KI(this,t,e),this._dragging&&($I(t),n=JI(this,t,e,!1))&&BI(this,n)},mouseup:function(t){nk(this,t)}};function nk(t,e){var n,i;t._dragging&&($I(e),n=e.offsetX,i=e.offsetY,n=t.group.transformCoordToLocal(n,i),i=JI(t,e,n,!0),t._dragging=!1,t._track=[],t._creatingCover=null,i)&&BI(t,i)}var ik={lineX:ok(0),lineY:ok(1),rect:{createCover:function(t,e){function n(t){return t}return VI({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){t=EI(t);return UI(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(t,e,n,i){FI(t,e,n,i)},updateCommon:HI,contain:QI},polygon:{createCover:function(t,e){var n=new Mr;return n.add(new Xh({name:"main",style:GI(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Wh({name:"main",draggable:!0,drift:T(YI,t,e),ondragend:T(BI,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:jI(t,e,n)})},updateCommon:HI,contain:QI}};function ok(r){return{createCover:function(t,e){return VI({toRectRange:function(t){t=[t,[0,100]];return r&&t.reverse(),t},fromRectRange:function(t){return t[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){t=EI(t);return[gI(t[0][r],t[1][r]),yI(t[0][r],t[1][r])]},updateCoverShape:function(t,e,n,i){var o=zI(t,e),o=[n,o!==fI&&o.getLinearBrushOtherExtent?o.getLinearBrushOtherExtent(r):[0,[(n=t._zr).getWidth(),n.getHeight()][1-r]]];r&&o.reverse(),FI(t,e,o,i)},updateCommon:HI,contain:QI}}var rk=Z,ak=N,sk=-1,lk=(uk.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},uk.prototype.getNormalizer=function(){return M(this._normalizeData,this)},uk.listVisualTypes=function(){return X(uk.visualHandlers)},uk.isValidType=function(t){return uk.visualHandlers.hasOwnProperty(t)},uk.eachVisual=function(t,e,n){N(t)?Z(t,e,n):e.call(n,t)},uk.mapVisual=function(t,n,i){var o,r=V(t)?[]:N(t)?{}:(o=!0,null);return uk.eachVisual(t,function(t,e){t=n.call(i,t,e);o?r=t:r[e]=t}),r},uk.retrieveVisuals=function(n){var i,o={};return n&&rk(uk.visualHandlers,function(t,e){n.hasOwnProperty(e)&&(o[e]=n[e],i=!0)}),i?o:null},uk.prepareVisualTypes=function(t){if(V(t))t=t.slice();else{if(!ak(t))return[];var n=[];rk(t,function(t,e){n.push(e)}),t=n}return t.sort(function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1}),t},uk.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},uk.findPieceIndex=function(n,t,e){for(var i,o=1/0,r=0,a=t.length;r<a;r++){var s=t[r].value;if(null!=s){if(s===n||F(s)&&s===n+"")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(xk(l[1],n,u[1]))return r}else if(u[1]===1/0){if(xk(l[0],u[0],n))return r}else if(xk(l[0],u[0],n)&&xk(l[1],n,u[1]))return r;e&&h(u[0],r),e&&h(u[1],r)}}if(e)return n===1/0?t.length-1:n===-1/0?0:i;function h(t,e){t=Math.abs(t-n);t<o&&(o=t,i=e)}},uk.visualHandlers={color:{applyVisual:dk("color"),getColorMapper:function(){var o=this.option;return M("category"===o.mappingMethod?function(t,e){return e||(t=this._normalizeData(t)),fk.call(this,t)}:function(t,e,n){var i=!!n;return n=Pi(t=e?t:this._normalizeData(t),o.parsedVisual,n),i?n:Ni(n,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Ni(Pi(t,this.option.parsedVisual),"rgba")},category:fk,piecewise:function(t,e){e=mk.call(this,e);return e=null==e?Ni(Pi(t,this.option.parsedVisual),"rgba"):e},fixed:gk}},colorHue:ck(function(t,e){return Ri(t,e)}),colorSaturation:ck(function(t,e){return Ri(t,null,e)}),colorLightness:ck(function(t,e){return Ri(t,null,null,e)}),colorAlpha:ck(zi),decal:{applyVisual:dk("decal"),_normalizedToVisual:{linear:null,category:fk,piecewise:null,fixed:null}},opacity:{applyVisual:dk("opacity"),_normalizedToVisual:yk([0,1])},liftZ:{applyVisual:dk("liftZ"),_normalizedToVisual:{linear:gk,category:gk,piecewise:gk,fixed:gk}},symbol:{applyVisual:function(t,e,n){n("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:pk,category:fk,piecewise:function(t,e){e=mk.call(this,e);return e=null==e?pk.call(this,t):e},fixed:gk}},symbolSize:{applyVisual:dk("symbolSize"),_normalizedToVisual:yk([0,1])}},uk);function uk(t){var n,e=t.mappingMethod,i=t.type,t=this.option=S(t),i=(this.type=i,this.mappingMethod=e,this._normalizeData=_k[e],uk.visualHandlers[i]);if(this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],"piecewise"===e)hk(t),i=(n=t).pieceList,n.hasSpecialVisual=!1,Z(i,function(t,e){t.originIndex=e,null!=t.visual&&(n.hasSpecialVisual=!0)});else if("category"===e)if(t.categories){var o,i=t,r=i.categories,a=i.categoryMap={},s=i.visual;rk(r,function(t,e){a[t]=e}),V(s)||(o=[],N(s)?rk(s,function(t,e){e=a[e];o[null!=e?e:sk]=t}):o[sk]=s,s=vk(i,o));for(var l=r.length-1;0<=l;l--)null==s[l]&&(delete a[r[l]],r.pop())}else hk(t,!0);else Ct("linear"!==e||t.dataExtent),hk(t)}function hk(t,e){var n=t.visual,i=[];N(n)?rk(n,function(t){i.push(t)}):null!=n&&i.push(n);e||1!==i.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(i[1]=i[0]),vk(t,i)}function ck(i){return{applyVisual:function(t,e,n){t=this.mapValueToVisual(t);n("color",i(e("color"),t))},_normalizedToVisual:yk([0,1])}}function pk(t){var e=this.option.visual;return e[Math.round(Fr(t,[0,1],[0,e.length-1],!0))]||{}}function dk(i){return function(t,e,n){n(i,this.mapValueToVisual(t))}}function fk(t){var e=this.option.visual;return e[this.option.loop&&t!==sk?t%e.length:t]}function gk(){return this.option.visual[0]}function yk(n){return{linear:function(t){return Fr(t,n,this.option.visual,!0)},category:fk,piecewise:function(t,e){e=mk.call(this,e);return e=null==e?Fr(t,n,this.option.visual,!0):e},fixed:gk}}function mk(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){e=n[lk.findPieceIndex(t,n)];if(e&&e.visual)return e.visual[this.type]}}function vk(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=E(e,function(t){t=ki(t);return t||[0,0,0,1]})),e}var _k={linear:function(t){return Fr(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,t=lk.findPieceIndex(t,e,!0);if(null!=t)return Fr(t,[0,e.length-1],[0,1],!0)},category:function(t){t=this.option.categories?this.option.categoryMap[t]:t;return null==t?sk:t},fixed:Vt};function xk(t,e,n){return t?e<=n:e<n}var bk=Z;function wk(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return 1}function Sk(e,t,o){var r={};return bk(t,function(n){var i=r[n]=(t.prototype.__hidden=t.prototype,new t);function t(){}bk(e[n],function(t,e){lk.isValidType(e)&&(t={type:e,visual:t},o&&o(t,n),i[e]=new lk(t),"opacity"===e)&&((t=S(t)).type="colorAlpha",i.__hidden.__alphaForOpacity=new lk(t))})}),r}function Mk(e,n,t){var i;Z(t,function(t){n.hasOwnProperty(t)&&wk(n[t])&&(i=!0)}),i&&Z(t,function(t){n.hasOwnProperty(t)&&wk(n[t])?e[t]=S(n[t]):delete e[t]})}var Tk={lineX:Ck(0),lineY:Ck(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&xx(n.range,t[0],t[1])},rect:function(t,e,n){var i,o,r,a,s,n=n.range;return!(!t||n.length<=1)&&(i=t.x,o=t.y,r=t.width,a=t.height,s=n[0],!!(xx(n,i,o)||xx(n,i+r,o)||xx(n,i,o+a)||xx(n,i+r,o+a)||q.create(t).contain(s[0],s[1])||up(i,o,i+r,o,n)||up(i,o,i,o+a,n)||up(i+r,o,i+r,o+a,n)||up(i,o+a,i+r,o+a,n))||void 0)}}};function Ck(i){var o=["x","y"],r=["width","height"];return{point:function(t,e,n){if(t)return n=n.range,Ik(t[i],n)},rect:function(t,e,n){if(t)return n=n.range,(t=[t[o[i]],t[o[i]]+t[r[i]]])[1]<t[0]&&t.reverse(),Ik(t[0],n)||Ik(t[1],n)||Ik(n[0],t)||Ik(n[1],t)}}}function Ik(t,e){return e[0]<=t&&t<=e[1]}function kk(t){return q.create(t)}var Dk=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Ak=(Pk.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(t,e,n){(t.coordRanges||(t.coordRanges=[])).push(e),t.coordRange||(t.coordRange=e,n=Bk[t.brushType](0,n,e),t.__rangeOffset={offset:Vk[t.brushType](n.values,t.range,[1,1]),xyMinMax:n.xyMinMax})}),t},Pk.prototype.matchOutputRanges=function(t,i,o){Z(t,function(n){var t=this.findTargetInfo(n,i);t&&!0!==t&&Z(t.coordSyses,function(t){var e=Bk[n.brushType](1,t,n.range,!0);o(n,e.values,t,i)})},this)},Pk.prototype.setInputRanges=function(t,i){Z(t,function(t){var e,n=this.findTargetInfo(t,i);t.range=t.range||[],n&&!0!==n&&(t.panelId=n.panelId,n=Bk[t.brushType](0,n.coordSys,t.coordRange),e=t.__rangeOffset,t.range=e?Vk[t.brushType](n.values,e.offset,function(t,e){t=Hk(t),e=Hk(e),t=[t[0]/e[0],t[1]/e[1]];return isNaN(t[0])&&(t[0]=1),isNaN(t[1])&&(t[1]=1),t}(n.xyMinMax,e.xyMinMax)):n.values)},this)},Pk.prototype.makePanelOpts=function(l,u){return E(this._targetInfoList,function(t){var n,i,o,r,a,e,s=t.getPanelRect();return{panelId:t.panelId,defaultBrushType:u?u(t):null,clipPath:(e=kk(e=s),function(t){return ap(t,e)}),isTargetByCursor:(o=l,r=t.coordSysModel,a=kk(s),function(t,e){return a.contain(e[0],e[1])&&!SC(t,o,r)}),getLinearBrushOtherExtent:(n=kk(n=s),function(t){var t=null!=i?i:t,e=t?n.width:n.height,t=t?n.x:n.y;return[t,t+(e||0)]})}})},Pk.prototype.controlSeries=function(t,e,n){t=this.findTargetInfo(t,n);return!0===t||t&&0<=U(t.coordSyses,e.coordinateSystem)},Pk.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=Ok(e,t),o=0;o<n.length;o++){var r=n[o],a=t.panelId;if(a){if(r.panelId===a)return r}else for(var s=0;s<zk.length;s++)if(zk[s](i,r))return r}return!0},Pk);function Pk(t,e,n){var i=this,o=(this._targetInfoList=[],Ok(e,t));Z(Rk,function(t,e){n&&n.include&&!(0<=U(n.include,e))||t(o,i._targetInfoList)})}function Lk(t){return t[0]>t[1]&&t.reverse(),t}function Ok(t,e){return ba(t,e,{includeMainTypes:Dk})}var Rk={grid:function(t,i){var o=t.xAxisModels,r=t.yAxisModels,t=t.gridModels,e=L(),a={},s={};(o||r||t)&&(Z(o,function(t){t=t.axis.grid.model;e.set(t.id,t),a[t.id]=!0}),Z(r,function(t){t=t.axis.grid.model;e.set(t.id,t),s[t.id]=!0}),Z(t,function(t){e.set(t.id,t),a[t.id]=!0,s[t.id]=!0}),e.each(function(t){var e=t.coordinateSystem,n=[];Z(e.getCartesians(),function(t,e){(0<=U(o,t.getAxis("x").model)||0<=U(r,t.getAxis("y").model))&&n.push(t)}),i.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:n[0],coordSyses:n,getPanelRect:Nk.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,n){Z(t.geoModels,function(t){var e=t.coordinateSystem;n.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:e,coordSyses:[e],getPanelRect:Nk.geo})})}},zk=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,t=t.gridModel;return(t=!(t=!t&&n?n.axis.grid.model:t)&&i?i.axis.grid.model:t)&&t===e.gridModel},function(t,e){t=t.geoModel;return t&&t===e.geoModel}],Nk={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(np(t)),e}},Bk={lineX:T(Ek,0),lineY:T(Ek,1),rect:function(t,e,n,i){var o=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),t=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),e=[Lk([o[0],t[0]]),Lk([o[1],t[1]])];return{values:e,xyMinMax:e}},polygon:function(e,n,t,i){var o=[[1/0,-1/0],[1/0,-1/0]];return{values:E(t,function(t){t=e?n.pointToData(t,i):n.dataToPoint(t,i);return o[0][0]=Math.min(o[0][0],t[0]),o[1][0]=Math.min(o[1][0],t[1]),o[0][1]=Math.max(o[0][1],t[0]),o[1][1]=Math.max(o[1][1],t[1]),t}),xyMinMax:o}}};function Ek(t,e,n,i){var o=n.getAxis(["x","y"][t]),n=Lk(E([0,1],function(t){return e?o.coordToData(o.toLocalCoord(i[t]),!0):o.toGlobalCoord(o.dataToCoord(i[t]))})),r=[];return r[t]=n,r[1-t]=[NaN,NaN],{values:n,xyMinMax:r}}var Vk={lineX:T(Fk,0),lineY:T(Fk,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,n,i){return E(t,function(t,e){return[t[0]-i[0]*n[e][0],t[1]-i[1]*n[e][1]]})}};function Fk(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function Hk(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var Wk=["inBrush","outOfBrush"],Gk="__ecBrushSelect",Uk="__ecInBrushSelectEvent";function Zk(e){e.eachComponent({mainType:"brush"},function(t){(t.brushTargetManager=new Ak(t.option,e)).setInputRanges(t.areas,e)})}function Xk(c,t,e){var o,r,n,i,a,s,l=[];c.eachComponent({mainType:"brush"},function(t){e&&"takeGlobalCursor"===e.type&&t.setBrushOption("brush"===e.key?e.brushOption:{brushType:!1})}),Zk(c),c.eachComponent({mainType:"brush"},function(u,t){var y={brushId:u.id,brushIndex:t,brushName:u.name,areas:S(u.areas),selected:[]},e=(l.push(y),u.option),n=e.brushLink,i=[],m=[],v=[],_=!1,h=(t||(o=e.throttleType,r=e.throttleDelay),E(u.areas,function(t){var e,n,i,o=jk[t.brushType],o=B({boundingRect:o?o(t):void 0},t);return o.selectors=(n=(e=o).brushType,i={point:function(t){return Tk[n].point(t,i,e)},rect:function(t){return Tk[n].rect(t,i,e)}}),o})),x=Sk(u.option,Wk,function(t){t.mappingMethod="fixed"});function b(t){return"all"===n||i[t]}function w(t){return!!t.length}V(n)&&Z(n,function(t){i[t]=1}),c.eachSeries(function(t,e){var n,i,o,r,a,s,l=v[e]=[];"parallel"===t.subType?(a=e,s=(r=t).coordinateSystem,_=_||s.hasAxisBrushed(),b(a)&&s.eachActiveState(r.getData(),function(t,e){"active"===t&&(m[e]=1)})):(a=e,i=l,(n=t).brushSelector&&!function(t,e){t=t.option.seriesIndex;return null!=t&&"all"!==t&&(V(t)?U(t,e)<0:e!==t)}(u,a)&&(Z(h,function(t){u.brushTargetManager.controlSeries(t,n,c)&&i.push(t),_=_||w(i)}),b(a))&&w(i)&&(o=n.getData()).each(function(t){qk(n,i,o,t)&&(m[t]=1)}))}),c.eachSeries(function(e,t){var s,l,u,h,c,p,d,n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]},i=(y.selected.push(n),v[t]),o=e.getData(),r=b(t)?function(t){return m[t]?(n.dataIndex.push(o.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(t){return qk(e,i,o,t)?(n.dataIndex.push(o.getRawIndex(t)),"inBrush"):"outOfBrush"};function f(t){return f0(l,p,t)}function g(t,e){y0(l,p,t,e)}function a(t,e){p=null==c?t:e;e=l.getRawDataItem(p);if(!e||!1!==e.visualMap)for(var e=u.call(h,t),n=s[e],i=d[e],o=0,r=i.length;o<r;o++){var a=i[o];n[a]&&n[a].applyVisual(t,f,g)}}(b(t)?_:w(i))&&(s=x,l=o,u=r,d={},Z(Wk,function(t){var e=lk.prepareVisualTypes(s[t]);d[t]=e}),null==c?l.each(a):l.each([c],a))})}),t=t,n=o,i=r,a=l,(s=e)&&!(s=t.getZr())[Uk]&&(s[Gk]||(s[Gk]=Yk),Vm(s,Gk,i,n)(t,a))}function Yk(t,e){var n;t.isDisposed()||((n=t.getZr())[Uk]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[Uk]=!1)}function qk(t,e,n,i){for(var o=0,r=e.length;o<r;o++){var a=e[o];if(t.brushSelector(i,n,a.selectors,a))return 1}}var jk={rect:function(t){return Kk(t.range)},polygon:function(t){for(var e=t.range,n=0,i=e.length;n<i;n++){var o=o||[[1/0,-1/0],[1/0,-1/0]],r=e[n];r[0]<o[0][0]&&(o[0][0]=r[0]),r[0]>o[0][1]&&(o[0][1]=r[0]),r[1]<o[1][0]&&(o[1][0]=r[1]),r[1]>o[1][1]&&(o[1][1]=r[1])}return o&&Kk(o)}};function Kk(t){return new q(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}a(Jk,$k=Sm),Jk.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new CI(e.getZr())).on("brush",M(this._onBrush,this)).mount()},Jk.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},Jk.prototype.updateTransform=function(t,e,n,i){Zk(e),this._updateController(t,e,n,i)},Jk.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},Jk.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},Jk.prototype._updateController=function(t,e,n,i){i&&i.$from===t.id||this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},Jk.prototype.dispose=function(){this._brushController.dispose()},Jk.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);t.isEnd&&!t.removeOnClick||this.api.dispatchAction({type:"brush",brushId:e,areas:S(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:S(n),$from:e})},Jk.type="brush";var $k,Qk=Jk;function Jk(){var t=null!==$k&&$k.apply(this,arguments)||this;return t.type=Jk.type,t}a(nD,tD=g),nD.prototype.optionUpdated=function(t,e){var n=this.option,e=(e||Mk(n,t,["inBrush","outOfBrush"]),n.inBrush=n.inBrush||{});n.outOfBrush=n.outOfBrush||{color:this.option.defaultOutOfBrushColor},e.hasOwnProperty("liftZ")||(e.liftZ=5)},nD.prototype.setAreas=function(t){t&&(this.areas=E(t,function(t){return iD(this.option,t)},this))},nD.prototype.setBrushOption=function(t){this.brushOption=iD(this.option,t),this.brushType=this.brushOption.brushType},nD.type="brush",nD.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],nD.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:I.color.backgroundTint,borderColor:I.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:I.color.disabled};var tD,eD=nD;function nD(){var t=null!==tD&&tD.apply(this,arguments)||this;return t.type=nD.type,t.areas=[],t.brushOption={},t}function iD(t,e){return d({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new $p(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}function oD(){}var rD={};function aD(t,e){rD[t]=e}function sD(t){return rD[t]}var lD,uD=["rect","polygon","lineX","lineY","keep","clear"],hD=(a(cD,lD=oD),cD.prototype.render=function(e,t,n){var i,o,r;t.eachComponent({mainType:"brush"},function(t){i=t.brushType,o=t.brushOption.brushMode||"single",r=r||!!t.areas.length}),this._brushType=i,this._brushMode=o,Z(e.get("type",!0),function(t){e.setIconStatus(t,("keep"===t?"multiple"===o:"clear"===t?r:t===i)?"emphasis":"normal")})},cD.prototype.updateView=function(t,e,n){this.render(t,e,n)},cD.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return Z(t.get("type",!0),function(t){e[t]&&(n[t]=e[t])}),n},cD.prototype.onclick=function(t,e,n){var i=this._brushType,o=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===o?"single":"multiple":o}})},cD.getDefaultOption=function(t){return{show:!0,type:uD.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])}},cD);function cD(){return null!==lD&&lD.apply(this,arguments)||this}mx(function(t){t.registerComponentView(Qk),t.registerComponentModel(eD),t.registerPreprocessor(pI),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,Xk),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(t){t.setAreas(e.areas)})}),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Vt),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Vt),aD("brush",hD)});var pD,dD=function(t,e,n){t=S((fD[t]||{})[e]);return n&&V(t)?t[t.length-1]:t},fD={color:{active:["#006edd","#e0ffff"],inactive:[I.color.transparent]},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]}},gD=lk.mapVisual,yD=lk.eachVisual,mD=V,vD=Z,_D=Gr,xD=Fr,Pc=(a(bD,pD=g),bD.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},bD.prototype.optionUpdated=function(t,e){var n=this.option;e||Mk(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},bD.prototype.resetVisual=function(t){var e=this.stateList;t=M(t,this),this.controllerVisuals=Sk(this.option.controller,e,t),this.targetVisuals=Sk(this.option.target,e,t)},bD.prototype.getItemSymbol=function(){return null},bD.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesId,e=this.option.seriesIndex;return E(Ta(this.ecModel,"series",{index:e=null==e&&null==t?"all":e,id:t},{useDefault:!1,enableAll:!0,enableNone:!1}).models,function(t){return t.componentIndex})},bD.prototype.eachTargetSeries=function(e,n){Z(this.getTargetSeriesIndices(),function(t){t=this.ecModel.getSeriesByIndex(t);t&&e.call(n,t)},this)},bD.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(t){t===e&&(n=!0)}),n},bD.prototype.formatValueText=function(t,e,n){var i,o=this.option,r=o.precision,a=this.dataBound,o=o.formatter,e=(n=n||["<",">"],V(t)&&(t=t.slice(),i=!0),e?t:i?[s(t[0]),s(t[1])]:s(t));return F(o)?o.replace("{value}",i?e[0]:e).replace("{value2}",i?e[1]:e):z(o)?i?o(t[0],t[1]):o(t):i?t[0]===a[0]?n[0]+" "+e[1]:t[1]===a[1]?n[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))}},bD.prototype.resetExtent=function(){var t=this.option,t=_D([t.min,t.max]);this._dataExtent=t},bD.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;0<=i;i--){var o=n[i],o=t.getDimensionInfo(o);if(!o.isCalculationCoord)return o.storeDimIndex}},bD.prototype.getExtent=function(){return this._dataExtent.slice()},bD.prototype.completeVisualOption=function(){var e=this.ecModel,n=this.option,t={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={}),u=(d(i,t),d(o,t),this.isCategory());function r(t){mD(n.color)&&!t.inRange&&(t.inRange={color:n.color.slice().reverse()}),t.inRange=t.inRange||{color:e.get("gradientColor")}}r.call(this,i),r.call(this,o),function(t,e,n){var e=t[e],i=t[n];e&&!i&&(i=t[n]={},vD(e,function(t,e){var n;lk.isValidType(e)&&null!=(n=dD(e,"inactive",u))&&(i[e]=n,"color"!==e||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}))}.call(this,i,"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";vD(this.stateList,function(t){var e,n=this.itemSize,i=o[t],t=(null==(i=i||(o[t]={color:u?s:[s]})).symbol&&(i.symbol=r&&S(r)||(u?l:[l])),null==i.symbolSize&&(i.symbolSize=a&&S(a)||(u?n[0]:[n[0],n[0]])),i.symbol=gD(i.symbol,function(t){return"none"===t?l:t}),i.symbolSize);null!=t&&(e=-1/0,yD(t,function(t){e<t&&(e=t)}),i.symbolSize=gD(t,function(t){return xD(t,[0,e],[0,n[0]],!0)}))},this)}.call(this,o)},bD.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},bD.prototype.isCategory=function(){return!!this.option.categories},bD.prototype.setSelected=function(t){},bD.prototype.getSelected=function(){return null},bD.prototype.getValueState=function(t){return null},bD.prototype.getVisualMeta=function(t){return null},bD.type="visualMap",bD.dependencies=["series"],bD.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:I.color.transparent,borderColor:I.color.borderTint,contentColor:I.color.theme[0],inactiveColor:I.color.disabled,borderWidth:0,padding:I.size.m,textGap:10,precision:0,textStyle:{color:I.color.secondary}},bD);function bD(){var t=null!==pD&&pD.apply(this,arguments)||this;return t.type=bD.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 wD,SD=[20,140],MD=(a(TD,wD=Pc),TD.prototype.optionUpdated=function(t,e){wD.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()}),this._resetRange()},TD.prototype.resetItemSize=function(){wD.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;null!=t[0]&&!isNaN(t[0])||(t[0]=SD[0]),null!=t[1]&&!isNaN(t[1])||(t[1]=SD[1])},TD.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]))},TD.prototype.completeVisualOption=function(){wD.prototype.completeVisualOption.apply(this,arguments),Z(this.stateList,function(t){t=this.option.controller[t].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},TD.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},TD.prototype.getSelected=function(){var t=this.getExtent(),e=Gr((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},TD.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent(),i=H(this.option.unboundedRange,!0);return(i&&e[0]<=n[0]||e[0]<=t)&&(i&&e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},TD.prototype.findTargetDataIndices=function(i){var o=[];return this.eachTargetSeries(function(t){var n=[],e=t.getData();e.each(this.getDataDimensionIndex(e),function(t,e){i[0]<=t&&t<=i[1]&&n.push(e)},this),o.push({seriesId:t.id,dataIndex:n})},this),o},TD.prototype.getVisualMeta=function(n){var t=CD(0,0,this.getExtent()),e=CD(0,0,this.option.range.slice()),i=[];function o(t,e){i.push({value:t,color:n(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&&i.length&&o(e[r],"outOfRange"),o(e[r],"inRange");for(u=1;a<l;a++)(!e.length||e[e.length-1]<t[a])&&(u&&(i.length&&o(i[i.length-1].value,"outOfRange"),u=0),o(t[a],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}},TD.type="visualMap.continuous",TD.defaultOption=ed(Pc.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:I.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:I.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:I.color.shadow}}),TD);function TD(){var t=null!==wD&&wD.apply(this,arguments)||this;return t.type=TD.type,t}function CD(t,e,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,o=n[0],r=[],a=0;a<=200&&o<n[1];a++)r.push(o),o+=i;return r.push(n[1]),r}a(kD,ID=Sm),kD.prototype.init=function(t,e){this.ecModel=t,this.api=e},kD.prototype.render=function(t,e,n,i){!1===(this.visualMapModel=t).get("show")?this.group.removeAll():this.doRender(t,e,n,i)},kD.prototype.renderBackground=function(t){var e=this.visualMapModel,n=Hd(e.get("padding")||0),i=t.getBoundingRect();t.add(new kl({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},kD.prototype.getControllerVisual=function(n,i,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"===i&&(t=r.get("contentColor"),a.color=t);var u=r.controllerVisuals[e||r.getValueState(n)];return Z(lk.prepareVisualTypes(u),function(t){var e=u[t];o.convertOpacityToAlpha&&"opacity"===t&&(t="colorAlpha",e=u.__alphaForOpacity),lk.dependsOn(t,i)&&e&&e.applyVisual(n,s,l)}),a[i]},kD.prototype.positionGroup=function(t){var e=this.visualMapModel,n=hf(e,this.api).refContainer;cf(t,e.getBoxLayoutParams(),n)},kD.prototype.doRender=function(t,e,n,i){},kD.type="visualMap";var ID,pc=kD;function kD(){var t=null!==ID&&ID.apply(this,arguments)||this;return t.type=kD.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}var DD=[["left","right","width"],["top","bottom","height"]];function AD(t,e,n){var i=t.option,t=i.align;if(null!=t&&"auto"!==t)return t;for(var t={width:e.getWidth(),height:e.getHeight()},o="horizontal"===i.orient?1:0,r=DD[o],a=[0,null,10],s={},l=0;l<3;l++)s[DD[1-o][l]]=a[l],s[r[l]]=2===l?n[0]:i[r[l]];var e=[["x","width",3],["y","height",0]][o],u=sf(s,t,i.padding);return r[(u.margin[e[2]]||0)+u[e[0]]+.5*u[e[1]]<.5*t[e[1]]?0:1]}function PD(t,e){return Z(t||[],function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}var LD,OD=Fr,RD=Z,zD=Math.min,ND=Math.max,BD=(a(ED,LD=pc),ED.prototype.init=function(t,e){LD.prototype.init.call(this,t,e),this._hoverLinkFromSeriesMouseOver=M(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=M(this._hideIndicator,this)},ED.prototype.doRender=function(t,e,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},ED.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)},ED.prototype._renderEndsText=function(t,e,n){var i,o,r;e&&(e=null!=(e=e[1-n])?e+"":"",o=(i=this.visualMapModel).get("textGap"),i=i.itemSize,r=this._shapes.mainGroup,i=this._applyTransform([i[0]/2,0===n?-o:i[1]+o],r),o=this._applyTransform(0===n?"bottom":"top",r),n=this._orient,r=this.visualMapModel.textStyleModel,this.group.add(new Rl({style:kp(r,{x:i[0],y:i[1],verticalAlign:r.get("verticalAlign")||("horizontal"===n?"middle":o),align:r.get("align")||("horizontal"===n?o:"center"),text:e})})))},ED.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,i=e.itemSize,o=this._orient,r=this._useHandle,a=AD(e,this.api,i),a=n.mainGroup=this._createBarGroup(a),s=new Mr,s=(a.add(s),s.add(n.outOfRange=VD()),s.add(n.inRange=VD(null,r?HD(this._orient):null,M(this._dragHandle,this,"all",!1),M(this._dragHandle,this,"all",!0))),s.setClipPath(new kl({shape:{x:0,y:0,width:i[0],height:i[1],r:3}})),e.textStyleModel.getTextRect("国")),s=ND(s.width,s.height);r&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,a,0,i,s,o),this._createHandle(e,a,1,i,s,o)),this._createIndicator(e,a,i,s,o),t.add(a)},ED.prototype._createHandle=function(t,e,n,i,o,r){var a=M(this._dragHandle,this,n,!1),s=M(this._dragHandle,this,n,!0),l=ur(t.get("handleSize"),i[0]),u=A0(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),h=HD(this._orient),i=(u.attr({cursor:h,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){De(t.event)}}),u.x=i[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(),Hu(u,!0),e.add(u),this.visualMapModel.textStyleModel),t=new Rl({cursor:h,draggable:!0,drift:a,onmousemove:function(t){De(t.event)},ondragend:s,style:kp(i,{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[n]=u,h.handleLabelPoints[n]=e,h.handleLabels[n]=t},ED.prototype._createIndicator=function(t,e,n,i,o){var r=ur(t.get("indicatorSize"),n[0]),r=A0(t.get("indicatorIcon"),-r/2,-r/2,r,r,null,!0),t=(r.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2}),t.getModel("indicatorStyle").getItemStyle()),a=(r instanceof _l?(a=r.style,r.useStyle(G({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 Rl({silent:!0,invisible:!0,style:kp(a,{x:0,y:0,text:""})}),e=(this.group.add(t),[("horizontal"===o?i/2:6)+n[0]/2,0]),a=this._shapes;a.indicator=r,a.indicatorLabel=t,a.indicatorLabelPoint=e,this._firstShowIndicator=!0},ED.prototype._dragHandle=function(t,e,n,i){this._useHandle&&(this._dragging=!e,e||(n=this._applyTransform([n,i],this._shapes.mainGroup,!0),this._updateInterval(t,n[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():FD(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1))},ED.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),t=[0,t.itemSize[1]];this._handleEnds=[OD(e[0],n,t,!0),OD(e[1],n,t,!0)]},ED.prototype._updateInterval=function(t,e){var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]],e=(mC(e=e||0,i,o,t,0),n.getExtent());this._dataInterval=[OD(i[0],o,e,!0),OD(i[1],o,e,!0)]},ED.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,e=[0,e.itemSize[1]],t=t?e:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,t,"inRange"),n=this._createBarVisual(n,n,e,"outOfRange");i.inRange.setStyle({fill:o.barColor}).setShape("points",o.barPoints),i.outOfRange.setStyle({fill:n.barColor}).setShape("points",n.barPoints),this._updateHandle(t,o)},ED.prototype._createBarVisual=function(t,e,n,i){var i={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,i),t=[this.getControllerVisual(t[0],"symbolSize",i),this.getControllerVisual(t[1],"symbolSize",i)],i=this._createBarPoints(n,t);return{barColor:new gc(0,0,0,1,o),barPoints:i,handlesColor:[o[0].color,o[o.length-1].color]}},ED.prototype._makeColorGradient=function(t,e){var n=[],i=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var o=1;o<100;o++){var r=t[0]+i*o;if(r>t[1])break;n.push({color:this.getControllerVisual(r,"color",e),offset:o/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},ED.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},ED.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new Mr("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},ED.prototype._updateHandle=function(i,o){var r,a,s,l,u,h,c;this._useHandle&&(r=this._shapes,a=this.visualMapModel,s=r.handleThumbs,l=r.handleLabels,u=a.itemSize,h=a.getExtent(),c=this._applyTransform("left",r.mainGroup),RD([0,1],function(t){var e=s[t],n=(e.setStyle("fill",o.handlesColor[t]),e.y=i[t],OD(i[t],[0,u[1]],h,!0)),n=this.getControllerVisual(n,"symbolSize"),e=(e.scaleX=e.scaleY=n/u[0],e.x=u[0]-n/2,ip(r.handleLabelPoints[t],np(e,this.group)));"horizontal"===this._orient&&(n="left"===c||"top"===c?(u[0]-n)/2:(u[0]-n)/-2,e[1]+=n),l[t].setStyle({x:e[0],y:e[1],text:a.formatValueText(this._dataInterval[t]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",r.mainGroup):"center"})},this))},ED.prototype._showIndicator=function(t,e,n,i){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=OD(t,r,s,!0),r=a[0]-c/2,s={x:u.x,y:u.y},a=(u.y=t,u.x=r,ip(l.indicatorLabelPoint,np(u,this.group))),c=l.indicatorLabel,l=(c.attr("invisible",!1),this._applyTransform("left",l.mainGroup)),p="horizontal"===this._orient,n=(c.setStyle({text:(n||"")+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(n,p),c.animateTo(e,p)):(u.attr(n),c.attr(e)),this._firstShowIndicator=!1,this._shapes.handleLabels);if(d)for(var f=0;f<d.length;f++)this.api.enterBlur(d[f])}},ED.prototype._enableHoverLinkToSeries=function(){var n=this;this._shapes.mainGroup.on("mousemove",function(t){var e;n._hovering=!0,n._dragging||(e=n.visualMapModel.itemSize,(t=n._applyTransform([t.offsetX,t.offsetY],n._shapes.mainGroup,!0,!0))[1]=zD(ND(0,t[1]),e[1]),n._doHoverLinkToSeries(t[1],0<=t[0]&&t[0]<=e[0]))}).on("mouseout",function(){n._hovering=!1,n._dragging||n._clearHoverLinkToSeries()})},ED.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()},ED.prototype._doHoverLinkToSeries=function(t,e){var n,i,o,r=this.visualMapModel,a=r.itemSize;function s(t,e,n){for(var i=0,o=t.length;i<o;i++){var r=ga(t[i].seriesId,null);if(null==r)return;for(var a=la(t[i].dataIndex),s=n&&n[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 n,i,o=[];for(n in t)t.hasOwnProperty(n)&&null!=t[n]&&(e?o.push(+n):(i=l(t[n],!0)).length&&o.push({seriesId:n,dataIndex:i}));return o}r.option.hoverLink&&(a=[0,a[1]],i=r.getExtent(),n=[(t=zD(ND(a[0],t),a[1]))-(o=function(t,e,n){var i=6,t=t.get("hoverLinkDataSize");t&&(i=OD(t,e,n,!0)/2);return i}(r,i,a)),t+o],t=OD(t,a,i,!0),i=[OD(n[0],a,i,!0),OD(n[1],a,i,!0)],n[0]<a[0]&&(i[0]=-1/0),a[1]<n[1]&&(i[1]=1/0),e&&(i[0]===-1/0?this._showIndicator(t,i[1],"< ",o):i[1]===1/0?this._showIndicator(t,i[0],"> ",o):this._showIndicator(t,t,"≈ ",o)),a=this._hoverLinkDataIndices,n=[],(e||FD(r))&&(n=this._hoverLinkDataIndices=r.findTargetDataIndices(i)),t=n,o={},s(a||[],e={}),s(t||[],o,e),i=[l(e),l(o)],this._dispatchHighDown("downplay",PD(i[0],r)),this._dispatchHighDown("highlight",PD(i[1],r)))},ED.prototype._hoverLinkFromSeriesMouseOver=function(t){var e,n;v0(t.target,function(t){t=W(t);return null!=t.dataIndex&&(e=t,1)},!0),e&&(t=this.ecModel.getSeriesByIndex(e.seriesIndex),(n=this.visualMapModel).isTargetSeries(t))&&(n=(t=t.getData(e.dataType)).getStore().get(n.getDataDimensionIndex(t),e.dataIndex),isNaN(n)||this._showIndicator(n,n))},ED.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 n=0;n<e.length;n++)this.api.leaveBlur(e[n])},ED.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",PD(t,this.visualMapModel)),t.length=0},ED.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},ED.prototype._applyTransform=function(t,e,n,i){e=np(e,i?null:this.group);return(V(t)?ip:op)(t,e,n)},ED.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},ED.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},ED.type="visualMap.continuous",ED);function ED(){var t=null!==LD&&LD.apply(this,arguments)||this;return t.type=ED.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}function VD(t,e,n,i){return new Wh({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){De(t.event)},ondragend:i})}function FD(t){var e=t.get("hoverLinkOnHandle");return null==e?t.get("realtime"):e}function HD(t){return"vertical"===t?"ns-resize":"ew-resize"}function WD(e,t){t.eachComponent({mainType:"visualMap",query:e},function(t){t.setSelected(e.selected)})}var GD={type:"selectDataRange",event:"dataRangeSelected",update:"update"},UD=[{createOnAllSeries:!0,reset:function(n,t){var i=[];return t.eachComponent("visualMap",function(t){var f,g,y,m,e=n.pipelineContext;!t.isTargetSeries(n)||e&&e.large||i.push((e=t.stateList,f=t.targetVisuals,g=M(t.getValueState,t),y=t.getDataDimensionIndex(n.getData()),m={},Z(e,function(t){var e=lk.prepareVisualTypes(f[t]);m[t]=e}),{progress:function(t,n){var e,i;function o(t){return f0(n,i,t)}function r(t,e){y0(n,i,t,e)}null!=y&&(e=n.getDimensionIndex(y));for(var a=n.getStore();null!=(i=t.next());){var s=n.getRawDataItem(i);if(!s||!1!==s.visualMap)for(var l=null!=y?a.get(e,i):i,s=g(l),u=f[s],h=m[s],c=0,p=h.length;c<p;c++){var d=h[c];u[d]&&u[d].applyVisual(l,o,r)}}}}))}),i}},{createOnAllSeries:!0,reset:function(n,t){var i=n.getData(),o=[];t.eachComponent("visualMap",function(t){var e;t.isTargetSeries(n)&&(e=t.getVisualMeta(M(ZD,null,n,t))||{stops:[],outerColors:[]},0<=(t=t.getDataDimensionIndex(i)))&&(e.dimension=t,o.push(e))}),n.getData().setVisual("visualMeta",o)}}];function ZD(t,e,n,i){for(var o=e.targetVisuals[i],r=lk.prepareVisualTypes(o),a={color:g0(t.getData(),"color")},s=0,l=r.length;s<l;s++){var u=r[s],u=o["opacity"===u?"__alphaForOpacity":u];u&&u.applyVisual(n,h,c)}return a.color;function h(t){return a[t]}function c(t,e){a[t]=e}}var XD=Z;function YD(t){t=t&&t.visualMap;V(t)||(t=t?[t]:[]),XD(t,function(t){t&&(qD(t,"splitList")&&!qD(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList),t=t.pieces)&&V(t)&&XD(t,function(t){N(t)&&(qD(t,"start")&&!qD(t,"min")&&(t.min=t.start),qD(t,"end"))&&!qD(t,"max")&&(t.max=t.end)})})}function qD(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var jD=!1;function KD(e){jD||(jD=!0,e.registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?0<t.pieces.length:0<t.splitNumber)&&!t.calculable?"piecewise":"continuous"}),e.registerAction(GD,WD),Z(UD,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(YD))}function $D(t){t.registerComponentModel(MD),t.registerComponentView(BD),KD(t)}a(tA,QD=Pc),tA.prototype.optionUpdated=function(t,e){QD.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode(),i=(this._pieceList=[],eA[this._mode].call(this,this._pieceList),this._resetSelected(t,e),this.option.categories);this.resetVisual(function(t,e){"categories"===n?(t.mappingMethod="category",t.categories=S(i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=E(this._pieceList,function(t){return t=S(t),"inRange"!==e&&(t.visual=null),t}))})},tA.prototype.completeVisualOption=function(){var i=this.option,n={},t=lk.listVisualTypes(),o=this.isCategory();function r(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}Z(i.pieces,function(e){Z(t,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),Z(n,function(t,e){var n=!1;Z(this.stateList,function(t){n=n||r(i,t,e)||r(i.target,t,e)},this),n||Z(this.stateList,function(t){(i[t]||(i[t]={}))[e]=dD(e,"inRange"===t?"active":"inactive",o)})},this),QD.prototype.completeVisualOption.apply(this,arguments)},tA.prototype._resetSelected=function(t,e){var n,i=this.option,o=this._pieceList,r=(e?i:t).selected||{};i.selected=r,Z(o,function(t,e){t=this.getSelectedMapKey(t);r.hasOwnProperty(t)||(r[t]=!0)},this),"single"===i.selectedMode&&(n=!1,Z(o,function(t,e){t=this.getSelectedMapKey(t);r[t]&&(n?r[t]=!1:n=!0)},this))},tA.prototype.getItemSymbol=function(){return this.get("itemSymbol")},tA.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},tA.prototype.getPieceList=function(){return this._pieceList},tA.prototype._determineMode=function(){var t=this.option;return t.pieces&&0<t.pieces.length?"pieces":this.option.categories?"categories":"splitNumber"},tA.prototype.setSelected=function(t){this.option.selected=S(t)},tA.prototype.getValueState=function(t){t=lk.findPieceIndex(t,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},tA.prototype.findTargetDataIndices=function(i){var o=[],r=this._pieceList;return this.eachTargetSeries(function(t){var n=[],e=t.getData();e.each(this.getDataDimensionIndex(e),function(t,e){lk.findPieceIndex(t,r)===i&&n.push(e)},this),o.push({seriesId:t.id,dataIndex:n})},this),o},tA.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},tA.prototype.getVisualMeta=function(i){var o,r,a,t,e,n;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]}),n=-1/0,Z(t,function(t){t=t.interval;t&&(t[0]>n&&s([n,t[0]],"outOfRange"),s(t.slice()),n=t[1])},this),{stops:o,outerColors:r};function s(t,e){var n=a.getRepresentValue({interval:t}),n=(e=e||a.getValueState(n),i(n,e));t[0]===-1/0?r[0]=n:t[1]===1/0?r[1]=n:o.push({value:t[0],color:n},{value:t[1],color:n})}},tA.type="visualMap.piecewise",tA.defaultOption=ed(Pc.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 QD,JD=tA;function tA(){var t=null!==QD&&QD.apply(this,arguments)||this;return t.type=tA.type,t._pieceList=[],t}var eA={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),o=e.splitNumber,o=Math.max(parseInt(o,10),1);e.splitNumber=o;for(var r=(i[1]-i[0])/o;+r.toFixed(n)!==r&&n<5;)n++;e.precision=n,r=+r.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<o;s+=r,a++){var l=a===o-1?i[1]:s+r;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),ta(t),Z(t,function(t,e){t.index=e,t.text=this.formatValueText(t.interval)},this)},categories:function(e){var t=this.option;Z(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),nA(t,e)},pieces:function(c){var t=this.option;Z(t.pieces,function(t,e){e={text:"",index:e};if(null!=(t=N(t)?t:{value:t}).label&&(e.text=t.label),t.hasOwnProperty("value")){var n=e.value=t.value;e.interval=[n,n],e.close=[1,1]}else{for(var i=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==i[l];h++)i[l]=t[u[h]],o[l]=r[h],s[l]=2===h;null==i[l]&&(i[l]=a[l])}s[0]&&i[1]===1/0&&(o[0]=0),s[1]&&i[0]===-1/0&&(o[1]=0),i[0]===i[1]&&o[0]&&o[1]&&(e.value=i[0])}e.visual=lk.retrieveVisuals(t),c.push(e)},this),nA(t,c),ta(c),Z(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 nA(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}a(rA,iA=pc),rA.prototype.doRender=function(){var o=this.group,r=(o.removeAll(),this.visualMapModel),a=r.get("textGap"),s=r.textStyleModel,l=this._getItemAlign(),u=r.itemSize,t=this._getViewData(),e=t.endsText,h=wt(r.get("showLabel",!0),!e),c=!r.get("selectedMode");e&&this._renderEndsText(o,e[0],u,h,l),Z(t.viewPieceList,function(t){var e,n=t.piece,i=new Mr,t=(i.onclick=M(this._onItemClick,this,n),this._enableHoverLink(i,t.indexInModelPieceList),r.getRepresentValue(n));this._createItemSymbol(i,t,[0,0,u[0],u[1]],c),h&&(t=this.visualMapModel.getValueState(t),e=s.get("align")||l,i.add(new Rl({style:kp(s,{x:"right"===e?-a:u[0]+a,y:u[1]/2,text:n.text,verticalAlign:s.get("verticalAlign")||"middle",align:e,opacity:H(s.get("opacity"),"outOfRange"===t?.5:1)}),silent:c}))),o.add(i)},this),e&&this._renderEndsText(o,e[1],u,h,l),af(r.get("orient"),o,r.get("itemGap")),this.renderBackground(o),this.positionGroup(o)},rA.prototype._enableHoverLink=function(t,n){var i=this,e=(t.on("mouseover",function(){return e("highlight")}).on("mouseout",function(){return e("downplay")}),function(t){var e=i.visualMapModel;e.option.hoverLink&&i.api.dispatchAction({type:t,batch:PD(e.findTargetDataIndices(n),e)})})},rA.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;return"vertical"===e.orient?AD(t,this.api,t.itemSize):(t=e.align)&&"auto"!==t?t:"left"},rA.prototype._renderEndsText=function(t,e,n,i,o){var r,a;e&&(r=new Mr,a=this.visualMapModel.textStyleModel,r.add(new Rl({style:kp(a,{x:i?"right"===o?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:e})})),t.add(r))},rA.prototype._getViewData=function(){var t=this.visualMapModel,e=E(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get("text"),i=t.get("orient"),t=t.get("inverse");return("horizontal"===i?t:!t)?e.reverse():n=n&&n.slice().reverse(),{viewPieceList:e,endsText:n}},rA.prototype._createItemSymbol=function(t,e,n,i){n=A0(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color"));n.silent=i,t.add(n)},rA.prototype._onItemClick=function(t){var n,i,e=this.visualMapModel,o=e.option,r=o.selectedMode;r&&(n=S(o.selected),i=e.getSelectedMapKey(t),"single"===r||!0===r?(n[i]=!0,Z(n,function(t,e){n[e]=e===i})):n[i]=!n[i],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:n}))},rA.type="visualMap.piecewise";var iA,oA=rA;function rA(){var t=null!==iA&&iA.apply(this,arguments)||this;return t.type=rA.type,t}function aA(t){t.registerComponentModel(JD),t.registerComponentView(oA),KD(t)}mx(function(t){mx($D),mx(aA)});a(uA,sA=ph),uA.type="dataZoom.select";var sA,lA=uA;function uA(){var t=null!==sA&&sA.apply(this,arguments)||this;return t.type=uA.type,t}a(pA,hA=yh),pA.type="dataZoom.select";var hA,cA=pA;function pA(){var t=null!==hA&&hA.apply(this,arguments)||this;return t.type=pA.type,t}function dA(t){t.registerComponentModel(lA),t.registerComponentView(cA),$C(t)}a(yA,fA=g),yA.prototype.optionUpdated=function(){fA.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;Z(this.option.feature,function(t,e){e=sD(e);e&&(e.getDefaultOption&&(e.defaultOption=e.getDefaultOption(n)),d(t,e.defaultOption))})},yA.type="toolbox",yA.layoutMode={type:"box",ignoreSize:!0},yA.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:I.color.border,borderRadius:0,borderWidth:0,padding:I.size.m,itemSize:15,itemGap:I.size.s,showTitle:!0,iconStyle:{borderColor:I.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:I.color.accent50}},tooltip:{show:!1,position:"bottom"}};var fA,gA=yA;function yA(){var t=null!==fA&&fA.apply(this,arguments)||this;return t.type=yA.type,t}a(_A,mA=Sm),_A.prototype.render=function(p,d,f,g){var y,m,v,_,x,t,e,n,i,b=this.group;function o(t,e){var n,t=x[t],e=x[e],i=v[t],o=new $p(i,p,p.ecModel);if(g&&null!=g.newTitle&&g.featureName===t&&(i.title=g.newTitle),t&&!e){if(0===t.indexOf("my"))n={onclick:o.option.onclick,featureName:t};else{i=sD(t);if(!i)return;n=new i}_[t]=n}else if(!(n=_[e]))return;n.uid=td("toolbox-feature"),n.model=o,n.ecModel=d,n.api=f;var r,a,s,l,u,h,c,i=n instanceof oD;!t&&e?i&&n.dispose&&n.dispose(d,f):!o.get("show")||i&&n.unusable?i&&n.remove&&n.remove(d,f):(a=n,e=t,u=(r=o).getModel("iconStyle"),h=r.getModel(["emphasis","iconStyle"]),i=a instanceof oD&&a.getIcons?a.getIcons():r.get("icon"),t=r.get("title")||{},F(i)?(s={})[e]=i:s=i,F(t)?(l={})[e]=t:l=t,c=r.iconPaths={},Z(s,function(t,e){var n=lp(t,{},{x:-y/2,y:-y/2,width:y,height:y});n.setStyle(u.getItemStyle());n.ensureState("emphasis").style=h.getItemStyle();var i=new Rl({style:{text:l[e],align:h.get("textAlign"),borderRadius:h.get("textBorderRadius"),padding:h.get("textPadding"),fill:null,font:Rp({fontStyle:h.get("textFontStyle"),fontFamily:h.get("textFontFamily"),fontSize:h.get("textFontSize"),fontWeight:h.get("textFontWeight")},d)},ignore:!0});n.setTextContent(i),fp({el:n,componentModel:p,itemName:e,formatterParamsExtra:{title:l[e]}}),n.__title=l[e],n.on("mouseover",function(){var t=h.getItemStyle(),e=m?null==p.get("right")&&"right"!==p.get("left")?"right":"left":null==p.get("bottom")&&"bottom"!==p.get("top")?"bottom":"top";i.setStyle({fill:h.get("textFill")||t.fill||t.stroke||I.color.neutral99,backgroundColor:h.get("textBackgroundColor")}),n.setTextConfig({position:h.get("textPosition")||e}),i.ignore=!p.get("showTitle"),f.enterEmphasis(this)}).on("mouseout",function(){"emphasis"!==r.get(["iconStatus",e])&&f.leaveEmphasis(this),i.hide()}),("emphasis"===r.get(["iconStatus",e])?Mu:Tu)(n),b.add(n),n.on("click",M(a.onclick,a,d,f,e)),c[e]=n}),o.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?Mu:Tu)(i[t])},n instanceof oD&&n.render&&n.render(o,d,f,g))}b.removeAll(),p.get("show")&&(y=+p.get("itemSize"),m="vertical"===p.get("orient"),v=p.get("feature")||{},_=this._features||(this._features={}),x=[],Z(v,function(t,e){x.push(e)}),new D1(this._featureNames||[],x).add(o).update(o).remove(T(o,null)).execute(),this._featureNames=x,t=hf(p,f).refContainer,i=sf(e=p.getBoxLayoutParams(),t,n=p.get("padding")),af(p.get("orient"),b,p.get("itemGap"),i.width,i.height),cf(b,e,t,n),b.add(iS(b.getBoundingRect(),p)),m||b.eachChild(function(t){var e,n,i=t.__title,o=t.ensureState("emphasis"),o=o.textConfig||(o.textConfig={}),r=t.getTextContent(),r=r&&r.ensureState("emphasis");r&&!z(r)&&i&&(r=r.style||(r.style={}),i=rr(i,Rl.makeFont(r)),e=t.x+b.x,n=!1,t.y+b.y+y+i.height>f.getHeight()&&(o.position="top",n=!0),t=n?-5-i.height:y+10,e+i.width/2>f.getWidth()?(o.position=["100%",t],r.align="right"):e-i.width/2<0&&(o.position=[0,t],r.align="left"))}))},_A.prototype.updateView=function(t,e,n,i){Z(this._features,function(t){t instanceof oD&&t.updateView&&t.updateView(t.model,e,n,i)})},_A.prototype.remove=function(e,n){Z(this._features,function(t){t instanceof oD&&t.remove&&t.remove(e,n)}),this.group.removeAll()},_A.prototype.dispose=function(e,n){Z(this._features,function(t){t instanceof oD&&t.dispose&&t.dispose(e,n)})},_A.type="toolbox";var mA,vA=_A;function _A(){return null!==mA&&mA.apply(this,arguments)||this}a(wA,xA=oD),wA.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o="svg"===e.getZr().painter.getType(),r=o?"svg":n.get("type",!0)||"png",e=e.getConnectedDataURL({type:r,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||I.color.neutral00,connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),t=w.browser;if("function"!=typeof MouseEvent||!t.newEdge&&(t.ie||t.edge))if(window.navigator.msSaveOrOpenBlob||o){var t=e.split(","),a=-1<t[0].indexOf("base64"),s=o?decodeURIComponent(t[1]):t[1],o=(a&&(s=window.atob(s)),i+"."+r);if(window.navigator.msSaveOrOpenBlob){for(var l=s.length,u=new Uint8Array(l);l--;)u[l]=s.charCodeAt(l);t=new Blob([u]);window.navigator.msSaveOrOpenBlob(t,o)}else{var a=document.createElement("iframe"),t=(document.body.appendChild(a),a.contentWindow),h=t.document;h.open("image/svg+xml","replace"),h.write(s),h.close(),t.focus(),h.execCommand("SaveAs",!0,o),document.body.removeChild(a)}}else{t=n.get("lang"),h='<body style="margin:0;"><img src="'+e+'" style="max-width:100%;" title="'+(t&&t[0]||"")+'" /></body>',o=window.open();o.document.write(h),o.document.title=i}else{a=document.createElement("a"),n=(a.download=i+"."+r,a.target="_blank",a.href=e,new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1}));a.dispatchEvent(n)}},wA.getDefaultOption=function(t){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:I.color.neutral00,name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}};var xA,bA=wA;function wA(){return null!==xA&&xA.apply(this,arguments)||this}var SA,MA="__ec_magicType_stack__",TA=[["line","bar"],["stack"]],CA=(a(IA,SA=oD),IA.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return Z(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n},IA.getDefaultOption=function(t){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},IA.prototype.onclick=function(t,e,a){var s,n,l=this.model,i=l.get(["seriesIndex",a]);kA[a]&&(s={series:[]},Z(TA,function(t){0<=U(t,a)&&Z(t,function(t){l.setIconStatus(t,"normal")})}),l.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},function(t){var e=t.subType,n=t.id,e=kA[a](e,n,t,l),n=(e&&(B(e,t.option),s.series.push(e)),t.coordinateSystem);if(n&&"cartesian2d"===n.type&&("line"===a||"bar"===a)){e=n.getAxesByScale("ordinal")[0];if(e){var i=e.dim+"Axis",o=t.getReferringComponents(i,Sa).models[0].componentIndex;s[i]=s[i]||[];for(var r=0;r<=o;r++)s[i][o]=s[i][o]||{};s[i][o].boundaryGap="bar"===a}}}),"stack"===(t=a)&&(n=d({stack:l.option.title.tiled,tiled:l.option.title.stack},l.option.title),"emphasis"!==l.get(["iconStatus",a]))&&(t="tiled"),e.dispatchAction({type:"changeMagicType",currentType:t,newOption:s,newTitle:n,featureName:"magicType"}))},IA);function IA(){return null!==SA&&SA.apply(this,arguments)||this}var kA={line:function(t,e,n,i){if("bar"===t)return d({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return d({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){n=n.get("stack")===MA;if("line"===t||"bar"===t)return i.setIconStatus("stack",n?"normal":"emphasis"),d({id:e,stack:n?"":MA},i.get(["option","stack"])||{},!0)}},DA=(m1({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)}),new Array(60).join("-")),AA="\t";function PA(t){o={},r=[],a=[],t.eachRawSeries(function(t){var e,n,i=t.coordinateSystem;(i&&("cartesian2d"===i.type||"polar"===i.type)&&"category"===(e=i.getBaseAxis()).type?(n=e.dim+"_"+e.index,o[n]||(o[n]={categoryAxis:e,valueAxis:i.getOtherAxis(e),series:[]},a.push({axisDim:e.dim,axisIndex:e.index})),o[n].series):r).push(t)});var o,r,a,h,t={seriesGroupByCategoryAxis:o,other:r,meta:a};return{value:pt([(h=[],Z(t.seriesGroupByCategoryAxis,function(t,e){for(var n=t.categoryAxis,i=t.valueAxis.dim,o=[" "].concat(E(t.series,function(t){return t.name})),r=[n.model.getCategories()],a=(Z(t.series,function(t){var e=t.getRawData();r.push(t.getRawData().mapArray(e.mapDimension(i),function(t){return t}))}),[o.join(AA)]),s=0;s<r[0].length;s++){for(var l=[],u=0;u<r.length;u++)l.push(r[u][s]);a.push(l.join(AA))}h.push(a.join("\n"))}),h.join("\n\n"+DA+"\n\n")),E(t.other,function(t){var i=t.getRawData(),o=[t.name],r=[];return i.each(i.dimensions,function(){for(var t=arguments.length,e=i.getName(arguments[t-1]),n=0;n<t-1;n++)r[n]=arguments[n];o.push((e?e+AA:"")+r.join(AA))}),o.join("\n")}).join("\n\n"+DA+"\n\n")],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join("\n\n"+DA+"\n\n"),meta:t.meta}}function LA(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var OA=new RegExp("["+AA+"]+","g");function RA(t,o){var t=t.split(new RegExp("\n*"+DA+"\n*","g")),r={series:[]};return Z(t,function(t,e){var n,i;0<=t.slice(0,t.indexOf("\n")).indexOf(AA)?(i=function(t){for(var e=t.split(/\n+/g),n=[],i=E(LA(e.shift()).split(OA),function(t){return{name:t,data:[]}}),o=0;o<e.length;o++){var r=LA(e[o]).split(OA);n.push(r.shift());for(var a=0;a<r.length;a++)i[a]&&(i[a].data[o]=r[a])}return{series:i,categories:n}}(t),n=(e=o[e]).axisDim+"Axis",e&&(r[n]=r[n]||[],r[n][e.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))):(i=function(t){for(var e=t.split(/\n+/g),t=LA(e.shift()),n=[],i=0;i<e.length;i++){var o=LA(e[i]);if(o){for(var r,a=o.split(OA),s=void 0,o=!1,s=isNaN(a[0])?(o=!0,r=a[0],a=a.slice(1),n[i]={name:r,value:[]},n[i].value):n[i]=[],l=0;l<a.length;l++)s.push(+a[l]);1===s.length&&(o?n[i].value=s[0]:n[i]=s[0])}}return{name:t,data:n}}(t),r.series.push(i))}),r}a(BA,zA=oD),BA.prototype.onclick=function(t,e){setTimeout(function(){e.dispatchAction({type:"hideTip"})});var n=e.getDom(),i=this.model,o=(this._dom&&n.removeChild(this._dom),document.createElement("div")),r=(o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||I.color.neutral00,document.createElement("h4")),a=i.get("lang")||[],s=(r.innerHTML=a[0]||i.get("title"),r.style.cssText="margin:10px 20px",r.style.color=i.get("textColor"),document.createElement("div")),l=document.createElement("textarea"),u=(s.style.cssText="overflow:auto",i.get("optionToContent")),h=i.get("contentToOption"),t=PA(t),c=(z(u)?F(p=u(e.getOption()))?s.innerHTML=p:mt(p)&&s.appendChild(p):(l.readOnly=i.get("readOnly"),(p=l.style).cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),l.value=t.value,s.appendChild(l)),t.meta),p=document.createElement("div"),t=(p.style.cssText="position:absolute;bottom:5px;left:0;right:0","float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px"),d=document.createElement("div"),f=document.createElement("div"),g=(t=(t+=";background-color:"+i.get("buttonColor"))+(";color:"+i.get("buttonTextColor")),this);function y(){n.removeChild(o),g._dom=null}ke(d,"click",y),ke(f,"click",function(){if(!(null==h&&null!=u||null!=h&&null==u)){var t;try{t=z(h)?h(s,e.getOption()):RA(l.value,c)}catch(t){throw y(),new Error("Data view format error "+t)}t&&e.dispatchAction({type:"changeDataView",newOption:t})}y()}),d.innerHTML=a[1],f.innerHTML=a[2],f.style.cssText=d.style.cssText=t,i.get("readOnly")||p.appendChild(f),p.appendChild(d),o.appendChild(r),o.appendChild(s),o.appendChild(p),s.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},BA.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},BA.prototype.dispose=function(t,e){this.remove(t,e)},BA.getDefaultOption=function(t){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:I.color.background,textColor:I.color.primary,textareaColor:I.color.background,textareaBorderColor:I.color.border,buttonColor:I.color.accent50,buttonTextColor:I.color.neutral00}};var zA,NA=BA;function BA(){return null!==zA&&zA.apply(this,arguments)||this}m1({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,o){var r=[];Z(t.newOption.series,function(t){var e,i,n=o.getSeriesByName(t.name)[0];n?(n=n.get("data"),r.push({name:t.name,data:(e=t.data,i=n,E(e,function(t,e){var n,e=i&&i[e];return N(e)&&!V(e)&&(N(t)&&!V(t)||(t={value:t}),n=null!=e.name&&null==t.name,t=B(t,e),n)&&delete t.name,t}))})):r.push(G({type:"scatter"},t))}),o.mergeOption(B({series:r},t.newOption))});var EA=Z,VA=i();function FA(t){t=VA(t);return t.snapshots||(t.snapshots=[{}]),t.snapshots}a(GA,HA=oD),GA.prototype.onclick=function(t,e){VA(t).snapshots=null,e.dispatchAction({type:"restore",from:this.uid})},GA.getDefaultOption=function(t){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])}};var HA,WA=GA;function GA(){return null!==HA&&HA.apply(this,arguments)||this}m1({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});var UA,ZA=Z,XA=(a(YA,UA=oD),YA.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new CI(n.getZr()),this._brushController.on("brush",M(this._onBrush,this)).mount());var o=t,r=e,a=this,s=a._isZoomActive;i&&"takeGlobalCursor"===i.type&&(s="dataZoomSelect"===i.key&&i.dataZoomSelectActive),a._isZoomActive=s,o.setIconStatus("zoom",s?"emphasis":"normal"),i=new Ak(jA(o),r,{include:["grid"]}).makePanelOpts(n,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}),a._brushController.setPanels(i).enableBrush(!(!s||!i.length)&&{brushType:"auto",brushStyle:o.getModel("brushStyle").getItemStyle()}),t.setIconStatus("back",1<function(t){return FA(t).length}(e)?"emphasis":"normal")},YA.prototype.onclick=function(t,e,n){qA[n].call(this)},YA.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},YA.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},YA.prototype._onBrush=function(t){var s,l,o,r,e=t.areas;function i(t,e,n){var i,o,r,e=e.getAxis(t),a=e.model,t=(i=t,o=a,l.eachComponent({mainType:"dataZoom",subType:"select"},function(t){t.getAxisModel(i,o.componentIndex)&&(r=t)}),r),a=t.findRepresentativeAxisProxy(a).getMinMaxSpan();null==a.minValueSpan&&null==a.maxValueSpan||(n=mC(0,n.slice(),e.scale.getExtent(),0,a.minValueSpan,a.maxValueSpan)),t&&(s[t.id]={dataZoomId:t.id,startValue:n[0],endValue:n[1]})}t.isEnd&&e.length&&(s={},l=this.ecModel,this._brushController.updateCovers([]),new Ak(jA(this.model),l,{include:["grid"]}).matchOutputRanges(e,l,function(t,e,n){"cartesian2d"===n.type&&("rect"===(t=t.brushType)?(i("x",n,e[0]),i("y",n,e[1])):i({lineX:"x",lineY:"y"}[t],n,e))}),t=s,r=FA(o=l),EA(t,function(t,e){for(var n,i=r.length-1;0<=i&&!r[i][e];i--);i<0&&(n=o.queryComponents({mainType:"dataZoom",subType:"select",id:e})[0])&&(n=n.getPercentRange(),r[0][e]={dataZoomId:e,start:n[0],end:n[1]})}),r.push(t),this._dispatchZoomAction(s))},YA.prototype._dispatchZoomAction=function(t){var n=[];ZA(t,function(t,e){n.push(S(t))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},YA.getDefaultOption=function(t){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:I.color.backgroundTint}}},YA);function YA(){return null!==UA&&UA.apply(this,arguments)||this}var qA={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){var t,i,o;this._dispatchZoomAction((t=this.ecModel,i=FA(t),t=i[i.length-1],1<i.length&&i.pop(),o={},EA(t,function(t,e){for(var n=i.length-1;0<=n;n--)if(t=i[n][e]){o[e]=t;break}}),o))}};function jA(t){t={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}function KA(e,t){var n;return Z(t,function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)}),n}Bh="dataZoom",e=function(t){var i,o,e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n))return i=e.getModel(n),o=[],e=ba(t,jA(i)),ZA(e.xAxisModels,function(t){return r(t,"xAxis","xAxisIndex")}),ZA(e.yAxisModels,function(t){return r(t,"yAxis","yAxisIndex")}),o;function r(t,e,n){t=t.componentIndex,e={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:"\0_ec_\0toolbox-dataZoom_"+e+t};e[n]=t,o.push(e)}},Ct(null==Hf.get(Bh)&&e),Hf.set(Bh,e),mx(function(t){t.registerComponentModel(gA),t.registerComponentView(vA),aD("saveAsImage",bA),aD("magicType",CA),aD("dataView",NA),aD("dataZoom",XA),aD("restore",WA),mx(dA)});var $A=["transition","enterFrom","leaveTo"],QA=$A.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function JA(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?$A:QA,o=0;o<i.length;o++){var r=i[o];null==t[r]&&null!=e[r]&&(t[r]=e[r])}}a(nP,tP=g),nP.prototype.mergeOption=function(t,e){var n=this.option.elements;this.option.elements=null,tP.prototype.mergeOption.call(this,t,e),this.option.elements=n},nP.prototype.optionUpdated=function(t,e){var n=this.option,t=(e?n:t).elements,l=n.elements=e?[]:n.elements,e=[],t=(this._flatten(t,e,null),pa(l,e,"normalMerge")),u=this._elOptionsToUpdate=[];Z(t,function(t,e){var n,i,o,r,a,s=t.newOption;s&&(u.push(s),r=s,n=(t=t).existing,r.id=t.keyInfo.id,!r.type&&n&&(r.type=n.type),null==r.parentId&&((t=r.parentOption)?r.parentId=t.id:n&&(r.parentId=n.parentId)),r.parentOption=null,t=l,n=e,a=G({},r=s),i=t[n],"merge"===(o=r.$action||"merge")?i?(d(i,a,!0),df(i,a,{ignoreSize:!0}),gf(r,i),JA(r,i),JA(r,i,"shape"),JA(r,i,"style"),JA(r,i,"extra"),r.clipPath=i.clipPath):t[n]=a:"replace"===o?t[n]=a:"remove"===o&&i&&(t[n]=null),r=l[e],a=s,r)&&(r.hv=a.hv=[KA(a,["left","right"]),KA(a,["top","bottom"])],"group"===r.type)&&(a=a,null==(r=r).width&&(r.width=a.width=0),null==r.height)&&(r.height=a.height=0)},this),n.elements=pt(l,function(t){return t&&delete t.$action,null!=t})},nP.prototype._flatten=function(t,n,i){Z(t,function(t){var e;t&&(i&&(t.parentOption=i),n.push(t),(e=t.children)&&e.length&&this._flatten(e,n,t),delete t.children)},this)},nP.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},nP.type="graphic",nP.defaultOption={elements:[]};var tP,eP=nP;function nP(){var t=null!==tP&&tP.apply(this,arguments)||this;return t.type=nP.type,t.preventAutoZ=!0,t}function iP(t,e){e&&(e.font=e.textFont||e.font,Y(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Y(e,"textAlign")&&(t.align=e.textAlign),Y(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Y(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Y(e,"textWidth")&&(t.width=e.textWidth),Y(e,"textHeight")&&(t.height=e.textHeight),Y(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Y(e,"textPadding")&&(t.padding=e.textPadding),Y(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Y(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Y(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Y(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Y(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Y(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Y(e,"textBoxShadowOffsetY"))&&(t.shadowOffsetY=e.textBoxShadowOffsetY)}var oP={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},rP=X(oP),aP=(ct(Qo,function(t,e){return t[e]=1,t},{}),Qo.join(", "),["","style","shape","extra"]),sP=i();function lP(t,e,n,i,o){var r=t+"Animation",i=Rc(t,i,o)||{},o=sP(e).userDuring;return 0<i.duration&&(i.during=o?M(fP,{el:e,userDuring:o}):null,i.setToFinal=!0,i.scope=t),G(i,n[r]),i}function uP(t,n,e,i){for(var o,r=(i=i||{}).dataIndex,a=i.isInit,i=i.clearStyle,s=e.isAnimationEnabled(),l=sP(t),u=n.style,l=(l.userDuring=n.during,{}),h={},c=n,p=h,d=0;d<rP.length;d++){var f=rP[d],g=oP[f],f=c[f];f&&(p[g[0]]=f[0],p[g[1]]=f[1])}for(d=0;d<Qo.length;d++){var y=Qo[d];null!=c[y]&&(p[y]=c[y])}if("compound"===t.type)for(var N=t.shape.paths,m=n.shape.paths,v=0;v<m.length;v++)yP("shape",m[v],N[v]);else yP("shape",n,h),yP("extra",n,h);if(!a&&s){for(var B=t,_=n,E=l,x=cP(_=n.transition)?Qo:la(_||[]),b=0;b<x.length;b++){var w,S=x[b];"style"!==S&&"shape"!==S&&"extra"!==S&&(w=B[S],E[S]=w)}gP("shape",t,n,l),gP("extra",t,n,l);var _=t,M=n,T=u,C=l;if(T){var I,k=_.style;if(k){var D=T.transition,M=M.transition;if(D&&!cP(D)){var A=la(D);I=I||(C.style={});for(var P=0;P<A.length;P++){var L=A[P],O=k[L];I[L]=O}}else if(_.getAnimationStyleProps&&(cP(M)||cP(D)||0<=U(M,"style"))){var D=_.getAnimationStyleProps(),V=D?D.style:null;if(V){I=I||(C.style={});for(var F=X(T),P=0;P<F.length;P++){L=F[P];V[L]&&(O=k[L],I[L]=O)}}}}}}h.style=u;var R=t,M=h,_=i,D=M.style;if(!R.isGroup&&D){if(_){R.useStyle({});for(var H=R.animators,z=0;z<H.length;z++){var W=H[z];"style"===W.targetName&&W.changeTarget(R.style)}}R.setStyle(D)}M&&(M.style=null,M&&R.attr(M),M.style=D);C=t,T=n;Y(T,"silent")&&(C.silent=T.silent),Y(T,"ignore")&&(C.ignore=T.ignore),C instanceof gs&&Y(T,"invisible")&&(C.invisible=T.invisible),C instanceof cl&&Y(T,"autoBatch")&&(C.autoBatch=T.autoBatch),s&&(a?(o={},Z(aP,function(t){var e=t?n[t]:n;e&&e.enterFrom&&(t&&(o[t]=o[t]||{}),G(t?o[t]:o,e.enterFrom))}),0<(h=lP("enter",t,n,e,r)).duration&&t.animateFrom(o,h)):(i=t,s=n,a=r||0,h=e,(r=l)&&0<(s=lP("update",i,s,h,a)).duration&&i.animateFrom(r,s))),hP(t,n),u?t.dirty():t.markRedraw()}function hP(t,e){for(var n=sP(t).leaveToProps,i=0;i<aP.length;i++){var o=aP[i],r=o?e[o]:e;r&&r.leaveTo&&(n=n||(sP(t).leaveToProps={}),o&&(n[o]=n[o]||{}),G(o?n[o]:n,r.leaveTo))}}function cP(t){return"all"===t}var pP={},dP={setTransform:function(t,e){return pP.el[t]=e,this},getTransform:function(t){return pP.el[t]},setShape:function(t,e){var n=pP.el;return(n.shape||(n.shape={}))[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=pP.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=pP.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle)&&n.dirtyStyle(),this},getStyle:function(t){var e=pP.el.style;if(e)return e[t]},setExtra:function(t,e){return(pP.el.extra||(pP.el.extra={}))[t]=e,this},getExtra:function(t){var e=pP.el.extra;if(e)return e[t]}};function fP(){var t,e=this.el;e&&(sP(e).userDuring!==(t=this.userDuring)?this.el=this.userDuring=null:(pP.el=e,t(dP)))}function gP(t,e,n,i){var o=n[t];if(o){var r,a,s=e[t];if(s){e=n.transition,n=o.transition;if(n)if(c=c||(i[t]={}),cP(n))G(c,s);else for(var l=la(n),u=0;u<l.length;u++){var h=s[d=l[u]];c[d]=h}else if(cP(e)||0<=U(e,t))for(var c=c||(i[t]={}),p=X(s),u=0;u<p.length;u++){var d,h=s[d=p[u]];r=o[d],a=h,(ht(r)?r!==a:null!=r&&isFinite(r))&&(c[d]=h)}}}}function yP(t,e,n){var i=e[t];if(i)for(var o=n[t]={},r=X(i),a=0;a<r.length;a++){var s=r[a];o[s]=ao(i[s])}}var mP=i(),vP=["percent","easing","shape","style","extra"];function _P(l,u,e){var t,n,h,c;e.isAnimationEnabled()&&u&&(V(u)?Z(u,function(t){_P(l,t,e)}):(t=u.keyframes,h=u.duration,e&&null==h&&(n=Rc("enter",e,0),h=n&&n.duration),t&&h&&(c=mP(l),Z(aP,function(a){var s;a&&!l[a]||(t.sort(function(t,e){return t.percent-e.percent}),Z(t,function(t){var e=l.animators,n=a?t[a]:t;if(n){var i=X(n);if((i=a?i:pt(i,function(t){return U(vP,t)<0})).length){s||((s=l.animate(a,u.loop,!0)).scope="keyframe");for(var o=0;o<e.length;o++)e[o]!==s&&e[o].targetName===s.targetName&&e[o].stopTracks(i);a&&(c[a]=c[a]||{});var r=a?c[a]:c;Z(i,function(t){r[t]=((a?l[a]:l)||{})[t]}),s.whenWithKeys(h*t.percent,n,i,t.easing)}}}),s&&s.delay(u.delay||0).duration(h).start(u.easing))}))))}var xP,bP={path:null,compoundPath:null,group:Mr,image:_l,text:Rl},wP=i(),SP=(a(MP,xP=Sm),MP.prototype.init=function(){this._elMap=L()},MP.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},MP.prototype._updateElements=function(m){var v,_,x,b,t=m.useElOptionsToUpdate();t&&(v=this._elMap,_=this.group,x=m.get("z"),b=m.get("zlevel"),Z(t,function(t){var e,n,i,o,r,a=ga(t.id,null),s=null!=a?v.get(a):null,l=ga(t.parentId,null),l=null!=l?v.get(l):_,u=t.type,h=t.style,c=("text"===u&&h&&t.hv&&t.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null),t.textContent),p=t.textConfig,u=(h&&(g=u,d=!!p,n=!!c,f=h)&&(f.legacy||!1!==f.legacy&&!d&&!n&&"tspan"!==g&&("text"===g||Y(f,"text")))&&(d=!0,g=n=h,"text"===(f=u)?o=g:(o={},Y(g,"text")&&(o.text=g.text),Y(g,"rich")&&(o.rich=g.rich),Y(g,"textFill")&&(o.fill=g.textFill),Y(g,"textStroke")&&(o.stroke=g.textStroke),Y(g,"fontFamily")&&(o.fontFamily=g.fontFamily),Y(g,"fontSize")&&(o.fontSize=g.fontSize),Y(g,"fontStyle")&&(o.fontStyle=g.fontStyle),Y(g,"fontWeight")&&(o.fontWeight=g.fontWeight),y={type:"text",style:o,silent:!0},i={},f=Y(g,"textPosition"),d?i.position=f?g.textPosition:"inside":f&&(i.position=g.textPosition),Y(g,"textPosition")&&(i.position=g.textPosition),Y(g,"textOffset")&&(i.offset=g.textOffset),Y(g,"textRotation")&&(i.rotation=g.textRotation),Y(g,"textDistance")&&(i.distance=g.textDistance)),iP(o,n),Z(o.rich,function(t){iP(t,t)}),h={textConfig:i,textContent:y},!p&&h.textConfig&&(p=t.textConfig=h.textConfig),!c)&&h.textContent&&(c=h.textContent),e=G({},e=t),Z(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(nf),function(t){delete e[t]}),e),d=t.$action||"merge",f="merge"===d,g="replace"===d,y=(f?((r=!(n=s))?n=CP(a,l,t.type,v):(n&&(wP(n).isNew=!1),(o=n).stopAnimation("keyframe"),o.attr(mP(o))),n&&(uP(n,u,m,{isInit:r}),kP(n,t,x,b))):g?(IP(s,t,v,m),(i=CP(a,l,t.type,v))&&(uP(i,u,m,{isInit:!0}),kP(i,t,x,b))):"remove"===d&&(hP(s,t),IP(s,t,v,m)),v.get(a));y&&c&&(f?(h=y.getTextContent())?h.attr(c):y.setTextContent(new Rl(c)):g&&y.setTextContent(new Rl(c))),y&&((l=t.clipPath)&&(u=l.type,s=void 0,r=!1,f?s=(r=!(a=y.getClipPath())||wP(a).type!==u)?TP(u):a:g&&(r=!0,s=TP(u)),y.setClipPath(s),uP(s,l,m,{isInit:r}),_P(s,l.keyframeAnimation,m)),h=wP(y),y.setTextConfig(p),h.option=t,c=m,a=t,r=W(u=y).eventData,(r=u.silent||u.ignore?r:r||(W(u).eventData={componentType:"graphic",componentIndex:c.componentIndex,name:u.name}))&&(r.info=a.info),fp({el:y,componentModel:m,itemName:y.name,itemTooltipOption:t.tooltip}),_P(y,t.keyframeAnimation,m))}))},MP.prototype._relocate=function(t,e){for(var n,i,o=t.option.elements,r=this.group,a=this._elMap,s=e.getWidth(),l=e.getHeight(),u=["x","y"],h=0;h<o.length;h++)(d=null!=(p=ga((c=o[h]).id,null))?a.get(p):null)&&d.isGroup&&(n=(f=d.parent)===r,i=wP(d),g=wP(f),i.width=Hr(i.option.width,n?s:g.width)||0,i.height=Hr(i.option.height,n?l:g.height)||0);for(var c,p,d,h=o.length-1;0<=h;h--)if(d=null!=(p=ga((c=o[h]).id,null))?a.get(p):null){var f=d.parent,g=wP(f),y={},m=cf(d,c,f===r?{width:s,height:l}:{width:g.width,height:g.height},null,{hv:c.hv,boundingMode:c.bounding},y);if(!wP(d).isNew&&m){for(var v=c.transition,_={},x=0;x<u.length;x++){var b=u[x],w=y[b];v&&(cP(v)||0<=U(v,b))?_[b]=w:d[b]=w}Nc(d,_,t,0)}else d.attr(y)}},MP.prototype._clear=function(){var e=this,n=this._elMap;n.each(function(t){IP(t,wP(t).option,n,e._lastGraphicModel)}),this._elMap=L()},MP.prototype.dispose=function(){this._clear()},MP.type="graphic",MP);function MP(){var t=null!==xP&&xP.apply(this,arguments)||this;return t.type=MP.type,t}function TP(t){var e=new(Y(bP,t)?bP[t]:qc(t))({});return wP(e).type=t,e}function CP(t,e,n,i){n=TP(n);return e.add(n),i.set(t,n),wP(n).id=t,wP(n).isNew=!0,n}function IP(t,e,n,i){var o,r,a,s,l,u;t&&t.parent&&("group"===t.type&&t.traverse(function(t){IP(t,e,n,i)}),r=e,a=i,(o=t)&&(l=o.parent,(u=sP(o).leaveToProps)?((r=lP("update",o,r,a,0)).done=function(){l&&l.remove(o),s&&s()},o.animateTo(u,r)):(l&&l.remove(o),s&&s())),n.removeKey(wP(t).id))}function kP(n,i,t,e){n.isGroup||Z([["cursor",gs.prototype.cursor],["zlevel",e||0],["z",t||0],["z2",0]],function(t){var e=t[0];Y(i,e)?n[e]=H(i[e],t[1]):null==n[e]&&(n[e]=t[1])}),Z(X(i),function(t){var e;0===t.indexOf("on")&&(e=i[t],n[t]=z(e)?e:null)}),Y(i,"draggable")&&(n.draggable=i.draggable),null!=i.name&&(n.name=i.name),null!=i.id&&(n.id=i.id)}mx(function(t){t.registerComponentModel(eP),t.registerComponentView(SP),t.registerPreprocessor(function(t){var e=t.graphic;V(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}),mx(ew);var DP={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},AP=(PP.prototype.evaluate=function(t){var e=typeof t;return F(e)?this._condVal.test(t):!!ft(e)&&this._condVal.test(t+"")},PP);function PP(t){null==(this._condVal=F(t)?new RegExp(t):xt(t)?t:null)&&f("")}OP.prototype.evaluate=function(){return this.value};var LP=OP;function OP(){}zP.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0};var RP=zP;function zP(){}BP.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1};var NP=BP;function BP(){}VP.prototype.evaluate=function(){return!this.child.evaluate()};var EP=VP;function VP(){}HP.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),n=t?this.valueParser(e):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?n:e))return!1;return!0};var FP=HP;function HP(){}function WP(t,e){if(!0===t||!1===t)return(n=new LP).value=t,n;var n;if(UP(t)||f(""),t.and)return GP("and",t,e);if(t.or)return GP("or",t,e);if(t.not)return n=e,UP(r=(r=t).not)||f(""),(l=new EP).child=WP(r,n),l.child||f(""),l;for(var i=t,o=e,r=o.prepareGetValue(i),a=[],s=X(i),l=i.parser,u=l?my(l):null,h=0;h<s.length;h++){var c,p=s[h];"parser"===p||o.valueGetterAttrMap.get(p)||(c=Y(DP,p)?DP[p]:p,p=i[p],p=u?u(p):p,(c=function(t,e){return"eq"===t||"ne"===t?new Sy("eq"===t,e):Y(vy,t)?new _y(t,e):null}(c,p)||"reg"===c&&new AP(p))||f(""),a.push(c))}return a.length||f(""),(l=new FP).valueGetterParam=r,l.valueParser=u,l.getValue=o.getValue,l.subCondList=a,l}function GP(t,e,n){e=e[t],V(e)||f(""),e.length||f(""),t=new("and"===t?RP:NP);return t.children=E(e,function(t){return WP(t,n)}),t.children.length||f(""),t}function UP(t){return N(t)&&!ht(t)}XP.prototype.evaluate=function(){return this._cond.evaluate()};var ZP=XP;function XP(t,e){this._cond=WP(t,e)}var YP={type:"echarts:filter",transform:function(t){for(var e,n,i=t.upstream,o=(t=t.config,n={valueGetterAttrMap:L({dimension:!0}),prepareGetValue:function(t){var e=t.dimension,t=(Y(t,"dimension")||f(""),i.getDimensionInfo(e));return t||f(""),{dimIdx:t.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}},new ZP(t,n)),r=[],a=0,s=i.count();a<s;a++)e=i.getRawDataItem(a),o.evaluate()&&r.push(e);return{data:r}}},qP={type:"echarts:sort",transform:function(t){for(var a=t.upstream,t=t.config,t=la(t),s=(t.length||f(""),[]),t=(Z(t,function(t){var e=t.dimension,n=t.order,i=t.parser,t=t.incomparable,e=(null==e&&f(""),"asc"!==n&&"desc"!==n&&f(""),t&&"min"!==t&&"max"!==t&&f(""),"asc"!==n&&"desc"!==n&&f(""),a.getDimensionInfo(e)),o=(e||f(""),i?my(i):null);i&&!o&&f(""),s.push({dimIdx:e.index,parser:o,comparator:new by(n,t)})}),a.sourceFormat),e=(t!==Df&&t!==Af&&f(""),[]),n=0,i=a.count();n<i;n++)e.push(a.getRawDataItem(n));return e.sort(function(t,e){for(var n=0;n<s.length;n++){var i=s[n],o=a.retrieveValueFromItem(t,i.dimIdx),r=a.retrieveValueFromItem(e,i.dimIdx),i=(i.parser&&(o=i.parser(o),r=i.parser(r)),i.comparator.evaluate(o,r));if(0!==i)return i}return 0}),{data:e}}};mx(function(t){t.registerTransform(YP),t.registerTransform(qP)});var jP=Math.sin,KP=Math.cos,$P=Math.PI,QP=2*Math.PI,JP=180/$P,tL=(eL.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},eL.prototype.moveTo=function(t,e){this._add("M",t,e)},eL.prototype.lineTo=function(t,e){this._add("L",t,e)},eL.prototype.bezierCurveTo=function(t,e,n,i,o,r){this._add("C",t,e,n,i,o,r)},eL.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},eL.prototype.arc=function(t,e,n,i,o,r){this.ellipse(t,e,n,n,0,i,o,r)},eL.prototype.ellipse=function(t,e,n,i,o,r,a,s){var l,u=a-r,s=!s,h=Math.abs(u),c=Wi(h-QP)||(s?QP<=u:QP<=-u),p=!1,p=!!c||!Wi(h)&&$P<=(0<u?u%QP:u%QP+QP)==!!s,h=t+n*KP(r),u=e+i*jP(r),o=(this._start&&this._add("M",h,u),Math.round(o*JP));c?(c=1/this._p,this._add("A",n,i,o,1,+s,t+n*KP(r+(l=(s?1:-1)*(QP-c))),e+i*jP(r+l)),.01<c&&this._add("A",n,i,o,0,+s,h,u)):(r=t+n*KP(a),l=e+i*jP(a),this._add("A",n,i,o,+p,+s,r,l))},eL.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},eL.prototype.closePath=function(){0<this._d.length&&this._add("Z")},eL.prototype._add=function(t,e,n,i,o,r,a,s,l){for(var u=[],h=this._p,c=1;c<arguments.length;c++){var p=arguments[c];if(isNaN(p))return void(this._invalid=!0);u.push(Math.round(p*h)/h)}this._d.push(t+u.join(" ")),this._start="Z"===t},eL.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},eL.prototype.getStr=function(){return this._str},eL);function eL(){}var nL="none",iL=Math.round;var oL=["lineCap","miterLimit","lineJoin"],rL=E(oL,function(t){return"stroke-"+t.toLowerCase()});function aL(t,e,n,i){var o=null==e.opacity?1:e.opacity;if(n instanceof _l)t("opacity",o);else if(null!=(r=(r=e).fill)&&r!==nL?(t("fill",(r=Hi(e.fill)).color),r=null!=e.fillOpacity?e.fillOpacity*r.opacity*o:r.opacity*o,(i||r<1)&&t("fill-opacity",r)):t("fill",nL),null!=(r=(r=e).stroke)&&r!==nL){var r=Hi(e.stroke),a=(t("stroke",r.color),e.strokeNoScale?n.getLineScale():1),a=a?(e.lineWidth||0)/a:0,r=null!=e.strokeOpacity?e.strokeOpacity*r.opacity*o:r.opacity*o,o=e.strokeFirst;!i&&1==a||t("stroke-width",a),(i||o)&&t("paint-order",o?"stroke":"fill"),(i||r<1)&&t("stroke-opacity",r),e.lineDash?(o=(a=B0(n))[0],r=a[1],o&&(r=iL(r||0),t("stroke-dasharray",o.join(",")),r||i)&&t("stroke-dashoffset",r)):i&&t("stroke-dasharray",nL);for(var s=0;s<oL.length;s++){var l=oL[s];(i||e[l]!==ll[l])&&(l=e[l]||ll[l])&&t(rL[s],l)}}else i&&t("stroke",nL)}var sL="http://www.w3.org/2000/svg",lL="http://www.w3.org/1999/xlink",uL="http://www.w3.org/2000/xmlns/",hL="http://www.w3.org/XML/1998/namespace",cL="ecmeta_";function pL(t){return document.createElementNS(sL,t)}function dL(t,e,n,i,o){return{tag:t,attrs:n||{},children:i,text:o,key:e}}function fL(t,e){var r=(e=e||{}).newline?"\n":"";return function t(e){var n=e.children,i=e.tag,o=e.attrs,e=e.text;return function(t,e){var n=[];if(e)for(var i in e){var o=e[i];!1!==o&&(!0!==o&&null!=o&&(i+='="'+o+'"'),n.push(i))}return"<"+t+" "+n.join(" ")+">"}(i,o)+("style"!==i?xe(e):e||"")+(n?r+E(n,t).join(r)+r:"")+"</"+i+">"}(t)}function gL(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function yL(t,e,n,i){return dL("svg","root",{width:t,height:e,xmlns:sL,"xmlns:xlink":lL,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var mL=0;var vL={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},_L="transform-origin";var xL={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function bL(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function wL(t){return F(t)?vL[t]?"cubic-bezier("+vL[t]+")":li(t)?t:"":""}function SL(D,A,P,L){var t=D.animators,e=t.length,n=[];if(D instanceof hc){if(o=function(t,e,u){var h,c,t=t.shape.paths,p={};if(Z(t,function(t){var e=gL(u.zrId),t=(e.animation=!0,SL(t,{},e,!0),e.cssAnims),n=e.cssNodes,e=X(t),i=e.length;if(i){var o,r,a=t[c=e[i-1]];for(o in a){var s=a[o];p[o]=p[o]||{d:""},p[o].d+=s.d||""}for(r in n){var l=n[r].animation;0<=l.indexOf(c)&&(h=l)}}}),h)return e.d=!1,t=bL(p,u),h.replace(c,t)}(D,A,P))n.push(o);else if(!e)return}else if(!e)return;for(var i,o,r,a={},s=0;s<e;s++){var l=t[s],u=[l.getMaxTime()/1e3+"s"],h=wL(l.getClip().easing),c=l.getDelay(),h=(u.push(h||"linear"),c&&u.push(c/1e3+"s"),l.getLoop()&&u.push("infinite"),u.join(" "));a[h]=a[h]||[h,[]],a[h][1].push(l)}function p(t){var e=t[1],n=e.length,i={},o={},r={},f="animation-timing-function";function a(t,e,n){for(var i=t.getTracks(),o=t.getMaxTime(),r=0;r<i.length;r++){var a=i[r];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(l=n?n(l):l)for(var u=0;u<s.length;u++){var h=s[u],c=Math.round(h.time/o*100)+"%",p=wL(h.easing),d=h.rawValue;(F(d)||ft(d))&&(e[c]=e[c]||{},e[c][l]=h.rawValue,p)&&(e[c][f]=p)}}}}for(var s,l,u=0;u<n;u++)(S=(w=e[u]).targetName)?"shape"===S&&a(w,o):L||a(w,i);for(b in i){var h={},c=(Jo(h,D),G(h,i[b]),Ji(h)),p=i[b][f];r[b]=c?{transform:c}:{},c=r[b],s=void 0,s=(h=h).originX,h=h.originY,(s||h)&&(c[_L]=s+"px "+h+"px"),p&&(r[b][f]=p)}var d,g,y,m=!0;for(b in o){r[b]=r[b]||{};var v=!l,p=o[b][f],_=(l=v?new Ys:l).len(),x=(l.reset(),r[b].d=(g=o[b],y=l,x=void 0,x=G({},(d=D).shape),G(x,g),d.buildPath(y,x),(g=new tL).reset(Qi(d)),y.rebuildPath(g,1),g.generateStr(),g.getStr()),l.len());if(!v&&_!==x){m=!1;break}p&&(r[b][f]=p)}if(!m)for(var b in r)delete r[b].d;if(!L)for(var w,S,u=0;u<n;u++)"style"===(S=(w=e[u]).targetName)&&a(w,r,function(t){return xL[t]});for(var M,T=X(r),C=!0,u=1;u<T.length;u++){var I=T[u-1],k=T[u];if(r[I][_L]!==r[k][_L]){C=!1;break}M=r[I][_L]}if(C&&M){for(var b in r)r[b][_L]&&delete r[b][_L];A[_L]=M}if(pt(T,function(t){return 0<X(r[t]).length}).length)return bL(r,P)+" "+t[0]+" both"}for(i in a)(o=p(a[i]))&&n.push(o);n.length&&(r=P.zrId+"-cls-"+mL++,P.cssNodes["."+r]={animation:n.join(",")},A.class=r)}function ML(t,e,n,i){var o=JSON.stringify(t),r=n.cssStyleCache[o];r||(r=n.zrId+"-cls-"+mL++,n.cssStyleCache[o]=r,n.cssNodes["."+r+(i?":hover":"")]=t),e.class=e.class?e.class+" "+r:r}var TL=Math.round;function CL(t){return t&&F(t.src)}function IL(t){return t&&z(t.toDataURL)}function kL(i,o,r,a){aL(function(t,e){var n="fill"===t||"stroke"===t;n&&Ki(e)?EL(o,i,t,a):n&&Yi(e)?VL(r,i,t,a):i[t]=e,n&&a.ssr&&"none"===e&&(i["pointer-events"]="visible")},o,r,!1);var t=i,e=a;if(function(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}(f=(u=r).style)){var n=function(t){var e=t.style,t=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}(u),s=e.shadowCache,l=s[n];if(!l){var u=u.getGlobalScale(),h=u[0],u=u[1];if(!h||!u)return;var c=f.shadowOffsetX||0,p=f.shadowOffsetY||0,d=f.shadowBlur,f=Hi(f.shadowColor),g=f.opacity,f=f.color,d=d/2/h+" "+d/2/u;l=e.zrId+"-s"+e.shadowIdx++,e.defs[l]=dL("filter",l,{id:l,x:"-100%",y:"-100%",width:"300%",height:"300%"},[dL("feDropShadow","",{dx:c/h,dy:p/u,stdDeviation:d,"flood-color":f,"flood-opacity":g})]),s[n]=l}t.filter=$i(l)}}function DL(n,t){var e=Or(t);e&&(e.each(function(t,e){null!=t&&(n[(cL+e).toLowerCase()]=t+"")}),t.isSilent())&&(n[cL+"silent"]="true")}function AL(t){return Wi(t[0]-1)&&Wi(t[1])&&Wi(t[2])&&Wi(t[3]-1)}function PL(t,e,n){var i;!e||Wi((i=e)[4])&&Wi(i[5])&&AL(e)||(i=n?10:1e4,t.transform=AL(e)?"translate("+TL(e[4]*i)/i+" "+TL(e[5]*i)/i+")":"matrix("+Gi((n=e)[0])+","+Gi(n[1])+","+Gi(n[2])+","+Gi(n[3])+","+Ui(n[4])+","+Ui(n[5])+")")}function LL(t,e,n){for(var i=t.points,o=[],r=0;r<i.length;r++)o.push(TL(i[r][0]*n)/n),o.push(TL(i[r][1]*n)/n);e.points=o.join(" ")}function OL(t){return!t.smooth}var RL,zL={circle:[(RL=E(["cx","cy","r"],function(t){return"string"==typeof t?[t,t]:t}),function(t,e,n){for(var i=0;i<RL.length;i++){var o=RL[i],r=t[o[0]];null!=r&&(e[o[1]]=TL(r*n)/n)}})],polyline:[LL,OL],polygon:[LL,OL]};function NL(t,e){var n,i,o,r,a,s=t.style,l=t.shape,u=zL[t.type],h={},c=e.animation,p="path",d=t.style.strokePercent,f=e.compress&&Qi(t)||4;return!u||e.willUpdate||u[1]&&!u[1](l)||c&&function(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return 1}(t)||d<1?(c=!t.path||t.shapeChanged(),t.path||t.createPathProxy(),n=t.path,c&&(n.beginPath(),t.buildPath(n,t.shape),t.pathUpdated()),c=n.getVersion(),o=(i=t).__svgPathBuilder,i.__svgPathVersion===c&&o&&d===i.__svgPathStrokePercent||((o=o||(i.__svgPathBuilder=new tL)).reset(f),n.rebuildPath(o,d),o.generateStr(),i.__svgPathVersion=c,i.__svgPathStrokePercent=d),h.d=o.getStr()):(p=t.type,n=Math.pow(10,f),u[0](l,h,n)),PL(h,t.transform),kL(h,s,t,e),DL(h,t),e.animation&&SL(t,h,e),e.emphasis&&(c=h,i=e,(d=t).ignore||(d.isSilent()?ML(a={"pointer-events":"none"},c,i,!0):(!(f=(o=d.states.emphasis&&d.states.emphasis.style?d.states.emphasis.style:{}).fill)&&(r=d.style&&d.style.fill,u=d.states.select&&d.states.select.style&&d.states.select.style.fill,u=0<=d.currentStates.indexOf("select")&&u||r)&&(f=Vi(u)),(r=o.lineWidth)&&(r/=!o.strokeNoScale&&d.transform?d.transform[0]:1),a={cursor:"pointer"},f&&(a.fill=f),o.stroke&&(a.stroke=o.stroke),r&&(a["stroke-width"]=r),ML(a,c,i,!0)))),dL(p,t.id+"",h)}function BL(t,e){if(t instanceof cl)return NL(t,e);if(t instanceof _l){var n=t,i=e,o=n.style,r=o.image;if(r&&!F(r)&&(CL(r)?r=r.src:IL(r)&&(r=r.toDataURL())),r)return a=o.x||0,s=o.y||0,r={href:r,width:o.width,height:o.height},a&&(r.x=a),s&&(r.y=s),PL(r,n.transform),kL(r,o,n,i),DL(r,n),i.animation&&SL(n,r,i),dL("image",n.id+"",r)}else if(t instanceof fl){var a=t,s=e,o=a.style,i=o.text;if(null!=i&&(i+=""),i&&!isNaN(o.x)&&!isNaN(o.y)){var n=o.font||j,r=o.x||0,l=(t=o.y||0,e=lr(n),"top"===(l=o.textBaseline)?t+=e/2:"bottom"===l&&(t-=e/2),t),e={"dominant-baseline":"central","text-anchor":Zi[o.textAlign]||o.textAlign};if(Hl(o)){var t="",u=o.fontStyle,h=Vl(o.fontSize);if(!parseFloat(h))return;var c=o.fontFamily||v,p=o.fontWeight;t+="font-size:"+h+";font-family:"+c+";",u&&"normal"!==u&&(t+="font-style:"+u+";"),p&&"normal"!==p&&(t+="font-weight:"+p+";"),e.style=t}else e.style="font: "+n;return i.match(/\s/)&&(e["xml:space"]="preserve"),r&&(e.x=r),l&&(e.y=l),PL(e,a.transform),kL(e,o,a,s),DL(e,a),s.animation&&SL(a,e,s),dL("text",a.id+"",e,void 0,i)}}}function EL(t,e,n,i){var o,t=t[n],r={gradientUnits:t.global?"userSpaceOnUse":"objectBoundingBox"};if(qi(t))o="linearGradient",r.x1=t.x,r.y1=t.y,r.x2=t.x2,r.y2=t.y2;else{if(!ji(t))return;o="radialGradient",r.cx=H(t.x,.5),r.cy=H(t.y,.5),r.r=H(t.r,.5)}for(var a=t.colorStops,s=[],l=0,u=a.length;l<u;++l){var h=100*Ui(a[l].offset)+"%",c=Hi(a[l].color),p=c.color,c=c.opacity,h={offset:h};h["stop-color"]=p,c<1&&(h["stop-opacity"]=c),s.push(dL("stop",l+"",h))}var t=fL(dL(o,"",r,s)),d=i.gradientCache,f=d[t];f||(f=i.zrId+"-g"+i.gradientIdx++,d[t]=f,r.id=f,i.defs[f]=dL(o,f,r,s)),e[n]=$i(f)}function VL(t,e,n,i){var o,r,a,s,l,u,h,c,p=t.style[n],d=t.getBoundingRect(),f={},g=p.repeat,y="no-repeat"===g,m="repeat-x"===g,v="repeat-y"===g;Xi(p)?(r=p.imageWidth,a=p.imageHeight,g=void 0,F(h=p.image)?g=h:CL(h)?g=h.src:IL(h)&&(g=h.toDataURL()),"undefined"==typeof Image?(Ct(r,h="Image width/height must been given explictly in svg-ssr renderer."),Ct(a,h)):null!=r&&null!=a||(s=function(t,e){var n,i;t&&(n=t.elm,i=r||e.width,e=a||e.height,"pattern"===t.tag&&(m?(e=1,i/=d.width):v&&(i=1,e/=d.height)),t.attrs.width=i,t.attrs.height=e,n)&&(n.setAttribute("width",i),n.setAttribute("height",e))},(h=Ga(g,null,t,function(t){y||s(u,t),s(o,t)}))&&h.width&&h.height&&(r=r||h.width,a=a||h.height)),o=dL("image","img",{href:g,width:r,height:a}),f.width=r,f.height=a):p.svgElement&&(o=S(p.svgElement),f.width=p.svgWidth,f.height=p.svgHeight),o&&(y?c=l=1:m?(l=1,c=f.width/d.width):v?(c=1,l=f.height/d.height):f.patternUnits="userSpaceOnUse",null==c||isNaN(c)||(f.width=c),null==l||isNaN(l)||(f.height=l),(t=Ji(p))&&(f.patternTransform=t),h=fL(u=dL("pattern","",f,[o])),(c=(g=i.patternCache)[h])||(c=i.zrId+"-p"+i.patternIdx++,g[h]=c,f.id=c,u=i.defs[c]=dL("pattern",c,f,[o])),e[n]=$i(c))}function FL(t){return document.createTextNode(t)}function HL(t,e,n){t.insertBefore(e,n)}function WL(t,e){t.removeChild(e)}function GL(t,e){t.appendChild(e)}function UL(t){return t.parentNode}function ZL(t){return t.nextSibling}function XL(t,e){t.textContent=e}var YL=58,qL=120,jL=dL("","");function KL(t){return void 0===t}function $L(t){return void 0!==t}function QL(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function JL(t){var e,n=t.children,i=t.tag;if($L(i)){var o=t.elm=pL(i);if(nO(jL,t),V(n))for(e=0;e<n.length;++e){var r=n[e];null!=r&&GL(o,JL(r))}else $L(t.text)&&!N(t.text)&&GL(o,FL(t.text))}else t.elm=FL(t.text);return t.elm}function tO(t,e,n,i,o){for(;i<=o;++i){var r=n[i];null!=r&&HL(t,JL(r),e)}}function eO(t,e,n,i){for(;n<=i;++n){var o=e[n];null!=o&&($L(o.tag)?WL(UL(o.elm),o.elm):WL(t,o.elm))}}function nO(t,e){var n,i=e.elm,o=t&&t.attrs||{},r=e.attrs||{};if(o!==r){for(n in r){var a=r[n];o[n]!==a&&(!0===a?i.setAttribute(n,""):!1===a?i.removeAttribute(n):"style"===n?i.style.cssText=a:n.charCodeAt(0)!==qL?i.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS(uL,n,a):n.charCodeAt(3)===YL?i.setAttributeNS(hL,n,a):n.charCodeAt(5)===YL?i.setAttributeNS(lL,n,a):i.setAttribute(n,a))}for(n in o)n in r||i.removeAttribute(n)}}function iO(t,e,n){for(var i,o,r,a=0,s=0,l=e.length-1,u=e[0],h=e[l],c=n.length-1,p=n[0],d=n[c];a<=l&&s<=c;)null==u?u=e[++a]:null==h?h=e[--l]:null==p?p=n[++s]:null==d?d=n[--c]:QL(u,p)?(oO(u,p),u=e[++a],p=n[++s]):QL(h,d)?(oO(h,d),h=e[--l],d=n[--c]):QL(u,d)?(oO(u,d),HL(t,u.elm,ZL(h.elm)),u=e[++a],d=n[--c]):p=(QL(h,p)?(oO(h,p),HL(t,h.elm,u.elm),h=e[--l]):(KL(i)&&(i=function(t,e,n){for(var i={},o=e;o<=n;++o){var r=t[o].key;void 0!==r&&(i[r]=o)}return i}(e,a,l)),KL(o=i[p.key])||(r=e[o]).tag!==p.tag?HL(t,JL(p),u.elm):(oO(r,p),e[o]=void 0,HL(t,r.elm,u.elm))),n[++s]);(a<=l||s<=c)&&(l<a?tO(t,null==n[c+1]?null:n[c+1].elm,n,s,c):eO(t,e,a,l))}function oO(t,e){var n=e.elm=t.elm,i=t.children,o=e.children;t!==e&&(nO(t,e),KL(e.text)?$L(i)&&$L(o)?i!==o&&iO(n,i,o):$L(o)?($L(t.text)&&XL(n,""),tO(n,null,o,0,o.length-1)):$L(i)?eO(n,i,0,i.length-1):$L(t.text)&&XL(n,""):t.text!==e.text&&($L(i)&&eO(n,i,0,i.length-1),XL(n,e.text)))}var rO=0;function aO(t,e,n){var i;this.type="svg",this.refreshHover=sO(),this.configLayer=sO(),this.storage=e,this._opts=n=G({},n),this.root=t,this._id="zr"+rO++,this._oldVNode=yL(n.width,n.height),t&&!n.ssr&&((e=this._viewport=document.createElement("div")).style.cssText="position:relative;overflow:hidden",i=this._svgDom=this._oldVNode.elm=pL("svg"),nO(null,this._oldVNode),e.appendChild(i),t.appendChild(e)),this.resize(n.width,n.height)}function sO(){return function(){}}aO.prototype.getType=function(){return this.type},aO.prototype.getViewportRoot=function(){return this._viewport},aO.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},aO.prototype.getSvgDom=function(){return this._svgDom},aO.prototype.refresh=function(){var t,e,n,i,o;this.root&&((t=this.renderToVNode({willUpdate:!0})).attrs.style="position:absolute;left:0;top:0;user-select:none",QL(e=this._oldVNode,n=t)?oO(e,n):(o=UL(i=e.elm),JL(n),null!==o&&(HL(o,n.elm,ZL(i)),eO(o,[e],0,0))),this._oldVNode=t)},aO.prototype.renderOneToVNode=function(t){return BL(t,gL(this._id))},aO.prototype.renderToVNode=function(t){t=t||{};var n,o,r,a,s,e=this.storage.getDisplayList(!0),i=this._width,l=this._height,u=gL(this._id),h=(u.animation=t.animation,u.willUpdate=t.willUpdate,u.compress=t.compress,u.emphasis=t.emphasis,u.ssr=this._opts.ssr,[]),c=this._bgVNode=function(t,e,n,i){var o;n&&"none"!==n&&(o=dL("rect","bg",{width:t,height:e,x:"0",y:"0"}),Ki(n)?EL({fill:n},o.attrs,"fill",i):Yi(n)?VL({style:{fill:n},dirty:Vt,getBoundingRect:function(){return{width:t,height:e}}},o.attrs,"fill",i):(i=Hi(n),n=i.color,i=i.opacity,o.attrs.fill=n,i<1&&(o.attrs["fill-opacity"]=i)));return o}(i,l,this._backgroundColor,u),c=(c&&h.push(c),t.compress?null:this._mainVNode=dL("g","main",{},[])),e=(this._paintList(e,u,c?c.children:h),c&&h.push(c),E(X(u.defs),function(t){return u.defs[t]}));return e.length&&h.push(dL("defs","defs",{},e)),t.animation&&(n=u.cssNodes,o=u.cssAnims,r=(c=(c={newline:!0})||{}).newline?"\n":"",a=" {"+r,s=r+"}",c=E(X(n),function(e){return e+a+E(X(n[e]),function(t){return t+":"+n[e][t]+";"}).join(r)+s}).join(r),e=E(X(o),function(i){return"@keyframes "+i+a+E(X(o[i]),function(n){return n+a+E(X(o[i][n]),function(t){var e=o[i][n][t];return t+":"+(e="d"===t?'path("'+e+'")':e)+";"}).join(r)+s}).join(r)+s}).join(r),c=c||e?["<![CDATA[",c,e,"]]>"].join(r):"")&&(e=dL("style","stl",{},[],c),h.push(e)),yL(i,l,h,t.useViewBox)},aO.prototype.renderToString=function(t){return fL(this.renderToVNode({animation:H((t=t||{}).cssAnimation,!0),emphasis:H(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:H(t.useViewBox,!0)}),{newline:!0})},aO.prototype.setBackgroundColor=function(t){this._backgroundColor=t},aO.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},aO.prototype._paintList=function(t,e,n){for(var i,o,r,a,s,l,u,h=t.length,c=[],p=0,d=0,f=0;f<h;f++){var g=t[f];if(!g.invisible){for(var y=g.__clipPaths,m=y&&y.length||0,v=M&&M.length||0,_=void 0,_=Math.max(m-1,v-1);0<=_&&(!y||!M||y[_]!==M[_]);_--);for(var x=v-1;_<x;x--)i=c[--p-1];for(var b=_+1;b<m;b++){var w={},S=(o=y[b],r=w,u=S=l=s=void 0,l=(a=e).clipPathCache,S=a.defs,(u=l[o.id])||(s={id:u=a.zrId+"-c"+a.clipPathIdx++},S[l[o.id]=u]=dL("clipPath",u,s,[NL(o,a)])),r["clip-path"]=$i(u),dL("g","clip-g-"+d++,w,[]));(i?i.children:n).push(S),i=c[p++]=S}var M=y,v=BL(g,e);v&&(i?i.children:n).push(v)}}},aO.prototype.resize=function(t,e){var n=this._opts,i=this.root,o=this._viewport;null!=t&&(n.width=t),null!=e&&(n.height=e),i&&o&&(o.style.display="none",t=N0(i,0,n),e=N0(i,1,n),o.style.display=""),this._width===t&&this._height===e||(this._width=t,this._height=e,o&&((i=o.style).width=t+"px",i.height=e+"px"),Yi(this._backgroundColor)?this.refresh():((n=this._svgDom)&&(n.setAttribute("width",t),n.setAttribute("height",e)),(o=this._bgVNode&&this._bgVNode.elm)&&(o.setAttribute("width",t),o.setAttribute("height",e))))},aO.prototype.getWidth=function(){return this._width},aO.prototype.getHeight=function(){return this._height},aO.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},aO.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},aO.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=to(e))&&n+"base64,"+e:n+"charset=UTF-8,"+encodeURIComponent(e)},Lr("svg",aO),t.Axis=yd,t.ChartView=km,t.ComponentModel=g,t.ComponentView=Sm,t.List=e_,t.Model=$p,t.PRIORITY=S0,t.SeriesModel=gm,t.color=Li,t.connect=function(e){var t;return V(e)&&(t=e,e=null,Z(t,function(t){null!=t.group&&(e=t.group)}),e=e||"g_"+s1++,Z(t,function(t){t.group=e})),r1[e]=!0,e},t.dataTool={},t.dependencies={zrender:"6.0.0"},t.disConnect=w0,t.disconnect=u1,t.dispose=function(t){F(t)?t=o1[t]:t instanceof Gv||(t=h1(t)),t instanceof Gv&&!t.isDisposed()&&t.dispose()},t.env=w,t.extendChartView=function(t){return t=km.extend(t),km.registerClass(t),t},t.extendComponentModel=function(t){return t=g.extend(t),g.registerClass(t),t},t.extendComponentView=function(t){return t=Sm.extend(t),Sm.registerClass(t),t},t.extendSeriesModel=function(t){return t=gm.extend(t),gm.registerClass(t),t},t.format=qp,t.getCoordinateSystemDimensions=function(t){if(t=$d.get(t))return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},t.getInstanceByDom=h1,t.getInstanceById=function(t){return o1[t]},t.getMap=function(t){var e=hv.getMap;return e&&e(t)},t.graphic=Fa,t.helper=Xp,t.init=function(t,e,n){var i=!(n&&n.ssr);if(i){var o=h1(t);if(o)return o}return(o=new Gv(t,e,n)).id="ec_"+a1++,o1[o.id]=o,i&&Ca(t,l1,o.id),Ev(o),uv.trigger("afterinit",o),o},t.innerDrawElementOnCanvas=nv,t.matrix=Ge,t.number=T0,t.parseGeoJSON=zx,t.parseGeoJson=zx,t.registerAction=m1,t.registerCoordinateSystem=v1,t.registerCustomSeries=function(t,e){},t.registerLayout=_1,t.registerLoading=S1,t.registerLocale=ld,t.registerMap=M1,t.registerPostInit=f1,t.registerPostUpdate=g1,t.registerPreprocessor=p1,t.registerProcessor=d1,t.registerTheme=c1,t.registerTransform=T1,t.registerUpdateLifecycle=y1,t.registerVisual=x1,t.setCanvasCreator=function(t){k({createCanvas:t})},t.setPlatformAPI=k,t.throttle=Em,t.time=ep,t.use=mx,t.util=Up,t.vector=re,t.version="6.0.0",t.zrUtil=Wt,t.zrender=zr}); |