!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 x=function(t,e){return(x=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 u(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}x(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function w(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}var b=new function(){this.browser=new w,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(b.wxa=!0,b.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?b.worker=!0:"undefined"==typeof navigator?(b.node=!0,b.svgSupported=!0):(J=navigator.userAgent,se=(Gt=b).browser,rt=J.match(/Firefox\/([\d.]+)/),q=J.match(/MSIE\s([\d.]+)/)||J.match(/Trident\/.+?rv:(([\d.]+))/),Q=J.match(/Edge?\/([\d.]+)/),J=/micromessenger/i.test(J),rt&&(se.firefox=!0,se.version=rt[1]),q&&(se.ie=!0,se.version=q[1]),Q&&(se.edge=!0,se.version=Q[1],se.newEdge=18<+Q[1].split(".")[0]),J&&(se.weChat=!0),Gt.svgSupported="undefined"!=typeof SVGRect,Gt.touchEventsSupported="ontouchstart"in window&&!se.ie&&!se.edge,Gt.pointerEventsSupported="onpointerdown"in window&&(se.edge||se.ie&&11<=+se.version),Gt.domSupported="undefined"!=typeof document,rt=document.documentElement.style,Gt.transform3dSupported=(se.ie&&"transition"in rt||se.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in rt)&&!("OTransition"in rt),Gt.transformSupported=Gt.transform3dSupported||se.ie&&9<=+se.version);var j="12px sans-serif";var C,I,D=function(t){var e={};if("undefined"!=typeof JSON)for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-20)/100;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),W={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(C||(n=W.createCanvas(),C=n&&n.getContext("2d")),C)return I!==e&&(I=C.font=e||j),C.measureText(t);t=t||"";var n=/(\d+)px/.exec(e=e||j),i=n&&+n[1]||12,r=0;if(0<=e.indexOf("mono"))r=i*t.length;else for(var o=0;o<t.length;o++){var a=D[t[o]];r+=null==a?i:a*i}return{width:r}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}};function A(t){for(var e in W)t[e]&&(W[e]=t[e])}var P=lt(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),U=lt(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),X=Object.prototype.toString,q=Array.prototype,Y=q.forEach,Z=q.filter,K=q.slice,$=q.map,Q=function(){}.constructor,J=Q?Q.prototype:null,tt="__proto__",et=2311;function nt(){return et++}function it(){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=X.call(t);if("[object Array]"===n){if(!Pt(t))for(var e=[],i=0,r=t.length;i<r;i++)e[i]=S(t[i])}else if(U[n]){if(!Pt(t)){var o=t.constructor;if(o.from)e=o.from(t);else for(e=new o(t.length),i=0,r=t.length;i<r;i++)e[i]=t[i]}}else if(!P[n]&&!Pt(t)&&!vt(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==tt&&(e[a]=S(t[a]));return e}function d(t,e,n){if(!R(e)||!R(t))return n?S(e):t;for(var i in e){var r,o;e.hasOwnProperty(i)&&i!==tt&&(r=t[i],!R(o=e[i])||!R(r)||V(o)||V(r)||vt(o)||vt(r)||yt(o)||yt(r)||Pt(o)||Pt(r)?!n&&i in t||(t[i]=S(e[i])):d(r,o,n))}return t}function L(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==tt&&(t[n]=e[n]);return t}function z(t,e,n){for(var i=ct(e),r=0;r<i.length;r++){var o=i[r];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}var rt=W.createCanvas;function k(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 ot(t,e){var n,i=t.prototype;function r(){}for(n in r.prototype=e.prototype,t.prototype=new r,i)i.hasOwnProperty(n)&&(t.prototype[n]=i[n]);(t.prototype.constructor=t).superClass=e}function at(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),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else z(t,e,n)}function st(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function O(t,e,n){if(t&&e)if(t.forEach&&t.forEach===Y)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function F(t,e,n){if(!t)return[];if(!e)return Tt(t);if(t.map&&t.map===$)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}function lt(t,e,n,i){if(t&&e){for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function ut(t,e,n){if(!t)return[];if(!e)return Tt(t);if(t.filter&&t.filter===Z)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function ht(t,e,n){if(t&&e)for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t))return t[i]}function ct(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 pt=J&&M(J.bind)?J.call.bind(J.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(K.call(arguments)))}};function dt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(K.call(arguments)))}}function V(t){return Array.isArray?Array.isArray(t):"[object Array]"===X.call(t)}function M(t){return"function"==typeof t}function H(t){return"string"==typeof t}function ft(t){return"[object String]"===X.call(t)}function gt(t){return"number"==typeof t}function R(t){var e=typeof t;return"function"==e||!!t&&"object"==e}function yt(t){return!!P[X.call(t)]}function mt(t){return!!U[X.call(t)]}function vt(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function _t(t){return null!=t.colorStops}function xt(t){return null!=t.image}function wt(t){return"[object RegExp]"===X.call(t)}function bt(t){return t!=t}function St(){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 E(t,e){return null!=t?t:e}function Mt(t,e,n){return null!=t?t:null!=e?e:n}function Tt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return K.apply(t,e)}function Ct(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 kt(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 Dt="__ec_primitive__";function At(t){t[Dt]=!0}function Pt(t){return t[Dt]}Rt.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},Rt.prototype.has=function(t){return this.data.hasOwnProperty(t)},Rt.prototype.get=function(t){return this.data[t]},Rt.prototype.set=function(t,e){return this.data[t]=e,this},Rt.prototype.keys=function(){return ct(this.data)},Rt.prototype.forEach=function(t){var e,n=this.data;for(e in n)n.hasOwnProperty(e)&&t(n[e],e)};var Lt=Rt,Ot="function"==typeof Map;function Rt(){this.data={}}Nt.prototype.hasKey=function(t){return this.data.has(t)},Nt.prototype.get=function(t){return this.data.get(t)},Nt.prototype.set=function(t,e){return this.data.set(t,e),e},Nt.prototype.each=function(n,i){this.data.forEach(function(t,e){n.call(i,t,e)})},Nt.prototype.keys=function(){var t=this.data.keys();return Ot?Array.from(t):t},Nt.prototype.removeKey=function(t){this.data.delete(t)};var Et=Nt;function Nt(t){var n=V(t),i=(this.data=new(Ot?Map:Lt),this);function e(t,e){n?i.set(t,e):i.set(e,t)}t instanceof Nt?t.each(e):t&&O(t,e)}function N(t){return new Et(t)}function Bt(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];for(var r=t.length,i=0;i<e.length;i++)n[i+r]=e[i];return n}function zt(t,e){var n,t=Object.create?Object.create(t):((n=function(){}).prototype=t,new n);return e&&L(t,e),t}function Ft(t){t=t.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Vt(t,e){return t.hasOwnProperty(e)}function Ht(){}var Wt=180/Math.PI,Gt=Object.freeze({__proto__:null,HashMap:Et,RADIAN_TO_DEGREE:Wt,assert:kt,bind:pt,clone:S,concatArray:Bt,createCanvas:rt,createHashMap:N,createObject:zt,curry:dt,defaults:z,disableUserSelect:Ft,each:O,eqNaN:bt,extend:L,filter:ut,find:ht,guid:nt,hasOwn:Vt,indexOf:k,inherits:ot,isArray:V,isArrayLike:st,isBuiltInObject:yt,isDom:vt,isFunction:M,isGradientObject:_t,isImagePatternObject:xt,isNumber:gt,isObject:R,isPrimitive:Pt,isRegExp:wt,isString:H,isStringSafe:ft,isTypedArray:mt,keys:ct,logError:it,map:F,merge:d,mergeAll:function(t,e){for(var n=t[0],i=1,r=t.length;i<r;i++)n=d(n,t[i],e);return n},mixin:at,noop:Ht,normalizeCssArray:Ct,reduce:lt,retrieve:St,retrieve2:E,retrieve3:Mt,setAsPrimitive:At,slice:Tt,trim:It});function Ut(t,e){return[t=null==t?0:t,e=null==e?0:e]}function Xt(t){return[t[0],t[1]]}function qt(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Yt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function Zt(t){return Math.sqrt(jt(t))}function jt(t){return t[0]*t[0]+t[1]*t[1]}function Kt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function $t(t,e){var n=Zt(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function Qt(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Jt=Qt;function te(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var ee=te;function ne(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 ie(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 re(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}function ae(t,e){this.target=t,this.topTarget=e&&e.topTarget}var se=Object.freeze({__proto__:null,add:qt,applyTransform:ie,clone:Xt,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},create:Ut,dist:Jt,distSquare:ee,distance:Qt,distanceSquare:te,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:Zt,lenSquare:jt,length:Zt,lengthSquare:jt,lerp:ne,max:oe,min:re,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:$t,scale:Kt,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:Yt}),le=(ue.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))},ue.prototype._drag=function(t){var e,n,i,r,o=this._draggingTarget;o&&(e=t.offsetX,n=t.offsetY,i=e-this._x,r=n-this._y,this._x=e,this._y=n,o.drift(i,r,t),this.handler.dispatchToElement(new ae(o,t),"drag",t.event),i=this.handler.findHover(e,n,o).target,r=this._dropTarget,o!==(this._dropTarget=i))&&(r&&i!==r&&this.handler.dispatchToElement(new ae(r,t),"dragleave",t.event),i)&&i!==r&&this.handler.dispatchToElement(new ae(i,t),"dragenter",t.event)},ue.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},ue);function ue(t){(this.handler=t).on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}ce.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),n&&t){var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;o={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},e=r[t].length-1,i=r[t][e];i&&i.callAtLast?r[t].splice(e,0,o):r[t].push(o)}return this},ce.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},ce.prototype.off=function(t,e){var n=this._$handlers;if(n)if(t)if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];else this._$handlers={};return this},ce.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],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){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)}}r&&r.afterTrigger&&r.afterTrigger(t)}return this},ce.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],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){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,o-1))}}r&&r.afterTrigger&&r.afterTrigger(t)}return this};var he=ce;function ce(t){t&&(this._$eventProcessor=t)}var pe=Math.log(2);function de(t,e,n,i,r,o){var a,s=i+"-"+r,l=t.length;if(o.hasOwnProperty(s))return o[s];if(1===e)return a=Math.round(Math.log((1<<l)-1&~r)/pe),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&r||(c+=(d%2?-1:1)*t[n][p]*de(t,e-1,h,u,r|f,o),d++)}return o[s]=c}function fe(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={},r=de(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*de(n,7,0===a?1:0,1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}var ge="___zrEVENTSAVED";function ye(t,e,n,i,r){if(e.getBoundingClientRect&&b.domSupported&&!me(e)){var o=e[ge]||(e[ge]={}),e=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=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&&o&&p===o[c]&&h===o[1+c],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?fe(s,a):fe(a,s))}(function(t,e){var n=e.markers;if(!n){n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=o%2,l=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}}return n}(e,o),o,r);if(e)return e(t,n,i),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 we=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,be=[],Se=b.browser.firefox&&+b.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(b.domSupported&&t.getBoundingClientRect){var i,r=e.clientX,e=e.clientY;if(me(t))return i=t.getBoundingClientRect(),n.zrX=r-i.left,n.zrY=e-i.top;if(ye(be,t,r,e))return n.zrX=be[0],n.zrY=be[1]}n.zrX=n.zrY=0}function Ce(t){return t||window.event}function ke(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),t=(t=(i=e).wheelDelta)||(n=i.deltaX,i=i.deltaY,null==n||null==i?t:3*(0!==i?Math.abs(i):Math.abs(n))*(0<i||!(i<0)&&0<n?-1:1)),e.zrDelta=t?t/120:-(e.detail||0)/3),i=e.button,null==e.which&&void 0!==i&&we.test(e.type))&&(e.which=1&i?1:2&i?3:4&i?2:0),e}var Ie=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},De=(Ae.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},Ae.prototype.clear=function(){return this._track.length=0,this},Ae.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],l=Me(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},Ae.prototype._recognize=function(t){for(var e in Le)if(Le.hasOwnProperty(e)){e=Le[e](this._track,t);if(e)return e}},Ae);function Ae(){this._track=[]}function Pe(t){var e=t[1][0]-t[0][0],t=t[1][1]-t[0][1];return Math.sqrt(e*e+t*t)}var Le={pinch:function(t,e){var n=t.length;if(n){var i=(t[n-1]||{}).points,n=(t[n-2]||{}).points||i;if(n&&1<n.length&&i&&1<i.length)return n=Pe(i)/Pe(n),isFinite(n)||(n=1),e.pinchScale=n,n=[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2],e.pinchX=n[0],e.pinchY=n[1],{type:"pinch",target:t[0].target,event:e}}}};function Oe(){return[1,0,0,1,0,0]}function Re(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Ee(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 Ne(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=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]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=n,t}function Be(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 ze(t,e,n){var i=e[0],r=e[2],o=e[4],a=e[1],s=e[3],e=e[5],l=Math.sin(n),n=Math.cos(n);return t[0]=i*n+a*l,t[1]=-i*l+a*n,t[2]=r*n+s*l,t[3]=-r*l+n*s,t[4]=n*o+l*e,t[5]=n*e-l*o,t}function Fe(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 Ve(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],e=e[5],s=n*a-o*i;return s?(t[0]=a*(s=1/s),t[1]=-o*s,t[2]=-i*s,t[3]=n*s,t[4]=(i*e-a*r)*s,t[5]=(o*r-n*e)*s,t):null}var He=Object.freeze({__proto__:null,clone:function(t){var e=Oe();return Ee(e,t),e},copy:Ee,create:Oe,identity:Re,invert:Ve,mul:Ne,rotate:ze,scale:Fe,translate:Be}),T=(e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,e){return this.x=t,this.y=e,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var e=this.x-t.x,t=this.y-t.y;return Math.sqrt(e*e+t*t)},e.prototype.distanceSquare=function(t){var e=this.x-t.x,t=this.y-t.y;return e*e+t*t},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.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},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,e,n){t.x=e,t.y=n},e.copy=function(t,e){t.x=e.x,t.y=e.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,e){return t.x*e.x+t.y*e.y},e.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},e.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},e.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},e.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},e.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},e);function e(t,e){this.x=t||0,this.y=e||0}var We=Math.min,Ge=Math.max,Ue=new T,Xe=new T,qe=new T,Ye=new T,Ze=new T,je=new T,B=(Ke.prototype.union=function(t){var e=We(t.x,this.x),n=We(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ge(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ge(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},Ke.prototype.applyTransform=function(t){Ke.applyTransform(this,this,t)},Ke.prototype.calculateTransform=function(t){var e=t.width/this.width,n=t.height/this.height,i=Oe();return Be(i,i,[-this.x,-this.y]),Fe(i,i,[e,n]),Be(i,i,[t.x,t.y]),i},Ke.prototype.intersect=function(t,e){if(!t)return!1;t instanceof Ke||(t=Ke.create(t));var n,i,r,o,a,s,l,u,h=this,c=h.x,p=h.x+h.width,d=h.y,h=h.y+h.height,f=t.x,g=t.x+t.width,y=t.y,t=t.y+t.height,m=!(p<f||g<c||h<y||t<d);return e&&(n=1/0,i=0,r=Math.abs(p-f),o=Math.abs(g-c),a=Math.abs(h-y),s=Math.abs(t-d),l=Math.min(r,o),u=Math.min(a,s),p<f||g<c?i<l&&(i=l,r<o?T.set(je,-r,0):T.set(je,o,0)):l<n&&(n=l,r<o?T.set(Ze,r,0):T.set(Ze,-o,0)),h<y||t<d?i<u&&(i=u,a<s?T.set(je,0,-a):T.set(je,0,s)):l<n&&(n=l,a<s?T.set(Ze,0,a):T.set(Ze,0,-s))),e&&T.copy(e,m?Ze:je),m},Ke.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},Ke.prototype.clone=function(){return new Ke(this.x,this.y,this.width,this.height)},Ke.prototype.copy=function(t){Ke.copy(this,t)},Ke.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},Ke.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Ke.prototype.isZero=function(){return 0===this.width||0===this.height},Ke.create=function(t){return new Ke(t.x,t.y,t.width,t.height)},Ke.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},Ke.applyTransform=function(t,e,n){var i,r,o,a;n?n[1]<1e-5&&-1e-5<n[1]&&n[2]<1e-5&&-1e-5<n[2]?(i=n[0],r=n[3],o=n[4],a=n[5],t.x=e.x*i+o,t.y=e.y*r+a,t.width=e.width*i,t.height=e.height*r,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height)):(Ue.x=qe.x=e.x,Ue.y=Ye.y=e.y,Xe.x=Ye.x=e.x+e.width,Xe.y=qe.y=e.y+e.height,Ue.transform(n),Ye.transform(n),Xe.transform(n),qe.transform(n),t.x=We(Ue.x,Xe.x,qe.x,Ye.x),t.y=We(Ue.y,Xe.y,qe.y,Ye.y),o=Ge(Ue.x,Xe.x,qe.x,Ye.x),a=Ge(Ue.y,Xe.y,qe.y,Ye.y),t.width=o-t.x,t.height=a-t.y):t!==e&&Ke.copy(t,e)},Ke);function Ke(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}var $e="silent";function Qe(){Ie(this.event)}function Je(t,e){this.x=t,this.y=e}u(ln,en=he),ln.prototype.dispose=function(){},ln.prototype.setCursor=function(){};var tn,en,nn=ln,rn=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],on=new B(0,0,0,0),an=(u(sn,tn=he),sn.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(O(rn,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},sn.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=hn(this,e,n),r=this._hovered,o=r.target,i=(o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target),this._hovered=i?new Je(e,n):this.findHover(e,n)),e=i.target,n=this.proxy;n.setCursor&&n.setCursor(e?e.cursor:"default"),o&&e!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(i,"mousemove",t),e&&e!==o&&this.dispatchToElement(i,"mouseover",t)},sn.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})},sn.prototype.resize=function(){this._hovered=new Je(0,0)},sn.prototype.dispatch=function(t,e){t=this[t];t&&t.call(this,e)},sn.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},sn.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},sn.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o={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:Qe};i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget||i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},sn.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new Je(t,e);if(un(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new B(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||(on.copy(h.getBoundingRect()),h.transform&&on.applyTransform(h.transform),on.intersect(l)&&o.push(h))}if(o.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(un(o,r,t+d*Math.cos(f),e+d*Math.sin(f),n),r.target)return r}return r},sn.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new De);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 Je).target=i.target,this.dispatchToElement(n,e,i.event))},sn);function sn(t,e,n,i,r){var o=tn.call(this)||this;return o._hovered=new Je(0,0),o.storage=t,o.painter=e,o.painterRoot=i,o._pointerSize=r,n=n||new nn,o.proxy=null,o.setHandlerProxy(n),o._draggingMgr=new le(o),o}function ln(){var t=null!==en&&en.apply(this,arguments)||this;return t.handler=null,t}function un(t,e,n,i,r){for(var o=t.length-1;0<=o;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=function(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(!(o=i.ignoreClip?!0:o)){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(r=!0)}i=i.__hostTarget||i.parent}return!r||$e}return!1}(a,n,i))&&(e.topTarget||(e.topTarget=a),s!==$e)){e.target=a;break}}}function hn(t,e,n){t=t.painter;return e<0||e>t.getWidth()||n<0||n>t.getHeight()}O(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){an.prototype[a]=function(t){var e,n,i=t.zrX,r=t.zrY,o=hn(this,i,r);if("mouseup"===a&&o||(n=(e=this.findHover(i,r)).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<Jt(this._downPoint,[t.zrX,t.zrY]))return;this._downPoint=null}this.dispatchToElement(e,a,t)}});var cn=32,pn=7;function dn(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r<n&&i(t[r],t[r-1])<0;)r++;var o=t,a=e,s=r;for(s--;a<s;){var l=o[a];o[a++]=o[s],o[s--]=l}}else for(;r<n&&0<=i(t[r],t[r-1]);)r++;return r-e}function fn(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var o,a=t[i],s=e,l=i;s<l;)r(a,t[o=s+l>>>1])<0?l=o:s=1+o;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 gn(t,e,n,i,r,o){var a=0,s=0,l=1;if(0<o(t,e[n+r])){for(s=i-r;l<s&&0<o(t,e[n+r+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(t,e[n+r-l])<=0;)(l=1+((a=l)<<1))<=0&&(l=s);i=a,a=r-(l=s<l?s:l),l=r-i}for(a++;a<l;){var u=a+(l-a>>>1);0<o(t,e[n+u])?a=u+1:l=u}return l}function yn(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;l<s&&o(t,e[n+r-l])<0;)(l=1+((a=l)<<1))<=0&&(l=s);var u=a,a=r-(l=s<l?s:l),l=r-u}else{for(s=i-r;l<s&&0<=o(t,e[n+r+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=r,l+=r}for(a++;a<l;){var h=a+(l-a>>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function mn(t,e,n,i){var f,g,o,a,y,s,m,r=(i=i||t.length)-(n=n||0);if(!(r<2)){var l=0;if(r<cn)fn(t,n,i,n+(l=dn(t,n,i,e)),e);else{g=e,y=pn,s=0,(f=t).length,m=[],o=[],a=[];var u,h={mergeRuns:function(){for(;1<s;){var t=s-2;if(1<=t&&a[t-1]<=a[t]+a[t+1]||2<=t&&a[t-2]<=a[t]+a[t-1])a[t-1]<a[t+1]&&t--;else if(a[t]>a[t+1])break;p(t)}},forceMergeRuns:function(){for(;1<s;){var t=s-2;0<t&&a[t-1]<a[t+1]&&t--,p(t)}},pushRun:function(t,e){o[s]=t,a[s]=e,s+=1}},c=function(t){for(var e=0;cn<=t;)e|=1&t,t>>=1;return t+e}(r);do{}while((l=dn(t,n,i,e))<c&&(fn(t,n,n+(u=c<(u=r)?c:r),n+l,e),l=u),h.pushRun(n,l),h.mergeRuns(),n+=l,0!==(r-=l));h.forceMergeRuns()}}function p(t){var e=o[t],n=a[t],i=o[t+1],r=a[t+1],t=(a[t]=n+r,t===s-3&&(o[t+1]=o[t+2],a[t+1]=a[t+2]),s--,yn(f[i],f,e,n,0,g));e+=t,0!=(n-=t)&&0!==(r=gn(f[e+n-1],f,i,r,r-1,g))&&(n<=r?function(t,e,n,i){for(var r=0,r=0;r<e;r++)m[r]=f[t+r];var o=0,a=n,s=t;if(f[s++]=f[a++],0==--i)for(r=0;r<e;r++)f[s+r]=m[o+r];else{if(1===e){for(r=0;r<i;r++)f[s+r]=f[a+r];return f[s+i]=m[o]}for(var l,u,h,c=y;;){u=l=0,h=!1;do{if(g(f[a],m[o])<0){if(f[s++]=f[a++],u++,(l=0)==--i){h=!0;break}}else if(f[s++]=m[o++],l++,u=0,1==--e){h=!0;break}}while((l|u)<c);if(h)break;do{if(0!==(l=yn(f[a],m,o,e,0,g))){for(r=0;r<l;r++)f[s+r]=m[o+r];if(s+=l,o+=l,(e-=l)<=1){h=!0;break}}if(f[s++]=f[a++],0==--i){h=!0;break}if(0!==(u=gn(m[o],f,a,i,0,g))){for(r=0;r<u;r++)f[s+r]=f[a+r];if(s+=u,a+=u,0==(i-=u)){h=!0;break}}if(f[s++]=m[o++],1==--e){h=!0;break}}while(c--,pn<=l||pn<=u);if(h)break;c<0&&(c=0),c+=2}if((y=c)<1&&(y=1),1===e){for(r=0;r<i;r++)f[s+r]=f[a+r];f[s+i]=m[o]}else{if(0===e)throw new Error;for(r=0;r<e;r++)f[s+r]=m[o+r]}}}:function(t,e,n,i){for(var r=0,r=0;r<i;r++)m[r]=f[n+r];var o=t+e-1,a=i-1,s=n+i-1,l=0,u=0;if(f[s--]=f[o--],0==--e)for(l=s-(i-1),r=0;r<i;r++)f[l+r]=m[r];else{if(1===i){for(u=1+(s-=e),l=1+(o-=e),r=e-1;0<=r;r--)f[u+r]=f[l+r];return f[s]=m[a]}for(var h=y;;){var c=0,p=0,d=!1;do{if(g(m[a],f[o])<0){if(f[s--]=f[o--],c++,(p=0)==--e){d=!0;break}}else if(f[s--]=m[a--],p++,c=0,1==--i){d=!0;break}}while((c|p)<h);if(d)break;do{if(0!=(c=e-yn(m[a],f,t,e,e-1,g))){for(e-=c,u=1+(s-=c),l=1+(o-=c),r=c-1;0<=r;r--)f[u+r]=f[l+r];if(0===e){d=!0;break}}if(f[s--]=m[a--],1==--i){d=!0;break}if(0!=(p=i-gn(f[o],m,0,i,i-1,g))){for(i-=p,u=1+(s-=p),l=1+(a-=p),r=0;r<p;r++)f[u+r]=m[l+r];if(i<=1){d=!0;break}}if(f[s--]=f[o--],0==--e){d=!0;break}}while(h--,pn<=c||pn<=p);if(d)break;h<0&&(h=0),h+=2}if((y=h)<1&&(y=1),1===i){for(u=1+(s-=e),l=1+(o-=e),r=e-1;0<=r;r--)f[u+r]=f[l+r];f[s]=m[a]}else{if(0===i)throw new Error;for(l=s-(i-1),r=0;r<i;r++)f[l+r]=m[r]}}})(e,n,i,r)}}var vn=1,_n=4,xn=!1;function wn(){xn||(xn=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function bn(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}Mn.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},Mn.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},Mn.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,mn(n,bn)},Mn.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e=e?e.slice():[];for(var r=i,o=t;r;)r.parent=o,r.updateTransform(),e.push(r),r=(o=r).getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=vn),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{i=t;e&&e.length?i.__clipPaths=e:i.__clipPaths&&0<i.__clipPaths.length&&(i.__clipPaths=[]),isNaN(i.z)&&(wn(),i.z=0),isNaN(i.z2)&&(wn(),i.z2=0),isNaN(i.zlevel)&&(wn(),i.zlevel=0),this._displayList[this._displayListLen++]=i}i=t.getDecalElement&&t.getDecalElement(),i=(i&&this._updateAndAddDisplayable(i,e,n),t.getTextGuideLine()),i=(i&&this._updateAndAddDisplayable(i,e,n),t.getTextContent());i&&this._updateAndAddDisplayable(i,e,n)}},Mn.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},Mn.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=k(this._roots,t);0<=i&&this._roots.splice(i,1)}},Mn.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},Mn.prototype.getRoots=function(){return this._roots},Mn.prototype.dispose=function(){this._displayList=null,this._roots=null};var Sn=Mn;function Mn(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=bn}var Tn=b.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},Cn={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-Cn.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*Cn.bounceIn(2*t):.5*Cn.bounceOut(2*t-1)+.5}},kn=Math.pow,In=Math.sqrt,Dn=1e-8,An=In(3),Pn=1/3,Ln=Ut(),On=Ut(),Rn=Ut();function En(t){return-Dn<t&&t<Dn}function Nn(t){return Dn<t||t<-Dn}function Bn(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function zn(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function Fn(t,e,n,i,r,o){var a,s,i=i+3*(e-n)-t,n=3*(n-2*e+t),e=3*(e-t),t=t-r,r=n*n-3*i*e,l=n*e-9*i*t,t=e*e-3*n*t,u=0;return En(r)&&En(l)?En(n)?o[0]=0:0<=(s=-e/n)&&s<=1&&(o[u++]=s):En(e=l*l-4*r*t)?(a=-(t=l/r)/2,0<=(s=-n/i+t)&&s<=1&&(o[u++]=s),0<=a&&a<=1&&(o[u++]=a)):0<e?(e=r*n+1.5*i*(-l-(t=In(e))),0<=(s=(-n-((t=(t=r*n+1.5*i*(-l+t))<0?-kn(-t,Pn):kn(t,Pn))+(e=e<0?-kn(-e,Pn):kn(e,Pn))))/(3*i))&&s<=1&&(o[u++]=s)):(t=(2*r*n-3*i*l)/(2*In(r*r*r)),e=Math.acos(t)/3,s=(-n-2*(l=In(r))*(t=Math.cos(e)))/(3*i),a=(-n+l*(t+An*Math.sin(e)))/(3*i),r=(-n+l*(t-An*Math.sin(e)))/(3*i),0<=s&&s<=1&&(o[u++]=s),0<=a&&a<=1&&(o[u++]=a),0<=r&&r<=1&&(o[u++]=r)),u}function Vn(t,e,n,i,r){var o,a=6*n-12*e+6*t,i=9*e+3*i-3*t-9*n,n=3*e-3*t,e=0;return En(i)?Nn(a)&&0<=(o=-n/a)&&o<=1&&(r[e++]=o):En(t=a*a-4*i*n)?r[0]=-a/(2*i):0<t&&(t=(-a-(n=In(t)))/(2*i),0<=(o=(-a+n)/(2*i))&&o<=1&&(r[e++]=o),0<=t)&&t<=1&&(r[e++]=t),e}function Hn(t,e,n,i,r,o){var a=(e-t)*r+t,e=(n-e)*r+e,n=(i-n)*r+n,s=(e-a)*r+a,e=(n-e)*r+e,r=(e-s)*r+s;o[0]=t,o[1]=a,o[2]=s,o[3]=r,o[4]=r,o[5]=e,o[6]=n,o[7]=i}function Wn(t,e,n,i,r,o,a,s,l,u,h){var c,p,d,f,g=.005,y=1/0;Ln[0]=l,Ln[1]=u;for(var m=0;m<1;m+=.05)On[0]=Bn(t,n,r,a,m),On[1]=Bn(e,i,o,s,m),(d=ee(Ln,On))<y&&(c=m,y=d);for(var y=1/0,v=0;v<32&&!(g<1e-4);v++)p=c+g,On[0]=Bn(t,n,r,a,f=c-g),On[1]=Bn(e,i,o,s,f),d=ee(On,Ln),0<=f&&d<y?(c=f,y=d):(Rn[0]=Bn(t,n,r,a,p),Rn[1]=Bn(e,i,o,s,p),f=ee(Rn,Ln),p<=1&&f<y?(c=p,y=f):g*=.5);return h&&(h[0]=Bn(t,n,r,a,c),h[1]=Bn(e,i,o,s,c)),In(y)}function Gn(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function Un(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function Xn(t,e,n){n=t+n-2*e;return 0==n?.5:(t-e)/n}function qn(t,e,n,i,r){var o=(e-t)*i+t,e=(n-e)*i+e,i=(e-o)*i+o;r[0]=t,r[1]=o,r[2]=i,r[3]=i,r[4]=e,r[5]=n}function Yn(t,e,n,i,r,o,a,s,l){var u,h=.005,c=1/0;Ln[0]=a,Ln[1]=s;for(var p=0;p<1;p+=.05)On[0]=Gn(t,n,r,p),On[1]=Gn(e,i,o,p),(y=ee(Ln,On))<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=(On[0]=Gn(t,n,r,f),On[1]=Gn(e,i,o,f),ee(On,Ln));0<=f&&y<c?(u=f,c=y):(Rn[0]=Gn(t,n,r,g),Rn[1]=Gn(e,i,o,g),f=ee(Rn,Ln),g<=1&&f<c?(u=g,c=f):h*=.5)}return l&&(l[0]=Gn(t,n,r,u),l[1]=Gn(e,i,o,u)),In(c)}var Zn=/cubic-bezier\(([0-9,\.e ]+)\)/;function jn(t){t=t&&Zn.exec(t);if(t){var e,t=t[1].split(","),n=+It(t[0]),i=+It(t[1]),r=+It(t[2]),o=+It(t[3]);if(!isNaN(n+i+r+o))return e=[],function(t){return t<=0?0:1<=t?1:Fn(0,n,r,1,t,e)&&Bn(0,i,o,1,e[0])}}}$n.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,r=i/n,o=(r<0&&(r=0),r=Math.min(r,1),this.easingFunc),o=o?o(r):r;if(this.onframe(o),1===r){if(!this.loop)return!0;this._startTime=t-i%n,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},$n.prototype.pause=function(){this._paused=!0},$n.prototype.resume=function(){this._paused=!1},$n.prototype.setEasing=function(t){this.easing=t,this.easingFunc=M(t)?t:Cn[t]||jn(t)};var Kn=$n;function $n(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||Ht,this.ondestroy=t.ondestroy||Ht,this.onrestart=t.onrestart||Ht,t.easing&&this.setEasing(t.easing)}function Qn(t){this.value=t}ti.prototype.insert=function(t){t=new Qn(t);return this.insertEntry(t),t},ti.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++},ti.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--},ti.prototype.len=function(){return this._len},ti.prototype.clear=function(){this.head=this.tail=null,this._len=0};var Jn=ti;function ti(){this._len=0}ni.prototype.put=function(t,e){var n,i,r=this._list,o=this._map,a=null;return null==o[t]&&(i=r.len(),n=this._lastRemovedEntry,i>=this._maxSize&&0<i&&(i=r.head,r.remove(i),delete o[i.key],a=i.value,this._lastRemovedEntry=i),n?n.value=e:n=new Qn(e),n.key=t,r.insertEntry(n),o[t]=n),a},ni.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},ni.prototype.clear=function(){this._list.clear(),this._map={}},ni.prototype.len=function(){return this._list.len()};var ei=ni;function ni(t){this._list=new Jn,this._maxSize=10,this._map={},this._maxSize=t}var ii={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 ri(t){return(t=Math.round(t))<0?0:255<t?255:t}function oi(t){return t<0?0:1<t?1:t}function ai(t){return t.length&&"%"===t.charAt(t.length-1)?ri(parseFloat(t)/100*255):ri(parseInt(t,10))}function si(t){return t.length&&"%"===t.charAt(t.length-1)?oi(parseFloat(t)/100):oi(parseFloat(t))}function li(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 ui(t,e,n){return t+(e-t)*n}function hi(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function ci(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var pi=new ei(20),di=null;function fi(t,e){di&&ci(di,e),di=pi.put(t,di||e.slice())}function gi(t,e){if(t){e=e||[];var n=pi.get(t);if(n)return ci(e,n);n=(t+="").replace(/ /g,"").toLowerCase();if(n in ii)return ci(e,ii[n]),fi(t,e),e;var i=n.length;if("#"===n.charAt(0))return 4===i||5===i?0<=(r=parseInt(n.slice(1,4),16))&&r<=4095?(hi(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===i?parseInt(n.slice(4),16)/15:1),fi(t,e),e):void hi(e,0,0,0,1):7===i||9===i?0<=(r=parseInt(n.slice(1,7),16))&&r<=16777215?(hi(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===i?parseInt(n.slice(7),16)/255:1),fi(t,e),e):void hi(e,0,0,0,1):void 0;var r=n.indexOf("("),o=n.indexOf(")");if(-1!==r&&o+1===i){var i=n.substr(0,r),a=n.substr(r+1,o-(r+1)).split(","),s=1;switch(i){case"rgba":if(4!==a.length)return 3===a.length?hi(e,+a[0],+a[1],+a[2],1):hi(e,0,0,0,1);s=si(a.pop());case"rgb":return 3<=a.length?(hi(e,ai(a[0]),ai(a[1]),ai(a[2]),3===a.length?s:si(a[3])),fi(t,e),e):void hi(e,0,0,0,1);case"hsla":return 4!==a.length?void hi(e,0,0,0,1):(a[3]=si(a[3]),yi(a,e),fi(t,e),e);case"hsl":return 3!==a.length?void hi(e,0,0,0,1):(yi(a,e),fi(t,e),e);default:return}}hi(e,0,0,0,1)}}function yi(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=si(t[1]),r=si(t[2]),i=r<=.5?r*(i+1):r+i-r*i,r=2*r-i;return hi(e=e||[],ri(255*li(r,i,n+1/3)),ri(255*li(r,i,n)),ri(255*li(r,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function mi(t,e){var n=gi(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 xi(n,4===n.length?"rgba":"rgb")}}function vi(t,e,n){var i,r,o;if(e&&e.length&&0<=t&&t<=1)return n=n||[],t=t*(e.length-1),i=Math.floor(t),o=Math.ceil(t),r=e[i],e=e[o],n[0]=ri(ui(r[0],e[0],o=t-i)),n[1]=ri(ui(r[1],e[1],o)),n[2]=ri(ui(r[2],e[2],o)),n[3]=oi(ui(r[3],e[3],o)),n}function _i(t,e,n){var i,r,o,a;if(e&&e.length&&0<=t&&t<=1)return t=t*(e.length-1),i=Math.floor(t),r=Math.ceil(t),a=gi(e[i]),e=gi(e[r]),a=xi([ri(ui(a[0],e[0],o=t-i)),ri(ui(a[1],e[1],o)),ri(ui(a[2],e[2],o)),oi(ui(a[3],e[3],o))],"rgba"),n?{color:a,leftIndex:i,rightIndex:r,value:t}:a}function xi(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 wi(t,e){t=gi(t);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var bi=Object.freeze({__proto__:null,fastLerp:vi,fastMapToColor:vi,lerp:_i,lift:mi,lum:wi,mapToColor:_i,modifyAlpha:function(t,e){if((t=gi(t))&&null!=e)return t[3]=oi(e),xi(t,"rgba")},modifyHSL:function(t,e,n,i){var r=gi(t);if(t)return r=function(t){var e,n,i,r,o,a,s,l,u,h;if(t)return h=t[0]/255,n=t[1]/255,i=t[2]/255,s=Math.min(h,n,i),o=((r=Math.max(h,n,i))+s)/2,0==(u=r-s)?a=e=0:(a=o<.5?u/(r+s):u/(2-r-s),s=((r-h)/6+u/2)/u,l=((r-n)/6+u/2)/u,u=((r-i)/6+u/2)/u,h===r?e=u-l:n===r?e=1/3+s-u:i===r&&(e=2/3+l-s),e<0&&(e+=1),1<e&&--e),h=[360*e,a,o],null!=t[3]&&h.push(t[3]),h}(r),null!=e&&(r[0]=(t=e,(t=Math.round(t))<0?0:360<t?360:t)),null!=n&&(r[1]=si(n)),null!=i&&(r[2]=si(i)),xi(yi(r),"rgba")},parse:gi,random:function(){return xi([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:xi,toHex:function(t){if(t=gi(t))return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}});b.hasGlobalWindow&&M(window.btoa);var Si=Array.prototype.slice;function Mi(t,e,n){return(e-t)*n+t}function Ti(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=Mi(e[o],n[o],i);return t}function Ci(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function ki(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function Ii(t){if(st(t)){var e=t.length;if(st(t[0])){for(var n=[],i=0;i<e;i++)n.push(Si.call(t[i]));return n}return Si.call(t)}return t}function Di(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 Ai(t){return 4===t||5===t}function Pi(t){return 1===t||2===t}var Li=[0,0,0,0],Oi=(Ei.prototype.isFinished=function(){return this._finished},Ei.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},Ei.prototype.needsAnimate=function(){return 1<=this.keyframes.length},Ei.prototype.getAdditiveTrack=function(){return this._additiveTrack},Ei.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i,r=this.keyframes,o=r.length,a=!1,s=6,l=e,u=(st(e)?(1==(s=i=st((i=e)&&i[0])?2:1)&&!gt(e[0])||2==i&&!gt(e[0][0]))&&(a=!0):gt(e)&&!bt(e)?s=0:H(e)?isNaN(+e)?(i=gi(e))&&(l=i,s=3):s=0:_t(e)&&((u=L({},l)).colorStops=F(e.colorStops,function(t){return{offset:t.offset,color:gi(t.color)}}),"linear"===e.type?s=4:"radial"===e.type&&(s=5),l=u),0===o?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=M(n)?n:Cn[n]||jn(n)),r.push(u),u},Ei.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(t,e){return t.time-e.time});for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=Pi(i),l=Ai(i),u=0;u<r;u++){var h=n[u],c=h.value,p=o.value;if(h.percent=h.time/t,!a)if(s&&u!==r-1){h=void 0;d=void 0;f=void 0;g=void 0;y=void 0;m=void 0;v=void 0;_=void 0;x=void 0;h=c;var d=p;var f=i;var g=h,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]:Si.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){d=void 0;h=void 0;w=void 0;b=void 0;S=void 0;M=void 0;T=void 0;d=c.colorStops;h=p.colorStops;for(var w=d.length,b=h.length,S=b<w?h:d,h=Math.min(w,b),M=S[h-1]||{color:[0,0,0,0],offset:0},T=h;T<Math.max(w,b);T++)S.push({offset:M.offset,color:M.color.slice()})}}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var C=n[0].value,u=0;u<r;u++)0===i?n[u].additiveValue=n[u].value-C:3===i?n[u].additiveValue=Ci([],n[u].value,C,-1):Pi(i)&&(n[u].additiveValue=(1===i?Ci:ki)([],n[u].value,C,-1))}},Ei.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o,a,s=null!=this._additiveTrack,l=s?"additiveValue":"value",u=this.valType,h=this.keyframes,c=h.length,p=this.propName,d=3===u,f=this._lastFr,g=Math.min;if(1===c)i=r=h[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=g(f+1,c-1);0<=n&&!(h[n].percent<=e);n--);n=g(n,c-2)}else{for(n=f;n<c&&!(h[n].percent>e);n++);n=g(n-1,c-2)}r=h[n+1],i=h[n]}i&&r&&(this._lastFr=n,this._lastFrP=e,f=r.percent-i.percent,o=0==f?1:g((e-i.percent)/f,1),r.easingFunc&&(o=r.easingFunc(o)),g=s?this._additiveValue:d?Li:t[p],(Pi(u)||d)&&(g=g||(this._additiveValue=[])),this.discrete?t[p]=(o<1?i:r).rawValue:Pi(u)?(1===u?Ti:function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=Mi(e[a][s],n[a][s],i)}})(g,i[l],r[l],o):Ai(u)?(f=i[l],a=r[l],t[p]={type:(u=4===u)?"linear":"radial",x:Mi(f.x,a.x,o),y:Mi(f.y,a.y,o),colorStops:F(f.colorStops,function(t,e){e=a.colorStops[e];return{offset:Mi(t.offset,e.offset,o),color:Di(Ti([],t.color,e.color,o))}}),global:a.global},u?(t[p].x2=Mi(f.x2,a.x2,o),t[p].y2=Mi(f.y2,a.y2,o)):t[p].r=Mi(f.r,a.r,o)):d?(Ti(g,i[l],r[l],o),s||(t[p]=Di(g))):(u=Mi(i[l],r[l],o),s?this._additiveValue=u:t[p]=u),s)&&this._addToTarget(t)}},Ei.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(gi(t[n],Li),Ci(Li,Li,i,1),t[n]=Di(Li)):1===e?Ci(t[n],t[n],i,1):2===e&&ki(t[n],t[n],i,1)},Ei),Ri=(n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(t){this._target=t},n.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,ct(e),n)},n.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o];if(!(l=r[a])){var s,l=r[a]=new Oi(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&&Di(u))):u=this._target[a],null==u)continue;0<t&&l.addKeyframe(0,Ii(u),i),this._trackKeys.push(a)}l.addKeyframe(t,Ii(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},n.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)},n.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)},n.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},n.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},n.prototype.start=function(t){if(!(0<this._started)){this._started=1;for(var e,o=this,a=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var r=this._trackKeys[i],s=this._tracks[r],r=this._getAdditiveTrack(r),l=s.keyframes,u=l.length;s.prepare(n,r),s.needsAnimate()&&(!this._allowDiscrete&&s.discrete?((r=l[u-1])&&(o._target[s.propName]=r.rawValue),s.setFinished()):a.push(s))}return a.length||this._force?(e=new Kn({life:n,loop:this._loop,delay:this._delay||0,onframe:function(t){o._started=2;var e=o._additiveAnimators;if(e){for(var n=!1,i=0;i<e.length;i++)if(e[i]._clip){n=!0;break}n||(o._additiveAnimators=null)}for(i=0;i<a.length;i++)a[i].step(o._target,t);var r=o._onframeCbs;if(r)for(i=0;i<r.length;i++)r[i](o._target,t)},ondestroy:function(){o._doneCallback()}}),this._clip=e,this.animation&&this.animation.addClip(e),t&&e.setEasing(t)):this._doneCallback(),this}},n.prototype.stop=function(t){var e;this._clip&&(e=this._clip,t&&e.onframe(1),this._abortedCallback())},n.prototype.delay=function(t){return this._delay=t,this},n.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},n.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},n.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},n.prototype.getClip=function(){return this._clip},n.prototype.getTrack=function(t){return this._tracks[t]},n.prototype.getTracks=function(){var e=this;return F(this._trackKeys,function(t){return e._tracks[t]})},n.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}for(var a=!0,r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},n.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];o&&!o.isFinished()&&(o=(o=o.keyframes)[n?0:o.length-1])&&(t[r]=Ii(o.rawValue))}}},n.prototype.__changeFinalValue=function(t,e){e=e||ct(t);for(var n=0;n<e.length;n++){var i,r=e[n],o=this._tracks[r];o&&1<(i=o.keyframes).length&&(i=i.pop(),o.addKeyframe(i.time,t[r]),o.prepare(this._maxTime,o.getAdditiveTrack()))}},n);function n(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,(this._loop=e)&&i?it("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}function Ei(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}function Ni(){return(new Date).getTime()}u(Fi,Bi=he),Fi.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},Fi.prototype.addAnimator=function(t){t.animation=this;t=t.getClip();t&&this.addClip(t)},Fi.prototype.removeClip=function(t){var e,n;t.animation&&(e=t.prev,n=t.next,e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null)},Fi.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},Fi.prototype.update=function(t){for(var e=Ni()-this._pausedTime,n=e-this._time,i=this._head;i;)var r=i.next,i=(i.step(e,n)&&(i.ondestroy(),this.removeClip(i)),r);this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},Fi.prototype._startLoop=function(){var e=this;this._running=!0,Tn(function t(){e._running&&(Tn(t),!e._paused)&&e.update()})},Fi.prototype.start=function(){this._running||(this._time=Ni(),this._pausedTime=0,this._startLoop())},Fi.prototype.stop=function(){this._running=!1},Fi.prototype.pause=function(){this._paused||(this._pauseStart=Ni(),this._paused=!0)},Fi.prototype.resume=function(){this._paused&&(this._pausedTime+=Ni()-this._pauseStart,this._paused=!1)},Fi.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},Fi.prototype.isFinished=function(){return null==this._head},Fi.prototype.animate=function(t,e){e=e||{},this.start();t=new Ri(t,e.loop);return this.addAnimator(t),t};var Bi,zi=Fi;function Fi(t){var e=Bi.call(this)||this;return e._running=!1,e._time=0,e._pausedTime=0,e._pauseStart=0,e._paused=!1,e.stage=(t=t||{}).stage||{},e}var Vi,Hi=b.domSupported,Wi=(Vi={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:i=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:F(i,function(t){var e=t.replace("mouse","pointer");return Vi.hasOwnProperty(e)?e:t})}),Gi=["mousemove","mouseup"],Ui=["pointermove","pointerup"],Xi=!1;function qi(t){t=t.pointerType;return"pen"===t||"touch"===t}function Yi(t){t&&(t.zrByTouch=!0)}function Zi(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var ji=function(t,e){this.stopPropagation=Ht,this.stopImmediatePropagation=Ht,this.preventDefault=Ht,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Ki={mousedown:function(t){t=ke(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=ke(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=ke(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Zi(this,(t=ke(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Xi=!0,t=ke(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Xi||(t=ke(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Yi(t=ke(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Ki.mousemove.call(this,t),Ki.mousedown.call(this,t)},touchmove:function(t){Yi(t=ke(this.dom,t)),this.handler.processGesture(t,"change"),Ki.mousemove.call(this,t)},touchend:function(t){Yi(t=ke(this.dom,t)),this.handler.processGesture(t,"end"),Ki.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Ki.click.call(this,t)},pointerdown:function(t){Ki.mousedown.call(this,t)},pointermove:function(t){qi(t)||Ki.mousemove.call(this,t)},pointerup:function(t){Ki.mouseup.call(this,t)},pointerout:function(t){qi(t)||Ki.mouseout.call(this,t)}},$i=(O(["click","dblclick","contextmenu"],function(e){Ki[e]=function(t){t=ke(this.dom,t),this.trigger(e,t)}}),{pointermove:function(t){qi(t)||$i.mousemove.call(this,t)},pointerup:function(t){$i.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}});function Qi(i,r){var o=r.domHandlers;b.pointerEventsSupported?O(Wi.pointer,function(e){tr(r,e,function(t){o[e].call(i,t)})}):(b.touchEventsSupported&&O(Wi.touch,function(n){tr(r,n,function(t){var e;o[n].call(i,t),(e=r).touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)})}),O(Wi.mouse,function(e){tr(r,e,function(t){t=Ce(t),r.touching||o[e].call(i,t)})}))}function Ji(i,r){function t(n){tr(r,n,function(t){var e;t=Ce(t),Zi(i,t.target)||(e=t,t=ke(i.dom,new ji(i,e),!0),r.domHandlers[n].call(i,t))},{capture:!0})}b.pointerEventsSupported?O(Ui,t):b.touchEventsSupported||O(Gi,t)}function tr(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,t.domTarget.addEventListener(e,n,i)}function er(t){var e,n,i,r,o,a=t.mounted;for(e in a)a.hasOwnProperty(e)&&(n=t.domTarget,i=e,r=a[e],o=t.listenerOpts[e],n.removeEventListener(i,r,o));t.mounted={}}function nr(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}u(or,ir=he),or.prototype.dispose=function(){er(this._localHandlerScope),Hi&&er(this._globalHandlerScope)},or.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},or.prototype.__togglePointerCapture=function(t){var e;this.__mayPointerCapture=null,Hi&&+this.__pointerCapturing^+t&&(this.__pointerCapturing=t,e=this._globalHandlerScope,t?Ji(this,e):er(e))};var ir,rr=or;function or(t,e){var n=ir.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=e,n._localHandlerScope=new nr(t,Ki),Hi&&(n._globalHandlerScope=new nr(document,$i)),Qi(n,n._localHandlerScope),n}var i=1,ar=i=b.hasGlobalWindow?Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1):i,sr="#333",lr="#ccc",ur=Re;function hr(t){return 5e-5<t||t<-5e-5}var cr=[],pr=[],dr=Oe(),fr=Math.abs,gr=(yr.prototype.getLocalTransform=function(t){return yr.getLocalTransform(this,t)},yr.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},yr.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},yr.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},yr.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},yr.prototype.needLocalTransform=function(){return hr(this.rotation)||hr(this.x)||hr(this.y)||hr(this.scaleX-1)||hr(this.scaleY-1)||hr(this.skewX)||hr(this.skewY)},yr.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||Oe(),e?this.getLocalTransform(n):ur(n),t&&(e?Ne(n,t,n):Ee(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(ur(n),this.invTransform=null)},yr.prototype._resolveGlobalScaleRatio=function(t){var e,n,i=this.globalScaleRatio;null!=i&&1!==i&&(this.getGlobalScale(cr),n=((cr[1]-(n=cr[1]<0?-1:1))*i+n)/cr[1]||0,t[0]*=i=((cr[0]-(e=cr[0]<0?-1:1))*i+e)/cr[0]||0,t[1]*=i,t[2]*=n,t[3]*=n),this.invTransform=this.invTransform||Oe(),Ve(this.invTransform,t)},yr.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},yr.prototype.setLocalTransform=function(t){var e,n,i,r;t&&(r=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),r=Math.sqrt(r),this.skewX=n,this.skewY=0,this.rotation=-e,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0)},yr.prototype.decomposeTransform=function(){var t,e,n;this.transform&&(e=this.parent,t=this.transform,e&&e.transform&&(Ne(pr,e.invTransform,t),t=pr),e=this.originX,n=this.originY,(e||n)&&(dr[4]=e,dr[5]=n,Ne(pr,t,dr),pr[4]-=e,pr[5]-=n,t=pr),this.setLocalTransform(t))},yr.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},yr.prototype.transformCoordToLocal=function(t,e){t=[t,e],e=this.invTransform;return e&&ie(t,t,e),t},yr.prototype.transformCoordToGlobal=function(t,e){t=[t,e],e=this.transform;return e&&ie(t,t,e),t},yr.prototype.getLineScale=function(){var t=this.transform;return t&&1e-10<fr(t[0]-1)&&1e-10<fr(t[3]-1)?Math.sqrt(fr(t[0]*t[3]-t[2]*t[1])):1},yr.prototype.copyTransform=function(t){for(var e=this,n=t,i=0;i<mr.length;i++){var r=mr[i];e[r]=n[r]}},yr.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=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)*r-c*(s=i+s)*o,e[5]=-s*o-t*a*r):e[4]=e[5]=0,e[0]=r,e[3]=o,e[1]=t*r,e[2]=c*o,l&&ze(e,e,l),e[4]+=n+u,e[5]+=i+h,e},yr.initDefaultProps=((i=yr.prototype).scaleX=i.scaleY=i.globalScaleRatio=1,void(i.x=i.y=i.originX=i.originY=i.skewX=i.skewY=i.rotation=i.anchorX=i.anchorY=0)),yr);function yr(){}var mr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];var vr={};function _r(t,e){var n=vr[e=e||j],i=(n=n||(vr[e]=new ei(500))).get(t);return null==i&&(i=W.measureText(t,e).width,n.put(t,i)),i}function xr(t,e,n,i){t=_r(t,e),e=Mr(e),n=br(0,t,n),i=Sr(0,e,i);return new B(n,i,t,e)}function wr(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return xr(r[0],e,n,i);for(var o=new B(0,0,0,0),a=0;a<r.length;a++){var s=xr(r[a],e,n,i);0===a?o.copy(s):o.union(s)}return o}function br(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Sr(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function Mr(t){return _r("国",t)}function Tr(t,e){return"string"==typeof t?0<=t.lastIndexOf("%")?parseFloat(t)/100*e:parseFloat(t):t}function Cr(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=Tr(i[0],n.width),u+=Tr(i[1],n.height),c=h=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}var kr,Ir="__zr_normal__",Dr=mr.concat(["ignore"]),Ar=lt(mr,function(t,e){return t[e]=!0,t},{ignore:!1}),Pr={},Lr=new B(0,0,0,0),i=(r.prototype._init=function(t){this.attr(t)},r.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()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e,n,i,r,o,a,s,l,u,h,c=this._textContent;!c||c.ignore&&!t||(this.textConfig||(this.textConfig={}),l=(t=this.textConfig).local,i=n=void 0,r=!1,(e=c.innerTransformable).parent=l?this:null,h=!1,e.copyTransform(c),null!=t.position&&(u=Lr,t.layoutRect?u.copy(t.layoutRect):u.copy(this.getBoundingRect()),l||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Pr,t,u):Cr(Pr,t,u),e.x=Pr.x,e.y=Pr.y,n=Pr.align,i=Pr.verticalAlign,o=t.origin)&&null!=t.rotation&&(s=a=void 0,s="center"===o?(a=.5*u.width,.5*u.height):(a=Tr(o[0],u.width),Tr(o[1],u.height)),h=!0,e.originX=-e.x+a+(l?0:u.x),e.originY=-e.y+s+(l?0:u.y)),null!=t.rotation&&(e.rotation=t.rotation),(o=t.offset)&&(e.x+=o[0],e.y+=o[1],h||(e.originX=-o[0],e.originY=-o[1])),a=null==t.inside?"string"==typeof t.position&&0<=t.position.indexOf("inside"):t.inside,s=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),h=u=l=void 0,a&&this.canBeInsideText()?(l=t.insideFill,u=t.insideStroke,null!=l&&"auto"!==l||(l=this.getInsideTextFill()),null!=u&&"auto"!==u||(u=this.getInsideTextStroke(l),h=!0)):(l=t.outsideFill,u=t.outsideStroke,null!=l&&"auto"!==l||(l=this.getOutsideFill()),null!=u&&"auto"!==u||(u=this.getOutsideStroke(l),h=!0)),(l=l||"#000")===s.fill&&u===s.stroke&&h===s.autoStroke&&n===s.align&&i===s.verticalAlign||(r=!0,s.fill=l,s.stroke=u,s.autoStroke=h,s.align=n,s.verticalAlign=i,c.setDefaultTextStyle(s)),c.__dirty|=vn,r&&c.dirtyStyle(!0))},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?lr:sr},r.prototype.getOutsideStroke=function(t){for(var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&gi(e),i=(n=n||[255,255,255,1])[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,xi(n,"rgba")},r.prototype.traverse=function(t,e){},r.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||{},L(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(R(t))for(var n=ct(t),i=0;i<n.length;i++){var r=n[i];this.attrKV(r,t[r])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;i.getLoop()||r&&r!==Ir||(r=(r=i.targetName)?e[r]:e,i.saveTo(r))}},r.prototype._innerSaveToNormal=function(t){var e=(e=this._normalState)||(this._normalState={});t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Dr)},r.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},r.prototype.hasState=function(){return 0<this.currentStates.length},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(Ir,!1,t)},r.prototype.useState=function(t,e,n,i){var r=t===Ir;if(this.hasState()||!r){var o,a=this.currentStates,s=this.stateTransition;if(!(0<=k(a,t))||!e&&1!==a.length){if((o=(o=this.stateProxy&&!r?this.stateProxy(t):o)||this.states&&this.states[t])||r)return r||this.saveCurrentToNormalState(o),(a=!!(o&&o.hoverLayer||i))&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,o,this._normalState,e,!n&&!this.__inHover&&s&&0<s.duration,s),i=this._textContent,s=this._textGuide,i&&i.useState(t,e,n,a),s&&s.useState(t,e,n,a),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!a&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~vn),o;it("State "+t+" not exists.")}}},r.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}if(!a){for(s=0;s<o;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[o-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&=~vn)}}else this.clearStates()},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e,t=k(this.currentStates,t);0<=t&&((e=this.currentStates.slice()).splice(t,1),this.useStates(e))},r.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),t=k(i,t),r=0<=k(i,e);0<=t?r?i.splice(t,1):i[t]=e:n&&!r&&i.push(e),this.useStates(i)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];L(n,r),r.textConfig&&L(e=e||{},r.textConfig)}return e&&(n.textConfig=e),n},r.prototype._applyStateObj=function(t,e,n,i,r,o){var a=!(e&&i);e&&e.textConfig?(this.textConfig=L({},(i?this:n).textConfig),L(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<Dr.length;u++){var h=Dr[u],c=r&&Ar[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(!r)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,o)},r.prototype._attachComponent=function(t){var e;t.__zr&&!t.__hostTarget||t!==this&&((e=this.__zr)&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this)},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new gr,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),L(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=vn;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},r.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)}},r.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)}},r.prototype.animate=function(t,e,n){var i=t?this[t]:this,i=new Ri(i,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},r.prototype.addAnimator=function(n,t){var e=this.__zr,i=this;n.during(function(){i.updateDuringAnimation(t)}).done(function(){var t=i.animators,e=k(t,n);0<=e&&t.splice(e,1)}),this.animators.push(n),e&&e.animation.addAnimator(n),e&&e.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},r.prototype.animateTo=function(t,e,n){Rr(this,t,e,n)},r.prototype.animateFrom=function(t,e,n){Rr(this,t,e,n,!0)},r.prototype._transitionState=function(t,e,n,i){for(var r=Rr(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=((kr=r.prototype).type="element",kr.name="",kr.ignore=kr.silent=kr.isGroup=kr.draggable=kr.dragging=kr.ignoreClip=kr.__inHover=!1,kr.__dirty=vn,void(Object.defineProperty&&(Or("position","_legacyPos","x","y"),Or("scale","_legacyScale","scaleX","scaleY"),Or("origin","_legacyOrigin","originX","originY")))),r);function r(t){this.id=et++,this.animators=[],this.currentStates=[],this.states={},this._init(t)}function Or(t,e,n,i){function r(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(kr,t,{get:function(){return this[e]||r(this,this[e]=[]),this[e]},set:function(t){this[n]=t[0],this[i]=t[1],this[e]=t,r(this,t)}})}function Rr(t,e,n,i,r){function o(){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,r,o,a,s,l){for(var u=ct(r),h=o.duration,c=o.delay,p=o.additive,d=o.setToFinal,f=!R(a),g=e.animators,y=[],m=0;m<u.length;m++){var v=u[m],_=r[v];null!=_&&null!=i[v]&&(f||a[v])?!R(_)||st(_)||_t(_)?y.push(v):n?l||(i[v]=_,e.updateDuringAnimation(n)):t(e,v,i[v],_,o,a&&a[v],s,l):l||(i[v]=_,e.updateDuringAnimation(n),y.push(v))}var x=y.length;if(!p&&x)for(var w=0;w<g.length;w++){var b;(S=g[w]).targetName===n&&S.stopTracks(y)&&(b=k(g,S),g.splice(b,1))}if(o.force||(x=(y=ut(y,function(t){return!Br(r[t],i[t])})).length),0<x||o.force&&!s.length){var S,M=void 0,T=void 0,C=void 0;if(l)for(T={},d&&(M={}),w=0;w<x;w++)T[v=y[w]]=i[v],d?M[v]=r[v]:i[v]=r[v];else if(d)for(C={},w=0;w<x;w++)C[v=y[w]]=Ii(i[v]),Nr(i,r,v);(S=new Ri(i,!1,!1,p?ut(g,function(t){return t.targetName===n}):null)).targetName=n,o.scope&&(S.scope=o.scope),d&&M&&S.whenWithKeys(0,M,y),C&&S.whenWithKeys(0,C,y),S.whenWithKeys(null==h?500:h,l?T:r,y).delay(c||0),e.addAnimator(S,n),s.push(S)}}(t,"",t,e,n=n||{},i,s,r),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(o),d.aborted(a),n.force&&d.duration(n.duration),d.start(n.easing)}return s}function Er(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function Nr(t,e,n){if(st(e[n]))if(st(t[n])||(t[n]=[]),mt(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),Er(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(st(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?Er(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else Er(o,r,a);o.length=r.length}else t[n]=e[n]}function Br(t,e){return t===e||st(t)&&st(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)}at(i,he),at(i,gr);u(Vr,zr=i),Vr.prototype.childrenRef=function(){return this._children},Vr.prototype.children=function(){return this._children.slice()},Vr.prototype.childAt=function(t){return this._children[t]},Vr.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},Vr.prototype.childCount=function(){return this._children.length},Vr.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},Vr.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},Vr.prototype.replace=function(t,e){t=k(this._children,t);return 0<=t&&this.replaceAt(e,t),this},Vr.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},Vr.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()},Vr.prototype.remove=function(t){var e=this.__zr,n=this._children,i=k(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},Vr.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},Vr.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},Vr.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},Vr.prototype.addSelfToZr=function(t){zr.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].addSelfToZr(t)},Vr.prototype.removeSelfFromZr=function(t){zr.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].removeSelfFromZr(t)},Vr.prototype.getBoundingRect=function(t){for(var e=new B(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var a,s=n[o];s.ignore||s.invisible||(a=s.getBoundingRect(),(s=s.getLocalTransform(i))?(B.applyTransform(e,a,s),(r=r||e.clone()).union(e)):(r=r||a.clone()).union(a))}return r||e};var zr,Fr=Vr;function Vr(t){var e=zr.call(this)||this;return e.isGroup=!0,e._children=[],e.attr(t),e}Fr.prototype.type="group";var Hr={},Wr={};o.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},o.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},o.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},o.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(t){if("string"==typeof t)return wi(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=wi(e[r].color,1);return(n/=i)<.4}}return!1}(t)},o.prototype.getBackgroundColor=function(){return this._backgroundColor},o.prototype.setDarkMode=function(t){this._darkMode=t},o.prototype.isDarkMode=function(){return this._darkMode},o.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},o.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},o.prototype.flush=function(){this._flush(!1)},o.prototype._flush=function(t){var e,n=Ni(),t=(this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),Ni());e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:t-n})):0<this._sleepAfterStill&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill)&&this.animation.stop()},o.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},o.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},o.prototype.refreshHover=function(){this._needsRefreshHover=!0},o.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},o.prototype.resize=function(t){this.painter.resize((t=t||{}).width,t.height),this.handler.resize()},o.prototype.clearAnimation=function(){this.animation.clear()},o.prototype.getWidth=function(){return this.painter.getWidth()},o.prototype.getHeight=function(){return this.painter.getHeight()},o.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},o.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},o.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},o.prototype.off=function(t,e){this.handler.off(t,e)},o.prototype.trigger=function(t,e){this.handler.trigger(t,e)},o.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Fr&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},o.prototype.dispose=function(){var t;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,t=this.id,delete Wr[t]};var Gr=o;function o(t,e,n){var i=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 Sn),o=n.renderer||"canvas",o=(Hr[o]||(o=ct(Hr)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect,new Hr[o](e,r,n,t)),e=n.ssr||o.ssrOnly;this.storage=r,this.painter=o;var a,t=b.node||b.worker||e?null:new rr(o.getViewportRoot(),o.root),s=n.useCoarsePointer;(null==s||"auto"===s?b.touchEventsSupported:s)&&(a=E(n.pointerSize,44)),this.handler=new an(r,o,t,o.root,a),this.animation=new zi({stage:{update:e?null:function(){return i._flush(!0)}}}),e||this.animation.start()}function Ur(t,e){t=new Gr(et++,t,e);return Wr[t.id]=t}function Xr(t,e){Hr[t]=e}var qr=Object.freeze({__proto__:null,dispose:function(t){t.dispose()},disposeAll:function(){for(var t in Wr)Wr.hasOwnProperty(t)&&Wr[t].dispose();Wr={}},getInstance:function(t){return Wr[t]},init:Ur,registerPainter:Xr,version:"5.4.4"}),Yr=20;function Zr(t,e,n,i){var r=e[0],e=e[1],o=n[0],n=n[1],a=e-r,s=n-o;if(0==a)return 0==s?o:(o+n)/2;if(i)if(0<a){if(t<=r)return o;if(e<=t)return n}else{if(r<=t)return o;if(t<=e)return n}else{if(t===r)return o;if(t===e)return n}return(t-r)/a*s+o}function f(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return H(t)?t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function jr(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),Yr),t=(+t).toFixed(e),n?t:+t}function Kr(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 $r(t)}function $r(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 Qr(t,e){var n=Math.log,i=Math.LN10,t=Math.floor(n(t[1]-t[0])/i),n=Math.round(n(Math.abs(e[1]-e[0]))/i),e=Math.min(Math.max(-t+n,0),20);return isFinite(e)?e:20}function Jr(t){var e=2*Math.PI;return(t%e+e)%e}function to(t){return-1e-4<t&&t<1e-4}var eo=/^(?:(\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 no(t){var e,n;return t instanceof Date?t:H(t)?(e=eo.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 io(t){return Math.pow(10,ro(t))}function ro(t){var e;return 0===t?0:(e=Math.floor(Math.log(t)/Math.LN10),10<=t/Math.pow(10,e)&&e++,e)}function oo(t,e){var n=ro(t),i=Math.pow(10,n),r=t/i;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,-20<=n?+t.toFixed(n<0?-n:0):t}function ao(t){var e=parseFloat(t);return e==t&&(0!==e||!H(t)||t.indexOf("x")<=0)?e:NaN}function so(t){return!isNaN(ao(t))}function lo(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 g(t){throw new Error(t)}function uo(t,e,n){return(e-t)*n+t}var ho="series\0",co="\0_ec_\0";function po(t){return t instanceof Array?t:null==t?[]:[t]}function fo(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var go=["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 yo(t){return!R(t)||V(t)||t instanceof Date?t:t.value}function mo(t,n,e){var a,i,r,o,s,l,u,h,c,p,d="normalMerge"===e,f="replaceMerge"===e,g="replaceAll"===e,y=(t=t||[],n=(n||[]).slice(),N()),e=(O(n,function(t,e){R(t)||(n[e]=null)}),function(t,e,n){var i=[];if("replaceAll"!==n)for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||bo(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}(t,y,e));return(d||f)&&(u=e,h=t,c=y,O(p=n,function(t,e){var n,i,r;t&&null!=t.id&&(n=_o(t.id),null!=(i=c.get(n)))&&(kt(!(r=u[i]).newOption,'Duplicated option on id "'+n+'".'),r.newOption=t,r.existing=h[i],p[e]=null)})),d&&(s=e,O(l=n,function(t,e){if(t&&null!=t.name)for(var n=0;n<s.length;n++){var i=s[n].existing;if(!s[n].newOption&&i&&(null==i.id||null==t.id)&&!bo(t)&&!bo(i)&&vo("name",i,t))return s[n].newOption=t,void(l[e]=null)}})),d||f?(r=e,o=f,O(n,function(t){if(t){for(var e,n=0;(e=r[n])&&(e.newOption||bo(e.existing)||e.existing&&null!=t.id&&!vo("id",t,e.existing));)n++;e?(e.newOption=t,e.brandNew=o):r.push({newOption:t,brandNew:o,existing:null,keyInfo:null}),n++}})):g&&(i=e,O(n,function(t){i.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})),t=e,a=N(),O(t,function(t){var e=t.existing;e&&a.set(e.id,t)}),O(t,function(t){var e=t.newOption;kt(!e||null==e.id||!a.get(e.id)||a.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&a.set(e.id,t),t.keyInfo||(t.keyInfo={})}),O(t,function(t,e){var n=t.existing,i=t.newOption,r=t.keyInfo;if(R(i)){if(r.name=null!=i.name?_o(i.name):n?n.name:ho+e,n)r.id=_o(n.id);else if(null!=i.id)r.id=_o(i.id);else for(var o=0;r.id="\0"+r.name+"\0"+o++,a.get(r.id););a.set(r.id,t)}}),e}function vo(t,e,n){e=xo(e[t],null),n=xo(n[t],null);return null!=e&&null!=n&&e===n}function _o(t){return xo(t,"")}function xo(t,e){return null==t?e:H(t)?t:gt(t)||ft(t)?t+"":e}function wo(t){t=t.name;return!(!t||!t.indexOf(ho))}function bo(t){return t&&null!=t.id&&0===_o(t.id).indexOf(co)}function So(t,r,o){O(t,function(t){var e,n,i=t.newOption;R(i)&&(t.keyInfo.mainType=r,t.keyInfo.subType=(e=r,i=i,t=t.existing,n=o,i.type||(t?t.subType:n.determineSubType(e,i))))})}function Mo(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?V(t.dataIndex)?F(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?V(t.name)?F(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function To(){var e="__ec_inner_"+Co++;return function(t){return t[e]||(t[e]={})}}var Co=Math.round(9*Math.random());function ko(n,t,i){var t=Io(t,i),e=t.mainTypeSpecified,r=t.queryOptionMap,o=t.others,a=i?i.defaultMainType:null;return!e&&a&&r.set(a,{}),r.each(function(t,e){t=Ao(n,e,t,{useDefault:a===e,enableAll:!i||null==i.enableAll||i.enableAll,enableNone:!i||null==i.enableNone||i.enableNone});o[e+"Models"]=t.models,o[e+"Model"]=t.models[0]}),o}function Io(t,r){var e=H(t)?((e={})[t+"Index"]=0,e):t,o=N(),a={},s=!1;return O(e,function(t,e){var n,i;"dataIndex"!==e&&"dataIndexInside"!==e?(n=(i=e.match(/^(\w+)(Index|Id|Name)$/)||[])[1],i=(i[2]||"").toLowerCase(),!n||!i||r&&r.includeMainTypes&&k(r.includeMainTypes,n)<0||(s=s||!!n,(o.get(n)||o.set(n,{}))[i]=t)):a[e]=t}),{mainTypeSpecified:s,queryOptionMap:o,others:a}}var Do={useDefault:!0,enableAll:!1,enableNone:!1};function Ao(t,e,n,i){i=i||Do;var r=n.index,o=n.id,n=n.name,a={models:null,specified:null!=r||null!=o||null!=n};return a.specified?"none"===r||!1===r?(kt(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),a.models=[]):("all"===r&&(kt(i.enableAll,'`"all"` is not a valid value on index option.'),r=o=n=null),a.models=t.queryComponents({mainType:e,index:r,id:o,name:n})):(r=void 0,a.models=i.useDefault&&(r=t.getComponent(e))?[r]:[]),a}function Po(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}var Lo=".",Oo="___EC__COMPONENT__CONTAINER___",Ro="___EC__EXTENDED_CLASS___";function Eo(t){var e={main:"",sub:""};return t&&(t=t.split(Lo),e.main=t[0]||"",e.sub=t[1]||""),e}function No(t){(t.$constructor=t).extend=function(t){var e,n,i,r=this;return M(i=r)&&/^class\s/.test(Function.prototype.toString.call(i))?(u(o,n=r),e=o):ot(e=function(){(t.$constructor||r).apply(this,arguments)},this),L(e.prototype,t),e[Ro]=!0,e.extend=this.extend,e.superCall=Fo,e.superApply=Vo,e.superClass=r,e;function o(){return n.apply(this,arguments)||this}}}function Bo(t,e){t.extend=e.extend}var zo=Math.round(10*Math.random());function Fo(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 Vo(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Ho(t){var r={};t.registerClass=function(t){var e,n=t.type||t.prototype.type;return n&&(kt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e=n),'componentType "'+e+'" illegal'),(e=Eo(t.prototype.type=n)).sub?e.sub!==Oo&&((n=r[e.main])&&n[Oo]||((n=r[e.main]={})[Oo]=!0),n[e.sub]=t):r[e.main]=t),t},t.getClass=function(t,e,n){var i=r[t];if(i&&i[Oo]&&(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=Eo(t),n=[],t=r[t.main];return t&&t[Oo]?O(t,function(t,e){e!==Oo&&n.push(t)}):n.push(t),n},t.hasClass=function(t){t=Eo(t);return!!r[t.main]},t.getAllClassMainTypes=function(){var n=[];return O(r,function(t,e){n.push(e)}),n},t.hasSubTypes=function(t){t=Eo(t),t=r[t.main];return t&&t[Oo]}}function Wo(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={},r=0;r<a.length;r++){var o=a[r][1];e&&0<=k(e,o)||n&&k(n,o)<0||null!=(o=t.getShallow(o,s))&&(i[a[r][0]]=o)}return i}}var Go=Wo([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Uo=(Xo.prototype.getAreaStyle=function(t,e){return Go(this,t,e)},Xo);function Xo(){}var qo=new ei(50);function Yo(t,e,n,i,r){return t?"string"==typeof t?(e&&e.__zrImageSrc===t||!n||(n={hostEl:n,cb:i,cbPayload:r},(i=qo.get(t))?jo(e=i.image)||i.pending.push(n):((e=W.loadImage(t,Zo,Zo)).__zrImageSrc=t,qo.put(t,e.__cachedImgObj={image:e,pending:[n]}))),e):t:e}function Zo(){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 jo(t){return t&&t.width&&t.height}var Ko=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function $o(t,e,n,i,r){if(!e)return"";var o=(t+"").split("\n");r=Qo(e,n,i,r);for(var a=0,s=o.length;a<s;a++)o[a]=Jo(o[a],r);return o.join("\n")}function Qo(t,e,n,i){var r=L({},i=i||{}),o=(r.font=e,n=E(n,"..."),r.maxIterations=E(i.maxIterations,2),r.minChar=E(i.minChar,0)),a=(r.cnCharWidth=_r("国",e),r.ascCharWidth=_r("a",e));r.placeholder=E(i.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<o&&a<=s;l++)s-=a;i=_r(n,e);return s<i&&(n="",i=0),s=t-i,r.ellipsis=n,r.ellipsisWidth=i,r.contentWidth=s,r.containerWidth=t,r}function Jo(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=_r(t,i);if(!(o<=n)){for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?function(t,e,n,i){for(var r=0,o=0,a=t.length;o<a&&r<e;o++){var s=t.charCodeAt(o);r+=0<=s&&s<=127?n:i}return o}(t,r,e.ascCharWidth,e.cnCharWidth):0<o?Math.floor(t.length*r/o):0,o=_r(t=t.substr(0,s),i)}""===t&&(t=e.placeholder)}return t}function ta(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}var ea=function(){},na=function(t){this.tokens=[],t&&(this.tokens=t)};function ia(t,e){var n=new ta;if(null!=t&&(t+=""),t){for(var i,r=e.width,o=e.height,a=e.overflow,s="break"!==a&&"breakAll"!==a||null==r?null:{width:r,accumWidth:0,breakAll:"breakAll"===a},l=Ko.lastIndex=0;null!=(i=Ko.exec(t));){var u=i.index;l<u&&ra(n,t.substring(l,u),e,s),ra(n,i[2],e,s,i[1]),l=Ko.lastIndex}l<t.length&&ra(n,t.substring(l,t.length),e,s);var h,c=[],p=0,d=0,f=e.padding,g="truncate"===a,y="truncate"===e.lineOverflow;t:for(var m=0;m<n.lines.length;m++){for(var v=n.lines[m],_=0,x=0,w=0;w<v.tokens.length;w++){var b=(D=v.tokens[w]).styleName&&e.rich[D.styleName]||{},S=D.textPadding=b.padding,M=S?S[1]+S[3]:0,T=D.font=b.font||e.font,C=(D.contentHeight=Mr(T),E(b.height,D.contentHeight));if(D.innerHeight=C,S&&(C+=S[0]+S[2]),D.height=C,D.lineHeight=Mt(b.lineHeight,e.lineHeight,C),D.align=b&&b.align||e.align,D.verticalAlign=b&&b.verticalAlign||"middle",y&&null!=o&&p+D.lineHeight>o){0<w?(v.tokens=v.tokens.slice(0,w),P(v,x,_),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break t}var k,S=b.width,I=null==S||"auto"===S;"string"==typeof S&&"%"===S.charAt(S.length-1)?(D.percentWidth=S,c.push(D),D.contentWidth=_r(D.text,T)):(I&&(S=(S=b.backgroundColor)&&S.image)&&(k=void 0,jo(S="string"==typeof(h=S)?(k=qo.get(h))&&k.image:h))&&(D.width=Math.max(D.width,S.width*C/S.height)),null!=(k=g&&null!=r?r-x:null)&&k<D.width?!I||k<M?(D.text="",D.width=D.contentWidth=0):(D.text=$o(D.text,k-M,T,e.ellipsis,{minChar:e.truncateMinChar}),D.width=D.contentWidth=_r(D.text,T)):D.contentWidth=_r(D.text,T)),D.width+=M,x+=D.width,b&&(_=Math.max(_,D.lineHeight))}P(v,x,_)}for(n.outerWidth=n.width=E(r,d),n.outerHeight=n.height=E(o,p),n.contentHeight=p,n.contentWidth=d,f&&(n.outerWidth+=f[1]+f[3],n.outerHeight+=f[0]+f[2]),m=0;m<c.length;m++){var D,A=(D=c[m]).percentWidth;D.width=parseInt(A,10)/100*n.width}}return n;function P(t,e,n){t.width=e,t.lineHeight=n,p+=n,d=Math.max(d,e)}}function ra(t,e,n,i,r){var o,a,s=""===e,l=r&&n.rich[r]||{},u=t.lines,h=l.font||n.font,c=!1;i?(n=(t=l.padding)?t[1]+t[3]:0,null!=l.width&&"auto"!==l.width?(t=Tr(l.width,i.width)+n,0<u.length&&t+i.accumWidth>i.width&&(o=e.split("\n"),c=!0),i.accumWidth=t):(t=aa(e,h,i.width,i.breakAll,i.accumWidth),i.accumWidth=t.accumWidth+n,a=t.linesWidths,o=t.lines)):o=e.split("\n");for(var p=0;p<o.length;p++){var d,f,g=o[p],y=new ea;y.styleName=r,y.text=g,y.isLineHolder=!g&&!s,"number"==typeof l.width?y.width=l.width:y.width=a?a[p]:_r(g,h),p||c?u.push(new na([y])):1===(f=(d=(u[u.length-1]||(u[0]=new na)).tokens).length)&&d[0].isLineHolder?d[0]=y:!g&&f&&!s||d.push(y)}}var oa=lt(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function aa(t,e,n,i,r){for(var o,a=[],s=[],l="",u="",h=0,c=0,p=0;p<t.length;p++){var d,f,g=t.charAt(p);"\n"!==g?(d=_r(g,e),f=!(i||(f=void 0,!(32<=(f=(f=o=g).charCodeAt(0))&&f<=591||880<=f&&f<=4351||4608<=f&&f<=5119||7680<=f&&f<=8303))||oa[o]),(a.length?n<c+d:n<r+c+d)?c?(l||u)&&(c=f?(l||(l=u,u="",c=h=0),a.push(l),s.push(c-h),u+=g,l="",h+=d):(u&&(l+=u,u="",h=0),a.push(l),s.push(c),l=g,d)):f?(a.push(u),s.push(h),u=g,h=d):(a.push(g),s.push(d)):(c+=d,f?(u+=g,h+=d):(u&&(l+=u,u="",h=0),l+=g))):(u&&(l+=u,c+=h),a.push(l),s.push(c),u=l="",c=h=0)}return a.length||l||(l=t,u="",h=0),u&&(l+=u),l&&(a.push(l),s.push(c)),1===a.length&&(c+=r),{accumWidth:c,lines:a,linesWidths:s}}var sa,la="__zr_style_"+Math.round(10*Math.random()),ua={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ha={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},ca=(ua[la]=!0,["z","z2","invisible"]),pa=["invisible"],i=(u(a,sa=i),a.prototype._init=function(t){for(var e=ct(t),n=0;n<e.length;n++){var i=e[n];"style"===i?this.useStyle(t[i]):sa.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},a.prototype.beforeBrush=function(){},a.prototype.afterBrush=function(){},a.prototype.innerBeforeBrush=function(){},a.prototype.innerAfterBrush=function(){},a.prototype.shouldBePainted=function(t,e,n,i){var r,o=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(r=this,t=t,e=e,da.copy(r.getBoundingRect()),r.transform&&da.applyTransform(r.transform),fa.width=t,fa.height=e,!da.intersect(fa))||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths)for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1;if(i&&this.parent)for(var s=this.parent;s;){if(s.ignore)return!1;s=s.parent}return!0},a.prototype.contain=function(t,e){return this.rectContain(t,e)},a.prototype.traverse=function(t,e){t.call(e,this)},a.prototype.rectContain=function(t,e){t=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(t[0],t[1])},a.prototype.getPaintRect=function(){var t,e,n,i,r,o=this._paintRect;return this._paintRect&&!this.__dirty||(r=this.transform,t=this.getBoundingRect(),e=(i=this.style).shadowBlur||0,n=i.shadowOffsetX||0,i=i.shadowOffsetY||0,o=this._paintRect||(this._paintRect=new B(0,0,0,0)),r?B.applyTransform(o,t,r):o.copy(t),(e||n||i)&&(o.width+=2*e+Math.abs(n),o.height+=2*e+Math.abs(i),o.x=Math.min(o.x,o.x+n-e),o.y=Math.min(o.y,o.y+i-e)),r=this.dirtyRectTolerance,o.isZero())||(o.x=Math.floor(o.x-r),o.y=Math.floor(o.y-r),o.width=Math.ceil(o.width+1+2*r),o.height=Math.ceil(o.height+1+2*r)),o},a.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new B(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},a.prototype.getPrevPaintRect=function(){return this._prevPaintRect},a.prototype.animateStyle=function(t){return this.animate("style",t)},a.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},a.prototype.attrKV=function(t,e){"style"!==t?sa.prototype.attrKV.call(this,t,e):this.style?this.setStyle(e):this.useStyle(e)},a.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:L(this.style,t),this.dirtyStyle(),this},a.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},a.prototype.dirty=function(){this.dirtyStyle()},a.prototype.styleChanged=function(){return!!(2&this.__dirty)},a.prototype.styleUpdated=function(){this.__dirty&=-3},a.prototype.createStyle=function(t){return zt(ua,t)},a.prototype.useStyle=function(t){t[la]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},a.prototype.isStyleObject=function(t){return t[la]},a.prototype._innerSaveToNormal=function(t){sa.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,ca)},a.prototype._applyStateObj=function(t,e,n,i,r,o){sa.prototype._applyStateObj.call(this,t,e,n,i,r,o);var a,s=!(e&&i);if(e&&e.style?r?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(r){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var u=ct(l),h=0;h<u.length;h++)(p=u[h])in a&&(a[p]=a[p],this.style[p]=l[p]);for(var c=ct(a),h=0;h<c.length;h++){var p=c[h];this.style[p]=this.style[p]}this._transitionState(t,{style:a},o,this.getAnimationStyleProps())}else this.useStyle(a);var d=this.__inHover?pa:ca;for(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])},a.prototype._mergeStates=function(t){for(var e,n=sa.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var r=t[i];r.style&&this._mergeStyle(e=e||{},r.style)}return e&&(n.style=e),n},a.prototype._mergeStyle=function(t,e){return L(t,e),t},a.prototype.getAnimationStyleProps=function(){return ha},a.initDefaultProps=((i=a.prototype).type="displayable",i.invisible=!1,i.z=0,i.z2=0,i.zlevel=0,i.culling=!1,i.cursor="pointer",i.rectHover=!1,i.incremental=!1,i._rect=null,i.dirtyRectTolerance=0,void(i.__dirty=2|vn)),a),da=new B(0,0,0,0),fa=new B(0,0,0,0);function a(t){return sa.call(this,t)||this}var ga=Math.min,ya=Math.max,ma=Math.sin,va=Math.cos,_a=2*Math.PI,xa=Ut(),wa=Ut(),ba=Ut();function Sa(t,e,n,i,r,o){r[0]=ga(t,n),r[1]=ga(e,i),o[0]=ya(t,n),o[1]=ya(e,i)}var Ma=[],Ta=[];var G={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ca=[],ka=[],Ia=[],Da=[],Aa=[],Pa=[],La=Math.min,Oa=Math.max,Ra=Math.cos,Ea=Math.sin,Na=Math.abs,Ba=Math.PI,za=2*Ba,Fa="undefined"!=typeof Float32Array,Va=[];function Ha(t){return Math.round(t/Ba*1e8)/1e8%2*Ba}s.prototype.increaseVersion=function(){this._version++},s.prototype.getVersion=function(){return this._version},s.prototype.setScale=function(t,e,n){0<(n=n||0)&&(this._ux=Na(n/ar/t)||0,this._uy=Na(n/ar/e)||0)},s.prototype.setDPR=function(t){this.dpr=t},s.prototype.setContext=function(t){this._ctx=t},s.prototype.getContext=function(){return this._ctx},s.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},s.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},s.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(G.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},s.prototype.lineTo=function(t,e){var n=Na(t-this._xi),i=Na(e-this._yi),r=n>this._ux||i>this._uy;return this.addData(G.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r?(this._xi=t,this._yi=e,this._pendingPtDist=0):(r=n*n+i*i)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=r),this},s.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(G.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},s.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(G.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},s.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),Va[0]=i,Va[1]=r,s=o,(l=Ha((a=Va)[0]))<0&&(l+=za),h=l-a[0],u=a[1],u+=h,!s&&za<=u-l?u=l+za:s&&za<=l-u?u=l-za:!s&&u<l?u=l+(za-Ha(l-u)):s&&l<u&&(u=l-(za-Ha(u-l))),a[0]=l,a[1]=u;var a,s,l,u,h=(r=Va[1])-(i=Va[0]);return this.addData(G.A,t,e,n,n,i,h,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=Ra(r)*n+t,this._yi=Ea(r)*n+e,this},s.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},s.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(G.R,t,e,n,i),this},s.prototype.closePath=function(){this._drawPendingPt(),this.addData(G.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},s.prototype.fill=function(t){t&&t.fill(),this.toStatic()},s.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},s.prototype.len=function(){return this._len},s.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Fa||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},s.prototype.appendPath=function(t){for(var e=(t=t instanceof Array?t:[t]).length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();for(Fa&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n)),r=0;r<e;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},s.prototype.addData=function(t,e,n,i,r,o,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]}},s.prototype._drawPendingPt=function(){0<this._pendingPtDist&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},s.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}},s.prototype.toStatic=function(){var t;this._saveData&&(this._drawPendingPt(),(t=this.data)instanceof Array)&&(t.length=this._len,Fa)&&11<this._len&&(this.data=new Float32Array(t))},s.prototype.getBoundingRect=function(){Ia[0]=Ia[1]=Aa[0]=Aa[1]=Number.MAX_VALUE,Da[0]=Da[1]=Pa[0]=Pa[1]=-Number.MAX_VALUE;for(var t,e,n,i=this.data,r=0,o=0,a=0,s=0,l=0;l<this._len;){var u=i[l++],h=1===l;switch(h&&(a=r=i[l],s=o=i[l+1]),u){case G.M:r=a=i[l++],o=s=i[l++],Aa[0]=a,Aa[1]=s,Pa[0]=a,Pa[1]=s;break;case G.L:Sa(r,o,i[l],i[l+1],Aa,Pa),r=i[l++],o=i[l++];break;case G.C:C=T=M=S=b=w=x=_=v=m=y=g=f=d=p=c=void 0;var c=r,p=o,d=i[l++],f=i[l++],g=i[l++],y=i[l++],m=i[l],v=i[l+1],_=Aa,x=Pa,w=Vn,b=Bn,S=w(c,d,g,m,Ma);_[0]=1/0,_[1]=1/0,x[0]=-1/0,x[1]=-1/0;for(var M=0;M<S;M++){var T=b(c,d,g,m,Ma[M]);_[0]=ga(T,_[0]),x[0]=ya(T,x[0])}for(S=w(p,f,y,v,Ta),M=0;M<S;M++){var C=b(p,f,y,v,Ta[M]);_[1]=ga(C,_[1]),x[1]=ya(C,x[1])}_[0]=ga(c,_[0]),x[0]=ya(c,x[0]),_[0]=ga(m,_[0]),x[0]=ya(m,x[0]),_[1]=ga(p,_[1]),x[1]=ya(p,x[1]),_[1]=ga(v,_[1]),x[1]=ya(v,x[1]),r=i[l++],o=i[l++];break;case G.Q:w=r,t=o,L=i[l++],I=i[l++],P=i[l],e=i[l+1],A=Aa,O=Pa,n=D=n=k=void 0,k=Gn,n=ya(ga((D=Xn)(w,L,P),1),0),D=ya(ga(D(t,I,e),1),0),L=k(w,L,P,n),n=k(t,I,e,D),A[0]=ga(w,P,L),A[1]=ga(t,e,n),O[0]=ya(w,P,L),O[1]=ya(t,e,n),r=i[l++],o=i[l++];break;case G.A:var k=i[l++],I=i[l++],D=i[l++],A=i[l++],P=i[l++],L=i[l++]+P,O=(l+=1,!i[l++]);h&&(a=Ra(P)*D+k,s=Ea(P)*A+I),function(t,e,n,i,r,o,a,s,l){var u=re,h=oe,c=Math.abs(r-o);if(c%_a<1e-4&&1e-4<c)return s[0]=t-n,s[1]=e-i,l[0]=t+n,l[1]=e+i;xa[0]=va(r)*n+t,xa[1]=ma(r)*i+e,wa[0]=va(o)*n+t,wa[1]=ma(o)*i+e,u(s,xa,wa),h(l,xa,wa),(r%=_a)<0&&(r+=_a),(o%=_a)<0&&(o+=_a),o<r&&!a?o+=_a:r<o&&a&&(r+=_a),a&&(c=o,o=r,r=c);for(var p=0;p<o;p+=Math.PI/2)r<p&&(ba[0]=va(p)*n+t,ba[1]=ma(p)*i+e,u(s,ba,s),h(l,ba,l))}(k,I,D,A,P,L,O,Aa,Pa),r=Ra(L)*D+k,o=Ea(L)*A+I;break;case G.R:Sa(a=r=i[l++],s=o=i[l++],a+i[l++],s+i[l++],Aa,Pa);break;case G.Z:r=a,o=s}re(Ia,Ia,Aa),oe(Da,Da,Pa)}return 0===l&&(Ia[0]=Ia[1]=Da[0]=Da[1]=0),new B(Ia[0],Ia[1],Da[0]-Ia[0],Da[1]-Ia[1])},s.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,h=0,c=0;c<e;){var p=t[c++],d=1===c,f=(d&&(a=r=t[c],s=o=t[c+1]),-1);switch(p){case G.M:r=a=t[c++],o=s=t[c++];break;case G.L:var g=t[c++],y=(_=t[c++])-o;(Na(k=g-r)>n||Na(y)>i||c===e-1)&&(f=Math.sqrt(k*k+y*y),r=g,o=_);break;case G.C:var m=t[c++],v=t[c++],_=(g=t[c++],t[c++]),x=t[c++],w=t[c++],f=function(t,e,n,i,r,o,a,s,l){for(var u=t,h=e,c=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=Bn(t,n,r,a,f),f=Bn(e,i,o,s,f),y=g-u,m=f-h;c+=Math.sqrt(y*y+m*m),u=g,h=f}return c}(r,o,m,v,g,_,x,w,10),r=x,o=w;break;case G.Q:f=function(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,h=1/a,c=1;c<=a;c++){var p=c*h,d=Gn(t,n,r,p),p=Gn(e,i,o,p),f=d-s,g=p-l;u+=Math.sqrt(f*f+g*g),s=d,l=p}return u}(r,o,m=t[c++],v=t[c++],g=t[c++],_=t[c++],10),r=g,o=_;break;case G.A:var x=t[c++],w=t[c++],b=t[c++],S=t[c++],M=t[c++],T=t[c++],C=T+M;c+=1,t[c++],d&&(a=Ra(M)*b+x,s=Ea(M)*S+w),f=Oa(b,S)*La(za,Math.abs(T)),r=Ra(C)*b+x,o=Ea(C)*S+w;break;case G.R:a=r=t[c++],s=o=t[c++],f=2*t[c++]+2*t[c++];break;case G.Z:var k=a-r,y=s-o;f=Math.sqrt(k*k+y*y),r=a,o=s}0<=f&&(u+=l[h++]=f)}return this._pathLen=u},s.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h=this.data,N=this._ux,B=this._uy,z=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<z;){var y,m=h[g++],F=1===g;switch(F&&(n=r=h[g],i=o=h[g+1]),m!==G.L&&0<f&&(t.lineTo(l,u),f=0),m){case G.M:n=r=h[g++],i=o=h[g++],t.moveTo(r,o);break;case G.L:var v=h[g++],_=h[g++],x=Na(v-r),w=Na(_-o);if(N<x||B<w){if(c){if(p+(y=a[d++])>s){var b=(s-p)/y;t.lineTo(r*(1-b)+v*b,o*(1-b)+_*b);break t}p+=y}t.lineTo(v,_),r=v,o=_,f=0}else{x=x*x+w*w;f<x&&(l=v,u=_,f=x)}break;case G.C:var S=h[g++],M=h[g++],T=h[g++],C=h[g++],w=h[g++],x=h[g++];if(c){if(p+(y=a[d++])>s){Hn(r,S,T,w,b=(s-p)/y,Ca),Hn(o,M,C,x,b,ka),t.bezierCurveTo(Ca[1],ka[1],Ca[2],ka[2],Ca[3],ka[3]);break t}p+=y}t.bezierCurveTo(S,M,T,C,w,x),r=w,o=x;break;case G.Q:if(S=h[g++],M=h[g++],T=h[g++],C=h[g++],c){if(p+(y=a[d++])>s){qn(r,S,T,b=(s-p)/y,Ca),qn(o,M,C,b,ka),t.quadraticCurveTo(Ca[1],ka[1],Ca[2],ka[2]);break t}p+=y}t.quadraticCurveTo(S,M,T,C),r=T,o=C;break;case G.A:var k=h[g++],I=h[g++],D=h[g++],A=h[g++],P=h[g++],L=h[g++],O=h[g++],V=!h[g++],H=A<D?D:A,R=.001<Na(D-A),E=P+L,W=!1;if(c&&(p+(y=a[d++])>s&&(E=P+L*(s-p)/y,W=!0),p+=y),R&&t.ellipse?t.ellipse(k,I,D,A,O,P,E,V):t.arc(k,I,H,P,E,V),W)break t;F&&(n=Ra(P)*D+k,i=Ea(P)*A+I),r=Ra(E)*D+k,o=Ea(E)*A+I;break;case G.R:n=r=h[g],i=o=h[g+1],v=h[g++],_=h[g++];L=h[g++],R=h[g++];if(c){if(p+(y=a[d++])>s){O=s-p;t.moveTo(v,_),t.lineTo(v+La(O,L),_),0<(O-=L)&&t.lineTo(v+L,_+La(O,R)),0<(O-=R)&&t.lineTo(v+Oa(L-O,0),_+R),0<(O-=L)&&t.lineTo(v,_+Oa(R-O,0));break t}p+=y}t.rect(v,_,L,R);break;case G.Z:if(c){if(p+(y=a[d++])>s){t.lineTo(r*(1-(b=(s-p)/y))+n*b,o*(1-b)+i*b);break t}p+=y}t.closePath(),r=n,o=i}}},s.prototype.clone=function(){var t=new s,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},s.CMD=G,s.initDefaultProps=((uu=s.prototype)._saveData=!0,uu._ux=0,uu._uy=0,uu._pendingPtDist=0,void(uu._version=0));var Wa=s;function s(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 Ga(t,e,n,i,r,o,a){var s;if(0!==r)return s=0,!(e+(r=r)<a&&i+r<a||a<e-r&&a<i-r||t+r<o&&n+r<o||o<t-r&&o<n-r)&&(t===n?Math.abs(o-t)<=r/2:(o=(s=(e-i)/(t-n))*o-a+(t*i-n*e)/(t-n))*o/(s*s+1)<=r/2*r/2)}var Ua=2*Math.PI;function Xa(t){return(t%=Ua)<0&&(t+=Ua),t}var qa=2*Math.PI;function Ya(t,e,n,i,r,o){return e<o&&i<o||o<e&&o<i||i===e?0:(n=(o=(o-e)/(i-e))*(n-t)+t)===r?1/0:r<n?1!=o&&0!=o?i<e?1:-1:i<e?.5:-.5:0}var Za=Wa.CMD,ja=2*Math.PI,Ka=1e-4;var $a=[-1,-1,-1],Qa=[-1,-1];function Ja(t,e,n,i,r,o,a,s,l,u){if(e<u&&i<u&&o<u&&s<u||u<e&&u<i&&u<o&&u<s)return 0;var h=Fn(e,i,o,s,u,$a);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=$a[y],v=0===m||1===m?.5:1;Bn(t,n,r,a,m)<l||(d<0&&(d=Vn(e,i,o,s,Qa),Qa[1]<Qa[0]&&1<d&&(c=void 0,c=Qa[0],Qa[0]=Qa[1],Qa[1]=c),f=Bn(e,i,o,s,Qa[0]),1<d)&&(g=Bn(e,i,o,s,Qa[1])),2===d?m<Qa[0]?p+=f<e?v:-v:m<Qa[1]?p+=g<f?v:-v:p+=s<g?v:-v:m<Qa[0]?p+=f<e?v:-v:p+=s<f?v:-v)}return p}function ts(t,e,n,i,r,o,a,s){if(e<s&&i<s&&o<s||s<e&&s<i&&s<o)return 0;c=$a,h=(l=e)-2*(u=i)+(h=o),u=2*(u-l),l-=s=s,s=0,En(h)?Nn(u)&&0<=(p=-l/u)&&p<=1&&(c[s++]=p):En(l=u*u-4*h*l)?0<=(p=-u/(2*h))&&p<=1&&(c[s++]=p):0<l&&(d=(-u-(l=In(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=Xn(e,i,o);if(0<=g&&g<=1){for(var y=0,m=Gn(e,i,o,g),v=0;v<f;v++){var _=0===$a[v]||1===$a[v]?.5:1;Gn(t,n,r,$a[v])<a||($a[v]<g?y+=m<e?_:-_:y+=o<m?_:-_)}return y}return _=0===$a[0]||1===$a[0]?.5:1,Gn(t,n,r,$a[0])<a?0:o<e?_:-_}function es(t,e,n,i,r){for(var o,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===Za.M&&1<d&&(n||(l+=Ya(u,h,c,p,i,r))),g&&(c=u=a[d],p=h=a[d+1]),f){case Za.M:u=c=a[d++],h=p=a[d++];break;case Za.L:if(n){if(Ga(u,h,a[d],a[d+1],e,i,r))return!0}else l+=Ya(u,h,a[d],a[d+1],i,r)||0;u=a[d++],h=a[d++];break;case Za.C:if(n){if(function(t,e,n,i,r,o,a,s,l,u,h){if(0!==l)return!(e+(l=l)<h&&i+l<h&&o+l<h&&s+l<h||h<e-l&&h<i-l&&h<o-l&&h<s-l||t+l<u&&n+l<u&&r+l<u&&a+l<u||u<t-l&&u<n-l&&u<r-l&&u<a-l)&&Wn(t,e,n,i,r,o,a,s,u,h,null)<=l/2}(u,h,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,i,r))return!0}else l+=Ja(u,h,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,r)||0;u=a[d++],h=a[d++];break;case Za.Q:if(n){if(function(t,e,n,i,r,o,a,s,l){if(0!==a)return!(e+(a=a)<l&&i+a<l&&o+a<l||l<e-a&&l<i-a&&l<o-a||t+a<s&&n+a<s&&r+a<s||s<t-a&&s<n-a&&s<r-a)&&Yn(t,e,n,i,r,o,s,l,null)<=a/2}(u,h,a[d++],a[d++],a[d],a[d+1],e,i,r))return!0}else l+=ts(u,h,a[d++],a[d++],a[d],a[d+1],i,r)||0;u=a[d++],h=a[d++];break;case Za.A:var y=a[d++],m=a[d++],v=a[d++],_=a[d++],x=a[d++],w=a[d++],b=(d+=1,!!(1-a[d++])),S=Math.cos(x)*v+y,M=Math.sin(x)*_+m,T=(g?(c=S,p=M):l+=Ya(u,h,S,M,i,r),(i-y)*_/v+y);if(n){if(function(t,e,n,i,r,o,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-r)%qa<1e-4||((r=o?(e=i,i=Xa(r),Xa(e)):(i=Xa(i),Xa(r)))<i&&(r+=qa),(t=Math.atan2(l,s))<0&&(t+=qa),i<=t&&t<=r)||i<=t+qa&&t+qa<=r)}(y,m,_,x,x+w,b,e,T,r))return!0}else l+=function(t,e,n,i,r,o,a,s){if((s-=e)>n||s<-n)return 0;var e=Math.sqrt(n*n-s*s);if($a[0]=-e,$a[1]=e,(n=Math.abs(i-r))<1e-4)return 0;if(ja-1e-4<=n)return r=ja,h=o?1:-1,a>=$a[i=0]+t&&a<=$a[1]+t?h:0;r<i&&(e=i,i=r,r=e),i<0&&(i+=ja,r+=ja);for(var l=0,u=0;u<2;u++){var h,c=$a[u];a<c+t&&(h=o?1:-1,i<=(c=(c=Math.atan2(s,c))<0?ja+c:c)&&c<=r||i<=c+ja&&c+ja<=r)&&(l+=h=c>Math.PI/2&&c<1.5*Math.PI?-h:h)}return l}(y,m,_,x,x+w,b,T,r);u=Math.cos(x+w)*v+y,h=Math.sin(x+w)*_+m;break;case Za.R:if(c=u=a[d++],p=h=a[d++],S=c+a[d++],M=p+a[d++],n){if(Ga(c,p,S,p,e,i,r)||Ga(S,p,S,M,e,i,r)||Ga(S,M,c,M,e,i,r)||Ga(c,M,c,p,e,i,r))return!0}else l=(l+=Ya(S,p,S,M,i,r))+Ya(c,M,c,p,i,r);break;case Za.Z:if(n){if(Ga(u,h,c,p,e,i,r))return!0}else l+=Ya(u,h,c,p,i,r);u=c,h=p}}return n||(t=h,o=p,Math.abs(t-o)<Ka)||(l+=Ya(u,h,c,p,i,r)||0),0!==l}var ns,is=z({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ua),rs={style:z({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ha.style)},os=mr.concat(["invisible","culling","z","z2","zlevel","parent"]),as=(u(l,ns=i),l.prototype.update=function(){var e=this,t=(ns.prototype.update.call(this),this.style);if(t.decal){var n,i=this._decalEl=this._decalEl||new l,r=(i.buildPath===l.prototype.buildPath&&(i.buildPath=function(t){e.buildPath(t,e.shape)}),i.silent=!0,i.style);for(n in t)r[n]!==t[n]&&(r[n]=t[n]);r.fill=t.fill?t.decal:null,r.decal=null,r.shadowColor=null,t.strokeFirst&&(r.stroke=null);for(var o=0;o<os.length;++o)i[os[o]]=this[os[o]];i.__dirty|=vn}else this._decalEl&&(this._decalEl=null)},l.prototype.getDecalElement=function(){return this._decalEl},l.prototype._init=function(t){var e=ct(t),n=(this.shape=this.getDefaultShape(),this.getDefaultStyle());n&&this.useStyle(n);for(var i=0;i<e.length;i++){var r=e[i],o=t[r];"style"===r?this.style?L(this.style,o):this.useStyle(o):"shape"===r?L(this.shape,o):ns.prototype.attrKV.call(this,r,o)}this.style||this.useStyle({})},l.prototype.getDefaultStyle=function(){return null},l.prototype.getDefaultShape=function(){return{}},l.prototype.canBeInsideText=function(){return this.hasFill()},l.prototype.getInsideTextFill=function(){var t,e=this.style.fill;if("none"!==e){if(H(e))return.5<(t=wi(e,0))?sr:.2<t?"#eee":lr;if(e)return lr}return sr},l.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(H(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==wi(t,0)<.4)return e}},l.prototype.buildPath=function(t,e,n){},l.prototype.pathUpdated=function(){this.__dirty&=~_n},l.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},l.prototype.createPathProxy=function(){this.path=new Wa(!1)},l.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))},l.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},l.prototype.getBoundingRect=function(){var t,e,n=this._rect,i=this.style,r=!n;return r&&(t=!1,this.path||(t=!0,this.createPathProxy()),e=this.path,(t||this.__dirty&_n)&&(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||r)&&(t.copy(n),e=i.strokeNoScale?this.getLineScale():1,r=i.lineWidth,this.hasFill()||(i=this.strokeContainThreshold,r=Math.max(r,null==i?4:i)),1e-10<e)&&(t.width+=r/e,t.height+=r/e,t.x-=r/e/2,t.y-=r/e/2),t):n},l.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){n=this.path;if(this.hasStroke()){i=r.lineWidth,r=r.strokeNoScale?this.getLineScale():1;if(1e-10<r&&(this.hasFill()||(i=Math.max(i,this.strokeContainThreshold)),es(n,i/r,!0,t,e)))return!0}if(this.hasFill())return es(n,0,!1,t,e)}return!1},l.prototype.dirtyShape=function(){this.__dirty|=_n,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},l.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},l.prototype.animateShape=function(t){return this.animate("shape",t)},l.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},l.prototype.attrKV=function(t,e){"shape"===t?this.setShape(e):ns.prototype.attrKV.call(this,t,e)},l.prototype.setShape=function(t,e){var n=(n=this.shape)||(this.shape={});return"string"==typeof t?n[t]=e:L(n,t),this.dirtyShape(),this},l.prototype.shapeChanged=function(){return!!(this.__dirty&_n)},l.prototype.createStyle=function(t){return zt(is,t)},l.prototype._innerSaveToNormal=function(t){ns.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.shape&&!e.shape&&(e.shape=L({},this.shape))},l.prototype._applyStateObj=function(t,e,n,i,r,o){ns.prototype._applyStateObj.call(this,t,e,n,i,r,o);var a,s=!(e&&i);if(e&&e.shape?r?i?a=e.shape:(a=L({},n.shape),L(a,e.shape)):(a=L({},(i?this:n).shape),L(a,e.shape)):s&&(a=n.shape),a)if(r){this.shape=L({},this.shape);for(var l={},u=ct(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},o)}else this.shape=a,this.dirtyShape()},l.prototype._mergeStates=function(t){for(var e,n=ns.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var r=t[i];r.shape&&this._mergeStyle(e=e||{},r.shape)}return e&&(n.shape=e),n},l.prototype.getAnimationStyleProps=function(){return rs},l.prototype.isZeroArea=function(){return!1},l.extend=function(n){u(r,i=l),r.prototype.getDefaultStyle=function(){return S(n.style)},r.prototype.getDefaultShape=function(){return S(n.shape)};var i,t,e=r;function r(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},l.initDefaultProps=((uu=l.prototype).type="path",uu.strokeContainThreshold=5,uu.segmentIgnoreThreshold=0,uu.subPixelOptimize=!1,uu.autoBatch=!1,void(uu.__dirty=2|vn|_n)),l);function l(t){return ns.call(this,t)||this}var ss,ls=z({strokeFirst:!0,font:j,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},is),us=(u(hs,ss=i),hs.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&0<t.lineWidth},hs.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},hs.prototype.createStyle=function(t){return zt(ls,t)},hs.prototype.setBoundingRect=function(t){this._rect=t},hs.prototype.getBoundingRect=function(){var t,e=this.style;return this._rect||(null!=(t=e.text)?t+="":t="",(t=wr(t,e.font,e.textAlign,e.textBaseline)).x+=e.x||0,t.y+=e.y||0,this.hasStroke()&&(e=e.lineWidth,t.x-=e/2,t.y-=e/2,t.width+=e,t.height+=e),this._rect=t),this._rect},hs.initDefaultProps=void(hs.prototype.dirtyRectTolerance=10),hs);function hs(){return null!==ss&&ss.apply(this,arguments)||this}us.prototype.type="tspan";var cs=z({x:0,y:0},ua),ps={style:z({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ha.style)};u(gs,ds=i),gs.prototype.createStyle=function(t){return zt(cs,t)},gs.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},gs.prototype.getWidth=function(){return this._getSize("width")},gs.prototype.getHeight=function(){return this._getSize("height")},gs.prototype.getAnimationStyleProps=function(){return ps},gs.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new B(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect};var ds,fs=gs;function gs(){return null!==ds&&ds.apply(this,arguments)||this}fs.prototype.type="image";var ys=Math.round;function ms(t,e,n){var i,r,o;if(e)return i=e.x1,r=e.x2,o=e.y1,e=e.y2,t.x1=i,t.x2=r,t.y1=o,t.y2=e,(n=n&&n.lineWidth)&&(ys(2*i)===ys(2*r)&&(t.x1=t.x2=_s(i,n,!0)),ys(2*o)===ys(2*e))&&(t.y1=t.y2=_s(o,n,!0)),t}function vs(t,e,n){var i,r,o;if(e)return i=e.x,r=e.y,o=e.width,e=e.height,t.x=i,t.y=r,t.width=o,t.height=e,(n=n&&n.lineWidth)&&(t.x=_s(i,n,!0),t.y=_s(r,n,!0),t.width=Math.max(_s(i+o,n,!1)-t.x,0===o?0:1),t.height=Math.max(_s(r+e,n,!1)-t.y,0===e?0:1)),t}function _s(t,e,n){var i;return e?((i=ys(2*t))+ys(e))%2==0?i/2:(i+(n?1:-1))/2:t}function xs(){this.x=0,this.y=0,this.width=0,this.height=0}var ws,bs={},Ss=(u(Ms,ws=as),Ms.prototype.getDefaultShape=function(){return new xs},Ms.prototype.buildPath=function(t,e){var n,i,r,o,a,s,l,u,h,c,p,d,f,g;this.subPixelOptimize?(n=(a=vs(bs,e,this.style)).x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a):(n=e.x,i=e.y,r=e.width,o=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,r,o)},Ms.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},Ms);function Ms(t){return ws.call(this,t)||this}Ss.prototype.type="rect";var Ts,Cs={fill:"#000"},ks={style:z({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},ha.style)},Is=(u(Ls,Ts=i),Ls.prototype.childrenRef=function(){return this._children},Ls.prototype.update=function(){Ts.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}},Ls.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):Ts.prototype.updateTransform.call(this)},Ls.prototype.getLocalTransform=function(t){var e=this.innerTransformable;return e?e.getLocalTransform(t):Ts.prototype.getLocalTransform.call(this,t)},Ls.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),Ts.prototype.getComputedTransform.call(this)},Ls.prototype._updateSubTexts=function(){var t;this._childCursor=0,Rs(t=this.style),O(t.rich,Rs),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},Ls.prototype.addSelfToZr=function(t){Ts.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=t},Ls.prototype.removeSelfFromZr=function(t){Ts.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=null},Ls.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new B(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),o=o.getLocalTransform(n);o?(t.copy(a),t.applyTransform(o),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},Ls.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Cs},Ls.prototype.setTextContent=function(t){},Ls.prototype._mergeStyle=function(t,e){var n,i;return e&&(n=e.rich,i=t.rich||n&&{},L(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i)),t},Ls.prototype._mergeRich=function(t,e){for(var n=ct(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},L(t[r],e[r])}},Ls.prototype.getAnimationStyleProps=function(){return ks},Ls.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},Ls.prototype._updatePlainTexts=function(){var t,e=this.style,n=e.font||j,i=e.padding,r=function(t,e){null!=t&&(t+="");var n,i=e.overflow,r=e.padding,o=e.font,a="truncate"===i,s=Mr(o),l=E(e.lineHeight,s),u=!!e.backgroundColor,h="truncate"===e.lineOverflow,c=e.width,i=(n=null==c||"break"!==i&&"breakAll"!==i?t?t.split("\n"):[]:t?aa(t,e.font,c,"breakAll"===i,0).lines:[]).length*l,p=E(e.height,i);if(p<i&&h&&(h=Math.floor(p/l),n=n.slice(0,h)),t&&a&&null!=c)for(var d=Qo(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),f=0;f<n.length;f++)n[f]=Jo(n[f],d);for(var h=p,g=0,f=0;f<n.length;f++)g=Math.max(_r(n[f],o),g);return null==c&&(c=g),t=g,r&&(h+=r[0]+r[2],t+=r[1]+r[3],c+=r[1]+r[3]),{lines:n,height:p,outerWidth:t=u?c:t,outerHeight:h,lineHeight:l,calculatedLineHeight:s,contentWidth:g,contentHeight:i,width:c}}(zs(e),e),o=Fs(e),a=!!e.backgroundColor,s=r.outerHeight,l=r.outerWidth,u=r.contentWidth,h=r.lines,c=r.lineHeight,p=this._defaultStyle,d=e.x||0,f=e.y||0,g=e.align||p.align||"left",y=e.verticalAlign||p.verticalAlign||"top",m=d,v=Sr(f,r.contentHeight,y);(o||i)&&(t=br(d,l,g),f=Sr(f,s,y),o)&&this._renderBackground(e,e,t,f,l,s),v+=c/2,i&&(m=Bs(d,g,i),"top"===y?v+=i[0]:"bottom"===y&&(v-=i[2]));for(var _=0,o=!1,x=(Ns(("fill"in e?e:(o=!0,p)).fill)),w=(Es("stroke"in e?e.stroke:a||p.autoStroke&&!o?null:(_=2,p.stroke))),b=0<e.textShadowBlur,S=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),M=r.calculatedLineHeight,T=0;T<h.length;T++){var C=this._getOrCreateChild(us),k=C.createStyle();C.useStyle(k),k.text=h[T],k.x=m,k.y=v,g&&(k.textAlign=g),k.textBaseline="middle",k.opacity=e.opacity,k.strokeFirst=!0,b&&(k.shadowBlur=e.textShadowBlur||0,k.shadowColor=e.textShadowColor||"transparent",k.shadowOffsetX=e.textShadowOffsetX||0,k.shadowOffsetY=e.textShadowOffsetY||0),k.stroke=w,k.fill=x,w&&(k.lineWidth=e.lineWidth||_,k.lineDash=e.lineDash,k.lineDashOffset=e.lineDashOffset||0),k.font=n,Os(k,e),v+=c,S&&C.setBoundingRect(new B(br(k.x,e.width,k.textAlign),Sr(k.y,M,k.textBaseline),u,M))}},Ls.prototype._updateRichTexts=function(){var t=this.style,e=ia(zs(t),t),n=e.width,i=e.outerWidth,r=e.outerHeight,o=t.padding,a=t.x||0,s=t.y||0,l=this._defaultStyle,u=t.align||l.align,l=t.verticalAlign||l.verticalAlign,a=br(a,i,u),u=Sr(s,r,l),h=a,c=u,p=(o&&(h+=o[3],c+=o[0]),h+n);Fs(t)&&this._renderBackground(t,t,a,u,i,r);for(var d=!!t.backgroundColor,f=0;f<e.lines.length;f++){for(var g=e.lines[f],y=g.tokens,m=y.length,v=g.lineHeight,_=g.width,x=0,w=h,b=p,S=m-1,M=void 0;x<m&&(!(M=y[x]).align||"left"===M.align);)this._placeToken(M,t,v,c,w,"left",d),_-=M.width,w+=M.width,x++;for(;0<=S&&"right"===(M=y[S]).align;)this._placeToken(M,t,v,c,b,"right",d),_-=M.width,b-=M.width,S--;for(w+=(n-(w-h)-(p-b)-_)/2;x<=S;)M=y[x],this._placeToken(M,t,v,c,w+M.width/2,"center",d),w+=M.width,x++;c+=v}},Ls.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{},l=(s.text=t.text,t.verticalAlign),u=i+n/2,l=("top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&Fs(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height),!!s.backgroundColor),i=t.textPadding,n=(i&&(r=Bs(r,o,i),u-=t.height/2-i[0]-t.innerHeight/2),this._getOrCreateChild(us)),i=n.createStyle(),h=(n.useStyle(i),this._defaultStyle),c=!1,p=0,d=Ns(("fill"in s?s:"fill"in e?e:(c=!0,h)).fill),l=Es("stroke"in s?s.stroke:"stroke"in e?e.stroke:l||a||h.autoStroke&&!c?null:(p=2,h.stroke)),a=0<s.textShadowBlur||0<e.textShadowBlur,c=(i.text=t.text,i.x=r,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=o,i.textBaseline="middle",i.font=t.font||j,i.opacity=Mt(s.opacity,e.opacity,1),Os(i,s),l&&(i.lineWidth=Mt(s.lineWidth,e.lineWidth,p),i.lineDash=E(s.lineDash,e.lineDash),i.lineDashOffset=e.lineDashOffset||0,i.stroke=l),d&&(i.fill=d),t.contentWidth),h=t.contentHeight;n.setBoundingRect(new B(br(i.x,c,i.textAlign),Sr(i.y,h,i.textBaseline),c,h))},Ls.prototype._renderBackground=function(t,e,n,i,r,o){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(Ss)).useStyle(a.createStyle()),a.style.fill=null,(u=a.shape).x=n,u.y=i,u.width=r,u.height=o,u.r=g,a.dirtyShape()),f?((l=a.style).fill=h||null,l.fillOpacity=E(t.fillOpacity,1)):d&&((s=this._getOrCreateChild(fs)).onload=function(){y.dirtyStyle()},(u=s.style).image=h.image,u.x=n,u.y=i,u.width=r,u.height=o),c&&p&&((l=a.style).lineWidth=c,l.stroke=p,l.strokeOpacity=E(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill())&&a.hasStroke()&&(l.strokeFirst=!0,l.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=Mt(t.opacity,e.opacity,1)},Ls.makeFont=function(t){var e,n="";return(n=null!=(e=t).fontSize||e.fontFamily||e.fontWeight?[t.fontStyle,t.fontWeight,"string"!=typeof(e=t.fontSize)||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?"12px":e+"px":e,t.fontFamily||"sans-serif"].join(" "):n)&&It(n)||t.textFont||t.font},Ls),Ds={left:!0,right:1,center:1},As={top:1,bottom:1,middle:1},Ps=["fontStyle","fontWeight","fontSize","fontFamily"];function Ls(t){var e=Ts.call(this)||this;return e.type="text",e._children=[],e._defaultStyle=Cs,e.attr(t),e}function Os(t,e){for(var n=0;n<Ps.length;n++){var i=Ps[n],r=e[i];null!=r&&(t[i]=r)}}function Rs(t){var e;t&&(t.font=Is.makeFont(t),e=t.align,t.align=null==(e="middle"===e?"center":e)||Ds[e]?e:"left",e=t.verticalAlign,t.verticalAlign=null==(e="center"===e?"middle":e)||As[e]?e:"top",t.padding)&&(t.padding=Ct(t.padding))}function Es(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Ns(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Bs(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function zs(t){t=t.text;return null!=t&&(t+=""),t}function Fs(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Vs=To(),Hs=1,Ws={},Gs=To(),Us=To(),Xs=0,qs=1,Ys=2,Zs=["emphasis","blur","select"],js=["normal","emphasis","blur","select"],Ks="highlight",$s="downplay",Qs="select",Js="unselect",tl="toggleSelect";function el(t){return null!=t&&"none"!==t}var nl=new ei(100);function il(t){var e;return H(t)?((e=nl.get(t))||(e=mi(t,-.1),nl.put(t,e)),e):_t(t)?((e=L({},t)).colorStops=F(t.colorStops,function(t){return{offset:t.offset,color:mi(t.color,-.1)}}),e):t}function rl(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function ol(t){rl(t,"emphasis",Ys)}function al(t){t.hoverState===Ys&&rl(t,"normal",Xs)}function sl(t){rl(t,"blur",qs)}function ll(t){t.hoverState===qs&&rl(t,"normal",Xs)}function ul(t){t.selected=!0}function hl(t){t.selected=!1}function cl(t,e,n){e(t,n)}function pl(t,e,n){cl(t,e,n),t.isGroup&&t.traverse(function(t){cl(t,e,n)})}function dl(t,e,n){var i=0<=k(t.currentStates,e),r=t.style.opacity,t=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[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(o,e)}return o}(t,["opacity"],e,{opacity:1}),e=(n=n||{}).style||{};return null==e.opacity&&(n=L({},n),e=L({opacity:i?r:.1*t.opacity},e),n.style=e),n}function fl(t,e){var n,i,r,o,a,s=this.states[t];if(this.style){if("emphasis"===t)return n=this,i=s,e=(e=e)&&0<=k(e,"select"),a=!1,n instanceof as&&(r=Gs(n),o=e&&r.selectFill||r.normalFill,e=e&&r.selectStroke||r.normalStroke,el(o)||el(e))&&("inherit"===(r=(i=i||{}).style||{}).fill?(a=!0,i=L({},i),(r=L({},r)).fill=o):!el(r.fill)&&el(o)?(a=!0,i=L({},i),(r=L({},r)).fill=il(o)):!el(r.stroke)&&el(e)&&(a||(i=L({},i),r=L({},r)),r.stroke=il(e)),i.style=r),i&&null==i.z2&&(a||(i=L({},i)),o=n.z2EmphasisLift,i.z2=n.z2+(null!=o?o:10)),i;if("blur"===t)return dl(this,t,s);if("select"===t)return e=this,(r=s)&&null==r.z2&&(r=L({},r),a=e.z2SelectLift,r.z2=e.z2+(null!=a?a:9)),r}return s}function gl(t){t.stateProxy=fl;var e=t.getTextContent(),t=t.getTextGuideLine();e&&(e.stateProxy=fl),t&&(t.stateProxy=fl)}function yl(t,e){Sl(t,e)||t.__highByOuter||pl(t,ol)}function ml(t,e){Sl(t,e)||t.__highByOuter||pl(t,al)}function vl(t,e){t.__highByOuter|=1<<(e||0),pl(t,ol)}function _l(t,e){(t.__highByOuter&=~(1<<(e||0)))||pl(t,al)}function xl(t){pl(t,ll)}function wl(t){pl(t,ul)}function bl(t){pl(t,hl)}function Sl(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Ml(r){var e=r.getModel(),o=[],a=[];e.eachComponent(function(t,e){var n=Us(e),t="series"===t,i=t?r.getViewOfSeriesModel(e):r.getViewOfComponentModel(e);t||a.push(i),n.isBlured&&(i.group.traverse(function(t){ll(t)}),t)&&o.push(e),n.isBlured=!1}),O(a,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(o,!1,e)})}function Tl(t,o,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&&xl(i)}}a=a||"coordinateSystem",null!=t&&o&&"none"!==o&&(l=n.getSeriesByIndex(t),(u=l.coordinateSystem)&&u.master&&(u=u.master),h=[],n.eachSeries(function(t){var e=l===t,n=t.coordinateSystem;if(n&&n.master&&(n=n.master),!("series"===a&&!e||"coordinateSystem"===a&&!(n&&u?n===u:e)||"series"===o&&e)){if(s.getViewOfSeriesModel(t).group.traverse(function(t){t.__highByOuter&&e&&"self"===o||sl(t)}),st(o))c(t.getData(),o);else if(R(o))for(var i=ct(o),r=0;r<i.length;r++)c(t.getData(i[r]),o[i[r]]);h.push(t),Us(t).isBlured=!0}}),n.eachComponent(function(t,e){"series"!==t&&(t=s.getViewOfComponentModel(e))&&t.toggleBlurSeries&&t.toggleBlurSeries(h,!0,n)}))}function Cl(t,e,n){null!=t&&null!=e&&(t=n.getModel().getComponent(t,e))&&(Us(t).isBlured=!0,e=n.getViewOfComponentModel(t))&&e.focusBlurEnabled&&e.group.traverse(function(t){sl(t)})}function kl(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;t=i.getModel().getComponent(t,e);if(!t)return r;e=i.getViewOfComponentModel(t);if(!e||!e.findHighDownDispatchers)return r;for(var o,a=e.findHighDownDispatchers(n),s=0;s<a.length;s++)if("self"===Vs(a[s]).focus){o=!0;break}return{focusSelf:o,dispatchers:a}}function Il(i){O(i.getAllData(),function(t){var e=t.data,n=t.type;e.eachItemGraphicEl(function(t,e){(i.isSelected(e,n)?wl:bl)(t)})})}function Dl(t,e,n){Rl(t,!0),pl(t,gl);t=Vs(t),null!=e?(t.focus=e,t.blurScope=n):t.focus&&(t.focus=null)}function Al(t,e,n,i){i?Rl(t,!1):Dl(t,e,n)}var Pl=["emphasis","blur","select"],Ll={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ol(t,e,n,i){n=n||"itemStyle";for(var r=0;r<Pl.length;r++){var o=Pl[r],a=e.getModel([o,n]);t.ensureState(o).style=i?i(a):a[Ll[n]]()}}function Rl(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 El(t){return!(!t||!t.__highDownDispatcher)}function Nl(t){t=t.type;return t===Qs||t===Js||t===tl}function Bl(t){t=t.type;return t===Ks||t===$s}var zl=Wa.CMD,Fl=[[],[],[]],Vl=Math.sqrt,Hl=Math.atan2;var Wl=Math.sqrt,Gl=Math.sin,Ul=Math.cos,Xl=Math.PI;function ql(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Yl(t,e){return(t[0]*e[0]+t[1]*e[1])/(ql(t)*ql(e))}function Zl(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Yl(t,e))}function jl(t,e,n,i,r,o,a,s,l,u,h){var l=l*(Xl/180),c=Ul(l)*(t-n)/2+Gl(l)*(e-i)/2,p=-1*Gl(l)*(t-n)/2+Ul(l)*(e-i)/2,d=c*c/(a*a)+p*p/(s*s),d=(1<d&&(a*=Wl(d),s*=Wl(d)),(r===o?-1:1)*Wl((a*a*(s*s)-a*a*(p*p)-s*s*(c*c))/(a*a*(p*p)+s*s*(c*c)))||0),r=d*a*p/s,d=d*-s*c/a,t=(t+n)/2+Ul(l)*r-Gl(l)*d,n=(e+i)/2+Gl(l)*r+Ul(l)*d,e=Zl([1,0],[(c-r)/a,(p-d)/s]),i=[(c-r)/a,(p-d)/s],c=[(-1*c-r)/a,(-1*p-d)/s],r=Zl(i,c);Yl(i,c)<=-1&&(r=Xl),(r=1<=Yl(i,c)?0:r)<0&&(p=Math.round(r/Xl*1e6)/1e6,r=2*Xl+p%2*Xl),h.addData(u,t,n,a,s,e,r,l,o)}var Kl=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,$l=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;u(tu,Ql=as),tu.prototype.applyTransform=function(t){};var Ql,Jl=tu;function tu(){return null!==Ql&&Ql.apply(this,arguments)||this}function eu(t){return null!=t.setData}function nu(t,e){var S=function(t){var e=new Wa;if(t){var n,i=0,r=0,o=i,a=r,s=Wa.CMD,l=t.match(Kl);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($l)||[],f=d.length,g=0;g<f;g++)d[g]=parseFloat(d[g]);for(var y=0;y<f;){var m=void 0,v=void 0,_=void 0,x=void 0,w=void 0,b=void 0,S=void 0,M=i,T=r,C=void 0,k=void 0;switch(c){case"l":i+=d[y++],r+=d[y++],p=s.L,e.addData(p,i,r);break;case"L":i=d[y++],r=d[y++],p=s.L,e.addData(p,i,r);break;case"m":i+=d[y++],r+=d[y++],p=s.M,e.addData(p,i,r),o=i,a=r,c="l";break;case"M":i=d[y++],r=d[y++],p=s.M,e.addData(p,i,r),o=i,a=r,c="L";break;case"h":i+=d[y++],p=s.L,e.addData(p,i,r);break;case"H":i=d[y++],p=s.L,e.addData(p,i,r);break;case"v":r+=d[y++],p=s.L,e.addData(p,i,r);break;case"V":r=d[y++],p=s.L,e.addData(p,i,r);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],r=d[y-1];break;case"c":p=s.C,e.addData(p,d[y++]+i,d[y++]+r,d[y++]+i,d[y++]+r,d[y++]+i,d[y++]+r),i+=d[y-2],r+=d[y-1];break;case"S":m=i,v=r,C=e.len(),k=e.data,n===s.C&&(m+=i-k[C-4],v+=r-k[C-3]),p=s.C,M=d[y++],T=d[y++],i=d[y++],r=d[y++],e.addData(p,m,v,M,T,i,r);break;case"s":m=i,v=r,C=e.len(),k=e.data,n===s.C&&(m+=i-k[C-4],v+=r-k[C-3]),p=s.C,M=i+d[y++],T=r+d[y++],i+=d[y++],r+=d[y++],e.addData(p,m,v,M,T,i,r);break;case"Q":M=d[y++],T=d[y++],i=d[y++],r=d[y++],p=s.Q,e.addData(p,M,T,i,r);break;case"q":M=d[y++]+i,T=d[y++]+r,i+=d[y++],r+=d[y++],p=s.Q,e.addData(p,M,T,i,r);break;case"T":m=i,v=r,C=e.len(),k=e.data,n===s.Q&&(m+=i-k[C-4],v+=r-k[C-3]),i=d[y++],r=d[y++],p=s.Q,e.addData(p,m,v,i,r);break;case"t":m=i,v=r,C=e.len(),k=e.data,n===s.Q&&(m+=i-k[C-4],v+=r-k[C-3]),i+=d[y++],r+=d[y++],p=s.Q,e.addData(p,m,v,i,r);break;case"A":_=d[y++],x=d[y++],w=d[y++],b=d[y++],S=d[y++],jl(M=i,T=r,i=d[y++],r=d[y++],b,S,_,x,w,p=s.A,e);break;case"a":_=d[y++],x=d[y++],w=d[y++],b=d[y++],S=d[y++],jl(M=i,T=r,i+=d[y++],r+=d[y++],b,S,_,x,w,p=s.A,e)}}"z"!==c&&"Z"!==c||(p=s.Z,e.addData(p),i=o,r=a),n=p}e.toStatic()}}return e}(t),t=L({},e);return t.buildPath=function(t){var e;eu(t)?(t.setData(S.data),(e=t.getContext())&&t.rebuildPath(e,1)):S.rebuildPath(e=t,1)},t.applyTransform=function(t){var e=S,n=t;if(n){for(var i,r,o,a,s=e.data,l=e.len(),u=zl.M,h=zl.C,c=zl.L,p=zl.R,d=zl.A,f=zl.Q,g=0,y=0;g<l;){switch(i=s[g++],y=g,r=0,i){case u:case c:r=1;break;case h:r=3;break;case f:r=2;break;case d:var m=n[4],v=n[5],_=Vl(n[0]*n[0]+n[1]*n[1]),x=Vl(n[2]*n[2]+n[3]*n[3]),w=Hl(-n[1]/x,n[0]/_);s[g]*=_,s[g++]+=m,s[g]*=x,s[g++]+=v,s[g++]*=_,s[g++]*=x,s[g++]+=w,s[g++]+=w,y=g+=2;break;case p:a[0]=s[g++],a[1]=s[g++],ie(a,a,n),s[y++]=a[0],s[y++]=a[1],a[0]+=s[g++],a[1]+=s[g++],ie(a,a,n),s[y++]=a[0],s[y++]=a[1]}for(o=0;o<r;o++){var b=Fl[o];b[0]=s[g++],b[1]=s[g++],ie(b,b,n),s[y++]=b[0],s[y++]=b[1]}}e.increaseVersion()}this.dirtyShape()},t}function iu(){this.cx=0,this.cy=0,this.r=0}u(au,ru=as),au.prototype.getDefaultShape=function(){return new iu},au.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)};var ru,ou=au;function au(t){return ru.call(this,t)||this}ou.prototype.type="circle";function su(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}u(hu,lu=as),hu.prototype.getDefaultShape=function(){return new su},hu.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=e.rx,e=e.ry,o=.5522848*r,a=.5522848*e;t.moveTo(n-r,i),t.bezierCurveTo(n-r,i-a,n-o,i-e,n,i-e),t.bezierCurveTo(n+o,i-e,n+r,i-a,n+r,i),t.bezierCurveTo(n+r,i+a,n+o,i+e,n,i+e),t.bezierCurveTo(n-o,i+e,n-r,i+a,n-r,i),t.closePath()};var lu,uu=hu;function hu(t){return lu.call(this,t)||this}uu.prototype.type="ellipse";var cu=Math.PI,pu=2*cu,du=Math.sin,fu=Math.cos,gu=Math.acos,yu=Math.atan2,mu=Math.abs,vu=Math.sqrt,_u=Math.max,xu=Math.min,wu=1e-4;function bu(t,e,n,i,r,o,a){var s=t-n,l=e-i,a=(a?o:-o)/vu(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,o=r-o,s=s*n-e*t,n=(c<0?-1:1)*vu(_u(0,o*o*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*(r/o-1),y1:t*(r/o-1)}}function Su(t,e){var n,i,r,o,a,s,l,u,h,c,p,d,f,g,y,m,v,_,x,w,b,S,M,T,C,k,I,D,A,P,L=_u(e.r,0),O=_u(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,r=e.cy,o=!!e.clockwise,w=mu(n-R),wu<(a=pu<w&&w%pu)&&(w=a),wu<L?pu-wu<w?(t.moveTo(i+L*fu(R),r+L*du(R)),t.arc(i,r,L,R,n,!o),wu<O&&(t.moveTo(i+O*fu(n),r+O*du(n)),t.arc(i,r,O,n,R,o))):(g=f=d=p=S=b=c=h=k=C=T=M=u=l=s=a=void 0,y=L*fu(R),m=L*du(R),v=O*fu(n),_=O*du(n),(x=wu<w)&&((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=mu(L-O)/2,M=xu(e,l),T=xu(e,u),C=xu(e,a),k=xu(e,s),b=h=_u(M,T),S=c=_u(C,k),wu<h||wu<c)&&(p=L*fu(n),d=L*du(n),f=O*fu(R),g=O*du(R),w<cu)&&((e=function(t,e,n,i,r,o,a,s){var l=(s=s-o)*(n=n-t)-(a=a-r)*(i=i-e);if(!(l*l<wu))return[t+(l=(a*(e-o)-s*(t-r))/l)*n,e+l*i]}(y,m,f,g,p,d,v,_))&&(M=y-e[0],T=m-e[1],C=p-e[0],k=d-e[1],w=1/du(gu((M*C+T*k)/(vu(M*M+T*T)*vu(C*C+k*k)))/2),M=vu(e[0]*e[0]+e[1]*e[1]),b=xu(h,(L-M)/(1+w)),S=xu(c,(O-M)/(w-1)))),x?wu<b?(I=xu(l,b),D=xu(u,b),A=bu(f,g,y,m,L,I,o),P=bu(p,d,v,_,L,D,o),t.moveTo(i+A.cx+A.x0,r+A.cy+A.y0),b<h&&I===D?t.arc(i+A.cx,r+A.cy,b,yu(A.y0,A.x0),yu(P.y0,P.x0),!o):(0<I&&t.arc(i+A.cx,r+A.cy,I,yu(A.y0,A.x0),yu(A.y1,A.x1),!o),t.arc(i,r,L,yu(A.cy+A.y1,A.cx+A.x1),yu(P.cy+P.y1,P.cx+P.x1),!o),0<D&&t.arc(i+P.cx,r+P.cy,D,yu(P.y1,P.x1),yu(P.y0,P.x0),!o))):(t.moveTo(i+y,r+m),t.arc(i,r,L,R,n,!o)):t.moveTo(i+y,r+m),wu<O&&x?wu<S?(I=xu(a,S),A=bu(v,_,p,d,O,-(D=xu(s,S)),o),P=bu(y,m,f,g,O,-I,o),t.lineTo(i+A.cx+A.x0,r+A.cy+A.y0),S<c&&I===D?t.arc(i+A.cx,r+A.cy,S,yu(A.y0,A.x0),yu(P.y0,P.x0),!o):(0<D&&t.arc(i+A.cx,r+A.cy,D,yu(A.y0,A.x0),yu(A.y1,A.x1),!o),t.arc(i,r,O,yu(A.cy+A.y1,A.cx+A.x1),yu(P.cy+P.y1,P.cx+P.x1),o),0<I&&t.arc(i+P.cx,r+P.cy,I,yu(P.y1,P.x1),yu(P.y0,P.x0),!o))):(t.lineTo(i+v,r+_),t.arc(i,r,O,n,R,o)):t.lineTo(i+v,r+_)):t.moveTo(i,r),t.closePath()))}function Mu(){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}u(ku,Tu=as),ku.prototype.getDefaultShape=function(){return new Mu},ku.prototype.buildPath=function(t,e){Su(t,e)},ku.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0};var Tu,Cu=ku;function ku(t){return Tu.call(this,t)||this}Cu.prototype.type="sector";function Iu(){this.cx=0,this.cy=0,this.r=0,this.r0=0}u(Pu,Du=as),Pu.prototype.getDefaultShape=function(){return new Iu},Pu.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)};var Du,Au=Pu;function Pu(t){return Du.call(this,t)||this}function Lu(t,e,n){var i=e.smooth,r=e.points;if(r&&2<=r.length){if(i){var o=function(t,e,n,i){var r,o,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++)re(h,h,t[p]),oe(c,c,t[p]);re(h,h,i[0]),oe(c,c,i[1])}for(p=0,d=t.length;p<d;p++){var f=t[p];if(n)r=t[p?p-1:d-1],o=t[(p+1)%d];else{if(0===p||p===d-1){a.push(Xt(t[p]));continue}r=t[p-1],o=t[p+1]}Yt(s,o,r),Kt(s,s,e);var g=Qt(f,r),y=Qt(f,o),m=g+y,m=(0!==m&&(g/=m,y/=m),Kt(l,s,-g),Kt(u,s,y),qt([],f,l)),g=qt([],f,u);i&&(oe(m,m,h),re(m,m,c),oe(g,g,h),re(g,g,c)),a.push(m),a.push(g)}return n&&a.push(a.shift()),a}(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],h=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{t.moveTo(r[0][0],r[0][1]);for(var s=1,c=r.length;s<c;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}Au.prototype.type="ring";function Ou(){this.points=null,this.smooth=0,this.smoothConstraint=null}u(Nu,Ru=as),Nu.prototype.getDefaultShape=function(){return new Ou},Nu.prototype.buildPath=function(t,e){Lu(t,e,!0)};var Ru,Eu=Nu;function Nu(t){return Ru.call(this,t)||this}Eu.prototype.type="polygon";function Bu(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}u(Vu,zu=as),Vu.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Vu.prototype.getDefaultShape=function(){return new Bu},Vu.prototype.buildPath=function(t,e){Lu(t,e,!1)};var zu,Fu=Vu;function Vu(t){return zu.call(this,t)||this}Fu.prototype.type="polyline";function Hu(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}var Wu,Gu={},Uu=(u(Xu,Wu=as),Xu.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Xu.prototype.getDefaultShape=function(){return new Hu},Xu.prototype.buildPath=function(t,e){o=(this.subPixelOptimize?(n=(o=ms(Gu,e,this.style)).x1,i=o.y1,r=o.x2,o):(n=e.x1,i=e.y1,r=e.x2,e)).y2;var n,i,r,o,e=e.percent;0!==e&&(t.moveTo(n,i),e<1&&(r=n*(1-e)+r*e,o=i*(1-e)+o*e),t.lineTo(r,o))},Xu.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},Xu);function Xu(t){return Wu.call(this,t)||this}Uu.prototype.type="line";function qu(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}var Yu=[];function Zu(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?zn:Bn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?zn:Bn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?Un:Gn)(t.x1,t.cpx1,t.x2,e),(n?Un:Gn)(t.y1,t.cpy1,t.y2,e)]}u($u,ju=as),$u.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},$u.prototype.getDefaultShape=function(){return new qu},$u.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=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&&(qn(n,a,r,e,Yu),a=Yu[1],r=Yu[2],qn(i,s,o,e,Yu),s=Yu[1],o=Yu[2]),t.quadraticCurveTo(a,s,r,o)):(e<1&&(Hn(n,a,l,r,e,Yu),a=Yu[1],l=Yu[2],r=Yu[3],Hn(i,s,u,o,e,Yu),s=Yu[1],u=Yu[2],o=Yu[3]),t.bezierCurveTo(a,s,l,u,r,o)))},$u.prototype.pointAt=function(t){return Zu(this.shape,t,!1)},$u.prototype.tangentAt=function(t){t=Zu(this.shape,t,!0);return $t(t,t)};var ju,Ku=$u;function $u(t){return ju.call(this,t)||this}Ku.prototype.type="bezier-curve";function Qu(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}u(eh,Ju=as),eh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},eh.prototype.getDefaultShape=function(){return new Qu},eh.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,e=e.clockwise,s=Math.cos(o),l=Math.sin(o);t.moveTo(s*r+n,l*r+i),t.arc(n,i,r,o,a,!e)};var Ju,th=eh;function eh(t){return Ju.call(this,t)||this}th.prototype.type="arc";u(rh,nh=as),rh.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()},rh.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)},rh.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},rh.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},rh.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),as.prototype.getBoundingRect.call(this)};var nh,ih=rh;function rh(){var t=null!==nh&&nh.apply(this,arguments)||this;return t.type="compound",t}ah.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})};var oh=ah;function ah(t){this.colorStops=t||[]}u(uh,sh=oh);var sh,lh=uh;function uh(t,e,n,i,r,o){r=sh.call(this,r)||this;return r.x=null==t?0:t,r.y=null==e?0:e,r.x2=null==n?1:n,r.y2=null==i?0:i,r.type="linear",r.global=o||!1,r}u(ch,hh=oh);var hh,oh=ch;function ch(t,e,n,i,r){i=hh.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=r||!1,i}var ph=[0,0],dh=[0,0],fh=new T,gh=new T,yh=(mh.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,t=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,t),n[3].set(r,t),e)for(var s=0;s<4;s++)n[s].transform(e);for(T.sub(i[0],n[1],n[0]),T.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize(),s=0;s<2;s++)this._origin[s]=i[s].dot(n[0])},mh.prototype.intersect=function(t,e){var n=!0,i=!e;return fh.set(1/0,1/0),gh.set(0,0),!this._intersectCheckOneSide(this,t,fh,gh,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,fh,gh,i,-1)&&(n=!1,i)||i||T.copy(e,n?fh:gh),n},mh.prototype._intersectCheckOneSide=function(t,e,n,i,r,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,ph),this._getProjMinMaxOnAxis(s,e._corners,dh),ph[1]<dh[0]||dh[1]<ph[0]){if(a=!1,r)return a;var u=Math.abs(dh[0]-ph[1]),h=Math.abs(ph[0]-dh[1]);Math.min(u,h)>i.len()&&(u<h?T.scale(i,l,-u*o):T.scale(i,l,h*o))}else n&&(u=Math.abs(dh[0]-ph[1]),h=Math.abs(ph[0]-dh[1]),Math.min(u,h)<n.len())&&(u<h?T.scale(n,l,u*o):T.scale(n,l,-h*o))}return a},mh.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l<e.length;l++)var u=e[l].dot(i)+r[t],a=Math.min(u,a),s=Math.max(u,s);n[0]=a,n[1]=s},mh);function mh(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new T;for(n=0;n<2;n++)this._axes[n]=new T;t&&this.fromBoundingRect(t,e)}var vh,_h=[],i=(u(xh,vh=i),xh.prototype.traverse=function(t,e){t.call(e,this)},xh.prototype.useStyle=function(){this.style={}},xh.prototype.getCursor=function(){return this._cursor},xh.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},xh.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},xh.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},xh.prototype.addDisplayable=function(t,e){(e?this._temporaryDisplayables:this._displayables).push(t),this.markRedraw()},xh.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},xh.prototype.getDisplayables=function(){return this._displayables},xh.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},xh.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])},xh.prototype.update=function(){this.updateTransform();for(var t,e=this._cursor;e<this._displayables.length;e++)(t=this._displayables[e]).parent=this,t.update(),t.parent=null;for(e=0;e<this._temporaryDisplayables.length;e++)(t=this._temporaryDisplayables[e]).parent=this,t.update(),t.parent=null},xh.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new B(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(_h)),t.union(i)}this._rect=t}return this._rect},xh.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},xh);function xh(){var t=null!==vh&&vh.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}var wh=To();function bh(t,e,n,i,r,o,a){var s,l,u,h,c,p,d=!1,f=(M(r)?(a=o,o=r,r=null):R(r)&&(o=r.cb,a=r.during,d=r.isFrom,l=r.removeOpt,r=r.dataIndex),"leave"===t),g=(f||e.stopAnimation("leave"),p=t,s=r,l=f?l||{}:null,i=(g=i)&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null,g&&g.ecModel&&(u=(u=g.ecModel.getUpdatePayload())&&u.animation),p="update"===p,g&&g.isAnimationEnabled()?(c=h=r=void 0,c=l?(r=E(l.duration,200),h=E(l.easing,"cubicOut"),0):(r=g.getShallow(p?"animationDurationUpdate":"animationDuration"),h=g.getShallow(p?"animationEasingUpdate":"animationEasing"),g.getShallow(p?"animationDelayUpdate":"animationDelay")),M(c=u&&(null!=u.duration&&(r=u.duration),null!=u.easing&&(h=u.easing),null!=u.delay)?u.delay:c)&&(c=c(s,i)),{duration:(r=M(r)?r(s):r)||0,delay:c,easing:h}):null);g&&0<g.duration?(p={duration:g.duration,delay:g.delay||0,easing:g.easing,done:o,force:!!o||!!a,setToFinal:!f,scope:t,during:a},d?e.animateFrom(n,p):e.animateTo(n,p)):(e.stopAnimation(),d||e.attr(n),a&&a(1),o&&o())}function Sh(t,e,n,i,r,o){bh("update",t,e,n,i,r,o)}function Mh(t,e,n,i,r,o){bh("enter",t,e,n,i,r,o)}function Th(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 Ch(t,e,n,i,r,o){Th(t)||bh("leave",t,e,n,i,r,o)}function kh(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),Ch(t,{style:{opacity:0}},e,n,i)}function Ih(t){wh(t).oldStyle=t.style}var Dh=Math.max,Ah=Math.min,Ph={};function Lh(t){return as.extend(t)}var Oh=function(t,e){var n,i=nu(t,e);return u(r,n=Jl),r;function r(t){t=n.call(this,t)||this;return t.applyTransform=i.applyTransform,t.buildPath=i.buildPath,t}};function Rh(t,e){return Oh(t,e)}function Eh(t,e){Ph[t]=e}function Nh(t){if(Ph.hasOwnProperty(t))return Ph[t]}function Bh(t,e,n,i){t=new Jl(nu(t,e));return n&&("center"===i&&(n=Fh(n,t.getBoundingRect())),Hh(t,n)),t}function zh(t,e,n){var i=new fs({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(Fh(e,t)))}});return i}function Fh(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}}var Vh=function(t,e){for(var n=[],i=t.length,r=0;r<i;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}return(e=new as(e)).createPathProxy(),e.buildPath=function(t){var e;eu(t)&&(t.appendPath(n),e=t.getContext())&&t.rebuildPath(e,1)},e};function Hh(t,e){t.applyTransform&&(e=t.getBoundingRect().calculateTransform(e),t.applyTransform(e))}function Wh(t,e){return ms(t,t,{lineWidth:e}),t}var Gh=_s;function Uh(t,e){for(var n=Re([]);t&&t!==e;)Ne(n,t.getLocalTransform(),n),t=t.parent;return n}function Xh(t,e,n){return e&&!st(e)&&(e=gr.getLocalTransform(e)),ie([],t,e=n?Ve([],e):e)}function qh(t){return!t.isGroup}function Yh(t,e,i){var n,r;function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=L({},t.shape)),e}t&&e&&(n={},t.traverse(function(t){qh(t)&&t.anid&&(n[t.anid]=t)}),r=n,e.traverse(function(t){var e,n;qh(t)&&t.anid&&(e=r[t.anid])&&(n=o(t),t.attr(o(e)),Sh(t,n,i,Vs(t).dataIndex))}))}function Zh(t,n){return F(t,function(t){var e=t[0],e=Dh(e,n.x),t=(e=Ah(e,n.x+n.width),t[1]),t=Dh(t,n.y);return[e,Ah(t,n.y+n.height)]})}function jh(t,e){var n=Dh(t.x,e.x),i=Ah(t.x+t.width,e.x+e.width),r=Dh(t.y,e.y),t=Ah(t.y+t.height,e.y+e.height);if(n<=i&&r<=t)return{x:n,y:r,width:i-n,height:t-r}}function Kh(t,e,n){var e=L({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),z(i,n),new fs(e)):Bh(t.replace("path://",""),e,n,"center")}function $h(t,e,n,i,r,o,a,s){var l,n=n-t,i=i-e,a=a-r,s=s-o,u=a*i-n*s;return!((l=u)<=1e-6&&-1e-6<=l||(r=((l=t-r)*i-n*(t=e-o))/u)<0||1<r||(i=(l*s-a*t)/u)<0||1<i)}function Qh(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,e=H(e)?{formatter:e}:e,r=n.mainType,n=n.componentIndex,o={componentType:r,name:i,$vars:["name"]},a=(o[r+"Index"]=n,t.formatterParamsExtra),t=(a&&O(ct(a),function(t){Vt(o,t)||(o[t]=a[t],o.$vars.push(t))}),Vs(t.el));t.componentMainType=r,t.componentIndex=n,t.tooltipConfig={name:i,option:z({content:i,formatterParams:o},e)}}function Jh(t,e){var n;(n=t.isGroup?e(t):n)||t.traverse(e)}function tc(t,e){if(t)if(V(t))for(var n=0;n<t.length;n++)Jh(t[n],e);else Jh(t,e)}Eh("circle",ou),Eh("ellipse",uu),Eh("sector",Cu),Eh("ring",Au),Eh("polygon",Eu),Eh("polyline",Fu),Eh("rect",Ss),Eh("line",Uu),Eh("bezierCurve",Ku),Eh("arc",th);var ec=Object.freeze({__proto__:null,Arc:th,BezierCurve:Ku,BoundingRect:B,Circle:ou,CompoundPath:ih,Ellipse:uu,Group:Fr,Image:fs,IncrementalDisplayable:i,Line:Uu,LinearGradient:lh,OrientedBoundingRect:yh,Path:as,Point:T,Polygon:Eu,Polyline:Fu,RadialGradient:oh,Rect:Ss,Ring:Au,Sector:Cu,Text:Is,applyTransform:Xh,clipPointsByRect:Zh,clipRectByRect:jh,createIcon:Kh,extendPath:Rh,extendShape:Lh,getShapeClass:Nh,getTransform:Uh,groupTransition:Yh,initProps:Mh,isElementRemoved:Th,lineLineIntersect:$h,linePolygonIntersect:function(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if($h(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}},makeImage:zh,makePath:Bh,mergePath:Vh,registerShape:Eh,removeElement:Ch,removeElementWithFadeOut:function(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||kh(t,e,n,i)}):kh(t,e,n,i)},resizePath:Hh,setTooltipConfig:Qh,subPixelOptimize:Gh,subPixelOptimizeLine:Wh,subPixelOptimizeRect:function(t){return vs(t.shape,t.shape,t.style),t},transformDirection:function(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),i=Xh(["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0],e,n);return Math.abs(i[0])>Math.abs(i[1])?0<i[0]?"right":"left":0<i[1]?"bottom":"top"},traverseElements:tc,updateProps:Sh}),nc={};function ic(t,e){for(var n=0;n<Zs.length;n++){var i=Zs[n],r=e[i],i=t.ensureState(i);i.style=i.style||{},i.style.text=r}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function rc(t,e,n){for(var i,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal,l={normal:i=null==(i=r?r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null):i)?M(t.defaultText)?t.defaultText(o,t,n):t.defaultText:i},u=0;u<Zs.length;u++){var h=Zs[u],c=e[h];l[h]=E(r?r.getFormattedLabel(o,h,null,a,c&&c.get("formatter")):null,i)}return l}function oc(t,e,n,i,r){var o,a={},s=a,l=t,u=n,h=i,c=r;u=u||nc;var p,t=l.ecModel,d=t&&t.option.textStyle,f=function(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||nc).rich;if(n){e=e||{};for(var i=ct(n),r=0;r<i.length;r++)e[i[r]]=1}t=t.parentModel}return e}(l);if(f)for(var g in p={},f)f.hasOwnProperty(g)&&(o=l.getModel(["rich",g]),hc(p[g]={},o,d,u,h,c,!1,!0));return p&&(s.rich=p),(t=l.get("overflow"))&&(s.overflow=t),null!=(t=l.get("minMargin"))&&(s.margin=t),hc(s,l,d,u,h,c,!0,!1),e&&L(a,e),a}function ac(t,e,n){e=e||{};var i={},r=t.getShallow("rotate"),o=E(t.getShallow("distance"),n?null:5),a=t.getShallow("offset");return null!=(n="outside"===(n=t.getShallow("position")||(n?null:"inside"))?e.defaultOutsidePosition||"top":n)&&(i.position=n),null!=a&&(i.offset=a),null!=r&&(r*=Math.PI/180,i.rotation=r),null!=o&&(i.distance=o),i.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",i}var sc=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],lc=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],uc=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function hc(t,e,n,i,r,o,a,s){n=!r&&n||nc;var l=i&&i.inheritColor,u=e.getShallow("color"),h=e.getShallow("textBorderColor"),c=E(e.getShallow("opacity"),n.opacity),u=("inherit"!==u&&"auto"!==u||(u=l||null),"inherit"!==h&&"auto"!==h||(h=l||null),o||(u=u||n.color,h=h||n.textBorderColor),null!=u&&(t.fill=u),null!=h&&(t.stroke=h),E(e.getShallow("textBorderWidth"),n.textBorderWidth)),h=(null!=u&&(t.lineWidth=u),E(e.getShallow("textBorderType"),n.textBorderType)),u=(null!=h&&(t.lineDash=h),E(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset));null!=u&&(t.lineDashOffset=u),null!=(c=r||null!=c||s?c:i&&i.defaultOpacity)&&(t.opacity=c),r||o||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var p=0;p<sc.length;p++){var d=sc[p];null!=(f=E(e.getShallow(d),n[d]))&&(t[d]=f)}for(p=0;p<lc.length;p++)d=lc[p],null!=(f=e.getShallow(d))&&(t[d]=f);if(null==t.verticalAlign&&null!=(h=e.getShallow("baseline"))&&(t.verticalAlign=h),!a||!i.disableBox){for(p=0;p<uc.length;p++){var f,d=uc[p];null!=(f=e.getShallow(d))&&(t[d]=f)}u=e.getShallow("borderType");null!=u&&(t.borderDash=u),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}var cc=To();function pc(n,i,r,t,o){var a,s,l,u=cc(n);u.valueAnimation&&u.prevValue!==u.value&&(a=u.defaultInterpolatedText,s=E(u.interpolatedValue,u.prevValue),l=u.value,n.percent=0,(null==u.prevValue?Mh:Sh)(n,{percent:1},t,i,null,function(t){var e=function(t,e,n,i,r){var o=null==e||"auto"===e;if(null==i)return i;if(gt(i))return jr(p=uo(n||0,i,r),o?Math.max(Kr(n||0),Kr(i)):e);if(H(i))return r<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]=(r<1&&s?s:l)[h]:(p=uo(d=s&&s[h]?s[h]:0,c=l[h],r),a[h]=jr(p,o?Math.max(Kr(d),Kr(c)):e))}return a}(r,u.precision,s,l,t),t=(u.interpolatedValue=1===t?null:e,rc({labelDataIndex:i,labelFetcher:o,defaultText:a?a(e):e+""},u.statesModels,e));ic(n,t)}))}var dc=["textStyle","color"],fc=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],gc=new Is,Gh=(yc.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(dc):null)},yc.prototype.getFont=function(){return t={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},e=(e=this.ecModel)&&e.getModel("textStyle"),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 t,e},yc.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<fc.length;n++)e[fc[n]]=this.getShallow(fc[n]);return gc.useStyle(e),gc.update(),gc.getBoundingRect()},yc);function yc(){}var mc=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],vc=Wo(mc),_c=(xc.prototype.getLineStyle=function(t){return vc(this,t)},xc);function xc(){}var wc=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],bc=Wo(wc),Sc=(Mc.prototype.getItemStyle=function(t,e){return bc(this,t,e)},Mc);function Mc(){}kc.prototype.init=function(t,e,n){for(var i=3;i<arguments.length;i++)i-3,0},kc.prototype.mergeOption=function(t,e){d(this.option,t,!0)},kc.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},kc.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},kc.prototype.getModel=function(t,e){var n=null!=t,t=n?this.parsePath(t):null;return new kc(n?this._doGet(t):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(t)),this.ecModel)},kc.prototype.isEmpty=function(){return null==this.option},kc.prototype.restoreData=function(){},kc.prototype.clone=function(){return new this.constructor(S(this.option))},kc.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},kc.prototype.resolveParentPath=function(t){return t},kc.prototype.isAnimationEnabled=function(){if(!b.node&&this.option)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0},kc.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 Tc,Cc=kc;function kc(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}No(Cc),Wc=Cc,Tc=["__\0is_clz",zo++].join("_"),Wc.prototype[Tc]=!0,Wc.isInstance=function(t){return!(!t||!t[Tc])},at(Cc,_c),at(Cc,Sc),at(Cc,Uo),at(Cc,Gh);var Ic=Math.round(10*Math.random());function Dc(t){return[t||"",Ic++].join("_")}var Ac="ZH",Pc="EN",Lc=Pc,Oc={},Rc={},Ec=b.domSupported&&-1<(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(Ac)?Ac:Lc;function Nc(t,e){t=t.toUpperCase(),Rc[t]=new Cc(e),Oc[t]=e}Nc(Pc,{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"}},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:". "}}}}),Nc(Ac,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var Bc=1e3,zc=60*Bc,Fc=60*zc,Vc=24*Fc,zo=365*Vc,Hc={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Wc="{yyyy}-{MM}-{dd}",Gc={year:"{yyyy}",month:"{yyyy}-{MM}",day:Wc,hour:Wc+" "+Hc.hour,minute:Wc+" "+Hc.minute,second:Wc+" "+Hc.second,millisecond:Hc.none},Uc=["year","month","day","hour","minute","second","millisecond"],Xc=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function qc(t,e){return"0000".substr(0,e-(t+="").length)+t}function Yc(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 Zc(t,e,n,i){var t=no(t),r=t[$c(n)](),o=t[Qc(n)]()+1,a=Math.floor((o-1)/3)+1,s=t[Jc(n)](),l=t["get"+(n?"UTC":"")+"Day"](),u=t[tp(n)](),h=(u-1)%12+1,c=t[ep(n)](),p=t[np(n)](),t=t[ip(n)](),n=(i instanceof Cc?i:Rc[i||Ec]||Rc[Lc]).getModel("time"),i=n.get("month"),d=n.get("monthAbbr"),f=n.get("dayOfWeek"),n=n.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,r+"").replace(/{yy}/g,qc(r%100+"",2)).replace(/{Q}/g,a+"").replace(/{MMMM}/g,i[o-1]).replace(/{MMM}/g,d[o-1]).replace(/{MM}/g,qc(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,qc(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,f[l]).replace(/{ee}/g,n[l]).replace(/{e}/g,l+"").replace(/{HH}/g,qc(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,qc(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,qc(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,qc(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,qc(t,3)).replace(/{S}/g,t+"")}function jc(t,e){var t=no(t),n=t[Qc(e)]()+1,i=t[Jc(e)](),r=t[tp(e)](),o=t[ep(e)](),a=t[np(e)](),t=0===t[ip(e)](),e=t&&0===a,a=e&&0===o,o=a&&0===r,r=o&&1===i;return r&&1===n?"year":r?"month":o?"day":a?"hour":e?"minute":t?"second":"millisecond"}function Kc(t,e,n){var i=gt(t)?no(t):t;switch(e=e||jc(t,n)){case"year":return i[$c(n)]();case"half-year":return 6<=i[Qc(n)]()?1:0;case"quarter":return Math.floor((i[Qc(n)]()+1)/4);case"month":return i[Qc(n)]();case"day":return i[Jc(n)]();case"half-day":return i[tp(n)]()/24;case"hour":return i[tp(n)]();case"minute":return i[ep(n)]();case"second":return i[np(n)]();case"millisecond":return i[ip(n)]()}}function $c(t){return t?"getUTCFullYear":"getFullYear"}function Qc(t){return t?"getUTCMonth":"getMonth"}function Jc(t){return t?"getUTCDate":"getDate"}function tp(t){return t?"getUTCHours":"getHours"}function ep(t){return t?"getUTCMinutes":"getMinutes"}function np(t){return t?"getUTCSeconds":"getSeconds"}function ip(t){return t?"getUTCMilliseconds":"getMilliseconds"}function rp(t){return t?"setUTCMonth":"setMonth"}function op(t){return t?"setUTCDate":"setDate"}function ap(t){return t?"setUTCHours":"setHours"}function sp(t){return t?"setUTCMinutes":"setMinutes"}function lp(t){return t?"setUTCSeconds":"setSeconds"}function up(t){return t?"setUTCMilliseconds":"setMilliseconds"}function hp(t){var e;return so(t)?(e=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1<e.length?"."+e[1]:""):H(t)?t:"-"}function cp(t,e){return"{"+t+(null==e?"":e)+"}"}var pp=Ct,dp=["a","b","c","d","e","f","g"];function fp(t,e,n){var i=(e=V(e)?e:[e]).length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=dp[o];t=t.replace(cp(a),cp(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(cp(dp[l],s),n?xe(u):u)}return t}function gp(t,e){var n;"_blank"===e||"blank"===e?((n=window.open()).opener=null,n.location.href=t):window.open(t,e)}var yp=O,mp=["left","right","top","bottom","width","height"],vp=[["width","left","right"],["height","top","bottom"]];function _p(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,r,o=t.getBoundingRect(),e=s.childAt(e+1),e=e&&e.getBoundingRect();d="horizontal"===a?(r=o.width+(e?-e.x+o.x:0),(n=c+r)>u||t.newline?(c=0,n=r,p+=d+l,o.height):Math.max(d,o.height)):(r=o.height+(e?-e.y+o.y:0),(i=p+r)>h||t.newline?(c+=d+l,p=0,i=r,o.width):Math.max(d,o.width)),t.newline||(t.x=c,t.y=p,t.markRedraw(),"horizontal"===a?c=n+l:p=i+l)})}function xp(t,e,n){n=pp(n||0);var i=e.width,r=e.height,o=f(t.left,i),a=f(t.top,r),e=f(t.right,i),s=f(t.bottom,r),l=f(t.width,i),u=f(t.height,r),h=n[2]+n[0],c=n[1]+n[3],p=t.aspect;switch(isNaN(l)&&(l=i-e-c-o),isNaN(u)&&(u=r-s-h-a),null!=p&&(isNaN(l)&&isNaN(u)&&(i/r<p?l=.8*i:u=.8*r),isNaN(l)&&(l=p*u),isNaN(u))&&(u=l/p),isNaN(o)&&(o=i-e-l-c),isNaN(a)&&(a=r-s-u-h),t.left||t.right){case"center":o=i/2-l/2-n[3];break;case"right":o=i-l-c}switch(t.top||t.bottom){case"middle":case"center":a=r/2-u/2-n[0];break;case"bottom":a=r-u-h}o=o||0,a=a||0,isNaN(l)&&(l=i-c-o-(e||0)),isNaN(u)&&(u=r-h-a-(s||0));p=new B(o+n[3],a+n[0],l,u);return p.margin=n,p}function wp(t){t=t.layoutMode||t.constructor.layoutMode;return R(t)?t:t?{type:t}:null}function bp(l,u,t){var h=t&&t.ignoreSize,t=(V(h)||(h=[h,h]),n(vp[0],0)),e=n(vp[1],1);function n(t,e){var n={},i=0,r={},o=0;if(yp(t,function(t){r[t]=l[t]}),yp(t,function(t){c(u,t)&&(n[t]=r[t]=u[t]),p(n,t)&&i++,p(r,t)&&o++}),h[e])p(u,t[1])?r[t[2]]=null:p(u,t[2])&&(r[t[1]]=null);else if(2!==o&&i){if(!(2<=i))for(var a=0;a<t.length;a++){var s=t[a];if(!c(n,s)&&c(l,s)){n[s]=l[s];break}}return n}return r}function c(t,e){return t.hasOwnProperty(e)}function p(t,e){return null!=t[e]&&"auto"!==t[e]}function i(t,e,n){yp(t,function(t){e[t]=n[t]})}i(vp[0],l,t),i(vp[1],l,e)}function Sp(t){return e={},(n=t)&&e&&yp(mp,function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e;var e,n}dt(_p,"vertical"),dt(_p,"horizontal");var Mp,Tp,Cp,kp,Ip=To(),y=(u(Dp,Mp=Cc),Dp.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},Dp.prototype.mergeDefaultAndTheme=function(t,e){var n=wp(this),i=n?Sp(t):{};d(t,e.getTheme().get(this.mainType)),d(t,this.getDefaultOption()),n&&bp(t,i,n)},Dp.prototype.mergeOption=function(t,e){d(this.option,t,!0);var n=wp(this);n&&bp(this.option,t,n)},Dp.prototype.optionUpdated=function(t,e){},Dp.prototype.getDefaultOption=function(){var t=this.constructor;if(!(e=t)||!e[Ro])return t.defaultOption;var e=Ip(this);if(!e.defaultOption){for(var n=[],i=t;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;0<=a;a--)o=d(o,n[a],!0);e.defaultOption=o}return e.defaultOption},Dp.prototype.getReferringComponents=function(t,e){var n=t+"Id";return Ao(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(n,!0)},e)},Dp.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},Dp.prototype.getZLevelKey=function(){return""},Dp.prototype.setZLevel=function(t){this.option.zlevel=t},Dp.protoInitialize=((_c=Dp.prototype).type="component",_c.id="",_c.name="",_c.mainType="",_c.subType="",void(_c.componentIndex=0)),Dp);function Dp(t,e,n){t=Mp.call(this,t,e,n)||this;return t.uid=Dc("ec_cpt_model"),t}function Ap(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}Bo(y,Cc),Ho(y),kp={},(Cp=y).registerSubTypeDefaulter=function(t,e){t=Eo(t);kp[t.main]=e},Cp.determineSubType=function(t,e){var n,i=e.type;return i||(n=Eo(t).main,Cp.hasSubTypes(t)&&kp[n]&&(i=kp[n](e))),i},Tp=function(t){var e=[];return O(y.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=F(e,function(t){return Eo(t).main}),"dataset"!==t&&k(e,"dataset")<=0&&e.unshift("dataset"),e},y.topologicalTravel=function(t,e,n,i){if(t.length){c={},p=[],O(h=e,function(n){var e,i,r=Ap(c,n),t=(t=r.originalDeps=Tp(n),e=h,i=[],O(t,function(t){0<=k(e,t)&&i.push(t)}),i);r.entryCount=t.length,0===r.entryCount&&p.push(n),O(t,function(t){k(r.predecessor,t)<0&&r.predecessor.push(t);var e=Ap(c,t);k(e.successor,t)<0&&e.successor.push(n)})});var e={graph:c,noEntryList:p},r=e.graph,o=e.noEntryList,a={};for(O(t,function(t){a[t]=!0});o.length;){var s=o.pop(),l=r[s],u=!!a[s];u&&(n.call(i,s,l.originalDeps.slice()),delete a[s]),O(l.successor,u?f:d)}O(a,function(){throw new Error("")})}var h,c,p;function d(t){r[t].entryCount--,0===r[t].entryCount&&o.push(t)}function f(t){a[t]=!0,d(t)}};var Sc="",Uo=("undefined"!=typeof navigator&&(Sc=navigator.platform||""),"rgba(0, 0, 0, 0.2)"),Pp={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Uo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Uo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Uo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Uo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Uo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Uo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Sc.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},Lp=N(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Op="original",Rp="arrayRows",Ep="objectRows",Np="keyedColumns",Bp="typedArray",zp="unknown",Fp="column",Vp="row",Hp={Must:1,Might:2,Not:3},Wp=To();function Gp(n,t,e){var r,i,o,a,s,l={},u=Up(t);return u&&n&&(o=[],a=[],t=t.ecModel,t=Wp(t).datasetMap,u=u.uid+"_"+e.seriesLayoutBy,O(n=n.slice(),function(t,e){t=R(t)?t:n[e]={name:t};"ordinal"===t.type&&null==r&&(r=e,i=c(t)),l[t.name]=[]}),s=t.get(u)||t.set(u,{categoryWayDim:i,valueWayDim:0}),O(n,function(t,e){var n,i=t.name,t=c(t);null==r?(n=s.valueWayDim,h(l[i],n,t),h(a,n,t),s.valueWayDim+=t):r===e?(h(l[i],0,t),h(o,0,t)):(n=s.categoryWayDim,h(l[i],n,t),h(a,n,t),s.categoryWayDim+=t)}),o.length&&(l.itemName=o),a.length)&&(l.seriesName=a),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 Up(t){if(!t.get("data",!0))return Ao(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Do).models[0]}function Xp(t,e){var n,i,r,o=t.data,a=t.sourceFormat,s=t.seriesLayoutBy,l=t.dimensionsDefine,u=t.startIndex,h=e;if(!mt(o)){if(l&&(R(l=l[h])?(i=l.name,r=l.type):H(l)&&(i=l)),null!=r)return"ordinal"===r?Hp.Must:Hp.Not;if(a===Rp){var c=o;if(s===Vp){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===Ep){var g=o;if(!i)return Hp.Not;for(d=0;d<g.length&&d<5;d++)if((m=g[d])&&null!=(n=_(m[i])))return n}else if(a===Np){l=o;if(!i)return Hp.Not;if(!(p=l[i])||mt(p))return Hp.Not;for(d=0;d<p.length&&d<5;d++)if(null!=(n=_(p[d])))return n}else if(a===Op){var y=o;for(d=0;d<y.length&&d<5;d++){var m=y[d],v=yo(m);if(!V(v))return Hp.Not;if(null!=(n=_(v[h])))return n}}}return Hp.Not;function _(t){var e=H(t);return null!=t&&isFinite(t)&&""!==t?e?Hp.Might:Hp.Not:e&&"-"!==t?Hp.Must:void 0}}var qp=N();var Yp=To(),Zp=(To(),jp.prototype.getColorFromPalette=function(t,e,n){var i=po(this.get("color",!0)),r=this.get("colorLayer",!0),o=this,a=Yp;return a=a(e=e||o),o=a.paletteIdx||0,(e=a.paletteNameMap=a.paletteNameMap||{}).hasOwnProperty(t)?e[t]:(r=(r=null!=n&&r?function(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}(r,n):i)||i)&&r.length?(n=r[o],t&&(e[t]=n),a.paletteIdx=(o+1)%r.length,n):void 0},jp.prototype.clearColorPalette=function(){var t,e;(e=Yp)(t=this).paletteIdx=0,e(t).paletteNameMap={}},jp);function jp(){}var Kp,$p,Qp,Jp,td="\0_ec_inner",ed=(u(h,Jp=Cc),h.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new Cc(i),this._locale=new Cc(r),this._optionManager=o},h.prototype.setOption=function(t,e,n){e=rd(e);this._optionManager.setOption(t,n,e),this._resetOption(null,e)},h.prototype.resetOption=function(t,e){return this._resetOption(t,rd(e))},h.prototype._resetOption=function(t,e){var n,i=!1,r=this._optionManager;return t&&"recreate"!==t||(n=r.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(n,e)):Qp(this,n),i=!0),"timeline"!==t&&"media"!==t||this.restoreData(),t&&"recreate"!==t&&"timeline"!==t||(n=r.getTimelineOption(this))&&(i=!0,this._mergeOption(n,e)),t&&"recreate"!==t&&"media"!==t||(n=r.getMediaOption(this)).length&&O(n,function(t){i=!0,this._mergeOption(t,e)},this),i},h.prototype.mergeOption=function(t){this._mergeOption(t,null)},h.prototype._mergeOption=function(i,t){var r=this.option,h=this._componentsMap,c=this._componentsCount,n=[],o=N(),p=t&&t.replaceMergeMainTypeMap;Wp(this).datasetMap=N(),O(i,function(t,e){null!=t&&(y.hasClass(e)?e&&(n.push(e),o.set(e,!0)):r[e]=null==r[e]?S(t):d(r[e],t,!0))}),p&&p.each(function(t,e){y.hasClass(e)&&!o.get(e)&&(n.push(e),o.set(e,!0))}),y.topologicalTravel(n,y.getAllClassMainTypes(),function(o){t=this,n=po(i[e=o]);var t=(e=(e=qp.get(e))&&e(t))?n.concat(e):n,e=h.get(o),n=mo(e,t,e?p&&p.get(o)?"replaceMerge":"normalMerge":"replaceAll");So(n,o,y),r[o]=null,h.set(o,null),c.set(o,0);var a,s=[],l=[],u=0;O(n,function(t,e){var n=t.existing,i=t.newOption;if(i){var r=y.getClass(o,t.keyInfo.subType,!("series"===o));if(!r)return;if("tooltip"===o){if(a)return;a=!0}n&&n.constructor===r?(n.name=t.keyInfo.name,n.mergeOption(i,this),n.optionUpdated(i,!1)):(e=L({componentIndex:e},t.keyInfo),L(n=new r(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),r[o]=s,h.set(o,l),c.set(o,u),"series"===o&&Kp(this)},this),this._seriesIndices||Kp(this)},h.prototype.getOption=function(){var a=S(this.option);return O(a,function(t,e){if(y.hasClass(e)){for(var n=po(t),i=n.length,r=!1,o=i-1;0<=o;o--)n[o]&&!bo(n[o])?r=!0:(n[o]=null,r||i--);n.length=i,a[e]=n}}),delete a[td],a},h.prototype.getTheme=function(){return this._theme},h.prototype.getLocaleModel=function(){return this._locale},h.prototype.setUpdatePayload=function(t){this._payload=t},h.prototype.getUpdatePayload=function(){return this._payload},h.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]}},h.prototype.queryComponents=function(t){var e,n,i,r,o,a=t.mainType;return a&&(n=t.index,i=t.id,r=t.name,o=this._componentsMap.get(a))&&o.length?(null!=n?(e=[],O(po(n),function(t){o[t]&&e.push(o[t])})):e=null!=i?nd("id",i,o):null!=r?nd("name",r,o):ut(o,function(t){return!!t}),id(e,t)):[]},h.prototype.findComponents=function(t){var e,n=t.query,i=t.mainType,r=(r=i+"Index",o=i+"Id",e=i+"Name",!n||null==n[r]&&null==n[o]&&null==n[e]?null:{mainType:i,index:n[r],id:n[o],name:n[e]}),o=id(r?this.queryComponents(r):ut(this._componentsMap.get(i),function(t){return!!t}),t);return t.filter?ut(o,t.filter):o},h.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(M(t)){var r=e,o=t;i.each(function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&o.call(r,e,i,i.componentIndex)}})}else for(var a=H(t)?i.get(t):R(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},h.prototype.getSeriesByName=function(t){var e=xo(t,null);return ut(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},h.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},h.prototype.getSeriesByType=function(e){return ut(this._componentsMap.get("series"),function(t){return!!t&&t.subType===e})},h.prototype.getSeries=function(){return ut(this._componentsMap.get("series"),function(t){return!!t})},h.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},h.prototype.eachSeries=function(n,i){$p(this),O(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];n.call(i,e,t)},this)},h.prototype.eachRawSeries=function(e,n){O(this._componentsMap.get("series"),function(t){t&&e.call(n,t,t.componentIndex)})},h.prototype.eachSeriesByType=function(n,i,r){$p(this),O(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];e.subType===n&&i.call(r,e,t)},this)},h.prototype.eachRawSeriesByType=function(t,e,n){return O(this.getSeriesByType(t),e,n)},h.prototype.isSeriesFiltered=function(t){return $p(this),null==this._seriesIndicesMap.get(t.componentIndex)},h.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},h.prototype.filterSeries=function(n,i){$p(this);var r=[];O(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];n.call(i,e,t)&&r.push(t)},this),this._seriesIndices=r,this._seriesIndicesMap=N(r)},h.prototype.restoreData=function(n){Kp(this);var t=this._componentsMap,i=[];t.each(function(t,e){y.hasClass(e)&&i.push(e)}),y.topologicalTravel(i,y.getAllClassMainTypes(),function(e){O(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()})})},h.internalField=(Kp=function(t){var e=t._seriesIndices=[];O(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=N(e)},$p=function(t){},void(Qp=function(t,e){t.option={},t.option[td]=1,t._componentsMap=N({series:[]}),t._componentsCount=N();var n,i,r=e.aria;R(r)&&null==r.enabled&&(r.enabled=!0),n=e,r=t._theme.option,i=n.color&&!n.colorLayer,O(r,function(t,e){"colorLayer"===e&&i||y.hasClass(e)||("object"==typeof t?n[e]=n[e]?d(n[e],t,!1):S(t):null==n[e]&&(n[e]=t))}),d(e,Pp,!1),t._mergeOption(e,null)})),h);function h(){return null!==Jp&&Jp.apply(this,arguments)||this}function nd(e,t,n){var i,r;return V(t)?(i=N(),O(t,function(t){null!=t&&null!=xo(t,null)&&i.set(t,!0)}),ut(n,function(t){return t&&i.get(t[e])})):(r=xo(t,null),ut(n,function(t){return t&&null!=r&&t[e]===r}))}function id(t,e){return e.hasOwnProperty("subType")?ut(t,function(t){return t&&t.subType===e.subType}):t}function rd(t){var e=N();return t&&O(po(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}at(ed,Zp);function od(e){O(ad,function(t){this[t]=pt(e[t],e)},this)}var ad=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],sd={},ld=(ud.prototype.create=function(n,i){var r=[];O(sd,function(t,e){t=t.create(n,i);r=r.concat(t||[])}),this._coordinateSystems=r},ud.prototype.update=function(e,n){O(this._coordinateSystems,function(t){t.update&&t.update(e,n)})},ud.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},ud.register=function(t,e){sd[t]=e},ud.get=function(t){return sd[t]},ud);function ud(){this._coordinateSystems=[]}var hd=/^(min|max)?(.+)$/,cd=(pd.prototype.setOption=function(t,e,n){t&&(O(po(t.series),function(t){t&&t.data&&mt(t.data)&&At(t.data)}),O(po(t.dataset),function(t){t&&t.source&&mt(t.source)&&At(t.source)})),t=S(t);var i,r,o,a,s,l,u,h,c,p,d=this._optionBackup,t=(i=e,r=!d,s=[],t=(e=t).baseOption,l=e.timeline,u=e.options,h=e.media,c=!!e.media,p=!!(u||l||t&&t.timeline),t?(a=t).timeline||(a.timeline=l):((p||c)&&(e.options=e.media=null),a=e),c&&V(h)&&O(h,function(t){t&&t.option&&(t.query?s.push(t):o=o||t)}),f(a),O(u,f),O(s,function(t){return f(t.option)}),{baseOption:a,timelineOptions:u||[],mediaDefault:o,mediaList:s});function f(e){O(i,function(t){t(e,r)})}this._newBaseOption=t.baseOption,d?(t.timelineOptions.length&&(d.timelineOptions=t.timelineOptions),t.mediaList.length&&(d.mediaList=t.mediaList),t.mediaDefault&&(d.mediaDefault=t.mediaDefault)):this._optionBackup=t},pd.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)},pd.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;return e=n.length&&(t=t.getComponent("timeline"))?S(n[t.getCurrentIndex()]):e},pd.prototype.getMediaOption=function(t){var e,n,i=this._api.getWidth(),r=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(o.length||a){for(var u=0,h=o.length;u<h;u++)!function(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return O(t,function(t,e){var n,e=e.match(hd);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)||(r=!1))}),r}(o[u].query,i,r)||s.push(u);(s=!s.length&&a?[-1]:s).length&&(e=s,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(l=F(s,function(t){return S((-1===t?a:o[t]).option)})),this._currentMediaIndices=s}return l},pd);function pd(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}var dd=O,fd=R,gd=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function yd(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=gd.length;n<i;n++){var r=gd[n],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?d(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?d(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function md(t,e,n){var i,r;t&&t[e]&&(t[e].normal||t[e].emphasis)&&(i=t[e].normal,r=t[e].emphasis,i&&(n?(t[e].normal=t[e].emphasis=null,z(t[e],i)):t[e]=i),r)&&(t.emphasis=t.emphasis||{},(t.emphasis[e]=r).focus&&(t.emphasis.focus=r.focus),r.blurScope)&&(t.emphasis.blurScope=r.blurScope)}function vd(t){md(t,"itemStyle"),md(t,"lineStyle"),md(t,"areaStyle"),md(t,"label"),md(t,"labelLine"),md(t,"upperLabel"),md(t,"edgeLabel")}function _d(t,e){var n=fd(t)&&t[e],i=fd(n)&&n.textStyle;if(i)for(var r=0,o=go.length;r<o;r++){var a=go[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function xd(t){t&&(vd(t),_d(t,"label"),t.emphasis)&&_d(t.emphasis,"label")}function wd(t){return V(t)?t:t?[t]:[]}function bd(t){return(V(t)?t[0]:t)||{}}function Sd(e,t){dd(wd(e.series),function(t){if(fd(t))if(fd(t)){yd(t),vd(t),_d(t,"label"),_d(t,"upperLabel"),_d(t,"edgeLabel"),t.emphasis&&(_d(t.emphasis,"label"),_d(t.emphasis,"upperLabel"),_d(t.emphasis,"edgeLabel"));var e=t.markPoint,n=(e&&(yd(e),xd(e)),t.markLine),i=(n&&(yd(n),xd(n)),t.markArea),r=(i&&xd(i),t.data);if("graph"===t.type){var r=r||t.nodes,o=t.links||t.edges;if(o&&!mt(o))for(var a=0;a<o.length;a++)xd(o[a]);O(t.categories,function(t){vd(t)})}if(r&&!mt(r))for(a=0;a<r.length;a++)xd(r[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)xd(s[a]);if((n=t.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)V(l[a])?(xd(l[a][0]),xd(l[a][1])):xd(l[a])}"gauge"===t.type?(_d(t,"axisLabel"),_d(t,"title"),_d(t,"detail")):"treemap"===t.type?(md(t.breadcrumb,"itemStyle"),O(t.levels,function(t){vd(t)})):"tree"===t.type&&vd(t.leaves)}});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),dd(n,function(t){dd(wd(e[t]),function(t){t&&(_d(t,"axisLabel"),_d(t.axisPointer,"label"))})}),dd(wd(e.parallel),function(t){t=t&&t.parallelAxisDefault;_d(t,"axisLabel"),_d(t&&t.axisPointer,"label")}),dd(wd(e.calendar),function(t){md(t,"itemStyle"),_d(t,"dayLabel"),_d(t,"monthLabel"),_d(t,"yearLabel")}),dd(wd(e.radar),function(t){_d(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)}),dd(wd(e.geo),function(t){fd(t)&&(xd(t),dd(wd(t.regions),function(t){xd(t)}))}),dd(wd(e.timeline),function(t){xd(t),md(t,"label"),md(t,"itemStyle"),md(t,"controlStyle",!0);t=t.data;V(t)&&O(t,function(t){R(t)&&(md(t,"label"),md(t,"itemStyle"))})}),dd(wd(e.toolbox),function(t){md(t,"iconStyle"),dd(t.feature,function(t){md(t,"iconStyle")})}),_d(bd(e.axisPointer),"label"),_d(bd(e.tooltip).axisPointer,"label")}function Md(e){e&&O(Td,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Td=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Cd=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],kd=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Id(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<kd.length;n++){var i=kd[n][1],r=kd[n][0];null!=e[i]&&(e[r]=e[i])}}function Dd(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Ad(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Pd(e,t){Sd(e,t),e.series=po(e.series),O(e.series,function(t){if(R(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),Dd(t.label),(e=t.data)&&!mt(e))for(var i=0;i<e.length;i++)Dd(e[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset)}else if("gauge"===n){var r=function(t,e){for(var n=e.split(","),i=t,r=0;r<n.length&&null!=(i=i&&i[n[r]]);r++);return i}(t,"pointer.color");if(null!=r){var o=t;var a="itemStyle.color";var s=void 0;for(var l,u=a.split(","),h=o,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]]=r)}}else if("bar"===n){if(Id(t),Id(t.backgroundStyle),Id(t.emphasis),(e=t.data)&&!mt(e))for(i=0;i<e.length;i++)"object"==typeof e[i]&&(Id(e[i]),Id(e[i]&&e[i].emphasis))}else"sunburst"===n?((a=t.highlightPolicy)&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=a)),Ad(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,Ad)):"graph"===n||"sankey"===n?(o=t)&&null!=o.focusNodeAdjacency&&(o.emphasis=o.emphasis||{},null==o.emphasis.focus)&&(o.emphasis.focus="adjacency"):"map"===n&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation)&&z(t,t.mapLocation);null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis)&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation),Md(t)}}),e.dataRange&&(e.visualMap=e.dataRange),O(Cd,function(t){t=e[t];t&&O(t=V(t)?t:[t],function(t){Md(t)})})}function Ld(_){O(_,function(p,d){var f=[],g=[NaN,NaN],t=[p.stackResultDimension,p.stackedOverDimension],y=p.data,m=p.isStackedByIndex,v=p.seriesModel.get("stackStrategy")||"samesign";y.modify(t,function(t,e,n){var i,r,o=y.get(p.stackedDimension,n);if(isNaN(o))return g;m?r=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<=(r=m?r:c.data.rawIndexOf(c.stackedByDimension,i))){c=c.data.getByRawIndex(c.stackResultDimension,r);if("all"===v||"positive"===v&&0<c||"negative"===v&&c<0||"samesign"===v&&0<=o&&0<c||"samesign"===v&&o<=0&&c<0){a=o,s=c,l=void 0,l=Math.max(Kr(a),Kr(s)),a+=s,o=Yr<l?a:jr(a,l),u=c;break}}}return f[0]=o,f[1]=u,f})})}var Od,Rd,Ed=function(t){this.data=t.data||(t.sourceFormat===Np?{}:[]),this.sourceFormat=t.sourceFormat||zp,this.seriesLayoutBy=t.seriesLayoutBy||Fp,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&&Xp(this,n)===Hp.Must&&(i.type="ordinal")}};function Nd(t){return t instanceof Ed}function Bd(t,e,n){n=n||Fd(t);var i=e.seriesLayoutBy,r=function(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:Vd(r),startIndex:a,dimensionsDetectedCount:o};{var s;e===Rp?(s=t,"auto"===i||null==i?Hd(function(t){null!=t&&"-"!==t&&(H(t)?null==a&&(a=1):a=0)},n,s,10):a=gt(i)?i:i?1:0,r||1!==a||(r=[],Hd(function(t,e){r[e]=null!=t?t+"":""},n,s,1/0)),o=r?r.length:n===Vp?s.length:s[0]?s[0].length:null):e===Ep?r=r||function(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e)return ct(e)}(t):e===Np?r||(r=[],O(t,function(t,e){r.push(e)})):e===Op&&(i=yo(t[0]),o=V(i)&&i.length||1)}return{startIndex:a,dimensionsDefine:Vd(r),dimensionsDetectedCount:o}}(t,n,i,e.sourceHeader,e.dimensions);return new Ed({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:S(e)})}function zd(t){return new Ed({data:t,sourceFormat:mt(t)?Bp:Op})}function Fd(t){var e=zp;if(mt(t))e=Bp;else if(V(t)){0===t.length&&(e=Rp);for(var n=0,i=t.length;n<i;n++){var r=t[n];if(null!=r){if(V(r)){e=Rp;break}if(R(r)){e=Ep;break}}}}else if(R(t))for(var o in t)if(Vt(t,o)&&st(t[o])){e=Np;break}return e}function Vd(t){var i;if(t)return i=N(),F(t,function(t,e){var n,t={name:(t=R(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};return null!=t.name&&(t.name+="",null==t.displayName&&(t.displayName=t.name),(n=i.get(t.name))?t.name+="-"+n.count++:i.set(t.name,{count:1})),t})}function Hd(t,e,n,i){if(e===Vp)for(var r=0;r<n.length&&r<i;r++)t(n[r]?n[r][0]:null,r);else for(var o=n[0]||[],r=0;r<o.length&&r<i;r++)t(o[r],r)}function Wd(t){t=t.sourceFormat;return t===Ep||t===Np}Yd.prototype.getSource=function(){return this._source},Yd.prototype.count=function(){return 0},Yd.prototype.getItem=function(t,e){},Yd.prototype.appendData=function(t){},Yd.prototype.clean=function(){},Yd.protoInitialize=((Gh=Yd.prototype).pure=!1,void(Gh.persistent=!0)),Yd.internalField=(Rd=function(t,e,n){var i,r=n.sourceFormat,o=n.seriesLayoutBy,a=n.startIndex,n=n.dimensionsDefine;L(t,Od[of(r,o)]),r===Bp?(t.getItem=Gd,t.count=Xd,t.fillStorage=Ud):(i=$d(r,o),t.getItem=pt(i,null,e,a,n),i=tf(r,o),t.count=pt(i,null,e,a,n))},Gd=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;o<i;o++)e[o]=n[r+o];return e},Ud=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;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=r[p*o+a];(c[t+p]=d)<l&&(l=d),u<d&&(u=d)}s[0]=l,s[1]=u}},Xd=function(){return this._data?this._data.length/this._dimSize:0},(Gh={})[Rp+"_"+Fp]={pure:!0,appendData:Zd},Gh[Rp+"_"+Vp]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},Gh[Ep]={pure:!0,appendData:Zd},Gh[Np]={pure:!0,appendData:function(t){var r=this._data;O(t,function(t,e){for(var n=r[e]||(r[e]=[]),i=0;i<(t||[]).length;i++)n.push(t[i])})}},Gh[Op]={appendData:Zd},Gh[Bp]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},void(Od=Gh));var Gd,Ud,Xd,qd=Yd;function Yd(t,e){var t=Nd(t)?t:zd(t),n=(this._source=t,this._data=t.data);t.sourceFormat===Bp&&(this._offset=0,this._dimSize=e,this._data=n),Rd(this,n,t)}function Zd(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function jd(t,e,n,i){return t[i]}(Wc={})[Rp+"_"+Fp]=function(t,e,n,i){return t[i+e]},Wc[Rp+"_"+Vp]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},Wc[Ep]=jd,Wc[Np]=function(t,e,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=t[n[a].name];o[a]=s?s[i]:null}return o},Wc[Op]=jd;var Kd=Wc;function $d(t,e){return Kd[of(t,e)]}function Qd(t,e,n){return t.length}(_c={})[Rp+"_"+Fp]=function(t,e,n){return Math.max(0,t.length-e)},_c[Rp+"_"+Vp]=function(t,e,n){t=t[0];return t?Math.max(0,t.length-e):0},_c[Ep]=Qd,_c[Np]=function(t,e,n){t=t[n[0].name];return t?t.length:0},_c[Op]=Qd;var Jd=_c;function tf(t,e){return Jd[of(t,e)]}function ef(t,e,n){return t[e]}(Uo={})[Rp]=ef,Uo[Ep]=function(t,e,n){return t[n]},Uo[Np]=ef,Uo[Op]=function(t,e,n){t=yo(t);return t instanceof Array?t[e]:t},Uo[Bp]=ef;var nf=Uo;function rf(t){return nf[t]}function of(t,e){return t===Rp?t+"_"+e:t}function af(t,e,n){if(t){var i,r,e=t.getRawDataItem(e);if(null!=e)return i=(r=t.getStore()).getSource().sourceFormat,null!=n?(t=t.getDimensionIndex(n),n=r.getDimensionProperty(t),rf(i)(e,t,n)):(r=e,i===Op?yo(e):r)}}var sf=/\{@(.+?)\}/g,Sc=(lf.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=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:o,dataIndex:r,data:a,dataType:e,value:i,color:t,borderColor:s,dimensionNames:n?n.fullDimensions:null,encode:n?n.encode:null,$vars:["seriesName","name","value"]}},lf.prototype.getFormattedLabel=function(i,t,e,n,r,o){t=t||"normal";var a=this.getData(e),e=this.getDataParams(i,e);return o&&(e.value=o.interpolatedValue),null!=n&&V(e.value)&&(e.value=e.value[n]),M(r=r||a.getItemModel(i).get("normal"===t?["label","formatter"]:[t,"label","formatter"]))?(e.status=t,e.dimensionIndex=n,r(e)):H(r)?fp(r,e).replace(sf,function(t,e){var n=e.length,n=("["===e.charAt(0)&&"]"===e.charAt(n-1)&&(e=+e.slice(1,n-1)),af(a,i,e));return null!=(n=o&&V(o.interpolatedValue)&&0<=(e=a.getDimensionIndex(e))?o.interpolatedValue[e]:n)?n+"":""}):void 0},lf.prototype.getRawValue=function(t,e){return af(this.getData(e),t)},lf.prototype.formatTooltip=function(t,e,n){},lf);function lf(){}function uf(t){return new hf(t)}cf.prototype.perform=function(t){var e,n=this._upstream,i=t&&t.skip;this._dirty&&n&&((o=this.context).data=o.outputData=n.context.outputData),this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var r,o=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}o===s&&a===l||(e="reset"),!this._dirty&&"reset"!==e||(this._dirty=!1,r=this._doReset(i)),this._modBy=s,this._modDataCount=l;o=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,c=Math.min(null!=o?this._dueIndex+o:1/0,this._dueEnd);if(!i&&(r||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()},cf.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},cf.prototype._doProgress=function(t,e,n,i,r){vf.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:vf.next},this.context)},cf.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},cf.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},cf.prototype.pipe=function(t){this._downstream===t&&!this._dirty||((this._downstream=t)._upstream=this,t.dirty())},cf.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},cf.prototype.getUpstream=function(){return this._upstream},cf.prototype.getDownstream=function(){return this._downstream},cf.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var hf=cf;function cf(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}var pf,df,ff,gf,yf,mf,vf=mf={reset:function(t,e,n,i){df=t,pf=e,ff=n,gf=i,yf=Math.ceil(gf/ff),mf.next=1<ff&&0<gf?xf:_f}};function _f(){return df<pf?df++:null}function xf(){var t=df%yf*ff+Math.ceil(df/yf),t=pf<=df?null:t<gf?t:df;return df++,t}function wf(t,e){e=e&&e.type;return"ordinal"===e?t:null==(t="time"!==e||gt(t)||null==t||"-"===t?t:+no(t))||""===t?NaN:+t}var bf=N({number:function(t){return parseFloat(t)},time:function(t){return+no(t)},trim:function(t){return H(t)?It(t):t}});function Sf(t){return bf.get(t)}var Mf={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}},Tf=(If.prototype.evaluate=function(t){return gt(t)?this._opFn(t,this._rvalFloat):this._opFn(ao(t),this._rvalFloat)},If),Cf=(kf.prototype.evaluate=function(t,e){var n=gt(t)?t:ao(t),i=gt(e)?e:ao(e),r=isNaN(n),o=isNaN(i);return r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o&&(r=H(t),o=H(e),r&&(n=o?t:0),o)&&(i=r?e:0),n<i?this._resultLT:i<n?-this._resultLT:0},kf);function kf(t,e){t="desc"===t;this._resultLT=t?1:-1,this._incomparable="min"===(e=null==e?t?"min":"max":e)?-1/0:1/0}function If(t,e){gt(e)||g(""),this._opFn=Mf[t],this._rvalFloat=ao(e)}Af.prototype.evaluate=function(t){var e,n=t===this._rval;return n||(e=typeof t)===this._rvalTypeof||"number"!=e&&"number"!==this._rvalTypeof||(n=ao(t)===this._rvalFloat),this._isEQ?n:!n};var Df=Af;function Af(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=ao(e)}Lf.prototype.getRawData=function(){throw new Error("not supported")},Lf.prototype.getRawDataItem=function(t){throw new Error("not supported")},Lf.prototype.cloneRawData=function(){},Lf.prototype.getDimensionInfo=function(t){},Lf.prototype.cloneAllDimensionInfo=function(){},Lf.prototype.count=function(){},Lf.prototype.retrieveValue=function(t,e){},Lf.prototype.retrieveValueFromItem=function(t,e){},Lf.prototype.convertValue=wf;var Pf=Lf;function Lf(){}function Of(t){return Ff(t.sourceFormat)||g(""),t.data}function Rf(t){var e=t.sourceFormat,n=t.data;if(Ff(e)||g(""),e===Rp){for(var i=[],r=0,o=n.length;r<o;r++)i.push(n[r].slice());return i}if(e===Ep){for(i=[],r=0,o=n.length;r<o;r++)i.push(L({},n[r]));return i}}function Ef(t,e,n){if(null!=n)return gt(n)||!isNaN(n)&&!Vt(e,n)?t[n]:Vt(e,n)?e[n]:void 0}function Nf(t){return S(t)}var Bf=N();function zf(t,e){var n=po(t),t=n.length;t||g("");for(var i=0,r=t;i<r;i++)e=function(t,i){i.length||g(""),R(t)||g("");var e=t.type,d=Bf.get(e),e=(d||g(""),F(i,function(t){var e=t,t=d,n=new Pf,i=e.data,r=n.sourceFormat=e.sourceFormat,o=e.startIndex,a=(e.seriesLayoutBy!==Fp&&g(""),[]),s={};if(h=e.dimensionsDefine)O(h,function(t,e){var n=t.name,e={index:e,name:n,displayName:t.displayName};a.push(e),null!=n&&(Vt(s,n)&&g(""),s[n]=e)});else for(var l=0;l<e.dimensionsDetectedCount;l++)a.push({index:l});var u=$d(r,Fp),h=(t.__isBuiltIn&&(n.getRawDataItem=function(t){return u(i,o,a,t)},n.getRawData=pt(Of,null,e)),n.cloneRawData=pt(Rf,null,e),tf(r,Fp)),c=(n.count=pt(h,null,i,o,a),rf(r)),p=(n.retrieveValue=function(t,e){t=u(i,o,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=pt(Ef,null,a,s),n.cloneAllDimensionInfo=pt(Nf,null,a),n}));return F(po(d.transform({upstream:e[0],upstreamList:e,config:S(t.config)})),function(t,e){R(t)||g(""),t.data||g(""),Ff(Fd(t.data))||g("");var n=i[0],e=n&&0===e&&!t.dimensions?((e=n.startIndex)&&(t.data=n.data.slice(0,e).concat(t.data)),{seriesLayoutBy:Fp,sourceHeader:e,dimensions:n.metaRawOption.dimensions}):{seriesLayoutBy:Fp,sourceHeader:0,dimensions:t.dimensions};return Bd(t.data,e,null)})}(n[i],e),i!==r-1&&(e.length=Math.max(e.length,1));return e}function Ff(t){return t===Rp||t===Ep}var Vf,Gh="undefined",Hf=typeof Uint32Array==Gh?Array:Uint32Array,Wf=typeof Uint16Array==Gh?Array:Uint16Array,Gf=typeof Int32Array==Gh?Array:Int32Array,Wc=typeof Float64Array==Gh?Array:Float64Array,Uf={float:Wc,int:Gf,ordinal:Array,number:Array,time:Wc};function Xf(t){return 65535<t?Hf:Wf}function qf(){return[1/0,-1/0]}function Yf(t,e,n,i,r){n=Uf[n||"float"];if(r){var o=t[e],a=o&&o.length;if(a!==i){for(var s=new n(i),l=0;l<a;l++)s[l]=o[l];t[e]=s}}else t[e]=new n(i)}c.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),r=this.defaultDimValueGetter=Vf[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[],Wd(i),this._dimensions=F(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},c.prototype.getProvider=function(){return this._provider},c.prototype.getSource=function(){return this._provider.getSource()},c.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new Uf[e||"float"](this._rawCount),this._rawExtent[r]=qf(),r},c.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[t]=qf());for(var s=r[t],l=o;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"},c.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},c.prototype.getDimensionProperty=function(t){t=this._dimensions[t];return t&&t.property},c.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]},c.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<r;l++)Yf(n,l,(d=i[l]).type,s,!0);for(var u=[],h=a;h<s;h++)for(var c=h-a,p=0;p<r;p++){var d=i[p],f=Vf.arrayRows.call(this,t[c]||u,d.property,c,p),g=(n[p][h]=f,o[p]);f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return{start:a,end:this._rawCount=this._count=s}},c.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=F(o,function(t){return t.property}),u=0;u<a;u++){var h=o[u];s[u]||(s[u]=qf()),Yf(r,u,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,s);else for(var c=[],p=t;p<e;p++)for(var c=i.getItem(p,c),d=0;d<a;d++){var f=r[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=[]},c.prototype.count=function(){return this._count},c.prototype.get=function(t,e){return 0<=e&&e<this._count&&(t=this._chunks[t])?t[this.getRawIndex(e)]:NaN},c.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=t;for(var r=0,o=i.length;r<o;r++)n.push(this.get(i[r],e));return n},c.prototype.getByRawIndex=function(t,e){return 0<=e&&e<this._rawCount&&(t=this._chunks[t])?t[e]:NaN},c.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,i=this.count();n<i;n++){var r=this.get(t,n);isNaN(r)||(e+=r)}return e},c.prototype.getMedian=function(t){var e=[],t=(this.each([t],function(t){isNaN(t)||e.push(t)}),e.sort(function(t,e){return t-e})),n=this.count();return 0===n?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},c.prototype.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,r=this._count-1;i<=r;){var o=(i+r)/2|0;if(e[o]<t)i=1+o;else{if(!(e[o]>t))return o;r=o-1}}}return-1},c.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],r=[];if(i){null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var h=e-i[this.getRawIndex(l)],c=Math.abs(h);c<=n&&((c<o||c===o&&0<=h&&a<0)&&(o=c,a=h,s=0),h===a)&&(r[s++]=l)}r.length=s}return r},c.prototype.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array)for(var i=new e(n),r=0;r<n;r++)i[r]=t[r];else i=new e(t.buffer,0,n)}else for(i=new(e=Xf(this._rawCount))(this.count()),r=0;r<i.length;r++)i[r]=r;return i},c.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=new(Xf(n._rawCount))(i),o=[],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++)o[d]=u[t[d]][p];o[d]=h,c=e.apply(null,o)}c&&(r[s++]=p)}return s<i&&(n._indices=r),n._count=s,n._extent=[],n._updateGetRawIdx(),n},c.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=ct(t),r=i.length;if(!r)return this;var o=e.count(),a=new(Xf(e._rawCount))(o),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===r){for(var d=c[i[0]],f=0;f<n;f++)((v=d[f])>=u&&v<=h||isNaN(v))&&(a[s++]=p),p++;l=!0}else if(2===r){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===r)for(f=0;f<o;f++){var x=e.getRawIndex(f);((v=c[i[0]][x])>=u&&v<=h||isNaN(v))&&(a[s++]=x)}else for(f=0;f<o;f++){for(var w=!0,b=(x=e.getRawIndex(f),0);b<r;b++){var S=i[b];((v=c[S][x])<t[S][0]||v>t[S][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(f))}return s<o&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},c.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},c.prototype.modify=function(t,e){this._updateDims(this,t,e)},c.prototype._updateDims=function(t,e,n){for(var i=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=qf();for(var h=0;h<a;h++){for(var c=t.getRawIndex(h),p=0;p<o;p++)s[p]=i[e[p]][c];s[o]=h;var d=n&&n.apply(null,s);if(null!=d)for("object"!=typeof d&&(r[0]=d,d=r),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)}}},c.prototype.lttbDownSample=function(t,e){var n,i=this.clone([t],!0),r=i._chunks[t],o=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),u=new(Xf(this._rawCount))(Math.min(2*(Math.ceil(o/s)+2),o));u[a++]=l;for(var h=1;h<o-1;h+=s){for(var c=Math.min(h+s,o-1),p=Math.min(h+2*s,o),d=(p+c)/2,f=0,g=c;g<p;g++){var y=r[M=this.getRawIndex(g)];isNaN(y)||(f+=y)}f/=p-c;for(var c=h,m=Math.min(h+s,o),v=h-1,_=r[l],x=-1,w=c,b=-1,S=0,g=c;g<m;g++){var M,y=r[M=this.getRawIndex(g)];isNaN(y)?(S++,b<0&&(b=M)):(n=Math.abs((v-d)*(y-_)-(v-g)*(f-_)))>x&&(x=n,w=M)}0<S&&S<m-c&&(u[a++]=Math.min(b,w),w=Math.max(b,w)),l=u[a++]=w}return u[a++]=this.getRawIndex(o-1),i._count=a,i._indices=u,i.getRawIndex=this._getRawIdx,i},c.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=r._rawExtent[t]=qf(),c=new(Xf(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 r._count=p,r._indices=c,r._updateGetRawIdx(),r},c.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},c.prototype.getDataExtent=function(t){var e=this._chunks[t],n=qf();if(!e)return n;var i,r=this.count();if(!this._indices)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();for(var o=(i=n)[0],a=i[1],s=0;s<r;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),a<l&&(a=l)}return this._extent[t]=i=[o,a]},c.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][e]);return n},c.prototype.clone=function(t,e){var n,i,r=new c,o=this._chunks,a=t&<(t,function(t,e){return t[e]=!0,t},{});if(a)for(var s=0;s<o.length;s++)r._chunks[s]=a[s]?(n=o[s],i=void 0,(i=n.constructor)===Array?n.slice():new i(n)):o[s];else r._chunks=o;return this._copyCommonProps(r),e||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},c.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)},c.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},c.prototype._getRawIdxIdentity=function(t){return t},c.prototype._getRawIdx=function(t){return t<this._count&&0<=t?this._indices[t]:-1},c.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},c.internalField=void(Vf={arrayRows:jf,objectRows:function(t,e,n,i){return wf(t[e],this._dimensions[i])},keyedColumns:jf,original:function(t,e,n,i){t=t&&(null==t.value?t:t.value);return wf(t instanceof Array?t[i]:t,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}});var Zf=c;function c(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=N()}function jf(t,e,n,i){return wf(t[i],this._dimensions[i])}$f.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},$f.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,9e10<this._versionSignBase&&(this._versionSignBase=0)},$f.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},$f.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},$f.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n,i,r,o,a,s=this._sourceHost,l=this._getUpstreamSourceManagers(),u=!!l.length;Jf(s)?(i=s,r=t=o=void 0,e=u?((e=l[0]).prepareSource(),o=(r=e.getSource()).data,t=r.sourceFormat,[e._getVersionSign()]):(t=mt(o=i.get("data",!0))?Bp:Op,[]),i=this._getSourceMetaRawOption()||{},r=r&&r.metaRawOption||{},a=E(i.seriesLayoutBy,r.seriesLayoutBy)||null,n=E(i.sourceHeader,r.sourceHeader),i=E(i.dimensions,r.dimensions),r=a!==r.seriesLayoutBy||!!n!=!!r.sourceHeader||i?[Bd(o,{seriesLayoutBy:a,sourceHeader:n,dimensions:i},t)]:[]):(o=s,e=u?(r=(a=this._applyTransform(l)).sourceList,a.upstreamSignList):(r=[Bd(o.get("source",!0),this._getSourceMetaRawOption(),null)],[])),this._setLocalSource(r,e)},$f.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0),o=(null!=r&&1!==t.length&&tg(""),[]),a=[];return O(t,function(t){t.prepareSource();var e=t.getSource(r||0);null==r||e||tg(""),o.push(e),a.push(t._getVersionSign())}),i?e=zf(i,o,n.componentIndex):null!=r&&(e=[new Ed({data:(t=o[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:S(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})]),{sourceList:e,upstreamSignList:a}},$f.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}},$f.prototype.getSource=function(t){var e=this._sourceList[t=t||0];return e||(e=this._getUpstreamSourceManagers())[0]&&e[0].getSource(t)},$f.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},$f.prototype._innerGetDataStore=function(t,e,n){var i,r=this._storeList,o=r[0],r=(o=o||(r[0]={}))[n];return r||(i=this._getUpstreamSourceManagers()[0],Jf(this._sourceHost)&&i?r=i._innerGetDataStore(t,e,n):(r=new Zf).initData(new qd(e,t.length),t),o[n]=r),r},$f.prototype._getUpstreamSourceManagers=function(){var t,e=this._sourceHost;return Jf(e)?(t=Up(e))?[t.getSourceManager()]:[]:F((t=e).get("transform",!0)||t.get("fromTransformResult",!0)?Ao(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Do).models:[],function(t){return t.getSourceManager()})},$f.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;return Jf(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 Kf=$f;function $f(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}function Qf(t){t.option.transform&&At(t.option.transform)}function Jf(t){return"series"===t.mainType}function tg(t){throw new Error(t)}function eg(t,e){return e.type=t,e}function ng(t,e){var n,e=t.getData().getItemVisual(e,"style")[t.visualDrawType];return n=n||"transparent",H(t=e)?t:R(t)&&t.colorStops&&(t.colorStops[0]||{}).color||n}function ig(t){var e,n,i,r,o,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),_=ng(p,d);function x(t,e){e=s.getDimensionInfo(e);e&&!1!==e.otherDims.tooltip&&(l?c.push(eg("nameValue",{markerType:"subItem",markerColor:a,name:e.displayName,value:t,valueType:e.type})):(u.push(t),h.push(e.type)))}1<y||v&&!y?(i=m,r=d,o=g,a=_,s=p.getData(),l=lt(i,function(t,e,n){n=s.getDimensionInfo(n);return t||n&&!1!==n.tooltip&&null!=n.displayName},!1),u=[],h=[],c=[],o.length?O(o,function(t){x(af(s,r,t),t)}):O(i,x),i=(o={inlineValues:u,inlineValueTypes:h,blocks:c}).inlineValueTypes,e=o.blocks,n=(o=o.inlineValues)[0]):y?(y=f.getDimensionInfo(g[0]),n=o=af(f,d,g[0]),i=y.type):n=o=v?m[0]:m;g=wo(p),y=g&&p.name||"",v=f.getName(d),m=t?y:v;return eg("section",{header:y,noHeader:t||!g,sortParam:n,blocks:[eg("nameValue",{markerType:"item",markerColor:_,name:m,noName:!It(m),value:o,valueType:i})].concat(e||[])})}var rg=To();function og(t,e){return t.getName(e)||t.getId(e)}u(p,ag=y),p.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=uf({count:ug,reset:hg}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(rg(this).sourceManager=new Kf(this)).prepareSource();t=this.getInitialData(t,n);pg(t,this),this.dataTask.context.data=t,rg(this).dataBeforeProcessed=t,lg(this),this._initSelectedMapFromData(t)},p.prototype.mergeDefaultAndTheme=function(t,e){var n=wp(this),i=n?Sp(t):{},r=this.subType;y.hasClass(r),d(t,e.getTheme().get(this.subType)),d(t,this.getDefaultOption()),fo(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&bp(t,i,n)},p.prototype.mergeOption=function(t,e){t=d(this.option,t,!0),this.fillDataTextStyle(t.data);var n=wp(this),n=(n&&bp(this.option,t,n),rg(this).sourceManager),n=(n.dirty(),n.prepareSource(),this.getInitialData(t,e));pg(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,rg(this).dataBeforeProcessed=n,lg(this),this._initSelectedMapFromData(n)},p.prototype.fillDataTextStyle=function(t){if(t&&!mt(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&fo(t[n],"label",e)},p.prototype.getInitialData=function(t,e){},p.prototype.appendData=function(t){this.getRawData().appendData(t.data)},p.prototype.getData=function(t){var e=fg(this);return e?(e=e.context.data,null==t?e:e.getLinkedData(t)):rg(this).data},p.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},p.prototype.setData=function(t){var e,n=fg(this);n&&((e=n.context).outputData=t,n!==this.dataTask)&&(e.data=t),rg(this).data=t},p.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return N(t)},p.prototype.getSourceManager=function(){return rg(this).sourceManager},p.prototype.getSource=function(){return this.getSourceManager().getSource()},p.prototype.getRawData=function(){return rg(this).dataBeforeProcessed},p.prototype.getColorBy=function(){return this.get("colorBy")||"series"},p.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},p.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},p.prototype.formatTooltip=function(t,e,n){return ig({series:this,dataIndex:t,multipleSeries:e})},p.prototype.isAnimationEnabled=function(){var t=this.ecModel;return!!(!b.node||t&&t.ssr)&&!!(t=(t=this.getShallow("animation"))&&this.getData().count()>this.getShallow("animationThreshold")?!1:t)},p.prototype.restoreData=function(){this.dataTask.dirty()},p.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return Zp.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},p.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},p.prototype.getProgressive=function(){return this.get("progressive")},p.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},p.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},p.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var o=0;o<t.length;o++){var a=og(r,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},p.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)},p.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=ct(t),n=[],i=0;i<e.length;i++){var r=t[e[i]];0<=r&&n.push(r)}return n},p.prototype.isSelected=function(t,e){var n=this.option.selectedMap;return!!n&&(e=this.getData(e),"all"===n||n[og(e,t)])&&!e.getItemModel(t).get(["select","disabled"])},p.prototype.isUniversalTransitionEnabled=function(){var t;return!!this.__universalTransitionEnabled||!!(t=this.option.universalTransition)&&(!0===t||t&&t.enabled)},p.prototype._innerSelect=function(t,e){var n,i=this.option,r=i.selectedMode,o=e.length;if(r&&o)if("series"===r)i.selectedMap="all";else if("multiple"===r){R(i.selectedMap)||(i.selectedMap={});for(var a=i.selectedMap,s=0;s<o;s++){var l=e[s];a[n=og(t,l)]=!0,this._selectedDataIndicesMap[n]=t.getRawIndex(l)}}else"single"!==r&&!0!==r||(n=og(t,r=e[o-1]),i.selectedMap=((i={})[n]=!0,i),this._selectedDataIndicesMap=((i={})[n]=t.getRawIndex(r),i))},p.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))},p.registerClass=function(t){return y.registerClass(t)},p.protoInitialize=((_c=p.prototype).type="series.__base__",_c.seriesIndex=0,_c.ignoreStyleOnData=!1,_c.hasSymbolVisual=!1,_c.defaultSymbol="circle",_c.visualStyleAccessPath="itemStyle",void(_c.visualDrawType="fill"));var ag,sg=p;function p(){var t=null!==ag&&ag.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}function lg(t){var e,n,i=t.name;wo(t)||(t.name=(t=(e=(t=t).getRawData()).mapDimensionsAll("seriesName"),n=[],O(t,function(t){t=e.getDimensionInfo(t);t.displayName&&n.push(t.displayName)}),n.join(" ")||i))}function ug(t){return t.model.getRawData().count()}function hg(t){t=t.model;return t.setData(t.getRawData().cloneShallow()),cg}function cg(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function pg(e,n){O(Bt(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(t){e.wrapMethod(t,dt(dg,n))})}function dg(t,e){t=fg(t);return t&&t.setOutputEnd((e||this).count()),e}function fg(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}at(sg,Sc),at(sg,Zp),Bo(sg,y);yg.prototype.init=function(t,e){},yg.prototype.render=function(t,e,n,i){},yg.prototype.dispose=function(t,e){},yg.prototype.updateView=function(t,e,n,i){},yg.prototype.updateLayout=function(t,e,n,i){},yg.prototype.updateVisual=function(t,e,n,i){},yg.prototype.toggleBlurSeries=function(t,e,n){},yg.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var gg=yg;function yg(){this.group=new Fr,this.uid=Dc("viewComponent")}No(gg),Ho(gg);var mg,vg=To(),_g=(mg=To(),function(t){var e=mg(t),t=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,r=e.large=!(!t||!t.large),e=e.progressiveRender=!(!t||!t.progressiveRender);return!(n==r&&i==e)&&"reset"}),xg=(wg.prototype.init=function(t,e){},wg.prototype.render=function(t,e,n,i){},wg.prototype.highlight=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&Sg(t,i,"emphasis")},wg.prototype.downplay=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&Sg(t,i,"normal")},wg.prototype.remove=function(t,e){this.group.removeAll()},wg.prototype.dispose=function(t,e){},wg.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},wg.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},wg.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},wg.prototype.eachRendered=function(t){tc(this.group,t)},wg.markUpdateMethod=function(t,e){vg(t).updateMethod=e},wg.protoInitialize=void(wg.prototype.type="chart"),wg);function wg(){this.group=new Fr,this.uid=Dc("viewChart"),this.renderTask=uf({plan:Mg,reset:Tg}),this.renderTask.context={view:this}}function bg(t,e,n){t&&El(t)&&("emphasis"===e?vl:_l)(t,n)}function Sg(e,t,n){var i,r=Mo(e,t),o=t&&null!=t.highlightKey?(t=t.highlightKey,i=null==(i=Ws[t])&&Hs<=32?Ws[t]=Hs++:i):null;null!=r?O(po(r),function(t){bg(e.getItemGraphicEl(t),n,o)}):e.eachItemGraphicEl(function(t){bg(t,n,o)})}function Mg(t){return _g(t.model)}function Tg(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,t=t.view,a=r&&vg(r).updateMethod,o=o?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==o&&t[o](e,n,i,r),Cg[o]}No(xg),Ho(xg);var Cg={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)}}},kg="\0__throttleOriginMethod",Ig="\0__throttleRate",Dg="\0__throttleType";function Ag(t,r,o){var a,s,l,u,h,c=0,p=0,d=null;function f(){p=(new Date).getTime(),d=null,t.apply(l,u||[])}r=r||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||r,i=h||o;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}var Pg=To(),Lg={itemStyle:Wo(wc,!0),lineStyle:Wo(mc,!0)},Og={lineStyle:"stroke",itemStyle:"fill"};function Rg(t,e){return t.visualStyleMapper||Lg[e]||(console.warn("Unknown style type '"+e+"'."),Lg.itemStyle)}function Eg(t,e){return t.visualDrawType||Og[e]||(console.warn("Unknown style type '"+e+"'."),"fill")}var Uo={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),o=Rg(r,n)(i),i=i.getShallow("decal"),a=(i&&(e.setVisual("decal",i),i.dirty=!0),Eg(r,n)),i=o[a],s=M(i)?i:null,n="auto"===o.fill||"auto"===o.stroke;if(o[a]&&!s&&!n||(i=r.getColorFromPalette(r.name,null,t.getSeriesCount()),o[a]||(o[a]=i,e.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||M(o.fill)?i:o.fill,o.stroke="auto"===o.stroke||M(o.stroke)?i:o.stroke),e.setVisual("style",o),e.setVisual("drawType",a),!t.isSeriesFiltered(r)&&s)return e.setVisual("colorFromPalette",!1),{dataEach:function(t,e){var n=r.getDataParams(e),i=L({},o);i[a]=s(n),t.setItemVisual(e,"style",i)}}}},Ng=new Cc,Gh={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i,r,o;if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t))return e=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=Rg(t,i),o=e.getVisual("drawType"),{dataEach:e.hasItemOption?function(t,e){var n=t.getRawDataItem(e);n&&n[i]&&(Ng.option=n[i],n=r(Ng),L(t.ensureUniqueItemVisual(e,"style"),n),Ng.option.decal&&(t.setItemVisual(e,"decal",Ng.option.decal),Ng.option.decal.dirty=!0),o in n)&&t.setItemVisual(e,"colorFromPalette",!1)}:null}}},Wc={performRawSeries:!0,overallReset:function(e){var i=N();e.eachSeries(function(t){var e,n=t.getColorBy();t.isColorBySeries()||(n=t.type+"-"+n,(e=i.get(n))||i.set(n,e={}),Pg(t).scope=e)}),e.eachSeries(function(i){var r,o,a,s,t,l;i.isColorBySeries()||e.isSeriesFiltered(i)||(r=i.getRawData(),o={},a=i.getData(),s=Pg(i).scope,t=i.visualStyleAccessPath||"itemStyle",l=Eg(i,t),a.each(function(t){var e=a.getRawIndex(t);o[e]=t}),r.each(function(t){var e,n=o[t];a.getItemVisual(n,"colorFromPalette")&&(n=a.ensureUniqueItemVisual(n,"style"),t=r.getName(t)||t+"",e=r.count(),n[l]=i.getColorFromPalette(t,s,e))}))})}},Bg=Math.PI;Fg.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){t=t.overallTask;t&&t.dirty()})},Fg.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}},Fg.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},Fg.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),e=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,r=t.get("large")&&i>=t.get("largeThreshold"),i="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:e,modDataCount:i,large:r}},Fg.prototype.restorePipelines=function(t){var i=this,r=i._pipelineMap=N();t.eachSeries(function(t){var e=t.getProgressive(),n=t.uid;r.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)})},Fg.prototype.prepareStageTasks=function(){var n=this._stageTaskMap,i=this.api.getModel(),r=this.api;O(this._allHandlers,function(t){var e=n.get(t.uid)||n.set(t.uid,{});kt(!(t.reset&&t.overallReset),""),t.reset&&this._createSeriesStageTask(t,e,i,r),t.overallReset&&this._createOverallStageTask(t,e,i,r)},this)},Fg.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},Fg.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},Fg.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},Fg.prototype._performStageTasks=function(t,s,l,u){u=u||{};var h=!1,c=this;function p(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}O(t,function(i,t){var e,n,r,o,a;u.visualType&&u.visualType!==i.visualType||(e=(n=c._stageTaskMap.get(i.uid)).seriesTaskMap,(n=n.overallTask)?((o=n.agentStubMap).each(function(t){p(u,t)&&(t.dirty(),r=!0)}),r&&n.dirty(),c.updatePayload(n,l),a=c.getPerformArgs(n,u.block),o.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},Fg.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},Fg.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())})},Fg.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},Fg.prototype._createSeriesStageTask=function(n,t,i,r){var o=this,a=t.seriesTaskMap,s=t.seriesTaskMap=N(),t=n.seriesType,e=n.getTargetSeries;function l(t){var e=t.uid,e=s.set(e,a&&a.get(e)||uf({plan:Ug,reset:Xg,count:Zg}));e.context={model:t,ecModel:i,api:r,useClearVisual:n.isVisual&&!n.isLayout,plan:n.plan,reset:n.reset,scheduler:o},o._pipe(t,e)}n.createOnAllSeries?i.eachRawSeries(l):t?i.eachRawSeriesByType(t,l):e&&e(i,r).each(l)},Fg.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||uf({reset:Vg}),a=(o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r},o.agentStubMap),s=o.agentStubMap=N(),e=t.seriesType,l=t.getTargetSeries,u=!0,h=!1;function c(t){var e=t.uid,e=s.set(e,a&&a.get(e)||(h=!0,uf({reset:Hg,onDirty:Gg})));e.context={model:t,overallProgress:u},e.agent=o,e.__block=u,r._pipe(t,e)}kt(!t.createOnAllSeries,""),e?n.eachRawSeriesByType(e,c):l?l(n,i).each(c):(u=!1,O(n.getSeries(),c)),h&&o.dirty()},Fg.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},Fg.wrapStageHandler=function(t,e){return(t=M(t)?{overallReset:t,seriesType:function(t){jg=null;try{t(Kg,$g)}catch(t){}return jg}(t)}:t).uid=Dc("stageHandler"),e&&(t.visualType=e),t};var zg=Fg;function Fg(t,e,n,i){this._stageTaskMap=N(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function Vg(t){t.overallReset(t.ecModel,t.api,t.payload)}function Hg(t){return t.overallProgress&&Wg}function Wg(){this.agent.dirty(),this.getDownstream().dirty()}function Gg(){this.agent&&this.agent.dirty()}function Ug(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Xg(t){t.useClearVisual&&t.data.clearAllVisual();t=t.resetDefines=po(t.reset(t.model,t.ecModel,t.api,t.payload));return 1<t.length?F(t,function(t,e){return Yg(e)}):qg}var qg=Yg(0);function Yg(o){return function(t,e){var n=e.data,i=e.resetDefines[o];if(i&&i.dataEach)for(var r=t.start;r<t.end;r++)i.dataEach(n,r);else i&&i.progress&&i.progress(t,n)}}function Zg(t){return t.data.count()}var jg,Kg={},$g={};function Qg(t,e){for(var n in e.prototype)t[n]=Ht}Qg(Kg,ed),Qg($g,od),Kg.eachSeriesByType=Kg.eachRawSeriesByType=function(t){jg=t},Kg.eachComponent=function(t){"series"===t.mainType&&t.subType&&(jg=t.subType)};function Jg(){return{axisLine:{lineStyle:{color:ty}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}}var _c=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Sc={color:_c,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],_c]},ty="#B9B8CE",wc="#100C2A",mc=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],_c={darkMode:!0,color:mc,backgroundColor:wc,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:ty}},textStyle:{color:ty},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:ty}},dataZoom:{borderColor:"#71708A",textStyle:{color:ty},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:ty}},timeline:{lineStyle:{color:ty},label:{color:ty},controlStyle:{color:ty,borderColor:ty}},calendar:{itemStyle:{color:wc},dayLabel:{color:ty},monthLabel:{color:ty},yearLabel:{color:ty}},timeAxis:Jg(),logAxis:Jg(),valueAxis:Jg(),categoryAxis:Jg(),line:{symbol:"circle"},graph:{color:mc},gauge:{title:{color:ty},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:ty},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}},ey=(_c.categoryAxis.splitLine.show=!1,ny.prototype.normalizeQuery=function(t){var e,a,s,l={},u={},h={};return H(t)?(e=Eo(t),l.mainType=e.main||null,l.subType=e.sub||null):(a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1},O(t,function(t,e){for(var n=!1,i=0;i<a.length;i++){var r=a[i],o=e.lastIndexOf(r);0<o&&o===e.length-r.length&&"data"!==(o=e.slice(0,o))&&(l.mainType=o,l[r.toLowerCase()]=t,n=!0)}s.hasOwnProperty(e)&&(u[e]=t,n=!0),n||(h[e]=t)})),{cptQuery:l,dataQuery:u,otherQuery:h}},ny.prototype.filter=function(t,e){var n,i,r,o,a,s=this.eventInfo;return!s||(n=s.targetEl,i=s.packedEvent,r=s.model,s=s.view,!r)||!s||(o=e.cptQuery,a=e.dataQuery,l(o,r,"mainType")&&l(o,r,"subType")&&l(o,r,"index","componentIndex")&&l(o,r,"name")&&l(o,r,"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]}},ny.prototype.afterTrigger=function(){this.eventInfo=null},ny);function ny(){}var iy=["symbol","symbolSize","symbolRotate","symbolOffset"],ry=iy.concat(["symbolKeepAspect"]),wc={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,r=0;r<iy.length;r++){var o=iy[r],u=a.get(o);M(u)?(i=!0,l[o]=u):n[o]=u}if(n.symbol=n.symbol||a.defaultSymbol,e.setVisual(L({legendIcon:a.legendIcon||n.symbol,symbolKeepAspect:a.get("symbolKeepAspect")},n)),!t.isSeriesFiltered(a))return s=ct(l),{dataEach:i?function(t,e){for(var n=a.getRawValue(e),i=a.getDataParams(e),r=0;r<s.length;r++){var o=s[r];t.setItemVisual(e,o,l[o](n,i))}}:null}}}},mc={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<ry.length;i++){var r=ry[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}:null}}};function oy(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,r=t.option.selectedMap,o=l.selected,a=0;a<o.length;a++)o[a].seriesIndex===i&&(n=Mo(e=t.getData(),l.fromActionPayload),s.trigger(u,{type:u,seriesId:t.id,name:V(n)?e.getName(n[0]):e.getName(n),selected:H(r)?r:L({},r)}))})}function ay(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}var sy=Math.round(9*Math.random()),ly="function"==typeof Object.defineProperty,uy=(hy.prototype.get=function(t){return this._guard(t)[this._id]},hy.prototype.set=function(t,e){t=this._guard(t);return ly?Object.defineProperty(t,this._id,{value:e,enumerable:!1,configurable:!0}):t[this._id]=e,this},hy.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},hy.prototype.has=function(t){return!!this._guard(t)[this._id]},hy.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},hy);function hy(){this._id="__ec_inner_"+sy++}var cy=as.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+r,i+e),t.lineTo(n-r,i+e),t.closePath()}}),py=as.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+r,i),t.lineTo(n,i+e),t.lineTo(n-r,i),t.closePath()}}),dy=as.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,e=Math.max(r,e.height),r=r/2,o=r*r/(e-r),e=i-e+r+o,a=Math.asin(o/r),s=Math.cos(a)*r,l=Math.sin(a),u=Math.cos(a),h=.6*r,c=.7*r;t.moveTo(n-s,e+o),t.arc(n,e,r,Math.PI-a,2*Math.PI+a),t.bezierCurveTo(n+s-l*h,e+o+u*h,n,i-c,n,i),t.bezierCurveTo(n,i-c,n-s+l*h,e+o+u*h,n-s,e+o),t.closePath()}}),fy=as.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,e=e.y,i=i/3*2;t.moveTo(r,e),t.lineTo(r+i,e+n),t.lineTo(r,e+n/4*3),t.lineTo(r-i,e+n),t.lineTo(r,e),t.closePath()}}),gy={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){n=Math.min(n,i);r.x=t,r.y=e,r.width=n,r.height=n},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},yy={},my=(O({line:Uu,rect:Ss,roundRect:Ss,square:Ss,circle:ou,diamond:py,pin:dy,arrow:fy,triangle:cy},function(t,e){yy[e]=new t}),as.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var t=Cr(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,r=e.symbolType;"none"!==r&&(i=(i=yy[r])||yy[r="rect"],gy[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n))}}));function vy(t,e){var n;"image"!==this.type&&(n=this.style,this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw())}function _y(t,e,n,i,r,o,a){var s=0===t.indexOf("empty");return(a=0===(t=s?t.substr(5,1).toLowerCase()+t.substr(6):t).indexOf("image://")?zh(t.slice(8),new B(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?Bh(t.slice(7),{},new B(e,n,i,r),a?"center":"cover"):new my({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=s,a.setColor=vy,o&&a.setColor(o),a}function xy(t){return isFinite(t)}function wy(t,e,n){for(var i,r,o,a,s,l,u,h,c,p="radial"===e.type?(i=t,r=e,a=(o=n).width,s=o.height,l=Math.min(a,s),u=null==r.x?.5:r.x,h=null==r.y?.5:r.y,c=null==r.r?.5:r.r,r.global||(u=u*a+o.x,h=h*s+o.y,c*=l),u=xy(u)?u:.5,h=xy(h)?h:.5,c=0<=c&&xy(c)?c:.5,i.createRadialGradient(u,h,0,u,h,c)):(r=t,a=n,o=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||(o=o*a.width+a.x,l=l*a.width+a.x,i=i*a.height+a.y,u=u*a.height+a.y),o=xy(o)?o:0,l=xy(l)?l:1,i=xy(i)?i:0,u=xy(u)?u:0,r.createLinearGradient(o,i,l,u)),d=e.colorStops,f=0;f<d.length;f++)p.addColorStop(d[f].offset,d[f].color);return p}function by(t){return parseInt(t,10)}function Sy(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],e=["paddingRight","paddingBottom"][e];return null!=n[i]&&"auto"!==n[i]?parseFloat(n[i]):(n=document.defaultView.getComputedStyle(t),(t[r]||by(n[i])||by(t.style[i]))-(by(n[o])||0)-(by(n[e])||0)|0)}function My(t){var e,n=t.style,i=n.lineDash&&0<n.lineWidth&&(r=n.lineDash,i=n.lineWidth,r&&"solid"!==r&&0<i?"dashed"===r?[4*i,2*i]:"dotted"===r?[i]:gt(r)?[r]:V(r)?r:null:null),r=n.lineDashOffset;return i&&(e=n.strokeNoScale&&t.getLineScale?t.getLineScale():1)&&1!==e&&(i=F(i,function(t){return t/e}),r/=e),[i,r]}var Ty=new Wa(!0);function Cy(t){var e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))}function ky(t){return"string"==typeof t&&"none"!==t}function Iy(t){t=t.fill;return null!=t&&"none"!==t}function Dy(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 Ay(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 Py(t,e,n){var n=Yo(e.image,e.__image,n);if(jo(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)*Wt),n.scaleSelf(e.scaleX||1,e.scaleY||1),t.setTransform(n)),t}var Ly=["shadowBlur","shadowOffsetX","shadowOffsetY"],Oy=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Ry(t,e,n,i,r){var o,a=!1;if(!i&&e===(n=n||{}))return!1;!i&&e.opacity===n.opacity||(Hy(t,r),a=!0,o=Math.max(Math.min(e.opacity,1),0),t.globalAlpha=isNaN(o)?ua.opacity:o),!i&&e.blend===n.blend||(a||(Hy(t,r),a=!0),t.globalCompositeOperation=e.blend||ua.blend);for(var s=0;s<Ly.length;s++){var l=Ly[s];!i&&e[l]===n[l]||(a||(Hy(t,r),a=!0),t[l]=t.dpr*(e[l]||0))}return!i&&e.shadowColor===n.shadowColor||(a||(Hy(t,r),a=!0),t.shadowColor=e.shadowColor||ua.shadowColor),a}function Ey(t,e,n,i,r){var o=Wy(e,r.inHover),a=i?null:n&&Wy(n,r.inHover)||{};if(o!==a){var s=Ry(t,o,a,i,r);(i||o.fill!==a.fill)&&(s||(Hy(t,r),s=!0),ky(o.fill))&&(t.fillStyle=o.fill),(i||o.stroke!==a.stroke)&&(s||(Hy(t,r),s=!0),ky(o.stroke))&&(t.strokeStyle=o.stroke),!i&&o.opacity===a.opacity||(s||(Hy(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()&&(n=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1),t.lineWidth!==n)&&(s||(Hy(t,r),s=!0),t.lineWidth=n);for(var l=0;l<Oy.length;l++){var u=Oy[l],h=u[0];!i&&o[h]===a[h]||(s||(Hy(t,r),s=!0),t[h]=o[h]||u[1])}}}function Ny(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 By=1,zy=2,Fy=3,Vy=4;function Hy(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Wy(t,e){return e&&t.__hoverStyle||t.style}function Gy(t,e){Uy(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Uy(t,e,n,N){var i=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~vn,e.__isRendered=!1;var r,o,a,s,l,u,h,c,p,d,f,g,y,m,v,_,x,w,b,S,M,T,C,k=e.__clipPaths,I=n.prevElClipPaths,D=!1,A=!1;if(!I||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}}(k,I)){if(I&&I.length&&(Hy(t,n),t.restore(),A=D=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),k&&k.length){Hy(t,n),t.save();var B=k,z=t;I=n;for(var F=!1,V=0;V<B.length;V++){var H=B[V],F=F||H.isZeroArea();Ny(z,H),z.beginPath(),H.buildPath(z,H.shape),z.clip()}I.allClipped=F,D=!0}n.prevElClipPaths=k}if(n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var I=n.prevEl,P=(I||(A=D=!0),e instanceof as&&e.autoBatch&&(k=e.style,P=Iy(k),C=Cy(k),!(k.lineDash||!(+P^+C)||P&&"string"!=typeof k.fill||C&&"string"!=typeof k.stroke||k.strokePercent<1||k.strokeOpacity<1||k.fillOpacity<1))),D=(D||(C=i,k=I.transform,C&&k?C[0]!==k[0]||C[1]!==k[1]||C[2]!==k[2]||C[3]!==k[3]||C[4]!==k[4]||C[5]!==k[5]:C||k)?(Hy(t,n),Ny(t,e)):P||Hy(t,n),Wy(e,n.inHover));if(e instanceof as)n.lastDrawType!==By&&(A=!0,n.lastDrawType=By),Ey(t,e,I,A,n),P&&(n.batchFill||n.batchStroke)||t.beginPath(),i=t,k=e,O=P,y=Cy(a=D),m=Iy(a),v=a.strokePercent,_=v<1,x=!k.path,k.silent&&!_||!x||k.createPathProxy(),w=k.path||Ty,b=k.__dirty,O||(s=a.fill,T=a.stroke,l=m&&!!s.colorStops,u=y&&!!T.colorStops,h=m&&!!s.image,c=y&&!!T.image,M=g=f=d=p=void 0,(l||u)&&(M=k.getBoundingRect()),l&&(p=b?wy(i,s,M):k.__canvasFillGradient,k.__canvasFillGradient=p),u&&(d=b?wy(i,T,M):k.__canvasStrokeGradient,k.__canvasStrokeGradient=d),h&&(f=b||!k.__canvasFillPattern?Py(i,s,k):k.__canvasFillPattern,k.__canvasFillPattern=f),c&&(g=b||!k.__canvasStrokePattern?Py(i,T,k):k.__canvasStrokePattern,k.__canvasStrokePattern=f),l?i.fillStyle=p:h&&(f?i.fillStyle=f:m=!1),u?i.strokeStyle=d:c&&(g?i.strokeStyle=g:y=!1)),M=k.getGlobalScale(),w.setScale(M[0],M[1],k.segmentIgnoreThreshold),i.setLineDash&&a.lineDash&&(S=(s=My(k))[0],L=s[1]),T=!0,(x||b&_n)&&(w.setDPR(i.dpr),_?w.setContext(null):(w.setContext(i),T=!1),w.reset(),k.buildPath(w,k.shape,O),w.toStatic(),k.pathUpdated()),T&&w.rebuildPath(i,_?v:1),S&&(i.setLineDash(S),i.lineDashOffset=L),O||(a.strokeFirst?(y&&Ay(i,a),m&&Dy(i,a)):(m&&Dy(i,a),y&&Ay(i,a))),S&&i.setLineDash([]),P&&(n.batchFill=D.fill||"",n.batchStroke=D.stroke||"");else if(e instanceof us)n.lastDrawType!==Fy&&(A=!0,n.lastDrawType=Fy),Ey(t,e,I,A,n),l=t,p=e,null!=(f=(h=D).text)&&(f+=""),f&&(l.font=h.font||j,l.textAlign=h.textAlign,l.textBaseline=h.textBaseline,d=u=void 0,l.setLineDash&&h.lineDash&&(u=(p=My(p))[0],d=p[1]),u&&(l.setLineDash(u),l.lineDashOffset=d),h.strokeFirst?(Cy(h)&&l.strokeText(f,h.x,h.y),Iy(h)&&l.fillText(f,h.x,h.y)):(Iy(h)&&l.fillText(f,h.x,h.y),Cy(h)&&l.strokeText(f,h.x,h.y)),u)&&l.setLineDash([]);else if(e instanceof fs)n.lastDrawType!==zy&&(A=!0,n.lastDrawType=zy),c=I,g=A,Ry(t,Wy(e,(M=n).inHover),c&&Wy(c,M.inHover),g,M),s=t,x=D,(k=(b=e).__image=Yo(x.image,b.__image,b,b.onload))&&jo(k)&&(T=x.x||0,w=x.y||0,_=b.getWidth(),b=b.getHeight(),v=k.width/k.height,null==_&&null!=b?_=b*v:null==b&&null!=_?b=_/v:null==_&&null==b&&(_=k.width,b=k.height),x.sWidth&&x.sHeight?(r=x.sx||0,o=x.sy||0,s.drawImage(k,r,o,x.sWidth,x.sHeight,T,w,_,b)):x.sx&&x.sy?(v=_-(r=x.sx),x=b-(o=x.sy),s.drawImage(k,r,o,v,x,T,w,_,b)):s.drawImage(k,T,w,_,b));else if(e.getTemporalDisplayables){n.lastDrawType!==Vy&&(A=!0,n.lastDrawType=Vy);{var W=t;var L=e;var O=n;var G=L.getDisplayables(),U=L.getTemporalDisplayables();W.save();var R,X,q={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:O.viewWidth,viewHeight:O.viewHeight,inHover:O.inHover};for(R=L.getCursor(),X=G.length;R<X;R++)(E=G[R]).beforeBrush&&E.beforeBrush(),E.innerBeforeBrush(),Uy(W,E,q,R===X-1),E.innerAfterBrush(),E.afterBrush&&E.afterBrush(),q.prevEl=E;for(var E,Y=0,Z=U.length;Y<Z;Y++)(E=U[Y]).beforeBrush&&E.beforeBrush(),E.innerBeforeBrush(),Uy(W,E,q,Y===Z-1),E.innerAfterBrush(),E.afterBrush&&E.afterBrush(),q.prevEl=E;L.clearTemporalDisplayables(),L.notClear=!0,W.restore()}}P&&N&&Hy(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),(n.prevEl=e).__dirty=0,e.__isRendered=!0}}var Xy=new uy,qy=new ei(100),Yy=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Zy(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type,e=(t.dirty&&Xy.delete(t),Xy.get(t));if(e)return e;for(var o,a=z(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"===a.backgroundColor&&(a.backgroundColor=null),{repeat:"repeat"}),s=e,l=[n],u=!0,h=0;h<Yy.length;++h){var c=a[Yy[h]];if(null!=c&&!V(c)&&!H(c)&&!gt(c)&&"boolean"!=typeof c){u=!1;break}l.push(c)}u&&(o=l.join(",")+(r?"-svg":""),v=qy.get(o))&&(r?s.svgElement=v:s.image=v);var p,d=function t(e){if(!e||0===e.length)return[[0,0]];if(gt(e))return[[o=Math.ceil(e),o]];for(var n=!0,i=0;i<e.length;++i)if(!gt(e[i])){n=!1;break}if(n)return t([e]);var r=[];for(i=0;i<e.length;++i){var o;gt(e[i])?(o=Math.ceil(e[i]),r.push([o,o])):(o=F(e[i],function(t){return Math.ceil(t)})).length%2==1?r.push(o.concat(o)):r.push(o)}return r}(a.dashArrayX),f=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(gt(t))return[e=Math.ceil(t),e];var e=F(t,function(t){return Math.ceil(t)});return t.length%2?e.concat(e):e}(a.dashArrayY),g=function t(e){if(!e||0===e.length)return[["rect"]];if(H(e))return[[e]];for(var n=!0,i=0;i<e.length;++i)if(!H(e[i])){n=!1;break}if(n)return t([e]);var r=[];for(i=0;i<e.length;++i)H(e[i])?r.push([e[i]]):r.push(e[i]);return r}(a.symbol),y=F(d,jy),m=jy(f),v=!r&&W.createCanvas(),_=r&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var t=1,e=0,n=y.length;e<n;++e)t=lo(t,y[e]);for(var i=1,e=0,n=g.length;e<n;++e)i=lo(i,g[e].length);t*=i;var r=m*y.length*g.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();v&&(v.width=x.width*n,v.height=x.height*n,p=v.getContext("2d")),p&&(p.clearRect(0,0,v.width,v.height),a.backgroundColor)&&(p.fillStyle=a.backgroundColor,p.fillRect(0,0,v.width,v.height));for(var w=0,b=0;b<f.length;++b)w+=f[b];if(!(w<=0))for(var S,M=-m,T=0,C=0,k=0;M<x.height;){if(T%2==0){for(var I=C/2%g.length,D=0,A=0,P=0;D<2*x.width;){for(var L,O,R,N,E,B=0,b=0;b<d[k].length;++b)B+=d[k][b];if(B<=0)break;A%2==0&&(O=.5*(1-a.symbolSize),L=D+d[k][A]*O,O=M+f[T]*O,R=d[k][A]*a.symbolSize,N=f[T]*a.symbolSize,E=P/2%g[I].length,L=L,E=g[I][E],S=void 0,E=_y(E,L*(S=r?1:n),O*S,R*S,N*S,a.color,a.symbolKeepAspect),r?(L=i.painter.renderOneToVNode(E))&&_.children.push(L):Gy(p,E)),D+=d[k][A],++P,++A===d[k].length&&(A=0)}++k===d.length&&(k=0)}M+=f[T],++C,++T===f.length&&(T=0)}return u&&qy.put(o,v||_),s.image=v,s.svgElement=_,s.svgWidth=x.width,s.svgHeight=x.height,e.rotation=a.rotation,e.scaleX=e.scaleY=r?1:1/n,Xy.set(t,e),t.dirty=!1,e}function jy(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}var Ky=new he,$y={};var py={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}},Qy="__flagInMainProcess",Jy="__pendingUpdate",t0="__needsUpdateStatus",e0=/^[a-zA-Z0-9_]+$/,n0="__connectUpdateStatus";function i0(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!this.isDisposed())return o0(this,n,t);this.id}}function r0(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o0(this,n,t)}}function o0(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),he.prototype[e].apply(t,n)}u(C0,M0=he);var a0,s0,l0,u0,h0,c0,p0,d0,f0,g0,y0,m0,v0,_0,x0,w0,b0,S0,M0,T0=C0,dy=T0.prototype;function C0(){return null!==M0&&M0.apply(this,arguments)||this}dy.on=r0("on"),dy.off=r0("off");u(m,k0=he),m.prototype._onframe=function(){if(!this._disposed){S0(this);var t=this._scheduler;if(this[Jy]){var e=this[Jy].silent;this[Qy]=!0;try{a0(this),u0.update.call(this,null,this[Jy].updateParams)}catch(t){throw this[Qy]=!1,this[Jy]=null,t}this._zr.flush(),this[Qy]=!1,this[Jy]=null,d0.call(this,e),f0.call(this,e)}else if(t.unfinished){var n=1,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date}while(t.performSeriesTasks(i),t.performDataProcessorTasks(i),c0(this,i),t.performVisualTasks(i),_0(this,this._model,r,"remain",{}),0<(n-=+new Date-o)&&t.unfinished);t.unfinished||this._zr.flush()}}},m.prototype.getDom=function(){return this._dom},m.prototype.getId=function(){return this.id},m.prototype.getZr=function(){return this._zr},m.prototype.isSSR=function(){return this._ssr},m.prototype.setOption=function(t,e,n){if(!this[Qy])if(this._disposed)this.id;else{R(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[Qy]=!0,this._model&&!e||(e=new cd(this._api),a=this._theme,(s=this._model=new ed).scheduler=this._scheduler,s.ssr=this._ssr,s.init(null,null,null,a,this._locale,e)),this._model.setOption(t,{replaceMerge:r},z0);var i,r,o,a,s={seriesTransition:o,optionChanged:!0};if(n)this[Jy]={silent:i,updateParams:s},this[Qy]=!1,this.getZr().wakeUp();else{try{a0(this),u0.update.call(this,null,s)}catch(t){throw this[Jy]=null,this[Qy]=!1,t}this._ssr||this._zr.flush(),this[Jy]=null,this[Qy]=!1,d0.call(this,i),f0.call(this,i)}}},m.prototype.setTheme=function(){},m.prototype.getModel=function(){return this._model},m.prototype.getOption=function(){return this._model&&this._model.getOption()},m.prototype.getWidth=function(){return this._zr.getWidth()},m.prototype.getHeight=function(){return this._zr.getHeight()},m.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||b.hasGlobalWindow&&window.devicePixelRatio||1},m.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},m.prototype.renderToCanvas=function(t){return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},m.prototype.renderToSVGString=function(t){return this._zr.painter.renderToString({useViewBox:(t=t||{}).useViewBox})},m.prototype.getSvgDataURL=function(){var t;if(b.svgSupported)return O((t=this._zr).storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},m.prototype.getDataURL=function(t){var e,n,i,r;if(!this._disposed)return r=(t=t||{}).excludeComponents,e=this._model,n=[],i=this,O(r,function(t){e.eachComponent({mainType:t},function(t){t=i._componentsMap[t.__viewId];t.group.ignore||(n.push(t),t.group.ignore=!0)})}),r="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png")),O(n,function(t){t.group.ignore=!1}),r;this.id},m.prototype.getConnectedDataURL=function(i){var r,o,a,s,l,u,h,c,p,e,t,n,d,f,g;if(!this._disposed)return r="svg"===i.type,o=this.group,a=Math.min,s=Math.max,G0[o]?(u=l=1/0,c=h=-1/0,p=[],e=i&&i.pixelRatio||this.getDevicePixelRatio(),O(W0,function(t,e){var n;t.group===o&&(n=r?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=W.createCanvas(),(f=Ur(d,{renderer:r?"svg":"canvas"})).resize({width:t,height:n}),r?(g="",O(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 Ss({shape:{x:0,y:0,width:t,height:n},style:{fill:i.connectedBackgroundColor}})),O(p,function(t){t=new fs({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},m.prototype.convertToPixel=function(t,e){return h0(this,"convertToPixel",t,e)},m.prototype.convertFromPixel=function(t,e){return h0(this,"convertFromPixel",t,e)},m.prototype.containPixel=function(t,i){var r;if(!this._disposed)return O(ko(this._model,t),function(t,n){0<=n.indexOf("Models")&&O(t,function(t){var e=t.coordinateSystem;e&&e.containPoint?r=r||!!e.containPoint(i):"seriesModels"===n&&(e=this._chartsMap[t.__viewId])&&e.containPoint&&(r=r||e.containPoint(i,t))},this)},this),!!r;this.id},m.prototype.getVisual=function(t,e){var t=ko(this._model,t,{defaultMainType:"series"}),n=t.seriesModel.getData(),t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;if(null!=t){var i=n,r=t,o=e;switch(o){case"color":return i.getItemVisual(r,"style")[i.getVisual("drawType")];case"opacity":return i.getItemVisual(r,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return i.getItemVisual(r,o)}}else{var a=n,s=e;switch(s){case"color":return a.getVisual("style")[a.getVisual("drawType")];case"opacity":return a.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return a.getVisual(s)}}},m.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},m.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},m.prototype._initEvents=function(){var t,n,i,s=this;O(R0,function(a){function t(t){var n,e,i,r=s.getModel(),o=t.target;"globalout"===a?n={}:o&&ay(o,function(t){var e,t=Vs(t);return t&&null!=t.dataIndex?(e=t.dataModel||r.getSeriesByIndex(t.seriesIndex),n=e&&e.getDataParams(t.dataIndex,t.dataType,o)||{},1):t.eventData&&(n=L({},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&&r.getComponent(e,i))&&s["series"===e.mainType?"_chartsMap":"_componentsMap"][e.__viewId],n.event=t,n.type=a,s._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:e,view:i},s.trigger(a,n))}t.zrEventfulCallAtLast=!0,s._zr.on(a,t,s)}),O(N0,function(t,e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),O(["selectchanged"],function(e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),t=this._messageCenter,i=(n=this)._api,t.on("selectchanged",function(t){var e=i.getModel();t.isFromClick?(oy("map","selectchanged",n,e,t),oy("pie","selectchanged",n,e,t)):"select"===t.fromAction?(oy("map","selected",n,e,t),oy("pie","selected",n,e,t)):"unselect"===t.fromAction&&(oy("map","unselected",n,e,t),oy("pie","unselected",n,e,t))})},m.prototype.isDisposed=function(){return this._disposed},m.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},m.prototype.dispose=function(){var t,e,n;this._disposed?this.id:(this._disposed=!0,this.getDom()&&Po(this.getDom(),q0,""),e=(t=this)._api,n=t._model,O(t._componentsViews,function(t){t.dispose(n,e)}),O(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 W0[t.id])},m.prototype.resize=function(t){if(!this[Qy])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[Jy]&&(null==n&&(n=this[Jy].silent),e=!0,this[Jy]=null),this[Qy]=!0;try{e&&a0(this),u0.update.call(this,{type:"resize",animation:L({duration:0},t&&t.animation)})}catch(t){throw this[Qy]=!1,t}this[Qy]=!1,d0.call(this,n),f0.call(this,n)}}},m.prototype.showLoading=function(t,e){this._disposed?this.id:(R(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),H0[t]&&(t=H0[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},m.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},m.prototype.makeActionFromEvent=function(t){var e=L({},t);return e.type=N0[t.type],e},m.prototype.dispatchAction=function(t,e){var n;this._disposed?this.id:(R(e)||(e={silent:!!e}),E0[t.type]&&this._model&&(this[Qy]?this._pendingActions.push(t):(n=e.silent,p0.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&b.browser.weChat&&this._throttledZrFlush(),d0.call(this,n),f0.call(this,n))))},m.prototype.updateLabelLayout=function(){Ky.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},m.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())},m.internalField=(a0=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),s0(t,!0),s0(t,!1),e.plan()},s0=function(t,r){for(var o=t._model,a=t._scheduler,s=r?t._componentsViews:t._chartsViews,l=r?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=Eo(t.type),(n=new(r?gg.getClass(e.main,e.sub):xg.getClass(e.sub))).init(o,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},r||a.prepareView(n,t,o,h)}for(r?o.eachComponent(function(t,e){"series"!==t&&n(e)}):o.eachSeries(n),e=0;e<s.length;){var i=s[e];i.__alive?e++:(r||i.renderTask.dispose(),u.remove(i.group),i.dispose(o,h),s.splice(e,1),l[i.__id]===i&&delete l[i.__id],i.__id=i.group.__ecComponentInfo=null)}},l0=function(p,e,d,n,t){var i,f,r=p._model;function o(t){t&&t.__alive&&t[e]&&t[e](t.__model,r,p._api,d)}r.setUpdatePayload(d),n?((i={})[n+"Id"]=d[n+"Id"],i[n+"Index"]=d[n+"Index"],i[n+"Name"]=d[n+"Name"],i={mainType:n,query:i},t&&(i.subType=t),null!=(t=d.excludeSeriesId)&&(f=N(),O(po(t),function(t){t=xo(t,null);null!=t&&f.set(t,!0)})),r&&r.eachComponent(i,function(t){if(!f||null==f.get(t.id))if(Bl(d))if(t instanceof sg){if(d.type===Ks&&!d.notBlur&&!t.get(["emphasis","disabled"])){var e=t,n=d,i=p._api,r=e.seriesIndex,o=e.getData(n.dataType);if(o){var n=(V(n=Mo(o,n))?n[0]:n)||0,a=o.getItemGraphicEl(n);if(!a)for(var s=o.count(),l=0;!a&&l<s;)a=o.getItemGraphicEl(l++);a?Tl(r,(n=Vs(a)).focus,n.blurScope,i):(n=e.get(["emphasis","focus"]),e=e.get(["emphasis","blurScope"]),null!=n&&Tl(r,n,e,i))}}}else n=(r=kl(t.mainType,t.componentIndex,d.name,p._api)).focusSelf,e=r.dispatchers,d.type===Ks&&n&&!d.notBlur&&Cl(t.mainType,t.componentIndex,p._api),e&&O(e,function(t){(d.type===Ks?vl:_l)(t)});else Nl(d)&&t instanceof sg&&(i=t,u=d,p._api,Nl(u)&&(h=u.dataType,V(c=Mo(i.getData(h),u))||(c=[c]),i[u.type===tl?"toggleSelect":u.type===Qs?"select":"unselect"](c,h)),Il(t),b0(p));var u,h,c},p),r&&r.eachComponent(i,function(t){f&&null!=f.get(t.id)||o(p["series"===n?"_chartsMap":"_componentsMap"][t.__viewId])},p)):O([].concat(p._componentsViews).concat(p._chartsViews),o)},u0={prepareAndUpdate:function(t){a0(this),u0.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(t,e){var n=this._model,i=this._api,r=this._zr,o=this._coordSysMgr,a=this._scheduler;n&&(n.setUpdatePayload(t),a.restoreData(n,t),a.performSeriesTasks(n),o.create(n,i),a.performDataProcessorTasks(n,t),c0(this,n),o.update(n,i),D0(n),a.performVisualTasks(n,t),m0(this,n,i,t,e),o=n.get("backgroundColor")||"transparent",a=n.get("darkMode"),r.setBackgroundColor(o),null!=a&&"auto"!==a&&r.setDarkMode(a),Ky.trigger("afterupdate",n,i))},updateTransform:function(n){var i,r,o=this,a=this._model,s=this._api;a&&(a.setUpdatePayload(n),i=[],a.eachComponent(function(t,e){"series"!==t&&(t=o.getViewOfComponentModel(e))&&t.__alive&&(!t.updateTransform||(e=t.updateTransform(e,a,s,n))&&e.update)&&i.push(t)}),r=N(),a.eachSeries(function(t){var e=o._chartsMap[t.__viewId];(!e.updateTransform||(e=e.updateTransform(t,a,s,n))&&e.update)&&r.set(t.uid,1)}),D0(a),this._scheduler.performVisualTasks(a,n,{setDirty:!0,dirtyMap:r}),_0(this,a,s,n,{},r),Ky.trigger("afterupdate",a,s))},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),xg.markUpdateMethod(t,"updateView"),D0(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),m0(this,e,this._api,t,{}),Ky.trigger("afterupdate",e,this._api))},updateVisual:function(n){var i=this,r=this._model;r&&(r.setUpdatePayload(n),r.eachSeries(function(t){t.getData().clearAllVisual()}),xg.markUpdateMethod(n,"updateVisual"),D0(r),this._scheduler.performVisualTasks(r,n,{visualType:"visual",setDirty:!0}),r.eachComponent(function(t,e){"series"!==t&&(t=i.getViewOfComponentModel(e))&&t.__alive&&t.updateVisual(e,r,i._api,n)}),r.eachSeries(function(t){i._chartsMap[t.__viewId].updateVisual(t,r,i._api,n)}),Ky.trigger("afterupdate",r,this._api))},updateLayout:function(t){u0.update.call(this,t)}},h0=function(t,e,n,i){if(t._disposed)t.id;else for(var r=t._model,o=t._coordSysMgr.getCoordinateSystems(),a=ko(r,n),s=0;s<o.length;s++){var l=o[s];if(l[e]&&null!=(l=l[e](r,a,i)))return l}},c0=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},p0=function(i,t){var r=this,e=this.getModel(),n=i.type,o=i.escapeConnect,a=E0[n],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),h=null!=l[0]&&Eo(l[0]),l=(this[Qy]=!0,[i]),c=!1;i.batch&&(c=!0,l=F(i.batch,function(t){return(t=z(L({},t),i)).batch=null,t}));var p=[],d=Nl(i),f=Bl(i);if(f&&Ml(this._api),O(l,function(t){var e,n;(y=(y=a.action(t,r._model,r._api))||L({},t)).type=s.event||y.type,p.push(y),f?(e=(n=Io(i)).queryOptionMap,n=n.mainTypeSpecified?e.keys()[0]:"series",l0(r,u,t,n),b0(r)):d?(l0(r,u,t,"series"),b0(r)):h&&l0(r,u,t,h.main,h.sub)}),"none"!==u&&!f&&!d&&!h)try{this[Jy]?(a0(this),u0.update.call(this,i),this[Jy]=null):u0[u].call(this,i)}catch(i){throw this[Qy]=!1,i}var g,y=c?{type:s.event||n,escapeConnect:o,batch:p}:p[0];this[Qy]=!1,t||((l=this._messageCenter).trigger(y.type,y),d&&(c={type:"selectchanged",escapeConnect:o,selected:(g=[],e.eachSeries(function(n){O(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),g.push(e))})}),g),isFromClick:i.isFromClick||!1,fromAction:i.type,fromActionPayload:i},l.trigger(c.type,c)))},d0=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();p0.call(this,n,t)}},f0=function(t){t||this.trigger("updated")},g0=function(e,n){e.on("rendered",function(t){n.trigger("rendered",t),!e.animation.isFinished()||n[Jy]||n._scheduler.unfinished||n._pendingActions.length||n.trigger("finished")})},y0=function(t,a){t.on("mouseover",function(t){var e,n,i,r,o=ay(t.target,El);o&&(o=o,e=t,t=a._api,n=Vs(o),i=(r=kl(n.componentMainType,n.componentIndex,n.componentHighDownName,t)).dispatchers,r=r.focusSelf,i?(r&&Cl(n.componentMainType,n.componentIndex,t),O(i,function(t){return yl(t,e)})):(Tl(n.seriesIndex,n.focus,n.blurScope,t),"self"===n.focus&&Cl(n.componentMainType,n.componentIndex,t),yl(o,e)),b0(a))}).on("mouseout",function(t){var e,n,i=ay(t.target,El);i&&(i=i,e=t,Ml(t=a._api),(n=kl((n=Vs(i)).componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers)?O(n,function(t){return ml(t,e)}):ml(i,e),b0(a))}).on("click",function(t){var e,t=ay(t.target,function(t){return null!=Vs(t).dataIndex},!0);t&&(e=t.selected?"unselect":"select",t=Vs(t),a._api.dispatchAction({type:e,dataType:t.dataType,dataIndexInside:t.dataIndex,seriesIndex:t.seriesIndex,isFromClick:!0}))})},m0=function(t,e,n,i,r){var o,a,s,l,u,h,c;u=[],c=!(h=[]),(o=e).eachComponent(function(t,e){var n=e.get("zlevel")||0,i=e.get("z")||0,r=e.getZLevelKey();c=c||!!r,("series"===t?h:u).push({zlevel:n,z:i,idx:e.componentIndex,type:t,key:r})}),c&&(mn(l=u.concat(h),function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),O(l,function(t){var e=o.getComponent(t.type,t.idx),n=t.zlevel,t=t.key;null!=a&&(n=Math.max(a,n)),t?(n===a&&t!==s&&n++,s=t):s&&(n===a&&n++,s=""),a=n,e.setZLevel(n)})),v0(t,e,n,i,r),O(t._chartsViews,function(t){t.__alive=!1}),_0(t,e,n,i,r),O(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},v0=function(t,n,i,r,e,o){O(o||t._componentsViews,function(t){var e=t.__model;L0(0,t),t.render(e,n,i,r),P0(e,t),O0(e,t)})},_0=function(r,t,e,o,n,a){var i,s,l,u,h=r._scheduler,c=(n=L(n||{},{updatedSeries:t.getSeries()}),Ky.trigger("series:beforeupdate",t,e,n),!1);t.eachSeries(function(t){var e,n=r._chartsMap[t.__viewId],i=(n.__alive=!0,n.renderTask);h.updatePayload(i,o),L0(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)}),Il(t)}),h.unfinished=c||h.unfinished,Ky.trigger("series:layoutlabels",t,e,n),Ky.trigger("series:transition",t,e,n),t.eachSeries(function(t){var e=r._chartsMap[t.__viewId];P0(t,e),O0(t,e)}),s=t,l=(i=r)._zr.storage,u=0,l.traverse(function(t){t.isGroup||u++}),u>s.get("hoverLayerThreshold")&&!b.node&&!b.worker&&s.eachSeries(function(t){t.preventUsingHoverLayer||(t=i._chartsMap[t.__viewId]).__alive&&t.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}),Ky.trigger("series:afterupdate",t,e,n)},b0=function(t){t[t0]=!0,t.getZr().wakeUp()},S0=function(t){t[t0]&&(t.getZr().storage.traverse(function(t){Th(t)||A0(t)}),t[t0]=!1)},x0=function(n){return u(t,e=od),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){vl(t,e),b0(n)},t.prototype.leaveEmphasis=function(t,e){_l(t,e),b0(n)},t.prototype.enterBlur=function(t){pl(t,sl),b0(n)},t.prototype.leaveBlur=function(t){xl(t),b0(n)},t.prototype.enterSelect=function(t){wl(t),b0(n)},t.prototype.leaveSelect=function(t){bl(t),b0(n)},t.prototype.getModel=function(){return n.getModel()},t.prototype.getViewOfComponentModel=function(t){return n.getViewOfComponentModel(t)},t.prototype.getViewOfSeriesModel=function(t){return n.getViewOfSeriesModel(t)},new t(n);function t(){return null!==e&&e.apply(this,arguments)||this}var e},void(w0=function(i){function r(t,e){for(var n=0;n<t.length;n++)t[n][n0]=e}O(N0,function(t,e){i._messageCenter.on(e,function(t){var e,n;!G0[i.group]||0===i[n0]||t&&t.escapeConnect||(e=i.makeActionFromEvent(t),n=[],O(W0,function(t){t!==i&&t.group===i.group&&n.push(t)}),r(n,0),O(n,function(t){1!==t[n0]&&t.dispatchAction(e)}),r(n,2))})})}));var k0,I0=m,fy=I0.prototype;function m(t,e,n){var i=k0.call(this,new ey)||this,t=(i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},H(e)&&(e=V0[e]),i._dom=t,i._zr=Ur(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:E(n.useDirtyRect,!1),useCoarsePointer:E(n.useCoarsePointer,"auto"),pointerSize:n.pointerSize})),n=(i._ssr=n.ssr,i._throttledZrFlush=Ag(pt(t.flush,t),17),(e=S(e))&&Pd(e,!0),i._theme=e,i._locale=H(e=n.locale||Ec)?(n=Oc[e.toUpperCase()]||{},e===Ac||e===Pc?S(n):d(S(n),S(Oc[Lc]),!1)):d(S(e),S(Oc[Lc]),!1),i._coordSysMgr=new ld,i._api=x0(i));function r(t,e){return t.__prio-e.__prio}return mn(F0,r),mn(B0,r),i._scheduler=new zg(i,n,B0,F0),i._messageCenter=new T0,i._initEvents(),i.resize=pt(i.resize,i),t.animation.on("frame",i._onframe,i),g0(t,i),y0(t,i),At(i),i}function D0(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function A0(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),t.hoverState===Ys&&t.states.emphasis?e.push("emphasis"):t.hoverState===qs&&t.states.blur&&e.push("blur"),t.useStates(e)}function P0(t,e){var n,i;t.preventAutoZ||(n=t.get("z")||0,i=t.get("zlevel")||0,e.eachRendered(function(t){return function t(e,n,i,r){var o=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var s=e.childrenRef(),l=0;l<s.length;l++)r=Math.max(t(s[l],n,i,r),r);else e.z=n,e.zlevel=i,r=Math.max(e.z2,r);o&&(o.z=n,o.zlevel=i,isFinite(r))&&(o.z2=r+2),a&&(o=e.textGuideLineConfig,a.z=n,a.zlevel=i,isFinite(r))&&(a.z2=r+(o&&o.showAbove?1:-1));return r}(t,n,i,-1/0),!0}))}function L0(t,e){e.eachRendered(function(t){var e,n;Th(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 O0(t,e){var n=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),t=n.get("duration"),o=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&&(Th(t)||(t instanceof as&&((i=Gs(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),r&&(t.stateTransition=o,n=t.getTextContent(),e=t.getTextGuideLine(),n&&(n.stateTransition=o),e)&&(e.stateTransition=o),t.__dirty&&A0(t)))})}fy.on=i0("on"),fy.off=i0("off"),fy.one=function(i,r,t){var o=this;this.on.call(this,i,function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r&&r.apply&&r.apply(this,e),o.off(i,t)},t)};var R0=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var E0={},N0={},B0=[],z0=[],F0=[],V0={},H0={},W0={},G0={},U0=+new Date,X0=+new Date,q0="_echarts_instance_";function Y0(t){G0[t]=!1}cy=Y0;function Z0(t){return W0[e=q0,(t=t).getAttribute?t.getAttribute(e):t[e]];var e}function j0(t,e){V0[t]=e}function K0(t){k(z0,t)<0&&z0.push(t)}function $0(t,e){am(B0,t,e,2e3)}function Q0(t){tm("afterinit",t)}function J0(t){tm("afterupdate",t)}function tm(t,e){Ky.on(t,e)}function em(t,e,n){M(e)&&(n=e,e="");var i=R(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,N0[e]||(kt(e0.test(i)&&e0.test(e)),E0[i]||(E0[i]={action:n,actionInfo:t}),N0[e]=i)}function nm(t,e){ld.register(t,e)}function im(t,e){am(F0,t,e,1e3,"layout")}function rm(t,e){am(F0,t,e,3e3,"visual")}var om=[];function am(t,e,n,i,r){(M(e)||R(e))&&(n=e,e=i),0<=k(om,n)||(om.push(n),(i=zg.wrapStageHandler(n,r)).__prio=e,i.__raw=n,t.push(i))}function sm(t,e){H0[t]=e}function lm(t,e,n){var i=$y.registerMap;i&&i(t,e,n)}function um(t){var e=(t=S(t)).type,n=(e||g(""),e.split(":")),i=(2!==n.length&&g(""),!1);"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,Bf.set(e,t)}rm(2e3,Uo),rm(4500,Gh),rm(4500,Wc),rm(2e3,wc),rm(4500,mc),rm(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=Zy(e,i))}),t=n.getVisual("decal"))&&(n.getVisual("style").decal=Zy(t,i))})}),K0(Pd),$0(900,function(t){var i=N();t.eachSeries(function(t){var e,n=t.get("stack");n&&(n=i.get(n)||i.set(n,[]),(t={stackResultDimension:(e=t.getData()).getCalculationInfo("stackResultDimension"),stackedOverDimension:e.getCalculationInfo("stackedOverDimension"),stackedDimension:e.getCalculationInfo("stackedDimension"),stackedByDimension:e.getCalculationInfo("stackedByDimension"),isStackedByIndex:e.getCalculationInfo("isStackedByIndex"),data:e,seriesModel:t}).stackedDimension)&&(t.isStackedByIndex||t.stackedByDimension)&&(n.length&&e.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(t))}),i.each(Ld)}),sm("default",function(i,r){z(r=r||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Fr,o=new Ss({style:{fill:r.maskColor},zlevel:r.zlevel,z:1e4});t.add(o);var a,s=new Is({style:{text:r.text,fill:r.textColor,fontSize:r.fontSize,fontWeight:r.fontWeight,fontStyle:r.fontStyle,fontFamily:r.fontFamily},zlevel:r.zlevel,z:10001}),l=new Ss({style:{fill:"none"},textContent:s,textConfig:{position:"right",distance:10},zlevel:r.zlevel,z:10001});return t.add(l),r.showSpinner&&((a=new th({shape:{startAngle:-Bg/2,endAngle:-Bg/2+.1,r:r.spinnerRadius},style:{stroke:r.color,lineCap:"round",lineWidth:r.lineWidth},zlevel:r.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Bg/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*Bg/2}).delay(300).start("circularInOut"),t.add(a)),t.resize=function(){var t=s.getBoundingRect().width,e=r.showSpinner?r.spinnerRadius:0,t=(i.getWidth()-2*e-(r.showSpinner&&t?10:0)-t)/2-(r.showSpinner&&t?0:5+t/2)+(r.showSpinner?0:t/2)+(t?0:e),n=i.getHeight()/2;r.showSpinner&&a.setShape({cx:t,cy:n}),l.setShape({x:t-e,y:n-e,width:2*e,height:2*e}),o.setShape({x:0,y:0,width:i.getWidth(),height:i.getHeight()})},t.resize(),t}),em({type:Ks,event:Ks,update:Ks},Ht),em({type:$s,event:$s,update:$s},Ht),em({type:Qs,event:Qs,update:Qs},Ht),em({type:Js,event:Js,update:Js},Ht),em({type:tl,event:tl,update:tl},Ht),j0("light",Sc),j0("dark",_c);function hm(t){return null==t?0:t.length||1}function cm(t){return t}dm.prototype.add=function(t){return this._add=t,this},dm.prototype.update=function(t){return this._update=t,this},dm.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},dm.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},dm.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},dm.prototype.remove=function(t){return this._remove=t,this},dm.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},dm.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a,s=i[o],l=n[s],u=hm(l);1<u?(a=l.shift(),1===l.length&&(n[s]=l[0]),this._update&&this._update(a,o)):1===u?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},dm.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],u=i[s],h=hm(l),c=hm(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(o,i)},dm.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],o=hm(r);if(1<o)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},dm.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a,s,l="_ec_"+this[i](t[o],o);r||(n[o]=l),e&&(0===(s=hm(a=e[l]))?(e[l]=o,r&&n.push(l)):1===s?e[l]=[a,o]:a.push(o))}};var pm=dm;function dm(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||cm,this._newKeyGetter=i||cm,this.context=r,this._diffModeMultiple="multiple"===o}gm.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},gm.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames};var fm=gm;function gm(t,e){this._encode=t,this._schema=e}function ym(o,t){var e={},a=e.encode={},s=N(),l=[],u=[],h={},i=(O(o.dimensions,function(t){var e,n,i=o.getDimensionInfo(t),r=i.coordDim;r&&(e=i.coordDimIndex,mm(a,r)[e]=t,i.isExtraCoord||(s.set(r,1),"ordinal"!==(n=i.type)&&"time"!==n&&(l[0]=t),mm(h,r)[e]=o.getDimensionIndex(i.name)),i.defaultTooltip)&&u.push(t),Lp.each(function(t,e){var n=mm(a,e),e=i.otherDims[e];null!=e&&!1!==e&&(n[e]=i.name)})}),[]),r={},n=(s.each(function(t,e){var n=a[e];r[e]=n[0],i=i.concat(n)}),e.dataDimsOnCoord=i,e.dataDimIndicesOnCoord=F(i,function(t){return o.getDimensionInfo(t).storeDimIndex}),e.encodeFirstDimNotExtra=r,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 fm(h,t),e}function mm(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}var vm=function(t){this.otherDims={},null!=t&&L(this,t)},_m=To(),xm={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},wm=(bm.prototype.isDimensionOmitted=function(){return this._dimOmitted},bm.prototype._updateDimOmitted=function(t){!(this._dimOmitted=t)||this._dimNameMap||(this._dimNameMap=Tm(this.source))},bm.prototype.getSourceDimensionIndex=function(t){return E(this._dimNameMap.get(t),-1)},bm.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},bm.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Wd(this.source),n=!(30<t),i="",r=[],o=0,a=0;o<t;o++){var s,l=void 0,u=void 0,h=void 0,c=this.dimensions[a];c&&c.storeDimIndex===o?(l=e?c.name:null,u=c.type,h=c.ordinalMeta,a++):(s=this.getSourceDimension(o))&&(l=e?s.name:null,u=s.type),r.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+"$"+(xm[u]||"f"),h&&(i+=h.uid),i+="$"}var p=this.source;return{dimensions:r,hash:[p.seriesLayoutBy,p.startIndex,i].join("$$")}},bm.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];r&&r.storeDimIndex===e?(r.isCalculationCoord||(i=r.name),n++):(r=this.getSourceDimension(e))&&(i=r.name),t.push(i)}return t},bm.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},bm);function bm(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}function Sm(t){return t instanceof wm}function Mm(t){for(var e=N(),n=0;n<(t||[]).length;n++){var i=t[n],i=R(i)?i.name:i;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function Tm(t){var e=_m(t);return e.dimNameMap||(e.dimNameMap=Mm(t.dimensionsDefine))}var Cm,km,Im,Dm,Am,Pm,Lm,Om=R,Rm=F,Em="undefined"==typeof Int32Array?Array:Int32Array,Nm=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Bm=["_approximateExtent"],zm=(v.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])},v.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},v.prototype._recognizeDimIndex=function(t){if(gt(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},v.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},v.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},v.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]}},v.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},v.prototype.mapDimension=function(t,e){var n=this._dimSummary;return null==e?n.encodeFirstDimNotExtra[t]:(n=n.encode[t])?n[e]:null},v.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},v.prototype.getStore=function(){return this._store},v.prototype.initData=function(t,e,n){var i,r,o=this;(i=t instanceof Zf?t:i)||(r=this.dimensions,t=Nd(t)||st(t)?new qd(t,r.length):t,i=new Zf,r=Rm(r,function(t){return{type:o._dimInfos[t].type,property:t}}),i.initData(t,r,n)),this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=ym(this,this._schema),this.userOutput=this._dimSummary.userOutput},v.prototype.appendData=function(t){t=this._store.appendData(t);this._doInit(t[0],t[1])},v.prototype.appendValues=function(t,e){var t=this._store.appendValues(t,e.length),n=t.start,i=t.end,r=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var o=n;o<i;o++)this._nameList[o]=e[o-n],r&&Lm(this,o)},v.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)}},v.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==Bp&&!t.fillStorage},v.prototype._doInit=function(t,e){if(!(e<=t)){var n=this._store.getProvider(),i=(this._updateOrdinalMeta(),this._nameList),r=this._idList;if(n.getSource().sourceFormat===Op&&!n.pure)for(var o=[],a=t;a<e;a++){var s=n.getItem(a,o);this.hasItemOption||!R(l=s)||l instanceof Array||(this.hasItemOption=!0),s&&(l=s.name,null==i[a]&&null!=l&&(i[a]=xo(l,null)),s=s.id,null==r[a])&&null!=s&&(r[a]=xo(s,null))}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)Lm(this,a);Cm(this)}var l},v.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},v.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},v.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},v.prototype.setCalculationInfo=function(t,e){Om(t)?L(this._calculationInfo,t):this._calculationInfo[t]=e},v.prototype.getName=function(t){var t=this.getRawIndex(t),e=this._nameList[t];return e=null==(e=null==e&&null!=this._nameDimIdx?Im(this,this._nameDimIdx,t):e)?"":e},v.prototype._getCategory=function(t,e){e=this._store.get(t,e),t=this._store.getOrdinalMeta(t);return t?t.categories[e]:e},v.prototype.getId=function(t){return km(this,this.getRawIndex(t))},v.prototype.count=function(){return this._store.count()},v.prototype.get=function(t,e){var n=this._store,t=this._dimInfos[t];if(t)return n.get(t.storeDimIndex,e)},v.prototype.getByRawIndex=function(t,e){var n=this._store,t=this._dimInfos[t];if(t)return n.getByRawIndex(t.storeDimIndex,e)},v.prototype.getIndices=function(){return this._store.getIndices()},v.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},v.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},v.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},v.prototype.getValues=function(t,e){var n=this,i=this._store;return V(t)?i.getValues(Rm(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},v.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},v.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},v.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},v.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},v.prototype.rawIndexOf=function(t,e){t=(t&&this._invertedIndicesMap[t])[e];return null==t||isNaN(t)?-1:t},v.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},v.prototype.each=function(t,e,n){M(t)&&(n=e,e=t,t=[]);n=n||this,t=Rm(Dm(t),this._getStoreDimIndex,this);this._store.each(t,n?pt(e,n):e)},v.prototype.filterSelf=function(t,e,n){M(t)&&(n=e,e=t,t=[]);n=n||this,t=Rm(Dm(t),this._getStoreDimIndex,this);return this._store=this._store.filter(t,n?pt(e,n):e),this},v.prototype.selectRange=function(n){var i=this,r={};return O(ct(n),function(t){var e=i._getStoreDimIndex(t);r[e]=n[t]}),this._store=this._store.selectRange(r),this},v.prototype.mapArray=function(t,e,n){M(t)&&(n=e,e=t,t=[]);var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n=n||this),i},v.prototype.map=function(t,e,n,i){n=n||i||this,i=Rm(Dm(t),this._getStoreDimIndex,this),t=Pm(this);return t._store=this._store.map(i,n?pt(e,n):e),t},v.prototype.modify=function(t,e,n,i){n=n||i||this,i=Rm(Dm(t),this._getStoreDimIndex,this);this._store.modify(i,n?pt(e,n):e)},v.prototype.downSample=function(t,e,n,i){var r=Pm(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},v.prototype.lttbDownSample=function(t,e){var n=Pm(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},v.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},v.prototype.getItemModel=function(t){var e=this.hostModel,t=this.getRawDataItem(t);return new Cc(t,e,e&&e.ecModel)},v.prototype.diff=function(e){var n=this;return new pm(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return km(e,t)},function(t){return km(n,t)})},v.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},v.prototype.setVisual=function(t,e){this._visual=this._visual||{},Om(t)?L(this._visual,t):this._visual[t]=e},v.prototype.getItemVisual=function(t,e){t=this._itemVisuals[t],t=t&&t[e];return null==t?this.getVisual(e):t},v.prototype.hasItemVisual=function(){return 0<this._itemVisuals.length},v.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():Om(n)&&(n=L({},n)),i[e]=n),n},v.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Om(e)?L(i,e):i[e]=n},v.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},v.prototype.setLayout=function(t,e){Om(t)?L(this._layout,t):this._layout[t]=e},v.prototype.getLayout=function(t){return this._layout[t]},v.prototype.getItemLayout=function(t){return this._itemLayouts[t]},v.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?L(this._itemLayouts[t]||{},e):e},v.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},v.prototype.setItemGraphicEl=function(t,e){var n,i,r,o,a=this.hostModel&&this.hostModel.seriesIndex;n=a,i=this.dataType,r=t,(a=e)&&((o=Vs(a)).dataIndex=r,o.dataType=i,o.seriesIndex=n,"group"===a.type)&&a.traverse(function(t){t=Vs(t);t.seriesIndex=n,t.dataIndex=r,t.dataType=i}),this._graphicEls[t]=e},v.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},v.prototype.eachItemGraphicEl=function(n,i){O(this._graphicEls,function(t,e){t&&n&&n.call(i,t,e)})},v.prototype.cloneShallow=function(t){return t=t||new v(this._schema||Rm(this.dimensions,this._getDimInfo,this),this.hostModel),Am(t,this),t._store=this._store,t},v.prototype.wrapMethod=function(t,e){var n=this[t];M(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(Tt(arguments)))})},v.internalField=(Cm=function(a){var s=a._invertedIndicesMap;O(s,function(t,e){var n=a._dimInfos[e],i=n.ordinalMeta,r=a._store;if(i){t=s[e]=new Em(i.categories.length);for(var o=0;o<t.length;o++)t[o]=-1;for(o=0;o<r.count();o++)t[r.get(n.storeDimIndex,o)]=o}})},Im=function(t,e,n){return xo(t._getCategory(e,n),null)},km=function(t,e){var n=t._idList[e];return n=null==(n=null==n&&null!=t._idDimIdx?Im(t,t._idDimIdx,e):n)?"e\0\0"+e:n},Dm=function(t){return t=V(t)?t:null!=t?[t]:[]},Pm=function(t){var e=new v(t._schema||Rm(t.dimensions,t._getDimInfo,t),t.hostModel);return Am(e,t),e},Am=function(e,n){O(Nm.concat(n.__wrappedMethods||[]),function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e.__wrappedMethods=n.__wrappedMethods,O(Bm,function(t){e[t]=S(n[t])}),e._calculationInfo=L({},n._calculationInfo)},void(Lm=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];null==a&&null!=r&&(n[e]=a=Im(t,r,e)),null==s&&null!=o&&(i[e]=s=Im(t,o,e)),null==s&&null!=a&&(s=a,1<(r=(n=t._nameRepeatCount)[a]=(n[a]||0)+1)&&(s+="__ec__"+r),i[e]=s)})),v);function v(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"];var n=!(this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"]);Sm(t)?(r=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,r=t);for(var i,r=r||["x","y"],o={},a=[],s={},l=!1,u={},h=0;h<r.length;h++){var c=r[h],c=H(c)?new vm({name:c}):c instanceof vm?c:new vm(c),p=c.name,d=(c.type=c.type||"float",c.coordDim||(c.coordDim=p,c.coordDimIndex=0),c.otherDims=c.otherDims||{});a.push(p),null!=u[p]&&(l=!0),(o[p]=c).createInvertedIndices&&(s[p]=[]),0===d.itemName&&(this._nameDimIdx=h),0===d.itemId&&(this._idDimIdx=h),n&&(c.storeDimIndex=h)}this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted&&(i=this._dimIdxToName=N(),O(a,function(t){i.set(o[t].storeDimIndex,t)}))}function Fm(t,e){Nd(t)||(t=zd(t));for(var n,i,r=(e=e||{}).coordDimensions||[],o=e.dimensionsDefine||t.dimensionsDefine||[],a=N(),s=[],l=(u=t,n=r,p=e.dimensionsCount,i=Math.max(u.dimensionsDetectedCount||1,n.length,o.length,p||0),O(n,function(t){R(t)&&(t=t.dimsDef)&&(i=Math.max(i,t.length))}),i),u=e.canOmitUnusedDimensions&&30<l,h=o===t.dimensionsDefine,c=h?Tm(t):Mm(o),p=e.encodeDefine,d=N(p=!p&&e.encodeDefaulter?e.encodeDefaulter(t,l):p),f=new Gf(l),g=0;g<f.length;g++)f[g]=-1;function y(t){var e,n,i,r=f[t];return r<0?(e=R(e=o[t])?e:{name:e},n=new vm,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[r]}if(!u)for(g=0;g<l;g++)y(g);d.each(function(t,n){var i,t=po(t).slice();1===t.length&&!H(t[0])&&t[0]<0?d.set(n,!1):(i=d.set(n,[]),O(t,function(t,e){t=H(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!=Lp.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,a.set(e,!0))}O(r,function(t){H(t)?(o=t,r={}):(o=(r=t).name,t=r.ordinalMeta,r.ordinalMeta=null,(r=L({},r)).ordinalMeta=t,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null);var n,i,r,o,e=d.get(o);if(!1!==e){if(!(e=po(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++)}O(e,function(t,e){t=y(t);h&&null!=r.type&&(t.type=r.type),v(z(t,r),o,e),null==t.name&&n&&(R(e=n[e])||(e={name:e}),t.name=t.displayName=e.name,t.defaultTooltip=e.defaultTooltip),i&&z(t.otherDims,i)})}});var _=e.generateCoord,x=null!=(w=e.generateCoordCount),w=_?w||1:0,b=_||"value";function S(t){null==t.name&&(t.name=t.coordDim)}if(u)O(s,function(t){S(t)}),s.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var M=0;M<l;M++){var T=y(M);null==T.coordDim&&(T.coordDim=function(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}(b,a,x),T.coordDimIndex=0,(!_||w<=0)&&(T.isExtraCoord=!0),w--),S(T),null!=T.type||Xp(t,M)!==Hp.Must&&(!T.isExtraCoord||null==T.otherDims.itemName&&null==T.otherDims.seriesName)||(T.type="ordinal")}for(var C=s,k=N(),I=0;I<C.length;I++){var D=C[I],A=D.name,P=k.get(A)||0;0<P&&(D.name=A+(P-1)),P++,k.set(A,P)}return new wm({source:t,dimensions:s,fullDimensionCount:l,dimensionOmitted:u})}function Vm(t){this.coordSysDims=[],this.axisMap=N(),this.categoryAxisMap=N(),this.coordSysName=t}var Hm={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",Do).models[0],t=t.getReferringComponents("yAxis",Do).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",t),Wm(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),Wm(t)&&(i.set("y",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){t=t.getReferringComponents("singleAxis",Do).models[0];e.coordSysDims=["single"],n.set("single",t),Wm(t)&&(i.set("single",t),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var t=t.getReferringComponents("polar",Do).models[0],r=t.findAxisModel("radiusAxis"),t=t.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",r),n.set("angle",t),Wm(r)&&(i.set("radius",r),e.firstCategoryDimIndex=0),Wm(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,r,o){var a=t.ecModel,t=a.getComponent("parallel",t.get("parallelIndex")),s=i.coordSysDims=t.dimensions.slice();O(t.parallelAxisIndex,function(t,e){var t=a.getComponent("parallelAxis",t),n=s[e];r.set(n,t),Wm(t)&&(o.set(n,t),null==i.firstCategoryDimIndex)&&(i.firstCategoryDimIndex=e)})}};function Wm(t){return"category"===t.get("type")}function Gm(t,e,n){var i,r,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;Sm(e.schema)?(r=e.schema,i=r.dimensions,o=e.store):i=e;var l,u,h,c,p,d,f=!(!t||!t.get("stack"));return O(i,function(t,e){H(t)&&(i[e]=t={name:t}),f&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))}),!u||a||l||(a=!0),u&&(h="__\0ecstackresult_"+t.id,c="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0),p=u.coordDim,n=u.type,d=0,O(i,function(t){t.coordDim===p&&d++}),e={name:h,coordDim:p,coordDimIndex:d,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},t={name:c,coordDim:c,coordDimIndex:d+1,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1},r?(o&&(e.storeDimIndex=o.ensureCalculationDimension(c,n),t.storeDimIndex=o.ensureCalculationDimension(h,n)),r.appendCalculationDimension(e),r.appendCalculationDimension(t)):(i.push(e),i.push(t))),{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}function Um(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Xm(t,e){return Um(t,e)?t.getCalculationInfo("stackResultDimension"):e}function qm(t,e,n){n=n||{};var i,r,o,a,s,l,u=e.getSourceManager(),h=!1,t=(t?(h=!0,i=zd(t)):h=(i=u.getSource()).sourceFormat===Op,function(t){var e=t.get("coordinateSystem"),n=new Vm(e);if(e=Hm[e])return e(t,n,n.axisMap,n.categoryAxisMap),n}(e)),c=(l=t,c=(c=e).get("coordinateSystem"),c=ld.get(c),p=(p=l&&l.coordSysDims?F(l.coordSysDims,function(t){var e={name:t},t=l.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=M(p)?p:p?dt(Gp,c,e):null,c={coordDimensions:c,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:p,canOmitUnusedDimensions:!h},p=Fm(i,c),d=(c=p.dimensions,r=n.createInvertedIndices,(o=t)&&O(c,function(t,e){var n=t.coordDim,n=o.categoryAxisMap.get(n);n&&(null==a&&(a=e),t.ordinalMeta=n.getOrdinalMeta(),r)&&(t.createInvertedIndices=!0),null!=t.otherDims.itemName&&(s=!0)}),s||null==a||(c[a].otherDims.itemName=0),a),n=h?null:u.getSharedDataStore(p),t=Gm(e,{schema:p,store:n}),c=new zm(p,e),p=(c.setCalculationInfo(t),null==d||(u=i).sourceFormat!==Op||V(yo(function(t){for(var e=0;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}Zm.prototype.getSetting=function(t){return this._setting[t]},Zm.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},Zm.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},Zm.prototype.getExtent=function(){return this._extent.slice()},Zm.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},Zm.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},Zm.prototype.isBlank=function(){return this._isBlank},Zm.prototype.setBlank=function(t){this._isBlank=t};var Ym=Zm;function Zm(t){this._setting=t||{},this._extent=[1/0,-1/0]}Ho(Ym);var jm=0,Km=($m.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&F(e,Qm);return new $m({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},$m.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},$m.prototype.parseAndCollect=function(t){var e,n,i=this._needCollect;return H(t)||i?(i&&!this._deduplication?(e=this.categories.length,this.categories[e]=t):null==(e=(n=this._getOrCreateMap()).get(t))&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e):t},$m.prototype._getOrCreateMap=function(){return this._map||(this._map=N(this.categories))},$m);function $m(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++jm}function Qm(t){return R(t)&&null!=t.value?t.value:t+""}function Jm(t,e,n,i){var r={},o=t[1]-t[0],o=r.interval=oo(o/e,!0),e=(null!=n&&o<n&&(o=r.interval=n),null!=i&&i<o&&(o=r.interval=i),r.intervalPrecision=ev(o));return n=r.niceTickExtent=[jr(Math.ceil(t[0]/o)*o,e),jr(Math.floor(t[1]/o)*o,e)],i=t,isFinite(n[0])||(n[0]=i[0]),isFinite(n[1])||(n[1]=i[1]),nv(n,0,i),nv(n,1,i),n[0]>n[1]&&(n[0]=n[1]),r}function tv(t){var e=Math.pow(10,ro(t)),t=t/e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,jr(t*e)}function ev(t){return Kr(t)+2}function nv(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function iv(t,e){return t>=e[0]&&t<=e[1]}function rv(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function ov(t,e){return t*(e[1]-e[0])+e[0]}u(lv,av=Ym),lv.prototype.parse=function(t){return null==t?NaN:H(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},lv.prototype.contain=function(t){return iv(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},lv.prototype.normalize=function(t){return rv(t=this._getTickNumber(this.parse(t)),this._extent)},lv.prototype.scale=function(t){return t=Math.round(ov(t,this._extent)),this.getRawOrdinalNumber(t)},lv.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},lv.prototype.getMinorTicks=function(t){},lv.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r<a;++r){var s=e[r];i[n[r]=s]=r}for(var l=0;r<o;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},lv.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&0<=t&&t<e.length?e[t]:t},lv.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&0<=t&&t<e.length?e[t]:t},lv.prototype.getLabel=function(t){if(!this.isBlank())return t=this.getRawOrdinalNumber(t.value),null==(t=this._ordinalMeta.categories[t])?"":t+""},lv.prototype.count=function(){return this._extent[1]-this._extent[0]+1},lv.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},lv.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},lv.prototype.getOrdinalMeta=function(){return this._ordinalMeta},lv.prototype.calcNiceTicks=function(){},lv.prototype.calcNiceExtent=function(){},lv.type="ordinal";var av,sv=lv;function lv(t){var t=av.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return V(e=e||new Km({}))&&(e=new Km({categories:F(e,function(t){return R(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}Ym.registerClass(sv);var uv,hv=jr,cv=(u(pv,uv=Ym),pv.prototype.parse=function(t){return t},pv.prototype.contain=function(t){return iv(t,this._extent)},pv.prototype.normalize=function(t){return rv(t,this._extent)},pv.prototype.scale=function(t){return ov(t,this._extent)},pv.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},pv.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},pv.prototype.getInterval=function(){return this._interval},pv.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=ev(t)},pv.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(e){n[0]<i[0]&&o.push(t?{value:hv(i[0]-e,r)}:{value:n[0]});for(var a=i[0];a<=i[1]&&(o.push({value:a}),(a=hv(a+e,r))!==o[o.length-1].value);)if(1e4<o.length)return[];var s=o.length?o[o.length-1].value:i[1];n[1]>s&&o.push(t?{value:hv(s+e,r)}:{value:n[1]})}return o},pv.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<e.length;r++){for(var o=e[r],a=e[r-1],s=0,l=[],u=(o.value-a.value)/t;s<t-1;){var h=hv(a.value+(s+1)*u);h>i[0]&&h<i[1]&&l.push(h),s++}n.push(l)}return n},pv.prototype.getLabel=function(t,e){return null==t?"":(null==(e=e&&e.precision)?e=Kr(t.value)||0:"auto"===e&&(e=this._intervalPrecision),hp(hv(t.value,e,!0)))},pv.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];isFinite(r)&&(r<0&&i.reverse(),r=Jm(i,t,e,n),this._intervalPrecision=r.intervalPrecision,this._interval=r.interval,this._niceExtent=r.niceTickExtent)},pv.prototype.calcNiceExtent=function(t){var e=this._extent,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.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval),this._interval);t.fixMin||(e[0]=hv(Math.floor(e[0]/n)*n)),t.fixMax||(e[1]=hv(Math.ceil(e[1]/n)*n))},pv.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},pv.type="interval",pv);function pv(){var t=null!==uv&&uv.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}Ym.registerClass(cv);function dv(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function fv(t){return t.dim+t.index}function gv(t,e){var n=[];return e.eachSeriesByType(t,function(t){var e;(e=t).coordinateSystem&&"cartesian2d"===e.coordinateSystem.type&&n.push(t)}),n}function yv(t){var a,d,u=function(t){var e,l={},n=(O(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)),r=t.getStore(),o=0,a=r.count();o<a;++o){var s=r.get(i,o);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 r=null,o=1;o<i.length;++o){var a=i[o]-i[o-1];0<a&&(r=null===r?a:Math.min(r,a))}n[e]=r}}return n}(t),h=[];return O(t,function(t){var e,n,i=t.coordinateSystem.getBaseAxis(),r=i.getExtent(),o=(e="category"===i.type?i.getBandWidth():"value"===i.type||"time"===i.type?(e=i.dim+"_"+i.index,e=u[e],o=Math.abs(r[1]-r[0]),n=i.scale.getExtent(),n=Math.abs(n[1]-n[0]),e?o/n*e:o):(n=t.getData(),Math.abs(r[1]-r[0])/n.count()),f(t.get("barWidth"),e)),r=f(t.get("barMaxWidth"),e),a=f(t.get("barMinWidth")||((n=t).pipelineContext&&n.pipelineContext.large?.5:1),e),s=t.get("barGap"),l=t.get("barCategoryGap");h.push({bandWidth:e,barWidth:o,barMaxWidth:r,barMinWidth:a,barGap:s,barCategoryGap:l,axisKey:fv(i),stackId:dv(t)})}),a={},O(h,function(t,e){var n=t.axisKey,i=t.bandWidth,i=a[n]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},r=i.stacks,n=(a[n]=i,t.stackId),o=(r[n]||i.autoWidthCount++,r[n]=r[n]||{width:0,maxWidth:0},t.barWidth),o=(o&&!r[n].width&&(r[n].width=o,o=Math.min(i.remainedWidth,o),i.remainedWidth-=o),t.barMaxWidth),o=(o&&(r[n].maxWidth=o),t.barMinWidth),r=(o&&(r[n].minWidth=o),t.barGap),n=(null!=r&&(i.gap=r),t.barCategoryGap);null!=n&&(i.categoryGap=n)}),d={},O(a,function(t,n){d[n]={};var e=t.stacks,i=t.bandWidth,r=t.categoryGap,o=(null==r&&(o=ct(e).length,r=Math.max(35-4*o,15)+"%"),f(r,i)),a=f(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*a),u=Math.max(u,0);O(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,s-=e+a*e,l--):(e=u,n&&n<e&&(e=Math.min(n,s)),(e=i&&e<i?i:e)!==u&&(t.width=e,s-=e+a*e,l--))}),u=(s-o)/(l+(l-1)*a),u=Math.max(u,0);var h,c=0,p=(O(e,function(t,e){t.width||(t.width=u),c+=(h=t).width*(1+a)}),h&&(c-=h.width*a),-c/2);O(e,function(t,e){d[n][e]=d[n][e]||{bandWidth:i,offset:p,width:t.width},p+=t.width*(1+a)})}),d}u(xv,mv=cv),xv.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Zc(t.value,Gc[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Yc(this._minLevelUnit))]||Gc.second,e,this.getSetting("locale"))},xv.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC"),r=this.getSetting("locale"),o=null;if(H(n))o=n;else if(M(n))o=n(t.value,e,{level:t.level});else{var a=L({},Hc);if(0<t.level)for(var s=0;s<Uc.length;++s)a[Uc[s]]="{primary|"+a[Uc[s]]+"}";var l=n?!1===n.inherit?n:z(n,a):a,u=jc(t.value,i);if(l[u])o=l[u];else if(l.inherit){for(s=Xc.indexOf(u)-1;0<=s;--s)if(l[u]){o=l[u];break}o=o||a.none}V(o)&&(e=null==t.level?0:0<=t.level?t.level:o.length+t.level,o=o[e=Math.min(e,o.length-1)])}return Zc(new Date(t.value),o,i,r)},xv.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];return t&&(n.push({value:e[0],level:0}),t=this.getSetting("useUTC"),t=function(t,b,S,M){var e=Xc,n=0;function i(t,e,n){var i,r,o=[],a=!e.length;if(!function(t,e,n,i){function r(t){return Kc(c,t,i)===Kc(p,t,i)}function o(){return r("year")}function a(){return o()&&r("month")}function s(){return a()&&r("day")}function l(){return s()&&r("hour")}function u(){return l()&&r("minute")}function h(){return u()&&r("second")}var c=no(e),p=no(n);switch(t){case"year":return o();case"month":return a();case"day":return s();case"hour":return l();case"minute":return u();case"second":return h();case"millisecond":return h()&&r("millisecond")}}(Yc(t),M[0],M[1],S)){a&&(e=[{value:function(t,e,n){var i=new Date(t);switch(Yc(e)){case"year":case"month":i[rp(n)](0);case"day":i[op(n)](1);case"hour":i[ap(n)](0);case"minute":i[sp(n)](0);case"second":i[lp(n)](0),i[up(n)](0)}return i.getTime()}(new Date(M[0]),t,S)},{value:M[1]}]);for(var s=0;s<e.length-1;s++){var l=e[s].value,u=e[s+1].value;if(l!==u){var h=void 0,c=void 0,p=void 0;switch(t){case"year":h=Math.max(1,Math.round(b/Vc/365)),c=$c(S),p=S?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":r=b,h=6<(r/=30*Vc)?6:3<r?3:2<r?2:1,c=Qc(S),p=rp(S);break;case"week":case"half-week":case"day":r=b,h=16<(r/=Vc)?16:7.5<r?7:3.5<r?4:1.5<r?2:1,c=Jc(S),p=op(S);break;case"half-day":case"quarter-day":case"hour":i=b,h=12<(i/=Fc)?12:6<i?6:3.5<i?4:2<i?2:1,c=tp(S),p=ap(S);break;case"minute":h=wv(b,!0),c=ep(S),p=sp(S);break;case"second":h=wv(b,!1),c=np(S),p=lp(S);break;case"millisecond":h=oo(b,!0),c=ip(S),p=up(S)}w=x=_=v=m=y=g=f=d=void 0;for(var d=h,f=l,g=u,y=c,m=p,v=o,_=new Date(f),x=f,w=_[y]();x<g&&x<=M[1];)v.push({value:x}),_[m](w+=d),x=_.getTime();v.push({value:x,notAdd:!0}),"year"===t&&1<n.length&&0===s&&n.unshift({value:n[0].value-h})}}for(s=0;s<o.length;s++)n.push(o[s])}}for(var r=[],o=[],a=0,s=0,l=0;l<e.length&&n++<1e4;++l){var u=Yc(e[l]);if(function(t){return t===Yc(t)}(e[l])&&(i(e[l],r[r.length-1]||[],o),u!==(e[l+1]?Yc(e[l+1]):null))){if(o.length){s=a,o.sort(function(t,e){return t.value-e.value});for(var h=[],c=0;c<o.length;++c){var p=o[c].value;0!==c&&o[c-1].value===p||(h.push(o[c]),p>=M[0]&&p<=M[1]&&a++)}u=(M[1]-M[0])/b;if(1.5*u<a&&u/1.5<s)break;if(r.push(h),u<a||t===e[l])break}o=[]}}var d=ut(F(r,function(t){return ut(t,function(t){return t.value>=M[0]&&t.value<=M[1]&&!t.notAdd})}),function(t){return 0<t.length}),f=[],g=d.length-1;for(l=0;l<d.length;++l)for(var y=d[l],m=0;m<y.length;++m)f.push({value:y[m].value,level:g-l});f.sort(function(t,e){return t.value-e.value});var v=[];for(l=0;l<f.length;++l)0!==l&&f[l].value===f[l-1].value||v.push(f[l]);return v}(this._minLevelUnit,this._approxInterval,t,e),(n=n.concat(t)).push({value:e[1],level:0})),n},xv.prototype.calcNiceExtent=function(t){var e,n=this._extent;n[0]===n[1]&&(n[0]-=Vc,n[1]+=Vc),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]-Vc),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},xv.prototype.calcNiceTicks=function(t,e,n){var i=this._extent,i=i[1]-i[0],i=(this._approxInterval=i/(t=t||10),null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n),_v.length),t=Math.min(function(t,e,n,i){for(;n<i;){var r=n+i>>>1;t[r][1]<e?n=1+r:i=r}return n}(_v,this._approxInterval,0,i),i-1);this._interval=_v[t][1],this._minLevelUnit=_v[Math.max(t-1,0)][0]},xv.prototype.parse=function(t){return gt(t)?t:+no(t)},xv.prototype.contain=function(t){return iv(this.parse(t),this._extent)},xv.prototype.normalize=function(t){return rv(this.parse(t),this._extent)},xv.prototype.scale=function(t){return ov(t,this._extent)},xv.type="time";var mv,vv=xv,_v=[["second",Bc],["minute",zc],["hour",Fc],["quarter-day",6*Fc],["half-day",12*Fc],["day",1.2*Vc],["half-week",3.5*Vc],["week",7*Vc],["month",31*Vc],["quarter",95*Vc],["half-year",zo/2],["year",zo]];function xv(t){t=mv.call(this,t)||this;return t.type="time",t}function wv(t,e){return 30<(t/=e?zc:Bc)?30:20<t?20:15<t?15:10<t?10:5<t?5:2<t?2:1}Ym.registerClass(vv);var bv,Sv=Ym.prototype,Mv=cv.prototype,Tv=jr,Cv=Math.floor,kv=Math.ceil,Iv=Math.pow,Dv=Math.log,Av=(u(Pv,bv=Ym),Pv.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return F(Mv.getTicks.call(this,t),function(t){var t=t.value,e=jr(Iv(this.base,t)),e=t===n[0]&&this._fixMin?Lv(e,i[0]):e;return{value:t===n[1]&&this._fixMax?Lv(e,i[1]):e}},this)},Pv.prototype.setExtent=function(t,e){var n=Dv(this.base);t=Dv(Math.max(0,t))/n,e=Dv(Math.max(0,e))/n,Mv.setExtent.call(this,t,e)},Pv.prototype.getExtent=function(){var t=this.base,e=Sv.getExtent.call(this),t=(e[0]=Iv(t,e[0]),e[1]=Iv(t,e[1]),this._originalScale.getExtent());return this._fixMin&&(e[0]=Lv(e[0],t[0])),this._fixMax&&(e[1]=Lv(e[1],t[1])),e},Pv.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=Dv(t[0])/Dv(e),t[1]=Dv(t[1])/Dv(e),Sv.unionExtent.call(this,t)},Pv.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},Pv.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n==1/0||n<=0)){var i=io(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&0<Math.abs(i);)i*=10;t=[jr(kv(e[0]/i)*i),jr(Cv(e[1]/i)*i)];this._interval=i,this._niceExtent=t}},Pv.prototype.calcNiceExtent=function(t){Mv.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},Pv.prototype.parse=function(t){return t},Pv.prototype.contain=function(t){return iv(t=Dv(t)/Dv(this.base),this._extent)},Pv.prototype.normalize=function(t){return rv(t=Dv(t)/Dv(this.base),this._extent)},Pv.prototype.scale=function(t){return t=ov(t,this._extent),Iv(this.base,t)},Pv.type="log",Pv),uy=Av.prototype;function Pv(){var t=null!==bv&&bv.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new cv,t._interval=0,t}function Lv(t,e){return Tv(t,Kr(e))}uy.getMinorTicks=Mv.getMinorTicks,uy.getLabel=Mv.getLabel,Ym.registerClass(Av);Rv.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,r=(this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero(),this._modelMinRaw=e.get("min",!0)),r=(M(r)?this._modelMinNum=Bv(t,r({min:n[0],max:n[1]})):"dataMin"!==r&&(this._modelMinNum=Bv(t,r)),this._modelMaxRaw=e.get("max",!0));M(r)?this._modelMaxNum=Bv(t,r({min:n[0],max:n[1]})):"dataMax"!==r&&(this._modelMaxNum=Bv(t,r)),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=[Tr(t[0],1),Tr(t[1],1)]},Rv.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,r=this._boundaryGapInner,o=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-r[0]*o),null==s&&(s=t?i?i-1:NaN:n+r[1]*o),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),r=this._determinedMax;return null!=n&&(a=n,l=!0),null!=r&&(s=r,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:e}},Rv.prototype.modifyDataMinMax=function(t,e){this[Nv[t]]=e},Rv.prototype.setDeterminedMinMax=function(t,e){this[Ev[t]]=e},Rv.prototype.freeze=function(){this.frozen=!0};var Ov=Rv;function Rv(t,e,n){this._prepareParams(t,e,n)}var Ev={min:"_determinedMin",max:"_determinedMax"},Nv={min:"_dataMin",max:"_dataMax"};function Bv(t,e){return null==e?null:bt(e)?NaN:t.parse(e)}function zv(t,e){var n,i,r,o,a,s,l=t.type,u=(c=e,u=(h=t).getExtent(),(h.rawExtentInfo||(c=new Ov(h,c,u),h.rawExtentInfo=c)).calculate()),h=(t.setBlank(u.isBlank),u.min),c=u.max,t=e.ecModel;return t&&"time"===l&&(l=gv("bar",t),n=!1,O(l,function(t){n=n||t.getBaseAxis()===e.axis}),n)&&(t=yv(l),l=h,i=c,t=t,s=(s=(r=e).axis.getExtent())[1]-s[0],h=(t=void 0===(t=function(t,e,n){if(t&&e)return null!=(t=t[fv(e)])&&null!=n?t[dv(n)]:t}(t,r.axis))?{min:l,max:i}:(o=1/0,O(t,function(t){o=Math.min(t.offset,o)}),a=-1/0,O(t,function(t){a=Math.max(t.offset+t.width,a)}),o=Math.abs(o),a=Math.abs(a),{min:l-=o/(r=o+a)*(s=(t=i-l)/(1-(o+a)/s)-t),max:i+=a/r*s})).min,c=t.max),{extent:[h,c],fixMin:u.minFixed,fixMax:u.maxFixed}}function Fv(t,e){var n=zv(t,e),i=n.extent,r=e.get("splitNumber"),o=(t instanceof Av&&(t.base=e.get("logBase")),t.type),a=e.get("interval"),o="interval"===o||"time"===o;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:r,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null}),null!=a&&t.setInterval&&t.setInterval(a)}function Vv(t,e){if(e=e||t.get("type"))switch(e){case"category":return new sv({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new vv({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Ym.getClass(e)||cv)}}function Hv(n){var i,r,e,t=n.getLabelModel().get("formatter"),o="category"===n.type?n.scale.getExtent()[0]:null;return"time"===n.scale.type?(r=t,function(t,e){return n.scale.getFormattedLabel(t,e,r)}):H(t)?(e=t,function(t){t=n.scale.getLabel(t);return e.replace("{value}",null!=t?t:"")}):M(t)?(i=t,function(t,e){return null!=o&&(e=t.value-o),i(Wv(n,t),e,null!=t.level?{level:t.level}:null)}):function(t){return n.scale.getLabel(t)}}function Wv(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Gv(t){t=t.get("interval");return null==t?"auto":t}function Uv(t){return"category"===t.type&&0===Gv(t.getLabelModel())}function Xv(e,t){var n={};return O(e.mapDimensionsAll(t),function(t){n[Xm(e,t)]=!0}),ct(n)}Yv.prototype.getNeedCrossZero=function(){return!this.option.scale},Yv.prototype.getCoordSysModel=function(){};var qv=Yv;function Yv(){}var dy=Object.freeze({__proto__:null,createDimensions:function(t,e){return Fm(t,e).dimensions},createList:function(t){return qm(null,t)},createScale:function(t,e){var n=e;return(e=Vv(n=e instanceof Cc?n:new Cc(e))).setExtent(t[0],t[1]),Fv(e,n),e},createSymbol:_y,createTextStyle:function(t,e){return oc(t,null,null,"normal"!==(e=e||{}).state)},dataStack:{isDimensionStacked:Um,enableDataStack:Gm,getStackedDimension:Xm},enableHoverEmphasis:Dl,getECData:Vs,getLayoutRect:xp,mixinAxisModelCommonMethods:function(t){at(t,qv)}}),Zv=[],jv={registerPreprocessor:K0,registerProcessor:$0,registerPostInit:Q0,registerPostUpdate:J0,registerUpdateLifecycle:tm,registerAction:em,registerCoordinateSystem:nm,registerLayout:im,registerVisual:rm,registerTransform:um,registerLoading:sm,registerMap:lm,registerImpl:function(t,e){$y[t]=e},PRIORITY:py,ComponentModel:y,ComponentView:gg,SeriesModel:sg,ChartView:xg,registerComponentModel:function(t){y.registerClass(t)},registerComponentView:function(t){gg.registerClass(t)},registerSeriesModel:function(t){sg.registerClass(t)},registerChartView:function(t){xg.registerClass(t)},registerSubTypeDefaulter:function(t,e){y.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Xr(t,e)}};function Kv(t){V(t)?O(t,function(t){Kv(t)}):0<=k(Zv,t)||(Zv.push(t),(t=M(t)?{install:t}:t).install(jv))}var $v=1e-8;function Qv(t,e){return Math.abs(t-e)<$v}function Jv(t,e,n){var i=0,r=t[0];if(r){for(var o=1;o<t.length;o++){var a=t[o];i+=Ya(r[0],r[1],a[0],a[1],e,n),r=a}var s=t[0];return Qv(r[0],s[0])&&Qv(r[1],s[1])||(i+=Ya(r[0],r[1],s[0],s[1],e,n)),0!==i}}var t_=[];function e_(t,e){for(var n=0;n<t.length;n++)ie(t[n],t[n],e)}function n_(t,e,n,i){for(var r=0;r<t.length;r++){var o=t[r];(o=i?i.project(o):o)&&isFinite(o[0])&&isFinite(o[1])&&(re(e,e,o),oe(n,n,o))}}i_.prototype.setCenter=function(t){this._center=t},i_.prototype.getCenter=function(){return this._center||(this._center=this.calcCenter())};fy=i_;function i_(t){this.name=t}function r_(t,e){this.type="polygon",this.exterior=t,this.interiors=e}function o_(t){this.type="linestring",this.points=t}u(u_,a_=fy),u_.prototype.calcCenter=function(){for(var t,e,n=this.geometries,i=0,r=0;r<n.length;r++){var o=n[r],a=o.exterior,a=a&&a.length;i<a&&(t=o,i=a)}if(t){for(var s=t.exterior,l=0,u=0,h=0,c=s.length,p=s[c-1][0],d=s[c-1][1],f=0;f<c;f++){var g=s[f][0],y=s[f][1],m=p*y-g*d;l+=m,u+=(p+g)*m,h+=(d+y)*m,p=g,d=y}return l?[u/l/3,h/l/3,l]:[s[0][0]||0,s[0][1]||0]}return[(e=this.getBoundingRect()).x+e.width/2,e.y+e.height/2]},u_.prototype.getBoundingRect=function(e){var n,i,t=this._rect;return t&&!e||(n=[1/0,1/0],i=[-1/0,-1/0],O(this.geometries,function(t){"polygon"===t.type?n_(t.exterior,n,i,e):O(t.points,function(t){n_(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 B(n[0],n[1],i[0]-n[0],i[1]-n[1]),e)||(this._rect=t),t},u_.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(e.contain(t[0],t[1]))t:for(var i=0,r=n.length;i<r;i++){var o=n[i];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(Jv(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(Jv(s[l],t[0],t[1]))continue t;return!0}}}return!1},u_.prototype.transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=r.width/r.height;n?i=i||n/o:n=o*i;for(var o=new B(t,e,n,i),a=r.calculateTransform(o),s=this.geometries,l=0;l<s.length;l++){var u=s[l];"polygon"===u.type?(e_(u.exterior,a),O(u.interiors,function(t){e_(t,a)})):O(u.points,function(t){e_(t,a)})}(r=this._rect).copy(o),this._center=[r.x+r.width/2,r.y+r.height/2]},u_.prototype.cloneShallow=function(t){t=new u_(t=null==t?this.name:t,this.geometries,this._center);return t._rect=this._rect,t.transformTo=null,t};var a_,s_,l_=u_;function u_(t,e,n){t=a_.call(this,t)||this;return t.type="geoJSON",t.geometries=e,t._center=n&&[n[0],n[1]],t}function h_(t,e){t=s_.call(this,t)||this;return t.type="geoSVG",t._elOnlyForCalculate=e,t}function c_(t,e,n){for(var i=0;i<t.length;i++)t[i]=p_(t[i],e[i],n)}function p_(t,e,n){for(var i=[],r=e[0],o=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),r=s+=r,o=l+=o;i.push([s/n,l/n])}return i}function d_(t,o){return F(ut((t=(e=t).UTF8Encoding?(null==(r=(n=e).UTF8Scale)&&(r=1024),O(n.features,function(t){var e=t.geometry,n=e.encodeOffsets,i=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=p_(i,n,r);break;case"Polygon":case"MultiLineString":c_(i,n,r);break;case"MultiPolygon":O(i,function(t,e){return c_(t,n[e],r)})}}),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 r=n.coordinates;i.push(new r_(r[0],r.slice(1)));break;case"MultiPolygon":O(n.coordinates,function(t){t[0]&&i.push(new r_(t[0],t.slice(1)))});break;case"LineString":i.push(new o_([n.coordinates]));break;case"MultiLineString":i.push(new o_(n.coordinates))}t=new l_(e[o||"name"],i,e.cp);return t.properties=e,t});var e,n,r}u(h_,s_=fy),h_.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),e=[e.x+e.width/2,e.y+e.height/2],n=Re(t_),i=t;i&&!i.isGeoSVGGraphicRoot;)Ne(n,i.getLocalTransform(),n),i=i.parent;return Ve(n,n),ie(e,e,n),e};var Uo=Object.freeze({__proto__:null,MAX_SAFE_INTEGER:9007199254740991,asc:function(t){return t.sort(function(t,e){return t-e}),t},getPercentWithPrecision:function(t,e,n){return t[e]&&function(t,e){var n=lt(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];for(var i=Math.pow(10,e),e=F(t,function(t){return(isNaN(t)?0:t)/n*i*100}),r=100*i,o=F(e,function(t){return Math.floor(t)}),a=lt(o,function(t,e){return t+e},0),s=F(e,function(t,e){return t-o[e]});a<r;){for(var l=Number.NEGATIVE_INFINITY,u=null,h=0,c=s.length;h<c;++h)s[h]>l&&(l=s[h],u=h);++o[u],s[u]=0,++a}return F(o,function(t){return t/i})}(t,n)[e]||0},getPixelPrecision:Qr,getPrecision:Kr,getPrecisionSafe:$r,isNumeric:so,isRadianAroundZero:to,linearMap:Zr,nice:oo,numericToNumber:ao,parseDate:no,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:io,quantityExponent:ro,reformIntervals:function(t){t.sort(function(t,e){return function t(e,n,i){return e.interval[i]<n.interval[i]||e.interval[i]===n.interval[i]&&(e.close[i]-n.close[i]==(i?-1:1)||!i&&t(e,n,1))}(t,e,0)?-1:1});for(var e=-1/0,n=1,i=0;i<t.length;){for(var r=t[i].interval,o=t[i].close,a=0;a<2;a++)r[a]<=e&&(r[a]=e,o[a]=a?1:1-n),e=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!=1?t.splice(i,1):i++}return t},remRadian:Jr,round:jr}),Gh=Object.freeze({__proto__:null,format:Zc,parse:no}),Wc=Object.freeze({__proto__:null,Arc:th,BezierCurve:Ku,BoundingRect:B,Circle:ou,CompoundPath:ih,Ellipse:uu,Group:Fr,Image:fs,IncrementalDisplayable:i,Line:Uu,LinearGradient:lh,Polygon:Eu,Polyline:Fu,RadialGradient:oh,Rect:Ss,Ring:Au,Sector:Cu,Text:Is,clipPointsByRect:Zh,clipRectByRect:jh,createIcon:Kh,extendPath:Rh,extendShape:Lh,getShapeClass:Nh,getTransform:Uh,initProps:Mh,makeImage:zh,makePath:Bh,mergePath:Vh,registerShape:Eh,resizePath:Hh,updateProps:Sh}),wc=Object.freeze({__proto__:null,addCommas:hp,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=no(e))[(n=n?"getUTC":"get")+"FullYear"](),r=e[n+"Month"]()+1,o=e[n+"Date"](),a=e[n+"Hours"](),s=e[n+"Minutes"](),l=e[n+"Seconds"](),e=e[n+"Milliseconds"]();return t.replace("MM",qc(r,2)).replace("M",r).replace("yyyy",i).replace("yy",qc(i%100+"",2)).replace("dd",qc(o,2)).replace("d",o).replace("hh",qc(a,2)).replace("h",a).replace("mm",qc(s,2)).replace("m",s).replace("ss",qc(l,2)).replace("s",l).replace("SSS",qc(e,3))},formatTpl:fp,getTextRect:function(t,e,n,i,r,o,a,s){return new Is({style:{text:t,font:e,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:function(t,e){var n=(t=H(t)?{color:t,extraCssText:e}:t||{}).color,i=t.type,r=(e=t.extraCssText,t.renderMode||"html");return n?"html"===r?"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:r,content:"{"+(t.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""},normalizeCssArray:pp,toCamelCase:function(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},truncateText:$o}),mc=Object.freeze({__proto__:null,bind:pt,clone:S,curry:dt,defaults:z,each:O,extend:L,filter:ut,indexOf:k,inherits:ot,isArray:V,isFunction:M,isObject:R,isString:H,map:F,merge:d,reduce:lt}),f_=To();function g_(t){return"category"===t.type?(r=(e=t).getLabelModel(),o=m_(e,r),!r.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:o.labelCategoryInterval}:o):(r=(n=t).scale.getTicks(),i=Hv(n),{labels:F(r,function(t,e){return{level:t.level,formattedLabel:i(t,e),rawLabel:n.scale.getLabel(t),tickValue:t.value}})});var n,i,e,r,o}function y_(t,e){var n,i,r,o,a,s;return"category"===t.type?(e=e,o=v_(n=t,"ticks"),a=Gv(e),(s=__(o,a))||(e.get("show")&&!n.scale.isBlank()||(i=[]),i=M(a)?b_(n,a,!0):"auto"===a?(s=m_(n,n.getLabelModel()),r=s.labelCategoryInterval,F(s.labels,function(t){return t.tickValue})):w_(n,r=a,!0),x_(o,a,{ticks:i,tickCategoryInterval:r}))):{ticks:F(t.scale.getTicks(),function(t){return t.value})}}function m_(t,e){var n,i=v_(t,"labels"),e=Gv(e);return __(i,e)||x_(i,e,{labels:M(e)?b_(t,e):w_(t,n="auto"===e?null!=(t=f_(i=t).autoInterval)?t:f_(i).autoInterval=i.calculateCategoryInterval():e),labelCategoryInterval:n})}function v_(t,e){return f_(t)[e]||(f_(t)[e]=[])}function __(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function x_(t,e,n){return t.push({key:e,value:n}),n}function w_(t,e,n){var i=Hv(t),r=t.scale,o=r.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),e=o[0],u=r.count(),u=(0!==e&&1<l&&2<u/l&&(e=Math.round(Math.ceil(e/l)*l)),Uv(t)),t=a.get("showMinLabel")||u,a=a.get("showMaxLabel")||u;t&&e!==o[0]&&c(o[0]);for(var h=e;h<=o[1];h+=l)c(h);function c(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t})}return a&&h-l!==o[1]&&c(o[1]),s}function b_(t,i,r){var o=t.scale,a=Hv(t),s=[];return O(o.getTicks(),function(t){var e=o.getLabel(t),n=t.value;i(t.value,e)&&s.push(r?n:{formattedLabel:a(t),rawLabel:e,tickValue:n})}),s}var S_=[0,1],Sc=(M_.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},M_.prototype.containData=function(t){return this.scale.contain(t)},M_.prototype.getExtent=function(){return this._extent.slice()},M_.prototype.getPixelPrecision=function(t){return Qr(t||this.scale.getExtent(),this._extent)},M_.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},M_.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&T_(n=n.slice(),i.count()),Zr(t,S_,n,e)},M_.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale,i=(this.onBand&&"ordinal"===i.type&&T_(n=n.slice(),i.count()),Zr(t,n,S_,e));return this.scale.scale(i)},M_.prototype.pointToData=function(t,e){},M_.prototype.getTicksCoords=function(t){var e,n,i,r,o=(t=t||{}).tickModel||this.getTickModel(),a=F(y_(this,o).ticks,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this),s=this,l=a,o=o.get("alignWithLabel"),t=t.clamp,u=l.length;function h(t,e){return t=jr(t),e=jr(e),r?e<t:t<e}return s.onBand&&!o&&u&&(o=s.getExtent(),1===u?(l[0].coord=o[0],e=l[1]={coord:o[1]}):(n=l[u-1].tickValue-l[0].tickValue,i=(l[u-1].coord-l[0].coord)/n,O(l,function(t){t.coord-=i/2}),n=1+s.scale.getExtent()[1]-l[u-1].tickValue,e={coord:l[u-1].coord+i*n},l.push(e)),r=o[0]>o[1],h(l[0].coord,o[0])&&(t?l[0].coord=o[0]:l.shift()),t&&h(o[0],l[0].coord)&&l.unshift({coord:o[0]}),h(o[1],e.coord)&&(t?e.coord=o[1]:l.pop()),t)&&h(e.coord,o[1])&&l.push({coord:o[1]}),a},M_.prototype.getMinorTicksCoords=function(){var t;return"ordinal"===this.scale.type?[]:(t=this.model.getModel("minorTick").get("splitNumber"),F(this.scale.getMinorTicks(t=0<t&&t<100?t:5),function(t){return F(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this))},M_.prototype.getViewLabels=function(){return g_(this).labels},M_.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},M_.prototype.getTickModel=function(){return this.model.getModel("axisTick")},M_.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},M_.prototype.calculateCategoryInterval=function(){r=(n=d=this).getLabelModel();var t={axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:r.get("rotate")||0,font:r.getFont()},e=Hv(d),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=(r=d.scale).getExtent(),r=r.count();if(i[1]-i[0]<1)return 0;var o=1;40<r&&(o=Math.max(1,Math.floor(r/40)));for(var a=i[0],s=d.dataToCoord(a+1)-d.dataToCoord(a),l=Math.abs(s*Math.cos(n)),s=Math.abs(s*Math.sin(n)),u=0,h=0;a<=i[1];a+=o)var c=1.3*(p=wr(e({value:a}),t.font,"center","top")).width,p=1.3*p.height,u=Math.max(u,c,7),h=Math.max(h,p,7);var n=u/l,l=h/s,s=(isNaN(n)&&(n=1/0),isNaN(l)&&(l=1/0),Math.max(0,Math.floor(Math.min(n,l)))),n=f_(d.model),l=d.getExtent(),d=n.lastAutoInterval,f=n.lastTickCount;return null!=d&&null!=f&&Math.abs(d-s)<=1&&Math.abs(f-r)<=1&&s<d&&n.axisExtent0===l[0]&&n.axisExtent1===l[1]?s=d:(n.lastTickCount=r,n.lastAutoInterval=s,n.axisExtent0=l[0],n.axisExtent1=l[1]),s},M_);function M_(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}function T_(t,e){e=(t[1]-t[0])/e/2;t[0]+=e,t[1]-=e}var C_=2*Math.PI,k_=Wa.CMD,I_=["top","right","bottom","left"];function D_(t,e,n,i,r,o,a,s){var l=r-t,u=o-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-r)*(u-r)+(s-o)*(s-o))}function A_(t,e,n,i,r,o,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(r,t),n),n=a[1]=Math.min(Math.max(o,e),i);return Math.sqrt((t-r)*(t-r)+(n-o)*(n-o))}var P_=[];function L_(t,e,n){for(var i,r,o,a,s,l,u,h,c,p=0,d=0,f=0,g=0,y=1/0,m=e.data,v=t.x,_=t.y,x=0;x<m.length;){var w=m[x++],b=(1===x&&(f=p=m[x],g=d=m[x+1]),y);switch(w){case k_.M:p=f=m[x++],d=g=m[x++];break;case k_.L:b=D_(p,d,m[x],m[x+1],v,_,P_,!0),p=m[x++],d=m[x++];break;case k_.C:b=Wn(p,d,m[x++],m[x++],m[x++],m[x++],m[x],m[x+1],v,_,P_),p=m[x++],d=m[x++];break;case k_.Q:b=Yn(p,d,m[x++],m[x++],m[x],m[x+1],v,_,P_),p=m[x++],d=m[x++];break;case k_.A:var S=m[x++],M=m[x++],T=m[x++],C=m[x++],k=m[x++],I=m[x++],D=(x+=1,!!(1-m[x++])),A=Math.cos(k)*T+S,P=Math.sin(k)*C+M;x<=1&&(f=A,g=P),P=(A=k)+I,D=D,a=(v-(i=S))*(o=C)/T+S,s=_,l=P_,c=h=u=void 0,a-=i,s-=r=M,u=Math.sqrt(a*a+s*s),h=(a/=u)*o+i,c=(s/=u)*o+r,b=Math.abs(A-P)%C_<1e-4||((P=D?(D=A,A=Xa(P),Xa(D)):(A=Xa(A),Xa(P)))<A&&(P+=C_),(D=Math.atan2(s,a))<0&&(D+=C_),A<=D&&D<=P)||A<=D+C_&&D+C_<=P?(l[0]=h,l[1]=c,u-o):(c=((D=o*Math.cos(A)+i)-a)*(D-a)+((h=o*Math.sin(A)+r)-s)*(h-s))<(i=((u=o*Math.cos(P)+i)-a)*(u-a)+((A=o*Math.sin(P)+r)-s)*(A-s))?(l[0]=D,l[1]=h,Math.sqrt(c)):(l[0]=u,l[1]=A,Math.sqrt(i)),p=Math.cos(k+I)*T+S,d=Math.sin(k+I)*C+M;break;case k_.R:b=A_(f=p=m[x++],g=d=m[x++],m[x++],m[x++],v,_,P_);break;case k_.Z:b=D_(p,d,f,g,v,_,P_,!0),p=f,d=g}b<y&&(y=b,n.set(P_[0],P_[1]))}return y}var O_=new T,R_=new T,E_=new T,N_=new T,B_=new T;function z_(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var r=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||I_,s=i.getBoundingRect().clone(),l=(s.applyTransform(i.getComputedTransform()),1/0),u=r.anchor,h=t.getComputedTransform(),c=h&&Ve([],h),p=e.get("length2")||0;u&&E_.copy(u);for(var d,f=0;f<a.length;f++){w=x=_=v=m=y=g=void 0;var g=a[f],y=0,m=s,v=O_,_=N_,x=m.width,w=m.height;switch(g){case"top":v.set(m.x+x/2,m.y-y),_.set(0,-1);break;case"bottom":v.set(m.x+x/2,m.y+w+y),_.set(0,1);break;case"left":v.set(m.x-y,m.y+w/2),_.set(-1,0);break;case"right":v.set(m.x+x+y,m.y+w/2),_.set(1,0)}T.scaleAndAdd(R_,O_,N_,p),R_.transform(c);g=t.getBoundingRect(),g=u?u.distance(R_):t instanceof as?L_(R_,t.path,E_):(S=E_,b=A_((b=g).x,g.y,g.width,g.height,R_.x,R_.y,P_),S.set(P_[0],P_[1]),b);g<l&&(l=g,R_.transform(h),E_.transform(h),E_.toArray(o[0]),R_.toArray(o[1]),O_.toArray(o[2]))}i=o,r=e.get("minTurnAngle");r<=180&&0<r&&(r=r/180*Math.PI,O_.fromArray(i[0]),R_.fromArray(i[1]),E_.fromArray(i[2]),T.sub(N_,O_,R_),T.sub(B_,E_,R_),e=N_.len(),d=B_.len(),e<.001||d<.001||(N_.scale(1/e),B_.scale(1/d),e=N_.dot(B_),Math.cos(r)<e&&(d=D_(R_.x,R_.y,E_.x,E_.y,O_.x,O_.y,F_,!1),V_.fromArray(F_),V_.scaleAndAdd(B_,d/Math.tan(Math.PI-r)),e=E_.x!==R_.x?(V_.x-R_.x)/(E_.x-R_.x):(V_.y-R_.y)/(E_.y-R_.y),isNaN(e)||(e<0?T.copy(V_,R_):1<e&&T.copy(V_,E_),V_.toArray(i[1]))))),n.setShape({points:o})}}var b,S}var F_=[],V_=new T;function H_(t,e,n,i){var r="normal"===n,n=r?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());r?t.useStyle(e):n.style=e}function W_(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=Jt(i[0],i[1]),r=Jt(i[1],i[2]);e&&r?(n=Math.min(e,r)*n,e=ne([],i[1],i[0],n/e),n=ne([],i[1],i[2],n/r),r=ne([],e,n,.5),t.bezierCurveTo(e[0],e[1],e[0],e[1],r[0],r[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 o=1;o<i.length;o++)t.lineTo(i[o][0],i[o][1])}function G_(t){for(var e=[],n=0;n<t.length;n++){var i,r,o,a,s,l,u=t[n];u.defaultAttr.ignore||(r=(i=u.label).getComputedTransform(),o=i.getBoundingRect(),a=!r||r[1]<1e-5&&r[2]<1e-5,l=i.style.margin||0,(s=o.clone()).applyTransform(r),s.x-=l/2,s.y-=l/2,s.width+=l,s.height+=l,l=a?new yh(o,r):null,e.push({label:i,labelLine:u.labelLine,rect:s,localRect:o,obb:l,priority:u.priority,defaultAttr:u.defaultAttr,layoutOption:u.computedLayoutOption,axisAligned:a,transform:r}))}return e}function U_(s,l,u,t,e,n){var h=s.length;if(!(h<2)){s.sort(function(t,e){return t.rect[l]-e.rect[l]});for(var i,r=0,o=!1,a=[],c=0,p=0;p<h;p++){var d=s[p],f=d.rect,d=((i=f[l]-r)<0&&(f[l]-=i,d.label[l]-=i,o=!0),Math.max(-i,0));a.push(d),c+=d,r=f[l]+f[u]}0<c&&n&&w(-c/h,0,h);var g,y,m=s[0],v=s[h-1];return _(),g<0&&b(-g,.8),y<0&&b(y,.8),_(),x(g,y,1),x(y,g,-1),_(),g<0&&S(-g),y<0&&S(y),o}function _(){g=m.rect[l]-t,y=e-v.rect[l]-v.rect[u]}function x(t,e,n){t<0&&(0<(e=Math.min(e,-t))?(w(e*n,0,h),(e=e+t)<0&&b(-e*n,1)):b(-t*n,1))}function w(t,e,n){0!==t&&(o=!0);for(var i=e;i<n;i++){var r=s[i];r.rect[l]+=t,r.label[l]+=t}}function b(t,e){for(var n=[],i=0,r=1;r<h;r++){var o=s[r-1].rect,o=Math.max(s[r].rect[l]-o[l]-o[u],0);n.push(o),i+=o}if(i){var a=Math.min(Math.abs(t)/i,e);if(0<t)for(r=0;r<h-1;r++)w(n[r]*a,0,r+1);else for(r=h-1;0<r;r--)w(-n[r-1]*a,r,h)}}function S(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(h-1)),i=0;i<h-1;i++)if(0<e?w(n,0,i+1):w(-n,h-i-1,h),(t-=n)<=0)return}}function X_(t){var e=[],n=(t.sort(function(t,e){return e.priority-t.priority}),new B(0,0,0,0));function i(t){var e;t.ignore||null==(e=t.ensureState("emphasis")).ignore&&(e.ignore=!1),t.ignore=!0}for(var r=0;r<t.length;r++){var o=t[r],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,h=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var c=o.obb,p=!1,d=0;d<e.length;d++){var f=e[d];if(n.intersect(f.rect)){if(a&&f.axisAligned){p=!0;break}if(f.obb||(f.obb=new yh(f.localRect,f.transform)),(c=c||new yh(s,l)).intersect(f.obb)){p=!0;break}}}p?(i(u),h&&i(h)):(u.attr("ignore",o.defaultAttr.ignore),h&&h.attr("ignore",o.defaultAttr.labelGuideIgnore),e.push(o))}}function q_(t,e){var n=t.label,e=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:function(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}(e&&e.shape.points)}}var Y_=["align","verticalAlign","width","height","fontSize"],Z_=new gr,j_=To(),K_=To();function $_(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null!=e[r]&&(t[r]=e[r])}}var Q_=["x","y","rotation"],J_=(t1.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t1.prototype._addLabel=function(t,e,n,i,r){var o=i.style,a=i.__hostTarget.textConfig||{},s=i.getComputedTransform(),l=i.getBoundingRect().plain();B.applyTransform(l,l,s),s?Z_.setLocalTransform(s):(Z_.x=Z_.y=Z_.rotation=Z_.originX=Z_.originY=0,Z_.scaleX=Z_.scaleY=1),Z_.rotation=Xa(Z_.rotation);var u,s=i.__hostTarget,h=(s&&(u=s.getBoundingRect().plain(),h=s.getComputedTransform(),B.applyTransform(u,u,h)),u&&s.getTextGuideLine());this._labelList.push({label:i,labelLine:h,seriesModel:n,dataIndex:t,dataType:e,layoutOption:r,computedLayoutOption:null,rect:l,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:h&&h.ignore,x:Z_.x,y:Z_.y,scaleX:Z_.scaleX,scaleY:Z_.scaleY,rotation:Z_.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:a.position,attachedRot:a.rotation}})},t1.prototype.addLabelsOfSeries=function(t){var n=this,i=(this._chartViewList.push(t),t.__model),r=i.get("labelLayout");(M(r)||ct(r).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var e=t.getTextContent(),t=Vs(t);e&&!e.disableLabelLayout&&n._addLabel(t.dataIndex,t.dataType,i,e,r)})},t1.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();for(var i=0;i<this._labelList.length;i++){var r=this._labelList[i],o=r.label,a=o.__hostTarget,s=r.defaultAttr,l=void 0,l=(M(r.layoutOption)?r.layoutOption(q_(r,a)):r.layoutOption)||{},u=(r.computedLayoutOption=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?(o.x=f(l.x,e),o.setStyle("x",0),h=!0):(o.x=s.x,o.setStyle("x",s.style.x)),null!=l.y?(o.y=f(l.y,n),o.setStyle("y",0),h=!0):(o.y=s.y,o.setStyle("y",s.style.y)),l.labelLinePoints&&(c=a.getTextGuideLine())&&(c.setShape({points:l.labelLinePoints}),h=!1),j_(o).needsUpdateLabelLine=h,o.rotation=null!=l.rotate?l.rotate*u:s.rotation,o.scaleX=s.scaleX,o.scaleY=s.scaleY;for(var c,p=0;p<Y_.length;p++){var d=Y_[p];o.setStyle(d,(null!=l[d]?l:s.style)[d])}l.draggable?(o.draggable=!0,o.cursor="move",a&&(c=r.seriesModel,null!=r.dataIndex&&(c=r.seriesModel.getData(r.dataType).getItemModel(r.dataIndex)),o.on("drag",function(t,e){return function(){z_(t,e)}}(a,c.getModel("labelLine"))))):(o.off("drag"),o.cursor=s.cursor)}},t1.prototype.layout=function(t){var e,n,i=t.getWidth(),t=t.getHeight(),r=G_(this._labelList),o=ut(r,function(t){return"shiftX"===t.layoutOption.moveOverlap}),a=ut(r,function(t){return"shiftY"===t.layoutOption.moveOverlap});U_(o,"x","width",0,i,n),U_(a,"y","height",0,t,e),X_(ut(r,function(t){return t.layoutOption.hideOverlap}))},t1.prototype.processLabelsOverall=function(){var a=this;O(this._chartViewList,function(t){var i=t.__model,r=t.ignoreLabelLineUpdate,o=i.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var e=!r,n=t.getTextContent();(e=!e&&n?j_(n).needsUpdateLabelLine:e)&&a._updateLabelLine(t,i),o&&a._animateLabels(t,i)})})},t1.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=Vs(t),r=i.dataIndex;if(n&&null!=r){var n=e.getData(i.dataType),e=n.getItemModel(r),i={},r=n.getItemVisual(r,"style"),r=(r&&(n=n.getVisual("drawType"),i.stroke=r[n]),e.getModel("labelLine")),o=t,a=function(t,e){for(var n={normal:t.getModel(e=e||"labelLine")},i=0;i<Zs.length;i++){var r=Zs[i];n[r]=t.getModel([r,e])}return n}(e),n=i,s=o.getTextGuideLine(),l=o.getTextContent();if(l){for(var e=a.normal,u=e.get("show"),h=l.ignore,c=0;c<js.length;c++){var p,d=js[c],f=a[d],g="normal"===d;f&&(p=f.get("show"),(g?h:E(l.states[d]&&l.states[d].ignore,h))||!E(p,u)?(p=g?s:s&&s.states[d])&&(p.ignore=!0):(s||(s=new Fu,o.setTextGuideLine(s),g||!h&&u||H_(s,!0,"normal",a.normal),o.stateProxy&&(s.stateProxy=o.stateProxy)),H_(s,!1,d,f)))}s&&(z(s.style,n),s.style.fill=null,n=e.get("showAbove"),(o.textGuideLineConfig=o.textGuideLineConfig||{}).showAbove=n||!1,s.buildPath=W_)}else s&&o.removeTextGuideLine();z_(t,r)}},t1.prototype._animateLabels=function(t,e){var n,i,r,o,a,s=t.getTextContent(),l=t.getTextGuideLine();!s||!t.forceLabelAnimation&&(s.ignore||s.invisible||t.disableLabelAnimation||Th(t))||(r=(o=j_(s)).oldLayout,n=(i=Vs(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<=k(t,"select")&&s.attr(o.oldLayoutSelect),0<=k(t,"emphasis"))&&s.attr(o.oldLayoutEmphasis),Sh(s,a,e,n)):(s.attr(a),cc(s).valueAnimation||(t=E(s.style.opacity,1),s.style.opacity=0,Mh(s,{style:{opacity:t}},e,n))),o.oldLayout=a,s.states.select&&($_(t=o.oldLayoutSelect={},a,Q_),$_(t,s.states.select,Q_)),s.states.emphasis&&($_(t=o.oldLayoutEmphasis={},a,Q_),$_(t,s.states.emphasis,Q_)),pc(s,n,i,e,e)),!l||l.ignore||l.invisible||(r=(o=K_(l)).oldLayout,a={points:l.shape.points},r?(l.attr({shape:r}),Sh(l,{shape:a},e)):(l.setShape(a),l.style.strokePercent=0,Mh(l,{style:{strokePercent:1}},e)),o.oldLayout=a)},t1);function t1(){this._labelList=[],this._chartViewList=[]}var e1=To();function n1(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){(e1(e).labelManager||(e1(e).labelManager=new J_)).clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=e1(e).labelManager;n.updatedSeries.forEach(function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}function i1(t,e,n){var i=W.createCanvas(),r=e.getWidth(),e=e.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=r+"px",o.height=e+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=e*n,i}Kv(n1);u(a1,r1=he),a1.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},a1.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},a1.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},a1.prototype.setUnpainted=function(){this.__firstTimePaint=!0},a1.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=i1("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},a1.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,l=[],u=this.maxRepaintRectCount,h=!1,c=new B(0,0,0,0);function o(t){if(t.isFinite()&&!t.isZero())if(0===l.length)(e=new B(0,0,0,0)).copy(t),l.push(e);else{for(var e,n=!1,i=1/0,r=0,o=0;o<l.length;++o){var a=l[o];if(a.intersect(t)){var s=new B(0,0,0,0);s.copy(a),s.union(t),l[o]=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,r=o)}h&&(l[r].union(t),n=!0),n||((e=new B(0,0,0,0)).copy(t),l.push(e)),h=h||l.length>=u}}for(var a,s=this.__startIndex;s<this.__endIndex;++s)(p=t[s])&&(f=p.shouldBePainted(n,i,!0,!0),(d=p.__isRendered&&(p.__dirty&vn||!f)?p.getPrevPaintRect():null)&&o(d),a=f&&(p.__dirty&vn||!p.__isRendered)?p.getPaintRect():null)&&o(a);for(s=this.__prevStartIndex;s<this.__prevEndIndex;++s){var p,d,f=(p=e[s]).shouldBePainted(n,i,!0,!0);!p||f&&p.__zr||!p.__isRendered||(d=p.getPrevPaintRect())&&o(d)}do{for(r=!1,s=0;s<l.length;)if(l[s].isZero())l.splice(s,1);else{for(var g=s+1;g<l.length;)l[s].intersect(l[g])?(r=!0,l[s].union(l[g]),l.splice(g,1)):g++;s++}}while(r);return this._paintRects=l},a1.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},a1.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n)&&this.ctxBack.scale(n,n)},a1.prototype.clear=function(t,o,e){var n=this.dom,a=this.ctx,i=n.width,r=n.height,s=(o=o||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,r/u)),this.domBack);function p(t,e,n,i){var r;a.clearRect(t,e,n,i),o&&"transparent"!==o&&(r=void 0,_t(o)?(r=(o.global||o.__width===n&&o.__height===i)&&o.__canvasGradient||wy(a,o,{x:0,y:0,width:n,height:i}),o.__canvasGradient=r,o.__width=n,o.__height=i):xt(o)&&(o.scaleX=o.scaleX||u,o.scaleY=o.scaleY||u,r=Py(a,o,{dirty:function(){h.setUnpainted(),h.__painter.refresh()}})),a.save(),a.fillStyle=r||o,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,r):e.length&&O(e,function(t){p(t.x*u,t.y*u,t.width*u,t.height*u)})};var r1,o1=a1;function a1(t,e,n){var i,r=r1.call(this)||this,t=(r.motionBlur=!1,r.lastFrameAlpha=.7,r.dpr=1,r.virtual=!1,r.config={},r.incremental=!1,r.zlevel=0,r.maxRepaintRectCount=5,r.__dirty=!0,r.__firstTimePaint=!0,r.__used=!1,r.__drawIndex=0,r.__startIndex=0,r.__endIndex=0,r.__prevStartIndex=null,r.__prevEndIndex=null,n=n||ar,"string"==typeof t?i=i1(t,e,n):R(t)&&(t=(i=t).id),r.id=t,(r.dom=i).style);return t&&(Ft(i),i.onselectstart=function(){return!1},t.padding="0",t.margin="0",t.borderWidth="0"),r.painter=e,r.dpr=n,r}var s1=314159;_.prototype.getType=function(){return"canvas"},_.prototype.isSingleCanvas=function(){return this._singleCanvas},_.prototype.getViewportRoot=function(){return this._domRoot},_.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},_.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 r=0;r<i.length;r++){var o,a=i[r],a=this._layers[a];!a.__builtin__&&a.refresh&&(o=0===r?this._backgroundColor:null,a.refresh(o))}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},_.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},_.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n=n||(this._hoverlayer=this.getLayer(1e5)),i||(i=n.ctx).save(),Uy(i,a,r,o===e-1))}i&&i.restore()}},_.prototype.getHoverLayer=function(){return this.getLayer(1e5)},_.prototype.paintOne=function(t,e){Gy(t,e)},_.prototype._paintList=function(t,e,n,i){var r,o,a;this._redrawId===i&&(n=n||!1,this._updateLayerStatus(t),r=(o=this._doPaintList(t,e,n)).finished,o=o.needsRefreshHover,this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(t),r?this.eachLayer(function(t){t.afterBrush&&t.afterBrush()}):(a=this,Tn(function(){a._paintList(t,e,n,i)})))},_.prototype._compositeManually=function(){var e=this.getLayer(s1).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)})},_.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,w=this,n=0;n<m.length;n++)!function(t){function e(t){var e={inHover:!1,allClipped:!1,prevEl:null,viewWidth:y._width,viewHeight:y._height};for(i=s;i<r.__endIndex;i++){var n=d[i];if(n.__inHover&&(x=!0),y._doPaintEl(n,r,v,t,e,i===r.__endIndex-1),l&&15<Date.now()-u)break}e.prevElClipPaths&&o.restore()}var i,n,r=m[t],o=r.ctx,a=v&&r.createRepaintRects(d,f,w._width,w._height),s=g?r.__startIndex:r.__drawIndex,l=!g&&r.incremental&&Date.now,u=l&&Date.now(),t=r.zlevel===w._zlevelList[0]?w._backgroundColor:null;r.__startIndex!==r.__endIndex&&(s!==r.__startIndex||(n=d[s]).incremental&&n.notClear&&!g)||r.clear(!1,t,a),-1===s&&(console.error("For some unknown reason. drawIndex is -1"),s=r.__startIndex);if(a)if(0===a.length)i=r.__endIndex;else for(var h=w.dpr,c=0;c<a.length;++c){var p=a[c];o.save(),o.beginPath(),o.rect(p.x*h,p.y*h,p.width*h,p.height*h),o.clip(),e(p),o.restore()}else o.save(),e(),o.restore();r.__drawIndex=i,r.__drawIndex<r.__endIndex&&(_=!1)}(n);return b.wxa&&O(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:_,needsRefreshHover:x}},_.prototype._doPaintEl=function(t,e,n,i,r,o){e=e.ctx;n?(n=t.getPaintRect(),(!i||n&&n.intersect(i))&&(Uy(e,t,r,o),t.setPrevPaintRect(n))):Uy(e,t,r,o)},_.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=s1);var n=this._layers[t];return n||((n=new o1("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},_.prototype.insertLayer=function(t,e){var n,i=this._layers,r=this._zlevelList,o=r.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<o&&t>r[0]){for(l=0;l<o-1&&!(r[l]<t&&r[l+1]>t);l++);s=i[r[l]]}r.splice(l+1,0,t),(i[t]=e).virtual||(s?(n=s.dom).nextSibling?a.insertBefore(e.dom,n.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.__painter=this}},_.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];t.call(e,this._layers[r],r)}},_.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},_.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},_.prototype.getLayers=function(){return this._layers},_.prototype._updateLayerStatus=function(t){function e(t){r&&(r.__endIndex!==t&&(r.__dirty=!0),r.__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,r=null,o=0,a=0;a<t.length;a++){var s,l=(s=t[a]).zlevel,u=void 0;i!==l&&(i=l,o=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,o=1):u=this.getLayer(l+(0<o?.01:0),this._needsManuallyCompositing),u.__builtin__||it("ZLevel "+l+" has been used by unkown layer "+u.id),u!==r&&(u.__used=!0,u.__startIndex!==a&&(u.__dirty=!0),u.__startIndex=a,u.incremental?u.__drawIndex=-1:u.__drawIndex=a,e(a),r=u),s.__dirty&vn&&!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)})},_.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},_.prototype._clearLayer=function(t){t.clear()},_.prototype.setBackgroundColor=function(t){this._backgroundColor=t,O(this._layers,function(t){t.setUnpainted()})},_.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 r=this._zlevelList[i];r!==t&&r!==t+.01||d(this._layers[r],n[t],!0)}}},_.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(k(n,t),1))},_.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot,i=(n.style.display="none",this._opts),r=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=Sy(r,0,i),e=Sy(r,1,i),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(s1).resize(t,e)}return this},_.prototype.clearLayer=function(t){t=this._layers[t];t&&t.clear()},_.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},_.prototype.getRenderedCanvas=function(t){if(this._singleCanvas&&!this._compositeManually)return this._layers[s1].dom;var e=new o1("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,r=e.dom.height;this.eachLayer(function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,r):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())})}else for(var o={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];Uy(n,u,o,s===l-1)}return e.dom},_.prototype.getWidth=function(){return this._width},_.prototype.getHeight=function(){return this._height};var l1=_;function _(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r,o,a=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase(),e=(this._opts=n=L({},n||{}),this.dpr=n.devicePixelRatio||ar,this._singleCanvas=a,(this.root=t).style&&(Ft(t),t.innerHTML=""),this.storage=e,this._zlevelList),s=(this._prevDisplayList=[],this._layers);a?(r=(a=t).width,o=a.height,null!=n.width&&(r=n.width),null!=n.height&&(o=n.height),this.dpr=n.devicePixelRatio||1,a.width=r*this.dpr,a.height=o*this.dpr,this._width=r,this._height=o,(r=new o1(a,this,this.dpr)).__builtin__=!0,r.initContext(),(s[s1]=r).zlevel=s1,e.push(s1),this._domRoot=t):(this._width=Sy(t,0,n),this._height=Sy(t,1,n),r=this._domRoot=(o=this._width,a=this._height,(s=document.createElement("div")).style.cssText=["position:relative","width:"+o+"px","height:"+a+"px","padding:0","margin:0","border-width:0"].join(";")+";",s),t.appendChild(r))}u(c1,u1=y),c1.prototype.init=function(t,e,n){u1.prototype.init.call(this,t,e,n),this._sourceManager=new Kf(this),Qf(this)},c1.prototype.mergeOption=function(t,e){u1.prototype.mergeOption.call(this,t,e),Qf(this)},c1.prototype.optionUpdated=function(){this._sourceManager.dirty()},c1.prototype.getSourceManager=function(){return this._sourceManager},c1.type="dataset",c1.defaultOption={seriesLayoutBy:Fp};var u1,h1=c1;function c1(){var t=null!==u1&&u1.apply(this,arguments)||this;return t.type="dataset",t}u(f1,p1=gg),f1.type="dataset";var p1,d1=f1;function f1(){var t=null!==p1&&p1.apply(this,arguments)||this;return t.type="dataset",t}function g1(t){t.registerComponentModel(h1),t.registerComponentView(d1)}function y1(t){t.eachSeriesByType("radar",function(t){var e,i=t.getData(),r=[],o=t.coordinateSystem;o&&(O(e=o.getIndicatorAxes(),function(t,n){i.each(i.mapDimension(e[n].dim),function(t,e){r[e]=r[e]||[];t=o.dataToPoint(t,n);r[e][n]=m1(t)?t:v1(o)})}),i.each(function(t){var e=ht(r[t],m1)||v1(o);r[t].push(e.slice()),i.setItemLayout(t,r[t])}))})}function m1(t){return!isNaN(t[0])&&!isNaN(t[1])}function v1(t){return[t.cx,t.cy]}function _1(n){var i,t=n.polar;t&&(V(t)||(t=[t]),i=[],O(t,function(t,e){(t.indicator?(t.type&&!t.shape&&(t.shape=t.type),n.radar=n.radar||[],V(n.radar)||(n.radar=[n.radar]),n.radar):i).push(t)}),n.polar=i),O(n.series,function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)})}Kv([function(t){t.registerPainter("canvas",l1)},g1]),Kv(n1);u(b1,x1=xg),b1.prototype.render=function(l,t,e){var n=l.coordinateSystem,o=this.group,w=l.getData(),a=this._data;function u(t,e){var n,i=t.getItemVisual(e,"symbol")||"circle";if("none"!==i)return n=[(n=V(n=t.getItemVisual(e,"symbolSize"))?n:[+n,+n])[0]||0,n[1]||0],i=_y(i,-1,-1,2,2),t=t.getItemVisual(e,"symbolRotate")||0,i.attr({style:{strokeNoScale:!0},z2:100,scaleX:n[0]/2,scaleY:n[1]/2,rotation:t*Math.PI/180||0}),i}function s(t,e,n,i,r,o){n.removeAll();for(var a=0;a<e.length-1;a++){var s=u(i,r);s&&(t[s.__dimIdx=a]?(s.setPosition(t[a]),ec[o?"initProps":"updateProps"](s,{x:e[a][0],y:e[a][1]},l,r)):s.setPosition(e[a]),n.add(s))}}function h(t){return F(t,function(t){return[n.cx,n.cy]})}w.diff(a).add(function(t){var e,n,i,r,o=w.getItemLayout(t);o&&(e=new Eu,n=new Fu,i={shape:{points:o}},e.shape.points=h(o),n.shape.points=h(o),Mh(e,i,l,t),Mh(n,i,l,t),i=new Fr,r=new Fr,i.add(n),i.add(e),i.add(r),s(n.shape.points,o,r,w,t,!0),w.setItemGraphicEl(t,i))}).update(function(t,e){var e=a.getItemGraphicEl(e),n=e.childAt(0),i=e.childAt(1),r=e.childAt(2),o={shape:{points:w.getItemLayout(t)}};o.shape.points&&(s(n.shape.points,o.shape.points,r,w,t,!1),Ih(i),Ih(n),Sh(n,o,l),Sh(i,o,l),w.setItemGraphicEl(t,e))}).remove(function(t){o.remove(a.getItemGraphicEl(t))}).execute(),w.eachItemGraphicEl(function(t,y){var m=w.getItemModel(y),e=t.childAt(0),n=t.childAt(1),i=t.childAt(2),v=w.getItemVisual(y,"style"),_=v.fill,e=(o.add(t),e.useStyle(z(m.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),Ol(e,m,"lineStyle"),Ol(n,m,"areaStyle"),m.getModel("areaStyle")),r=e.isEmpty()&&e.parentModel.isEmpty(),e=(n.ignore=r,O(["emphasis","select","blur"],function(t){var e=m.getModel([t,"areaStyle"]),e=e.isEmpty()&&e.parentModel.isEmpty();n.ensureState(t).ignore=e&&r}),n.useStyle(z(e.getAreaStyle(),{fill:_,opacity:.7,decal:v.decal})),m.getModel("emphasis")),x=e.getModel("itemStyle").getItemStyle();i.eachChild(function(t){t instanceof fs?(e=t.style,t.useStyle(L({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},v))):(t.useStyle(v),t.setColor(_),t.style.strokeNoScale=!0),t.ensureState("emphasis").style=S(x);var e=w.getStore().get(w.getDimensionIndex(t.__dimIdx),y),n=(null!=e&&!isNaN(e)||(e=""),t),i=function(t,e){for(var n={normal:t.getModel(e=e||"label")},i=0;i<Zs.length;i++){var r=Zs[i];n[r]=t.getModel([r,e])}return n}(m),r={labelFetcher:w.hostModel,labelDataIndex:y,labelDimIndex:t.__dimIdx,defaultText:e,inheritColor:_,defaultOpacity:v.opacity},o=void 0;r=r||nc;for(var a=n instanceof Is,s=!1,l=0;l<js.length;l++)if((p=i[js[l]])&&p.getShallow("show")){s=!0;break}var u=a?n:n.getTextContent();if(s){a||(u||(u=new Is,n.setTextContent(u)),n.stateProxy&&(u.stateProxy=n.stateProxy));var h=rc(r,i),t=i.normal,c=!!t.getShallow("show"),e=oc(t,o&&o.normal,r,!1,!a);for(e.text=h.normal,a||n.setTextConfig(ac(t,r,!1)),l=0;l<Zs.length;l++){var p,d,f,g=Zs[l];(p=i[g])&&(d=u.ensureState(g),(f=!!E(p.getShallow("show"),c))!=c&&(d.ignore=!f),d.style=oc(p,o&&o[g],r,!0,!a),d.style.text=h[g],a||(n.ensureState(g).textConfig=ac(p,r,!0)))}u.silent=!!t.getShallow("silent"),null!=u.style.x&&(e.x=u.style.x),null!=u.style.y&&(e.y=u.style.y),u.ignore=!c,u.useStyle(e),u.dirty(),r.enableTextSetter&&(cc(u).setLabelText=function(t){t=rc(r,i,t);ic(u,t)})}else u&&(u.ignore=!0);n.dirty()}),Al(t,e.get("focus"),e.get("blurScope"),e.get("disabled"))}),this._data=w},b1.prototype.remove=function(){this.group.removeAll(),this._data=null},b1.type="radar";var x1,w1=b1;function b1(){var t=null!==x1&&x1.apply(this,arguments)||this;return t.type=b1.type,t}M1.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},M1.prototype.containName=function(t){return 0<=this._getRawData().indexOfName(t)},M1.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},M1.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)};var S1=M1;function M1(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}u(k1,T1=sg),k1.prototype.init=function(t){T1.prototype.init.apply(this,arguments),this.legendVisualProvider=new S1(pt(this.getData,this),pt(this.getRawData,this))},k1.prototype.getInitialData=function(t,e){return n=this,i=V(i={generateCoord:"indicator_",generateCoordCount:1/0})?{coordDimensions:i}:L({encodeDefine:n.getEncode()},i),o=n.getSource(),i=Fm(o,i).dimensions,(i=new zm(i,n)).initData(o,r),i;var n,i,r,o},k1.prototype.formatTooltip=function(n,t,e){var i=this.getData(),r=this.coordinateSystem.getIndicatorAxes(),o=this.getData().getName(n),o=""===o?this.name:o,a=ng(this,n);return eg("section",{header:o,sortBlocks:!0,blocks:F(r,function(t){var e=i.get(i.mapDimension(t.dim),n);return eg("nameValue",{markerType:"subItem",markerColor:a,name:t.name,value:e,sortParam:e})})})},k1.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,i=e.getValues(F(n.dimensions,function(t){return e.mapDimension(t)}),t),r=0,o=i.length;r<o;r++){var a;if(!isNaN(i[r]))return a=n.getIndicatorAxes(),n.coordToPoint(a[r].dataToCoord(i[r]),r)}},k1.type="series.radar",k1.dependencies=["radar"],k1.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8};var T1,C1=k1;function k1(){var t=null!==T1&&T1.apply(this,arguments)||this;return t.type=k1.type,t.hasSymbolVisual=!0,t}var _c={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},zo=d({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},_c),uy=d({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},_c),I1={category:zo,value:uy,time:d({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},uy),log:z({logBase:10},uy)},fy=I1.value;function D1(t,e){return z({show:e},t)}u(L1,A1=y),L1.prototype.optionUpdated=function(){var n=this.get("boundaryGap"),i=this.get("splitNumber"),r=this.get("scale"),o=this.get("axisLine"),a=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),h=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),p=this.get("triggerEvent"),t=F(this.get("indicator")||[],function(t){null!=t.max&&0<t.max&&!t.min?t.min=0:null!=t.min&&t.min<0&&!t.max&&(t.max=0);var e=l,t=(null!=t.color&&(e=z({color:t.color},l)),d(S(t),{boundaryGap:n,splitNumber:i,scale:r,axisLine:o,axisTick:a,axisLabel:s,name:t.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:e,triggerEvent:p},!1)),e=(H(h)?(e=t.name,t.name=h.replace("{value}",null!=e?e:"")):M(h)&&(t.name=h(t.name,t)),new Cc(t,null,this.ecModel));return at(e,qv.prototype),e.mainType="radar",e.componentIndex=this.componentIndex,e},this);this._indicatorModels=t},L1.prototype.getIndicatorModels=function(){return this._indicatorModels},L1.type="radar",L1.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:d({lineStyle:{color:"#bbb"}},fy.axisLine),axisLabel:D1(fy.axisLabel,!1),axisTick:D1(fy.axisTick,!1),splitLine:D1(fy.splitLine,!0),splitArea:D1(fy.splitArea,!0),indicator:[]};var A1,P1=L1;function L1(){var t=null!==A1&&A1.apply(this,arguments)||this;return t.type=L1.type,t}var O1=Math.PI,R1=(N1.prototype.hasBuilder=function(t){return!!E1[t]},N1.prototype.add=function(t){E1[t](this.opt,this.axisModel,this.group,this._transformGroup)},N1.prototype.getGroup=function(){return this.group},N1.innerTextLayout=function(t,e,n){var i,e=Jr(e-t),t=to(e)?(i=0<n?"top":"bottom","center"):to(e-O1)?(i=0<n?"bottom":"top","center"):(i="middle",0<e&&e<O1?0<n?"right":"left":0<n?"left":"right");return{rotation:e,textAlign:t,textVerticalAlign:i}},N1.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},N1.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},N1),E1={axisLine:function(i,t,r,e){var o,a,s,l,u,h,c,n=t.get(["axisLine","show"]);(n="auto"===n&&i.handleAutoShown?i.handleAutoShown("axisLine"):n)&&(n=t.axis.getExtent(),e=e.transform,o=[n[0],0],a=[n[1],0],s=a[0]<o[0],e&&(ie(o,o,e),ie(a,a,e)),l=L({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),Wh((n=new Uu({shape:{x1:o[0],y1:o[1],x2:a[0],y2:a[1]},style:l,strokeContainThreshold:i.strokeContainThreshold||5,silent:!0,z2:1})).shape,n.style.lineWidth),n.anid="line",r.add(n),null!=(u=t.get(["axisLine","symbol"])))&&(e=t.get(["axisLine","symbolSize"]),H(u)&&(u=[u,u]),(H(e)||gt(e))&&(e=[e,e]),n=function(t,e){if(null!=t)return[f((t=V(t)?t:[t,t])[0],e[0])||0,f(E(t[1],t[0]),e[1])||0]}(t.get(["axisLine","symbolOffset"])||0,e),h=e[0],c=e[1],O([{rotate:i.rotation+Math.PI/2,offset:n[0],r:0},{rotate:i.rotation-Math.PI/2,offset:n[1],r:Math.sqrt((o[0]-a[0])*(o[0]-a[0])+(o[1]-a[1])*(o[1]-a[1]))}],function(t,e){var n;"none"!==u[e]&&null!=u[e]&&(e=_y(u[e],-h/2,-c/2,h,c,l.stroke,!0),n=t.r+t.offset,e.attr({rotation:t.rotate,x:(t=s?a:o)[0]+n*Math.cos(i.rotation),y:t[1]-n*Math.sin(i.rotation),silent:!0,z2:11}),r.add(e))}))},axisTickLabel:function(t,e,n,i){var r,o,a,s=function(t,e,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");if((a="auto"===a&&i.handleAutoShown?i.handleAutoShown("axisTick"):a)&&!r.scale.isBlank()){for(var a=o.getModel("lineStyle"),i=i.tickDirection*o.get("length"),s=V1(r.getTicksCoords(),e.transform,i,z(a.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),l=0;l<s.length;l++)t.add(s[l]);return s}}(n,i,e,t),l=function(l,u,h,c){var p=h.axis;{var d,f,t,e,g,y,m,v,_;if(St(c.axisLabelShow,h.get(["axisLabel","show"]))&&!p.scale.isBlank())return d=h.getModel("axisLabel"),f=d.get("margin"),t=p.getViewLabels(),e=(St(c.labelRotate,d.get("rotate"))||0)*O1/180,g=R1.innerTextLayout(c.rotation,e,c.labelDirection),y=h.getCategories&&h.getCategories(!0),m=[],v=R1.isLabelSilent(h),_=h.get("triggerEvent"),O(t,function(t,e){var n="ordinal"===p.scale.type?p.scale.getRawOrdinalNumber(t.tickValue):t.tickValue,i=t.formattedLabel,r=t.rawLabel,o=d,a=(o=y&&y[n]&&R(a=y[n])&&a.textStyle?new Cc(a.textStyle,d,h.ecModel):o).getTextColor()||h.get(["axisLine","lineStyle","color"]),s=p.dataToCoord(n),s=new Is({x:s,y:c.labelOffset+c.labelDirection*f,rotation:g.rotation,silent:v,z2:10+(t.level||0),style:oc(o,{text:i,align:o.getShallow("align",!0)||g.textAlign,verticalAlign:o.getShallow("verticalAlign",!0)||o.getShallow("baseline",!0)||g.textVerticalAlign,fill:M(a)?a("category"===p.type?r:"value"===p.type?n+"":n,e):a})});s.anid="label_"+n,_&&((t=R1.makeAxisEventDataBase(h)).targetType="axisLabel",t.value=r,t.tickIndex=e,"category"===p.type&&(t.dataIndex=n),Vs(s).eventData=t),u.add(s),s.updateTransform(),m.push(s),l.add(s),s.decomposeTransform()}),m}}(n,i,e,t),u=e,h=l,c=(Uv(u.axis)||(d=u.get(["axisLabel","showMinLabel"]),u=u.get(["axisLabel","showMaxLabel"]),s=s||[],y=(h=h||[])[0],f=h[1],r=h[h.length-1],h=h[h.length-2],o=s[0],g=s[1],a=s[s.length-1],s=s[s.length-2],!1===d?(B1(y),B1(o)):z1(y,f)&&(d?(B1(f),B1(g)):(B1(y),B1(o))),!1===u?(B1(r),B1(a)):z1(h,r)&&(u?(B1(h),B1(s)):(B1(r),B1(a)))),n),p=i,d=e,f=t.tickDirection,g=d.axis,y=d.getModel("minorTick");if(y.get("show")&&!g.scale.isBlank()){var m=g.getMinorTicksCoords();if(m.length)for(var g=y.getModel("lineStyle"),v=f*y.get("length"),_=z(g.getLineStyle(),z(d.getModel("axisTick").getLineStyle(),{stroke:d.get(["axisLine","lineStyle","color"])})),x=0;x<m.length;x++)for(var w=V1(m[x],p.transform,v,_,"minorticks_"+x),b=0;b<w.length;b++)c.add(w[b])}e.get(["axisLabel","hideOverlap"])&&X_(G_(F(l,function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})))},axisName:function(t,e,n,i){var r,o,a,s,l,u,h,c,p=St(t.axisName,e.get("name"));p&&(l=e.get("nameLocation"),s=t.nameDirection,o=e.getModel("nameTextStyle"),u=e.get("nameGap")||0,a=(h=e.axis.getExtent())[0]>h[1]?-1:1,a=["start"===l?h[0]-a*u:"end"===l?h[1]+a*u:(h[0]+h[1])/2,F1(l)?t.labelOffset+s*u:0],null!=(u=e.get("nameRotate"))&&(u=u*O1/180),F1(l)?r=R1.innerTextLayout(t.rotation,null!=u?u:t.rotation,s):(s=t.rotation,l=l,h=h,u=Jr((u=u||0)-s),s=h[0]>h[1],h="start"===l&&!s||"start"!==l&&s,l=to(u-O1/2)?(c=h?"bottom":"top","center"):to(u-1.5*O1)?(c=h?"top":"bottom","center"):(c="middle",u<1.5*O1&&O1/2<u?h?"left":"right":h?"right":"left"),r={rotation:u,textAlign:l,textVerticalAlign:c},null==(c=t.axisNameAvailableWidth)||(c=Math.abs(c/Math.sin(r.rotation)),isFinite(c))||(c=null)),s=o.getFont(),u=(h=e.get("nameTruncate",!0)||{}).ellipsis,l=St(t.nameTruncateMaxWidth,h.maxWidth,c),Qh({el:t=new Is({x:a[0],y:a[1],rotation:r.rotation,silent:R1.isLabelSilent(e),style:oc(o,{text:p,font:s,overflow:"truncate",width:l,ellipsis:u,fill:o.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:o.get("align")||r.textAlign,verticalAlign:o.get("verticalAlign")||r.textVerticalAlign}),z2:1}),componentModel:e,itemName:p}),t.__fullText=p,t.anid="name",e.get("triggerEvent")&&((h=R1.makeAxisEventDataBase(e)).targetType="axisName",h.name=p,Vs(t).eventData=h),i.add(t),t.updateTransform(),n.add(t),t.decomposeTransform())}};function N1(t,e){this.group=new Fr,this.opt=e,this.axisModel=t,z(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});t=new Fr({x:e.position[0],y:e.position[1],rotation:e.rotation});t.updateTransform(),this._transformGroup=t}function B1(t){t&&(t.ignore=!0)}function z1(t,e){var n,i=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(i&&r)return ze(n=Re([]),n,-t.rotation),i.applyTransform(Ne([],n,t.getLocalTransform())),r.applyTransform(Ne([],n,e.getLocalTransform())),i.intersect(r)}function F1(t){return"middle"===t||"center"===t}function V1(t,e,n,i,r){for(var o=[],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&&(ie(a,a,e),ie(s,s,e)),new Uu({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0}));Wh(u.shape,u.style.lineWidth),u.anid=r+"_"+t[l].tickValue,o.push(u)}return o}var H1,W1=["axisLine","axisTickLabel","axisName"],G1=(u(U1,H1=gg),U1.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},U1.prototype._buildAxes=function(t){var n=t.coordinateSystem;O(F(n.getIndicatorAxes(),function(t){var e=t.model.get("showName")?t.name:"";return new R1(t.model,{axisName:e,position:[n.cx,n.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(t){O(W1,t.add,t),this.group.add(t.getGroup())},this)},U1.prototype._buildSplitLineAndArea=function(t){var n=t.coordinateSystem,e=n.getIndicatorAxes();if(e.length){var i=t.get("shape"),r=t.getModel("splitLine"),t=t.getModel("splitArea"),o=r.getModel("lineStyle"),a=t.getModel("areaStyle"),s=r.get("show"),l=t.get("show"),r=o.get("color"),t=a.get("color"),u=V(r)?r:[r],h=V(t)?t:[t],c=[],p=[];if("circle"===i)for(var d=e[0].getTicksCoords(),f=n.cx,g=n.cy,y=0;y<d.length;y++)s&&c[M(c,u,y)].push(new ou({shape:{cx:f,cy:g,r:d[y].coord}})),l&&y<d.length-1&&p[M(p,h,y)].push(new Au({shape:{cx:f,cy:g,r0:d[y].coord,r:d[y+1].coord}}));else for(var m,v=F(e,function(t,e){t=t.getTicksCoords();return m=null==m?t.length-1:Math.min(t.length-1,m),F(t,function(t){return n.coordToPoint(t.coord,e)})}),_=[],y=0;y<=m;y++){for(var x=[],w=0;w<e.length;w++)x.push(v[w][y]);x[0]&&x.push(x[0].slice()),s&&c[M(c,u,y)].push(new Fu({shape:{points:x}})),l&&_&&p[M(p,h,y-1)].push(new Eu({shape:{points:x.concat(_)}})),_=x.slice().reverse()}var b=o.getLineStyle(),S=a.getAreaStyle();O(p,function(t,e){this.group.add(Vh(t,{style:z({stroke:"none",fill:h[e%h.length]},S),silent:!0}))},this),O(c,function(t,e){this.group.add(Vh(t,{style:z({fill:"none",stroke:u[e%u.length]},b),silent:!0}))},this)}function M(t,e,n){n%=e.length;return t[n]=t[n]||[],n}},U1.type="radar",U1);function U1(){var t=null!==H1&&H1.apply(this,arguments)||this;return t.type=U1.type,t}u(Y1,X1=Sc);var X1,q1=Y1;function Y1(t,e,n){t=X1.call(this,t,e,n)||this;return t.type="value",t.angle=0,t.name="",t}var Z1=Math.log;K1.prototype.getIndicatorAxes=function(){return this._indicatorAxes},K1.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},K1.prototype.coordToPoint=function(t,e){e=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(e),this.cy-t*Math.sin(e)]},K1.prototype.pointToData=function(t){var e=t[0]-this.cx,t=t[1]-this.cy,n=Math.sqrt(e*e+t*t);e/=n,t/=n;for(var i,r=Math.atan2(-t,e),o=1/0,a=-1,s=0;s<this._indicatorAxes.length;s++){var l=this._indicatorAxes[s],u=Math.abs(r-l.angle);u<o&&(i=l,a=s,o=u)}return[a,+(i&&i.coordToData(n))]},K1.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),e=e.getHeight(),r=Math.min(i,e)/2,i=(this.cx=f(n[0],i),this.cy=f(n[1],e),this.startAngle=t.get("startAngle")*Math.PI/180,t.get("radius"));(H(i)||gt(i))&&(i=[0,i]),this.r0=f(i[0],r),this.r=f(i[1],r),O(this._indicatorAxes,function(t,e){t.setExtent(this.r0,this.r);e=this.startAngle+e*Math.PI*2/this._indicatorAxes.length,e=Math.atan2(Math.sin(e),Math.cos(e));t.angle=e},this)},K1.prototype.update=function(i,t){var r=this._indicatorAxes,o=this._model,e=(O(r,function(t){t.scale.setExtent(1/0,-1/0)}),i.eachSeriesByType("radar",function(t,e){var n;"radar"===t.get("coordinateSystem")&&i.getComponent("radar",t.get("radarIndex"))===o&&(n=t.getData(),O(r,function(t){t.scale.unionExtentFromData(n,n.mapDimension(t.dim))}))},this),o.get("splitNumber")),f=new cv;f.setExtent(0,e),f.setInterval(1),O(r,function(t,e){var n=t.scale,t=t.model,i=f,r=cv.prototype,o=r.getTicks.call(i),a=r.getTicks.call(i,!0),s=o.length-1,i=r.getInterval.call(i),l=(t=zv(n,t)).extent,u=t.fixMin,t=t.fixMax,h=("log"===n.type&&(h=Z1(n.base),l=[Z1(l[0])/h,Z1(l[1])/h]),n.setExtent(l[0],l[1]),n.calcNiceExtent({splitNumber:s,fixMin:u,fixMax:t}),r.getExtent.call(n)),c=(u&&(l[0]=h[0]),t&&(l[1]=h[1]),r.getInterval.call(n)),p=l[0],d=l[1];if(u&&t)c=(d-p)/s;else if(u)for(d=l[0]+c*s;d<l[1]&&isFinite(d)&&isFinite(l[1]);)c=tv(c),d=l[0]+c*s;else if(t)for(p=l[1]-c*s;p>l[0]&&isFinite(p)&&isFinite(l[0]);)c=tv(c),p=l[1]-c*s;else{h=(c=n.getTicks().length-1>s?tv(c):c)*s;(p=jr((d=Math.ceil(l[1]/c)*c)-h))<0&&0<=l[0]?(p=0,d=jr(h)):0<d&&l[1]<=0&&(d=0,p=-jr(h))}u=(o[0].value-a[0].value)/i,t=(o[s].value-a[s].value)/i,r.setExtent.call(n,p+c*u,d+c*t),r.setInterval.call(n,c),(u||t)&&r.setNiceExtent.call(n,p+c,d-c)})},K1.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},K1.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},K1.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},K1.create=function(t,n){var i=[];return t.eachComponent("radar",function(t){var e=new K1(t,0,n);i.push(e),t.coordinateSystem=e}),t.eachSeriesByType("radar",function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])}),i},K1.dimensions=[];var j1=K1;function K1(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=F(t.getIndicatorModels(),function(t,e){var e="indicator_"+e,n=new q1(e,new cv);return n.name=t.get("name"),(n.model=t).axis=n,this.dimensions.push(e),n},this),this.resize(t,n)}function $1(t){t.registerCoordinateSystem("radar",j1),t.registerComponentModel(P1),t.registerComponentView(G1),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(t){e.setItemVisual(t,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}function Q1(t,e){var r,h,c,o,p,d,f,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=[],O(e.getCoordinateSystems(),function(s){var l,u,t,e,n;function i(t,e,n){var i,r,o=n.model.getModel("axisPointer",p),a=o.get("show");a&&("auto"!==a||t||ex(o))&&(null==e&&(e=o.get("triggerTooltip")),a=(o=t?function(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s={},e=(O(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=S(a.get(t))}),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line"),s.label||(s.label={}));null==e.show&&(e.show=!1),"cross"===r&&(r=a.get(["label","show"]),e.show=null==r||r,o||(r=s.lineStyle=a.get("crossStyle"))&&z(e,r.textStyle));return t.model.getModel("axisPointer",new Cc(s,n,i))}(n,u,p,c,t,e):o).get("snap"),t=o.get("triggerEmphasis"),i=nx(n.model),r=e||a||"category"===n.type,e=h.axesInfo[i]={key:i,axis:n,coordSys:s,axisPointerModel:o,triggerTooltip:e,triggerEmphasis:t,involveSeries:r,snap:a,useHandle:ex(o),seriesModels:[],linkGroup:null},l[i]=e,h.seriesInvolved=h.seriesInvolved||r,null!=(t=function(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(J1(o[i+"AxisId"],n.id)||J1(o[i+"AxisIndex"],n.componentIndex)||J1(o[i+"AxisName"],n.name))return r}}(d,n)))&&((a=f[t]||(f[t]={axesInfo:{}})).axesInfo[i]=e,a.mapper=d[t].mapper,e.linkGroup=a)}s.axisPointerEnabled&&(t=nx(s.model),l=h.coordSysAxesInfo[t]={},u=(h.coordSysMap[t]=s).model.getModel("tooltip",o),O(s.getAxes(),dt(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)&&O(n.baseAxes,dt(i,!e||"cross",t)),e)&&O(n.otherAxes,dt(i,"cross",!1))}),n.seriesInvolved&&(r=n,t.eachSeries(function(n){var i=n.coordinateSystem,t=n.get(["tooltip","trigger"],!0),e=n.get(["tooltip","show"],!0);i&&"none"!==t&&!1!==t&&"item"!==t&&!1!==e&&!1!==n.get(["axisPointer","show"],!0)&&O(r.coordSysAxesInfo[nx(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 J1(t,e){return"all"===t||V(t)&&0<=k(t,e)||t===e}function tx(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[nx(t)]}function ex(t){return!!t.get(["handle","show"])}function nx(t){return t.type+"||"+t.id}Kv(function(t){Kv($1),t.registerChartView(w1),t.registerSeriesModel(C1),t.registerLayout(y1),t.registerProcessor({seriesType:"radar",reset:function(t,e){var i,r=e.findComponents({mainType:"legend"});r&&r.length&&(i=t.getData()).filterSelf(function(t){for(var e=i.getName(t),n=0;n<r.length;n++)if(!r[n].isSelected(e))return!1;return!0})}}),t.registerPreprocessor(_1)});var ix,rx={},ox=(u(ax,ix=gg),ax.prototype.render=function(t,e,n,i){var r,o,a,s,l,u;this.axisPointerClass&&(r=tx(r=t))&&(l=r.axisPointerModel,o=r.axis.scale,a=l.option,u=l.get("status"),null!=(s=l.get("value"))&&(s=o.parse(s)),l=ex(l),null==u&&(a.status=l?"show":"hide"),(u=o.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=r.axis.scale.isBlank()?"hide":"show"),ix.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},ax.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},ax.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},ax.prototype.dispose=function(t,e){this._disposeAxisPointer(e),ix.prototype.dispose.apply(this,arguments)},ax.prototype._doUpdateAxisPointerClass=function(t,e,n){var i,r=ax.getAxisPointerClass(this.axisPointerClass);r&&((i=(i=tx(i=t))&&i.axisPointerModel)?(this._axisPointer||(this._axisPointer=new r)).render(t,i,e,n):this._disposeAxisPointer(e))},ax.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},ax.registerAxisPointerClass=function(t,e){rx[t]=e},ax.getAxisPointerClass=function(t){return t&&rx[t]},ax.type="axis",ax);function ax(){var t=null!==ix&&ix.apply(this,arguments)||this;return t.type=ax.type,t}var sx=To(),lx=S,ux=pt,Ku=(hx.prototype.render=function(t,e,n,i){var r,o,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,r=this._handle,s&&"hide"!==s?(i&&i.show(),r&&r.show(),this.makeElOption(s={},a,t,e,n),(o=s.graphicKey)!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=o,o=this._moveAnimation=this.determineAnimation(t,e),i?(o=dt(cx,e,o),this.updatePointerEl(i,s,o),this.updateLabelEl(i,s,o,e)):(i=this._group=new Fr,this.createPointerEl(i,s,t,e),this.createLabelEl(i,s,t,e),n.getZr().add(i)),fx(i,e,!0),this._renderHandle(a)):(i&&i.hide(),r&&r.hide()))},hx.prototype.remove=function(t){this.clear(t)},hx.prototype.dispose=function(t){this.clear(t)},hx.prototype.determineAnimation=function(t,e){var n,i=e.get("animation"),r=t.axis,o="category"===r.type,e=e.get("snap");return!(!e&&!o)&&("auto"===i||null==i?(n=this.animationThreshold,o&&r.getBandWidth()>n||!!e&&(o=tx(t).seriesDataCount,e=r.getExtent(),Math.abs(e[0]-e[1])/o>n)):!0===i)},hx.prototype.makeElOption=function(t,e,n,i,r){},hx.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;r&&(r=sx(t).pointerEl=new ec[r.type](lx(e.pointer)),t.add(r))},hx.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=sx(t).labelEl=new Is(lx(e.label)),t.add(e),px(e,i))},hx.prototype.updatePointerEl=function(t,e,n){t=sx(t).pointerEl;t&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},hx.prototype.updateLabelEl=function(t,e,n,i){t=sx(t).labelEl;t&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),px(t,i))},hx.prototype._renderHandle=function(t){var e,n,i,r,o,a;!this._dragging&&this.updateHandleTransform&&(n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status"),o.get("show")&&a&&"hide"!==a?(this._handle||(e=!0,r=this._handle=Kh(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Ie(t.event)},onmousedown:ux(this._onHandleDragMove,this,0,0),drift:ux(this._onHandleDragMove,this),ondragend:ux(this._onHandleDragEnd,this)}),i.add(r)),fx(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),V(a=o.get("size"))||(a=[a,a]),r.scaleX=a[0]/2,r.scaleY=a[1]/2,function(t,e,n,i){var r=t[e];if(r){var o=r[kg]||r,a=r[Dg];if(r[Ig]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=Ag(o,n,"debounce"===i))[kg]=o,r[Dg]=i,r[Ig]=n}}}(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)):(r&&i.remove(r),this._handle=null))},hx.prototype._moveHandleToValue=function(t,e){cx(this._axisPointerModel,!e&&this._moveAnimation,this._handle,dx(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},hx.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(dx(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(dx(t)),sx(n).lastProp=null,this._doDispatchAxisPointer())},hx.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}]}))},hx.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},hx.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),(n=(e=this)[t="_doDispatchAxisPointer"])&&n[kg]&&(n.clear&&n.clear(),e[t]=n[kg])},hx.prototype.doClear=function(){},hx.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},hx);function hx(){this._dragging=!1,this.animationThreshold=15}function cx(t,e,n,i){!function n(i,t){{var r;if(R(i)&&R(t))return r=!0,O(t,function(t,e){r=r&&n(i[e],t)}),!!r}return i===t}(sx(n).lastProp,i)&&(sx(n).lastProp=i,e?Sh(n,i,t):(n.stopAnimation(),n.attr(i)))}function px(t,e){t[e.get(["label","show"])?"show":"hide"]()}function dx(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function fx(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}function gx(t){var e,n=t.get("type"),t=t.getModel(n+"Style");return"line"===n?(e=t.getLineStyle()).fill=null:"shadow"===n&&((e=t.getAreaStyle()).stroke=null),e}function yx(t,e,n,i,r){var o=function(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),r=r.formatter;{var a;r&&(a={value:Wv(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},O(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&a.seriesData.push(e)}),H(r)?o=r.replace("{value}",o):M(r)&&(o=r(a)))}return o}(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=pp(n.get("padding")||0),s=n.getFont(),l=wr(o,s),u=r.position,h=l.width+a[1]+a[3],l=l.height+a[0]+a[2],c=r.align,c=("right"===c&&(u[0]-=h),"center"===c&&(u[0]-=h/2),r.verticalAlign),i=("bottom"===c&&(u[1]-=l),"middle"===c&&(u[1]-=l/2),r=u,c=h,h=l,i=(l=i).getWidth(),l=l.getHeight(),r[0]=Math.min(r[0]+c,i)-c,r[1]=Math.min(r[1]+h,l)-h,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0),n.get("backgroundColor"));i&&"auto"!==i||(i=e.get(["axisLine","lineStyle","color"])),t.label={x:u[0],y:u[1],style:oc(n,{text:o,font:s,fill:n.getTextColor(),padding:a,backgroundColor:i}),z2:10}}function mx(t,e,n){var i=Oe();return ze(i,i,n.rotation),Be(i,i,n.position),Xh([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function vx(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function _x(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}u(Sx,xx=Ku),Sx.prototype.makeElOption=function(t,e,n,i,r){var o,a=n.axis,s=("angle"===a.dim&&(this.animationThreshold=Math.PI/18),a.polar),l=s.getOtherAxis(a).getExtent(),u=a.dataToCoord(e),h=i.get("type"),a=(h&&"none"!==h&&(o=gx(i),(h=Mx[h](a,s,u,l)).style=o,t.graphicKey=h.type,t.pointer=h),i.get(["label","margin"]));yx(t,n,i,r,function(t,e,n,i){var r=e.axis,t=r.dataToCoord(t);l=(l=n.getAngleAxis().getExtent()[0])/180*Math.PI;var o,a,s=n.getRadiusAxis().getExtent();{var l;s="radius"===r.dim?(r=Oe(),ze(r,r,l),Be(r,r,[n.cx,n.cy]),o=Xh([t,-i],r),r=e.getModel("axisLabel").get("rotate")||0,e=R1.innerTextLayout(l,r*Math.PI/180,-1),a=e.textAlign,e.textVerticalAlign):(l=s[1],o=n.coordToPoint([l+i,t]),r=n.cx,e=n.cy,a=Math.abs(o[0]-r)/l<.3?"center":o[0]>r?"left":"right",Math.abs(o[1]-e)/l<.3?"middle":o[1]>e?"top":"bottom")}return{position:o,align:a,verticalAlign:s}}(e,n,s,a))};var xx,bx=Sx;function Sx(){return null!==xx&&xx.apply(this,arguments)||this}var Mx={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:vx(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:_x(e.cx,e.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:_x(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}};function Tx(t,e,n){n=n||{};var t=t.coordinateSystem,i=e.axis,r={},o=i.getAxesOnZeroOf()[0],a=i.position,s=o?"onZero":a,i=i.dim,t=t.getRect(),t=[t.x,t.x+t.width,t.y,t.y+t.height],l={left:0,right:1,top:0,bottom:1,onZero:2},u=e.get("offset")||0,u="x"===i?[t[2]-u,t[3]+u]:[t[0]-u,t[1]+u],h=(o&&(h=o.toGlobalCoord(o.dataToCoord(0)),u[l.onZero]=Math.max(Math.min(h,u[1]),u[0])),r.position=["y"===i?u[l[s]]:t[0],"x"===i?u[l[s]]:t[3]],r.rotation=Math.PI/2*("x"===i?0:1),r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],r.labelOffset=o?u[l[a]]-u[l.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),St(n.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection),e.get(["axisLabel","rotate"]));return r.labelRotate="top"===s?-h:h,r.z2=1,r}u(Ix,Cx=Ku),Ix.prototype.makeElOption=function(t,e,n,i,r){var o,a=n.axis,s=a.grid,l=i.get("type"),u=Dx(s,a).getOtherAxis(a).getGlobalExtent(),h=a.toGlobalCoord(a.dataToCoord(e,!0)),a=(l&&"none"!==l&&(o=gx(i),(l=Ax[l](a,h,u)).style=o,t.graphicKey=l.type,t.pointer=l),Tx(s.model,n));h=e,u=t,o=a,l=n,s=i,e=r,t=R1.innerTextLayout(o.rotation,0,o.labelDirection),o.labelMargin=s.get(["label","margin"]),yx(u,l,s,e,{position:mx(l.axis,h,o),align:t.textAlign,verticalAlign:t.textVerticalAlign})},Ix.prototype.getHandleTransform=function(t,e,n){var i=Tx(e.axis.grid.model,e,{labelInside:!1}),n=(i.labelMargin=n.get(["handle","margin"]),mx(e.axis,t,i));return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},Ix.prototype.updateHandleTransform=function(t,e,n,i){var n=n.axis,r=n.grid,o=n.getGlobalExtent(!0),r=Dx(r,n).getOtherAxis(n).getGlobalExtent(),n="x"===n.dim?0:1,a=[t.x,t.y],e=(a[n]+=e[n],a[n]=Math.min(o[1],a[n]),a[n]=Math.max(o[0],a[n]),(r[1]+r[0])/2),o=[e,e];return o[n]=a[n],{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:o,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][n]}};var Cx,kx=Ix;function Ix(){return null!==Cx&&Cx.apply(this,arguments)||this}function Dx(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var Ax={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:vx([e,n[0]],[e,n[1]],Px(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:(e=[e-i/2,n[0]],n=[i,r],i=Px(t),{x:e[i=i||0],y:e[1-i],width:n[i],height:n[1-i]})}}};function Px(t){return"x"===t.dim?0:1}u(Rx,Lx=y),Rx.type="axisPointer",Rx.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}};var Lx,Ox=Rx;function Rx(){var t=null!==Lx&&Lx.apply(this,arguments)||this;return t.type=Rx.type,t}var Ex=To(),Nx=O;function Bx(t,e,n){var i,c,p;function r(t,h){c.on(t,function(e){n=p;var n,i,t,r,o,a,s,l={dispatchAction:u,pendings:i={showTip:[],hideTip:[]}};function u(t){var e=i[t.type];e?e.push(t):(t.dispatchAction=u,n.dispatchAction(t))}Nx(Ex(c).records,function(t){t&&h(t,e,l.dispatchAction)}),r=p,a=(t=l.pendings).showTip.length,s=t.hideTip.length,a?o=t.showTip[a-1]:s&&(o=t.hideTip[s-1]),o&&(o.dispatchAction=null,r.dispatchAction(o))})}b.node||(i=e.getZr(),Ex(i).records||(Ex(i).records={}),p=e,Ex(c=i).initialized||(Ex(c).initialized=!0,r("click",dt(Fx,"click")),r("mousemove",dt(Fx,"mousemove")),r("globalout",zx)),(Ex(i).records[t]||(Ex(i).records[t]={})).handler=n)}function zx(t,e,n){t.handler("leave",null,n)}function Fx(t,e,n,i){e.handler(t,n,i)}function Vx(t,e){b.node||(e=e.getZr(),(Ex(e).records||{})[t]&&(Ex(e).records[t]=null))}u(Gx,Hx=gg),Gx.prototype.render=function(t,e,n){var e=e.getComponent("tooltip"),i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";Bx("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})})},Gx.prototype.remove=function(t,e){Vx("axisPointer",e)},Gx.prototype.dispose=function(t,e){Vx("axisPointer",e)},Gx.type="axisPointer";var Hx,Wx=Gx;function Gx(){var t=null!==Hx&&Hx.apply(this,arguments)||this;return t.type=Gx.type,t}var Ux=To();function Xx(t,e,n){var o,a,i,s,l,r,u,h,c,p,d,f,g,y,m,v,_,x,w,b,S,M=t.currTrigger,T=[t.x,t.y],C=t,k=t.dispatchAction||pt(n.dispatchAction,n),I=e.getComponent("axisPointer").coordSysAxesInfo;if(I)return Kx(T)&&(m={seriesIndex:C.seriesIndex,dataIndex:C.dataIndex},e=e,b=[],S=m.seriesIndex,T=(null==S||!(e=e.getSeriesByIndex(S))||null==(S=Mo(v=e.getData(),m))||S<0||V(S)?{point:[]}:(_=v.getItemGraphicEl(S),x=e.coordinateSystem,e.getTooltipPosition?b=e.getTooltipPosition(S)||[]:x&&x.dataToPoint?b=m.isStacked?(e=x.getBaseAxis(),m=x.getOtherAxis(e).dim,e=e.dim,m="x"===m||"radius"===m?1:0,e=v.mapDimension(e),(w=[])[m]=v.get(e,S),w[1-m]=v.get(v.getCalculationInfo("stackResultDimension"),S),x.dataToPoint(w)||[]):x.dataToPoint(v.getValues(F(x.dimensions,function(t){return v.mapDimension(t)}),S))||[]:_&&((e=_.getBoundingRect().clone()).applyTransform(_.transform),b=[e.x+e.width/2,e.y+e.height/2]),{point:b,el:_})).point),o=Kx(T),a=C.axesInfo,i=I.axesInfo,s="leave"===M||Kx(T),l={},m={list:[],map:{}},u={showPointer:dt(Yx,r={}),showTooltip:dt(Zx,m)},O(I.coordSysMap,function(t,e){var r=o||t.containPoint(T);O(I.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||!r||a&&!i||null!=(i=null!=(i=i&&i.value)||o?i:n.pointToData(T))&&qx(t,i,u,!1,l)})}),h={},O(i,function(n,t){var i=n.linkGroup;i&&!r[t]&&O(i.axesInfo,function(t,e){var e=r[e];t!==n&&e&&(e=e.value,i.mapper&&(e=n.axis.scale.parse(i.mapper(e,jx(t),jx(n)))),h[n.key]=e)})}),O(h,function(t,e){qx(i[e],t,u,!0,l)}),g=r,w=i,y=l.axesInfo=[],O(w,function(t,e){var n=t.axisPointerModel.option,e=g[e];e?(t.useHandle||(n.status="show"),n.value=e.value,n.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&y.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),x=m,S=t,e=k,!Kx(b=T)&&x.list.length?(_=((x.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},e({type:"showTip",escapeConnect:!0,x:b[0],y:b[1],tooltipOption:S.tooltipOption,position:S.position,dataIndexInside:_.dataIndexInside,dataIndex:_.dataIndex,seriesIndex:_.seriesIndex,dataByCoordSys:x.list})):e({type:"hideTip"}),C=i,t=(M=n).getZr(),k="axisPointerLastHighlights",c=Ux(t)[k]||{},p=Ux(t)[k]={},O(C,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&O(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;p[e]=t})}),d=[],f=[],O(c,function(t,e){p[e]||f.push(t)}),O(p,function(t,e){c[e]||d.push(t)}),f.length&&M.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:f}),d.length&&M.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:d}),l}function qx(t,e,n,i,r){var o,a,s,l,u,h,c,p,d,f,g=t.axis;!g.scale.isBlank()&&g.containData(e)&&(t.involveSeries?(l=e,u=t.axis,h=u.dim,c=l,p=[],d=Number.MAX_VALUE,f=-1,O(t.seriesModels,function(e,t){var n,i=e.getData().mapDimensionsAll(h);if(e.getAxisTooltipData)var r=e.getAxisTooltipData(i,l,u),o=r.dataIndices,r=r.nestestValue;else{if(!(o=e.getData().indicesOfNearest(i[0],l,"category"===u.type?.5:null)).length)return;r=e.getData().get(i[0],o[0])}null!=r&&isFinite(r)&&(i=l-r,(n=Math.abs(i))<=d)&&((n<d||0<=i&&f<0)&&(d=n,f=i,c=r,p.length=0),O(o,function(t){p.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}),s=(o={payloadBatch:p,snapToValue:c}).snapToValue,(a=o.payloadBatch)[0]&&null==r.seriesIndex&&L(r,a[0]),!i&&t.snap&&g.containData(s)&&null!=s&&(e=s),n.showPointer(t,e,a),n.showTooltip(t,o,s)):n.showPointer(t,e))}function Yx(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function Zx(t,e,n,i){var r,o,n=n.payloadBatch,a=e.axis,s=a.model,l=e.axisPointerModel;e.triggerTooltip&&n.length&&(r=nx(e=e.coordSys.model),(o=t.map[r])||(o=t.map[r]={coordSysId:e.id,coordSysIndex:e.componentIndex,coordSysType:e.type,coordSysMainType:e.mainType,dataByAxis:[]},t.list.push(o)),o.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 jx(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 Kx(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function $x(t){ox.registerAxisPointerClass("CartesianAxisPointer",kx),t.registerComponentModel(Ox),t.registerComponentView(Wx),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=Q1(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Xx)}u(tw,Qx=y),tw.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},tw.type="polar",tw.dependencies=["radiusAxis","angleAxis"],tw.defaultOption={z:0,center:["50%","50%"],radius:"80%"};var Qx,Jx=tw;function tw(){var t=null!==Qx&&Qx.apply(this,arguments)||this;return t.type=tw.type,t}var ew={value:1,category:1,time:1,log:1};function nw(o,a,s,l){O(ew,function(t,r){var e,n=d(d({},I1[r],!0),l,!0),n=(u(i,e=s),i.prototype.mergeDefaultAndTheme=function(t,e){var n=wp(this),i=n?Sp(t):{};d(t,e.getTheme().get(r+"Axis")),d(t,this.getDefaultOption()),t.type=iw(t),n&&bp(t,i,n)},i.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Km.createByAxisModel(this))},i.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},i.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},i.type=a+"Axis."+r,i.defaultOption=n,i);function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a+"Axis."+r,t}o.registerComponentModel(n)}),o.registerSubTypeDefaulter(a+"Axis",iw)}function iw(t){return t.type||(t.data?"category":"value")}u(ow,rw=y),ow.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Do).models[0]},ow.type="polarAxis";var rw,ih=ow;function ow(){return null!==rw&&rw.apply(this,arguments)||this}at(ih,qv);u(lw,aw=ih),lw.type="angleAxis";var aw,sw=lw;function lw(){var t=null!==aw&&aw.apply(this,arguments)||this;return t.type=lw.type,t}u(cw,uw=ih),cw.type="radiusAxis";var uw,hw=cw;function cw(){var t=null!==uw&&uw.apply(this,arguments)||this;return t.type=cw.type,t}u(fw,pw=Sc),fw.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]};var pw,dw=fw;function fw(t,e){return pw.call(this,"radius",t,e)||this}dw.prototype.dataToRadius=Sc.prototype.dataToCoord,dw.prototype.radiusToData=Sc.prototype.coordToData;var gw,yw=To(),mw=(u(vw,gw=Sc),vw.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},vw.prototype.calculateCategoryInterval=function(){var t,e,n=this.getLabelModel(),i=this.scale,r=i.getExtent(),i=i.count();return r[1]-r[0]<1?0:(r=r[0],t=this.dataToCoord(r+1)-this.dataToCoord(r),t=Math.abs(t),r=wr(null==r?"":r+"",n.getFont(),"center","top"),n=Math.max(r.height,7)/t,isNaN(n)&&(n=1/0),r=Math.max(0,Math.floor(n)),n=(t=yw(this.model)).lastAutoInterval,e=t.lastTickCount,null!=n&&null!=e&&Math.abs(n-r)<=1&&Math.abs(e-i)<=1&&r<n?r=n:(t.lastTickCount=i,t.lastAutoInterval=r),r)},vw);function vw(t,e){return gw.call(this,"angle",t,e||[0,360])||this}mw.prototype.dataToAngle=Sc.prototype.dataToCoord,mw.prototype.angleToData=Sc.prototype.coordToData;var _w=["radius","angle"],xw=(ww.prototype.containPoint=function(t){t=this.pointToCoord(t);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},ww.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},ww.prototype.getAxis=function(t){return this["_"+t+"Axis"]},ww.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},ww.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},ww.prototype.getAngleAxis=function(){return this._angleAxis},ww.prototype.getRadiusAxis=function(){return this._radiusAxis},ww.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},ww.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},ww.prototype.getTooltipAxes=function(t){t=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},ww.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},ww.prototype.pointToData=function(t,e){t=this.pointToCoord(t);return[this._radiusAxis.radiusToData(t[0],e),this._angleAxis.angleToData(t[1],e)]},ww.prototype.pointToCoord=function(t){var e=t[0]-this.cx,t=t[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),r=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]),i=(n.inverse?r=o-360:o=r+360,Math.sqrt(e*e+t*t));e/=i,t/=i;for(var a=Math.atan2(-t,e)/Math.PI*180,s=a<r?1:-1;a<r||o<a;)a+=360*s;return[i,a]},ww.prototype.coordToPoint=function(t){var e=t[0],t=t[1]/180*Math.PI;return[Math.cos(t)*e+this.cx,-Math.sin(t)*e+this.cy]},ww.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice(),n=(e[0]>e[1]&&e.reverse(),t.getExtent()),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){var t=t-this.cx,e=e-this.cy,t=t*t+e*e-1e-4,e=this.r,n=this.r0;return t<=e*e&&n*n<=t}}},ww.prototype.convertToPixel=function(t,e,n){return bw(e)===this?this.dataToPoint(n):null},ww.prototype.convertFromPixel=function(t,e,n){return bw(e)===this?this.pointToData(n):null},ww);function ww(t){this.dimensions=_w,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new dw,this._angleAxis=new mw,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}function bw(t){var e=t.seriesModel,t=t.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function Sw(t,e){var n,i=this,r=i.getAngleAxis(),o=i.getRadiusAxis();r.scale.setExtent(1/0,-1/0),o.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){var e;t.coordinateSystem===i&&(O(Xv(e=t.getData(),"radius"),function(t){o.scale.unionExtentFromData(e,t)}),O(Xv(e,"angle"),function(t){r.scale.unionExtentFromData(e,t)}))}),Fv(r.scale,r.model),Fv(o.scale,o.model),"category"!==r.type||r.onBand||(t=r.getExtent(),n=360/r.scale.count(),r.inverse?t[1]+=n:t[1]-=n,r.setExtent(t[0],t[1]))}function Mw(t,e){var n;t.type=e.get("type"),t.scale=Vv(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType&&(t.inverse=t.inverse!==e.get("clockwise"),n=e.get("startAngle"),t.setExtent(n,n+(t.inverse?-360:360))),(e.axis=t).model=e}var Tw={dimensions:_w,create:function(t,s){var l=[];return t.eachComponent("polar",function(t,e){var n,e=new xw(e+""),i=(e.update=Sw,e.getRadiusAxis()),r=e.getAngleAxis(),o=t.findAxisModel("radiusAxis"),a=t.findAxisModel("angleAxis");Mw(i,o),Mw(r,a),i=e,o=s,a=(r=t).get("center"),n=o.getWidth(),o=o.getHeight(),i.cx=f(a[0],n),i.cy=f(a[1],o),a=i.getRadiusAxis(),i=Math.min(n,o)/2,null==(n=r.get("radius"))?n=[0,"100%"]:V(n)||(n=[0,n]),o=[f(n[0],i),f(n[1],i)],a.inverse?a.setExtent(o[1],o[0]):a.setExtent(o[0],o[1]),l.push(e),(t.coordinateSystem=e).model=t}),t.eachSeries(function(t){var e;"polar"===t.get("coordinateSystem")&&(e=t.getReferringComponents("polar",Do).models[0],t.coordinateSystem=e.coordinateSystem)}),l}},Cw=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function kw(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),t=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:t[0],y2:t[1]}}function Iw(t){return t.getRadiusAxis().inverse?0:1}function Dw(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}u(Ow,Aw=ox),Ow.prototype.render=function(e,t){var n,i,r,o,a,s;this.group.removeAll(),e.get("show")&&(n=e.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),Dw(s=F(n.getViewLabels(),function(t){t=S(t);var e=n.scale,e="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(e),t})),Dw(o),O(Cw,function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||Lw[t](this.group,e,i,o,a,r,s)},this))},Ow.type="angleAxis";var Aw,Pw=Ow,Lw={axisLine:function(t,e,n,i,r,o){var e=e.getModel(["axisLine","lineStyle"]),a=Iw(n),s=a?0:1;(n=0===o[s]?new ou({shape:{cx:n.cx,cy:n.cy,r:o[a]},style:e.getLineStyle(),z2:1,silent:!0}):new Au({shape:{cx:n.cx,cy:n.cy,r:o[a],r0:o[s]},style:e.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(n)},axisTick:function(t,e,n,i,r,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[Iw(n)],o=F(i,function(t){return new Uu({shape:kw(n,[l,l+s],t.coord)})});t.add(Vh(o,{style:z(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[Iw(n)],h=[],c=0;c<r.length;c++)for(var p=0;p<r[c].length;p++)h.push(new Uu({shape:kw(n,[u,u+l],r[c][p].coord)}));t.add(Vh(h,{style:z(s.getModel("lineStyle").getLineStyle(),z(a.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(l,u,h,t,e,c,n){var p=u.getCategories(!0),d=u.getModel("axisLabel"),f=d.get("margin"),g=u.get("triggerEvent");O(n,function(t,e){var n=d,i=t.tickValue,r=c[Iw(h)],o=h.coordToPoint([r+f,t.coord]),a=h.cx,s=h.cy,a=Math.abs(o[0]-a)/r<.3?"center":o[0]>a?"left":"right",r=Math.abs(o[1]-s)/r<.3?"middle":o[1]>s?"top":"bottom",i=(p&&p[i]&&R(s=p[i])&&s.textStyle&&(n=new Cc(s.textStyle,d,d.ecModel)),new Is({silent:R1.isLabelSilent(u),style:oc(n,{x:o[0],y:o[1],fill:n.getTextColor()||u.get(["axisLine","lineStyle","color"]),text:t.formattedLabel,align:a,verticalAlign:r})}));l.add(i),g&&((s=R1.makeAxisEventDataBase(u)).targetType="axisLabel",s.value=t.rawLabel,Vs(i).eventData=s)},this)},splitLine:function(t,e,n,i,r,o){for(var a=e.getModel("splitLine").getModel("lineStyle"),s=0,l=(l=a.get("color"))instanceof Array?l:[l],u=[],h=0;h<i.length;h++){var c=s++%l.length;u[c]=u[c]||[],u[c].push(new Uu({shape:kw(n,o,i[h].coord)}))}for(h=0;h<u.length;h++)t.add(Vh(u[h],{style:z({stroke:l[h%l.length]},a.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<r.length;l++)for(var u=0;u<r[l].length;u++)s.push(new Uu({shape:kw(n,o,r[l][u].coord)}));t.add(Vh(s,{style:a.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,i,r,o){if(i.length){for(var a=e.getModel("splitArea").getModel("areaStyle"),s=0,l=(l=a.get("color"))instanceof Array?l:[l],u=[],h=Math.PI/180,c=-i[0].coord*h,p=Math.min(o[0],o[1]),d=Math.max(o[0],o[1]),f=e.get("clockwise"),g=1,y=i.length;g<=y;g++){var m=(g===y?i[0]:i[g]).coord,v=s++%l.length;u[v]=u[v]||[],u[v].push(new Cu({shape:{cx:n.cx,cy:n.cy,r0:p,r:d,startAngle:c,endAngle:-m*h,clockwise:f},silent:!0})),c=-m*h}for(g=0;g<u.length;g++)t.add(Vh(u[g],{style:z({fill:l[g%l.length]},a.getAreaStyle()),silent:!0}))}}};function Ow(){var t=null!==Aw&&Aw.apply(this,arguments)||this;return t.type=Ow.type,t.axisPointerClass="PolarAxisPointer",t}var Rw,Ew=["axisLine","axisTickLabel","axisName"],Nw=["splitLine","splitArea","minorSplitLine"],Bw=(u(Fw,Rw=ox),Fw.prototype.render=function(e,t){var n,i,r,o,a,s,l,u,h;this.group.removeAll(),e.get("show")&&(n=this._axisGroup,i=this._axisGroup=new Fr,this.group.add(i),r=e.axis,h=(o=r.polar).getAngleAxis(),a=r.getTicksCoords(),s=r.getMinorTicksCoords(),l=h.getExtent()[0],u=r.getExtent(),h={position:[o.cx,o.cy],rotation:l/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1},h=new R1(e,h),O(Ew,h.add,h),i.add(h.getGroup()),Yh(n,i,e),O(Nw,function(t){e.get([t,"show"])&&!r.scale.isBlank()&&zw[t](this.group,e,o,l,u,a,s)},this))},Fw.type="radiusAxis",Fw),zw={splitLine:function(t,e,n,i,r,o){for(var a=e.getModel("splitLine").getModel("lineStyle"),s=0,l=(l=a.get("color"))instanceof Array?l:[l],u=[],h=0;h<o.length;h++){var c=s++%l.length;u[c]=u[c]||[],u[c].push(new ou({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[h].coord,0)}}))}for(h=0;h<u.length;h++)t.add(Vh(u[h],{style:z({stroke:l[h%l.length],fill:null},a.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,i,r,o,a){if(a.length){for(var e=e.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<a.length;l++)for(var u=0;u<a[l].length;u++)s.push(new ou({shape:{cx:n.cx,cy:n.cy,r:a[l][u].coord}}));t.add(Vh(s,{style:z({fill:null},e.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,i,r,o){if(o.length){for(var a=e.getModel("splitArea").getModel("areaStyle"),s=0,l=(l=a.get("color"))instanceof Array?l:[l],u=[],h=o[0].coord,c=1;c<o.length;c++){var p=s++%l.length;u[p]=u[p]||[],u[p].push(new Cu({shape:{cx:n.cx,cy:n.cy,r0:h,r:o[c].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=o[c].coord}for(c=0;c<u.length;c++)t.add(Vh(u[c],{style:z({fill:l[c%l.length]},a.getAreaStyle()),silent:!0}))}}};function Fw(){var t=null!==Rw&&Rw.apply(this,arguments)||this;return t.type=Fw.type,t.axisPointerClass="PolarAxisPointer",t}function Vw(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function Hw(t,e){return e.dim+t.model.componentIndex}function Ww(t,e,n){var i,l,c,A={},P=(i=ut(e.getSeriesByType(t),function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type}),l={},O(i,function(t,e){var n=t.getData(),i=t.coordinateSystem,r=i.getBaseAxis(),i=Hw(i,r),o=r.getExtent(),r="category"===r.type?r.getBandWidth():Math.abs(o[1]-o[0])/n.count(),o=l[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},n=o.stacks,i=(l[i]=o,Vw(t)),a=(n[i]||o.autoWidthCount++,n[i]=n[i]||{width:0,maxWidth:0},f(t.get("barWidth"),r)),r=f(t.get("barMaxWidth"),r),s=t.get("barGap"),t=t.get("barCategoryGap");a&&!n[i].width&&(a=Math.min(o.remainedWidth,a),n[i].width=a,o.remainedWidth-=a),r&&(n[i].maxWidth=r),null!=s&&(o.gap=s),null!=t&&(o.categoryGap=t)}),c={},O(l,function(t,n){c[n]={};var e=t.stacks,i=t.bandWidth,i=f(t.categoryGap,i),r=f(t.gap,1),o=t.remainedWidth,a=t.autoWidthCount,s=(o-i)/(a+(a-1)*r),s=Math.max(s,0);O(e,function(t,e){var n=t.maxWidth;n&&n<s&&(n=Math.min(n,o),t.width&&(n=Math.min(n,t.width)),o-=n,t.width=n,a--)}),s=(o-i)/(a+(a-1)*r),s=Math.max(s,0);var l,u=0,h=(O(e,function(t,e){t.width||(t.width=s),u+=(l=t).width*(1+r)}),l&&(u-=l.width*r),-u/2);O(e,function(t,e){c[n][e]=c[n][e]||{offset:h,width:t.width},h+=t.width*(1+r)})}),c);e.eachSeriesByType(t,function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=Hw(n,i),o=Vw(t),r=P[r][o],a=r.offset,s=r.width,l=n.getOtherAxis(i),u=t.coordinateSystem.cx,h=t.coordinateSystem.cy,c=t.get("barMinHeight")||0,p=t.get("barMinAngle")||0;A[o]=A[o]||[];for(var d=e.mapDimension(l.dim),f=e.mapDimension(i.dim),g=Um(e,d),y="radius"!==i.dim||!t.get("roundCap",!0),m=l.dataToCoord(0),v=0,_=e.count();v<_;v++){var x,w,b=e.get(d,v),S=e.get(f,v),M=0<=b?"p":"n",T=m,C=(g&&(A[o][S]||(A[o][S]={p:m,n:m}),T=A[o][S][M]),void 0),k=void 0,I=void 0,D=void 0;"radius"===l.dim?(w=l.dataToCoord(b)-m,x=i.dataToCoord(S),k=(C=T)+(w=Math.abs(w)<c?(w<0?-1:1)*c:w),D=(I=x-a)-s,g&&(A[o][S][M]=k)):(w=l.dataToCoord(b,y)-m,k=(C=i.dataToCoord(S)+a)+s,D=(I=T)+(w=Math.abs(w)<p?(w<0?-1:1)*p:w),g&&(A[o][S][M]=D)),e.setItemLayout(v,{cx:u,cy:h,r0:C,r:k,startAngle:-I*Math.PI/180,endAngle:-D*Math.PI/180,clockwise:D<=I})}}})}var Gw,Uw={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},Xw={splitNumber:5},qw=(u(Yw,Gw=gg),Yw.type="polar",Yw);function Yw(){var t=null!==Gw&&Gw.apply(this,arguments)||this;return t.type=Yw.type,t}Kv(function(t){Kv($x),ox.registerAxisPointerClass("PolarAxisPointer",bx),t.registerCoordinateSystem("polar",Tw),t.registerComponentModel(Jx),t.registerComponentView(qw),nw(t,"angle",sw,Uw),nw(t,"radius",hw,Xw),t.registerComponentView(Pw),t.registerComponentView(Bw),t.registerLayout(dt(Ww,"bar"))});u(Jw,jw=y),Jw.type="title",Jw.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}};var Zw,jw,Kw=Jw,$w=(u(Qw,Zw=gg),Qw.prototype.render=function(t,e,n){var i,r,o,a,s,l,u,h,c;this.group.removeAll(),t.get("show")&&(i=this.group,u=t.getModel("textStyle"),r=t.getModel("subtextStyle"),h=t.get("textAlign"),c=E(t.get("textBaseline"),t.get("textVerticalAlign")),s=(u=new Is({style:oc(u,{text:t.get("text"),fill:u.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),l=t.get("subtext"),r=new Is({style:oc(r,{text:l,fill:r.getTextColor(),y:s.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),o=t.get("link"),a=t.get("sublink"),s=t.get("triggerEvent",!0),u.silent=!o&&!s,r.silent=!a&&!s,o&&u.on("click",function(){gp(o,"_"+t.get("target"))}),a&&r.on("click",function(){gp(a,"_"+t.get("subtarget"))}),Vs(u).eventData=Vs(r).eventData=s?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(u),l&&i.add(r),s=i.getBoundingRect(),(l=t.getBoxLayoutParams()).width=s.width,l.height=s.height,l=xp(l,{width:n.getWidth(),height:n.getHeight()},t.get("padding")),h||("right"===(h="middle"===(h=t.get("left")||t.get("right"))?"center":h)?l.x+=l.width:"center"===h&&(l.x+=l.width/2)),c||("bottom"===(c="center"===(c=t.get("top")||t.get("bottom"))?"middle":c)?l.y+=l.height:"middle"===c&&(l.y+=l.height/2),c=c||"top"),i.x=l.x,i.y=l.y,i.markRedraw(),u.setStyle(n={align:h,verticalAlign:c}),r.setStyle(n),s=i.getBoundingRect(),u=l.margin,(h=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),c=new Ss({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))},Qw.type="title",Qw);function Qw(){var t=null!==Zw&&Zw.apply(this,arguments)||this;return t.type=Qw.type,t}function Jw(){var t=null!==jw&&jw.apply(this,arguments)||this;return t.type=Jw.type,t.layoutMode={type:"box",ignoreSize:!0},t}Kv(function(t){t.registerComponentModel(Kw),t.registerComponentView($w)}),Kv(g1);var tb={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},eb=(pb.prototype.evaluate=function(t){var e=typeof t;return H(e)?this._condVal.test(t):!!gt(e)&&this._condVal.test(t+"")},pb),nb=(cb.prototype.evaluate=function(){return this.value},cb),ib=(hb.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},hb),rb=(ub.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},ub),ob=(lb.prototype.evaluate=function(){return!this.child.evaluate()},lb),ab=(sb.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},sb);function sb(){}function lb(){}function ub(){}function hb(){}function cb(){}function pb(t){null==(this._condVal=H(t)?new RegExp(t):wt(t)?t:null)&&g("")}function db(t,e){var n;if(!0===t||!1===t)return(n=new nb).value=t,n;{if(gb(t)||g(""),t.and)return fb("and",t,e);if(t.or)return fb("or",t,e);if(t.not)n=e,gb(o=(o=t).not)||g(""),(l=new ob).child=db(o,n),l.child||g("");else{for(var i=t,r=e,o=r.prepareGetValue(i),a=[],s=ct(i),l=i.parser,u=l?Sf(l):null,h=0;h<s.length;h++){var c,p=s[h];"parser"===p||r.valueGetterAttrMap.get(p)||(c=Vt(tb,p)?tb[p]:p,p=i[p],p=u?u(p):p,(c=function(t,e){return"eq"===t||"ne"===t?new Df("eq"===t,e):Vt(Mf,t)?new Tf(t,e):null}(c,p)||"reg"===c&&new eb(p))||g(""),a.push(c))}a.length||g(""),(l=new ab).valueGetterParam=o,l.valueParser=u,l.getValue=r.getValue,l.subCondList=a}return l}}function fb(t,e,n){e=e[t],V(e)||g(""),e.length||g(""),t=new("and"===t?ib:rb);return t.children=F(e,function(t){return db(t,n)}),t.children.length||g(""),t}function gb(t){return R(t)&&!st(t)}mb.prototype.evaluate=function(){return this._cond.evaluate()};var yb=mb;function mb(t,e){this._cond=db(t,e)}var vb={type:"echarts:filter",transform:function(t){for(var e,n,i=t.upstream,r=(t=t.config,n={valueGetterAttrMap:N({dimension:!0}),prepareGetValue:function(t){var e=t.dimension,t=(Vt(t,"dimension")||g(""),i.getDimensionInfo(e));return t||g(""),{dimIdx:t.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}},new yb(t,n)),o=[],a=0,s=i.count();a<s;a++)e=i.getRawDataItem(a),r.evaluate()&&o.push(e);return{data:o}}},_b={type:"echarts:sort",transform:function(t){var a=t.upstream,t=t.config,t=po(t),s=(t.length||g(""),[]),t=(O(t,function(t){var e=t.dimension,n=t.order,i=t.parser,t=t.incomparable,e=(null==e&&g(""),"asc"!==n&&"desc"!==n&&g(""),t&&"min"!==t&&"max"!==t&&g(""),"asc"!==n&&"desc"!==n&&g(""),a.getDimensionInfo(e)),r=(e||g(""),i?Sf(i):null);i&&!r&&g(""),s.push({dimIdx:e.index,parser:r,comparator:new Cf(n,t)})}),a.sourceFormat);t!==Rp&&t!==Ep&&g("");for(var e=[],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],r=a.retrieveValueFromItem(t,i.dimIdx),o=a.retrieveValueFromItem(e,i.dimIdx),i=(i.parser&&(r=i.parser(r),o=i.parser(o)),i.comparator.evaluate(r,o));if(0!==i)return i}return 0}),{data:e}}};Kv(function(t){t.registerTransform(vb),t.registerTransform(_b)}),t.Axis=Sc,t.ChartView=xg,t.ComponentModel=y,t.ComponentView=gg,t.List=zm,t.Model=Cc,t.PRIORITY=py,t.SeriesModel=sg,t.color=bi,t.connect=function(e){var t;return V(e)&&(t=e,e=null,O(t,function(t){null!=t.group&&(e=t.group)}),e=e||"g_"+X0++,O(t,function(t){t.group=e})),G0[e]=!0,e},t.dataTool={},t.dependencies={zrender:"5.4.4"},t.disConnect=cy,t.disconnect=Y0,t.dispose=function(t){H(t)?t=W0[t]:t instanceof I0||(t=Z0(t)),t instanceof I0&&!t.isDisposed()&&t.dispose()},t.env=b,t.extendChartView=function(t){return t=xg.extend(t),xg.registerClass(t),t},t.extendComponentModel=function(t){return t=y.extend(t),y.registerClass(t),t},t.extendComponentView=function(t){return t=gg.extend(t),gg.registerClass(t),t},t.extendSeriesModel=function(t){return t=sg.extend(t),sg.registerClass(t),t},t.format=wc,t.getCoordinateSystemDimensions=function(t){if(t=ld.get(t))return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},t.getInstanceByDom=Z0,t.getInstanceById=function(t){return W0[t]},t.getMap=function(t){var e=$y.getMap;return e&&e(t)},t.graphic=Wc,t.helper=dy,t.init=function(t,e,n){var i=!(n&&n.ssr);if(i){var r=Z0(t);if(r)return r}return(r=new I0(t,e,n)).id="ec_"+U0++,W0[r.id]=r,i&&Po(t,q0,r.id),w0(r),Ky.trigger("afterinit",r),r},t.innerDrawElementOnCanvas=Gy,t.matrix=He,t.number=Uo,t.parseGeoJSON=d_,t.parseGeoJson=d_,t.registerAction=em,t.registerCoordinateSystem=nm,t.registerLayout=im,t.registerLoading=sm,t.registerLocale=Nc,t.registerMap=lm,t.registerPostInit=Q0,t.registerPostUpdate=J0,t.registerPreprocessor=K0,t.registerProcessor=$0,t.registerTheme=j0,t.registerTransform=um,t.registerUpdateLifecycle=tm,t.registerVisual=rm,t.setCanvasCreator=function(t){A({createCanvas:t})},t.setPlatformAPI=A,t.throttle=Ag,t.time=Gh,t.use=Kv,t.util=mc,t.vector=se,t.version="5.4.3",t.zrUtil=Gt,t.zrender=qr});