12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- var $T=Object.defineProperty;var id=Object.getOwnPropertySymbols;var ZT=Object.prototype.hasOwnProperty,qT=Object.prototype.propertyIsEnumerable;var nd=(r,e,t)=>e in r?$T(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,ad=(r,e)=>{for(var t in e||(e={}))ZT.call(e,t)&&nd(r,t,e[t]);if(id)for(var t of id(e))qT.call(e,t)&&nd(r,t,e[t]);return r};import{k as KT,j as jT,m as is,al as JT,z as QT,am as tC,an as eC}from"./entry/index-CP6zkLsN-1726190694502.js";import{c as od,f as rC,w as sd,u as Tn,y as iC}from"./vue-CmlY4eyV.js";/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */var Eh=function(r,e){return Eh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},Eh(r,e)};function E(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Eh(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var nC=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),aC=function(){function r(){this.browser=new nC,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=typeof window!="undefined"}return r}(),$i=new aC;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?($i.wxa=!0,$i.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?$i.worker=!0:typeof navigator=="undefined"||navigator.userAgent.indexOf("Node.js")===0?($i.node=!0,$i.svgSupported=!0):oC(navigator.userAgent,$i);function oC(r,e){var t=e.browser,i=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(t.firefox=!0,t.version=i[1]),n&&(t.ie=!0,t.version=n[1]),a&&(t.edge=!0,t.version=a[1],t.newEdge=+a[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect!="undefined",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document!="undefined";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}const ht=$i;var rc=12,Y_="sans-serif",gi=rc+"px "+Y_,sC=20,lC=100,uC="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function fC(r){var e={};if(typeof JSON=="undefined")return e;for(var t=0;t<r.length;t++){var i=String.fromCharCode(t+32),n=(r.charCodeAt(t)-sC)/lC;e[i]=n}return e}var hC=fC(uC),yi={createCanvas:function(){return typeof document!="undefined"&&document.createElement("canvas")},measureText:function(){var r,e;return function(t,i){if(!r){var n=yi.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==i&&(e=r.font=i||gi),r.measureText(t);t=t||"",i=i||gi;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||rc,s=0;if(i.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=hC[t[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,e,t){var i=new Image;return i.onload=e,i.onerror=t,i.src=r,i}};function X_(r){for(var e in yi)r[e]&&(yi[e]=r[e])}var $_=Fe(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),Z_=Fe(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),ha=Object.prototype.toString,Ql=Array.prototype,vC=Ql.forEach,cC=Ql.filter,ic=Ql.slice,pC=Ql.map,ld=function(){}.constructor,ns=ld?ld.prototype:null,nc="__proto__",dC=2311;function ac(){return dC++}function oc(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e]}function X(r){if(r==null||typeof r!="object")return r;var e=r,t=ha.call(r);if(t==="[object Array]"){if(!qn(r)){e=[];for(var i=0,n=r.length;i<n;i++)e[i]=X(r[i])}}else if(Z_[t]){if(!qn(r)){var a=r.constructor;if(a.from)e=a.from(r);else{e=new a(r.length);for(var i=0,n=r.length;i<n;i++)e[i]=r[i]}}}else if(!$_[t]&&!qn(r)&&!dn(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==nc&&(e[o]=X(r[o]))}return e}function et(r,e,t){if(!Y(e)||!Y(r))return t?X(e):r;for(var i in e)if(e.hasOwnProperty(i)&&i!==nc){var n=r[i],a=e[i];Y(a)&&Y(n)&&!z(a)&&!z(n)&&!dn(a)&&!dn(n)&&!kh(a)&&!kh(n)&&!qn(a)&&!qn(n)?et(n,a,t):(t||!(i in r))&&(r[i]=X(e[i]))}return r}function q_(r,e){for(var t=r[0],i=1,n=r.length;i<n;i++)t=et(t,r[i],e);return t}function O(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==nc&&(r[t]=e[t]);return r}function q(r,e,t){for(var i=at(e),n=0;n<i.length;n++){var a=i[n];(t?e[a]!=null:r[a]==null)&&(r[a]=e[a])}return r}var gC=yi.createCanvas;function st(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,i=r.length;t<i;t++)if(r[t]===e)return t}return-1}function sc(r,e){var t=r.prototype;function i(){}i.prototype=e.prototype,r.prototype=new i;for(var n in t)t.hasOwnProperty(n)&&(r.prototype[n]=t[n]);r.prototype.constructor=r,r.superClass=e}function Xt(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&(t?e[a]!=null:r[a]==null)&&(r[a]=e[a])}else q(r,e,t)}function Qt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function b(r,e,t){if(r&&e)if(r.forEach&&r.forEach===vC)r.forEach(e,t);else if(r.length===+r.length)for(var i=0,n=r.length;i<n;i++)e.call(t,r[i],i,r);else for(var a in r)r.hasOwnProperty(a)&&e.call(t,r[a],a,r)}function V(r,e,t){if(!r)return[];if(!e)return eu(r);if(r.map&&r.map===pC)return r.map(e,t);for(var i=[],n=0,a=r.length;n<a;n++)i.push(e.call(t,r[n],n,r));return i}function Fe(r,e,t,i){if(r&&e){for(var n=0,a=r.length;n<a;n++)t=e.call(i,t,r[n],n,r);return t}}function bt(r,e,t){if(!r)return[];if(!e)return eu(r);if(r.filter&&r.filter===cC)return r.filter(e,t);for(var i=[],n=0,a=r.length;n<a;n++)e.call(t,r[n],n,r)&&i.push(r[n]);return i}function K_(r,e,t){if(r&&e){for(var i=0,n=r.length;i<n;i++)if(e.call(t,r[i],i,r))return r[i]}}function at(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function yC(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return function(){return r.apply(e,t.concat(ic.call(arguments)))}}var W=ns&&K(ns.bind)?ns.call.bind(ns.bind):yC;function vt(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(ic.call(arguments)))}}function z(r){return Array.isArray?Array.isArray(r):ha.call(r)==="[object Array]"}function K(r){return typeof r=="function"}function F(r){return typeof r=="string"}function dl(r){return ha.call(r)==="[object String]"}function mt(r){return typeof r=="number"}function Y(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function kh(r){return!!$_[ha.call(r)]}function le(r){return!!Z_[ha.call(r)]}function dn(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function tu(r){return r.colorStops!=null}function mC(r){return r.image!=null}function _C(r){return ha.call(r)==="[object RegExp]"}function _o(r){return r!==r}function zr(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,i=r.length;t<i;t++)if(r[t]!=null)return r[t]}function J(r,e){return r!=null?r:e}function Zn(r,e,t){return r!=null?r:e!=null?e:t}function eu(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return ic.apply(r,e)}function lc(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function ue(r,e){if(!r)throw new Error(e)}function Ve(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var j_="__ec_primitive__";function gl(r){r[j_]=!0}function qn(r){return r[j_]}var SC=function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return at(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var i in t)t.hasOwnProperty(i)&&e(t[i],i)},r}(),J_=typeof Map=="function";function xC(){return J_?new Map:new SC}var Q_=function(){function r(e){var t=z(e);this.data=xC();var i=this;e instanceof r?e.each(n):e&&b(e,n);function n(a,o){t?i.set(a,o):i.set(o,a)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(i,n){e.call(t,i,n)})},r.prototype.keys=function(){var e=this.data.keys();return J_?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r}();function U(r){return new Q_(r)}function t1(r,e){for(var t=new r.constructor(r.length+e.length),i=0;i<r.length;i++)t[i]=r[i];for(var n=r.length,i=0;i<e.length;i++)t[i+n]=e[i];return t}function Uo(r,e){var t;if(Object.create)t=Object.create(r);else{var i=function(){};i.prototype=r,t=new i}return e&&O(t,e),t}function wC(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function tt(r,e){return r.hasOwnProperty(e)}function zt(){}var no=180/Math.PI;const bC=Object.freeze(Object.defineProperty({__proto__:null,HashMap:Q_,RADIAN_TO_DEGREE:no,assert:ue,bind:W,clone:X,concatArray:t1,createCanvas:gC,createHashMap:U,createObject:Uo,curry:vt,defaults:q,disableUserSelect:wC,each:b,eqNaN:_o,extend:O,filter:bt,find:K_,guid:ac,hasOwn:tt,indexOf:st,inherits:sc,isArray:z,isArrayLike:Qt,isBuiltInObject:kh,isDom:dn,isFunction:K,isGradientObject:tu,isImagePatternObject:mC,isNumber:mt,isObject:Y,isPrimitive:qn,isRegExp:_C,isString:F,isStringSafe:dl,isTypedArray:le,keys:at,logError:oc,map:V,merge:et,mergeAll:q_,mixin:Xt,noop:zt,normalizeCssArray:lc,reduce:Fe,retrieve:zr,retrieve2:J,retrieve3:Zn,setAsPrimitive:gl,slice:eu,trim:Ve},Symbol.toStringTag,{value:"Module"}));function Sn(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function e1(r,e){return r[0]=e[0],r[1]=e[1],r}function r1(r){return[r[0],r[1]]}function TC(r,e,t){return r[0]=e,r[1]=t,r}function Oh(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function CC(r,e,t,i){return r[0]=e[0]+t[0]*i,r[1]=e[1]+t[1]*i,r}function i1(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function uc(r){return Math.sqrt(fc(r))}var AC=uc;function fc(r){return r[0]*r[0]+r[1]*r[1]}var MC=fc;function DC(r,e,t){return r[0]=e[0]*t[0],r[1]=e[1]*t[1],r}function IC(r,e,t){return r[0]=e[0]/t[0],r[1]=e[1]/t[1],r}function PC(r,e){return r[0]*e[0]+r[1]*e[1]}function js(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function n1(r,e){var t=uc(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function yl(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var ml=yl;function a1(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var sn=a1;function LC(r,e){return r[0]=-e[0],r[1]=-e[1],r}function Js(r,e,t,i){return r[0]=e[0]+i*(t[0]-e[0]),r[1]=e[1]+i*(t[1]-e[1]),r}function Vt(r,e,t){var i=e[0],n=e[1];return r[0]=t[0]*i+t[2]*n+t[4],r[1]=t[1]*i+t[3]*n+t[5],r}function Er(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function kr(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}const RC=Object.freeze(Object.defineProperty({__proto__:null,add:Oh,applyTransform:Vt,clone:r1,copy:e1,create:Sn,dist:ml,distSquare:sn,distance:yl,distanceSquare:a1,div:IC,dot:PC,len:uc,lenSquare:fc,length:AC,lengthSquare:MC,lerp:Js,max:kr,min:Er,mul:DC,negate:LC,normalize:n1,scale:js,scaleAndAdd:CC,set:TC,sub:i1},Symbol.toStringTag,{value:"Module"}));var Cn=function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r}(),EC=function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Cn(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var i=e.offsetX,n=e.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,t.drift(a,o,e),this.handler.dispatchToElement(new Cn(t,e),"drag",e.event);var s=this.handler.findHover(i,n,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Cn(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Cn(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Cn(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Cn(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r}(),ir=function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof t=="function"&&(n=i,i=t,t=null),!i||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===i)return this;var l={h:i,query:t,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var i=this._$handlers;if(!i)return this;if(!e)return this._$handlers={},this;if(t){if(i[e]){for(var n=[],a=0,o=i[e].length;a<o;a++)i[e][a].h!==t&&n.push(i[e][a]);i[e]=n}i[e]&&i[e].length===0&&delete i[e]}else delete i[e];return this},r.prototype.trigger=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=t.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=t.length,s=t[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,t[0]);break;case 2:f.h.call(s,t[0],t[1]);break;default:f.h.apply(s,t.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},r}(),kC=Math.log(2);function Bh(r,e,t,i,n,a){var o=i+"-"+n,s=r.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/kC);return r[t][l]}for(var u=i|1<<t,f=t+1;i&1<<f;)f++;for(var h=0,c=0,v=0;c<s;c++){var p=1<<c;p&n||(h+=(v%2?-1:1)*r[t][c]*Bh(r,e-1,f,u,n|p,a),v++)}return a[o]=h,h}function ud(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],i={},n=Bh(t,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Bh(t,7,o===0?1:0,1<<o,1<<s,i)/n*e[o];return function(l,u,f){var h=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/h,l[1]=(u*a[3]+f*a[4]+a[5])/h}}}var fd="___zrEVENTSAVED",Xu=[];function OC(r,e,t,i,n){return Nh(Xu,e,i,n,!0)&&Nh(r,t,Xu[0],Xu[1])}function Nh(r,e,t,i,n){if(e.getBoundingClientRect&&ht.domSupported&&!o1(e)){var a=e[fd]||(e[fd]={}),o=BC(e,a),s=NC(o,a,n);if(s)return s(r,t,i),!0}return!1}function BC(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",n[u]+":0",i[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function NC(r,e,t){for(var i=t?"invTrans":"trans",n=e[i],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,c=f.left,v=f.top;o.push(c,v),l=l&&a&&c===a[h]&&v===a[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[i]=t?ud(s,o):ud(o,s))}function o1(r){return r.nodeName.toUpperCase()==="CANVAS"}var zC=/([&<>"'])/g,VC={"&":"&","<":"<",">":">",'"':""","'":"'"};function ne(r){return r==null?"":(r+"").replace(zC,function(e,t){return VC[t]})}var FC=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,$u=[],GC=ht.browser.firefox&&+ht.browser.version.split(".")[0]<39;function zh(r,e,t,i){return t=t||{},i?hd(r,e,t):GC&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):hd(r,e,t),t}function hd(r,e,t){if(ht.domSupported&&r.getBoundingClientRect){var i=e.clientX,n=e.clientY;if(o1(r)){var a=r.getBoundingClientRect();t.zrX=i-a.left,t.zrY=n-a.top;return}else if(Nh($u,r,i,n)){t.zrX=$u[0],t.zrY=$u[1];return}}t.zrX=t.zrY=0}function hc(r){return r||window.event}function Pe(r,e,t){if(e=hc(e),e.zrX!=null)return e;var i=e.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&zh(r,o,e,t)}else{zh(r,e,e,t);var a=HC(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&FC.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function HC(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,i=r.deltaY;if(t==null||i==null)return e;var n=Math.abs(i!==0?i:t),a=i>0?-1:i<0?1:t>0?-1:1;return 3*n*a}function Vh(r,e,t,i){r.addEventListener(e,t,i)}function WC(r,e,t,i){r.removeEventListener(e,t,i)}var Vr=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function vd(r){return r.which===2||r.which===3}var UC=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,i){return this._doTrack(e,t,i),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,i){var n=e.touches;if(n){for(var a={points:[],touches:[],target:t,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=zh(i,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(e){for(var t in Zu)if(Zu.hasOwnProperty(t)){var i=Zu[t](this._track,e);if(i)return i}},r}();function cd(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function YC(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Zu={pinch:function(r,e){var t=r.length;if(t){var i=(r[t-1]||{}).points,n=(r[t-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=cd(i)/cd(n);!isFinite(a)&&(a=1),e.pinchScale=a;var o=YC(i);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function be(){return[1,0,0,1,0,0]}function Yo(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function ru(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Sr(r,e,t){var i=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],a=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=i,r[1]=n,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function Fr(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function wi(r,e,t,i){i===void 0&&(i=[0,0]);var n=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),h=Math.cos(t);return r[0]=n*h+s*f,r[1]=-n*f+s*h,r[2]=a*h+l*f,r[3]=-a*f+h*l,r[4]=h*(o-i[0])+f*(u-i[1])+i[0],r[5]=h*(u-i[1])-f*(o-i[0])+i[1],r}function vc(r,e,t){var i=t[0],n=t[1];return r[0]=e[0]*i,r[1]=e[1]*n,r[2]=e[2]*i,r[3]=e[3]*n,r[4]=e[4]*i,r[5]=e[5]*n,r}function va(r,e){var t=e[0],i=e[2],n=e[4],a=e[1],o=e[3],s=e[5],l=t*o-a*i;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-i*l,r[3]=t*l,r[4]=(i*s-o*n)*l,r[5]=(a*n-t*s)*l,r):null}function XC(r){var e=be();return ru(e,r),e}const $C=Object.freeze(Object.defineProperty({__proto__:null,clone:XC,copy:ru,create:be,identity:Yo,invert:va,mul:Sr,rotate:wi,scale:vc,translate:Fr},Symbol.toStringTag,{value:"Module"}));var rt=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,i=this.y-e.y;return Math.sqrt(t*t+i*i)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,i=this.y-e.y;return t*t+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,i=this.y;return this.x=e[0]*t+e[2]*i+e[4],this.y=e[1]*t+e[3]*i+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,i){e.x=t,e.y=i},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,i){e.x=t.x+i.x,e.y=t.y+i.y},r.sub=function(e,t,i){e.x=t.x-i.x,e.y=t.y-i.y},r.scale=function(e,t,i){e.x=t.x*i,e.y=t.y*i},r.scaleAndAdd=function(e,t,i,n){e.x=t.x+i.x*n,e.y=t.y+i.y*n},r.lerp=function(e,t,i,n){var a=1-n;e.x=a*t.x+n*i.x,e.y=a*t.y+n*i.y},r}(),as=Math.min,os=Math.max,Ci=new rt,Ai=new rt,Mi=new rt,Di=new rt,ba=new rt,Ta=new rt,ZC=function(){function r(e,t,i,n){i<0&&(e=e+i,i=-i),n<0&&(t=t+n,n=-n),this.x=e,this.y=t,this.width=i,this.height=n}return r.prototype.union=function(e){var t=as(e.x,this.x),i=as(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=os(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=os(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=t,this.y=i},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,i=e.width/t.width,n=e.height/t.height,a=be();return Fr(a,a,[-t.x,-t.y]),vc(a,a,[i,n]),Fr(a,a,[e.x,e.y]),a},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var i=this,n=i.x,a=i.x+i.width,o=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,f=e.y,h=e.y+e.height,c=!(a<l||u<n||s<f||h<o);if(t){var v=1/0,p=0,d=Math.abs(a-l),g=Math.abs(u-n),y=Math.abs(s-f),m=Math.abs(h-o),_=Math.min(d,g),S=Math.min(y,m);a<l||u<n?_>p&&(p=_,d<g?rt.set(Ta,-d,0):rt.set(Ta,g,0)):_<v&&(v=_,d<g?rt.set(ba,d,0):rt.set(ba,-g,0)),s<f||h<o?S>p&&(p=S,y<m?rt.set(Ta,0,-y):rt.set(Ta,0,m)):_<v&&(v=_,y<m?rt.set(ba,0,y):rt.set(ba,0,-m))}return t&&rt.copy(t,c?ba:Ta),c},r.prototype.contain=function(e,t){var i=this;return e>=i.x&&e<=i.x+i.width&&t>=i.y&&t<=i.y+i.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,i){if(!i){e!==t&&r.copy(e,t);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];e.x=t.x*n+o,e.y=t.y*a+s,e.width=t.width*n,e.height=t.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Ci.x=Mi.x=t.x,Ci.y=Di.y=t.y,Ai.x=Di.x=t.x+t.width,Ai.y=Mi.y=t.y+t.height,Ci.transform(i),Di.transform(i),Ai.transform(i),Mi.transform(i),e.x=as(Ci.x,Ai.x,Mi.x,Di.x),e.y=as(Ci.y,Ai.y,Mi.y,Di.y);var l=os(Ci.x,Ai.x,Mi.x,Di.x),u=os(Ci.y,Ai.y,Mi.y,Di.y);e.width=l-e.x,e.height=u-e.y},r}();const lt=ZC;var s1="silent";function qC(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:KC}}function KC(){Vr(this.event)}var jC=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(ir),Ca=function(){function r(e,t){this.x=e,this.y=t}return r}(),JC=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],qu=new lt(0,0,0,0),l1=function(r){E(e,r);function e(t,i,n,a,o){var s=r.call(this)||this;return s._hovered=new Ca(0,0),s.storage=t,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new jC,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new EC(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(b(JC,function(i){t.on&&t.on(i,this[i],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var i=t.zrX,n=t.zrY,a=u1(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Ca(i,n):this.findHover(i,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var i=t.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Ca(0,0)},e.prototype.dispatch=function(t,i){var n=this[t];n&&n.call(this,i)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var i=this.proxy;i.setCursor&&i.setCursor(t)},e.prototype.dispatchToElement=function(t,i,n){t=t||{};var a=t.target;if(!(a&&a.silent)){for(var o="on"+i,s=qC(i,t,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},e.prototype.findHover=function(t,i,n){var a=this.storage.getDisplayList(),o=new Ca(t,i);if(pd(a,o,t,i,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new lt(t-u,i-u,l,l),h=a.length-1;h>=0;h--){var c=a[h];c!==n&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(qu.copy(c.getBoundingRect()),c.transform&&qu.applyTransform(c.transform),qu.intersect(f)&&s.push(c))}if(s.length)for(var v=4,p=Math.PI/12,d=Math.PI*2,g=0;g<u;g+=v)for(var y=0;y<d;y+=p){var m=t+g*Math.cos(y),_=i+g*Math.sin(y);if(pd(s,o,m,_,n),o.target)return o}}return o},e.prototype.processGesture=function(t,i){this._gestureMgr||(this._gestureMgr=new UC);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;t.gestureEvent=o;var s=new Ca;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e}(ir);b(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){l1.prototype[r]=function(e){var t=e.zrX,i=e.zrY,n=u1(this,t,i),a,o;if((r!=="mouseup"||!n)&&(a=this.findHover(t,i),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||ml(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,e)}});function QC(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var i=r,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(e,t))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s||i.parent}return n?s1:!0}return!1}function pd(r,e,t,i,n){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==n&&!o.ignore&&(s=QC(o,t,i))&&(!e.topTarget&&(e.topTarget=o),s!==s1)){e.target=o;break}}}function u1(r,e,t){var i=r.painter;return e<0||e>i.getWidth()||t<0||t>i.getHeight()}var f1=32,Aa=7;function tA(r){for(var e=0;r>=f1;)e|=r&1,r>>=1;return r+e}function dd(r,e,t,i){var n=e+1;if(n===t)return 1;if(i(r[n++],r[e])<0){for(;n<t&&i(r[n],r[n-1])<0;)n++;eA(r,e,n)}else for(;n<t&&i(r[n],r[n-1])>=0;)n++;return n-e}function eA(r,e,t){for(t--;e<t;){var i=r[e];r[e++]=r[t],r[t--]=i}}function gd(r,e,t,i,n){for(i===e&&i++;i<t;i++){for(var a=r[i],o=e,s=i,l;o<s;)l=o+s>>>1,n(a,r[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function Ku(r,e,t,i,n,a){var o=0,s=0,l=1;if(a(r,e[t+n])>0){for(s=i-n;l<s&&a(r,e[t+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&a(r,e[t+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);a(r,e[t+f])>0?o=f+1:l=f}return l}function ju(r,e,t,i,n,a){var o=0,s=0,l=1;if(a(r,e[t+n])<0){for(s=n+1;l<s&&a(r,e[t+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=i-n;l<s&&a(r,e[t+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);a(r,e[t+f])<0?l=f:o=f+1}return l}function rA(r,e){var t=Aa,i,n,a=0,o=[];i=[],n=[];function s(v,p){i[a]=v,n[a]=p,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&n[v-1]<=n[v]+n[v+1]||v>=2&&n[v-2]<=n[v]+n[v-1])n[v-1]<n[v+1]&&v--;else if(n[v]>n[v+1])break;f(v)}}function u(){for(;a>1;){var v=a-2;v>0&&n[v-1]<n[v+1]&&v--,f(v)}}function f(v){var p=i[v],d=n[v],g=i[v+1],y=n[v+1];n[v]=d+y,v===a-3&&(i[v+1]=i[v+2],n[v+1]=n[v+2]),a--;var m=ju(r[g],r,p,d,0,e);p+=m,d-=m,d!==0&&(y=Ku(r[p+d-1],r,g,y,y-1,e),y!==0&&(d<=y?h(p,d,g,y):c(p,d,g,y)))}function h(v,p,d,g){var y=0;for(y=0;y<p;y++)o[y]=r[v+y];var m=0,_=d,S=v;if(r[S++]=r[_++],--g===0){for(y=0;y<p;y++)r[S+y]=o[m+y];return}if(p===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var w=t,x,T,C;;){x=0,T=0,C=!1;do if(e(r[_],o[m])<0){if(r[S++]=r[_++],T++,x=0,--g===0){C=!0;break}}else if(r[S++]=o[m++],x++,T=0,--p===1){C=!0;break}while((x|T)<w);if(C)break;do{if(x=ju(r[_],o,m,p,0,e),x!==0){for(y=0;y<x;y++)r[S+y]=o[m+y];if(S+=x,m+=x,p-=x,p<=1){C=!0;break}}if(r[S++]=r[_++],--g===0){C=!0;break}if(T=Ku(o[m],r,_,g,0,e),T!==0){for(y=0;y<T;y++)r[S+y]=r[_+y];if(S+=T,_+=T,g-=T,g===0){C=!0;break}}if(r[S++]=o[m++],--p===1){C=!0;break}w--}while(x>=Aa||T>=Aa);if(C)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),p===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(p===0)throw new Error;for(y=0;y<p;y++)r[S+y]=o[m+y]}}function c(v,p,d,g){var y=0;for(y=0;y<g;y++)o[y]=r[d+y];var m=v+p-1,_=g-1,S=d+g-1,w=0,x=0;if(r[S--]=r[m--],--p===0){for(w=S-(g-1),y=0;y<g;y++)r[w+y]=o[y];return}if(g===1){for(S-=p,m-=p,x=S+1,w=m+1,y=p-1;y>=0;y--)r[x+y]=r[w+y];r[S]=o[_];return}for(var T=t;;){var C=0,A=0,M=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],C++,A=0,--p===0){M=!0;break}}else if(r[S--]=o[_--],A++,C=0,--g===1){M=!0;break}while((C|A)<T);if(M)break;do{if(C=p-ju(o[_],r,v,p,p-1,e),C!==0){for(S-=C,m-=C,p-=C,x=S+1,w=m+1,y=C-1;y>=0;y--)r[x+y]=r[w+y];if(p===0){M=!0;break}}if(r[S--]=o[_--],--g===1){M=!0;break}if(A=g-Ku(r[m],o,0,g,g-1,e),A!==0){for(S-=A,_-=A,g-=A,x=S+1,w=_+1,y=0;y<A;y++)r[x+y]=o[w+y];if(g<=1){M=!0;break}}if(r[S--]=r[m--],--p===0){M=!0;break}T--}while(C>=Aa||A>=Aa);if(M)break;T<0&&(T=0),T+=2}if(t=T,t<1&&(t=1),g===1){for(S-=p,m-=p,x=S+1,w=m+1,y=p-1;y>=0;y--)r[x+y]=r[w+y];r[S]=o[_]}else{if(g===0)throw new Error;for(w=S-(g-1),y=0;y<g;y++)r[w+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Qs(r,e,t,i){t||(t=0),i||(i=r.length);var n=i-t;if(!(n<2)){var a=0;if(n<f1){a=dd(r,t,i,e),gd(r,t,i,t+a,e);return}var o=rA(r,e),s=tA(n);do{if(a=dd(r,t,i,e),a<s){var l=n;l>s&&(l=s),gd(r,t,t+l,t+a,e),a=l}o.pushRun(t,a),o.mergeRuns(),n-=a,t+=a}while(n!==0);o.forceMergeRuns()}}var pr=1,qa=2,Hn=4,yd=!1;function Ju(){yd||(yd=!0)}function md(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var iA=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=md}return r.prototype.traverse=function(e,t){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var i=this._displayList;return(e||!i.length)&&this.updateDisplayList(t),i},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,i=this._displayList,n=0,a=t.length;n<a;n++)this._updateAndAddDisplayable(t[n],null,e);i.length=this._displayListLen,Qs(i,md)},r.prototype._updateAndAddDisplayable=function(e,t,i){if(!(e.ignore&&!i)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath();if(e.ignoreClip)t=null;else if(n){t?t=t.slice():t=[];for(var a=n,o=e;a;)a.parent=o,a.updateTransform(),t.push(a),o=a,a=a.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=pr),this._updateAndAddDisplayable(u,t,i)}e.__dirty=0}else{var f=e;t&&t.length?f.__clipPaths=t:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(Ju(),f.z=0),isNaN(f.z2)&&(Ju(),f.z2=0),isNaN(f.zlevel)&&(Ju(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,i);var c=e.getTextGuideLine();c&&this._updateAndAddDisplayable(c,t,i);var v=e.getTextContent();v&&this._updateAndAddDisplayable(v,t,i)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,i=e.length;t<i;t++)this.delRoot(e[t]);return}var n=st(this._roots,e);n>=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),Fh;Fh=ht.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var ao={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)))},elasticOut:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-ao.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?ao.bounceIn(r*2)*.5:ao.bounceOut(r*2-1)*.5+.5}},ss=Math.pow,vi=Math.sqrt,_l=1e-8,h1=1e-4,_d=vi(3),ls=1/3,dr=Sn(),ke=Sn(),Kn=Sn();function ai(r){return r>-_l&&r<_l}function v1(r){return r>_l||r<-_l}function Wt(r,e,t,i,n){var a=1-n;return a*a*(a*r+3*n*e)+n*n*(n*i+3*a*t)}function Sd(r,e,t,i,n){var a=1-n;return 3*(((e-r)*a+2*(t-e)*n)*a+(i-t)*n*n)}function Sl(r,e,t,i,n,a){var o=i+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,f=s*s-3*o*l,h=s*l-9*o*u,c=l*l-3*s*u,v=0;if(ai(f)&&ai(h))if(ai(s))a[0]=0;else{var p=-l/s;p>=0&&p<=1&&(a[v++]=p)}else{var d=h*h-4*f*c;if(ai(d)){var g=h/f,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(a[v++]=p),y>=0&&y<=1&&(a[v++]=y)}else if(d>0){var m=vi(d),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-ss(-_,ls):_=ss(_,ls),S<0?S=-ss(-S,ls):S=ss(S,ls);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(a[v++]=p)}else{var w=(2*f*s-3*o*h)/(2*vi(f*f*f)),x=Math.acos(w)/3,T=vi(f),C=Math.cos(x),p=(-s-2*T*C)/(3*o),y=(-s+T*(C+_d*Math.sin(x)))/(3*o),A=(-s+T*(C-_d*Math.sin(x)))/(3*o);p>=0&&p<=1&&(a[v++]=p),y>=0&&y<=1&&(a[v++]=y),A>=0&&A<=1&&(a[v++]=A)}}return v}function c1(r,e,t,i,n){var a=6*t-12*e+6*r,o=9*e+3*i-3*r-9*t,s=3*e-3*r,l=0;if(ai(o)){if(v1(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var f=a*a-4*o*s;if(ai(f))n[0]=-a/(2*o);else if(f>0){var h=vi(f),u=(-a+h)/(2*o),c=(-a-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function xl(r,e,t,i,n,a){var o=(e-r)*n+r,s=(t-e)*n+e,l=(i-t)*n+t,u=(s-o)*n+o,f=(l-s)*n+s,h=(f-u)*n+u;a[0]=r,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=f,a[6]=l,a[7]=i}function nA(r,e,t,i,n,a,o,s,l,u,f){var h,c=.005,v=1/0,p,d,g,y;dr[0]=l,dr[1]=u;for(var m=0;m<1;m+=.05)ke[0]=Wt(r,t,n,o,m),ke[1]=Wt(e,i,a,s,m),g=sn(dr,ke),g<v&&(h=m,v=g);v=1/0;for(var _=0;_<32&&!(c<h1);_++)p=h-c,d=h+c,ke[0]=Wt(r,t,n,o,p),ke[1]=Wt(e,i,a,s,p),g=sn(ke,dr),p>=0&&g<v?(h=p,v=g):(Kn[0]=Wt(r,t,n,o,d),Kn[1]=Wt(e,i,a,s,d),y=sn(Kn,dr),d<=1&&y<v?(h=d,v=y):c*=.5);return vi(v)}function aA(r,e,t,i,n,a,o,s,l){for(var u=r,f=e,h=0,c=1/l,v=1;v<=l;v++){var p=v*c,d=Wt(r,t,n,o,p),g=Wt(e,i,a,s,p),y=d-u,m=g-f;h+=Math.sqrt(y*y+m*m),u=d,f=g}return h}function ge(r,e,t,i){var n=1-i;return n*(n*r+2*i*e)+i*i*t}function xd(r,e,t,i){return 2*((1-i)*(e-r)+i*(t-e))}function oA(r,e,t,i,n){var a=r-2*e+t,o=2*(e-r),s=r-i,l=0;if(ai(a)){if(v1(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*a*s;if(ai(f)){var u=-o/(2*a);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var h=vi(f),u=(-o+h)/(2*a),c=(-o-h)/(2*a);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function p1(r,e,t){var i=r+t-2*e;return i===0?.5:(r-e)/i}function wl(r,e,t,i,n){var a=(e-r)*i+r,o=(t-e)*i+e,s=(o-a)*i+a;n[0]=r,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function sA(r,e,t,i,n,a,o,s,l){var u,f=.005,h=1/0;dr[0]=o,dr[1]=s;for(var c=0;c<1;c+=.05){ke[0]=ge(r,t,n,c),ke[1]=ge(e,i,a,c);var v=sn(dr,ke);v<h&&(u=c,h=v)}h=1/0;for(var p=0;p<32&&!(f<h1);p++){var d=u-f,g=u+f;ke[0]=ge(r,t,n,d),ke[1]=ge(e,i,a,d);var v=sn(ke,dr);if(d>=0&&v<h)u=d,h=v;else{Kn[0]=ge(r,t,n,g),Kn[1]=ge(e,i,a,g);var y=sn(Kn,dr);g<=1&&y<h?(u=g,h=y):f*=.5}}return vi(h)}function lA(r,e,t,i,n,a,o){for(var s=r,l=e,u=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=ge(r,t,n,c),p=ge(e,i,a,c),d=v-s,g=p-l;u+=Math.sqrt(d*d+g*g),s=v,l=p}return u}var uA=/cubic-bezier\(([0-9,\.e ]+)\)/;function cc(r){var e=r&&uA.exec(r);if(e){var t=e[1].split(","),i=+Ve(t[0]),n=+Ve(t[1]),a=+Ve(t[2]),o=+Ve(t[3]);if(isNaN(i+n+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Sl(0,i,a,1,l,s)&&Wt(0,n,o,1,s[0])}}}var fA=function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||zt,this.ondestroy=e.ondestroy||zt,this.onrestart=e.onrestart||zt,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var i=this._life,n=e-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=n%i;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=K(e)?e:ao[e]||cc(e)},r}(),d1=function(){function r(e){this.value=e}return r}(),hA=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new d1(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,i=e.next;t?t.next=i:this.head=i,i?i.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),Xo=function(){function r(e){this._list=new hA,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var i=this._list,n=this._map,a=null;if(n[e]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new d1(t),s.key=e,i.insertEntry(s),n[e]=s}return a},r.prototype.get=function(e){var t=this._map[e],i=this._list;if(t!=null)return t!==i.tail&&(i.remove(t),i.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),wd={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 Qe(r){return r=Math.round(r),r<0?0:r>255?255:r}function vA(r){return r=Math.round(r),r<0?0:r>360?360:r}function So(r){return r<0?0:r>1?1:r}function Qu(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Qe(parseFloat(e)/100*255):Qe(parseInt(e,10))}function ln(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?So(parseFloat(e)/100):So(parseFloat(e))}function tf(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function oi(r,e,t){return r+(e-r)*t}function Ie(r,e,t,i,n){return r[0]=e,r[1]=t,r[2]=i,r[3]=n,r}function Gh(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var g1=new Xo(20),us=null;function An(r,e){us&&Gh(us,e),us=g1.put(r,us||e.slice())}function oe(r,e){if(r){e=e||[];var t=g1.get(r);if(t)return Gh(e,t);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in wd)return Gh(e,wd[i]),An(r,e),e;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){Ie(e,0,0,0,1);return}return Ie(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),An(r,e),e}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){Ie(e,0,0,0,1);return}return Ie(e,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),An(r,e),e}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Ie(e,+u[0],+u[1],+u[2],1):Ie(e,0,0,0,1);f=ln(u.pop());case"rgb":if(u.length>=3)return Ie(e,Qu(u[0]),Qu(u[1]),Qu(u[2]),u.length===3?f:ln(u[3])),An(r,e),e;Ie(e,0,0,0,1);return;case"hsla":if(u.length!==4){Ie(e,0,0,0,1);return}return u[3]=ln(u[3]),Hh(u,e),An(r,e),e;case"hsl":if(u.length!==3){Ie(e,0,0,0,1);return}return Hh(u,e),An(r,e),e;default:return}}Ie(e,0,0,0,1)}}function Hh(r,e){var t=(parseFloat(r[0])%360+360)%360/360,i=ln(r[1]),n=ln(r[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return e=e||[],Ie(e,Qe(tf(o,a,t+1/3)*255),Qe(tf(o,a,t)*255),Qe(tf(o,a,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function cA(r){if(r){var e=r[0]/255,t=r[1]/255,i=r[2]/255,n=Math.min(e,t,i),a=Math.max(e,t,i),o=a-n,s=(a+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+n):u=o/(2-a-n);var f=((a-e)/6+o/2)/o,h=((a-t)/6+o/2)/o,c=((a-i)/6+o/2)/o;e===a?l=c-h:t===a?l=1/3+f-c:i===a&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return r[3]!=null&&v.push(r[3]),v}}function Wh(r,e){var t=oe(r);if(t){for(var i=0;i<3;i++)e<0?t[i]=t[i]*(1-e)|0:t[i]=(255-t[i])*e+t[i]|0,t[i]>255?t[i]=255:t[i]<0&&(t[i]=0);return tr(t,t.length===4?"rgba":"rgb")}}function pA(r){var e=oe(r);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function oo(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var i=r*(e.length-1),n=Math.floor(i),a=Math.ceil(i),o=e[n],s=e[a],l=i-n;return t[0]=Qe(oi(o[0],s[0],l)),t[1]=Qe(oi(o[1],s[1],l)),t[2]=Qe(oi(o[2],s[2],l)),t[3]=So(oi(o[3],s[3],l)),t}}var dA=oo;function pc(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var i=r*(e.length-1),n=Math.floor(i),a=Math.ceil(i),o=oe(e[n]),s=oe(e[a]),l=i-n,u=tr([Qe(oi(o[0],s[0],l)),Qe(oi(o[1],s[1],l)),Qe(oi(o[2],s[2],l)),So(oi(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:a,value:i}:u}}var gA=pc;function tl(r,e,t,i){var n=oe(r);if(r)return n=cA(n),e!=null&&(n[0]=vA(e)),t!=null&&(n[1]=ln(t)),i!=null&&(n[2]=ln(i)),tr(Hh(n),"rgba")}function y1(r,e){var t=oe(r);if(t&&e!=null)return t[3]=So(e),tr(t,"rgba")}function tr(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function xo(r,e){var t=oe(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function yA(){return tr([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var bd=new Xo(100);function bl(r){if(F(r)){var e=bd.get(r);return e||(e=Wh(r,-.1),bd.put(r,e)),e}else if(tu(r)){var t=O({},r);return t.colorStops=V(r.colorStops,function(i){return{offset:i.offset,color:Wh(i.color,-.1)}}),t}return r}const mA=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:oo,fastMapToColor:dA,lerp:pc,lift:Wh,liftColor:bl,lum:xo,mapToColor:gA,modifyAlpha:y1,modifyHSL:tl,parse:oe,random:yA,stringify:tr,toHex:pA},Symbol.toStringTag,{value:"Module"}));var Tl=Math.round;function wo(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=oe(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e==null?1:e}}var Td=1e-4;function si(r){return r<Td&&r>-Td}function fs(r){return Tl(r*1e3)/1e3}function Uh(r){return Tl(r*1e4)/1e4}function _A(r){return"matrix("+fs(r[0])+","+fs(r[1])+","+fs(r[2])+","+fs(r[3])+","+Uh(r[4])+","+Uh(r[5])+")"}var SA={left:"start",right:"end",center:"middle",middle:"middle"};function xA(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function wA(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function bA(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function m1(r){return r&&!!r.image}function TA(r){return r&&!!r.svgElement}function dc(r){return m1(r)||TA(r)}function _1(r){return r.type==="linear"}function S1(r){return r.type==="radial"}function x1(r){return r&&(r.type==="linear"||r.type==="radial")}function iu(r){return"url(#"+r+")"}function w1(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function b1(r){var e=r.x||0,t=r.y||0,i=(r.rotation||0)*no,n=J(r.scaleX,1),a=J(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),i&&l.push("rotate("+i+")"),(n!==1||a!==1)&&l.push("scale("+n+","+a+")"),(o||s)&&l.push("skew("+Tl(o*no)+"deg, "+Tl(s*no)+"deg)"),l.join(" ")}var CA=function(){return ht.hasGlobalWindow&&K(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer!="undefined"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),Yh=Array.prototype.slice;function Lr(r,e,t){return(e-r)*t+r}function ef(r,e,t,i){for(var n=e.length,a=0;a<n;a++)r[a]=Lr(e[a],t[a],i);return r}function AA(r,e,t,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=Lr(e[o][s],t[o][s],i)}return r}function hs(r,e,t,i){for(var n=e.length,a=0;a<n;a++)r[a]=e[a]+t[a]*i;return r}function Cd(r,e,t,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=e[o][s]+t[o][s]*i}return r}function MA(r,e){for(var t=r.length,i=e.length,n=t>i?e:r,a=Math.min(t,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(t,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function DA(r,e,t){var i=r,n=e;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var l=a;l<o;l++)i.push(t===1?n[l]:Yh.call(n[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(t===1)isNaN(i[l])&&(i[l]=n[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=n[l][f])}}function so(r){if(Qt(r)){var e=r.length;if(Qt(r[0])){for(var t=[],i=0;i<e;i++)t.push(Yh.call(r[i]));return t}return Yh.call(r)}return r}function el(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function IA(r){return Qt(r&&r[0])?2:1}var vs=0,rl=1,T1=2,Ka=3,Xh=4,$h=5,Ad=6;function Md(r){return r===Xh||r===$h}function cs(r){return r===rl||r===T1}var Ma=[0,0,0,0],PA=function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=Ad,l=t;if(Qt(t)){var u=IA(t);s=u,(u===1&&!mt(t[0])||u===2&&!mt(t[0][0]))&&(o=!0)}else if(mt(t)&&!_o(t))s=vs;else if(F(t))if(!isNaN(+t))s=vs;else{var f=oe(t);f&&(l=f,s=Ka)}else if(tu(t)){var h=O({},l);h.colorStops=V(t.colorStops,function(v){return{offset:v.offset,color:oe(v.color)}}),_1(t)?s=Xh:S1(t)&&(s=$h),l=h}a===0?this.valType=s:(s!==this.valType||s===Ad)&&(o=!0),this.discrete=this.discrete||o;var c={time:e,value:l,rawValue:t,percent:0};return i&&(c.easing=i,c.easingFunc=K(i)?i:ao[i]||cc(i)),n.push(c),c},r.prototype.prepare=function(e,t){var i=this.keyframes;this._needsSort&&i.sort(function(d,g){return d.time-g.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=cs(n),u=Md(n),f=0;f<a;f++){var h=i[f],c=h.value,v=o.value;h.percent=h.time/e,s||(l&&f!==a-1?DA(c,v,n):u&&MA(c.colorStops,v.colorStops))}if(!s&&n!==$h&&t&&this.needsAnimate()&&t.needsAnimate()&&n===t.valType&&!t._finished){this._additiveTrack=t;for(var p=i[0].value,f=0;f<a;f++)n===vs?i[f].additiveValue=i[f].value-p:n===Ka?i[f].additiveValue=hs([],i[f].value,p,-1):cs(n)&&(i[f].additiveValue=n===rl?hs([],i[f].value,p,-1):Cd([],i[f].value,p,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===Ka,f,h=this._lastFr,c=Math.min,v,p;if(s===1)v=p=o[0];else{if(t<0)f=0;else if(t<this._lastFrP){var d=c(h+1,s-1);for(f=d;f>=0&&!(o[f].percent<=t);f--);f=c(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>t);f++);f=c(f-1,s-2)}p=o[f+1],v=o[f]}if(v&&p){this._lastFr=f,this._lastFrP=t;var g=p.percent-v.percent,y=g===0?1:c((t-v.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var m=i?this._additiveValue:u?Ma:e[l];if((cs(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?v.rawValue:p.rawValue;else if(cs(a))a===rl?ef(m,v[n],p[n],y):AA(m,v[n],p[n],y);else if(Md(a)){var _=v[n],S=p[n],w=a===Xh;e[l]={type:w?"linear":"radial",x:Lr(_.x,S.x,y),y:Lr(_.y,S.y,y),colorStops:V(_.colorStops,function(T,C){var A=S.colorStops[C];return{offset:Lr(T.offset,A.offset,y),color:el(ef([],T.color,A.color,y))}}),global:S.global},w?(e[l].x2=Lr(_.x2,S.x2,y),e[l].y2=Lr(_.y2,S.y2,y)):e[l].r=Lr(_.r,S.r,y)}else if(u)ef(m,v[n],p[n],y),i||(e[l]=el(m));else{var x=Lr(v[n],p[n],y);i?this._additiveValue=x:e[l]=x}i&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,i=this.propName,n=this._additiveValue;t===vs?e[i]=e[i]+n:t===Ka?(oe(e[i],Ma),hs(Ma,Ma,n,1),e[i]=el(Ma)):t===rl?hs(e[i],e[i],n,1):t===T1&&Cd(e[i],e[i],n,1)},r}(),gc=function(){function r(e,t,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){oc("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,i){return this.whenWithKeys(e,t,at(t),i)},r.prototype.whenWithKeys=function(e,t,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],l=a[s];if(!l){l=a[s]=new PA(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,c=h[h.length-1];u=c&&c.value,f.valType===Ka&&u&&(u=el(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,so(u),n),this._trackKeys.push(s)}l.addKeyframe(e,so(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,i=0;i<t;i++)e[i].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var i=0;i<t.length;i++)t[i].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,i=0;i<t.length;i++)e[t[i]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(e);a&&(t=a)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(t._target[s.propName]=h.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var c=new fA({life:n,loop:this._loop,delay:this._delay||0,onframe:function(v){t._started=2;var p=t._additiveAnimators;if(p){for(var d=!1,g=0;g<p.length;g++)if(p[g]._clip){d=!0;break}d||(t._additiveAnimators=null)}for(var g=0;g<i.length;g++)i[g].step(t._target,v);var y=t._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](t._target,v)},ondestroy:function(){t._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),e&&c.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return V(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<e.length;a++){var o=i[e[a]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,i){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var a=t[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(e[a]=so(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||at(e);for(var i=0;i<t.length;i++){var n=t[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();function Xn(){return new Date().getTime()}var LA=function(r){E(e,r);function e(t){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,t=t||{},i.stage=t.stage||{},i}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var i=t.getClip();i&&this.addClip(i)},e.prototype.removeClip=function(t){if(t.animation){var i=t.prev,n=t.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var i=t.getClip();i&&this.removeClip(i),t.animation=null},e.prototype.update=function(t){for(var i=Xn()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function i(){t._running&&(Fh(i),!t._paused&&t.update())}Fh(i)},e.prototype.start=function(){this._running||(this._time=Xn(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Xn(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Xn()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var i=t.next;t.prev=t.next=t.animation=null,t=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,i){i=i||{},this.start();var n=new gc(t,i.loop);return this.addAnimator(n),n},e}(ir),RA=300,rf=ht.domSupported,nf=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=V(r,function(n){var a=n.replace("mouse","pointer");return t.hasOwnProperty(a)?a:n});return{mouse:r,touch:e,pointer:i}}(),Dd={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Id=!1;function Zh(r){var e=r.pointerType;return e==="pen"||e==="touch"}function EA(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function af(r){r&&(r.zrByTouch=!0)}function kA(r,e){return Pe(r.dom,new OA(r,e),!0)}function C1(r,e){for(var t=e,i=!1;t&&t.nodeType!==9&&!(i=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return i}var OA=function(){function r(e,t){this.stopPropagation=zt,this.stopImmediatePropagation=zt,this.preventDefault=zt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),Ke={mousedown:function(r){r=Pe(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Pe(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Pe(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Pe(this.dom,r);var e=r.toElement||r.relatedTarget;C1(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Id=!0,r=Pe(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Id||(r=Pe(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Pe(this.dom,r),af(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Ke.mousemove.call(this,r),Ke.mousedown.call(this,r)},touchmove:function(r){r=Pe(this.dom,r),af(r),this.handler.processGesture(r,"change"),Ke.mousemove.call(this,r)},touchend:function(r){r=Pe(this.dom,r),af(r),this.handler.processGesture(r,"end"),Ke.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<RA&&Ke.click.call(this,r)},pointerdown:function(r){Ke.mousedown.call(this,r)},pointermove:function(r){Zh(r)||Ke.mousemove.call(this,r)},pointerup:function(r){Ke.mouseup.call(this,r)},pointerout:function(r){Zh(r)||Ke.mouseout.call(this,r)}};b(["click","dblclick","contextmenu"],function(r){Ke[r]=function(e){e=Pe(this.dom,e),this.trigger(r,e)}});var qh={pointermove:function(r){Zh(r)||qh.mousemove.call(this,r)},pointerup:function(r){qh.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function BA(r,e){var t=e.domHandlers;ht.pointerEventsSupported?b(nf.pointer,function(i){il(e,i,function(n){t[i].call(r,n)})}):(ht.touchEventsSupported&&b(nf.touch,function(i){il(e,i,function(n){t[i].call(r,n),EA(e)})}),b(nf.mouse,function(i){il(e,i,function(n){n=hc(n),e.touching||t[i].call(r,n)})}))}function NA(r,e){ht.pointerEventsSupported?b(Dd.pointer,t):ht.touchEventsSupported||b(Dd.mouse,t);function t(i){function n(a){a=hc(a),C1(r,a.target)||(a=kA(r,a),e.domHandlers[i].call(r,a))}il(e,i,n,{capture:!0})}}function il(r,e,t,i){r.mounted[e]=t,r.listenerOpts[e]=i,Vh(r.domTarget,e,t,i)}function of(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&WC(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var Pd=function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r}(),zA=function(r){E(e,r);function e(t,i){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=i,n._localHandlerScope=new Pd(t,Ke),rf&&(n._globalHandlerScope=new Pd(document,qh)),BA(n,n._localHandlerScope),n}return e.prototype.dispose=function(){of(this._localHandlerScope),rf&&of(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,rf&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var i=this._globalHandlerScope;t?NA(this,i):of(i)}},e}(ir),A1=1;ht.hasGlobalWindow&&(A1=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ld=A1,Kh=.4,jh="#333",Jh="#ccc",VA="#eee",Rd=Yo,Ed=5e-5;function Ii(r){return r>Ed||r<-Ed}var Pi=[],Mn=[],sf=be(),lf=Math.abs,FA=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return Ii(this.rotation)||Ii(this.x)||Ii(this.y)||Ii(this.scaleX-1)||Ii(this.scaleY-1)||Ii(this.skewX)||Ii(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),i=this.transform;if(!(t||e)){i&&(Rd(i),this.invTransform=null);return}i=i||be(),t?this.getLocalTransform(i):Rd(i),e&&(t?Sr(i,e,i):ru(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Pi);var i=Pi[0]<0?-1:1,n=Pi[1]<0?-1:1,a=((Pi[0]-i)*t+i)/Pi[0]||0,o=((Pi[1]-n)*t+n)/Pi[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||be(),va(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),a=Math.PI/2+n-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(a),t=Math.sqrt(t),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||be(),Sr(Mn,e.invTransform,t),t=Mn);var i=this.originX,n=this.originY;(i||n)&&(sf[4]=i,sf[5]=n,Sr(Mn,t,sf),Mn[4]-=i,Mn[5]-=n,t=Mn),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var i=[e,t],n=this.invTransform;return n&&Vt(i,i,n),i},r.prototype.transformCoordToGlobal=function(e,t){var i=[e,t],n=this.transform;return n&&Vt(i,i,n),i},r.prototype.getLineScale=function(){var e=this.transform;return e&&lf(e[0]-1)>1e-10&&lf(e[3]-1)>1e-10?Math.sqrt(lf(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){M1(this,e)},r.getLocalTransform=function(e,t){t=t||[];var i=e.originX||0,n=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,h=e.y,c=e.skewX?Math.tan(e.skewX):0,v=e.skewY?Math.tan(-e.skewY):0;if(i||n||s||l){var p=i+s,d=n+l;t[4]=-p*a-c*d*o,t[5]=-d*o-v*p*a}else t[4]=t[5]=0;return t[0]=a,t[3]=o,t[1]=v*a,t[2]=c*o,u&&wi(t,t,u),t[4]+=i+f,t[5]+=n+h,t},r.initDefaultProps=function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),r}(),xr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function M1(r,e){for(var t=0;t<xr.length;t++){var i=xr[t];r[i]=e[i]}}const tn=FA;var kd={};function Te(r,e){e=e||gi;var t=kd[e];t||(t=kd[e]=new Xo(500));var i=t.get(r);return i==null&&(i=yi.measureText(r,e).width,t.put(r,i)),i}function Od(r,e,t,i){var n=Te(r,e),a=nu(e),o=ja(0,n,t),s=Wn(0,a,i),l=new lt(o,s,n,a);return l}function $o(r,e,t,i){var n=((r||"")+"").split(`
- `),a=n.length;if(a===1)return Od(n[0],e,t,i);for(var o=new lt(0,0,0,0),s=0;s<n.length;s++){var l=Od(n[s],e,t,i);s===0?o.copy(l):o.union(l)}return o}function ja(r,e,t){return t==="right"?r-=e:t==="center"&&(r-=e/2),r}function Wn(r,e,t){return t==="middle"?r-=e/2:t==="bottom"&&(r-=e),r}function nu(r){return Te("国",r)}function rr(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function Cl(r,e,t){var i=e.position||"inside",n=e.distance!=null?e.distance:5,a=t.height,o=t.width,s=a/2,l=t.x,u=t.y,f="left",h="top";if(i instanceof Array)l+=rr(i[0],t.width),u+=rr(i[1],t.height),f=null,h=null;else switch(i){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=a+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=a-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=a-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=a-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var uf="__zr_normal__",ff=xr.concat(["ignore"]),GA=Fe(xr,function(r,e){return r[e]=!0,r},{ignore:!1}),Dn={},HA=new lt(0,0,0,0),au=function(){function r(e){this.id=ac(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,i){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,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(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=t.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=n?this:null;var u=!1;if(a.copyTransform(t),i.position!=null){var f=HA;i.layoutRect?f.copy(i.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Dn,i,f):Cl(Dn,i,f),a.x=Dn.x,a.y=Dn.y,o=Dn.align,s=Dn.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var c=void 0,v=void 0;h==="center"?(c=f.width*.5,v=f.height*.5):(c=rr(h[0],f.width),v=rr(h[1],f.height)),u=!0,a.originX=-a.x+c+(n?0:f.x),a.originY=-a.y+v+(n?0:f.y)}}i.rotation!=null&&(a.rotation=i.rotation);var p=i.offset;p&&(a.x+=p[0],a.y+=p[1],u||(a.originX=-p[0],a.originY=-p[1]));var d=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;d&&this.canBeInsideText()?(y=i.insideFill,m=i.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=i.outsideFill,m=i.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=pr,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Jh:jh},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),i=typeof t=="string"&&oe(t);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,tr(i,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},O(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(Y(e))for(var i=e,n=at(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==uf)){var o=n.targetName,s=o?t[o]:t;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,ff)},r.prototype._savePrimaryToNormal=function(e,t,i){for(var n=0;n<i.length;n++){var a=i[n];e[a]!=null&&!(a in t)&&(t[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(uf,!1,e)},r.prototype.useState=function(e,t,i,n){var a=e===uf,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(st(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){oc("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!i&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,c=this._textGuide;return h&&h.useState(e,t,i,f),c&&c.useState(e,t,i,f),a?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~pr),u}}},r.prototype.useStates=function(e,t,i){if(!e.length)this.clearStates();else{var n=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&n.push(f)}var h=n[o-1],c=!!(h&&h.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(n),p=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(e.join(","),v,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var d=this._textContent,g=this._textGuide;d&&d.useStates(e,t,c),g&&g.useStates(e,t,c),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~pr)}},r.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=st(this.currentStates,e);if(t>=0){var i=this.currentStates.slice();i.splice(t,1),this.useStates(i)}},r.prototype.replaceState=function(e,t,i){var n=this.currentStates.slice(),a=st(n,e),o=st(n,t)>=0;a>=0?o?n.splice(a,1):n[a]=t:i&&!o&&n.push(t),this.useStates(n)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},i,n=0;n<e.length;n++){var a=e[n];O(t,a),a.textConfig&&(i=i||{},O(i,a.textConfig))}return i&&(t.textConfig=i),t},r.prototype._applyStateObj=function(e,t,i,n,a,o){var s=!(t&&n);t&&t.textConfig?(this.textConfig=O({},n?this.textConfig:i.textConfig),O(this.textConfig,t.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<ff.length;f++){var h=ff[f],c=a&&GA[h];t&&t[h]!=null?c?(u=!0,l[h]=t[h]):this[h]=t[h]:s&&i[h]!=null&&(c?(u=!0,l[h]=i[h]):this[h]=i[h])}if(!a)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],p=v.targetName;v.getLoop()||v.__changeFinalValue(p?(t||i)[p]:t||i)}u&&this._transitionState(e,l,o)},r.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new tn,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),O(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=pr;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,i=this._textGuide;t&&(t.__inHover=e),i&&(i.__inHover=e)},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.addAnimator(t[i]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.removeAnimator(t[i]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,i){var n=e?this[e]:this,a=new gc(n,t,i);return e&&(a.targetName=e),this.addAnimator(a,e),a},r.prototype.addAnimator=function(e,t){var i=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(t)}).done(function(){var a=n.animators,o=st(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!e||e===s.scope?s.stop(t):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(e,t,i){hf(this,e,t,i)},r.prototype.animateFrom=function(e,t,i){hf(this,e,t,i,!0)},r.prototype._transitionState=function(e,t,i,n){for(var a=hf(this,t,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=pr;function t(i,n,a,o){Object.defineProperty(e,i,{get:function(){if(!this[n]){var l=this[n]=[];s(this,l)}return this[n]},set:function(l){this[a]=l[0],this[o]=l[1],this[n]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(f){l[a]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(t("position","_legacyPos","x","y"),t("scale","_legacyScale","scaleX","scaleY"),t("origin","_legacyOrigin","originX","originY"))}(),r}();Xt(au,ir);Xt(au,tn);function hf(r,e,t,i,n){t=t||{};var a=[];D1(r,"",r,e,t,i,a,n);var o=a.length,s=!1,l=t.done,u=t.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&t.during&&a[0].during(function(p,d){t.during(d)});for(var c=0;c<a.length;c++){var v=a[c];f&&v.done(f),h&&v.aborted(h),t.force&&v.duration(t.duration),v.start(t.easing)}return a}function vf(r,e,t){for(var i=0;i<t;i++)r[i]=e[i]}function WA(r){return Qt(r[0])}function UA(r,e,t){if(Qt(e[t]))if(Qt(r[t])||(r[t]=[]),le(e[t])){var i=e[t].length;r[t].length!==i&&(r[t]=new e[t].constructor(i),vf(r[t],e[t],i))}else{var n=e[t],a=r[t],o=n.length;if(WA(n))for(var s=n[0].length,l=0;l<o;l++)a[l]?vf(a[l],n[l],s):a[l]=Array.prototype.slice.call(n[l]);else vf(a,n,o);a.length=n.length}else r[t]=e[t]}function YA(r,e){return r===e||Qt(r)&&Qt(e)&&XA(r,e)}function XA(r,e){var t=r.length;if(t!==e.length)return!1;for(var i=0;i<t;i++)if(r[i]!==e[i])return!1;return!0}function D1(r,e,t,i,n,a,o,s){for(var l=at(i),u=n.duration,f=n.delay,h=n.additive,c=n.setToFinal,v=!Y(a),p=r.animators,d=[],g=0;g<l.length;g++){var y=l[g],m=i[y];if(m!=null&&t[y]!=null&&(v||a[y]))if(Y(m)&&!Qt(m)&&!tu(m)){if(e){s||(t[y]=m,r.updateDuringAnimation(e));continue}D1(r,y,t[y],m,n,a&&a[y],o,s)}else d.push(y);else s||(t[y]=m,r.updateDuringAnimation(e),d.push(y))}var _=d.length;if(!h&&_)for(var S=0;S<p.length;S++){var w=p[S];if(w.targetName===e){var x=w.stopTracks(d);if(x){var T=st(p,w);p.splice(T,1)}}}if(n.force||(d=bt(d,function(D){return!YA(i[D],t[D])}),_=d.length),_>0||n.force&&!o.length){var C=void 0,A=void 0,M=void 0;if(s){A={},c&&(C={});for(var S=0;S<_;S++){var y=d[S];A[y]=t[y],c?C[y]=i[y]:t[y]=i[y]}}else if(c){M={};for(var S=0;S<_;S++){var y=d[S];M[y]=so(t[y]),UA(t,i,y)}}var w=new gc(t,!1,!1,h?bt(p,function(I){return I.targetName===e}):null);w.targetName=e,n.scope&&(w.scope=n.scope),c&&C&&w.whenWithKeys(0,C,d),M&&w.whenWithKeys(0,M,d),w.whenWithKeys(u==null?500:u,s?A:i,d).delay(f||0),r.addAnimator(w,e),o.push(w)}}var I1=function(r){E(e,r);function e(t){var i=r.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(t),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===t)return i[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,i){if(t&&t!==this&&t.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,i){var n=st(this._children,t);return n>=0&&this.replaceAt(i,n),this},e.prototype.replaceAt=function(t,i){var n=this._children,a=n[i];if(t&&t!==this&&t.parent!==this&&t!==a){n[i]=t,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var i=this.__zr;i&&i!==t.__zr&&t.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(t){var i=this.__zr,n=this._children,a=st(n,t);return a<0?this:(n.splice(a,1),t.parent=null,i&&t.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,i=this.__zr,n=0;n<t.length;n++){var a=t[n];i&&a.removeSelfFromZr(i),a.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];t.call(i,o,a)}return this},e.prototype.traverse=function(t,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=t.call(i,a);a.isGroup&&!o&&a.traverse(t,i)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var i=new lt(0,0,0,0),n=t||this._children,a=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(lt.applyTransform(i,u,f),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},e}(au);I1.prototype.type="group";const nt=I1;/*!
- * ZRender, a high performance 2d drawing library.
- *
- * Copyright (c) 2013, Baidu Inc.
- * All rights reserved.
- *
- * LICENSE
- * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
- */var nl={},en={};function $A(r){delete en[r]}function ZA(r){if(!r)return!1;if(typeof r=="string")return xo(r,1)<Kh;if(r.colorStops){for(var e=r.colorStops,t=0,i=e.length,n=0;n<i;n++)t+=xo(e[n].color,1);return t/=i,t<Kh}return!1}var qA=function(){function r(e,t,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=t,this.id=e;var a=new iA,o=i.renderer||"canvas";nl[o]||(o=at(nl)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new nl[o](t,a,i,e),l=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!ht.node&&!ht.worker&&!l?new zA(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,h=f==null||f==="auto"?ht.touchEventsSupported:!!f,c=44,v;h&&(v=J(i.pointerSize,c)),this.handler=new l1(a,s,u,s.root,v),this.animation=new LA({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=ZA(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(e){var t,i=Xn();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var n=Xn();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,i){return this._disposed||this.handler.on(e,t,i),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof nt&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,$A(this.id))},r}();function Qh(r,e){var t=new qA(ac(),r,e);return en[t.id]=t,t}function KA(r){r.dispose()}function jA(){for(var r in en)en.hasOwnProperty(r)&&en[r].dispose();en={}}function JA(r){return en[r]}function P1(r,e){nl[r]=e}var tv;function L1(r){if(typeof tv=="function")return tv(r)}function R1(r){tv=r}var QA="5.6.0";const tM=Object.freeze(Object.defineProperty({__proto__:null,dispose:KA,disposeAll:jA,getElementSSRData:L1,getInstance:JA,init:Qh,registerPainter:P1,registerSSRDataGetter:R1,version:QA},Symbol.toStringTag,{value:"Module"}));var Bd=1e-4,E1=20;function eM(r){return r.replace(/^\s+|\s+$/g,"")}function xt(r,e,t,i){var n=e[0],a=e[1],o=t[0],s=t[1],l=a-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(i)if(l>0){if(r<=n)return o;if(r>=a)return s}else{if(r>=n)return o;if(r<=a)return s}else{if(r===n)return o;if(r===a)return s}return(r-n)/l*u+o}function Q(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return F(r)?eM(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function Pt(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),E1),r=(+r).toFixed(e),t?r:+r}function yr(r){return r.sort(function(e,t){return e-t}),r}function mr(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return k1(r)}function k1(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),i=t>0?+e.slice(t+1):0,n=t>0?t:e.length,a=e.indexOf("."),o=a<0?0:n-1-a;return Math.max(0,o-i)}function yc(r,e){var t=Math.log,i=Math.LN10,n=Math.floor(t(r[1]-r[0])/i),a=Math.round(t(Math.abs(e[1]-e[0]))/i),o=Math.min(Math.max(-n+a,0),20);return isFinite(o)?o:20}function rM(r,e,t){if(!r[e])return 0;var i=O1(r,t);return i[e]||0}function O1(r,e){var t=Fe(r,function(v,p){return v+(isNaN(p)?0:p)},0);if(t===0)return[];for(var i=Math.pow(10,e),n=V(r,function(v){return(isNaN(v)?0:v)/t*i*100}),a=i*100,o=V(n,function(v){return Math.floor(v)}),s=Fe(o,function(v,p){return v+p},0),l=V(n,function(v,p){return v-o[p]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,h=0,c=l.length;h<c;++h)l[h]>u&&(u=l[h],f=h);++o[f],l[f]=0,++s}return V(o,function(v){return v/i})}function iM(r,e){var t=Math.max(mr(r),mr(e)),i=r+e;return t>E1?i:Pt(i,t)}var nM=9007199254740991;function mc(r){var e=Math.PI*2;return(r%e+e)%e}function bo(r){return r>-Bd&&r<Bd}var aM=/^(?:(\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 Ce(r){if(r instanceof Date)return r;if(F(r)){var e=aM.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return 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)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function B1(r){return Math.pow(10,ou(r))}function ou(r){if(r===0)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=10&&e++,e}function _c(r,e){var t=ou(r),i=Math.pow(10,t),n=r/i,a;return e?n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10:n<1?a=1:n<2?a=2:n<3?a=3:n<5?a=5:a=10,r=a*i,t>=-20?+r.toFixed(t<0?-t:0):r}function oM(r,e){var t=(r.length-1)*e+1,i=Math.floor(t),n=+r[i-1],a=t-i;return a?n+a*(r[i]-n):n}function ev(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,i=0;i<r.length;){for(var n=r[i].interval,a=r[i].close,o=0;o<2;o++)n[o]<=e&&(n[o]=e,a[o]=o?1:1-t),e=n[o],t=a[o];n[0]===n[1]&&a[0]*a[1]!==1?r.splice(i,1):i++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function To(r){var e=parseFloat(r);return e==r&&(e!==0||!F(r)||r.indexOf("x")<=0)?e:NaN}function Sc(r){return!isNaN(To(r))}function N1(){return Math.round(Math.random()*9)}function z1(r,e){return e===0?r:z1(e,r%e)}function Nd(r,e){return r==null?e:e==null?r:r*e/z1(r,e)}function ye(r){throw new Error(r)}function zd(r,e,t){return(e-r)*t+r}var V1="series\0",F1="\0_ec_\0";function Ct(r){return r instanceof Array?r:r==null?[]:[r]}function Al(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var i=0,n=t.length;i<n;i++){var a=t[i];!r.emphasis[e].hasOwnProperty(a)&&r[e].hasOwnProperty(a)&&(r.emphasis[e][a]=r[e][a])}}}var Vd=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function ca(r){return Y(r)&&!z(r)&&!(r instanceof Date)?r.value:r}function sM(r){return Y(r)&&!(r instanceof Array)}function G1(r,e,t){var i=t==="normalMerge",n=t==="replaceMerge",a=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=U();b(e,function(l,u){if(!Y(l)){e[u]=null;return}});var s=lM(r,o,t);return(i||n)&&uM(s,r,o,e),i&&fM(s,e),i||n?hM(s,e,n):a&&vM(s,e),cM(s),s}function lM(r,e,t){var i=[];if(t==="replaceAll")return i;for(var n=0;n<r.length;n++){var a=r[n];a&&a.id!=null&&e.set(a.id,n),i.push({existing:t==="replaceMerge"||Co(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function uM(r,e,t,i){b(i,function(n,a){if(!(!n||n.id==null)){var o=lo(n.id),s=t.get(o);if(s!=null){var l=r[s];ue(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],i[a]=null}}})}function fM(r,e){b(e,function(t,i){if(!(!t||t.name==null))for(var n=0;n<r.length;n++){var a=r[n].existing;if(!r[n].newOption&&a&&(a.id==null||t.id==null)&&!Co(t)&&!Co(a)&&H1("name",a,t)){r[n].newOption=t,e[i]=null;return}}})}function hM(r,e,t){b(e,function(i){if(i){for(var n,a=0;(n=r[a])&&(n.newOption||Co(n.existing)||n.existing&&i.id!=null&&!H1("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=t):r.push({newOption:i,brandNew:t,existing:null,keyInfo:null}),a++}})}function vM(r,e){b(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function cM(r){var e=U();b(r,function(t){var i=t.existing;i&&e.set(i.id,t)}),b(r,function(t){var i=t.newOption;ue(!i||i.id==null||!e.get(i.id)||e.get(i.id)===t,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})}),b(r,function(t,i){var n=t.existing,a=t.newOption,o=t.keyInfo;if(Y(a)){if(o.name=a.name!=null?lo(a.name):n?n.name:V1+i,n)o.id=lo(n.id);else if(a.id!=null)o.id=lo(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function H1(r,e,t){var i=jt(e[r],null),n=jt(t[r],null);return i!=null&&n!=null&&i===n}function lo(r){return jt(r,"")}function jt(r,e){return r==null?e:F(r)?r:mt(r)||dl(r)?r+"":e}function xc(r){var e=r.name;return!!(e&&e.indexOf(V1))}function Co(r){return r&&r.id!=null&&lo(r.id).indexOf(F1)===0}function pM(r){return F1+r}function dM(r,e,t){b(r,function(i){var n=i.newOption;Y(n)&&(i.keyInfo.mainType=e,i.keyInfo.subType=gM(e,n,i.existing,t))})}function gM(r,e,t,i){var n=e.type?e.type:t?t.subType:i.determineSubType(r,e);return n}function yM(r,e){var t={},i={};return n(r||[],t),n(e||[],i,t),[a(t),a(i)];function n(o,s,l){for(var u=0,f=o.length;u<f;u++){var h=jt(o[u].seriesId,null);if(h==null)return;for(var c=Ct(o[u].dataIndex),v=l&&l[h],p=0,d=c.length;p<d;p++){var g=c[p];v&&v[g]?v[g]=null:(s[h]||(s[h]={}))[g]=1}}}function a(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=a(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function gn(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return z(e.dataIndex)?V(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return z(e.name)?V(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function _t(){var r="__ec_inner_"+mM++;return function(e){return e[r]||(e[r]={})}}var mM=N1();function uo(r,e,t){var i=wc(e,t),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,l=t?t.defaultMainType:null;return!n&&l&&a.set(l,{}),a.each(function(u,f){var h=Zo(r,f,u,{useDefault:l===f,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function wc(r,e){var t;if(F(r)){var i={};i[r+"Index"]=0,t=i}else t=r;var n=U(),a={},o=!1;return b(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||e&&e.includeMainTypes&&st(e.includeMainTypes,f)<0)){o=o||!!f;var c=n.get(f)||n.set(f,{});c[h]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var Ot={useDefault:!0,enableAll:!1,enableNone:!1},_M={useDefault:!1,enableAll:!0,enableNone:!0};function Zo(r,e,t,i){i=i||Ot;var n=t.index,a=t.id,o=t.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=r.getComponent(e))?[l]:[],s}return n==="none"||n===!1?(ue(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(n==="all"&&(ue(i.enableAll,'`"all"` is not a valid value on index option.'),n=a=o=null),s.models=r.queryComponents({mainType:e,index:n,id:a,name:o}),s)}function W1(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function SM(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function xM(r){return r==="auto"?ht.domSupported?"html":"richText":r||"html"}function wM(r,e,t,i,n){var a=e==null||e==="auto";if(i==null)return i;if(mt(i)){var o=zd(t||0,i,n);return Pt(o,a?Math.max(mr(t||0),mr(i)):e)}else{if(F(i))return n<1?t:i;for(var s=[],l=t,u=i,f=Math.max(l?l.length:0,u.length),h=0;h<f;++h){var c=r.getDimensionInfo(h);if(c&&c.type==="ordinal")s[h]=(n<1&&l?l:u)[h];else{var v=l&&l[h]?l[h]:0,p=u[h],o=zd(v,p,n);s[h]=Pt(o,a?Math.max(mr(v),mr(p)):e)}}return s}}var bM=".",Li="___EC__COMPONENT__CONTAINER___",U1="___EC__EXTENDED_CLASS___";function _r(r){var e={main:"",sub:""};if(r){var t=r.split(bM);e.main=t[0]||"",e.sub=t[1]||""}return e}function TM(r){ue(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function CM(r){return!!(r&&r[U1])}function bc(r,e){r.$constructor=r,r.extend=function(t){var i=this,n;return AM(i)?n=function(a){E(o,a);function o(){return a.apply(this,arguments)||this}return o}(i):(n=function(){(t.$constructor||i).apply(this,arguments)},sc(n,this)),O(n.prototype,t),n[U1]=!0,n.extend=this.extend,n.superCall=IM,n.superApply=PM,n.superClass=i,n}}function AM(r){return K(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function Y1(r,e){r.extend=e.extend}var MM=Math.round(Math.random()*10);function DM(r){var e=["__\0is_clz",MM++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function IM(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return this.superClass.prototype[e].apply(r,t)}function PM(r,e,t){return this.superClass.prototype[e].apply(r,t)}function su(r){var e={};r.registerClass=function(i){var n=i.type||i.prototype.type;if(n){TM(n),i.prototype.type=n;var a=_r(n);if(!a.sub)e[a.main]=i;else if(a.sub!==Li){var o=t(a);o[a.sub]=i}}return i},r.getClass=function(i,n,a){var o=e[i];if(o&&o[Li]&&(o=n?o[n]:null),a&&!o)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return o},r.getClassesByMainType=function(i){var n=_r(i),a=[],o=e[n.main];return o&&o[Li]?b(o,function(s,l){l!==Li&&a.push(s)}):a.push(o),a},r.hasClass=function(i){var n=_r(i);return!!e[n.main]},r.getAllClassMainTypes=function(){var i=[];return b(e,function(n,a){i.push(a)}),i},r.hasSubTypes=function(i){var n=_r(i),a=e[n.main];return a&&a[Li]};function t(i){var n=e[i.main];return(!n||!n[Li])&&(n=e[i.main]={},n[Li]=!0),n}}function ea(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(i,n,a){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&st(n,l)>=0||a&&st(a,l)<0)){var u=i.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var LM=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],RM=ea(LM),EM=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return RM(this,e,t)},r}(),rv=new Xo(50);function kM(r){if(typeof r=="string"){var e=rv.get(r);return e&&e.image}else return r}function Tc(r,e,t,i,n){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var a=rv.get(r),o={hostEl:t,cb:i,cbPayload:n};return a?(e=a.image,!lu(e)&&a.pending.push(o)):(e=yi.loadImage(r,Fd,Fd),e.__zrImageSrc=r,rv.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function Fd(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],i=t.cb;i&&i(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function lu(r){return r&&r.width&&r.height}var cf=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function X1(r,e,t,i,n){if(!e)return"";var a=(r+"").split(`
- `);n=$1(e,t,i,n);for(var o=0,s=a.length;o<s;o++)a[o]=Z1(a[o],n);return a.join(`
- `)}function $1(r,e,t,i){i=i||{};var n=O({},i);n.font=e,t=J(t,"..."),n.maxIterations=J(i.maxIterations,2);var a=n.minChar=J(i.minChar,0);n.cnCharWidth=Te("国",e);var o=n.ascCharWidth=Te("a",e);n.placeholder=J(i.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<a&&s>=o;l++)s-=o;var u=Te(t,e);return u>s&&(t="",u=0),s=r-u,n.ellipsis=t,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function Z1(r,e){var t=e.containerWidth,i=e.font,n=e.contentWidth;if(!t)return"";var a=Te(r,i);if(a<=t)return r;for(var o=0;;o++){if(a<=n||o>=e.maxIterations){r+=e.ellipsis;break}var s=o===0?OM(r,n,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(r.length*n/a):0;r=r.substr(0,s),a=Te(r,i)}return r===""&&(r=e.placeholder),r}function OM(r,e,t,i){for(var n=0,a=0,o=r.length;a<o&&n<e;a++){var s=r.charCodeAt(a);n+=0<=s&&s<=127?t:i}return a}function BM(r,e){r!=null&&(r+="");var t=e.overflow,i=e.padding,n=e.font,a=t==="truncate",o=nu(n),s=J(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",f=e.width,h;f!=null&&(t==="break"||t==="breakAll")?h=r?q1(r,e.font,f,t==="breakAll",0).lines:[]:h=r?r.split(`
- `):[];var c=h.length*s,v=J(e.height,c);if(c>v&&u){var p=Math.floor(v/s);h=h.slice(0,p)}if(r&&a&&f!=null)for(var d=$1(f,n,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g=0;g<h.length;g++)h[g]=Z1(h[g],d);for(var y=v,m=0,g=0;g<h.length;g++)m=Math.max(Te(h[g],n),m);f==null&&(f=m);var _=m;return i&&(y+=i[0]+i[2],_+=i[1]+i[3],f+=i[1]+i[3]),l&&(_=f),{lines:h,height:v,outerWidth:_,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:m,contentHeight:c,width:f}}var NM=function(){function r(){}return r}(),Gd=function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r}(),zM=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return r}();function VM(r,e){var t=new zM;if(r!=null&&(r+=""),!r)return t;for(var i=e.width,n=e.height,a=e.overflow,o=(a==="break"||a==="breakAll")&&i!=null?{width:i,accumWidth:0,breakAll:a==="breakAll"}:null,s=cf.lastIndex=0,l;(l=cf.exec(r))!=null;){var u=l.index;u>s&&pf(t,r.substring(s,u),e,o),pf(t,l[2],e,o,l[1]),s=cf.lastIndex}s<r.length&&pf(t,r.substring(s,r.length),e,o);var f=[],h=0,c=0,v=e.padding,p=a==="truncate",d=e.lineOverflow==="truncate";function g(B,N,H){B.width=N,B.lineHeight=H,h+=H,c=Math.max(c,N)}t:for(var y=0;y<t.lines.length;y++){for(var m=t.lines[y],_=0,S=0,w=0;w<m.tokens.length;w++){var x=m.tokens[w],T=x.styleName&&e.rich[x.styleName]||{},C=x.textPadding=T.padding,A=C?C[1]+C[3]:0,M=x.font=T.font||e.font;x.contentHeight=nu(M);var D=J(T.height,x.contentHeight);if(x.innerHeight=D,C&&(D+=C[0]+C[2]),x.height=D,x.lineHeight=Zn(T.lineHeight,e.lineHeight,D),x.align=T&&T.align||e.align,x.verticalAlign=T&&T.verticalAlign||"middle",d&&n!=null&&h+x.lineHeight>n){w>0?(m.tokens=m.tokens.slice(0,w),g(m,S,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break t}var I=T.width,P=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")x.percentWidth=I,f.push(x),x.contentWidth=Te(x.text,M);else{if(P){var L=T.backgroundColor,R=L&&L.image;R&&(R=kM(R),lu(R)&&(x.width=Math.max(x.width,R.width*D/R.height)))}var k=p&&i!=null?i-S:null;k!=null&&k<x.width?!P||k<A?(x.text="",x.width=x.contentWidth=0):(x.text=X1(x.text,k-A,M,e.ellipsis,{minChar:e.truncateMinChar}),x.width=x.contentWidth=Te(x.text,M)):x.contentWidth=Te(x.text,M)}x.width+=A,S+=x.width,T&&(_=Math.max(_,x.lineHeight))}g(m,S,_)}t.outerWidth=t.width=J(i,c),t.outerHeight=t.height=J(n,h),t.contentHeight=h,t.contentWidth=c,v&&(t.outerWidth+=v[1]+v[3],t.outerHeight+=v[0]+v[2]);for(var y=0;y<f.length;y++){var x=f[y],G=x.percentWidth;x.width=parseInt(G,10)/100*t.width}return t}function pf(r,e,t,i,n){var a=e==="",o=n&&t.rich[n]||{},s=r.lines,l=o.font||t.font,u=!1,f,h;if(i){var c=o.padding,v=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var p=rr(o.width,i.width)+v;s.length>0&&p+i.accumWidth>i.width&&(f=e.split(`
- `),u=!0),i.accumWidth=p}else{var d=q1(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=d.accumWidth+v,h=d.linesWidths,f=d.lines}}else f=e.split(`
- `);for(var g=0;g<f.length;g++){var y=f[g],m=new NM;if(m.styleName=n,m.text=y,m.isLineHolder=!y&&!a,typeof o.width=="number"?m.width=o.width:m.width=h?h[g]:Te(y,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new Gd)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(y||!S||a)&&_.push(m)}else s.push(new Gd([m]))}}function FM(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var GM=Fe(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function HM(r){return FM(r)?!!GM[r]:!0}function q1(r,e,t,i,n){for(var a=[],o=[],s="",l="",u=0,f=0,h=0;h<r.length;h++){var c=r.charAt(h);if(c===`
- `){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=Te(c,e),p=i?!1:!HM(c);if(a.length?f+v>t:n+f+v>t){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=c,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=c,f=v)):p?(a.push(l),o.push(u),l=c,u=v):(a.push(c),o.push(v));continue}f+=v,p?(l+=c,u+=v):(l&&(s+=l,l="",u=0),s+=c)}return!a.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}var iv="__zr_style_"+Math.round(Math.random()*10),un={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},uu={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};un[iv]=!0;var Hd=["z","z2","invisible"],WM=["invisible"],UM=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var i=at(t),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(t[a]):r.prototype.attrKV.call(this,a,t[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&YM(this,t,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,i){return this.rectContain(t,i)},e.prototype.traverse=function(t,i){t.call(i,this)},e.prototype.rectContain=function(t,i){var n=this.transformCoordToLocal(t,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new lt(0,0,0,0)),i?lt.applyTransform(t,n,i):t.copy(n),(o||s||l)&&(t.width+=o*2+Math.abs(s),t.height+=o*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+l-o));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new lt(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,i){t!=="style"?r.prototype.attrKV.call(this,t,i):this.style?this.setStyle(i):this.useStyle(i)},e.prototype.setStyle=function(t,i){return typeof t=="string"?this.style[t]=i:O(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=qa,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&qa)},e.prototype.styleUpdated=function(){this.__dirty&=~qa},e.prototype.createStyle=function(t){return Uo(un,t)},e.prototype.useStyle=function(t){t[iv]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[iv]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,i,Hd)},e.prototype._applyStateObj=function(t,i,n,a,o,s){r.prototype._applyStateObj.call(this,t,i,n,a,o,s);var l=!(i&&a),u;if(i&&i.style?o?a?u=i.style:(u=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(u,i.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(u,i.style)):l&&(u=n.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=at(f),c=0;c<h.length;c++){var v=h[c];v in u&&(u[v]=u[v],this.style[v]=f[v])}for(var p=at(u),c=0;c<p.length;c++){var v=p[c];this.style[v]=this.style[v]}this._transitionState(t,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var d=this.__inHover?WM:Hd,c=0;c<d.length;c++){var v=d[c];i&&i[v]!=null?this[v]=i[v]:l&&n[v]!=null&&(this[v]=n[v])}},e.prototype._mergeStates=function(t){for(var i=r.prototype._mergeStates.call(this,t),n,a=0;a<t.length;a++){var o=t[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(t,i){return O(t,i),t},e.prototype.getAnimationStyleProps=function(){return uu},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=pr|qa}(),e}(au),df=new lt(0,0,0,0),gf=new lt(0,0,0,0);function YM(r,e,t){return df.copy(r.getBoundingRect()),r.transform&&df.applyTransform(r.transform),gf.width=e,gf.height=t,!df.intersect(gf)}const Gr=UM;var Oe=Math.min,Be=Math.max,yf=Math.sin,mf=Math.cos,Ri=Math.PI*2,ps=Sn(),ds=Sn(),gs=Sn();function Wd(r,e,t,i,n,a){n[0]=Oe(r,t),n[1]=Oe(e,i),a[0]=Be(r,t),a[1]=Be(e,i)}var Ud=[],Yd=[];function XM(r,e,t,i,n,a,o,s,l,u){var f=c1,h=Wt,c=f(r,t,n,o,Ud);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<c;v++){var p=h(r,t,n,o,Ud[v]);l[0]=Oe(p,l[0]),u[0]=Be(p,u[0])}c=f(e,i,a,s,Yd);for(var v=0;v<c;v++){var d=h(e,i,a,s,Yd[v]);l[1]=Oe(d,l[1]),u[1]=Be(d,u[1])}l[0]=Oe(r,l[0]),u[0]=Be(r,u[0]),l[0]=Oe(o,l[0]),u[0]=Be(o,u[0]),l[1]=Oe(e,l[1]),u[1]=Be(e,u[1]),l[1]=Oe(s,l[1]),u[1]=Be(s,u[1])}function $M(r,e,t,i,n,a,o,s){var l=p1,u=ge,f=Be(Oe(l(r,t,n),1),0),h=Be(Oe(l(e,i,a),1),0),c=u(r,t,n,f),v=u(e,i,a,h);o[0]=Oe(r,n,c),o[1]=Oe(e,a,v),s[0]=Be(r,n,c),s[1]=Be(e,a,v)}function ZM(r,e,t,i,n,a,o,s,l){var u=Er,f=kr,h=Math.abs(n-a);if(h%Ri<1e-4&&h>1e-4){s[0]=r-t,s[1]=e-i,l[0]=r+t,l[1]=e+i;return}if(ps[0]=mf(n)*t+r,ps[1]=yf(n)*i+e,ds[0]=mf(a)*t+r,ds[1]=yf(a)*i+e,u(s,ps,ds),f(l,ps,ds),n=n%Ri,n<0&&(n=n+Ri),a=a%Ri,a<0&&(a=a+Ri),n>a&&!o?a+=Ri:n<a&&o&&(n+=Ri),o){var c=a;a=n,n=c}for(var v=0;v<a;v+=Math.PI/2)v>n&&(gs[0]=mf(v)*t+r,gs[1]=yf(v)*i+e,u(s,gs,s),f(l,gs,l))}var yt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ei=[],ki=[],sr=[],qr=[],lr=[],ur=[],_f=Math.min,Sf=Math.max,Oi=Math.cos,Bi=Math.sin,Dr=Math.abs,nv=Math.PI,ii=nv*2,xf=typeof Float32Array!="undefined",Da=[];function wf(r){var e=Math.round(r/nv*1e8)/1e8;return e%2*nv}function K1(r,e){var t=wf(r[0]);t<0&&(t+=ii);var i=t-r[0],n=r[1];n+=i,!e&&n-t>=ii?n=t+ii:e&&t-n>=ii?n=t-ii:!e&&t>n?n=t+(ii-wf(t-n)):e&&t<n&&(n=t-(ii-wf(n-t))),r[0]=t,r[1]=n}var mi=function(){function r(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(e,t,i){i=i||0,i>0&&(this._ux=Dr(i/Ld/e)||0,this._uy=Dr(i/Ld/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(yt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var i=Dr(e-this._xi),n=Dr(t-this._yi),a=i>this._ux||n>this._uy;if(this.addData(yt.L,e,t),this._ctx&&a&&this._ctx.lineTo(e,t),a)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,i,n,a,o){return this._drawPendingPt(),this.addData(yt.C,e,t,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(e,t,i,n,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,i,n){return this._drawPendingPt(),this.addData(yt.Q,e,t,i,n),this._ctx&&this._ctx.quadraticCurveTo(e,t,i,n),this._xi=i,this._yi=n,this},r.prototype.arc=function(e,t,i,n,a,o){this._drawPendingPt(),Da[0]=n,Da[1]=a,K1(Da,o),n=Da[0],a=Da[1];var s=a-n;return this.addData(yt.A,e,t,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,i,n,a,o),this._xi=Oi(a)*i+e,this._yi=Bi(a)*i+t,this},r.prototype.arcTo=function(e,t,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,i,n,a),this},r.prototype.rect=function(e,t,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,i,n),this.addData(yt.R,e,t,i,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(yt.Z);var e=this._ctx,t=this._x0,i=this._y0;return e&&e.closePath(),this._xi=t,this._yi=i,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&xf&&(this.data=new Float32Array(t));for(var i=0;i<t;i++)this.data[i]=e[i];this._len=t},r.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,i=0,n=this._len,a=0;a<t;a++)i+=e[a].len();xf&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(var a=0;a<t;a++)for(var o=e[a].data,s=0;s<o.length;s++)this.data[n++]=o[s];this._len=n},r.prototype.addData=function(e,t,i,n,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,xf&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){sr[0]=sr[1]=lr[0]=lr[1]=Number.MAX_VALUE,qr[0]=qr[1]=ur[0]=ur[1]=-Number.MAX_VALUE;var e=this.data,t=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(t=e[o],i=e[o+1],n=t,a=i),s){case yt.M:t=n=e[o++],i=a=e[o++],lr[0]=n,lr[1]=a,ur[0]=n,ur[1]=a;break;case yt.L:Wd(t,i,e[o],e[o+1],lr,ur),t=e[o++],i=e[o++];break;case yt.C:XM(t,i,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],lr,ur),t=e[o++],i=e[o++];break;case yt.Q:$M(t,i,e[o++],e[o++],e[o],e[o+1],lr,ur),t=e[o++],i=e[o++];break;case yt.A:var u=e[o++],f=e[o++],h=e[o++],c=e[o++],v=e[o++],p=e[o++]+v;o+=1;var d=!e[o++];l&&(n=Oi(v)*h+u,a=Bi(v)*c+f),ZM(u,f,h,c,v,p,d,lr,ur),t=Oi(p)*h+u,i=Bi(p)*c+f;break;case yt.R:n=t=e[o++],a=i=e[o++];var g=e[o++],y=e[o++];Wd(n,a,n+g,a+y,lr,ur);break;case yt.Z:t=n,i=a;break}Er(sr,sr,lr),kr(qr,qr,ur)}return o===0&&(sr[0]=sr[1]=qr[0]=qr[1]=0),new lt(sr[0],sr[1],qr[0]-sr[0],qr[1]-sr[1])},r.prototype._calculateLength=function(){var e=this.data,t=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,h=0,c=0;c<t;){var v=e[c++],p=c===1;p&&(a=e[c],o=e[c+1],s=a,l=o);var d=-1;switch(v){case yt.M:a=s=e[c++],o=l=e[c++];break;case yt.L:{var g=e[c++],y=e[c++],m=g-a,_=y-o;(Dr(m)>i||Dr(_)>n||c===t-1)&&(d=Math.sqrt(m*m+_*_),a=g,o=y);break}case yt.C:{var S=e[c++],w=e[c++],g=e[c++],y=e[c++],x=e[c++],T=e[c++];d=aA(a,o,S,w,g,y,x,T,10),a=x,o=T;break}case yt.Q:{var S=e[c++],w=e[c++],g=e[c++],y=e[c++];d=lA(a,o,S,w,g,y,10),a=g,o=y;break}case yt.A:var C=e[c++],A=e[c++],M=e[c++],D=e[c++],I=e[c++],P=e[c++],L=P+I;c+=1,p&&(s=Oi(I)*M+C,l=Bi(I)*D+A),d=Sf(M,D)*_f(ii,Math.abs(P)),a=Oi(L)*M+C,o=Bi(L)*D+A;break;case yt.R:{s=a=e[c++],l=o=e[c++];var R=e[c++],k=e[c++];d=R*2+k*2;break}case yt.Z:{var m=s-a,_=l-o;d=Math.sqrt(m*m+_*_),a=s,o=l;break}}d>=0&&(u[h++]=d,f+=d)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,l,u,f,h,c,v=t<1,p,d,g=0,y=0,m,_=0,S,w;if(!(v&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,d=this._pathLen,m=t*d,!m)))t:for(var x=0;x<o;){var T=i[x++],C=x===1;switch(C&&(u=i[x],f=i[x+1],s=u,l=f),T!==yt.L&&_>0&&(e.lineTo(S,w),_=0),T){case yt.M:s=u=i[x++],l=f=i[x++],e.moveTo(u,f);break;case yt.L:{h=i[x++],c=i[x++];var A=Dr(h-u),M=Dr(c-f);if(A>n||M>a){if(v){var D=p[y++];if(g+D>m){var I=(m-g)/D;e.lineTo(u*(1-I)+h*I,f*(1-I)+c*I);break t}g+=D}e.lineTo(h,c),u=h,f=c,_=0}else{var P=A*A+M*M;P>_&&(S=h,w=c,_=P)}break}case yt.C:{var L=i[x++],R=i[x++],k=i[x++],G=i[x++],B=i[x++],N=i[x++];if(v){var D=p[y++];if(g+D>m){var I=(m-g)/D;xl(u,L,k,B,I,Ei),xl(f,R,G,N,I,ki),e.bezierCurveTo(Ei[1],ki[1],Ei[2],ki[2],Ei[3],ki[3]);break t}g+=D}e.bezierCurveTo(L,R,k,G,B,N),u=B,f=N;break}case yt.Q:{var L=i[x++],R=i[x++],k=i[x++],G=i[x++];if(v){var D=p[y++];if(g+D>m){var I=(m-g)/D;wl(u,L,k,I,Ei),wl(f,R,G,I,ki),e.quadraticCurveTo(Ei[1],ki[1],Ei[2],ki[2]);break t}g+=D}e.quadraticCurveTo(L,R,k,G),u=k,f=G;break}case yt.A:var H=i[x++],Z=i[x++],$=i[x++],ot=i[x++],ct=i[x++],Rt=i[x++],St=i[x++],$t=!i[x++],Nt=$>ot?$:ot,Mt=Dr($-ot)>.001,wt=ct+Rt,j=!1;if(v){var D=p[y++];g+D>m&&(wt=ct+Rt*(m-g)/D,j=!0),g+=D}if(Mt&&e.ellipse?e.ellipse(H,Z,$,ot,St,ct,wt,$t):e.arc(H,Z,Nt,ct,wt,$t),j)break t;C&&(s=Oi(ct)*$+H,l=Bi(ct)*ot+Z),u=Oi(wt)*$+H,f=Bi(wt)*ot+Z;break;case yt.R:s=u=i[x],l=f=i[x+1],h=i[x++],c=i[x++];var ut=i[x++],ve=i[x++];if(v){var D=p[y++];if(g+D>m){var Dt=m-g;e.moveTo(h,c),e.lineTo(h+_f(Dt,ut),c),Dt-=ut,Dt>0&&e.lineTo(h+ut,c+_f(Dt,ve)),Dt-=ve,Dt>0&&e.lineTo(h+Sf(ut-Dt,0),c+ve),Dt-=ut,Dt>0&&e.lineTo(h,c+Sf(ve-Dt,0));break t}g+=D}e.rect(h,c,ut,ve);break;case yt.Z:if(v){var D=p[y++];if(g+D>m){var I=(m-g)/D;e.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break t}g+=D}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.CMD=yt,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}();function In(r,e,t,i,n,a,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>e+s&&o>i+s||o<e-s&&o<i-s||a>r+s&&a>t+s||a<r-s&&a<t-s)return!1;if(r!==t)l=(e-i)/(r-t),u=(r*i-t*e)/(r-t);else return Math.abs(a-r)<=s/2;var f=l*a-o+u,h=f*f/(l*l+1);return h<=s/2*s/2}function qM(r,e,t,i,n,a,o,s,l,u,f){if(l===0)return!1;var h=l;if(f>e+h&&f>i+h&&f>a+h&&f>s+h||f<e-h&&f<i-h&&f<a-h&&f<s-h||u>r+h&&u>t+h&&u>n+h&&u>o+h||u<r-h&&u<t-h&&u<n-h&&u<o-h)return!1;var c=nA(r,e,t,i,n,a,o,s,u,f);return c<=h/2}function KM(r,e,t,i,n,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>i+u&&l>a+u||l<e-u&&l<i-u&&l<a-u||s>r+u&&s>t+u&&s>n+u||s<r-u&&s<t-u&&s<n-u)return!1;var f=sA(r,e,t,i,n,a,s,l);return f<=u/2}var Xd=Math.PI*2;function ys(r){return r%=Xd,r<0&&(r+=Xd),r}var Ia=Math.PI*2;function jM(r,e,t,i,n,a,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>t||f+u<t)return!1;if(Math.abs(i-n)%Ia<1e-4)return!0;if(a){var h=i;i=ys(n),n=ys(h)}else i=ys(i),n=ys(n);i>n&&(n+=Ia);var c=Math.atan2(l,s);return c<0&&(c+=Ia),c>=i&&c<=n||c+Ia>=i&&c+Ia<=n}function Rr(r,e,t,i,n,a){if(a>e&&a>i||a<e&&a<i||i===e)return 0;var o=(a-e)/(i-e),s=i<e?1:-1;(o===1||o===0)&&(s=i<e?.5:-.5);var l=o*(t-r)+r;return l===n?1/0:l>n?s:0}var Kr=mi.CMD,Ni=Math.PI*2,JM=1e-4;function QM(r,e){return Math.abs(r-e)<JM}var ee=[-1,-1,-1],Re=[-1,-1];function tD(){var r=Re[0];Re[0]=Re[1],Re[1]=r}function eD(r,e,t,i,n,a,o,s,l,u){if(u>e&&u>i&&u>a&&u>s||u<e&&u<i&&u<a&&u<s)return 0;var f=Sl(e,i,a,s,u,ee);if(f===0)return 0;for(var h=0,c=-1,v=void 0,p=void 0,d=0;d<f;d++){var g=ee[d],y=g===0||g===1?.5:1,m=Wt(r,t,n,o,g);m<l||(c<0&&(c=c1(e,i,a,s,Re),Re[1]<Re[0]&&c>1&&tD(),v=Wt(e,i,a,s,Re[0]),c>1&&(p=Wt(e,i,a,s,Re[1]))),c===2?g<Re[0]?h+=v<e?y:-y:g<Re[1]?h+=p<v?y:-y:h+=s<p?y:-y:g<Re[0]?h+=v<e?y:-y:h+=s<v?y:-y)}return h}function rD(r,e,t,i,n,a,o,s){if(s>e&&s>i&&s>a||s<e&&s<i&&s<a)return 0;var l=oA(e,i,a,s,ee);if(l===0)return 0;var u=p1(e,i,a);if(u>=0&&u<=1){for(var f=0,h=ge(e,i,a,u),c=0;c<l;c++){var v=ee[c]===0||ee[c]===1?.5:1,p=ge(r,t,n,ee[c]);p<o||(ee[c]<u?f+=h<e?v:-v:f+=a<h?v:-v)}return f}else{var v=ee[0]===0||ee[0]===1?.5:1,p=ge(r,t,n,ee[0]);return p<o?0:a<e?v:-v}}function iD(r,e,t,i,n,a,o,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);ee[0]=-l,ee[1]=l;var u=Math.abs(i-n);if(u<1e-4)return 0;if(u>=Ni-1e-4){i=0,n=Ni;var f=a?1:-1;return o>=ee[0]+r&&o<=ee[1]+r?f:0}if(i>n){var h=i;i=n,n=h}i<0&&(i+=Ni,n+=Ni);for(var c=0,v=0;v<2;v++){var p=ee[v];if(p+r>o){var d=Math.atan2(s,p),f=a?1:-1;d<0&&(d=Ni+d),(d>=i&&d<=n||d+Ni>=i&&d+Ni<=n)&&(d>Math.PI/2&&d<Math.PI*1.5&&(f=-f),c+=f)}}return c}function j1(r,e,t,i,n){for(var a=r.data,o=r.len(),s=0,l=0,u=0,f=0,h=0,c,v,p=0;p<o;){var d=a[p++],g=p===1;switch(d===Kr.M&&p>1&&(t||(s+=Rr(l,u,f,h,i,n))),g&&(l=a[p],u=a[p+1],f=l,h=u),d){case Kr.M:f=a[p++],h=a[p++],l=f,u=h;break;case Kr.L:if(t){if(In(l,u,a[p],a[p+1],e,i,n))return!0}else s+=Rr(l,u,a[p],a[p+1],i,n)||0;l=a[p++],u=a[p++];break;case Kr.C:if(t){if(qM(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],e,i,n))return!0}else s+=eD(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],i,n)||0;l=a[p++],u=a[p++];break;case Kr.Q:if(t){if(KM(l,u,a[p++],a[p++],a[p],a[p+1],e,i,n))return!0}else s+=rD(l,u,a[p++],a[p++],a[p],a[p+1],i,n)||0;l=a[p++],u=a[p++];break;case Kr.A:var y=a[p++],m=a[p++],_=a[p++],S=a[p++],w=a[p++],x=a[p++];p+=1;var T=!!(1-a[p++]);c=Math.cos(w)*_+y,v=Math.sin(w)*S+m,g?(f=c,h=v):s+=Rr(l,u,c,v,i,n);var C=(i-y)*S/_+y;if(t){if(jM(y,m,S,w,w+x,T,e,C,n))return!0}else s+=iD(y,m,S,w,w+x,T,C,n);l=Math.cos(w+x)*_+y,u=Math.sin(w+x)*S+m;break;case Kr.R:f=l=a[p++],h=u=a[p++];var A=a[p++],M=a[p++];if(c=f+A,v=h+M,t){if(In(f,h,c,h,e,i,n)||In(c,h,c,v,e,i,n)||In(c,v,f,v,e,i,n)||In(f,v,f,h,e,i,n))return!0}else s+=Rr(c,h,c,v,i,n),s+=Rr(f,v,f,h,i,n);break;case Kr.Z:if(t){if(In(l,u,f,h,e,i,n))return!0}else s+=Rr(l,u,f,h,i,n);l=f,u=h;break}}return!t&&!QM(u,h)&&(s+=Rr(l,u,f,h,i,n)||0),s!==0}function nD(r,e,t){return j1(r,0,!1,e,t)}function aD(r,e,t,i){return j1(r,e,!0,t,i)}var Ml=q({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},un),oD={style:q({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},uu.style)},bf=xr.concat(["invisible","culling","z","z2","zlevel","parent"]),gt=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){t.buildPath(l,t.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<bf.length;++s)n[bf[s]]=this[bf[s]];n.__dirty|=pr}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var i=at(t);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=t[o];o==="style"?this.style?O(this.style,s):this.useStyle(s):o==="shape"?O(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if(t!=="none"){if(F(t)){var i=xo(t,0);return i>.5?jh:i>.2?VA:Jh}else if(t)return Jh}return jh},e.prototype.getInsideTextStroke=function(t){var i=this.style.fill;if(F(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=xo(t,0)<Kh;if(a===o)return i}},e.prototype.buildPath=function(t,i,n){},e.prototype.pathUpdated=function(){this.__dirty&=~Hn},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new mi(!1)},e.prototype.hasStroke=function(){var t=this.style,i=t.stroke;return!(i==null||i==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,i=this.style,n=!t;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Hn)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){s.copy(t);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f==null?4:f)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,i){var n=this.transformCoordToLocal(t,i),a=this.getBoundingRect(),o=this.style;if(t=n[0],i=n[1],a.contain(t,i)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),aD(s,l/u,t,i)))return!0}if(this.hasFill())return nD(s,t,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Hn,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,i){t==="shape"?this.setShape(i):r.prototype.attrKV.call(this,t,i)},e.prototype.setShape=function(t,i){var n=this.shape;return n||(n=this.shape={}),typeof t=="string"?n[t]=i:O(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Hn)},e.prototype.createStyle=function(t){return Uo(Ml,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.shape&&!i.shape&&(i.shape=O({},this.shape))},e.prototype._applyStateObj=function(t,i,n,a,o,s){r.prototype._applyStateObj.call(this,t,i,n,a,o,s);var l=!(i&&a),u;if(i&&i.shape?o?a?u=i.shape:(u=O({},n.shape),O(u,i.shape)):(u=O({},a?this.shape:n.shape),O(u,i.shape)):l&&(u=n.shape),u)if(o){this.shape=O({},this.shape);for(var f={},h=at(u),c=0;c<h.length;c++){var v=h[c];typeof u[v]=="object"?this.shape[v]=u[v]:f[v]=u[v]}this._transitionState(t,{shape:f},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(t){for(var i=r.prototype._mergeStates.call(this,t),n,a=0;a<t.length;a++){var o=t[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return oD},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var i=function(a){E(o,a);function o(s){var l=a.call(this,s)||this;return t.init&&t.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return X(t.style)},o.prototype.getDefaultShape=function(){return X(t.shape)},o}(e);for(var n in t)typeof t[n]=="function"&&(i.prototype[n]=t[n]);return i},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=pr|qa|Hn}(),e}(Gr),sD=q({strokeFirst:!0,font:gi,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Ml),ra=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var t=this.style,i=t.stroke;return i!=null&&i!=="none"&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(t){return Uo(sD,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var i=t.text;i!=null?i+="":i="";var n=$o(i,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var a=t.lineWidth;n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a}this._rect=n}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(Gr);ra.prototype.type="tspan";var lD=q({x:0,y:0},un),uD={style:q({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},uu.style)};function fD(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var J1=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Uo(lD,t)},e.prototype._getSize=function(t){var i=this.style,n=i[t];if(n!=null)return n;var a=fD(i.image)?i.image:this.__image;if(!a)return 0;var o=t==="width"?"height":"width",s=i[o];return s==null?a[t]:a[t]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return uD},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new lt(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Gr);J1.prototype.type="image";const he=J1;function hD(r,e){var t=e.x,i=e.y,n=e.width,a=e.height,o=e.r,s,l,u,f;n<0&&(t=t+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>n&&(h=s+l,s*=n/h,l*=n/h),u+f>n&&(h=u+f,u*=n/h,f*=n/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(t+s,i),r.lineTo(t+n-l,i),l!==0&&r.arc(t+n-l,i+l,l,-Math.PI/2,0),r.lineTo(t+n,i+a-u),u!==0&&r.arc(t+n-u,i+a-u,u,0,Math.PI/2),r.lineTo(t+f,i+a),f!==0&&r.arc(t+f,i+a-f,f,Math.PI/2,Math.PI),r.lineTo(t,i+s),s!==0&&r.arc(t+s,i+s,s,Math.PI,Math.PI*1.5)}var $n=Math.round;function Q1(r,e,t){if(e){var i=e.x1,n=e.x2,a=e.y1,o=e.y2;r.x1=i,r.x2=n,r.y1=a,r.y2=o;var s=t&&t.lineWidth;return s&&($n(i*2)===$n(n*2)&&(r.x1=r.x2=rn(i,s,!0)),$n(a*2)===$n(o*2)&&(r.y1=r.y2=rn(a,s,!0))),r}}function tS(r,e,t){if(e){var i=e.x,n=e.y,a=e.width,o=e.height;r.x=i,r.y=n,r.width=a,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=rn(i,s,!0),r.y=rn(n,s,!0),r.width=Math.max(rn(i+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(rn(n+o,s,!1)-r.y,o===0?0:1)),r}}function rn(r,e,t){if(!e)return r;var i=$n(r*2);return(i+$n(e))%2===0?i/2:(i+(t?1:-1))/2}var vD=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),cD={},eS=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new vD},e.prototype.buildPath=function(t,i){var n,a,o,s;if(this.subPixelOptimize){var l=tS(cD,i,this.style);n=l.x,a=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?hD(t,i):t.rect(n,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(gt);eS.prototype.type="rect";const pt=eS;var $d={fill:"#000"},Zd=2,pD={style:q({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},uu.style)},rS=function(r){E(e,r);function e(t){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=$d,i.attr(t),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var i=this._children[t];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):r.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var i=this.innerTransformable;return i?i.getLocalTransform(t):r.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,yD(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].__zr=t},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new lt(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(t.copy(l),t.applyTransform(u),a=a||t.clone(),a.union(t)):(a=a||l.clone(),a.union(l))}this._rect=a||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||$d},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,i){if(!i)return t;var n=i.rich,a=t.rich||n&&{};return O(t,i),n&&a?(this._mergeRich(a,n),t.rich=a):a&&(t.rich=a),t},e.prototype._mergeRich=function(t,i){for(var n=at(i),a=0;a<n.length;a++){var o=n[a];t[o]=t[o]||{},O(t[o],i[o])}},e.prototype.getAnimationStyleProps=function(){return pD},e.prototype._getOrCreateChild=function(t){var i=this._children[this._childCursor];return(!i||!(i instanceof t))&&(i=new t),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},e.prototype._updatePlainTexts=function(){var t=this.style,i=t.font||gi,n=t.padding,a=eg(t),o=BM(a,t),s=Tf(t),l=!!t.backgroundColor,u=o.outerHeight,f=o.outerWidth,h=o.contentWidth,c=o.lines,v=o.lineHeight,p=this._defaultStyle,d=t.x||0,g=t.y||0,y=t.align||p.align||"left",m=t.verticalAlign||p.verticalAlign||"top",_=d,S=Wn(g,o.contentHeight,m);if(s||n){var w=ja(d,f,y),x=Wn(g,u,m);s&&this._renderBackground(t,t,w,x,f,u)}S+=v/2,n&&(_=tg(d,y,n),m==="top"?S+=n[0]:m==="bottom"&&(S-=n[2]));for(var T=0,C=!1,A=Qd("fill"in t?t.fill:(C=!0,p.fill)),M=Jd("stroke"in t?t.stroke:!l&&(!p.autoStroke||C)?(T=Zd,p.stroke):null),D=t.textShadowBlur>0,I=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),P=o.calculatedLineHeight,L=0;L<c.length;L++){var R=this._getOrCreateChild(ra),k=R.createStyle();R.useStyle(k),k.text=c[L],k.x=_,k.y=S,y&&(k.textAlign=y),k.textBaseline="middle",k.opacity=t.opacity,k.strokeFirst=!0,D&&(k.shadowBlur=t.textShadowBlur||0,k.shadowColor=t.textShadowColor||"transparent",k.shadowOffsetX=t.textShadowOffsetX||0,k.shadowOffsetY=t.textShadowOffsetY||0),k.stroke=M,k.fill=A,M&&(k.lineWidth=t.lineWidth||T,k.lineDash=t.lineDash,k.lineDashOffset=t.lineDashOffset||0),k.font=i,Kd(k,t),S+=v,I&&R.setBoundingRect(new lt(ja(k.x,t.width,k.textAlign),Wn(k.y,P,k.textBaseline),h,P))}},e.prototype._updateRichTexts=function(){var t=this.style,i=eg(t),n=VM(i,t),a=n.width,o=n.outerWidth,s=n.outerHeight,l=t.padding,u=t.x||0,f=t.y||0,h=this._defaultStyle,c=t.align||h.align,v=t.verticalAlign||h.verticalAlign,p=ja(u,o,c),d=Wn(f,s,v),g=p,y=d;l&&(g+=l[3],y+=l[0]);var m=g+a;Tf(t)&&this._renderBackground(t,t,p,d,o,s);for(var _=!!t.backgroundColor,S=0;S<n.lines.length;S++){for(var w=n.lines[S],x=w.tokens,T=x.length,C=w.lineHeight,A=w.width,M=0,D=g,I=m,P=T-1,L=void 0;M<T&&(L=x[M],!L.align||L.align==="left");)this._placeToken(L,t,C,y,D,"left",_),A-=L.width,D+=L.width,M++;for(;P>=0&&(L=x[P],L.align==="right");)this._placeToken(L,t,C,y,I,"right",_),A-=L.width,I-=L.width,P--;for(D+=(a-(D-g)-(m-I)-A)/2;M<=P;)L=x[M],this._placeToken(L,t,C,y,D+L.width/2,"center",_),D+=L.width,M++;y+=C}},e.prototype._placeToken=function(t,i,n,a,o,s,l){var u=i.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,h=a+n/2;f==="top"?h=a+t.height/2:f==="bottom"&&(h=a+n-t.height/2);var c=!t.isLineHolder&&Tf(u);c&&this._renderBackground(u,i,s==="right"?o-t.width:s==="center"?o-t.width/2:o,h-t.height/2,t.width,t.height);var v=!!u.backgroundColor,p=t.textPadding;p&&(o=tg(o,s,p),h-=t.height/2-p[0]-t.innerHeight/2);var d=this._getOrCreateChild(ra),g=d.createStyle();d.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=Qd("fill"in u?u.fill:"fill"in i?i.fill:(m=!0,y.fill)),w=Jd("stroke"in u?u.stroke:"stroke"in i?i.stroke:!v&&!l&&(!y.autoStroke||m)?(_=Zd,y.stroke):null),x=u.textShadowBlur>0||i.textShadowBlur>0;g.text=t.text,g.x=o,g.y=h,x&&(g.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,g.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=t.font||gi,g.opacity=Zn(u.opacity,i.opacity,1),Kd(g,u),w&&(g.lineWidth=Zn(u.lineWidth,i.lineWidth,_),g.lineDash=J(u.lineDash,i.lineDash),g.lineDashOffset=i.lineDashOffset||0,g.stroke=w),S&&(g.fill=S);var T=t.contentWidth,C=t.contentHeight;d.setBoundingRect(new lt(ja(g.x,T,g.textAlign),Wn(g.y,C,g.textBaseline),T,C))},e.prototype._renderBackground=function(t,i,n,a,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,h=l&&l.image,c=l&&!h,v=t.borderRadius,p=this,d,g;if(c||t.lineHeight||u&&f){d=this._getOrCreateChild(pt),d.useStyle(d.createStyle()),d.style.fill=null;var y=d.shape;y.x=n,y.y=a,y.width=o,y.height=s,y.r=v,d.dirtyShape()}if(c){var m=d.style;m.fill=l||null,m.fillOpacity=J(t.fillOpacity,1)}else if(h){g=this._getOrCreateChild(he),g.onload=function(){p.dirtyStyle()};var _=g.style;_.image=l.image,_.x=n,_.y=a,_.width=o,_.height=s}if(u&&f){var m=d.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=J(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(d||g).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=Zn(t.opacity,i.opacity,1)},e.makeFont=function(t){var i="";return nS(t)&&(i=[t.fontStyle,t.fontWeight,iS(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),i&&Ve(i)||t.textFont||t.font},e}(Gr),dD={left:!0,right:1,center:1},gD={top:1,bottom:1,middle:1},qd=["fontStyle","fontWeight","fontSize","fontFamily"];function iS(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?rc+"px":r+"px"}function Kd(r,e){for(var t=0;t<qd.length;t++){var i=qd[t],n=e[i];n!=null&&(r[i]=n)}}function nS(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function yD(r){return jd(r),b(r.rich,jd),r}function jd(r){if(r){r.font=rS.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||dD[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||gD[t]?t:"top";var i=r.padding;i&&(r.padding=lc(r.padding))}}function Jd(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function Qd(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function tg(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function eg(r){var e=r.text;return e!=null&&(e+=""),e}function Tf(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}const dt=rS;var it=_t(),mD=function(r,e,t,i){if(i){var n=it(i);n.dataIndex=t,n.dataType=e,n.seriesIndex=r,n.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=it(a);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}},rg=1,ig={},aS=_t(),Cc=_t(),Ac=0,fu=1,hu=2,Ge=["emphasis","blur","select"],Dl=["normal","emphasis","blur","select"],oS=10,_D=9,fn="highlight",al="downplay",fo="select",ol="unselect",ho="toggleSelect";function Pn(r){return r!=null&&r!=="none"}function vu(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function sS(r){vu(r,"emphasis",hu)}function lS(r){r.hoverState===hu&&vu(r,"normal",Ac)}function Mc(r){vu(r,"blur",fu)}function uS(r){r.hoverState===fu&&vu(r,"normal",Ac)}function SD(r){r.selected=!0}function xD(r){r.selected=!1}function ng(r,e,t){e(r,t)}function Ur(r,e,t){ng(r,e,t),r.isGroup&&r.traverse(function(i){ng(i,e,t)})}function av(r,e){switch(e){case"emphasis":r.hoverState=hu;break;case"normal":r.hoverState=Ac;break;case"blur":r.hoverState=fu;break;case"select":r.selected=!0}}function wD(r,e,t,i){for(var n=r.style,a={},o=0;o<e.length;o++){var s=e[o],l=n[s];a[s]=l==null?i&&i[s]:l}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function bD(r,e,t,i){var n=t&&st(t,"select")>=0,a=!1;if(r instanceof gt){var o=aS(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Pn(s)||Pn(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(a=!0,i=O({},i),u=O({},u),u.fill=s):!Pn(u.fill)&&Pn(s)?(a=!0,i=O({},i),u=O({},u),u.fill=bl(s)):!Pn(u.stroke)&&Pn(l)&&(a||(i=O({},i),u=O({},u)),u.stroke=bl(l)),i.style=u}}if(i&&i.z2==null){a||(i=O({},i));var f=r.z2EmphasisLift;i.z2=r.z2+(f!=null?f:oS)}return i}function TD(r,e,t){if(t&&t.z2==null){t=O({},t);var i=r.z2SelectLift;t.z2=r.z2+(i!=null?i:_D)}return t}function CD(r,e,t){var i=st(r.currentStates,e)>=0,n=r.style.opacity,a=i?null:wD(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=O({},t),o=O({opacity:i?n:a.opacity*.1},o),t.style=o),t}function Cf(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return bD(this,r,e,t);if(r==="blur")return CD(this,r,t);if(r==="select")return TD(this,r,t)}return t}function Dc(r){r.stateProxy=Cf;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=Cf),t&&(t.stateProxy=Cf)}function ag(r,e){!cS(r,e)&&!r.__highByOuter&&Ur(r,sS)}function og(r,e){!cS(r,e)&&!r.__highByOuter&&Ur(r,lS)}function ia(r,e){r.__highByOuter|=1<<(e||0),Ur(r,sS)}function na(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&Ur(r,lS)}function AD(r){Ur(r,Mc)}function fS(r){Ur(r,uS)}function hS(r){Ur(r,SD)}function vS(r){Ur(r,xD)}function cS(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function pS(r){var e=r.getModel(),t=[],i=[];e.eachComponent(function(n,a){var o=Cc(a),s=n==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&i.push(l),o.isBlured&&(l.group.traverse(function(u){uS(u)}),s&&t.push(a)),o.isBlured=!1}),b(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(t,!1,e)})}function ov(r,e,t,i){var n=i.getModel();t=t||"coordinateSystem";function a(u,f){for(var h=0;h<f.length;h++){var c=u.getItemGraphicEl(f[h]);c&&fS(c)}}if(r!=null&&!(!e||e==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var f=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var c=h&&s?h===s:f;if(!(t==="series"&&!f||t==="coordinateSystem"&&!c||e==="series"&&f)){var v=i.getViewOfSeriesModel(u);if(v.group.traverse(function(g){g.__highByOuter&&f&&e==="self"||Mc(g)}),Qt(e))a(u.getData(),e);else if(Y(e))for(var p=at(e),d=0;d<p.length;d++)a(u.getData(p[d]),e[p[d]]);l.push(u),Cc(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!=="series"){var h=i.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,n)}})}}function sv(r,e,t){if(!(r==null||e==null)){var i=t.getModel().getComponent(r,e);if(i){Cc(i).isBlured=!0;var n=t.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){Mc(a)})}}}function MD(r,e,t){var i=r.seriesIndex,n=r.getData(e.dataType);if(n){var a=gn(n,e);a=(z(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=it(o);ov(i,u.focus,u.blurScope,t)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&ov(i,f,h,t)}}}function Ic(r,e,t,i){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return n;var a=i.getModel().getComponent(r,e);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(it(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function DD(r,e,t){var i=it(r),n=Ic(i.componentMainType,i.componentIndex,i.componentHighDownName,t),a=n.dispatchers,o=n.focusSelf;a?(o&&sv(i.componentMainType,i.componentIndex,t),b(a,function(s){return ag(s,e)})):(ov(i.seriesIndex,i.focus,i.blurScope,t),i.focus==="self"&&sv(i.componentMainType,i.componentIndex,t),ag(r,e))}function ID(r,e,t){pS(t);var i=it(r),n=Ic(i.componentMainType,i.componentIndex,i.componentHighDownName,t).dispatchers;n?b(n,function(a){return og(a,e)}):og(r,e)}function PD(r,e,t){if(uv(e)){var i=e.dataType,n=r.getData(i),a=gn(n,e);z(a)||(a=[a]),r[e.type===ho?"toggleSelect":e.type===fo?"select":"unselect"](a,i)}}function sg(r){var e=r.getAllData();b(e,function(t){var i=t.data,n=t.type;i.eachItemGraphicEl(function(a,o){r.isSelected(o,n)?hS(a):vS(a)})})}function LD(r){var e=[];return r.eachSeries(function(t){var i=t.getAllData();b(i,function(n){n.data;var a=n.type,o=t.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:t.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function ci(r,e,t){Pc(r,!0),Ur(r,Dc),ED(r,e,t)}function RD(r){Pc(r,!1)}function _i(r,e,t,i){i?RD(r):ci(r,e,t)}function ED(r,e,t){var i=it(r);e!=null?(i.focus=e,i.blurScope=t):i.focus&&(i.focus=null)}var lg=["emphasis","blur","select"],kD={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function aa(r,e,t,i){t=t||"itemStyle";for(var n=0;n<lg.length;n++){var a=lg[n],o=e.getModel([a,t]),s=r.ensureState(a);s.style=o[kD[t]]()}}function Pc(r,e){var t=e===!1,i=r;r.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!t)}function lv(r){return!!(r&&r.__highDownDispatcher)}function OD(r,e,t){var i=it(r);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=t}function BD(r){var e=ig[r];return e==null&&rg<=32&&(e=ig[r]=rg++),e}function uv(r){var e=r.type;return e===fo||e===ol||e===ho}function ug(r){var e=r.type;return e===fn||e===al}function ND(r){var e=aS(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var Ln=mi.CMD,zD=[[],[],[]],fg=Math.sqrt,VD=Math.atan2;function FD(r,e){if(e){var t=r.data,i=r.len(),n,a,o,s,l,u,f=Ln.M,h=Ln.C,c=Ln.L,v=Ln.R,p=Ln.A,d=Ln.Q;for(o=0,s=0;o<i;){switch(n=t[o++],s=o,a=0,n){case f:a=1;break;case c:a=1;break;case h:a=3;break;case d:a=2;break;case p:var g=e[4],y=e[5],m=fg(e[0]*e[0]+e[1]*e[1]),_=fg(e[2]*e[2]+e[3]*e[3]),S=VD(-e[1]/_,e[0]/m);t[o]*=m,t[o++]+=g,t[o]*=_,t[o++]+=y,t[o++]*=m,t[o++]*=_,t[o++]+=S,t[o++]+=S,o+=2,s=o;break;case v:u[0]=t[o++],u[1]=t[o++],Vt(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],Vt(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<a;l++){var w=zD[l];w[0]=t[o++],w[1]=t[o++],Vt(w,w,e),t[s++]=w[0],t[s++]=w[1]}}r.increaseVersion()}}var Af=Math.sqrt,ms=Math.sin,_s=Math.cos,Pa=Math.PI;function hg(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function fv(r,e){return(r[0]*e[0]+r[1]*e[1])/(hg(r)*hg(e))}function vg(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(fv(r,e))}function cg(r,e,t,i,n,a,o,s,l,u,f){var h=l*(Pa/180),c=_s(h)*(r-t)/2+ms(h)*(e-i)/2,v=-1*ms(h)*(r-t)/2+_s(h)*(e-i)/2,p=c*c/(o*o)+v*v/(s*s);p>1&&(o*=Af(p),s*=Af(p));var d=(n===a?-1:1)*Af((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,g=d*o*v/s,y=d*-s*c/o,m=(r+t)/2+_s(h)*g-ms(h)*y,_=(e+i)/2+ms(h)*g+_s(h)*y,S=vg([1,0],[(c-g)/o,(v-y)/s]),w=[(c-g)/o,(v-y)/s],x=[(-1*c-g)/o,(-1*v-y)/s],T=vg(w,x);if(fv(w,x)<=-1&&(T=Pa),fv(w,x)>=1&&(T=0),T<0){var C=Math.round(T/Pa*1e6)/1e6;T=Pa*2+C%2*Pa}f.addData(u,m,_,o,s,S,T,h,a)}var GD=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,HD=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function WD(r){var e=new mi;if(!r)return e;var t=0,i=0,n=t,a=i,o,s=mi.CMD,l=r.match(GD);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],h=f.charAt(0),c=void 0,v=f.match(HD)||[],p=v.length,d=0;d<p;d++)v[d]=parseFloat(v[d]);for(var g=0;g<p;){var y=void 0,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0,T=void 0,C=t,A=i,M=void 0,D=void 0;switch(h){case"l":t+=v[g++],i+=v[g++],c=s.L,e.addData(c,t,i);break;case"L":t=v[g++],i=v[g++],c=s.L,e.addData(c,t,i);break;case"m":t+=v[g++],i+=v[g++],c=s.M,e.addData(c,t,i),n=t,a=i,h="l";break;case"M":t=v[g++],i=v[g++],c=s.M,e.addData(c,t,i),n=t,a=i,h="L";break;case"h":t+=v[g++],c=s.L,e.addData(c,t,i);break;case"H":t=v[g++],c=s.L,e.addData(c,t,i);break;case"v":i+=v[g++],c=s.L,e.addData(c,t,i);break;case"V":i=v[g++],c=s.L,e.addData(c,t,i);break;case"C":c=s.C,e.addData(c,v[g++],v[g++],v[g++],v[g++],v[g++],v[g++]),t=v[g-2],i=v[g-1];break;case"c":c=s.C,e.addData(c,v[g++]+t,v[g++]+i,v[g++]+t,v[g++]+i,v[g++]+t,v[g++]+i),t+=v[g-2],i+=v[g-1];break;case"S":y=t,m=i,M=e.len(),D=e.data,o===s.C&&(y+=t-D[M-4],m+=i-D[M-3]),c=s.C,C=v[g++],A=v[g++],t=v[g++],i=v[g++],e.addData(c,y,m,C,A,t,i);break;case"s":y=t,m=i,M=e.len(),D=e.data,o===s.C&&(y+=t-D[M-4],m+=i-D[M-3]),c=s.C,C=t+v[g++],A=i+v[g++],t+=v[g++],i+=v[g++],e.addData(c,y,m,C,A,t,i);break;case"Q":C=v[g++],A=v[g++],t=v[g++],i=v[g++],c=s.Q,e.addData(c,C,A,t,i);break;case"q":C=v[g++]+t,A=v[g++]+i,t+=v[g++],i+=v[g++],c=s.Q,e.addData(c,C,A,t,i);break;case"T":y=t,m=i,M=e.len(),D=e.data,o===s.Q&&(y+=t-D[M-4],m+=i-D[M-3]),t=v[g++],i=v[g++],c=s.Q,e.addData(c,y,m,t,i);break;case"t":y=t,m=i,M=e.len(),D=e.data,o===s.Q&&(y+=t-D[M-4],m+=i-D[M-3]),t+=v[g++],i+=v[g++],c=s.Q,e.addData(c,y,m,t,i);break;case"A":_=v[g++],S=v[g++],w=v[g++],x=v[g++],T=v[g++],C=t,A=i,t=v[g++],i=v[g++],c=s.A,cg(C,A,t,i,x,T,_,S,w,c,e);break;case"a":_=v[g++],S=v[g++],w=v[g++],x=v[g++],T=v[g++],C=t,A=i,t+=v[g++],i+=v[g++],c=s.A,cg(C,A,t,i,x,T,_,S,w,c,e);break}}(h==="z"||h==="Z")&&(c=s.Z,e.addData(c),t=n,i=a),o=c}return e.toStatic(),e}var dS=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e}(gt);function gS(r){return r.setData!=null}function yS(r,e){var t=WD(r),i=O({},e);return i.buildPath=function(n){if(gS(n)){n.setData(t.data);var a=n.getContext();a&&n.rebuildPath(a,1)}else{var a=n;t.rebuildPath(a,1)}},i.applyTransform=function(n){FD(t,n),this.dirtyShape()},i}function mS(r,e){return new dS(yS(r,e))}function UD(r,e){var t=yS(r,e),i=function(n){E(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return a}(dS);return i}function YD(r,e){for(var t=[],i=r.length,n=0;n<i;n++){var a=r[n];t.push(a.getUpdatedPathProxy(!0))}var o=new gt(e);return o.createPathProxy(),o.buildPath=function(s){if(gS(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var XD=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),_S=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new XD},e.prototype.buildPath=function(t,i){t.moveTo(i.cx+i.r,i.cy),t.arc(i.cx,i.cy,i.r,0,Math.PI*2)},e}(gt);_S.prototype.type="circle";const Yr=_S;var $D=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),SS=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new $D},e.prototype.buildPath=function(t,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,l=i.ry,u=s*n,f=l*n;t.moveTo(a-s,o),t.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),t.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),t.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),t.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),t.closePath()},e}(gt);SS.prototype.type="ellipse";const cu=SS;var xS=Math.PI,Mf=xS*2,zi=Math.sin,Rn=Math.cos,ZD=Math.acos,Zt=Math.atan2,pg=Math.abs,vo=Math.sqrt,Ja=Math.max,fr=Math.min,qe=1e-4;function qD(r,e,t,i,n,a,o,s){var l=t-r,u=i-e,f=o-n,h=s-a,c=h*l-f*u;if(!(c*c<qe))return c=(f*(e-a)-h*(r-n))/c,[r+c*l,e+c*u]}function Ss(r,e,t,i,n,a,o){var s=r-t,l=e-i,u=(o?a:-a)/vo(s*s+l*l),f=u*l,h=-u*s,c=r+f,v=e+h,p=t+f,d=i+h,g=(c+p)/2,y=(v+d)/2,m=p-c,_=d-v,S=m*m+_*_,w=n-a,x=c*d-p*v,T=(_<0?-1:1)*vo(Ja(0,w*w*S-x*x)),C=(x*_-m*T)/S,A=(-x*m-_*T)/S,M=(x*_+m*T)/S,D=(-x*m+_*T)/S,I=C-g,P=A-y,L=M-g,R=D-y;return I*I+P*P>L*L+R*R&&(C=M,A=D),{cx:C,cy:A,x0:-f,y0:-h,x1:C*(n/w-1),y1:A*(n/w-1)}}function KD(r){var e;if(z(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function jD(r,e){var t,i=Ja(e.r,0),n=Ja(e.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,h=e.cy,c=!!e.clockwise,v=pg(u-l),p=v>Mf&&v%Mf;if(p>qe&&(v=p),!(i>qe))r.moveTo(f,h);else if(v>Mf-qe)r.moveTo(f+i*Rn(l),h+i*zi(l)),r.arc(f,h,i,l,u,!c),n>qe&&(r.moveTo(f+n*Rn(u),h+n*zi(u)),r.arc(f,h,n,u,l,c));else{var d=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0,T=void 0,C=void 0,A=void 0,M=void 0,D=void 0,I=void 0,P=void 0,L=void 0,R=i*Rn(l),k=i*zi(l),G=n*Rn(u),B=n*zi(u),N=v>qe;if(N){var H=e.cornerRadius;H&&(t=KD(H),d=t[0],g=t[1],y=t[2],m=t[3]);var Z=pg(i-n)/2;if(_=fr(Z,y),S=fr(Z,m),w=fr(Z,d),x=fr(Z,g),A=T=Ja(_,S),M=C=Ja(w,x),(T>qe||C>qe)&&(D=i*Rn(u),I=i*zi(u),P=n*Rn(l),L=n*zi(l),v<xS)){var $=qD(R,k,P,L,D,I,G,B);if($){var ot=R-$[0],ct=k-$[1],Rt=D-$[0],St=I-$[1],$t=1/zi(ZD((ot*Rt+ct*St)/(vo(ot*ot+ct*ct)*vo(Rt*Rt+St*St)))/2),Nt=vo($[0]*$[0]+$[1]*$[1]);A=fr(T,(i-Nt)/($t+1)),M=fr(C,(n-Nt)/($t-1))}}}if(!N)r.moveTo(f+R,h+k);else if(A>qe){var Mt=fr(y,A),wt=fr(m,A),j=Ss(P,L,R,k,i,Mt,c),ut=Ss(D,I,G,B,i,wt,c);r.moveTo(f+j.cx+j.x0,h+j.cy+j.y0),A<T&&Mt===wt?r.arc(f+j.cx,h+j.cy,A,Zt(j.y0,j.x0),Zt(ut.y0,ut.x0),!c):(Mt>0&&r.arc(f+j.cx,h+j.cy,Mt,Zt(j.y0,j.x0),Zt(j.y1,j.x1),!c),r.arc(f,h,i,Zt(j.cy+j.y1,j.cx+j.x1),Zt(ut.cy+ut.y1,ut.cx+ut.x1),!c),wt>0&&r.arc(f+ut.cx,h+ut.cy,wt,Zt(ut.y1,ut.x1),Zt(ut.y0,ut.x0),!c))}else r.moveTo(f+R,h+k),r.arc(f,h,i,l,u,!c);if(!(n>qe)||!N)r.lineTo(f+G,h+B);else if(M>qe){var Mt=fr(d,M),wt=fr(g,M),j=Ss(G,B,D,I,n,-wt,c),ut=Ss(R,k,P,L,n,-Mt,c);r.lineTo(f+j.cx+j.x0,h+j.cy+j.y0),M<C&&Mt===wt?r.arc(f+j.cx,h+j.cy,M,Zt(j.y0,j.x0),Zt(ut.y0,ut.x0),!c):(wt>0&&r.arc(f+j.cx,h+j.cy,wt,Zt(j.y0,j.x0),Zt(j.y1,j.x1),!c),r.arc(f,h,n,Zt(j.cy+j.y1,j.cx+j.x1),Zt(ut.cy+ut.y1,ut.cx+ut.x1),c),Mt>0&&r.arc(f+ut.cx,h+ut.cy,Mt,Zt(ut.y1,ut.x1),Zt(ut.y0,ut.x0),!c))}else r.lineTo(f+G,h+B),r.arc(f,h,n,u,l,c)}r.closePath()}}}var JD=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),wS=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new JD},e.prototype.buildPath=function(t,i){jD(t,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(gt);wS.prototype.type="sector";const br=wS;var QD=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),bS=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new QD},e.prototype.buildPath=function(t,i){var n=i.cx,a=i.cy,o=Math.PI*2;t.moveTo(n+i.r,a),t.arc(n,a,i.r,0,o,!1),t.moveTo(n+i.r0,a),t.arc(n,a,i.r0,0,o,!0)},e}(gt);bS.prototype.type="ring";const qo=bS;function t2(r,e,t,i){var n=[],a=[],o=[],s=[],l,u,f,h;if(i){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=r.length;c<v;c++)Er(f,f,r[c]),kr(h,h,r[c]);Er(f,f,i[0]),kr(h,h,i[1])}for(var c=0,v=r.length;c<v;c++){var p=r[c];if(t)l=r[c?c-1:v-1],u=r[(c+1)%v];else if(c===0||c===v-1){n.push(r1(r[c]));continue}else l=r[c-1],u=r[c+1];i1(a,u,l),js(a,a,e);var d=yl(p,l),g=yl(p,u),y=d+g;y!==0&&(d/=y,g/=y),js(o,a,-d),js(s,a,g);var m=Oh([],p,o),_=Oh([],p,s);i&&(kr(m,m,f),Er(m,m,h),kr(_,_,f),Er(_,_,h)),n.push(m),n.push(_)}return t&&n.push(n.shift()),n}function TS(r,e,t){var i=e.smooth,n=e.points;if(n&&n.length>=2){if(i){var a=t2(n,i,t,e.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(t?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,h=n.length;s<h;s++)r.lineTo(n[s][0],n[s][1])}t&&r.closePath()}}var e2=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),CS=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new e2},e.prototype.buildPath=function(t,i){TS(t,i,!0)},e}(gt);CS.prototype.type="polygon";const Tr=CS;var r2=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),AS=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new r2},e.prototype.buildPath=function(t,i){TS(t,i,!1)},e}(gt);AS.prototype.type="polyline";const He=AS;var i2={},n2=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),MS=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new n2},e.prototype.buildPath=function(t,i){var n,a,o,s;if(this.subPixelOptimize){var l=Q1(i2,i,this.style);n=l.x1,a=l.y1,o=l.x2,s=l.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var u=i.percent;u!==0&&(t.moveTo(n,a),u<1&&(o=n*(1-u)+o*u,s=a*(1-u)+s*u),t.lineTo(o,s))},e.prototype.pointAt=function(t){var i=this.shape;return[i.x1*(1-t)+i.x2*t,i.y1*(1-t)+i.y2*t]},e}(gt);MS.prototype.type="line";const ae=MS;var pe=[],a2=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r}();function dg(r,e,t){var i=r.cpx2,n=r.cpy2;return i!=null||n!=null?[(t?Sd:Wt)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?Sd:Wt)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?xd:ge)(r.x1,r.cpx1,r.x2,e),(t?xd:ge)(r.y1,r.cpy1,r.y2,e)]}var DS=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new a2},e.prototype.buildPath=function(t,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,f=i.cpx2,h=i.cpy2,c=i.percent;c!==0&&(t.moveTo(n,a),f==null||h==null?(c<1&&(wl(n,l,o,c,pe),l=pe[1],o=pe[2],wl(a,u,s,c,pe),u=pe[1],s=pe[2]),t.quadraticCurveTo(l,u,o,s)):(c<1&&(xl(n,l,f,o,c,pe),l=pe[1],f=pe[2],o=pe[3],xl(a,u,h,s,c,pe),u=pe[1],h=pe[2],s=pe[3]),t.bezierCurveTo(l,u,f,h,o,s)))},e.prototype.pointAt=function(t){return dg(this.shape,t,!1)},e.prototype.tangentAt=function(t){var i=dg(this.shape,t,!0);return n1(i,i)},e}(gt);DS.prototype.type="bezier-curve";const Lc=DS;var o2=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),IS=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new o2},e.prototype.buildPath=function(t,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,f=Math.cos(s),h=Math.sin(s);t.moveTo(f*o+n,h*o+a),t.arc(n,a,o,s,l,!u)},e}(gt);IS.prototype.type="arc";const pu=IS;var s2=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="compound",t}return e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,i=this.shapeChanged(),n=0;n<t.length;n++)i=i||t[n].shapeChanged();i&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(i[0],i[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(t,n[a].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],i=0;i<t.length;i++)t[i].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),gt.prototype.getBoundingRect.call(this)},e}(gt);const du=s2;var PS=function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r}(),l2=function(r){E(e,r);function e(t,i,n,a,o,s){var l=r.call(this,o)||this;return l.x=t==null?0:t,l.y=i==null?0:i,l.x2=n==null?1:n,l.y2=a==null?0:a,l.type="linear",l.global=s||!1,l}return e}(PS);const Ko=l2;var u2=function(r){E(e,r);function e(t,i,n,a,o){var s=r.call(this,a)||this;return s.x=t==null?.5:t,s.y=i==null?.5:i,s.r=n==null?.5:n,s.type="radial",s.global=o||!1,s}return e}(PS);const Rc=u2;var Vi=[0,0],Fi=[0,0],xs=new rt,ws=new rt,f2=function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new rt;for(var i=0;i<2;i++)this._axes[i]=new rt;e&&this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var i=this._corners,n=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,l),i[3].set(a,l),t)for(var u=0;u<4;u++)i[u].transform(t);rt.sub(n[0],i[1],i[0]),rt.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(i[0])},r.prototype.intersect=function(e,t){var i=!0,n=!t;return xs.set(1/0,1/0),ws.set(0,0),!this._intersectCheckOneSide(this,e,xs,ws,n,1)&&(i=!1,n)||!this._intersectCheckOneSide(e,this,xs,ws,n,-1)&&(i=!1,n)||n||rt.copy(t,i?xs:ws),i},r.prototype._intersectCheckOneSide=function(e,t,i,n,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,Vi),this._getProjMinMaxOnAxis(l,t._corners,Fi),Vi[1]<Fi[0]||Vi[0]>Fi[1]){if(s=!1,a)return s;var f=Math.abs(Fi[0]-Vi[1]),h=Math.abs(Vi[0]-Fi[1]);Math.min(f,h)>n.len()&&(f<h?rt.scale(n,u,-f*o):rt.scale(n,u,h*o))}else if(i){var f=Math.abs(Fi[0]-Vi[1]),h=Math.abs(Vi[0]-Fi[1]);Math.min(f,h)<i.len()&&(f<h?rt.scale(i,u,f*o):rt.scale(i,u,-h*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(e,t,i){for(var n=this._axes[e],a=this._origin,o=t[0].dot(n)+a[e],s=o,l=o,u=1;u<t.length;u++){var f=t[u].dot(n)+a[e];s=Math.min(f,s),l=Math.max(f,l)}i[0]=s,i[1]=l},r}();const Il=f2;var h2=[],v2=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,i){t.call(i,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,i){i?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,i){i=i||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],i)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var i=this._cursor;i<this._displayables.length;i++)t&&t(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)t&&t(this._temporaryDisplayables[i])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var i=this._displayables[t];i.parent=this,i.update(),i.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var i=this._temporaryDisplayables[t];i.parent=this,i.update(),i.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new lt(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(h2)),t.union(a)}this._rect=t}return this._rect},e.prototype.contain=function(t,i){var n=this.transformCoordToLocal(t,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(t,i))return!0}return!1},e}(Gr);const LS=v2;var c2=_t();function Ec(r,e,t,i,n){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,h=void 0;i?(u=J(i.duration,200),f=J(i.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),K(h)&&(h=h(t,n)),K(u)&&(u=u(t));var c={duration:u||0,delay:h,easing:f};return c}else return null}function kc(r,e,t,i,n,a,o){var s=!1,l;K(n)?(o=a,a=n,n=null):Y(n)&&(a=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var f=Ec(r,i,n,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,n):null);if(f&&f.duration>0){var h=f.duration,c=f.delay,v=f.easing,p={duration:h,delay:c||0,easing:v,done:a,force:!!a||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),a&&a()}function Lt(r,e,t,i,n,a){kc("update",r,e,t,i,n,a)}function se(r,e,t,i,n,a){kc("enter",r,e,t,i,n,a)}function co(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="leave")return!0}return!1}function Ao(r,e,t,i,n,a){co(r)||kc("leave",r,e,t,i,n,a)}function gg(r,e,t,i){r.removeTextContent(),r.removeTextGuideLine(),Ao(r,{style:{opacity:0}},e,t,i)}function Pl(r,e,t){function i(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||gg(n,e,t,i)}):gg(r,e,t,i)}function Mo(r){c2(r).oldStyle=r.style}var Ll=Math.max,Rl=Math.min,hv={};function RS(r){return gt.extend(r)}var p2=UD;function ES(r,e){return p2(r,e)}function We(r,e){hv[r]=e}function Oc(r){if(hv.hasOwnProperty(r))return hv[r]}function gu(r,e,t,i){var n=mS(r,e);return t&&(i==="center"&&(t=kS(t,n.getBoundingRect())),Nc(n,t)),n}function Bc(r,e,t){var i=new he({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(n){if(t==="center"){var a={width:n.width,height:n.height};i.setStyle(kS(e,a))}}});return i}function kS(r,e){var t=e.width/e.height,i=r.height*t,n;i<=r.width?n=r.height:(i=r.width,n=i/t);var a=r.x+r.width/2,o=r.y+r.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var Ne=YD;function Nc(r,e){if(r.applyTransform){var t=r.getBoundingRect(),i=t.calculateTransform(e);r.applyTransform(i)}}function Do(r,e){return Q1(r,r,{lineWidth:e}),r}function d2(r){return tS(r.shape,r.shape,r.style),r}var g2=rn;function pi(r,e){for(var t=Yo([]);r&&r!==e;)Sr(t,r.getLocalTransform(),t),r=r.parent;return t}function er(r,e,t){return e&&!Qt(e)&&(e=tn.getLocalTransform(e)),t&&(e=va([],e)),Vt([],r,e)}function yu(r,e,t){var i=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),a=[r==="left"?-i:r==="right"?i:0,r==="top"?-n:r==="bottom"?n:0];return a=er(a,e,t),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function yg(r){return!r.isGroup}function y2(r){return r.shape!=null}function mu(r,e,t){if(!r||!e)return;function i(o){var s={};return o.traverse(function(l){yg(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return y2(o)&&(s.shape=O({},o.shape)),s}var a=i(r);e.traverse(function(o){if(yg(o)&&o.anid){var s=a[o.anid];if(s){var l=n(o);o.attr(n(s)),Lt(o,l,t,it(o).dataIndex)}}})}function zc(r,e){return V(r,function(t){var i=t[0];i=Ll(i,e.x),i=Rl(i,e.x+e.width);var n=t[1];return n=Ll(n,e.y),n=Rl(n,e.y+e.height),[i,n]})}function OS(r,e){var t=Ll(r.x,e.x),i=Rl(r.x+r.width,e.x+e.width),n=Ll(r.y,e.y),a=Rl(r.y+r.height,e.y+e.height);if(i>=t&&a>=n)return{x:t,y:n,width:i-t,height:a-n}}function pa(r,e,t){var i=O({rectHover:!0},e),n=i.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),q(n,t),new he(i)):gu(r.replace("path://",""),i,t,"center")}function m2(r,e,t,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(BS(r,e,t,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function BS(r,e,t,i,n,a,o,s){var l=t-r,u=i-e,f=o-n,h=s-a,c=Df(f,h,l,u);if(_2(c))return!1;var v=r-n,p=e-a,d=Df(v,p,l,u)/c;if(d<0||d>1)return!1;var g=Df(v,p,f,h)/c;return!(g<0||g>1)}function Df(r,e,t,i){return r*i-t*e}function _2(r){return r<=1e-6&&r>=-1e-6}function da(r){var e=r.itemTooltipOption,t=r.componentModel,i=r.itemName,n=F(e)?{formatter:e}:e,a=t.mainType,o=t.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&b(at(l),function(f){tt(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=it(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:q({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function mg(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function _u(r,e){if(r)if(z(r))for(var t=0;t<r.length;t++)mg(r[t],e);else mg(r,e)}We("circle",Yr);We("ellipse",cu);We("sector",br);We("ring",qo);We("polygon",Tr);We("polyline",He);We("rect",pt);We("line",ae);We("bezierCurve",Lc);We("arc",pu);const ga=Object.freeze(Object.defineProperty({__proto__:null,Arc:pu,BezierCurve:Lc,BoundingRect:lt,Circle:Yr,CompoundPath:du,Ellipse:cu,Group:nt,Image:he,IncrementalDisplayable:LS,Line:ae,LinearGradient:Ko,OrientedBoundingRect:Il,Path:gt,Point:rt,Polygon:Tr,Polyline:He,RadialGradient:Rc,Rect:pt,Ring:qo,Sector:br,Text:dt,applyTransform:er,clipPointsByRect:zc,clipRectByRect:OS,createIcon:pa,extendPath:ES,extendShape:RS,getShapeClass:Oc,getTransform:pi,groupTransition:mu,initProps:se,isElementRemoved:co,lineLineIntersect:BS,linePolygonIntersect:m2,makeImage:Bc,makePath:gu,mergePath:Ne,registerShape:We,removeElement:Ao,removeElementWithFadeOut:Pl,resizePath:Nc,setTooltipConfig:da,subPixelOptimize:g2,subPixelOptimizeLine:Do,subPixelOptimizeRect:d2,transformDirection:yu,traverseElements:_u,updateProps:Lt},Symbol.toStringTag,{value:"Module"}));var Su={};function S2(r,e){for(var t=0;t<Ge.length;t++){var i=Ge[t],n=e[i],a=r.ensureState(i);a.style=a.style||{},a.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function _g(r,e,t){var i=r.labelFetcher,n=r.labelDataIndex,a=r.labelDimIndex,o=e.normal,s;i&&(s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=K(r.defaultText)?r.defaultText(n,r,t):r.defaultText);for(var l={normal:s},u=0;u<Ge.length;u++){var f=Ge[u],h=e[f];l[f]=J(i?i.getFormattedLabel(n,f,null,a,h&&h.get("formatter")):null,s)}return l}function Xr(r,e,t,i){t=t||Su;for(var n=r instanceof dt,a=!1,o=0;o<Dl.length;o++){var s=e[Dl[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=n?r:r.getTextContent();if(a){n||(l||(l=new dt,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=_g(t,e),f=e.normal,h=!!f.getShallow("show"),c=kt(f,i&&i.normal,t,!1,!n);c.text=u.normal,n||r.setTextConfig(Sg(f,t,!1));for(var o=0;o<Ge.length;o++){var v=Ge[o],s=e[v];if(s){var p=l.ensureState(v),d=!!J(s.getShallow("show"),h);if(d!==h&&(p.ignore=!d),p.style=kt(s,i&&i[v],t,!0,!n),p.style.text=u[v],!n){var g=r.ensureState(v);g.textConfig=Sg(s,t,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(c.x=l.style.x),l.style.y!=null&&(c.y=l.style.y),l.ignore=!h,l.useStyle(c),l.dirty(),t.enableTextSetter&&(xu(l).setLabelText=function(y){var m=_g(t,e,y);S2(l,m)})}else l&&(l.ignore=!0);r.dirty()}function $r(r,e){e=e||"label";for(var t={normal:r.getModel(e)},i=0;i<Ge.length;i++){var n=Ge[i];t[n]=r.getModel([n,e])}return t}function kt(r,e,t,i,n){var a={};return x2(a,r,t,i,n),e&&O(a,e),a}function Sg(r,e,t){e=e||{};var i={},n,a=r.getShallow("rotate"),o=J(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(t?null:"inside"),n==="outside"&&(n=e.defaultOutsidePosition||"top"),n!=null&&(i.position=n),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=r.get("color")==="inherit"?e.inheritColor||null:"auto",i}function x2(r,e,t,i,n){t=t||Su;var a=e.ecModel,o=a&&a.option.textStyle,s=w2(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=e.getModel(["rich",u]);Tg(l[u]={},f,o,t,i,n,!1,!0)}}l&&(r.rich=l);var h=e.get("overflow");h&&(r.overflow=h);var c=e.get("minMargin");c!=null&&(r.margin=c),Tg(r,e,o,t,i,n,!0,!1)}function w2(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||Su).rich;if(t){e=e||{};for(var i=at(t),n=0;n<i.length;n++){var a=i[n];e[a]=1}}r=r.parentModel}return e}var xg=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],wg=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],bg=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Tg(r,e,t,i,n,a,o,s){t=!n&&t||Su;var l=i&&i.inheritColor,u=e.getShallow("color"),f=e.getShallow("textBorderColor"),h=J(e.getShallow("opacity"),t.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),a||(u=u||t.color,f=f||t.textBorderColor),u!=null&&(r.fill=u),f!=null&&(r.stroke=f);var c=J(e.getShallow("textBorderWidth"),t.textBorderWidth);c!=null&&(r.lineWidth=c);var v=J(e.getShallow("textBorderType"),t.textBorderType);v!=null&&(r.lineDash=v);var p=J(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);p!=null&&(r.lineDashOffset=p),!n&&h==null&&!s&&(h=i&&i.defaultOpacity),h!=null&&(r.opacity=h),!n&&!a&&r.fill==null&&i.inheritColor&&(r.fill=i.inheritColor);for(var d=0;d<xg.length;d++){var g=xg[d],y=J(e.getShallow(g),t[g]);y!=null&&(r[g]=y)}for(var d=0;d<wg.length;d++){var g=wg[d],y=e.getShallow(g);y!=null&&(r[g]=y)}if(r.verticalAlign==null){var m=e.getShallow("baseline");m!=null&&(r.verticalAlign=m)}if(!o||!i.disableBox){for(var d=0;d<bg.length;d++){var g=bg[d],y=e.getShallow(g);y!=null&&(r[g]=y)}var _=e.getShallow("borderType");_!=null&&(r.borderDash=_),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor=l)}}function NS(r,e){var t=e&&e.getModel("textStyle");return Ve([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var xu=_t();function b2(r,e,t,i){if(r){var n=xu(r);n.prevValue=n.value,n.value=t;var a=e.normal;n.valueAnimation=a.get("valueAnimation"),n.valueAnimation&&(n.precision=a.get("precision"),n.defaultInterpolatedText=i,n.statesModels=e)}}var T2=["textStyle","color"],If=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Pf=new dt,C2=function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(T2):null)},r.prototype.getFont=function(){return NS({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<If.length;i++)t[If[i]]=this.getShallow(If[i]);return Pf.useStyle(t),Pf.update(),Pf.getBoundingRect()},r}(),zS=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],A2=ea(zS),M2=function(){function r(){}return r.prototype.getLineStyle=function(e){return A2(this,e)},r}(),VS=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],D2=ea(VS),I2=function(){function r(){}return r.prototype.getItemStyle=function(e,t){return D2(this,e,t)},r}(),xn=function(){function r(e,t,i){this.parentModel=t,this.ecModel=i,this.option=e}return r.prototype.init=function(e,t,i){},r.prototype.mergeOption=function(e,t){et(this.option,e,!0)},r.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var i=this.option,n=i==null?i:i[e];if(n==null&&!t){var a=this.parentModel;a&&(n=a.getShallow(e))}return n},r.prototype.getModel=function(e,t){var i=e!=null,n=i?this.parsePath(e):null,a=i?this._doGet(n):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(a,t,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var e=this.constructor;return new e(X(this.option))},r.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!ht.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var i=this.option;if(!e)return i;for(var n=0;n<e.length&&!(e[n]&&(i=i&&typeof i=="object"?i[e[n]]:null,i==null));n++);return i==null&&t&&(i=t._doGet(this.resolveParentPath(e),t.parentModel)),i},r}();bc(xn);DM(xn);Xt(xn,M2);Xt(xn,I2);Xt(xn,EM);Xt(xn,C2);const Tt=xn;var P2=Math.round(Math.random()*10);function ya(r){return[r||"",P2++].join("_")}function L2(r){var e={};r.registerSubTypeDefaulter=function(t,i){var n=_r(t);e[n.main]=i},r.determineSubType=function(t,i){var n=i.type;if(!n){var a=_r(t).main;r.hasSubTypes(t)&&e[a]&&(n=e[a](i))}return n}}function R2(r,e){r.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=t(o),f=u.graph,h=u.noEntryList,c={};for(b(a,function(m){c[m]=!0});h.length;){var v=h.pop(),p=f[v],d=!!c[v];d&&(s.call(l,v,p.originalDeps.slice()),delete c[v]),b(p.successor,d?y:g)}b(c,function(){var m="";throw new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&h.push(m)}function y(m){c[m]=!0,g(m)}};function t(a){var o={},s=[];return b(a,function(l){var u=i(o,l),f=u.originalDeps=e(l),h=n(f,a);u.entryCount=h.length,u.entryCount===0&&s.push(l),b(h,function(c){st(u.predecessor,c)<0&&u.predecessor.push(c);var v=i(o,c);st(v.successor,c)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function n(a,o){var s=[];return b(a,function(l){st(o,l)>=0&&s.push(l)}),s}}function bi(r,e){return et(et({},r,!0),e,!0)}const E2={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},k2={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var El="ZH",Vc="EN",jn=Vc,sl={},Fc={},FS=ht.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||jn).toUpperCase();return r.indexOf(El)>-1?El:jn}():jn;function Gc(r,e){r=r.toUpperCase(),Fc[r]=new Tt(e),sl[r]=e}function O2(r){if(F(r)){var e=sl[r.toUpperCase()]||{};return r===El||r===Vc?X(e):et(X(e),X(sl[jn]),!1)}else return et(X(r),X(sl[jn]),!1)}function vv(r){return Fc[r]}function B2(){return Fc[jn]}Gc(Vc,E2);Gc(El,k2);var Hc=1e3,Wc=Hc*60,po=Wc*60,ze=po*24,Cg=ze*365,Qa={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}"},bs="{yyyy}-{MM}-{dd}",Ag={year:"{yyyy}",month:"{yyyy}-{MM}",day:bs,hour:bs+" "+Qa.hour,minute:bs+" "+Qa.minute,second:bs+" "+Qa.second,millisecond:Qa.none},Lf=["year","month","day","hour","minute","second","millisecond"],GS=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function re(r,e){return r+="","0000".substr(0,e-r.length)+r}function Jn(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function N2(r){return r===Jn(r)}function z2(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function jo(r,e,t,i){var n=Ce(r),a=n[Uc(t)](),o=n[Qn(t)]()+1,s=Math.floor((o-1)/3)+1,l=n[wu(t)](),u=n["get"+(t?"UTC":"")+"Day"](),f=n[Io(t)](),h=(f-1)%12+1,c=n[bu(t)](),v=n[Tu(t)](),p=n[Cu(t)](),d=f>=12?"pm":"am",g=d.toUpperCase(),y=i instanceof Tt?i:vv(i||FS)||B2(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),w=m.get("dayOfWeek"),x=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,d+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,re(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,re(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,re(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,re(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,re(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,re(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,re(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,re(p,3)).replace(/{S}/g,p+"")}function V2(r,e,t,i,n){var a=null;if(F(t))a=t;else if(K(t))a=t(r.value,e,{level:r.level});else{var o=O({},Qa);if(r.level>0)for(var s=0;s<Lf.length;++s)o[Lf[s]]="{primary|"+o[Lf[s]]+"}";var l=t?t.inherit===!1?t:q(t,o):o,u=HS(r.value,n);if(l[u])a=l[u];else if(l.inherit){for(var f=GS.indexOf(u),s=f-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(z(a)){var h=r.level==null?0:r.level>=0?r.level:a.length+r.level;h=Math.min(h,a.length-1),a=a[h]}}return jo(new Date(r.value),a,n,i)}function HS(r,e){var t=Ce(r),i=t[Qn(e)]()+1,n=t[wu(e)](),a=t[Io(e)](),o=t[bu(e)](),s=t[Tu(e)](),l=t[Cu(e)](),u=l===0,f=u&&s===0,h=f&&o===0,c=h&&a===0,v=c&&n===1,p=v&&i===1;return p?"year":v?"month":c?"day":h?"hour":f?"minute":u?"second":"millisecond"}function Mg(r,e,t){var i=mt(r)?Ce(r):r;switch(e=e||HS(r,t),e){case"year":return i[Uc(t)]();case"half-year":return i[Qn(t)]()>=6?1:0;case"quarter":return Math.floor((i[Qn(t)]()+1)/4);case"month":return i[Qn(t)]();case"day":return i[wu(t)]();case"half-day":return i[Io(t)]()/24;case"hour":return i[Io(t)]();case"minute":return i[bu(t)]();case"second":return i[Tu(t)]();case"millisecond":return i[Cu(t)]()}}function Uc(r){return r?"getUTCFullYear":"getFullYear"}function Qn(r){return r?"getUTCMonth":"getMonth"}function wu(r){return r?"getUTCDate":"getDate"}function Io(r){return r?"getUTCHours":"getHours"}function bu(r){return r?"getUTCMinutes":"getMinutes"}function Tu(r){return r?"getUTCSeconds":"getSeconds"}function Cu(r){return r?"getUTCMilliseconds":"getMilliseconds"}function F2(r){return r?"setUTCFullYear":"setFullYear"}function WS(r){return r?"setUTCMonth":"setMonth"}function US(r){return r?"setUTCDate":"setDate"}function YS(r){return r?"setUTCHours":"setHours"}function XS(r){return r?"setUTCMinutes":"setMinutes"}function $S(r){return r?"setUTCSeconds":"setSeconds"}function ZS(r){return r?"setUTCMilliseconds":"setMilliseconds"}function G2(r,e,t,i,n,a,o,s){var l=new dt({style:{text:r,font:e,align:t,verticalAlign:i,padding:n,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function Yc(r){if(!Sc(r))return F(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Xc(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,i){return i.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var ma=lc;function cv(r,e,t){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Ve(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?Ce(r):r;if(isNaN(+l)){if(s)return"-"}else return jo(l,i,t)}if(e==="ordinal")return dl(r)?n(r):mt(r)&&a(r)?r+"":"-";var u=To(r);return a(u)?Yc(u):dl(r)?n(r):typeof r=="boolean"?r+"":"-"}var Dg=["a","b","c","d","e","f","g"],Rf=function(r,e){return"{"+r+(e==null?"":e)+"}"};function $c(r,e,t){z(e)||(e=[e]);var i=e.length;if(!i)return"";for(var n=e[0].$vars||[],a=0;a<n.length;a++){var o=Dg[a];r=r.replace(Rf(o),Rf(o,0))}for(var s=0;s<i;s++)for(var l=0;l<n.length;l++){var u=e[s][n[l]];r=r.replace(Rf(Dg[l],s),t?ne(u):u)}return r}function H2(r,e,t){return b(e,function(i,n){r=r.replace("{"+n+"}",i)}),r}function qS(r,e){var t=F(r)?{color:r,extraCssText:e}:r||{},i=t.color,n=t.type;e=t.extraCssText;var a=t.renderMode||"html";if(!i)return"";if(a==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+ne(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ne(i)+";"+(e||"")+'"></span>';var o=t.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function W2(r,e,t){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd
- yyyy`);var i=Ce(e),n=t?"getUTC":"get",a=i[n+"FullYear"](),o=i[n+"Month"]()+1,s=i[n+"Date"](),l=i[n+"Hours"](),u=i[n+"Minutes"](),f=i[n+"Seconds"](),h=i[n+"Milliseconds"]();return r=r.replace("MM",re(o,2)).replace("M",o).replace("yyyy",a).replace("yy",re(a%100+"",2)).replace("dd",re(s,2)).replace("d",s).replace("hh",re(l,2)).replace("h",l).replace("mm",re(u,2)).replace("m",u).replace("ss",re(f,2)).replace("s",f).replace("SSS",re(h,3)),r}function U2(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function yn(r,e){return e=e||"transparent",F(r)?r:Y(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function Ig(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var ll=b,KS=["left","right","top","bottom","width","height"],nn=[["width","left","right"],["height","top","bottom"]];function Zc(r,e,t,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),h=e.childAt(u+1),c=h&&h.getBoundingRect(),v,p;if(r==="horizontal"){var d=f.width+(c?-c.x+f.x:0);v=a+d,v>i||l.newline?(a=0,v=d,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(c?-c.y+f.y:0);p=o+g,p>n||l.newline?(a+=s+t,o=0,p=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=v+t:o=p+t)})}var hn=Zc;vt(Zc,"vertical");vt(Zc,"horizontal");function fe(r,e,t){t=ma(t||0);var i=e.width,n=e.height,a=Q(r.left,i),o=Q(r.top,n),s=Q(r.right,i),l=Q(r.bottom,n),u=Q(r.width,i),f=Q(r.height,n),h=t[2]+t[0],c=t[1]+t[3],v=r.aspect;switch(isNaN(u)&&(u=i-s-c-a),isNaN(f)&&(f=n-l-h-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>i/n?u=i*.8:f=n*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(a)&&(a=i-s-u-c),isNaN(o)&&(o=n-l-f-h),r.left||r.right){case"center":a=i/2-u/2-t[3];break;case"right":a=i-u-c;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-t[0];break;case"bottom":o=n-f-h;break}a=a||0,o=o||0,isNaN(u)&&(u=i-c-a-(s||0)),isNaN(f)&&(f=n-h-o-(l||0));var p=new lt(a+t[3],o+t[0],u,f);return p.margin=t,p}function qc(r,e,t,i,n,a){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if(a=a||r,a.x=r.x,a.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new lt(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var h=fe(q({width:u.width,height:u.height},e),t,i),c=o?h.x-u.x:0,v=s?h.y-u.y:0;return l==="raw"?(a.x=c,a.y=v):(a.x+=c,a.y+=v),a===r&&r.markRedraw(),!0}function Y2(r,e){return r[nn[e][0]]!=null||r[nn[e][1]]!=null&&r[nn[e][2]]!=null}function Po(r){var e=r.layoutMode||r.constructor.layoutMode;return Y(e)?e:e?{type:e}:null}function Si(r,e,t){var i=t&&t.ignoreSize;!z(i)&&(i=[i,i]);var n=o(nn[0],0),a=o(nn[1],1);u(nn[0],r,n),u(nn[1],r,a);function o(f,h){var c={},v=0,p={},d=0,g=2;if(ll(f,function(_){p[_]=r[_]}),ll(f,function(_){s(e,_)&&(c[_]=p[_]=e[_]),l(c,_)&&v++,l(p,_)&&d++}),i[h])return l(e,f[1])?p[f[2]]=null:l(e,f[2])&&(p[f[1]]=null),p;if(d===g||!v)return p;if(v>=g)return c;for(var y=0;y<f.length;y++){var m=f[y];if(!s(c,m)&&s(r,m)){c[m]=r[m];break}}return c}function s(f,h){return f.hasOwnProperty(h)}function l(f,h){return f[h]!=null&&f[h]!=="auto"}function u(f,h,c){ll(f,function(v){h[v]=c[v]})}}function _a(r){return jS({},r)}function jS(r,e){return e&&r&&ll(KS,function(t){e.hasOwnProperty(t)&&(r[t]=e[t])}),r}var X2=_t(),Sa=function(r){E(e,r);function e(t,i,n){var a=r.call(this,t,i,n)||this;return a.uid=ya("ec_cpt_model"),a}return e.prototype.init=function(t,i,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,i){var n=Po(this),a=n?_a(t):{},o=i.getTheme();et(t,o.get(this.mainType)),et(t,this.getDefaultOption()),n&&Si(t,a,n)},e.prototype.mergeOption=function(t,i){et(this.option,t,!0);var n=Po(this);n&&Si(this.option,t,n)},e.prototype.optionUpdated=function(t,i){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!CM(t))return t.defaultOption;var i=X2(this);if(!i.defaultOption){for(var n=[],a=t;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},l=n.length-1;l>=0;l--)s=et(s,n[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(t,i){var n=t+"Index",a=t+"Id";return Zo(this.ecModel,t,{index:this.get(n,!0),id:this.get(a,!0)},i)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Tt);Y1(Sa,Tt);su(Sa);L2(Sa);R2(Sa,$2);function $2(r){var e=[];return b(Sa.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=V(e,function(t){return _r(t).main}),r!=="dataset"&&st(e,"dataset")<=0&&e.unshift("dataset"),e}const ft=Sa;var JS="";typeof navigator!="undefined"&&(JS=navigator.platform||"");var En="rgba(0, 0, 0, 0.2)";const Z2={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:En,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:En,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:En,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:En,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:En,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:En,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:JS.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};var QS=U(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ue="original",Se="arrayRows",nr="objectRows",Cr="keyedColumns",di="typedArray",tx="unknown",Nr="column",xa="row",Gt={Must:1,Might:2,Not:3},ex=_t();function q2(r){ex(r).datasetMap=U()}function K2(r,e,t){var i={},n=Kc(e);if(!n||!r)return i;var a=[],o=[],s=e.ecModel,l=ex(s).datasetMap,u=n.uid+"_"+t.seriesLayoutBy,f,h;r=r.slice(),b(r,function(d,g){var y=Y(d)?d:r[g]={name:d};y.type==="ordinal"&&f==null&&(f=g,h=p(y)),i[y.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});b(r,function(d,g){var y=d.name,m=p(d);if(f==null){var _=c.valueWayDim;v(i[y],_,m),v(o,_,m),c.valueWayDim+=m}else if(f===g)v(i[y],0,m),v(a,0,m);else{var _=c.categoryWayDim;v(i[y],_,m),v(o,_,m),c.categoryWayDim+=m}});function v(d,g,y){for(var m=0;m<y;m++)d.push(g+m)}function p(d){var g=d.dimsDef;return g?g.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function rx(r,e,t){var i={},n=Kc(r);if(!n)return i;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===nr||a===Cr)&&b(o,function(f,h){(Y(f)?f.name:f)==="name"&&(s=h)});var l=function(){for(var f={},h={},c=[],v=0,p=Math.min(5,t);v<p;v++){var d=nx(e.data,a,e.seriesLayoutBy,o,e.startIndex,v);c.push(d);var g=d===Gt.Not;if(g&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!g&&c[f.n]===Gt.Not)&&(f.n=v),y(f)&&c[f.n]!==Gt.Not)return f;g||(d===Gt.Might&&h.v==null&&v!==s&&(h.v=v),(h.n==null||h.n===h.v)&&(h.n=v))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(h)?h:null}();if(l){i.value=[l.v];var u=s!=null?s:l.n;i.itemName=[u],i.seriesName=[u]}return i}function Kc(r){var e=r.get("data",!0);if(!e)return Zo(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Ot).models[0]}function j2(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Zo(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Ot).models}function ix(r,e){return nx(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function nx(r,e,t,i,n,a){var o,s=5;if(le(r))return Gt.Not;var l,u;if(i){var f=i[a];Y(f)?(l=f.name,u=f.type):F(f)&&(l=f)}if(u!=null)return u==="ordinal"?Gt.Must:Gt.Not;if(e===Se){var h=r;if(t===xa){for(var c=h[a],v=0;v<(c||[]).length&&v<s;v++)if((o=S(c[n+v]))!=null)return o}else for(var v=0;v<h.length&&v<s;v++){var p=h[n+v];if(p&&(o=S(p[a]))!=null)return o}}else if(e===nr){var d=r;if(!l)return Gt.Not;for(var v=0;v<d.length&&v<s;v++){var g=d[v];if(g&&(o=S(g[l]))!=null)return o}}else if(e===Cr){var y=r;if(!l)return Gt.Not;var c=y[l];if(!c||le(c))return Gt.Not;for(var v=0;v<c.length&&v<s;v++)if((o=S(c[v]))!=null)return o}else if(e===Ue)for(var m=r,v=0;v<m.length&&v<s;v++){var g=m[v],_=ca(g);if(!z(_))return Gt.Not;if((o=S(_[a]))!=null)return o}function S(w){var x=F(w);if(w!=null&&Number.isFinite(Number(w))&&w!=="")return x?Gt.Might:Gt.Not;if(x&&w!=="-")return Gt.Must}return Gt.Not}var pv=U();function J2(r,e){ue(pv.get(r)==null&&e),pv.set(r,e)}function Q2(r,e,t){var i=pv.get(e);if(!i)return t;var n=i(r);return n?t.concat(n):t}var Pg=_t(),tI=_t(),jc=function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,i){var n=Ct(this.get("color",!0)),a=this.get("colorLayer",!0);return ax(this,Pg,n,a,e,t,i)},r.prototype.clearColorPalette=function(){rI(this,Pg)},r}();function Lg(r,e,t,i){var n=Ct(r.get(["aria","decal","decals"]));return ax(r,tI,n,null,e,t,i)}function eI(r,e){for(var t=r.length,i=0;i<t;i++)if(r[i].length>e)return r[i];return r[t-1]}function ax(r,e,t,i,n,a,o){a=a||r;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!i?t:eI(i,o);if(f=f||t,!(!f||!f.length)){var h=f[l];return n&&(u[n]=h),s.paletteIdx=(l+1)%f.length,h}}function rI(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var Ts,La,Rg,Eg="\0_ec_inner",iI=1,Jc=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,i,n,a,o,s){a=a||{},this.option=null,this._theme=new Tt(a),this._locale=new Tt(o),this._optionManager=s},e.prototype.setOption=function(t,i,n){var a=Bg(i);this._optionManager.setOption(t,n,a),this._resetOption(null,a)},e.prototype.resetOption=function(t,i){return this._resetOption(t,Bg(i))},e.prototype._resetOption=function(t,i){var n=!1,a=this._optionManager;if(!t||t==="recreate"){var o=a.mountOption(t==="recreate");!this.option||t==="recreate"?Rg(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!t||t==="recreate"||t==="media"){var l=a.getMediaOption(this);l.length&&b(l,function(u){n=!0,this._mergeOption(u,i)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=U(),u=i&&i.replaceMergeMainTypeMap;q2(this),b(t,function(h,c){h!=null&&(ft.hasClass(c)?c&&(s.push(c),l.set(c,!0)):n[c]=n[c]==null?X(h):et(n[c],h,!0))}),u&&u.each(function(h,c){ft.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),ft.topologicalTravel(s,ft.getAllClassMainTypes(),f,this);function f(h){var c=Q2(this,h,Ct(t[h])),v=a.get(h),p=v?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",d=G1(v,c,p);dM(d,h,ft),n[h]=null,a.set(h,null),o.set(h,0);var g=[],y=[],m=0,_;b(d,function(S,w){var x=S.existing,T=S.newOption;if(!T)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var C=h==="series",A=ft.getClass(h,S.keyInfo.subType,!C);if(!A)return;if(h==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===A)x.name=S.keyInfo.name,x.mergeOption(T,this),x.optionUpdated(T,!1);else{var M=O({componentIndex:w},S.keyInfo);x=new A(T,this,this,M),O(x,M),S.brandNew&&(x.__requireNewView=!0),x.init(T,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),y.push(x),m++):(g.push(void 0),y.push(void 0))},this),n[h]=g,a.set(h,y),o.set(h,m),h==="series"&&Ts(this)}this._seriesIndices||Ts(this)},e.prototype.getOption=function(){var t=X(this.option);return b(t,function(i,n){if(ft.hasClass(n)){for(var a=Ct(i),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Co(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,t[n]=a}}),delete t[Eg],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,i){var n=this._componentsMap.get(t);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},e.prototype.queryComponents=function(t){var i=t.mainType;if(!i)return[];var n=t.index,a=t.id,o=t.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return n!=null?(l=[],b(Ct(n),function(u){s[u]&&l.push(s[u])})):a!=null?l=kg("id",a,s):o!=null?l=kg("name",o,s):l=bt(s,function(u){return!!u}),Og(l,t)},e.prototype.findComponents=function(t){var i=t.query,n=t.mainType,a=s(i),o=a?this.queryComponents(a):bt(this._componentsMap.get(n),function(u){return!!u});return l(Og(o,t));function s(u){var f=n+"Index",h=n+"Id",c=n+"Name";return u&&(u[f]!=null||u[h]!=null||u[c]!=null)?{mainType:n,index:u[f],id:u[h],name:u[c]}:null}function l(u){return t.filter?bt(u,t.filter):u}},e.prototype.eachComponent=function(t,i,n){var a=this._componentsMap;if(K(t)){var o=i,s=t;a.each(function(h,c){for(var v=0;h&&v<h.length;v++){var p=h[v];p&&s.call(o,c,p,p.componentIndex)}})}else for(var l=F(t)?a.get(t):Y(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var f=l[u];f&&i.call(n,f,f.componentIndex)}},e.prototype.getSeriesByName=function(t){var i=jt(t,null);return bt(this._componentsMap.get("series"),function(n){return!!n&&i!=null&&n.name===i})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return bt(this._componentsMap.get("series"),function(i){return!!i&&i.subType===t})},e.prototype.getSeries=function(){return bt(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,i){La(this),b(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];t.call(i,a,n)},this)},e.prototype.eachRawSeries=function(t,i){b(this._componentsMap.get("series"),function(n){n&&t.call(i,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,i,n){La(this),b(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===t&&i.call(n,o,a)},this)},e.prototype.eachRawSeriesByType=function(t,i,n){return b(this.getSeriesByType(t),i,n)},e.prototype.isSeriesFiltered=function(t){return La(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,i){La(this);var n=[];b(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];t.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=U(n)},e.prototype.restoreData=function(t){Ts(this);var i=this._componentsMap,n=[];i.each(function(a,o){ft.hasClass(o)&&n.push(o)}),ft.topologicalTravel(n,ft.getAllClassMainTypes(),function(a){b(i.get(a),function(o){o&&(a!=="series"||!nI(o,t))&&o.restoreData()})})},e.internalField=function(){Ts=function(t){var i=t._seriesIndices=[];b(t._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),t._seriesIndicesMap=U(i)},La=function(t){},Rg=function(t,i){t.option={},t.option[Eg]=iI,t._componentsMap=U({series:[]}),t._componentsCount=U();var n=i.aria;Y(n)&&n.enabled==null&&(n.enabled=!0),aI(i,t._theme.option),et(i,Z2,!1),t._mergeOption(i,null)}}(),e}(Tt);function nI(r,e){if(e){var t=e.seriesIndex,i=e.seriesId,n=e.seriesName;return t!=null&&r.componentIndex!==t||i!=null&&r.id!==i||n!=null&&r.name!==n}}function aI(r,e){var t=r.color&&!r.colorLayer;b(e,function(i,n){n==="colorLayer"&&t||ft.hasClass(n)||(typeof i=="object"?r[n]=r[n]?et(r[n],i,!1):X(i):r[n]==null&&(r[n]=i))})}function kg(r,e,t){if(z(e)){var i=U();return b(e,function(a){if(a!=null){var o=jt(a,null);o!=null&&i.set(a,!0)}}),bt(t,function(a){return a&&i.get(a[r])})}else{var n=jt(e,null);return bt(t,function(a){return a&&n!=null&&a[r]===n})}}function Og(r,e){return e.hasOwnProperty("subType")?bt(r,function(t){return t&&t.subType===e.subType}):r}function Bg(r){var e=U();return r&&b(Ct(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}Xt(Jc,jc);var oI=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ox=function(){function r(e){b(oI,function(t){this[t]=W(e[t],e)},this)}return r}(),Ef={},Au=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(e,t){var i=[];b(Ef,function(n,a){var o=n.create(e,t);i=i.concat(o||[])}),this._coordinateSystems=i},r.prototype.update=function(e,t){b(this._coordinateSystems,function(i){i.update&&i.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(e,t){Ef[e]=t},r.get=function(e){return Ef[e]},r}(),sI=/^(min|max)?(.+)$/,lI=function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,i){e&&(b(Ct(e.series),function(o){o&&o.data&&le(o.data)&&gl(o.data)}),b(Ct(e.dataset),function(o){o&&o.source&&le(o.source)&&gl(o.source)})),e=X(e);var n=this._optionBackup,a=uI(e,t,!n);this._newBaseOption=a.baseOption,n?(a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],X(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,i=this._timelineOptions;if(i.length){var n=e.getComponent("timeline");n&&(t=X(i[n.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var l=0,u=n.length;l<u;l++)fI(n[l].query,t,i)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!vI(o,this._currentMediaIndices)&&(s=V(o,function(f){return X(f===-1?a.option:n[f].option)})),this._currentMediaIndices=o,s},r}();function uI(r,e,t){var i=[],n,a,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,h=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(r.options=r.media=null),a=r),f&&z(u)&&b(u,function(v){v&&v.option&&(v.query?i.push(v):n||(n=v))}),c(a),b(l,function(v){return c(v)}),b(i,function(v){return c(v.option)});function c(v){b(e,function(p){p(v,t)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:n,mediaList:i}}function fI(r,e,t){var i={width:e,height:t,aspectratio:e/t},n=!0;return b(r,function(a,o){var s=o.match(sI);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();hI(i[u],a,l)||(n=!1)}}),n}function hI(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function vI(r,e){return r.join(",")===e.join(",")}var $e=b,Lo=Y,Ng=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function kf(r){var e=r&&r.itemStyle;if(e)for(var t=0,i=Ng.length;t<i;t++){var n=Ng[t],a=e.normal,o=e.emphasis;a&&a[n]&&(r[n]=r[n]||{},r[n].normal?et(r[n].normal,a[n]):r[n].normal=a[n],a[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?et(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function Kt(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var i=r[e].normal,n=r[e].emphasis;i&&(t?(r[e].normal=r[e].emphasis=null,q(r[e],i)):r[e]=i),n&&(r.emphasis=r.emphasis||{},r.emphasis[e]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function to(r){Kt(r,"itemStyle"),Kt(r,"lineStyle"),Kt(r,"areaStyle"),Kt(r,"label"),Kt(r,"labelLine"),Kt(r,"upperLabel"),Kt(r,"edgeLabel")}function Et(r,e){var t=Lo(r)&&r[e],i=Lo(t)&&t.textStyle;if(i)for(var n=0,a=Vd.length;n<a;n++){var o=Vd[n];i.hasOwnProperty(o)&&(t[o]=i[o])}}function Le(r){r&&(to(r),Et(r,"label"),r.emphasis&&Et(r.emphasis,"label"))}function cI(r){if(Lo(r)){kf(r),to(r),Et(r,"label"),Et(r,"upperLabel"),Et(r,"edgeLabel"),r.emphasis&&(Et(r.emphasis,"label"),Et(r.emphasis,"upperLabel"),Et(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(kf(e),Le(e));var t=r.markLine;t&&(kf(t),Le(t));var i=r.markArea;i&&Le(i);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var a=r.links||r.edges;if(a&&!le(a))for(var o=0;o<a.length;o++)Le(a[o]);b(r.categories,function(u){to(u)})}if(n&&!le(n))for(var o=0;o<n.length;o++)Le(n[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Le(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)z(l[o])?(Le(l[o][0]),Le(l[o][1])):Le(l[o]);r.type==="gauge"?(Et(r,"axisLabel"),Et(r,"title"),Et(r,"detail")):r.type==="treemap"?(Kt(r.breadcrumb,"itemStyle"),b(r.levels,function(u){to(u)})):r.type==="tree"&&to(r.leaves)}}function Ir(r){return z(r)?r:r?[r]:[]}function zg(r){return(z(r)?r[0]:r)||{}}function pI(r,e){$e(Ir(r.series),function(i){Lo(i)&&cI(i)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),$e(t,function(i){$e(Ir(r[i]),function(n){n&&(Et(n,"axisLabel"),Et(n.axisPointer,"label"))})}),$e(Ir(r.parallel),function(i){var n=i&&i.parallelAxisDefault;Et(n,"axisLabel"),Et(n&&n.axisPointer,"label")}),$e(Ir(r.calendar),function(i){Kt(i,"itemStyle"),Et(i,"dayLabel"),Et(i,"monthLabel"),Et(i,"yearLabel")}),$e(Ir(r.radar),function(i){Et(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),$e(Ir(r.geo),function(i){Lo(i)&&(Le(i),$e(Ir(i.regions),function(n){Le(n)}))}),$e(Ir(r.timeline),function(i){Le(i),Kt(i,"label"),Kt(i,"itemStyle"),Kt(i,"controlStyle",!0);var n=i.data;z(n)&&b(n,function(a){Y(a)&&(Kt(a,"label"),Kt(a,"itemStyle"))})}),$e(Ir(r.toolbox),function(i){Kt(i,"iconStyle"),$e(i.feature,function(n){Kt(n,"iconStyle")})}),Et(zg(r.axisPointer),"label"),Et(zg(r.tooltip).axisPointer,"label")}function dI(r,e){for(var t=e.split(","),i=r,n=0;n<t.length&&(i=i&&i[t[n]],i!=null);n++);return i}function gI(r,e,t,i){for(var n=e.split(","),a=r,o,s=0;s<n.length-1;s++)o=n[s],a[o]==null&&(a[o]={}),a=a[o];a[n[s]]==null&&(a[n[s]]=t)}function Vg(r){r&&b(yI,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var yI=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],mI=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Of=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ra(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<Of.length;t++){var i=Of[t][1],n=Of[t][0];e[i]!=null&&(e[n]=e[i])}}function Fg(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function Gg(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function _I(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function sx(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&sx(r[t].children,e)}function lx(r,e){pI(r,e),r.series=Ct(r.series),b(r.series,function(t){if(Y(t)){var i=t.type;if(i==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow);else if(i==="pie"||i==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise),Fg(t.label);var n=t.data;if(n&&!le(n))for(var a=0;a<n.length;a++)Fg(n[a]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(i==="gauge"){var o=dI(t,"pointer.color");o!=null&&gI(t,"itemStyle.color",o)}else if(i==="bar"){Ra(t),Ra(t.backgroundStyle),Ra(t.emphasis);var n=t.data;if(n&&!le(n))for(var a=0;a<n.length;a++)typeof n[a]=="object"&&(Ra(n[a]),Ra(n[a]&&n[a].emphasis))}else if(i==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),Gg(t),sx(t.data,Gg)}else i==="graph"||i==="sankey"?_I(t):i==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&q(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),Vg(t)}}),r.dataRange&&(r.visualMap=r.dataRange),b(mI,function(t){var i=r[t];i&&(z(i)||(i=[i]),b(i,function(n){Vg(n)}))})}function SI(r){var e=U();r.eachSeries(function(t){var i=t.get("stack");if(i){var n=e.get(i)||e.set(i,[]),a=t.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.length&&a.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}}),e.each(xI)}function xI(r){b(r,function(e,t){var i=[],n=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,h){var c=o.get(e.stackedDimension,h);if(isNaN(c))return n;var v,p;s?p=o.getRawIndex(h):v=o.get(e.stackedByDimension,h);for(var d=NaN,g=t-1;g>=0;g--){var y=r[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,v)),p>=0){var m=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&c>=0&&m>0||l==="samesign"&&c<=0&&m<0){c=iM(c,m),d=m;break}}}return i[0]=c,i[1]=d,i})})}var Mu=function(){function r(e){this.data=e.data||(e.sourceFormat===Cr?{}:[]),this.sourceFormat=e.sourceFormat||tx,this.seriesLayoutBy=e.seriesLayoutBy||Nr,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var i=0;i<t.length;i++){var n=t[i];n.type==null&&ix(this,i)===Gt.Must&&(n.type="ordinal")}}return r}();function Qc(r){return r instanceof Mu}function dv(r,e,t){t=t||fx(r);var i=e.seriesLayoutBy,n=bI(r,t,i,e.sourceHeader,e.dimensions),a=new Mu({data:r,sourceFormat:t,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:X(e)});return a}function ux(r){return new Mu({data:r,sourceFormat:le(r)?di:Ue})}function wI(r){return new Mu({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:X(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function fx(r){var e=tx;if(le(r))e=di;else if(z(r)){r.length===0&&(e=Se);for(var t=0,i=r.length;t<i;t++){var n=r[t];if(n!=null){if(z(n)||le(n)){e=Se;break}else if(Y(n)){e=nr;break}}}}else if(Y(r)){for(var a in r)if(tt(r,a)&&Qt(r[a])){e=Cr;break}}return e}function bI(r,e,t,i,n){var a,o;if(!r)return{dimensionsDefine:Hg(n),startIndex:o,dimensionsDetectedCount:a};if(e===Se){var s=r;i==="auto"||i==null?Wg(function(u){u!=null&&u!=="-"&&(F(u)?o==null&&(o=1):o=0)},t,s,10):o=mt(i)?i:i?1:0,!n&&o===1&&(n=[],Wg(function(u,f){n[f]=u!=null?u+"":""},t,s,1/0)),a=n?n.length:t===xa?s.length:s[0]?s[0].length:null}else if(e===nr)n||(n=TI(r));else if(e===Cr)n||(n=[],b(r,function(u,f){n.push(f)}));else if(e===Ue){var l=ca(r[0]);a=z(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Hg(n),dimensionsDetectedCount:a}}function TI(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return at(t)}function Hg(r){if(r){var e=U();return V(r,function(t,i){t=Y(t)?t:{name:t};var n={name:t.name,displayName:t.displayName,type:t.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var a=e.get(n.name);return a?n.name+="-"+a.count++:e.set(n.name,{count:1}),n})}}function Wg(r,e,t,i){if(e===xa)for(var n=0;n<t.length&&n<i;n++)r(t[n]?t[n][0]:null,n);else for(var a=t[0]||[],n=0;n<a.length&&n<i;n++)r(a[n],n)}function hx(r){var e=r.sourceFormat;return e===nr||e===Cr}var Gi,Hi,Wi,Ug,Yg,vx=function(){function r(e,t){var i=Qc(e)?e:ux(e);this._source=i;var n=this._data=i.data;i.sourceFormat===di&&(this._offset=0,this._dimSize=t,this._data=n),Yg(this,n,i)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=function(){var e=r.prototype;e.pure=!1,e.persistent=!0}(),r.internalField=function(){var e;Yg=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,c=l.dimensionsDefine,v=Ug[tp(u,f)];if(O(o,v),u===di)o.getItem=t,o.count=n,o.fillStorage=i;else{var p=cx(u,f);o.getItem=W(p,null,s,h,c);var d=px(u,f);o.count=W(d,null,s,h,c)}};var t=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,h=0;h<u;h++)s[h]=l[f+h];return s},i=function(o,s,l,u){for(var f=this._data,h=this._dimSize,c=0;c<h;c++){for(var v=u[c],p=v[0]==null?1/0:v[0],d=v[1]==null?-1/0:v[1],g=s-o,y=l[c],m=0;m<g;m++){var _=f[m*h+c];y[o+m]=_,_<p&&(p=_),_>d&&(d=_)}v[0]=p,v[1]=d}},n=function(){return this._data?this._data.length/this._dimSize:0};Ug=(e={},e[Se+"_"+Nr]={pure:!0,appendData:a},e[Se+"_"+xa]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[nr]={pure:!0,appendData:a},e[Cr]={pure:!0,appendData:function(o){var s=this._data;b(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},e[Ue]={appendData:a},e[di]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),Xg=function(r,e,t,i){return r[i]},CI=(Gi={},Gi[Se+"_"+Nr]=function(r,e,t,i){return r[i+e]},Gi[Se+"_"+xa]=function(r,e,t,i,n){i+=e;for(var a=n||[],o=r,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[i]:null}return a},Gi[nr]=Xg,Gi[Cr]=function(r,e,t,i,n){for(var a=n||[],o=0;o<t.length;o++){var s=t[o].name,l=r[s];a[o]=l?l[i]:null}return a},Gi[Ue]=Xg,Gi);function cx(r,e){var t=CI[tp(r,e)];return t}var $g=function(r,e,t){return r.length},AI=(Hi={},Hi[Se+"_"+Nr]=function(r,e,t){return Math.max(0,r.length-e)},Hi[Se+"_"+xa]=function(r,e,t){var i=r[0];return i?Math.max(0,i.length-e):0},Hi[nr]=$g,Hi[Cr]=function(r,e,t){var i=t[0].name,n=r[i];return n?n.length:0},Hi[Ue]=$g,Hi);function px(r,e){var t=AI[tp(r,e)];return t}var Bf=function(r,e,t){return r[e]},MI=(Wi={},Wi[Se]=Bf,Wi[nr]=function(r,e,t){return r[t]},Wi[Cr]=Bf,Wi[Ue]=function(r,e,t){var i=ca(r);return i instanceof Array?i[e]:i},Wi[di]=Bf,Wi);function dx(r){var e=MI[r];return e}function tp(r,e){return r===Se?r+"_"+e:r}function oa(r,e,t){if(r){var i=r.getRawDataItem(e);if(i!=null){var n=r.getStore(),a=n.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=n.getDimensionProperty(o);return dx(a)(i,o,s)}else{var l=i;return a===Ue&&(l=ca(i)),l}}}}var DI=/\{@(.+?)\}/g,gx=function(){function r(){}return r.prototype.getDataParams=function(e,t){var i=this.getData(t),n=this.getRawValue(e,t),a=i.getRawIndex(e),o=i.getName(e),s=i.getRawDataItem(e),l=i.getItemVisual(e,"style"),u=l&&l[i.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,h=this.mainType,c=h==="series",v=i.userOutput&&i.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:a,data:s,dataType:t,value:n,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,i,n,a,o){t=t||"normal";var s=this.getData(i),l=this.getDataParams(e,i);if(o&&(l.value=o.interpolatedValue),n!=null&&z(l.value)&&(l.value=l.value[n]),!a){var u=s.getItemModel(e);a=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(K(a))return l.status=t,l.dimensionIndex=n,a(l);if(F(a)){var f=$c(a,l);return f.replace(DI,function(h,c){var v=c.length,p=c;p.charAt(0)==="["&&p.charAt(v-1)==="]"&&(p=+p.slice(1,v-1));var d=oa(s,e,p);if(o&&z(o.interpolatedValue)){var g=s.getDimensionIndex(p);g>=0&&(d=o.interpolatedValue[g])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(e,t){return oa(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,i){},r}();function Zg(r){var e,t;return Y(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function go(r){return new II(r)}var II=function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,i=e&&e.skip;if(this._dirty&&t){var n=this.context;n.data=n.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(i)),this._modBy=l,this._modDataCount=u;var c=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,p=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(h||v<p)){var d=this._progress;if(z(d))for(var g=0;g<d.length;g++)this._doProgress(d[g],v,p,l,u);else this._doProgress(d,v,p,l,u)}this._dueIndex=p;var y=this._settedOutputEnd!=null?this._settedOutputEnd:p;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(e,t,i,n,a){qg.reset(t,i,n,a),this._callingProgress=e,this._callingProgress({start:t,end:i,count:i-t,next:qg.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,i;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(i=t.forceFirstProgress,t=t.progress),z(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},r}(),qg=function(){var r,e,t,i,n,a={reset:function(l,u,f,h){e=l,r=u,t=f,i=h,n=Math.ceil(i/t),a.next=t>1&&i>0?s:o}};return a;function o(){return e<r?e++:null}function s(){var l=e%n*t+Math.ceil(e/n),u=e>=r?null:l<i?l:e;return e++,u}}();function ul(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!mt(r)&&r!=null&&r!=="-"&&(r=+Ce(r)),r==null||r===""?NaN:Number(r))}U({number:function(r){return parseFloat(r)},time:function(r){return+Ce(r)},trim:function(r){return F(r)?Ve(r):r}});var PI=function(){function r(e,t){var i=e==="desc";this._resultLT=i?1:-1,t==null&&(t=i?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var i=mt(e)?e:To(e),n=mt(t)?t:To(t),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=F(e),l=F(t);s&&(i=l?e:0),l&&(n=s?t:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},r}(),LI=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return ul(e,t)},r}();function RI(r,e){var t=new LI,i=r.data,n=t.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==Nr&&ye(o);var s=[],l={},u=r.dimensionsDefine;if(u)b(u,function(d,g){var y=d.name,m={index:g,name:y,displayName:d.displayName};if(s.push(m),y!=null){var _="";tt(l,y)&&ye(_),l[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=cx(n,Nr);e.__isBuiltIn&&(t.getRawDataItem=function(d){return h(i,a,s,d)},t.getRawData=W(EI,null,r)),t.cloneRawData=W(kI,null,r);var c=px(n,Nr);t.count=W(c,null,i,a,s);var v=dx(n);t.retrieveValue=function(d,g){var y=h(i,a,s,d);return p(y,g)};var p=t.retrieveValueFromItem=function(d,g){if(d!=null){var y=s[g];if(y)return v(d,g,y.name)}};return t.getDimensionInfo=W(OI,null,s,l),t.cloneAllDimensionInfo=W(BI,null,s),t}function EI(r){var e=r.sourceFormat;if(!ep(e)){var t="";ye(t)}return r.data}function kI(r){var e=r.sourceFormat,t=r.data;if(!ep(e)){var i="";ye(i)}if(e===Se){for(var n=[],a=0,o=t.length;a<o;a++)n.push(t[a].slice());return n}else if(e===nr){for(var n=[],a=0,o=t.length;a<o;a++)n.push(O({},t[a]));return n}}function OI(r,e,t){if(t!=null){if(mt(t)||!isNaN(t)&&!tt(e,t))return r[t];if(tt(e,t))return e[t]}}function BI(r){return X(r)}var yx=U();function NI(r){r=X(r);var e=r.type,t="";e||ye(t);var i=e.split(":");i.length!==2&&ye(t);var n=!1;i[0]==="echarts"&&(e=i[1],n=!0),r.__isBuiltIn=n,yx.set(e,r)}function zI(r,e,t){var i=Ct(r),n=i.length,a="";n||ye(a);for(var o=0,s=n;o<s;o++){var l=i[o];e=VI(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function VI(r,e,t,i){var n="";e.length||ye(n),Y(r)||ye(n);var a=r.type,o=yx.get(a);o||ye(n);var s=V(e,function(u){return RI(u,o)}),l=Ct(o.transform({upstream:s[0],upstreamList:s,config:X(r.config)}));return V(l,function(u,f){var h="";Y(u)||ye(h),u.data||ye(h);var c=fx(u.data);ep(c)||ye(h);var v,p=e[0];if(p&&f===0&&!u.dimensions){var d=p.startIndex;d&&(u.data=p.data.slice(0,d).concat(u.data)),v={seriesLayoutBy:Nr,sourceHeader:d,dimensions:p.metaRawOption.dimensions}}else v={seriesLayoutBy:Nr,sourceHeader:0,dimensions:u.dimensions};return dv(u.data,v,null)})}function ep(r){return r===Se||r===nr}var Du="undefined",FI=typeof Uint32Array===Du?Array:Uint32Array,GI=typeof Uint16Array===Du?Array:Uint16Array,mx=typeof Int32Array===Du?Array:Int32Array,Kg=typeof Float64Array===Du?Array:Float64Array,_x={float:Kg,int:mx,ordinal:Array,number:Array,time:Kg},Nf;function Ea(r){return r>65535?FI:GI}function kn(){return[1/0,-1/0]}function HI(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function jg(r,e,t,i,n){var a=_x[t||"float"];if(n){var o=r[e],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new a(i)}var gv=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=U()}return r.prototype.initData=function(e,t,i){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),a=this.defaultDimValueGetter=Nf[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[],hx(n),this._dimensions=V(t,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(e);if(a!=null){if(n[a].type===t)return a}else a=n.length;return n[a]={type:t},i.set(e,a),this._chunks[a]=new _x[t||"float"](this._rawCount),this._rawExtent[a]=kn(),a},r.prototype.collectOrdinalMeta=function(e,t){var i=this._chunks[e],n=this._dimensions[e],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;o===0&&(a[e]=kn());for(var l=a[e],u=o;u<s;u++){var f=i[u]=t.parseAndCollect(i[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=t,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],i=t.ordinalMeta;return i},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){var t=this._provider,i=this.count();t.appendData(e);var n=t.count();return t.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},r.prototype.appendValues=function(e,t){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<a;u++){var f=n[u];jg(i,u,f.type,l,!0)}for(var h=[],c=s;c<l;c++)for(var v=c-s,p=0;p<a;p++){var f=n[p],d=Nf.arrayRows.call(this,e[v]||h,f.property,v,p);i[p][c]=d;var g=o[p];d<g[0]&&(g[0]=d),d>g[1]&&(g[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=V(o,function(m){return m.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=kn()),jg(a,f,h.type,t,i)}if(n.fillStorage)n.fillStorage(e,t,a,l);else for(var c=[],v=e;v<t;v++){c=n.getItem(v,c);for(var p=0;p<s;p++){var d=a[p],g=this._dimValueGetter(c,u[p],v,p);d[v]=g;var y=l[p];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var i=this._chunks[e];return i?i[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var i=[],n=[];if(t==null){t=e,e=[];for(var a=0;a<this._dimensions.length;a++)n.push(a)}else n=e;for(var a=0,o=n.length;a<o;a++)i.push(this.get(n[a],t));return i},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var i=this._chunks[e];return i?i[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],i=0;if(t)for(var n=0,a=this.count();n<a;n++){var o=this.get(e,n);isNaN(o)||(i+=o)}return i},r.prototype.getMedian=function(e){var t=[];this.each([e],function(a){isNaN(a)||t.push(a)});var i=t.sort(function(a,o){return a-o}),n=this.count();return n===0?0:n%2===1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},r.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,i=t[e];if(i!=null&&i<this._count&&i===e)return e;for(var n=0,a=this._count-1;n<=a;){var o=(n+a)/2|0;if(t[o]<e)n=o+1;else if(t[o]>e)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(e,t,i){var n=this._chunks,a=n[e],o=[];if(!a)return o;i==null&&(i=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f<h;f++){var c=this.getRawIndex(f),v=t-a[c],p=Math.abs(v);p<=i&&((p<s||p===s&&v>=0&&l<0)&&(s=p,l=v,u=0),v===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var i=t.constructor,n=this._count;if(i===Array){e=new i(n);for(var a=0;a<n;a++)e[a]=t[a]}else e=new i(t.buffer,0,n)}else{var i=Ea(this._rawCount);e=new i(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var i=this.clone(),n=i.count(),a=Ea(i._rawCount),o=new a(n),s=[],l=e.length,u=0,f=e[0],h=i._chunks,c=0;c<n;c++){var v=void 0,p=i.getRawIndex(c);if(l===0)v=t(c);else if(l===1){var d=h[f][p];v=t(d,c)}else{for(var g=0;g<l;g++)s[g]=h[e[g]][p];s[g]=c,v=t.apply(null,s)}v&&(o[u++]=p)}return u<n&&(i._indices=o),i._count=u,i._extent=[],i._updateGetRawIdx(),i},r.prototype.selectRange=function(e){var t=this.clone(),i=t._count;if(!i)return this;var n=at(e),a=n.length;if(!a)return this;var o=t.count(),s=Ea(t._rawCount),l=new s(o),u=0,f=n[0],h=e[f][0],c=e[f][1],v=t._chunks,p=!1;if(!t._indices){var d=0;if(a===1){for(var g=v[n[0]],y=0;y<i;y++){var m=g[y];(m>=h&&m<=c||isNaN(m))&&(l[u++]=d),d++}p=!0}else if(a===2){for(var g=v[n[0]],_=v[n[1]],S=e[n[1]][0],w=e[n[1]][1],y=0;y<i;y++){var m=g[y],x=_[y];(m>=h&&m<=c||isNaN(m))&&(x>=S&&x<=w||isNaN(x))&&(l[u++]=d),d++}p=!0}}if(!p)if(a===1)for(var y=0;y<o;y++){var T=t.getRawIndex(y),m=v[n[0]][T];(m>=h&&m<=c||isNaN(m))&&(l[u++]=T)}else for(var y=0;y<o;y++){for(var C=!0,T=t.getRawIndex(y),A=0;A<a;A++){var M=n[A],m=v[M][T];(m<e[M][0]||m>e[M][1])&&(C=!1)}C&&(l[u++]=t.getRawIndex(y))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var i=this.clone(e);return this._updateDims(i,e,t),i},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,i){for(var n=e._chunks,a=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<t.length;f++)u[t[f]]=kn();for(var h=0;h<s;h++){for(var c=e.getRawIndex(h),v=0;v<o;v++)l[v]=n[t[v]][c];l[o]=h;var p=i&&i.apply(null,l);if(p!=null){typeof p!="object"&&(a[0]=p,p=a);for(var f=0;f<p.length;f++){var d=t[f],g=p[f],y=u[d],m=n[d];m&&(m[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(e,t){var i=this.clone([e],!0),n=i._chunks,a=n[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,h,c,v=new(Ea(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var p=1;p<o-1;p+=l){for(var d=Math.min(p+l,o-1),g=Math.min(p+l*2,o),y=(g+d)/2,m=0,_=d;_<g;_++){var S=this.getRawIndex(_),w=a[S];isNaN(w)||(m+=w)}m/=g-d;var x=p,T=Math.min(p+l,o),C=p-1,A=a[u];f=-1,c=x;for(var M=-1,D=0,_=x;_<T;_++){var S=this.getRawIndex(_),w=a[S];if(isNaN(w)){D++,M<0&&(M=S);continue}h=Math.abs((C-y)*(w-A)-(C-_)*(m-A)),h>f&&(f=h,c=S)}D>0&&D<T-x&&(v[s++]=Math.min(M,c),c=Math.max(M,c)),v[s++]=c,u=c}return v[s++]=this.getRawIndex(o-1),i._count=s,i._indices=v,i.getRawIndex=this._getRawIdx,i},r.prototype.downSample=function(e,t,i,n){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/t),u=o[e],f=this.count(),h=a._rawExtent[e]=kn(),c=new(Ea(this._rawCount))(Math.ceil(f/l)),v=0,p=0;p<f;p+=l){l>f-p&&(l=f-p,s.length=l);for(var d=0;d<l;d++){var g=this.getRawIndex(p+d);s[d]=u[g]}var y=i(s),m=this.getRawIndex(Math.min(p+n(s,y)||0,f-1));u[m]=y,y<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),c[v++]=m}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},r.prototype.each=function(e,t){if(this._count)for(var i=e.length,n=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:t(a);break;case 1:t(n[e[0]][s],a);break;case 2:t(n[e[0]][s],n[e[1]][s],a);break;default:for(var l=0,u=[];l<i;l++)u[l]=n[e[l]][s];u[l]=a,t.apply(null,u)}}},r.prototype.getDataExtent=function(e){var t=this._chunks[e],i=kn();if(!t)return i;var n=this.count(),a=!this._indices,o;if(a)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=i;for(var s=o[0],l=o[1],u=0;u<n;u++){var f=this.getRawIndex(u),h=t[f];h<s&&(s=h),h>l&&(l=h)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][t]);return i},r.prototype.clone=function(e,t){var i=new r,n=this._chunks,a=e&&Fe(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?HI(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),t||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=X(this._extent),e._rawExtent=X(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var i=this._indices.length;t=new e(i);for(var n=0;n<i;n++)t[n]=this._indices[n]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,i,n,a){return ul(t[a],this._dimensions[a])}Nf={arrayRows:e,objectRows:function(t,i,n,a){return ul(t[i],this._dimensions[a])},keyedColumns:e,original:function(t,i,n,a){var o=t&&(t.value==null?t:t.value);return ul(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(t,i,n,a){return t[a]}}}(),r}(),WI=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),i=!!t.length,n,a;if(Cs(e)){var o=e,s=void 0,l=void 0,u=void 0;if(i){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=le(s)?di:Ue,a=[];var h=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},v=J(h.seriesLayoutBy,c.seriesLayoutBy)||null,p=J(h.sourceHeader,c.sourceHeader),d=J(h.dimensions,c.dimensions),g=v!==c.seriesLayoutBy||!!p!=!!c.sourceHeader||d;n=g?[dv(s,{seriesLayoutBy:v,sourceHeader:p,dimensions:d},l)]:[]}else{var y=e;if(i){var m=this._applyTransform(t);n=m.sourceList,a=m.upstreamSignList}else{var _=y.get("source",!0);n=[dv(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},r.prototype._applyTransform=function(e){var t=this._sourceHost,i=t.get("transform",!0),n=t.get("fromTransformResult",!0);if(n!=null){var a="";e.length!==1&&Jg(a)}var o,s=[],l=[];return b(e,function(u){u.prepareSource();var f=u.getSource(n||0),h="";n!=null&&!f&&Jg(h),s.push(f),l.push(u._getVersionSign())}),i?o=zI(i,s,{datasetIndex:t.componentIndex}):n!=null&&(o=[wI(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var i=e[t];if(i._isDirty()||this._upstreamSignList[t]!==i._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,i){var n=0,a=this._storeList,o=a[n];o||(o=a[n]={});var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];Cs(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,i):(s=new gv,s.initData(new vx(t,e.length),e)),o[i]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Cs(e)){var t=Kc(e);return t?[t.getSourceManager()]:[]}else return V(j2(e),function(i){return i.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,i,n;if(Cs(e))t=e.get("seriesLayoutBy",!0),i=e.get("sourceHeader",!0),n=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;t=a.get("seriesLayoutBy",!0),i=a.get("sourceHeader",!0),n=a.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:i,dimensions:n}},r}();function Cs(r){return r.mainType==="series"}function Jg(r){throw new Error(r)}var Sx="line-height:1";function xx(r,e){var t=r.color||"#6e7079",i=r.fontSize||12,n=r.fontWeight||"400",a=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+ne(i+"")+"px;color:"+ne(t)+";font-weight:"+ne(n+""),valueStyle:"font-size:"+ne(o+"")+"px;color:"+ne(a)+";font-weight:"+ne(s+"")}:{nameStyle:{fontSize:i,fill:t,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var UI=[0,10,20,30],YI=["",`
- `,`
- `,`
- `];function wr(r,e){return e.type=r,e}function yv(r){return r.type==="section"}function bx(r){return yv(r)?XI:$I}function Tx(r){if(yv(r)){var e=0,t=r.blocks.length,i=t>1||t>0&&!r.noHeader;return b(r.blocks,function(n){var a=Tx(n);a>=e&&(e=a+ +(i&&(!a||yv(n)&&!n.noHeader)))}),e}return 0}function XI(r,e,t,i){var n=e.noHeader,a=ZI(Tx(e)),o=[],s=e.blocks||[];ue(!s||z(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(tt(u,l)){var f=new PI(u[l],null);s.sort(function(p,d){return f.evaluate(p.sortParam,d.sortParam)})}else l==="seriesDesc"&&s.reverse()}b(s,function(p,d){var g=e.valueFormatter,y=bx(p)(g?O(O({},r),{valueFormatter:g}):r,p,d>0?a.html:0,i);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(a.richText):mv(o.join(""),n?t:a.html);if(n)return h;var c=cv(e.header,"ordinal",r.useUTC),v=xx(i,r.renderMode).nameStyle;return r.renderMode==="richText"?Cx(r,c,v)+a.richText+h:mv('<div style="'+v+";"+Sx+';">'+ne(c)+"</div>"+h,t)}function $I(r,e,t,i){var n=r.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=z(S)?S:[S],V(S,function(w,x){return cv(w,z(v)?v[x]:v,u)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",n),c=a?"":cv(l,"ordinal",u),v=e.valueType,p=o?[]:f(e.value,e.dataIndex),d=!s||!a,g=!s&&a,y=xx(i,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":h)+(a?"":Cx(r,c,m))+(o?"":jI(r,p,d,g,_)):mv((s?"":h)+(a?"":qI(c,!s,m))+(o?"":KI(p,d,g,_)),t)}}function Qg(r,e,t,i,n,a){if(r){var o=bx(r),s={useUTC:n,renderMode:t,orderMode:i,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function ZI(r){return{html:UI[r],richText:YI[r]}}function mv(r,e){var t='<div style="clear:both"></div>',i="margin: "+e+"px 0 0";return'<div style="'+i+";"+Sx+';">'+r+t+"</div>"}function qI(r,e,t){var i=e?"margin-left:2px":"";return'<span style="'+t+";"+i+'">'+ne(r)+"</span>"}function KI(r,e,t,i){var n=t?"10px":"20px",a=e?"float:right;margin-left:"+n:"";return r=z(r)?r:[r],'<span style="'+a+";"+i+'">'+V(r,function(o){return ne(o)}).join(" ")+"</span>"}function Cx(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function jI(r,e,t,i,n){var a=[n],o=i?10:20;return t&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(z(e)?e.join(" "):e,a)}function Ax(r,e){var t=r.getData().getItemVisual(e,"style"),i=t[r.visualDrawType];return yn(i)}function Mx(r,e){var t=r.get("padding");return t!=null?t:e==="richText"?[8,10]:10}var zf=function(){function r(){this.richTextStyles={},this._nextStyleNameId=N1()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,i){var n=i==="richText"?this._generateStyleName():null,a=qS({color:t,type:e,renderMode:i,markerId:n});return F(a)?a:(this.richTextStyles[n]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(e,t){var i={};z(t)?b(t,function(a){return O(i,a)}):O(i,t);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+e+"}"},r}();function JI(r){var e=r.series,t=r.dataIndex,i=r.multipleSeries,n=e.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(t),l=z(s),u=Ax(e,t),f,h,c,v;if(o>1||l&&!o){var p=QI(s,e,t,a,u);f=p.inlineValues,h=p.inlineValueTypes,c=p.blocks,v=p.inlineValues[0]}else if(o){var d=n.getDimensionInfo(a[0]);v=f=oa(n,t,a[0]),h=d.type}else v=f=l?s[0]:s;var g=xc(e),y=g&&e.name||"",m=n.getName(t),_=i?y:m;return wr("section",{header:y,noHeader:i||!g,sortParam:v,blocks:[wr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Ve(_),value:f,valueType:h,dataIndex:t})].concat(c||[])})}function QI(r,e,t,i,n){var a=e.getData(),o=Fe(r,function(h,c,v){var p=a.getDimensionInfo(v);return h=h||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];i.length?b(i,function(h){f(oa(a,t,h),h)}):b(r,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?u.push(wr("nameValue",{markerType:"subItem",markerColor:n,name:v.displayName,value:h,valueType:v.type})):(s.push(h),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var jr=_t();function As(r,e){return r.getName(e)||r.getId(e)}var tP="__universalTransitionEnabled",Iu=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,i,n){this.seriesIndex=this.componentIndex,this.dataTask=go({count:rP,reset:iP}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var a=jr(this).sourceManager=new WI(this);a.prepareSource();var o=this.getInitialData(t,n);ey(o,this),this.dataTask.context.data=o,jr(this).dataBeforeProcessed=o,ty(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,i){var n=Po(this),a=n?_a(t):{},o=this.subType;ft.hasClass(o)&&(o+="Series"),et(t,i.getTheme().get(this.subType)),et(t,this.getDefaultOption()),Al(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Si(t,a,n)},e.prototype.mergeOption=function(t,i){t=et(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Po(this);n&&Si(this.option,t,n);var a=jr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(t,i);ey(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,jr(this).dataBeforeProcessed=o,ty(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!le(t))for(var i=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Al(t[n],"label",i)},e.prototype.getInitialData=function(t,i){},e.prototype.appendData=function(t){var i=this.getRawData();i.appendData(t.data)},e.prototype.getData=function(t){var i=_v(this);if(i){var n=i.context.data;return t==null||!n.getLinkedData?n:n.getLinkedData(t)}else return jr(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var i=_v(this);if(i){var n=i.context;n.outputData=t,i!==this.dataTask&&(n.data=t)}jr(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return U(t)},e.prototype.getSourceManager=function(){return jr(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return jr(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,i,n){return JI({series:this,dataIndex:t,multipleSeries:i})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(ht.node&&!(t&&t.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,i,n){var a=this.ecModel,o=jc.prototype.getColorFromPalette.call(this,t,i,n);return o||(o=a.getColorFromPalette(t,i,n)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,i){this._innerSelect(this.getData(i),t)},e.prototype.unselect=function(t,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=As(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,i){for(var n=[],a=0;a<t.length;a++)n[0]=t[a],this.isSelected(t[a],i)?this.unselect(n,i):this.select(n,i)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,i=at(t),n=[],a=0;a<i.length;a++){var o=t[i[a]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(t,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[As(a,t)])&&!a.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[tP])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,i){var n,a,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Y(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var h=i[f],c=As(t,h);u[c]=!0,this._selectedDataIndicesMap[c]=t.getRawIndex(h)}}else if(s==="single"||s===!0){var v=i[l-1],c=As(t,v);o.selectedMap=(n={},n[c]=!0,n),this._selectedDataIndicesMap=(a={},a[c]=t.getRawIndex(v),a)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var i=[];t.hasItemOption&&t.each(function(n){var a=t.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(t,i)}},e.registerClass=function(t){return ft.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(ft);Xt(Iu,gx);Xt(Iu,jc);Y1(Iu,ft);function ty(r){var e=r.name;xc(r)||(r.name=eP(r)||e)}function eP(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),i=[];return b(t,function(n){var a=e.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function rP(r){return r.model.getRawData().count()}function iP(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),nP}function nP(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function ey(r,e){b(t1(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,vt(aP,e))})}function aP(r,e){var t=_v(r);return t&&t.setOutputEnd((e||this).count()),e}function _v(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var i=t.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(r.uid))}return i}}const xe=Iu;var rp=function(){function r(){this.group=new nt,this.uid=ya("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,i,n){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,i,n){},r.prototype.updateLayout=function(e,t,i,n){},r.prototype.updateVisual=function(e,t,i,n){},r.prototype.toggleBlurSeries=function(e,t,i){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();bc(rp);su(rp);const At=rp;function ip(){var r=_t();return function(e){var t=r(e),i=e.pipelineContext,n=!!t.large,a=!!t.progressiveRender,o=t.large=!!(i&&i.large),s=t.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var Dx=_t(),oP=ip(),np=function(){function r(){this.group=new nt,this.uid=ya("viewChart"),this.renderTask=go({plan:sP,reset:lP}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,i,n){},r.prototype.highlight=function(e,t,i,n){var a=e.getData(n&&n.dataType);a&&iy(a,n,"emphasis")},r.prototype.downplay=function(e,t,i,n){var a=e.getData(n&&n.dataType);a&&iy(a,n,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,i,n){this.render(e,t,i,n)},r.prototype.updateLayout=function(e,t,i,n){this.render(e,t,i,n)},r.prototype.updateVisual=function(e,t,i,n){this.render(e,t,i,n)},r.prototype.eachRendered=function(e){_u(this.group,e)},r.markUpdateMethod=function(e,t){Dx(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function ry(r,e,t){r&&lv(r)&&(e==="emphasis"?ia:na)(r,t)}function iy(r,e,t){var i=gn(r,e),n=e&&e.highlightKey!=null?BD(e.highlightKey):null;i!=null?b(Ct(i),function(a){ry(r.getItemGraphicEl(a),t,n)}):r.eachItemGraphicEl(function(a){ry(a,t,n)})}bc(np);su(np);function sP(r){return oP(r.model)}function lP(r){var e=r.model,t=r.ecModel,i=r.api,n=r.payload,a=e.pipelineContext.progressiveRender,o=r.view,s=n&&Dx(n).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,i,n),uP[l]}var uP={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const Ut=np;var kl="\0__throttleOriginMethod",ny="\0__throttleRate",ay="\0__throttleType";function Pu(r,e,t){var i,n=0,a=0,o=null,s,l,u,f;e=e||0;function h(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var c=function(){for(var v=[],p=0;p<arguments.length;p++)v[p]=arguments[p];i=new Date().getTime(),l=this,u=v;var d=f||e,g=f||t;f=null,s=i-(g?n:a)-d,clearTimeout(o),g?o=setTimeout(h,d):s>=0?h():o=setTimeout(h,-s),n=i};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function Jo(r,e,t,i){var n=r[e];if(n){var a=n[kl]||n,o=n[ay],s=n[ny];if(s!==t||o!==i){if(t==null||!i)return r[e]=a;n=r[e]=Pu(a,t,i==="debounce"),n[kl]=a,n[ay]=i,n[ny]=t}return n}}function Ro(r,e){var t=r[e];t&&t[kl]&&(t.clear&&t.clear(),r[e]=t[kl])}var oy=_t(),sy={itemStyle:ea(VS,!0),lineStyle:ea(zS,!0)},fP={lineStyle:"stroke",itemStyle:"fill"};function Ix(r,e){var t=r.visualStyleMapper||sy[e];return t||sy.itemStyle}function Px(r,e){var t=r.visualDrawType||fP[e];return t||"fill"}var hP={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=r.getModel(i),a=Ix(r,i),o=a(n),s=n.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=Px(r,i),u=o[l],f=K(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var c=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=c,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||K(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||K(o.stroke)?c:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(v,p){var d=r.getDataParams(p),g=O({},o);g[l]=f(d),v.setItemVisual(p,"style",g)}}}},ka=new Tt,vP={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=Ix(r,i),a=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){ka.option=l[i];var u=n(ka),f=o.ensureUniqueItemVisual(s,"style");O(f,u),ka.option.decal&&(o.setItemVisual(s,"decal",ka.option.decal),ka.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},cP={performRawSeries:!0,overallReset:function(r){var e=U();r.eachSeries(function(t){var i=t.getColorBy();if(!t.isColorBySeries()){var n=t.type+"-"+i,a=e.get(n);a||(a={},e.set(n,a)),oy(t).scope=a}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var i=t.getRawData(),n={},a=t.getData(),o=oy(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=Px(t,s);a.each(function(u){var f=a.getRawIndex(u);n[f]=u}),i.each(function(u){var f=n[u],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=i.getName(u)||u+"",p=i.count();c[l]=t.getColorFromPalette(v,o,p)}})}})}},Ms=Math.PI;function pP(r,e){e=e||{},q(e,{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 nt,i=new pt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(i);var n=new dt({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new pt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(a);var o;return e.showSpinner&&(o=new pu({shape:{startAngle:-Ms/2,endAngle:-Ms/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Ms*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Ms*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var Lx=function(){function r(e,t,i,n){this._stageTaskMap=U(),this.ecInstance=e,this.api=t,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),n=i.context,a=!t&&i.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var i=this._pipelineMap.get(e.uid),n=e.getData(),a=n.count(),o=i.progressiveEnabled&&t.incrementalPrepareRender&&a>=i.threshold,s=e.get("large")&&a>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?a:null;e.pipelineContext=i.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,i=t._pipelineMap=U();e.eachSeries(function(n){var a=n.getProgressive(),o=n.uid;i.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:a&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),t._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),i=this.api;b(this._allHandlers,function(n){var a=e.get(n.uid)||e.set(n.uid,{}),o="";ue(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,t,i),n.overallReset&&this._createOverallStageTask(n,a,t,i)},this)},r.prototype.prepareView=function(e,t,i,n){var a=e.renderTask,o=a.context;o.model=t,o.ecModel=i,o.api=n,a.__block=!e.incrementalPrepareRender,this._pipe(t,a)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,i){this._performStageTasks(this._visualHandlers,e,t,i)},r.prototype._performStageTasks=function(e,t,i,n){n=n||{};var a=!1,o=this;b(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,p=c.agentStubMap;p.each(function(g){s(n,g)&&(g.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,i);var d=o.getPerformArgs(c,n.block);p.each(function(g){g.perform(d)}),c.perform(d)&&(a=!0)}else h&&h.each(function(g,y){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,i),g.perform(m)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(i){t=i.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,i,n){var a=this,o=t.seriesTaskMap,s=t.seriesTaskMap=U(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,n).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||go({plan:_P,reset:SP,count:wP}));v.context={model:h,ecModel:i,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(h,v)}},r.prototype._createOverallStageTask=function(e,t,i,n){var a=this,o=t.overallTask=t.overallTask||go({reset:dP});o.context={ecModel:i,api:n,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=U(),u=e.seriesType,f=e.getTargetSeries,h=!0,c=!1,v="";ue(!e.createOnAllSeries,v),u?i.eachRawSeriesByType(u,p):f?f(i,n).each(p):(h=!1,b(i.getSeries(),p));function p(d){var g=d.uid,y=l.set(g,s&&s.get(g)||(c=!0,go({reset:gP,onDirty:mP})));y.context={model:d,overallProgress:h},y.agent=o,y.__block=h,a._pipe(d,y)}c&&o.dirty()},r.prototype._pipe=function(e,t){var i=e.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=t),n.tail&&n.tail.pipe(t),n.tail=t,t.__idxInPipeline=n.count++,t.__pipeline=n},r.wrapStageHandler=function(e,t){return K(e)&&(e={overallReset:e,seriesType:bP(e)}),e.uid=ya("stageHandler"),t&&(e.visualType=t),e},r}();function dP(r){r.overallReset(r.ecModel,r.api,r.payload)}function gP(r){return r.overallProgress&&yP}function yP(){this.agent.dirty(),this.getDownstream().dirty()}function mP(){this.agent&&this.agent.dirty()}function _P(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function SP(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Ct(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?V(e,function(t,i){return Rx(i)}):xP}var xP=Rx(0);function Rx(r){return function(e,t){var i=t.data,n=t.resetDefines[r];if(n&&n.dataEach)for(var a=e.start;a<e.end;a++)n.dataEach(i,a);else n&&n.progress&&n.progress(e,i)}}function wP(r){return r.data.count()}function bP(r){Ol=null;try{r(Eo,Ex)}catch(e){}return Ol}var Eo={},Ex={},Ol;kx(Eo,Jc);kx(Ex,ox);Eo.eachSeriesByType=Eo.eachRawSeriesByType=function(r){Ol=r};Eo.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Ol=r.subType)};function kx(r,e){for(var t in e.prototype)r[t]=zt}var ly=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const TP={color:ly,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],ly]};var te="#B9B8CE",uy="#100C2A",Ds=function(){return{axisLine:{lineStyle:{color:te}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},fy=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Ox={darkMode:!0,color:fy,backgroundColor:uy,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:te}},textStyle:{color:te},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:te}},dataZoom:{borderColor:"#71708A",textStyle:{color:te},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:te}},timeline:{lineStyle:{color:te},label:{color:te},controlStyle:{color:te,borderColor:te}},calendar:{itemStyle:{color:uy},dayLabel:{color:te},monthLabel:{color:te},yearLabel:{color:te}},timeAxis:Ds(),logAxis:Ds(),valueAxis:Ds(),categoryAxis:Ds(),line:{symbol:"circle"},graph:{color:fy},gauge:{title:{color:te},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:te},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Ox.categoryAxis.splitLine.show=!1;var CP=function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},i={},n={};if(F(e)){var a=_r(e);t.mainType=a.main||null,t.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};b(e,function(l,u){for(var f=!1,h=0;h<o.length;h++){var c=o[h],v=u.lastIndexOf(c);if(v>0&&v===u.length-c.length){var p=u.slice(0,v);p!=="data"&&(t.mainType=p,t[c.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:t,dataQuery:i,otherQuery:n}},r.prototype.filter=function(e,t){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,n,a));function f(h,c,v,p){return h[v]==null||c[p||v]===h[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Sv=["symbol","symbolSize","symbolRotate","symbolOffset"],hy=Sv.concat(["symbolKeepAspect"]),AP={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<Sv.length;o++){var s=Sv[o],l=r.get(s);K(l)?(a=!0,n[s]=l):i[s]=l}if(i.symbol=i.symbol||r.defaultSymbol,t.setVisual(O({legendIcon:r.legendIcon||i.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},i)),e.isSeriesFiltered(r))return;var u=at(n);function f(h,c){for(var v=r.getRawValue(c),p=r.getDataParams(c),d=0;d<u.length;d++){var g=u[d];h.setItemVisual(c,g,n[g](v,p))}}return{dataEach:a?f:null}}},MP={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<hy.length;s++){var l=hy[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(a,l,u)}}return{dataEach:t.hasItemOption?i:null}}};function Bx(r,e,t){switch(t){case"color":var i=r.getItemVisual(e,"style");return i[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t)}}function Nx(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e)}}function DP(r,e,t,i){switch(t){case"color":var n=r.ensureUniqueItemVisual(e,"style");n[r.getVisual("drawType")]=i,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,i);break}}function zx(r,e){function t(i,n){var a=[];return i.eachComponent({mainType:"series",subType:r,query:n},function(o){a.push(o.seriesIndex)}),a}b([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(i){e(i[0],function(n,a,o){n=O({},n),o.dispatchAction(O(n,{type:i[1],seriesIndex:t(a,n)}))})})}function On(r,e,t,i,n){var a=r+e;t.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var h=o.getData(),c=gn(h,n.fromActionPayload);t.trigger(a,{type:a,seriesId:o.id,name:z(c)?h.getName(c[0]):h.getName(c),selected:F(l)?l:O({},l)})}})}function IP(r,e,t){r.on("selectchanged",function(i){var n=t.getModel();i.isFromClick?(On("map","selectchanged",e,n,i),On("pie","selectchanged",e,n,i)):i.fromAction==="select"?(On("map","selected",e,n,i),On("pie","selected",e,n,i)):i.fromAction==="unselect"&&(On("map","unselected",e,n,i),On("pie","unselected",e,n,i))})}function an(r,e,t){for(var i;r&&!(e(r)&&(i=r,t));)r=r.__hostTarget||r.parent;return i}var PP=Math.round(Math.random()*9),LP=typeof Object.defineProperty=="function",RP=function(){function r(){this._id="__ec_inner_"+PP++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var i=this._guard(e);return LP?Object.defineProperty(i,this._id,{value:t,enumerable:!1,configurable:!0}):i[this._id]=t,this},r.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},r.prototype.has=function(e){return!!this._guard(e)[this._id]},r.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},r}(),EP=gt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,i=e.cy,n=e.width/2,a=e.height/2;r.moveTo(t,i-a),r.lineTo(t+n,i+a),r.lineTo(t-n,i+a),r.closePath()}}),kP=gt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,i=e.cy,n=e.width/2,a=e.height/2;r.moveTo(t,i-a),r.lineTo(t+n,i),r.lineTo(t,i+a),r.lineTo(t-n,i),r.closePath()}}),OP=gt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,i=e.y,n=e.width/5*3,a=Math.max(n,e.height),o=n/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,h=Math.sin(u),c=Math.cos(u),v=o*.6,p=o*.7;r.moveTo(t-f,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+f-h*v,l+s+c*v,t,i-p,t,i),r.bezierCurveTo(t,i-p,t-f+h*v,l+s+c*v,t-f,l+s),r.closePath()}}),BP=gt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,i=e.width,n=e.x,a=e.y,o=i/3*2;r.moveTo(n,a),r.lineTo(n+o,a+t),r.lineTo(n,a+t/4*3),r.lineTo(n-o,a+t),r.lineTo(n,a),r.closePath()}}),NP={line:ae,rect:pt,roundRect:pt,square:pt,circle:Yr,diamond:kP,pin:OP,arrow:BP,triangle:EP},zP={line:function(r,e,t,i,n){n.x1=r,n.y1=e+i/2,n.x2=r+t,n.y2=e+i/2},rect:function(r,e,t,i,n){n.x=r,n.y=e,n.width=t,n.height=i},roundRect:function(r,e,t,i,n){n.x=r,n.y=e,n.width=t,n.height=i,n.r=Math.min(t,i)/4},square:function(r,e,t,i,n){var a=Math.min(t,i);n.x=r,n.y=e,n.width=a,n.height=a},circle:function(r,e,t,i,n){n.cx=r+t/2,n.cy=e+i/2,n.r=Math.min(t,i)/2},diamond:function(r,e,t,i,n){n.cx=r+t/2,n.cy=e+i/2,n.width=t,n.height=i},pin:function(r,e,t,i,n){n.x=r+t/2,n.y=e+i/2,n.width=t,n.height=i},arrow:function(r,e,t,i,n){n.x=r+t/2,n.y=e+i/2,n.width=t,n.height=i},triangle:function(r,e,t,i,n){n.cx=r+t/2,n.cy=e+i/2,n.width=t,n.height=i}},Bl={};b(NP,function(r,e){Bl[e]=new r});var VP=gt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var i=Cl(r,e,t),n=this.shape;return n&&n.symbolType==="pin"&&e.position==="inside"&&(i.y=t.y+t.height*.4),i},buildPath:function(r,e,t){var i=e.symbolType;if(i!=="none"){var n=Bl[i];n||(i="rect",n=Bl[i]),zP[i](e.x,e.y,e.width,e.height,n.shape),n.buildPath(r,n.shape,t)}}});function FP(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||"#fff",t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function Yt(r,e,t,i,n,a,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=Bc(r.slice(8),new lt(e,t,i,n),o?"center":"cover"):r.indexOf("path://")===0?l=gu(r.slice(7),{},new lt(e,t,i,n),o?"center":"cover"):l=new VP({shape:{symbolType:r,x:e,y:t,width:i,height:n}}),l.__isEmptyBrush=s,l.setColor=FP,a&&l.setColor(a),l}function ap(r){return z(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Lu(r,e){if(r!=null)return z(r)||(r=[r,r]),[Q(r[0],e[0])||0,Q(J(r[1],r[0]),e[1])||0]}function on(r){return isFinite(r)}function GP(r,e,t){var i=e.x==null?0:e.x,n=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(i=i*t.width+t.x,n=n*t.width+t.x,a=a*t.height+t.y,o=o*t.height+t.y),i=on(i)?i:0,n=on(n)?n:1,a=on(a)?a:0,o=on(o)?o:0;var s=r.createLinearGradient(i,a,n,o);return s}function HP(r,e,t){var i=t.width,n=t.height,a=Math.min(i,n),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*i+t.x,s=s*n+t.y,l=l*a),o=on(o)?o:.5,s=on(s)?s:.5,l=l>=0&&on(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function vy(r,e,t){for(var i=e.type==="radial"?HP(r,e,t):GP(r,e,t),n=e.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function WP(r,e){if(r===e||!r&&!e)return!1;if(!r||!e||r.length!==e.length)return!0;for(var t=0;t<r.length;t++)if(r[t]!==e[t])return!0;return!1}function Is(r){return parseInt(r,10)}function cy(r,e,t){var i=["width","height"][e],n=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(t[i]!=null&&t[i]!=="auto")return parseFloat(t[i]);var s=document.defaultView.getComputedStyle(r);return(r[n]||Is(s[i])||Is(r.style[i]))-(Is(s[a])||0)-(Is(s[o])||0)|0}function UP(r,e){return!r||r==="solid"||!(e>0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:mt(r)?[r]:z(r)?r:null}function op(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&UP(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(t){var n=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(t=V(t,function(a){return a/n}),i/=n)}return[t,i]}var YP=new mi(!0);function Nl(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function py(r){return typeof r=="string"&&r!=="none"}function zl(r){var e=r.fill;return e!=null&&e!=="none"}function dy(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function gy(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function yy(r,e,t){var i=Tc(e.image,e.__image,t);if(lu(i)){var n=r.createPattern(i,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*no),a.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(a)}return n}}function XP(r,e,t,i){var n,a=Nl(t),o=zl(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||YP,h=e.__dirty;if(!i){var c=t.fill,v=t.stroke,p=o&&!!c.colorStops,d=a&&!!v.colorStops,g=o&&!!c.image,y=a&&!!v.image,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0;(p||d)&&(x=e.getBoundingRect()),p&&(m=h?vy(r,c,x):e.__canvasFillGradient,e.__canvasFillGradient=m),d&&(_=h?vy(r,v,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),g&&(S=h||!e.__canvasFillPattern?yy(r,c,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(w=h||!e.__canvasStrokePattern?yy(r,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),p?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),d?r.strokeStyle=_:y&&(w?r.strokeStyle=w:a=!1)}var T=e.getGlobalScale();f.setScale(T[0],T[1],e.segmentIgnoreThreshold);var C,A;r.setLineDash&&t.lineDash&&(n=op(e),C=n[0],A=n[1]);var M=!0;(u||h&Hn)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),M=!1),f.reset(),e.buildPath(f,e.shape,i),f.toStatic(),e.pathUpdated()),M&&f.rebuildPath(r,l?s:1),C&&(r.setLineDash(C),r.lineDashOffset=A),i||(t.strokeFirst?(a&&gy(r,t),o&&dy(r,t)):(o&&dy(r,t),a&&gy(r,t))),C&&r.setLineDash([])}function $P(r,e,t){var i=e.__image=Tc(t.image,e.__image,e,e.onload);if(!(!i||!lu(i))){var n=t.x||0,a=t.y||0,o=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),t.sWidth&&t.sHeight){var u=t.sx||0,f=t.sy||0;r.drawImage(i,u,f,t.sWidth,t.sHeight,n,a,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,h=o-u,c=s-f;r.drawImage(i,u,f,h,c,n,a,o,s)}else r.drawImage(i,n,a,o,s)}}function ZP(r,e,t){var i,n=t.text;if(n!=null&&(n+=""),n){r.font=t.font||gi,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var a=void 0,o=void 0;r.setLineDash&&t.lineDash&&(i=op(e),a=i[0],o=i[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),t.strokeFirst?(Nl(t)&&r.strokeText(n,t.x,t.y),zl(t)&&r.fillText(n,t.x,t.y)):(zl(t)&&r.fillText(n,t.x,t.y),Nl(t)&&r.strokeText(n,t.x,t.y)),a&&r.setLineDash([])}}var my=["shadowBlur","shadowOffsetX","shadowOffsetY"],_y=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Vx(r,e,t,i,n){var a=!1;if(!i&&(t=t||{},e===t))return!1;if(i||e.opacity!==t.opacity){me(r,n),a=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?un.opacity:o}(i||e.blend!==t.blend)&&(a||(me(r,n),a=!0),r.globalCompositeOperation=e.blend||un.blend);for(var s=0;s<my.length;s++){var l=my[s];(i||e[l]!==t[l])&&(a||(me(r,n),a=!0),r[l]=r.dpr*(e[l]||0))}return(i||e.shadowColor!==t.shadowColor)&&(a||(me(r,n),a=!0),r.shadowColor=e.shadowColor||un.shadowColor),a}function Sy(r,e,t,i,n){var a=ko(e,n.inHover),o=i?null:t&&ko(t,n.inHover)||{};if(a===o)return!1;var s=Vx(r,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(me(r,n),s=!0),py(a.fill)&&(r.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(me(r,n),s=!0),py(a.stroke)&&(r.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(me(r,n),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);r.lineWidth!==u&&(s||(me(r,n),s=!0),r.lineWidth=u)}for(var f=0;f<_y.length;f++){var h=_y[f],c=h[0];(i||a[c]!==o[c])&&(s||(me(r,n),s=!0),r[c]=a[c]||h[1])}return s}function qP(r,e,t,i,n){return Vx(r,ko(e,n.inHover),t&&ko(t,n.inHover),i,n)}function Fx(r,e){var t=e.transform,i=r.dpr||1;t?r.setTransform(i*t[0],i*t[1],i*t[2],i*t[3],i*t[4],i*t[5]):r.setTransform(i,0,0,i,0,0)}function KP(r,e,t){for(var i=!1,n=0;n<r.length;n++){var a=r[n];i=i||a.isZeroArea(),Fx(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}t.allClipped=i}function jP(r,e){return r&&e?r[0]!==e[0]||r[1]!==e[1]||r[2]!==e[2]||r[3]!==e[3]||r[4]!==e[4]||r[5]!==e[5]:!(!r&&!e)}var xy=1,wy=2,by=3,Ty=4;function JP(r){var e=zl(r),t=Nl(r);return!(r.lineDash||!(+e^+t)||e&&typeof r.fill!="string"||t&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function me(r,e){e.batchFill&&r.fill(),e.batchStroke&&r.stroke(),e.batchFill="",e.batchStroke=""}function ko(r,e){return e&&r.__hoverStyle||r.style}function Gx(r,e){xv(r,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function xv(r,e,t,i){var n=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~pr,e.__isRendered=!1;return}var a=e.__clipPaths,o=t.prevElClipPaths,s=!1,l=!1;if((!o||WP(a,o))&&(o&&o.length&&(me(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),a&&a.length&&(me(r,t),r.save(),KP(a,r,t),s=!0),t.prevElClipPaths=a),t.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var f=e instanceof gt&&e.autoBatch&&JP(e.style);s||jP(n,u.transform)?(me(r,t),Fx(r,e)):f||me(r,t);var h=ko(e,t.inHover);e instanceof gt?(t.lastDrawType!==xy&&(l=!0,t.lastDrawType=xy),Sy(r,e,u,l,t),(!f||!t.batchFill&&!t.batchStroke)&&r.beginPath(),XP(r,e,h,f),f&&(t.batchFill=h.fill||"",t.batchStroke=h.stroke||"")):e instanceof ra?(t.lastDrawType!==by&&(l=!0,t.lastDrawType=by),Sy(r,e,u,l,t),ZP(r,e,h)):e instanceof he?(t.lastDrawType!==wy&&(l=!0,t.lastDrawType=wy),qP(r,e,u,l,t),$P(r,e,h)):e.getTemporalDisplayables&&(t.lastDrawType!==Ty&&(l=!0,t.lastDrawType=Ty),QP(r,e,t)),f&&i&&me(r,t),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function QP(r,e,t){var i=e.getDisplayables(),n=e.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover},o,s;for(o=e.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),xv(r,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=n.length;u<f;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),xv(r,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var Vf=new RP,Cy=new Xo(100),Ay=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Vl(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),i=e.getZr(),n=i.painter.type==="svg";r.dirty&&Vf.delete(r);var a=Vf.get(r);if(a)return a;var o=q(r,{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});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/t,Vf.set(r,s),r.dirty=!1,s;function l(u){for(var f=[t],h=!0,c=0;c<Ay.length;++c){var v=o[Ay[c]];if(v!=null&&!z(v)&&!F(v)&&!mt(v)&&typeof v!="boolean"){h=!1;break}f.push(v)}var p;if(h){p=f.join(",")+(n?"-svg":"");var d=Cy.get(p);d&&(n?u.svgElement=d:u.image=d)}var g=Wx(o.dashArrayX),y=tL(o.dashArrayY),m=Hx(o.symbol),_=eL(g),S=Ux(y),w=!n&&yi.createCanvas(),x=n&&{tag:"g",attrs:{},key:"dcl",children:[]},T=A(),C;w&&(w.width=T.width*t,w.height=T.height*t,C=w.getContext("2d")),M(),h&&Cy.put(p,w||x),u.image=w,u.svgElement=x,u.svgWidth=T.width,u.svgHeight=T.height;function A(){for(var D=1,I=0,P=_.length;I<P;++I)D=Nd(D,_[I]);for(var L=1,I=0,P=m.length;I<P;++I)L=Nd(L,m[I].length);D*=L;var R=S*_.length*m.length;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function M(){C&&(C.clearRect(0,0,w.width,w.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,w.width,w.height)));for(var D=0,I=0;I<y.length;++I)D+=y[I];if(D<=0)return;for(var P=-S,L=0,R=0,k=0;P<T.height;){if(L%2===0){for(var G=R/2%m.length,B=0,N=0,H=0;B<T.width*2;){for(var Z=0,I=0;I<g[k].length;++I)Z+=g[k][I];if(Z<=0)break;if(N%2===0){var $=(1-o.symbolSize)*.5,ot=B+g[k][N]*$,ct=P+y[L]*$,Rt=g[k][N]*o.symbolSize,St=y[L]*o.symbolSize,$t=H/2%m[G].length;Nt(ot,ct,Rt,St,m[G][$t])}B+=g[k][N],++H,++N,N===g[k].length&&(N=0)}++k,k===g.length&&(k=0)}P+=y[L],++R,++L,L===y.length&&(L=0)}function Nt(Mt,wt,j,ut,ve){var Dt=n?1:t,Ye=Yt(ve,Mt*Dt,wt*Dt,j*Dt,ut*Dt,o.color,o.symbolKeepAspect);if(n){var ce=i.painter.renderOneToVNode(Ye);ce&&x.children.push(ce)}else Gx(C,Ye)}}}}function Hx(r){if(!r||r.length===0)return[["rect"]];if(F(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!F(r[t])){e=!1;break}if(e)return Hx([r]);for(var i=[],t=0;t<r.length;++t)F(r[t])?i.push([r[t]]):i.push(r[t]);return i}function Wx(r){if(!r||r.length===0)return[[0,0]];if(mt(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,i=0;i<r.length;++i)if(!mt(r[i])){t=!1;break}if(t)return Wx([r]);for(var n=[],i=0;i<r.length;++i)if(mt(r[i])){var e=Math.ceil(r[i]);n.push([e,e])}else{var e=V(r[i],function(s){return Math.ceil(s)});e.length%2===1?n.push(e.concat(e)):n.push(e)}return n}function tL(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(mt(r)){var e=Math.ceil(r);return[e,e]}var t=V(r,function(i){return Math.ceil(i)});return r.length%2?t.concat(t):t}function eL(r){return V(r,function(e){return Ux(e)})}function Ux(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}function rL(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var i=t.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var l=i.ensureUniqueItemVisual(o,"style");l.decal=Vl(s,e)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=Vl(n,e)}}})}var je=new ir,Yx={};function iL(r,e){Yx[r]=e}function Xx(r){return Yx[r]}var nL="5.5.1",aL={zrender:"5.6.0"},oL=1,sL=800,lL=900,uL=1e3,fL=2e3,hL=5e3,$x=1e3,vL=1100,sp=2e3,Zx=3e3,cL=4e3,Ru=4500,pL=4600,dL=5e3,gL=6e3,qx=7e3,Kx={PROCESSOR:{FILTER:uL,SERIES_FILTER:sL,STATISTIC:hL},VISUAL:{LAYOUT:$x,PROGRESSIVE_LAYOUT:vL,GLOBAL:sp,CHART:Zx,POST_CHART_LAYOUT:pL,COMPONENT:cL,BRUSH:dL,CHART_ITEM:Ru,ARIA:gL,DECAL:qx}},qt="__flagInMainProcess",de="__pendingUpdate",Ff="__needsUpdateStatus",My=/^[a-zA-Z0-9_]+$/,Gf="__connectUpdateStatus",Dy=0,yL=1,mL=2;function jx(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return Qx(this,r,e)}}function Jx(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Qx(this,r,e)}}function Qx(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),ir.prototype[e].apply(r,t)}var tw=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(ir),ew=tw.prototype;ew.on=Jx("on");ew.off=Jx("off");var Bn,Hf,Ps,Jr,Wf,Uf,Yf,Oa,Ba,Iy,Py,Xf,Ly,Ls,Ry,rw,Ae,Ey,Fl=function(r){E(e,r);function e(t,i,n){var a=r.call(this,new CP)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},F(i)&&(i=iw[i]),a._dom=t;var o="canvas",s="auto",l=!1;n.ssr&&R1(function(c){var v=it(c),p=v.dataIndex;if(p!=null){var d=U();return d.set("series_index",v.seriesIndex),d.set("data_index",p),v.ssrType&&d.set("ssr_type",v.ssrType),d}});var u=a._zr=Qh(t,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:J(n.useDirtyRect,l),useCoarsePointer:J(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=Pu(W(u.flush,u),17),i=X(i),i&&lx(i,!0),a._theme=i,a._locale=O2(n.locale||FS),a._coordSysMgr=new Au;var f=a._api=Ry(a);function h(c,v){return c.__prio-v.__prio}return Qs(Hl,h),Qs(wv,h),a._scheduler=new Lx(a,f,wv,Hl),a._messageCenter=new tw,a._initEvents(),a.resize=W(a.resize,a),u.animation.on("frame",a._onframe,a),Iy(u,a),Py(u,a),gl(a),a}return e.prototype._onframe=function(){if(!this._disposed){Ey(this);var t=this._scheduler;if(this[de]){var i=this[de].silent;this[qt]=!0;try{Bn(this),Jr.update.call(this,null,this[de].updateParams)}catch(l){throw this[qt]=!1,this[de]=null,l}this._zr.flush(),this[qt]=!1,this[de]=null,Oa.call(this,i),Ba.call(this,i)}else if(t.unfinished){var n=oL,a=this._model,o=this._api;t.unfinished=!1;do{var s=+new Date;t.performSeriesTasks(a),t.performDataProcessorTasks(a),Uf(this,a),t.performVisualTasks(a),Ls(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,i,n){if(!this[qt]){if(this._disposed){this.id;return}var a,o,s;if(Y(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[qt]=!0,!this._model||i){var l=new lI(this._api),u=this._theme,f=this._model=new Jc;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},bv);var h={seriesTransition:s,optionChanged:!0};if(n)this[de]={silent:a,updateParams:h},this[qt]=!1,this.getZr().wakeUp();else{try{Bn(this),Jr.update.call(this,null,h)}catch(c){throw this[de]=null,this[qt]=!1,c}this._ssr||this._zr.flush(),this[de]=null,this[qt]=!1,Oa.call(this,a),Ba.call(this,a)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ht.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var i=this._zr.painter;return i.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(ht.svgSupported){var t=this._zr,i=t.storage.getDisplayList();return b(i,function(n){n.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var i=t.excludeComponents,n=this._model,a=[],o=this;b(i,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return b(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var i=t.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(Wl[n]){var l=s,u=s,f=-s,h=-s,c=[],v=t&&t.pixelRatio||this.getDevicePixelRatio();b(vn,function(_,S){if(_.group===n){var w=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(X(t)),x=_.getDom().getBoundingClientRect();l=a(x.left,l),u=a(x.top,u),f=o(x.right,f),h=o(x.bottom,h),c.push({dom:w,left:x.left,top:x.top})}}),l*=v,u*=v,f*=v,h*=v;var p=f-l,d=h-u,g=yi.createCanvas(),y=Qh(g,{renderer:i?"svg":"canvas"});if(y.resize({width:p,height:d}),i){var m="";return b(c,function(_){var S=_.left-l,w=_.top-u;m+='<g transform="translate('+S+","+w+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new pt({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),b(c,function(_){var S=new he({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,i){return Wf(this,"convertToPixel",t,i)},e.prototype.convertFromPixel=function(t,i){return Wf(this,"convertFromPixel",t,i)},e.prototype.containPixel=function(t,i){if(this._disposed){this.id;return}var n=this._model,a,o=uo(n,t);return b(o,function(s,l){l.indexOf("Models")>=0&&b(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(i);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(a=a||h.containPoint(i,u))}},this)},this),!!a},e.prototype.getVisual=function(t,i){var n=this._model,a=uo(n,t,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?Bx(s,l,i):Nx(s,i)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;b(_L,function(i){var n=function(a){var o=t.getModel(),s=a.target,l,u=i==="globalout";if(u?l={}:s&&an(s,function(p){var d=it(p);if(d&&d.dataIndex!=null){var g=d.dataModel||o.getSeriesByIndex(d.seriesIndex);return l=g&&g.getDataParams(d.dataIndex,d.dataType,s)||{},!0}else if(d.eventData)return l=O({},d.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var c=f&&h!=null&&o.getComponent(f,h),v=c&&t[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];l.event=a,l.type=i,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:c,view:v},t.trigger(i,l)}};n.zrEventfulCallAtLast=!0,t._zr.on(i,n,t)}),b(yo,function(i,n){t._messageCenter.on(n,function(a){this.trigger(n,a)},t)}),b(["selectchanged"],function(i){t._messageCenter.on(i,function(n){this.trigger(i,n)},t)}),IP(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&W1(this.getDom(),up,"");var i=this,n=i._api,a=i._model;b(i._componentsViews,function(o){o.dispose(a,n)}),b(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete vn[i.id]},e.prototype.resize=function(t){if(!this[qt]){if(this._disposed){this.id;return}this._zr.resize(t);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=t&&t.silent;this[de]&&(a==null&&(a=this[de].silent),n=!0,this[de]=null),this[qt]=!0;try{n&&Bn(this),Jr.update.call(this,{type:"resize",animation:O({duration:0},t&&t.animation)})}catch(o){throw this[qt]=!1,o}this[qt]=!1,Oa.call(this,a),Ba.call(this,a)}}},e.prototype.showLoading=function(t,i){if(this._disposed){this.id;return}if(Y(t)&&(i=t,t=""),t=t||"default",this.hideLoading(),!!Tv[t]){var n=Tv[t](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var i=O({},t);return i.type=yo[t.type],i},e.prototype.dispatchAction=function(t,i){if(this._disposed){this.id;return}if(Y(i)||(i={silent:!!i}),!!Gl[t.type]&&this._model){if(this[qt]){this._pendingActions.push(t);return}var n=i.silent;Yf.call(this,t,n);var a=i.flush;a?this._zr.flush():a!==!1&&ht.browser.weChat&&this._throttledZrFlush(),Oa.call(this,n),Ba.call(this,n)}},e.prototype.updateLabelLayout=function(){je.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var i=t.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Bn=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),Hf(h,!0),Hf(h,!1),c.plan()},Hf=function(h,c){for(var v=h._model,p=h._scheduler,d=c?h._componentsViews:h._chartsViews,g=c?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_<d.length;_++)d[_].__alive=!1;c?v.eachComponent(function(x,T){x!=="series"&&S(T)}):v.eachSeries(S);function S(x){var T=x.__requireNewView;x.__requireNewView=!1;var C="_ec_"+x.id+"_"+x.type,A=!T&&g[C];if(!A){var M=_r(x.type),D=c?At.getClass(M.main,M.sub):Ut.getClass(M.sub);A=new D,A.init(v,m),g[C]=A,d.push(A),y.add(A.group)}x.__viewId=A.__id=C,A.__alive=!0,A.__model=x,A.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!c&&p.prepareView(A,x,v,m)}for(var _=0;_<d.length;){var w=d[_];w.__alive?_++:(!c&&w.renderTask.dispose(),y.remove(w.group),w.dispose(v,m),d.splice(_,1),g[w.__id]===w&&delete g[w.__id],w.__id=w.group.__ecComponentInfo=null)}},Ps=function(h,c,v,p,d){var g=h._model;if(g.setUpdatePayload(v),!p){b([].concat(h._componentsViews).concat(h._chartsViews),w);return}var y={};y[p+"Id"]=v[p+"Id"],y[p+"Index"]=v[p+"Index"],y[p+"Name"]=v[p+"Name"];var m={mainType:p,query:y};d&&(m.subType=d);var _=v.excludeSeriesId,S;_!=null&&(S=U(),b(Ct(_),function(x){var T=jt(x,null);T!=null&&S.set(T,!0)})),g&&g.eachComponent(m,function(x){var T=S&&S.get(x.id)!=null;if(!T)if(ug(v))if(x instanceof xe)v.type===fn&&!v.notBlur&&!x.get(["emphasis","disabled"])&&MD(x,v,h._api);else{var C=Ic(x.mainType,x.componentIndex,v.name,h._api),A=C.focusSelf,M=C.dispatchers;v.type===fn&&A&&!v.notBlur&&sv(x.mainType,x.componentIndex,h._api),M&&b(M,function(D){v.type===fn?ia(D):na(D)})}else uv(v)&&x instanceof xe&&(PD(x,v,h._api),sg(x),Ae(h))},h),g&&g.eachComponent(m,function(x){var T=S&&S.get(x.id)!=null;T||w(h[p==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},h);function w(x){x&&x.__alive&&x[c]&&x[c](x.__model,g,h._api,v)}},Jr={prepareAndUpdate:function(h){Bn(this),Jr.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,c){var v=this._model,p=this._api,d=this._zr,g=this._coordSysMgr,y=this._scheduler;if(v){v.setUpdatePayload(h),y.restoreData(v,h),y.performSeriesTasks(v),g.create(v,p),y.performDataProcessorTasks(v,h),Uf(this,v),g.update(v,p),t(v),y.performVisualTasks(v,h),Xf(this,v,p,h,c);var m=v.get("backgroundColor")||"transparent",_=v.get("darkMode");d.setBackgroundColor(m),_!=null&&_!=="auto"&&d.setDarkMode(_),je.trigger("afterupdate",v,p)}},updateTransform:function(h){var c=this,v=this._model,p=this._api;if(v){v.setUpdatePayload(h);var d=[];v.eachComponent(function(y,m){if(y!=="series"){var _=c.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,v,p,h);S&&S.update&&d.push(_)}else d.push(_)}});var g=U();v.eachSeries(function(y){var m=c._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,v,p,h);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),t(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0,dirtyMap:g}),Ls(this,v,p,h,{},g),je.trigger("afterupdate",v,p)}},updateView:function(h){var c=this._model;c&&(c.setUpdatePayload(h),Ut.markUpdateMethod(h,"updateView"),t(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0}),Xf(this,c,this._api,h,{}),je.trigger("afterupdate",c,this._api))},updateVisual:function(h){var c=this,v=this._model;v&&(v.setUpdatePayload(h),v.eachSeries(function(p){p.getData().clearAllVisual()}),Ut.markUpdateMethod(h,"updateVisual"),t(v),this._scheduler.performVisualTasks(v,h,{visualType:"visual",setDirty:!0}),v.eachComponent(function(p,d){if(p!=="series"){var g=c.getViewOfComponentModel(d);g&&g.__alive&&g.updateVisual(d,v,c._api,h)}}),v.eachSeries(function(p){var d=c._chartsMap[p.__viewId];d.updateVisual(p,v,c._api,h)}),je.trigger("afterupdate",v,this._api))},updateLayout:function(h){Jr.update.call(this,h)}},Wf=function(h,c,v,p){if(h._disposed){h.id;return}for(var d=h._model,g=h._coordSysMgr.getCoordinateSystems(),y,m=uo(d,v),_=0;_<g.length;_++){var S=g[_];if(S[c]&&(y=S[c](d,m,p))!=null)return y}},Uf=function(h,c){var v=h._chartsMap,p=h._scheduler;c.eachSeries(function(d){p.updateStreamModes(d,v[d.__viewId])})},Yf=function(h,c){var v=this,p=this.getModel(),d=h.type,g=h.escapeConnect,y=Gl[d],m=y.actionInfo,_=(m.update||"update").split(":"),S=_.pop(),w=_[0]!=null&&_r(_[0]);this[qt]=!0;var x=[h],T=!1;h.batch&&(T=!0,x=V(h.batch,function(L){return L=q(O({},L),h),L.batch=null,L}));var C=[],A,M=uv(h),D=ug(h);if(D&&pS(this._api),b(x,function(L){if(A=y.action(L,v._model,v._api),A=A||O({},L),A.type=m.event||A.type,C.push(A),D){var R=wc(h),k=R.queryOptionMap,G=R.mainTypeSpecified,B=G?k.keys()[0]:"series";Ps(v,S,L,B),Ae(v)}else M?(Ps(v,S,L,"series"),Ae(v)):w&&Ps(v,S,L,w.main,w.sub)}),S!=="none"&&!D&&!M&&!w)try{this[de]?(Bn(this),Jr.update.call(this,h),this[de]=null):Jr[S].call(this,h)}catch(L){throw this[qt]=!1,L}if(T?A={type:m.event||d,escapeConnect:g,batch:C}:A=C[0],this[qt]=!1,!c){var I=this._messageCenter;if(I.trigger(A.type,A),M){var P={type:"selectchanged",escapeConnect:g,selected:LD(p),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};I.trigger(P.type,P)}}},Oa=function(h){for(var c=this._pendingActions;c.length;){var v=c.shift();Yf.call(this,v,h)}},Ba=function(h){!h&&this.trigger("updated")},Iy=function(h,c){h.on("rendered",function(v){c.trigger("rendered",v),h.animation.isFinished()&&!c[de]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},Py=function(h,c){h.on("mouseover",function(v){var p=v.target,d=an(p,lv);d&&(DD(d,v,c._api),Ae(c))}).on("mouseout",function(v){var p=v.target,d=an(p,lv);d&&(ID(d,v,c._api),Ae(c))}).on("click",function(v){var p=v.target,d=an(p,function(m){return it(m).dataIndex!=null},!0);if(d){var g=d.selected?"unselect":"select",y=it(d);c._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function t(h){h.clearColorPalette(),h.eachSeries(function(c){c.clearColorPalette()})}function i(h){var c=[],v=[],p=!1;if(h.eachComponent(function(m,_){var S=_.get("zlevel")||0,w=_.get("z")||0,x=_.getZLevelKey();p=p||!!x,(m==="series"?v:c).push({zlevel:S,z:w,idx:_.componentIndex,type:m,key:x})}),p){var d=c.concat(v),g,y;Qs(d,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),b(d,function(m){var _=h.getComponent(m.type,m.idx),S=m.zlevel,w=m.key;g!=null&&(S=Math.max(g,S)),w?(S===g&&w!==y&&S++,y=w):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}Xf=function(h,c,v,p,d){i(c),Ly(h,c,v,p,d),b(h._chartsViews,function(g){g.__alive=!1}),Ls(h,c,v,p,d),b(h._chartsViews,function(g){g.__alive||g.remove(c,v)})},Ly=function(h,c,v,p,d,g){b(g||h._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,c,v,p),s(m,y),f(m,y)})},Ls=function(h,c,v,p,d,g){var y=h._scheduler;d=O(d||{},{updatedSeries:c.getSeries()}),je.trigger("series:beforeupdate",c,v,d);var m=!1;c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=!0;var w=S.renderTask;y.updatePayload(w,p),u(_,S),g&&g.get(_.uid)&&w.dirty(),w.perform(y.getPerformArgs(w))&&(m=!0),S.group.silent=!!_.get("silent"),o(_,S),sg(_)}),y.unfinished=m||y.unfinished,je.trigger("series:layoutlabels",c,v,d),je.trigger("series:transition",c,v,d),c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];s(_,S),f(_,S)}),a(h,c),je.trigger("series:afterupdate",c,v,d)},Ae=function(h){h[Ff]=!0,h.getZr().wakeUp()},Ey=function(h){h[Ff]&&(h.getZr().storage.traverse(function(c){co(c)||n(c)}),h[Ff]=!1)};function n(h){for(var c=[],v=h.currentStates,p=0;p<v.length;p++){var d=v[p];d==="emphasis"||d==="blur"||d==="select"||c.push(d)}h.selected&&h.states.select&&c.push("select"),h.hoverState===hu&&h.states.emphasis?c.push("emphasis"):h.hoverState===fu&&h.states.blur&&c.push("blur"),h.useStates(c)}function a(h,c){var v=h._zr,p=v.storage,d=0;p.traverse(function(g){g.isGroup||d++}),d>c.get("hoverLayerThreshold")&&!ht.node&&!ht.worker&&c.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=h._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(p){p.isGroup||(p.style.blend=v)})}function s(h,c){if(!h.preventAutoZ){var v=h.get("z")||0,p=h.get("zlevel")||0;c.eachRendered(function(d){return l(d,v,p,-1/0),!0})}}function l(h,c,v,p){var d=h.getTextContent(),g=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_<m.length;_++)p=Math.max(l(m[_],c,v,p),p);else h.z=c,h.zlevel=v,p=Math.max(h.z2,p);if(d&&(d.z=c,d.zlevel=v,isFinite(p)&&(d.z2=p+2)),g){var S=h.textGuideLineConfig;g.z=c,g.zlevel=v,isFinite(p)&&(g.z2=p+(S&&S.showAbove?1:-1))}return p}function u(h,c){c.eachRendered(function(v){if(!co(v)){var p=v.getTextContent(),d=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(h,c){var v=h.getModel("stateAnimation"),p=h.isAnimationEnabled(),d=v.get("duration"),g=d>0?{duration:d,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(y){if(y.states&&y.states.emphasis){if(co(y))return;if(y instanceof gt&&ND(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(p){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&n(y)}})}Ry=function(h){return new(function(c){E(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(p){for(;p;){var d=p.__ecComponentInfo;if(d!=null)return h._model.getComponent(d.mainType,d.index);p=p.parent}},v.prototype.enterEmphasis=function(p,d){ia(p,d),Ae(h)},v.prototype.leaveEmphasis=function(p,d){na(p,d),Ae(h)},v.prototype.enterBlur=function(p){AD(p),Ae(h)},v.prototype.leaveBlur=function(p){fS(p),Ae(h)},v.prototype.enterSelect=function(p){hS(p),Ae(h)},v.prototype.leaveSelect=function(p){vS(p),Ae(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(p){return h.getViewOfComponentModel(p)},v.prototype.getViewOfSeriesModel=function(p){return h.getViewOfSeriesModel(p)},v}(ox))(h)},rw=function(h){function c(v,p){for(var d=0;d<v.length;d++){var g=v[d];g[Gf]=p}}b(yo,function(v,p){h._messageCenter.on(p,function(d){if(Wl[h.group]&&h[Gf]!==Dy){if(d&&d.escapeConnect)return;var g=h.makeActionFromEvent(d),y=[];b(vn,function(m){m!==h&&m.group===h.group&&y.push(m)}),c(y,Dy),b(y,function(m){m[Gf]!==yL&&m.dispatchAction(g)}),c(y,mL)}})})}}(),e}(ir),lp=Fl.prototype;lp.on=jx("on");lp.off=jx("off");lp.one=function(r,e,t){var i=this;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),i.off(r,n)}this.on.call(this,r,n,t)};var _L=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Gl={},yo={},wv=[],bv=[],Hl=[],iw={},Tv={},vn={},Wl={},SL=+new Date-0,xL=+new Date-0,up="_echarts_instance_";function wL(r,e,t){var i=!(t&&t.ssr);if(i){var n=fp(r);if(n)return n}var a=new Fl(r,e,t);return a.id="ec_"+SL++,vn[a.id]=a,i&&W1(r,up,a.id),rw(a),je.trigger("afterinit",a),a}function bL(r){if(z(r)){var e=r;r=null,b(e,function(t){t.group!=null&&(r=t.group)}),r=r||"g_"+xL++,b(e,function(t){t.group=r})}return Wl[r]=!0,r}function nw(r){Wl[r]=!1}var TL=nw;function CL(r){F(r)?r=vn[r]:r instanceof Fl||(r=fp(r)),r instanceof Fl&&!r.isDisposed()&&r.dispose()}function fp(r){return vn[SM(r,up)]}function AL(r){return vn[r]}function hp(r,e){iw[r]=e}function vp(r){st(bv,r)<0&&bv.push(r)}function cp(r,e){pp(wv,r,e,fL)}function aw(r){Eu("afterinit",r)}function ow(r){Eu("afterupdate",r)}function Eu(r,e){je.on(r,e)}function ar(r,e,t){K(e)&&(t=e,e="");var i=Y(r)?r.type:[r,r={event:e}][0];r.event=(r.event||i).toLowerCase(),e=r.event,!yo[e]&&(ue(My.test(i)&&My.test(e)),Gl[i]||(Gl[i]={action:t,actionInfo:r}),yo[e]=i)}function sw(r,e){Au.register(r,e)}function ML(r){var e=Au.get(r);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function lw(r,e){pp(Hl,r,e,$x,"layout")}function Ti(r,e){pp(Hl,r,e,Zx,"visual")}var ky=[];function pp(r,e,t,i,n){if((K(e)||Y(e))&&(t=e,e=i),!(st(ky,t)>=0)){ky.push(t);var a=Lx.wrapStageHandler(t,n);a.__prio=e,a.__raw=t,r.push(a)}}function dp(r,e){Tv[r]=e}function DL(r){X_({createCanvas:r})}function uw(r,e,t){var i=Xx("registerMap");i&&i(r,e,t)}function IL(r){var e=Xx("getMap");return e&&e(r)}var fw=NI;Ti(sp,hP);Ti(Ru,vP);Ti(Ru,cP);Ti(sp,AP);Ti(Ru,MP);Ti(qx,rL);vp(lx);cp(lL,SI);dp("default",pP);ar({type:fn,event:fn,update:fn},zt);ar({type:al,event:al,update:al},zt);ar({type:fo,event:fo,update:fo},zt);ar({type:ol,event:ol,update:ol},zt);ar({type:ho,event:ho,update:ho},zt);hp("light",TP);hp("dark",Ox);var PL={};function Na(r){return r==null?0:r.length||1}function Oy(r){return r}var gp=function(){function r(e,t,i,n,a,o){this._old=e,this._new=t,this._oldKeyGetter=i||Oy,this._newKeyGetter=n||Oy,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,i={},n=new Array(e.length),a=new Array(t.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(t,i,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=n[o],l=i[s],u=Na(l);if(u>1){var f=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(f,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,i={},n={},a=[],o=[];this._initIndexMap(e,i,a,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=i[l],f=n[l],h=Na(u),c=Na(f);if(h>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(h===1&&c===1)this._update&&this._update(f,u),n[l]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(h>1)for(var v=0;v<h;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(e,t){for(var i=0;i<e.length;i++){var n=e[i],a=t[n],o=Na(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);t[n]=null}},r.prototype._initIndexMap=function(e,t,i,n){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[n](e[o],o);if(a||(i[o]=s),!!t){var l=t[s],u=Na(l);u===0?(t[s]=o,a&&i.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r}(),LL=function(){function r(e,t){this._encode=e,this._schema=t}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function RL(r,e){var t={},i=t.encode={},n=U(),a=[],o=[],s={};b(r.dimensions,function(c){var v=r.getDimensionInfo(c),p=v.coordDim;if(p){var d=v.coordDimIndex;$f(i,p)[d]=c,v.isExtraCoord||(n.set(p,1),kL(v.type)&&(a[0]=c),$f(s,p)[d]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}QS.each(function(g,y){var m=$f(i,y),_=v.otherDims[y];_!=null&&_!==!1&&(m[_]=v.name)})});var l=[],u={};n.each(function(c,v){var p=i[v];u[v]=p[0],l=l.concat(p)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=V(l,function(c){return r.getDimensionInfo(c).storeDimIndex}),t.encodeFirstDimNotExtra=u;var f=i.label;f&&f.length&&(a=f.slice());var h=i.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,t.userOutput=new LL(s,e),t}function $f(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function EL(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function kL(r){return!(r==="ordinal"||r==="time")}var fl=function(){function r(e){this.otherDims={},e!=null&&O(this,e)}return r}(),OL=_t(),BL={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},hw=function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=pw(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return J(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=hx(this.source),i=!dw(e),n="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=t?h.name:null,u=h.type,f=h.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(l=t?c.name:null,u=c.type)}a.push({property:l,type:u,ordinalMeta:f}),t&&l!=null&&(!h||!h.isCalculationCoord)&&(n+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=BL[u]||"f",f&&(n+=f.uid),n+="$"}var v=this.source,p=[v.seriesLayoutBy,v.startIndex,n].join("$$");return{dimensions:a,hash:p}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,i=0;t<this._fullDimCount;t++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===t)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(t);o&&(n=o.name)}e.push(n)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function vw(r){return r instanceof hw}function cw(r){for(var e=U(),t=0;t<(r||[]).length;t++){var i=r[t],n=Y(i)?i.name:i;n!=null&&e.get(n)==null&&e.set(n,t)}return e}function pw(r){var e=OL(r);return e.dimNameMap||(e.dimNameMap=cw(r.dimensionsDefine))}function dw(r){return r>30}var za=Y,Qr=V,NL=typeof Int32Array=="undefined"?Array:Int32Array,zL="e\0\0",By=-1,VL=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],FL=["_approximateExtent"],Ny,Rs,Va,Fa,Zf,Es,qf,GL=function(){function r(e,t){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"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i,n=!1;vw(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,i=e),i=i||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<i.length;f++){var h=i[f],c=F(h)?new fl({name:h}):h instanceof fl?h:new fl(h),v=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=v,c.coordDimIndex=0);var p=c.otherDims=c.otherDims||{};o.push(v),a[v]=c,u[v]!=null&&(l=!0),c.createInvertedIndices&&(s[v]=[]),p.itemName===0&&(this._nameDimIdx=f),p.itemId===0&&(this._idDimIdx=f),n&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var d=this._dimIdxToName=U();b(o,function(g){d.set(a[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var i=this._dimIdxToName.get(t);if(i!=null)return i;var n=this._schema.getSourceDimension(t);if(n)return n.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var i=this._getDimInfo(e);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(mt(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(i){return t.hasOwnProperty(i)?t[i]:void 0}:function(i){return t[i]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var i=this._dimSummary;if(t==null)return i.encodeFirstDimNotExtra[e];var n=i.encode[e];return n?n[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,i=t.encode[e];return(i||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,i){var n=this,a;if(e instanceof gv&&(a=e),!a){var o=this.dimensions,s=Qc(e)||Qt(e)?new vx(e,o.length):e;a=new gv;var l=Qr(o,function(u){return{type:n._dimInfos[u].type,property:u}});a.initData(s,l,i)}this._store=a,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=RL(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var i=this._store.appendValues(e,t.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=n;s<a;s++){var l=s-n;this._nameList[s]=t[l],o&&qf(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,i=0;i<t.length;i++){var n=this._dimInfos[t[i]];n.ordinalMeta&&e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==di&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===Ue;if(l&&!n.pure)for(var u=[],f=e;f<t;f++){var h=n.getItem(f,u);if(!this.hasItemOption&&sM(h)&&(this.hasItemOption=!0),h){var c=h.name;a[f]==null&&c!=null&&(a[f]=jt(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=jt(v,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<t;f++)qf(this,f);Ny(this)}},r.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){za(e)?O(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),i=this._nameList[t];return i==null&&this._nameDimIdx!=null&&(i=Va(this,this._nameDimIdx,t)),i==null&&(i=""),i},r.prototype._getCategory=function(e,t){var i=this._store.get(e,t),n=this._store.getOrdinalMeta(e);return n?n.categories[i]:i},r.prototype.getId=function(e){return Rs(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var i=this._store,n=this._dimInfos[e];if(n)return i.get(n.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var i=this._store,n=this._dimInfos[e];if(n)return i.getByRawIndex(n.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var i=this,n=this._store;return z(e)?n.getValues(Qr(e,function(a){return i._getStoreDimIndex(a)}),t):n.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,i=0,n=t.length;i<n;i++)if(isNaN(this._store.get(t[i],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,i=this._store.count();t<i;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var i=e&&this._invertedIndicesMap[e],n=i[t];return n==null||isNaN(n)?By:n},r.prototype.indicesOfNearest=function(e,t,i){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,i)},r.prototype.each=function(e,t,i){K(e)&&(i=t,t=e,e=[]);var n=i||this,a=Qr(Fa(e),this._getStoreDimIndex,this);this._store.each(a,n?W(t,n):t)},r.prototype.filterSelf=function(e,t,i){K(e)&&(i=t,t=e,e=[]);var n=i||this,a=Qr(Fa(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?W(t,n):t),this},r.prototype.selectRange=function(e){var t=this,i={},n=at(e);return b(n,function(a){var o=t._getStoreDimIndex(a);i[o]=e[a]}),this._store=this._store.selectRange(i),this},r.prototype.mapArray=function(e,t,i){K(e)&&(i=t,t=e,e=[]),i=i||this;var n=[];return this.each(e,function(){n.push(t&&t.apply(this,arguments))},i),n},r.prototype.map=function(e,t,i,n){var a=i||n||this,o=Qr(Fa(e),this._getStoreDimIndex,this),s=Es(this);return s._store=this._store.map(o,a?W(t,a):t),s},r.prototype.modify=function(e,t,i,n){var a=i||n||this,o=Qr(Fa(e),this._getStoreDimIndex,this);this._store.modify(o,a?W(t,a):t)},r.prototype.downSample=function(e,t,i,n){var a=Es(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),t,i,n),a},r.prototype.lttbDownSample=function(e,t){var i=Es(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),i},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,i=this.getRawDataItem(e);return new Tt(i,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new gp(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(i){return Rs(e,i)},function(i){return Rs(t,i)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},za(e)?O(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var i=this._itemVisuals[e],n=i&&i[t];return n==null?this.getVisual(t):n},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var i=this._itemVisuals,n=i[e];n||(n=i[e]={});var a=n[t];return a==null&&(a=this.getVisual(t),z(a)?a=a.slice():za(a)&&(a=O({},a)),n[t]=a),a},r.prototype.setItemVisual=function(e,t,i){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,za(t)?O(n,t):n[t]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){za(e)?O(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,i){this._itemLayouts[e]=i?O(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var i=this.hostModel&&this.hostModel.seriesIndex;mD(i,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){b(this._graphicEls,function(i,n){i&&e&&e.call(t,i,n)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:Qr(this.dimensions,this._getDimInfo,this),this.hostModel)),Zf(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var i=this[e];K(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=i.apply(this,arguments);return t.apply(this,[n].concat(eu(arguments)))})},r.internalField=function(){Ny=function(e){var t=e._invertedIndicesMap;b(t,function(i,n){var a=e._dimInfos[n],o=a.ordinalMeta,s=e._store;if(o){i=t[n]=new NL(o.categories.length);for(var l=0;l<i.length;l++)i[l]=By;for(var l=0;l<s.count();l++)i[s.get(a.storeDimIndex,l)]=l}})},Va=function(e,t,i){return jt(e._getCategory(t,i),null)},Rs=function(e,t){var i=e._idList[t];return i==null&&e._idDimIdx!=null&&(i=Va(e,e._idDimIdx,t)),i==null&&(i=zL+t),i},Fa=function(e){return z(e)||(e=e!=null?[e]:[]),e},Es=function(e){var t=new r(e._schema?e._schema:Qr(e.dimensions,e._getDimInfo,e),e.hostModel);return Zf(t,e),t},Zf=function(e,t){b(VL.concat(t.__wrappedMethods||[]),function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e.__wrappedMethods=t.__wrappedMethods,b(FL,function(i){e[i]=X(t[i])}),e._calculationInfo=O({},t._calculationInfo)},qf=function(e,t){var i=e._nameList,n=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=i[t],l=n[t];if(s==null&&a!=null&&(i[t]=s=Va(e,a,t)),l==null&&o!=null&&(n[t]=l=Va(e,o,t)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[t]=l}}}(),r}();const ku=GL;function HL(r,e){return yp(r,e).dimensions}function yp(r,e){Qc(r)||(r=ux(r)),e=e||{};var t=e.coordDimensions||[],i=e.dimensionsDefine||r.dimensionsDefine||[],n=U(),a=[],o=UL(r,t,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&dw(o),l=i===r.dimensionsDefine,u=l?pw(r):cw(i),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var h=U(f),c=new mx(o),v=0;v<c.length;v++)c[v]=-1;function p(A){var M=c[A];if(M<0){var D=i[A],I=Y(D)?D:{name:D},P=new fl,L=I.name;L!=null&&u.get(L)!=null&&(P.name=P.displayName=L),I.type!=null&&(P.type=I.type),I.displayName!=null&&(P.displayName=I.displayName);var R=a.length;return c[A]=R,P.storeDimIndex=A,a.push(P),P}return a[M]}if(!s)for(var v=0;v<o;v++)p(v);h.each(function(A,M){var D=Ct(A).slice();if(D.length===1&&!F(D[0])&&D[0]<0){h.set(M,!1);return}var I=h.set(M,[]);b(D,function(P,L){var R=F(P)?u.get(P):P;R!=null&&R<o&&(I[L]=R,g(p(R),M,L))})});var d=0;b(t,function(A){var M,D,I,P;if(F(A))M=A,P={};else{P=A,M=P.name;var L=P.ordinalMeta;P.ordinalMeta=null,P=O({},P),P.ordinalMeta=L,D=P.dimsDef,I=P.otherDims,P.name=P.coordDim=P.coordDimIndex=P.dimsDef=P.otherDims=null}var R=h.get(M);if(R!==!1){if(R=Ct(R),!R.length)for(var k=0;k<(D&&D.length||1);k++){for(;d<o&&p(d).coordDim!=null;)d++;d<o&&R.push(d++)}b(R,function(G,B){var N=p(G);if(l&&P.type!=null&&(N.type=P.type),g(q(N,P),M,B),N.name==null&&D){var H=D[B];!Y(H)&&(H={name:H}),N.name=N.displayName=H.name,N.defaultTooltip=H.defaultTooltip}I&&q(N.otherDims,I)})}});function g(A,M,D){QS.get(M)!=null?A.otherDims[M]=D:(A.coordDim=M,A.coordDimIndex=D,n.set(M,!0))}var y=e.generateCoord,m=e.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function w(A){A.name==null&&(A.name=A.coordDim)}if(s)b(a,function(A){w(A)}),a.sort(function(A,M){return A.storeDimIndex-M.storeDimIndex});else for(var x=0;x<o;x++){var T=p(x),C=T.coordDim;C==null&&(T.coordDim=YL(S,n,_),T.coordDimIndex=0,(!y||m<=0)&&(T.isExtraCoord=!0),m--),w(T),T.type==null&&(ix(r,x)===Gt.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return WL(a),new hw({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function WL(r){for(var e=U(),t=0;t<r.length;t++){var i=r[t],n=i.name,a=e.get(n)||0;a>0&&(i.name=n+(a-1)),a++,e.set(n,a)}}function UL(r,e,t,i){var n=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,i||0);return b(e,function(a){var o;Y(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function YL(r,e,t){if(t||e.hasKey(r)){for(var i=0;e.hasKey(r+i);)i++;r+=i}return e.set(r,!0),r}var XL=function(){function r(e){this.coordSysDims=[],this.axisMap=U(),this.categoryAxisMap=U(),this.coordSysName=e}return r}();function $L(r){var e=r.get("coordinateSystem"),t=new XL(e),i=ZL[e];if(i)return i(r,t,t.axisMap,t.categoryAxisMap),t}var ZL={cartesian2d:function(r,e,t,i){var n=r.getReferringComponents("xAxis",Ot).models[0],a=r.getReferringComponents("yAxis",Ot).models[0];e.coordSysDims=["x","y"],t.set("x",n),t.set("y",a),Nn(n)&&(i.set("x",n),e.firstCategoryDimIndex=0),Nn(a)&&(i.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,i){var n=r.getReferringComponents("singleAxis",Ot).models[0];e.coordSysDims=["single"],t.set("single",n),Nn(n)&&(i.set("single",n),e.firstCategoryDimIndex=0)},polar:function(r,e,t,i){var n=r.getReferringComponents("polar",Ot).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",a),t.set("angle",o),Nn(a)&&(i.set("radius",a),e.firstCategoryDimIndex=0),Nn(o)&&(i.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,i){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,i){var n=r.ecModel,a=n.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();b(a.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];t.set(f,u),Nn(u)&&(i.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Nn(r){return r.get("type")==="category"}function gw(r,e,t){t=t||{};var i=t.byIndex,n=t.stackedCoordDimension,a,o,s;qL(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,h,c;if(b(a,function(m,_){F(m)&&(a[_]=m={name:m}),l&&!m.isExtraCoord&&(!i&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!i&&!u&&(i=!0),f){h="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,p=f.type,d=0;b(a,function(m){m.coordDim===v&&d++});var g={name:h,coordDim:v,coordDimIndex:d,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:c,coordDim:c,coordDimIndex:d+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(c,p),y.storeDimIndex=s.ensureCalculationDimension(h,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(a.push(g),a.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:c,stackResultDimension:h}}function qL(r){return!vw(r.schema)}function xi(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function yw(r,e){return xi(r,e)?r.getCalculationInfo("stackResultDimension"):e}function KL(r,e){var t=r.get("coordinateSystem"),i=Au.get(t),n;return e&&e.coordSysDims&&(n=V(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=EL(l)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function jL(r,e,t){var i,n;return t&&b(r,function(a,o){var s=a.coordDim,l=t.categoryAxisMap.get(s);l&&(i==null&&(i=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(r[i].otherDims.itemName=0),i}function Qo(r,e,t){t=t||{};var i=e.getSourceManager(),n,a=!1;n=i.getSource(),a=n.sourceFormat===Ue;var o=$L(e),s=KL(e,o),l=t.useEncodeDefaulter,u=K(l)?l:l?vt(K2,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=yp(n,f),c=jL(h.dimensions,t.createInvertedIndices,o),v=a?null:i.getSharedDataStore(h),p=gw(e,{schema:h,store:v}),d=new ku(h,e);d.setCalculationInfo(p);var g=c!=null&&JL(n)?function(y,m,_,S){return S===c?_:this.defaultDimValueGetter(y,m,_,S)}:null;return d.hasItemOption=!1,d.initData(a?n:v,null,g),d}function JL(r){if(r.sourceFormat===Ue){var e=QL(r.data||[]);return!z(ca(e))}}function QL(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var Ar=function(){function r(e){this._setting=e||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(e){return this._setting[e]},r.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var i=this._extent;isNaN(e)||(i[0]=e),isNaN(t)||(i[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();su(Ar);var tR=0,Cv=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++tR}return r.createByAxisModel=function(e){var t=e.option,i=t.data,n=i&&V(i,eR);return new r({categories:n,needCollect:!n,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,i=this._needCollect;if(!F(e)&&!i)return e;if(i&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var n=this._getOrCreateMap();return t=n.get(e),t==null&&(i?(t=this.categories.length,this.categories[t]=e,n.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=U(this.categories))},r}();function eR(r){return Y(r)&&r.value!=null?r.value:r+""}function Av(r){return r.type==="interval"||r.type==="log"}function rR(r,e,t,i){var n={},a=r[1]-r[0],o=n.interval=_c(a/e,!0);t!=null&&o<t&&(o=n.interval=t),i!=null&&o>i&&(o=n.interval=i);var s=n.intervalPrecision=mw(o),l=n.niceTickExtent=[Pt(Math.ceil(r[0]/o)*o,s),Pt(Math.floor(r[1]/o)*o,s)];return iR(l,r),n}function Kf(r){var e=Math.pow(10,ou(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Pt(t*e)}function mw(r){return mr(r)+2}function zy(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function iR(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),zy(r,0,e),zy(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function Ou(r,e){return r>=e[0]&&r<=e[1]}function Bu(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function Nu(r,e){return r*(e[1]-e[0])+e[0]}var zu=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;i.type="ordinal";var n=i.getSetting("ordinalMeta");return n||(n=new Cv({})),z(n)&&(n=new Cv({categories:V(n,function(a){return Y(a)?a.value:a})})),i._ordinalMeta=n,i._extent=i.getSetting("extent")||[0,n.categories.length-1],i}return e.prototype.parse=function(t){return t==null?NaN:F(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Ou(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Bu(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Nu(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],i=this._extent,n=i[0];n<=i[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,i.length);o<l;++o){var u=i[o];n[o]=u,a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;n.push(f),a[f]=o}},e.prototype._getTickNumber=function(t){var i=this._ticksByOrdinalNumber;return i&&t>=0&&t<i.length?i[t]:t},e.prototype.getRawOrdinalNumber=function(t){var i=this._ordinalNumbersByTick;return i&&t>=0&&t<i.length?i[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var i=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[i];return n==null?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,i){this.unionExtent(t.getApproximateExtent(i))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Ar);Ar.registerClass(zu);var Ui=Pt,Hr=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Ou(t,this._extent)},e.prototype.normalize=function(t){return Bu(t,this._extent)},e.prototype.scale=function(t){return Nu(t,this._extent)},e.prototype.setExtent=function(t,i){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(i)||(n[1]=parseFloat(i))},e.prototype.unionExtent=function(t){var i=this._extent;t[0]<i[0]&&(i[0]=t[0]),t[1]>i[1]&&(i[1]=t[1]),this.setExtent(i[0],i[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=mw(t)},e.prototype.getTicks=function(t){var i=this._interval,n=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!i)return s;var l=1e4;n[0]<a[0]&&(t?s.push({value:Ui(a[0]-i,o)}):s.push({value:n[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=Ui(u+i,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:a[1];return n[1]>f&&(t?s.push({value:Ui(f+i,o)}):s.push({value:n[1]})),s},e.prototype.getMinorTicks=function(t){for(var i=this.getTicks(!0),n=[],a=this.getExtent(),o=1;o<i.length;o++){for(var s=i[o],l=i[o-1],u=0,f=[],h=s.value-l.value,c=h/t;u<t-1;){var v=Ui(l.value+(u+1)*c);v>a[0]&&v<a[1]&&f.push(v),u++}n.push(f)}return n},e.prototype.getLabel=function(t,i){if(t==null)return"";var n=i&&i.precision;n==null?n=mr(t.value)||0:n==="auto"&&(n=this._intervalPrecision);var a=Ui(t.value,n,!0);return Yc(a)},e.prototype.calcNiceTicks=function(t,i,n){t=t||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=rR(a,t,i,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var i=this._extent;if(i[0]===i[1])if(i[0]!==0){var n=Math.abs(i[0]);t.fixMax||(i[1]+=n/2),i[0]-=n/2}else i[1]=1;var a=i[1]-i[0];isFinite(a)||(i[0]=0,i[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval;t.fixMin||(i[0]=Ui(Math.floor(i[0]/o)*o)),t.fixMax||(i[1]=Ui(Math.ceil(i[1]/o)*o))},e.prototype.setNiceExtent=function(t,i){this._niceExtent=[t,i]},e.type="interval",e}(Ar);Ar.registerClass(Hr);var _w=typeof Float32Array!="undefined",nR=_w?Float32Array:Array;function Or(r){return z(r)?_w?new Float32Array(r):r:new nR(r)}var aR="__ec_stack_";function mp(r){return r.get("stack")||aR+r.seriesIndex}function _p(r){return r.dim+r.index}function Sw(r,e){var t=[];return e.eachSeriesByType(r,function(i){Tw(i)&&t.push(i)}),t}function oR(r){var e={};b(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=l.getData(),c=f.dim+"_"+f.index,v=h.getDimensionIndex(h.mapDimension(f.dim)),p=h.getStore(),d=0,g=p.count();d<g;++d){var y=p.get(v,d);e[c]?e[c].push(y):e[c]=[y]}});var t={};for(var i in e)if(e.hasOwnProperty(i)){var n=e[i];if(n){n.sort(function(l,u){return l-u});for(var a=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(a=a===null?s:Math.min(a,s))}t[i]=a}}return t}function xw(r){var e=oR(r),t=[];return b(r,function(i){var n=i.coordinateSystem,a=n.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=e[l],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=u?f/c*u:f}else{var v=i.getData();s=Math.abs(o[1]-o[0])/v.count()}var p=Q(i.get("barWidth"),s),d=Q(i.get("barMaxWidth"),s),g=Q(i.get("barMinWidth")||(Cw(i)?.5:1),s),y=i.get("barGap"),m=i.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:d,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:_p(a),stackId:mp(i)})}),sR(t)}function sR(r){var e={};b(r,function(i,n){var a=i.axisKey,o=i.bandWidth,s=e[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[a]=s;var u=i.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=i.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=i.barMaxWidth;h&&(l[u].maxWidth=h);var c=i.barMinWidth;c&&(l[u].minWidth=c);var v=i.barGap;v!=null&&(s.gap=v);var p=i.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return b(e,function(i,n){t[n]={};var a=i.stacks,o=i.bandWidth,s=i.categoryGap;if(s==null){var l=at(a).length;s=Math.max(35-l*4,15)+"%"}var u=Q(s,o),f=Q(i.gap,1),h=i.remainedWidth,c=i.autoWidthCount,v=(h-u)/(c+(c-1)*f);v=Math.max(v,0),b(a,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,c--}else{var S=v;m&&m<S&&(S=Math.min(m,h)),_&&_>S&&(S=_),S!==v&&(y.width=S,h-=S+f*S,c--)}}),v=(h-u)/(c+(c-1)*f),v=Math.max(v,0);var p=0,d;b(a,function(y,m){y.width||(y.width=v),d=y,p+=y.width*(1+f)}),d&&(p-=d.width*f);var g=-p/2;b(a,function(y,m){t[n][m]=t[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),t}function lR(r,e,t){if(r&&e){var i=r[_p(e)];return i!=null&&t!=null?i[mp(t)]:i}}function ww(r,e){var t=Sw(r,e),i=xw(t);b(t,function(n){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=mp(n),u=i[_p(s)][l],f=u.offset,h=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function bw(r){return{seriesType:r,plan:ip(),reset:function(e){if(Tw(e)){var t=e.getData(),i=e.coordinateSystem,n=i.getBaseAxis(),a=i.getOtherAxis(n),o=t.getDimensionIndex(t.mapDimension(a.dim)),s=t.getDimensionIndex(t.mapDimension(n.dim)),l=e.get("showBackground",!0),u=t.mapDimension(a.dim),f=t.getCalculationInfo("stackResultDimension"),h=xi(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),c=a.isHorizontal(),v=uR(n,a),p=Cw(e),d=e.get("barMinHeight")||0,g=f&&t.getDimensionIndex(f),y=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(_,S){for(var w=_.count,x=p&&Or(w*3),T=p&&l&&Or(w*3),C=p&&Or(w),A=i.master.getRect(),M=c?A.width:A.height,D,I=S.getStore(),P=0;(D=_.next())!=null;){var L=I.get(h?g:o,D),R=I.get(s,D),k=v,G=void 0;h&&(G=+L-I.get(o,D));var B=void 0,N=void 0,H=void 0,Z=void 0;if(c){var $=i.dataToPoint([L,R]);if(h){var ot=i.dataToPoint([G,R]);k=ot[0]}B=k,N=$[1]+m,H=$[0]-k,Z=y,Math.abs(H)<d&&(H=(H<0?-1:1)*d)}else{var $=i.dataToPoint([R,L]);if(h){var ot=i.dataToPoint([R,G]);k=ot[1]}B=$[0]+m,N=k,H=y,Z=$[1]-k,Math.abs(Z)<d&&(Z=(Z<=0?-1:1)*d)}p?(x[P]=B,x[P+1]=N,x[P+2]=c?H:Z,T&&(T[P]=c?A.x:B,T[P+1]=c?N:A.y,T[P+2]=M),C[D]=D):S.setItemLayout(D,{x:B,y:N,width:H,height:Z}),P+=3}p&&S.setLayout({largePoints:x,largeDataIndices:C,largeBackgroundPoints:T,valueAxisHorizontal:c})}}}}}}function Tw(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function Cw(r){return r.pipelineContext&&r.pipelineContext.large}function uR(r,e){var t=e.model.get("startValue");return t||(t=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?t>0?t:1:t))}var fR=function(r,e,t,i){for(;t<i;){var n=t+i>>>1;r[n][1]<e?t=n+1:i=n}return t},Sp=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="time",i}return e.prototype.getLabel=function(t){var i=this.getSetting("useUTC");return jo(t.value,Ag[z2(Jn(this._minLevelUnit))]||Ag.second,i,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,i,n){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return V2(t,i,n,o,a)},e.prototype.getTicks=function(){var t=this._interval,i=this._extent,n=[];if(!t)return n;n.push({value:i[0],level:0});var a=this.getSetting("useUTC"),o=yR(this._minLevelUnit,this._approxInterval,a,i);return n=n.concat(o),n.push({value:i[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var i=this._extent;if(i[0]===i[1]&&(i[0]-=ze,i[1]+=ze),i[1]===-1/0&&i[0]===1/0){var n=new Date;i[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),i[0]=i[1]-ze}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,i,n){t=t||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/t,i!=null&&this._approxInterval<i&&(this._approxInterval=i),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var s=ks.length,l=Math.min(fR(ks,this._approxInterval,0,s),s-1);this._interval=ks[l][1],this._minLevelUnit=ks[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return mt(t)?t:+Ce(t)},e.prototype.contain=function(t){return Ou(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Bu(this.parse(t),this._extent)},e.prototype.scale=function(t){return Nu(t,this._extent)},e.type="time",e}(Hr),ks=[["second",Hc],["minute",Wc],["hour",po],["quarter-day",po*6],["half-day",po*12],["day",ze*1.2],["half-week",ze*3.5],["week",ze*7],["month",ze*31],["quarter",ze*95],["half-year",Cg/2],["year",Cg]];function hR(r,e,t,i){var n=Ce(e),a=Ce(t),o=function(p){return Mg(n,p,i)===Mg(a,p,i)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},c=function(){return h()&&o("second")},v=function(){return c()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return c();case"millisecond":return v()}}function vR(r,e){return r/=ze,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function cR(r){var e=30*ze;return r/=e,r>6?6:r>3?3:r>2?2:1}function pR(r){return r/=po,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Vy(r,e){return r/=e?Wc:Hc,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function dR(r){return _c(r,!0)}function gR(r,e,t){var i=new Date(r);switch(Jn(e)){case"year":case"month":i[WS(t)](0);case"day":i[US(t)](1);case"hour":i[YS(t)](0);case"minute":i[XS(t)](0);case"second":i[$S(t)](0),i[ZS(t)](0)}return i.getTime()}function yR(r,e,t,i){var n=1e4,a=GS,o=0;function s(M,D,I,P,L,R,k){for(var G=new Date(D),B=D,N=G[P]();B<I&&B<=i[1];)k.push({value:B}),N+=M,G[L](N),B=G.getTime();k.push({value:B,notAdd:!0})}function l(M,D,I){var P=[],L=!D.length;if(!hR(Jn(M),i[0],i[1],t)){L&&(D=[{value:gR(new Date(i[0]),M,t)},{value:i[1]}]);for(var R=0;R<D.length-1;R++){var k=D[R].value,G=D[R+1].value;if(k!==G){var B=void 0,N=void 0,H=void 0,Z=!1;switch(M){case"year":B=Math.max(1,Math.round(e/ze/365)),N=Uc(t),H=F2(t);break;case"half-year":case"quarter":case"month":B=cR(e),N=Qn(t),H=WS(t);break;case"week":case"half-week":case"day":B=vR(e),N=wu(t),H=US(t),Z=!0;break;case"half-day":case"quarter-day":case"hour":B=pR(e),N=Io(t),H=YS(t);break;case"minute":B=Vy(e,!0),N=bu(t),H=XS(t);break;case"second":B=Vy(e,!1),N=Tu(t),H=$S(t);break;case"millisecond":B=dR(e),N=Cu(t),H=ZS(t);break}s(B,k,G,N,H,Z,P),M==="year"&&I.length>1&&R===0&&I.unshift({value:I[0].value-B})}}for(var R=0;R<P.length;R++)I.push(P[R]);return P}}for(var u=[],f=[],h=0,c=0,v=0;v<a.length&&o++<n;++v){var p=Jn(a[v]);if(N2(a[v])){l(a[v],u[u.length-1]||[],f);var d=a[v+1]?Jn(a[v+1]):null;if(p!==d){if(f.length){c=h,f.sort(function(M,D){return M.value-D.value});for(var g=[],y=0;y<f.length;++y){var m=f[y].value;(y===0||f[y-1].value!==m)&&(g.push(f[y]),m>=i[0]&&m<=i[1]&&h++)}var _=(i[1]-i[0])/e;if(h>_*1.5&&c>_/1.5||(u.push(g),h>_||r===a[v]))break}f=[]}}}for(var S=bt(V(u,function(M){return bt(M,function(D){return D.value>=i[0]&&D.value<=i[1]&&!D.notAdd})}),function(M){return M.length>0}),w=[],x=S.length-1,v=0;v<S.length;++v)for(var T=S[v],C=0;C<T.length;++C)w.push({value:T[C].value,level:x-v});w.sort(function(M,D){return M.value-D.value});for(var A=[],v=0;v<w.length;++v)(v===0||w[v].value!==w[v-1].value)&&A.push(w[v]);return A}Ar.registerClass(Sp);var Fy=Ar.prototype,mo=Hr.prototype,mR=Pt,_R=Math.floor,SR=Math.ceil,Os=Math.pow,Ze=Math.log,xp=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new Hr,t._interval=0,t}return e.prototype.getTicks=function(t){var i=this._originalScale,n=this._extent,a=i.getExtent(),o=mo.getTicks.call(this,t);return V(o,function(s){var l=s.value,u=Pt(Os(this.base,l));return u=l===n[0]&&this._fixMin?Bs(u,a[0]):u,u=l===n[1]&&this._fixMax?Bs(u,a[1]):u,{value:u}},this)},e.prototype.setExtent=function(t,i){var n=Ze(this.base);t=Ze(Math.max(0,t))/n,i=Ze(Math.max(0,i))/n,mo.setExtent.call(this,t,i)},e.prototype.getExtent=function(){var t=this.base,i=Fy.getExtent.call(this);i[0]=Os(t,i[0]),i[1]=Os(t,i[1]);var n=this._originalScale,a=n.getExtent();return this._fixMin&&(i[0]=Bs(i[0],a[0])),this._fixMax&&(i[1]=Bs(i[1],a[1])),i},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var i=this.base;t[0]=Ze(t[0])/Ze(i),t[1]=Ze(t[1])/Ze(i),Fy.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,i){this.unionExtent(t.getApproximateExtent(i))},e.prototype.calcNiceTicks=function(t){t=t||10;var i=this._extent,n=i[1]-i[0];if(!(n===1/0||n<=0)){var a=B1(n),o=t/n*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[Pt(SR(i[0]/a)*a),Pt(_R(i[1]/a)*a)];this._interval=a,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){mo.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=Ze(t)/Ze(this.base),Ou(t,this._extent)},e.prototype.normalize=function(t){return t=Ze(t)/Ze(this.base),Bu(t,this._extent)},e.prototype.scale=function(t){return t=Nu(t,this._extent),Os(this.base,t)},e.type="log",e}(Ar),Aw=xp.prototype;Aw.getMinorTicks=mo.getMinorTicks;Aw.getLabel=mo.getLabel;function Bs(r,e){return mR(r,mr(e))}Ar.registerClass(xp);var xR=function(){function r(e,t,i){this._prepareParams(e,t,i)}return r.prototype._prepareParams=function(e,t,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var n=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&t.getNeedCrossZero&&t.getNeedCrossZero();var a=t.get("min",!0);a==null&&(a=t.get("startValue",!0));var o=this._modelMinRaw=a;K(o)?this._modelMinNum=Ns(e,o({min:i[0],max:i[1]})):o!=="dataMin"&&(this._modelMinNum=Ns(e,o));var s=this._modelMaxRaw=t.get("max",!0);if(K(s)?this._modelMaxNum=Ns(e,s({min:i[0],max:i[1]})):s!=="dataMax"&&(this._modelMaxNum=Ns(e,s)),n)this._axisDataLen=t.getCategories().length;else{var l=t.get("boundaryGap"),u=z(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[rr(u[0],1),rr(u[1],1)]}},r.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,i=this._dataMax,n=this._axisDataLen,a=this._boundaryGapInner,o=e?null:i-t||Math.abs(t),s=this._modelMinRaw==="dataMin"?t:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?i:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=e?n?0:NaN:t-a[0]*o),l==null&&(l=e?n?n-1:NaN:i+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=_o(s)||_o(l)||e&&!n;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(e,t){this[bR[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var i=wR[e];this[i]=t},r.prototype.freeze=function(){this.frozen=!0},r}(),wR={min:"_determinedMin",max:"_determinedMax"},bR={min:"_dataMin",max:"_dataMax"};function Mw(r,e,t){var i=r.rawExtentInfo;return i||(i=new xR(r,e,t),r.rawExtentInfo=i,i)}function Ns(r,e){return e==null?null:_o(e)?NaN:r.parse(e)}function Dw(r,e){var t=r.type,i=Mw(r,e,r.getExtent()).calculate();r.setBlank(i.isBlank);var n=i.min,a=i.max,o=e.ecModel;if(o&&t==="time"){var s=Sw("bar",o),l=!1;if(b(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=xw(s),f=TR(n,a,e,u);n=f.min,a=f.max}}return{extent:[n,a],fixMin:i.minFixed,fixMax:i.maxFixed}}function TR(r,e,t,i){var n=t.axis.getExtent(),a=n[1]-n[0],o=lR(i,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;b(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;b(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-r,h=1-(s+l)/a,c=f/h-f;return e+=c*(l/u),r-=c*(s/u),{min:r,max:e}}function sa(r,e){var t=e,i=Dw(r,t),n=i.extent,a=t.get("splitNumber");r instanceof xp&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:a,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Vu(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new zu({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new Sp({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Ar.getClass(e)||Hr)}}function CR(r){var e=r.scale.getExtent(),t=e[0],i=e[1];return!(t>0&&i>0||t<0&&i<0)}function wa(r){var e=r.getLabelModel().get("formatter"),t=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(i){return function(n,a){return r.scale.getFormattedLabel(n,a,i)}}(e):F(e)?function(i){return function(n){var a=r.scale.getLabel(n),o=i.replace("{value}",a!=null?a:"");return o}}(e):K(e)?function(i){return function(n,a){return t!=null&&(a=n.value-t),i(wp(r,n),a,n.level!=null?{level:n.level}:null)}}(e):function(i){return r.scale.getLabel(i)}}function wp(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function AR(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var i,n,a=t.getExtent();t instanceof zu?n=t.count():(i=t.getTicks(),n=i.length);var o=r.getLabelModel(),s=wa(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;f<n;f+=u){var h=i?i[f]:{value:a[0]+f},c=s(h,f),v=o.getTextRect(c),p=MR(v,o.get("rotate")||0);l?l.union(p):l=p}return l}}function MR(r,e){var t=e*Math.PI/180,i=r.width,n=r.height,a=i*Math.abs(Math.cos(t))+Math.abs(n*Math.sin(t)),o=i*Math.abs(Math.sin(t))+Math.abs(n*Math.cos(t)),s=new lt(r.x,r.y,a,o);return s}function bp(r){var e=r.get("interval");return e==null?"auto":e}function Iw(r){return r.type==="category"&&bp(r.getLabelModel())===0}function Ul(r,e){var t={};return b(r.mapDimensionsAll(e),function(i){t[yw(r,i)]=!0}),at(t)}function DR(r,e,t){e&&b(Ul(e,t),function(i){var n=e.getApproximateExtent(i);n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1])})}var ts=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}();function IR(r){return Qo(null,r)}var PR={isDimensionStacked:xi,enableDataStack:gw,getStackedDimension:yw};function LR(r,e){var t=e;e instanceof Tt||(t=new Tt(e));var i=Vu(t);return i.setExtent(r[0],r[1]),sa(i,t),i}function RR(r){Xt(r,ts)}function ER(r,e){return e=e||{},kt(r,null,null,e.state!=="normal")}const kR=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:HL,createList:IR,createScale:LR,createSymbol:Yt,createTextStyle:ER,dataStack:PR,enableHoverEmphasis:ci,getECData:it,getLayoutRect:fe,mixinAxisModelCommonMethods:RR},Symbol.toStringTag,{value:"Module"}));var Gy=[],OR={registerPreprocessor:vp,registerProcessor:cp,registerPostInit:aw,registerPostUpdate:ow,registerUpdateLifecycle:Eu,registerAction:ar,registerCoordinateSystem:sw,registerLayout:lw,registerVisual:Ti,registerTransform:fw,registerLoading:dp,registerMap:uw,registerImpl:iL,PRIORITY:Kx,ComponentModel:ft,ComponentView:At,SeriesModel:xe,ChartView:Ut,registerComponentModel:function(r){ft.registerClass(r)},registerComponentView:function(r){At.registerClass(r)},registerSeriesModel:function(r){xe.registerClass(r)},registerChartView:function(r){Ut.registerClass(r)},registerSubTypeDefaulter:function(r,e){ft.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){P1(r,e)}};function Ft(r){if(z(r)){b(r,function(e){Ft(e)});return}st(Gy,r)>=0||(Gy.push(r),K(r)&&(r={install:r}),r.install(OR))}var BR=1e-8;function Hy(r,e){return Math.abs(r-e)<BR}function Wy(r,e,t){var i=0,n=r[0];if(!n)return!1;for(var a=1;a<r.length;a++){var o=r[a];i+=Rr(n[0],n[1],o[0],o[1],e,t),n=o}var s=r[0];return(!Hy(n[0],s[0])||!Hy(n[1],s[1]))&&(i+=Rr(n[0],n[1],s[0],s[1],e,t)),i!==0}var NR=[];function jf(r,e){for(var t=0;t<r.length;t++)Vt(r[t],r[t],e)}function Uy(r,e,t,i){for(var n=0;n<r.length;n++){var a=r[n];i&&(a=i.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Er(e,e,a),kr(t,t,a))}}function zR(r){for(var e=0,t=0,i=0,n=r.length,a=r[n-1][0],o=r[n-1][1],s=0;s<n;s++){var l=r[s][0],u=r[s][1],f=a*u-l*o;e+=f,t+=(a+l)*f,i+=(o+u)*f,a=l,o=u}return e?[t/e/3,i/e/3,e]:[r[0][0]||0,r[0][1]||0]}var Pw=function(){function r(e){this.name=e}return r.prototype.setCenter=function(e){this._center=e},r.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},r}(),Yy=function(){function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return r}(),Xy=function(){function r(e){this.type="linestring",this.points=e}return r}(),Lw=function(r){E(e,r);function e(t,i,n){var a=r.call(this,t)||this;return a.type="geoJSON",a.geometries=i,a._center=n&&[n[0],n[1]],a}return e.prototype.calcCenter=function(){for(var t=this.geometries,i,n=0,a=0;a<t.length;a++){var o=t[a],s=o.exterior,l=s&&s.length;l>n&&(i=o,n=l)}if(i)return zR(i.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var i=this._rect;if(i&&!t)return i;var n=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return b(o,function(s){s.type==="polygon"?Uy(s.exterior,n,a,t):b(s.points,function(l){Uy(l,n,a,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(a[0])&&isFinite(a[1])||(n[0]=n[1]=a[0]=a[1]=0),i=new lt(n[0],n[1],a[0]-n[0],a[1]-n[1]),t||(this._rect=i),i},e.prototype.contain=function(t){var i=this.getBoundingRect(),n=this.geometries;if(!i.contain(t[0],t[1]))return!1;t:for(var a=0,o=n.length;a<o;a++){var s=n[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Wy(l,t[0],t[1])){for(var f=0;f<(u?u.length:0);f++)if(Wy(u[f],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,i,n,a){var o=this.getBoundingRect(),s=o.width/o.height;n?a||(a=n/s):n=s*a;for(var l=new lt(t,i,n,a),u=o.calculateTransform(l),f=this.geometries,h=0;h<f.length;h++){var c=f[h];c.type==="polygon"?(jf(c.exterior,u),b(c.interiors,function(v){jf(v,u)})):b(c.points,function(v){jf(v,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){t==null&&(t=this.name);var i=new e(t,this.geometries,this._center);return i._rect=this._rect,i.transformTo=null,i},e}(Pw),VR=function(r){E(e,r);function e(t,i){var n=r.call(this,t)||this;return n.type="geoSVG",n._elOnlyForCalculate=i,n}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,i=t.getBoundingRect(),n=[i.x+i.width/2,i.y+i.height/2],a=Yo(NR),o=t;o&&!o.isGeoSVGGraphicRoot;)Sr(a,o.getLocalTransform(),a),o=o.parent;return va(a,a),Vt(n,n,a),n},e}(Pw);function FR(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;t==null&&(t=1024);var i=e.features;return b(i,function(n){var a=n.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=Rw(s,o,t);break;case"Polygon":Jf(s,o,t);break;case"MultiLineString":Jf(s,o,t);break;case"MultiPolygon":b(s,function(l,u){return Jf(l,o[u],t)})}}),e.UTF8Encoding=!1,e}function Jf(r,e,t){for(var i=0;i<r.length;i++)r[i]=Rw(r[i],e[i],t)}function Rw(r,e,t){for(var i=[],n=e[0],a=e[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=a,n=s,a=l,i.push([s/t,l/t])}return i}function Mv(r,e){return r=FR(r),V(bt(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var i=t.properties,n=t.geometry,a=[];switch(n.type){case"Polygon":var o=n.coordinates;a.push(new Yy(o[0],o.slice(1)));break;case"MultiPolygon":b(n.coordinates,function(l){l[0]&&a.push(new Yy(l[0],l.slice(1)))});break;case"LineString":a.push(new Xy([n.coordinates]));break;case"MultiLineString":a.push(new Xy(n.coordinates))}var s=new Lw(i[e||"name"],a,i.cp);return s.properties=i,s})}const GR=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:nM,asc:yr,getPercentWithPrecision:rM,getPixelPrecision:yc,getPrecision:mr,getPrecisionSafe:k1,isNumeric:Sc,isRadianAroundZero:bo,linearMap:xt,nice:_c,numericToNumber:To,parseDate:Ce,quantile:oM,quantity:B1,quantityExponent:ou,reformIntervals:ev,remRadian:mc,round:Pt},Symbol.toStringTag,{value:"Module"})),HR=Object.freeze(Object.defineProperty({__proto__:null,format:jo,parse:Ce},Symbol.toStringTag,{value:"Module"})),WR=Object.freeze(Object.defineProperty({__proto__:null,Arc:pu,BezierCurve:Lc,BoundingRect:lt,Circle:Yr,CompoundPath:du,Ellipse:cu,Group:nt,Image:he,IncrementalDisplayable:LS,Line:ae,LinearGradient:Ko,Polygon:Tr,Polyline:He,RadialGradient:Rc,Rect:pt,Ring:qo,Sector:br,Text:dt,clipPointsByRect:zc,clipRectByRect:OS,createIcon:pa,extendPath:ES,extendShape:RS,getShapeClass:Oc,getTransform:pi,initProps:se,makeImage:Bc,makePath:gu,mergePath:Ne,registerShape:We,resizePath:Nc,updateProps:Lt},Symbol.toStringTag,{value:"Module"})),UR=Object.freeze(Object.defineProperty({__proto__:null,addCommas:Yc,capitalFirst:U2,encodeHTML:ne,formatTime:W2,formatTpl:$c,getTextRect:G2,getTooltipMarker:qS,normalizeCssArray:ma,toCamelCase:Xc,truncateText:X1},Symbol.toStringTag,{value:"Module"})),YR=Object.freeze(Object.defineProperty({__proto__:null,bind:W,clone:X,curry:vt,defaults:q,each:b,extend:O,filter:bt,indexOf:st,inherits:sc,isArray:z,isFunction:K,isObject:Y,isString:F,map:V,merge:et,reduce:Fe},Symbol.toStringTag,{value:"Module"}));var Oo=_t();function Ew(r,e){var t=V(e,function(i){return r.scale.parse(i)});return r.type==="time"&&t.length>0&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function XR(r){var e=r.getLabelModel().get("customValues");if(e){var t=wa(r);return{labels:Ew(r,e).map(function(i){var n={value:i};return{formattedLabel:t(n),rawLabel:r.scale.getLabel(n),tickValue:i}})}}return r.type==="category"?ZR(r):KR(r)}function $R(r,e){var t=r.getTickModel().get("customValues");return t?{ticks:Ew(r,t)}:r.type==="category"?qR(r,e):{ticks:V(r.scale.getTicks(),function(i){return i.value})}}function ZR(r){var e=r.getLabelModel(),t=kw(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function kw(r,e){var t=Ow(r,"labels"),i=bp(e),n=Bw(t,i);if(n)return n;var a,o;return K(i)?a=Vw(r,i):(o=i==="auto"?jR(r):i,a=zw(r,o)),Nw(t,i,{labels:a,labelCategoryInterval:o})}function qR(r,e){var t=Ow(r,"ticks"),i=bp(e),n=Bw(t,i);if(n)return n;var a,o;if((!e.get("show")||r.scale.isBlank())&&(a=[]),K(i))a=Vw(r,i,!0);else if(i==="auto"){var s=kw(r,r.getLabelModel());o=s.labelCategoryInterval,a=V(s.labels,function(l){return l.tickValue})}else o=i,a=zw(r,o,!0);return Nw(t,i,{ticks:a,tickCategoryInterval:o})}function KR(r){var e=r.scale.getTicks(),t=wa(r);return{labels:V(e,function(i,n){return{level:i.level,formattedLabel:t(i,n),rawLabel:r.scale.getLabel(i),tickValue:i.value}})}}function Ow(r,e){return Oo(r)[e]||(Oo(r)[e]=[])}function Bw(r,e){for(var t=0;t<r.length;t++)if(r[t].key===e)return r[t].value}function Nw(r,e,t){return r.push({key:e,value:t}),t}function jR(r){var e=Oo(r).autoInterval;return e!=null?e:Oo(r).autoInterval=r.calculateCategoryInterval()}function JR(r){var e=QR(r),t=wa(r),i=(e.axisRotate-e.labelRotate)/180*Math.PI,n=r.scale,a=n.getExtent(),o=n.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(i)),h=Math.abs(u*Math.sin(i)),c=0,v=0;l<=a[1];l+=s){var p=0,d=0,g=$o(t({value:l}),e.font,"center","top");p=g.width*1.3,d=g.height*1.3,c=Math.max(c,p,7),v=Math.max(v,d,7)}var y=c/f,m=v/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=Oo(r.model),w=r.getExtent(),x=S.lastAutoInterval,T=S.lastTickCount;return x!=null&&T!=null&&Math.abs(x-_)<=1&&Math.abs(T-o)<=1&&x>_&&S.axisExtent0===w[0]&&S.axisExtent1===w[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=w[0],S.axisExtent1=w[1]),_}function QR(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function zw(r,e,t){var i=wa(r),n=r.scale,a=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=a[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=Iw(r),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&u!==a[0]&&d(a[0]);for(var p=u;p<=a[1];p+=l)d(p);v&&p-l!==a[1]&&d(a[1]);function d(g){var y={value:g};s.push(t?g:{formattedLabel:i(y),rawLabel:n.getLabel(y),tickValue:g})}return s}function Vw(r,e,t){var i=r.scale,n=wa(r),a=[];return b(i.getTicks(),function(o){var s=i.getLabel(o),l=o.value;e(o.value,s)&&a.push(t?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),a}var $y=[0,1],tE=function(){function r(e,t,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=i||[0,0]}return r.prototype.contain=function(e){var t=this._extent,i=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=i&&e<=n},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return yc(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var i=this._extent;i[0]=e,i[1]=t},r.prototype.dataToCoord=function(e,t){var i=this._extent,n=this.scale;return e=n.normalize(e),this.onBand&&n.type==="ordinal"&&(i=i.slice(),Zy(i,n.count())),xt(e,$y,i,t)},r.prototype.coordToData=function(e,t){var i=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(i=i.slice(),Zy(i,n.count()));var a=xt(e,i,$y,t);return this.scale.scale(a)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),i=$R(this,t),n=i.ticks,a=V(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return eE(this,a,o,e.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var i=this.scale.getMinorTicks(t),n=V(i,function(a){return V(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return XR(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),i=t[1]-t[0]+(this.onBand?1:0);i===0&&(i=1);var n=Math.abs(e[1]-e[0]);return Math.abs(n)/i},r.prototype.calculateCategoryInterval=function(){return JR(this)},r}();function Zy(r,e){var t=r[1]-r[0],i=e,n=t/i/2;r[0]+=n,r[1]-=n}function eE(r,e,t,i){var n=e.length;if(!r.onBand||t||!n)return;var a=r.getExtent(),o,s;if(n===1)e[0].coord=a[0],o=e[1]={coord:a[1]};else{var l=e[n-1].tickValue-e[0].tickValue,u=(e[n-1].coord-e[0].coord)/l;b(e,function(v){v.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-e[n-1].tickValue,o={coord:e[n-1].coord+u*s},e.push(o)}var h=a[0]>a[1];c(e[0].coord,a[0])&&(i?e[0].coord=a[0]:e.shift()),i&&c(a[0],e[0].coord)&&e.unshift({coord:a[0]}),c(a[1],o.coord)&&(i?o.coord=a[1]:e.pop()),i&&c(o.coord,a[1])&&e.push({coord:a[1]});function c(v,p){return v=Pt(v),p=Pt(p),h?v>p:v<p}}const or=tE;function rE(r){var e=ft.extend(r);return ft.registerClass(e),e}function iE(r){var e=At.extend(r);return At.registerClass(e),e}function nE(r){var e=xe.extend(r);return xe.registerClass(e),e}function aE(r){var e=Ut.extend(r);return Ut.registerClass(e),e}function Fw(r,e,t,i,n,a,o,s){var l=n-r,u=a-e,f=t-r,h=i-e,c=Math.sqrt(f*f+h*h);f/=c,h/=c;var v=l*f+u*h,p=v/c;p*=c;var d=o[0]=r+p*f,g=o[1]=e+p*h;return Math.sqrt((d-n)*(d-n)+(g-a)*(g-a))}var li=new rt,It=new rt,Ht=new rt,ui=new rt,gr=new rt,Yl=[],ie=new rt;function oE(r,e){if(e<=180&&e>0){e=e/180*Math.PI,li.fromArray(r[0]),It.fromArray(r[1]),Ht.fromArray(r[2]),rt.sub(ui,li,It),rt.sub(gr,Ht,It);var t=ui.len(),i=gr.len();if(!(t<.001||i<.001)){ui.scale(1/t),gr.scale(1/i);var n=ui.dot(gr),a=Math.cos(e);if(a<n){var o=Fw(It.x,It.y,Ht.x,Ht.y,li.x,li.y,Yl);ie.fromArray(Yl),ie.scaleAndAdd(gr,o/Math.tan(Math.PI-e));var s=Ht.x!==It.x?(ie.x-It.x)/(Ht.x-It.x):(ie.y-It.y)/(Ht.y-It.y);if(isNaN(s))return;s<0?rt.copy(ie,It):s>1&&rt.copy(ie,Ht),ie.toArray(r[1])}}}}function sE(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,li.fromArray(r[0]),It.fromArray(r[1]),Ht.fromArray(r[2]),rt.sub(ui,It,li),rt.sub(gr,Ht,It);var i=ui.len(),n=gr.len();if(!(i<.001||n<.001)){ui.scale(1/i),gr.scale(1/n);var a=ui.dot(e),o=Math.cos(t);if(a<o){var s=Fw(It.x,It.y,Ht.x,Ht.y,li.x,li.y,Yl);ie.fromArray(Yl);var l=Math.PI/2,u=Math.acos(gr.dot(e)),f=l+u-t;if(f>=l)rt.copy(ie,Ht);else{ie.scaleAndAdd(gr,s/Math.tan(Math.PI/2-f));var h=Ht.x!==It.x?(ie.x-It.x)/(Ht.x-It.x):(ie.y-It.y)/(Ht.y-It.y);if(isNaN(h))return;h<0?rt.copy(ie,It):h>1&&rt.copy(ie,Ht)}ie.toArray(r[1])}}}}function Qf(r,e,t,i){var n=t==="normal",a=n?r:r.ensureState(t);a.ignore=e;var o=i.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=i.getModel("lineStyle").getLineStyle();n?r.useStyle(s):a.style=s}function lE(r,e){var t=e.smooth,i=e.points;if(i)if(r.moveTo(i[0][0],i[0][1]),t>0&&i.length>=3){var n=ml(i[0],i[1]),a=ml(i[1],i[2]);if(!n||!a){r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]);return}var o=Math.min(n,a)*t,s=Js([],i[1],i[0],o/n),l=Js([],i[1],i[2],o/a),u=Js([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var f=1;f<i.length;f++)r.lineTo(i[f][0],i[f][1])}function uE(r,e,t){var i=r.getTextGuideLine(),n=r.getTextContent();if(!n){i&&r.removeTextGuideLine();return}for(var a=e.normal,o=a.get("show"),s=n.ignore,l=0;l<Dl.length;l++){var u=Dl[l],f=e[u],h=u==="normal";if(f){var c=f.get("show"),v=h?s:J(n.states[u]&&n.states[u].ignore,s);if(v||!J(c,o)){var p=h?i:i&&i.states[u];p&&(p.ignore=!0),i&&Qf(i,!0,u,f);continue}i||(i=new He,r.setTextGuideLine(i),!h&&(s||!o)&&Qf(i,!0,"normal",e.normal),r.stateProxy&&(i.stateProxy=r.stateProxy)),Qf(i,!1,u,f)}}if(i){q(i.style,t),i.style.fill=null;var d=a.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=d||!1,i.buildPath=lE}}function fE(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},i=0;i<Ge.length;i++){var n=Ge[i];t[n]=r.getModel([n,e])}return t}function hE(r){for(var e=[],t=0;t<r.length;t++){var i=r[t];if(!i.defaultAttr.ignore){var n=i.label,a=n.getComputedTransform(),o=n.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=n.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new Il(o,a):null;e.push({label:n,labelLine:i.labelLine,rect:u,localRect:o,obb:f,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:a})}}return e}function vE(r,e,t,i,n,a){var o=r.length;if(o<2)return;r.sort(function(C,A){return C.rect[e]-A.rect[e]});for(var s=0,l,u=!1,f=0,h=0;h<o;h++){var c=r[h],v=c.rect;l=v[e]-s,l<0&&(v[e]-=l,c.label[e]-=l,u=!0);var p=Math.max(-l,0);f+=p,s=v[e]+v[t]}f>0&&a&&w(-f/o,0,o);var d=r[0],g=r[o-1],y,m;_(),y<0&&x(-y,.8),m<0&&x(m,.8),_(),S(y,m,1),S(m,y,-1),_(),y<0&&T(-y),m<0&&T(m);function _(){y=d.rect[e]-i,m=n-g.rect[e]-g.rect[t]}function S(C,A,M){if(C<0){var D=Math.min(A,-C);if(D>0){w(D*M,0,o);var I=D+C;I<0&&x(-I*M,1)}else x(-C*M,1)}}function w(C,A,M){C!==0&&(u=!0);for(var D=A;D<M;D++){var I=r[D],P=I.rect;P[e]+=C,I.label[e]+=C}}function x(C,A){for(var M=[],D=0,I=1;I<o;I++){var P=r[I-1].rect,L=Math.max(r[I].rect[e]-P[e]-P[t],0);M.push(L),D+=L}if(D){var R=Math.min(Math.abs(C)/D,A);if(C>0)for(var I=0;I<o-1;I++){var k=M[I]*R;w(k,0,I+1)}else for(var I=o-1;I>0;I--){var k=M[I-1]*R;w(-k,I,o)}}}function T(C){var A=C<0?-1:1;C=Math.abs(C);for(var M=Math.ceil(C/(o-1)),D=0;D<o-1;D++)if(A>0?w(M,0,D+1):w(-M,o-D-1,o),C-=M,C<=0)return}return u}function cE(r,e,t,i){return vE(r,"y","height",e,t,i)}function pE(r){var e=[];r.sort(function(d,g){return g.priority-d.priority});var t=new lt(0,0,0,0);function i(d){if(!d.ignore){var g=d.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}d.ignore=!0}for(var n=0;n<r.length;n++){var a=r[n],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,f=a.labelLine;t.copy(a.rect),t.width-=.1,t.height-=.1,t.x+=.05,t.y+=.05;for(var h=a.obb,c=!1,v=0;v<e.length;v++){var p=e[v];if(t.intersect(p.rect)){if(o&&p.axisAligned){c=!0;break}if(p.obb||(p.obb=new Il(p.localRect,p.transform)),h||(h=new Il(s,l)),h.intersect(p.obb)){c=!0;break}}}c?(i(u),f&&i(f)):(u.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),e.push(a))}}const qy=Object.freeze(Object.defineProperty({__proto__:null,Axis:or,ChartView:Ut,ComponentModel:ft,ComponentView:At,List:ku,Model:Tt,PRIORITY:Kx,SeriesModel:xe,color:mA,connect:bL,dataTool:PL,dependencies:aL,disConnect:TL,disconnect:nw,dispose:CL,env:ht,extendChartView:aE,extendComponentModel:rE,extendComponentView:iE,extendSeriesModel:nE,format:UR,getCoordinateSystemDimensions:ML,getInstanceByDom:fp,getInstanceById:AL,getMap:IL,graphic:WR,helper:kR,init:wL,innerDrawElementOnCanvas:Gx,matrix:$C,number:GR,parseGeoJSON:Mv,parseGeoJson:Mv,registerAction:ar,registerCoordinateSystem:sw,registerLayout:lw,registerLoading:dp,registerLocale:Gc,registerMap:uw,registerPostInit:aw,registerPostUpdate:ow,registerPreprocessor:vp,registerProcessor:cp,registerTheme:hp,registerTransform:fw,registerUpdateLifecycle:Eu,registerVisual:Ti,setCanvasCreator:DL,setPlatformAPI:X_,throttle:Pu,time:HR,use:Ft,util:YR,vector:RC,version:nL,zrUtil:bC,zrender:tM},Symbol.toStringTag,{value:"Module"}));var dE=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){return Qo(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var i=new nt,n=Yt("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);i.add(n),n.setStyle(t.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=t.itemHeight*.8,u=Yt(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);i.add(u),u.setStyle(t.itemStyle);var f=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),i},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(xe);function Fu(r,e){var t=r.mapDimensionsAll("defaultedLabel"),i=t.length;if(i===1){var n=oa(r,e,t[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o<t.length;o++)a.push(oa(r,e,t[o]));return a.join(" ")}}function Gw(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!z(e))return e+"";for(var i=[],n=0;n<t.length;n++){var a=r.getDimensionIndex(t[n]);a>=0&&i.push(e[a])}return i.join(" ")}var Tp=function(r){E(e,r);function e(t,i,n,a){var o=r.call(this)||this;return o.updateData(t,i,n,a),o}return e.prototype._createSymbol=function(t,i,n,a,o){this.removeAll();var s=Yt(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=gE,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){ia(this.childAt(0))},e.prototype.downplay=function(){na(this.childAt(0))},e.prototype.setZ=function(t,i){var n=this.childAt(0);n.zlevel=t,n.z=i},e.prototype.setDraggable=function(t,i){var n=this.childAt(0);n.draggable=t,n.cursor=!i&&t?"move":n.cursor},e.prototype.updateData=function(t,i,n,a){this.silent=!1;var o=t.getItemVisual(i,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,i),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var h=t.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,t,i,l,h)}else{var c=this.childAt(0);c.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?c.attr(v):Lt(c,v,s,i),Mo(c)}if(this._updateCommon(t,i,l,n,a),u){var c=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,se(c,v,s,i)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,i,n,a,o){var s=this.childAt(0),l=t.hostModel,u,f,h,c,v,p,d,g,y;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,c=a.focus,v=a.blurScope,d=a.labelStatesModels,g=a.hoverScale,y=a.cursorStyle,p=a.emphasisDisabled),!a||t.hasItemOption){var m=a&&a.itemModel?a.itemModel:t.getItemModel(i),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),v=_.get("blurScope"),p=_.get("disabled"),d=$r(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=t.getItemVisual(i,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var w=Lu(t.getItemVisual(i,"symbolOffset"),n);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var x=t.getItemVisual(i,"style"),T=x.fill;if(s instanceof he){var C=s.style;s.useStyle(O({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},x))}else s.__isEmptyBrush?s.useStyle(O({},x)):s.useStyle(x),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=t.getItemVisual(i,"liftZ"),M=this._z2;A!=null?M==null&&(this._z2=s.z2,s.z2+=A):M!=null&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;Xr(s,d,{labelFetcher:l,labelDataIndex:i,defaultText:I,inheritColor:T,defaultOpacity:x.opacity});function I(R){return D?t.getName(R):Fu(t,R)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var P=s.ensureState("emphasis");P.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var L=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;P.scaleX=this._sizeX*L,P.scaleY=this._sizeY*L,this.setSymbolScale(1),_i(this,c,v,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,i,n){var a=this.childAt(0),o=it(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var l=a.getTextContent();l&&Ao(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Ao(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,i){return ap(t.getItemVisual(i,"symbolSize"))},e}(nt);function gE(r,e){this.parent.drift(r,e)}function th(r,e,t,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(t))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function Ky(r){return r!=null&&!Y(r)&&(r={isIgnore:r}),r||{}}function jy(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:$r(e),cursorStyle:e.get("cursor")}}var Hw=function(){function r(e){this.group=new nt,this._SymbolCtor=e||Tp}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=Ky(t);var i=this.group,n=e.hostModel,a=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=jy(e),u={disableAnimation:s},f=t.getSymbolPoint||function(h){return e.getItemLayout(h)};a||i.removeAll(),e.diff(a).add(function(h){var c=f(h);if(th(e,c,h,t)){var v=new o(e,h,l,u);v.setPosition(c),e.setItemGraphicEl(h,v),i.add(v)}}).update(function(h,c){var v=a.getItemGraphicEl(c),p=f(h);if(!th(e,p,h,t)){i.remove(v);return}var d=e.getItemVisual(h,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==d)i.remove(v),v=new o(e,h,l,u),v.setPosition(p);else{v.updateData(e,h,l,u);var y={x:p[0],y:p[1]};s?v.attr(y):Lt(v,y,n)}i.add(v),e.setItemGraphicEl(h,v)}).remove(function(h){var c=a.getItemGraphicEl(h);c&&c.fadeOut(function(){i.remove(c)},n)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(i,n){var a=e._getSymbolPoint(n);i.setPosition(a),i.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=jy(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,i){this._progressiveEls=[],i=Ky(i);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var o=t.getItemLayout(a);if(th(t,o,a,i)){var s=new this._SymbolCtor(t,a,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(e){_u(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,i=this._data;i&&e?i.eachItemGraphicEl(function(n){n.fadeOut(function(){t.remove(n)},i.hostModel)}):t.removeAll()},r}();function Ww(r,e,t){var i=r.getBaseAxis(),n=r.getOtherAxis(i),a=yE(n,t),o=i.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=V(r.dimensions,function(p){return e.mapDimension(p)}),c=!1,v=e.getCalculationInfo("stackResultDimension");return xi(e,h[0])&&(c=!0,h[0]=v),xi(e,h[1])&&(c=!0,h[1]=v),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function yE(r,e){var t=0,i=r.scale.getExtent();return e==="start"?t=i[0]:e==="end"?t=i[1]:mt(e)&&!isNaN(e)?t=e:i[0]>0?t=i[0]:i[1]<0&&(t=i[1]),t}function Uw(r,e,t,i){var n=NaN;r.stacked&&(n=t.get(t.getCalculationInfo("stackedOverDimension"),i)),isNaN(n)&&(n=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=t.get(r.baseDim,i),o[1-a]=n,e.dataToPoint(o)}function mE(r,e){var t=[];return e.diff(r).add(function(i){t.push({cmd:"+",idx:i})}).update(function(i,n){t.push({cmd:"=",idx:n,idx1:i})}).remove(function(i){t.push({cmd:"-",idx:i})}).execute(),t}function _E(r,e,t,i,n,a,o,s){for(var l=mE(r,e),u=[],f=[],h=[],c=[],v=[],p=[],d=[],g=Ww(n,e,o),y=r.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],w=!0,x=void 0,T=void 0;switch(S.cmd){case"=":x=S.idx*2,T=S.idx1*2;var C=y[x],A=y[x+1],M=m[T],D=m[T+1];(isNaN(C)||isNaN(A))&&(C=M,A=D),u.push(C,A),f.push(M,D),h.push(t[x],t[x+1]),c.push(i[T],i[T+1]),d.push(e.getRawIndex(S.idx1));break;case"+":var I=S.idx,P=g.dataDimsForPoint,L=n.dataToPoint([e.get(P[0],I),e.get(P[1],I)]);T=I*2,u.push(L[0],L[1]),f.push(m[T],m[T+1]);var R=Uw(g,n,e,I);h.push(R[0],R[1]),c.push(i[T],i[T+1]),d.push(e.getRawIndex(I));break;case"-":w=!1}w&&(v.push(S),p.push(p.length))}p.sort(function(Rt,St){return d[Rt]-d[St]});for(var k=u.length,G=Or(k),B=Or(k),N=Or(k),H=Or(k),Z=[],_=0;_<p.length;_++){var $=p[_],ot=_*2,ct=$*2;G[ot]=u[ct],G[ot+1]=u[ct+1],B[ot]=f[ct],B[ot+1]=f[ct+1],N[ot]=h[ct],N[ot+1]=h[ct+1],H[ot]=c[ct],H[ot+1]=c[ct+1],Z[_]=v[$]}return{current:G,next:B,stackedOnCurrent:N,stackedOnNext:H,status:Z}}var ti=Math.min,ei=Math.max;function cn(r,e){return isNaN(r)||isNaN(e)}function Dv(r,e,t,i,n,a,o,s,l){for(var u,f,h,c,v,p,d=t,g=0;g<i;g++){var y=e[d*2],m=e[d*2+1];if(d>=n||d<0)break;if(cn(y,m)){if(l){d+=a;continue}break}if(d===t)r[a>0?"moveTo":"lineTo"](y,m),h=y,c=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){d+=a;continue}if(o>0){for(var w=d+a,x=e[w*2],T=e[w*2+1];x===y&&T===m&&g<i;)g++,w+=a,d+=a,x=e[w*2],T=e[w*2+1],y=e[d*2],m=e[d*2+1],_=y-u,S=m-f;var C=g+1;if(l)for(;cn(x,T)&&C<i;)C++,w+=a,x=e[w*2],T=e[w*2+1];var A=.5,M=0,D=0,I=void 0,P=void 0;if(C>=i||cn(x,T))v=y,p=m;else{M=x-u,D=T-f;var L=y-u,R=x-y,k=m-f,G=T-m,B=void 0,N=void 0;if(s==="x"){B=Math.abs(L),N=Math.abs(R);var H=M>0?1:-1;v=y-H*B*o,p=m,I=y+H*N*o,P=m}else if(s==="y"){B=Math.abs(k),N=Math.abs(G);var Z=D>0?1:-1;v=y,p=m-Z*B*o,I=y,P=m+Z*N*o}else B=Math.sqrt(L*L+k*k),N=Math.sqrt(R*R+G*G),A=N/(N+B),v=y-M*o*(1-A),p=m-D*o*(1-A),I=y+M*o*A,P=m+D*o*A,I=ti(I,ei(x,y)),P=ti(P,ei(T,m)),I=ei(I,ti(x,y)),P=ei(P,ti(T,m)),M=I-y,D=P-m,v=y-M*B/N,p=m-D*B/N,v=ti(v,ei(u,y)),p=ti(p,ei(f,m)),v=ei(v,ti(u,y)),p=ei(p,ti(f,m)),M=y-v,D=m-p,I=y+M*N/B,P=m+D*N/B}r.bezierCurveTo(h,c,v,p,y,m),h=I,c=P}else r.lineTo(y,m)}u=y,f=m,d+=a}return g}var Yw=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),SE=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="ec-polyline",i}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Yw},e.prototype.buildPath=function(t,i){var n=i.points,a=0,o=n.length/2;if(i.connectNulls){for(;o>0&&cn(n[o*2-2],n[o*2-1]);o--);for(;a<o&&cn(n[a*2],n[a*2+1]);a++);}for(;a<o;)a+=Dv(t,n,a,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},e.prototype.getPointOn=function(t,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,a=n.data,o=mi.CMD,s,l,u=i==="x",f=[],h=0;h<a.length;){var c=a[h++],v=void 0,p=void 0,d=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(c){case o.M:s=a[h++],l=a[h++];break;case o.L:if(v=a[h++],p=a[h++],_=u?(t-s)/(v-s):(t-l)/(p-l),_<=1&&_>=0){var S=u?(p-l)*_+l:(v-s)*_+s;return u?[t,S]:[S,t]}s=v,l=p;break;case o.C:v=a[h++],p=a[h++],d=a[h++],g=a[h++],y=a[h++],m=a[h++];var w=u?Sl(s,v,d,y,t,f):Sl(l,p,g,m,t,f);if(w>0)for(var x=0;x<w;x++){var T=f[x];if(T<=1&&T>=0){var S=u?Wt(l,p,g,m,T):Wt(s,v,d,y,T);return u?[t,S]:[S,t]}}s=y,l=m;break}}},e}(gt),xE=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(Yw),wE=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="ec-polygon",i}return e.prototype.getDefaultShape=function(){return new xE},e.prototype.buildPath=function(t,i){var n=i.points,a=i.stackedOnPoints,o=0,s=n.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&cn(n[s*2-2],n[s*2-1]);s--);for(;o<s&&cn(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=Dv(t,n,o,s,s,1,i.smooth,l,i.connectNulls);Dv(t,a,o+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=u+1,t.closePath()}},e}(gt);function Xw(r,e,t,i,n){var a=r.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=t.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var h=new pt({shape:{x:o,y:s,width:l,height:u}});if(e){var c=r.getBaseAxis(),v=c.isHorizontal(),p=c.inverse;v?(p&&(h.shape.x+=l),h.shape.width=0):(p||(h.shape.y+=u),h.shape.height=0);var d=K(n)?function(g){n(g,h)}:null;se(h,{shape:{width:l,height:u,x:o,y:s}},t,null,i,d)}return h}function $w(r,e,t){var i=r.getArea(),n=Pt(i.r0,1),a=Pt(i.r,1),o=new br({shape:{cx:Pt(r.cx,1),cy:Pt(r.cy,1),r0:n,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=i.startAngle:o.shape.r=n,se(o,{shape:{endAngle:i.endAngle,r:a}},t)}return o}function Zw(r,e,t,i,n){if(r){if(r.type==="polar")return $w(r,e,t);if(r.type==="cartesian2d")return Xw(r,e,t,i,n)}else return null;return null}function Cp(r,e){return r.type===e}function Jy(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function Qy(r){for(var e=1/0,t=1/0,i=-1/0,n=-1/0,a=0;a<r.length;){var o=r[a++],s=r[a++];isNaN(o)||(e=Math.min(o,e),i=Math.max(o,i)),isNaN(s)||(t=Math.min(s,t),n=Math.max(s,n))}return[[e,t],[i,n]]}function tm(r,e){var t=Qy(r),i=t[0],n=t[1],a=Qy(e),o=a[0],s=a[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(i[1]-o[1]),Math.abs(n[0]-s[0]),Math.abs(n[1]-s[1]))}function em(r){return mt(r)?r:r?.5:0}function bE(r,e,t){if(!t.valueDim)return[];for(var i=e.count(),n=Or(i*2),a=0;a<i;a++){var o=Uw(t,r,e,a);n[a*2]=o[0],n[a*2+1]=o[1]}return n}function ri(r,e,t,i){var n=e.getBaseAxis(),a=n.dim==="x"||n.dim==="radius"?0:1,o=[],s=0,l=[],u=[],f=[],h=[];if(i){for(s=0;s<r.length;s+=2)!isNaN(r[s])&&!isNaN(r[s+1])&&h.push(r[s],r[s+1]);r=h}for(s=0;s<r.length-2;s+=2)switch(f[0]=r[s+2],f[1]=r[s+3],u[0]=r[s],u[1]=r[s+1],o.push(u[0],u[1]),t){case"end":l[a]=f[a],l[1-a]=u[1-a],o.push(l[0],l[1]);break;case"middle":var c=(u[a]+f[a])/2,v=[];l[a]=v[a]=c,l[1-a]=u[1-a],v[1-a]=f[1-a],o.push(l[0],l[1]),o.push(v[0],v[1]);break;default:l[a]=u[a],l[1-a]=f[1-a],o.push(l[0],l[1])}return o.push(r[s++],r[s++]),o}function TE(r,e){var t=[],i=r.length,n,a;function o(f,h,c){var v=f.coord,p=(c-v)/(h.coord-v),d=pc(p,[f.color,h.color]);return{coord:c,color:d}}for(var s=0;s<i;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>e){a?t.push(o(a,l,e)):n&&t.push(o(n,l,0),o(n,l,e));break}else n&&(t.push(o(n,l,0)),n=null),t.push(l),a=l}return t}function CE(r,e,t){var i=r.getVisual("visualMeta");if(!(!i||!i.length||!r.count())&&e.type==="cartesian2d"){for(var n,a,o=i.length-1;o>=0;o--){var s=r.getDimensionInfo(i[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){a=i[o];break}}if(a){var l=e.getAxis(n),u=V(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var c=TE(u,n==="x"?t.getWidth():t.getHeight()),v=c.length;if(!v&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var p=10,d=c[0].coord-p,g=c[v-1].coord+p,y=g-d;if(y<.001)return"transparent";b(c,function(_){_.offset=(_.coord-d)/y}),c.push({offset:v?c[v-1].offset:.5,color:h[1]||"transparent"}),c.unshift({offset:v?c[0].offset:.5,color:h[0]||"transparent"});var m=new Ko(0,0,0,0,c,!0);return m[n]=d,m[n+"2"]=g,m}}}function AE(r,e,t){var i=r.get("showAllSymbol"),n=i==="auto";if(!(i&&!n)){var a=t.getAxesByScale("ordinal")[0];if(a&&!(n&&ME(a,e))){var o=e.mapDimension(a.dim),s={};return b(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function ME(r,e){var t=r.getExtent(),i=Math.abs(t[1]-t[0])/r.scale.count();isNaN(i)&&(i=0);for(var n=e.count(),a=Math.max(1,Math.round(n/5)),o=0;o<n;o+=a)if(Tp.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>i)return!1;return!0}function DE(r,e){return isNaN(r)||isNaN(e)}function IE(r){for(var e=r.length/2;e>0&&DE(r[e*2-2],r[e*2-1]);e--);return e-1}function rm(r,e){return[r[e*2],r[e*2+1]]}function PE(r,e,t){for(var i=r.length/2,n=t==="x"?0:1,a,o,s=0,l=-1,u=0;u<i;u++)if(o=r[u*2+n],!(isNaN(o)||isNaN(r[u*2+1-n]))){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function qw(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<Ge.length;e++)if(r.get([Ge[e],"endLabel","show"]))return!0;return!1}function eh(r,e,t,i){if(Cp(e,"cartesian2d")){var n=i.getModel("endLabel"),a=n.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=qw(i)?function(v,p){r._endLabelOnDuring(v,p,o,s,a,n,e)}:null,u=e.getBaseAxis().isHorizontal(),f=Xw(e,t,i,function(){var v=r._endLabel;v&&t&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var h=f.shape,c=Math.max(h.width,h.height);u?(h.y-=c,h.height+=c*2):(h.x-=c,h.width+=c*2)}return l&&l(1,f),f}else return $w(e,t,i)}function LE(r,e){var t=e.getBaseAxis(),i=t.isHorizontal(),n=t.inverse,a=i?n?"right":"left":"center",o=i?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||a,verticalAlign:r.get("verticalAlign")||o}}}var RE=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new nt,i=new Hw;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=t},e.prototype.render=function(t,i,n){var a=this,o=t.coordinateSystem,s=this.group,l=t.getData(),u=t.getModel("lineStyle"),f=t.getModel("areaStyle"),h=l.getLayout("points")||[],c=o.type==="polar",v=this._coordSys,p=this._symbolDraw,d=this._polyline,g=this._polygon,y=this._lineGroup,m=!i.ssr&&t.get("animation"),_=!f.isEmpty(),S=f.get("origin"),w=Ww(o,l,S),x=_&&bE(o,l,w),T=t.get("showSymbol"),C=t.get("connectNulls"),A=T&&!c&&AE(t,l,o),M=this._data;M&&M.eachItemGraphicEl(function(St,$t){St.__temp&&(s.remove(St),M.setItemGraphicEl($t,null))}),T||p.remove(),s.add(y);var D=c?!1:t.get("step"),I;o&&o.getArea&&t.get("clip",!0)&&(I=o.getArea(),I.width!=null?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var P=CE(l,o,n)||l.getVisual("style")[l.getVisual("drawType")];if(!(d&&v.type===o.type&&D===this._step))T&&p.updateData(l,{isIgnore:A,clipShape:I,disableAnimation:!0,getSymbolPoint:function(St){return[h[St*2],h[St*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,I),D&&(h=ri(h,o,D,C),x&&(x=ri(x,o,D,C))),d=this._newPolyline(h),_?g=this._newPolygon(h,x):g&&(y.remove(g),g=this._polygon=null),c||this._initOrUpdateEndLabel(t,o,yn(P)),y.setClipPath(eh(this,o,!0,t));else{_&&!g?g=this._newPolygon(h,x):g&&!_&&(y.remove(g),g=this._polygon=null),c||this._initOrUpdateEndLabel(t,o,yn(P));var L=y.getClipPath();if(L){var R=eh(this,o,!1,t);se(L,{shape:R.shape},t)}else y.setClipPath(eh(this,o,!0,t));T&&p.updateData(l,{isIgnore:A,clipShape:I,disableAnimation:!0,getSymbolPoint:function(St){return[h[St*2],h[St*2+1]]}}),(!Jy(this._stackedOnPoints,x)||!Jy(this._points,h))&&(m?this._doUpdateAnimation(l,x,o,n,D,S,C):(D&&(h=ri(h,o,D,C),x&&(x=ri(x,o,D,C))),d.setShape({points:h}),g&&g.setShape({points:h,stackedOnPoints:x})))}var k=t.getModel("emphasis"),G=k.get("focus"),B=k.get("blurScope"),N=k.get("disabled");if(d.useStyle(q(u.getLineStyle(),{fill:"none",stroke:P,lineJoin:"bevel"})),aa(d,t,"lineStyle"),d.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var H=d.getState("emphasis").style;H.lineWidth=+d.style.lineWidth+1}it(d).seriesIndex=t.seriesIndex,_i(d,G,B,N);var Z=em(t.get("smooth")),$=t.get("smoothMonotone");if(d.setShape({smooth:Z,smoothMonotone:$,connectNulls:C}),g){var ot=l.getCalculationInfo("stackedOnSeries"),ct=0;g.useStyle(q(f.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ot&&(ct=em(ot.get("smooth"))),g.setShape({smooth:Z,stackedOnSmooth:ct,smoothMonotone:$,connectNulls:C}),aa(g,t,"areaStyle"),it(g).seriesIndex=t.seriesIndex,_i(g,G,B,N)}var Rt=function(St){a._changePolyState(St)};l.eachItemGraphicEl(function(St){St&&(St.onHoverStateChange=Rt)}),this._polyline.onHoverStateChange=Rt,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=h,this._step=D,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,d),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,i){it(i).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,i,n,a){var o=t.getData(),s=gn(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var c=t.get("zlevel")||0,v=t.get("z")||0;u=new Tp(o,s),u.x=f,u.y=h,u.setZ(c,v);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=c,p.z=v,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Ut.prototype.highlight.call(this,t,i,n,a)},e.prototype.downplay=function(t,i,n,a){var o=t.getData(),s=gn(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Ut.prototype.downplay.call(this,t,i,n,a)},e.prototype._changePolyState=function(t){var i=this._polygon;av(this._polyline,t),i&&av(i,t)},e.prototype._newPolyline=function(t){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new SE({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},e.prototype._newPolygon=function(t,i){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new wE({shape:{points:t,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,i,n){var a,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):i.type==="polar"&&(a=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");K(f)&&(f=f(null));var h=u.get("animationDelay")||0,c=K(h)?h(null):h;t.eachItemGraphicEl(function(v,p){var d=v;if(d){var g=[v.x,v.y],y=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,w=i.pointToCoord(g);a?(y=S.startAngle,m=S.endAngle,_=-w[1]/180*Math.PI):(y=S.r0,m=S.r,_=w[0])}else{var x=n;a?(y=x.x,m=x.x+x.width,_=v.x):(y=x.y+x.height,m=x.y,_=v.y)}var T=m===y?0:(_-y)/(m-y);l&&(T=1-T);var C=K(h)?h(p):f*T+c,A=d.getSymbolPath(),M=A.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:C}),A.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,i,n){var a=t.getModel("endLabel");if(qw(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new dt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=IE(l);f>=0&&(Xr(s,$r(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:f,defaultText:function(h,c,v){return v!=null?Gw(o,v):Fu(o,h)},enableTextSetter:!0},LE(a,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,i,n,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var h=n.getLayout("points"),c=n.hostModel,v=c.get("connectNulls"),p=s.get("precision"),d=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=i.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,w=(y?d:0)*(m?-1:1),x=(y?0:-d)*(m?-1:1),T=y?"x":"y",C=PE(h,S,T),A=C.range,M=A[1]-A[0],D=void 0;if(M>=1){if(M>1&&!v){var I=rm(h,A[0]);u.attr({x:I[0]+w,y:I[1]+x}),o&&(D=c.getRawValue(A[0]))}else{var I=f.getPointOn(S,T);I&&u.attr({x:I[0]+w,y:I[1]+x});var P=c.getRawValue(A[0]),L=c.getRawValue(A[1]);o&&(D=wM(n,p,P,L,C.t))}a.lastFrameIndex=A[0]}else{var R=t===1||a.lastFrameIndex>0?A[0]:0,I=rm(h,R);o&&(D=c.getRawValue(R)),u.attr({x:I[0]+w,y:I[1]+x})}if(o){var k=xu(u);typeof k.setLabelText=="function"&&k.setLabelText(D)}}},e.prototype._doUpdateAnimation=function(t,i,n,a,o,s,l){var u=this._polyline,f=this._polygon,h=t.hostModel,c=_E(this._data,t,this._stackedOnPoints,i,this._coordSys,n,this._valueOrigin),v=c.current,p=c.stackedOnCurrent,d=c.next,g=c.stackedOnNext;if(o&&(v=ri(c.current,n,o,l),p=ri(c.stackedOnCurrent,n,o,l),d=ri(c.next,n,o,l),g=ri(c.stackedOnNext,n,o,l)),tm(v,d)>3e3||f&&tm(p,g)>3e3){u.stopAnimation(),u.setShape({points:d}),f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:g}));return}u.shape.__points=c.current,u.shape.points=v;var y={shape:{points:d}};c.current!==v&&(y.shape.__points=c.next),u.stopAnimation(),Lt(u,y,h),f&&(f.setShape({points:v,stackedOnPoints:p}),f.stopAnimation(),Lt(f,{shape:{stackedOnPoints:g}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=c.status,S=0;S<_.length;S++){var w=_[S].cmd;if(w==="="){var x=t.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var T=u.shape.__points,C=0;C<m.length;C++){var A=m[C].el,M=m[C].ptIdx*2;A.x=T[M],A.y=T[M+1],A.markRedraw()}})},e.prototype.remove=function(t){var i=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(a,o){a.__temp&&(i.remove(a),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(Ut);function Ap(r,e){return{seriesType:r,plan:ip(),reset:function(t){var i=t.getData(),n=t.coordinateSystem,a=t.pipelineContext,o=e||a.large;if(n){var s=V(n.dimensions,function(v){return i.mapDimension(v)}).slice(0,2),l=s.length,u=i.getCalculationInfo("stackResultDimension");xi(i,s[0])&&(s[0]=u),xi(i,s[1])&&(s[1]=u);var f=i.getStore(),h=i.getDimensionIndex(s[0]),c=i.getDimensionIndex(s[1]);return l&&{progress:function(v,p){for(var d=v.end-v.start,g=o&&Or(d*l),y=[],m=[],_=v.start,S=0;_<v.end;_++){var w=void 0;if(l===1){var x=f.get(h,_);w=n.dataToPoint(x,null,m)}else y[0]=f.get(h,_),y[1]=f.get(c,_),w=n.dataToPoint(y,null,m);o?(g[S++]=w[0],g[S++]=w[1]):p.setItemLayout(_,w.slice())}o&&p.setLayout("points",g)}}}}}}var EE={average:function(r){for(var e=0,t=0,i=0;i<r.length;i++)isNaN(r[i])||(e+=r[i],t++);return t===0?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},minmax:function(r){for(var e=-1/0,t=-1/0,i=0;i<r.length;i++){var n=r[i],a=Math.abs(n);a>e&&(e=a,t=n)}return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},kE=function(r){return Math.round(r.length/2)};function Kw(r){return{seriesType:r,reset:function(e,t,i){var n=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=i.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(h||1),v=Math.round(s/c);if(isFinite(v)&&v>1){a==="lttb"&&e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/v));var p=void 0;F(a)?p=EE[a]:K(a)&&(p=a),p&&e.setData(n.downSample(n.mapDimension(u.dim),1/v,p,kE))}}}}}function OE(r){r.registerChartView(RE),r.registerSeriesModel(dE),r.registerLayout(Ap("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),i=e.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",i)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Kw("line"))}var Bo=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){return Qo(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,i,n){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(t),s=a.dataToPoint(o);if(n)b(a.getAxes(),function(c,v){if(c.type==="category"&&i!=null){var p=c.getTicksCoords(),d=c.getTickModel().get("alignWithLabel"),g=o[v],y=i[v]==="x1"||i[v]==="y1";if(y&&!d&&(g+=1),p.length<2)return;if(p.length===2){s[v]=c.toGlobalCoord(c.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,w=0;w<p.length;w++){var x=p[w].coord,T=w===p.length-1?p[w-1].tickValue+S:p[w].tickValue;if(T===g){_=x;break}else if(T<g)m=x;else if(m!=null&&T>g){_=(x+m)/2;break}w===1&&(S=T-p[0].tickValue)}_==null&&(m?m&&(_=p[p.length-1].coord):_=p[0].coord),s[v]=c.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(xe);xe.registerClass(Bo);var BE=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return Qo(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),i=this.get("largeThreshold");return i>t&&(t=i),t},e.prototype.brushSelector=function(t,i,n){return n.rect(i.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=bi(Bo.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(Bo),NE=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),im=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="sausage",i}return e.prototype.getDefaultShape=function(){return new NE},e.prototype.buildPath=function(t,i){var n=i.cx,a=i.cy,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-o)*.5,u=o+l,f=i.startAngle,h=i.endAngle,c=i.clockwise,v=Math.PI*2,p=c?h-f<v:f-h<v;p||(f=h-(c?v:-v));var d=Math.cos(f),g=Math.sin(f),y=Math.cos(h),m=Math.sin(h);p?(t.moveTo(d*o+n,g*o+a),t.arc(d*u+n,g*u+a,l,-Math.PI+f,f,!c)):t.moveTo(d*s+n,g*s+a),t.arc(n,a,s,f,h,!c),t.arc(y*u+n,m*u+a,l,h-Math.PI*2,h-Math.PI,!c),o!==0&&t.arc(n,a,o,h,f,c)},e}(gt);function zE(r,e){e=e||{};var t=e.isRoundCap;return function(i,n,a){var o=n.position;if(!o||o instanceof Array)return Cl(i,n,a);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,f=u.cx,h=u.cy,c=u.r,v=u.r0,p=(c+v)/2,d=u.startAngle,g=u.endAngle,y=(d+g)/2,m=t?Math.abs(c-v)/2:0,_=Math.cos,S=Math.sin,w=f+c*_(d),x=h+c*S(d),T="left",C="top";switch(s){case"startArc":w=f+(v-l)*_(y),x=h+(v-l)*S(y),T="center",C="top";break;case"insideStartArc":w=f+(v+l)*_(y),x=h+(v+l)*S(y),T="center",C="bottom";break;case"startAngle":w=f+p*_(d)+zs(d,l+m,!1),x=h+p*S(d)+Vs(d,l+m,!1),T="right",C="middle";break;case"insideStartAngle":w=f+p*_(d)+zs(d,-l+m,!1),x=h+p*S(d)+Vs(d,-l+m,!1),T="left",C="middle";break;case"middle":w=f+p*_(y),x=h+p*S(y),T="center",C="middle";break;case"endArc":w=f+(c+l)*_(y),x=h+(c+l)*S(y),T="center",C="bottom";break;case"insideEndArc":w=f+(c-l)*_(y),x=h+(c-l)*S(y),T="center",C="top";break;case"endAngle":w=f+p*_(g)+zs(g,l+m,!0),x=h+p*S(g)+Vs(g,l+m,!0),T="left",C="middle";break;case"insideEndAngle":w=f+p*_(g)+zs(g,-l+m,!0),x=h+p*S(g)+Vs(g,-l+m,!0),T="right",C="middle";break;default:return Cl(i,n,a)}return i=i||{},i.x=w,i.y=x,i.align=T,i.verticalAlign=C,i}}function VE(r,e,t,i){if(mt(i)){r.setTextConfig({rotation:i});return}else if(z(e)){r.setTextConfig({rotation:0});return}var n=r.shape,a=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(a+o)/2,l,u=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function zs(r,e,t){return e*Math.sin(r)*(t?-1:1)}function Vs(r,e,t){return e*Math.cos(r)*(t?1:-1)}function eo(r,e,t){var i=r.get("borderRadius");if(i==null)return t?{cornerRadius:0}:null;z(i)||(i=[i,i,i,i]);var n=Math.abs(e.r||0-e.r0||0);return{cornerRadius:V(i,function(a){return rr(a,n)})}}var rh=Math.max,ih=Math.min;function FE(r,e){var t=r.getArea&&r.getArea();if(Cp(r,"cartesian2d")){var i=r.getBaseAxis();if(i.type!=="category"||!i.onBand){var n=e.getLayout("bandWidth");i.isHorizontal()?(t.x-=n,t.width+=n*2):(t.y-=n,t.height+=n*2)}}return t}var GE=function(r){E(e,r);function e(){var t=r.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,i,n,a){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var o=t.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,i,n):this._renderNormal(t,i,n,a))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,i){this._progressiveEls=[],this._incrementalRenderLarge(t,i)},e.prototype.eachRendered=function(t){_u(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var i=t.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},e.prototype._renderNormal=function(t,i,n,a){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.getBaseAxis(),h;u.type==="cartesian2d"?h=f.isHorizontal():u.type==="polar"&&(h=f.dim==="angle");var c=t.isAnimationEnabled()?t:null,v=HE(t,u);v&&this._enableRealtimeSort(v,s,n);var p=t.get("clip",!0)||v,d=FE(u,s);o.removeClipPath();var g=t.get("roundCap",!0),y=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],w=this._backgroundEls,x=a&&a.isInitSort,T=a&&a.type==="changeAxisOrder";function C(D){var I=Fs[u.type](s,D),P=qE(u,h,I);return P.useStyle(m.getItemStyle()),u.type==="cartesian2d"?P.setShape("r",_):P.setShape("cornerRadius",_),S[D]=P,P}s.diff(l).add(function(D){var I=s.getItemModel(D),P=Fs[u.type](s,D,I);if(y&&C(D),!(!s.hasValue(D)||!lm[u.type](P))){var L=!1;p&&(L=nm[u.type](d,P));var R=am[u.type](t,s,D,P,h,c,f.model,!1,g);v&&(R.forceLabelAnimation=!0),um(R,s,D,I,P,t,h,u.type==="polar"),x?R.attr({shape:P}):v?om(v,c,R,P,D,h,!1,!1):se(R,{shape:P},t,D),s.setItemGraphicEl(D,R),o.add(R),R.ignore=L}}).update(function(D,I){var P=s.getItemModel(D),L=Fs[u.type](s,D,P);if(y){var R=void 0;w.length===0?R=C(I):(R=w[I],R.useStyle(m.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),S[D]=R);var k=Fs[u.type](s,D),G=Jw(h,k,u);Lt(R,{shape:G},c,D)}var B=l.getItemGraphicEl(I);if(!s.hasValue(D)||!lm[u.type](L)){o.remove(B);return}var N=!1;if(p&&(N=nm[u.type](d,L),N&&o.remove(B)),B?Mo(B):B=am[u.type](t,s,D,L,h,c,f.model,!!B,g),v&&(B.forceLabelAnimation=!0),T){var H=B.getTextContent();if(H){var Z=xu(H);Z.prevValue!=null&&(Z.prevValue=Z.value)}}else um(B,s,D,P,L,t,h,u.type==="polar");x?B.attr({shape:L}):v?om(v,c,B,L,D,h,!0,T):Lt(B,{shape:L},t,D,null),s.setItemGraphicEl(D,B),B.ignore=N,o.add(B)}).remove(function(D){var I=l.getItemGraphicEl(D);I&&Pl(I,t,D)}).execute();var A=this._backgroundGroup||(this._backgroundGroup=new nt);A.removeAll();for(var M=0;M<S.length;++M)A.add(S[M]);o.add(A),this._backgroundEls=S,this._data=s},e.prototype._renderLarge=function(t,i,n){this._clear(),hm(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,i){this._removeBackground(),hm(i,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var i=t.get("clip",!0)&&Zw(t.coordinateSystem,!1,t),n=this.group;i?n.setClipPath(i):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,i,n){var a=this;if(i.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,t,n),this._isFirstFrame=!1;else{var s=function(l){var u=i.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(i,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,i,n){var a=[];return t.each(t.mapDimension(i.dim),function(o,s){var l=n(s);l=l==null?NaN:l,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:V(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,i,n){for(var a=n.scale,o=t.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=t.rawIndexOf(o,a.getRawOrdinalNumber(l)),h=f<0?Number.MIN_VALUE:i(t.indexOfRawIndex(f));if(h>s)return!0;s=h}return!1},e.prototype._isOrderDifferentInView=function(t,i){for(var n=i.scale,a=n.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,i,n,a){if(this._isOrderChangedWithinSameData(t,i,n)){var o=this._dataSort(t,n,i);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,i,n){var a=i.baseAxis,o=this._dataSort(t,a,function(s){return t.get(t.mapDimension(i.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(t,i){this._clear(this._model),this._removeOnRenderedListener(i)},e.prototype.dispose=function(t,i){this._removeOnRenderedListener(i)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var i=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(a){Pl(a,t,it(a).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Ut),nm={cartesian2d:function(r,e){var t=e.width<0?-1:1,i=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var n=r.x+r.width,a=r.y+r.height,o=rh(e.x,r.x),s=ih(e.x+e.width,n),l=rh(e.y,r.y),u=ih(e.y+e.height,a),f=s<o,h=u<l;return e.x=f&&o>n?s:o,e.y=h&&l>a?u:l,e.width=f?0:s-o,e.height=h?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),f||h},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}var n=ih(e.r,r.r),a=rh(e.r0,r.r0);e.r=n,e.r0=a;var o=n-a<0;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}return o}},am={cartesian2d:function(r,e,t,i,n,a,o,s,l){var u=new pt({shape:O({},i),z2:1});if(u.__dataIndex=t,u.name="item",a){var f=u.shape,h=n?"height":"width";f[h]=0}return u},polar:function(r,e,t,i,n,a,o,s,l){var u=!n&&l?im:br,f=new u({shape:i,z2:1});f.name="item";var h=jw(n);if(f.calculateTextPosition=zE(h,{isRoundCap:u===im}),a){var c=f.shape,v=n?"r":"endAngle",p={};c[v]=n?i.r0:i.startAngle,p[v]=i[v],(s?Lt:se)(f,{shape:p},a)}return f}};function HE(r,e){var t=r.get("realtimeSort",!0),i=e.getBaseAxis();if(t&&i.type==="category"&&e.type==="cartesian2d")return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function om(r,e,t,i,n,a,o,s){var l,u;a?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(o?Lt:se)(t,{shape:l},e,n,null);var f=e?r.baseAxis.model:null;(o?Lt:se)(t,{shape:u},f,n)}function sm(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var WE=["x","y","width","height"],UE=["cx","cy","r","startAngle","endAngle"],lm={cartesian2d:function(r){return!sm(r,WE)},polar:function(r){return!sm(r,UE)}},Fs={cartesian2d:function(r,e,t){var i=r.getItemLayout(e),n=t?XE(t,i):0,a=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*n/2,y:i.y+o*n/2,width:i.width-a*n,height:i.height-o*n}},polar:function(r,e,t){var i=r.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function YE(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function jw(r){return function(e){var t=e?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+t;default:return i}}}(r)}function um(r,e,t,i,n,a,o,s){var l=e.getItemVisual(t,"style");if(s){if(!a.get("roundCap")){var f=r.shape,h=eo(i.getModel("itemStyle"),f,!0);O(f,h),r.setShape(f)}}else{var u=i.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var c=i.getShallow("cursor");c&&r.attr("cursor",c);var v=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",p=$r(i);Xr(r,p,{labelFetcher:a,labelDataIndex:t,defaultText:Fu(a.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var d=r.getTextContent();if(s&&d){var g=i.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,VE(r,g==="outside"?v:g,jw(o),i.get(["label","rotate"]))}b2(d,p,a.getRawValue(t),function(m){return Gw(e,m)});var y=i.getModel(["emphasis"]);_i(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),aa(r,i),YE(n)&&(r.style.fill="none",r.style.stroke="none",b(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function XE(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var i=r.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,n,a)}var $E=function(){function r(){}return r}(),fm=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="largeBar",i}return e.prototype.getDefaultShape=function(){return new $E},e.prototype.buildPath=function(t,i){for(var n=i.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<n.length;f+=3)l[a]=u,l[o]=n[f+2],s[a]=n[f+a],s[o]=n[f+o],t.rect(s[0],s[1],l[0],l[1])},e}(gt);function hm(r,e,t,i){var n=r.getData(),a=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints");if(u){var f=new fm({shape:{points:u},incremental:!!i,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),e.add(f),t&&t.push(f)}var h=new fm({shape:{points:n.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,e.add(h),h.useStyle(n.getVisual("style")),it(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",vm),h.on("mousemove",vm)),t&&t.push(h)}var vm=Pu(function(r){var e=this,t=ZE(e,r.offsetX,r.offsetY);it(e).dataIndex=t>=0?t:null},30,!1);function ZE(r,e,t){for(var i=r.baseDimIdx,n=1-i,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=a.length/3;f<h;f++){var c=f*3;if(l[i]=u,l[n]=a[c+2],s[i]=a[c+i],s[n]=a[c+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function Jw(r,e,t){if(Cp(t,"cartesian2d")){var i=e,n=t.getArea();return{x:r?i.x:n.x,y:r?n.y:i.y,width:r?i.width:n.width,height:r?n.height:i.height}}else{var n=t.getArea(),a=e;return{cx:n.cx,cy:n.cy,r0:r?n.r0:a.r0,r:r?n.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function qE(r,e,t){var i=r.type==="polar"?br:pt;return new i({shape:Jw(e,t,r),silent:!0,z2:0})}function KE(r){r.registerChartView(GE),r.registerSeriesModel(BE),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,vt(ww,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,bw("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Kw("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})})}var cm=Math.PI*2,Gs=Math.PI/180;function Qw(r,e){return fe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function tb(r,e){var t=Qw(r,e),i=r.get("center"),n=r.get("radius");z(n)||(n=[0,n]);var a=Q(t.width,e.getWidth()),o=Q(t.height,e.getHeight()),s=Math.min(a,o),l=Q(n[0],s/2),u=Q(n[1],s/2),f,h,c=r.coordinateSystem;if(c){var v=c.dataToPoint(i);f=v[0]||0,h=v[1]||0}else z(i)||(i=[i,i]),f=Q(i[0],a)+t.x,h=Q(i[1],o)+t.y;return{cx:f,cy:h,r0:l,r:u}}function jE(r,e,t){e.eachSeriesByType(r,function(i){var n=i.getData(),a=n.mapDimension("value"),o=Qw(i,t),s=tb(i,t),l=s.cx,u=s.cy,f=s.r,h=s.r0,c=-i.get("startAngle")*Gs,v=i.get("endAngle"),p=i.get("padAngle")*Gs;v=v==="auto"?c-cm:-v*Gs;var d=i.get("minAngle")*Gs,g=d+p,y=0;n.each(a,function(G){!isNaN(G)&&y++});var m=n.getSum(a),_=Math.PI/(m||y)*2,S=i.get("clockwise"),w=i.get("roseType"),x=i.get("stillShowZeroSum"),T=n.getDataExtent(a);T[0]=0;var C=S?1:-1,A=[c,v],M=C*p/2;K1(A,!S),c=A[0],v=A[1];var D=eb(i);D.startAngle=c,D.endAngle=v,D.clockwise=S;var I=Math.abs(v-c),P=I,L=0,R=c;if(n.setLayout({viewRect:o,r:f}),n.each(a,function(G,B){var N;if(isNaN(G)){n.setItemLayout(B,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:h,r:w?NaN:f});return}w!=="area"?N=m===0&&x?_:G*_:N=I/y,N<g?(N=g,P-=g):L+=G;var H=R+C*N,Z=0,$=0;p>N?(Z=R+C*N/2,$=Z):(Z=R+M,$=H-M),n.setItemLayout(B,{angle:N,startAngle:Z,endAngle:$,clockwise:S,cx:l,cy:u,r0:h,r:w?xt(G,T,[h,f]):f}),R=H}),P<cm&&y)if(P<=.001){var k=I/y;n.each(a,function(G,B){if(!isNaN(G)){var N=n.getItemLayout(B);N.angle=k;var H=0,Z=0;k<p?(H=c+C*(B+1/2)*k,Z=H):(H=c+C*B*k+M,Z=c+C*(B+1)*k-M),N.startAngle=H,N.endAngle=Z}})}else _=P/L,R=c,n.each(a,function(G,B){if(!isNaN(G)){var N=n.getItemLayout(B),H=N.angle===g?g:G*_,Z=0,$=0;H<p?(Z=R+C*H/2,$=Z):(Z=R+M,$=R+C*H-M),N.startAngle=Z,N.endAngle=$,R+=C*H}})})}var eb=_t();function rb(r){return{seriesType:r,reset:function(e,t){var i=t.findComponents({mainType:"legend"});if(!(!i||!i.length)){var n=e.getData();n.filterSelf(function(a){for(var o=n.getName(a),s=0;s<i.length;s++)if(!i[s].isSelected(o))return!1;return!0})}}}}var JE=Math.PI/180;function pm(r,e,t,i,n,a,o,s,l,u){if(r.length<2)return;function f(d){for(var g=d.rB,y=g*g,m=0;m<d.list.length;m++){var _=d.list[m],S=Math.abs(_.label.y-t),w=i+_.len,x=w*w,T=Math.sqrt((1-Math.abs(S*S/y))*x),C=e+(T+_.len2)*n,A=C-_.label.x,M=_.targetTextWidth-A*n;ib(_,M,!0),_.label.x=C}}function h(d){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<d.length;m++)if(d[m].labelAlignTo==="none"){var _=d[m],S=_.label.y>t?y:g,w=Math.abs(_.label.y-t);if(w>=S.maxY){var x=_.label.x-e-_.len2*n,T=i+_.len,C=Math.abs(x)<T?Math.sqrt(w*w/(1-x*x/T/T)):T;S.rB=C,S.maxY=w}S.list.push(_)}f(g),f(y)}for(var c=r.length,v=0;v<c;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var p=r[v].label.x-u;r[v].linePoints[1][0]+=p,r[v].label.x=u}cE(r,l,l+o)&&h(r)}function QE(r,e,t,i,n,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,c=0;c<r.length;c++){var v=r[c].label;nh(r[c])||(v.x<e?(f=Math.min(f,v.x),l.push(r[c])):(h=Math.max(h,v.x),u.push(r[c])))}for(var c=0;c<r.length;c++){var p=r[c];if(!nh(p)&&p.linePoints){if(p.labelStyleWidth!=null)continue;var v=p.label,d=p.linePoints,g=void 0;p.labelAlignTo==="edge"?v.x<e?g=d[2][0]-p.labelDistance-o-p.edgeDistance:g=o+n-p.edgeDistance-d[2][0]-p.labelDistance:p.labelAlignTo==="labelLine"?v.x<e?g=f-o-p.bleedMargin:g=o+n-h-p.bleedMargin:v.x<e?g=v.x-o-p.bleedMargin:g=o+n-v.x-p.bleedMargin,p.targetTextWidth=g,ib(p,g)}}pm(u,e,t,i,1,n,a,o,s,h),pm(l,e,t,i,-1,n,a,o,s,f);for(var c=0;c<r.length;c++){var p=r[c];if(!nh(p)&&p.linePoints){var v=p.label,d=p.linePoints,y=p.labelAlignTo==="edge",m=v.style.padding,_=m?m[1]+m[3]:0,S=v.style.backgroundColor?0:_,w=p.rect.width+S,x=d[1][0]-d[2][0];y?v.x<e?d[2][0]=o+p.edgeDistance+w+p.labelDistance:d[2][0]=o+n-p.edgeDistance-w-p.labelDistance:(v.x<e?d[2][0]=v.x+p.labelDistance:d[2][0]=v.x-p.labelDistance,d[1][0]=d[2][0]+x),d[1][1]=d[2][1]=v.y}}}function ib(r,e,t){if(t===void 0&&(t=!1),r.labelStyleWidth==null){var i=r.label,n=i.style,a=r.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,f=a.width+(o?0:l);if(e<f||t){var h=a.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var c=i.getBoundingRect();i.setStyle("width",Math.ceil(c.width)),i.setStyle("backgroundColor",o)}else{var v=e-l,p=e<f?v:t?v>r.unconstrainedWidth?null:v:null;i.setStyle("width",p)}var d=i.getBoundingRect();a.width=d.width;var g=(i.style.margin||0)+2.1;a.height=d.height+g,a.y-=(a.height-h)/2}}}function nh(r){return r.position==="center"}function tk(r){var e=r.getData(),t=[],i,n,a=!1,o=(r.get("minShowLabelAngle")||0)*JE,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,h=s.y,c=s.height;function v(x){x.ignore=!0}function p(x){if(!x.ignore)return!0;for(var T in x.states)if(x.states[T].ignore===!1)return!0;return!1}e.each(function(x){var T=e.getItemGraphicEl(x),C=T.shape,A=T.getTextContent(),M=T.getTextGuideLine(),D=e.getItemModel(x),I=D.getModel("label"),P=I.get("position")||D.get(["emphasis","label","position"]),L=I.get("distanceToLabelLine"),R=I.get("alignTo"),k=Q(I.get("edgeDistance"),u),G=I.get("bleedMargin"),B=D.getModel("labelLine"),N=B.get("length");N=Q(N,u);var H=B.get("length2");if(H=Q(H,u),Math.abs(C.endAngle-C.startAngle)<o){b(A.states,v),A.ignore=!0,M&&(b(M.states,v),M.ignore=!0);return}if(p(A)){var Z=(C.startAngle+C.endAngle)/2,$=Math.cos(Z),ot=Math.sin(Z),ct,Rt,St,$t;i=C.cx,n=C.cy;var Nt=P==="inside"||P==="inner";if(P==="center")ct=C.cx,Rt=C.cy,$t="center";else{var Mt=(Nt?(C.r+C.r0)/2*$:C.r*$)+i,wt=(Nt?(C.r+C.r0)/2*ot:C.r*ot)+n;if(ct=Mt+$*3,Rt=wt+ot*3,!Nt){var j=Mt+$*(N+l-C.r),ut=wt+ot*(N+l-C.r),ve=j+($<0?-1:1)*H,Dt=ut;R==="edge"?ct=$<0?f+k:f+u-k:ct=ve+($<0?-L:L),Rt=Dt,St=[[Mt,wt],[j,ut],[ve,Dt]]}$t=Nt?"center":R==="edge"?$>0?"right":"left":$>0?"left":"right"}var Ye=Math.PI,ce=0,Mr=I.get("rotate");if(mt(Mr))ce=Mr*(Ye/180);else if(P==="center")ce=0;else if(Mr==="radial"||Mr===!0){var bn=$<0?-Z+Ye:-Z;ce=bn}else if(Mr==="tangential"&&P!=="outside"&&P!=="outer"){var Xe=Math.atan2($,ot);Xe<0&&(Xe=Ye*2+Xe);var rs=ot>0;rs&&(Xe=Ye+Xe),ce=Xe-Ye}if(a=!!ce,A.x=ct,A.y=Rt,A.rotation=ce,A.setStyle({verticalAlign:"middle"}),Nt){A.setStyle({align:$t});var Yu=A.states.select;Yu&&(Yu.x+=A.x,Yu.y+=A.y)}else{var Zr=A.getBoundingRect().clone();Zr.applyTransform(A.getComputedTransform());var rd=(A.style.margin||0)+2.1;Zr.y-=rd/2,Zr.height+=rd,t.push({label:A,labelLine:M,position:P,len:N,len2:H,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new rt($,ot),linePoints:St,textAlign:$t,labelDistance:L,labelAlignTo:R,edgeDistance:k,bleedMargin:G,rect:Zr,unconstrainedWidth:Zr.width,labelStyleWidth:A.style.width})}T.setTextConfig({inside:Nt})}}),!a&&r.get("avoidLabelOverlap")&&QE(t,i,n,l,u,c,f,h);for(var d=0;d<t.length;d++){var g=t[d],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(b(y.states,v),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var w=g.linePoints;_||!w?(b(m.states,v),m.ignore=!0):(oE(w,g.minTurnAngle),sE(w,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:w}),y.__hostTarget.textGuideLineConfig={anchor:new rt(w[0][0],w[0][1])})}}}var ek=function(r){E(e,r);function e(t,i,n){var a=r.call(this)||this;a.z2=2;var o=new dt;return a.setTextContent(o),a.updateData(t,i,n,!0),a}return e.prototype.updateData=function(t,i,n,a){var o=this,s=t.hostModel,l=t.getItemModel(i),u=l.getModel("emphasis"),f=t.getItemLayout(i),h=O(eo(l.getModel("itemStyle"),f,!0),f);if(isNaN(h.startAngle)){o.setShape(h);return}if(a){o.setShape(h);var c=s.getShallow("animationType");s.ecModel.ssr?(se(o,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):c==="scale"?(o.shape.r=f.r0,se(o,{shape:{r:f.r}},s,i)):n!=null?(o.setShape({startAngle:n,endAngle:n}),se(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,i)):(o.shape.endAngle=f.startAngle,Lt(o,{shape:{endAngle:f.endAngle}},s,i))}else Mo(o),Lt(o,{shape:h},s,i);o.useStyle(t.getItemVisual(i,"style")),aa(o,l);var v=(f.startAngle+f.endAngle)/2,p=s.get("selectedOffset"),d=Math.cos(v)*p,g=Math.sin(v)*p,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,t,i),o.ensureState("emphasis").shape=O({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},eo(u.getModel("itemStyle"),f)),O(o.ensureState("select"),{x:d,y:g,shape:eo(l.getModel(["select","itemStyle"]),f)}),O(o.ensureState("blur"),{shape:eo(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&O(m.ensureState("select"),{x:d,y:g}),O(_.ensureState("select"),{x:d,y:g}),_i(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,i,n){var a=this,o=i.getItemModel(n),s=o.getModel("labelLine"),l=i.getItemVisual(n,"style"),u=l&&l.fill,f=l&&l.opacity;Xr(a,$r(o),{labelFetcher:i.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:f,defaultText:t.getFormattedLabel(n,"normal")||i.getName(n)});var h=a.getTextContent();a.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var c=t.get(["label","position"]);if(c!=="outside"&&c!=="outer")a.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new He,this.setTextGuideLine(v)),uE(this,fE(o),{stroke:u,opacity:Zn(s.get(["lineStyle","opacity"]),f,1)})}},e}(br),rk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,i,n,a){var o=t.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h<o.count();++h)f=o.getItemLayout(h);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var c=eb(t),v=new br({shape:O(tb(t,n),c)});v.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(p){var d=new ek(o,p,u);o.setItemGraphicEl(p,d),l.add(d)}).update(function(p,d){var g=s.getItemGraphicEl(d);g.updateData(o,p,u),g.off("click"),l.add(g),o.setItemGraphicEl(p,g)}).remove(function(p){var d=s.getItemGraphicEl(p);Pl(d,t,p)}).execute(),tk(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,i){var n=i.getData(),a=n.getItemLayout(0);if(a){var o=t[0]-a.cx,s=t[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type="pie",e}(Ut);function Mp(r,e,t){e=z(e)&&{coordDimensions:e}||O({encodeDefine:r.getEncode()},e);var i=r.getSource(),n=yp(i,e).dimensions,a=new ku(n,r);return a.initData(i,t),a}var nb=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var i=this._getDataWithEncodedVisual();return i.getItemVisual(e,t)},r}(),ik=_t(),nk=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new nb(W(this.getData,this),W(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Mp(this,{coordDimensions:["value"],encodeDefaulter:vt(rx,this)})},e.prototype.getDataParams=function(t){var i=this.getData(),n=ik(i),a=n.seats;if(!a){var o=[];i.each(i.mapDimension("value"),function(l){o.push(l)}),a=n.seats=O1(o,i.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=a[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){Al(t,"labelLine",["show"]);var i=t.labelLine,n=t.emphasis.labelLine;i.show=i.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(xe);function ak(r){return{seriesType:r,reset:function(e,t){var i=e.getData();i.filterSelf(function(n){var a=i.mapDimension("value"),o=i.get(a,n);return!(mt(o)&&!isNaN(o)&&o<0)})}}}function ok(r){r.registerChartView(rk),r.registerSeriesModel(nk),zx("pie",r.registerAction),r.registerLayout(vt(jE,"pie")),r.registerProcessor(rb("pie")),r.registerProcessor(ak("pie"))}var sk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,i){return Qo(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,i,n){return n.point(i.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(xe),ab=4,lk=function(){function r(){}return r}(),uk=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.getDefaultShape=function(){return new lk},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,i){var n=i.points,a=i.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&a[0]<ab,f=this.softClipShape,h;if(u){this._ctx=l;return}for(this._ctx=null,h=this._off;h<n.length;){var c=n[h++],v=n[h++];isNaN(c)||isNaN(v)||f&&!f.contain(c,v)||(s.x=c-a[0]/2,s.y=v-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=h,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,i=t.points,n=t.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<i.length;){var l=i[s++],u=i[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-n[0]/2,u-n[1]/2,n[0],n[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,i){for(var n=this.shape,a=n.points,o=n.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var f=u*2,h=a[f]-s/2,c=a[f+1]-l/2;if(t>=h&&i>=c&&t<=h+s&&i<=c+l)return u}return-1},e.prototype.contain=function(t,i){var n=this.transformCoordToLocal(t,i),a=this.getBoundingRect();if(t=n[0],i=n[1],a.contain(t,i)){var o=this.hoverDataIdx=this.findDataIndex(t,i);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var i=this.shape,n=i.points,a=i.size,o=a[0],s=a[1],l=1/0,u=1/0,f=-1/0,h=-1/0,c=0;c<n.length;){var v=n[c++],p=n[c++];l=Math.min(v,l),f=Math.max(v,f),u=Math.min(p,u),h=Math.max(p,h)}t=this._rect=new lt(l-o/2,u-s/2,f-l+o,h-u+s)}return t},e}(gt),fk=function(){function r(){this.group=new nt}return r.prototype.updateData=function(e,t){this._clear();var i=this._create();i.setShape({points:e.getLayout("points")}),this._setCommon(i,e,t)},r.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(i){if(i.startIndex!=null){var n=(i.endIndex-i.startIndex)*2,a=i.startIndex*4*2;t=new Float32Array(t.buffer,a,n)}i.setShape("points",t),i.reset()})},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,i){var n=this._newAdded[0],a=t.getLayout("points"),o=n&&n.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+a.length);l.set(o),l.set(a,s),n.endIndex=e.end,n.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:a}),this._setCommon(u,t,i)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new uk({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,i){var n=t.hostModel;i=i||{};var a=t.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=i.clipShape||null,e.symbolProxy=Yt(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<ab;e.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=it(e);u.seriesIndex=n.seriesIndex,e.on("mousemove",function(f){u.dataIndex=null;var h=e.hoverDataIdx;h>=0&&(u.dataIndex=h+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),hk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n){var a=t.getData(),o=this._updateSymbolDraw(a,t);o.updateData(a,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,i,n){var a=t.getData(),o=this._updateSymbolDraw(a,t);o.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(t,i,n){this._symbolDraw.incrementalUpdate(t,i.getData(),{clipShape:this._getClipShape(i)}),this._finished=t.end===i.getData().count()},e.prototype.updateTransform=function(t,i,n){var a=t.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=Ap("").reset(t,i,n);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var i=t.coordinateSystem;return i&&i.getArea&&i.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,i){var n=this._symbolDraw,a=i.pipelineContext,o=a.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new fk:new Hw,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Ut),vk=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(ft),Iv=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ot).models[0]},e.type="cartesian2dAxis",e}(ft);Xt(Iv,ts);var ob={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)"]}}},ck=et({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},ob),Dp=et({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}}},ob),pk=et({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Dp),dk=q({logBase:10},Dp);const sb={category:ck,value:Dp,time:pk,log:dk};var gk={value:1,category:1,time:1,log:1};function No(r,e,t,i){b(gk,function(n,a){var o=et(et({},sb[a],!0),i,!0),s=function(l){E(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var c=Po(this),v=c?_a(f):{},p=h.getTheme();et(f,p.get(a+"Axis")),et(f,this.getDefaultOption()),f.type=dm(f),c&&Si(f,v,c)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Cv.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+a,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",dm)}function dm(r){return r.type||(r.data?"category":"value")}var yk=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return V(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),bt(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}(),Pv=["x","y"];function gm(r){return r.type==="interval"||r.type==="time"}var mk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=Pv,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!gm(t)||!gm(i))){var n=t.getExtent(),a=i.getExtent(),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),l=n[1]-n[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,c=o[0]-n[0]*f,v=o[1]-a[0]*h,p=this._transform=[f,0,0,h,c,v];this._invTransform=va([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var i=this.getAxis("x"),n=this.getAxis("y");return i.contain(i.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,i){var n=this.dataToPoint(t),a=this.dataToPoint(i),o=this.getArea(),s=new lt(n[0],n[1],a[0]-n[0],a[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,i,n){n=n||[];var a=t[0],o=t[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Vt(n,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=l.toGlobalCoord(l.dataToCoord(o,i)),n},e.prototype.clampData=function(t,i){var n=this.getAxis("x").scale,a=this.getAxis("y").scale,o=n.getExtent(),s=a.getExtent(),l=n.parse(t[0]),u=a.parse(t[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},e.prototype.pointToData=function(t,i){var n=[];if(this._invTransform)return Vt(n,t,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.coordToData(a.toLocalCoord(t[0]),i),n[1]=o.coordToData(o.toLocalCoord(t[1]),i),n},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var i=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(i[0],i[1])-t,o=Math.min(n[0],n[1])-t,s=Math.max(i[0],i[1])-a+t,l=Math.max(n[0],n[1])-o+t;return new lt(a,o,s,l)},e}(yk),_k=function(r){E(e,r);function e(t,i,n,a,o){var s=r.call(this,t,i,n)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),t&&i[0]>i[1]&&i.reverse(),i},e.prototype.pointToData=function(t,i){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),i)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(or);function Lv(r,e,t){t=t||{};var i=r.coordinateSystem,n=e.axis,a={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,f=i.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],c={left:0,right:1,top:0,bottom:1,onZero:2},v=e.get("offset")||0,p=u==="x"?[h[2]-v,h[3]+v]:[h[0]-v,h[1]+v];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));p[c.onZero]=Math.max(Math.min(d,p[1]),p[0])}a.position=[u==="y"?p[c[l]]:h[0],u==="x"?p[c[l]]:h[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?p[c[s]]-p[c.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),zr(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=e.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-y:y,a.z2=1,a}function ym(r){return r.get("coordinateSystem")==="cartesian2d"}function mm(r){var e={xAxisModel:null,yAxisModel:null};return b(e,function(t,i){var n=i.replace(/Model$/,""),a=r.getReferringComponents(n,Ot).models[0];e[i]=a}),e}var ah=Math.log;function lb(r,e,t){var i=Hr.prototype,n=i.getTicks.call(t),a=i.getTicks.call(t,!0),o=n.length-1,s=i.getInterval.call(t),l=Dw(r,e),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var c=ah(r.base);u=[ah(u[0])/c,ah(u[1])/c]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var v=i.getExtent.call(r);f&&(u[0]=v[0]),h&&(u[1]=v[1]);var p=i.getInterval.call(r),d=u[0],g=u[1];if(f&&h)p=(g-d)/o;else if(f)for(g=u[0]+p*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)p=Kf(p),g=u[0]+p*o;else if(h)for(d=u[1]-p*o;d>u[0]&&isFinite(d)&&isFinite(u[0]);)p=Kf(p),d=u[1]-p*o;else{var y=r.getTicks().length-1;y>o&&(p=Kf(p));var m=p*o;g=Math.ceil(u[1]/p)*p,d=Pt(g-m),d<0&&u[0]>=0?(d=0,g=Pt(m)):g>0&&u[1]<=0&&(g=0,d=-Pt(m))}var _=(n[0].value-a[0].value)/s,S=(n[o].value-a[o].value)/s;i.setExtent.call(r,d+p*_,g+p*S),i.setInterval.call(r,p),(_||S)&&i.setNiceExtent.call(r,d+p,g-p)}var Sk=function(){function r(e,t,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Pv,this._initCartesian(e,t,i),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var i=this._axesMap;this._updateScale(e,this.model);function n(o){var s,l=at(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var c=+l[h],v=o[c],p=v.model,d=v.scale;Av(d)&&p.get("alignTicks")&&p.get("interval")==null?f.push(v):(sa(d,p),Av(d)&&(s=v))}f.length&&(s||(s=f.pop(),sa(s.scale,s.model)),b(f,function(g){lb(g.scale,g.model,s.scale)}))}}n(i.x),n(i.y);var a={};b(i.x,function(o){_m(i,"y",o,a)}),b(i.y,function(o){_m(i,"x",o,a)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,i){var n=e.getBoxLayoutParams(),a=!i&&e.get("containLabel"),o=fe(n,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(b(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=AR(u);if(f){var h=u.isHorizontal()?"height":"width",c=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+c,u.position==="top"?o.y+=f.height+c:u.position==="left"&&(o.x+=f.width+c)}}}),l()),b(this._coordsList,function(u){u.calcAffineTransform()});function l(){b(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],c=u.inverse?1:0;u.setExtent(h[c],h[1-c]),xk(u,f?o.x:o.y)})}},r.prototype.getAxis=function(e,t){var i=this._axesMap[e];if(i!=null)return i[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var i="x"+e+"y"+t;return this._coordsMap[i]}Y(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,a=this._coordsList;n<a.length;n++)if(a[n].getAxis("x").index===e||a[n].getAxis("y").index===t)return a[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,i){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},r.prototype.convertFromPixel=function(e,t,i){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,i=e.xAxisModel||t&&t.getReferringComponents("xAxis",Ot).models[0],n=e.yAxisModel||t&&t.getReferringComponents("yAxis",Ot).models[0],a=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,st(o,s)<0&&(s=null);else if(i&&n)s=this.getCartesian(i.componentIndex,n.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,i){var n=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,b(s.x,function(f,h){b(s.y,function(c,v){var p="x"+h+"y"+v,d=new mk(p);d.master=n,d.model=e,n._coordsMap[p]=d,n._coordsList.push(d),d.addAxis(f),d.addAxis(c)})});function u(f){return function(h,c){if(oh(h,e)){var v=h.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var p=new _k(f,Vu(h),[0,0],h.get("type"),v),d=p.type==="category";p.onBand=d&&h.get("boundaryGap"),p.inverse=h.get("inverse"),h.axis=p,p.model=h,p.grid=a,p.index=c,a._axesList.push(p),s[f][c]=p,l[f]++}}}},r.prototype._updateScale=function(e,t){b(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var a=n.model.get("categorySortInfo");n.scale.setSortInfo(a)}}),e.eachSeries(function(n){if(ym(n)){var a=mm(n),o=a.xAxisModel,s=a.yAxisModel;if(!oh(o,t)||!oh(s,t))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=n.getData(),f=l.getAxis("x"),h=l.getAxis("y");i(u,f),i(u,h)}},this);function i(n,a){b(Ul(n,a.dim),function(o){a.scale.unionExtentFromData(n,o)})}},r.prototype.getTooltipAxes=function(e){var t=[],i=[];return b(this.getCartesians(),function(n){var a=e!=null&&e!=="auto"?n.getAxis(e):n.getBaseAxis(),o=n.getOtherAxis(a);st(t,a)<0&&t.push(a),st(i,o)<0&&i.push(o)}),{baseAxes:t,otherAxes:i}},r.create=function(e,t){var i=[];return e.eachComponent("grid",function(n,a){var o=new r(n,e,t);o.name="grid_"+a,o.resize(n,t,!0),n.coordinateSystem=o,i.push(o)}),e.eachSeries(function(n){if(ym(n)){var a=mm(n),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;n.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),i},r.dimensions=Pv,r}();function oh(r,e){return r.getCoordSysModel()===e}function _m(r,e,t,i){t.getAxesOnZeroOf=function(){return a?[a]:[]};var n=r[e],a,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)Sm(n[l])&&(a=n[l]);else for(var u in n)if(n.hasOwnProperty(u)&&Sm(n[u])&&!i[f(n[u])]){a=n[u];break}a&&(i[f(a)]=!0);function f(h){return h.dim+"_"+h.index}}function Sm(r){return r&&r.type!=="category"&&r.type!=="time"&&CR(r)}function xk(r,e){var t=r.getExtent(),i=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+e}:function(n){return i-n+e},r.toLocalCoord=r.dim==="x"?function(n){return n-e}:function(n){return i-n+e}}var fi=Math.PI,_e=function(){function r(e,t){this.group=new nt,this.opt=t,this.axisModel=e,q(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new nt({x:t.position[0],y:t.position[1],rotation:t.rotation});i.updateTransform(),this._transformGroup=i}return r.prototype.hasBuilder=function(e){return!!xm[e]},r.prototype.add=function(e){xm[e](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(e,t,i){var n=mc(t-e),a,o;return bo(n)?(o=i>0?"top":"bottom",a="center"):bo(n-fi)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n<fi?a=i>0?"right":"left":a=i>0?"left":"right"),{rotation:n,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),xm={axisLine:function(r,e,t,i){var n=e.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var a=e.axis.getExtent(),o=i.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(Vt(s,s,o),Vt(l,l,o));var f=O({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new ae({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Do(h.shape,h.style.lineWidth),h.anid="line",t.add(h);var c=e.get(["axisLine","symbol"]);if(c!=null){var v=e.get(["axisLine","symbolSize"]);F(c)&&(c=[c,c]),(F(v)||mt(v))&&(v=[v,v]);var p=Lu(e.get(["axisLine","symbolOffset"])||0,v),d=v[0],g=v[1];b([{rotate:r.rotation+Math.PI/2,offset:p[0],r:0},{rotate:r.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(c[m]!=="none"&&c[m]!=null){var _=Yt(c[m],-d/2,-g/2,d,g,f.stroke,!0),S=y.r+y.offset,w=u?l:s;_.attr({rotation:y.rotate,x:w[0]+S*Math.cos(r.rotation),y:w[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(r,e,t,i){var n=Tk(t,i,e,r),a=Ak(t,i,e,r);if(bk(e,a,n),Ck(t,i,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=hE(V(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));pE(o)}},axisName:function(r,e,t,i){var n=zr(r.axisName,e.get("name"));if(n){var a=e.get("nameLocation"),o=r.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,bm(a)?r.labelOffset+o*l:0],c,v=e.get("nameRotate");v!=null&&(v=v*fi/180);var p;bm(a)?c=_e.innerTextLayout(r.rotation,v!=null?v:r.rotation,o):(c=wk(r.rotation,a,v||0,u),p=r.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(c.rotation)),!isFinite(p)&&(p=null)));var d=s.getFont(),g=e.get("nameTruncate",!0)||{},y=g.ellipsis,m=zr(r.nameTruncateMaxWidth,g.maxWidth,p),_=new dt({x:h[0],y:h[1],rotation:c.rotation,silent:_e.isLabelSilent(e),style:kt(s,{text:n,font:d,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(da({el:_,componentModel:e,itemName:n}),_.__fullText=n,_.anid="name",e.get("triggerEvent")){var S=_e.makeAxisEventDataBase(e);S.targetType="axisName",S.name=n,it(_).eventData=S}i.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function wk(r,e,t,i){var n=mc(t-r),a,o,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;return bo(n-fi/2)?(o=l?"bottom":"top",a="center"):bo(n-fi*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",n<fi*1.5&&n>fi/2?a=l?"left":"right":a=l?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function bk(r,e,t){if(!Iw(r.axis)){var i=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var a=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],f=t[1],h=t[t.length-1],c=t[t.length-2];i===!1?(Me(a),Me(u)):wm(a,o)&&(i?(Me(o),Me(f)):(Me(a),Me(u))),n===!1?(Me(s),Me(h)):wm(l,s)&&(n?(Me(l),Me(c)):(Me(s),Me(h)))}}function Me(r){r&&(r.ignore=!0)}function wm(r,e){var t=r&&r.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(!(!t||!i)){var n=Yo([]);return wi(n,n,-r.rotation),t.applyTransform(Sr([],n,r.getLocalTransform())),i.applyTransform(Sr([],n,e.getLocalTransform())),t.intersect(i)}}function bm(r){return r==="middle"||r==="center"}function ub(r,e,t,i,n){for(var a=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(Vt(o,o,e),Vt(s,s,e));var f=new ae({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});Do(f.shape,f.style.lineWidth),f.anid=n+"_"+r[l].tickValue,a.push(f)}return a}function Tk(r,e,t,i){var n=t.axis,a=t.getModel("axisTick"),o=a.get("show");if(o==="auto"&&i.handleAutoShown&&(o=i.handleAutoShown("axisTick")),!(!o||n.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=i.tickDirection*a.get("length"),u=n.getTicksCoords(),f=ub(u,e.transform,l,q(s.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)r.add(f[h]);return f}}function Ck(r,e,t,i){var n=t.axis,a=t.getModel("minorTick");if(!(!a.get("show")||n.scale.isBlank())){var o=n.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=i*a.get("length"),u=q(s.getLineStyle(),q(t.getModel("axisTick").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var h=ub(o[f],e.transform,l,u,"minorticks_"+f),c=0;c<h.length;c++)r.add(h[c])}}function Ak(r,e,t,i){var n=t.axis,a=zr(i.axisLabelShow,t.get(["axisLabel","show"]));if(!(!a||n.scale.isBlank())){var o=t.getModel("axisLabel"),s=o.get("margin"),l=n.getViewLabels(),u=(zr(i.labelRotate,o.get("rotate"))||0)*fi/180,f=_e.innerTextLayout(i.rotation,u,i.labelDirection),h=t.getCategories&&t.getCategories(!0),c=[],v=_e.isLabelSilent(t),p=t.get("triggerEvent");return b(l,function(d,g){var y=n.scale.type==="ordinal"?n.scale.getRawOrdinalNumber(d.tickValue):d.tickValue,m=d.formattedLabel,_=d.rawLabel,S=o;if(h&&h[y]){var w=h[y];Y(w)&&w.textStyle&&(S=new Tt(w.textStyle,o,t.ecModel))}var x=S.getTextColor()||t.get(["axisLine","lineStyle","color"]),T=n.dataToCoord(y),C=S.getShallow("align",!0)||f.textAlign,A=J(S.getShallow("alignMinLabel",!0),C),M=J(S.getShallow("alignMaxLabel",!0),C),D=S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||f.textVerticalAlign,I=J(S.getShallow("verticalAlignMinLabel",!0),D),P=J(S.getShallow("verticalAlignMaxLabel",!0),D),L=new dt({x:T,y:i.labelOffset+i.labelDirection*s,rotation:f.rotation,silent:v,z2:10+(d.level||0),style:kt(S,{text:m,align:g===0?A:g===l.length-1?M:C,verticalAlign:g===0?I:g===l.length-1?P:D,fill:K(x)?x(n.type==="category"?_:n.type==="value"?y+"":y,g):x})});if(L.anid="label_"+y,p){var R=_e.makeAxisEventDataBase(t);R.targetType="axisLabel",R.value=_,R.tickIndex=g,n.type==="category"&&(R.dataIndex=y),it(L).eventData=R}e.add(L),L.updateTransform(),c.push(L),r.add(L),L.decomposeTransform()}),c}}function Mk(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Dk(t,r,e),t.seriesInvolved&&Pk(t,r),t}function Dk(r,e,t){var i=e.getComponent("tooltip"),n=e.getComponent("axisPointer"),a=n.get("link",!0)||[],o=[];b(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=zo(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,h=f.getModel("tooltip",i);if(b(s.getAxes(),vt(d,!1,null)),s.getTooltipAxes&&i&&h.get("show")){var c=h.get("trigger")==="axis",v=h.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(h.get(["axisPointer","axis"]));(c||v)&&b(p.baseAxes,vt(d,v?"cross":!0,c)),v&&b(p.otherAxes,vt(d,"cross",!1))}function d(g,y,m){var _=m.model.getModel("axisPointer",n),S=_.get("show");if(!(!S||S==="auto"&&!g&&!Rv(_))){y==null&&(y=_.get("triggerTooltip")),_=g?Ik(m,h,n,e,g,y):_;var w=_.get("snap"),x=_.get("triggerEmphasis"),T=zo(m.model),C=y||w||m.type==="category",A=r.axesInfo[T]={key:T,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:x,involveSeries:C,snap:w,useHandle:Rv(_),seriesModels:[],linkGroup:null};u[T]=A,r.seriesInvolved=r.seriesInvolved||C;var M=Lk(a,m);if(M!=null){var D=o[M]||(o[M]={axesInfo:{}});D.axesInfo[T]=A,D.mapper=a[M].mapper,A.linkGroup=D}}}})}function Ik(r,e,t,i,n,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};b(s,function(c){l[c]=X(o.get(c))}),l.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f!=null?f:!0,!a){var h=l.lineStyle=o.get("crossStyle");h&&q(u,h.textStyle)}}return r.model.getModel("axisPointer",new Tt(l,t,i))}function Pk(r,e){e.eachSeries(function(t){var i=t.coordinateSystem,n=t.get(["tooltip","trigger"],!0),a=t.get(["tooltip","show"],!0);!i||n==="none"||n===!1||n==="item"||a===!1||t.get(["axisPointer","show"],!0)===!1||b(r.coordSysAxesInfo[zo(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function Lk(r,e){for(var t=e.model,i=e.dim,n=0;n<r.length;n++){var a=r[n]||{};if(sh(a[i+"AxisId"],t.id)||sh(a[i+"AxisIndex"],t.componentIndex)||sh(a[i+"AxisName"],t.name))return n}}function sh(r,e){return r==="all"||z(r)&&st(r,e)>=0||r===e}function Rk(r){var e=Ip(r);if(e){var t=e.axisPointerModel,i=e.axis.scale,n=t.option,a=t.get("status"),o=t.get("value");o!=null&&(o=i.parse(o));var s=Rv(t);a==null&&(n.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=e.axis.scale.isBlank()?"hide":"show")}}function Ip(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[zo(r)]}function Ek(r){var e=Ip(r);return e&&e.axisPointerModel}function Rv(r){return!!r.get(["handle","show"])}function zo(r){return r.type+"||"+r.id}var Tm={},es=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n,a){this.axisPointerClass&&Rk(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},e.prototype.updateAxisPointer=function(t,i,n,a){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,i){var n=this._axisPointer;n&&n.remove(i)},e.prototype.dispose=function(t,i){this._disposeAxisPointer(i),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,i,n){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=Ek(t);o?(this._axisPointer||(this._axisPointer=new a)).render(t,o,i,n):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,i){Tm[t]=i},e.getAxisPointerClass=function(t){return t&&Tm[t]},e.type="axis",e}(At),Ev=_t();function kk(r,e,t,i){var n=t.axis;if(!n.scale.isBlank()){var a=t.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var f=s.length,h=Ev(r).splitAreaColors,c=U(),v=0;if(h)for(var p=0;p<u.length;p++){var d=h.get(u[p].tickValue);if(d!=null){v=(d+(f-1)*p)%f;break}}var g=n.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=z(s)?s:[s];for(var p=1;p<u.length;p++){var m=n.toGlobalCoord(u[p].coord),_=void 0,S=void 0,w=void 0,x=void 0;n.isHorizontal()?(_=g,S=l.y,w=m-_,x=l.height,g=_+w):(_=l.x,S=g,w=l.width,x=m-S,g=S+x);var T=u[p-1].tickValue;T!=null&&c.set(T,v),e.add(new pt({anid:T!=null?"area_"+T:null,shape:{x:_,y:S,width:w,height:x},style:q({fill:s[v]},y),autoBatch:!0,silent:!0})),v=(v+1)%f}Ev(r).splitAreaColors=c}}}function Ok(r){Ev(r).splitAreaColors=null}var Bk=["axisLine","axisTickLabel","axisName"],Nk=["splitArea","splitLine","minorSplitLine"],fb=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,i,n,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new nt,this.group.add(this._axisGroup),!!t.get("show")){var s=t.getCoordSysModel(),l=Lv(s,t),u=new _e(t,O({handleAutoShown:function(h){for(var c=s.coordinateSystem.getCartesians(),v=0;v<c.length;v++)if(Av(c[v].getOtherAxis(t.axis).scale))return!0;return!1}},l));b(Bk,u.add,u),this._axisGroup.add(u.getGroup()),b(Nk,function(h){t.get([h,"show"])&&zk[h](this,this._axisGroup,t,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||mu(o,this._axisGroup,t),r.prototype.render.call(this,t,i,n,a)}},e.prototype.remove=function(){Ok(this)},e.type="cartesianAxis",e}(es),zk={splitLine:function(r,e,t,i){var n=t.axis;if(!n.scale.isBlank()){var a=t.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=z(s)?s:[s];for(var l=i.coordinateSystem.getRect(),u=n.isHorizontal(),f=0,h=n.getTicksCoords({tickModel:a}),c=[],v=[],p=o.getLineStyle(),d=0;d<h.length;d++){var g=n.toGlobalCoord(h[d].coord);u?(c[0]=g,c[1]=l.y,v[0]=g,v[1]=l.y+l.height):(c[0]=l.x,c[1]=g,v[0]=l.x+l.width,v[1]=g);var y=f++%s.length,m=h[d].tickValue,_=new ae({anid:m!=null?"line_"+h[d].tickValue:null,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:v[0],y2:v[1]},style:q({stroke:s[y]},p),silent:!0});Do(_.shape,p.lineWidth),e.add(_)}}},minorSplitLine:function(r,e,t,i){var n=t.axis,a=t.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=n.isHorizontal(),u=n.getMinorTicksCoords();if(u.length)for(var f=[],h=[],c=o.getLineStyle(),v=0;v<u.length;v++)for(var p=0;p<u[v].length;p++){var d=n.toGlobalCoord(u[v][p].coord);l?(f[0]=d,f[1]=s.y,h[0]=d,h[1]=s.y+s.height):(f[0]=s.x,f[1]=d,h[0]=s.x+s.width,h[1]=d);var g=new ae({anid:"minor_line_"+u[v][p].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:c,silent:!0});Do(g.shape,c.lineWidth),e.add(g)}},splitArea:function(r,e,t,i){kk(r,e,t,i)}},hb=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e}(fb),Vk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=hb.type,t}return e.type="yAxis",e}(fb),Fk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,i){this.group.removeAll(),t.get("show")&&this.group.add(new pt({shape:t.coordinateSystem.getRect(),style:q({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(At),Cm={offset:0};function vb(r){r.registerComponentView(Fk),r.registerComponentModel(vk),r.registerCoordinateSystem("cartesian2d",Sk),No(r,"x",Iv,Cm),No(r,"y",Iv,Cm),r.registerComponentView(hb),r.registerComponentView(Vk),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function Gk(r){Ft(vb),r.registerSeriesModel(sk),r.registerChartView(hk),r.registerLayout(Ap("scatter"))}function Hk(r){r.eachSeriesByType("radar",function(e){var t=e.getData(),i=[],n=e.coordinateSystem;if(n){var a=n.getIndicatorAxes();b(a,function(o,s){t.each(t.mapDimension(a[s].dim),function(l,u){i[u]=i[u]||[];var f=n.dataToPoint(l,s);i[u][s]=Am(f)?f:Mm(n)})}),t.each(function(o){var s=K_(i[o],function(l){return Am(l)})||Mm(n);i[o].push(s.slice()),t.setItemLayout(o,i[o])})}})}function Am(r){return!isNaN(r[0])&&!isNaN(r[1])}function Mm(r){return[r.cx,r.cy]}function Wk(r){var e=r.polar;if(e){z(e)||(e=[e]);var t=[];b(e,function(i,n){i.indicator?(i.type&&!i.shape&&(i.shape=i.type),r.radar=r.radar||[],z(r.radar)||(r.radar=[r.radar]),r.radar.push(i)):t.push(i)}),r.polar=t}b(r.series,function(i){i&&i.type==="radar"&&i.polarIndex&&(i.radarIndex=i.polarIndex)})}var Uk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n){var a=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(c,v){var p=c.getItemVisual(v,"symbol")||"circle";if(p!=="none"){var d=ap(c.getItemVisual(v,"symbolSize")),g=Yt(p,-1,-1,2,2),y=c.getItemVisual(v,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:d[0]/2,scaleY:d[1]/2,rotation:y*Math.PI/180||0}),g}}function f(c,v,p,d,g,y){p.removeAll();for(var m=0;m<v.length-1;m++){var _=u(d,g);_&&(_.__dimIdx=m,c[m]?(_.setPosition(c[m]),ga[y?"initProps":"updateProps"](_,{x:v[m][0],y:v[m][1]},t,g)):_.setPosition(v[m]),p.add(_))}}function h(c){return V(c,function(v){return[a.cx,a.cy]})}s.diff(l).add(function(c){var v=s.getItemLayout(c);if(v){var p=new Tr,d=new He,g={shape:{points:v}};p.shape.points=h(v),d.shape.points=h(v),se(p,g,t,c),se(d,g,t,c);var y=new nt,m=new nt;y.add(d),y.add(p),y.add(m),f(d.shape.points,v,m,s,c,!0),s.setItemGraphicEl(c,y)}}).update(function(c,v){var p=l.getItemGraphicEl(v),d=p.childAt(0),g=p.childAt(1),y=p.childAt(2),m={shape:{points:s.getItemLayout(c)}};m.shape.points&&(f(d.shape.points,m.shape.points,y,s,c,!1),Mo(g),Mo(d),Lt(d,m,t),Lt(g,m,t),s.setItemGraphicEl(c,p))}).remove(function(c){o.remove(l.getItemGraphicEl(c))}).execute(),s.eachItemGraphicEl(function(c,v){var p=s.getItemModel(v),d=c.childAt(0),g=c.childAt(1),y=c.childAt(2),m=s.getItemVisual(v,"style"),_=m.fill;o.add(c),d.useStyle(q(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),aa(d,p,"lineStyle"),aa(g,p,"areaStyle");var S=p.getModel("areaStyle"),w=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=w,b(["emphasis","select","blur"],function(C){var A=p.getModel([C,"areaStyle"]),M=A.isEmpty()&&A.parentModel.isEmpty();g.ensureState(C).ignore=M&&w}),g.useStyle(q(S.getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var x=p.getModel("emphasis"),T=x.getModel("itemStyle").getItemStyle();y.eachChild(function(C){if(C instanceof he){var A=C.style;C.useStyle(O({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},m))}else C.useStyle(m),C.setColor(_),C.style.strokeNoScale=!0;var M=C.ensureState("emphasis");M.style=X(T);var D=s.getStore().get(s.getDimensionIndex(C.__dimIdx),v);(D==null||isNaN(D))&&(D=""),Xr(C,$r(p),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:C.__dimIdx,defaultText:D,inheritColor:_,defaultOpacity:m.opacity})}),_i(c,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(Ut),Yk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new nb(W(this.getData,this),W(this.getRawData,this))},e.prototype.getInitialData=function(t,i){return Mp(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,i,n){var a=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,f=Ax(this,t);return wr("section",{header:u,sortBlocks:!0,blocks:V(s,function(h){var c=a.get(a.mapDimension(h.dim),t);return wr("nameValue",{markerType:"subItem",markerColor:f,name:h.name,value:c,sortParam:c})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var i=this.getData(),n=this.coordinateSystem,a=i.getValues(V(n.dimensions,function(u){return i.mapDimension(u)}),t),o=0,s=a.length;o<s;o++)if(!isNaN(a[o])){var l=n.getIndicatorAxes();return n.coordToPoint(l[o].dataToCoord(a[o]),o)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(xe),Ga=sb.value;function Hs(r,e){return q({show:e},r)}var Xk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),i=this.get("splitNumber"),n=this.get("scale"),a=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),h=this.get("axisNameGap"),c=this.get("triggerEvent"),v=V(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var d=l;p.color!=null&&(d=q({color:p.color},l));var g=et(X(p),{boundaryGap:t,splitNumber:i,scale:n,axisLine:a,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:d,triggerEvent:c},!1);if(F(f)){var y=g.name;g.name=f.replace("{value}",y!=null?y:"")}else K(f)&&(g.name=f(g.name,g));var m=new Tt(g,null,this.ecModel);return Xt(m,ts.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=v},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.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:et({lineStyle:{color:"#bbb"}},Ga.axisLine),axisLabel:Hs(Ga.axisLabel,!1),axisTick:Hs(Ga.axisTick,!1),splitLine:Hs(Ga.splitLine,!0),splitArea:Hs(Ga.splitArea,!0),indicator:[]},e}(ft),$k=["axisLine","axisTickLabel","axisName"],Zk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n){var a=this.group;a.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var i=t.coordinateSystem,n=i.getIndicatorAxes(),a=V(n,function(o){var s=o.model.get("showName")?o.name:"",l=new _e(o.model,{axisName:s,position:[i.cx,i.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});b(a,function(o){b($k,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var i=t.coordinateSystem,n=i.getIndicatorAxes();if(!n.length)return;var a=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),h=s.get("show"),c=l.get("color"),v=u.get("color"),p=z(c)?c:[c],d=z(v)?v:[v],g=[],y=[];function m(R,k,G){var B=G%k.length;return R[B]=R[B]||[],B}if(a==="circle")for(var _=n[0].getTicksCoords(),S=i.cx,w=i.cy,x=0;x<_.length;x++){if(f){var T=m(g,p,x);g[T].push(new Yr({shape:{cx:S,cy:w,r:_[x].coord}}))}if(h&&x<_.length-1){var T=m(y,d,x);y[T].push(new qo({shape:{cx:S,cy:w,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var C,A=V(n,function(R,k){var G=R.getTicksCoords();return C=C==null?G.length-1:Math.min(G.length-1,C),V(G,function(B){return i.coordToPoint(B.coord,k)})}),M=[],x=0;x<=C;x++){for(var D=[],I=0;I<n.length;I++)D.push(A[I][x]);if(D[0]&&D.push(D[0].slice()),f){var T=m(g,p,x);g[T].push(new He({shape:{points:D}}))}if(h&&M){var T=m(y,d,x-1);y[T].push(new Tr({shape:{points:D.concat(M)}}))}M=D.slice().reverse()}var P=l.getLineStyle(),L=u.getAreaStyle();b(y,function(R,k){this.group.add(Ne(R,{style:q({stroke:"none",fill:d[k%d.length]},L),silent:!0}))},this),b(g,function(R,k){this.group.add(Ne(R,{style:q({fill:"none",stroke:p[k%p.length]},P),silent:!0}))},this)},e.type="radar",e}(At),qk=function(r){E(e,r);function e(t,i,n){var a=r.call(this,t,i,n)||this;return a.type="value",a.angle=0,a.name="",a}return e}(or),Kk=function(){function r(e,t,i){this.dimensions=[],this._model=e,this._indicatorAxes=V(e.getIndicatorModels(),function(n,a){var o="indicator_"+a,s=new qk(o,new Hr);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(e,i)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var i=this._indicatorAxes[t];return this.coordToPoint(i.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var i=this._indicatorAxes[t],n=i.angle,a=this.cx+e*Math.cos(n),o=this.cy-e*Math.sin(n);return[a,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,i=e[1]-this.cy,n=Math.sqrt(t*t+i*i);t/=n,i/=n;for(var a=Math.atan2(-i,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],h=Math.abs(a-f.angle);h<o&&(s=f,l=u,o=h)}return[l,+(s&&s.coordToData(n))]},r.prototype.resize=function(e,t){var i=e.get("center"),n=t.getWidth(),a=t.getHeight(),o=Math.min(n,a)/2;this.cx=Q(i[0],n),this.cy=Q(i[1],a),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(F(s)||mt(s))&&(s=[0,s]),this.r0=Q(s[0],o),this.r=Q(s[1],o),b(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var f=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;f=Math.atan2(Math.sin(f),Math.cos(f)),l.angle=f},this)},r.prototype.update=function(e,t){var i=this._indicatorAxes,n=this._model;b(i,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==n)){var u=s.getData();b(i,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var a=n.get("splitNumber"),o=new Hr;o.setExtent(0,a),o.setInterval(1),b(i,function(s,l){lb(s.scale,s.model,o)})},r.prototype.convertToPixel=function(e,t,i){return null},r.prototype.convertFromPixel=function(e,t,i){return null},r.prototype.containPoint=function(e){return!1},r.create=function(e,t){var i=[];return e.eachComponent("radar",function(n){var a=new r(n,e,t);i.push(a),n.coordinateSystem=a}),e.eachSeriesByType("radar",function(n){n.get("coordinateSystem")==="radar"&&(n.coordinateSystem=i[n.get("radarIndex")||0])}),i},r.dimensions=[],r}();function cb(r){r.registerCoordinateSystem("radar",Kk),r.registerComponentModel(Xk),r.registerComponentView(Zk),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(i){t.setItemVisual(i,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function jk(r){Ft(cb),r.registerChartView(Uk),r.registerSeriesModel(Yk),r.registerLayout(Hk),r.registerProcessor(rb("radar")),r.registerPreprocessor(Wk)}var Dm="\0_ec_interaction_mutex";function Jk(r,e,t){var i=Pp(r);i[e]=t}function Qk(r,e,t){var i=Pp(r),n=i[e];n===t&&(i[e]=null)}function Im(r,e){return!!Pp(r)[e]}function Pp(r){return r[Dm]||(r[Dm]={})}ar({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},zt);var pb=function(r){E(e,r);function e(t){var i=r.call(this)||this;i._zr=t;var n=W(i._mousedownHandler,i),a=W(i._mousemoveHandler,i),o=W(i._mouseupHandler,i),s=W(i._mousewheelHandler,i),l=W(i._pinchHandler,i);return i.enable=function(u,f){this.disable(),this._opt=q(X(f)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(t.on("mousedown",n),t.on("mousemove",a),t.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(t.on("mousewheel",s),t.on("pinch",l))},i.disable=function(){t.off("mousedown",n),t.off("mousemove",a),t.off("mouseup",o),t.off("mousewheel",s),t.off("pinch",l)},i}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!vd(t)){for(var i=t.target;i;){if(i.draggable)return;i=i.__hostTarget||i.parent}var n=t.offsetX,a=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,a)&&(this._x=n,this._y=a,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(!(!this._dragging||!hl("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||Im(this._zr,"globalPan"))){var i=t.offsetX,n=t.offsetY,a=this._x,o=this._y,s=i-a,l=n-o;this._x=i,this._y=n,this._opt.preventDefaultMouseMove&&Vr(t.event),db(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:a,oldY:o,newX:i,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){vd(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var i=hl("zoomOnMouseWheel",t,this._opt),n=hl("moveOnMouseWheel",t,this._opt),a=t.wheelDelta,o=Math.abs(a),s=t.offsetX,l=t.offsetY;if(!(a===0||!i&&!n)){if(i){var u=o>3?1.4:o>1?1.2:1.1,f=a>0?u:1/u;lh(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var h=Math.abs(a),c=(a>0?1:-1)*(h>3?.4:h>1?.15:.05);lh(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!Im(this._zr,"globalPan")){var i=t.pinchScale>1?1.1:1/1.1;lh(this,"zoom",null,t,{scale:i,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(ir);function lh(r,e,t,i,n){r.pointerChecker&&r.pointerChecker(i,n.originX,n.originY)&&(Vr(i.event),db(r,e,t,i,n))}function db(r,e,t,i,n){n.isAvailableBehavior=W(hl,null,t,i),r.trigger(e,n)}function hl(r,e,t){var i=t[r];return!r||i&&(!F(i)||e.event[i+"Key"])}function tO(r,e,t){var i=r.target;i.x+=e,i.y+=t,i.dirty()}function eO(r,e,t,i){var n=r.target,a=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,n.x-=(t-n.x)*(u-1),n.y-=(i-n.y)*(u-1),n.scaleX*=u,n.scaleY*=u,n.dirty()}var rO={axisPointer:1,tooltip:1,brush:1};function gb(r,e,t){var i=e.getComponentByElement(r.topTarget),n=i&&i.coordinateSystem;return i&&i!==t&&!rO.hasOwnProperty(i.mainType)&&n&&n.model!==t}function yb(r){if(F(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var uh,Xl={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Pm=at(Xl),$l={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Lm=at($l),iO=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var i=yb(e);this._defsUsePending=[];var n=new nt;this._root=n;var a=[],o=i.getAttribute("viewBox")||"",s=parseFloat(i.getAttribute("width")||t.width),l=parseFloat(i.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),we(i,n,null,!0,!1);for(var u=i.firstChild;u;)this._parseNode(u,n,a,null,!1,!1),u=u.nextSibling;oO(this._defs,this._defsUsePending),this._defsUsePending=[];var f,h;if(o){var c=Gu(o);c.length>=4&&(f={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(f&&s!=null&&l!=null&&(h=_b(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var v=n;n=new nt,n.add(v),v.scaleX=v.scaleY=h.scale,v.x=h.x,v.y=h.y}return!t.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new pt({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:f,viewBoxTransform:h,named:a}},r.prototype._parseNode=function(e,t,i,n,a,o){var s=e.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!a){var f=uh[s];if(f&&tt(uh,s)){l=f.call(this,e,t);var h=e.getAttribute("name");if(h){var c={name:h,namedFrom:null,svgNodeTagLower:s,el:l};i.push(c),s==="g"&&(u=c)}else n&&i.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});t.add(l)}}var v=Rm[s];if(v&&tt(Rm,s)){var p=v.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=p)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,i,u,a,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var i=new ra({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});De(t,i),we(e,i,this._defsUsePending,!1,!1),nO(i,t);var n=i.style,a=n.fontSize;a&&a<9&&(n.fontSize=9,i.scaleX*=a/9,i.scaleY*=a/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=i.getBoundingRect();return this._textX+=s.width,t.add(i),i},r.internalField=function(){uh={g:function(e,t){var i=new nt;return De(t,i),we(e,i,this._defsUsePending,!1,!1),i},rect:function(e,t){var i=new pt;return De(t,i),we(e,i,this._defsUsePending,!1,!1),i.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),i.silent=!0,i},circle:function(e,t){var i=new Yr;return De(t,i),we(e,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),i.silent=!0,i},line:function(e,t){var i=new ae;return De(t,i),we(e,i,this._defsUsePending,!1,!1),i.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),i.silent=!0,i},ellipse:function(e,t){var i=new cu;return De(t,i),we(e,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),i.silent=!0,i},polygon:function(e,t){var i=e.getAttribute("points"),n;i&&(n=Om(i));var a=new Tr({shape:{points:n||[]},silent:!0});return De(t,a),we(e,a,this._defsUsePending,!1,!1),a},polyline:function(e,t){var i=e.getAttribute("points"),n;i&&(n=Om(i));var a=new He({shape:{points:n||[]},silent:!0});return De(t,a),we(e,a,this._defsUsePending,!1,!1),a},image:function(e,t){var i=new he;return De(t,i),we(e,i,this._defsUsePending,!1,!1),i.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),i.silent=!0,i},text:function(e,t){var i=e.getAttribute("x")||"0",n=e.getAttribute("y")||"0",a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(i)+parseFloat(a),this._textY=parseFloat(n)+parseFloat(o);var s=new nt;return De(t,s),we(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var i=e.getAttribute("x"),n=e.getAttribute("y");i!=null&&(this._textX=parseFloat(i)),n!=null&&(this._textY=parseFloat(n));var a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new nt;return De(t,s),we(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(e,t){var i=e.getAttribute("d")||"",n=mS(i);return De(t,n),we(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}}(),r}(),Rm={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),i=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),a=new Ko(e,t,i,n);return Em(r,a),km(r,a),a},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),i=parseInt(r.getAttribute("r")||"0",10),n=new Rc(e,t,i);return Em(r,n),km(r,n),n}};function Em(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function km(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var i=t.getAttribute("offset"),n=void 0;i&&i.indexOf("%")>0?n=parseInt(i,10)/100:i?n=parseFloat(i):n=0;var a={};mb(t,a,a);var o=a.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:n,color:o})}t=t.nextSibling}}function De(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),q(e.__inheritedStyle,r.__inheritedStyle))}function Om(r){for(var e=Gu(r),t=[],i=0;i<e.length;i+=2){var n=parseFloat(e[i]),a=parseFloat(e[i+1]);t.push([n,a])}return t}function we(r,e,t,i,n){var a=e,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};r.nodeType===1&&(uO(r,e),mb(r,o,s),i||fO(r,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=Bm(a,"fill",o.fill,t)),o.stroke!=null&&(a.style.stroke=Bm(a,"stroke",o.stroke,t)),b(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(a.style[l]=parseFloat(o[l]))}),b(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(a.style[l]=o[l])}),n&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=V(Gu(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(a.invisible=!0),o.display==="none"&&(a.ignore=!0)}function nO(r,e){var t=e.__selfStyle;if(t){var i=t.textBaseline,n=i;!i||i==="auto"||i==="baseline"?n="alphabetic":i==="before-edge"||i==="text-before-edge"?n="top":i==="after-edge"||i==="text-after-edge"?n="bottom":(i==="central"||i==="mathematical")&&(n="middle"),r.style.textBaseline=n}var a=e.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var aO=/^url\(\s*#(.*?)\)/;function Bm(r,e,t,i){var n=t&&t.match(aO);if(n){var a=Ve(n[1]);i.push([r,e,a]);return}return t==="none"&&(t=null),t}function oO(r,e){for(var t=0;t<e.length;t++){var i=e[t];i[0].style[i[1]]=r[i[2]]}}var sO=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Gu(r){return r.match(sO)||[]}var lO=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,fh=Math.PI/180;function uO(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var i=[],n=null;t.replace(lO,function(h,c,v){return i.push(c,v),""});for(var a=i.length-1;a>0;a-=2){var o=i[a],s=i[a-1],l=Gu(o);switch(n=n||be(),s){case"translate":Fr(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":vc(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":wi(n,n,-parseFloat(l[0])*fh,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*fh);Sr(n,[1,0,u,1,0,0],n);break;case"skewY":var f=Math.tan(parseFloat(l[0])*fh);Sr(n,[1,f,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}e.setLocalTransform(n)}}var Nm=/([^\s:;]+)\s*:\s*([^:;]+)/g;function mb(r,e,t){var i=r.getAttribute("style");if(i){Nm.lastIndex=0;for(var n;(n=Nm.exec(i))!=null;){var a=n[1],o=tt(Xl,a)?Xl[a]:null;o&&(e[o]=n[2]);var s=tt($l,a)?$l[a]:null;s&&(t[s]=n[2])}}}function fO(r,e,t){for(var i=0;i<Pm.length;i++){var n=Pm[i],a=r.getAttribute(n);a!=null&&(e[Xl[n]]=a)}for(var i=0;i<Lm.length;i++){var n=Lm[i],a=r.getAttribute(n);a!=null&&(t[$l[n]]=a)}}function _b(r,e){var t=e.width/r.width,i=e.height/r.height,n=Math.min(t,i);return{scale:n,x:-(r.x+r.width/2)*n+(e.x+e.width/2),y:-(r.y+r.height/2)*n+(e.y+e.height/2)}}function hO(r,e){var t=new iO;return t.parse(r,e)}var vO=U(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),cO=function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=U(),this._freedGraphics=[],this._mapName=e,this._parsedXML=yb(t)}return r.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=dO(e.named),i=t.regions,n=t.regionsMap;this._regions=i,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,i;try{t=e&&hO(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},i=t.root,ue(i!=null)}catch(g){throw new Error(`Invalid svg format
- `+g.message)}var n=new nt;n.add(i),n.isGeoSVGGraphicRoot=!0;var a=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,h=void 0,c=void 0;if(a!=null?(u=0,h=a):s&&(u=s.x,h=s.width),o!=null?(f=0,c=o):s&&(f=s.y,c=s.height),u==null||f==null){var v=i.getBoundingRect();u==null&&(u=v.x,h=v.width),f==null&&(f=v.y,c=v.height)}l=this._boundingRect=new lt(u,f,h,c)}if(s){var p=_b(s,l);i.scaleX=i.scaleY=p.scale,i.x=p.x,i.y=p.y}n.setClipPath(new pt({shape:l.plain()}));var d=[];return b(t.named,function(g){vO.get(g.svgNodeTagLower)!=null&&(d.push(g),pO(g.el))}),{root:n,boundingRect:l,named:d}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,i=t.get(e);return i||(i=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,i),i)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,i=t.get(e);i&&(t.removeKey(e),this._freedGraphics.push(i))},r}();function pO(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function dO(r){var e=[],t=U();return b(r,function(i){if(i.namedFrom==null){var n=new VR(i.name,i.el);e.push(n),t.set(i.name,n)}}),{regions:e,regionsMap:t}}var kv=[126,25],zm="南海诸岛",Zi=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var Yi=0;Yi<Zi.length;Yi++)for(var zn=0;zn<Zi[Yi].length;zn++)Zi[Yi][zn][0]/=10.5,Zi[Yi][zn][1]/=-10.5/.75,Zi[Yi][zn][0]+=kv[0],Zi[Yi][zn][1]+=kv[1];function gO(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===zm)return;e.push(new Lw(zm,V(Zi,function(i){return{type:"polygon",exterior:i}}),kv))}}var yO={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function mO(r,e){if(r==="china"){var t=yO[e.name];if(t){var i=e.getCenter();i[0]+=t[0]/10.5,i[1]+=-t[1]/(10.5/.75),e.setCenter(i)}}}var _O=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function SO(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:_O[0]})}var xO="name",wO=function(){function r(e,t,i){this.type="geoJSON",this._parsedMap=U(),this._mapName=e,this._specialAreas=i,this._geoJSON=TO(t)}return r.prototype.load=function(e,t){t=t||xO;var i=this._parsedMap.get(t);if(!i){var n=this._parseToRegions(t);i=this._parsedMap.set(t,{regions:n,boundingRect:bO(n)})}var a=U(),o=[];return b(i.regions,function(s){var l=s.name;e&&tt(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),a.set(l,s)}),{regions:o,boundingRect:i.boundingRect||new lt(0,0,0,0),regionsMap:a}},r.prototype._parseToRegions=function(e){var t=this._mapName,i=this._geoJSON,n;try{n=i?Mv(i,e):[]}catch(a){throw new Error(`Invalid geoJson format
- `+a.message)}return gO(t,n),b(n,function(a){var o=a.name;mO(t,a),SO(t,a);var s=this._specialAreas&&this._specialAreas[o];s&&a.transformTo(s.left,s.top,s.width,s.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function bO(r){for(var e,t=0;t<r.length;t++){var i=r[t].getBoundingRect();e=e||i.clone(),e.union(i)}return e}function TO(r){return F(r)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var Ha=U();const Wr={registerMap:function(r,e,t){if(e.svg){var i=new cO(r,e.svg);Ha.set(r,i)}else{var n=e.geoJson||e.geoJSON;n&&!e.features?t=e.specialAreas:n=e;var i=new wO(r,n,t);Ha.set(r,i)}},getGeoResource:function(r){return Ha.get(r)},getMapForUser:function(r){var e=Ha.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var i=Ha.get(r);if(i)return i.load(e,t)}};var Lp=["rect","circle","line","ellipse","polygon","polyline","path"],CO=U(Lp),AO=U(Lp.concat(["g"])),MO=U(Lp.concat(["g"])),Sb=_t();function Ws(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function Vm(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var xb=function(){function r(e){var t=new nt;this.uid=ya("ec_map_draw"),this._controller=new pb(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new nt),t.add(this._svgGroup=new nt)}return r.prototype.draw=function(e,t,i,n,a){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===e&&(s=y.getData())});var l=e.coordinateSystem,u=this._regionsGroup,f=this.group,h=l.getTransformInfo(),c=h.raw,v=h.roam,p=!u.childAt(0)||a;p?(f.x=v.x,f.y=v.y,f.scaleX=v.scaleX,f.scaleY=v.scaleY,f.dirty()):Lt(f,v,e);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:i,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:c};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,i),this._updateMapSelectHandler(e,u,i,n)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=U(),i=U(),n=this._regionsGroup,a=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(v,p){return p&&(v=p(v)),v&&[v[0]*a.scaleX+a.x,v[1]*a.scaleY+a.y]}function h(v){for(var p=[],d=!u&&l&&l.project,g=0;g<v.length;++g){var y=f(v[g],d);y&&p.push(y)}return p}function c(v){return{shape:{points:h(v)}}}n.removeAll(),b(e.geo.regions,function(v){var p=v.name,d=t.get(p),g=i.get(p)||{},y=g.dataIdx,m=g.regionModel;d||(d=t.set(p,new nt),n.add(d),y=s?s.indexOfName(p):null,m=e.isGeo?o.getRegionModel(p):s?s.getItemModel(y):null,i.set(p,{dataIdx:y,regionModel:m}));var _=[],S=[];b(v.geometries,function(T){if(T.type==="polygon"){var C=[T.exterior].concat(T.interiors||[]);u&&(C=Ym(C,u)),b(C,function(M){_.push(new Tr(c(M)))})}else{var A=T.points;u&&(A=Ym(A,u,!0)),b(A,function(M){S.push(new He(c(M)))})}});var w=f(v.getCenter(),l&&l.project);function x(T,C){if(T.length){var A=new du({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});d.add(A),Fm(e,A,y,m),Gm(e,A,p,m,o,y,w),C&&(Vm(A),b(A.states,Vm))}}x(_),x(S,!0)}),t.each(function(v,p){var d=i.get(p),g=d.dataIdx,y=d.regionModel;Hm(e,v,p,y,o,g),Wm(e,v,p,y,o),Um(e,v,p,y,o)},this)},r.prototype._buildSVG=function(e){var t=e.geo.map,i=e.transformInfoRaw;this._svgGroup.x=i.x,this._svgGroup.y=i.y,this._svgGroup.scaleX=i.scaleX,this._svgGroup.scaleY=i.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var n=this._svgDispatcherMap=U(),a=!1;b(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,f=o.svgNodeTagLower,h=o.el,c=u?u.indexOfName(s):null,v=l.getRegionModel(s);if(CO.get(f)!=null&&h instanceof Gr&&Fm(e,h,c,v),h instanceof Gr&&(h.culling=!0),h.z2EmphasisLift=0,!o.namedFrom&&(MO.get(f)!=null&&Gm(e,h,s,v,l,c,null),Hm(e,h,s,v,l,c),Wm(e,h,s,v,l),AO.get(f)!=null)){var p=Um(e,h,s,v,l);p==="self"&&(a=!0);var d=n.get(s)||n.set(s,[]);d.push(h)}},this),this._enableBlurEntireSVG(a,e)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var i=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),n=i.opacity;this._svgGraphicRecord.root.traverse(function(a){if(!a.isGroup){Dc(a);var o=a.ensureState("blur").style||{};o.opacity==null&&n!=null&&(o.opacity=n),a.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var i=t.coordinateSystem;if(i.resourceType==="geoJSON"){var n=this._regionsGroupByName;if(n){var a=n.get(e);return a?[a]:[]}}else if(i.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},r.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},r.prototype._useSVG=function(e){var t=Wr.getGeoResource(e);if(t&&t.type==="geoSVG"){var i=t.useGraphic(this.uid);this._svgGroup.add(i.root),this._svgGraphicRecord=i,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=Wr.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(e,t,i){var n=e.coordinateSystem,a=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=n.getZoom(),a.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}a.off("pan").on("pan",function(u){this._mouseDownFlag=!1,tO(o,u.dx,u.dy),i.dispatchAction(O(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),a.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,eO(o,u.scale,u.originX,u.originY),i.dispatchAction(O(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),a.setPointerChecker(function(u,f,h){return n.containPoint([f,h])&&!gb(u,i,e)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=Sb(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,i,n){var a=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){a._mouseDownFlag=!0}),t.on("click",function(o){a._mouseDownFlag&&(a._mouseDownFlag=!1)}))},r}();function Fm(r,e,t,i){var n=i.getModel("itemStyle"),a=i.getModel(["emphasis","itemStyle"]),o=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=Ws(n),u=Ws(a),f=Ws(s),h=Ws(o),c=r.data;if(c){var v=c.getItemVisual(t,"style"),p=c.getItemVisual(t,"decal");r.isVisualEncodedByVisualMap&&v.fill&&(l.fill=v.fill),p&&(l.decal=Vl(p,r.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=f,e.ensureState("blur").style=h,Dc(e)}function Gm(r,e,t,i,n,a,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),a)),f=s&&s.getItemLayout(a);if(l||u||f&&f.showLabel){var h=l?t:a,c=void 0;(!s||a>=0)&&(c=n);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Xr(e,$r(i),{labelFetcher:c,labelDataIndex:h,defaultText:t},v);var p=e.getTextContent();if(p&&(Sb(p).ignore=p.ignore,e.textConfig&&o)){var d=e.getBoundingRect().clone();e.textConfig.layoutRect=d,e.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Hm(r,e,t,i,n,a){r.data?r.data.setItemGraphicEl(a,e):it(e).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:t,region:i&&i.option||{}}}function Wm(r,e,t,i,n){r.data||da({el:e,componentModel:n,itemName:t,itemTooltipOption:i.get("tooltip")})}function Um(r,e,t,i,n){e.highDownSilentOnTouch=!!n.get("selectedMode");var a=i.getModel("emphasis"),o=a.get("focus");return _i(e,o,a.get("blurScope"),a.get("disabled")),r.isGeo&&OD(e,n,t),o}function Ym(r,e,t){var i=[],n;function a(){n=[]}function o(){n.length&&(i.push(n),n=[])}var s=e({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),b(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),i}var DO=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n,a){if(!(a&&a.type==="mapToggleSelect"&&a.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&a&&a.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),a&&a.type==="geoRoam"&&a.componentType==="series"&&a.seriesId===t.id){var s=this._mapDraw;s&&o.add(s.group)}else if(t.needsDrawMap){var s=this._mapDraw||new xb(n);o.add(s.group),s.draw(t,i,n,this,a),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&i.getComponent("legend")&&this._renderSymbols(t,i,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,i,n){var a=t.originalData,o=this.group;a.each(a.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=a.getItemLayout(l);if(!(!u||!u.point)){var f=u.point,h=u.offset,c=new Yr({style:{fill:t.getData().getVisual("style").fill},shape:{cx:f[0]+h*9,cy:f[1],r:3},silent:!0,z2:8+(h?0:oS+1)});if(!h){var v=t.mainSeries.getData(),p=a.getName(l),d=v.indexOfName(p),g=a.getItemModel(l),y=g.getModel("label"),m=v.getItemGraphicEl(d);Xr(c,$r(g),{labelFetcher:{getFormattedLabel:function(_,S){return t.getFormattedLabel(d,S)}},defaultText:p}),c.disableLabelAnimation=!0,y.get("position")||c.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(_){av(c,_)}}o.add(c)}}})},e.type="map",e}(Ut),IO=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(i){if(i!=null){var n=this.getData().getName(i),a=this.coordinateSystem,o=a.getRegion(n);return o&&a.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var i=Mp(this,{coordDimensions:["value"],encodeDefaulter:vt(rx,this)}),n=U(),a=[],o=0,s=i.count();o<s;o++){var l=i.getName(o);n.set(l,!0)}var u=Wr.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return b(u.regions,function(f){var h=f.name;n.get(h)||a.push(h)}),i.appendValues([],a),i},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return t!=null?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var i=this.getData();return i.get(i.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var i=this.getData();return i.getItemModel(i.indexOfName(t))},e.prototype.formatTooltip=function(t,i,n){for(var a=this.getData(),o=this.getRawValue(t),s=a.getName(t),l=this.seriesGroup,u=[],f=0;f<l.length;f++){var h=l[f].originalData.indexOfName(s),c=a.mapDimension("value");isNaN(l[f].originalData.get(c,h))||u.push(l[f].name)}return wr("section",{header:u.join(", "),noHeader:!u.length,blocks:[wr("nameValue",{name:s,value:o})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var i=t.icon||"roundRect",n=Yt(i,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",i.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(xe);function PO(r,e){var t={};return b(r,function(i){i.each(i.mapDimension("value"),function(n,a){var o="ec-"+i.getName(a);t[o]=t[o]||[],isNaN(n)||t[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(i,n){for(var a="ec-"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=t[a].length,f=0;f<u;f++)s=Math.min(s,t[a][f]),l=Math.max(l,t[a][f]),o+=t[a][f];var h;return e==="min"?h=s:e==="max"?h=l:e==="average"?h=o/u:h=o,u===0?NaN:h})}function LO(r){var e={};r.eachSeriesByType("map",function(t){var i=t.getHostGeoModel(),n=i?"o"+i.id:"i"+t.getMapType();(e[n]=e[n]||[]).push(t)}),b(e,function(t,i){for(var n=PO(V(t,function(o){return o.getData()}),t[0].get("mapValueCalculation")),a=0;a<t.length;a++)t[a].originalData=t[a].getData();for(var a=0;a<t.length;a++)t[a].seriesGroup=t,t[a].needsDrawMap=a===0&&!t[a].getHostGeoModel(),t[a].setData(n.cloneShallow()),t[a].mainSeries=t[0]})}function RO(r){var e={};r.eachSeriesByType("map",function(t){var i=t.getMapType();if(!(t.getHostGeoModel()||e[i])){var n={};b(t.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,f){var h=l.getName(f),c=s.getRegion(h);if(!(!c||isNaN(u))){var v=n[h]||0,p=s.dataToPoint(c.getCenter());n[h]=v+1,l.setItemLayout(f,{point:p,offset:v})}})});var a=t.getData();a.each(function(o){var s=a.getName(o),l=a.getItemLayout(o)||{};l.showLabel=!n[s],a.setItemLayout(o,l)}),e[i]=!0}})}var Xm=Vt,wb=function(r){E(e,r);function e(t){var i=r.call(this)||this;return i.type="view",i.dimensions=["x","y"],i._roamTransformable=new tn,i._rawTransformable=new tn,i.name=t,i}return e.prototype.setBoundingRect=function(t,i,n,a){return this._rect=new lt(t,i,n,a),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,i,n,a){this._transformTo(t,i,n,a),this._viewRect=new lt(t,i,n,a)},e.prototype._transformTo=function(t,i,n,a){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new lt(t,i,n,a));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t,i){t&&(this._center=[Q(t[0],i.getWidth()),Q(t[1],i.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var i=this.zoomLimit;i&&(i.max!=null&&(t=Math.min(i.max,t)),i.min!=null&&(t=Math.max(i.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),i=t.x+t.width/2,n=t.y+t.height/2;return[i,n]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),i=this._roamTransformable,n=this.getDefaultCenter(),a=this.getCenter(),o=this.getZoom();a=Vt([],a,t),n=Vt([],n,t),i.originX=a[0],i.originY=a[1],i.x=n[0]-a[0],i.y=n[1]-a[1],i.scaleX=i.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,i=this._rawTransformable;i.parent=t,t.updateTransform(),i.updateTransform(),ru(this.transform||(this.transform=[]),i.transform||be()),this._rawTransform=i.getLocalTransform(),this.invTransform=this.invTransform||[],va(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,i=this._roamTransformable,n=new tn;return n.transform=i.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,i,n){var a=i?this._rawTransform:this.transform;return n=n||[],a?Xm(n,t,a):e1(n,t)},e.prototype.pointToData=function(t){var i=this.invTransform;return i?Xm([],t,i):[t[0],t[1]]},e.prototype.convertToPixel=function(t,i,n){var a=$m(i);return a===this?a.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,i,n){var a=$m(i);return a===this?a.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(tn);function $m(r){var e=r.seriesModel;return e?e.coordinateSystem:null}var EO={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},bb=["lng","lat"],Tb=function(r){E(e,r);function e(t,i,n){var a=r.call(this,t)||this;a.dimensions=bb,a.type="geo",a._nameCoordMap=U(),a.map=i;var o=n.projection,s=Wr.load(i,n.nameMap,n.nameProperty),l=Wr.getGeoResource(i);a.resourceType=l?l.type:null;var u=a.regions=s.regions,f=EO[l.type];a._regionsMap=s.regionsMap,a.regions=s.regions,a.projection=o;var h;if(o)for(var c=0;c<u.length;c++){var v=u[c].getBoundingRect(o);h=h||v.clone(),h.union(v)}else h=s.boundingRect;return a.setBoundingRect(h.x,h.y,h.width,h.height),a.aspectScale=o?1:J(n.aspectScale,f.aspectScale),a._invertLongitute=o?!1:f.invertLongitute,a}return e.prototype._transformTo=function(t,i,n,a){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new lt(t,i,n,a));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var i=this.regions,n=0;n<i.length;n++){var a=i[n];if(a.type==="geoJSON"&&a.contain(t))return i[n]}},e.prototype.addGeoCoord=function(t,i){this._nameCoordMap.set(t,i)},e.prototype.getGeoCoord=function(t){var i=this._regionsMap.get(t);return this._nameCoordMap.get(t)||i&&i.getCenter()},e.prototype.dataToPoint=function(t,i,n){if(F(t)&&(t=this.getGeoCoord(t)),t){var a=this.projection;return a&&(t=a.project(t)),t&&this.projectedToPoint(t,i,n)}},e.prototype.pointToData=function(t){var i=this.projection;return i&&(t=i.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(t){return r.prototype.pointToData.call(this,t)},e.prototype.projectedToPoint=function(t,i,n){return r.prototype.dataToPoint.call(this,t,i,n)},e.prototype.convertToPixel=function(t,i,n){var a=Zm(i);return a===this?a.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,i,n){var a=Zm(i);return a===this?a.pointToData(n):null},e}(wb);Xt(Tb,wb);function Zm(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",Ot).models[0]||{}).coordinateSystem:null}const qm=Tb;function Km(r,e){var t=r.get("boundingCoords");if(t!=null){var i=t[0],n=t[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(n[0])&&isFinite(n[1])){var a=this.projection;if(a){var o=i[0],s=i[1],l=n[0],u=n[1];i=[1/0,1/0],n=[-1/0,-1/0];var f=function(x,T,C,A){for(var M=C-x,D=A-T,I=0;I<=100;I++){var P=I/100,L=a.project([x+M*P,T+D*P]);Er(i,i,L),kr(n,n,L)}};f(o,s,l,s),f(l,s,l,u),f(l,u,o,u),f(o,u,l,s)}this.setBoundingRect(i[0],i[1],n[0]-i[0],n[1]-i[1])}}var h=this.getBoundingRect(),c=r.get("layoutCenter"),v=r.get("layoutSize"),p=e.getWidth(),d=e.getHeight(),g=h.width/h.height*this.aspectScale,y=!1,m,_;c&&v&&(m=[Q(c[0],p),Q(c[1],d)],_=Q(v,Math.min(p,d)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(_)&&(y=!0));var S;if(y)S={},g>1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var w=r.getBoxLayoutParams();w.aspect=g,S=fe(w,{width:p,height:d})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center"),e),this.setZoom(r.get("zoom"))}function kO(r,e){b(e.get("geoCoord"),function(t,i){r.addGeoCoord(i,t)})}var OO=function(){function r(){this.dimensions=bb}return r.prototype.create=function(e,t){var i=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new qm(l+s,l,O({nameMap:o.get("nameMap")},n(o)));u.zoomLimit=o.get("scaleLimit"),i.push(u),o.coordinateSystem=u,u.model=o,u.resize=Km,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=i[l]}});var a={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),b(a,function(o,s){var l=V(o,function(f){return f.get("nameMap")}),u=new qm(s,s,O({nameMap:q_(l)},n(o[0])));u.zoomLimit=zr.apply(null,V(o,function(f){return f.get("scaleLimit")})),i.push(u),u.resize=Km,u.resize(o[0],t),b(o,function(f){f.coordinateSystem=u,kO(u,f)})}),i},r.prototype.getFilledRegions=function(e,t,i,n){for(var a=(e||[]).slice(),o=U(),s=0;s<a.length;s++)o.set(a[s].name,a[s]);var l=Wr.load(t,i,n);return b(l.regions,function(u){var f=u.name;!o.get(f)&&a.push({name:f})}),a},r}(),Cb=new OO,BO=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i,n){var a=Wr.getGeoResource(t.map);if(a&&a.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(t,n),Al(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,i=this.option;i.regions=Cb.getFilledRegions(i.regions,i.map,i.nameMap,i.nameProperty);var n={};this._optionModelMap=Fe(i.regions||[],function(a,o){var s=o.name;return s&&(a.set(s,new Tt(o,t,t.ecModel)),o.selected&&(n[s]=!0)),a},U()),i.selectedMap||(i.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Tt(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,i){var n=this.getRegionModel(t),a=i==="normal"?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),o={name:t};if(K(a))return o.status=i,a(o);if(F(a))return a.replace("{a}",t!=null?t:"")},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var i=this.option,n=i.selectedMode;if(n){n!=="multiple"&&(i.selectedMap=null);var a=i.selectedMap||(i.selectedMap={});a[t]=!0}},e.prototype.unSelect=function(t){var i=this.option.selectedMap;i&&(i[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var i=this.option.selectedMap;return!!(i&&i[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(ft);function jm(r,e){return r.pointToProjected?r.pointToProjected(e):r.pointToData(e)}function NO(r,e,t,i){var n=r.getZoom(),a=r.getCenter(),o=e.zoom,s=r.projectedToPoint?r.projectedToPoint(a):r.dataToPoint(a);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,r.setCenter(jm(r,s),i)),o!=null){if(t){var l=t.min||0,u=t.max||1/0;o=Math.max(Math.min(n*o,u),l)/n}r.scaleX*=o,r.scaleY*=o;var f=(e.originX-r.x)*(o-1),h=(e.originY-r.y)*(o-1);r.x-=f,r.y-=h,r.updateTransform(),r.setCenter(jm(r,s),i),r.setZoom(o*n)}return{center:r.getCenter(),zoom:r.getZoom()}}var zO=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,i){this._api=i},e.prototype.render=function(t,i,n,a){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new xb(n));var o=this._mapDraw;o.draw(t,i,n,this,a),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,i,n)},e.prototype._handleRegionClick=function(t){var i;an(t.target,function(n){return(i=it(n).eventData)!=null},!0),i&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:i.name})},e.prototype.updateSelectStatus=function(t,i,n){var a=this;this._mapDraw.group.traverse(function(o){var s=it(o).eventData;if(s)return a._model.isSelected(s.name)?n.enterSelect(o):n.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(At);function VO(r,e,t){Wr.registerMap(r,e,t)}function FO(r){r.registerCoordinateSystem("geo",Cb),r.registerComponentModel(BO),r.registerComponentView(zO),r.registerImpl("registerMap",VO),r.registerImpl("getMap",function(t){return Wr.getMapForUser(t)});function e(t,i){i.update="geo:updateSelectStatus",r.registerAction(i,function(n,a){var o={},s=[];return a.eachComponent({mainType:"geo",query:n},function(l){l[t](n.name);var u=l.coordinateSystem;b(u.regions,function(h){o[h.name]=l.isSelected(h.name)||!1});var f=[];b(o,function(h,c){o[c]&&f.push(c)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:n.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,i,n){var a=t.componentType||"series";i.eachComponent({mainType:a,query:t},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=NO(s,t,o.get("scaleLimit"),n);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),a==="series"&&b(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function GO(r){Ft(FO),r.registerChartView(DO),r.registerSeriesModel(IO),r.registerLayout(RO),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,LO),zx("map",r.registerAction)}var Vo=b,HO=Y,Zl=-1,Jt=function(){function r(e){var t=e.mappingMethod,i=e.type,n=this.option=X(e);this.type=i,this.mappingMethod=t,this._normalizeData=YO[t];var a=r.visualHandlers[i];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[t],t==="piecewise"?(hh(n),WO(n)):t==="category"?n.categories?UO(n):hh(n,!0):(ue(t!=="linear"||n.dataExtent),hh(n))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return W(this._normalizeData,this)},r.listVisualTypes=function(){return at(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,i){Y(e)?b(e,t,i):t.call(i,e)},r.mapVisual=function(e,t,i){var n,a=z(e)?[]:Y(e)?{}:(n=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(i,o,s);n?a=l:a[s]=l}),a},r.retrieveVisuals=function(e){var t={},i;return e&&Vo(r.visualHandlers,function(n,a){e.hasOwnProperty(a)&&(t[a]=e[a],i=!0)}),i?t:null},r.prepareVisualTypes=function(e){if(z(e))e=e.slice();else if(HO(e)){var t=[];Vo(e,function(i,n){t.push(n)}),e=t}else return[];return e.sort(function(i,n){return n==="color"&&i!=="color"&&i.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,i){for(var n,a=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||F(l)&&l===e+"")return o;i&&c(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],f=u.interval,h=u.close;if(f){if(f[0]===-1/0){if(Ys(h[1],e,f[1]))return o}else if(f[1]===1/0){if(Ys(h[0],f[0],e))return o}else if(Ys(h[0],f[0],e)&&Ys(h[1],e,f[1]))return o;i&&c(f[0],o),i&&c(f[1],o)}}if(i)return e===1/0?t.length-1:e===-1/0?0:n;function c(v,p){var d=Math.abs(v-e);d<a&&(a=d,n=p)}},r.visualHandlers={color:{applyVisual:Wa("color"),getColorMapper:function(){var e=this.option;return W(e.mappingMethod==="category"?function(t,i){return!i&&(t=this._normalizeData(t)),ro.call(this,t)}:function(t,i,n){var a=!!n;return!i&&(t=this._normalizeData(t)),n=oo(t,e.parsedVisual,n),a?n:tr(n,"rgba")},this)},_normalizedToVisual:{linear:function(e){return tr(oo(e,this.option.parsedVisual),"rgba")},category:ro,piecewise:function(e,t){var i=Bv.call(this,t);return i==null&&(i=tr(oo(e,this.option.parsedVisual),"rgba")),i},fixed:qi}},colorHue:Us(function(e,t){return tl(e,t)}),colorSaturation:Us(function(e,t){return tl(e,null,t)}),colorLightness:Us(function(e,t){return tl(e,null,null,t)}),colorAlpha:Us(function(e,t){return y1(e,t)}),decal:{applyVisual:Wa("decal"),_normalizedToVisual:{linear:null,category:ro,piecewise:null,fixed:null}},opacity:{applyVisual:Wa("opacity"),_normalizedToVisual:Ov([0,1])},liftZ:{applyVisual:Wa("liftZ"),_normalizedToVisual:{linear:qi,category:qi,piecewise:qi,fixed:qi}},symbol:{applyVisual:function(e,t,i){var n=this.mapValueToVisual(e);i("symbol",n)},_normalizedToVisual:{linear:Jm,category:ro,piecewise:function(e,t){var i=Bv.call(this,t);return i==null&&(i=Jm.call(this,e)),i},fixed:qi}},symbolSize:{applyVisual:Wa("symbolSize"),_normalizedToVisual:Ov([0,1])}},r}();function WO(r){var e=r.pieceList;r.hasSpecialVisual=!1,b(e,function(t,i){t.originIndex=i,t.visual!=null&&(r.hasSpecialVisual=!0)})}function UO(r){var e=r.categories,t=r.categoryMap={},i=r.visual;if(Vo(e,function(o,s){t[o]=s}),!z(i)){var n=[];Y(i)?Vo(i,function(o,s){var l=t[s];n[l!=null?l:Zl]=o}):n[Zl]=i,i=Ab(r,n)}for(var a=e.length-1;a>=0;a--)i[a]==null&&(delete t[e[a]],e.pop())}function hh(r,e){var t=r.visual,i=[];Y(t)?Vo(t,function(a){i.push(a)}):t!=null&&i.push(t);var n={color:1,symbol:1};!e&&i.length===1&&!n.hasOwnProperty(r.type)&&(i[1]=i[0]),Ab(r,i)}function Us(r){return{applyVisual:function(e,t,i){var n=this.mapValueToVisual(e);i("color",r(t("color"),n))},_normalizedToVisual:Ov([0,1])}}function Jm(r){var e=this.option.visual;return e[Math.round(xt(r,[0,1],[0,e.length-1],!0))]||{}}function Wa(r){return function(e,t,i){i(r,this.mapValueToVisual(e))}}function ro(r){var e=this.option.visual;return e[this.option.loop&&r!==Zl?r%e.length:r]}function qi(){return this.option.visual[0]}function Ov(r){return{linear:function(e){return xt(e,r,this.option.visual,!0)},category:ro,piecewise:function(e,t){var i=Bv.call(this,t);return i==null&&(i=xt(e,r,this.option.visual,!0)),i},fixed:qi}}function Bv(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var i=Jt.findPieceIndex(r,t),n=t[i];if(n&&n.visual)return n.visual[this.type]}}function Ab(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=V(e,function(t){var i=oe(t);return i||[0,0,0,1]})),e}var YO={linear:function(r){return xt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=Jt.findPieceIndex(r,e,!0);if(t!=null)return xt(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e==null?Zl:e},fixed:zt};function Ys(r,e,t){return r?e<=t:e<t}function XO(r){$O(r),ZO(r)}function $O(r){if(!r.parallel){var e=!1;b(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function ZO(r){var e=Ct(r.parallelAxis);b(e,function(t){if(Y(t)){var i=t.parallelIndex||0,n=Ct(r.parallel)[i];n&&n.parallelAxisDefault&&et(t,n.parallelAxisDefault,!1)}})}var qO=5,KO=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n){this._model=t,this._api=n,this._handlers||(this._handlers={},b(jO,function(a,o){n.getZr().on(o,this._handlers[o]=W(a,this))},this)),Jo(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,i){Ro(this,"_throttledDispatchExpand"),b(this._handlers,function(n,a){i.getZr().off(a,n)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(O({type:"parallelAxisExpand"},t))},e.type="parallel",e}(At),jO={mousedown:function(r){vh(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(vh(this,"click")&&e){var t=[r.offsetX,r.offsetY],i=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(i>qO)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!vh(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),i=t.behavior;i==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(i==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:i==="jump"?null:{duration:0}})}}};function vh(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var JO=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var i=this.option;t&&et(i,t,!0),this._initDimensions()},e.prototype.contains=function(t,i){var n=t.get("parallelIndex");return n!=null&&i.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){b(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(i){t.hasOwnProperty(i)&&(this.option[i]=t[i])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],i=this.parallelAxisIndex=[],n=bt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);b(n,function(a){t.push("dim"+a.get("dim")),i.push(a.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(ft),QO=function(r){E(e,r);function e(t,i,n,a,o){var s=r.call(this,t,i,n)||this;return s.type=a||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(or);function wn(r,e,t,i,n,a){r=r||0;var o=t[1]-t[0];if(n!=null&&(n=Vn(n,[0,o])),a!=null&&(a=Math.max(a,n!=null?n:0)),i==="all"){var s=Math.abs(e[1]-e[0]);s=Vn(s,[0,o]),n=a=Vn(s,[n,a]),i=0}e[0]=Vn(e[0],t),e[1]=Vn(e[1],t);var l=ch(e,i);e[i]+=r;var u=n||0,f=t.slice();l.sign<0?f[0]+=u:f[1]-=u,e[i]=Vn(e[i],f);var h;return h=ch(e,i),n!=null&&(h.sign!==l.sign||h.span<n)&&(e[1-i]=e[i]+l.sign*n),h=ch(e,i),a!=null&&h.span>a&&(e[1-i]=e[i]+h.sign*a),e}function ch(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Vn(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var ph=b,Mb=Math.min,Db=Math.max,Qm=Math.floor,tB=Math.ceil,t0=Pt,eB=Math.PI,rB=function(){function r(e,t,i){this.type="parallel",this._axesMap=U(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,i)}return r.prototype._init=function(e,t,i){var n=e.dimensions,a=e.parallelAxisIndex;ph(n,function(o,s){var l=a[s],u=t.getComponent("parallelAxis",l),f=this._axesMap.set(o,new QO(o,Vu(u),[0,0],u.get("type"),l)),h=f.type==="category";f.onBand=h&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),i=t.axisBase,n=t.layoutBase,a=t.pixelDimIndex,o=e[1-a],s=e[a];return o>=i&&o<=i+t.axisLength&&s>=n&&s<=n+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(i){if(e.contains(i,t)){var n=i.getData();ph(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(n,n.mapDimension(a)),sa(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=fe(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,i=["x","y"],n=["width","height"],a=e.get("layout"),o=a==="horizontal"?0:1,s=t[n[o]],l=[0,s],u=this.dimensions.length,f=Xs(e.get("axisExpandWidth"),l),h=Xs(e.get("axisExpandCount")||0,[0,u]),c=e.get("axisExpandable")&&u>3&&u>h&&h>1&&f>0&&s>0,v=e.get("axisExpandWindow"),p;if(v)p=Xs(v[1]-v[0],l),v[1]=v[0]+p;else{p=Xs(f*(h-1),l);var d=e.get("axisExpandCenter")||Qm(u/2);v=[f*d-p/2],v[1]=v[0]+p}var g=(s-p)/(u-h);g<3&&(g=0);var y=[Qm(t0(v[0]/f,1))+1,tB(t0(v[1]/f,1))-1],m=g/f*v[0];return{layout:a,pixelDimIndex:o,layoutBase:t[i[o]],layoutLength:s,axisBase:t[i[1-o]],axisLength:t[n[1-o]],axisExpandable:c,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:v,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,i=this.dimensions,n=this._makeLayoutInfo(),a=n.layout;t.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),ph(i,function(o,s){var l=(n.axisExpandable?nB:iB)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},f={horizontal:eB/2,vertical:0},h=[u[a].x+e.x,u[a].y+e.y],c=f[a],v=be();wi(v,v,c),Fr(v,v,h),this._axesLayout[o]={position:h,rotation:c,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,i,n){i==null&&(i=0),n==null&&(n=e.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];b(o,function(g){s.push(e.mapDimension(g)),l.push(a.get(g).model)});for(var u=this.hasAxisBrushed(),f=i;f<n;f++){var h=void 0;if(!u)h="normal";else{h="active";for(var c=e.getValues(s,f),v=0,p=o.length;v<p;v++){var d=l[v].getActiveState(c[v]);if(d==="inactive"){h="inactive";break}}}t(h,f)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,i=!1,n=0,a=e.length;n<a;n++)t.get(e[n]).model.getActiveState()!=="normal"&&(i=!0);return i},r.prototype.axisCoordToPoint=function(e,t){var i=this._axesLayout[t];return er([e,0],i.transform)},r.prototype.getAxisLayout=function(e){return X(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),i=t.pixelDimIndex,n=t.axisExpandWindow.slice(),a=n[1]-n[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:n};var s=e[i]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",f=t.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),c=h[0]!=null;if(f)c&&f&&s<a*h[0]?(u="jump",l=s-a*h[2]):c&&f&&s>a*(1-h[0])?(u="jump",l=s-a*(1-h[2])):(l=s-a*h[1])>=0&&(l=s-a*(1-h[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?wn(l,n,o,"all"):u="none";else{var v=n[1]-n[0],p=o[1]*s/v;n=[Db(0,p-v/2)],n[1]=Mb(o[1],n[0]+v),n[0]=n[1]-v}return{axisExpandWindow:n,behavior:u}},r}();function Xs(r,e){return Mb(Db(r,e[0]),e[1])}function iB(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function nB(r,e){var t=e.layoutLength,i=e.axisExpandWidth,n=e.axisCount,a=e.axisCollapseWidth,o=e.winInnerIndices,s,l=a,u=!1,f;return r<o[0]?(s=r*a,f=a):r<=o[1]?(s=e.axisExpandWindow0Pos+r*i-e.axisExpandWindow[0],l=i,u=!0):(s=t-(n-1-r)*a,f=a),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}function aB(r,e){var t=[];return r.eachComponent("parallel",function(i,n){var a=new rB(i,r,e);a.name="parallel_"+n,a.resize(i,e),i.coordinateSystem=a,a.model=i,t.push(a)}),r.eachSeries(function(i){if(i.get("coordinateSystem")==="parallel"){var n=i.getReferringComponents("parallel",Ot).models[0];i.coordinateSystem=n.coordinateSystem}}),t}var oB={create:aB},Nv=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return ea([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var i=this.activeIntervals=X(t);if(i)for(var n=i.length-1;n>=0;n--)yr(i[n])},e.prototype.getActiveState=function(t){var i=this.activeIntervals;if(!i.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(i.length===1){var n=i[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var a=0,o=i.length;a<o;a++)if(i[a][0]<=t&&t<=i[a][1])return"active";return"inactive"},e}(ft);Xt(Nv,ts);var mn=!0,Fo=Math.min,la=Math.max,sB=Math.pow,lB=1e4,uB=6,fB=6,e0="globalPan",hB={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},vB={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},r0={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},cB=0,Ib=function(r){E(e,r);function e(t){var i=r.call(this)||this;return i._track=[],i._covers=[],i._handlers={},i._zr=t,i.group=new nt,i._uid="brushController_"+cB++,b(SB,function(n,a){this._handlers[a]=W(n,this)},i),i}return e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var i=this._zr;this._enableGlobalPan||Jk(i,e0,this._uid),b(this._handlers,function(n,a){i.on(a,n)}),this._brushType=t.brushType,this._brushOption=et(X(r0),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;Qk(t,e0,this._uid),b(this._handlers,function(i,n){t.off(n,i)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var i=this._panels={};b(t,function(n){i[n.panelId]=X(n)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var i=this.group;return this._zr.add(i),i.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=i.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=V(t,function(c){return et(X(r0),c,!0)});var i="\0-brush-index-",n=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new gp(n,t,u,l).add(f).update(f).remove(h).execute(),this;function l(c,v){return(c.id!=null?c.id:i+v)+"-"+c.brushType}function u(c,v){return l(c.__brushOption,v)}function f(c,v){var p=t[c];if(v!=null&&n[v]===s)a[c]=n[v];else{var d=a[c]=v!=null?(n[v].__brushOption=p,n[v]):Lb(o,Pb(o,p));Rp(o,d)}}function h(c){n[c]!==s&&o.group.remove(n[c])}},e.prototype.unmount=function(){return this.enableBrush(!1),zv(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(ir);function Pb(r,e){var t=Hu[e.brushType].createCover(r,e);return t.__brushOption=e,Eb(t,e),r.group.add(t),t}function Lb(r,e){var t=Ep(e);return t.endCreating&&(t.endCreating(r,e),Eb(e,e.__brushOption)),e}function Rb(r,e){var t=e.__brushOption;Ep(e).updateCoverShape(r,e,t.range,t)}function Eb(r,e){var t=e.z;t==null&&(t=lB),r.traverse(function(i){i.z=t,i.z2=t})}function Rp(r,e){Ep(e).updateCommon(r,e),Rb(r,e)}function Ep(r){return Hu[r.__brushOption.brushType]}function kp(r,e,t){var i=r._panels;if(!i)return mn;var n,a=r._transform;return b(i,function(o){o.isTargetByCursor(e,t,a)&&(n=o)}),n}function kb(r,e){var t=r._panels;if(!t)return mn;var i=e.__brushOption.panelId;return i!=null?t[i]:mn}function zv(r){var e=r._covers,t=e.length;return b(e,function(i){r.group.remove(i)},r),e.length=0,!!t}function _n(r,e){var t=V(r._covers,function(i){var n=i.__brushOption,a=X(n.range);return{brushType:n.brushType,panelId:n.panelId,range:a}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function pB(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],i=e[0],n=t[0]-i[0],a=t[1]-i[1],o=sB(n*n+a*a,.5);return o>uB}function Ob(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function Bb(r,e,t,i){var n=new nt;return n.add(new pt({name:"main",style:Op(t),silent:!0,draggable:!0,cursor:"move",drift:vt(i0,r,e,n,["n","s","w","e"]),ondragend:vt(_n,e,{isEnd:!0})})),b(i,function(a){n.add(new pt({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:vt(i0,r,e,n,a),ondragend:vt(_n,e,{isEnd:!0})}))}),n}function Nb(r,e,t,i){var n=i.brushStyle.lineWidth||0,a=la(n,fB),o=t[0][0],s=t[1][0],l=o-n/2,u=s-n/2,f=t[0][1],h=t[1][1],c=f-a+n/2,v=h-a+n/2,p=f-o,d=h-s,g=p+n,y=d+n;Pr(r,e,"main",o,s,p,d),i.transformable&&(Pr(r,e,"w",l,u,a,y),Pr(r,e,"e",c,u,a,y),Pr(r,e,"n",l,u,g,a),Pr(r,e,"s",l,v,g,a),Pr(r,e,"nw",l,u,a,a),Pr(r,e,"ne",c,u,a,a),Pr(r,e,"sw",l,v,a,a),Pr(r,e,"se",c,v,a,a))}function Vv(r,e){var t=e.__brushOption,i=t.transformable,n=e.childAt(0);n.useStyle(Op(t)),n.attr({silent:!i,cursor:i?"move":"default"}),b([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=e.childOfName(a.join("")),s=a.length===1?Fv(r,a[0]):gB(r,a);o&&o.attr({silent:!i,invisible:!i,cursor:i?vB[s]+"-resize":null})})}function Pr(r,e,t,i,n,a,o){var s=e.childOfName(t);s&&s.setShape(mB(Bp(r,e,[[i,n],[i+a,n+o]])))}function Op(r){return q({strokeNoScale:!0},r.brushStyle)}function zb(r,e,t,i){var n=[Fo(r,t),Fo(e,i)],a=[la(r,t),la(e,i)];return[[n[0],a[0]],[n[1],a[1]]]}function dB(r){return pi(r.group)}function Fv(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},n=yu(t[e],dB(r));return i[n]}function gB(r,e){var t=[Fv(r,e[0]),Fv(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function i0(r,e,t,i,n,a){var o=t.__brushOption,s=r.toRectRange(o.range),l=Vb(e,n,a);b(i,function(u){var f=hB[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(zb(s[0][0],s[1][0],s[0][1],s[1][1])),Rp(e,t),_n(e,{isEnd:!1})}function yB(r,e,t,i){var n=e.__brushOption.range,a=Vb(r,t,i);b(n,function(o){o[0]+=a[0],o[1]+=a[1]}),Rp(r,e),_n(r,{isEnd:!1})}function Vb(r,e,t){var i=r.group,n=i.transformCoordToLocal(e,t),a=i.transformCoordToLocal(0,0);return[n[0]-a[0],n[1]-a[1]]}function Bp(r,e,t){var i=kb(r,e);return i&&i!==mn?i.clipPath(t,r._transform):X(t)}function mB(r){var e=Fo(r[0][0],r[1][0]),t=Fo(r[0][1],r[1][1]),i=la(r[0][0],r[1][0]),n=la(r[0][1],r[1][1]);return{x:e,y:t,width:i-e,height:n-t}}function _B(r,e,t){if(!(!r._brushType||xB(r,e.offsetX,e.offsetY))){var i=r._zr,n=r._covers,a=kp(r,e,t);if(!r._dragging)for(var o=0;o<n.length;o++){var s=n[o].__brushOption;if(a&&(a===mn||s.panelId===a.panelId)&&Hu[s.brushType].contain(n[o],t[0],t[1]))return}a&&i.setCursorStyle("crosshair")}}function Gv(r){var e=r.event;e.preventDefault&&e.preventDefault()}function Hv(r,e,t){return r.childOfName("main").contain(e,t)}function Fb(r,e,t,i){var n=r._creatingCover,a=r._creatingPanel,o=r._brushOption,s;if(r._track.push(t.slice()),pB(r)||n){if(a&&!n){o.brushMode==="single"&&zv(r);var l=X(o);l.brushType=n0(l.brushType,a),l.panelId=a===mn?null:a.panelId,n=r._creatingCover=Pb(r,l),r._covers.push(n)}if(n){var u=Hu[n0(r._brushType,a)],f=n.__brushOption;f.range=u.getCreatingRange(Bp(r,n,r._track)),i&&(Lb(r,n),u.updateCommon(r,n)),Rb(r,n),s={isEnd:i}}}else i&&o.brushMode==="single"&&o.removeOnClick&&kp(r,e,t)&&zv(r)&&(s={isEnd:i,removeOnClick:!0});return s}function n0(r,e){return r==="auto"?e.defaultBrushType:r}var SB={mousedown:function(r){if(this._dragging)a0(this,r);else if(!r.target||!r.target.draggable){Gv(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=kp(this,r,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var e=r.offsetX,t=r.offsetY,i=this.group.transformCoordToLocal(e,t);if(_B(this,r,i),this._dragging){Gv(r);var n=Fb(this,r,i,!1);n&&_n(this,n)}},mouseup:function(r){a0(this,r)}};function a0(r,e){if(r._dragging){Gv(e);var t=e.offsetX,i=e.offsetY,n=r.group.transformCoordToLocal(t,i),a=Fb(r,e,n,!0);r._dragging=!1,r._track=[],r._creatingCover=null,a&&_n(r,a)}}function xB(r,e,t){var i=r._zr;return e<0||e>i.getWidth()||t<0||t>i.getHeight()}var Hu={lineX:o0(0),lineY:o0(1),rect:{createCover:function(r,e){function t(i){return i}return Bb({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=Ob(r);return zb(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,i){Nb(r,e,t,i)},updateCommon:Vv,contain:Hv},polygon:{createCover:function(r,e){var t=new nt;return t.add(new He({name:"main",style:Op(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new Tr({name:"main",draggable:!0,drift:vt(yB,r,e),ondragend:vt(_n,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,i){e.childAt(0).setShape({points:Bp(r,e,t)})},updateCommon:Vv,contain:Hv}};function o0(r){return{createCover:function(e,t){return Bb({toRectRange:function(i){var n=[i,[0,100]];return r&&n.reverse(),n},fromRectRange:function(i){return i[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=Ob(e),i=Fo(t[0][r],t[1][r]),n=la(t[0][r],t[1][r]);return[i,n]},updateCoverShape:function(e,t,i,n){var a,o=kb(e,t);if(o!==mn&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(r);else{var s=e._zr;a=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[i,a];r&&l.reverse(),Nb(e,t,l,n)},updateCommon:Vv,contain:Hv}}function Gb(r){return r=Np(r),function(e){return zc(e,r)}}function Hb(r,e){return r=Np(r),function(t){var i=e!=null?e:t,n=i?r.width:r.height,a=i?r.x:r.y;return[a,a+(n||0)]}}function Wb(r,e,t){var i=Np(r);return function(n,a){return i.contain(a[0],a[1])&&!gb(n,e,t)}}function Np(r){return lt.create(r)}var wB=["axisLine","axisTickLabel","axisName"],bB=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){r.prototype.init.apply(this,arguments),(this._brushController=new Ib(i.getZr())).on("brush",W(this._onBrush,this))},e.prototype.render=function(t,i,n,a){if(!TB(t,i,a)){this.axisModel=t,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new nt,this.group.add(this._axisGroup),!!t.get("show")){var s=AB(t,i),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,h=t.axis.dim,c=l.getAxisLayout(h),v=O({strokeContainThreshold:f},c),p=new _e(t,v);b(wB,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(v,u,t,s,f,n),mu(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,i,n,a,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),h=lt.create({x:l[0],y:-o/2,width:u,height:o});h.x-=f,h.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:Gb(h),isTargetByCursor:Wb(h,s,a),getLinearBrushOtherExtent:Hb(h,0)}]).enableBrush({brushType:"lineX",brushStyle:i,removeOnClick:!0}).updateCovers(CB(n))},e.prototype._onBrush=function(t){var i=t.areas,n=this.axisModel,a=n.axis,o=V(i,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(At);function TB(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function CB(r){var e=r.axis;return V(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function AB(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var MB={type:"axisAreaSelect",event:"axisAreaSelected"};function DB(r){r.registerAction(MB,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(i){i.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(i){i.setAxisExpand(e)})})}var IB={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function PB(r){r.registerComponentView(KO),r.registerComponentModel(JO),r.registerCoordinateSystem("parallel",oB),r.registerPreprocessor(XO),r.registerComponentModel(Nv),r.registerComponentView(bB),No(r,"parallel",Nv,IB),DB(r)}var LB=["itemStyle","borderWidth"],s0=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],dh=new Yr,RB=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n){var a=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),h=l.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:f,valueDim:s0[+f],categoryDim:s0[1-+f]};o.diff(s).add(function(p){if(o.hasValue(p)){var d=u0(o,p),g=l0(o,p,d,c),y=f0(o,c,g);o.setItemGraphicEl(p,y),a.add(y),v0(y,c,g)}}).update(function(p,d){var g=s.getItemGraphicEl(d);if(!o.hasValue(p)){a.remove(g);return}var y=u0(o,p),m=l0(o,p,y,c),_=qb(o,m);g&&_!==g.__pictorialShapeStr&&(a.remove(g),o.setItemGraphicEl(p,null),g=null),g?VB(g,c,m):g=f0(o,c,m,!0),o.setItemGraphicEl(p,g),g.__pictorialSymbolMeta=m,a.add(g),v0(g,c,m)}).remove(function(p){var d=s.getItemGraphicEl(p);d&&h0(s,p,d.__pictorialSymbolMeta.animationModel,d)}).execute();var v=t.get("clip",!0)?Zw(t.coordinateSystem,!1,t):null;return v?a.setClipPath(v):a.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,i){var n=this.group,a=this._data;t.get("animation")?a&&a.eachItemGraphicEl(function(o){h0(a,it(o).dataIndex,t,o)}):n.removeAll()},e.type="pictorialBar",e}(Ut);function l0(r,e,t,i){var n=r.getItemLayout(e),a=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=t.get("symbolPatternSize")||2,h=t.isAnimationEnabled(),c={dataIndex:e,layout:n,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:h?t:null,hoverScale:h&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};EB(t,a,n,i,c),kB(r,e,n,a,o,c.boundingLength,c.pxSign,f,i,c),OB(t,c.symbolScale,u,i,c);var v=c.symbolSize,p=Lu(t.get("symbolOffset"),v);return BB(t,v,n,a,o,p,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,i,c),c}function EB(r,e,t,i,n){var a=i.valueDim,o=r.get("symbolBoundingData"),s=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[a.wh]<=0),f;if(z(o)){var h=[gh(s,o[0])-l,gh(s,o[1])-l];h[1]<h[0]&&h.reverse(),f=h[u]}else o!=null?f=gh(s,o)-l:e?f=i.coordSysExtent[a.index][u]-l:f=t[a.wh];n.boundingLength=f,e&&(n.repeatCutLength=t[a.wh]),n.pxSign=f>0?1:-1}function gh(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function kB(r,e,t,i,n,a,o,s,l,u){var f=l.valueDim,h=l.categoryDim,c=Math.abs(t[h.wh]),v=r.getItemVisual(e,"symbolSize"),p;z(v)?p=v.slice():v==null?p=["100%","100%"]:p=[v,v],p[h.index]=Q(p[h.index],c),p[f.index]=Q(p[f.index],i?c:Math.abs(a)),u.symbolSize=p;var d=u.symbolScale=[p[0]/s,p[1]/s];d[f.index]*=(l.isHorizontal?-1:1)*o}function OB(r,e,t,i,n){var a=r.get(LB)||0;a&&(dh.attr({scaleX:e[0],scaleY:e[1],rotation:t}),dh.updateTransform(),a/=dh.getLineScale(),a*=e[i.valueDim.index]),n.valueLineWidth=a||0}function BB(r,e,t,i,n,a,o,s,l,u,f,h){var c=f.categoryDim,v=f.valueDim,p=h.pxSign,d=Math.max(e[v.index]+s,0),g=d;if(i){var y=Math.abs(l),m=zr(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=Q(m,e[v.index]),w=Math.max(d+S*2,0),x=_?0:S*2,T=Sc(i),C=T?i:c0((y+x)/w),A=y-C*d;S=A/2/(_?C:Math.max(C-1,1)),w=d+S*2,x=_?0:S*2,!T&&i!=="fixed"&&(C=u?c0((Math.abs(u)+x)/w):0),g=C*w-x,h.repeatTimes=C,h.symbolMargin=S}var M=p*(g/2),D=h.pathPosition=[];D[c.index]=t[c.wh]/2,D[v.index]=o==="start"?M:o==="end"?l-M:l/2,a&&(D[0]+=a[0],D[1]+=a[1]);var I=h.bundlePosition=[];I[c.index]=t[c.xy],I[v.index]=t[v.xy];var P=h.barRectShape=O({},t);P[v.wh]=p*Math.max(Math.abs(t[v.wh]),Math.abs(D[v.index]+M)),P[c.wh]=t[c.wh];var L=h.clipShape={};L[c.xy]=-t[c.xy],L[c.wh]=f.ecSize[c.wh],L[v.xy]=0,L[v.wh]=t[v.wh]}function Ub(r){var e=r.symbolPatternSize,t=Yt(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function Yb(r,e,t,i){var n=r.__pictorialBundle,a=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,f=0,h=a[e.valueDim.index]+o+t.symbolMargin*2;for(zp(r,function(d){d.__pictorialAnimationIndex=f,d.__pictorialRepeatTimes=u,f<u?ta(d,null,p(f),t,i):ta(d,null,{scaleX:0,scaleY:0},t,i,function(){n.remove(d)}),f++});f<u;f++){var c=Ub(t);c.__pictorialAnimationIndex=f,c.__pictorialRepeatTimes=u,n.add(c);var v=p(f);ta(c,{x:v.x,y:v.y,scaleX:0,scaleY:0},{scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation},t,i)}function p(d){var g=s.slice(),y=t.pxSign,m=d;return(t.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-d),g[l.index]=h*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function Xb(r,e,t,i){var n=r.__pictorialBundle,a=r.__pictorialMainPath;a?ta(a,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,i):(a=r.__pictorialMainPath=Ub(t),n.add(a),ta(a,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,i))}function $b(r,e,t){var i=O({},e.barRectShape),n=r.__pictorialBarRect;n?ta(n,null,{shape:i},e,t):(n=r.__pictorialBarRect=new pt({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function Zb(r,e,t,i){if(t.symbolClip){var n=r.__pictorialClipPath,a=O({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(n)Lt(n,{shape:a},s,l);else{a[o.wh]=0,n=new pt({shape:a}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=t.clipShape[o.wh],ga[i?"updateProps":"initProps"](n,{shape:u},s,l)}}}function u0(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=NB,t.isAnimationEnabled=zB,t}function NB(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function zB(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function f0(r,e,t,i){var n=new nt,a=new nt;return n.add(a),n.__pictorialBundle=a,a.x=t.bundlePosition[0],a.y=t.bundlePosition[1],t.symbolRepeat?Yb(n,e,t):Xb(n,e,t),$b(n,t,i),Zb(n,e,t,i),n.__pictorialShapeStr=qb(r,t),n.__pictorialSymbolMeta=t,n}function VB(r,e,t){var i=t.animationModel,n=t.dataIndex,a=r.__pictorialBundle;Lt(a,{x:t.bundlePosition[0],y:t.bundlePosition[1]},i,n),t.symbolRepeat?Yb(r,e,t,!0):Xb(r,e,t,!0),$b(r,t,!0),Zb(r,e,t,!0)}function h0(r,e,t,i){var n=i.__pictorialBarRect;n&&n.removeTextContent();var a=[];zp(i,function(o){a.push(o)}),i.__pictorialMainPath&&a.push(i.__pictorialMainPath),i.__pictorialClipPath&&(t=null),b(a,function(o){Ao(o,{scaleX:0,scaleY:0},t,e,function(){i.parent&&i.parent.remove(i)})}),r.setItemGraphicEl(e,null)}function qb(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function zp(r,e,t){b(r.__pictorialBundle.children(),function(i){i!==r.__pictorialBarRect&&e.call(t,i)})}function ta(r,e,t,i,n,a){e&&r.attr(e),i.symbolClip&&!n?t&&r.attr(t):t&&ga[n?"updateProps":"initProps"](r,t,i.animationModel,i.dataIndex,a)}function v0(r,e,t){var i=t.dataIndex,n=t.itemModel,a=n.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),f=a.get("focus"),h=a.get("blurScope"),c=a.get("scale");zp(r,function(d){if(d instanceof he){var g=d.style;d.useStyle(O({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else d.useStyle(t.style);var y=d.ensureState("emphasis");y.style=o,c&&(y.scaleX=d.scaleX*1.1,y.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=t.z2});var v=e.valueDim.posDesc[+(t.boundingLength>0)],p=r.__pictorialBarRect;p.ignoreClip=!0,Xr(p,$r(n),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:Fu(e.seriesModel.getData(),i),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:v}),_i(r,f,h,a.get("disabled"))}function c0(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var FB=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=bi(Bo.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Bo);function GB(r){r.registerChartView(RB),r.registerSeriesModel(FB),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,vt(ww,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,bw("pictorialBar"))}function HB(r,e,t,i){return r&&(r.legacy||r.legacy!==!1&&!t&&!i&&e!=="tspan"&&(e==="text"||tt(r,"text")))}function WB(r,e,t){var i=r,n,a,o;if(e==="text")o=i;else{o={},tt(i,"text")&&(o.text=i.text),tt(i,"rich")&&(o.rich=i.rich),tt(i,"textFill")&&(o.fill=i.textFill),tt(i,"textStroke")&&(o.stroke=i.textStroke),tt(i,"fontFamily")&&(o.fontFamily=i.fontFamily),tt(i,"fontSize")&&(o.fontSize=i.fontSize),tt(i,"fontStyle")&&(o.fontStyle=i.fontStyle),tt(i,"fontWeight")&&(o.fontWeight=i.fontWeight),a={type:"text",style:o,silent:!0},n={};var s=tt(i,"textPosition");n.position=s?i.textPosition:"inside",tt(i,"textPosition")&&(n.position=i.textPosition),tt(i,"textOffset")&&(n.offset=i.textOffset),tt(i,"textRotation")&&(n.rotation=i.textRotation),tt(i,"textDistance")&&(n.distance=i.textDistance)}return p0(o,r),b(o.rich,function(l){p0(l,l)}),{textConfig:n,textContent:a}}function p0(r,e){e&&(e.font=e.textFont||e.font,tt(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),tt(e,"textAlign")&&(r.align=e.textAlign),tt(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),tt(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),tt(e,"textWidth")&&(r.width=e.textWidth),tt(e,"textHeight")&&(r.height=e.textHeight),tt(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),tt(e,"textPadding")&&(r.padding=e.textPadding),tt(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),tt(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),tt(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),tt(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),tt(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),tt(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),tt(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}var Kb={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},d0=at(Kb);Fe(xr,function(r,e){return r[e]=1,r},{});xr.join(", ");var ql=["","style","shape","extra"],ua=_t();function Vp(r,e,t,i,n){var a=r+"Animation",o=Ec(r,i,n)||{},s=ua(e).userDuring;return o.duration>0&&(o.during=s?W(qB,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),O(o,t[a]),o}function yh(r,e,t,i){i=i||{};var n=i.dataIndex,a=i.isInit,o=i.clearStyle,s=t.isAnimationEnabled(),l=ua(r),u=e.style;l.userDuring=e.during;var f={},h={};if(jB(r,e,h),y0("shape",e,h),y0("extra",e,h),!a&&s&&(KB(r,e,f),g0("shape",r,e,f),g0("extra",r,e,f),JB(r,e,u,f)),h.style=u,YB(r,h,o),$B(r,e),s)if(a){var c={};b(ql,function(p){var d=p?e[p]:e;d&&d.enterFrom&&(p&&(c[p]=c[p]||{}),O(p?c[p]:c,d.enterFrom))});var v=Vp("enter",r,e,t,n);v.duration>0&&r.animateFrom(c,v)}else XB(r,e,n||0,t,f);jb(r,e),u?r.dirty():r.markRedraw()}function jb(r,e){for(var t=ua(r).leaveToProps,i=0;i<ql.length;i++){var n=ql[i],a=n?e[n]:e;a&&a.leaveTo&&(t||(t=ua(r).leaveToProps={}),n&&(t[n]=t[n]||{}),O(n?t[n]:t,a.leaveTo))}}function UB(r,e,t,i){if(r){var n=r.parent,a=ua(r).leaveToProps;if(a){var o=Vp("update",r,e,t,0);o.done=function(){n.remove(r)},r.animateTo(a,o)}else n.remove(r)}}function pn(r){return r==="all"}function YB(r,e,t){var i=e.style;if(!r.isGroup&&i){if(t){r.useStyle({});for(var n=r.animators,a=0;a<n.length;a++){var o=n[a];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(i)}e&&(e.style=null,e&&r.attr(e),e.style=i)}function XB(r,e,t,i,n){if(n){var a=Vp("update",r,e,i,t);a.duration>0&&r.animateFrom(n,a)}}function $B(r,e){tt(e,"silent")&&(r.silent=e.silent),tt(e,"ignore")&&(r.ignore=e.ignore),r instanceof Gr&&tt(e,"invisible")&&(r.invisible=e.invisible),r instanceof gt&&tt(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var hr={},ZB={setTransform:function(r,e){return hr.el[r]=e,this},getTransform:function(r){return hr.el[r]},setShape:function(r,e){var t=hr.el,i=t.shape||(t.shape={});return i[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=hr.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=hr.el,i=t.style;return i&&(i[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=hr.el.style;if(e)return e[r]},setExtra:function(r,e){var t=hr.el.extra||(hr.el.extra={});return t[r]=e,this},getExtra:function(r){var e=hr.el.extra;if(e)return e[r]}};function qB(){var r=this,e=r.el;if(e){var t=ua(e).userDuring,i=r.userDuring;if(t!==i){r.el=r.userDuring=null;return}hr.el=e,i(ZB)}}function g0(r,e,t,i){var n=t[r];if(n){var a=e[r],o;if(a){var s=t.transition,l=n.transition;if(l)if(!o&&(o=i[r]={}),pn(l))O(o,a);else for(var u=Ct(l),f=0;f<u.length;f++){var h=u[f],c=a[h];o[h]=c}else if(pn(s)||st(s,r)>=0){!o&&(o=i[r]={});for(var v=at(a),f=0;f<v.length;f++){var h=v[f],c=a[h];QB(n[h],c)&&(o[h]=c)}}}}}function y0(r,e,t){var i=e[r];if(i)for(var n=t[r]={},a=at(i),o=0;o<a.length;o++){var s=a[o];n[s]=so(i[s])}}function KB(r,e,t){for(var i=e.transition,n=pn(i)?xr:Ct(i||[]),a=0;a<n.length;a++){var o=n[a];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];t[o]=s}}}function jB(r,e,t){for(var i=0;i<d0.length;i++){var n=d0[i],a=Kb[n],o=e[n];o&&(t[a[0]]=o[0],t[a[1]]=o[1])}for(var i=0;i<xr.length;i++){var s=xr[i];e[s]!=null&&(t[s]=e[s])}}function JB(r,e,t,i){if(t){var n=r.style,a;if(n){var o=t.transition,s=e.transition;if(o&&!pn(o)){var l=Ct(o);!a&&(a=i.style={});for(var u=0;u<l.length;u++){var f=l[u],h=n[f];a[f]=h}}else if(r.getAnimationStyleProps&&(pn(s)||pn(o)||st(s,"style")>=0)){var c=r.getAnimationStyleProps(),v=c?c.style:null;if(v){!a&&(a=i.style={});for(var p=at(t),u=0;u<p.length;u++){var f=p[u];if(v[f]){var h=n[f];a[f]=h}}}}}}}function QB(r,e){return Qt(r)?r!==e:r!=null&&isFinite(r)}var Jb=_t(),t5=["percent","easing","shape","style","extra"];function e5(r){r.stopAnimation("keyframe"),r.attr(Jb(r))}function Wv(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(z(e)){b(e,function(s){Wv(r,s,t)});return}var i=e.keyframes,n=e.duration;if(t&&n==null){var a=Ec("enter",t,0);n=a&&a.duration}if(!(!i||!n)){var o=Jb(r);b(ql,function(s){if(!(s&&!r[s])){var l;i.sort(function(u,f){return u.percent-f.percent}),b(i,function(u){var f=r.animators,h=s?u[s]:u;if(h){var c=at(h);if(s||(c=bt(c,function(d){return st(t5,d)<0})),!!c.length){l||(l=r.animate(s,e.loop,!0),l.scope="keyframe");for(var v=0;v<f.length;v++)f[v]!==l&&f[v].targetName===l.targetName&&f[v].stopTracks(c);s&&(o[s]=o[s]||{});var p=s?o[s]:o;b(c,function(d){p[d]=((s?r[s]:r)||{})[d]}),l.whenWithKeys(n*u.percent,h,c,u.easing)}}}),l&&l.delay(e.delay||0).duration(n).start(e.easing)}})}}}var ji=_t(),m0=X,mh=W,Qb=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,i,n){var a=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=i,!(!n&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,t,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new nt,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),i.getZr().add(s);else{var c=vt(_0,t,h);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,t)}x0(s,t,!0),this._renderHandle(a)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var i=t.get("animation"),n=e.axis,a=n.type==="category",o=t.get("snap");if(!o&&!a)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(a&&n.getBandWidth()>s)return!0;if(o){var l=Ip(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},r.prototype.makeElOption=function(e,t,i,n,a){},r.prototype.createPointerEl=function(e,t,i,n){var a=t.pointer;if(a){var o=ji(e).pointerEl=new ga[a.type](m0(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,i,n){if(t.label){var a=ji(e).labelEl=new dt(m0(t.label));e.add(a),S0(a,n)}},r.prototype.updatePointerEl=function(e,t,i){var n=ji(e).pointerEl;n&&t.pointer&&(n.setStyle(t.pointer.style),i(n,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,i,n){var a=ji(e).labelEl;a&&(a.setStyle(t.label.style),i(a,{x:t.label.x,y:t.label.y}),S0(a,n))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=t.getModel("handle"),o=t.get("status");if(!a.get("show")||!o||o==="hide"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=pa(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Vr(u.event)},onmousedown:mh(this._onHandleDragMove,this,0,0),drift:mh(this._onHandleDragMove,this),ondragend:mh(this._onHandleDragEnd,this)}),i.add(n)),x0(n,t,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");z(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Jo(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){_0(this._axisPointerModel,!t&&this._moveAnimation,this._handle,_h(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(_h(i),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(_h(n)),ji(i).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),i=this._group,n=this._handle;t&&i&&(this._lastGraphicKey=null,i&&t.remove(i),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Ro(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,i){return i=i||0,{x:e[i],y:e[1-i],width:t[i],height:t[1-i]}},r}();function _0(r,e,t,i){tT(ji(t).lastProp,i)||(ji(t).lastProp=i,e?Lt(t,i,r):(t.stopAnimation(),t.attr(i)))}function tT(r,e){if(Y(r)&&Y(e)){var t=!0;return b(e,function(i,n){t=t&&tT(r[n],i)}),!!t}else return r===e}function S0(r,e){r[e.get(["label","show"])?"show":"hide"]()}function _h(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function x0(r,e,t){var i=e.get("z"),n=e.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=t)})}function eT(r){var e=r.get("type"),t=r.getModel(e+"Style"),i;return e==="line"?(i=t.getLineStyle(),i.fill=null):e==="shadow"&&(i=t.getAreaStyle(),i.stroke=null),i}function rT(r,e,t,i,n){var a=t.get("value"),o=iT(a,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=ma(s.get("padding")||0),u=s.getFont(),f=$o(o,u),h=n.position,c=f.width+l[1]+l[3],v=f.height+l[0]+l[2],p=n.align;p==="right"&&(h[0]-=c),p==="center"&&(h[0]-=c/2);var d=n.verticalAlign;d==="bottom"&&(h[1]-=v),d==="middle"&&(h[1]-=v/2),r5(h,c,v,i);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:kt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function r5(r,e,t,i){var n=i.getWidth(),a=i.getHeight();r[0]=Math.min(r[0]+e,n)-e,r[1]=Math.min(r[1]+t,a)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function iT(r,e,t,i,n){r=e.scale.parse(r);var a=e.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:wp(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};b(i,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),F(o)?a=o.replace("{value}",a):K(o)&&(a=o(s))}return a}function nT(r,e,t){var i=be();return wi(i,i,t.rotation),Fr(i,i,t.position),er([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],i)}function i5(r,e,t,i,n,a){var o=_e.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=n.get(["label","margin"]),rT(e,i,n,a,{position:nT(i.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function aT(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function n5(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function w0(r,e,t,i,n,a){return{cx:r,cy:e,r0:t,r:i,startAngle:n,endAngle:a,clockwise:!0}}var a5=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,n,a,o){var s=n.axis,l=s.grid,u=a.get("type"),f=b0(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var c=eT(a),v=o5[u](s,h,f);v.style=c,t.graphicKey=v.type,t.pointer=v}var p=Lv(l.model,n);i5(i,t,p,n,a,o)},e.prototype.getHandleTransform=function(t,i,n){var a=Lv(i.axis.grid.model,i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=nT(i.axis,t,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,i,n,a){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=b0(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[t.x,t.y];h[f]+=i[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var c=(u[1]+u[0])/2,v=[c,c];v[f]=h[f];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:v,tooltipOption:p[f]}},e}(Qb);function b0(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var o5={line:function(r,e,t){var i=aT([e,t[0]],[e,t[1]],T0(r));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(r,e,t){var i=Math.max(1,r.getBandWidth()),n=t[1]-t[0];return{type:"Rect",shape:n5([e-i/2,t[0]],[i,n],T0(r))}}};function T0(r){return r.dim==="x"?0:1}var s5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.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}},e}(ft),Br=_t(),l5=b;function oT(r,e,t){if(!ht.node){var i=e.getZr();Br(i).records||(Br(i).records={}),u5(i,e);var n=Br(i).records[r]||(Br(i).records[r]={});n.handler=t}}function u5(r,e){if(Br(r).initialized)return;Br(r).initialized=!0,t("click",vt(C0,"click")),t("mousemove",vt(C0,"mousemove")),t("globalout",h5);function t(i,n){r.on(i,function(a){var o=v5(e);l5(Br(r).records,function(s){s&&n(s,a,o.dispatchAction)}),f5(o.pendings,e)})}}function f5(r,e){var t=r.showTip.length,i=r.hideTip.length,n;t?n=r.showTip[t-1]:i&&(n=r.hideTip[i-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function h5(r,e,t){r.handler("leave",null,t)}function C0(r,e,t,i){e.handler(r,t,i)}function v5(r){var e={showTip:[],hideTip:[]},t=function(i){var n=e[i.type];n?n.push(i):(i.dispatchAction=t,r.dispatchAction(i))};return{dispatchAction:t,pendings:e}}function Uv(r,e){if(!ht.node){var t=e.getZr(),i=(Br(t).records||{})[r];i&&(Br(t).records[r]=null)}}var c5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n){var a=i.getComponent("tooltip"),o=t.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";oT("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,i){Uv("axisPointer",i)},e.prototype.dispose=function(t,i){Uv("axisPointer",i)},e.type="axisPointer",e}(At);function sT(r,e){var t=[],i=r.seriesIndex,n;if(i==null||!(n=e.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=gn(a,r);if(o==null||o<0||z(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)t=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,c=u.dim,v=h==="x"||h==="radius"?1:0,p=a.mapDimension(c),d=[];d[v]=a.get(p,o),d[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(d)||[]}else t=l.dataToPoint(a.getValues(V(l.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var A0=_t();function p5(r,e,t){var i=r.currTrigger,n=[r.x,r.y],a=r,o=r.dispatchAction||W(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){vl(n)&&(n=sT({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=vl(n),u=a.axesInfo,f=s.axesInfo,h=i==="leave"||vl(n),c={},v={},p={list:[],map:{}},d={showPointer:vt(g5,v),showTooltip:vt(y5,p)};b(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);b(s.coordSysAxesInfo[m],function(S,w){var x=S.axis,T=x5(u,S);if(!h&&_&&(!u||T)){var C=T&&T.value;C==null&&!l&&(C=x.pointToData(n)),C!=null&&M0(S,C,d,!1,c)}})});var g={};return b(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&b(_.axesInfo,function(S,w){var x=v[w];if(S!==y&&x){var T=x.value;_.mapper&&(T=y.axis.scale.parse(_.mapper(T,D0(S),D0(y)))),g[y.key]=T}})}),b(g,function(y,m){M0(f[m],y,d,!0,c)}),m5(v,f,c),_5(p,n,r,o),S5(f,o,t),c}}function M0(r,e,t,i,n){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=d5(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&O(n,s[0]),!i&&r.snap&&a.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function d5(r,e){var t=e.axis,i=t.dim,n=r,a=[],o=Number.MAX_VALUE,s=-1;return b(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),h,c;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,t);c=v.dataIndices,h=v.nestestValue}else{if(c=l.getData().indicesOfNearest(f[0],r,t.type==="category"?.5:null),!c.length)return;h=l.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var p=r-h,d=Math.abs(p);d<=o&&((d<o||p>=0&&s<0)&&(o=d,s=p,n=h,a.length=0),b(c,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:n}}function g5(r,e,t,i){r[e.key]={value:t,payloadBatch:i}}function y5(r,e,t,i){var n=t.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=zo(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function m5(r,e,t){var i=t.axesInfo=[];b(e,function(n,a){var o=n.axisPointerModel.option,s=r[a];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function _5(r,e,t,i){if(vl(e)||!r.list.length){i({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function S5(r,e,t){var i=t.getZr(),n="axisPointerLastHighlights",a=A0(i)[n]||{},o=A0(i)[n]={};b(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&b(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],l=[];b(a,function(u,f){!o[f]&&l.push(u)}),b(o,function(u,f){!a[f]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function x5(r,e){for(var t=0;t<(r||[]).length;t++){var i=r[t];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function D0(r){var e=r.axis.model,t={},i=t.axisDim=r.axis.dim;return t.axisIndex=t[i+"AxisIndex"]=e.componentIndex,t.axisName=t[i+"AxisName"]=e.name,t.axisId=t[i+"AxisId"]=e.id,t}function vl(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Fp(r){es.registerAxisPointerClass("CartesianAxisPointer",a5),r.registerComponentModel(s5),r.registerComponentView(c5),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!z(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=Mk(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},p5)}function w5(r){Ft(vb),Ft(Fp)}var b5=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,n,a,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),h=s.dataToCoord(i),c=a.get("type");if(c&&c!=="none"){var v=eT(a),p=C5[c](s,l,h,f);p.style=v,t.graphicKey=p.type,t.pointer=p}var d=a.get(["label","margin"]),g=T5(i,n,a,l,d);rT(t,n,a,o,g)},e}(Qb);function T5(r,e,t,i,n){var a=e.axis,o=a.dataToCoord(r),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=i.getRadiusAxis().getExtent(),u,f,h;if(a.dim==="radius"){var c=be();wi(c,c,s),Fr(c,c,[i.cx,i.cy]),u=er([o,-n],c);var v=e.getModel("axisLabel").get("rotate")||0,p=_e.innerTextLayout(s,v*Math.PI/180,-1);f=p.textAlign,h=p.textVerticalAlign}else{var d=l[1];u=i.coordToPoint([d+n,o]);var g=i.cx,y=i.cy;f=Math.abs(u[0]-g)/d<.3?"center":u[0]>g?"left":"right",h=Math.abs(u[1]-y)/d<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:h}}var C5={line:function(r,e,t,i){return r.dim==="angle"?{type:"Line",shape:aT(e.coordToPoint([i[0],t]),e.coordToPoint([i[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,i){var n=Math.max(1,r.getBandWidth()),a=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:w0(e.cx,e.cy,i[0],i[1],(-t-n/2)*a,(-t+n/2)*a)}:{type:"Sector",shape:w0(e.cx,e.cy,t-n/2,t+n/2,0,Math.PI*2)}}},A5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var i,n=this.ecModel;return n.eachComponent(t,function(a){a.getCoordSysModel()===this&&(i=a)},this),i},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(ft),Gp=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Ot).models[0]},e.type="polarAxis",e}(ft);Xt(Gp,ts);var M5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(Gp),D5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(Gp),Hp=function(r){E(e,r);function e(t,i){return r.call(this,"radius",t,i)||this}return e.prototype.pointToData=function(t,i){return this.polar.pointToData(t,i)[this.dim==="radius"?0:1]},e}(or);Hp.prototype.dataToRadius=or.prototype.dataToCoord;Hp.prototype.radiusToData=or.prototype.coordToData;var I5=_t(),Wp=function(r){E(e,r);function e(t,i){return r.call(this,"angle",t,i||[0,360])||this}return e.prototype.pointToData=function(t,i){return this.polar.pointToData(t,i)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,i=t.getLabelModel(),n=t.scale,a=n.getExtent(),o=n.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),f=$o(s==null?"":s+"",i.getFont(),"center","top"),h=Math.max(f.height,7),c=h/u;isNaN(c)&&(c=1/0);var v=Math.max(0,Math.floor(c)),p=I5(t.model),d=p.lastAutoInterval,g=p.lastTickCount;return d!=null&&g!=null&&Math.abs(d-v)<=1&&Math.abs(g-o)<=1&&d>v?v=d:(p.lastTickCount=o,p.lastAutoInterval=v),v},e}(or);Wp.prototype.dataToAngle=or.prototype.dataToCoord;Wp.prototype.angleToData=or.prototype.coordToData;var lT=["radius","angle"],P5=function(){function r(e){this.dimensions=lT,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Hp,this._angleAxis=new Wp,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],i=this._angleAxis,n=this._radiusAxis;return i.scale.type===e&&t.push(i),n.scale.type===e&&t.push(n),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},r.prototype.pointToData=function(e,t){var i=this.pointToCoord(e);return[this._radiusAxis.radiusToData(i[0],t),this._angleAxis.angleToData(i[1],t)]},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,i=e[1]-this.cy,n=this.getAngleAxis(),a=n.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+i*i);t/=l,i/=l;for(var u=Math.atan2(-i,t)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(e){var t=e[0],i=e[1]/180*Math.PI,n=Math.cos(i)*t+this.cx,a=-Math.sin(i)*t+this.cy;return[n,a]},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),i=t.getExtent().slice();i[0]>i[1]&&i.reverse();var n=e.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:i[0],r:i[1],startAngle:-n[0]*a,endAngle:-n[1]*a,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,f=l*l+u*u-1e-4,h=this.r,c=this.r0;return f<=h*h&&f>=c*c}}},r.prototype.convertToPixel=function(e,t,i){var n=I0(t);return n===this?this.dataToPoint(i):null},r.prototype.convertFromPixel=function(e,t,i){var n=I0(t);return n===this?this.pointToData(i):null},r}();function I0(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const L5=P5;function R5(r,e,t){var i=e.get("center"),n=t.getWidth(),a=t.getHeight();r.cx=Q(i[0],n),r.cy=Q(i[1],a);var o=r.getRadiusAxis(),s=Math.min(n,a)/2,l=e.get("radius");l==null?l=[0,"100%"]:z(l)||(l=[0,l]);var u=[Q(l[0],s),Q(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function E5(r,e){var t=this,i=t.getAngleAxis(),n=t.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();b(Ul(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),b(Ul(l,"angle"),function(u){i.scale.unionExtentFromData(l,u)})}}),sa(i.scale,i.model),sa(n.scale,n.model),i.type==="category"&&!i.onBand){var a=i.getExtent(),o=360/i.scale.count();i.inverse?a[1]+=o:a[1]-=o,i.setExtent(a[0],a[1])}}function k5(r){return r.mainType==="angleAxis"}function P0(r,e){var t;if(r.type=e.get("type"),r.scale=Vu(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),k5(e)){r.inverse=r.inverse!==e.get("clockwise");var i=e.get("startAngle"),n=(t=e.get("endAngle"))!==null&&t!==void 0?t:i+(r.inverse?-360:360);r.setExtent(i,n)}e.axis=r,r.model=e}var O5={dimensions:lT,create:function(r,e){var t=[];return r.eachComponent("polar",function(i,n){var a=new L5(n+"");a.update=E5;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=i.findAxisModel("radiusAxis"),u=i.findAxisModel("angleAxis");P0(o,l),P0(s,u),R5(a,i,e),t.push(a),i.coordinateSystem=a,a.model=i}),r.eachSeries(function(i){if(i.get("coordinateSystem")==="polar"){var n=i.getReferringComponents("polar",Ot).models[0];i.coordinateSystem=n.coordinateSystem}}),t}},B5=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function $s(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var i=r.coordToPoint([e[0],t]),n=r.coordToPoint([e[1],t]);return{x1:i[0],y1:i[1],x2:n[0],y2:n[1]}}function Zs(r){var e=r.getRadiusAxis();return e.inverse?0:1}function L0(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var N5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,i){if(this.group.removeAll(),!!t.get("show")){var n=t.axis,a=n.polar,o=a.getRadiusAxis().getExtent(),s=n.getTicksCoords(),l=n.getMinorTicksCoords(),u=V(n.getViewLabels(),function(f){f=X(f);var h=n.scale,c=h.type==="ordinal"?h.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=n.dataToCoord(c),f});L0(u),L0(s),b(B5,function(f){t.get([f,"show"])&&(!n.scale.isBlank()||f==="axisLine")&&z5[f](this.group,t,a,s,l,o,u)},this)}},e.type="angleAxis",e}(es),z5={axisLine:function(r,e,t,i,n,a){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=Zs(t),h=f?0:1,c,v=Math.abs(u[1]-u[0])===360?"Circle":"Arc";a[h]===0?c=new ga[v]({shape:{cx:t.cx,cy:t.cy,r:a[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):c=new qo({shape:{cx:t.cx,cy:t.cy,r:a[f],r0:a[h]},style:o.getLineStyle(),z2:1,silent:!0}),c.style.fill=null,r.add(c)},axisTick:function(r,e,t,i,n,a){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[Zs(t)],u=V(i,function(f){return new ae({shape:$s(t,[l,l+s],f.coord)})});r.add(Ne(u,{style:q(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,i,n,a){if(n.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[Zs(t)],f=[],h=0;h<n.length;h++)for(var c=0;c<n[h].length;c++)f.push(new ae({shape:$s(t,[u,u+l],n[h][c].coord)}));r.add(Ne(f,{style:q(s.getModel("lineStyle").getLineStyle(),q(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,e,t,i,n,a,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),f=e.get("triggerEvent");b(o,function(h,c){var v=l,p=h.tickValue,d=a[Zs(t)],g=t.coordToPoint([d+u,h.coord]),y=t.cx,m=t.cy,_=Math.abs(g[0]-y)/d<.3?"center":g[0]>y?"left":"right",S=Math.abs(g[1]-m)/d<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var w=s[p];Y(w)&&w.textStyle&&(v=new Tt(w.textStyle,l,l.ecModel))}var x=new dt({silent:_e.isLabelSilent(e),style:kt(v,{x:g[0],y:g[1],fill:v.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:_,verticalAlign:S})});if(r.add(x),f){var T=_e.makeAxisEventDataBase(e);T.targetType="axisLabel",T.value=h.rawLabel,it(x).eventData=T}},this)},splitLine:function(r,e,t,i,n,a){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=0;h<i.length;h++){var c=u++%l.length;f[c]=f[c]||[],f[c].push(new ae({shape:$s(t,a,i[h].coord)}))}for(var h=0;h<f.length;h++)r.add(Ne(f[h],{style:q({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(r,e,t,i,n,a){if(n.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<n.length;u++)for(var f=0;f<n[u].length;f++)l.push(new ae({shape:$s(t,a,n[u][f].coord)}));r.add(Ne(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(r,e,t,i,n,a){if(i.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=Math.PI/180,c=-i[0].coord*h,v=Math.min(a[0],a[1]),p=Math.max(a[0],a[1]),d=e.get("clockwise"),g=1,y=i.length;g<=y;g++){var m=g===y?i[0].coord:i[g].coord,_=u++%l.length;f[_]=f[_]||[],f[_].push(new br({shape:{cx:t.cx,cy:t.cy,r0:v,r:p,startAngle:c,endAngle:-m*h,clockwise:d},silent:!0})),c=-m*h}for(var g=0;g<f.length;g++)r.add(Ne(f[g],{style:q({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}},V5=["axisLine","axisTickLabel","axisName"],F5=["splitLine","splitArea","minorSplitLine"],G5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,i){if(this.group.removeAll(),!!t.get("show")){var n=this._axisGroup,a=this._axisGroup=new nt;this.group.add(a);var o=t.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),f=o.getMinorTicksCoords(),h=l.getExtent()[0],c=o.getExtent(),v=W5(s,t,h),p=new _e(t,v);b(V5,p.add,p),a.add(p.getGroup()),mu(n,a,t),b(F5,function(d){t.get([d,"show"])&&!o.scale.isBlank()&&H5[d](this.group,t,s,h,c,u,f)},this)}},e.type="radiusAxis",e}(es),H5={splitLine:function(r,e,t,i,n,a){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,f=t.getAngleAxis(),h=Math.PI/180,c=f.getExtent(),v=Math.abs(c[1]-c[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var p=[],d=0;d<a.length;d++){var g=u++%l.length;p[g]=p[g]||[],p[g].push(new ga[v]({shape:{cx:t.cx,cy:t.cy,r:Math.max(a[d].coord,0),startAngle:-c[0]*h,endAngle:-c[1]*h,clockwise:f.inverse}}))}for(var d=0;d<p.length;d++)r.add(Ne(p[d],{style:q({stroke:l[d%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,e,t,i,n,a,o){if(o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var h=0;h<o[f].length;h++)u.push(new Yr({shape:{cx:t.cx,cy:t.cy,r:o[f][h].coord}}));r.add(Ne(u,{style:q({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,e,t,i,n,a){if(a.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=a[0].coord,c=1;c<a.length;c++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new br({shape:{cx:t.cx,cy:t.cy,r0:h,r:a[c].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),h=a[c].coord}for(var c=0;c<f.length;c++)r.add(Ne(f[c],{style:q({fill:l[c%l.length]},s.getAreaStyle()),silent:!0}))}}};function W5(r,e,t){return{position:[r.cx,r.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}function uT(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function fT(r,e){return e.dim+r.model.componentIndex}function U5(r,e,t){var i={},n=Y5(bt(e.getSeriesByType(r),function(a){return!e.isSeriesFiltered(a)&&a.coordinateSystem&&a.coordinateSystem.type==="polar"}));e.eachSeriesByType(r,function(a){if(a.coordinateSystem.type==="polar"){var o=a.getData(),s=a.coordinateSystem,l=s.getBaseAxis(),u=fT(s,l),f=uT(a),h=n[u][f],c=h.offset,v=h.width,p=s.getOtherAxis(l),d=a.coordinateSystem.cx,g=a.coordinateSystem.cy,y=a.get("barMinHeight")||0,m=a.get("barMinAngle")||0;i[f]=i[f]||[];for(var _=o.mapDimension(p.dim),S=o.mapDimension(l.dim),w=xi(o,_),x=l.dim!=="radius"||!a.get("roundCap",!0),T=p.model,C=T.get("startValue"),A=p.dataToCoord(C||0),M=0,D=o.count();M<D;M++){var I=o.get(_,M),P=o.get(S,M),L=I>=0?"p":"n",R=A;w&&(i[f][P]||(i[f][P]={p:A,n:A}),R=i[f][P][L]);var k=void 0,G=void 0,B=void 0,N=void 0;if(p.dim==="radius"){var H=p.dataToCoord(I)-A,Z=l.dataToCoord(P);Math.abs(H)<y&&(H=(H<0?-1:1)*y),k=R,G=R+H,B=Z-c,N=B-v,w&&(i[f][P][L]=G)}else{var $=p.dataToCoord(I,x)-A,ot=l.dataToCoord(P);Math.abs($)<m&&($=($<0?-1:1)*m),k=ot+c,G=k+v,B=R,N=R+$,w&&(i[f][P][L]=N)}o.setItemLayout(M,{cx:d,cy:g,r0:k,r:G,startAngle:-B*Math.PI/180,endAngle:-N*Math.PI/180,clockwise:B>=N})}}})}function Y5(r){var e={};b(r,function(i,n){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=fT(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),h=e[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=h.stacks;e[l]=h;var v=uT(i);c[v]||h.autoWidthCount++,c[v]=c[v]||{width:0,maxWidth:0};var p=Q(i.get("barWidth"),f),d=Q(i.get("barMaxWidth"),f),g=i.get("barGap"),y=i.get("barCategoryGap");p&&!c[v].width&&(p=Math.min(h.remainedWidth,p),c[v].width=p,h.remainedWidth-=p),d&&(c[v].maxWidth=d),g!=null&&(h.gap=g),y!=null&&(h.categoryGap=y)});var t={};return b(e,function(i,n){t[n]={};var a=i.stacks,o=i.bandWidth,s=Q(i.categoryGap,o),l=Q(i.gap,1),u=i.remainedWidth,f=i.autoWidthCount,h=(u-s)/(f+(f-1)*l);h=Math.max(h,0),b(a,function(d,g){var y=d.maxWidth;y&&y<h&&(y=Math.min(y,u),d.width&&(y=Math.min(y,d.width)),u-=y,d.width=y,f--)}),h=(u-s)/(f+(f-1)*l),h=Math.max(h,0);var c=0,v;b(a,function(d,g){d.width||(d.width=h),v=d,c+=d.width*(1+l)}),v&&(c-=v.width*l);var p=-c/2;b(a,function(d,g){t[n][g]=t[n][g]||{offset:p,width:d.width},p+=d.width*(1+l)})}),t}var X5={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},$5={splitNumber:5},Z5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e}(At);function q5(r){Ft(Fp),es.registerAxisPointerClass("PolarAxisPointer",b5),r.registerCoordinateSystem("polar",O5),r.registerComponentModel(A5),r.registerComponentView(Z5),No(r,"angle",M5,X5),No(r,"radius",D5,$5),r.registerComponentView(N5),r.registerComponentView(G5),r.registerLayout(vt(U5,"bar"))}var K5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i,n){var a=_a(t);r.prototype.init.apply(this,arguments),R0(t,a)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),R0(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(ft);function R0(r,e){var t=r.cellSize,i;z(t)?i=t:i=r.cellSize=[t,t],i.length===1&&(i[1]=i[0]);var n=V([0,1],function(a){return Y2(e,a)&&(i[a]="auto"),i[a]!=null&&i[a]!=="auto"});Si(r,e,{type:"box",ignoreSize:n})}var j5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n){var a=this.group;a.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=i.getLocaleModel();this._renderDayRect(t,s,a),this._renderLines(t,s,l,a),this._renderYearText(t,s,l,a),this._renderMonthText(t,u,l,a),this._renderWeekText(t,u,s,l,a)},e.prototype._renderDayRect=function(t,i,n){for(var a=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=i.start.time;u<=i.end.time;u=a.getNextNDay(u,1).time){var f=a.dataToRect([u],!1).tl,h=new pt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});n.add(h)}},e.prototype._renderLines=function(t,i,n,a){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=i.start,c=0;h.time<=i.end.time;c++){p(h.formatedDate),c===0&&(h=s.getDateInfo(i.start.y+"-"+i.start.m));var v=h.date;v.setMonth(v.getMonth()+1),h=s.getDateInfo(v)}p(s.getNextNDay(i.end.time,1).formatedDate);function p(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToRect([d],!1).tl);var g=o._getLinePointsOfOneWeek(t,d,n);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,n),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,n),l,a)},e.prototype._getEdgesPoints=function(t,i,n){var a=[t[0].slice(),t[t.length-1].slice()],o=n==="horizontal"?0:1;return a[0][o]=a[0][o]-i/2,a[1][o]=a[1][o]+i/2,a},e.prototype._drawSplitline=function(t,i,n){var a=new He({z2:20,shape:{points:t},style:i});n.add(a)},e.prototype._getLinePointsOfOneWeek=function(t,i,n){for(var a=t.coordinateSystem,o=a.getDateInfo(i),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),f=a.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[n==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,i){return F(t)&&t?H2(t,i):K(t)?t(i):i.nameMap},e.prototype._yearTextPositionControl=function(t,i,n,a,o){var s=i[0],l=i[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(a==="left"||a==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,i,n,a){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,c=n==="horizontal"?0:1,v={top:[f,u[c][1]],bottom:[f,u[1-c][1]],left:[u[1-c][0],h],right:[u[c][0],h]},p=i.start.y;+i.end.y>+i.start.y&&(p=p+"-"+i.end.y);var d=o.get("formatter"),g={start:i.start.y,end:i.end.y,nameMap:p},y=this._formatterLabel(d,g),m=new dt({z2:30,style:kt(o,{text:y})});m.attr(this._yearTextPositionControl(m,v[l],n,l,s)),a.add(m)}},e.prototype._monthTextPositionControl=function(t,i,n,a,o){var s="left",l="top",u=t[0],f=t[1];return n==="horizontal"?(f=f+o,i&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,i&&(l="middle"),a==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,i,n,a){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),h=[this._tlpoints,this._blpoints];(!s||F(s))&&(s&&(i=vv(s)||i),s=i.get(["time","monthAbbr"])||[]);var c=u==="start"?0:1,v=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=f==="center",d=0;d<h[c].length-1;d++){var g=h[c][d].slice(),y=this._firstDayOfMonth[d];if(p){var m=this._firstDayPoints[d];g[v]=(m[v]+h[0][d+1][v])/2}var _=o.get("formatter"),S=s[+y.m-1],w={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:S},x=this._formatterLabel(_,w),T=new dt({z2:30,style:O(kt(o,{text:x}),this._monthTextPositionControl(g,p,n,u,l))});a.add(T)}}},e.prototype._weekTextPositionControl=function(t,i,n,a,o){var s="center",l="middle",u=t[0],f=t[1],h=n==="start";return i==="horizontal"?(u=u+a+(h?1:-1)*o[0]/2,s=h?"right":"left"):(f=f+a+(h?1:-1)*o[1]/2,l=h?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,i,n,a,o){var s=t.getModel("dayLabel");if(s.get("show")){var l=t.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),h=s.get("margin"),c=l.getFirstDayOfWeek();if(!f||F(f)){f&&(i=vv(f)||i);var v=i.get(["time","dayOfWeekShort"]);f=v||V(i.get(["time","dayOfWeekAbbr"]),function(w){return w[0]})}var p=l.getNextNDay(n.end.time,7-n.lweek).time,d=[l.getCellWidth(),l.getCellHeight()];h=Q(h,Math.min(d[1],d[0])),u==="start"&&(p=l.getNextNDay(n.start.time,-(7+n.fweek)).time,h=-h);for(var g=0;g<7;g++){var y=l.getNextNDay(p,g),m=l.dataToRect([y.time],!1).center,_=g;_=Math.abs((g+c)%7);var S=new dt({z2:30,style:O(kt(s,{text:f[_]}),this._weekTextPositionControl(m,a,u,h,d))});o.add(S)}}},e.type="calendar",e}(At),Sh=864e5,J5=function(){function r(e,t,i){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=e}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(e){e=Ce(e);var t=e.getFullYear(),i=e.getMonth()+1,n=i<10?"0"+i:""+i,a=e.getDate(),o=a<10?"0"+a:""+a,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:n,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+n+"-"+o,date:e}},r.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},r.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var i=this._rangeInfo.weeks||1,n=["width","height"],a=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[i,7]:[7,i];b([0,1],function(h){f(a,h)&&(o[n[h]]=a[h]*s[h])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=fe(o,l);b([0,1],function(h){f(a,h)||(a[h]=u[n[h]]/s[h])});function f(h,c){return h[c]!=null&&h[c]!=="auto"}this._sw=a[0],this._sh=a[1]},r.prototype.dataToPoint=function(e,t){z(e)&&(e=e[0]),t==null&&(t=!0);var i=this.getDateInfo(e),n=this._rangeInfo,a=i.formatedDate;if(t&&!(i.time>=n.start.time&&i.time<n.end.time+Sh))return[NaN,NaN];var o=i.day,s=this._getRangeInfo([n.start.time,a]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},r.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},r.prototype.dataToRect=function(e,t){var i=this.dataToPoint(e,t);return{contentShape:{x:i[0]-(this._sw-this._lineWidth)/2,y:i[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},r.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,i=Math.floor((e[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(i,t-1,n):this._getDateByWeeksAndDay(t,i-1,n)},r.prototype.convertToPixel=function(e,t,i){var n=E0(t);return n===this?n.dataToPoint(i):null},r.prototype.convertFromPixel=function(e,t,i){var n=E0(t);return n===this?n.pointToData(i):null},r.prototype.containPoint=function(e){return!1},r.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(z(e)&&e.length===1&&(e=e[0]),z(e))t=e;else{var i=e.toString();if(/^\d{4}$/.test(i)&&(t=[i+"-01-01",i+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(i)){var n=this.getDateInfo(i),a=n.date;a.setMonth(a.getMonth()+1);var o=this.getNextNDay(a,-1);t=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(i)&&(t=[i,i])}if(!t)return e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],i;t[0].time>t[1].time&&(i=!0,t.reverse());var n=Math.floor(t[1].time/Sh)-Math.floor(t[0].time/Sh)+1,a=new Date(t[0].time),o=a.getDate(),s=t[1].date.getDate();a.setDate(o+n-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-t[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-t[1].time)*u>0;)n-=u,a.setDate(l-u);var f=Math.floor((n+t[0].day+6)/7),h=i?-f+1:f-1;return i&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:f,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,i){var n=this._getRangeInfo(i);if(e>n.weeks||e===0&&t<n.fweek||e===n.weeks&&t>n.lweek)return null;var a=(e-1)*7-n.fweek+t,o=new Date(n.start.time);return o.setDate(+n.start.d+a),this.getDateInfo(o)},r.create=function(e,t){var i=[];return e.eachComponent("calendar",function(n){var a=new r(n);i.push(a),n.coordinateSystem=a}),e.eachSeries(function(n){n.get("coordinateSystem")==="calendar"&&(n.coordinateSystem=i[n.get("calendarIndex")||0])}),i},r.dimensions=["time","value"],r}();function E0(r){var e=r.calendarModel,t=r.seriesModel,i=e?e.coordinateSystem:t?t.coordinateSystem:null;return i}function Q5(r){r.registerComponentModel(K5),r.registerComponentView(j5),r.registerCoordinateSystem("calendar",J5)}function tN(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var i=e.parentOption;i?e.parentId=i.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function k0(r,e){var t;return b(e,function(i){r[i]!=null&&r[i]!=="auto"&&(t=!0)}),t}function eN(r,e,t){var i=O({},t),n=r[e],a=t.$action||"merge";a==="merge"?n?(et(n,i,!0),Si(n,i,{ignoreSize:!0}),jS(t,n),qs(t,n),qs(t,n,"shape"),qs(t,n,"style"),qs(t,n,"extra"),t.clipPath=n.clipPath):r[e]=i:a==="replace"?r[e]=i:a==="remove"&&n&&(r[e]=null)}var hT=["transition","enterFrom","leaveTo"],rN=hT.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function qs(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var i=t?hT:rN,n=0;n<i.length;n++){var a=i[n];r[a]==null&&e[a]!=null&&(r[a]=e[a])}}function iN(r,e){if(r&&(r.hv=e.hv=[k0(e,["left","right"]),k0(e,["top","bottom"])],r.type==="group")){var t=r,i=e;t.width==null&&(t.width=i.width=0),t.height==null&&(t.height=i.height=0)}}var nN=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,i){var n=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,t,i),this.option.elements=n},e.prototype.optionUpdated=function(t,i){var n=this.option,a=(i?n:t).elements,o=n.elements=i?[]:n.elements,s=[];this._flatten(a,s,null);var l=G1(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];b(l,function(f,h){var c=f.newOption;c&&(u.push(c),tN(f,c),eN(o,h,c),iN(o[h],c))},this),n.elements=bt(o,function(f){return f&&delete f.$action,f!=null})},e.prototype._flatten=function(t,i,n){b(t,function(a){if(a){n&&(a.parentOption=n),i.push(a);var o=a.children;o&&o.length&&this._flatten(o,i,a),delete a.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(ft),O0={path:null,compoundPath:null,group:nt,image:he,text:dt},Ee=_t(),aN=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=U()},e.prototype.render=function(t,i,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var i=t.useElOptionsToUpdate();if(i){var n=this._elMap,a=this.group,o=t.get("z"),s=t.get("zlevel");b(i,function(l){var u=jt(l.id,null),f=u!=null?n.get(u):null,h=jt(l.parentId,null),c=h!=null?n.get(h):a,v=l.type,p=l.style;v==="text"&&p&&l.hv&&l.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var d=l.textContent,g=l.textConfig;if(p&&HB(p,v,!!g,!!d)){var y=WB(p,v);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!d&&y.textContent&&(d=y.textContent)}var m=oN(l),_=l.$action||"merge",S=_==="merge",w=_==="replace";if(S){var x=!f,T=f;x?T=B0(u,c,l.type,n):(T&&(Ee(T).isNew=!1),e5(T)),T&&(yh(T,m,t,{isInit:x}),N0(T,l,o,s))}else if(w){cl(f,l,n,t);var C=B0(u,c,l.type,n);C&&(yh(C,m,t,{isInit:!0}),N0(C,l,o,s))}else _==="remove"&&(jb(f,l),cl(f,l,n,t));var A=n.get(u);if(A&&d)if(S){var M=A.getTextContent();M?M.attr(d):A.setTextContent(new dt(d))}else w&&A.setTextContent(new dt(d));if(A){var D=l.clipPath;if(D){var I=D.type,P=void 0,x=!1;if(S){var L=A.getClipPath();x=!L||Ee(L).type!==I,P=x?Yv(I):L}else w&&(x=!0,P=Yv(I));A.setClipPath(P),yh(P,D,t,{isInit:x}),Wv(P,D.keyframeAnimation,t)}var R=Ee(A);A.setTextConfig(g),R.option=l,sN(A,t,l),da({el:A,componentModel:t,itemName:A.name,itemTooltipOption:l.tooltip}),Wv(A,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,i){for(var n=t.option.elements,a=this.group,o=this._elMap,s=i.getWidth(),l=i.getHeight(),u=["x","y"],f=0;f<n.length;f++){var h=n[f],c=jt(h.id,null),v=c!=null?o.get(c):null;if(!(!v||!v.isGroup)){var p=v.parent,d=p===a,g=Ee(v),y=Ee(p);g.width=Q(g.option.width,d?s:y.width)||0,g.height=Q(g.option.height,d?l:y.height)||0}}for(var f=n.length-1;f>=0;f--){var h=n[f],c=jt(h.id,null),v=c!=null?o.get(c):null;if(v){var p=v.parent,y=Ee(p),m=p===a?{width:s,height:l}:{width:y.width,height:y.height},_={},S=qc(v,h,m,null,{hv:h.hv,boundingMode:h.bounding},_);if(!Ee(v).isNew&&S){for(var w=h.transition,x={},T=0;T<u.length;T++){var C=u[T],A=_[C];w&&(pn(w)||st(w,C)>=0)?x[C]=A:v[C]=A}Lt(v,x,t,0)}else v.attr(_)}}},e.prototype._clear=function(){var t=this,i=this._elMap;i.each(function(n){cl(n,Ee(n).option,i,t._lastGraphicModel)}),this._elMap=U()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(At);function Yv(r){var e=tt(O0,r)?O0[r]:Oc(r),t=new e({});return Ee(t).type=r,t}function B0(r,e,t,i){var n=Yv(t);return e.add(n),i.set(r,n),Ee(n).id=r,Ee(n).isNew=!0,n}function cl(r,e,t,i){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(a){cl(a,e,t,i)}),UB(r,e,i),t.removeKey(Ee(r).id))}function N0(r,e,t,i){r.isGroup||b([["cursor",Gr.prototype.cursor],["zlevel",i||0],["z",t||0],["z2",0]],function(n){var a=n[0];tt(e,a)?r[a]=J(e[a],n[1]):r[a]==null&&(r[a]=n[1])}),b(at(e),function(n){if(n.indexOf("on")===0){var a=e[n];r[n]=K(a)?a:null}}),tt(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function oN(r){return r=O({},r),b(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(KS),function(e){delete r[e]}),r}function sN(r,e,t){var i=it(r).eventData;!r.silent&&!r.ignore&&!i&&(i=it(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),i&&(i.info=t.info)}function lN(r){r.registerComponentModel(nN),r.registerComponentView(aN),r.registerPreprocessor(function(e){var t=e.graphic;z(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var z0=["x","y","radius","angle","single"],uN=["cartesian2d","polar","singleAxis"];function fN(r){var e=r.get("coordinateSystem");return st(uN,e)>=0}function hi(r){return r+"Axis"}function hN(r,e){var t=U(),i=[],n=U();r.eachComponent({mainType:"dataZoom",query:e},function(f){n.get(f.uid)||s(f)});var a;do a=!1,r.eachComponent("dataZoom",o);while(a);function o(f){!n.get(f.uid)&&l(f)&&(s(f),a=!0)}function s(f){n.set(f.uid,!0),i.push(f),u(f)}function l(f){var h=!1;return f.eachTargetAxis(function(c,v){var p=t.get(c);p&&p[v]&&(h=!0)}),h}function u(f){f.eachTargetAxis(function(h,c){(t.get(h)||t.set(h,[]))[c]=!0})}return i}function vT(r){var e=r.ecModel,t={infoList:[],infoMap:U()};return r.eachTargetAxis(function(i,n){var a=e.getComponent(hi(i),n);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(a)}}}),t}var xh=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),Go=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,i,n){var a=V0(t);this.settledOption=a,this.mergeDefaultAndTheme(t,n),this._doInit(a)},e.prototype.mergeOption=function(t){var i=V0(t);et(this.option,t,!0),et(this.settledOption,i,!0),this._doInit(i)},e.prototype._doInit=function(t){var i=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;b([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(i[a[0]]=n[a[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),i=this._targetAxisInfoMap=U(),n=this._fillSpecifiedTargetAxis(i);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(i,this._orient)),this._noTarget=!0,i.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var i=!1;return b(z0,function(n){var a=this.getReferringComponents(hi(n),_M);if(a.specified){i=!0;var o=new xh;b(a.models,function(s){o.add(s.componentIndex)}),t.set(n,o)}},this),i},e.prototype._fillAutoTargetAxisByOrient=function(t,i){var n=this.ecModel,a=!0;if(a){var o=i==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===i}});l(s,"single")}function l(u,f){var h=u[0];if(h){var c=new xh;if(c.add(h.componentIndex),t.set(f,c),a=!1,f==="x"||f==="y"){var v=h.getReferringComponents("grid",Ot).models[0];v&&b(u,function(p){h.componentIndex!==p.componentIndex&&v===p.getReferringComponents("grid",Ot).models[0]&&c.add(p.componentIndex)})}}}a&&b(z0,function(u){if(a){var f=n.findComponents({mainType:hi(u),filter:function(c){return c.get("type",!0)==="category"}});if(f[0]){var h=new xh;h.add(f[0].componentIndex),t.set(u,h),a=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(i){!t&&(t=i)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var i=this.ecModel.option;this.option.throttle=i.animation&&i.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var i=this._rangePropMode,n=this.get("rangeMode");b([["start","startValue"],["end","endValue"]],function(a,o){var s=t[a[0]]!=null,l=t[a[1]]!=null;s&&!l?i[o]="percent":!s&&l?i[o]="value":n?i[o]=n[o]:s&&(i[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(i,n){t==null&&(t=this.ecModel.getComponent(hi(i),n))},this),t},e.prototype.eachTargetAxis=function(t,i){this._targetAxisInfoMap.each(function(n,a){b(n.indexList,function(o){t.call(i,a,o)})})},e.prototype.getAxisProxy=function(t,i){var n=this.getAxisModel(t,i);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,i){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[i])return this.ecModel.getComponent(hi(t),i)},e.prototype.setRawRange=function(t){var i=this.option,n=this.settledOption;b([["start","startValue"],["end","endValue"]],function(a){(t[a[0]]!=null||t[a[1]]!=null)&&(i[a[0]]=n[a[0]]=t[a[0]],i[a[1]]=n[a[1]]=t[a[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var i=this.option;b(["start","startValue","end","endValue"],function(n){i[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,i){if(t==null&&i==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(t,i).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var i,n=this._targetAxisInfoMap.keys(),a=0;a<n.length;a++)for(var o=n[a],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;i||(i=u)}return i},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(ft);function V0(r){var e={};return b(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}var vN=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(Go),Up=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n,a){this.dataZoomModel=t,this.ecModel=i,this.api=n},e.type="dataZoom",e}(At),cN=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(Up),Un=b,F0=yr,pN=function(){function r(e,t,i,n){this._dimName=e,this._axisIndex=t,this.ecModel=n,this._dataZoomModel=i}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(fN(t)){var i=hi(this._dimName),n=t.getReferringComponents(i,Ot).models[0];n&&this._axisIndex===n.componentIndex&&e.push(t)}},this),e},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return X(this._minMaxSpan)},r.prototype.calculateDataWindow=function(e){var t=this._dataExtent,i=this.getAxisModel(),n=i.axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;Un(["start","end"],function(c,v){var p=e[c],d=e[c+"Value"];a[v]==="percent"?(p==null&&(p=o[v]),d=n.parse(xt(p,o,t))):(u=!0,d=d==null?t[v]:n.parse(d),p=xt(d,t,o)),l[v]=d==null||isNaN(d)?t[v]:d,s[v]=p==null||isNaN(p)?o[v]:p}),F0(l),F0(s);var f=this._minMaxSpan;u?h(l,s,t,o,!1):h(s,l,o,t,!0);function h(c,v,p,d,g){var y=g?"Span":"ValueSpan";wn(0,c,p,"all",f["min"+y],f["max"+y]);for(var m=0;m<2;m++)v[m]=xt(c[m],p,d,!0),g&&(v[m]=n.parse(v[m]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=dN(this,this._dimName,t),this._updateMinMaxSpan();var i=this.calculateDataWindow(e.settledOption);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var i=this._dimName,n=this.getTargetSeriesModels(),a=e.get("filterMode"),o=this._valueWindow;if(a==="none")return;Un(n,function(l){var u=l.getData(),f=u.mapDimensionsAll(i);if(f.length){if(a==="weakFilter"){var h=u.getStore(),c=V(f,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var p,d,g,y=0;y<f.length;y++){var m=h.get(c[y],v),_=!isNaN(m),S=m<o[0],w=m>o[1];if(_&&!S&&!w)return!0;_&&(g=!0),S&&(p=!0),w&&(d=!0)}return g&&p&&d})}else Un(f,function(v){if(a==="empty")l.setData(u=u.map(v,function(d){return s(d)?d:NaN}));else{var p={};p[v]=o,u.selectRange(p)}});Un(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,i=this._dataExtent;Un(["min","max"],function(n){var a=t.get(n+"Span"),o=t.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=xt(i[0]+o,i,[0,100],!0):a!=null&&(o=xt(a,[0,100],i,!0)-i[0]),e[n+"Span"]=a,e[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,i=this._valueWindow;if(t){var n=yc(i,[0,500]);n=Math.min(n,20);var a=e.axis.scale.rawExtentInfo;t[0]!==0&&a.setDeterminedMinMax("min",+i[0].toFixed(n)),t[1]!==100&&a.setDeterminedMinMax("max",+i[1].toFixed(n)),a.freeze()}},r}();function dN(r,e,t){var i=[1/0,-1/0];Un(t,function(o){DR(i,o.getData(),e)});var n=r.getAxisModel(),a=Mw(n.axis.scale,n,i).calculate();return[a.min,a.max]}var gN={getTargetSeries:function(r){function e(n){r.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=r.getComponent(hi(o),s);n(o,s,l,a)})})}e(function(n,a,o,s){o.__dzAxisProxy=null});var t=[];e(function(n,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new pN(n,a,s,r),t.push(o.__dzAxisProxy))});var i=U();return b(t,function(n){b(n.getTargetSeriesModels(),function(a){i.set(a.uid,a)})}),i},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(i,n){t.getAxisProxy(i,n).reset(t)}),t.eachTargetAxis(function(i,n){t.getAxisProxy(i,n).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var i=t.findRepresentativeAxisProxy();if(i){var n=i.getDataPercentWindow(),a=i.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:a[0],endValue:a[1]})}})}};function yN(r){r.registerAction("dataZoom",function(e,t){var i=hN(t,e);b(i,function(n){n.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var G0=!1;function Yp(r){G0||(G0=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,gN),yN(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function mN(r){r.registerComponentModel(vN),r.registerComponentView(cN),Yp(r)}var Je=function(){function r(){}return r}(),cT={};function Ua(r,e){cT[r]=e}function pT(r){return cT[r]}var _N=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;b(this.option.feature,function(i,n){var a=pT(n);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(t)),et(i,a.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(ft);function SN(r,e,t){var i=e.getBoxLayoutParams(),n=e.get("padding"),a={width:t.getWidth(),height:t.getHeight()},o=fe(i,a,n);hn(e.get("orient"),r,e.get("itemGap"),o.width,o.height),qc(r,i,a,n)}function dT(r,e){var t=ma(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),r=new pt({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1}),r}var xN=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,i,n,a){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},f=this._features||(this._features={}),h=[];b(u,function(p,d){h.push(d)}),new gp(this._featureNames||[],h).add(c).update(c).remove(vt(c,null)).execute(),this._featureNames=h;function c(p,d){var g=h[p],y=h[d],m=u[g],_=new Tt(m,t,t.ecModel),S;if(a&&a.newTitle!=null&&a.featureName===g&&(m.title=a.newTitle),g&&!y){if(wN(g))S={onclick:_.option.onclick,featureName:g};else{var w=pT(g);if(!w)return;S=new w}f[g]=S}else if(S=f[y],!S)return;S.uid=ya("toolbox-feature"),S.model=_,S.ecModel=i,S.api=n;var x=S instanceof Je;if(!g&&y){x&&S.dispose&&S.dispose(i,n);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(i,n);return}v(_,S,g),_.setIconStatus=function(T,C){var A=this.option,M=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[T]=C,M[T]&&(C==="emphasis"?ia:na)(M[T])},S instanceof Je&&S.render&&S.render(_,i,n,a)}function v(p,d,g){var y=p.getModel("iconStyle"),m=p.getModel(["emphasis","iconStyle"]),_=d instanceof Je&&d.getIcons?d.getIcons():p.get("icon"),S=p.get("title")||{},w,x;F(_)?(w={},w[g]=_):w=_,F(S)?(x={},x[g]=S):x=S;var T=p.iconPaths={};b(w,function(C,A){var M=pa(C,{},{x:-s/2,y:-s/2,width:s,height:s});M.setStyle(y.getItemStyle());var D=M.ensureState("emphasis");D.style=m.getItemStyle();var I=new dt({style:{text:x[A],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:NS({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},i)},ignore:!0});M.setTextContent(I),da({el:M,componentModel:t,itemName:A,formatterParamsExtra:{title:x[A]}}),M.__title=x[A],M.on("mouseover",function(){var P=m.getItemStyle(),L=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:m.get("textFill")||P.fill||P.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),M.setTextConfig({position:m.get("textPosition")||L}),I.ignore=!t.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",A])!=="emphasis"&&n.leaveEmphasis(this),I.hide()}),(p.get(["iconStatus",A])==="emphasis"?ia:na)(M),o.add(M),M.on("click",W(d.onclick,d,i,n,A)),T[A]=M})}SN(o,t,n),o.add(dT(o.getBoundingRect(),t)),l||o.eachChild(function(p){var d=p.__title,g=p.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=p.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!K(_)&&d){var S=_.style||(_.style={}),w=$o(d,dt.makeFont(S)),x=p.x+o.x,T=p.y+o.y+s,C=!1;T+w.height>n.getHeight()&&(y.position="top",C=!0);var A=C?-5-w.height:s+10;x+w.width/2>n.getWidth()?(y.position=["100%",A],S.align="right"):x-w.width/2<0&&(y.position=[0,A],S.align="left")}})},e.prototype.updateView=function(t,i,n,a){b(this._features,function(o){o instanceof Je&&o.updateView&&o.updateView(o.model,i,n,a)})},e.prototype.remove=function(t,i){b(this._features,function(n){n instanceof Je&&n.remove&&n.remove(t,i)}),this.group.removeAll()},e.prototype.dispose=function(t,i){b(this._features,function(n){n instanceof Je&&n.dispose&&n.dispose(t,i)})},e.type="toolbox",e}(At);function wN(r){return r.indexOf("my")===0}var bN=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){var n=this.model,a=n.get("name")||t.get("title.0.text")||"echarts",o=i.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=i.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=ht.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=a+"."+s,f.target="_blank",f.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var c=l.split(","),v=c[0].indexOf("base64")>-1,p=o?decodeURIComponent(c[1]):c[1];v&&(p=window.atob(p));var d=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,d)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,w=S.document;w.open("image/svg+xml","replace"),w.write(p),w.close(),S.focus(),w.execCommand("SaveAs",!0,d),document.body.removeChild(_)}}else{var x=n.get("lang"),T='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',C=window.open();C.document.write(T),C.document.title=a}},e.getDefaultOption=function(t){var i={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return i},e}(Je),H0="__ec_magicType_stack__",TN=[["line","bar"],["stack"]],CN=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,i=t.get("icon"),n={};return b(t.get("type"),function(a){i[a]&&(n[a]=i[a])}),n},e.getDefaultOption=function(t){var i={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return i},e.prototype.onclick=function(t,i,n){var a=this.model,o=a.get(["seriesIndex",n]);if(W0[n]){var s={series:[]},l=function(h){var c=h.subType,v=h.id,p=W0[n](c,v,h,a);p&&(q(p,h.option),s.series.push(p));var d=h.coordinateSystem;if(d&&d.type==="cartesian2d"&&(n==="line"||n==="bar")){var g=d.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=h.getReferringComponents(m,Ot).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var w=0;w<=S;w++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=n==="bar"}}};b(TN,function(h){st(h,n)>=0&&b(h,function(c){a.setIconStatus(c,"normal")})}),a.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=n;n==="stack"&&(u=et({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",n])!=="emphasis"&&(f="tiled")),i.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e}(Je),W0={line:function(r,e,t,i){if(r==="bar")return et({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(r,e,t,i){if(r==="line")return et({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(r,e,t,i){var n=t.get("stack")===H0;if(r==="line"||r==="bar")return i.setIconStatus("stack",n?"normal":"emphasis"),et({id:e,stack:n?"":H0},i.get(["option","stack"])||{},!0)}};ar({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var Wu=new Array(60).join("-"),fa=" ";function AN(r){var e={},t=[],i=[];return r.eachRawSeries(function(n){var a=n.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(n)}else t.push(n)}else t.push(n)}),{seriesGroupByCategoryAxis:e,other:t,meta:i}}function MN(r){var e=[];return b(r,function(t,i){var n=t.categoryAxis,a=t.valueAxis,o=a.dim,s=[" "].concat(V(t.series,function(v){return v.name})),l=[n.model.getCategories()];b(t.series,function(v){var p=v.getRawData();l.push(v.getRawData().mapArray(p.mapDimension(o),function(d){return d}))});for(var u=[s.join(fa)],f=0;f<l[0].length;f++){for(var h=[],c=0;c<l.length;c++)h.push(l[c][f]);u.push(h.join(fa))}e.push(u.join(`
- `))}),e.join(`
- `+Wu+`
- `)}function DN(r){return V(r,function(e){var t=e.getRawData(),i=[e.name],n=[];return t.each(t.dimensions,function(){for(var a=arguments.length,o=arguments[a-1],s=t.getName(o),l=0;l<a-1;l++)n[l]=arguments[l];i.push((s?s+fa:"")+n.join(fa))}),i.join(`
- `)}).join(`
- `+Wu+`
- `)}function IN(r){var e=AN(r);return{value:bt([MN(e.seriesGroupByCategoryAxis),DN(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
- `+Wu+`
- `),meta:e.meta}}function Kl(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function PN(r){var e=r.slice(0,r.indexOf(`
- `));if(e.indexOf(fa)>=0)return!0}var Xv=new RegExp("["+fa+"]+","g");function LN(r){for(var e=r.split(/\n+/g),t=Kl(e.shift()).split(Xv),i=[],n=V(t,function(l){return{name:l,data:[]}}),a=0;a<e.length;a++){var o=Kl(e[a]).split(Xv);i.push(o.shift());for(var s=0;s<o.length;s++)n[s]&&(n[s].data[a]=o[s])}return{series:n,categories:i}}function RN(r){for(var e=r.split(/\n+/g),t=Kl(e.shift()),i=[],n=0;n<e.length;n++){var a=Kl(e[n]);if(a){var o=a.split(Xv),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),i[n]={name:s,value:[]},l=i[n].value):l=i[n]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?i[n].value=l[0]:i[n]=l[0])}}return{name:t,data:i}}function EN(r,e){var t=r.split(new RegExp(`
- *`+Wu+`
- *`,"g")),i={series:[]};return b(t,function(n,a){if(PN(n)){var o=LN(n),s=e[a],l=s.axisDim+"Axis";s&&(i[l]=i[l]||[],i[l][s.axisIndex]={data:o.categories},i.series=i.series.concat(o.series))}else{var o=RN(n);i.series.push(o)}}),i}var kN=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){setTimeout(function(){i.dispatchAction({type:"hideTip"})});var n=i.getDom(),a=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=a.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var h=a.get("optionToContent"),c=a.get("contentToOption"),v=IN(t);if(K(h)){var p=h(i.getOption());F(p)?u.innerHTML=p:dn(p)&&u.appendChild(p)}else{f.readOnly=a.get("readOnly");var d=f.style;d.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",d.color=a.get("textColor"),d.borderColor=a.get("textareaBorderColor"),d.backgroundColor=a.get("textareaColor"),f.value=v.value,u.appendChild(f)}var g=v.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");m+=";background-color:"+a.get("buttonColor"),m+=";color:"+a.get("buttonTextColor");var w=this;function x(){n.removeChild(o),w._dom=null}Vh(_,"click",x),Vh(S,"click",function(){if(c==null&&h!=null||c!=null&&h==null){x();return}var T;try{K(c)?T=c(u,i.getOption()):T=EN(f.value,g)}catch(C){throw x(),new Error("Data view format error "+C)}T&&i.dispatchAction({type:"changeDataView",newOption:T}),x()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!a.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},e.prototype.remove=function(t,i){this._dom&&i.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,i){this.remove(t,i)},e.getDefaultOption=function(t){var i={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return i},e}(Je);function ON(r,e){return V(r,function(t,i){var n=e&&e[i];if(Y(n)&&!z(n)){var a=Y(t)&&!z(t);a||(t={value:t});var o=n.name!=null&&t.name==null;return t=q(t,n),o&&delete t.name,t}else return t})}ar({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];b(r.newOption.series,function(i){var n=e.getSeriesByName(i.name)[0];if(!n)t.push(O({type:"scatter"},i));else{var a=n.get("data");t.push({name:i.name,data:ON(i.data,a)})}}),e.mergeOption(q({series:t},r.newOption))});var gT=b,yT=_t();function BN(r,e){var t=Xp(r);gT(e,function(i,n){for(var a=t.length-1;a>=0;a--){var o=t[a];if(o[n])break}if(a<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();t[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),t.push(e)}function NN(r){var e=Xp(r),t=e[e.length-1];e.length>1&&e.pop();var i={};return gT(t,function(n,a){for(var o=e.length-1;o>=0;o--)if(n=e[o][a],n){i[a]=n;break}}),i}function zN(r){yT(r).snapshots=null}function VN(r){return Xp(r).length}function Xp(r){var e=yT(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var FN=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){zN(t),i.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var i={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return i},e}(Je);ar({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var GN=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],mT=function(){function r(e,t,i){var n=this;this._targetInfoList=[];var a=U0(t,e);b(HN,function(o,s){(!i||!i.include||st(i.include,s)>=0)&&o(a,n._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(i,n,a){if((i.coordRanges||(i.coordRanges=[])).push(n),!i.coordRange){i.coordRange=n;var o=wh[i.brushType](0,a,n);i.__rangeOffset={offset:Z0[i.brushType](o.values,i.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,i){b(e,function(n){var a=this.findTargetInfo(n,t);a&&a!==!0&&b(a.coordSyses,function(o){var s=wh[n.brushType](1,o,n.range,!0);i(n,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){b(e,function(i){var n=this.findTargetInfo(i,t);if(i.range=i.range||[],n&&n!==!0){i.panelId=n.panelId;var a=wh[i.brushType](0,n.coordSys,i.coordRange),o=i.__rangeOffset;i.range=o?Z0[i.brushType](a.values,o.offset,WN(a.xyMinMax,o.xyMinMax)):a.values}},this)},r.prototype.makePanelOpts=function(e,t){return V(this._targetInfoList,function(i){var n=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:t?t(i):null,clipPath:Gb(n),isTargetByCursor:Wb(n,e,i.coordSysModel),getLinearBrushOtherExtent:Hb(n)}})},r.prototype.controlSeries=function(e,t,i){var n=this.findTargetInfo(e,i);return n===!0||n&&st(n.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var i=this._targetInfoList,n=U0(t,e),a=0;a<i.length;a++){var o=i[a],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<Y0.length;l++)if(Y0[l](n,o))return o}return!0},r}();function $v(r){return r[0]>r[1]&&r.reverse(),r}function U0(r,e){return uo(r,e,{includeMainTypes:GN})}var HN={grid:function(r,e){var t=r.xAxisModels,i=r.yAxisModels,n=r.gridModels,a=U(),o={},s={};!t&&!i&&!n||(b(t,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),b(i,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),b(n,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,f=[];b(u.getCartesians(),function(h,c){(st(t,h.getAxis("x").model)>=0||st(i,h.getAxis("y").model)>=0)&&f.push(h)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:X0.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){b(r.geoModels,function(t){var i=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:i,coordSyses:[i],getPanelRect:X0.geo})})}},Y0=[function(r,e){var t=r.xAxisModel,i=r.yAxisModel,n=r.gridModel;return!n&&t&&(n=t.axis.grid.model),!n&&i&&(n=i.axis.grid.model),n&&n===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],X0={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(pi(r)),e}},wh={lineX:vt($0,0),lineY:vt($0,1),rect:function(r,e,t,i){var n=r?e.pointToData([t[0][0],t[1][0]],i):e.dataToPoint([t[0][0],t[1][0]],i),a=r?e.pointToData([t[0][1],t[1][1]],i):e.dataToPoint([t[0][1],t[1][1]],i),o=[$v([n[0],a[0]]),$v([n[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,i){var n=[[1/0,-1/0],[1/0,-1/0]],a=V(t,function(o){var s=r?e.pointToData(o,i):e.dataToPoint(o,i);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:a,xyMinMax:n}}};function $0(r,e,t,i){var n=t.getAxis(["x","y"][r]),a=$v(V([0,1],function(s){return e?n.coordToData(n.toLocalCoord(i[s]),!0):n.toGlobalCoord(n.dataToCoord(i[s]))})),o=[];return o[r]=a,o[1-r]=[NaN,NaN],{values:a,xyMinMax:o}}var Z0={lineX:vt(q0,0),lineY:vt(q0,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return V(r,function(i,n){return[i[0]-t[0]*e[n][0],i[1]-t[1]*e[n][1]]})}};function q0(r,e,t,i){return[e[0]-i[r]*t[0],e[1]-i[r]*t[1]]}function WN(r,e){var t=K0(r),i=K0(e),n=[t[0]/i[0],t[1]/i[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function K0(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var Zv=b,UN=pM("toolbox-dataZoom_"),YN=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,i,n,a){this._brushController||(this._brushController=new Ib(n.getZr()),this._brushController.on("brush",W(this._onBrush,this)).mount()),ZN(t,i,this,a,n),$N(t,i)},e.prototype.onclick=function(t,i,n){XN[n].call(this)},e.prototype.remove=function(t,i){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,i){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var i=t.areas;if(!t.isEnd||!i.length)return;var n={},a=this.ecModel;this._brushController.updateCovers([]);var o=new mT($p(this.model),a,{include:["grid"]});o.matchOutputRanges(i,a,function(u,f,h){if(h.type==="cartesian2d"){var c=u.brushType;c==="rect"?(s("x",h,f[0]),s("y",h,f[1])):s({lineX:"x",lineY:"y"}[c],h,f)}}),BN(a,n),this._dispatchZoomAction(n);function s(u,f,h){var c=f.getAxis(u),v=c.model,p=l(u,v,a),d=p.findRepresentativeAxisProxy(v).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(h=wn(0,h.slice(),c.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),p&&(n[p.id]={dataZoomId:p.id,startValue:h[0],endValue:h[1]})}function l(u,f,h){var c;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var p=v.getAxisModel(u,f.componentIndex);p&&(c=v)}),c}},e.prototype._dispatchZoomAction=function(t){var i=[];Zv(t,function(n,a){i.push(X(n))}),i.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:i})},e.getDefaultOption=function(t){var i={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return i},e}(Je),XN={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(NN(this.ecModel))}};function $p(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function $N(r,e){r.setIconStatus("back",VN(e)>1?"emphasis":"normal")}function ZN(r,e,t,i,n){var a=t._isZoomActive;i&&i.type==="takeGlobalCursor"&&(a=i.key==="dataZoomSelect"?i.dataZoomSelectActive:!1),t._isZoomActive=a,r.setIconStatus("zoom",a?"emphasis":"normal");var o=new mT($p(r),e,{include:["grid"]}),s=o.makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}J2("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var i=e.getModel(t),n=[],a=$p(i),o=uo(r,a);Zv(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Zv(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var h=l.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:UN+u+h};c[f]=h,n.push(c)}return n});function qN(r){r.registerComponentModel(_N),r.registerComponentView(xN),Ua("saveAsImage",bN),Ua("magicType",CN),Ua("dataView",kN),Ua("dataZoom",YN),Ua("restore",FN),Ft(mN)}var KN=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(ft);function _T(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function ST(r){if(ht.domSupported){for(var e=document.documentElement.style,t=0,i=r.length;t<i;t++)if(r[t]in e)return r[t]}}var xT=ST(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),jN=ST(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function wT(r,e){if(!r)return e;e=Xc(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function JN(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?t[e]:null}var QN=wT(jN,"transition"),Zp=wT(xT,"transform"),tz="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ht.transform3dSupported?"will-change:transform;":"");function ez(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function rz(r,e,t){if(!F(t)||t==="inside")return"";var i=r.get("backgroundColor"),n=r.get("borderWidth");e=yn(e);var a=ez(t),o=Math.max(Math.round(n)*1.5,6),s="",l=Zp+":",u;st(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+n,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*n)/2+Math.SQRT2*n-(c-h)/2)*100)/100;s+=";"+a+":-"+v+"px";var p=e+" solid "+n+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+i+";"];return'<div style="'+d.join("")+'"></div>'}function iz(r,e){var t="cubic-bezier(0.23,1,0.32,1)",i=" "+r/2+"s "+t,n="opacity"+i+",visibility"+i;return e||(i=" "+r+"s "+t,n+=ht.transformSupported?","+Zp+i:",left"+i+",top"+i),QN+":"+n}function j0(r,e,t){var i=r.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!ht.transformSupported)return t?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=ht.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return t?"top:0;left:0;"+Zp+":"+o+";":[["top",0],["left",0],[xT,o]]}function nz(r){var e=[],t=r.get("fontSize"),i=r.getTextColor();i&&e.push("color:"+i),e.push("font:"+r.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var n=r.get("textShadowColor"),a=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return n&&a&&e.push("text-shadow:"+o+"px "+s+"px "+a+"px "+n),b(["decoration","align"],function(l){var u=r.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function az(r,e,t){var i=[],n=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=Mx(r,"html"),c=l+"px "+u+"px "+o+"px "+s;return i.push("box-shadow:"+c),e&&n&&i.push(iz(n,t)),a&&i.push("background-color:"+a),b(["width","color","radius"],function(v){var p="border-"+v,d=Xc(p),g=r.get(d);g!=null&&i.push(p+":"+g+(v==="color"?"":"px"))}),i.push(nz(f)),h!=null&&i.push("padding:"+ma(h).join("px ")+"px"),i.join(";")+";"}function J0(r,e,t,i,n){var a=e&&e.painter;if(t){var o=a&&a.getViewportRoot();o&&OC(r,o,t,i,n)}else{r[0]=i,r[1]=n;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var oz=function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ht.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=e.getZr(),a=t.appendTo,o=a&&(F(a)?document.querySelector(a):dn(a)?a:K(a)&&a(e.getDom()));J0(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(i),this._api=e,this._container=o;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();Pe(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),i=JN(t,"position"),n=t.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=tz+az(e,!this._firstShow,this._longHide)+j0(a[0],a[1],!0)+("border-color:"+yn(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,i,n,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(F(a)&&i.get("trigger")==="item"&&!_T(i)&&(s=rz(i,n,a)),F(e))o.innerHTML=e+s;else if(e){o.innerHTML="",z(e)||(e=[e]);for(var l=0;l<e.length;l++)dn(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},r.prototype.moveTo=function(e,t){var i=this._styleCoord;if(J0(i,this._zr,this._container,e,t),i[0]!=null&&i[1]!=null){var n=this.el.style,a=j0(i[0],i[1]);b(a,function(o){n[o[0]]=o[1]})}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",ht.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(W(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},r}(),sz=function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),t_(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,i,n,a){var o=this;Y(e)&&ye(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new dt({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Mx(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),b(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=i.get(u)}),b(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),i=Q0(e.style);return[t.width+i.left+i.right,t.height+i.top+i.bottom]},r.prototype.moveTo=function(e,t){var i=this.el;if(i){var n=this._styleCoord;t_(n,this._zr,e,t),e=n[0],t=n[1];var a=i.style,o=ni(a.borderWidth||0),s=Q0(a);i.x=e+o+s.left,i.y=t+o+s.top,i.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(W(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function ni(r){return Math.max(0,r)}function Q0(r){var e=ni(r.shadowBlur||0),t=ni(r.shadowOffsetX||0),i=ni(r.shadowOffsetY||0);return{left:ni(e-t),right:ni(e+t),top:ni(e-i),bottom:ni(e+i)}}function t_(r,e,t,i){r[0]=t,r[1]=i,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var lz=new pt({shape:{x:-1,y:-1,width:2,height:2}}),uz=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){if(!(ht.node||!i.getDom())){var n=t.getComponent("tooltip"),a=this._renderMode=xM(n.get("renderMode"));this._tooltipContent=a==="richText"?new sz(i):new oz(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,i,n){if(!(ht.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=i,this._api=n;var a=this._tooltipContent;a.update(t),a.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?Jo(this,"_updatePosition",50,"fixRate"):Ro(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,i=t.get("triggerOn");oT("itemTooltip",this._api,W(function(n,a,o){i!=="none"&&(i.indexOf(n)>=0?this._tryShow(a,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,i=this._ecModel,n=this._api,a=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(t,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,i,n,a){if(!(a.from===this.uid||ht.node||!n.getDom())){var o=e_(a,n);this._ticket="";var s=a.dataByCoordSys,l=cz(a,i,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=lz;f.x=a.x,f.y=a.y,f.update(),it(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(t,i,n,a))return;var h=sT(a,i),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(t,i,n,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(e_(a,n))},e.prototype._manuallyAxisShowTip=function(t,i,n,a){var o=a.seriesIndex,s=a.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(u){var f=u.getData(),h=Ya([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(t,i){var n=t.target,a=this._tooltipModel;if(a){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){var s=it(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;an(n,function(f){if(it(f).dataIndex!=null)return l=f,!0;if(it(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(t,l,i):u?this._showComponentItemTooltip(t,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},e.prototype._showOrMove=function(t,i){var n=t.get("showDelay");i=W(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},e.prototype._showAxisTooltip=function(t,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=Ya([i.tooltipOption],a),l=this._renderMode,u=[],f=wr("section",{blocks:[],noHeader:!0}),h=[],c=new zf;b(t,function(m){b(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!S||w==null)){var x=iT(w,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),T=wr("section",{header:x,noHeader:!Ve(x),sortBlocks:!0,blocks:[]});f.blocks.push(T),b(_.seriesDataIndices,function(C){var A=n.getSeriesByIndex(C.seriesIndex),M=C.dataIndexInside,D=A.getDataParams(M);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=wp(S.axis,{value:w}),D.axisValueLabel=x,D.marker=c.makeTooltipMarker("item",yn(D.color),l);var I=Zg(A.formatTooltip(M,!0,null)),P=I.frag;if(P){var L=Ya([A],a).get("valueFormatter");T.blocks.push(L?O({valueFormatter:L},P):P)}I.text&&h.push(I.text),u.push(D)}})}})}),f.blocks.reverse(),h.reverse();var v=i.position,p=s.get("order"),d=Qg(f,c,l,p,n.get("useUTC"),s.get("textStyle"));d&&h.unshift(d);var g=l==="richText"?`
- `:"<br/>",y=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],v,null,c)})},e.prototype._showSeriesItemTooltip=function(t,i,n){var a=this._ecModel,o=it(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,c=u.getData(h),v=this._renderMode,p=t.positionDefault,d=Ya([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,h),m=new zf;y.marker=m.makeTooltipMarker("item",yn(y.color),v);var _=Zg(u.formatTooltip(f,!1,h)),S=d.get("order"),w=d.get("valueFormatter"),x=_.frag,T=x?Qg(w?O({valueFormatter:w},x):x,m,v,S,a.get("useUTC"),d.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,T,y,C,t.offsetX,t.offsetY,t.position,t.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,i,n){var a=this._renderMode==="html",o=it(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(F(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=X(l),l.content=ne(l.content));var h=[l],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&h.push(c),h.push({formatter:l.content});var v=t.positionDefault,p=Ya(h,this._tooltipModel,v?{position:v}:null),d=p.get("content"),g=Math.random()+"",y=new zf;this._showOrMove(p,function(){var m=X(p.get("formatterParams")||{});this._showTooltipContent(p,d,m,g,t.offsetX,t.offsetY,t.position,i,y)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,i,n,a,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var c=t.get("formatter");l=l||t.get("position");var v=i,p=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor")),d=p.color;if(c)if(F(c)){var g=t.ecModel.get("useUTC"),y=z(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=c,m&&(v=jo(y.axisValue,v,g)),v=$c(v,n,!0)}else if(K(c)){var _=W(function(S,w){S===this._ticket&&(h.setContent(w,f,t,d,l),this._updatePosition(t,l,o,s,h,n,u))},this);this._ticket=a,v=c(n,a,_)}else v=c;h.setContent(v,f,t,d,l),h.show(t,d),this._updatePosition(t,l,o,s,h,n,u)}},e.prototype._getNearestPoint=function(t,i,n,a){if(n==="axis"||z(i))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!z(i))return{color:a||i.color||i.borderColor}},e.prototype._updatePosition=function(t,i,n,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||t.get("position");var h=o.getSize(),c=t.get("align"),v=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),K(i)&&(i=i([n,a],s,o.el,p,{viewSize:[u,f],contentSize:h.slice()})),z(i))n=Q(i[0],u),a=Q(i[1],f);else if(Y(i)){var d=i;d.width=h[0],d.height=h[1];var g=fe(d,{width:u,height:f});n=g.x,a=g.y,c=null,v=null}else if(F(i)&&l){var y=vz(i,p,h,t.get("borderWidth"));n=y[0],a=y[1]}else{var y=fz(n,a,o,u,f,c?null:20,v?null:20);n=y[0],a=y[1]}if(c&&(n-=r_(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=r_(v)?h[1]/2:v==="bottom"?h[1]:0),_T(t)){var y=hz(n,a,o,u,f);n=y[0],a=y[1]}o.moveTo(n,a)},e.prototype._updateContentNotChangedOnAxis=function(t,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===t.length;return o&&b(n,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&b(u,function(c,v){var p=h[v]||{},d=c.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&c.value===p.value&&c.axisType===p.axisType&&c.axisId===p.axisId&&d.length===g.length,o&&b(d,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&b(c.seriesDataIndices,function(y){var m=y.seriesIndex,_=i[m],S=a[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=i,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,i){ht.node||!i.getDom()||(Ro(this,"_updatePosition"),this._tooltipContent.dispose(),Uv("itemTooltip",i))},e.type="tooltip",e}(At);function Ya(r,e,t){var i=e.ecModel,n;t?(n=new Tt(t,i,i),n=new Tt(e.option,n,i)):n=e;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof Tt&&(o=o.get("tooltip",!0)),F(o)&&(o={formatter:o}),o&&(n=new Tt(o,n,i)))}return n}function e_(r,e){return r.dispatchAction||W(e.dispatchAction,e)}function fz(r,e,t,i,n,a,o){var s=t.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>i?r-=l+a:r+=a),o!=null&&(e+u+o>n?e-=u+o:e+=o),[r,e]}function hz(r,e,t,i,n){var a=t.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,i)-o,e=Math.min(e+s,n)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function vz(r,e,t,i){var n=t[0],a=t[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-n/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+f+o;break;case"left":s=e.x-n-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function r_(r){return r==="center"||r==="middle"}function cz(r,e,t){var i=wc(r).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=Zo(e,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=it(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function pz(r){Ft(Fp),r.registerComponentModel(KN),r.registerComponentView(uz),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},zt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},zt)}var i_=b;function n_(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function a_(r,e,t){var i={};return i_(e,function(a){var o=i[a]=n();i_(r[a],function(s,l){if(Jt.isValidType(l)){var u={type:l,visual:s};t&&t(u,a),o[l]=new Jt(u),l==="opacity"&&(u=X(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Jt(u))}})}),i;function n(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function dz(r,e,t){var i;b(t,function(n){e.hasOwnProperty(n)&&n_(e[n])&&(i=!0)}),i&&b(t,function(n){e.hasOwnProperty(n)&&n_(e[n])?r[n]=X(e[n]):delete r[n]})}function gz(r,e,t,i){var n={};return b(r,function(a){var o=Jt.prepareVisualTypes(e[a]);n[a]=o}),{progress:function(o,s){var l;i!=null&&(l=s.getDimensionIndex(i));function u(w){return Bx(s,h,w)}function f(w,x){DP(s,h,w,x)}for(var h,c=s.getStore();(h=o.next())!=null;){var v=s.getRawDataItem(h);if(!(v&&v.visualMap===!1))for(var p=i!=null?c.get(l,h):h,d=t(p),g=e[d],y=n[d],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(p,u,f)}}}}}var yz=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.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"}},e}(ft),mz=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n){if(this.group.removeAll(),!!t.get("show")){var a=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=J(t.get("textBaseline"),t.get("textVerticalAlign")),f=new dt({style:kt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),c=t.get("subtext"),v=new dt({style:kt(s,{text:c,fill:s.getTextColor(),y:h.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),g=t.get("triggerEvent",!0);f.silent=!p&&!g,v.silent=!d&&!g,p&&f.on("click",function(){Ig(p,"_"+t.get("target"))}),d&&v.on("click",function(){Ig(d,"_"+t.get("subtarget"))}),it(f).eventData=it(v).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,a.add(f),c&&a.add(v);var y=a.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=fe(m,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),y=a.getBoundingRect();var w=_.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var T=new pt({shape:{x:y.x-w[3],y:y.y-w[0],width:y.width+w[1]+w[3],height:y.height+w[0]+w[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});a.add(T)}},e.type="title",e}(At);function _z(r){r.registerComponentModel(yz),r.registerComponentView(mz)}var o_=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,i,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var i=this._data.count();this.option.loop?t=(t%i+i)%i:(t>=i&&(t=i-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,i=t.data||[],n=t.axisType,a=this._names=[],o;n==="category"?(o=[],b(i,function(u,f){var h=jt(ca(u),""),c;Y(u)?(c=X(u),c.value=f):c=f,o.push(c),a.push(h)})):o=i;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new ku([{name:"value",type:s}],this);l.initData(o,a)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(ft),bT=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=bi(o_.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(o_);Xt(bT,gx.prototype);var Sz=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(At),xz=function(r){E(e,r);function e(t,i,n,a){var o=r.call(this,t,i,n)||this;return o.type=a||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(or),bh=Math.PI,s_=_t(),wz=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){this.api=i},e.prototype.render=function(t,i,n){if(this.model=t,this.api=n,this.ecModel=i,this.group.removeAll(),t.get("show",!0)){var a=this._layout(t,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,t);t.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return wr("nameValue",{noName:!0,value:f})},b(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,t)},this),this._renderAxisLabel(a,s,l,t),this._position(a,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,i){var n=t.get(["label","position"]),a=t.get("orient"),o=Tz(t,i),s;n==null||n==="auto"?s=a==="horizontal"?o.y+o.height/2<i.getHeight()/2?"-":"+":o.x+o.width/2<i.getWidth()/2?"+":"-":F(n)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][n]:s=n;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:bh/2},h=a==="vertical"?o.height:o.width,c=t.getModel("controlStyle"),v=c.get("show",!0),p=v?c.get("itemSize"):0,d=v?c.get("itemGap"):0,g=p+d,y=t.get(["label","rotate"])||0;y=y*bh/180;var m,_,S,w=c.get("position",!0),x=v&&c.get("showPlayBtn",!0),T=v&&c.get("showPrevBtn",!0),C=v&&c.get("showNextBtn",!0),A=0,M=h;w==="left"||w==="bottom"?(x&&(m=[0,0],A+=g),T&&(_=[A,0],A+=g),C&&(S=[M-p,0],M-=g)):(x&&(m=[M-p,0],M-=g),T&&(_=[0,0],A+=g),C&&(S=[M-p,0],M-=g));var D=[A,M];return t.get("inverse")&&D.reverse(),{viewRect:o,mainLength:h,orient:a,rotation:f[a],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[a],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[a],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:D,controlSize:p,controlGap:d}},e.prototype._position=function(t,i){var n=this._mainGroup,a=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=be(),l=o.x,u=o.y+o.height;Fr(s,s,[-l,-u]),wi(s,s,-bh/2),Fr(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),h=m(n.getBoundingRect()),c=m(a.getBoundingRect()),v=[n.x,n.y],p=[a.x,a.y];p[0]=v[0]=f[0][0];var d=t.labelPosOpt;if(d==null||F(d)){var g=d==="+"?0:1;_(v,h,f,1,g),_(p,c,f,1,1-g)}else{var g=d>=0?0:1;_(v,h,f,1,g),p[1]=v[1]+d}n.setPosition(v),a.setPosition(p),n.rotation=a.rotation=t.rotation,y(n),y(a);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,w,x,T,C){S[T]+=x[T][C]-w[T][C]}},e.prototype._createAxis=function(t,i){var n=i.getData(),a=i.get("axisType"),o=bz(i,a);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new xz("value",o,t.axisExtent,a);return l.model=i,l},e.prototype._createGroup=function(t){var i=this[t]=new nt;return this.group.add(i),i},e.prototype._renderAxisLine=function(t,i,n,a){var o=n.getExtent();if(a.get(["lineStyle","show"])){var s=new ae({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:O({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});i.add(s);var l=this._progressLine=new ae({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:q({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});i.add(l)}},e.prototype._renderAxisTick=function(t,i,n,a){var o=this,s=a.getData(),l=n.scale.getTicks();this._tickSymbols=[],b(l,function(u){var f=n.dataToCoord(u.value),h=s.getItemModel(u.value),c=h.getModel("itemStyle"),v=h.getModel(["emphasis","itemStyle"]),p=h.getModel(["progress","itemStyle"]),d={x:f,y:0,onclick:W(o._changeTimeline,o,u.value)},g=l_(h,c,i,d);g.ensureState("emphasis").style=v.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),ci(g);var y=it(g);h.get("tooltip")?(y.dataIndex=u.value,y.dataModel=a):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,i,n,a){var o=this,s=n.getLabelModel();if(s.get("show")){var l=a.getData(),u=n.getViewLabels();this._tickLabels=[],b(u,function(f){var h=f.tickValue,c=l.getItemModel(h),v=c.getModel("label"),p=c.getModel(["emphasis","label"]),d=c.getModel(["progress","label"]),g=n.dataToCoord(f.tickValue),y=new dt({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:W(o._changeTimeline,o,h),silent:!1,style:kt(v,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=kt(p),y.ensureState("progress").style=kt(d),i.add(y),ci(y),s_(y).dataIndex=h,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,i,n,a){var o=t.controlSize,s=t.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),f=a.getPlayState(),h=a.get("inverse",!0);c(t.nextBtnPosition,"next",W(this._changeTimeline,this,h?"-":"+")),c(t.prevBtnPosition,"prev",W(this._changeTimeline,this,h?"+":"-")),c(t.playPosition,f?"stop":"play",W(this._handlePlayClick,this,!f),!0);function c(v,p,d,g){if(v){var y=rr(J(a.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=Cz(a,p+"Icon",m,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:d});_.ensureState("emphasis").style=u,i.add(_),ci(_)}}},e.prototype._renderCurrentPointer=function(t,i,n,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(h){h.draggable=!0,h.drift=W(u._handlePointerDrag,u),h.ondragend=W(u._handlePointerDragend,u),u_(h,u._progressLine,s,n,a,!0)},onUpdate:function(h){u_(h,u._progressLine,s,n,a)}};this._currentPointer=l_(l,l,this._mainGroup,{},this._currentPointer,f)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,i,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,i){var n=this._toAxisCoord(t)[0],a=this._axis,o=yr(a.getExtent().slice());n>o[1]&&(n=o[1]),n<o[0]&&(n=o[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=n,s.dirty());var l=this._findNearestTick(n),u=this.model;(i||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var i=t.model;t._changeTimeline(i.getCurrentIndex()+(i.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var i=this._mainGroup.getLocalTransform();return er(t,i,!0)},e.prototype._findNearestTick=function(t){var i=this.model.getData(),n=1/0,a,o=this._axis;return i.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-t);f<n&&(n=f,a=l)}),a},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var i=this.model.getCurrentIndex();t==="+"?t=i+1:t==="-"&&(t=i-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),i=this._tickSymbols,n=this._tickLabels;if(i)for(var a=0;a<i.length;a++)i&&i[a]&&i[a].toggleState("progress",a<t);if(n)for(var a=0;a<n.length;a++)n&&n[a]&&n[a].toggleState("progress",s_(n[a]).dataIndex<=t)},e.type="timeline.slider",e}(Sz);function bz(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new zu({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new Sp({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new Hr}}function Tz(r,e){return fe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},r.get("padding"))}function Cz(r,e,t,i){var n=i.style,a=pa(r.get(["controlStyle",e]),i||{},new lt(t[0],t[1],t[2],t[3]));return n&&a.setStyle(n),a}function l_(r,e,t,i,n,a){var o=e.get("color");if(n)n.setColor(o),t.add(n),a&&a.onUpdate(n);else{var s=r.get("symbol");n=Yt(s,-1,-1,2,2,o),n.setStyle("strokeNoScale",!0),t.add(n),a&&a.onCreate(n)}var l=e.getItemStyle(["color"]);n.setStyle(l),i=et({rectHover:!0,z2:100},i,!0);var u=ap(r.get("symbolSize"));i.scaleX=u[0]/2,i.scaleY=u[1]/2;var f=Lu(r.get("symbolOffset"),u);f&&(i.x=(i.x||0)+f[0],i.y=(i.y||0)+f[1]);var h=r.get("symbolRotate");return i.rotation=(h||0)*Math.PI/180||0,n.attr(i),n.updateTransform(),n}function u_(r,e,t,i,n,a){if(!r.dragging){var o=n.getModel("checkpointStyle"),s=i.dataToCoord(n.getData().get("value",t));if(a||!o.get("animation",!0))r.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}function Az(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,i){var n=t.getComponent("timeline");return n&&e.currentIndex!=null&&(n.setCurrentIndex(e.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.getPlayState()&&(n.setPlayState(!1),i.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),q({currentIndex:n.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var i=t.getComponent("timeline");i&&e.playState!=null&&i.setPlayState(e.playState)})}function Mz(r){var e=r&&r.timeline;z(e)||(e=e?[e]:[]),b(e,function(t){t&&Dz(t)})}function Dz(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),f_(r),Ji(r,"controlPosition")){var i=r.controlStyle||(r.controlStyle={});Ji(i,"position")||(i.position=r.controlPosition),i.position==="none"&&!Ji(i,"show")&&(i.show=!1,delete i.position),delete r.controlPosition}b(r.data||[],function(n){Y(n)&&!z(n)&&(!Ji(n,"value")&&Ji(n,"name")&&(n.value=n.name),f_(n))})}function f_(r){var e=r.itemStyle||(r.itemStyle={}),t=e.emphasis||(e.emphasis={}),i=r.label||r.label||{},n=i.normal||(i.normal={}),a={normal:1,emphasis:1};b(i,function(o,s){!a[s]&&!Ji(n,s)&&(n[s]=o)}),t.label&&!Ji(i,"emphasis")&&(i.emphasis=t.label,delete t.label)}function Ji(r,e){return r.hasOwnProperty(e)}function Iz(r){r.registerComponentModel(bT),r.registerComponentView(wz),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),Az(r),r.registerPreprocessor(Mz)}var Pz=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},qv=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,i,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,i){r.prototype.mergeOption.call(this,t,i),this._updateSelector(t)},e.prototype._updateSelector=function(t){var i=t.selector,n=this.ecModel;i===!0&&(i=t.selector=["all","inverse"]),z(i)&&b(i,function(a,o){F(a)&&(a={type:a}),i[o]=et(a,Pz(n,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var i=!1,n=0;n<t.length;n++){var a=t[n].get("name");if(this.isSelected(a)){this.select(a),i=!0;break}}!i&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var i=[],n=[];t.eachRawSeries(function(l){var u=l.name;n.push(u);var f;if(l.legendVisualProvider){var h=l.legendVisualProvider,c=h.getAllNames();t.isSeriesFiltered(l)||(n=n.concat(c)),c.length?i=i.concat(c):f=!0}else f=!0;f&&xc(l)&&i.push(l.name)}),this._availableNames=n;var a=this.get("data")||i,o=U(),s=V(a,function(l){return(F(l)||mt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Tt(l,this,this.ecModel))},this);this._data=bt(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var i=this.option.selected,n=this.get("selectedMode");if(n==="single"){var a=this._data;b(a,function(o){i[o.get("name")]=!1})}i[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var i=this.option.selected;i.hasOwnProperty(t)||(i[t]=!0),this[i[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,i=this.option.selected;b(t,function(n){i[n.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,i=this.option.selected;b(t,function(n){var a=n.get("name",!0);i.hasOwnProperty(a)||(i[a]=!0),i[a]=!i[a]})},e.prototype.isSelected=function(t){var i=this.option.selected;return!(i.hasOwnProperty(t)&&!i[t])&&st(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(ft),Fn=vt,Kv=b,Ks=nt,TT=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Ks),this.group.add(this._selectorGroup=new Ks),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,i,n){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,i,n,l,s,u);var f=t.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),v=fe(f,h,c),p=this.layoutInner(t,o,v,a,l,u),d=fe(q({width:p.width,height:p.height},f),h,c);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=dT(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,i,n,a,o,s,l){var u=this.getContentGroup(),f=U(),h=i.get("selectedMode"),c=[];n.eachRawSeries(function(v){!v.get("legendHoverLink")&&c.push(v.id)}),Kv(i.getData(),function(v,p){var d=v.get("name");if(!this.newlineDisabled&&(d===""||d===`
- `)){var g=new Ks;g.newline=!0,u.add(g);return}var y=n.getSeriesByName(d)[0];if(!f.get(d))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),w=m.getVisual("style"),x=this._createItem(y,d,p,v,i,t,_,w,S,h,a);x.on("click",Fn(h_,d,null,a,c)).on("mouseover",Fn(jv,y.name,null,a,c)).on("mouseout",Fn(Jv,y.name,null,a,c)),n.ssr&&x.eachChild(function(T){var C=it(T);C.seriesIndex=y.seriesIndex,C.dataIndex=p,C.ssrType="legend"}),f.set(d,!0)}else n.eachRawSeries(function(T){if(!f.get(d)&&T.legendVisualProvider){var C=T.legendVisualProvider;if(!C.containName(d))return;var A=C.indexOfName(d),M=C.getItemVisual(A,"style"),D=C.getItemVisual(A,"legendIcon"),I=oe(M.fill);I&&I[3]===0&&(I[3]=.2,M=O(O({},M),{fill:tr(I,"rgba")}));var P=this._createItem(T,d,p,v,i,t,{},M,D,h,a);P.on("click",Fn(h_,null,d,a,c)).on("mouseover",Fn(jv,null,d,a,c)).on("mouseout",Fn(Jv,null,d,a,c)),n.ssr&&P.eachChild(function(L){var R=it(L);R.seriesIndex=T.seriesIndex,R.dataIndex=p,R.ssrType="legend"}),f.set(d,!0)}},this)},this),o&&this._createSelector(o,i,a,s,l)},e.prototype._createSelector=function(t,i,n,a,o){var s=this.getSelectorGroup();Kv(t,function(u){var f=u.type,h=new dt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var c=i.getModel("selectorLabel"),v=i.getModel(["emphasis","selectorLabel"]);Xr(h,{normal:c,emphasis:v},{defaultText:u.title}),ci(h)})},e.prototype._createItem=function(t,i,n,a,o,s,l,u,f,h,c){var v=t.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),g=o.isSelected(i),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=Lz(f,a,l,u,v,g,c),w=new Ks,x=a.getModel("textStyle");if(K(t.getLegendIcon)&&(!_||_==="inherit"))w.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var T=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;w.add(Rz({itemWidth:p,itemHeight:d,icon:f,iconRotate:T,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var C=s==="left"?p+5:-5,A=s,M=o.get("formatter"),D=i;F(M)&&M?D=M.replace("{name}",i!=null?i:""):K(M)&&(D=M(i));var I=g?x.getTextColor():a.get("inactiveColor");w.add(new dt({style:kt(x,{text:D,x:C,y:d/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var P=new pt({shape:w.getBoundingRect(),style:{fill:"transparent"}}),L=a.getModel("tooltip");return L.get("show")&&da({el:P,componentModel:o,itemName:i,itemTooltipOption:L.option}),w.add(P),w.eachChild(function(R){R.silent=!0}),P.silent=!h,this.getContentGroup().add(w),ci(w),w.__legendDataIndex=n,w},e.prototype.layoutInner=function(t,i,n,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();hn(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){hn("horizontal",u,t.get("selectorItemGap",!0));var c=u.getBoundingRect(),v=[-c.x,-c.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,g=d===0?"width":"height",y=d===0?"height":"width",m=d===0?"y":"x";s==="end"?v[d]+=f[g]+p:h[d]+=c[g]+p,v[1-d]+=f[y]/2-c[y]/2,u.x=v[0],u.y=v[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+p+c[g],_[y]=Math.max(f[y],c[y]),_[m]=Math.min(0,c[m]+v[1-d]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(At);function Lz(r,e,t,i,n,a,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Kv(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?i.decal:Vl(h,o),u.fill==="inherit"&&(u.fill=i[n]),u.stroke==="inherit"&&(u.stroke=i[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?i:t).opacity),s(u,i);var c=e.getModel("lineStyle"),v=c.getLineStyle();if(s(v,t),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),v.stroke==="auto"&&(v.stroke=i.fill),!a){var p=e.get("inactiveBorderWidth"),d=u[f];u.lineWidth=p==="auto"?i.lineWidth>0&&d?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function Rz(r){var e=r.icon||"roundRect",t=Yt(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function h_(r,e,t,i){Jv(r,e,t,i),t.dispatchAction({type:"legendToggleSelect",name:r!=null?r:e}),jv(r,e,t,i)}function CT(r){for(var e=r.getZr().storage.getDisplayList(),t,i=0,n=e.length;i<n&&!(t=e[i].states.emphasis);)i++;return t&&t.hoverLayer}function jv(r,e,t,i){CT(t)||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:i})}function Jv(r,e,t,i){CT(t)||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:i})}function Ez(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var i=0;i<e.length;i++)if(!e[i].isSelected(t.name))return!1;return!0})}function Xa(r,e,t){var i={},n=r==="toggleSelected",a;return t.eachComponent("legend",function(o){n&&a!=null?o[a?"select":"unSelect"](e.name):r==="allSelect"||r==="inverseSelect"?o[r]():(o[r](e.name),a=o.isSelected(e.name));var s=o.getData();b(s,function(l){var u=l.get("name");if(!(u===`
- `||u==="")){var f=o.isSelected(u);i.hasOwnProperty(u)?i[u]=i[u]&&f:i[u]=f}})}),r==="allSelect"||r==="inverseSelect"?{selected:i}:{name:e.name,selected:i}}function kz(r){r.registerAction("legendToggleSelect","legendselectchanged",vt(Xa,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",vt(Xa,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",vt(Xa,"inverseSelect")),r.registerAction("legendSelect","legendselected",vt(Xa,"select")),r.registerAction("legendUnSelect","legendunselected",vt(Xa,"unSelect"))}function AT(r){r.registerComponentModel(qv),r.registerComponentView(TT),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,Ez),r.registerSubTypeDefaulter("legend",function(){return"plain"}),kz(r)}var Oz=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,i,n){var a=_a(t);r.prototype.init.call(this,t,i,n),v_(this,t,a)},e.prototype.mergeOption=function(t,i){r.prototype.mergeOption.call(this,t,i),v_(this,this.option,t)},e.type="legend.scroll",e.defaultOption=bi(qv.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(qv);function v_(r,e,t){var i=r.getOrient(),n=[1,1];n[i.index]=0,Si(e,t,{type:"box",ignoreSize:!!n})}var c_=nt,Th=["width","height"],Ch=["x","y"],Bz=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new c_),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new c_)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,i,n,a,o,s,l){var u=this;r.prototype.renderInner.call(this,t,i,n,a,o,s,l);var f=this._controllerGroup,h=i.get("pageIconSize",!0),c=z(h)?h:[h,h];p("pagePrev",0);var v=i.getModel("pageTextStyle");f.add(new dt({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(d,g){var y=d+"DataIndex",m=pa(i.get("pageIcons",!0)[i.getOrient().name][g],{onclick:W(u._pageGo,u,y,i,a)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});m.name=d,f.add(m)}},e.prototype.layoutInner=function(t,i,n,a,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=Th[u],h=Ch[u],c=Th[1-u],v=Ch[1-u];o&&hn("horizontal",l,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),d=l.getBoundingRect(),g=[-d.x,-d.y],y=X(n);o&&(y[f]=n[f]-d[f]-p);var m=this._layoutContentAndController(t,a,y,u,f,c,v,h);if(o){if(s==="end")g[u]+=m[f]+p;else{var _=d[f]+p;g[u]-=_,m[h]-=_}m[f]+=d[f]+p,g[1-u]+=m[v]+m[c]/2-d[c]/2,m[c]=Math.max(m[c],d[c]),m[v]=Math.min(m[v],d[v]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,i,n,a,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;hn(t.get("orient"),f,t.get("itemGap"),a?n.width:null,a?null:n.height),hn("horizontal",c,t.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),p=c.getBoundingRect(),d=this._showController=v[o]>n[o],g=[-v.x,-v.y];i||(g[a]=f[u]);var y=[0,0],m=[-p.x,-p.y],_=J(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var S=t.get("pageButtonPosition",!0);S==="end"?m[a]+=n[o]-p[o]:y[a]+=p[o]+_}m[1-a]+=v[s]/2-p[s]/2,f.setPosition(g),h.setPosition(y),c.setPosition(m);var w={x:0,y:0};if(w[o]=d?n[o]:v[o],w[s]=Math.max(v[s],p[s]),w[l]=Math.min(0,p[l]+m[1-a]),h.__rectSize=n[o],d){var x={x:0,y:0};x[o]=Math.max(n[o]-p[o]-_,0),x[s]=w[s],h.setClipPath(new pt({shape:x})),h.__rectSize=x[o]}else c.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(t);return T.pageIndex!=null&&Lt(f,{x:T.contentPosition[0],y:T.contentPosition[1]},d?t:null),this._updatePageInfoView(t,T),w},e.prototype._pageGo=function(t,i,n){var a=this._getPageInfo(i)[t];a!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:i.id})},e.prototype._updatePageInfoView=function(t,i){var n=this._controllerGroup;b(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=i[h]!=null,v=n.childOfName(f);v&&(v.setStyle("fill",c?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var a=n.childOfName("pageText"),o=t.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;a&&o&&a.setStyle("text",F(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var i=t.get("scrollDataIndex",!0),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=t.getOrient().index,s=Th[o],l=Ch[o],u=this._findTargetItemIndex(i),f=n.children(),h=f[u],c=f.length,v=c?1:0,p={contentPosition:[n.x,n.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return p;var d=S(h);p.contentPosition[o]=-d.s;for(var g=u+1,y=d,m=d,_=null;g<=c;++g)_=S(f[g]),(!_&&m.e>y.s+a||_&&!w(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),m=_;for(var g=u-1,y=d,m=d,_=null;g>=-1;--g)_=S(f[g]),(!_||!w(m,_.s))&&y.i<m.i&&(m=y,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=y.i),++p.pageCount,++p.pageIndex),y=_;return p;function S(x){if(x){var T=x.getBoundingRect(),C=T[l]+x[l];return{s:C,e:C+T[s],i:x.__legendDataIndex}}}function w(x,T){return x.e>=T&&x.s<=T+a}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var i,n=this.getContentGroup(),a;return n.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===t&&(i=s)}),i!=null?i:a},e.type="legend.scroll",e}(TT);function Nz(r){r.registerAction("legendScroll","legendscroll",function(e,t){var i=e.scrollDataIndex;i!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(i)})})}function zz(r){Ft(AT),r.registerComponentModel(Oz),r.registerComponentView(Bz),Nz(r)}function Vz(r){Ft(AT),Ft(zz)}var Fz=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=bi(Go.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Go),qp=_t();function Gz(r,e,t){qp(r).coordSysRecordMap.each(function(i){var n=i.dataZoomInfoMap.get(e.uid);n&&(n.getRange=t)})}function Hz(r,e){for(var t=qp(r).coordSysRecordMap,i=t.keys(),n=0;n<i.length;n++){var a=i[n],o=t.get(a),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||MT(t,o))}}}function MT(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function Wz(r,e){var t={model:e,containsPoint:vt(Yz,e),dispatchAction:vt(Uz,r),dataZoomInfoMap:null,controller:null},i=t.controller=new pb(r.getZr());return b(["pan","zoom","scrollMove"],function(n){i.on(n,function(a){var o=[];t.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}function Uz(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function Yz(r,e,t,i){return r.coordinateSystem.containPoint([t,i])}function Xz(r){var e,t="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},n=!0;return r.each(function(a){var o=a.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;i[t+s]>i[t+e]&&(e=s),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function $z(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var i=qp(t),n=i.coordSysRecordMap||(i.coordSysRecordMap=U());n.each(function(a){a.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=vT(a);b(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,Wz(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=U());f.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),n.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){MT(n,a);return}var f=Xz(l);o.enable(f.controlType,f.opt),o.setPointerChecker(a.containsPoint),Jo(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Zz=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,i,n){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),Gz(n,t,{pan:W(Ah.pan,this),zoom:W(Ah.zoom,this),scrollMove:W(Ah.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Hz(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(Up),Ah={zoom:function(r,e,t,i){var n=this.range,a=n.slice(),o=r.axisModels[0];if(o){var s=Mh[e](null,[i.originX,i.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/i.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(wn(0,a,[0,100],0,f.minSpan,f.maxSpan),this.range=a,n[0]!==a[0]||n[1]!==a[1])return a}},pan:p_(function(r,e,t,i,n,a){var o=Mh[i]([a.oldX,a.oldY],[a.newX,a.newY],e,n,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:p_(function(r,e,t,i,n,a){var o=Mh[i]([0,0],[a.scrollDelta,a.scrollDelta],e,n,t);return o.signal*(r[1]-r[0])*a.scrollDelta})};function p_(r){return function(e,t,i,n){var a=this.range,o=a.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,i,n);if(wn(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var Mh={grid:function(r,e,t,i,n){var a=t.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],a.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(r,e,t,i,n){var a=t.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(r,e,t,i,n){var a=t.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],a.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function qz(r){Yp(r),r.registerComponentModel(Fz),r.registerComponentView(Zz),$z(r)}var Kz=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=bi(Go.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Go),$a=pt,d_=7,jz=1,Dh=30,Jz=7,Za="horizontal",g_="vertical",Qz=5,tV=["line","bar","candlestick","scatter"],eV={easing:"cubicOut",duration:100,delay:0},rV=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,i){this.api=i,this._onBrush=W(this._onBrush,this),this._onBrushEnd=W(this._onBrushEnd,this)},e.prototype.render=function(t,i,n,a){if(r.prototype.render.apply(this,arguments),Jo(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Ro(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var i=this._displayables.sliderGroup=new nt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(i),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,i=this.api,n=t.get("brushSelect"),a=n?Jz:0,o=this._findCoordRect(),s={width:i.getWidth(),height:i.getHeight()},l=this._orient===Za?{right:s.width-o.x-o.width,top:s.height-Dh-d_-a,width:o.width,height:Dh}:{right:d_,top:o.y,width:Dh,height:o.height},u=_a(t.option);b(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var f=fe(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===g_&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,i=this._location,n=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===Za&&!o?{scaleY:l?1:-1,scaleX:1}:n===Za&&o?{scaleY:l?1:-1,scaleX:-1}:n===g_&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=i.x-u.x,t.y=i.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,i=this._size,n=this._displayables.sliderGroup,a=t.get("brushSelect");n.add(new $a({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new $a({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:W(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var i=this._size,n=this._shadowSize||[],a=t.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||i[0]!==n[0]||i[1]!==n[1]){var h=o.getDataExtent(l),c=(h[1]-h[0])*.3;h=[h[0]-c,h[1]+c];var v=[0,i[1]],p=[0,i[0]],d=[[i[0],0],[0,0]],g=[],y=p[1]/(o.count()-1),m=0,_=Math.round(o.count()/i[0]),S;o.each([l],function(A,M){if(_>0&&M%_){m+=y;return}var D=A==null||isNaN(A)||A==="",I=D?0:xt(A,h,v,!0);D&&!S&&M?(d.push([d[d.length-1][0],0]),g.push([g[g.length-1][0],0])):!D&&S&&(d.push([m,0]),g.push([m,0])),d.push([m,I]),g.push([m,I]),m+=y,S=D}),u=this._shadowPolygonPts=d,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[i[0],i[1]];var w=this.dataZoomModel;function x(A){var M=w.getModel(A?"selectedDataBackground":"dataBackground"),D=new nt,I=new Tr({shape:{points:u},segmentIgnoreThreshold:1,style:M.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new He({shape:{points:f},segmentIgnoreThreshold:1,style:M.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return D.add(I),D.add(P),D}for(var T=0;T<3;T++){var C=x(T===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,i=t.get("showDataShadow");if(i!==!1){var n,a=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();b(l,function(u){if(!n&&!(i!==!0&&st(tV,u.get("type"))<0)){var f=a.getComponent(hi(o),s).axis,h=iV(o),c,v=u.coordinateSystem;h!=null&&v.getOtherAxis&&(c=v.getOtherAxis(f).inverse),h=u.getData().mapDimension(h),n={thisAxis:f,series:u,thisDim:o,otherDim:h,otherAxisInverse:c}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,i=this._displayables,n=i.handles=[null,null],a=i.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,h=l.get("brushSelect"),c=i.filler=new $a({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(c),o.add(new $a({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:jz,fill:"rgba(0,0,0,0)"}})),b([0,1],function(_){var S=l.get("handleIcon");!Bl[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var w=Yt(S,-1,0,2,2,null,!0);w.attr({cursor:y_(this._orient),draggable:!0,drift:W(this._onDragMove,this,_),ondragend:W(this._onDragEnd,this),onmouseover:W(this._showDataInfo,this,!0),onmouseout:W(this._showDataInfo,this,!1),z2:5});var x=w.getBoundingRect(),T=l.get("handleSize");this._handleHeight=Q(T,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,w.setStyle(l.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),ci(w);var C=l.get("handleColor");C!=null&&(w.style.fill=C),o.add(n[_]=w);var A=l.getModel("textStyle");t.add(a[_]=new dt({silent:!0,invisible:!0,style:kt(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var v=c;if(h){var p=Q(l.get("moveHandleSize"),s[1]),d=i.moveHandle=new pt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=i.moveHandleIcon=Yt(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));v=i.moveZone=new pt({invisible:!0,shape:{y:s[1]-m,height:p+m}}),v.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(y),o.add(v)}v.attr({draggable:!0,cursor:y_(this._orient),drift:W(this._onDragMove,this,"all"),ondragstart:W(this._showDataInfo,this,!0),ondragend:W(this._onDragEnd,this),onmouseover:W(this._showDataInfo,this,!0),onmouseout:W(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[xt(t[0],[0,100],i,!0),xt(t[1],[0,100],i,!0)]},e.prototype._updateInterval=function(t,i){var n=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];wn(i,a,o,n.get("zoomLock")?"all":t,s.minSpan!=null?xt(s.minSpan,l,o,!0):null,s.maxSpan!=null?xt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=yr([xt(a[0],o,l,!0),xt(a[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var i=this._displayables,n=this._handleEnds,a=yr(n.slice()),o=this._size;b([0,1],function(v){var p=i.handles[v],d=this._handleHeight;p.attr({scaleX:d/2,scaleY:d/2,x:n[v]+(v?-1:1),y:o[1]/2-d/2})},this),i.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};i.moveHandle&&(i.moveHandle.setShape(s),i.moveZone.setShape(s),i.moveZone.getBoundingRect(),i.moveHandleIcon&&i.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=i.dataShadowSegs,u=[0,a[0],a[1],o[0]],f=0;f<l.length;f++){var h=l[f],c=h.getClipPath();c||(c=new pt,h.setClipPath(c)),c.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var i=this.dataZoomModel,n=this._displayables,a=n.handleLabels,o=this._orient,s=["",""];if(i.get("showDetail")){var l=i.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,h=t?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var c=yr(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(p){var d=pi(n.handles[p].parent,this.group),g=yu(p===0?"right":"left",d),y=this._handleWidth/2+Qz,m=er([c[p]+(p===0?-y:y),this._size[1]/2],d);a[p].setStyle({x:m[0],y:m[1],verticalAlign:o===Za?"middle":g,align:o===Za?g:"center",text:s[p]})}},e.prototype._formatLabel=function(t,i){var n=this.dataZoomModel,a=n.get("labelFormatter"),o=n.get("labelPrecision");(o==null||o==="auto")&&(o=i.getPixelPrecision());var s=t==null||isNaN(t)?"":i.type==="category"||i.type==="time"?i.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return K(a)?a(t,s):F(a)?a.replace("{value}",s):s},e.prototype._showDataInfo=function(t){t=this._dragging||t;var i=this._displayables,n=i.handleLabels;n[0].attr("invisible",!t),n[1].attr("invisible",!t),i.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](i.moveHandle,1)},e.prototype._onDragMove=function(t,i,n,a){this._dragging=!0,Vr(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=er([i,n],o,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var i=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>i[0]||n[1]<0||n[1]>i[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var i=t.offsetX,n=t.offsetY;this._brushStart=new rt(i,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var i=this._displayables.brushRect;if(this._brushing=!1,!!i){i.attr("ignore",!0);var n=i.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=yr([xt(n.x,o,s,!0),xt(n.x+n.width,o,s,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Vr(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,i){var n=this._displayables,a=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new $a({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,i),f=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:h[1]})},e.prototype._dispatchZoomAction=function(t){var i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?eV:null,start:i[0],end:i[1]})},e.prototype._findCoordRect=function(){var t,i=vT(this.dataZoomModel).infoList;if(!t&&i.length){var n=i[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var a=this.api.getWidth(),o=this.api.getHeight();t={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(Up);function iV(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function y_(r){return r==="vertical"?"ns-resize":"ew-resize"}function nV(r){r.registerComponentModel(Kz),r.registerComponentView(rV),Yp(r)}function aV(r){Ft(qz),Ft(nV)}var DT={get:function(r,e,t){var i=X((oV[r]||{})[e]);return t&&z(i)?i[i.length-1]:i}},oV={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},m_=Jt.mapVisual,sV=Jt.eachVisual,lV=z,__=b,uV=yr,fV=xt,jl=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,i,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,i){var n=this.option;!i&&dz(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var i=this.stateList;t=W(t,this),this.controllerVisuals=a_(this.option.controller,i,t),this.targetVisuals=a_(this.option.target,i,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,i=[];return t==null||t==="all"?this.ecModel.eachSeries(function(n,a){i.push(a)}):i=Ct(t),i},e.prototype.eachTargetSeries=function(t,i){b(this.getTargetSeriesIndices(),function(n){var a=this.ecModel.getSeriesByIndex(n);a&&t.call(i,a)},this)},e.prototype.isTargetSeries=function(t){var i=!1;return this.eachTargetSeries(function(n){n===t&&(i=!0)}),i},e.prototype.formatValueText=function(t,i,n){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;n=n||["<",">"],z(t)&&(t=t.slice(),u=!0);var f=i?t:u?[h(t[0]),h(t[1])]:h(t);if(F(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(K(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?n[0]+" "+f[1]:t[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1];return f;function h(c){return c===s[0]?"min":c===s[1]?"max":(+c).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,i=uV([t.min,t.max]);this._dataExtent=i},e.prototype.getDataDimensionIndex=function(t){var i=this.option.dimension;if(i!=null)return t.getDimensionIndex(i);for(var n=t.dimensions,a=n.length-1;a>=0;a--){var o=n[a],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,i=this.option,n={inRange:i.inRange,outOfRange:i.outOfRange},a=i.target||(i.target={}),o=i.controller||(i.controller={});et(a,n),et(o,n);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),f.call(this,o);function l(h){lV(i.color)&&!h.inRange&&(h.inRange={color:i.color.slice().reverse()}),h.inRange=h.inRange||{color:t.get("gradientColor")}}function u(h,c,v){var p=h[c],d=h[v];p&&!d&&(d=h[v]={},__(p,function(g,y){if(Jt.isValidType(y)){var m=DT.get(y,"inactive",s);m!=null&&(d[y]=m,y==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function f(h){var c=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,v=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol(),g=d||"roundRect";__(this.stateList,function(y){var m=this.itemSize,_=h[y];_||(_=h[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=c&&X(c)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=v&&X(v)||(s?m[0]:[m[0],m[0]])),_.symbol=m_(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var w=-1/0;sV(S,function(x){x>w&&(w=x)}),_.symbolSize=m_(S,function(x){return fV(x,[0,w],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(ft),S_=[20,140],hV=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,i){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=S_[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=S_[1])},e.prototype._resetRange=function(){var t=this.getExtent(),i=this.option.range;!i||i.auto?(t.auto=1,this.option.range=t):z(i)&&(i[0]>i[1]&&i.reverse(),i[0]=Math.max(i[0],t[0]),i[1]=Math.min(i[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),b(this.stateList,function(t){var i=this.option.controller[t].symbolSize;i&&i[0]!==i[1]&&(i[0]=i[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),i=yr((this.get("range")||[]).slice());return i[0]>t[1]&&(i[0]=t[1]),i[1]>t[1]&&(i[1]=t[1]),i[0]<t[0]&&(i[0]=t[0]),i[1]<t[0]&&(i[1]=t[0]),i},e.prototype.getValueState=function(t){var i=this.option.range,n=this.getExtent();return(i[0]<=n[0]||i[0]<=t)&&(i[1]>=n[1]||t<=i[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var i=[];return this.eachTargetSeries(function(n){var a=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&a.push(l)},this),i.push({seriesId:n.id,dataIndex:a})},this),i},e.prototype.getVisualMeta=function(t){var i=x_(this,"outOfRange",this.getExtent()),n=x_(this,"inRange",this.option.range.slice()),a=[];function o(v,p){a.push({value:v,color:t(v,p)})}for(var s=0,l=0,u=n.length,f=i.length;l<f&&(!n.length||i[l]<=n[0]);l++)i[l]<n[s]&&o(i[l],"outOfRange");for(var h=1;s<u;s++,h=0)h&&a.length&&o(n[s],"outOfRange"),o(n[s],"inRange");for(var h=1;l<f;l++)(!n.length||n[n.length-1]<i[l])&&(h&&(a.length&&o(a[a.length-1].value,"outOfRange"),h=0),o(i[l],"outOfRange"));var c=a.length;return{stops:a,outerColors:[c?a[0].color:"transparent",c?a[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=bi(jl.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(jl);function x_(r,e,t){if(t[0]===t[1])return t.slice();for(var i=200,n=(t[1]-t[0])/i,a=t[0],o=[],s=0;s<=i&&a<t[1];s++)o.push(a),a+=n;return o.push(t[1]),o}var IT=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,i){this.ecModel=t,this.api=i},e.prototype.render=function(t,i,n,a){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,i,n,a)},e.prototype.renderBackground=function(t){var i=this.visualMapModel,n=ma(i.get("padding")||0),a=t.getBoundingRect();t.add(new pt({z2:-1,silent:!0,shape:{x:a.x-n[3],y:a.y-n[0],width:a.width+n[3]+n[1],height:a.height+n[0]+n[2]},style:{fill:i.get("backgroundColor"),stroke:i.get("borderColor"),lineWidth:i.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,i,n){n=n||{};var a=n.forceState,o=this.visualMapModel,s={};if(i==="color"){var l=o.get("contentColor");s.color=l}function u(v){return s[v]}function f(v,p){s[v]=p}var h=o.controllerVisuals[a||o.getValueState(t)],c=Jt.prepareVisualTypes(h);return b(c,function(v){var p=h[v];n.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",p=h.__alphaForOpacity),Jt.dependsOn(v,i)&&p&&p.applyVisual(t,u,f)}),s[i]},e.prototype.positionGroup=function(t){var i=this.visualMapModel,n=this.api;qc(t,i.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,i,n,a){},e.type="visualMap",e}(At),w_=[["left","right","width"],["top","bottom","height"]];function PT(r,e,t){var i=r.option,n=i.align;if(n!=null&&n!=="auto")return n;for(var a={width:e.getWidth(),height:e.getHeight()},o=i.orient==="horizontal"?1:0,s=w_[o],l=[0,null,10],u={},f=0;f<3;f++)u[w_[1-o][f]]=l[f],u[s[f]]=f===2?t[0]:i[s[f]];var h=[["x","width",3],["y","height",0]][o],c=fe(u,a,i.padding);return s[(c.margin[h[2]]||0)+c[h[0]]+c[h[1]]*.5<a[h[1]]*.5?0:1]}function pl(r,e){return b(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var vr=xt,vV=b,b_=Math.min,Ih=Math.max,cV=12,pV=6,dV=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,i){r.prototype.init.call(this,t,i),this._hoverLinkFromSeriesMouseOver=W(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=W(this._hideIndicator,this)},e.prototype.doRender=function(t,i,n,a){(!a||a.type!=="selectDataRange"||a.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,i=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(i);var n=t.get("text");this._renderEndsText(i,n,0),this._renderEndsText(i,n,1),this._updateView(!0),this.renderBackground(i),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(i)},e.prototype._renderEndsText=function(t,i,n){if(i){var a=i[1-n];a=a!=null?a+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,n===0?-s:l[1]+s],u),h=this._applyTransform(n===0?"bottom":"top",u),c=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new dt({style:kt(v,{x:f[0],y:f[1],verticalAlign:c==="horizontal"?"middle":h,align:c==="horizontal"?h:"center",text:a})}))}},e.prototype._renderBar=function(t){var i=this.visualMapModel,n=this._shapes,a=i.itemSize,o=this._orient,s=this._useHandle,l=PT(i,this.api,a),u=n.mainGroup=this._createBarGroup(l),f=new nt;u.add(f),f.add(n.outOfRange=T_()),f.add(n.inRange=T_(null,s?A_(this._orient):null,W(this._dragHandle,this,"all",!1),W(this._dragHandle,this,"all",!0))),f.setClipPath(new pt({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var h=i.textStyleModel.getTextRect("国"),c=Ih(h.width,h.height);s&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(i,u,0,a,c,o),this._createHandle(i,u,1,a,c,o)),this._createIndicator(i,u,a,c,o),t.add(u)},e.prototype._createHandle=function(t,i,n,a,o,s){var l=W(this._dragHandle,this,n,!1),u=W(this._dragHandle,this,n,!0),f=rr(t.get("handleSize"),a[0]),h=Yt(t.get("handleIcon"),-f/2,-f/2,f,f,null,!0),c=A_(this._orient);h.attr({cursor:c,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){Vr(y.event)}}),h.x=a[0]/2,h.useStyle(t.getModel("handleStyle").getItemStyle()),h.setStyle({strokeNoScale:!0,strokeFirst:!0}),h.style.lineWidth*=2,h.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Pc(h,!0),i.add(h);var v=this.visualMapModel.textStyleModel,p=new dt({cursor:c,draggable:!0,drift:l,onmousemove:function(y){Vr(y.event)},ondragend:u,style:kt(v,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var d=[f,0],g=this._shapes;g.handleThumbs[n]=h,g.handleLabelPoints[n]=d,g.handleLabels[n]=p},e.prototype._createIndicator=function(t,i,n,a,o){var s=rr(t.get("indicatorSize"),n[0]),l=Yt(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof he){var f=l.style;l.useStyle(O({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);i.add(l);var h=this.visualMapModel.textStyleModel,c=new dt({silent:!0,invisible:!0,style:kt(h,{x:0,y:0,text:""})});this.group.add(c);var v=[(o==="horizontal"?a/2:pV)+n[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=c,p.indicatorLabelPoint=v,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,i,n,a){if(this._useHandle){if(this._dragging=!i,!i){var o=this._applyTransform([n,a],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}i===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),i?!this._hovering&&this._clearHoverLinkToSeries():C_(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,i=this._dataInterval=t.getSelected(),n=t.getExtent(),a=[0,t.itemSize[1]];this._handleEnds=[vr(i[0],n,a,!0),vr(i[1],n,a,!0)]},e.prototype._updateInterval=function(t,i){i=i||0;var n=this.visualMapModel,a=this._handleEnds,o=[0,n.itemSize[1]];wn(i,a,o,t,0);var s=n.getExtent();this._dataInterval=[vr(a[0],o,s,!0),vr(a[1],o,s,!0)]},e.prototype._updateView=function(t){var i=this.visualMapModel,n=i.getExtent(),a=this._shapes,o=[0,i.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,n,s,"inRange"),u=this._createBarVisual(n,n,o,"outOfRange");a.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),a.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,i,n,a){var o={forceState:a,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(n,l);return{barColor:new Ko(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,i){var n=100,a=[],o=(t[1]-t[0])/n;a.push({color:this.getControllerVisual(t[0],"color",i),offset:0});for(var s=1;s<n;s++){var l=t[0]+o*s;if(l>t[1])break;a.push({color:this.getControllerVisual(l,"color",i),offset:s/n})}return a.push({color:this.getControllerVisual(t[1],"color",i),offset:1}),a},e.prototype._createBarPoints=function(t,i){var n=this.visualMapModel.itemSize;return[[n[0]-i[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-i[1],t[1]]]},e.prototype._createBarGroup=function(t){var i=this._orient,n=this.visualMapModel.get("inverse");return new nt(i==="horizontal"&&!n?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:i==="horizontal"&&n?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:i==="vertical"&&!n?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,i){if(this._useHandle){var n=this._shapes,a=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=a.itemSize,u=a.getExtent();vV([0,1],function(f){var h=o[f];h.setStyle("fill",i.handlesColor[f]),h.y=t[f];var c=vr(t[f],[0,l[1]],u,!0),v=this.getControllerVisual(c,"symbolSize");h.scaleX=h.scaleY=v/l[0],h.x=l[0]-v/2;var p=er(n.handleLabelPoints[f],pi(h,this.group));s[f].setStyle({x:p[0],y:p[1],text:a.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,i,n,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,h=f.indicator;if(h){h.attr("invisible",!1);var c={convertOpacityToAlpha:!0},v=this.getControllerVisual(t,"color",c),p=this.getControllerVisual(t,"symbolSize"),d=vr(t,s,u,!0),g=l[0]-p/2,y={x:h.x,y:h.y};h.y=d,h.x=g;var m=er(f.indicatorLabelPoint,pi(h,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),w=this._orient,x=w==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(i),verticalAlign:x?S:"middle",align:x?"center":S});var T={x:g,y:d,style:{fill:v}},C={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};h.x=y.x,h.y=y.y,h.animateTo(T,A),_.animateTo(C,A)}else h.attr(T),_.attr(C);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var D=0;D<M.length;D++)this.api.enterBlur(M[D])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(i){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,a=t._applyTransform([i.offsetX,i.offsetY],t._shapes.mainGroup,!0,!0);a[1]=b_(Ih(0,a[1]),n[1]),t._doHoverLinkToSeries(a[1],0<=a[0]&&a[0]<=n[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,i){var n=this.visualMapModel,a=n.itemSize;if(n.option.hoverLink){var o=[0,a[1]],s=n.getExtent();t=b_(Ih(o[0],t),o[1]);var l=gV(n,s,o),u=[t-l,t+l],f=vr(t,o,s,!0),h=[vr(u[0],o,s,!0),vr(u[1],o,s,!0)];u[0]<o[0]&&(h[0]=-1/0),u[1]>o[1]&&(h[1]=1/0),i&&(h[0]===-1/0?this._showIndicator(f,h[1],"< ",l):h[1]===1/0?this._showIndicator(f,h[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var c=this._hoverLinkDataIndices,v=[];(i||C_(n))&&(v=this._hoverLinkDataIndices=n.findTargetDataIndices(h));var p=yM(c,v);this._dispatchHighDown("downplay",pl(p[0],n)),this._dispatchHighDown("highlight",pl(p[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var i;if(an(t.target,function(l){var u=it(l);if(u.dataIndex!=null)return i=u,!0},!0),!!i){var n=this.ecModel.getSeriesByIndex(i.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(n)){var o=n.getData(i.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),i.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var i=this._shapes.handleLabels;if(i)for(var n=0;n<i.length;n++)this.api.leaveBlur(i[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",pl(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,i,n,a){var o=pi(i,a?null:this.group);return z(t)?er(t,o,n):yu(t,o,n)},e.prototype._dispatchHighDown=function(t,i){i&&i.length&&this.api.dispatchAction({type:t,batch:i})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(IT);function T_(r,e,t,i){return new Tr({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(n){Vr(n.event)},ondragend:i})}function gV(r,e,t){var i=cV/2,n=r.get("hoverLinkDataSize");return n&&(i=vr(n,e,t,!0)/2),i}function C_(r){var e=r.get("hoverLinkOnHandle");return!!(e==null?r.get("realtime"):e)}function A_(r){return r==="vertical"?"ns-resize":"ew-resize"}var yV={type:"selectDataRange",event:"dataRangeSelected",update:"update"},mV=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},_V=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(i){var n=r.pipelineContext;!i.isTargetSeries(r)||n&&n.large||t.push(gz(i.stateList,i.targetVisuals,W(i.getValueState,i),i.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),i=[];e.eachComponent("visualMap",function(n){if(n.isTargetSeries(r)){var a=n.getVisualMeta(W(SV,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(t);o>=0&&(a.dimension=o,i.push(a))}}),r.getData().setVisual("visualMeta",i)}}];function SV(r,e,t,i){for(var n=e.targetVisuals[i],a=Jt.prepareVisualTypes(n),o={color:Nx(r.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],f=n[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(t,h,c)}return o.color;function h(v){return o[v]}function c(v,p){o[v]=p}}var M_=b;function xV(r){var e=r&&r.visualMap;z(e)||(e=e?[e]:[]),M_(e,function(t){if(t){Gn(t,"splitList")&&!Gn(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var i=t.pieces;i&&z(i)&&M_(i,function(n){Y(n)&&(Gn(n,"start")&&!Gn(n,"min")&&(n.min=n.start),Gn(n,"end")&&!Gn(n,"max")&&(n.max=n.end))})}})}function Gn(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var D_=!1;function LT(r){D_||(D_=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(yV,mV),b(_V,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(xV))}function wV(r){r.registerComponentModel(hV),r.registerComponentView(dV),LT(r)}var bV=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,i){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],TV[this._mode].call(this,this._pieceList),this._resetSelected(t,i);var a=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=X(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=V(this._pieceList,function(l){return l=X(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,i={},n=Jt.listVisualTypes(),a=this.isCategory();b(t.pieces,function(s){b(n,function(l){s.hasOwnProperty(l)&&(i[l]=1)})}),b(i,function(s,l){var u=!1;b(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&b(this.stateList,function(f){(t[f]||(t[f]={}))[l]=DT.get(l,f==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,i){var n=this.option,a=this._pieceList,o=(i?n:t).selected||{};if(n.selected=o,b(a,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),n.selectedMode==="single"){var s=!1;b(a,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=X(t)},e.prototype.getValueState=function(t){var i=Jt.findPieceIndex(t,this._pieceList);return i!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[i])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var i=[],n=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=Jt.findPieceIndex(l,n);f===t&&o.push(u)},this),i.push({seriesId:a.id,dataIndex:o})},this),i},e.prototype.getRepresentValue=function(t){var i;if(this.isCategory())i=t.value;else if(t.value!=null)i=t.value;else{var n=t.interval||[];i=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return i},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var i=[],n=["",""],a=this;function o(f,h){var c=a.getRepresentValue({interval:f});h||(h=a.getValueState(c));var v=t(c,h);f[0]===-1/0?n[0]=v:f[1]===1/0?n[1]=v:i.push({value:f[0],color:v},{value:f[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return b(s,function(f){var h=f.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:i,outerColors:n}},e.type="visualMap.piecewise",e.defaultOption=bi(jl.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(jl),TV={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),i=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var a=(i[1]-i[0])/n;+a.toFixed(t)!==a&&t<5;)t++;e.precision=t,a=+a.toFixed(t),e.minOpen&&r.push({interval:[-1/0,i[0]],close:[0,0]});for(var o=0,s=i[0];o<n;s+=a,o++){var l=o===n-1?i[1]:s+a;r.push({interval:[s,l],close:[1,1]})}e.maxOpen&&r.push({interval:[i[1],1/0],close:[0,0]}),ev(r),b(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;b(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),I_(e,r)},pieces:function(r){var e=this.option;b(e.pieces,function(t,i){Y(t)||(t={value:t});var n={text:"",index:i};if(t.label!=null&&(n.text=t.label),t.hasOwnProperty("value")){var a=n.value=t.value;n.interval=[a,a],n.close=[1,1]}else{for(var o=n.interval=[],s=n.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],h=0;h<2;h++){for(var c=[["gte","gt","min"],["lte","lt","max"]][h],v=0;v<3&&o[h]==null;v++)o[h]=t[c[v]],s[h]=l[v],f[h]=v===2;o[h]==null&&(o[h]=u[h])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(n.value=o[0])}n.visual=Jt.retrieveVisuals(t),r.push(n)},this),I_(e,r),ev(r),b(r,function(t){var i=t.close,n=[["<","≤"][i[1]],[">","≥"][i[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,n)},this)}};function I_(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var CV=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var i=this.visualMapModel,n=i.get("textGap"),a=i.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=i.itemSize,f=this._getViewData(),h=f.endsText,c=zr(i.get("showLabel",!0),!h);h&&this._renderEndsText(t,h[0],u,c,l),b(f.viewPieceList,function(v){var p=v.piece,d=new nt;d.onclick=W(this._onItemClick,this,p),this._enableHoverLink(d,v.indexInModelPieceList);var g=i.getRepresentValue(p);if(this._createItemSymbol(d,g,[0,0,u[0],u[1]]),c){var y=this.visualMapModel.getValueState(g);d.add(new dt({style:{x:l==="right"?-n:u[0]+n,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(d)},this),h&&this._renderEndsText(t,h[1],u,c,l),hn(i.get("orient"),t,i.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,i){var n=this;t.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:pl(s.findTargetDataIndices(i),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,i=t.option;if(i.orient==="vertical")return PT(t,this.api,t.itemSize);var n=i.align;return(!n||n==="auto")&&(n="left"),n},e.prototype._renderEndsText=function(t,i,n,a,o){if(i){var s=new nt,l=this.visualMapModel.textStyleModel;s.add(new dt({style:kt(l,{x:a?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:a?o:"center",text:i})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,i=V(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=t.get("text"),a=t.get("orient"),o=t.get("inverse");return(a==="horizontal"?o:!o)?i.reverse():n&&(n=n.slice().reverse()),{viewPieceList:i,endsText:n}},e.prototype._createItemSymbol=function(t,i,n){t.add(Yt(this.getControllerVisual(i,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(i,"color")))},e.prototype._onItemClick=function(t){var i=this.visualMapModel,n=i.option,a=n.selectedMode;if(a){var o=X(n.selected),s=i.getSelectedMapKey(t);a==="single"||a===!0?(o[s]=!0,b(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(IT);function AV(r){r.registerComponentModel(bV),r.registerComponentView(CV),LT(r)}function MV(r){Ft(wV),Ft(AV)}var DV={label:{enabled:!0},decal:{show:!1}},P_=_t(),IV={};function PV(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var i=X(DV);et(i.label,r.getLocaleModel().get("aria"),!1),et(t.option,i,!1),n(),a();function n(){var u=t.getModel("decal"),f=u.get("show");if(f){var h=U();r.eachSeries(function(c){if(!c.isColorBySeries()){var v=h.get(c.type);v||(v={},h.set(c.type,v)),P_(c).scope=v}}),r.eachRawSeries(function(c){if(r.isSeriesFiltered(c))return;if(K(c.enableAriaDecal)){c.enableAriaDecal();return}var v=c.getData();if(c.isColorBySeries()){var m=Lg(c.ecModel,c.name,IV,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,m))}else{var p=c.getRawData(),d={},g=P_(c).scope;v.each(function(w){var x=v.getRawIndex(w);d[x]=w});var y=p.count();p.each(function(w){var x=d[w],T=p.getName(w)||w+"",C=Lg(c.ecModel,T,g,y),A=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(A,C))})}function S(w,x){var T=w?O(O({},x),w):x;return T.dirty=!0,T}})}}function a(){var u=e.getZr().dom;if(u){var f=r.getLocaleModel().get("aria"),h=t.getModel("label");if(h.option=q(h.option,f),!!h.get("enabled")){if(h.get("description")){u.setAttribute("aria-label",h.get("description"));return}var c=r.getSeriesCount(),v=h.get(["data","maxCount"])||10,p=h.get(["series","maxCount"])||10,d=Math.min(c,p),g;if(!(c<1)){var y=s();if(y){var m=h.get(["general","withTitle"]);g=o(m,{title:y})}else g=h.get(["general","withoutTitle"]);var _=[],S=c>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);g+=o(S,{seriesCount:c}),r.eachSeries(function(C,A){if(A<d){var M=void 0,D=C.get("name"),I=D?"withName":"withoutName";M=c>1?h.get(["series","multiple",I]):h.get(["series","single",I]),M=o(M,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var P=C.getData();if(P.count()>v){var L=h.get(["data","partialData"]);M+=o(L,{displayCnt:v})}else M+=h.get(["data","allData"]);for(var R=h.get(["data","separator","middle"]),k=h.get(["data","separator","end"]),G=[],B=0;B<P.count();B++)if(B<v){var N=P.getName(B),H=P.getValues(B),Z=h.get(["data",N?"withName":"withoutName"]);G.push(o(Z,{name:N,value:H.join(R)}))}M+=G.join(R)+k,_.push(M)}});var w=h.getModel(["series","multiple","separator"]),x=w.get("middle"),T=w.get("end");g+=_.join(x)+T,u.setAttribute("aria-label",g)}}}}function o(u,f){if(!F(u))return u;var h=u;return b(f,function(c,v){h=h.replace(new RegExp("\\{\\s*"+v+"\\s*\\}","g"),c)}),h}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var f=r.getLocaleModel().get(["series","typeNames"]);return f[u]||f.chart}}function LV(r){if(!(!r||!r.aria)){var e=r.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},b(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function RV(r){r.registerPreprocessor(LV),r.registerVisual(r.PRIORITY.VISUAL.ARIA,PV)}var Ph=Math.sin,Lh=Math.cos,RT=Math.PI,Xi=Math.PI*2,EV=180/RT,ET=function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,i,n,a,o){this._add("C",e,t,i,n,a,o)},r.prototype.quadraticCurveTo=function(e,t,i,n){this._add("Q",e,t,i,n)},r.prototype.arc=function(e,t,i,n,a,o){this.ellipse(e,t,i,i,0,n,a,o)},r.prototype.ellipse=function(e,t,i,n,a,o,s,l){var u=s-o,f=!l,h=Math.abs(u),c=si(h-Xi)||(f?u>=Xi:-u>=Xi),v=u>0?u%Xi:u%Xi+Xi,p=!1;c?p=!0:si(h)?p=!1:p=v>=RT==!!f;var d=e+i*Lh(o),g=t+n*Ph(o);this._start&&this._add("M",d,g);var y=Math.round(a*EV);if(c){var m=1/this._p,_=(f?1:-1)*(Xi-m);this._add("A",i,n,y,1,+f,e+i*Lh(o+_),t+n*Ph(o+_)),m>.01&&this._add("A",i,n,y,0,+f,d,g)}else{var S=e+i*Lh(s),w=t+n*Ph(s);this._add("A",i,n,y,+p,+f,S,w)}},r.prototype.rect=function(e,t,i,n){this._add("M",e,t),this._add("l",i,0),this._add("l",0,n),this._add("l",-i,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,i,n,a,o,s,l,u){for(var f=[],h=this._p,c=1;c<arguments.length;c++){var v=arguments[c];if(isNaN(v)){this._invalid=!0;return}f.push(Math.round(v*h)/h)}this._d.push(e+f.join(" ")),this._start=e==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r}(),Kp="none",kV=Math.round;function OV(r){var e=r.fill;return e!=null&&e!==Kp}function BV(r){var e=r.stroke;return e!=null&&e!==Kp}var Qv=["lineCap","miterLimit","lineJoin"],NV=V(Qv,function(r){return"stroke-"+r.toLowerCase()});function zV(r,e,t,i){var n=e.opacity==null?1:e.opacity;if(t instanceof he){r("opacity",n);return}if(OV(e)){var a=wo(e.fill);r("fill",a.color);var o=e.fillOpacity!=null?e.fillOpacity*a.opacity*n:a.opacity*n;o<1&&r("fill-opacity",o)}else r("fill",Kp);if(BV(e)){var s=wo(e.stroke);r("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,f=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*n:s.opacity*n,h=e.strokeFirst;if(u!==1&&r("stroke-width",u),h&&r("paint-order",h?"stroke":"fill"),f<1&&r("stroke-opacity",f),e.lineDash){var c=op(t),v=c[0],p=c[1];v&&(p=kV(p||0),r("stroke-dasharray",v.join(",")),(p||i)&&r("stroke-dashoffset",p))}for(var d=0;d<Qv.length;d++){var g=Qv[d];if(e[g]!==Ml[g]){var y=e[g]||Ml[g];y&&r(NV[d],y)}}}}var kT="http://www.w3.org/2000/svg",OT="http://www.w3.org/1999/xlink",VV="http://www.w3.org/2000/xmlns/",FV="http://www.w3.org/XML/1998/namespace",L_="ecmeta_";function BT(r){return document.createElementNS(kT,r)}function Bt(r,e,t,i,n){return{tag:r,attrs:t||{},children:i,text:n,key:e}}function GV(r,e){var t=[];if(e)for(var i in e){var n=e[i],a=i;n!==!1&&(n!==!0&&n!=null&&(a+='="'+n+'"'),t.push(a))}return"<"+r+" "+t.join(" ")+">"}function HV(r){return"</"+r+">"}function jp(r,e){e=e||{};var t=e.newline?`
- `:"";function i(n){var a=n.children,o=n.tag,s=n.attrs,l=n.text;return GV(o,s)+(o!=="style"?ne(l):l||"")+(a?""+t+V(a,function(u){return i(u)}).join(t)+t:"")+HV(o)}return i(r)}function WV(r,e,t){t=t||{};var i=t.newline?`
- `:"",n=" {"+i,a=i+"}",o=V(at(r),function(l){return l+n+V(at(r[l]),function(u){return u+":"+r[l][u]+";"}).join(i)+a}).join(i),s=V(at(e),function(l){return"@keyframes "+l+n+V(at(e[l]),function(u){return u+n+V(at(e[l][u]),function(f){var h=e[l][u][f];return f==="d"&&(h='path("'+h+'")'),f+":"+h+";"}).join(i)+a}).join(i)+a}).join(i);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(i)}function tc(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function R_(r,e,t,i){return Bt("svg","root",{width:r,height:e,xmlns:kT,"xmlns:xlink":OT,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+r+" "+e:!1},t)}var UV=0;function NT(){return UV++}var E_={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Ki="transform-origin";function YV(r,e,t){var i=O({},r.shape);O(i,e),r.buildPath(t,i);var n=new ET;return n.reset(w1(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function XV(r,e){var t=e.originX,i=e.originY;(t||i)&&(r[Ki]=t+"px "+i+"px")}var $V={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function zT(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function ZV(r,e,t){var i=r.shape.paths,n={},a,o;if(b(i,function(l){var u=tc(t.zrId);u.animation=!0,Uu(l,{},u,!0);var f=u.cssAnims,h=u.cssNodes,c=at(f),v=c.length;if(v){o=c[v-1];var p=f[o];for(var d in p){var g=p[d];n[d]=n[d]||{d:""},n[d].d+=g.d||""}for(var y in h){var m=h[y].animation;m.indexOf(o)>=0&&(a=m)}}}),!!a){e.d=!1;var s=zT(n,t);return a.replace(o,s)}}function k_(r){return F(r)?E_[r]?"cubic-bezier("+E_[r]+")":cc(r)?r:"":""}function Uu(r,e,t,i){var n=r.animators,a=n.length,o=[];if(r instanceof du){var s=ZV(r,e,t);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var f=n[u],h=[f.getMaxTime()/1e3+"s"],c=k_(f.getClip().easing),v=f.getDelay();c?h.push(c):h.push("linear"),v&&h.push(v/1e3+"s"),f.getLoop()&&h.push("infinite");var p=h.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(f)}function d(m){var _=m[1],S=_.length,w={},x={},T={},C="animation-timing-function";function A(Nt,Mt,wt){for(var j=Nt.getTracks(),ut=Nt.getMaxTime(),ve=0;ve<j.length;ve++){var Dt=j[ve];if(Dt.needsAnimate()){var Ye=Dt.keyframes,ce=Dt.propName;if(wt&&(ce=wt(ce)),ce)for(var Mr=0;Mr<Ye.length;Mr++){var bn=Ye[Mr],Xe=Math.round(bn.time/ut*100)+"%",rs=k_(bn.easing),Zr=bn.rawValue;(F(Zr)||mt(Zr))&&(Mt[Xe]=Mt[Xe]||{},Mt[Xe][ce]=bn.rawValue,rs&&(Mt[Xe][C]=rs))}}}}for(var M=0;M<S;M++){var D=_[M],I=D.targetName;I?I==="shape"&&A(D,x):!i&&A(D,w)}for(var P in w){var L={};M1(L,r),O(L,w[P]);var R=b1(L),k=w[P][C];T[P]=R?{transform:R}:{},XV(T[P],L),k&&(T[P][C]=k)}var G,B=!0;for(var P in x){T[P]=T[P]||{};var N=!G,k=x[P][C];N&&(G=new mi);var H=G.len();G.reset(),T[P].d=YV(r,x[P],G);var Z=G.len();if(!N&&H!==Z){B=!1;break}k&&(T[P][C]=k)}if(!B)for(var P in T)delete T[P].d;if(!i)for(var M=0;M<S;M++){var D=_[M],I=D.targetName;I==="style"&&A(D,T,function(j){return $V[j]})}for(var $=at(T),ot=!0,ct,M=1;M<$.length;M++){var Rt=$[M-1],St=$[M];if(T[Rt][Ki]!==T[St][Ki]){ot=!1;break}ct=T[Rt][Ki]}if(ot&&ct){for(var P in T)T[P][Ki]&&delete T[P][Ki];e[Ki]=ct}if(bt($,function(Nt){return at(T[Nt]).length>0}).length){var $t=zT(T,t);return $t+" "+m[0]+" both"}}for(var g in l){var s=d(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+NT();t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}function qV(r,e,t){if(!r.ignore)if(r.isSilent()){var i={"pointer-events":"none"};O_(i,e,t)}else{var n=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},a=n.fill;if(!a){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(a=bl(l))}var u=n.lineWidth;if(u){var f=!n.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var i={cursor:"pointer"};a&&(i.fill=a),n.stroke&&(i.stroke=n.stroke),u&&(i["stroke-width"]=u),O_(i,e,t)}}function O_(r,e,t,i){var n=JSON.stringify(r),a=t.cssStyleCache[n];a||(a=t.zrId+"-cls-"+NT(),t.cssStyleCache[n]=a,t.cssNodes["."+a+":hover"]=r),e.class=e.class?e.class+" "+a:a}var Ho=Math.round;function VT(r){return r&&F(r.src)}function FT(r){return r&&K(r.toDataURL)}function Jp(r,e,t,i){zV(function(n,a){var o=n==="fill"||n==="stroke";o&&x1(a)?HT(e,r,n,i):o&&dc(a)?WT(t,r,n,i):o&&a==="none"?r[n]="transparent":r[n]=a},e,t,!1),rF(t,r,i)}function Qp(r,e){var t=L1(e);t&&(t.each(function(i,n){i!=null&&(r[(L_+n).toLowerCase()]=i+"")}),e.isSilent()&&(r[L_+"silent"]="true"))}function B_(r){return si(r[0]-1)&&si(r[1])&&si(r[2])&&si(r[3]-1)}function KV(r){return si(r[4])&&si(r[5])}function td(r,e,t){if(e&&!(KV(e)&&B_(e))){var i=1e4;r.transform=B_(e)?"translate("+Ho(e[4]*i)/i+" "+Ho(e[5]*i)/i+")":_A(e)}}function N_(r,e,t){for(var i=r.points,n=[],a=0;a<i.length;a++)n.push(Ho(i[a][0]*t)/t),n.push(Ho(i[a][1]*t)/t);e.points=n.join(" ")}function z_(r){return!r.smooth}function jV(r){var e=V(r,function(t){return typeof t=="string"?[t,t]:t});return function(t,i,n){for(var a=0;a<e.length;a++){var o=e[a],s=t[o[0]];s!=null&&(i[o[1]]=Ho(s*n)/n)}}}var JV={circle:[jV(["cx","cy","r"])],polyline:[N_,z_],polygon:[N_,z_]};function QV(r){for(var e=r.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function GT(r,e){var t=r.style,i=r.shape,n=JV[r.type],a={},o=e.animation,s="path",l=r.style.strokePercent,u=e.compress&&w1(r)||4;if(n&&!e.willUpdate&&!(n[1]&&!n[1](i))&&!(o&&QV(r))&&!(l<1)){s=r.type;var f=Math.pow(10,u);n[0](i,a,f)}else{var h=!r.path||r.shapeChanged();r.path||r.createPathProxy();var c=r.path;h&&(c.beginPath(),r.buildPath(c,r.shape),r.pathUpdated());var v=c.getVersion(),p=r,d=p.__svgPathBuilder;(p.__svgPathVersion!==v||!d||l!==p.__svgPathStrokePercent)&&(d||(d=p.__svgPathBuilder=new ET),d.reset(u),c.rebuildPath(d,l),d.generateStr(),p.__svgPathVersion=v,p.__svgPathStrokePercent=l),a.d=d.getStr()}return td(a,r.transform),Jp(a,t,r,e),Qp(a,r),e.animation&&Uu(r,a,e),e.emphasis&&qV(r,a,e),Bt(s,r.id+"",a)}function tF(r,e){var t=r.style,i=t.image;if(i&&!F(i)&&(VT(i)?i=i.src:FT(i)&&(i=i.toDataURL())),!!i){var n=t.x||0,a=t.y||0,o=t.width,s=t.height,l={href:i,width:o,height:s};return n&&(l.x=n),a&&(l.y=a),td(l,r.transform),Jp(l,t,r,e),Qp(l,r),e.animation&&Uu(r,l,e),Bt("image",r.id+"",l)}}function eF(r,e){var t=r.style,i=t.text;if(i!=null&&(i+=""),!(!i||isNaN(t.x)||isNaN(t.y))){var n=t.font||gi,a=t.x||0,o=xA(t.y||0,nu(n),t.textBaseline),s=SA[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(nS(t)){var u="",f=t.fontStyle,h=iS(t.fontSize);if(!parseFloat(h))return;var c=t.fontFamily||Y_,v=t.fontWeight;u+="font-size:"+h+";font-family:"+c+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),v&&v!=="normal"&&(u+="font-weight:"+v+";"),l.style=u}else l.style="font: "+n;return i.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),td(l,r.transform),Jp(l,t,r,e),Qp(l,r),e.animation&&Uu(r,l,e),Bt("text",r.id+"",l,void 0,i)}}function V_(r,e){if(r instanceof gt)return GT(r,e);if(r instanceof he)return tF(r,e);if(r instanceof ra)return eF(r,e)}function rF(r,e,t){var i=r.style;if(wA(i)){var n=bA(r),a=t.shadowCache,o=a[n];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=i.shadowOffsetX||0,h=i.shadowOffsetY||0,c=i.shadowBlur,v=wo(i.shadowColor),p=v.opacity,d=v.color,g=c/2/l,y=c/2/u,m=g+" "+y;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=Bt("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Bt("feDropShadow","",{dx:f/l,dy:h/u,stdDeviation:m,"flood-color":d,"flood-opacity":p})]),a[n]=o}e.filter=iu(o)}}function HT(r,e,t,i){var n=r[t],a,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(_1(n))a="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(S1(n))a="radialGradient",o.cx=J(n.x,.5),o.cy=J(n.y,.5),o.r=J(n.r,.5);else return;for(var s=n.colorStops,l=[],u=0,f=s.length;u<f;++u){var h=Uh(s[u].offset)*100+"%",c=s[u].color,v=wo(c),p=v.color,d=v.opacity,g={offset:h};g["stop-color"]=p,d<1&&(g["stop-opacity"]=d),l.push(Bt("stop",u+"",g))}var y=Bt(a,"",o,l),m=jp(y),_=i.gradientCache,S=_[m];S||(S=i.zrId+"-g"+i.gradientIdx++,_[m]=S,o.id=S,i.defs[S]=Bt(a,S,o,l)),e[t]=iu(S)}function WT(r,e,t,i){var n=r.style[t],a=r.getBoundingRect(),o={},s=n.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",h;if(m1(n)){var c=n.imageWidth,v=n.imageHeight,p=void 0,d=n.image;if(F(d)?p=d:VT(d)?p=d.src:FT(d)&&(p=d.toDataURL()),typeof Image=="undefined"){var g="Image width/height must been given explictly in svg-ssr renderer.";ue(c,g),ue(v,g)}else if(c==null||v==null){var y=function(M,D){if(M){var I=M.elm,P=c||D.width,L=v||D.height;M.tag==="pattern"&&(u?(L=1,P/=a.width):f&&(P=1,L/=a.height)),M.attrs.width=P,M.attrs.height=L,I&&(I.setAttribute("width",P),I.setAttribute("height",L))}},m=Tc(p,null,r,function(M){l||y(x,M),y(h,M)});m&&m.width&&m.height&&(c=c||m.width,v=v||m.height)}h=Bt("image","img",{href:p,width:c,height:v}),o.width=c,o.height=v}else n.svgElement&&(h=X(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(h){var _,S;l?_=S=1:u?(S=1,_=o.width/a.width):f?(_=1,S=o.height/a.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var w=b1(n);w&&(o.patternTransform=w);var x=Bt("pattern","",o,[h]),T=jp(x),C=i.patternCache,A=C[T];A||(A=i.zrId+"-p"+i.patternIdx++,C[T]=A,o.id=A,x=i.defs[A]=Bt("pattern",A,o,[h])),e[t]=iu(A)}}function iF(r,e,t){var i=t.clipPathCache,n=t.defs,a=i[r.id];if(!a){a=t.zrId+"-c"+t.clipPathIdx++;var o={id:a};i[r.id]=a,n[a]=Bt("clipPath",a,o,[GT(r,t)])}e["clip-path"]=iu(a)}function F_(r){return document.createTextNode(r)}function Qi(r,e,t){r.insertBefore(e,t)}function G_(r,e){r.removeChild(e)}function H_(r,e){r.appendChild(e)}function UT(r){return r.parentNode}function YT(r){return r.nextSibling}function Rh(r,e){r.textContent=e}var W_=58,nF=120,aF=Bt("","");function ec(r){return r===void 0}function cr(r){return r!==void 0}function oF(r,e,t){for(var i={},n=e;n<=t;++n){var a=r[n].key;a!==void 0&&(i[a]=n)}return i}function io(r,e){var t=r.key===e.key,i=r.tag===e.tag;return i&&t}function Wo(r){var e,t=r.children,i=r.tag;if(cr(i)){var n=r.elm=BT(i);if(ed(aF,r),z(t))for(e=0;e<t.length;++e){var a=t[e];a!=null&&H_(n,Wo(a))}else cr(r.text)&&!Y(r.text)&&H_(n,F_(r.text))}else r.elm=F_(r.text);return r.elm}function XT(r,e,t,i,n){for(;i<=n;++i){var a=t[i];a!=null&&Qi(r,Wo(a),e)}}function Jl(r,e,t,i){for(;t<=i;++t){var n=e[t];if(n!=null)if(cr(n.tag)){var a=UT(n.elm);G_(a,n.elm)}else G_(r,n.elm)}}function ed(r,e){var t,i=e.elm,n=r&&r.attrs||{},a=e.attrs||{};if(n!==a){for(t in a){var o=a[t],s=n[t];s!==o&&(o===!0?i.setAttribute(t,""):o===!1?i.removeAttribute(t):t==="style"?i.style.cssText=o:t.charCodeAt(0)!==nF?i.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?i.setAttributeNS(VV,t,o):t.charCodeAt(3)===W_?i.setAttributeNS(FV,t,o):t.charCodeAt(5)===W_?i.setAttributeNS(OT,t,o):i.setAttribute(t,o))}for(t in n)t in a||i.removeAttribute(t)}}function sF(r,e,t){for(var i=0,n=0,a=e.length-1,o=e[0],s=e[a],l=t.length-1,u=t[0],f=t[l],h,c,v,p;i<=a&&n<=l;)o==null?o=e[++i]:s==null?s=e[--a]:u==null?u=t[++n]:f==null?f=t[--l]:io(o,u)?(Yn(o,u),o=e[++i],u=t[++n]):io(s,f)?(Yn(s,f),s=e[--a],f=t[--l]):io(o,f)?(Yn(o,f),Qi(r,o.elm,YT(s.elm)),o=e[++i],f=t[--l]):io(s,u)?(Yn(s,u),Qi(r,s.elm,o.elm),s=e[--a],u=t[++n]):(ec(h)&&(h=oF(e,i,a)),c=h[u.key],ec(c)?Qi(r,Wo(u),o.elm):(v=e[c],v.tag!==u.tag?Qi(r,Wo(u),o.elm):(Yn(v,u),e[c]=void 0,Qi(r,v.elm,o.elm))),u=t[++n]);(i<=a||n<=l)&&(i>a?(p=t[l+1]==null?null:t[l+1].elm,XT(r,p,t,n,l)):Jl(r,e,i,a))}function Yn(r,e){var t=e.elm=r.elm,i=r.children,n=e.children;r!==e&&(ed(r,e),ec(e.text)?cr(i)&&cr(n)?i!==n&&sF(t,i,n):cr(n)?(cr(r.text)&&Rh(t,""),XT(t,null,n,0,n.length-1)):cr(i)?Jl(t,i,0,i.length-1):cr(r.text)&&Rh(t,""):r.text!==e.text&&(cr(i)&&Jl(t,i,0,i.length-1),Rh(t,e.text)))}function lF(r,e){if(io(r,e))Yn(r,e);else{var t=r.elm,i=UT(t);Wo(e),i!==null&&(Qi(i,e.elm,YT(t)),Jl(i,[r],0,0))}return e}var uF=0,fF=function(){function r(e,t,i){if(this.type="svg",this.refreshHover=U_(),this.configLayer=U_(),this.storage=t,this._opts=i=O({},i),this.root=e,this._id="zr"+uF++,this._oldVNode=R_(i.width,i.height),e&&!i.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=BT("svg");ed(null,this._oldVNode),n.appendChild(a),e.appendChild(n)}this.resize(i.width,i.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",lF(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return V_(e,tc(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),i=this._width,n=this._height,a=tc(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis;var o=[],s=this._bgVNode=hF(i,n,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=Bt("g","main",{},[]);this._paintList(t,a,l?l.children:o),l&&o.push(l);var u=V(at(a.defs),function(c){return a.defs[c]});if(u.length&&o.push(Bt("defs","defs",{},u)),e.animation){var f=WV(a.cssNodes,a.cssAnims,{newline:!0});if(f){var h=Bt("style","stl",{},[],f);o.push(h)}}return R_(i,n,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},jp(this.renderToVNode({animation:J(e.cssAnimation,!0),emphasis:J(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:J(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,i){for(var n=e.length,a=[],o=0,s,l,u=0,f=0;f<n;f++){var h=e[f];if(!h.invisible){var c=h.__clipPaths,v=c&&c.length||0,p=l&&l.length||0,d=void 0;for(d=Math.max(v-1,p-1);d>=0&&!(c&&l&&c[d]===l[d]);d--);for(var g=p-1;g>d;g--)o--,s=a[o-1];for(var y=d+1;y<v;y++){var m={};iF(c[y],m,t);var _=Bt("g","clip-g-"+u++,m,[]);(s?s.children:i).push(_),a[o++]=_,s=_}l=c;var S=V_(h,t);S&&(s?s.children:i).push(S)}}},r.prototype.resize=function(e,t){var i=this._opts,n=this.root,a=this._viewport;if(e!=null&&(i.width=e),t!=null&&(i.height=t),n&&a&&(a.style.display="none",e=cy(n,0,i),t=cy(n,1,i),a.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,a){var o=a.style;o.width=e+"px",o.height=t+"px"}if(dc(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",t))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(e){var t=this.renderToString(),i="data:image/svg+xml;";return e?(t=CA(t),t&&i+"base64,"+t):i+"charset=UTF-8,"+encodeURIComponent(t)},r}();function U_(r){return function(){}}function hF(r,e,t,i){var n;if(t&&t!=="none")if(n=Bt("rect","bg",{width:r,height:e,x:"0",y:"0"}),x1(t))HT({fill:t},n.attrs,"fill",i);else if(dc(t))WT({style:{fill:t},dirty:zt,getBoundingRect:function(){return{width:r,height:e}}},n.attrs,"fill",i);else{var a=wo(t),o=a.color,s=a.opacity;n.attrs.fill=o,s<1&&(n.attrs["fill-opacity"]=s)}return n}function vF(r){r.registerPainter("svg",fF)}Ft([Vz,_z,pz,w5,q5,RV,PB,KE,OE,ok,GO,jk,vF,GB,cb,qN,aV,MV,Iz,Q5,lN,Gk]);function gF(r,e="default"){const{getDarkMode:t}=KT(),{getCollapsed:i}=jT(),n=od(()=>e==="default"?t.value:e);let a=null,o=c;const s=rC({});let l=()=>{};o=QT(c,200);const u=od(()=>n.value!=="dark"?s.value:ad({backgroundColor:"transparent"},s.value));function f(p=e){const d=Tn(r);if(!d||!Tn(d))return;a=qy.init(d,p);const{removeEvent:g}=tC({el:window,name:"resize",listener:o});l=g;const{widthRef:y,screenEnum:m}=eC();(Tn(y)<=m.MD||d.offsetHeight===0)&&is(()=>{o()},30)}function h(p,d=!0){return s.value=p,new Promise(g=>{var y;((y=Tn(r))==null?void 0:y.offsetHeight)===0&&is(()=>{h(Tn(u)),g(null)},30),iC(()=>{is(()=>{!a&&(f(n.value),!a)||(d&&(a==null||a.clear()),a==null||a.setOption(Tn(u)),g(null))},30)})})}function c(){a==null||a.resize({animation:{duration:300,easing:"quadraticIn"}})}sd(()=>n.value,p=>{a&&(a.dispose(),f(p),h(s.value))}),sd(i,p=>{is(()=>{o()},300)}),JT(()=>{a&&(l(),a.dispose(),a=null)});function v(){return a||f(n.value),a}return{setOptions:h,resize:c,echarts:qy,getInstance:v}}export{gF as u};
|