chunk-d9624322.b861a213.js 448 KB

12345678910
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d9624322"],{"22d1":function(t,e,n){"use strict";var i=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),r=function(){function t(){this.browser=new i,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window}return t}(),o=new r;function a(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!==typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!==typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?o.worker=!0:!o.hasGlobalWindow||"Deno"in window?(o.node=!0,o.svgSupported=!0):a(navigator.userAgent,o),e["a"]=o},"41ef":function(t,e,n){"use strict";n.d(e,"c",(function(){return v})),n.d(e,"d",(function(){return _})),n.d(e,"b",(function(){return x})),n.d(e,"a",(function(){return w}));var i=n("d51b"),r=n("6d8b"),o={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 a(t){return t=Math.round(t),t<0?0:t>255?255:t}function s(t){return t<0?0:t>1?1:t}function l(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100*255):a(parseInt(e,10))}function u(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function c(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function h(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function p(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var f=new i["a"](20),d=null;function g(t,e){d&&p(d,e),d=f.put(t,d||e.slice())}function v(t,e){if(t){e=e||[];var n=f.get(t);if(n)return p(e,n);t+="";var i=t.replace(/ /g,"").toLowerCase();if(i in o)return p(e,o[i]),g(t,e),e;var r=i.length;if("#"!==i.charAt(0)){var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===r){var c=i.substr(0,a),d=i.substr(a+1,s-(a+1)).split(","),v=1;switch(c){case"rgba":if(4!==d.length)return 3===d.length?h(e,+d[0],+d[1],+d[2],1):h(e,0,0,0,1);v=u(d.pop());case"rgb":return d.length>=3?(h(e,l(d[0]),l(d[1]),l(d[2]),3===d.length?v:u(d[3])),g(t,e),e):void h(e,0,0,0,1);case"hsla":return 4!==d.length?void h(e,0,0,0,1):(d[3]=u(d[3]),y(d,e),g(t,e),e);case"hsl":return 3!==d.length?void h(e,0,0,0,1):(y(d,e),g(t,e),e);default:return}}h(e,0,0,0,1)}else{if(4===r||5===r){var m=parseInt(i.slice(1,4),16);return m>=0&&m<=4095?(h(e,(3840&m)>>4|(3840&m)>>8,240&m|(240&m)>>4,15&m|(15&m)<<4,5===r?parseInt(i.slice(4),16)/15:1),g(t,e),e):void h(e,0,0,0,1)}if(7===r||9===r){m=parseInt(i.slice(1,7),16);return m>=0&&m<=16777215?(h(e,(16711680&m)>>16,(65280&m)>>8,255&m,9===r?parseInt(i.slice(7),16)/255:1),g(t,e),e):void h(e,0,0,0,1)}}}}function y(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=u(t[1]),r=u(t[2]),o=r<=.5?r*(i+1):r+i-r*i,s=2*r-o;return e=e||[],h(e,a(255*c(s,o,n+1/3)),a(255*c(s,o,n)),a(255*c(s,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function m(t,e){var n=v(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,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return _(n,4===n.length?"rgba":"rgb")}}function _(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 x(t,e){var n=v(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var b=new i["a"](100);function w(t){if(Object(r["A"])(t)){var e=b.get(t);return e||(e=m(t,-.1),b.put(t,e)),e}if(Object(r["w"])(t)){var n=Object(r["m"])({},t);return n.colorStops=Object(r["F"])(t.colorStops,(function(t){return{offset:t.offset,color:m(t.color,-.1)}})),n}return t}},"51f3":function(t,e,n){"use strict";n("5b66")},"5b66":function(t,e,n){},"6d8b":function(t,e,n){"use strict";n.d(e,"o",(function(){return v})),n.d(e,"E",(function(){return y})),n.d(e,"d",(function(){return m})),n.d(e,"G",(function(){return _})),n.d(e,"m",(function(){return x})),n.d(e,"i",(function(){return b})),n.d(e,"q",(function(){return w})),n.d(e,"r",(function(){return S})),n.d(e,"H",(function(){return O})),n.d(e,"t",(function(){return T})),n.d(e,"k",(function(){return k})),n.d(e,"F",(function(){return M})),n.d(e,"K",(function(){return C})),n.d(e,"n",(function(){return I})),n.d(e,"D",(function(){return D})),n.d(e,"c",(function(){return A})),n.d(e,"h",(function(){return P})),n.d(e,"s",(function(){return L})),n.d(e,"v",(function(){return R})),n.d(e,"A",(function(){return z})),n.d(e,"B",(function(){return N})),n.d(e,"y",(function(){return B})),n.d(e,"z",(function(){return E})),n.d(e,"C",(function(){return H})),n.d(e,"u",(function(){return V})),n.d(e,"w",(function(){return G})),n.d(e,"x",(function(){return W})),n.d(e,"l",(function(){return U})),n.d(e,"L",(function(){return q})),n.d(e,"M",(function(){return X})),n.d(e,"N",(function(){return Y})),n.d(e,"P",(function(){return Z})),n.d(e,"J",(function(){return K})),n.d(e,"b",(function(){return Q})),n.d(e,"Q",(function(){return $})),n.d(e,"O",(function(){return tt})),n.d(e,"f",(function(){return at})),n.d(e,"e",(function(){return st})),n.d(e,"g",(function(){return lt})),n.d(e,"j",(function(){return ut})),n.d(e,"p",(function(){return ct})),n.d(e,"I",(function(){return ht})),n.d(e,"a",(function(){return pt}));var i=n("726e"),r=C(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),o=C(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),a=Object.prototype.toString,s=Array.prototype,l=s.forEach,u=s.filter,c=s.slice,h=s.map,p=function(){}.constructor,f=p?p.prototype:null,d="__proto__",g=2311;function v(){return g++}function y(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!==typeof console&&console.error.apply(console,t)}function m(t){if(null==t||"object"!==typeof t)return t;var e=t,n=a.call(t);if("[object Array]"===n){if(!et(t)){e=[];for(var i=0,s=t.length;i<s;i++)e[i]=m(t[i])}}else if(o[n]){if(!et(t)){var l=t.constructor;if(l.from)e=l.from(t);else{e=new l(t.length);for(i=0,s=t.length;i<s;i++)e[i]=t[i]}}}else if(!r[n]&&!et(t)&&!V(t))for(var u in e={},t)t.hasOwnProperty(u)&&u!==d&&(e[u]=m(t[u]));return e}function _(t,e,n){if(!E(e)||!E(t))return n?m(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==d){var r=t[i],o=e[i];!E(o)||!E(r)||L(o)||L(r)||V(o)||V(r)||F(o)||F(r)||et(o)||et(r)?!n&&i in t||(t[i]=m(e[i])):_(r,o,n)}return t}function x(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==d&&(t[n]=e[n]);return t}function b(t,e,n){for(var i=D(e),r=0,o=i.length;r<o;r++){var a=i[r];(n?null!=e[a]:null==t[a])&&(t[a]=e[a])}return t}i["c"].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 S(t,e){var n=t.prototype;function i(){}for(var r in i.prototype=e.prototype,t.prototype=new i,n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}function O(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else b(t,e,n)}function T(t){return!!t&&("string"!==typeof t&&"number"===typeof t.length)}function k(t,e,n){if(t&&e)if(t.forEach&&t.forEach===l)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function M(t,e,n){if(!t)return[];if(!e)return Z(t);if(t.map&&t.map===h)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}function C(t,e,n,i){if(t&&e){for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function I(t,e,n){if(!t)return[];if(!e)return Z(t);if(t.filter&&t.filter===u)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function D(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function j(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)))}}var A=f&&R(f.bind)?f.call.bind(f.bind):j;function P(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 L(t){return Array.isArray?Array.isArray(t):"[object Array]"===a.call(t)}function R(t){return"function"===typeof t}function z(t){return"string"===typeof t}function N(t){return"[object String]"===a.call(t)}function B(t){return"number"===typeof t}function E(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function F(t){return!!r[a.call(t)]}function H(t){return!!o[a.call(t)]}function V(t){return"object"===typeof t&&"number"===typeof t.nodeType&&"object"===typeof t.ownerDocument}function G(t){return null!=t.colorStops}function W(t){return null!=t.image}function U(t){return t!==t}function q(){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 X(t,e){return null!=t?t:e}function Y(t,e,n){return null!=t?t:null!=e?e:n}function Z(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return c.apply(t,e)}function K(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 Q(t,e){if(!t)throw new Error(e)}function $(t){return null==t?null:"function"===typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var J="__ec_primitive__";function tt(t){t[J]=!0}function et(t){return t[J]}var nt=function(){function t(){this.data={}}return t.prototype["delete"]=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return D(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),it="function"===typeof Map;function rt(){return it?new Map:new nt}var ot=function(){function t(e){var n=L(e);this.data=rt();var i=this;function r(t,e){n?i.set(t,e):i.set(e,t)}e instanceof t?e.each(r):e&&k(e,r)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach((function(n,i){t.call(e,n,i)}))},t.prototype.keys=function(){var t=this.data.keys();return it?Array.from(t):t},t.prototype.removeKey=function(t){this.data["delete"](t)},t}();function at(t){return new ot(t)}function st(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n}function lt(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&x(n,e),n}function ut(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function ct(t,e){return t.hasOwnProperty(e)}function ht(){}var pt=180/Math.PI},"726e":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return h})),n.d(e,"d",(function(){return p}));var i=12,r="sans-serif",o=i+"px "+r,a=20,s=100,l="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function u(t){var e={};if("undefined"===typeof JSON)return e;for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-a)/s;e[i]=r}return e}var c=u(l),h={createCanvas:function(){return"undefined"!==typeof document&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,r){if(!t){var a=h.createCanvas();t=a&&a.getContext("2d")}if(t)return e!==r&&(e=t.font=r||o),t.measureText(n);n=n||"",r=r||o;var s=/((?:\d+)?\.?\d*)px/.exec(r),l=s&&+s[1]||i,u=0;if(r.indexOf("mono")>=0)u=l*n.length;else for(var p=0;p<n.length;p++){var f=c[n[p]];u+=null==f?l:f*l}return{width:u}}}(),loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}};function p(t){for(var e in h)t[e]&&(h[e]=t[e])}},"7a29":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a}));var i=n("6d8b"),r=(n("41ef"),n("22d1"));Math.round;function o(t){return"linear"===t.type}function a(t){return"radial"===t.type}(function(){r["a"].hasGlobalWindow&&Object(i["v"])(window.btoa)})()}).call(this,n("b639").Buffer)},d51b:function(t,e,n){"use strict";var i=function(){function t(t){this.value=t}return t}(),r=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new i(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.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--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),o=function(){function t(t){this._list=new r,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,r=this._map,o=null;if(null==r[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new i(e),s.key=t,n.insertEntry(s),r[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();e["a"]=o},f85a:function(t,e,n){"use strict";n.r(e);var i={};n.r(i),n.d(i,"updateProps",(function(){return Sl})),n.d(i,"initProps",(function(){return Ol})),n.d(i,"removeElement",(function(){return kl})),n.d(i,"removeElementWithFadeOut",(function(){return Cl})),n.d(i,"isElementRemoved",(function(){return Tl})),n.d(i,"extendShape",(function(){return kg})),n.d(i,"extendPath",(function(){return Cg})),n.d(i,"registerShape",(function(){return Ig})),n.d(i,"getShapeClass",(function(){return Dg})),n.d(i,"makePath",(function(){return jg})),n.d(i,"makeImage",(function(){return Ag})),n.d(i,"mergePath",(function(){return Lg})),n.d(i,"resizePath",(function(){return Rg})),n.d(i,"subPixelOptimizeLine",(function(){return zg})),n.d(i,"subPixelOptimizeRect",(function(){return Ng})),n.d(i,"subPixelOptimize",(function(){return Bg})),n.d(i,"getTransform",(function(){return Eg})),n.d(i,"applyTransform",(function(){return Fg})),n.d(i,"transformDirection",(function(){return Hg})),n.d(i,"groupTransition",(function(){return Wg})),n.d(i,"clipPointsByRect",(function(){return Ug})),n.d(i,"clipRectByRect",(function(){return qg})),n.d(i,"createIcon",(function(){return Xg})),n.d(i,"linePolygonIntersect",(function(){return Yg})),n.d(i,"lineLineIntersect",(function(){return Zg})),n.d(i,"setTooltipConfig",(function(){return $g})),n.d(i,"traverseElements",(function(){return tv})),n.d(i,"Group",(function(){return _i})),n.d(i,"Image",(function(){return La})),n.d(i,"Text",(function(){return ss})),n.d(i,"Circle",(function(){return gd})),n.d(i,"Ellipse",(function(){return md})),n.d(i,"Sector",(function(){return zd})),n.d(i,"Ring",(function(){return Ed})),n.d(i,"Polygon",(function(){return Wd})),n.d(i,"Polyline",(function(){return Xd})),n.d(i,"Rect",(function(){return Ga})),n.d(i,"Line",(function(){return Qd})),n.d(i,"BezierCurve",(function(){return ng})),n.d(i,"Arc",(function(){return og})),n.d(i,"IncrementalDisplayable",(function(){return wg})),n.d(i,"CompoundPath",(function(){return sg})),n.d(i,"LinearGradient",(function(){return hg})),n.d(i,"RadialGradient",(function(){return fg})),n.d(i,"BoundingRect",(function(){return Ot})),n.d(i,"OrientedBoundingRect",(function(){return _g})),n.d(i,"Point",(function(){return dt})),n.d(i,"Path",(function(){return ka}));n("b0c0");var r=function(){var t=this,e=t._self._c;return e("d2-container",[e("div",{staticClass:"page-header"},[e("el-avatar",{staticClass:"user-avatar",attrs:{src:"https://q1.qlogo.cn/g?b=qq&nk=190848757&s=640"}}),e("div",{staticClass:"title"},[e("h1",[t._v("早安, 开始您一天的工作吧!")]),e("span",[t._v(" 今日晴,20℃ - 32℃! ")])])],1),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("div",{staticClass:"grid-content bg-purple"},[e("el-card",{staticClass:"box-card"},[e("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e("span",[t._v("快捷导航")])]),e("el-row",t._l(t.navigators,(function(n,i){var r=n.name,o=n.icon,a=n.route,s=n.color;return e("el-col",{key:i,staticStyle:{padding:"0"},attrs:{span:8}},[e("el-card",{attrs:{shadow:"hover"}},[e("div",{staticStyle:{display:"flex","align-items":"center","flex-direction":"column",cursor:"pointer"},on:{click:function(){t.gotoRoute(a)}}},[e("d2-icon-svg",{staticStyle:{width:"25px",height:"25px"},style:{fill:s},attrs:{name:o}}),e("div",{staticStyle:{"text-align":"center","font-size":"12px","margin-top":"20px"},domProps:{textContent:t._s(r)}})],1)])],1)})),1)],1),e("el-card",{staticClass:"box-card",staticStyle:{"margin-top":"25px"}},[e("div",{staticClass:"work"},[e("d2-icon-svg",{staticStyle:{"margin-left":"50%",transform:"translateX(-50%)",height:"216px"},attrs:{name:"work"}})],1)])],1)])],1)],1)},o=[],a=(n("14d9"),function(t,e){return a=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])},a(t,e)});function s(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}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;var l=n("22d1"),u=n("6d8b");function c(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function h(t){return[t[0],t[1]]}function p(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function f(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function d(t){return Math.sqrt(g(t))}function g(t){return t[0]*t[0]+t[1]*t[1]}function v(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function y(t,e){var n=d(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function m(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var _=m;function x(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var b=x;function w(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 S(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function O(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function T(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var k=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),M=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){var e=t.target;while(e&&!e.draggable)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new k(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new k(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new k(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new k(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new k(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new k(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),C=M,I=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"===typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;var s={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.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=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.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],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e);break}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.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],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1));break}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}(),D=I,j=Math.log(2);function A(t,e,n,i,r,o){var a=i+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/j);return t[n][l]}var u=i|1<<n,c=n+1;while(i&1<<c)c++;for(var h=0,p=0,f=0;p<s;p++){var d=1<<p;d&r||(h+=(f%2?-1:1)*t[n][p]*A(t,e-1,c,u,r|d,o),f++)}return o[a]=h,h}function P(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=A(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*A(n,7,0===a?1:0,1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}var L="___zrEVENTSAVED",R=[];function z(t,e,n,i,r){return N(R,e,i,r,!0)&&N(t,n,R[0],R[1])}function N(t,e,n,i,r){if(e.getBoundingClientRect&&l["a"].domSupported&&!F(e)){var o=e[L]||(e[L]={}),a=B(e,o),s=E(a,o,r);if(s)return s(t,n,i),!0}return!1}function B(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>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",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function E(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,p=c.left,f=c.top;a.push(p,f),l=l&&o&&p===o[h]&&f===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?P(s,a):P(a,s))}function F(t){return"CANVAS"===t.nodeName.toUpperCase()}var H=/([&<>"'])/g,V={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function G(t){return null==t?"":(t+"").replace(H,(function(t,e){return V[e]}))}var W=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,U=[],q=l["a"].browser.firefox&&+l["a"].browser.version.split(".")[0]<39;function X(t,e,n,i){return n=n||{},i?Y(t,e,n):q&&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):Y(t,e,n),n}function Y(t,e,n){if(l["a"].domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(F(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(N(U,t,i,r))return n.zrX=U[0],void(n.zrY=U[1])}n.zrX=n.zrY=0}function Z(t){return t||window.event}function K(t,e,n){if(e=Z(e),null!=e.zrX)return e;var i=e.type,r=i&&i.indexOf("touch")>=0;if(r){var o="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];o&&X(t,o,e,n)}else{X(t,e,e,n);var a=Q(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&W.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function Q(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;if(null==n||null==i)return e;var r=0!==i?Math.abs(i):Math.abs(n),o=i>0?-1:i<0?1:n>0?-1:1;return 3*r*o}function $(t,e,n,i){t.addEventListener(e,n,i)}function J(t,e,n,i){t.removeEventListener(e,n,i)}var tt=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};var et=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],l=X(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in rt)if(rt.hasOwnProperty(e)){var n=rt[e](this._track,t);if(n)return n}},t}();function nt(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function it(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var rt={pinch:function(t,e){var n=t.length;if(n){var i=(t[n-1]||{}).points,r=(t[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var o=nt(i)/nt(r);!isFinite(o)&&(o=1),e.pinchScale=o;var a=it(i);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}};function ot(){return[1,0,0,1,0,0]}function at(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function st(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 lt(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function ut(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 ct(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(n),h=Math.cos(n);return t[0]=r*h+s*c,t[1]=-r*c+s*h,t[2]=o*h+l*c,t[3]=-o*c+h*l,t[4]=h*(a-i[0])+c*(u-i[1])+i[0],t[5]=h*(u-i[1])-c*(a-i[0])+i[1],t}function ht(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function pt(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}var ft=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.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}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}(),dt=ft,gt=Math.min,vt=Math.max,yt=new dt,mt=new dt,_t=new dt,xt=new dt,bt=new dt,wt=new dt,St=function(){function t(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}return t.prototype.union=function(t){var e=gt(t.x,this.x),n=gt(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=vt(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=vt(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=ot();return ut(r,r,[-e.x,-e.y]),ht(r,r,[n,i]),ut(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,c=e.y,h=e.y+e.height,p=!(o<l||u<r||s<c||h<a);if(n){var f=1/0,d=0,g=Math.abs(o-l),v=Math.abs(u-r),y=Math.abs(s-c),m=Math.abs(h-a),_=Math.min(g,v),x=Math.min(y,m);o<l||u<r?_>d&&(d=_,g<v?dt.set(wt,-g,0):dt.set(wt,v,0)):_<f&&(f=_,g<v?dt.set(bt,g,0):dt.set(bt,-v,0)),s<c||h<a?x>d&&(d=x,y<m?dt.set(wt,0,-y):dt.set(wt,0,m)):_<f&&(f=_,y<m?dt.set(bt,0,y):dt.set(bt,0,-m))}return n&&dt.copy(n,p?bt:wt),p},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}yt.x=_t.x=n.x,yt.y=xt.y=n.y,mt.x=xt.x=n.x+n.width,mt.y=_t.y=n.y+n.height,yt.transform(i),xt.transform(i),mt.transform(i),_t.transform(i),e.x=gt(yt.x,mt.x,_t.x,xt.x),e.y=gt(yt.y,mt.y,_t.y,xt.y);var l=vt(yt.x,mt.x,_t.x,xt.x),u=vt(yt.y,mt.y,_t.y,xt.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),Ot=St,Tt="silent";function kt(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.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:Mt}}function Mt(){tt(this.event)}var Ct=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return s(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(D),It=function(){function t(t,e){this.x=t,this.y=e}return t}(),Dt=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],jt=new Ot(0,0,0,0),At=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new It(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new Ct,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new C(a),a}return s(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(u["k"](Dt,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=Rt(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var a=this._hovered=i?new It(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.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})},e.prototype.resize=function(){this._hovered=new It(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){t=t||{};var i=t.target;if(!i||!i.silent){var r="on"+e,o=kt(e,t,n);while(i)if(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"===typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new It(t,e);if(Lt(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Ot(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var c=i[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(jt.copy(c.getBoundingRect()),c.transform&&jt.applyTransform(c.transform),jt.intersect(l)&&o.push(c))}if(o.length)for(var h=4,p=Math.PI/12,f=2*Math.PI,d=0;d<s;d+=h)for(var g=0;g<f;g+=p){var v=t+d*Math.cos(g),y=e+d*Math.sin(g);if(Lt(o,r,v,y,n),r.target)return r}}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new et);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new It;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(D);function Pt(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){var i=t,r=void 0,o=!1;while(i){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1}i.silent&&(r=!0);var s=i.__hostTarget;i=s||i.parent}return!r||Tt}return!1}function Lt(t,e,n,i,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=Pt(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==Tt)){e.target=a;break}}}function Rt(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}u["k"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){At.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=Rt(this,r,o);if("mouseup"===t&&a||(n=this.findHover(r,o),i=n.target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||_(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var zt=At,Nt=32,Bt=7;function Et(t){var e=0;while(t>=Nt)e|=1&t,t>>=1;return t+e}function Ft(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){while(r<n&&i(t[r],t[r-1])<0)r++;Ht(t,e,r)}else while(r<n&&i(t[r],t[r-1])>=0)r++;return r-e}function Ht(t,e,n){n--;while(e<n){var i=t[e];t[e++]=t[n],t[n--]=i}}function Vt(t,e,n,i,r){for(i===e&&i++;i<n;i++){var o,a=t[i],s=e,l=i;while(s<l)o=s+l>>>1,r(a,t[o])<0?l=o:s=o+1;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:while(u>0)t[s+u]=t[s+u-1],u--}t[s]=a}}function Gt(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){s=i-r;while(l<s&&o(t,e[n+r+l])>0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{s=r+1;while(l<s&&o(t,e[n+r-l])<=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}a++;while(a<l){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function Wt(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){s=r+1;while(l<s&&o(t,e[n+r-l])<0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{s=i-r;while(l<s&&o(t,e[n+r+l])>=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}a++;while(a<l){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function Ut(t,e){var n,i,r=Bt,o=0,a=[];function s(t,e){n[o]=t,i[o]=e,o+=1}function l(){while(o>1){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]<i[t+1]&&t--;else if(i[t]>i[t+1])break;c(t)}}function u(){while(o>1){var t=o-2;t>0&&i[t-1]<i[t+1]&&t--,c(t)}}function c(r){var a=n[r],s=i[r],l=n[r+1],u=i[r+1];i[r]=s+u,r===o-3&&(n[r+1]=n[r+2],i[r+1]=i[r+2]),o--;var c=Wt(t[l],t,a,s,0,e);a+=c,s-=c,0!==s&&(u=Gt(t[a+s-1],t,l,u,u-1,e),0!==u&&(s<=u?h(a,s,l,u):p(a,s,l,u)))}function h(n,i,o,s){var l=0;for(l=0;l<i;l++)a[l]=t[n+l];var u=0,c=o,h=n;if(t[h++]=t[c++],0!==--s)if(1!==i){var p,f,d,g=r;while(1){p=0,f=0,d=!1;do{if(e(t[c],a[u])<0){if(t[h++]=t[c++],f++,p=0,0===--s){d=!0;break}}else if(t[h++]=a[u++],p++,f=0,1===--i){d=!0;break}}while((p|f)<g);if(d)break;do{if(p=Wt(t[c],a,u,i,0,e),0!==p){for(l=0;l<p;l++)t[h+l]=a[u+l];if(h+=p,u+=p,i-=p,i<=1){d=!0;break}}if(t[h++]=t[c++],0===--s){d=!0;break}if(f=Gt(a[u],t,c,s,0,e),0!==f){for(l=0;l<f;l++)t[h+l]=t[c+l];if(h+=f,c+=f,s-=f,0===s){d=!0;break}}if(t[h++]=a[u++],1===--i){d=!0;break}g--}while(p>=Bt||f>=Bt);if(d)break;g<0&&(g=0),g+=2}if(r=g,r<1&&(r=1),1===i){for(l=0;l<s;l++)t[h+l]=t[c+l];t[h+s]=a[u]}else{if(0===i)throw new Error;for(l=0;l<i;l++)t[h+l]=a[u+l]}}else{for(l=0;l<s;l++)t[h+l]=t[c+l];t[h+s]=a[u]}else for(l=0;l<i;l++)t[h+l]=a[u+l]}function p(n,i,o,s){var l=0;for(l=0;l<s;l++)a[l]=t[o+l];var u=n+i-1,c=s-1,h=o+s-1,p=0,f=0;if(t[h--]=t[u--],0!==--i)if(1!==s){var d=r;while(1){var g=0,v=0,y=!1;do{if(e(a[c],t[u])<0){if(t[h--]=t[u--],g++,v=0,0===--i){y=!0;break}}else if(t[h--]=a[c--],v++,g=0,1===--s){y=!0;break}}while((g|v)<d);if(y)break;do{if(g=i-Wt(a[c],t,n,i,i-1,e),0!==g){for(h-=g,u-=g,i-=g,f=h+1,p=u+1,l=g-1;l>=0;l--)t[f+l]=t[p+l];if(0===i){y=!0;break}}if(t[h--]=a[c--],1===--s){y=!0;break}if(v=s-Gt(t[u],a,0,s,s-1,e),0!==v){for(h-=v,c-=v,s-=v,f=h+1,p=c+1,l=0;l<v;l++)t[f+l]=a[p+l];if(s<=1){y=!0;break}}if(t[h--]=t[u--],0===--i){y=!0;break}d--}while(g>=Bt||v>=Bt);if(y)break;d<0&&(d=0),d+=2}if(r=d,r<1&&(r=1),1===s){for(h-=i,u-=i,f=h+1,p=u+1,l=i-1;l>=0;l--)t[f+l]=t[p+l];t[h]=a[c]}else{if(0===s)throw new Error;for(p=h-(s-1),l=0;l<s;l++)t[p+l]=a[l]}}else{for(h-=i,u-=i,f=h+1,p=u+1,l=i-1;l>=0;l--)t[f+l]=t[p+l];t[h]=a[c]}else for(p=h-(s-1),l=0;l<s;l++)t[p+l]=a[l]}return n=[],i=[],{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function qt(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(r<2)){var o=0;if(r<Nt)return o=Ft(t,n,i,e),void Vt(t,n,i,n+o,e);var a=Ut(t,e),s=Et(r);do{if(o=Ft(t,n,i,e),o<s){var l=r;l>s&&(l=s),Vt(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}var Xt=1,Yt=2,Zt=4,Kt=!1;function Qt(){Kt||(Kt=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function $t(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Jt,te=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=$t}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,qt(n,$t)},t.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():[];var r=i,o=t;while(r)r.parent=o,r.updateTransform(),e.push(r),o=r,r=r.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=Xt),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(Qt(),u.z=0),isNaN(u.z2)&&(Qt(),u.z2=0),isNaN(u.zlevel)&&(Qt(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=u["q"](this._roots,t);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),ee=te;Jt=l["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var ne=Jt,ie={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,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i))},elasticOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-ie.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*ie.bounceIn(2*t):.5*ie.bounceOut(2*t-1)+.5}},re=ie,oe=Math.pow,ae=Math.sqrt,se=1e-8,le=1e-4,ue=ae(3),ce=1/3,he=c(),pe=c(),fe=c();function de(t){return t>-se&&t<se}function ge(t){return t>se||t<-se}function ve(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function ye(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function me(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,c=s*s-3*a*l,h=s*l-9*a*u,p=l*l-3*s*u,f=0;if(de(c)&&de(h))if(de(s))o[0]=0;else{var d=-l/s;d>=0&&d<=1&&(o[f++]=d)}else{var g=h*h-4*c*p;if(de(g)){var v=h/c,y=(d=-s/a+v,-v/2);d>=0&&d<=1&&(o[f++]=d),y>=0&&y<=1&&(o[f++]=y)}else if(g>0){var m=ae(g),_=c*s+1.5*a*(-h+m),x=c*s+1.5*a*(-h-m);_=_<0?-oe(-_,ce):oe(_,ce),x=x<0?-oe(-x,ce):oe(x,ce);d=(-s-(_+x))/(3*a);d>=0&&d<=1&&(o[f++]=d)}else{var b=(2*c*s-3*a*h)/(2*ae(c*c*c)),w=Math.acos(b)/3,S=ae(c),O=Math.cos(w),T=(d=(-s-2*S*O)/(3*a),y=(-s+S*(O+ue*Math.sin(w)))/(3*a),(-s+S*(O-ue*Math.sin(w)))/(3*a));d>=0&&d<=1&&(o[f++]=d),y>=0&&y<=1&&(o[f++]=y),T>=0&&T<=1&&(o[f++]=T)}}return f}function _e(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(de(a)){if(ge(o)){var u=-s/o;u>=0&&u<=1&&(r[l++]=u)}}else{var c=o*o-4*a*s;if(de(c))r[0]=-o/(2*a);else if(c>0){var h=ae(c),p=(u=(-o+h)/(2*a),(-o-h)/(2*a));u>=0&&u<=1&&(r[l++]=u),p>=0&&p<=1&&(r[l++]=p)}}return l}function xe(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function be(t,e,n,i,r,o,a,s,l,u,c){var h,p,f,d,g,v=.005,y=1/0;he[0]=l,he[1]=u;for(var m=0;m<1;m+=.05)pe[0]=ve(t,n,r,a,m),pe[1]=ve(e,i,o,s,m),d=b(he,pe),d<y&&(h=m,y=d);y=1/0;for(var _=0;_<32;_++){if(v<le)break;p=h-v,f=h+v,pe[0]=ve(t,n,r,a,p),pe[1]=ve(e,i,o,s,p),d=b(pe,he),p>=0&&d<y?(h=p,y=d):(fe[0]=ve(t,n,r,a,f),fe[1]=ve(e,i,o,s,f),g=b(fe,he),f<=1&&g<y?(h=f,y=g):v*=.5)}return c&&(c[0]=ve(t,n,r,a,h),c[1]=ve(e,i,o,s,h)),ae(y)}function we(t,e,n,i,r,o,a,s,l){for(var u=t,c=e,h=0,p=1/l,f=1;f<=l;f++){var d=f*p,g=ve(t,n,r,a,d),v=ve(e,i,o,s,d),y=g-u,m=v-c;h+=Math.sqrt(y*y+m*m),u=g,c=v}return h}function Se(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function Oe(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function Te(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(de(o)){if(ge(a)){var u=-s/a;u>=0&&u<=1&&(r[l++]=u)}}else{var c=a*a-4*o*s;if(de(c)){u=-a/(2*o);u>=0&&u<=1&&(r[l++]=u)}else if(c>0){var h=ae(c),p=(u=(-a+h)/(2*o),(-a-h)/(2*o));u>=0&&u<=1&&(r[l++]=u),p>=0&&p<=1&&(r[l++]=p)}}return l}function ke(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function Me(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function Ce(t,e,n,i,r,o,a,s,l){var u,c=.005,h=1/0;he[0]=a,he[1]=s;for(var p=0;p<1;p+=.05){pe[0]=Se(t,n,r,p),pe[1]=Se(e,i,o,p);var f=b(he,pe);f<h&&(u=p,h=f)}h=1/0;for(var d=0;d<32;d++){if(c<le)break;var g=u-c,v=u+c;pe[0]=Se(t,n,r,g),pe[1]=Se(e,i,o,g);f=b(pe,he);if(g>=0&&f<h)u=g,h=f;else{fe[0]=Se(t,n,r,v),fe[1]=Se(e,i,o,v);var y=b(fe,he);v<=1&&y<h?(u=v,h=y):c*=.5}}return l&&(l[0]=Se(t,n,r,u),l[1]=Se(e,i,o,u)),ae(h)}function Ie(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var p=h*c,f=Se(t,n,r,p),d=Se(e,i,o,p),g=f-s,v=d-l;u+=Math.sqrt(g*g+v*v),s=f,l=d}return u}var De=/cubic-bezier\(([0-9,\.e ]+)\)/;function je(t){var e=t&&De.exec(t);if(e){var n=e[1].split(","),i=+Object(u["Q"])(n[0]),r=+Object(u["Q"])(n[1]),o=+Object(u["Q"])(n[2]),a=+Object(u["Q"])(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:me(0,i,o,1,t,s)&&ve(0,r,a,1,s[0])}}}var Ae=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||u["I"],this.ondestroy=t.ondestroy||u["I"],this.onrestart=t.onrestart||u["I"],t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Object(u["v"])(t)?t:re[t]||je(t)},t}(),Pe=Ae,Le=n("41ef"),Re=n("7a29"),ze=Array.prototype.slice;function Ne(t,e,n){return(e-t)*n+t}function Be(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=Ne(e[o],n[o],i);return t}function Ee(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=Ne(e[a][s],n[a][s],i)}return t}function Fe(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function He(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function Ve(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function Ge(t,e,n){var i=t,r=e;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a){var s=o>a;if(s)i.length=a;else for(var l=o;l<a;l++)i.push(1===n?r[l]:ze.call(r[l]))}var u=i[0]&&i[0].length;for(l=0;l<i.length;l++)if(1===n)isNaN(i[l])&&(i[l]=r[l]);else for(var c=0;c<u;c++)isNaN(i[l][c])&&(i[l][c]=r[l][c])}}function We(t){if(Object(u["t"])(t)){var e=t.length;if(Object(u["t"])(t[0])){for(var n=[],i=0;i<e;i++)n.push(ze.call(t[i]));return n}return ze.call(t)}return t}function Ue(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function qe(t){return Object(u["t"])(t&&t[0])?2:1}var Xe=0,Ye=1,Ze=2,Ke=3,Qe=4,$e=5,Je=6;function tn(t){return t===Qe||t===$e}function en(t){return t===Ye||t===Ze}var nn=[0,0,0,0],rn=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=Je,s=e;if(Object(u["t"])(e)){var l=qe(e);a=l,(1===l&&!Object(u["y"])(e[0])||2===l&&!Object(u["y"])(e[0][0]))&&(o=!0)}else if(Object(u["y"])(e)&&!Object(u["l"])(e))a=Xe;else if(Object(u["A"])(e))if(isNaN(+e)){var c=Le["c"](e);c&&(s=c,a=Ke)}else a=Xe;else if(Object(u["w"])(e)){var h=Object(u["m"])({},s);h.colorStops=Object(u["F"])(e.colorStops,(function(t){return{offset:t.offset,color:Le["c"](t.color)}})),Object(Re["a"])(e)?a=Qe:Object(Re["b"])(e)&&(a=$e),s=h}0===r?this.valType=a:a===this.valType&&a!==Je||(o=!0),this.discrete=this.discrete||o;var p={time:t,value:s,rawValue:e,percent:0};return n&&(p.easing=n,p.easingFunc=Object(u["v"])(n)?n:re[n]||je(n)),i.push(p),p},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=en(i),l=tn(i),u=0;u<r;u++){var c=n[u],h=c.value,p=o.value;c.percent=c.time/t,a||(s&&u!==r-1?Ge(h,p,i):l&&Ve(h.colorStops,p.colorStops))}if(!a&&i!==$e&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;var f=n[0].value;for(u=0;u<r;u++)i===Xe?n[u].additiveValue=n[u].value-f:i===Ke?n[u].additiveValue=Fe([],n[u].value,f,-1):en(i)&&(n[u].additiveValue=i===Ye?Fe([],n[u].value,f,-1):He([],n[u].value,f,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,c=l.length,h=this.propName,p=s===Ke,f=this._lastFr,d=Math.min;if(1===c)i=r=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){var g=d(f+1,c-1);for(n=g;n>=0;n--)if(l[n].percent<=e)break;n=d(n,c-2)}else{for(n=f;n<c;n++)if(l[n].percent>e)break;n=d(n-1,c-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var v=r.percent-i.percent,y=0===v?1:d((e-i.percent)/v,1);r.easingFunc&&(y=r.easingFunc(y));var m=o?this._additiveValue:p?nn:t[h];if(!en(s)&&!p||m||(m=this._additiveValue=[]),this.discrete)t[h]=y<1?i.rawValue:r.rawValue;else if(en(s))s===Ye?Be(m,i[a],r[a],y):Ee(m,i[a],r[a],y);else if(tn(s)){var _=i[a],x=r[a],b=s===Qe;t[h]={type:b?"linear":"radial",x:Ne(_.x,x.x,y),y:Ne(_.y,x.y,y),colorStops:Object(u["F"])(_.colorStops,(function(t,e){var n=x.colorStops[e];return{offset:Ne(t.offset,n.offset,y),color:Ue(Be([],t.color,n.color,y))}})),global:x.global},b?(t[h].x2=Ne(_.x2,x.x2,y),t[h].y2=Ne(_.y2,x.y2,y)):t[h].r=Ne(_.r,x.r,y)}else if(p)Be(m,i[a],r[a],y),o||(t[h]=Ue(m));else{var w=Ne(i[a],r[a],y);o?this._additiveValue=w:t[h]=w}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===Xe?t[n]=t[n]+i:e===Ke?(Le["c"](t[n],nn),Fe(nn,nn,i,1),t[n]=Ue(nn)):e===Ye?Fe(t[n],t[n],i,1):e===Ze&&He(t[n],t[n],i,1)},t}(),on=function(){function t(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?Object(u["E"])("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Object(u["D"])(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o],s=r[a];if(!s){s=r[a]=new rn(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,h=c[c.length-1];l=h&&h.value,u.valType===Ke&&l&&(l=Ue(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,We(l),i),this._trackKeys.push(a)}s.addKeyframe(t,We(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.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)},t.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)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(i,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(e._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var h=new Pe({life:i,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var i=e._additiveAnimators;if(i){for(var r=!1,o=0;o<i.length;o++)if(i[o]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return Object(u["F"])(this._trackKeys,(function(e){return t._tracks[e]}))},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[r]=We(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||Object(u["D"])(t);for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}(),an=on;function sn(){return(new Date).getTime()}var ln=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return s(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){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=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){var e=sn()-this._pausedTime,n=e-this._time,i=this._head;while(i){var r=i.next,o=i.step(e,n);o?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;function e(){t._running&&(ne(e),!t._paused&&t.update())}this._running=!0,ne(e)},e.prototype.start=function(){this._running||(this._time=sn(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=sn(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=sn()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){var t=this._head;while(t){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new an(t,e.loop);return this.addAnimator(n),n},e}(D),un=ln,cn=300,hn=l["a"].domSupported,pn=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=u["F"](t,(function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t}));return{mouse:t,touch:e,pointer:i}}(),fn={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},dn=!1;function gn(t){var e=t.pointerType;return"pen"===e||"touch"===e}function vn(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}function yn(t){t&&(t.zrByTouch=!0)}function mn(t,e){return K(t.dom,new xn(t,e),!0)}function _n(t,e){var n=e,i=!1;while(n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot))n=n.parentNode;return i}var xn=function(){function t(t,e){this.stopPropagation=u["I"],this.stopImmediatePropagation=u["I"],this.preventDefault=u["I"],this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),bn={mousedown:function(t){t=K(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=K(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=K(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=K(this.dom,t);var e=t.toElement||t.relatedTarget;_n(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){dn=!0,t=K(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){dn||(t=K(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=K(this.dom,t),yn(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),bn.mousemove.call(this,t),bn.mousedown.call(this,t)},touchmove:function(t){t=K(this.dom,t),yn(t),this.handler.processGesture(t,"change"),bn.mousemove.call(this,t)},touchend:function(t){t=K(this.dom,t),yn(t),this.handler.processGesture(t,"end"),bn.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<cn&&bn.click.call(this,t)},pointerdown:function(t){bn.mousedown.call(this,t)},pointermove:function(t){gn(t)||bn.mousemove.call(this,t)},pointerup:function(t){bn.mouseup.call(this,t)},pointerout:function(t){gn(t)||bn.mouseout.call(this,t)}};u["k"](["click","dblclick","contextmenu"],(function(t){bn[t]=function(e){e=K(this.dom,e),this.trigger(t,e)}}));var wn={pointermove:function(t){gn(t)||wn.mousemove.call(this,t)},pointerup:function(t){wn.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 Sn(t,e){var n=e.domHandlers;l["a"].pointerEventsSupported?u["k"](pn.pointer,(function(i){Tn(e,i,(function(e){n[i].call(t,e)}))})):(l["a"].touchEventsSupported&&u["k"](pn.touch,(function(i){Tn(e,i,(function(r){n[i].call(t,r),vn(e)}))})),u["k"](pn.mouse,(function(i){Tn(e,i,(function(r){r=Z(r),e.touching||n[i].call(t,r)}))})))}function On(t,e){function n(n){function i(i){i=Z(i),_n(t,i.target)||(i=mn(t,i),e.domHandlers[n].call(t,i))}Tn(e,n,i,{capture:!0})}l["a"].pointerEventsSupported?u["k"](fn.pointer,n):l["a"].touchEventsSupported||u["k"](fn.mouse,n)}function Tn(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,$(t.domTarget,e,n,i)}function kn(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&J(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var Mn=function(){function t(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return t}(),Cn=function(t){function e(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new Mn(e,bn),hn&&(i._globalHandlerScope=new Mn(document,wn)),Sn(i,i._localHandlerScope),i}return s(e,t),e.prototype.dispose=function(){kn(this._localHandlerScope),hn&&kn(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,hn&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?On(this,e):kn(e)}},e}(D),In=Cn,Dn=1;l["a"].hasGlobalWindow&&(Dn=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var jn=Dn,An=.4,Pn="#333",Ln="#ccc",Rn="#eee",zn=at,Nn=5e-5;function Bn(t){return t>Nn||t<-Nn}var En=[],Fn=[],Hn=ot(),Vn=Math.abs,Gn=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return Bn(this.rotation)||Bn(this.x)||Bn(this.y)||Bn(this.scaleX-1)||Bn(this.scaleY-1)||Bn(this.skewX)||Bn(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||ot(),e?this.getLocalTransform(n):zn(n),t&&(e?lt(n,t,n):st(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(zn(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(En);var n=En[0]<0?-1:1,i=En[1]<0?-1:1,r=((En[0]-n)*e+n)/En[0]||0,o=((En[1]-i)*e+i)/En[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||ot(),pt(this.invTransform,t)},t.prototype.getComputedTransform=function(){var t=this,e=[];while(t)e.push(t),t=t.parent;while(t=e.pop())t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||ot(),lt(Fn,t.invTransform,e),e=Fn);var n=this.originX,i=this.originY;(n||i)&&(Hn[4]=n,Hn[5]=i,lt(Fn,e,Hn),Fn[4]-=n,Fn[5]-=i,e=Fn),this.setLocalTransform(e)}},t.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):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&S(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&S(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&Vn(t[0]-1)>1e-10&&Vn(t[3]-1)>1e-10?Math.sqrt(Vn(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){Un(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var f=n+a,d=i+s;e[4]=-f*r-h*d*o,e[5]=-d*o-p*f*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=p*r,e[2]=h*o,l&&ct(e,e,l),e[4]+=n+u,e[5]+=i+c,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Wn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Un(t,e){for(var n=0;n<Wn.length;n++){var i=Wn[n];t[i]=e[i]}}var qn=Gn,Xn=n("d51b"),Yn=n("726e"),Zn={};function Kn(t,e){e=e||Yn["a"];var n=Zn[e];n||(n=Zn[e]=new Xn["a"](500));var i=n.get(t);return null==i&&(i=Yn["c"].measureText(t,e).width,n.put(t,i)),i}function Qn(t,e,n,i){var r=Kn(t,e),o=ei(e),a=Jn(0,r,n),s=ti(0,o,i),l=new Ot(a,s,r,o);return l}function $n(t,e,n,i){var r=((t||"")+"").split("\n"),o=r.length;if(1===o)return Qn(r[0],e,n,i);for(var a=new Ot(0,0,0,0),s=0;s<r.length;s++){var l=Qn(r[s],e,n,i);0===s?a.copy(l):a.union(l)}return a}function Jn(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function ti(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function ei(t){return Kn("国",t)}function ni(t,e){return"string"===typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function ii(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(i instanceof Array)l+=ni(i[0],n.width),u+=ni(i[1],n.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var ri="__zr_normal__",oi=Wn.concat(["ignore"]),ai=Object(u["K"])(Wn,(function(t,e){return t[e]=!0,t}),{ignore:!1}),si={},li=new Ot(0,0,0,0),ui=function(){function t(t){this.id=Object(u["o"])(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(e),null!=n.position){var u=li;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(si,n,u):ii(si,n,u),r.x=si.x,r.y=si.y,o=si.align,a=si.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var h=void 0,p=void 0;"center"===c?(h=.5*u.width,p=.5*u.height):(h=ni(c[0],u.width),p=ni(c[1],u.height)),l=!0,r.originX=-r.x+h+(i?0:u.x),r.originY=-r.y+p+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var f=n.offset;f&&(r.x+=f[0],r.y+=f[1],l||(r.originX=-f[0],r.originY=-f[1]));var d=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,y=void 0,m=void 0;d&&this.canBeInsideText()?(v=n.insideFill,y=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=y&&"auto"!==y||(y=this.getInsideTextStroke(v),m=!0)):(v=n.outsideFill,y=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=y&&"auto"!==y||(y=this.getOutsideStroke(v),m=!0)),v=v||"#000",v===g.fill&&y===g.stroke&&m===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=y,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=Xt,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ln:Pn},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof e&&Object(Le["c"])(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,Object(Le["d"])(n,"rgba")},t.prototype.traverse=function(t,e){},t.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||{},Object(u["m"])(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"===typeof t)this.attrKV(t,e);else if(Object(u["z"])(t))for(var n=t,i=Object(u["D"])(n),r=0;r<i.length;r++){var o=i[r];this.attrKV(o,t[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!(i.getLoop()||r&&r!==ri)){var o=i.targetName,a=o?e[o]:e;i.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,oi)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(ri,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===ri,o=this.hasState();if(o||!r){var a=this.currentStates,s=this.stateTransition;if(!(Object(u["q"])(a,t)>=0)||!e&&1!==a.length){var l;if(this.stateProxy&&!r&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),l||r){r||this.saveCurrentToNormalState(l);var c=!!(l&&l.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var h=this._textContent,p=this._textGuide;return h&&h.useState(t,e,n,c),p&&p.useState(t,e,n,c),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Xt),l}Object(u["E"])("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&i.push(u)}var c=i[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(i),f=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(","),p,this._normalState,!1,!e&&!this.__inHover&&f&&f.duration>0,f);var d=this._textContent,g=this._textGuide;d&&d.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Xt)}else this.clearStates()},t.prototype.isSilent=function(){var t=this.silent,e=this.parent;while(!t&&e){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=Object(u["q"])(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=Object(u["q"])(i,t),o=Object(u["q"])(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];Object(u["m"])(n,r),r.textConfig&&(e=e||{},Object(u["m"])(e,r.textConfig))}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,i,r,o){var a=!(e&&i);e&&e.textConfig?(this.textConfig=Object(u["m"])({},i?this.textConfig:n.textConfig),Object(u["m"])(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,c=0;c<oi.length;c++){var h=oi[c],p=r&&ai[h];e&&null!=e[h]?p?(l=!0,s[h]=e[h]):this[h]=e[h]:a&&null!=n[h]&&(p?(l=!0,s[h]=n[h]):this[h]=n[h])}if(!r)for(c=0;c<this.animators.length;c++){var f=this.animators[c],d=f.targetName;f.getLoop()||f.__changeFinalValue(d?(e||n)[d]:e||n)}l&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new qn,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Object(u["m"])(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Xt;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.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)}},t.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)}},t.prototype.animate=function(t,e,n){var i=t?this[t]:this;var r=new an(i,e,n);return t&&(r.targetName=t),this.addAnimator(r,t),r},t.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during((function(){i.updateDuringAnimation(e)})).done((function(){var e=i.animators,n=Object(u["q"])(e,t);n>=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){ci(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){ci(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=ci(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=Xt;function n(t,n,i,r){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[r]},set:function(e){t[r]=e}})}Object.defineProperty(e,t,{get:function(){if(!this[n]){var t=this[n]=[];o(this,t)}return this[n]},set:function(t){this[i]=t[0],this[r]=t[1],this[n]=t,o(this,t)}})}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function ci(t,e,n,i,r){n=n||{};var o=[];vi(t,"",t,e,n,i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,a--,a<=0&&(s?l&&l():u&&u())},h=function(){a--,a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var p=0;p<o.length;p++){var f=o[p];c&&f.done(c),h&&f.aborted(h),n.force&&f.duration(n.duration),f.start(n.easing)}return o}function hi(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function pi(t){return Object(u["t"])(t[0])}function fi(t,e,n){if(Object(u["t"])(e[n]))if(Object(u["t"])(t[n])||(t[n]=[]),Object(u["C"])(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),hi(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(pi(r))for(var s=r[0].length,l=0;l<a;l++)o[l]?hi(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else hi(o,r,a);o.length=r.length}else t[n]=e[n]}function di(t,e){return t===e||Object(u["t"])(t)&&Object(u["t"])(e)&&gi(t,e)}function gi(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function vi(t,e,n,i,r,o,a,s){for(var l=Object(u["D"])(i),c=r.duration,h=r.delay,p=r.additive,f=r.setToFinal,d=!Object(u["z"])(o),g=t.animators,v=[],y=0;y<l.length;y++){var m=l[y],_=i[m];if(null!=_&&null!=n[m]&&(d||o[m]))if(!Object(u["z"])(_)||Object(u["t"])(_)||Object(u["w"])(_))v.push(m);else{if(e){s||(n[m]=_,t.updateDuringAnimation(e));continue}vi(t,m,n[m],_,r,o&&o[m],a,s)}else s||(n[m]=_,t.updateDuringAnimation(e),v.push(m))}var x=v.length;if(!p&&x)for(var b=0;b<g.length;b++){var w=g[b];if(w.targetName===e){var S=w.stopTracks(v);if(S){var O=Object(u["q"])(g,w);g.splice(O,1)}}}if(r.force||(v=Object(u["n"])(v,(function(t){return!di(i[t],n[t])})),x=v.length),x>0||r.force&&!a.length){var T=void 0,k=void 0,M=void 0;if(s){k={},f&&(T={});for(b=0;b<x;b++){m=v[b];k[m]=n[m],f?T[m]=i[m]:n[m]=i[m]}}else if(f){M={};for(b=0;b<x;b++){m=v[b];M[m]=We(n[m]),fi(n,i,m)}}w=new an(n,!1,!1,p?Object(u["n"])(g,(function(t){return t.targetName===e})):null);w.targetName=e,r.scope&&(w.scope=r.scope),f&&T&&w.whenWithKeys(0,T,v),M&&w.whenWithKeys(0,M,v),w.whenWithKeys(null==c?500:c,s?k:i,v).delay(h||0),t.addAnimator(w,e),a.push(w)}}Object(u["H"])(ui,D),Object(u["H"])(ui,qn);var yi=ui,mi=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return s(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=u["q"](this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=u["q"](n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.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},e.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(e)}},e.prototype.getBoundingRect=function(t){for(var e=new Ot(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(i);l?(Ot.applyTransform(e,s,l),r=r||e.clone(),r.union(e)):(r=r||s.clone(),r.union(s))}}return r||e},e}(yi);mi.prototype.type="group";var _i=mi,xi={},bi={};
  2. /*!
  3. * ZRender, a high performance 2d drawing library.
  4. *
  5. * Copyright (c) 2013, Baidu Inc.
  6. * All rights reserved.
  7. *
  8. * LICENSE
  9. * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
  10. */function wi(t){delete bi[t]}function Si(t){if(!t)return!1;if("string"===typeof t)return Object(Le["b"])(t,1)<An;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=Object(Le["b"])(e[r].color,1);return n/=i,n<An}return!1}var Oi=function(){function t(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 r=new ee,o=n.renderer||"canvas";xi[o]||(o=u["D"](xi)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new xi[o](e,r,n,t),s=n.ssr||a.ssrOnly;this.storage=r,this.painter=a;var c,h=l["a"].node||l["a"].worker||s?null:new In(a.getViewportRoot(),a.root),p=n.useCoarsePointer,f=null==p||"auto"===p?l["a"].touchEventsSupported:!!p,d=44;f&&(c=u["M"](n.pointerSize,d)),this.handler=new zt(r,a,h,a.root,c),this.animation=new un({stage:{update:s?null:function(){return i._flush(!0)}}}),s||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Si(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(t){var e,n=sn();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=sn();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof _i&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,wi(this.id))},t}();function Ti(t,e){var n=new Oi(u["o"](),t,e);return bi[n.id]=n,n}function ki(t,e){xi[t]=e}function Mi(t){t}var Ci=1e-4,Ii=20;function Di(t){return t.replace(/^\s+|\s+$/g,"")}function ji(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function Ai(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return u["A"](t)?Di(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function Pi(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),Ii),t=(+t).toFixed(e),n?t:+t}function Li(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return Ri(t)}function Ri(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function zi(t,e){var n=u["K"](t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];var i=Math.pow(10,e),r=u["F"](t,(function(t){return(isNaN(t)?0:t)/n*i*100})),o=100*i,a=u["F"](r,(function(t){return Math.floor(t)})),s=u["K"](a,(function(t,e){return t+e}),0),l=u["F"](r,(function(t,e){return t-a[e]}));while(s<o){for(var c=Number.NEGATIVE_INFINITY,h=null,p=0,f=l.length;p<f;++p)l[p]>c&&(c=l[p],h=p);++a[h],l[h]=0,++s}return u["F"](a,(function(t){return t/i}))}function Ni(t,e){var n=Math.max(Li(t),Li(e)),i=t+e;return n>Ii?i:Pi(i,n)}function Bi(t){var e=2*Math.PI;return(t%e+e)%e}function Ei(t){return t>-Ci&&t<Ci}var Fi=/^(?:(\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 Hi(t){if(t instanceof Date)return t;if(u["A"](t)){var e=Fi.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}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)}return null==t?new Date(NaN):new Date(Math.round(t))}function Vi(t){return Math.pow(10,Gi(t))}function Gi(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function Wi(t,e){var n,i=Gi(t),r=Math.pow(10,i),o=t/r;return n=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,t=n*r,i>=-20?+t.toFixed(i<0?-i:0):t}function Ui(t){var e=parseFloat(t);return e==t&&(0!==e||!u["A"](t)||t.indexOf("x")<=0)?e:NaN}function qi(t){return!isNaN(Ui(t))}function Xi(){return Math.round(9*Math.random())}function Yi(t,e){return 0===e?t:Yi(e,t%e)}function Zi(t,e){return null==t?e:null==e?t:t*e/Yi(t,e)}var Ki="series\0",Qi="\0_ec_\0";function $i(t){return t instanceof Array?t:null==t?[]:[t]}function Ji(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var tr=["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 er(t){return!Object(u["z"])(t)||Object(u["s"])(t)||t instanceof Date?t:t.value}function nr(t){return Object(u["z"])(t)&&!(t instanceof Array)}function ir(t,e,n){var i="normalMerge"===n,r="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=Object(u["f"])();Object(u["k"])(e,(function(t,n){Object(u["z"])(t)||(e[n]=null)}));var s=rr(t,a,n);return(i||r)&&or(s,t,a,e),i&&ar(s,e),i||r?sr(s,e,r):o&&lr(s,e),ur(s),s}function rr(t,e,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||dr(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}function or(t,e,n,i){Object(u["k"])(i,(function(r,o){if(r&&null!=r.id){var a=hr(r.id),s=n.get(a);if(null!=s){var l=t[s];Object(u["b"])(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=e[s],i[o]=null}}}))}function ar(t,e){Object(u["k"])(e,(function(n,i){if(n&&null!=n.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==n.id)&&!dr(n)&&!dr(o)&&cr("name",o,n))return t[r].newOption=n,void(e[i]=null)}}))}function sr(t,e,n){Object(u["k"])(e,(function(e){if(e){var i,r=0;while((i=t[r])&&(i.newOption||dr(i.existing)||i.existing&&null!=e.id&&!cr("id",e,i.existing)))r++;i?(i.newOption=e,i.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),r++}}))}function lr(t,e){Object(u["k"])(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}function ur(t){var e=Object(u["f"])();Object(u["k"])(t,(function(t){var n=t.existing;n&&e.set(n.id,t)})),Object(u["k"])(t,(function(t){var n=t.newOption;Object(u["b"])(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})})),Object(u["k"])(t,(function(t,n){var i=t.existing,r=t.newOption,o=t.keyInfo;if(Object(u["z"])(r)){if(o.name=null!=r.name?hr(r.name):i?i.name:Ki+n,i)o.id=hr(i.id);else if(null!=r.id)o.id=hr(r.id);else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(e.get(o.id))}e.set(o.id,t)}}))}function cr(t,e,n){var i=pr(e[t],null),r=pr(n[t],null);return null!=i&&null!=r&&i===r}function hr(t){return pr(t,"")}function pr(t,e){return null==t?e:Object(u["A"])(t)?t:Object(u["y"])(t)||Object(u["B"])(t)?t+"":e}function fr(t){var e=t.name;return!(!e||!e.indexOf(Ki))}function dr(t){return t&&null!=t.id&&0===hr(t.id).indexOf(Qi)}function gr(t,e,n){Object(u["k"])(t,(function(t){var i=t.newOption;Object(u["z"])(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=vr(e,i,t.existing,n))}))}function vr(t,e,n,i){var r=e.type?e.type:n?n.subType:i.determineSubType(t,e);return r}function yr(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?Object(u["s"])(e.dataIndex)?Object(u["F"])(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?Object(u["s"])(e.name)?Object(u["F"])(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function mr(){var t="__ec_inner_"+_r++;return function(e){return e[t]||(e[t]={})}}var _r=Xi();function xr(t,e,n){var i=br(e,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=a,l=n?n.defaultMainType:null;return!r&&l&&o.set(l,{}),o.each((function(e,i){var r=Sr(t,i,e,{useDefault:l===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});s[i+"Models"]=r.models,s[i+"Model"]=r.models[0]})),s}function br(t,e){var n;if(Object(u["A"])(t)){var i={};i[t+"Index"]=0,n=i}else n=t;var r=Object(u["f"])(),o={},a=!1;return Object(u["k"])(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&Object(u["q"])(e.includeMainTypes,s)<0)){a=a||!!s;var c=r.get(s)||r.set(s,{});c[l]=t}}else o[n]=t})),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var wr={useDefault:!0,enableAll:!1,enableNone:!1};function Sr(t,e,n,i){i=i||wr;var r=n.index,o=n.id,a=n.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===r||!1===r?(Object(u["b"])(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===r&&(Object(u["b"])(i.enableAll,'`"all"` is not a valid value on index option.'),r=o=a=null),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),s)}function Or(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function Tr(t){return"auto"===t?l["a"].domSupported?"html":"richText":t||"html"}var kr=".",Mr="___EC__COMPONENT__CONTAINER___",Cr="___EC__EXTENDED_CLASS___";function Ir(t){var e={main:"",sub:""};if(t){var n=t.split(kr);e.main=n[0]||"",e.sub=n[1]||""}return e}function Dr(t){u["b"](/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function jr(t){return!(!t||!t[Cr])}function Ar(t,e){t.$constructor=t,t.extend=function(t){var e,n=this;return Pr(n)?e=function(t){function e(){return t.apply(this,arguments)||this}return s(e,t),e}(n):(e=function(){(t.$constructor||n).apply(this,arguments)},u["r"](e,this)),u["m"](e.prototype,t),e[Cr]=!0,e.extend=this.extend,e.superCall=Nr,e.superApply=Br,e.superClass=n,e}}function Pr(t){return u["v"](t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Lr(t,e){t.extend=e.extend}var Rr=Math.round(10*Math.random());function zr(t){var e=["__\0is_clz",Rr++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function Nr(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 Br(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Er(t){var e={};function n(t){var n=e[t.main];return n&&n[Mr]||(n=e[t.main]={},n[Mr]=!0),n}t.registerClass=function(t){var i=t.type||t.prototype.type;if(i){Dr(i),t.prototype.type=i;var r=Ir(i);if(r.sub){if(r.sub!==Mr){var o=n(r);o[r.sub]=t}}else e[r.main]=t}return t},t.getClass=function(t,n,i){var r=e[t];if(r&&r[Mr]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var n=Ir(t),i=[],r=e[n.main];return r&&r[Mr]?u["k"](r,(function(t,e){e!==Mr&&i.push(t)})):i.push(r),i},t.hasClass=function(t){var n=Ir(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return u["k"](e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=Ir(t),i=e[n.main];return i&&i[Mr]}}function Fr(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,i,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(i&&u["q"](i,s)>=0||r&&u["q"](r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var Hr=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Vr=Fr(Hr),Gr=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return Vr(this,t,e)},t}(),Wr=new Xn["a"](50);function Ur(t){if("string"===typeof t){var e=Wr.get(t);return e&&e.image}return t}function qr(t,e,n,i,r){if(t){if("string"===typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=Wr.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?(e=o.image,!Yr(e)&&o.pending.push(a)):(e=Yn["c"].loadImage(t,Xr,Xr),e.__zrImageSrc=t,Wr.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function Xr(){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 Yr(t){return t&&t.width&&t.height}var Zr=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Kr(t,e,n,i,r,o){if(!n)return t.text="",void(t.isTruncated=!1);var a=(e+"").split("\n");o=Qr(n,i,r,o);for(var s=!1,l={},u=0,c=a.length;u<c;u++)$r(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;t.text=a.join("\n"),t.isTruncated=s}function Qr(t,e,n,i){i=i||{};var r=Object(u["m"])({},i);r.font=e,n=Object(u["M"])(n,"..."),r.maxIterations=Object(u["M"])(i.maxIterations,2);var o=r.minChar=Object(u["M"])(i.minChar,0);r.cnCharWidth=Kn("国",e);var a=r.ascCharWidth=Kn("a",e);r.placeholder=Object(u["M"])(i.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<o&&s>=a;l++)s-=a;var c=Kn(n,e);return c>s&&(n="",c=0),s=t-c,r.ellipsis=n,r.ellipsisWidth=c,r.contentWidth=s,r.containerWidth=t,r}function $r(t,e,n){var i=n.containerWidth,r=n.font,o=n.contentWidth;if(!i)return t.textLine="",void(t.isTruncated=!1);var a=Kn(e,r);if(a<=i)return t.textLine=e,void(t.isTruncated=!1);for(var s=0;;s++){if(a<=o||s>=n.maxIterations){e+=n.ellipsis;break}var l=0===s?Jr(e,o,n.ascCharWidth,n.cnCharWidth):a>0?Math.floor(e.length*o/a):0;e=e.substr(0,l),a=Kn(e,r)}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}function Jr(t,e,n,i){for(var r=0,o=0,a=t.length;o<a&&r<e;o++){var s=t.charCodeAt(o);r+=0<=s&&s<=127?n:i}return o}function to(t,e){null!=t&&(t+="");var n,i=e.overflow,r=e.padding,o=e.font,a="truncate"===i,s=ei(o),l=Object(u["M"])(e.lineHeight,s),c=!!e.backgroundColor,h="truncate"===e.lineOverflow,p=!1,f=e.width;n=null==f||"break"!==i&&"breakAll"!==i?t?t.split("\n"):[]:t?uo(t,e.font,f,"breakAll"===i,0).lines:[];var d=n.length*l,g=Object(u["M"])(e.height,d);if(d>g&&h){var v=Math.floor(g/l);p=p||n.length>v,n=n.slice(0,v)}if(t&&a&&null!=f)for(var y=Qr(f,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m={},_=0;_<n.length;_++)$r(m,n[_],y),n[_]=m.textLine,p=p||m.isTruncated;var x=g,b=0;for(_=0;_<n.length;_++)b=Math.max(Kn(n[_],o),b);null==f&&(f=b);var w=b;return r&&(x+=r[0]+r[2],w+=r[1]+r[3],f+=r[1]+r[3]),c&&(w=f),{lines:n,height:g,outerWidth:w,outerHeight:x,lineHeight:l,calculatedLineHeight:s,contentWidth:b,contentHeight:d,width:f,isTruncated:p}}var eo=function(){function t(){}return t}(),no=function(){function t(t){this.tokens=[],t&&(this.tokens=t)}return t}(),io=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t}();function ro(t,e){var n=new io;if(null!=t&&(t+=""),!t)return n;var i,r=e.width,o=e.height,a=e.overflow,s="break"!==a&&"breakAll"!==a||null==r?null:{width:r,accumWidth:0,breakAll:"breakAll"===a},l=Zr.lastIndex=0;while(null!=(i=Zr.exec(t))){var c=i.index;c>l&&oo(n,t.substring(l,c),e,s),oo(n,i[2],e,s,i[1]),l=Zr.lastIndex}l<t.length&&oo(n,t.substring(l,t.length),e,s);var h=[],p=0,f=0,d=e.padding,g="truncate"===a,v="truncate"===e.lineOverflow,y={};function m(t,e,n){t.width=e,t.lineHeight=n,p+=n,f=Math.max(f,e)}t:for(var _=0;_<n.lines.length;_++){for(var x=n.lines[_],b=0,w=0,S=0;S<x.tokens.length;S++){var O=x.tokens[S],T=O.styleName&&e.rich[O.styleName]||{},k=O.textPadding=T.padding,M=k?k[1]+k[3]:0,C=O.font=T.font||e.font;O.contentHeight=ei(C);var I=Object(u["M"])(T.height,O.contentHeight);if(O.innerHeight=I,k&&(I+=k[0]+k[2]),O.height=I,O.lineHeight=Object(u["N"])(T.lineHeight,e.lineHeight,I),O.align=T&&T.align||e.align,O.verticalAlign=T&&T.verticalAlign||"middle",v&&null!=o&&p+O.lineHeight>o){var D=n.lines.length;S>0?(x.tokens=x.tokens.slice(0,S),m(x,w,b),n.lines=n.lines.slice(0,_+1)):n.lines=n.lines.slice(0,_),n.isTruncated=n.isTruncated||n.lines.length<D;break t}var j=T.width,A=null==j||"auto"===j;if("string"===typeof j&&"%"===j.charAt(j.length-1))O.percentWidth=j,h.push(O),O.contentWidth=Kn(O.text,C);else{if(A){var P=T.backgroundColor,L=P&&P.image;L&&(L=Ur(L),Yr(L)&&(O.width=Math.max(O.width,L.width*I/L.height)))}var R=g&&null!=r?r-w:null;null!=R&&R<O.width?!A||R<M?(O.text="",O.width=O.contentWidth=0):(Kr(y,O.text,R-M,C,e.ellipsis,{minChar:e.truncateMinChar}),O.text=y.text,n.isTruncated=n.isTruncated||y.isTruncated,O.width=O.contentWidth=Kn(O.text,C)):O.contentWidth=Kn(O.text,C)}O.width+=M,w+=O.width,T&&(b=Math.max(b,O.lineHeight))}m(x,w,b)}n.outerWidth=n.width=Object(u["M"])(r,f),n.outerHeight=n.height=Object(u["M"])(o,p),n.contentHeight=p,n.contentWidth=f,d&&(n.outerWidth+=d[1]+d[3],n.outerHeight+=d[0]+d[2]);for(_=0;_<h.length;_++){O=h[_];var z=O.percentWidth;O.width=parseInt(z,10)/100*n.width}return n}function oo(t,e,n,i,r){var o,a,s=""===e,l=r&&n.rich[r]||{},u=t.lines,c=l.font||n.font,h=!1;if(i){var p=l.padding,f=p?p[1]+p[3]:0;if(null!=l.width&&"auto"!==l.width){var d=ni(l.width,i.width)+f;u.length>0&&d+i.accumWidth>i.width&&(o=e.split("\n"),h=!0),i.accumWidth=d}else{var g=uo(e,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+f,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v<o.length;v++){var y=o[v],m=new eo;if(m.styleName=r,m.text=y,m.isLineHolder=!y&&!s,"number"===typeof l.width?m.width=l.width:m.width=a?a[v]:Kn(y,c),v||h)u.push(new no([m]));else{var _=(u[u.length-1]||(u[0]=new no)).tokens,x=_.length;1===x&&_[0].isLineHolder?_[0]=m:(y||!x||s)&&_.push(m)}}}function ao(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var so=Object(u["K"])(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function lo(t){return!ao(t)||!!so[t]}function uo(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;h<t.length;h++){var p=t.charAt(h);if("\n"!==p){var f=Kn(p,e),d=!i&&!lo(p);(o.length?c+f>n:r+c+f>n)?c?(s||l)&&(d?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=p,u+=f,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=p,c=f)):d?(o.push(l),a.push(u),l=p,u=f):(o.push(p),a.push(f)):(c+=f,d?(l+=p,u+=f):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=r),{accumWidth:c,lines:o,linesWidths:a}}var co="__zr_style_"+Math.round(10*Math.random()),ho={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},po={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ho[co]=!0;var fo=["z","z2","invisible"],go=["invisible"],vo=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e.prototype._init=function(e){for(var n=Object(u["D"])(e),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,i){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&_o(this,t,e)||r&&!r[0]&&!r[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(i&&this.parent){var a=this.parent;while(a){if(a.ignore)return!1;a=a.parent}}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return i.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,o=i.shadowOffsetX||0,a=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new Ot(0,0,0,0)),e?Ot.applyTransform(t,n,e):t.copy(n),(r||o||a)&&(t.width+=2*r+Math.abs(o),t.height+=2*r+Math.abs(a),t.x=Math.min(t.x,t.x+o-r),t.y=Math.min(t.y,t.y+a-r));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new Ot(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"===typeof t?this.style[t]=e:Object(u["m"])(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=Yt,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Yt)},e.prototype.styleUpdated=function(){this.__dirty&=~Yt},e.prototype.createStyle=function(t){return Object(u["g"])(ho,t)},e.prototype.useStyle=function(t){t[co]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[co]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,fo)},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.style?o?r?s=n.style:(s=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(s,n.style)):l&&(s=i.style),s)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var h=Object(u["D"])(c),p=0;p<h.length;p++){var f=h[p];f in s&&(s[f]=s[f],this.style[f]=c[f])}var d=Object(u["D"])(s);for(p=0;p<d.length;p++){f=d[p];this.style[f]=this.style[f]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var g=this.__inHover?go:fo;for(p=0;p<g.length;p++){f=g[p];n&&null!=n[f]?this[f]=n[f]:l&&null!=i[f]&&(this[f]=i[f])}},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(t,e){return Object(u["m"])(t,e),t},e.prototype.getAnimationStyleProps=function(){return po},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=Xt|Yt}(),e}(yi),yo=new Ot(0,0,0,0),mo=new Ot(0,0,0,0);function _o(t,e,n){return yo.copy(t.getBoundingRect()),t.transform&&yo.applyTransform(t.transform),mo.width=e,mo.height=n,!yo.intersect(mo)}var xo=vo,bo=Math.min,wo=Math.max,So=Math.sin,Oo=Math.cos,To=2*Math.PI,ko=c(),Mo=c(),Co=c();function Io(t,e,n,i,r,o){r[0]=bo(t,n),r[1]=bo(e,i),o[0]=wo(t,n),o[1]=wo(e,i)}var Do=[],jo=[];function Ao(t,e,n,i,r,o,a,s,l,u){var c=_e,h=ve,p=c(t,n,r,a,Do);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var f=0;f<p;f++){var d=h(t,n,r,a,Do[f]);l[0]=bo(d,l[0]),u[0]=wo(d,u[0])}p=c(e,i,o,s,jo);for(f=0;f<p;f++){var g=h(e,i,o,s,jo[f]);l[1]=bo(g,l[1]),u[1]=wo(g,u[1])}l[0]=bo(t,l[0]),u[0]=wo(t,u[0]),l[0]=bo(a,l[0]),u[0]=wo(a,u[0]),l[1]=bo(e,l[1]),u[1]=wo(e,u[1]),l[1]=bo(s,l[1]),u[1]=wo(s,u[1])}function Po(t,e,n,i,r,o,a,s){var l=ke,u=Se,c=wo(bo(l(t,n,r),1),0),h=wo(bo(l(e,i,o),1),0),p=u(t,n,r,c),f=u(e,i,o,h);a[0]=bo(t,r,p),a[1]=bo(e,o,f),s[0]=wo(t,r,p),s[1]=wo(e,o,f)}function Lo(t,e,n,i,r,o,a,s,l){var u=O,c=T,h=Math.abs(r-o);if(h%To<1e-4&&h>1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(ko[0]=Oo(r)*n+t,ko[1]=So(r)*i+e,Mo[0]=Oo(o)*n+t,Mo[1]=So(o)*i+e,u(s,ko,Mo),c(l,ko,Mo),r%=To,r<0&&(r+=To),o%=To,o<0&&(o+=To),r>o&&!a?o+=To:r<o&&a&&(r+=To),a){var p=o;o=r,r=p}for(var f=0;f<o;f+=Math.PI/2)f>r&&(Co[0]=Oo(f)*n+t,Co[1]=So(f)*i+e,u(s,Co,s),c(l,Co,l))}var Ro={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},zo=[],No=[],Bo=[],Eo=[],Fo=[],Ho=[],Vo=Math.min,Go=Math.max,Wo=Math.cos,Uo=Math.sin,qo=Math.abs,Xo=Math.PI,Yo=2*Xo,Zo="undefined"!==typeof Float32Array,Ko=[];function Qo(t){var e=Math.round(t/Xo*1e8)/1e8;return e%2*Xo}function $o(t,e){var n=Qo(t[0]);n<0&&(n+=Yo);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=Yo?r=n+Yo:e&&n-r>=Yo?r=n-Yo:!e&&n>r?r=n+(Yo-Qo(n-r)):e&&n<r&&(r=n-(Yo-Qo(r-n))),t[0]=n,t[1]=r}var Jo=function(){function t(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=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){n=n||0,n>0&&(this._ux=qo(n/jn/t)||0,this._uy=qo(n/jn/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Ro.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=qo(t-this._xi),i=qo(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(Ro.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(Ro.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Ro.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),Ko[0]=i,Ko[1]=r,$o(Ko,o),i=Ko[0],r=Ko[1];var a=r-i;return this.addData(Ro.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=Wo(r)*n+t,this._yi=Uo(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Ro.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ro.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Zo||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();Zo&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(r=0;r<e;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},t.prototype.addData=function(t,e,n,i,r,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.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}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Zo&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){Bo[0]=Bo[1]=Fo[0]=Fo[1]=Number.MAX_VALUE,Eo[0]=Eo[1]=Ho[0]=Ho[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(n=e[t],i=e[t+1],r=n,o=i),a){case Ro.M:n=r=e[t++],i=o=e[t++],Fo[0]=r,Fo[1]=o,Ho[0]=r,Ho[1]=o;break;case Ro.L:Io(n,i,e[t],e[t+1],Fo,Ho),n=e[t++],i=e[t++];break;case Ro.C:Ao(n,i,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],Fo,Ho),n=e[t++],i=e[t++];break;case Ro.Q:Po(n,i,e[t++],e[t++],e[t],e[t+1],Fo,Ho),n=e[t++],i=e[t++];break;case Ro.A:var l=e[t++],u=e[t++],c=e[t++],h=e[t++],p=e[t++],f=e[t++]+p;t+=1;var d=!e[t++];s&&(r=Wo(p)*c+l,o=Uo(p)*h+u),Lo(l,u,c,h,p,f,d,Fo,Ho),n=Wo(f)*c+l,i=Uo(f)*h+u;break;case Ro.R:r=n=e[t++],o=i=e[t++];var g=e[t++],v=e[t++];Io(r,o,r+g,o+v,Fo,Ho);break;case Ro.Z:n=r,i=o;break}O(Bo,Bo,Fo),T(Eo,Eo,Ho)}return 0===t&&(Bo[0]=Bo[1]=Eo[0]=Eo[1]=0),new Ot(Bo[0],Bo[1],Eo[0]-Bo[0],Eo[1]-Bo[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;h<e;){var p=t[h++],f=1===h;f&&(r=t[h],o=t[h+1],a=r,s=o);var d=-1;switch(p){case Ro.M:r=a=t[h++],o=s=t[h++];break;case Ro.L:var g=t[h++],v=t[h++],y=g-r,m=v-o;(qo(y)>n||qo(m)>i||h===e-1)&&(d=Math.sqrt(y*y+m*m),r=g,o=v);break;case Ro.C:var _=t[h++],x=t[h++],b=(g=t[h++],v=t[h++],t[h++]),w=t[h++];d=we(r,o,_,x,g,v,b,w,10),r=b,o=w;break;case Ro.Q:_=t[h++],x=t[h++],g=t[h++],v=t[h++];d=Ie(r,o,_,x,g,v,10),r=g,o=v;break;case Ro.A:var S=t[h++],O=t[h++],T=t[h++],k=t[h++],M=t[h++],C=t[h++],I=C+M;h+=1,f&&(a=Wo(M)*T+S,s=Uo(M)*k+O),d=Go(T,k)*Vo(Yo,Math.abs(C)),r=Wo(I)*T+S,o=Uo(I)*k+O;break;case Ro.R:a=r=t[h++],s=o=t[h++];var D=t[h++],j=t[h++];d=2*D+2*j;break;case Ro.Z:y=a-r,m=s-o;d=Math.sqrt(y*y+m*m),r=a,o=s;break}d>=0&&(l[c++]=d,u+=d)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,c,h,p,f=this.data,d=this._ux,g=this._uy,v=this._len,y=e<1,m=0,_=0,x=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,c=e*u,c))t:for(var b=0;b<v;){var w=f[b++],S=1===b;switch(S&&(r=f[b],o=f[b+1],n=r,i=o),w!==Ro.L&&x>0&&(t.lineTo(h,p),x=0),w){case Ro.M:n=r=f[b++],i=o=f[b++],t.moveTo(r,o);break;case Ro.L:a=f[b++],s=f[b++];var O=qo(a-r),T=qo(s-o);if(O>d||T>g){if(y){var k=l[_++];if(m+k>c){var M=(c-m)/k;t.lineTo(r*(1-M)+a*M,o*(1-M)+s*M);break t}m+=k}t.lineTo(a,s),r=a,o=s,x=0}else{var C=O*O+T*T;C>x&&(h=a,p=s,x=C)}break;case Ro.C:var I=f[b++],D=f[b++],j=f[b++],A=f[b++],P=f[b++],L=f[b++];if(y){k=l[_++];if(m+k>c){M=(c-m)/k;xe(r,I,j,P,M,zo),xe(o,D,A,L,M,No),t.bezierCurveTo(zo[1],No[1],zo[2],No[2],zo[3],No[3]);break t}m+=k}t.bezierCurveTo(I,D,j,A,P,L),r=P,o=L;break;case Ro.Q:I=f[b++],D=f[b++],j=f[b++],A=f[b++];if(y){k=l[_++];if(m+k>c){M=(c-m)/k;Me(r,I,j,M,zo),Me(o,D,A,M,No),t.quadraticCurveTo(zo[1],No[1],zo[2],No[2]);break t}m+=k}t.quadraticCurveTo(I,D,j,A),r=j,o=A;break;case Ro.A:var R=f[b++],z=f[b++],N=f[b++],B=f[b++],E=f[b++],F=f[b++],H=f[b++],V=!f[b++],G=N>B?N:B,W=qo(N-B)>.001,U=E+F,q=!1;if(y){k=l[_++];m+k>c&&(U=E+F*(c-m)/k,q=!0),m+=k}if(W&&t.ellipse?t.ellipse(R,z,N,B,H,E,U,V):t.arc(R,z,G,E,U,V),q)break t;S&&(n=Wo(E)*N+R,i=Uo(E)*B+z),r=Wo(U)*N+R,o=Uo(U)*B+z;break;case Ro.R:n=r=f[b],i=o=f[b+1],a=f[b++],s=f[b++];var X=f[b++],Y=f[b++];if(y){k=l[_++];if(m+k>c){var Z=c-m;t.moveTo(a,s),t.lineTo(a+Vo(Z,X),s),Z-=X,Z>0&&t.lineTo(a+X,s+Vo(Z,Y)),Z-=Y,Z>0&&t.lineTo(a+Go(X-Z,0),s+Y),Z-=X,Z>0&&t.lineTo(a,s+Go(Y-Z,0));break t}m+=k}t.rect(a,s,X,Y);break;case Ro.Z:if(y){k=l[_++];if(m+k>c){M=(c-m)/k;t.lineTo(r*(1-M)+n*M,o*(1-M)+i*M);break t}m+=k}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=Ro,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),ta=Jo;function ea(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0,u=t;if(a>e+s&&a>i+s||a<e-s&&a<i-s||o>t+s&&o>n+s||o<t-s&&o<n-s)return!1;if(t===n)return Math.abs(o-t)<=s/2;l=(e-i)/(t-n),u=(t*i-n*e)/(t-n);var c=l*o-a+u,h=c*c/(l*l+1);return h<=s/2*s/2}function na(t,e,n,i,r,o,a,s,l,u,c){if(0===l)return!1;var h=l;if(c>e+h&&c>i+h&&c>o+h&&c>s+h||c<e-h&&c<i-h&&c<o-h&&c<s-h||u>t+h&&u>n+h&&u>r+h&&u>a+h||u<t-h&&u<n-h&&u<r-h&&u<a-h)return!1;var p=be(t,e,n,i,r,o,a,s,u,c,null);return p<=h/2}function ia(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>i+u&&l>o+u||l<e-u&&l<i-u&&l<o-u||s>t+u&&s>n+u&&s>r+u||s<t-u&&s<n-u&&s<r-u)return!1;var c=Ce(t,e,n,i,r,o,s,l,null);return c<=u/2}var ra=2*Math.PI;function oa(t){return t%=ra,t<0&&(t+=ra),t}var aa=2*Math.PI;function sa(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(i-r)%aa<1e-4)return!0;if(o){var h=i;i=oa(r),r=oa(h)}else i=oa(i),r=oa(r);i>r&&(r+=aa);var p=Math.atan2(l,s);return p<0&&(p+=aa),p>=i&&p<=r||p+aa>=i&&p+aa<=r}function la(t,e,n,i,r,o){if(o>e&&o>i||o<e&&o<i)return 0;if(i===e)return 0;var a=(o-e)/(i-e),s=i<e?1:-1;1!==a&&0!==a||(s=i<e?.5:-.5);var l=a*(n-t)+t;return l===r?1/0:l>r?s:0}var ua=ta.CMD,ca=2*Math.PI,ha=1e-4;function pa(t,e){return Math.abs(t-e)<ha}var fa=[-1,-1,-1],da=[-1,-1];function ga(){var t=da[0];da[0]=da[1],da[1]=t}function va(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u<e&&u<i&&u<o&&u<s)return 0;var c=me(e,i,o,s,u,fa);if(0===c)return 0;for(var h=0,p=-1,f=void 0,d=void 0,g=0;g<c;g++){var v=fa[g],y=0===v||1===v?.5:1,m=ve(t,n,r,a,v);m<l||(p<0&&(p=_e(e,i,o,s,da),da[1]<da[0]&&p>1&&ga(),f=ve(e,i,o,s,da[0]),p>1&&(d=ve(e,i,o,s,da[1]))),2===p?v<da[0]?h+=f<e?y:-y:v<da[1]?h+=d<f?y:-y:h+=s<d?y:-y:v<da[0]?h+=f<e?y:-y:h+=s<f?y:-y)}return h}function ya(t,e,n,i,r,o,a,s){if(s>e&&s>i&&s>o||s<e&&s<i&&s<o)return 0;var l=Te(e,i,o,s,fa);if(0===l)return 0;var u=ke(e,i,o);if(u>=0&&u<=1){for(var c=0,h=Se(e,i,o,u),p=0;p<l;p++){var f=0===fa[p]||1===fa[p]?.5:1,d=Se(t,n,r,fa[p]);d<a||(fa[p]<u?c+=h<e?f:-f:c+=o<h?f:-f)}return c}f=0===fa[0]||1===fa[0]?.5:1,d=Se(t,n,r,fa[0]);return d<a?0:o<e?f:-f}function ma(t,e,n,i,r,o,a,s){if(s-=e,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);fa[0]=-l,fa[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=ca-1e-4){i=0,r=ca;var c=o?1:-1;return a>=fa[0]+t&&a<=fa[1]+t?c:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=ca,r+=ca);for(var p=0,f=0;f<2;f++){var d=fa[f];if(d+t>a){var g=Math.atan2(s,d);c=o?1:-1;g<0&&(g=ca+g),(g>=i&&g<=r||g+ca>=i&&g+ca<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),p+=c)}}return p}function _a(t,e,n,i,r){for(var o,a,s=t.data,l=t.len(),u=0,c=0,h=0,p=0,f=0,d=0;d<l;){var g=s[d++],v=1===d;switch(g===ua.M&&d>1&&(n||(u+=la(c,h,p,f,i,r))),v&&(c=s[d],h=s[d+1],p=c,f=h),g){case ua.M:p=s[d++],f=s[d++],c=p,h=f;break;case ua.L:if(n){if(ea(c,h,s[d],s[d+1],e,i,r))return!0}else u+=la(c,h,s[d],s[d+1],i,r)||0;c=s[d++],h=s[d++];break;case ua.C:if(n){if(na(c,h,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],e,i,r))return!0}else u+=va(c,h,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],i,r)||0;c=s[d++],h=s[d++];break;case ua.Q:if(n){if(ia(c,h,s[d++],s[d++],s[d],s[d+1],e,i,r))return!0}else u+=ya(c,h,s[d++],s[d++],s[d],s[d+1],i,r)||0;c=s[d++],h=s[d++];break;case ua.A:var y=s[d++],m=s[d++],_=s[d++],x=s[d++],b=s[d++],w=s[d++];d+=1;var S=!!(1-s[d++]);o=Math.cos(b)*_+y,a=Math.sin(b)*x+m,v?(p=o,f=a):u+=la(c,h,o,a,i,r);var O=(i-y)*x/_+y;if(n){if(sa(y,m,x,b,b+w,S,e,O,r))return!0}else u+=ma(y,m,x,b,b+w,S,O,r);c=Math.cos(b+w)*_+y,h=Math.sin(b+w)*x+m;break;case ua.R:p=c=s[d++],f=h=s[d++];var T=s[d++],k=s[d++];if(o=p+T,a=f+k,n){if(ea(p,f,o,f,e,i,r)||ea(o,f,o,a,e,i,r)||ea(o,a,p,a,e,i,r)||ea(p,a,p,f,e,i,r))return!0}else u+=la(o,f,o,a,i,r),u+=la(p,a,p,f,i,r);break;case ua.Z:if(n){if(ea(c,h,p,f,e,i,r))return!0}else u+=la(c,h,p,f,i,r);c=p,h=f;break}}return n||pa(h,f)||(u+=la(c,h,p,f,i,r)||0),0!==u}function xa(t,e,n){return _a(t,0,!1,e,n)}function ba(t,e,n,i){return _a(t,e,!0,n,i)}var wa=Object(u["i"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ho),Sa={style:Object(u["i"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},po.style)},Oa=Wn.concat(["invisible","culling","z","z2","zlevel","parent"]),Ta=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<Oa.length;++s)r[Oa[s]]=this[Oa[s]];r.__dirty|=Xt}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=Object(u["D"])(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],a=e[o];"style"===o?this.style?Object(u["m"])(this.style,a):this.useStyle(a):"shape"===o?Object(u["m"])(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(Object(u["A"])(t)){var e=Object(Le["b"])(t,0);return e>.5?Pn:e>.2?Rn:Ln}if(t)return Ln}return Pn},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Object(u["A"])(e)){var n=this.__zr,i=!(!n||!n.isDarkMode()),r=Object(Le["b"])(t,0)<An;if(i===r)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=~Zt},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new ta(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&Zt)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),ba(o,a/s,t,e)))return!0}if(this.hasFill())return xa(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Zt,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"===typeof t?n[t]=e:Object(u["m"])(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Zt)},e.prototype.createStyle=function(t){return Object(u["g"])(wa,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Object(u["m"])({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=Object(u["m"])({},i.shape),Object(u["m"])(s,n.shape)):(s=Object(u["m"])({},r?this.shape:i.shape),Object(u["m"])(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=Object(u["m"])({},this.shape);for(var c={},h=Object(u["D"])(s),p=0;p<h.length;p++){var f=h[p];"object"===typeof s[f]?this.shape[f]=s[f]:c[f]=s[f]}this._transitionState(e,{shape:c},a)}else this.shape=s,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return Sa},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var i=e.call(this,n)||this;return t.init&&t.init.call(i,n),i}return s(n,e),n.prototype.getDefaultStyle=function(){return Object(u["d"])(t.style)},n.prototype.getDefaultShape=function(){return Object(u["d"])(t.shape)},n}(e);for(var i in t)"function"===typeof t[i]&&(n.prototype[i]=t[i]);return n},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=Xt|Yt|Zt}(),e}(xo),ka=Ta,Ma=Object(u["i"])({strokeFirst:!0,font:Yn["a"],x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},wa),Ca=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.createStyle=function(t){return Object(u["g"])(Ma,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=$n(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(xo);Ca.prototype.type="tspan";var Ia=Ca,Da=Object(u["i"])({x:0,y:0},ho),ja={style:Object(u["i"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},po.style)};function Aa(t){return!!(t&&"string"!==typeof t&&t.width&&t.height)}var Pa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.createStyle=function(t){return Object(u["g"])(Da,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i=Aa(e.image)?e.image:this.__image;if(!i)return 0;var r="width"===t?"height":"width",o=e[r];return null==o?i[t]:i[t]/i[r]*o},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return ja},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Ot(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(xo);Pa.prototype.type="image";var La=Pa;function Ra(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0,n+i>u&&(a=n+i,n*=u/a,i*=u/a),r+o>u&&(a=r+o,r*=u/a,o*=u/a),i+r>c&&(a=i+r,i*=c/a,r*=c/a),n+o>c&&(a=n+o,n*=c/a,o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+c-r),0!==r&&t.arc(s+u-r,l+c-r,r,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var za=Math.round;function Na(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(za(2*i)===za(2*r)&&(t.x1=t.x2=Ea(i,s,!0)),za(2*o)===za(2*a)&&(t.y1=t.y2=Ea(o,s,!0)),t):t}}function Ba(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=Ea(i,s,!0),t.y=Ea(r,s,!0),t.width=Math.max(Ea(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Ea(r+a,s,!1)-t.y,0===a?0:1),t):t}}function Ea(t,e,n){if(!e)return t;var i=za(2*t);return(i+za(e))%2===0?i/2:(i+(n?1:-1))/2}var Fa=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),Ha={},Va=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e.prototype.getDefaultShape=function(){return new Fa},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=Ba(Ha,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?Ra(t,e):t.rect(n,i,r,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(ka);Va.prototype.type="rect";var Ga=Va,Wa={fill:"#000"},Ua=2,qa={style:Object(u["i"])({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},po.style)},Xa=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Wa,n.attr(e),n}return s(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,ts(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new Ot(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),i=i||t.clone(),i.union(t)):(i=i||a.clone(),i.union(a))}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Wa},e.prototype.setTextContent=function(t){0},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,i=t.rich||n&&{};return Object(u["m"])(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,e){for(var n=Object(u["D"])(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},Object(u["m"])(t[r],e[r])}},e.prototype.getAnimationStyleProps=function(){return qa},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||Yn["a"],n=t.padding,i=os(t),r=to(i,t),o=as(t),a=!!t.backgroundColor,s=r.outerHeight,l=r.outerWidth,u=r.contentWidth,c=r.lines,h=r.lineHeight,p=this._defaultStyle;this.isTruncated=!!r.isTruncated;var f=t.x||0,d=t.y||0,g=t.align||p.align||"left",v=t.verticalAlign||p.verticalAlign||"top",y=f,m=ti(d,r.contentHeight,v);if(o||n){var _=Jn(f,l,g),x=ti(d,s,v);o&&this._renderBackground(t,t,_,x,l,s)}m+=h/2,n&&(y=rs(f,g,n),"top"===v?m+=n[0]:"bottom"===v&&(m-=n[2]));for(var b=0,w=!1,S=(is("fill"in t?t.fill:(w=!0,p.fill))),O=(ns("stroke"in t?t.stroke:a||p.autoStroke&&!w?null:(b=Ua,p.stroke))),T=t.textShadowBlur>0,k=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),M=r.calculatedLineHeight,C=0;C<c.length;C++){var I=this._getOrCreateChild(Ia),D=I.createStyle();I.useStyle(D),D.text=c[C],D.x=y,D.y=m,g&&(D.textAlign=g),D.textBaseline="middle",D.opacity=t.opacity,D.strokeFirst=!0,T&&(D.shadowBlur=t.textShadowBlur||0,D.shadowColor=t.textShadowColor||"transparent",D.shadowOffsetX=t.textShadowOffsetX||0,D.shadowOffsetY=t.textShadowOffsetY||0),D.stroke=O,D.fill=S,O&&(D.lineWidth=t.lineWidth||b,D.lineDash=t.lineDash,D.lineDashOffset=t.lineDashOffset||0),D.font=e,$a(D,t),m+=h,k&&I.setBoundingRect(new Ot(Jn(D.x,u,D.textAlign),ti(D.y,M,D.textBaseline),u,M))}},e.prototype._updateRichTexts=function(){var t=this.style,e=os(t),n=ro(e,t),i=n.width,r=n.outerWidth,o=n.outerHeight,a=t.padding,s=t.x||0,l=t.y||0,u=this._defaultStyle,c=t.align||u.align,h=t.verticalAlign||u.verticalAlign;this.isTruncated=!!n.isTruncated;var p=Jn(s,r,c),f=ti(l,o,h),d=p,g=f;a&&(d+=a[3],g+=a[0]);var v=d+i;as(t)&&this._renderBackground(t,t,p,f,r,o);for(var y=!!t.backgroundColor,m=0;m<n.lines.length;m++){var _=n.lines[m],x=_.tokens,b=x.length,w=_.lineHeight,S=_.width,O=0,T=d,k=v,M=b-1,C=void 0;while(O<b&&(C=x[O],!C.align||"left"===C.align))this._placeToken(C,t,w,g,T,"left",y),S-=C.width,T+=C.width,O++;while(M>=0&&(C=x[M],"right"===C.align))this._placeToken(C,t,w,g,k,"right",y),S-=C.width,k-=C.width,M--;T+=(i-(T-d)-(v-k)-S)/2;while(O<=M)C=x[O],this._placeToken(C,t,w,g,T+C.width/2,"center",y),T+=C.width,O++;g+=w}},e.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,c=i+n/2;"top"===l?c=i+t.height/2:"bottom"===l&&(c=i+n-t.height/2);var h=!t.isLineHolder&&as(s);h&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,c-t.height/2,t.width,t.height);var p=!!s.backgroundColor,f=t.textPadding;f&&(r=rs(r,o,f),c-=t.height/2-f[0]-t.innerHeight/2);var d=this._getOrCreateChild(Ia),g=d.createStyle();d.useStyle(g);var v=this._defaultStyle,y=!1,m=0,_=is("fill"in s?s.fill:"fill"in e?e.fill:(y=!0,v.fill)),x=ns("stroke"in s?s.stroke:"stroke"in e?e.stroke:p||a||v.autoStroke&&!y?null:(m=Ua,v.stroke)),b=s.textShadowBlur>0||e.textShadowBlur>0;g.text=t.text,g.x=r,g.y=c,b&&(g.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,g.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",g.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,g.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),g.textAlign=o,g.textBaseline="middle",g.font=t.font||Yn["a"],g.opacity=Object(u["N"])(s.opacity,e.opacity,1),$a(g,s),x&&(g.lineWidth=Object(u["N"])(s.lineWidth,e.lineWidth,m),g.lineDash=Object(u["M"])(s.lineDash,e.lineDash),g.lineDashOffset=e.lineDashOffset||0,g.stroke=x),_&&(g.fill=_);var w=t.contentWidth,S=t.contentHeight;d.setBoundingRect(new Ot(Jn(g.x,w,g.textAlign),ti(g.y,S,g.textBaseline),w,S))},e.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l=t.backgroundColor,c=t.borderWidth,h=t.borderColor,p=l&&l.image,f=l&&!p,d=t.borderRadius,g=this;if(f||t.lineHeight||c&&h){a=this._getOrCreateChild(Ga),a.useStyle(a.createStyle()),a.style.fill=null;var v=a.shape;v.x=n,v.y=i,v.width=r,v.height=o,v.r=d,a.dirtyShape()}if(f){var y=a.style;y.fill=l||null,y.fillOpacity=Object(u["M"])(t.fillOpacity,1)}else if(p){s=this._getOrCreateChild(La),s.onload=function(){g.dirtyStyle()};var m=s.style;m.image=l.image,m.x=n,m.y=i,m.width=r,m.height=o}if(c&&h){y=a.style;y.lineWidth=c,y.stroke=h,y.strokeOpacity=Object(u["M"])(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var _=(a||s).style;_.shadowBlur=t.shadowBlur||0,_.shadowColor=t.shadowColor||"transparent",_.shadowOffsetX=t.shadowOffsetX||0,_.shadowOffsetY=t.shadowOffsetY||0,_.opacity=Object(u["N"])(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return Ja(t)&&(e=[t.fontStyle,t.fontWeight,Qa(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Object(u["Q"])(e)||t.textFont||t.font},e}(xo),Ya={left:!0,right:1,center:1},Za={top:1,bottom:1,middle:1},Ka=["fontStyle","fontWeight","fontSize","fontFamily"];function Qa(t){return"string"!==typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?Yn["b"]+"px":t+"px":t}function $a(t,e){for(var n=0;n<Ka.length;n++){var i=Ka[n],r=e[i];null!=r&&(t[i]=r)}}function Ja(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function ts(t){return es(t),Object(u["k"])(t.rich,es),t}function es(t){if(t){t.font=Xa.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||Ya[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||Za[n]?n:"top";var i=t.padding;i&&(t.padding=Object(u["J"])(t.padding))}}function ns(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function is(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function rs(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function os(t){var e=t.text;return null!=e&&(e+=""),e}function as(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var ss=Xa,ls=mr(),us=function(t,e,n,i){if(i){var r=ls(i);r.dataIndex=n,r.dataType=e,r.seriesIndex=t,r.ssrType="chart","group"===i.type&&i.traverse((function(i){var r=ls(i);r.seriesIndex=t,r.dataIndex=n,r.dataType=e,r.ssrType="chart"}))}},cs=1,hs={},ps=mr(),fs=mr(),ds=0,gs=1,vs=2,ys=["emphasis","blur","select"],ms=["normal","emphasis","blur","select"],_s=10,xs=9,bs="highlight",ws="downplay",Ss="select",Os="unselect",Ts="toggleSelect";function ks(t){return null!=t&&"none"!==t}function Ms(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Cs(t){Ms(t,"emphasis",vs)}function Is(t){t.hoverState===vs&&Ms(t,"normal",ds)}function Ds(t){Ms(t,"blur",gs)}function js(t){t.hoverState===gs&&Ms(t,"normal",ds)}function As(t){t.selected=!0}function Ps(t){t.selected=!1}function Ls(t,e,n){e(t,n)}function Rs(t,e,n){Ls(t,e,n),t.isGroup&&t.traverse((function(t){Ls(t,e,n)}))}function zs(t,e,n,i){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}function Ns(t,e,n,i){var r=n&&Object(u["q"])(n,"select")>=0,o=!1;if(t instanceof ka){var a=ps(t),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(ks(s)||ks(l)){i=i||{};var c=i.style||{};"inherit"===c.fill?(o=!0,i=Object(u["m"])({},i),c=Object(u["m"])({},c),c.fill=s):!ks(c.fill)&&ks(s)?(o=!0,i=Object(u["m"])({},i),c=Object(u["m"])({},c),c.fill=Object(Le["a"])(s)):!ks(c.stroke)&&ks(l)&&(o||(i=Object(u["m"])({},i),c=Object(u["m"])({},c)),c.stroke=Object(Le["a"])(l)),i.style=c}}if(i&&null==i.z2){o||(i=Object(u["m"])({},i));var h=t.z2EmphasisLift;i.z2=t.z2+(null!=h?h:_s)}return i}function Bs(t,e,n){if(n&&null==n.z2){n=Object(u["m"])({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:xs)}return n}function Es(t,e,n){var i=Object(u["q"])(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:zs(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=Object(u["m"])({},n),a=Object(u["m"])({opacity:i?r:.1*o.opacity},a),n.style=a),n}function Fs(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return Ns(this,t,e,n);if("blur"===t)return Es(this,t,n);if("select"===t)return Bs(this,t,n)}return n}function Hs(t){t.stateProxy=Fs;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=Fs),n&&(n.stateProxy=Fs)}function Vs(t,e){!Ks(t,e)&&!t.__highByOuter&&Rs(t,Cs)}function Gs(t,e){!Ks(t,e)&&!t.__highByOuter&&Rs(t,Is)}function Ws(t,e){t.__highByOuter|=1<<(e||0),Rs(t,Cs)}function Us(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Rs(t,Is)}function qs(t){Rs(t,Ds)}function Xs(t){Rs(t,js)}function Ys(t){Rs(t,As)}function Zs(t){Rs(t,Ps)}function Ks(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Qs(t){var e=t.getModel(),n=[],i=[];e.eachComponent((function(e,r){var o=fs(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse((function(t){js(t)})),a&&n.push(r)),o.isBlured=!1})),Object(u["k"])(i,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function $s(t,e,n,i){var r=i.getModel();function o(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&Xs(i)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=r.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries((function(t){var r=a===t,c=t.coordinateSystem;c&&c.master&&(c=c.master);var h=c&&s?c===s:r;if(!("series"===n&&!r||"coordinateSystem"===n&&!h||"series"===e&&r)){var p=i.getViewOfSeriesModel(t);if(p.group.traverse((function(t){t.__highByOuter&&r&&"self"===e||Ds(t)})),Object(u["t"])(e))o(t.getData(),e);else if(Object(u["z"])(e))for(var f=Object(u["D"])(e),d=0;d<f.length;d++)o(t.getData(f[d]),e[f[d]]);l.push(t),fs(t).isBlured=!0}})),r.eachComponent((function(t,e){if("series"!==t){var n=i.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,r)}}))}}function Js(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){fs(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse((function(t){Ds(t)}))}}}function tl(t,e,n){var i=t.seriesIndex,r=t.getData(e.dataType);if(r){var o=yr(r,e);o=(Object(u["s"])(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a){var s=r.count(),l=0;while(!a&&l<s)a=r.getItemGraphicEl(l++)}if(a){var c=ls(a);$s(i,c.focus,c.blurScope,n)}else{var h=t.get(["emphasis","focus"]),p=t.get(["emphasis","blurScope"]);null!=h&&$s(i,h,p,n)}}}function el(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;var o=i.getModel().getComponent(t,e);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===ls(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function nl(t,e,n){var i=ls(t),r=el(i.componentMainType,i.componentIndex,i.componentHighDownName,n),o=r.dispatchers,a=r.focusSelf;o?(a&&Js(i.componentMainType,i.componentIndex,n),Object(u["k"])(o,(function(t){return Vs(t,e)}))):($s(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&Js(i.componentMainType,i.componentIndex,n),Vs(t,e))}function il(t,e,n){Qs(n);var i=ls(t),r=el(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;r?Object(u["k"])(r,(function(t){return Gs(t,e)})):Gs(t,e)}function rl(t,e,n){if(yl(e)){var i=e.dataType,r=t.getData(i),o=yr(r,e);Object(u["s"])(o)||(o=[o]),t[e.type===Ts?"toggleSelect":e.type===Ss?"select":"unselect"](o,i)}}function ol(t){var e=t.getAllData();Object(u["k"])(e,(function(e){var n=e.data,i=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,i)?Ys(e):Zs(e)}))}))}function al(t){var e=[];return t.eachSeries((function(t){var n=t.getAllData();Object(u["k"])(n,(function(n){n.data;var i=n.type,r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}}))})),e}function sl(t,e,n){dl(t,!0),Rs(t,Hs),cl(t,e,n)}function ll(t){dl(t,!1)}function ul(t,e,n,i){i?ll(t):sl(t,e,n)}function cl(t,e,n){var i=ls(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var hl=["emphasis","blur","select"],pl={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function fl(t,e,n,i){n=n||"itemStyle";for(var r=0;r<hl.length;r++){var o=hl[r],a=e.getModel([o,n]),s=t.ensureState(o);s.style=i?i(a):a[pl[n]]()}}function dl(t,e){var n=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function gl(t){return!(!t||!t.__highDownDispatcher)}function vl(t){var e=hs[t];return null==e&&cs<=32&&(e=hs[t]=cs++),e}function yl(t){var e=t.type;return e===Ss||e===Os||e===Ts}function ml(t){var e=t.type;return e===bs||e===ws}function _l(t){var e=ps(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}var xl=mr();function bl(t,e,n,i,r){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l="update"===t;if(s){var c=void 0,h=void 0,p=void 0;i?(c=Object(u["M"])(i.duration,200),h=Object(u["M"])(i.easing,"cubicOut"),p=0):(c=e.getShallow(l?"animationDurationUpdate":"animationDuration"),h=e.getShallow(l?"animationEasingUpdate":"animationEasing"),p=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(c=o.duration),null!=o.easing&&(h=o.easing),null!=o.delay&&(p=o.delay)),Object(u["v"])(p)&&(p=p(n,r)),Object(u["v"])(c)&&(c=c(n));var f={duration:c||0,delay:p,easing:h};return f}return null}function wl(t,e,n,i,r,o,a){var s,l=!1;Object(u["v"])(r)?(a=o,o=r,r=null):Object(u["z"])(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var c="leave"===t;c||e.stopAnimation("leave");var h=bl(t,i,r,c?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null);if(h&&h.duration>0){var p=h.duration,f=h.delay,d=h.easing,g={duration:p,delay:f||0,easing:d,done:o,force:!!o||!!a,setToFinal:!c,scope:t,during:a};l?e.animateFrom(n,g):e.animateTo(n,g)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function Sl(t,e,n,i,r,o){wl("update",t,e,n,i,r,o)}function Ol(t,e,n,i,r,o){wl("enter",t,e,n,i,r,o)}function Tl(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var n=t.animators[e];if("leave"===n.scope)return!0}return!1}function kl(t,e,n,i,r,o){Tl(t)||wl("leave",t,e,n,i,r,o)}function Ml(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),kl(t,{style:{opacity:0}},e,n,i)}function Cl(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||Ml(t,e,n,i)})):Ml(t,e,n,i)}function Il(t){xl(t).oldStyle=t.style}var Dl={};function jl(t,e){for(var n=0;n<ys.length;n++){var i=ys[n],r=e[i],o=t.ensureState(i);o.style=o.style||{},o.style.text=r}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function Al(t,e,n){var i,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=Object(u["v"])(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:i},c=0;c<ys.length;c++){var h=ys[c],p=e[h];l[h]=Object(u["M"])(r?r.getFormattedLabel(o,h,null,a,p&&p.get("formatter")):null,i)}return l}function Pl(t,e,n,i){n=n||Dl;for(var r=t instanceof ss,o=!1,a=0;a<ms.length;a++){var s=e[ms[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=r?t:t.getTextContent();if(o){r||(l||(l=new ss,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var c=Al(n,e),h=e.normal,p=!!h.getShallow("show"),f=Rl(h,i&&i.normal,n,!1,!r);f.text=c.normal,r||t.setTextConfig(zl(h,n,!1));for(a=0;a<ys.length;a++){var d=ys[a];s=e[d];if(s){var g=l.ensureState(d),v=!!Object(u["M"])(s.getShallow("show"),p);if(v!==p&&(g.ignore=!v),g.style=Rl(s,i&&i[d],n,!0,!r),g.style.text=c[d],!r){var y=t.ensureState(d);y.textConfig=zl(s,n,!0)}}}l.silent=!!h.getShallow("silent"),null!=l.style.x&&(f.x=l.style.x),null!=l.style.y&&(f.y=l.style.y),l.ignore=!p,l.useStyle(f),l.dirty(),n.enableTextSetter&&(Wl(l).setLabelText=function(t){var i=Al(n,e,t);jl(l,i)})}else l&&(l.ignore=!0);t.dirty()}function Ll(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<ys.length;i++){var r=ys[i];n[r]=t.getModel([r,e])}return n}function Rl(t,e,n,i,r){var o={};return Nl(o,t,n,i,r),e&&Object(u["m"])(o,e),o}function zl(t,e,n){e=e||{};var i,r={},o=t.getShallow("rotate"),a=Object(u["M"])(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(n?null:"inside"),"outside"===i&&(i=e.defaultOutsidePosition||"top"),null!=i&&(r.position=i),null!=s&&(r.offset=s),null!=o&&(o*=Math.PI/180,r.rotation=o),null!=a&&(r.distance=a),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",r}function Nl(t,e,n,i,r){n=n||Dl;var o,a=e.ecModel,s=a&&a.option.textStyle,l=Bl(e);if(l)for(var u in o={},l)if(l.hasOwnProperty(u)){var c=e.getModel(["rich",u]);Vl(o[u]={},c,s,n,i,r,!1,!0)}o&&(t.rich=o);var h=e.get("overflow");h&&(t.overflow=h);var p=e.get("minMargin");null!=p&&(t.margin=p),Vl(t,e,s,n,i,r,!0,!1)}function Bl(t){var e;while(t&&t!==t.ecModel){var n=(t.option||Dl).rich;if(n){e=e||{};for(var i=Object(u["D"])(n),r=0;r<i.length;r++){var o=i[r];e[o]=1}}t=t.parentModel}return e}var El=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Fl=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Hl=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Vl(t,e,n,i,r,o,a,s){n=!r&&n||Dl;var l=i&&i.inheritColor,c=e.getShallow("color"),h=e.getShallow("textBorderColor"),p=Object(u["M"])(e.getShallow("opacity"),n.opacity);"inherit"!==c&&"auto"!==c||(c=l||null),"inherit"!==h&&"auto"!==h||(h=l||null),o||(c=c||n.color,h=h||n.textBorderColor),null!=c&&(t.fill=c),null!=h&&(t.stroke=h);var f=Object(u["M"])(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=f&&(t.lineWidth=f);var d=Object(u["M"])(e.getShallow("textBorderType"),n.textBorderType);null!=d&&(t.lineDash=d);var g=Object(u["M"])(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=g&&(t.lineDashOffset=g),r||null!=p||s||(p=i&&i.defaultOpacity),null!=p&&(t.opacity=p),r||o||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var v=0;v<El.length;v++){var y=El[v],m=Object(u["M"])(e.getShallow(y),n[y]);null!=m&&(t[y]=m)}for(v=0;v<Fl.length;v++){y=Fl[v],m=e.getShallow(y);null!=m&&(t[y]=m)}if(null==t.verticalAlign){var _=e.getShallow("baseline");null!=_&&(t.verticalAlign=_)}if(!a||!i.disableBox){for(v=0;v<Hl.length;v++){y=Hl[v],m=e.getShallow(y);null!=m&&(t[y]=m)}var x=e.getShallow("borderType");null!=x&&(t.borderDash=x),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function Gl(t,e){var n=e&&e.getModel("textStyle");return Object(u["Q"])([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var Wl=mr();var Ul=["textStyle","color"],ql=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Xl=new ss,Yl=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Ul):null)},t.prototype.getFont=function(){return Gl({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<ql.length;n++)e[ql[n]]=this.getShallow(ql[n]);return Xl.useStyle(e),Xl.update(),Xl.getBoundingRect()},t}(),Zl=Yl,Kl=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Ql=Fr(Kl),$l=function(){function t(){}return t.prototype.getLineStyle=function(t){return Ql(this,t)},t}(),Jl=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],tu=Fr(Jl),eu=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return tu(this,t,e)},t}(),nu=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},t.prototype.mergeOption=function(t,e){Object(u["G"])(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,i=null==n?n:n[t];if(null==i&&!e){var r=this.parentModel;r&&(i=r.getShallow(t))}return i},t.prototype.getModel=function(e,n){var i=null!=e,r=i?this.parsePath(e):null,o=i?this._doGet(r):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),new t(o,n,this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){var t=this.constructor;return new t(Object(u["d"])(this.option))},t.prototype.parsePath=function(t){return"string"===typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!l["a"].node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length;i++)if(t[i]&&(n=n&&"object"===typeof n?n[t[i]]:null,null==n))break;return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();Ar(nu),zr(nu),Object(u["H"])(nu,$l),Object(u["H"])(nu,eu),Object(u["H"])(nu,Gr),Object(u["H"])(nu,Zl);var iu=nu,ru=Math.round(10*Math.random());function ou(t){return[t||"",ru++].join("_")}function au(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=Ir(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=Ir(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}function su(t,e){function n(t){var n={},o=[];return u["k"](t,(function(a){var s=i(n,a),l=s.originalDeps=e(a),c=r(l,t);s.entryCount=c.length,0===s.entryCount&&o.push(a),u["k"](c,(function(t){u["q"](s.predecessor,t)<0&&s.predecessor.push(t);var e=i(n,t);u["q"](e.successor,t)<0&&e.successor.push(a)}))})),{graph:n,noEntryList:o}}function i(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function r(t,e){var n=[];return u["k"](t,(function(t){u["q"](e,t)>=0&&n.push(t)})),n}t.topologicalTravel=function(t,e,i,r){if(t.length){var o=n(e),a=o.graph,s=o.noEntryList,l={};u["k"](t,(function(t){l[t]=!0}));while(s.length){var c=s.pop(),h=a[c],p=!!l[c];p&&(i.call(r,c,h.originalDeps.slice()),delete l[c]),u["k"](h.successor,p?d:f)}u["k"](l,(function(){var t="";throw new Error(t)}))}function f(t){a[t].entryCount--,0===a[t].entryCount&&s.push(t)}function d(t){l[t]=!0,f(t)}}}function lu(t,e){return u["G"](u["G"]({},t,!0),e,!0)}var uu={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},cu={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},hu="ZH",pu="EN",fu=pu,du={},gu={},vu=l["a"].domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||fu).toUpperCase();return t.indexOf(hu)>-1?hu:fu}():fu;function yu(t,e){t=t.toUpperCase(),gu[t]=new iu(e),du[t]=e}function mu(t){if(Object(u["A"])(t)){var e=du[t.toUpperCase()]||{};return t===hu||t===pu?Object(u["d"])(e):Object(u["G"])(Object(u["d"])(e),Object(u["d"])(du[fu]),!1)}return Object(u["G"])(Object(u["d"])(t),Object(u["d"])(du[fu]),!1)}function _u(t){return gu[t]}function xu(){return gu[fu]}yu(pu,uu),yu(hu,cu);var bu=1e3,wu=60*bu,Su=60*wu,Ou=24*Su,Tu=365*Ou,ku={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}"},Mu="{yyyy}-{MM}-{dd}",Cu={year:"{yyyy}",month:"{yyyy}-{MM}",day:Mu,hour:Mu+" "+ku.hour,minute:Mu+" "+ku.minute,second:Mu+" "+ku.second,millisecond:ku.none},Iu=["year","month","day","hour","minute","second","millisecond"],Du=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ju(t,e){return t+="","0000".substr(0,e-t.length)+t}function Au(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 Pu(t){return t===Au(t)}function Lu(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ru(t,e,n,i){var r=Hi(t),o=r[Eu(n)](),a=r[Fu(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[Hu(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[Vu(n)](),h=(c-1)%12+1,p=r[Gu(n)](),f=r[Wu(n)](),d=r[Uu(n)](),g=c>=12?"pm":"am",v=g.toUpperCase(),y=i instanceof iu?i:_u(i||vu)||xu(),m=y.getModel("time"),_=m.get("month"),x=m.get("monthAbbr"),b=m.get("dayOfWeek"),w=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,v+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,ju(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,ju(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,ju(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ju(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,ju(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,ju(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,ju(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,ju(d,3)).replace(/{S}/g,d+"")}function zu(t,e,n,i,r){var o=null;if(u["A"](n))o=n;else if(u["v"](n))o=n(t.value,e,{level:t.level});else{var a=u["m"]({},ku);if(t.level>0)for(var s=0;s<Iu.length;++s)a[Iu[s]]="{primary|"+a[Iu[s]]+"}";var l=n?!1===n.inherit?n:u["i"](n,a):a,c=Nu(t.value,r);if(l[c])o=l[c];else if(l.inherit){var h=Du.indexOf(c);for(s=h-1;s>=0;--s)if(l[c]){o=l[c];break}o=o||a.none}if(u["s"](o)){var p=null==t.level?0:t.level>=0?t.level:o.length+t.level;p=Math.min(p,o.length-1),o=o[p]}}return Ru(new Date(t.value),o,r,i)}function Nu(t,e){var n=Hi(t),i=n[Fu(e)]()+1,r=n[Hu(e)](),o=n[Vu(e)](),a=n[Gu(e)](),s=n[Wu(e)](),l=n[Uu(e)](),u=0===l,c=u&&0===s,h=c&&0===a,p=h&&0===o,f=p&&1===r,d=f&&1===i;return d?"year":f?"month":p?"day":h?"hour":c?"minute":u?"second":"millisecond"}function Bu(t,e,n){var i=u["y"](t)?Hi(t):t;switch(e=e||Nu(t,n),e){case"year":return i[Eu(n)]();case"half-year":return i[Fu(n)]()>=6?1:0;case"quarter":return Math.floor((i[Fu(n)]()+1)/4);case"month":return i[Fu(n)]();case"day":return i[Hu(n)]();case"half-day":return i[Vu(n)]()/24;case"hour":return i[Vu(n)]();case"minute":return i[Gu(n)]();case"second":return i[Wu(n)]();case"millisecond":return i[Uu(n)]()}}function Eu(t){return t?"getUTCFullYear":"getFullYear"}function Fu(t){return t?"getUTCMonth":"getMonth"}function Hu(t){return t?"getUTCDate":"getDate"}function Vu(t){return t?"getUTCHours":"getHours"}function Gu(t){return t?"getUTCMinutes":"getMinutes"}function Wu(t){return t?"getUTCSeconds":"getSeconds"}function Uu(t){return t?"getUTCMilliseconds":"getMilliseconds"}function qu(t){return t?"setUTCFullYear":"setFullYear"}function Xu(t){return t?"setUTCMonth":"setMonth"}function Yu(t){return t?"setUTCDate":"setDate"}function Zu(t){return t?"setUTCHours":"setHours"}function Ku(t){return t?"setUTCMinutes":"setMinutes"}function Qu(t){return t?"setUTCSeconds":"setSeconds"}function $u(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Ju(t){if(!qi(t))return u["A"](t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function tc(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var ec=u["J"];function nc(t,e,n){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function r(t){return t&&u["Q"](t)?t:"-"}function o(t){return!(null==t||isNaN(t)||!isFinite(t))}var a="time"===e,s=t instanceof Date;if(a||s){var l=a?Hi(t):t;if(!isNaN(+l))return Ru(l,i,n);if(s)return"-"}if("ordinal"===e)return u["B"](t)?r(t):u["y"](t)&&o(t)?t+"":"-";var c=Ui(t);return o(c)?Ju(c):u["B"](t)?r(t):"boolean"===typeof t?t+"":"-"}var ic=["a","b","c","d","e","f","g"],rc=function(t,e){return"{"+t+(null==e?"":e)+"}"};function oc(t,e,n){u["s"](e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=ic[o];t=t.replace(rc(a),rc(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var c=e[s][r[l]];t=t.replace(rc(ic[l],s),n?G(c):c)}return t}function ac(t,e){var n=u["A"](t)?{color:t,extraCssText:e}:t||{},i=n.color,r=n.type;e=n.extraCssText;var o=n.renderMode||"html";if(!i)return"";if("html"===o)return"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+G(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+G(i)+";"+(e||"")+'"></span>';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function sc(t,e){return e=e||"transparent",u["A"](t)?t:u["z"](t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function lc(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var uc=u["k"],cc=["left","right","top","bottom","width","height"],hc=[["width","left","right"],["height","top","bottom"]];function pc(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,u){var c,h,p=l.getBoundingRect(),f=e.childAt(u+1),d=f&&f.getBoundingRect();if("horizontal"===t){var g=p.width+(d?-d.x+p.x:0);c=o+g,c>i||l.newline?(o=0,c=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var v=p.height+(d?-d.y+p.y:0);h=a+v,h>r||l.newline?(o+=s+n,a=0,h=v,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)}))}var fc=pc;u["h"](pc,"vertical"),u["h"](pc,"horizontal");function dc(t,e,n){n=ec(n||0);var i=e.width,r=e.height,o=Ai(t.left,i),a=Ai(t.top,r),s=Ai(t.right,i),l=Ai(t.bottom,r),u=Ai(t.width,i),c=Ai(t.height,r),h=n[2]+n[0],p=n[1]+n[3],f=t.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(c)&&(c=r-l-h-a),null!=f&&(isNaN(u)&&isNaN(c)&&(f>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=f*c),isNaN(c)&&(c=u/f)),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-c-h),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-p;break}switch(t.top||t.bottom){case"middle":case"center":a=r/2-c/2-n[0];break;case"bottom":a=r-c-h;break}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(c)&&(c=r-h-a-(l||0));var d=new Ot(o+n[3],a+n[0],u,c);return d.margin=n,d}function gc(t){var e=t.layoutMode||t.constructor.layoutMode;return u["z"](e)?e:e?{type:e}:null}function vc(t,e,n){var i=n&&n.ignoreSize;!u["s"](i)&&(i=[i,i]);var r=a(hc[0],0),o=a(hc[1],1);function a(n,r){var o={},a=0,u={},c=0,h=2;if(uc(n,(function(e){u[e]=t[e]})),uc(n,(function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&c++})),i[r])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(c!==h&&a){if(a>=h)return o;for(var p=0;p<n.length;p++){var f=n[p];if(!s(o,f)&&s(t,f)){o[f]=t[f];break}}return o}return u}function s(t,e){return t.hasOwnProperty(e)}function l(t,e){return null!=t[e]&&"auto"!==t[e]}function c(t,e,n){uc(t,(function(t){e[t]=n[t]}))}c(hc[0],t,r),c(hc[1],t,o)}function yc(t){return mc({},t)}function mc(t,e){return e&&t&&uc(cc,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}var _c=mr(),xc=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=ou("ec_cpt_model"),r}return s(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=gc(this),i=n?yc(t):{},r=e.getTheme();u["G"](t,r.get(this.mainType)),u["G"](t,this.getDefaultOption()),n&&vc(t,i,n)},e.prototype.mergeOption=function(t,e){u["G"](this.option,t,!0);var n=gc(this);n&&vc(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!jr(t))return t.defaultOption;var e=_c(this);if(!e.defaultOption){var n=[],i=t;while(i){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;a>=0;a--)o=u["G"](o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return Sr(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(iu);function bc(t){var e=[];return u["k"](xc.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=u["F"](e,(function(t){return Ir(t).main})),"dataset"!==t&&u["q"](e,"dataset")<=0&&e.unshift("dataset"),e}Lr(xc,iu),Er(xc),au(xc),su(xc,bc);var wc=xc,Sc="";"undefined"!==typeof navigator&&(Sc=navigator.platform||"");var Oc="rgba(0, 0, 0, 0.2)",Tc={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Oc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Oc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Oc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Oc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Oc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Oc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Sc.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},kc=Object(u["f"])(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Mc="original",Cc="arrayRows",Ic="objectRows",Dc="keyedColumns",jc="typedArray",Ac="unknown",Pc="column",Lc="row",Rc={Must:1,Might:2,Not:3},zc=mr();function Nc(t){zc(t).datasetMap=Object(u["f"])()}function Bc(t,e,n){var i={},r=Ec(t);if(!r)return i;var o,a=e.sourceFormat,s=e.dimensionsDefine;a!==Ic&&a!==Dc||Object(u["k"])(s,(function(t,e){"name"===(Object(u["z"])(t)?t.name:t)&&(o=e)}));var l=function(){for(var t={},i={},r=[],l=0,u=Math.min(5,n);l<u;l++){var c=Vc(e.data,a,e.seriesLayoutBy,s,e.startIndex,l);r.push(c);var h=c===Rc.Not;if(h&&null==t.v&&l!==o&&(t.v=l),(null==t.n||t.n===t.v||!h&&r[t.n]===Rc.Not)&&(t.n=l),p(t)&&r[t.n]!==Rc.Not)return t;h||(c===Rc.Might&&null==i.v&&l!==o&&(i.v=l),null!=i.n&&i.n!==i.v||(i.n=l))}function p(t){return null!=t.v&&null!=t.n}return p(t)?t:p(i)?i:null}();if(l){i.value=[l.v];var c=null!=o?o:l.n;i.itemName=[c],i.seriesName=[c]}return i}function Ec(t){var e=t.get("data",!0);if(!e)return Sr(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},wr).models[0]}function Fc(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?Sr(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},wr).models:[]}function Hc(t,e){return Vc(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Vc(t,e,n,i,r,o){var a,s,l,c=5;if(Object(u["C"])(t))return Rc.Not;if(i){var h=i[o];Object(u["z"])(h)?(s=h.name,l=h.type):Object(u["A"])(h)&&(s=h)}if(null!=l)return"ordinal"===l?Rc.Must:Rc.Not;if(e===Cc){var p=t;if(n===Lc){for(var f=p[o],d=0;d<(f||[]).length&&d<c;d++)if(null!=(a=b(f[r+d])))return a}else for(d=0;d<p.length&&d<c;d++){var g=p[r+d];if(g&&null!=(a=b(g[o])))return a}}else if(e===Ic){var v=t;if(!s)return Rc.Not;for(d=0;d<v.length&&d<c;d++){var y=v[d];if(y&&null!=(a=b(y[s])))return a}}else if(e===Dc){var m=t;if(!s)return Rc.Not;f=m[s];if(!f||Object(u["C"])(f))return Rc.Not;for(d=0;d<f.length&&d<c;d++)if(null!=(a=b(f[d])))return a}else if(e===Mc){var _=t;for(d=0;d<_.length&&d<c;d++){y=_[d];var x=er(y);if(!Object(u["s"])(x))return Rc.Not;if(null!=(a=b(x[o])))return a}}function b(t){var e=Object(u["A"])(t);return null!=t&&Number.isFinite(Number(t))&&""!==t?e?Rc.Might:Rc.Not:e&&"-"!==t?Rc.Must:void 0}return Rc.Not}var Gc=Object(u["f"])();function Wc(t,e,n){var i=Gc.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}var Uc=mr(),qc=(mr(),function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var i=$i(this.get("color",!0)),r=this.get("colorLayer",!0);return Yc(this,Uc,i,r,t,e,n)},t.prototype.clearColorPalette=function(){Zc(this,Uc)},t}());function Xc(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}function Yc(t,e,n,i,r,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=a&&i?Xc(i,a):n;if(c=c||n,c&&c.length){var h=c[l];return r&&(u[r]=h),s.paletteIdx=(l+1)%c.length,h}}function Zc(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Kc,Qc,$c;"undefined"!==typeof console&&console.warn&&console.log;function Jc(t){0}function th(t){throw new Error(t)}var eh="\0_ec_inner",nh=1;var ih=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new iu(i),this._locale=new iu(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=lh(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,lh(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):$c(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&Object(u["k"])(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=Object(u["f"])(),s=e&&e.replaceMergeMainTypeMap;function l(e){var o=Wc(this,e,$i(t[e])),a=i.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",c=ir(a,o,l);gr(c,e,wc),n[e]=null,i.set(e,null),r.set(e,0);var h,p=[],f=[],d=0;Object(u["k"])(c,(function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,a=wc.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(h)return void 0;h=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=Object(u["m"])({componentIndex:n},t.keyInfo);i=new a(r,this,this,s),Object(u["m"])(i,s),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(p.push(i.option),f.push(i),d++):(p.push(void 0),f.push(void 0))}),this),n[e]=p,i.set(e,f),r.set(e,d),"series"===e&&Kc(this)}Nc(this),Object(u["k"])(t,(function(t,e){null!=t&&(wc.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?Object(u["d"])(t):Object(u["G"])(n[e],t,!0))})),s&&s.each((function(t,e){wc.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),wc.topologicalTravel(o,wc.getAllClassMainTypes(),l,this),this._seriesIndices||Kc(this)},e.prototype.getOption=function(){var t=Object(u["d"])(this.option);return Object(u["k"])(t,(function(e,n){if(wc.hasClass(n)){for(var i=$i(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!dr(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}})),delete t[eh],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=i?(n=[],Object(u["k"])($i(i),(function(t){a[t]&&n.push(a[t])}))):n=null!=r?ah("id",r,a):null!=o?ah("name",o,a):Object(u["n"])(a,(function(t){return!!t})),sh(n,t)):[]},e.prototype.findComponents=function(t){var e=t.query,n=t.mainType,i=o(e),r=i?this.queryComponents(i):Object(u["n"])(this._componentsMap.get(n),(function(t){return!!t}));return a(sh(r,t));function o(t){var e=n+"Index",i=n+"Id",r=n+"Name";return!t||null==t[e]&&null==t[i]&&null==t[r]?null:{mainType:n,index:t[e],id:t[i],name:t[r]}}function a(e){return t.filter?Object(u["n"])(e,t.filter):e}},e.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(Object(u["v"])(t)){var r=e,o=t;i.each((function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&o.call(r,e,i,i.componentIndex)}}))}else for(var a=Object(u["A"])(t)?i.get(t):Object(u["z"])(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=pr(t,null);return Object(u["n"])(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Object(u["n"])(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return Object(u["n"])(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){Qc(this),Object(u["k"])(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)}),this)},e.prototype.eachRawSeries=function(t,e){Object(u["k"])(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){Qc(this),Object(u["k"])(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)}),this)},e.prototype.eachRawSeriesByType=function(t,e,n){return Object(u["k"])(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return Qc(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){Qc(this);var n=[];Object(u["k"])(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];t.call(e,r,i)&&n.push(i)}),this),this._seriesIndices=n,this._seriesIndicesMap=Object(u["f"])(n)},e.prototype.restoreData=function(t){Kc(this);var e=this._componentsMap,n=[];e.each((function(t,e){wc.hasClass(e)&&n.push(e)})),wc.topologicalTravel(n,wc.getAllClassMainTypes(),(function(n){Object(u["k"])(e.get(n),(function(e){!e||"series"===n&&rh(e,t)||e.restoreData()}))}))},e.internalField=function(){Kc=function(t){var e=t._seriesIndices=[];Object(u["k"])(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=Object(u["f"])(e)},Qc=function(t){0},$c=function(t,e){t.option={},t.option[eh]=nh,t._componentsMap=Object(u["f"])({series:[]}),t._componentsCount=Object(u["f"])();var n=e.aria;Object(u["z"])(n)&&null==n.enabled&&(n.enabled=!0),oh(e,t._theme.option),Object(u["G"])(e,Tc,!1),t._mergeOption(e,null)}}(),e}(iu);function rh(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}function oh(t,e){var n=t.color&&!t.colorLayer;Object(u["k"])(e,(function(e,i){"colorLayer"===i&&n||wc.hasClass(i)||("object"===typeof e?t[i]=t[i]?Object(u["G"])(t[i],e,!1):Object(u["d"])(e):null==t[i]&&(t[i]=e))}))}function ah(t,e,n){if(Object(u["s"])(e)){var i=Object(u["f"])();return Object(u["k"])(e,(function(t){if(null!=t){var e=pr(t,null);null!=e&&i.set(t,!0)}})),Object(u["n"])(n,(function(e){return e&&i.get(e[t])}))}var r=pr(e,null);return Object(u["n"])(n,(function(e){return e&&null!=r&&e[t]===r}))}function sh(t,e){return e.hasOwnProperty("subType")?Object(u["n"])(t,(function(t){return t&&t.subType===e.subType})):t}function lh(t){var e=Object(u["f"])();return t&&Object(u["k"])($i(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}Object(u["H"])(ih,qc);var uh=ih,ch=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],hh=function(){function t(t){u["k"](ch,(function(e){this[e]=u["c"](t[e],t)}),this)}return t}(),ph=hh,fh={},dh=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];u["k"](fh,(function(i,r){var o=i.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){u["k"](this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){fh[t]=e},t.get=function(t){return fh[t]},t}(),gh=dh,vh=/^(min|max)?(.+)$/,yh=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(Object(u["k"])($i(t.series),(function(t){t&&t.data&&Object(u["C"])(t.data)&&Object(u["O"])(t.data)})),Object(u["k"])($i(t.dataset),(function(t){t&&t.source&&Object(u["C"])(t.source)&&Object(u["O"])(t.source)}))),t=Object(u["d"])(t);var i=this._optionBackup,r=mh(t,e,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],Object(u["d"])(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=Object(u["d"])(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,r=this._mediaDefault,o=[],a=[];if(!i.length&&!r)return a;for(var s=0,l=i.length;s<l;s++)_h(i[s].query,e,n)&&o.push(s);return!o.length&&r&&(o=[-1]),o.length&&!bh(o,this._currentMediaIndices)&&(a=Object(u["F"])(o,(function(t){return Object(u["d"])(-1===t?r.option:i[t].option)}))),this._currentMediaIndices=o,a},t}();function mh(t,e,n){var i,r,o=[],a=t.baseOption,s=t.timeline,l=t.options,c=t.media,h=!!t.media,p=!!(l||s||a&&a.timeline);function f(t){Object(u["k"])(e,(function(e){e(t,n)}))}return a?(r=a,r.timeline||(r.timeline=s)):((p||h)&&(t.options=t.media=null),r=t),h&&Object(u["s"])(c)&&Object(u["k"])(c,(function(t){t&&t.option&&(t.query?o.push(t):i||(i=t))})),f(r),Object(u["k"])(l,(function(t){return f(t)})),Object(u["k"])(o,(function(t){return f(t.option)})),{baseOption:r,timelineOptions:l||[],mediaDefault:i,mediaList:o}}function _h(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return Object(u["k"])(t,(function(t,e){var n=e.match(vh);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();xh(i[a],t,o)||(r=!1)}})),r}function xh(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e}function bh(t,e){return t.join(",")===e.join(",")}var wh=yh,Sh=u["k"],Oh=u["z"],Th=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function kh(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=Th.length;n<i;n++){var r=Th[n],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?u["G"](t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?u["G"](t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function Mh(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,u["i"](t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function Ch(t){Mh(t,"itemStyle"),Mh(t,"lineStyle"),Mh(t,"areaStyle"),Mh(t,"label"),Mh(t,"labelLine"),Mh(t,"upperLabel"),Mh(t,"edgeLabel")}function Ih(t,e){var n=Oh(t)&&t[e],i=Oh(n)&&n.textStyle;if(i){0;for(var r=0,o=tr.length;r<o;r++){var a=tr[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}}function Dh(t){t&&(Ch(t),Ih(t,"label"),t.emphasis&&Ih(t.emphasis,"label"))}function jh(t){if(Oh(t)){kh(t),Ch(t),Ih(t,"label"),Ih(t,"upperLabel"),Ih(t,"edgeLabel"),t.emphasis&&(Ih(t.emphasis,"label"),Ih(t.emphasis,"upperLabel"),Ih(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(kh(e),Dh(e));var n=t.markLine;n&&(kh(n),Dh(n));var i=t.markArea;i&&Dh(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!u["C"](o))for(var a=0;a<o.length;a++)Dh(o[a]);u["k"](t.categories,(function(t){Ch(t)}))}if(r&&!u["C"](r))for(a=0;a<r.length;a++)Dh(r[a]);if(e=t.markPoint,e&&e.data){var s=e.data;for(a=0;a<s.length;a++)Dh(s[a])}if(n=t.markLine,n&&n.data){var l=n.data;for(a=0;a<l.length;a++)u["s"](l[a])?(Dh(l[a][0]),Dh(l[a][1])):Dh(l[a])}"gauge"===t.type?(Ih(t,"axisLabel"),Ih(t,"title"),Ih(t,"detail")):"treemap"===t.type?(Mh(t.breadcrumb,"itemStyle"),u["k"](t.levels,(function(t){Ch(t)}))):"tree"===t.type&&Ch(t.leaves)}}function Ah(t){return u["s"](t)?t:t?[t]:[]}function Ph(t){return(u["s"](t)?t[0]:t)||{}}function Lh(t,e){Sh(Ah(t.series),(function(t){Oh(t)&&jh(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Sh(n,(function(e){Sh(Ah(t[e]),(function(t){t&&(Ih(t,"axisLabel"),Ih(t.axisPointer,"label"))}))})),Sh(Ah(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;Ih(e,"axisLabel"),Ih(e&&e.axisPointer,"label")})),Sh(Ah(t.calendar),(function(t){Mh(t,"itemStyle"),Ih(t,"dayLabel"),Ih(t,"monthLabel"),Ih(t,"yearLabel")})),Sh(Ah(t.radar),(function(t){Ih(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)})),Sh(Ah(t.geo),(function(t){Oh(t)&&(Dh(t),Sh(Ah(t.regions),(function(t){Dh(t)})))})),Sh(Ah(t.timeline),(function(t){Dh(t),Mh(t,"label"),Mh(t,"itemStyle"),Mh(t,"controlStyle",!0);var e=t.data;u["s"](e)&&u["k"](e,(function(t){u["z"](t)&&(Mh(t,"label"),Mh(t,"itemStyle"))}))})),Sh(Ah(t.toolbox),(function(t){Mh(t,"iconStyle"),Sh(t.feature,(function(t){Mh(t,"iconStyle")}))})),Ih(Ph(t.axisPointer),"label"),Ih(Ph(t.tooltip).axisPointer,"label")}function Rh(t,e){for(var n=e.split(","),i=t,r=0;r<n.length;r++)if(i=i&&i[n[r]],null==i)break;return i}function zh(t,e,n,i){for(var r,o=e.split(","),a=t,s=0;s<o.length-1;s++)r=o[s],null==a[r]&&(a[r]={}),a=a[r];(i||null==a[o[s]])&&(a[o[s]]=n)}function Nh(t){t&&Object(u["k"])(Bh,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var Bh=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Eh=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Fh=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Hh(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<Fh.length;n++){var i=Fh[n][1],r=Fh[n][0];null!=e[i]&&(e[r]=e[i])}}function Vh(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Gh(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Wh(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}function Uh(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&Uh(t[n].children,e)}function qh(t,e){Lh(t,e),t.series=$i(t.series),Object(u["k"])(t.series,(function(t){if(Object(u["z"])(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),Vh(t.label);var n=t.data;if(n&&!Object(u["C"])(n))for(var i=0;i<n.length;i++)Vh(n[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var r=Rh(t,"pointer.color");null!=r&&zh(t,"itemStyle.color",r)}else if("bar"===e){Hh(t),Hh(t.backgroundStyle),Hh(t.emphasis);n=t.data;if(n&&!Object(u["C"])(n))for(i=0;i<n.length;i++)"object"===typeof n[i]&&(Hh(n[i]),Hh(n[i]&&n[i].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),Gh(t),Uh(t.data,Gh)}else"graph"===e||"sankey"===e?Wh(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&Object(u["i"])(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),Nh(t)}})),t.dataRange&&(t.visualMap=t.dataRange),Object(u["k"])(Eh,(function(e){var n=t[e];n&&(Object(u["s"])(n)||(n=[n]),Object(u["k"])(n,(function(t){Nh(t)})))}))}function Xh(t){var e=Object(u["f"])();t.eachSeries((function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}})),e.each(Yh)}function Yh(t){Object(u["k"])(t,(function(e,n){var i=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,u,c){var h,p,f=a.get(e.stackedDimension,c);if(isNaN(f))return r;s?p=a.getRawIndex(c):h=a.get(e.stackedByDimension,c);for(var d=NaN,g=n-1;g>=0;g--){var v=t[g];if(s||(p=v.data.rawIndexOf(v.stackedByDimension,h)),p>=0){var y=v.data.getByRawIndex(v.stackResultDimension,p);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&f>=0&&y>0||"samesign"===l&&f<=0&&y<0){f=Ni(f,y),d=y;break}}}return i[0]=f,i[1]=d,i}))}))}var Zh,Kh,Qh,$h,Jh,tp=function(){function t(t){this.data=t.data||(t.sourceFormat===Dc?{}:[]),this.sourceFormat=t.sourceFormat||Ac,this.seriesLayoutBy=t.seriesLayoutBy||Pc,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&&Hc(this,n)===Rc.Must&&(i.type="ordinal")}}return t}();function ep(t){return t instanceof tp}function np(t,e,n){n=n||op(t);var i=e.seriesLayoutBy,r=ap(t,n,i,e.sourceHeader,e.dimensions),o=new tp({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:Object(u["d"])(e)});return o}function ip(t){return new tp({data:t,sourceFormat:Object(u["C"])(t)?jc:Mc})}function rp(t){return new tp({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Object(u["d"])(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function op(t){var e=Ac;if(Object(u["C"])(t))e=jc;else if(Object(u["s"])(t)){0===t.length&&(e=Cc);for(var n=0,i=t.length;n<i;n++){var r=t[n];if(null!=r){if(Object(u["s"])(r)||Object(u["C"])(r)){e=Cc;break}if(Object(u["z"])(r)){e=Ic;break}}}}else if(Object(u["z"])(t))for(var o in t)if(Object(u["p"])(t,o)&&Object(u["t"])(t[o])){e=Dc;break}return e}function ap(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:lp(r),startIndex:a,dimensionsDetectedCount:o};if(e===Cc){var s=t;"auto"===i||null==i?up((function(t){null!=t&&"-"!==t&&(Object(u["A"])(t)?null==a&&(a=1):a=0)}),n,s,10):a=Object(u["y"])(i)?i:i?1:0,r||1!==a||(r=[],up((function(t,e){r[e]=null!=t?t+"":""}),n,s,1/0)),o=r?r.length:n===Lc?s.length:s[0]?s[0].length:null}else if(e===Ic)r||(r=sp(t));else if(e===Dc)r||(r=[],Object(u["k"])(t,(function(t,e){r.push(e)})));else if(e===Mc){var l=er(t[0]);o=Object(u["s"])(l)&&l.length||1}return{startIndex:a,dimensionsDefine:lp(r),dimensionsDetectedCount:o}}function sp(t){var e,n=0;while(n<t.length&&!(e=t[n++]));if(e)return Object(u["D"])(e)}function lp(t){if(t){var e=Object(u["f"])();return Object(u["F"])(t,(function(t,n){t=Object(u["z"])(t)?t:{name:t};var i={name:t.name,displayName:t.displayName,type:t.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var r=e.get(i.name);return r?i.name+="-"+r.count++:e.set(i.name,{count:1}),i}))}}function up(t,e,n,i){if(e===Lc)for(var r=0;r<n.length&&r<i;r++)t(n[r]?n[r][0]:null,r);else{var o=n[0]||[];for(r=0;r<o.length&&r<i;r++)t(o[r],r)}}function cp(t){var e=t.sourceFormat;return e===Ic||e===Dc}var hp=function(){function t(t,e){var n=ep(t)?t:ip(t);this._source=n;var i=this._data=n.data;n.sourceFormat===jc&&(this._offset=0,this._dimSize=e,this._data=i),Jh(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var t;Jh=function(t,r,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,c=o.dimensionsDefine,h=$h[bp(a,s)];if(Object(u["m"])(t,h),a===jc)t.getItem=e,t.count=i,t.fillStorage=n;else{var p=dp(a,s);t.getItem=Object(u["c"])(p,null,r,l,c);var f=yp(a,s);t.count=Object(u["c"])(f,null,r,l,c)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;o<i;o++)e[o]=n[r+o];return e},n=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[a],p=0;p<c;p++){var f=r[p*o+a];h[t+p]=f,f<l&&(l=f),f>u&&(u=f)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}t={},t[Cc+"_"+Pc]={pure:!0,appendData:r},t[Cc+"_"+Lc]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ic]={pure:!0,appendData:r},t[Dc]={pure:!0,appendData:function(t){var e=this._data;Object(u["k"])(t,(function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])}))}},t[Mc]={appendData:r},t[jc]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},$h=t}(),t}(),pp=function(t,e,n,i){return t[i]},fp=(Zh={},Zh[Cc+"_"+Pc]=function(t,e,n,i){return t[i+e]},Zh[Cc+"_"+Lc]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},Zh[Ic]=pp,Zh[Dc]=function(t,e,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=n[a].name;0;var l=t[s];o[a]=l?l[i]:null}return o},Zh[Mc]=pp,Zh);function dp(t,e){var n=fp[bp(t,e)];return n}var gp=function(t,e,n){return t.length},vp=(Kh={},Kh[Cc+"_"+Pc]=function(t,e,n){return Math.max(0,t.length-e)},Kh[Cc+"_"+Lc]=function(t,e,n){var i=t[0];return i?Math.max(0,i.length-e):0},Kh[Ic]=gp,Kh[Dc]=function(t,e,n){var i=n[0].name;var r=t[i];return r?r.length:0},Kh[Mc]=gp,Kh);function yp(t,e){var n=vp[bp(t,e)];return n}var mp=function(t,e,n){return t[e]},_p=(Qh={},Qh[Cc]=mp,Qh[Ic]=function(t,e,n){return t[n]},Qh[Dc]=mp,Qh[Mc]=function(t,e,n){var i=er(t);return i instanceof Array?i[e]:i},Qh[jc]=mp,Qh);function xp(t){var e=_p[t];return e}function bp(t,e){return t===Cc?t+"_"+e:t}function wp(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=r.getDimensionProperty(a);return xp(o)(i,a,s)}var l=i;return o===Mc&&(l=er(i)),l}}}var Sp=/\{@(.+?)\}/g,Op=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,p=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:i,color:l,borderColor:u,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,i,r,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);if(o&&(s.value=o.interpolatedValue),null!=i&&u["s"](s.value)&&(s.value=s.value[i]),!r){var l=a.getItemModel(t);r=l.get("normal"===e?["label","formatter"]:[e,"label","formatter"])}if(u["v"](r))return s.status=e,s.dimensionIndex=i,r(s);if(u["A"](r)){var c=oc(r,s);return c.replace(Sp,(function(e,n){var i=n.length,r=n;"["===r.charAt(0)&&"]"===r.charAt(i-1)&&(r=+r.slice(1,i-1));var s=wp(a,t,r);if(o&&u["s"](o.interpolatedValue)){var l=a.getDimensionIndex(r);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}))}},t.prototype.getRawValue=function(t,e){return wp(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function Tp(t){var e,n;return u["z"](t)?t.type&&(n=t):e=t,{text:e,frag:n}}function kp(t){return new Mp(t)}var Mp=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var o,a=h(this._modBy),s=this._modDataCount||0,l=h(t&&t.modBy),c=t&&t.modDataCount||0;function h(t){return!(t>=1)&&(t=1),t}a===l&&s===c||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=c;var p=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,d=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(o||f<d)){var g=this._progress;if(Object(u["s"])(g))for(var v=0;v<g.length;v++)this._doProgress(g[v],f,d,l,c);else this._doProgress(g,f,d,l,c)}this._dueIndex=d;var y=null!=this._settedOutputEnd?this._settedOutputEnd:d;0,this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,i,r){Cp.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Cp.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),Object(u["s"])(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),Cp=function(){var t,e,n,i,r,o={reset:function(l,u,c,h){e=l,t=u,n=c,i=h,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%r*n+Math.ceil(e/r),a=e>=t?null:o<i?o:e;return e++,a}}();function Ip(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||Object(u["y"])(t)||null==t||"-"===t||(t=+Hi(t)),null==t||""===t?NaN:Number(t))}Object(u["f"])({number:function(t){return parseFloat(t)},time:function(t){return+Hi(t)},trim:function(t){return Object(u["A"])(t)?Object(u["Q"])(t):t}});var Dp={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},jp=(function(){function t(t,e){if(!Object(u["y"])(e)){var n="";0,th(n)}this._opFn=Dp[t],this._rvalFloat=Ui(e)}t.prototype.evaluate=function(t){return Object(u["y"])(t)?this._opFn(t,this._rvalFloat):this._opFn(Ui(t),this._rvalFloat)}}(),function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Object(u["y"])(t)?t:Ui(t),i=Object(u["y"])(e)?e:Ui(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=Object(u["A"])(t),s=Object(u["A"])(e);a&&(n=s?t:0),s&&(i=a?e:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t}());(function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Ui(e)}t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=Ui(t)===this._rvalFloat)}return this._isEQ?e:!e}})();var Ap=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return Ip(t,e)},t}();function Pp(t,e){var n=new Ap,i=t.data,r=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==Pc&&th(a);var s=[],l={},c=t.dimensionsDefine;if(c)Object(u["k"])(c,(function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};if(s.push(i),null!=n){var r="";Object(u["p"])(l,n)&&th(r),l[n]=i}}));else for(var h=0;h<t.dimensionsDetectedCount;h++)s.push({index:h});var p=dp(r,Pc);e.__isBuiltIn&&(n.getRawDataItem=function(t){return p(i,o,s,t)},n.getRawData=Object(u["c"])(Lp,null,t)),n.cloneRawData=Object(u["c"])(Rp,null,t);var f=yp(r,Pc);n.count=Object(u["c"])(f,null,i,o,s);var d=xp(r);n.retrieveValue=function(t,e){var n=p(i,o,s,t);return g(n,e)};var g=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=s[e];return n?d(t,e,n.name):void 0}};return n.getDimensionInfo=Object(u["c"])(zp,null,s,l),n.cloneAllDimensionInfo=Object(u["c"])(Np,null,s),n}function Lp(t){var e=t.sourceFormat;if(!Vp(e)){var n="";0,th(n)}return t.data}function Rp(t){var e=t.sourceFormat,n=t.data;if(!Vp(e)){var i="";0,th(i)}if(e===Cc){for(var r=[],o=0,a=n.length;o<a;o++)r.push(n[o].slice());return r}if(e===Ic){for(r=[],o=0,a=n.length;o<a;o++)r.push(Object(u["m"])({},n[o]));return r}}function zp(t,e,n){if(null!=n)return Object(u["y"])(n)||!isNaN(n)&&!Object(u["p"])(e,n)?t[n]:Object(u["p"])(e,n)?e[n]:void 0}function Np(t){return Object(u["d"])(t)}var Bp=Object(u["f"])();function Ep(t){t=Object(u["d"])(t);var e=t.type,n="";e||th(n);var i=e.split(":");2!==i.length&&th(n);var r=!1;"echarts"===i[0]&&(e=i[1],r=!0),t.__isBuiltIn=r,Bp.set(e,t)}function Fp(t,e,n){var i=$i(t),r=i.length,o="";r||th(o);for(var a=0,s=r;a<s;a++){var l=i[a];e=Hp(l,e,n,1===r?null:a),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function Hp(t,e,n,i){var r="";e.length||th(r),Object(u["z"])(t)||th(r);var o=t.type,a=Bp.get(o);a||th(r);var s=Object(u["F"])(e,(function(t){return Pp(t,a)})),l=$i(a.transform({upstream:s[0],upstreamList:s,config:Object(u["d"])(t.config)}));return Object(u["F"])(l,(function(t,n){var i="";Object(u["z"])(t)||th(i),t.data||th(i);var r,o=op(t.data);Vp(o)||th(i);var a=e[0];if(a&&0===n&&!t.dimensions){var s=a.startIndex;s&&(t.data=a.data.slice(0,s).concat(t.data)),r={seriesLayoutBy:Pc,sourceHeader:s,dimensions:a.metaRawOption.dimensions}}else r={seriesLayoutBy:Pc,sourceHeader:0,dimensions:t.dimensions};return np(t.data,r,null)}))}function Vp(t){return t===Cc||t===Ic}var Gp,Wp="undefined",Up=typeof Uint32Array===Wp?Array:Uint32Array,qp=typeof Uint16Array===Wp?Array:Uint16Array,Xp=typeof Int32Array===Wp?Array:Int32Array,Yp=typeof Float64Array===Wp?Array:Float64Array,Zp={float:Yp,int:Xp,ordinal:Array,number:Array,time:Yp};function Kp(t){return t>65535?Up:qp}function Qp(){return[1/0,-1/0]}function $p(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Jp(t,e,n,i,r){var o=Zp[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(i)}var tf=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Object(u["f"])()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),r=this.defaultDimValueGetter=Gp[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[];cp(i);this._dimensions=Object(u["F"])(e,(function(t){return{type:t.type,property:t.property}})),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new Zp[e||"float"](this._rawCount),this._rawExtent[r]=Qp(),r},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[t]=Qp());for(var s=r[t],l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},t.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<r;l++){var u=i[l];Jp(n,l,u.type,s,!0)}for(var c=[],h=a;h<s;h++)for(var p=h-a,f=0;f<r;f++){u=i[f];var d=Gp.arrayRows.call(this,t[p]||c,u.property,p,f);n[f][h]=d;var g=o[f];d<g[0]&&(g[0]=d),d>g[1]&&(g[1]=d)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=Object(u["F"])(o,(function(t){return t.property})),c=0;c<a;c++){var h=o[c];s[c]||(s[c]=Qp()),Jp(r,c,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,s);else for(var p=[],f=t;f<e;f++){p=i.getItem(f,p);for(var d=0;d<a;d++){var g=r[d],v=this._dimValueGetter(p,l[d],f,d);g[f]=v;var y=s[d];v<y[0]&&(y[0]=v),v>y[1]&&(y[1]=v)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=t;r=0;for(var o=i.length;r<o;r++)n.push(this.get(i[r],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var i=0,r=this.count();i<r;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},t.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})),i=this.count();return 0===i?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.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;var i=0,r=this._count-1;while(i<=r){var o=(i+r)/2|0;if(e[o]<t)i=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,r=i[t],o=[];if(!r)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();u<c;u++){var h=this.getRawIndex(u),p=e-r[h],f=Math.abs(p);f<=n&&((f<a||f===a&&p>=0&&s<0)&&(a=f,s=p,l=0),p===s&&(o[l++]=u))}return o.length=l,o},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r<i;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else{n=Kp(this._rawCount);t=new n(this.count());for(r=0;r<t.length;r++)t[r]=r}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=Kp(n._rawCount),o=new r(i),a=[],s=t.length,l=0,u=t[0],c=n._chunks,h=0;h<i;h++){var p=void 0,f=n.getRawIndex(h);if(0===s)p=e(h);else if(1===s){var d=c[u][f];p=e(d,h)}else{for(var g=0;g<s;g++)a[g]=c[t[g]][f];a[g]=h,p=e.apply(null,a)}p&&(o[l++]=f)}return l<i&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=Object(u["D"])(t),r=i.length;if(!r)return this;var o=e.count(),a=Kp(e._rawCount),s=new a(o),l=0,c=i[0],h=t[c][0],p=t[c][1],f=e._chunks,d=!1;if(!e._indices){var g=0;if(1===r){for(var v=f[i[0]],y=0;y<n;y++){var m=v[y];(m>=h&&m<=p||isNaN(m))&&(s[l++]=g),g++}d=!0}else if(2===r){v=f[i[0]];var _=f[i[1]],x=t[i[1]][0],b=t[i[1]][1];for(y=0;y<n;y++){m=v[y];var w=_[y];(m>=h&&m<=p||isNaN(m))&&(w>=x&&w<=b||isNaN(w))&&(s[l++]=g),g++}d=!0}}if(!d)if(1===r)for(y=0;y<o;y++){var S=e.getRawIndex(y);m=f[i[0]][S];(m>=h&&m<=p||isNaN(m))&&(s[l++]=S)}else for(y=0;y<o;y++){for(var O=!0,T=(S=e.getRawIndex(y),0);T<r;T++){var k=i[T];m=f[k][S];(m<t[k][0]||m>t[k][1])&&(O=!1)}O&&(s[l++]=e.getRawIndex(y))}return l<o&&(e._indices=s),e._count=l,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var i=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=Qp();for(var c=0;c<a;c++){for(var h=t.getRawIndex(c),p=0;p<o;p++)s[p]=i[e[p]][h];s[o]=c;var f=n&&n.apply(null,s);if(null!=f){"object"!==typeof f&&(r[0]=f,f=r);for(u=0;u<f.length;u++){var d=e[u],g=f[u],v=l[d],y=i[d];y&&(y[h]=g),g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),u=0,c=Math.floor(1/e),h=this.getRawIndex(0),p=new(Kp(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));p[u++]=h;for(var f=1;f<l-1;f+=c){for(var d=Math.min(f+c,l-1),g=Math.min(f+2*c,l),v=(g+d)/2,y=0,m=d;m<g;m++){var _=this.getRawIndex(m),x=s[_];isNaN(x)||(y+=x)}y/=g-d;var b=f,w=Math.min(f+c,l),S=f-1,O=s[h];n=-1,r=b;var T=-1,k=0;for(m=b;m<w;m++){_=this.getRawIndex(m),x=s[_];isNaN(x)?(k++,T<0&&(T=_)):(i=Math.abs((S-v)*(x-O)-(S-m)*(y-O)),i>n&&(n=i,r=_))}k>0&&k<w-b&&(p[u++]=Math.min(T,r),r=Math.max(T,r)),p[u++]=r,h=r}return p[u++]=this.getRawIndex(l-1),o._count=u,o._indices=p,o.getRawIndex=this._getRawIdx,o},t.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),i=n._chunks,r=Math.floor(1/e),o=i[t],a=this.count(),s=new(Kp(this._rawCount))(2*Math.ceil(a/r)),l=0,u=0;u<a;u+=r){var c=u,h=o[this.getRawIndex(c)],p=u,f=o[this.getRawIndex(p)],d=r;u+r>a&&(d=a-u);for(var g=0;g<d;g++){var v=this.getRawIndex(u+g),y=o[v];y<h&&(h=y,c=u+g),y>f&&(f=y,p=u+g)}var m=this.getRawIndex(c),_=this.getRawIndex(p);c<p?(s[l++]=m,s[l++]=_):(s[l++]=_,s[l++]=m)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=r._rawExtent[t]=Qp(),h=new(Kp(this._rawCount))(Math.ceil(u/s)),p=0,f=0;f<u;f+=s){s>u-f&&(s=u-f,a.length=s);for(var d=0;d<s;d++){var g=this.getRawIndex(f+d);a[d]=l[g]}var v=n(a),y=this.getRawIndex(Math.min(f+i(a,v)||0,u-1));l[y]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),h[p++]=y}return r._count=p,r._indices=h,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=Qp();if(!e)return n;var i,r=this.count(),o=!this._indices;if(o)return this._rawExtent[t].slice();if(i=this._extent[t],i)return i.slice();i=n;for(var a=i[0],s=i[1],l=0;l<r;l++){var u=this.getRawIndex(l),c=e[u];c<a&&(a=c),c>s&&(s=c)}return i=[a,s],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][e]);return n},t.prototype.clone=function(e,n){var i=new t,r=this._chunks,o=e&&Object(u["K"])(e,(function(t,e){return t[e]=!0,t}),{});if(o)for(var a=0;a<r.length;a++)i._chunks[a]=o[a]?$p(r[a]):r[a];else i._chunks=r;return this._copyCommonProps(i),n||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Object(u["d"])(this._extent),t._rawExtent=Object(u["d"])(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var i=0;i<n;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return Ip(t[i],this._dimensions[i])}Gp={arrayRows:t,objectRows:function(t,e,n,i){return Ip(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return Ip(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}(),ef=tf,nf=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(rf(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var c=i[0];c.prepareSource(),l=c.getSource(),a=l.data,s=l.sourceFormat,e=[c._getVersionSign()]}else a=o.get("data",!0),s=Object(u["C"])(a)?jc:Mc,e=[];var h=this._getSourceMetaRawOption()||{},p=l&&l.metaRawOption||{},f=Object(u["M"])(h.seriesLayoutBy,p.seriesLayoutBy)||null,d=Object(u["M"])(h.sourceHeader,p.sourceHeader),g=Object(u["M"])(h.dimensions,p.dimensions),v=f!==p.seriesLayoutBy||!!d!==!!p.sourceHeader||g;t=v?[np(a,{seriesLayoutBy:f,sourceHeader:d,dimensions:g},s)]:[]}else{var y=n;if(r){var m=this._applyTransform(i);t=m.sourceList,e=m.upstreamSignList}else{var _=y.get("source",!0);t=[np(_,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);if(null!=r){var o="";1!==t.length&&of(o)}var a=[],s=[];return Object(u["k"])(t,(function(t){t.prepareSource();var e=t.getSource(r||0),n="";null==r||e||of(n),a.push(e),s.push(t._getVersionSign())})),i?e=Fp(i,a,{datasetIndex:n.componentIndex}):null!=r&&(e=[rp(a[0])]),{sourceList:e,upstreamSignList:s}},t.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}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var i=0,r=this._storeList,o=r[i];o||(o=r[i]={});var a=o[n];if(!a){var s=this._getUpstreamSourceManagers()[0];rf(this._sourceHost)&&s?a=s._innerGetDataStore(t,e,n):(a=new ef,a.initData(new hp(e,t.length),t)),o[n]=a}return a},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(rf(t)){var e=Ec(t);return e?[e.getSourceManager()]:[]}return Object(u["F"])(Fc(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;if(rf(i))t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function rf(t){return"series"===t.mainType}function of(t){throw new Error(t)}var af="line-height:1";function sf(t){var e=t.lineHeight;return null==e?af:"line-height:"+G(e+"")+"px"}function lf(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,r=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+G(i+"")+"px;color:"+G(n)+";font-weight:"+G(r+""),valueStyle:"font-size:"+G(a+"")+"px;color:"+G(o)+";font-weight:"+G(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var uf=[0,10,20,30],cf=["","\n","\n\n","\n\n\n"];function hf(t,e){return e.type=t,e}function pf(t){return"section"===t.type}function ff(t){return pf(t)?gf:vf}function df(t){if(pf(t)){var e=0,n=t.blocks.length,i=n>1||n>0&&!t.noHeader;return Object(u["k"])(t.blocks,(function(t){var n=df(t);n>=e&&(e=n+ +(i&&(!n||pf(t)&&!t.noHeader)))})),e}return 0}function gf(t,e,n,i){var r=e.noHeader,o=mf(df(e)),a=[],s=e.blocks||[];Object(u["b"])(!s||Object(u["s"])(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Object(u["p"])(c,l)){var h=new jp(c[l],null);s.sort((function(t,e){return h.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===l&&s.reverse()}Object(u["k"])(s,(function(n,r){var s=e.valueFormatter,l=ff(n)(s?Object(u["m"])(Object(u["m"])({},t),{valueFormatter:s}):t,n,r>0?o.html:0,i);null!=l&&a.push(l)}));var p="richText"===t.renderMode?a.join(o.richText):_f(i,a.join(""),r?n:o.html);if(r)return p;var f=nc(e.header,"ordinal",t.useUTC),d=lf(i,t.renderMode).nameStyle,g=sf(i);return"richText"===t.renderMode?wf(t,f,d)+o.richText+p:_f(i,'<div style="'+d+";"+g+';">'+G(f)+"</div>"+p,n)}function vf(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,c=t.useUTC,h=e.valueFormatter||t.valueFormatter||function(t){return t=Object(u["s"])(t)?t:[t],Object(u["F"])(t,(function(t,e){return nc(t,Object(u["s"])(d)?d[e]:d,c)}))};if(!o||!a){var p=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),f=o?"":nc(l,"ordinal",c),d=e.valueType,g=a?[]:h(e.value,e.dataIndex),v=!s||!o,y=!s&&o,m=lf(i,r),_=m.nameStyle,x=m.valueStyle;return"richText"===r?(s?"":p)+(o?"":wf(t,f,_))+(a?"":Sf(t,g,v,y,x)):_f(i,(s?"":p)+(o?"":xf(f,!s,_))+(a?"":bf(g,v,y,x)),n)}}function yf(t,e,n,i,r,o){if(t){var a=ff(t),s={useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,o)}}function mf(t){return{html:uf[t],richText:cf[t]}}function _f(t,e,n){var i='<div style="clear:both"></div>',r="margin: "+n+"px 0 0",o=sf(t);return'<div style="'+r+";"+o+';">'+e+i+"</div>"}function xf(t,e,n){var i=e?"margin-left:2px":"";return'<span style="'+n+";"+i+'">'+G(t)+"</span>"}function bf(t,e,n,i){var r=n?"10px":"20px",o=e?"float:right;margin-left:"+r:"";return t=Object(u["s"])(t)?t:[t],'<span style="'+o+";"+i+'">'+Object(u["F"])(t,(function(t){return G(t)})).join("&nbsp;&nbsp;")+"</span>"}function wf(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Sf(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(u["s"])(e)?e.join(" "):e,o)}function Of(t,e){var n=t.getData().getItemVisual(e,"style"),i=n[t.visualDrawType];return sc(i)}function Tf(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var kf=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Xi()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=ac({color:e,type:t,renderMode:n,markerId:i});return Object(u["A"])(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Object(u["s"])(e)?Object(u["k"])(e,(function(t){return Object(u["m"])(n,t)})):Object(u["m"])(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();function Mf(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),c=l.mapDimensionsAll("defaultedTooltip"),h=c.length,p=o.getRawValue(a),f=Object(u["s"])(p),d=Of(o,a);if(h>1||f&&!h){var g=Cf(p,o,a,c,d);e=g.inlineValues,n=g.inlineValueTypes,i=g.blocks,r=g.inlineValues[0]}else if(h){var v=l.getDimensionInfo(c[0]);r=e=wp(l,a,c[0]),n=v.type}else r=e=f?p[0]:p;var y=fr(o),m=y&&o.name||"",_=l.getName(a),x=s?m:_;return hf("section",{header:m,noHeader:s||!y,sortParam:r,blocks:[hf("nameValue",{markerType:"item",markerColor:d,name:x,noName:!Object(u["Q"])(x),value:e,valueType:n,dataIndex:a})].concat(i||[])})}function Cf(t,e,n,i,r){var o=e.getData(),a=Object(u["K"])(t,(function(t,e,n){var i=o.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName}),!1),s=[],l=[],c=[];function h(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?c.push(hf("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?Object(u["k"])(i,(function(t){h(wp(o,n,t),t)})):Object(u["k"])(t,h),{inlineValues:s,inlineValueTypes:l,blocks:c}}var If=mr();function Df(t,e){return t.getName(e)||t.getId(e)}var jf="__universalTransitionEnabled",Af=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return s(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=kp({count:Rf,reset:zf}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=If(this).sourceManager=new nf(this);i.prepareSource();var r=this.getInitialData(t,n);Bf(r,this),this.dataTask.context.data=r,If(this).dataBeforeProcessed=r,Pf(this),this._initSelectedMapFromData(r)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=gc(this),i=n?yc(t):{},r=this.subType;wc.hasClass(r)&&(r+="Series"),u["G"](t,e.getTheme().get(this.subType)),u["G"](t,this.getDefaultOption()),Ji(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&vc(t,i,n)},e.prototype.mergeOption=function(t,e){t=u["G"](this.option,t,!0),this.fillDataTextStyle(t.data);var n=gc(this);n&&vc(this.option,t,n);var i=If(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);Bf(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,If(this).dataBeforeProcessed=r,Pf(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!u["C"](t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Ji(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){var e=this.getRawData();e.appendData(t.data)},e.prototype.getData=function(t){var e=Ff(this);if(e){var n=e.context.data;return null!=t&&n.getLinkedData?n.getLinkedData(t):n}return If(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=Ff(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}If(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return u["f"](t)},e.prototype.getSourceManager=function(){return If(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return If(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,e,n){return Mf({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(l["a"].node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=qc.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=t[o],s=Df(r,a);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},e.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)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=u["D"](t),n=[],i=0;i<e.length;i++){var r=t[e[i]];r>=0&&n.push(r)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[Df(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[jf])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){u["z"](r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l<a;l++){var c=e[l],h=Df(t,c);s[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(c)}}else if("single"===o||!0===o){var p=e[a-1];h=Df(t,p);r.selectedMap=(n={},n[h]=!0,n),this._selectedDataIndicesMap=(i={},i[h]=t.getRawIndex(p),i)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return wc.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(wc);function Pf(t){var e=t.name;fr(t)||(t.name=Lf(t)||e)}function Lf(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return u["k"](n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}function Rf(t){return t.model.getRawData().count()}function zf(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Nf}function Nf(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Bf(t,e){u["k"](u["e"](t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,u["h"](Ef,e))}))}function Ef(t,e){var n=Ff(t);return n&&n.setOutputEnd((e||this).count()),e}function Ff(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}u["H"](Af,Op),u["H"](Af,qc),Lr(Af,wc);var Hf=Af,Vf=function(){function t(){this.group=new _i,this.uid=ou("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();Ar(Vf),Er(Vf);var Gf=Vf;function Wf(){var t=mr();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}var Uf=ta.CMD,qf=[[],[],[]],Xf=Math.sqrt,Yf=Math.atan2;function Zf(t,e){if(e){var n,i,r,o,a,s,l=t.data,u=t.len(),c=Uf.M,h=Uf.C,p=Uf.L,f=Uf.R,d=Uf.A,g=Uf.Q;for(r=0,o=0;r<u;){switch(n=l[r++],o=r,i=0,n){case c:i=1;break;case p:i=1;break;case h:i=3;break;case g:i=2;break;case d:var v=e[4],y=e[5],m=Xf(e[0]*e[0]+e[1]*e[1]),_=Xf(e[2]*e[2]+e[3]*e[3]),x=Yf(-e[1]/_,e[0]/m);l[r]*=m,l[r++]+=v,l[r]*=_,l[r++]+=y,l[r++]*=m,l[r++]*=_,l[r++]+=x,l[r++]+=x,r+=2,o=r;break;case f:s[0]=l[r++],s[1]=l[r++],S(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],S(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<i;a++){var b=qf[a];b[0]=l[r++],b[1]=l[r++],S(b,b,e),l[o++]=b[0],l[o++]=b[1]}}t.increaseVersion()}}var Kf=Math.sqrt,Qf=Math.sin,$f=Math.cos,Jf=Math.PI;function td(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function ed(t,e){return(t[0]*e[0]+t[1]*e[1])/(td(t)*td(e))}function nd(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(ed(t,e))}function id(t,e,n,i,r,o,a,s,l,u,c){var h=l*(Jf/180),p=$f(h)*(t-n)/2+Qf(h)*(e-i)/2,f=-1*Qf(h)*(t-n)/2+$f(h)*(e-i)/2,d=p*p/(a*a)+f*f/(s*s);d>1&&(a*=Kf(d),s*=Kf(d));var g=(r===o?-1:1)*Kf((a*a*(s*s)-a*a*(f*f)-s*s*(p*p))/(a*a*(f*f)+s*s*(p*p)))||0,v=g*a*f/s,y=g*-s*p/a,m=(t+n)/2+$f(h)*v-Qf(h)*y,_=(e+i)/2+Qf(h)*v+$f(h)*y,x=nd([1,0],[(p-v)/a,(f-y)/s]),b=[(p-v)/a,(f-y)/s],w=[(-1*p-v)/a,(-1*f-y)/s],S=nd(b,w);if(ed(b,w)<=-1&&(S=Jf),ed(b,w)>=1&&(S=0),S<0){var O=Math.round(S/Jf*1e6)/1e6;S=2*Jf+O%2*Jf}c.addData(u,m,_,a,s,x,S,h,o)}var rd=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,od=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ad(t){var e=new ta;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=ta.CMD,l=t.match(rd);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),p=void 0,f=c.match(od)||[],d=f.length,g=0;g<d;g++)f[g]=parseFloat(f[g]);var v=0;while(v<d){var y=void 0,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,O=i,T=r,k=void 0,M=void 0;switch(h){case"l":i+=f[v++],r+=f[v++],p=s.L,e.addData(p,i,r);break;case"L":i=f[v++],r=f[v++],p=s.L,e.addData(p,i,r);break;case"m":i+=f[v++],r+=f[v++],p=s.M,e.addData(p,i,r),o=i,a=r,h="l";break;case"M":i=f[v++],r=f[v++],p=s.M,e.addData(p,i,r),o=i,a=r,h="L";break;case"h":i+=f[v++],p=s.L,e.addData(p,i,r);break;case"H":i=f[v++],p=s.L,e.addData(p,i,r);break;case"v":r+=f[v++],p=s.L,e.addData(p,i,r);break;case"V":r=f[v++],p=s.L,e.addData(p,i,r);break;case"C":p=s.C,e.addData(p,f[v++],f[v++],f[v++],f[v++],f[v++],f[v++]),i=f[v-2],r=f[v-1];break;case"c":p=s.C,e.addData(p,f[v++]+i,f[v++]+r,f[v++]+i,f[v++]+r,f[v++]+i,f[v++]+r),i+=f[v-2],r+=f[v-1];break;case"S":y=i,m=r,k=e.len(),M=e.data,n===s.C&&(y+=i-M[k-4],m+=r-M[k-3]),p=s.C,O=f[v++],T=f[v++],i=f[v++],r=f[v++],e.addData(p,y,m,O,T,i,r);break;case"s":y=i,m=r,k=e.len(),M=e.data,n===s.C&&(y+=i-M[k-4],m+=r-M[k-3]),p=s.C,O=i+f[v++],T=r+f[v++],i+=f[v++],r+=f[v++],e.addData(p,y,m,O,T,i,r);break;case"Q":O=f[v++],T=f[v++],i=f[v++],r=f[v++],p=s.Q,e.addData(p,O,T,i,r);break;case"q":O=f[v++]+i,T=f[v++]+r,i+=f[v++],r+=f[v++],p=s.Q,e.addData(p,O,T,i,r);break;case"T":y=i,m=r,k=e.len(),M=e.data,n===s.Q&&(y+=i-M[k-4],m+=r-M[k-3]),i=f[v++],r=f[v++],p=s.Q,e.addData(p,y,m,i,r);break;case"t":y=i,m=r,k=e.len(),M=e.data,n===s.Q&&(y+=i-M[k-4],m+=r-M[k-3]),i+=f[v++],r+=f[v++],p=s.Q,e.addData(p,y,m,i,r);break;case"A":_=f[v++],x=f[v++],b=f[v++],w=f[v++],S=f[v++],O=i,T=r,i=f[v++],r=f[v++],p=s.A,id(O,T,i,r,w,S,_,x,b,p,e);break;case"a":_=f[v++],x=f[v++],b=f[v++],w=f[v++],S=f[v++],O=i,T=r,i+=f[v++],r+=f[v++],p=s.A,id(O,T,i,r,w,S,_,x,b,p,e);break}}"z"!==h&&"Z"!==h||(p=s.Z,e.addData(p),i=o,r=a),n=p}return e.toStatic(),e}var sd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.applyTransform=function(t){},e}(ka);function ld(t){return null!=t.setData}function ud(t,e){var n=ad(t),i=Object(u["m"])({},e);return i.buildPath=function(t){if(ld(t)){t.setData(n.data);var e=t.getContext();e&&t.rebuildPath(e,1)}else{e=t;n.rebuildPath(e,1)}},i.applyTransform=function(t){Zf(n,t),this.dirtyShape()},i}function cd(t,e){return new sd(ud(t,e))}function hd(t,e){var n=ud(t,e),i=function(t){function e(e){var i=t.call(this,e)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return s(e,t),e}(sd);return i}function pd(t,e){for(var n=[],i=t.length,r=0;r<i;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}var a=new ka(e);return a.createPathProxy(),a.buildPath=function(t){if(ld(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a}var fd=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),dd=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e.prototype.getDefaultShape=function(){return new fd},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(ka);dd.prototype.type="circle";var gd=dd,vd=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),yd=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e.prototype.getDefaultShape=function(){return new vd},e.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()},e}(ka);yd.prototype.type="ellipse";var md=yd,_d=Math.PI,xd=2*_d,bd=Math.sin,wd=Math.cos,Sd=Math.acos,Od=Math.atan2,Td=Math.abs,kd=Math.sqrt,Md=Math.max,Cd=Math.min,Id=1e-4;function Dd(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,c=a-r,h=s-o,p=h*l-c*u;if(!(p*p<Id))return p=(c*(e-o)-h*(t-r))/p,[t+p*l,e+p*u]}function jd(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/kd(s*s+l*l),c=u*l,h=-u*s,p=t+c,f=e+h,d=n+c,g=i+h,v=(p+d)/2,y=(f+g)/2,m=d-p,_=g-f,x=m*m+_*_,b=r-o,w=p*g-d*f,S=(_<0?-1:1)*kd(Md(0,b*b*x-w*w)),O=(w*_-m*S)/x,T=(-w*m-_*S)/x,k=(w*_+m*S)/x,M=(-w*m+_*S)/x,C=O-v,I=T-y,D=k-v,j=M-y;return C*C+I*I>D*D+j*j&&(O=k,T=M),{cx:O,cy:T,x0:-c,y0:-h,x1:O*(r/b-1),y1:T*(r/b-1)}}function Ad(t){var e;if(Object(u["s"])(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}function Pd(t,e){var n,i=Md(e.r,0),r=Md(e.r0||0,0),o=i>0,a=r>0;if(o||a){if(o||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var c=e.cx,h=e.cy,p=!!e.clockwise,f=Td(u-l),d=f>xd&&f%xd;if(d>Id&&(f=d),i>Id)if(f>xd-Id)t.moveTo(c+i*wd(l),h+i*bd(l)),t.arc(c,h,i,l,u,!p),r>Id&&(t.moveTo(c+r*wd(u),h+r*bd(u)),t.arc(c,h,r,u,l,p));else{var g=void 0,v=void 0,y=void 0,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,O=void 0,T=void 0,k=void 0,M=void 0,C=void 0,I=void 0,D=void 0,j=i*wd(l),A=i*bd(l),P=r*wd(u),L=r*bd(u),R=f>Id;if(R){var z=e.cornerRadius;z&&(n=Ad(z),g=n[0],v=n[1],y=n[2],m=n[3]);var N=Td(i-r)/2;if(_=Cd(N,y),x=Cd(N,m),b=Cd(N,g),w=Cd(N,v),T=S=Md(_,x),k=O=Md(b,w),(S>Id||O>Id)&&(M=i*wd(u),C=i*bd(u),I=r*wd(l),D=r*bd(l),f<_d)){var B=Dd(j,A,I,D,M,C,P,L);if(B){var E=j-B[0],F=A-B[1],H=M-B[0],V=C-B[1],G=1/bd(Sd((E*H+F*V)/(kd(E*E+F*F)*kd(H*H+V*V)))/2),W=kd(B[0]*B[0]+B[1]*B[1]);T=Cd(S,(i-W)/(G+1)),k=Cd(O,(r-W)/(G-1))}}}if(R)if(T>Id){var U=Cd(y,T),q=Cd(m,T),X=jd(I,D,j,A,i,U,p),Y=jd(M,C,P,L,i,q,p);t.moveTo(c+X.cx+X.x0,h+X.cy+X.y0),T<S&&U===q?t.arc(c+X.cx,h+X.cy,T,Od(X.y0,X.x0),Od(Y.y0,Y.x0),!p):(U>0&&t.arc(c+X.cx,h+X.cy,U,Od(X.y0,X.x0),Od(X.y1,X.x1),!p),t.arc(c,h,i,Od(X.cy+X.y1,X.cx+X.x1),Od(Y.cy+Y.y1,Y.cx+Y.x1),!p),q>0&&t.arc(c+Y.cx,h+Y.cy,q,Od(Y.y1,Y.x1),Od(Y.y0,Y.x0),!p))}else t.moveTo(c+j,h+A),t.arc(c,h,i,l,u,!p);else t.moveTo(c+j,h+A);if(r>Id&&R)if(k>Id){U=Cd(g,k),q=Cd(v,k),X=jd(P,L,M,C,r,-q,p),Y=jd(j,A,I,D,r,-U,p);t.lineTo(c+X.cx+X.x0,h+X.cy+X.y0),k<O&&U===q?t.arc(c+X.cx,h+X.cy,k,Od(X.y0,X.x0),Od(Y.y0,Y.x0),!p):(q>0&&t.arc(c+X.cx,h+X.cy,q,Od(X.y0,X.x0),Od(X.y1,X.x1),!p),t.arc(c,h,r,Od(X.cy+X.y1,X.cx+X.x1),Od(Y.cy+Y.y1,Y.cx+Y.x1),p),U>0&&t.arc(c+Y.cx,h+Y.cy,U,Od(Y.y1,Y.x1),Od(Y.y0,Y.x0),!p))}else t.lineTo(c+P,h+L),t.arc(c,h,r,u,l,p);else t.lineTo(c+P,h+L)}else t.moveTo(c,h);t.closePath()}}}var Ld=function(){function t(){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}return t}(),Rd=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e.prototype.getDefaultShape=function(){return new Ld},e.prototype.buildPath=function(t,e){Pd(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(ka);Rd.prototype.type="sector";var zd=Rd,Nd=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),Bd=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e.prototype.getDefaultShape=function(){return new Nd},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(ka);Bd.prototype.type="ring";var Ed=Bd;function Fd(t,e,n,i){var r,o,a,s,l=[],u=[],c=[],d=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var g=0,y=t.length;g<y;g++)O(a,a,t[g]),T(s,s,t[g]);O(a,a,i[0]),T(s,s,i[1])}for(g=0,y=t.length;g<y;g++){var _=t[g];if(n)r=t[g?g-1:y-1],o=t[(g+1)%y];else{if(0===g||g===y-1){l.push(h(t[g]));continue}r=t[g-1],o=t[g+1]}f(u,o,r),v(u,u,e);var x=m(_,r),b=m(_,o),w=x+b;0!==w&&(x/=w,b/=w),v(c,u,-x),v(d,u,b);var S=p([],_,c),k=p([],_,d);i&&(T(S,S,a),O(S,S,s),T(k,k,a),O(k,k,s)),l.push(S),l.push(k)}return n&&l.push(l.shift()),l}function Hd(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=Fd(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(r[0][0],r[0][1]);s=1;for(var h=r.length;s<h;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}var Vd=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),Gd=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e.prototype.getDefaultShape=function(){return new Vd},e.prototype.buildPath=function(t,e){Hd(t,e,!0)},e}(ka);Gd.prototype.type="polygon";var Wd=Gd,Ud=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),qd=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Ud},e.prototype.buildPath=function(t,e){Hd(t,e,!1)},e}(ka);qd.prototype.type="polyline";var Xd=qd,Yd={},Zd=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),Kd=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Zd},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=Na(Yd,e,this.style);n=a.x1,i=a.y1,r=a.x2,o=a.y2}else n=e.x1,i=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,i),s<1&&(r=n*(1-s)+r*s,o=i*(1-s)+o*s),t.lineTo(r,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(ka);Kd.prototype.type="line";var Qd=Kd,$d=[],Jd=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function tg(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?ye:ve)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?ye:ve)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?Oe:Se)(t.x1,t.cpx1,t.x2,e),(n?Oe:Se)(t.y1,t.cpy1,t.y2,e)]}var eg=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Jd},e.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,c=e.percent;0!==c&&(t.moveTo(n,i),null==l||null==u?(c<1&&(Me(n,a,r,c,$d),a=$d[1],r=$d[2],Me(i,s,o,c,$d),s=$d[1],o=$d[2]),t.quadraticCurveTo(a,s,r,o)):(c<1&&(xe(n,a,l,r,c,$d),a=$d[1],l=$d[2],r=$d[3],xe(i,s,u,o,c,$d),s=$d[1],u=$d[2],o=$d[3]),t.bezierCurveTo(a,s,l,u,r,o)))},e.prototype.pointAt=function(t){return tg(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=tg(this.shape,t,!0);return y(e,e)},e}(ka);eg.prototype.type="bezier-curve";var ng=eg,ig=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),rg=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ig},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,o,a,!s)},e}(ka);rg.prototype.type="arc";var og=rg,ag=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return s(e,t),e.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()},e.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)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ka.prototype.getBoundingRect.call(this)},e}(ka),sg=ag,lg=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),ug=lg,cg=function(t){function e(e,n,i,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return s(e,t),e}(ug),hg=cg,pg=function(t){function e(e,n,i,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return s(e,t),e}(ug),fg=pg,dg=[0,0],gg=[0,0],vg=new dt,yg=new dt,mg=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new dt;for(n=0;n<2;n++)this._axes[n]=new dt;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,s),n[3].set(r,s),e)for(var l=0;l<4;l++)n[l].transform(e);dt.sub(i[0],n[1],n[0]),dt.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,i=!e;return vg.set(1/0,1/0),yg.set(0,0),!this._intersectCheckOneSide(this,t,vg,yg,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,vg,yg,i,-1)&&(n=!1,i)||i||dt.copy(e,n?vg:yg),n},t.prototype._intersectCheckOneSide=function(t,e,n,i,r,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,dg),this._getProjMinMaxOnAxis(s,e._corners,gg),dg[1]<gg[0]||dg[0]>gg[1]){if(a=!1,r)return a;var u=Math.abs(gg[0]-dg[1]),c=Math.abs(dg[0]-gg[1]);Math.min(u,c)>i.len()&&(u<c?dt.scale(i,l,-u*o):dt.scale(i,l,c*o))}else if(n){u=Math.abs(gg[0]-dg[1]),c=Math.abs(dg[0]-gg[1]);Math.min(u,c)<n.len()&&(u<c?dt.scale(n,l,u*o):dt.scale(n,l,-c*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(i)+r[t];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},t}(),_g=mg,xg=[],bg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return s(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.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])},e.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];e.parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Ot(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(xg)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){var o=this._displayables[r];if(o.contain(t,e))return!0}return!1},e}(xo),wg=bg,Sg=Math.max,Og=Math.min,Tg={};function kg(t){return ka.extend(t)}var Mg=hd;function Cg(t,e){return Mg(t,e)}function Ig(t,e){Tg[t]=e}function Dg(t){if(Tg.hasOwnProperty(t))return Tg[t]}function jg(t,e,n,i){var r=cd(t,e);return n&&("center"===i&&(n=Pg(n,r.getBoundingRect())),Rg(r,n)),r}function Ag(t,e,n){var i=new La({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(Pg(e,r))}}});return i}function Pg(t,e){var n,i=e.width/e.height,r=t.height*i;r<=t.width?n=t.height:(r=t.width,n=r/i);var o=t.x+t.width/2,a=t.y+t.height/2;return{x:o-r/2,y:a-n/2,width:r,height:n}}var Lg=pd;function Rg(t,e){if(t.applyTransform){var n=t.getBoundingRect(),i=n.calculateTransform(e);t.applyTransform(i)}}function zg(t,e){return Na(t,t,{lineWidth:e}),t}function Ng(t){return Ba(t.shape,t.shape,t.style),t}var Bg=Ea;function Eg(t,e){var n=at([]);while(t&&t!==e)lt(n,t.getLocalTransform(),n),t=t.parent;return n}function Fg(t,e,n){return e&&!Object(u["t"])(e)&&(e=qn.getLocalTransform(e)),n&&(e=pt([],e)),S([],t,e)}function Hg(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=Fg(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Vg(t){return!t.isGroup}function Gg(t){return null!=t.shape}function Wg(t,e,n){if(t&&e){var i=r(t);e.traverse((function(t){if(Vg(t)&&t.anid){var e=i[t.anid];if(e){var r=o(t);t.attr(o(e)),Sl(t,r,n,ls(t).dataIndex)}}}))}function r(t){var e={};return t.traverse((function(t){Vg(t)&&t.anid&&(e[t.anid]=t)})),e}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return Gg(t)&&(e.shape=Object(u["m"])({},t.shape)),e}}function Ug(t,e){return Object(u["F"])(t,(function(t){var n=t[0];n=Sg(n,e.x),n=Og(n,e.x+e.width);var i=t[1];return i=Sg(i,e.y),i=Og(i,e.y+e.height),[n,i]}))}function qg(t,e){var n=Sg(t.x,e.x),i=Og(t.x+t.width,e.x+e.width),r=Sg(t.y,e.y),o=Og(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function Xg(t,e,n){var i=Object(u["m"])({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),Object(u["i"])(r,n),new La(i)):jg(t.replace("path://",""),i,n,"center")}function Yg(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(Zg(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function Zg(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,c=a-r,h=s-o,p=Kg(c,h,l,u);if(Qg(p))return!1;var f=t-r,d=e-o,g=Kg(f,d,l,u)/p;if(g<0||g>1)return!1;var v=Kg(f,d,c,h)/p;return!(v<0||v>1)}function Kg(t,e,n,i){return t*i-n*e}function Qg(t){return t<=1e-6&&t>=-1e-6}function $g(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=Object(u["A"])(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&Object(u["k"])(Object(u["D"])(l),(function(t){Object(u["p"])(s,t)||(s[t]=l[t],s.$vars.push(t))}));var c=ls(t.el);c.componentMainType=o,c.componentIndex=a,c.tooltipConfig={name:i,option:Object(u["i"])({content:i,encodeHTMLContent:!0,formatterParams:s},r)}}function Jg(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function tv(t,e){if(t)if(Object(u["s"])(t))for(var n=0;n<t.length;n++)Jg(t[n],e);else Jg(t,e)}Ig("circle",gd),Ig("ellipse",md),Ig("sector",zd),Ig("ring",Ed),Ig("polygon",Wd),Ig("polyline",Xd),Ig("rect",Ga),Ig("line",Qd),Ig("bezierCurve",ng),Ig("arc",og);var ev=mr(),nv=Wf(),iv=function(){function t(){this.group=new _i,this.uid=ou("viewChart"),this.renderTask=kp({plan:av,reset:sv}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){0},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&ov(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&ov(r,i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){tv(this.group,t)},t.markUpdateMethod=function(t,e){ev(t).updateMethod=e},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function rv(t,e,n){t&&gl(t)&&("emphasis"===e?Ws:Us)(t,n)}function ov(t,e,n){var i=yr(t,e),r=e&&null!=e.highlightKey?vl(e.highlightKey):null;null!=i?Object(u["k"])($i(i),(function(e){rv(t.getItemGraphicEl(e),n,r)})):t.eachItemGraphicEl((function(t){rv(t,n,r)}))}function av(t){return nv(t.model)}function sv(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&ev(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),lv[l]}Ar(iv,["dispose"]),Er(iv);var lv={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)}}},uv=iv,cv="\0__throttleOriginMethod",hv="\0__throttleRate",pv="\0__throttleType";function fv(t,e,n){var i,r,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var p=function(){for(var t=[],p=0;p<arguments.length;p++)t[p]=arguments[p];i=(new Date).getTime(),o=this,a=t;var f=s||e,d=s||n;s=null,r=i-(d?l:u)-f,clearTimeout(c),d?c=setTimeout(h,f):r>=0?h():c=setTimeout(h,-r),l=i};return p.clear=function(){c&&(clearTimeout(c),c=null)},p.debounceNextCall=function(t){s=t},p}function dv(t,e,n,i){var r=t[e];if(r){var o=r[cv]||r,a=r[pv],s=r[hv];if(s!==n||a!==i){if(null==n||!i)return t[e]=o;r=t[e]=fv(o,n,"debounce"===i),r[cv]=o,r[pv]=i,r[hv]=n}return r}}function gv(t,e){var n=t[e];n&&n[cv]&&(n.clear&&n.clear(),t[e]=n[cv])}var vv=mr(),yv={itemStyle:Fr(Jl,!0),lineStyle:Fr(Kl,!0)},mv={lineStyle:"stroke",itemStyle:"fill"};function _v(t,e){var n=t.visualStyleMapper||yv[e];return n||(console.warn("Unknown style type '"+e+"'."),yv.itemStyle)}function xv(t,e){var n=t.visualDrawType||mv[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var bv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=_v(t,i),a=o(r),s=r.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=xv(t,i),c=a[l],h=Object(u["v"])(c)?c:null,p="auto"===a.fill||"auto"===a.stroke;if(!a[l]||h||p){var f=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=f,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Object(u["v"])(a.fill)?f:a.fill,a.stroke="auto"===a.stroke||Object(u["v"])(a.stroke)?f:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&h)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=Object(u["m"])({},a);r[l]=h(i),e.setItemVisual(n,"style",r)}}}},wv=new iu,Sv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=_v(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){wv.option=n[i];var a=r(wv),s=t.ensureUniqueItemVisual(e,"style");Object(u["m"])(s,a),wv.option.decal&&(t.setItemVisual(e,"decal",wv.option.decal),wv.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},Ov={performRawSeries:!0,overallReset:function(t){var e=Object(u["f"])();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),vv(t).scope=r}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=vv(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=xv(e,a);r.each((function(t){var e=r.getRawIndex(t);i[e]=t})),n.each((function(t){var a=i[t],l=r.getItemVisual(a,"colorFromPalette");if(l){var u=r.ensureUniqueItemVisual(a,"style"),c=n.getName(t)||t+"",h=n.count();u[s]=e.getColorFromPalette(c,o,h)}}))}}))}},Tv=Math.PI;function kv(t,e){e=e||{},u["i"](e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new _i,i=new Ga({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,o=new ss({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Ga({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&(r=new og({shape:{startAngle:-Tv/2,endAngle:-Tv/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),r.animateShape(!0).when(1e3,{endAngle:3*Tv/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Tv/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var Mv=function(){function t(t,e,n,i){this._stageTaskMap=Object(u["f"])(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=r?n.step:null,a=i&&i.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),r=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,a=t.get("large")&&r>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Object(u["f"])();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(u["k"])(this._allHandlers,(function(i){var r=t.get(i.uid)||t.set(i.uid,{}),o="";Object(u["b"])(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)}),this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(u["k"])(t,(function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,p=c.agentStubMap;p.each((function(t){a(i,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),o.updatePayload(c,n);var f=o.getPerformArgs(c,i.block);p.each((function(t){t.perform(f)})),c.perform(f)&&(r=!0)}else u&&u.each((function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=Object(u["f"])(),s=t.seriesType,l=t.getTargetSeries;function c(e){var s=e.uid,l=a.set(s,o&&o.get(s)||kp({plan:Av,reset:Pv,count:zv}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(c):s?n.eachRawSeriesByType(s,c):l&&l(n,i).each(c)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||kp({reset:Cv});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=Object(u["f"])(),l=t.seriesType,c=t.getTargetSeries,h=!0,p=!1,f="";function d(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(p=!0,kp({reset:Iv,onDirty:jv})));n.context={model:t,overallProgress:h},n.agent=o,n.__block=h,r._pipe(t,n)}Object(u["b"])(!t.createOnAllSeries,f),l?n.eachRawSeriesByType(l,d):c?c(n,i).each(d):(h=!1,Object(u["k"])(n.getSeries(),d)),p&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return Object(u["v"])(t)&&(t={overallReset:t,seriesType:Nv(t)}),t.uid=ou("stageHandler"),e&&(t.visualType=e),t},t}();function Cv(t){t.overallReset(t.ecModel,t.api,t.payload)}function Iv(t){return t.overallProgress&&Dv}function Dv(){this.agent.dirty(),this.getDownstream().dirty()}function jv(){this.agent&&this.agent.dirty()}function Av(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Pv(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=$i(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Object(u["F"])(e,(function(t,e){return Rv(e)})):Lv}var Lv=Rv(0);function Rv(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(e,i)}}function zv(t){return t.data.count()}function Nv(t){Bv=null;try{t(Ev,Fv)}catch(e){}return Bv}var Bv,Ev={},Fv={};function Hv(t,e){for(var n in e.prototype)t[n]=u["I"]}Hv(Ev,uh),Hv(Fv,ph),Ev.eachSeriesByType=Ev.eachRawSeriesByType=function(t){Bv=t},Ev.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Bv=t.subType)};var Vv=Mv,Gv=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Wv={color:Gv,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Gv]},Uv="#B9B8CE",qv="#100C2A",Xv=function(){return{axisLine:{lineStyle:{color:Uv}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Yv=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Zv={darkMode:!0,color:Yv,backgroundColor:qv,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Uv},pageTextStyle:{color:Uv}},textStyle:{color:Uv},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Uv}},dataZoom:{borderColor:"#71708A",textStyle:{color:Uv},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:Uv}},timeline:{lineStyle:{color:Uv},label:{color:Uv},controlStyle:{color:Uv,borderColor:Uv}},calendar:{itemStyle:{color:qv},dayLabel:{color:Uv},monthLabel:{color:Uv},yearLabel:{color:Uv}},timeAxis:Xv(),logAxis:Xv(),valueAxis:Xv(),categoryAxis:Xv(),line:{symbol:"circle"},graph:{color:Yv},gauge:{title:{color:Uv},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Uv},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Zv.categoryAxis.splitLine.show=!1;var Kv=Zv,Qv=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(u["A"](t)){var r=Ir(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};u["k"](t,(function(t,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),$v=["symbol","symbolSize","symbolRotate","symbolOffset"],Jv=$v.concat(["symbolKeepAspect"]),ty={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a<$v.length;a++){var s=$v[a],l=t.get(s);Object(u["v"])(l)?(o=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual(Object(u["m"])({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),!e.isSeriesFiltered(t)){var c=Object(u["D"])(r);return{dataEach:o?h:null}}}function h(e,n){for(var i=t.getRawValue(n),o=t.getDataParams(n),a=0;a<c.length;a++){var s=c[a];e.setItemVisual(n,s,r[s](i,o))}}}},ey={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t)){var n=t.getData();return{dataEach:n.hasItemOption?i:null}}function i(t,e){for(var n=t.getItemModel(e),i=0;i<Jv.length;i++){var r=Jv[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}}};function ny(t,e,n){switch(n){case"color":var i=t.getItemVisual(e,"style");return i[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n);default:0}}function iy(t,e){switch(e){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:0}}function ry(t,e){function n(e,n){var i=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){i.push(t.seriesIndex)})),i}Object(u["k"])([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,i,r){e=Object(u["m"])({},e),r.dispatchAction(Object(u["m"])(e,{type:t[1],seriesIndex:n(i,e)}))}))}))}function oy(t,e,n,i,r){var o=t+e;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,i=t.option.selectedMap,a=r.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),c=yr(l,r.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:Object(u["s"])(c)?l.getName(c[0]):l.getName(c),selected:Object(u["A"])(i)?i:Object(u["m"])({},i)})}}))}function ay(t,e,n){t.on("selectchanged",(function(t){var i=n.getModel();t.isFromClick?(oy("map","selectchanged",e,i,t),oy("pie","selectchanged",e,i,t)):"select"===t.fromAction?(oy("map","selected",e,i,t),oy("pie","selected",e,i,t)):"unselect"===t.fromAction&&(oy("map","unselected",e,i,t),oy("pie","unselected",e,i,t))}))}function sy(t,e,n){var i;while(t){if(e(t)&&(i=t,n))break;t=t.__hostTarget||t.parent}return i}var ly=Math.round(9*Math.random()),uy="function"===typeof Object.defineProperty,cy=function(){function t(){this._id="__ec_inner_"+ly++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return uy?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype["delete"]=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),hy=cy,py=ka.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),fy=ka.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),dy=ka.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),p=Math.cos(u),f=.6*a,d=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*f,l+s+p*f,n,i-d,n,i),t.bezierCurveTo(n,i-d,n-c+h*f,l+s+p*f,n-c,l+s),t.closePath()}}),gy=ka.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),vy={line:Qd,rect:Ga,roundRect:Ga,square:Ga,circle:gd,diamond:fy,pin:dy,arrow:gy,triangle:py},yy={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},my={};Object(u["k"])(vy,(function(t,e){my[e]=new t}));var _y=ka.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=ii(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=my[i];r||(i="rect",r=my[i]),yy[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}});function xy(t,e){if("image"!==this.type){var 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 by(t,e,n,i,r,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),s=0===t.indexOf("image://")?Ag(t.slice(8),new Ot(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?jg(t.slice(7),{},new Ot(e,n,i,r),a?"center":"cover"):new _y({shape:{symbolType:t,x:e,y:n,width:i,height:r}}),s.__isEmptyBrush=l,s.setColor=xy,o&&s.setColor(o),s}function wy(t,e){if(null!=t)return Object(u["s"])(t)||(t=[t,t]),[Ai(t[0],e[0])||0,Ai(Object(u["M"])(t[1],t[0]),e[1])||0]}function Sy(t){return isFinite(t)}function Oy(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;e.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=Sy(i)?i:0,r=Sy(r)?r:1,o=Sy(o)?o:0,a=Sy(a)?a:0;var s=t.createLinearGradient(i,o,r,a);return s}function Ty(t,e,n){var i=n.width,r=n.height,o=Math.min(i,r),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;e.global||(a=a*i+n.x,s=s*r+n.y,l*=o),a=Sy(a)?a:.5,s=Sy(s)?s:.5,l=l>=0&&Sy(l)?l:.5;var u=t.createRadialGradient(a,s,0,a,s,l);return u}function ky(t,e,n){for(var i="radial"===e.type?Ty(t,e,n):Oy(t,e,n),r=e.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}function My(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function Cy(t){return parseInt(t,10)}function Iy(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(t);return(t[r]||Cy(s[i])||Cy(t.style[i]))-(Cy(s[o])||0)-(Cy(s[a])||0)|0}function Dy(t,e){return t&&"solid"!==t&&e>0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:Object(u["y"])(t)?[t]:Object(u["s"])(t)?t:null:null}function jy(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&Dy(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(n){var r=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;r&&1!==r&&(n=Object(u["F"])(n,(function(t){return t/r})),i/=r)}return[n,i]}var Ay=new ta(!0);function Py(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Ly(t){return"string"===typeof t&&"none"!==t}function Ry(t){var e=t.fill;return null!=e&&"none"!==e}function zy(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function Ny(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function By(t,e,n){var i=qr(e.image,e.__image,n);if(Yr(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"===typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*u["a"]),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}function Ey(t,e,n,i){var r,o=Py(n),a=Ry(n),s=n.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||Ay,h=e.__dirty;if(!i){var p=n.fill,f=n.stroke,d=a&&!!p.colorStops,g=o&&!!f.colorStops,v=a&&!!p.image,y=o&&!!f.image,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0;(d||g)&&(w=e.getBoundingRect()),d&&(m=h?ky(t,p,w):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(_=h?ky(t,f,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),v&&(x=h||!e.__canvasFillPattern?By(t,p,e):e.__canvasFillPattern,e.__canvasFillPattern=x),y&&(b=h||!e.__canvasStrokePattern?By(t,f,e):e.__canvasStrokePattern,e.__canvasStrokePattern=x),d?t.fillStyle=m:v&&(x?t.fillStyle=x:a=!1),g?t.strokeStyle=_:y&&(b?t.strokeStyle=b:o=!1)}var S,O,T=e.getGlobalScale();c.setScale(T[0],T[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(r=jy(e),S=r[0],O=r[1]);var k=!0;(u||h&Zt)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),k=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),k&&c.rebuildPath(t,l?s:1),S&&(t.setLineDash(S),t.lineDashOffset=O),i||(n.strokeFirst?(o&&Ny(t,n),a&&zy(t,n)):(a&&zy(t,n),o&&Ny(t,n))),S&&t.setLineDash([])}function Fy(t,e,n){var i=e.__image=qr(n.image,e.__image,e,e.onload);if(i&&Yr(i)){var r=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(i,u,c,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){u=n.sx,c=n.sy;var h=a-u,p=s-c;t.drawImage(i,u,c,h,p,r,o,a,s)}else t.drawImage(i,r,o,a,s)}}function Hy(t,e,n){var i,r=n.text;if(null!=r&&(r+=""),r){t.font=n.font||Yn["a"],t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(i=jy(e),o=i[0],a=i[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(Py(n)&&t.strokeText(r,n.x,n.y),Ry(n)&&t.fillText(r,n.x,n.y)):(Ry(n)&&t.fillText(r,n.x,n.y),Py(n)&&t.strokeText(r,n.x,n.y)),o&&t.setLineDash([])}}var Vy=["shadowBlur","shadowOffsetX","shadowOffsetY"],Gy=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Wy(t,e,n,i,r){var o=!1;if(!i&&(n=n||{},e===n))return!1;if(i||e.opacity!==n.opacity){em(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?ho.opacity:a}(i||e.blend!==n.blend)&&(o||(em(t,r),o=!0),t.globalCompositeOperation=e.blend||ho.blend);for(var s=0;s<Vy.length;s++){var l=Vy[s];(i||e[l]!==n[l])&&(o||(em(t,r),o=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==n.shadowColor)&&(o||(em(t,r),o=!0),t.shadowColor=e.shadowColor||ho.shadowColor),o}function Uy(t,e,n,i,r){var o=nm(e,r.inHover),a=i?null:n&&nm(n,r.inHover)||{};if(o===a)return!1;var s=Wy(t,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(em(t,r),s=!0),Ly(o.fill)&&(t.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(em(t,r),s=!0),Ly(o.stroke)&&(t.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(em(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(em(t,r),s=!0),t.lineWidth=u)}for(var c=0;c<Gy.length;c++){var h=Gy[c],p=h[0];(i||o[p]!==a[p])&&(s||(em(t,r),s=!0),t[p]=o[p]||h[1])}return s}function qy(t,e,n,i,r){return Wy(t,nm(e,r.inHover),n&&nm(n,r.inHover),i,r)}function Xy(t,e){var n=e.transform,i=t.dpr||1;n?t.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):t.setTransform(i,0,0,i,0,0)}function Yy(t,e,n){for(var i=!1,r=0;r<t.length;r++){var o=t[r];i=i||o.isZeroArea(),Xy(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=i}function Zy(t,e){return t&&e?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&&!e)}var Ky=1,Qy=2,$y=3,Jy=4;function tm(t){var e=Ry(t),n=Py(t);return!(t.lineDash||!(+e^+n)||e&&"string"!==typeof t.fill||n&&"string"!==typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function em(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function nm(t,e){return e&&t.__hoverStyle||t.style}function im(t,e){rm(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function rm(t,e,n,i){var r=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~Xt,void(e.__isRendered=!1);var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!My(o,a)||(a&&a.length&&(em(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(em(t,n),t.save(),Yy(o,t,n),s=!0),n.prevElClipPaths=o),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c=e instanceof ka&&e.autoBatch&&tm(e.style);s||Zy(r,u.transform)?(em(t,n),Xy(t,e)):c||em(t,n);var h=nm(e,n.inHover);e instanceof ka?(n.lastDrawType!==Ky&&(l=!0,n.lastDrawType=Ky),Uy(t,e,u,l,n),c&&(n.batchFill||n.batchStroke)||t.beginPath(),Ey(t,e,h,c),c&&(n.batchFill=h.fill||"",n.batchStroke=h.stroke||"")):e instanceof Ia?(n.lastDrawType!==$y&&(l=!0,n.lastDrawType=$y),Uy(t,e,u,l,n),Hy(t,e,h)):e instanceof La?(n.lastDrawType!==Qy&&(l=!0,n.lastDrawType=Qy),qy(t,e,u,l,n),Fy(t,e,h)):e.getTemporalDisplayables&&(n.lastDrawType!==Jy&&(l=!0,n.lastDrawType=Jy),om(t,e,n)),c&&i&&em(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}function om(t,e,n){var i=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=i.length;o<a;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),rm(t,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,c=r.length;u<c;u++){l=r[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),rm(t,l,s,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var am=new hy,sm=new Xn["a"](100),lm=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function um(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&&am["delete"](t);var o=am.get(t);if(o)return o;var a=Object(u["i"])(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"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/n,am.set(t,s),t.dirty=!1,s;function l(t){for(var e,o=[n],s=!0,l=0;l<lm.length;++l){var c=a[lm[l]];if(null!=c&&!Object(u["s"])(c)&&!Object(u["A"])(c)&&!Object(u["y"])(c)&&"boolean"!==typeof c){s=!1;break}o.push(c)}if(s){e=o.join(",")+(r?"-svg":"");var h=sm.get(e);h&&(r?t.svgElement=h:t.image=h)}var p,f=hm(a.dashArrayX),d=pm(a.dashArrayY),g=cm(a.symbol),v=fm(f),y=dm(d),m=!r&&Yn["c"].createCanvas(),_=r&&{tag:"g",attrs:{},key:"dcl",children:[]},x=b();function b(){for(var t=1,e=0,n=v.length;e<n;++e)t=Zi(t,v[e]);var i=1;for(e=0,n=g.length;e<n;++e)i=Zi(i,g[e].length);t*=i;var r=y*v.length*g.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}function w(){p&&(p.clearRect(0,0,m.width,m.height),a.backgroundColor&&(p.fillStyle=a.backgroundColor,p.fillRect(0,0,m.width,m.height)));for(var t=0,e=0;e<d.length;++e)t+=d[e];if(!(t<=0)){var o=-y,s=0,l=0,u=0;while(o<x.height){if(s%2===0){var c=l/2%g.length,h=0,v=0,b=0;while(h<2*x.width){var w=0;for(e=0;e<f[u].length;++e)w+=f[u][e];if(w<=0)break;if(v%2===0){var S=.5*(1-a.symbolSize),O=h+f[u][v]*S,T=o+d[s]*S,k=f[u][v]*a.symbolSize,M=d[s]*a.symbolSize,C=b/2%g[c].length;I(O,T,k,M,g[c][C])}h+=f[u][v],++b,++v,v===f[u].length&&(v=0)}++u,u===f.length&&(u=0)}o+=d[s],++l,++s,s===d.length&&(s=0)}}function I(t,e,o,s,l){var u=r?1:n,c=by(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(r){var h=i.painter.renderOneToVNode(c);h&&_.children.push(h)}else im(p,c)}}m&&(m.width=x.width*n,m.height=x.height*n,p=m.getContext("2d")),w(),s&&sm.put(e,m||_),t.image=m,t.svgElement=_,t.svgWidth=x.width,t.svgHeight=x.height}}function cm(t){if(!t||0===t.length)return[["rect"]];if(Object(u["A"])(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!Object(u["A"])(t[n])){e=!1;break}if(e)return cm([t]);var i=[];for(n=0;n<t.length;++n)Object(u["A"])(t[n])?i.push([t[n]]):i.push(t[n]);return i}function hm(t){if(!t||0===t.length)return[[0,0]];if(Object(u["y"])(t)){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,i=0;i<t.length;++i)if(!Object(u["y"])(t[i])){n=!1;break}if(n)return hm([t]);var r=[];for(i=0;i<t.length;++i)if(Object(u["y"])(t[i])){e=Math.ceil(t[i]);r.push([e,e])}else{e=Object(u["F"])(t[i],(function(t){return Math.ceil(t)}));e.length%2===1?r.push(e.concat(e)):r.push(e)}return r}function pm(t){if(!t||"object"===typeof t&&0===t.length)return[0,0];if(Object(u["y"])(t)){var e=Math.ceil(t);return[e,e]}var n=Object(u["F"])(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}function fm(t){return Object(u["F"])(t,(function(t){return dm(t)}))}function dm(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?2*e:e}function gm(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(t){var n=i.getItemVisual(t,"decal");if(n){var r=i.ensureUniqueItemVisual(t,"style");r.decal=um(n,e)}}));var r=i.getVisual("decal");if(r){var o=i.getVisual("style");o.decal=um(r,e)}}}))}var vm=new D,ym=vm,mm={};function _m(t,e){mm[t]=e}function xm(t){return mm[t]}var bm=1,wm=800,Sm=900,Om=1e3,Tm=2e3,km=5e3,Mm=1e3,Cm=1100,Im=2e3,Dm=3e3,jm=4e3,Am=4500,Pm=4600,Lm=5e3,Rm=6e3,zm=7e3,Nm={PROCESSOR:{FILTER:Om,SERIES_FILTER:wm,STATISTIC:km},VISUAL:{LAYOUT:Mm,PROGRESSIVE_LAYOUT:Cm,GLOBAL:Im,CHART:Dm,POST_CHART_LAYOUT:Pm,COMPONENT:jm,BRUSH:Lm,CHART_ITEM:Am,ARIA:Rm,DECAL:zm}},Bm="__flagInMainProcess",Em="__pendingUpdate",Fm="__needsUpdateStatus",Hm=/^[a-zA-Z0-9_]+$/,Vm="__connectUpdateStatus",Gm=0,Wm=1,Um=2;function qm(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return Ym(this,t,e);y_(this.id)}}function Xm(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Ym(this,t,e)}}function Ym(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),D.prototype[e].apply(t,n)}var Zm,Km,Qm,$m,Jm,t_,e_,n_,i_,r_,o_,a_,s_,l_,u_,c_,h_,p_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e}(D),f_=p_.prototype;f_.on=Xm("on"),f_.off=Xm("off");var d_=function(t){function e(e,n,i){var r=t.call(this,new Qv)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],i=i||{},Object(u["A"])(n)&&(n=S_[n]),r._dom=e;var o="canvas",a="auto",s=!1;i.ssr&&Mi((function(t){var e=ls(t),n=e.dataIndex;if(null!=n){var i=Object(u["f"])();return i.set("series_index",e.seriesIndex),i.set("data_index",n),e.ssrType&&i.set("ssr_type",e.ssrType),i}}));var l=r._zr=Ti(e,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Object(u["M"])(i.useDirtyRect,s),useCoarsePointer:Object(u["M"])(i.useCoarsePointer,a),pointerSize:i.pointerSize});r._ssr=i.ssr,r._throttledZrFlush=fv(Object(u["c"])(l.flush,l),17),n=Object(u["d"])(n),n&&qh(n,!0),r._theme=n,r._locale=mu(i.locale||vu),r._coordSysMgr=new gh;var c=r._api=u_(r);function h(t,e){return t.__prio-e.__prio}return qt(w_,h),qt(x_,h),r._scheduler=new Vv(r,c,x_,w_),r._messageCenter=new p_,r._initEvents(),r.resize=Object(u["c"])(r.resize,r),l.animation.on("frame",r._onframe,r),r_(l,r),o_(l,r),Object(u["O"])(r),r}return s(e,t),e.prototype._onframe=function(){if(!this._disposed){h_(this);var t=this._scheduler;if(this[Em]){var e=this[Em].silent;this[Bm]=!0;try{Zm(this),$m.update.call(this,null,this[Em].updateParams)}catch(a){throw this[Bm]=!1,this[Em]=null,a}this._zr.flush(),this[Bm]=!1,this[Em]=null,n_.call(this,e),i_.call(this,e)}else if(t.unfinished){var n=bm,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),t_(this,i),t.performVisualTasks(i),l_(this,this._model,r,"remain",{}),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[Bm])if(this._disposed)y_(this.id);else{var i,r,o;if(Object(u["z"])(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[Bm]=!0,!this._model||e){var a=new wh(this._api),s=this._theme,l=this._model=new uh;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},b_);var c={seriesTransition:o,optionChanged:!0};if(n)this[Em]={silent:i,updateParams:c},this[Bm]=!1,this.getZr().wakeUp();else{try{Zm(this),$m.update.call(this,null,c)}catch(h){throw this[Em]=null,this[Bm]=!1,h}this._ssr||this._zr.flush(),this[Em]=null,this[Bm]=!1,n_.call(this,i),i_.call(this,i)}}},e.prototype.setTheme=function(){Jc("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||l["a"].hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(l["a"].svgSupported){var t=this._zr,e=t.storage.getDisplayList();return Object(u["k"])(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,i=[],r=this;Object(u["k"])(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Object(u["k"])(i,(function(t){t.group.ignore=!1})),o}y_(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(k_[n]){var a=o,s=o,l=-o,c=-o,h=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();Object(u["k"])(T_,(function(o,p){if(o.group===n){var f=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(Object(u["d"])(t)),d=o.getDom().getBoundingClientRect();a=i(d.left,a),s=i(d.top,s),l=r(d.right,l),c=r(d.bottom,c),h.push({dom:f,left:d.left,top:d.top})}})),a*=p,s*=p,l*=p,c*=p;var f=l-a,d=c-s,g=Yn["c"].createCanvas(),v=Ti(g,{renderer:e?"svg":"canvas"});if(v.resize({width:f,height:d}),e){var y="";return Object(u["k"])(h,(function(t){var e=t.left-a,n=t.top-s;y+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),v.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return t.connectedBackgroundColor&&v.add(new Ga({shape:{x:0,y:0,width:f,height:d},style:{fill:t.connectedBackgroundColor}})),Object(u["k"])(h,(function(t){var e=new La({style:{x:t.left*p-a,y:t.top*p-s,image:t.dom}});v.add(e)})),v.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}y_(this.id)},e.prototype.convertToPixel=function(t,e){return Jm(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return Jm(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,i=this._model,r=xr(i,t);return Object(u["k"])(r,(function(t,i){i.indexOf("Models")>=0&&Object(u["k"])(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0}),this)}),this),!!n}y_(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,i=xr(n,t,{defaultMainType:"series"}),r=i.seriesModel;var o=r.getData(),a=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?o.indexOfRawIndex(i.dataIndex):null;return null!=a?ny(o,a,e):iy(o,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;Object(u["k"])(v_,(function(e){var n=function(n){var i,r=t.getModel(),o=n.target,a="globalout"===e;if(a?i={}:o&&sy(o,(function(t){var e=ls(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return i=Object(u["m"])({},e.eventData),!0}),!0),i){var s=i.componentType,l=i.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=i.seriesIndex);var c=s&&null!=l&&r.getComponent(s,l),h=c&&t["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];0,i.event=n,i.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:c,view:h},t.trigger(e,i)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),Object(u["k"])(__,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),Object(u["k"])(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),ay(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?y_(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)y_(this.id);else{this._disposed=!0;var t=this.getDom();t&&Or(this.getDom(),M_,"");var e=this,n=e._api,i=e._model;Object(u["k"])(e._componentsViews,(function(t){t.dispose(i,n)})),Object(u["k"])(e._chartsViews,(function(t){t.dispose(i,n)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete T_[e.id]}},e.prototype.resize=function(t){if(!this[Bm])if(this._disposed)y_(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[Em]&&(null==i&&(i=this[Em].silent),n=!0,this[Em]=null),this[Bm]=!0;try{n&&Zm(this),$m.update.call(this,{type:"resize",animation:Object(u["m"])({duration:0},t&&t.animation)})}catch(r){throw this[Bm]=!1,r}this[Bm]=!1,n_.call(this,i),i_.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)y_(this.id);else if(Object(u["z"])(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),O_[t]){var n=O_[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?y_(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Object(u["m"])({},t);return e.type=__[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)y_(this.id);else if(Object(u["z"])(e)||(e={silent:!!e}),m_[t.type]&&this._model)if(this[Bm])this._pendingActions.push(t);else{var n=e.silent;e_.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&l["a"].browser.weChat&&this._throttledZrFlush(),n_.call(this,n),i_.call(this,n)}},e.prototype.updateLabelLayout=function(){ym.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)y_(this.id);else{var e=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(e);0,i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){var e=[],n=[],i=!1;if(t.eachComponent((function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})})),i){var r,o,a=e.concat(n);qt(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),Object(u["k"])(a,(function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,a=e.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)}))}}function n(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),t.hoverState===vs&&t.states.emphasis?e.push("emphasis"):t.hoverState===gs&&t.states.blur&&e.push("blur"),t.useStates(e)}function i(t,e){var n=t._zr,i=n.storage,r=0;i.traverse((function(t){t.isGroup||r++})),r>e.get("hoverLayerThreshold")&&!l["a"].node&&!l["a"].worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}function r(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}function o(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,i=t.get("zlevel")||0;e.eachRendered((function(t){return a(t,n,i,-1/0),!0}))}}function a(t,e,n,i){var r=t.getTextContent(),o=t.getTextGuideLine(),s=t.isGroup;if(s)for(var l=t.childrenRef(),u=0;u<l.length;u++)i=Math.max(a(l[u],e,n,i),i);else t.z=e,t.zlevel=n,i=Math.max(t.z2,i);if(r&&(r.z=e,r.zlevel=n,isFinite(i)&&(r.z2=i+2)),o){var c=t.textGuideLineConfig;o.z=e,o.zlevel=n,isFinite(i)&&(o.z2=i+(c&&c.showAbove?1:-1))}return i}function c(t,e){e.eachRendered((function(t){if(!Tl(t)){var 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 h(t,e){var i=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;e.eachRendered((function(t){if(t.states&&t.states.emphasis){if(Tl(t))return;if(t instanceof ka&&_l(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(r){t.stateTransition=a;var i=t.getTextContent(),o=t.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&n(t)}}))}Zm=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Km(t,!0),Km(t,!1),e.plan()},Km=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<r.length;l++)r[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&o[u];if(!c){var h=Ir(t.type),p=e?Gf.getClass(h.main,h.sub):uv.getClass(h.sub);0,c=new p,c.init(n,s),o[u]=c,r.push(c),a.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&i.prepareView(c,t,n,s)}e?n.eachComponent((function(t,e){"series"!==t&&u(e)})):n.eachSeries(u);for(l=0;l<r.length;){var c=r[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),r.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},Qm=function(t,e,n,i,r){var o=t._model;if(o.setUpdatePayload(n),i){var a={};a[i+"Id"]=n[i+"Id"],a[i+"Index"]=n[i+"Index"],a[i+"Name"]=n[i+"Name"];var s={mainType:i,query:a};r&&(s.subType=r);var l,c=n.excludeSeriesId;null!=c&&(l=Object(u["f"])(),Object(u["k"])($i(c),(function(t){var e=pr(t,null);null!=e&&l.set(e,!0)}))),o&&o.eachComponent(s,(function(e){var i=l&&null!=l.get(e.id);if(!i)if(ml(n))if(e instanceof Hf)n.type!==bs||n.notBlur||e.get(["emphasis","disabled"])||tl(e,n,t._api);else{var r=el(e.mainType,e.componentIndex,n.name,t._api),o=r.focusSelf,a=r.dispatchers;n.type===bs&&o&&!n.notBlur&&Js(e.mainType,e.componentIndex,t._api),a&&Object(u["k"])(a,(function(t){n.type===bs?Ws(t):Us(t)}))}else yl(n)&&e instanceof Hf&&(rl(e,n,t._api),ol(e),c_(t))}),t),o&&o.eachComponent(s,(function(e){var n=l&&null!=l.get(e.id);n||h(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else Object(u["k"])([].concat(t._componentsViews).concat(t._chartsViews),h);function h(i){i&&i.__alive&&i[e]&&i[e](i.__model,o,t._api,n)}},$m={prepareAndUpdate:function(t){Zm(this),$m.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var i=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(e),s.restoreData(i,e),s.performSeriesTasks(i),a.create(i,r),s.performDataProcessorTasks(i,e),t_(this,i),a.update(i,r),t(i),s.performVisualTasks(i,e),a_(this,i,r,e,n);var l=i.get("backgroundColor")||"transparent",u=i.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),ym.trigger("afterupdate",i,r)}},updateTransform:function(e){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(e);var o=[];i.eachComponent((function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,i,r,e);l&&l.update&&o.push(s)}else o.push(s)}}));var a=Object(u["f"])();i.eachSeries((function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,i,r,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)})),t(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0,dirtyMap:a}),l_(this,i,r,e,{},a),ym.trigger("afterupdate",i,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),uv.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),a_(this,n,this._api,e,{}),ym.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,i=this._model;i&&(i.setUpdatePayload(e),i.eachSeries((function(t){t.getData().clearAllVisual()})),uv.markUpdateMethod(e,"updateVisual"),t(i),this._scheduler.performVisualTasks(i,e,{visualType:"visual",setDirty:!0}),i.eachComponent((function(t,r){if("series"!==t){var o=n.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,n._api,e)}})),i.eachSeries((function(t){var r=n._chartsMap[t.__viewId];r.updateVisual(t,i,n._api,e)})),ym.trigger("afterupdate",i,this._api))},updateLayout:function(t){$m.update.call(this,t)}},Jm=function(t,e,n,i){if(t._disposed)y_(t.id);else{for(var r,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=xr(o,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(r=u[e](o,s,i)))return r}0}},t_=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries((function(t){i.updateStreamModes(t,n[t.__viewId])}))},e_=function(t,e){var n=this,i=this.getModel(),r=t.type,o=t.escapeConnect,a=m_[r],s=a.actionInfo,l=(s.update||"update").split(":"),c=l.pop(),h=null!=l[0]&&Ir(l[0]);this[Bm]=!0;var p=[t],f=!1;t.batch&&(f=!0,p=Object(u["F"])(t.batch,(function(e){return e=Object(u["i"])(Object(u["m"])({},e),t),e.batch=null,e})));var d,g=[],v=yl(t),y=ml(t);if(y&&Qs(this._api),Object(u["k"])(p,(function(e){if(d=a.action(e,n._model,n._api),d=d||Object(u["m"])({},e),d.type=s.event||d.type,g.push(d),y){var i=br(t),r=i.queryOptionMap,o=i.mainTypeSpecified,l=o?r.keys()[0]:"series";Qm(n,c,e,l),c_(n)}else v?(Qm(n,c,e,"series"),c_(n)):h&&Qm(n,c,e,h.main,h.sub)})),"none"!==c&&!y&&!v&&!h)try{this[Em]?(Zm(this),$m.update.call(this,t),this[Em]=null):$m[c].call(this,t)}catch(x){throw this[Bm]=!1,x}if(d=f?{type:s.event||r,escapeConnect:o,batch:g}:g[0],this[Bm]=!1,!e){var m=this._messageCenter;if(m.trigger(d.type,d),v){var _={type:"selectchanged",escapeConnect:o,selected:al(i),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};m.trigger(_.type,_)}}},n_=function(t){var e=this._pendingActions;while(e.length){var n=e.shift();e_.call(this,n,t)}},i_=function(t){!t&&this.trigger("updated")},r_=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[Em]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},o_=function(t,e){t.on("mouseover",(function(t){var n=t.target,i=sy(n,gl);i&&(nl(i,t,e._api),c_(e))})).on("mouseout",(function(t){var n=t.target,i=sy(n,gl);i&&(il(i,t,e._api),c_(e))})).on("click",(function(t){var n=t.target,i=sy(n,(function(t){return null!=ls(t).dataIndex}),!0);if(i){var r=i.selected?"unselect":"select",o=ls(i);e._api.dispatchAction({type:r,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}}))},a_=function(t,n,i,r,o){e(n),s_(t,n,i,r,o),Object(u["k"])(t._chartsViews,(function(t){t.__alive=!1})),l_(t,n,i,r,o),Object(u["k"])(t._chartsViews,(function(t){t.__alive||t.remove(n,i)}))},s_=function(t,e,n,i,r,a){Object(u["k"])(a||t._componentsViews,(function(t){var r=t.__model;c(r,t),t.render(r,e,n,i),o(r,t),h(r,t)}))},l_=function(t,e,n,a,s,l){var p=t._scheduler;s=Object(u["m"])(s||{},{updatedSeries:e.getSeries()}),ym.trigger("series:beforeupdate",e,n,s);var f=!1;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var i=n.renderTask;p.updatePayload(i,a),c(e,n),l&&l.get(e.uid)&&i.dirty(),i.perform(p.getPerformArgs(i))&&(f=!0),n.group.silent=!!e.get("silent"),r(e,n),ol(e)})),p.unfinished=f||p.unfinished,ym.trigger("series:layoutlabels",e,n,s),ym.trigger("series:transition",e,n,s),e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];o(e,n),h(e,n)})),i(t,e),ym.trigger("series:afterupdate",e,n,s)},c_=function(t){t[Fm]=!0,t.getZr().wakeUp()},h_=function(t){t[Fm]&&(t.getZr().storage.traverse((function(t){Tl(t)||n(t)})),t[Fm]=!1)},u_=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return s(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){while(e){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){Ws(e,n),c_(t)},n.prototype.leaveEmphasis=function(e,n){Us(e,n),c_(t)},n.prototype.enterBlur=function(e){qs(e),c_(t)},n.prototype.leaveBlur=function(e){Xs(e),c_(t)},n.prototype.enterSelect=function(e){Ys(e),c_(t)},n.prototype.leaveSelect=function(e){Zs(e),c_(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(ph))(t)},function(t){function e(t,e){for(var n=0;n<t.length;n++){var i=t[n];i[Vm]=e}}Object(u["k"])(__,(function(n,i){t._messageCenter.on(i,(function(n){if(k_[t.group]&&t[Vm]!==Gm){if(n&&n.escapeConnect)return;var i=t.makeActionFromEvent(n),r=[];Object(u["k"])(T_,(function(e){e!==t&&e.group===t.group&&r.push(e)})),e(r,Gm),Object(u["k"])(r,(function(t){t[Vm]!==Wm&&t.dispatchAction(i)})),e(r,Um)}}))}))}}(),e}(D),g_=d_.prototype;g_.on=qm("on"),g_.off=qm("off"),g_.one=function(t,e,n){var i=this;function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];e&&e.apply&&e.apply(this,n),i.off(t,r)}Jc("ECharts#one is deprecated."),this.on.call(this,t,r,n)};var v_=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function y_(t){0}var m_={},__={},x_=[],b_=[],w_=[],S_={},O_={},T_={},k_={},M_=(new Date,new Date,"_echarts_instance_");function C_(t,e){S_[t]=e}function I_(t){Object(u["q"])(b_,t)<0&&b_.push(t)}function D_(t,e){E_(x_,t,e,Tm)}function j_(t){P_("afterinit",t)}function A_(t){P_("afterupdate",t)}function P_(t,e){ym.on(t,e)}function L_(t,e,n){Object(u["v"])(e)&&(n=e,e="");var i=Object(u["z"])(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,__[e]||(Object(u["b"])(Hm.test(i)&&Hm.test(e)),m_[i]||(m_[i]={action:n,actionInfo:t}),__[e]=i)}function R_(t,e){gh.register(t,e)}function z_(t,e){E_(w_,t,e,Mm,"layout")}function N_(t,e){E_(w_,t,e,Dm,"visual")}var B_=[];function E_(t,e,n,i,r){if((Object(u["v"])(e)||Object(u["z"])(e))&&(n=e,e=i),!(Object(u["q"])(B_,n)>=0)){B_.push(n);var o=Vv.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function F_(t,e){O_[t]=e}function H_(t,e,n){var i=xm("registerMap");i&&i(t,e,n)}var V_=Ep;N_(Im,bv),N_(Am,Sv),N_(Am,Ov),N_(Im,ty),N_(Am,ey),N_(zm,gm),I_(qh),D_(Sm,Xh),F_("default",kv),L_({type:bs,event:bs,update:bs},u["I"]),L_({type:ws,event:ws,update:ws},u["I"]),L_({type:Ss,event:Ss,update:Ss},u["I"]),L_({type:Os,event:Os,update:Os},u["I"]),L_({type:Ts,event:Ts,update:Ts},u["I"]),C_("light",Wv),C_("dark",Kv);var G_=[],W_={registerPreprocessor:I_,registerProcessor:D_,registerPostInit:j_,registerPostUpdate:A_,registerUpdateLifecycle:P_,registerAction:L_,registerCoordinateSystem:R_,registerLayout:z_,registerVisual:N_,registerTransform:V_,registerLoading:F_,registerMap:H_,registerImpl:_m,PRIORITY:Nm,ComponentModel:wc,ComponentView:Gf,SeriesModel:Hf,ChartView:uv,registerComponentModel:function(t){wc.registerClass(t)},registerComponentView:function(t){Gf.registerClass(t)},registerSeriesModel:function(t){Hf.registerClass(t)},registerChartView:function(t){uv.registerClass(t)},registerSubTypeDefaulter:function(t,e){wc.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){ki(t,e)}};function U_(t){Object(u["s"])(t)?Object(u["k"])(t,(function(t){U_(t)})):Object(u["q"])(G_,t)>=0||(G_.push(t),Object(u["v"])(t)&&(t={install:t}),t.install(W_))}function q_(t,e,n){var i=Yn["c"].createCanvas(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}var X_=function(t){function e(e,n,i){var r,o=t.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,i=i||jn,"string"===typeof e?r=q_(e,n,i):u["z"](e)&&(r=e,e=r.id),o.id=e,o.dom=r;var a=r.style;return a&&(u["j"](r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=i,o}return s(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=q_("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new Ot(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length){var e=new Ot(0,0,0,0);e.copy(t),o.push(e)}else{for(var n=!1,i=1/0,r=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(t)){var h=new Ot(0,0,0,0);h.copy(c),h.union(t),o[u]=h,n=!0;break}if(s){l.copy(t),l.union(c);var p=t.width*t.height,f=c.width*c.height,d=l.width*l.height,g=d-p-f;g<i&&(i=g,r=u)}}if(s&&(o[r].union(t),n=!0),!n){e=new Ot(0,0,0,0);e.copy(t),o.push(e)}s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var h=t[c];if(h){var p=h.shouldBePainted(n,i,!0,!0),f=h.__isRendered&&(h.__dirty&Xt||!p)?h.getPrevPaintRect():null;f&&u(f);var d=p&&(h.__dirty&Xt||!h.__isRendered)?h.getPaintRect():null;d&&u(d)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){h=e[c],p=h&&h.shouldBePainted(n,i,!0,!0);if(h&&(!p||!h.__zr)&&h.__isRendered){f=h.getPrevPaintRect();f&&u(f)}}do{r=!1;for(c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(r=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(r);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var i=this.dom,r=this.ctx,o=i.width,a=i.height;e=e||this.clearColor;var s=this.motionBlur&&!t,l=this.lastFrameAlpha,c=this.dpr,h=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,o/c,a/c));var p=this.domBack;function f(t,n,i,o){if(r.clearRect(t,n,i,o),e&&"transparent"!==e){var a=void 0;if(u["w"](e)){var f=e.global||e.__width===i&&e.__height===o;a=f&&e.__canvasGradient||ky(r,e,{x:0,y:0,width:i,height:o}),e.__canvasGradient=a,e.__width=i,e.__height=o}else u["x"](e)&&(e.scaleX=e.scaleX||c,e.scaleY=e.scaleY||c,a=By(r,e,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));r.save(),r.fillStyle=a||e,r.fillRect(t,n,i,o),r.restore()}s&&(r.save(),r.globalAlpha=l,r.drawImage(p,t,n,i,o),r.restore())}!n||s?f(0,0,o,a):n.length&&u["k"](n,(function(t){f(t.x*c,t.y*c,t.width*c,t.height*c)}))},e}(D),Y_=X_,Z_=1e5,K_=314159,Q_=.01,$_=.001;function J_(t){return!!t&&(!!t.__builtin__||"function"===typeof t.resize&&"function"===typeof t.refresh)}function tx(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var ex=function(){function t(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=u["m"]({},n||{}),this.dpr=n.devicePixelRatio||jn,this._singleCanvas=r,this.root=t;var o=t.style;o&&(u["j"](t),t.innerHTML=""),this.storage=e;var a=this._zlevelList;this._prevDisplayList=[];var s=this._layers;if(r){var l=t,c=l.width,h=l.height;null!=n.width&&(c=n.width),null!=n.height&&(h=n.height),this.dpr=n.devicePixelRatio||1,l.width=c*this.dpr,l.height=h*this.dpr,this._width=c,this._height=h;var p=new Y_(l,this,this.dpr);p.__builtin__=!0,p.initContext(),s[K_]=p,p.zlevel=K_,a.push(K_),this._domRoot=t}else{this._width=Iy(t,0,n),this._height=Iy(t,1,n);var f=this._domRoot=tx(this._width,this._height);t.appendChild(f)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var r=0;r<i.length;r++){var o=i[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Z_)),i||(i=n.ctx,i.save()),rm(i,a,r,o===e-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(Z_)},t.prototype.paintOne=function(t,e){im(t,e)},t.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer((function(t){t.afterBrush&&t.afterBrush()}));else{var s=this;ne((function(){s._paintList(t,e,n,i)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(K_).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)}))},t.prototype._doPaintList=function(t,e,n){for(var i=this,r=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],c=this._layers[s];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||n)&&r.push(c)}for(var h=!0,p=!1,f=function(a){var s,l=r[a],u=l.ctx,c=o&&l.createRepaintRects(t,e,d._width,d._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,v=g&&Date.now(),y=l.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,y,c);else if(f===l.__startIndex){var m=t[f];m.incremental&&m.notClear&&!n||l.clear(!1,y,c)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var _=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=f;s<l.__endIndex;s++){var r=t[s];if(r.__inHover&&(p=!0),i._doPaintEl(r,l,o,e,n,s===l.__endIndex-1),g){var a=Date.now()-v;if(a>15)break}}n.prevElClipPaths&&u.restore()};if(c)if(0===c.length)s=l.__endIndex;else for(var x=d.dpr,b=0;b<c.length;++b){var w=c[b];u.save(),u.beginPath(),u.rect(w.x*x,w.y*x,w.width*x,w.height*x),u.clip(),_(w),u.restore()}else u.save(),_(),u.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(h=!1)},d=this,g=0;g<r.length;g++)f(g);return l["a"].wxa&&u["k"](this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:h,needsRefreshHover:p}},t.prototype._doPaintEl=function(t,e,n,i,r,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!i||s&&s.intersect(i))&&(rm(a,t,r,o),t.setPrevPaintRect(s))}else rm(a,t,r,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=K_);var n=this._layers[t];return n||(n=new Y_("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?u["G"](n,this._layerConfig[t],!0):this._layerConfig[t-Q_]&&u["G"](n,this._layerConfig[t-Q_],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,o=this._domRoot,a=null,s=-1;if(!n[t]&&J_(e)){if(r>0&&t>i[0]){for(s=0;s<r-1;s++)if(i[s]<t&&i[s+1]>t)break;a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];t.call(e,this._layers[r],r)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){a&&(a.__endIndex!==t&&(a.__dirty=!0),a.__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}}var r,o,a=null,s=0;for(o=0;o<t.length;o++){i=t[o];var l=i.zlevel,c=void 0;r!==l&&(r=l,s=0),i.incremental?(c=this.getLayer(l+$_,this._needsManuallyCompositing),c.incremental=!0,s=1):c=this.getLayer(l+(s>0?Q_:0),this._needsManuallyCompositing),c.__builtin__||u["E"]("ZLevel "+l+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==o&&(c.__dirty=!0),c.__startIndex=o,c.incremental?c.__drawIndex=-1:c.__drawIndex=o,e(o),a=c),i.__dirty&Xt&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,u["k"](this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?u["G"](n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];if(r===t||r===t+Q_){var o=this._layers[r];u["G"](o,n[t],!0)}}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(u["q"](n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,r=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=Iy(r,0,i),e=Iy(r,1,i),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(K_).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[K_].dom;var e=new Y_("image",this,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,r=e.dom.height;this.eachLayer((function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,r):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];rm(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),nx=ex;function ix(t){t.registerPainter("canvas",nx)}var rx=2*Math.PI,ox=Math.PI/180;function ax(t,e){return dc(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function sx(t,e){var n=ax(t,e),i=t.get("center"),r=t.get("radius");u["s"](r)||(r=[0,r]);var o,a,s=Ai(n.width,e.getWidth()),l=Ai(n.height,e.getHeight()),c=Math.min(s,l),h=Ai(r[0],c/2),p=Ai(r[1],c/2),f=t.coordinateSystem;if(f){var d=f.dataToPoint(i);o=d[0]||0,a=d[1]||0}else u["s"](i)||(i=[i,i]),o=Ai(i[0],s)+n.x,a=Ai(i[1],l)+n.y;return{cx:o,cy:a,r0:h,r:p}}function lx(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),r=ax(t,n),o=sx(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-t.get("startAngle")*ox,h=t.get("endAngle"),p=t.get("padAngle")*ox;h="auto"===h?c-rx:-h*ox;var f=t.get("minAngle")*ox,d=f+p,g=0;e.each(i,(function(t){!isNaN(t)&&g++}));var v=e.getSum(i),y=Math.PI/(v||g)*2,m=t.get("clockwise"),_=t.get("roseType"),x=t.get("stillShowZeroSum"),b=e.getDataExtent(i);b[0]=0;var w=m?1:-1,S=[c,h],O=w*p/2;$o(S,!m),c=S[0],h=S[1];var T=ux(t);T.startAngle=c,T.endAngle=h,T.clockwise=m;var k=Math.abs(h-c),M=k,C=0,I=c;if(e.setLayout({viewRect:r,r:l}),e.each(i,(function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:a,cy:s,r0:u,r:_?NaN:l});else{i="area"!==_?0===v&&x?y:t*y:k/g,i<d?(i=d,M-=d):C+=t;var r=I+w*i,o=0,c=0;p>i?(o=I+w*i/2,c=o):(o=I+O,c=r-O),e.setItemLayout(n,{angle:i,startAngle:o,endAngle:c,clockwise:m,cx:a,cy:s,r0:u,r:_?ji(t,b,[u,l]):l}),I=r}})),M<rx&&g)if(M<=.001){var D=k/g;e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n);i.angle=D;var r=0,o=0;D<p?(r=c+w*(n+.5)*D,o=r):(r=c+w*n*D+O,o=c+w*(n+1)*D-O),i.startAngle=r,i.endAngle=o}}))}else y=M/C,I=c,e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n),r=i.angle===d?d:t*y,o=0,a=0;r<p?(o=I+w*r/2,a=o):(o=I+O,a=I+w*r-O),i.startAngle=o,i.endAngle=a,I+=w*r}}))}))}var ux=mr();function cx(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf((function(t){for(var e=i.getName(t),r=0;r<n.length;r++)if(!n[r].isSelected(e))return!1;return!0}))}}}}Math.PI,ta.CMD;function hx(t,e,n,i,r,o,a,s){var l=r-t,u=o-e,c=n-t,h=i-e,p=Math.sqrt(c*c+h*h);c/=p,h/=p;var f=l*c+u*h,d=f/p;s&&(d=Math.min(Math.max(d,0),1)),d*=p;var g=a[0]=t+d*c,v=a[1]=e+d*h;return Math.sqrt((g-r)*(g-r)+(v-o)*(v-o))}var px=new dt,fx=new dt,dx=new dt,gx=new dt,vx=new dt;var yx=[],mx=new dt;function _x(t,e){if(e<=180&&e>0){e=e/180*Math.PI,px.fromArray(t[0]),fx.fromArray(t[1]),dx.fromArray(t[2]),dt.sub(gx,px,fx),dt.sub(vx,dx,fx);var n=gx.len(),i=vx.len();if(!(n<.001||i<.001)){gx.scale(1/n),vx.scale(1/i);var r=gx.dot(vx),o=Math.cos(e);if(o<r){var a=hx(fx.x,fx.y,dx.x,dx.y,px.x,px.y,yx,!1);mx.fromArray(yx),mx.scaleAndAdd(vx,a/Math.tan(Math.PI-e));var s=dx.x!==fx.x?(mx.x-fx.x)/(dx.x-fx.x):(mx.y-fx.y)/(dx.y-fx.y);if(isNaN(s))return;s<0?dt.copy(mx,fx):s>1&&dt.copy(mx,dx),mx.toArray(t[1])}}}}function xx(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,px.fromArray(t[0]),fx.fromArray(t[1]),dx.fromArray(t[2]),dt.sub(gx,fx,px),dt.sub(vx,dx,fx);var i=gx.len(),r=vx.len();if(!(i<.001||r<.001)){gx.scale(1/i),vx.scale(1/r);var o=gx.dot(e),a=Math.cos(n);if(o<a){var s=hx(fx.x,fx.y,dx.x,dx.y,px.x,px.y,yx,!1);mx.fromArray(yx);var l=Math.PI/2,u=Math.acos(vx.dot(e)),c=l+u-n;if(c>=l)dt.copy(mx,dx);else{mx.scaleAndAdd(vx,s/Math.tan(Math.PI/2-c));var h=dx.x!==fx.x?(mx.x-fx.x)/(dx.x-fx.x):(mx.y-fx.y)/(dx.y-fx.y);if(isNaN(h))return;h<0?dt.copy(mx,fx):h>1&&dt.copy(mx,dx)}mx.toArray(t[1])}}}}function bx(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function wx(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=_(i[0],i[1]),o=_(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=w([],i[1],i[0],a/r),l=w([],i[1],i[2],a/o),u=w([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)t.lineTo(i[c][0],i[c][1])}function Sx(t,e,n){var i=t.getTextGuideLine(),r=t.getTextContent();if(r){for(var o=e.normal,a=o.get("show"),s=r.ignore,l=0;l<ms.length;l++){var c=ms[l],h=e[c],p="normal"===c;if(h){var f=h.get("show"),d=p?s:Object(u["M"])(r.states[c]&&r.states[c].ignore,s);if(d||!Object(u["M"])(f,a)){var g=p?i:i&&i.states[c];g&&(g.ignore=!0),i&&bx(i,!0,c,h);continue}i||(i=new Xd,t.setTextGuideLine(i),p||!s&&a||bx(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),bx(i,!1,c,h)}}if(i){Object(u["i"])(i.style,n),i.style.fill=null;var v=o.get("showAbove"),y=t.textGuideLineConfig=t.textGuideLineConfig||{};y.showAbove=v||!1,i.buildPath=wx}}else i&&t.removeTextGuideLine()}function Ox(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},i=0;i<ys.length;i++){var r=ys[i];n[r]=t.getModel([r,e])}return n}function Tx(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];if(!i.defaultAttr.ignore){var r=i.label,o=r.getComputedTransform(),a=r.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=r.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new _g(a,o):null;e.push({label:r,labelLine:i.labelLine,rect:u,localRect:a,obb:c,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:o})}}return e}function kx(t,e,n,i,r,o){var a=t.length;if(!(a<2)){t.sort((function(t,n){return t.rect[e]-n.rect[e]}));for(var s,l=0,u=!1,c=[],h=0,p=0;p<a;p++){var f=t[p],d=f.rect;s=d[e]-l,s<0&&(d[e]-=s,f.label[e]-=s,u=!0);var g=Math.max(-s,0);c.push(g),h+=g,l=d[e]+d[n]}h>0&&o&&w(-h/a,0,a);var v,y,m=t[0],_=t[a-1];return x(),v<0&&S(-v,.8),y<0&&S(y,.8),x(),b(v,y,1),b(y,v,-1),x(),v<0&&O(-v),y<0&&O(y),u}function x(){v=m.rect[e]-i,y=r-_.rect[e]-_.rect[n]}function b(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){w(i*n,0,a);var r=i+t;r<0&&S(-r*n,1)}else S(-t*n,1)}}function w(n,i,r){0!==n&&(u=!0);for(var o=i;o<r;o++){var a=t[o],s=a.rect;s[e]+=n,a.label[e]+=n}}function S(i,r){for(var o=[],s=0,l=1;l<a;l++){var u=t[l-1].rect,c=Math.max(t[l].rect[e]-u[e]-u[n],0);o.push(c),s+=c}if(s){var h=Math.min(Math.abs(i)/s,r);if(i>0)for(l=0;l<a-1;l++){var p=o[l]*h;w(p,0,l+1)}else for(l=a-1;l>0;l--){p=o[l-1]*h;w(-p,l,a)}}}function O(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),i=0;i<a-1;i++)if(e>0?w(n,0,i+1):w(-n,a-i-1,a),t-=n,t<=0)return}}function Mx(t,e,n,i){return kx(t,"y","height",e,n,i)}function Cx(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new Ot(0,0,0,0);function i(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var r=0;r<t.length;r++){var o=t[r],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var h=o.obb,p=!1,f=0;f<e.length;f++){var d=e[f];if(n.intersect(d.rect)){if(a&&d.axisAligned){p=!0;break}if(d.obb||(d.obb=new _g(d.localRect,d.transform)),h||(h=new _g(s,l)),h.intersect(d.obb)){p=!0;break}}}p?(i(u),c&&i(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),e.push(o))}}var Ix=Math.PI/180;function Dx(t,e,n,i,r,o,a,s,l,u){if(!(t.length<2)){for(var c=t.length,h=0;h<c;h++)if("outer"===t[h].position&&"labelLine"===t[h].labelAlignTo){var p=t[h].label.x-u;t[h].linePoints[1][0]+=p,t[h].label.x=u}Mx(t,l,l+a)&&d(t)}function f(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),c=i+l.len,h=c*c,p=Math.sqrt(Math.abs((1-u*u/a)*h)),f=e+(p+l.len2)*r,d=f-l.label.x,g=l.targetTextWidth-d*r;Ax(l,g,!0),l.label.x=f}}function d(t){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],u=l.label.y>n?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-e-l.len2*r,p=i+l.len,d=Math.abs(h)<p?Math.sqrt(c*c/(1-h*h/p/p)):p;u.rB=d,u.maxY=c}u.list.push(l)}f(o),f(a)}}function jx(t,e,n,i,r,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,p=0;p<t.length;p++){var f=t[p].label;Px(t[p])||(f.x<e?(c=Math.min(c,f.x),l.push(t[p])):(h=Math.max(h,f.x),u.push(t[p])))}for(p=0;p<t.length;p++){var d=t[p];if(!Px(d)&&d.linePoints){if(null!=d.labelStyleWidth)continue;f=d.label;var g=d.linePoints,v=void 0;v="edge"===d.labelAlignTo?f.x<e?g[2][0]-d.labelDistance-a-d.edgeDistance:a+r-d.edgeDistance-g[2][0]-d.labelDistance:"labelLine"===d.labelAlignTo?f.x<e?c-a-d.bleedMargin:a+r-h-d.bleedMargin:f.x<e?f.x-a-d.bleedMargin:a+r-f.x-d.bleedMargin,d.targetTextWidth=v,Ax(d,v)}}Dx(u,e,n,i,1,r,o,a,s,h),Dx(l,e,n,i,-1,r,o,a,s,c);for(p=0;p<t.length;p++){d=t[p];if(!Px(d)&&d.linePoints){f=d.label,g=d.linePoints;var y="edge"===d.labelAlignTo,m=f.style.padding,_=m?m[1]+m[3]:0,x=f.style.backgroundColor?0:_,b=d.rect.width+x,w=g[1][0]-g[2][0];y?f.x<e?g[2][0]=a+d.edgeDistance+b+d.labelDistance:g[2][0]=a+r-d.edgeDistance-b-d.labelDistance:(f.x<e?g[2][0]=f.x+d.labelDistance:g[2][0]=f.x-d.labelDistance,g[1][0]=g[2][0]+w),g[1][1]=g[2][1]=f.y}}}function Ax(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var i=t.label,r=i.style,o=t.rect,a=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,u=r.overflow,c=o.width+(a?0:l);if(e<c||n){var h=o.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var p=i.getBoundingRect();i.setStyle("width",Math.ceil(p.width)),i.setStyle("backgroundColor",a)}else{var f=e-l,d=e<c?f:n?f>t.unconstrainedWidth?null:f:null;i.setStyle("width",d)}var g=i.getBoundingRect();o.width=g.width;var v=(i.style.margin||0)+2.1;o.height=g.height+v,o.y-=(o.height-h)/2}}}function Px(t){return"center"===t.position}function Lx(t){var e,n,i=t.getData(),r=[],o=!1,a=(t.get("minShowLabelAngle")||0)*Ix,s=i.getLayout("viewRect"),l=i.getLayout("r"),c=s.width,h=s.x,p=s.y,f=s.height;function d(t){t.ignore=!0}function g(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}i.each((function(t){var s=i.getItemGraphicEl(t),p=s.shape,f=s.getTextContent(),v=s.getTextGuideLine(),y=i.getItemModel(t),m=y.getModel("label"),_=m.get("position")||y.get(["emphasis","label","position"]),x=m.get("distanceToLabelLine"),b=m.get("alignTo"),w=Ai(m.get("edgeDistance"),c),S=m.get("bleedMargin"),O=y.getModel("labelLine"),T=O.get("length");T=Ai(T,c);var k=O.get("length2");if(k=Ai(k,c),Math.abs(p.endAngle-p.startAngle)<a)return Object(u["k"])(f.states,d),f.ignore=!0,void(v&&(Object(u["k"])(v.states,d),v.ignore=!0));if(g(f)){var M,C,I,D,j=(p.startAngle+p.endAngle)/2,A=Math.cos(j),P=Math.sin(j);e=p.cx,n=p.cy;var L="inside"===_||"inner"===_;if("center"===_)M=p.cx,C=p.cy,D="center";else{var R=(L?(p.r+p.r0)/2*A:p.r*A)+e,z=(L?(p.r+p.r0)/2*P:p.r*P)+n;if(M=R+3*A,C=z+3*P,!L){var N=R+A*(T+l-p.r),B=z+P*(T+l-p.r),E=N+(A<0?-1:1)*k,F=B;M="edge"===b?A<0?h+w:h+c-w:E+(A<0?-x:x),C=F,I=[[R,z],[N,B],[E,F]]}D=L?"center":"edge"===b?A>0?"right":"left":A>0?"left":"right"}var H=Math.PI,V=0,G=m.get("rotate");if(Object(u["y"])(G))V=G*(H/180);else if("center"===_)V=0;else if("radial"===G||!0===G){var W=A<0?-j+H:-j;V=W}else if("tangential"===G&&"outside"!==_&&"outer"!==_){var U=Math.atan2(A,P);U<0&&(U=2*H+U);var q=P>0;q&&(U=H+U),V=U-H}if(o=!!V,f.x=M,f.y=C,f.rotation=V,f.setStyle({verticalAlign:"middle"}),L){f.setStyle({align:D});var X=f.states.select;X&&(X.x+=f.x,X.y+=f.y)}else{var Y=f.getBoundingRect().clone();Y.applyTransform(f.getComputedTransform());var Z=(f.style.margin||0)+2.1;Y.y-=Z/2,Y.height+=Z,r.push({label:f,labelLine:v,position:_,len:T,len2:k,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new dt(A,P),linePoints:I,textAlign:D,labelDistance:x,labelAlignTo:b,edgeDistance:w,bleedMargin:S,rect:Y,unconstrainedWidth:Y.width,labelStyleWidth:f.style.width})}s.setTextConfig({inside:L})}})),!o&&t.get("avoidLabelOverlap")&&jx(r,e,n,l,c,f,h,p);for(var v=0;v<r.length;v++){var y=r[v],m=y.label,_=y.labelLine,x=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:y.textAlign}),x&&(Object(u["k"])(m.states,d),m.ignore=!0);var b=m.states.select;b&&(b.x+=m.x,b.y+=m.y)}if(_){var w=y.linePoints;x||!w?(Object(u["k"])(_.states,d),_.ignore=!0):(_x(w,y.minTurnAngle),xx(w,y.surfaceNormal,y.maxSurfaceAngle),_.setShape({points:w}),m.__hostTarget.textGuideLineConfig={anchor:new dt(w[0][0],w[0][1])})}}}function Rx(t,e,n){var i=t.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;Object(u["s"])(i)||(i=[i,i,i,i]);var r=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Object(u["F"])(i,(function(t){return ni(t,r)}))}}var zx=function(t){function e(e,n,i){var r=t.call(this)||this;r.z2=2;var o=new ss;return r.setTextContent(o),r.updateData(e,n,i,!0),r}return s(e,t),e.prototype.updateData=function(t,e,n,i){var r=this,o=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),c=Object(u["m"])(Rx(a.getModel("itemStyle"),l,!0),l);if(isNaN(c.startAngle))r.setShape(c);else{if(i){r.setShape(c);var h=o.getShallow("animationType");o.ecModel.ssr?(Ol(r,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),r.originX=c.cx,r.originY=c.cy):"scale"===h?(r.shape.r=l.r0,Ol(r,{shape:{r:l.r}},o,e)):null!=n?(r.setShape({startAngle:n,endAngle:n}),Ol(r,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(r.shape.endAngle=l.startAngle,Sl(r,{shape:{endAngle:l.endAngle}},o,e))}else Il(r),Sl(r,{shape:c},o,e);r.useStyle(t.getItemVisual(e,"style")),fl(r,a);var p=(l.startAngle+l.endAngle)/2,f=o.get("selectedOffset"),d=Math.cos(p)*f,g=Math.sin(p)*f,v=a.getShallow("cursor");v&&r.attr("cursor",v),this._updateLabel(o,t,e),r.ensureState("emphasis").shape=Object(u["m"])({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},Rx(s.getModel("itemStyle"),l)),Object(u["m"])(r.ensureState("select"),{x:d,y:g,shape:Rx(a.getModel(["select","itemStyle"]),l)}),Object(u["m"])(r.ensureState("blur"),{shape:Rx(a.getModel(["blur","itemStyle"]),l)});var y=r.getTextGuideLine(),m=r.getTextContent();y&&Object(u["m"])(y.ensureState("select"),{x:d,y:g}),Object(u["m"])(m.ensureState("select"),{x:d,y:g}),ul(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var i=this,r=e.getItemModel(n),o=r.getModel("labelLine"),a=e.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;Pl(i,Ll(r),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var h=t.get(["label","position"]);if("outside"!==h&&"outer"!==h)i.removeTextGuideLine();else{var p=this.getTextGuideLine();p||(p=new Xd,this.setTextGuideLine(p)),Sx(this,Ox(r),{stroke:s,opacity:Object(u["N"])(o.get(["lineStyle","opacity"]),l,1)})}},e}(zd),Nx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return s(e,t),e.prototype.render=function(t,e,n,i){var r,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),c=1;isNaN(l&&l.startAngle)&&c<o.count();++c)l=o.getItemLayout(c);l&&(r=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var h=ux(t),p=new zd({shape:Object(u["m"])(sx(t,n),h)});p.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=p,s.add(p)}o.diff(a).add((function(t){var e=new zx(o,t,r);o.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var n=a.getItemGraphicEl(e);n.updateData(o,t,r),n.off("click"),s.add(n),o.setItemGraphicEl(t,n)})).remove((function(e){var n=a.getItemGraphicEl(e);Cl(n,t,e)})).execute(),Lx(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var r=t[0]-i.cx,o=t[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}},e.type="pie",e}(uv),Bx=Nx,Ex=function(){function t(t){this.otherDims={},null!=t&&u["m"](this,t)}return t}(),Fx=Ex,Hx=mr(),Vx={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Gx=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=qx(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return Object(u["M"])(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=cp(this.source),n=!Xx(t),i="",r=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=e?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var h=this.getSourceDimension(o);h&&(s=e?h.name:null,l=h.type)}r.push({property:s,type:l,ordinalMeta:u}),!e||null==s||c&&c.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=Vx[l]||"f",u&&(i+=u.uid),i+="$"}var p=this.source,f=[p.seriesLayoutBy,p.startIndex,i].join("$$");return{dimensions:r,hash:f}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(i=r.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function Wx(t){return t instanceof Gx}function Ux(t){for(var e=Object(u["f"])(),n=0;n<(t||[]).length;n++){var i=t[n],r=Object(u["z"])(i)?i.name:i;null!=r&&null==e.get(r)&&e.set(r,n)}return e}function qx(t){var e=Hx(t);return e.dimNameMap||(e.dimNameMap=Ux(t.dimensionsDefine))}function Xx(t){return t>30}function Yx(t,e){ep(t)||(t=ip(t)),e=e||{};var n=e.coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],r=Object(u["f"])(),o=[],a=Kx(t,n,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Xx(a),l=i===t.dimensionsDefine,c=l?qx(t):Ux(i),h=e.encodeDefine;!h&&e.encodeDefaulter&&(h=e.encodeDefaulter(t,a));for(var p=Object(u["f"])(h),f=new Xp(a),d=0;d<f.length;d++)f[d]=-1;function g(t){var e=f[t];if(e<0){var n=i[t],r=Object(u["z"])(n)?n:{name:n},a=new Fx,s=r.name;null!=s&&null!=c.get(s)&&(a.name=a.displayName=s),null!=r.type&&(a.type=r.type),null!=r.displayName&&(a.displayName=r.displayName);var l=o.length;return f[t]=l,a.storeDimIndex=t,o.push(a),a}return o[e]}if(!s)for(d=0;d<a;d++)g(d);p.each((function(t,e){var n=$i(t).slice();if(1===n.length&&!Object(u["A"])(n[0])&&n[0]<0)p.set(e,!1);else{var i=p.set(e,[]);Object(u["k"])(n,(function(t,n){var r=Object(u["A"])(t)?c.get(t):t;null!=r&&r<a&&(i[n]=r,y(g(r),e,n))}))}}));var v=0;function y(t,e,n){null!=kc.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,r.set(e,!0))}Object(u["k"])(n,(function(t){var e,n,i,r;if(Object(u["A"])(t))e=t,r={};else{r=t,e=r.name;var o=r.ordinalMeta;r.ordinalMeta=null,r=Object(u["m"])({},r),r.ordinalMeta=o,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var s=p.get(e);if(!1!==s){if(s=$i(s),!s.length)for(var c=0;c<(n&&n.length||1);c++){while(v<a&&null!=g(v).coordDim)v++;v<a&&s.push(v++)}Object(u["k"])(s,(function(t,o){var a=g(t);if(l&&null!=r.type&&(a.type=r.type),y(Object(u["i"])(a,r),e,o),null==a.name&&n){var s=n[o];!Object(u["z"])(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}i&&Object(u["i"])(a.otherDims,i)}))}}));var m=e.generateCoord,_=e.generateCoordCount,x=null!=_;_=m?_||1:0;var b=m||"value";function w(t){null==t.name&&(t.name=t.coordDim)}if(s)Object(u["k"])(o,(function(t){w(t)})),o.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var S=0;S<a;S++){var O=g(S),T=O.coordDim;null==T&&(O.coordDim=Qx(b,r,x),O.coordDimIndex=0,(!m||_<=0)&&(O.isExtraCoord=!0),_--),w(O),null!=O.type||Hc(t,S)!==Rc.Must&&(!O.isExtraCoord||null==O.otherDims.itemName&&null==O.otherDims.seriesName)||(O.type="ordinal")}return Zx(o),new Gx({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function Zx(t){for(var e=Object(u["f"])(),n=0;n<t.length;n++){var i=t[n],r=i.name,o=e.get(r)||0;o>0&&(i.name=r+(o-1)),o++,e.set(r,o)}}function Kx(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return Object(u["k"])(e,(function(t){var e;Object(u["z"])(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))})),r}function Qx(t,e,n){if(n||e.hasKey(t)){var i=0;while(e.hasKey(t+i))i++;t+=i}return e.set(t,!0),t}function $x(t){return null==t?0:t.length||1}function Jx(t){return t}var tb=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||Jx,this._newKeyGetter=i||Jx,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=i[o],s=n[a],l=$x(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],u=i[s],c=$x(l),h=$x(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),i[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(c>1)for(var p=0;p<c;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],o=$x(r);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[i](t[o],o);if(r||(n[o]=a),e){var s=e[a],l=$x(s);0===l?(e[a]=o,r&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),eb=tb,nb=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function ib(t,e){var n={},i=n.encode={},r=Object(u["f"])(),o=[],a=[],s={};Object(u["k"])(t.dimensions,(function(e){var n=t.getDimensionInfo(e),l=n.coordDim;if(l){0;var u=n.coordDimIndex;rb(i,l)[u]=e,n.isExtraCoord||(r.set(l,1),ob(n.type)&&(o[0]=e),rb(s,l)[u]=t.getDimensionIndex(n.name)),n.defaultTooltip&&a.push(e)}kc.each((function(t,e){var r=rb(i,e),o=n.otherDims[e];null!=o&&!1!==o&&(r[o]=n.name)}))}));var l=[],c={};r.each((function(t,e){var n=i[e];c[e]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Object(u["F"])(l,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=c;var h=i.label;h&&h.length&&(o=h.slice());var p=i.tooltip;return p&&p.length?a=p.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new nb(s,e),n}function rb(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function ob(t){return!("ordinal"===t||"time"===t)}var ab,sb,lb,ub,cb,hb,pb,fb=u["z"],db=u["F"],gb="undefined"===typeof Int32Array?Array:Int32Array,vb="e\0\0",yb=-1,mb=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],_b=["_approximateExtent"],xb=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i=!1;Wx(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},c=0;c<n.length;c++){var h=n[c],p=u["A"](h)?new Fx({name:h}):h instanceof Fx?h:new Fx(h),f=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=f,p.coordDimIndex=0);var d=p.otherDims=p.otherDims||{};o.push(f),r[f]=p,null!=l[f]&&(s=!0),p.createInvertedIndices&&(a[f]=[]),0===d.itemName&&(this._nameDimIdx=c),0===d.itemId&&(this._idDimIdx=c),i&&(p.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var g=this._dimIdxToName=u["f"]();u["k"](o,(function(t){g.set(r[t].storeDimIndex,t)}))}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var i=this._schema.getSourceDimension(e);return i?i.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(u["y"](t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.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]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},t.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var i,r=this;if(t instanceof ef&&(i=t),!i){var o=this.dimensions,a=ep(t)||u["t"](t)?new hp(t,o.length):t;i=new ef;var s=db(o,(function(t){return{type:r._dimInfos[t].type,property:t}}));i.initData(a,s,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=ib(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e&&e.length),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=i;a<r;a++){var s=a-i;this._nameList[a]=e[s],o&&pb(this,a)}},t.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)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==jc&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList,a=i.getSource().sourceFormat,s=a===Mc;if(s&&!i.pure)for(var l=[],u=t;u<e;u++){var c=i.getItem(u,l);if(!this.hasItemOption&&nr(c)&&(this.hasItemOption=!0),c){var h=c.name;null==r[u]&&null!=h&&(r[u]=pr(h,null));var p=c.id;null==o[u]&&null!=p&&(o[u]=pr(p,null))}}if(this._shouldMakeIdFromName())for(u=t;u<e;u++)pb(this,u);ab(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){fb(t)?u["m"](this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=lb(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return sb(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,i=this._store;return u["s"](t)?i.getValues(db(t,(function(t){return n._getStoreDimIndex(t)})),e):i.getValues(t)},t.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},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t];var i=n&&n[e];return null==i||isNaN(i)?yb:i},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){u["v"](t)&&(n=e,e=t,t=[]);var i=n||this,r=db(ub(t),this._getStoreDimIndex,this);this._store.each(r,i?u["c"](e,i):e)},t.prototype.filterSelf=function(t,e,n){u["v"](t)&&(n=e,e=t,t=[]);var i=n||this,r=db(ub(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?u["c"](e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={},i=u["D"](t),r=[];return u["k"](i,(function(i){var o=e._getStoreDimIndex(i);n[o]=t[i],r.push(o)})),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){u["v"](t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,(function(){i.push(e&&e.apply(this,arguments))}),n),i},t.prototype.map=function(t,e,n,i){var r=n||i||this,o=db(ub(t),this._getStoreDimIndex,this),a=hb(this);return a._store=this._store.map(o,r?u["c"](e,r):e),a},t.prototype.modify=function(t,e,n,i){var r=n||i||this;var o=db(ub(t),this._getStoreDimIndex,this);this._store.modify(o,r?u["c"](e,r):e)},t.prototype.downSample=function(t,e,n,i){var r=hb(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},t.prototype.minmaxDownSample=function(t,e){var n=hb(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},t.prototype.lttbDownSample=function(t,e){var n=hb(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new iu(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new eb(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return sb(t,e)}),(function(t){return sb(e,t)}))},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},fb(t)?u["m"](this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(r=this.getVisual(e),u["s"](r)?r=r.slice():fb(r)&&(r=u["m"]({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,fb(e)?u["m"](i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){fb(t)?u["m"](this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?u["m"](this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;us(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){u["k"](this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:db(this.dimensions,this._getDimInfo,this),this.hostModel)),cb(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];u["v"](n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(u["P"](arguments)))})},t.internalField=function(){ab=function(t){var e=t._invertedIndicesMap;u["k"](e,(function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new gb(o.categories.length);for(var s=0;s<n.length;s++)n[s]=yb;for(s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}}))},lb=function(t,e,n){return pr(t._getCategory(e,n),null)},sb=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=lb(t,t._idDimIdx,e)),null==n&&(n=vb+e),n},ub=function(t){return u["s"](t)||(t=null!=t?[t]:[]),t},hb=function(e){var n=new t(e._schema?e._schema:db(e.dimensions,e._getDimInfo,e),e.hostModel);return cb(n,e),n},cb=function(t,e){u["k"](mb.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,u["k"](_b,(function(n){t[n]=u["d"](e[n])})),t._calculationInfo=u["m"]({},e._calculationInfo)},pb=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];if(null==a&&null!=r&&(n[e]=a=lb(t,r,e)),null==s&&null!=o&&(i[e]=s=lb(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),i[e]=s}}}(),t}(),bb=xb;function wb(t,e,n){e=Object(u["s"])(e)&&{coordDimensions:e}||Object(u["m"])({encodeDefine:t.getEncode()},e);var i=t.getSource(),r=Yx(i,e).dimensions,o=new bb(r,t);return o.initData(i,n),o}var Sb=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},t.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},t.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},t}(),Ob=Sb,Tb=mr(),kb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ob(u["c"](this.getData,this),u["c"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return wb(this,{coordDimensions:["value"],encodeDefaulter:u["h"](Bc,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=Tb(n),r=i.seats;if(!r){var o=[];n.each(n.mapDimension("value"),(function(t){o.push(t)})),r=i.seats=zi(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=r[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){Ji(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},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Hf),Mb=kb;function Cb(t){return{seriesType:t,reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),i=n.get(e,t);return!(Object(u["y"])(i)&&!isNaN(i)&&i<0)}))}}}function Ib(t){t.registerChartView(Bx),t.registerSeriesModel(Mb),ry("pie",t.registerAction),t.registerLayout(Object(u["h"])(lx,"pie")),t.registerProcessor(cx("pie")),t.registerProcessor(Cb("pie"))}var Db=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return s(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(wc),jb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return s(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=u["M"](t.get("textBaseline"),t.get("textVerticalAlign")),l=new ss({style:Rl(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),c=l.getBoundingRect(),h=t.get("subtext"),p=new ss({style:Rl(o,{text:h,fill:o.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),f=t.get("link"),d=t.get("sublink"),g=t.get("triggerEvent",!0);l.silent=!f&&!g,p.silent=!d&&!g,f&&l.on("click",(function(){lc(f,"_"+t.get("target"))})),d&&p.on("click",(function(){lc(d,"_"+t.get("subtarget"))})),ls(l).eventData=ls(p).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),h&&i.add(p);var v=i.getBoundingRect(),y=t.getBoxLayoutParams();y.width=v.width,y.height=v.height;var m=dc(y,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||(a=t.get("left")||t.get("right"),"middle"===a&&(a="center"),"right"===a?m.x+=m.width:"center"===a&&(m.x+=m.width/2)),s||(s=t.get("top")||t.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?m.y+=m.height:"middle"===s&&(m.y+=m.height/2),s=s||"top"),i.x=m.x,i.y=m.y,i.markRedraw();var _={align:a,verticalAlign:s};l.setStyle(_),p.setStyle(_),v=i.getBoundingRect();var x=m.margin,b=t.getItemStyle(["color","opacity"]);b.fill=t.get("backgroundColor");var w=new Ga({shape:{x:v.x-x[3],y:v.y-x[0],width:v.width+x[1]+x[3],height:v.height+x[0]+x[2],r:t.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});i.add(w)}},e.type="title",e}(Gf);function Ab(t){t.registerComponentModel(Db),t.registerComponentView(jb)}function Pb(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Lb(n,t,e),n.seriesInvolved&&zb(n,t),n}function Lb(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];Object(u["k"])(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=Gb(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var c=n.model,h=c.getModel("tooltip",i);if(Object(u["k"])(n.getAxes(),Object(u["h"])(g,!1,null)),n.getTooltipAxes&&i&&h.get("show")){var p="axis"===h.get("trigger"),f="cross"===h.get(["axisPointer","type"]),d=n.getTooltipAxes(h.get(["axisPointer","axis"]));(p||f)&&Object(u["k"])(d.baseAxes,Object(u["h"])(g,!f||"cross",p)),f&&Object(u["k"])(d.otherAxes,Object(u["h"])(g,"cross",!1))}}function g(i,s,u){var c=u.model.getModel("axisPointer",r),p=c.get("show");if(p&&("auto"!==p||i||Vb(c))){null==s&&(s=c.get("triggerTooltip")),c=i?Rb(u,h,r,e,i,s):c;var f=c.get("snap"),d=c.get("triggerEmphasis"),g=Gb(u.model),v=s||f||"category"===u.type,y=t.axesInfo[g]={key:g,axis:u,coordSys:n,axisPointerModel:c,triggerTooltip:s,triggerEmphasis:d,involveSeries:v,snap:f,useHandle:Vb(c),seriesModels:[],linkGroup:null};l[g]=y,t.seriesInvolved=t.seriesInvolved||v;var m=Nb(o,u);if(null!=m){var _=a[m]||(a[m]={axesInfo:{}});_.axesInfo[g]=y,_.mapper=o[m].mapper,y.linkGroup=_}}}}))}function Rb(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};Object(u["k"])(s,(function(t){l[t]=Object(u["d"])(a.get(t))})),l.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(l.type="line");var c=l.label||(l.label={});if(null==c.show&&(c.show=!1),"cross"===r){var h=a.get(["label","show"]);if(c.show=null==h||h,!o){var p=l.lineStyle=a.get("crossStyle");p&&Object(u["i"])(c,p.textStyle)}}return t.model.getModel("axisPointer",new iu(l,n,i))}function zb(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&Object(u["k"])(t.coordSysAxesInfo[Gb(n.model)],(function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}function Nb(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(Bb(o[i+"AxisId"],n.id)||Bb(o[i+"AxisIndex"],n.componentIndex)||Bb(o[i+"AxisName"],n.name))return r}}function Bb(t,e){return"all"===t||Object(u["s"])(t)&&Object(u["q"])(t,e)>=0||t===e}function Eb(t){var e=Fb(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=Vb(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function Fb(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Gb(t)]}function Hb(t){var e=Fb(t);return e&&e.axisPointerModel}function Vb(t){return!!t.get(["handle","show"])}function Gb(t){return t.type+"||"+t.id}var Wb={},Ub=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return s(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&Eb(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},e.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var o=Hb(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){Wb[t]=e},e.getAxisPointerClass=function(t){return t&&Wb[t]},e.type="axis",e}(Gf),qb=Ub,Xb=mr(),Yb=u["d"],Zb=u["c"],Kb=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var c=l.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var p=u["h"](Qb,e,h);this.updatePointerEl(a,l,p),this.updateLabelEl(a,l,p,e)}else a=this._group=new _i,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);ew(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=Fb(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,r){var o=e.pointer;if(o){var a=Xb(t).pointerEl=new i[o.type](Yb(e.pointer));t.add(a)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=Xb(t).labelEl=new ss(Yb(e.label));t.add(r),Jb(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=Xb(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=Xb(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),Jb(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=Xg(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){tt(t.event)},onmousedown:Zb(this._onHandleDragMove,this,0,0),drift:Zb(this._onHandleDragMove,this),ondragend:Zb(this._onHandleDragEnd,this)}),i.add(r)),ew(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");u["s"](s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,dv(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){Qb(this._axisPointerModel,!e&&this._moveAnimation,this._handle,tw(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(tw(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(tw(i)),Xb(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),gv(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}();function Qb(t,e,n,i){$b(Xb(n).lastProp,i)||(Xb(n).lastProp=i,e?Sl(n,i,t):(n.stopAnimation(),n.attr(i)))}function $b(t,e){if(u["z"](t)&&u["z"](e)){var n=!0;return u["k"](e,(function(e,i){n=n&&$b(t[i],e)})),!!n}return t===e}function Jb(t,e){t[e.get(["label","show"])?"show":"hide"]()}function tw(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function ew(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)}))}var nw=Kb,iw=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();Er(iw);var rw=iw,ow=0,aw=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++ow}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&Object(u["F"])(i,sw);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Object(u["A"])(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(u["f"])(this.categories))},t}();function sw(t){return Object(u["z"])(t)&&null!=t.value?t.value:t+""}var lw=aw;function uw(t,e,n,i){var r={},o=t[1]-t[0],a=r.interval=Wi(o/e,!0);null!=n&&a<n&&(a=r.interval=n),null!=i&&a>i&&(a=r.interval=i);var s=r.intervalPrecision=cw(a),l=r.niceTickExtent=[Pi(Math.ceil(t[0]/a)*a,s),Pi(Math.floor(t[1]/a)*a,s)];return pw(l,t),r}function cw(t){return Li(t)+2}function hw(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function pw(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),hw(t,0,e),hw(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function fw(t,e){return t>=e[0]&&t<=e[1]}function dw(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function gw(t,e){return t*(e[1]-e[0])+e[0]}var vw=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new lw({})),Object(u["s"])(i)&&(i=new lw({categories:Object(u["F"])(i,(function(t){return Object(u["z"])(t)?t.value:t}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return s(e,t),e.prototype.parse=function(t){return null==t?NaN:Object(u["A"])(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),fw(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),dw(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(gw(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){var t=[],e=this._extent,n=e[0];while(n<=e[1])t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r<a;++r){var s=e[r];n[r]=s,i[s]=r}for(var l=0;r<o;++r){while(null!=i[l])l++;n.push(l),i[l]=r}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(rw);rw.registerClass(vw);var yw=Pi,mw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return s(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return fw(t,this._extent)},e.prototype.normalize=function(t){return dw(t,this._extent)},e.prototype.scale=function(t){return gw(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.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])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=cw(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;n[0]<i[0]&&(t?o.push({value:yw(i[0]-e,r)}):o.push({value:n[0]}));var s=i[0];while(s<=i[1]){if(o.push({value:s}),s=yw(s+e,r),s===o[o.length-1].value)break;if(o.length>a)return[]}var l=o.length?o[o.length-1].value:i[1];return n[1]>l&&(t?o.push({value:yw(l+e,r)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<e.length;r++){var o=e[r],a=e[r-1],s=0,l=[],u=o.value-a.value,c=u/t;while(s<t-1){var h=yw(a.value+(s+1)*c);h>i[0]&&h<i[1]&&l.push(h),s++}n.push(l)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;null==n?n=Li(t.value)||0:"auto"===n&&(n=this._intervalPrecision);var i=yw(t.value,n,!0);return Ju(i)},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var o=uw(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=yw(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=yw(Math.ceil(e[1]/r)*r))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(rw);rw.registerClass(mw);var _w=mw;var xw="undefined"!==typeof Float32Array;xw&&Float32Array;var bw=function(t,e,n,i){while(n<i){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n},ww=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return s(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Ru(t.value,Cu[Lu(Au(this._minLevelUnit))]||Cu.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC"),r=this.getSetting("locale");return zu(t,e,n,r,i)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),r=jw(this._minLevelUnit,this._approxInterval,i,e);return n=n.concat(r),n.push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=Ou,e[1]+=Ou),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-Ou}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=Sw.length,a=Math.min(bw(Sw,this._approxInterval,0,o),o-1);this._interval=Sw[a][1],this._minLevelUnit=Sw[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return Object(u["y"])(t)?t:+Hi(t)},e.prototype.contain=function(t){return fw(this.parse(t),this._extent)},e.prototype.normalize=function(t){return dw(this.parse(t),this._extent)},e.prototype.scale=function(t){return gw(t,this._extent)},e.type="time",e}(_w),Sw=[["second",bu],["minute",wu],["hour",Su],["quarter-day",6*Su],["half-day",12*Su],["day",1.2*Ou],["half-week",3.5*Ou],["week",7*Ou],["month",31*Ou],["quarter",95*Ou],["half-year",Tu/2],["year",Tu]];function Ow(t,e,n,i){var r=Hi(e),o=Hi(n),a=function(t){return Bu(r,t,i)===Bu(o,t,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},p=function(){return h()&&a("second")},f=function(){return p()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return p();case"millisecond":return f()}}function Tw(t,e){return t/=Ou,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function kw(t){var e=30*Ou;return t/=e,t>6?6:t>3?3:t>2?2:1}function Mw(t){return t/=Su,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function Cw(t,e){return t/=e?wu:bu,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function Iw(t){return Wi(t,!0)}function Dw(t,e,n){var i=new Date(t);switch(Au(e)){case"year":case"month":i[Xu(n)](0);case"day":i[Yu(n)](1);case"hour":i[Zu(n)](0);case"minute":i[Ku(n)](0);case"second":i[Qu(n)](0),i[$u(n)](0)}return i.getTime()}function jw(t,e,n,i){var r=1e4,o=Du,a=0;function s(t,e,n,r,o,a,s){var l=new Date(e),u=e,c=l[r]();while(u<n&&u<=i[1])s.push({value:u}),c+=t,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(t,r,o){var a=[],l=!r.length;if(!Ow(Au(t),i[0],i[1],n)){l&&(r=[{value:Dw(new Date(i[0]),t,n)},{value:i[1]}]);for(var u=0;u<r.length-1;u++){var c=r[u].value,h=r[u+1].value;if(c!==h){var p=void 0,f=void 0,d=void 0,g=!1;switch(t){case"year":p=Math.max(1,Math.round(e/Ou/365)),f=Eu(n),d=qu(n);break;case"half-year":case"quarter":case"month":p=kw(e),f=Fu(n),d=Xu(n);break;case"week":case"half-week":case"day":p=Tw(e,31),f=Hu(n),d=Yu(n),g=!0;break;case"half-day":case"quarter-day":case"hour":p=Mw(e),f=Vu(n),d=Zu(n);break;case"minute":p=Cw(e,!0),f=Gu(n),d=Ku(n);break;case"second":p=Cw(e,!1),f=Wu(n),d=Qu(n);break;case"millisecond":p=Iw(e),f=Uu(n),d=$u(n);break}s(p,c,h,f,d,g,a),"year"===t&&o.length>1&&0===u&&o.unshift({value:o[0].value-p})}}for(u=0;u<a.length;u++)o.push(a[u]);return a}}for(var c=[],h=[],p=0,f=0,d=0;d<o.length&&a++<r;++d){var g=Au(o[d]);if(Pu(o[d])){l(o[d],c[c.length-1]||[],h);var v=o[d+1]?Au(o[d+1]):null;if(g!==v){if(h.length){f=p,h.sort((function(t,e){return t.value-e.value}));for(var y=[],m=0;m<h.length;++m){var _=h[m].value;0!==m&&h[m-1].value===_||(y.push(h[m]),_>=i[0]&&_<=i[1]&&p++)}var x=(i[1]-i[0])/e;if(p>1.5*x&&f>x/1.5)break;if(c.push(y),p>x||t===o[d])break}h=[]}}}var b=Object(u["n"])(Object(u["F"])(c,(function(t){return Object(u["n"])(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),w=[],S=b.length-1;for(d=0;d<b.length;++d)for(var O=b[d],T=0;T<O.length;++T)w.push({value:O[T].value,level:S-d});w.sort((function(t,e){return t.value-e.value}));var k=[];for(d=0;d<w.length;++d)0!==d&&w[d].value===w[d-1].value||k.push(w[d]);return k}rw.registerClass(ww);var Aw=rw.prototype,Pw=_w.prototype,Lw=Pi,Rw=Math.floor,zw=Math.ceil,Nw=Math.pow,Bw=Math.log,Ew=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new _w,e._interval=0,e}return s(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent(),r=Pw.getTicks.call(this,t);return u["F"](r,(function(t){var e=t.value,r=Pi(Nw(this.base,e));return r=e===n[0]&&this._fixMin?Hw(r,i[0]):r,r=e===n[1]&&this._fixMax?Hw(r,i[1]):r,{value:r}}),this)},e.prototype.setExtent=function(t,e){var n=Bw(this.base);t=Bw(Math.max(0,t))/n,e=Bw(Math.max(0,e))/n,Pw.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=Aw.getExtent.call(this);e[0]=Nw(t,e[0]),e[1]=Nw(t,e[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(e[0]=Hw(e[0],i[0])),this._fixMax&&(e[1]=Hw(e[1],i[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=Bw(t[0])/Bw(e),t[1]=Bw(t[1])/Bw(e),Aw.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i=Vi(n),r=t/n*i;r<=.5&&(i*=10);while(!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0)i*=10;var o=[Pi(zw(e[0]/i)*i),Pi(Rw(e[1]/i)*i)];this._interval=i,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){Pw.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=Bw(t)/Bw(this.base),fw(t,this._extent)},e.prototype.normalize=function(t){return t=Bw(t)/Bw(this.base),dw(t,this._extent)},e.prototype.scale=function(t){return t=gw(t,this._extent),Nw(this.base,t)},e.type="log",e}(rw),Fw=Ew.prototype;function Hw(t,e){return Lw(t,Li(e))}Fw.getMinorTicks=Pw.getMinorTicks,Fw.getLabel=Pw.getLabel,rw.registerClass(Ew);(function(){function t(t,e,n){this._prepareParams(t,e,n)}t.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="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var r=e.get("min",!0);null==r&&(r=e.get("startValue",!0));var o=this._modelMinRaw=r;Object(u["v"])(o)?this._modelMinNum=Ww(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=Ww(t,o));var a=this._modelMaxRaw=e.get("max",!0);if(Object(u["v"])(a)?this._modelMaxNum=Ww(t,a({min:n[0],max:n[1]})):"dataMax"!==a&&(this._modelMaxNum=Ww(t,a)),i)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=Object(u["s"])(s)?s:[s||0,s||0];"boolean"===typeof l[0]||"boolean"===typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[ni(l[0],1),ni(l[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,r=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,c=null!=s;null==a&&(a=t?i?0:NaN:e-r[0]*o),null==s&&(s=t?i?i-1:NaN:n+r[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var h=Object(u["l"])(a)||Object(u["l"])(s)||t&&!i;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!c&&(s=0));var p=this._determinedMin,f=this._determinedMax;return null!=p&&(a=p,l=!0),null!=f&&(s=f,c=!0),{min:a,max:s,minFixed:l,maxFixed:c,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[Gw[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=Vw[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0}})();var Vw={min:"_determinedMin",max:"_determinedMax"},Gw={min:"_dataMin",max:"_dataMax"};function Ww(t,e){return null==e?null:Object(u["l"])(e)?NaN:t.parse(e)}function Uw(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function qw(t){var e=t.get("interval");return null==e?"auto":e}function Xw(t){return"category"===t.type&&0===qw(t.getLabelModel())}var Yw=Math.PI,Zw=function(){function t(t,e){this.group=new _i,this.opt=e,this.axisModel=t,Object(u["i"])(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new _i({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!Kw[t]},t.prototype.add=function(t){Kw[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,o=Bi(e-t);return Ei(o)?(r=n>0?"top":"bottom",i="center"):Ei(o-Yw)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<Yw?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),Kw={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0],c=s[0]>l[0];a&&(S(s,s,a),S(l,l,a));var h=Object(u["m"])({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),p=new Qd({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:h,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});zg(p.shape,p.style.lineWidth),p.anid="line",n.add(p);var f=e.get(["axisLine","symbol"]);if(null!=f){var d=e.get(["axisLine","symbolSize"]);Object(u["A"])(f)&&(f=[f,f]),(Object(u["A"])(d)||Object(u["y"])(d))&&(d=[d,d]);var g=wy(e.get(["axisLine","symbolOffset"])||0,d),v=d[0],y=d[1];Object(u["k"])([{rotate:t.rotation+Math.PI/2,offset:g[0],r:0},{rotate:t.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,i){if("none"!==f[i]&&null!=f[i]){var r=by(f[i],-v/2,-y/2,v,y,h.stroke,!0),o=e.r+e.offset,a=c?l:s;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(t,e,n,i){var r=iS(n,i,e,t),o=oS(n,i,e,t);if($w(e,o,r),rS(n,i,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=Tx(Object(u["F"])(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));Cx(a)}},axisName:function(t,e,n,i){var r=Object(u["L"])(t.axisName,e.get("name"));if(r){var o,a,s=e.get("nameLocation"),l=t.nameDirection,c=e.getModel("nameTextStyle"),h=e.get("nameGap")||0,p=e.axis.getExtent(),f=p[0]>p[1]?-1:1,d=["start"===s?p[0]-f*h:"end"===s?p[1]+f*h:(p[0]+p[1])/2,eS(s)?t.labelOffset+l*h:0],g=e.get("nameRotate");null!=g&&(g=g*Yw/180),eS(s)?o=Zw.innerTextLayout(t.rotation,null!=g?g:t.rotation,l):(o=Qw(t.rotation,s,g||0,p),a=t.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var v=c.getFont(),y=e.get("nameTruncate",!0)||{},m=y.ellipsis,_=Object(u["L"])(t.nameTruncateMaxWidth,y.maxWidth,a),x=new ss({x:d[0],y:d[1],rotation:o.rotation,silent:Zw.isLabelSilent(e),style:Rl(c,{text:r,font:v,overflow:"truncate",width:_,ellipsis:m,fill:c.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:c.get("align")||o.textAlign,verticalAlign:c.get("verticalAlign")||o.textVerticalAlign}),z2:1});if($g({el:x,componentModel:e,itemName:r}),x.__fullText=r,x.anid="name",e.get("triggerEvent")){var b=Zw.makeAxisEventDataBase(e);b.targetType="axisName",b.name=r,ls(x).eventData=b}i.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function Qw(t,e,n,i){var r,o,a=Bi(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return Ei(a-Yw/2)?(o=l?"bottom":"top",r="center"):Ei(a-1.5*Yw)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*Yw&&a>Yw/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function $w(t,e,n){if(!Xw(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],h=n[n.length-1],p=n[n.length-2];!1===i?(Jw(o),Jw(u)):tS(o,a)&&(i?(Jw(a),Jw(c)):(Jw(o),Jw(u))),!1===r?(Jw(s),Jw(h)):tS(l,s)&&(r?(Jw(l),Jw(p)):(Jw(s),Jw(h)))}}function Jw(t){t&&(t.ignore=!0)}function tS(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=at([]);return ct(r,r,-t.rotation),n.applyTransform(lt([],r,t.getLocalTransform())),i.applyTransform(lt([],r,e.getLocalTransform())),n.intersect(i)}}function eS(t){return"middle"===t||"center"===t}function nS(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(S(a,a,e),S(s,s,e));var c=new Qd({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});zg(c.shape,c.style.lineWidth),c.anid=r+"_"+t[l].tickValue,o.push(c)}return o}function iS(t,e,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),c=r.getTicksCoords(),h=nS(c,e.transform,l,Object(u["i"])(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),p=0;p<h.length;p++)t.add(h[p]);return h}}function rS(t,e,n,i){var r=n.axis,o=n.getModel("minorTick");if(o.get("show")&&!r.scale.isBlank()){var a=r.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=i*o.get("length"),c=Object(u["i"])(s.getLineStyle(),Object(u["i"])(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),h=0;h<a.length;h++)for(var p=nS(a[h],e.transform,l,c,"minorticks_"+h),f=0;f<p.length;f++)t.add(p[f])}}function oS(t,e,n,i){var r=n.axis,o=Object(u["L"])(i.axisLabelShow,n.get(["axisLabel","show"]));if(o&&!r.scale.isBlank()){var a=n.getModel("axisLabel"),s=a.get("margin"),l=r.getViewLabels(),c=(Object(u["L"])(i.labelRotate,a.get("rotate"))||0)*Yw/180,h=Zw.innerTextLayout(i.rotation,c,i.labelDirection),p=n.getCategories&&n.getCategories(!0),f=[],d=Zw.isLabelSilent(n),g=n.get("triggerEvent");return Object(u["k"])(l,(function(o,c){var v="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(o.tickValue):o.tickValue,y=o.formattedLabel,m=o.rawLabel,_=a;if(p&&p[v]){var x=p[v];Object(u["z"])(x)&&x.textStyle&&(_=new iu(x.textStyle,a,n.ecModel))}var b=_.getTextColor()||n.get(["axisLine","lineStyle","color"]),w=r.dataToCoord(v),S=_.getShallow("align",!0)||h.textAlign,O=Object(u["M"])(_.getShallow("alignMinLabel",!0),S),T=Object(u["M"])(_.getShallow("alignMaxLabel",!0),S),k=_.getShallow("verticalAlign",!0)||_.getShallow("baseline",!0)||h.textVerticalAlign,M=Object(u["M"])(_.getShallow("verticalAlignMinLabel",!0),k),C=Object(u["M"])(_.getShallow("verticalAlignMaxLabel",!0),k),I=new ss({x:w,y:i.labelOffset+i.labelDirection*s,rotation:h.rotation,silent:d,z2:10+(o.level||0),style:Rl(_,{text:y,align:0===c?O:c===l.length-1?T:S,verticalAlign:0===c?M:c===l.length-1?C:k,fill:Object(u["v"])(b)?b("category"===r.type?m:"value"===r.type?v+"":v,c):b})});if(I.anid="label_"+v,$g({el:I,componentModel:n,itemName:y,formatterParamsExtra:{isTruncated:function(){return I.isTruncated},value:m,tickIndex:c}}),g){var D=Zw.makeAxisEventDataBase(n);D.targetType="axisLabel",D.value=m,D.tickIndex=c,"category"===r.type&&(D.dataIndex=v),ls(I).eventData=D}e.add(I),I.updateTransform(),f.push(I),t.add(I),I.decomposeTransform()})),f}}var aS=Zw;function sS(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle(),e.fill=null):"shadow"===n&&(e=i.getAreaStyle(),e.stroke=null),e}function lS(t,e,n,i,r){var o=n.get("value"),a=cS(o,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=ec(s.get("padding")||0),u=s.getFont(),c=$n(a,u),h=r.position,p=c.width+l[1]+l[3],f=c.height+l[0]+l[2],d=r.align;"right"===d&&(h[0]-=p),"center"===d&&(h[0]-=p/2);var g=r.verticalAlign;"bottom"===g&&(h[1]-=f),"middle"===g&&(h[1]-=f/2),uS(h,p,f,i);var v=s.get("backgroundColor");v&&"auto"!==v||(v=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:Rl(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function uS(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function cS(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:Uw(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};u["k"](i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)})),u["A"](a)?o=a.replace("{value}",o):u["v"](a)&&(o=a(s))}return o}function hS(t,e,n){var i=ot();return ct(i,i,n.rotation),ut(i,i,n.position),Fg([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function pS(t,e,n,i,r,o){var a=aS.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),lS(e,i,r,o,{position:hS(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function fS(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function dS(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function gS(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,c=r.dim,h=i.getRect(),p=[h.x,h.x+h.width,h.y,h.y+h.height],f={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,g="x"===c?[p[2]-d,p[3]+d]:[p[0]-d,p[1]+d];if(a){var v=a.toGlobalCoord(a.dataToCoord(0));g[f.onZero]=Math.max(Math.min(v,g[1]),g[0])}o.position=["y"===c?g[f[l]]:p[0],"x"===c?g[f[l]]:p[3]],o.rotation=Math.PI/2*("x"===c?0:1);var y={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=y[s],o.labelOffset=a?g[f[s]]-g[f.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),u["L"](n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var m=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-m:m,o.z2=1,o}var vS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=yS(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=sS(i),h=mS[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}var p=gS(a.model,n);pS(e,t,p,n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=gS(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=hS(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=yS(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:p[l]}},e}(nw);function yS(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var mS={line:function(t,e,n){var i=fS([e,n[0]],[e,n[1]],_S(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:dS([e-i/2,n[0]],[i,r],_S(t))}}};function _S(t){return"x"===t.dim?0:1}var xS=vS,bS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return s(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(wc),wS=bS,SS=mr(),OS=u["k"];function TS(t,e,n){if(!l["a"].node){var i=e.getZr();SS(i).records||(SS(i).records={}),kS(i,e);var r=SS(i).records[t]||(SS(i).records[t]={});r.handler=n}}function kS(t,e){function n(n,i){t.on(n,(function(n){var r=DS(e);OS(SS(t).records,(function(t){t&&i(t,n,r.dispatchAction)})),MS(r.pendings,e)}))}SS(t).initialized||(SS(t).initialized=!0,n("click",u["h"](IS,"click")),n("mousemove",u["h"](IS,"mousemove")),n("globalout",CS))}function MS(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function CS(t,e,n){t.handler("leave",null,n)}function IS(t,e,n,i){e.handler(t,n,i)}function DS(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}function jS(t,e){if(!l["a"].node){var n=e.getZr(),i=(SS(n).records||{})[t];i&&(SS(n).records[t]=null)}}var AS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return s(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";TS("axisPointer",n,(function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){jS("axisPointer",e)},e.prototype.dispose=function(t,e){jS("axisPointer",e)},e.type="axisPointer",e}(Gf),PS=AS;function LS(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=yr(o,t);if(null==a||a<0||u["s"](a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var c=l.getBaseAxis(),h=l.getOtherAxis(c),p=h.dim,f=c.dim,d="x"===p||"radius"===p?1:0,g=o.mapDimension(f),v=[];v[d]=o.get(g,a),v[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(v)||[]}else i=l.dataToPoint(o.getValues(u["F"](l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),i=[y.x+y.width/2,y.y+y.height/2]}return{point:i,el:s}}var RS=mr();function zS(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||Object(u["c"])(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){qS(r)&&(r=LS({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=qS(r),c=o.axesInfo,h=s.axesInfo,p="leave"===i||qS(r),f={},d={},g={list:[],map:{}},v={showPointer:Object(u["h"])(ES,d),showTooltip:Object(u["h"])(FS,g)};Object(u["k"])(s.coordSysMap,(function(t,e){var n=l||t.containPoint(r);Object(u["k"])(s.coordSysAxesInfo[e],(function(t,e){var i=t.axis,o=WS(c,t);if(!p&&n&&(!c||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&NS(t,a,v,!1,f)}}))}));var y={};return Object(u["k"])(h,(function(t,e){var n=t.linkGroup;n&&!d[e]&&Object(u["k"])(n.axesInfo,(function(e,i){var r=d[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,US(e),US(t)))),y[t.key]=o}}))})),Object(u["k"])(y,(function(t,e){NS(h[e],t,v,!0,f)})),HS(d,h,f),VS(g,r,t,a),GS(h,a,n),f}}function NS(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=BS(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&Object(u["m"])(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function BS(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return Object(u["k"])(e.seriesModels,(function(e,l){var c,h,p=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var f=e.getAxisTooltipData(p,t,n);h=f.dataIndices,c=f.nestestValue}else{if(h=e.getData().indicesOfNearest(p[0],t,"category"===n.type?.5:null),!h.length)return;c=e.getData().get(p[0],h[0])}if(null!=c&&isFinite(c)){var d=t-c,g=Math.abs(d);g<=a&&((g<a||d>=0&&s<0)&&(a=g,s=d,r=c,o.length=0),Object(u["k"])(h,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:r}}function ES(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function FS(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=Gb(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function HS(t,e,n){var i=n.axesInfo=[];Object(u["k"])(e,(function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}function VS(t,e,n,i){if(!qS(e)&&t.list.length){var r=((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:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}function GS(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=RS(i)[r]||{},a=RS(i)[r]={};Object(u["k"])(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&Object(u["k"])(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];Object(u["k"])(o,(function(t,e){!a[e]&&l.push(t)})),Object(u["k"])(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function WS(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}}function US(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function qS(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function XS(t){qb.registerAxisPointerClass("CartesianAxisPointer",xS),t.registerComponentModel(wS),t.registerComponentView(PS),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Object(u["s"])(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Pb(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},zS)}var YS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return s(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(wc),ZS=YS;function KS(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function QS(t){if(l["a"].domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var $S=QS(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),JS=QS(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function tO(t,e){if(!t)return e;e=tc(e,!0);var n=t.indexOf(e);return t=-1===n?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function eO(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}var nO=tO(JS,"transition"),iO=tO($S,"transform"),rO="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(l["a"].transform3dSupported?"will-change:transform;":"");function oO(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top",t}function aO(t,e,n){if(!Object(u["A"])(n)||"inside"===n)return"";var i=t.get("backgroundColor"),r=t.get("borderWidth");e=sc(e);var o,a=oO(n),s=Math.max(1.5*Math.round(r),6),l="",c=iO+":";Object(u["q"])(["left","right"],a)>-1?(l+="top:50%",c+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",c+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var h=o*Math.PI/180,p=s+r,f=p*Math.abs(Math.cos(h))+p*Math.abs(Math.sin(h)),d=Math.round(100*((f-Math.SQRT2*r)/2+Math.SQRT2*r-(f-p)/2))/100;l+=";"+a+":-"+d+"px";var g=e+" solid "+r+"px;",v=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+c+";","border-bottom:"+g,"border-right:"+g,"background-color:"+i+";"];return'<div style="'+v.join("")+'"></div>'}function sO(t,e){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+t/2+"s "+n,r="opacity"+i+",visibility"+i;return e||(i=" "+t+"s "+n,r+=l["a"].transformSupported?","+iO+i:",left"+i+",top"+i),nO+":"+r}function lO(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!l["a"].transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=l["a"].transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+iO+":"+a+";":[["top",0],["left",0],[$S,a]]}function uO(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var r=Object(u["M"])(t.get("lineHeight"),Math.round(3*n/2));n&&e.push("line-height:"+r+"px");var o=t.get("textShadowColor"),a=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return o&&a&&e.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),Object(u["k"])(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}function cO(t,e,n){var i=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),h=t.getModel("textStyle"),p=Tf(t,"html"),f=l+"px "+c+"px "+a+"px "+s;return i.push("box-shadow:"+f),e&&r&&i.push(sO(r,n)),o&&i.push("background-color:"+o),Object(u["k"])(["width","color","radius"],(function(e){var n="border-"+e,r=tc(n),o=t.get(r);null!=o&&i.push(n+":"+o+("color"===e?"":"px"))})),i.push(uO(h)),null!=p&&i.push("padding:"+ec(p).join("px ")+"px"),i.join(";")+";"}function hO(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&z(t,a,n,i,r)}else{t[0]=i,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var pO=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,l["a"].wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),r=e.appendTo,o=r&&(Object(u["A"])(r)?document.querySelector(r):Object(u["u"])(r)?r:Object(u["v"])(r)&&r(t.getDom()));hO(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=i.handler,n=i.painter.getViewportRoot();K(n,t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=eO(e,"position"),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative")}var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=rO+cO(t,!this._firstShow,this._longHide)+lO(r[0],r[1],!0)+"border-color:"+sc(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null!=t){var a="";if(Object(u["A"])(r)&&"item"===n.get("trigger")&&!KS(n)&&(a=aO(n,i,r)),Object(u["A"])(t))o.innerHTML=t+a;else if(t){o.innerHTML="",Object(u["s"])(t)||(t=[t]);for(var s=0;s<t.length;s++)Object(u["u"])(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},t.prototype.moveTo=function(t,e){if(this.el){var n=this._styleCoord;if(hO(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style,r=lO(n[0],n[1]);Object(u["k"])(r,(function(t){i[t[0]]=t[1]}))}}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",l["a"].transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Object(u["c"])(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},t}(),fO=pO,dO=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),yO(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,i,r){var o=this;u["z"](t)&&th(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new ss({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Tf(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),u["k"](["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){o.el.style[t]=n.get(t)})),u["k"](["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){o.el.style[t]=a.get(t)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=vO(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;yO(i,this._zr,t,e),t=i[0],e=i[1];var r=n.style,o=gO(r.borderWidth||0),a=vO(r);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(u["c"](this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function gO(t){return Math.max(0,t)}function vO(t){var e=gO(t.shadowBlur||0),n=gO(t.shadowOffsetX||0),i=gO(t.shadowOffsetY||0);return{left:gO(e-n),right:gO(e+n),top:gO(e-i),bottom:gO(e+i)}}function yO(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var mO=dO,_O=new Ga({shape:{x:-1,y:-1,width:2,height:2}}),xO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return s(e,t),e.prototype.init=function(t,e){if(!l["a"].node&&e.getDom()){var n=t.getComponent("tooltip"),i=this._renderMode=Tr(n.get("renderMode"));this._tooltipContent="richText"===i?new mO(e):new fO(e,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!l["a"].node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?dv(this,"_updatePosition",50,"fixRate"):gv(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,e=t.get("triggerOn");TS("itemTooltip",this._api,Object(u["c"])((function(t,n,i){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,i):"leave"===t&&this._hide(i))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!l["a"].node&&n.getDom()){var r=wO(i,n);this._ticket="";var o=i.dataByCoordSys,a=MO(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var u=_O;u.x=i.x,u.y=i.y,u.update(),ls(u).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:u},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var c=LS(i,e),h=c.point[0],p=c.point[1];null!=h&&null!=p&&this._tryShow({offsetX:h,offsetY:p,target:c.el,position:i.position,positionDefault:"bottom"},r)}else 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},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(wO(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s){var l=s.getData(),u=bO([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},e.prototype._tryShow=function(t,e){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,t);else if(n){var o,a,s=ls(n);if("legend"===s.ssrType)return;this._lastDataByCoordSys=null,sy(n,(function(t){return null!=ls(t).dataIndex?(o=t,!0):null!=ls(t).tooltipConfig?(a=t,!0):void 0}),!0),o?this._showSeriesItemTooltip(t,o,e):a?this._showComponentItemTooltip(t,a,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Object(u["c"])(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=bO([e.tooltipOption],i),a=this._renderMode,s=[],l=hf("section",{blocks:[],noHeader:!0}),c=[],h=new kf;Object(u["k"])(t,(function(t){Object(u["k"])(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=cS(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),p=hf("section",{header:o,noHeader:!Object(u["Q"])(o),sortBlocks:!0,blocks:[]});l.blocks.push(p),Object(u["k"])(t.seriesDataIndices,(function(l){var f=n.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,g=f.getDataParams(d);if(!(g.dataIndex<0)){g.axisDim=t.axisDim,g.axisIndex=t.axisIndex,g.axisType=t.axisType,g.axisId=t.axisId,g.axisValue=Uw(e.axis,{value:r}),g.axisValueLabel=o,g.marker=h.makeTooltipMarker("item",sc(g.color),a);var v=Tp(f.formatTooltip(d,!0,null)),y=v.frag;if(y){var m=bO([f],i).get("valueFormatter");p.blocks.push(m?Object(u["m"])({valueFormatter:m},y):y)}v.text&&c.push(v.text),s.push(g)}}))}}))})),l.blocks.reverse(),c.reverse();var p=e.position,f=o.get("order"),d=yf(l,h,a,f,n.get("useUTC"),o.get("textStyle"));d&&c.unshift(d);var g="richText"===a?"\n\n":"<br/>",v=c.join(g);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,p,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,v,s,Math.random()+"",r[0],r[1],p,null,h)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=ls(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,c=r.dataType,h=s.getData(c),p=this._renderMode,f=t.positionDefault,d=bO([h.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),g=d.get("trigger");if(null==g||"item"===g){var v=s.getDataParams(l,c),y=new kf;v.marker=y.makeTooltipMarker("item",sc(v.color),p);var m=Tp(s.formatTooltip(l,!1,c)),_=d.get("order"),x=d.get("valueFormatter"),b=m.frag,w=b?yf(x?Object(u["m"])({valueFormatter:x},b):b,y,p,_,i.get("useUTC"),d.get("textStyle")):m.text,S="item_"+s.name+"_"+l;this._showOrMove(d,(function(){this._showTooltipContent(d,w,v,S,t.offsetX,t.offsetY,t.position,t.target,y)})),n({type:"showTip",dataIndexInside:l,dataIndex:h.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i="html"===this._renderMode,r=ls(e),o=r.tooltipConfig,a=o.option||{},s=a.encodeHTMLContent;if(Object(u["A"])(a)){var l=a;a={content:l,formatter:l},s=!0}s&&i&&a.content&&(a=Object(u["d"])(a),a.content=G(a.content));var c=[a],h=this._ecModel.getComponent(r.componentMainType,r.componentIndex);h&&c.push(h),c.push({formatter:a.content});var p=t.positionDefault,f=bO(c,this._tooltipModel,p?{position:p}:null),d=f.get("content"),g=Math.random()+"",v=new kf;this._showOrMove(f,(function(){var n=Object(u["d"])(f.get("formatterParams")||{});this._showTooltipContent(f,d,n,g,t.offsetX,t.offsetY,t.position,e,v)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var p=e,f=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")),d=f.color;if(h)if(Object(u["A"])(h)){var g=t.ecModel.get("useUTC"),v=Object(u["s"])(n)?n[0]:n,y=v&&v.axisType&&v.axisType.indexOf("time")>=0;p=h,y&&(p=Ru(v.axisValue,p,g)),p=oc(p,n,!0)}else if(Object(u["v"])(h)){var m=Object(u["c"])((function(e,i){e===this._ticket&&(c.setContent(i,l,t,d,a),this._updatePosition(t,a,r,o,c,n,s))}),this);this._ticket=i,p=h(n,i,m)}else p=h;c.setContent(p,l,t,d,a),c.show(t,d),this._updatePosition(t,a,r,o,c,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||Object(u["s"])(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:Object(u["s"])(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var c=r.getSize(),h=t.get("align"),p=t.get("verticalAlign"),f=a&&a.getBoundingRect().clone();if(a&&f.applyTransform(a.transform),Object(u["v"])(e)&&(e=e([n,i],o,r.el,f,{viewSize:[s,l],contentSize:c.slice()})),Object(u["s"])(e))n=Ai(e[0],s),i=Ai(e[1],l);else if(Object(u["z"])(e)){var d=e;d.width=c[0],d.height=c[1];var g=dc(d,{width:s,height:l});n=g.x,i=g.y,h=null,p=null}else if(Object(u["A"])(e)&&a){var v=TO(e,f,c,t.get("borderWidth"));n=v[0],i=v[1]}else{v=SO(n,i,r,s,l,h?null:20,p?null:20);n=v[0],i=v[1]}if(h&&(n-=kO(h)?c[0]/2:"right"===h?c[0]:0),p&&(i-=kO(p)?c[1]/2:"bottom"===p?c[1]:0),KS(t)){v=OO(n,i,r,s,l);n=v[0],i=v[1]}r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&Object(u["k"])(n,(function(n,o){var a=n.dataByAxis||[],s=t[o]||{},l=s.dataByAxis||[];r=r&&a.length===l.length,r&&Object(u["k"])(a,(function(t,n){var o=l[n]||{},a=t.seriesDataIndices||[],s=o.seriesDataIndices||[];r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===s.length,r&&Object(u["k"])(a,(function(t,e){var n=s[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),i&&Object(u["k"])(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!l["a"].node&&e.getDom()&&(gv(this,"_updatePosition"),this._tooltipContent.dispose(),jS("itemTooltip",e))},e.type="tooltip",e}(Gf);function bO(t,e,n){var i,r=e.ecModel;n?(i=new iu(n,r,r),i=new iu(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof iu&&(a=a.get("tooltip",!0)),Object(u["A"])(a)&&(a={formatter:a}),a&&(i=new iu(a,i,r)))}return i}function wO(t,e){return t.dispatchAction||Object(u["c"])(e.dispatchAction,e)}function SO(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}function OO(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function TO(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+c+a;break;case"left":s=e.x-r-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}function kO(t){return"center"===t||"middle"===t}function MO(t,e,n){var i=br(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o=Sr(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(e){var n=ls(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s?{componentMainType:r,componentIndex:a.componentIndex,el:s}:void 0}}}var CO=xO;function IO(t){U_(XS),t.registerComponentModel(ZS),t.registerComponentView(CO),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},u["I"]),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},u["I"])}var DO=function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0},jO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return s(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),u["s"](e)&&u["k"](e,(function(t,i){u["A"](t)&&(t={type:t}),e[i]=u["G"](t,DO(n,t.type))}))},e.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"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries((function(i){var r,o=i.name;if(n.push(o),i.legendVisualProvider){var a=i.legendVisualProvider,s=a.getAllNames();t.isSeriesFiltered(i)||(n=n.concat(s)),s.length?e=e.concat(s):r=!0}else r=!0;r&&fr(i)&&e.push(i.name)})),this._availableNames=n;var i=this.get("data")||e,r=u["f"](),o=u["F"](i,(function(t){return(u["A"](t)||u["y"](t))&&(t={name:t}),r.get(t.name)?null:(r.set(t.name,!0),new iu(t,this,this.ecModel))}),this);this._data=u["n"](o,(function(t){return!!t}))},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected,n=this.get("selectedMode");if("single"===n){var i=this._data;u["k"](i,(function(t){e[t.get("name")]=!1}))}e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;u["k"](t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;u["k"](t,(function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]}))},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&u["q"](this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(wc),AO=jO;function PO(t,e){var n=ec(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new Ga({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}),t}var LO=u["h"],RO=u["k"],zO=_i,NO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return s(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new zO),this.group.add(this._selectorGroup=new zO),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},h=t.get("padding"),p=dc(l,c,h),f=this.layoutInner(t,r,p,i,a,s),d=dc(u["i"]({width:f.width,height:f.height},l),c,h);this.group.x=d.x-f.x,this.group.y=d.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=PO(f,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,i,r,o,a){var s=this.getContentGroup(),l=u["f"](),c=e.get("selectedMode"),h=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&h.push(t.id)})),RO(e.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var p=new zO;return p.newline=!0,void s.add(p)}var f=n.getSeriesByName(a)[0];if(!l.get(a)){if(f){var d=f.getData(),g=d.getVisual("legendLineStyle")||{},v=d.getVisual("legendIcon"),y=d.getVisual("style"),m=this._createItem(f,a,o,r,e,t,g,y,v,c,i);m.on("click",LO(FO,a,null,i,h)).on("mouseover",LO(VO,f.name,null,i,h)).on("mouseout",LO(GO,f.name,null,i,h)),n.ssr&&m.eachChild((function(t){var e=ls(t);e.seriesIndex=f.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),l.set(a,!0)}else n.eachRawSeries((function(s){if(!l.get(a)&&s.legendVisualProvider){var p=s.legendVisualProvider;if(!p.containName(a))return;var f=p.indexOfName(a),d=p.getItemVisual(f,"style"),g=p.getItemVisual(f,"legendIcon"),v=Object(Le["c"])(d.fill);v&&0===v[3]&&(v[3]=.2,d=u["m"](u["m"]({},d),{fill:Object(Le["d"])(v,"rgba")}));var y=this._createItem(s,a,o,r,e,t,{},d,g,c,i);y.on("click",LO(FO,null,a,i,h)).on("mouseover",LO(VO,null,a,i,h)).on("mouseout",LO(GO,null,a,i,h)),n.ssr&&y.eachChild((function(t){var e=ls(t);e.seriesIndex=s.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),l.set(a,!0)}}),this);0}}),this),r&&this._createSelector(r,e,i,o,a)},e.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();RO(t,(function(t){var i=t.type,r=new ss({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect",legendId:e.id})}});o.add(r);var a=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);Pl(r,{normal:a,emphasis:s},{defaultText:t.title}),sl(r)}))},e.prototype._createItem=function(t,e,n,i,r,o,a,s,l,c,h){var p=t.visualDrawType,f=r.get("itemWidth"),d=r.get("itemHeight"),g=r.isSelected(e),v=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),m=i.get("icon");l=m||l||"roundRect";var _=BO(l,i,a,s,p,g,h),x=new zO,b=i.getModel("textStyle");if(!u["v"](t.getLegendIcon)||m&&"inherit"!==m){var w="inherit"===m&&t.getData().getVisual("symbol")?"inherit"===v?t.getData().getVisual("symbolRotate"):v:0;x.add(EO({itemWidth:f,itemHeight:d,icon:l,iconRotate:w,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}))}else x.add(t.getLegendIcon({itemWidth:f,itemHeight:d,icon:l,iconRotate:v,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}));var S="left"===o?f+5:-5,O=o,T=r.get("formatter"),k=e;u["A"](T)&&T?k=T.replace("{name}",null!=e?e:""):u["v"](T)&&(k=T(e));var M=g?b.getTextColor():i.get("inactiveColor");x.add(new ss({style:Rl(b,{text:k,x:S,y:d/2,fill:M,align:O,verticalAlign:"middle"},{inheritColor:M})}));var C=new Ga({shape:x.getBoundingRect(),style:{fill:"transparent"}}),I=i.getModel("tooltip");return I.get("show")&&$g({el:C,componentModel:r,itemName:e,itemTooltipOption:I.option}),x.add(C),x.eachChild((function(t){t.silent=!0})),C.silent=!c,this.getContentGroup().add(x),sl(x),x.__legendDataIndex=n,x},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();fc(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(),r){fc("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],p=t.get("selectorButtonGap",!0),f=t.getOrient().index,d=0===f?"width":"height",g=0===f?"height":"width",v=0===f?"y":"x";"end"===o?h[f]+=l[d]+p:u[f]+=c[d]+p,h[1-f]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[d]=l[d]+p+c[d],y[g]=Math.max(l[g],c[g]),y[v]=Math.min(0,c[v]+h[1-f]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Gf);function BO(t,e,n,i,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),RO(t,(function(n,i){"inherit"===t[i]&&(t[i]=e[i])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?um(h,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[c]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i);var p=e.getModel("lineStyle"),f=p.getLineStyle();if(s(f,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===f.stroke&&(f.stroke=i.fill),!o){var d=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===d?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),f.stroke=p.get("inactiveColor"),f.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:f}}function EO(t){var e=t.icon||"roundRect",n=by(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function FO(t,e,n,i){GO(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),VO(t,e,n,i)}function HO(t){var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;while(i<r&&!(e=n[i].states.emphasis))i++;return e&&e.hoverLayer}function VO(t,e,n,i){HO(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function GO(t,e,n,i){HO(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}var WO=NO;function UO(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0}))}function qO(t,e,n){var i="allSelect"===t||"inverseSelect"===t,r={},o=[];n.eachComponent({mainType:"legend",query:e},(function(n){i?n[t]():n[t](e.name),XO(n,r),o.push(n.componentIndex)}));var a={};return n.eachComponent("legend",(function(t){Object(u["k"])(r,(function(e,n){t[e?"select":"unSelect"](n)})),XO(t,a)})),i?{selected:a,legendIndex:o}:{name:e.name,selected:a}}function XO(t,e){var n=e||{};return Object(u["k"])(t.getData(),(function(e){var i=e.get("name");if("\n"!==i&&""!==i){var r=t.isSelected(i);Object(u["p"])(n,i)?n[i]=n[i]&&r:n[i]=r}})),n}function YO(t){t.registerAction("legendToggleSelect","legendselectchanged",Object(u["h"])(qO,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Object(u["h"])(qO,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Object(u["h"])(qO,"inverseSelect")),t.registerAction("legendSelect","legendselected",Object(u["h"])(qO,"select")),t.registerAction("legendUnSelect","legendunselected",Object(u["h"])(qO,"unSelect"))}function ZO(t){t.registerComponentModel(AO),t.registerComponentView(WO),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,UO),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),YO(t)}var KO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return s(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,i){var r=yc(e);t.prototype.init.call(this,e,n,i),QO(this,e,r)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),QO(this,this.option,e)},e.type="legend.scroll",e.defaultOption=lu(AO.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(AO);function QO(t,e,n){var i=t.getOrient(),r=[1,1];r[i.index]=0,vc(e,n,{type:"box",ignoreSize:!!r})}var $O=KO,JO=_i,tT=["width","height"],eT=["x","y"],nT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return s(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new JO),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new JO)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,i,r,o,a,s){var l=this;t.prototype.renderInner.call(this,e,n,i,r,o,a,s);var c=this._controllerGroup,h=n.get("pageIconSize",!0),p=u["s"](h)?h:[h,h];d("pagePrev",0);var f=n.getModel("pageTextStyle");function d(t,e){var i=t+"DataIndex",o=Xg(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:u["c"](l._pageGo,l,i,n,r)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});o.name=t,c.add(o)}c.add(new ss({name:"pageText",style:{text:"xx/xx",fill:f.getTextColor(),font:f.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1)},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=tT[s],c=eT[s],h=tT[1-s],p=eT[1-s];r&&fc("horizontal",a,t.get("selectorItemGap",!0));var f=t.get("selectorButtonGap",!0),d=a.getBoundingRect(),g=[-d.x,-d.y],v=u["d"](n);r&&(v[l]=n[l]-d[l]-f);var y=this._layoutContentAndController(t,i,v,s,l,h,p,c);if(r){if("end"===o)g[s]+=y[l]+f;else{var m=d[l]+f;g[s]-=m,y[c]-=m}y[l]+=d[l]+f,g[1-s]+=y[p]+y[h]/2-d[h]/2,y[h]=Math.max(y[h],d[h]),y[p]=Math.min(y[p],d[p]+g[1-s]),a.x=g[0],a.y=g[1],a.markRedraw()}return y},e.prototype._layoutContentAndController=function(t,e,n,i,r,o,a,s){var l=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;fc(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),fc("horizontal",h,t.get("pageButtonItemGap",!0));var p=l.getBoundingRect(),f=h.getBoundingRect(),d=this._showController=p[r]>n[r],g=[-p.x,-p.y];e||(g[i]=l[s]);var v=[0,0],y=[-f.x,-f.y],m=u["M"](t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var _=t.get("pageButtonPosition",!0);"end"===_?y[i]+=n[r]-f[r]:v[i]+=f[r]+m}y[1-i]+=p[o]/2-f[o]/2,l.setPosition(g),c.setPosition(v),h.setPosition(y);var x={x:0,y:0};if(x[r]=d?n[r]:p[r],x[o]=Math.max(p[o],f[o]),x[a]=Math.min(0,f[a]+y[1-i]),c.__rectSize=n[r],d){var b={x:0,y:0};b[r]=Math.max(n[r]-f[r]-m,0),b[o]=x[o],c.setClipPath(new Ga({shape:b})),c.__rectSize=b[r]}else h.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(t);return null!=w.pageIndex&&Sl(l,{x:w.contentPosition[0],y:w.contentPosition[1]},d?t:null),this._updatePageInfoView(t,w),x},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;u["k"](["pagePrev","pageNext"],(function(i){var r=i+"DataIndex",o=null!=e[r],a=n.childOfName(i);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",u["A"](r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=tT[r],a=eT[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,p={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return p;var f=m(u);p.contentPosition[r]=-f.s;for(var d=s+1,g=f,v=f,y=null;d<=c;++d)y=m(l[d]),(!y&&v.e>g.s+i||y&&!_(y,g.s))&&(g=v.i>g.i?v:y,g&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=g.i),++p.pageCount)),v=y;for(d=s-1,g=f,v=f,y=null;d>=-1;--d)y=m(l[d]),y&&_(v,y.s)||!(g.i<v.i)||(v=g,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=g.i),++p.pageCount,++p.pageIndex),g=y;return p;function m(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function _(t,e){return t.e>=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,n,i=this.getContentGroup();return i.eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)})),null!=e?e:n},e.type="legend.scroll",e}(WO),iT=nT;function rT(t){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)}))}))}function oT(t){U_(ZO),t.registerComponentModel($O),t.registerComponentView(iT),rT(t)}function aT(t){U_(ZO),U_(oT)}U_([ix,Ib,Ab,IO,aT]);var sT={name:"workbench",data:function(){return{projects:[{name:"官方文档",imageUrl:"/image/django-vue-admin.png",slogan:"Django-Vue-Admin 是一套全部开源的快速开发平台,毫无保留给个人及企业免费使用。",link:"http://django-vue-admin.com"},{name:"官方论坛",imageUrl:"/image/django-vue-admin.png",slogan:"Django-Vue-Admin 官方论坛",link:"http://bbs.django-vue-admin.com"},{name:"D2admin",imageUrl:"/image/d2-pub.png",slogan:"D2Admin (opens new window)是一个完全 开源免费 的企业中后台产品前端集成方案,使用最新的前端技术栈,小于 60kb 的本地首屏 js 加载,已经做好大部分项目前期准备工作,并且带有大量示例代码,助力管理系统快速开发。",link:"https://d2.pub/zh"},{name:"SimpleUi",imageUrl:"/image/simple-ui.png",slogan:"一个基于Django Admin的现代化主题。",link:"https://simpleui.72wo.com/"},{name:"若依",imageUrl:"/image/ruoyi.png",slogan:"基于SpringBoot、Shiro、Mybatis的权限后台管理系统。",link:"http://ruoyi.vip/"},{name:"Gin-Vue-Admin",imageUrl:"/image/gin-vue-admin.png",slogan:"使用gin+vue进行极速开发的全栈后台管理系统。",link:"https://www.gin-vue-admin.com/"},{name:"DCM",imageUrl:"/image/django-comment-migrate.png",slogan:"这是一个Django model注释迁移的app",link:"https://github.com/starryrbs/django-comment-migrate"},{name:"Jetbrains",imageUrl:"/image/jetbrains.jpeg",slogan:"我们构建我们的软件,让您可以享受构建自己的软件的乐趣",link:"https://www.jetbrains.com/"},{name:"Django",imageUrl:"/image/django.png",slogan:"有期限的完美主义者的网络框架。",link:"https://github.com/django/django"}],navigators:[{name:"控制台",icon:"home",route:{name:"index"},color:"rgb(31, 218, 202);"},{name:"部门管理",icon:"department",route:{name:"dept"},color:"rgb(225, 133, 37);"},{name:"角色管理",icon:"role",route:{name:"role"},color:"rgb(191, 12, 44);"},{name:"菜单管理",icon:"menu",route:{name:"menu"},color:"rgb(63, 178, 127);"},{name:"用户管理",icon:"user",route:{name:"user"},color:"rgb(191, 12, 44);"},{name:"日志管理",icon:"log",route:{name:"operationLog"},color:"rgb(0, 216, 255);"}],chartData:{columns:["日期","销售额"],rows:[{"日期":"1月1日","销售额":123},{"日期":"1月2日","销售额":1223},{"日期":"1月3日","销售额":2123},{"日期":"1月4日","销售额":4123},{"日期":"1月5日","销售额":3123},{"日期":"1月6日","销售额":7123}]}}},methods:{gotoRoute:function(t){this.$router.push(t)}}},lT=sT,uT=(n("51f3"),n("2877")),cT=Object(uT["a"])(lT,r,o,!1,null,"57a09b24",null);e["default"]=cT.exports}}]);