1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["home~onelevel~therelevel~threejshb"],{"313e":function(t,e,n){"use strict";n.r(e),n.d(e,"version",function(){return yv}),n.d(e,"dependencies",function(){return mv}),n.d(e,"PRIORITY",function(){return bv}),n.d(e,"init",function(){return x1}),n.d(e,"connect",function(){return _1}),n.d(e,"disConnect",function(){return b1}),n.d(e,"disconnect",function(){return w1}),n.d(e,"dispose",function(){return S1}),n.d(e,"getInstanceByDom",function(){return M1}),n.d(e,"getInstanceById",function(){return I1}),n.d(e,"registerTheme",function(){return T1}),n.d(e,"registerPreprocessor",function(){return C1}),n.d(e,"registerProcessor",function(){return D1}),n.d(e,"registerPostInit",function(){return A1}),n.d(e,"registerPostUpdate",function(){return k1}),n.d(e,"registerUpdateLifecycle",function(){return L1}),n.d(e,"registerAction",function(){return P1}),n.d(e,"registerCoordinateSystem",function(){return O1}),n.d(e,"getCoordinateSystemDimensions",function(){return R1}),n.d(e,"registerLocale",function(){return hh}),n.d(e,"registerLayout",function(){return N1}),n.d(e,"registerVisual",function(){return z1}),n.d(e,"registerLoading",function(){return B1}),n.d(e,"setCanvasCreator",function(){return G1}),n.d(e,"registerMap",function(){return F1}),n.d(e,"getMap",function(){return H1}),n.d(e,"registerTransform",function(){return W1}),n.d(e,"dataTool",function(){return U1}),n.d(e,"zrender",function(){return s}),n.d(e,"matrix",function(){return a}),n.d(e,"vector",function(){return o}),n.d(e,"zrUtil",function(){return i}),n.d(e,"color",function(){return r}),n.d(e,"throttle",function(){return Bf}),n.d(e,"helper",function(){return l}),n.d(e,"use",function(){return Z1}),n.d(e,"parseGeoJSON",function(){return nv}),n.d(e,"parseGeoJson",function(){return nv}),n.d(e,"number",function(){return u}),n.d(e,"time",function(){return h}),n.d(e,"graphic",function(){return c}),n.d(e,"format",function(){return d}),n.d(e,"util",function(){return f}),n.d(e,"env",function(){return w}),n.d(e,"List",function(){return Mx}),n.d(e,"Model",function(){return th}),n.d(e,"Axis",function(){return cb}),n.d(e,"ComponentModel",function(){return xc}),n.d(e,"ComponentView",function(){return If}),n.d(e,"SeriesModel",function(){return Sf}),n.d(e,"ChartView",function(){return Nf}),n.d(e,"innerDrawElementOnCanvas",function(){return c0}),n.d(e,"extendComponentModel",function(){return pb}),n.d(e,"extendComponentView",function(){return db}),n.d(e,"extendSeriesModel",function(){return fb}),n.d(e,"extendChartView",function(){return gb});var i={};n.r(i),n.d(i,"$override",function(){return O}),n.d(i,"guid",function(){return N}),n.d(i,"logError",function(){return z}),n.d(i,"clone",function(){return E}),n.d(i,"merge",function(){return V}),n.d(i,"mergeAll",function(){return B}),n.d(i,"extend",function(){return G}),n.d(i,"defaults",function(){return F}),n.d(i,"createCanvas",function(){return H}),n.d(i,"indexOf",function(){return W}),n.d(i,"inherits",function(){return U}),n.d(i,"mixin",function(){return X}),n.d(i,"isArrayLike",function(){return Y}),n.d(i,"each",function(){return Z}),n.d(i,"map",function(){return j}),n.d(i,"reduce",function(){return q}),n.d(i,"filter",function(){return K}),n.d(i,"find",function(){return $}),n.d(i,"keys",function(){return J}),n.d(i,"bind",function(){return Q}),n.d(i,"curry",function(){return tt}),n.d(i,"isArray",function(){return et}),n.d(i,"isFunction",function(){return nt}),n.d(i,"isString",function(){return it}),n.d(i,"isStringSafe",function(){return ot}),n.d(i,"isNumber",function(){return rt}),n.d(i,"isObject",function(){return at}),n.d(i,"isBuiltInObject",function(){return st}),n.d(i,"isTypedArray",function(){return lt}),n.d(i,"isDom",function(){return ut}),n.d(i,"isGradientObject",function(){return ht}),n.d(i,"isImagePatternObject",function(){return ct}),n.d(i,"isRegExp",function(){return pt}),n.d(i,"eqNaN",function(){return dt}),n.d(i,"retrieve",function(){return ft}),n.d(i,"retrieve2",function(){return gt}),n.d(i,"retrieve3",function(){return yt}),n.d(i,"slice",function(){return mt}),n.d(i,"normalizeCssArray",function(){return vt}),n.d(i,"assert",function(){return xt}),n.d(i,"trim",function(){return _t}),n.d(i,"setAsPrimitive",function(){return wt}),n.d(i,"isPrimitive",function(){return St}),n.d(i,"HashMap",function(){return Mt}),n.d(i,"createHashMap",function(){return Tt}),n.d(i,"concatArray",function(){return Ct}),n.d(i,"createObject",function(){return Dt}),n.d(i,"hasOwn",function(){return At}),n.d(i,"noop",function(){return kt});var o={};n.r(o),n.d(o,"create",function(){return Ot}),n.d(o,"copy",function(){return Rt}),n.d(o,"clone",function(){return Nt}),n.d(o,"set",function(){return zt}),n.d(o,"add",function(){return Et}),n.d(o,"scaleAndAdd",function(){return Vt}),n.d(o,"sub",function(){return Bt}),n.d(o,"len",function(){return Gt}),n.d(o,"length",function(){return Ft}),n.d(o,"lenSquare",function(){return Ht}),n.d(o,"lengthSquare",function(){return Wt}),n.d(o,"mul",function(){return Ut}),n.d(o,"div",function(){return Xt}),n.d(o,"dot",function(){return Yt}),n.d(o,"scale",function(){return Zt}),n.d(o,"normalize",function(){return jt}),n.d(o,"distance",function(){return qt}),n.d(o,"dist",function(){return Kt}),n.d(o,"distanceSquare",function(){return $t}),n.d(o,"distSquare",function(){return Jt}),n.d(o,"negate",function(){return Qt}),n.d(o,"lerp",function(){return te}),n.d(o,"applyTransform",function(){return ee}),n.d(o,"min",function(){return ne}),n.d(o,"max",function(){return ie});var r={};n.r(r),n.d(r,"parse",function(){return Mn}),n.d(r,"lift",function(){return Tn}),n.d(r,"toHex",function(){return Cn}),n.d(r,"fastLerp",function(){return Dn}),n.d(r,"fastMapToColor",function(){return An}),n.d(r,"lerp",function(){return kn}),n.d(r,"mapToColor",function(){return Ln}),n.d(r,"modifyHSL",function(){return Pn}),n.d(r,"modifyAlpha",function(){return On}),n.d(r,"stringify",function(){return Rn}),n.d(r,"lum",function(){return Nn}),n.d(r,"random",function(){return zn});var a={};n.r(a),n.d(a,"create",function(){return Ii}),n.d(a,"identity",function(){return Ti}),n.d(a,"copy",function(){return Ci}),n.d(a,"mul",function(){return Di}),n.d(a,"translate",function(){return Ai}),n.d(a,"rotate",function(){return ki}),n.d(a,"scale",function(){return Li}),n.d(a,"invert",function(){return Pi}),n.d(a,"clone",function(){return Oi});var s={};n.r(s),n.d(s,"init",function(){return No}),n.d(s,"dispose",function(){return zo}),n.d(s,"disposeAll",function(){return Eo}),n.d(s,"getInstance",function(){return Vo}),n.d(s,"registerPainter",function(){return Bo}),n.d(s,"version",function(){return Go});var p={};n.r(p),n.d(p,"updateProps",function(){return wu}),n.d(p,"initProps",function(){return Su}),n.d(p,"removeElement",function(){return Iu}),n.d(p,"removeElementWithFadeOut",function(){return Cu}),n.d(p,"isElementRemoved",function(){return Mu}),n.d(p,"extendShape",function(){return dm}),n.d(p,"extendPath",function(){return gm}),n.d(p,"registerShape",function(){return ym}),n.d(p,"getShapeClass",function(){return mm}),n.d(p,"makePath",function(){return vm}),n.d(p,"makeImage",function(){return xm}),n.d(p,"mergePath",function(){return bm}),n.d(p,"resizePath",function(){return wm}),n.d(p,"subPixelOptimizeLine",function(){return Sm}),n.d(p,"subPixelOptimizeRect",function(){return Mm}),n.d(p,"subPixelOptimize",function(){return Im}),n.d(p,"getTransform",function(){return Tm}),n.d(p,"applyTransform",function(){return Cm}),n.d(p,"transformDirection",function(){return Dm}),n.d(p,"groupTransition",function(){return km}),n.d(p,"clipPointsByRect",function(){return Lm}),n.d(p,"clipRectByRect",function(){return Pm}),n.d(p,"createIcon",function(){return Om}),n.d(p,"linePolygonIntersect",function(){return Rm}),n.d(p,"lineLineIntersect",function(){return Nm}),n.d(p,"setTooltipConfig",function(){return zm}),n.d(p,"Group",function(){return Ao}),n.d(p,"Image",function(){return qs}),n.d(p,"Text",function(){return xl}),n.d(p,"Circle",function(){return Rg}),n.d(p,"Ellipse",function(){return ay}),n.d(p,"Sector",function(){return My}),n.d(p,"Ring",function(){return Cy}),n.d(p,"Polygon",function(){return Ry}),n.d(p,"Polyline",function(){return Ey}),n.d(p,"Rect",function(){return rl}),n.d(p,"Line",function(){return Lg}),n.d(p,"BezierCurve",function(){return Zy}),n.d(p,"Arc",function(){return Kf}),n.d(p,"IncrementalDisplayable",function(){return im}),n.d(p,"CompoundPath",function(){return jy}),n.d(p,"LinearGradient",function(){return qy}),n.d(p,"RadialGradient",function(){return Ky}),n.d(p,"BoundingRect",function(){return Qi}),n.d(p,"OrientedBoundingRect",function(){return em}),n.d(p,"Point",function(){return Ui}),n.d(p,"Path",function(){return Bs});var l={};n.r(l),n.d(l,"createList",function(){return Z_}),n.d(l,"getLayoutRect",function(){return oc}),n.d(l,"createDimensions",function(){return Tx}),n.d(l,"dataStack",function(){return j_}),n.d(l,"createSymbol",function(){return Fm}),n.d(l,"createScale",function(){return q_}),n.d(l,"mixinAxisModelCommonMethods",function(){return K_}),n.d(l,"getECData",function(){return _l}),n.d(l,"enableHoverEmphasis",function(){return hu}),n.d(l,"createTextStyle",function(){return $_});var u={};n.r(u),n.d(u,"linearMap",function(){return Wo}),n.d(u,"round",function(){return Xo}),n.d(u,"asc",function(){return Yo}),n.d(u,"getPrecision",function(){return Zo}),n.d(u,"getPrecisionSafe",function(){return jo}),n.d(u,"getPixelPrecision",function(){return qo}),n.d(u,"getPercentWithPrecision",function(){return Ko}),n.d(u,"MAX_SAFE_INTEGER",function(){return $o}),n.d(u,"remRadian",function(){return Jo}),n.d(u,"isRadianAroundZero",function(){return Qo}),n.d(u,"parseDate",function(){return er}),n.d(u,"quantity",function(){return nr}),n.d(u,"quantityExponent",function(){return ir}),n.d(u,"nice",function(){return or}),n.d(u,"quantile",function(){return rr}),n.d(u,"reformIntervals",function(){return ar}),n.d(u,"isNumeric",function(){return lr}),n.d(u,"numericToNumber",function(){return sr});var h={};n.r(h),n.d(h,"parse",function(){return er}),n.d(h,"format",function(){return wh});var c={};n.r(c),n.d(c,"extendShape",function(){return dm}),n.d(c,"extendPath",function(){return gm}),n.d(c,"makePath",function(){return vm}),n.d(c,"makeImage",function(){return xm}),n.d(c,"mergePath",function(){return bm}),n.d(c,"resizePath",function(){return wm}),n.d(c,"createIcon",function(){return Om}),n.d(c,"updateProps",function(){return wu}),n.d(c,"initProps",function(){return Su}),n.d(c,"getTransform",function(){return Tm}),n.d(c,"clipPointsByRect",function(){return Lm}),n.d(c,"clipRectByRect",function(){return Pm}),n.d(c,"registerShape",function(){return ym}),n.d(c,"getShapeClass",function(){return mm}),n.d(c,"Group",function(){return Ao}),n.d(c,"Image",function(){return qs}),n.d(c,"Text",function(){return xl}),n.d(c,"Circle",function(){return Rg}),n.d(c,"Ellipse",function(){return ay}),n.d(c,"Sector",function(){return My}),n.d(c,"Ring",function(){return Cy}),n.d(c,"Polygon",function(){return Ry}),n.d(c,"Polyline",function(){return Ey}),n.d(c,"Rect",function(){return rl}),n.d(c,"Line",function(){return Lg}),n.d(c,"BezierCurve",function(){return Zy}),n.d(c,"Arc",function(){return Kf}),n.d(c,"IncrementalDisplayable",function(){return im}),n.d(c,"CompoundPath",function(){return jy}),n.d(c,"LinearGradient",function(){return qy}),n.d(c,"RadialGradient",function(){return Ky}),n.d(c,"BoundingRect",function(){return Qi});var d={};n.r(d),n.d(d,"addCommas",function(){return Vh}),n.d(d,"toCamelCase",function(){return Bh}),n.d(d,"normalizeCssArray",function(){return Gh}),n.d(d,"encodeHTML",function(){return Wh}),n.d(d,"formatTpl",function(){return Zh}),n.d(d,"getTooltipMarker",function(){return jh}),n.d(d,"formatTime",function(){return qh}),n.d(d,"capitalFirst",function(){return Kh}),n.d(d,"truncateText",function(){return ta}),n.d(d,"getTextRect",function(){return J_});var f={};n.r(f),n.d(f,"map",function(){return j}),n.d(f,"each",function(){return Z}),n.d(f,"indexOf",function(){return W}),n.d(f,"inherits",function(){return U}),n.d(f,"reduce",function(){return q}),n.d(f,"filter",function(){return K}),n.d(f,"bind",function(){return Q}),n.d(f,"curry",function(){return tt}),n.d(f,"isArray",function(){return et}),n.d(f,"isString",function(){return it}),n.d(f,"isObject",function(){return at}),n.d(f,"isFunction",function(){return nt}),n.d(f,"extend",function(){return G}),n.d(f,"defaults",function(){return F}),n.d(f,"clone",function(){return E}),n.d(f,"merge",function(){return V});var g=function(t,e){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function y(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}g(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var m=function(){return(m=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.create,Object.create;var v=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},x=new function(){this.browser=new v,this.node=!1,this.wxa=!1,this.worker=!1,this.canvasSupported=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(x.wxa=!0,x.canvasSupported=!0,x.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?(x.worker=!0,x.canvasSupported=!0):"undefined"==typeof navigator?(x.node=!0,x.canvasSupported=!0,x.svgSupported=!0):(Fr=navigator.userAgent,qu=(Zr=x).browser,_o=Fr.match(/Firefox\/([\d.]+)/),To=Fr.match(/MSIE\s([\d.]+)/)||Fr.match(/Trident\/.+?rv:(([\d.]+))/),Co=Fr.match(/Edge?\/([\d.]+)/),Fr=/micromessenger/i.test(Fr),_o&&(qu.firefox=!0,qu.version=_o[1]),To&&(qu.ie=!0,qu.version=To[1]),Co&&(qu.edge=!0,qu.version=Co[1],qu.newEdge=18<+Co[1].split(".")[0]),Fr&&(qu.weChat=!0),Zr.canvasSupported=!!document.createElement("canvas").getContext,Zr.svgSupported="undefined"!=typeof SVGRect,Zr.touchEventsSupported="ontouchstart"in window&&!qu.ie&&!qu.edge,Zr.pointerEventsSupported="onpointerdown"in window&&(qu.edge||qu.ie&&11<=+qu.version),Zr.domSupported="undefined"!=typeof document,Fr=document.documentElement.style,Zr.transform3dSupported=(qu.ie&&"transition"in Fr||qu.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in Fr)&&!("OTransition"in Fr),Zr.transformSupported=Zr.transform3dSupported||qu.ie&&9<=+qu.version);var w=x,_={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},b={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0},S=Object.prototype.toString,M=Array.prototype,I=M.forEach,T=M.filter,C=M.slice,D=M.map,A=function(){}.constructor,k=A?A.prototype:null,L="__proto__",P={};function O(t,e){P[t]=e}var R=2311;function N(){return R++}function z(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]}function E(t){if(null==t||"object"!=typeof t)return t;var e=t,n=S.call(t);if("[object Array]"===n){if(!St(t))for(var e=[],i=0,o=t.length;i<o;i++)e[i]=E(t[i])}else if(b[n]){if(!St(t)){var r=t.constructor;if(r.from)e=r.from(t);else for(e=new r(t.length),i=0,o=t.length;i<o;i++)e[i]=E(t[i])}}else if(!_[n]&&!St(t)&&!ut(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==L&&(e[a]=E(t[a]));return e}function V(t,e,n){if(!at(e)||!at(t))return n?E(e):t;for(var i in e){var o,r;e.hasOwnProperty(i)&&i!==L&&(o=t[i],!at(r=e[i])||!at(o)||et(r)||et(o)||ut(r)||ut(o)||st(r)||st(o)||St(r)||St(o)?!n&&i in t||(t[i]=E(e[i])):V(o,r,n))}return t}function B(t,e){for(var n=t[0],i=1,o=t.length;i<o;i++)n=V(n,t[i],e);return n}function G(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==L&&(t[n]=e[n]);return t}function F(t,e,n){for(var i=J(e),o=0;o<i.length;o++){var r=i[o];(n?null!=e[r]:null==t[r])&&(t[r]=e[r])}return t}var H=function(){return P.createCanvas()};function W(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function U(t,e){var n,i=t.prototype;function o(){}for(n in o.prototype=e.prototype,t.prototype=new o,i)i.hasOwnProperty(n)&&(t.prototype[n]=i[n]);(t.prototype.constructor=t).superClass=e}function X(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),o=0;o<i.length;o++){var r=i[o];"constructor"!==r&&(n?null!=e[r]:null==t[r])&&(t[r]=e[r])}else F(t,e,n)}function Y(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function Z(t,e,n){if(t&&e)if(t.forEach&&t.forEach===I)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,o=t.length;i<o;i++)e.call(n,t[i],i,t);else for(var r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function j(t,e,n){if(!t)return[];if(!e)return mt(t);if(t.map&&t.map===D)return t.map(e,n);for(var i=[],o=0,r=t.length;o<r;o++)i.push(e.call(n,t[o],o,t));return i}function q(t,e,n,i){if(t&&e){for(var o=0,r=t.length;o<r;o++)n=e.call(i,n,t[o],o,t);return n}}function K(t,e,n){if(!t)return[];if(!e)return mt(t);if(t.filter&&t.filter===T)return t.filter(e,n);for(var i=[],o=0,r=t.length;o<r;o++)e.call(n,t[o],o,t)&&i.push(t[o]);return i}function $(t,e,n){if(t&&e)for(var i=0,o=t.length;i<o;i++)if(e.call(n,t[i],i,t))return t[i]}function J(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e,n=[];for(e in t)t.hasOwnProperty(e)&&n.push(e);return n}P.createCanvas=function(){return document.createElement("canvas")};var Q=k&&nt(k.bind)?k.call.bind(k.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(C.call(arguments)))}};function tt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(C.call(arguments)))}}function et(t){return Array.isArray?Array.isArray(t):"[object Array]"===S.call(t)}function nt(t){return"function"==typeof t}function it(t){return"string"==typeof t}function ot(t){return"[object String]"===S.call(t)}function rt(t){return"number"==typeof t}function at(t){var e=typeof t;return"function"==e||!!t&&"object"==e}function st(t){return!!_[S.call(t)]}function lt(t){return!!b[S.call(t)]}function ut(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function ht(t){return null!=t.colorStops}function ct(t){return null!=t.image}function pt(t){return"[object RegExp]"===S.call(t)}function dt(t){return t!=t}function ft(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function gt(t,e){return null!=t?t:e}function yt(t,e,n){return null!=t?t:null!=e?e:n}function mt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return C.apply(t,e)}function vt(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function xt(t,e){if(!t)throw new Error(e)}function _t(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var bt="__ec_primitive__";function wt(t){t[bt]=!0}function St(t){return t[bt]}var Mt=(It.prototype.get=function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},It.prototype.set=function(t,e){return this.data[t]=e},It.prototype.each=function(t,e){for(var n in this.data)this.data.hasOwnProperty(n)&&t.call(e,this.data[n],n)},It.prototype.keys=function(){return J(this.data)},It.prototype.removeKey=function(t){delete this.data[t]},It);function It(t){this.data={};var n=et(t);this.data={};var i=this;function e(t,e){n?i.set(t,e):i.set(e,t)}t instanceof It?t.each(e):t&&Z(t,e)}function Tt(t){return new Mt(t)}function Ct(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];for(var o=t.length,i=0;i<e.length;i++)n[i+o]=e[i];return n}function Dt(t,e){var n=Object.create?Object.create(t):((n=function(){}).prototype=t,new n);return e&&G(n,e),n}function At(t,e){return t.hasOwnProperty(e)}function kt(){}var Lt=function(t,e){return(Lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function Pt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Lt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function Ot(t,e){return[t=null==t?0:t,e=null==e?0:e]}function Rt(t,e){return t[0]=e[0],t[1]=e[1],t}function Nt(t){return[t[0],t[1]]}function zt(t,e,n){return t[0]=e,t[1]=n,t}function Et(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Vt(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function Bt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function Gt(t){return Math.sqrt(Ht(t))}Object.create,Object.create;var Ft=Gt;function Ht(t){return t[0]*t[0]+t[1]*t[1]}var Wt=Ht;function Ut(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function Xt(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function Yt(t,e){return t[0]*e[0]+t[1]*e[1]}function Zt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function jt(t,e){var n=Gt(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function qt(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Kt=qt;function $t(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Jt=$t;function Qt(t,e){return t[0]=-e[0],t[1]=-e[1],t}function te(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function ee(t,e,n){var i=e[0],e=e[1];return t[0]=n[0]*i+n[2]*e+n[4],t[1]=n[1]*i+n[3]*e+n[5],t}function ne(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function ie(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var oe=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},re=(ue.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent;e&&((this._draggingTarget=e).dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new oe(e,t),"dragstart",t.event))},ue.prototype._drag=function(t){var e,n,i,o,r=this._draggingTarget;r&&(i=t.offsetX,o=t.offsetY,e=i-this._x,n=o-this._y,this._x=i,this._y=o,r.drift(e,n,t),this.handler.dispatchToElement(new oe(r,t),"drag",t.event),i=this.handler.findHover(i,o,r).target,o=this._dropTarget,r!==(this._dropTarget=i)&&(o&&i!==o&&this.handler.dispatchToElement(new oe(o,t),"dragleave",t.event),i&&i!==o&&this.handler.dispatchToElement(new oe(i,t),"dragenter",t.event)))},ue.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new oe(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new oe(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},ue),ae=(le.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var o=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;var r=this._$eventProcessor;null!=e&&r&&r.normalizeQuery&&(e=r.normalizeQuery(e)),o[t]||(o[t]=[]);for(var a=0;a<o[t].length;a++)if(o[t][a].h===n)return this;r={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},e=o[t].length-1,i=o[t][e];return i&&i.callAtLast?o[t].splice(e,0,r):o[t].push(r),this},le.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},le.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],o=0,r=n[t].length;o<r;o++)n[t][o].h!==e&&i.push(n[t][o]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},le.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var r=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!o||!o.filter||null==l.query||o.filter(t,l.query))switch(r){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return o&&o.afterTrigger&&o.afterTrigger(t),this},le.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var r=e.length,a=e[r-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!o||!o.filter||null==u.query||o.filter(t,u.query))switch(r){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,r-1))}}return o&&o.afterTrigger&&o.afterTrigger(t),this},le),se=Math.log(2);function le(t){t&&(this._$eventProcessor=t)}function ue(t){(this.handler=t).on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}function he(t,e,n,i,o,r){var a=i+"-"+o,s=t.length;if(r.hasOwnProperty(a))return r[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~o)/se);return t[n][l]}for(var u=i|1<<n,h=n+1;i&1<<h;)h++;for(var c=0,p=0,d=0;p<s;p++){var f=1<<p;f&o||(c+=(d%2?-1:1)*t[n][p]*he(t,e-1,h,u,o|f,r),d++)}return r[a]=c}function ce(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},o=he(n,8,0,0,0,i);if(0!==o){for(var r=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==r[s]&&(r[s]=0),r[s]+=((a+s)%2?-1:1)*he(n,7,0===a?1:0,1<<a,1<<s,i)/o*e[a];return function(t,e,n){var i=e*r[6]+n*r[7]+1;t[0]=(e*r[0]+n*r[1]+r[2])/i,t[1]=(e*r[3]+n*r[4]+r[5])/i}}}var pe="___zrEVENTSAVED",de=[];function fe(t,e,n,i,o){if(e.getBoundingClientRect&&w.domSupported&&!ge(e)){var r=e[pe]||(e[pe]={}),o=function(t,e,n){for(var i=n?"invTrans":"trans",o=e[i],r=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var h=t[u].getBoundingClientRect(),c=2*u,p=h.left,h=h.top;a.push(p,h),l=l&&r&&p===r[c]&&h===r[1+c],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&o?o:(e.srcCoords=a,e[i]=n?ce(s,a):ce(a,s))}(function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],o=["top","bottom"],r=0;r<4;r++){var a=document.createElement("div"),s=a.style,l=r%2,u=(r>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",o[u]+":0",i[1-l]+":auto",o[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,r),r,o);if(o)return o(t,n,i),!0}return!1}function ge(t){return"CANVAS"===t.nodeName.toUpperCase()}var ye="undefined"!=typeof window&&!!window.addEventListener,me=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ve=[];function xe(t,e,n,i){return n=n||{},i||!w.canvasSupported?_e(t,e,n):w.browser.firefox&&w.browser.version<"39"&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):_e(t,e,n),n}function _e(t,e,n){if(w.domSupported&&t.getBoundingClientRect){var i=e.clientX,o=e.clientY;if(ge(t)){e=t.getBoundingClientRect();return n.zrX=i-e.left,n.zrY=o-e.top,0}if(fe(ve,t,i,o))return n.zrX=ve[0],n.zrY=ve[1],0}n.zrX=n.zrY=0}function be(t){return t||window.event}function we(t,e,n){if(null!=(e=be(e)).zrX)return e;var i=e.type;i&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&xe(t,i,e,n):(xe(t,e,e,n),o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,t=t.deltaY;return null==n||null==t?e:3*(0!==t?Math.abs(t):Math.abs(n))*(0<t||!(t<0)&&0<n?-1:1)}(e),e.zrDelta=o?o/120:-(e.detail||0)/3);var o=e.button;return null==e.which&&void 0!==o&&me.test(e.type)&&(e.which=1&o?1:2&o?3:4&o?2:0),e}function Se(t,e,n,i){ye?t.addEventListener(e,n,i):t.attachEvent("on"+e,n)}var Me=ye?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};function Ie(t){return 2===t.which||3===t.which}var Te=(Ce.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},Ce.prototype.clear=function(){return this._track.length=0,this},Ce.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var o={points:[],touches:[],target:e,event:t},r=0,a=i.length;r<a;r++){var s=i[r],l=xe(n,s,{});o.points.push([l.zrX,l.zrY]),o.touches.push(s)}this._track.push(o)}},Ce.prototype._recognize=function(t){for(var e in Ae)if(Ae.hasOwnProperty(e)){e=Ae[e](this._track,t);if(e)return e}},Ce);function Ce(){this._track=[]}function De(t){var e=t[1][0]-t[0][0],t=t[1][1]-t[0][1];return Math.sqrt(e*e+t*t)}var Ae={pinch:function(t,e){var n=t.length;if(n){var i=(t[n-1]||{}).points,n=(t[n-2]||{}).points||i;if(n&&1<n.length&&i&&1<i.length){n=De(i)/De(n);isFinite(n)||(n=1),e.pinchScale=n;i=[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=i[0],e.pinchY=i[1],{type:"pinch",target:t[0].target,event:e}}}}};function ke(){Me(this.event)}var Le,Pe,Oe=(Pt(Ve,Pe=ae),Ve.prototype.dispose=function(){},Ve.prototype.setCursor=function(){},Ve),Re=function(t,e){this.x=t,this.y=e},Ne=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ze=(Pt(Ee,Le=ae),Ee.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(Z(Ne,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},Ee.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=Be(this,e,n),o=this._hovered,r=o.target;r&&!r.__zr&&(r=(o=this.findHover(o.x,o.y)).target);i=this._hovered=i?new Re(e,n):this.findHover(e,n),e=i.target,n=this.proxy;n.setCursor&&n.setCursor(e?e.cursor:"default"),r&&e!==r&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(i,"mousemove",t),e&&e!==r&&this.dispatchToElement(i,"mouseover",t)},Ee.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},Ee.prototype.resize=function(){this._hovered=new Re(0,0)},Ee.prototype.dispatch=function(t,e){t=this[t];t&&t.call(this,e)},Ee.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},Ee.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},Ee.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var o="on"+e,r={type:e,event:n,target:(t=t).target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:ke};i&&(i[o]&&(r.cancelBubble=!!i[o].call(i,r)),i.trigger(e,r),i=i.__hostTarget||i.parent,!r.cancelBubble););r.cancelBubble||(this.trigger(e,r),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[o]&&t[o].call(t,r),t.trigger&&t.trigger(e,r)}))}},Ee.prototype.findHover=function(t,e,n){for(var i=this.storage.getDisplayList(),o=new Re(t,e),r=i.length-1;0<=r;r--){var a=void 0;if(i[r]!==n&&!i[r].ignore&&(a=function(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,o=void 0,r=!1;i;){if(!(r=i.ignoreClip?!0:r)){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(o=!0)}a=i.__hostTarget;i=a||i.parent}return!o||"silent"}return!1}(i[r],t,e))&&(o.topTarget||(o.topTarget=i[r]),"silent"!==a)){o.target=i[r];break}}return o},Ee.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new Te);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);"end"===e&&n.clear(),i&&(n=i.type,t.gestureEvent=n,(t=new Re).target=i.target,this.dispatchToElement(t,n,i.event))},Ee);function Ee(t,e,n,i){var o=Le.call(this)||this;return o._hovered=new Re(0,0),o.storage=t,o.painter=e,o.painterRoot=i,n=n||new Oe,o.proxy=null,o.setHandlerProxy(n),o._draggingMgr=new re(o),o}function Ve(){var t=null!==Pe&&Pe.apply(this,arguments)||this;return t.handler=null,t}function Be(t,e,n){t=t.painter;return e<0||e>t.getWidth()||n<0||n>t.getHeight()}Z(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){ze.prototype[a]=function(t){var e,n,i=t.zrX,o=t.zrY,r=Be(this,i,o);if("mouseup"===a&&r||(n=(e=this.findHover(i,o)).target),"mousedown"===a)this._downEl=n,this._downPoint=[t.zrX,t.zrY],this._upEl=n;else if("mouseup"===a)this._upEl=n;else if("click"===a){if(this._downEl!==this._upEl||!this._downPoint||4<Kt(this._downPoint,[t.zrX,t.zrY]))return;this._downPoint=null}this.dispatchToElement(e,a,t)}});var Ge=ze,Fe=32,He=7;function We(t,e,n,i){var o=e+1;if(o===n)return 1;if(i(t[o++],t[e])<0){for(;o<n&&i(t[o],t[o-1])<0;)o++;!function(t,e,n){n--;for(;e<n;){var i=t[e];t[e++]=t[n],t[n--]=i}}(t,e,o)}else for(;o<n&&0<=i(t[o],t[o-1]);)o++;return o-e}function Ue(t,e,n,i,o){for(i===e&&i++;i<n;i++){for(var r,a=t[i],s=e,l=i;s<l;)o(a,t[r=s+l>>>1])<0?l=r:s=1+r;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;0<u;)t[s+u]=t[s+u-1],u--}t[s]=a}}function Xe(t,e,n,i,o,r){var a=0,s=0,l=1;if(0<r(t,e[n+o])){for(s=i-o;l<s&&0<r(t,e[n+o+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=o,l+=o}else{for(s=o+1;l<s&&r(t,e[n+o-l])<=0;)(l=1+((a=l)<<1))<=0&&(l=s);i=a,a=o-(l=s<l?s:l),l=o-i}for(a++;a<l;){var u=a+(l-a>>>1);0<r(t,e[n+u])?a=u+1:l=u}return l}function Ye(t,e,n,i,o,r){var a=0,s=0,l=1;if(r(t,e[n+o])<0){for(s=o+1;l<s&&r(t,e[n+o-l])<0;)(l=1+((a=l)<<1))<=0&&(l=s);var u=a,a=o-(l=s<l?s:l),l=o-u}else{for(s=i-o;l<s&&0<=r(t,e[n+o+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=o,l+=o}for(a++;a<l;){var h=a+(l-a>>>1);r(t,e[n+h])<0?l=h:a=h+1}return l}function Ze(f,g){var r,a,y=He,s=0,m=(f.length,[]);function e(t){var e=r[t],n=a[t],i=r[t+1],o=a[t+1];a[t]=n+o,t===s-3&&(r[t+1]=r[t+2],a[t+1]=a[t+2]),s--;t=Ye(f[i],f,e,n,0,g);e+=t,0==(n-=t)||0!==(o=Xe(f[e+n-1],f,i,o,o-1,g))&&(n<=o?function(t,e,n,i){var o=0;for(o=0;o<e;o++)m[o]=f[t+o];var r=0,a=n,s=t;if(f[s++]=f[a++],0!=--i)if(1!==e){for(var l,u,h,c=y;;){u=l=0,h=!1;do{if(g(f[a],m[r])<0){if(f[s++]=f[a++],u++,(l=0)==--i){h=!0;break}}else if(f[s++]=m[r++],l++,u=0,1==--e){h=!0;break}}while((l|u)<c);if(h)break;do{if(0!==(l=Ye(f[a],m,r,e,0,g))){for(o=0;o<l;o++)f[s+o]=m[r+o];if(s+=l,r+=l,(e-=l)<=1){h=!0;break}}if(f[s++]=f[a++],0==--i){h=!0;break}if(0!==(u=Xe(m[r],f,a,i,0,g))){for(o=0;o<u;o++)f[s+o]=f[a+o];if(s+=u,a+=u,0===(i-=u)){h=!0;break}}if(f[s++]=m[r++],1==--e){h=!0;break}}while(c--,He<=l||He<=u);if(h)break;c<0&&(c=0),c+=2}if((y=c)<1&&(y=1),1===e){for(o=0;o<i;o++)f[s+o]=f[a+o];f[s+i]=m[r]}else{if(0===e)throw new Error;for(o=0;o<e;o++)f[s+o]=m[r+o]}}else{for(o=0;o<i;o++)f[s+o]=f[a+o];f[s+i]=m[r]}else for(o=0;o<e;o++)f[s+o]=m[r+o]}:function(t,e,n,i){var o=0;for(o=0;o<i;o++)m[o]=f[n+o];var r=t+e-1,a=i-1,s=n+i-1,l=0,u=0;if(f[s--]=f[r--],0!=--e)if(1!==i){for(var h=y;;){var c=0,p=0,d=!1;do{if(g(m[a],f[r])<0){if(f[s--]=f[r--],c++,(p=0)==--e){d=!0;break}}else if(f[s--]=m[a--],p++,c=0,1==--i){d=!0;break}}while((c|p)<h);if(d)break;do{if(0!==(c=e-Ye(m[a],f,t,e,e-1,g))){for(e-=c,u=(s-=c)+1,l=(r-=c)+1,o=c-1;0<=o;o--)f[u+o]=f[l+o];if(0===e){d=!0;break}}if(f[s--]=m[a--],1==--i){d=!0;break}if(0!==(p=i-Xe(f[r],m,0,i,i-1,g))){for(i-=p,u=(s-=p)+1,l=(a-=p)+1,o=0;o<p;o++)f[u+o]=m[l+o];if(i<=1){d=!0;break}}if(f[s--]=f[r--],0==--e){d=!0;break}}while(h--,He<=c||He<=p);if(d)break;h<0&&(h=0),h+=2}if((y=h)<1&&(y=1),1===i){for(u=(s-=e)+1,l=(r-=e)+1,o=e-1;0<=o;o--)f[u+o]=f[l+o];f[s]=m[a]}else{if(0===i)throw new Error;for(l=s-(i-1),o=0;o<i;o++)f[l+o]=m[o]}}else{for(u=(s-=e)+1,l=(r-=e)+1,o=e-1;0<=o;o--)f[u+o]=f[l+o];f[s]=m[a]}else for(l=s-(i-1),o=0;o<i;o++)f[l+o]=m[o]})(e,n,i,o)}return r=[],a=[],{mergeRuns:function(){for(;1<s;){var t=s-2;if(1<=t&&a[t-1]<=a[t]+a[t+1]||2<=t&&a[t-2]<=a[t]+a[t-1])a[t-1]<a[t+1]&&t--;else if(a[t]>a[t+1])break;e(t)}},forceMergeRuns:function(){for(;1<s;){var t=s-2;0<t&&a[t-1]<a[t+1]&&t--,e(t)}},pushRun:function(t,e){r[s]=t,a[s]=e,s+=1}}}function je(t,e,n,i){var o=(i=i||t.length)-(n=n||0);if(!(o<2)){var r=0;if(o<Fe)return Ue(t,n,i,n+(r=We(t,n,i,e)),e),0;var a,s=Ze(t,e),l=function(t){for(var e=0;Fe<=t;)e|=1&t,t>>=1;return t+e}(o);do{}while((r=We(t,n,i,e))<l&&(Ue(t,n,n+(a=l<(a=o)?l:o),n+r,e),r=a),s.pushRun(n,r),s.mergeRuns(),n+=r,0!==(o-=r));s.forceMergeRuns()}}var qe=1,Ke=4;function $e(){0}function Je(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Qe=(tn.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},tn.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},tn.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,o=e.length;i<o;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,w.canvasSupported&&je(n,Je)},tn.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e=e?e.slice():[];for(var o=i,r=t;o;)o.parent=r,o.updateTransform(),e.push(o),o=(r=o).getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=qe),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&0<u.__clipPaths.length&&(u.__clipPaths=[]),isNaN(u.z)&&($e(),u.z=0),isNaN(u.z2)&&($e(),u.z2=0),isNaN(u.zlevel)&&($e(),u.zlevel=0),this._displayList[this._displayListLen++]=u}u=t.getDecalElement&&t.getDecalElement();u&&this._updateAndAddDisplayable(u,e,n);u=t.getTextGuideLine();u&&this._updateAndAddDisplayable(u,e,n);u=t.getTextContent();u&&this._updateAndAddDisplayable(u,e,n)}},tn.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},tn.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=W(this._roots,t);0<=i&&this._roots.splice(i,1)}},tn.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},tn.prototype.getRoots=function(){return this._roots},tn.prototype.dispose=function(){this._displayList=null,this._roots=null},tn);function tn(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Je}var en="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},nn={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return--t*t*(2.70158*t+1.70158)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((1+e)*t-e)*.5:.5*((t-=2)*t*((1+e)*t+e)+2)},bounceIn:function(t){return 1-nn.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*nn.bounceIn(2*t):.5*nn.bounceOut(2*t-1)+.5}},on=nn,rn=(pn.prototype.step=function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),!this._paused){(n=(t-this._startTime-this._pausedTime)/this._life)<0&&(n=0);var n=Math.min(n,1),i=this.easing,i="string"==typeof i?on[i]:i,i="function"==typeof i?i(n):n;if(this.onframe&&this.onframe(i),1===n){if(!this.loop)return!0;this._restart(t),this.onrestart&&this.onrestart()}return!1}this._pausedTime+=e},pn.prototype._restart=function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0},pn.prototype.pause=function(){this._paused=!0},pn.prototype.resume=function(){this._paused=!1},pn),an=function(t){this.value=t},sn=(cn.prototype.insert=function(t){t=new an(t);return this.insertEntry(t),t},cn.prototype.insertEntry=function(t){this.head?((this.tail.next=t).prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},cn.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},cn.prototype.len=function(){return this._len},cn.prototype.clear=function(){this.head=this.tail=null,this._len=0},cn),ln=(hn.prototype.put=function(t,e){var n,i,o=this._list,r=this._map,a=null;return null==r[t]&&(i=o.len(),n=this._lastRemovedEntry,i>=this._maxSize&&0<i&&(i=o.head,o.remove(i),delete r[i.key],a=i.value,this._lastRemovedEntry=i),n?n.value=e:n=new an(e),n.key=t,o.insertEntry(n),r[t]=n),a},hn.prototype.get=function(t){var e=this._map[t],t=this._list;if(null!=e)return e!==t.tail&&(t.remove(e),t.insertEntry(e)),e.value},hn.prototype.clear=function(){this._list.clear(),this._map={}},hn.prototype.len=function(){return this._list.len()},hn),un={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 hn(t){this._list=new sn,this._maxSize=10,this._map={},this._maxSize=t}function cn(){this._len=0}function pn(t){this._initialized=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart}function dn(t){return(t=Math.round(t))<0?0:255<t?255:t}function fn(t){return t<0?0:1<t?1:t}function gn(t){return t.length&&"%"===t.charAt(t.length-1)?dn(parseFloat(t)/100*255):dn(parseInt(t,10))}function yn(t){return t.length&&"%"===t.charAt(t.length-1)?fn(parseFloat(t)/100):fn(parseFloat(t))}function mn(t,e,n){return n<0?n+=1:1<n&&--n,6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function vn(t,e,n){return t+(e-t)*n}function xn(t,e,n,i,o){return t[0]=e,t[1]=n,t[2]=i,t[3]=o,t}function _n(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var bn=new ln(20),wn=null;function Sn(t,e){wn&&_n(wn,e),wn=bn.put(t,wn||e.slice())}function Mn(t,e){if(t){e=e||[];var n=bn.get(t);if(n)return _n(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in un)return _n(e,un[i]),Sn(t,e),e;var o=i.length;if("#"!==i.charAt(0)){var r=i.indexOf("("),a=i.indexOf(")");if(-1!==r&&a+1===o){var n=i.substr(0,r),s=i.substr(r+1,a-(r+1)).split(","),l=1;switch(n){case"rgba":if(4!==s.length)return 3===s.length?xn(e,+s[0],+s[1],+s[2],1):xn(e,0,0,0,1);l=yn(s.pop());case"rgb":return 3!==s.length?void xn(e,0,0,0,1):(xn(e,gn(s[0]),gn(s[1]),gn(s[2]),l),Sn(t,e),e);case"hsla":return 4!==s.length?void xn(e,0,0,0,1):(s[3]=yn(s[3]),In(s,e),Sn(t,e),e);case"hsl":return 3!==s.length?void xn(e,0,0,0,1):(In(s,e),Sn(t,e),e);default:return}}xn(e,0,0,0,1)}else{if(4===o||5===o){var u=parseInt(i.slice(1,4),16);return 0<=u&&u<=4095?(xn(e,(3840&u)>>4|(3840&u)>>8,240&u|(240&u)>>4,15&u|(15&u)<<4,5===o?parseInt(i.slice(4),16)/15:1),Sn(t,e),e):void xn(e,0,0,0,1)}if(7===o||9===o)return 0<=(u=parseInt(i.slice(1,7),16))&&u<=16777215?(xn(e,(16711680&u)>>16,(65280&u)>>8,255&u,9===o?parseInt(i.slice(7),16)/255:1),Sn(t,e),e):void xn(e,0,0,0,1)}}}function In(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=yn(t[1]),o=yn(t[2]),i=o<=.5?o*(i+1):o+i-o*i,o=2*o-i;return xn(e=e||[],dn(255*mn(o,i,n+1/3)),dn(255*mn(o,i,n)),dn(255*mn(o,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Tn(t,e){var n=Mn(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,255<n[i]?n[i]=255:n[i]<0&&(n[i]=0);return Rn(n,4===n.length?"rgba":"rgb")}}function Cn(t){t=Mn(t);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function Dn(t,e,n){if(e&&e.length&&0<=t&&t<=1){n=n||[];var i=t*(e.length-1),o=Math.floor(i),r=Math.ceil(i),t=e[o],r=e[r],o=i-o;return n[0]=dn(vn(t[0],r[0],o)),n[1]=dn(vn(t[1],r[1],o)),n[2]=dn(vn(t[2],r[2],o)),n[3]=fn(vn(t[3],r[3],o)),n}}var An=Dn;function kn(t,e,n){if(e&&e.length&&0<=t&&t<=1){var i=t*(e.length-1),o=Math.floor(i),r=Math.ceil(i),a=Mn(e[o]),t=Mn(e[r]),e=i-o,e=Rn([dn(vn(a[0],t[0],e)),dn(vn(a[1],t[1],e)),dn(vn(a[2],t[2],e)),fn(vn(a[3],t[3],e))],"rgba");return n?{color:e,leftIndex:o,rightIndex:r,value:i}:e}}var Ln=kn;function Pn(t,e,n,i){var o=Mn(t);if(t)return o=function(t){if(t){var e,n,i,o=t[0]/255,r=t[1]/255,a=t[2]/255,s=Math.min(o,r,a),l=Math.max(o,r,a),u=l-s,h=(l+s)/2;0==u?n=e=0:(n=h<.5?u/(l+s):u/(2-l-s),i=((l-o)/6+u/2)/u,s=((l-r)/6+u/2)/u,u=((l-a)/6+u/2)/u,o===l?e=u-s:r===l?e=1/3+i-u:a===l&&(e=2/3+s-i),e<0&&(e+=1),1<e&&--e);h=[360*e,n,h];return null!=t[3]&&h.push(t[3]),h}}(o),null!=e&&(o[0]=(e=e,(e=Math.round(e))<0?0:360<e?360:e)),null!=n&&(o[1]=yn(n)),null!=i&&(o[2]=yn(i)),Rn(In(o),"rgba")}function On(t,e){t=Mn(t);if(t&&null!=e)return t[3]=fn(e),Rn(t,"rgba")}function Rn(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function Nn(t,e){t=Mn(t);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function zn(){return"rgb("+Math.round(255*Math.random())+","+Math.round(255*Math.random())+","+Math.round(255*Math.random())+")"}var En=Array.prototype.slice;function Vn(t,e,n){return(e-t)*n+t}function Bn(t,e,n,i){for(var o=e.length,r=0;r<o;r++)t[r]=Vn(e[r],n[r],i)}function Gn(t,e,n,i){for(var o=e.length,r=0;r<o;r++)t[r]=e[r]+n[r]*i;return t}function Fn(t,e,n,i){for(var o=e.length,r=o&&e[0].length,a=0;a<o;a++){t[a]||(t[a]=[]);for(var s=0;s<r;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function Hn(t,e){var n=t.length;if(n===e.length){for(var i=0;i<n;i++)if(t[i]!==e[i])return;return 1}}function Wn(t,e,n,i,o,r,a){t=.5*(n-t),i=.5*(i-e);return(2*(e-n)+t+i)*a+(-3*(e-n)-2*t-i)*r+t*o+e}function Un(t,e,n,i,o,r,a,s){for(var l=e.length,u=0;u<l;u++)t[u]=Wn(e[u],n[u],i[u],o[u],r,a,s)}function Xn(t){if(Y(t)){var e=t.length;if(Y(t[0])){for(var n=[],i=0;i<e;i++)n.push(En.call(t[i]));return n}return En.call(t)}return t}function Yn(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}var Zn,jn,qn=[0,0,0,0],Kn=(ai.prototype.isFinished=function(){return this._finished},ai.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},ai.prototype.needsAnimate=function(){return!this._isAllValueEqual&&2<=this.keyframes.length&&this.interpolable&&0<this.maxTime},ai.prototype.getAdditiveTrack=function(){return this._additiveTrack},ai.prototype.addKeyframe=function(t,e){t>=this.maxTime?this.maxTime=t:this._needsSort=!0;var n=this.keyframes,i=n.length;if(this.interpolable)if(Y(e)){var o,r=Y((r=e)&&r[0])?2:1;if(0<i&&this.arrDim!==r)return void(this.interpolable=!1);if(1==r&&"number"!=typeof e[0]||2==r&&"number"!=typeof e[0][0])return void(this.interpolable=!1);0<i&&(o=n[i-1],this._isAllValueEqual&&(1==r&&Hn(e,o.value)||(this._isAllValueEqual=!1))),this.arrDim=r}else{if(0<this.arrDim)return void(this.interpolable=!1);if("string"==typeof e){r=Mn(e);r?(e=r,this.isValueColor=!0):this.interpolable=!1}else if("number"!=typeof e||isNaN(e))return void(this.interpolable=!1);this._isAllValueEqual&&0<i&&(o=n[i-1],(this.isValueColor&&!Hn(o.value,e)||o.value!==e)&&(this._isAllValueEqual=!1))}e={time:t,value:e,percent:0};return this.keyframes.push(e),e},ai.prototype.prepare=function(t){var e=this.keyframes;this._needsSort&&e.sort(function(t,e){return t.time-e.time});for(var n=this.arrDim,i=e.length,o=e[i-1],r=0;r<i;r++)e[r].percent=e[r].time/this.maxTime,0<n&&r!==i-1&&function(t,e,n){var i=t,o=e;if(i.push&&o.push){var e=i.length,r=o.length;if(e!==r)if(r<e)i.length=r;else for(var a=e;a<r;a++)i.push(1===n?o[a]:En.call(o[a]));for(var s=i[0]&&i[0].length,a=0;a<i.length;a++)if(1===n)isNaN(i[a])&&(i[a]=o[a]);else for(var l=0;l<s;l++)isNaN(i[a][l])&&(i[a][l]=o[a][l])}}(e[r].value,o.value,n);if(t&&this.needsAnimate()&&t.needsAnimate()&&n===t.arrDim&&this.isValueColor===t.isValueColor&&!t._finished){this._additiveTrack=t;for(var a=e[0].value,r=0;r<i;r++)0===n?this.isValueColor?e[r].additiveValue=Gn([],e[r].value,a,-1):e[r].additiveValue=e[r].value-a:1===n?e[r].additiveValue=Gn([],e[r].value,a,-1):2===n&&(e[r].additiveValue=Fn([],e[r].value,a,-1))}},ai.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=null!=this._additiveTrack,i=n?"additiveValue":"value",o=this.keyframes,r=this.keyframes.length,a=this.propName,s=this.arrDim,l=this.isValueColor;if(e<0)u=0;else if(e<this._lastFramePercent){for(var u=Math.min(this._lastFrame+1,r-1);0<=u&&!(o[u].percent<=e);u--);u=Math.min(u,r-2)}else{for(u=this._lastFrame;u<r&&!(o[u].percent>e);u++);u=Math.min(u-1,r-2)}var h,c,p,d,f,g,y,m=o[u+1],v=o[u];v&&m&&(this._lastFrame=u,this._lastFramePercent=e,0!=(g=m.percent-v.percent)&&(h=(e-v.percent)/g,c=n?this._additiveValue:l?qn:t[a],(0<s||l)&&!c&&(c=this._additiveValue=[]),this.useSpline?(p=o[u][i],d=o[0===u?u:u-1][i],f=o[r-2<u?r-1:u+1][i],g=o[r-3<u?r-1:u+2][i],0<s?(1===s?Un:function(t,e,n,i,o,r,a,s){for(var l=e.length,u=e[0].length,h=0;h<l;h++){t[h]||(t[1]=[]);for(var c=0;c<u;c++)t[h][c]=Wn(e[h][c],n[h][c],i[h][c],o[h][c],r,a,s)}})(c,d,p,f,g,h,h*h,h*h*h):l?(Un(c,d,p,f,g,h,h*h,h*h*h),n||(t[a]=Yn(c))):(y=void 0,y=this.interpolable?Wn(d,p,f,g,h,h*h,h*h*h):f,n?this._additiveValue=y:t[a]=y)):0<s?(1===s?Bn:function(t,e,n,i){for(var o=e.length,r=o&&e[0].length,a=0;a<o;a++){t[a]||(t[a]=[]);for(var s=0;s<r;s++)t[a][s]=Vn(e[a][s],n[a][s],i)}})(c,v[i],m[i],h):l?(Bn(c,v[i],m[i],h),n||(t[a]=Yn(c))):(y=void 0,y=this.interpolable?Vn(v[i],m[i],h):(v=v[i],i=m[i],.5<h?i:v),n?this._additiveValue=y:t[a]=y),n&&this._addToTarget(t)))}},ai.prototype._addToTarget=function(t){var e=this.arrDim,n=this.propName,i=this._additiveValue;0===e?this.isValueColor?(Mn(t[n],qn),Gn(qn,qn,i,1),t[n]=Yn(qn)):t[n]=t[n]+i:1===e?Gn(t[n],t[n],i,1):2===e&&Fn(t[n],t[n],i,1)},ai),$n=(ri.prototype.getTarget=function(){return this._target},ri.prototype.changeTarget=function(t){this._target=t},ri.prototype.when=function(t,e){return this.whenWithKeys(t,e,J(e))},ri.prototype.whenWithKeys=function(t,e,n){for(var i=this._tracks,o=0;o<n.length;o++){var r=n[o];if(!(s=i[r])){var a,s=i[r]=new Kn(r),l=void 0,u=this._getAdditiveTrack(r);if(u?(l=(a=u.keyframes[u.keyframes.length-1])&&a.value,u.isValueColor&&l&&(l=Yn(l))):l=this._target[r],null==l)continue;0!==t&&s.addKeyframe(0,Xn(l)),this._trackKeys.push(r)}s.addKeyframe(t,Xn(e[r]))}return this._maxTime=Math.max(this._maxTime,t),this},ri.prototype.pause=function(){this._clip.pause(),this._paused=!0},ri.prototype.resume=function(){this._clip.resume(),this._paused=!1},ri.prototype.isPaused=function(){return!!this._paused},ri.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},ri.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},ri.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},ri.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var o=n[i].getTrack(t);o&&(e=o)}return e},ri.prototype.start=function(t,e){if(!(0<this._started)){this._started=1;for(var r=this,a=[],n=0;n<this._trackKeys.length;n++){var i=this._trackKeys[n],o=this._tracks[i],s=this._getAdditiveTrack(i),i=o.keyframes;o.prepare(s),o.needsAnimate()?a.push(o):o.interpolable||(i=i[i.length-1])&&(r._target[o.propName]=i.value)}return a.length||e?(e=new rn({life:this._maxTime,loop:this._loop,delay:this._delay,onframe:function(t){r._started=2;var e=r._additiveAnimators;if(e){for(var n=!1,i=0;i<e.length;i++)if(e[i]._clip){n=!0;break}n||(r._additiveAnimators=null)}for(i=0;i<a.length;i++)a[i].step(r._target,t);var o=r._onframeCbs;if(o)for(i=0;i<o.length;i++)o[i](r._target,t)},ondestroy:function(){r._doneCallback()}}),this._clip=e,this.animation&&this.animation.addClip(e),t&&"spline"!==t&&(e.easing=t)):this._doneCallback(),this}},ri.prototype.stop=function(t){var e;this._clip&&(e=this._clip,t&&e.onframe(1),this._abortedCallback())},ri.prototype.delay=function(t){return this._delay=t,this},ri.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},ri.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},ri.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},ri.prototype.getClip=function(){return this._clip},ri.prototype.getTrack=function(t){return this._tracks[t]},ri.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,o=0;o<t.length;o++){var r=n[t[o]];r&&(e?r.step(this._target,1):1===this._started&&r.step(this._target,0),r.setFinished())}for(var a=!0,o=0;o<i.length;o++)if(!n[i[o]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},ri.prototype.saveFinalToTarget=function(t,e){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var i,o=e[n],r=this._tracks[o];!r||r.isFinished()||(i=(i=r.keyframes)[i.length-1])&&(i=Xn(i.value),r.isValueColor&&(i=Yn(i)),t[o]=i)}}},ri.prototype.__changeFinalValue=function(t,e){e=e||J(t);for(var n=0;n<e.length;n++){var i,o=e[n],r=this._tracks[o];!r||1<(i=r.keyframes).length&&(i=i.pop(),r.addKeyframe(i.time,t[o]),r.prepare(r.getAdditiveTrack()))}},ri),Jn=(Pt(oi,jn=ae),oi.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._clipsHead?((this._clipsTail.next=t).prev=this._clipsTail,t.next=null,this._clipsTail=t):this._clipsHead=this._clipsTail=t,t.animation=this},oi.prototype.addAnimator=function(t){t.animation=this;t=t.getClip();t&&this.addClip(t)},oi.prototype.removeClip=function(t){var e,n;t.animation&&(e=t.prev,n=t.next,e?e.next=n:this._clipsHead=n,n?n.prev=e:this._clipsTail=e,t.next=t.prev=t.animation=null)},oi.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},oi.prototype.update=function(t){for(var e=(new Date).getTime()-this._pausedTime,n=e-this._time,i=this._clipsHead;i;)var o=i.next,i=(i.step(e,n)&&(i.ondestroy&&i.ondestroy(),this.removeClip(i)),o);this._time=e,t||(this.onframe(n),this.trigger("frame",n),this.stage.update&&this.stage.update())},oi.prototype._startLoop=function(){var e=this;this._running=!0,en(function t(){e._running&&(en(t),e._paused||e.update())})},oi.prototype.start=function(){this._running||(this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop())},oi.prototype.stop=function(){this._running=!1},oi.prototype.pause=function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},oi.prototype.resume=function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},oi.prototype.clear=function(){for(var t=this._clipsHead;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._clipsHead=this._clipsTail=null},oi.prototype.isFinished=function(){return null==this._clipsHead},oi.prototype.animate=function(t,e){e=e||{},this.start();e=new $n(t,e.loop);return this.addAnimator(e),e},oi),Qn=w.domSupported,ti=(Zn={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Zs=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:j(Zs,function(t){var e=t.replace("mouse","pointer");return Zn.hasOwnProperty(e)?e:t})}),ei=["mousemove","mouseup"],ni=["pointermove","pointerup"],ii=!1;function oi(t){var e=jn.call(this)||this;return e._running=!1,e._time=0,e._pausedTime=0,e._pauseStart=0,e._paused=!1,e.stage=(t=t||{}).stage||{},e.onframe=t.onframe||function(){},e}function ri(t,e,n){this._tracks={},this._trackKeys=[],this._delay=0,this._maxTime=0,this._paused=!1,this._started=0,this._clip=null,this._target=t,(this._loop=e)&&n?z("Can' use additive animation on looped animation."):this._additiveAnimators=n}function ai(t){this.keyframes=[],this.maxTime=0,this.arrDim=0,this.interpolable=!0,this._needsSort=!1,this._isAllValueEqual=!0,this._lastFrame=0,this._lastFramePercent=0,this.propName=t}function si(t){t=t.pointerType;return"pen"===t||"touch"===t}function li(t){t&&(t.zrByTouch=!0)}function ui(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var hi=function(t,e){this.stopPropagation=kt,this.stopImmediatePropagation=kt,this.preventDefault=kt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},ci={mousedown:function(t){t=we(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=we(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=we(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){ui(this,(t=we(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){ii=!0,t=we(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){ii||(t=we(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){li(t=we(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),ci.mousemove.call(this,t),ci.mousedown.call(this,t)},touchmove:function(t){li(t=we(this.dom,t)),this.handler.processGesture(t,"change"),ci.mousemove.call(this,t)},touchend:function(t){li(t=we(this.dom,t)),this.handler.processGesture(t,"end"),ci.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&ci.click.call(this,t)},pointerdown:function(t){ci.mousedown.call(this,t)},pointermove:function(t){si(t)||ci.mousemove.call(this,t)},pointerup:function(t){ci.mouseup.call(this,t)},pointerout:function(t){si(t)||ci.mouseout.call(this,t)}};Z(["click","dblclick","contextmenu"],function(e){ci[e]=function(t){t=we(this.dom,t),this.trigger(e,t)}});var pi={pointermove:function(t){si(t)||pi.mousemove.call(this,t)},pointerup:function(t){pi.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function di(i,o){var r=o.domHandlers;w.pointerEventsSupported?Z(ti.pointer,function(e){gi(o,e,function(t){r[e].call(i,t)})}):(w.touchEventsSupported&&Z(ti.touch,function(n){gi(o,n,function(t){var e;r[n].call(i,t),(e=o).touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)})}),Z(ti.mouse,function(e){gi(o,e,function(t){t=be(t),o.touching||r[e].call(i,t)})}))}function fi(i,o){function t(n){gi(o,n,function(t){var e;t=be(t),ui(i,t.target)||(e=t,t=we(i.dom,new hi(i,e),!0),o.domHandlers[n].call(i,t))},{capture:!0})}w.pointerEventsSupported?Z(ni,t):w.touchEventsSupported||Z(ei,t)}function gi(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,Se(t.domTarget,e,n,i)}function yi(t){var e,n,i,o,r,a=t.mounted;for(e in a)a.hasOwnProperty(e)&&(n=t.domTarget,i=e,o=a[e],r=t.listenerOpts[e],ye?n.removeEventListener(i,o,r):n.detachEvent("on"+i,o));t.mounted={}}var mi,vi=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},xi=(Pt(bi,mi=ae),bi.prototype.dispose=function(){yi(this._localHandlerScope),Qn&&yi(this._globalHandlerScope)},bi.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},bi.prototype.__togglePointerCapture=function(t){var e;this.__mayPointerCapture=null,Qn&&+this.__pointerCapturing^+t&&(this.__pointerCapturing=t,e=this._globalHandlerScope,t?fi(this,e):yi(e))},bi),_i=1;function bi(t,e){var n=mi.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=e,n._localHandlerScope=new vi(t,ci),Qn&&(n._globalHandlerScope=new vi(document,pi)),di(n,n._localHandlerScope),n}var wi=_i="undefined"!=typeof window?Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1):_i,Si="#333",Mi="#ccc";function Ii(){return[1,0,0,1,0,0]}function Ti(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Ci(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Di(t,e,n){var i=e[0]*n[0]+e[2]*n[1],o=e[1]*n[0]+e[3]*n[1],r=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],e=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=o,t[2]=r,t[3]=a,t[4]=s,t[5]=e,t}function Ai(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function ki(t,e,n){var i=e[0],o=e[2],r=e[4],a=e[1],s=e[3],l=e[5],e=Math.sin(n),n=Math.cos(n);return t[0]=i*n+a*e,t[1]=-i*e+a*n,t[2]=o*n+s*e,t[3]=-o*e+n*s,t[4]=n*r+e*l,t[5]=n*l-e*r,t}function Li(t,e,n){var i=n[0],n=n[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function Pi(t,e){var n=e[0],i=e[2],o=e[4],r=e[1],a=e[3],s=e[5],e=n*a-r*i;return e?(t[0]=a*(e=1/e),t[1]=-r*e,t[2]=-i*e,t[3]=n*e,t[4]=(i*s-a*o)*e,t[5]=(r*o-n*s)*e,t):null}function Oi(t){var e=Ii();return Ci(e,t),e}var Ri=Ti;function Ni(t){return 5e-5<t||t<-5e-5}var zi,Ei,Vi=[],Bi=[],Gi=Ii(),Fi=Math.abs,n=(oo.prototype.getLocalTransform=function(t){return oo.getLocalTransform(this,t)},oo.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},oo.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},oo.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},oo.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},oo.prototype.needLocalTransform=function(){return Ni(this.rotation)||Ni(this.x)||Ni(this.y)||Ni(this.scaleX-1)||Ni(this.scaleY-1)},oo.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||Ii(),e?this.getLocalTransform(n):Ri(n),t&&(e?Di(n,t,n):Ci(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&Ri(n)},oo.prototype._resolveGlobalScaleRatio=function(t){var e,n,i=this.globalScaleRatio;null!=i&&1!==i&&(this.getGlobalScale(Vi),n=((Vi[1]-(e=Vi[1]<0?-1:1))*i+e)/Vi[1]||0,t[0]*=e=((Vi[0]-(e=Vi[0]<0?-1:1))*i+e)/Vi[0]||0,t[1]*=e,t[2]*=n,t[3]*=n),this.invTransform=this.invTransform||Ii(),Pi(this.invTransform,t)},oo.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},oo.prototype.setLocalTransform=function(t){var e,n,i,o;t&&(o=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],e=Math.atan2(t[1],t[0]),n=Math.PI/2+e-Math.atan2(t[3],t[2]),i=Math.sqrt(i)*Math.cos(n),o=Math.sqrt(o),this.skewX=n,this.skewY=0,this.rotation=-e,this.x=+t[4],this.y=+t[5],this.scaleX=o,this.scaleY=i,this.originX=0,this.originY=0)},oo.prototype.decomposeTransform=function(){var t,e,n;this.transform&&(n=this.parent,t=this.transform,n&&n.transform&&(Di(Bi,n.invTransform,t),t=Bi),e=this.originX,n=this.originY,(e||n)&&(Gi[4]=e,Gi[5]=n,Di(Bi,t,Gi),Bi[4]-=e,Bi[5]-=n,t=Bi),this.setLocalTransform(t))},oo.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1])):(t[0]=1,t[1]=1),t},oo.prototype.transformCoordToLocal=function(t,e){t=[t,e],e=this.invTransform;return e&&ee(t,t,e),t},oo.prototype.transformCoordToGlobal=function(t,e){t=[t,e],e=this.transform;return e&&ee(t,t,e),t},oo.prototype.getLineScale=function(){var t=this.transform;return t&&1e-10<Fi(t[0]-1)&&1e-10<Fi(t[3]-1)?Math.sqrt(Fi(t[0]*t[3]-t[2]*t[1])):1},oo.prototype.copyTransform=function(t){for(var e=0;e<Hi.length;e++){var n=Hi[e];this[n]=t[n]}},oo.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,o=t.scaleX,r=t.scaleY,a=t.rotation||0,s=t.x,l=t.y,u=t.skewX?Math.tan(t.skewX):0,t=t.skewY?Math.tan(-t.skewY):0;return n||i?(e[4]=-n*o-u*i*r,e[5]=-i*r-t*n*o):e[4]=e[5]=0,e[0]=o,e[3]=r,e[1]=t*o,e[2]=u*r,a&&ki(e,e,a),e[4]+=n+s,e[5]+=i+l,e},oo.initDefaultProps=((e=oo.prototype).x=0,e.y=0,e.scaleX=1,e.scaleY=1,e.originX=0,e.originY=0,e.skewX=0,e.skewY=0,e.rotation=0,void(e.globalScaleRatio=1)),oo),Hi=["x","y","originX","originY","rotation","scaleX","scaleY","skewX","skewY"],Wi=n,Ui=(io.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},io.prototype.clone=function(){return new io(this.x,this.y)},io.prototype.set=function(t,e){return this.x=t,this.y=e,this},io.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},io.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},io.prototype.scale=function(t){this.x*=t,this.y*=t},io.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},io.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},io.prototype.dot=function(t){return this.x*t.x+this.y*t.y},io.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},io.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},io.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},io.prototype.distance=function(t){var e=this.x-t.x,t=this.y-t.y;return Math.sqrt(e*e+t*t)},io.prototype.distanceSquare=function(t){var e=this.x-t.x,t=this.y-t.y;return e*e+t*t},io.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},io.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},io.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},io.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},io.set=function(t,e,n){t.x=e,t.y=n},io.copy=function(t,e){t.x=e.x,t.y=e.y},io.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},io.lenSquare=function(t){return t.x*t.x+t.y*t.y},io.dot=function(t,e){return t.x*e.x+t.y*e.y},io.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},io.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},io.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},io.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},io.lerp=function(t,e,n,i){var o=1-i;t.x=o*e.x+i*n.x,t.y=o*e.y+i*n.y},io),Xi=Math.min,Yi=Math.max,Zi=new Ui,ji=new Ui,qi=new Ui,Ki=new Ui,$i=new Ui,Ji=new Ui,Qi=(no.prototype.union=function(t){var e=Xi(t.x,this.x),n=Xi(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Yi(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Yi(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},no.prototype.applyTransform=function(t){no.applyTransform(this,this,t)},no.prototype.calculateTransform=function(t){var e=t.width/this.width,n=t.height/this.height,i=Ii();return Ai(i,i,[-this.x,-this.y]),Li(i,i,[e,n]),Ai(i,i,[t.x,t.y]),i},no.prototype.intersect=function(t,e){if(!t)return!1;t instanceof no||(t=no.create(t));var n,i,o,r,a,s,l,u=this.x,h=this.x+this.width,c=this.y,p=this.y+this.height,d=t.x,f=t.x+t.width,g=t.y,y=t.y+t.height,m=!(h<d||f<u||p<g||y<c);return e&&(n=1/0,i=0,o=Math.abs(h-d),r=Math.abs(f-u),a=Math.abs(p-g),s=Math.abs(y-c),l=Math.min(o,r),t=Math.min(a,s),h<d||f<u?i<l&&(i=l,o<r?Ui.set(Ji,-o,0):Ui.set(Ji,r,0)):l<n&&(n=l,o<r?Ui.set($i,o,0):Ui.set($i,-r,0)),p<g||y<c?i<t&&(i=t,a<s?Ui.set(Ji,0,-a):Ui.set(Ji,0,s)):l<n&&(n=l,a<s?Ui.set($i,0,a):Ui.set($i,0,-s))),e&&Ui.copy(e,m?$i:Ji),m},no.prototype.contain=function(t,e){return t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},no.prototype.clone=function(){return new no(this.x,this.y,this.width,this.height)},no.prototype.copy=function(t){no.copy(this,t)},no.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},no.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},no.prototype.isZero=function(){return 0===this.width||0===this.height},no.create=function(t){return new no(t.x,t.y,t.width,t.height)},no.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},no.applyTransform=function(t,e,n){if(n){if(n[1]<1e-5&&-1e-5<n[1]&&n[2]<1e-5&&-1e-5<n[2]){var i=n[0],o=n[3],r=n[4],a=n[5];return t.x=e.x*i+r,t.y=e.y*o+a,t.width=e.width*i,t.height=e.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}Zi.x=qi.x=e.x,Zi.y=Ki.y=e.y,ji.x=Ki.x=e.x+e.width,ji.y=qi.y=e.y+e.height,Zi.transform(n),Ki.transform(n),ji.transform(n),qi.transform(n),t.x=Xi(Zi.x,ji.x,qi.x,Ki.x),t.y=Xi(Zi.y,ji.y,qi.y,Ki.y);o=Yi(Zi.x,ji.x,qi.x,Ki.x),n=Yi(Zi.y,ji.y,qi.y,Ki.y);t.width=o-t.x,t.height=n-t.y}else t!==e&&no.copy(t,e)},no),to={},eo="12px sans-serif";function no(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}function io(t,e){this.x=t||0,this.y=e||0}function oo(){}var ro={measureText:function(t,e){return zi=zi||H().getContext("2d"),Ei!==e&&(Ei=zi.font=e||eo),zi.measureText(t)}};function ao(t,e){var n=to[e=e||eo],i=(n=n||(to[e]=new ln(500))).get(t);return null==i&&(i=ro.measureText(t,e).width,n.put(t,i)),i}function so(t,e,n,i){t=ao(t,e),e=co(e),n=uo(0,t,n),i=ho(0,e,i);return new Qi(n,i,t,e)}function lo(t,e,n,i){var o=((t||"")+"").split("\n");if(1===o.length)return so(o[0],e,n,i);for(var r=new Qi(0,0,0,0),a=0;a<o.length;a++){var s=so(o[a],e,n,i);0===a?r.copy(s):r.union(s)}return r}function uo(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function ho(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function co(t){return ao("国",t)}function po(t,e){return"string"==typeof t?0<=t.lastIndexOf("%")?parseFloat(t)/100*e:parseFloat(t):t}function fo(t,e,n){var i=e.position||"inside",o=null!=e.distance?e.distance:5,r=n.height,a=n.width,s=r/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=po(i[0],n.width),u+=po(i[1],n.height),c=h=null;else switch(i){case"left":l-=o,u+=s,h="right",c="middle";break;case"right":l+=o+a,u+=s,c="middle";break;case"top":l+=a/2,u-=o,h="center",c="bottom";break;case"bottom":l+=a/2,u+=r+o,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=o,u+=s,c="middle";break;case"insideRight":l+=a-o,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=o,h="center";break;case"insideBottom":l+=a/2,u+=r-o,h="center",c="bottom";break;case"insideTopLeft":l+=o,u+=o;break;case"insideTopRight":l+=a-o,u+=o,h="right";break;case"insideBottomLeft":l+=o,u+=r-o,c="bottom";break;case"insideBottomRight":l+=a-o,u+=r-o,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}var go="__zr_normal__",yo=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],mo={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},vo={},xo=new Qi(0,0,0,0),_o=(bo.prototype._init=function(t){this.attr(t)},bo.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;(i=i||(this.transform=[1,0,0,1,0,0]))[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},bo.prototype.beforeUpdate=function(){},bo.prototype.afterUpdate=function(){},bo.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},bo.prototype.updateInnerText=function(t){var e,n,i,o,r,a,s,l,u,h,c=this._textContent;!c||c.ignore&&!t||(this.textConfig||(this.textConfig={}),a=(e=this.textConfig).local,o=i=void 0,n=!1,(u=c.innerTransformable).parent=a?this:null,l=!1,u.copyTransform(c),null!=e.position&&(s=xo,e.layoutRect?s.copy(e.layoutRect):s.copy(this.getBoundingRect()),a||s.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(vo,e,s):fo(vo,e,s),u.x=vo.x,u.y=vo.y,i=vo.align,o=vo.verticalAlign,(r=e.origin)&&null!=e.rotation&&(h=t=void 0,h="center"===r?(t=.5*s.width,.5*s.height):(t=po(r[0],s.width),po(r[1],s.height)),l=!0,u.originX=-u.x+t+(a?0:s.x),u.originY=-u.y+h+(a?0:s.y))),null!=e.rotation&&(u.rotation=e.rotation),(h=e.offset)&&(u.x+=h[0],u.y+=h[1],l||(u.originX=-h[0],u.originY=-h[1])),a=null==e.inside?"string"==typeof e.position&&0<=e.position.indexOf("inside"):e.inside,s=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),h=u=l=void 0,a&&this.canBeInsideText()?(l=e.insideFill,u=e.insideStroke,null!=l&&"auto"!==l||(l=this.getInsideTextFill()),null!=u&&"auto"!==u||(u=this.getInsideTextStroke(l),h=!0)):(l=e.outsideFill,u=e.outsideStroke,null!=l&&"auto"!==l||(l=this.getOutsideFill()),null!=u&&"auto"!==u||(u=this.getOutsideStroke(l),h=!0)),(l=l||"#000")===s.fill&&u===s.stroke&&h===s.autoStroke&&i===s.align&&o===s.verticalAlign||(n=!0,s.fill=l,s.stroke=u,s.autoStroke=h,s.align=i,s.verticalAlign=o,c.setDefaultTextStyle(s)),c.__dirty|=qe,n&&c.dirtyStyle(!0))},bo.prototype.canBeInsideText=function(){return!0},bo.prototype.getInsideTextFill=function(){return"#fff"},bo.prototype.getInsideTextStroke=function(t){return"#000"},bo.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Mi:Si},bo.prototype.getOutsideStroke=function(t){for(var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&Mn(e),i=(n=n||[255,255,255,1])[3],o=this.__zr.isDarkMode(),r=0;r<3;r++)n[r]=n[r]*i+(o?0:255)*(1-i);return n[3]=1,Rn(n,"rgba")},bo.prototype.traverse=function(t,e){},bo.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},G(this.extra,e)):this[t]=e},bo.prototype.hide=function(){this.ignore=!0,this.markRedraw()},bo.prototype.show=function(){this.ignore=!1,this.markRedraw()},bo.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(at(t))for(var n=J(t),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,t[o])}return this.markRedraw(),this},bo.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],o=i.__fromStateTransition;o&&o!==go||(o=(o=i.targetName)?e[o]:e,i.saveFinalToTarget(o))}},bo.prototype._innerSaveToNormal=function(t){var e=(e=this._normalState)||(this._normalState={});t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,yo)},bo.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var o=n[i];null==t[o]||o in e||(e[o]=this[o])}},bo.prototype.hasState=function(){return 0<this.currentStates.length},bo.prototype.getState=function(t){return this.states[t]},bo.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},bo.prototype.clearStates=function(t){this.useState(go,!1,t)},bo.prototype.useState=function(t,e,n,i){var o=t===go;if(this.hasState()||!o){var r,a=this.currentStates,s=this.stateTransition;if(!(0<=W(a,t))||!e&&1!==a.length){if((r=(r=this.stateProxy&&!o?this.stateProxy(t):r)||this.states&&this.states[t])||o){o||this.saveCurrentToNormalState(r);a=!!(r&&r.hoverLayer||i);a&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,r,this._normalState,e,!n&&!this.__inHover&&s&&0<s.duration,s);i=this._textContent,s=this._textGuide;return i&&i.useState(t,e,n,a),s&&s.useState(t,e,n,a),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!a&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~qe),r}z("State "+t+" not exists.")}}},bo.prototype.useStates=function(t,e,n){if(t.length){var i=[],o=this.currentStates,r=t.length,a=r===o.length;if(a)for(var s=0;s<r;s++)if(t[s]!==o[s]){a=!1;break}if(!a){for(s=0;s<r;s++){var l=t[s],u=void 0;(u=(u=this.stateProxy?this.stateProxy(l,t):u)||this.states[l])&&i.push(u)}var h=i[r-1],c=!!(h&&h.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0);h=this._mergeStates(i),n=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!e&&!this.__inHover&&n&&0<n.duration,n);h=this._textContent,n=this._textGuide;h&&h.useStates(t,e,c),n&&n.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~qe)}}else this.clearStates()},bo.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},bo.prototype.removeState=function(t){var e=W(this.currentStates,t);0<=e&&((t=this.currentStates.slice()).splice(e,1),this.useStates(t))},bo.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),o=W(i,t),t=0<=W(i,e);0<=o?t?i.splice(o,1):i[o]=e:n&&!t&&i.push(e),this.useStates(i)},bo.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},bo.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var o=t[i];G(n,o),o.textConfig&&G(e=e||{},o.textConfig)}return e&&(n.textConfig=e),n},bo.prototype._applyStateObj=function(t,e,n,i,o,r){var a=!(e&&i);e&&e.textConfig?(this.textConfig=G({},(i?this:n).textConfig),G(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<yo.length;u++){var h=yo[u],c=o&&mo[h];e&&null!=e[h]?c?(l=!0,s[h]=e[h]):this[h]=e[h]:a&&null!=n[h]&&(c?(l=!0,s[h]=n[h]):this[h]=n[h])}if(!o)for(u=0;u<this.animators.length;u++){var p=this.animators[u],d=p.targetName;p.__changeFinalValue(d?(e||n)[d]:e||n)}l&&this._transitionState(t,s,r)},bo.prototype._attachComponent=function(t){if(t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");if(t===this)throw new Error("Recursive component attachment.");var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this},bo.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},bo.prototype.getClipPath=function(){return this._clipPath},bo.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},bo.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},bo.prototype.getTextContent=function(){return this._textContent},bo.prototype.setTextContent=function(t){var e=this._textContent;if(e!==t){if(e&&e!==t&&this.removeTextContent(),t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.innerTransformable=new Wi,this._attachComponent(t),this._textContent=t,this.markRedraw()}},bo.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),G(this.textConfig,t),this.markRedraw()},bo.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},bo.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},bo.prototype.getTextGuideLine=function(){return this._textGuide},bo.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},bo.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},bo.prototype.markRedraw=function(){this.__dirty|=qe;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},bo.prototype.dirty=function(){this.markRedraw()},bo.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},bo.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},bo.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},bo.prototype.animate=function(t,e){var n=t?this[t]:this;if(n){e=new $n(n,e);return this.addAnimator(e,t),e}z('Property "'+t+'" is not existed in element '+this.id)},bo.prototype.addAnimator=function(n,t){var e=this.__zr,i=this;n.during(function(){i.updateDuringAnimation(t)}).done(function(){var t=i.animators,e=W(t,n);0<=e&&t.splice(e,1)}),this.animators.push(n),e&&e.animation.addAnimator(n),e&&e.wakeUp()},bo.prototype.updateDuringAnimation=function(t){this.markRedraw()},bo.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,o=[],r=0;r<i;r++){var a=n[r];t&&t!==a.scope?o.push(a):a.stop(e)}return this.animators=o,this},bo.prototype.animateTo=function(t,e,n){wo(this,t,e,n)},bo.prototype.animateFrom=function(t,e,n){wo(this,t,e,n,!0)},bo.prototype._transitionState=function(t,e,n,i){for(var o=wo(this,e,n,i),r=0;r<o.length;r++)o[r].__fromStateTransition=t},bo.prototype.getBoundingRect=function(){return null},bo.prototype.getPaintRect=function(){return null},bo.initDefaultProps=function(){var t=bo.prototype;t.type="element",t.name="",t.ignore=!1,t.silent=!1,t.isGroup=!1,t.draggable=!1,t.dragging=!1,t.ignoreClip=!1,t.__inHover=!1,t.__dirty=qe;var i={};function a(t,e,n){i[t+e+n]||(i[t+e+n]=!0)}function e(e,n,i,o){function r(e,t){Object.defineProperty(t,0,{get:function(){return e[i]},set:function(t){e[i]=t}}),Object.defineProperty(t,1,{get:function(){return e[o]},set:function(t){e[o]=t}})}Object.defineProperty(t,e,{get:function(){var t;return a(e,i,o),this[n]||(t=this[n]=[],r(this,t)),this[n]},set:function(t){a(e,i,o),this[i]=t[0],this[o]=t[1],this[n]=t,r(this,t)}})}Object.defineProperty&&(!w.browser.ie||8<w.browser.version)&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))}(),bo);function bo(t){this.id=R++,this.animators=[],this.currentStates=[],this.states={},this._init(t)}function wo(t,e,n,i,o){var r=[];!function t(e,n,i,o,r,a,s,l){for(var u=[],h=[],c=J(o),p=r.duration,d=r.delay,f=r.additive,g=r.setToFinal,y=!at(a),m=0;m<c.length;m++){var v=c[m];null!=i[v]&&null!=o[v]&&(y||a[v])?at(o[v])&&!Y(o[v])?n?l||(i[v]=o[v],e.updateDuringAnimation(n)):t(e,v,i[v],o[v],r,a&&a[v],s,l):(u.push(v),h.push(v)):l||(i[v]=o[v],e.updateDuringAnimation(n),h.push(v))}var x=u.length;if(0<x||r.force&&!s.length){for(var _=e.animators,b=[],w=0;w<_.length;w++)_[w].targetName===n&&b.push(_[w]);if(!f&&b.length)for(w=0;w<b.length;w++){var S=b[w].stopTracks(h);S&&(S=W(_,b[w]),_.splice(S,1))}var M=void 0,I=void 0,T=void 0;if(l)for(I={},g&&(M={}),w=0;w<x;w++)v=u[w],I[v]=i[v],g?M[v]=o[v]:i[v]=o[v];else if(g)for(T={},w=0;w<x;w++)v=u[w],T[v]=Xn(i[v]),Mo(i,o,v);f=new $n(i,!1,f?b:null);f.targetName=n,r.scope&&(f.scope=r.scope),g&&M&&f.whenWithKeys(0,M,u),T&&f.whenWithKeys(0,T,u),f.whenWithKeys(null==p?500:p,l?I:o,u).delay(d||0),e.addAnimator(f,n),s.push(f)}}(t,"",t,e,n=n||{},i,r,o);function a(){u=!0,--l<=0&&(u?h&&h():c&&c())}function s(){--l<=0&&(u?h&&h():c&&c())}var l=r.length,u=!1,h=n.done,c=n.aborted;l||h&&h(),0<r.length&&n.during&&r[0].during(function(t,e){n.during(e)});for(var p=0;p<r.length;p++){var d=r[p];d.done(a),d.aborted(s),d.start(n.easing,n.force)}return r}function So(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function Mo(t,e,n){if(Y(e[n]))if(Y(t[n])||(t[n]=[]),lt(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),So(t[n],e[n],i))}else{var o=e[n],r=t[n],a=o.length;if(Y(o[0]))for(var s=o[0].length,l=0;l<a;l++)r[l]?So(r[l],o[l],s):r[l]=Array.prototype.slice.call(o[l]);else So(r,o,a);r.length=o.length}else t[n]=e[n]}X(_o,ae),X(_o,Wi);var Io,To=_o,Co=(Pt(Do,Io=To),Do.prototype.childrenRef=function(){return this._children},Do.prototype.children=function(){return this._children.slice()},Do.prototype.childAt=function(t){return this._children[t]},Do.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},Do.prototype.childCount=function(){return this._children.length},Do.prototype.add=function(t){if(t&&(t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),t.__hostTarget))throw"This elemenet has been used as an attachment";return this},Do.prototype.addBefore=function(t,e){var n;return t&&t!==this&&t.parent!==this&&e&&e.parent===this&&(0<=(e=(n=this._children).indexOf(e))&&(n.splice(e,0,t),this._doAdd(t))),this},Do.prototype.replace=function(t,e){t=W(this._children,t);return 0<=t&&this.replaceAt(e,t),this},Do.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];return t&&t!==this&&t.parent!==this&&t!==i&&(n[e]=t,i.parent=null,(e=this.__zr)&&i.removeSelfFromZr(e),this._doAdd(t)),this},Do.prototype._doAdd=function(t){t.parent&&t.parent.remove(t);var e=(t.parent=this).__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},Do.prototype.remove=function(t){var e=this.__zr,n=this._children,i=W(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},Do.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},Do.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var o=n[i];t.call(e,o,i)}return this},Do.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],o=t.call(e,i);i.isGroup&&!o&&i.traverse(t,e)}return this},Do.prototype.addSelfToZr=function(t){Io.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].addSelfToZr(t)},Do.prototype.removeSelfFromZr=function(t){Io.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].removeSelfFromZr(t)},Do.prototype.getBoundingRect=function(t){for(var e=new Qi(0,0,0,0),n=t||this._children,i=[],o=null,r=0;r<n.length;r++){var a,s=n[r];s.ignore||s.invisible||(a=s.getBoundingRect(),(s=s.getLocalTransform(i))?(Qi.applyTransform(e,a,s),(o=o||e.clone()).union(e)):(o=o||a.clone()).union(a))}return o||e},Do);function Do(t){var e=Io.call(this)||this;return e.isGroup=!0,e._children=[],e.attr(t),e}Co.prototype.type="group";var Ao=Co,ko=!w.canvasSupported,Lo={},Po={};var Oo=(Ro.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},Ro.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},Ro.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},Ro.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return Nn(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,o=0;o<i;o++)n+=Nn(e[o].color,1);return(n/=i)<.4}return!1}(t)},Ro.prototype.getBackgroundColor=function(){return this._backgroundColor},Ro.prototype.setDarkMode=function(t){this._darkMode=t},Ro.prototype.isDarkMode=function(){return this._darkMode},Ro.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},Ro.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},Ro.prototype.flush=function(){this._flush(!1)},Ro.prototype._flush=function(t){var e,n=(new Date).getTime();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());t=(new Date).getTime();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:t-n})):0<this._sleepAfterStill&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},Ro.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},Ro.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},Ro.prototype.addHover=function(t){},Ro.prototype.removeHover=function(t){},Ro.prototype.clearHover=function(){},Ro.prototype.refreshHover=function(){this._needsRefreshHover=!0},Ro.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},Ro.prototype.resize=function(t){this.painter.resize((t=t||{}).width,t.height),this.handler.resize()},Ro.prototype.clearAnimation=function(){this.animation.clear()},Ro.prototype.getWidth=function(){return this.painter.getWidth()},Ro.prototype.getHeight=function(){return this.painter.getHeight()},Ro.prototype.pathToImage=function(t,e){if(this.painter.pathToImage)return this.painter.pathToImage(t,e)},Ro.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},Ro.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},Ro.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},Ro.prototype.off=function(t,e){this.handler.off(t,e)},Ro.prototype.trigger=function(t,e){this.handler.trigger(t,e)},Ro.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Ao&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},Ro.prototype.dispose=function(){var t;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,t=this.id,delete Po[t]},Ro);function Ro(t,e,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var o=new Qe,r=n.renderer||"canvas";if(ko)throw new Error("IE8 support has been dropped since 5.0");if(Lo[r]||(r=J(Lo)[0]),!Lo[r])throw new Error("Renderer '"+r+"' is not imported. Please import it first.");n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;n=new Lo[r](e,o,n,t);this.storage=o,this.painter=n;t=w.node||w.worker?null:new xi(n.getViewportRoot(),n.root);this.handler=new Ge(o,n,t,n.root),this.animation=new Jn({stage:{update:function(){return i._flush(!0)}}}),this.animation.start()}function No(t,e){e=new Oo(R++,t,e);return Po[e.id]=e}function zo(t){t.dispose()}function Eo(){for(var t in Po)Po.hasOwnProperty(t)&&Po[t].dispose();Po={}}function Vo(t){return Po[t]}function Bo(t,e){Lo[t]=e}var Go="5.2.1",Fo=1e-4,Ho=20;function Wo(t,e,n,i){var o=e[0],r=e[1],a=n[0],s=n[1],e=r-o,n=s-a;if(0==e)return 0==n?a:(a+s)/2;if(i)if(0<e){if(t<=o)return a;if(r<=t)return s}else{if(o<=t)return a;if(t<=r)return s}else{if(t===o)return a;if(t===r)return s}return(t-o)/e*n+a}function Uo(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function Xo(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),Ho),t=(+t).toFixed(e),n?t:+t}function Yo(t){return t.sort(function(t,e){return t-e}),t}function Zo(t){if(t=+t,isNaN(t))return 0;if(1e-14<t)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return jo(t)}function jo(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),t=0<n?+e.slice(n+1):0,n=0<n?n:e.length,e=e.indexOf(".");return Math.max(0,(e<0?0:n-1-e)-t)}function qo(t,e){var n=Math.log,i=Math.LN10,t=Math.floor(n(t[1]-t[0])/i),i=Math.round(n(Math.abs(e[1]-e[0]))/i),i=Math.min(Math.max(-t+i,0),20);return isFinite(i)?i:20}function Ko(t,e,n){if(!t[e])return 0;var i=q(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return 0;for(var o=Math.pow(10,n),t=j(t,function(t){return(isNaN(t)?0:t)/i*o*100}),r=100*o,a=j(t,function(t){return Math.floor(t)}),s=q(a,function(t,e){return t+e},0),l=j(t,function(t,e){return t-a[e]});s<r;){for(var u=Number.NEGATIVE_INFINITY,h=null,c=0,p=l.length;c<p;++c)l[c]>u&&(u=l[c],h=c);++a[h],l[h]=0,++s}return a[e]/o}var $o=9007199254740991;function Jo(t){var e=2*Math.PI;return(t%e+e)%e}function Qo(t){return-Fo<t&&t<Fo}var tr=/^(?:(\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 er(t){if(t instanceof Date)return t;if("string"!=typeof t)return null==t?new Date(NaN):new Date(Math.round(t));var e=tr.exec(t);if(!e)return new Date(NaN);if(e[8]){t=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(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))}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)}function nr(t){return Math.pow(10,ir(t))}function ir(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return 10<=t/Math.pow(10,e)&&e++,e}function or(t,e){var n=ir(t),i=Math.pow(10,n),o=t/i;return t=(e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10)*i,-20<=n?+t.toFixed(n<0?-n:0):t}function rr(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),e=+t[i-1],n=n-i;return n?e+n*(t[i]-e):e}function ar(t){t.sort(function(t,e){return function t(e,n,i){return e.interval[i]<n.interval[i]||e.interval[i]===n.interval[i]&&(e.close[i]-n.close[i]==(i?-1:1)||!i&&t(e,n,1))}(t,e,0)?-1:1});for(var e=-1/0,n=1,i=0;i<t.length;){for(var o=t[i].interval,r=t[i].close,a=0;a<2;a++)o[a]<=e&&(o[a]=e,r[a]=a?1:1-n),e=o[a],n=r[a];o[0]===o[1]&&r[0]*r[1]!=1?t.splice(i,1):i++}return t}function sr(t){var e=parseFloat(t);return e==t&&(0!==e||"string"!=typeof t||t.indexOf("x")<=0)?e:NaN}function lr(t){return!isNaN(sr(t))}function ur(){return Math.round(9*Math.random())}function hr(t,e){return null==t?e:null==e?t:t*e/function t(e,n){return 0===n?e:t(n,e%n)}(t,e)}var cr="series\0",pr="\0_ec_\0";function dr(t){return t instanceof Array?t:null==t?[]:[t]}function fr(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,o=n.length;i<o;i++){var r=n[i];!t.emphasis[e].hasOwnProperty(r)&&t[e].hasOwnProperty(r)&&(t.emphasis[e][r]=t[e][r])}}}var gr=["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 yr(t){return!at(t)||et(t)||t instanceof Date?t:t.value}function mr(t,n,e){var i="normalMerge"===e,o="replaceMerge"===e,r="replaceAll"===e;t=t||[],n=(n||[]).slice();var a=Tt();Z(n,function(t,e){at(t)||(n[e]=null)});var s,l,u,h,c,p,d,f,g,y,e=function(t,e,n){var i=[];if("replaceAll"===n)return i;for(var o=0;o<t.length;o++){var r=t[o];r&&null!=r.id&&e.set(r.id,o),i.push({existing:"replaceMerge"===n||wr(r)?null:r,newOption:null,keyInfo:null,brandNew:null})}return i}(t,a,e);return(i||o)&&(d=e,f=t,g=a,Z(y=n,function(t,e){var n,i,o;t&&null!=t.id&&(n=xr(t.id),null!=(i=g.get(n))&&(xt(!(o=d[i]).newOption,'Duplicated option on id "'+n+'".'),o.newOption=t,o.existing=f[i],y[e]=null))})),i&&(c=e,Z(p=n,function(t,e){if(t&&null!=t.name)for(var n=0;n<c.length;n++){var i=c[n].existing;if(!c[n].newOption&&i&&(null==i.id||null==t.id)&&!wr(t)&&!wr(i)&&vr("name",i,t))return c[n].newOption=t,void(p[e]=null)}})),i||o?(u=e,h=o,Z(n,function(t){if(t){for(var e,n=0;(e=u[n])&&(e.newOption||wr(e.existing)||e.existing&&null!=t.id&&!vr("id",t,e.existing));)n++;e?(e.newOption=t,e.brandNew=h):u.push({newOption:t,brandNew:h,existing:null,keyInfo:null}),n++}})):r&&(l=e,Z(n,function(t){l.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})),r=e,s=Tt(),Z(r,function(t){var e=t.existing;e&&s.set(e.id,t)}),Z(r,function(t){var e=t.newOption;xt(!e||null==e.id||!s.get(e.id)||s.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&s.set(e.id,t),t.keyInfo||(t.keyInfo={})}),Z(r,function(t,e){var n=t.existing,i=t.newOption,o=t.keyInfo;if(at(i)){if(o.name=null!=i.name?xr(i.name):n?n.name:cr+e,n)o.id=xr(n.id);else if(null!=i.id)o.id=xr(i.id);else for(var r=0;o.id="\0"+o.name+"\0"+r++,s.get(o.id););s.set(o.id,t)}}),e}function vr(t,e,n){e=_r(e[t],null),t=_r(n[t],null);return null!=e&&null!=t&&e===t}function xr(t){return _r(t,"")}function _r(t,e){if(null==t)return e;var n=typeof t;return"string"==n?t:"number"==n||ot(t)?t+"":e}function br(t){t=t.name;return!(!t||!t.indexOf(cr))}function wr(t){return t&&null!=t.id&&0===xr(t.id).indexOf(pr)}function Sr(t,o,r){Z(t,function(t){var e,n,i=t.newOption;at(i)&&(t.keyInfo.mainType=o,t.keyInfo.subType=(e=o,n=i,i=t.existing,t=r,n.type||(i?i.subType:t.determineSubType(e,n))))})}function Mr(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?et(t.dataIndex)?j(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?et(t.name)?j(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function Ir(){var e="__ec_inner_"+Tr++;return function(t){return t[e]||(t[e]={})}}var Tr=ur();function Cr(n,t,i){var e=Dr(t,i),o=e.mainTypeSpecified,t=e.queryOptionMap,r=e.others,a=i?i.defaultMainType:null;return!o&&a&&t.set(a,{}),t.each(function(t,e){t=Lr(n,e,t,{useDefault:a===e,enableAll:!i||null==i.enableAll||i.enableAll,enableNone:!i||null==i.enableNone||i.enableNone});r[e+"Models"]=t.models,r[e+"Model"]=t.models[0]}),r}function Dr(t,o){var e,t=it(t)?((e={})[t+"Index"]=0,e):t,r=Tt(),a={},s=!1;return Z(t,function(t,e){var n,i;"dataIndex"!==e&&"dataIndexInside"!==e?(n=(i=e.match(/^(\w+)(Index|Id|Name)$/)||[])[1],i=(i[2]||"").toLowerCase(),!n||!i||o&&o.includeMainTypes&&W(o.includeMainTypes,n)<0||(s=s||!!n,(r.get(n)||r.set(n,{}))[i]=t)):a[e]=t}),{mainTypeSpecified:s,queryOptionMap:r,others:a}}var Ar={useDefault:!0,enableAll:!1,enableNone:!1},kr={useDefault:!1,enableAll:!0,enableNone:!0};function Lr(t,e,n,i){i=i||Ar;var o=n.index,r=n.id,a=n.name,n={models:null,specified:null!=o||null!=r||null!=a};if(n.specified)return"none"===o||!1===o?(xt(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),n.models=[]):("all"===o&&(xt(i.enableAll,'`"all"` is not a valid value on index option.'),o=r=a=null),n.models=t.queryComponents({mainType:e,index:o,id:r,name:a})),n;a=void 0;return n.models=i.useDefault&&(a=t.getComponent(e))?[a]:[],n}function Pr(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function Or(t,n){var i=Tt(),o=[];return Z(t,function(t){var e=n(t);(i.get(e)||(o.push(e),i.set(e,[]))).push(t)}),{keys:o,buckets:i}}function Rr(t,e,n,i,o){var r=null==e||"auto"===e;if(null==i)return i;if("number"==typeof i){var a=Vn(n||0,i,o);return Xo(a,r?Math.max(Zo(n||0),Zo(i)):e)}if("string"==typeof i)return o<1?n:i;for(var s=[],l=n,u=i,h=Math.max(l?l.length:0,u.length),c=0;c<h;++c){var p,d=t.getDimensionInfo(c);d&&"ordinal"===d.type?s[c]=(o<1&&l?l:u)[c]:(a=Vn(p=l&&l[c]?l[c]:0,d=u[c],o),s[c]=Xo(a,r?Math.max(Zo(p),Zo(d)):e))}return s}var Nr=".",zr="___EC__COMPONENT__CONTAINER___",Er="___EC__EXTENDED_CLASS___";function Vr(t){var e={main:"",sub:""};return t&&(t=t.split(Nr),e.main=t[0]||"",e.sub=t[1]||""),e}function Br(t){(t.$constructor=t).extend=function(i){var o=this;function r(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(i.$constructor)i.$constructor.apply(this,arguments);else{if("function"==typeof(t=o)&&/^class\s/.test(Function.prototype.toString.call(t)))return Dt(r.prototype,new(o.bind.apply(o,function(t,e,n){if(n||2===arguments.length)for(var i,o=0,r=e.length;o<r;o++)!i&&o in e||((i=i||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(i||e)}([void 0],e))));o.apply(this,arguments)}}return r[Er]=!0,G(r.prototype,i),r.extend=this.extend,r.superCall=Hr,r.superApply=Wr,U(r,this),r.superClass=o,r}}function Gr(t,e){t.extend=e.extend}var Fr=Math.round(10*Math.random());function Hr(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function Wr(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Ur(t){var o={};t.registerClass=function(t){var e,n,i=t.type||t.prototype.type;return i&&(xt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=i),'componentType "'+n+'" illegal'),(e=Vr(t.prototype.type=i)).sub?e.sub!==zr&&(((i=o[(n=e).main])&&i[zr]||((i=o[n.main]={})[zr]=!0),i)[e.sub]=t):o[e.main]=t),t},t.getClass=function(t,e,n){var i=o[t];if(i&&i[zr]&&(i=e?i[e]:null),n&&!i)throw new Error(e?"Component "+t+"."+(e||"")+" is used but not imported.":t+".type should be specified.");return i},t.getClassesByMainType=function(t){var t=Vr(t),n=[],t=o[t.main];return t&&t[zr]?Z(t,function(t,e){e!==zr&&n.push(t)}):n.push(t),n},t.hasClass=function(t){t=Vr(t);return!!o[t.main]},t.getAllClassMainTypes=function(){var n=[];return Z(o,function(t,e){n.push(e)}),n},t.hasSubTypes=function(t){t=Vr(t),t=o[t.main];return t&&t[zr]}}function Xr(a,s){for(var t=0;t<a.length;t++)a[t][1]||(a[t][1]=a[t][0]);return s=s||!1,function(t,e,n){for(var i={},o=0;o<a.length;o++){var r=a[o][1];e&&0<=W(e,r)||n&&W(n,r)<0||null!=(r=t.getShallow(r,s))&&(i[a[o][0]]=r)}return i}}var Yr=Xr([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Zr=(qr.prototype.getAreaStyle=function(t,e){return Yr(this,t,e)},qr),jr=new ln(50);function qr(){}function Kr(t,e,n,i,o){if(t){if("string"!=typeof t)return t;if(e&&e.__zrImageSrc===t||!n)return e;var r=jr.get(t),o={hostEl:n,cb:i,cbPayload:o};return r?Jr(e=r.image)||r.pending.push(o):((e=new Image).onload=e.onerror=$r,jr.put(t,e.__cachedImgObj={image:e,pending:[o]}),e.src=e.__zrImageSrc=t),e}return e}function $r(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function Jr(t){return t&&t.width&&t.height}var Qr=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function ta(t,e,n,i,o){if(!e)return"";var r=(t+"").split("\n");o=ea(e,n,i,o);for(var a=0,s=r.length;a<s;a++)r[a]=na(r[a],o);return r.join("\n")}function ea(t,e,n,i){var o=G({},i=i||{});o.font=e,n=gt(n,"..."),o.maxIterations=gt(i.maxIterations,2);var r=o.minChar=gt(i.minChar,0);o.cnCharWidth=ao("国",e);var a=o.ascCharWidth=ao("a",e);o.placeholder=gt(i.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<r&&a<=s;l++)s-=a;e=ao(n,e);return s<e&&(n="",e=0),s=t-e,o.ellipsis=n,o.ellipsisWidth=e,o.contentWidth=s,o.containerWidth=t,o}function na(t,e){var n=e.containerWidth,i=e.font,o=e.contentWidth;if(!n)return"";if((s=ao(t,i))<=n)return t;for(var r=0;;r++){if(s<=o||r>=e.maxIterations){t+=e.ellipsis;break}var a=0===r?function(t,e,n,i){for(var o=0,r=0,a=t.length;r<a&&o<e;r++){var s=t.charCodeAt(r);o+=0<=s&&s<=127?n:i}return r}(t,o,e.ascCharWidth,e.cnCharWidth):0<s?Math.floor(t.length*o/s):0,s=ao(t=t.substr(0,a),i)}return t=""===t?e.placeholder:t}var ia=function(){},oa=function(t){this.tokens=[],t&&(this.tokens=t)},ra=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function aa(t,e){var n=new ra;if(null!=t&&(t+=""),!t)return n;for(var i,o=e.width,r=e.height,a=e.overflow,s="break"!==a&&"breakAll"!==a||null==o?null:{width:o,accumWidth:0,breakAll:"breakAll"===a},l=Qr.lastIndex=0;null!=(i=Qr.exec(t));){var u=i.index;l<u&&sa(n,t.substring(l,u),e,s),sa(n,i[2],e,s,i[1]),l=Qr.lastIndex}l<t.length&&sa(n,t.substring(l,t.length),e,s);var h=[],c=0,p=0,d=e.padding,f="truncate"===a,g="truncate"===e.lineOverflow;function y(t,e,n){t.width=e,t.lineHeight=n,c+=n,p=Math.max(p,e)}t:for(var m=0;m<n.lines.length;m++){for(var v=n.lines[m],x=0,_=0,b=0;b<v.tokens.length;b++){var w=v.tokens[b],S=w.styleName&&e.rich[w.styleName]||{},M=w.textPadding=S.padding,I=M?M[1]+M[3]:0,T=w.font=S.font||e.font;w.contentHeight=co(T);var C=gt(S.height,w.contentHeight);if(w.innerHeight=C,M&&(C+=M[0]+M[2]),w.height=C,w.lineHeight=yt(S.lineHeight,e.lineHeight,C),w.align=S&&S.align||e.align,w.verticalAlign=S&&S.verticalAlign||"middle",g&&null!=r&&c+w.lineHeight>r){0<b?(v.tokens=v.tokens.slice(0,b),y(v,_,x),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break t}var D,A=S.width,M=null==A||"auto"===A;"string"==typeof A&&"%"===A.charAt(A.length-1)?(w.percentWidth=A,h.push(w),w.contentWidth=ao(w.text,T)):(M&&(!(D=(A=S.backgroundColor)&&A.image)||Jr(D="string"!=typeof(A=D)?A:(A=jr.get(A))&&A.image)&&(w.width=Math.max(w.width,D.width*C/D.height))),null!=(D=f&&null!=o?o-_:null)&&D<w.width?!M||D<I?(w.text="",w.width=w.contentWidth=0):(w.text=ta(w.text,D-I,T,e.ellipsis,{minChar:e.truncateMinChar}),w.width=w.contentWidth=ao(w.text,T)):w.contentWidth=ao(w.text,T)),w.width+=I,_+=w.width,S&&(x=Math.max(x,w.lineHeight))}y(v,_,x)}for(n.outerWidth=n.width=gt(o,p),n.outerHeight=n.height=gt(r,c),n.contentHeight=c,n.contentWidth=p,d&&(n.outerWidth+=d[1]+d[3],n.outerHeight+=d[0]+d[2]),m=0;m<h.length;m++){var k=(w=h[m]).percentWidth;w.width=parseInt(k,10)/100*n.width}return n}function sa(t,e,n,i,o){var r,a,s,l=""===e,u=o&&n.rich[o]||{},h=t.lines,c=u.font||n.font,p=!1;i?(n=(n=u.padding)?n[1]+n[3]:0,null!=u.width&&"auto"!==u.width?(s=po(u.width,i.width)+n,0<h.length&&s+i.accumWidth>i.width&&(r=e.split("\n"),p=!0),i.accumWidth=s):(s=ua(e,c,i.width,i.breakAll,i.accumWidth),i.accumWidth=s.accumWidth+n,a=s.linesWidths,r=s.lines)):r=e.split("\n");for(var d=0;d<r.length;d++){var f,g,y=r[d],m=new ia;m.styleName=o,m.text=y,m.isLineHolder=!y&&!l,"number"==typeof u.width?m.width=u.width:m.width=a?a[d]:ao(y,c),d||p?h.push(new oa([m])):1===(g=(f=(h[h.length-1]||(h[0]=new oa)).tokens).length)&&f[0].isLineHolder?f[0]=m:!y&&g&&!l||f.push(m)}}var la=q(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function ua(t,e,n,i,o){for(var r,a=[],s=[],l="",u="",h=0,c=0,p=0;p<t.length;p++){var d,f,g=t.charAt(p);"\n"!==g?(d=ao(g,e),f=!(i||(r=void 0,!(33<=(r=(r=f=g).charCodeAt(0))&&r<=255)||la[f])),(a.length?n<c+d:n<o+c+d)?c?(l||u)&&(c=f?(l||(l=u,u="",c=h=0),a.push(l),s.push(c-h),u+=g,l="",h+=d):(u&&(l+=u,c+=h,u="",h=0),a.push(l),s.push(c),l=g,d)):f?(a.push(u),s.push(h),u=g,h=d):(a.push(g),s.push(d)):(c+=d,f?(u+=g,h+=d):(u&&(l+=u,u="",h=0),l+=g))):(u&&(l+=u,c+=h),a.push(l),s.push(c),u=l="",c=h=0)}return a.length||l||(l=t,u="",h=0),u&&(l+=u),l&&(a.push(l),s.push(c)),1===a.length&&(c+=o),{accumWidth:c,lines:a,linesWidths:s}}var ha="__zr_style_"+Math.round(10*Math.random()),ca={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},pa={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ca[ha]=!0;var da,fa=["z","z2","invisible"],ga=["invisible"],x=(Pt(va,da=To),va.prototype._init=function(t){for(var e=J(t),n=0;n<e.length;n++){var i=e[n];"style"===i?this.useStyle(t[i]):da.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},va.prototype.beforeBrush=function(){},va.prototype.afterBrush=function(){},va.prototype.innerBeforeBrush=function(){},va.prototype.innerAfterBrush=function(){},va.prototype.shouldBePainted=function(t,e,n,i){var o,r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(o=this,t=t,e=e,ya.copy(o.getBoundingRect()),o.transform&&ya.applyTransform(o.transform),ma.width=t,ma.height=e,!ya.intersect(ma))||r&&!r[0]&&!r[3])return!1;if(n&&this.__clipPaths)for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1;if(i&&this.parent)for(var s=this.parent;s;){if(s.ignore)return!1;s=s.parent}return!0},va.prototype.contain=function(t,e){return this.rectContain(t,e)},va.prototype.traverse=function(t,e){t.call(e,this)},va.prototype.rectContain=function(t,e){e=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(e[0],e[1])},va.prototype.getPaintRect=function(){var t,e,n,i,o,r=this._paintRect;return this._paintRect&&!this.__dirty||(t=this.transform,e=this.getBoundingRect(),o=(i=this.style).shadowBlur||0,n=i.shadowOffsetX||0,i=i.shadowOffsetY||0,r=this._paintRect||(this._paintRect=new Qi(0,0,0,0)),t?Qi.applyTransform(r,e,t):r.copy(e),(o||n||i)&&(r.width+=2*o+Math.abs(n),r.height+=2*o+Math.abs(i),r.x=Math.min(r.x,r.x+n-o),r.y=Math.min(r.y,r.y+i-o)),o=this.dirtyRectTolerance,r.isZero()||(r.x=Math.floor(r.x-o),r.y=Math.floor(r.y-o),r.width=Math.ceil(r.width+1+2*o),r.height=Math.ceil(r.height+1+2*o))),r},va.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new Qi(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},va.prototype.getPrevPaintRect=function(){return this._prevPaintRect},va.prototype.animateStyle=function(t){return this.animate("style",t)},va.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},va.prototype.attrKV=function(t,e){"style"!==t?da.prototype.attrKV.call(this,t,e):this.style?this.setStyle(e):this.useStyle(e)},va.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:G(this.style,t),this.dirtyStyle(),this},va.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},va.prototype.dirty=function(){this.dirtyStyle()},va.prototype.styleChanged=function(){return!!(2&this.__dirty)},va.prototype.styleUpdated=function(){this.__dirty&=-3},va.prototype.createStyle=function(t){return Dt(ca,t)},va.prototype.useStyle=function(t){t[ha]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},va.prototype.isStyleObject=function(t){return t[ha]},va.prototype._innerSaveToNormal=function(t){da.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.style&&!e.style&&(e.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,e,fa)},va.prototype._applyStateObj=function(t,e,n,i,o,r){da.prototype._applyStateObj.call(this,t,e,n,i,o,r);var a,s=!(e&&i);if(e&&e.style?o?i?a=e.style:(a=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(a,e.style)):(a=this._mergeStyle(this.createStyle(),(i?this:n).style),this._mergeStyle(a,e.style)):s&&(a=n.style),a)if(o){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var u=J(l),h=0;h<u.length;h++){var c=u[h];c in a&&(a[c]=a[c],this.style[c]=l[c])}for(var p=J(a),h=0;h<p.length;h++)c=p[h],this.style[c]=this.style[c];this._transitionState(t,{style:a},r,this.getAnimationStyleProps())}else this.useStyle(a);var d=this.__inHover?ga:fa;for(h=0;h<d.length;h++)c=d[h],e&&null!=e[c]?this[c]=e[c]:s&&null!=n[c]&&(this[c]=n[c])},va.prototype._mergeStates=function(t){for(var e,n=da.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.style&&this._mergeStyle(e=e||{},o.style)}return e&&(n.style=e),n},va.prototype._mergeStyle=function(t,e){return G(t,e),t},va.prototype.getAnimationStyleProps=function(){return pa},va.initDefaultProps=((qu=va.prototype).type="displayable",qu.invisible=!1,qu.z=0,qu.z2=0,qu.zlevel=0,qu.culling=!1,qu.cursor="pointer",qu.rectHover=!1,qu.incremental=!1,qu._rect=null,qu.dirtyRectTolerance=0,void(qu.__dirty=2|qe)),va),ya=new Qi(0,0,0,0),ma=new Qi(0,0,0,0);function va(t){return da.call(this,t)||this}var xa=x,_a=Math.pow,ba=Math.sqrt,wa=1e-8,Sa=1e-4,Ma=ba(3),Ia=Ot(),Ta=Ot(),Ca=Ot();function Da(t){return-wa<t&&t<wa}function Aa(t){return wa<t||t<-wa}function ka(t,e,n,i,o){var r=1-o;return r*r*(r*t+3*o*e)+o*o*(o*i+3*r*n)}function La(t,e,n,i,o){var r=1-o;return 3*(((e-t)*r+2*(n-e)*o)*r+(i-n)*o*o)}function Pa(t,e,n,i,o,r){var a,s,l,u=i+3*(e-n)-t,h=3*(n-2*e+t),i=3*(e-t),n=t-o,e=h*h-3*u*i,t=h*i-9*u*n,o=i*i-3*h*n,n=0;return Da(e)&&Da(t)?Da(h)?r[0]=0:0<=(s=-i/h)&&s<=1&&(r[n++]=s):Da(i=t*t-4*e*o)?(a=-(o=t/e)/2,0<=(s=-h/u+o)&&s<=1&&(r[n++]=s),0<=a&&a<=1&&(r[n++]=a)):0<i?(l=e*h+1.5*u*(-t-(i=ba(i))),0<=(s=(-h-((i=(i=e*h+1.5*u*(-t+i))<0?-_a(-i,1/3):_a(i,1/3))+(l=l<0?-_a(-l,1/3):_a(l,1/3))))/(3*u))&&s<=1&&(r[n++]=s)):(l=(2*e*h-3*u*t)/(2*ba(e*e*e)),t=Math.acos(l)/3,s=(-h-2*(l=ba(e))*(e=Math.cos(t)))/(3*u),a=(-h+l*(e+Ma*Math.sin(t)))/(3*u),u=(-h+l*(e-Ma*Math.sin(t)))/(3*u),0<=s&&s<=1&&(r[n++]=s),0<=a&&a<=1&&(r[n++]=a),0<=u&&u<=1&&(r[n++]=u)),n}function Oa(t,e,n,i,o){var r,a=6*n-12*e+6*t,i=9*e+3*i-3*t-9*n,n=3*e-3*t,e=0;return Da(i)?!Aa(a)||0<=(r=-n/a)&&r<=1&&(o[e++]=r):Da(t=a*a-4*i*n)?o[0]=-a/(2*i):0<t&&(t=(-a-(n=ba(t)))/(2*i),0<=(r=(-a+n)/(2*i))&&r<=1&&(o[e++]=r),0<=t&&t<=1&&(o[e++]=t)),e}function Ra(t,e,n,i,o,r){var a=(e-t)*o+t,s=(n-e)*o+e,e=(i-n)*o+n,n=(s-a)*o+a,s=(e-s)*o+s,o=(s-n)*o+n;r[0]=t,r[1]=a,r[2]=n,r[3]=o,r[4]=o,r[5]=s,r[6]=e,r[7]=i}function Na(t,e,n,i,o,r,a,s,l,u,h){var c,p,d,f,g=.005,y=1/0;Ia[0]=l,Ia[1]=u;for(var m=0;m<1;m+=.05)Ta[0]=ka(t,n,o,a,m),Ta[1]=ka(e,i,r,s,m),(d=Jt(Ia,Ta))<y&&(c=m,y=d);for(var y=1/0,v=0;v<32&&!(g<Sa);v++)p=c+g,Ta[0]=ka(t,n,o,a,f=c-g),Ta[1]=ka(e,i,r,s,f),d=Jt(Ta,Ia),0<=f&&d<y?(c=f,y=d):(Ca[0]=ka(t,n,o,a,p),Ca[1]=ka(e,i,r,s,p),f=Jt(Ca,Ia),p<=1&&f<y?(c=p,y=f):g*=.5);return h&&(h[0]=ka(t,n,o,a,c),h[1]=ka(e,i,r,s,c)),ba(y)}function za(t,e,n,i){var o=1-i;return o*(o*t+2*i*e)+i*i*n}function Ea(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function Va(t,e,n){n=t+n-2*e;return 0==n?.5:(t-e)/n}function Ba(t,e,n,i,o){var r=(e-t)*i+t,e=(n-e)*i+e,i=(e-r)*i+r;o[0]=t,o[1]=r,o[2]=i,o[3]=i,o[4]=e,o[5]=n}function Ga(t,e,n,i,o,r,a,s,l){var u,h=.005,c=1/0;Ia[0]=a,Ia[1]=s;for(var p=0;p<1;p+=.05){Ta[0]=za(t,n,o,p),Ta[1]=za(e,i,r,p);var d=Jt(Ia,Ta);d<c&&(u=p,c=d)}for(var c=1/0,f=0;f<32&&!(h<Sa);f++){var g=u-h,y=u+h;Ta[0]=za(t,n,o,g),Ta[1]=za(e,i,r,g),d=Jt(Ta,Ia),0<=g&&d<c?(u=g,c=d):(Ca[0]=za(t,n,o,y),Ca[1]=za(e,i,r,y),g=Jt(Ca,Ia),y<=1&&g<c?(u=y,c=g):h*=.5)}return l&&(l[0]=za(t,n,o,u),l[1]=za(e,i,r,u)),ba(c)}var Fa=Math.min,Ha=Math.max,Wa=Math.sin,Ua=Math.cos,Xa=2*Math.PI,Ya=Ot(),Za=Ot(),ja=Ot();function qa(t,e,n){if(0!==t.length){for(var i=t[0],o=i[0],r=i[0],a=i[1],s=i[1],l=1;l<t.length;l++)i=t[l],o=Fa(o,i[0]),r=Ha(r,i[0]),a=Fa(a,i[1]),s=Ha(s,i[1]);e[0]=o,e[1]=a,n[0]=r,n[1]=s}}function Ka(t,e,n,i,o,r){o[0]=Fa(t,n),o[1]=Fa(e,i),r[0]=Ha(t,n),r[1]=Ha(e,i)}var $a=[],Ja=[];var Qa={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ts=[],es=[],ns=[],is=[],os=[],rs=[],as=Math.min,ss=Math.max,ls=Math.cos,us=Math.sin,hs=Math.sqrt,cs=Math.abs,ps=Math.PI,ds=2*ps,fs="undefined"!=typeof Float32Array,gs=[];function ys(t){return Math.round(t/ps*1e8)/1e8%2*ps}function ms(t,e){var n=ys(t[0]);n<0&&(n+=ds);var i=n-t[0],o=t[1];o+=i,!e&&ds<=o-n?o=n+ds:e&&ds<=n-o?o=n-ds:!e&&o<n?o=n+(ds-ys(n-o)):e&&n<o&&(o=n-(ds-ys(o-n))),t[0]=n,t[1]=o}var vs=(xs.prototype.increaseVersion=function(){this._version++},xs.prototype.getVersion=function(){return this._version},xs.prototype.setScale=function(t,e,n){0<(n=n||0)&&(this._ux=cs(n/wi/t)||0,this._uy=cs(n/wi/e)||0)},xs.prototype.setDPR=function(t){this.dpr=t},xs.prototype.setContext=function(t){this._ctx=t},xs.prototype.getContext=function(){return this._ctx},xs.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},xs.prototype.reset=function(){this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},xs.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Qa.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},xs.prototype.lineTo=function(t,e){var n=cs(t-this._xi),i=cs(e-this._yi),o=n>this._ux||i>this._uy;return this.addData(Qa.L,t,e),this._ctx&&o&&(this._needsDash?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),o?(this._xi=t,this._yi=e,this._pendingPtDist=0):(i=n*n+i*i)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=i),this},xs.prototype.bezierCurveTo=function(t,e,n,i,o,r){return this._drawPendingPt(),this.addData(Qa.C,t,e,n,i,o,r),this._ctx&&(this._needsDash?this._dashedBezierTo(t,e,n,i,o,r):this._ctx.bezierCurveTo(t,e,n,i,o,r)),this._xi=o,this._yi=r,this},xs.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Qa.Q,t,e,n,i),this._ctx&&(this._needsDash?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},xs.prototype.arc=function(t,e,n,i,o,r){return this._drawPendingPt(),gs[0]=i,gs[1]=o,ms(gs,r),i=gs[0],o=gs[1],this.addData(Qa.A,t,e,n,n,i,o-i,0,r?0:1),this._ctx&&this._ctx.arc(t,e,n,i,o,r),this._xi=ls(o)*n+t,this._yi=us(o)*n+e,this},xs.prototype.arcTo=function(t,e,n,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,o),this},xs.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Qa.R,t,e,n,i),this},xs.prototype.closePath=function(){this._drawPendingPt(),this.addData(Qa.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},xs.prototype.fill=function(t){t&&t.fill(),this.toStatic()},xs.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},xs.prototype.setLineDash=function(t){if(t instanceof Array){this._lineDash=t;for(var e=this._dashIdx=0,n=0;n<t.length;n++)e+=t[n];this._dashSum=e,this._needsDash=!0}else this._lineDash=null,this._needsDash=!1;return this},xs.prototype.setLineDashOffset=function(t){return this._dashOffset=t,this},xs.prototype.len=function(){return this._len},xs.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!fs||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},xs.prototype.appendPath=function(t){for(var e=(t=!(t instanceof Array)?[t]:t).length,n=0,i=this._len,o=0;o<e;o++)n+=t[o].len();for(fs&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n)),o=0;o<e;o++)for(var r=t[o].data,a=0;a<r.length;a++)this.data[i++]=r[a];this._len=i},xs.prototype.addData=function(t,e,n,i,o,r,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var h=0;h<arguments.length;h++)u[this._len++]=arguments[h]}},xs.prototype._drawPendingPt=function(){0<this._pendingPtDist&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},xs.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},xs.prototype._dashedLineTo=function(t,e){var n,i,o=this._dashSum,r=this._lineDash,a=this._ctx,s=this._dashOffset,l=this._xi,u=this._yi,h=t-l,c=e-u,p=hs(h*h+c*c),d=l,f=u,g=r.length;for(s<0&&(s=o+s),d-=(s%=o)*(h/=p),f-=s*(c/=p);0<h&&d<=t||h<0&&t<=d||0===h&&(0<c&&f<=e||c<0&&e<=f);)d+=h*(n=r[i=this._dashIdx]),f+=c*n,this._dashIdx=(i+1)%g,0<h&&d<l||h<0&&l<d||0<c&&f<u||c<0&&u<f||a[i%2?"moveTo":"lineTo"]((0<=h?as:ss)(d,t),(0<=c?as:ss)(f,e));this._dashOffset=-hs((h=d-t)*h+(c=f-e)*c)},xs.prototype._dashedBezierTo=function(t,e,n,i,o,r){var a,s,l,u,h,c=this._ctx,p=this._dashSum,d=this._dashOffset,f=this._lineDash,g=this._xi,y=this._yi,m=0,v=this._dashIdx,x=f.length,_=0;for(d<0&&(d=p+d),d%=p,a=0;a<1;a+=.1)s=ka(g,t,n,o,a+.1)-ka(g,t,n,o,a),l=ka(y,e,i,r,a+.1)-ka(y,e,i,r,a),m+=hs(s*s+l*l);for(;v<x&&!(d<(_+=f[v]));v++);for(a=(_-d)/m;a<=1;)u=ka(g,t,n,o,a),h=ka(y,e,i,r,a),v%2?c.moveTo(u,h):c.lineTo(u,h),a+=f[v]/m,v=(v+1)%x;v%2!=0&&c.lineTo(o,r),this._dashOffset=-hs((s=o-u)*s+(l=r-h)*l)},xs.prototype._dashedQuadraticTo=function(t,e,n,i){var o=n,r=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,o,r)},xs.prototype.toStatic=function(){var t;this._saveData&&(this._drawPendingPt(),(t=this.data)instanceof Array&&(t.length=this._len,fs&&11<this._len&&(this.data=new Float32Array(t))))},xs.prototype.getBoundingRect=function(){ns[0]=ns[1]=os[0]=os[1]=Number.MAX_VALUE,is[0]=is[1]=rs[0]=rs[1]=-Number.MAX_VALUE;for(var t,e,n,i,o=this.data,r=0,a=0,s=0,l=0,u=0;u<this._len;){var h=o[u++],c=1===u;switch(c&&(s=r=o[u],l=a=o[u+1]),h){case Qa.M:r=s=o[u++],a=l=o[u++],os[0]=s,os[1]=l,rs[0]=s,rs[1]=l;break;case Qa.L:Ka(r,a,o[u],o[u+1],os,rs),r=o[u++],a=o[u++];break;case Qa.C:(function(t,e,n,i,o,r,a,s,l,u){var h=Oa,c=ka,p=h(t,n,o,a,$a);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<p;d++){var f=c(t,n,o,a,$a[d]);l[0]=Fa(f,l[0]),u[0]=Ha(f,u[0])}for(p=h(e,i,r,s,Ja),d=0;d<p;d++){var g=c(e,i,r,s,Ja[d]);l[1]=Fa(g,l[1]),u[1]=Ha(g,u[1])}l[0]=Fa(t,l[0]),u[0]=Ha(t,u[0]),l[0]=Fa(a,l[0]),u[0]=Ha(a,u[0]),l[1]=Fa(e,l[1]),u[1]=Ha(e,u[1]),l[1]=Fa(s,l[1]),u[1]=Ha(s,u[1])})(r,a,o[u++],o[u++],o[u++],o[u++],o[u],o[u+1],os,rs),r=o[u++],a=o[u++];break;case Qa.Q:p=r,y=a,t=o[u++],e=o[u++],d=o[u],m=o[u+1],n=os,g=rs,v=f=v=f=i=void 0,i=za,f=Ha(Fa((v=Va)(p,t,d),1),0),v=Ha(Fa(v(y,e,m),1),0),f=i(p,t,d,f),v=i(y,e,m,v),n[0]=Fa(p,d,f),n[1]=Fa(y,m,v),g[0]=Ha(p,d,f),g[1]=Ha(y,m,v),r=o[u++],a=o[u++];break;case Qa.A:var p=o[u++],d=o[u++],f=o[u++],g=o[u++],y=o[u++],m=o[u++]+y;u+=1;var v=!o[u++];c&&(s=ls(y)*f+p,l=us(y)*g+d),function(t,e,n,i,o,r,a,s,l){var u=ne,h=ie,c=Math.abs(o-r);if(c%Xa<1e-4&&1e-4<c)return s[0]=t-n,s[1]=e-i,l[0]=t+n,l[1]=e+i;Ya[0]=Ua(o)*n+t,Ya[1]=Wa(o)*i+e,Za[0]=Ua(r)*n+t,Za[1]=Wa(r)*i+e,u(s,Ya,Za),h(l,Ya,Za),(o%=Xa)<0&&(o+=Xa),(r%=Xa)<0&&(r+=Xa),r<o&&!a?r+=Xa:o<r&&a&&(o+=Xa),a&&(a=r,r=o,o=a);for(var p=0;p<r;p+=Math.PI/2)o<p&&(ja[0]=Ua(p)*n+t,ja[1]=Wa(p)*i+e,u(s,ja,s),h(l,ja,l))}(p,d,f,g,y,m,v,os,rs),r=ls(m)*f+p,a=us(m)*g+d;break;case Qa.R:Ka(s=r=o[u++],l=a=o[u++],s+o[u++],l+o[u++],os,rs);break;case Qa.Z:r=s,a=l}ne(ns,ns,os),ie(is,is,rs)}return 0===u&&(ns[0]=ns[1]=is[0]=is[1]=0),new Qi(ns[0],ns[1],is[0]-ns[0],is[1]-ns[1])},xs.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,o=0,r=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,h=0,c=0;c<e;){var p=t[c++],d=1===c;d&&(a=o=t[c],s=r=t[c+1]);var f=-1;switch(p){case Qa.M:o=a=t[c++],r=s=t[c++];break;case Qa.L:var g=t[c++],y=t[c++],m=g-o,v=y-r;(cs(m)>n||cs(v)>i||c===e-1)&&(f=Math.sqrt(m*m+v*v),o=g,r=y);break;case Qa.C:var x=t[c++],_=t[c++],b=(g=t[c++],y=t[c++],t[c++]),w=t[c++],f=function(t,e,n,i,o,r,a,s,l){for(var u=t,h=e,c=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=ka(t,n,o,a,f),y=ka(e,i,r,s,f),m=g-u,f=y-h;c+=Math.sqrt(m*m+f*f),u=g,h=y}return c}(o,r,x,_,g,y,b,w,10),o=b,r=w;break;case Qa.Q:f=function(t,e,n,i,o,r,a){for(var s=t,l=e,u=0,h=1/a,c=1;c<=a;c++){var p=c*h,d=za(t,n,o,p),f=za(e,i,r,p),g=d-s,p=f-l;u+=Math.sqrt(g*g+p*p),s=d,l=f}return u}(o,r,x=t[c++],_=t[c++],g=t[c++],y=t[c++],10),o=g,r=y;break;case Qa.A:var S=t[c++],M=t[c++],I=t[c++],T=t[c++],C=t[c++],b=t[c++],w=b+C;c+=1,t[c++],d&&(a=ls(C)*I+S,s=us(C)*T+M),f=ss(I,T)*as(ds,Math.abs(b)),o=ls(w)*I+S,r=us(w)*T+M;break;case Qa.R:a=o=t[c++],s=r=t[c++];f=2*t[c++]+2*t[c++];break;case Qa.Z:m=a-o,v=s-r,f=Math.sqrt(m*m+v*v),o=a,r=s}0<=f&&(u+=l[h++]=f)}return this._pathLen=u},xs.prototype.rebuildPath=function(t,e){var n,i,o,r,a,s,l,u,h=this.data,c=this._ux,p=this._uy,d=this._len,f=e<1,g=0,y=0,m=0;if(!f||(this._pathSegLen||this._calculateLength(),a=this._pathSegLen,s=e*this._pathLen))t:for(var v=0;v<d;){var x=h[v++],_=1===v;switch(_&&(n=o=h[v],i=r=h[v+1]),x!==Qa.L&&0<m&&(t.lineTo(l,u),m=0),x){case Qa.M:n=o=h[v++],i=r=h[v++],t.moveTo(o,r);break;case Qa.L:var b=h[v++],w=h[v++],S=cs(b-o),M=cs(w-r);if(c<S||p<M){if(f){var I=a[y++];if(s<g+I){var T=(s-g)/I;t.lineTo(o*(1-T)+b*T,r*(1-T)+w*T);break t}g+=I}t.lineTo(b,w),o=b,r=w,m=0}else{var C=S*S+M*M;m<C&&(l=b,u=w,m=C)}break;case Qa.C:var D=h[v++],A=h[v++],k=h[v++],L=h[v++],P=h[v++],O=h[v++];if(f){if(s<g+(I=a[y++])){Ra(o,D,k,P,T=(s-g)/I,ts),Ra(r,A,L,O,T,es),t.bezierCurveTo(ts[1],es[1],ts[2],es[2],ts[3],es[3]);break t}g+=I}t.bezierCurveTo(D,A,k,L,P,O),o=P,r=O;break;case Qa.Q:if(D=h[v++],A=h[v++],k=h[v++],L=h[v++],f){if(s<g+(I=a[y++])){Ba(o,D,k,T=(s-g)/I,ts),Ba(r,A,L,T,es),t.quadraticCurveTo(ts[1],es[1],ts[2],es[2]);break t}g+=I}t.quadraticCurveTo(D,A,k,L),o=k,r=L;break;case Qa.A:var R=h[v++],N=h[v++],z=h[v++],E=h[v++],V=h[v++],B=h[v++],S=h[v++],M=!h[v++],C=E<z?z:E,P=.001<cs(z-E),G=V+B,O=!1;if(f&&(s<g+(I=a[y++])&&(G=V+B*(s-g)/I,O=!0),g+=I),P&&t.ellipse?t.ellipse(R,N,z,E,S,V,G,M):t.arc(R,N,C,V,G,M),O)break t;_&&(n=ls(V)*z+R,i=us(V)*E+N),o=ls(G)*z+R,r=us(G)*E+N;break;case Qa.R:n=o=h[v],i=r=h[v+1],b=h[v++],w=h[v++];G=h[v++],E=h[v++];if(f){if(s<g+(I=a[y++])){N=s-g;t.moveTo(b,w),t.lineTo(b+as(N,G),w),0<(N-=G)&&t.lineTo(b+G,w+as(N,E)),0<(N-=E)&&t.lineTo(b+ss(G-N,0),w+E),0<(N-=G)&&t.lineTo(b,w+ss(E-N,0));break t}g+=I}t.rect(b,w,G,E);break;case Qa.Z:if(f){if(s<g+(I=a[y++])){t.lineTo(o*(1-(T=(s-g)/I))+n*T,r*(1-T)+i*T);break t}g+=I}t.closePath(),o=n,r=i}}},xs.prototype.clone=function(){var t=new xs,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},xs.CMD=Qa,xs.initDefaultProps=((M=xs.prototype)._saveData=!0,M._needsDash=!1,M._dashOffset=0,M._dashIdx=0,M._dashSum=0,M._ux=0,M._uy=0,M._pendingPtDist=0,void(M._version=0)),xs);function xs(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}function _s(t,e,n,i,o,r,a){if(0!==o){var s=o,o=0;if(!(e+s<a&&i+s<a||a<e-s&&a<i-s||t+s<r&&n+s<r||r<t-s&&r<n-s)){if(t===n)return Math.abs(r-t)<=s/2;n=(o=(e-i)/(t-n))*r-a+(t*i-n*e)/(t-n);return n*n/(o*o+1)<=s/2*s/2}}}function bs(t,e,n,i,o,r,a,s,l){if(0!==a){a=a;return e+a<l&&i+a<l&&r+a<l||l<e-a&&l<i-a&&l<r-a||t+a<s&&n+a<s&&o+a<s||s<t-a&&s<n-a&&s<o-a?void 0:Ga(t,e,n,i,o,r,s,l,null)<=a/2}}var ws=2*Math.PI;function Ss(t){return(t%=ws)<0&&(t+=ws),t}var Ms=2*Math.PI;function Is(t,e,n,i,o,r){if(e<r&&i<r||r<e&&r<i)return 0;if(i===e)return 0;var a=(r-e)/(i-e),r=i<e?1:-1;1!=a&&0!=a||(r=i<e?.5:-.5);t=a*(n-t)+t;return t===o?1/0:o<t?r:0}var Ts=vs.CMD,Cs=2*Math.PI,Ds=1e-4;var As=[-1,-1,-1],ks=[-1,-1];function Ls(t,e,n,i,o,r,a,s,l,u){if(e<u&&i<u&&r<u&&s<u||u<e&&u<i&&u<r&&u<s)return 0;var h=Pa(e,i,r,s,u,As);if(0===h)return 0;for(var c,p=0,d=-1,f=void 0,g=void 0,y=0;y<h;y++){var m=As[y],v=0===m||1===m?.5:1;ka(t,n,o,a,m)<l||(d<0&&(d=Oa(e,i,r,s,ks),ks[1]<ks[0]&&1<d&&(c=void 0,c=ks[0],ks[0]=ks[1],ks[1]=c),f=ka(e,i,r,s,ks[0]),1<d&&(g=ka(e,i,r,s,ks[1]))),2===d?m<ks[0]?p+=f<e?v:-v:m<ks[1]?p+=g<f?v:-v:p+=s<g?v:-v:m<ks[0]?p+=f<e?v:-v:p+=s<f?v:-v)}return p}function Ps(t,e,n,i,o,r,a,s){if(e<s&&i<s&&r<s||s<e&&s<i&&s<r)return 0;var l,u,h,c,p,d,f=(c=As,d=(l=e)-2*(u=i)+(h=r),h=2*(u-l),u=l-(s=s),l=0,Da(d)?!Aa(h)||0<=(p=-u/h)&&p<=1&&(c[l++]=p):Da(s=h*h-4*d*u)?0<=(p=-h/(2*d))&&p<=1&&(c[l++]=p):0<s&&(s=(-h-(u=ba(s)))/(2*d),0<=(p=(-h+u)/(2*d))&&p<=1&&(c[l++]=p),0<=s&&s<=1&&(c[l++]=s)),l);if(0===f)return 0;var g=Va(e,i,r);if(0<=g&&g<=1){for(var y=0,m=za(e,i,r,g),v=0;v<f;v++){var x=0===As[v]||1===As[v]?.5:1,_=za(t,n,o,As[v]);_<a||(As[v]<g?y+=m<e?x:-x:y+=r<m?x:-x)}return y}return x=0===As[0]||1===As[0]?.5:1,(_=za(t,n,o,As[0]))<a?0:r<e?x:-x}function Os(t,e,n,i,o){for(var r,a=t.data,s=t.len(),l=0,u=0,h=0,c=0,p=0,d=0;d<s;){var f=a[d++],g=1===d;switch(f===Ts.M&&1<d&&(n||(l+=Is(u,h,c,p,i,o))),g&&(c=u=a[d],p=h=a[d+1]),f){case Ts.M:u=c=a[d++],h=p=a[d++];break;case Ts.L:if(n){if(_s(u,h,a[d],a[d+1],e,i,o))return!0}else l+=Is(u,h,a[d],a[d+1],i,o)||0;u=a[d++],h=a[d++];break;case Ts.C:if(n){if(function(t,e,n,i,o,r,a,s,l,u,h){if(0!==l){l=l;return e+l<h&&i+l<h&&r+l<h&&s+l<h||h<e-l&&h<i-l&&h<r-l&&h<s-l||t+l<u&&n+l<u&&o+l<u&&a+l<u||u<t-l&&u<n-l&&u<o-l&&u<a-l?void 0:Na(t,e,n,i,o,r,a,s,u,h,null)<=l/2}}(u,h,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,i,o))return!0}else l+=Ls(u,h,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,o)||0;u=a[d++],h=a[d++];break;case Ts.Q:if(n){if(bs(u,h,a[d++],a[d++],a[d],a[d+1],e,i,o))return!0}else l+=Ps(u,h,a[d++],a[d++],a[d],a[d+1],i,o)||0;u=a[d++],h=a[d++];break;case Ts.A:var y=a[d++],m=a[d++],v=a[d++],x=a[d++],_=a[d++],b=a[d++];d+=1;var w=!!(1-a[d++]),S=Math.cos(_)*v+y,M=Math.sin(_)*x+m;g?(c=S,p=M):l+=Is(u,h,S,M,i,o);var I=(i-y)*x/v+y;if(n){if(function(t,e,n,i,o,r,a,s,l){if(0!==a){a=a;s-=t,l-=e;e=Math.sqrt(s*s+l*l);if(!(n<e-a||e+a<n)){if(Math.abs(i-o)%Ms<1e-4)return 1;(o=r?(r=i,i=Ss(o),Ss(r)):(i=Ss(i),Ss(o)))<i&&(o+=Ms);s=Math.atan2(l,s);return s<0&&(s+=Ms),i<=s&&s<=o||i<=s+Ms&&s+Ms<=o}}}(y,m,x,_,_+b,w,e,I,o))return!0}else l+=function(t,e,n,i,o,r,a,s){if(n<(s-=e)||s<-n)return 0;if(n=Math.sqrt(n*n-s*s),As[0]=-n,As[1]=n,(n=Math.abs(i-o))<1e-4)return 0;if(Cs-1e-4<=n){o=Cs;var l=r?1:-1;return a>=As[i=0]+t&&a<=As[1]+t?l:0}o<i&&(n=i,i=o,o=n),i<0&&(i+=Cs,o+=Cs);for(var u=0,h=0;h<2;h++){var c=As[h];a<c+t&&(l=r?1:-1,(i<=(c=(c=Math.atan2(s,c))<0?Cs+c:c)&&c<=o||i<=c+Cs&&c+Cs<=o)&&(u+=l=c>Math.PI/2&&c<1.5*Math.PI?-l:l))}return u}(y,m,x,_,_+b,w,I,o);u=Math.cos(_+b)*v+y,h=Math.sin(_+b)*x+m;break;case Ts.R:c=u=a[d++],p=h=a[d++];if(S=c+a[d++],M=p+a[d++],n){if(_s(c,p,S,p,e,i,o)||_s(S,p,S,M,e,i,o)||_s(S,M,c,M,e,i,o)||_s(c,M,c,p,e,i,o))return!0}else l+=Is(S,p,S,M,i,o),l+=Is(c,M,c,p,i,o);break;case Ts.Z:if(n){if(_s(u,h,c,p,e,i,o))return!0}else l+=Is(u,h,c,p,i,o);u=c,h=p}}return n||(r=h,t=p,Math.abs(r-t)<Ds)||(l+=Is(u,h,c,p,i,o)||0),0!==l}var Rs,Ns,zs=F({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ca),Es={style:F({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},pa.style)},Vs=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],Bs=(Pt(Hs,Ns=xa),Hs.prototype.update=function(){var e=this;Ns.prototype.update.call(this);var t=this.style;if(t.decal){var n=this._decalEl=this._decalEl||new Hs;n.buildPath===Hs.prototype.buildPath&&(n.buildPath=function(t){e.buildPath(t,e.shape)}),n.silent=!0;var i,o=n.style;for(i in t)o[i]!==t[i]&&(o[i]=t[i]);o.fill=t.fill?t.decal:null,o.decal=null,o.shadowColor=null,t.strokeFirst&&(o.stroke=null);for(var r=0;r<Vs.length;++r)n[Vs[r]]=this[Vs[r]];n.__dirty|=qe}else this._decalEl&&(this._decalEl=null)},Hs.prototype.getDecalElement=function(){return this._decalEl},Hs.prototype._init=function(t){var e=J(t);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var i=0;i<e.length;i++){var o=e[i],r=t[o];"style"===o?this.style?G(this.style,r):this.useStyle(r):"shape"===o?G(this.shape,r):Ns.prototype.attrKV.call(this,o,r)}this.style||this.useStyle({})},Hs.prototype.getDefaultStyle=function(){return null},Hs.prototype.getDefaultShape=function(){return{}},Hs.prototype.canBeInsideText=function(){return this.hasFill()},Hs.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(it(t)){var e=Nn(t,0);return.5<e?Si:.2<e?"#eee":Mi}if(t)return Mi}return Si},Hs.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(it(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==Nn(t,0)<.4)return e}},Hs.prototype.buildPath=function(t,e,n){},Hs.prototype.pathUpdated=function(){this.__dirty&=~Ke},Hs.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},Hs.prototype.createPathProxy=function(){this.path=new vs(!1)},Hs.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))},Hs.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},Hs.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n&&(o=!1,this.path||(o=!0,this.createPathProxy()),i=this.path,(o||this.__dirty&Ke)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()),this._rect=t,this.hasStroke()&&this.path&&0<this.path.len()){var i,o=this._rectWithStroke||(this._rectWithStroke=t.clone());return(this.__dirty||n)&&(o.copy(t),i=e.strokeNoScale?this.getLineScale():1,n=e.lineWidth,this.hasFill()||(e=this.strokeContainThreshold,n=Math.max(n,null==e?4:e)),1e-10<i&&(o.width+=n/i,o.height+=n/i,o.x-=n/i/2,o.y-=n/i/2)),o}return t},Hs.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),o=this.style;if(t=n[0],e=n[1],i.contain(t,e)){n=this.path;if(this.hasStroke()){i=o.lineWidth,o=o.strokeNoScale?this.getLineScale():1;if(1e-10<o&&(this.hasFill()||(i=Math.max(i,this.strokeContainThreshold)),Os(n,i/o,!0,t,e)))return!0}if(this.hasFill())return Os(n,0,!1,t,e)}return!1},Hs.prototype.dirtyShape=function(){this.__dirty|=Ke,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},Hs.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},Hs.prototype.animateShape=function(t){return this.animate("shape",t)},Hs.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},Hs.prototype.attrKV=function(t,e){"shape"===t?this.setShape(e):Ns.prototype.attrKV.call(this,t,e)},Hs.prototype.setShape=function(t,e){var n=(n=this.shape)||(this.shape={});return"string"==typeof t?n[t]=e:G(n,t),this.dirtyShape(),this},Hs.prototype.shapeChanged=function(){return!!(this.__dirty&Ke)},Hs.prototype.createStyle=function(t){return Dt(zs,t)},Hs.prototype._innerSaveToNormal=function(t){Ns.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.shape&&!e.shape&&(e.shape=G({},this.shape))},Hs.prototype._applyStateObj=function(t,e,n,i,o,r){Ns.prototype._applyStateObj.call(this,t,e,n,i,o,r);var a,s=!(e&&i);if(e&&e.shape?o?i?a=e.shape:(a=G({},n.shape),G(a,e.shape)):(a=G({},(i?this:n).shape),G(a,e.shape)):s&&(a=n.shape),a)if(o){this.shape=G({},this.shape);for(var l={},u=J(a),h=0;h<u.length;h++){var c=u[h];"object"==typeof a[c]?this.shape[c]=a[c]:l[c]=a[c]}this._transitionState(t,{shape:l},r)}else this.shape=a,this.dirtyShape()},Hs.prototype._mergeStates=function(t){for(var e,n=Ns.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.shape&&this._mergeStyle(e=e||{},o.shape)}return e&&(n.shape=e),n},Hs.prototype.getAnimationStyleProps=function(){return Es},Hs.prototype.isZeroArea=function(){return!1},Hs.extend=function(n){var i,t,e=(Pt(o,i=Hs),o.prototype.getDefaultStyle=function(){return E(n.style)},o.prototype.getDefaultShape=function(){return E(n.shape)},o);function o(t){var e=i.call(this,t)||this;return n.init&&n.init.call(e,t),e}for(t in n)"function"==typeof n[t]&&(e.prototype[t]=n[t]);return e},Hs.initDefaultProps=((A=Hs.prototype).type="path",A.strokeContainThreshold=5,A.segmentIgnoreThreshold=0,A.subPixelOptimize=!1,A.autoBatch=!1,void(A.__dirty=2|qe|Ke)),Hs),Gs=F({strokeFirst:!0,font:eo,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},zs),k=(Pt(Fs,Rs=xa),Fs.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&0<t.lineWidth},Fs.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},Fs.prototype.createStyle=function(t){return Dt(Gs,t)},Fs.prototype.setBoundingRect=function(t){this._rect=t},Fs.prototype.getBoundingRect=function(){var t,e=this.style;return this._rect||(null!=(t=e.text)?t+="":t="",(t=lo(t,e.font,e.textAlign,e.textBaseline)).x+=e.x||0,t.y+=e.y||0,this.hasStroke()&&(e=e.lineWidth,t.x-=e/2,t.y-=e/2,t.width+=e,t.height+=e),this._rect=t),this._rect},Fs.initDefaultProps=void(Fs.prototype.dirtyRectTolerance=10),Fs);function Fs(){return null!==Rs&&Rs.apply(this,arguments)||this}function Hs(t){return Ns.call(this,t)||this}k.prototype.type="tspan";var Ws=k,Us=F({x:0,y:0},ca),Xs={style:F({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},pa.style)};var Ys,Zs=(Pt(js,Ys=xa),js.prototype.createStyle=function(t){return Dt(Us,t)},js.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;n=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!n)return 0;var i="width"===t?"height":"width",e=e[i];return null==e?n[t]:n[t]/n[i]*e},js.prototype.getWidth=function(){return this._getSize("width")},js.prototype.getHeight=function(){return this._getSize("height")},js.prototype.getAnimationStyleProps=function(){return Xs},js.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Qi(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},js);function js(){return null!==Ys&&Ys.apply(this,arguments)||this}Zs.prototype.type="image";var qs=Zs;var Ks=Math.round;function $s(t,e,n){if(e){var i=e.x1,o=e.x2,r=e.y1,e=e.y2;t.x1=i,t.x2=o,t.y1=r,t.y2=e;n=n&&n.lineWidth;return n&&(Ks(2*i)===Ks(2*o)&&(t.x1=t.x2=Qs(i,n,!0)),Ks(2*r)===Ks(2*e)&&(t.y1=t.y2=Qs(r,n,!0))),t}}function Js(t,e,n){if(e){var i=e.x,o=e.y,r=e.width,e=e.height;t.x=i,t.y=o,t.width=r,t.height=e;n=n&&n.lineWidth;return n&&(t.x=Qs(i,n,!0),t.y=Qs(o,n,!0),t.width=Math.max(Qs(i+r,n,!1)-t.x,0===r?0:1),t.height=Math.max(Qs(o+e,n,!1)-t.y,0===e?0:1)),t}}function Qs(t,e,n){if(!e)return t;t=Ks(2*t);return(t+Ks(e))%2==0?t/2:(t+(n?1:-1))/2}var tl,el=function(){this.x=0,this.y=0,this.width=0,this.height=0},nl={},_i=(Pt(il,tl=Bs),il.prototype.getDefaultShape=function(){return new el},il.prototype.buildPath=function(t,e){var n,i,o,r,a,s,l,u,h,c,p,d,f,g;this.subPixelOptimize?(n=(g=Js(nl,e,this.style)).x,i=g.y,o=g.width,r=g.height,g.r=e.r,e=g):(n=e.x,i=e.y,o=e.width,r=e.height),e.r?(a=t,d=(s=e).x,f=s.y,g=s.width,e=s.height,s=s.r,g<0&&(d+=g,g=-g),e<0&&(f+=e,e=-e),"number"==typeof s?l=u=h=c=s:s instanceof Array?1===s.length?l=u=h=c=s[0]:2===s.length?(l=h=s[0],u=c=s[1]):3===s.length?(l=s[0],u=c=s[1],h=s[2]):(l=s[0],u=s[1],h=s[2],c=s[3]):l=u=h=c=0,g<l+u&&(l*=g/(p=l+u),u*=g/p),g<h+c&&(h*=g/(p=h+c),c*=g/p),e<u+h&&(u*=e/(p=u+h),h*=e/p),e<l+c&&(l*=e/(p=l+c),c*=e/p),a.moveTo(d+l,f),a.lineTo(d+g-u,f),0!==u&&a.arc(d+g-u,f+u,u,-Math.PI/2,0),a.lineTo(d+g,f+e-h),0!==h&&a.arc(d+g-h,f+e-h,h,0,Math.PI/2),a.lineTo(d+c,f+e),0!==c&&a.arc(d+c,f+e-c,c,Math.PI/2,Math.PI),a.lineTo(d,f+l),0!==l&&a.arc(d+l,f+l,l,Math.PI,1.5*Math.PI)):t.rect(n,i,o,r)},il.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},il);function il(t){return tl.call(this,t)||this}_i.prototype.type="rect";var ol,rl=_i,al={fill:"#000"},sl={style:F({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},pa.style)},ll=(Pt(cl,ol=xa),cl.prototype.childrenRef=function(){return this._children},cl.prototype.update=function(){ol.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var e=this._children[t];e.zlevel=this.zlevel,e.z=this.z,e.z2=this.z2,e.culling=this.culling,e.cursor=this.cursor,e.invisible=this.invisible}},cl.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):ol.prototype.updateTransform.call(this)},cl.prototype.getLocalTransform=function(t){var e=this.innerTransformable;return e?e.getLocalTransform(t):ol.prototype.getLocalTransform.call(this,t)},cl.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),ol.prototype.getComputedTransform.call(this)},cl.prototype._updateSubTexts=function(){var t;this._childCursor=0,pl(t=this.style),Z(t.rich,pl),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},cl.prototype.addSelfToZr=function(t){ol.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=t},cl.prototype.removeSelfFromZr=function(t){ol.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=null},cl.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new Qi(0,0,0,0),e=this._children,n=[],i=null,o=0;o<e.length;o++){var r=e[o],a=r.getBoundingRect(),r=r.getLocalTransform(n);r?(t.copy(a),t.applyTransform(r),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},cl.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||al},cl.prototype.setTextContent=function(t){throw new Error("Can't attach text on another text")},cl.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,i=t.rich||n&&{};return G(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},cl.prototype._mergeRich=function(t,e){for(var n=J(e),i=0;i<n.length;i++){var o=n[i];t[o]=t[o]||{},G(t[o],e[o])}},cl.prototype.getAnimationStyleProps=function(){return sl},cl.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),(this._children[this._childCursor++]=e).__zr=this.__zr,e.parent=this,e},cl.prototype._updatePlainTexts=function(){var t,e,n=this.style,i=n.font||eo,o=n.padding,r=function(t,e){null!=t&&(t+="");var n,i=e.overflow,o=e.padding,r=e.font,a="truncate"===i,s=co(r),l=gt(e.lineHeight,s),u="truncate"===e.lineOverflow,h=e.width,c=(n=null!=h&&"break"===i||"breakAll"===i?t?ua(t,e.font,h,"breakAll"===i,0).lines:[]:t?t.split("\n"):[]).length*l;(i=gt(e.height,c))<c&&u&&(p=Math.floor(i/l),n=n.slice(0,p));var u=i,p=h;if(o&&(u+=o[0]+o[2],null!=p&&(p+=o[1]+o[3])),t&&a&&null!=p)for(var d=ea(h,r,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),f=0;f<n.length;f++)n[f]=na(n[f],d);if(null==h){for(var g=0,f=0;f<n.length;f++)g=Math.max(ao(n[f],r),g);h=g}return{lines:n,height:i,outerHeight:u,lineHeight:l,calculatedLineHeight:s,contentHeight:c,width:h}}(yl(n),n),a=ml(n),s=!!n.backgroundColor,l=r.outerHeight,u=r.lines,h=r.lineHeight,c=this._defaultStyle,p=n.x||0,d=n.y||0,f=n.align||c.align||"left",g=n.verticalAlign||c.verticalAlign||"top",y=p,m=ho(d,r.contentHeight,g);(a||o)&&(t=r.width,o&&(t+=o[1]+o[3]),e=uo(p,t,f),d=ho(d,l,g),a&&this._renderBackground(n,n,e,d,t,l)),m+=h/2,o&&(y=gl(p,f,o),"top"===g?m+=o[0]:"bottom"===g&&(m-=o[2]));for(var v=0,o=!1,x=(fl("fill"in n?n.fill:(o=!0,c.fill))),_=(dl("stroke"in n?n.stroke:s||c.autoStroke&&!o?null:(v=2,c.stroke))),b=0<n.textShadowBlur,w=null!=n.width&&("truncate"===n.overflow||"break"===n.overflow||"breakAll"===n.overflow),S=r.calculatedLineHeight,M=0;M<u.length;M++){var I=this._getOrCreateChild(Ws),T=I.createStyle();I.useStyle(T),T.text=u[M],T.x=y,T.y=m,f&&(T.textAlign=f),T.textBaseline="middle",T.opacity=n.opacity,T.strokeFirst=!0,b&&(T.shadowBlur=n.textShadowBlur||0,T.shadowColor=n.textShadowColor||"transparent",T.shadowOffsetX=n.textShadowOffsetX||0,T.shadowOffsetY=n.textShadowOffsetY||0),_&&(T.stroke=_,T.lineWidth=n.lineWidth||v,T.lineDash=n.lineDash,T.lineDashOffset=n.lineDashOffset||0),x&&(T.fill=x),T.font=i,m+=h,w&&I.setBoundingRect(new Qi(uo(T.x,n.width,T.textAlign),ho(T.y,S,T.textBaseline),n.width,S))}},cl.prototype._updateRichTexts=function(){var t=this.style,e=aa(yl(t),t),n=e.width,i=e.outerWidth,o=e.outerHeight,r=t.padding,a=t.x||0,s=t.y||0,l=this._defaultStyle,u=t.align||l.align,l=t.verticalAlign||l.verticalAlign,u=uo(a,i,u),l=ho(s,o,l),h=u,c=l;r&&(h+=r[3],c+=r[0]);var p=h+n;ml(t)&&this._renderBackground(t,t,u,l,i,o);for(var d=!!t.backgroundColor,f=0;f<e.lines.length;f++){for(var g=e.lines[f],y=g.tokens,m=y.length,v=g.lineHeight,x=g.width,_=0,b=h,w=p,S=m-1,M=void 0;_<m&&(!(M=y[_]).align||"left"===M.align);)this._placeToken(M,t,v,c,b,"left",d),x-=M.width,b+=M.width,_++;for(;0<=S&&"right"===(M=y[S]).align;)this._placeToken(M,t,v,c,w,"right",d),x-=M.width,w-=M.width,S--;for(b+=(n-(b-h)-(p-w)-x)/2;_<=S;)M=y[_],this._placeToken(M,t,v,c,b+M.width/2,"center",d),b+=M.width,_++;c+=v}},cl.prototype._placeToken=function(t,e,n,i,o,r,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&ml(s)&&this._renderBackground(s,e,"right"===r?o-t.width:"center"===r?o-t.width/2:o,u-t.height/2,t.width,t.height);var h=!!s.backgroundColor,c=t.textPadding;c&&(o=gl(o,r,c),u-=t.height/2-c[0]-t.innerHeight/2);var p=this._getOrCreateChild(Ws),d=p.createStyle();p.useStyle(d);l=this._defaultStyle,i=!1,n=0,c=fl("fill"in s?s.fill:"fill"in e?e.fill:(i=!0,l.fill)),i=dl("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||l.autoStroke&&!i?null:(n=2,l.stroke)),l=0<s.textShadowBlur||0<e.textShadowBlur;d.text=t.text,d.x=o,d.y=u,l&&(d.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,d.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",d.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,d.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),d.textAlign=r,d.textBaseline="middle",d.font=t.font||eo,d.opacity=yt(s.opacity,e.opacity,1),i&&(d.lineWidth=yt(s.lineWidth,e.lineWidth,n),d.lineDash=gt(s.lineDash,e.lineDash),d.lineDashOffset=e.lineDashOffset||0,d.stroke=i),c&&(d.fill=c);c=t.contentWidth,t=t.contentHeight;p.setBoundingRect(new Qi(uo(d.x,c,d.textAlign),ho(d.y,t,d.textBaseline),c,t))},cl.prototype._renderBackground=function(t,e,n,i,o,r){var a,s,l,u=t.backgroundColor,h=t.borderWidth,c=t.borderColor,p=u&&u.image,d=u&&!p,f=t.borderRadius,g=this;(d||t.lineHeight||h&&c)&&((a=this._getOrCreateChild(rl)).useStyle(a.createStyle()),a.style.fill=null,(s=a.shape).x=n,s.y=i,s.width=o,s.height=r,s.r=f,a.dirtyShape()),d?((l=a.style).fill=u||null,l.fillOpacity=gt(t.fillOpacity,1)):p&&((y=this._getOrCreateChild(qs)).onload=function(){g.dirtyStyle()},(p=y.style).image=u.image,p.x=n,p.y=i,p.width=o,p.height=r),h&&c&&((l=a.style).lineWidth=h,l.stroke=c,l.strokeOpacity=gt(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var y=(a||y).style;y.shadowBlur=t.shadowBlur||0,y.shadowColor=t.shadowColor||"transparent",y.shadowOffsetX=t.shadowOffsetX||0,y.shadowOffsetY=t.shadowOffsetY||0,y.opacity=yt(t.opacity,e.opacity,1)},cl.makeFont=function(t){var e,n="";return(t.fontSize||t.fontFamily||t.fontWeight)&&(e="",e="string"!=typeof t.fontSize||-1===t.fontSize.indexOf("px")&&-1===t.fontSize.indexOf("rem")&&-1===t.fontSize.indexOf("em")?isNaN(+t.fontSize)?"12px":t.fontSize+"px":t.fontSize,n=[t.fontStyle,t.fontWeight,e,t.fontFamily||"sans-serif"].join(" ")),n&&_t(n)||t.textFont||t.font},cl),ul={left:!0,right:1,center:1},hl={top:1,bottom:1,middle:1};function cl(t){var e=ol.call(this)||this;return e.type="text",e._children=[],e._defaultStyle=al,e.attr(t),e}function pl(t){var e;t&&(t.font=ll.makeFont(t),e=t.align,t.align=null==(e="middle"===e?"center":e)||ul[e]?e:"left",e=t.verticalAlign,t.verticalAlign=null==(e="center"===e?"middle":e)||hl[e]?e:"top",t.padding&&(t.padding=vt(t.padding)))}function dl(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function fl(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function gl(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function yl(t){t=t.text;return null!=t&&(t+=""),t}function ml(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}function vl(e,n,i,t){var o;t&&((o=_l(t)).dataIndex=i,o.dataType=n,o.seriesIndex=e,"group"===t.type&&t.traverse(function(t){t=_l(t);t.seriesIndex=e,t.dataIndex=i,t.dataType=n}))}var xl=ll,_l=Ir(),bl=1,wl={},Sl=Ir(),Ml=0,Il=1,Tl=2,Cl=["emphasis","blur","select"],Dl=["normal","emphasis","blur","select"],Al="highlight",kl="downplay",Ll="select",Pl="unselect",Ol="toggleSelect";function Rl(t){return null!=t&&"none"!==t}var Nl=new ln(100);function zl(t){if("string"!=typeof t)return t;var e=Nl.get(t);return e||(e=Tn(t,-.1),Nl.put(t,e)),e}function El(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Vl(t){El(t,"emphasis",Tl)}function Bl(t){t.hoverState===Tl&&El(t,"normal",Ml)}function Gl(t){El(t,"blur",Il)}function Fl(t){t.hoverState===Il&&El(t,"normal",Ml)}function Hl(t){t.selected=!0}function Wl(t){t.selected=!1}function Ul(t,e,n){e(t,n)}function Xl(t,e,n){Ul(t,e,n),t.isGroup&&t.traverse(function(t){Ul(t,e,n)})}function Yl(t,e){switch(e){case"emphasis":t.hoverState=Tl;break;case"normal":t.hoverState=Ml;break;case"blur":t.hoverState=Il;break;case"select":t.selected=!0}}function Zl(t,e,n){var i=0<=W(t.currentStates,e),o=t.style.opacity,t=i?null:function(t,e,n,i){for(var o=t.style,r={},a=0;a<e.length;a++){var s=e[a],l=o[s];r[s]=null==l?i&&i[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveFinalToTarget(r,e)}return r}(t,["opacity"],e,{opacity:1}),e=(n=n||{}).style||{};return null==e.opacity&&(n=G({},n),e=G({opacity:i?o:.1*t.opacity},e),n.style=e),n}function jl(t,e){var n,i,o,r,a,s=this.states[t];if(this.style){if("emphasis"===t)return n=this,o=s,r=(i=e)&&0<=W(i,"select"),a=!1,n instanceof Bs&&(e=Sl(n),i=r&&e.selectFill||e.normalFill,r=r&&e.selectStroke||e.normalStroke,(Rl(i)||Rl(r))&&("inherit"===(e=(o=o||{}).style||{}).fill?(a=!0,o=G({},o),(e=G({},e)).fill=i):!Rl(e.fill)&&Rl(i)?(a=!0,o=G({},o),(e=G({},e)).fill=zl(i)):!Rl(e.stroke)&&Rl(r)&&(a||(o=G({},o),e=G({},e)),e.stroke=zl(r)),o.style=e)),o&&null==o.z2&&(a||(o=G({},o)),a=n.z2EmphasisLift,o.z2=n.z2+(null!=a?a:10)),o;if("blur"===t)return Zl(this,t,s);if("select"===t)return a=this,(o=s)&&null==o.z2&&(o=G({},o),t=a.z2SelectLift,o.z2=a.z2+(null!=t?t:9)),o}return s}function ql(t){t.stateProxy=jl;var e=t.getTextContent(),t=t.getTextGuideLine();e&&(e.stateProxy=jl),t&&(t.stateProxy=jl)}function Kl(t,e){ou(t,e)||t.__highByOuter||Xl(t,Vl)}function $l(t,e){ou(t,e)||t.__highByOuter||Xl(t,Bl)}function Jl(t,e){t.__highByOuter|=1<<(e||0),Xl(t,Vl)}function Ql(t,e){(t.__highByOuter&=~(1<<(e||0)))||Xl(t,Bl)}function tu(t){Xl(t,Gl)}function eu(t){Xl(t,Fl)}function nu(t){Xl(t,Hl)}function iu(t){Xl(t,Wl)}function ou(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function ru(n){n.getModel().eachComponent(function(t,e){("series"===t?n.getViewOfSeriesModel(e):n.getViewOfComponentModel(e)).group.traverse(function(t){Fl(t)})})}function au(t,r,a,s){var l,u,h,n=s.getModel();function c(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&eu(i)}}a=a||"coordinateSystem",null!=t&&r&&"none"!==r&&(l=n.getSeriesByIndex(t),(u=l.coordinateSystem)&&u.master&&(u=u.master),h=[],n.eachSeries(function(t){var e=l===t,n=t.coordinateSystem;if(n&&n.master&&(n=n.master),!("series"===a&&!e||"coordinateSystem"===a&&!(n&&u?n===u:e)||"series"===r&&e)){if(s.getViewOfSeriesModel(t).group.traverse(function(t){Gl(t)}),Y(r))c(t.getData(),r);else if(at(r))for(var i=J(r),o=0;o<i.length;o++)c(t.getData(i[o]),r[i[o]]);h.push(t)}}),n.eachComponent(function(t,e){"series"===t||(e=s.getViewOfComponentModel(e))&&e.blurSeries&&e.blurSeries(h,n)}))}function su(t,e,n){null!=t&&null!=e&&(!(e=n.getModel().getComponent(t,e))||(e=n.getViewOfComponentModel(e))&&e.focusBlurEnabled&&e.group.traverse(function(t){Gl(t)}))}function lu(t,e,n,i){var o={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return o;e=i.getModel().getComponent(t,e);if(!e)return o;e=i.getViewOfComponentModel(e);if(!e||!e.findHighDownDispatchers)return o;for(var r,a=e.findHighDownDispatchers(n),s=0;s<a.length;s++)if("self"===_l(a[s]).focus){r=!0;break}return{focusSelf:r,dispatchers:a}}function uu(i){Z(i.getAllData(),function(t){var e=t.data,n=t.type;e.eachItemGraphicEl(function(t,e){(i.isSelected(e,n)?nu:iu)(t)})})}function hu(t,e,n){gu(t,!0),Xl(t,ql),cu(t,e,n)}function cu(t,e,n){t=_l(t);null!=e?(t.focus=e,t.blurScope=n):t.focus&&(t.focus=null)}var pu=["emphasis","blur","select"],du={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function fu(t,e,n,i){n=n||"itemStyle";for(var o=0;o<pu.length;o++){var r=pu[o],a=e.getModel([r,n]);t.ensureState(r).style=i?i(a):a[du[n]]()}}function gu(t,e){var n=!1===e,e=t;t.highDownSilentOnTouch&&(e.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!e.__highDownDispatcher||(e.__highByOuter=e.__highByOuter||0,e.__highDownDispatcher=!n)}function yu(t){return!(!t||!t.__highDownDispatcher)}function mu(t){t=t.type;return t===Ll||t===Pl||t===Ol}function vu(t){t=t.type;return t===Al||t===kl}var xu=Ir();function _u(t,e,n,i,o){var r;e&&e.ecModel&&(r=(l=e.ecModel.getUpdatePayload())&&l.animation);var a="update"===t;if(e&&e.isAnimationEnabled()){var s=void 0,l=void 0,t=void 0,t=i?(s=gt(i.duration,200),l=gt(i.easing,"cubicOut"),0):(s=e.getShallow(a?"animationDurationUpdate":"animationDuration"),l=e.getShallow(a?"animationEasingUpdate":"animationEasing"),e.getShallow(a?"animationDelayUpdate":"animationDelay"));return r&&(null!=r.duration&&(s=r.duration),null!=r.easing&&(l=r.easing),null!=r.delay&&(t=r.delay)),"function"==typeof t&&(t=t(n,o)),{duration:(s="function"==typeof s?s(n):s)||0,delay:t,easing:l}}return null}function bu(t,e,n,i,o,r,a){var s,l=!1;"function"==typeof o?(a=r,r=o,o=null):at(o)&&(r=o.cb,a=o.during,l=o.isFrom,s=o.removeOpt,o=o.dataIndex);var u="remove"===t;u||e.stopAnimation("remove");o=_u(t,i,o,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,o):null);o&&0<o.duration?(t={duration:o.duration,delay:o.delay||0,easing:o.easing,done:r,force:!!r||!!a,setToFinal:!u,scope:t,during:a},l?e.animateFrom(n,t):e.animateTo(n,t)):(e.stopAnimation(),l||e.attr(n),a&&a(1),r&&r())}function wu(t,e,n,i,o,r){bu("update",t,e,n,i,o,r)}function Su(t,e,n,i,o,r){bu("init",t,e,n,i,o,r)}function Mu(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++)if("remove"===t.animators[e].scope)return!0;return!1}function Iu(t,e,n,i,o,r){Mu(t)||bu("remove",t,e,n,i,o,r)}function Tu(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),Iu(t,{style:{opacity:0}},e,n,i)}function Cu(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||Tu(t,e,n,i)}):Tu(t,e,n,i)}function Du(t){xu(t).oldStyle=t.style}var Au={};function ku(t,e){for(var n=0;n<Cl.length;n++){var i=Cl[n],o=e[i],i=t.ensureState(i);i.style=i.style||{},i.style.text=o}var r=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(r,!0)}function Lu(t,e,n){for(var i,o=t.labelFetcher,r=t.labelDataIndex,a=t.labelDimIndex,s=e.normal,l={normal:i=null==(i=o?o.getFormattedLabel(r,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null):i)?nt(t.defaultText)?t.defaultText(r,t,n):t.defaultText:i},u=0;u<Cl.length;u++){var h=Cl[u],c=e[h];l[h]=gt(o?o.getFormattedLabel(r,h,null,a,c&&c.get("formatter")):null,i)}return l}function Pu(t,e,n,i){n=n||Au;for(var o=t instanceof xl,r=!1,a=0;a<Dl.length;a++){var s=e[Dl[a]];if(s&&s.getShallow("show")){r=!0;break}}var l=o?t:t.getTextContent();if(r){o||(l||(l=new xl,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=Lu(n,e),h=e.normal,c=!!h.getShallow("show"),p=Ru(h,i&&i.normal,n,!1,!o);for(p.text=u.normal,o||t.setTextConfig(Nu(h,n,!1)),a=0;a<Cl.length;a++){var d,f,g=Cl[a];(s=e[g])&&(d=l.ensureState(g),(f=!!gt(s.getShallow("show"),c))!=c&&(d.ignore=!f),d.style=Ru(s,i&&i[g],n,!0,!o),d.style.text=u[g],o||(t.ensureState(g).textConfig=Nu(s,n,!0)))}l.silent=!!h.getShallow("silent"),null!=l.style.x&&(p.x=l.style.x),null!=l.style.y&&(p.y=l.style.y),l.ignore=!c,l.useStyle(p),l.dirty(),n.enableTextSetter&&(Fu(l).setLabelText=function(t){t=Lu(n,e,t);ku(l,t)})}else l&&(l.ignore=!0);t.dirty()}function Ou(t,e){for(var n={normal:t.getModel(e=e||"label")},i=0;i<Cl.length;i++){var o=Cl[i];n[o]=t.getModel([o,e])}return n}function Ru(t,e,n,i,o){var r={};return function(t,e,n,i,o){n=n||Au;var r,a=e.ecModel,s=a&&a.option.textStyle,l=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||Au).rich;if(n){e=e||{};for(var i=J(n),o=0;o<i.length;o++){var r=i[o];e[r]=1}}t=t.parentModel}return e}(e);if(l)for(var u in r={},l){var h;l.hasOwnProperty(u)&&(h=e.getModel(["rich",u]),Bu(r[u]={},h,s,n,i,o,!1,!0))}r&&(t.rich=r);a=e.get("overflow");a&&(t.overflow=a);a=e.get("minMargin");null!=a&&(t.margin=a),Bu(t,e,s,n,i,o,!0,!1)}(r,t,n,i,o),e&&G(r,e),r}function Nu(t,e,n){e=e||{};var i={},o=t.getShallow("rotate"),r=gt(t.getShallow("distance"),n?null:5),a=t.getShallow("offset"),n=t.getShallow("position")||(n?null:"inside");return null!=(n="outside"===n?e.defaultOutsidePosition||"top":n)&&(i.position=n),null!=a&&(i.offset=a),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=r&&(i.distance=r),i.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",i}var zu=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Eu=["align","lineHeight","width","height","tag","verticalAlign"],Vu=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Bu(t,e,n,i,o,r,a,s){n=!o&&n||Au;var l=i&&i.inheritColor,u=e.getShallow("color"),h=e.getShallow("textBorderColor"),c=gt(e.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||(u=l||null),"inherit"!==h&&"auto"!==h||(h=l||null),r||(u=u||n.color,h=h||n.textBorderColor),null!=u&&(t.fill=u),null!=h&&(t.stroke=h);h=gt(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=h&&(t.lineWidth=h);h=gt(e.getShallow("textBorderType"),n.textBorderType);null!=h&&(t.lineDash=h);h=gt(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=h&&(t.lineDashOffset=h),null!=(c=!o&&null==c&&!s?i&&i.defaultOpacity:c)&&(t.opacity=c),o||r||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var p=0;p<zu.length;p++){var d=zu[p],f=gt(e.getShallow(d),n[d]);null!=f&&(t[d]=f)}for(p=0;p<Eu.length;p++)d=Eu[p],null!=(f=e.getShallow(d))&&(t[d]=f);if(null!=t.verticalAlign||null!=(r=e.getShallow("baseline"))&&(t.verticalAlign=r),!a||!i.disableBox){for(p=0;p<Vu.length;p++)d=Vu[p],null!=(f=e.getShallow(d))&&(t[d]=f);i=e.getShallow("borderType");null!=i&&(t.borderDash=i),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function Gu(t,e){e=e&&e.getModel("textStyle");return _t([t.fontStyle||e&&e.getShallow("fontStyle")||"",t.fontWeight||e&&e.getShallow("fontWeight")||"",(t.fontSize||e&&e.getShallow("fontSize")||12)+"px",t.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var Fu=Ir();function Hu(t,e,n,i){t&&((t=Fu(t)).prevValue=t.value,t.value=n,n=e.normal,t.valueAnimation=n.get("valueAnimation"),t.valueAnimation&&(t.precision=n.get("precision"),t.defaultInterpolatedText=i,t.statesModels=e))}function Wu(n,i,o,t,r){var a,s,l,u=Fu(n);u.valueAnimation&&u.prevValue!==u.value&&(a=u.defaultInterpolatedText,s=gt(u.interpolatedValue,u.prevValue),l=u.value,n.percent=0,(null==u.prevValue?Su:wu)(n,{percent:1},t,i,null,function(t){var e=Rr(o,u.precision,s,l,t);u.interpolatedValue=1===t?null:e;e=Lu({labelDataIndex:i,labelFetcher:r,defaultText:a?a(e):e+""},u.statesModels,e);ku(n,e)}))}var Uu,Xu=["textStyle","color"],Yu=new xl,e=(Qu.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Xu):null)},Qu.prototype.getFont=function(){return Gu({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},Qu.prototype.getTextRect=function(t){return Yu.useStyle({text:t,fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily"),verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline"),padding:this.getShallow("padding"),lineHeight:this.getShallow("lineHeight"),rich:this.getShallow("rich")}),Yu.update(),Yu.getBoundingRect()},Qu),n=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Zu=Xr(n),_o=(Ju.prototype.getLineStyle=function(t){return Zu(this,t)},Ju),Co=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],ju=Xr(Co),To=($u.prototype.getItemStyle=function(t,e){return ju(this,t,e)},$u),qu=(Ku.prototype.init=function(t,e,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o]},Ku.prototype.mergeOption=function(t,e){V(this.option,t,!0)},Ku.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},Ku.prototype.getShallow=function(t,e){var n=this.option,n=null==n?n:n[t];return null!=n||e||(e=this.parentModel)&&(n=e.getShallow(t)),n},Ku.prototype.getModel=function(t,e){var n=null!=t,t=n?this.parsePath(t):null;return new Ku(n?this._doGet(t):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(t)),this.ecModel)},Ku.prototype.isEmpty=function(){return null==this.option},Ku.prototype.restoreData=function(){},Ku.prototype.clone=function(){return new this.constructor(E(this.option))},Ku.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},Ku.prototype.resolveParentPath=function(t){return t},Ku.prototype.isAnimationEnabled=function(){if(!w.node&&this.option)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0},Ku.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);return n=null==n&&e?e._doGet(this.resolveParentPath(t),e.parentModel):n},Ku);function Ku(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}function $u(){}function Ju(){}function Qu(){}Br(qu),x=qu,Uu=["__\0is_clz",Fr++].join("_"),x.prototype[Uu]=!0,x.isInstance=function(t){return!(!t||!t[Uu])},X(qu,_o),X(qu,To),X(qu,Zr),X(qu,e);var th=qu,eh=Math.round(10*Math.random());function nh(t){return[t||"",eh++].join("_")}function ih(t,e){return V(V({},t,!0),e,!0)}var oh="ZH",rh="EN",ah=rh,sh={},lh={},uh=w.domSupported&&-1<(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(oh)?oh:ah;function hh(t,e){t=t.toUpperCase(),lh[t]=new th(e),sh[t]=e}function ch(t){return lh[t]}hh(rh,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),hh(oh,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var ph=1e3,dh=60*ph,fh=60*dh,gh=24*fh,M=365*gh,yh={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}"},A="{yyyy}-{MM}-{dd}",mh={year:"{yyyy}",month:"{yyyy}-{MM}",day:A,hour:A+" "+yh.hour,minute:A+" "+yh.minute,second:A+" "+yh.second,millisecond:yh.none},vh=["year","month","day","hour","minute","second","millisecond"],xh=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function _h(t,e){return"0000".substr(0,e-(t+="").length)+t}function bh(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function wh(t,e,n,i){var o=er(t),r=o[Ih(n)](),a=o[Th(n)]()+1,s=Math.floor((a-1)/4)+1,l=o[Ch(n)](),u=o["get"+(n?"UTC":"")+"Day"](),h=o[Dh(n)](),c=(h-1)%12+1,p=o[Ah(n)](),d=o[kh(n)](),f=o[Lh(n)](),t=(i instanceof th?i:ch(i||uh)||lh[ah]).getModel("time"),o=t.get("month"),n=t.get("monthAbbr"),i=t.get("dayOfWeek"),t=t.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,r+"").replace(/{yy}/g,r%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,o[a-1]).replace(/{MMM}/g,n[a-1]).replace(/{MM}/g,_h(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,_h(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,i[u]).replace(/{ee}/g,t[u]).replace(/{e}/g,u+"").replace(/{HH}/g,_h(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,_h(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,_h(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,_h(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,_h(f,3)).replace(/{S}/g,f+"")}function Sh(t,e){var n=er(t),i=n[Th(e)]()+1,o=n[Ch(e)](),r=n[Dh(e)](),a=n[Ah(e)](),t=n[kh(e)](),e=0===n[Lh(e)](),t=e&&0===t,a=t&&0===a,r=a&&0===r,o=r&&1===o;return o&&1===i?"year":o?"month":r?"day":a?"hour":t?"minute":e?"second":"millisecond"}function Mh(t,e,n){var i="number"==typeof t?er(t):t;switch(e=e||Sh(t,n)){case"year":return i[Ih(n)]();case"half-year":return 6<=i[Th(n)]()?1:0;case"quarter":return Math.floor((i[Th(n)]()+1)/4);case"month":return i[Th(n)]();case"day":return i[Ch(n)]();case"half-day":return i[Dh(n)]()/24;case"hour":return i[Dh(n)]();case"minute":return i[Ah(n)]();case"second":return i[kh(n)]();case"millisecond":return i[Lh(n)]()}}function Ih(t){return t?"getUTCFullYear":"getFullYear"}function Th(t){return t?"getUTCMonth":"getMonth"}function Ch(t){return t?"getUTCDate":"getDate"}function Dh(t){return t?"getUTCHours":"getHours"}function Ah(t){return t?"getUTCMinutes":"getMinutes"}function kh(t){return t?"getUTCSeconds":"getSeconds"}function Lh(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Ph(t){return t?"setUTCMonth":"setMonth"}function Oh(t){return t?"setUTCDate":"setDate"}function Rh(t){return t?"setUTCHours":"setHours"}function Nh(t){return t?"setUTCMinutes":"setMinutes"}function zh(t){return t?"setUTCSeconds":"setSeconds"}function Eh(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Vh(t){if(!lr(t))return it(t)?t:"-";t=(t+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1<t.length?"."+t[1]:"")}function Bh(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),t=e&&t?t.charAt(0).toUpperCase()+t.slice(1):t}var Gh=vt,Fh=/([&<>"'])/g,Hh={"&":"&","<":"<",">":">",'"':""","'":"'"};function Wh(t){return null==t?"":(t+"").replace(Fh,function(t,e){return Hh[e]})}function Uh(t,e,n){function i(t){return t&&_t(t)?t:"-"}function o(t){return null!=t&&!isNaN(t)&&isFinite(t)}var r="time"===e,a=t instanceof Date;if(r||a){r=r?er(t):t;if(!isNaN(+r))return wh(r,"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return ot(t)?i(t):rt(t)&&o(t)?t+"":"-";e=sr(t);return o(e)?Vh(e):ot(t)?i(t):"boolean"==typeof t?t+"":"-"}var Xh=["a","b","c","d","e","f","g"],Yh=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Zh(t,e,n){var i=(e=!et(e)?[e]:e).length;if(!i)return"";for(var o=e[0].$vars||[],r=0;r<o.length;r++){var a=Xh[r];t=t.replace(Yh(a),Yh(a,0))}for(var s=0;s<i;s++)for(var l=0;l<o.length;l++){var u=e[s][o[l]];t=t.replace(Yh(Xh[l],s),n?Wh(u):u)}return t}function jh(t,e){var n=it(t)?{color:t,extraCssText:e}:t||{},i=n.color,o=n.type;e=n.extraCssText;t=n.renderMode||"html";return i?"html"===t?"subItem"===o?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Wh(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Wh(i)+";"+(e||"")+'"></span>':{renderMode:t,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===o?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function qh(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=er(e),o=n?"UTC":"",r=i["get"+o+"FullYear"](),a=i["get"+o+"Month"]()+1,s=i["get"+o+"Date"](),l=i["get"+o+"Hours"](),e=i["get"+o+"Minutes"](),n=i["get"+o+"Seconds"](),o=i["get"+o+"Milliseconds"]();return t=t.replace("MM",_h(a,2)).replace("M",a).replace("yyyy",r).replace("yy",r%100+"").replace("dd",_h(s,2)).replace("d",s).replace("hh",_h(l,2)).replace("h",l).replace("mm",_h(e,2)).replace("m",e).replace("ss",_h(n,2)).replace("s",n).replace("SSS",_h(o,3))}function Kh(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function $h(t,e){return e=e||"transparent",it(t)?t:at(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Jh(t,e){var n;"_blank"===e||"blank"===e?((n=window.open()).opener=null,n.location.href=t):window.open(t,e)}var Qh=Z,tc=["left","right","top","bottom","width","height"],ec=[["width","left","right"],["height","top","bottom"]];function nc(a,s,l,u,h){var c=0,p=0;null==u&&(u=1/0),null==h&&(h=1/0);var d=0;s.eachChild(function(t,e){var n,i,o=t.getBoundingRect(),r=s.childAt(e+1),e=r&&r.getBoundingRect();d="horizontal"===a?(r=o.width+(e?-e.x+o.x:0),u<(n=c+r)||t.newline?(c=0,n=r,p+=d+l,o.height):Math.max(d,o.height)):(e=o.height+(e?-e.y+o.y:0),h<(i=p+e)||t.newline?(c+=d+l,p=0,i=e,o.width):Math.max(d,o.width)),t.newline||(t.x=c,t.y=p,t.markRedraw(),"horizontal"===a?c=n+l:p=i+l)})}var ic=nc;function oc(t,e,n){n=Gh(n||0);var i=e.width,o=e.height,r=Uo(t.left,i),a=Uo(t.top,o),s=Uo(t.right,i),l=Uo(t.bottom,o),u=Uo(t.width,i),h=Uo(t.height,o),c=n[2]+n[0],p=n[1]+n[3],e=t.aspect;switch(isNaN(u)&&(u=i-s-p-r),isNaN(h)&&(h=o-l-c-a),null!=e&&(isNaN(u)&&isNaN(h)&&(i/o<e?u=.8*i:h=.8*o),isNaN(u)&&(u=e*h),isNaN(h)&&(h=u/e)),isNaN(r)&&(r=i-s-u-p),isNaN(a)&&(a=o-l-h-c),t.left||t.right){case"center":r=i/2-u/2-n[3];break;case"right":r=i-u-p}switch(t.top||t.bottom){case"middle":case"center":a=o/2-h/2-n[0];break;case"bottom":a=o-h-c}r=r||0,a=a||0,isNaN(u)&&(u=i-p-r-(s||0)),isNaN(h)&&(h=o-c-a-(l||0));l=new Qi(r+n[3],a+n[0],u,h);return l.margin=n,l}function rc(t,e,n,i,o){var r,a=!o||!o.hv||o.hv[0],s=!o||!o.hv||o.hv[1],l=o&&o.boundingMode||"all";(a||s)&&("raw"===l?r="group"===t.type?new Qi(0,0,+e.width||0,+e.height||0):t.getBoundingRect():(r=t.getBoundingRect(),t.needLocalTransform()&&(o=t.getLocalTransform(),(r=r.clone()).applyTransform(o))),i=oc(F({width:r.width,height:r.height},e),n,i),a=a?i.x-r.x:0,r=s?i.y-r.y:0,"raw"===l?(t.x=a,t.y=r):(t.x+=a,t.y+=r),t.markRedraw())}function ac(t){t=t.layoutMode||t.constructor.layoutMode;return at(t)?t:t?{type:t}:null}function sc(l,u,t){var h=t&&t.ignoreSize;et(h)||(h=[h,h]);var e=n(ec[0],0),t=n(ec[1],1);function n(t,e){var n={},i=0,o={},r=0;if(Qh(t,function(t){o[t]=l[t]}),Qh(t,function(t){c(u,t)&&(n[t]=o[t]=u[t]),p(n,t)&&i++,p(o,t)&&r++}),h[e])return p(u,t[1])?o[t[2]]=null:p(u,t[2])&&(o[t[1]]=null),o;if(2!==r&&i){if(2<=i)return n;for(var a=0;a<t.length;a++){var s=t[a];if(!c(n,s)&&c(l,s)){n[s]=l[s];break}}return n}return o}function c(t,e){return t.hasOwnProperty(e)}function p(t,e){return null!=t[e]&&"auto"!==t[e]}function i(t,e,n){Qh(t,function(t){e[t]=n[t]})}i(ec[0],l,e),i(ec[1],l,t)}function lc(t){return uc({},t)}function uc(e,n){return n&&e&&Qh(tc,function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e}tt(nc,"vertical"),tt(nc,"horizontal");var hc,cc,pc,dc,fc=Ir(),gc=(y(yc,hc=th),yc.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},yc.prototype.mergeDefaultAndTheme=function(t,e){var n=ac(this),i=n?lc(t):{};V(t,e.getTheme().get(this.mainType)),V(t,this.getDefaultOption()),n&&sc(t,i,n)},yc.prototype.mergeOption=function(t,e){V(this.option,t,!0);var n=ac(this);n&&sc(this.option,t,n)},yc.prototype.optionUpdated=function(t,e){},yc.prototype.getDefaultOption=function(){var t=this.constructor;if(!(e=t)||!e[Er])return t.defaultOption;var e=fc(this);if(!e.defaultOption){for(var n=[],i=t;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var r={},a=n.length-1;0<=a;a--)r=V(r,n[a],!0);e.defaultOption=r}return e.defaultOption},yc.prototype.getReferringComponents=function(t,e){var n=t+"Id";return Lr(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(n,!0)},e)},yc.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},yc.protoInitialize=((k=yc.prototype).type="component",k.id="",k.name="",k.mainType="",k.subType="",void(k.componentIndex=0)),yc);function yc(t,e,n){n=hc.call(this,t,e,n)||this;return n.uid=nh("ec_cpt_model"),n}function mc(r){var a={},s=[];return Z(r,function(n){var e,i,o=vc(a,n),t=o.originalDeps=cc(n),t=(e=r,i=[],Z(t,function(t){0<=W(e,t)&&i.push(t)}),i);o.entryCount=t.length,0===o.entryCount&&s.push(n),Z(t,function(t){W(o.predecessor,t)<0&&o.predecessor.push(t);var e=vc(a,t);W(e.successor,t)<0&&e.successor.push(n)})}),{graph:a,noEntryList:s}}function vc(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}Gr(gc,th),Ur(gc),dc={},(pc=gc).registerSubTypeDefaulter=function(t,e){t=Vr(t);dc[t.main]=e},pc.determineSubType=function(t,e){var n,i=e.type;return i||(n=Vr(t).main,pc.hasSubTypes(t)&&dc[n]&&(i=dc[n](e))),i},cc=function(t){var e=[];return Z(gc.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=j(e,function(t){return Vr(t).main}),"dataset"!==t&&W(e,"dataset")<=0&&e.unshift("dataset"),e},gc.topologicalTravel=function(t,e,n,i){if(t.length){var e=mc(e),o=e.graph,r=e.noEntryList,a={};for(Z(t,function(t){a[t]=!0});r.length;){var s=r.pop(),l=o[s],u=!!a[s];u&&(n.call(i,s,l.originalDeps.slice()),delete a[s]),Z(l.successor,u?c:h)}Z(a,function(){throw new Error("")})}function h(t){o[t].entryCount--,0===o[t].entryCount&&r.push(t)}function c(t){a[t]=!0,h(t)}};var xc=gc,Zs="";"undefined"!=typeof navigator&&(Zs=navigator.platform||"");var _i="rgba(0, 0, 0, 0.2)",_c={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:_i,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:_i,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:_i,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:_i,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:_i,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:_i,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Zs.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},bc=Tt(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),wc="original",Sc="arrayRows",Mc="objectRows",Ic="keyedColumns",Tc="typedArray",Cc="unknown",Dc="column",Ac="row",kc={Must:1,Might:2,Not:3},Lc=Ir();function Pc(n,t,e){var o={},i=Rc(t);if(!i||!n)return o;var r,a,s=[],l=[],t=t.ecModel,t=Lc(t).datasetMap,e=i.uid+"_"+e.seriesLayoutBy;Z(n=n.slice(),function(t,e){t=at(t)?t:n[e]={name:t};"ordinal"===t.type&&null==r&&(r=e,a=c(t)),o[t.name]=[]});var u=t.get(e)||t.set(e,{categoryWayDim:a,valueWayDim:0});function h(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function c(t){t=t.dimsDef;return t?t.length:1}return Z(n,function(t,e){var n,i=t.name,t=c(t);null==r?(n=u.valueWayDim,h(o[i],n,t),h(l,n,t),u.valueWayDim+=t):r===e?(h(o[i],0,t),h(s,0,t)):(n=u.categoryWayDim,h(o[i],n,t),h(l,n,t),u.categoryWayDim+=t)}),s.length&&(o.itemName=s),l.length&&(o.seriesName=l),o}function Oc(t,l,u){var e={};if(!Rc(t))return e;var h,c=l.sourceFormat,p=l.dimensionsDefine;c!==Mc&&c!==Ic||Z(p,function(t,e){"name"===(at(t)?t.name:t)&&(h=e)});var t=function(){for(var t={},e={},n=[],i=0,o=Math.min(5,u);i<o;i++){var r=zc(l.data,c,l.seriesLayoutBy,p,l.startIndex,i);n.push(r);var a=r===kc.Not;if(a&&null==t.v&&i!==h&&(t.v=i),null!=t.n&&t.n!==t.v&&(a||n[t.n]!==kc.Not)||(t.n=i),s(t)&&n[t.n]!==kc.Not)return t;a||(r===kc.Might&&null==e.v&&i!==h&&(e.v=i),null!=e.n&&e.n!==e.v||(e.n=i))}function s(t){return null!=t.v&&null!=t.n}return s(t)?t:s(e)?e:null}();return t&&(e.value=[t.v],t=null!=h?h:t.n,e.itemName=[t],e.seriesName=[t]),e}function Rc(t){if(!t.get("data",!0))return Lr(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Ar).models[0]}function Nc(t,e){return zc(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function zc(t,e,n,i,o,r){var a,s,l;if(lt(t))return kc.Not;if(i&&(at(i=i[r])?(s=i.name,l=i.type):it(i)&&(s=i)),null!=l)return"ordinal"===l?kc.Must:kc.Not;if(e===Sc){var u=t;if(n===Ac){for(var h=u[r],c=0;c<(h||[]).length&&c<5;c++)if(null!=(a=m(h[o+c])))return a}else for(c=0;c<u.length&&c<5;c++){var p=u[o+c];if(p&&null!=(a=m(p[r])))return a}}else if(e===Mc){var d=t;if(!s)return kc.Not;for(c=0;c<d.length&&c<5;c++){var f=d[c];if(f&&null!=(a=m(f[s])))return a}}else if(e===Ic){if(!s)return kc.Not;if(!(h=t[s])||lt(h))return kc.Not;for(c=0;c<h.length&&c<5;c++)if(null!=(a=m(h[c])))return a}else if(e===wc)for(var g=t,c=0;c<g.length&&c<5;c++){var y=yr(f=g[c]);if(!et(y))return kc.Not;if(null!=(a=m(y[r])))return a}function m(t){var e=it(t);return null!=t&&isFinite(t)&&""!==t?e?kc.Might:kc.Not:e&&"-"!==t?kc.Must:void 0}return kc.Not}var Ec=Tt();var Vc,Bc,Gc,Fc=Ir(),Hc=Ir(),Wc=(Uc.prototype.getColorFromPalette=function(t,e,n){var i=dr(this.get("color",!0)),o=this.get("colorLayer",!0);return Yc(this,Fc,i,o,t,e,n)},Uc.prototype.clearColorPalette=function(){var t,e;(e=Fc)(t=this).paletteIdx=0,e(t).paletteNameMap={}},Uc);function Uc(){}function Xc(t,e,n,i){var o=dr(t.get(["aria","decal","decals"]));return Yc(t,Hc,o,null,e,n,i)}function Yc(t,e,n,i,o,r,a){e=e(r=r||t),t=e.paletteIdx||0,r=e.paletteNameMap=e.paletteNameMap||{};if(r.hasOwnProperty(o))return r[o];if((a=(a=null!=a&&i?function(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}(i,a):n)||n)&&a.length){n=a[t];return o&&(r[o]=n),e.paletteIdx=(t+1)%a.length,n}}function Zc(t){throw new Error(t)}var jc,qc="\0_ec_inner",Fr=(y(Kc,jc=th),Kc.prototype.init=function(t,e,n,i,o,r){i=i||{},this.option=null,this._theme=new th(i),this._locale=new th(o),this._optionManager=r},Kc.prototype.setOption=function(t,e,n){e=Qc(e);this._optionManager.setOption(t,n,e),this._resetOption(null,e)},Kc.prototype.resetOption=function(t,e){return this._resetOption(t,Qc(e))},Kc.prototype._resetOption=function(t,e){var n,i=!1,o=this._optionManager;return t&&"recreate"!==t||(n=o.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(n,e)):Gc(this,n),i=!0),"timeline"!==t&&"media"!==t||this.restoreData(),t&&"recreate"!==t&&"timeline"!==t||(n=o.getTimelineOption(this))&&(i=!0,this._mergeOption(n,e)),t&&"recreate"!==t&&"media"!==t||(o=o.getMediaOption(this)).length&&Z(o,function(t){i=!0,this._mergeOption(t,e)},this),i},Kc.prototype.mergeOption=function(t){this._mergeOption(t,null)},Kc.prototype._mergeOption=function(i,t){var o=this.option,u=this._componentsMap,h=this._componentsCount,n=[],r=Tt(),c=t&&t.replaceMergeMainTypeMap;Lc(this).datasetMap=Tt(),Z(i,function(t,e){null!=t&&(xc.hasClass(e)?e&&(n.push(e),r.set(e,!0)):o[e]=null==o[e]?E(t):V(o[e],t,!0))}),c&&c.each(function(t,e){xc.hasClass(e)&&!r.get(e)&&(n.push(e),r.set(e,!0))}),xc.topologicalTravel(n,xc.getAllClassMainTypes(),function(r){var t,e=(e=this,n=dr(i[t=r]),(t=Ec.get(t))&&(e=t(e))?n.concat(e):n),n=u.get(r);Sr(n=mr(n,e,n?c&&c.get(r)?"replaceMerge":"normalMerge":"replaceAll"),r,xc),o[r]=null,u.set(r,null),h.set(r,0);var a=[],s=[],l=0;Z(n,function(t,e){var n=t.existing,i=t.newOption;if(i){var o=xc.getClass(r,t.keyInfo.subType,!("series"===r));if(!o)return;n&&n.constructor===o?(n.name=t.keyInfo.name,n.mergeOption(i,this),n.optionUpdated(i,!1)):(e=G({componentIndex:e},t.keyInfo),G(n=new o(i,this,this,e),e),t.brandNew&&(n.__requireNewView=!0),n.init(i,this,this),n.optionUpdated(null,!0))}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(a.push(n.option),s.push(n),l++):(a.push(void 0),s.push(void 0))},this),o[r]=a,u.set(r,s),h.set(r,l),"series"===r&&Vc(this)},this),this._seriesIndices||Vc(this)},Kc.prototype.getOption=function(){var a=E(this.option);return Z(a,function(t,e){if(xc.hasClass(e)){for(var n=dr(t),i=n.length,o=!1,r=i-1;0<=r;r--)n[r]&&!wr(n[r])?o=!0:(n[r]=null,o||i--);n.length=i,a[e]=n}}),delete a[qc],a},Kc.prototype.getTheme=function(){return this._theme},Kc.prototype.getLocaleModel=function(){return this._locale},Kc.prototype.setUpdatePayload=function(t){this._payload=t},Kc.prototype.getUpdatePayload=function(){return this._payload},Kc.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){t=n[e||0];if(t)return t;if(null==e)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},Kc.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,o=t.id,r=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=i?(n=[],Z(dr(i),function(t){a[t]&&n.push(a[t])})):n=null!=o?$c("id",o,a):null!=r?$c("name",r,a):K(a,function(t){return!!t}),Jc(n,t)):[]},Kc.prototype.findComponents=function(t){var e,n,i=t.query,o=t.mainType,r=(e=o+"Index",n=o+"Id",r=o+"Name",!(i=i)||null==i[e]&&null==i[n]&&null==i[r]?null:{mainType:o,index:i[e],id:i[n],name:i[r]}),o=r?this.queryComponents(r):K(this._componentsMap.get(o),function(t){return!!t});return o=Jc(o,t),t.filter?K(o,t.filter):o},Kc.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(nt(t)){var o=e,r=t;i.each(function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&r.call(o,e,i,i.componentIndex)}})}else for(var a=it(t)?i.get(t):at(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},Kc.prototype.getSeriesByName=function(t){var e=_r(t,null);return K(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},Kc.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},Kc.prototype.getSeriesByType=function(e){return K(this._componentsMap.get("series"),function(t){return!!t&&t.subType===e})},Kc.prototype.getSeries=function(){return K(this._componentsMap.get("series"),function(t){return!!t})},Kc.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},Kc.prototype.eachSeries=function(n,i){Bc(this),Z(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];n.call(i,e,t)},this)},Kc.prototype.eachRawSeries=function(e,n){Z(this._componentsMap.get("series"),function(t){t&&e.call(n,t,t.componentIndex)})},Kc.prototype.eachSeriesByType=function(n,i,o){Bc(this),Z(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];e.subType===n&&i.call(o,e,t)},this)},Kc.prototype.eachRawSeriesByType=function(t,e,n){return Z(this.getSeriesByType(t),e,n)},Kc.prototype.isSeriesFiltered=function(t){return Bc(this),null==this._seriesIndicesMap.get(t.componentIndex)},Kc.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},Kc.prototype.filterSeries=function(n,i){Bc(this);var o=[];Z(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];n.call(i,e,t)&&o.push(t)},this),this._seriesIndices=o,this._seriesIndicesMap=Tt(o)},Kc.prototype.restoreData=function(n){Vc(this);var t=this._componentsMap,i=[];t.each(function(t,e){xc.hasClass(e)&&i.push(e)}),xc.topologicalTravel(i,xc.getAllClassMainTypes(),function(e){Z(t.get(e),function(t){!t||"series"===e&&function(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,e=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=e&&t.name!==e}}(t,n)||t.restoreData()})})},Kc.internalField=(Vc=function(t){var e=t._seriesIndices=[];Z(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=Tt(e)},Bc=function(t){},void(Gc=function(t,e){t.option={},t.option[qc]=1,t._componentsMap=Tt({series:[]}),t._componentsCount=Tt();var n,i,o=e.aria;at(o)&&null==o.enabled&&(o.enabled=!0),n=e,o=t._theme.option,i=n.color&&!n.colorLayer,Z(o,function(t,e){"colorLayer"===e&&i||xc.hasClass(e)||("object"==typeof t?n[e]=n[e]?V(n[e],t,!1):E(t):null==n[e]&&(n[e]=t))}),V(e,_c,!1),t._mergeOption(e,null)})),Kc);function Kc(){return null!==jc&&jc.apply(this,arguments)||this}function $c(e,t,n){if(et(t)){var i=Tt();return Z(t,function(t){null!=t&&null!=_r(t,null)&&i.set(t,!0)}),K(n,function(t){return t&&i.get(t[e])})}var o=_r(t,null);return K(n,function(t){return t&&null!=o&&t[e]===o})}function Jc(t,e){return e.hasOwnProperty("subType")?K(t,function(t){return t&&t.subType===e.subType}):t}function Qc(t){var e=Tt();return t&&Z(dr(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}X(Fr,Wc);function tp(e){Z(np,function(t){this[t]=Q(e[t],e)},this)}var ep=Fr,np=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ip={},op=(sp.prototype.create=function(n,i){var o=[];Z(ip,function(t,e){t=t.create(n,i);o=o.concat(t||[])}),this._coordinateSystems=o},sp.prototype.update=function(e,n){Z(this._coordinateSystems,function(t){t.update&&t.update(e,n)})},sp.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},sp.register=function(t,e){ip[t]=e},sp.get=function(t){return ip[t]},sp),rp=/^(min|max)?(.+)$/;function ap(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}function sp(){this._coordinateSystems=[]}var lp=(ap.prototype.setOption=function(t,e,n){t&&(Z(dr(t.series),function(t){t&&t.data&<(t.data)&&wt(t.data)}),Z(dr(t.dataset),function(t){t&&t.source&<(t.source)&&wt(t.source)})),t=E(t);var i,o,r,a,s,l,u,h,c,p=this._optionBackup,d=(o=e,r=!p,l=[],u=(i=t).baseOption,h=i.timeline,d=i.options,c=i.media,e=!!i.media,t=!!(d||h||u&&u.timeline),u?(s=u).timeline||(s.timeline=h):((t||e)&&(i.options=i.media=null),s=i),e&&et(c)&&Z(c,function(t){t&&t.option&&(t.query?l.push(t):a=a||t)}),f(s),Z(d,f),Z(l,function(t){return f(t.option)}),{baseOption:s,timelineOptions:d||[],mediaDefault:a,mediaList:l});function f(e){Z(o,function(t){t(e,r)})}this._newBaseOption=d.baseOption,p?(d.timelineOptions.length&&(p.timelineOptions=d.timelineOptions),d.mediaList.length&&(p.mediaList=d.mediaList),d.mediaDefault&&(p.mediaDefault=d.mediaDefault)):this._optionBackup=d},ap.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],E(t?e.baseOption:this._newBaseOption)},ap.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;return!n.length||(t=t.getComponent("timeline"))&&(e=E(n[t.getCurrentIndex()])),e},ap.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,o=this._mediaDefault,r=[],a=[];if(!i.length&&!o)return a;for(var s,l,u=0,h=i.length;u<h;u++)!function(t,e,n){var i={width:e,height:n,aspectratio:e/n},o=!0;return Z(t,function(t,e){var n=e.match(rp);n&&n[1]&&n[2]&&(e=n[1],n=n[2].toLowerCase(),n=i[n],t=t,("min"===(e=e)?t<=n:"max"===e?n<=t:n===t)||(o=!1))}),o}(i[u].query,e,n)||r.push(u);return(r=!r.length&&o?[-1]:r).length&&(s=r,l=this._currentMediaIndices,s.join(",")!==l.join(","))&&(a=j(r,function(t){return E((-1===t?o:i[t]).option)})),this._currentMediaIndices=r,a},ap),up=Z,hp=at,cp=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function pp(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=cp.length;n<i;n++){var o=cp[n],r=e.normal,a=e.emphasis;r&&r[o]&&(t[o]=t[o]||{},t[o].normal?V(t[o].normal,r[o]):t[o].normal=r[o],r[o]=null),a&&a[o]&&(t[o]=t[o]||{},t[o].emphasis?V(t[o].emphasis,a[o]):t[o].emphasis=a[o],a[o]=null)}}function dp(t,e,n){var i,o;t&&t[e]&&(t[e].normal||t[e].emphasis)&&(i=t[e].normal,o=t[e].emphasis,i&&(n?(t[e].normal=t[e].emphasis=null,F(t[e],i)):t[e]=i),o&&(t.emphasis=t.emphasis||{},(t.emphasis[e]=o).focus&&(t.emphasis.focus=o.focus),o.blurScope&&(t.emphasis.blurScope=o.blurScope)))}function fp(t){dp(t,"itemStyle"),dp(t,"lineStyle"),dp(t,"areaStyle"),dp(t,"label"),dp(t,"labelLine"),dp(t,"upperLabel"),dp(t,"edgeLabel")}function gp(t,e){var n=hp(t)&&t[e],i=hp(n)&&n.textStyle;if(i)for(var o=0,r=gr.length;o<r;o++){var a=gr[o];i.hasOwnProperty(a)&&(n[a]=i[a])}}function yp(t){t&&(fp(t),gp(t,"label"),t.emphasis&&gp(t.emphasis,"label"))}function mp(t){return et(t)?t:t?[t]:[]}function vp(t){return(et(t)?t[0]:t)||{}}function xp(e,t){up(mp(e.series),function(t){hp(t)&&function(t){if(hp(t)){pp(t),fp(t),gp(t,"label"),gp(t,"upperLabel"),gp(t,"edgeLabel"),t.emphasis&&(gp(t.emphasis,"label"),gp(t.emphasis,"upperLabel"),gp(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(pp(e),yp(e));var n=t.markLine;n&&(pp(n),yp(n));var i=t.markArea;i&&yp(i);var o=t.data;if("graph"===t.type){var o=o||t.nodes,r=t.links||t.edges;if(r&&!lt(r))for(var a=0;a<r.length;a++)yp(r[a]);Z(t.categories,function(t){fp(t)})}if(o&&!lt(o))for(a=0;a<o.length;a++)yp(o[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)yp(s[a]);if((n=t.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)et(l[a])?(yp(l[a][0]),yp(l[a][1])):yp(l[a])}"gauge"===t.type?(gp(t,"axisLabel"),gp(t,"title"),gp(t,"detail")):"treemap"===t.type?(dp(t.breadcrumb,"itemStyle"),Z(t.levels,function(t){fp(t)})):"tree"===t.type&&fp(t.leaves)}}(t)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),up(n,function(t){up(mp(e[t]),function(t){t&&(gp(t,"axisLabel"),gp(t.axisPointer,"label"))})}),up(mp(e.parallel),function(t){t=t&&t.parallelAxisDefault;gp(t,"axisLabel"),gp(t&&t.axisPointer,"label")}),up(mp(e.calendar),function(t){dp(t,"itemStyle"),gp(t,"dayLabel"),gp(t,"monthLabel"),gp(t,"yearLabel")}),up(mp(e.radar),function(t){gp(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)}),up(mp(e.geo),function(t){hp(t)&&(yp(t),up(mp(t.regions),function(t){yp(t)}))}),up(mp(e.timeline),function(t){yp(t),dp(t,"label"),dp(t,"itemStyle"),dp(t,"controlStyle",!0);t=t.data;et(t)&&Z(t,function(t){at(t)&&(dp(t,"label"),dp(t,"itemStyle"))})}),up(mp(e.toolbox),function(t){dp(t,"iconStyle"),up(t.feature,function(t){dp(t,"iconStyle")})}),gp(vp(e.axisPointer),"label"),gp(vp(e.tooltip).axisPointer,"label")}function _p(e){e&&Z(bp,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var bp=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],wp=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Sp=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Mp(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<Sp.length;n++){var i=Sp[n][1],o=Sp[n][0];null!=e[i]&&(e[o]=e[i])}}function Ip(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Tp(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Cp(e,t){xp(e,t),e.series=dr(e.series),Z(e.series,function(t){if(at(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){null!=t.clockWise&&(t.clockwise=t.clockWise),Ip(t.label);var n=t.data;if(n&&!lt(n))for(var i=0;i<n.length;i++)Ip(n[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var o=function(t,e){for(var n=e.split(","),i=t,o=0;o<n.length&&null!=(i=i&&i[n[o]]);o++);return i}(t,"pointer.color");null!=o&&function(t,e,n,i){for(var o,r=e.split(","),a=t,s=0;s<r.length-1;s++)null==a[o=r[s]]&&(a[o]={}),a=a[o];!i&&null!=a[r[s]]||(a[r[s]]=n)}(t,"itemStyle.color",o)}else if("bar"===e){if(Mp(t),Mp(t.backgroundStyle),Mp(t.emphasis),(n=t.data)&&!lt(n))for(i=0;i<n.length;i++)"object"==typeof n[i]&&(Mp(n[i]),Mp(n[i]&&n[i].emphasis))}else"sunburst"===e?((r=t.highlightPolicy)&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=r)),Tp(t),function t(e,n){if(e)for(var i=0;i<e.length;i++)n(e[i]),e[i]&&t(e[i].children,n)}(t.data,Tp)):"graph"===e||"sankey"===e?(r=t)&&null!=r.focusNodeAdjacency&&(r.emphasis=r.emphasis||{},null==r.emphasis.focus&&(r.emphasis.focus="adjacency")):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&F(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),_p(t)}var r}),e.dataRange&&(e.visualMap=e.dataRange),Z(wp,function(t){t=e[t];t&&Z(t=!et(t)?[t]:t,function(t){_p(t)})})}function Dp(v){Z(v,function(p,d){var f=[],g=[NaN,NaN],t=[p.stackResultDimension,p.stackedOverDimension],y=p.data,m=p.isStackedByIndex;y.modify(t,function(t,e,n){var i,o,r=y.get(p.stackedDimension,n);if(isNaN(r))return g;m?o=y.getRawIndex(n):i=y.get(p.stackedByDimension,n);for(var a,s,l=NaN,u=d-1;0<=u;u--){var h=v[u];if(0<=(o=!m?h.data.rawIndexOf(h.stackedByDimension,i):o)){var c=h.data.getByRawIndex(h.stackResultDimension,o);if(0<=r&&0<c||r<=0&&c<0){a=r,s=c,h=void 0,h=Math.max(Zo(a),Zo(s)),s=a+s,r=Ho<h?s:Xo(s,h),l=c;break}}}return f[0]=r,f[1]=l,f})})}var Ap,kp,Lp=function(t){this.data=t.data||(t.sourceFormat===Ic?{}:[]),this.sourceFormat=t.sourceFormat||Cc,this.seriesLayoutBy=t.seriesLayoutBy||Dc,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];null==i.type&&Nc(this,n)===kc.Must&&(i.type="ordinal")}};function Pp(t){return t instanceof Lp}function Op(t,e,n){n=n||Np(t);var i=e.seriesLayoutBy,o=function(t,e,n,i,o){var r,a;if(!t)return{dimensionsDefine:zp(o),startIndex:a,dimensionsDetectedCount:r};{var s;e===Sc?(s=t,"auto"===i||null==i?Ep(function(t){null!=t&&"-"!==t&&(it(t)?null==a&&(a=1):a=0)},n,s,10):a=rt(i)?i:i?1:0,o||1!==a||(o=[],Ep(function(t,e){o[e]=null!=t?t+"":""},n,s,1/0)),r=o?o.length:n===Ac?s.length:s[0]?s[0].length:null):e===Mc?o=o||function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););if(e){var i=[];return Z(e,function(t,e){i.push(e)}),i}}(t):e===Ic?o||(o=[],Z(t,function(t,e){o.push(e)})):e===wc&&(t=yr(t[0]),r=et(t)&&t.length||1)}return{startIndex:a,dimensionsDefine:zp(o),dimensionsDetectedCount:r}}(t,n,i,e.sourceHeader,e.dimensions);return new Lp({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:E(e)})}function Rp(t){return new Lp({data:t,sourceFormat:lt(t)?Tc:wc})}function Np(t){var e=Cc;if(lt(t))e=Tc;else if(et(t)){0===t.length&&(e=Sc);for(var n=0,i=t.length;n<i;n++){var o=t[n];if(null!=o){if(et(o)){e=Sc;break}if(at(o)){e=Mc;break}}}}else if(at(t))for(var r in t)if(At(t,r)&&Y(t[r])){e=Ic;break}return e}function zp(t){if(t){var i=Tt();return j(t,function(t,e){var n={name:(t=at(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==n.name)return n;n.name+="",null==n.displayName&&(n.displayName=n.name);t=i.get(n.name);return t?n.name+="-"+t.count++:i.set(n.name,{count:1}),n})}}function Ep(t,e,n,i){if(e===Ac)for(var o=0;o<n.length&&o<i;o++)t(n[o]?n[o][0]:null,o);else for(var r=n[0]||[],o=0;o<r.length&&o<i;o++)t(r[o],o)}function Vp(t){t=t.sourceFormat;return t===Mc||t===Ic}function Bp(t,e,n,i){return t[i]}var Gp=(Hp.prototype.getSource=function(){return this._source},Hp.prototype.count=function(){return 0},Hp.prototype.getItem=function(t,e){},Hp.prototype.appendData=function(t){},Hp.prototype.clean=function(){},Hp.protoInitialize=((x=Hp.prototype).pure=!1,void(x.persistent=!0)),Hp.internalField=function(){var t;kp=function(t,e,n){var i=n.sourceFormat,o=n.seriesLayoutBy,r=n.startIndex,a=n.dimensionsDefine;G(t,Ap[Kp(i,o)]),i===Tc?(t.getItem=s,t.count=u,t.fillStorage=l):(n=Wp(i,o),t.getItem=Q(n,null,e,r,a),o=Yp(i,o),t.count=Q(o,null,e,r,a))};var s=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,o=i*t,r=0;r<i;r++)e[r]=n[o+r];return e},l=function(t,e,n,i){for(var o=this._data,r=this._dimSize,a=0;a<r;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],h=e-t,c=n[a],p=0;p<h;p++){var d=o[p*r+a];(c[t+p]=d)<l&&(l=d),u<d&&(u=d)}s[0]=l,s[1]=u}},u=function(){return this._data?this._data.length/this._dimSize:0};function e(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={})[Sc+"_"+Dc]={pure:!0,appendData:e},t[Sc+"_"+Ac]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Mc]={pure:!0,appendData:e},t[Ic]={pure:!0,appendData:function(t){var o=this._data;Z(t,function(t,e){for(var n=o[e]||(o[e]=[]),i=0;i<(t||[]).length;i++)n.push(t[i])})}},t[wc]={appendData:e},t[Tc]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},Ap=t}(),Hp),Fp=((_o={})[Sc+"_"+Dc]=function(t,e,n,i){return t[i+e]},_o[Sc+"_"+Ac]=function(t,e,n,i,o){i+=e;for(var r=o||[],a=t,s=0;s<a.length;s++){var l=a[s];r[s]=l?l[i]:null}return r},_o[Mc]=Bp,_o[Ic]=function(t,e,n,i,o){for(var r=o||[],a=0;a<n.length;a++){var s=t[n[a].name];r[a]=s?s[i]:null}return r},_o[wc]=Bp,_o);function Hp(t,e){var n=Pp(t)?t:Rp(t);this._source=n;t=this._data=n.data;n.sourceFormat===Tc&&(this._offset=0,this._dimSize=e,this._data=t),kp(this,t,n)}function Wp(t,e){return Fp[Kp(t,e)]}function Up(t,e,n){return t.length}var Xp=((To={})[Sc+"_"+Dc]=function(t,e,n){return Math.max(0,t.length-e)},To[Sc+"_"+Ac]=function(t,e,n){t=t[0];return t?Math.max(0,t.length-e):0},To[Mc]=Up,To[Ic]=function(t,e,n){n=t[n[0].name];return n?n.length:0},To[wc]=Up,To);function Yp(t,e){return Xp[Kp(t,e)]}function Zp(t,e,n){return t[e]}var jp=((Zr={})[Sc]=Zp,Zr[Mc]=function(t,e,n){return t[n]},Zr[Ic]=Zp,Zr[wc]=function(t,e,n){t=yr(t);return t instanceof Array?t[e]:t},Zr[Tc]=Zp,Zr);function qp(t){return jp[t]}function Kp(t,e){return t===Sc?t+"_"+e:t}function $p(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var o=t.getStore(),e=o.getSource().sourceFormat;if(null!=n){var n=t.getDimensionIndex(n),r=o.getDimensionProperty(n);return qp(e)(i,n,r)}r=i;return r=e===wc?yr(i):r}}}var Jp=/\{@(.+?)\}/g,e=(Qp.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),o=n.getRawIndex(t),r=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,t=this.mainType,s="series"===t,n=n.userOutput&&n.userOutput.get();return{componentType:t,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:s?this.subType:null,seriesIndex:this.seriesIndex,seriesId:s?this.id:null,seriesName:s?this.name:null,name:r,dataIndex:o,data:a,dataType:e,value:i,color:l,borderColor:u,dimensionNames:n?n.fullDimensions:null,encode:n?n.encode:null,$vars:["seriesName","name","value"]}},Qp.prototype.getFormattedLabel=function(i,t,e,n,o,r){t=t||"normal";var a=this.getData(e),e=this.getDataParams(i,e);return r&&(e.value=r.interpolatedValue),null!=n&&et(e.value)&&(e.value=e.value[n]),"function"==typeof(o=o||a.getItemModel(i).get("normal"===t?["label","formatter"]:[t,"label","formatter"]))?(e.status=t,e.dimensionIndex=n,o(e)):"string"==typeof o?Zh(o,e).replace(Jp,function(t,e){var n=e.length,e=e;"["===e.charAt(0)&&"]"===e.charAt(n-1)&&(e=+e.slice(1,n-1));n=$p(a,i,e);return r&&et(r.interpolatedValue)&&(0<=(e=a.getDimensionIndex(e))&&(n=r.interpolatedValue[e])),null!=n?n+"":""}):void 0},Qp.prototype.getRawValue=function(t,e){return $p(this.getData(e),t)},Qp.prototype.formatTooltip=function(t,e,n){},Qp);function Qp(){}function td(t){var e,n;return at(t)?t.type&&(n=t):e=t,{markupText:e,markupFragment:n}}function ed(t){return new ld(t)}var nd,id,od,rd,ad,sd,ld=(pd.prototype.perform=function(t){var e,n=this._upstream,i=t&&t.skip;this._dirty&&n&&((r=this.context).data=r.outputData=n.context.outputData),this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var o=l(this._modBy),r=this._modDataCount||0,a=l(t&&t.modBy),s=t&&t.modDataCount||0;function l(t){return t=!(1<=t)?1:t}o===a&&r===s||(e="reset"),!this._dirty&&"reset"!==e||(this._dirty=!1,d=this._doReset(i)),this._modBy=a,this._modDataCount=s;t=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var u=this._dueIndex,h=Math.min(null!=t?this._dueIndex+t:1/0,this._dueEnd);if(!i&&(d||u<h)){var c=this._progress;if(et(c))for(var p=0;p<c.length;p++)this._doProgress(c[p],u,h,a,s);else this._doProgress(c,u,h,a,s)}this._dueIndex=h;var d=null!=this._settedOutputEnd?this._settedOutputEnd:h;this._outputDueEnd=d}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},pd.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},pd.prototype._doProgress=function(t,e,n,i,o){ud.reset(e,n,i,o),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:ud.next},this.context)},pd.prototype._doReset=function(t){var e;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((n=this._reset(this.context))&&n.progress&&(e=n.forceFirstProgress,n=n.progress),et(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),e},pd.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},pd.prototype.pipe=function(t){this._downstream===t&&!this._dirty||((this._downstream=t)._upstream=this,t.dirty())},pd.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},pd.prototype.getUpstream=function(){return this._upstream},pd.prototype.getDownstream=function(){return this._downstream},pd.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},pd),ud=sd={reset:function(t,e,n,i){id=t,nd=e,od=n,rd=i,ad=Math.ceil(rd/od),sd.next=1<od&&0<rd?cd:hd}};function hd(){return id<nd?id++:null}function cd(){var t=id%ad*od+Math.ceil(id/ad),t=nd<=id?null:t<rd?t:id;return id++,t}function pd(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}function dd(t,e){e=e&&e.type;return"ordinal"===e?t:null==(t="time"===e&&"number"!=typeof t&&null!=t&&"-"!==t?+er(t):t)||""===t?NaN:+t}var fd=Tt({number:function(t){return parseFloat(t)},time:function(t){return+er(t)},trim:function(t){return"string"==typeof t?_t(t):t}});function gd(t){return fd.get(t)}var yd={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return e<t},gte:function(t,e){return e<=t}},md=(wd.prototype.evaluate=function(t){return"number"==typeof t?this._opFn(t,this._rvalFloat):this._opFn(sr(t),this._rvalFloat)},wd),vd=(bd.prototype.evaluate=function(t,e){var n=typeof t,i=typeof e,o="number"==n?t:sr(t),r="number"==i?e:sr(e),a=isNaN(o),s=isNaN(r);return a&&(o=this._incomparable),s&&(r=this._incomparable),a&&s&&(i="string"==i,(n="string"==n)&&(o=i?t:0),i&&(r=n?e:0)),o<r?this._resultLT:r<o?-this._resultLT:0},bd),xd=(_d.prototype.evaluate=function(t){var e,n=t===this._rval;return n||((e=typeof t)===this._rvalTypeof||"number"!=e&&"number"!==this._rvalTypeof||(n=sr(t)===this._rvalFloat)),this._isEQ?n:!n},_d);function _d(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=sr(e)}function bd(t,e){t="desc"===t;this._resultLT=t?1:-1,this._incomparable="min"===(e=null==e?t?"min":"max":e)?-1/0:1/0}function wd(t,e){"number"!=typeof e&&Zc(""),this._opFn=yd[t],this._rvalFloat=sr(e)}var Sd=(Md.prototype.getRawData=function(){throw new Error("not supported")},Md.prototype.getRawDataItem=function(t){throw new Error("not supported")},Md.prototype.cloneRawData=function(){},Md.prototype.getDimensionInfo=function(t){},Md.prototype.cloneAllDimensionInfo=function(){},Md.prototype.count=function(){},Md.prototype.retrieveValue=function(t,e){},Md.prototype.retrieveValueFromItem=function(t,e){},Md.prototype.convertValue=dd,Md);function Md(){}function Id(t){return Ld(t.sourceFormat)||Zc(""),t.data}function Td(t){var e=t.sourceFormat,n=t.data;if(Ld(e)||Zc(""),e===Sc){for(var i=[],o=0,r=n.length;o<r;o++)i.push(n[o].slice());return i}if(e===Mc){for(i=[],o=0,r=n.length;o<r;o++)i.push(G({},n[o]));return i}}function Cd(t,e,n){if(null!=n)return"number"==typeof n||!isNaN(n)&&!At(e,n)?t[n]:At(e,n)?e[n]:void 0}function Dd(t){return E(t)}var Ad=Tt();function kd(t,e){var n=dr(t),t=n.length;t||Zc("");for(var i=0,o=t;i<o;i++)e=function(t,i){i.length||Zc(""),at(t)||Zc("");var e=t.type,n=Ad.get(e);n||Zc("");e=j(i,function(t){return function(t,e){var n=new Sd,i=t.data,o=n.sourceFormat=t.sourceFormat,r=t.startIndex;t.seriesLayoutBy!==Dc&&Zc("");var a=[],s={},l=t.dimensionsDefine;if(l)Z(l,function(t,e){var n=t.name,t={index:e,name:n,displayName:t.displayName};a.push(t),null!=n&&(At(s,n)&&Zc(""),s[n]=t)});else for(var u=0;u<t.dimensionsDetectedCount;u++)a.push({index:u});var h=Wp(o,Dc);e.__isBuiltIn&&(n.getRawDataItem=function(t){return h(i,r,a,t)},n.getRawData=Q(Id,null,t)),n.cloneRawData=Q(Td,null,t),e=Yp(o,Dc),n.count=Q(e,null,i,r,a);var c=qp(o);n.retrieveValue=function(t,e){t=h(i,r,a,t);return p(t,e)};var p=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=a[e];return n?c(t,e,n.name):void 0}};return n.getDimensionInfo=Q(Cd,null,a,s),n.cloneAllDimensionInfo=Q(Dd,null,a),n}(t,n)});return j(dr(n.transform({upstream:e[0],upstreamList:e,config:E(t.config)})),function(t,e){at(t)||Zc(""),t.data||Zc(""),Ld(Np(t.data))||Zc("");var n=i[0],n=n&&0===e&&!t.dimensions?((e=n.startIndex)&&(t.data=n.data.slice(0,e).concat(t.data)),{seriesLayoutBy:Dc,sourceHeader:e,dimensions:n.metaRawOption.dimensions}):{seriesLayoutBy:Dc,sourceHeader:0,dimensions:t.dimensions};return Op(t.data,n,null)})}(n[i],e),i!==o-1&&(e.length=Math.max(e.length,1));return e}function Ld(t){return t===Sc||t===Mc}var Pd,qu="undefined",Od=typeof Uint32Array==qu?Array:Uint32Array,Rd=typeof Uint16Array==qu?Array:Uint16Array,Nd=typeof Int32Array==qu?Array:Int32Array,A=typeof Float64Array==qu?Array:Float64Array,zd={float:A,int:Nd,ordinal:Array,number:Array,time:A};function Ed(t){return 65535<t?Od:Rd}function Vd(){return[1/0,-1/0]}function Bd(t,e,n,i,o){n=zd[n||"float"];if(o){var r=t[e],a=r&&r.length;if(a!==i){for(var s=new n(i),l=0;l<a;l++)s[l]=r[l];t[e]=s}}else t[e]=new n(i)}var Gd=(Wd.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),o=this.defaultDimValueGetter=Pd[i.sourceFormat];this._dimValueGetter=n||o,this._rawExtent=[],Vp(i),this._dimensions=j(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},Wd.prototype.getProvider=function(){return this._provider},Wd.prototype.getSource=function(){return this._provider.getSource()},Wd.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,o=n.get(t);if(null!=o){if(i[o].type===e)return o}else o=i.length;return i[o]={type:e},n.set(t,o),this._chunks[o]=new zd[e||"float"](this._rawCount),this._rawExtent[o]=Vd(),o},Wd.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],o=this._rawExtent,r=i.ordinalOffset||0,a=n.length;0===r&&(o[t]=Vd());for(var s=o[t],l=r;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1])}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},Wd.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},Wd.prototype.getDimensionProperty=function(t){t=this._dimensions[t];return t&&t.property},Wd.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);t=e.count();return e.persistent||(t+=n),n<t&&this._initDataFromProvider(n,t,!0),[n,t]},Wd.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,o=i.length,r=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<o;l++){var u=i[l];Bd(n,l,u.type,s,!0)}for(var h=[],c=a;c<s;c++)for(var p=c-a,d=0;d<o;d++){var u=i[d],f=Pd.arrayRows.call(this,t[p]||h,u.property,p,d);n[d][c]=f;var g=r[d];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return{start:a,end:this._rawCount=this._count=s}},Wd.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,o=this._chunks,r=this._dimensions,a=r.length,s=this._rawExtent,l=j(r,function(t){return t.property}),u=0;u<a;u++){var h=r[u];s[u]||(s[u]=Vd()),Bd(o,u,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,o,s);else for(var c=[],p=t;p<e;p++)for(var c=i.getItem(p,c),d=0;d<a;d++){var f=o[d],g=this._dimValueGetter(c,l[d],p,d);f[p]=g;f=s[d];g<f[0]&&(f[0]=g),g>f[1]&&(f[1]=g)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},Wd.prototype.count=function(){return this._count},Wd.prototype.get=function(t,e){if(!(0<=e&&e<this._count))return NaN;t=this._chunks[t];return t?t[this.getRawIndex(e)]:NaN},Wd.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var o=0;o<this._dimensions.length;o++)i.push(o)}else i=t;for(var o=0,r=i.length;o<r;o++)n.push(this.get(i[o],e));return n},Wd.prototype.getByRawIndex=function(t,e){if(!(0<=e&&e<this._rawCount))return NaN;t=this._chunks[t];return t?t[e]:NaN},Wd.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,i=this.count();n<i;n++){var o=this.get(t,n);isNaN(o)||(e+=o)}return e},Wd.prototype.getMedian=function(t){var e=[];this.each([t],function(t){isNaN(t)||e.push(t)});var n=e.sort(function(t,e){return t-e}),t=this.count();return 0===t?0:t%2==1?n[(t-1)/2]:(n[t/2]+n[t/2-1])/2},Wd.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,o=this._count-1;i<=o;){var r=(i+o)/2|0;if(e[r]<t)i=1+r;else{if(!(e[r]>t))return r;o=r-1}}return-1},Wd.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],o=[];if(!i)return o;null==n&&(n=1/0);for(var r=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var h=e-i[this.getRawIndex(l)],c=Math.abs(h);c<=n&&((c<r||c===r&&0<=h&&a<0)&&(r=c,a=h,s=0),h===a&&(o[s++]=l))}return o.length=s,o},Wd.prototype.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array)for(var i=new e(n),o=0;o<n;o++)i[o]=t[o];else i=new e(t.buffer,0,n)}else for(i=new(e=Ed(this._rawCount))(this.count()),o=0;o<i.length;o++)i[o]=o;return i},Wd.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),o=new(Ed(n._rawCount))(i),r=[],a=t.length,s=0,l=t[0],u=n._chunks,h=0;h<i;h++){var c=void 0,p=n.getRawIndex(h);if(0===a)c=e(h);else if(1===a)c=e(u[l][p],h);else{for(var d=0;d<a;d++)r[d]=u[t[d]][p];r[d]=h,c=e.apply(null,r)}c&&(o[s++]=p)}return s<i&&(n._indices=o),n._count=s,n._extent=[],n._updateGetRawIdx(),n},Wd.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=J(t),o=i.length;if(!o)return this;var r=e.count(),a=new(Ed(e._rawCount))(r),s=0,l=i[0],u=t[l][0],h=t[l][1],c=e._chunks,l=!1;if(!e._indices){var p=0;if(1===o){for(var d=c[i[0]],f=0;f<n;f++){var g=d[f];(u<=g&&g<=h||isNaN(g))&&(a[s++]=p),p++}l=!0}else if(2===o){for(var d=c[i[0]],y=c[i[1]],m=t[i[1]][0],v=t[i[1]][1],f=0;f<n;f++){var g=d[f],x=y[f];(u<=g&&g<=h||isNaN(g))&&(m<=x&&x<=v||isNaN(x))&&(a[s++]=p),p++}l=!0}}if(!l)if(1===o)for(f=0;f<r;f++){var _=e.getRawIndex(f);(u<=(g=c[i[0]][_])&&g<=h||isNaN(g))&&(a[s++]=_)}else for(f=0;f<r;f++){for(var b=!0,w=(_=e.getRawIndex(f),0);w<o;w++){var S=i[w];((g=c[S][_])<t[S][0]||g>t[S][1])&&(b=!1)}b&&(a[s++]=e.getRawIndex(f))}return s<r&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},Wd.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},Wd.prototype.modify=function(t,e){this._updateDims(this,t,e)},Wd.prototype._updateDims=function(t,e,n){for(var i=t._chunks,o=[],r=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=Vd();for(var h=0;h<a;h++){for(var c=t.getRawIndex(h),p=0;p<r;p++)s[p]=i[e[p]][c];s[r]=h;var d=n&&n.apply(null,s);if(null!=d)for("object"!=typeof d&&(o[0]=d,d=o),u=0;u<d.length;u++){var f=e[u],g=d[u],y=l[f],f=i[f];f&&(f[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}},Wd.prototype.lttbDownSample=function(t,e){var n,i=this.clone([t],!0),o=i._chunks[t],r=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),u=new(Ed(this._rawCount))(Math.ceil(r/s)+2);u[a++]=l;for(var h=1;h<r-1;h+=s){for(var c=Math.min(h+s,r-1),p=Math.min(h+2*s,r),d=(p+c)/2,f=0,g=c;g<p;g++){var y=this.getRawIndex(g),m=o[y];isNaN(m)||(f+=m)}f/=p-c;for(var c=h,v=Math.min(h+s,r),x=h-1,_=o[l],b=-1,w=c,g=c;g<v;g++)m=o[y=this.getRawIndex(g)],isNaN(m)||b<(n=Math.abs((x-d)*(m-_)-(x-g)*(f-_)))&&(b=n,w=y);l=u[a++]=w}return u[a++]=this.getRawIndex(r-1),i._count=a,i._indices=u,i.getRawIndex=this._getRawIdx,i},Wd.prototype.downSample=function(t,e,n,i){for(var o=this.clone([t],!0),r=o._chunks,a=[],s=Math.floor(1/e),l=r[t],u=this.count(),h=o._rawExtent[t]=Vd(),c=new(Ed(this._rawCount))(Math.ceil(u/s)),p=0,d=0;d<u;d+=s){u-d<s&&(a.length=s=u-d);for(var f=0;f<s;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var y=n(a),m=this.getRawIndex(Math.min(d+i(a,y)||0,u-1));(l[m]=y)<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),c[p++]=m}return o._count=p,o._indices=c,o._updateGetRawIdx(),o},Wd.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,o=0,r=this.count();o<r;o++){var a=this.getRawIndex(o);switch(n){case 0:e(o);break;case 1:e(i[t[0]][a],o);break;case 2:e(i[t[0]][a],i[t[1]][a],o);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=o,e.apply(null,l)}}},Wd.prototype.getDataExtent=function(t){var e=this._chunks[t],n=Vd();if(!e)return n;var i=this.count();if(!this._indices)return this._rawExtent[t].slice();if(o=this._extent[t])return o.slice();for(var o,r=(o=n)[0],a=o[1],s=0;s<i;s++){var l=e[this.getRawIndex(s)];l<r&&(r=l),a<l&&(a=l)}return this._extent[t]=o=[r,a]},Wd.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,o=0;o<i.length;o++)n.push(i[o][e]);return n},Wd.prototype.clone=function(t,e){var n,i,o=new Wd,r=this._chunks,a=t&&q(t,function(t,e){return t[e]=!0,t},{});if(a)for(var s=0;s<r.length;s++)o._chunks[s]=a[s]?(n=r[s],i=void 0,(i=n.constructor)===Array?n.slice():new i(n)):r[s];else o._chunks=r;return this._copyCommonProps(o),e||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},Wd.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=E(this._extent),t._rawExtent=E(this._rawExtent)},Wd.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array)for(var n=this._indices.length,e=new t(n),i=0;i<n;i++)e[i]=this._indices[i];else e=new t(this._indices);return e}return null},Wd.prototype._getRawIdxIdentity=function(t){return t},Wd.prototype._getRawIdx=function(t){return t<this._count&&0<=t?this._indices[t]:-1},Wd.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},Wd.internalField=void(Pd={arrayRows:Ud,objectRows:function(t,e,n,i){return dd(t[e],this._dimensions[i])},keyedColumns:Ud,original:function(t,e,n,i){t=t&&(null==t.value?t:t.value);return dd(t instanceof Array?t[i]:t,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}),Wd),Fd=(Hd.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},Hd.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,9e10<this._versionSignBase&&(this._versionSignBase=0)},Hd.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},Hd.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},Hd.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n,i,o,r,a,s=this._sourceHost,l=this._getUpstreamSourceManagers(),u=!!l.length;Yd(s)?(i=s,o=a=t=void 0,e=u?((n=l[0]).prepareSource(),t=(o=n.getSource()).data,a=o.sourceFormat,[n._getVersionSign()]):(a=lt(t=i.get("data",!0))?Tc:wc,[]),r=this._getSourceMetaRawOption()||{},n=o&&o.metaRawOption||{},i=gt(r.seriesLayoutBy,n.seriesLayoutBy)||null,o=gt(r.sourceHeader,n.sourceHeader)||null,r=gt(r.dimensions,n.dimensions),a=i!==n.seriesLayoutBy||!!o!=!!n.sourceHeader||r?[Op(t,{seriesLayoutBy:i,sourceHeader:o,dimensions:r},a)]:[]):(s=s,e=u?(a=(l=this._applyTransform(l)).sourceList,l.upstreamSignList):(a=[Op(s.get("source",!0),this._getSourceMetaRawOption(),null)],[])),this._setLocalSource(a,e)},Hd.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),o=n.get("fromTransformResult",!0);null==o||1!==t.length&&Zd("");var r=[],a=[];return Z(t,function(t){t.prepareSource();var e=t.getSource(o||0);null==o||e||Zd(""),r.push(e),a.push(t._getVersionSign())}),i?e=kd(i,r,n.componentIndex):null!=o&&(e=[(n=r[0],new Lp({data:n.data,sourceFormat:n.sourceFormat,seriesLayoutBy:n.seriesLayoutBy,dimensionsDefine:E(n.dimensionsDefine),startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount}))]),{sourceList:e,upstreamSignList:a}},Hd.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},Hd.prototype.getSource=function(t){var e=this._sourceList[t=t||0];if(e)return e;e=this._getUpstreamSourceManagers();return e[0]&&e[0].getSource(t)},Hd.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},Hd.prototype._innerGetDataStore=function(t,e,n){var i=this._storeList,o=i[0],r=(o=o||(i[0]={}))[n];return r||(i=this._getUpstreamSourceManagers()[0],Yd(this._sourceHost)&&i?r=i._innerGetDataStore(t,e,n):(r=new Gd).initData(new Gp(e,t.length),t),o[n]=r),r},Hd.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Yd(t)){var e=Rc(t);return e?[e.getSourceManager()]:[]}return j((t=t).get("transform",!0)||t.get("fromTransformResult",!0)?Lr(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Ar).models:[],function(t){return t.getSourceManager()})},Hd.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;return Yd(i)?(t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(t=(i=i).get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)),{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},Hd);function Hd(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}function Wd(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Tt()}function Ud(t,e,n,i){return dd(t[i],this._dimensions[i])}function Xd(t){t.option.transform&&wt(t.option.transform)}function Yd(t){return"series"===t.mainType}function Zd(t){throw new Error(t)}var jd="line-height:1";function qd(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,o=t.fontWeight||"400",r=t.color||"#464646",a=t.fontSize||14,t=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+Wh(i+"")+"px;color:"+Wh(n)+";font-weight:"+Wh(o+""),valueStyle:"font-size:"+Wh(a+"")+"px;color:"+Wh(r)+";font-weight:"+Wh(t+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:o},valueStyle:{fontSize:a,fill:r,fontWeight:t}}}var Kd=[0,10,20,30],$d=["","\n","\n\n","\n\n\n"];function Jd(t,e){return e.type=t,e}function Qd(t){return At(tf,t.type)&&tf[t.type]}var tf={section:{planLayout:function(t){var e=t.blocks.length,n=1<e||0<e&&!t.noHeader,i=0;Z(t.blocks,function(t){Qd(t).planLayout(t);var e=t.__gapLevelBetweenSubBlocks;i<=e&&(i=e+(!n||e&&("section"!==t.type||t.noHeader)?0:1))}),t.__gapLevelBetweenSubBlocks=i},build:function(t,e,n,i){var o=e.noHeader,r=nf(e),a=function(n,t,e,i){var o=[],r=t.blocks||[];xt(!r||et(r)),r=r||[];var a=n.orderMode;{var s,l;t.sortBlocks&&a&&(r=r.slice(),At(s={valueAsc:"asc",valueDesc:"desc"},a)?(l=new vd(s[a],null),r.sort(function(t,e){return l.evaluate(t.sortParam,e.sortParam)})):"seriesDesc"===a&&r.reverse())}var u=nf(t);if(Z(r,function(t,e){e=Qd(t).build(n,t,0<e?u.html:0,i);null!=e&&o.push(e)}),o.length)return"richText"===n.renderMode?o.join(u.richText):of(o.join(""),e)}(t,e,o?n:r.html,i);if(o)return a;e=Uh(e.header,"ordinal",t.useUTC),i=qd(i,t.renderMode).nameStyle;return"richText"===t.renderMode?rf(t,e,i)+r.richText+a:of('<div style="'+i+";"+jd+';">'+Wh(e)+"</div>"+a,n)}},nameValue:{planLayout:function(t){t.__gapLevelBetweenSubBlocks=0},build:function(t,e,n,i){var o=t.renderMode,r=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=e.value,h=t.useUTC;if(!r||!a){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",o),p=r?"":Uh(l,"ordinal",h),d=e.valueType,f=a?[]:et(u)?j(u,function(t,e){return Uh(t,et(d)?d[e]:d,h)}):[Uh(u,et(d)?d[0]:d,h)],l=!s||!r,e=!s&&r,u=qd(i,o),i=u.nameStyle,u=u.valueStyle;return"richText"===o?(s?"":c)+(r?"":rf(t,p,i))+(a?"":function(t,e,n,i,o){o=[o],i=i?10:20;return n&&o.push({padding:[0,0,0,i],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(e.join(" "),o)}(t,f,l,e,u)):of((s?"":c)+(r?"":'<span style="'+i+";"+(!s?"margin-left:2px":"")+'">'+Wh(p)+"</span>")+(a?"":function(t,e,n,i){n=n?"10px":"20px";return'<span style="'+(e?"float:right;margin-left:"+n:"")+";"+i+'">'+j(t,Wh).join(" ")+"</span>"}(f,l,e,u)),n)}}}};function ef(t,e,n,i,o,r){if(t){var a=Qd(t);return a.planLayout(t),a.build({useUTC:o,renderMode:n,orderMode:i,markupStyleCreator:e},t,0,r)}}function nf(t){t=t.__gapLevelBetweenSubBlocks;return{html:Kd[t],richText:$d[t]}}function of(t,e){return'<div style="'+("margin: "+e+"px 0 0")+";"+jd+';">'+t+'<div style="clear:both"></div></div>'}function rf(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function af(t,e){return $h(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function sf(t,e){t=t.get("padding");return null!=t?t:"richText"===e?[8,10]:10}var lf=(uf.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},uf.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,n=jh({color:e,type:t,renderMode:n,markerId:i});return it(n)?n:(this.richTextStyles[i]=n.style,n.content)},uf.prototype.wrapRichTextStyle=function(t,e){var n={};et(e)?Z(e,function(t){return G(n,t)}):G(n,e);e=this._generateStyleName();return this.richTextStyles[e]=n,"{"+e+"|"+t+"}"},uf);function uf(){this.richTextStyles={},this._nextStyleNameId=ur()}function hf(t){var e,n,i,o,r,a,s,l,u,h,c,p=t.series,d=t.dataIndex,f=t.multipleSeries,g=p.getData(),y=g.mapDimensionsAll("defaultedTooltip"),m=y.length,v=p.getRawValue(d),x=et(v),t=af(p,d);function _(t,e){e=s.getDimensionInfo(e);e&&!1!==e.otherDims.tooltip&&(l?c.push(Jd("nameValue",{markerType:"subItem",markerColor:a,name:e.displayName,value:t,valueType:e.type})):(u.push(t),h.push(e.type)))}1<m||x&&!m?(e=(n=(i=v,o=d,r=y,a=t,s=p.getData(),l=q(i,function(t,e,n){n=s.getDimensionInfo(n);return t||n&&!1!==n.tooltip&&null!=n.displayName},!1),u=[],h=[],c=[],r.length?Z(r,function(t){_($p(s,o,t),t)}):Z(i,_),{inlineValues:u,inlineValueTypes:h,blocks:c})).inlineValueTypes,r=n.blocks,n=(i=n.inlineValues)[0]):m?(m=g.getDimensionInfo(y[0]),n=i=$p(g,d,y[0]),e=m.type):n=i=x?v[0]:v;v=br(p),p=v&&p.name||"",d=g.getName(d),d=f?p:d;return Jd("section",{header:p,noHeader:f||!v,sortParam:n,blocks:[Jd("nameValue",{markerType:"item",markerColor:t,name:d,noName:!_t(d),value:i,valueType:e})].concat(r||[])})}var cf=Ir();function pf(t,e){return t.getName(e)||t.getId(e)}var df,ff="__universalTransitionEnabled",_i=(y(gf,df=xc),gf.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=ed({count:mf,reset:vf}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(cf(this).sourceManager=new Fd(this)).prepareSource();n=this.getInitialData(t,n);_f(n,this),this.dataTask.context.data=n,cf(this).dataBeforeProcessed=n,yf(this),this._initSelectedMapFromData(n)},gf.prototype.mergeDefaultAndTheme=function(t,e){var n=ac(this),i=n?lc(t):{},o=this.subType;xc.hasClass(o),V(t,e.getTheme().get(this.subType)),V(t,this.getDefaultOption()),fr(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&sc(t,i,n)},gf.prototype.mergeOption=function(t,e){t=V(this.option,t,!0),this.fillDataTextStyle(t.data);var n=ac(this);n&&sc(this.option,t,n);n=cf(this).sourceManager;n.dirty(),n.prepareSource();e=this.getInitialData(t,e);_f(e,this),this.dataTask.dirty(),this.dataTask.context.data=e,cf(this).dataBeforeProcessed=e,yf(this),this._initSelectedMapFromData(e)},gf.prototype.fillDataTextStyle=function(t){if(t&&!lt(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&fr(t[n],"label",e)},gf.prototype.getInitialData=function(t,e){},gf.prototype.appendData=function(t){this.getRawData().appendData(t.data)},gf.prototype.getData=function(t){var e=wf(this);if(e){e=e.context.data;return null==t?e:e.getLinkedData(t)}return cf(this).data},gf.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},gf.prototype.setData=function(t){var e,n=wf(this);n&&((e=n.context).outputData=t,n!==this.dataTask&&(e.data=t)),cf(this).data=t},gf.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return Tt(t)},gf.prototype.getSourceManager=function(){return cf(this).sourceManager},gf.prototype.getSource=function(){return this.getSourceManager().getSource()},gf.prototype.getRawData=function(){return cf(this).dataBeforeProcessed},gf.prototype.getColorBy=function(){return this.get("colorBy")||"series"},gf.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},gf.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},gf.prototype.formatTooltip=function(t,e,n){return hf({series:this,dataIndex:t,multipleSeries:e})},gf.prototype.isAnimationEnabled=function(){if(w.node)return!1;var t=this.getShallow("animation");return!!(t=t&&this.getData().count()>this.getShallow("animationThreshold")?!1:t)},gf.prototype.restoreData=function(){this.dataTask.dirty()},gf.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return Wc.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},gf.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},gf.prototype.getProgressive=function(){return this.get("progressive")},gf.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},gf.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},gf.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n)for(var i=this.getData(e),o=0;o<t.length;o++){var r=pf(i,t[o]);n[r]=!1,this._selectedDataIndicesMap[r]=-1}},gf.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},gf.prototype.getSelectedDataIndices=function(){for(var t=this._selectedDataIndicesMap,e=J(t),n=[],i=0;i<e.length;i++){var o=t[e[i]];0<=o&&n.push(o)}return n},gf.prototype.isSelected=function(t,e){var n=this.option.selectedMap;return n&&n[pf(this.getData(e),t)]||!1},gf.prototype.isUniversalTransitionEnabled=function(){if(this[ff])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},gf.prototype._innerSelect=function(t,e){var n,i=this.option.selectedMode,o=e.length;if(i&&o)if("multiple"===i)for(var r=this.option.selectedMap||(this.option.selectedMap={}),a=0;a<o;a++){var s=e[a],l=pf(t,s);r[l]=!0,this._selectedDataIndicesMap[l]=t.getRawIndex(s)}else"single"!==i&&!0!==i||(l=pf(t,n=e[o-1]),this.option.selectedMap=((i={})[l]=!0,i),this._selectedDataIndicesMap=((i={})[l]=t.getRawIndex(n),i))},gf.prototype._initSelectedMapFromData=function(n){var i;this.option.selectedMap||(i=[],n.hasItemOption&&n.each(function(t){var e=n.getRawDataItem(t);e&&e.selected&&i.push(t)}),0<i.length&&this._innerSelect(n,i))},gf.registerClass=function(t){return xc.registerClass(t)},gf.protoInitialize=((k=gf.prototype).type="series.__base__",k.seriesIndex=0,k.ignoreStyleOnData=!1,k.hasSymbolVisual=!1,k.defaultSymbol="circle",k.visualStyleAccessPath="itemStyle",void(k.visualDrawType="fill")),gf);function gf(){var t=null!==df&&df.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}function yf(t){var e,n,i=t.name;br(t)||(t.name=(t=(e=(t=t).getRawData()).mapDimensionsAll("seriesName"),n=[],Z(t,function(t){t=e.getDimensionInfo(t);t.displayName&&n.push(t.displayName)}),n.join(" ")||i))}function mf(t){return t.model.getRawData().count()}function vf(t){t=t.model;return t.setData(t.getRawData().cloneShallow()),xf}function xf(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function _f(e,n){Z(Ct(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(t){e.wrapMethod(t,tt(bf,n))})}function bf(t,e){t=wf(t);return t&&t.setOutputEnd((e||this).count()),e}function wf(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){e=n.currentTask;return!e||(n=e.agentStubMap)&&(e=n.get(t.uid)),e}}X(_i,e),X(_i,Wc),Gr(_i,xc);var Sf=_i,Zs=(Mf.prototype.init=function(t,e){},Mf.prototype.render=function(t,e,n,i){},Mf.prototype.dispose=function(t,e){},Mf.prototype.updateView=function(t,e,n,i){},Mf.prototype.updateLayout=function(t,e,n,i){},Mf.prototype.updateVisual=function(t,e,n,i){},Mf.prototype.blurSeries=function(t,e){},Mf);function Mf(){this.group=new Ao,this.uid=nh("viewComponent")}Br(Zs),Ur(Zs);var If=Zs;function Tf(){var r=Ir();return function(t){var e=r(t),n=t.pipelineContext,i=!!e.large,o=!!e.progressiveRender,t=e.large=!(!n||!n.large),n=e.progressiveRender=!(!n||!n.progressiveRender);return!(i==t&&o==n)&&"reset"}}var Cf=Ir(),Df=Tf(),Fr=(Af.prototype.init=function(t,e){},Af.prototype.render=function(t,e,n,i){},Af.prototype.highlight=function(t,e,n,i){Lf(t.getData(),i,"emphasis")},Af.prototype.downplay=function(t,e,n,i){Lf(t.getData(),i,"normal")},Af.prototype.remove=function(t,e){this.group.removeAll()},Af.prototype.dispose=function(t,e){},Af.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},Af.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},Af.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},Af.markUpdateMethod=function(t,e){Cf(t).updateMethod=e},Af.protoInitialize=void(Af.prototype.type="chart"),Af);function Af(){this.group=new Ao,this.uid=nh("viewChart"),this.renderTask=ed({plan:Pf,reset:Of}),this.renderTask.context={view:this}}function kf(t,e,n){t&&("emphasis"===e?Jl:Ql)(t,n)}function Lf(e,t,n){var i,o=Mr(e,t),r=t&&null!=t.highlightKey?(i=t.highlightKey,t=null==(t=wl[i])&&bl<=32?wl[i]=bl++:t):null;null!=o?Z(dr(o),function(t){kf(e.getItemGraphicEl(t),n,r)}):e.eachItemGraphicEl(function(t){kf(t,n,r)})}function Pf(t){return Df(t.model)}function Of(t){var e=t.model,n=t.ecModel,i=t.api,o=t.payload,r=e.pipelineContext.progressiveRender,a=t.view,t=o&&Cf(o).updateMethod,t=r?"incrementalPrepareRender":t&&a[t]?t:"render";return"render"!==t&&a[t](e,n,i,o),Rf[t]}Br(Fr),Ur(Fr);var Rf={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Nf=Fr,zf="\0__throttleOriginMethod",Ef="\0__throttleRate",Vf="\0__throttleType";function Bf(t,o,r){var a,s,l,u,h,c=0,p=0,d=null;function f(){p=(new Date).getTime(),d=null,t.apply(l,u||[])}o=o||0;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];a=(new Date).getTime(),l=this,u=t;var n=h||o,i=h||r;h=null,s=a-(i?c:p)-n,clearTimeout(d),i?d=setTimeout(f,n):0<=s?f():d=setTimeout(f,-s),c=a}return e.clear=function(){d&&(clearTimeout(d),d=null)},e.debounceNextCall=function(t){h=t},e}function Gf(t,e,n,i){var o=t[e];if(o){var r=o[zf]||o,a=o[Vf];if(o[Ef]!==n||a!==i){if(null==n||!i)return t[e]=r;(o=t[e]=Bf(r,n,"debounce"===i))[zf]=r,o[Vf]=i,o[Ef]=n}return o}}var Ff=Ir(),Hf={itemStyle:Xr(Co,!0),lineStyle:Xr(n,!0)},Wf={lineStyle:"stroke",itemStyle:"fill"};function Uf(t,e){return t.visualStyleMapper||Hf[e]||Hf.itemStyle}function Xf(t,e){return t.visualDrawType||Wf[e]||"fill"}var Yf,x={createOnAllSeries:!0,performRawSeries:!0,reset:function(o,t){var e=o.getData(),n=o.visualStyleAccessPath||"itemStyle",i=o.getModel(n),r=Uf(o,n)(i),i=i.getShallow("decal");i&&(e.setVisual("decal",i),i.dirty=!0);var a=Xf(o,n),n=r[a],s=nt(n)?n:null,n="auto"===r.fill||"auto"===r.stroke;if(r[a]&&!s&&!n||(n=o.getColorFromPalette(o.name,null,t.getSeriesCount()),r[a]||(r[a]=n,e.setVisual("colorFromPalette",!0)),r.fill="auto"===r.fill||"function"==typeof r.fill?n:r.fill,r.stroke="auto"===r.stroke||"function"==typeof r.stroke?n:r.stroke),e.setVisual("style",r),e.setVisual("drawType",a),!t.isSeriesFiltered(o)&&s)return e.setVisual("colorFromPalette",!1),{dataEach:function(t,e){var n=o.getDataParams(e),i=G({},r);i[a]=s(n),t.setItemVisual(e,"style",i)}}}},Zf=new th,_o={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var e=t.getData(),i=t.visualStyleAccessPath||"itemStyle",o=Uf(t,i),r=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(t,e){var n=t.getRawDataItem(e);n&&n[i]&&(Zf.option=n[i],n=o(Zf),G(t.ensureUniqueItemVisual(e,"style"),n),Zf.option.decal&&(t.setItemVisual(e,"decal",Zf.option.decal),Zf.option.decal.dirty=!0),r in n&&t.setItemVisual(e,"colorFromPalette",!1))}:null}}}},To={performRawSeries:!0,overallReset:function(e){var i=Tt();e.eachSeries(function(t){var e,n=t.getColorBy();t.isColorBySeries()||(e=t.type+"-"+n,(n=i.get(e))||i.set(e,n={}),Ff(t).scope=n)}),e.eachSeries(function(i){var o,r,a,s,t,l;i.isColorBySeries()||e.isSeriesFiltered(i)||(o=i.getRawData(),r={},a=i.getData(),s=Ff(i).scope,t=i.visualStyleAccessPath||"itemStyle",l=Xf(i,t),a.each(function(t){var e=a.getRawIndex(t);r[e]=t}),o.each(function(t){var e,n=r[t];a.getItemVisual(n,"colorFromPalette")&&(e=a.ensureUniqueItemVisual(n,"style"),n=o.getName(t)||t+"",t=o.count(),e[l]=i.getColorFromPalette(n,s,t))}))})}},jf=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Zr=(Pt(qf,Yf=Bs),qf.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},qf.prototype.getDefaultShape=function(){return new jf},qf.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=Math.max(e.r,0),r=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(r),e=Math.sin(r);t.moveTo(l*o+n,e*o+i),t.arc(n,i,o,r,a,!s)},qf);function qf(t){return Yf.call(this,t)||this}Zr.prototype.type="arc";var Kf=Zr,$f=Math.PI;Jf.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){t=t.overallTask;t&&t.dirty()})},Jf.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,n=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,i=i&&i.modDataCount;return{step:n,modBy:null!=i?Math.ceil(i/n):null,modDataCount:i}}},Jf.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},Jf.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,e=t.get("large")&&i>=t.get("largeThreshold"),i="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:i,large:e}},Jf.prototype.restorePipelines=function(t){var i=this,o=i._pipelineMap=Tt();t.eachSeries(function(t){var e=t.getProgressive(),n=t.uid;o.set(n,{id:n,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:e&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(e||700),count:0}),i._pipe(t,t.dataTask)})},Jf.prototype.prepareStageTasks=function(){var n=this._stageTaskMap,i=this.api.getModel(),o=this.api;Z(this._allHandlers,function(t){var e=n.get(t.uid)||n.set(t.uid,{});xt(!(t.reset&&t.overallReset),""),t.reset&&this._createSeriesStageTask(t,e,i,o),t.overallReset&&this._createOverallStageTask(t,e,i,o)},this)},Jf.prototype.prepareView=function(t,e,n,i){var o=t.renderTask,r=o.context;r.model=e,r.ecModel=n,r.api=i,o.__block=!t.incrementalPrepareRender,this._pipe(e,o)},Jf.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},Jf.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},Jf.prototype._performStageTasks=function(t,s,l,u){u=u||{};var h=!1,c=this;function p(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Z(t,function(i,t){var e,n,o,r,a;u.visualType&&u.visualType!==i.visualType||(e=(r=c._stageTaskMap.get(i.uid)).seriesTaskMap,(n=r.overallTask)?((r=n.agentStubMap).each(function(t){p(u,t)&&(t.dirty(),o=!0)}),o&&n.dirty(),c.updatePayload(n,l),a=c.getPerformArgs(n,u.block),r.each(function(t){t.perform(a)}),n.perform(a)&&(h=!0)):e&&e.each(function(t,e){p(u,t)&&t.dirty();var n=c.getPerformArgs(t,u.block);n.skip=!i.performRawSeries&&s.isSeriesFiltered(t.context.model),c.updatePayload(t,l),t.perform(n)&&(h=!0)}))}),this.unfinished=h||this.unfinished},Jf.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},Jf.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}}while(e=e.getUpstream())})},Jf.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},Jf.prototype._createSeriesStageTask=function(n,t,i,o){var r=this,a=t.seriesTaskMap,s=t.seriesTaskMap=Tt(),e=n.seriesType,t=n.getTargetSeries;function l(t){var e=t.uid,e=s.set(e,a&&a.get(e)||ed({plan:ig,reset:og,count:sg}));e.context={model:t,ecModel:i,api:o,useClearVisual:n.isVisual&&!n.isLayout,plan:n.plan,reset:n.reset,scheduler:r},r._pipe(t,e)}n.createOnAllSeries?i.eachRawSeries(l):e?i.eachRawSeriesByType(e,l):t&&t(i,o).each(l)},Jf.prototype._createOverallStageTask=function(t,e,n,i){var o=this,r=e.overallTask=e.overallTask||ed({reset:Qf});r.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o};var a=r.agentStubMap,s=r.agentStubMap=Tt(),l=t.seriesType,e=t.getTargetSeries,u=!0,h=!1;function c(t){var e=t.uid,e=s.set(e,a&&a.get(e)||(h=!0,ed({reset:tg,onDirty:ng})));e.context={model:t,overallProgress:u},e.agent=r,e.__block=u,o._pipe(t,e)}xt(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,c):e?e(n,i).each(c):(u=!1,Z(n.getSeries(),c)),h&&r.dirty()},Jf.prototype._pipe=function(t,e){t=t.uid,t=this._pipelineMap.get(t);t.head||(t.head=e),t.tail&&t.tail.pipe(e),(t.tail=e).__idxInPipeline=t.count++,e.__pipeline=t},Jf.wrapStageHandler=function(t,e){return(t=nt(t)?{overallReset:t,seriesType:function(t){lg=null;try{t(ug,hg)}catch(t){}return lg}(t)}:t).uid=nh("stageHandler"),e&&(t.visualType=e),t},qu=Jf;function Jf(t,e,n,i){this._stageTaskMap=Tt(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function Qf(t){t.overallReset(t.ecModel,t.api,t.payload)}function tg(t){return t.overallProgress&&eg}function eg(){this.agent.dirty(),this.getDownstream().dirty()}function ng(){this.agent&&this.agent.dirty()}function ig(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function og(t){t.useClearVisual&&t.data.clearAllVisual();t=t.resetDefines=dr(t.reset(t.model,t.ecModel,t.api,t.payload));return 1<t.length?j(t,function(t,e){return ag(e)}):rg}var rg=ag(0);function ag(r){return function(t,e){var n=e.data,i=e.resetDefines[r];if(i&&i.dataEach)for(var o=t.start;o<t.end;o++)i.dataEach(n,o);else i&&i.progress&&i.progress(t,n)}}function sg(t){return t.data.count()}var lg,ug={},hg={};function cg(t,e){for(var n in e.prototype)t[n]=kt}cg(ug,ep),cg(hg,tp),ug.eachSeriesByType=ug.eachRawSeriesByType=function(t){lg=t},ug.eachComponent=function(t){"series"===t.mainType&&t.subType&&(lg=t.subType)};function pg(){return{axisLine:{lineStyle:{color:fg}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}}var dg=qu,A=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],k={color:A,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],A]},fg="#B9B8CE",_i="#100C2A",Zs=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Fr={darkMode:!0,color:Zs,backgroundColor:_i,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:fg}},textStyle:{color:fg},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:fg}},dataZoom:{borderColor:"#71708A",textStyle:{color:fg},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:fg}},timeline:{lineStyle:{color:fg},label:{color:fg},controlStyle:{color:fg,borderColor:fg}},calendar:{itemStyle:{color:_i},dayLabel:{color:fg},monthLabel:{color:fg},yearLabel:{color:fg}},timeAxis:pg(),logAxis:pg(),valueAxis:pg(),categoryAxis:pg(),line:{symbol:"circle"},graph:{color:Zs},gauge:{title:{color:fg},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:fg},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Fr.categoryAxis.splitLine.show=!1;var Co=Fr,gg=(yg.prototype.normalizeQuery=function(t){var e,a,s,l={},u={},h={};return it(t)?(e=Vr(t),l.mainType=e.main||null,l.subType=e.sub||null):(a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1},Z(t,function(t,e){for(var n=!1,i=0;i<a.length;i++){var o=a[i],r=e.lastIndexOf(o);0<r&&r===e.length-o.length&&("data"!==(r=e.slice(0,r))&&(l.mainType=r,l[o.toLowerCase()]=t,n=!0))}s.hasOwnProperty(e)&&(u[e]=t,n=!0),n||(h[e]=t)})),{cptQuery:l,dataQuery:u,otherQuery:h}},yg.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,o=n.packedEvent,r=n.model,a=n.view;if(!r||!a)return!0;var s=e.cptQuery,n=e.dataQuery;return l(s,r,"mainType")&&l(s,r,"subType")&&l(s,r,"index","componentIndex")&&l(s,r,"name")&&l(s,r,"id")&&l(n,o,"name")&&l(n,o,"dataIndex")&&l(n,o,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,o));function l(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},yg.prototype.afterTrigger=function(){this.eventInfo=null},yg),n={createOnAllSeries:!0,performRawSeries:!0,reset:function(o,t){var e=o.getData();if(o.legendIcon&&e.setVisual("legendIcon",o.legendIcon),o.hasSymbolVisual){var r=o.get("symbol"),a=o.get("symbolSize"),n=o.get("symbolKeepAspect"),s=o.get("symbolRotate"),l=o.get("symbolOffset"),u=nt(r),h=nt(a),c=nt(s),p=nt(l),i=u||h||c||p,d=!u&&r?r:o.defaultSymbol;if(e.setVisual({legendIcon:o.legendIcon||d,symbol:d,symbolSize:h?null:a,symbolKeepAspect:n,symbolRotate:c?null:s,symbolOffset:p?null:l}),!t.isSeriesFiltered(o))return{dataEach:i?function(t,e){var n=o.getRawValue(e),i=o.getDataParams(e);u&&t.setItemVisual(e,"symbol",r(n,i)),h&&t.setItemVisual(e,"symbolSize",a(n,i)),c&&t.setItemVisual(e,"symbolRotate",s(n,i)),p&&t.setItemVisual(e,"symbolOffset",l(n,i))}:null}}}},Zr={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){var n=t.getItemModel(e),i=n.getShallow("symbol",!0),o=n.getShallow("symbolSize",!0),r=n.getShallow("symbolRotate",!0),a=n.getShallow("symbolOffset",!0),n=n.getShallow("symbolKeepAspect",!0);null!=i&&t.setItemVisual(e,"symbol",i),null!=o&&t.setItemVisual(e,"symbolSize",o),null!=r&&t.setItemVisual(e,"symbolRotate",r),null!=a&&t.setItemVisual(e,"symbolOffset",a),null!=n&&t.setItemVisual(e,"symbolKeepAspect",n)}:null}}};function yg(){}function mg(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}function vg(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function xg(t,e,n,i){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,i)}}function _g(r,t){Z([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(o){t(o[0],function(t,e,n){var i;t=G({},t),n.dispatchAction(G(t,{type:o[1],seriesIndex:(t=t,i=[],e.eachComponent({mainType:"series",subType:r,query:t},function(t){i.push(t.seriesIndex)}),i)}))})})}function bg(t,e,a,n,s){var l=t+e;a.isSilent(l)||n.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e,n,i=t.seriesIndex,o=s.selected,r=0;r<o.length;r++)o[r].seriesIndex===i&&(n=Mr(e=t.getData(),s.fromActionPayload),a.trigger(l,{type:l,seriesId:t.id,name:et(n)?e.getName(n[0]):e.getName(n),selected:G({},t.option.selectedMap)}))})}function wg(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}var Sg,Mg=Math.round(9*Math.random()),Ig="function"==typeof Object.defineProperty,qu=(Ag.prototype.get=function(t){return this._guard(t)[this._id]},Ag.prototype.set=function(t,e){t=this._guard(t);return Ig?Object.defineProperty(t,this._id,{value:e,enumerable:!1,configurable:!0}):t[this._id]=e,this},Ag.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},Ag.prototype.has=function(t){return!!this._guard(t)[this._id]},Ag.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},Ag),Tg={},Cg=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},A=(Pt(Dg,Sg=Bs),Dg.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Dg.prototype.getDefaultShape=function(){return new Cg},Dg.prototype.buildPath=function(t,e){var n,i,o,r;r=this.subPixelOptimize?(n=(r=$s(Tg,e,this.style)).x1,i=r.y1,o=r.x2,r.y2):(n=e.x1,i=e.y1,o=e.x2,e.y2);e=e.percent;0!==e&&(t.moveTo(n,i),e<1&&(o=n*(1-e)+o*e,r=i*(1-e)+r*e),t.lineTo(o,r))},Dg.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},Dg);function Dg(t){return Sg.call(this,t)||this}function Ag(){this._id="__ec_inner_"+Mg++}A.prototype.type="line";var kg,Lg=A,Pg=function(){this.cx=0,this.cy=0,this.r=0},_i=(Pt(Og,kg=Bs),Og.prototype.getDefaultShape=function(){return new Pg},Og.prototype.buildPath=function(t,e,n){n&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},Og);function Og(t){return kg.call(this,t)||this}_i.prototype.type="circle";var Rg=_i,Ng=vs.CMD,zg=[[],[],[]],Eg=Math.sqrt,Vg=Math.atan2;function Bg(t,e){if(e){for(var n,i,o,r,a=t.data,s=t.len(),l=Ng.M,u=Ng.C,h=Ng.L,c=Ng.R,p=Ng.A,d=Ng.Q,f=0,g=0;f<s;){switch(n=a[f++],g=f,i=0,n){case l:case h:i=1;break;case u:i=3;break;case d:i=2;break;case p:var y=e[4],m=e[5],v=Eg(e[0]*e[0]+e[1]*e[1]),x=Eg(e[2]*e[2]+e[3]*e[3]),_=Vg(-e[1]/x,e[0]/v);a[f]*=v,a[f++]+=y,a[f]*=x,a[f++]+=m,a[f++]*=v,a[f++]*=x,a[f++]+=_,a[f++]+=_,g=f+=2;break;case c:r[0]=a[f++],r[1]=a[f++],ee(r,r,e),a[g++]=r[0],a[g++]=r[1],r[0]+=a[f++],r[1]+=a[f++],ee(r,r,e),a[g++]=r[0],a[g++]=r[1]}for(o=0;o<i;o++){var b=zg[o];b[0]=a[f++],b[1]=a[f++],ee(b,b,e),a[g++]=b[0],a[g++]=b[1]}}t.increaseVersion()}}var Gg=Math.sqrt,Fg=Math.sin,Hg=Math.cos,Wg=Math.PI;function Ug(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Xg(t,e){return(t[0]*e[0]+t[1]*e[1])/(Ug(t)*Ug(e))}function Yg(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Xg(t,e))}function Zg(t,e,n,i,o,r,a,s,l,u,h){var c=l*(Wg/180),p=Hg(c)*(t-n)/2+Fg(c)*(e-i)/2,d=-1*Fg(c)*(t-n)/2+Hg(c)*(e-i)/2,l=p*p/(a*a)+d*d/(s*s);1<l&&(a*=Gg(l),s*=Gg(l));var l=(o===r?-1:1)*Gg((a*a*(s*s)-a*a*(d*d)-s*s*(p*p))/(a*a*(d*d)+s*s*(p*p)))||0,o=l*a*d/s,l=l*-s*p/a,t=(t+n)/2+Hg(c)*o-Fg(c)*l,n=(e+i)/2+Fg(c)*o+Hg(c)*l,e=Yg([1,0],[(p-o)/a,(d-l)/s]),i=[(p-o)/a,(d-l)/s],d=[(-1*p-o)/a,(-1*d-l)/s],l=Yg(i,d);Xg(i,d)<=-1&&(l=Wg),(l=1<=Xg(i,d)?0:l)<0&&(d=Math.round(l/Wg*1e6)/1e6,l=2*Wg+d%2*Wg),h.addData(u,t,n,a,s,e,l,c,r)}var jg=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,qg=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var Kg,$g=(Pt(Jg,Kg=Bs),Jg.prototype.applyTransform=function(t){},Jg);function Jg(){return null!==Kg&&Kg.apply(this,arguments)||this}function Qg(t){return null!=t.setData}function ty(t,e){var n=function(t){var e=new vs;if(!t)return e;var n,i=0,o=0,r=i,a=o,s=vs.CMD,l=t.match(jg);if(!l)return e;for(var u=0;u<l.length;u++){for(var h=l[u],c=h.charAt(0),p=void 0,d=h.match(qg)||[],f=d.length,g=0;g<f;g++)d[g]=parseFloat(d[g]);for(var y=0;y<f;){var m=void 0,v=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=i,I=o,T=void 0,C=void 0;switch(c){case"l":i+=d[y++],o+=d[y++],p=s.L,e.addData(p,i,o);break;case"L":i=d[y++],o=d[y++],p=s.L,e.addData(p,i,o);break;case"m":i+=d[y++],o+=d[y++],p=s.M,e.addData(p,i,o),r=i,a=o,c="l";break;case"M":i=d[y++],o=d[y++],p=s.M,e.addData(p,i,o),r=i,a=o,c="L";break;case"h":i+=d[y++],p=s.L,e.addData(p,i,o);break;case"H":i=d[y++],p=s.L,e.addData(p,i,o);break;case"v":o+=d[y++],p=s.L,e.addData(p,i,o);break;case"V":o=d[y++],p=s.L,e.addData(p,i,o);break;case"C":p=s.C,e.addData(p,d[y++],d[y++],d[y++],d[y++],d[y++],d[y++]),i=d[y-2],o=d[y-1];break;case"c":p=s.C,e.addData(p,d[y++]+i,d[y++]+o,d[y++]+i,d[y++]+o,d[y++]+i,d[y++]+o),i+=d[y-2],o+=d[y-1];break;case"S":m=i,v=o,T=e.len(),C=e.data,n===s.C&&(m+=i-C[T-4],v+=o-C[T-3]),p=s.C,M=d[y++],I=d[y++],i=d[y++],o=d[y++],e.addData(p,m,v,M,I,i,o);break;case"s":m=i,v=o,T=e.len(),C=e.data,n===s.C&&(m+=i-C[T-4],v+=o-C[T-3]),p=s.C,M=i+d[y++],I=o+d[y++],i+=d[y++],o+=d[y++],e.addData(p,m,v,M,I,i,o);break;case"Q":M=d[y++],I=d[y++],i=d[y++],o=d[y++],p=s.Q,e.addData(p,M,I,i,o);break;case"q":M=d[y++]+i,I=d[y++]+o,i+=d[y++],o+=d[y++],p=s.Q,e.addData(p,M,I,i,o);break;case"T":m=i,v=o,T=e.len(),C=e.data,n===s.Q&&(m+=i-C[T-4],v+=o-C[T-3]),i=d[y++],o=d[y++],p=s.Q,e.addData(p,m,v,i,o);break;case"t":m=i,v=o,T=e.len(),C=e.data,n===s.Q&&(m+=i-C[T-4],v+=o-C[T-3]),i+=d[y++],o+=d[y++],p=s.Q,e.addData(p,m,v,i,o);break;case"A":x=d[y++],_=d[y++],b=d[y++],w=d[y++],S=d[y++],Zg(M=i,I=o,i=d[y++],o=d[y++],w,S,x,_,b,p=s.A,e);break;case"a":x=d[y++],_=d[y++],b=d[y++],w=d[y++],S=d[y++],Zg(M=i,I=o,i+=d[y++],o+=d[y++],w,S,x,_,b,p=s.A,e)}}"z"!==c&&"Z"!==c||(p=s.Z,e.addData(p),i=r,o=a),n=p}return e.toStatic(),e}(t),e=G({},e);return e.buildPath=function(t){var e;Qg(t)?(t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e,1)):n.rebuildPath(e=t,1)},e.applyTransform=function(t){Bg(n,t),this.dirtyShape()},e}function ey(t,e){return new $g(ty(t,e))}function ny(t,e){e=e||{};var n=new Bs;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?Bg(n.path,t.getComputedTransform()):e.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}var iy,oy=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},Zs=(Pt(ry,iy=Bs),ry.prototype.getDefaultShape=function(){return new oy},ry.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=e.rx,r=e.ry,a=.5522848*o,e=.5522848*r;t.moveTo(n-o,i),t.bezierCurveTo(n-o,i-e,n-a,i-r,n,i-r),t.bezierCurveTo(n+a,i-r,n+o,i-e,n+o,i),t.bezierCurveTo(n+o,i+e,n+a,i+r,n,i+r),t.bezierCurveTo(n-a,i+r,n-o,i+e,n-o,i),t.closePath()},ry);function ry(t){return iy.call(this,t)||this}Zs.prototype.type="ellipse";var ay=Zs,sy=Math.PI,ly=2*sy,uy=Math.sin,hy=Math.cos,cy=Math.acos,py=Math.atan2,dy=Math.abs,fy=Math.sqrt,gy=Math.max,yy=Math.min,my=1e-4;function vy(t,e,n,i,o,r,a){var s=t-n,l=e-i,u=(a?r:-r)/fy(s*s+l*l),h=u*l,c=-u*s,p=t+h,d=e+c,a=n+h,l=i+c,u=(p+a)/2,s=(d+l)/2,t=a-p,e=l-d,n=t*t+e*e,i=o-r,r=p*l-a*d,p=(e<0?-1:1)*fy(gy(0,i*i*n-r*r)),l=(r*e-t*p)/n,a=(-r*t-e*p)/n,d=(r*e+t*p)/n,e=(-r*t+e*p)/n,p=l-u,n=a-s,u=d-u,s=e-s;return u*u+s*s<p*p+n*n&&(l=d,a=e),{cx:l,cy:a,x01:-h,y01:-c,x11:l*(o/i-1),y11:a*(o/i-1)}}function xy(t,e){var n,i,o,r,a,s,l,u,h,c,p,d,f,g,y,m,v,x,_,b,w,S,M,I=gy(e.r,0),T=gy(e.r0||0,0),C=0<I;(C||0<T)&&(C||(I=T,T=0),I<T&&(y=I,I=T,T=y),n=!!e.clockwise,r=(i=e.startAngle)===(o=e.endAngle)?0:(ms(_=[i,o],!n),dy(_[0]-_[1])),a=e.cx,s=e.cy,m=e.cornerRadius||0,x=e.innerCornerRadius||0,my<I?ly-my<r?(t.moveTo(a+I*hy(i),s+I*uy(i)),t.arc(a,s,I,i,o,!n),my<T&&(t.moveTo(a+T*hy(o),s+T*uy(o)),t.arc(a,s,T,o,i,n))):(v=dy(I-T)/2,l=yy(v,m),b=u=yy(v,x),w=l,h=I*hy(i),c=I*uy(i),p=T*hy(o),d=T*uy(o),y=C=g=f=void 0,(my<l||my<u)&&(f=I*hy(o),g=I*uy(o),C=T*hy(i),y=T*uy(i),r<sy)&&((_=function(t,e,n,i,o,r,a,s){var l=n-t,n=i-e,i=a-o;if(!((s=(a=s-r)*l-i*n)*s<my))return[t+(s=(i*(e-r)-a*(t-o))/s)*l,e+s*n]}(h,c,C,y,f,g,p,d))&&(e=h-_[0],m=c-_[1],v=f-_[0],x=g-_[1],x=1/uy(cy((e*v+m*x)/(fy(e*e+m*m)*fy(v*v+x*x)))/2),_=fy(_[0]*_[0]+_[1]*_[1]),b=yy(u,(T-_)/(x-1)),w=yy(l,(I-_)/(1+x)))),my<r?my<w?(S=vy(C,y,h,c,I,w,n),M=vy(f,g,p,d,I,w,n),t.moveTo(a+S.cx+S.x01,s+S.cy+S.y01),w<l?t.arc(a+S.cx,s+S.cy,w,py(S.y01,S.x01),py(M.y01,M.x01),!n):(t.arc(a+S.cx,s+S.cy,w,py(S.y01,S.x01),py(S.y11,S.x11),!n),t.arc(a,s,I,py(S.cy+S.y11,S.cx+S.x11),py(M.cy+M.y11,M.cx+M.x11),!n),t.arc(a+M.cx,s+M.cy,w,py(M.y11,M.x11),py(M.y01,M.x01),!n))):(t.moveTo(a+h,s+c),t.arc(a,s,I,i,o,!n)):t.moveTo(a+h,s+c),my<T&&my<r?my<b?(S=vy(p,d,f,g,T,-b,n),M=vy(h,c,C,y,T,-b,n),t.lineTo(a+S.cx+S.x01,s+S.cy+S.y01),b<u?t.arc(a+S.cx,s+S.cy,b,py(S.y01,S.x01),py(M.y01,M.x01),!n):(t.arc(a+S.cx,s+S.cy,b,py(S.y01,S.x01),py(S.y11,S.x11),!n),t.arc(a,s,T,py(S.cy+S.y11,S.cx+S.x11),py(M.cy+M.y11,M.cx+M.x11),n),t.arc(a+M.cx,s+M.cy,b,py(M.y11,M.x11),py(M.y01,M.x01),!n))):(t.lineTo(a+p,s+d),t.arc(a,s,T,o,i,n)):t.lineTo(a+p,s+d)):t.moveTo(a,s),t.closePath())}var _y,by=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0,this.innerCornerRadius=0},Fr=(Pt(wy,_y=Bs),wy.prototype.getDefaultShape=function(){return new by},wy.prototype.buildPath=function(t,e){xy(t,e)},wy.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},wy);function wy(t){return _y.call(this,t)||this}Fr.prototype.type="sector";var Sy,My=Fr,Iy=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},A=(Pt(Ty,Sy=Bs),Ty.prototype.getDefaultShape=function(){return new Iy},Ty.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,o,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,o,!0)},Ty);function Ty(t){return Sy.call(this,t)||this}A.prototype.type="ring";var Cy=A;function Dy(t,e,n,i,o,r,a){t=.5*(n-t),i=.5*(i-e);return(2*(e-n)+t+i)*a+(-3*(e-n)-2*t-i)*r+t*o+e}function Ay(t,e,n){var i=e.smooth,o=e.points;if(o&&2<=o.length){if(i&&"spline"!==i){var r=function(t,e,n,i){var o,r,a=[],s=[],l=[],u=[];if(i){for(var h=[1/0,1/0],c=[-1/0,-1/0],p=0,d=t.length;p<d;p++)ne(h,h,t[p]),ie(c,c,t[p]);ne(h,h,i[0]),ie(c,c,i[1])}for(p=0,d=t.length;p<d;p++){var f=t[p];if(n)o=t[p?p-1:d-1],r=t[(p+1)%d];else{if(0===p||p===d-1){a.push(Nt(t[p]));continue}o=t[p-1],r=t[p+1]}Bt(s,r,o),Zt(s,s,e);var g=qt(f,o),y=qt(f,r),m=g+y;0!==m&&(g/=m,y/=m),Zt(l,s,-g),Zt(u,s,y);y=Et([],f,l),f=Et([],f,u);i&&(ie(y,y,h),ne(y,y,c),ie(f,f,h),ne(f,f,c)),a.push(y),a.push(f)}return n&&a.push(a.shift()),a}(o,i,n,e.smoothConstraint);t.moveTo(o[0][0],o[0][1]);for(var a=o.length,s=0;s<(n?a:a-1);s++){var l=r[2*s],u=r[2*s+1],h=o[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{"spline"===i&&(o=function(t,e){for(var n=t.length,i=[],o=0,r=1;r<n;r++)o+=qt(t[r-1],t[r]);for(var a=(a=o/2)<n?n:a,r=0;r<a;r++){var s=r/(a-1)*(e?n:n-1),l=Math.floor(s),u=s-l,h=void 0,c=t[l%n],p=void 0,d=void 0,d=e?(h=t[(l-1+n)%n],p=t[(l+1)%n],t[(l+2)%n]):(h=t[0===l?l:l-1],p=t[n-2<l?n-1:l+1],t[n-3<l?n-1:l+2]),s=u*u,l=u*s;i.push([Dy(h[0],c[0],p[0],d[0],u,s,l),Dy(h[1],c[1],p[1],d[1],u,s,l)])}return i}(o,n)),t.moveTo(o[0][0],o[0][1]);for(var s=1,c=o.length;s<c;s++)t.lineTo(o[s][0],o[s][1])}n&&t.closePath()}}var ky,Ly=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},_i=(Pt(Py,ky=Bs),Py.prototype.getDefaultShape=function(){return new Ly},Py.prototype.buildPath=function(t,e){Ay(t,e,!0)},Py);function Py(t){return ky.call(this,t)||this}_i.prototype.type="polygon";var Oy,Ry=_i,Ny=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},Zs=(Pt(zy,Oy=Bs),zy.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},zy.prototype.getDefaultShape=function(){return new Ny},zy.prototype.buildPath=function(t,e){Ay(t,e,!1)},zy);function zy(t){return Oy.call(this,t)||this}Zs.prototype.type="polyline";var Ey=Zs,Vy=[],By=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Gy(t,e,n){var i=t.cpx2,o=t.cpy2;return null===i||null===o?[(n?La:ka)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?La:ka)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?Ea:za)(t.x1,t.cpx1,t.x2,e),(n?Ea:za)(t.y1,t.cpy1,t.y2,e)]}var Fy,Fr=(Pt(Hy,Fy=Bs),Hy.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Hy.prototype.getDefaultShape=function(){return new By},Hy.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,o=e.x2,r=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,e=e.percent;0!==e&&(t.moveTo(n,i),null==l||null==u?(e<1&&(Ba(n,a,o,e,Vy),a=Vy[1],o=Vy[2],Ba(i,s,r,e,Vy),s=Vy[1],r=Vy[2]),t.quadraticCurveTo(a,s,o,r)):(e<1&&(Ra(n,a,l,o,e,Vy),a=Vy[1],l=Vy[2],o=Vy[3],Ra(i,s,u,r,e,Vy),s=Vy[1],u=Vy[2],r=Vy[3]),t.bezierCurveTo(a,s,l,u,o,r)))},Hy.prototype.pointAt=function(t){return Gy(this.shape,t,!1)},Hy.prototype.tangentAt=function(t){t=Gy(this.shape,t,!0);return jt(t,t)},Hy);function Hy(t){return Fy.call(this,t)||this}Fr.prototype.type="bezier-curve";var Wy,Uy,Xy,Yy,Zy=Fr,jy=(Pt(pm,Yy=Bs),pm.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},pm.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},pm.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},pm.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},pm.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Bs.prototype.getBoundingRect.call(this)},pm),A=(cm.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},cm),qy=(Pt(hm,Xy=A),hm),Ky=(Pt(um,Uy=A),um),$y=[0,0],Jy=[0,0],Qy=new Ui,tm=new Ui,em=(lm.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,o=t.x,r=t.y,a=o+t.width,t=r+t.height;if(n[0].set(o,r),n[1].set(a,r),n[2].set(a,t),n[3].set(o,t),e)for(var s=0;s<4;s++)n[s].transform(e);for(Ui.sub(i[0],n[1],n[0]),Ui.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize(),s=0;s<2;s++)this._origin[s]=i[s].dot(n[0])},lm.prototype.intersect=function(t,e){var n=!0,i=!e;return Qy.set(1/0,1/0),tm.set(0,0),!this._intersectCheckOneSide(this,t,Qy,tm,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,Qy,tm,i,-1)&&(n=!1,i)||i||Ui.copy(e,n?Qy:tm),n},lm.prototype._intersectCheckOneSide=function(t,e,n,i,o,r){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,$y),this._getProjMinMaxOnAxis(s,e._corners,Jy),$y[1]<Jy[0]||Jy[1]<$y[0]){if(a=!1,o)return a;var u=Math.abs(Jy[0]-$y[1]),h=Math.abs($y[0]-Jy[1]);Math.min(u,h)>i.len()&&(u<h?Ui.scale(i,l,-u*r):Ui.scale(i,l,h*r))}else n&&(u=Math.abs(Jy[0]-$y[1]),h=Math.abs($y[0]-Jy[1]),Math.min(u,h)<n.len()&&(u<h?Ui.scale(n,l,u*r):Ui.scale(n,l,-h*r)))}return a},lm.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],o=this._origin,r=e[0].dot(i)+o[t],a=r,s=r,l=1;l<e.length;l++)var u=e[l].dot(i)+o[t],a=Math.min(u,a),s=Math.max(u,s);n[0]=a,n[1]=s},lm),nm=[],im=(Pt(sm,Wy=xa),sm.prototype.traverse=function(t,e){t.call(e,this)},sm.prototype.useStyle=function(){this.style={}},sm.prototype.getCursor=function(){return this._cursor},sm.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},sm.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},sm.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},sm.prototype.addDisplayable=function(t,e){(e?this._temporaryDisplayables:this._displayables).push(t),this.markRedraw()},sm.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},sm.prototype.getDisplayables=function(){return this._displayables},sm.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},sm.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},sm.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++)(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null},sm.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Qi(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(nm)),t.union(i)}this._rect=t}return this._rect},sm.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++)if(this._displayables[i].contain(t,e))return!0;return!1},sm),om=Math.max,rm=Math.min,am={};function sm(){var t=null!==Wy&&Wy.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}function lm(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Ui;for(n=0;n<2;n++)this._axes[n]=new Ui;t&&this.fromBoundingRect(t,e)}function um(t,e,n,i,o){i=Uy.call(this,i)||this;return i.x=null==t?.5:t,i.y=null==e?.5:e,i.r=null==n?.5:n,i.type="radial",i.global=o||!1,i}function hm(t,e,n,i,o,r){o=Xy.call(this,o)||this;return o.x=null==t?0:t,o.y=null==e?0:e,o.x2=null==n?1:n,o.y2=null==i?0:i,o.type="linear",o.global=r||!1,o}function cm(t){this.colorStops=t||[]}function pm(){var t=null!==Yy&&Yy.apply(this,arguments)||this;return t.type="compound",t}function dm(t){return Bs.extend(t)}var fm=function(t,e){var n,i=ty(t,e);function o(t){t=n.call(this,t)||this;return t.applyTransform=i.applyTransform,t.buildPath=i.buildPath,t}return Pt(o,n=$g),o};function gm(t,e){return fm(t,e)}function ym(t,e){am[t]=e}function mm(t){if(am.hasOwnProperty(t))return am[t]}function vm(t,e,n,i){e=ey(t,e);return n&&("center"===i&&(n=_m(n,e.getBoundingRect())),wm(e,n)),e}function xm(t,e,n){var i=new qs({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){"center"===n&&(t={width:t.width,height:t.height},i.setStyle(_m(e,t)))}});return i}function _m(t,e){var n=e.width/e.height,e=t.height*n,n=e<=t.width?t.height:(e=t.width)/n;return{x:t.x+t.width/2-e/2,y:t.y+t.height/2-n/2,width:e,height:n}}var bm=function(t,e){for(var n=[],i=t.length,o=0;o<i;o++){var r=t[o];n.push(r.getUpdatedPathProxy(!0))}return(e=new Bs(e)).createPathProxy(),e.buildPath=function(t){var e;Qg(t)&&(t.appendPath(n),(e=t.getContext())&&t.rebuildPath(e,1))},e};function wm(t,e){t.applyTransform&&(e=t.getBoundingRect().calculateTransform(e),t.applyTransform(e))}function Sm(t){return $s(t.shape,t.shape,t.style),t}function Mm(t){return Js(t.shape,t.shape,t.style),t}var Im=Qs;function Tm(t,e){for(var n=Ti([]);t&&t!==e;)Di(n,t.getLocalTransform(),n),t=t.parent;return n}function Cm(t,e,n){return e&&!Y(e)&&(e=Wi.getLocalTransform(e)),ee([],t,e=n?Pi([],e):e)}function Dm(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),o=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=Cm(o=["left"===t?-i:"right"===t?i:0,"top"===t?-o:"bottom"===t?o:0],e,n);return Math.abs(o[0])>Math.abs(o[1])?0<o[0]?"right":"left":0<o[1]?"bottom":"top"}function Am(t){return!t.isGroup}function km(t,e,i){var o,n;function r(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=G({},t.shape)),e}t&&e&&(n={},t.traverse(function(t){Am(t)&&t.anid&&(n[t.anid]=t)}),o=n,e.traverse(function(t){var e,n;Am(t)&&t.anid&&((e=o[t.anid])&&(n=r(t),t.attr(r(e)),wu(t,n,i,_l(t).dataIndex)))}))}function Lm(t,n){return j(t,function(t){var e=t[0],e=om(e,n.x);e=rm(e,n.x+n.width);t=t[1],t=om(t,n.y);return[e,rm(t,n.y+n.height)]})}function Pm(t,e){var n=om(t.x,e.x),i=rm(t.x+t.width,e.x+e.width),o=om(t.y,e.y),e=rm(t.y+t.height,e.y+e.height);if(n<=i&&o<=e)return{x:n,y:o,width:i-n,height:e-o}}function Om(t,e,n){var i=G({rectHover:!0},e),e=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(e.image=t.slice(8),F(e,n),new qs(i)):vm(t.replace("path://",""),i,n,"center")}function Rm(t,e,n,i,o){for(var r=0,a=o[o.length-1];r<o.length;r++){var s=o[r];if(Nm(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function Nm(t,e,n,i,o,r,a,s){var l=n-t,u=i-e,n=a-o,i=s-r,a=n*u-l*i;if((s=a)<=1e-6&&-1e-6<=s)return!1;o=t-o,r=e-r,l=(o*u-l*r)/a;if(l<0||1<l)return!1;a=(o*i-n*r)/a;return!(a<0||1<a)}function zm(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,o=it(e)?{formatter:e}:e,e=n.mainType,n=n.componentIndex,r={componentType:e,name:i,$vars:["name"]};r[e+"Index"]=n;var a=t.formatterParamsExtra;a&&Z(J(a),function(t){At(r,t)||(r[t]=a[t],r.$vars.push(t))});t=_l(t.el);t.componentMainType=e,t.componentIndex=n,t.tooltipConfig={name:i,option:F({content:i,formatterParams:r},o)}}ym("circle",Rg),ym("ellipse",ay),ym("sector",My),ym("ring",Cy),ym("polygon",Ry),ym("polyline",Ey),ym("rect",rl),ym("line",Lg),ym("bezierCurve",Zy),ym("arc",Kf);var _i=Bs.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,o=e.width/2,e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+o,i+e),t.lineTo(n-o,i+e),t.closePath()}}),Zs=Bs.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,o=e.width/2,e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+o,i),t.lineTo(n,i+e),t.lineTo(n-o,i),t.closePath()}}),Fr=Bs.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,o=e.width/5*3,r=Math.max(o,e.height),a=o/2,s=a*a/(r-a),l=i-r+a+s,u=Math.asin(s/a),h=Math.cos(u)*a,c=Math.sin(u),e=Math.cos(u),o=.6*a,r=.7*a;t.moveTo(n-h,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+h-c*o,l+s+e*o,n,i-r,n,i),t.bezierCurveTo(n,i-r,n-h+c*o,l+s+e*o,n-h,l+s),t.closePath()}}),A=Bs.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,o=e.x,e=e.y,i=i/3*2;t.moveTo(o,e),t.lineTo(o+i,e+n),t.lineTo(o,e+n/4*3),t.lineTo(o-i,e+n),t.lineTo(o,e),t.closePath()}}),Em={line:function(t,e,n,i,o){o.x1=t,o.y1=e+i/2,o.x2=t+n,o.y2=e+i/2},rect:function(t,e,n,i,o){o.x=t,o.y=e,o.width=n,o.height=i},roundRect:function(t,e,n,i,o){o.x=t,o.y=e,o.width=n,o.height=i,o.r=Math.min(n,i)/4},square:function(t,e,n,i,o){i=Math.min(n,i);o.x=t,o.y=e,o.width=i,o.height=i},circle:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.r=Math.min(n,i)/2},diamond:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.width=n,o.height=i},pin:function(t,e,n,i,o){o.x=t+n/2,o.y=e+i/2,o.width=n,o.height=i},arrow:function(t,e,n,i,o){o.x=t+n/2,o.y=e+i/2,o.width=n,o.height=i},triangle:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.width=n,o.height=i}},Vm={};Z({line:Lg,rect:rl,roundRect:rl,square:rl,circle:Rg,diamond:Zs,pin:Fr,arrow:A,triangle:_i},function(t,e){Vm[e]=new t});var Bm=Bs.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=fo(t,e,n),t=this.shape;return t&&"pin"===t.symbolType&&"inside"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i,o=e.symbolType;"none"!==o&&((i=Vm[o])||(i=Vm[o="rect"]),Em[o](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n))}});function Gm(t,e){var n;"image"!==this.type&&(n=this.style,this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw())}function Fm(t,e,n,i,o,r,a){var s=0===t.indexOf("empty");return(o=0===(t=s?t.substr(5,1).toLowerCase()+t.substr(6):t).indexOf("image://")?xm(t.slice(8),new Qi(e,n,i,o),a?"center":"cover"):0===t.indexOf("path://")?vm(t.slice(7),{},new Qi(e,n,i,o),a?"center":"cover"):new Bm({shape:{symbolType:t,x:e,y:n,width:i,height:o}})).__isEmptyBrush=s,o.setColor=Gm,r&&o.setColor(r),o}function Hm(t){return[(t=!et(t)?[+t,+t]:t)[0]||0,t[1]||0]}function Wm(t,e){if(null!=t)return[Uo((t=!et(t)?[t,t]:t)[0],e[0])||0,Uo(gt(t[1],t[0]),e[1])||0]}function Um(t,e,n){for(var i,o,r,a,s,l,u,h,c,p="radial"===e.type?(i=t,o=e,a=(r=n).width,s=r.height,l=Math.min(a,s),u=null==o.x?.5:o.x,h=null==o.y?.5:o.y,c=null==o.r?.5:o.r,o.global||(u=u*a+r.x,h=h*s+r.y,c*=l),i.createRadialGradient(u,h,0,u,h,c)):(l=t,i=n,h=null==(u=e).x?0:u.x,c=null==u.x2?1:u.x2,t=null==u.y?0:u.y,n=null==u.y2?0:u.y2,u.global||(h=h*i.width+i.x,c=c*i.width+i.x,t=t*i.height+i.y,n=n*i.height+i.y),h=isNaN(h)?0:h,c=isNaN(c)?1:c,t=isNaN(t)?0:t,n=isNaN(n)?0:n,l.createLinearGradient(h,t,c,n)),d=e.colorStops,f=0;f<d.length;f++)p.addColorStop(d[f].offset,d[f].color);return p}function Xm(t,e){if(t!==e&&(t||e)){if(!t||!e||t.length!==e.length)return 1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return 1}}function Ym(t,e){return t&&"solid"!==t&&0<e?(e=e||1,"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:rt(t)?[t]:et(t)?t:null):null}var Zm=new vs(!0);function jm(t){var e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))}function qm(t){return"string"==typeof t&&"none"!==t}function Km(t){t=t.fill;return null!=t&&"none"!==t}function $m(t,e){var n;null!=e.fillOpacity&&1!==e.fillOpacity?(n=t.globalAlpha,t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n):t.fill()}function Jm(t,e){var n;null!=e.strokeOpacity&&1!==e.strokeOpacity?(n=t.globalAlpha,t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n):t.stroke()}function Qm(t,e,n){n=Kr(e.image,e.__image,n);if(Jr(n)){t=t.createPattern(n,e.repeat||"repeat");return"function"==typeof DOMMatrix&&t.setTransform&&((n=new DOMMatrix).rotateSelf(0,0,(e.rotation||0)/Math.PI*180),n.scaleSelf(e.scaleX||1,e.scaleY||1),n.translateSelf(e.x||0,e.y||0),t.setTransform(n)),t}}var t0=["shadowBlur","shadowOffsetX","shadowOffsetY"],e0=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function n0(t,e,n,i,o){var r,a=!1;if(!i&&e===(n=n||{}))return!1;!i&&e.opacity===n.opacity||(a||(u0(t,o),a=!0),r=Math.max(Math.min(e.opacity,1),0),t.globalAlpha=isNaN(r)?ca.opacity:r),!i&&e.blend===n.blend||(a||(u0(t,o),a=!0),t.globalCompositeOperation=e.blend||ca.blend);for(var s=0;s<t0.length;s++){var l=t0[s];!i&&e[l]===n[l]||(a||(u0(t,o),a=!0),t[l]=t.dpr*(e[l]||0))}return!i&&e.shadowColor===n.shadowColor||(a||(u0(t,o),a=!0),t.shadowColor=e.shadowColor||ca.shadowColor),a}function i0(t,e,n,i,o){var r=h0(e,o.inHover),a=i?null:n&&h0(n,o.inHover)||{};if(r!==a){var s=n0(t,r,a,i,o);!i&&r.fill===a.fill||(s||(u0(t,o),s=!0),qm(r.fill)&&(t.fillStyle=r.fill)),!i&&r.stroke===a.stroke||(s||(u0(t,o),s=!0),qm(r.stroke)&&(t.strokeStyle=r.stroke)),!i&&r.opacity===a.opacity||(s||(u0(t,o),s=!0),t.globalAlpha=null==r.opacity?1:r.opacity),e.hasStroke()&&(e=r.lineWidth/(r.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1),t.lineWidth!==e&&(s||(u0(t,o),s=!0),t.lineWidth=e));for(var l=0;l<e0.length;l++){var u=e0[l],h=u[0];!i&&r[h]===a[h]||(s||(u0(t,o),s=!0),t[h]=r[h]||u[1])}return s}}function o0(t,e){var n=e.transform,e=t.dpr||1;n?t.setTransform(e*n[0],e*n[1],e*n[2],e*n[3],e*n[4],e*n[5]):t.setTransform(e,0,0,e,0,0)}var r0=1,a0=2,s0=3,l0=4;function u0(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function h0(t,e){return e&&t.__hoverStyle||t.style}function c0(t,e){p0(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function p0(t,e,n,i){var o=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~qe,e.__isRendered=!1;var r,a,s,l,u,h,c,p,d,f,g,y,m,v=e.__clipPaths,x=n.prevElClipPaths,_=!1,b=!1;x&&!Xm(v,x)||(x&&x.length&&(u0(t,n),t.restore(),b=_=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),v&&v.length&&(u0(t,n),t.save(),function(t,e,n){for(var i=!1,o=0;o<t.length;o++){var r=t[o],i=i||r.isZeroArea();o0(e,r),e.beginPath(),r.buildPath(e,r.shape),e.clip()}n.allClipped=i}(v,t,n),_=!0),n.prevElClipPaths=v),n.allClipped?e.__isRendered=!1:(e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush(),(s=n.prevEl)||(b=_=!0),m=e instanceof Bs&&e.autoBatch&&(m=e.style,x=Km(m),v=jm(m),!(m.lineDash||!(+x^+v)||x&&"string"!=typeof m.fill||v&&"string"!=typeof m.stroke||m.strokePercent<1||m.strokeOpacity<1||m.fillOpacity<1)),_||(g=o,y=s.transform,g&&y?g[0]!==y[0]||g[1]!==y[1]||g[2]!==y[2]||g[3]!==y[3]||g[4]!==y[4]||g[5]!==y[5]:g||y)?(u0(t,n),o0(t,e)):m||u0(t,n),g=h0(e,n.inHover),e instanceof Bs?(n.lastDrawType!==r0&&(b=!0,n.lastDrawType=r0),i0(t,e,s,b,n),m&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,i){var o=jm(n),r=Km(n),a=n.strokePercent,s=a<1,l=!e.path;e.silent&&!s||!l||e.createPathProxy();var u,h,c,p,d,f,g,y=e.path||Zm;i||(u=n.fill,h=n.stroke,c=r&&!!u.colorStops,v=o&&!!h.colorStops,p=r&&!!u.image,_=o&&!!h.image,g=b=f=x=d=void 0,(c||v)&&(g=e.getBoundingRect()),c&&(d=e.__dirty?Um(t,u,g):e.__canvasFillGradient,e.__canvasFillGradient=d),v&&(x=e.__dirty?Um(t,h,g):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),p&&(f=e.__dirty||!e.__canvasFillPattern?Qm(t,u,e):e.__canvasFillPattern,e.__canvasFillPattern=f),_&&(b=e.__dirty||!e.__canvasStrokePattern?Qm(t,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=f),c?t.fillStyle=d:p&&(f?t.fillStyle=f:r=!1),v?t.strokeStyle=x:_&&(b?t.strokeStyle=b:o=!1));var m,v=n.lineDash&&0<n.lineWidth&&Ym(n.lineDash,n.lineWidth),x=n.lineDashOffset,_=!!t.setLineDash,b=e.getGlobalScale();y.setScale(b[0],b[1],e.segmentIgnoreThreshold),v&&(m=n.strokeNoScale&&e.getLineScale?e.getLineScale():1)&&1!==m&&(v=j(v,function(t){return t/m}),x/=m),b=!0,(l||e.__dirty&Ke||v&&!_&&o)&&(y.setDPR(t.dpr),s?y.setContext(null):(y.setContext(t),b=!1),y.reset(),v&&!_&&(y.setLineDash(v),y.setLineDashOffset(x)),e.buildPath(y,e.shape,i),y.toStatic(),e.pathUpdated()),b&&y.rebuildPath(t,s?a:1),v&&_&&(t.setLineDash(v),t.lineDashOffset=x),i||(n.strokeFirst?(o&&Jm(t,n),r&&$m(t,n)):(r&&$m(t,n),o&&Jm(t,n))),v&&_&&t.setLineDash([])}(t,e,g,m),m&&(n.batchFill=g.fill||"",n.batchStroke=g.stroke||"")):e instanceof Ws?(n.lastDrawType!==s0&&(b=!0,n.lastDrawType=s0),i0(t,e,s,b,n),l=t,y=e,null!=(f=(u=g).text)&&(f+=""),f&&(l.font=u.font||eo,l.textAlign=u.textAlign,l.textBaseline=u.textBaseline,h=void 0,l.setLineDash&&(c=u.lineDash&&0<u.lineWidth&&Ym(u.lineDash,u.lineWidth),p=u.lineDashOffset,c&&((d=u.strokeNoScale&&y.getLineScale?y.getLineScale():1)&&1!==d&&(c=j(c,function(t){return t/d}),p/=d),l.setLineDash(c),l.lineDashOffset=p,h=!0)),u.strokeFirst?(jm(u)&&l.strokeText(f,u.x,u.y),Km(u)&&l.fillText(f,u.x,u.y)):(Km(u)&&l.fillText(f,u.x,u.y),jm(u)&&l.strokeText(f,u.x,u.y)),h&&l.setLineDash([]))):e instanceof qs?(n.lastDrawType!==a0&&(b=!0,n.lastDrawType=a0),c=s,p=b,n0(t,h0(e,(f=n).inHover),c&&h0(c,f.inHover),p,f),u=t,h=g,(s=(l=e).__image=Kr(h.image,l.__image,l,l.onload))&&Jr(s)&&(c=h.x||0,p=h.y||0,f=l.getWidth(),g=l.getHeight(),l=s.width/s.height,null==f&&null!=g?f=g*l:null==g&&null!=f?g=f/l:null==f&&null==g&&(f=s.width,g=s.height),h.sWidth&&h.sHeight?(r=h.sx||0,a=h.sy||0,u.drawImage(s,r,a,h.sWidth,h.sHeight,c,p,f,g)):h.sx&&h.sy?(r=h.sx,a=h.sy,u.drawImage(s,r,a,f-r,g-a,c,p,f,g)):u.drawImage(s,c,p,f,g))):e instanceof im&&(n.lastDrawType!==l0&&(b=!0,n.lastDrawType=l0),function(t,e,n){var i=e.getDisplayables(),o=e.getTemporalDisplayables();t.save();var r,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(r=e.getCursor(),a=i.length;r<a;r++){var l=i[r];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),p0(t,l,s,r===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,h=o.length;u<h;u++)(l=o[u]).beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),p0(t,l,s,u===h-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l;e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,n)),m&&i&&u0(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),(n.prevEl=e).__dirty=0,e.__isRendered=!0)}var d0,f0=new qu,g0=new ln(100),y0=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function m0(t,e){if("none"===t)return null;var I=e.getDevicePixelRatio(),T=e.getZr(),C="svg"===T.painter.type;t.dirty&&f0.delete(t);e=f0.get(t);if(e)return e;var D=F(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===D.backgroundColor&&(D.backgroundColor=null);e={repeat:"repeat"};return function(t){for(var e,n=[I],i=!0,o=0;o<y0.length;++o){var r=D[y0[o]],a=typeof r;if(null!=r&&!et(r)&&"string"!=a&&"number"!=a&&"boolean"!=a){i=!1;break}n.push(r)}{var s;i&&(e=n.join(",")+(C?"-svg":""),(s=g0.get(e))&&(C?t.svgElement=s:t.image=s))}var m,v=function t(e){if(!e||0===e.length)return[[0,0]];if("number"==typeof e){var n=Math.ceil(e);return[[n,n]]}for(var i=!0,o=0;o<e.length;++o)if("number"!=typeof e[o]){i=!1;break}if(i)return t([e]);var r=[];for(o=0;o<e.length;++o)"number"==typeof e[o]?(n=Math.ceil(e[o]),r.push([n,n])):(n=j(e[o],function(t){return Math.ceil(t)})).length%2==1?r.push(n.concat(n)):r.push(n);return r}(D.dashArrayX),x=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if("number"==typeof t){var e=Math.ceil(t);return[e,e]}e=j(t,function(t){return Math.ceil(t)});return t.length%2?e.concat(e):e}(D.dashArrayY),_=function t(e){if(!e||0===e.length)return[["rect"]];if("string"==typeof e)return[[e]];for(var n=!0,i=0;i<e.length;++i)if("string"!=typeof e[i]){n=!1;break}if(n)return t([e]);var o=[];for(i=0;i<e.length;++i)"string"==typeof e[i]?o.push([e[i]]):o.push(e[i]);return o}(D.symbol),l=function(t){return j(t,v0)}(v),b=v0(x),w=!C&&H(),S=C&&T.painter.createSVGElement("g"),M=function(){for(var t=1,e=0,n=l.length;e<n;++e)t=hr(t,l[e]);var i=1;for(e=0,n=_.length;e<n;++e)i=hr(i,_[e].length);t*=i;var o=b*l.length*_.length;return{width:Math.max(1,Math.min(t,D.maxTileWidth)),height:Math.max(1,Math.min(o,D.maxTileHeight))}}();w&&(w.width=M.width*I,w.height=M.height*I,m=w.getContext("2d")),function(){m&&(m.clearRect(0,0,w.width,w.height),D.backgroundColor&&(m.fillStyle=D.backgroundColor,m.fillRect(0,0,w.width,w.height)));for(var t=0,e=0;e<x.length;++e)t+=x[e];if(!(t<=0))for(var n=-b,i=0,o=0,r=0;n<M.height;){if(i%2==0){for(var a=o/2%_.length,s=0,l=0,u=0;s<2*M.width;){for(var h,c,p,d,f,g,y=0,e=0;e<v[r].length;++e)y+=v[r][e];if(y<=0)break;l%2==0&&(h=.5*(1-D.symbolSize),c=s+v[r][l]*h,p=n+x[i]*h,d=v[r][l]*D.symbolSize,f=x[i]*D.symbolSize,g=u/2%_[a].length,h=_[a][g],g=void 0,g=Fm(h,c*(g=C?1:I),p*g,d*g,f*g,D.color,D.symbolKeepAspect),C?S.appendChild(T.painter.paintOne(g)):c0(m,g)),s+=v[r][l],++u,++l===v[r].length&&(l=0)}++r===v.length&&(r=0)}n+=x[i],++o,++i===x.length&&(i=0)}}(),i&&g0.put(e,w||S),t.image=w,t.svgElement=S,t.svgWidth=M.width,t.svgHeight=M.height}(e),e.rotation=D.rotation,e.scaleX=e.scaleY=C?1:1/I,f0.set(t,e),t.dirty=!1,e}function v0(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}function x0(t){var e=t=it(t)?(new DOMParser).parseFromString(t,"text/xml"):t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var _0={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"},b0=J(_0),w0={"alignment-baseline":"textBaseline","stop-color":"stopColor"},S0=J(w0),M0=(T0.prototype.parse=function(t,e){e=e||{};var n=x0(t);if(!n)throw new Error("Illegal svg");this._defsUsePending=[];var i=new Ao;this._root=i;var o=[],r=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||e.width),t=parseFloat(n.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(t)&&(t=null),L0(n,i,null,!0,!1);for(var s,l,u,h=n.firstChild;h;)this._parseNode(h,i,o,null,!1,!1),h=h.nextSibling;return function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i[0].style[i[1]]=t[i[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],(s=r&&4<=(u=N0(r)).length?{x:parseFloat(u[0]||0),y:parseFloat(u[1]||0),width:parseFloat(u[2]),height:parseFloat(u[3])}:s)&&null!=a&&null!=t&&(l=G0(s,{x:0,y:0,width:a,height:t}),!e.ignoreViewBox)&&(u=i,(i=new Ao).add(u),u.scaleX=u.scaleY=l.scale,u.x=l.x,u.y=l.y),e.ignoreRootClip||null==a||null==t||i.setClipPath(new rl({shape:{x:0,y:0,width:a,height:t}})),{root:i,width:a,height:t,viewBoxRect:s,viewBoxTransform:l,named:o}},T0.prototype._parseNode=function(t,e,n,i,o,r){var a,s,l=t.nodeName.toLowerCase(),u=i;if("defs"===l&&(o=!0),"text"===l&&(r=!0),"defs"===l||"switch"===l?a=e:(o||(s=d0[l])&&At(d0,l)&&(a=s.call(this,t,e),(s=t.getAttribute("name"))?(n.push(s={name:s,namedFrom:null,svgNodeTagLower:l,el:a}),"g"===l&&(u=s)):i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:l,el:a}),e.add(a)),(e=I0[l])&&At(I0,l)&&(l=e.call(this,t),(e=t.getAttribute("id"))&&(this._defs[e]=l))),a&&a.isGroup)for(var h=t.firstChild;h;)1===h.nodeType?this._parseNode(h,a,n,u,o,r):3===h.nodeType&&r&&this._parseText(h,a),h=h.nextSibling},T0.prototype._parseText=function(t,e){var n=new Ws({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});A0(e,n),L0(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__selfStyle;n&&(n=n.textBaseline,!(i=n)||"auto"===n||"baseline"===n?i="alphabetic":"before-edge"===n||"text-before-edge"===n?i="top":"after-edge"===n||"text-after-edge"===n?i="bottom":"central"!==n&&"mathematical"!==n||(i="middle"),t.style.textBaseline=i);var i=e.__inheritedStyle;i&&(e=i.textAlign,(i=e)&&("middle"===e&&(i="center"),t.style.textAlign=i))}(n,e);var i=n.style,t=i.fontSize;t&&t<9&&(i.fontSize=9,n.scaleX*=t/9,n.scaleY*=t/9);t=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=t;t=n.getBoundingRect();return this._textX+=t.width,e.add(n),n},T0.internalField=void(d0={g:function(t,e){var n=new Ao;return A0(e,n),L0(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new rl;return A0(e,n),L0(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new Rg;return A0(e,n),L0(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Lg;return A0(e,n),L0(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new ay;return A0(e,n),L0(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n=t.getAttribute("points");n&&(i=k0(n));var i=new Ry({shape:{points:i||[]},silent:!0});return A0(e,i),L0(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n=t.getAttribute("points");n&&(i=k0(n));var i=new Ey({shape:{points:i||[]},silent:!0});return A0(e,i),L0(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new qs;return A0(e,n),L0(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",o=t.getAttribute("dx")||"0",r=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(o),this._textY=parseFloat(i)+parseFloat(r);r=new Ao;return A0(e,r),L0(t,r,this._defsUsePending,!1,!0),r},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var o=t.getAttribute("dx")||"0",n=t.getAttribute("dy")||"0",i=new Ao;return A0(e,i),L0(t,i,this._defsUsePending,!1,!0),this._textX+=parseFloat(o),this._textY+=parseFloat(n),i},path:function(t,e){var n=ey(t.getAttribute("d")||"");return A0(e,n),L0(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),T0),I0={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),o=parseInt(t.getAttribute("y2")||"0",10),o=new qy(e,n,i,o);return C0(t,o),D0(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),i=new Ky(e,n,i);return C0(t,i),D0(t,i),i}};function T0(){this._defs={},this._root=null}function C0(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function D0(t,e){for(var n,i,o=t.firstChild;o;)1===o.nodeType&&"stop"===o.nodeName.toLocaleLowerCase()&&(n=void 0,n=(i=o.getAttribute("offset"))&&0<i.indexOf("%")?parseInt(i,10)/100:i?parseFloat(i):0,B0(o,i={},i),i=i.stopColor||o.getAttribute("stop-color")||"#000000",e.colorStops.push({offset:n,color:i})),o=o.nextSibling}function A0(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),F(e.__inheritedStyle,t.__inheritedStyle))}function k0(t){for(var e=N0(t),n=[],i=0;i<e.length;i+=2){var o=parseFloat(e[i]),r=parseFloat(e[i+1]);n.push([o,r])}return n}function L0(t,e,n,i,o){var r=e,a=r.__inheritedStyle=r.__inheritedStyle||{},s={};1===t.nodeType&&(function(t,e){t=t.getAttribute("transform");if(t){t=t.replace(/,/g," ");var i=[],n=null;t.replace(z0,function(t,e,n){return i.push(e,n),""});for(var o=i.length-1;0<o;o-=2){var r=i[o],a=i[o-1],s=N0(r);switch(n=n||Ii(),a){case"translate":Ai(n,n,[parseFloat(s[0]),parseFloat(s[1]||"0")]);break;case"scale":Li(n,n,[parseFloat(s[0]),parseFloat(s[1]||s[0])]);break;case"rotate":ki(n,n,-parseFloat(s[0])*E0);break;case"skewX":var l=Math.tan(parseFloat(s[0])*E0);Di(n,[1,0,l,1,0,0],n);break;case"skewY":l=Math.tan(parseFloat(s[0])*E0);Di(n,[1,l,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(s[0]),n[1]=parseFloat(s[1]),n[2]=parseFloat(s[2]),n[3]=parseFloat(s[3]),n[4]=parseFloat(s[4]),n[5]=parseFloat(s[5])}}e.setLocalTransform(n)}}(t,e),B0(t,a,s),i||function(t,e,n){for(var i=0;i<b0.length;i++){var o=b0[i],r=t.getAttribute(o);null!=r&&(e[_0[o]]=r)}for(i=0;i<S0.length;i++)o=S0[i],null!=(r=t.getAttribute(o))&&(n[w0[o]]=r)}(t,a,s)),r.style=r.style||{},null!=a.fill&&(r.style.fill=O0(r,"fill",a.fill,n)),null!=a.stroke&&(r.style.stroke=O0(r,"stroke",a.stroke,n)),Z(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(t){null!=a[t]&&(r.style[t]=parseFloat(a[t]))}),Z(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(t){null!=a[t]&&(r.style[t]=a[t])}),o&&(r.__selfStyle=s),a.lineDash&&(r.style.lineDash=j(N0(a.lineDash),function(t){return parseFloat(t)})),"hidden"!==a.visibility&&"collapse"!==a.visibility||(r.invisible=!0),"none"===a.display&&(r.ignore=!0)}var P0=/^url\(\s*#(.*?)\)/;function O0(t,e,n,i){var o=n&&n.match(P0);if(!o)return n="none"===n?null:n;o=_t(o[1]);i.push([t,e,o])}var R0=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function N0(t){return t.match(R0)||[]}var z0=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,E0=Math.PI/180;var V0=/([^\s:;]+)\s*:\s*([^:;]+)/g;function B0(t,e,n){var i,o=t.getAttribute("style");if(o)for(V0.lastIndex=0;null!=(i=V0.exec(o));){var r=i[1],a=At(_0,r)?_0[r]:null;a&&(e[a]=i[2]);r=At(w0,r)?w0[r]:null;r&&(n[r]=i[2])}}function G0(t,e){var n=e.width/t.width,i=e.height/t.height,i=Math.min(n,i);return{scale:i,x:-(t.x+t.width/2)*i+(e.x+e.width/2),y:-(t.y+t.height/2)*i+(e.y+e.height/2)}}var F0=1e-8;function H0(t,e){return Math.abs(t-e)<F0}function W0(t,e,n){var i=0,o=t[0];if(!o)return!1;for(var r=1;r<t.length;r++){var a=t[r];i+=Is(o[0],o[1],a[0],a[1],e,n),o=a}var s=t[0];return H0(o[0],s[0])&&H0(o[1],s[1])||(i+=Is(o[0],o[1],s[0],s[1],e,n)),0!==i}var U0,X0,Y0=[],_i=(tv.prototype.getCenter=function(){},tv),Z0=(y(Q0,X0=_i),Q0.prototype.getBoundingRect=function(){var t=this._rect;if(t)return t;for(var t=Number.MAX_VALUE,e=[t,t],n=[-t,-t],i=[],o=[],r=this.geometries,a=0;a<r.length;a++)"polygon"===r[a].type&&(qa(r[a].exterior,i,o),ne(e,e,i),ie(n,n,o));return 0===a&&(e[0]=e[1]=n[0]=n[1]=0),this._rect=new Qi(e[0],e[1],n[0]-e[0],n[1]-e[1])},Q0.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,o=n.length;i<o;i++)if("polygon"===n[i].type){var r=n[i].exterior,a=n[i].interiors;if(W0(r,t[0],t[1])){for(var s=0;s<(a?a.length:0);s++)if(W0(a[s],t[0],t[1]))continue t;return!0}}return!1},Q0.prototype.transformTo=function(t,e,n,i){var o=this.getBoundingRect(),r=o.width/o.height;n?i=i||n/r:n=r*i;for(var i=new Qi(t,e,n,i),a=o.calculateTransform(i),s=this.geometries,l=0;l<s.length;l++)if("polygon"===s[l].type){for(var u=s[l].exterior,h=s[l].interiors,c=0;c<u.length;c++)ee(u[c],u[c],a);for(var p=0;p<(h?h.length:0);p++)for(c=0;c<h[p].length;c++)ee(h[p][c],h[p][c],a)}(o=this._rect).copy(i),this._center=[o.x+o.width/2,o.y+o.height/2]},Q0.prototype.cloneShallow=function(t){t=new Q0(t=null==t?this.name:t,this.geometries,this._center);return t._rect=this._rect,t.transformTo=null,t},Q0.prototype.getCenter=function(){return this._center},Q0.prototype.setCenter=function(t){this._center=t},Q0),j0=(y(J0,U0=_i),J0.prototype.getCenter=function(){return this._center||(this._center=this._calculateCenter())},J0.prototype._calculateCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),e=[e.x+e.width/2,e.y+e.height/2],n=Ti(Y0),i=t;i&&!i.isGeoSVGGraphicRoot;)Di(n,i.getLocalTransform(),n),i=i.parent;return Pi(n,n),ee(e,e,n),e},J0),q0=Tt(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),K0=($0.prototype.load=function(){var t,e,n,i;return(t=this._firstGraphic)||(t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone(),e=t.named,n=[],i=Tt(),Z(e,function(t){var e;null==t.namedFrom&&(e=new j0(t.name,t.el),n.push(e),i.set(t.name,e))}),e=(t={regions:n,regionsMap:i}).regionsMap,this._regions=t.regions,this._regionsMap=e),{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},$0.prototype._buildGraphic=function(t){var e,n;try{xt(null!=(n=(e=t&&(r=t,a={ignoreViewBox:!0,ignoreRootClip:!0},(new M0).parse(r,a))||{}).root))}catch(t){throw new Error("Invalid svg format\n"+t.message)}var i=new Ao;i.add(n),i.isGeoSVGGraphicRoot=!0;var o,r,a,s=e.width,l=e.height,u=e.viewBoxRect,h=this._boundingRect;h||(a=r=t=o=void 0,null!=s?(o=0,r=s):u&&(o=u.x,r=u.width),null!=l?(t=0,a=l):u&&(t=u.y,a=u.height),null!=o&&null!=t||(l=n.getBoundingRect(),null==o&&(o=l.x,r=l.width),null==t&&(t=l.y,a=l.height)),h=this._boundingRect=new Qi(o,t,r,a)),u&&(u=G0(u,h),n.scaleX=n.scaleY=u.scale,n.x=u.x,n.y=u.y),i.setClipPath(new rl({shape:h.plain()}));var c=[];return Z(e.named,function(t){null!=q0.get(t.svgNodeTagLower)&&(c.push(t),(t=t.el).silent=!1,t.isGroup&&t.traverse(function(t){t.silent=!1}))}),{root:i,boundingRect:h,named:c}},$0.prototype.useGraphic=function(t){var e,n=this._usedGraphicMap;return(e=n.get(t))||(e=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),n.set(t,e),e)},$0.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},$0);function $0(t,e){this.type="geoSVG",this._usedGraphicMap=Tt(),this._freedGraphics=[],this._mapName=t,this._parsedXML=x0(e)}function J0(t,e){t=U0.call(this,t)||this;return t.type="geoSVG",t._elOnlyForCalculate=e,t}function Q0(t,e,n){t=X0.call(this,t)||this;return t.type="geoJSON",t.geometries=e,n=n?[n[0],n[1]]:[(e=t.getBoundingRect()).x+e.width/2,e.y+e.height/2],t._center=n,t}function tv(t){this.name=t}function ev(t,e,n){for(var i=[],o=e[0],r=e[1],a=0;a<t.length;a+=2){var s=(s=t.charCodeAt(a)-64)>>1^-(1&s),l=(l=t.charCodeAt(a+1)-64)>>1^-(1&l);s+=o,l+=r,i.push([(o=s)/n,(r=l)/n])}return i}function nv(t,o){return j(K((t=function(t){if(!t.UTF8Encoding)return t;var e=(t=t).UTF8Scale;null==e&&(e=1024);for(var n=t.features,i=0;i<n.length;i++){var o=n[i].geometry;if("Polygon"===o.type)for(var r=o.coordinates,a=0;a<r.length;a++)r[a]=ev(r[a],o.encodeOffsets[a],e);else if("MultiPolygon"===o.type)for(r=o.coordinates,a=0;a<r.length;a++)for(var s=r[a],l=0;l<s.length;l++)s[l]=ev(s[l],o.encodeOffsets[a][l],e)}return t.UTF8Encoding=!1,t}(t)).features,function(t){return t.geometry&&t.properties&&0<t.geometry.coordinates.length}),function(t){var e=t.properties,t=t.geometry,n=[];"Polygon"===t.type&&(i=t.coordinates,n.push({type:"polygon",exterior:i[0],interiors:i.slice(1)})),"MultiPolygon"===t.type&&Z(i=t.coordinates,function(t){t[0]&&n.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})});var i=new Z0(e[o||"name"],n,e.cp);return i.properties=e,i})}for(var iv=[126,25],ov=[[[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]]],rv=0;rv<ov.length;rv++)for(var av=0;av<ov[rv].length;av++)ov[rv][av][0]/=10.5,ov[rv][av][1]/=-14,ov[rv][av][0]+=iv[0],ov[rv][av][1]+=iv[1];var sv={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};var lv={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};var uv=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];var hv=(cv.prototype.load=function(n,t){var e,i=this._parsedMap.get(t=t||"name");i||(e=this._parseToRegions(t),i=this._parsedMap.set(t,{regions:e,boundingRect:function(t){for(var e,n=0;n<t.length;n++){var i=t[n].getBoundingRect();(e=e||i.clone()).union(i)}return e}(e)}));var o=Tt(),r=[];return Z(i.regions,function(t){var e=t.name;n&&n.hasOwnProperty(e)&&(t=t.cloneShallow(e=n[e])),r.push(t),o.set(e,t)}),{regions:r,boundingRect:i.boundingRect||new Qi(0,0,0,0),regionsMap:o}},cv.prototype._parseToRegions=function(t){var e,r=this._mapName,n=this._geoJSON;try{e=n?nv(n,t):[]}catch(t){throw new Error("Invalid geoJson format\n"+t.message)}return function(t,e){if("china"===t){for(var n=0;n<e.length;n++)if("南海诸岛"===e[n].name)return;e.push(new Z0("南海诸岛",j(ov,function(t){return{type:"polygon",exterior:t}}),iv))}}(r,e),Z(e,function(t){var e,n,i,o=t.name;n=t,"china"!==(e=r)||(i=sv[n.name])&&((e=n.getCenter())[0]+=i[0]/10.5,e[1]+=-i[1]/14,n.setCenter(e)),n=t,"world"!==(e=r)||(e=lv[n.name])&&(e=[e[0],e[1]],n.setCenter(e)),e=t,"china"===r&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:uv[0]});o=this._specialAreas&&this._specialAreas[o];o&&t.transformTo(o.left,o.top,o.width,o.height)},this),e},cv.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},cv);function cv(t,e,n){this.type="geoJSON",this._parsedMap=Tt(),this._mapName=t,this._specialAreas=n,this._geoJSON=it(e=e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var pv=Tt(),dv={registerMap:function(t,e,n){var i,n=e.svg?new K0(t,e.svg):((i=e.geoJson||e.geoJSON)&&!e.features?n=e.specialAreas:i=e,new hv(t,i,n));pv.set(t,n)},getGeoResource:function(t){return pv.get(t)},getMapForUser:function(t){t=pv.get(t);return t&&"geoJSON"===t.type&&t.getMapForUser()},load:function(t,e,n){t=pv.get(t);if(t)return t.load(e,n)}},fv=new ae,gv="undefined"!=typeof window,yv="5.2.2",mv={zrender:"5.2.1"},vv=2e3,xv=1e3,_v=3e3,bv={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:xv,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:_v,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},wv="__flagInMainProcess",Sv="__pendingUpdate",Mv="__needsUpdateStatus",Iv=/^[a-zA-Z0-9_]+$/,Tv="__connectUpdateStatus";function Cv(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!this.isDisposed())return Av(this,n,t);a1(this.id)}}function Dv(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Av(this,n,t)}}function Av(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),ae.prototype[e].apply(t,n)}var kv,Lv,Pv,Ov,Rv,Nv,zv,Ev,Vv,Bv,Gv,Fv,Hv,Wv,Uv,Xv,Yv,Zv,jv,qv,Kv=(y($v,qv=ae),$v),_i=Kv.prototype;function $v(){return null!==qv&&qv.apply(this,arguments)||this}_i.on=Dv("on"),_i.off=Dv("off");var Jv,Qv=(y(t1,Jv=ae),t1.prototype._onframe=function(){if(!this._disposed){jv(this);var t=this._scheduler;if(this[Sv]){var e=this[Sv].silent;this[wv]=!0,kv(this),Ov.update.call(this,null,this[Sv].updateParams),this._zr.flush(),this[wv]=!1,this[Sv]=null,Ev.call(this,e),Vv.call(this,e)}else if(t.unfinished){var n=1,i=this._model,o=this._api;t.unfinished=!1;do{var r=+new Date}while(t.performSeriesTasks(i),t.performDataProcessorTasks(i),Nv(this,i),t.performVisualTasks(i),Uv(this,this._model,o,"remain",{}),0<(n-=+new Date-r)&&t.unfinished);t.unfinished||this._zr.flush()}}},t1.prototype.getDom=function(){return this._dom},t1.prototype.getId=function(){return this.id},t1.prototype.getZr=function(){return this._zr},t1.prototype.setOption=function(t,e,n){var i,o,r,a,s;this._disposed?a1(this.id):(at(e)&&(n=e.lazyUpdate,i=e.silent,o=e.replaceMerge,s=e.transition,e=e.notMerge),this[wv]=!0,this._model&&!e||(r=new lp(this._api),a=this._theme,(e=this._model=new ep).scheduler=this._scheduler,e.init(null,null,null,a,this._locale,r)),this._model.setOption(t,{replaceMerge:o},h1),s={seriesTransition:s,optionChanged:!0},n?(this[Sv]={silent:i,updateParams:s},this[wv]=!1,this.getZr().wakeUp()):(kv(this),Ov.update.call(this,null,s),this._zr.flush(),this[Sv]=null,this[wv]=!1,Ev.call(this,i),Vv.call(this,i)))},t1.prototype.setTheme=function(){},t1.prototype.getModel=function(){return this._model},t1.prototype.getOption=function(){return this._model&&this._model.getOption()},t1.prototype.getWidth=function(){return this._zr.getWidth()},t1.prototype.getHeight=function(){return this._zr.getHeight()},t1.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||gv&&window.devicePixelRatio||1},t1.prototype.getRenderedCanvas=function(t){if(w.canvasSupported)return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},t1.prototype.getSvgDataURL=function(){if(w.svgSupported){var t=this._zr;return Z(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()}},t1.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,i=[],o=this;Z(e,function(t){n.eachComponent({mainType:t},function(t){t=o._componentsMap[t.__viewId];t.group.ignore||(i.push(t),t.group.ignore=!0)})});t="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Z(i,function(t){t.group.ignore=!1}),t}a1(this.id)},t1.prototype.getConnectedDataURL=function(i){if(this._disposed)a1(this.id);else if(w.canvasSupported){var o="svg"===i.type,r=this.group,a=Math.min,s=Math.max;if(g1[r]){var l=1/0,u=1/0,h=-1/0,c=-1/0,p=[],e=i&&i.pixelRatio||this.getDevicePixelRatio();Z(f1,function(t,e){var n;t.group===r&&(n=o?t.getZr().painter.getSvgDom().innerHTML:t.getRenderedCanvas(E(i)),t=t.getDom().getBoundingClientRect(),l=a(t.left,l),u=a(t.top,u),h=s(t.right,h),c=s(t.bottom,c),p.push({dom:n,left:t.left,top:t.top}))});var t=(h*=e)-(l*=e),n=(c*=e)-(u*=e),d=H(),f=No(d,{renderer:o?"svg":"canvas"});if(f.resize({width:t,height:n}),o){var g="";return Z(p,function(t){var e=t.left-l,n=t.top-u;g+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),f.painter.getSvgRoot().innerHTML=g,i.connectedBackgroundColor&&f.painter.setBackgroundColor(i.connectedBackgroundColor),f.refreshImmediately(),f.painter.toDataURL()}return i.connectedBackgroundColor&&f.add(new rl({shape:{x:0,y:0,width:t,height:n},style:{fill:i.connectedBackgroundColor}})),Z(p,function(t){t=new qs({style:{x:t.left*e-l,y:t.top*e-u,image:t.dom}});f.add(t)}),f.refreshImmediately(),d.toDataURL("image/"+(i&&i.type||"png"))}return this.getDataURL(i)}},t1.prototype.convertToPixel=function(t,e){return Rv(this,"convertToPixel",t,e)},t1.prototype.convertFromPixel=function(t,e){return Rv(this,"convertFromPixel",t,e)},t1.prototype.containPixel=function(t,i){var o;if(!this._disposed)return Z(Cr(this._model,t),function(t,n){0<=n.indexOf("Models")&&Z(t,function(t){var e=t.coordinateSystem;e&&e.containPoint?o=o||!!e.containPoint(i):"seriesModels"!==n||(e=this._chartsMap[t.__viewId])&&e.containPoint&&(o=o||e.containPoint(i,t))},this)},this),!!o;a1(this.id)},t1.prototype.getVisual=function(t,e){var n=Cr(this._model,t,{defaultMainType:"series"}),t=n.seriesModel.getData(),n=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?t.indexOfRawIndex(n.dataIndex):null;return null!=n?mg(t,n,e):vg(t,e)},t1.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},t1.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},t1.prototype._initEvents=function(){var t,n,i,s=this;Z(r1,function(a){function t(t){var n,e,i,o=s.getModel(),r=t.target;"globalout"===a?n={}:r&&wg(r,function(t){var e=_l(t);if(e&&null!=e.dataIndex){t=e.dataModel||o.getSeriesByIndex(e.seriesIndex);return n=t&&t.getDataParams(e.dataIndex,e.dataType)||{},1}return e.eventData&&(n=G({},e.eventData),1)},!0),n&&(e=n.componentType,i=n.componentIndex,"markLine"!==e&&"markPoint"!==e&&"markArea"!==e||(e="series",i=n.seriesIndex),i=(e=e&&null!=i&&o.getComponent(e,i))&&s["series"===e.mainType?"_chartsMap":"_componentsMap"][e.__viewId],n.event=t,n.type=a,s._$eventProcessor.eventInfo={targetEl:r,packedEvent:n,model:e,view:i},s.trigger(a,n))}t.zrEventfulCallAtLast=!0,s._zr.on(a,t,s)}),Z(l1,function(t,e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),Z(["selectchanged"],function(e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),t=this._messageCenter,i=(n=this)._api,t.on("selectchanged",function(t){var e=i.getModel();t.isFromClick?(bg("map","selectchanged",n,e,t),bg("pie","selectchanged",n,e,t)):"select"===t.fromAction?(bg("map","selected",n,e,t),bg("pie","selected",n,e,t)):"unselect"===t.fromAction&&(bg("map","unselected",n,e,t),bg("pie","unselected",n,e,t))})},t1.prototype.isDisposed=function(){return this._disposed},t1.prototype.clear=function(){this._disposed?a1(this.id):this.setOption({series:[]},!0)},t1.prototype.dispose=function(){var t,e,n;this._disposed?a1(this.id):(this._disposed=!0,Pr(this.getDom(),v1,""),e=(t=this)._api,n=t._model,Z(t._componentsViews,function(t){t.dispose(n,e)}),Z(t._chartsViews,function(t){t.dispose(n,e)}),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete f1[t.id])},t1.prototype.resize=function(t){var e,n;this._disposed?a1(this.id):(this._zr.resize(t),n=this._model,this._loadingFX&&this._loadingFX.resize(),n&&(e=n.resetOption("media"),n=t&&t.silent,this[Sv]&&(null==n&&(n=this[Sv].silent),e=!0,this[Sv]=null),this[wv]=!0,e&&kv(this),Ov.update.call(this,{type:"resize",animation:G({duration:0},t&&t.animation)}),this[wv]=!1,Ev.call(this,n),Vv.call(this,n)))},t1.prototype.showLoading=function(t,e){this._disposed?a1(this.id):(at(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),d1[t]&&(t=d1[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},t1.prototype.hideLoading=function(){this._disposed?a1(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t1.prototype.makeActionFromEvent=function(t){var e=G({},t);return e.type=l1[t.type],e},t1.prototype.dispatchAction=function(t,e){var n;this._disposed?a1(this.id):(at(e)||(e={silent:!!e}),s1[t.type]&&this._model&&(this[wv]?this._pendingActions.push(t):(n=e.silent,zv.call(this,t,n),(e=e.flush)?this._zr.flush():!1!==e&&w.browser.weChat&&this._throttledZrFlush(),Ev.call(this,n),Vv.call(this,n))))},t1.prototype.updateLabelLayout=function(){fv.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t1.prototype.appendData=function(t){var e;this._disposed?a1(this.id):(e=t.seriesIndex,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp())},t1.internalField=(kv=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Lv(t,!0),Lv(t,!1),e.plan()},Lv=function(t,o){for(var r=t._model,a=t._scheduler,s=o?t._componentsViews:t._chartsViews,l=o?t._componentsMap:t._chartsMap,u=t._zr,h=t._api,e=0;e<s.length;e++)s[e].__alive=!1;function n(t){var e=t.__requireNewView;t.__requireNewView=!1;var n="_ec_"+t.id+"_"+t.type,i=!e&&l[n];i||(e=Vr(t.type),(i=new(o?If.getClass(e.main,e.sub):Nf.getClass(e.sub))).init(r,h),l[n]=i,s.push(i),u.add(i.group)),t.__viewId=i.__id=n,i.__alive=!0,i.__model=t,i.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},o||a.prepareView(i,t,r,h)}for(o?r.eachComponent(function(t,e){"series"!==t&&n(e)}):r.eachSeries(n),e=0;e<s.length;){var i=s[e];i.__alive?e++:(o||i.renderTask.dispose(),u.remove(i.group),i.dispose(r,h),s.splice(e,1),l[i.__id]===i&&delete l[i.__id],i.__id=i.group.__ecComponentInfo=null)}},Pv=function(r,e,a,n,t){var i,s,o=r._model;function l(t){t&&t.__alive&&t[e]&&t[e](t.__model,o,r._api,a)}o.setUpdatePayload(a),n?((i={})[n+"Id"]=a[n+"Id"],i[n+"Index"]=a[n+"Index"],i[n+"Name"]=a[n+"Name"],i={mainType:n,query:i},t&&(i.subType=t),null!=(t=a.excludeSeriesId)&&(s=Tt(),Z(dr(t),function(t){t=_r(t,null);null!=t&&s.set(t,!0)})),vu(a)&&ru(r._api),o&&o.eachComponent(i,function(t){var e,n,i,o;s&&null!==s.get(t.id)||(vu(a)?t instanceof Sf?a.type!==Al||a.notBlur||function(t,e,n){var i,o=t.seriesIndex,r=t.getData(e.dataType),e=(et(e=Mr(r,e))?e[0]:e)||0,a=r.getItemGraphicEl(e);if(!a)for(var s=r.count(),l=0;!a&&l<s;)a=r.getItemGraphicEl(l++);a?au(o,(i=_l(a)).focus,i.blurScope,n):(i=t.get(["emphasis","focus"]),t=t.get(["emphasis","blurScope"]),null!=i&&au(o,i,t,n))}(t,a,r._api):(i=(n=lu(t.mainType,t.componentIndex,a.name,r._api)).focusSelf,o=n.dispatchers,a.type===Al&&i&&!a.notBlur&&su(t.mainType,t.componentIndex,r._api),o&&Z(o,function(t){(a.type===Al?Jl:Ql)(t)})):mu(a)&&t instanceof Sf&&(e=t,n=a,r._api,mu(n)&&(i=n.dataType,et(o=Mr(e.getData(i),n))||(o=[o]),e[n.type===Ol?"toggleSelect":n.type===Ll?"select":"unselect"](o,i)),uu(t),Zv(r)))},r),o&&o.eachComponent(i,function(t){s&&null!==s.get(t.id)||l(r["series"===n?"_chartsMap":"_componentsMap"][t.__viewId])},r)):Z([].concat(r._componentsViews).concat(r._chartsViews),l)},Ov={prepareAndUpdate:function(t){kv(this),Ov.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(t,e){var n=this._model,i=this._api,o=this._zr,r=this._coordSysMgr,a=this._scheduler;n&&(n.setUpdatePayload(t),a.restoreData(n,t),a.performSeriesTasks(n),r.create(n,i),a.performDataProcessorTasks(n,t),Nv(this,n),r.update(n,i),Fv(n),a.performVisualTasks(n,t),Hv(this,n,i,t,e),t=n.get("backgroundColor")||"transparent",e=n.get("darkMode"),w.canvasSupported?(o.setBackgroundColor(t),null!=e&&"auto"!==e&&o.setDarkMode(e)):(t=Rn(e=Mn(t),"rgb"),0===e[3]&&(t="transparent")),fv.trigger("afterupdate",n,i))},updateTransform:function(n){var i,o,r=this,a=this._model,s=this._api;a&&(a.setUpdatePayload(n),i=[],a.eachComponent(function(t,e){"series"===t||(t=r.getViewOfComponentModel(e))&&t.__alive&&(!t.updateTransform||(e=t.updateTransform(e,a,s,n))&&e.update)&&i.push(t)}),o=Tt(),a.eachSeries(function(t){var e=r._chartsMap[t.__viewId];(!e.updateTransform||(e=e.updateTransform(t,a,s,n))&&e.update)&&o.set(t.uid,1)}),Fv(a),this._scheduler.performVisualTasks(a,n,{setDirty:!0,dirtyMap:o}),Uv(this,a,s,n,{},o),fv.trigger("afterupdate",a,s))},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),Nf.markUpdateMethod(t,"updateView"),Fv(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),Hv(this,e,this._api,t,{}),fv.trigger("afterupdate",e,this._api))},updateVisual:function(n){var i=this,o=this._model;o&&(o.setUpdatePayload(n),o.eachSeries(function(t){t.getData().clearAllVisual()}),Nf.markUpdateMethod(n,"updateVisual"),Fv(o),this._scheduler.performVisualTasks(o,n,{visualType:"visual",setDirty:!0}),o.eachComponent(function(t,e){"series"===t||(t=i.getViewOfComponentModel(e))&&t.__alive&&t.updateVisual(e,o,i._api,n)}),o.eachSeries(function(t){i._chartsMap[t.__viewId].updateVisual(t,o,i._api,n)}),fv.trigger("afterupdate",o,this._api))},updateLayout:function(t){Ov.update.call(this,t)}},Rv=function(t,e,n,i){if(t._disposed)a1(t.id);else for(var o,r=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=Cr(r,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(o=u[e](r,s,i)))return o}},Nv=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},zv=function(i,t){var o=this,e=this.getModel(),n=i.type,r=i.escapeConnect,a=s1[n],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),h=null!=l[0]&&Vr(l[0]);this[wv]=!0;var c=[i],l=!1;i.batch&&(l=!0,c=j(i.batch,function(t){return(t=F(G({},t),i)).batch=null,t}));var p,d,f=[],g=mu(i),y=vu(i);Z(c,function(t){var e,n;(p=(p=a.action(t,o._model,o._api))||G({},t)).type=s.event||p.type,f.push(p),y?(n=(e=Dr(i)).queryOptionMap,n=e.mainTypeSpecified?n.keys()[0]:"series",Pv(o,u,t,n),Zv(o)):g?(Pv(o,u,t,"series"),Zv(o)):h&&Pv(o,u,t,h.main,h.sub)}),"none"===u||y||g||h||(this[Sv]?(kv(this),Ov.update.call(this,i),this[Sv]=null):Ov[u].call(this,i)),p=l?{type:s.event||n,escapeConnect:r,batch:f}:f[0],this[wv]=!1,t||((t=this._messageCenter).trigger(p.type,p),g&&(e={type:"selectchanged",escapeConnect:r,selected:(d=[],e.eachSeries(function(n){Z(n.getAllData(),function(t){t.data;var e=t.type,t=n.getSelectedDataIndices();0<t.length&&(t={dataIndex:t,seriesIndex:n.seriesIndex},null!=e&&(t.dataType=e),d.push(t))})}),d),isFromClick:i.isFromClick||!1,fromAction:i.type,fromActionPayload:i},t.trigger(e.type,e)))},Ev=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();zv.call(this,n,t)}},Vv=function(t){t||this.trigger("updated")},Bv=function(e,n){e.on("rendered",function(t){n.trigger("rendered",t),!e.animation.isFinished()||n[Sv]||n._scheduler.unfinished||n._pendingActions.length||n.trigger("finished")})},Gv=function(t,a){t.on("mouseover",function(t){var e,n,i,o,r=wg(t.target,yu);r&&(e=r,n=t,i=a._api,o=_l(e),t=(r=lu(o.componentMainType,o.componentIndex,o.componentHighDownName,i)).dispatchers,r=r.focusSelf,t?(r&&su(o.componentMainType,o.componentIndex,i),Z(t,function(t){return Kl(t,n)})):(au(o.seriesIndex,o.focus,o.blurScope,i),"self"===o.focus&&su(o.componentMainType,o.componentIndex,i),Kl(e,n)),Zv(a))}).on("mouseout",function(t){var e=wg(t.target,yu);e&&(function(t,e,n){ru(n);var i=_l(t);(n=lu(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers)?Z(n,function(t){return $l(t,e)}):$l(t,e)}(e,t,a._api),Zv(a))}).on("click",function(t){var e=wg(t.target,function(t){return null!=_l(t).dataIndex},!0);e&&(t=e.selected?"unselect":"select",e=_l(e),a._api.dispatchAction({type:t,dataType:e.dataType,dataIndexInside:e.dataIndex,seriesIndex:e.seriesIndex,isFromClick:!0}))})},Fv=function(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})},Hv=function(t,e,n,i,o){Wv(t,e,n,i,o),Z(t._chartsViews,function(t){t.__alive=!1}),Uv(t,e,n,i,o),Z(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},Wv=function(t,n,i,o,e,r){Z(r||t._componentsViews,function(t){var e=t.__model;i1(0,t),t.render(e,n,i,o),n1(e,t),o1(e,t)})},Uv=function(o,t,e,r,n,a){var s=o._scheduler;n=G(n||{},{updatedSeries:t.getSeries()}),fv.trigger("series:beforeupdate",t,e,n);var i,l,u,h,c=!1;t.eachSeries(function(t){var e=o._chartsMap[t.__viewId];e.__alive=!0;var n,i=e.renderTask;s.updatePayload(i,r),i1(0,e),a&&a.get(t.uid)&&i.dirty(),i.perform(s.getPerformArgs(i))&&(c=!0),e.group.silent=!!t.get("silent"),e=e,n=t.get("blendMode")||null,e.group.traverse(function(t){t.isGroup||(t.style.blend=n),t.eachPendingDisplayable&&t.eachPendingDisplayable(function(t){t.style.blend=n})}),uu(t)}),s.unfinished=c||s.unfinished,fv.trigger("series:layoutlabels",t,e,n),fv.trigger("series:transition",t,e,n),t.eachSeries(function(t){var e=o._chartsMap[t.__viewId];n1(t,e),o1(t,e)}),l=t,u=(i=o)._zr.storage,h=0,u.traverse(function(t){t.isGroup||h++}),h>l.get("hoverLayerThreshold")&&!w.node&&!w.worker&&l.eachSeries(function(t){t.preventUsingHoverLayer||(t=i._chartsMap[t.__viewId]).__alive&&t.group.traverse(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}),fv.trigger("series:afterupdate",t,e,n)},Zv=function(t){t[Mv]=!0,t.getZr().wakeUp()},jv=function(t){t[Mv]&&(t.getZr().storage.traverse(function(t){Mu(t)||e1(t)}),t[Mv]=!1)},Xv=function(n){return y(t,e=tp),t.prototype.getCoordinateSystems=function(){return n._coordSysMgr.getCoordinateSystems()},t.prototype.getComponentByElement=function(t){for(;t;){var e=t.__ecComponentInfo;if(null!=e)return n._model.getComponent(e.mainType,e.index);t=t.parent}},t.prototype.enterEmphasis=function(t,e){Jl(t,e),Zv(n)},t.prototype.leaveEmphasis=function(t,e){Ql(t,e),Zv(n)},t.prototype.enterBlur=function(t){tu(t),Zv(n)},t.prototype.leaveBlur=function(t){eu(t),Zv(n)},t.prototype.enterSelect=function(t){nu(t),Zv(n)},t.prototype.leaveSelect=function(t){iu(t),Zv(n)},t.prototype.getModel=function(){return n.getModel()},t.prototype.getViewOfComponentModel=function(t){return n.getViewOfComponentModel(t)},t.prototype.getViewOfSeriesModel=function(t){return n.getViewOfSeriesModel(t)},new t(n);function t(){return null!==e&&e.apply(this,arguments)||this}var e},void(Yv=function(i){function o(t,e){for(var n=0;n<t.length;n++)t[n][Tv]=e}Z(l1,function(t,e){i._messageCenter.on(e,function(t){var e,n;g1[i.group]&&0!==i[Tv]&&(t&&t.escapeConnect||(e=i.makeActionFromEvent(t),n=[],Z(f1,function(t){t!==i&&t.group===i.group&&n.push(t)}),o(n,0),Z(n,function(t){1!==t[Tv]&&t.dispatchAction(e)}),o(n,2)))})})})),t1),_i=Qv.prototype;function t1(t,e,n){var i=Jv.call(this,new gg)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},"string"==typeof e&&(e=p1[e]),i._dom=t;t=i._zr=No(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,useDirtyRect:null!=n.useDirtyRect&&n.useDirtyRect});i._throttledZrFlush=Bf(Q(t.flush,t),17),(e=E(e))&&Cp(e,!0),i._theme=e,i._locale=function(t){if(it(t)){var e=sh[t.toUpperCase()]||{};return t===oh||t===rh?E(e):V(E(e),E(sh[ah]),!1)}return V(E(t),E(sh[ah]),!1)}(n.locale||uh),i._coordSysMgr=new op;n=i._api=Xv(i);function o(t,e){return t.__prio-e.__prio}return je(c1,o),je(u1,o),i._scheduler=new dg(i,n,u1,c1),i._messageCenter=new Kv,i._initEvents(),i.resize=Q(i.resize,i),t.animation.on("frame",i._onframe,i),Bv(t,i),Gv(t,i),wt(i),i}function e1(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var o=n[i];"emphasis"!==o&&"blur"!==o&&"select"!==o&&e.push(o)}t.selected&&t.states.select&&e.push("select"),t.hoverState===Tl&&t.states.emphasis?e.push("emphasis"):t.hoverState===Il&&t.states.blur&&e.push("blur"),t.useStates(e)}function n1(t,e){t.preventAutoZ||function t(e,n,i,o){var r=e.getTextContent(),a=e.getTextGuideLine(),s=e.isGroup;if(s)for(var l=e.childrenRef(),u=0;u<l.length;u++)o=Math.max(t(l[u],n,i,o),o);else e.z=n,e.zlevel=i,o=Math.max(e.z2,o);r&&(r.z=n,r.zlevel=i,isFinite(o)&&(r.z2=o+2)),a&&(e=e.textGuideLineConfig,a.z=n,a.zlevel=i,isFinite(o)&&(a.z2=o+(e&&e.showAbove?1:-1)));return o}(e.group,t.get("z")||0,t.get("zlevel")||0,-1/0)}function i1(t,e){e.group.traverse(function(t){var e,n;Mu(t)||(e=t.getTextContent(),n=t.getTextGuideLine(),t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null))})}function o1(t,e){var n=t.getModel("stateAnimation"),o=t.isAnimationEnabled(),t=n.get("duration"),r=0<t?{duration:t,delay:n.get("delay"),easing:n.get("easing")}:null;e.group.traverse(function(t){var e,n,i;t.states&&t.states.emphasis&&(Mu(t)||(t instanceof Bs&&((i=Sl(n=t)).normalFill=n.style.fill,i.normalStroke=n.style.stroke,n=n.states.select||{},i.selectFill=n.style&&n.style.fill||null,i.selectStroke=n.style&&n.style.stroke||null),t.__dirty&&(e=t.prevStates)&&t.useStates(e),o&&(t.stateTransition=r,n=t.getTextContent(),e=t.getTextGuideLine(),n&&(n.stateTransition=r),e&&(e.stateTransition=r)),t.__dirty&&e1(t)))})}_i.on=Cv("on"),_i.off=Cv("off"),_i.one=function(i,o,t){var r=this;this.on.call(this,i,function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];o&&o.apply&&o.apply(this,e),r.off(i,t)},t)};var r1=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function a1(){}var s1={},l1={},u1=[],h1=[],c1=[],p1={},d1={},f1={},g1={},y1=+new Date,m1=+new Date,v1="_echarts_instance_";function x1(t,e,n){var i=M1(t);if(i)return i;n=new Qv(t,e,n);return n.id="ec_"+y1++,f1[n.id]=n,Pr(t,v1,n.id),Yv(n),fv.trigger("afterinit",n),n}function _1(e){var t;return et(e)&&(t=e,e=null,Z(t,function(t){null!=t.group&&(e=t.group)}),e=e||"g_"+m1++,Z(t,function(t){t.group=e})),g1[e]=!0,e}function b1(t){g1[t]=!1}var w1=b1;function S1(t){"string"==typeof t?t=f1[t]:t instanceof Qv||(t=M1(t)),t instanceof Qv&&!t.isDisposed()&&t.dispose()}function M1(t){return f1[e=v1,(t=t).getAttribute?t.getAttribute(e):t[e]];var e}function I1(t){return f1[t]}function T1(t,e){p1[t]=e}function C1(t){W(h1,t)<0&&h1.push(t)}function D1(t,e){V1(u1,t,e,vv)}function A1(t){L1("afterinit",t)}function k1(t){L1("afterupdate",t)}function L1(t,e){fv.on(t,e)}function P1(t,e,n){"function"==typeof e&&(n=e,e="");var i=at(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,l1[e]||(xt(Iv.test(i)&&Iv.test(e)),s1[i]||(s1[i]={action:n,actionInfo:t}),l1[e]=i)}function O1(t,e){op.register(t,e)}function R1(t){t=op.get(t);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function N1(t,e){V1(c1,t,e,xv,"layout")}function z1(t,e){V1(c1,t,e,_v,"visual")}var E1=[];function V1(t,e,n,i,o){(nt(e)||at(e))&&(n=e,e=i),0<=W(E1,n)||(E1.push(n),(o=dg.wrapStageHandler(n,o)).__prio=e,o.__raw=n,t.push(o))}function B1(t,e){d1[t]=e}function G1(t){O("createCanvas",t)}function F1(t,e,n){dv.registerMap(t,e,n)}function H1(t){return dv.getMapForUser(t)}var W1=function(t){var e=(t=E(t)).type;e||Zc("");var n=e.split(":");2!==n.length&&Zc("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,Ad.set(e,t)};z1(2e3,x),z1(4500,_o),z1(4500,To),z1(2e3,n),z1(4500,Zr),z1(7e3,function(e,i){e.eachRawSeries(function(t){var n;e.isSeriesFiltered(t)||((n=t.getData()).hasItemVisual()&&n.each(function(t){var e=n.getItemVisual(t,"decal");e&&(n.ensureUniqueItemVisual(t,"style").decal=m0(e,i))}),(t=n.getVisual("decal"))&&(n.getVisual("style").decal=m0(t,i)))})}),C1(Cp),D1(900,function(t){var i=Tt();t.eachSeries(function(t){var e,n=t.get("stack");n&&(e=i.get(n)||i.set(n,[]),(t={stackResultDimension:(n=t.getData()).getCalculationInfo("stackResultDimension"),stackedOverDimension:n.getCalculationInfo("stackedOverDimension"),stackedDimension:n.getCalculationInfo("stackedDimension"),stackedByDimension:n.getCalculationInfo("stackedByDimension"),isStackedByIndex:n.getCalculationInfo("isStackedByIndex"),data:n,seriesModel:t}).stackedDimension&&(t.isStackedByIndex||t.stackedByDimension)&&(e.length&&n.setCalculationInfo("stackedOnSeries",e[e.length-1].seriesModel),e.push(t)))}),i.each(Dp)}),B1("default",function(i,o){F(o=o||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Ao,r=new rl({style:{fill:o.maskColor},zlevel:o.zlevel,z:1e4});t.add(r);var a,s=new xl({style:{text:o.text,fill:o.textColor,fontSize:o.fontSize,fontWeight:o.fontWeight,fontStyle:o.fontStyle,fontFamily:o.fontFamily},zlevel:o.zlevel,z:10001}),l=new rl({style:{fill:"none"},textContent:s,textConfig:{position:"right",distance:10},zlevel:o.zlevel,z:10001});return t.add(l),o.showSpinner&&((a=new Kf({shape:{startAngle:-$f/2,endAngle:-$f/2+.1,r:o.spinnerRadius},style:{stroke:o.color,lineCap:"round",lineWidth:o.lineWidth},zlevel:o.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*$f/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*$f/2}).delay(300).start("circularInOut"),t.add(a)),t.resize=function(){var t=s.getBoundingRect().width,e=o.showSpinner?o.spinnerRadius:0,n=(i.getWidth()-2*e-(o.showSpinner&&t?10:0)-t)/2-(o.showSpinner&&t?0:5+t/2)+(o.showSpinner?0:t/2)+(t?0:e),t=i.getHeight()/2;o.showSpinner&&a.setShape({cx:n,cy:t}),l.setShape({x:n-e,y:t-e,width:2*e,height:2*e}),r.setShape({x:0,y:0,width:i.getWidth(),height:i.getHeight()})},t.resize(),t}),P1({type:Al,event:Al,update:Al},kt),P1({type:kl,event:kl,update:kl},kt),P1({type:Ll,event:Ll,update:Ll},kt),P1({type:Pl,event:Pl,update:Pl},kt),P1({type:Ol,event:Ol,update:Ol},kt),T1("light",k),T1("dark",Co);var U1={},X1=[],Y1={registerPreprocessor:C1,registerProcessor:D1,registerPostInit:A1,registerPostUpdate:k1,registerUpdateLifecycle:L1,registerAction:P1,registerCoordinateSystem:O1,registerLayout:N1,registerVisual:z1,registerTransform:W1,registerLoading:B1,registerMap:F1,PRIORITY:bv,ComponentModel:xc,ComponentView:If,SeriesModel:Sf,ChartView:Nf,registerComponentModel:function(t){xc.registerClass(t)},registerComponentView:function(t){If.registerClass(t)},registerSeriesModel:function(t){Sf.registerClass(t)},registerChartView:function(t){Nf.registerClass(t)},registerSubTypeDefaulter:function(t,e){xc.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Bo(t,e)}};function Z1(t){et(t)?Z(t,function(t){Z1(t)}):0<=W(X1,t)||(X1.push(t),(t=nt(t)?{install:t}:t).install(Y1))}function j1(t){return null==t?0:t.length||1}function q1(t){return t}var K1=(Q1.prototype.add=function(t){return this._add=t,this},Q1.prototype.update=function(t){return this._update=t,this},Q1.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},Q1.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},Q1.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},Q1.prototype.remove=function(t){return this._remove=t,this},Q1.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},Q1.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var r=0;r<t.length;r++){var a,s=i[r],l=n[s],u=j1(l);1<u?(a=l.shift(),1===l.length&&(n[s]=l[0]),this._update&&this._update(a,r)):1===u?(n[s]=null,this._update&&this._update(l,r)):this._remove&&this._remove(r)}this._performRestAdd(o,n)},Q1.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},o=[],r=[];this._initIndexMap(t,n,o,"_oldKeyGetter"),this._initIndexMap(e,i,r,"_newKeyGetter");for(var a=0;a<o.length;a++){var s=o[a],l=n[s],u=i[s],h=j1(l),c=j1(u);if(1<h&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===h&&1<c)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),i[s]=null;else if(1<h&&1<c)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(1<h)for(var p=0;p<h;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(r,i)},Q1.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],o=e[i],r=j1(o);if(1<r)for(var a=0;a<r;a++)this._add&&this._add(o[a]);else 1===r&&this._add&&this._add(o);e[i]=null}},Q1.prototype._initIndexMap=function(t,e,n,i){for(var o=this._diffModeMultiple,r=0;r<t.length;r++){var a,s,l="_ec_"+this[i](t[r],r);o||(n[r]=l),e&&(0===(s=j1(a=e[l]))?(e[l]=r,o&&n.push(l)):1===s?e[l]=[a,r]:a.push(r))}},Q1),$1=(J1.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},J1.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},J1);function J1(t,e){this._encode=t,this._schema=e}function Q1(t,e,n,i,o,r){this._old=t,this._new=e,this._oldKeyGetter=n||q1,this._newKeyGetter=i||q1,this.context=o,this._diffModeMultiple="multiple"===r}function tx(r,t){var e={},a=e.encode={},s=Tt(),l=[],u=[],h={};Z(r.dimensions,function(t){var e,n,i=r.getDimensionInfo(t),o=i.coordDim;o&&(e=i.coordDimIndex,ex(a,o)[e]=t,i.isExtraCoord||(s.set(o,1),"ordinal"===(n=i.type)||"time"===n||(l[0]=t),ex(h,o)[e]=r.getDimensionIndex(i.name)),i.defaultTooltip&&u.push(t)),bc.each(function(t,e){var n=ex(a,e),e=i.otherDims[e];null!=e&&!1!==e&&(n[e]=i.name)})});var i=[],o={};s.each(function(t,e){var n=a[e];o[e]=n[0],i=i.concat(n)}),e.dataDimsOnCoord=i,e.dataDimIndicesOnCoord=j(i,function(t){return r.getDimensionInfo(t).storeDimIndex}),e.encodeFirstDimNotExtra=o;var n=a.label;n&&n.length&&(l=n.slice());n=a.tooltip;return n&&n.length?u=n.slice():u.length||(u=l.slice()),a.defaultedLabel=l,a.defaultedTooltip=u,e.userOutput=new $1(h,t),e}function ex(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function nx(t){return"category"===t?"ordinal":"time"===t?"time":"float"}var ix=function(t){this.otherDims={},null!=t&&G(this,t)},ox=Ir(),rx={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},ax=(sx.prototype.isDimensionOmitted=function(){return this._dimOmitted},sx.prototype._updateDimOmitted=function(t){(this._dimOmitted=t)&&(this._dimNameMap||(this._dimNameMap=hx(this.source)))},sx.prototype.getSourceDimensionIndex=function(t){return gt(this._dimNameMap.get(t),-1)},sx.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},sx.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Vp(this.source),n=!(30<t),i="",o=[],r=0,a=0;r<t;r++){var s,l=void 0,u=void 0,h=void 0,c=this.dimensions[a];c&&c.storeDimIndex===r?(l=e?c.name:null,u=c.type,h=c.ordinalMeta,a++):(s=this.getSourceDimension(r))&&(l=e?s.name:null,u=s.type),o.push({property:l,type:u,ordinalMeta:h}),!e||null==l||c&&c.isCalculationCoord||(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=rx[u]||"f",h&&(i+=h.uid),i+="$"}var p=this.source;return{dimensions:o,hash:[p.seriesLayoutBy,p.startIndex,i].join("$$")}},sx.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,o=this.dimensions[n];o&&o.storeDimIndex===e?(o.isCalculationCoord||(i=o.name),n++):(o=this.getSourceDimension(e))&&(i=o.name),t.push(i)}return t},sx.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},sx);function sx(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}function lx(t){return t instanceof ax}function ux(t){for(var e=Tt(),n=0;n<(t||[]).length;n++){var i=t[n],i=at(i)?i.name:i;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function hx(t){var e=ox(t);return e.dimNameMap||(e.dimNameMap=ux(t.dimensionsDefine))}var cx,px,dx,fx,gx,yx,mx,vx=at,xx=j,_x="undefined"==typeof Int32Array?Array:Int32Array,bx=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Sx=["_approximateExtent"],Mx=(Ix.prototype.getDimension=function(t){if(null==(e=this._recognizeDimIndex(t)))return t;if(e=t,!this._dimOmitted)return this.dimensions[e];t=this._dimIdxToName.get(e);if(null!=t)return t;var e=this._schema.getSourceDimension(e);return e?e.name:void 0},Ix.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;e=this._getDimInfo(t);return e?e.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},Ix.prototype._recognizeDimIndex=function(t){if("number"==typeof t||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},Ix.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},Ix.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},Ix.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},Ix.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},Ix.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];t=n.encode[t];return t?t[e]:null},Ix.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},Ix.prototype.getStore=function(){return this._store},Ix.prototype.initData=function(t,e,n){var i,o,r=this;(i=t instanceof Gd?t:i)||(o=this.dimensions,t=Pp(t)||Y(t)?new Gp(t,o.length):t,i=new Gd,o=xx(o,function(t){return{type:r._dimInfos[t].type,property:t}}),i.initData(t,o,n)),this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=tx(this,this._schema),this.userOutput=this._dimSummary.userOutput},Ix.prototype.appendData=function(t){t=this._store.appendData(t);this._doInit(t[0],t[1])},Ix.prototype.appendValues=function(t,e){var t=this._store.appendValues(t,e.length),n=t.start,i=t.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var r=n;r<i;r++)this._nameList[r]=e[r-n],o&&mx(this,r)},Ix.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},Ix.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==Tc&&!t.fillStorage},Ix.prototype._doInit=function(t,e){if(!(e<=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList;if(n.getSource().sourceFormat===wc&&!n.pure)for(var r=[],a=t;a<e;a++){var s,l=n.getItem(a,r);this.hasItemOption||!at(u=l)||u instanceof Array||(this.hasItemOption=!0),l&&(s=l.name,null==i[a]&&null!=s&&(i[a]=_r(s,null)),l=l.id,null==o[a]&&null!=l&&(o[a]=_r(l,null)))}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)mx(this,a);cx(this)}var u},Ix.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},Ix.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},Ix.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},Ix.prototype.setCalculationInfo=function(t,e){vx(t)?G(this._calculationInfo,t):this._calculationInfo[t]=e},Ix.prototype.getName=function(t){var e=this.getRawIndex(t),t=this._nameList[e];return t=null==(t=null==t&&null!=this._nameDimIdx?dx(this,this._nameDimIdx,e):t)?"":t},Ix.prototype._getCategory=function(t,e){e=this._store.get(t,e),t=this._store.getOrdinalMeta(t);return t?t.categories[e]:e},Ix.prototype.getId=function(t){return px(this,this.getRawIndex(t))},Ix.prototype.count=function(){return this._store.count()},Ix.prototype.get=function(t,e){var n=this._store,t=this._dimInfos[t];if(t)return n.get(t.storeDimIndex,e)},Ix.prototype.getByRawIndex=function(t,e){var n=this._store,t=this._dimInfos[t];if(t)return n.getByRawIndex(t.storeDimIndex,e)},Ix.prototype.getIndices=function(){return this._store.getIndices()},Ix.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},Ix.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},Ix.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},Ix.prototype.getValues=function(t,e){var n=this,i=this._store;return et(t)?i.getValues(xx(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},Ix.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},Ix.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},Ix.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},Ix.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},Ix.prototype.rawIndexOf=function(t,e){e=(t&&this._invertedIndicesMap[t])[e];return null==e||isNaN(e)?-1:e},Ix.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},Ix.prototype.each=function(t,e,n){"function"==typeof t&&(n=e,e=t,t=[]);n=n||this,t=xx(fx(t),this._getStoreDimIndex,this);this._store.each(t,n?Q(e,n):e)},Ix.prototype.filterSelf=function(t,e,n){"function"==typeof t&&(n=e,e=t,t=[]);n=n||this,t=xx(fx(t),this._getStoreDimIndex,this);return this._store=this._store.filter(t,n?Q(e,n):e),this},Ix.prototype.selectRange=function(n){var i=this,o={},t=J(n),r=[];return Z(t,function(t){var e=i._getStoreDimIndex(t);o[e]=n[t],r.push(e)}),this._store=this._store.selectRange(o),this},Ix.prototype.mapArray=function(t,e,n){"function"==typeof t&&(n=e,e=t,t=[]);var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n=n||this),i},Ix.prototype.map=function(t,e,n,i){n=n||i||this,i=xx(fx(t),this._getStoreDimIndex,this),t=yx(this);return t._store=this._store.map(i,n?Q(e,n):e),t},Ix.prototype.modify=function(t,e,n,i){i=n||i||this,t=xx(fx(t),this._getStoreDimIndex,this);this._store.modify(t,i?Q(e,i):e)},Ix.prototype.downSample=function(t,e,n,i){var o=yx(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),o},Ix.prototype.lttbDownSample=function(t,e){var n=yx(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},Ix.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},Ix.prototype.getItemModel=function(t){var e=this.hostModel,t=this.getRawDataItem(t);return new th(t,e,e&&e.ecModel)},Ix.prototype.diff=function(e){var n=this;return new K1(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return px(e,t)},function(t){return px(n,t)})},Ix.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},Ix.prototype.setVisual=function(t,e){this._visual=this._visual||{},vx(t)?G(this._visual,t):this._visual[t]=e},Ix.prototype.getItemVisual=function(t,e){t=this._itemVisuals[t],t=t&&t[e];return null==t?this.getVisual(e):t},Ix.prototype.hasItemVisual=function(){return 0<this._itemVisuals.length},Ix.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t],t=(i=i||(n[t]={}))[e];return null==t&&(et(t=this.getVisual(e))?t=t.slice():vx(t)&&(t=G({},t)),i[e]=t),t},Ix.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,vx(e)?G(i,e):i[e]=n},Ix.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},Ix.prototype.setLayout=function(t,e){if(vx(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},Ix.prototype.getLayout=function(t){return this._layout[t]},Ix.prototype.getItemLayout=function(t){return this._itemLayouts[t]},Ix.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?G(this._itemLayouts[t]||{},e):e},Ix.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},Ix.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;vl(n,this.dataType,t,e),this._graphicEls[t]=e},Ix.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},Ix.prototype.eachItemGraphicEl=function(n,i){Z(this._graphicEls,function(t,e){t&&n&&n.call(i,t,e)})},Ix.prototype.cloneShallow=function(t){return t=t||new Ix(this._schema||xx(this.dimensions,this._getDimInfo,this),this.hostModel),gx(t,this),t._store=this._store,t},Ix.prototype.wrapMethod=function(t,e){var n=this[t];"function"==typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(mt(arguments)))})},Ix.internalField=(cx=function(a){var s=a._invertedIndicesMap;Z(s,function(t,e){var n=a._dimInfos[e],i=n.ordinalMeta,o=a._store;if(i){t=s[e]=new _x(i.categories.length);for(var r=0;r<t.length;r++)t[r]=-1;for(r=0;r<o.count();r++)t[o.get(n.storeDimIndex,r)]=r}})},dx=function(t,e,n){return _r(t._getCategory(e,n),null)},px=function(t,e){var n=t._idList[e];return n=null==(n=null==n&&null!=t._idDimIdx?dx(t,t._idDimIdx,e):n)?"e\0\0"+e:n},fx=function(t){return t=!et(t)?null!=t?[t]:[]:t},yx=function(t){var e=new Ix(t._schema||xx(t.dimensions,t._getDimInfo,t),t.hostModel);return gx(e,t),e},gx=function(e,n){Z(bx.concat(n.__wrappedMethods||[]),function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e.__wrappedMethods=n.__wrappedMethods,Z(Sx,function(t){e[t]=E(n[t])}),e._calculationInfo=G({},n._calculationInfo)},void(mx=function(t,e){var n=t._nameList,i=t._idList,o=t._nameDimIdx,r=t._idDimIdx,a=n[e],s=i[e];null==a&&null!=o&&(n[e]=a=dx(t,o,e)),null==s&&null!=r&&(i[e]=s=dx(t,r,e)),null==s&&null!=a&&(s=a,1<(a=(t=t._nameRepeatCount)[a]=(t[a]||0)+1)&&(s+="__ec__"+a),i[e]=s)})),Ix);function Ix(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"];var n=!(this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"]);lx(t)?(o=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,o=t);for(var i,o=o||["x","y"],r={},a=[],s={},l=!1,u={},h=0;h<o.length;h++){var c=o[h],p=it(c)?new ix({name:c}):c instanceof ix?c:new ix(c),d=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=d,p.coordDimIndex=0);c=p.otherDims=p.otherDims||{};a.push(d),r[d]=p,null!=u[d]&&(l=!0),p.createInvertedIndices&&(s[d]=[]),0===c.itemName&&(this._nameDimIdx=h),0===c.itemId&&(this._idDimIdx=h),n&&(p.storeDimIndex=h)}this.dimensions=a,this._dimInfos=r,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted&&(i=this._dimIdxToName=Tt(),Z(a,function(t){i.set(r[t].storeDimIndex,t)}))}function Tx(t,e){return Cx(t,e).dimensions}function Cx(t,e){Pp(t)||(t=Rp(t));for(var n,i,o=(e=e||{}).coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],a=Tt(),s=[],l=(n=t,p=o,u=e.dimensionsCount,i=Math.max(n.dimensionsDetectedCount||1,p.length,r.length,u||0),Z(p,function(t){var e;at(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))}),i),u=e.canOmitUnusedDimensions&&30<l,h=r===t.dimensionsDefine,c=h?hx(t):ux(r),p=e.encodeDefine,d=Tt(p=!p&&e.encodeDefaulter?e.encodeDefaulter(t,l):p),f=new Nd(l),g=0;g<f.length;g++)f[g]=-1;function y(t){var e=f[t];if(e<0){var n=r[t],i=at(n)?n:{name:n},o=new ix,n=i.name;null!=n&&null!=c.get(n)&&(o.name=o.displayName=n),null!=i.type&&(o.type=i.type),null!=i.displayName&&(o.displayName=i.displayName);i=s.length;return f[t]=i,o.storeDimIndex=t,s.push(o),o}return s[e]}if(!u)for(g=0;g<l;g++)y(g);d.each(function(t,n){var i,t=dr(t).slice();1===t.length&&!it(t[0])&&t[0]<0?d.set(n,!1):(i=d.set(n,[]),Z(t,function(t,e){t=it(t)?c.get(t):t;null!=t&&t<l&&v(y(i[e]=t),n,e)}))});var m=0;function v(t,e,n){null!=bc.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,a.set(e,!0))}Z(o,function(t){var n,i,o,r;it(t)?(r=t,o={}):(r=(o=t).name,t=o.ordinalMeta,o.ordinalMeta=null,(o=G({},o)).ordinalMeta=t,n=o.dimsDef,i=o.otherDims,o.name=o.coordDim=o.coordDimIndex=o.dimsDef=o.otherDims=null);var e=d.get(r);if(!1!==e){if(!(e=dr(e)).length)for(var a=0;a<(n&&n.length||1);a++){for(;m<l&&null!=y(m).coordDim;)m++;m<l&&e.push(m++)}Z(e,function(t,e){t=y(t);h&&null!=o.type&&(t.type=o.type),v(F(t,o),r,e),null==t.name&&n&&(at(e=n[e])||(e={name:e}),t.name=t.displayName=e.name,t.defaultTooltip=e.defaultTooltip),i&&F(t.otherDims,i)})}});var x=e.generateCoord,_=null!=(b=e.generateCoordCount),b=x?b||1:0,w=x||"value";function S(t){null==t.name&&(t.name=t.coordDim)}if(u)Z(s,function(t){S(t)}),s.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var M=0;M<l;M++){var I=y(M);null==I.coordDim&&(I.coordDim=function(t,e,n){var i=e.data;if(n||i.hasOwnProperty(t)){for(var o=0;i.hasOwnProperty(t+o);)o++;t+=o}return e.set(t,!0),t}(w,a,_),I.coordDimIndex=0,(!x||b<=0)&&(I.isExtraCoord=!0),b--),S(I),null!=I.type||Nc(t,M)!==kc.Must&&(!I.isExtraCoord||null==I.otherDims.itemName&&null==I.otherDims.seriesName)||(I.type="ordinal")}return function(t){for(var e=Tt(),n=0;n<t.length;n++){var i=t[n],o=i.name,r=e.get(o)||0;0<r&&(i.name=o+(r-1)),r++,e.set(o,r)}}(s),new ax({source:t,dimensions:s,fullDimensionCount:l,dimensionOmitted:u})}var Dx=function(t){this.coordSysDims=[],this.axisMap=Tt(),this.categoryAxisMap=Tt(),this.coordSysName=t};var Ax={cartesian2d:function(t,e,n,i){var o=t.getReferringComponents("xAxis",Ar).models[0],t=t.getReferringComponents("yAxis",Ar).models[0];e.coordSysDims=["x","y"],n.set("x",o),n.set("y",t),kx(o)&&(i.set("x",o),e.firstCategoryDimIndex=0),kx(t)&&(i.set("y",t),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){t=t.getReferringComponents("singleAxis",Ar).models[0];e.coordSysDims=["single"],n.set("single",t),kx(t)&&(i.set("single",t),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var o=t.getReferringComponents("polar",Ar).models[0],t=o.findAxisModel("radiusAxis"),o=o.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",t),n.set("angle",o),kx(t)&&(i.set("radius",t),e.firstCategoryDimIndex=0),kx(o)&&(i.set("angle",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,i,o,r){var a=t.ecModel,t=a.getComponent("parallel",t.get("parallelIndex")),s=i.coordSysDims=t.dimensions.slice();Z(t.parallelAxisIndex,function(t,e){var n=a.getComponent("parallelAxis",t),t=s[e];o.set(t,n),kx(n)&&(r.set(t,n),null==i.firstCategoryDimIndex&&(i.firstCategoryDimIndex=e))})}};function kx(t){return"category"===t.get("type")}function Lx(t,e,n){var i,o,r,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;lx(e.schema)?(o=e.schema,i=o.dimensions,r=e.store):i=e;var l,u,h,c,p,d,f=!(!t||!t.get("stack"));return Z(i,function(t,e){it(t)&&(i[e]=t={name:t}),f&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))}),!u||a||l||(a=!0),u&&(h="__\0ecstackresult_"+t.id,c="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0),p=u.coordDim,n=u.type,d=0,Z(i,function(t){t.coordDim===p&&d++}),e={name:h,coordDim:p,coordDimIndex:d,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},t={name:c,coordDim:c,coordDimIndex:d+1,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1},o?(r&&(e.storeDimIndex=r.ensureCalculationDimension(c,n),t.storeDimIndex=r.ensureCalculationDimension(h,n)),o.appendCalculationDimension(e),o.appendCalculationDimension(t)):(i.push(e),i.push(t))),{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}function Px(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Ox(t,e){return Px(t,e)?t.getCalculationInfo("stackResultDimension"):e}var Rx=function(t,e,n){n=n||{};var i,o=e.getSourceManager(),r=!1;t?(r=!0,i=Rp(t)):r=(i=o.getSource()).sourceFormat===wc;var a,s,l,u,h,c=function(t){var e=t.get("coordinateSystem"),n=new Dx(e);if(e=Ax[e])return e(t,n,n.axisMap,n.categoryAxisMap),n}(e),t=(h=c,t=(t=e).get("coordinateSystem"),t=op.get(t),p=(p=h&&h.coordSysDims?j(h.coordSysDims,function(t){var e={name:t},t=h.axisMap.get(t);return t&&(t=t.get("type"),e.type=nx(t)),e}):p)||(t&&(t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice())||["x","y"])),p=nt(p=n.useEncodeDefaulter)?p:p?tt(Pc,t,e):null,t=Cx(i,{coordDimensions:t,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:p,canOmitUnusedDimensions:!r}),d=(p=t.dimensions,a=n.createInvertedIndices,(s=c)&&Z(p,function(t,e){var n=t.coordDim,n=s.categoryAxisMap.get(n);n&&(null==l&&(l=e),t.ordinalMeta=n.getOrdinalMeta(),a&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(u=!0)}),u||null==l||(p[l].otherDims.itemName=0),l),p=r?null:o.getSharedDataStore(t),o=Lx(e,{schema:t,store:p});return(e=new Mx(t,e)).setCalculationInfo(o),o=null!=d&&function(t){if(t.sourceFormat===wc){t=function(t){var e=0;for(;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return null!=t&&!et(yr(t))}}(i)?function(t,e,n,i){return i===d?n:this.defaultDimValueGetter(t,e,n,i)}:null,e.hasItemOption=!1,e.initData(r?i:p,null,o),e},Zr=(Nx.prototype.getSetting=function(t){return this._setting[t]},Nx.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},Nx.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},Nx.prototype.getExtent=function(){return this._extent.slice()},Nx.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},Nx.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},Nx.prototype.isBlank=function(){return this._isBlank},Nx.prototype.setBlank=function(t){this._isBlank=t},Nx);function Nx(t){this._setting=t||{},this._extent=[1/0,-1/0]}Ur(Zr);var zx=Zr,Ex=0;function Vx(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Ex}function Bx(t){return at(t)&&null!=t.value?t.value:t+""}var Gx=(Vx.createByAxisModel=function(t){var e=t.option,t=e.data,t=t&&j(t,Bx);return new Vx({categories:t,needCollect:!t,deduplication:!1!==e.dedplication})},Vx.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},Vx.prototype.parseAndCollect=function(t){var e=this._needCollect;if("string"!=typeof t&&!e)return t;if(e&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,n;var n,i=this._getOrCreateMap();return null==(n=i.get(t))&&(e?(n=this.categories.length,this.categories[n]=t,i.set(t,n)):n=NaN),n},Vx.prototype._getOrCreateMap=function(){return this._map||(this._map=Tt(this.categories))},Vx),Fx=Xo;function Hx(t,e,n,i){var o={},r=t[1]-t[0],e=o.interval=or(r/e,!0);null!=n&&e<n&&(e=o.interval=n),null!=i&&i<e&&(e=o.interval=i);var i=o.intervalPrecision=Wx(e),i=o.niceTickExtent=[Fx(Math.ceil(t[0]/e)*e,i),Fx(Math.floor(t[1]/e)*e,i)];return i=i,t=t,isFinite(i[0])||(i[0]=t[0]),isFinite(i[1])||(i[1]=t[1]),Ux(i,0,t),Ux(i,1,t),i[0]>i[1]&&(i[0]=i[1]),o}function Wx(t){return Zo(t)+2}function Ux(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Xx(t,e){return t>=e[0]&&t<=e[1]}function Yx(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Zx(t,e){return t*(e[1]-e[0])+e[0]}var jx,k=(y(qx,jx=zx),qx.prototype.parse=function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},qx.prototype.contain=function(t){return Xx(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},qx.prototype.normalize=function(t){return Yx(t=this._getTickNumber(this.parse(t)),this._extent)},qx.prototype.scale=function(t){return t=Math.round(Zx(t,this._extent)),this.getRawOrdinalNumber(t)},qx.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},qx.prototype.getMinorTicks=function(t){},qx.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,r=this._ordinalMeta.categories.length,a=Math.min(r,e.length);o<a;++o){var s=e[o];i[n[o]=s]=o}for(var l=0;o<r;++o){for(;null!=i[l];)l++;n.push(l),i[l]=o}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},qx.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&0<=t&&t<e.length?e[t]:t},qx.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&0<=t&&t<e.length?e[t]:t},qx.prototype.getLabel=function(t){if(!this.isBlank()){t=this.getRawOrdinalNumber(t.value),t=this._ordinalMeta.categories[t];return null==t?"":t+""}},qx.prototype.count=function(){return this._extent[1]-this._extent[0]+1},qx.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},qx.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},qx.prototype.getOrdinalMeta=function(){return this._ordinalMeta},qx.prototype.niceTicks=function(){},qx.prototype.niceExtent=function(){},qx.type="ordinal",qx);function qx(t){var e=jx.call(this,t)||this;e.type="ordinal";var t=e.getSetting("ordinalMeta");return et(t=t||new Gx({}))&&(t=new Gx({categories:j(t,function(t){return at(t)?t.value:t})})),e._ordinalMeta=t,e._extent=e.getSetting("extent")||[0,t.categories.length-1],e}zx.registerClass(k);var Kx,$x=k,Jx=Xo,Co=(y(Qx,Kx=zx),Qx.prototype.parse=function(t){return t},Qx.prototype.contain=function(t){return Xx(t,this._extent)},Qx.prototype.normalize=function(t){return Yx(t,this._extent)},Qx.prototype.scale=function(t){return Zx(t,this._extent)},Qx.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},Qx.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},Qx.prototype.getInterval=function(){return this._interval},Qx.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Wx(t)},Qx.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,r=[];if(!e)return r;n[0]<i[0]&&(t?r.push({value:Jx(i[0]-e,o)}):r.push({value:n[0]}));for(var a=i[0];a<=i[1]&&(r.push({value:a}),(a=Jx(a+e,o))!==r[r.length-1].value);)if(1e4<r.length)return[];var s=r.length?r[r.length-1].value:i[1];return n[1]>s&&(t?r.push({value:Jx(s+e,o)}):r.push({value:n[1]})),r},Qx.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),o=1;o<e.length;o++){for(var r=e[o],a=e[o-1],s=0,l=[],u=(r.value-a.value)/t;s<t-1;){var h=Jx(a.value+(s+1)*u);h>i[0]&&h<i[1]&&l.push(h),s++}n.push(l)}return n},Qx.prototype.getLabel=function(t,e){if(null==t)return"";e=e&&e.precision;return null==e?e=Zo(t.value)||0:"auto"===e&&(e=this._intervalPrecision),Vh(Jx(t.value,e,!0))},Qx.prototype.niceTicks=function(t,e,n){t=t||5;var i=this._extent,o=i[1]-i[0];isFinite(o)&&(o<0&&(o=-o,i.reverse()),n=Hx(i,t,e,n),this._intervalPrecision=n.intervalPrecision,this._interval=n.interval,this._niceExtent=n.niceTickExtent)},Qx.prototype.niceExtent=function(t){var e=this._extent;e[0]===e[1]&&(0!==e[0]?(n=e[0],t.fixMax||(e[1]+=n/2),e[0]-=n/2):e[1]=1);var n=e[1]-e[0];isFinite(n)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);n=this._interval;t.fixMin||(e[0]=Jx(Math.floor(e[0]/n)*n)),t.fixMax||(e[1]=Jx(Math.ceil(e[1]/n)*n))},Qx.type="interval",Qx);function Qx(){var t=null!==Kx&&Kx.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}zx.registerClass(Co);var t_=Co,e_="__ec_stack_",n_="undefined"!=typeof Float32Array?Float32Array:Array;function i_(t){return t.get("stack")||e_+t.seriesIndex}function o_(t){return t.dim+t.index}function r_(t,e){var n=[];return e.eachSeriesByType(t,function(t){c_(t)&&!p_(t)&&n.push(t)}),n}function a_(t){var l=function(t){var l={};Z(t,function(t){var e=t.coordinateSystem.getBaseAxis();if("time"===e.type||"value"===e.type)for(var t=t.getData(),n=e.dim+"_"+e.index,i=t.getDimensionIndex(t.mapDimension(e.dim)),o=t.getStore(),r=0,a=o.count();r<a;++r){var s=o.get(i,r);l[n]?l[n].push(s):l[n]=[s]}});var e,n={};for(e in l)if(l.hasOwnProperty(e)){var i=l[e];if(i){i.sort(function(t,e){return t-e});for(var o=null,r=1;r<i.length;++r){var a=i[r]-i[r-1];0<a&&(o=null===o?a:Math.min(o,a))}n[e]=o}}return n}(t),u=[];return Z(t,function(t){var e,n=t.coordinateSystem.getBaseAxis(),i=n.getExtent();e="category"===n.type?n.getBandWidth():"value"===n.type||"time"===n.type?(o=n.dim+"_"+n.index,r=l[o],a=Math.abs(i[1]-i[0]),e=n.scale.getExtent(),o=Math.abs(e[1]-e[0]),r?a/o*r:a):(s=t.getData(),Math.abs(i[1]-i[0])/s.count());var o=Uo(t.get("barWidth"),e),r=Uo(t.get("barMaxWidth"),e),a=Uo(t.get("barMinWidth")||1,e),i=t.get("barGap"),s=t.get("barCategoryGap");u.push({bandWidth:e,barWidth:o,barMaxWidth:r,barMinWidth:a,barGap:i,barCategoryGap:s,axisKey:o_(n),stackId:i_(t)})}),s_(u)}function s_(t){var a={};Z(t,function(t,e){var n=t.axisKey,i=t.bandWidth,o=a[n]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},r=o.stacks;a[n]=o;i=t.stackId;r[i]||o.autoWidthCount++,r[i]=r[i]||{width:0,maxWidth:0};n=t.barWidth;n&&!r[i].width&&(r[i].width=n,n=Math.min(o.remainedWidth,n),o.remainedWidth-=n);n=t.barMaxWidth;n&&(r[i].maxWidth=n);n=t.barMinWidth;n&&(r[i].minWidth=n);n=t.barGap;null!=n&&(o.gap=n);t=t.barCategoryGap;null!=t&&(o.categoryGap=t)});var d={};return Z(a,function(t,n){d[n]={};var e,i=t.stacks,o=t.bandWidth,r=t.categoryGap;null==r&&(e=J(i).length,r=Math.max(35-4*e,15)+"%");var r=Uo(r,o),a=Uo(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-r)/(l+(l-1)*a),u=Math.max(u,0);Z(i,function(t){var e,n=t.maxWidth,i=t.minWidth;t.width?(e=t.width,n&&(e=Math.min(e,n)),i&&(e=Math.max(e,i)),t.width=e,s-=e+a*e,l--):(e=u,n&&n<e&&(e=Math.min(n,s)),(e=i&&e<i?i:e)!==u&&(t.width=e,s-=e+a*e,l--))}),u=(s-r)/(l+(l-1)*a),u=Math.max(u,0);var h,c=0;Z(i,function(t,e){t.width||(t.width=u),c+=(h=t).width*(1+a)}),h&&(c-=h.width*a);var p=-c/2;Z(i,function(t,e){d[n][e]=d[n][e]||{bandWidth:o,offset:p,width:t.width},p+=t.width*(1+a)})}),d}function l_(t,e,n){if(t&&e){e=t[o_(e)];return null!=e&&null!=n?e[i_(n)]:e}}function u_(t,e){var e=r_(t,e),C=a_(e),D={};Z(e,function(t){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),o=i_(t),r=C[o_(i)][o],a=r.offset,s=r.width,l=n.getOtherAxis(i),u=t.get("barMinHeight")||0;D[o]=D[o]||[],e.setLayout({bandWidth:r.bandWidth,offset:a,size:s});for(var t=e.mapDimension(l.dim),r=e.mapDimension(i.dim),h=Px(e,t),c=l.isHorizontal(),p=d_(0,l),d=e.getStore(),f=e.getDimensionIndex(t),g=e.getDimensionIndex(r),y=0,m=d.count();y<m;y++){var v=d.get(f,y),x=d.get(g,y),_=0<=v?"p":"n",b=p;h&&(D[o][x]||(D[o][x]={p:p,n:p}),b=D[o][x][_]);var w,S=void 0,M=void 0,I=void 0,T=void 0;c?(S=b,M=(w=n.dataToPoint([v,x]))[1]+a,I=w[0]-p,T=s,Math.abs(I)<u&&(I=(I<0?-1:1)*u),isNaN(I)||h&&(D[o][x][_]+=I)):(S=(w=n.dataToPoint([x,v]))[0]+a,M=b,I=s,T=w[1]-p,Math.abs(T)<u&&(T=(T<=0?-1:1)*u),isNaN(T)||h&&(D[o][x][_]+=T)),e.setItemLayout(y,{x:S,y:M,width:I,height:T})}})}var h_={seriesType:"bar",plan:Tf(),reset:function(t){if(c_(t)&&p_(t)){var e=t.getData(),p=t.coordinateSystem,d=p.master.getRect(),n=p.getBaseAxis(),f=p.getOtherAxis(n),g=e.getDimensionIndex(e.mapDimension(f.dim)),y=e.getDimensionIndex(e.mapDimension(n.dim)),m=f.isHorizontal(),v=m?0:1,x=l_(a_([t]),n,t).width;return.5<x||(x=.5),{progress:function(t,e){for(var n,i,o=t.count,r=new n_(2*o),a=new n_(2*o),s=new n_(o),l=[],u=0,h=0,c=e.getStore();null!=(n=t.next());)l[v]=c.get(g,n),l[1-v]=c.get(y,n),i=p.dataToPoint(l,null),a[u]=m?d.x+d.width:i[0],r[u++]=i[0],a[u]=m?i[1]:d.y+d.height,r[u++]=i[1],s[h++]=n;e.setLayout({largePoints:r,largeDataIndices:s,largeBackgroundPoints:a,barWidth:x,valueAxisStart:d_(0,f),backgroundStart:m?d.x:d.y,valueAxisHorizontal:m})}}}}};function c_(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function p_(t){return t.pipelineContext&&t.pipelineContext.large}function d_(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}var f_,Zr=(y(y_,f_=t_),y_.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return wh(t.value,mh[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(bh(this._minLevelUnit))]||mh.second,e,this.getSetting("locale"))},y_.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC");return function(t,e,n,i,o){var r=null;if("string"==typeof n)r=n;else if("function"==typeof n)r=n(t.value,e,{level:t.level});else{var a=G({},yh);if(0<t.level)for(var s=0;s<vh.length;++s)a[vh[s]]="{primary|"+a[vh[s]]+"}";var l=n?!1===n.inherit?n:F(n,a):a,u=Sh(t.value,o);if(l[u])r=l[u];else if(l.inherit){for(s=xh.indexOf(u)-1;0<=s;--s)if(l[u]){r=l[u];break}r=r||a.none}et(r)&&(n=null==t.level?0:0<=t.level?t.level:r.length+t.level,r=r[n=Math.min(n,r.length-1)])}return wh(new Date(t.value),r,o,i)}(t,e,n,this.getSetting("locale"),i)},y_.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=[];if(!e)return i;i.push({value:n[0],level:0});e=this.getSetting("useUTC"),e=function(t,d,f,g){var e=xh,n=0;function i(t,e,n){var i,o,r=[],a=!e.length;if(!function(t,e,n,i){function o(t){return Mh(c,t,i)===Mh(p,t,i)}function r(){return o("year")}function a(){return r()&&o("month")}function s(){return a()&&o("day")}function l(){return s()&&o("hour")}function u(){return l()&&o("minute")}function h(){return u()&&o("second")}var c=er(e),p=er(n);switch(t){case"year":return r();case"month":return a();case"day":return s();case"hour":return l();case"minute":return u();case"second":return h();case"millisecond":return h()&&o("millisecond")}}(bh(t),g[0],g[1],f)){a&&(e=[{value:function(t,e,n){var i=new Date(t);switch(bh(e)){case"year":case"month":i[Ph(n)](0);case"day":i[Oh(n)](1);case"hour":i[Rh(n)](0);case"minute":i[Nh(n)](0);case"second":i[zh(n)](0),i[Eh(n)](0)}return i.getTime()}(new Date(g[0]),t,f)},{value:g[1]}]);for(var s=0;s<e.length-1;s++){var l=e[s].value,u=e[s+1].value;if(l!==u){var h=void 0,c=void 0,p=void 0;switch(t){case"year":h=Math.max(1,Math.round(d/gh/365)),c=Ih(f),p=f?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":o=d,h=6<(o/=30*gh)?6:3<o?3:2<o?2:1,c=Th(f),p=Ph(f);break;case"week":case"half-week":case"day":i=d,h=16<(i/=gh)?16:7.5<i?7:3.5<i?4:1.5<i?2:1,c=Ch(f),p=Oh(f),0;break;case"half-day":case"quarter-day":case"hour":i=d,h=12<(i/=fh)?12:6<i?6:3.5<i?4:2<i?2:1,c=Dh(f),p=Rh(f);break;case"minute":h=m_(d,!0),c=Ah(f),p=Nh(f);break;case"second":h=m_(d,!1),c=kh(f),p=zh(f);break;case"millisecond":h=or(d,!0),c=Lh(f),p=Eh(f)}(function(t,e,n,i,o,r){for(var a=new Date(e),s=e,l=a[i]();s<n&&s<=g[1];)r.push({value:s}),a[o](l+=t),s=a.getTime();r.push({value:s,notAdd:!0})})(h,l,u,c,p,r),"year"===t&&1<n.length&&0===s&&n.unshift({value:n[0].value-h})}}for(s=0;s<r.length;s++)n.push(r[s]);return 1}}for(var o=[],r=[],a=0,s=0,l=0;l<e.length&&n++<1e4;++l){var u=bh(e[l]);if(function(t){return t===bh(t)}(e[l])){i(e[l],o[o.length-1]||[],r);var h=e[l+1]?bh(e[l+1]):null;if(u!==h){if(r.length){s=a,r.sort(function(t,e){return t.value-e.value});for(var c=[],p=0;p<r.length;++p){var y=r[p].value;0!==p&&r[p-1].value===y||(c.push(r[p]),y>=g[0]&&y<=g[1]&&a++)}h=(g[1]-g[0])/d;if(1.5*h<a&&h/1.5<s)break;if(o.push(c),h<a||t===e[l])break}r=[]}}}var m=K(j(o,function(t){return K(t,function(t){return t.value>=g[0]&&t.value<=g[1]&&!t.notAdd})}),function(t){return 0<t.length}),v=[],x=m.length-1;for(l=0;l<m.length;++l)for(var _=m[l],b=0;b<_.length;++b)v.push({value:_[b].value,level:x-l});v.sort(function(t,e){return t.value-e.value});var w=[];for(l=0;l<v.length;++l)0!==l&&v[l].value===v[l-1].value||w.push(v[l]);return w}(this._minLevelUnit,this._approxInterval,e,n);return(i=i.concat(e)).push({value:n[1],level:0}),i},y_.prototype.niceExtent=function(t){var e,n=this._extent;n[0]===n[1]&&(n[0]-=gh,n[1]+=gh),n[1]===-1/0&&n[0]===1/0&&(e=new Date,n[1]=+new Date(e.getFullYear(),e.getMonth(),e.getDate()),n[0]=n[1]-gh),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval)},y_.prototype.niceTicks=function(t,e,n){var i=this._extent,i=i[1]-i[0];this._approxInterval=i/(t=t||10),null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);n=g_.length,n=Math.min(function(t,e,n,i){for(;n<i;){var o=n+i>>>1;t[o][1]<e?n=1+o:i=o}return n}(g_,this._approxInterval,0,n),n-1);this._interval=g_[n][1],this._minLevelUnit=g_[Math.max(n-1,0)][0]},y_.prototype.parse=function(t){return"number"==typeof t?t:+er(t)},y_.prototype.contain=function(t){return Xx(this.parse(t),this._extent)},y_.prototype.normalize=function(t){return Yx(this.parse(t),this._extent)},y_.prototype.scale=function(t){return Zx(t,this._extent)},y_.type="time",y_),g_=[["second",ph],["minute",dh],["hour",fh],["quarter-day",6*fh],["half-day",12*fh],["day",1.2*gh],["half-week",3.5*gh],["week",7*gh],["month",31*gh],["quarter",95*gh],["half-year",M/2],["year",M]];function y_(t){t=f_.call(this,t)||this;return t.type="time",t}function m_(t,e){return 30<(t/=e?dh:ph)?30:20<t?20:15<t?15:10<t?10:5<t?5:2<t?2:1}zx.registerClass(Zr);var v_,x_=Zr,__=zx.prototype,b_=t_.prototype,w_=Xo,S_=Math.floor,M_=Math.ceil,I_=Math.pow,T_=Math.log,k=(y(C_,v_=zx),C_.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return j(b_.getTicks.call(this,t),function(t){var e=t.value,t=Xo(I_(this.base,e)),t=e===n[0]&&this._fixMin?D_(t,i[0]):t;return{value:t=e===n[1]&&this._fixMax?D_(t,i[1]):t}},this)},C_.prototype.setExtent=function(t,e){var n=this.base;t=T_(t)/T_(n),e=T_(e)/T_(n),b_.setExtent.call(this,t,e)},C_.prototype.getExtent=function(){var t=this.base,e=__.getExtent.call(this);e[0]=I_(t,e[0]),e[1]=I_(t,e[1]);t=this._originalScale.getExtent();return this._fixMin&&(e[0]=D_(e[0],t[0])),this._fixMax&&(e[1]=D_(e[1],t[1])),e},C_.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=T_(t[0])/T_(e),t[1]=T_(t[1])/T_(e),__.unionExtent.call(this,t)},C_.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},C_.prototype.niceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n==1/0||n<=0)){var i=nr(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&0<Math.abs(i);)i*=10;e=[Xo(M_(e[0]/i)*i),Xo(S_(e[1]/i)*i)];this._interval=i,this._niceExtent=e}},C_.prototype.niceExtent=function(t){b_.niceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},C_.prototype.parse=function(t){return t},C_.prototype.contain=function(t){return Xx(t=T_(t)/T_(this.base),this._extent)},C_.prototype.normalize=function(t){return Yx(t=T_(t)/T_(this.base),this._extent)},C_.prototype.scale=function(t){return t=Zx(t,this._extent),I_(this.base,t)},C_.type="log",C_),Co=k.prototype;function C_(){var t=null!==v_&&v_.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new t_,t._interval=0,t}function D_(t,e){return w_(t,Zo(e))}Co.getMinorTicks=b_.getMinorTicks,Co.getLabel=b_.getLabel,zx.registerClass(k);var A_=k,k_=(O_.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===t.type;this._needCrossZero=e.getNeedCrossZero&&e.getNeedCrossZero();var o=this._modelMinRaw=e.get("min",!0);nt(o)?this._modelMinNum=N_(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=N_(t,o));o=this._modelMaxRaw=e.get("max",!0);nt(o)?this._modelMaxNum=N_(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=N_(t,o)),i?this._axisDataLen=e.getCategories().length:"boolean"==typeof(e=et(e=e.get("boundaryGap"))?e:[e||0,e||0])[0]||"boolean"==typeof e[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[po(e[0],1),po(e[1],1)]},O_.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,o=this._boundaryGapInner,r=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=t?i?0:NaN:e-o[0]*r),null==s&&(s=t?i?i-1:NaN:n+o[1]*r),null!=a&&isFinite(a)||(a=NaN),null!=s&&isFinite(s)||(s=NaN);r=dt(a)||dt(s)||t&&!i;!this._needCrossZero||(a=0<a&&0<s&&!l?0:a)<0&&s<0&&!u&&(s=0);t=this._determinedMin,i=this._determinedMax;return null!=t&&(a=t,l=!0),null!=i&&(s=i,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:r}},O_.prototype.modifyDataMinMax=function(t,e){this[P_[t]]=e},O_.prototype.setDeterminedMinMax=function(t,e){this[L_[t]]=e},O_.prototype.freeze=function(){this.frozen=!0},O_),L_={min:"_determinedMin",max:"_determinedMax"},P_={min:"_dataMin",max:"_dataMax"};function O_(t,e,n){this._prepareParams(t,e,n)}function R_(t,e,n){var i;return(i=t.rawExtentInfo)||(i=new k_(t,e,n),t.rawExtentInfo=i)}function N_(t,e){return null==e?null:dt(e)?NaN:t.parse(e)}function z_(t,e){var n=t.type,i=R_(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var o,r=i.min,a=i.max,t=e.ecModel;return t&&"time"===n&&(t=r_("bar",t),o=!1,Z(t,function(t){o=o||t.getBaseAxis()===e.axis}),o&&(t=a_(t),r=(t=function(t,e,n,i){var o=n.axis.getExtent(),o=o[1]-o[0],i=l_(i,n.axis);if(void 0===i)return{min:t,max:e};var r=1/0;Z(i,function(t){r=Math.min(t.offset,r)});var a=-1/0;Z(i,function(t){a=Math.max(t.offset+t.width,a)}),r=Math.abs(r),a=Math.abs(a);n=r+a,i=e-t,i=i/(1-(r+a)/o)-i;return{min:t-=r/n*i,max:e+=a/n*i}}(r,a,e,t)).min,a=t.max)),{extent:[r,a],fixMin:i.minFixed,fixMax:i.maxFixed}}function E_(t,e){var n=e,i=z_(t,n),o=i.extent,r=n.get("splitNumber");t instanceof A_&&(t.base=n.get("logBase"));e=t.type;t.setExtent(o[0],o[1]),t.niceExtent({splitNumber:r,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:"interval"===e||"time"===e?n.get("minInterval"):null,maxInterval:"interval"===e||"time"===e?n.get("maxInterval"):null});n=n.get("interval");null!=n&&t.setInterval&&t.setInterval(n)}function V_(t,e){if(e=e||t.get("type"))switch(e){case"category":return new $x({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new x_({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(zx.getClass(e)||t_)}}function B_(n){var i,e,o,t=n.getLabelModel().get("formatter"),r="category"===n.type?n.scale.getExtent()[0]:null;return"time"===n.scale.type?(o=t,function(t,e){return n.scale.getFormattedLabel(t,e,o)}):"string"==typeof t?(e=t,function(t){t=n.scale.getLabel(t);return e.replace("{value}",null!=t?t:"")}):"function"==typeof t?(i=t,function(t,e){return null!=r&&(e=t.value-r),i(G_(n,t),e,null!=t.level?{level:t.level}:null)}):function(t){return n.scale.getLabel(t)}}function G_(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function F_(t){var e,n,i=t.model,o=t.scale;if(i.get(["axisLabel","show"])&&!o.isBlank()){var r,a,s=o.getExtent(),l=o instanceof $x?o.count():(r=o.getTicks()).length,u=t.getLabelModel(),h=B_(t),c=1;40<l&&(c=Math.ceil(l/40));for(var p=0;p<l;p+=c){var d=h(r?r[p]:{value:s[0]+p},p),f=u.getTextRect(d),g=(e=f,n=u.get("rotate")||0,g=f=d=g=void 0,g=n*Math.PI/180,d=e.width,f=e.height,n=d*Math.abs(Math.cos(g))+Math.abs(f*Math.sin(g)),g=d*Math.abs(Math.sin(g))+Math.abs(f*Math.cos(g)),new Qi(e.x,e.y,n,g));a?a.union(g):a=g}return a}}function H_(t){t=t.get("interval");return null==t?"auto":t}function W_(t){return"category"===t.type&&0===H_(t.getLabelModel())}function U_(e,t){var n={};return Z(e.mapDimensionsAll(t),function(t){n[Ox(e,t)]=!0}),J(n)}var X_=(Y_.prototype.getNeedCrossZero=function(){return!this.option.scale},Y_.prototype.getCoordSysModel=function(){},Y_);function Y_(){}function Z_(t){return Rx(null,t)}var j_={isDimensionStacked:Px,enableDataStack:Lx,getStackedDimension:Ox};function q_(t,e){var n=e,e=V_(n=!(e instanceof th)?new th(e):n);return e.setExtent(t[0],t[1]),E_(e,n),e}function K_(t){X(t,X_)}function $_(t,e){return Ru(t,null,null,"normal"!==(e=e||{}).state)}function J_(t,e,n,i,o,r,a,s){return new xl({style:{text:t,font:e,align:n,verticalAlign:i,padding:o,rich:r,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}var Q_=Ir();function tb(t){return"category"===t.type?(o=(e=t).getLabelModel(),r=nb(e,o),!o.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r):(t=(n=t).scale.getTicks(),i=B_(n),{labels:j(t,function(t,e){return{level:t.level,formattedLabel:i(t,e),rawLabel:n.scale.getLabel(t),tickValue:t.value}})});var n,i,e,o,r}function eb(t,e){return"category"===t.type?function(t,e){var n,i,o=ib(t,"ticks"),r=H_(e),a=ob(o,r);if(a)return a;e.get("show")&&!t.scale.isBlank()||(n=[]),n=nt(r)?sb(t,r,!0):"auto"===r?(e=nb(t,t.getLabelModel()),i=e.labelCategoryInterval,j(e.labels,function(t){return t.tickValue})):ab(t,i=r,!0);return rb(o,r,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:j(t.scale.getTicks(),function(t){return t.value})}}function nb(t,e){var n,i=ib(t,"labels"),e=H_(e);return ob(i,e)||rb(i,e,{labels:nt(e)?sb(t,e):ab(t,n="auto"===e?null!=(t=Q_(n=t).autoInterval)?t:Q_(n).autoInterval=n.calculateCategoryInterval():e),labelCategoryInterval:n})}function ib(t,e){return Q_(t)[e]||(Q_(t)[e]=[])}function ob(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function rb(t,e,n){return t.push({key:e,value:n}),n}function ab(t,e,n){var i=B_(t),o=t.scale,r=o.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=r[0],e=o.count();0!==u&&1<l&&2<e/l&&(u=Math.round(Math.ceil(u/l)*l));e=W_(t),t=a.get("showMinLabel")||e,e=a.get("showMaxLabel")||e;t&&u!==r[0]&&c(r[0]);for(var h=u;h<=r[1];h+=l)c(h);function c(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:o.getLabel(e),tickValue:t})}return e&&h-l!==r[1]&&c(r[1]),s}function sb(t,i,o){var r=t.scale,a=B_(t),s=[];return Z(r.getTicks(),function(t){var e=r.getLabel(t),n=t.value;i(t.value,e)&&s.push(o?n:{formattedLabel:a(t),rawLabel:e,tickValue:n})}),s}var lb=[0,1];function ub(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}function hb(t,e){e=(t[1]-t[0])/e/2;t[0]+=e,t[1]-=e}var cb=(ub.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),e=Math.max(e[0],e[1]);return n<=t&&t<=e},ub.prototype.containData=function(t){return this.scale.contain(t)},ub.prototype.getExtent=function(){return this._extent.slice()},ub.prototype.getPixelPrecision=function(t){return qo(t||this.scale.getExtent(),this._extent)},ub.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},ub.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&hb(n=n.slice(),i.count()),Wo(t,lb,n,e)},ub.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&hb(n=n.slice(),i.count());e=Wo(t,n,lb,e);return this.scale.scale(e)},ub.prototype.pointToData=function(t,e){},ub.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=j(eb(this,e).ticks,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this);return function(t,e,n,i){var o=e.length;{var r,a,s,l;t.onBand&&!n&&o&&(a=t.getExtent(),1===o?(e[0].coord=a[0],r=e[1]={coord:a[0]}):(n=e[o-1].tickValue-e[0].tickValue,s=(e[o-1].coord-e[0].coord)/n,Z(e,function(t){t.coord-=s/2}),t=t.scale.getExtent(),t=1+t[1]-e[o-1].tickValue,r={coord:e[o-1].coord+s*t},e.push(r)),l=a[0]>a[1],u(e[0].coord,a[0])&&(i?e[0].coord=a[0]:e.shift()),i&&u(a[0],e[0].coord)&&e.unshift({coord:a[0]}),u(a[1],r.coord)&&(i?r.coord=a[1]:e.pop()),i&&u(r.coord,a[1])&&e.push({coord:a[1]}))}function u(t,e){return t=Xo(t),e=Xo(e),l?e<t:t<e}}(this,n,e.get("alignWithLabel"),t.clamp),n},ub.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");return j(this.scale.getMinorTicks(t=!(0<t&&t<100)?5:t),function(t){return j(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},ub.prototype.getViewLabels=function(){return tb(this).labels},ub.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},ub.prototype.getTickModel=function(){return this.model.getModel("axisTick")},ub.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),e=e[1]-e[0]+(this.onBand?1:0);0===e&&(e=1);t=Math.abs(t[1]-t[0]);return Math.abs(t)/e},ub.prototype.calculateCategoryInterval=function(){return function(t){var e=(u=(l=t).getLabelModel(),{axisRotate:l.getRotate?l.getRotate():l.isHorizontal&&!l.isHorizontal()?90:0,labelRotate:u.get("rotate")||0,font:u.getFont()}),n=B_(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,o=(h=t.scale).getExtent(),r=h.count();if(o[1]-o[0]<1)return 0;var a=1;40<r&&(a=Math.max(1,Math.floor(r/40)));for(var s=o[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l*Math.cos(i)),h=Math.abs(l*Math.sin(i)),c=0,p=0;s<=o[1];s+=a)var d=1.3*(f=lo(n({value:s}),e.font,"center","top")).width,f=1.3*f.height,c=Math.max(c,d,7),p=Math.max(p,f,7);return l=c/u,i=p/h,isNaN(l)&&(l=1/0),isNaN(i)&&(i=1/0),u=Math.max(0,Math.floor(Math.min(l,i))),h=Q_(t.model),l=t.getExtent(),i=h.lastAutoInterval,t=h.lastTickCount,null!=i&&null!=t&&Math.abs(i-u)<=1&&Math.abs(t-r)<=1&&u<i&&h.axisExtent0===l[0]&&h.axisExtent1===l[1]?u=i:(h.lastTickCount=r,h.lastAutoInterval=u,h.axisExtent0=l[0],h.axisExtent1=l[1]),u}(this)},ub);function pb(t){t=xc.extend(t);return xc.registerClass(t),t}function db(t){t=If.extend(t);return If.registerClass(t),t}function fb(t){t=Sf.extend(t);return Sf.registerClass(t),t}function gb(t){t=Nf.extend(t);return Nf.registerClass(t),t}var yb=2*Math.PI,mb=vs.CMD,vb=["top","right","bottom","left"];function xb(t,e,n,i,o,r,a,s){var l=o-t,u=r-e,h=n-t,n=i-e,i=Math.sqrt(h*h+n*n),u=(l*(h/=i)+u*(n/=i))/i;s&&(u=Math.min(Math.max(u,0),1));h=a[0]=t+(u*=i)*h,n=a[1]=e+u*n;return Math.sqrt((h-o)*(h-o)+(n-r)*(n-r))}function _b(t,e,n,i,o,r,a){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i);n=t+n,i=e+i,n=a[0]=Math.min(Math.max(o,t),n),i=a[1]=Math.min(Math.max(r,e),i);return Math.sqrt((n-o)*(n-o)+(i-r)*(i-r))}var bb=[];function wb(t,e,n){for(var i=0,o=0,r=0,a=0,s=1/0,l=e.data,u=t.x,h=t.y,c=0;c<l.length;){var p=l[c++];1===c&&(r=i=l[c],a=o=l[c+1]);var d=s;switch(p){case mb.M:i=r=l[c++],o=a=l[c++];break;case mb.L:d=xb(i,o,l[c],l[c+1],u,h,bb,!0),i=l[c++],o=l[c++];break;case mb.C:d=Na(i,o,l[c++],l[c++],l[c++],l[c++],l[c],l[c+1],u,h,bb),i=l[c++],o=l[c++];break;case mb.Q:d=Ga(i,o,l[c++],l[c++],l[c],l[c+1],u,h,bb),i=l[c++],o=l[c++];break;case mb.A:var f=l[c++],g=l[c++],y=l[c++],m=l[c++],v=l[c++],x=l[c++];c+=1;var _=!!(1-l[c++]),b=Math.cos(v)*y+f,w=Math.sin(v)*m+g;c<=1&&(r=b,a=w);d=function(t,e,n,i,o,r,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s),h=(a/=u)*n+t,c=(s/=u)*n+e;if(Math.abs(i-o)%yb<1e-4)return l[0]=h,l[1]=c,u-n;(o=r?(p=i,i=Ss(o),Ss(p)):(i=Ss(i),Ss(o)))<i&&(o+=yb);var p=Math.atan2(s,a);return p<0&&(p+=yb),i<=p&&p<=o||i<=p+yb&&p+yb<=o?(l[0]=h,l[1]=c,u-n):(u=n*Math.cos(i)+t,i=n*Math.sin(i)+e,t=n*Math.cos(o)+t,o=n*Math.sin(o)+e,(e=(u-a)*(u-a)+(i-s)*(i-s))<(s=(t-a)*(t-a)+(o-s)*(o-s))?(l[0]=u,l[1]=i,Math.sqrt(e)):(l[0]=t,l[1]=o,Math.sqrt(s)))}(f,g,m,v,v+x,_,(u-f)*m/y+f,h,bb),i=Math.cos(v+x)*y+f,o=Math.sin(v+x)*m+g;break;case mb.R:d=_b(r=i=l[c++],a=o=l[c++],l[c++],l[c++],u,h,bb);break;case mb.Z:d=xb(i,o,r,a,u,h,bb,!0),i=r,o=a}d<s&&(s=d,n.set(bb[0],bb[1]))}return s}var Sb=new Ui,Mb=new Ui,Ib=new Ui,Tb=new Ui,Cb=new Ui;function Db(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var o=t.textGuideLineConfig||{},r=[[0,0],[0,0],[0,0]],a=o.candidates||vb,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=o.anchor,h=t.getComputedTransform(),c=h&&Pi([],h),p=e.get("length2")||0;u&&Ib.copy(u);for(var d=0;d<a.length;d++){(function(t,e,n,i,o){var r=n.width,a=n.height;switch(t){case"top":i.set(n.x+r/2,n.y-e),o.set(0,-1);break;case"bottom":i.set(n.x+r/2,n.y+a+e),o.set(0,1);break;case"left":i.set(n.x-e,n.y+a/2),o.set(-1,0);break;case"right":i.set(n.x+r+e,n.y+a/2),o.set(1,0)}})(a[d],0,s,Sb,Tb),Ui.scaleAndAdd(Mb,Sb,Tb,p),Mb.transform(c);var f=t.getBoundingRect(),g=u?u.distance(Mb):t instanceof Bs?wb(Mb,t.path,Ib):(g=Mb,y=Ib,g=_b(f.x,f.y,f.width,f.height,Mb.x,Mb.y,bb),y.set(bb[0],bb[1]),g);g<l&&(l=g,Mb.transform(h),Ib.transform(h),Ib.toArray(r[0]),Mb.toArray(r[1]),Sb.toArray(r[2]))}Lb(r,e.get("minTurnAngle")),n.setShape({points:r})}}var g,y}var Ab=[],kb=new Ui;function Lb(t,e){var n,i;e<=180&&0<e&&(e=e/180*Math.PI,Sb.fromArray(t[0]),Mb.fromArray(t[1]),Ib.fromArray(t[2]),Ui.sub(Tb,Sb,Mb),Ui.sub(Cb,Ib,Mb),n=Tb.len(),i=Cb.len(),n<.001||i<.001||(Tb.scale(1/n),Cb.scale(1/i),i=Tb.dot(Cb),Math.cos(e)<i&&(i=xb(Mb.x,Mb.y,Ib.x,Ib.y,Sb.x,Sb.y,Ab,!1),kb.fromArray(Ab),kb.scaleAndAdd(Cb,i/Math.tan(Math.PI-e)),e=Ib.x!==Mb.x?(kb.x-Mb.x)/(Ib.x-Mb.x):(kb.y-Mb.y)/(Ib.y-Mb.y),isNaN(e)||(e<0?Ui.copy(kb,Mb):1<e&&Ui.copy(kb,Ib),kb.toArray(t[1])))))}function Pb(t,e,n,i){var o="normal"===n,n=o?t:t.ensureState(n);n.ignore=e;e=i.get("smooth");e&&!0===e&&(e=.3),n.shape=n.shape||{},0<e&&(n.shape.smooth=e);i=i.getModel("lineStyle").getLineStyle();o?t.useStyle(i):n.style=i}function Ob(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),0<n&&3<=i.length){var o=Kt(i[0],i[1]),e=Kt(i[1],i[2]);if(!o||!e)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);n=Math.min(o,e)*n,o=te([],i[1],i[0],n/o),n=te([],i[1],i[2],n/e),e=te([],o,n,.5);t.bezierCurveTo(o[0],o[1],o[0],o[1],e[0],e[1]),t.bezierCurveTo(n[0],n[1],n[0],n[1],i[2][0],i[2][1])}else for(var r=1;r<i.length;r++)t.lineTo(i[r][0],i[r][1])}function Rb(t,e,n){var i=t.getTextGuideLine(),o=t.getTextContent();if(o){for(var r=e.normal,a=r.get("show"),s=o.ignore,l=0;l<Dl.length;l++){var u,h=Dl[l],c=e[h],p="normal"===h;c&&(u=c.get("show"),!(p?s:gt(o.states[h]&&o.states[h].ignore,s))&>(u,a)?(i||(i=new Ey,t.setTextGuideLine(i),p||!s&&a||Pb(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),Pb(i,!1,h,c)):(p=p?i:i&&i.states.normal)&&(p.ignore=!0))}i&&(F(i.style,n),i.style.fill=null,r=r.get("showAbove"),(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=r||!1,i.buildPath=Ob)}else i&&t.removeTextGuideLine()}function Nb(t,e){for(var n={normal:t.getModel(e=e||"labelLine")},i=0;i<Cl.length;i++){var o=Cl[i];n[o]=t.getModel([o,e])}return n}function zb(t){for(var e=[],n=0;n<t.length;n++){var i,o,r,a,s,l,u=t[n];u.defaultAttr.ignore||(o=(i=u.label).getComputedTransform(),r=i.getBoundingRect(),a=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,(s=r.clone()).applyTransform(o),s.x-=l/2,s.y-=l/2,s.width+=l,s.height+=l,l=a?new em(r,o):null,e.push({label:i,labelLine:u.labelLine,rect:s,localRect:r,obb:l,priority:u.priority,defaultAttr:u.defaultAttr,layoutOption:u.computedLayoutOption,axisAligned:a,transform:o}))}return e}function Eb(l,u,h,t,e,n){var c=l.length;if(!(c<2)){l.sort(function(t,e){return t.rect[u]-e.rect[u]});for(var i=0,r=!1,o=[],a=0,s=0;s<c;s++){var p=l[s],d=p.rect;(f=d[u]-i)<0&&(d[u]-=f,p.label[u]-=f,r=!0);var f=Math.max(-f,0);o.push(f),a+=f,i=d[u]+d[h]}0<a&&n&&b(-a/c,0,c);var g,y,m=l[0],v=l[c-1];return x(),g<0&&w(-g,.8),y<0&&w(y,.8),x(),_(g,y,1),_(y,g,-1),x(),g<0&&S(-g),y<0&&S(y),r}function x(){g=m.rect[u]-t,y=e-v.rect[u]-v.rect[h]}function _(t,e,n){t<0&&(0<(e=Math.min(e,-t))?(b(e*n,0,c),(e=e+t)<0&&w(-e*n,1)):w(-t*n,1))}function b(t,e,n){0!==t&&(r=!0);for(var i=e;i<n;i++){var o=l[i];o.rect[u]+=t,o.label[u]+=t}}function w(t,e){for(var n=[],i=0,o=1;o<c;o++){var r=l[o-1].rect,r=Math.max(l[o].rect[u]-r[u]-r[h],0);n.push(r),i+=r}if(i){var a=Math.min(Math.abs(t)/i,e);if(0<t)for(o=0;o<c-1;o++){var s=n[o]*a;b(s,0,o+1)}else for(o=c-1;0<o;o--)b(-(s=n[o-1]*a),o,c)}}function S(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(c-1)),i=0;i<c-1;i++)if(0<e?b(n,0,i+1):b(-n,c-i-1,c),(t-=n)<=0)return}}function Vb(t,e,n,i){return Eb(t,"y","height",e,n,i)}function Bb(t){var e=[];t.sort(function(t,e){return e.priority-t.priority});var n=new Qi(0,0,0,0);function i(t){var e;t.ignore||null==(e=t.ensureState("emphasis")).ignore&&(e.ignore=!1),t.ignore=!0}for(var o=0;o<t.length;o++){var r=t[o],a=r.axisAligned,s=r.localRect,l=r.transform,u=r.label,h=r.labelLine;n.copy(r.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var c=r.obb,p=!1,d=0;d<e.length;d++){var f=e[d];if(n.intersect(f.rect)){if(a&&f.axisAligned){p=!0;break}if(f.obb||(f.obb=new em(f.localRect,f.transform)),(c=c||new em(s,l)).intersect(f.obb)){p=!0;break}}}p?(i(u),h&&i(h)):(u.attr("ignore",r.defaultAttr.ignore),h&&h.attr("ignore",r.defaultAttr.labelGuideIgnore),e.push(r))}}function Gb(t,e){var n=t.label,e=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:function(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}(e&&e.shape.points)}}var Fb=["align","verticalAlign","width","height","fontSize"],Hb=new Wi,Wb=Ir(),Ub=Ir();function Xb(t,e,n){for(var i=0;i<n.length;i++){var o=n[i];null!=e[o]&&(t[o]=e[o])}}var Yb=["x","y","rotation"],Zb=(qb.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},qb.prototype._addLabel=function(t,e,n,i,o){var r=i.style,a=i.__hostTarget.textConfig||{},s=i.getComputedTransform(),l=i.getBoundingRect().plain();Qi.applyTransform(l,l,s),s?Hb.setLocalTransform(s):(Hb.x=Hb.y=Hb.rotation=Hb.originX=Hb.originY=0,Hb.scaleX=Hb.scaleY=1);var u,h=i.__hostTarget;h&&(u=h.getBoundingRect().plain(),s=h.getComputedTransform(),Qi.applyTransform(u,u,s));h=u&&h.getTextGuideLine();this._labelList.push({label:i,labelLine:h,seriesModel:n,dataIndex:t,dataType:e,layoutOption:o,computedLayoutOption:null,rect:l,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:h&&h.ignore,x:Hb.x,y:Hb.y,scaleX:Hb.scaleX,scaleY:Hb.scaleY,rotation:Hb.rotation,style:{x:r.x,y:r.y,align:r.align,verticalAlign:r.verticalAlign,width:r.width,height:r.height,fontSize:r.fontSize},cursor:i.cursor,attachedPos:a.position,attachedRot:a.rotation}})},qb.prototype.addLabelsOfSeries=function(t){var n=this;this._chartViewList.push(t);var i=t.__model,o=i.get("labelLayout");(nt(o)||J(o).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var e=t.getTextContent(),t=_l(t);e&&!e.disableLabelLayout&&n._addLabel(t.dataIndex,t.dataType,i,e,o)})},qb.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],r=o.label,a=r.__hostTarget,s=o.defaultAttr,l="function"==typeof o.layoutOption?o.layoutOption(Gb(o,a)):o.layoutOption;o.computedLayoutOption=l=l||{};var u=Math.PI/180;a&&a.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:s.attachedPos,rotation:null!=l.rotate?l.rotate*u:s.attachedRot,offset:[l.dx||0,l.dy||0]});var h,c=!1;null!=l.x?(r.x=Uo(l.x,e),r.setStyle("x",0),c=!0):(r.x=s.x,r.setStyle("x",s.style.x)),null!=l.y?(r.y=Uo(l.y,n),r.setStyle("y",0),c=!0):(r.y=s.y,r.setStyle("y",s.style.y)),l.labelLinePoints&&(h=a.getTextGuideLine())&&(h.setShape({points:l.labelLinePoints}),c=!1),Wb(r).needsUpdateLabelLine=c,r.rotation=null!=l.rotate?l.rotate*u:s.rotation,r.scaleX=s.scaleX,r.scaleY=s.scaleY;for(var p=0;p<Fb.length;p++){var d=Fb[p];r.setStyle(d,(null!=l[d]?l:s.style)[d])}l.draggable?(r.draggable=!0,r.cursor="move",a&&(u=o.seriesModel,null!=o.dataIndex&&(u=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex)),r.on("drag",function(t,e){return function(){Db(t,e)}}(a,u.getModel("labelLine"))))):(r.off("drag"),r.cursor=s.cursor)}},qb.prototype.layout=function(t){var e,n=t.getWidth(),i=t.getHeight(),o=zb(this._labelList),r=K(o,function(t){return"shiftX"===t.layoutOption.moveOverlap}),t=K(o,function(t){return"shiftY"===t.layoutOption.moveOverlap});Eb(r,"x","width",0,n,e),Vb(t,0,i),Bb(K(o,function(t){return t.layoutOption.hideOverlap}))},qb.prototype.processLabelsOverall=function(){var a=this;Z(this._chartViewList,function(t){var i=t.__model,o=t.ignoreLabelLineUpdate,r=i.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var e=!o,n=t.getTextContent();(e=!e&&n?Wb(n).needsUpdateLabelLine:e)&&a._updateLabelLine(t,i),r&&a._animateLabels(t,i)})})},qb.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=_l(t),o=i.dataIndex;n&&null!=o&&(e=(n=e.getData(i.dataType)).getItemModel(o),i={},o=n.getItemVisual(o,"style"),n=n.getVisual("drawType"),i.stroke=o[n],n=e.getModel("labelLine"),Rb(t,Nb(e),i),Db(t,n))},qb.prototype._animateLabels=function(t,e){var n,i,o,r,a,s,l,u=t.getTextContent(),h=t.getTextGuideLine();!u||!t.forceLabelAnimation&&(u.ignore||u.invisible||t.disableLabelAnimation||Mu(t))||(s=(a=Wb(u)).oldLayout,n=(l=_l(t)).dataIndex,i={x:u.x,y:u.y,rotation:u.rotation},l=e.getData(l.dataType),s?(u.attr(s),(o=t.prevStates)&&(0<=W(o,"select")&&u.attr(a.oldLayoutSelect),0<=W(o,"emphasis")&&u.attr(a.oldLayoutEmphasis)),wu(u,i,e,n)):(u.attr(i),Fu(u).valueAnimation||(o=gt(u.style.opacity,1),u.style.opacity=0,Su(u,{style:{opacity:o}},e,n))),a.oldLayout=i,u.states.select&&(Xb(r=a.oldLayoutSelect={},i,Yb),Xb(r,u.states.select,Yb)),u.states.emphasis&&(Xb(r=a.oldLayoutEmphasis={},i,Yb),Xb(r,u.states.emphasis,Yb)),Wu(u,n,l,e,e)),!h||h.ignore||h.invisible||(s=(a=Ub(h)).oldLayout,l={points:h.shape.points},s?(h.attr({shape:s}),wu(h,{shape:l},e)):(h.setShape(l),h.style.strokePercent=0,Su(h,{style:{strokePercent:1}},e)),a.oldLayout=l)},qb),jb=Ir();function qb(){this._labelList=[],this._chartViewList=[]}function Kb(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){(jb(e).labelManager||(jb(e).labelManager=new Zb)).clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=jb(e).labelManager;n.updatedSeries.forEach(function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}function $b(){return!1}function Jb(t,e,n){var i=H(),o=e.getWidth(),r=e.getHeight(),e=i.style;return e&&(e.position="absolute",e.left="0",e.top="0",e.width=o+"px",e.height=r+"px",i.setAttribute("data-zr-dom-id",t)),i.width=o*n,i.height=r*n,i}Z1(Kb);var Qb,tw=(Pt(nw,Qb=ae),nw.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},nw.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},nw.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},nw.prototype.setUnpainted=function(){this.__firstTimePaint=!0},nw.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Jb("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},nw.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o,l=[],u=this.maxRepaintRectCount,h=!1,c=new Qi(0,0,0,0);function r(t){if(t.isFinite()&&!t.isZero())if(0===l.length){var e=new Qi(0,0,0,0);e.copy(t),l.push(e)}else{for(var n=!1,i=1/0,o=0,r=0;r<l.length;++r){var a=l[r];if(a.intersect(t)){var s=new Qi(0,0,0,0);s.copy(a),s.union(t),l[r]=s,n=!0;break}h&&(c.copy(t),c.union(a),s=t.width*t.height,a=a.width*a.height,(a=c.width*c.height-s-a)<i&&(i=a,o=r))}h&&(l[o].union(t),n=!0),n||((e=new Qi(0,0,0,0)).copy(t),l.push(e)),h=h||l.length>=u}}for(var a=this.__startIndex;a<this.__endIndex;++a){var s,p,d,f=t[a];f&&(s=f.shouldBePainted(n,i,!0,!0),(p=f.__isRendered&&(f.__dirty&qe||!s)?f.getPrevPaintRect():null)&&r(p),(d=s&&(f.__dirty&qe||!f.__isRendered)?f.getPaintRect():null)&&r(d))}for(a=this.__prevStartIndex;a<this.__prevEndIndex;++a)s=(f=e[a]).shouldBePainted(n,i,!0,!0),!f||s&&f.__zr||!f.__isRendered||(p=f.getPrevPaintRect())&&r(p);do{for(o=!1,a=0;a<l.length;)if(l[a].isZero())l.splice(a,1);else{for(var g=a+1;g<l.length;)l[a].intersect(l[g])?(o=!0,l[a].union(l[g]),l.splice(g,1)):g++;a++}}while(o);return this._paintRects=l},nw.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},nw.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,o=i.style,r=this.domBack;o&&(o.width=t+"px",o.height=e+"px"),i.width=t*n,i.height=e*n,r&&(r.width=t*n,r.height=e*n,1!==n&&this.ctxBack.scale(n,n))},nw.prototype.clear=function(t,r,e){var n=this.dom,a=this.ctx,i=n.width,o=n.height;r=r||this.clearColor;var s=this.motionBlur&&!t,l=this.lastFrameAlpha,u=this.dpr,h=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,i/u,o/u));var c=this.domBack;function p(t,e,n,i){var o;a.clearRect(t,e,n,i),r&&"transparent"!==r&&(o=void 0,ht(r)?(o=r.__canvasGradient||Um(a,r,{x:0,y:0,width:n,height:i}),r.__canvasGradient=o):ct(r)&&(o=Qm(a,r,{dirty:function(){h.setUnpainted(),h.__painter.refresh()}})),a.save(),a.fillStyle=o||r,a.fillRect(t,e,n,i),a.restore()),s&&(a.save(),a.globalAlpha=l,a.drawImage(c,t,e,n,i),a.restore())}!e||s?p(0,0,i,o):e.length&&Z(e,function(t){p(t.x*u,t.y*u,t.width*u,t.height*u)})},nw),ew=314159;function nw(t,e,n){var i,o=Qb.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,n=n||wi,"string"==typeof t?i=Jb(t,e,n):at(t)&&(t=(i=t).id),o.id=t;t=(o.dom=i).style;return t&&(i.onselectstart=$b,t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none",t.padding="0",t.margin="0",t.borderWidth="0"),o.domBack=null,o.ctxBack=null,o.painter=e,o.config=null,o.dpr=n,o}function iw(t){return parseInt(t,10)}var ow=(rw.prototype.getType=function(){return"canvas"},rw.prototype.isSingleCanvas=function(){return this._singleCanvas},rw.prototype.getViewportRoot=function(){return this._domRoot},rw.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},rw.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var o=0;o<i.length;o++){var r=i[o],a=this._layers[r];!a.__builtin__&&a.refresh&&(r=0===o?this._backgroundColor:null,a.refresh(r))}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},rw.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},rw.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,o={inHover:!0,viewWidth:this._width,viewHeight:this._height},r=0;r<e;r++){var a=t[r];a.__inHover&&(n=n||(this._hoverlayer=this.getLayer(1e5)),i||(i=n.ctx).save(),p0(i,a,o,r===e-1))}i&&i.restore()}},rw.prototype.getHoverLayer=function(){return this.getLayer(1e5)},rw.prototype.paintOne=function(t,e){c0(t,e)},rw.prototype._paintList=function(t,e,n,i){var o,r,a;this._redrawId===i&&(n=n||!1,this._updateLayerStatus(t),o=(r=this._doPaintList(t,e,n)).finished,r=r.needsRefreshHover,this._needsManuallyCompositing&&this._compositeManually(),r&&this._paintHoverList(t),o?this.eachLayer(function(t){t.afterBrush&&t.afterBrush()}):(a=this,en(function(){a._paintList(t,e,n,i)})))},rw.prototype._compositeManually=function(){var e=this.getLayer(ew).ctx,n=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,n,i),this.eachBuiltinLayer(function(t){t.virtual&&e.drawImage(t.dom,0,0,n,i)})},rw.prototype._doPaintList=function(d,f,g){for(var y=this,m=[],v=this._opts.useDirtyRect,t=0;t<this._zlevelList.length;t++){var e=this._zlevelList[t],e=this._layers[e];e.__builtin__&&e!==this._hoverlayer&&(e.__dirty||g)&&m.push(e)}for(var x=!0,_=!1,b=this,n=0;n<m.length;n++)!function(t){var i,o=m[t],r=o.ctx,e=v&&o.createRepaintRects(d,f,b._width,b._height),a=g?o.__startIndex:o.__drawIndex,s=!g&&o.incremental&&Date.now,l=s&&Date.now(),n=o.zlevel===b._zlevelList[0]?b._backgroundColor:null;o.__startIndex===o.__endIndex?o.clear(!1,n,e):a===o.__startIndex&&((t=d[a]).incremental&&t.notClear&&!g||o.clear(!1,n,e)),-1===a&&(a=o.__startIndex);function u(t){var e={inHover:!1,allClipped:!1,prevEl:null,viewWidth:y._width,viewHeight:y._height};for(i=a;i<o.__endIndex;i++){var n=d[i];if(n.__inHover&&(_=!0),y._doPaintEl(n,o,v,t,e,i===o.__endIndex-1),s)if(15<Date.now()-l)break}e.prevElClipPaths&&r.restore()}if(e)if(0===e.length)i=o.__endIndex;else for(var h=b.dpr,c=0;c<e.length;++c){var p=e[c];r.save(),r.beginPath(),r.rect(p.x*h,p.y*h,p.width*h,p.height*h),r.clip(),u(p),r.restore()}else r.save(),u(),r.restore();o.__drawIndex=i,o.__drawIndex<o.__endIndex&&(x=!1)}(n);return w.wxa&&Z(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:x,needsRefreshHover:_}},rw.prototype._doPaintEl=function(t,e,n,i,o,r){e=e.ctx;n?(n=t.getPaintRect(),(!i||n&&n.intersect(i))&&(p0(e,t,o,r),t.setPrevPaintRect(n))):p0(e,t,o,r)},rw.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=ew);var n=this._layers[t];return n||((n=new tw("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?V(n,this._layerConfig[t],!0):this._layerConfig[t-.01]&&V(n,this._layerConfig[t-.01],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},rw.prototype.insertLayer=function(t,e){var n,i=this._layers,o=this._zlevelList,r=o.length,a=this._domRoot,s=null,l=-1;if(i[t])z("ZLevel "+t+" has been used already");else if((n=e)&&(n.__builtin__||"function"==typeof n.resize&&"function"==typeof n.refresh)){if(0<r&&t>o[0]){for(l=0;l<r-1&&!(o[l]<t&&o[l+1]>t);l++);s=i[o[l]]}o.splice(l+1,0,t),(i[t]=e).virtual||(s?(s=s.dom).nextSibling?a.insertBefore(e.dom,s.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.__painter=this}else z("Layer of zlevel "+t+" is not valid")},rw.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i];t.call(e,this._layers[o],o)}},rw.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i],r=this._layers[o];r.__builtin__&&t.call(e,r,o)}},rw.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i],r=this._layers[o];r.__builtin__||t.call(e,r,o)}},rw.prototype.getLayers=function(){return this._layers},rw.prototype._updateLayerStatus=function(t){function e(t){r&&(r.__endIndex!==t&&(r.__dirty=!0),r.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}for(var o,r=null,a=0,s=0;s<t.length;s++){var l=(i=t[s]).zlevel,u=void 0;o!==l&&(o=l,a=0),i.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):u=this.getLayer(l+(0<a?.01:0),this._needsManuallyCompositing),u.__builtin__||z("ZLevel "+l+" has been used by unkown layer "+u.id),u!==r&&(u.__used=!0,u.__startIndex!==s&&(u.__dirty=!0),u.__startIndex=s,u.incremental?u.__drawIndex=-1:u.__drawIndex=s,e(s),r=u),i.__dirty&qe&&!i.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=s))}e(s),this.eachBuiltinLayer(function(t,e){!t.__used&&0<t.getElementCount()&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},rw.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},rw.prototype._clearLayer=function(t){t.clear()},rw.prototype.setBackgroundColor=function(t){this._backgroundColor=t,Z(this._layers,function(t){t.setUnpainted()})},rw.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?V(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];o!==t&&o!==t+.01||V(this._layers[o],n[t],!0)}}},rw.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(W(n,t),1))},rw.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(ew).resize(t,e)}return this},rw.prototype.clearLayer=function(t){t=this._layers[t];t&&t.clear()},rw.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},rw.prototype.getRenderedCanvas=function(t){if(this._singleCanvas&&!this._compositeManually)return this._layers[ew].dom;var e=new tw("image",this,(t=t||{}).pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,o=e.dom.height;this.eachLayer(function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,o):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())})}else for(var r={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];p0(n,u,r,s===l-1)}return e.dom},rw.prototype.getWidth=function(){return this._width},rw.prototype.getHeight=function(){return this._height},rw.prototype._getSize=function(t){var e=this._opts,n=["width","height"][t],i=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],r=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);t=this.root,e=document.defaultView.getComputedStyle(t);return(t[i]||iw(e[n])||iw(t.style[n]))-(iw(e[o])||0)-(iw(e[r])||0)|0},rw.prototype.pathToImage=function(t,e){e=e||this.dpr;var n=document.createElement("canvas"),i=n.getContext("2d"),o=t.getBoundingRect(),r=t.style,a=r.shadowBlur*e,s=r.shadowOffsetX*e,l=r.shadowOffsetY*e,u=t.hasStroke()?r.lineWidth:0,h=Math.max(u/2,a-s),r=Math.max(u/2,s+a),s=Math.max(u/2,a-l),a=Math.max(u/2,l+a),r=o.width+h+r,a=o.height+s+a;n.width=r*e,n.height=a*e,i.scale(e,e),i.clearRect(0,0,r,a),i.dpr=e;e={x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY,rotation:t.rotation,originX:t.originX,originY:t.originY};t.x=h-o.x,t.y=s-o.y,t.rotation=0,t.scaleX=1,t.scaleY=1,t.updateTransform(),t&&p0(i,t,{inHover:!1,viewWidth:this._width,viewHeight:this._height},!0);n=new qs({style:{x:0,y:0,image:n}});return G(t,e),n},rw);function rw(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=G({},n||{}),this.dpr=n.devicePixelRatio||wi,this._singleCanvas=o;var r=(this.root=t).style;r&&(r.webkitTapHighlightColor="transparent",r.webkitUserSelect="none",r.userSelect="none",r["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var a=this._zlevelList;this._prevDisplayList=[];var s,r=this._layers;o?(e=(s=t).width,o=s.height,null!=n.width&&(e=n.width),null!=n.height&&(o=n.height),this.dpr=n.devicePixelRatio||1,s.width=e*this.dpr,s.height=o*this.dpr,this._width=e,this._height=o,(s=new tw(s,this,this.dpr)).__builtin__=!0,s.initContext(),(r[ew]=s).zlevel=ew,a.push(ew),this._domRoot=t):(this._width=this._getSize(0),this._height=this._getSize(1),a=this._domRoot=(r=this._width,s=this._height,(a=document.createElement("div")).style.cssText=["position:relative","width:"+r+"px","height:"+s+"px","padding:0","margin:0","border-width:0"].join(";")+";",a),t.appendChild(a))}function aw(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function sw(t){var e,n;return t&&"transparent"!==t?"string"==typeof t&&-1<t.indexOf("rgba")&&((n=Mn(t))&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])):t="none",{color:t,opacity:null==e?1:e}}function lw(s,l,u){u=u||function(t,e){return t===e},s=s.slice();var h=(l=l.slice()).length,c=s.length,p=1,t=h+c,d=[{newPos:-1,components:[]}],e=uw(d[0],l,s,0,u);if(d[0].newPos+1>=h&&c<=e+1){for(var n=[],i=0;i<l.length;i++)n.push(i);return[{indices:n,count:l.length,added:!1,removed:!1}]}function o(){for(var t=-1*p;t<=p;t+=2){var e,n=d[t-1],i=d[t+1],o=(i?i.newPos:0)-t;n&&(d[t-1]=void 0);var r=n&&n.newPos+1<h,a=i&&0<=o&&o<c;if(r||a){if(!r||a&&n.newPos<i.newPos?hw((e={newPos:i.newPos,components:i.components.slice(0)}).components,!1,!0):((e=n).newPos++,hw(e.components,!0,!1)),o=uw(e,l,s,t,u),e.newPos+1>=h&&c<=o+1)return function(t){for(var e=0,n=t.length,i=0,o=0;e<n;e++){var r=t[e];if(r.removed){for(s=o;s<o+r.count;s++)r.indices.push(s);o+=r.count}else{for(var a=[],s=i;s<i+r.count;s++)a.push(s);r.indices=a,i+=r.count,r.added||(o+=r.count)}}return t}(e.components);d[t]=e}else d[t]=void 0}p++}for(;p<=t;){var r=o();if(r)return r}}function uw(t,e,n,i,o){for(var r=e.length,a=n.length,s=t.newPos,l=s-i,u=0;s+1<r&&l+1<a&&o(e[s+1],n[l+1]);)s++,l++,u++;return u&&t.components.push({count:u,added:!1,removed:!1,indices:[]}),t.newPos=s,l}function hw(t,e,n){var i=t[t.length-1];i&&i.added===e&&i.removed===n?t[t.length-1]={count:i.count+1,added:e,removed:n,indices:[]}:t.push({count:1,added:e,removed:n,indices:[]})}var cw="none",pw=Math.round,dw=Math.sin,fw=Math.cos,gw=Math.PI,yw=2*Math.PI,mw=180/gw;function vw(t){return pw(1e3*t)/1e3}function xw(t){return pw(1e4*t)/1e4}function _w(t){return t<1e-4&&-1e-4<t}function bw(t,e){e&&ww(t,"transform","matrix("+vw(e[0])+","+vw(e[1])+","+vw(e[2])+","+vw(e[3])+","+xw(e[4])+","+xw(e[5])+")")}function ww(t,e,n){n&&("linear"===n.type||"radial"===n.type)||t.setAttribute(e,n)}function Sw(t,e,n){var i,o,r,a=null==e.opacity?1:e.opacity;n instanceof qs?ww(t,"opacity",a+""):(null!=(r=(r=e).fill)&&r!==cw?(ww(t,"fill",(i=sw(e.fill)).color),ww(t,"fill-opacity",(null!=e.fillOpacity?e.fillOpacity*i.opacity*a:i.opacity*a)+"")):ww(t,"fill",cw),null!=(r=(r=e).stroke)&&r!==cw?(ww(t,"stroke",(i=sw(e.stroke)).color),r=e.lineWidth,ww(t,"stroke-width",((o=e.strokeNoScale?n.getLineScale():1)?r/o:0)+""),ww(t,"paint-order",e.strokeFirst?"stroke":"fill"),ww(t,"stroke-opacity",(null!=e.strokeOpacity?e.strokeOpacity*i.opacity*a:i.opacity*a)+""),(a=e.lineDash&&0<r&&Ym(e.lineDash,r))?(r=e.lineDashOffset,o&&1!==o&&(a=j(a,function(t){return t/o}),r&&(r=pw(r/=o))),ww(t,"stroke-dasharray",a.join(",")),ww(t,"stroke-dashoffset",(r||0)+"")):ww(t,"stroke-dasharray",cw),e.lineCap&&ww(t,"stroke-linecap",e.lineCap),e.lineJoin&&ww(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&ww(t,"stroke-miterlimit",e.miterLimit+"")):ww(t,"stroke",cw))}var Mw=(Dw.prototype.reset=function(){this._d=[],this._str=""},Dw.prototype.moveTo=function(t,e){this._add("M",t,e)},Dw.prototype.lineTo=function(t,e){this._add("L",t,e)},Dw.prototype.bezierCurveTo=function(t,e,n,i,o,r){this._add("C",t,e,n,i,o,r)},Dw.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},Dw.prototype.arc=function(t,e,n,i,o,r){this.ellipse(t,e,n,n,0,i,o,r)},Dw.prototype.ellipse=function(t,e,n,i,o,r,a,s){var l=0===this._d.length,u=a-r,h=!s,c=Math.abs(u),p=_w(c-yw)||(h?yw<=u:yw<=-u),a=!1,a=!!p||!_w(c)&&gw<=(0<u?u%yw:u%yw+yw)==!!h,s=xw(t+n*fw(r)),c=xw(e+i*dw(r));p&&(u=h?yw-1e-4:1e-4-yw,a=!0,l&&this._d.push("M",s,c));t=xw(t+n*fw(r+u)),u=xw(e+i*dw(r+u));if(isNaN(s)||isNaN(c)||isNaN(n)||isNaN(i)||isNaN(o)||isNaN(mw)||isNaN(t)||isNaN(u))return"";this._d.push("A",xw(n),xw(i),pw(o*mw),+a,+h,t,u)},Dw.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("L",t+n,e),this._add("L",t+n,e+i),this._add("L",t,e+i),this._add("L",t,e),this._add("Z")},Dw.prototype.closePath=function(){0<this._d.length&&this._add("Z")},Dw.prototype._add=function(t,e,n,i,o,r,a,s,l){this._d.push(t);for(var u=1;u<arguments.length;u++){var h=arguments[u];if(isNaN(h))return void(this._invalid=!0);this._d.push(xw(h))}},Dw.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(" "),this._d=[]},Dw.prototype.getStr=function(){return this._str},Dw),Iw={brush:function(t){var e=t.style,n=t.__svgEl;n||(n=aw("path"),t.__svgEl=n),t.path||t.createPathProxy();var i=t.path;t.shapeChanged()&&(i.beginPath(),t.buildPath(i,t.shape),t.pathUpdated());var o=i.getVersion(),r=t,a=r.__svgPathBuilder;(r.__svgPathVersion!==o||!a||t.style.strokePercent<1)&&((a=a||(r.__svgPathBuilder=new Mw)).reset(),i.rebuildPath(a,t.style.strokePercent),a.generateStr(),r.__svgPathVersion=o),ww(n,"d",a.getStr()),Sw(n,e,t),bw(n,t.transform)}},Tw={brush:function(t){var e,n,i,o,r,a,s,l=t.style,u=l.image;u instanceof HTMLImageElement?u=u.src:u instanceof HTMLCanvasElement&&(u=u.toDataURL()),u&&(e=l.x||0,n=l.y||0,i=l.width,o=l.height,(r=t.__svgEl)||(r=aw("image"),t.__svgEl=r),u!==t.__imageSrc&&(a="href",s=u,r.setAttributeNS("http://www.w3.org/1999/xlink",a,s),t.__imageSrc=u),ww(r,"width",i+""),ww(r,"height",o+""),ww(r,"x",e+""),ww(r,"y",n+""),Sw(r,l,t),bw(r,t.transform))}},Cw={left:"start",right:"end",center:"middle",middle:"middle"};function Dw(){}var Aw={brush:function(t){var e,n,i,o=t.style,r=o.text;null!=r&&(r+=""),!r||isNaN(o.x)||isNaN(o.y)||((e=t.__svgEl)||(e=aw("text"),n="xml:space",i="preserve",e.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,i),t.__svgEl=e),n=o.font||eo,e.style.font=n,e.textContent=r,Sw(e,o,t),bw(e,t.transform),i=o.x||0,r=o.y||0,t=co(n),"top"===(n=o.textBaseline)?r+=t/2:"bottom"===n&&(r-=t/2),r=r,o=Cw[o.textAlign]||o.textAlign,ww(e,"dominant-baseline","central"),ww(e,"text-anchor",o),ww(e,"x",i+""),ww(e,"y",r+""))}},M=(kw.prototype.getDefs=function(t){var e=this._svgRoot,n=this._svgRoot.getElementsByTagName("defs");if(0!==n.length)return n[0];if(t){var i=e.insertBefore(this.createElement("defs"),e.firstChild);return i.contains||(i.contains=function(t){var e=i.children;if(!e)return!1;for(var n=e.length-1;0<=n;--n)if(e[n]===t)return!0;return!1}),i}return null},kw.prototype.doUpdate=function(t,e){var n;t&&(n=this.getDefs(!1),t[this._domName]&&n.contains(t[this._domName])?"function"==typeof e&&e(t):(e=this.add(t))&&(t[this._domName]=e))},kw.prototype.add=function(t){return null},kw.prototype.addDom=function(t){var e=this.getDefs(!0);t.parentNode!==e&&e.appendChild(t)},kw.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},kw.prototype.getDoms=function(){var i=this.getDefs(!1);if(!i)return[];var o=[];return Z(this._tagNames,function(t){for(var e=i.getElementsByTagName(t),n=0;n<e.length;n++)o.push(e[n])}),o},kw.prototype.markAllUnused=function(){var t=this.getDoms(),e=this;Z(t,function(t){t[e._markLabel]="0"})},kw.prototype.markDomUsed=function(t){t&&(t[this._markLabel]="1")},kw.prototype.markDomUnused=function(t){t&&(t[this._markLabel]="0")},kw.prototype.isDomUnused=function(t){return t&&"1"!==t[this._markLabel]},kw.prototype.removeUnused=function(){var e=this,n=this.getDefs(!1);n&&Z(this.getDoms(),function(t){e.isDomUnused(t)&&n.removeChild(t)})},kw.prototype.getSvgProxy=function(t){return t instanceof Bs?Iw:t instanceof qs?Tw:t instanceof Ws?Aw:Iw},kw.prototype.getSvgElement=function(t){return t.__svgEl},kw);function kw(t,e,n,i,o){this.nextId=0,this._domName="_dom",this.createElement=aw,this._zrId=t,this._svgRoot=e,this._tagNames="string"==typeof n?[n]:n,this._markLabel=i,o&&(this._domName=o)}function Lw(t){return"linear"===t.type}function Pw(t){return"radial"===t.type}function Ow(t){return t&&("linear"===t.type||"radial"===t.type)}var Rw,Nw=(Pt(zw,Rw=M),zw.prototype.addWithoutUpdate=function(o,r){var a;r&&r.style&&(a=this,Z(["fill","stroke"],function(t){var e,n,i=r.style[t];Ow(i)&&(e=i,n=a.getDefs(!0),i=void 0,e.__dom?(i=e.__dom,n.contains(e.__dom)||a.addDom(i)):i=a.add(e),a.markUsed(r),i=i.getAttribute("id"),o.setAttribute(t,"url(#"+i+")"))}))},zw.prototype.add=function(t){var e;if(Lw(t))e=this.createElement("linearGradient");else{if(!Pw(t))return z("Illegal gradient type."),null;e=this.createElement("radialGradient")}return t.id=t.id||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-gradient-"+t.id),this.updateDom(t,e),this.addDom(e),e},zw.prototype.update=function(n){var i;Ow(n)&&(i=this).doUpdate(n,function(){var t,e=n.__dom;e&&(t=e.tagName,"linear"===(e=n.type)&&"linearGradient"===t||"radial"===e&&"radialGradient"===t?i.updateDom(n,n.__dom):(i.removeDom(n),i.add(n)))})},zw.prototype.updateDom=function(t,e){if(Lw(t))e.setAttribute("x1",t.x+""),e.setAttribute("y1",t.y+""),e.setAttribute("x2",t.x2+""),e.setAttribute("y2",t.y2+"");else{if(!Pw(t))return void z("Illegal gradient type.");e.setAttribute("cx",t.x+""),e.setAttribute("cy",t.y+""),e.setAttribute("r",t.r+"")}t.global?e.setAttribute("gradientUnits","userSpaceOnUse"):e.setAttribute("gradientUnits","objectBoundingBox"),e.innerHTML="";for(var n=t.colorStops,i=0,o=n.length;i<o;++i){var r=this.createElement("stop");r.setAttribute("offset",100*n[i].offset+"%");var a,s=n[i].color;-1<s.indexOf("rgba")?(a=Mn(s)[3],s=Cn(s),r.setAttribute("stop-color","#"+s),r.setAttribute("stop-opacity",a+"")):r.setAttribute("stop-color",n[i].color),e.appendChild(r)}t.__dom=e},zw.prototype.markUsed=function(t){var e;t.style&&((e=t.style.fill)&&e.__dom&&Rw.prototype.markDomUsed.call(this,e.__dom),(e=t.style.stroke)&&e.__dom&&Rw.prototype.markDomUsed.call(this,e.__dom))},zw);function zw(t,e){return Rw.call(this,t,e,["linearGradient","radialGradient"],"__gradient_in_use__")||this}function Ew(t){return t&&(t.image||t.svgElement)}var Vw,Bw=new qu,Gw=(Pt(Fw,Vw=M),Fw.prototype.addWithoutUpdate=function(o,r){var a;r&&r.style&&(a=this,Z(["fill","stroke"],function(t){var e,n,i=r.style[t];Ew(i)&&(e=a.getDefs(!0),(n=Bw.get(i))?e.contains(n)||a.addDom(n):n=a.add(i),a.markUsed(r),n=n.getAttribute("id"),o.setAttribute(t,"url(#"+n+")"))}))},Fw.prototype.add=function(t){if(Ew(t)){var e=this.createElement("pattern");return t.id=null==t.id?this.nextId++:t.id,e.setAttribute("id","zr"+this._zrId+"-pattern-"+t.id),e.setAttribute("x","0"),e.setAttribute("y","0"),e.setAttribute("patternUnits","userSpaceOnUse"),this.updateDom(t,e),this.addDom(e),e}},Fw.prototype.update=function(e){var n;Ew(e)&&(n=this).doUpdate(e,function(){var t=Bw.get(e);n.updateDom(e,t)})},Fw.prototype.updateDom=function(t,e){var n=t.svgElement;if(n instanceof SVGElement)n.parentNode!==e&&(e.innerHTML="",e.appendChild(n),e.setAttribute("width",t.svgWidth+""),e.setAttribute("height",t.svgHeight+""));else{var i=void 0,o=e.getElementsByTagName("image");if(o.length){if(!t.image)return void e.removeChild(o[0]);i=o[0]}else t.image&&(i=this.createElement("image"));i&&(a=void 0,"string"==typeof(r=t.image)?a=r:r instanceof HTMLImageElement?a=r.src:r instanceof HTMLCanvasElement&&(a=r.toDataURL()),a&&(i.setAttribute("href",a),i.setAttribute("x","0"),i.setAttribute("y","0"),(s=Kr(a,i,{dirty:function(){}},function(t){e.setAttribute("width",t.width+""),e.setAttribute("height",t.height+"")}))&&s.width&&s.height&&(e.setAttribute("width",s.width+""),e.setAttribute("height",s.height+"")),e.appendChild(i)))}var o=t.x||0,r=t.y||0,a=(t.rotation||0)/Math.PI*180,s=t.scaleX||1,i=t.scaleY||1;e.setAttribute("patternTransform","translate("+o+", "+r+") rotate("+a+") scale("+s+", "+i+")"),Bw.set(t,e)},Fw.prototype.markUsed=function(t){t.style&&(Ew(t.style.fill)&&Vw.prototype.markDomUsed.call(this,Bw.get(t.style.fill)),Ew(t.style.stroke)&&Vw.prototype.markDomUsed.call(this,Bw.get(t.style.stroke)))},Fw);function Fw(t,e){return Vw.call(this,t,e,["pattern"],"__pattern_in_use__")||this}function Hw(t){t=t.__clipPaths;return t&&0<t.length}var Ww,Uw,Xw=(Pt(jw,Uw=M),jw.prototype.markAllUnused=function(){Uw.prototype.markAllUnused.call(this);var t,e=this._refGroups;for(t in e)e.hasOwnProperty(t)&&this.markDomUnused(e[t]);this._keyDuplicateCount={}},jw.prototype._getClipPathGroup=function(t,e){if(Hw(t)){var n=t.__clipPaths,i=this._keyDuplicateCount,t=function(t){var e=[];if(t)for(var n=0;n<t.length;n++){var i=t[n];e.push(i.id)}return e.join(",")}(n);return Xm(n,e&&e.__clipPaths)&&(i[t]=i[t]||0,i[t]&&(t+="-"+i[t]),i[t]++),this._refGroups[t]||(this._refGroups[t]=this.createElement("g"))}},jw.prototype.update=function(t,e){e=this._getClipPathGroup(t,e);return e&&(this.markDomUsed(e),this.updateDom(e,t.__clipPaths)),e},jw.prototype.updateDom=function(t,e){var n,i,o,r;e&&0<e.length?(n=this.getDefs(!0),o=i=void 0,(r=e[0])._dom?(o=r._dom.getAttribute("id"),i=r._dom,n.contains(i)||n.appendChild(i)):(o="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(i=this.createElement("clipPath")).setAttribute("id",o),n.appendChild(i),r._dom=i),this.getSvgProxy(r).brush(r),r=this.getSvgElement(r),i.innerHTML="",i.appendChild(r),t.setAttribute("clip-path","url(#"+o+")"),1<e.length&&this.updateDom(i,e.slice(1))):t&&t.setAttribute("clip-path","none")},jw.prototype.markUsed=function(t){var e=this;t.__clipPaths&&Z(t.__clipPaths,function(t){t._dom&&Uw.prototype.markDomUsed.call(e,t._dom)})},jw.prototype.removeUnused=function(){Uw.prototype.removeUnused.call(this);var t,e,n={},i=this._refGroups;for(t in i)i.hasOwnProperty(t)&&(e=i[t],this.isDomUnused(e)?e.parentNode&&e.parentNode.removeChild(e):n[t]=e);this._refGroups=n},jw),Yw=(Pt(Zw,Ww=M),Zw.prototype._getFromPool=function(){var t,e=this._shadowDomPool.pop();return e||((e=this.createElement("filter")).setAttribute("id","zr"+this._zrId+"-shadow-"+this.nextId++),t=this.createElement("feDropShadow"),e.appendChild(t),this.addDom(e)),e},Zw.prototype.update=function(t,e){var n,i=e.style;(n=i)&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)?(n=(i=e).style,i=i.getGlobalScale(),n=[n.shadowColor,(n.shadowBlur||0).toFixed(2),(n.shadowOffsetX||0).toFixed(2),(n.shadowOffsetY||0).toFixed(2),i[0],i[1]].join(","),(i=e._shadowDom=this._shadowDomMap[n])||(i=this._getFromPool(),this._shadowDomMap[n]=i),this.updateDom(t,e,i)):this.remove(t,e)},Zw.prototype.remove=function(t,e){null!=e._shadowDom&&(e._shadowDom=null,t.removeAttribute("filter"))},Zw.prototype.updateDom=function(t,e,n){var i,o,r=n.children[0],a=e.style,s=e.getGlobalScale(),l=s[0],u=s[1];l&&u&&(i=a.shadowOffsetX||0,o=a.shadowOffsetY||0,s=a.shadowBlur,a=sw(a.shadowColor),r.setAttribute("dx",i/l+""),r.setAttribute("dy",o/u+""),r.setAttribute("flood-color",a.color),r.setAttribute("flood-opacity",a.opacity+""),r.setAttribute("stdDeviation",s/2/l+" "+s/2/u),n.setAttribute("x","-100%"),n.setAttribute("y","-100%"),n.setAttribute("width","300%"),n.setAttribute("height","300%"),n=(e._shadowDom=n).getAttribute("id"),t.setAttribute("filter","url(#"+n+")"))},Zw.prototype.removeUnused=function(){if(this.getDefs(!1)){var t,e=this._shadowDomPool,n=this._shadowDomMap;for(t in n)n.hasOwnProperty(t)&&e.push(n[t]);this._shadowDomMap={}}},Zw);function Zw(t,e){e=Ww.call(this,t,e,["filter"],"__filter_in_use__","_shadowDom")||this;return e._shadowDomMap={},e._shadowDomPool=[],e}function jw(t,e){e=Uw.call(this,t,e,"clipPath","__clippath_in_use__")||this;return e._refGroups={},e._keyDuplicateCount={},e}function qw(t){return parseInt(t,10)}function Kw(t){return t instanceof Bs?Iw:t instanceof qs?Tw:t instanceof Ws?Aw:Iw}function $w(t,e){return e&&t&&e.parentNode!==t}function Jw(t,e,n){$w(t,e)&&n&&((n=n.nextSibling)?t.insertBefore(e,n):t.appendChild(e))}function Qw(t,e){var n;$w(t,e)&&((n=t.firstChild)?t.insertBefore(e,n):t.appendChild(e))}function tS(t){return t.__svgEl}function eS(t,e,n,i){this.type="svg",this.refreshHover=nS("refreshHover"),this.pathToImage=nS("pathToImage"),this.configLayer=nS("configLayer"),this.root=t,this.storage=e,this._opts=n=G({},n||{});var o=aw("svg");o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),o.setAttribute("version","1.1"),o.setAttribute("baseProfile","full"),o.style.cssText="user-select:none;position:absolute;left:0;top:0;";var r=aw("g");o.appendChild(r);e=aw("g");o.appendChild(e),this._gradientManager=new Nw(i,e),this._patternManager=new Gw(i,e),this._clipPathManager=new Xw(i,e),this._shadowManager=new Yw(i,e);i=document.createElement("div");i.style.cssText="overflow:hidden;position:relative",this._svgDom=o,this._svgRoot=e,this._backgroundRoot=r,this._viewport=i,t.appendChild(i),i.appendChild(o),this.resize(n.width,n.height),this._visibleList=[]}function nS(t){return function(){z('In SVG mode painter not support method "'+t+'"')}}var iS=(eS.prototype.getType=function(){return"svg"},eS.prototype.getViewportRoot=function(){return this._viewport},eS.prototype.getSvgDom=function(){return this._svgDom},eS.prototype.getSvgRoot=function(){return this._svgRoot},eS.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},eS.prototype.refresh=function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},eS.prototype.setBackgroundColor=function(t){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var e=aw("rect");e.setAttribute("width",this.getWidth()),e.setAttribute("height",this.getHeight()),e.setAttribute("x",0),e.setAttribute("y",0),e.setAttribute("id",0);var n=sw(t),t=n.color,n=n.opacity;e.setAttribute("fill",t),e.setAttribute("fill-opacity",n),this._backgroundRoot.appendChild(e),this._backgroundNode=e},eS.prototype.createSVGElement=aw,eS.prototype.paintOne=function(t){var e=Kw(t);return e&&e.brush(t),tS(t)},eS.prototype._paintList=function(t){var e=this._gradientManager,n=this._patternManager,i=this._clipPathManager,o=this._shadowManager;e.markAllUnused(),n.markAllUnused(),i.markAllUnused(),o.markAllUnused();for(var r=this._svgRoot,a=this._visibleList,s=t.length,l=[],u=0;u<s;u++){var h=t[u],c=Kw(h),p=tS(h);h.invisible||(!h.__dirty&&p||(c&&c.brush(h),(p=tS(h))&&h.style&&(e.update(h.style.fill),e.update(h.style.stroke),n.update(h.style.fill),n.update(h.style.stroke),o.update(p,h)),h.__dirty=0),p&&l.push(h))}for(var d,f,g,y,m,v,x=lw(a,l),u=0;u<x.length;u++){var _=x[u];if(_.removed)for(var b=0;b<_.count;b++)p=tS(h=a[_.indices[b]]),Hw(h)?(v=p)&&v.parentNode&&v.parentNode.removeChild(v):(m=r,(v=p)&&m&&v.parentNode===m&&m.removeChild(v))}for(u=0;u<x.length;u++)if(!(_=x[u]).removed)for(b=0;b<_.count;b++){var h=l[_.indices[b]],w=i.update(h,g);w!==y&&(d=f,w&&(d?Jw(r,w,d):Qw(r,w),f=w,d=null),y=w),p=tS(h),d?Jw(y||r,p,d):Qw(y||r,p),d=p||d,y||(f=d),e.markUsed(h),e.addWithoutUpdate(p,h),n.markUsed(h),n.addWithoutUpdate(p,h),i.markUsed(h),g=h}e.removeUnused(),n.removeUnused(),i.removeUnused(),o.removeUnused(),this._visibleList=l},eS.prototype.resize=function(t,e){var n=this._viewport;n.style.display="none";var i=this._opts;null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width===t&&this._height===e||(this._width=t,this._height=e,(n=n.style).width=t+"px",n.height=e+"px",(n=this._svgDom).setAttribute("width",t+""),n.setAttribute("height",e+"")),this._backgroundNode&&(this._backgroundNode.setAttribute("width",t),this._backgroundNode.setAttribute("height",e))},eS.prototype.getWidth=function(){return this._width},eS.prototype.getHeight=function(){return this._height},eS.prototype._getSize=function(t){var e=this._opts,n=["width","height"][t],i=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],r=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);t=this.root,e=document.defaultView.getComputedStyle(t);return(t[i]||qw(e[n])||qw(t.style[n]))-(qw(e[o])||0)-(qw(e[r])||0)|0},eS.prototype.dispose=function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},eS.prototype.clear=function(){var t=this._viewport;t&&t.parentNode&&t.parentNode.removeChild(t)},eS.prototype.toDataURL=function(){this.refresh();var t=this._svgDom,t=t.outerHTML||(t.parentNode&&t.parentNode).innerHTML;return"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(t.replace(/></g,">\n\r<"))},eS);var oS,rS,aS=(y(sS,oS=Sf),sS.prototype.getInitialData=function(t){return Rx(null,this,{useEncodeDefaulter:!0})},sS.prototype.getLegendIcon=function(t){var e=new Ao,n=Fm("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),n="none"===i?"circle":i,i=.8*t.itemHeight,i=Fm(n,(t.itemWidth-i)/2,(t.itemHeight-i)/2,i,i,t.itemStyle.fill);e.add(i),i.setStyle(t.itemStyle);o="inherit"===t.iconRotate?o:t.iconRotate||0;return i.rotation=o*Math.PI/180,i.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<n.indexOf("empty")&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),e},sS.type="series.line",sS.dependencies=["grid","polar"],sS.defaultOption={zlevel:0,z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0,lineStyle:{width:"bolder"}},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},sS);function sS(){var t=null!==oS&&oS.apply(this,arguments)||this;return t.type=sS.type,t.hasSymbolVisual=!0,t}function lS(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var o=$p(t,e,n[0]);return null!=o?o+"":null}if(i){for(var r=[],a=0;a<n.length;a++)r.push($p(t,e,n[a]));return r.join(" ")}}function uS(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!et(e))return e+"";for(var i=[],o=0;o<n.length;o++){var r=t.getDimensionIndex(n[o]);0<=r&&i.push(e[r])}return i.join(" ")}function hS(t,e,n,i){var o=rS.call(this)||this;return o.updateData(t,e,n,i),o}function cS(t,e){this.parent.drift(t,e)}var pS=(y(hS,rS=Ao),hS.prototype._createSymbol=function(t,e,n,i,o){this.removeAll();o=Fm(t,-1,-1,2,2,null,o);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=cS,this._symbolType=t,this.add(o)},hS.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},hS.prototype.getSymbolType=function(){return this._symbolType},hS.prototype.getSymbolPath=function(){return this.childAt(0)},hS.prototype.highlight=function(){Jl(this.childAt(0))},hS.prototype.downplay=function(){Ql(this.childAt(0))},hS.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},hS.prototype.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},hS.prototype.updateData=function(t,e,n,i){this.silent=!1;var o,r,a,s=t.getItemVisual(e,"symbol")||"circle",l=t.hostModel,u=hS.getSymbolSize(t,e),h=s!==this._symbolType,c=i&&i.disableAnimation;h?(o=t.getItemVisual(e,"symbolKeepAspect"),this._createSymbol(s,t,e,u,o)):((r=this.childAt(0)).silent=!1,a={scaleX:u[0]/2,scaleY:u[1]/2},c?r.attr(a):wu(r,a,l,e),Du(r)),this._updateCommon(t,e,u,n,i),h&&(r=this.childAt(0),c||(a={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:r.style.opacity}},r.scaleX=r.scaleY=0,r.style.opacity=0,Su(r,a,l,e))),c&&this.childAt(0).stopAnimation("remove"),this._seriesModel=l},hS.prototype._updateCommon=function(e,t,n,i,o){var r,a,s,l,u,h,c=this.childAt(0),p=e.hostModel;i&&(r=i.emphasisItemStyle,s=i.blurItemStyle,a=i.selectItemStyle,l=i.focus,u=i.blurScope,h=i.labelStatesModels,v=i.hoverScale,g=i.cursorStyle),i&&!e.hasItemOption||(r=(d=(f=i&&i.itemModel?i.itemModel:e.getItemModel(t)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),a=f.getModel(["select","itemStyle"]).getItemStyle(),s=f.getModel(["blur","itemStyle"]).getItemStyle(),l=d.get("focus"),u=d.get("blurScope"),h=Ou(f),v=d.getShallow("scale"),g=f.getShallow("cursor"));var d=e.getItemVisual(t,"symbolRotate");c.attr("rotation",(d||0)*Math.PI/180||0);var f=Wm(e.getItemVisual(t,"symbolOffset"),n);f&&(c.x=f[0],c.y=f[1]),g&&c.attr("cursor",g);d=e.getItemVisual(t,"style"),f=d.fill;c instanceof qs?(y=c.style,c.useStyle(G({image:y.image,x:y.x,y:y.y,width:y.width,height:y.height},d))):(c.__isEmptyBrush?c.useStyle(G({},d)):c.useStyle(d),c.style.decal=null,c.setColor(f,o&&o.symbolInnerColor),c.style.strokeNoScale=!0);var g=e.getItemVisual(t,"liftZ"),y=this._z2;null!=g?null==y&&(this._z2=c.z2,c.z2+=g):null!=y&&(c.z2=y,this._z2=null);var m=o&&o.useNameLabel;Pu(c,h,{labelFetcher:p,labelDataIndex:t,defaultText:function(t){return m?e.getName(t):lS(e,t)},inheritColor:f,defaultOpacity:d.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var v,n=c.ensureState("emphasis");n.style=r,c.ensureState("select").style=a,c.ensureState("blur").style=s,v&&(v=Math.max(1.1,3/this._sizeY),n.scaleX=this._sizeX*v,n.scaleY=this._sizeY*v),this.setSymbolScale(1),hu(this,l,u)},hS.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},hS.prototype.fadeOut=function(t,e){var n=this.childAt(0),i=this._seriesModel,o=_l(this).dataIndex,r=e&&e.animation;this.silent=n.silent=!0,e&&e.fadeLabel?(e=n.getTextContent())&&Iu(e,{style:{opacity:0}},i,{dataIndex:o,removeOpt:r,cb:function(){n.removeTextContent()}}):n.removeTextContent(),Iu(n,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:t,removeOpt:r})},hS.getSymbolSize=function(t,e){return Hm(t.getItemVisual(e,"symbolSize"))},hS);function dS(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&(!i.isIgnore||!i.isIgnore(n))&&(!i.clipShape||i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function fS(t){return(t=null!=t&&!at(t)?{isIgnore:t}:t)||{}}function gS(t){var e=t.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"),hoverScale:t.get("scale"),labelStatesModels:Ou(e),cursorStyle:e.get("cursor")}}var yS=(mS.prototype.updateData=function(r,a){a=fS(a);var s=this.group,l=r.hostModel,u=this._data,h=this._SymbolCtor,c=a.disableAnimation,p=gS(r),d={disableAnimation:c},f=a.getSymbolPoint||function(t){return r.getItemLayout(t)};u||s.removeAll(),r.diff(u).add(function(t){var e,n=f(t);dS(r,n,t,a)&&((e=new h(r,t,p,d)).setPosition(n),r.setItemGraphicEl(t,e),s.add(e))}).update(function(t,e){var n,i=u.getItemGraphicEl(e),o=f(t);dS(r,o,t,a)?(n=r.getItemVisual(t,"symbol")||"circle",e=i&&i.getSymbolType&&i.getSymbolType(),!i||e&&e!==n?(s.remove(i),(i=new h(r,t,p,d)).setPosition(o)):(i.updateData(r,t,p,d),o={x:o[0],y:o[1]},c?i.attr(o):wu(i,o,l)),s.add(i),r.setItemGraphicEl(t,i)):s.remove(i)}).remove(function(t){var e=u.getItemGraphicEl(t);e&&e.fadeOut(function(){s.remove(e)})}).execute(),this._getSymbolPoint=f,this._data=r},mS.prototype.isPersistent=function(){return!0},mS.prototype.updateLayout=function(){var n=this,t=this._data;t&&t.eachItemGraphicEl(function(t,e){e=n._getSymbolPoint(e);t.setPosition(e),t.markRedraw()})},mS.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=gS(t),this._data=null,this.group.removeAll()},mS.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}n=fS(n);for(var o=t.start;o<t.end;o++){var r,a=e.getItemLayout(o);dS(e,a,o,n)&&((r=new this._SymbolCtor(e,o,this._seriesScope)).traverse(i),r.setPosition(a),this.group.add(r),e.setItemGraphicEl(o,r))}},mS.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)})}):e.removeAll()},mS);function mS(t){this.group=new Ao,this._SymbolCtor=t||pS}function vS(t,e,n){var i=t.getBaseAxis(),o=t.getOtherAxis(i),r=(s=n,u=0,l=(l=o).scale.getExtent(),"start"===s?u=l[0]:"end"===s?u=l[1]:0<l[0]?u=l[0]:l[1]<0&&(u=l[1]),u),a=i.dim,n=o.dim,s=e.mapDimension(n),l=e.mapDimension(a),u="x"===n||"radius"===n?1:0,i=j(t.dimensions,function(t){return e.mapDimension(t)}),o=!1,t=e.getCalculationInfo("stackResultDimension");return Px(e,i[0])&&(o=!0,i[0]=t),Px(e,i[1])&&(o=!0,i[1]=t),{dataDimsForPoint:i,valueStart:r,valueAxisDim:n,baseAxisDim:a,stacked:!!o,valueDim:s,baseDim:l,baseDataOffset:u,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function xS(t,e,n,i){var o=NaN;t.stacked&&(o=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(o)&&(o=t.valueStart);var r=t.baseDataOffset,a=[];return a[r]=n.get(t.baseDim,i),a[1-r]=o,e.dataToPoint(a)}var _S="undefined"!=typeof Float32Array,bS=_S?Float32Array:Array;function wS(t){return et(t)?_S?new Float32Array(t):t:new bS(t)}var SS=Math.min,MS=Math.max;function IS(t,e){return isNaN(t)||isNaN(e)}function TS(t,e,n,i,o,r,a,s,l){for(var u,h,c,p,d,f,g=n,y=0;y<i;y++){var m=e[2*g],v=e[2*g+1];if(o<=g||g<0)break;if(IS(m,v)){if(l){g+=r;continue}break}if(g===n)t[0<r?"moveTo":"lineTo"](m,v),c=m,p=v;else{var x=m-u,_=v-h;if(x*x+_*_<.5){g+=r;continue}if(0<a){for(var b=g+r,w=e[2*b],S=e[2*b+1];w===m&&S===v&&y<i;)y++,g+=r,w=e[2*(b+=r)],S=e[2*b+1],m=e[2*g],v=e[2*g+1];var M=y+1;if(l)for(;IS(w,S)&&M<i;)M++,w=e[2*(b+=r)],S=e[2*b+1];var I,T,C,D,A=0,k=0,L=void 0,P=void 0;i<=M||IS(w,S)?(d=m,f=v):(A=w-u,k=S-h,I=m-u,T=w-m,C=v-h,D=S-v,_=x=void 0,P="x"===s?(x=Math.abs(I),_=Math.abs(T),d=m-x*a,L=m+x*a,f=v):"y"===s?(x=Math.abs(C),_=Math.abs(D),f=v-x*a,L=d=m,v+x*a):(x=Math.sqrt(I*I+C*C),d=m-A*a*(1-(D=(_=Math.sqrt(T*T+D*D))/(_+x))),f=v-k*a*(1-D),P=v+k*a*D,L=SS(L=m+A*a*D,MS(w,m)),P=SS(P,MS(S,v)),L=MS(L,SS(w,m)),f=v-(k=(P=MS(P,SS(S,v)))-v)*x/_,d=SS(d=m-(A=L-m)*x/_,MS(u,m)),f=SS(f,MS(h,v)),L=m+(A=m-(d=MS(d,SS(u,m))))*_/x,v+(k=v-(f=MS(f,SS(h,v))))*_/x)),t.bezierCurveTo(c,p,d,f,m,v),c=L,p=P}else t.lineTo(m,v)}u=m,h=v,g+=r}return y}var CS,DS,AS,kS=function(){this.smooth=0,this.smoothConstraint=!0},LS=(y(zS,AS=Bs),zS.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},zS.prototype.getDefaultShape=function(){return new kS},zS.prototype.buildPath=function(t,e){var n=e.points,i=0,o=n.length/2;if(e.connectNulls){for(;0<o&&IS(n[2*o-2],n[2*o-1]);o--);for(;i<o&&IS(n[2*i],n[2*i+1]);i++);}for(;i<o;)i+=TS(t,n,i,o,o,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},zS.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,o=this.path.data,r=vs.CMD,a="x"===e,s=[],l=0;l<o.length;){var u,h=void 0,c=void 0;switch(o[l++]){case r.M:n=o[l++],i=o[l++];break;case r.L:if(h=o[l++],c=o[l++],(u=a?(t-n)/(h-n):(t-i)/(c-i))<=1&&0<=u){var p=a?(c-i)*u+i:(h-n)*u+n;return a?[t,p]:[p,t]}n=h,i=c;break;case r.C:var h=o[l++],c=o[l++],d=o[l++],f=o[l++],g=o[l++],y=o[l++],m=a?Pa(n,h,d,g,t,s):Pa(i,c,f,y,t,s);if(0<m)for(var v=0;v<m;v++){var x=s[v];if(x<=1&&0<=x)return p=a?ka(i,c,f,y,x):ka(n,h,d,g,x),a?[t,p]:[p,t]}n=g,i=y}}},zS),PS=(y(NS,DS=kS),NS),OS=(y(RS,CS=Bs),RS.prototype.getDefaultShape=function(){return new PS},RS.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,o=0,r=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;0<r&&IS(n[2*r-2],n[2*r-1]);r--);for(;o<r&&IS(n[2*o],n[2*o+1]);o++);}for(;o<r;){var s=TS(t,n,o,r,r,1,e.smooth,a,e.connectNulls);TS(t,i,o+s-1,s,r,-1,e.stackedOnSmooth,a,e.connectNulls),o+=s+1,t.closePath()}},RS);function RS(t){t=CS.call(this,t)||this;return t.type="ec-polygon",t}function NS(){return null!==DS&&DS.apply(this,arguments)||this}function zS(t){t=AS.call(this,t)||this;return t.type="ec-polyline",t}function ES(t,e,n,i,o){var r=t.getArea(),a=r.x,s=r.y,l=r.width,u=r.height,r=n.get(["lineStyle","width"])||2;a-=r/2,s-=r/2,l+=r,u+=r;var a=Math.floor(a),l=Math.round(l),h=new rl({shape:{x:a,y:s,width:l,height:u}});return e&&(t=(e=t.getBaseAxis()).isHorizontal(),e=e.inverse,t?(e&&(h.shape.x+=l),h.shape.width=0):(e||(h.shape.y+=u),h.shape.height=0),Su(h,{shape:{width:l,height:u,x:a,y:s}},n,null,i,"function"==typeof o?function(t){o(t,h)}:null)),h}function VS(t,e,n){var i=t.getArea(),o=Xo(i.r0,1),r=Xo(i.r,1),a=new My({shape:{cx:Xo(t.cx,1),cy:Xo(t.cy,1),r0:o,r:r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=i.startAngle:a.shape.r=o,Su(a,{shape:{endAngle:i.endAngle,r:r}},n)),a}function BS(t,e,n,i,o){return t?"polar"===t.type?VS(t,e,n):"cartesian2d"===t.type?ES(t,e,n,i,o):null:null}function GS(t,e){return t.type===e}function FS(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return 1}}function HS(t){for(var e=1/0,n=1/0,i=-1/0,o=-1/0,r=0;r<t.length;){var a=t[r++],s=t[r++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),o=Math.max(s,o))}return[[e,n],[i,o]]}function WS(t,e){var n=HS(t),i=n[0],t=n[1],n=HS(e),e=n[0],n=n[1];return Math.max(Math.abs(i[0]-e[0]),Math.abs(i[1]-e[1]),Math.abs(t[0]-n[0]),Math.abs(t[1]-n[1]))}function US(t){return"number"==typeof t?t:t?.5:0}function XS(t,e,n){for(var e=e.getBaseAxis(),i="x"===e.dim||"radius"===e.dim?0:1,o=[],r=0,a=[],s=[],l=[];r<t.length-2;r+=2)switch(l[0]=t[r+2],l[1]=t[r+3],s[0]=t[r],s[1]=t[r+1],o.push(s[0],s[1]),n){case"end":a[i]=l[i],a[1-i]=s[1-i],o.push(a[0],a[1]);break;case"middle":var u=(s[i]+l[i])/2,h=[];a[i]=h[i]=u,a[1-i]=s[1-i],h[1-i]=l[1-i],o.push(a[0],a[1]),o.push(h[0],h[1]);break;default:a[i]=s[i],a[1-i]=l[1-i],o.push(a[0],a[1])}return o.push(t[r++],t[r++]),o}function YS(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var o,r=i.length-1;0<=r;r--){var a,s=t.getDimensionInfo(i[r].dimension);if("x"===(a=s&&s.coordDim)||"y"===a){o=i[r];break}}if(o){var l=e.getAxis(a),u=j(o.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),h=u.length,c=o.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse());e=function(t,e){var n,i,o=[],r=t.length;function a(t,e,n){var i=t.coord;return{coord:n,color:kn((n-i)/(e.coord-i),[t.color,e.color])}}for(var s=0;s<r;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(e<u){i?o.push(a(i,l,e)):n&&o.push(a(n,l,0),a(n,l,e));break}n&&(o.push(a(n,l,0)),n=null),o.push(l),i=l}}return o}(u,"x"===a?n.getWidth():n.getHeight()),n=e.length;if(!n&&h)return u[0].coord<0?c[1]||u[h-1].color:c[0]||u[0].color;var p=e[0].coord-10,u=e[n-1].coord+10,d=u-p;if(d<.001)return"transparent";Z(e,function(t){t.offset=(t.coord-p)/d}),e.push({offset:n?e[n-1].offset:.5,color:c[1]||"transparent"}),e.unshift({offset:n?e[0].offset:.5,color:c[0]||"transparent"});e=new qy(0,0,0,0,e,!0);return e[a]=p,e[a+"2"]=u,e}}}function ZS(t,e,n){var i=t.get("showAllSymbol"),t="auto"===i;if(!i||t){var o=n.getAxesByScale("ordinal")[0];if(o&&(!t||!function(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var o=e.count(),r=Math.max(1,Math.round(o/5)),a=0;a<o;a+=r)if(1.5*pS.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}(o,e))){var r=e.mapDimension(o.dim),a={};return Z(o.getViewLabels(),function(t){t=o.scale.getRawOrdinalNumber(t.tickValue);a[t]=1}),function(t){return!a.hasOwnProperty(e.get(r,t))}}}}function jS(t){for(var e,n,i=t.length/2;0<i&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}function qS(t,e){return[t[2*e],t[2*e+1]]}function KS(t){if(t.get(["endLabel","show"]))return 1;for(var e=0;e<Cl.length;e++)if(t.get([Cl[e],"endLabel","show"]))return 1}function $S(n,i,e,t){if(GS(i,"cartesian2d")){var o,r,a=t.getModel("endLabel"),s=a.get("valueAnimation"),l=t.getData(),u={lastFrameIndex:0},h=KS(t)?function(t,e){n._endLabelOnDuring(t,e,l,u,s,a,i)}:null,c=i.getBaseAxis().isHorizontal(),p=ES(i,e,t,function(){var t=n._endLabel;t&&e&&null!=u.originalX&&t.attr({x:u.originalX,y:u.originalY})},h);return t.get("clip",!0)||(o=p.shape,r=Math.max(o.width,o.height),c?(o.y-=r,o.height+=2*r):(o.x-=r,o.width+=2*r)),h&&h(1,p),p}return VS(i,e,t)}var JS,QS=(y(tM,JS=Nf),tM.prototype.init=function(){var t=new Ao,e=new yS;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},tM.prototype.render=function(t,e,n){var i=this,o=t.coordinateSystem,r=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.getLayout("points")||[],h="polar"===o.type,c=this._coordSys,p=this._symbolDraw,d=this._polyline,f=this._polygon,g=this._lineGroup,y=t.get("animation"),m=!l.isEmpty(),v=l.get("origin"),x=vS(o,a,v),_=m&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),o=wS(2*i),r=0;r<i;r++){var a=xS(n,t,e,r);o[2*r]=a[0],o[2*r+1]=a[1]}return o}(o,a,x),b=t.get("showSymbol"),w=b&&!h&&ZS(t,a,o),S=this._data;S&&S.eachItemGraphicEl(function(t,e){t.__temp&&(r.remove(t),S.setItemGraphicEl(e,null))}),b||p.remove(),r.add(g);var M=!h&&t.get("step");o&&o.getArea&&t.get("clip",!0)&&(null!=(I=o.getArea()).width?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;x=YS(a,o,n)||a.getVisual("style")[a.getVisual("drawType")];d&&c.type===o.type&&M===this._step?(m&&!f?f=this._newPolygon(u,_):f&&!m&&(g.remove(f),f=this._polygon=null),h||this._initOrUpdateEndLabel(t,o,$h(x)),(c=g.getClipPath())?Su(c,{shape:$S(this,o,!1,t).shape},t):g.setClipPath($S(this,o,!0,t)),b&&p.updateData(a,{isIgnore:w,clipShape:I,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),FS(this._stackedOnPoints,_)&&FS(this._points,u)||(y?this._doUpdateAnimation(a,_,o,n,M,v):(M&&(u=XS(u,o,M),_=_&&XS(_,o,M)),d.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:_})))):(b&&p.updateData(a,{isIgnore:w,clipShape:I,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),y&&this._initSymbolLabelAnimation(a,o,I),M&&(u=XS(u,o,M),_=_&&XS(_,o,M)),d=this._newPolyline(u),m&&(f=this._newPolygon(u,_)),h||this._initOrUpdateEndLabel(t,o,$h(x)),g.setClipPath($S(this,o,!0,t)));w=t.get(["emphasis","focus"]),y=t.get(["emphasis","blurScope"]);d.useStyle(F(s.getLineStyle(),{fill:"none",stroke:x,lineJoin:"bevel"})),fu(d,t,"lineStyle"),0<d.style.lineWidth&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1),_l(d).seriesIndex=t.seriesIndex,hu(d,w,y);var I=US(t.get("smooth")),m=t.get("smoothMonotone"),h=t.get("connectNulls");d.setShape({smooth:I,smoothMonotone:m,connectNulls:h}),f&&(g=a.getCalculationInfo("stackedOnSeries"),s=0,f.useStyle(F(l.getAreaStyle(),{fill:x,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),g&&(s=US(g.get("smooth"))),f.setShape({smooth:I,stackedOnSmooth:s,smoothMonotone:m,connectNulls:h}),fu(f,t,"areaStyle"),_l(f).seriesIndex=t.seriesIndex,hu(f,w,y));function T(t){i._changePolyState(t)}a.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=T)}),this._polyline.onHoverStateChange=T,this._data=a,this._coordSys=o,this._stackedOnPoints=_,this._points=u,this._step=M,this._valueOrigin=v,t.get("triggerLineEvent")&&(this.packEventData(t,d),f&&this.packEventData(t,f))},tM.prototype.packEventData=function(t,e){_l(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},tM.prototype.highlight=function(t,e,n,i){var o=t.getData(),r=Mr(o,i);if(this._changePolyState("emphasis"),!(r instanceof Array)&&null!=r&&0<=r){var a=o.getLayout("points");if(!(u=o.getItemGraphicEl(r))){var s=a[2*r],l=a[2*r+1];if(isNaN(s)||isNaN(l))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s,l))return;var u,h=t.get("zlevel"),a=t.get("z");(u=new pS(o,r)).x=s,u.y=l,u.setZ(h,a);l=u.getSymbolPath().getTextContent();l&&(l.zlevel=h,l.z=a,l.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(r,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Nf.prototype.highlight.call(this,t,e,n,i)},tM.prototype.downplay=function(t,e,n,i){var o,r=t.getData(),a=Mr(r,i);this._changePolyState("normal"),null!=a&&0<=a?(o=r.getItemGraphicEl(a))&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay()):Nf.prototype.downplay.call(this,t,e,n,i)},tM.prototype._changePolyState=function(t){var e=this._polygon;Yl(this._polyline,t),e&&Yl(e,t)},tM.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new LS({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e},tM.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new OS({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n},tM.prototype._initSymbolLabelAnimation=function(t,l,u){var h,c,e=l.getBaseAxis(),p=e.inverse;"cartesian2d"===l.type?(h=e.isHorizontal(),c=!1):"polar"===l.type&&(h="angle"===e.dim,c=!0);var e=t.hostModel,d=e.get("animationDuration");"function"==typeof d&&(d=d(null));var f=e.get("animationDelay")||0,g="function"==typeof f?f(null):f;t.eachItemGraphicEl(function(t,e){var n,i,o,r,a,s=t;s&&(i=[t.x,t.y],o=a=r=void 0,u&&(o=c?(n=u,i=l.pointToCoord(i),h?(r=n.startAngle,a=n.endAngle,-i[1]/180*Math.PI):(r=n.r0,a=n.r,i[0])):h?(r=u.x,a=u.x+u.width,t.x):(r=u.y+u.height,a=u.y,t.y)),a=a===r?0:(o-r)/(a-r),p&&(a=1-a),r="function"==typeof f?f(e):d*a+g,a=(e=s.getSymbolPath()).getTextContent(),s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:r}),a&&a.animateFrom({style:{opacity:0}},{duration:300,delay:r}),e.disableLabelAnimation=!0)})},tM.prototype._initOrUpdateEndLabel=function(t,e,n){var i,o,r,a=t.getModel("endLabel");KS(t)?(i=t.getData(),o=this._polyline,this._endLabel||((this._endLabel=new xl({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0),0<=(r=jS(i.getLayout("points")))&&(Pu(o,Ou(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:r,defaultText:function(t,e,n){return null!=n?uS(i,n):lS(i,t)},enableTextSetter:!0},(t=a,e=(a=(r=e).getBaseAxis()).isHorizontal(),r=a.inverse,a=e?r?"right":"left":"center",r=e?"middle":r?"top":"bottom",{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||r}})),o.textConfig.position=null)):this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},tM.prototype._endLabelOnDuring=function(t,e,n,i,o,r,a){var s,l,u,h,c,p,d,f,g,y,m=this._endLabel,v=this._polyline;m&&(t<1&&null==i.originalX&&(i.originalX=m.x,i.originalY=m.y),s=n.getLayout("points"),u=(l=n.hostModel).get("connectNulls"),h=r.get("precision"),f=r.get("distance")||0,p=(d=a.getBaseAxis()).isHorizontal(),c=d.inverse,g=e.shape,r=(p?f:0)*(c?-1:1),a=(p?0:-f)*(c?-1:1),d=void 0,1<=(p=(g=(c=function(t,e,n){for(var i,o,r=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<r;u++)if(o=t[2*u+a],!isNaN(o)&&!isNaN(t[2*u+1-a]))if(0!==u){if(i<=e&&e<=o||e<=i&&o<=e){l=u;break}s=u,i=o}else i=o;return{range:[s,l],t:(e-i)/(o-i)}}(s,e=c?p?g.x:g.y+g.height:p?g.x+g.width:g.y,f=p?"x":"y")).range)[1]-g[0])?(1<p&&!u?(y=qS(s,g[0]),m.attr({x:y[0]+r,y:y[1]+a}),o&&(d=l.getRawValue(g[0]))):((y=v.getPointOn(e,f))&&m.attr({x:y[0]+r,y:y[1]+a}),e=l.getRawValue(g[0]),f=l.getRawValue(g[1]),o&&(d=Rr(n,h,e,f,c.t))),i.lastFrameIndex=g[0]):(y=qS(s,g=1===t||0<i.lastFrameIndex?g[0]:0),o&&(d=l.getRawValue(g)),m.attr({x:y[0]+r,y:y[1]+a})),o&&Fu(m).setLabelText(d))},tM.prototype._doUpdateAnimation=function(t,e,n,i,o,r){var a=this._polyline,s=this._polygon,l=t.hostModel,u=function(t,e,n,i,o,r){for(var a,s=(a=[],e.diff(t).add(function(t){a.push({cmd:"+",idx:t})}).update(function(t,e){a.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){a.push({cmd:"-",idx:t})}).execute(),a),l=[],u=[],h=[],c=[],p=[],d=[],f=[],g=vS(o,e,r),y=t.getLayout("points")||[],m=e.getLayout("points")||[],v=0;v<s.length;v++){var x=s[v],_=!0,b=void 0;switch(x.cmd){case"=":var w=2*x.idx,b=2*x.idx1,S=y[w],M=y[1+w],I=m[b],T=m[b+1];(isNaN(S)||isNaN(M))&&(S=I,M=T),l.push(S,M),u.push(I,T),h.push(n[w],n[1+w]),c.push(i[b],i[b+1]),f.push(e.getRawIndex(x.idx1));break;case"+":T=x.idx,w=g.dataDimsForPoint,w=o.dataToPoint([e.get(w[0],T),e.get(w[1],T)]);b=2*T,l.push(w[0],w[1]),u.push(m[b],m[b+1]);w=xS(g,o,e,T);h.push(w[0],w[1]),c.push(i[b],i[b+1]),f.push(e.getRawIndex(T));break;case"-":_=!1}_&&(p.push(x),d.push(d.length))}d.sort(function(t,e){return f[t]-f[e]});for(var C=wS(t=l.length),D=wS(t),A=wS(t),k=wS(t),L=[],v=0;v<d.length;v++){var P=d[v],O=2*v,R=2*P;C[O]=l[R],C[1+O]=l[1+R],D[O]=u[R],D[1+O]=u[1+R],A[O]=h[R],A[1+O]=h[1+R],k[O]=c[R],k[1+O]=c[1+R],L[v]=p[P]}return{current:C,next:D,stackedOnCurrent:A,stackedOnNext:k,status:L}}(this._data,t,this._stackedOnPoints,e,this._coordSys,this._valueOrigin),h=u.current,c=u.stackedOnCurrent,p=u.next,e=u.stackedOnNext;if(o&&(h=XS(u.current,n,o),c=XS(u.stackedOnCurrent,n,o),p=XS(u.next,n,o),e=XS(u.stackedOnNext,n,o)),3e3<WS(h,p)||s&&3e3<WS(c,e))return a.stopAnimation(),a.setShape({points:p}),void(s&&(s.stopAnimation(),s.setShape({points:p,stackedOnPoints:e})));a.shape.__points=u.current,a.shape.points=h;p={shape:{points:p}};u.current!==h&&(p.shape.__points=u.next),a.stopAnimation(),wu(a,p,l),s&&(s.setShape({points:h,stackedOnPoints:c}),s.stopAnimation(),wu(s,{shape:{stackedOnPoints:e}},l),a.shape.points!==s.shape.points&&(s.shape.points=a.shape.points));for(var d,f=[],g=u.status,y=0;y<g.length;y++)"="!==g[y].cmd||(d=t.getItemGraphicEl(g[y].idx1))&&f.push({el:d,ptIdx:y});a.animators&&a.animators.length&&a.animators[0].during(function(){s&&s.dirtyShape();for(var t=a.shape.__points,e=0;e<f.length;e++){var n=f[e].el,i=2*f[e].ptIdx;n.x=t[i],n.y=t[1+i],n.markRedraw()}})},tM.prototype.remove=function(t){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(t,e){t.__temp&&(n.remove(t),i.setItemGraphicEl(e,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},tM.type="line",tM);function tM(){return null!==JS&&JS.apply(this,arguments)||this}function eM(t,i){return{seriesType:t,plan:Tf(),reset:function(t){var e=t.getData(),h=t.coordinateSystem,n=t.pipelineContext,c=i||n.large;if(h){var t=j(h.dimensions,function(t){return e.mapDimension(t)}).slice(0,2),p=t.length,n=e.getCalculationInfo("stackResultDimension");Px(e,t[0])&&(t[0]=n),Px(e,t[1])&&(t[1]=n);var d=e.getStore(),f=e.getDimensionIndex(t[0]),g=e.getDimensionIndex(t[1]);return p&&{progress:function(t,e){for(var n=t.end-t.start,i=c&&wS(n*p),o=[],r=[],a=t.start,s=0;a<t.end;a++){var l,u=void 0;u=1===p?(l=d.get(f,a),h.dataToPoint(l,null,r)):(o[0]=d.get(f,a),o[1]=d.get(g,a),h.dataToPoint(o,null,r)),c?(i[s++]=u[0],i[s++]=u[1]):e.setItemLayout(a,u.slice())}c&&e.setLayout("points",i)}}}}}}var nM={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},iM=function(t){return Math.round(t.length/2)};function oM(t){return{seriesType:t,reset:function(t,e,n){var i,o=t.getData(),r=t.get("sampling"),a=t.coordinateSystem,s=o.count();10<s&&"cartesian2d"===a.type&&r&&(i=a.getBaseAxis(),a=a.getOtherAxis(i),i=i.getExtent(),n=n.getDevicePixelRatio(),n=Math.abs(i[1]-i[0])*(n||1),1<(s=Math.round(s/n))&&("lttb"===r&&t.setData(o.lttbDownSample(o.mapDimension(a.dim),1/s)),n=void 0,"string"==typeof r?n=nM[r]:"function"==typeof r&&(n=r),n&&t.setData(o.downSample(o.mapDimension(a.dim),1/s,n,iM))))}}}var rM,Zr=(y(aM,rM=Sf),aM.prototype.getInitialData=function(t,e){return Rx(null,this,{useEncodeDefaulter:!0})},aM.prototype.getMarkerPosition=function(t){var e=this.coordinateSystem;if(e&&e.clampData){var n=e.dataToPoint(e.clampData(t)),i=this.getData(),t=i.getLayout("offset"),i=i.getLayout("size");return n[e.getBaseAxis().isHorizontal()?0:1]+=t+i/2,n}return[NaN,NaN]},aM.type="series.__base_bar__",aM.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},aM);function aM(){var t=null!==rM&&rM.apply(this,arguments)||this;return t.type=aM.type,t}Sf.registerClass(Zr);var sM,lM,Co=Zr,uM=(y(dM,lM=Co),dM.prototype.getInitialData=function(){return Rx(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},dM.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},dM.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return t=t<e?e:t},dM.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},dM.type="series.bar",dM.dependencies=["grid","polar"],dM.defaultOption=ih(Co.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}),dM),hM=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},cM=(y(pM,sM=Bs),pM.prototype.getDefaultShape=function(){return new hM},pM.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=Math.max(e.r0||0,0),r=Math.max(e.r,0),a=.5*(r-o),s=o+a,l=e.startAngle,u=e.endAngle,h=e.clockwise,c=Math.cos(l),p=Math.sin(l),d=Math.cos(u),e=Math.sin(u);(h?u-l<2*Math.PI:l-u<2*Math.PI)&&(t.moveTo(c*o+n,p*o+i),t.arc(c*s+n,p*s+i,a,-Math.PI+l,l,!h)),t.arc(n,i,r,l,u,!h),t.moveTo(d*r+n,e*r+i),t.arc(d*s+n,e*s+i,a,u-2*Math.PI,u-Math.PI,!h),0!==o&&(t.arc(n,i,o,u,l,h),t.moveTo(c*o+n,e*o+i)),t.closePath()},pM);function pM(t){t=sM.call(this,t)||this;return t.type="sausage",t}function dM(){var t=null!==lM&&lM.apply(this,arguments)||this;return t.type=dM.type,t}function fM(t,e,n){return e*Math.sin(t)*(n?-1:1)}function gM(t,e,n){return e*Math.cos(t)*(n?1:-1)}var yM=[0,0],mM=Math.max,vM=Math.min;var xM,k=(y(wM,xM=Nf),wM.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var o=t.get("coordinateSystem");"cartesian2d"!==o&&"polar"!==o||(this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},wM.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},wM.prototype.incrementalRender=function(t,e){this._incrementalRenderLarge(t,e)},wM.prototype._updateDrawMode=function(t){t=t.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},wM.prototype._renderNormal=function(a,t,e,n){var s,l=this.group,u=a.getData(),h=this._data,c=a.coordinateSystem,p=c.getBaseAxis();"cartesian2d"===c.type?s=p.isHorizontal():"polar"===c.type&&(s="angle"===p.dim);var d=a.isAnimationEnabled()?a:null,f=function(t,e){var n=t.get("realtimeSort",!0),t=e.getBaseAxis();if(n&&"category"===t.type&&"cartesian2d"===e.type)return{baseAxis:t,otherAxis:e.getOtherAxis(t)}}(a,c);f&&this._enableRealtimeSort(f,u,e);var i,o,g=a.get("clip",!0)||f,y=(o=u,e=(i=c).getArea&&i.getArea(),GS(i,"cartesian2d")&&("category"===(i=i.getBaseAxis()).type&&i.onBand||(o=o.getLayout("bandWidth"),i.isHorizontal()?(e.x-=o,e.width+=2*o):(e.y-=o,e.height+=2*o))),e);l.removeClipPath();var m=a.get("roundCap",!0),v=a.get("showBackground",!0),x=a.getModel("backgroundStyle"),_=x.get("borderRadius")||0,b=[],w=this._backgroundEls,S=n&&n.isInitSort,M=n&&"changeAxisOrder"===n.type;function I(t){var e,n=DM[c.type](u,t),n=(e=s,new("polar"===c.type?My:rl)({shape:EM(e,n,c),silent:!0,z2:0}));return n.useStyle(x.getItemStyle()),"cartesian2d"===c.type&&n.setShape("r",_),b[t]=n}u.diff(h).add(function(t){var e,n,i=u.getItemModel(t),o=DM[c.type](u,t,i);v&&I(t),u.hasValue(t)&&CM[c.type](o)&&(e=!1,g&&(e=_M[c.type](y,o)),n=bM[c.type](a,u,t,o,s,d,p.model,!1,m),f&&(n.forceLabelAnimation=!0),kM(n,u,t,i,o,a,s,"polar"===c.type),S?n.attr({shape:o}):f?SM(f,d,n,o,t,s,!1,!1):Su(n,{shape:o},a,t),u.setItemGraphicEl(t,n),l.add(n),n.ignore=e)}).update(function(t,e){var n=u.getItemModel(t),i=DM[c.type](u,t,n);v&&(r=void 0,0===w.length?r=I(e):((r=w[e]).useStyle(x.getItemStyle()),"cartesian2d"===c.type&&r.setShape("r",_),b[t]=r),o=DM[c.type](u,t),wu(r,{shape:EM(s,o,c)},d,t));var o,r=h.getItemGraphicEl(e);u.hasValue(t)&&CM[c.type](i)?(o=!1,!g||(o=_M[c.type](y,i))&&l.remove(r),r?Du(r):r=bM[c.type](a,u,t,i,s,d,p.model,!!r,m),f&&(r.forceLabelAnimation=!0),M&&(!(e=r.getTextContent())||null!=(e=Fu(e)).prevValue&&(e.prevValue=e.value)),M||kM(r,u,t,n,i,a,s,"polar"===c.type),S?r.attr({shape:i}):f?SM(f,d,r,i,t,s,!0,M):wu(r,{shape:i},a,t,null),u.setItemGraphicEl(t,r),r.ignore=o,l.add(r)):l.remove(r)}).remove(function(t){var e=h.getItemGraphicEl(t);e&&Cu(e,a,t)}).execute();var r=this._backgroundGroup||(this._backgroundGroup=new Ao);r.removeAll();for(var T=0;T<b.length;++T)r.add(b[T]);l.add(r),this._backgroundEls=b,this._data=u},wM.prototype._renderLarge=function(t,e,n){this._clear(),NM(t,this.group),this._updateLargeClip(t)},wM.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),NM(e,this.group,!0)},wM.prototype._updateLargeClip=function(t){t=t.get("clip",!0)?BS(t.coordinateSystem,!1,t):null;t?this.group.setClipPath(t):this.group.removeClipPath()},wM.prototype._enableRealtimeSort=function(t,e,n){var i,o,r=this;e.count()&&(i=t.baseAxis,this._isFirstFrame?(this._dispatchInitSort(e,t,n),this._isFirstFrame=!1):(o=function(t){t=e.getItemGraphicEl(t);if(t){t=t.shape;return(i.isHorizontal()?Math.abs(t.height):Math.abs(t.width))||0}return 0},this._onRendered=function(){r._updateSortWithinSameData(e,o,i,n)},n.getZr().on("rendered",this._onRendered)))},wM.prototype._dataSort=function(t,e,i){var o=[];return t.each(t.mapDimension(e.dim),function(t,e){var n=null==(n=i(e))?NaN:n;o.push({dataIndex:e,mappedValue:n,ordinalNumber:t})}),o.sort(function(t,e){return e.mappedValue-t.mappedValue}),{ordinalNumbers:j(o,function(t){return t.ordinalNumber})}},wM.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var i=n.scale,o=t.mapDimension(n.dim),r=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(o,i.getRawOrdinalNumber(a)),l=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(r<l)return!0;r=l}return!1},wM.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,e=n.getExtent(),i=Math.max(0,e[0]),o=Math.min(e[1],n.getOrdinalMeta().categories.length-1);i<=o;++i)if(t.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},wM.prototype._updateSortWithinSameData=function(t,e,n,i){this._isOrderChangedWithinSameData(t,e,n)&&(e=this._dataSort(t,n,e),this._isOrderDifferentInView(e,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:e})))},wM.prototype._dispatchInitSort=function(e,n,t){var i=n.baseAxis,o=this._dataSort(e,i,function(t){return e.get(e.mapDimension(n.otherAxis.dim),t)});t.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},wM.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},wM.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},wM.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},wM.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){Cu(t,e,_l(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},wM.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},wM.type="bar",wM),_M={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var o=t.x+t.width,r=t.y+t.height,a=mM(e.x,t.x),s=vM(e.x+e.width,o),l=mM(e.y,t.y),u=vM(e.y+e.height,r),h=s<a,t=u<l;return e.x=h&&o<a?s:a,e.y=t&&r<l?u:l,e.width=h?0:s-a,e.height=t?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),h||t},polar:function(t,e){var n,i=e.r0<=e.r?1:-1;i<0&&(n=e.r,e.r=e.r0,e.r0=n);var o=vM(e.r,t.r),t=mM(e.r0,t.r0),t=(e.r=o)-(e.r0=t)<0;return i<0&&(n=e.r,e.r=e.r0,e.r0=n),t}},bM={cartesian2d:function(t,e,n,i,o,r,a,s,l){i=new rl({shape:G({},i),z2:1});return i.__dataIndex=n,i.name="item",r&&(i.shape[o?"height":"width"]=0),i},polar:function(t,e,n,i,o,r,a,s,l){var u=!o&&l?cM:My,h=new u({shape:i,z2:1});h.name="item";var b,w,l=AM(o);return h.calculateTextPosition=(b=l,w=({isRoundCap:u===cM}||{}).isRoundCap,function(t,e,n){var i=e.position;if(!i||i instanceof Array)return fo(t,e,n);var o=b(i),r=null!=e.distance?e.distance:5,i=this.shape,a=i.cx,s=i.cy,l=i.r,u=i.r0,h=(l+u)/2,c=i.startAngle,p=i.endAngle,d=(c+p)/2,f=w?Math.abs(l-u)/2:0,g=Math.cos,y=Math.sin,m=a+l*g(c),v=s+l*y(c),x="left",_="top";switch(o){case"startArc":m=a+(u-r)*g(d),v=s+(u-r)*y(d),x="center",_="top";break;case"insideStartArc":m=a+(u+r)*g(d),v=s+(u+r)*y(d),x="center",_="bottom";break;case"startAngle":m=a+h*g(c)+fM(c,r+f,!1),v=s+h*y(c)+gM(c,r+f,!1),x="right",_="middle";break;case"insideStartAngle":m=a+h*g(c)+fM(c,f-r,!1),v=s+h*y(c)+gM(c,f-r,!1),x="left",_="middle";break;case"middle":m=a+h*g(d),v=s+h*y(d),x="center",_="middle";break;case"endArc":m=a+(l+r)*g(d),v=s+(l+r)*y(d),x="center",_="bottom";break;case"insideEndArc":m=a+(l-r)*g(d),v=s+(l-r)*y(d),x="center",_="top";break;case"endAngle":m=a+h*g(p)+fM(p,r+f,!0),v=s+h*y(p)+gM(p,r+f,!0),x="left",_="middle";break;case"insideEndAngle":m=a+h*g(p)+fM(p,f-r,!0),v=s+h*y(p)+gM(p,f-r,!0),x="right",_="middle";break;default:return fo(t,e,n)}return(t=t||{}).x=m,t.y=v,t.align=x,t.verticalAlign=_,t}),r&&(l={},h.shape[u=o?"r":"endAngle"]=o?0:i.startAngle,l[u]=i[u],(s?wu:Su)(h,{shape:l},r)),h}};function wM(){var t=xM.call(this)||this;return t.type=wM.type,t._isFirstFrame=!0,t}function SM(t,e,n,i,o,r,a,s){var l,i=r?(l={x:i.x,width:i.width},{y:i.y,height:i.height}):(l={y:i.y,height:i.height},{x:i.x,width:i.width});s||(a?wu:Su)(n,{shape:i},e,o,null),(a?wu:Su)(n,{shape:l},e?t.baseAxis.model:null,o)}function MM(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return 1}var IM=["x","y","width","height"],TM=["cx","cy","r","startAngle","endAngle"],CM={cartesian2d:function(t){return!MM(t,IM)},polar:function(t){return!MM(t,TM)}},DM={cartesian2d:function(t,e,n){var i=t.getItemLayout(e),t=n?function(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;n=t.get(["itemStyle","borderWidth"])||0,t=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),e=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,t,e)}(n,i):0,e=0<i.width?1:-1,n=0<i.height?1:-1;return{x:i.x+e*t/2,y:i.y+n*t/2,width:i.width-e*t,height:i.height-n*t}},polar:function(t,e,n){e=t.getItemLayout(e);return{cx:e.cx,cy:e.cy,r0:e.r0,r:e.r,startAngle:e.startAngle,endAngle:e.endAngle,clockwise:e.clockwise}}};function AM(t){return e=t?"Arc":"Angle",function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}};var e}function kM(t,e,n,i,o,r,a,s){var l=e.getItemVisual(n,"style");s||t.setShape("r",i.get(["itemStyle","borderRadius"])||0),t.useStyle(l);var u=i.getShallow("cursor");u&&t.attr("cursor",u);var h=s?a?o.r>=o.r0?"endArc":"startArc":o.endAngle>=o.startAngle?"endAngle":"startAngle":a?0<=o.height?"bottom":"top":0<=o.width?"right":"left",u=Ou(i);Pu(t,u,{labelFetcher:r,labelDataIndex:n,defaultText:lS(r.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});l=t.getTextContent();s&&l&&(s=i.get(["label","position"]),t.textConfig.inside="middle"===s||null,function(t,e,n,i){if("number"!=typeof i)if(et(e))t.setTextConfig({rotation:0});else{var o,r=t.shape,a=r.clockwise?r.startAngle:r.endAngle,s=r.clockwise?r.endAngle:r.startAngle,l=(a+s)/2,n=n(e);switch(n){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":o=l;break;case"startAngle":case"insideStartAngle":o=a;break;case"endAngle":case"insideEndAngle":o=s;break;default:return t.setTextConfig({rotation:0})}e=1.5*Math.PI-o;"middle"===n&&e>Math.PI/2&&e<1.5*Math.PI&&(e-=Math.PI),t.setTextConfig({rotation:e})}else t.setTextConfig({rotation:i})}(t,"outside"===s?h:s,AM(a),i.get(["label","rotate"]))),Hu(l,u,r.getRawValue(n),function(t){return uS(e,t)});n=i.getModel(["emphasis"]);hu(t,n.get("focus"),n.get("blurScope")),fu(t,i),null!=(o=o).startAngle&&null!=o.endAngle&&o.startAngle===o.endAngle&&(t.style.fill="none",t.style.stroke="none",Z(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}var LM,PM=function(){},OM=(y(RM,LM=Bs),RM.prototype.getDefaultShape=function(){return new PM},RM.prototype.buildPath=function(t,e){for(var n=e.points,i=this.__startPoint,o=this.__baseDimIdx,r=0;r<n.length;r+=2)i[o]=n[r+o],t.moveTo(i[0],i[1]),t.lineTo(n[r],n[r+1])},RM);function RM(t){t=LM.call(this,t)||this;return t.type="largeBar",t}function NM(t,e,n){var i=t.getData(),o=[],r=i.getLayout("valueAxisHorizontal")?1:0;o[1-r]=i.getLayout("valueAxisStart");var a,s,l,u,h=i.getLayout("largeDataIndices"),c=i.getLayout("barWidth"),p=t.getModel("backgroundStyle");t.get("showBackground",!0)&&(u=i.getLayout("largeBackgroundPoints"),(l=[])[1-r]=i.getLayout("backgroundStart"),(a=new OM({shape:{points:u},incremental:!!n,silent:!0,z2:0})).__startPoint=l,a.__baseDimIdx=r,a.__largeDataIndices=h,a.__barWidth=c,s=a,u=i,p=(l=p).get("borderColor")||l.get("color"),l=l.getItemStyle(),s.useStyle(l),s.style.fill=null,s.style.stroke=p,s.style.lineWidth=u.getLayout("barWidth"),e.add(a));n=new OM({shape:{points:i.getLayout("largePoints")},incremental:!!n});n.__startPoint=o,n.__baseDimIdx=r,n.__largeDataIndices=h,n.__barWidth=c,e.add(n),c=n,i=(e=i).getVisual("style"),c.useStyle(G({},i)),c.style.fill=null,c.style.stroke=i.fill,c.style.lineWidth=e.getLayout("barWidth"),_l(n).seriesIndex=t.seriesIndex,t.get("silent")||(n.on("mousedown",zM),n.on("mousemove",zM))}var zM=Bf(function(t){t=function(t,e,n){var i=t.__baseDimIdx,o=1-i,r=t.shape.points,a=t.__largeDataIndices,s=Math.abs(t.__barWidth/2),l=t.__startPoint[o];yM[0]=e,yM[1]=n;for(var n=yM[i],u=yM[1-i],h=n-s,c=n+s,p=0,d=r.length/2;p<d;p++){var f=2*p,g=r[f+i],f=r[f+o];if(h<=g&&g<=c&&(l<=f?l<=u&&u<=f:f<=u&&u<=l))return a[p]}return-1}(this,t.offsetX,t.offsetY);_l(this).dataIndex=0<=t?t:null},30,!1);function EM(t,e,n){if(GS(n,"cartesian2d")){var i=e,o=n.getArea();return{x:(t?i:o).x,y:(t?o:i).y,width:(t?i:o).width,height:(t?o:i).height}}return{cx:(o=n.getArea()).cx,cy:o.cy,r0:(t?o:e).r0,r:(t?o:e).r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}}var VM=k;var BM=2*Math.PI,GM=Math.PI/180;function FM(t,e){return oc(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function HM(t,e){var n=FM(t,e),i=t.get("center"),o=t.get("radius");et(o)||(o=[0,o]),et(i)||(i=[i,i]);var r=Uo(n.width,e.getWidth()),t=Uo(n.height,e.getHeight()),e=Math.min(r,t);return{cx:Uo(i[0],r)+n.x,cy:Uo(i[1],t)+n.y,r0:Uo(o[0],e/2),r:Uo(o[1],e/2)}}function WM(t,e,S){e.eachSeriesByType(t,function(t){var o=t.getData(),e=o.mapDimension("value"),n=FM(t,S),i=HM(t,S),r=i.cx,a=i.cy,s=i.r,l=i.r0,u=-t.get("startAngle")*GM,h=t.get("minAngle")*GM,c=0;o.each(e,function(t){isNaN(t)||c++});var p=o.getSum(e),d=Math.PI/(p||c)*2,f=t.get("clockwise"),g=t.get("roseType"),y=t.get("stillShowZeroSum"),m=o.getDataExtent(e);m[0]=0;var v,x=BM,_=0,b=u,w=f?1:-1;o.setLayout({viewRect:n,r:s}),o.each(e,function(t,e){var n,i;isNaN(t)?o.setItemLayout(e,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:f,cx:r,cy:a,r0:l,r:g?NaN:s}):((n="area"!==g?0===p&&y?d:t*d:BM/c)<h?x-=n=h:_+=t,i=b+w*n,o.setItemLayout(e,{angle:n,startAngle:b,endAngle:i,clockwise:f,cx:r,cy:a,r0:l,r:g?Wo(t,m,[l,s]):s}),b=i)}),x<BM&&c&&(x<=.001?(v=BM/c,o.each(e,function(t,e){isNaN(t)||((t=o.getItemLayout(e)).angle=v,t.startAngle=u+w*e*v,t.endAngle=u+w*(e+1)*v)})):(d=x/_,b=u,o.each(e,function(t,e){isNaN(t)||(t=(e=o.getItemLayout(e)).angle===h?h:t*d,e.startAngle=b,e.endAngle=b+w*t,b+=w*t)})))})}function UM(t){return{seriesType:t,reset:function(t,e){var i,o=e.findComponents({mainType:"legend"});o&&o.length&&(i=t.getData()).filterSelf(function(t){for(var e=i.getName(t),n=0;n<o.length;n++)if(!o[n].isSelected(e))return!1;return!0})}}}var XM=Math.PI/180;function YM(t,u,h,c,p,e,n,i,o,r){if(!(t.length<2)){for(var a,s=t.length,l=0;l<s;l++)"outer"===t[l].position&&"labelLine"===t[l].labelAlignTo&&(a=t[l].label.x-r,t[l].linePoints[1][0]+=a,t[l].label.x=r);Vb(t,o,o+n)&&function(t){for(var e={list:[],maxY:0},n={list:[],maxY:0},i=0;i<t.length;i++){var o,r,a,s,l;"none"===t[i].labelAlignTo&&(o=t[i],r=o.label.y>h?n:e,(a=Math.abs(o.label.y-h))>r.maxY&&(s=o.label.x-u-o.len2*p,l=c+o.len,l=Math.abs(s)<l?Math.sqrt(a*a/(1-s*s/l/l)):l,r.rB=l,r.maxY=a),r.list.push(o))}d(e),d(n)}(t)}function d(t){for(var e=t.rB,n=e*e,i=0;i<t.list.length;i++){var o=t.list[i],r=Math.abs(o.label.y-h),a=c+o.len,a=a*a,a=Math.sqrt((1-Math.abs(r*r/n))*a);o.label.x=u+(a+o.len2)*p}}}function ZM(t){return"center"===t.position}function jM(t){var T,C,D=t.getData(),A=[],k=!1,L=(t.get("minShowLabelAngle")||0)*XM,e=D.getLayout("viewRect"),P=D.getLayout("r"),O=e.width,R=e.x,n=e.y,e=e.height;function N(t){t.ignore=!0}D.each(function(t){var e,n,i,o,r,a,s,l,u,h,c,p=D.getItemGraphicEl(t),d=p.shape,f=p.getTextContent(),g=p.getTextGuideLine(),y=D.getItemModel(t),m=y.getModel("label"),v=m.get("position")||y.get(["emphasis","label","position"]),x=m.get("distanceToLabelLine"),_=m.get("alignTo"),b=Uo(m.get("edgeDistance"),O),w=m.get("bleedMargin"),S=y.getModel("labelLine"),M=Uo(M=S.get("length"),O),I=Uo(I=S.get("length2"),O);if(Math.abs(d.endAngle-d.startAngle)<L)return Z(f.states,N),void(f.ignore=!0);!function(t){if(!t.ignore)return 1;for(var e in t.states)if(!1===t.states[e].ignore)return 1}(f)||(u=(d.startAngle+d.endAngle)/2,e=Math.cos(u),n=Math.sin(u),T=d.cx,C=d.cy,i="inside"===v||"inner"===v,l="center"===v?(r=d.cx,a=d.cy,"center"):(r=(o=(i?(d.r+d.r0)/2*e:d.r*e)+T)+3*e,a=(t=(i?(d.r+d.r0)/2*n:d.r*n)+C)+3*n,i||(y=o+e*(M+P-d.r),l=t+n*(M+P-d.r),s=y+(e<0?-1:1)*I,r="edge"===_?e<0?R+b:R+O-b:s+(e<0?-x:x),s=[[o,t],[y,a=l],[s,l]]),i?"center":"edge"===_?0<e?"right":"left":0<e?"left":"right"),"number"==typeof(m=m.get("rotate"))?h=m*(Math.PI/180):"center"===v?h=0:(u=e<0?-u+Math.PI:-u,"radial"===m||!0===m?h=u:"tangential"===m&&"outside"!==v&&"outer"!==v?(h=u+Math.PI/2)>Math.PI/2&&(h-=Math.PI):h=0),k=!!h,f.x=r,f.y=a,f.rotation=h,f.setStyle({verticalAlign:"middle"}),i?(f.setStyle({align:l}),(c=f.states.select)&&(c.x+=f.x,c.y+=f.y)):((h=f.getBoundingRect().clone()).applyTransform(f.getComputedTransform()),c=(f.style.margin||0)+2.1,h.y-=c/2,h.height+=c,A.push({label:f,labelLine:g,position:v,len:M,len2:I,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new Ui(e,n),linePoints:s,textAlign:l,labelDistance:x,labelAlignTo:_,edgeDistance:b,bleedMargin:w,rect:h})),p.setTextConfig({inside:i}))}),!k&&t.get("avoidLabelOverlap")&&function(t,e,n,i,o,r,a,s){for(var l=[],u=[],h=Number.MAX_VALUE,c=-Number.MAX_VALUE,p=0;p<t.length;p++){var d=t[p].label;ZM(t[p])||(d.x<e?(h=Math.min(h,d.x),l.push(t[p])):(c=Math.max(c,d.x),u.push(t[p])))}for(YM(u,e,n,i,1,0,r,0,s,c),YM(l,e,n,i,-1,0,r,0,s,h),p=0;p<t.length;p++){var f,g,y,m,v=t[p],d=v.label;ZM(v)||(f=v.linePoints)&&(g="edge"===v.labelAlignTo,y=v.rect.width,m=void 0,(m=g?d.x<e?f[2][0]-v.labelDistance-a-v.edgeDistance:a+o-v.edgeDistance-f[2][0]-v.labelDistance:d.x<e?d.x-a-v.bleedMargin:a+o-d.x-v.bleedMargin)<v.rect.width&&(v.label.style.width=m,"edge"===v.labelAlignTo&&(y=m)),m=f[1][0]-f[2][0],g?d.x<e?f[2][0]=a+v.edgeDistance+y+v.labelDistance:f[2][0]=a+o-v.edgeDistance-y-v.labelDistance:(d.x<e?f[2][0]=d.x+v.labelDistance:f[2][0]=d.x-v.labelDistance,f[1][0]=f[2][0]+m),f[1][1]=f[2][1]=d.y)}}(A,T,C,P,O,e,R,n);for(var i=0;i<A.length;i++){var o,r=A[i],a=r.label,s=r.labelLine,l=isNaN(a.x)||isNaN(a.y);a&&(a.setStyle({align:r.textAlign}),l&&(Z(a.states,N),a.ignore=!0),(o=a.states.select)&&(o.x+=a.x,o.y+=a.y)),s&&(o=r.linePoints,l||!o?(Z(s.states,N),s.ignore=!0):(Lb(o,r.minTurnAngle),function(t,e,n){if(n<=180&&0<n){n=n/180*Math.PI,Sb.fromArray(t[0]),Mb.fromArray(t[1]),Ib.fromArray(t[2]),Ui.sub(Tb,Mb,Sb),Ui.sub(Cb,Ib,Mb);var i=Tb.len(),o=Cb.len();if(!(i<.001||o<.001))if(Tb.scale(1/i),Cb.scale(1/o),Tb.dot(e)<Math.cos(n)){i=xb(Mb.x,Mb.y,Ib.x,Ib.y,Sb.x,Sb.y,Ab,!1);kb.fromArray(Ab);o=Math.PI/2,n=o+Math.acos(Cb.dot(e))-n;if(o<=n)Ui.copy(kb,Ib);else{kb.scaleAndAdd(Cb,i/Math.tan(Math.PI/2-n));n=Ib.x!==Mb.x?(kb.x-Mb.x)/(Ib.x-Mb.x):(kb.y-Mb.y)/(Ib.y-Mb.y);if(isNaN(n))return;n<0?Ui.copy(kb,Mb):1<n&&Ui.copy(kb,Ib)}kb.toArray(t[1])}}}(o,r.surfaceNormal,r.maxSurfaceAngle),s.setShape({points:o}),a.__hostTarget.textGuideLineConfig={anchor:new Ui(o[0][0],o[0][1])}))}}function qM(t,e,n){t=t.get("borderRadius");return null==t?n?{innerCornerRadius:0,cornerRadius:0}:null:{innerCornerRadius:po((t=!et(t)?[t,t]:t)[0],e.r0),cornerRadius:po(t[1],e.r)}}var KM,$M,JM=(y(eI,$M=My),eI.prototype.updateData=function(t,e,n,i){var o=this,r=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),u=G(qM(a.getModel("itemStyle"),l,!0),l);isNaN(u.startAngle)?o.setShape(u):(i?(o.setShape(u),"scale"===r.getShallow("animationType")?(o.shape.r=l.r0,Su(o,{shape:{r:l.r}},r,e)):null!=n?(o.setShape({startAngle:n,endAngle:n}),Su(o,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},r,e)):(o.shape.endAngle=l.startAngle,wu(o,{shape:{endAngle:l.endAngle}},r,e))):(Du(o),wu(o,{shape:u},r,e)),o.useStyle(t.getItemVisual(e,"style")),fu(o,a),i=(l.startAngle+l.endAngle)/2,n=r.get("selectedOffset"),u=Math.cos(i)*n,i=Math.sin(i)*n,(n=a.getShallow("cursor"))&&o.attr("cursor",n),this._updateLabel(r,t,e),o.ensureState("emphasis").shape=m({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},qM(s.getModel("itemStyle"),l)),G(o.ensureState("select"),{x:u,y:i,shape:qM(a.getModel(["select","itemStyle"]),l)}),G(o.ensureState("blur"),{shape:qM(a.getModel(["blur","itemStyle"]),l)}),l=o.getTextGuideLine(),o=o.getTextContent(),l&&G(l.ensureState("select"),{x:u,y:i}),G(o.ensureState("select"),{x:u,y:i}),hu(this,s.get("focus"),s.get("blurScope")))},eI.prototype._updateLabel=function(t,e,n){var i=e.getItemModel(n),o=i.getModel("labelLine"),r=e.getItemVisual(n,"style"),a=r&&r.fill,r=r&&r.opacity;Pu(this,Ou(i),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:a,defaultOpacity:r,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});n=this.getTextContent();this.setTextConfig({position:null,rotation:null}),n.attr({z2:10});var t=t.get(["label","position"]);"outside"!==t&&"outer"!==t?this.removeTextGuideLine():((t=this.getTextGuideLine())||(t=new Ey,this.setTextGuideLine(t)),Rb(this,Nb(i),{stroke:a,opacity:yt(o.get(["lineStyle","opacity"]),r,1)}))},eI),QM=(y(tI,KM=Nf),tI.prototype.init=function(){var t=new Ao;this._sectorGroup=t},tI.prototype.render=function(e,t,n,i){var o,r=e.getData(),a=this._data,s=this.group;if(!a&&0<r.count()){for(var l=r.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<r.count();++u)l=r.getItemLayout(u);l&&(o=l.startAngle)}this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===r.count()&&e.get("showEmptyCircle")&&((n=new My({shape:HM(e,n)})).useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=n,s.add(n)),r.diff(a).add(function(t){var e=new JM(r,t,o);r.setItemGraphicEl(t,e),s.add(e)}).update(function(t,e){e=a.getItemGraphicEl(e);e.updateData(r,t,o),e.off("click"),s.add(e),r.setItemGraphicEl(t,e)}).remove(function(t){Cu(a.getItemGraphicEl(t),e,t)}).execute(),jM(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=r)},tI.prototype.dispose=function(){},tI.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){e=t[0]-n.cx,t=t[1]-n.cy,t=Math.sqrt(e*e+t*t);return t<=n.r&&t>=n.r0}},tI.type="pie",tI);function tI(){var t=null!==KM&&KM.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}function eI(t,e,n){var i=$M.call(this)||this;i.z2=2;var o=new xl;return i.setTextContent(o),i.updateData(t,e,n,!0),i}function nI(t,e,n){e=et(e)?{coordDimensions:e}:G({encodeDefine:t.getEncode()},e);var i=t.getSource(),e=Cx(i,e).dimensions,t=new Mx(e,t);return t.initData(i,n),t}var iI,oI=(sI.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},sI.prototype.containName=function(t){return 0<=this._getRawData().indexOfName(t)},sI.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},sI.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},sI),rI=(y(aI,iI=Sf),aI.prototype.init=function(t){iI.prototype.init.apply(this,arguments),this.legendVisualProvider=new oI(Q(this.getData,this),Q(this.getRawData,this)),this._defaultLabelLine(t)},aI.prototype.mergeOption=function(){iI.prototype.mergeOption.apply(this,arguments)},aI.prototype.getInitialData=function(){return nI(this,{coordDimensions:["value"],encodeDefaulter:tt(Oc,this)})},aI.prototype.getDataParams=function(t){var e=this.getData(),n=iI.prototype.getDataParams.call(this,t),i=[];return e.each(e.mapDimension("value"),function(t){i.push(t)}),n.percent=Ko(i,t,e.hostModel.get("percentPrecision")),n.$vars.push("percent"),n},aI.prototype._defaultLabelLine=function(t){fr(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},aI.type="series.pie",aI.defaultOption={zlevel:0,z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,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"},aI);function aI(){return null!==iI&&iI.apply(this,arguments)||this}function sI(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}var lI,uI,hI,cI,pI,dI=(y(II,pI=Sf),II.prototype.getInitialData=function(t,e){return Rx(null,this,{useEncodeDefaulter:!0})},II.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},II.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},II.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},II.type="series.scatter",II.dependencies=["grid","polar","geo","singleAxis","calendar"],II.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,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"}},II),fI=function(){},gI=(y(MI,cI=Bs),MI.prototype.getDefaultShape=function(){return new fI},MI.prototype.buildPath=function(t,e){var n=e.points,i=e.size,o=this.symbolProxy,r=o.shape,e=t.getContext?t.getContext():t;if(e&&i[0]<4)this._ctx=e;else{this._ctx=null;for(var a=0;a<n.length;){var s=n[a++],l=n[a++];isNaN(s)||isNaN(l)||this.softClipShape&&!this.softClipShape.contain(s,l)||(r.x=s-i[0]/2,r.y=l-i[1]/2,r.width=i[0],r.height=i[1],o.buildPath(t,r,!0))}}},MI.prototype.afterBrush=function(){var t=this.shape,e=t.points,n=t.size,i=this._ctx;if(i)for(var o=0;o<e.length;){var r=e[o++],a=e[o++];isNaN(r)||isNaN(a)||this.softClipShape&&!this.softClipShape.contain(r,a)||i.fillRect(r-n[0]/2,a-n[1]/2,n[0],n[1])}},MI.prototype.findDataIndex=function(t,e){for(var n=this.shape,i=n.points,n=n.size,o=Math.max(n[0],4),r=Math.max(n[1],4),a=i.length/2-1;0<=a;a--){var s=2*a,l=i[s]-o/2,s=i[1+s]-r/2;if(l<=t&&s<=e&&t<=l+o&&e<=s+r)return a}return-1},MI),yI=(SI.prototype.isPersistent=function(){return!this._incremental},SI.prototype.updateData=function(t,e){this.group.removeAll();var n=new gI({rectHover:!0,cursor:"default"});n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,!1,e),this.group.add(n),this._incremental=null},SI.prototype.updateLayout=function(t){var i;this._incremental||(i=t.getLayout("points"),this.group.eachChild(function(t){var e,n;null!=t.startIndex&&(e=2*(t.endIndex-t.startIndex),n=4*t.startIndex*2,i=new Float32Array(i.buffer,n,e)),t.setShape("points",i)}))},SI.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),2e6<t.count()?(this._incremental||(this._incremental=new im({silent:!0})),this.group.add(this._incremental)):this._incremental=null},SI.prototype.incrementalUpdate=function(t,e,n){var i;this._incremental?(i=new gI,this._incremental.addDisplayable(i,!0)):((i=new gI({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end})).incremental=!0,this.group.add(i)),i.setShape({points:e.getLayout("points")}),this._setCommon(i,e,!!this._incremental,n)},SI.prototype._setCommon=function(e,t,n,i){var o=t.hostModel;i=i||{};var r=t.getVisual("symbolSize");e.setShape("size",r instanceof Array?r:[r,r]),e.softClipShape=i.clipShape||null,e.symbolProxy=Fm(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;i=e.shape.size[0]<4;e.useStyle(o.getModel("itemStyle").getItemStyle(i?["color","shadowBlur","shadowColor"]:["color"]));var a,t=t.getVisual("style"),t=t&&t.fill;t&&e.setColor(t),n||((a=_l(e)).seriesIndex=o.seriesIndex,e.on("mousemove",function(t){a.dataIndex=null;t=e.findDataIndex(t.offsetX,t.offsetY);0<=t&&(a.dataIndex=t+(e.startIndex||0))}))},SI.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},SI.prototype._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()},SI),mI=(y(wI,hI=Nf),wI.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},wI.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},wI.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},wI.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||1e4<i.count()||!this._symbolDraw.isPersistent())return{update:!0};n=eM("").reset(t,e,n);n.progress&&n.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},wI.prototype._getClipShape=function(t){var e=t.coordinateSystem,e=e&&e.getArea&&e.getArea();return t.get("clip",!0)?e:null},wI.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,e=e.pipelineContext.large;return n&&e===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=new(e?yI:yS),this._isLargeDraw=e,this.group.removeAll()),this.group.add(n.group),n},wI.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},wI.prototype.dispose=function(){},wI.type="scatter",wI),vI=(y(bI,uI=xc),bI.type="grid",bI.dependencies=["xAxis","yAxis"],bI.layoutMode="box",bI.defaultOption={show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},bI),xI=(y(_I,lI=xc),_I.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ar).models[0]},_I.type="cartesian2dAxis",_I);function _I(){return null!==lI&&lI.apply(this,arguments)||this}function bI(){return null!==uI&&uI.apply(this,arguments)||this}function wI(){var t=null!==hI&&hI.apply(this,arguments)||this;return t.type=wI.type,t}function SI(){this.group=new Ao}function MI(t){return cI.call(this,t)||this}function II(){var t=null!==pI&&pI.apply(this,arguments)||this;return t.type=II.type,t.hasSymbolVisual=!0,t}X(xI,X_);var qu={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},M=V({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},qu),Zr=V({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}}},qu),TI={category:M,value:Zr,time:V({scale:!0,splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Zr),log:F({scale:!0,logBase:10},Zr)},CI={value:1,category:1,time:1,log:1};function DI(r,a,s,l){Z(CI,function(t,o){var e,n=V(V({},TI[o],!0),l,!0),n=(y(i,e=s),i.prototype.mergeDefaultAndTheme=function(t,e){var n=ac(this),i=n?lc(t):{};V(t,e.getTheme().get(o+"Axis")),V(t,this.getDefaultOption()),t.type=AI(t),n&&sc(t,i,n)},i.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Gx.createByAxisModel(this))},i.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},i.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},i.type=a+"Axis."+o,i.defaultOption=n,i);function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a+"Axis."+o,t}r.registerComponentModel(n)}),r.registerSubTypeDefaulter(a+"Axis",AI)}function AI(t){return t.type||(t.data?"category":"value")}var k=(LI.prototype.getAxis=function(t){return this._axes[t]},LI.prototype.getAxes=function(){return j(this._dimList,function(t){return this._axes[t]},this)},LI.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),K(this.getAxes(),function(t){return t.scale.type===e})},LI.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},LI),kI=["x","y"];function LI(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}function PI(t){return"interval"===t.type||"time"===t.type}var OI,RI,NI=(y(VI,RI=k),VI.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t,e,n,i,o=this.getAxis("x").scale,r=this.getAxis("y").scale;PI(o)&&PI(r)&&(n=o.getExtent(),i=r.getExtent(),t=this.dataToPoint([n[0],i[0]]),e=this.dataToPoint([n[1],i[1]]),o=n[1]-n[0],r=i[1]-i[0],o&&r&&(o=(e[0]-t[0])/o,r=(e[1]-t[1])/r,n=t[0]-n[0]*o,i=t[1]-i[0]*r,i=this._transform=[o,0,0,r,n,i],this._invTransform=Pi([],i)))},VI.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},VI.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},VI.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},VI.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],o=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=o&&isFinite(o))return ee(n,t,this._transform);var r=this.getAxis("x"),t=this.getAxis("y");return n[0]=r.toGlobalCoord(r.dataToCoord(i,e)),n[1]=t.toGlobalCoord(t.dataToCoord(o,e)),n},VI.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),r=i.getExtent(),n=n.parse(t[0]),t=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(o[0],o[1]),n),Math.max(o[0],o[1])),e[1]=Math.min(Math.max(Math.min(r[0],r[1]),t),Math.max(r[0],r[1])),e},VI.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return ee(n,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=o.coordToData(o.toLocalCoord(t[1]),e),n},VI.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},VI.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(e[0],e[1]),t=Math.max(t[0],t[1])-n,e=Math.max(e[0],e[1])-i;return new Qi(n,i,t,e)},VI),zI=(y(EI,OI=cb),EI.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},EI.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},EI.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},EI.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},EI);function EI(t,e,n,i,o){n=OI.call(this,t,e,n)||this;return n.index=0,n.type=i||"value",n.position=o||"bottom",n}function VI(){var t=null!==RI&&RI.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=kI,t}function BI(t,e,n){n=n||{};var i=t.coordinateSystem,o=e.axis,r={},a=o.getAxesOnZeroOf()[0],s=o.position,l=a?"onZero":s,u=o.dim,h=i.getRect(),t=[h.x,h.x+h.width,h.y,h.y+h.height],o={left:0,right:1,top:0,bottom:1,onZero:2},i=e.get("offset")||0,h="x"===u?[t[2]-i,t[3]+i]:[t[0]-i,t[1]+i];a&&(i=a.toGlobalCoord(a.dataToCoord(0)),h[o.onZero]=Math.max(Math.min(i,h[1]),h[0])),r.position=["y"===u?h[o[l]]:t[0],"x"===u?h[o[l]]:t[3]],r.rotation=Math.PI/2*("x"===u?0:1);r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],r.labelOffset=a?h[o[s]]-h[o.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),ft(n.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);e=e.get(["axisLabel","rotate"]);return r.labelRotate="top"===l?-e:e,r.z2=1,r}function GI(t){return"cartesian2d"===t.get("coordinateSystem")}function FI(i){var o={xAxisModel:null,yAxisModel:null};return Z(o,function(t,e){var n=e.replace(/Model$/,""),n=i.getReferringComponents(n,Ar).models[0];o[e]=n}),o}function HI(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=kI,this._initCartesian(t,e,n),this.model=t}function WI(t,e){return t.getCoordSysModel()===e}function UI(t,e,n,i){n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,r=t[e],e=n.model,n=e.get(["axisLine","onZero"]),e=e.get(["axisLine","onZeroAxisIndex"]);if(n){if(null!=e)XI(r[e])&&(o=r[e]);else for(var a in r)if(r.hasOwnProperty(a)&&XI(r[a])&&!i[s(r[a])]){o=r[a];break}o&&(i[s(o)]=!0)}function s(t){return t.dim+"_"+t.index}}function XI(t){return t&&"category"!==t.type&&"time"!==t.type&&(e=(t=(e=t).scale.getExtent())[0],t=t[1],!(0<e&&0<t||e<0&&t<0));var e}var YI=(HI.prototype.getRect=function(){return this._rect},HI.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model),Z(n.x,function(t){E_(t.scale,t.model)}),Z(n.y,function(t){E_(t.scale,t.model)});var i={};Z(n.x,function(t){UI(n,"y",t,i)}),Z(n.y,function(t){UI(n,"x",t,i)}),this.resize(this.model,e)},HI.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),t=!n&&t.get("containLabel"),a=oc(i,{width:e.getWidth(),height:e.getHeight()});this._rect=a;var o=this._axesList;function r(){Z(o,function(t){var e,n,i=t.isHorizontal(),o=i?[0,a.width]:[0,a.height],r=t.inverse?1:0;t.setExtent(o[r],o[1-r]),t=t,e=i?a.x:a.y,i=t.getExtent(),n=i[0]+i[1],t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}})}r(),t&&(Z(o,function(t){var e,n,i;t.model.get(["axisLabel","inside"])||(e=F_(t))&&(n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]),a[n]-=e[n]+i,"top"===t.position?a.y+=e.height+i:"left"===t.position&&(a.x+=e.width+i))}),r()),Z(this._coordsList,function(t){t.calcAffineTransform()})},HI.prototype.getAxis=function(t,e){t=this._axesMap[t];if(null!=t)return t[e||0]},HI.prototype.getAxes=function(){return this._axesList.slice()},HI.prototype.getCartesian=function(t,e){if(null!=t&&null!=e)return this._coordsMap["x"+t+"y"+e];at(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===t||i[n].getAxis("y").index===e)return i[n]},HI.prototype.getCartesians=function(){return this._coordsList.slice()},HI.prototype.convertToPixel=function(t,e,n){e=this._findConvertTarget(e);return e.cartesian?e.cartesian.dataToPoint(n):e.axis?e.axis.toGlobalCoord(e.axis.dataToCoord(n)):null},HI.prototype.convertFromPixel=function(t,e,n){e=this._findConvertTarget(e);return e.cartesian?e.cartesian.pointToData(n):e.axis?e.axis.coordToData(e.axis.toLocalCoord(n)):null},HI.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,o=t.xAxisModel||i&&i.getReferringComponents("xAxis",Ar).models[0],r=t.yAxisModel||i&&i.getReferringComponents("yAxis",Ar).models[0],a=t.gridModel,t=this._coordsList;return i?W(t,e=i.coordinateSystem)<0&&(e=null):o&&r?e=this.getCartesian(o.componentIndex,r.componentIndex):o?n=this.getAxis("x",o.componentIndex):r?n=this.getAxis("y",r.componentIndex):a&&a.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:n}},HI.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},HI.prototype._initCartesian=function(r,t,e){var a=this,s=this,l={left:!1,right:!1,top:!1,bottom:!1},u={x:{},y:{}},h={x:0,y:0};if(t.eachComponent("xAxis",n("x"),this),t.eachComponent("yAxis",n("y"),this),!h.x||!h.y)return this._axesMap={},void(this._axesList=[]);function n(o){return function(t,e){var n,i;WI(t,r)&&(i=t.get("position"),"x"===o?"top"!==i&&"bottom"!==i&&(i=l.bottom?"top":"bottom"):"left"!==i&&"right"!==i&&(i=l.left?"right":"left"),l[i]=!0,i="category"===(n=new zI(o,V_(t),[0,0],t.get("type"),i)).type,n.onBand=i&&t.get("boundaryGap"),n.inverse=t.get("inverse"),(t.axis=n).model=t,n.grid=s,n.index=e,s._axesList.push(n),u[o][e]=n,h[o]++)}}Z((this._axesMap=u).x,function(i,o){Z(u.y,function(t,e){var n="x"+o+"y"+e,e=new NI(n);e.master=a,e.model=r,a._coordsMap[n]=e,a._coordsList.push(e),e.addAxis(i),e.addAxis(t)})})},HI.prototype._updateScale=function(t,i){function o(e,n){Z(U_(e,n.dim),function(t){n.scale.unionExtentFromData(e,t)})}Z(this._axesList,function(t){var e;t.scale.setExtent(1/0,-1/0),"category"===t.type&&(e=t.model.get("categorySortInfo"),t.scale.setSortInfo(e))}),t.eachSeries(function(t){var e,n;GI(t)&&(n=(e=FI(t)).xAxisModel,e=e.yAxisModel,WI(n,i)&&WI(e,i)&&(n=this.getCartesian(n.componentIndex,e.componentIndex),e=t.getData(),t=n.getAxis("x"),n=n.getAxis("y"),"list"===e.type&&(o(e,t),o(e,n))))},this)},HI.prototype.getTooltipAxes=function(n){var i=[],o=[];return Z(this.getCartesians(),function(t){var e=null!=n&&"auto"!==n?t.getAxis(n):t.getBaseAxis(),t=t.getOtherAxis(e);W(i,e)<0&&i.push(e),W(o,t)<0&&o.push(t)}),{baseAxes:i,otherAxes:o}},HI.create=function(i,o){var r=[];return i.eachComponent("grid",function(t,e){var n=new HI(t,i,o);n.name="grid_"+e,n.resize(t,o,!0),t.coordinateSystem=n,r.push(n)}),i.eachSeries(function(t){var e,n,i;GI(t)&&(e=(i=FI(t)).xAxisModel,n=i.yAxisModel,i=e.getCoordSysModel().coordinateSystem,t.coordinateSystem=i.getCartesian(e.componentIndex,n.componentIndex))}),r},HI.dimensions=kI,HI),ZI=Math.PI,jI=(KI.prototype.hasBuilder=function(t){return!!qI[t]},KI.prototype.add=function(t){qI[t](this.opt,this.axisModel,this.group,this._transformGroup)},KI.prototype.getGroup=function(){return this.group},KI.innerTextLayout=function(t,e,n){var i,t=Jo(e-t),n=Qo(t)?(i=0<n?"top":"bottom","center"):Qo(t-ZI)?(i=0<n?"bottom":"top","center"):(i="middle",0<t&&t<ZI?0<n?"right":"left":0<n?"left":"right");return{rotation:t,textAlign:n,textVerticalAlign:i}},KI.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},KI.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},KI),qI={axisLine:function(i,t,o,e){var r,a,s,l,u,n=t.get(["axisLine","show"]);(n="auto"===n&&i.handleAutoShown?i.handleAutoShown("axisLine"):n)&&(n=t.axis.getExtent(),e=e.transform,r=[n[0],0],n=[n[1],0],e&&(ee(r,r,e),ee(n,n,e)),a=G({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),(e=new Lg({subPixelOptimize:!0,shape:{x1:r[0],y1:r[1],x2:n[0],y2:n[1]},style:a,strokeContainThreshold:i.strokeContainThreshold||5,silent:!0,z2:1})).anid="line",o.add(e),null!=(s=t.get(["axisLine","symbol"]))&&(e=t.get(["axisLine","symbolSize"]),"string"==typeof s&&(s=[s,s]),"string"!=typeof e&&"number"!=typeof e||(e=[e,e]),t=Wm(t.get(["axisLine","symbolOffset"])||0,e),l=e[0],u=e[1],Z([{rotate:i.rotation+Math.PI/2,offset:t[0],r:0},{rotate:i.rotation-Math.PI/2,offset:t[1],r:Math.sqrt((r[0]-n[0])*(r[0]-n[0])+(r[1]-n[1])*(r[1]-n[1]))}],function(t,e){var n;"none"!==s[e]&&null!=s[e]&&(n=Fm(s[e],-l/2,-u/2,l,u,a.stroke,!0),e=t.r+t.offset,n.attr({rotation:t.rotate,x:r[0]+e*Math.cos(i.rotation),y:r[1]-e*Math.sin(i.rotation),silent:!0,z2:11}),o.add(n))})))},axisTickLabel:function(t,e,n,i){var o=function(t,e,n,i){var o=n.axis,r=n.getModel("axisTick"),a=r.get("show");if((a="auto"===a&&i.handleAutoShown?i.handleAutoShown("axisTick"):a)&&!o.scale.isBlank()){for(var a=r.getModel("lineStyle"),r=i.tickDirection*r.get("length"),s=t2(o.getTicksCoords(),e.transform,r,F(a.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),l=0;l<s.length;l++)t.add(s[l]);return s}}(n,i,e,t),r=function(l,u,h,c){var p=h.axis;if(ft(c.axisLabelShow,h.get(["axisLabel","show"]))&&!p.scale.isBlank()){var d=h.getModel("axisLabel"),f=d.get("margin"),t=p.getViewLabels(),e=(ft(c.labelRotate,d.get("rotate"))||0)*ZI/180,g=jI.innerTextLayout(c.rotation,e,c.labelDirection),y=h.getCategories&&h.getCategories(!0),m=[],v=jI.isLabelSilent(h),x=h.get("triggerEvent");return Z(t,function(t,e){var n="ordinal"===p.scale.type?p.scale.getRawOrdinalNumber(t.tickValue):t.tickValue,i=t.formattedLabel,o=t.rawLabel,r=d;y&&y[n]&&(at(s=y[n])&&s.textStyle&&(r=new th(s.textStyle,d,h.ecModel)));var a=r.getTextColor()||h.get(["axisLine","lineStyle","color"]),s=p.dataToCoord(n),a=new xl({x:s,y:c.labelOffset+c.labelDirection*f,rotation:g.rotation,silent:v,z2:10+(t.level||0),style:Ru(r,{text:i,align:r.getShallow("align",!0)||g.textAlign,verticalAlign:r.getShallow("verticalAlign",!0)||r.getShallow("baseline",!0)||g.textVerticalAlign,fill:"function"==typeof a?a("category"===p.type?o:"value"===p.type?n+"":n,e):a})});a.anid="label_"+n,x&&((n=jI.makeAxisEventDataBase(h)).targetType="axisLabel",n.value=o,_l(a).eventData=n),u.add(a),a.updateTransform(),m.push(a),l.add(a),a.decomposeTransform()}),m}}(n,i,e,t);(function(t,e,n){{var i,o,r,a,s,l,u;W_(t.axis)||(i=t.get(["axisLabel","showMinLabel"]),o=t.get(["axisLabel","showMaxLabel"]),n=n||[],r=(e=e||[])[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],t=n[1],e=n[n.length-1],n=n[n.length-2],!1===i?($I(r),$I(u)):JI(r,a)&&(i?($I(a),$I(t)):($I(r),$I(u))),!1===o?($I(s),$I(e)):JI(l,s)&&(o?($I(l),$I(n)):($I(s),$I(e))))}})(e,r,o),function(t,e,n,i){var o=n.axis,r=n.getModel("minorTick");if(r.get("show")&&!o.scale.isBlank()){var a=o.getMinorTicksCoords();if(a.length)for(var o=r.getModel("lineStyle"),s=i*r.get("length"),l=F(o.getLineStyle(),F(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),u=0;u<a.length;u++)for(var h=t2(a[u],e.transform,s,l,"minorticks_"+u),c=0;c<h.length;c++)t.add(h[c])}}(n,i,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])&&Bb(zb(j(r,function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})))},axisName:function(t,e,n,i){var o,r,a,s,l,u,h,c,p,d,f,g=ft(t.axisName,e.get("name"));g&&(o=e.get("nameLocation"),r=t.nameDirection,a=e.getModel("nameTextStyle"),u=e.get("nameGap")||0,l=(s=e.axis.getExtent())[0]>s[1]?-1:1,l=["start"===o?s[0]-l*u:"end"===o?s[1]+l*u:(s[0]+s[1])/2,QI(o)?t.labelOffset+r*u:0],null!=(u=e.get("nameRotate"))&&(u=u*ZI/180),QI(o)?h=jI.innerTextLayout(t.rotation,null!=u?u:t.rotation,r):(c=t.rotation,p=o,d=s,c=Jo((u||0)-c),d=d[0]>d[1],d="start"===p&&!d||"start"!==p&&d,d=Qo(c-ZI/2)?(f=d?"bottom":"top","center"):Qo(c-1.5*ZI)?(f=d?"top":"bottom","center"):(f="middle",c<1.5*ZI&&ZI/2<c?d?"left":"right":d?"right":"left"),h={rotation:c,textAlign:d,textVerticalAlign:f},null!=(p=t.axisNameAvailableWidth)&&(p=Math.abs(p/Math.sin(h.rotation)),isFinite(p)||(p=null))),c=a.getFont(),f=(d=e.get("nameTruncate",!0)||{}).ellipsis,p=ft(t.nameTruncateMaxWidth,d.maxWidth,p),zm({el:h=new xl({x:l[0],y:l[1],rotation:h.rotation,silent:jI.isLabelSilent(e),style:Ru(a,{text:g,font:c,overflow:"truncate",width:p,ellipsis:f,fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:a.get("align")||h.textAlign,verticalAlign:a.get("verticalAlign")||h.textVerticalAlign}),z2:1}),componentModel:e,itemName:g}),h.__fullText=g,h.anid="name",e.get("triggerEvent")&&((e=jI.makeAxisEventDataBase(e)).targetType="axisName",e.name=g,_l(h).eventData=e),i.add(h),h.updateTransform(),n.add(h),h.decomposeTransform())}};function KI(t,e){this.group=new Ao,this.opt=e,this.axisModel=t,F(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});e=new Ao({x:e.position[0],y:e.position[1],rotation:e.rotation});e.updateTransform(),this._transformGroup=e}function $I(t){t&&(t.ignore=!0)}function JI(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var o=Ti([]);return ki(o,o,-t.rotation),n.applyTransform(Di([],o,t.getLocalTransform())),i.applyTransform(Di([],o,e.getLocalTransform())),n.intersect(i)}}function QI(t){return"middle"===t||"center"===t}function t2(t,e,n,i,o){for(var r=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,s[a[1]=0]=u,s[1]=n,e&&(ee(a,a,e),ee(s,s,e));u=new Lg({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});u.anid=o+"_"+t[l].tickValue,r.push(u)}return r}var e2=jI;function n2(t,e){var o,u,h,r,c,p,d,n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return u=n,e=e,r=(h=t).getComponent("tooltip"),c=h.getComponent("axisPointer"),p=c.get("link",!0)||[],d=[],Z(e.getCoordinateSystems(),function(a){var s,l,t,e,n;function i(t,e,n){var i,o=n.model.getModel("axisPointer",c),r=o.get("show");r&&("auto"!==r||t||r2(o))&&(null==e&&(e=o.get("triggerTooltip")),i=(o=t?function(t,e,n,i,o,r){var a=e.getModel("axisPointer"),s={};Z(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=E(a.get(t))}),s.snap="category"!==t.type&&!!r,"cross"===a.get("type")&&(s.type="line");e=s.label||(s.label={});null==e.show&&(e.show=!1),"cross"===o&&(o=a.get(["label","show"]),e.show=null==o||o,r||(r=s.lineStyle=a.get("crossStyle"))&&F(e,r.textStyle));return t.model.getModel("axisPointer",new th(s,n,i))}(n,l,c,h,t,e):o).get("snap"),r=a2(n.model),t=e||i||"category"===n.type,o=u.axesInfo[r]={key:r,axis:n,coordSys:a,axisPointerModel:o,triggerTooltip:e,involveSeries:t,snap:i,useHandle:r2(o),seriesModels:[],linkGroup:null},s[r]=o,u.seriesInvolved=u.seriesInvolved||t,null!=(t=function(t,e){for(var n=e.model,i=e.dim,o=0;o<t.length;o++){var r=t[o]||{};if(i2(r[i+"AxisId"],n.id)||i2(r[i+"AxisIndex"],n.componentIndex)||i2(r[i+"AxisName"],n.name))return o}}(p,n))&&((n=d[t]||(d[t]={axesInfo:{}})).axesInfo[r]=o,n.mapper=p[t].mapper,o.linkGroup=n))}a.axisPointerEnabled&&(n=a2(a.model),s=u.coordSysAxesInfo[n]={},l=(u.coordSysMap[n]=a).model.getModel("tooltip",r),Z(a.getAxes(),tt(i,!1,null)),a.getTooltipAxes&&r&&l.get("show")&&(t="axis"===l.get("trigger"),e="cross"===l.get(["axisPointer","type"]),n=a.getTooltipAxes(l.get(["axisPointer","axis"])),(t||e)&&Z(n.baseAxes,tt(i,!e||"cross",t)),e&&Z(n.otherAxes,tt(i,"cross",!1))))}),n.seriesInvolved&&(o=n,t.eachSeries(function(n){var i=n.coordinateSystem,t=n.get(["tooltip","trigger"],!0),e=n.get(["tooltip","show"],!0);i&&"none"!==t&&!1!==t&&"item"!==t&&!1!==e&&!1!==n.get(["axisPointer","show"],!0)&&Z(o.coordSysAxesInfo[a2(i.model)],function(t){var e=t.axis;i.getAxis(e.dim)===e&&(t.seriesModels.push(n),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=n.getData().count())})})),n}function i2(t,e){return"all"===t||et(t)&&0<=W(t,e)||t===e}function o2(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[a2(t)]}function r2(t){return!!t.get(["handle","show"])}function a2(t){return t.type+"||"+t.id}var s2,l2={},u2=(y(c2,s2=If),c2.prototype.render=function(t,e,n,i){var o,r,a,s,l,u;this.axisPointerClass&&(u=o2(o=t))&&(s=u.axisPointerModel,l=u.axis.scale,r=s.option,a=s.get("status"),null!=(o=s.get("value"))&&(o=l.parse(o)),s=r2(s),null==a&&(r.status=s?"show":"hide"),(l=l.getExtent().slice())[0]>l[1]&&l.reverse(),(o=null==o||o>l[1]?l[1]:o)<l[0]&&(o=l[0]),r.value=o,s&&(r.status=u.axis.scale.isBlank()?"hide":"show")),s2.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},c2.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},c2.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},c2.prototype.dispose=function(t,e){this._disposeAxisPointer(e),s2.prototype.dispose.apply(this,arguments)},c2.prototype._doUpdateAxisPointerClass=function(t,e,n){var i,o=c2.getAxisPointerClass(this.axisPointerClass);o&&((i=(i=o2(i=t))&&i.axisPointerModel)?(this._axisPointer||(this._axisPointer=new o)).render(t,i,e,n):this._disposeAxisPointer(e))},c2.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},c2.registerAxisPointerClass=function(t,e){l2[t]=e},c2.getAxisPointerClass=function(t){return t&&l2[t]},c2.type="axis",c2),h2=Ir();function c2(){var t=null!==s2&&s2.apply(this,arguments)||this;return t.type=c2.type,t}function p2(t,e,n,i){var o=n.axis;if(!o.scale.isBlank()){var r=n.getModel("splitArea"),n=r.getModel("areaStyle"),a=n.get("color"),s=i.coordinateSystem.getRect(),l=o.getTicksCoords({tickModel:r,clamp:!0});if(l.length){var u=a.length,h=h2(t).splitAreaColors,c=Tt(),p=0;if(h)for(var d=0;d<l.length;d++){var f=h.get(l[d].tickValue);if(null!=f){p=(f+(u-1)*d)%u;break}}for(var g=o.toGlobalCoord(l[0].coord),y=n.getAreaStyle(),a=et(a)?a:[a],d=1;d<l.length;d++){var m=o.toGlobalCoord(l[d].coord),v=void 0,x=void 0,_=void 0,b=void 0,g=o.isHorizontal()?(v=g,x=s.y,b=s.height,v+(_=m-v)):(v=s.x,x=g,_=s.width,x+(b=m-x)),m=l[d-1].tickValue;null!=m&&c.set(m,p),e.add(new rl({anid:null!=m?"area_"+m:null,shape:{x:v,y:x,width:_,height:b},style:F({fill:a[p]},y),autoBatch:!0,silent:!0})),p=(p+1)%u}h2(t).splitAreaColors=c}}}function d2(t){h2(t).splitAreaColors=null}var f2,g2,y2,m2,v2=["axisLine","axisTickLabel","axisName"],x2=["splitArea","splitLine","minorSplitLine"],qu=(y(D2,m2=u2),D2.prototype.render=function(o,t,e,n){this.group.removeAll();var r,i,a=this._axisGroup;this._axisGroup=new Ao,this.group.add(this._axisGroup),o.get("show")&&(i=BI(r=o.getCoordSysModel(),o),i=new e2(o,G({handleAutoShown:function(t){for(var e=r.coordinateSystem.getCartesians(),n=0;n<e.length;n++){var i=e[n].getOtherAxis(o.axis).type;if("value"===i||"log"===i)return!0}return!1}},i)),Z(v2,i.add,i),this._axisGroup.add(i.getGroup()),Z(x2,function(t){o.get([t,"show"])&&_2[t](this,this._axisGroup,o,r)},this),n&&"changeAxisOrder"===n.type&&n.isInitSort||km(a,this._axisGroup,o),m2.prototype.render.call(this,o,t,e,n))},D2.prototype.remove=function(){d2(this)},D2.type="cartesianAxis",D2),_2={splitLine:function(t,e,n,i){var o=n.axis;if(!o.scale.isBlank())for(var r=n.getModel("splitLine"),n=r.getModel("lineStyle"),a=et(a=n.get("color"))?a:[a],s=i.coordinateSystem.getRect(),l=o.isHorizontal(),u=0,h=o.getTicksCoords({tickModel:r}),c=[],p=[],d=n.getLineStyle(),f=0;f<h.length;f++){var g=o.toGlobalCoord(h[f].coord);l?(c[0]=g,c[1]=s.y,p[0]=g,p[1]=s.y+s.height):(c[0]=s.x,c[1]=g,p[0]=s.x+s.width,p[1]=g);var y=u++%a.length,g=h[f].tickValue;e.add(new Lg({anid:null!=g?"line_"+h[f].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]},style:F({stroke:a[y]},d),silent:!0}))}},minorSplitLine:function(t,e,n,i){var o=n.axis,n=n.getModel("minorSplitLine").getModel("lineStyle"),r=i.coordinateSystem.getRect(),a=o.isHorizontal(),s=o.getMinorTicksCoords();if(s.length)for(var l=[],u=[],h=n.getLineStyle(),c=0;c<s.length;c++)for(var p=0;p<s[c].length;p++){var d=o.toGlobalCoord(s[c][p].coord);a?(l[0]=d,l[1]=r.y,u[0]=d,u[1]=r.y+r.height):(l[0]=r.x,l[1]=d,u[0]=r.x+r.width,u[1]=d),e.add(new Lg({anid:"minor_line_"+s[c][p].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:h,silent:!0}))}},splitArea:function(t,e,n,i){p2(t,e,n,i)}},b2=(y(C2,y2=qu),C2.type="xAxis",C2),w2=(y(T2,g2=qu),T2.type="yAxis",T2),S2=(y(I2,f2=If),I2.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new rl({shape:t.coordinateSystem.getRect(),style:F({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},I2.type="grid",I2),M2={offset:0};function I2(){var t=null!==f2&&f2.apply(this,arguments)||this;return t.type="grid",t}function T2(){var t=null!==g2&&g2.apply(this,arguments)||this;return t.type=b2.type,t}function C2(){var t=null!==y2&&y2.apply(this,arguments)||this;return t.type=C2.type,t}function D2(){var t=null!==m2&&m2.apply(this,arguments)||this;return t.type=D2.type,t.axisPointerClass="CartesianAxisPointer",t}function A2(t){t.registerComponentView(S2),t.registerComponentModel(vI),t.registerCoordinateSystem("cartesian2d",YI),DI(t,"x",xI,M2),DI(t,"y",xI,M2),t.registerComponentView(b2),t.registerComponentView(w2),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function k2(t){t.eachSeriesByType("radar",function(t){var e,i=t.getData(),o=[],r=t.coordinateSystem;r&&(Z(e=r.getIndicatorAxes(),function(t,n){i.each(i.mapDimension(e[n].dim),function(t,e){o[e]=o[e]||[];t=r.dataToPoint(t,n);o[e][n]=L2(t)?t:P2(r)})}),i.each(function(t){var e=$(o[t],L2)||P2(r);o[t].push(e.slice()),i.setItemLayout(t,o[t])}))})}function L2(t){return!isNaN(t[0])&&!isNaN(t[1])}function P2(t){return[t.cx,t.cy]}function O2(n){var i,t=n.polar;t&&(et(t)||(t=[t]),i=[],Z(t,function(t,e){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),n.radar=n.radar||[],et(n.radar)||(n.radar=[n.radar]),n.radar.push(t)):i.push(t)}),n.polar=i),Z(n.series,function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)})}var R2,N2,z2=(y(B2,N2=Nf),B2.prototype.render=function(l,t,e){var n=l.coordinateSystem,h=this.group,c=l.getData(),a=this._data;function s(t,e,n,i,o,r){n.removeAll();for(var a=0;a<e.length-1;a++){var s=function(t,e){if("none"!==(i=t.getItemVisual(e,"symbol")||"circle")){var n=Hm(t.getItemVisual(e,"symbolSize")),i=Fm(i,-1,-1,2,2),e=t.getItemVisual(e,"symbolRotate")||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:n[0]/2,scaleY:n[1]/2,rotation:e*Math.PI/180||0}),i}}(i,o);s&&(t[s.__dimIdx=a]?(s.setPosition(t[a]),p[r?"initProps":"updateProps"](s,{x:e[a][0],y:e[a][1]},l,o)):s.setPosition(e[a]),n.add(s))}}function u(t){return j(t,function(t){return[n.cx,n.cy]})}c.diff(a).add(function(t){var e,n,i,o,r=c.getItemLayout(t);r&&(e=new Ry,n=new Ey,o={shape:{points:r}},e.shape.points=u(r),n.shape.points=u(r),Su(e,o,l,t),Su(n,o,l,t),i=new Ao,o=new Ao,i.add(n),i.add(e),i.add(o),s(n.shape.points,r,o,c,t,!0),c.setItemGraphicEl(t,i))}).update(function(t,e){var n=a.getItemGraphicEl(e),i=n.childAt(0),o=n.childAt(1),r=n.childAt(2),e={shape:{points:c.getItemLayout(t)}};e.shape.points&&(s(i.shape.points,e.shape.points,r,c,t,!1),Du(o),Du(i),wu(i,e,l),wu(o,e,l),c.setItemGraphicEl(t,n))}).remove(function(t){h.remove(a.getItemGraphicEl(t))}).execute(),c.eachItemGraphicEl(function(t,n){var i=c.getItemModel(n),e=t.childAt(0),o=t.childAt(1),r=t.childAt(2),a=c.getItemVisual(n,"style"),s=a.fill;h.add(t),e.useStyle(F(i.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:s})),fu(e,i,"lineStyle"),fu(o,i,"areaStyle");var e=i.getModel("areaStyle"),l=e.isEmpty()&&e.parentModel.isEmpty();o.ignore=l,Z(["emphasis","select","blur"],function(t){var e=i.getModel([t,"areaStyle"]),e=e.isEmpty()&&e.parentModel.isEmpty();o.ensureState(t).ignore=e&&l}),o.useStyle(F(e.getAreaStyle(),{fill:s,opacity:.7,decal:a.decal}));var e=i.getModel("emphasis"),u=e.getModel("itemStyle").getItemStyle();r.eachChild(function(t){t instanceof qs?(e=t.style,t.useStyle(G({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},a))):(t.useStyle(a),t.setColor(s),t.style.strokeNoScale=!0),t.ensureState("emphasis").style=E(u);var e=c.getStore().get(c.getDimensionIndex(t.__dimIdx),n);null!=e&&!isNaN(e)||(e=""),Pu(t,Ou(i),{labelFetcher:c.hostModel,labelDataIndex:n,labelDimIndex:t.__dimIdx,defaultText:e,inheritColor:s,defaultOpacity:a.opacity})}),hu(t,e.get("focus"),e.get("blurScope"))}),this._data=c},B2.prototype.remove=function(){this.group.removeAll(),this._data=null},B2.type="radar",B2),E2=(y(V2,R2=Sf),V2.prototype.init=function(t){R2.prototype.init.apply(this,arguments),this.legendVisualProvider=new oI(Q(this.getData,this),Q(this.getRawData,this))},V2.prototype.getInitialData=function(t,e){return nI(this,{generateCoord:"indicator_",generateCoordCount:1/0})},V2.prototype.formatTooltip=function(n,t,e){var i=this.getData(),o=this.coordinateSystem.getIndicatorAxes(),r=this.getData().getName(n),r=""===r?this.name:r,a=af(this,n);return Jd("section",{header:r,sortBlocks:!0,blocks:j(o,function(t){var e=i.get(i.mapDimension(t.dim),n);return Jd("nameValue",{markerType:"subItem",markerColor:a,name:t.name,value:e,sortParam:e})})})},V2.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,i=e.getValues(j(n.dimensions,function(t){return e.mapDimension(t)}),t),o=0,r=i.length;o<r;o++)if(!isNaN(i[o])){var a=n.getIndicatorAxes();return n.coordToPoint(a[o].dataToCoord(i[o]),o)}},V2.type="series.radar",V2.dependencies=["radar"],V2.defaultOption={zlevel:0,z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},V2),M=TI.value;function V2(){var t=null!==R2&&R2.apply(this,arguments)||this;return t.type=V2.type,t.hasSymbolVisual=!0,t}function B2(){var t=null!==N2&&N2.apply(this,arguments)||this;return t.type=B2.type,t}function G2(t,e){return F({show:e},t)}var F2,H2,W2,U2=(y(J2,W2=xc),J2.prototype.optionUpdated=function(){var n=this.get("boundaryGap"),i=this.get("splitNumber"),o=this.get("scale"),r=this.get("axisLine"),a=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),h=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),p=this.get("triggerEvent"),t=j(this.get("indicator")||[],function(t){null!=t.max&&0<t.max&&!t.min?t.min=0:null!=t.min&&t.min<0&&!t.max&&(t.max=0);var e=l;null!=t.color&&(e=F({color:t.color},l));t=V(E(t),{boundaryGap:n,splitNumber:i,scale:o,axisLine:r,axisTick:a,axisLabel:s,name:t.text,nameLocation:"end",nameGap:c,nameTextStyle:e,triggerEvent:p},!1);u||(t.name=""),"string"==typeof h?(e=t.name,t.name=h.replace("{value}",null!=e?e:"")):"function"==typeof h&&(t.name=h(t.name,t));t=new th(t,null,this.ecModel);return X(t,X_.prototype),t.mainType="radar",t.componentIndex=this.componentIndex,t},this);this._indicatorModels=t},J2.prototype.getIndicatorModels=function(){return this._indicatorModels},J2.type="radar",J2.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:V({lineStyle:{color:"#bbb"}},M.axisLine),axisLabel:G2(M.axisLabel,!1),axisTick:G2(M.axisTick,!1),splitLine:G2(M.splitLine,!0),splitArea:G2(M.splitArea,!0),indicator:[]},J2),X2=["axisLine","axisTickLabel","axisName"],Y2=(y($2,H2=If),$2.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},$2.prototype._buildAxes=function(t){var e=t.coordinateSystem;Z(j(e.getIndicatorAxes(),function(t){return new e2(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(t){Z(X2,t.add,t),this.group.add(t.getGroup())},this)},$2.prototype._buildSplitLineAndArea=function(t){var n=t.coordinateSystem,e=n.getIndicatorAxes();if(e.length){var i=t.get("shape"),o=t.getModel("splitLine"),r=t.getModel("splitArea"),a=o.getModel("lineStyle"),t=r.getModel("areaStyle"),s=o.get("show"),l=r.get("show"),o=a.get("color"),r=t.get("color"),u=et(o)?o:[o],h=et(r)?r:[r],c=[],p=[];if("circle"===i)for(var d=e[0].getTicksCoords(),f=n.cx,g=n.cy,y=0;y<d.length;y++)s&&c[M(c,u,y)].push(new Rg({shape:{cx:f,cy:g,r:d[y].coord}})),l&&y<d.length-1&&p[M(p,h,y)].push(new Cy({shape:{cx:f,cy:g,r0:d[y].coord,r:d[y+1].coord}}));else for(var m,v=j(e,function(t,e){t=t.getTicksCoords();return m=null==m?t.length-1:Math.min(t.length-1,m),j(t,function(t){return n.coordToPoint(t.coord,e)})}),x=[],y=0;y<=m;y++){for(var _=[],b=0;b<e.length;b++)_.push(v[b][y]);_[0]&&_.push(_[0].slice()),s&&c[M(c,u,y)].push(new Ey({shape:{points:_}})),l&&x&&p[M(p,h,y-1)].push(new Ry({shape:{points:_.concat(x)}})),x=_.slice().reverse()}var w=a.getLineStyle(),S=t.getAreaStyle();Z(p,function(t,e){this.group.add(bm(t,{style:F({stroke:"none",fill:h[e%h.length]},S),silent:!0}))},this),Z(c,function(t,e){this.group.add(bm(t,{style:F({fill:"none",stroke:u[e%u.length]},w),silent:!0}))},this)}function M(t,e,n){e=n%e.length;return t[e]=t[e]||[],e}},$2.type="radar",$2),Z2=(y(K2,F2=cb),K2),j2=(q2.prototype.getIndicatorAxes=function(){return this._indicatorAxes},q2.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},q2.prototype.coordToPoint=function(t,e){e=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(e),this.cy-t*Math.sin(e)]},q2.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,t=Math.sqrt(e*e+n*n);e/=t,n/=t;for(var i,o=Math.atan2(-n,e),r=1/0,a=-1,s=0;s<this._indicatorAxes.length;s++){var l=this._indicatorAxes[s],u=Math.abs(o-l.angle);u<r&&(i=l,a=s,r=u)}return[a,+(i&&i.coordToData(t))]},q2.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),o=e.getHeight(),e=Math.min(i,o)/2;this.cx=Uo(n[0],i),this.cy=Uo(n[1],o),this.startAngle=t.get("startAngle")*Math.PI/180;t=t.get("radius");this.r0=Uo((t="string"==typeof t||"number"==typeof t?[0,t]:t)[0],e),this.r=Uo(t[1],e),Z(this._indicatorAxes,function(t,e){t.setExtent(this.r0,this.r);e=this.startAngle+e*Math.PI*2/this._indicatorAxes.length,e=Math.atan2(Math.sin(e),Math.cos(e));t.angle=e},this)},q2.prototype.update=function(i,t){var o=this._indicatorAxes,r=this._model;Z(o,function(t){t.scale.setExtent(1/0,-1/0)}),i.eachSeriesByType("radar",function(t,e){var n;"radar"===t.get("coordinateSystem")&&i.getComponent("radar",t.get("radarIndex"))===r&&(n=t.getData(),Z(o,function(t){t.scale.unionExtentFromData(n,n.mapDimension(t.dim))}))},this);var h=r.get("splitNumber");function c(t){var e=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),t=t/e;return 2===t?t=5:t*=2,t*e}Z(o,function(t,e){var n=z_(t.scale,t.model).extent;E_(t.scale,t.model);var i=t.model,o=t.scale,r=N_(o,i.get("min",!0)),a=N_(o,i.get("max",!0)),s=o.getInterval();if(null!=r&&null!=a)o.setExtent(+r,+a),o.setInterval((a-r)/h);else if(null!=r)for(var l=void 0;o.setExtent(+r,l=r+s*h),o.setInterval(s),s=c(s),l<n[1]&&isFinite(l)&&isFinite(n[1]););else if(null!=a)for(var u=void 0;o.setExtent(u=a-s*h,+a),o.setInterval(s),s=c(s),u>n[0]&&isFinite(u)&&isFinite(n[0]););else{i=o.getTicks().length-1;h<i&&(s=c(s)),u=Xo((l=Math.ceil(n[1]/s)*s)-s*h),o.setExtent(u,l),o.setInterval(s)}})},q2.prototype.convertToPixel=function(t,e,n){return null},q2.prototype.convertFromPixel=function(t,e,n){return null},q2.prototype.containPoint=function(t){return!1},q2.create=function(t,n){var i=[];return t.eachComponent("radar",function(t){var e=new q2(t,0,n);i.push(e),t.coordinateSystem=e}),t.eachSeriesByType("radar",function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])}),i},q2.dimensions=[],q2);function q2(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=j(t.getIndicatorModels(),function(t,e){var n="indicator_"+e,e=new Z2(n,new t_);return e.name=t.get("name"),(e.model=t).axis=e,this.dimensions.push(n),e},this),this.resize(t,n)}function K2(t,e,n){n=F2.call(this,t,e,n)||this;return n.type="value",n.angle=0,n.name="",n}function $2(){var t=null!==H2&&H2.apply(this,arguments)||this;return t.type=$2.type,t}function J2(){var t=null!==W2&&W2.apply(this,arguments)||this;return t.type=J2.type,t}function Q2(t){t.registerCoordinateSystem("radar",j2),t.registerComponentModel(U2),t.registerComponentView(Y2),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(t){e.setItemVisual(t,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}var tT,eT="\0_ec_interaction_mutex";function nT(t,e){return iT(t)[e]}function iT(t){return t[eT]||(t[eT]={})}function oT(n){var t=tT.call(this)||this;t._zr=n;var i=Q(t._mousedownHandler,t),o=Q(t._mousemoveHandler,t),r=Q(t._mouseupHandler,t),a=Q(t._mousewheelHandler,t),s=Q(t._pinchHandler,t);return t.enable=function(t,e){this.disable(),this._opt=F(E(e)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),!0!==(t=null==t?!0:t)&&"move"!==t&&"pan"!==t||(n.on("mousedown",i),n.on("mousemove",o),n.on("mouseup",r)),!0!==t&&"scale"!==t&&"zoom"!==t||(n.on("mousewheel",a),n.on("pinch",s))},t.disable=function(){n.off("mousedown",i),n.off("mousemove",o),n.off("mouseup",r),n.off("mousewheel",a),n.off("pinch",s)},t}function rT(t,e,n,i,o){t.pointerChecker&&t.pointerChecker(i,o.originX,o.originY)&&(Me(i.event),aT(t,e,n,i,o))}function aT(t,e,n,i,o){o.isAvailableBehavior=Q(sT,null,n,i),t.trigger(e,o)}function sT(t,e,n){n=n[t];return!t||n&&(!it(n)||e.event[n+"Key"])}P1({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){});var lT=(y(oT,tT=ae),oT.prototype.isDragging=function(){return this._dragging},oT.prototype.isPinching=function(){return this._pinching},oT.prototype.setPointerChecker=function(t){this.pointerChecker=t},oT.prototype.dispose=function(){this.disable()},oT.prototype._mousedownHandler=function(t){var e,n;Ie(t)||t.target&&t.target.draggable||(e=t.offsetX,n=t.offsetY,this.pointerChecker&&this.pointerChecker(t,e,n)&&(this._x=e,this._y=n,this._dragging=!0))},oT.prototype._mousemoveHandler=function(t){var e,n,i,o,r,a;this._dragging&&sT("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!nT(this._zr,"globalPan")&&(e=t.offsetX,n=t.offsetY,r=e-(i=this._x),a=n-(o=this._y),this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&Me(t.event),aT(this,"pan","moveOnMouseMove",t,{dx:r,dy:a,oldX:i,oldY:o,newX:e,newY:n,isAvailableBehavior:null}))},oT.prototype._mouseupHandler=function(t){Ie(t)||(this._dragging=!1)},oT.prototype._mousewheelHandler=function(t){var e=sT("zoomOnMouseWheel",t,this._opt),n=sT("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),r=t.offsetX,a=t.offsetY;0!==i&&(e||n)&&(e&&(o=3<o?1.4:1<o?1.2:1.1,rT(this,"zoom","zoomOnMouseWheel",t,{scale:0<i?o:1/o,originX:r,originY:a,isAvailableBehavior:null})),n&&rT(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(0<i?1:-1)*(3<(i=Math.abs(i))?.4:1<i?.15:.05),originX:r,originY:a,isAvailableBehavior:null}))},oT.prototype._pinchHandler=function(t){nT(this._zr,"globalPan")||rT(this,"zoom",null,t,{scale:1<t.pinchScale?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},oT);function uT(t,e,n){t=t.target;t.x+=e,t.y+=n,t.dirty()}function hT(t,e,n,i){var o=t.target,r=t.zoomLimit,a=t.zoom=t.zoom||1;a*=e,r&&(s=r.min||0,r=r.max||1/0,a=Math.max(Math.min(r,a),s));var s=a/t.zoom;t.zoom=a,o.x-=(n-o.x)*(s-1),o.y-=(i-o.y)*(s-1),o.scaleX*=s,o.scaleY*=s,o.dirty()}var cT={axisPointer:1,tooltip:1,brush:1};function pT(t,e,n){e=e.getComponentByElement(t.topTarget),t=e&&e.coordinateSystem;return e&&e!==n&&!cT.hasOwnProperty(e.mainType)&&t&&t.model!==n}var Zr=["rect","circle","line","ellipse","polygon","polyline","path"],dT=Tt(Zr),fT=Tt(Zr.concat(["g"])),gT=Tt(Zr.concat(["g"])),yT=Ir();function mT(t){var e=t.getItemStyle(),t=t.get("areaColor");return null!=t&&(e.fill=t),e}function vT(t){var e=new Ao;this.uid=nh("ec_map_draw"),this._controller=new lT(t.getZr()),this._controllerHost={target:e},(this.group=e).add(this._regionsGroup=new Ao),e.add(this._svgGroup=new Ao)}function xT(t,e,n,i){var o=i.getModel("itemStyle"),r=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=mT(o),i=mT(r),o=mT(s),r=mT(a),s=t.data;s&&(a=s.getItemVisual(n,"style"),n=s.getItemVisual(n,"decal"),t.isVisualEncodedByVisualMap&&a.fill&&(l.fill=a.fill),n&&(l.decal=m0(n,t.api))),e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=i,e.ensureState("select").style=o,e.ensureState("blur").style=r,ql(e)}function _T(t,e,n,i,o,r,a){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),r)),t=s&&s.getItemLayout(r);l||u||t&&t.showLabel?(l=l?n:r,r=!s||0<=r?o:void 0,o=a?{normal:{align:"center",verticalAlign:"middle"}}:null,Pu(e,Ou(i),{labelFetcher:r,labelDataIndex:l,defaultText:n},o),(o=e.getTextContent())&&(yT(o).ignore=o.ignore,e.textConfig&&a)&&(o=e.getBoundingRect().clone(),e.textConfig.layoutRect=o,e.textConfig.position=[(a[0]-o.x)/o.width*100+"%",(a[1]-o.y)/o.height*100+"%"]),e.disableLabelAnimation=!0):(e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null)}function bT(t,e,n,i,o,r){t.data?t.data.setItemGraphicEl(r,e):_l(e).eventData={componentType:"geo",componentIndex:o.componentIndex,geoIndex:o.componentIndex,name:n,region:i&&i.option||{}}}function wT(t,e,n,i,o){t.data||zm({el:e,componentModel:o,itemName:n,itemTooltipOption:i.get("tooltip")})}function ST(t,e,n,i,o){e.highDownSilentOnTouch=!!o.get("selectedMode");var r=i.getModel("emphasis"),i=r.get("focus");return hu(e,i,r.get("blurScope")),t.isGeo&&(o=o,n=n,(e=_l(e=e)).componentMainType=o.mainType,e.componentIndex=o.componentIndex,e.componentHighDownName=n),i}var MT,IT,TT=(vT.prototype.draw=function(e,t,n,i,o){var r="geo"===e.mainType,a=e.getData&&e.getData();r&&t.eachComponent({mainType:"series",subType:"map"},function(t){a||t.getHostGeoModel()!==e||(a=t.getData())});var s=e.coordinateSystem,l=this._regionsGroup,u=this.group,h=s.getTransformInfo(),c=h.raw,h=h.roam;!l.childAt(0)||o?(u.x=h.x,u.y=h.y,u.scaleX=h.scaleX,u.scaleY=h.scaleY,u.dirty()):wu(u,h,e);h=a&&a.getVisual("visualMeta")&&0<a.getVisual("visualMeta").length,c={api:n,geo:s,mapOrGeoModel:e,data:a,isVisualEncodedByVisualMap:h,isGeo:r,transformInfoRaw:c};"geoJSON"===s.resourceType?this._buildGeoJSON(c):"geoSVG"===s.resourceType&&this._buildSVG(c),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,i)},vT.prototype._buildGeoJSON=function(r){function s(t){return[t[0]*e.scaleX+e.x,t[1]*e.scaleY+e.y]}var l=this._regionsGroupByName=Tt(),u=Tt(),h=this._regionsGroup,e=r.transformInfoRaw,c=r.mapOrGeoModel,p=r.data;h.removeAll(),Z(r.geo.regions,function(t){var e=t.name,n=l.get(e),i=u.get(e)||{},o=i.dataIdx,i=i.regionModel;n||(n=l.set(e,new Ao),h.add(n),o=p?p.indexOfName(e):null,i=r.isGeo?c.getRegionModel(e):p?p.getItemModel(o):null,u.set(e,{dataIdx:o,regionModel:i}));var a=new jy({segmentIgnoreThreshold:1,shape:{paths:[]}});n.add(a),Z(t.geometries,function(t){if("polygon"===t.type){for(var e=[],n=0;n<t.exterior.length;++n)e.push(s(t.exterior[n]));for(a.shape.paths.push(new Ry({segmentIgnoreThreshold:1,shape:{points:e}})),n=0;n<(t.interiors?t.interiors.length:0);++n){for(var i=t.interiors[n],o=[],r=0;r<i.length;++r)o.push(s(i[r]));a.shape.paths.push(new Ry({segmentIgnoreThreshold:1,shape:{points:o}}))}}}),xT(r,a,o,i),a instanceof xa&&(a.culling=!0);t=s(t.getCenter());_T(r,a,e,i,c,o,t)}),l.each(function(t,e){var n=u.get(e),i=n.dataIdx,n=n.regionModel;bT(r,t,e,n,c,i),wT(r,t,e,n,c),ST(r,t,e,n,c)},this)},vT.prototype._buildSVG=function(s){var t=s.geo.map,e=s.transformInfoRaw;this._svgGroup.x=e.x,this._svgGroup.y=e.y,this._svgGroup.scaleX=e.scaleX,this._svgGroup.scaleY=e.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var l=this._svgDispatcherMap=Tt(),u=!1;Z(this._svgGraphicRecord.named,function(t){var e=t.name,n=s.mapOrGeoModel,i=s.data,o=t.svgNodeTagLower,r=t.el,a=i?i.indexOfName(e):null,i=n.getRegionModel(e);null!=dT.get(o)&&r instanceof xa&&xT(s,r,a,i),r instanceof xa&&(r.culling=!0),r.z2EmphasisLift=0,t.namedFrom||(null!=gT.get(o)&&_T(s,r,e,i,n,a,null),bT(s,r,e,i,n,a),wT(s,r,e,i,n),null==fT.get(o))||("self"===ST(s,r,e,i,n)&&(u=!0),(l.get(e)||l.set(e,[])).push(r))},this),this._enableBlurEntireSVG(u,s)},vT.prototype._enableBlurEntireSVG=function(t,e){var n;t&&e.isGeo&&(n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity,this._svgGraphicRecord.root.traverse(function(t){var e;t.isGroup||(ql(t),null==(e=t.ensureState("blur").style||{}).opacity&&null!=n&&(e.opacity=n),t.ensureState("emphasis"))}))},vT.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},vT.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var n=e.coordinateSystem;if("geoJSON"===n.resourceType){e=this._regionsGroupByName;if(e){e=e.get(t);return e?[e]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},vT.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},vT.prototype._useSVG=function(t){var e=dv.getGeoResource(t);e&&"geoSVG"===e.type&&(e=e.useGraphic(this.uid),this._svgGroup.add(e.root),this._svgGraphicRecord=e,this._svgMapName=t)},vT.prototype._freeSVG=function(){var t=this._svgMapName;null!=t&&((t=dv.getGeoResource(t))&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null)},vT.prototype._updateController=function(i,t,o){var r=i.coordinateSystem,e=this._controller,n=this._controllerHost;n.zoomLimit=i.get("scaleLimit"),n.zoom=r.getZoom(),e.enable(i.get("roam")||!1);var a=i.mainType;function s(){var t={type:"geoRoam",componentType:a};return t[a+"Id"]=i.id,t}e.off("pan").on("pan",function(t){this._mouseDownFlag=!1,uT(n,t.dx,t.dy),o.dispatchAction(G(s(),{dx:t.dx,dy:t.dy}))},this),e.off("zoom").on("zoom",function(t){this._mouseDownFlag=!1,hT(n,t.scale,t.originX,t.originY),o.dispatchAction(G(s(),{zoom:t.scale,originX:t.originX,originY:t.originY}))},this),e.setPointerChecker(function(t,e,n){return r.containPoint([e,n])&&!pT(t,o,i)})},vT.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){t=t.getTextContent();t&&(t.ignore=yT(t).ignore)})},vT.prototype._updateMapSelectHandler=function(t,e,n,i){var o=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){o._mouseDownFlag=!0}),e.on("click",function(t){o._mouseDownFlag&&(o._mouseDownFlag=!1)}))},vT),CT=(y(kT,IT=Nf),kT.prototype.render=function(t,e,n,i){var o,r;i&&"mapToggleSelect"===i.type&&i.from===this.uid||((o=this.group).removeAll(),t.getHostGeoModel()||(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id?(r=this._mapDraw)&&o.add(r.group):t.needsDrawMap?(r=this._mapDraw||new TT(n),o.add(r.group),r.draw(t,e,n,this,i),this._mapDraw=r):(this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null),t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)))},kT.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},kT.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},kT.prototype._renderSymbols=function(r,t,e){var a=r.originalData,s=this.group;a.each(a.mapDimension("value"),function(t,e){var n,i,o;isNaN(t)||(o=a.getItemLayout(e))&&o.point&&(t=o.point,o=o.offset,n=new Rg({style:{fill:r.getData().getVisual("style").fill},shape:{cx:t[0]+9*o,cy:t[1],r:3},silent:!0,z2:8+(o?0:11)}),o||(t=r.mainSeries.getData(),o=a.getName(e),i=t.indexOfName(o),e=(o=a.getItemModel(e)).getModel("label"),t=t.getItemGraphicEl(i),Pu(n,Ou(o),{labelFetcher:{getFormattedLabel:function(t,e){return r.getFormattedLabel(i,e)}}}),n.disableLabelAnimation=!0,e.get("position")||n.setTextConfig({position:"bottom"}),t.onHoverStateChange=function(t){Yl(n,t)}),s.add(n))})},kT.type="map",kT),DT=(y(AT,MT=Sf),AT.prototype.getInitialData=function(t){for(var e=nI(this,{coordDimensions:["value"],encodeDefaulter:tt(Oc,this)}),n=Tt(),i=[],o=0,r=e.count();o<r;o++){var a=e.getName(o);n.set(a,!0)}return Z(dv.load(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,function(t){t=t.name;n.get(t)||i.push(t)}),e.appendValues([],i),e},AT.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},AT.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},AT.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},AT.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},AT.prototype.formatTooltip=function(t,e,n){for(var i=this.getData(),o=this.getRawValue(t),r=i.getName(t),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(r),h=i.mapDimension("value");isNaN(a[l].originalData.get(h,u))||s.push(a[l].name)}return Jd("section",{header:s.join(", "),noHeader:!s.length,blocks:[Jd("nameValue",{name:r,value:o})]})},AT.prototype.setZoom=function(t){this.option.zoom=t},AT.prototype.setCenter=function(t){this.option.center=t},AT.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=Fm(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",-1<e.indexOf("empty")&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},AT.type="series.map",AT.dependencies=["geo"],AT.layoutMode="box",AT.defaultOption={zlevel:0,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"},AT);function AT(){var t=null!==MT&&MT.apply(this,arguments)||this;return t.type=AT.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(t){if(null!=t){var e=this.getData().getName(t),t=this.coordinateSystem,e=t.getRegion(e);return e&&t.dataToPoint(e.getCenter())}},t}function kT(){var t=null!==IT&&IT.apply(this,arguments)||this;return t.type=kT.type,t}function LT(t){var n={};t.eachSeriesByType("map",function(t){var e=t.getHostGeoModel(),e=e?"o"+e.id:"i"+t.getMapType();(n[e]=n[e]||[]).push(t)}),Z(n,function(t,e){for(var l,u,h,n=(l=j(t,function(t){return t.getData()}),u=t[0].get("mapValueCalculation"),h={},Z(l,function(n){n.each(n.mapDimension("value"),function(t,e){e="ec-"+n.getName(e);h[e]=h[e]||[],isNaN(t)||h[e].push(t)})}),l[0].map(l[0].mapDimension("value"),function(t,e){for(var n="ec-"+l[0].getName(e),i=0,o=1/0,r=-1/0,a=h[n].length,s=0;s<a;s++)o=Math.min(o,h[n][s]),r=Math.max(r,h[n][s]),i+=h[n][s];return 0===a?NaN:"min"===u?o:"max"===u?r:"average"===u?i/a:i})),i=0;i<t.length;i++)t[i].originalData=t[i].getData();for(i=0;i<t.length;i++)(t[i].seriesGroup=t)[i].needsDrawMap=0===i&&!t[i].getHostGeoModel(),t[i].setData(n.cloneShallow()),t[i].mainSeries=t[0]})}function PT(n){var o={};n.eachSeriesByType("map",function(t){var a,i,e=t.getMapType();t.getHostGeoModel()||o[e]||(a={},Z(t.seriesGroup,function(t){var o=t.coordinateSystem,r=t.originalData;t.get("showLegendSymbol")&&n.getComponent("legend")&&r.each(r.mapDimension("value"),function(t,e){var n=r.getName(e),i=o.getRegion(n);i&&!isNaN(t)&&(t=a[n]||0,i=o.dataToPoint(i.getCenter()),a[n]=t+1,r.setItemLayout(e,{point:i,offset:t}))})}),(i=t.getData()).each(function(t){var e=i.getName(t),n=i.getItemLayout(t)||{};n.showLabel=!a[e],i.setItemLayout(t,n)}),o[e]=!0)})}var OT,RT=ee;function NT(t){var e=OT.call(this)||this;return e.type="view",e.dimensions=["x","y"],e._roamTransformable=new Wi,e._rawTransformable=new Wi,e.name=t,e}function zT(t){t=t.seriesModel;return t?t.coordinateSystem:null}var ET,VT=(y(NT,OT=Wi),NT.prototype.setBoundingRect=function(t,e,n,i){return this._rect=new Qi(t,e,n,i),this._rect},NT.prototype.getBoundingRect=function(){return this._rect},NT.prototype.setViewRect=function(t,e,n,i){this._transformTo(t,e,n,i),this._viewRect=new Qi(t,e,n,i)},NT.prototype._transformTo=function(t,e,n,i){var o=this.getBoundingRect(),r=this._rawTransformable;r.transform=o.calculateTransform(new Qi(t,e,n,i));i=r.parent;r.parent=null,r.decomposeTransform(),r.parent=i,this._updateTransform()},NT.prototype.setCenter=function(t){t&&(this._center=t,this._updateCenterAndZoom())},NT.prototype.setZoom=function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},NT.prototype.getDefaultCenter=function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},NT.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},NT.prototype.getZoom=function(){return this._zoom||1},NT.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},NT.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom(),i=ee([],i,t),n=ee([],n,t);e.originX=i[0],e.originY=i[1],e.x=n[0]-i[0],e.y=n[1]-i[1],e.scaleX=e.scaleY=o,this._updateTransform()},NT.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;(e.parent=t).updateTransform(),e.updateTransform(),Ci(this.transform||(this.transform=[]),e.transform||Ii()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],Pi(this.invTransform,this.transform),this.decomposeTransform()},NT.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new Wi;return n.transform=e.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}}},NT.prototype.getViewRect=function(){return this._viewRect},NT.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},NT.prototype.dataToPoint=function(t,e,n){e=e?this._rawTransform:this.transform;return n=n||[],e?RT(n,t,e):Rt(n,t)},NT.prototype.pointToData=function(t){var e=this.invTransform;return e?RT([],t,e):[t[0],t[1]]},NT.prototype.convertToPixel=function(t,e,n){e=zT(e);return e===this?e.dataToPoint(n):null},NT.prototype.convertFromPixel=function(t,e,n){e=zT(e);return e===this?e.pointToData(n):null},NT.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},NT.dimensions=["x","y"],NT),BT={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},GT=["lng","lat"],k=(y(FT,ET=VT),FT.prototype._transformTo=function(t,e,n,i){var o=this.getBoundingRect(),r=this._invertLongitute,o=o.clone();r&&(o.y=-o.y-o.height);var a=this._rawTransformable;a.transform=o.calculateTransform(new Qi(t,e,n,i));i=a.parent;a.parent=null,a.decomposeTransform(),a.parent=i,r&&(a.scaleY=-a.scaleY),this._updateTransform()},FT.prototype.getRegion=function(t){return this._regionsMap.get(t)},FT.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var i=e[n];if("geoJSON"===i.type&&i.contain(t))return e[n]}},FT.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},FT.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},FT.prototype.dataToPoint=function(t,e,n){if(t="string"==typeof t?this.getGeoCoord(t):t)return VT.prototype.dataToPoint.call(this,t,e,n)},FT.prototype.convertToPixel=function(t,e,n){e=HT(e);return e===this?e.dataToPoint(n):null},FT.prototype.convertFromPixel=function(t,e,n){e=HT(e);return e===this?e.pointToData(n):null},FT);function FT(t,e,n){var i=ET.call(this,t)||this;i.dimensions=GT,i.type="geo",i._nameCoordMap=Tt(),i.map=e;t=dv.load(e,n.nameMap,n.nameProperty),e=dv.getGeoResource(e);i.resourceType=e?e.type:null;e=BT[e.type];i._regionsMap=t.regionsMap,i._invertLongitute=e.invertLongitute,i.regions=t.regions,i.aspectScale=gt(n.aspectScale,e.aspectScale);t=t.boundingRect;return i.setBoundingRect(t.x,t.y,t.width,t.height),i}function HT(t){var e=t.geoModel,t=t.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",Ar).models[0]||{}).coordinateSystem:null}X(k,VT);var WT=k;function UT(t,e){var n=t.get("boundingCoords");null!=n&&(u=n[0],l=n[1],isNaN(u[0])||isNaN(u[1])||isNaN(l[0])||isNaN(l[1])||this.setBoundingRect(u[0],u[1],l[0]-u[0],l[1]-u[1]));var i,o,r,a=this.getBoundingRect(),s=t.get("layoutCenter"),n=t.get("layoutSize"),l=e.getWidth(),u=e.getHeight(),e=a.width/a.height*this.aspectScale,a=!1;s&&n&&(r=[Uo(s[0],l),Uo(s[1],u)],i=Uo(n,Math.min(l,u)),isNaN(r[0])||isNaN(r[1])||isNaN(i)||(a=!0)),a?(o={},1<e?(o.width=i,o.height=i/e):(o.height=i,o.width=i*e),o.y=r[1]-o.height/2,o.x=r[0]-o.width/2):((r=t.getBoxLayoutParams()).aspect=e,o=oc(r,{width:l,height:u})),this.setViewRect(o.x,o.y,o.width,o.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}var XT,YT=new(qT.prototype.create=function(t,o){var r=[];t.eachComponent("geo",function(t,e){var n=t.get("map"),n=new WT(n+e,n,{nameMap:t.get("nameMap"),nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale")});n.zoomLimit=t.get("scaleLimit"),r.push(n),(t.coordinateSystem=n).model=t,n.resize=UT,n.resize(t,o)}),t.eachSeries(function(t){var e;"geo"===t.get("coordinateSystem")&&(e=t.get("geoIndex")||0,t.coordinateSystem=r[e])});var n={};return t.eachSeriesByType("map",function(t){var e;t.getHostGeoModel()||(e=t.getMapType(),n[e]=n[e]||[],n[e].push(t))}),Z(n,function(t,e){var n=j(t,function(t){return t.get("nameMap")}),i=new WT(e,e,{nameMap:B(n),nameProperty:t[0].get("nameProperty"),aspectScale:t[0].get("aspectScale")});i.zoomLimit=ft.apply(null,j(t,function(t){return t.get("scaleLimit")})),r.push(i),i.resize=UT,i.resize(t[0],o),Z(t,function(t){var n;t.coordinateSystem=i,n=i,Z(t.get("geoCoord"),function(t,e){n.addGeoCoord(e,t)})})}),r},qT.prototype.getFilledRegions=function(t,e,n,i){for(var o=(t||[]).slice(),r=Tt(),a=0;a<o.length;a++)r.set(o[a].name,o[a]);return Z(dv.load(e,n,i).regions,function(t){t=t.name;r.get(t)||o.push({name:t})}),o},qT),ZT=(y(jT,XT=xc),jT.prototype.init=function(t,e,n){var i=dv.getGeoResource(t.map);i&&"geoJSON"===i.type&&("color"in(i=t.itemStyle=t.itemStyle||{})||(i.color="#eee")),this.mergeDefaultAndTheme(t,n),fr(t,"label",["show"])},jT.prototype.optionUpdated=function(){var i=this,t=this.option;t.regions=YT.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var o={};this._optionModelMap=q(t.regions||[],function(t,e){var n=e.name;return n&&(t.set(n,new th(e,i,i.ecModel)),e.selected&&(o[n]=!0)),t},Tt()),t.selectedMap||(t.selectedMap=o)},jT.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new th(null,this,this.ecModel)},jT.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),i="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),n={name:t};return"function"==typeof i?(n.status=e,i(n)):"string"==typeof i?i.replace("{a}",null!=t?t:""):void 0},jT.prototype.setZoom=function(t){this.option.zoom=t},jT.prototype.setCenter=function(t){this.option.center=t},jT.prototype.select=function(t){var e=this.option,n=e.selectedMode;n&&("multiple"!==n&&(e.selectedMap=null),(e.selectedMap||(e.selectedMap={}))[t]=!0)},jT.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},jT.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},jT.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},jT.type="geo",jT.layoutMode="box",jT.defaultOption={zlevel:0,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:[]},jT);function jT(){var t=null!==XT&&XT.apply(this,arguments)||this;return t.type=jT.type,t}function qT(){this.dimensions=GT}function KT(t,e,n){var i,o=t.getZoom(),r=t.getCenter(),a=e.zoom,r=t.dataToPoint(r);return null!=e.dx&&null!=e.dy&&(r[0]-=e.dx,r[1]-=e.dy,t.setCenter(t.pointToData(r))),null!=a&&(n&&(i=n.min||0,n=n.max||1/0,a=Math.max(Math.min(o*a,n),i)/o),t.scaleX*=a,t.scaleY*=a,i=(e.originX-t.x)*(a-1),e=(e.originY-t.y)*(a-1),t.x-=i,t.y-=e,t.updateTransform(),t.setCenter(t.pointToData(r)),t.setZoom(a*o)),{center:t.getCenter(),zoom:t.getZoom()}}var $T,JT=(y(QT,$T=If),QT.prototype.init=function(t,e){this._api=e},QT.prototype.render=function(t,e,n,i){if(!(this._model=t).get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new TT(n));var o=this._mapDraw;o.draw(t,e,n,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,e,n)},QT.prototype._handleRegionClick=function(t){var e;wg(t.target,function(t){return null!=(e=_l(t).eventData)},!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},QT.prototype.updateSelectStatus=function(t,e,n){var i=this;this._mapDraw.group.traverse(function(t){var e=_l(t).eventData;if(e)return i._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0})},QT.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},QT.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},QT.type="geo",QT);function QT(){var t=null!==$T&&$T.apply(this,arguments)||this;return t.type=QT.type,t.focusBlurEnabled=!0,t}function tC(e){function t(r,t){t.update="geo:updateSelectStatus",e.registerAction(t,function(t,e){var i={},o=[];return e.eachComponent({mainType:"geo",query:t},function(e){e[r](t.name),Z(e.coordinateSystem.regions,function(t){i[t.name]=e.isSelected(t.name)||!1});var n=[];Z(i,function(t,e){i[e]&&n.push(e)}),o.push({geoIndex:e.componentIndex,name:n})}),{selected:i,allSelected:o,name:t.name}})}e.registerCoordinateSystem("geo",YT),e.registerComponentModel(ZT),e.registerComponentView(JT),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(i,t){var o=i.componentType||"series";t.eachComponent({mainType:o,query:i},function(t){var e,n=t.coordinateSystem;"geo"===n.type&&(e=KT(n,i,t.get("scaleLimit")),t.setCenter&&t.setCenter(e.center),t.setZoom&&t.setZoom(e.zoom),"series"===o&&Z(t.seriesGroup,function(t){t.setCenter(e.center),t.setZoom(e.zoom)}))})})}function eC(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,o=t.hierNode.i?i[t.hierNode.i-1]:null;n.length?(function(t){var e=t.children,n=e.length,i=0,o=0;for(;0<=--n;){var r=e[n];r.hierNode.prelim+=i,r.hierNode.modifier+=i,o+=r.hierNode.change,i+=r.hierNode.shift+o}}(t),n=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2,o?(t.hierNode.prelim=o.hierNode.prelim+e(t,o),t.hierNode.modifier=t.hierNode.prelim-n):t.hierNode.prelim=n):o&&(t.hierNode.prelim=o.hierNode.prelim+e(t,o)),t.parentNode.hierNode.defaultAncestor=function(t,e,n,i){if(e){for(var o=t,r=t,a=r.parentNode.children[0],s=e,l=o.hierNode.modifier,u=r.hierNode.modifier,h=a.hierNode.modifier,c=s.hierNode.modifier;s=rC(s),r=aC(r),s&&r;){o=rC(o),a=aC(a),o.hierNode.ancestor=t;var p=s.hierNode.prelim+c-r.hierNode.prelim-u+i(s,r);0<p&&(function(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}(function(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}(s,t,n),t,p),u+=p,l+=p),c+=s.hierNode.modifier,u+=r.hierNode.modifier,l+=o.hierNode.modifier,h+=a.hierNode.modifier}s&&!rC(o)&&(o.hierNode.thread=s,o.hierNode.modifier+=c-l),r&&!aC(a)&&(a.hierNode.thread=r,a.hierNode.modifier+=u-h,n=t)}return n}(t,o,t.parentNode.hierNode.defaultAncestor||i[0],e)}function nC(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function iC(t){return arguments.length?t:sC}function oC(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function rC(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function aC(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function sC(t,e){return t.parentNode===e.parentNode?1:2}var lC,uC,hC=function(){this.parentPoint=[],this.childPoints=[]},cC=(y(dC,uC=Bs),dC.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},dC.prototype.getDefaultShape=function(){return new hC},dC.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,o=e.parentPoint,r=n[0],a=n[i-1];if(1===i)return t.moveTo(o[0],o[1]),void t.lineTo(r[0],r[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,s=1-l,e=Uo(e.forkPosition,1),u=[];u[l]=o[l],u[s]=o[s]+(a[s]-o[s])*e,t.moveTo(o[0],o[1]),t.lineTo(u[0],u[1]),t.moveTo(r[0],r[1]),u[l]=r[l],t.lineTo(u[0],u[1]),u[l]=a[l],t.lineTo(u[0],u[1]),t.lineTo(a[0],a[1]);for(var h=1;h<i-1;h++){var c=n[h];t.moveTo(c[0],c[1]),u[l]=c[l],t.lineTo(u[0],u[1])}},dC);function pC(){var t=null!==lC&&lC.apply(this,arguments)||this;return t.type=pC.type,t._mainGroup=new Ao,t}function dC(t){return uC.call(this,t)||this}function fC(t,e){e=t.getItemLayout(e);return e&&!isNaN(e.x)&&!isNaN(e.y)}function gC(n,t,i,e,o){var r=!i,a=n.tree.getNodeByDataIndex(t),s=a.getModel(),l=a.getVisual("style").fill,u=!1===a.isExpand&&0!==a.children.length?l:"#fff",h=n.tree.root,c=a.parentNode!==h&&a.parentNode||a,p=n.getItemGraphicEl(c.dataIndex),d=c.getLayout(),f=p?{x:p.__oldX,y:p.__oldY,rawX:p.__radialOldRawX,rawY:p.__radialOldRawY}:d,g=a.getLayout();r?((i=new pS(n,t,null,{symbolInnerColor:u,useNameLabel:!0})).x=f.x,i.y=f.y):i.updateData(n,t,null,{symbolInnerColor:u,useNameLabel:!0}),i.__radialOldRawX=i.__radialRawX,i.__radialOldRawY=i.__radialRawY,i.__radialRawX=g.rawX,i.__radialRawY=g.rawY,e.add(i),n.setItemGraphicEl(t,i),i.__oldX=i.x,i.__oldY=i.y,wu(i,{x:g.x,y:g.y},o);var y,m,l=i.getSymbolPath();"radial"===o.get("layout")&&(p=(c=h.children[0]).getLayout(),r=c.children.length,t=u=void 0,g.x===p.x&&!0===a.isExpand?(m=(c.children[0].getLayout().x+c.children[r-1].getLayout().x)/2,y=(c.children[0].getLayout().y+c.children[r-1].getLayout().y)/2,(u=Math.atan2(y-p.y,m-p.x))<0&&(u=2*Math.PI+u),(t=m<p.x)&&(u-=Math.PI)):((u=Math.atan2(g.y-p.y,g.x-p.x))<0&&(u=2*Math.PI+u),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(t=g.x<p.x)&&(u-=Math.PI):(t=g.x>p.x)||(u-=Math.PI)),r=t?"left":"right",p=(m=(y=s.getModel("label")).get("rotate"))*(Math.PI/180),(t=l.getTextContent())&&(l.setTextConfig({position:y.get("position")||r,rotation:null==m?-u:p,origin:"center"}),t.setStyle("verticalAlign","middle")));s=s.get(["emphasis","focus"]),s="ancestor"===s?a.getAncestorsIndices():"descendant"===s?a.getDescendantIndices():null;s&&(_l(i).focus=s),function(t,e,n,i,o,r,a,s){var l=e.getModel(),u=t.get("edgeShape"),h=t.get("layout"),c=t.getOrient(),p=t.get(["lineStyle","curveness"]),d=t.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&wu(g=g||(i.__edge=new Zy({shape:xC(h,c,p,o,o)})),{shape:xC(h,c,p,r,a)},t);else if("polyline"===u&&"orthogonal"===h&&e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var y=e.children,m=[],v=0;v<y.length;v++){var x=y[v].getLayout();m.push([x.x,x.y])}wu(g=g||(i.__edge=new cC({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:c,forkPosition:d}})),{shape:{parentPoint:[a.x,a.y],childPoints:m}},t)}g&&(g.useStyle(F({strokeNoScale:!0,fill:null},f)),fu(g,l,"lineStyle"),ql(g),s.add(g))}(o,a,h,i,f,d,g,e),i.__edge&&(i.onHoverStateChange=function(t){var e;"blur"!==t&&((e=a.parentNode&&n.getItemGraphicEl(a.parentNode.dataIndex))&&e.hoverState===Il||Yl(i.__edge,t))})}function yC(t,e,n,i,o){var r,a=mC(e.tree.root,t),s=a.source,l=a.sourceLayout,a=e.getItemGraphicEl(t.dataIndex);a&&(t=e.getItemGraphicEl(s.dataIndex).__edge,r=a.__edge||(!1===s.isExpand||1===s.children.length?t:void 0),e=i.get("edgeShape"),a=i.get("layout"),s=i.get("orient"),t=i.get(["lineStyle","curveness"]),r&&("curve"===e?Iu(r,{shape:xC(a,s,t,l,l),style:{opacity:0}},i,{cb:function(){n.remove(r)},removeOpt:o}):"polyline"===e&&"orthogonal"===i.get("layout")&&Iu(r,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},i,{cb:function(){n.remove(r)},removeOpt:o})))}function mC(t,e){for(var n,i=e.parentNode!==t&&e.parentNode||e;null==(n=i.getLayout());)i=i.parentNode!==t&&i.parentNode||i;return{source:i,sourceLayout:n}}function vC(e,t,n,i,o){var r=e.tree.getNodeByDataIndex(t),a=mC(e.tree.root,r).sourceLayout,s={duration:o.get("animationDurationUpdate"),easing:o.get("animationEasingUpdate")};Iu(n,{x:a.x+1,y:a.y+1},o,{cb:function(){i.remove(n),e.setItemGraphicEl(t,null)},removeOpt:s}),n.fadeOut(null,{fadeLabel:!0,animation:s}),r.children.forEach(function(t){yC(t,e,i,o,s)}),yC(r,e,i,o,s)}function xC(t,e,n,i,o){var r,a,s,l;if("radial"!==t)return u=i.x,h=i.y,c=o.x,p=o.y,"LR"!==e&&"RL"!==e||(r=u+(c-u)*n,a=h,s=c+(u-c)*n,l=p),"TB"!==e&&"BT"!==e||(r=u,a=h+(p-h)*n,s=c,l=p+(h-p)*n),{x1:u,y1:h,x2:c,y2:p,cpx1:r,cpy1:a,cpx2:s,cpy2:l};var u=i.rawX,h=i.rawY,c=o.rawX,p=o.rawY,o=oC(u,h),u=oC(u,h+(p-h)*n),n=oC(c,p+(h-p)*n),p=oC(c,p);return{x1:o.x||0,y1:o.y||0,x2:p.x||0,y2:p.y||0,cpx1:u.x||0,cpy1:u.y||0,cpx2:n.x||0,cpy2:n.y||0}}var _C=(y(pC,lC=Nf),pC.prototype.init=function(t,e){this._controller=new lT(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},pC.prototype.render=function(i,t,n){var o=i.getData(),e=i.layoutInfo,r=this._mainGroup;"radial"===i.get("layout")?(r.x=e.x+e.width/2,r.y=e.y+e.height/2):(r.x=e.x,r.y=e.y),this._updateViewCoordSys(i),this._updateController(i,t,n);var a=this._data;o.diff(a).add(function(t){fC(o,t)&&gC(o,t,null,r,i)}).update(function(t,e){var n=a.getItemGraphicEl(e);fC(o,t)?gC(o,t,n,r,i):n&&vC(a,e,n,r,i)}).remove(function(t){var e=a.getItemGraphicEl(t);e&&vC(a,t,e,r,i)}).execute(),this._nodeScaleRatio=i.get("nodeScaleRatio"),this._updateNodeAndLinkScale(i),!0===i.get("expandAndCollapse")&&o.eachItemGraphicEl(function(t,e){t.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:i.id,dataIndex:e})})}),this._data=o},pC.prototype._updateViewCoordSys=function(t){var e=t.getData(),n=[];e.each(function(t){t=e.getItemLayout(t);!t||isNaN(t.x)||isNaN(t.y)||n.push([+t.x,+t.y])});var i=[],o=[];qa(n,i,o);var r=this._min,a=this._max;o[0]-i[0]==0&&(i[0]=r?r[0]:i[0]-1,o[0]=a?a[0]:o[0]+1),o[1]-i[1]==0&&(i[1]=r?r[1]:i[1]-1,o[1]=a?a[1]:o[1]+1);a=t.coordinateSystem=new VT;a.zoomLimit=t.get("scaleLimit"),a.setBoundingRect(i[0],i[1],o[0]-i[0],o[1]-i[1]),a.setCenter(t.get("center")),a.setZoom(t.get("zoom")),this.group.attr({x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY}),this._min=i,this._max=o},pC.prototype._updateController=function(o,t,r){var e=this,n=this._controller,i=this._controllerHost,a=this.group;n.setPointerChecker(function(t,e,n){var i=a.getBoundingRect();return i.applyTransform(a.transform),i.contain(e,n)&&!pT(t,r,o)}),n.enable(o.get("roam")),i.zoomLimit=o.get("scaleLimit"),i.zoom=o.coordinateSystem.getZoom(),n.off("pan").off("zoom").on("pan",function(t){uT(i,t.dx,t.dy),r.dispatchAction({seriesId:o.id,type:"treeRoam",dx:t.dx,dy:t.dy})}).on("zoom",function(t){hT(i,t.scale,t.originX,t.originY),r.dispatchAction({seriesId:o.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),e._updateNodeAndLinkScale(o),r.updateLabelLayout()})},pC.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl(function(t,e){t.setSymbolScale(n)})},pC.prototype._getNodeGlobalScale=function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,t=e.scaleX||1;return((e.getZoom()-1)*n+1)/t},pC.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},pC.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},pC.type="tree",pC),bC=Ir();function wC(t,e){var n;return bC(n=this).mainData===n?CC((n=G({},bC(this).datas))[this.dataType]=e,n,t):DC(e,this.dataType,bC(this).mainData,t),e}function SC(t,e){return t.struct&&t.struct.update(),e}function MC(n,i){return Z(bC(i).datas,function(t,e){t!==i&&DC(t.cloneShallow(),e,i,n)}),i}function IC(t){var e=bC(this).mainData;return null==t||null==e?e:bC(e).datas[t]}function TC(){var e=bC(this).mainData;return null==e?[{data:e}]:j(J(bC(e).datas),function(t){return{type:t,data:bC(e).datas[t]}})}function CC(n,t,i){bC(n).datas={},Z(t,function(t,e){DC(t,e,n,i)})}function DC(t,e,n,i){bC(n).datas[e]=t,bC(t).mainData=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=IC,t.getLinkedDataAll=TC}var AC=function(n){var i=n.mainData,t=n.datas;t||(t={main:i},n.datasAttr={main:"data"}),n.datas=n.mainData=null,CC(i,t,n),Z(t,function(e){Z(i.TRANSFERABLE_METHODS,function(t){e.wrapMethod(t,tt(wC,n))})}),i.wrapMethod("cloneShallow",tt(MC,n)),Z(i.CHANGABLE_METHODS,function(t){i.wrapMethod(t,tt(SC,n))}),xt(t[i.dataType]===i)},kC=(PC.prototype.isRemoved=function(){return this.dataIndex<0},PC.prototype.eachNode=function(t,e,n){"function"==typeof t&&(n=e,e=t,t=null);var i,o=(t=it(t=t||{})?{order:t}:t).order||"preorder",r=this[t.attr||"children"];"preorder"===o&&(i=e.call(n,this));for(var a=0;!i&&a<r.length;a++)r[a].eachNode(t,e,n);"postorder"===o&&e.call(n,this)},PC.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},PC.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e<i;e++){var o=n[e].getNodeById(t);if(o)return o}},PC.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;e<i;e++){var o=n[e].contains(t);if(o)return o}},PC.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},PC.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},PC.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},PC.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},PC.prototype.setLayout=function(t,e){0<=this.dataIndex&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},PC.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},PC.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},PC.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},PC.prototype.setVisual=function(t,e){0<=this.dataIndex&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},PC.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},PC.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},PC.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},PC.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},PC.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},PC.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},PC);function LC(t){this.type="tree",this._nodes=[],this.hostModel=t}function PC(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}var OC=(LC.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},LC.prototype.getNodeByDataIndex=function(t){t=this.data.getRawIndex(t);return this._nodes[t]},LC.prototype.getNodeById=function(t){return this.root.getNodeById(t)},LC.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n<i;n++)e[n].dataIndex=-1;for(n=0,i=t.count();n<i;n++)e[t.getRawIndex(n)].dataIndex=n},LC.prototype.clearLayouts=function(){this.data.clearItemLayouts()},LC.createTree=function(t,e,n){var l=new LC(e),u=[],h=1;(function t(e,n){var i=e.value;h=Math.max(h,et(i)?i.length:1),u.push(e);var o,r=new kC(_r(e.name,""),l);n?(o=r,n=(i=n).children,o.parentNode!==i&&(n.push(o),o.parentNode=i)):l.root=r,l._nodes.push(r);var a=e.children;if(a)for(var s=0;s<a.length;s++)t(a[s],r)})(t),l.root.updateDepthAndHeight(0);t=Cx(u,{coordDimensions:["value"],dimensionsCount:h}).dimensions,e=new Mx(t,e);return e.initData(u),n&&n(e),AC({mainData:e,struct:l,structAttr:"tree"}),l.update(),l},LC);function RC(t,e,n){if(t&&0<=W(e,t.type)){e=n.getData().tree.root,n=t.targetNode;if((n="string"==typeof n?e.getNodeById(n):n)&&e.contains(n))return{node:n};t=t.targetNodeId;return null!=t&&(n=e.getNodeById(t))?{node:n}:void 0}}function NC(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function zC(t,e){return 0<=W(NC(t),e)}function EC(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}var VC,BC=(y(GC,VC=Sf),GC.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new th(n,this,this.ecModel),o=OC.createTree(e,this,function(t){t.wrapMethod("getItemModel",function(t,e){e=o.getNodeByDataIndex(e);return e&&e.children.length&&e.isExpand||(t.parentModel=i),t})});var r=0;o.eachNode("preorder",function(t){t.depth>r&&(r=t.depth)});var a=t.expandAndCollapse&&0<=t.initialTreeDepth?t.initialTreeDepth:r;return o.root.eachNode("preorder",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a}),o.data},GC.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},GC.prototype.setZoom=function(t){this.option.zoom=t},GC.prototype.setCenter=function(t){this.option.center=t},GC.prototype.formatTooltip=function(t,e,n){for(var i=this.getData().tree,o=i.root.children[0],r=i.getNodeByDataIndex(t),t=r.getValue(),a=r.name;r&&r!==o;)a=r.parentNode.name+"."+a,r=r.parentNode;return Jd("nameValue",{name:a,value:t,noValue:isNaN(t)||null==t})},GC.prototype.getDataParams=function(t){var e=VC.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(t);return e.treeAncestors=EC(t,this),e},GC.type="series.tree",GC.layoutMode="box",GC.defaultOption={zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},GC);function GC(){var t=null!==VC&&VC.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}function FC(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var o=n.children;if(o.length)for(var r=o.length-1;0<=r;r--)i.push(o[r])}}function HC(t,e){t.eachSeriesByType("tree",function(t){!function(t,e){var n=function(t,e){return oc(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=n;var i=t.get("layout"),o=0,r=0,a=null;a="radial"===i?(o=2*Math.PI,r=Math.min(n.height,n.width)/2,iC(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(o=n.width,r=n.height,iC());e=t.getData().tree.root,n=e.children[0];{var s,l,u,h,c,p,d,f,g;n&&(function(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e,n,i=[t];e=i.pop();)if(n=e.children,e.isExpand&&n.length)for(var o=n.length-1;0<=o;o--){var r=n[o];r.hierNode={defaultAncestor:null,ancestor:r,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},i.push(r)}}(e),function(t,e,n){for(var i,o=[t],r=[];i=o.pop();)if(r.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s<a.length;s++)o.push(a[s])}for(;i=r.pop();)e(i,n)}(n,eC,a),e.hierNode.modifier=-n.hierNode.prelim,FC(n,nC),FC(u=l=s=n,function(t){var e=t.getLayout().x;e<s.getLayout().x&&(s=t),e>l.getLayout().x&&(l=t),t.depth>u.depth&&(u=t)}),a=s===l?1:a(s,l)/2,h=a-s.getLayout().x,f=d=p=c=0,"radial"===i?(c=o/(l.getLayout().x+a+h),p=r/(u.depth-1||1),FC(n,function(t){d=(t.getLayout().x+h)*c,f=(t.depth-1)*p;var e=oC(d,f);t.setLayout({x:e.x,y:e.y,rawX:d,rawY:f},!0)})):"RL"===(g=t.getOrient())||"LR"===g?(p=r/(l.getLayout().x+a+h),c=o/(u.depth-1||1),FC(n,function(t){f=(t.getLayout().x+h)*p,d="LR"===g?(t.depth-1)*c:o-(t.depth-1)*c,t.setLayout({x:d,y:f},!0)})):"TB"!==g&&"BT"!==g||(c=o/(l.getLayout().x+a+h),p=r/(u.depth-1||1),FC(n,function(t){d=(t.getLayout().x+h)*c,f="TB"===g?(t.depth-1)*p:r-(t.depth-1)*p,t.setLayout({x:d,y:f},!0)})))}}(t,e)})}function WC(t){t.eachSeriesByType("tree",function(t){var n=t.getData();n.tree.eachNode(function(t){var e=t.getModel().getModel("itemStyle").getItemStyle();G(n.ensureUniqueItemVisual(t.dataIndex,"style"),e)})})}var UC,XC=function(){},YC=["treemapZoomToNode","treemapRender","treemapMove"];function ZC(t){for(var e=0;e<YC.length;e++)t.registerAction({type:YC[e],update:"updateView"},XC);t.registerAction({type:"treemapRootToNode",update:"updateView"},function(o,t){t.eachComponent({mainType:"series",subType:"treemap",query:o},function(t,e){var n,i=RC(o,["treemapZoomToNode","treemapRootToNode"],t);i&&((n=t.getViewRoot())&&(o.direction=zC(n,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node))})})}function jC(i){var t=i.getData().tree,o={};t.eachNode(function(t){for(var e=t;e&&1<e.depth;)e=e.parentNode;var n=Xc(i.ecModel,e.name||e.dataIndex+"",o);t.setVisual("decal",n)})}function qC(){var t=null!==UC&&UC.apply(this,arguments)||this;return t.type=qC.type,t.preventUsingHoverLayer=!0,t}var KC=(y(qC,UC=Sf),qC.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};!function e(t){var n=0;Z(t.children,function(t){e(t);t=t.value;et(t)&&(t=t[0]),n+=t});var i=t.value;et(i)&&(i=i[0]),null!=i&&!isNaN(i)||(i=n),i<0&&(i=0),et(t.value)?t.value[0]=i:t.value=i}(n);var i=t.levels||[],o=this.designatedVisualItemStyle={},r=new th({itemStyle:o},this,e),a=j((i=t.levels=function(t,e){var i,o,n=dr(e.get("color")),r=dr(e.get(["aria","decal","decals"]));if(n){Z(t=t||[],function(t){var e=new th(t),n=e.get("color"),t=e.get("decal");(e.get(["itemStyle","color"])||n&&"none"!==n)&&(i=!0),(e.get(["itemStyle","decal"])||t&&"none"!==t)&&(o=!0)});e=t[0]||(t[0]={});return i||(e.color=n.slice()),!o&&r&&(e.decal=r.slice()),t}}(i,e))||[],function(t){return new th(t,r,e)},this),s=OC.createTree(n,this,function(t){t.wrapMethod("getItemModel",function(t,e){e=s.getNodeByDataIndex(e),e=e?a[e.depth]:null;return t.parentModel=e||r,t})});return s.data},qC.prototype.optionUpdated=function(){this.resetViewRoot()},qC.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=this.getRawValue(t);return Jd("nameValue",{name:i.getName(t),value:o})},qC.prototype.getDataParams=function(t){var e=UC.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(t);return e.treeAncestors=EC(t,this),e.treePathInfo=e.treeAncestors,e},qC.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},G(this.layoutInfo,t)},qC.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=Tt(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},qC.prototype.getViewRoot=function(){return this._viewRoot},qC.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},qC.prototype.enableAriaDecal=function(){jC(this)},qC.type="series.treemap",qC.layoutMode="box",qC.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},qC);function $C(t){this.group=new Ao,t.add(this.group)}var JC=($C.prototype.render=function(t,e,n,i){var o,r,a=t.getModel("breadcrumb"),s=this.group;s.removeAll(),a.get("show")&&n&&(r=(o=a.getModel("itemStyle")).getModel("textStyle"),a={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]},this._prepare(n,a,r),this._renderContent(t,a,o,r,i),rc(s,a.pos,a.box))},$C.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var o=_r(i.getModel().get("name"),""),r=n.getTextRect(o),r=Math.max(r.width+16,e.emptyItemWidth);e.totalWidth+=r+8,e.renderList.push({node:i,text:o,width:r})}},$C.prototype._renderContent=function(t,e,n,i,o){for(var r,a,s,l,u,h,c,p,d,f,g,y,m,v=0,x=e.emptyItemWidth,_=t.get(["breadcrumb","height"]),b=(h=e.pos,c=e.box,d=c.width,f=c.height,g=Uo(h.left,d),y=Uo(h.top,f),m=Uo(h.right,d),c=Uo(h.bottom,f),(isNaN(g)||isNaN(parseFloat(h.left)))&&(g=0),(isNaN(m)||isNaN(parseFloat(h.right)))&&(m=d),(isNaN(y)||isNaN(parseFloat(h.top)))&&(y=0),(isNaN(c)||isNaN(parseFloat(h.bottom)))&&(c=f),p=Gh(p||0),{width:Math.max(m-g-p[1]-p[3],0),height:Math.max(c-y-p[0]-p[2],0)}),w=e.totalWidth,S=e.renderList,M=S.length-1;0<=M;M--){var I=S[M],T=I.node,C=I.width,D=I.text;b.width<w&&(w-=C-x,C=x,D=null);I=new Ry({shape:{points:(r=v,a=0,s=C,l=_,u=M===S.length-1,I=void 0,I=[[u?r:r-5,a],[r+s,a],[r+s,a+l],[u?r:r-5,a+l]],0===M||I.splice(2,0,[r+s+5,a+l/2]),u||I.push([r,a+l/2]),I)},style:F(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new xl({style:{text:D,fill:i.getTextColor(),font:i.getFont()}}),textConfig:{position:"inside"},z2:1e5,onclick:tt(o,T)});I.disableLabelAnimation=!0,this.group.add(I),D=t,T=T,_l(I).eventData={componentType:"series",componentSubType:"treemap",componentIndex:D.componentIndex,seriesIndex:D.seriesIndex,seriesName:D.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:T&&T.dataIndex,name:T&&T.name},treePathInfo:T&&EC(T,D)},v+=C+8}},$C.prototype.remove=function(){this.group.removeAll()},$C),QC=(tD.prototype.add=function(t,e,n,i,o){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:o}),!0)},tD.prototype.finished=function(t){return this._finishedCallback=t,this},tD.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,o=this._storage.length;i<o;i++){var r=this._storage[i];r.el.animateTo(r.target,{duration:r.duration,delay:r.delay,easing:r.easing,setToFinal:!0,done:n,aborted:n})}return this},tD);function tD(){this._storage=[],this._elExistsMap={}}var eD,nD=Ao,iD=rl,oD="label",rD="upperLabel",aD=100,sD=20,lD=30,uD=Xr([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),hD=function(t){t=uD(t);return t.stroke=t.fill=t.lineWidth=null,t},cD=Ir();function pD(){var t=null!==eD&&eD.apply(this,arguments)||this;return t.type=pD.type,t._state="ready",t._storage=dD(),t}function dD(){return{nodeGroup:[],background:[],content:[]}}var fD=(y(pD,eD=Nf),pD.prototype.render=function(t,e,n,i){var o,r,a,s,l;W(e.findComponents({mainType:"series",subType:"treemap",query:i}),t)<0||(this.seriesModel=t,this.api=n,this.ecModel=e,o=RC(i,["treemapZoomToNode","treemapRootToNode"],t),r=i&&i.type,l=t.layoutInfo,a=!this._oldTree,s=this._storage,e="treemapRootToNode"===r&&o&&s?{rootNodeGroup:s.nodeGroup[o.node.getRawIndex()],direction:i.direction}:null,s=this._giveContainerGroup(l),i=t.get("animation"),l=this._doRender(s,t,e),!i||a||r&&"treemapZoomToNode"!==r&&"treemapRootToNode"!==r?l.renderFinally():this._doAnimation(s,l,t,e),this._resetController(n),this._renderBreadcrumb(t,n,o))},pD.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new nD,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},pD.prototype._doRender=function(t,o,r){var e=o.getData().tree,n=this._oldTree,a=dD(),s=dD(),l=this._storage,u=[];function h(t,e,n,i){return function(u,a,s,l,h,e,c,t,n,i){if(c){var p=c.getLayout(),o=u.getData(),d=c.getModel();if(o.setItemGraphicEl(c.dataIndex,null),p&&p.isInView){var f=p.width,g=p.height,y=p.borderWidth,m=p.invisible,v=c.getRawIndex(),x=t&&t.getRawIndex(),r=c.viewChildren,_=p.upperHeight,b=r&&r.length,w=d.getModel("itemStyle"),S=d.getModel(["emphasis","itemStyle"]),M=d.getModel(["blur","itemStyle"]),I=d.getModel(["select","itemStyle"]),T=w.get("borderRadius")||0,C=L("nodeGroup",nD);if(C){if(n.add(C),C.x=p.x||0,C.y=p.y||0,C.markRedraw(),cD(C).nodeWidth=f,cD(C).nodeHeight=g,p.isAboveViewRoot)return C;t=L("background",iD,i,sD);t&&function(t,e,n){var i=_l(e);{var o,r,a,s,l;i.dataIndex=c.dataIndex,i.seriesIndex=u.seriesIndex,e.setShape({x:0,y:0,width:f,height:g,r:T}),m?D(e):(e.invisible=!1,o=c.getVisual("style"),r=o.stroke,(a=hD(w)).fill=r,(s=uD(S)).fill=S.get("borderColor"),(l=uD(M)).fill=M.get("borderColor"),(i=uD(I)).fill=I.get("borderColor"),n?(n=f-2*y,A(e,r,o.opacity,{x:y,y:0,width:n,height:_})):e.removeTextContent(),e.setStyle(a),e.ensureState("emphasis").style=s,e.ensureState("blur").style=l,e.ensureState("select").style=i,ql(e))}t.add(e)}(C,t,b&&p.upperLabelHeight);r=d.get(["emphasis","focus"]),n=d.get(["emphasis","blurScope"]),r="ancestor"===r?c.getAncestorsIndices():"descendant"===r?c.getDescendantIndices():r;return b?(yu(C)&&gu(C,!1),t&&(gu(t,!0),o.setItemGraphicEl(c.dataIndex,t),cu(t,r,n))):((i=L("content",iD,i,lD))&&function(t,e){var n=_l(e);n.dataIndex=c.dataIndex,n.seriesIndex=u.seriesIndex;var i=Math.max(f-2*y,0),o=Math.max(g-2*y,0);{var r,a,s;e.culling=!0,e.setShape({x:y,y:y,width:i,height:o,r:T}),m?D(e):(e.invisible=!1,r=c.getVisual("style"),a=r.fill,(s=hD(w)).fill=a,s.decal=r.decal,n=uD(S),i=uD(M),o=uD(I),A(e,a,r.opacity,null),e.setStyle(s),e.ensureState("emphasis").style=n,e.ensureState("blur").style=i,e.ensureState("select").style=o,ql(e))}t.add(e)}(C,i),t.disableMorphing=!0,t&&yu(t)&&gu(t,!1),gu(C,!0),o.setItemGraphicEl(c.dataIndex,C),cu(C,r,n)),C}}}function D(t){t.invisible||e.push(t)}function A(n,t,e,i){var o=d.getModel(i?rD:oD),r=_r(d.get("name"),null),o=o.getShallow("show");Pu(n,Ou(d,i?rD:oD),{defaultText:o?r:null,inheritColor:t,defaultOpacity:e,labelFetcher:u,labelDataIndex:c.dataIndex});var a,s,l=n.getTextContent();l&&(a=l.style,s=vt(a.padding||0),i&&(n.setTextConfig({layoutRect:i}),l.disableLabelLayout=!0),l.beforeUpdate=function(){var t=Math.max((i||n.shape).width-s[1]-s[3],0),e=Math.max((i||n.shape).height-s[0]-s[2],0);a.width===t&&a.height===e||l.setStyle({width:t,height:e})},a.truncateMinChar=2,a.lineOverflow="truncate",k(a,i,p),k((e=l.getState("emphasis"))?e.style:null,i,p))}function k(t,e,n){var i=t?t.text:null;!e&&n.isLeafRoot&&null!=i&&(n=u.get("drillDownIcon",!0),t.text=n?n+" "+i:i)}function L(t,e,n,i){var o=null!=x&&s[t][x],r=h[t];return o?(s[t][x]=null,function(t,e){t=t[v]={};e instanceof nD?(t.oldX=e.x,t.oldY=e.y):t.oldShape=G({},e.shape)}(r,o)):m||((o=new e)instanceof xa&&(o.z2=n*aD+i),function(t,e){var n=t[v]={},i=c.parentNode,o=e instanceof Ao;!i||l&&"drillDown"!==l.direction||(e=t=0,i=h.background[i.getRawIndex()],!l&&i&&i.oldShape&&(t=i.oldShape.width,e=i.oldShape.height),o?(n.oldX=0,n.oldY=e):n.oldShape={x:t,y:e,width:0,height:0});n.fadein=!o}(r,o)),a[t][v]=o}}(o,s,l,r,a,u,t,e,n,i)}!function i(o,r,a,s,l){function t(t){return t.getId()}function n(t,e){var n=null!=t?o[t]:null,t=null!=e?r[e]:null,e=h(n,t,a,l);e&&i(n&&n.viewChildren||[],t&&t.viewChildren||[],e,s,l+1)}s?(r=o,Z(o,function(t,e){t.isRemoved()||n(e,e)})):new K1(r,o,t,t).add(n).update(n).remove(tt(n,null)).execute()}(e.root?[e.root]:[],n&&n.root?[n.root]:[],t,e===n||!n,0);var i,c=(i=dD(),(n=l)&&Z(n,function(t,e){var n=i[e];Z(t,function(t){t&&(n.push(t),cD(t).willDelete=!0)})}),i);return this._oldTree=e,this._storage=s,{lastsForAnimation:a,willDeleteEls:c,renderFinally:function(){Z(c,function(t){Z(t,function(t){t.parent&&t.parent.remove(t)})}),Z(u,function(t){t.invisible=!0,t.dirty()})}}},pD.prototype._doAnimation=function(t,o,e,a){var n=e.get("animationDurationUpdate"),e=e.get("animationEasing"),s=(nt(n)?0:n)||0,l=(nt(e)?null:e)||"cubicOut",u=new QC;Z(o.willDeleteEls,function(t,r){Z(t,function(t,e){var n,i,o;t.invisible||(i=t.parent,n=cD(i),(o=a&&"drillDown"===a.direction?i===a.rootNodeGroup?{shape:{x:0,y:0,width:n.nodeWidth,height:n.nodeHeight},style:{opacity:0}}:{style:{opacity:0}}:(o=i=0,n.willDelete||(i=n.nodeWidth/2,o=n.nodeHeight/2),"nodeGroup"===r?{x:i,y:o,style:{opacity:0}}:{shape:{x:i,y:o,width:0,height:0},style:{opacity:0}}))&&u.add(t,o,s,0,l))})}),Z(this._storage,function(t,i){Z(t,function(t,e){var n=o.lastsForAnimation[i][e],e={};n&&(t instanceof Ao?null!=n.oldX&&(e.x=t.x,e.y=t.y,t.x=n.oldX,t.y=n.oldY):(n.oldShape&&(e.shape=G({},t.shape),t.setShape(n.oldShape)),n.fadein?(t.setStyle("opacity",0),e.style={opacity:1}):1!==t.style.opacity&&(e.style={opacity:1})),u.add(t,e,s,0,l))})},this),this._state="animating",u.finished(Q(function(){this._state="ready",o.renderFinally()},this)).start()},pD.prototype._resetController=function(t){var e=this._controller;e||((e=this._controller=new lT(t.getZr())).enable(this.seriesModel.get("roam")),e.on("pan",Q(this._onPan,this)),e.on("zoom",Q(this._onZoom,this)));var i=new Qi(0,0,t.getWidth(),t.getHeight());e.setPointerChecker(function(t,e,n){return i.contain(e,n)})},pD.prototype._clearController=function(){var t=this._controller;t&&t.dispose()},pD.prototype._onPan=function(t){var e;"animating"!==this._state&&(3<Math.abs(t.dx)||3<Math.abs(t.dy))&&(!(e=this.seriesModel.getData().tree.root)||(e=e.getLayout())&&this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:e.x+t.dx,y:e.y+t.dy,width:e.width,height:e.height}}))},pD.prototype._onZoom=function(t){var e,n,i,o=t.originX,r=t.originY;"animating"!==this._state&&(!(i=this.seriesModel.getData().tree.root)||(n=i.getLayout())&&(e=new Qi(n.x,n.y,n.width,n.height),Ai(i=Ii(),i,[-(o-=(n=this.seriesModel.layoutInfo).x),-(r-=n.y)]),Li(i,i,[t.scale,t.scale]),Ai(i,i,[o,r]),e.applyTransform(i),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:e.x,y:e.y,width:e.width,height:e.height}})))},pD.prototype._initEvents=function(t){var i=this;t.on("click",function(t){var e,n;"ready"===i._state&&(!(n=i.seriesModel.get("nodeClick",!0))||(e=i.findTarget(t.offsetX,t.offsetY))&&((t=e.node).getLayout().isLeafRoot?i._rootToNode(e):"zoomToNode"===n?i._zoomToNode(e):"link"===n&&(t=(n=t.hostTree.data.getItemModel(t.dataIndex)).get("link",!0),n=n.get("target",!0)||"blank",t&&Jh(t,n))))},this)},pD.prototype._renderBreadcrumb=function(e,t,n){var i=this;n||(n=(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2))||{node:e.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new JC(this.group))).render(e,t,n.node,function(t){"animating"!==i._state&&(zC(e.getViewRoot(),t)?i._rootToNode({node:t}):i._zoomToNode({node:t}))})},pD.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=dD(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},pD.prototype.dispose=function(){this._clearController()},pD.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},pD.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},pD.prototype.findTarget=function(i,o){var r;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(t){var e=this._storage.background[t.getRawIndex()];if(e){var n=e.transformCoordToLocal(i,o),e=e.shape;if(!(e.x<=n[0]&&n[0]<=e.x+e.width&&e.y<=n[1]&&n[1]<=e.y+e.height))return!1;r={node:t,offsetX:n[0],offsetY:n[1]}}},this),r},pD.type="treemap",pD),gD=Z,yD=at,mD=-1,vD=(xD.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},xD.prototype.getNormalizer=function(){return Q(this._normalizeData,this)},xD.listVisualTypes=function(){return J(xD.visualHandlers)},xD.isValidType=function(t){return xD.visualHandlers.hasOwnProperty(t)},xD.eachVisual=function(t,e,n){at(t)?Z(t,e,n):e.call(n,t)},xD.mapVisual=function(t,n,i){var o,r=et(t)?[]:at(t)?{}:(o=!0,null);return xD.eachVisual(t,function(t,e){t=n.call(i,t,e);o?r=t:r[e]=t}),r},xD.retrieveVisuals=function(n){var i,o={};return n&&gD(xD.visualHandlers,function(t,e){n.hasOwnProperty(e)&&(o[e]=n[e],i=!0)}),i?o:null},xD.prepareVisualTypes=function(t){if(et(t))t=t.slice();else{if(!yD(t))return[];var n=[];gD(t,function(t,e){n.push(e)}),t=n}return t.sort(function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1}),t},xD.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},xD.findPieceIndex=function(n,t,e){for(var i,o=1/0,r=0,a=t.length;r<a;r++){var s=t[r].value;if(null!=s){if(s===n||"string"==typeof s&&s===n+"")return r;e&&h(s,r)}}for(r=0,a=t.length;r<a;r++){var l=t[r],u=l.interval,l=l.close;if(u){if(u[0]===-1/0){if(kD(l[1],n,u[1]))return r}else if(u[1]===1/0){if(kD(l[0],u[0],n))return r}else if(kD(l[0],u[0],n)&&kD(l[1],n,u[1]))return r;e&&h(u[0],r),e&&h(u[1],r)}}if(e)return n===1/0?t.length-1:n===-1/0?0:i;function h(t,e){t=Math.abs(t-n);t<o&&(o=t,i=e)}},xD.visualHandlers={color:{applyVisual:SD("color"),getColorMapper:function(){var o=this.option;return Q("category"===o.mappingMethod?function(t,e){return e||(t=this._normalizeData(t)),MD.call(this,t)}:function(t,e,n){var i=!!n;return n=Dn(t=!e?this._normalizeData(t):t,o.parsedVisual,n),i?n:Rn(n,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Rn(Dn(t,this.option.parsedVisual),"rgba")},category:MD,piecewise:function(t,e){e=CD.call(this,e);return e=null==e?Rn(Dn(t,this.option.parsedVisual),"rgba"):e},fixed:ID}},colorHue:bD(function(t,e){return Pn(t,e)}),colorSaturation:bD(function(t,e){return Pn(t,null,e)}),colorLightness:bD(function(t,e){return Pn(t,null,null,e)}),colorAlpha:bD(On),decal:{applyVisual:SD("decal"),_normalizedToVisual:{linear:null,category:MD,piecewise:null,fixed:null}},opacity:{applyVisual:SD("opacity"),_normalizedToVisual:TD([0,1])},liftZ:{applyVisual:SD("liftZ"),_normalizedToVisual:{linear:ID,category:ID,piecewise:ID,fixed:ID}},symbol:{applyVisual:function(t,e,n){n("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:wD,category:MD,piecewise:function(t,e){e=CD.call(this,e);return e=null==e?wD.call(this,t):e},fixed:ID}},symbolSize:{applyVisual:SD("symbolSize"),_normalizedToVisual:TD([0,1])}},xD);function xD(t){var e=t.mappingMethod,n=t.type,t=this.option=E(t);this.type=n,this.mappingMethod=e,this._normalizeData=AD[e];var i,n=xD.visualHandlers[n];this.applyVisual=n.applyVisual,this.getColorMapper=n.getColorMapper,this._normalizedToVisual=n._normalizedToVisual[e],"piecewise"===e?(_D(t),n=(i=t).pieceList,i.hasSpecialVisual=!1,Z(n,function(t,e){t.originIndex=e,null!=t.visual&&(i.hasSpecialVisual=!0)})):"category"===e?t.categories?function(t){var e=t.categories,n=t.categoryMap={},i=t.visual;{var o;gD(e,function(t,e){n[t]=e}),et(i)||(o=[],at(i)?gD(i,function(t,e){e=n[e];o[null!=e?e:mD]=t}):o[mD]=i,i=DD(t,o))}for(var r=e.length-1;0<=r;r--)null==i[r]&&(delete n[e[r]],e.pop())}(t):_D(t,!0):(xt("linear"!==e||t.dataExtent),_D(t))}function _D(t,e){var n=t.visual,i=[];at(n)?gD(n,function(t){i.push(t)}):null!=n&&i.push(n);e||1!==i.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(i[1]=i[0]),DD(t,i)}function bD(i){return{applyVisual:function(t,e,n){t=this.mapValueToVisual(t);n("color",i(e("color"),t))},_normalizedToVisual:TD([0,1])}}function wD(t){var e=this.option.visual;return e[Math.round(Wo(t,[0,1],[0,e.length-1],!0))]||{}}function SD(i){return function(t,e,n){n(i,this.mapValueToVisual(t))}}function MD(t){var e=this.option.visual;return e[this.option.loop&&t!==mD?t%e.length:t]}function ID(){return this.option.visual[0]}function TD(n){return{linear:function(t){return Wo(t,n,this.option.visual,!0)},category:MD,piecewise:function(t,e){e=CD.call(this,e);return e=null==e?Wo(t,n,this.option.visual,!0):e},fixed:ID}}function CD(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){n=n[vD.findPieceIndex(t,n)];if(n&&n.visual)return n.visual[this.type]}}function DD(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=j(e,function(t){return Mn(t)})),e}var AD={linear:function(t){return Wo(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,t=vD.findPieceIndex(t,e,!0);if(null!=t)return Wo(t,[0,e.length-1],[0,1],!0)},category:function(t){t=this.option.categories?this.option.categoryMap[t]:t;return null==t?mD:t},fixed:kt};function kD(t,e,n){return t?e<=n:e<n}var LD=vD,PD="itemStyle",OD=Ir(),RD={seriesType:"treemap",reset:function(t){var e=t.getData().tree.root;e.isRemoved()||function n(t,e,i,o){var r=t.getModel(),a=t.getLayout(),s=t.hostTree.data;{var l,u,h,c,p;a&&!a.invisible&&a.isInView&&(u=r.getModel(PD),h=ND(u,e,o),c=s.ensureUniqueItemVisual(t.dataIndex,"style"),e=u.get("borderColor"),null!=(s=u.get("borderColorSaturation"))&&(l=zD(h),e=ED(s,l)),c.stroke=e,(e=t.viewChildren)&&e.length?(p=BD(0,r,a,0,h,e),Z(e,function(t,e){(t.depth>=i.length||t===i[t.depth])&&(e=FD(r,h,t,e,p,o),n(t,e,i,o))})):(l=zD(h),c.fill=l))}}(e,{},t.getViewRoot().getAncestors(),t)}};function ND(n,i,t){var o=G({},i),r=t.designatedVisualItemStyle;return Z(["color","colorAlpha","colorSaturation"],function(t){r[t]=i[t];var e=n.get(t);(r[t]=null)!=e&&(o[t]=e)}),o}function zD(t){var e=VD(t,"color");if(e){var n=VD(t,"colorAlpha"),t=VD(t,"colorSaturation");return t&&(e=Pn(e,null,null,t)),e=n?On(e,n):e}}function ED(t,e){return null!=e?Pn(e,null,null,t):null}function VD(t,e){e=t[e];if(null!=e&&"none"!==e)return e}function BD(t,e,n,i,o,r){if(r&&r.length){var a=GD(e,"color")||null!=o.color&&"none"!==o.color&&(GD(e,"colorAlpha")||GD(e,"colorSaturation"));if(a){r=e.get("visualMin"),o=e.get("visualMax"),n=n.dataExtent.slice();null!=r&&r<n[0]&&(n[0]=r),null!=o&&o>n[1]&&(n[1]=o);e=e.get("colorMappingBy"),a={type:a.name,dataExtent:n,visual:a.range};"color"!==a.type||"index"!==e&&"id"!==e?a.mappingMethod="linear":(a.mappingMethod="category",a.loop=!0);a=new LD(a);return OD(a).drColorMappingBy=e,a}}}function GD(t,e){t=t.get(e);return et(t)&&t.length?{name:e,range:t}:null}function FD(t,e,n,i,o,r){var a,s=G({},e);return o&&(t="index"===(e="color"===(a=o.type)&&OD(o).drColorMappingBy)?i:"id"===e?r.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension")),s[a]=o.mapValueToVisual(t)),s}var HD=Math.max,WD=Math.min,UD=ft,XD=Z,YD=["itemStyle","borderWidth"],ZD=["itemStyle","gapWidth"],jD=["upperLabel","show"],qD=["upperLabel","height"],KD={seriesType:"treemap",reset:function(t,e,n,i){var o,r=n.getWidth(),a=n.getHeight(),s=t.option,l=oc(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),u=s.size||[],h=Uo(UD(l.width,u[0]),r),c=Uo(UD(l.height,u[1]),a),n=i&&i.type,u=RC(i,["treemapZoomToNode","treemapRootToNode"],t),i="treemapRender"===n||"treemapMove"===n?i.rootRect:null,p=t.getViewRoot(),d=NC(p);"treemapMove"!==n&&(c="treemapZoomToNode"===n?function(t,e,n,i,o){var r,a=(e||{}).node,s=[i,o];if(!a||a===n)return s;var n=i*o,l=n*t.option.zoomToNodeRatio;for(;r=a.parentNode;){for(var u=0,h=r.children,c=0,p=h.length;c<p;c++)u+=h[c].getValue();var d=a.getValue();if(0===d)return s;l*=u/d;var f=r.getModel(),d=f.get(YD),f=Math.max(d,tA(f));l+=4*d*d+(3*d+f)*Math.pow(l,.5),$o<l&&(l=$o),a=r}l<n&&(l=n);n=Math.pow(l/n,.5);return[i*n,o*n]}(t,u,p,h,c):i?[i.width,i.height]:[h,c],f=s.sort,f={squareRatio:s.squareRatio,sort:f=f&&"asc"!==f&&"desc"!==f?"desc":f,leafDepth:s.leafDepth},p.hostTree.clearLayouts(),o={x:0,y:0,width:c[0],height:c[1],area:c[0]*c[1]},p.setLayout(o),function t(e,n,i,o){var r,a;if(!e.isRemoved()){var s=e.getLayout();r=s.width,a=s.height;var l=e.getModel(),u=l.get(YD),h=l.get(ZD)/2,c=tA(l),p=Math.max(u,c),d=u-h,s=p-h;e.setLayout({borderWidth:u,upperHeight:p,upperLabelHeight:c},!0),r=HD(r-2*d,0),a=HD(a-d-s,0);var c=r*a,f=$D(e,l,c,n,i,o);if(f.length){for(var g={x:d,y:s,width:r,height:a},y=WD(r,a),m=1/0,v=[],x=v.area=0,_=f.length;x<_;){var b=f[x];v.push(b),v.area+=b.getLayout().area;b=JD(v,y,n.squareRatio);m=b<=m?(x++,b):(v.area-=v.pop().getLayout().area,QD(v,y,g,h,!1),y=WD(g.width,g.height),1/(v.length=v.area=0))}for(v.length&&QD(v,y,g,h,!0),i||null!=(l=l.get("childrenVisibleMin"))&&c<l&&(i=!0),x=0,_=f.length;x<_;x++)t(f[x],n,i,o+1)}}}(p,f,!1,0),o=p.getLayout(),XD(d,function(t,e){e=(d[e+1]||p).getValue();t.setLayout(G({dataExtent:[e,e],borderWidth:0,upperHeight:0},o))}));var f=t.getData().tree.root;f.setLayout(function(t,e,n){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!n)return i;e=n.node,n=e.getLayout();if(!n)return i;var o=[n.width/2,n.height/2],r=e;for(;r;){var a=r.getLayout();o[0]+=a.x,o[1]+=a.y,r=r.parentNode}return{x:t.width/2-o[0],y:t.height/2-o[1]}}(l,i,u),!0),t.setLayoutInfo(l),function e(t,n,i,o,r){var a=t.getLayout(),s=i[r],l=s&&s===t;{var u;s&&!l||r===i.length&&t!==o||(t.setLayout({isInView:!0,invisible:!l&&!n.intersect(a),isAboveViewRoot:l},!0),u=new Qi(n.x-a.x,n.y-a.y,n.width,n.height),XD(t.viewChildren||[],function(t){e(t,u,i,o,r+1)}))}}(f,new Qi(-l.x,-l.y,r,a),d,p,0)}};function $D(t,e,n,i,o,r){var a=t.children||[],s=i.sort;"asc"!==s&&"desc"!==s&&(s=null);var l,r=null!=i.leafDepth&&i.leafDepth<=r;if(o&&!r)return t.viewChildren=[];a=K(a,function(t){return!t.isRemoved()}),o=a,(l=s)&&o.sort(function(t,e){var n="asc"===l?t.getValue()-e.getValue():e.getValue()-t.getValue();return 0==n?"asc"===l?t.dataIndex-e.dataIndex:e.dataIndex-t.dataIndex:n});var u=function(t,e,n){for(var i=0,o=0,r=e.length;o<r;o++)i+=e[o].getValue();var a,s=t.get("visualDimension");return e&&e.length?"value"===s&&n?(a=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],XD(e,function(t){t=t.getValue(s);t<a[0]&&(a[0]=t),t>a[1]&&(a[1]=t)})):a=[NaN,NaN],{sum:i,dataExtent:a}}(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=function(t,e,n,i,o){if(!i)return n;for(var r=t.get("visibleMin"),a=o.length,s=a,l=a-1;0<=l;l--){var u=o["asc"===i?a-l-1:l].getValue();u/n*e<r&&(s=l,n-=u)}return"asc"===i?o.splice(0,a-s):o.splice(s,a-s),n}(e,n,u.sum,s,a),0===u.sum)return t.viewChildren=[];for(var h=0,c=a.length;h<c;h++){var p=a[h].getValue()/u.sum*n;a[h].setLayout({area:p})}return r&&(a.length&&t.setLayout({isLeafRoot:!0},!0),a.length=0),t.viewChildren=a,t.setLayout({dataExtent:u.dataExtent},!0),a}function JD(t,e,n){for(var i,o=0,r=1/0,a=0,s=t.length;a<s;a++)(i=t[a].getLayout().area)&&(i<r&&(r=i),o<i&&(o=i));var l=t.area*t.area,n=e*e*n;return l?HD(n*o/l,l/(n*r)):1/0}function QD(t,e,n,i,o){var r=e===n.width?0:1,a=1-r,s=["x","y"],l=["width","height"],u=n[s[r]],h=e?t.area/e:0;(o||h>n[l[a]])&&(h=n[l[a]]);for(var c=0,p=t.length;c<p;c++){var d=t[c],f={},g=h?d.getLayout().area/h:0,y=f[l[a]]=HD(h-2*i,0),m=n[s[r]]+n[l[r]]-u,m=c===p-1||m<g?m:g,g=f[l[r]]=HD(m-2*i,0);f[s[a]]=n[s[a]]+WD(i,y/2),f[s[r]]=u+WD(i,g/2),u+=m,d.setLayout(f,!0)}n[s[a]]+=h,n[l[a]]-=h}function tA(t){return t.get(jD)?t.get(qD):0}function eA(t){var r=t.findComponents({mainType:"legend"});r&&r.length&&t.eachSeriesByType("graph",function(t){var e=t.getCategoriesData(),i=t.getGraph().data,o=e.mapArray(e.getName);i.filterSelf(function(t){var e=i.getItemModel(t).getShallow("category");if(null!=e){"number"==typeof e&&(e=o[e]);for(var n=0;n<r.length;n++)if(!r[n].isSelected(e))return!1}return!0})})}function nA(t){var h={};t.eachSeriesByType("graph",function(s){var l=s.getCategoriesData(),r=s.getData(),u={};l.each(function(t){var e=l.getName(t);u["ec-"+e]=t;var n=l.getItemModel(t),i=n.getModel("itemStyle").getItemStyle();i.fill||(i.fill=s.getColorFromPalette(e,h)),l.setItemVisual(t,"style",i);for(var o=["symbol","symbolSize","symbolKeepAspect"],r=0;r<o.length;r++){var a=n.getShallow(o[r],!0);null!=a&&l.setItemVisual(t,o[r],a)}}),l.count()&&r.each(function(t){var e=r.getItemModel(t).getShallow("category");if(null!=e){"string"==typeof e&&(e=u["ec-"+e]);var n=l.getItemVisual(e,"style");G(r.ensureUniqueItemVisual(t,"style"),n);for(var i=["symbol","symbolSize","symbolKeepAspect"],o=0;o<i.length;o++)r.setItemVisual(t,i[o],l.getItemVisual(e,i[o]))}})})}function iA(t){return t=!(t instanceof Array)?[t,t]:t}function oA(t){t.eachSeriesByType("graph",function(t){var s=t.getGraph(),l=t.getEdgeData(),e=iA(t.get("edgeSymbol")),n=iA(t.get("edgeSymbolSize"));l.setVisual("fromSymbol",e&&e[0]),l.setVisual("toSymbol",e&&e[1]),l.setVisual("fromSymbolSize",n&&n[0]),l.setVisual("toSymbolSize",n&&n[1]),l.setVisual("style",t.getModel("lineStyle").getLineStyle()),l.each(function(t){var e=l.getItemModel(t),n=s.getEdgeByIndex(t),i=iA(e.getShallow("symbol",!0)),o=iA(e.getShallow("symbolSize",!0)),e=e.getModel("lineStyle").getLineStyle(),r=l.ensureUniqueItemVisual(t,"style");switch(G(r,e),r.stroke){case"source":var a=n.node1.getVisual("style");r.stroke=a&&a.fill;break;case"target":a=n.node2.getVisual("style"),r.stroke=a&&a.fill}i[0]&&n.setVisual("fromSymbol",i[0]),i[1]&&n.setVisual("toSymbol",i[1]),o[0]&&n.setVisual("fromSymbolSize",o[0]),o[1]&&n.setVisual("toSymbolSize",o[1])})})}function rA(t,e){var n=hA(t),i=20,o=[];if("number"==typeof n)i=n;else if(et(n))return t.__curvenessList=n,0;for(var r=(i=i<e?e:i)%2?i+2:i+3,o=[],a=0;a<r;a++)o.push((a%2?a+1:a)/10*(a%2?-1:1));t.__curvenessList=o}function aA(t){return[(t=t.split(uA))[0],t[2],t[1]].join(uA)}function sA(t,e){return t=cA(t.node1,t.node2,e),e.__edgeMap[t]}function lA(t,e){return pA(cA(t.node1,t.node2,e),e)+pA(cA(t.node2,t.node1,e),e)}var uA="--\x3e",hA=function(t){return t.get("autoCurveness")||null},cA=function(t,e,n){t=[t.id,t.dataIndex].join("."),e=[e.id,e.dataIndex].join(".");return[n.uid,t,e].join(uA)},pA=function(t,e){e=e.__edgeMap;return e[t]?e[t].length:0};function dA(t,e,n,i){var o=hA(e),r=et(o);if(!o)return null;var a=sA(t,e);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var u=lA(t,e);rA(e,u),t.lineStyle=t.lineStyle||{};var h=cA(t.node1,t.node2,e),t=e.__curvenessList,u=r||u%2?0:1;if(a.isForward)return t[u+s];h=aA(h),h=pA(h,e),e=t[s+h+u];return i?!r||o&&0===o[0]?(h+u)%2?e:-e:((h%2?0:1)+u)%2?e:-e:t[s+h+u]}function fA(t){var e=t.coordinateSystem;e&&"view"!==e.type||((e=t.getGraph()).eachNode(function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])}),gA(e,t))}function gA(t,r){t.eachEdge(function(t,e){var n=yt(t.getModel().get(["lineStyle","curveness"]),-dA(t,r,e,!0),0),i=Nt(t.node1.getLayout()),o=Nt(t.node2.getLayout()),e=[i,o];+n&&e.push([(i[0]+o[0])/2-(i[1]-o[1])*n,(i[1]+o[1])/2-(o[0]-i[0])*n]),t.setLayout(e)})}function yA(t,e){t.eachSeriesByType("graph",function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var i=t.getData(),o=[];Z(n.dimensions,function(t){o=o.concat(i.mapDimensionsAll(t))});for(var r=0;r<i.count();r++){for(var a=[],s=!1,l=0;l<o.length;l++){var u=i.get(o[l],r);isNaN(u)||(s=!0),a.push(u)}s?i.setItemLayout(r,n.dataToPoint(a)):i.setItemLayout(r,[NaN,NaN])}gA(i.graph,t)}else e&&"none"!==e||fA(t)})}function mA(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,t=e.scaleX;return((e.getZoom()-1)*n+1)/t}function vA(t){t=t.getVisual("symbolSize");return+(t=t instanceof Array?(t[0]+t[1])/2:t)}var xA=Math.PI,_A=[];function bA(s,t){var e,n,l,u,i,o=s.coordinateSystem;o&&"view"!==o.type||(i=o.getBoundingRect(),n=(e=s.getData()).graph,l=i.width/2+i.x,u=i.height/2+i.y,o=Math.min(i.width,i.height)/2,i=e.count(),e.setLayout({cx:l,cy:u}),i&&(wA[t](s,n,e,o,l,u,i),n.eachEdge(function(t,e){var n,i=yt(t.getModel().get(["lineStyle","curveness"]),dA(t,s,e),0),o=Nt(t.node1.getLayout()),r=Nt(t.node2.getLayout()),a=(o[0]+r[0])/2,e=(o[1]+r[1])/2;+i&&(n=[l*(i*=3)+a*(1-i),u*i+e*(1-i)]),t.setLayout([o,r,n])})))}var wA={value:function(t,e,n,i,o,r,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);e.eachNode(function(t){var e=t.getValue("value"),e=u*(l?e:1)/2;s+=e,t.setLayout([i*Math.cos(s)+o,i*Math.sin(s)+r]),s+=e})},symbolSize:function(t,e,n,i,o,r,a){var s=0;_A.length=a;var l=mA(t);e.eachNode(function(t){var e=vA(t);(e=isNaN(e)?2:e)<0&&(e=0),e*=l;e=Math.asin(e/2/i);isNaN(e)&&(e=xA/2),_A[t.dataIndex]=e,s+=2*e});var u=(2*xA-s)/a/2,h=0;e.eachNode(function(t){var e=u+_A[t.dataIndex];h+=e,t.setLayout([i*Math.cos(h)+o,i*Math.sin(h)+r]),h+=e})}};function SA(t){t.eachSeriesByType("graph",function(t){"circular"===t.get("layout")&&bA(t,"symbolSize")})}var MA=Vt;function IA(t){t.eachSeriesByType("graph",function(o){var h,c,p,i,r,t,e,a,s,l,n,u,d=o.coordinateSystem;d&&"view"!==d.type||("force"===o.get("layout")?(h=o.preservedPoints||{},c=o.getGraph(),p=c.data,n=c.edgeData,e=(u=o.getModel("force")).get("initLayout"),o.preservedPoints?p.each(function(t){var e=p.getId(t);p.setItemLayout(t,h[e]||[NaN,NaN])}):e&&"none"!==e?"circular"===e&&bA(o,"value"):fA(o),i=p.getDataExtent("value"),r=n.getDataExtent("value"),t=u.get("repulsion"),e=u.get("edgeLength"),a=et(t)?t:[t,t],s=[(s=et(e)?e:[e,e])[1],s[0]],l=p.mapArray("value",function(t,e){var n=p.getItemLayout(e),t=Wo(t,i,a);return{w:t=isNaN(t)?(a[0]+a[1])/2:t,rep:t,fixed:p.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),n=n.mapArray("value",function(t,e){var n=c.getEdgeByIndex(e),i=Wo(t,r,s);isNaN(i)&&(i=(s[0]+s[1])/2);t=n.getModel(),e=yt(n.getModel().get(["lineStyle","curveness"]),-dA(n,o,e,!0),0);return{n1:l[n.node1.dataIndex],n2:l[n.node2.dataIndex],d:i,curveness:e,ignoreForceLayout:t.get("ignoreForceLayout")}}),d=d.getBoundingRect(),(u=function(t,e,n){for(var d=t,f=e,i=(e=n.rect).width,o=e.height,g=[e.x+i/2,e.y+o/2],y=null==n.gravity?.1:n.gravity,r=0;r<d.length;r++){var a=d[r];a.p||(a.p=Ot(i*(Math.random()-.5)+g[0],o*(Math.random()-.5)+g[1])),a.pp=Nt(a.p),a.edges=null}var m,v,s=null==n.friction?.6:n.friction,x=s;return{warmUp:function(){x=.8*s},setFixed:function(t){d[t].fixed=!0},setUnfixed:function(t){d[t].fixed=!1},beforeStep:function(t){m=t},afterStep:function(t){v=t},step:function(t){m&&m(d,f);for(var e=[],n=d.length,i=0;i<f.length;i++){var o,r,a=f[i];a.ignoreForceLayout||(l=a.n1,Bt(e,(o=a.n2).p,l.p),r=Gt(e)-a.d,a=o.w/(l.w+o.w),isNaN(a)&&(a=0),jt(e,e),l.fixed||MA(l.p,l.p,e,a*r*x),o.fixed||MA(o.p,o.p,e,-(1-a)*r*x))}for(i=0;i<n;i++){var s=d[i];s.fixed||(Bt(e,g,s.p),MA(s.p,s.p,e,y*x))}for(i=0;i<n;i++)for(var l=d[i],u=i+1;u<n;u++){Bt(e,(o=d[u]).p,l.p),0===(r=Gt(e))&&(zt(e,Math.random()-.5,Math.random()-.5),r=1);var h=(l.rep+o.rep)/r/r;l.fixed||MA(l.pp,l.pp,e,h),o.fixed||MA(o.pp,o.pp,e,-h)}for(var c=[],i=0;i<n;i++)(s=d[i]).fixed||(Bt(c,s.p,s.pp),MA(s.p,s.p,c,x),Rt(s.pp,s.p));var p=(x*=.992)<.01;v&&v(d,f,p),t&&t(p)}}}(l,n,{rect:d,gravity:u.get("gravity"),friction:u.get("friction")})).beforeStep(function(t,e){for(var n=0,i=t.length;n<i;n++)t[n].fixed&&Rt(t[n].p,c.getNodeByIndex(n).getLayout())}),u.afterStep(function(t,e,n){for(var i=0,o=t.length;i<o;i++)t[i].fixed||c.getNodeByIndex(i).setLayout(t[i].p),h[p.getId(i)]=t[i].p;for(i=0,o=e.length;i<o;i++){var r=e[i],a=c.getEdgeByIndex(i),s=r.n1.p,l=r.n2.p,u=a.getLayout();(u=u?u.slice():[])[0]=u[0]||[],u[1]=u[1]||[],Rt(u[0],s),Rt(u[1],l),+r.curveness&&(u[2]=[(s[0]+l[0])/2-(s[1]-l[1])*r.curveness,(s[1]+l[1])/2-(l[0]-s[0])*r.curveness]),a.setLayout(u)}}),o.forceLayout=u,o.preservedPoints=h,u.step()):o.forceLayout=null)})}function TA(t,u){var h=[];return t.eachSeriesByType("graph",function(t){var e,n,i,o,r,a,s,l=t.get("coordinateSystem");l&&"view"!==l||(n=[],r=[],qa((e=t.getData()).mapArray(function(t){t=e.getItemModel(t);return[+t.get("x"),+t.get("y")]}),n,r),r[0]-n[0]==0&&(r[0]+=1,--n[0]),r[1]-n[1]==0&&(r[1]+=1,--n[1]),o=(r[0]-n[0])/(r[1]-n[1]),a=u,s=o,i=oc(G(t.getBoxLayoutParams(),{aspect:s}),{width:a.getWidth(),height:a.getHeight()}),isNaN(o)&&(n=[i.x,i.y],r=[i.x+i.width,i.y+i.height]),l=r[0]-n[0],s=r[1]-n[1],a=i.width,o=i.height,(r=t.coordinateSystem=new VT).zoomLimit=t.get("scaleLimit"),r.setBoundingRect(n[0],n[1],l,s),r.setViewRect(i.x,i.y,a,o),r.setCenter(t.get("center")),r.setZoom(t.get("zoom")),h.push(r))}),h}var CA,DA=Lg.prototype,AA=Zy.prototype,kA=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};function LA(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}y(function(){return null!==CA&&CA.apply(this,arguments)||this},CA=kA);var PA,OA=(y(NA,PA=Bs),NA.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},NA.prototype.getDefaultShape=function(){return new kA},NA.prototype.buildPath=function(t,e){(LA(e)?DA:AA).buildPath.call(this,t,e)},NA.prototype.pointAt=function(t){return(LA(this.shape)?DA:AA).pointAt.call(this,t)},NA.prototype.tangentAt=function(t){var e=this.shape,t=LA(e)?[e.x2-e.x1,e.y2-e.y1]:AA.tangentAt.call(this,t);return jt(t,t)},NA),RA=["fromSymbol","toSymbol"];function NA(t){t=PA.call(this,t)||this;return t.type="ec-line",t}function zA(t){return"_"+t+"Type"}function EA(t,e,n){var i=e.getItemVisual(n,t);if(i&&"none"!==i){var o=e.getItemVisual(n,t+"Size"),r=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),n=e.getItemVisual(n,t+"KeepAspect"),o=Hm(o),a=Wm(a||0,o),n=Fm(i,-o[0]/2+a[0],-o[1]/2+a[1],o[0],o[1],null,n);return n.__specifiedRotation=null==r||isNaN(r)?void 0:+r*Math.PI/180||0,n.name=t,n}}function VA(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;e=e[2];e?(t.cpx1=e[0],t.cpy1=e[1]):(t.cpx1=NaN,t.cpy1=NaN)}var BA,GA=(y(HA,BA=Ao),HA.prototype._createLine=function(n,i,t){var e,o=n.hostModel,r=n.getItemLayout(i),r=(e=r,VA((r=new OA({name:"line",subPixelOptimize:!0})).shape,e),r);r.shape.percent=0,Su(r,{shape:{percent:1}},o,i),this.add(r),Z(RA,function(t){var e=EA(t,n,i);this.add(e),this[zA(t)]=n.getItemVisual(i,t)},this),this._updateCommonStl(n,i,t)},HA.prototype.updateData=function(i,o,t){var e=i.hostModel,n=this.childOfName("line"),r=i.getItemLayout(o),a={shape:{}};VA(a.shape,r),wu(n,a,e,o),Z(RA,function(t){var e=i.getItemVisual(o,t),n=zA(t);this[n]!==e&&(this.remove(this.childOfName(t)),t=EA(t,i,o),this.add(t)),this[n]=e},this),this._updateCommonStl(i,o,t)},HA.prototype.getLinePath=function(){return this.childAt(0)},HA.prototype._updateCommonStl=function(n,t,e){var i=n.hostModel,r=this.childOfName("line"),o=e&&e.emphasisLineStyle,a=e&&e.blurLineStyle,s=e&&e.selectLineStyle,l=e&&e.labelStatesModels;e&&!n.hasItemOption||(o=(e=n.getItemModel(t)).getModel(["emphasis","lineStyle"]).getLineStyle(),a=e.getModel(["blur","lineStyle"]).getLineStyle(),s=e.getModel(["select","lineStyle"]).getLineStyle(),l=Ou(e));var u=n.getItemVisual(t,"style"),h=u.stroke;r.useStyle(u),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,r.ensureState("blur").style=a,r.ensureState("select").style=s,Z(RA,function(t){var e=this.childOfName(t);if(e){e.setColor(h),e.style.opacity=u.opacity;for(var n=0;n<Cl.length;n++){var i=Cl[n],o=r.getState(i);o&&(o=o.style||{},i=(i=e.ensureState(i)).style||(i.style={}),null!=o.stroke&&(i[e.__isEmptyBrush?"stroke":"fill"]=o.stroke),null!=o.opacity&&(i.opacity=o.opacity))}e.markRedraw()}},this);s=i.getRawValue(t);Pu(this,l,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,e){return i.getFormattedLabel(t,e,n.dataType)}},inheritColor:h||"#000",defaultOpacity:u.opacity,defaultText:(null==s?n.getName(t):isFinite(s)?Xo(s):s)+""});s=this.getTextContent();s&&(l=l.normal,s.__align=s.style.align,s.__verticalAlign=s.style.verticalAlign,s.__position=l.get("position")||"middle",et(l=l.get("distance"))||(l=[l,l]),s.__labelDistance=l),this.setTextConfig({position:null,local:!0,inside:!1}),hu(this)},HA.prototype.highlight=function(){Jl(this)},HA.prototype.downplay=function(){Ql(this)},HA.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},HA.prototype.setLinePoints=function(t){var e=this.childOfName("line");VA(e.shape,t),e.dirty()},HA.prototype.beforeUpdate=function(){var t=this.childOfName("fromSymbol"),e=this.childOfName("toSymbol"),n=this.getTextContent();if(t||e||n&&!n.ignore){for(var i=1,o=this.parent;o;)o.scaleX&&(i/=o.scaleX),o=o.parent;var r=this.childOfName("line");if(this.__dirty||r.__dirty){var a=r.shape.percent,s=r.pointAt(0),l=r.pointAt(a),u=Bt([],l,s);if(jt(u,u),t&&(t.setPosition(s),v(t,0),t.scaleX=t.scaleY=i*a,t.markRedraw()),e&&(e.setPosition(l),v(e,1),e.scaleX=e.scaleY=i*a,e.markRedraw()),n&&!n.ignore){n.x=n.y=0;var h=void(n.originX=n.originY=0),c=void 0,e=n.__labelDistance,p=e[0]*i,d=e[1]*i,e=a/2,f=r.tangentAt(e),a=[f[1],-f[0]],g=r.pointAt(e);0<a[1]&&(a[0]=-a[0],a[1]=-a[1]);var y=f[0]<0?-1:1;"start"!==n.__position&&"end"!==n.__position&&(a=-Math.atan2(f[1],f[0]),l[0]<s[0]&&(a=Math.PI+a),n.rotation=a);var m=void 0;switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":m=-d,c="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":m=d,c="top";break;default:m=0,c="middle"}switch(n.__position){case"end":n.x=u[0]*p+l[0],n.y=u[1]*d+l[1],h=.8<u[0]?"left":u[0]<-.8?"right":"center",c=.8<u[1]?"top":u[1]<-.8?"bottom":"middle";break;case"start":n.x=-u[0]*p+s[0],n.y=-u[1]*d+s[1],h=.8<u[0]?"right":u[0]<-.8?"left":"center",c=.8<u[1]?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=p*y+s[0],n.y=s[1]+m,h=f[0]<0?"right":"left",n.originX=-p*y,n.originY=-m;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=g[0],n.y=g[1]+m,h="center",n.originY=-m;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-p*y+l[0],n.y=l[1]+m,h=0<=f[0]?"right":"left",n.originX=p*y,n.originY=-m}n.scaleX=n.scaleY=i,n.setStyle({verticalAlign:n.__verticalAlign||c,align:n.__align||h})}}}function v(t,e){var n,i=t.__specifiedRotation;null==i?(n=r.tangentAt(e),t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(n[1],n[0]))):t.attr("rotation",i)}},HA);function FA(t){this.group=new Ao,this._LineCtor=t||GA}function HA(t,e,n){var i=BA.call(this)||this;return i._createLine(t,e,n),i}function WA(t){t=t.hostModel;return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["emphasis","lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),labelStatesModels:Ou(t)}}function UA(t){return isNaN(t[0])||isNaN(t[1])}function XA(t){return!UA(t[0])&&!UA(t[1])}var YA=(FA.prototype.isPersistent=function(){return!0},FA.prototype.updateData=function(n){var i=this,e=this.group,o=this._lineData;this._lineData=n,o||e.removeAll();var r=WA(n);n.diff(o).add(function(t){i._doAdd(n,t,r)}).update(function(t,e){i._doUpdate(o,n,e,t,r)}).remove(function(t){e.remove(o.getItemGraphicEl(t))}).execute()},FA.prototype.updateLayout=function(){var n=this._lineData;n&&n.eachItemGraphicEl(function(t,e){t.updateLayout(n,e)},this)},FA.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=WA(t),this._lineData=null,this.group.removeAll()},FA.prototype.incrementalUpdate=function(t,e){function n(t){var e;t.isGroup||(e=t).animators&&0<e.animators.length||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var i,o=t.start;o<t.end;o++)XA(e.getItemLayout(o))&&((i=new this._LineCtor(e,o,this._seriesScope)).traverse(n),this.group.add(i),e.setItemGraphicEl(o,i))},FA.prototype.remove=function(){this.group.removeAll()},FA.prototype._doAdd=function(t,e,n){XA(t.getItemLayout(e))&&(n=new this._LineCtor(t,e,n),t.setItemGraphicEl(e,n),this.group.add(n))},FA.prototype._doUpdate=function(t,e,n,i,o){n=t.getItemGraphicEl(n);XA(e.getItemLayout(i))?(n?n.updateData(e,i,o):n=new this._LineCtor(e,i,o),e.setItemGraphicEl(i,n),this.group.add(n)):this.group.remove(n)},FA),ZA=[],jA=[],qA=[],KA=za,$A=Jt,JA=Math.abs;function QA(t,e,n){for(var i,o=t[0],r=t[1],a=t[2],s=1/0,l=n*n,u=.1,h=.1;h<=.9;h+=.1){ZA[0]=KA(o[0],r[0],a[0],h),ZA[1]=KA(o[1],r[1],a[1],h);var c=JA($A(ZA,e)-l);c<s&&(s=c,i=h)}for(var p=0;p<32;p++){var d=i+u;if(jA[0]=KA(o[0],r[0],a[0],i),jA[1]=KA(o[1],r[1],a[1],i),qA[0]=KA(o[0],r[0],a[0],d),qA[1]=KA(o[1],r[1],a[1],d),c=$A(jA,e)-l,JA(c)<.01)break;d=$A(qA,e)-l;u/=2,c<0?0<=d?i+=u:i-=u:0<=d?i-=u:i+=u}return i}function tk(t,l){var u=[],h=Ba,c=[[],[],[]],p=[[],[]],d=[];l/=2,t.eachEdge(function(t,e){var n=t.getLayout(),i=t.getVisual("fromSymbol"),o=t.getVisual("toSymbol");n.__original||(n.__original=[Nt(n[0]),Nt(n[1])],n[2]&&n.__original.push(Nt(n[2])));var r,a,s=n.__original;null!=n[2]?(Rt(c[0],s[0]),Rt(c[1],s[2]),Rt(c[2],s[1]),i&&"none"!==i&&(r=vA(t.node1),a=QA(c,s[0],r*l),h(c[0][0],c[1][0],c[2][0],a,u),c[0][0]=u[3],c[1][0]=u[4],h(c[0][1],c[1][1],c[2][1],a,u),c[0][1]=u[3],c[1][1]=u[4]),o&&"none"!==o&&(r=vA(t.node2),a=QA(c,s[1],r*l),h(c[0][0],c[1][0],c[2][0],a,u),c[1][0]=u[1],c[2][0]=u[2],h(c[0][1],c[1][1],c[2][1],a,u),c[1][1]=u[1],c[2][1]=u[2]),Rt(n[0],c[0]),Rt(n[1],c[2]),Rt(n[2],c[1])):(Rt(p[0],s[0]),Rt(p[1],s[1]),Bt(d,p[1],p[0]),jt(d,d),i&&"none"!==i&&(r=vA(t.node1),Vt(p[0],p[0],d,r*l)),o&&"none"!==o&&(r=vA(t.node2),Vt(p[1],p[1],d,-r*l)),Rt(n[0],p[0]),Rt(n[1],p[1]))})}function ek(t){return"view"===t.type}var nk,ik=(y(ok,nk=Nf),ok.prototype.init=function(t,e){var n=new yS,i=new YA,o=this.group;this._controller=new lT(e.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},ok.prototype.render=function(t,e,n){var r=this,i=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;ek(i)&&(i={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},this._firstRender?s.attr(i):wu(s,i,t)),tk(t.getGraph(),mA(t));var l=t.getData();o.updateData(l);o=t.getEdgeData();a.updateData(o),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var u=t.forceLayout,h=t.get(["force","layoutAnimation"]);u&&this._startForceLayoutIteration(u,h),l.graph.eachNode(function(t){var e=t.dataIndex,n=t.getGraphicEl(),i=t.getModel();n.off("drag").off("dragend");var o=i.get("draggable");o&&n.on("drag",function(){u&&(u.warmUp(),r._layouting||r._startForceLayoutIteration(u,h),u.setFixed(e),l.setItemLayout(e,[n.x,n.y]))}).on("dragend",function(){u&&u.setUnfixed(e)}),n.setDraggable(o&&!!u),"adjacency"===i.get(["emphasis","focus"])&&(_l(n).focus=t.getAdjacentDataIndices())}),l.graph.eachEdge(function(t){var e=t.getGraphicEl();"adjacency"===t.getModel().get(["emphasis","focus"])&&(_l(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})});var c="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),p=l.getLayout("cx"),d=l.getLayout("cy");l.eachItemGraphicEl(function(t,e){var n=l.getItemModel(e).get(["label","rotate"])||0,i=t.getSymbolPath();c?(t=l.getItemLayout(e),(e=Math.atan2(t[1]-d,t[0]-p))<0&&(e=2*Math.PI+e),(t=t[0]<p)&&(e-=Math.PI),i.setTextConfig({rotation:-e,position:e=t?"left":"right",origin:"center"}),G((t=i.ensureState("emphasis")).textConfig||(t.textConfig={}),{position:e})):i.setTextConfig({rotation:n*=Math.PI/180})}),this._firstRender=!1},ok.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},ok.prototype._startForceLayoutIteration=function(t,n){var i=this;!function e(){t.step(function(t){i.updateLayout(i._model),(i._layouting=!t)&&(n?i._layoutTimeout=setTimeout(e,16):e())})}()},ok.prototype._updateController=function(o,t,r){var e=this,n=this._controller,i=this._controllerHost,a=this.group;n.setPointerChecker(function(t,e,n){var i=a.getBoundingRect();return i.applyTransform(a.transform),i.contain(e,n)&&!pT(t,r,o)}),ek(o.coordinateSystem)?(n.enable(o.get("roam")),i.zoomLimit=o.get("scaleLimit"),i.zoom=o.coordinateSystem.getZoom(),n.off("pan").off("zoom").on("pan",function(t){uT(i,t.dx,t.dy),r.dispatchAction({seriesId:o.id,type:"graphRoam",dx:t.dx,dy:t.dy})}).on("zoom",function(t){hT(i,t.scale,t.originX,t.originY),r.dispatchAction({seriesId:o.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),e._updateNodeAndLinkScale(),tk(o.getGraph(),mA(o)),e._lineDraw.updateLayout(),r.updateLabelLayout()})):n.disable()},ok.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=mA(t);e.eachItemGraphicEl(function(t,e){t.setSymbolScale(n)})},ok.prototype.updateLayout=function(t){tk(t.getGraph(),mA(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},ok.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},ok.type="graph",ok);function ok(){var t=null!==nk&&nk.apply(this,arguments)||this;return t.type=ok.type,t}function rk(t){return"_EC_"+t}var qu=(hk.prototype.isDirected=function(){return this._directed},hk.prototype.addNode=function(t,e){var n=this._nodesMap;if(!n[rk(t=null==t?""+e:""+t)]){e=new ak(t,e);return(e.hostGraph=this).nodes.push(e),n[rk(t)]=e}},hk.prototype.getNodeByIndex=function(t){t=this.data.getRawIndex(t);return this.nodes[t]},hk.prototype.getNodeById=function(t){return this._nodesMap[rk(t)]},hk.prototype.addEdge=function(t,e,n){var i=this._nodesMap,o=this._edgesMap;if("number"==typeof t&&(t=this.nodes[t]),"number"==typeof e&&(e=this.nodes[e]),t instanceof ak||(t=i[rk(t)]),e instanceof ak||(e=i[rk(e)]),t&&e){i=t.id+"-"+e.id,n=new sk(t,e,n);return(n.hostGraph=this)._directed&&(t.outEdges.push(n),e.inEdges.push(n)),t.edges.push(n),t!==e&&e.edges.push(n),this.edges.push(n),o[i]=n}},hk.prototype.getEdgeByIndex=function(t){t=this.edgeData.getRawIndex(t);return this.edges[t]},hk.prototype.getEdge=function(t,e){t instanceof ak&&(t=t.id),e instanceof ak&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},hk.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,o=0;o<i;o++)0<=n[o].dataIndex&&t.call(e,n[o],o)},hk.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,o=0;o<i;o++)0<=n[o].dataIndex&&0<=n[o].node1.dataIndex&&0<=n[o].node2.dataIndex&&t.call(e,n[o],o)},hk.prototype.breadthFirstTraverse=function(t,e,n,i){if(e=!(e instanceof ak)?this._nodesMap[rk(e)]:e){for(var o="out"===n?"outEdges":"in"===n?"inEdges":"edges",r=0;r<this.nodes.length;r++)this.nodes[r].__visited=!1;if(!t.call(i,e,null))for(var a=[e];a.length;)for(var s=a.shift(),l=s[o],r=0;r<l.length;r++){var u=l[r],u=u.node1===s?u.node2:u.node1;if(!u.__visited){if(t.call(i,u,s))return;a.push(u),u.__visited=!0}}}},hk.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,i=this.edges,o=0,r=n.length;o<r;o++)n[o].dataIndex=-1;for(o=0,r=t.count();o<r;o++)n[t.getRawIndex(o)].dataIndex=o;for(e.filterSelf(function(t){t=i[e.getRawIndex(t)];return 0<=t.node1.dataIndex&&0<=t.node2.dataIndex}),o=0,r=i.length;o<r;o++)i[o].dataIndex=-1;for(o=0,r=e.count();o<r;o++)i[e.getRawIndex(o)].dataIndex=o},hk.prototype.clone=function(){for(var t=new hk(this._directed),e=this.nodes,n=this.edges,i=0;i<e.length;i++)t.addNode(e[i].id,e[i].dataIndex);for(i=0;i<n.length;i++){var o=n[i];t.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return t},hk),ak=(uk.prototype.degree=function(){return this.edges.length},uk.prototype.inDegree=function(){return this.inEdges.length},uk.prototype.outDegree=function(){return this.outEdges.length},uk.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)},uk.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},uk),sk=(lk.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)},lk.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},lk);function lk(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}function uk(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}function hk(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}function ck(n,i){return{getValue:function(t){var e=this[n][i];return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,e){0<=this.dataIndex&&this[n][i].setItemVisual(this.dataIndex,t,e)},getVisual:function(t){return this[n][i].getItemVisual(this.dataIndex,t)},setLayout:function(t,e){0<=this.dataIndex&&this[n][i].setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this[n][i].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][i].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][i].getRawIndex(this.dataIndex)}}}X(ak,ck("hostGraph","data")),X(sk,ck("hostGraph","edgeData"));var pk=qu;function dk(t,e,n,i,o){for(var r=new pk(i),a=0;a<t.length;a++)r.addNode(ft(t[a].id,t[a].name,a),a);for(var s=[],l=[],u=0,a=0;a<e.length;a++){var h=e[a],c=h.source,p=h.target;r.addEdge(c,p,u)&&(l.push(h),s.push(ft(_r(h.id,null),c+" > "+p)),u++)}var d,i=n.get("coordinateSystem");"cartesian2d"===i||"polar"===i?d=Rx(t,n):(W(i=(i=op.get(i))&&i.dimensions||[],"value")<0&&i.concat(["value"]),i=Cx(t,{coordDimensions:i,encodeDefine:n.getEncode()}).dimensions,(d=new Mx(i,n)).initData(t));n=new Mx(["value"],n);return n.initData(l,s),o&&o(d,n),AC({mainData:d,struct:r,structAttr:"graph",datas:{node:d,edge:n},datasAttr:{node:"data",edge:"edgeData"}}),r.update(),r}var fk,gk=(y(mk,fk=Sf),mk.prototype.init=function(t){fk.prototype.init.apply(this,arguments);var e=this;function n(){return e._categoriesData}this.legendVisualProvider=new oI(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mk.prototype.mergeOption=function(t){fk.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mk.prototype.mergeDefaultAndTheme=function(t){fk.prototype.mergeDefaultAndTheme.apply(this,arguments),fr(t,"edgeLabel",["show"])},mk.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],r=this;if(i&&n){hA(t=this)&&(t.__curvenessList=[],t.__edgeMap={},rA(t));n=dk(i,n,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t){var e=r._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t});var n=th.prototype.getModel;function i(t,e){e=n.call(this,t,e);return e.resolveParentPath=o,e}function o(t){if(!t||"label"!==t[0]&&"label"!==t[1])return t;var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}e.wrapMethod("getItemModel",function(t){return t.resolveParentPath=o,t.getModel=i,t})});return Z(n.edges,function(t){var e,n,i;e=t.node1,n=t.node2,i=this,t=t.dataIndex,hA(i)&&(e=cA(e,n,i),i=(n=i.__edgeMap)[aA(e)],n[e]&&!i?n[e].isForward=!0:i&&n[e]&&(i.isForward=!0,n[e].isForward=!1),n[e]=n[e]||[],n[e].push(t))},this),n.data}},mk.prototype.getGraph=function(){return this.getData().graph},mk.prototype.getEdgeData=function(){return this.getGraph().edgeData},mk.prototype.getCategoriesData=function(){return this._categoriesData},mk.prototype.formatTooltip=function(t,e,n){if("edge"!==n)return hf({series:this,dataIndex:t,multipleSeries:e});var i=this.getData(),e=this.getDataParams(t,n),n=i.graph.getEdgeByIndex(t),t=i.getName(n.node1.dataIndex),i=i.getName(n.node2.dataIndex),n=[];return null!=t&&n.push(t),null!=i&&n.push(i),Jd("nameValue",{name:n.join(" > "),value:e.value,noValue:null==e.value})},mk.prototype._updateCategoriesData=function(){var t=j(this.option.categories||[],function(t){return null!=t.value?t:G({value:0},t)}),e=new Mx(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t)})},mk.prototype.setZoom=function(t){this.option.zoom=t},mk.prototype.setCenter=function(t){this.option.center=t},mk.prototype.isAnimationEnabled=function(){return fk.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},mk.type="series.graph",mk.dependencies=["grid","polar","geo","singleAxis","calendar"],mk.defaultOption={zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},mk),yk={type:"graphRoam",event:"graphRoam",update:"none"};function mk(){var t=null!==fk&&fk.apply(this,arguments)||this;return t.type=mk.type,t.hasSymbolVisual=!0,t}var vk,xk=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},_k=(y(bk,vk=Bs),bk.prototype.getDefaultShape=function(){return new xk},bk.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,o=e.r,r=e.width,a=e.angle,s=e.x-n(a)*r*(o/3<=r?1:2),l=e.y-i(a)*r*(o/3<=r?1:2),a=e.angle-Math.PI/2;t.moveTo(s,l),t.lineTo(e.x+n(a)*r,e.y+i(a)*r),t.lineTo(e.x+n(e.angle)*o,e.y+i(e.angle)*o),t.lineTo(e.x-n(a)*r,e.y-i(a)*r),t.lineTo(s,l)},bk);function bk(t){t=vk.call(this,t)||this;return t.type="pointer",t}function wk(t,e){var n=null==t?"":t+"";return e&&("string"==typeof e?n=e.replace("{value}",n):"function"==typeof e&&(n=e(t))),n}var Sk,Mk,Ik=2*Math.PI,Tk=(y(Ak,Mk=Nf),Ak.prototype.render=function(t,e,n){this.group.removeAll();var i,o,r,a,s=t.get(["axisLine","lineStyle","color"]),l=(o=n,r=(i=t).get("center"),a=o.getWidth(),l=o.getHeight(),l=Math.min(a,l),{cx:Uo(r[0],o.getWidth()),cy:Uo(r[1],o.getHeight()),r:Uo(i.get("radius"),l/2)});this._renderMain(t,e,n,s,l),this._data=t.getData()},Ak.prototype.dispose=function(){},Ak.prototype._renderMain=function(t,e,n,i,o){for(var r=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),h=u.get("roundCap")?cM:My,c=u.get("show"),p=u.getModel("lineStyle"),d=p.get("width"),f=(l-s)%Ik||l===s?(l-s)%Ik:Ik,g=s,y=0;c&&y<i.length;y++){var m=new h({shape:{startAngle:g,endAngle:l=s+f*Math.min(Math.max(i[y][0],0),1),cx:o.cx,cy:o.cy,clockwise:a,r0:o.r-d,r:o.r},silent:!0});m.setStyle({fill:i[y][1]}),m.setStyle(p.getLineStyle(["color","width"])),r.add(m),g=l}function v(t){if(t<=0)return i[0][1];for(var e=0;e<i.length;e++)if(i[e][0]>=t&&(0===e?0:i[e-1][0])<t)return i[e][1];return i[e-1][1]}a||(u=s,s=l,l=u),this._renderTicks(t,e,n,v,o,s,l,a,d),this._renderTitleAndDetail(t,e,n,v,o),this._renderAnchor(t,o),this._renderPointer(t,e,n,v,o,s,l,a,d)},Ak.prototype._renderTicks=function(t,e,n,i,o,r,a,s,l){for(var u=this.group,h=o.cx,c=o.cy,p=o.r,d=+t.get("min"),f=+t.get("max"),g=t.getModel("splitLine"),y=t.getModel("axisTick"),m=t.getModel("axisLabel"),v=t.get("splitNumber"),x=y.get("splitNumber"),_=Uo(g.get("length"),p),b=Uo(y.get("length"),p),w=r,S=(a-r)/v,M=S/x,I=g.getModel("lineStyle").getLineStyle(),T=y.getModel("lineStyle").getLineStyle(),C=g.get("distance"),D=0;D<=v;D++){var A,k,L,P=Math.cos(w),O=Math.sin(w);if(g.get("show")&&(L=new Lg({shape:{x1:P*(p-(A=C?C+l:l))+h,y1:O*(p-A)+c,x2:P*(p-_-A)+h,y2:O*(p-_-A)+c},style:I,silent:!0}),"auto"===I.stroke&&L.setStyle({stroke:i(D/v)}),u.add(L)),m.get("show")&&(A=m.get("distance")+C,k=wk(Xo(D/v*(f-d)+d),m.get("formatter")),L=i(D/v),u.add(new xl({style:Ru(m,{text:k,x:P*(p-_-A)+h,y:O*(p-_-A)+c,verticalAlign:O<-.8?"top":.8<O?"bottom":"middle",align:P<-.4?"left":.4<P?"right":"center"},{inheritColor:L}),silent:!0}))),y.get("show")&&D!==v){A=(A=y.get("distance"))?A+l:l;for(var R=0;R<=x;R++){P=Math.cos(w),O=Math.sin(w);var N=new Lg({shape:{x1:P*(p-A)+h,y1:O*(p-A)+c,x2:P*(p-b-A)+h,y2:O*(p-b-A)+c},silent:!0,style:T});"auto"===T.stroke&&N.setStyle({stroke:i((D+R/x)/v)}),u.add(N),w+=M}w-=M}else w+=S}},Ak.prototype._renderPointer=function(s,t,e,l,u,a,n,h,c){var o=this.group,r=this._data,p=this._progressEls,d=[],f=s.get(["pointer","show"]),g=s.getModel("progress"),y=g.get("show"),m=s.getData(),v=m.mapDimension("value"),i=+s.get("min"),x=+s.get("max"),_=[i,x],b=[a,n];function w(t,e){var n=m.getItemModel(t).getModel("pointer"),i=Uo(n.get("width"),u.r),o=Uo(n.get("length"),u.r),r=s.get(["pointer","icon"]),a=n.get("offsetCenter"),t=Uo(a[0],u.r),a=Uo(a[1],u.r),n=n.get("keepAspect"),a=r?Fm(r,t-i/2,a-o,i,o,null,n):new _k({shape:{angle:-Math.PI/2,width:i,r:o,x:t,y:a}});return a.rotation=-(e+Math.PI/2),a.x=u.cx,a.y=u.cy,a}function S(t,e){var n=g.get("roundCap")?cM:My,i=g.get("overlap"),o=i?g.get("width"):c/m.count(),r=i?u.r-o:u.r-(t+1)*o,o=i?u.r:u.r-t*o,o=new n({shape:{startAngle:a,endAngle:e,cx:u.cx,cy:u.cy,clockwise:h,r0:r,r:o}});return i&&(o.z2=x-m.get(v,t)%x),o}(y||f)&&(m.diff(r).add(function(t){var e,n;f&&(Su(n=w(t,a),{rotation:-(Wo(m.get(v,t),_,b,!0)+Math.PI/2)},s),o.add(n),m.setItemGraphicEl(t,n)),y&&(e=S(t,a),n=g.get("clip"),Su(e,{shape:{endAngle:Wo(m.get(v,t),_,b,n)}},s),o.add(e),vl(s.seriesIndex,m.dataType,t,e),d[t]=e)}).update(function(t,e){var n,i;f&&((i=w(t,n=(i=r.getItemGraphicEl(e))?i.rotation:a)).rotation=n,wu(i,{rotation:-(Wo(m.get(v,t),_,b,!0)+Math.PI/2)},s),o.add(i),m.setItemGraphicEl(t,i)),y&&(e=S(t,(i=p[e])?i.shape.endAngle:a),i=g.get("clip"),wu(e,{shape:{endAngle:Wo(m.get(v,t),_,b,i)}},s),o.add(e),vl(s.seriesIndex,m.dataType,t,e),d[t]=e)}).execute(),m.each(function(t){var e,n,i,o,r=m.getItemModel(t),a=r.getModel("emphasis");f&&(o=m.getItemGraphicEl(t),n=(e=m.getItemVisual(t,"style")).fill,o instanceof qs?(i=o.style,o.useStyle(G({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},e))):(o.useStyle(e),"pointer"!==o.type&&o.setColor(n)),o.setStyle(r.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===o.style.fill&&o.setStyle("fill",l(Wo(m.get(v,t),_,[0,1],!0))),o.z2EmphasisLift=0,fu(o,r),hu(o,a.get("focus"),a.get("blurScope"))),y&&((o=d[t]).useStyle(m.getItemVisual(t,"style")),o.setStyle(r.getModel(["progress","itemStyle"]).getItemStyle()),o.z2EmphasisLift=0,fu(o,r),hu(o,a.get("focus"),a.get("blurScope")))}),this._progressEls=d)},Ak.prototype._renderAnchor=function(t,e){var n,i,o,r=t.getModel("anchor");r.get("show")&&(n=r.get("size"),i=r.get("icon"),o=r.get("offsetCenter"),t=r.get("keepAspect"),(t=Fm(i,e.cx-n/2+Uo(o[0],e.r),e.cy-n/2+Uo(o[1],e.r),n,n,null,t)).z2=r.get("showAbove")?1:0,t.setStyle(r.getModel("itemStyle").getItemStyle()),this.group.add(t))},Ak.prototype._renderTitleAndDetail=function(c,t,e,p,d){var n=this,f=c.getData(),g=f.mapDimension("value"),y=+c.get("min"),m=+c.get("max"),v=new Ao,x=[],_=[],b=c.isAnimationEnabled(),w=c.get(["pointer","showAbove"]);f.diff(this._data).add(function(t){x[t]=new xl({silent:!0}),_[t]=new xl({silent:!0})}).update(function(t,e){x[t]=n._titleEls[e],_[t]=n._detailEls[e]}).execute(),f.each(function(t){var e,n=f.getItemModel(t),a=f.get(g,t),i=new Ao,o=p(Wo(a,[y,m],[0,1],!0)),r=n.getModel("title");r.get("show")&&(h=r.get("offsetCenter"),s=d.cx+Uo(h[0],d.r),l=d.cy+Uo(h[1],d.r),(e=x[t]).attr({z2:w?0:2,style:Ru(r,{x:s,y:l,text:f.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:o})}),i.add(e));var s,l,u,h=n.getModel("detail");h.get("show")&&(r=h.get("offsetCenter"),s=d.cx+Uo(r[0],d.r),l=d.cy+Uo(r[1],d.r),n=Uo(h.get("width"),d.r),r=Uo(h.get("height"),d.r),o=c.get(["progress","show"])?f.getItemVisual(t,"style").fill:o,e=_[t],u=h.get("formatter"),e.attr({z2:w?0:2,style:Ru(h,{x:s,y:l,text:wk(a,u),width:isNaN(n)?null:n,height:isNaN(r)?null:r,align:"center",verticalAlign:"middle"},{inheritColor:o})}),Hu(e,{normal:h},a,function(t){return wk(t,u)}),b&&Wu(e,t,f,c,{getFormattedLabel:function(t,e,n,i,o,r){return wk(r?r.interpolatedValue:a,u)}}),i.add(e)),v.add(i)}),this.group.add(v),this._titleEls=x,this._detailEls=_},Ak.type="gauge",Ak),Ck=(y(Dk,Sk=Sf),Dk.prototype.getInitialData=function(t,e){return nI(this,["value"])},Dk.type="series.gauge",Dk.defaultOption={zlevel:0,z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},Dk);function Dk(){var t=null!==Sk&&Sk.apply(this,arguments)||this;return t.type=Dk.type,t.visualStyleAccessPath="itemStyle",t}function Ak(){var t=null!==Mk&&Mk.apply(this,arguments)||this;return t.type=Ak.type,t}var kk,Lk,Pk,Ok=["itemStyle","opacity"],Rk=(y(Bk,Pk=Ry),Bk.prototype.updateData=function(t,e,n){var i=t.hostModel,o=t.getItemModel(e),r=t.getItemLayout(e),a=o.getModel("emphasis"),s=null==(s=o.get(Ok))?1:s;n||Du(this),this.useStyle(t.getItemVisual(e,"style")),this.style.lineJoin="round",n?(this.setShape({points:r.points}),this.style.opacity=0,Su(this,{style:{opacity:s}},i,e)):wu(this,{style:{opacity:s},shape:{points:r.points}},i,e),fu(this,o),this._updateLabel(t,e),hu(this,a.get("focus"),a.get("blurScope"))},Bk.prototype._updateLabel=function(t,e){var n=this.getTextGuideLine(),i=this.getTextContent(),o=t.hostModel,r=t.getItemModel(e),a=t.getItemLayout(e).label,s=t.getItemVisual(e,"style"),l=s.fill;Pu(i,Ou(r),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:s.opacity,defaultText:t.getName(e)},{normal:{align:a.textAlign,verticalAlign:a.verticalAlign}}),this.setTextConfig({local:!0,inside:!!a.inside,insideStroke:l,outsideFill:l});t=a.linePoints;n.setShape({points:t}),this.textGuideLineConfig={anchor:t?new Ui(t[0][0],t[0][1]):null},wu(i,{style:{x:a.x,y:a.y}},o,e),i.attr({rotation:a.rotation,originX:a.x,originY:a.y,z2:10}),Rb(this,Nb(r),{stroke:l})},Bk),Nk=(y(Vk,Lk=Nf),Vk.prototype.render=function(e,t,n){var i=e.getData(),o=this._data,r=this.group;i.diff(o).add(function(t){var e=new Rk(i,t);i.setItemGraphicEl(t,e),r.add(e)}).update(function(t,e){e=o.getItemGraphicEl(e);e.updateData(i,t),r.add(e),i.setItemGraphicEl(t,e)}).remove(function(t){Cu(o.getItemGraphicEl(t),e,t)}).execute(),this._data=i},Vk.prototype.remove=function(){this.group.removeAll(),this._data=null},Vk.prototype.dispose=function(){},Vk.type="funnel",Vk),zk=(y(Ek,kk=Sf),Ek.prototype.init=function(t){kk.prototype.init.apply(this,arguments),this.legendVisualProvider=new oI(Q(this.getData,this),Q(this.getRawData,this)),this._defaultLabelLine(t)},Ek.prototype.getInitialData=function(t,e){return nI(this,{coordDimensions:["value"],encodeDefaulter:tt(Oc,this)})},Ek.prototype._defaultLabelLine=function(t){fr(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},Ek.prototype.getDataParams=function(t){var e=this.getData(),n=kk.prototype.getDataParams.call(this,t),i=e.mapDimension("value"),o=e.getSum(i);return n.percent=o?+(e.get(i,t)/o*100).toFixed(2):0,n.$vars.push("percent"),n},Ek.type="series.funnel",Ek.defaultOption={zlevel:0,z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},Ek);function Ek(){var t=null!==kk&&kk.apply(this,arguments)||this;return t.type=Ek.type,t}function Vk(){var t=null!==Lk&&Lk.apply(this,arguments)||this;return t.type=Vk.type,t.ignoreLabelLineUpdate=!0,t}function Bk(t,e){var n=Pk.call(this)||this,i=n,o=new Ey,r=new xl;return i.setTextContent(r),n.setTextGuideLine(o),n.updateData(t,e,!0),n}function Gk(t,C){t.eachSeriesByType("funnel",function(t){var a=t.getData(),s=a.mapDimension("value"),e=t.get("sort"),n=(n=C,oc(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})),l=t.get("orient"),u=n.width,h=n.height,i=function(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,function(t){return t}),o=[],r="ascending"===e,a=0,s=t.count();a<s;a++)o[a]=a;return"function"==typeof e?o.sort(e):"none"!==e&&o.sort(function(t,e){return r?i[t]-i[e]:i[e]-i[t]}),o}(a,e),c=n.x,p=n.y,d="horizontal"===l?[Uo(t.get("minSize"),h),Uo(t.get("maxSize"),h)]:[Uo(t.get("minSize"),u),Uo(t.get("maxSize"),u)],n=a.getDataExtent(s),f=t.get("min"),g=t.get("max");null==f&&(f=Math.min(n[0],0)),null==g&&(g=n[1]);function o(t,e){if("horizontal"===l){var n=Wo(a.get(s,t)||0,[f,g],d,!0),i=void 0;switch(y){case"top":i=p;break;case"center":i=p+(h-n)/2;break;case"bottom":i=p+(h-n)}return[[e,i],[e,i+n]]}var o,r=Wo(a.get(s,t)||0,[f,g],d,!0);switch(y){case"left":o=c;break;case"center":o=c+(u-r)/2;break;case"right":o=c+u-r}return[[o,e],[o+r,e]]}var y=t.get("funnelAlign"),r=t.get("gap"),m=(("horizontal"===l?u:h)-r*(a.count()-1))/a.count();"ascending"===e&&(m=-m,r=-r,"horizontal"===l?c+=u:p+=h,i=i.reverse());for(var v,x,_=0;_<i.length;_++){var b,w,S,M=i[_],I=i[_+1],T=a.getItemModel(M);"horizontal"===l?(null==(b=T.get(["itemStyle","width"]))?b=m:(b=Uo(b,u),"ascending"===e&&(b=-b)),w=o(M,c),S=o(I,c+b),c+=b+r):(null==(T=T.get(["itemStyle","height"]))?T=m:(T=Uo(T,h),"ascending"===e&&(T=-T)),w=o(M,p),S=o(I,p+T),p+=T+r),a.setItemLayout(M,{points:w.concat(S.slice().reverse())})}x=(v=a).hostModel.get("orient"),v.each(function(t){var e,n,i,o,r=v.getItemModel(t),a=r.getModel("label").get("position"),s=r.getModel("labelLine"),l=v.getItemLayout(t),u=l.points,h="inner"===a||"inside"===a||"center"===a||"insideLeft"===a||"insideRight"===a,c=h?(o="insideLeft"===a?(e=(u[0][0]+u[3][0])/2+5,n=(u[0][1]+u[3][1])/2,"left"):"insideRight"===a?(e=(u[1][0]+u[2][0])/2-5,n=(u[1][1]+u[2][1])/2,"right"):(e=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,n=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,"center"),[[e,n],[e,n]]):(c=t=r=i=void 0,s=s.get("length"),o="left"===a?(i=(u[3][0]+u[0][0])/2,r=(u[3][1]+u[0][1])/2,e=(t=i-s)-5,"right"):"right"===a?(i=(u[1][0]+u[2][0])/2,r=(u[1][1]+u[2][1])/2,e=(t=i+s)+5,"left"):"top"===a?(i=(u[3][0]+u[0][0])/2,n=(c=(r=(u[3][1]+u[0][1])/2)-s)-5,"center"):"bottom"===a?(i=(u[1][0]+u[2][0])/2,n=(c=(r=(u[1][1]+u[2][1])/2)+s)+5,"center"):"rightTop"===a?(i=("horizontal"===x?u[3]:u[1])[0],r=("horizontal"===x?u[3]:u[1])[1],"horizontal"===x?(n=(c=r-s)-5,"center"):(e=(t=i+s)+5,"top")):"rightBottom"===a?(i=u[2][0],r=u[2][1],"horizontal"===x?(n=(c=r+s)+5,"center"):(e=(t=i+s)+5,"bottom")):"leftTop"===a?(i=u[0][0],r=("horizontal"===x?u[0]:u[1])[1],"horizontal"===x?(n=(c=r-s)-5,"center"):(e=(t=i-s)-5,"right")):"leftBottom"===a?(i=("horizontal"===x?u[1]:u[3])[0],r=("horizontal"===x?u[1]:u[2])[1],"horizontal"===x?(n=(c=r+s)+5,"center"):(e=(t=i-s)-5,"right")):(i=(u[1][0]+u[2][0])/2,r=(u[1][1]+u[2][1])/2,"horizontal"===x?(n=(c=r+s)+5,"center"):(e=(t=i+s)+5,"left")),"horizontal"===x?e=t=i:n=c=r,[[i,r],[t,c]]);l.label={linePoints:c,x:e,y:n,verticalAlign:"middle",textAlign:o,inside:h}})})}var Fk;function Hk(){var t=null!==Fk&&Fk.apply(this,arguments)||this;return t.type=Hk.type,t._dataGroup=new Ao,t._initialized=!1,t}function Wk(t,e,n,i){for(var o,r=[],a=0;a<n.length;a++){var s=n[a],l=t.get(t.mapDimension(s),e);o=l,("category"===i.getAxis(s).type?null==o:null==o||isNaN(o))||r.push(i.dataToPoint(l,s))}return r}function Uk(t,e,n,i,o){o=Wk(t,n,i,o),o=new Ey({shape:{points:o},z2:10});return e.add(o),t.setItemGraphicEl(n,o),o}function Xk(t){t=t.get("smooth",!0);return{smooth:t=dt(t=sr(t=!0===t?.3:t))?0:t}}function Yk(t,e,n,i){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",i.smooth);e=e.getItemModel(n),n=e.getModel("emphasis");fu(t,e,"lineStyle"),hu(t,n.get("focus"),n.get("blurScope"))}var Zk,jk=(y(Hk,Fk=Nf),Hk.prototype.init=function(){this.group.add(this._dataGroup)},Hk.prototype.render=function(i,t,e,n){var o,r,a,s,l,u=this._dataGroup,h=i.getData(),c=this._data,p=i.coordinateSystem,d=p.dimensions,f=Xk(i);h.diff(c).add(function(t){Yk(Uk(h,u,t,d,p),h,t,f)}).update(function(t,e){var n=c.getItemGraphicEl(e),e=Wk(h,t,d,p);h.setItemGraphicEl(t,n),wu(n,{shape:{points:e}},i,t),Du(n),Yk(n,h,t,f)}).remove(function(t){t=c.getItemGraphicEl(t),u.remove(t)}).execute(),this._initialized||(this._initialized=!0,r=i,a=function(){setTimeout(function(){u.removeClipPath()})},s=(o=p).model,l=o.getRect(),o=new rl({shape:{x:l.x,y:l.y,width:l.width,height:l.height}}),s="horizontal"===s.get("layout")?"width":"height",o.setShape(s,0),Su(o,{shape:{width:l.width,height:l.height}},r,a),u.setClipPath(o)),this._data=h},Hk.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},Hk.prototype.incrementalRender=function(t,e,n){for(var i=e.getData(),o=e.coordinateSystem,r=o.dimensions,a=Xk(e),s=t.start;s<t.end;s++){var l=Uk(i,this._dataGroup,s,r,o);l.incremental=!0,Yk(l,i,s,a)}},Hk.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},Hk.type="parallel",Hk);function qk(){var t=null!==Zk&&Zk.apply(this,arguments)||this;return t.type=qk.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}function Kk(t){t=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(t){var n={};return Z(t.dimensions,function(t){var e=+t.replace("dim","");n[t]=e}),n}}var $k=(y(qk,Zk=Sf),qk.prototype.getInitialData=function(t,e){return Rx(null,this,{useEncodeDefaulter:Q(Kk,null,this)})},qk.prototype.getRawIndicesByActiveState=function(n){var t=this.coordinateSystem,i=this.getData(),o=[];return t.eachActiveState(i,function(t,e){n===t&&o.push(i.getRawIndex(e))}),o},qk.type="series.parallel",qk.dependencies=["parallel"],qk.defaultOption={zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},qk),Jk=["lineStyle","opacity"],Qk={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,o={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(t,i){n.eachActiveState(i,function(t,e){var n=o[t];"normal"!==t||!i.hasItemOption||null!=(t=i.getItemModel(e).get(Jk,!0))&&(n=t),i.ensureUniqueItemVisual(e,"style").opacity=n},t.start,t.end)}}}};function tL(t){var n;(function(t){{var e;t.parallel||(e=!1,Z(t.series,function(t){t&&"parallel"===t.type&&(e=!0)}),e&&(t.parallel=[{}]))}})(t),Z(dr((n=t).parallelAxis),function(t){var e;at(t)&&(e=t.parallelIndex||0,(e=dr(n.parallel)[e])&&e.parallelAxisDefault&&V(t,e.parallelAxisDefault,!1))})}var eL,M=(y(iL,eL=If),iL.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},Z(nL,function(t,e){n.getZr().on(e,this._handlers[e]=Q(t,this))},this)),Gf(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},iL.prototype.dispose=function(t,n){Z(this._handlers,function(t,e){n.getZr().off(e,t)}),this._handlers=null},iL.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},iL.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(G({type:"parallelAxisExpand"},t))},iL.type="parallel",iL),nL={mousedown:function(t){oL(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(oL(this,"click")&&e){var n=[t.offsetX,t.offsetY];if(5<Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2))return;t=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==t.behavior&&this._dispatchExpand({axisExpandWindow:t.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){var e,n;!this._mouseDownPoint&&oL(this,"mousemove")&&("jump"===(t=(n=(e=this._model).coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY])).behavior)&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===t?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===t?null:{duration:0}}))}};function iL(){var t=null!==eL&&eL.apply(this,arguments)||this;return t.type=iL.type,t}function oL(t,e){t=t._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var rL,aL,sL=M,lL=(y(cL,aL=xc),cL.prototype.init=function(){aL.prototype.init.apply(this,arguments),this.mergeOption({})},cL.prototype.mergeOption=function(t){var e=this.option;t&&V(e,t,!0),this._initDimensions()},cL.prototype.contains=function(t,e){t=t.get("parallelIndex");return null!=t&&e.getComponent("parallel",t)===this},cL.prototype.setAxisExpand=function(e){Z(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])},this)},cL.prototype._initDimensions=function(){var e=this.dimensions=[],n=this.parallelAxisIndex=[];Z(K(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(t){return(t.get("parallelIndex")||0)===this.componentIndex},this),function(t){e.push("dim"+t.get("dim")),n.push(t.componentIndex)})},cL.type="parallel",cL.dependencies=["parallelAxis"],cL.layoutMode="box",cL.defaultOption={zlevel:0,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},cL),uL=(y(hL,rL=cb),hL.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},hL);function hL(t,e,n,i,o){n=rL.call(this,t,e,n)||this;return n.type=i||"value",n.axisIndex=o,n}function cL(){var t=null!==aL&&aL.apply(this,arguments)||this;return t.type=cL.type,t}function pL(t,e,n,i,o,r){t=t||0;var a=n[1]-n[0];null!=o&&(o=fL(o,[0,a])),null!=r&&(r=Math.max(r,null!=o?o:0)),"all"===i&&(s=fL(s=Math.abs(e[1]-e[0]),[0,a]),o=r=fL(s,[o,r]),i=0),e[0]=fL(e[0],n),e[1]=fL(e[1],n);var s=dL(e,i);e[i]+=t;var t=o||0,n=n.slice();return s.sign<0?n[0]+=t:n[1]-=t,e[i]=fL(e[i],n),n=dL(e,i),null!=o&&(n.sign!==s.sign||n.span<o)&&(e[1-i]=e[i]+s.sign*o),n=dL(e,i),null!=r&&n.span>r&&(e[1-i]=e[i]+n.sign*r),e}function dL(t,e){t=t[e]-t[1-e];return{span:Math.abs(t),sign:0<t||!(t<0)&&e?-1:1}}function fL(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var gL=Z,yL=Math.min,mL=Math.max,vL=Math.floor,xL=Math.ceil,_L=Xo,bL=Math.PI;function wL(t,e,n){this.type="parallel",this._axesMap=Tt(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}function SL(t,e){return yL(mL(t,e[0]),e[1])}var ML=(wL.prototype._init=function(t,i,e){var n=t.dimensions,o=t.parallelAxisIndex;gL(n,function(t,e){var n=o[e],e=i.getComponent("parallelAxis",n),t=this._axesMap.set(t,new uL(t,V_(e),[0,0],e.get("type"),n)),n="category"===t.type;t.onBand=n&&e.get("boundaryGap"),t.inverse=e.get("inverse"),(e.axis=t).model=e,t.coordinateSystem=e.coordinateSystem=this},this)},wL.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},wL.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,o=e.pixelDimIndex,r=t[1-o],o=t[o];return n<=r&&r<=n+e.axisLength&&i<=o&&o<=i+e.layoutLength},wL.prototype.getModel=function(){return this._model},wL.prototype._updateAxesFromSeries=function(e,i){i.eachSeries(function(t){var n;e.contains(t,i)&&(n=t.getData(),gL(this.dimensions,function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(n,n.mapDimension(t)),E_(e.scale,e.model)},this))},this)},wL.prototype.resize=function(t,e){this._rect=oc(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},wL.prototype.getRect=function(){return this._rect},wL.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,n=["x","y"],i=["width","height"],o=t.get("layout"),r="horizontal"===o?0:1,a=e[i[r]],s=[0,a],l=this.dimensions.length,u=SL(t.get("axisExpandWidth"),s),h=SL(t.get("axisExpandCount")||0,[0,l]),c=t.get("axisExpandable")&&3<l&&h<l&&1<h&&0<u&&0<a,p=t.get("axisExpandWindow");p?(d=SL(p[1]-p[0],s),p[1]=p[0]+d):(d=SL(u*(h-1),s),(p=[u*(t.get("axisExpandCenter")||vL(l/2))-d/2])[1]=p[0]+d);t=(a-d)/(l-h);t<3&&(t=0);var d=[vL(_L(p[0]/u,1))+1,xL(_L(p[1]/u,1))-1],h=t/u*p[0];return{layout:o,pixelDimIndex:r,layoutBase:e[n[r]],layoutLength:a,axisBase:e[n[1-r]],axisLength:e[i[1-r]],axisExpandable:c,axisExpandWidth:u,axisCollapseWidth:t,axisExpandWindow:p,axisCount:l,winInnerIndices:d,axisExpandWindow0Pos:h}},wL.prototype._layoutAxes=function(){var r=this._rect,t=this._axesMap,e=this.dimensions,a=this._makeLayoutInfo(),s=a.layout;t.each(function(t){var e=[0,a.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])}),gL(e,function(t,e){var n=(a.axisExpandable?function(t,e){var n,i,o=e.layoutLength,r=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,h=!1;return t<l[0]?(n=t*s,i=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*r-e.axisExpandWindow[0],u=r,h=!0):(n=o-(a-1-t)*s,i=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:h,nameTruncateMaxWidth:i}}:function(t,e){e=e.layoutLength/(e.axisCount-1);return{position:e*t,axisNameAvailableWidth:e,axisLabelShow:!0}})(e,a),i={horizontal:{x:n.position,y:a.axisLength},vertical:{x:0,y:n.position}},o=[i[s].x+r.x,i[s].y+r.y],e={horizontal:bL/2,vertical:0}[s],i=Ii();ki(i,i,e),Ai(i,i,o),this._axesLayout[t]={position:o,rotation:e,transform:i,axisNameAvailableWidth:n.axisNameAvailableWidth,axisLabelShow:n.axisLabelShow,nameTruncateMaxWidth:n.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},wL.prototype.getAxis=function(t){return this._axesMap.get(t)},wL.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},wL.prototype.eachActiveState=function(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());var o=this._axesMap,r=this.dimensions,a=[],s=[];Z(r,function(t){a.push(e.mapDimension(t)),s.push(o.get(t).model)});for(var l=this.hasAxisBrushed(),u=n;u<i;u++){var h=void 0;if(l){for(var h="active",c=e.getValues(a,u),p=0,d=r.length;p<d;p++)if("inactive"===s[p].getActiveState(c[p])){h="inactive";break}}else h="normal";t(h,u)}},wL.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,o=t.length;i<o;i++)"normal"!==e.get(t[i]).model.getActiveState()&&(n=!0);return n},wL.prototype.axisCoordToPoint=function(t,e){return Cm([t,0],this._axesLayout[e].transform)},wL.prototype.getAxisLayout=function(t){return E(this._axesLayout[t])},wL.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,i=e.axisExpandWindow.slice(),o=i[1]-i[0],r=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var a,s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",u=e.axisCollapseWidth,t=this._model.get("axisExpandSlideTriggerArea"),n=null!=t[0];return u?(n&&u&&s<o*t[0]?(l="jump",a=s-o*t[2]):n&&u&&s>o*(1-t[0])?(l="jump",a=s-o*(1-t[2])):0<=(a=s-o*t[1])&&(a=s-o*(1-t[1]))<=0&&(a=0),(a*=e.axisExpandWidth/u)?pL(a,i,r,"all"):l="none"):(a=i[1]-i[0],(i=[mL(0,r[1]*s/a-a/2)])[1]=yL(r[1],i[0]+a),i[0]=i[1]-a),{axisExpandWindow:i,behavior:l}},wL);var IL,TL={create:function(i,o){var r=[];return i.eachComponent("parallel",function(t,e){var n=new ML(t,i,o);n.name="parallel_"+e,n.resize(t,o),(t.coordinateSystem=n).model=t,r.push(n)}),i.eachSeries(function(t){var e;"parallel"===t.get("coordinateSystem")&&(e=t.getReferringComponents("parallel",Ar).models[0],t.coordinateSystem=e.coordinateSystem)}),r}},Zr=(y(CL,IL=xc),CL.prototype.getAreaSelectStyle=function(){return Xr([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},CL.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=E(t);if(e)for(var n=e.length-1;0<=n;n--)Yo(e[n])},CL.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=e.length;i<o;i++)if(e[i][0]<=t&&t<=e[i][1])return"active";return"inactive"},CL);function CL(){var t=null!==IL&&IL.apply(this,arguments)||this;return t.type=CL.type,t.activeIntervals=[],t}X(Zr,X_);var DL,AL=Zr,kL=!0,LL=Math.min,PL=Math.max,OL=Math.pow,RL=1e4,NL=6,zL=6,EL="globalPan",VL={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},BL={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},GL={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},FL=0,k=(y(HL,DL=ae),HL.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},HL.prototype._doEnableBrush=function(t){var e,n,i=this._zr;this._enableGlobalPan||(e=EL,n=this._uid,iT(i)[e]=n),Z(this._handlers,function(t,e){i.on(e,t)}),this._brushType=t.brushType,this._brushOption=V(E(GL),t,!0)},HL.prototype._doDisableBrush=function(){var t,e,n,i=this._zr;t=i,e=EL,n=this._uid,(t=iT(t))[e]===n&&(t[e]=null),Z(this._handlers,function(t,e){i.off(e,t)}),this._brushType=this._brushOption=null},HL.prototype.setPanels=function(t){var e;return t&&t.length?(e=this._panels={},Z(t,function(t){e[t.panelId]=E(t)})):this._panels=null,this},HL.prototype.mount=function(t){this._enableGlobalPan=(t=t||{}).enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},HL.prototype.updateCovers=function(i){i=j(i,function(t){return V(E(GL),t,!0)});var n="\0-brush-index-",o=this._covers,r=this._covers=[],a=this,s=this._creatingCover;return new K1(o,i,function(t,e){return l(t.__brushOption,e)},l).add(t).update(t).remove(function(t){o[t]!==s&&a.group.remove(o[t])}).execute(),this;function l(t,e){return(null!=t.id?t.id:n+e)+"-"+t.brushType}function t(t,e){var n=i[t];null!=e&&o[e]===s?r[t]=o[e]:(n=r[t]=null!=e?(o[e].__brushOption=n,o[e]):UL(a,WL(a,n)),ZL(a,n))}},HL.prototype.unmount=function(){return this.enableBrush(!1),$L(this),this._zr.remove(this.group),this},HL.prototype.dispose=function(){this.unmount(),this.off()},HL);function HL(t){var e=DL.call(this)||this;return e._track=[],e._covers=[],e._handlers={},e._zr=t,e.group=new Ao,e._uid="brushController_"+FL++,Z(yP,function(t,e){this._handlers[e]=Q(t,this)},e),e}function WL(t,e){var n=vP[e.brushType].createCover(t,e);return n.__brushOption=e,YL(n,e),t.group.add(n),n}function UL(t,e){var n=jL(e);return n.endCreating&&(n.endCreating(t,e),YL(e,e.__brushOption)),e}function XL(t,e){var n=e.__brushOption;jL(e).updateCoverShape(t,e,n.range,n)}function YL(t,e){var n=e.z;null==n&&(n=RL),t.traverse(function(t){t.z=n,t.z2=n})}function ZL(t,e){jL(e).updateCommon(t,e),XL(t,e)}function jL(t){return vP[t.__brushOption.brushType]}function qL(t,e,n){var i,o=t._panels;if(!o)return kL;var r=t._transform;return Z(o,function(t){t.isTargetByCursor(e,n,r)&&(i=t)}),i}function KL(t,e){t=t._panels;if(!t)return kL;e=e.__brushOption.panelId;return null!=e?t[e]:kL}function $L(e){var t=e._covers,n=t.length;return Z(t,function(t){e.group.remove(t)},e),t.length=0,n}function JL(t,e){var n=j(t._covers,function(t){var e=t.__brushOption,t=E(e.range);return{brushType:e.brushType,panelId:e.panelId,range:t}});t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function QL(t){var e=t.length-1;return[t[0],t[e=e<0?0:e]]}function tP(e,n,t,i){var o=new Ao;return o.add(new rl({name:"main",style:oP(t),silent:!0,draggable:!0,cursor:"move",drift:tt(sP,e,n,o,["n","s","w","e"]),ondragend:tt(JL,n,{isEnd:!0})})),Z(i,function(t){o.add(new rl({name:t.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:tt(sP,e,n,o,t),ondragend:tt(JL,n,{isEnd:!0})}))}),o}function eP(t,e,n,i){var o=i.brushStyle.lineWidth||0,r=PL(o,zL),a=n[0][0],s=n[1][0],l=a-o/2,u=s-o/2,h=n[0][1],c=n[1][1],p=h-r+o/2,d=c-r+o/2,n=h-a,h=c-s,c=n+o,o=h+o;iP(t,e,"main",a,s,n,h),i.transformable&&(iP(t,e,"w",l,u,r,o),iP(t,e,"e",p,u,r,o),iP(t,e,"n",l,u,c,r),iP(t,e,"s",l,d,c,r),iP(t,e,"nw",l,u,r,r),iP(t,e,"ne",p,u,r,r),iP(t,e,"sw",l,d,r,r),iP(t,e,"se",p,d,r,r))}function nP(n,i){var t=i.__brushOption,o=t.transformable,e=i.childAt(0);e.useStyle(oP(t)),e.attr({silent:!o,cursor:o?"move":"default"}),Z([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(t){var e=i.childOfName(t.join("")),t=1===t.length?aP(n,t[0]):function(t,e){e=[aP(t,e[0]),aP(t,e[1])];return"e"!==e[0]&&"w"!==e[0]||e.reverse(),e.join("")}(n,t);e&&e.attr({silent:!o,invisible:!o,cursor:o?BL[t]+"-resize":null})})}function iP(t,e,n,i,o,r,a){n=e.childOfName(n);n&&n.setShape((i=hP(t,e,[[i,o],[i+r,o+a]]),r=LL(i[0][0],i[1][0]),o=LL(i[0][1],i[1][1]),a=PL(i[0][0],i[1][0]),i=PL(i[0][1],i[1][1]),{x:r,y:o,width:a-r,height:i-o}))}function oP(t){return F({strokeNoScale:!0},t.brushStyle)}function rP(t,e,n,i){var o=[LL(t,n),LL(e,i)],i=[PL(t,n),PL(e,i)];return[[o[0],i[0]],[o[1],i[1]]]}function aP(t,e){return{left:"w",right:"e",top:"n",bottom:"s"}[Dm({w:"left",e:"right",n:"top",s:"bottom"}[e],Tm(t.group))]}function sP(t,e,n,i,o,r){var a=n.__brushOption,s=t.toRectRange(a.range),l=uP(e,o,r);Z(i,function(t){t=VL[t];s[t[0]][t[1]]+=l[t[0]]}),a.range=t.fromRectRange(rP(s[0][0],s[1][0],s[0][1],s[1][1])),ZL(e,n),JL(e,{isEnd:!1})}function lP(t,e,n,i){var o=e.__brushOption.range,r=uP(t,n,i);Z(o,function(t){t[0]+=r[0],t[1]+=r[1]}),ZL(t,e),JL(t,{isEnd:!1})}function uP(t,e,n){t=t.group,n=t.transformCoordToLocal(e,n),t=t.transformCoordToLocal(0,0);return[n[0]-t[0],n[1]-t[1]]}function hP(t,e,n){e=KL(t,e);return e&&e!==kL?e.clipPath(n,t._transform):E(n)}function cP(t,e,n){if(t._brushType&&!function(t,e,n){t=t._zr;return e<0||e>t.getWidth()||n<0||n>t.getHeight()}(t,e.offsetX,e.offsetY)){var i=t._zr,o=t._covers,r=qL(t,e,n);if(!t._dragging)for(var a=0;a<o.length;a++){var s=o[a].__brushOption;if(r&&(r===kL||s.panelId===r.panelId)&&vP[s.brushType].contain(o[a],n[0],n[1]))return}r&&i.setCursorStyle("crosshair")}}function pP(t){t=t.event;t.preventDefault&&t.preventDefault()}function dP(t,e,n){return t.childOfName("main").contain(e,n)}function fP(t,e,n,i){var o,r,a=t._creatingCover,s=t._creatingPanel,l=t._brushOption;return t._track.push(n.slice()),function(t){if((n=t._track).length){var e=n[n.length-1],t=n[0],n=e[0]-t[0],t=e[1]-t[1],t=OL(n*n+t*t,.5);return NL<t}}(t)||a?(s&&!a&&("single"===l.brushMode&&$L(t),(o=E(l)).brushType=gP(o.brushType,s),o.panelId=s===kL?null:s.panelId,a=t._creatingCover=WL(t,o),t._covers.push(a)),a&&(r=vP[gP(t._brushType,s)],a.__brushOption.range=r.getCreatingRange(hP(t,a,t._track)),i&&(UL(t,a),r.updateCommon(t,a)),XL(t,a),r={isEnd:i})):i&&"single"===l.brushMode&&l.removeOnClick&&qL(t,e,n)&&$L(t)&&(r={isEnd:i,removeOnClick:!0}),r}function gP(t,e){return"auto"===t?e.defaultBrushType:t}var yP={mousedown:function(t){var e;this._dragging?mP(this,t):t.target&&t.target.draggable||(pP(t),e=this.group.transformCoordToLocal(t.offsetX,t.offsetY),this._creatingCover=null,(this._creatingPanel=qL(this,t,e))&&(this._dragging=!0,this._track=[e.slice()]))},mousemove:function(t){var e=t.offsetX,n=t.offsetY,n=this.group.transformCoordToLocal(e,n);cP(this,t,n),this._dragging&&(pP(t),(n=fP(this,t,n,!1))&&JL(this,n))},mouseup:function(t){mP(this,t)}};function mP(t,e){var n,i;t._dragging&&(pP(e),n=e.offsetX,i=e.offsetY,i=t.group.transformCoordToLocal(n,i),i=fP(t,e,i,!0),t._dragging=!1,t._track=[],t._creatingCover=null,i&&JL(t,i))}var vP={lineX:xP(0),lineY:xP(1),rect:{createCover:function(t,e){function n(t){return t}return tP({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){t=QL(t);return rP(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(t,e,n,i){eP(t,e,n,i)},updateCommon:nP,contain:dP},polygon:{createCover:function(t,e){var n=new Ao;return n.add(new Ey({name:"main",style:oP(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Ry({name:"main",draggable:!0,drift:tt(lP,t,e),ondragend:tt(JL,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:hP(t,e,n)})},updateCommon:nP,contain:dP}};function xP(a){return{createCover:function(t,e){return tP({toRectRange:function(t){t=[t,[0,100]];return a&&t.reverse(),t},fromRectRange:function(t){return t[a]}},t,e,[[["w"],["e"]],[["n"],["s"]]][a])},getCreatingRange:function(t){t=QL(t);return[LL(t[0][a],t[1][a]),PL(t[0][a],t[1][a])]},updateCoverShape:function(t,e,n,i){var o=KL(t,e),r=[n,o!==kL&&o.getLinearBrushOtherExtent?o.getLinearBrushOtherExtent(a):[0,[(r=t._zr).getWidth(),r.getHeight()][1-a]]];a&&r.reverse(),eP(t,e,r,i)},updateCommon:nP,contain:dP}}var _P=k;function bP(e){return e=MP(e),function(t){return Lm(t,e)}}function wP(n,i){return n=MP(n),function(t){var e=null!=i?i:t,t=e?n.width:n.height,e=e?n.x:n.y;return[e,e+(t||0)]}}function SP(t,n,i){var o=MP(t);return function(t,e){return o.contain(e[0],e[1])&&!pT(t,n,i)}}function MP(t){return Qi.create(t)}var IP,TP=["axisLine","axisTickLabel","axisName"];function CP(){var t=null!==IP&&IP.apply(this,arguments)||this;return t.type=CP.type,t}var DP=(y(CP,IP=If),CP.prototype.init=function(t,e){IP.prototype.init.apply(this,arguments),(this._brushController=new _P(e.getZr())).on("brush",Q(this._onBrush,this))},CP.prototype.render=function(t,e,n,i){var o,r,a,s;r=t,a=e,(s=i)&&"axisAreaSelect"===s.type&&a.findComponents({mainType:"parallelAxis",query:s})[0]===r||(this.axisModel=t,this.api=n,this.group.removeAll(),o=this._axisGroup,this._axisGroup=new Ao,this.group.add(this._axisGroup),t.get("show")&&(a=(i=e.getComponent("parallel",t.get("parallelIndex"))).coordinateSystem,r=(s=t.getAreaSelectStyle()).width,e=t.axis.dim,a=G({strokeContainThreshold:r},a.getAxisLayout(e)),e=new e2(t,a),Z(TP,e.add,e),this._axisGroup.add(e.getGroup()),this._refreshBrushController(a,s,t,i,r,n),km(o,this._axisGroup,t)))},CP.prototype._refreshBrushController=function(t,e,n,i,o,r){var a,s=n.axis.getExtent(),l=s[1]-s[0],u=Math.min(30,.1*Math.abs(l)),o=Qi.create({x:s[0],y:-o/2,width:l,height:o});o.x-=u,o.width+=2*u,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:bP(o),isTargetByCursor:SP(o,r,i),getLinearBrushOtherExtent:wP(o,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers((a=n.axis,j(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[a.dataToCoord(t[0],!0),a.dataToCoord(t[1],!0)]}})))},CP.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,i=n.axis,e=j(e,function(t){return[i.coordToData(t.range[0],!0),i.coordToData(t.range[1],!0)]});!n.option.realtime!==t.isEnd&&!t.removeOnClick||this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:e})},CP.prototype.dispose=function(){this._brushController.dispose()},CP.type="parallelAxis",CP),AP={type:"axisAreaSelect",event:"axisAreaSelected"};var kP={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function LP(t){t.registerComponentView(sL),t.registerComponentModel(lL),t.registerCoordinateSystem("parallel",TL),t.registerPreprocessor(tL),t.registerComponentModel(AL),t.registerComponentView(DP),DI(t,"parallel",AL,kP),(t=t).registerAction(AP,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(t){t.axis.model.setActiveIntervals(e.intervals)})}),t.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(t){t.setAxisExpand(e)})})}var PP,OP,RP=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0},NP=(y(EP,OP=Bs),EP.prototype.getDefaultShape=function(){return new RP},EP.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},EP.prototype.highlight=function(){Jl(this)},EP.prototype.downplay=function(){Ql(this)},EP);function zP(){var t=null!==PP&&PP.apply(this,arguments)||this;return t.type=zP.type,t._focusAdjacencyDisabled=!1,t}function EP(t){return OP.call(this,t)||this}var VP,BP=(y(zP,PP=Nf),zP.prototype.render=function(b,t,i){var e,n,o=this,r=b.getGraph(),w=this.group,a=b.layoutInfo,S=a.width,M=a.height,s=b.getData(),I=b.getData("edge"),T=b.get("orient");this._model=b,w.removeAll(),w.x=a.x,w.y=a.y,r.eachEdge(function(t){var e=new NP,n=_l(e);n.dataIndex=t.dataIndex,n.seriesIndex=b.seriesIndex,n.dataType="edge";var i,o,r,a,s,l,u,h=t.getModel(),c=h.getModel("lineStyle"),p=c.get("curveness"),d=t.node1.getLayout(),f=t.node1.getModel(),g=f.get("localX"),y=f.get("localY"),m=t.node2.getLayout(),v=t.node2.getModel(),n=v.get("localX"),f=v.get("localY"),v=t.getLayout();switch(e.shape.extent=Math.max(1,v.dy),v="vertical"===(e.shape.orient=T)?(i=(null!=g?g*S:d.x)+v.sy,o=(null!=y?y*M:d.y)+d.dy,r=(null!=n?n*S:m.x)+v.ty,s=i,l=o*(1-p)+(a=null!=f?f*M:m.y)*p,u=r,o*p+a*(1-p)):(i=(null!=g?g*S:d.x)+d.dx,o=(null!=y?y*M:d.y)+v.sy,s=i*(1-p)+(r=null!=n?n*S:m.x)*p,l=o,u=i*p+r*(1-p),a=(null!=f?f*M:m.y)+v.ty),e.setShape({x1:i,y1:o,x2:r,y2:a,cpx1:s,cpy1:l,cpx2:u,cpy2:v}),e.useStyle(c.getItemStyle()),e.style.fill){case"source":e.style.fill=t.node1.getVisual("color"),e.style.decal=t.node1.getVisual("style").decal;break;case"target":e.style.fill=t.node2.getVisual("color"),e.style.decal=t.node2.getVisual("style").decal;break;case"gradient":var x=t.node1.getVisual("color"),_=t.node2.getVisual("color");"string"==typeof x&&"string"==typeof _&&(e.style.fill=new qy(0,0,+("horizontal"===T),+("vertical"===T),[{color:x,offset:0},{color:_,offset:1}]))}c=h.getModel("emphasis");fu(e,h,"lineStyle",function(t){return t.getItemStyle()}),w.add(e),I.setItemGraphicEl(t.dataIndex,e);h=c.get("focus");hu(e,"adjacency"===h?t.getAdjacentDataIndices():h,c.get("blurScope")),_l(e).dataType="edge"}),r.eachNode(function(t){var e=t.getLayout(),n=t.getModel(),i=n.get("localX"),o=n.get("localY"),r=n.getModel("emphasis"),e=new rl({shape:{x:null!=i?i*S:e.x,y:null!=o?o*M:e.y,width:e.dx,height:e.dy},style:n.getModel("itemStyle").getItemStyle(),z2:10});Pu(e,Ou(n),{labelFetcher:b,labelDataIndex:t.dataIndex,defaultText:t.id}),e.disableLabelAnimation=!0,e.setStyle("fill",t.getVisual("color")),e.setStyle("decal",t.getVisual("style").decal),fu(e,n),w.add(e),s.setItemGraphicEl(t.dataIndex,e),_l(e).dataType="node";n=r.get("focus");hu(e,"adjacency"===n?t.getAdjacentDataIndices():n,r.get("blurScope"))}),s.eachItemGraphicEl(function(t,n){s.getItemModel(n).get("draggable")&&(t.drift=function(t,e){o._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=e,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:b.id,dataIndex:s.getRawIndex(n),localX:this.shape.x/S,localY:this.shape.y/M})},t.ondragend=function(){o._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")}),!this._data&&b.isAnimationEnabled()&&w.setClipPath((e=w.getBoundingRect(),n=b,a=function(){w.removeClipPath()},Su(r=new rl({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}}),{shape:{width:e.width+20}},n,a),r)),this._data=b.getData()},zP.prototype.dispose=function(){},zP.type="sankey",zP),GP=(y(FP,VP=Sf),FP.prototype.getInitialData=function(t,e){var n=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var r=this.levelModels,a=0;a<o.length;a++)null!=o[a].depth&&0<=o[a].depth&&(r[o[a].depth]=new th(o[a],this,e));if(i&&n)return dk(i,n,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t,e){var n=t.parentModel,e=n.getData().getItemLayout(e);return e&&(e=e.depth,(e=n.levelModels[e])&&(t.parentModel=e)),t}),e.wrapMethod("getItemModel",function(t,e){var n=t.parentModel,e=n.getGraph().getEdgeByIndex(e).node1.getLayout();return e&&(e=e.depth,(e=n.levelModels[e])&&(t.parentModel=e)),t})}).data},FP.prototype.setNodePosition=function(t,e){t=(this.option.data||this.option.nodes)[t];t.localX=e[0],t.localY=e[1]},FP.prototype.getGraph=function(){return this.getData().graph},FP.prototype.getEdgeData=function(){return this.getGraph().edgeData},FP.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}if("edge"===n){var o=this.getDataParams(t,n),r=o.data,o=o.value;return Jd("nameValue",{name:r.source+" -- "+r.target,value:o,noValue:i(o)})}o=this.getGraph().getNodeByIndex(t).getLayout().value,n=this.getDataParams(t,n).data.name;return Jd("nameValue",{name:null!=n?n+"":null,value:o,noValue:i(o)})},FP.prototype.optionUpdated=function(){},FP.prototype.getDataParams=function(t,e){var n=VP.prototype.getDataParams.call(this,t,e);return null==n.value&&"node"===e&&(t=this.getGraph().getNodeByIndex(t).getLayout().value,n.value=t),n},FP.type="series.sankey",FP.defaultOption={zlevel:0,z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},FP);function FP(){var t=null!==VP&&VP.apply(this,arguments)||this;return t.type=FP.type,t}function HP(t,u){t.eachSeriesByType("sankey",function(t){var e=t.get("nodeWidth"),n=t.get("nodeGap"),i=(l=u,oc(t.getBoxLayoutParams(),{width:l.getWidth(),height:l.getHeight()})),o=(t.layoutInfo=i).width,r=i.height,a=t.getGraph(),s=a.nodes,l=a.edges;Z(s,function(t){var e=$P(t.outEdges,KP),n=$P(t.inEdges,KP),i=t.getValue()||0,i=Math.max(e,n,i);t.setLayout({value:i},!0)});var i=0!==K(s,function(t){return 0===t.getLayout().value}).length?0:t.get("layoutIterations"),a=t.get("orient"),t=t.get("nodeAlign");n=n,i=i,function(t,e,n,i,o,r,a){for(var s=[],l=[],u=[],h=[],c=0,p=0;p<e.length;p++)s[p]=1;for(p=0;p<t.length;p++)l[p]=t[p].inEdges.length,0===l[p]&&u.push(t[p]);var d=-1;for(;u.length;){for(var f=0;f<u.length;f++){var g=u[f],y=g.hostGraph.data.getRawDataItem(g.dataIndex),m=null!=y.depth&&0<=y.depth;m&&y.depth>d&&(d=y.depth),g.setLayout({depth:m?y.depth:c},!0),"vertical"===r?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var v=0;v<g.outEdges.length;v++){var x=g.outEdges[v],_=e.indexOf(x);s[_]=0;_=x.node2,x=t.indexOf(_);0==--l[x]&&h.indexOf(_)<0&&h.push(_)}}++c,u=h,h=[]}for(p=0;p<s.length;p++)if(1===s[p])throw new Error("Sankey is a DAG, the original data has cycle!");var b=c-1<d?d:c-1;a&&"left"!==a&&function(t,e,n){if("right"===e){for(var i=[],o=t,r=0;o.length;){for(var a=0;a<o.length;a++){var s=o[a];s.setLayout({skNodeHeight:r},!0);for(var l=0;l<s.inEdges.length;l++){var u=s.inEdges[l];i.indexOf(u.node1)<0&&i.push(u.node1)}}o=i,i=[],++r}Z(t,function(t){WP(t)||t.setLayout({depth:Math.max(0,n-t.getLayout().skNodeHeight)},!0)})}else"justify"===e&&function(t,e){Z(t,function(t){WP(t)||t.outEdges.length||t.setLayout({depth:e},!0)})}(t,n)}(t,a,b),function(t,n,i){Z(t,function(t){var e=t.getLayout().depth*n;"vertical"===i?t.setLayout({y:e},!0):t.setLayout({x:e},!0)})}(t,"vertical"===r?(o-n)/b:(i-n)/b,r)}(s=s,l=l,e,o=o,r=r,a=a,t),function(t,e,n,i,o,r,a){var s=function(t,e){var n=[],i="vertical"===e?"y":"x",o=Or(t,function(t){return t.getLayout()[i]});return o.keys.sort(function(t,e){return t-e}),Z(o.keys,function(t){n.push(o.buckets.get(t))}),n}(t,a);(function(t,e,i,o,r,a){var s=1/0;Z(t,function(t){var e=t.length,n=0;Z(t,function(t){n+=t.getLayout().value});e="vertical"===a?(o-(e-1)*r)/n:(i-(e-1)*r)/n;e<s&&(s=e)}),Z(t,function(t){Z(t,function(t,e){var n=t.getLayout().value*s;"vertical"===a?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))})}),Z(e,function(t){var e=+t.getValue()*s;t.setLayout({dy:e},!0)})})(s,e,n,i,o,a),UP(s,o,n,i,a);for(var l=1;0<r;r--)(function(t,i,o){Z(t.slice().reverse(),function(t){Z(t,function(t){var e,n;t.outEdges.length&&(n=$P(t.outEdges,XP,o)/$P(t.outEdges,KP),isNaN(n)&&(n=(e=t.outEdges.length)?$P(t.outEdges,YP,o)/e:0),"vertical"===o?(e=t.getLayout().x+(n-qP(t,o))*i,t.setLayout({x:e},!0)):(n=t.getLayout().y+(n-qP(t,o))*i,t.setLayout({y:n},!0)))})})})(s,l*=.99,a),UP(s,o,n,i,a),function(t,i,o){Z(t,function(t){Z(t,function(t){var e,n;t.inEdges.length&&(n=$P(t.inEdges,ZP,o)/$P(t.inEdges,KP),isNaN(n)&&(n=(e=t.inEdges.length)?$P(t.inEdges,jP,o)/e:0),"vertical"===o?(e=t.getLayout().x+(n-qP(t,o))*i,t.setLayout({x:e},!0)):(n=t.getLayout().y+(n-qP(t,o))*i,t.setLayout({y:n},!0)))})})}(s,l,a),UP(s,o,n,i,a)}(s,l,r,o,n,i,a),function(t,e){var n="vertical"===e?"x":"y";Z(t,function(t){t.outEdges.sort(function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]}),t.inEdges.sort(function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]})}),Z(t,function(t){var e=0,n=0;Z(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),Z(t.inEdges,function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy})})}(s,a)})}function WP(t){t=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=t.depth&&0<=t.depth}function UP(t,l,u,h,c){var p="vertical"===c?"x":"y";Z(t,function(t){var e,n;t.sort(function(t,e){return t.getLayout()[p]-e.getLayout()[p]});for(var i,o=0,r=t.length,a="vertical"===c?"dx":"dy",s=0;s<r;s++)0<(i=o-(n=t[s]).getLayout()[p])&&(e=n.getLayout()[p]+i,"vertical"===c?n.setLayout({x:e},!0):n.setLayout({y:e},!0)),o=n.getLayout()[p]+n.getLayout()[a]+l;if(0<(i=o-l-("vertical"===c?h:u)))for(e=n.getLayout()[p]-i,"vertical"===c?n.setLayout({x:e},!0):n.setLayout({y:e},!0),o=e,s=r-2;0<=s;--s)0<(i=(n=t[s]).getLayout()[p]+n.getLayout()[a]+l-o)&&(e=n.getLayout()[p]-i,"vertical"===c?n.setLayout({x:e},!0):n.setLayout({y:e},!0)),o=n.getLayout()[p]})}function XP(t,e){return qP(t.node2,e)*t.getValue()}function YP(t,e){return qP(t.node2,e)}function ZP(t,e){return qP(t.node1,e)*t.getValue()}function jP(t,e){return qP(t.node1,e)}function qP(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function KP(t){return t.getValue()}function $P(t,e,n){for(var i=0,o=t.length,r=-1;++r<o;){var a=+e(t[r],n);isNaN(a)||(i+=a)}return i}function JP(t){t.eachSeriesByType("sankey",function(i){var o,r,t=i.getGraph().nodes;t.length&&(o=1/0,r=-1/0,Z(t,function(t){t=t.getLayout().value;t<o&&(o=t),r<t&&(r=t)}),Z(t,function(t){var e=new LD({type:"color",mappingMethod:"linear",dataExtent:[o,r],visual:i.get("color")}).mapValueToVisual(t.getLayout().value),n=t.getModel().get(["itemStyle","color"]);null!=n?(t.setVisual("color",n),t.setVisual("style",{fill:n})):(t.setVisual("color",e),t.setVisual("style",{fill:e}))}))})}var QP,qu=(eO.prototype.getInitialData=function(t,e){var n,i,o=e.getComponent("xAxis",this.get("xAxisIndex")),r=e.getComponent("yAxis",this.get("yAxisIndex")),a=o.get("type"),s=r.get("type");"category"===a?(t.layout="horizontal",n=o.getOrdinalMeta(),i=!0):"category"===s?(t.layout="vertical",n=r.getOrdinalMeta(),i=!0):t.layout=t.layout||"horizontal";var l,e=["x","y"],a="horizontal"===t.layout?0:1,s=this._baseAxisDim=e[a],e=e[1-a],o=[o,r],r=o[a].get("type"),o=o[1-a].get("type"),a=t.data;a&&i&&(l=[],Z(a,function(t,e){var n;et(t)?(n=t.slice(),t.unshift(e)):et(t.value)?((n=G({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,l.push(n)}),t.data=l);t=this.defaultValueDimensions,o=[{name:s,type:nx(r),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:e,type:nx(o),dimsDef:t.slice()}];return nI(this,{coordDimensions:o,dimensionsCount:t.length+1,encodeDefaulter:tt(Pc,o,this)})},eO.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},eO),M=(y(tO,QP=Sf),tO.type="series.boxplot",tO.dependencies=["xAxis","yAxis","grid"],tO.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},tO);function tO(){var t=null!==QP&&QP.apply(this,arguments)||this;return t.type=tO.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}function eO(){}X(M,qu,!0);var nO,iO,oO=M,Zr=(y(lO,iO=Nf),lO.prototype.render=function(t,e,n){var i=t.getData(),o=this.group,r=this._data;this._data||o.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(r).add(function(t){var e;i.hasValue(t)&&(e=uO(i.getItemLayout(t),i,t,a,!0),i.setItemGraphicEl(t,e),o.add(e))}).update(function(t,e){var n=r.getItemGraphicEl(e);i.hasValue(t)?(e=i.getItemLayout(t),n?(Du(n),hO(e,n,i,t)):n=uO(e,i,t,a),o.add(n),i.setItemGraphicEl(t,n)):o.remove(n)}).remove(function(t){t=r.getItemGraphicEl(t);t&&o.remove(t)}).execute(),this._data=i},lO.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(t){t&&e.remove(t)})},lO.type="boxplot",lO),rO=function(){},aO=(y(sO,nO=Bs),sO.prototype.getDefaultShape=function(){return new rO},sO.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),t.lineTo(n[++i][0],n[i][1])},sO);function sO(t){t=nO.call(this,t)||this;return t.type="boxplotBoxPath",t}function lO(){var t=null!==iO&&iO.apply(this,arguments)||this;return t.type=lO.type,t}function uO(t,e,n,i,o){var r,a,s=t.ends,s=new aO({shape:{points:o?(r=i,a=t,j(s,function(t){return(t=t.slice())[r]=a.initBaseline,t})):s}});return hO(t,s,e,n,o),s}function hO(t,e,n,i,o){var r=n.hostModel;(0,p[o?"initProps":"updateProps"])(e,{shape:{points:t.ends}},r,i),e.useStyle(n.getItemVisual(i,"style")),e.style.strokeNoScale=!0,e.z2=100;i=n.getItemModel(i);fu(e,i),hu(e,i.get(["emphasis","focus"]),i.get(["emphasis","blurScope"]))}var cO=Zr;function pO(t,e){}var dO=Z;function fO(t){var i,o,t=(i=[],o=[],t.eachSeriesByType("boxplot",function(t){var e=t.getBaseAxis(),n=W(o,e);n<0&&(n=o.length,o[n]=e,i[n]={axis:e,seriesModels:[]}),i[n].seriesModels.push(t)}),i);dO(t,function(n){var t=n.seriesModels;t.length&&(function(t){var e,n=t.axis,i=t.seriesModels,o=i.length,r=t.boxWidthList=[],a=t.boxOffsetList=[],s=[];{var l;"category"===n.type?e=n.getBandWidth():(l=0,dO(i,function(t){l=Math.max(l,t.getData().count())}),u=n.getExtent(),Math.abs(u[1]-u[0]))}dO(i,function(t){t=t.get("boxWidth");et(t)||(t=[t,t]),s.push([Uo(t[0],e)||0,Uo(t[1],e)||0])});var u=.8*e-2,h=u/o*.3,c=(u-h*(o-1))/o,p=c/2-u/2;dO(i,function(t,e){a.push(p),p+=h+c,r.push(Math.min(Math.max(c,s[e][0]),s[e][1]))})}(n),dO(t,function(t,e){!function(t,o,e){var r=t.coordinateSystem,a=t.getData(),s=e/2,l="horizontal"===t.get("layout")?0:1,u=1-l,t=["x","y"],n=a.mapDimension(t[l]),i=a.mapDimensionsAll(t[u]);if(!(null==n||i.length<5))for(var h=0;h<a.count();h++){var c=a.get(n,h),p=m(c,i[2],h),d=m(c,i[0],h),f=m(c,i[1],h),g=m(c,i[3],h),y=m(c,i[4],h),c=[];v(c,f,!1),v(c,g,!0),c.push(d,f,y,g),x(c,d),x(c,y),x(c,p),a.setItemLayout(h,{initBaseline:p[u],ends:c})}function m(t,e,n){var i,e=a.get(e,n),n=[];return n[l]=t,n[u]=e,isNaN(t)||isNaN(e)?i=[NaN,NaN]:(i=r.dataToPoint(n))[l]+=o,i}function v(t,e,n){var i=e.slice(),e=e.slice();i[l]+=s,e[l]-=s,n?t.push(i,e):t.push(e,i)}function x(t,e){var n=e.slice(),e=e.slice();n[l]-=s,e[l]+=s,t.push(n,e)}}(t,n.boxOffsetList[e],n.boxWidthList[e])}))})}var gO={type:"echarts:boxplot",transform:function(t){var e=t.upstream;e.sourceFormat!==Sc&&Zc("");t=function(t,e){for(var n=[],i=[],o=(e=e||{}).boundIQR,r="none"===o||0===o,a=0;a<t.length;a++){var s=Yo(t[a].slice()),l=rr(s,.25),u=rr(s,.5),h=rr(s,.75),c=s[0],p=s[s.length-1],d=(null==o?1.5:o)*(h-l),f=r?c:Math.max(c,l-d),g=r?p:Math.min(p,h+d),d=e.itemNameFormatter,y=nt(d)?d({value:a}):it(d)?d.replace("{value}",a+""):a+"";n.push([y,f,l,u,h,g]);for(var m=0;m<s.length;m++){var v=s[m];(v<f||g<v)&&i.push([y,v])}}return{boxData:n,outliers:i}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:t.boxData},{data:t.outliers}]}};var yO,mO,vO=["color","borderColor"],k=(y(wO,mO=Nf),wO.prototype.render=function(t,e,n){this.group.removeClipPath(),this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},wO.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},wO.prototype.incrementalRender=function(t,e,n,i){this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},wO.prototype._updateDrawMode=function(t){t=t.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},wO.prototype._renderNormal=function(i){var o=i.getData(),r=this._data,a=this.group,s=o.getLayout("isSimpleBox"),l=i.get("clip",!0),t=i.coordinateSystem,u=t.getArea&&t.getArea();this._data||a.removeAll(),o.diff(r).add(function(t){var e,n;o.hasValue(t)&&(e=o.getItemLayout(t),l&&MO(u,e)||(Su(n=SO(e,0,!0),{shape:{points:e.ends}},i,t),IO(n,o,t,s),a.add(n),o.setItemGraphicEl(t,n)))}).update(function(t,e){var n=r.getItemGraphicEl(e);o.hasValue(t)?(e=o.getItemLayout(t),l&&MO(u,e)?a.remove(n):(n?(wu(n,{shape:{points:e.ends}},i,t),Du(n)):n=SO(e),IO(n,o,t,s),a.add(n),o.setItemGraphicEl(t,n))):a.remove(n)}).remove(function(t){t=r.getItemGraphicEl(t);t&&a.remove(t)}).execute(),this._data=o},wO.prototype._renderLarge=function(t){this._clear(),kO(t,this.group);t=t.get("clip",!0)?BS(t.coordinateSystem,!1,t):null;t?this.group.setClipPath(t):this.group.removeClipPath()},wO.prototype._incrementalRenderNormal=function(t,e){for(var n,i=e.getData(),o=i.getLayout("isSimpleBox");null!=(n=t.next());){var r=SO(i.getItemLayout(n));IO(r,i,n,o),r.incremental=!0,this.group.add(r)}},wO.prototype._incrementalRenderLarge=function(t,e){kO(e,this.group,!0)},wO.prototype.remove=function(t){this._clear()},wO.prototype._clear=function(){this.group.removeAll(),this._data=null},wO.type="candlestick",wO),xO=function(){},_O=(y(bO,yO=Bs),bO.prototype.getDefaultShape=function(){return new xO},bO.prototype.buildPath=function(t,e){e=e.points;this.__simpleBox?(t.moveTo(e[4][0],e[4][1]),t.lineTo(e[6][0],e[6][1])):(t.moveTo(e[0][0],e[0][1]),t.lineTo(e[1][0],e[1][1]),t.lineTo(e[2][0],e[2][1]),t.lineTo(e[3][0],e[3][1]),t.closePath(),t.moveTo(e[4][0],e[4][1]),t.lineTo(e[5][0],e[5][1]),t.moveTo(e[6][0],e[6][1]),t.lineTo(e[7][0],e[7][1]))},bO);function bO(t){t=yO.call(this,t)||this;return t.type="normalCandlestickBox",t}function wO(){var t=null!==mO&&mO.apply(this,arguments)||this;return t.type=wO.type,t}function SO(t,e,n){var i,o=t.ends;return new _O({shape:{points:n?(i=t,j(o,function(t){return(t=t.slice())[1]=i.initBaseline,t})):o},z2:100})}function MO(t,e){for(var n=!0,i=0;i<e.ends.length;i++)if(t.contain(e.ends[i][0],e.ends[i][1])){n=!1;break}return n}function IO(t,e,n,i){var o=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=i,fu(t,o)}var TO,CO=function(){},DO=(y(AO,TO=Bs),AO.prototype.getDefaultShape=function(){return new CO},AO.prototype.buildPath=function(t,e){for(var n,i=e.points,o=0;o<i.length;)this.__sign===i[o++]?(n=i[o++],t.moveTo(n,i[o++]),t.lineTo(n,i[o++])):o+=3},AO);function AO(t){t=TO.call(this,t)||this;return t.type="largeCandlestickBox",t}function kO(t,e,n){var i=t.getData(),o=i.getLayout("largePoints"),r=new DO({shape:{points:o},__sign:1});e.add(r);o=new DO({shape:{points:o},__sign:-1});e.add(o),LO(1,r,t),LO(-1,o,t),n&&(r.incremental=!0,o.incremental=!0)}function LO(t,e,n){t=n.get(["itemStyle",0<t?"borderColor":"borderColor0"])||n.get(["itemStyle",0<t?"color":"color0"]),n=n.getModel("itemStyle").getItemStyle(vO);e.useStyle(n),e.style.fill=null,e.style.stroke=t}var PO,OO=k,M=(y(RO,PO=Sf),RO.prototype.getShadowDim=function(){return"open"},RO.prototype.brushSelector=function(t,e,n){t=e.getItemLayout(t);return t&&n.rect(t.brushRect)},RO.type="series.candlestick",RO.dependencies=["xAxis","yAxis","grid"],RO.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},RO);function RO(){var t=null!==PO&&PO.apply(this,arguments)||this;return t.type=RO.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}X(M,qu,!0);var NO=M;function zO(t){t&&et(t.series)&&Z(t.series,function(t){at(t)&&"k"===t.type&&(t.type="candlestick")})}var EO=["itemStyle","borderColor"],VO=["itemStyle","borderColor0"],BO=["itemStyle","color"],GO=["itemStyle","color0"],FO={seriesType:"candlestick",plan:Tf(),performRawSeries:!0,reset:function(t,e){if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var n;null!=(n=t.next());){var i=e.getItemModel(n),o=e.getItemLayout(n).sign,r=i.getItemStyle();r.fill=i.get(0<o?BO:GO),r.stroke=i.get(0<o?EO:VO)||r.fill,G(e.ensureUniqueItemVisual(n,"style"),r)}}}}},HO="undefined"!=typeof Float32Array?Float32Array:Array;function WO(t,e,n,i,o){return!(i<n)&&(n<i||!(0<e)||t.get(o,e-1)<=i)?1:-1}var UO={seriesType:"candlestick",plan:Tf(),reset:function(t){var e,n,i,m=t.coordinateSystem,o=t.getData(),v=(r=o,n="category"===(n=(e=t).getBaseAxis()).type?n.getBandWidth():(i=n.getExtent(),Math.abs(i[1]-i[0])/r.count()),i=Uo(gt(e.get("barMaxWidth"),n),n),r=Uo(gt(e.get("barMinWidth"),1),n),null!=(e=e.get("barWidth"))?Uo(e,n):Math.max(Math.min(n/2,i),r)),r=["x","y"],x=o.getDimensionIndex(o.mapDimension(r[0])),r=j(o.mapDimensionsAll(r[1]),o.getDimensionIndex,o),_=r[0],b=r[1],w=r[2],S=r[3];if(o.setLayout({candleWidth:v,isSimpleBox:v<=1.3}),!(x<0||r.length<4))return{progress:t.pipelineContext.large?function(t,e){var n,i=new HO(4*t.count),o=0,r=[],a=[],s=e.getStore();for(;null!=(n=t.next());){var l=s.get(x,n),u=s.get(_,n),h=s.get(b,n),c=s.get(w,n),p=s.get(S,n);isNaN(l)||isNaN(c)||isNaN(p)?(i[o++]=NaN,o+=3):(i[o++]=WO(s,n,u,h,b),r[0]=l,r[1]=c,c=m.dataToPoint(r,null,a),i[o++]=c?c[0]:NaN,i[o++]=c?c[1]:NaN,r[1]=p,c=m.dataToPoint(r,null,a),i[o++]=c?c[1]:NaN)}e.setLayout("largePoints",i)}:function(t,e){var n,i=e.getStore();for(;null!=(n=t.next());){var o=i.get(x,n),r=i.get(_,n),a=i.get(b,n),s=i.get(w,n),l=i.get(S,n),u=Math.min(r,a),h=Math.max(r,a),c=f(u,o),p=f(h,o),d=f(s,o),u=f(l,o),h=[];g(h,p,0),g(h,c,1),h.push(y(u),y(p),y(d),y(c)),e.setItemLayout(n,{sign:WO(i,n,r,a,b),initBaseline:(a<r?p:c)[1],ends:h,brushRect:function(t,e,n){t=f(t,n),n=f(e,n);return t[0]-=v/2,n[0]-=v/2,{x:t[0],y:t[1],width:v,height:n[1]-t[1]}}(s,l,o)})}function f(t,e){var n=[];return n[0]=e,n[1]=t,isNaN(e)||isNaN(t)?[NaN,NaN]:m.dataToPoint(n)}function g(t,e,n){var i=e.slice(),e=e.slice();i[0]=Im(i[0]+v/2,1,!1),e[0]=Im(e[0]-v/2,1,!0),n?t.push(i,e):t.push(e,i)}function y(t){return t[0]=Im(t[0],1),t}}}}};function XO(t,e){var n=e.rippleEffectColor||e.color;t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})})}var YO,ZO,jO,qO=(y(tR,jO=Ao),tR.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},tR.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),r=0;r<i;r++){var a=Fm(e,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-r/i*t.period+t.effectOffset;a.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),o.add(a)}XO(o,t)},tR.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var r=i[o];if(e[r]!==t[r])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}XO(n,t)},tR.prototype.highlight=function(){Jl(this)},tR.prototype.downplay=function(){Ql(this)},tR.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},tR.prototype.updateData=function(t,e){var n=this,i=t.hostModel;this.childAt(0).updateData(t,e);var o=this.childAt(1),r=t.getItemModel(e),a=t.getItemVisual(e,"symbol"),s=Hm(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"style"),u=l&&l.fill;o.setScale(s),o.traverse(function(t){t.setStyle("fill",u)});s=Wm(t.getItemVisual(e,"symbolOffset"),s);s&&(o.x=s[0],o.y=s[1]);s=t.getItemVisual(e,"symbolRotate");o.rotation=(s||0)*Math.PI/180||0;var h={};h.showEffectOn=i.get("showEffectOn"),h.rippleScale=r.get(["rippleEffect","scale"]),h.brushType=r.get(["rippleEffect","brushType"]),h.period=1e3*r.get(["rippleEffect","period"]),h.effectOffset=e/t.count(),h.z=i.getShallow("z")||0,h.zlevel=i.getShallow("zlevel")||0,h.symbolType=a,h.color=u,h.rippleEffectColor=r.get(["rippleEffect","color"]),h.rippleNumber=r.get(["rippleEffect","number"]),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"render"===h.showEffectOn?(this._effectCfg?this.updateEffectAnimation(h):this.startEffectAnimation(h),this._effectCfg=h):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(t){"emphasis"===t?"render"!==h.showEffectOn&&n.startEffectAnimation(h):"normal"===t&&"render"!==h.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=h,hu(this)},tR.prototype.fadeOut=function(t){this.off("mouseover").off("mouseout"),t&&t()},tR),KO=(y(QO,ZO=Nf),QO.prototype.init=function(){this._symbolDraw=new yS(qO)},QO.prototype.render=function(t,e,n){var i=t.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(o.group)},QO.prototype._getClipShape=function(t){var e=t.coordinateSystem,e=e&&e.getArea&&e.getArea();return t.get("clip",!0)?e:null},QO.prototype.updateTransform=function(t,e,n){var i=t.getData();this.group.dirty();n=eM("").reset(t,e,n);n.progress&&n.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},QO.prototype._updateGroupTransform=function(t){t=t.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=Oi(t.getRoamTransform()),this.group.decomposeTransform())},QO.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},QO.type="effectScatter",QO),$O=(y(JO,YO=Sf),JO.prototype.getInitialData=function(t,e){return Rx(null,this,{useEncodeDefaulter:!0})},JO.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},JO.type="series.effectScatter",JO.dependencies=["grid","polar"],JO.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},JO);function JO(){var t=null!==YO&&YO.apply(this,arguments)||this;return t.type=JO.type,t.hasSymbolVisual=!0,t}function QO(){var t=null!==ZO&&ZO.apply(this,arguments)||this;return t.type=QO.type,t}function tR(t,e){var n=jO.call(this)||this,i=new pS(t,e),o=new Ao;return n.add(i),n.add(o),n.updateData(t,e),n}var eR,nR,iR,oR,rR,aR=(y(bR,rR=Ao),bR.prototype.createLine=function(t,e,n){return new GA(t,e,n)},bR.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e).getModel("effect"),i=n.get("symbolSize"),o=n.get("symbol");et(i)||(i=[i,i]);var r=t.getItemVisual(e,"style"),a=n.get("color")||r&&r.stroke,r=this.childAt(1);this._symbolType!==o&&(this.remove(r),(r=Fm(o,-.5,-.5,1,1,a)).z2=100,r.culling=!0,this.add(r)),r&&(r.setStyle("shadowColor",a),r.setStyle(n.getItemStyle(["color"])),r.scaleX=i[0],r.scaleY=i[1],r.setColor(a),this._symbolType=o,this._symbolScale=i,this._updateEffectAnimation(t,n,e))},bR.prototype._updateEffectAnimation=function(e,t,n){var i,o,r,a,s,l=this.childAt(1);l&&(i=this,o=e.getItemLayout(n),r=1e3*t.get("period"),a=t.get("loop"),s=t.get("constantSpeed"),t=ft(t.get("delay"),function(t){return t/e.count()*r/3}),l.ignore=!0,this._updateAnimationPoints(l,o),((r=0<s?this._getLineLength(l)/s*1e3:r)!==this._period||a!==this._loop)&&(l.stopAnimation(),0<r)&&(s=void 0,s="function"==typeof t?t(n):t,0<l.__t&&(s=-r*l.__t),l.__t=0,s=l.animate("",a).when(r,{__t:1}).delay(s).during(function(){i._updateSymbolPosition(l)}),a||s.done(function(){i.remove(l)}),s.start()),this._period=r,this._loop=a)},bR.prototype._getLineLength=function(t){return Kt(t.__p1,t.__cp1)+Kt(t.__cp1,t.__p2)},bR.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},bR.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},bR.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t,r=[t.x,t.y],a=r.slice(),s=za,l=Ea;r[0]=s(e[0],i[0],n[0],o),r[1]=s(e[1],i[1],n[1],o);s=l(e[0],i[0],n[0],o),n=l(e[1],i[1],n[1],o);t.rotation=-Math.atan2(n,s)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT<t.__t?(t.scaleY=1.05*Kt(a,r),1===o&&(r[0]=a[0]+(r[0]-a[0])/2,r[1]=a[1]+(r[1]-a[1])/2)):1===t.__lastT?t.scaleY=2*Kt(e,r):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=r[0],t.y=r[1]},bR.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},bR),sR=(y(_R,oR=Ao),_R.prototype._createPolyline=function(t,e,n){var i=t.getItemLayout(e),i=new Ey({shape:{points:i}});this.add(i),this._updateCommonStl(t,e,n)},_R.prototype.updateData=function(t,e,n){var i=t.hostModel;wu(this.childAt(0),{shape:{points:t.getItemLayout(e)}},i,e),this._updateCommonStl(t,e,n)},_R.prototype._updateCommonStl=function(t,e,n){var i=this.childAt(0),o=t.getItemModel(e),r=n&&n.emphasisLineStyle;n&&!t.hasItemOption||(r=o.getModel(["emphasis","lineStyle"]).getLineStyle()),i.useStyle(t.getItemVisual(e,"style")),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=r,hu(this)},_R.prototype.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},_R),lR=(y(xR,iR=aR),xR.prototype.createLine=function(t,e,n){return new sR(t,e,n)},xR.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,o=1;o<e.length;o++){var r=e[o-1],a=e[o];i+=Kt(r,a),n.push(i)}if(0!==i){for(o=0;o<n.length;o++)n[o]/=i;this._offsets=n,this._length=i}else this._length=0},xR.prototype._getLineLength=function(){return this._length},xR.prototype._updateSymbolPosition=function(t){var e=t.__t,n=this._points,i=this._offsets,o=n.length;if(i){var r=this._lastFrame;if(e<this._lastFramePercent){for(var a=Math.min(r+1,o-1);0<=a&&!(i[a]<=e);a--);a=Math.min(a,o-2)}else{for(a=r;a<o&&!(i[a]>e);a++);a=Math.min(a-1,o-2)}var s=(e-i[a])/(i[a+1]-i[a]),r=n[a],n=n[a+1];t.x=r[0]*(1-s)+s*n[0],t.y=r[1]*(1-s)+s*n[1];s=n[0]-r[0],r=n[1]-r[1];t.rotation=-Math.atan2(r,s)-Math.PI/2,this._lastFrame=a,this._lastFramePercent=e,t.ignore=!1}},xR),uR=function(){this.polyline=!1,this.curveness=0,this.segs=[]},hR=(y(vR,nR=Bs),vR.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},vR.prototype.getDefaultShape=function(){return new uR},vR.prototype.buildPath=function(t,e){var n=e.segs,i=e.curveness;if(e.polyline)for(var o=0;o<n.length;){var r=n[o++];if(0<r){t.moveTo(n[o++],n[o++]);for(var a=1;a<r;a++)t.lineTo(n[o++],n[o++])}}else for(o=0;o<n.length;){var s=n[o++],l=n[o++],u=n[o++],h=n[o++];t.moveTo(s,l),0<i?t.quadraticCurveTo((s+u)/2-(l-h)*i,(l+h)/2-(u-s)*i,u,h):t.lineTo(u,h)}},vR.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,o=n.curveness,r=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<i.length;){var l=i[s++];if(0<l)for(var u=i[s++],h=i[s++],c=1;c<l;c++){var p=i[s++],d=i[s++];if(_s(u,h,p,d,r,t,e))return a}a++}else for(s=a=0;s<i.length;){u=i[s++],h=i[s++],p=i[s++],d=i[s++];if(0<o){if(bs(u,h,(u+p)/2-(h-d)*o,(h+d)/2-(p-u)*o,p,d,r,t,e))return a}else if(_s(u,h,p,d,r,t,e))return a;a++}return-1},vR),cR=(mR.prototype.isPersistent=function(){return!this._incremental},mR.prototype.updateData=function(t){this.group.removeAll();var e=new hR({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},mR.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),5e5<t.count()?(this._incremental||(this._incremental=new im({silent:!0})),this.group.add(this._incremental)):this._incremental=null},mR.prototype.incrementalUpdate=function(t,e){var n=new hR;n.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(n,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=t.start,this.group.add(n))},mR.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},mR.prototype._setCommon=function(e,t,n){var i=t.hostModel;e.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var o,t=t.getVisual("style");t&&t.stroke&&e.setStyle("stroke",t.stroke),e.setStyle("fill",null),n||((o=_l(e)).seriesIndex=i.seriesIndex,e.on("mousemove",function(t){o.dataIndex=null;t=e.findDataIndex(t.offsetX,t.offsetY);0<t&&(o.dataIndex=t+e.__startIndex)}))},mR.prototype._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()},mR),pR={seriesType:"lines",plan:Tf(),reset:function(f){var g=f.coordinateSystem,y=f.get("polyline"),m=f.pipelineContext.large;return{progress:function(t,e){var n=[];if(m){var i=void 0,o=t.end-t.start;if(y){for(var r=0,a=t.start;a<t.end;a++)r+=f.getLineCoordsCount(a);i=new Float32Array(o+2*r)}else i=new Float32Array(4*o);for(var s=0,l=[],a=t.start;a<t.end;a++){var u=f.getLineCoords(a,n);y&&(i[s++]=u);for(var h=0;h<u;h++)l=g.dataToPoint(n[h],!1,l),i[s++]=l[0],i[s++]=l[1]}e.setLayout("linesPoints",i)}else for(a=t.start;a<t.end;a++){var c=e.getItemModel(a),p=(u=f.getLineCoords(a,n),[]);if(y)for(var d=0;d<u;d++)p.push(g.dataToPoint(n[d]));else{p[0]=g.dataToPoint(n[0]),p[1]=g.dataToPoint(n[1]);c=c.get(["lineStyle","curveness"]);+c&&(p[2]=[(p[0][0]+p[1][0])/2-(p[0][1]-p[1][1])*c,(p[0][1]+p[1][1])/2-(p[1][0]-p[0][0])*c])}e.setItemLayout(a,p)}}}}},dR=(y(yR,eR=Nf),yR.prototype.render=function(t,e,n){var i=t.getData(),o=this._updateLineDraw(i,t),r=t.get("zlevel"),a=t.get(["effect","trailLength"]),s=n.getZr(),n="svg"===s.painter.getType();n||s.painter.getLayer(r).clear(!0),null==this._lastZlevel||n||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a&&(n||s.configLayer(r,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),o.updateData(i);t=t.get("clip",!0)&&BS(t.coordinateSystem,!1,t);t?this.group.setClipPath(t):this.group.removeClipPath(),this._lastZlevel=r,this._finished=!0},yR.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},yR.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},yR.prototype.updateTransform=function(t,e,n){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};e=pR.reset(t,e,n);e.progress&&e.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},yR.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,i=this._showEffect(e),o=!!e.get("polyline"),e=e.pipelineContext.large;return n&&i===this._hasEffet&&o===this._isPolyline&&e===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=e?new cR:new YA(o?i?lR:sR:i?aR:GA),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=e),this.group.add(n.group),n},yR.prototype._showEffect=function(t){return!!t.get(["effect","show"])},yR.prototype._clearLayer=function(t){t=t.getZr();"svg"===t.painter.getType()||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},yR.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},yR.prototype.dispose=function(t,e){this.remove(t,e)},yR.type="lines",yR),fR="undefined"==typeof Uint32Array?Array:Uint32Array,gR="undefined"==typeof Float64Array?Array:Float64Array;function yR(){var t=null!==eR&&eR.apply(this,arguments)||this;return t.type=yR.type,t}function mR(){this.group=new Ao}function vR(t){return nR.call(this,t)||this}function xR(){var t=null!==iR&&iR.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}function _R(t,e,n){var i=oR.call(this)||this;return i._createPolyline(t,e,n),i}function bR(t,e,n){var i=rR.call(this)||this;return i.add(i.createLine(t,e,n)),i._updateEffectSymbol(t,e),i}function wR(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=j(e,function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),B([e,t[0],t[1]])}))}var SR,MR=(y(IR,SR=Sf),IR.prototype.init=function(t){t.data=t.data||[],wR(t);var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count)),SR.prototype.init.apply(this,arguments)},IR.prototype.mergeOption=function(t){var e;wR(t),t.data&&(e=this._processFlatCoordsArray(t.data),this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count))),SR.prototype.mergeOption.apply(this,arguments)},IR.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=Ct(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Ct(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},IR.prototype._getCoordsFromItemModel=function(t){t=this.getData().getItemModel(t);return t.option instanceof Array?t.option:t.getShallow("coords")},IR.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},IR.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],o=0;o<i;o++)e[o]=e[o]||[],e[o][0]=this._flatCoords[n+2*o],e[o][1]=this._flatCoords[n+2*o+1];return i}for(var r=this._getCoordsFromItemModel(t),o=0;o<r.length;o++)e[o]=e[o]||[],e[o][0]=r[o][0],e[o][1]=r[o][1];return r.length},IR.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),"number"!=typeof t[0])return{flatCoordsOffset:null,flatCoords:null,count:t.length};for(var n=t.length,i=new fR(n),o=new gR(n),r=0,a=0,s=0,l=0;l<n;){s++;var u=t[l++];i[a++]=r+e,i[a++]=u;for(var h=0;h<u;h++){var c=t[l++],p=t[l++];o[r++]=c,o[r++]=p}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:o,count:s}},IR.prototype.getInitialData=function(t,e){var o=new Mx(["value"],this);return o.hasItemOption=!1,o.initData(t.data,[],function(t,e,n,i){if(t instanceof Array)return NaN;o.hasItemOption=!0;t=t.value;return null!=t?t instanceof Array?t[i]:t:void 0}),o},IR.prototype.formatTooltip=function(t,e,n){var i=this.getData().getItemModel(t),o=i.get("name");if(o)return o;t=i.get("fromName"),o=i.get("toName"),i=[];return null!=t&&i.push(t),null!=o&&i.push(o),Jd("nameValue",{name:i.join(" > ")})},IR.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},IR.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},IR.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},IR.type="series.lines",IR.dependencies=["grid","polar","geo","calendar"],IR.defaultOption={coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},IR);function IR(){var t=null!==SR&&SR.apply(this,arguments)||this;return t.type=IR.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}function TR(t){return t=!(t instanceof Array)?[t,t]:t}var CR={seriesType:"lines",reset:function(t){var e=TR(t.get("symbol")),n=TR(t.get("symbolSize")),t=t.getData();return t.setVisual("fromSymbol",e&&e[0]),t.setVisual("toSymbol",e&&e[1]),t.setVisual("fromSymbolSize",n&&n[0]),t.setVisual("toSymbolSize",n&&n[1]),{dataEach:t.hasItemOption?function(t,e){var n=TR((i=t.getItemModel(e)).getShallow("symbol",!0)),i=TR(i.getShallow("symbolSize",!0));n[0]&&t.setItemVisual(e,"fromSymbol",n[0]),n[1]&&t.setItemVisual(e,"toSymbol",n[1]),i[0]&&t.setItemVisual(e,"fromSymbolSize",i[0]),i[1]&&t.setItemVisual(e,"toSymbolSize",i[1])}:null}}};var DR=(AR.prototype.update=function(t,e,n,i,o,r){var a=this._getBrush(),s=this._getGradient(o,"inRange"),l=this._getGradient(o,"outOfRange"),u=this.pointSize+this.blurSize,o=this.canvas,h=o.getContext("2d"),c=t.length;o.width=e,o.height=n;for(var p=0;p<c;++p){var d=t[p],f=d[0],g=d[1],y=i(d[2]);h.globalAlpha=y,h.drawImage(a,f-u,g-u)}if(!o.width||!o.height)return o;for(var n=h.getImageData(0,0,o.width,o.height),m=n.data,v=0,x=m.length,_=this.minOpacity,b=this.maxOpacity-_;v<x;){var w,y=m[v+3]/256,S=4*Math.floor(255*y);0<y?(w=r(y)?s:l,0<y&&(y=y*b+_),m[v++]=w[S],m[v++]=w[1+S],m[v++]=w[2+S],m[v++]=w[3+S]*y*256):v+=4}return h.putImageData(n,0,0),o},AR.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=H()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},AR.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),o=[0,0,0,0],r=0,a=0;a<256;a++)t[e](a/255,!0,o),i[r++]=o[0],i[r++]=o[1],i[r++]=o[2],i[r++]=o[3];return i},AR);function AR(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=H();this.canvas=t}function kR(t){t=t.dimensions;return"lng"===t[0]&&"lat"===t[1]}var LR,PR,OR=(y(zR,PR=Nf),zR.prototype.render=function(n,t,e){var i;t.eachComponent("visualMap",function(e){e.eachTargetSeries(function(t){t===n&&(i=e)})}),this.group.removeAll(),this._incrementalDisplayable=null;t=n.coordinateSystem;"cartesian2d"===t.type||"calendar"===t.type?this._renderOnCartesianAndCalendar(n,e,0,n.getData().count()):kR(t)&&this._renderOnGeo(t,n,i,e)},zR.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},zR.prototype.incrementalRender=function(t,e,n,i){var o=e.coordinateSystem;o&&(kR(o)?this.render(e,n,i):this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0))},zR.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,o){var r,a,s,l,u,h,c=t.coordinateSystem;GS(c,"cartesian2d")&&(r=c.getAxis("x"),a=c.getAxis("y"),s=r.getBandWidth(),l=a.getBandWidth(),u=r.scale.getExtent(),h=a.scale.getExtent());for(var p=this.group,d=t.getData(),f=t.getModel(["emphasis","itemStyle"]).getItemStyle(),g=t.getModel(["blur","itemStyle"]).getItemStyle(),y=t.getModel(["select","itemStyle"]).getItemStyle(),m=Ou(t),v=t.get(["emphasis","focus"]),x=t.get(["emphasis","blurScope"]),_=GS(c,"cartesian2d")?[d.mapDimension("x"),d.mapDimension("y"),d.mapDimension("value")]:[d.mapDimension("time"),d.mapDimension("value")],b=n;b<i;b++){var w=void 0,S=d.getItemVisual(b,"style");if(GS(c,"cartesian2d")){var M=d.get(_[0],b),I=d.get(_[1],b);if(isNaN(d.get(_[2],b))||M<u[0]||M>u[1]||I<h[0]||I>h[1])continue;I=c.dataToPoint([M,I]),w=new rl({shape:{x:Math.floor(Math.round(I[0])-s/2),y:Math.floor(Math.round(I[1])-l/2),width:Math.ceil(s),height:Math.ceil(l)},style:S})}else{if(isNaN(d.get(_[1],b)))continue;w=new rl({z2:1,shape:c.dataToRect([d.get(_[0],b)]).contentShape,style:S})}I=d.getItemModel(b);d.hasItemOption&&(f=(T=I.getModel("emphasis")).getModel("itemStyle").getItemStyle(),g=I.getModel(["blur","itemStyle"]).getItemStyle(),y=I.getModel(["select","itemStyle"]).getItemStyle(),v=T.get("focus"),x=T.get("blurScope"),m=Ou(I));var T=t.getRawValue(b),I="-";T&&null!=T[2]&&(I=T[2]+""),Pu(w,m,{labelFetcher:t,labelDataIndex:b,defaultOpacity:S.opacity,defaultText:I}),w.ensureState("emphasis").style=f,w.ensureState("blur").style=g,w.ensureState("select").style=y,hu(w,v,x),(w.incremental=o)&&(w.states.emphasis.hoverLayer=!0),p.add(w),d.setItemGraphicEl(b,w)}},zR.prototype._renderOnGeo=function(i,t,e,n){var o=e.targetVisuals.inRange,r=e.targetVisuals.outOfRange,a=t.getData(),s=this._hmLayer||this._hmLayer||new DR;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var l=i.getViewRect().clone(),u=i.getRoamTransform();l.applyTransform(u);var h,c,p,d,f,g,y,m=Math.max(l.x,0),v=Math.max(l.y,0),t=Math.min(l.width+l.x,n.getWidth()),u=Math.min(l.height+l.y,n.getHeight()),l=t-m,n=u-v,t=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],u=a.mapArray(t,function(t,e,n){e=i.dataToPoint([t,e]);return e[0]-=m,e[1]-=v,e.push(n),e}),a=e.getExtent(),e="visualMap.continuous"===e.type?(y=e.option.range,t=a[1]-a[0],y=[(y[0]-a[0])/t,(y[1]-a[0])/t],function(t){return t>=y[0]&&t<=y[1]}):(h=a,c=e.getPieceList(),p=e.option.selected,d=h[1]-h[0],f=(c=j(c,function(t){return{interval:[(t.interval[0]-h[0])/d,(t.interval[1]-h[0])/d]}})).length,g=0,function(t){for(var e=g;e<f;e++){var n=c[e].interval;if(n[0]<=t&&t<=n[1]){g=e;break}}if(e===f)for(e=g-1;0<=e;e--)if((n=c[e].interval)[0]<=t&&t<=n[1]){g=e;break}return 0<=e&&e<f&&p[e]});s.update(u,l,n,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:r.color.getColorMapper()},e);s=new qs({style:{width:l,height:n,x:m,y:v,image:s.canvas},silent:!0});this.group.add(s)},zR.type="heatmap",zR),RR=(y(NR,LR=Sf),NR.prototype.getInitialData=function(t,e){return Rx(null,this,{generateCoord:"value"})},NR.prototype.preventIncremental=function(){var t=op.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},NR.type="series.heatmap",NR.dependencies=["grid","geo","calendar"],NR.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},NR);function NR(){var t=null!==LR&&LR.apply(this,arguments)||this;return t.type=NR.type,t}function zR(){var t=null!==PR&&PR.apply(this,arguments)||this;return t.type=zR.type,t}var ER,VR=["itemStyle","borderWidth"],BR=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],GR=new Rg;function FR(){var t=null!==ER&&ER.apply(this,arguments)||this;return t.type=FR.type,t}function HR(t,e,n,i){var o,r,a,s,l,u=t.getItemLayout(e),h=n.get("symbolRepeat"),c=n.get("symbolClip"),p=n.get("symbolPosition")||"start",d=(n.get("symbolRotate")||0)*Math.PI/180||0,f=n.get("symbolPatternSize")||2,g=n.isAnimationEnabled(),y={dataIndex:e,layout:u,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:c,symbolRepeat:h,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:d,animationModel:g?n:null,hoverScale:g&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};(function(t,e,n,i,o){var r=i.valueDim,a=t.get("symbolBoundingData"),s=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-(n[r.wh]<=0);l=et(a)?((t=[WR(s,a[0])-l,WR(s,a[1])-l])[1]<t[0]&&t.reverse(),t[u]):null!=a?WR(s,a)-l:e?i.coordSysExtent[r.index][u]-l:n[r.wh];o.boundingLength=l,e&&(o.repeatCutLength=n[r.wh]),o.pxSign=0<l?1:l<0?-1:0})(n,h,u,i,y),o=t,r=e,a=u,s=h,l=y.boundingLength,m=y.pxSign,c=f,g=y,e=(t=i).valueDim,f=t.categoryDim,a=Math.abs(a[f.wh]),(r=et(r=o.getItemVisual(r,"symbolSize"))?r.slice():null==r?["100%","100%"]:[r,r])[f.index]=Uo(r[f.index],a),r[e.index]=Uo(r[e.index],s?a:Math.abs(l)),g.symbolSize=r,(g.symbolScale=[r[0]/c,r[1]/c])[e.index]*=(t.isHorizontal?-1:1)*m,function(t,e,n,i,o){t=t.get(VR)||0;t&&(GR.attr({scaleX:e[0],scaleY:e[1],rotation:n}),GR.updateTransform(),t/=GR.getLineScale(),t*=e[i.valueDim.index]),o.valueLineWidth=t}(n,y.symbolScale,d,i,y);var m=y.symbolSize,d=Wm(n.get("symbolOffset"),m);return function(t,e,n,i,o,r,a,s,l,u,h){var c=u.categoryDim,p=u.valueDim,d=h.pxSign,f=Math.max(e[p.index]+a,0),g=f;{var y,m,v;i&&(y=Math.abs(s),v=ft(t.get("symbolMargin"),"15%")+"",m=!1,v.lastIndexOf("!")===v.length-1&&(m=!0,v=v.slice(0,v.length-1)),x=Uo(v,e[p.index]),a=Math.max(f+2*x,0),t=m?0:2*x,v=lr(i),e=v?i:oN((y+t)/a),x=(y-e*f)/2/(m?e:Math.max(e-1,1)),a=f+2*x,t=m?0:2*x,v||"fixed"===i||(e=l?oN((Math.abs(l)+t)/a):0),g=e*a-t,h.repeatTimes=e,h.symbolMargin=x)}var x=d*(g/2),g=h.pathPosition=[];g[c.index]=n[c.wh]/2,g[p.index]="start"===r?x:"end"===r?s-x:s/2,o&&(g[0]+=o[0],g[1]+=o[1]);o=h.bundlePosition=[];o[c.index]=n[c.xy],o[p.index]=n[p.xy];o=h.barRectShape=G({},n);o[p.wh]=d*Math.max(Math.abs(n[p.wh]),Math.abs(g[p.index]+x)),o[c.wh]=n[c.wh];h=h.clipShape={};h[c.xy]=-n[c.xy],h[c.wh]=u.ecSize[c.wh],h[p.xy]=0,h[p.wh]=n[p.wh]}(n,m,u,h,d,p,y.valueLineWidth,y.boundingLength,y.repeatCutLength,i,y),y}function WR(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function UR(t){var e=t.symbolPatternSize,e=Fm(t.symbolType,-e/2,-e/2,e,e);return e.attr({culling:!0}),"image"!==e.type&&e.setStyle({strokeNoScale:!0}),e}function XR(t,e,o,n){var i=t.__pictorialBundle,r=o.symbolSize,a=o.valueLineWidth,s=o.pathPosition,l=e.valueDim,u=o.repeatTimes||0,h=0,c=r[e.valueDim.index]+a+2*o.symbolMargin;for(eN(t,function(t){t.__pictorialAnimationIndex=h,t.__pictorialRepeatTimes=u,h<u?nN(t,null,f(h),o,n):nN(t,null,{scaleX:0,scaleY:0},o,n,function(){i.remove(t)}),h++});h<u;h++){var p=UR(o);p.__pictorialAnimationIndex=h,p.__pictorialRepeatTimes=u,i.add(p);var d=f(h);nN(p,{x:d.x,y:d.y,scaleX:0,scaleY:0},{scaleX:d.scaleX,scaleY:d.scaleY,rotation:d.rotation},o,n)}function f(t){var e=s.slice(),n=o.pxSign,i=t;return("start"===o.symbolRepeatDirection?0<n:n<0)&&(i=u-1-t),e[l.index]=c*(i-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:o.symbolScale[0],scaleY:o.symbolScale[1],rotation:o.rotation}}}function YR(t,e,n,i){var o=t.__pictorialBundle,r=t.__pictorialMainPath;r?nN(r,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(r=t.__pictorialMainPath=UR(n),o.add(r),nN(r,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function ZR(t,e,n){var i=G({},e.barRectShape),o=t.__pictorialBarRect;o?nN(o,null,{shape:i},e,n):((o=t.__pictorialBarRect=new rl({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(o))}function jR(t,e,n,i){var o,r,a,s;n.symbolClip&&(o=t.__pictorialClipPath,r=G({},n.clipShape),a=e.valueDim,s=n.animationModel,e=n.dataIndex,o?wu(o,{shape:r},s,e):(r[a.wh]=0,o=new rl({shape:r}),t.__pictorialBundle.setClipPath(o),t.__pictorialClipPath=o,(t={})[a.wh]=n.clipShape[a.wh],p[i?"updateProps":"initProps"](o,{shape:t},s,e)))}function qR(t,e){e=t.getItemModel(e);return e.getAnimationDelayParams=KR,e.isAnimationEnabled=$R,e}function KR(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function $R(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function JR(t,e,n,i){var o=new Ao,r=new Ao;return o.add(r),(o.__pictorialBundle=r).x=n.bundlePosition[0],r.y=n.bundlePosition[1],n.symbolRepeat?XR(o,e,n):YR(o,0,n),ZR(o,n,i),jR(o,e,n,i),o.__pictorialShapeStr=tN(t,n),o.__pictorialSymbolMeta=n,o}function QR(t,e,n,i){var o=i.__pictorialBarRect;o&&o.removeTextContent();var r=[];eN(i,function(t){r.push(t)}),i.__pictorialMainPath&&r.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),Z(r,function(t){Iu(t,{scaleX:0,scaleY:0},n,e,function(){i.parent&&i.parent.remove(i)})}),t.setItemGraphicEl(e,null)}function tN(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function eN(e,n,i){Z(e.__pictorialBundle.children(),function(t){t!==e.__pictorialBarRect&&n.call(i,t)})}function nN(t,e,n,i,o,r){e&&t.attr(e),i.symbolClip&&!o?n&&t.attr(n):n&&p[o?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,r)}function iN(t,e,n){var i=n.dataIndex,o=n.itemModel,r=o.getModel("emphasis"),a=r.getModel("itemStyle").getItemStyle(),s=o.getModel(["blur","itemStyle"]).getItemStyle(),l=o.getModel(["select","itemStyle"]).getItemStyle(),u=o.getShallow("cursor"),h=r.get("focus"),c=r.get("blurScope"),p=r.get("scale");eN(t,function(t){t instanceof qs?(e=t.style,t.useStyle(G({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))):t.useStyle(n.style);var e=t.ensureState("emphasis");e.style=a,p&&(e.scaleX=1.1*t.scaleX,e.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,u&&(t.cursor=u),t.z2=n.z2});r=e.valueDim.posDesc[+(0<n.boundingLength)];Pu(t.__pictorialBarRect,Ou(o),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:lS(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:r}),hu(t,h,c)}function oN(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var rN,aN,sN=(y(FR,ER=Nf),FR.prototype.render=function(t,e,n){var l=this.group,u=t.getData(),h=this._data,i=t.coordinateSystem,o=i.getBaseAxis().isHorizontal(),r=i.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:i,coordSysExtent:[[r.x,r.x+r.width],[r.y,r.y+r.height]],isHorizontal:o,valueDim:BR[+o],categoryDim:BR[1-+o]};return u.diff(h).add(function(t){var e,n;u.hasValue(t)&&(n=qR(u,t),e=HR(u,t,n,c),n=JR(u,c,e),u.setItemGraphicEl(t,n),l.add(n),iN(n,c,e))}).update(function(t,e){var n,i,o,r,a,s=h.getItemGraphicEl(e);u.hasValue(t)?(r=qR(u,t),n=HR(u,t,r,c),a=tN(u,n),s&&a!==s.__pictorialShapeStr&&(l.remove(s),u.setItemGraphicEl(t,null),s=null),s?(i=s,o=c,r=(e=n).animationModel,a=e.dataIndex,wu(i.__pictorialBundle,{x:e.bundlePosition[0],y:e.bundlePosition[1]},r,a),(e.symbolRepeat?XR:YR)(i,o,e,!0),ZR(i,e,!0),jR(i,o,e,!0)):s=JR(u,c,n,!0),u.setItemGraphicEl(t,s),s.__pictorialSymbolMeta=n,l.add(s),iN(s,c,n)):l.remove(s)}).remove(function(t){var e=h.getItemGraphicEl(t);e&&QR(h,t,e.__pictorialSymbolMeta.animationModel,e)}).execute(),this._data=u,this.group},FR.prototype.remove=function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(t){QR(i,_l(t).dataIndex,e,t)}):n.removeAll()},FR.type="pictorialBar",FR),lN=(y(uN,rN=Co),uN.prototype.getInitialData=function(t){return t.stack=null,rN.prototype.getInitialData.apply(this,arguments)},uN.type="series.pictorialBar",uN.dependencies=["grid"],uN.defaultOption=ih(Co.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%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),uN);function uN(){var t=null!==rN&&rN.apply(this,arguments)||this;return t.type=uN.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}function hN(){var t=null!==aN&&aN.apply(this,arguments)||this;return t.type=hN.type,t._layers=[],t}var cN,pN=(y(hN,aN=Nf),hN.prototype.render=function(_,t,e){var b=_.getData(),w=this,S=this.group,M=_.getLayerSeries(),n=b.getLayout("layoutInfo"),i=n.rect,n=n.boundaryGap;function o(t){return t.name}S.x=0,S.y=i.y+n[0];var n=new K1(this._layersSeries||[],M,o,o),I=[];function r(t,e,n){var i,o,r,a=w._layers;if("remove"!==t){for(var s,l=[],u=[],h=M[e].indices,c=0;c<h.length;c++){var p=b.getItemLayout(h[c]),d=p.x,f=p.y0,p=p.y;l.push(d,f),u.push(d,f+p),s=b.getItemVisual(h[c],"style")}var g,y=b.getItemLayout(h[0]),m=_.getModel("label").get("margin"),v=_.getModel("emphasis");"add"===t?(x=I[e]=new Ao,g=new OS({shape:{points:l,stackedOnPoints:u,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),x.add(g),S.add(x),_.isAnimationEnabled()&&g.setClipPath((i=g.getBoundingRect(),o=_,r=function(){g.removeClipPath()},Su(t=new rl({shape:{x:i.x-10,y:i.y-10,width:0,height:i.height+20}}),{shape:{x:i.x-50,width:i.width+100,height:i.height+20}},o,r),t))):(x=a[n],g=x.childAt(0),S.add(x),I[e]=x,wu(g,{shape:{points:l,stackedOnPoints:u}},_),Du(g)),Pu(g,Ou(_),{labelDataIndex:h[c-1],defaultText:b.getName(h[c-1]),inheritColor:s.fill},{normal:{verticalAlign:"middle"}}),g.setTextConfig({position:null,local:!0});var x=g.getTextContent();x&&(x.x=y.x-m,x.y=y.y0+y.y/2),g.useStyle(s),b.setItemGraphicEl(e,g),fu(g,_),hu(g,v.get("focus"),v.get("blurScope"))}else S.remove(a[e])}n.add(Q(r,this,"add")).update(Q(r,this,"update")).remove(Q(r,this,"remove")).execute(),this._layersSeries=M,this._layers=I},hN.type="themeRiver",hN),dN=(y(fN,cN=Sf),fN.prototype.init=function(t){cN.prototype.init.apply(this,arguments),this.legendVisualProvider=new oI(Q(this.getData,this),Q(this.getRawData,this))},fN.prototype.fixData=function(t){var e=t.length,n={},i=Or(t,function(t){return n.hasOwnProperty(t[0]+"")||(n[t[0]+""]=-1),t[2]}),o=[];i.buckets.each(function(t,e){o.push({name:e,dataList:t})});for(var r=o.length,a=0;a<r;++a){for(var s=o[a].name,l=0;l<o[a].dataList.length;++l){var u=o[a].dataList[l][0]+"";n[u]=a}for(u in n)n.hasOwnProperty(u)&&n[u]!==a&&(n[u]=a,t[e]=[u,0,s],e++)}return t},fN.prototype.getInitialData=function(t,e){for(var n=this.getReferringComponents("singleAxis",Ar).models[0].get("type"),t=K(t.data,function(t){return void 0!==t[2]}),i=this.fixData(t||[]),o=[],r=this.nameMap=Tt(),a=0,s=0;s<i.length;++s)o.push(i[s][2]),r.get(i[s][2])||(r.set(i[s][2],a),a++);n=Cx(i,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:nx(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,n=new Mx(n,this);return n.initData(i),n},fN.prototype.getLayerSeries=function(){for(var n=this.getData(),t=n.count(),e=[],i=0;i<t;++i)e[i]=i;var o=n.mapDimension("single"),r=Or(e,function(t){return n.get("name",t)}),a=[];return r.buckets.each(function(t,e){t.sort(function(t,e){return n.get(o,t)-n.get(o,e)}),a.push({name:e,indices:t})}),a},fN.prototype.getAxisTooltipData=function(t,e,n){et(t)||(t=t?[t]:[]);for(var i,o=this.getData(),r=this.getLayerSeries(),a=[],s=r.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,h=-1,c=r[l].indices.length,p=0;p<c;++p){var d=o.get(t[0],r[l].indices[p]),f=Math.abs(d-e);f<=u&&(i=d,u=f,h=r[l].indices[p])}a.push(h)}return{dataIndices:a,nestestValue:i}},fN.prototype.formatTooltip=function(t,e,n){var i=this.getData();return Jd("nameValue",{name:i.getName(t),value:i.get(i.mapDimension("value"),t)})},fN.type="series.themeRiver",fN.dependencies=["singleAxis"],fN.defaultOption={zlevel:0,z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},fN);function fN(){var t=null!==cN&&cN.apply(this,arguments)||this;return t.type=fN.type,t}function gN(t,e){t.eachSeriesByType("themeRiver",function(t){var e=t.getData(),n=t.coordinateSystem,i={},o=n.getRect();i.rect=o;var r=t.get("boundaryGap"),n=n.getAxis();i.boundaryGap=r,"horizontal"===n.orient?(r[0]=Uo(r[0],o.height),r[1]=Uo(r[1],o.height),yN(e,t,o.height-r[0]-r[1])):(r[0]=Uo(r[0],o.width),r[1]=Uo(r[1],o.width),yN(e,t,o.width-r[0]-r[1])),e.setLayout("layoutInfo",i)})}function yN(n,t,e){if(n.count())for(var i,o=t.coordinateSystem,r=t.getLayerSeries(),a=n.mapDimension("single"),s=n.mapDimension("value"),l=j(r,function(t){return j(t.indices,function(t){var e=o.dataToPoint(n.get(a,t));return e[1]=n.get(s,t),e})}),t=function(t){for(var e=t.length,n=t[0].length,i=[],o=[],r=0,a=0;a<n;++a){for(var s=0,l=0;l<e;++l)s+=t[l][a][1];r<s&&(r=s),i.push(s)}for(var u=0;u<n;++u)o[u]=(r-i[u])/2;for(var h=r=0;h<n;++h){var c=i[h]+o[h];r<c&&(r=c)}return{y0:o,max:r}}(l),u=t.y0,h=e/t.max,c=r.length,p=r[0].indices.length,d=0;d<p;++d){i=u[d]*h,n.setItemLayout(r[0].indices[d],{layerIndex:0,x:l[0][d][0],y0:i,y:l[0][d][1]*h});for(var f=1;f<c;++f)i+=l[f-1][d][1]*h,n.setItemLayout(r[f].indices[d],{layerIndex:f,x:l[f][d][0],y0:i,y:l[f][d][1]*h})}}var mN,vN=(y(wN,mN=My),wN.prototype.updateData=function(t,e,n,i,o){(this.node=e).piece=this,n=n||this._seriesModel,i=i||this._ecModel;var r=this;_l(r).dataIndex=e.dataIndex;var a=e.getModel(),s=a.getModel("emphasis"),l=e.getLayout(),u=G({},l);u.label=null;var h=e.getVisual("style");h.lineJoin="bevel";var c=e.getVisual("decal");c&&(h.decal=m0(c,o));o=qM(a.getModel("itemStyle"),u,!0);G(u,o),Z(Cl,function(t){var e=r.ensureState(t),t=a.getModel([t,"itemStyle"]);e.style=t.getItemStyle();t=qM(t,u);t&&(e.shape=t)}),t?(r.setShape(u),r.shape.r=l.r0,wu(r,{shape:{r:l.r}},n,e.dataIndex)):(wu(r,{shape:u},n),Du(r)),r.useStyle(h),this._updateLabel(n);h=a.getShallow("cursor");h&&r.attr("cursor",h),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;i=s.get("focus");hu(this,"ancestor"===i?e.getAncestorsIndices():"descendant"===i?e.getDescendantIndices():i,s.get("blurScope"))},wN.prototype._updateLabel=function(a){var s=this,l=this.node.getModel(),n=l.getModel("label"),u=this.node.getLayout(),t=u.endAngle-u.startAngle,h=(u.startAngle+u.endAngle)/2,c=Math.cos(h),p=Math.sin(h),d=this,f=d.getTextContent(),g=this.node.dataIndex,e=n.get("minAngle")/180*Math.PI,e=n.get("show")&&!(null!=e&&Math.abs(t)<e);function y(t,e){t=t.get(e);return null==t?n.get(e):t}f.ignore=!e,Z(Dl,function(t){var e="normal"===t?l.getModel("label"):l.getModel([t,"label"]),n="normal"===t,i=n?f:f.ensureState(t),o=a.getFormattedLabel(g,t);n&&(o=o||s.node.name),i.style=Ru(e,{},null,"normal"!==t,!0),o&&(i.style.text=o);o=e.get("show");null==o||n||(i.ignore=!o);o=y(e,"position"),n=n?d:d.states[t],t=n.style.fill;n.textConfig={outsideFill:"inherit"===e.get("color")?t:null,inside:"outside"!==o};n=y(e,"distance")||0,t=y(e,"align");"outside"===o?(r=u.r+n,t=h>Math.PI/2?"right":"left"):t&&"center"!==t?"left"===t?(r=u.r0+n,h>Math.PI/2&&(t="right")):"right"===t&&(r=u.r-n,h>Math.PI/2&&(t="left")):(r=(u.r+u.r0)/2,t="center"),i.style.align=t,i.style.verticalAlign=y(e,"verticalAlign")||"middle",i.x=r*c+u.cx,i.y=r*p+u.cy;var r=y(e,"rotate"),e=0;"radial"===r?(e=-h)<-Math.PI/2&&(e+=Math.PI):"tangential"===r?(e=Math.PI/2-h)>Math.PI/2?e-=Math.PI:e<-Math.PI/2&&(e+=Math.PI):"number"==typeof r&&(e=r*Math.PI/180),i.rotation=e}),f.dirtyStyle()},wN),xN="sunburstRootToNode",_N="sunburstHighlight",bN="sunburstUnhighlight";function wN(t,e,n,i){var o=mN.call(this)||this;o.z2=2,o.textConfig={inside:!0},_l(o).seriesIndex=e.seriesIndex;var r=new xl({z2:4,silent:t.getModel().get(["label","silent"])});return o.setTextContent(r),o.updateData(!0,t,e,n,i),o}function SN(t){t.registerAction({type:xN,update:"updateView"},function(o,t){t.eachComponent({mainType:"series",subType:"sunburst",query:o},function(t,e){var n,i=RC(o,[xN],t);i&&((n=t.getViewRoot())&&(o.direction=zC(n,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node))})}),t.registerAction({type:_N,update:"none"},function(e,t,n){e=G({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},function(t){(t=RC(e,[_N],t))&&(e.dataIndex=t.node.dataIndex)}),n.dispatchAction(G(e,{type:"highlight"}))}),t.registerAction({type:bN,update:"updateView"},function(t,e,n){t=G({},t),n.dispatchAction(G(t,{type:"downplay"}))})}var MN,IN,TN=(y(DN,IN=Nf),DN.prototype.render=function(n,i,o,t){var e=this;this.seriesModel=n,this.api=o,this.ecModel=i;var r=n.getData(),a=r.tree.root,s=n.getViewRoot(),l=this.group,u=n.get("renderLabelForZeroData"),h=[];s.eachNode(function(t){h.push(t)});var c,p,d,f=this._oldChildren||[];function g(t){return t.getId()}function y(t,e){var t=null==t?null:p[t],e=null==e?null:d[e];t=t,e=e,(t=u||!t||t.getValue()?t:null)!==a&&e!==a&&(e&&e.piece?t?(e.piece.updateData(!1,t,n,i,o),r.setItemGraphicEl(t.dataIndex,e.piece)):function(t){t&&t.piece&&(l.remove(t.piece),t.piece=null)}(e):t&&(e=new vN(t,n,i,o),l.add(e),r.setItemGraphicEl(t.dataIndex,e)))}d=f,0===(p=h).length&&0===d.length||new K1(d,p,g,g).add(y).update(y).remove(tt(y,null)).execute(),f=a,0<(c=s).depth?(e.virtualPiece?e.virtualPiece.updateData(!1,f,n,i,o):(e.virtualPiece=new vN(f,n,i,o),l.add(e.virtualPiece)),c.piece.off("click"),e.virtualPiece.on("click",function(t){e._rootToNode(c.parentNode)})):e.virtualPiece&&(l.remove(e.virtualPiece),e.virtualPiece=null),this._initEvents(),this._oldChildren=h},DN.prototype._initEvents=function(){var o=this;this.group.off("click"),this.group.on("click",function(n){var i=!1;o.seriesModel.getViewRoot().eachNode(function(t){var e;!i&&t.piece&&t.piece===n.target&&("rootToNode"===(e=t.getModel().get("nodeClick"))?o._rootToNode(t):"link"!==e||(t=(e=t.getModel()).get("link"))&&Jh(t,e.get("target",!0)||"_blank"),i=!0)})})},DN.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:xN,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},DN.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){e=t[0]-n.cx,t=t[1]-n.cy,t=Math.sqrt(e*e+t*t);return t<=n.r&&t>=n.r0}},DN.type="sunburst",DN);function CN(){var t=null!==MN&&MN.apply(this,arguments)||this;return t.type=CN.type,t.ignoreStyleOnData=!0,t}function DN(){var t=null!==IN&&IN.apply(this,arguments)||this;return t.type=DN.type,t}var AN=(y(CN,MN=Sf),CN.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};!function e(t){var n=0;Z(t.children,function(t){e(t);t=t.value;et(t)&&(t=t[0]),n+=t});var i=t.value;et(i)&&(i=i[0]),null!=i&&!isNaN(i)||(i=n),i<0&&(i=0),et(t.value)?t.value[0]=i:t.value=i}(n);var i=this._levelModels=j(t.levels||[],function(t){return new th(t,this,e)},this),o=OC.createTree(n,this,function(t){t.wrapMethod("getItemModel",function(t,e){e=o.getNodeByDataIndex(e),e=i[e.depth];return e&&(t.parentModel=e),t})});return o.data},CN.prototype.optionUpdated=function(){this.resetViewRoot()},CN.prototype.getDataParams=function(t){var e=MN.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=EC(t,this),e},CN.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},CN.prototype.getViewRoot=function(){return this._viewRoot},CN.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},CN.prototype.enableAriaDecal=function(){jC(this)},CN.type="series.sunburst",CN.defaultOption={zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},CN),kN=Math.PI/180;function LN(t,e,r){e.eachSeriesByType(t,function(h){var t=h.get("center"),e=h.get("radius");et(e)||(e=[0,e]),et(t)||(t=[t,t]);var n=r.getWidth(),i=r.getHeight(),c=Math.min(n,i),p=Uo(t[0],n),d=Uo(t[1],i),f=Uo(e[0],c/2),n=Uo(e[1],c/2),t=-h.get("startAngle")*kN,g=h.get("minAngle")*kN,y=h.getData().tree.root,i=h.getViewRoot(),m=i.depth,e=h.get("sort");null!=e&&function e(t,n){var i=t.children||[];t.children=PN(i,n),i.length&&Z(t.children,function(t){e(t,n)})}(i,e);var o=0;Z(i.children,function(t){isNaN(t.getValue())||o++});var v=i.getValue(),x=Math.PI/(v||o)*2,_=0<i.depth,e=i.height-(_?-1:1),b=(n-f)/(e||1),w=h.get("clockwise"),S=h.get("stillShowZeroSum"),M=w?1:-1,I=function(t,e){if(t){var n,i,o,r,a,s,l,u=e;return t!==y&&(r=t.getValue(),u=e+M*(n=(n=0===v&&S?x:r*x)<g?g:n),a=t.depth-m-(_?-1:1),i=f+b*a,o=f+b*(1+a),(s=h.getLevelModel(t))&&(r=s.get("r0",!0),a=s.get("r",!0),null!=(s=s.get("radius",!0))&&(r=s[0],a=s[1]),null!=r&&(i=Uo(r,c/2)),null!=a&&(o=Uo(a,c/2))),t.setLayout({angle:n,startAngle:e,endAngle:u,clockwise:w,cx:p,cy:d,r0:i,r:o})),t.children&&t.children.length&&(l=0,Z(t.children,function(t){l+=I(t,e+l)})),u-e}};_&&(e=2*Math.PI,y.setLayout({angle:e,startAngle:t,endAngle:t+e,clockwise:w,cx:p,cy:d,r0:f,r:f+b})),I(i,t)})}function PN(e,n){if("function"==typeof n){var t=j(e,function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}});return t.sort(function(t,e){return n(t.params,e.params)}),j(t,function(t){return e[t.index]})}var i="asc"===n;return e.sort(function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0==n?(t.dataIndex-e.dataIndex)*(i?-1:1):n})}function ON(t){var r={};t.eachSeriesByType("sunburst",function(n){var i=n.getData(),o=i.tree;o.eachNode(function(t){var e=t.getModel().getModel("itemStyle").getItemStyle();e.fill||(e.fill=function(t,e,n){for(var i=t;i&&1<i.depth;)i=i.parentNode;return e=e.getColorFromPalette(i.name||i.dataIndex+"",r),e=1<t.depth&&"string"==typeof e?Tn(e,(t.depth-1)/(n-1)*.5):e}(t,n,o.root.height)),G(i.ensureUniqueItemVisual(t.dataIndex,"style"),e)})})}var RN,NN={color:"fill",borderColor:"stroke"},zN={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},EN=Ir(),VN=(y(BN,RN=Sf),BN.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},BN.prototype.getInitialData=function(t,e){return Rx(null,this)},BN.prototype.getDataParams=function(t,e,n){e=RN.prototype.getDataParams.call(this,t,e);return n&&(e.info=EN(n).info),e},BN.type="series.custom",BN.dependencies=["grid","polar","geo","singleAxis","calendar"],BN.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,clip:!1},BN);function BN(){var t=null!==RN&&RN.apply(this,arguments)||this;return t.type=BN.type,t}function GN(i,o){return o=o||[0,0],j(["x","y"],function(t,e){var n=this.getAxis(t),t=o[e],e=i[e]/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(t-e)-n.dataToCoord(t+e))},this)}function FN(r,a){return a=a||[0,0],j([0,1],function(t){var e=a[t],n=r[t]/2,i=[],o=[];return i[t]=e-n,o[t]=e+n,i[1-t]=o[1-t]=a[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function HN(t,e){var n=this.getAxis(),e=e instanceof Array?e[0]:e,t=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(e-t)-n.dataToCoord(e+t))}function WN(o,r){return r=r||[0,0],j(["Radius","Angle"],function(t,e){var n=this["get"+t+"Axis"](),i=r[e],e=o[e]/2,e="category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-e)-n.dataToCoord(i+e));return e="Angle"===t?e*Math.PI/180:e},this)}function UN(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||At(t,"text")))}function XN(t,e,n){var i,o,r,a=t;return"text"===e?i=a:(i={},At(a,"text")&&(i.text=a.text),At(a,"rich")&&(i.rich=a.rich),At(a,"textFill")&&(i.fill=a.textFill),At(a,"textStroke")&&(i.stroke=a.textStroke),At(a,"fontFamily")&&(i.fontFamily=a.fontFamily),At(a,"fontSize")&&(i.fontSize=a.fontSize),At(a,"fontStyle")&&(i.fontStyle=a.fontStyle),At(a,"fontWeight")&&(i.fontWeight=a.fontWeight),o={type:"text",style:i,silent:!0},r={},e=At(a,"textPosition"),n?r.position=e?a.textPosition:"inside":e&&(r.position=a.textPosition),At(a,"textPosition")&&(r.position=a.textPosition),At(a,"textOffset")&&(r.offset=a.textOffset),At(a,"textRotation")&&(r.rotation=a.textRotation),At(a,"textDistance")&&(r.distance=a.textDistance)),YN(i,t),Z(i.rich,function(t){YN(t,t)}),{textConfig:r,textContent:o}}function YN(t,e){e&&(e.font=e.textFont||e.font,At(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),At(e,"textAlign")&&(t.align=e.textAlign),At(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),At(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),At(e,"textWidth")&&(t.width=e.textWidth),At(e,"textHeight")&&(t.height=e.textHeight),At(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),At(e,"textPadding")&&(t.padding=e.textPadding),At(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),At(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),At(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),At(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),At(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),At(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),At(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function ZN(t,e,n){var i=t;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var o=0<=i.textPosition.indexOf("inside"),r=t.fill||"#000";jN(i,e);var a=null==i.textFill;return o?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),i.textStroke||(i.textStroke=r),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,Z(e.rich,function(t){jN(t,t)}),i}function jN(t,e){e&&(At(e,"fill")&&(t.textFill=e.fill),At(e,"stroke")&&(t.textStroke=e.fill),At(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),At(e,"font")&&(t.font=e.font),At(e,"fontStyle")&&(t.fontStyle=e.fontStyle),At(e,"fontWeight")&&(t.fontWeight=e.fontWeight),At(e,"fontSize")&&(t.fontSize=e.fontSize),At(e,"fontFamily")&&(t.fontFamily=e.fontFamily),At(e,"align")&&(t.textAlign=e.align),At(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),At(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),At(e,"width")&&(t.textWidth=e.width),At(e,"height")&&(t.textHeight=e.height),At(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),At(e,"padding")&&(t.textPadding=e.padding),At(e,"borderColor")&&(t.textBorderColor=e.borderColor),At(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),At(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),At(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),At(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),At(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),At(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),At(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),At(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),At(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),At(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var qN={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]};function KN(t,e,n){t=t[n],n=qN[n];t&&(e[n[0]]=t[0],e[n[1]]=t[1])}function $N(t,e,n){null!=t[n]&&(e[n]=t[n])}function JN(t,e,n){n&&(t[e]=n[e])}function QN(t,e,n,i,o){var r,a,s=n[t];if(s){var l=e[t],u=s.enterFrom;if(o&&u)for(var h=h||(i[t]={}),c=J(u),p=0;p<c.length;p++){var d=c[p];h[d]=u[d]}if(!o&&l)if(s.transition){h=h||(i[t]={});for(var f=dr(s.transition),p=0;p<f.length;p++){var g=l[d=f[p]];h[d]=g}}else if(0<=W(n.transition,t)){h=h||(i[t]={});var y=J(l);for(p=0;p<y.length;p++)g=l[d=y[p]],r=s[d],a=g,(Y(r)?r!==a:null!=r&&isFinite(r))&&(h[d]=g)}var m=s.leaveTo;if(m){var e=ez(e),v=e[t]||(e[t]={}),x=J(m);for(p=0;p<x.length;p++)v[d=x[p]]=m[d]}}}function tz(t,e,n){var i=e[t];if(i)for(var o=n[t]={},r=J(i),a=0;a<r.length;a++){var s=r[a];o[s]=Xn(i[s])}}function ez(t){t=EN(t);return t.leaveToProps||(t.leaveToProps={})}J({x:1,y:1,scaleX:1,scaleY:1,originX:1,originY:1,rotation:1}).join(", ");var nz="emphasis",iz="normal",Zr="blur",k="select",oz=[iz,nz,Zr,k],rz={normal:["itemStyle"],emphasis:[nz,"itemStyle"],blur:[Zr,"itemStyle"],select:[k,"itemStyle"]},az={normal:["label"],emphasis:[nz,"label"],blur:[Zr,"label"],select:[k,"label"]},sz="e\0\0",lz={normal:{},emphasis:{},blur:{},select:{}},uz={cartesian2d:function(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:Q(GN,e)}}},geo:function(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:Q(FN,e)}}},singleAxis:function(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:Q(HN,e)}}},polar:function(i){var o=i.getRadiusAxis(),r=i.getAngleAxis(),t=o.getExtent();return t[0]>t[1]&&t.reverse(),{coordSys:{type:"polar",cx:i.cx,cy:i.cy,r:t[1],r0:t[0]},api:{coord:function(t){var e=o.dataToRadius(t[0]),n=r.dataToAngle(t[1]),t=i.coordToPoint([e,n]);return t.push(e,n*Math.PI/180),t},size:Q(WN,i)}}},calendar:function(n){var t=n.getRect(),e=n.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(t,e){return n.dataToPoint(t,e)}}}}};function hz(t){return t instanceof Bs}function cz(t){return t instanceof xa}var pz,dz=(y(fz,pz=Nf),fz.prototype.render=function(n,t,i,o){var r=this._data,a=n.getData(),s=this.group,l=wz(n,a,t,i);r||s.removeAll(),a.diff(r).add(function(t){Sz(i,null,t,l(t,o),n,s,a)}).remove(function(t){Pz(r.getItemGraphicEl(t),n,s)}).update(function(t,e){e=r.getItemGraphicEl(e);Sz(i,e,t,l(t,o),n,s,a)}).execute();t=n.get("clip",!0)?BS(n.coordinateSystem,!1,n):null;t?s.setClipPath(t):s.removeClipPath(),this._data=a},fz.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},fz.prototype.incrementalRender=function(t,e,n,i,o){var r=e.getData(),a=wz(e,r,n,i);function s(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var l=t.start;l<t.end;l++){var u=Sz(null,null,l,a(l,o),e,this.group,r);u&&u.traverse(s)}},fz.prototype.filterForExposedEvent=function(t,e,n,i){var o=e.element;if(null==o||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},fz.type="custom",fz);function fz(){var t=null!==pz&&pz.apply(this,arguments)||this;return t.type=fz.type,t}function gz(t){var e=t.type;if("path"===e){var n=t.shape,i=null!=n.width&&null!=n.height?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,o=Oz(n),n=vm(o,null,i,n.layout||"center");EN(n).customPathData=o}else if("image"===e)n=new qs({}),EN(n).customImagePath=t.style.image;else if("text"===e)n=new xl({});else if("group"===e)n=new Ao;else{if("compoundPath"===e)throw new Error('"compoundPath" is not supported yet.');o=mm(e);o||Zc(""),n=new o}return EN(n).customGraphicType=e,n.name=t.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function yz(t,e,n,i,o,r,a,s){o=o&&o.normal.cfg;o&&e.setTextConfig(o);o=i&&i.style;o&&("text"===e.type&&(At(u=o,"textFill")&&(u.fill=u.textFill),At(u,"textStroke")&&(u.stroke=u.textStroke)),l=void 0,h=hz(e)?o.decal:null,t&&h&&(h.dirty=!0,l=m0(h,t)),o.__decalPattern=l),EN(e).userDuring=i.during;var l,u={},h={};QN("shape",e,i,u,a),tz("shape",i,h),function(t,e,n,i){var o=e.enterFrom;if(i&&o)for(var r=J(o),a=0;a<r.length;a++){var s=r[a];n[s]=o[s]}if(!i)if(e.transition)for(var l,u=dr(e.transition),a=0;a<u.length;a++)"style"!==(s=u[a])&&"shape"!==s&&"extra"!==s&&(l=t[s],n[s]=l);else JN(n,"x",t),JN(n,"y",t);var h=e.leaveTo;if(h){var c=ez(t),p=J(h);for(a=0;a<p.length;a++)c[s=p[a]]=h[s]}}(e,i,u,a),KN(t=i,l=h,"position"),KN(t,l,"scale"),KN(t,l,"origin"),$N(t,l,"x"),$N(t,l,"y"),$N(t,l,"scaleX"),$N(t,l,"scaleY"),$N(t,l,"originX"),$N(t,l,"originY"),$N(t,l,"rotation"),QN("extra",e,i,u,a),tz("extra",i,h),function(t,e,n,i,o){if(n){var r=t.style,a=n.enterFrom;if(o&&a)for(var s=J(a),l=l||(i.style={}),u=0;u<s.length;u++){var h=s[u];l[h]=a[h]}if(!o&&r)if(n.transition){var c=dr(n.transition);for(l=l||(i.style={}),u=0;u<c.length;u++){var p=r[h=c[u]];l[h]=p}}else if(t.getAnimationStyleProps&&0<=W(e.transition,"style")){var e=t.getAnimationStyleProps(),d=e?e.style:null;if(d){l=l||(i.style={});for(var f=J(n),u=0;u<f.length;u++)d[h=f[u]]&&(p=r[h],l[h]=p)}}var g=n.leaveTo;if(g){var y=J(g),t=ez(t),m=t.style||(t.style={});for(u=0;u<y.length;u++)m[h=y[u]]=g[h]}}}(e,i,o,u,a),h.style=o,function(t,e){var n=t.isGroup?null:t,i=e.style;if(n&&i){n.useStyle(i);var o=i.__decalPattern;o&&(n.style.decal=o);for(var r=n.animators,a=0;a<r.length;a++){var s=r[a];"style"===s.targetName&&s.changeTarget(n.style)}}e&&(e.style=null,e&&t.attr(e),e.style=i)}(e,h),function(t,e,n,i,o){{var r;i&&(r=EN(t).userDuring,r=r?Q(xz,{el:t,userDuring:r}):null,(o?Su:wu)(t,i,n,{dataIndex:e,isFrom:!0,during:r}))}}(e,n,r,u,a),a=e,s=s,At(i=i,"silent")&&(a.silent=i.silent),At(i,"ignore")&&(a.ignore=i.ignore),cz(a)&&At(i,"invisible")&&(a.invisible=i.invisible),hz(a)&&At(i,"autoBatch")&&(a.autoBatch=i.autoBatch),s||At(i,"info")&&(EN(a).info=i.info),o?e.dirty():e.markRedraw()}var mz={},vz={setTransform:function(t,e){return mz.el[t]=e,this},getTransform:function(t){return mz.el[t]},setShape:function(t,e){return(mz.el.shape||(mz.el.shape={}))[t]=e,mz.isShapeDirty=!0,this},getShape:function(t){var e=mz.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=mz.el.style;return n&&(n[t]=e,mz.isStyleDirty=!0),this},getStyle:function(t){var e=mz.el.style;if(e)return e[t]},setExtra:function(t,e){return(mz.el.extra||(mz.el.extra={}))[t]=e,this},getExtra:function(t){var e=mz.el.extra;if(e)return e[t]}};function xz(){var t,e=this.el;e&&(EN(e).userDuring===(t=this.userDuring)?(mz.el=e,mz.isShapeDirty=!1,mz.isStyleDirty=!1,t(vz),mz.isShapeDirty&&e.dirtyShape&&e.dirtyShape(),mz.isStyleDirty&&e.dirtyStyle&&e.dirtyStyle()):this.el=this.userDuring=null)}function _z(t,e,n,i,o){var r=e.isGroup?null:e,e=o&&o[t].cfg;r&&(o=r.ensureState(t),!1===i?(t=r.getState(t))&&(t.style=null):o.style=i||null,e&&(o.textConfig=e),ql(r))}function bz(t,e,n){if(!t.isGroup){var i=t,t=n.currentZ,n=n.currentZLevel;i.z=t,i.zlevel=n;n=e.z2;null!=n&&(i.z2=n||0);for(var o=0;o<oz.length;o++)r=i,a=e,s=oz[o],l=void 0,null!=(a=(a=(l=s===iz)?a:Cz(a,s))?a.z2:null)&&((l?r:r.ensureState(s)).z2=a||0)}var r,a,s,l}function wz(a,s,e,t){var n=a.get("renderItem"),i=a.coordinateSystem,o={};i&&(o=i.prepareCustoms?i.prepareCustoms(i):uz[i.type](i));for(var l,r,u,h,c=F({getWidth:t.getWidth,getHeight:t.getHeight,getZr:t.getZr,getDevicePixelRatio:t.getDevicePixelRatio,value:function(t,e){return null==e&&(e=l),s.getStore().get(s.getDimensionIndex(t||0),e)},style:function(t,e){null==e&&(e=l);var n=s.getItemVisual(e,"style"),i=n&&n.fill,o=n&&n.opacity,r=_(e,iz).getItemStyle();null!=i&&(r.fill=i),null!=o&&(r.opacity=o);n={inheritColor:it(i)?i:"#000"},o=b(e,iz),i=Ru(o,null,n,!1,!0);i.text=o.getShallow("show")?gt(a.getFormattedLabel(e,iz),lS(s,e)):null;n=Nu(o,n,!1);return S(t,r),r=ZN(r,i,n),t&&w(r,t),r.legacy=!0,r},ordinalRawValue:function(t,e){null==e&&(e=l),t=t||0;var n=s.getDimensionInfo(t);if(!n){t=s.getDimensionIndex(t);return 0<=t?s.getStore().get(t,e):void 0}e=s.get(n.name,e),n=n&&n.ordinalMeta;return n?n.categories[e]:e},styleEmphasis:function(t,e){var n=_(e=null==e?l:e,nz).getItemStyle(),i=b(e,nz),o=Ru(i,null,null,!0,!0);o.text=i.getShallow("show")?yt(a.getFormattedLabel(e,nz),a.getFormattedLabel(e,iz),lS(s,e)):null;i=Nu(i,null,!0);return S(t,n),n=ZN(n,o,i),t&&w(n,t),n.legacy=!0,n},visual:function(t,e){if(null==e&&(e=l),At(NN,t)){var n=s.getItemVisual(e,"style");return n?n[NN[t]]:null}if(At(zN,t))return s.getItemVisual(e,t)},barLayout:function(t){if("cartesian2d"===i.type)return function(t){var e=[],n=t.axis;if("category"===n.type){for(var i=n.getBandWidth(),o=0;o<t.count;o++)e.push(F({bandWidth:i,axisKey:"axis0",stackId:e_+o},t));for(var r=s_(e),a=[],o=0;o<t.count;o++){var s=r.axis0[e_+o];s.offsetCenter=s.offset+s.width/2,a.push(s)}return a}}(F({axis:i.getBaseAxis()},t))},currentSeriesIndices:function(){return e.getCurrentSeriesIndices()},font:function(t){return Gu(t,e)}},o.api||{}),p={context:{},seriesId:a.id,seriesName:a.name,seriesIndex:a.seriesIndex,coordSys:o.coordSys,dataInsideLength:s.count(),encode:(u=a.getData(),h={},Z(u.dimensions,function(t){var e,n=u.getDimensionInfo(t);n.isExtraCoord||(e=n.coordDim,(h[e]=h[e]||[])[n.coordDimIndex]=u.getDimensionIndex(t))}),h)},d={},f={},g={},y={},m=0;m<oz.length;m++){var v=oz[m];g[v]=a.getModel(rz[v]),y[v]=a.getModel(az[v])}function x(t){return t===l?r=r||s.getItemModel(t):s.getItemModel(t)}function _(t,e){return s.hasItemOption?t===l?d[e]||(d[e]=x(t).getModel(rz[e])):x(t).getModel(rz[e]):g[e]}function b(t,e){return s.hasItemOption?t===l?f[e]||(f[e]=x(t).getModel(az[e])):x(t).getModel(az[e]):y[e]}return function(t,e){return l=t,r=null,d={},f={},n&&n(F({dataIndexInside:t,dataIndex:s.getRawIndex(t),actionType:e?e.type:null},p),c)};function w(t,e){for(var n in e)At(e,n)&&(t[n]=e[n])}function S(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}}function Sz(t,e,n,i,o,r,a){if(i){o=Mz(t,e,n,i,o,r);return o&&a.setItemGraphicEl(n,o),o&&hu(o,i.focus,i.blurScope),o}r.remove(e)}function Mz(t,e,n,i,o,r){var a=-1,s=e;e&&Iz(e,i,o)&&(a=W(r.childrenRef(),e),e=null);var l,u,h,c,p=!e,d=e;d?d.clearStates():(d=gz(i),s&&(h=s,(c=d).copyTransform(h),cz(c)&&cz(h)&&(c.setStyle(h.style),c.z=h.z,c.z2=h.z2,c.zlevel=h.zlevel,c.invisible=h.invisible,c.ignore=h.ignore,hz(c)&&hz(h)&&c.setShape(h.shape)))),!1===i.morph?d.disableMorphing=!0:d.disableMorphing&&(d.disableMorphing=!1),lz.normal.cfg=lz.normal.conOpt=lz.emphasis.cfg=lz.emphasis.conOpt=lz.blur.cfg=lz.blur.conOpt=lz.select.cfg=lz.select.conOpt=null,lz.isLegacy=!1,function(t,e,n,i,o,r){if(!t.isGroup){Tz(n,null,r),Tz(n,nz,r);var a=r.normal.conOpt,s=r.emphasis.conOpt,l=r.blur.conOpt,n=r.select.conOpt;if(null!=a||null!=s||null!=n||null!=l){var u=t.getTextContent();if(!1===a)u&&t.removeTextContent();else{a=r.normal.conOpt=a||{type:"text"},u?u.clearStates():(u=gz(a),t.setTextContent(u)),yz(null,u,e,a,null,i,o,!0);for(var o=a&&a.style,h=0;h<oz.length;h++){var c,p=oz[h];p!==iz&&(c=r[p].conOpt,_z(p,u,0,Dz(a,c,p),null))}o?u.dirty():u.markRedraw()}}}}(d,n,i,o,p,lz),l=d,u=n,e=o,s=p,!1===(h=(c=i).clipPath)?l&&l.getClipPath()&&l.removeClipPath():h&&((c=(c=l.getClipPath())&&Iz(c,h,e)?null:c)||(c=gz(h),l.setClipPath(c)),yz(null,c,u,h,null,e,s,!1)),yz(t,d,n,i,lz,o,p,!1);for(var f=0;f<oz.length;f++){var g=oz[f];g!==iz&&_z(g,d,0,Dz(i,Cz(i,g),g),lz)}return bz(d,i,o),"group"===i.type&&function(t,e,n,i,o){var r=i.children,a=r?r.length:0,s=i.$mergeChildren,i="byName"===s||i.diffChildrenByName,s=!1===s;if(a||i||s)if(i)!function(t){new K1(t.oldChildren,t.newChildren,Az,Az,t).add(kz).update(kz).remove(Lz).execute()}({api:t,oldChildren:e.children()||[],newChildren:r||[],dataIndex:n,seriesModel:o,group:e});else{s&&e.removeAll();for(var l=0;l<a;l++)r[l]&&Mz(t,e.childAt(l),n,r[l],o,e);for(var u=e.childCount()-1;l<=u;u--)Pz(e.childAt(u),o,e)}}(t,d,n,i,o),0<=a?r.replaceAt(d,a):r.add(d),d}function Iz(t,e,n){var i=EN(t),o=e.type,t=e.shape,e=e.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==i.customGraphicType||"path"===o&&((n=t)&&(At(n,"pathData")||At(n,"d")))&&Oz(t)!==i.customPathData||"image"===o&&At(e,"image")&&e.image!==i.customImagePath}function Tz(t,e,n){var i,o=e?Cz(t,e):t,r=e?Dz(t,o,nz):t.style,a=t.type,o=o?o.textConfig:null,t=t.textContent,t=t?e?Cz(t,e):t:null;r&&(n.isLegacy||UN(r,a,!!o,!!t))&&(n.isLegacy=!0,i=XN(r,a,!e),!o&&i.textConfig&&(o=i.textConfig),!t&&i.textContent&&(t=i.textContent)),!e&&t&&((i=t).type||(i.type="text"));n=e?n[e]:n.normal;n.cfg=o,n.conOpt=t}function Cz(t,e){return e?t?t[e]:null:t}function Dz(t,e,n){e=e&&e.style;return e=null==e&&n===nz&&t?t.styleEmphasis:e}function Az(t,e){t=t&&t.name;return null!=t?t:sz+e}function kz(t,e){var n=this.context,t=null!=t?n.newChildren[t]:null,e=null!=e?n.oldChildren[e]:null;Mz(n.api,e,n.dataIndex,t,n.seriesModel,n.group)}function Lz(t){var e=this.context;Pz(e.oldChildren[t],e.seriesModel,e.group)}function Pz(t,e,n){var i;t&&((i=EN(t).leaveToProps)?wu(t,i,e,{cb:function(){n.remove(t)}}):n.remove(t))}function Oz(t){return t&&(t.pathData||t.d)}var Rz=Ir(),Nz=E,zz=Q;function Ez(){this._dragging=!1,this.animationThreshold=15}function Vz(t,e,n,i){!function n(i,t){if(at(i)&&at(t)){var o=!0;return Z(t,function(t,e){o=o&&n(i[e],t)}),!!o}return i===t}(Rz(n).lastProp,i)&&(Rz(n).lastProp=i,e?wu(n,i,t):(n.stopAnimation(),n.attr(i)))}function Bz(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Gz(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Fz(t,e,n){var i=e.get("z"),o=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=o&&(t.zlevel=o),t.silent=n)})}Ez.prototype.render=function(t,e,n,i){var o=e.get("value"),r=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==o||this._lastStatus!==r){this._lastValue=o,this._lastStatus=r;var a=this._group,i=this._handle;if(!r||"hide"===r)return a&&a.hide(),void(i&&i.hide());a&&a.show(),i&&i.show();r={};this.makeElOption(r,o,t,e,n);i=r.graphicKey;i!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=i;i=this._moveAnimation=this.determineAnimation(t,e);a?(i=tt(Vz,e,i),this.updatePointerEl(a,r,i),this.updateLabelEl(a,r,i,e)):(a=this._group=new Ao,this.createPointerEl(a,r,t,e),this.createLabelEl(a,r,t,e),n.getZr().add(a)),Fz(a,e,!0),this._renderHandle(o)}},Ez.prototype.remove=function(t){this.clear(t)},Ez.prototype.dispose=function(t){this.clear(t)},Ez.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,o="category"===i.type,e=e.get("snap");if(!e&&!o)return!1;if("auto"!==n&&null!=n)return!0===n;n=this.animationThreshold;if(o&&i.getBandWidth()>n)return!0;if(e){t=o2(t).seriesDataCount,i=i.getExtent();return Math.abs(i[0]-i[1])/t>n}return!1},Ez.prototype.makeElOption=function(t,e,n,i,o){},Ez.prototype.createPointerEl=function(t,e,n,i){var o=e.pointer;o&&(e=Rz(t).pointerEl=new p[o.type](Nz(e.pointer)),t.add(e))},Ez.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=Rz(t).labelEl=new xl(Nz(e.label)),t.add(e),Bz(e,i))},Ez.prototype.updatePointerEl=function(t,e,n){t=Rz(t).pointerEl;t&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},Ez.prototype.updateLabelEl=function(t,e,n,i){t=Rz(t).labelEl;t&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),Bz(t,i))},Ez.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),o=this._handle,r=n.getModel("handle"),a=n.get("status");if(!r.get("show")||!a||"hide"===a)return o&&i.remove(o),void(this._handle=null);this._handle||(e=!0,o=this._handle=Om(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Me(t.event)},onmousedown:zz(this._onHandleDragMove,this,0,0),drift:zz(this._onHandleDragMove,this),ondragend:zz(this._onHandleDragEnd,this)}),i.add(o)),Fz(o,n,!1),o.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));n=r.get("size");et(n)||(n=[n,n]),o.scaleX=n[0]/2,o.scaleY=n[1]/2,Gf(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},Ez.prototype._moveHandleToValue=function(t,e){Vz(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Gz(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},Ez.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,e=this.updateHandleTransform(Gz(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=e,n.stopAnimation(),n.attr(Gz(e)),Rz(n).lastProp=null,this._doDispatchAxisPointer())},Ez.prototype._doDispatchAxisPointer=function(){var t,e;this._handle&&(t=this._payloadInfo,e=this._axisModel,this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]}))},Ez.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},Ez.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,t=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),t&&e.remove(t),this._group=null,this._handle=null,this._payloadInfo=null)},Ez.prototype.doClear=function(){},Ez.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},qu=Ez;function Hz(t){var e,n=t.get("type"),t=t.getModel(n+"Style");return"line"===n?(e=t.getLineStyle()).fill=null:"shadow"===n&&((e=t.getAreaStyle()).stroke=null),e}function Wz(t,e,n,i,o){var r=Uz(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=Gh(a.get("padding")||0),l=a.getFont(),u=lo(r,l),h=o.position,c=u.width+s[1]+s[3],n=u.height+s[0]+s[2],u=o.align;"right"===u&&(h[0]-=c),"center"===u&&(h[0]-=c/2);u=o.verticalAlign;"bottom"===u&&(h[1]-=n),"middle"===u&&(h[1]-=n/2),o=h,u=c,c=n,i=(n=i).getWidth(),n=n.getHeight(),o[0]=Math.min(o[0]+u,i)-u,o[1]=Math.min(o[1]+c,n)-c,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0);o=a.get("backgroundColor");o&&"auto"!==o||(o=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:Ru(a,{text:r,font:l,fill:a.getTextColor(),padding:s,backgroundColor:o}),z2:10}}function Uz(t,e,n,i,o){t=e.scale.parse(t);var r,a=e.scale.getLabel({value:t},{precision:o.precision}),o=o.formatter;return o&&(r={value:G_(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},Z(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,t=e&&e.getDataParams(t);t&&r.seriesData.push(t)}),it(o)?a=o.replace("{value}",a):nt(o)&&(a=o(r))),a}function Xz(t,e,n){var i=Ii();return ki(i,i,n.rotation),Ai(i,i,n.position),Cm([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function Yz(t,e,n,i,o,r){var a=e2.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),Wz(e,i,o,r,{position:Xz(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function Zz(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function jz(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function qz(t,e,n,i,o,r){return{cx:t,cy:e,r0:n,r:i,startAngle:o,endAngle:r,clockwise:!0}}var Kz,M=(y($z,Kz=qu),$z.prototype.makeElOption=function(t,e,n,i,o){var r,a=n.axis,s=a.grid,l=i.get("type"),u=Jz(s,a).getOtherAxis(a).getGlobalExtent(),h=a.toGlobalCoord(a.dataToCoord(e,!0));l&&"none"!==l&&(r=Hz(i),(u=Qz[l](a,h,u)).style=r,t.graphicKey=u.type,t.pointer=u),Yz(e,t,BI(s.model,n),n,i,o)},$z.prototype.getHandleTransform=function(t,e,n){var i=BI(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);t=Xz(e.axis,t,i);return{x:t[0],y:t[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},$z.prototype.updateHandleTransform=function(t,e,n,i){var o=n.axis,r=o.grid,a=o.getGlobalExtent(!0),n=Jz(r,o).getOtherAxis(o).getGlobalExtent(),r="x"===o.dim?0:1,o=[t.x,t.y];o[r]+=e[r],o[r]=Math.min(a[1],o[r]),o[r]=Math.max(a[0],o[r]);n=(n[1]+n[0])/2,n=[n,n];n[r]=o[r];return{x:o[0],y:o[1],rotation:t.rotation,cursorPoint:n,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][r]}},$z);function $z(){return null!==Kz&&Kz.apply(this,arguments)||this}function Jz(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var Qz={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:Zz([e,n[0]],[e,n[1]],tE(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:jz([e-i/2,n[0]],[i,o],tE(t))}}};function tE(t){return"x"===t.dim?0:1}var eE,nE=M,iE=(y(aE,eE=xc),aE.type="axisPointer",aE.defaultOption={show:"auto",zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},aE),oE=Ir(),rE=Z;function aE(){var t=null!==eE&&eE.apply(this,arguments)||this;return t.type=aE.type,t}function sE(t,e,n){var i,c,p;function o(t,h){c.on(t,function(e){var n,i,t,o,r,a,s,l=(n=p,{dispatchAction:u,pendings:i={showTip:[],hideTip:[]}});function u(t){var e=i[t.type];e?e.push(t):(t.dispatchAction=u,n.dispatchAction(t))}rE(oE(c).records,function(t){t&&h(t,e,l.dispatchAction)}),o=p,a=(t=l.pendings).showTip.length,s=t.hideTip.length,a?r=t.showTip[a-1]:s&&(r=t.hideTip[s-1]),r&&(r.dispatchAction=null,o.dispatchAction(r))})}w.node||(i=e.getZr(),oE(i).records||(oE(i).records={}),p=e,oE(c=i).initialized||(oE(c).initialized=!0,o("click",tt(uE,"click")),o("mousemove",tt(uE,"mousemove")),o("globalout",lE)),(oE(i).records[t]||(oE(i).records[t]={})).handler=n)}function lE(t,e,n){t.handler("leave",null,n)}function uE(t,e,n,i){e.handler(t,n,i)}function hE(t,e){w.node||(e=e.getZr(),(oE(e).records||{})[t]&&(oE(e).records[t]=null))}var cE,pE=(y(dE,cE=If),dE.prototype.render=function(t,e,n){var e=e.getComponent("tooltip"),i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";sE("axisPointer",n,function(t,e,n){"none"!==i&&("leave"===t||0<=i.indexOf(t))&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},dE.prototype.remove=function(t,e){hE("axisPointer",e)},dE.prototype.dispose=function(t,e){hE("axisPointer",e)},dE.type="axisPointer",dE);function dE(){var t=null!==cE&&cE.apply(this,arguments)||this;return t.type=dE.type,t}function fE(t,e){var n=[],i=t.seriesIndex;if(null==i||!(a=e.getSeriesByIndex(i)))return{point:[]};var o=a.getData(),r=Mr(o,t);if(null==r||r<0||et(r))return{point:[]};var a,s=o.getItemGraphicEl(r),e=a.coordinateSystem;return a.getTooltipPosition?n=a.getTooltipPosition(r)||[]:e&&e.dataToPoint?n=t.isStacked?(i=e.getBaseAxis(),a=e.getOtherAxis(i).dim,t=i.dim,i="x"===a||"radius"===a?1:0,a=o.mapDimension(t),(t=[])[i]=o.get(a,r),t[1-i]=o.get(o.getCalculationInfo("stackResultDimension"),r),e.dataToPoint(t)||[]):e.dataToPoint(o.getValues(j(e.dimensions,function(t){return o.mapDimension(t)}),r))||[]:s&&((r=s.getBoundingRect().clone()).applyTransform(s.transform),n=[r.x+r.width/2,r.y+r.height/2]),{point:n,el:s}}var gE=Ir();function yE(t,e,n){var i,o,r=t.currTrigger,a=[t.x,t.y],s=t,l=t.dispatchAction||Q(n.dispatchAction,n),u=e.getComponent("axisPointer").coordSysAxesInfo;if(u){bE(a)&&(a=fE({seriesIndex:s.seriesIndex,dataIndex:s.dataIndex},e).point);var h=bE(a),c=s.axesInfo,p=u.axesInfo,d="leave"===r||bE(a),f={},g={},s={list:[],map:{}},y={showPointer:tt(vE,g),showTooltip:tt(xE,s)};Z(u.coordSysMap,function(t,e){var o=h||t.containPoint(a);Z(u.coordSysAxesInfo[e],function(t,e){var n=t.axis,i=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(c,t);d||!o||c&&!i||null!=(i=null==(i=i&&i.value)&&!h?n.pointToData(a):i)&&mE(t,i,y,!1,f)})});var m={};return Z(p,function(n,t){var i=n.linkGroup;i&&!g[t]&&Z(i.axesInfo,function(t,e){var e=g[e];t!==n&&e&&(e=e.value,i.mapper&&(e=n.axis.scale.parse(i.mapper(e,_E(t),_E(n)))),m[n.key]=e)})}),Z(m,function(t,e){mE(p[e],t,y,!0,f)}),i=g,r=p,o=f.axesInfo=[],Z(r,function(t,e){var n=t.axisPointerModel.option,e=i[e];e?(t.useHandle||(n.status="show"),n.value=e.value,n.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&o.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),function(t,e,n,i){{var o;!bE(e)&&t.list.length?(o=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:o.dataIndexInside,dataIndex:o.dataIndex,seriesIndex:o.seriesIndex,dataByCoordSys:t.list})):i({type:"hideTip"})}}(s,a,t,l),function(t,e){var n=e.getZr(),i="axisPointerLastHighlights",o=gE(n)[i]||{},r=gE(n)[i]={};Z(t,function(t,e){t=t.axisPointerModel.option;"show"===t.status&&Z(t.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;r[e]=t})});var a=[],s=[];Z(o,function(t,e){r[e]||s.push(t)}),Z(r,function(t,e){o[e]||a.push(t)}),s.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:s}),a.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:a})}(p,n),f}}function mE(t,e,n,i,o){var r,a,s,l,u,h,c,p,d,f,g=t.axis;!g.scale.isBlank()&&g.containData(e)&&(t.involveSeries?(s=(r=(l=e,u=t.axis,h=u.dim,c=l,p=[],d=Number.MAX_VALUE,f=-1,Z(t.seriesModels,function(e,t){var n=e.getData().mapDimensionsAll(h);if(e.getAxisTooltipData)var i=e.getAxisTooltipData(n,l,u),o=i.dataIndices,r=i.nestestValue;else{if(!(o=e.getData().indicesOfNearest(n[0],l,"category"===u.type?.5:null)).length)return;r=e.getData().get(n[0],o[0])}null!=r&&isFinite(r)&&(i=l-r,(n=Math.abs(i))<=d&&((n<d||0<=i&&f<0)&&(d=n,f=i,c=r,p.length=0),Z(o,function(t){p.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}),{payloadBatch:p,snapToValue:c})).snapToValue,(a=r.payloadBatch)[0]&&null==o.seriesIndex&&G(o,a[0]),!i&&t.snap&&g.containData(s)&&null!=s&&(e=s),n.showPointer(t,e,a),n.showTooltip(t,r,s)):n.showPointer(t,e))}function vE(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function xE(t,e,n,i){var o,r=n.payloadBatch,a=e.axis,s=a.model,l=e.axisPointerModel;e.triggerTooltip&&r.length&&(n=a2(o=e.coordSys.model),(e=t.map[n])||(e=t.map[n]={coordSysId:o.id,coordSysIndex:o.componentIndex,coordSysType:o.type,coordSysMainType:o.mainType,dataByAxis:[]},t.list.push(e)),e.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:i,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:r.slice()}))}function _E(t){var e=t.axis.model,n={},t=n.axisDim=t.axis.dim;return n.axisIndex=n[t+"AxisIndex"]=e.componentIndex,n.axisName=n[t+"AxisName"]=e.name,n.axisId=n[t+"AxisId"]=e.id,n}function bE(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function wE(t){u2.registerAxisPointerClass("CartesianAxisPointer",nE),t.registerComponentModel(iE),t.registerComponentView(pE),t.registerPreprocessor(function(t){var e;t&&(t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={}),(e=t.axisPointer.link)&&!et(e)&&(t.axisPointer.link=[e]))}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=n2(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},yE)}var SE,Co=(y(ME,SE=qu),ME.prototype.makeElOption=function(t,e,n,i,o){var r=n.axis;"angle"===r.dim&&(this.animationThreshold=Math.PI/18);var a,s=r.polar,l=s.getOtherAxis(r).getExtent(),u=r.dataToCoord(e),h=i.get("type");h&&"none"!==h&&(a=Hz(i),(c=CE[h](r,s,u,l)).style=a,t.graphicKey=c.type,t.pointer=c);var c=i.get(["label","margin"]);Wz(t,n,i,o,function(t,e,n,i){var o=e.axis,r=o.dataToCoord(t);l=(l=n.getAngleAxis().getExtent()[0])/180*Math.PI;var a,t=n.getRadiusAxis().getExtent();{var s,l,u;u="radius"===o.dim?(ki(s=Ii(),s,l),Ai(s,s,[n.cx,n.cy]),a=Cm([r,-i],s),s=e.getModel("axisLabel").get("rotate")||0,l=e2.innerTextLayout(l,s*Math.PI/180,-1),s=l.textAlign,l.textVerticalAlign):(t=t[1],a=n.coordToPoint([t+i,r]),r=n.cx,u=n.cy,s=Math.abs(a[0]-r)/t<.3?"center":a[0]>r?"left":"right",Math.abs(a[1]-u)/t<.3?"middle":a[1]>u?"top":"bottom")}return{position:a,align:s,verticalAlign:u}}(e,n,s,c))},ME);function ME(){return null!==SE&&SE.apply(this,arguments)||this}var IE,TE,CE={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:Zz(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var o=Math.max(1,t.getBandWidth()),r=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:qz(e.cx,e.cy,i[0],i[1],(-n-o/2)*r,(o/2-n)*r)}:{type:"Sector",shape:qz(e.cx,e.cy,n-o/2,n+o/2,0,2*Math.PI)}}},DE=Co,AE=(y(LE,TE=xc),LE.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},LE.type="polar",LE.dependencies=["radiusAxis","angleAxis"],LE.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"80%"},LE),Zr=(y(kE,IE=xc),kE.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Ar).models[0]},kE.type="polarAxis",kE);function kE(){return null!==IE&&IE.apply(this,arguments)||this}function LE(){var t=null!==TE&&TE.apply(this,arguments)||this;return t.type=LE.type,t}X(Zr,X_);var PE,OE,RE,NE=(y(BE,RE=Zr),BE.type="angleAxis",BE),zE=(y(VE,OE=Zr),VE.type="radiusAxis",VE),k=(y(EE,PE=cb),EE.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},EE);function EE(t,e){return PE.call(this,"radius",t,e)||this}function VE(){var t=null!==OE&&OE.apply(this,arguments)||this;return t.type=VE.type,t}function BE(){var t=null!==RE&&RE.apply(this,arguments)||this;return t.type=BE.type,t}k.prototype.dataToRadius=cb.prototype.dataToCoord,k.prototype.radiusToData=cb.prototype.coordToData;var GE,FE=k,HE=Ir(),M=(y(WE,GE=cb),WE.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},WE.prototype.calculateCategoryInterval=function(){var t=this.getLabelModel(),e=this.scale,n=e.getExtent(),i=e.count();if(n[1]-n[0]<1)return 0;var o=n[0],e=this.dataToCoord(o+1)-this.dataToCoord(o),n=Math.abs(e),e=lo(null==o?"":o+"",t.getFont(),"center","top"),o=Math.max(e.height,7)/n;isNaN(o)&&(o=1/0);t=Math.max(0,Math.floor(o)),e=HE(this.model),n=e.lastAutoInterval,o=e.lastTickCount;return null!=n&&null!=o&&Math.abs(n-t)<=1&&Math.abs(o-i)<=1&&t<n?t=n:(e.lastTickCount=i,e.lastAutoInterval=t),t},WE);function WE(t,e){return GE.call(this,"angle",t,e||[0,360])||this}M.prototype.dataToAngle=cb.prototype.dataToCoord,M.prototype.angleToData=cb.prototype.coordToData;var UE=M,XE=["radius","angle"];function YE(t){this.dimensions=XE,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new FE,this._angleAxis=new UE,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}function ZE(t){var e=t.seriesModel,t=t.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}var jE=(YE.prototype.containPoint=function(t){t=this.pointToCoord(t);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},YE.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},YE.prototype.getAxis=function(t){return this["_"+t+"Axis"]},YE.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},YE.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},YE.prototype.getAngleAxis=function(){return this._angleAxis},YE.prototype.getRadiusAxis=function(){return this._radiusAxis},YE.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},YE.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},YE.prototype.getTooltipAxes=function(t){t=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},YE.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},YE.prototype.pointToData=function(t,e){t=this.pointToCoord(t);return[this._radiusAxis.radiusToData(t[0],e),this._angleAxis.angleToData(t[1],e)]},YE.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),t=i.getExtent(),o=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);i.inverse?o=r-360:r=o+360;i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var a=Math.atan2(-n,e)/Math.PI*180,s=a<o?1:-1;a<o||r<a;)a+=360*s;return[i,a]},YE.prototype.coordToPoint=function(t){var e=t[0],t=t[1]/180*Math.PI;return[Math.cos(t)*e+this.cx,-Math.sin(t)*e+this.cy]},YE.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,t=e-this.cy,e=n*n+t*t,n=this.r,t=this.r0;return e<=n*n&&t*t<=e}}},YE.prototype.convertToPixel=function(t,e,n){return ZE(e)===this?this.dataToPoint(n):null},YE.prototype.convertFromPixel=function(t,e,n){return ZE(e)===this?this.pointToData(n):null},YE);function qE(t,e){var n,i=this,o=i.getAngleAxis(),r=i.getRadiusAxis();o.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){var e;t.coordinateSystem===i&&(Z(U_(e=t.getData(),"radius"),function(t){r.scale.unionExtentFromData(e,t)}),Z(U_(e,"angle"),function(t){o.scale.unionExtentFromData(e,t)}))}),E_(o.scale,o.model),E_(r.scale,r.model),"category"!==o.type||o.onBand||(n=o.getExtent(),t=360/o.scale.count(),o.inverse?n[1]+=t:n[1]-=t,o.setExtent(n[0],n[1]))}function KE(t,e){var n;t.type=e.get("type"),t.scale=V_(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType&&(t.inverse=t.inverse!==e.get("clockwise"),n=e.get("startAngle"),t.setExtent(n,n+(t.inverse?-360:360))),(e.axis=t).model=e}var $E={dimensions:XE,create:function(t,s){var l=[];return t.eachComponent("polar",function(t,e){var n=new jE(e+"");n.update=qE;var i=n.getRadiusAxis(),o=n.getAngleAxis(),r=t.findAxisModel("radiusAxis"),a=t.findAxisModel("angleAxis");KE(i,r),KE(o,a),e=n,i=s,o=(r=t).get("center"),a=i.getWidth(),i=i.getHeight(),e.cx=Uo(o[0],a),e.cy=Uo(o[1],i),e=e.getRadiusAxis(),i=Math.min(a,i)/2,null==(r=r.get("radius"))?r=[0,"100%"]:et(r)||(r=[0,r]),i=[Uo(r[0],i),Uo(r[1],i)],e.inverse?e.setExtent(i[1],i[0]):e.setExtent(i[0],i[1]),l.push(n),(t.coordinateSystem=n).model=t}),t.eachSeries(function(t){var e;"polar"===t.get("coordinateSystem")&&(e=t.getReferringComponents("polar",Ar).models[0],t.coordinateSystem=e.coordinateSystem)}),l}},JE=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function QE(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),n=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:n[0],y2:n[1]}}function t5(t){return t.getRadiusAxis().inverse?0:1}function e5(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var n5,i5,Co=(y(h5,i5=u2),h5.prototype.render=function(e,t){var n,i,o,r,a,s;this.group.removeAll(),e.get("show")&&(n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),r=n.getTicksCoords(),a=n.getMinorTicksCoords(),e5(s=j(n.getViewLabels(),function(t){t=E(t);var e=n.scale,e="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(e),t})),e5(r),Z(JE,function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||o5[t](this.group,e,i,r,a,o,s)},this))},h5.type="angleAxis",h5),o5={axisLine:function(t,e,n,i,o,r){var a=e.getModel(["axisLine","lineStyle"]),s=t5(n),e=s?0:1,a=0===r[e]?new Rg({shape:{cx:n.cx,cy:n.cy,r:r[s]},style:a.getLineStyle(),z2:1,silent:!0}):new Cy({shape:{cx:n.cx,cy:n.cy,r:r[s],r0:r[e]},style:a.getLineStyle(),z2:1,silent:!0});a.style.fill=null,t.add(a)},axisTick:function(t,e,n,i,o,r){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=r[t5(n)],i=j(i,function(t){return new Lg({shape:QE(n,[l,l+s],t.coord)})});t.add(bm(i,{style:F(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,o,r){if(o.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=r[t5(n)],h=[],c=0;c<o.length;c++)for(var p=0;p<o[c].length;p++)h.push(new Lg({shape:QE(n,[u,u+l],o[c][p].coord)}));t.add(bm(h,{style:F(s.getModel("lineStyle").getLineStyle(),F(a.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(l,u,h,t,e,c,n){var p=u.getCategories(!0),d=u.getModel("axisLabel"),f=d.get("margin"),g=u.get("triggerEvent");Z(n,function(t,e){var n=d,i=t.tickValue,o=c[t5(h)],r=h.coordToPoint([o+f,t.coord]),a=h.cx,s=h.cy,a=Math.abs(r[0]-a)/o<.3?"center":r[0]>a?"left":"right",s=Math.abs(r[1]-s)/o<.3?"middle":r[1]>s?"top":"bottom";p&&p[i]&&(at(i=p[i])&&i.textStyle&&(n=new th(i.textStyle,d,d.ecModel)));a=new xl({silent:e2.isLabelSilent(u),style:Ru(n,{x:r[0],y:r[1],fill:n.getTextColor()||u.get(["axisLine","lineStyle","color"]),text:t.formattedLabel,align:a,verticalAlign:s})});l.add(a),g&&((s=e2.makeAxisEventDataBase(u)).targetType="axisLabel",s.value=t.rawLabel,_l(a).eventData=s)},this)},splitLine:function(t,e,n,i,o,r){for(var a=e.getModel("splitLine").getModel("lineStyle"),s=0,l=(l=a.get("color"))instanceof Array?l:[l],u=[],h=0;h<i.length;h++){var c=s++%l.length;u[c]=u[c]||[],u[c].push(new Lg({shape:QE(n,r,i[h].coord)}))}for(h=0;h<u.length;h++)t.add(bm(u[h],{style:F({stroke:l[h%l.length]},a.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,i,o,r){if(o.length){for(var a=e.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<o.length;l++)for(var u=0;u<o[l].length;u++)s.push(new Lg({shape:QE(n,r,o[l][u].coord)}));t.add(bm(s,{style:a.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,i,o,r){if(i.length){for(var a=e.getModel("splitArea").getModel("areaStyle"),s=0,l=(l=a.get("color"))instanceof Array?l:[l],u=[],h=Math.PI/180,c=-i[0].coord*h,p=Math.min(r[0],r[1]),d=Math.max(r[0],r[1]),f=e.get("clockwise"),g=1,y=i.length;g<=y;g++){var m=(g===y?i[0]:i[g]).coord,v=s++%l.length;u[v]=u[v]||[],u[v].push(new My({shape:{cx:n.cx,cy:n.cy,r0:p,r:d,startAngle:c,endAngle:-m*h,clockwise:f},silent:!0})),c=-m*h}for(g=0;g<u.length;g++)t.add(bm(u[g],{style:F({fill:l[g%l.length]},a.getAreaStyle()),silent:!0}))}}},r5=Co,a5=["axisLine","axisTickLabel","axisName"],s5=["splitLine","splitArea","minorSplitLine"],Zr=(y(u5,n5=u2),u5.prototype.render=function(e,t){var n,i,o,r,a,s,l,u,h;this.group.removeAll(),e.get("show")&&(n=this._axisGroup,i=this._axisGroup=new Ao,this.group.add(i),o=e.axis,h=(r=o.polar).getAngleAxis(),a=o.getTicksCoords(),s=o.getMinorTicksCoords(),l=h.getExtent()[0],u=o.getExtent(),h={position:[r.cx,r.cy],rotation:l/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1},h=new e2(e,h),Z(a5,h.add,h),i.add(h.getGroup()),km(n,i,e),Z(s5,function(t){e.get([t,"show"])&&!o.scale.isBlank()&&l5[t](this.group,e,r,l,u,a,s)},this))},u5.type="radiusAxis",u5),l5={splitLine:function(t,e,n,i,o,r){for(var a=e.getModel("splitLine").getModel("lineStyle"),s=0,l=(l=a.get("color"))instanceof Array?l:[l],u=[],h=0;h<r.length;h++){var c=s++%l.length;u[c]=u[c]||[],u[c].push(new Rg({shape:{cx:n.cx,cy:n.cy,r:r[h].coord}}))}for(h=0;h<u.length;h++)t.add(bm(u[h],{style:F({stroke:l[h%l.length],fill:null},a.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,i,o,r,a){if(a.length){for(var e=e.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<a.length;l++)for(var u=0;u<a[l].length;u++)s.push(new Rg({shape:{cx:n.cx,cy:n.cy,r:a[l][u].coord}}));t.add(bm(s,{style:F({fill:null},e.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,i,o,r){if(r.length){for(var a=e.getModel("splitArea").getModel("areaStyle"),s=0,l=(l=a.get("color"))instanceof Array?l:[l],u=[],h=r[0].coord,c=1;c<r.length;c++){var p=s++%l.length;u[p]=u[p]||[],u[p].push(new My({shape:{cx:n.cx,cy:n.cy,r0:h,r:r[c].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=r[c].coord}for(c=0;c<u.length;c++)t.add(bm(u[c],{style:F({fill:l[c%l.length]},a.getAreaStyle()),silent:!0}))}}};function u5(){var t=null!==n5&&n5.apply(this,arguments)||this;return t.type=u5.type,t.axisPointerClass="PolarAxisPointer",t}function h5(){var t=null!==i5&&i5.apply(this,arguments)||this;return t.type=h5.type,t.axisPointerClass="PolarAxisPointer",t}var c5=Zr;function p5(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function d5(t,e){return e.dim+t.model.componentIndex}function f5(t,e,n){var k={},L=function(t){var l={};Z(t,function(t,e){var n=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),r=d5(i,o),a=o.getExtent(),s="category"===o.type?o.getBandWidth():Math.abs(a[1]-a[0])/n.count(),i=l[r]||{bandWidth:s,remainedWidth:s,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},o=i.stacks;l[r]=i;a=p5(t);o[a]||i.autoWidthCount++,o[a]=o[a]||{width:0,maxWidth:0};n=Uo(t.get("barWidth"),s),r=Uo(t.get("barMaxWidth"),s),s=t.get("barGap"),t=t.get("barCategoryGap");n&&!o[a].width&&(n=Math.min(i.remainedWidth,n),o[a].width=n,i.remainedWidth-=n),r&&(o[a].maxWidth=r),null!=s&&(i.gap=s),null!=t&&(i.categoryGap=t)});var c={};return Z(l,function(t,n){c[n]={};var e=t.stacks,i=t.bandWidth,i=Uo(t.categoryGap,i),o=Uo(t.gap,1),r=t.remainedWidth,a=t.autoWidthCount,s=(r-i)/(a+(a-1)*o),s=Math.max(s,0);Z(e,function(t,e){var n=t.maxWidth;n&&n<s&&(n=Math.min(n,r),t.width&&(n=Math.min(n,t.width)),r-=n,t.width=n,a--)}),s=(r-i)/(a+(a-1)*o),s=Math.max(s,0);var l,u=0;Z(e,function(t,e){t.width||(t.width=s),u+=(l=t).width*(1+o)}),l&&(u-=l.width*o);var h=-u/2;Z(e,function(t,e){c[n][e]=c[n][e]||{offset:h,width:t.width},h+=t.width*(1+o)})}),c}(K(e.getSeriesByType(t),function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type}));e.eachSeriesByType(t,function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),o=d5(n,i),r=p5(t),o=L[o][r],a=o.offset,s=o.width,l=n.getOtherAxis(i),u=t.coordinateSystem.cx,h=t.coordinateSystem.cy,c=t.get("barMinHeight")||0,p=t.get("barMinAngle")||0;k[r]=k[r]||[];for(var d=e.mapDimension(l.dim),f=e.mapDimension(i.dim),g=Px(e,d),y="radius"!==i.dim||!t.get("roundCap",!0),m=l.dataToCoord(0),v=0,x=e.count();v<x;v++){var _=e.get(d,v),b=e.get(f,v),w=0<=_?"p":"n",S=m;g&&(k[r][b]||(k[r][b]={p:m,n:m}),S=k[r][b][w]);var M,I,T=void 0,C=void 0,D=void 0,A=void 0;"radius"===l.dim?(M=l.dataToCoord(_)-m,I=i.dataToCoord(b),C=(T=S)+(M=Math.abs(M)<c?(M<0?-1:1)*c:M),A=(D=I-a)-s,g&&(k[r][b][w]=C)):(_=l.dataToCoord(_,y)-m,C=(T=i.dataToCoord(b)+a)+s,A=(D=S)+(_=Math.abs(_)<p?(_<0?-1:1)*p:_),g&&(k[r][b][w]=A)),e.setItemLayout(v,{cx:u,cy:h,r0:T,r:C,startAngle:-D*Math.PI/180,endAngle:-A*Math.PI/180,clockwise:A<=D})}}})}var g5,y5={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},m5={splitNumber:5},v5=(y(x5,g5=If),x5.type="polar",x5);function x5(){var t=null!==g5&&g5.apply(this,arguments)||this;return t.type=x5.type,t}function _5(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,o={},r=i.position,a=i.orient,i=n.getRect(),n=[i.x,i.x+i.width,i.y,i.y+i.height],i={horizontal:{top:n[2],bottom:n[3]},vertical:{left:n[0],right:n[1]}};o.position=["vertical"===a?i.vertical[r]:n[0],"horizontal"===a?i.horizontal[r]:n[3]];o.rotation=Math.PI/2*{horizontal:0,vertical:1}[a];o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,right:1,left:-1}[r],t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),ft(e.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);e=e.rotate;return null==e&&(e=t.get(["axisLabel","rotate"])),o.labelRotation="top"===r?-e:e,o.z2=1,o}var b5,w5,S5=["axisLine","axisTickLabel","axisName"],M5=["splitArea","splitLine"],k=(y(D5,w5=u2),D5.prototype.render=function(e,t,n,i){var o=this.group;o.removeAll();var r=this._axisGroup;this._axisGroup=new Ao;var a=_5(e),a=new e2(e,a);Z(S5,a.add,a),o.add(this._axisGroup),o.add(a.getGroup()),Z(M5,function(t){e.get([t,"show"])&&I5[t](this,this.group,this._axisGroup,e)},this),km(r,this._axisGroup,e),w5.prototype.render.call(this,e,t,n,i)},D5.prototype.remove=function(){d2(this)},D5.type="singleAxis",D5),I5={splitLine:function(t,e,n,i){var o=i.axis;if(!o.scale.isBlank()){for(var r=i.getModel("splitLine"),a=r.getModel("lineStyle"),s=(s=a.get("color"))instanceof Array?s:[s],l=i.coordinateSystem.getRect(),u=o.isHorizontal(),h=[],c=0,p=o.getTicksCoords({tickModel:r}),d=[],f=[],g=0;g<p.length;++g){var y=o.toGlobalCoord(p[g].coord);u?(d[0]=y,d[1]=l.y,f[0]=y,f[1]=l.y+l.height):(d[0]=l.x,d[1]=y,f[0]=l.x+l.width,f[1]=y);y=c++%s.length;h[y]=h[y]||[],h[y].push(new Lg({subPixelOptimize:!0,shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]},silent:!0}))}for(var m=a.getLineStyle(["color"]),g=0;g<h.length;++g)e.add(bm(h[g],{style:F({stroke:s[g%s.length]},m),silent:!0}))}},splitArea:function(t,e,n,i){p2(t,n,i,i)}},T5=k,M=(y(C5,b5=xc),C5.prototype.getCoordSysModel=function(){return this},C5.type="singleAxis",C5.layoutMode="box",C5.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},C5);function C5(){var t=null!==b5&&b5.apply(this,arguments)||this;return t.type=C5.type,t}function D5(){var t=null!==w5&&w5.apply(this,arguments)||this;return t.type=D5.type,t.axisPointerClass="SingleAxisPointer",t}X(M,X_.prototype);var A5,k5=M,L5=(y(R5,A5=cb),R5.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},R5.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]},R5),P5=["single"];function O5(t,e,n){this.type="single",this.dimension="single",this.dimensions=P5,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}function R5(t,e,n,i,o){n=A5.call(this,t,e,n)||this;return n.type=i||"value",n.position=o||"bottom",n}function N5(t){var e=t.seriesModel,t=t.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}var z5=(O5.prototype._init=function(t,e,n){var i=this.dimension,o=new L5(i,V_(t),[0,0],t.get("type"),t.get("position")),i="category"===o.type;o.onBand=i&&t.get("boundaryGap"),o.inverse=t.get("inverse"),o.orient=t.get("orient"),(t.axis=o).model=t,(o.coordinateSystem=this)._axis=o},O5.prototype.update=function(t,e){t.eachSeries(function(t){var e;t.coordinateSystem===this&&(Z((e=t.getData()).mapDimensionsAll(this.dimension),function(t){this._axis.scale.unionExtentFromData(e,t)},this),E_(this._axis.scale,this._axis.model))},this)},O5.prototype.resize=function(t,e){this._rect=oc({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},O5.prototype.getRect=function(){return this._rect},O5.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],o=e.reverse?1:0;e.setExtent(i[o],i[1-o]),this._updateAxisTransform(e,n?t.x:t.y)},O5.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),i=n[0]+n[1],n=t.isHorizontal();t.toGlobalCoord=n?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=n?function(t){return t-e}:function(t){return i-t+e}},O5.prototype.getAxis=function(){return this._axis},O5.prototype.getBaseAxis=function(){return this._axis},O5.prototype.getAxes=function(){return[this._axis]},O5.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},O5.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},O5.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},O5.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],o="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[o]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-o]=0==o?n.y+n.height/2:n.x+n.width/2,i},O5.prototype.convertToPixel=function(t,e,n){return N5(e)===this?this.dataToPoint(n):null},O5.prototype.convertFromPixel=function(t,e,n){return N5(e)===this?this.pointToData(n):null},O5);var E5,V5={create:function(i,o){var r=[];return i.eachComponent("singleAxis",function(t,e){var n=new z5(t,i,o);n.name="single_"+e,n.resize(t,o),t.coordinateSystem=n,r.push(n)}),i.eachSeries(function(t){var e;"singleAxis"===t.get("coordinateSystem")&&(e=t.getReferringComponents("singleAxis",Ar).models[0],t.coordinateSystem=e&&e.coordinateSystem)}),r},dimensions:P5},B5=["x","y"],G5=["width","height"],Co=(y(H5,E5=qu),H5.prototype.makeElOption=function(t,e,n,i,o){var r=n.axis,a=r.coordinateSystem,s=U5(a,1-W5(r)),l=a.dataToPoint(e)[0],u=i.get("type");u&&"none"!==u&&(a=Hz(i),(s=F5[u](r,l,s)).style=a,t.graphicKey=s.type,t.pointer=s),Yz(e,t,_5(n),n,i,o)},H5.prototype.getHandleTransform=function(t,e,n){var i=_5(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);t=Xz(e.axis,t,i);return{x:t[0],y:t[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},H5.prototype.updateHandleTransform=function(t,e,n,i){var o=n.axis,r=o.coordinateSystem,a=W5(o),n=U5(r,a),o=[t.x,t.y];o[a]+=e[a],o[a]=Math.min(n[1],o[a]),o[a]=Math.max(n[0],o[a]);r=U5(r,1-a),r=(r[1]+r[0])/2,r=[r,r];return r[a]=o[a],{x:o[0],y:o[1],rotation:t.rotation,cursorPoint:r,tooltipOption:{verticalAlign:"middle"}}},H5),F5={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:Zz([e,n[0]],[e,n[1]],W5(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),o=n[1]-n[0];return{type:"Rect",shape:jz([e-i/2,n[0]],[i,o],W5(t))}}};function H5(){return null!==E5&&E5.apply(this,arguments)||this}function W5(t){return t.isHorizontal()?0:1}function U5(t,e){t=t.getRect();return[t[B5[e]],t[B5[e]]+t[G5[e]]]}var X5,Y5,Z5=Co,j5=(y(q5,X5=If),q5.type="single",q5);function q5(){var t=null!==X5&&X5.apply(this,arguments)||this;return t.type=q5.type,t}function K5(){var t=null!==Y5&&Y5.apply(this,arguments)||this;return t.type=K5.type,t}function $5(t,i){var e=t.cellSize,o=et(e)?e:t.cellSize=[e,e];1===o.length&&(o[1]=o[0]);e=j([0,1],function(t){return(null!=(e=i)[ec[n=t][0]]||null!=e[ec[n][1]]&&null!=e[ec[n][2]])&&(o[t]="auto"),null!=o[t]&&"auto"!==o[t];var e,n});sc(t,i,{type:"box",ignoreSize:e})}var J5,Q5=(y(K5,Y5=xc),K5.prototype.init=function(t,e,n){var i=lc(t);Y5.prototype.init.apply(this,arguments),$5(t,i)},K5.prototype.mergeOption=function(t){Y5.prototype.mergeOption.apply(this,arguments),$5(this.option,t)},K5.prototype.getCellSize=function(){return this.option.cellSize},K5.type="calendar",K5.defaultOption={zlevel:0,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}},K5),tV=(y(nV,J5=If),nV.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var o=t.coordinateSystem,r=o.getRangeInfo(),o=o.getOrient(),e=e.getLocaleModel();this._renderDayRect(t,r,i),this._renderLines(t,r,o,i),this._renderYearText(t,r,o,i),this._renderMonthText(t,e,o,i),this._renderWeekText(t,e,r,o,i)},nV.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),r=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,l=new rl({shape:{x:l[0],y:l[1],width:r,height:a},cursor:"default",style:o});n.add(l)}},nV.prototype._renderLines=function(e,t,n,i){var o=this,r=e.coordinateSystem,a=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=t.start,h=0;u.time<=t.end.time;h++){p(u.formatedDate);var c=(u=0===h?r.getDateInfo(t.start.y+"-"+t.start.m):u).date;c.setMonth(c.getMonth()+1),u=r.getDateInfo(c)}function p(t){o._firstDayOfMonth.push(r.getDateInfo(t)),o._firstDayPoints.push(r.dataToRect([t],!1).tl);t=o._getLinePointsOfOneWeek(e,t,n);o._tlpoints.push(t[0]),o._blpoints.push(t[t.length-1]),s&&o._drawSplitline(t,a,i)}p(r.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,l,n),a,i),s&&this._drawSplitline(o._getEdgesPoints(o._blpoints,l,n),a,i)},nV.prototype._getEdgesPoints=function(t,e,n){t=[t[0].slice(),t[t.length-1].slice()],n="horizontal"===n?0:1;return t[0][n]=t[0][n]-e/2,t[1][n]=t[1][n]+e/2,t},nV.prototype._drawSplitline=function(t,e,n){e=new Ey({z2:20,shape:{points:t},style:e});n.add(e)},nV.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,o=i.getDateInfo(e),r=[],a=0;a<7;a++){var s=i.getNextNDay(o.time,a),l=i.dataToRect([s.time],!1);r[2*s.day]=l.tl,r[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return r},nV.prototype._formatterLabel=function(t,e){return"string"==typeof t&&t?(n=t,Z(e,function(t,e){n=n.replace("{"+e+"}",i?Wh(t):t)}),n):"function"==typeof t?t(e):e.nameMap;var n,i},nV.prototype._yearTextPositionControl=function(t,e,n,i,o){var r=e[0],a=e[1],e=["center","bottom"];"bottom"===i?(a+=o,e=["center","top"]):"left"===i?r-=o:"right"===i?(r+=o,e=["center","top"]):a-=o;o=0;return{rotation:o="left"===i||"right"===i?Math.PI/2:o,x:r,y:a,style:{align:e[0],verticalAlign:e[1]}}},nV.prototype._renderYearText=function(t,e,n,i){var o,r,a,s,l,u=t.getModel("yearLabel");u.get("show")&&(o=u.get("margin"),r=(r=u.get("position"))||("horizontal"!==n?"top":"left"),a=((s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]])[0][0]+s[1][0])/2,l=(s[0][1]+s[1][1])/2,s={top:[a,s[t="horizontal"===n?0:1][1]],bottom:[a,s[1-t][1]],left:[s[1-t][0],l],right:[s[t][0],l]},t=e.start.y,+e.end.y>+e.start.y&&(t=t+"-"+e.end.y),l=u.get("formatter"),t={start:e.start.y,end:e.end.y,nameMap:t},t=this._formatterLabel(l,t),(t=new xl({z2:30,style:Ru(u,{text:t})})).attr(this._yearTextPositionControl(t,s[r],n,r,o)),i.add(t))},nV.prototype._monthTextPositionControl=function(t,e,n,i,o){var r="left",a="top",s=t[0],t=t[1];return"horizontal"===n?(t+=o,e&&(r="center"),"start"===i&&(a="bottom")):(s+=o,e&&(a="middle"),"start"===i&&(r="right")),{x:s,y:t,align:r,verticalAlign:a}},nV.prototype._renderMonthText=function(t,e,n,i){var o=t.getModel("monthLabel");if(o.get("show")){var r=o.get("nameMap"),a=o.get("margin"),s=o.get("position"),t=o.get("align"),l=[this._tlpoints,this._blpoints];r&&!it(r)||(r=(e=r?ch(r)||e:e).get(["time","monthAbbr"])||[]);for(var u="start"===s?0:1,h="horizontal"===n?0:1,a="start"===s?-a:a,c="center"===t,p=0;p<l[u].length-1;p++){var d=l[u][p].slice(),f=this._firstDayOfMonth[p];c&&(y=this._firstDayPoints[p],d[h]=(y[h]+l[0][p+1][h])/2);var g=o.get("formatter"),y=r[+f.m-1],y={yyyy:f.y,yy:(f.y+"").slice(2),MM:f.m,M:+f.m,nameMap:y},y=this._formatterLabel(g,y),d=new xl({z2:30,style:G(Ru(o,{text:y}),this._monthTextPositionControl(d,c,n,s,a))});i.add(d)}}},nV.prototype._weekTextPositionControl=function(t,e,n,i,o){var r="center",a="middle",s=t[0],t=t[1],n="start"===n;return"horizontal"===e?(s=s+i+(n?1:-1)*o[0]/2,r=n?"right":"left"):(t=t+i+(n?1:-1)*o[1]/2,a=n?"bottom":"top"),{x:s,y:t,align:r,verticalAlign:a}},nV.prototype._renderWeekText=function(t,e,n,i,o){var r=t.getModel("dayLabel");if(r.get("show")){var a=t.coordinateSystem,s=r.get("position"),l=r.get("nameMap"),u=r.get("margin"),h=a.getFirstDayOfWeek();l&&!it(l)||(l=(e=l?ch(l)||e:e).get(["time","dayOfWeekShort"])||j(e.get(["time","dayOfWeekAbbr"]),function(t){return t[0]}));var c=a.getNextNDay(n.end.time,7-n.lweek).time,p=[a.getCellWidth(),a.getCellHeight()],u=Uo(u,Math.min(p[1],p[0]));"start"===s&&(c=a.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var d=0;d<7;d++){var f=a.getNextNDay(c,d),g=a.dataToRect([f.time],!1).center,f=Math.abs((d+h)%7),g=new xl({z2:30,style:G(Ru(r,{text:l[f]}),this._weekTextPositionControl(g,i,s,u,p))});o.add(g)}}},nV.type="calendar",nV);function eV(t,e,n){this.type="calendar",this.dimensions=eV.dimensions,this.getDimensionsInfo=eV.getDimensionsInfo,this._model=t}function nV(){var t=null!==J5&&J5.apply(this,arguments)||this;return t.type=nV.type,t}function iV(t){var e=t.calendarModel,t=t.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem:null}var oV=(eV.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},eV.prototype.getRangeInfo=function(){return this._rangeInfo},eV.prototype.getModel=function(){return this._model},eV.prototype.getRect=function(){return this._rect},eV.prototype.getCellWidth=function(){return this._sw},eV.prototype.getCellHeight=function(){return this._sh},eV.prototype.getOrient=function(){return this._orient},eV.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},eV.prototype.getDateInfo=function(t){var e=(t=er(t)).getFullYear(),n=t.getMonth()+1,i=n<10?"0"+n:""+n,o=t.getDate(),n=o<10?"0"+o:""+o,o=t.getDay();return{y:e+"",m:i,d:n,day:o=Math.abs((o+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+i+"-"+n,date:t}},eV.prototype.getNextNDay=function(t,e){return 0===(e=e||0)||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},eV.prototype.update=function(t,e){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 n=this._rangeInfo.weeks||1,i=["width","height"],o=this._model.getCellSize().slice(),r=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];Z([0,1],function(t){l(o,t)&&(r[i[t]]=o[t]*a[t])});var e={width:e.getWidth(),height:e.getHeight()},s=this._rect=oc(r,e);function l(t,e){return null!=t[e]&&"auto"!==t[e]}Z([0,1],function(t){l(o,t)||(o[t]=s[i[t]]/a[t])}),this._sw=o[0],this._sh=o[1]},eV.prototype.dataToPoint=function(t,e){et(t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,t=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.time<i.end.time+864e5))return[NaN,NaN];n=n.day,t=this._getRangeInfo([i.start.time,t]).nthWeek;return"vertical"===this._orient?[this._rect.x+n*this._sw+this._sw/2,this._rect.y+t*this._sh+this._sh/2]:[this._rect.x+t*this._sw+this._sw/2,this._rect.y+n*this._sh+this._sh/2]},eV.prototype.pointToData=function(t){t=this.pointToDate(t);return t&&t.time},eV.prototype.dataToRect=function(t,e){e=this.dataToPoint(t,e);return{contentShape:{x:e[0]-(this._sw-this._lineWidth)/2,y:e[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:e,tl:[e[0]-this._sw/2,e[1]-this._sh/2],tr:[e[0]+this._sw/2,e[1]-this._sh/2],br:[e[0]+this._sw/2,e[1]+this._sh/2],bl:[e[0]-this._sw/2,e[1]+this._sh/2]}},eV.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,t=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,t):this._getDateByWeeksAndDay(e,n-1,t)},eV.prototype.convertToPixel=function(t,e,n){e=iV(e);return e===this?e.dataToPoint(n):null},eV.prototype.convertFromPixel=function(t,e,n){e=iV(e);return e===this?e.pointToData(n):null},eV.prototype.containPoint=function(t){return!1},eV.prototype._initRangeOption=function(){var t,e,n,i,o=this._model.get("range");if(et(o)&&1===o.length&&(o=o[0]),et(o)?i=o:(t=o.toString(),/^\d{4}$/.test(t)&&(i=[t+"-01-01",t+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(t)&&((n=(e=this.getDateInfo(t)).date).setMonth(n.getMonth()+1),n=this.getNextNDay(n,-1),i=[e.formatedDate,n.formatedDate]),/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(t)&&(i=[t,t])),!i)return o;o=this._getRangeInfo(i);return o.start.time>o.end.time&&i.reverse(),i},eV.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i,o=Math.floor(n[1].time/864e5)-Math.floor(n[0].time/864e5)+1,r=new Date(n[0].time),a=r.getDate(),s=n[1].date.getDate();if(r.setDate(a+o-1),(i=r.getDate())!==s)for(var l=0<r.getTime()-n[1].time?1:-1;(i=r.getDate())!==s&&0<(r.getTime()-n[1].time)*l;)o-=l,r.setDate(i-l);t=Math.floor((o+n[0].day+6)/7),a=e?1-t:t-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:o,weeks:t,nthWeek:a,fweek:n[0].day,lweek:n[1].day}},eV.prototype._getDateByWeeksAndDay=function(t,e,n){n=this._getRangeInfo(n);if(t>n.weeks||0===t&&e<n.fweek||t===n.weeks&&e>n.lweek)return null;t=7*(t-1)-n.fweek+e,e=new Date(n.start.time);return e.setDate(+n.start.d+t),this.getDateInfo(e)},eV.create=function(t,e){var n=[];return t.eachComponent("calendar",function(t){var e=new eV(t);n.push(e),t.coordinateSystem=e}),t.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])}),n},eV.dimensions=["time","value"],eV);function rV(t){var e=t.graphic;et(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}var aV,sV,lV=Ir(),uV={path:null,compoundPath:null,group:Ao,image:qs,text:xl},hV=(y(dV,sV=xc),dV.prototype.mergeOption=function(t,e){var n=this.option.elements;this.option.elements=null,sV.prototype.mergeOption.call(this,t,e),this.option.elements=n},dV.prototype.optionUpdated=function(t,e){var n=this.option,t=(e?n:t).elements,l=n.elements=e?[]:n.elements,n=[];this._flatten(t,n,null);var n=mr(l,n,"normalMerge"),u=this._elOptionsToUpdate=[];Z(n,function(t,e){var n,i,o,r,a,s=t.newOption;s&&(u.push(s),function(t,e){var n=t.existing;e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId&&((t=e.parentOption)?e.parentId=t.id:n&&(e.parentId=n.parentId));e.parentOption=null}(t,s),n=l,i=e,r=G({},o=s),a=n[i],"merge"===(t=o.$action||"merge")?a?(V(a,r,!0),sc(a,r,{ignoreSize:!0}),uc(o,a)):n[i]=r:"replace"===t?n[i]=r:"remove"===t&&a&&(n[i]=null),e=l[e],s=s,e&&(e.hv=s.hv=[yV(s,["left","right"]),yV(s,["top","bottom"])],"group"===e.type)&&(s=s,null==(e=e).width&&(e.width=s.width=0),null==e.height&&(e.height=s.height=0)))},this);for(var i=l.length-1;0<=i;i--)null==l[i]?l.splice(i,1):delete l[i].$action},dV.prototype._flatten=function(t,n,i){Z(t,function(t){var e;t&&(i&&(t.parentOption=i),n.push(t),e=t.children,"group"===t.type&&e&&this._flatten(e,n,t),delete t.children)},this)},dV.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},dV.type="graphic",dV.defaultOption={elements:[]},dV),cV=(y(pV,aV=If),pV.prototype.init=function(){this._elMap=Tt()},pV.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},pV.prototype._updateElements=function(c){var p,d,t=c.useElOptionsToUpdate();t&&(p=this._elMap,d=this.group,Z(t,function(t){var e=_r(t.id,null),n=null!=e?p.get(e):null,i=_r(t.parentId,null),o=null!=i?p.get(i):d,r=t.type,a=t.style;"text"===r&&a&&t.hv&&t.hv[1]&&(a.textVerticalAlign=a.textBaseline=a.verticalAlign=a.align=null);var s=t.textContent,i=t.textConfig;a&&UN(a,r,!!i,!!s)&&(u=XN(a,r,!0),!i&&u.textConfig&&(i=t.textConfig=u.textConfig),!s&&u.textContent&&(s=u.textContent));var l,i=(l=G({},l=t),Z(["id","parentId","$action","hv","bounding","textContent"].concat(tc),function(t){delete l[t]}),l),u=t.$action||"merge";"merge"===u?n?n.attr(i):fV(e,o,i,p):"replace"===u?(gV(n,p),fV(e,o,i,p)):"remove"===u&&gV(n,p);var h,n=p.get(e);n&&s&&("merge"===u?(h=n.getTextContent())?h.attr(s):n.setTextContent(new xl(s)):"replace"===u&&n.setTextContent(new xl(s))),n&&((e=lV(n)).__ecGraphicWidthOption=t.width,e.__ecGraphicHeightOption=t.height,h=c,u=t,e=_l(s=n).eventData,(e=s.silent||s.ignore||e?e:_l(s).eventData={componentType:"graphic",componentIndex:h.componentIndex,name:s.name})&&(e.info=u.info),zm({el:n,componentModel:c,itemName:n.name,itemTooltipOption:t.tooltip}))}))},pV.prototype._relocate=function(t,e){for(var n=t.option.elements,i=this.group,o=this._elMap,r=e.getWidth(),a=e.getHeight(),s=0;s<n.length;s++){var l,u,h,c,p=n[s],d=_r(p.id,null),f=null!=d?o.get(d):null;f&&f.isGroup&&(u=(l=f.parent)===i,h=lV(f),c=lV(l),h.__ecGraphicWidth=Uo(h.__ecGraphicWidthOption,u?r:c.__ecGraphicWidth)||0,h.__ecGraphicHeight=Uo(h.__ecGraphicHeightOption,u?a:c.__ecGraphicHeight)||0)}for(s=n.length-1;0<=s;s--)(f=null!=(d=_r((p=n[s]).id,null))?o.get(d):null)&&(l=f.parent,c=lV(l),rc(f,p,l===i?{width:r,height:a}:{width:c.__ecGraphicWidth,height:c.__ecGraphicHeight},null,{hv:p.hv,boundingMode:p.bounding}))},pV.prototype._clear=function(){var e=this._elMap;e.each(function(t){gV(t,e)}),this._elMap=Tt()},pV.prototype.dispose=function(){this._clear()},pV.type="graphic",pV);function pV(){var t=null!==aV&&aV.apply(this,arguments)||this;return t.type=pV.type,t}function dV(){var t=null!==sV&&sV.apply(this,arguments)||this;return t.type=dV.type,t.preventAutoZ=!0,t}function fV(t,e,n,i){var o=n.type,n=new(At(uV,o)?uV[o]:mm(o))(n);e.add(n),i.set(t,n),lV(n).__ecGraphicId=t}function gV(t,e){var n=t&&t.parent;n&&("group"===t.type&&t.traverse(function(t){gV(t,e)}),e.removeKey(lV(t).__ecGraphicId),n.remove(t))}function yV(e,t){var n;return Z(t,function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)}),n}var mV=["x","y","radius","angle","single"],vV=["cartesian2d","polar","singleAxis"];function xV(t){return t+"Axis"}function _V(t,e){var i,o=Tt(),n=[],r=Tt();for(t.eachComponent({mainType:"dataZoom",query:e},function(t){r.get(t.uid)||s(t)});i=!1,t.eachComponent("dataZoom",a),i;);function a(t){var n;!r.get(t.uid)&&(n=!1,t.eachTargetAxis(function(t,e){t=o.get(t);t&&t[e]&&(n=!0)}),n)&&(s(t),i=!0)}function s(t){r.set(t.uid,!0),n.push(t),t.eachTargetAxis(function(t,e){(o.get(t)||o.set(t,[]))[e]=!0})}return n}function bV(t){var o=t.ecModel,r={infoList:[],infoMap:Tt()};return t.eachTargetAxis(function(t,e){var n,i=o.getComponent(xV(t),e);!i||(n=i.getCoordSysModel())&&(t=n.uid,(e=r.infoMap.get(t))||(r.infoList.push(e={model:n,axisModels:[]}),r.infoMap.set(t,e)),e.axisModels.push(i))}),r}var wV,SV=(IV.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},IV);function MV(){var t=null!==wV&&wV.apply(this,arguments)||this;return t.type=MV.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}function IV(){this.indexList=[],this.indexMap=[]}function TV(e){var n={};return Z(["start","end","startValue","endValue","throttle"],function(t){e.hasOwnProperty(t)&&(n[t]=e[t])}),n}var CV,DV,AV,Zr=(y(MV,wV=xc),MV.prototype.init=function(t,e,n){var i=TV(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},MV.prototype.mergeOption=function(t){var e=TV(t);V(this.option,t,!0),V(this.settledOption,e,!0),this._doInit(e)},MV.prototype._doInit=function(t){var n=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var i=this.settledOption;Z([["start","startValue"],["end","endValue"]],function(t,e){"value"===this._rangePropMode[e]&&(n[t[0]]=i[t[0]]=null)},this),this._resetTarget()},MV.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=Tt();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each(function(t){t.indexList.length&&(this._noTarget=!1)},this)},MV.prototype._fillSpecifiedTargetAxis=function(i){var o=!1;return Z(mV,function(t){var e,n=this.getReferringComponents(xV(t),kr);n.specified&&(o=!0,e=new SV,Z(n.models,function(t){e.add(t.componentIndex)}),i.set(t,e))},this),o},MV.prototype._fillAutoTargetAxisByOrient=function(r,e){var t,i=this.ecModel,a=!0;function n(t,e){var n,i,o=t[0];o&&((n=new SV).add(o.componentIndex),r.set(e,n),a=!1,"x"!==e&&"y"!==e||(i=o.getReferringComponents("grid",Ar).models[0])&&Z(t,function(t){o.componentIndex!==t.componentIndex&&i===t.getReferringComponents("grid",Ar).models[0]&&n.add(t.componentIndex)}))}a&&n(i.findComponents({mainType:(t="vertical"===e?"y":"x")+"Axis"}),t),a&&n(i.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single"),a&&Z(mV,function(t){var e,n;!a||(e=i.findComponents({mainType:xV(t),filter:function(t){return"category"===t.get("type",!0)}}))[0]&&((n=new SV).add(e[0].componentIndex),r.set(t,n),a=!1)},this)},MV.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){e=e||t},this),"y"===e?"vertical":"horizontal"},MV.prototype._setDefaultThrottle=function(t){t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle&&(t=this.ecModel.option,this.option.throttle=t.animation&&0<t.animationDurationUpdate?100:20)},MV.prototype._updateRangeUse=function(i){var o=this._rangePropMode,r=this.get("rangeMode");Z([["start","startValue"],["end","endValue"]],function(t,e){var n=null!=i[t[0]],t=null!=i[t[1]];n&&!t?o[e]="percent":!n&&t?o[e]="value":r?o[e]=r[e]:n&&(o[e]="percent")})},MV.prototype.noTarget=function(){return this._noTarget},MV.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(t,e){null==n&&(n=this.ecModel.getComponent(xV(t),e))},this),n},MV.prototype.eachTargetAxis=function(n,i){this._targetAxisInfoMap.each(function(t,e){Z(t.indexList,function(t){n.call(i,e,t)})})},MV.prototype.getAxisProxy=function(t,e){e=this.getAxisModel(t,e);if(e)return e.__dzAxisProxy},MV.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(xV(t),e)},MV.prototype.setRawRange=function(e){var n=this.option,i=this.settledOption;Z([["start","startValue"],["end","endValue"]],function(t){null==e[t[0]]&&null==e[t[1]]||(n[t[0]]=i[t[0]]=e[t[0]],n[t[1]]=i[t[1]]=e[t[1]])},this),this._updateRangeUse(e)},MV.prototype.setCalculatedRange=function(e){var n=this.option;Z(["start","startValue","end","endValue"],function(t){n[t]=e[t]})},MV.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},MV.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();e=this.findRepresentativeAxisProxy();return e?e.getDataValueWindow():void 0},MV.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],r=this._targetAxisInfoMap.get(o),a=0;a<r.indexList.length;a++){var s=this.getAxisProxy(o,r.indexList[a]);if(s.hostedBy(this))return s;e=e||s}return e},MV.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},MV.prototype.getOrient=function(){return this._orient},MV.type="dataZoom",MV.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],MV.defaultOption={zlevel:0,z:4,filterMode:"filter",start:0,end:100},MV),kV=(y(EV,AV=Zr),EV.type="dataZoom.select",EV),k=(y(zV,DV=If),zV.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},zV.type="dataZoom",zV),LV=(y(NV,CV=k),NV.type="dataZoom.select",NV),PV=Z,OV=Yo;function RV(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}function NV(){var t=null!==CV&&CV.apply(this,arguments)||this;return t.type=NV.type,t}function zV(){var t=null!==DV&&DV.apply(this,arguments)||this;return t.type=zV.type,t}function EV(){var t=null!==AV&&AV.apply(this,arguments)||this;return t.type=EV.type,t}var VV=(RV.prototype.hostedBy=function(t){return this._dataZoomModel===t},RV.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},RV.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},RV.prototype.getTargetSeriesModels=function(){var n=[];return this.ecModel.eachSeries(function(t){var e;e=(e=t).get("coordinateSystem"),0<=W(vV,e)&&(e=xV(this._dimName),(e=t.getReferringComponents(e,Ar).models[0])&&this._axisIndex===e.componentIndex&&n.push(t))},this),n},RV.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},RV.prototype.getMinMaxSpan=function(){return E(this._minMaxSpan)},RV.prototype.calculateDataWindow=function(i){var o,r=this._dataExtent,s=this.getAxisModel().axis.scale,a=this._dataZoomModel.getRangePropMode(),l=[0,100],u=[],h=[];PV(["start","end"],function(t,e){var n=i[t],t=i[t+"Value"];"percent"===a[e]?t=s.parse(Wo(n=null==n?l[e]:n,l,r)):(o=!0,n=Wo(t=null==t?r[e]:s.parse(t),r,l)),h[e]=t,u[e]=n}),OV(h),OV(u);var c=this._minMaxSpan;function t(t,e,n,i,o){var r=o?"Span":"ValueSpan";pL(0,t,n,"all",c["min"+r],c["max"+r]);for(var a=0;a<2;a++)e[a]=Wo(t[a],n,i,!0),o&&(e[a]=s.parse(e[a]))}return o?t(h,u,r,l,!1):t(u,h,l,r,!0),{valueWindow:h,percentWindow:u}},RV.prototype.reset=function(t){var e;t===this._dataZoomModel&&(e=this.getTargetSeriesModels(),this._dataExtent=function(t,i,e){var o=[1/0,-1/0];PV(e,function(t){var e,n;e=o,n=t.getData(),t=i,n&&Z(U_(n,t),function(t){t=n.getApproximateExtent(t);t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])})});t=t.getAxisModel(),t=R_(t.axis.scale,t,o).calculate();return[t.min,t.max]}(this,this._dimName,e),this._updateMinMaxSpan(),t=this.calculateDataWindow(t.settledOption),this._valueWindow=t.valueWindow,this._percentWindow=t.percentWindow,this._setAxisModel())},RV.prototype.filterData=function(t,e){var o,n,r,c;t===this._dataZoomModel&&(o=this._dimName,n=this.getTargetSeriesModels(),r=t.get("filterMode"),c=this._valueWindow,"none"!==r&&PV(n,function(n){var l,u,i=n.getData(),h=i.mapDimensionsAll(o);h.length&&("weakFilter"===r?(l=i.getStore(),u=j(h,function(t){return i.getDimensionIndex(t)},i),i.filterSelf(function(t){for(var e,n,i,o=0;o<h.length;o++){var r=l.get(u[o],t),a=!isNaN(r),s=r<c[0],r=r>c[1];if(a&&!s&&!r)return!0;a&&(i=!0),s&&(e=!0),r&&(n=!0)}return i&&e&&n})):PV(h,function(t){var e;"empty"===r?n.setData(i=i.map(t,function(t){return(e=t)>=c[0]&&e<=c[1]?t:NaN;var e})):((e={})[t]=c,i.selectRange(e))}),PV(h,function(t){i.setApproximateExtent(c,t)}))}))},RV.prototype._updateMinMaxSpan=function(){var i=this._minMaxSpan={},o=this._dataZoomModel,r=this._dataExtent;PV(["min","max"],function(t){var e=o.get(t+"Span"),n=o.get(t+"ValueSpan");null!=(n=null!=n?this.getAxisModel().axis.scale.parse(n):n)?e=Wo(r[0]+n,r,[0,100],!0):null!=e&&(n=Wo(e,[0,100],r,!0)-r[0]),i[t+"Span"]=e,i[t+"ValueSpan"]=n},this)},RV.prototype._setAxisModel=function(){var t,e=this.getAxisModel(),n=this._percentWindow,i=this._valueWindow;n&&(t=qo(i,[0,500]),t=Math.min(t,20),e=e.axis.scale.rawExtentInfo,0!==n[0]&&e.setDeterminedMinMax("min",+i[0].toFixed(t)),100!==n[1]&&e.setDeterminedMinMax("max",+i[1].toFixed(t)),e.freeze())},RV),BV={getTargetSeries:function(r){function t(o){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(t,e){var n=r.getComponent(xV(t),e);o(t,e,n,i)})})}t(function(t,e,n,i){n.__dzAxisProxy=null});var o=[];t(function(t,e,n,i){n.__dzAxisProxy||(n.__dzAxisProxy=new VV(t,e,i,r),o.push(n.__dzAxisProxy))});var e=Tt();return Z(o,function(t){Z(t.getTargetSeriesModels(),function(t){e.set(t.uid,t)})}),e},overallReset:function(t,i){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(t,e){n.getAxisProxy(t,e).reset(n)}),n.eachTargetAxis(function(t,e){n.getAxisProxy(t,e).filterData(n,i)})}),t.eachComponent("dataZoom",function(t){var e,n=t.findRepresentativeAxisProxy();n&&(e=n.getDataPercentWindow(),n=n.getDataValueWindow(),t.setCalculatedRange({start:e[0],end:e[1],startValue:n[0],endValue:n[1]}))})}};var GV=!1;function FV(t){GV||(GV=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,BV),t.registerAction("dataZoom",function(e,t){Z(_V(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})}),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function HV(t){t.registerComponentModel(kV),t.registerComponentView(LV),FV(t)}function WV(){}var UV={};function XV(t,e){UV[t]=e}function YV(t){return UV[t]}var ZV,jV,qV=(y(KV,ZV=xc),KV.prototype.optionUpdated=function(){ZV.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;Z(this.option.feature,function(t,e){e=YV(e);e&&(e.getDefaultOption&&(e.defaultOption=e.getDefaultOption(n)),V(t,e.defaultOption))})},KV.type="toolbox",KV.layoutMode={type:"box",ignoreSize:!0},KV.defaultOption={show:!0,z:6,zlevel:0,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"}},KV);function KV(){var t=null!==ZV&&ZV.apply(this,arguments)||this;return t.type=KV.type,t}function $V(t,e){var n=Gh(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new rl({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}function JV(){return null!==jV&&jV.apply(this,arguments)||this}var QV,t3=(y(JV,jV=If),JV.prototype.render=function(h,c,p,a){var d,s,l,u,t,e,n,i,o,r,f=this.group;function g(t,e){var n,i=u[t],o=u[e],t=s[i],e=new th(t,h,h.ecModel);if(a&&null!=a.newTitle&&a.featureName===i&&(t.title=a.newTitle),i&&!o){if(0===i.indexOf("my"))n={onclick:e.option.onclick,featureName:i};else{var r=YV(i);if(!r)return;n=new r}l[i]=n}else if(!(n=l[o]))return;n.uid=nh("toolbox-feature"),n.model=e,n.ecModel=c,n.api=p;r=n instanceof WV;i||!o?!e.get("show")||r&&n.unusable?r&&n.remove&&n.remove(c,p):(function(o,r,t){var e,a,s=o.getModel("iconStyle"),l=o.getModel(["emphasis","iconStyle"]),n=r instanceof WV&&r.getIcons?r.getIcons():o.get("icon"),i=o.get("title")||{};"string"==typeof n?(e={})[t]=n:e=n,"string"==typeof i?(a={})[t]=i:a=i;var u=o.iconPaths={};Z(e,function(t,e){var n=Om(t,{},{x:-d/2,y:-d/2,width:d,height:d});n.setStyle(s.getItemStyle()),n.ensureState("emphasis").style=l.getItemStyle();var i=new xl({style:{text:a[e],align:l.get("textAlign"),borderRadius:l.get("textBorderRadius"),padding:l.get("textPadding"),fill:null},ignore:!0});n.setTextContent(i),zm({el:n,componentModel:h,itemName:e,formatterParamsExtra:{title:a[e]}}),n.__title=a[e],n.on("mouseover",function(){var t=l.getItemStyle(),e="vertical"===h.get("orient")?null==h.get("right")?"right":"left":null==h.get("bottom")?"bottom":"top";i.setStyle({fill:l.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:l.get("textBackgroundColor")}),n.setTextConfig({position:l.get("textPosition")||e}),i.ignore=!h.get("showTitle"),Jl(this)}).on("mouseout",function(){"emphasis"!==o.get(["iconStatus",e])&&Ql(this),i.hide()}),("emphasis"===o.get(["iconStatus",e])?Jl:Ql)(n),f.add(n),n.on("click",Q(r.onclick,r,c,p,e)),u[e]=n})}(e,n,i),e.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?Jl:Ql)(i[t])},n instanceof WV&&n.render&&n.render(e,c,p,a)):r&&n.dispose&&n.dispose(c,p)}f.removeAll(),h.get("show")&&(d=+h.get("itemSize"),s=h.get("feature")||{},l=this._features||(this._features={}),u=[],Z(s,function(t,e){u.push(e)}),new K1(this._featureNames||[],u).add(g).update(g).remove(tt(g,null)).execute(),this._featureNames=u,t=f,n=p,i=(e=h).getBoxLayoutParams(),o=e.get("padding"),r={width:n.getWidth(),height:n.getHeight()},n=oc(i,r,o),ic(e.get("orient"),t,e.get("itemGap"),n.width,n.height),rc(t,i,r,o),f.add($V(f.getBoundingRect(),h)),f.eachChild(function(t){var e=t.__title,n=t.ensureState("emphasis"),i=n.textConfig||(n.textConfig={}),o=t.getTextContent(),r=o&&o.states.emphasis;r&&!nt(r)&&e&&(n=r.style||(r.style={}),o=lo(e,xl.makeFont(n)),r=t.x+f.x,e=!1,t.y+f.y+d+o.height>p.getHeight()&&(i.position="top",e=!0),e=e?-5-o.height:d+8,r+o.width/2>p.getWidth()?(i.position=["100%",e],n.align="right"):r-o.width/2<0&&(i.position=[0,e],n.align="left"))}))},JV.prototype.updateView=function(t,e,n,i){Z(this._features,function(t){t instanceof WV&&t.updateView&&t.updateView(t.model,e,n,i)})},JV.prototype.remove=function(e,n){Z(this._features,function(t){t instanceof WV&&t.remove&&t.remove(e,n)}),this.group.removeAll()},JV.prototype.dispose=function(e,n){Z(this._features,function(t){t instanceof WV&&t.dispose&&t.dispose(e,n)})},JV.type="toolbox",JV),M=(y(e3,QV=WV),e3.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o="svg"===e.getZr().painter.getType(),r=o?"svg":n.get("type",!0)||"png",a=e.getConnectedDataURL({type:r,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if("function"!=typeof MouseEvent||!w.browser.newEdge&&(w.browser.ie||w.browser.edge))if(window.navigator.msSaveOrOpenBlob||o){var e=a.split(","),t=-1<e[0].indexOf("base64"),s=o?decodeURIComponent(e[1]):e[1];t&&(s=window.atob(s));o=i+"."+r;if(window.navigator.msSaveOrOpenBlob){for(var l=s.length,u=new Uint8Array(l);l--;)u[l]=s.charCodeAt(l);var h=new Blob([u]);window.navigator.msSaveOrOpenBlob(h,o)}else{e=document.createElement("iframe");document.body.appendChild(e);t=e.contentWindow,h=t.document;h.open("image/svg+xml","replace"),h.write(s),h.close(),t.focus(),h.execCommand("SaveAs",!0,o),document.body.removeChild(e)}}else{var c=n.get("lang"),n='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(c&&c[0]||"")+'" /></body>',c=window.open();c.document.write(n),c.document.title=i}else{c=document.createElement("a");c.download=i+"."+r,c.target="_blank",c.href=a;a=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(a)}},e3.getDefaultOption=function(t){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},e3);function e3(){return null!==QV&&QV.apply(this,arguments)||this}M.prototype.unusable=!w.canvasSupported;var n3,i3=M,o3="__ec_magicType_stack__",r3=[["line","bar"],["stack"]],qu=(y(s3,n3=WV),s3.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return Z(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n},s3.getDefaultOption=function(t){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},s3.prototype.onclick=function(t,e,a){var n,s,l=this.model,i=l.get(["seriesIndex",a]);a3[a]&&(s={series:[]},Z(r3,function(t){0<=W(t,a)&&Z(t,function(t){l.setIconStatus(t,"normal")})}),l.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},function(t){var e=t.subType,n=t.id,n=a3[a](e,n,t,l);n&&(F(n,t.option),s.series.push(n));n=t.coordinateSystem;if(n&&"cartesian2d"===n.type&&("line"===a||"bar"===a)){n=n.getAxesByScale("ordinal")[0];if(n){var i=n.dim+"Axis",o=t.getReferringComponents(i,Ar).models[0].componentIndex;s[i]=s[i]||[];for(var r=0;r<=o;r++)s[i][o]=s[i][o]||{};s[i][o].boundaryGap="bar"===a}}}),"stack"===(i=a)&&(n=V({stack:l.option.title.tiled,tiled:l.option.title.stack},l.option.title),"emphasis"!==l.get(["iconStatus",a])&&(i="tiled")),e.dispatchAction({type:"changeMagicType",currentType:i,newOption:s,newTitle:n,featureName:"magicType"}))},s3),a3={line:function(t,e,n,i){if("bar"===t)return V({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return V({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){n=n.get("stack")===o3;if("line"===t||"bar"===t)return i.setIconStatus("stack",n?"normal":"emphasis"),V({id:e,stack:n?"":o3},i.get(["option","stack"])||{},!0)}};function s3(){return null!==n3&&n3.apply(this,arguments)||this}P1({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});var l3=qu,u3=new Array(60).join("-"),h3="\t";function c3(t){var o,r,a,h,t=(o={},r=[],a=[],t.eachRawSeries(function(t){var e,n,i=t.coordinateSystem;i&&("cartesian2d"===i.type||"polar"===i.type)&&"category"===(e=i.getBaseAxis()).type?(n=e.dim+"_"+e.index,o[n]||(o[n]={categoryAxis:e,valueAxis:i.getOtherAxis(e),series:[]},a.push({axisDim:e.dim,axisIndex:e.index})),o[n].series.push(t)):r.push(t)}),{seriesGroupByCategoryAxis:o,other:r,meta:a});return{value:K([(h=[],Z(t.seriesGroupByCategoryAxis,function(t,e){var n=t.categoryAxis,i=t.valueAxis.dim,o=[" "].concat(j(t.series,function(t){return t.name})),r=[n.model.getCategories()];Z(t.series,function(t){var e=t.getRawData();r.push(t.getRawData().mapArray(e.mapDimension(i),function(t){return t}))});for(var a=[o.join(h3)],s=0;s<r[0].length;s++){for(var l=[],u=0;u<r.length;u++)l.push(r[u][s]);a.push(l.join(h3))}h.push(a.join("\n"))}),h.join("\n\n"+u3+"\n\n")),j(t.other,function(t){var i=t.getRawData(),o=[t.name],r=[];return i.each(i.dimensions,function(){for(var t=arguments.length,e=i.getName(arguments[t-1]),n=0;n<t-1;n++)r[n]=arguments[n];o.push((e?e+h3:"")+r.join(h3))}),o.join("\n")}).join("\n\n"+u3+"\n\n")],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join("\n\n"+u3+"\n\n"),meta:t.meta}}function p3(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var d3=new RegExp("["+h3+"]+","g");function f3(t,o){var t=t.split(new RegExp("\n*"+u3+"\n*","g")),r={series:[]};return Z(t,function(t,e){var n,i;0<=t.slice(0,t.indexOf("\n")).indexOf(h3)?(n=function(t){for(var e=t.split(/\n+/g),n=[],i=j(p3(e.shift()).split(d3),function(t){return{name:t,data:[]}}),o=0;o<e.length;o++){var r=p3(e[o]).split(d3);n.push(r.shift());for(var a=0;a<r.length;a++)i[a]&&(i[a].data[o]=r[a])}return{series:i,categories:n}}(t),e=(i=o[e]).axisDim+"Axis",i&&(r[e]=r[e]||[],r[e][i.axisIndex]={data:n.categories},r.series=r.series.concat(n.series))):(n=function(t){for(var e=t.split(/\n+/g),t=p3(e.shift()),n=[],i=0;i<e.length;i++){var o=p3(e[i]);if(o){for(var r=o.split(d3),a=void 0,s=!1,a=isNaN(r[0])?(s=!0,o=r[0],r=r.slice(1),n[i]={name:o,value:[]},n[i].value):n[i]=[],l=0;l<r.length;l++)a.push(+r[l]);1===a.length&&(s?n[i].value=a[0]:n[i]=a[0])}}return{name:t,data:n}}(t),r.series.push(n))}),r}var g3,Co=(y(y3,g3=WV),y3.prototype.onclick=function(t,e){var n=e.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var r=document.createElement("h4"),a=i.get("lang")||[];r.innerHTML=a[0]||i.get("title"),r.style.cssText="margin: 10px 20px;",r.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="display:block;width:100%;overflow:auto;";var u=i.get("optionToContent"),h=i.get("contentToOption"),c=c3(t);"function"==typeof u?"string"==typeof(f=u(e.getOption()))?s.innerHTML=f:ut(f)&&s.appendChild(f):(s.appendChild(l),l.readOnly=i.get("readOnly"),l.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",l.style.color=i.get("textColor"),l.style.borderColor=i.get("textareaBorderColor"),l.style.backgroundColor=i.get("textareaColor"),l.value=c.value);var p=c.meta,d=document.createElement("div");d.style.cssText="position:absolute;bottom:0;left:0;right:0;";var t="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",f=document.createElement("div"),c=document.createElement("div");t+=";background-color:"+i.get("buttonColor"),t+=";color:"+i.get("buttonTextColor");var g=this;function y(){n.removeChild(o),g._dom=null}Se(f,"click",y),Se(c,"click",function(){if(null==h&&null!=u||null!=h&&null==u)y();else{var t;try{t="function"==typeof h?h(s,e.getOption()):f3(l.value,p)}catch(t){throw y(),new Error("Data view format error "+t)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),y()}}),f.innerHTML=a[1],c.innerHTML=a[2],c.style.cssText=t,f.style.cssText=t,i.get("readOnly")||d.appendChild(c),d.appendChild(f),o.appendChild(r),o.appendChild(s),o.appendChild(d),s.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},y3.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},y3.prototype.dispose=function(t,e){this.remove(t,e)},y3.getDefaultOption=function(t){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},y3);function y3(){return null!==g3&&g3.apply(this,arguments)||this}P1({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,o){var r=[];Z(t.newOption.series,function(t){var e,i,n=o.getSeriesByName(t.name)[0];n?(e=n.get("data"),r.push({name:t.name,data:(n=t.data,i=e,j(n,function(t,e){var n=i&&i[e];if(!at(n)||et(n))return t;at(t)&&!et(t)||(t={value:t});e=null!=n.name&&null==t.name;return t=F(t,n),e&&delete t.name,t}))})):r.push(G({type:"scatter"},t))}),o.mergeOption(F({series:r},t.newOption))});var m3=Co,v3=Z,x3=Ir();function _3(t){t=x3(t);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var b3,M=(y(w3,b3=WV),w3.prototype.onclick=function(t,e){x3(t).snapshots=null,e.dispatchAction({type:"restore",from:this.uid})},w3.getDefaultOption=function(t){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])}},w3);function w3(){return null!==b3&&b3.apply(this,arguments)||this}P1({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});var S3=M,M3=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],qu=(I3.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(t,e,n){(t.coordRanges||(t.coordRanges=[])).push(e),t.coordRange||(t.coordRange=e,e=L3[t.brushType](0,n,e),t.__rangeOffset={offset:O3[t.brushType](e.values,t.range,[1,1]),xyMinMax:e.xyMinMax})}),t},I3.prototype.matchOutputRanges=function(t,i,o){Z(t,function(n){var t=this.findTargetInfo(n,i);t&&!0!==t&&Z(t.coordSyses,function(t){var e=L3[n.brushType](1,t,n.range,!0);o(n,e.values,t,i)})},this)},I3.prototype.setInputRanges=function(t,i){Z(t,function(t){var e,n=this.findTargetInfo(t,i);t.range=t.range||[],n&&!0!==n&&(t.panelId=n.panelId,e=L3[t.brushType](0,n.coordSys,t.coordRange),n=t.__rangeOffset,t.range=n?O3[t.brushType](e.values,n.offset,function(t,e){t=N3(t),e=N3(e),e=[t[0]/e[0],t[1]/e[1]];return isNaN(e[0])&&(e[0]=1),isNaN(e[1])&&(e[1]=1),e}(e.xyMinMax,n.xyMinMax)):e.values)},this)},I3.prototype.makePanelOpts=function(n,i){return j(this._targetInfoList,function(t){var e=t.getPanelRect();return{panelId:t.panelId,defaultBrushType:i?i(t):null,clipPath:bP(e),isTargetByCursor:SP(e,n,t.coordSysModel),getLinearBrushOtherExtent:wP(e)}})},I3.prototype.controlSeries=function(t,e,n){n=this.findTargetInfo(t,n);return!0===n||n&&0<=W(n.coordSyses,e.coordinateSystem)},I3.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=C3(e,t),o=0;o<n.length;o++){var r=n[o],a=t.panelId;if(a){if(r.panelId===a)return r}else for(var s=0;s<A3.length;s++)if(A3[s](i,r))return r}return!0},I3);function I3(t,e,n){var i=this;this._targetInfoList=[];var o=C3(e,t);Z(D3,function(t,e){n&&n.include&&!(0<=W(n.include,e))||t(o,i._targetInfoList)})}function T3(t){return t[0]>t[1]&&t.reverse(),t}function C3(t,e){return Cr(t,e,{includeMainTypes:M3})}var D3={grid:function(t,i){var o=t.xAxisModels,r=t.yAxisModels,t=t.gridModels,e=Tt(),a={},s={};(o||r||t)&&(Z(o,function(t){t=t.axis.grid.model;e.set(t.id,t),a[t.id]=!0}),Z(r,function(t){t=t.axis.grid.model;e.set(t.id,t),s[t.id]=!0}),Z(t,function(t){e.set(t.id,t),a[t.id]=!0,s[t.id]=!0}),e.each(function(t){var e=t.coordinateSystem,n=[];Z(e.getCartesians(),function(t,e){(0<=W(o,t.getAxis("x").model)||0<=W(r,t.getAxis("y").model))&&n.push(t)}),i.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:n[0],coordSyses:n,getPanelRect:k3.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,n){Z(t.geoModels,function(t){var e=t.coordinateSystem;n.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:e,coordSyses:[e],getPanelRect:k3.geo})})}},A3=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,t=t.gridModel;return(t=!(t=!t&&n?n.axis.grid.model:t)&&i?i.axis.grid.model:t)&&t===e.gridModel},function(t,e){t=t.geoModel;return t&&t===e.geoModel}],k3={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Tm(t)),e}},L3={lineX:tt(P3,0),lineY:tt(P3,1),rect:function(t,e,n,i){var o=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),i=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),i=[T3([o[0],i[0]]),T3([o[1],i[1]])];return{values:i,xyMinMax:i}},polygon:function(e,n,t,i){var o=[[1/0,-1/0],[1/0,-1/0]];return{values:j(t,function(t){t=e?n.pointToData(t,i):n.dataToPoint(t,i);return o[0][0]=Math.min(o[0][0],t[0]),o[1][0]=Math.min(o[1][0],t[1]),o[0][1]=Math.max(o[0][1],t[0]),o[1][1]=Math.max(o[1][1],t[1]),t}),xyMinMax:o}}};function P3(t,e,n,i){var o=n.getAxis(["x","y"][t]),r=T3(j([0,1],function(t){return e?o.coordToData(o.toLocalCoord(i[t]),!0):o.toGlobalCoord(o.dataToCoord(i[t]))})),n=[];return n[t]=r,n[1-t]=[NaN,NaN],{values:r,xyMinMax:n}}var O3={lineX:tt(R3,0),lineY:tt(R3,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,n,i){return j(t,function(t,e){return[t[0]-i[0]*n[e][0],t[1]-i[1]*n[e][1]]})}};function R3(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function N3(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var z3,E3=qu,V3=Z,Co=(y(G3,z3=WV),G3.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new _P(n.getZr()),this._brushController.on("brush",Q(this._onBrush,this)).mount()),function(t,e,n,i,o){var r=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(r="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=r,t.setIconStatus("zoom",r?"emphasis":"normal");o=new E3(F3(t),e,{include:["grid"]}).makePanelOpts(o,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(o).enableBrush(!(!r||!o.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(t,e,this,i,n),t.setIconStatus("back",1<function(t){return _3(t).length}(e)?"emphasis":"normal")},G3.prototype.onclick=function(t,e,n){B3[n].call(this)},G3.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},G3.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},G3.prototype._onBrush=function(t){var s,l,o,r,e=t.areas;function i(t,e,n){var i,o,r,a=e.getAxis(t),e=a.model,t=(i=t,o=e,l.eachComponent({mainType:"dataZoom",subType:"select"},function(t){t.getAxisModel(i,o.componentIndex)&&(r=t)}),r),e=t.findRepresentativeAxisProxy(e).getMinMaxSpan();null==e.minValueSpan&&null==e.maxValueSpan||(n=pL(0,n.slice(),a.scale.getExtent(),0,e.minValueSpan,e.maxValueSpan)),t&&(s[t.id]={dataZoomId:t.id,startValue:n[0],endValue:n[1]})}t.isEnd&&e.length&&(s={},l=this.ecModel,this._brushController.updateCovers([]),new E3(F3(this.model),l,{include:["grid"]}).matchOutputRanges(e,l,function(t,e,n){"cartesian2d"===n.type&&("rect"===(t=t.brushType)?(i("x",n,e[0]),i("y",n,e[1])):i({lineX:"x",lineY:"y"}[t],n,e))}),e=s,r=_3(o=l),v3(e,function(t,e){for(var n,i=r.length-1;0<=i;i--)if(r[i][e])break;i<0&&((n=o.queryComponents({mainType:"dataZoom",subType:"select",id:e})[0])&&(n=n.getPercentRange(),r[0][e]={dataZoomId:e,start:n[0],end:n[1]}))}),r.push(e),this._dispatchZoomAction(s))},G3.prototype._dispatchZoomAction=function(t){var n=[];V3(t,function(t,e){n.push(E(t))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},G3.getDefaultOption=function(t){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},G3),B3={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(function(t){var i=_3(t),t=i[i.length-1];1<i.length&&i.pop();var o={};return v3(t,function(t,e){for(var n=i.length-1;0<=n;n--)if(t=i[n][e]){o[e]=t;break}}),o}(this.ecModel))}};function G3(){return null!==z3&&z3.apply(this,arguments)||this}function F3(t){t={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}M="dataZoom",qu=function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),o=[],t=Cr(t,F3(i));return V3(t.xAxisModels,function(t){return r(t,"xAxis","xAxisIndex")}),V3(t.yAxisModels,function(t){return r(t,"yAxis","yAxisIndex")}),o}function r(t,e,n){t=t.componentIndex,e={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:"\0_ec_\0toolbox-dataZoom_"+e+t};e[n]=t,o.push(e)}},xt(null==Ec.get(M)&&qu),Ec.set(M,qu);var H3=Co;var W3,U3=(y(X3,W3=xc),X3.type="tooltip",X3.dependencies=["axisPointer"],X3.defaultOption={zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},X3);function X3(){var t=null!==W3&&W3.apply(this,arguments)||this;return t.type=X3.type,t}function Y3(t){var e=t.get("confine");return null!=e?e:"richText"===t.get("renderMode")}function Z3(t){if(w.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var j3=Z3(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function q3(t,e){if(!t)return e;e=Bh(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var K3=q3(Z3(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),$3=q3(j3,"transform"),J3="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(w.transform3dSupported?"will-change:transform;":"");function Q3(t,e,n){var i=t.toFixed(0)+"px",t=e.toFixed(0)+"px";if(!w.transformSupported)return n?"top:"+t+";left:"+i+";":[["top",t],["left",i]];e=w.transform3dSupported,e="translate"+(e?"3d":"")+"("+i+","+t+(e?",0":"")+")";return n?"top:0;left:0;"+$3+":"+e+";":[["top",0],["left",0],[j3,e]]}function tB(i,t,e){var o=[],n=i.get("transitionDuration"),r=i.get("backgroundColor"),a=i.get("shadowBlur"),s=i.get("shadowColor"),l=i.get("shadowOffsetX"),u=i.get("shadowOffsetY"),h=i.getModel("textStyle"),c=sf(i,"html");return o.push("box-shadow:"+(l+"px "+u+"px "+a+"px "+s)),t&&n&&o.push((n="opacity"+(t=" "+(a=n)/2+"s "+(s="cubic-bezier(0.23,1,0.32,1)"))+",visibility"+t,e||(t=" "+a+"s "+s,n+=w.transformSupported?","+$3+t:",left"+t+",top"+t),K3+":"+n)),r&&(w.canvasSupported?o.push("background-color:"+r):(o.push("background-color:#"+Cn(r)),o.push("filter:alpha(opacity=70)"))),Z(["width","color","radius"],function(t){var e="border-"+t,n=Bh(e),n=i.get(n);null!=n&&o.push(e+":"+n+("color"===t?"":"px"))}),o.push(function(n){var i=[],t=n.get("fontSize");(r=n.getTextColor())&&i.push("color:"+r),i.push("font:"+n.getFont()),t&&i.push("line-height:"+Math.round(3*t/2)+"px");var e=n.get("textShadowColor"),o=n.get("textShadowBlur")||0,r=n.get("textShadowOffsetX")||0,t=n.get("textShadowOffsetY")||0;return e&&o&&i.push("text-shadow:"+r+"px "+t+"px "+o+"px "+e),Z(["decoration","align"],function(t){var e=n.get(t);e&&i.push("text-"+t+":"+e)}),i.join(";")}(h)),null!=c&&o.push("padding:"+Gh(c).join("px ")+"px"),o.join(";")+";"}function eB(t,e,n,i,o){var r,a,s=e&&e.painter;n?(r=s&&s.getViewportRoot())&&(a=t,n=document.body,fe(de,r,i,o,!0)&&fe(a,n,de[0],de[1])):(t[0]=i,t[1]=o,(s=s&&s.getViewportRootOffset())&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)),t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var nB=(oB.prototype.update=function(t){var e,n=this._container,i=(e="position",(i=(i=n).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(i))?e?i[e]:i:null),n=n.style;"absolute"!==n.position&&"absolute"!==i&&(n.position="relative"),t.get("alwaysShowContent")&&this._moveIfResized(),this.el.className=t.get("className")||""},oB.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,o=this._styleCoord;n.innerHTML?i.cssText=J3+tB(t,!this._firstShow,this._longHide)+Q3(o[0],o[1],!0)+"border-color:"+$h(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},oB.prototype.setContent=function(t,e,n,i,o){var r=this.el;if(null!=t){var a="";if(it(o)&&"item"===n.get("trigger")&&!Y3(n)&&(a=function(t,e,n){if(!it(n)||"inside"===n)return"";var i=t.get("backgroundColor"),o=t.get("borderWidth");e=$h(e);var r=s="left"===(s=n)?"right":"right"===s?"left":"top"===s?"bottom":"top",a=Math.max(1.5*Math.round(o),6),t="",n=$3+":";-1<W(["left","right"],r)?(t+="top:50%",n+="translateY(-50%) rotate("+(l="left"==r?-225:-45)+"deg)"):(t+="left:50%",n+="translateX(-50%) rotate("+(l="top"==r?225:45)+"deg)");var s=l*Math.PI/180,l=a+o,s=l*Math.abs(Math.cos(s))+l*Math.abs(Math.sin(s)),e=e+" solid "+o+"px;";return'<div style="'+["position:absolute;width:"+a+"px;height:"+a+"px;",(t+=";"+r+":-"+Math.round(100*((s-Math.SQRT2*o)/2+Math.SQRT2*o-(s-l)/2))/100+"px")+";"+n+";","border-bottom:"+e,"border-right:"+e,"background-color:"+i+";"].join("")+'"></div>'}(n,i,o)),it(t))r.innerHTML=t+a;else if(t){r.innerHTML="",et(t)||(t=[t]);for(var s=0;s<t.length;s++)ut(t[s])&&t[s].parentNode!==r&&r.appendChild(t[s]);a&&r.childNodes.length&&((o=document.createElement("div")).innerHTML=a,r.appendChild(o))}}else r.innerHTML=""},oB.prototype.setEnterable=function(t){this._enterable=t},oB.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},oB.prototype.moveTo=function(t,e){var n,i=this._styleCoord;eB(i,this._zr,this._appendToBody,t,e),null!=i[0]&&null!=i[1]&&(n=this.el.style,Z(Q3(i[0],i[1]),function(t){n[t[0]]=t[1]}))},oB.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},oB.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",w.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},oB.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Q(this.hide,this),t)):this.hide())},oB.prototype.isShow=function(){return this._show},oB.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},oB);function iB(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),sB(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}function oB(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,w.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var o=this._zr=e.getZr(),n=this._appendToBody=n&&n.appendToBody;eB(this._styleCoord,o,n,e.getWidth()/2,e.getHeight()/2),(n?document.body:t).appendChild(i),this._container=t;var r=this;i.onmouseenter=function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},i.onmousemove=function(t){var e;t=t||window.event,r._enterable||(e=o.handler,we(o.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t))},i.onmouseleave=function(){r._inContent=!1,r._enterable&&r._show&&r.hideLater(r._hideDelay)}}function rB(t){return Math.max(0,t)}function aB(t){var e=rB(t.shadowBlur||0),n=rB(t.shadowOffsetX||0),t=rB(t.shadowOffsetY||0);return{left:rB(e-n),right:rB(e+n),top:rB(e-t),bottom:rB(e+t)}}function sB(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var lB,uB=(iB.prototype.update=function(t){t.get("alwaysShowContent")&&this._moveIfResized()},iB.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},iB.prototype.setContent=function(t,e,n,i,o){at(t)&&Zc(""),this.el&&this._zr.remove(this.el);var r=n.getModel("textStyle");this.el=new xl({style:{rich:e.richTextStyles,text:t,lineHeight:22,backgroundColor:n.get("backgroundColor"),borderRadius:n.get("borderRadius"),borderWidth:1,borderColor:i,shadowColor:n.get("shadowColor"),shadowBlur:n.get("shadowBlur"),shadowOffsetX:n.get("shadowOffsetX"),shadowOffsetY:n.get("shadowOffsetY"),textShadowColor:r.get("textShadowColor"),textShadowBlur:r.get("textShadowBlur")||0,textShadowOffsetX:r.get("textShadowOffsetX")||0,textShadowOffsetY:r.get("textShadowOffsetY")||0,fill:n.get(["textStyle","color"]),padding:sf(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),this._zr.add(this.el);var a=this;this.el.on("mouseover",function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0}),this.el.on("mouseout",function(){a._enterable&&a._show&&a.hideLater(a._hideDelay),a._inContent=!1})},iB.prototype.setEnterable=function(t){this._enterable=t},iB.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),t=aB(t.style);return[e.width+t.left+t.right,e.height+t.top+t.bottom]},iB.prototype.moveTo=function(t,e){var n,i,o=this.el;o&&(sB(n=this._styleCoord,this._zr,t,e),t=n[0],e=n[1],n=rB((i=o.style).borderWidth||0),i=aB(i),o.x=t+n+i.left,o.y=e+n+i.top,o.markRedraw())},iB.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},iB.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},iB.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Q(this.hide,this),t)):this.hide())},iB.prototype.isShow=function(){return this._show},iB.prototype.dispose=function(){this._zr.remove(this.el)},iB),hB=Q,cB=Z,pB=Uo,dB=new rl({shape:{x:-1,y:-1,width:2,height:2}});function fB(){var t=null!==lB&&lB.apply(this,arguments)||this;return t.type=fB.type,t}function gB(t,e,n){for(var i=e.ecModel,o=n?(o=new th(n,i,i),new th(e.option,o,i)):e,r=t.length-1;0<=r;r--){var a=t[r];a&&((a=it(a=a instanceof th?a.get("tooltip",!0):a)?{formatter:a}:a)&&(o=new th(a,o,i)))}return o}function yB(t,e){return t.dispatchAction||Q(e.dispatchAction,e)}function mB(t){return"center"===t||"middle"===t}var vB=(y(fB,lB=If),fB.prototype.init=function(t,e){var n;w.node||(t=(n=t.getComponent("tooltip")).get("renderMode"),this._renderMode="auto"===(t=t)?w.domSupported?"html":"richText":t||"html",this._tooltipContent="richText"===this._renderMode?new uB(e):new nB(e.getDom(),e,{appendToBody:n.get("appendToBody",!0)}))},fB.prototype.render=function(t,e,n){w.node||(this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._alwaysShowContent=t.get("alwaysShowContent"),(n=this._tooltipContent).update(t),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._updatePosition="html"===this._renderMode?Bf(hB(this._doUpdatePosition,this),50):this._doUpdatePosition)},fB.prototype._initGlobalListener=function(){var i=this._tooltipModel.get("triggerOn");sE("itemTooltip",this._api,hB(function(t,e,n){"none"!==i&&(0<=i.indexOf(t)?this._tryShow(e,n):"leave"===t&&this._hide(n))},this))},fB.prototype._keepShow=function(){var t,e=this._tooltipModel,n=this._ecModel,i=this._api;null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")&&(t=this,clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){i.isDisposed()||t.manuallyShowTip(e,n,i,{x:t._lastX,y:t._lastY,dataByCoordSys:t._lastDataByCoordSys})}))},fB.prototype.manuallyShowTip=function(t,e,n,i){var o,r,a,s;i.from===this.uid||w.node||(o=yB(i,n),this._ticket="",s=i.dataByCoordSys,(a=function(n,t,e){var i=Dr(n).queryOptionMap,o=i.keys()[0];if(o&&"series"!==o){var r,i=Lr(t,o,i.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(i)return e.getViewOfComponentModel(i).group.traverse(function(t){var e=_l(t).tooltipConfig;if(e&&e.name===n.name)return r=t,!0}),r?{componentMainType:o,componentIndex:i.componentIndex,el:r}:void 0}}(i,e,n))?((r=a.el.getBoundingRect().clone()).applyTransform(a.el.transform),this._tryShow({offsetX:r.x+r.width/2,offsetY:r.y+r.height/2,target:a.el,position:i.position,positionDefault:"bottom"},o)):i.tooltip&&null!=i.x&&null!=i.y?((a=dB).x=i.x,a.y=i.y,a.update(),_l(a).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:a},o)):s?this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o):null!=i.seriesIndex?this._manuallyAxisShowTip(t,e,n,i)||(t=(s=fE(i,e)).point[0],e=s.point[1],null!=t&&null!=e&&this._tryShow({offsetX:t,offsetY:e,target:s.el,position:i.position,positionDefault:"bottom"},o)):null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o)))},fB.prototype.manuallyHideTip=function(t,e,n,i){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(yB(i,n))},fB.prototype._manuallyAxisShowTip=function(t,e,n,i){var o=i.seriesIndex,r=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=r&&null!=a){e=e.getSeriesByIndex(o);if(e)if("axis"===gB([e.getData().getItemModel(r),e,(e.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:r,position:i.position}),!0}},fB.prototype._tryShow=function(t,e){var n,i,o,r=t.target;this._tooltipModel&&(this._lastX=t.offsetX,this._lastY=t.offsetY,(n=t.dataByCoordSys)&&n.length?this._showAxisTooltip(n,t):r?(wg(r,function(t){return null!=_l(t).dataIndex?(i=t,1):null!=_l(t).tooltipConfig&&(o=t,1)},!(this._lastDataByCoordSys=null)),i?this._showSeriesItemTooltip(t,i,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)):(this._lastDataByCoordSys=null,this._hide(e)))},fB.prototype._showOrMove=function(t,e){t=t.get("showDelay");e=Q(e,this),clearTimeout(this._showTimout),0<t?this._showTimout=setTimeout(e,t):e()},fB.prototype._showAxisTooltip=function(t,e){var l=this._ecModel,n=this._tooltipModel,i=[e.offsetX,e.offsetY],o=gB([e.tooltipOption],n),u=this._renderMode,h=[],c=Jd("section",{blocks:[],noHeader:!0}),p=[],d=new lf;cB(t,function(t){cB(t.dataByAxis,function(i){var o,r,a=l.getComponent(i.axisDim+"Axis",i.axisIndex),s=i.value;a&&null!=s&&(o=Uz(s,a.axis,l,i.seriesDataIndices,i.valueLabelOpt),r=Jd("section",{header:o,noHeader:!_t(o),sortBlocks:!0,blocks:[]}),c.blocks.push(r),Z(i.seriesDataIndices,function(t){var e=l.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,t=e.getDataParams(n);t.dataIndex<0||(t.axisDim=i.axisDim,t.axisIndex=i.axisIndex,t.axisType=i.axisType,t.axisId=i.axisId,t.axisValue=G_(a.axis,{value:s}),t.axisValueLabel=o,t.marker=d.makeTooltipMarker("item",$h(t.color),u),(n=td(e.formatTooltip(n,!0,null))).markupFragment&&r.blocks.push(n.markupFragment),n.markupText&&p.push(n.markupText),h.push(t))}))})}),c.blocks.reverse(),p.reverse();var r=e.position,e=o.get("order"),e=ef(c,d,u,e,l.get("useUTC"),o.get("textStyle"));e&&p.unshift(e);var a=p.join("richText"===u?"\n\n":"<br/>");this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,h)?this._updatePosition(o,r,i[0],i[1],this._tooltipContent,h):this._showTooltipContent(o,a,h,Math.random()+"",i[0],i[1],r,null,d)})},fB.prototype._showSeriesItemTooltip=function(t,e,n){var i,o,r,a,s=this._ecModel,l=_l(e),u=l.seriesIndex,h=s.getSeriesByIndex(u),c=l.dataModel||h,p=l.dataIndex,d=l.dataType,f=c.getData(d),e=this._renderMode,l=t.positionDefault,g=gB([f.getItemModel(p),c,h&&(h.coordinateSystem||{}).model],this._tooltipModel,l?{position:l}:null),l=g.get("trigger");null!=l&&"item"!==l||(i=c.getDataParams(p,d),o=new lf,i.marker=o.makeTooltipMarker("item",$h(i.color),e),l=td(c.formatTooltip(p,!1,d)),d=g.get("order"),r=l.markupFragment?ef(l.markupFragment,o,e,d,s.get("useUTC"),g.get("textStyle")):l.markupText,a="item_"+c.name+"_"+p,this._showOrMove(g,function(){this._showTooltipContent(g,r,i,a,t.offsetX,t.offsetY,t.position,t.target,o)}),n({type:"showTip",dataIndexInside:p,dataIndex:f.getRawIndex(p),seriesIndex:u,from:this.uid}))},fB.prototype._showComponentItemTooltip=function(e,n,t){var i=_l(n),o=i.tooltipConfig.option||{},r=[o=it(o)?{content:o,formatter:o}:o],i=this._ecModel.getComponent(i.componentMainType,i.componentIndex);i&&r.push(i),r.push({formatter:o.content});var o=e.positionDefault,a=gB(r,this._tooltipModel,o?{position:o}:null),s=a.get("content"),l=Math.random()+"",u=new lf;this._showOrMove(a,function(){var t=E(a.get("formatterParams")||{});this._showTooltipContent(a,s,t,l,e.offsetX,e.offsetY,e.position,n,u)}),t({type:"showTip",from:this.uid})},fB.prototype._showTooltipContent=function(n,t,i,e,o,r,a,s,l){var u,h,c,p,d;this._ticket="",n.get("showContent")&&n.get("show")&&(u=this._tooltipContent,h=n.get("formatter"),a=a||n.get("position"),p=t,c=this._getNearestPoint([o,r],i,n.get("trigger"),n.get("borderColor")).color,h&&(p=it(h)?(d=n.ecModel.get("useUTC"),p=h,Zh(p=(t=et(i)?i[0]:i)&&t.axisType&&0<=t.axisType.indexOf("time")?wh(t.axisValue,p,d):p,i,!0)):nt(h)?(d=hB(function(t,e){t===this._ticket&&(u.setContent(e,l,n,c,a),this._updatePosition(n,a,o,r,u,i,s))},this),this._ticket=e,h(i,e,d)):h),u.setContent(p,l,n,c,a),u.show(n,c),this._updatePosition(n,a,o,r,u,i,s))},fB.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||et(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:et(e)?void 0:{color:i||e.color||e.borderColor}},fB.prototype._doUpdatePosition=function(t,e,n,i,o,r,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u,h,c,p,d,f=o.getSize(),g=t.get("align"),y=t.get("verticalAlign"),m=a&&a.getBoundingRect().clone();a&&m.applyTransform(a.transform),et(e=nt(e)?e([n,i],r,o.el,m,{viewSize:[s,l],contentSize:f.slice()}):e)?(n=pB(e[0],s),i=pB(e[1],l)):at(e)?((p=e).width=f[0],p.height=f[1],n=(d=oc(p,{width:s,height:l})).x,i=d.y,y=g=null):i=(n=it(e)&&a?(u=function(t,e,n,i){var o=n[0],r=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-o/2,l=e.y+h/2-r/2;break;case"top":s=e.x+u/2-o/2,l=e.y-r-a;break;case"bottom":s=e.x+u/2-o/2,l=e.y+h+a;break;case"left":s=e.x-o-a,l=e.y+h/2-r/2;break;case"right":s=e.x+u+a,l=e.y+h/2-r/2}return[s,l]}(e,m,f,t.get("borderWidth")))[0]:(h=n,c=i,r=s,p=l,d=g?null:20,a=y?null:20,e=(m=(e=o).getSize())[0],m=m[1],null!=d&&(r<h+e+d+2?h-=e+d:h+=d),null!=a&&(p<c+m+a?c-=m+a:c+=a),(u=[h,c])[0]),u[1]),g&&(n-=mB(g)?f[0]/2:"right"===g?f[0]:0),y&&(i-=mB(y)?f[1]/2:"bottom"===y?f[1]:0),Y3(t)&&(g=n,y=i,f=s,t=l,s=(l=(s=o).getSize())[0],l=l[1],g=Math.min(g+s,f)-s,y=Math.min(y+l,t)-l,g=Math.max(g,0),y=Math.max(y,0),n=(u=[g,y])[0],i=u[1]),o.moveTo(n,i)},fB.prototype._updateContentNotChangedOnAxis=function(n,r){var t=this._lastDataByCoordSys,a=this._cbParamsList,s=!!t&&t.length===n.length;return s&&cB(t,function(t,e){var t=t.dataByAxis||[],o=(n[e]||{}).dataByAxis||[];(s=s&&t.length===o.length)&&cB(t,function(t,e){var n=o[e]||{},e=t.seriesDataIndices||[],i=n.seriesDataIndices||[];(s=s&&t.value===n.value&&t.axisType===n.axisType&&t.axisId===n.axisId&&e.length===i.length)&&cB(e,function(t,e){e=i[e];s=s&&t.seriesIndex===e.seriesIndex&&t.dataIndex===e.dataIndex}),a&&Z(t.seriesDataIndices,function(t){var e=t.seriesIndex,t=r[e],e=a[e];t&&e&&e.data!==t.data&&(s=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!s},fB.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},fB.prototype.dispose=function(t,e){w.node||(this._tooltipContent.dispose(),hE("itemTooltip",e))},fB.type="tooltip",fB);var xB=["rect","polygon","keep","clear"];function _B(t,e){var n,i,o,r=dr(t?t.brush:[]);r.length&&(n=[],Z(r,function(t){t=t.hasOwnProperty("toolbox")?t.toolbox:[];t instanceof Array&&(n=n.concat(t))}),(r=et(r=t&&t.toolbox)?r[0]:r)||(t.toolbox=[r={feature:{}}]),(r=(r=(r=r.feature||(r.feature={})).brush||(r.brush={})).type||(r.type=[])).push.apply(r,n),o={},Z(i=r,function(t){o[t]=1}),i.length=0,Z(o,function(t,e){i.push(e)}),e&&!r.length&&r.push.apply(r,xB))}var bB=Z;function wB(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return 1}function SB(e,t,o){var r={};return bB(t,function(n){var i=r[n]=(t.prototype.__hidden=t.prototype,new t);function t(){}bB(e[n],function(t,e){LD.isValidType(e)&&(t={type:e,visual:t},o&&o(t,n),i[e]=new LD(t),"opacity"===e&&((t=E(t)).type="colorAlpha",i.__hidden.__alphaForOpacity=new LD(t)))})}),r}function MB(e,n,t){var i;Z(t,function(t){n.hasOwnProperty(t)&&wB(n[t])&&(i=!0)}),i&&Z(t,function(t){n.hasOwnProperty(t)&&wB(n[t])?e[t]=E(n[t]):delete e[t]})}var IB={lineX:TB(0),lineY:TB(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&W0(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var o=t.x,r=t.y,a=t.width,s=t.height,n=i[0];return!!(W0(i,o,r)||W0(i,o+a,r)||W0(i,o,r+s)||W0(i,o+a,r+s)||Qi.create(t).contain(n[0],n[1])||Rm(o,r,o+a,r,i)||Rm(o,r,o,r+s,i)||Rm(o+a,r,o+a,r+s,i)||Rm(o,r+s,o+a,r+s,i))||void 0}}};function TB(i){var o=["x","y"],r=["width","height"];return{point:function(t,e,n){if(t){n=n.range;return CB(t[i],n)}},rect:function(t,e,n){if(t){n=n.range,t=[t[o[i]],t[o[i]]+t[r[i]]];return t[1]<t[0]&&t.reverse(),CB(t[0],n)||CB(t[1],n)||CB(n[0],t)||CB(n[1],t)}}}}function CB(t,e){return e[0]<=t&&t<=e[1]}var DB=["inBrush","outOfBrush"],AB="__ecBrushSelect",kB="__ecInBrushSelectEvent";function LB(e){e.eachComponent({mainType:"brush"},function(t){(t.brushTargetManager=new E3(t.option,e)).setInputRanges(t.areas,e)})}function PB(s,t,e){var l,u,n,i,o,r,h=[];s.eachComponent({mainType:"brush"},function(t){e&&"takeGlobalCursor"===e.type&&t.setBrushOption("brush"===e.key?e.brushOption:{brushType:!1})}),LB(s),s.eachComponent({mainType:"brush"},function(o,t){var y={brushId:o.id,brushIndex:t,brushName:o.name,areas:E(o.areas),selected:[]};h.push(y);var e=o.option,n=e.brushLink,i=[],m=[],v=[],x=!1;t||(l=e.throttleType,u=e.throttleDelay);var r=j(o.areas,function(t){var e,n,i,o=NB[t.brushType],t=F({boundingRect:o?o(t):void 0},t);return t.selectors=(n=(e=t).brushType,i={point:function(t){return IB[n].point(t,i,e)},rect:function(t){return IB[n].rect(t,i,e)}}),t}),_=SB(o.option,DB,function(t){t.mappingMethod="fixed"});function b(t){return"all"===n||i[t]}function w(t){return!!t.length}function a(e,t,n){var i;e.brushSelector&&!function(t,e){t=t.option.seriesIndex;return null!=t&&"all"!==t&&(et(t)?W(t,e)<0:e!==t)}(o,t)&&(Z(r,function(t){o.brushTargetManager.controlSeries(t,e,s)&&n.push(t),x=x||w(n)}),b(t)&&w(n))&&(i=e.getData()).each(function(t){RB(e,n,i,t)&&(m[t]=1)})}et(n)&&Z(n,function(t){i[t]=1}),s.eachSeries(function(t,e){var n,i,o,r=v[e]=[];"parallel"===t.subType?(i=e,o=(n=t).coordinateSystem,x=x||o.hasAxisBrushed(),b(i)&&o.eachActiveState(n.getData(),function(t,e){"active"===t&&(m[e]=1)})):a(t,e,r)}),s.eachSeries(function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};y.selected.push(n);var s,l,u,h,c,p,d,i=v[t],o=e.getData(),r=b(t)?function(t){return m[t]?(n.dataIndex.push(o.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(t){return RB(e,i,o,t)?(n.dataIndex.push(o.getRawIndex(t)),"inBrush"):"outOfBrush"};function f(t){return mg(l,p,t)}function g(t,e){xg(l,p,t,e)}function a(t,e){p=null==c?t:e;e=l.getRawDataItem(p);if(!e||!1!==e.visualMap)for(var e=u.call(h,t),n=s[e],i=d[e],o=0,r=i.length;o<r;o++){var a=i[o];n[a]&&n[a].applyVisual(t,f,g)}}(b(t)?x:w(i))&&(s=_,l=o,u=r,d={},Z(DB,function(t){var e=LD.prepareVisualTypes(s[t]);d[t]=e}),null==c?l.each(a):l.each([c],a))})}),n=t,i=l,o=u,r=h,(t=e)&&((t=n.getZr())[kB]||(t[AB]||(t[AB]=OB),Gf(t,AB,o,i)(n,r)))}function OB(t,e){var n;t.isDisposed()||((n=t.getZr())[kB]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[kB]=!1)}function RB(t,e,n,i){for(var o=0,r=e.length;o<r;o++){var a=e[o];if(t.brushSelector(i,n,a.selectors,a))return 1}}var NB={rect:function(t){return zB(t.range)},polygon:function(t){for(var e=t.range,n=0,i=e.length;n<i;n++){var o=o||[[1/0,-1/0],[1/0,-1/0]],r=e[n];r[0]<o[0][0]&&(o[0][0]=r[0]),r[0]>o[0][1]&&(o[0][1]=r[0]),r[1]<o[1][0]&&(o[1][0]=r[1]),r[1]>o[1][1]&&(o[1][1]=r[1])}return o&&zB(o)}};function zB(t){return new Qi(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var EB,VB,BB=(y(FB,VB=If),FB.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new _P(e.getZr())).on("brush",Q(this._onBrush,this)).mount()},FB.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},FB.prototype.updateTransform=function(t,e,n,i){LB(e),this._updateController(t,e,n,i)},FB.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},FB.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},FB.prototype._updateController=function(t,e,n,i){i&&i.$from===t.id||this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},FB.prototype.dispose=function(){this._brushController.dispose()},FB.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);t.isEnd&&!t.removeOnClick||this.api.dispatchAction({type:"brush",brushId:e,areas:E(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:E(n),$from:e})},FB.type="brush",FB);function GB(){var t=null!==EB&&EB.apply(this,arguments)||this;return t.type=GB.type,t.areas=[],t.brushOption={},t}function FB(){var t=null!==VB&&VB.apply(this,arguments)||this;return t.type=FB.type,t}function HB(t,e){return V({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new th(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var WB,UB=(y(GB,EB=xc),GB.prototype.optionUpdated=function(t,e){var n=this.option;e||MB(n,t,["inBrush","outOfBrush"]);t=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},t.hasOwnProperty("liftZ")||(t.liftZ=5)},GB.prototype.setAreas=function(t){t&&(this.areas=j(t,function(t){return HB(this.option,t)},this))},GB.prototype.setBrushOption=function(t){this.brushOption=HB(this.option,t),this.brushType=this.brushOption.brushType},GB.type="brush",GB.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],GB.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},GB),XB=["rect","polygon","lineX","lineY","keep","clear"],YB=(y(ZB,WB=WV),ZB.prototype.render=function(e,t,n){var i,o,r;t.eachComponent({mainType:"brush"},function(t){i=t.brushType,o=t.brushOption.brushMode||"single",r=r||!!t.areas.length}),this._brushType=i,this._brushMode=o,Z(e.get("type",!0),function(t){e.setIconStatus(t,("keep"===t?"multiple"===o:"clear"===t?r:t===i)?"emphasis":"normal")})},ZB.prototype.updateView=function(t,e,n){this.render(t,e,n)},ZB.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return Z(t.get("type",!0),function(t){e[t]&&(n[t]=e[t])}),n},ZB.prototype.onclick=function(t,e,n){var i=this._brushType,o=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===o?"single":"multiple":o}})},ZB.getDefaultOption=function(t){return{show:!0,type:XB.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])}},ZB);function ZB(){return null!==WB&&WB.apply(this,arguments)||this}var jB,qB,KB=(y(QB,qB=xc),QB.type="title",QB.defaultOption={zlevel:0,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"}},QB),$B=(y(JB,jB=If),JB.prototype.render=function(t,e,n){var i,o,r,a,s,l,u,h,c;this.group.removeAll(),t.get("show")&&(i=this.group,u=t.getModel("textStyle"),a=t.getModel("subtextStyle"),o=t.get("textAlign"),c=gt(t.get("textBaseline"),t.get("textVerticalAlign")),h=(r=new xl({style:Ru(u,{text:t.get("text"),fill:u.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),u=t.get("subtext"),a=new xl({style:Ru(a,{text:u,fill:a.getTextColor(),y:h.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),s=t.get("link"),l=t.get("sublink"),h=t.get("triggerEvent",!0),r.silent=!s&&!h,a.silent=!l&&!h,s&&r.on("click",function(){Jh(s,"_"+t.get("target"))}),l&&a.on("click",function(){Jh(l,"_"+t.get("subtarget"))}),_l(r).eventData=_l(a).eventData=h?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(r),u&&i.add(a),h=i.getBoundingRect(),(u=t.getBoxLayoutParams()).width=h.width,u.height=h.height,n=oc(u,{width:n.getWidth(),height:n.getHeight()},t.get("padding")),o||("right"===(o="middle"===(o=t.get("left")||t.get("right"))?"center":o)?n.x+=n.width:"center"===o&&(n.x+=n.width/2)),c||("bottom"===(c="center"===(c=t.get("top")||t.get("bottom"))?"middle":c)?n.y+=n.height:"middle"===c&&(n.y+=n.height/2),c=c||"top"),i.x=n.x,i.y=n.y,i.markRedraw(),r.setStyle(c={align:o,verticalAlign:c}),a.setStyle(c),h=i.getBoundingRect(),c=n.margin,(n=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),n=new rl({shape:{x:h.x-c[3],y:h.y-c[0],width:h.width+c[1]+c[3],height:h.height+c[0]+c[2],r:t.get("borderRadius")},style:n,subPixelOptimize:!0,silent:!0}),i.add(n))},JB.type="title",JB);function JB(){var t=null!==jB&&jB.apply(this,arguments)||this;return t.type=JB.type,t}function QB(){var t=null!==qB&&qB.apply(this,arguments)||this;return t.type=QB.type,t.layoutMode={type:"box",ignoreSize:!0},t}var t4,e4,Co=(y(i4,e4=xc),i4.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},i4.prototype.mergeOption=function(t){e4.prototype.mergeOption.apply(this,arguments),this._initData()},i4.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t=e<=t?e-1:t)<0&&(t=0),this.option.currentIndex=t},i4.prototype.getCurrentIndex=function(){return this.option.currentIndex},i4.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},i4.prototype.setPlayState=function(t){this.option.autoPlay=!!t},i4.prototype.getPlayState=function(){return!!this.option.autoPlay},i4.prototype._initData=function(){var o,t=this.option,e=t.data||[],t=t.axisType,r=this._names=[];"category"===t?(o=[],Z(e,function(t,e){var n,i=_r(yr(t),"");at(t)?(n=E(t)).value=e:n=e,o.push(n),r.push(i)})):o=e,(this._data=new Mx([{name:"value",type:{category:"ordinal",time:"time",value:"number"}[t]||"number"}],this)).initData(o,r)},i4.prototype.getData=function(){return this._data},i4.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},i4.type="timeline",i4.defaultOption={zlevel:0,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:[]},i4),Co=(y(n4,t4=Co),n4.type="timeline.slider",n4.defaultOption=ih(Co.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:[]}),n4);function n4(){var t=null!==t4&&t4.apply(this,arguments)||this;return t.type=n4.type,t}function i4(){var t=null!==e4&&e4.apply(this,arguments)||this;return t.type=i4.type,t.layoutMode="box",t}X(Co,e.prototype);var o4,r4,a4,s4=Co,Co=(y(d4,a4=If),d4.type="timeline",d4),l4=(y(p4,r4=cb),p4.prototype.getLabelModel=function(){return this.model.getModel("label")},p4.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},p4),u4=Math.PI,h4=Ir();function c4(){var t=null!==o4&&o4.apply(this,arguments)||this;return t.type=c4.type,t}function p4(t,e,n,i){n=r4.call(this,t,e,n)||this;return n.type=i||"value",n}function d4(){var t=null!==a4&&a4.apply(this,arguments)||this;return t.type=d4.type,t}function f4(t,e,n,i,o,r){var a=e.get("color");o?(o.setColor(a),n.add(o),r&&r.onUpdate(o)):((o=Fm(t.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(o),r&&r.onCreate(o));e=e.getItemStyle(["color"]);o.setStyle(e),i=V({rectHover:!0,z2:100},i,!0);e=Hm(t.get("symbolSize"));i.scaleX=e[0]/2,i.scaleY=e[1]/2;e=Wm(t.get("symbolOffset"),e);e&&(i.x=(i.x||0)+e[0],i.y=(i.y||0)+e[1]);t=t.get("symbolRotate");return i.rotation=(t||0)*Math.PI/180||0,o.attr(i),o.updateTransform(),o}function g4(t,e,n,i,o,r){var a;t.dragging||(a=o.getModel("checkpointStyle"),n=i.dataToCoord(o.getData().get("value",n)),r||!a.get("animation",!0)?(t.attr({x:n,y:0}),e&&e.attr({shape:{x2:n}})):(a={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)},t.stopAnimation(null,!0),t.animateTo({x:n,y:0},a),e&&e.animateTo({shape:{x2:n}},a)))}var y4=(y(c4,o4=Co),c4.prototype.init=function(t,e){this.api=e},c4.prototype.render=function(e,t,n){var i,o,r;this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)&&(i=this._layout(e,n),o=this._createGroup("_mainGroup"),n=this._createGroup("_labelGroup"),r=this._axis=this._createAxis(i,e),e.formatTooltip=function(t){return Jd("nameValue",{noName:!0,value:r.scale.getLabel({value:t})})},Z(["AxisLine","AxisTick","Control","CurrentPointer"],function(t){this["_render"+t](i,o,r,e)},this),this._renderAxisLabel(i,n,r,e),this._position(i,e)),this._doPlayStop(),this._updateTicksStatus()},c4.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},c4.prototype.dispose=function(){this._clearTimer()},c4.prototype._layout=function(t,e){var n,i,o,r=t.get(["label","position"]),a=t.get("orient"),s=(x=e,oc((_=t).getBoxLayoutParams(),{width:x.getWidth(),height:x.getHeight()},_.get("padding"))),l=null==r||"auto"===r?"horizontal"===a?s.y+s.height/2<e.getHeight()/2?"-":"+":s.x+s.width/2<e.getWidth()/2?"+":"-":it(r)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][r]:r,u={horizontal:"center",vertical:0<=l||"+"===l?"left":"right"},h={horizontal:0<=l||"+"===l?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:u4/2},p="vertical"===a?s.height:s.width,d=t.getModel("controlStyle"),f=d.get("show",!0),g=f?d.get("itemSize"):0,y=f?d.get("itemGap"):0,m=g+y,v=(v=t.get(["label","rotate"])||0)*u4/180,x=d.get("position",!0),_=f&&d.get("showPlayBtn",!0),e=f&&d.get("showPrevBtn",!0),r=f&&d.get("showNextBtn",!0),f=0,d=p;"left"===x||"bottom"===x?(_&&(n=[0,0],f+=m),e&&(i=[f,0],f+=m)):(_&&(n=[d-g,0],d-=m),e&&(i=[0,0],f+=m)),r&&(o=[d-g,0],d-=m);d=[f,d];return t.get("inverse")&&d.reverse(),{viewRect:s,mainLength:p,orient:a,rotation:c[a],labelRotation:v,labelPosOpt:l,labelAlign:t.get(["label","align"])||u[a],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||h[a],playPosition:n,prevBtnPosition:i,nextBtnPosition:o,axisExtent:d,controlSize:g,controlGap:y}},c4.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,o=t.viewRect;"vertical"===t.orient&&(Ai(u=Ii(),u,[-(s=o.x),-(l=o.y+o.height)]),ki(u,u,-u4/2),Ai(u,u,[s,l]),(o=o.clone()).applyTransform(u));var r=p(o),a=p(n.getBoundingRect()),s=p(i.getBoundingRect()),l=[n.x,n.y],u=[i.x,i.y];u[0]=l[0]=r[0][0];var h,o=t.labelPosOpt;function c(t){t.originX=r[0][0]-t.x,t.originY=r[1][0]-t.y}function p(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function d(t,e,n,i,o){t[i]+=n[i][o]-e[i][o]}null==o||it(o)?(d(l,a,r,1,h="+"===o?0:1),d(u,s,r,1,1-h)):(d(l,a,r,1,h=0<=o?0:1),u[1]=l[1]+o),n.setPosition(l),i.setPosition(u),n.rotation=i.rotation=t.rotation,c(n),c(i)},c4.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),o=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new $x({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new x_({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new t_}}(e,i);o.getTicks=function(){return n.mapArray(["value"],function(t){return{value:t}})};var r=n.getDataExtent("value");o.setExtent(r[0],r[1]),o.niceTicks();i=new l4("value",o,t.axisExtent,i);return i.model=e,i},c4.prototype._createGroup=function(t){t=this[t]=new Ao;return this.group.add(t),t},c4.prototype._renderAxisLine=function(t,e,n,i){var o=n.getExtent();i.get(["lineStyle","show"])&&(n=new Lg({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:G({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}),e.add(n),i=this._progressLine=new Lg({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:F({lineCap:"round",lineWidth:n.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1}),e.add(i))},c4.prototype._renderAxisTick=function(t,a,s,l){var u=this,h=l.getData(),e=s.scale.getTicks();this._tickSymbols=[],Z(e,function(t){var e=s.dataToCoord(t.value),n=h.getItemModel(t.value),i=n.getModel("itemStyle"),o=n.getModel(["emphasis","itemStyle"]),r=n.getModel(["progress","itemStyle"]),e={x:e,y:0,onclick:Q(u._changeTimeline,u,t.value)},e=f4(n,i,a,e);e.ensureState("emphasis").style=o.getItemStyle(),e.ensureState("progress").style=r.getItemStyle(),hu(e);r=_l(e);n.get("tooltip")?(r.dataIndex=t.value,r.dataModel=l):r.dataIndex=r.dataModel=null,u._tickSymbols.push(e)})},c4.prototype._renderAxisLabel=function(a,s,l,t){var u,h=this;l.getLabelModel().get("show")&&(u=t.getData(),t=l.getViewLabels(),this._tickLabels=[],Z(t,function(t){var e=t.tickValue,n=u.getItemModel(e),i=n.getModel("label"),o=n.getModel(["emphasis","label"]),r=n.getModel(["progress","label"]),n=l.dataToCoord(t.tickValue),t=new xl({x:n,y:0,rotation:a.labelRotation-a.rotation,onclick:Q(h._changeTimeline,h,e),silent:!1,style:Ru(i,{text:t.formattedLabel,align:a.labelAlign,verticalAlign:a.labelBaseline})});t.ensureState("emphasis").style=Ru(o),t.ensureState("progress").style=Ru(r),s.add(t),hu(t),h4(t).dataIndex=e,h._tickLabels.push(t)}))},c4.prototype._renderControl=function(t,r,e,a){var s=t.controlSize,l=t.rotation,u=a.getModel("controlStyle").getItemStyle(),h=a.getModel(["emphasis","controlStyle"]).getItemStyle(),n=a.getPlayState(),i=a.get("inverse",!0);function o(t,e,n,i){var o;t&&(o=po(gt(a.get(["controlStyle",e+"BtnSize"]),s),s),e=e+"Icon",o=[0,-o/2,o,o],i={x:t[0],y:t[1],originX:s/2,originY:0,rotation:i?-l:0,rectHover:!0,style:u,onclick:n},n=i.style,o=Om(a.get(["controlStyle",e]),i||{},new Qi(o[0],o[1],o[2],o[3])),n&&o.setStyle(n),(o=o).ensureState("emphasis").style=h,r.add(o),hu(o))}o(t.nextBtnPosition,"next",Q(this._changeTimeline,this,i?"-":"+")),o(t.prevBtnPosition,"prev",Q(this._changeTimeline,this,i?"+":"-")),o(t.playPosition,n?"stop":"play",Q(this._handlePlayClick,this,!n),!0)},c4.prototype._renderCurrentPointer=function(t,e,n,i){var o=i.getData(),r=i.getCurrentIndex(),o=o.getItemModel(r).getModel("checkpointStyle"),a=this;this._currentPointer=f4(o,o,this._mainGroup,{},this._currentPointer,{onCreate:function(t){t.draggable=!0,t.drift=Q(a._handlePointerDrag,a),t.ondragend=Q(a._handlePointerDragend,a),g4(t,a._progressLine,r,n,i,!0)},onUpdate:function(t){g4(t,a._progressLine,r,n,i)}})},c4.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},c4.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},c4.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},c4.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],t=Yo(this._axis.getExtent().slice());(n=n>t[1]?t[1]:n)<t[0]&&(n=t[0]),this._currentPointer.x=n,this._currentPointer.markRedraw(),this._progressLine.shape.x2=n,this._progressLine.dirty();t=this._findNearestTick(n),n=this.model;(e||t!==n.getCurrentIndex()&&n.get("realtime"))&&this._changeTimeline(t)},c4.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},c4.prototype._toAxisCoord=function(t){return Cm(t,this._mainGroup.getLocalTransform(),!0)},c4.prototype._findNearestTick=function(n){var i,t=this.model.getData(),o=1/0,r=this._axis;return t.each(["value"],function(t,e){t=r.dataToCoord(t),t=Math.abs(t-n);t<o&&(o=t,i=e)}),i},c4.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},c4.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},c4.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var i=0;i<e.length;i++)e&&e[i]&&e[i].toggleState("progress",i<t);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",h4(n[i]).dataIndex<=t)},c4.type="timeline.slider",c4);function m4(t){t=t&&t.timeline;Z(t=!et(t)?t?[t]:[]:t,function(t){t&&function(t){var e=t.type,n={number:"value",time:"time"};n[e]&&(t.axisType=n[e],delete t.type),v4(t),x4(t,"controlPosition")&&(x4(e=t.controlStyle||(t.controlStyle={}),"position")||(e.position=t.controlPosition),"none"!==e.position||x4(e,"show")||(e.show=!1,delete e.position),delete t.controlPosition);Z(t.data||[],function(t){at(t)&&!et(t)&&(!x4(t,"value")&&x4(t,"name")&&(t.value=t.name),v4(t))})}(t)})}function v4(t){var e=t.itemStyle||(t.itemStyle={}),e=e.emphasis||(e.emphasis={}),t=t.label||t.label||{},n=t.normal||(t.normal={}),i={normal:1,emphasis:1};Z(t,function(t,e){i[e]||x4(n,e)||(n[e]=t)}),e.label&&!x4(t,"emphasis")&&(t.emphasis=e.label,delete e.label)}function x4(t,e){return t.hasOwnProperty(e)}function _4(t,e){if(t)for(var n=et(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i][e])return 1}function b4(t){fr(t,"label",["show"])}var w4,S4=Ir(),Co=(y(M4,w4=xc),M4.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},M4.prototype.isAnimationEnabled=function(){if(w.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},M4.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},M4.prototype._mergeOption=function(t,i,e,o){var r=this.mainType;e||i.eachSeries(function(t){var e=t.get(this.mainType,!0),n=S4(t)[r];e&&e.data?(n?n._mergeOption(e,i,!0):(o&&b4(e),Z(e.data,function(t){t instanceof Array?(b4(t[0]),b4(t[1])):b4(t)}),G(n=this.createMarkerModelFromSeries(e,this,i),{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),n.__hostSeries=t),S4(t)[r]=n):S4(t)[r]=null},this)},M4.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=this.getRawValue(t),t=i.getName(t);return Jd("section",{header:this.name,blocks:[Jd("nameValue",{name:t,value:o,noName:!t,noValue:null==o})]})},M4.prototype.getData=function(){return this._data},M4.prototype.setData=function(t){this._data=t},M4.getMarkerModelFromSeries=function(t,e){return S4(t)[e]},M4.type="marker",M4.dependencies=["series","grid","polar","geo"],M4);function M4(){var t=null!==w4&&w4.apply(this,arguments)||this;return t.type=M4.type,t.createdBySelf=!1,t}X(Co,e.prototype);var I4,T4=Co,C4=(y(D4,I4=T4),D4.prototype.createMarkerModelFromSeries=function(t,e,n){return new D4(t,e,n)},D4.type="markPoint",D4.defaultOption={zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},D4);function D4(){var t=null!==I4&&I4.apply(this,arguments)||this;return t.type=D4.type,t}function A4(t,e,n,i,o,r){var a=[],s=Px(e,i)?e.getCalculationInfo("stackResultDimension"):i,t=N4(e,s,t),t=e.indicesOfNearest(s,t)[0];a[o]=e.get(n,t),a[r]=e.get(s,t);s=e.get(i,t),t=Zo(e.get(i,t));return 0<=(t=Math.min(t,20))&&(a[r]=+a[r].toFixed(t)),[a,s]}var k4={min:tt(A4,"min"),max:tt(A4,"max"),average:tt(A4,"average"),median:tt(A4,"median")};function L4(t,e){var n=t.getData(),i=t.coordinateSystem;if(e&&(r=e,isNaN(parseFloat(r.x))||isNaN(parseFloat(r.y)))&&!et(e.coord)&&i){var o=i.dimensions,r=P4(e,n,i,t);if((e=E(e)).type&&k4[e.type]&&r.baseAxis&&r.valueAxis){i=W(o,r.baseAxis.dim),t=W(o,r.valueAxis.dim),t=k4[e.type](n,r.baseDataDim,r.valueDataDim,i,t);e.coord=t[0],e.value=t[1]}else{for(var a=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],s=0;s<2;s++)k4[a[s]]&&(a[s]=N4(n,n.mapDimension(o[s]),a[s]));e.coord=a}}return e}function P4(t,e,n,i){var o={};return null!=t.valueIndex||null!=t.valueDim?(o.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,o.valueAxis=n.getAxis(function(t,e){e=t.getData().getDimensionInfo(e);return e&&e.coordDim}(i,o.valueDataDim)),o.baseAxis=n.getOtherAxis(o.valueAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim)):(o.baseAxis=i.getBaseAxis(),o.valueAxis=n.getOtherAxis(o.baseAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim),o.valueDataDim=e.mapDimension(o.valueAxis.dim)),o}function O4(t,e){return!(t&&t.containData&&e.coord&&(n=e,isNaN(parseFloat(n.x))&&isNaN(parseFloat(n.y))))||t.containData(e.coord);var n}function R4(t,o){return t?function(t,e,n,i){return dd(i<2?t.coord&&t.coord[i]:t.value,o[i])}:function(t,e,n,i){return dd(t.value,o[i])}}function N4(t,e,n){if("average"!==n)return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0];var i=0,o=0;return t.each(e,function(t,e){isNaN(t)||(i+=t,o++)}),i/o}var z4,E4,V4=Ir(),Co=(y(B4,z4=If),B4.prototype.init=function(){this.markerGroupMap=Tt()},B4.prototype.render=function(t,n,i){var o=this,e=this.markerGroupMap;e.each(function(t){V4(t).keep=!1}),n.eachSeries(function(t){var e=T4.getMarkerModelFromSeries(t,o.type);e&&o.renderSeries(t,e,n,i)}),e.each(function(t){V4(t).keep||o.group.remove(t.group)})},B4.prototype.markKeep=function(t){V4(t).keep=!0},B4.prototype.blurSeries=function(t){var e=this;Z(t,function(t){t=T4.getMarkerModelFromSeries(t,e.type);t&&t.getData().eachItemGraphicEl(function(t){t&&tu(t)})})},B4.type="marker",B4);function B4(){var t=null!==z4&&z4.apply(this,arguments)||this;return t.type=B4.type,t}function G4(a,s,l){var u=s.coordinateSystem;a.each(function(t){var e,n,i=a.getItemModel(t),o=Uo(i.get("x"),l.getWidth()),r=Uo(i.get("y"),l.getHeight());isNaN(o)||isNaN(r)?s.getMarkerPosition?n=s.getMarkerPosition(a.getValues(a.dimensions,t)):u&&(e=a.get(u.dimensions[0],t),i=a.get(u.dimensions[1],t),n=u.dataToPoint([e,i])):n=[o,r],isNaN(o)||(n[0]=o),isNaN(r)||(n[1]=r),a.setItemLayout(t,n)})}function F4(){var t=null!==E4&&E4.apply(this,arguments)||this;return t.type=F4.type,t}var H4=(y(F4,E4=Co),F4.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=T4.getMarkerModelFromSeries(t,"markPoint");e&&(G4(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())},this)},F4.prototype.renderSeries=function(t,u,e,n){var i=t.coordinateSystem,o=t.id,h=t.getData(),r=this.markerGroupMap,o=r.get(o)||r.set(o,new yS),c=function(t,e,n){o=t?j(t&&t.dimensions,function(t){return G(G({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}];var i=new Mx(o,n),n=j(n.get("data"),tt(L4,e));t&&(n=K(n,tt(O4,t)));var o=R4(!!t,o);return i.initData(n,null,o),i}(i,t,u);u.setData(c),G4(u.getData(),t,n),c.each(function(t){var e,n=c.getItemModel(t),i=n.getShallow("symbol"),o=n.getShallow("symbolSize"),r=n.getShallow("symbolRotate"),a=n.getShallow("symbolOffset"),s=n.getShallow("symbolKeepAspect");(nt(i)||nt(o)||nt(r)||nt(a))&&(e=u.getRawValue(t),l=u.getDataParams(t),nt(i)&&(i=i(e,l)),nt(o)&&(o=o(e,l)),nt(r)&&(r=r(e,l)),nt(a)&&(a=a(e,l)));var l=n.getModel("itemStyle").getItemStyle(),n=vg(h,"color");l.fill||(l.fill=n),c.setItemVisual(t,{symbol:i,symbolSize:o,symbolRotate:r,symbolOffset:a,symbolKeepAspect:s,style:l})}),o.updateData(c),this.group.add(o.group),c.eachItemGraphicEl(function(t){t.traverse(function(t){_l(t).dataModel=u})}),this.markKeep(o),o.group.silent=u.get("silent")||t.get("silent")},F4.type="markPoint",F4);function W4(t,e,n,i){var o,r,a,s=t.getData(),l=[L4(t,(l=et(i)?i:"min"===(o=i.type)||"max"===o||"average"===o||"median"===o||null!=i.xAxis||null!=i.yAxis?(l=r=void 0,l=null!=i.yAxis||null!=i.xAxis?(r=e.getAxis(null!=i.yAxis?"y":"x"),ft(i.yAxis,i.xAxis)):(r=(a=P4(i,s,e,t)).valueAxis,N4(s,Ox(s,a.valueDataDim),o)),s=1-(e="x"===r.dim?0:1),a={coord:[]},(r=E(i)).type=null,r.coord=[],r.coord[s]=-1/0,a.coord[s]=1/0,0<=(n=n.get("precision"))&&"number"==typeof l&&(l=+l.toFixed(Math.min(n,20))),r.coord[e]=a.coord[e]=l,[r,a,{type:o,valueIndex:i.valueIndex,value:l}]):[])[0]),L4(t,l[1]),G({},l[2])];return l[2].type=l[2].type||null,V(l[2],l[0]),V(l[2],l[1]),l}var U4,X4,Y4=(y(j4,U4=T4),j4.prototype.createMarkerModelFromSeries=function(t,e,n){return new j4(t,e,n)},j4.type="markLine",j4.defaultOption={zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},j4),Z4=Ir();function j4(){var t=null!==U4&&U4.apply(this,arguments)||this;return t.type=j4.type,t}function q4(t){return!isNaN(t)&&!isFinite(t)}function K4(t,e,n,i){var o=1-t,r=i.dimensions[t];return q4(e[o])&&q4(n[o])&&e[t]===n[t]&&i.getAxis(r).containData(e[t])}function $4(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(K4(1,n,i,t)||K4(0,n,i,t)))return!0}return O4(t,e[0])&&O4(t,e[1])}function J4(t,e,n,i,o){var r,a,s,l,u=i.coordinateSystem,h=t.getItemModel(e),c=Uo(h.get("x"),o.getWidth()),o=Uo(h.get("y"),o.getHeight());isNaN(c)||isNaN(o)?(r=i.getMarkerPosition?i.getMarkerPosition(t.getValues(t.dimensions,e)):(l=u.dimensions,a=t.get(l[0],e),s=t.get(l[1],e),u.dataToPoint([a,s])),GS(u,"cartesian2d")&&(a=u.getAxis("x"),s=u.getAxis("y"),l=u.dimensions,q4(t.get(l[0],e))?r[0]=a.toGlobalCoord(a.getExtent()[n?0:1]):q4(t.get(l[1],e))&&(r[1]=s.toGlobalCoord(s.getExtent()[n?0:1]))),isNaN(c)||(r[0]=c),isNaN(o)||(r[1]=o)):r=[c,o],t.setItemLayout(e,r)}function Q4(){var t=null!==X4&&X4.apply(this,arguments)||this;return t.type=Q4.type,t}var tG=(y(Q4,X4=Co),Q4.prototype.updateTransform=function(t,e,r){e.eachSeries(function(e){var n,i,o,t=T4.getMarkerModelFromSeries(e,"markLine");t&&(n=t.getData(),i=Z4(t).from,o=Z4(t).to,i.each(function(t){J4(i,t,!0,e,r),J4(o,t,!1,e,r)}),n.each(function(t){n.setItemLayout(t,[i.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(e.id).updateLayout())},this)},Q4.prototype.renderSeries=function(r,n,t,a){var e=r.coordinateSystem,i=r.id,s=r.getData(),o=this.markerGroupMap,i=o.get(i)||o.set(i,new YA);this.group.add(i.group);var e=function(t,e,n){a=t?j(t&&t.dimensions,function(t){return G(G({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}];var i=new Mx(a,n),o=new Mx(a,n),r=new Mx([],n),n=j(n.get("data"),tt(W4,e,t,n));t&&(n=K(n,tt($4,t)));var a=R4(!!t,a);return i.initData(j(n,function(t){return t[0]}),null,a),o.initData(j(n,function(t){return t[1]}),null,a),r.initData(j(n,function(t){return t[2]})),r.hasItemOption=!0,{from:i,to:o,line:r}}(e,r,n),l=e.from,u=e.to,h=e.line;Z4(n).from=l,Z4(n).to=u,n.setData(h);var c=n.get("symbol"),p=n.get("symbolSize"),d=n.get("symbolRotate"),f=n.get("symbolOffset");function g(t,e,n){var i=t.getItemModel(e);J4(t,e,n,r,a);var o=i.getModel("itemStyle").getItemStyle();null==o.fill&&(o.fill=vg(s,"color")),t.setItemVisual(e,{symbolKeepAspect:i.get("symbolKeepAspect"),symbolOffset:gt(i.get("symbolOffset",!0),f[n?0:1]),symbolRotate:gt(i.get("symbolRotate",!0),d[n?0:1]),symbolSize:gt(i.get("symbolSize"),p[n?0:1]),symbol:gt(i.get("symbol",!0),c[n?0:1]),style:o})}et(c)||(c=[c,c]),et(p)||(p=[p,p]),et(d)||(d=[d,d]),et(f)||(f=[f,f]),e.from.each(function(t){g(l,t,!0),g(u,t,!1)}),h.each(function(t){var e=h.getItemModel(t).getModel("lineStyle").getLineStyle();h.setItemLayout(t,[l.getItemLayout(t),u.getItemLayout(t)]),null==e.stroke&&(e.stroke=l.getItemVisual(t,"style").fill),h.setItemVisual(t,{fromSymbolKeepAspect:l.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:l.getItemVisual(t,"symbolOffset"),fromSymbolRotate:l.getItemVisual(t,"symbolRotate"),fromSymbolSize:l.getItemVisual(t,"symbolSize"),fromSymbol:l.getItemVisual(t,"symbol"),toSymbolKeepAspect:u.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:u.getItemVisual(t,"symbolOffset"),toSymbolRotate:u.getItemVisual(t,"symbolRotate"),toSymbolSize:u.getItemVisual(t,"symbolSize"),toSymbol:u.getItemVisual(t,"symbol"),style:e})}),i.updateData(h),e.line.eachItemGraphicEl(function(t,e){t.traverse(function(t){_l(t).dataModel=n})}),this.markKeep(i),i.group.silent=n.get("silent")||r.get("silent")},Q4.type="markLine",Q4);function eG(t,e,n,i){var o=L4(t,i[0]),r=L4(t,i[1]),t=o.coord,i=r.coord;return t[0]=ft(t[0],-1/0),t[1]=ft(t[1],-1/0),i[0]=ft(i[0],1/0),i[1]=ft(i[1],1/0),(i=B([{},o,r])).coord=[o.coord,r.coord],i.x0=o.x,i.y0=o.y,i.x1=r.x,i.y1=r.y,i}var nG,iG=(y(rG,nG=T4),rG.prototype.createMarkerModelFromSeries=function(t,e,n){return new rG(t,e,n)},rG.type="markArea",rG.defaultOption={zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},rG),oG=Ir();function rG(){var t=null!==nG&&nG.apply(this,arguments)||this;return t.type=rG.type,t}function aG(t){return!isNaN(t)&&!isFinite(t)}function sG(t,e,n){t=1-t;return aG(e[t])&&aG(n[t])}function lG(t,e){var n=e.coord[0],i=e.coord[1];return!!(GS(t,"cartesian2d")&&n&&i&&(sG(1,n,i)||sG(0,n,i)))||O4(t,{coord:n,x:e.x0,y:e.y0})||O4(t,{coord:i,x:e.x1,y:e.y1})}function uG(t,e,n,i,o){var r,a,s,l,u=i.coordinateSystem,h=t.getItemModel(e),c=Uo(h.get(n[0]),o.getWidth()),o=Uo(h.get(n[1]),o.getHeight());return isNaN(c)||isNaN(o)?(l=i.getMarkerPosition?i.getMarkerPosition(t.getValues(n,e)):(r=[a=t.get(n[0],e),s=t.get(n[1],e)],u.clampData&&u.clampData(r,r),u.dataToPoint(r,!0)),GS(u,"cartesian2d")&&(r=u.getAxis("x"),u=u.getAxis("y"),a=t.get(n[0],e),s=t.get(n[1],e),aG(a)?l[0]=r.toGlobalCoord(r.getExtent()["x0"===n[0]?0:1]):aG(s)&&(l[1]=u.toGlobalCoord(u.getExtent()["y0"===n[1]?0:1]))),isNaN(c)||(l[0]=c),isNaN(o)||(l[1]=o)):l=[c,o],l}var hG,cG=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];function pG(){var t=null!==hG&&hG.apply(this,arguments)||this;return t.type=pG.type,t}var dG=(y(pG,hG=Co),pG.prototype.updateTransform=function(t,e,o){e.eachSeries(function(n){var i,t=T4.getMarkerModelFromSeries(n,"markArea");t&&(i=t.getData()).each(function(e){var t=j(cG,function(t){return uG(i,e,t,n,o)});i.setItemLayout(e,t),i.getItemGraphicEl(e).setShape("points",t)})},this)},pG.prototype.renderSeries=function(a,o,t,s){var l=a.coordinateSystem,e=a.id,u=a.getData(),n=this.markerGroupMap,i=n.get(e)||n.set(e,{group:new Ao});this.group.add(i.group),this.markKeep(i);var h=function(t,n,e){var i,o;{var r;i=t?(r=j(t&&t.dimensions,function(t){var e=n.getData();return G(G({},e.getDimensionInfo(e.mapDimension(t))||{}),{name:t,ordinalMeta:null})}),o=j(["x0","y0","x1","y1"],function(t,e){return{name:t,type:r[e%2].type}}),new Mx(o,e)):new Mx(o=[{name:"value",type:"float"}],e)}e=j(e.get("data"),tt(eG,n,t,e));t&&(e=K(e,tt(lG,t)));t=t?function(t,e,n,i){return dd(t.coord[Math.floor(i/2)][i%2],o[i])}:function(t,e,n,i){return dd(t.value,o[i])};return i.initData(e,null,t),i.hasItemOption=!0,i}(l,a,o);o.setData(h),h.each(function(e){var t=j(cG,function(t){return uG(h,e,t,a,s)}),n=l.getAxis("x").scale,i=l.getAxis("y").scale,o=n.getExtent(),r=i.getExtent(),n=[n.parse(h.get("x0",e)),n.parse(h.get("x1",e))],i=[i.parse(h.get("y0",e)),i.parse(h.get("y1",e))];Yo(n),Yo(i);i=!(o[0]>n[1]||o[1]<n[0]||r[0]>i[1]||r[1]<i[0]);h.setItemLayout(e,{points:t,allClipped:!i});t=h.getItemModel(e).getModel("itemStyle").getItemStyle(),i=vg(u,"color");t.fill||(t.fill=i,"string"==typeof t.fill&&(t.fill=On(t.fill,.4))),t.stroke||(t.stroke=i),h.setItemVisual(e,"style",t)}),h.diff(oG(i).data).add(function(t){var e=h.getItemLayout(t);e.allClipped||(e=new Ry({shape:{points:e.points}}),h.setItemGraphicEl(t,e),i.group.add(e))}).update(function(t,e){var n=oG(i).data.getItemGraphicEl(e),e=h.getItemLayout(t);e.allClipped?n&&i.group.remove(n):(n?wu(n,{shape:{points:e.points}},o,t):n=new Ry({shape:{points:e.points}}),h.setItemGraphicEl(t,n),i.group.add(n))}).remove(function(t){t=oG(i).data.getItemGraphicEl(t);i.group.remove(t)}).execute(),h.eachItemGraphicEl(function(t,e){var n=h.getItemModel(e),i=h.getItemVisual(e,"style");t.useStyle(h.getItemVisual(e,"style")),Pu(t,Ou(n),{labelFetcher:o,labelDataIndex:e,defaultText:h.getName(e)||"",inheritColor:"string"==typeof i.fill?On(i.fill,1):"#000"}),fu(t,n),hu(t),_l(t).dataModel=o}),oG(i).data=h,i.group.silent=o.get("silent")||a.get("silent")},pG.type="markArea",pG);var fG,gG,yG=(y(bG,gG=xc),bG.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},bG.prototype.mergeOption=function(t,e){gG.prototype.mergeOption.call(this,t,e),this._updateSelector(t)},bG.prototype._updateSelector=function(t){var n=t.selector,i=this.ecModel;et(n=!0===n?t.selector=["all","inverse"]:n)&&Z(n,function(t,e){it(t)&&(t={type:t}),n[e]=V(t,(e=i,"all"===(t=t.type)?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0))})},bG.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}e||this.select(t[0].get("name"))}},bG.prototype._updateData=function(i){var o=[],r=[];i.eachRawSeries(function(t){var e,n=t.name;r.push(n),t.legendVisualProvider?(n=t.legendVisualProvider.getAllNames(),i.isSeriesFiltered(t)||(r=r.concat(n)),n.length?o=o.concat(n):e=!0):e=!0,e&&br(t)&&o.push(t.name)}),this._availableNames=r;var t=j(this.get("data")||o,function(t){return new th(t="string"==typeof t||"number"==typeof t?{name:t}:t,this,this.ecModel)},this);this._data=t},bG.prototype.getData=function(){return this._data},bG.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&Z(this._data,function(t){e[t.get("name")]=!1}),e[t]=!0},bG.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},bG.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},bG.prototype.allSelect=function(){var t=this._data,e=this.option.selected;Z(t,function(t){e[t.get("name",!0)]=!0})},bG.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;Z(t,function(t){t=t.get("name",!0);e.hasOwnProperty(t)||(e[t]=!0),e[t]=!e[t]})},bG.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&0<=W(this._availableNames,t)},bG.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},bG.type="legend.plain",bG.dependencies=["series"],bG.defaultOption={zlevel:0,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}},bG),mG=tt,vG=Z,xG=Ao;function _G(){var t=null!==fG&&fG.apply(this,arguments)||this;return t.type=_G.type,t.newlineDisabled=!1,t}function bG(){var t=null!==gG&&gG.apply(this,arguments)||this;return t.type=bG.type,t.layoutMode={type:"box",ignoreSize:!0},t}function wG(t,e,n,i){IG(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),MG(t,e,n,i)}function SG(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,o=n.length;i<o&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function MG(t,e,n,i){SG(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function IG(t,e,n,i){SG(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}var TG,CG=(y(_G,fG=If),_G.prototype.init=function(){this.group.add(this._contentGroup=new xG),this.group.add(this._selectorGroup=new xG),this._isFirstRender=!0},_G.prototype.getContentGroup=function(){return this._contentGroup},_G.prototype.getSelectorGroup=function(){return this._selectorGroup},_G.prototype.render=function(t,e,n){var i,o,r,a,s,l=this._isFirstRender;this._isFirstRender=!1,this.resetInner(),t.get("show",!0)&&(i=t.get("align"),s=t.get("orient"),i&&"auto"!==i||(i="right"===t.get("left")&&"vertical"===s?"right":"left"),o=t.get("selector",!0),a=t.get("selectorPosition",!0),this.renderInner(i,t,e,n,o,s,a=o&&(!a||"auto"===a)?"horizontal"===s?"end":"start":a),n=oc(r=t.getBoxLayoutParams(),e={width:n.getWidth(),height:n.getHeight()},s=t.get("padding")),s=oc(F({width:(a=this.layoutInner(t,i,n,l,o,a)).width,height:a.height},r),e,s),this.group.x=s.x-a.x,this.group.y=s.y-a.y,this.group.markRedraw(),this.group.add(this._backgroundEl=$V(a,t)))},_G.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},_G.prototype.renderInner=function(s,l,u,h,t,e,n){var c=this.getContentGroup(),p=Tt(),d=l.get("selectedMode"),f=[];u.eachRawSeries(function(t){t.get("legendHoverLink")||f.push(t.id)}),vG(l.getData(),function(o,r){var a=o.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var t=new xG;return t.newline=!0,void c.add(t)}var e,n,i=u.getSeriesByName(a)[0];p.get(a)||(i?(e=(n=i.getData()).getVisual("legendLineStyle")||{},t=n.getVisual("legendIcon"),n=n.getVisual("style"),this._createItem(i,a,r,o,l,s,e,n,t,d).on("click",mG(wG,a,null,h,f)).on("mouseover",mG(MG,i.name,null,h,f)).on("mouseout",mG(IG,i.name,null,h,f)),p.set(a,!0)):u.eachRawSeries(function(t){var e,n,i;p.get(a)||!t.legendVisualProvider||(n=t.legendVisualProvider).containName(a)&&(i=n.indexOfName(a),e=n.getItemVisual(i,"style"),n=n.getItemVisual(i,"legendIcon"),(i=Mn(e.fill))&&0===i[3]&&(i[3]=.2,e.fill=Rn(i,"rgba")),this._createItem(t,a,r,o,l,s,{},e,n,d).on("click",mG(wG,null,a,h,f)).on("mouseover",mG(MG,null,a,h,f)).on("mouseout",mG(IG,null,a,h,f)),p.set(a,!0))},this))},this),t&&this._createSelector(t,l,h,e,n)},_G.prototype._createSelector=function(t,i,o,e,n){var r=this.getSelectorGroup();vG(t,function(t){var e=t.type,n=new xl({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){o.dispatchAction({type:"all"===e?"legendAllSelect":"legendInverseSelect"})}});r.add(n),Pu(n,{normal:i.getModel("selectorLabel"),emphasis:i.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),hu(n)})},_G.prototype._createItem=function(t,e,n,i,o,r,a,s,l,u){var h=t.visualDrawType,c=o.get("itemWidth"),p=o.get("itemHeight"),d=o.isSelected(e),f=i.get("symbolRotate"),g=i.get("symbolKeepAspect"),y=i.get("icon"),m=function(t,e,n,i,o,r){function a(n,i){"auto"===n.lineWidth&&(n.lineWidth=0<i.lineWidth?2:0),vG(n,function(t,e){"inherit"===n[e]&&(n[e]=i[e])})}var s=e.getModel("itemStyle").getItemStyle(),l=0===t.lastIndexOf("empty",0)?"fill":"stroke";s.decal=i.decal,"inherit"===s.fill&&(s.fill=i[o]),"inherit"===s.stroke&&(s.stroke=i[l]),"inherit"===s.opacity&&(s.opacity=("fill"===o?i:n).opacity),a(s,i);t=e.getModel("lineStyle"),o=t.getLineStyle();a(o,n),"auto"===s.fill&&(s.fill=i.fill),"auto"===s.stroke&&(s.stroke=i.fill),"auto"===o.stroke&&(o.stroke=i.fill),r||(r=e.get("inactiveBorderWidth"),l=s[l],s.lineWidth="auto"===r?0<i.lineWidth&&l?2:0:s.lineWidth,s.fill=e.get("inactiveColor"),s.stroke=e.get("inactiveBorderColor"),o.stroke=t.get("inactiveColor"),o.lineWidth=t.get("inactiveWidth"));return{itemStyle:s,lineStyle:o}}(l=y||l||"roundRect",i,a,s,h,d),v=new xG,a=i.getModel("textStyle");"function"!=typeof t.getLegendIcon||y&&"inherit"!==y?(s="inherit"===y&&t.getData().getVisual("symbol")?"inherit"===f?t.getData().getVisual("symbolRotate"):f:0,v.add((h={itemWidth:c,itemHeight:p,icon:l,iconRotate:s,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:g},y=h.icon||"roundRect",(s=Fm(y,0,0,h.itemWidth,h.itemHeight,h.itemStyle.fill,h.symbolKeepAspect)).setStyle(h.itemStyle),s.rotation=(h.iconRotate||0)*Math.PI/180,s.setOrigin([h.itemWidth/2,h.itemHeight/2]),-1<y.indexOf("empty")&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),s))):v.add(t.getLegendIcon({itemWidth:c,itemHeight:p,icon:l,iconRotate:f,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:g}));m="left"===r?c+5:-5,g=r,c=o.get("formatter"),r=e;"string"==typeof c&&c?r=c.replace("{name}",null!=e?e:""):"function"==typeof c&&(r=c(e));c=i.get("inactiveColor");v.add(new xl({style:Ru(a,{text:r,x:m,y:p/2,fill:d?a.getTextColor():c,align:g,verticalAlign:"middle"})}));g=new rl({shape:v.getBoundingRect(),invisible:!0}),i=i.getModel("tooltip");return i.get("show")&&zm({el:g,componentModel:o,itemName:e,itemTooltipOption:i.option}),v.add(g),v.eachChild(function(t){t.silent=!0}),g.silent=!u,this.getContentGroup().add(v),hu(v),v.__legendDataIndex=n,v},_G.prototype.layoutInner=function(t,e,n,i,o,r){var a=this.getContentGroup(),s=this.getSelectorGroup();ic(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),o){ic("horizontal",s,t.get("selectorItemGap",!0));var h=s.getBoundingRect(),c=[-h.x,-h.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,n=0===d?"width":"height",o=0===d?"height":"width",t=0===d?"y":"x";"end"===r?c[d]+=l[n]+p:u[d]+=h[n]+p,c[1-d]+=l[o]/2-h[o]/2,s.x=c[0],s.y=c[1],a.x=u[0],a.y=u[1];s={x:0,y:0};return s[n]=l[n]+p+h[n],s[o]=Math.max(l[o],h[o]),s[t]=Math.min(0,h[t]+c[1-d]),s}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},_G.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},_G.type="legend.plain",_G);function DG(t){var n=t.findComponents({mainType:"legend"});n&&n.length&&t.filterSeries(function(t){for(var e=0;e<n.length;e++)if(!n[e].isSelected(t.name))return!1;return!0})}function AG(t,e,n){var i,o={},r="toggleSelected"===t;return n.eachComponent("legend",function(n){r&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name)),Z(n.getData(),function(t){var e=t.get("name");"\n"!==e&&""!==e&&(t=n.isSelected(e),o.hasOwnProperty(e)?o[e]=o[e]&&t:o[e]=t)})}),"allSelect"===t||"inverseSelect"===t?{selected:o}:{name:e.name,selected:o}}function kG(t){t.registerComponentModel(yG),t.registerComponentView(CG),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,DG),t.registerSubTypeDefaulter("legend",function(){return"plain"}),(t=t).registerAction("legendToggleSelect","legendselectchanged",tt(AG,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",tt(AG,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",tt(AG,"inverseSelect")),t.registerAction("legendSelect","legendselected",tt(AG,"select")),t.registerAction("legendUnSelect","legendunselected",tt(AG,"unSelect"))}function LG(){var t=null!==TG&&TG.apply(this,arguments)||this;return t.type=LG.type,t}function PG(t,e,n){var i=[1,1];i[t.getOrient().index]=0,sc(e,n,{type:"box",ignoreSize:!!i})}var OG,RG=(y(LG,TG=yG),LG.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},LG.prototype.init=function(t,e,n){var i=lc(t);TG.prototype.init.call(this,t,e,n),PG(this,t,i)},LG.prototype.mergeOption=function(t,e){TG.prototype.mergeOption.call(this,t,e),PG(this,this.option,t)},LG.type="legend.scroll",LG.defaultOption=ih(yG.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}),LG),NG=Ao,zG=["width","height"],EG=["x","y"],VG=(y(BG,OG=CG),BG.prototype.init=function(){OG.prototype.init.call(this),this.group.add(this._containerGroup=new NG),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new NG)},BG.prototype.resetInner=function(){OG.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},BG.prototype.renderInner=function(t,i,e,o,n,r,a){var s=this;OG.prototype.renderInner.call(this,t,i,e,o,n,r,a);var l=this._controllerGroup,a=i.get("pageIconSize",!0),u=et(a)?a:[a,a];h("pagePrev",0);a=i.getModel("pageTextStyle");function h(t,e){var n=t+"DataIndex",n=Om(i.get("pageIcons",!0)[i.getOrient().name][e],{onclick:Q(s._pageGo,s,n,i,o)},{x:-u[0]/2,y:-u[1]/2,width:u[0],height:u[1]});n.name=t,l.add(n)}l.add(new xl({name:"pageText",style:{text:"xx/xx",fill:a.getTextColor(),font:a.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),h("pageNext",1)},BG.prototype.layoutInner=function(t,e,n,i,o,r){var a=this.getSelectorGroup(),s=t.getOrient().index,l=zG[s],u=EG[s],h=zG[1-s],c=EG[1-s];o&&ic("horizontal",a,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),d=a.getBoundingRect(),f=[-d.x,-d.y],g=E(n);o&&(g[l]=n[l]-d[l]-p);g=this._layoutContentAndController(t,i,g,s,l,h,c,u);return o&&("end"===r?f[s]+=g[l]+p:(r=d[l]+p,f[s]-=r,g[u]-=r),g[l]+=d[l]+p,f[1-s]+=g[c]+g[h]/2-d[h]/2,g[h]=Math.max(g[h],d[h]),g[c]=Math.min(g[c],d[c]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()),g},BG.prototype._layoutContentAndController=function(t,e,n,i,o,r,a,s){var l=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup;ic(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),ic("horizontal",h,t.get("pageButtonItemGap",!0));var c=l.getBoundingRect(),p=h.getBoundingRect(),d=this._showController=c[o]>n[o],f=[-c.x,-c.y];e||(f[i]=l[s]);var g=[0,0],e=[-p.x,-p.y],s=gt(t.get("pageButtonGap",!0),t.get("itemGap",!0));d&&("end"===t.get("pageButtonPosition",!0)?e[i]+=n[o]-p[o]:g[i]+=p[o]+s),e[1-i]+=c[r]/2-p[r]/2,l.setPosition(f),u.setPosition(g),h.setPosition(e);g={x:0,y:0};g[o]=(d?n:c)[o],g[r]=Math.max(c[r],p[r]),g[a]=Math.min(0,p[a]+e[1-i]),u.__rectSize=n[o],d?((i={x:0,y:0})[o]=Math.max(n[o]-p[o]-s,0),i[r]=g[r],u.setClipPath(new rl({shape:i})),u.__rectSize=i[o]):h.eachChild(function(t){t.attr({invisible:!0,silent:!0})});h=this._getPageInfo(t);return null!=h.pageIndex&&wu(l,{x:h.contentPosition[0],y:h.contentPosition[1]},d?t:null),this._updatePageInfoView(t,h),g},BG.prototype._pageGo=function(t,e,n){t=this._getPageInfo(e)[t];null!=t&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},BG.prototype._updatePageInfoView=function(n,i){var o=this._controllerGroup;Z(["pagePrev","pageNext"],function(t){var e=null!=i[t+"DataIndex"],t=o.childOfName(t);t&&(t.setStyle("fill",e?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),t.cursor=e?"pointer":"default")});var t=o.childOfName("pageText"),e=n.get("pageFormatter"),r=i.pageIndex,a=null!=r?r+1:0,r=i.pageCount;t&&e&&t.setStyle("text",it(e)?e.replace("{current}",null==a?"":a+"").replace("{total}",null==r?"":r+""):e({current:a,total:r}))},BG.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,r=zG[o],a=EG[o],s=this._findTargetItemIndex(e),l=n.children(),t=l[s],u=l.length,e=u?1:0,h={contentPosition:[n.x,n.y],pageCount:e,pageIndex:e-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!t)return h;t=g(t);h.contentPosition[o]=-t.s;for(var c=s+1,p=t,d=t,f=null;c<=u;++c)(!(f=g(l[c]))&&d.e>p.s+i||f&&!y(f,p.s))&&((p=d.i>p.i?d:f)&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=p.i),++h.pageCount)),d=f;for(c=s-1,d=p=t,f=null;-1<=c;--c)(f=g(l[c]))&&y(d,f.s)||!(p.i<d.i)||(d=p,null==h.pagePrevDataIndex&&(h.pagePrevDataIndex=p.i),++h.pageCount,++h.pageIndex),p=f;return h;function g(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[r],i:t.__legendDataIndex}}}function y(t,e){return t.e>=e&&t.s<=e+i}},BG.prototype._findTargetItemIndex=function(n){return this._showController?(this.getContentGroup().eachChild(function(t,e){t=t.__legendDataIndex;null==o&&null!=t&&(o=e),t===n&&(i=e)}),null!=i?i:o):0;var i,o},BG.type="legend.scroll",BG);function BG(){var t=null!==OG&&OG.apply(this,arguments)||this;return t.type=BG.type,t.newlineDisabled=!0,t._currentIndex=0,t}function GG(t){Z1(kG),t.registerComponentModel(RG),t.registerComponentView(VG),t.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})}var FG,HG=(y(UG,FG=Zr),UG.type="dataZoom.inside",UG.defaultOption=ih(Zr.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),UG),WG=Ir();function UG(){var t=null!==FG&&FG.apply(this,arguments)||this;return t.type=UG.type,t}function XG(t,e){e&&(t.removeKey(e.model.uid),(e=e.controller)&&e.dispose())}function YG(t,e){t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function ZG(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function jG(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(t,a){var e=WG(a),l=e.coordSysRecordMap||(e.coordSysRecordMap=Tt());l.each(function(t){t.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){Z(bV(o).infoList,function(t){var r,e,n=t.model.uid,i=l.get(n)||l.set(n,(i=a,n=t.model,r={model:n,containsPoint:tt(ZG,n),dispatchAction:tt(YG,i),dataZoomInfoMap:null,controller:null},e=r.controller=new lT(i.getZr()),Z(["pan","zoom","scrollMove"],function(o){e.on(o,function(n){var i=[];r.dataZoomInfoMap.each(function(t){var e;n.isAvailableBehavior(t.model.option)&&(e=(e=(t.getRange||{})[o])&&e(t.dzReferCoordSysInfo,r.model.mainType,r.controller,n),!t.model.get("disabled",!0)&&e&&i.push({dataZoomId:t.model.id,start:e[0],end:e[1]}))}),i.length&&r.dispatchAction(i)})}),r));(i.dataZoomInfoMap||(i.dataZoomInfoMap=Tt())).set(o.uid,{dzReferCoordSysInfo:t,model:o,getRange:null})})}),l.each(function(t){var e,n,i,o,r,a=t.controller,s=t.dataZoomInfoMap;!s||null!=(n=s.keys()[0])&&(e=s.get(n)),e?(o={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0,s.each(function(t){var e=t.model,t=!e.get("disabled",!0)&&(!e.get("zoomLock",!0)||"move");o["type_"+i]<o["type_"+t]&&(i=t),r=r&&e.get("preventDefaultMouseMove",!0)}),s={controlType:i,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}},a.enable(s.controlType,s.opt),a.setPointerChecker(t.containsPoint),Gf(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")):XG(l,t)})})}var qG,Co=(y($G,qG=k),$G.prototype.render=function(t,e,n){var i,o;qG.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),n=n,i=t,o={pan:Q(KG.pan,this),zoom:Q(KG.zoom,this),scrollMove:Q(KG.scrollMove,this)},WG(n).coordSysRecordMap.each(function(t){t=t.dataZoomInfoMap.get(i.uid);t&&(t.getRange=o)}))},$G.prototype.dispose=function(){this._clear(),qG.prototype.dispose.apply(this,arguments)},$G.prototype._clear=function(){(function(t,e){for(var n=WG(t).coordSysRecordMap,i=n.keys(),o=0;o<i.length;o++){var r=i[o],a=n.get(r),s=a.dataZoomInfoMap;s&&(r=e.uid,s.get(r)&&(s.removeKey(r),s.keys().length||XG(n,a)))}})(this.api,this.dataZoomModel),this.range=null},$G.type="dataZoom.inside",$G),KG={zoom:function(t,e,n,i){var o=this.range,r=o.slice(),a=t.axisModels[0];if(a){t=QG[e](null,[i.originX,i.originY],a,n,t),t=(0<t.signal?t.pixelStart+t.pixelLength-t.pixel:t.pixel-t.pixelStart)/t.pixelLength*(r[1]-r[0])+r[0],i=Math.max(1/i.scale,0);r[0]=(r[0]-t)*i+t,r[1]=(r[1]-t)*i+t;t=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return pL(0,r,[0,100],0,t.minSpan,t.maxSpan),this.range=r,o[0]!==r[0]||o[1]!==r[1]?r:void 0}},pan:JG(function(t,e,n,i,o,r){n=QG[i]([r.oldX,r.oldY],[r.newX,r.newY],e,o,n);return n.signal*(t[1]-t[0])*n.pixel/n.pixelLength}),scrollMove:JG(function(t,e,n,i,o,r){return QG[i]([0,0],[r.scrollDelta,r.scrollDelta],e,o,n).signal*(t[1]-t[0])*r.scrollDelta})};function $G(){var t=null!==qG&&qG.apply(this,arguments)||this;return t.type="dataZoom.inside",t}function JG(s){return function(t,e,n,i){var o=this.range,r=o.slice(),a=t.axisModels[0];if(a)return pL(s(r,a,t,e,n,i),r,[0,100],"all"),this.range=r,o[0]!==r[0]||o[1]!==r[1]?r:void 0}}var QG={grid:function(t,e,n,i,o){var r=n.axis,n={},o=o.model.coordinateSystem.getRect();return t=t||[0,0],"x"===r.dim?(n.pixel=e[0]-t[0],n.pixelLength=o.width,n.pixelStart=o.x,n.signal=r.inverse?1:-1):(n.pixel=e[1]-t[1],n.pixelLength=o.height,n.pixelStart=o.y,n.signal=r.inverse?-1:1),n},polar:function(t,e,n,i,o){var r=n.axis,a={},s=o.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),o=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=r.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=o[1]-o[0],a.pixelStart=o[0],a.signal=r.inverse?-1:1),a},singleAxis:function(t,e,n,i,o){var r=n.axis,n=o.model.coordinateSystem.getRect(),o={};return t=t||[0,0],"horizontal"===r.orient?(o.pixel=e[0]-t[0],o.pixelLength=n.width,o.pixelStart=n.x,o.signal=r.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=n.height,o.pixelStart=n.y,o.signal=r.inverse?-1:1),o}},tF=Co;function eF(t){FV(t),t.registerComponentModel(HG),t.registerComponentView(tF),jG(t)}var nF,iF,oF=(y(cF,iF=Zr),cF.type="dataZoom.slider",cF.layoutMode="box",cF.defaultOption=ih(Zr.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"}}}),cF),rF=rl,aF="horizontal",sF="vertical",lF=["line","bar","candlestick","scatter"],uF={easing:"cubicOut",duration:100,delay:0};function hF(){var t=null!==nF&&nF.apply(this,arguments)||this;return t.type=hF.type,t._displayables={},t}function cF(){var t=null!==iF&&iF.apply(this,arguments)||this;return t.type=cF.type,t}function pF(t){return"vertical"===t?"ns-resize":"ew-resize"}var dF=(y(hF,nF=k),hF.prototype.init=function(t,e){this.api=e,this._onBrush=Q(this._onBrush,this),this._onBrushEnd=Q(this._onBrushEnd,this)},hF.prototype.render=function(t,e,n,i){if(nF.prototype.render.apply(this,arguments),Gf(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},hF.prototype.dispose=function(){this._clear(),nF.prototype.dispose.apply(this,arguments)},hF.prototype._clear=function(){var t,e;(n=(t=this)[e="_dispatchZoomAction"])&&n[zf]&&(t[e]=n[zf]);var n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},hF.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new Ao;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},hF.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,i=this._findCoordRect(),e={width:e.getWidth(),height:e.getHeight()},o=this._orient===aF?{right:e.width-i.x-i.width,top:e.height-30-7-n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},r=lc(t.option);Z(["right","top","width","height"],function(t){"ph"===r[t]&&(r[t]=o[t])});e=oc(r,e);this._location={x:e.x,y:e.y},this._size=[e.width,e.height],this._orient===sF&&this._size.reverse()},hF.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),r=this._displayables.sliderGroup,i=(this._dataShadowInfo||{}).otherAxisInverse;r.attr(n!==aF||o?n===aF&&o?{scaleY:i?1:-1,scaleX:-1}:n!==sF||o?{scaleY:i?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:i?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:i?1:-1,scaleX:1});r=t.getBoundingRect([r]);t.x=e.x-r.x,t.y=e.y-r.y,t.markRedraw()},hF.prototype._getViewExtent=function(){return[0,this._size[0]]},hF.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new rF({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));t=new rF({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:Q(this._onClickPanel,this)}),e=this.api.getZr();i?(t.on("mousedown",this._onBrushStart,this),t.cursor="crosshair",e.on("mousemove",this._onBrush),e.on("mouseup",this._onBrushEnd)):(e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)),n.add(t)},hF.prototype._renderDataShadow=function(){var t,e,n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],n){var i=this._size,o=n.series,r=o.getRawData(),o=o.getShadowDim?o.getShadowDim():n.otherDim;if(null!=o){var a,n=.3*((s=r.getDataExtent(o))[1]-s[0]),s=[s[0]-n,s[1]+n],l=[0,i[1]],n=[0,i[0]],u=[[i[0],0],[0,0]],h=[],c=n[1]/(r.count()-1),p=0,d=Math.round(r.count()/i[0]);r.each([o],function(t,e){var n;0<d&&e%d?p+=c:(t=(n=null==t||isNaN(t)||""===t)?0:Wo(t,s,l,!0),n&&!a&&e?(u.push([u[u.length-1][0],0]),h.push([h[h.length-1][0],0])):!n&&a&&(u.push([p,0]),h.push([p,0])),u.push([p,t]),h.push([p,t]),p+=c,a=n)});for(var f=this.dataZoomModel,g=0;g<3;g++){var y=(t=1===g,e=y=e=void 0,e=f.getModel(t?"selectedDataBackground":"dataBackground"),y=new Ao,t=new Ry({shape:{points:u},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),e=new Ey({shape:{points:h},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19}),y.add(t),y.add(e),y);this._displayables.sliderGroup.add(y),this._displayables.dataShadowSegs.push(y)}}}},hF.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,s=t.get("showDataShadow");if(!1!==s){var l,u=this.ecModel;return t.eachTargetAxis(function(r,a){Z(t.getAxisProxy(r,a).getTargetSeriesModels(),function(t){var e,n,i,o;l||!0!==s&&W(lF,t.get("type"))<0||(n=u.getComponent(xV(r),a).axis,o=t.coordinateSystem,null!=(i={x:"y",y:"x",radius:"angle",angle:"radius"}[r])&&o.getOtherAxis&&(e=o.getOtherAxis(n).inverse),i=t.getData().mapDimension(i),l={thisAxis:n,series:t,thisDim:r,otherDim:i,otherAxisInverse:e})},this)},this),l}},hF.prototype._renderHandle=function(){var o=this.group,t=this._displayables,r=t.handles=[null,null],a=t.handleLabels=[null,null],s=this._displayables.sliderGroup,e=this._size,l=this.dataZoomModel,n=this.api,i=l.get("borderRadius")||0,u=l.get("brushSelect"),h=t.filler=new rF({silent:u,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});s.add(h),s.add(new rF({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:e[0],height:e[1],r:i},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),Z([0,1],function(t){var e=l.get("handleIcon"),n=Fm(e=!Vm[e]&&e.indexOf("path://")<0&&e.indexOf("image://")<0?"path://"+e:e,-1,0,2,2,null,!0);n.attr({cursor:pF(this._orient),draggable:!0,drift:Q(this._onDragMove,this,t),ondragend:Q(this._onDragEnd,this),onmouseover:Q(this._showDataInfo,this,!0),onmouseout:Q(this._showDataInfo,this,!1),z2:5});var i=n.getBoundingRect(),e=l.get("handleSize");this._handleHeight=Uo(e,this._size[1]),this._handleWidth=i.width/i.height*this._handleHeight,n.setStyle(l.getModel("handleStyle").getItemStyle()),n.style.strokeNoScale=!0,n.rectHover=!0,n.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),hu(n);i=l.get("handleColor");null!=i&&(n.style.fill=i),s.add(r[t]=n);n=l.getModel("textStyle");o.add(a[t]=new xl({silent:!0,invisible:!0,style:Ru(n,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:n.getTextColor(),font:n.getFont()}),z2:10}))},this);var c,p=h;u&&(i=Uo(l.get("moveHandleSize"),e[1]),c=t.moveHandle=new rl({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:e[1]-.5,height:i}}),h=.8*i,(u=t.moveHandleIcon=Fm(l.get("moveHandleIcon"),-h/2,-h/2,h,h,"#fff",!0)).silent=!0,u.y=e[1]+i/2-.5,c.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle(),h=Math.min(e[1]/2,Math.max(i,10)),(p=t.moveZone=new rl({invisible:!0,shape:{y:e[1]-h,height:i+h}})).on("mouseover",function(){n.enterEmphasis(c)}).on("mouseout",function(){n.leaveEmphasis(c)}),s.add(c),s.add(u),s.add(p)),p.attr({draggable:!0,cursor:pF(this._orient),drift:Q(this._onDragMove,this,"all"),ondragstart:Q(this._showDataInfo,this,!0),ondragend:Q(this._onDragEnd,this),onmouseover:Q(this._showDataInfo,this,!0),onmouseout:Q(this._showDataInfo,this,!1)})},hF.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[Wo(t[0],[0,100],e,!0),Wo(t[1],[0,100],e,!0)]},hF.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),r=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];pL(e,i,o,n.get("zoomLock")?"all":t,null!=r.minSpan?Wo(r.minSpan,a,o,!0):null,null!=r.maxSpan?Wo(r.maxSpan,a,o,!0):null);r=this._range,a=this._range=Yo([Wo(i[0],o,a,!0),Wo(i[1],o,a,!0)]);return!r||r[0]!==a[0]||r[1]!==a[1]},hF.prototype._updateView=function(t){var i=this._displayables,o=this._handleEnds,e=Yo(o.slice()),r=this._size;Z([0,1],function(t){var e=i.handles[t],n=this._handleHeight;e.attr({scaleX:n/2,scaleY:n/2,x:o[t]+(t?-1:1),y:r[1]/2-n/2})},this),i.filler.setShape({x:e[0],y:0,width:e[1]-e[0],height:r[1]});var n={x:e[0],width:e[1]-e[0]};i.moveHandle&&(i.moveHandle.setShape(n),i.moveZone.setShape(n),i.moveZone.getBoundingRect(),i.moveHandleIcon&&i.moveHandleIcon.attr("x",n.x+n.width/2));for(var a=i.dataShadowSegs,s=[0,e[0],e[1],r[0]],l=0;l<a.length;l++){var u=a[l],h=u.getClipPath();h||(h=new rl,u.setClipPath(h)),h.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(t)},hF.prototype._updateDataInfo=function(t){var e,n,i=this.dataZoomModel,o=this._displayables,r=o.handleLabels,a=this._orient,s=["",""];!i.get("showDetail")||(n=i.findRepresentativeAxisProxy())&&(e=n.getAxisModel().axis,i=this._range,n=t?n.calculateDataWindow({start:i[0],end:i[1]}).valueWindow:n.getDataValueWindow(),s=[this._formatLabel(n[0],e),this._formatLabel(n[1],e)]);var l=Yo(this._handleEnds.slice());function u(t){var e=Tm(o.handles[t].parent,this.group),n=Dm(0===t?"right":"left",e),i=this._handleWidth/2+5,e=Cm([l[t]+(0===t?-i:i),this._size[1]/2],e);r[t].setStyle({x:e[0],y:e[1],verticalAlign:a===aF?"middle":n,align:a===aF?n:"center",text:s[t]})}u.call(this,0),u.call(this,1)},hF.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),n=n.get("labelPrecision");null!=n&&"auto"!==n||(n=e.getPixelPrecision());n=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(n,20));return nt(i)?i(t,n):it(i)?i.replace("{value}",n):n},hF.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,n=e.handleLabels;n[0].attr("invisible",!t),n[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},hF.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,Me(i.event);n=Cm([e,n],this._displayables.sliderGroup.getLocalTransform(),!0),t=this._updateInterval(t,n[0]),n=this.dataZoomModel.get("realtime");this._updateView(!n),t&&n&&this._dispatchZoomAction(!0)},hF.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),this.dataZoomModel.get("realtime")||this._dispatchZoomAction(!1)},hF.prototype._onClickPanel=function(t){var e=this._size,t=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);t[0]<0||t[0]>e[0]||t[1]<0||t[1]>e[1]||(e=((e=this._handleEnds)[0]+e[1])/2,e=this._updateInterval("all",t[0]-e),this._updateView(),e&&this._dispatchZoomAction(!1))},hF.prototype._onBrushStart=function(t){var e=t.offsetX,t=t.offsetY;this._brushStart=new Ui(e,t),this._brushing=!0,this._brushStartTime=+new Date},hF.prototype._onBrushEnd=function(t){var e,n,i;this._brushing&&(i=this._displayables.brushRect,this._brushing=!1,i&&(i.attr("ignore",!0),e=i.shape,+new Date-this._brushStartTime<200&&Math.abs(e.width)<5||(n=this._getViewExtent(),this._range=Yo([Wo(e.x,n,i=[0,100],!0),Wo(e.x+e.width,n,i,!0)]),this._handleEnds=[e.x,e.x+e.width],this._updateView(),this._dispatchZoomAction(!1))))},hF.prototype._onBrush=function(t){this._brushing&&(Me(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},hF.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new rF({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);i=this._brushStart,n=this._displayables.sliderGroup,e=n.transformCoordToLocal(t,e),n=n.transformCoordToLocal(i.x,i.y),i=this._size;e[0]=Math.max(Math.min(i[0],e[0]),0),o.setShape({x:n[0],y:0,width:e[0]-n[0],height:i[1]})},hF.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?uF:null,start:e[0],end:e[1]})},hF.prototype._findCoordRect=function(){var t,e,n=bV(this.dataZoomModel).infoList;return t=!(t=!t&&n.length?(e=n[0].model.coordinateSystem).getRect&&e.getRect():t)?{x:.2*(n=this.api.getWidth()),y:.2*(e=this.api.getHeight()),width:.6*n,height:.6*e}:t},hF.type="dataZoom.slider",hF);function fF(t){t.registerComponentModel(oF),t.registerComponentView(dF),FV(t)}var gF,yF,mF={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]}},vF={get:function(t,e,n){e=E((mF[t]||{})[e]);return n&&et(e)?e[e.length-1]:e}},xF=LD.mapVisual,_F=LD.eachVisual,bF=et,wF=Z,SF=Yo,MF=Wo,Zr=(y(CF,yF=xc),CF.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},CF.prototype.optionUpdated=function(t,e){var n=this.option;w.canvasSupported||(n.realtime=!1),e||MB(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},CF.prototype.resetVisual=function(t){var e=this.stateList;t=Q(t,this),this.controllerVisuals=SB(this.option.controller,e,t),this.targetVisuals=SB(this.option.target,e,t)},CF.prototype.getItemSymbol=function(){return null},CF.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,n=[];return null==t||"all"===t?this.ecModel.eachSeries(function(t,e){n.push(e)}):n=dr(t),n},CF.prototype.eachTargetSeries=function(e,n){Z(this.getTargetSeriesIndices(),function(t){t=this.ecModel.getSeriesByIndex(t);t&&e.call(n,t)},this)},CF.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(t){t===e&&(n=!0)}),n},CF.prototype.formatValueText=function(t,e,n){var i,o=this.option,r=o.precision,a=this.dataBound,o=o.formatter;n=n||["<",">"],et(t)&&(t=t.slice(),i=!0);e=e?t:i?[s(t[0]),s(t[1])]:s(t);return it(o)?o.replace("{value}",i?e[0]:e).replace("{value2}",i?e[1]:e):nt(o)?i?o(t[0],t[1]):o(t):i?t[0]===a[0]?n[0]+" "+e[1]:t[1]===a[1]?n[1]+" "+e[0]:e[0]+" - "+e[1]:e;function s(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(r,20))}},CF.prototype.resetExtent=function(){var t=this.option,t=SF([t.min,t.max]);this._dataExtent=t},CF.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;0<=i;i--){var o=n[i],o=t.getDimensionInfo(o);if(!o.isCalculationCoord)return o.storeDimIndex}},CF.prototype.getExtent=function(){return this._dataExtent.slice()},CF.prototype.completeVisualOption=function(){var e=this.ecModel,n=this.option,t={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={});V(i,t),V(o,t);var u=this.isCategory();function r(t){bF(n.color)&&!t.inRange&&(t.inRange={color:n.color.slice().reverse()}),t.inRange=t.inRange||{color:e.get("gradientColor")}}r.call(this,i),r.call(this,o),function(t,e,n){var e=t[e],i=t[n];e&&!i&&(i=t[n]={},wF(e,function(t,e){var n;!LD.isValidType(e)||null!=(n=vF.get(e,"inactive",u))&&(i[e]=n,"color"!==e||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}))}.call(this,i,"inRange","outOfRange"),function(o){var r=(o.inRange||{}).symbol||(o.outOfRange||{}).symbol,a=(o.inRange||{}).symbolSize||(o.outOfRange||{}).symbolSize,s=this.get("inactiveColor"),l=this.getItemSymbol()||"roundRect";wF(this.stateList,function(t){var e=this.itemSize,n=o[t];null==(n=n||(o[t]={color:u?s:[s]})).symbol&&(n.symbol=r&&E(r)||(u?l:[l])),null==n.symbolSize&&(n.symbolSize=a&&E(a)||(u?e[0]:[e[0],e[0]])),n.symbol=xF(n.symbol,function(t){return"none"===t?l:t});var i,t=n.symbolSize;null!=t&&(i=-1/0,_F(t,function(t){i<t&&(i=t)}),n.symbolSize=xF(t,function(t){return MF(t,[0,i],[0,e[0]],!0)}))},this)}.call(this,o)},CF.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},CF.prototype.isCategory=function(){return!!this.option.categories},CF.prototype.setSelected=function(t){},CF.prototype.getSelected=function(){return null},CF.prototype.getValueState=function(t){return null},CF.prototype.getVisualMeta=function(t){return null},CF.type="visualMap",CF.dependencies=["series"],CF.defaultOption={show:!0,zlevel: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"}},CF),IF=[20,140];function TF(){var t=null!==gF&&gF.apply(this,arguments)||this;return t.type=TF.type,t}function CF(){var t=null!==yF&&yF.apply(this,arguments)||this;return t.type=CF.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}function DF(t,e,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,o=n[0],r=[],a=0;a<=200&&o<n[1];a++)r.push(o),o+=i;return r.push(n[1]),r}var AF,kF=(y(TF,gF=Zr),TF.prototype.optionUpdated=function(t,e){gF.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()}),this._resetRange()},TF.prototype.resetItemSize=function(){gF.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;null!=t[0]&&!isNaN(t[0])||(t[0]=IF[0]),null!=t[1]&&!isNaN(t[1])||(t[1]=IF[1])},TF.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):et(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},TF.prototype.completeVisualOption=function(){gF.prototype.completeVisualOption.apply(this,arguments),Z(this.stateList,function(t){t=this.option.controller[t].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},TF.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},TF.prototype.getSelected=function(){var t=this.getExtent(),e=Yo((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},TF.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},TF.prototype.findTargetDataIndices=function(i){var o=[];return this.eachTargetSeries(function(t){var n=[],e=t.getData();e.each(this.getDataDimensionIndex(e),function(t,e){i[0]<=t&&t<=i[1]&&n.push(e)},this),o.push({seriesId:t.id,dataIndex:n})},this),o},TF.prototype.getVisualMeta=function(n){var t=DF(0,0,this.getExtent()),e=DF(0,0,this.option.range.slice()),i=[];function o(t,e){i.push({value:t,color:n(t,e)})}for(var r=0,a=0,s=e.length,l=t.length;a<l&&(!e.length||t[a]<=e[0]);a++)t[a]<e[r]&&o(t[a],"outOfRange");for(var u=1;r<s;r++,u=0)u&&i.length&&o(e[r],"outOfRange"),o(e[r],"inRange");for(u=1;a<l;a++)(!e.length||e[e.length-1]<t[a])&&(u&&(i.length&&o(i[i.length-1].value,"outOfRange"),u=0),o(t[a],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}},TF.type="visualMap.continuous",TF.defaultOption=ih(Zr.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)"}}),TF),k=(y(PF,AF=If),PF.prototype.init=function(t,e){this.ecModel=t,this.api=e},PF.prototype.render=function(t,e,n,i){!1!==(this.visualMapModel=t).get("show")?this.doRender(t,e,n,i):this.group.removeAll()},PF.prototype.renderBackground=function(t){var e=this.visualMapModel,n=Gh(e.get("padding")||0),i=t.getBoundingRect();t.add(new rl({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},PF.prototype.getControllerVisual=function(n,i,o){var t,e=(o=o||{}).forceState,r=this.visualMapModel,a={};function s(t){return a[t]}function l(t,e){a[t]=e}"color"===i&&(t=r.get("contentColor"),a.color=t);var u=r.controllerVisuals[e||r.getValueState(n)];return Z(LD.prepareVisualTypes(u),function(t){var e=u[t];o.convertOpacityToAlpha&&"opacity"===t&&(t="colorAlpha",e=u.__alphaForOpacity),LD.dependsOn(t,i)&&e&&e.applyVisual(n,s,l)}),a[i]},PF.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;rc(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},PF.prototype.doRender=function(t,e,n,i){},PF.type="visualMap",PF),LF=[["left","right","width"],["top","bottom","height"]];function PF(){var t=null!==AF&&AF.apply(this,arguments)||this;return t.type=PF.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}function OF(t,e,n){var i=t.option,o=i.align;if(null!=o&&"auto"!==o)return o;for(var t={width:e.getWidth(),height:e.getHeight()},r="horizontal"===i.orient?1:0,a=LF[r],s=[0,null,10],l={},u=0;u<3;u++)l[LF[1-r][u]]=s[u],l[a[u]]=2===u?n[0]:i[a[u]];o=[["x","width",3],["y","height",0]][r],e=oc(l,t,i.padding);return a[(e.margin[o[2]]||0)+e[o[0]]+.5*e[o[1]]<.5*t[o[1]]?0:1]}function RF(t,e){return Z(t||[],function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}var NF,zF=Wo,EF=Z,VF=Math.min,BF=Math.max;function GF(){var t=null!==NF&&NF.apply(this,arguments)||this;return t.type=GF.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}function FF(t,e,n,i){return new Ry({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){Me(t.event)},ondragend:i})}function HF(t){var e=t.get("hoverLinkOnHandle");return null==e?t.get("realtime"):e}function WF(t){return"vertical"===t?"ns-resize":"ew-resize"}function UF(e,t){t.eachComponent({mainType:"visualMap",query:e},function(t){t.setSelected(e.selected)})}var XF=(y(GF,NF=k),GF.prototype.doRender=function(t,e,n,i){this._api=n,i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},GF.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);t=t.get("text");this._renderEndsText(e,t,0),this._renderEndsText(e,t,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},GF.prototype._renderEndsText=function(t,e,n){var i,o,r;e&&(i=null!=(i=e[1-n])?i+"":"",o=(r=this.visualMapModel).get("textGap"),e=r.itemSize,r=this._shapes.mainGroup,e=this._applyTransform([e[0]/2,0===n?-o:e[1]+o],r),o=this._applyTransform(0===n?"bottom":"top",r),n=this._orient,r=this.visualMapModel.textStyleModel,this.group.add(new xl({style:{x:e[0],y:e[1],verticalAlign:"horizontal"===n?"middle":o,align:"horizontal"===n?o:"center",text:i,font:r.getFont(),fill:r.getTextColor()}})))},GF.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,i=e.itemSize,o=this._orient,r=this._useHandle,a=OF(e,this.api,i),s=n.mainGroup=this._createBarGroup(a),a=new Ao;s.add(a),a.add(n.outOfRange=FF()),a.add(n.inRange=FF(null,r?WF(this._orient):null,Q(this._dragHandle,this,"all",!1),Q(this._dragHandle,this,"all",!0))),a.setClipPath(new rl({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));a=e.textStyleModel.getTextRect("国"),a=BF(a.width,a.height);r&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,s,0,i,a,o),this._createHandle(e,s,1,i,a,o)),this._createIndicator(e,s,i,a,o),t.add(s)},GF.prototype._createHandle=function(t,e,n,i,o,r){var a=Q(this._dragHandle,this,n,!1),s=Q(this._dragHandle,this,n,!0),l=po(t.get("handleSize"),i[0]),u=Fm(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),h=WF(this._orient);u.attr({cursor:h,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){Me(t.event)}}),u.x=i[0]/2,u.useStyle(t.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),gu(u,!0),e.add(u);e=this.visualMapModel.textStyleModel,s=new xl({cursor:h,draggable:!0,drift:a,onmousemove:function(t){Me(t.event)},ondragend:s,style:{x:0,y:0,text:"",font:e.getFont(),fill:e.getTextColor()}});s.ensureState("blur").style={opacity:.1},s.stateTransition={duration:200},this.group.add(s);e=[l,0],l=this._shapes;l.handleThumbs[n]=u,l.handleLabelPoints[n]=e,l.handleLabels[n]=s},GF.prototype._createIndicator=function(t,e,n,i,o){var r=po(t.get("indicatorSize"),n[0]),a=Fm(t.get("indicatorIcon"),-r/2,-r/2,r,r,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});r=t.getModel("indicatorStyle").getItemStyle();a instanceof qs?(t=a.style,a.useStyle(G({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},r))):a.useStyle(r),e.add(a);e=this.visualMapModel.textStyleModel,e=new xl({silent:!0,invisible:!0,style:{x:0,y:0,text:"",font:e.getFont(),fill:e.getTextColor()}});this.group.add(e);i=[("horizontal"===o?i/2:6)+n[0]/2,0],n=this._shapes;n.indicator=a,n.indicatorLabel=e,n.indicatorLabelPoint=i,this._firstShowIndicator=!0},GF.prototype._dragHandle=function(t,e,n,i){this._useHandle&&(this._dragging=!e,e||(i=this._applyTransform([n,i],this._shapes.mainGroup,!0),this._updateInterval(t,i[1]),this._hideIndicator(),this._updateView()),e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?this._hovering||this._clearHoverLinkToSeries():HF(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1))},GF.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),t=[0,t.itemSize[1]];this._handleEnds=[zF(e[0],n,t,!0),zF(e[1],n,t,!0)]},GF.prototype._updateInterval=function(t,e){var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];pL(e=e||0,i,o,t,0);n=n.getExtent();this._dataInterval=[zF(i[0],o,n,!0),zF(i[1],o,n,!0)]},GF.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,o=[0,e.itemSize[1]],e=t?o:this._handleEnds,t=this._createBarVisual(this._dataInterval,n,e,"inRange"),o=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:t.barColor}).setShape("points",t.barPoints),i.outOfRange.setStyle({fill:o.barColor}).setShape("points",o.barPoints),this._updateHandle(e,t)},GF.prototype._createBarVisual=function(t,e,n,i){var o={forceState:i,convertOpacityToAlpha:!0},i=this._makeColorGradient(t,o),o=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],o=this._createBarPoints(n,o);return{barColor:new qy(0,0,0,1,i),barPoints:o,handlesColor:[i[0].color,i[i.length-1].color]}},GF.prototype._makeColorGradient=function(t,e){var n=[],i=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var o=1;o<100;o++){var r=t[0]+i*o;if(r>t[1])break;n.push({color:this.getControllerVisual(r,"color",e),offset:o/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},GF.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},GF.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new Ao("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},GF.prototype._updateHandle=function(i,o){var r,a,s,l,u,h;this._useHandle&&(r=this._shapes,a=this.visualMapModel,s=r.handleThumbs,l=r.handleLabels,u=a.itemSize,h=a.getExtent(),EF([0,1],function(t){var e=s[t];e.setStyle("fill",o.handlesColor[t]),e.y=i[t];var n=zF(i[t],[0,u[1]],h,!0),n=this.getControllerVisual(n,"symbolSize");e.scaleX=e.scaleY=n/u[0],e.x=u[0]-n/2;e=Cm(r.handleLabelPoints[t],Tm(e,this.group));l[t].setStyle({x:e[0],y:e[1],text:a.formatValueText(this._dataInterval[t]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",r.mainGroup):"center"})},this))},GF.prototype._showIndicator=function(t,e,n,i){var o=this.visualMapModel,r=o.getExtent(),a=o.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var h=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),c=this.getControllerVisual(t,"symbolSize"),p=zF(t,r,s,!0),t=a[0]-c/2,r={x:u.x,y:u.y};u.y=p,u.x=t;s=Cm(l.indicatorLabelPoint,Tm(u,this.group)),a=l.indicatorLabel;a.attr("invisible",!1);c=this._applyTransform("left",l.mainGroup),l="horizontal"===this._orient;a.setStyle({text:(n||"")+o.formatValueText(e),verticalAlign:l?c:"middle",align:l?"center":c});h={x:t,y:p,style:{fill:h}},s={style:{x:s[0],y:s[1]}};o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator?(o={duration:100,easing:"cubicInOut",additive:!0},u.x=r.x,u.y=r.y,u.animateTo(h,o),a.animateTo(s,o)):(u.attr(h),a.attr(s)),this._firstShowIndicator=!1;var d=this._shapes.handleLabels;if(d)for(var f=0;f<d.length;f++)this._api.enterBlur(d[f])}},GF.prototype._enableHoverLinkToSeries=function(){var n=this;this._shapes.mainGroup.on("mousemove",function(t){var e;n._hovering=!0,n._dragging||(e=n.visualMapModel.itemSize,(t=n._applyTransform([t.offsetX,t.offsetY],n._shapes.mainGroup,!0,!0))[1]=VF(BF(0,t[1]),e[1]),n._doHoverLinkToSeries(t[1],0<=t[0]&&t[0]<=e[0]))}).on("mouseout",function(){n._hovering=!1,n._dragging||n._clearHoverLinkToSeries()})},GF.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()},GF.prototype._doHoverLinkToSeries=function(t,e){var n,i,o,r,a,s=this.visualMapModel,l=s.itemSize;function u(t,e,n){for(var i=0,o=t.length;i<o;i++){var r=_r(t[i].seriesId,null);if(null==r)return;for(var a=dr(t[i].dataIndex),s=n&&n[r],l=0,u=a.length;l<u;l++){var h=a[l];s&&s[h]?s[h]=null:(e[r]||(e[r]={}))[h]=1}}}function h(t,e){var n,i,o=[];for(n in t)t.hasOwnProperty(n)&&null!=t[n]&&(e?o.push(+n):(i=h(t[n],!0)).length&&o.push({seriesId:n,dataIndex:i}));return o}s.option.hoverLink&&(n=[0,l[1]],i=s.getExtent(),t=VF(BF(n[0],t),n[1]),o=i,r=n,a=6,l=(l=s).get("hoverLinkDataSize"),a=[t-(r=a=l?zF(l,o,r,!0)/2:a),t+r],t=zF(t,n,i,!0),i=[zF(a[0],n,i,!0),zF(a[1],n,i,!0)],a[0]<n[0]&&(i[0]=-1/0),n[1]<a[1]&&(i[1]=1/0),e&&(i[0]===-1/0?this._showIndicator(t,i[1],"< ",r):i[1]===1/0?this._showIndicator(t,i[0],"> ",r):this._showIndicator(t,t,"≈ ",r)),t=this._hoverLinkDataIndices,r=[],(e||HF(s))&&(r=this._hoverLinkDataIndices=s.findTargetDataIndices(i)),i=r,r={},u(t||[],t={}),u(i||[],r,t),r=[h(t),h(r)],this._dispatchHighDown("downplay",RF(r[0],s)),this._dispatchHighDown("highlight",RF(r[1],s)))},GF.prototype._hoverLinkFromSeriesMouseOver=function(t){var e=t.target,n=this.visualMapModel;e&&null!=_l(e).dataIndex&&(t=_l(e),e=this.ecModel.getSeriesByIndex(t.seriesIndex),n.isTargetSeries(e)&&(t=(e=e.getData(t.dataType)).getStore().get(n.getDataDimensionIndex(e),t.dataIndex),isNaN(t)||this._showIndicator(t,t)))},GF.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n<e.length;n++)this._api.leaveBlur(e[n])},GF.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",RF(t,this.visualMapModel)),t.length=0},GF.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},GF.prototype._applyTransform=function(t,e,n,i){i=Tm(e,i?null:this.group);return(et(t)?Cm:Dm)(t,i,n)},GF.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},GF.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},GF.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},GF.type="visualMap.continuous",GF),YF={type:"selectDataRange",event:"dataRangeSelected",update:"update"},ZF=[{createOnAllSeries:!0,reset:function(n,t){var i=[];return t.eachComponent("visualMap",function(t){var f,g,y,m,e=n.pipelineContext;!t.isTargetSeries(n)||e&&e.large||i.push((e=t.stateList,f=t.targetVisuals,g=Q(t.getValueState,t),y=t.getDataDimensionIndex(n.getData()),m={},Z(e,function(t){var e=LD.prepareVisualTypes(f[t]);m[t]=e}),{progress:function(t,n){var e,i;function o(t){return mg(n,i,t)}function r(t,e){xg(n,i,t,e)}null!=y&&(e=n.getDimensionIndex(y));for(var a=n.getStore();null!=(i=t.next());){var s=n.getRawDataItem(i);if(!s||!1!==s.visualMap)for(var l=null!=y?a.get(e,i):i,s=g(l),u=f[s],h=m[s],c=0,p=h.length;c<p;c++){var d=h[c];u[d]&&u[d].applyVisual(l,o,r)}}}}))}),i}},{createOnAllSeries:!0,reset:function(n,t){var i=n.getData(),o=[];t.eachComponent("visualMap",function(t){var e;t.isTargetSeries(n)&&(e=t.getVisualMeta(Q(jF,null,n,t))||{stops:[],outerColors:[]},0<=(t=t.getDataDimensionIndex(i))&&(e.dimension=t,o.push(e)))}),n.getData().setVisual("visualMeta",o)}}];function jF(t,e,n,i){for(var o=e.targetVisuals[i],r=LD.prepareVisualTypes(o),a={color:vg(t.getData(),"color")},s=0,l=r.length;s<l;s++){var u=r[s],u=o["opacity"===u?"__alphaForOpacity":u];u&&u.applyVisual(n,h,c)}return a.color;function h(t){return a[t]}function c(t,e){a[t]=e}}var qF=Z;function KF(t){t=t&&t.visualMap;et(t)||(t=t?[t]:[]),qF(t,function(t){t&&($F(t,"splitList")&&!$F(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList),(t=t.pieces)&&et(t)&&qF(t,function(t){at(t)&&($F(t,"start")&&!$F(t,"min")&&(t.min=t.start),$F(t,"end")&&!$F(t,"max")&&(t.max=t.end))}))})}function $F(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var JF=!1;function QF(e){JF||(JF=!0,e.registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?0<t.pieces.length:0<t.splitNumber)&&!t.calculable?"piecewise":"continuous"}),e.registerAction(YF,UF),Z(ZF,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(KF))}function tH(t){t.registerComponentModel(kF),t.registerComponentView(XF),QF(t)}var eH,Zr=(y(iH,eH=Zr),iH.prototype.optionUpdated=function(t,e){eH.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],nH[this._mode].call(this,this._pieceList),this._resetSelected(t,e);var i=this.option.categories;this.resetVisual(function(t,e){"categories"===n?(t.mappingMethod="category",t.categories=E(i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=j(this._pieceList,function(t){return t=E(t),"inRange"!==e&&(t.visual=null),t}))})},iH.prototype.completeVisualOption=function(){var i=this.option,n={},t=LD.listVisualTypes(),o=this.isCategory();function r(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}Z(i.pieces,function(e){Z(t,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),Z(n,function(t,e){var n=!1;Z(this.stateList,function(t){n=n||r(i,t,e)||r(i.target,t,e)},this),n||Z(this.stateList,function(t){(i[t]||(i[t]={}))[e]=vF.get(e,"inRange"===t?"active":"inactive",o)})},this),eH.prototype.completeVisualOption.apply(this,arguments)},iH.prototype._resetSelected=function(t,e){var n,i=this.option,o=this._pieceList,r=(e?i:t).selected||{};i.selected=r,Z(o,function(t,e){t=this.getSelectedMapKey(t);r.hasOwnProperty(t)||(r[t]=!0)},this),"single"===i.selectedMode&&(n=!1,Z(o,function(t,e){t=this.getSelectedMapKey(t);r[t]&&(n?r[t]=!1:n=!0)},this))},iH.prototype.getItemSymbol=function(){return this.get("itemSymbol")},iH.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},iH.prototype.getPieceList=function(){return this._pieceList},iH.prototype._determineMode=function(){var t=this.option;return t.pieces&&0<t.pieces.length?"pieces":this.option.categories?"categories":"splitNumber"},iH.prototype.setSelected=function(t){this.option.selected=E(t)},iH.prototype.getValueState=function(t){t=LD.findPieceIndex(t,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},iH.prototype.findTargetDataIndices=function(i){var o=[],r=this._pieceList;return this.eachTargetSeries(function(t){var n=[],e=t.getData();e.each(this.getDataDimensionIndex(e),function(t,e){LD.findPieceIndex(t,r)===i&&n.push(e)},this),o.push({seriesId:t.id,dataIndex:n})},this),o},iH.prototype.getRepresentValue=function(t){return this.isCategory()||null!=t.value?t.value:(t=t.interval||[])[0]===-1/0&&t[1]===1/0?0:(t[0]+t[1])/2},iH.prototype.getVisualMeta=function(i){if(!this.isCategory()){var t,o=[],r=["",""],a=this,e=this._pieceList.slice();e.length?((t=e[0].interval[0])!==-1/0&&e.unshift({interval:[-1/0,t]}),(t=e[e.length-1].interval[1])!==1/0&&e.push({interval:[t,1/0]})):e.push({interval:[-1/0,1/0]});var n=-1/0;return Z(e,function(t){t=t.interval;t&&(t[0]>n&&s([n,t[0]],"outOfRange"),s(t.slice()),n=t[1])},this),{stops:o,outerColors:r}}function s(t,e){var n=a.getRepresentValue({interval:t});e=e||a.getValueState(n);e=i(n,e);t[0]===-1/0?r[0]=e:t[1]===1/0?r[1]=e:o.push({value:t[0],color:e},{value:t[1],color:e})}},iH.type="visualMap.piecewise",iH.defaultOption=ih(Zr.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}),iH),nH={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),o=e.splitNumber,o=Math.max(parseInt(o,10),1);e.splitNumber=o;for(var r=(i[1]-i[0])/o;+r.toFixed(n)!==r&&n<5;)n++;e.precision=n,r=+r.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<o;s+=r,a++){var l=a===o-1?i[1]:s+r;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),ar(t),Z(t,function(t,e){t.index=e,t.text=this.formatValueText(t.interval)},this)},categories:function(e){var t=this.option;Z(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),oH(t,e)},pieces:function(c){var t=this.option;Z(t.pieces,function(t,e){var n={text:"",index:e};if(null!=(t=!at(t)?{value:t}:t).label&&(n.text=t.label),t.hasOwnProperty("value")){e=n.value=t.value;n.interval=[e,e],n.close=[1,1]}else{for(var i=n.interval=[],o=n.close=[0,0],r=[1,0,1],a=[-1/0,1/0],s=[],l=0;l<2;l++){for(var u=[["gte","gt","min"],["lte","lt","max"]][l],h=0;h<3&&null==i[l];h++)i[l]=t[u[h]],o[l]=r[h],s[l]=2===h;null==i[l]&&(i[l]=a[l])}s[0]&&i[1]===1/0&&(o[0]=0),s[1]&&i[0]===-1/0&&(o[1]=0),i[0]===i[1]&&o[0]&&o[1]&&(n.value=i[0])}n.visual=LD.retrieveVisuals(t),c.push(n)},this),oH(t,c),ar(c),Z(c,function(t){var e=t.close,e=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,e)},this)}};function iH(){var t=null!==eH&&eH.apply(this,arguments)||this;return t.type=iH.type,t._pieceList=[],t}function oH(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var rH,aH=Zr,sH=(y(lH,rH=k),lH.prototype.doRender=function(){var i=this.group;i.removeAll();var o=this.visualMapModel,r=o.get("textGap"),t=o.textStyleModel,a=t.getFont(),s=t.getTextColor(),l=this._getItemAlign(),u=o.itemSize,e=this._getViewData(),t=e.endsText,h=ft(o.get("showLabel",!0),!t);t&&this._renderEndsText(i,t[0],u,h,l),Z(e.viewPieceList,function(t){var e=t.piece,n=new Ao;n.onclick=Q(this._onItemClick,this,e),this._enableHoverLink(n,t.indexInModelPieceList);var t=o.getRepresentValue(e);this._createItemSymbol(n,t,[0,0,u[0],u[1]]),h&&(t=this.visualMapModel.getValueState(t),n.add(new xl({style:{x:"right"===l?-r:u[0]+r,y:u[1]/2,text:e.text,verticalAlign:"middle",align:l,font:a,fill:s,opacity:"outOfRange"===t?.5:1}}))),i.add(n)},this),t&&this._renderEndsText(i,t[1],u,h,l),ic(o.get("orient"),i,o.get("itemGap")),this.renderBackground(i),this.positionGroup(i)},lH.prototype._enableHoverLink=function(t,n){var i=this;t.on("mouseover",function(){return e("highlight")}).on("mouseout",function(){return e("downplay")});var e=function(t){var e=i.visualMapModel;e.option.hoverLink&&i.api.dispatchAction({type:t,batch:RF(e.findTargetDataIndices(n),e)})}},lH.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return OF(t,this.api,t.itemSize);e=e.align;return e=!e||"auto"===e?"left":e},lH.prototype._renderEndsText=function(t,e,n,i,o){var r,a;e&&(r=new Ao,a=this.visualMapModel.textStyleModel,r.add(new xl({style:{x:i?"right"===o?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:e,font:a.getFont(),fill:a.getTextColor()}})),t.add(r))},lH.prototype._getViewData=function(){var t=this.visualMapModel,e=j(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get("text"),i=t.get("orient"),t=t.get("inverse");return("horizontal"===i?t:!t)?e.reverse():n=n&&n.slice().reverse(),{viewPieceList:e,endsText:n}},lH.prototype._createItemSymbol=function(t,e,n){t.add(Fm(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},lH.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=E(n.selected),o=e.getSelectedMapKey(t);"single"===n.selectedMode?(i[o]=!0,Z(i,function(t,e){i[e]=e===o})):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})},lH.type="visualMap.piecewise",lH);function lH(){var t=null!==rH&&rH.apply(this,arguments)||this;return t.type=lH.type,t}function uH(t){t.registerComponentModel(aH),t.registerComponentView(sH),QF(t)}var hH={label:{enabled:!0},decal:{show:!1}},cH=Ir(),pH={};function dH(g,o){var t,r=g.getModel("aria");function y(t,e){if("string"!=typeof t)return t;var n=t;return Z(e,function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)}),n}r.get("enabled")&&(V((t=E(hH)).label,g.getLocaleModel().get("aria"),!1),V(r.option,t,!1),function(){{var n;r.getModel("decal").get("show")&&(n=Tt(),g.eachSeries(function(t){var e;t.isColorBySeries()||((e=n.get(t.type))||n.set(t.type,e={}),cH(t).scope=e)}),g.eachRawSeries(function(i){var o,t,e,r,a,s,l;function u(t,e){e=t?G(G({},e),t):e;return e.dirty=!0,e}g.isSeriesFiltered(i)||("function"!=typeof i.enableAriaDecal?(o=i.getData(),i.isColorBySeries()?(t=Xc(i.ecModel,i.name,pH,g.getSeriesCount()),e=o.getVisual("decal"),o.setVisual("decal",u(e,t))):(r=i.getRawData(),a={},s=cH(i).scope,o.each(function(t){var e=o.getRawIndex(t);a[e]=t}),l=r.count(),r.each(function(t){var e=a[t],n=r.getName(t)||t+"",t=Xc(i.ecModel,n,s,l),n=o.getItemVisual(e,"decal");o.setItemVisual(e,"decal",u(n,t))}))):i.enableAriaDecal())}))}}(),function(){var t=g.getLocaleModel().get("aria"),h=r.getModel("label");{var e,c,p,d,f,n,i;h.option=F(h.option,t),h.get("enabled")&&(e=o.getZr().dom,h.get("description")?e.setAttribute("aria-label",h.get("description")):(c=g.getSeriesCount(),p=h.get(["data","maxCount"])||10,n=h.get(["series","maxCount"])||10,d=Math.min(c,n),c<1||(i=function(){var t=g.get("title");return(t=t&&t.length?t[0]:t)&&t.text}(),t=i?y(h.get(["general","withTitle"]),{title:i}):h.get(["general","withoutTitle"]),f=[],n=1<c?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]),t+=y(n,{seriesCount:c}),g.eachSeries(function(t,e){if(e<d){var n=void 0,e=t.get("name")?"withName":"withoutName";n=y(n=1<c?h.get(["series","multiple",e]):h.get(["series","single",e]),{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:(e=t.subType,g.getLocaleModel().get(["series","typeNames"])[e]||"自定义图")});var i=t.getData();i.count()>p?n+=y(h.get(["data","partialData"]),{displayCnt:p}):n+=h.get(["data","allData"]);for(var o,r,a,s=h.get(["data","separator","middle"]),t=h.get(["data","separator","end"]),l=[],u=0;u<i.count();u++)u<p&&(o=i.getName(u),r=i.getValues(u),a=h.get(["data",o?"withName":"withoutName"]),l.push(y(a,{name:o,value:r.join(s)})));n+=l.join(s)+t,f.push(n)}}),i=h.getModel(["series","multiple","separator"]),n=i.get("middle"),i=i.get("end"),t+=f.join(n)+i,e.setAttribute("aria-label",t))))}}())}function fH(t){var e;t&&t.aria&&(null!=(e=t.aria).show&&(e.enabled=e.show),e.label=e.label||{},Z(["description","general","series","data"],function(t){null!=e[t]&&(e.label[t]=e[t])}))}var gH={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},yH=(CH.prototype.evaluate=function(t){var e=typeof t;return"string"==e?this._condVal.test(t):"number"==e&&this._condVal.test(t+"")},CH),mH=(TH.prototype.evaluate=function(){return this.value},TH),vH=(IH.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},IH),xH=(MH.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},MH),_H=(SH.prototype.evaluate=function(){return!this.child.evaluate()},SH),bH=(wH.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),n=t?this.valueParser(e):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?n:e))return!1;return!0},wH);function wH(){}function SH(){}function MH(){}function IH(){}function TH(){}function CH(t){null==(this._condVal=it(t)?new RegExp(t):pt(t)?t:null)&&Zc("")}function DH(t,e){if(!0===t||!1===t){var n=new mH;return n.value=t,n}return kH(t)||Zc(""),t.and?AH("and",t,e):t.or?AH("or",t,e):(t.not?function(t,e){var n=t.not;kH(n)||Zc("");t=new _H;return t.child=DH(n,e),t.child||Zc(""),t}:function(t,e){for(var n=e.prepareGetValue(t),i=[],o=J(t),r=t.parser,a=r?gd(r):null,s=0;s<o.length;s++){var l,u=o[s];"parser"===u||e.valueGetterAttrMap.get(u)||(l=At(gH,u)?gH[u]:u,u=t[u],u=a?a(u):u,(u=function(t,e){return"eq"===t||"ne"===t?new xd("eq"===t,e):At(yd,t)?new md(t,e):null}(l,u)||"reg"===l&&new yH(u))||Zc(""),i.push(u))}i.length||Zc("");r=new bH;return r.valueGetterParam=n,r.valueParser=a,r.getValue=e.getValue,r.subCondList=i,r})(t,e)}function AH(t,e,n){e=e[t];et(e)||Zc(""),e.length||Zc("");t=new("and"===t?vH:xH);return t.children=j(e,function(t){return DH(t,n)}),t.children.length||Zc(""),t}function kH(t){return at(t)&&!Y(t)}var LH=(PH.prototype.evaluate=function(){return this._cond.evaluate()},PH);function PH(t,e){this._cond=DH(t,e)}var OH={type:"echarts:filter",transform:function(t){for(var e,n,i=t.upstream,o=(n=t.config,t={valueGetterAttrMap:Tt({dimension:!0}),prepareGetValue:function(t){var e=t.dimension;At(t,"dimension")||Zc("");e=i.getDimensionInfo(e);return e||Zc(""),{dimIdx:e.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}},new LH(n,t)),r=[],a=0,s=i.count();a<s;a++)e=i.getRawDataItem(a),o.evaluate()&&r.push(e);return{data:r}}},RH={type:"echarts:sort",transform:function(t){var a=t.upstream,t=t.config,t=dr(t);t.length||Zc("");var s=[];Z(t,function(t){var e=t.dimension,n=t.order,i=t.parser,o=t.incomparable;null==e&&Zc(""),"asc"!==n&&"desc"!==n&&Zc(""),o&&"min"!==o&&"max"!==o&&Zc(""),"asc"!==n&&"desc"!==n&&Zc("");t=a.getDimensionInfo(e);t||Zc("");e=i?gd(i):null;i&&!e&&Zc(""),s.push({dimIdx:t.index,parser:e,comparator:new vd(n,o)})});t=a.sourceFormat;t!==Sc&&t!==Mc&&Zc("");for(var e=[],n=0,i=a.count();n<i;n++)e.push(a.getRawDataItem(n));return e.sort(function(t,e){for(var n=0;n<s.length;n++){var i=s[n],o=a.retrieveValueFromItem(t,i.dimIdx),r=a.retrieveValueFromItem(e,i.dimIdx);i.parser&&(o=i.parser(o),r=i.parser(r));r=i.comparator.evaluate(o,r);if(0!==r)return r}return 0}),{data:e}}};var NH,zH,EH=(y(GH,zH=xc),GH.prototype.init=function(t,e,n){zH.prototype.init.call(this,t,e,n),this._sourceManager=new Fd(this),Xd(this)},GH.prototype.mergeOption=function(t,e){zH.prototype.mergeOption.call(this,t,e),Xd(this)},GH.prototype.optionUpdated=function(){this._sourceManager.dirty()},GH.prototype.getSourceManager=function(){return this._sourceManager},GH.type="dataset",GH.defaultOption={seriesLayoutBy:Dc},GH),VH=(y(BH,NH=If),BH.type="dataset",BH);function BH(){var t=null!==NH&&NH.apply(this,arguments)||this;return t.type="dataset",t}function GH(){var t=null!==zH&&zH.apply(this,arguments)||this;return t.type="dataset",t}var FH=vs.CMD;function HH(t,e){return Math.abs(t-e)<1e-5}function WH(t){var o,e,n=t.data,i=t.len(),r=[],a=0,s=0,l=0,u=0;function h(t,e){o&&2<o.length&&r.push(o),o=[t,e]}function c(t,e,n,i){HH(t,n)&&HH(e,i)||o.push(t,e,n,i,n,i)}for(var p,d,f,g,y,m,v,x,_,b,w,S,M=0;M<i;){var I=n[M++],T=1===M;switch(T&&(l=a=n[M],u=s=n[M+1],I!==FH.L&&I!==FH.C&&I!==FH.Q||(o=[l,u])),I){case FH.M:a=l=n[M++],s=u=n[M++],h(l,u);break;case FH.L:c(a,s,R=n[M++],N=n[M++]),a=R,s=N;break;case FH.C:o.push(n[M++],n[M++],n[M++],n[M++],a=n[M++],s=n[M++]);break;case FH.Q:R=n[M++],N=n[M++],e=n[M++],L=n[M++],o.push(a+2/3*(R-a),s+2/3*(N-s),e+2/3*(R-e),L+2/3*(N-L),e,L),a=e,s=L;break;case FH.A:var C=n[M++],D=n[M++],A=n[M++],k=n[M++],L=n[M++],P=n[M++]+L;M+=1;var O=!n[M++],R=Math.cos(L)*A+C,N=Math.sin(L)*k+D;T?h(l=R,u=N):c(a,s,R,N);for(var a=Math.cos(P)*A+C,s=Math.sin(P)*k+D,z=(O?-1:1)*Math.PI/2,E=L;O?P<E:E<P;E+=z){var V=O?Math.max(E+z,P):Math.min(E+z,P);p=E,d=V,f=C,g=D,y=A,m=k,_=v=V=S=w=b=_=x=v=void 0,v=Math.abs(d-p),x=4*Math.tan(v/4)/3,_=d<p?-1:1,b=Math.cos(p),w=Math.sin(p),S=Math.cos(d),V=Math.sin(d),v=S*y+f,p=V*m+g,d=y*x*_,_*=m*x,o.push(b*y+f-d*w,w*m+g+_*b,v+d*V,p-_*S,v,p)}break;case FH.R:l=a=n[M++],u=s=n[M++],R=l+n[M++],N=u+n[M++],h(R,u),c(R,u,R,N),c(R,N,l,N),c(l,N,l,u),c(l,u,R,u);break;case FH.Z:o&&c(a,s,l,u),a=l,s=u}}return o&&2<o.length&&r.push(o),r}function UH(t,e){var n=WH(t),i=[];e=e||1;for(var o=0;o<n.length;o++){var r=n[o],a=[],s=r[0],l=r[1];a.push(s,l);for(var u=2;u<r.length;){var h=r[u++],c=r[u++],p=r[u++],d=r[u++],f=r[u++],g=r[u++];(function t(e,n,i,o,r,a,s,l,u,h){var c,p,d,f,g,y,m,v,x;HH(e,i)&&HH(n,o)&&HH(r,s)&&HH(a,l)?u.push(s,l):(c=(v=2/h)*v,p=s-e,d=l-n,p/=y=Math.sqrt(p*p+d*d),d/=y,m=(g=r-s)*g+(x=a-l)*x,(y=(f=i-e)*f+(v=o-n)*v)<c&&m<c?u.push(s,l):(x=-p*g-d*x,y-(v=p*f+d*v)*v<c&&0<=v&&m-x*x<c&&0<=x?u.push(s,l):(x=[],Ra(e,i,r,s,.5,s=[]),Ra(n,o,a,l,.5,x),t(s[0],x[0],s[1],x[1],s[2],x[2],s[3],x[3],u,h),t(s[4],x[4],s[5],x[5],s[6],x[6],s[7],x[7],u,h))))})(s,l,h,c,p,d,f,g,a,e),s=f,l=g}i.push(a)}return i}function XH(t,e,n){var i=t[e],e=t[1-e],e=Math.abs(i/e),o=Math.ceil(Math.sqrt(e*n)),r=Math.floor(n/o);0===r&&(r=1,o=n);for(var a=[],s=0;s<o;s++)a.push(r);var l=n-o*r;if(0<l)for(s=0;s<l;s++)a[s%o]+=1;return a}function YH(t,e,n){for(var i=t.r0,o=t.r,r=t.startAngle,a=t.endAngle,s=Math.abs(a-r),a=s*o,l=o-i,u=a>Math.abs(l),h=XH([a,l],u?0:1,e),c=(u?s:l)/h.length,p=0;p<h.length;p++)for(var d=(u?l:s)/h[p],f=0;f<h[p];f++){var g={};u?(g.startAngle=r+c*p,g.endAngle=r+c*(p+1),g.r0=i+d*f,g.r=i+d*(f+1)):(g.startAngle=r+d*f,g.endAngle=r+d*(f+1),g.r0=i+c*p,g.r=i+c*(p+1)),g.clockwise=t.clockwise,g.cx=t.cx,g.cy=t.cy,n.push(g)}}function ZH(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function jH(t,e,n){for(var i,o,r,a,s,l,u,h=t.length,c=[],p=0;p<h;p++){var d=t[p],f=t[(p+1)%h],f=(i=d[0],o=d[1],r=f[0],a=f[1],s=e.x,l=e.y,u=n.x,d=n.y,f=void 0,f=r-i,r=a-o,d=(a=u-s)*r-f*(u=d-l),Math.abs(d)<1e-6||(d=((i-s)*u-a*(o-l))/d)<0||1<d?null:new Ui(d*f+i,d*r+o));f&&c.push({projPt:(i=f,d=e,r=n,o=void 0,o=new Ui,Ui.sub(o,r,d),o.normalize(),r=new Ui,Ui.sub(r,i,d),r.dot(o)),pt:f,idx:p})}if(c.length<2)return[{points:t},{points:t}];c.sort(function(t,e){return t.projPt-e.projPt});var g=c[0],y=c[c.length-1];y.idx<g.idx&&(v=g,g=y,y=v);for(var m=[g.pt.x,g.pt.y],v=[y.pt.x,y.pt.y],x=[m],_=[v],p=g.idx+1;p<=y.idx;p++)ZH(x,t[p].slice());for(ZH(x,v),ZH(x,m),p=y.idx+1;p<=g.idx+h;p++)ZH(_,t[p%h].slice());return ZH(_,m),ZH(_,v),[{points:x},{points:_}]}function qH(t){var e=t.points,n=[],i=[];qa(e,n,i);var o=new Qi(n[0],n[1],i[0]-n[0],i[1]-n[1]),r=o.width,a=o.height,t=o.x,i=o.y,n=new Ui,o=new Ui;return a<r?(n.x=o.x=t+r/2,n.y=i,o.y=i+a):(n.y=o.y=i+a/2,n.x=t,o.x=t+r),jH(e,n,o)}function KH(t,e,n,i){var o;return 1===n?i.push(e):(o=Math.floor(n/2),e=t(e),KH(t,e[0],o,i),KH(t,e[1],n-o,i)),i}function $H(t,e){var n,i=[],o=t.shape;switch(t.type){case"rect":(function(t,e,n){for(var i=t.width,o=t.height,r=o<i,a=XH([i,o],r?0:1,e),s=r?"width":"height",l=r?"height":"width",u=r?"x":"y",h=r?"y":"x",c=t[s]/a.length,p=0;p<a.length;p++)for(var d=t[l]/a[p],f=0;f<a[p];f++){var g={};g[u]=p*c,g[h]=f*d,g[s]=c,g[l]=d,g.x+=t.x,g.y+=t.y,n.push(g)}})(o,e,i),n=rl;break;case"sector":YH(o,e,i),n=My;break;case"circle":YH({r0:0,r:o.r,startAngle:0,endAngle:2*Math.PI,cx:o.cx,cy:o.cy},e,i),n=My;break;default:var r=t.getComputedTransform(),r=r?Math.sqrt(Math.max(r[0]*r[0]+r[1]*r[1],r[2]*r[2]+r[3]*r[3])):1,a=j(UH(t.getUpdatedPathProxy(),r),function(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}),s=a.length;if(0===s)KH(qH,{points:a[0]},e,i);else if(s===e)for(var l=0;l<s;l++)i.push({points:a[l]});else{var u=0,h=j(a,function(t){var e=[],n=[];qa(t,e,n);e=(n[1]-e[1])*(n[0]-e[0]);return u+=e,{poly:t,area:e}});h.sort(function(t,e){return e.area-t.area});for(var c=e,l=0;l<s;l++){var p=h[l];if(c<=0)break;var d=l===s-1?c:Math.ceil(p.area/u*e);d<0||(KH(qH,{points:p.poly},d,i),c-=d)}}n=Ry}if(!n)return function(t,e){for(var n=[],i=0;i<e;i++)n.push(ny(t));return n}(t,e);var f,g,y=[];for(l=0;l<i.length;l++){var m=new n;m.setShape(i[l]),f=t,(g=m).setStyle(f.style),g.z=f.z,g.z2=f.z2,g.zlevel=f.zlevel,y.push(m)}return y}function JH(t,e){for(var n=t.length,i=t[n-2],o=t[n-1],r=[],a=0;a<e.length;)r[a++]=i,r[a++]=o;return r}function QH(t,e){for(var n,i,o=[],r=[],a=0;a<Math.max(t.length,e.length);a++){var s=t[a],l=e[a],u=void 0,h=void 0;s?l?(n=u=(i=function(t,e){var n=t.length,i=e.length;if(n===i)return[t,e];for(var o=[],r=[],a=n<i?t:e,s=Math.min(n,i),n=Math.abs(i-n)/6,l=Math.ceil(n/((s-2)/6))+1,u=[a[0],a[1]],h=n,c=2;c<s;){var p=a[c-2],d=a[c-1],f=a[c++],g=a[c++],y=a[c++],m=a[c++],v=a[c++],x=a[c++];if(h<=0)u.push(f,g,y,m,v,x);else{for(var _=Math.min(h,l-1)+1,b=1;b<=_;b++){var w=b/_;Ra(p,f,y,v,w,o),Ra(d,g,m,x,w,r),u.push(o[1],r[1],o[2],r[2],p=o[3],d=r[3]),f=o[5],g=r[5],y=o[6],m=r[6]}h-=_-1}}return a===t?[u,e]:[t,u]}(s,l))[0],i=h=i[1]):(h=JH(i||s,s),u=s):(u=JH(n||l,l),h=l),o.push(u),r.push(h)}return[o,r]}function tW(t){for(var e=0,n=0,i=0,o=t.length,r=0,a=o-2;r<o;a=r,r+=2){var s=t[a],l=t[a+1],u=t[r],h=t[r+1],c=s*h-u*l;e+=c,n+=(s+u)*c,i+=(l+h)*c}return 0===e?[t[0]||0,t[1]||0]:[n/e/3,i/e/3,e]}function eW(t,e,n,i){for(var o,r=[],a=0;a<t.length;a++){var s=t[a],l=e[a],u=tW(s),h=tW(l);null==o&&(o=u[2]<0!=h[2]<0);for(var c=[],p=[],d=0,f=1/0,g=[],y=s.length,m=6*function(t,e,n,i){for(var o=(t.length-2)/6,r=1/0,a=0,s=t.length,l=s-2,u=0;u<o;u++){for(var h=6*u,c=0,p=0;p<s;p+=2){var d=0===p?h:(h+p-2)%l+2,f=t[d]-n[0],d=t[1+d]-n[1],f=e[p]-i[0]-f,d=e[p+1]-i[1]-d;c+=f*f+d*d}c<r&&(r=c,a=u)}return a}(s=o?function(t){for(var e=[],n=t.length,i=0;i<n;i+=2)e[i]=t[n-i-2],e[i+1]=t[n-i-1];return e}(s):s,l,u,h),v=y-2,x=0;x<v;x+=2){var _=(m+x)%v+2;c[x+2]=s[_]-u[0],c[x+3]=s[1+_]-u[1]}if(c[0]=s[m]-u[0],c[1]=s[1+m]-u[1],0<n)for(var b=i/n,w=-i/2;w<=i/2;w+=b){for(var S=Math.sin(w),M=Math.cos(w),I=0,x=0;x<s.length;x+=2){var T=c[x],C=c[x+1],D=l[x]-h[0],A=l[x+1]-h[1],k=D*M-A*S,A=D*S+A*M,T=(g[x]=k)-T,C=(g[x+1]=A)-C;I+=T*T+C*C}if(I<f)for(var f=I,d=w,L=0;L<g.length;L++)p[L]=g[L]}else for(var P=0;P<y;P+=2)p[P]=l[P]-h[0],p[P+1]=l[P+1]-h[1];r.push({from:c,to:p,fromCp:u,toCp:h,rotation:-d})}return r}function nW(t){return t.__isCombineMorphing}var iW="__mOriginal_";function oW(t,e,n){var i=iW+e,o=t[i]||t[e];t[i]||(t[i]=t[e]);var r=n.replace,a=n.after,s=n.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=(r||o).apply(this,e),a&&a.apply(this,e),t}}function rW(t,e){var n=iW+e;t[n]&&(t[e]=t[n],t[n]=null)}function aW(t,e){for(var n=0;n<t.length;n++)for(var i=t[n],o=0;o<i.length;){var r=i[o],a=i[o+1];i[o++]=e[0]*r+e[2]*a+e[4],i[o++]=e[1]*r+e[3]*a+e[5]}}function sW(t,S){var e=t.getUpdatedPathProxy(),n=S.getUpdatedPathProxy(),i=QH(WH(e),WH(n)),e=i[0],n=i[1],i=t.getComputedTransform(),t=S.getComputedTransform();i&&aW(e,i),t&&aW(n,t),oW(S,"updateTransform",{replace:function(){this.transform=null}}),S.transform=null;var M=eW(e,n,10,Math.PI),I=[];oW(S,"buildPath",{replace:function(t){for(var e=S.__morphT,n=1-e,i=[],o=0;o<M.length;o++){var r=M[o],a=r.from,s=r.to,l=r.rotation*e,u=r.fromCp,r=r.toCp,h=Math.sin(l),c=Math.cos(l);te(i,u,r,e);for(var p=0;p<a.length;p+=2){var d=a[p],f=a[p+1],g=s[p],y=s[p+1],d=d*n+g*e,f=f*n+y*e;I[p]=d*c-f*h+i[0],I[p+1]=d*h+f*c+i[1]}var m=I[0],v=I[1];for(t.moveTo(m,v),p=2;p<a.length;){var g=I[p++],y=I[p++],x=I[p++],_=I[p++],b=I[p++],w=I[p++];m===g&&v===y&&x===b&&_===w?t.lineTo(b,w):t.bezierCurveTo(g,y,x,_,b,w),m=b,v=w}}}})}function lW(t,e,n){if(!t||!e)return e;var i=n.done,o=n.during;return sW(t,e),e.__morphT=0,e.animateTo({__morphT:1},F({during:function(t){e.dirtyShape(),o&&o(t)},done:function(){rW(e,"buildPath"),rW(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape(),i&&i()}},n)),e}function uW(n){var i=1/0,o=1/0,r=-1/0,a=-1/0,t=j(n,function(t){var e=t.getBoundingRect(),n=t.getComputedTransform(),t=e.x+e.width/2+(n?n[4]:0),n=e.y+e.height/2+(n?n[5]:0);return i=Math.min(t,i),o=Math.min(n,o),r=Math.max(t,r),a=Math.max(n,a),[t,n]});return j(t,function(t,e){return{cp:t,z:function(t,e,n,i,o,r){t=o===n?0:Math.round(32767*(t-n)/(o-n)),e=r===i?0:Math.round(32767*(e-i)/(r-i));for(var a=0,s=32768;0<s;s/=2){var l=0,u=0;a+=s*s*(3*(l=0<(t&s)?1:l)^(u=0<(e&s)?1:u)),0===u&&(1===l&&(t=s-1-t,e=s-1-e),l=t,t=e,e=l)}return a}(t[0],t[1],i,o,r,a),path:n[e]}}).sort(function(t,e){return t.z-e.z}).map(function(t){return t.path})}function hW(t){return $H(t.path,t.count)}function cW(){return{fromIndividuals:[],toIndividuals:[],count:0}}function pW(e,i,t){var o=[];!function t(e){for(var n=0;n<e.length;n++){var i=e[n];nW(i)?t(i.childrenRef()):i instanceof Bs&&o.push(i)}}(e);var n=o.length;if(!n)return cW();var r=t.dividePath||hW;if((a=r({path:i,count:n})).length!==n)return cW();for(var o=uW(o),a=uW(a),s=t.done,l=t.during,u=t.individualDelay,h=new Wi,c=0;c<n;c++){var p=o[c],d=a[c];d.parent=i,d.copyTransform(h),u||sW(p,d)}function f(t){for(var e=0;e<a.length;e++)a[e].addSelfToZr(t)}function g(){i.__isCombineMorphing=!1,i.__morphT=-1,i.childrenRef=null,rW(i,"addSelfToZr"),rW(i,"removeSelfFromZr")}i.__isCombineMorphing=!0,i.childrenRef=function(){return a},oW(i,"addSelfToZr",{after:function(t){f(t)}}),oW(i,"removeSelfFromZr",{after:function(t){for(var e=0;e<a.length;e++)a[e].removeSelfFromZr(t)}});var y=a.length;if(u)for(var m=y,v=function(){0===--m&&(g(),s&&s())},c=0;c<y;c++){var x=u?F({delay:(t.delay||0)+u(c,y,o[c],a[c]),done:v},t):t;lW(o[c],a[c],x)}else i.__morphT=0,i.animateTo({__morphT:1},F({during:function(t){for(var e=0;e<y;e++){var n=a[e];n.__morphT=i.__morphT,n.dirtyShape()}l&&l(t)},done:function(){g();for(var t=0;t<e.length;t++)rW(e[t],"updateTransform");s&&s()}},t));return i.__zr&&f(i.__zr),{fromIndividuals:o,toIndividuals:a,count:y}}function dW(t,e,n){var i=e.length,o=[],r=n.dividePath||hW;if(nW(t)){!function t(e){for(var n=0;n<e.length;n++){var i=e[n];nW(i)?t(i.childrenRef()):i instanceof Bs&&o.push(i)}}(t.childrenRef());var a=o.length;if(a<i)for(var s=0,l=a;l<i;l++)o.push(ny(o[s++%a]));o.length=i}else{for(var o=r({path:t,count:i}),u=t.getComputedTransform(),l=0;l<o.length;l++)o[l].setLocalTransform(u);if(o.length!==i)return cW()}o=uW(o),e=uW(e);var h=n.individualDelay;for(l=0;l<i;l++){var c=h?F({delay:(n.delay||0)+h(l,i,o[l],e[l])},n):n;lW(o[l],e[l],c)}return{fromIndividuals:o,toIndividuals:e,count:e.length}}function fW(t){return et(t[0])}function gW(t,e){for(var n=[],i=t.length,o=0;o<i;o++)n.push({one:t[o],many:[]});for(o=0;o<e.length;o++)for(var r=e[o].length,a=void 0,a=0;a<r;a++)n[a%i].many.push(e[o][a]);for(var s=0,o=i-1;0<=o;o--)if(!n[o].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}var r=l.length,u=Math.ceil(r/2);n[o].many=l.slice(u,r),n[s].many=l.slice(0,u),s++}return n}var yW={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),i=0;i<t.count;i++){var o=ny(t.path);o.setStyle("opacity",n),e.push(o)}return e},split:null};function mW(t,e,f,n,i,g){if(t.length&&e.length){i=_u("update",n,i);if(i&&0<i.duration){var o,r,y=n.getModel("universalTransition").get("delay"),m=Object.assign({setToFinal:!0},i);fW(t)&&(o=t,r=e),fW(e)&&(o=e,r=t);for(var a=o?o===t:t.length>e.length,s=o?gW(r,o):gW(a?e:t,[a?t:e]),l=0,u=0;u<s.length;u++)l+=s[u].many.length;for(var h=0,u=0;u<s.length;u++)(function t(e,n,o,r,i){var a=e.many,s=e.one;if(1!==a.length||i)for(var l=F({dividePath:yW[f],individualDelay:y&&function(t,e,n,i){return y(t+o,r)}},m),l=n?pW(a,s,l):dW(s,a,l),u=l.fromIndividuals,h=l.toIndividuals,c=u.length,p=0;p<c;p++)d=y?F({delay:y(p,c)},m):m,g(u[p],h[p],n?a[p]:e.one,n?e.one:a[p],d);else{var d,l=n?a[0]:s,s=n?s:a[0];nW(l)?t({many:[l],one:s},!0,o,r,!0):(d=y?F({delay:y(o,r)},m):m,lW(l,s,d),g(l,s,l,s,d))}})(s[u],a,h,l),h+=s[u].many.length}}}function vW(t){if(!t)return[];if(et(t)){for(var e=[],n=0;n<t.length;n++)e.push(vW(t[n]));return e}var i=[];return t.traverse(function(t){t instanceof Bs&&!t.disableMorphing&&!t.invisible&&!t.ignore&&i.push(t)}),i}var xW=1e4,_W=Ir();function bW(t){var r=[];return Z(t,function(t){var e=t.data;if(!(e.count()>xW))for(var n=e.getIndices(),i=function(t){for(var e=t.dimensions,n=0;n<e.length;n++){var i=t.getDimensionInfo(e[n]);if(i&&0===i.otherDims.itemGroupId)return e[n]}}(e),o=0;o<n.length;o++)r.push({data:e,dim:t.dim||i,divide:t.divide,dataIndex:o})}),r}function wW(t,e,n){t.traverse(function(t){t instanceof Bs&&Su(t,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})})}function SW(t){var e;t.parent&&(e=t.getComputedTransform(),t.setLocalTransform(e),t.parent.remove(t))}function MW(t){t.stopAnimation(),t.isGroup&&t.traverse(function(t){t.stopAnimation()})}function IW(t,e,n){var i=_u("update",n,e);i&&t.traverse(function(t){var e;t instanceof xa&&((e=xu(t).oldStyle)&&t.animateFrom({style:e},i))})}function TW(t,e,i){var a=bW(t),s=bW(e);function l(t,e,n,i,o){(n||t)&&e.animateFrom({style:(n||t).style},o)}function n(t){for(var e=0;e<t.length;e++)if(t[e].dim)return t[e].dim}var u=n(a),h=n(s),c=!1;function o(a,s){return function(t){var e=t.data,n=t.dataIndex;if(s)return e.getId(n);var i=e.hostModel&&e.hostModel.get("dataGroupId"),o=a?u||h:h||u,t=o&&e.getDimensionInfo(o),o=t&&t.ordinalMeta;if(t){var r=e.get(t.name,n);return o&&o.categories[r]||r+""}r=e.getRawDataItem(n);return r&&r.groupId?r.groupId+"":i||e.getId(n)}}var t=function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++){var o=t[i],r=e[i];if(o.data.getId(o.dataIndex)!==r.data.getId(r.dataIndex))return!1}return!0}(a,s),p={};if(!t)for(var r=0;r<s.length;r++){var d=s[r],d=d.data.getItemGraphicEl(d.dataIndex);d&&(p[d.id]=!0)}function f(t,e){var n=a[e],i=s[t],o=i.data.hostModel,e=n.data.getItemGraphicEl(n.dataIndex),n=i.data.getItemGraphicEl(i.dataIndex);e!==n?e&&p[e.id]||n&&(MW(n),e?(MW(e),SW(e),c=!0,mW(vW(e),vW(n),i.divide,o,t,l)):wW(n,o,t)):n&&IW(n,i.dataIndex,o)}new K1(a,s,o(!0,t),o(!1,t),null,"multiple").update(f).updateManyToOne(function(t,e){var n=s[t],i=n.data,o=i.hostModel,r=i.getItemGraphicEl(n.dataIndex),e=K(j(e,function(t){return a[t].data.getItemGraphicEl(a[t].dataIndex)}),function(t){return t&&t!==r&&!p[t.id]});r&&(MW(r),e.length?(Z(e,function(t){MW(t),SW(t)}),c=!0,mW(vW(e),vW(r),n.divide,o,t,l)):wW(r,o,n.dataIndex))}).updateOneToMany(function(e,t){var n,i=a[t],o=i.data.getItemGraphicEl(i.dataIndex);o&&p[o.id]||(t=K(j(e,function(t){return s[t].data.getItemGraphicEl(s[t].dataIndex)}),function(t){return t&&t!==o}),n=s[e[0]].data.hostModel,t.length&&(Z(t,MW),o?(MW(o),SW(o),c=!0,mW(vW(o),vW(t),i.divide,n,e[0],l)):Z(t,function(t){return wW(t,n,e[0])})))}).updateManyToMany(function(n,i){new K1(i,n,function(t){return a[t].data.getId(a[t].dataIndex)},function(t){return s[t].data.getId(s[t].dataIndex)}).update(function(t,e){f(n[t],i[e])}).execute()}).execute(),c&&Z(e,function(t){var e=t.data.hostModel,t=e&&i.getViewOfSeriesModel(e),n=_u("update",e,0);t&&e.isAnimationEnabled()&&n&&0<n.duration&&t.group.traverse(function(t){t instanceof Bs&&!t.animators.length&&t.animateFrom({style:{opacity:0}},n)})})}function CW(t){return t.getModel("universalTransition").get("seriesKey")||t.id}function DW(t){return et(t)?t.sort().join(","):t}function AW(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function kW(t,e){for(var n=0;n<t.length;n++)if(null!=e.seriesIndex&&e.seriesIndex===t[n].seriesIndex||null!=e.seriesId&&e.seriesId===t[n].id)return n}Z1([function(t){t.registerPainter("canvas",ow)}]),Z1([function(t){t.registerPainter("svg",iS)}]),Z1([function(t){t.registerChartView(QS),t.registerSeriesModel(aS),t.registerLayout(eM("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),t=t.getModel("lineStyle").getLineStyle();t&&!t.stroke&&(t.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",t)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,oM("line"))},function(t){t.registerChartView(VM),t.registerSeriesModel(uM),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,tt(u_,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,h_),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,oM("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})})},function(t){t.registerChartView(QM),t.registerSeriesModel(rI),_g("pie",t.registerAction),t.registerLayout(tt(WM,"pie")),t.registerProcessor(UM("pie")),t.registerProcessor({seriesType:"pie",reset:function(t,e){var n=t.getData();n.filterSelf(function(t){var e=n.mapDimension("value"),t=n.get(e,t);return!("number"==typeof t&&!isNaN(t)&&t<0)})}})},function(t){Z1(A2),t.registerSeriesModel(dI),t.registerChartView(mI),t.registerLayout(eM("scatter"))},function(t){Z1(Q2),t.registerChartView(z2),t.registerSeriesModel(E2),t.registerLayout(k2),t.registerProcessor(UM("radar")),t.registerPreprocessor(O2)},function(t){Z1(tC),t.registerChartView(CT),t.registerSeriesModel(DT),t.registerLayout(PT),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,LT),_g("map",t.registerAction)},function(t){t.registerChartView(_C),t.registerSeriesModel(BC),t.registerLayout(HC),t.registerVisual(WC),(t=t).registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(n,t){t.eachComponent({mainType:"series",subType:"tree",query:n},function(t){var e=n.dataIndex,e=t.getData().tree.getNodeByDataIndex(e);e.isExpand=!e.isExpand})}),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(n,t){t.eachComponent({mainType:"series",subType:"tree",query:n},function(t){var e=KT(t.coordinateSystem,n);t.setCenter&&t.setCenter(e.center),t.setZoom&&t.setZoom(e.zoom)})})},function(t){t.registerSeriesModel(KC),t.registerChartView(fD),t.registerVisual(RD),t.registerLayout(KD),ZC(t)},function(t){t.registerChartView(ik),t.registerSeriesModel(gk),t.registerProcessor(eA),t.registerVisual(nA),t.registerVisual(oA),t.registerLayout(yA),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,SA),t.registerLayout(IA),t.registerCoordinateSystem("graphView",{dimensions:VT.dimensions,create:TA}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){}),t.registerAction(yk,function(n,t){t.eachComponent({mainType:"series",query:n},function(t){var e=KT(t.coordinateSystem,n);t.setCenter&&t.setCenter(e.center),t.setZoom&&t.setZoom(e.zoom)})})},function(t){t.registerChartView(Tk),t.registerSeriesModel(Ck)},function(t){t.registerChartView(Nk),t.registerSeriesModel(zk),t.registerLayout(Gk),t.registerProcessor(UM("funnel"))},function(t){Z1(LP),t.registerChartView(jk),t.registerSeriesModel($k),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,Qk)},function(t){t.registerChartView(BP),t.registerSeriesModel(GP),t.registerLayout(HP),t.registerVisual(JP),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])})})},function(t){t.registerSeriesModel(oO),t.registerChartView(cO),t.registerVisual(pO),t.registerLayout(fO),t.registerTransform(gO)},function(t){t.registerChartView(OO),t.registerSeriesModel(NO),t.registerPreprocessor(zO),t.registerVisual(FO),t.registerLayout(UO)},function(t){t.registerChartView(KO),t.registerSeriesModel($O),t.registerLayout(eM("effectScatter"))},function(t){t.registerChartView(dR),t.registerSeriesModel(MR),t.registerLayout(pR),t.registerVisual(CR)},function(t){t.registerChartView(OR),t.registerSeriesModel(RR)},function(t){t.registerChartView(sN),t.registerSeriesModel(lN),t.registerLayout(tt(u_,"pictorialBar"))},function(t){t.registerChartView(pN),t.registerSeriesModel(dN),t.registerLayout(gN),t.registerProcessor(UM("themeRiver"))},function(t){t.registerChartView(TN),t.registerSeriesModel(AN),t.registerLayout(tt(LN,"sunburst")),t.registerProcessor(tt(UM,"sunburst")),t.registerVisual(ON),SN(t)},function(t){t.registerChartView(dz),t.registerSeriesModel(VN)}]),Z1(function(t){Z1(A2),Z1(wE)}),Z1(function(t){Z1(wE),u2.registerAxisPointerClass("PolarAxisPointer",DE),t.registerCoordinateSystem("polar",$E),t.registerComponentModel(AE),t.registerComponentView(v5),DI(t,"angle",NE,y5),DI(t,"radius",zE,m5),t.registerComponentView(r5),t.registerComponentView(c5),t.registerLayout(tt(f5,"bar"))}),Z1(tC),Z1(function(t){Z1(wE),u2.registerAxisPointerClass("SingleAxisPointer",Z5),t.registerComponentView(j5),t.registerComponentView(T5),t.registerComponentModel(k5),DI(t,"single",k5,k5.defaultOption),t.registerCoordinateSystem("single",V5)}),Z1(LP),Z1(function(t){t.registerComponentModel(Q5),t.registerComponentView(tV),t.registerCoordinateSystem("calendar",oV)}),Z1(function(t){t.registerComponentModel(hV),t.registerComponentView(cV),t.registerPreprocessor(rV)}),Z1(function(t){t.registerComponentModel(qV),t.registerComponentView(t3),XV("saveAsImage",i3),XV("magicType",l3),XV("dataView",m3),XV("dataZoom",H3),XV("restore",S3),Z1(HV)}),Z1(function(t){Z1(wE),t.registerComponentModel(U3),t.registerComponentView(vB),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})}),Z1(wE),Z1(function(t){t.registerComponentView(BB),t.registerComponentModel(UB),t.registerPreprocessor(_B),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,PB),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(t){t.setAreas(e.areas)})}),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){}),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},function(){}),XV("brush",YB)}),Z1(function(t){t.registerComponentModel(KB),t.registerComponentView($B)}),Z1(function(t){var e;t.registerComponentModel(s4),t.registerComponentView(y4),t.registerSubTypeDefaulter("timeline",function(){return"slider"}),(e=t).registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e,n){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),F({currentIndex:i.option.currentIndex},t)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){e=e.getComponent("timeline");e&&null!=t.playState&&e.setPlayState(t.playState)}),t.registerPreprocessor(m4)}),Z1(function(t){t.registerComponentModel(C4),t.registerComponentView(H4),t.registerPreprocessor(function(t){_4(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}),Z1(function(t){t.registerComponentModel(Y4),t.registerComponentView(tG),t.registerPreprocessor(function(t){_4(t.series,"markLine")&&(t.markLine=t.markLine||{})})}),Z1(function(t){t.registerComponentModel(iG),t.registerComponentView(dG),t.registerPreprocessor(function(t){_4(t.series,"markArea")&&(t.markArea=t.markArea||{})})}),Z1(function(t){Z1(kG),Z1(GG)}),Z1(function(t){Z1(eF),Z1(fF)}),Z1(eF),Z1(fF),Z1(function(t){Z1(tH),Z1(uH)}),Z1(tH),Z1(uH),Z1(function(t){t.registerPreprocessor(fH),t.registerVisual(t.PRIORITY.VISUAL.ARIA,dH)}),Z1(function(t){t.registerTransform(OH),t.registerTransform(RH)}),Z1(function(t){t.registerComponentModel(EH),t.registerComponentView(VH)}),Z1(function(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,i){Z(dr(i.seriesTransition),function(t){Z(dr(t.to),function(t){for(var e=i.updatedSeries,n=0;n<e.length;n++)(null!=t.seriesIndex&&t.seriesIndex===e[n].seriesIndex||null!=t.seriesId&&t.seriesId===e[n].id)&&(e[n][ff]=!0)})})}),t.registerUpdateLifecycle("series:transition",function(t,a,s){var e,o,n,r,l,u,h=_W(a);h.oldSeries&&s.updatedSeries&&s.optionChanged&&((n=s.seriesTransition)?Z(dr(n),function(t){var n,i,e,o,r;n=h,i=s,e=a,o=[],r=[],Z(dr((t=t).from),function(t){var e=kW(n.oldSeries,t);0<=e&&o.push({data:n.oldData[e],divide:AW(n.oldData[e]),dim:t.dimension})}),Z(dr(t.to),function(t){var e=kW(i.updatedSeries,t);0<=e&&(e=i.updatedSeries[e].getData(),r.push({data:e,divide:AW(e),dim:t.dimension}))}),0<o.length&&0<r.length&&TW(o,r,e)}):(o=h,n=s,r=Tt(),l=Tt(),u=Tt(),Z(o.oldSeries,function(t,e){var n=o.oldData[e],t=CW(t),i=DW(t);l.set(i,n),et(t)&&Z(t,function(t){u.set(t,{data:n,key:i})})}),Z(n.updatedSeries,function(t){var e,n,i,o;t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()&&(e=t.getData(),i=DW(o=CW(t)),(t=l.get(i))?r.set(i,{oldSeries:[{divide:AW(t),data:t}],newSeries:[{divide:AW(e),data:e}]}):et(o)?(n=[],Z(o,function(t){t=l.get(t);t&&n.push({divide:AW(t),data:t})}),n.length&&r.set(i,{oldSeries:n,newSeries:[{data:e,divide:AW(e)}]})):(i=u.get(o))&&((o=r.get(i.key))||(o={oldSeries:[{data:i.data,divide:AW(i.data)}],newSeries:[]},r.set(i.key,o)),o.newSeries.push({data:e,divide:AW(e)})))}),Z((e=r).keys(),function(t){t=e.get(t);TW(t.oldSeries,t.newSeries,a)})),Z(s.updatedSeries,function(t){t[ff]&&(t[ff]=!1)}));for(var i=t.getSeries(),c=h.oldSeries=[],p=h.oldData=[],d=0;d<i.length;d++){var f=i[d].getData();f.count()<xW&&(c.push(i[d]),p.push(f))}})}),Z1(Kb)},4066:function(t,e,n){},"536c":function(t,e,n){},"539b":function(t,e,n){"use strict";var a=n("d4ec"),i=n("bee2"),s=n("257e"),l=n("262e"),u=n("2caf"),h=n("ade3"),o=(n("e9c4"),n("99af"),n("2b0e")),r=n("2fe1"),c=n("313e"),o=Object(r.a)({props:{id:{type:String,default:"myChart"},data:{type:Object,default:null},s:{type:String,default:""}},computed:{result:function(){return JSON.parse(JSON.stringify(this.data))}},watch:{result:function(){this.drawLine()}}})(o=function(t){Object(l.a)(r,t);var o=Object(u.a)(r);function r(){var t;Object(a.a)(this,r);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t=o.call.apply(o,[this].concat(n)),Object(h.a)(Object(s.a)(t),"flag",!0),Object(h.a)(Object(s.a)(t),"myChart",null),t}return Object(i.a)(r,[{key:"created",value:function(){var t=this;this.$nextTick(function(){t.myChart||(t.s?t.myChart=c.init(t.$refs[t.id],t.s):t.myChart=c.init(t.$refs[t.id])),t.drawLine()})}},{key:"drawLine",value:function(){this.data&&this.myChart&&this.myChart.setOption(this.data)}}]),r}(o.a))||o,n=(n("5712"),n("2877")),o=Object(n.a)(o,function(){var t=this.$createElement,t=this._self._c||t;return t("div",[this.flag?t("div",{ref:this.id,staticClass:"charts-div"}):this._e()])},[],!1,null,"3505ba68",null);e.a=o.exports},5712:function(t,e,n){"use strict";n("4066")},"85af":function(t,e,n){"use strict";var i=n("d4ec"),o=n("bee2"),r=n("262e"),a=n("2caf"),s=(n("a9e3"),n("2b0e")),l=n("2fe1"),s=Object(l.a)({props:{bl:{type:Number,default:0},backgroundColor:{type:String,default:"#349FE1"}}})(s=function(t){Object(r.a)(n,t);var e=Object(a.a)(n);function n(){return Object(i.a)(this,n),e.apply(this,arguments)}return Object(o.a)(n,[{key:"created",value:function(){}}]),n}(s.a))||s,n=(n("92d4"),n("2877")),s=Object(n.a)(s,function(){var t=this.$createElement,t=this._self._c||t;return t("div",[t("div",{staticClass:"progress-main"},[t("div",{staticClass:"progress"}),t("div",{staticClass:"progress-bl",style:{width:this.bl+"%",background:this.backgroundColor}})])])},[],!1,null,"78a382d6",null);e.a=s.exports},"92d4":function(t,e,n){"use strict";n("536c")},e9c4:function(t,e,n){function s(t,e,n){var i=p(n,e-1),e=p(n,e+1);return c(m,t)&&!c(v,e)||c(v,t)&&!c(m,i)?"\\u"+g(d(t,0),16):t}var i=n("23e7"),o=n("da84"),r=n("d066"),l=n("2ba4"),a=n("e330"),n=n("d039"),u=o.Array,h=r("JSON","stringify"),c=a(/./.exec),p=a("".charAt),d=a("".charCodeAt),f=a("".replace),g=a(1..toString),y=/[\uD800-\uDFFF]/g,m=/^[\uD800-\uDBFF]$/,v=/^[\uDC00-\uDFFF]$/,n=n(function(){return'"\\udf06\\ud834"'!==h("\udf06\ud834")||'"\\udead"'!==h("\udead")});h&&i({target:"JSON",stat:!0,forced:n},{stringify:function(t,e,n){for(var i=0,o=arguments.length,r=u(o);i<o;i++)r[i]=arguments[i];var a=l(h,null,r);return"string"==typeof a?f(a,y,s):a}})}}]);
|