index.092125d8.js 635 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. import{d as PS,u as ca,bF as jv,w as RS,j as R,by as pe,B as et,aT as ES,b3 as OS,E as ho}from"./index.c8a33855.js";import{C as kS}from"./index.89b19a2f.js";import{R as BS,C as Ee}from"./index.057a05f7.js";import"./index.f3a3d845.js";import{D as NS}from"./index.7b6b347c.js";import{P as FS}from"./index.dbd58d80.js";import"./utils.9e3974d1.js";var zS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA2JJREFUWEftl9tLFHEUxz9n1FoqS4IkpNtDQaYlGd3snlYrhgTdifoT6jGqh9CgepCgx3qIHopKuqA+lElZDyph1ENUpoHQhei5pDJ3Tszorjuzl5ndVZHYeZv5nd+cz3zP+Z7frjDJL5nkfGQBM61QVsGsgpkqEG+/tpNLEeswqUIoRHkixdyLFzthPag9FBEiiEEQZQdQ4AAS6qWYs27IcQPUl+QxhQpyCALVwAo06Vj7xTvy5QChaMgxBdQ+5vGLasSGqkKZaSeLzqJR6a3n4XvhDwFmyRL+jBmgvmUKQ2y0y2baYCUeKiVr6dtSxuGMS6yvWDjSRxbQdpT8yEujFXHLEK1ceG00fgCDpVLGl5QBtY+p/GDTSB9ZpVs2Ds4+JeVcTMnF+poKTE4ClSjTI70UT4l4n50sztl7PQQokxIGfQNqN8eA66729hbOgkrddjtlNW2JXh7zOm1nBtP4BszwJooTIbxByfHZCndlLfuT5YkF7GYNIV5E2d+5f3QsjD4fVu4tQh0m3UALUGqrmTjeMkaxrOFzaoAdtkv7HeMiWemE9wj1PKKRKrZgcAeY40P901LBBa+4uB2jHTSh1DoUcA9c6EE4x3pui2BqJycwaQByPQez8IECViQyhueg1k5mY9KBsjTOF/ZicI6v3LKOJW0nQC5XgaNeakTWDXbJBh77iU/oOe1iEYN0AXNHFPloK/aNm+HzUttYwFTuo6xyJEs0sIercE82s88PXGzRXLv0OStRrmFwmRA3ZBtD4RBtZytCo89+C28bQCiWLcmN4Vlir6/TZxxHaUDJSxrrVtLgtGz1NkbagHa/hbiCcCzhGIpIHJVmuJF6mctyP8ZIC1CfM5+/PIjpNy+5w+uWMSr9GSNlQH1KCUM8BQodPO75GG8oD2+4LzvZ6/dbUgds5RDKrXQSIFgnxjLZwad09vs62vXhCKC76f3cC2ckyPl04DzHTKTfLUAzDQWFXhambozUS9zMboSWmKMP+w+O9cvFeYWVzSUo1bSmq55/BRuZRYBel0m+Y1CDUodSY0M4TdMotRzMBM43oJ27mXKUSyilQCcGJ6SWfm1lOr+5gnIkCuYJg+yRA/ycMECvRNrEYkzKyKFfannlFe933ZeL/b5sPOKygJmqmlXwv1fwH9at6ylMGY7gAAAAAElFTkSuQmCC",VS=Object.freeze(Object.defineProperty({__proto__:null,default:zS},Symbol.toStringTag,{value:"Module"})),GS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABDFJREFUWEftmF9oW3UUx7/n3mTt/INaxUEiU1zrHKnaJsW0nVazFbWbxYW6TREEEWT6sBdBfPDNB/Ft4ItTEMZAtKFUzdSuLbVOu3Zp1jSldWPWP3OzdXSCUu1s19wjN7lpbm7u3f3d22UUNA+BXM7vez58z+93fueGsMY/tMb58N8BbJ9JXleZWe/zyBnPcuXSbKyq4c+rUZ1VObibO2VpNvAMMe8DIwywl3NUTEQTIBz6G1UH4z7fgltY14C7z437iaQYGE02yX+SJLnjI38g5QbSFWD0/KlbvXz5BDNvsk/KANG8xGj+eOMDk/bxxRGuADvOjn9G4PaslKbAWm2NgtpjEGGa5tcFYoHAkhNIx4DRn8eaiHB8JUmeIP8gr2jynAgvd20MvltmwJMfAHihJMkKkIGMdBZLNNZ9ZyhUVsBdP46eY8IdBcOsLNOOs46GQEqmAhvivoaLopCOShydTt+ekRYviIrnGo4WrWVSoDx+5O7GXlENR4DtZxMBLPMVTyJrp4XypdVIWCMlmZ6L3xX+sCyAO84MtRBJX+tPr2giXdz+z6ub3hFd58jBtu9HGgnKsKi4aRzJ+76oDh8U1XAE+OQPIzXLmcwZXfsrdBvL0hpQiPb01DTHygIYSia9t914Sb1XPaIJjHEKSfV992wdF13vyEFV9LHTx5IAHPWygs20cF6ZveW7wB7h28Q54Klv3lKgvG68OKwcKW7b1NO/paVN1D2zrWS7dvvpY/dDyaRtA00CJJme79v86GEnax07qIpvm/pqAOCIWSJDXy6EEGaUC7RpMBL5p+yAkakBdTgdYoYsmkwCXhqo3f6+aLzoFrLUe2Sy/20wvyaSkIiODgZa20ArF5/IsmyMqxJnVzJLLZP9nQB35H7mcpYISpSSLv+1bbA++ocwlS7QPaAq0tkpP7z5pgQDQdPkhHled71/6N6H5t3Arc5BzcWtE72/AOxfsVBPQsReT4VvMBD57ZoDqrdKhXfuAJhfKUpeOkn3LvDi3vFrVeK6VPfN66lyL7PyKoAaS2eKJmyag0wHiDOHhuvaf3Xipu0ebBg9Uit5lEYwbSGiB7Pvv8ze0tOQkyrMgwYMFZhI/U4zMAyJ0sw4MVq/84r3siVgOBWvYYUPM9QXct1kvOoGpQnkTz3Rt1iWXkyEd2anJOPHFLBpqqdq6dLiBAGFzW+YkJ2USSD2d4XQOBZ6aloIMJT89E0wv6EPzo/spQbalNaSzuAN4ejJhl1PCAEGE93HGWz3l4aAMQ5C1P0pV2xIBXfMFXUqM4m6ka4+EFodyOtCLccFk1NTjELeJX8q+OyMLeB9o12tksJfMrPt5Ew2t6Vxa1iWkOiTdPjpqFCJ1aDaRKxZUmg/g6vVe9fKTStAezACiJkVXISMeOYGvGc2adv2QXdlvnqr/gdcrZdr3sF/AWQ0XDiCWwUIAAAAAElFTkSuQmCC",HS=Object.freeze(Object.defineProperty({__proto__:null,default:GS},Symbol.toStringTag,{value:"Module"}));const WS="_incomeConsus_f8vyw_1",US="_income_f8vyw_1",YS="_countPrice_f8vyw_10",ZS="_searchTime_f8vyw_20",$S="_section_f8vyw_37",XS="_numberCount_f8vyw_45",qS="_color1_f8vyw_60",KS="_color2_f8vyw_63",QS="_color3_f8vyw_66",JS="_color4_f8vyw_69",jS="_color5_f8vyw_72",tw="_color6_f8vyw_75",ew="_color7_f8vyw_78",rw="_color8_f8vyw_81",nw="_color9_f8vyw_84",iw="_color10_f8vyw_87",aw="_type_f8vyw_90",ow="_price_f8vyw_93",sw="_incomeTitle_f8vyw_108",lw="_incomeLine_f8vyw_125",uw="_pieSection_f8vyw_129",fw="_pieIncome_f8vyw_135",hw="_rateAll_f8vyw_139",vw="_rate_f8vyw_139",cw="_pieData_f8vyw_164",dw="_pieTitle_f8vyw_181",pw="_pieLive_f8vyw_194",gw="_pieVideo_f8vyw_197",mw="_pieMusic_f8vyw_200",yw="_pie1_f8vyw_203",_w="_pie2_f8vyw_206",Sw="_pie3_f8vyw_209",ww="_pie4_f8vyw_212",xw="_pie5_f8vyw_215",bw="_pie6_f8vyw_218",Tw="_pie7_f8vyw_221",Cw="_timePopup_f8vyw_232",Aw="_timeMonth_f8vyw_238",Mw="_timeYear_f8vyw_239";var V={incomeConsus:WS,income:US,countPrice:YS,searchTime:ZS,section:$S,numberCount:XS,color1:qS,color2:KS,color3:QS,color4:JS,color5:jS,color6:tw,color7:ew,color8:rw,color9:nw,color10:iw,type:aw,price:ow,incomeTitle:sw,incomeLine:lw,pieSection:uw,pieIncome:fw,rateAll:hw,rate:vw,pieData:cw,pieTitle:dw,pieLive:pw,pieVideo:gw,pieMusic:mw,pie1:yw,pie2:_w,pie3:Sw,pie4:ww,pie5:xw,pie6:bw,pie7:Tw,timePopup:Cw,timeMonth:Aw,timeYear:Mw};/*! *****************************************************************************
  2. Copyright (c) Microsoft Corporation.
  3. Permission to use, copy, modify, and/or distribute this software for any
  4. purpose with or without fee is hereby granted.
  5. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  6. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  7. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  8. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  9. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  10. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  11. PERFORMANCE OF THIS SOFTWARE.
  12. ***************************************************************************** */var mf=function(r,t){return mf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},mf(r,t)};function B(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");mf(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Dw=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),Iw=function(){function r(){this.browser=new Dw,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window!="undefined"}return r}(),Sn=new Iw;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Sn.wxa=!0,Sn.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?Sn.worker=!0:typeof navigator=="undefined"?(Sn.node=!0,Sn.svgSupported=!0):Lw(navigator.userAgent,Sn);function Lw(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),i&&(e.ie=!0,e.version=i[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect!="undefined",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document!="undefined";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var st=Sn,Oh=12,Pw="sans-serif",Rn=Oh+"px "+Pw,Rw=20,Ew=100,Ow="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function kw(r){var t={};if(typeof JSON=="undefined")return t;for(var e=0;e<r.length;e++){var n=String.fromCharCode(e+32),i=(r.charCodeAt(e)-Rw)/Ew;t[n]=i}return t}var Bw=kw(Ow),zn={createCanvas:function(){return typeof document!="undefined"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,n){if(!r){var i=zn.createCanvas();r=i&&i.getContext("2d")}if(r)return t!==n&&(t=r.font=n||Rn),r.measureText(e);e=e||"",n=n||Rn;var a=/^([0-9]*?)px$/.exec(n),o=+(a&&a[1])||Oh,s=0;if(n.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=Bw[e[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,t,e){var n=new Image;return n.onload=t,n.onerror=e,n.src=r,n}},Pm=Wr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),Rm=Wr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),Oi=Object.prototype.toString,el=Array.prototype,Nw=el.forEach,Fw=el.filter,kh=el.slice,zw=el.map,tc=function(){}.constructor,vo=tc?tc.prototype:null,Bh="__proto__",Vw=2311;function Em(){return Vw++}function An(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console!="undefined"&&console.error.apply(console,r)}function rt(r){if(r==null||typeof r!="object")return r;var t=r,e=Oi.call(r);if(e==="[object Array]"){if(!ba(r)){t=[];for(var n=0,i=r.length;n<i;n++)t[n]=rt(r[n])}}else if(Rm[e]){if(!ba(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var n=0,i=r.length;n<i;n++)t[n]=r[n]}}}else if(!Pm[e]&&!ba(r)&&!bi(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==Bh&&(t[o]=rt(r[o]))}return t}function it(r,t,e){if(!Y(t)||!Y(r))return e?rt(t):r;for(var n in t)if(t.hasOwnProperty(n)&&n!==Bh){var i=r[n],a=t[n];Y(a)&&Y(i)&&!z(a)&&!z(i)&&!bi(a)&&!bi(i)&&!ec(a)&&!ec(i)&&!ba(a)&&!ba(i)?it(i,a,e):(e||!(n in r))&&(r[n]=rt(t[n]))}return r}function N(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==Bh&&(r[e]=t[e]);return r}function tt(r,t,e){for(var n=xt(t),i=0;i<n.length;i++){var a=n[i];(e?t[a]!=null:r[a]==null)&&(r[a]=t[a])}return r}zn.createCanvas;function ot(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,n=r.length;e<n;e++)if(r[e]===t)return e}return-1}function Gw(r,t){var e=r.prototype;function n(){}n.prototype=t.prototype,r.prototype=new n;for(var i in e)e.hasOwnProperty(i)&&(r.prototype[i]=e[i]);r.prototype.constructor=r,r.superClass=t}function ir(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(e?t[a]!=null:r[a]==null)&&(r[a]=t[a])}else tt(r,t,e)}function te(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function A(r,t,e){if(!!(r&&t))if(r.forEach&&r.forEach===Nw)r.forEach(t,e);else if(r.length===+r.length)for(var n=0,i=r.length;n<i;n++)t.call(e,r[n],n,r);else for(var a in r)r.hasOwnProperty(a)&&t.call(e,r[a],a,r)}function G(r,t,e){if(!r)return[];if(!t)return Nh(r);if(r.map&&r.map===zw)return r.map(t,e);for(var n=[],i=0,a=r.length;i<a;i++)n.push(t.call(e,r[i],i,r));return n}function Wr(r,t,e,n){if(!!(r&&t)){for(var i=0,a=r.length;i<a;i++)e=t.call(n,e,r[i],i,r);return e}}function Pt(r,t,e){if(!r)return[];if(!t)return Nh(r);if(r.filter&&r.filter===Fw)return r.filter(t,e);for(var n=[],i=0,a=r.length;i<a;i++)t.call(e,r[i],i,r)&&n.push(r[i]);return n}function xt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function Hw(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return function(){return r.apply(t,e.concat(kh.call(arguments)))}}var K=vo&&$(vo.bind)?vo.call.bind(vo.bind):Hw;function ft(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(kh.call(arguments)))}}function z(r){return Array.isArray?Array.isArray(r):Oi.call(r)==="[object Array]"}function $(r){return typeof r=="function"}function W(r){return typeof r=="string"}function ys(r){return Oi.call(r)==="[object String]"}function pt(r){return typeof r=="number"}function Y(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function ec(r){return!!Pm[Oi.call(r)]}function se(r){return!!Rm[Oi.call(r)]}function bi(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function rl(r){return r.colorStops!=null}function Ww(r){return r.image!=null}function Om(r){return Oi.call(r)==="[object RegExp]"}function ka(r){return r!==r}function En(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,n=r.length;e<n;e++)if(r[e]!=null)return r[e]}function vt(r,t){return r!=null?r:t}function Mn(r,t,e){return r!=null?r:t!=null?t:e}function Nh(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return kh.apply(r,t)}function km(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function X(r,t){if(!r)throw new Error(t)}function Qe(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Bm="__ec_primitive__";function _s(r){r[Bm]=!0}function ba(r){return r[Bm]}var Uw=function(){function r(t){this.data={};var e=z(t);this.data={};var n=this;t instanceof r?t.each(i):t&&A(t,i);function i(a,o){e?n.set(a,o):n.set(o,a)}}return r.prototype.get=function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},r.prototype.set=function(t,e){return this.data[t]=e},r.prototype.each=function(t,e){for(var n in this.data)this.data.hasOwnProperty(n)&&t.call(e,this.data[n],n)},r.prototype.keys=function(){return xt(this.data)},r.prototype.removeKey=function(t){delete this.data[t]},r}();function Q(r){return new Uw(r)}function Yw(r,t){for(var e=new r.constructor(r.length+t.length),n=0;n<r.length;n++)e[n]=r[n];for(var i=r.length,n=0;n<t.length;n++)e[n+i]=t[n];return e}function nl(r,t){var e;if(Object.create)e=Object.create(r);else{var n=function(){};n.prototype=r,e=new n}return t&&N(e,t),e}function Nm(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function mr(r,t){return r.hasOwnProperty(t)}function jt(){}var Zw=180/Math.PI;function ki(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function $w(r){return[r[0],r[1]]}function rc(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function Xw(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function qw(r){return Math.sqrt(Kw(r))}function Kw(r){return r[0]*r[0]+r[1]*r[1]}function zl(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function Qw(r,t){var e=qw(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function yf(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var _f=yf;function Jw(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var gi=Jw;function rs(r,t,e,n){return r[0]=t[0]+n*(e[0]-t[0]),r[1]=t[1]+n*(e[1]-t[1]),r}function Me(r,t,e){var n=t[0],i=t[1];return r[0]=e[0]*n+e[2]*i+e[4],r[1]=e[1]*n+e[3]*i+e[5],r}function hi(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function vi(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var Un=function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r}(),jw=function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;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 Un(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(a,o,t),this.handler.dispatchToElement(new Un(e,t),"drag",t.event);var s=this.handler.findHover(n,i,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Un(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Un(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Un(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Un(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}(),tx=jw,ex=function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var l={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[t].length-1,f=a[t][u];return f&&f.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.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=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==e&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},r.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],a=this._$eventProcessor;if(i)for(var o=e.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r.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],a=this._$eventProcessor;if(i)for(var o=e.length,s=e[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r}(),Le=ex,rx=Math.log(2);function Sf(r,t,e,n,i,a){var o=n+"-"+i,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/rx);return r[e][l]}for(var u=n|1<<e,f=e+1;n&1<<f;)f++;for(var h=0,c=0,v=0;c<s;c++){var d=1<<c;d&i||(h+=(v%2?-1:1)*r[e][c]*Sf(r,t-1,f,u,i|d,a),v++)}return a[o]=h,h}function nc(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],n={},i=Sf(e,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Sf(e,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(l,u,f){var h=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/h,l[1]=(u*a[3]+f*a[4]+a[5])/h}}}var ic="___zrEVENTSAVED",Vl=[];function nx(r,t,e,n,i){return wf(Vl,t,n,i,!0)&&wf(r,e,Vl[0],Vl[1])}function wf(r,t,e,n,i){if(t.getBoundingClientRect&&st.domSupported&&!Fm(t)){var a=t[ic]||(t[ic]={}),o=ix(t,a),s=ax(o,a,i);if(s)return s(r,e,n),!0}return!1}function ix(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function ax(r,t,e){for(var n=e?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,c=f.left,v=f.top;o.push(c,v),l=l&&a&&c===a[h]&&v===a[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=e?nc(s,o):nc(o,s))}function Fm(r){return r.nodeName.toUpperCase()==="CANVAS"}var ox=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Gl=[],sx=st.browser.firefox&&+st.browser.version.split(".")[0]<39;function xf(r,t,e,n){return e=e||{},n?ac(r,t,e):sx&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):ac(r,t,e),e}function ac(r,t,e){if(st.domSupported&&r.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(Fm(r)){var a=r.getBoundingClientRect();e.zrX=n-a.left,e.zrY=i-a.top;return}else if(wf(Gl,r,n,i)){e.zrX=Gl[0],e.zrY=Gl[1];return}}e.zrX=e.zrY=0}function Fh(r){return r||window.event}function we(r,t,e){if(t=Fh(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&xf(r,o,t,e)}else{xf(r,t,t,e);var a=lx(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&ox.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function lx(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var i=Math.abs(n!==0?n:e),a=n>0?-1:n<0?1:e>0?-1:1;return 3*i*a}function bf(r,t,e,n){r.addEventListener(t,e,n)}function ux(r,t,e,n){r.removeEventListener(t,e,n)}var Ti=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function oc(r){return r.which===2||r.which===3}var fx=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var i=t.touches;if(!!i){for(var a={points:[],touches:[],target:e,event:t},o=0,s=i.length;o<s;o++){var l=i[o],u=xf(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in Hl)if(Hl.hasOwnProperty(e)){var n=Hl[e](this._track,t);if(n)return n}},r}();function sc(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function hx(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Hl={pinch:function(r,t){var e=r.length;if(!!e){var n=(r[e-1]||{}).points,i=(r[e-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=sc(n)/sc(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=hx(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}},zm="silent";function vx(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:cx}}function cx(){Ti(this.event)}var dx=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Le),Wi=function(){function r(t,e){this.x=t,this.y=e}return r}(),px=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Vm=function(r){B(t,r);function t(e,n,i,a){var o=r.call(this)||this;return o._hovered=new Wi(0,0),o.storage=e,o.painter=n,o.painterRoot=a,i=i||new dx,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new tx(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(A(px,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,i=e.zrY,a=Gm(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Wi(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Wi(0,0)},t.prototype.dispatch=function(e,n){var i=this[e];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,i){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+n,s=vx(n,e,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(e,n,i){for(var a=this.storage.getDisplayList(),o=new Wi(e,n),s=a.length-1;s>=0;s--){var l=void 0;if(a[s]!==i&&!a[s].ignore&&(l=gx(a[s],e,n))&&(!o.topTarget&&(o.topTarget=a[s]),l!==zm)){o.target=a[s];break}}return o},t.prototype.processGesture=function(e,n){this._gestureMgr||(this._gestureMgr=new fx);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;e.gestureEvent=o;var s=new Wi;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(Le);A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){Vm.prototype[r]=function(t){var e=t.zrX,n=t.zrY,i=Gm(this,e,n),a,o;if((r!=="mouseup"||!i)&&(a=this.findHover(e,n),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||_f(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function gx(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?zm:!0}return!1}function Gm(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var mx=Vm,Hm=32,Ui=7;function yx(r){for(var t=0;r>=Hm;)t|=r&1,r>>=1;return r+t}function lc(r,t,e,n){var i=t+1;if(i===e)return 1;if(n(r[i++],r[t])<0){for(;i<e&&n(r[i],r[i-1])<0;)i++;_x(r,t,i)}else for(;i<e&&n(r[i],r[i-1])>=0;)i++;return i-t}function _x(r,t,e){for(e--;t<e;){var n=r[t];r[t++]=r[e],r[e--]=n}}function uc(r,t,e,n,i){for(n===t&&n++;n<e;n++){for(var a=r[n],o=t,s=n,l;o<s;)l=o+s>>>1,i(a,r[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function Wl(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])>0){for(s=n-i;l<s&&a(r,t[e+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(r,t[e+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])>0?o=f+1:l=f}return l}function Ul(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])<0){for(s=i+1;l<s&&a(r,t[e+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(r,t[e+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])<0?l=f:o=f+1}return l}function Sx(r,t){var e=Ui,n,i,a=0;r.length;var o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]<i[v+1]&&v--;else if(i[v]>i[v+1])break;f(v)}}function u(){for(;a>1;){var v=a-2;v>0&&i[v-1]<i[v+1]&&v--,f(v)}}function f(v){var d=n[v],p=i[v],g=n[v+1],m=i[v+1];i[v]=p+m,v===a-3&&(n[v+1]=n[v+2],i[v+1]=i[v+2]),a--;var y=Ul(r[g],r,d,p,0,t);d+=y,p-=y,p!==0&&(m=Wl(r[d+p-1],r,g,m,m-1,t),m!==0&&(p<=m?h(d,p,g,m):c(d,p,g,m)))}function h(v,d,p,g){var m=0;for(m=0;m<d;m++)o[m]=r[v+m];var y=0,_=p,S=v;if(r[S++]=r[_++],--g===0){for(m=0;m<d;m++)r[S+m]=o[y+m];return}if(d===1){for(m=0;m<g;m++)r[S+m]=r[_+m];r[S+g]=o[y];return}for(var x=e,w,b,T;;){w=0,b=0,T=!1;do if(t(r[_],o[y])<0){if(r[S++]=r[_++],b++,w=0,--g===0){T=!0;break}}else if(r[S++]=o[y++],w++,b=0,--d===1){T=!0;break}while((w|b)<x);if(T)break;do{if(w=Ul(r[_],o,y,d,0,t),w!==0){for(m=0;m<w;m++)r[S+m]=o[y+m];if(S+=w,y+=w,d-=w,d<=1){T=!0;break}}if(r[S++]=r[_++],--g===0){T=!0;break}if(b=Wl(o[y],r,_,g,0,t),b!==0){for(m=0;m<b;m++)r[S+m]=r[_+m];if(S+=b,_+=b,g-=b,g===0){T=!0;break}}if(r[S++]=o[y++],--d===1){T=!0;break}x--}while(w>=Ui||b>=Ui);if(T)break;x<0&&(x=0),x+=2}if(e=x,e<1&&(e=1),d===1){for(m=0;m<g;m++)r[S+m]=r[_+m];r[S+g]=o[y]}else{if(d===0)throw new Error;for(m=0;m<d;m++)r[S+m]=o[y+m]}}function c(v,d,p,g){var m=0;for(m=0;m<g;m++)o[m]=r[p+m];var y=v+d-1,_=g-1,S=p+g-1,x=0,w=0;if(r[S--]=r[y--],--d===0){for(x=S-(g-1),m=0;m<g;m++)r[x+m]=o[m];return}if(g===1){for(S-=d,y-=d,w=S+1,x=y+1,m=d-1;m>=0;m--)r[w+m]=r[x+m];r[S]=o[_];return}for(var b=e;;){var T=0,C=0,D=!1;do if(t(o[_],r[y])<0){if(r[S--]=r[y--],T++,C=0,--d===0){D=!0;break}}else if(r[S--]=o[_--],C++,T=0,--g===1){D=!0;break}while((T|C)<b);if(D)break;do{if(T=d-Ul(o[_],r,v,d,d-1,t),T!==0){for(S-=T,y-=T,d-=T,w=S+1,x=y+1,m=T-1;m>=0;m--)r[w+m]=r[x+m];if(d===0){D=!0;break}}if(r[S--]=o[_--],--g===1){D=!0;break}if(C=g-Wl(r[y],o,0,g,g-1,t),C!==0){for(S-=C,_-=C,g-=C,w=S+1,x=_+1,m=0;m<C;m++)r[w+m]=o[x+m];if(g<=1){D=!0;break}}if(r[S--]=r[y--],--d===0){D=!0;break}b--}while(T>=Ui||C>=Ui);if(D)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),g===1){for(S-=d,y-=d,w=S+1,x=y+1,m=d-1;m>=0;m--)r[w+m]=r[x+m];r[S]=o[_]}else{if(g===0)throw new Error;for(x=S-(g-1),m=0;m<g;m++)r[x+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function ns(r,t,e,n){e||(e=0),n||(n=r.length);var i=n-e;if(!(i<2)){var a=0;if(i<Hm){a=lc(r,e,n,t),uc(r,e,n,e+a,t);return}var o=Sx(r,t),s=yx(i);do{if(a=lc(r,e,n,t),a<s){var l=i;l>s&&(l=s),uc(r,e,e+l,e+a,t),a=l}o.pushRun(e,a),o.mergeRuns(),i-=a,e+=a}while(i!==0);o.forceMergeRuns()}}var ce=1,da=2,li=4,fc=!1;function Yl(){fc||(fc=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function hc(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var xx=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=hc}return r.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,a=e.length;i<a;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,ns(n,hc)},r.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():e=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),e.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=ce),this._updateAndAddDisplayable(u,e,n)}t.__dirty=0}else{var f=t;e&&e.length?f.__clipPaths=e:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(Yl(),f.z=0),isNaN(f.z2)&&(Yl(),f.z2=0),isNaN(f.zlevel)&&(Yl(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,e,n)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);return}var i=ot(this._roots,t);i>=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),bx=xx,Wm;Wm=st.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Tf=Wm,is={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-is.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?is.bounceIn(r*2)*.5:is.bounceOut(r*2-1)*.5+.5}},Um=is,co=Math.pow,Gr=Math.sqrt,Ss=1e-8,Ym=1e-4,vc=Gr(3),po=1/3,qe=ki(),Te=ki(),mi=ki();function Nr(r){return r>-Ss&&r<Ss}function Zm(r){return r>Ss||r<-Ss}function Et(r,t,e,n,i){var a=1-i;return a*a*(a*r+3*i*t)+i*i*(i*n+3*a*e)}function cc(r,t,e,n,i){var a=1-i;return 3*(((t-r)*a+2*(e-t)*i)*a+(n-e)*i*i)}function ws(r,t,e,n,i,a){var o=n+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-i,f=s*s-3*o*l,h=s*l-9*o*u,c=l*l-3*s*u,v=0;if(Nr(f)&&Nr(h))if(Nr(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var p=h*h-4*f*c;if(Nr(p)){var g=h/f,d=-s/o+g,m=-g/2;d>=0&&d<=1&&(a[v++]=d),m>=0&&m<=1&&(a[v++]=m)}else if(p>0){var y=Gr(p),_=f*s+1.5*o*(-h+y),S=f*s+1.5*o*(-h-y);_<0?_=-co(-_,po):_=co(_,po),S<0?S=-co(-S,po):S=co(S,po);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var x=(2*f*s-3*o*h)/(2*Gr(f*f*f)),w=Math.acos(x)/3,b=Gr(f),T=Math.cos(w),d=(-s-2*b*T)/(3*o),m=(-s+b*(T+vc*Math.sin(w)))/(3*o),C=(-s+b*(T-vc*Math.sin(w)))/(3*o);d>=0&&d<=1&&(a[v++]=d),m>=0&&m<=1&&(a[v++]=m),C>=0&&C<=1&&(a[v++]=C)}}return v}function $m(r,t,e,n,i){var a=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,l=0;if(Nr(o)){if(Zm(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Nr(f))i[0]=-a/(2*o);else if(f>0){var h=Gr(f),u=(-a+h)/(2*o),c=(-a-h)/(2*o);u>=0&&u<=1&&(i[l++]=u),c>=0&&c<=1&&(i[l++]=c)}}return l}function Ur(r,t,e,n,i,a){var o=(t-r)*i+r,s=(e-t)*i+t,l=(n-e)*i+e,u=(s-o)*i+o,f=(l-s)*i+s,h=(f-u)*i+u;a[0]=r,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=f,a[6]=l,a[7]=n}function Xm(r,t,e,n,i,a,o,s,l,u,f){var h,c=.005,v=1/0,d,p,g,m;qe[0]=l,qe[1]=u;for(var y=0;y<1;y+=.05)Te[0]=Et(r,e,i,o,y),Te[1]=Et(t,n,a,s,y),g=gi(qe,Te),g<v&&(h=y,v=g);v=1/0;for(var _=0;_<32&&!(c<Ym);_++)d=h-c,p=h+c,Te[0]=Et(r,e,i,o,d),Te[1]=Et(t,n,a,s,d),g=gi(Te,qe),d>=0&&g<v?(h=d,v=g):(mi[0]=Et(r,e,i,o,p),mi[1]=Et(t,n,a,s,p),m=gi(mi,qe),p<=1&&m<v?(h=p,v=m):c*=.5);return f&&(f[0]=Et(r,e,i,o,h),f[1]=Et(t,n,a,s,h)),Gr(v)}function Tx(r,t,e,n,i,a,o,s,l){for(var u=r,f=t,h=0,c=1/l,v=1;v<=l;v++){var d=v*c,p=Et(r,e,i,o,d),g=Et(t,n,a,s,d),m=p-u,y=g-f;h+=Math.sqrt(m*m+y*y),u=p,f=g}return h}function Yt(r,t,e,n){var i=1-n;return i*(i*r+2*n*t)+n*n*e}function dc(r,t,e,n){return 2*((1-n)*(t-r)+n*(e-t))}function Cx(r,t,e,n,i){var a=r-2*t+e,o=2*(t-r),s=r-n,l=0;if(Nr(a)){if(Zm(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Nr(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var h=Gr(f),u=(-o+h)/(2*a),c=(-o-h)/(2*a);u>=0&&u<=1&&(i[l++]=u),c>=0&&c<=1&&(i[l++]=c)}}return l}function qm(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function xs(r,t,e,n,i){var a=(t-r)*n+r,o=(e-t)*n+t,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=e}function Km(r,t,e,n,i,a,o,s,l){var u,f=.005,h=1/0;qe[0]=o,qe[1]=s;for(var c=0;c<1;c+=.05){Te[0]=Yt(r,e,i,c),Te[1]=Yt(t,n,a,c);var v=gi(qe,Te);v<h&&(u=c,h=v)}h=1/0;for(var d=0;d<32&&!(f<Ym);d++){var p=u-f,g=u+f;Te[0]=Yt(r,e,i,p),Te[1]=Yt(t,n,a,p);var v=gi(Te,qe);if(p>=0&&v<h)u=p,h=v;else{mi[0]=Yt(r,e,i,g),mi[1]=Yt(t,n,a,g);var m=gi(mi,qe);g<=1&&m<h?(u=g,h=m):f*=.5}}return l&&(l[0]=Yt(r,e,i,u),l[1]=Yt(t,n,a,u)),Gr(h)}function Ax(r,t,e,n,i,a,o){for(var s=r,l=t,u=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=Yt(r,e,i,c),d=Yt(t,n,a,c),p=v-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=v,l=d}return u}var Mx=/cubic-bezier\(([0-9,\.e ]+)\)/;function Qm(r){var t=r&&Mx.exec(r);if(t){var e=t[1].split(","),n=+Qe(e[0]),i=+Qe(e[1]),a=+Qe(e[2]),o=+Qe(e[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:ws(0,n,a,1,l,s)&&Et(0,i,o,1,s[0])}}}var Dx=function(){function r(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||jt,this.ondestroy=t.ondestroy||jt,this.onrestart=t.onrestart||jt,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=$(t)?t:Um[t]||Qm(t)},r}(),Ix=Dx,Jm=function(){function r(t){this.value=t}return r}(),Lx=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new Jm(t);return this.insertEntry(e),e},r.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++},r.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--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),Px=function(){function r(t){this._list=new Lx,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new Jm(e),s.key=t,n.insertEntry(s),i[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),ja=Px,pc={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 Hr(r){return r=Math.round(r),r<0?0:r>255?255:r}function Cf(r){return r<0?0:r>1?1:r}function Zl(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Hr(parseFloat(t)/100*255):Hr(parseInt(t,10))}function bs(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Cf(parseFloat(t)/100):Cf(parseFloat(t))}function $l(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function go(r,t,e){return r+(t-r)*e}function Se(r,t,e,n,i){return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}function Af(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var jm=new ja(20),mo=null;function Yn(r,t){mo&&Af(mo,t),mo=jm.put(r,mo||t.slice())}function pr(r,t){if(!!r){t=t||[];var e=jm.get(r);if(e)return Af(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in pc)return Af(t,pc[n]),Yn(r,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){Se(t,0,0,0,1);return}return Se(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Yn(r,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Se(t,0,0,0,1);return}return Se(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Yn(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Se(t,+u[0],+u[1],+u[2],1):Se(t,0,0,0,1);f=bs(u.pop());case"rgb":if(u.length!==3){Se(t,0,0,0,1);return}return Se(t,Zl(u[0]),Zl(u[1]),Zl(u[2]),f),Yn(r,t),t;case"hsla":if(u.length!==4){Se(t,0,0,0,1);return}return u[3]=bs(u[3]),gc(u,t),Yn(r,t),t;case"hsl":if(u.length!==3){Se(t,0,0,0,1);return}return gc(u,t),Yn(r,t),t;default:return}}Se(t,0,0,0,1)}}function gc(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=bs(r[1]),i=bs(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],Se(t,Hr($l(o,a,e+1/3)*255),Hr($l(o,a,e)*255),Hr($l(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function mc(r,t){var e=pr(r);if(e){for(var n=0;n<3;n++)t<0?e[n]=e[n]*(1-t)|0:e[n]=(255-e[n])*t+e[n]|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return il(e,e.length===4?"rgba":"rgb")}}function Rx(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=pr(t[i]),s=pr(t[a]),l=n-i,u=il([Hr(go(o[0],s[0],l)),Hr(go(o[1],s[1],l)),Hr(go(o[2],s[2],l)),Cf(go(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function il(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Ts(r,t){var e=pr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function Ex(r){return r.type==="linear"}function Ox(r){return r.type==="radial"}(function(){return st.hasGlobalWindow&&$(window.btoa)?function(r){return window.btoa(unescape(r))}:typeof Buffer!="undefined"?function(r){return Buffer.from(r).toString("base64")}:function(r){return An("Base64 isn't natively supported in the current environment."),null}})();var Mf=Array.prototype.slice;function hr(r,t,e){return(t-r)*e+r}function Xl(r,t,e,n){for(var i=t.length,a=0;a<i;a++)r[a]=hr(t[a],e[a],n);return r}function kx(r,t,e,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=hr(t[o][s],e[o][s],n)}return r}function yo(r,t,e,n){for(var i=t.length,a=0;a<i;a++)r[a]=t[a]+e[a]*n;return r}function yc(r,t,e,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=t[o][s]+e[o][s]*n}return r}function Bx(r,t){for(var e=r.length,n=t.length,i=e>n?t:r,a=Math.min(e,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(e,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function Nx(r,t,e){var n=r,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(e===1?i[l]:Mf.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(e===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function as(r){if(te(r)){var t=r.length;if(te(r[0])){for(var e=[],n=0;n<t;n++)e.push(Mf.call(r[n]));return e}return Mf.call(r)}return r}function os(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function Fx(r){return te(r&&r[0])?2:1}var _o=0,ss=1,t0=2,pa=3,Df=4,If=5,_c=6;function Sc(r){return r===Df||r===If}function So(r){return r===ss||r===t0}var Yi=[0,0,0,0],zx=function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=_c,l=e;if(te(e)){var u=Fx(e);s=u,(u===1&&!pt(e[0])||u===2&&!pt(e[0][0]))&&(o=!0)}else if(pt(e)&&!ka(e))s=_o;else if(W(e))if(!isNaN(+e))s=_o;else{var f=pr(e);f&&(l=f,s=pa)}else if(rl(e)){var h=N({},l);h.colorStops=G(e.colorStops,function(v){return{offset:v.offset,color:pr(v.color)}}),Ex(e)?s=Df:Ox(e)&&(s=If),l=h}a===0?this.valType=s:(s!==this.valType||s===_c)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:l,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=$(n)?n:Um[n]||Qm(n)),i.push(c),c},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=So(i),u=Sc(i),f=0;f<a;f++){var h=n[f],c=h.value,v=o.value;h.percent=h.time/t,s||(l&&f!==a-1?Nx(c,v,i):u&&Bx(c.colorStops,v.colorStops))}if(!s&&i!==If&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var d=n[0].value,f=0;f<a;f++)i===_o?n[f].additiveValue=n[f].value-d:i===pa?n[f].additiveValue=yo([],n[f].value,d,-1):So(i)&&(n[f].additiveValue=i===ss?yo([],n[f].value,d,-1):yc([],n[f].value,d,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===pa,f,h=this._lastFr,c=Math.min,v,d;if(s===1)v=d=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var p=c(h+1,s-1);for(f=p;f>=0&&!(o[f].percent<=e);f--);f=c(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>e);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(!!(v&&d)){this._lastFr=f,this._lastFrP=e;var g=d.percent-v.percent,m=g===0?1:c((e-v.percent)/g,1);d.easingFunc&&(m=d.easingFunc(m));var y=n?this._additiveValue:u?Yi:t[l];if((So(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?v.rawValue:d.rawValue;else if(So(a))a===ss?Xl(y,v[i],d[i],m):kx(y,v[i],d[i],m);else if(Sc(a)){var _=v[i],S=d[i],x=a===Df;t[l]={type:x?"linear":"radial",x:hr(_.x,S.x,m),y:hr(_.y,S.y,m),colorStops:G(_.colorStops,function(b,T){var C=S.colorStops[T];return{offset:hr(b.offset,C.offset,m),color:os(Xl([],b.color,C.color,m))}}),global:S.global},x?(t[l].x2=hr(_.x2,S.x2,m),t[l].y2=hr(_.y2,S.y2,m)):t[l].r=hr(_.r,S.r,m)}else if(u)Xl(y,v[i],d[i],m),n||(t[l]=os(y));else{var w=hr(v[i],d[i],m);n?this._additiveValue=w:t[l]=w}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===_o?t[n]=t[n]+i:e===pa?(pr(t[n],Yi),yo(Yi,Yi,i,1),t[n]=os(Yi)):e===ss?yo(t[n],t[n],i,1):e===t0&&yc(t[n],t[n],i,1)},r}(),Vx=function(){function r(t,e,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){An("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,xt(e),n)},r.prototype.whenWithKeys=function(t,e,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new zx(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,c=h[h.length-1];u=c&&c.value,f.valType===pa&&u&&(u=os(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,as(u),i),this._trackKeys.push(s)}l.addKeyframe(t,as(e[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.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)},r.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)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(e=a)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var c=new Ix({life:i,loop:this._loop,delay:this._delay||0,onframe:function(v){e._started=2;var d=e._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(e._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(e._target,v);var m=e._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](e._target,v)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(!!this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return G(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,n){if(!!t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var a=e[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[a]=as(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||xt(t);for(var n=0;n<e.length;n++){var i=e[n],a=this._tracks[i];if(!!a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}(),zh=Vx;function ci(){return new Date().getTime()}var Gx=function(r){B(t,r);function t(e){var n=r.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 t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(!!e.animation){var n=e.prev,i=e.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=ci()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(Tf(n),!e._paused&&e.update())}Tf(n)},t.prototype.start=function(){this._running||(this._time=ci(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ci(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ci()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var i=new zh(e,n.loop);return this.addAnimator(i),i},t}(Le),Hx=Gx,Wx=300,ql=st.domSupported,Kl=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=G(r,function(i){var a=i.replace("mouse","pointer");return e.hasOwnProperty(a)?a:i});return{mouse:r,touch:t,pointer:n}}(),wc={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},xc=!1;function Lf(r){var t=r.pointerType;return t==="pen"||t==="touch"}function Ux(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Ql(r){r&&(r.zrByTouch=!0)}function Yx(r,t){return we(r.dom,new Zx(r,t),!0)}function e0(r,t){for(var e=t,n=!1;e&&e.nodeType!==9&&!(n=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return n}var Zx=function(){function r(t,e){this.stopPropagation=jt,this.stopImmediatePropagation=jt,this.preventDefault=jt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),ke={mousedown:function(r){r=we(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=we(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=we(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=we(this.dom,r);var t=r.toElement||r.relatedTarget;e0(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){xc=!0,r=we(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){xc||(r=we(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=we(this.dom,r),Ql(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),ke.mousemove.call(this,r),ke.mousedown.call(this,r)},touchmove:function(r){r=we(this.dom,r),Ql(r),this.handler.processGesture(r,"change"),ke.mousemove.call(this,r)},touchend:function(r){r=we(this.dom,r),Ql(r),this.handler.processGesture(r,"end"),ke.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<Wx&&ke.click.call(this,r)},pointerdown:function(r){ke.mousedown.call(this,r)},pointermove:function(r){Lf(r)||ke.mousemove.call(this,r)},pointerup:function(r){ke.mouseup.call(this,r)},pointerout:function(r){Lf(r)||ke.mouseout.call(this,r)}};A(["click","dblclick","contextmenu"],function(r){ke[r]=function(t){t=we(this.dom,t),this.trigger(r,t)}});var Pf={pointermove:function(r){Lf(r)||Pf.mousemove.call(this,r)},pointerup:function(r){Pf.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function $x(r,t){var e=t.domHandlers;st.pointerEventsSupported?A(Kl.pointer,function(n){ls(t,n,function(i){e[n].call(r,i)})}):(st.touchEventsSupported&&A(Kl.touch,function(n){ls(t,n,function(i){e[n].call(r,i),Ux(t)})}),A(Kl.mouse,function(n){ls(t,n,function(i){i=Fh(i),t.touching||e[n].call(r,i)})}))}function Xx(r,t){st.pointerEventsSupported?A(wc.pointer,e):st.touchEventsSupported||A(wc.mouse,e);function e(n){function i(a){a=Fh(a),e0(r,a.target)||(a=Yx(r,a),t.domHandlers[n].call(r,a))}ls(t,n,i,{capture:!0})}}function ls(r,t,e,n){r.mounted[t]=e,r.listenerOpts[t]=n,bf(r.domTarget,t,e,n)}function Jl(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&ux(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var bc=function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r}(),qx=function(r){B(t,r);function t(e,n){var i=r.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new bc(e,ke),ql&&(i._globalHandlerScope=new bc(document,Pf)),$x(i,i._localHandlerScope),i}return t.prototype.dispose=function(){Jl(this._localHandlerScope),ql&&Jl(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,ql&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var n=this._globalHandlerScope;e?Xx(this,n):Jl(n)}},t}(Le),Kx=qx,r0=1;st.hasGlobalWindow&&(r0=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Cs=r0,Rf=.4,Ef="#333",Of="#ccc",Qx="#eee";function Ba(){return[1,0,0,1,0,0]}function Vh(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Jx(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function yi(r,t,e){var n=t[0]*e[0]+t[2]*e[1],i=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function kf(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function Gh(r,t,e){var n=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(e),f=Math.cos(e);return r[0]=n*f+o*u,r[1]=-n*u+o*f,r[2]=i*f+s*u,r[3]=-i*u+f*s,r[4]=f*a+u*l,r[5]=f*l-u*a,r}function jx(r,t,e){var n=e[0],i=e[1];return r[0]=t[0]*n,r[1]=t[1]*i,r[2]=t[2]*n,r[3]=t[3]*i,r[4]=t[4]*n,r[5]=t[5]*i,r}function al(r,t){var e=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=e*o-a*n;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-n*l,r[3]=e*l,r[4]=(n*s-o*i)*l,r[5]=(a*i-e*s)*l,r):null}var Tc=Vh,Cc=5e-5;function qr(r){return r>Cc||r<-Cc}var Kr=[],Zn=[],jl=Ba(),tu=Math.abs,tb=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return qr(this.rotation)||qr(this.x)||qr(this.y)||qr(this.scaleX-1)||qr(this.scaleY-1)||qr(this.skewX)||qr(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&Tc(n);return}n=n||Ba(),e?this.getLocalTransform(n):Tc(n),t&&(e?yi(n,t,n):Jx(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Kr);var n=Kr[0]<0?-1:1,i=Kr[1]<0?-1:1,a=((Kr[0]-n)*e+n)/Kr[0]||0,o=((Kr[1]-i)*e+i)/Kr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Ba(),al(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.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]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,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}},r.prototype.decomposeTransform=function(){if(!!this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(yi(Zn,t.invTransform,e),e=Zn);var n=this.originX,i=this.originY;(n||i)&&(jl[4]=n,jl[5]=i,yi(Zn,e,jl),Zn[4]-=n,Zn[5]-=i,e=Zn),this.setLocalTransform(e)}},r.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)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&Me(n,n,i),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&Me(n,n,i),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&tu(t[0]-1)>1e-10&&tu(t[3]-1)>1e-10?Math.sqrt(tu(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){eb(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var d=n+s,p=i+l;e[4]=-d*a-c*p*o,e[5]=-p*o-v*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=v*a,e[2]=c*o,u&&Gh(e,e,u),e[4]+=n+f,e[5]+=i+h,e},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),Na=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function eb(r,t){for(var e=0;e<Na.length;e++){var n=Na[e];r[n]=t[n]}}var to=tb,rb=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.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}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},r.lerp=function(t,e,n,i){var a=1-i;t.x=a*e.x+i*n.x,t.y=a*e.y+i*n.y},r}(),Z=rb,wo=Math.min,xo=Math.max,Qr=new Z,Jr=new Z,jr=new Z,tn=new Z,Zi=new Z,$i=new Z,nb=function(){function r(t,e,n,i){n<0&&(t=t+n,n=-n),i<0&&(e=e+i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return r.prototype.union=function(t){var e=wo(t.x,this.x),n=wo(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=xo(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=xo(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,a=Ba();return kf(a,a,[-e.x,-e.y]),jx(a,a,[n,i]),kf(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,f=t.y,h=t.y+t.height,c=!(a<l||u<i||s<f||h<o);if(e){var v=1/0,d=0,p=Math.abs(a-l),g=Math.abs(u-i),m=Math.abs(s-f),y=Math.abs(h-o),_=Math.min(p,g),S=Math.min(m,y);a<l||u<i?_>d&&(d=_,p<g?Z.set($i,-p,0):Z.set($i,g,0)):_<v&&(v=_,p<g?Z.set(Zi,p,0):Z.set(Zi,-g,0)),s<f||h<o?S>d&&(d=S,m<y?Z.set($i,0,-m):Z.set($i,0,y)):_<v&&(v=_,m<y?Z.set(Zi,0,m):Z.set(Zi,0,-y))}return e&&Z.copy(e,c?Zi:$i),c},r.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},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=e.x*i+o,t.y=e.y*a+s,t.width=e.width*i,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Qr.x=jr.x=e.x,Qr.y=tn.y=e.y,Jr.x=tn.x=e.x+e.width,Jr.y=jr.y=e.y+e.height,Qr.transform(n),tn.transform(n),Jr.transform(n),jr.transform(n),t.x=wo(Qr.x,Jr.x,jr.x,tn.x),t.y=wo(Qr.y,Jr.y,jr.y,tn.y);var l=xo(Qr.x,Jr.x,jr.x,tn.x),u=xo(Qr.y,Jr.y,jr.y,tn.y);t.width=l-t.x,t.height=u-t.y},r}(),ct=nb,Ac={};function de(r,t){t=t||Rn;var e=Ac[t];e||(e=Ac[t]=new ja(500));var n=e.get(r);return n==null&&(n=zn.measureText(r,t).width,e.put(r,n)),n}function Mc(r,t,e,n){var i=de(r,t),a=Hh(t),o=ga(0,i,e),s=ui(0,a,n),l=new ct(o,s,i,a);return l}function ol(r,t,e,n){var i=((r||"")+"").split(`
  13. `),a=i.length;if(a===1)return Mc(i[0],t,e,n);for(var o=new ct(0,0,0,0),s=0;s<i.length;s++){var l=Mc(i[s],t,e,n);s===0?o.copy(l):o.union(l)}return o}function ga(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function ui(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function Hh(r){return de("\u56FD",r)}function Yr(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function As(r,t,e){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,l=e.x,u=e.y,f="left",h="top";if(n instanceof Array)l+=Yr(n[0],e.width),u+=Yr(n[1],e.height),f=null,h=null;else switch(n){case"left":l-=i,u+=s,f="right",h="middle";break;case"right":l+=i+o,u+=s,h="middle";break;case"top":l+=o/2,u-=i,f="center",h="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=o-i,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,h="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var eu="__zr_normal__",ru=Na.concat(["ignore"]),ib=Wr(Na,function(r,t){return r[t]=!0,r},{ignore:!1}),$n={},ab=new ct(0,0,0,0),Wh=function(){function r(t){this.id=Em(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;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()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=e.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(e),n.position!=null){var f=ab;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition($n,n,f):As($n,n,f),a.x=$n.x,a.y=$n.y,o=$n.align,s=$n.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var c=void 0,v=void 0;h==="center"?(c=f.width*.5,v=f.height*.5):(c=Yr(h[0],f.width),v=Yr(h[1],f.height)),u=!0,a.originX=-a.x+c+(i?0:f.x),a.originY=-a.y+v+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,_=void 0;p&&this.canBeInsideText()?(m=n.insideFill,y=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),_=!0)):(m=n.outsideFill,y=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),_=!0)),m=m||"#000",(m!==g.fill||y!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=y,g.autoStroke=_,g.align=o,g.verticalAlign=s,e.setDefaultTextStyle(g)),e.__dirty|=ce,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Of:Ef},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&pr(e);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,il(n,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},N(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(Y(t))for(var n=t,i=xt(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==eu)){var o=i.targetName,s=o?e[o]:e;i.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,ru)},r.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in e)&&(e[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(eu,!1,t)},r.prototype.useState=function(t,e,n,i){var a=t===eu,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ot(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){An("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!n&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,e,n,f),c&&c.useState(t,e,n,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ce),u}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&i.push(f)}var h=i[o-1],c=!!(h&&h.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ce)}},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=ot(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),a=ot(i,t),o=ot(i,e)>=0;a>=0?o?i.splice(a,1):i[a]=e:n&&!o&&i.push(e),this.useStates(i)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,i=0;i<t.length;i++){var a=t[i];N(e,a),a.textConfig&&(n=n||{},N(n,a.textConfig))}return n&&(e.textConfig=n),e},r.prototype._applyStateObj=function(t,e,n,i,a,o){var s=!(e&&i);e&&e.textConfig?(this.textConfig=N({},i?this.textConfig:n.textConfig),N(this.textConfig,e.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<ru.length;f++){var h=ru[f],c=a&&ib[h];e&&e[h]!=null?c?(u=!0,l[h]=e[h]):this[h]=e[h]:s&&n[h]!=null&&(c?(u=!0,l[h]=n[h]):this[h]=n[h])}if(!a)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(e||n)[d]:e||n)}u&&this._transitionState(t,l,o)},r.prototype._attachComponent=function(t){if(t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");if(t===this)throw new Error("Recursive component attachment.");var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;if(e!==t){if(e&&e!==t&&this.removeTextContent(),t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.innerTransformable=new to,this._attachComponent(t),this._textContent=t,this.markRedraw()}},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),N(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=ce;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(!!this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,n){var i=t?this[t]:this;if(!i){An('Property "'+t+'" is not existed in element '+this.id);return}var a=new zh(i,e,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},r.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var a=i.animators,o=ot(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(e):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(t,e,n){nu(this,t,e,n)},r.prototype.animateFrom=function(t,e,n){nu(this,t,e,n,!0)},r.prototype._transitionState=function(t,e,n,i){for(var a=nu(this,e,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=ce;var e={};function n(a,o,s){e[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),e[a+o+s]=!0)}function i(a,o,s,l){Object.defineProperty(t,a,{get:function(){if(n(a,s,l),!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){n(a,s,l),this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,h){Object.defineProperty(h,0,{get:function(){return f[s]},set:function(c){f[s]=c}}),Object.defineProperty(h,1,{get:function(){return f[l]},set:function(c){f[l]=c}})}}Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),r}();ir(Wh,Le);ir(Wh,to);function nu(r,t,e,n,i){e=e||{};var a=[];n0(r,"",r,t,e,n,a,i);var o=a.length,s=!1,l=e.done,u=e.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&e.during&&a[0].during(function(d,p){e.during(p)});for(var c=0;c<a.length;c++){var v=a[c];f&&v.done(f),h&&v.aborted(h),e.force&&v.duration(e.duration),v.start(e.easing)}return a}function iu(r,t,e){for(var n=0;n<e;n++)r[n]=t[n]}function ob(r){return te(r[0])}function sb(r,t,e){if(te(t[e]))if(te(r[e])||(r[e]=[]),se(t[e])){var n=t[e].length;r[e].length!==n&&(r[e]=new t[e].constructor(n),iu(r[e],t[e],n))}else{var i=t[e],a=r[e],o=i.length;if(ob(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?iu(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else iu(a,i,o);a.length=i.length}else r[e]=t[e]}function lb(r,t){return r===t||te(r)&&te(t)&&ub(r,t)}function ub(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++)if(r[n]!==t[n])return!1;return!0}function n0(r,t,e,n,i,a,o,s){for(var l=xt(n),u=i.duration,f=i.delay,h=i.additive,c=i.setToFinal,v=!Y(a),d=r.animators,p=[],g=0;g<l.length;g++){var m=l[g],y=n[m];if(y!=null&&e[m]!=null&&(v||a[m]))if(Y(y)&&!te(y)&&!rl(y)){if(t){s||(e[m]=y,r.updateDuringAnimation(t));continue}n0(r,m,e[m],y,i,a&&a[m],o,s)}else p.push(m);else s||(e[m]=y,r.updateDuringAnimation(t),p.push(m))}var _=p.length;if(!h&&_)for(var S=0;S<d.length;S++){var x=d[S];if(x.targetName===t){var w=x.stopTracks(p);if(w){var b=ot(d,x);d.splice(b,1)}}}if(i.force||(p=Pt(p,function(M){return!lb(n[M],e[M])}),_=p.length),_>0||i.force&&!o.length){var T=void 0,C=void 0,D=void 0;if(s){C={},c&&(T={});for(var S=0;S<_;S++){var m=p[S];C[m]=e[m],c?T[m]=n[m]:e[m]=n[m]}}else if(c){D={};for(var S=0;S<_;S++){var m=p[S];D[m]=as(e[m]),sb(e,n,m)}}var x=new zh(e,!1,!1,h?Pt(d,function(I){return I.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),c&&T&&x.whenWithKeys(0,T,p),D&&x.whenWithKeys(0,D,p),x.whenWithKeys(u==null?500:u,s?C:n,p).delay(f||0),r.addAnimator(x,t),o.push(x)}}var i0=Wh,a0=function(r){B(t,r);function t(e){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===e)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){if(e&&(e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),e.__hostTarget))throw"This elemenet has been used as an attachment";return this},t.prototype.addBefore=function(e,n){if(e&&e!==this&&e.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var i=ot(this._children,e);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(e,n){var i=this._children,a=i[n];if(e&&e!==this&&e.parent!==this&&e!==a){i[n]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,i=this._children,a=ot(i,e);return a<0?this:(i.splice(a,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,i=0;i<e.length;i++){var a=e[i];n&&a.removeSelfFromZr(n),a.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];e.call(n,o,a)}return this},t.prototype.traverse=function(e,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=e.call(n,a);a.isGroup&&!o&&a.traverse(e,n)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var n=new ct(0,0,0,0),i=e||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(ct.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(i0);a0.prototype.type="group";var It=a0;/*!
  14. * ZRender, a high performance 2d drawing library.
  15. *
  16. * Copyright (c) 2013, Baidu Inc.
  17. * All rights reserved.
  18. *
  19. * LICENSE
  20. * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
  21. */var ma={},o0={};function fb(r){delete o0[r]}function hb(r){if(!r)return!1;if(typeof r=="string")return Ts(r,1)<Rf;if(r.colorStops){for(var t=r.colorStops,e=0,n=t.length,i=0;i<n;i++)e+=Ts(t[i].color,1);return e/=n,e<Rf}return!1}var vb=function(){function r(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 a=new bx,o=n.renderer||"canvas";if(ma[o]||(o=xt(ma)[0]),!ma[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new ma[o](e,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!st.node&&!st.worker&&!l?new Kx(s.getViewportRoot(),s.root):null;this.handler=new mx(a,s,u,s.root),this.animation=new Hx({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(t){!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},r.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=hb(t)},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},r.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},r.prototype.flush=function(){this._flush(!1)},r.prototype._flush=function(t){var e,n=ci();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=ci();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},r.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},r.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},r.prototype.off=function(t,e){this.handler.off(t,e)},r.prototype.trigger=function(t,e){this.handler.trigger(t,e)},r.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof It&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},r.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,fb(this.id)},r}();function Dc(r,t){var e=new vb(Em(),r,t);return o0[e.id]=e,e}function cb(r,t){ma[r]=t}var Ic=1e-4,s0=20;function db(r){return r.replace(/^\s+|\s+$/g,"")}function zt(r,t,e,n){var i=t[0],a=t[1],o=e[0],s=e[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=i)return o;if(r>=a)return s}else{if(r>=i)return o;if(r<=a)return s}else{if(r===i)return o;if(r===a)return s}return(r-i)/l*u+o}function St(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return W(r)?db(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function Rt(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),s0),r=(+r).toFixed(t),e?r:+r}function ya(r){return r.sort(function(t,e){return t-e}),r}function vr(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return Bf(r)}function Bf(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,i=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function l0(r,t){var e=Math.log,n=Math.LN10,i=Math.floor(e(r[1]-r[0])/n),a=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function pb(r,t,e){if(!r[t])return 0;var n=Wr(r,function(d,p){return d+(isNaN(p)?0:p)},0);if(n===0)return 0;for(var i=Math.pow(10,e),a=G(r,function(d){return(isNaN(d)?0:d)/n*i*100}),o=i*100,s=G(a,function(d){return Math.floor(d)}),l=Wr(s,function(d,p){return d+p},0),u=G(a,function(d,p){return d-s[p]});l<o;){for(var f=Number.NEGATIVE_INFINITY,h=null,c=0,v=u.length;c<v;++c)u[c]>f&&(f=u[c],h=c);++s[h],u[h]=0,++l}return s[t]/i}function gb(r,t){var e=Math.max(vr(r),vr(t)),n=r+t;return e>s0?n:Rt(n,e)}function u0(r){var t=Math.PI*2;return(r%t+t)%t}function Ms(r){return r>-Ic&&r<Ic}var mb=/^(?:(\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 yr(r){if(r instanceof Date)return r;if(W(r)){var t=mb.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function yb(r){return Math.pow(10,sl(r))}function sl(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function f0(r,t){var e=sl(r),n=Math.pow(10,e),i=r/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,r=a*n,e>=-20?+r.toFixed(e<0?-e:0):r}function Zr(r){var t=parseFloat(r);return t==r&&(t!==0||!W(r)||r.indexOf("x")<=0)?t:NaN}function h0(r){return!isNaN(Zr(r))}function v0(){return Math.round(Math.random()*9)}function c0(r,t){return t===0?r:c0(t,r%t)}function Lc(r,t){return r==null?t:t==null?r:r*t/c0(r,t)}var _b="[ECharts] ",Pc={},Sb=typeof console!="undefined"&&console.warn&&console.log;function ll(r,t,e){if(Sb){if(e){if(Pc[t])return;Pc[t]=!0}console[r](_b+t)}}function wb(r,t){ll("log",r,t)}function nr(r,t){ll("warn",r,t)}function Xt(r,t){ll("error",r,t)}function Ve(r){ll("warn","DEPRECATED: "+r,!0)}function Ot(r,t,e){Ve((e?"["+e+"]":"")+(r+" is deprecated, use "+t+" instead."))}function le(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var e="";{var n=function(i){return i===void 0?"undefined":i===1/0?"Infinity":i===-1/0?"-Infinity":ka(i)?"NaN":i instanceof Date?"Date("+i.toISOString()+")":$(i)?"function () { ... }":Om(i)?i+"":null};e=G(r,function(i){if(W(i))return i;var a=n(i);if(a!=null)return a;if(typeof JSON!="undefined"&&JSON.stringify)try{return JSON.stringify(i,function(o,s){var l=n(s);return l==null?s:l})}catch{return"?"}else return"?"}).join(" ")}return e}function ut(r){throw new Error(r)}function Rc(r,t,e){return(t-r)*e+r}var d0="series\0",p0="\0_ec_\0";function Dt(r){return r instanceof Array?r:r==null?[]:[r]}function Nf(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,i=e.length;n<i;n++){var a=e[n];!r.emphasis[t].hasOwnProperty(a)&&r[t].hasOwnProperty(a)&&(r.emphasis[t][a]=r[t][a])}}}var Ec=["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 eo(r){return Y(r)&&!z(r)&&!(r instanceof Date)?r.value:r}function xb(r){return Y(r)&&!(r instanceof Array)}function bb(r,t,e){var n=e==="normalMerge",i=e==="replaceMerge",a=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=Q();A(t,function(l,u){if(!Y(l)){t[u]=null;return}l.id!=null&&!kc(l.id)&&Oc(l.id),l.name!=null&&!kc(l.name)&&Oc(l.name)});var s=Tb(r,o,e);return(n||i)&&Cb(s,r,o,t),n&&Ab(s,t),n||i?Mb(s,t,i):a&&Db(s,t),Ib(s),s}function Tb(r,t,e){var n=[];if(e==="replaceAll")return n;for(var i=0;i<r.length;i++){var a=r[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:e==="replaceMerge"||Ci(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function Cb(r,t,e,n){A(n,function(i,a){if(!(!i||i.id==null)){var o=Ta(i.id),s=e.get(o);if(s!=null){var l=r[s];X(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function Ab(r,t){A(t,function(e,n){if(!(!e||e.name==null))for(var i=0;i<r.length;i++){var a=r[i].existing;if(!r[i].newOption&&a&&(a.id==null||e.id==null)&&!Ci(e)&&!Ci(a)&&g0("name",a,e)){r[i].newOption=e,t[n]=null;return}}})}function Mb(r,t,e){A(t,function(n){if(!!n){for(var i,a=0;(i=r[a])&&(i.newOption||Ci(i.existing)||i.existing&&n.id!=null&&!g0("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=e):r.push({newOption:n,brandNew:e,existing:null,keyInfo:null}),a++}})}function Db(r,t){A(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function Ib(r){var t=Q();A(r,function(e){var n=e.existing;n&&t.set(n.id,e)}),A(r,function(e){var n=e.newOption;X(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),A(r,function(e,n){var i=e.existing,a=e.newOption,o=e.keyInfo;if(!!Y(a)){if(o.name=a.name!=null?Ta(a.name):i?i.name:d0+n,i)o.id=Ta(i.id);else if(a.id!=null)o.id=Ta(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function g0(r,t,e){var n=tr(t[r],null),i=tr(e[r],null);return n!=null&&i!=null&&n===i}function Ta(r){if(r==null)throw new Error;return tr(r,"")}function tr(r,t){return r==null?t:W(r)?r:pt(r)||ys(r)?r+"":t}function Oc(r){nr("`"+r+"` is invalid id or name. Must be a string or number.")}function kc(r){return ys(r)||h0(r)}function Uh(r){var t=r.name;return!!(t&&t.indexOf(d0))}function Ci(r){return r&&r.id!=null&&Ta(r.id).indexOf(p0)===0}function Lb(r){return p0+r}function Pb(r,t,e){A(r,function(n){var i=n.newOption;Y(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=Rb(t,i,n.existing,e))})}function Rb(r,t,e,n){var i=t.type?t.type:e?e.subType:n.determineSubType(r,t);return i}function On(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return z(t.dataIndex)?G(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return z(t.name)?G(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function bt(){var r="__ec_inner_"+Eb++;return function(t){return t[r]||(t[r]={})}}var Eb=v0();function Ca(r,t,e){var n=Yh(t,e),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=e?e.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var h=ro(r,f,u,{useDefault:l===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function Yh(r,t){var e;if(W(r)){var n={};n[r+"Index"]=0,e=n}else e=r;var i=Q(),a={},o=!1;return A(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&ot(t.includeMainTypes,f)<0)){o=o||!!f;var c=i.get(f)||i.set(f,{});c[h]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Jt={useDefault:!0,enableAll:!1,enableNone:!1},Ob={useDefault:!1,enableAll:!0,enableNone:!0};function ro(r,t,e,n){n=n||Jt;var i=e.index,a=e.id,o=e.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=r.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(X(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(X(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=r.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function m0(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function kb(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function Bb(r){return r==="auto"?st.domSupported?"html":"richText":r||"html"}function y0(r,t,e,n,i){var a=t==null||t==="auto";if(n==null)return n;if(pt(n)){var o=Rc(e||0,n,i);return Rt(o,a?Math.max(vr(e||0),vr(n)):t)}else{if(W(n))return i<1?e:n;for(var s=[],l=e,u=n,f=Math.max(l?l.length:0,u.length),h=0;h<f;++h){var c=r.getDimensionInfo(h);if(c&&c.type==="ordinal")s[h]=(i<1&&l?l:u)[h];else{var v=l&&l[h]?l[h]:0,d=u[h],o=Rc(v,d,i);s[h]=Rt(o,a?Math.max(vr(v),vr(d)):t)}}return s}}var Nb=".",en="___EC__COMPONENT__CONTAINER___",_0="___EC__EXTENDED_CLASS___";function Je(r){var t={main:"",sub:""};if(r){var e=r.split(Nb);t.main=e[0]||"",t.sub=e[1]||""}return t}function Fb(r){X(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function zb(r){return!!(r&&r[_0])}function Zh(r,t){r.$constructor=r,r.extend=function(e){A(t,function(a){e[a]||console.warn("Method `"+a+"` should be implemented"+(e.type?" in "+e.type:"")+".")});var n=this,i;return Vb(n)?i=function(a){B(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(e.$constructor||n).apply(this,arguments)},Gw(i,this)),N(i.prototype,e),i[_0]=!0,i.extend=this.extend,i.superCall=Wb,i.superApply=Ub,i.superClass=n,i}}function Vb(r){return $(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function S0(r,t){r.extend=t.extend}var Gb=Math.round(Math.random()*10);function Hb(r){var t=["__\0is_clz",Gb++].join("_");r.prototype[t]=!0,X(!r.isInstance,'The method "is" can not be defined.'),r.isInstance=function(e){return!!(e&&e[t])}}function Wb(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return this.superClass.prototype[t].apply(r,e)}function Ub(r,t,e){return this.superClass.prototype[t].apply(r,e)}function ul(r){var t={};r.registerClass=function(n){var i=n.type||n.prototype.type;if(i){Fb(i),n.prototype.type=i;var a=Je(i);if(!a.sub)t[a.main]&&console.warn(a.main+" exists."),t[a.main]=n;else if(a.sub!==en){var o=e(a);o[a.sub]=n}}return n},r.getClass=function(n,i,a){var o=t[n];if(o&&o[en]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},r.getClassesByMainType=function(n){var i=Je(n),a=[],o=t[i.main];return o&&o[en]?A(o,function(s,l){l!==en&&a.push(s)}):a.push(o),a},r.hasClass=function(n){var i=Je(n);return!!t[i.main]},r.getAllClassMainTypes=function(){var n=[];return A(t,function(i,a){n.push(a)}),n},r.hasSubTypes=function(n){var i=Je(n),a=t[i.main];return a&&a[en]};function e(n){var i=t[n.main];return(!i||!i[en])&&(i=t[n.main]={},i[en]=!0),i}}function Fa(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(i&&ot(i,l)>=0||a&&ot(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var Yb=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Zb=Fa(Yb),$b=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return Zb(this,t,e)},r}(),Ff=new ja(50);function Xb(r){if(typeof r=="string"){var t=Ff.get(r);return t&&t.image}else return r}function w0(r,t,e,n,i){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=Ff.get(r),o={hostEl:e,cb:n,cbPayload:i};return a?(t=a.image,!fl(t)&&a.pending.push(o)):(t=zn.loadImage(r,Bc,Bc),t.__zrImageSrc=r,Ff.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Bc(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],n=e.cb;n&&n(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function fl(r){return r&&r.width&&r.height}var au=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function qb(r,t,e,n,i){if(!t)return"";var a=(r+"").split(`
  22. `);i=x0(t,e,n,i);for(var o=0,s=a.length;o<s;o++)a[o]=b0(a[o],i);return a.join(`
  23. `)}function x0(r,t,e,n){n=n||{};var i=N({},n);i.font=t,e=vt(e,"..."),i.maxIterations=vt(n.maxIterations,2);var a=i.minChar=vt(n.minChar,0);i.cnCharWidth=de("\u56FD",t);var o=i.ascCharWidth=de("a",t);i.placeholder=vt(n.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<a&&s>=o;l++)s-=o;var u=de(e,t);return u>s&&(e="",u=0),s=r-u,i.ellipsis=e,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=r,i}function b0(r,t){var e=t.containerWidth,n=t.font,i=t.contentWidth;if(!e)return"";var a=de(r,n);if(a<=e)return r;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){r+=t.ellipsis;break}var s=o===0?Kb(r,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(r.length*i/a):0;r=r.substr(0,s),a=de(r,n)}return r===""&&(r=t.placeholder),r}function Kb(r,t,e,n){for(var i=0,a=0,o=r.length;a<o&&i<t;a++){var s=r.charCodeAt(a);i+=0<=s&&s<=127?e:n}return a}function Qb(r,t){r!=null&&(r+="");var e=t.overflow,n=t.padding,i=t.font,a=e==="truncate",o=Hh(i),s=vt(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",f=t.width,h;f!=null&&(e==="break"||e==="breakAll")?h=r?T0(r,t.font,f,e==="breakAll",0).lines:[]:h=r?r.split(`
  24. `):[];var c=h.length*s,v=vt(t.height,c);if(c>v&&u){var d=Math.floor(v/s);h=h.slice(0,d)}if(r&&a&&f!=null)for(var p=x0(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<h.length;g++)h[g]=b0(h[g],p);for(var m=v,y=0,g=0;g<h.length;g++)y=Math.max(de(h[g],i),y);f==null&&(f=y);var _=y;return n&&(m+=n[0]+n[2],_+=n[1]+n[3],f+=n[1]+n[3]),l&&(_=f),{lines:h,height:v,outerWidth:_,outerHeight:m,lineHeight:s,calculatedLineHeight:o,contentWidth:y,contentHeight:c,width:f}}var Jb=function(){function r(){}return r}(),Nc=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),jb=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return r}();function tT(r,t){var e=new jb;if(r!=null&&(r+=""),!r)return e;for(var n=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=au.lastIndex=0,l;(l=au.exec(r))!=null;){var u=l.index;u>s&&ou(e,r.substring(s,u),t,o),ou(e,l[2],t,o,l[1]),s=au.lastIndex}s<r.length&&ou(e,r.substring(s,r.length),t,o);var f=[],h=0,c=0,v=t.padding,d=a==="truncate",p=t.lineOverflow==="truncate";function g(k,F,U){k.width=F,k.lineHeight=U,h+=U,c=Math.max(c,F)}t:for(var m=0;m<e.lines.length;m++){for(var y=e.lines[m],_=0,S=0,x=0;x<y.tokens.length;x++){var w=y.tokens[x],b=w.styleName&&t.rich[w.styleName]||{},T=w.textPadding=b.padding,C=T?T[1]+T[3]:0,D=w.font=b.font||t.font;w.contentHeight=Hh(D);var M=vt(b.height,w.contentHeight);if(w.innerHeight=M,T&&(M+=T[0]+T[2]),w.height=M,w.lineHeight=Mn(b.lineHeight,t.lineHeight,M),w.align=b&&b.align||t.align,w.verticalAlign=b&&b.verticalAlign||"middle",p&&i!=null&&h+w.lineHeight>i){x>0?(y.tokens=y.tokens.slice(0,x),g(y,S,_),e.lines=e.lines.slice(0,m+1)):e.lines=e.lines.slice(0,m);break t}var I=b.width,L=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")w.percentWidth=I,f.push(w),w.contentWidth=de(w.text,D);else{if(L){var P=b.backgroundColor,E=P&&P.image;E&&(E=Xb(E),fl(E)&&(w.width=Math.max(w.width,E.width*M/E.height)))}var O=d&&n!=null?n-S:null;O!=null&&O<w.width?!L||O<C?(w.text="",w.width=w.contentWidth=0):(w.text=qb(w.text,O-C,D,t.ellipsis,{minChar:t.truncateMinChar}),w.width=w.contentWidth=de(w.text,D)):w.contentWidth=de(w.text,D)}w.width+=C,S+=w.width,b&&(_=Math.max(_,w.lineHeight))}g(y,S,_)}e.outerWidth=e.width=vt(n,c),e.outerHeight=e.height=vt(i,h),e.contentHeight=h,e.contentWidth=c,v&&(e.outerWidth+=v[1]+v[3],e.outerHeight+=v[0]+v[2]);for(var m=0;m<f.length;m++){var w=f[m],H=w.percentWidth;w.width=parseInt(H,10)/100*e.width}return e}function ou(r,t,e,n,i){var a=t==="",o=i&&e.rich[i]||{},s=r.lines,l=o.font||e.font,u=!1,f,h;if(n){var c=o.padding,v=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Yr(o.width,n.width)+v;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(`
  25. `),u=!0),n.accumWidth=d}else{var p=T0(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+v,h=p.linesWidths,f=p.lines}}else f=t.split(`
  26. `);for(var g=0;g<f.length;g++){var m=f[g],y=new Jb;if(y.styleName=i,y.text=m,y.isLineHolder=!m&&!a,typeof o.width=="number"?y.width=o.width:y.width=h?h[g]:de(m,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new Nc)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=y:(m||!S||a)&&_.push(y)}else s.push(new Nc([y]))}}function eT(r){var t=r.charCodeAt(0);return t>=33&&t<=383}var rT=Wr(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function nT(r){return eT(r)?!!rT[r]:!0}function T0(r,t,e,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,h=0;h<r.length;h++){var c=r.charAt(h);if(c===`
  27. `){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=de(c,t),d=n?!1:!nT(c);if(a.length?f+v>e:i+f+v>e){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=c,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=c,f=v)):d?(a.push(l),o.push(u),l=c,u=v):(a.push(c),o.push(v));continue}f+=v,d?(l+=c,u+=v):(l&&(s+=l,l="",u=0),s+=c)}return!a.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var zf="__zr_style_"+Math.round(Math.random()*10),Dn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},hl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Dn[zf]=!0;var Fc=["z","z2","invisible"],iT=["invisible"],aT=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=xt(e),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(e[a]):r.prototype.attrKV.call(this,a,e[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&oT(this,e,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(e,n){return this.rectContain(e,n)},t.prototype.traverse=function(e,n){e.call(n,this)},t.prototype.rectContain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new ct(0,0,0,0)),n?ct.applyTransform(e,i,n):e.copy(i),(o||s||l)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(l),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+l-o));var u=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-u),e.y=Math.floor(e.y-u),e.width=Math.ceil(e.width+1+u*2),e.height=Math.ceil(e.height+1+u*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new ct(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,n){e!=="style"?r.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,n){return typeof e=="string"?this.style[e]=n:N(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=da,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&da)},t.prototype.styleUpdated=function(){this.__dirty&=~da},t.prototype.createStyle=function(e){return nl(Dn,e)},t.prototype.useStyle=function(e){e[zf]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[zf]},t.prototype._innerSaveToNormal=function(e){r.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,Fc)},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=xt(f),c=0;c<h.length;c++){var v=h[c];v in u&&(u[v]=u[v],this.style[v]=f[v])}for(var d=xt(u),c=0;c<d.length;c++){var v=d[c];this.style[v]=this.style[v]}this._transitionState(e,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?iT:Fc,c=0;c<p.length;c++){var v=p[c];n&&n[v]!=null?this[v]=n[v]:l&&i[v]!=null&&(this[v]=i[v])}},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),i,a=0;a<e.length;a++){var o=e[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(e,n){return N(e,n),e},t.prototype.getAnimationStyleProps=function(){return hl},t.initDefaultProps=function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=ce|da}(),t}(i0),su=new ct(0,0,0,0),lu=new ct(0,0,0,0);function oT(r,t,e){return su.copy(r.getBoundingRect()),r.transform&&su.applyTransform(r.transform),lu.width=t,lu.height=e,!su.intersect(lu)}var Bi=aT,ie=Math.min,ae=Math.max,uu=Math.sin,fu=Math.cos,rn=Math.PI*2,bo=ki(),To=ki(),Co=ki();function C0(r,t,e){if(r.length!==0){for(var n=r[0],i=n[0],a=n[0],o=n[1],s=n[1],l=1;l<r.length;l++)n=r[l],i=ie(i,n[0]),a=ae(a,n[0]),o=ie(o,n[1]),s=ae(s,n[1]);t[0]=i,t[1]=o,e[0]=a,e[1]=s}}function zc(r,t,e,n,i,a){i[0]=ie(r,e),i[1]=ie(t,n),a[0]=ae(r,e),a[1]=ae(t,n)}var Vc=[],Gc=[];function sT(r,t,e,n,i,a,o,s,l,u){var f=$m,h=Et,c=f(r,e,i,o,Vc);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<c;v++){var d=h(r,e,i,o,Vc[v]);l[0]=ie(d,l[0]),u[0]=ae(d,u[0])}c=f(t,n,a,s,Gc);for(var v=0;v<c;v++){var p=h(t,n,a,s,Gc[v]);l[1]=ie(p,l[1]),u[1]=ae(p,u[1])}l[0]=ie(r,l[0]),u[0]=ae(r,u[0]),l[0]=ie(o,l[0]),u[0]=ae(o,u[0]),l[1]=ie(t,l[1]),u[1]=ae(t,u[1]),l[1]=ie(s,l[1]),u[1]=ae(s,u[1])}function lT(r,t,e,n,i,a,o,s){var l=qm,u=Yt,f=ae(ie(l(r,e,i),1),0),h=ae(ie(l(t,n,a),1),0),c=u(r,e,i,f),v=u(t,n,a,h);o[0]=ie(r,i,c),o[1]=ie(t,a,v),s[0]=ae(r,i,c),s[1]=ae(t,a,v)}function uT(r,t,e,n,i,a,o,s,l){var u=hi,f=vi,h=Math.abs(i-a);if(h%rn<1e-4&&h>1e-4){s[0]=r-e,s[1]=t-n,l[0]=r+e,l[1]=t+n;return}if(bo[0]=fu(i)*e+r,bo[1]=uu(i)*n+t,To[0]=fu(a)*e+r,To[1]=uu(a)*n+t,u(s,bo,To),f(l,bo,To),i=i%rn,i<0&&(i=i+rn),a=a%rn,a<0&&(a=a+rn),i>a&&!o?a+=rn:i<a&&o&&(i+=rn),o){var c=a;a=i,i=c}for(var v=0;v<a;v+=Math.PI/2)v>i&&(Co[0]=fu(v)*e+r,Co[1]=uu(v)*n+t,u(s,Co,s),f(l,Co,l))}var gt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},nn=[],an=[],Ue=[],Ar=[],Ye=[],Ze=[],hu=Math.min,vu=Math.max,on=Math.cos,sn=Math.sin,lr=Math.abs,Vf=Math.PI,Or=Vf*2,cu=typeof Float32Array!="undefined",Xi=[];function du(r){var t=Math.round(r/Vf*1e8)/1e8;return t%2*Vf}function fT(r,t){var e=du(r[0]);e<0&&(e+=Or);var n=e-r[0],i=r[1];i+=n,!t&&i-e>=Or?i=e+Or:t&&e-i>=Or?i=e-Or:!t&&e>i?i=e+(Or-du(e-i)):t&&e<i&&(i=e-(Or-du(i-e))),r[0]=e,r[1]=i}var hT=function(){function r(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 r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,n){n=n||0,n>0&&(this._ux=lr(n/Cs/t)||0,this._uy=lr(n/Cs/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(gt.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var n=lr(t-this._xi),i=lr(e-this._yi),a=n>this._ux||i>this._uy;if(this.addData(gt.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)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},r.prototype.bezierCurveTo=function(t,e,n,i,a,o){return this._drawPendingPt(),this.addData(gt.C,t,e,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(gt.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(t,e,n,i,a,o){this._drawPendingPt(),Xi[0]=i,Xi[1]=a,fT(Xi,o),i=Xi[0],a=Xi[1];var s=a-i;return this.addData(gt.A,t,e,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,a,o),this._xi=on(a)*n+t,this._yi=sn(a)*n+e,this},r.prototype.arcTo=function(t,e,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,a),this},r.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(gt.R,t,e,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(gt.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&cu&&(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},r.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,a=0;a<e;a++)n+=t[a].len();cu&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<e;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},r.prototype.addData=function(t,e,n,i,a,o,s,l,u){if(!!this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(!!this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,cu&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Ue[0]=Ue[1]=Ye[0]=Ye[1]=Number.MAX_VALUE,Ar[0]=Ar[1]=Ze[0]=Ze[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],n=t[o+1],i=e,a=n),s){case gt.M:e=i=t[o++],n=a=t[o++],Ye[0]=i,Ye[1]=a,Ze[0]=i,Ze[1]=a;break;case gt.L:zc(e,n,t[o],t[o+1],Ye,Ze),e=t[o++],n=t[o++];break;case gt.C:sT(e,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Ye,Ze),e=t[o++],n=t[o++];break;case gt.Q:lT(e,n,t[o++],t[o++],t[o],t[o+1],Ye,Ze),e=t[o++],n=t[o++];break;case gt.A:var u=t[o++],f=t[o++],h=t[o++],c=t[o++],v=t[o++],d=t[o++]+v;o+=1;var p=!t[o++];l&&(i=on(v)*h+u,a=sn(v)*c+f),uT(u,f,h,c,v,d,p,Ye,Ze),e=on(d)*h+u,n=sn(d)*c+f;break;case gt.R:i=e=t[o++],a=n=t[o++];var g=t[o++],m=t[o++];zc(i,a,i+g,a+m,Ye,Ze);break;case gt.Z:e=i,n=a;break}hi(Ue,Ue,Ye),vi(Ar,Ar,Ze)}return o===0&&(Ue[0]=Ue[1]=Ar[0]=Ar[1]=0),new ct(Ue[0],Ue[1],Ar[0]-Ue[0],Ar[1]-Ue[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,h=0,c=0;c<e;){var v=t[c++],d=c===1;d&&(a=t[c],o=t[c+1],s=a,l=o);var p=-1;switch(v){case gt.M:a=s=t[c++],o=l=t[c++];break;case gt.L:{var g=t[c++],m=t[c++],y=g-a,_=m-o;(lr(y)>n||lr(_)>i||c===e-1)&&(p=Math.sqrt(y*y+_*_),a=g,o=m);break}case gt.C:{var S=t[c++],x=t[c++],g=t[c++],m=t[c++],w=t[c++],b=t[c++];p=Tx(a,o,S,x,g,m,w,b,10),a=w,o=b;break}case gt.Q:{var S=t[c++],x=t[c++],g=t[c++],m=t[c++];p=Ax(a,o,S,x,g,m,10),a=g,o=m;break}case gt.A:var T=t[c++],C=t[c++],D=t[c++],M=t[c++],I=t[c++],L=t[c++],P=L+I;c+=1,t[c++],d&&(s=on(I)*D+T,l=sn(I)*M+C),p=vu(D,M)*hu(Or,Math.abs(L)),a=on(P)*D+T,o=sn(P)*M+C;break;case gt.R:{s=a=t[c++],l=o=t[c++];var E=t[c++],O=t[c++];p=E*2+O*2;break}case gt.Z:{var y=s-a,_=l-o;p=Math.sqrt(y*y+_*_),a=s,o=l;break}}p>=0&&(u[h++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,h,c,v=e<1,d,p,g=0,m=0,y,_=0,S,x;if(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,y=e*p,!y))return;t:for(var w=0;w<o;){var b=n[w++],T=w===1;switch(T&&(u=n[w],f=n[w+1],s=u,l=f),b!==gt.L&&_>0&&(t.lineTo(S,x),_=0),b){case gt.M:s=u=n[w++],l=f=n[w++],t.moveTo(u,f);break;case gt.L:{h=n[w++],c=n[w++];var C=lr(h-u),D=lr(c-f);if(C>i||D>a){if(v){var M=d[m++];if(g+M>y){var I=(y-g)/M;t.lineTo(u*(1-I)+h*I,f*(1-I)+c*I);break t}g+=M}t.lineTo(h,c),u=h,f=c,_=0}else{var L=C*C+D*D;L>_&&(S=h,x=c,_=L)}break}case gt.C:{var P=n[w++],E=n[w++],O=n[w++],H=n[w++],k=n[w++],F=n[w++];if(v){var M=d[m++];if(g+M>y){var I=(y-g)/M;Ur(u,P,O,k,I,nn),Ur(f,E,H,F,I,an),t.bezierCurveTo(nn[1],an[1],nn[2],an[2],nn[3],an[3]);break t}g+=M}t.bezierCurveTo(P,E,O,H,k,F),u=k,f=F;break}case gt.Q:{var P=n[w++],E=n[w++],O=n[w++],H=n[w++];if(v){var M=d[m++];if(g+M>y){var I=(y-g)/M;xs(u,P,O,I,nn),xs(f,E,H,I,an),t.quadraticCurveTo(nn[1],an[1],nn[2],an[2]);break t}g+=M}t.quadraticCurveTo(P,E,O,H),u=O,f=H;break}case gt.A:var U=n[w++],q=n[w++],j=n[w++],nt=n[w++],ht=n[w++],At=n[w++],_t=n[w++],Gt=!n[w++],Ht=j>nt?j:nt,Lt=lr(j-nt)>.001,Tt=ht+At,J=!1;if(v){var M=d[m++];g+M>y&&(Tt=ht+At*(y-g)/M,J=!0),g+=M}if(Lt&&t.ellipse?t.ellipse(U,q,j,nt,_t,ht,Tt,Gt):t.arc(U,q,Ht,ht,Tt,Gt),J)break t;T&&(s=on(ht)*j+U,l=sn(ht)*nt+q),u=on(Tt)*j+U,f=sn(Tt)*nt+q;break;case gt.R:s=u=n[w],l=f=n[w+1],h=n[w++],c=n[w++];var at=n[w++],We=n[w++];if(v){var M=d[m++];if(g+M>y){var Bt=y-g;t.moveTo(h,c),t.lineTo(h+hu(Bt,at),c),Bt-=at,Bt>0&&t.lineTo(h+at,c+hu(Bt,We)),Bt-=We,Bt>0&&t.lineTo(h+vu(at-Bt,0),c+We),Bt-=at,Bt>0&&t.lineTo(h,c+vu(We-Bt,0));break t}g+=M}t.rect(h,c,at,We);break;case gt.Z:if(v){var M=d[m++];if(g+M>y){var I=(y-g)/M;t.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break t}g+=M}t.closePath(),u=s,f=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=gt,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}(),_r=hT;function Xn(r,t,e,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=r;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>r+s&&a>e+s||a<r-s&&a<e-s)return!1;if(r!==e)l=(t-n)/(r-e),u=(r*n-e*t)/(r-e);else return Math.abs(a-r)<=s/2;var f=l*a-o+u,h=f*f/(l*l+1);return h<=s/2*s/2}function vT(r,t,e,n,i,a,o,s,l,u,f){if(l===0)return!1;var h=l;if(f>t+h&&f>n+h&&f>a+h&&f>s+h||f<t-h&&f<n-h&&f<a-h&&f<s-h||u>r+h&&u>e+h&&u>i+h&&u>o+h||u<r-h&&u<e-h&&u<i-h&&u<o-h)return!1;var c=Xm(r,t,e,n,i,a,o,s,u,f,null);return c<=h/2}function cT(r,t,e,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>a+u||l<t-u&&l<n-u&&l<a-u||s>r+u&&s>e+u&&s>i+u||s<r-u&&s<e-u&&s<i-u)return!1;var f=Km(r,t,e,n,i,a,s,l,null);return f<=u/2}var Hc=Math.PI*2;function Fr(r){return r%=Hc,r<0&&(r+=Hc),r}var qi=Math.PI*2;function dT(r,t,e,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>e||f+u<e)return!1;if(Math.abs(n-i)%qi<1e-4)return!0;if(a){var h=n;n=Fr(i),i=Fr(h)}else n=Fr(n),i=Fr(i);n>i&&(i+=qi);var c=Math.atan2(l,s);return c<0&&(c+=qi),c>=n&&c<=i||c+qi>=n&&c+qi<=i}function ln(r,t,e,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(e-r)+r;return l===i?1/0:l>i?s:0}var Mr=_r.CMD,un=Math.PI*2,pT=1e-4;function gT(r,t){return Math.abs(r-t)<pT}var Kt=[-1,-1,-1],be=[-1,-1];function mT(){var r=be[0];be[0]=be[1],be[1]=r}function yT(r,t,e,n,i,a,o,s,l,u){if(u>t&&u>n&&u>a&&u>s||u<t&&u<n&&u<a&&u<s)return 0;var f=ws(t,n,a,s,u,Kt);if(f===0)return 0;for(var h=0,c=-1,v=void 0,d=void 0,p=0;p<f;p++){var g=Kt[p],m=g===0||g===1?.5:1,y=Et(r,e,i,o,g);y<l||(c<0&&(c=$m(t,n,a,s,be),be[1]<be[0]&&c>1&&mT(),v=Et(t,n,a,s,be[0]),c>1&&(d=Et(t,n,a,s,be[1]))),c===2?g<be[0]?h+=v<t?m:-m:g<be[1]?h+=d<v?m:-m:h+=s<d?m:-m:g<be[0]?h+=v<t?m:-m:h+=s<v?m:-m)}return h}function _T(r,t,e,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var l=Cx(t,n,a,s,Kt);if(l===0)return 0;var u=qm(t,n,a);if(u>=0&&u<=1){for(var f=0,h=Yt(t,n,a,u),c=0;c<l;c++){var v=Kt[c]===0||Kt[c]===1?.5:1,d=Yt(r,e,i,Kt[c]);d<o||(Kt[c]<u?f+=h<t?v:-v:f+=a<h?v:-v)}return f}else{var v=Kt[0]===0||Kt[0]===1?.5:1,d=Yt(r,e,i,Kt[0]);return d<o?0:a<t?v:-v}}function ST(r,t,e,n,i,a,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);Kt[0]=-l,Kt[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=un-1e-4){n=0,i=un;var f=a?1:-1;return o>=Kt[0]+r&&o<=Kt[1]+r?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=un,i+=un);for(var c=0,v=0;v<2;v++){var d=Kt[v];if(d+r>o){var p=Math.atan2(s,d),f=a?1:-1;p<0&&(p=un+p),(p>=n&&p<=i||p+un>=n&&p+un<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),c+=f)}}return c}function A0(r,t,e,n,i){for(var a=r.data,o=r.len(),s=0,l=0,u=0,f=0,h=0,c,v,d=0;d<o;){var p=a[d++],g=d===1;switch(p===Mr.M&&d>1&&(e||(s+=ln(l,u,f,h,n,i))),g&&(l=a[d],u=a[d+1],f=l,h=u),p){case Mr.M:f=a[d++],h=a[d++],l=f,u=h;break;case Mr.L:if(e){if(Xn(l,u,a[d],a[d+1],t,n,i))return!0}else s+=ln(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Mr.C:if(e){if(vT(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=yT(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Mr.Q:if(e){if(cT(l,u,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=_T(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Mr.A:var m=a[d++],y=a[d++],_=a[d++],S=a[d++],x=a[d++],w=a[d++];d+=1;var b=!!(1-a[d++]);c=Math.cos(x)*_+m,v=Math.sin(x)*S+y,g?(f=c,h=v):s+=ln(l,u,c,v,n,i);var T=(n-m)*S/_+m;if(e){if(dT(m,y,S,x,x+w,b,t,T,i))return!0}else s+=ST(m,y,S,x,x+w,b,T,i);l=Math.cos(x+w)*_+m,u=Math.sin(x+w)*S+y;break;case Mr.R:f=l=a[d++],h=u=a[d++];var C=a[d++],D=a[d++];if(c=f+C,v=h+D,e){if(Xn(f,h,c,h,t,n,i)||Xn(c,h,c,v,t,n,i)||Xn(c,v,f,v,t,n,i)||Xn(f,v,f,h,t,n,i))return!0}else s+=ln(c,h,c,v,n,i),s+=ln(f,v,f,h,n,i);break;case Mr.Z:if(e){if(Xn(l,u,f,h,t,n,i))return!0}else s+=ln(l,u,f,h,n,i);l=f,u=h;break}}return!e&&!gT(u,h)&&(s+=ln(l,u,f,h,n,i)||0),s!==0}function wT(r,t,e){return A0(r,0,!1,t,e)}function xT(r,t,e,n){return A0(r,t,!0,e,n)}var M0=tt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Dn),bT={style:tt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},hl.style)},pu=Na.concat(["invisible","culling","z","z2","zlevel","parent"]),TT=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){e.buildPath(l,e.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<pu.length;++s)i[pu[s]]=this[pu[s]];i.__dirty|=ce}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var n=xt(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=e[o];o==="style"?this.style?N(this.style,s):this.useStyle(s):o==="shape"?N(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!=="none"){if(W(e)){var n=Ts(e,0);return n>.5?Ef:n>.2?Qx:Of}else if(e)return Of}return Ef},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(W(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Ts(e,0)<Rf;if(a===o)return n}},t.prototype.buildPath=function(e,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~li},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new _r(!1)},t.prototype.hasStroke=function(){var e=this.style,n=e.stroke;return!(n==null||n==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,i=!e;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&li)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||i){s.copy(e);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f==null?4:f)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect(),o=this.style;if(e=i[0],n=i[1],a.contain(e,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),xT(s,l/u,e,n)))return!0}if(this.hasFill())return wT(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=li,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var i=this.shape;return i||(i=this.shape={}),typeof e=="string"?i[e]=n:N(i,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&li)},t.prototype.createStyle=function(e){return nl(M0,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=N({},this.shape))},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=N({},i.shape),N(u,n.shape)):(u=N({},a?this.shape:i.shape),N(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=N({},this.shape);for(var f={},h=xt(u),c=0;c<h.length;c++){var v=h[c];typeof u[v]=="object"?this.shape[v]=u[v]:f[v]=u[v]}this._transitionState(e,{shape:f},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),i,a=0;a<e.length;a++){var o=e[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return bT},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(a){B(o,a);function o(s){var l=a.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return rt(e.style)},o.prototype.getDefaultShape=function(){return rt(e.shape)},o}(t);for(var i in e)typeof e[i]=="function"&&(n.prototype[i]=e[i]);return n},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=ce|da|li}(),t}(Bi),lt=TT,CT=tt({strokeFirst:!0,font:Rn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},M0),D0=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,n=e.stroke;return n!=null&&n!=="none"&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return nl(CT,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var n=e.text;n!=null?n+="":n="";var i=ol(n,e.font,e.textAlign,e.textBaseline);if(i.x+=e.x||0,i.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Bi);D0.prototype.type="tspan";var Gf=D0,AT=tt({x:0,y:0},Dn),MT={style:tt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},hl.style)};function DT(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var I0=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return nl(AT,e)},t.prototype._getSize=function(e){var n=this.style,i=n[e];if(i!=null)return i;var a=DT(n.image)?n.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=n[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return MT},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new ct(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Bi);I0.prototype.type="image";var Vn=I0;function IT(r,t){var e=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,f;i<0&&(e=e+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>i&&(h=s+l,s*=i/h,l*=i/h),u+f>i&&(h=u+f,u*=i/h,f*=i/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(e+s,n),r.lineTo(e+i-l,n),l!==0&&r.arc(e+i-l,n+l,l,-Math.PI/2,0),r.lineTo(e+i,n+a-u),u!==0&&r.arc(e+i-u,n+a-u,u,0,Math.PI/2),r.lineTo(e+f,n+a),f!==0&&r.arc(e+f,n+a-f,f,Math.PI/2,Math.PI),r.lineTo(e,n+s),s!==0&&r.arc(e+s,n+s,s,Math.PI,Math.PI*1.5)}var di=Math.round;function L0(r,t,e){if(!!t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;r.x1=n,r.x2=i,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(di(n*2)===di(i*2)&&(r.x1=r.x2=bn(n,s,!0)),di(a*2)===di(o*2)&&(r.y1=r.y2=bn(a,s,!0))),r}}function P0(r,t,e){if(!!t){var n=t.x,i=t.y,a=t.width,o=t.height;r.x=n,r.y=i,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=bn(n,s,!0),r.y=bn(i,s,!0),r.width=Math.max(bn(n+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(bn(i+o,s,!1)-r.y,o===0?0:1)),r}}function bn(r,t,e){if(!t)return r;var n=di(r*2);return(n+di(t))%2===0?n/2:(n+(e?1:-1))/2}var LT=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),PT={},R0=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new LT},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var l=P0(PT,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?IT(e,n):e.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(lt);R0.prototype.type="rect";var wt=R0,Wc={fill:"#000"},Uc=2,RT={style:tt({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},hl.style)},E0=function(r){B(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Wc,n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.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}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,NT(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new ct(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(e.copy(l),e.applyTransform(u),a=a||e.clone(),a.union(e)):(a=a||l.clone(),a.union(l))}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Wc},t.prototype.setTextContent=function(e){throw new Error("Can't attach text on another text")},t.prototype._mergeStyle=function(e,n){if(!n)return e;var i=n.rich,a=e.rich||i&&{};return N(e,n),i&&a?(this._mergeRich(a,i),e.rich=a):a&&(e.rich=a),e},t.prototype._mergeRich=function(e,n){for(var i=xt(n),a=0;a<i.length;a++){var o=i[a];e[o]=e[o]||{},N(e[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return RT},t.prototype._getOrCreateChild=function(e){var n=this._children[this._childCursor];return(!n||!(n instanceof e))&&(n=new e),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var e=this.style,n=e.font||Rn,i=e.padding,a=Qc(e),o=Qb(a,e),s=gu(e),l=!!e.backgroundColor,u=o.outerHeight,f=o.outerWidth,h=o.contentWidth,c=o.lines,v=o.lineHeight,d=this._defaultStyle,p=e.x||0,g=e.y||0,m=e.align||d.align||"left",y=e.verticalAlign||d.verticalAlign||"top",_=p,S=ui(g,o.contentHeight,y);if(s||i){var x=ga(p,f,m),w=ui(g,u,y);s&&this._renderBackground(e,e,x,w,f,u)}S+=v/2,i&&(_=Kc(p,m,i),y==="top"?S+=i[0]:y==="bottom"&&(S-=i[2]));for(var b=0,T=!1,C=qc("fill"in e?e.fill:(T=!0,d.fill)),D=Xc("stroke"in e?e.stroke:!l&&(!d.autoStroke||T)?(b=Uc,d.stroke):null),M=e.textShadowBlur>0,I=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),L=o.calculatedLineHeight,P=0;P<c.length;P++){var E=this._getOrCreateChild(Gf),O=E.createStyle();E.useStyle(O),O.text=c[P],O.x=_,O.y=S,m&&(O.textAlign=m),O.textBaseline="middle",O.opacity=e.opacity,O.strokeFirst=!0,M&&(O.shadowBlur=e.textShadowBlur||0,O.shadowColor=e.textShadowColor||"transparent",O.shadowOffsetX=e.textShadowOffsetX||0,O.shadowOffsetY=e.textShadowOffsetY||0),O.stroke=D,O.fill=C,D&&(O.lineWidth=e.lineWidth||b,O.lineDash=e.lineDash,O.lineDashOffset=e.lineDashOffset||0),O.font=n,Zc(O,e),S+=v,I&&E.setBoundingRect(new ct(ga(O.x,e.width,O.textAlign),ui(O.y,L,O.textBaseline),h,L))}},t.prototype._updateRichTexts=function(){var e=this.style,n=Qc(e),i=tT(n,e),a=i.width,o=i.outerWidth,s=i.outerHeight,l=e.padding,u=e.x||0,f=e.y||0,h=this._defaultStyle,c=e.align||h.align,v=e.verticalAlign||h.verticalAlign,d=ga(u,o,c),p=ui(f,s,v),g=d,m=p;l&&(g+=l[3],m+=l[0]);var y=g+a;gu(e)&&this._renderBackground(e,e,d,p,o,s);for(var _=!!e.backgroundColor,S=0;S<i.lines.length;S++){for(var x=i.lines[S],w=x.tokens,b=w.length,T=x.lineHeight,C=x.width,D=0,M=g,I=y,L=b-1,P=void 0;D<b&&(P=w[D],!P.align||P.align==="left");)this._placeToken(P,e,T,m,M,"left",_),C-=P.width,M+=P.width,D++;for(;L>=0&&(P=w[L],P.align==="right");)this._placeToken(P,e,T,m,I,"right",_),C-=P.width,I-=P.width,L--;for(M+=(a-(M-g)-(y-I)-C)/2;D<=L;)P=w[D],this._placeToken(P,e,T,m,M+P.width/2,"center",_),M+=P.width,D++;m+=T}},t.prototype._placeToken=function(e,n,i,a,o,s,l){var u=n.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,h=a+i/2;f==="top"?h=a+e.height/2:f==="bottom"&&(h=a+i-e.height/2);var c=!e.isLineHolder&&gu(u);c&&this._renderBackground(u,n,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var v=!!u.backgroundColor,d=e.textPadding;d&&(o=Kc(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(Gf),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,_=0,S=qc("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),x=Xc("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!m.autoStroke||y)?(_=Uc,m.stroke):null),w=u.textShadowBlur>0||n.textShadowBlur>0;g.text=e.text,g.x=o,g.y=h,w&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||Rn,g.opacity=Mn(u.opacity,n.opacity,1),Zc(g,u),x&&(g.lineWidth=Mn(u.lineWidth,n.lineWidth,_),g.lineDash=vt(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=x),S&&(g.fill=S);var b=e.contentWidth,T=e.contentHeight;p.setBoundingRect(new ct(ga(g.x,b,g.textAlign),ui(g.y,T,g.textBaseline),b,T))},t.prototype._renderBackground=function(e,n,i,a,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,h=l&&l.image,c=l&&!h,v=e.borderRadius,d=this,p,g;if(c||e.lineHeight||u&&f){p=this._getOrCreateChild(wt),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=v,p.dirtyShape()}if(c){var y=p.style;y.fill=l||null,y.fillOpacity=vt(e.fillOpacity,1)}else if(h){g=this._getOrCreateChild(Vn),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var y=p.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=vt(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=Mn(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return BT(e)&&(n=[e.fontStyle,e.fontWeight,kT(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&Qe(n)||e.textFont||e.font},t}(Bi),ET={left:!0,right:1,center:1},OT={top:1,bottom:1,middle:1},Yc=["fontStyle","fontWeight","fontSize","fontFamily"];function kT(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Oh+"px":r+"px"}function Zc(r,t){for(var e=0;e<Yc.length;e++){var n=Yc[e],i=t[n];i!=null&&(r[n]=i)}}function BT(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function NT(r){return $c(r),A(r.rich,$c),r}function $c(r){if(r){r.font=E0.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||ET[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||OT[e]?e:"top";var n=r.padding;n&&(r.padding=km(r.padding))}}function Xc(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function qc(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function Kc(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function Qc(r){var t=r.text;return t!=null&&(t+=""),t}function gu(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var kt=E0,dt=bt(),FT=function(r,t,e,n){if(n){var i=dt(n);i.dataIndex=e,i.dataType=t,i.seriesIndex=r,n.type==="group"&&n.traverse(function(a){var o=dt(a);o.seriesIndex=r,o.dataIndex=e,o.dataType=t})}},Jc=1,jc={},O0=bt(),$h=bt(),Xh=0,vl=1,cl=2,De=["emphasis","blur","select"],Ds=["normal","emphasis","blur","select"],zT=10,VT=9,In="highlight",us="downplay",Aa="select",fs="unselect",Ma="toggleSelect";function qn(r){return r!=null&&r!=="none"}var td=new ja(100);function ed(r){if(W(r)){var t=td.get(r);return t||(t=mc(r,-.1),td.put(r,t)),t}else if(rl(r)){var e=N({},r);return e.colorStops=G(r.colorStops,function(n){return{offset:n.offset,color:mc(n.color,-.1)}}),e}return r}function dl(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function k0(r){dl(r,"emphasis",cl)}function B0(r){r.hoverState===cl&&dl(r,"normal",Xh)}function qh(r){dl(r,"blur",vl)}function N0(r){r.hoverState===vl&&dl(r,"normal",Xh)}function GT(r){r.selected=!0}function HT(r){r.selected=!1}function rd(r,t,e){t(r,e)}function br(r,t,e){rd(r,t,e),r.isGroup&&r.traverse(function(n){rd(n,t,e)})}function nd(r,t){switch(t){case"emphasis":r.hoverState=cl;break;case"normal":r.hoverState=Xh;break;case"blur":r.hoverState=vl;break;case"select":r.selected=!0}}function WT(r,t,e,n){for(var i=r.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=l==null?n&&n[s]:l}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function UT(r,t,e,n){var i=e&&ot(e,"select")>=0,a=!1;if(r instanceof lt){var o=O0(r),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(qn(s)||qn(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=N({},n),u=N({},u),u.fill=s):!qn(u.fill)&&qn(s)?(a=!0,n=N({},n),u=N({},u),u.fill=ed(s)):!qn(u.stroke)&&qn(l)&&(a||(n=N({},n),u=N({},u)),u.stroke=ed(l)),n.style=u}}if(n&&n.z2==null){a||(n=N({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f!=null?f:zT)}return n}function YT(r,t,e){if(e&&e.z2==null){e=N({},e);var n=r.z2SelectLift;e.z2=r.z2+(n!=null?n:VT)}return e}function ZT(r,t,e){var n=ot(r.currentStates,t)>=0,i=r.style.opacity,a=n?null:WT(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=N({},e),o=N({opacity:n?i:a.opacity*.1},o),e.style=o),e}function mu(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return UT(this,r,t,e);if(r==="blur")return ZT(this,r,e);if(r==="select")return YT(this,r,e)}return e}function $T(r){r.stateProxy=mu;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=mu),e&&(e.stateProxy=mu)}function id(r,t){!G0(r,t)&&!r.__highByOuter&&br(r,k0)}function ad(r,t){!G0(r,t)&&!r.__highByOuter&&br(r,B0)}function Ai(r,t){r.__highByOuter|=1<<(t||0),br(r,k0)}function Mi(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&br(r,B0)}function XT(r){br(r,qh)}function F0(r){br(r,N0)}function z0(r){br(r,GT)}function V0(r){br(r,HT)}function G0(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function H0(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(i,a){var o=$h(a),s=i==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){N0(u)}),s&&e.push(a)),o.isBlured=!1}),A(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(e,!1,t)})}function Hf(r,t,e,n){var i=n.getModel();e=e||"coordinateSystem";function a(u,f){for(var h=0;h<f.length;h++){var c=u.getItemGraphicEl(f[h]);c&&F0(c)}}if(r!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var c=h&&s?h===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!c||t==="series"&&f)){var v=n.getViewOfSeriesModel(u);if(v.group.traverse(function(g){qh(g)}),te(t))a(u.getData(),t);else if(Y(t))for(var d=xt(t),p=0;p<d.length;p++)a(u.getData(d[p]),t[d[p]]);l.push(u),$h(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var h=n.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,i)}})}}function Wf(r,t,e){if(!(r==null||t==null)){var n=e.getModel().getComponent(r,t);if(!!n){$h(n).isBlured=!0;var i=e.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){qh(a)})}}}function qT(r,t,e){var n=r.seriesIndex,i=r.getData(t.dataType);if(!i){Xt("Unknown dataType "+t.dataType);return}var a=On(i,t);a=(z(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=dt(o);Hf(n,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&Hf(n,f,h,e)}}function Kh(r,t,e,n){var i={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return i;var a=n.getModel().getComponent(r,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(Di(s[u])||Xt("param should be highDownDispatcher"),dt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function KT(r,t,e){Di(r)||Xt("param should be highDownDispatcher");var n=dt(r),i=Kh(n.componentMainType,n.componentIndex,n.componentHighDownName,e),a=i.dispatchers,o=i.focusSelf;a?(o&&Wf(n.componentMainType,n.componentIndex,e),A(a,function(s){return id(s,t)})):(Hf(n.seriesIndex,n.focus,n.blurScope,e),n.focus==="self"&&Wf(n.componentMainType,n.componentIndex,e),id(r,t))}function QT(r,t,e){Di(r)||Xt("param should be highDownDispatcher"),H0(e);var n=dt(r),i=Kh(n.componentMainType,n.componentIndex,n.componentHighDownName,e).dispatchers;i?A(i,function(a){return ad(a,t)}):ad(r,t)}function JT(r,t,e){if(!!Uf(t)){var n=t.dataType,i=r.getData(n),a=On(i,t);z(a)||(a=[a]),r[t.type===Ma?"toggleSelect":t.type===Aa?"select":"unselect"](a,n)}}function od(r){var t=r.getAllData();A(t,function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(a,o){r.isSelected(o,i)?z0(a):V0(a)})})}function jT(r){var t=[];return r.eachSeries(function(e){var n=e.getAllData();A(n,function(i){i.data;var a=i.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function Is(r,t,e){W0(r,!0),br(r,$T),eC(r,t,e)}function tC(r){W0(r,!1)}function za(r,t,e,n){n?tC(r):Is(r,t,e)}function eC(r,t,e){var n=dt(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var sd=["emphasis","blur","select"],rC={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ls(r,t,e,n){e=e||"itemStyle";for(var i=0;i<sd.length;i++){var a=sd[i],o=t.getModel([a,e]),s=r.ensureState(a);s.style=n?n(o):o[rC[e]]()}}function W0(r,t){var e=t===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!e)}function Di(r){return!!(r&&r.__highDownDispatcher)}function nC(r){var t=jc[r];return t==null&&Jc<=32&&(t=jc[r]=Jc++),t}function Uf(r){var t=r.type;return t===Aa||t===fs||t===Ma}function ld(r){var t=r.type;return t===In||t===us}function iC(r){var t=O0(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var Kn=_r.CMD,aC=[[],[],[]],ud=Math.sqrt,oC=Math.atan2;function U0(r,t){if(!!t){var e=r.data,n=r.len(),i,a,o,s,l,u,f=Kn.M,h=Kn.C,c=Kn.L,v=Kn.R,d=Kn.A,p=Kn.Q;for(o=0,s=0;o<n;){switch(i=e[o++],s=o,a=0,i){case f:a=1;break;case c:a=1;break;case h:a=3;break;case p:a=2;break;case d:var g=t[4],m=t[5],y=ud(t[0]*t[0]+t[1]*t[1]),_=ud(t[2]*t[2]+t[3]*t[3]),S=oC(-t[1]/_,t[0]/y);e[o]*=y,e[o++]+=g,e[o]*=_,e[o++]+=m,e[o++]*=y,e[o++]*=_,e[o++]+=S,e[o++]+=S,o+=2,s=o;break;case v:u[0]=e[o++],u[1]=e[o++],Me(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],Me(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<a;l++){var x=aC[l];x[0]=e[o++],x[1]=e[o++],Me(x,x,t),e[s++]=x[0],e[s++]=x[1]}}r.increaseVersion()}}var yu=Math.sqrt,Ao=Math.sin,Mo=Math.cos,Ki=Math.PI;function fd(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Yf(r,t){return(r[0]*t[0]+r[1]*t[1])/(fd(r)*fd(t))}function hd(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(Yf(r,t))}function vd(r,t,e,n,i,a,o,s,l,u,f){var h=l*(Ki/180),c=Mo(h)*(r-e)/2+Ao(h)*(t-n)/2,v=-1*Ao(h)*(r-e)/2+Mo(h)*(t-n)/2,d=c*c/(o*o)+v*v/(s*s);d>1&&(o*=yu(d),s*=yu(d));var p=(i===a?-1:1)*yu((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,g=p*o*v/s,m=p*-s*c/o,y=(r+e)/2+Mo(h)*g-Ao(h)*m,_=(t+n)/2+Ao(h)*g+Mo(h)*m,S=hd([1,0],[(c-g)/o,(v-m)/s]),x=[(c-g)/o,(v-m)/s],w=[(-1*c-g)/o,(-1*v-m)/s],b=hd(x,w);if(Yf(x,w)<=-1&&(b=Ki),Yf(x,w)>=1&&(b=0),b<0){var T=Math.round(b/Ki*1e6)/1e6;b=Ki*2+T%2*Ki}f.addData(u,y,_,o,s,S,b,h,a)}var sC=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,lC=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function uC(r){var t=new _r;if(!r)return t;var e=0,n=0,i=e,a=n,o,s=_r.CMD,l=r.match(sC);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],h=f.charAt(0),c=void 0,v=f.match(lC)||[],d=v.length,p=0;p<d;p++)v[p]=parseFloat(v[p]);for(var g=0;g<d;){var m=void 0,y=void 0,_=void 0,S=void 0,x=void 0,w=void 0,b=void 0,T=e,C=n,D=void 0,M=void 0;switch(h){case"l":e+=v[g++],n+=v[g++],c=s.L,t.addData(c,e,n);break;case"L":e=v[g++],n=v[g++],c=s.L,t.addData(c,e,n);break;case"m":e+=v[g++],n+=v[g++],c=s.M,t.addData(c,e,n),i=e,a=n,h="l";break;case"M":e=v[g++],n=v[g++],c=s.M,t.addData(c,e,n),i=e,a=n,h="L";break;case"h":e+=v[g++],c=s.L,t.addData(c,e,n);break;case"H":e=v[g++],c=s.L,t.addData(c,e,n);break;case"v":n+=v[g++],c=s.L,t.addData(c,e,n);break;case"V":n=v[g++],c=s.L,t.addData(c,e,n);break;case"C":c=s.C,t.addData(c,v[g++],v[g++],v[g++],v[g++],v[g++],v[g++]),e=v[g-2],n=v[g-1];break;case"c":c=s.C,t.addData(c,v[g++]+e,v[g++]+n,v[g++]+e,v[g++]+n,v[g++]+e,v[g++]+n),e+=v[g-2],n+=v[g-1];break;case"S":m=e,y=n,D=t.len(),M=t.data,o===s.C&&(m+=e-M[D-4],y+=n-M[D-3]),c=s.C,T=v[g++],C=v[g++],e=v[g++],n=v[g++],t.addData(c,m,y,T,C,e,n);break;case"s":m=e,y=n,D=t.len(),M=t.data,o===s.C&&(m+=e-M[D-4],y+=n-M[D-3]),c=s.C,T=e+v[g++],C=n+v[g++],e+=v[g++],n+=v[g++],t.addData(c,m,y,T,C,e,n);break;case"Q":T=v[g++],C=v[g++],e=v[g++],n=v[g++],c=s.Q,t.addData(c,T,C,e,n);break;case"q":T=v[g++]+e,C=v[g++]+n,e+=v[g++],n+=v[g++],c=s.Q,t.addData(c,T,C,e,n);break;case"T":m=e,y=n,D=t.len(),M=t.data,o===s.Q&&(m+=e-M[D-4],y+=n-M[D-3]),e=v[g++],n=v[g++],c=s.Q,t.addData(c,m,y,e,n);break;case"t":m=e,y=n,D=t.len(),M=t.data,o===s.Q&&(m+=e-M[D-4],y+=n-M[D-3]),e+=v[g++],n+=v[g++],c=s.Q,t.addData(c,m,y,e,n);break;case"A":_=v[g++],S=v[g++],x=v[g++],w=v[g++],b=v[g++],T=e,C=n,e=v[g++],n=v[g++],c=s.A,vd(T,C,e,n,w,b,_,S,x,c,t);break;case"a":_=v[g++],S=v[g++],x=v[g++],w=v[g++],b=v[g++],T=e,C=n,e+=v[g++],n+=v[g++],c=s.A,vd(T,C,e,n,w,b,_,S,x,c,t);break}}(h==="z"||h==="Z")&&(c=s.Z,t.addData(c),e=i,n=a),o=c}return t.toStatic(),t}var Y0=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(lt);function Z0(r){return r.setData!=null}function $0(r,t){var e=uC(r),n=N({},t);return n.buildPath=function(i){if(Z0(i)){i.setData(e.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;e.rebuildPath(a,1)}},n.applyTransform=function(i){U0(e,i),this.dirtyShape()},n}function fC(r,t){return new Y0($0(r,t))}function hC(r,t){var e=$0(r,t),n=function(i){B(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return a}(Y0);return n}function vC(r,t){for(var e=[],n=r.length,i=0;i<n;i++){var a=r[i];e.push(a.getUpdatedPathProxy(!0))}var o=new lt(t);return o.createPathProxy(),o.buildPath=function(s){if(Z0(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function Qh(r,t){t=t||{};var e=new lt;return r.shape&&e.setShape(r.shape),e.setStyle(r.style),t.bakeTransform?U0(e.path,r.getComputedTransform()):t.toLocal?e.setLocalTransform(r.getComputedTransform()):e.copyTransform(r),e.buildPath=r.buildPath,e.applyTransform=e.applyTransform,e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e}var cC=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),X0=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new cC},t.prototype.buildPath=function(e,n){e.moveTo(n.cx+n.r,n.cy),e.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(lt);X0.prototype.type="circle";var Jh=X0,dC=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),q0=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new dC},t.prototype.buildPath=function(e,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;e.moveTo(a-s,o),e.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),e.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),e.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),e.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),e.closePath()},t}(lt);q0.prototype.type="ellipse";var K0=q0,Q0=Math.PI,_u=Q0*2,fn=Math.sin,Qn=Math.cos,pC=Math.acos,Wt=Math.atan2,cd=Math.abs,Da=Math.sqrt,_a=Math.max,$e=Math.min,Oe=1e-4;function gC(r,t,e,n,i,a,o,s){var l=e-r,u=n-t,f=o-i,h=s-a,c=h*l-f*u;if(!(c*c<Oe))return c=(f*(t-a)-h*(r-i))/c,[r+c*l,t+c*u]}function Do(r,t,e,n,i,a,o){var s=r-e,l=t-n,u=(o?a:-a)/Da(s*s+l*l),f=u*l,h=-u*s,c=r+f,v=t+h,d=e+f,p=n+h,g=(c+d)/2,m=(v+p)/2,y=d-c,_=p-v,S=y*y+_*_,x=i-a,w=c*p-d*v,b=(_<0?-1:1)*Da(_a(0,x*x*S-w*w)),T=(w*_-y*b)/S,C=(-w*y-_*b)/S,D=(w*_+y*b)/S,M=(-w*y+_*b)/S,I=T-g,L=C-m,P=D-g,E=M-m;return I*I+L*L>P*P+E*E&&(T=D,C=M),{cx:T,cy:C,x0:-f,y0:-h,x1:T*(i/x-1),y1:C*(i/x-1)}}function mC(r){var t;if(z(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function yC(r,t){var e,n=_a(t.r,0),i=_a(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=cd(u-l),d=v>_u&&v%_u;if(d>Oe&&(v=d),!(n>Oe))r.moveTo(f,h);else if(v>_u-Oe)r.moveTo(f+n*Qn(l),h+n*fn(l)),r.arc(f,h,n,l,u,!c),i>Oe&&(r.moveTo(f+i*Qn(u),h+i*fn(u)),r.arc(f,h,i,u,l,c));else{var p=void 0,g=void 0,m=void 0,y=void 0,_=void 0,S=void 0,x=void 0,w=void 0,b=void 0,T=void 0,C=void 0,D=void 0,M=void 0,I=void 0,L=void 0,P=void 0,E=n*Qn(l),O=n*fn(l),H=i*Qn(u),k=i*fn(u),F=v>Oe;if(F){var U=t.cornerRadius;U&&(e=mC(U),p=e[0],g=e[1],m=e[2],y=e[3]);var q=cd(n-i)/2;if(_=$e(q,m),S=$e(q,y),x=$e(q,p),w=$e(q,g),C=b=_a(_,S),D=T=_a(x,w),(b>Oe||T>Oe)&&(M=n*Qn(u),I=n*fn(u),L=i*Qn(l),P=i*fn(l),v<Q0)){var j=gC(E,O,L,P,M,I,H,k);if(j){var nt=E-j[0],ht=O-j[1],At=M-j[0],_t=I-j[1],Gt=1/fn(pC((nt*At+ht*_t)/(Da(nt*nt+ht*ht)*Da(At*At+_t*_t)))/2),Ht=Da(j[0]*j[0]+j[1]*j[1]);C=$e(b,(n-Ht)/(Gt+1)),D=$e(T,(i-Ht)/(Gt-1))}}}if(!F)r.moveTo(f+E,h+O);else if(C>Oe){var Lt=$e(m,C),Tt=$e(y,C),J=Do(L,P,E,O,n,Lt,c),at=Do(M,I,H,k,n,Tt,c);r.moveTo(f+J.cx+J.x0,h+J.cy+J.y0),C<b&&Lt===Tt?r.arc(f+J.cx,h+J.cy,C,Wt(J.y0,J.x0),Wt(at.y0,at.x0),!c):(Lt>0&&r.arc(f+J.cx,h+J.cy,Lt,Wt(J.y0,J.x0),Wt(J.y1,J.x1),!c),r.arc(f,h,n,Wt(J.cy+J.y1,J.cx+J.x1),Wt(at.cy+at.y1,at.cx+at.x1),!c),Tt>0&&r.arc(f+at.cx,h+at.cy,Tt,Wt(at.y1,at.x1),Wt(at.y0,at.x0),!c))}else r.moveTo(f+E,h+O),r.arc(f,h,n,l,u,!c);if(!(i>Oe)||!F)r.lineTo(f+H,h+k);else if(D>Oe){var Lt=$e(p,D),Tt=$e(g,D),J=Do(H,k,M,I,i,-Tt,c),at=Do(E,O,L,P,i,-Lt,c);r.lineTo(f+J.cx+J.x0,h+J.cy+J.y0),D<T&&Lt===Tt?r.arc(f+J.cx,h+J.cy,D,Wt(J.y0,J.x0),Wt(at.y0,at.x0),!c):(Tt>0&&r.arc(f+J.cx,h+J.cy,Tt,Wt(J.y0,J.x0),Wt(J.y1,J.x1),!c),r.arc(f,h,i,Wt(J.cy+J.y1,J.cx+J.x1),Wt(at.cy+at.y1,at.cx+at.x1),c),Lt>0&&r.arc(f+at.cx,h+at.cy,Lt,Wt(at.y1,at.x1),Wt(at.y0,at.x0),!c))}else r.lineTo(f+H,h+k),r.arc(f,h,i,u,l,c)}r.closePath()}}}var _C=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),J0=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new _C},t.prototype.buildPath=function(e,n){yC(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(lt);J0.prototype.type="sector";var Sr=J0,SC=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),j0=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new SC},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.PI*2;e.moveTo(i+n.r,a),e.arc(i,a,n.r,0,o,!1),e.moveTo(i+n.r0,a),e.arc(i,a,n.r0,0,o,!0)},t}(lt);j0.prototype.type="ring";var ty=j0;function wC(r,t,e,n){var i=[],a=[],o=[],s=[],l,u,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=r.length;c<v;c++)hi(f,f,r[c]),vi(h,h,r[c]);hi(f,f,n[0]),vi(h,h,n[1])}for(var c=0,v=r.length;c<v;c++){var d=r[c];if(e)l=r[c?c-1:v-1],u=r[(c+1)%v];else if(c===0||c===v-1){i.push($w(r[c]));continue}else l=r[c-1],u=r[c+1];Xw(a,u,l),zl(a,a,t);var p=yf(d,l),g=yf(d,u),m=p+g;m!==0&&(p/=m,g/=m),zl(o,a,-p),zl(s,a,g);var y=rc([],d,o),_=rc([],d,s);n&&(vi(y,y,f),hi(y,y,h),vi(_,_,f),hi(_,_,h)),i.push(y),i.push(_)}return e&&i.push(i.shift()),i}function ey(r,t,e){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=wC(i,n,e,t.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(e?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;s<h;s++)r.lineTo(i[s][0],i[s][1])}e&&r.closePath()}}var xC=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),ry=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new xC},t.prototype.buildPath=function(e,n){ey(e,n,!0)},t}(lt);ry.prototype.type="polygon";var no=ry,bC=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),ny=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new bC},t.prototype.buildPath=function(e,n){ey(e,n,!1)},t}(lt);ny.prototype.type="polyline";var Ni=ny,TC={},CC=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),iy=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new CC},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var l=L0(TC,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(e.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),e.lineTo(o,s))},t.prototype.pointAt=function(e){var n=this.shape;return[n.x1*(1-e)+n.x2*e,n.y1*(1-e)+n.y2*e]},t}(lt);iy.prototype.type="line";var kn=iy,re=[],AC=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r}();function dd(r,t,e){var n=r.cpx2,i=r.cpy2;return n!=null||i!=null?[(e?cc:Et)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?cc:Et)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?dc:Yt)(r.x1,r.cpx1,r.x2,t),(e?dc:Yt)(r.y1,r.cpy1,r.y2,t)]}var ay=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new AC},t.prototype.buildPath=function(e,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,h=n.cpy2,c=n.percent;c!==0&&(e.moveTo(i,a),f==null||h==null?(c<1&&(xs(i,l,o,c,re),l=re[1],o=re[2],xs(a,u,s,c,re),u=re[1],s=re[2]),e.quadraticCurveTo(l,u,o,s)):(c<1&&(Ur(i,l,f,o,c,re),l=re[1],f=re[2],o=re[3],Ur(a,u,h,s,c,re),u=re[1],h=re[2],s=re[3]),e.bezierCurveTo(l,u,f,h,o,s)))},t.prototype.pointAt=function(e){return dd(this.shape,e,!1)},t.prototype.tangentAt=function(e){var n=dd(this.shape,e,!0);return Qw(n,n)},t}(lt);ay.prototype.type="bezier-curve";var oy=ay,MC=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),sy=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new MC},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),h=Math.sin(s);e.moveTo(f*o+i,h*o+a),e.arc(i,a,o,s,l,!u)},t}(lt);sy.prototype.type="arc";var jh=sy,DC=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,n=this.shapeChanged(),i=0;i<e.length;i++)n=n||e[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<e.length;i++)e[i].path||e[i].createPathProxy(),e[i].path.setScale(n[0],n[1],e[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(e,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],n=0;n<e.length;n++)e[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),lt.prototype.getBoundingRect.call(this)},t}(lt),IC=DC,LC=function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r}(),ly=LC,PC=function(r){B(t,r);function t(e,n,i,a,o,s){var l=r.call(this,o)||this;return l.x=e==null?0:e,l.y=n==null?0:n,l.x2=i==null?1:i,l.y2=a==null?0:a,l.type="linear",l.global=s||!1,l}return t}(ly),uy=PC,RC=function(r){B(t,r);function t(e,n,i,a,o){var s=r.call(this,a)||this;return s.x=e==null?.5:e,s.y=n==null?.5:n,s.r=i==null?.5:i,s.type="radial",s.global=o||!1,s}return t}(ly),EC=RC,hn=[0,0],vn=[0,0],Io=new Z,Lo=new Z,OC=function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Z;for(var n=0;n<2;n++)this._axes[n]=new Z;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),e)for(var u=0;u<4;u++)n[u].transform(e);Z.sub(i[0],n[1],n[0]),Z.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},r.prototype.intersect=function(t,e){var n=!0,i=!e;return Io.set(1/0,1/0),Lo.set(0,0),!this._intersectCheckOneSide(this,t,Io,Lo,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,Io,Lo,i,-1)&&(n=!1,i)||i||Z.copy(e,n?Io:Lo),n},r.prototype._intersectCheckOneSide=function(t,e,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,hn),this._getProjMinMaxOnAxis(l,e._corners,vn),hn[1]<vn[0]||hn[0]>vn[1]){if(s=!1,a)return s;var f=Math.abs(vn[0]-hn[1]),h=Math.abs(hn[0]-vn[1]);Math.min(f,h)>i.len()&&(f<h?Z.scale(i,u,-f*o):Z.scale(i,u,h*o))}else if(n){var f=Math.abs(vn[0]-hn[1]),h=Math.abs(hn[0]-vn[1]);Math.min(f,h)<n.len()&&(f<h?Z.scale(n,u,f*o):Z.scale(n,u,-h*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],a=this._origin,o=e[0].dot(i)+a[t],s=o,l=o,u=1;u<e.length;u++){var f=e[u].dot(i)+a[t];s=Math.min(f,s),l=Math.max(f,l)}n[0]=s,n[1]=l},r}(),Ps=OC,kC=[],BC=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,n){e.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,n){n?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,n){n=n||!1;for(var i=0;i<e.length;i++)this.addDisplayable(e[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var n=this._cursor;n<this._displayables.length;n++)e&&e(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)e&&e(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var n=this._displayables[e];n.parent=this,n.update(),n.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var n=this._temporaryDisplayables[e];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new ct(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(kC)),e.union(a)}this._rect=e}return this._rect},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,n))return!0}return!1},t}(Bi),NC=BC,fy=bt();function pl(r,t,e,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,h=void 0;n?(u=vt(n.duration,200),f=vt(n.easing,"cubicOut"),h=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),h=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),$(h)&&(h=h(e,i)),$(u)&&(u=u(e));var c={duration:u||0,delay:h,easing:f};return c}else return null}function tv(r,t,e,n,i,a,o){var s=!1,l;$(i)?(o=a,a=i,i=null):Y(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var f=pl(r,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(f&&f.duration>0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done:a,force:!!a||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function Nt(r,t,e,n,i,a){tv("update",r,t,e,n,i,a)}function $t(r,t,e,n,i,a){tv("enter",r,t,e,n,i,a)}function _i(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function Rs(r,t,e,n,i,a){_i(r)||tv("leave",r,t,e,n,i,a)}function pd(r,t,e,n){r.removeTextContent(),r.removeTextGuideLine(),Rs(r,{style:{opacity:0}},t,e,n)}function Es(r,t,e){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(i){i.isGroup||pd(i,t,e,n)}):pd(r,t,e,n)}function ev(r){fy(r).oldStyle=r.style}function FC(r){return fy(r).oldStyle}var Os=Math.max,ks=Math.min,Zf={};function zC(r){return lt.extend(r)}var VC=hC;function GC(r,t){return VC(r,t)}function He(r,t){Zf[r]=t}function HC(r){if(Zf.hasOwnProperty(r))return Zf[r]}function rv(r,t,e,n){var i=fC(r,t);return e&&(n==="center"&&(e=vy(e,i.getBoundingRect())),cy(i,e)),i}function hy(r,t,e){var n=new Vn({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(e==="center"){var a={width:i.width,height:i.height};n.setStyle(vy(t,a))}}});return n}function vy(r,t){var e=t.width/t.height,n=r.height*e,i;n<=r.width?i=r.height:(n=r.width,i=n/e);var a=r.x+r.width/2,o=r.y+r.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var WC=vC;function cy(r,t){if(!!r.applyTransform){var e=r.getBoundingRect(),n=e.calculateTransform(t);r.applyTransform(n)}}function UC(r){return L0(r.shape,r.shape,r.style),r}function YC(r){return P0(r.shape,r.shape,r.style),r}var ZC=bn;function gl(r,t){for(var e=Vh([]);r&&r!==t;)yi(e,r.getLocalTransform(),e),r=r.parent;return e}function Va(r,t,e){return t&&!te(t)&&(t=to.getLocalTransform(t)),e&&(t=al([],t)),Me([],r,t)}function nv(r,t,e){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[r==="left"?-n:r==="right"?n:0,r==="top"?-i:r==="bottom"?i:0];return a=Va(a,t,e),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function gd(r){return!r.isGroup}function $C(r){return r.shape!=null}function dy(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){gd(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return $C(o)&&(s.shape=N({},o.shape)),s}var a=n(r);t.traverse(function(o){if(gd(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Nt(o,l,e,dt(o).dataIndex)}}})}function py(r,t){return G(r,function(e){var n=e[0];n=Os(n,t.x),n=ks(n,t.x+t.width);var i=e[1];return i=Os(i,t.y),i=ks(i,t.y+t.height),[n,i]})}function XC(r,t){var e=Os(r.x,t.x),n=ks(r.x+r.width,t.x+t.width),i=Os(r.y,t.y),a=ks(r.y+r.height,t.y+t.height);if(n>=e&&a>=i)return{x:e,y:i,width:n-e,height:a-i}}function ml(r,t,e){var n=N({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),tt(i,e),new Vn(n)):rv(r.replace("path://",""),n,e,"center")}function qC(r,t,e,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(gy(r,t,e,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function gy(r,t,e,n,i,a,o,s){var l=e-r,u=n-t,f=o-i,h=s-a,c=Su(f,h,l,u);if(KC(c))return!1;var v=r-i,d=t-a,p=Su(v,d,l,u)/c;if(p<0||p>1)return!1;var g=Su(v,d,f,h)/c;return!(g<0||g>1)}function Su(r,t,e,n){return r*n-e*t}function KC(r){return r<=1e-6&&r>=-1e-6}function yl(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,i=W(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&A(xt(l),function(f){mr(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=dt(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:tt({content:n,formatterParams:s},i)}}function md(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function _l(r,t){if(r)if(z(r))for(var e=0;e<r.length;e++)md(r[e],t);else md(r,t)}He("circle",Jh);He("ellipse",K0);He("sector",Sr);He("ring",ty);He("polygon",no);He("polyline",Ni);He("rect",wt);He("line",kn);He("bezierCurve",oy);He("arc",jh);var QC=Object.freeze(Object.defineProperty({__proto__:null,updateProps:Nt,initProps:$t,removeElement:Rs,removeElementWithFadeOut:Es,isElementRemoved:_i,extendShape:zC,extendPath:GC,registerShape:He,getShapeClass:HC,makePath:rv,makeImage:hy,mergePath:WC,resizePath:cy,subPixelOptimizeLine:UC,subPixelOptimizeRect:YC,subPixelOptimize:ZC,getTransform:gl,applyTransform:Va,transformDirection:nv,groupTransition:dy,clipPointsByRect:py,clipRectByRect:XC,createIcon:ml,linePolygonIntersect:qC,lineLineIntersect:gy,setTooltipConfig:yl,traverseElements:_l,Group:It,Image:Vn,Text:kt,Circle:Jh,Ellipse:K0,Sector:Sr,Ring:ty,Polygon:no,Polyline:Ni,Rect:wt,Line:kn,BezierCurve:oy,Arc:jh,IncrementalDisplayable:NC,CompoundPath:IC,LinearGradient:uy,RadialGradient:EC,BoundingRect:ct,OrientedBoundingRect:Ps,Point:Z,Path:lt},Symbol.toStringTag,{value:"Module"})),Sl={};function my(r,t){for(var e=0;e<De.length;e++){var n=De[e],i=t[n],a=r.ensureState(n);a.style=a.style||{},a.style.text=i}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function $f(r,t,e){var n=r.labelFetcher,i=r.labelDataIndex,a=r.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=$(r.defaultText)?r.defaultText(i,r,e):r.defaultText);for(var l={normal:s},u=0;u<De.length;u++){var f=De[u],h=t[f];l[f]=vt(n?n.getFormattedLabel(i,f,null,a,h&&h.get("formatter")):null,s)}return l}function io(r,t,e,n){e=e||Sl;for(var i=r instanceof kt,a=!1,o=0;o<Ds.length;o++){var s=t[Ds[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?r:r.getTextContent();if(a){i||(l||(l=new kt,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=$f(e,t),f=t.normal,h=!!f.getShallow("show"),c=wr(f,n&&n.normal,e,!1,!i);c.text=u.normal,i||r.setTextConfig(yd(f,e,!1));for(var o=0;o<De.length;o++){var v=De[o],s=t[v];if(s){var d=l.ensureState(v),p=!!vt(s.getShallow("show"),h);if(p!==h&&(d.ignore=!p),d.style=wr(s,n&&n[v],e,!0,!i),d.style.text=u[v],!i){var g=r.ensureState(v);g.textConfig=yd(s,e,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(c.x=l.style.x),l.style.y!=null&&(c.y=l.style.y),l.ignore=!h,l.useStyle(c),l.dirty(),e.enableTextSetter&&(Fi(l).setLabelText=function(m){var y=$f(e,t,m);my(l,y)})}else l&&(l.ignore=!0);r.dirty()}function ao(r,t){t=t||"label";for(var e={normal:r.getModel(t)},n=0;n<De.length;n++){var i=De[n];e[i]=r.getModel([i,t])}return e}function wr(r,t,e,n,i){var a={};return JC(a,r,e,n,i),t&&N(a,t),a}function yd(r,t,e){t=t||{};var n={},i,a=r.getShallow("rotate"),o=vt(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return i=r.getShallow("position")||(e?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",n}function JC(r,t,e,n,i){e=e||Sl;var a=t.ecModel,o=a&&a.option.textStyle,s=jC(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);xd(l[u]={},f,o,e,n,i,!1,!0)}}l&&(r.rich=l);var h=t.get("overflow");h&&(r.overflow=h);var c=t.get("minMargin");c!=null&&(r.margin=c),xd(r,t,o,e,n,i,!0,!1)}function jC(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||Sl).rich;if(e){t=t||{};for(var n=xt(e),i=0;i<n.length;i++){var a=n[i];t[a]=1}}r=r.parentModel}return t}var _d=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Sd=["align","lineHeight","width","height","tag","verticalAlign"],wd=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function xd(r,t,e,n,i,a,o,s){e=!i&&e||Sl;var l=n&&n.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),h=vt(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(u==="auto"&&Ot("color: 'auto'","color: 'inherit'"),l?u=l:u=null),(f==="inherit"||f==="auto")&&(f==="auto"&&Ot("color: 'auto'","color: 'inherit'"),l?f=l:f=null),a||(u=u||e.color,f=f||e.textBorderColor),u!=null&&(r.fill=u),f!=null&&(r.stroke=f);var c=vt(t.getShallow("textBorderWidth"),e.textBorderWidth);c!=null&&(r.lineWidth=c);var v=vt(t.getShallow("textBorderType"),e.textBorderType);v!=null&&(r.lineDash=v);var d=vt(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!i&&h==null&&!s&&(h=n&&n.defaultOpacity),h!=null&&(r.opacity=h),!i&&!a&&r.fill==null&&n.inheritColor&&(r.fill=n.inheritColor);for(var p=0;p<_d.length;p++){var g=_d[p],m=vt(t.getShallow(g),e[g]);m!=null&&(r[g]=m)}for(var p=0;p<Sd.length;p++){var g=Sd[p],m=t.getShallow(g);m!=null&&(r[g]=m)}if(r.verticalAlign==null){var y=t.getShallow("baseline");y!=null&&(r.verticalAlign=y)}if(!o||!n.disableBox){for(var p=0;p<wd.length;p++){var g=wd[p],m=t.getShallow(g);m!=null&&(r[g]=m)}var _=t.getShallow("borderType");_!=null&&(r.borderDash=_),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor==="auto"&&Ot("backgroundColor: 'auto'","backgroundColor: 'inherit'"),r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor==="auto"&&Ot("borderColor: 'auto'","borderColor: 'inherit'"),r.borderColor=l)}}function tA(r,t){var e=t&&t.getModel("textStyle");return Qe([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var Fi=bt();function eA(r,t,e,n){if(!!r){var i=Fi(r);i.prevValue=i.value,i.value=e;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}function rA(r,t,e,n,i){var a=Fi(r);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=vt(a.interpolatedValue,a.prevValue),l=a.value;function u(f){var h=y0(e,a.precision,s,l,f);a.interpolatedValue=f===1?null:h;var c=$f({labelDataIndex:t,labelFetcher:i,defaultText:o?o(h):h+""},a.statesModels,h);my(r,c)}r.percent=0,(a.prevValue==null?$t:Nt)(r,{percent:1},n,t,null,u)}var nA=["textStyle","color"],wu=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],xu=new kt,iA=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(nA):null)},r.prototype.getFont=function(){return tA({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<wu.length;n++)e[wu[n]]=this.getShallow(wu[n]);return xu.useStyle(e),xu.update(),xu.getBoundingRect()},r}(),aA=iA,yy=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],oA=Fa(yy),sA=function(){function r(){}return r.prototype.getLineStyle=function(t){return oA(this,t)},r}(),_y=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],lA=Fa(_y),uA=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return lA(this,t,e)},r}(),Gn=function(){function r(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return r.prototype.init=function(t,e,n){},r.prototype.mergeOption=function(t,e){it(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var n=this.option,i=n==null?n:n[t];if(i==null&&!e){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},r.prototype.getModel=function(t,e){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new r(a,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(rt(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!st.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(!!t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},r}();Zh(Gn);Hb(Gn);ir(Gn,sA);ir(Gn,uA);ir(Gn,$b);ir(Gn,aA);var Vt=Gn,fA=Math.round(Math.random()*10);function oo(r){return[r||"",fA++].join("_")}function hA(r){var t={};r.registerSubTypeDefaulter=function(e,n){var i=Je(e);t[i.main]=n},r.determineSubType=function(e,n){var i=n.type;if(!i){var a=Je(e).main;r.hasSubTypes(e)&&t[a]&&(i=t[a](n))}return i}}function vA(r,t){r.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=e(o),f=u.graph,h=u.noEntryList,c={};for(A(a,function(y){c[y]=!0});h.length;){var v=h.pop(),d=f[v],p=!!c[v];p&&(s.call(l,v,d.originalDeps.slice()),delete c[v]),A(d.successor,p?m:g)}A(c,function(){var y="";throw y=le("Circular dependency may exists: ",c,a,o),new Error(y)});function g(y){f[y].entryCount--,f[y].entryCount===0&&h.push(y)}function m(y){c[y]=!0,g(y)}};function e(a){var o={},s=[];return A(a,function(l){var u=n(o,l),f=u.originalDeps=t(l),h=i(f,a);u.entryCount=h.length,u.entryCount===0&&s.push(l),A(h,function(c){ot(u.predecessor,c)<0&&u.predecessor.push(c);var v=n(o,c);ot(v.successor,c)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return A(a,function(l){ot(o,l)>=0&&s.push(l)}),s}}function wl(r,t){return it(it({},r,!0),t,!0)}var cA={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},dA={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}},Bs="ZH",iv="EN",Ga=iv,hs={},av={},Sy=st.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(Bs)>-1?Bs:Ga}():Ga;function wy(r,t){r=r.toUpperCase(),av[r]=new Vt(t),hs[r]=t}function pA(r){if(W(r)){var t=hs[r.toUpperCase()]||{};return r===Bs||r===iv?rt(t):it(rt(t),rt(hs[Ga]),!1)}else return it(rt(r),rt(hs[Ga]),!1)}function gA(r){return av[r]}function mA(){return av[Ga]}wy(iv,cA);wy(Bs,dA);var ov=1e3,sv=ov*60,Ia=sv*60,Ae=Ia*24,bd=Ae*365,Sa={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}"},Po="{yyyy}-{MM}-{dd}",Td={year:"{yyyy}",month:"{yyyy}-{MM}",day:Po,hour:Po+" "+Sa.hour,minute:Po+" "+Sa.minute,second:Po+" "+Sa.second,millisecond:Sa.none},bu=["year","month","day","hour","minute","second","millisecond"],xy=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function cn(r,t){return r+="","0000".substr(0,t-r.length)+r}function Si(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function yA(r){return r===Si(r)}function _A(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function xl(r,t,e,n){var i=yr(r),a=i[lv(e)](),o=i[wi(e)]()+1,s=Math.floor((o-1)/3)+1,l=i[bl(e)](),u=i["get"+(e?"UTC":"")+"Day"](),f=i[Ha(e)](),h=(f-1)%12+1,c=i[Tl(e)](),v=i[Cl(e)](),d=i[Al(e)](),p=n instanceof Vt?n:gA(n||Sy)||mA(),g=p.getModel("time"),m=g.get("month"),y=g.get("monthAbbr"),_=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,a%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,cn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,cn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,cn(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,cn(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,cn(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,cn(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,cn(d,3)).replace(/{S}/g,d+"")}function SA(r,t,e,n,i){var a=null;if(W(e))a=e;else if($(e))a=e(r.value,t,{level:r.level});else{var o=N({},Sa);if(r.level>0)for(var s=0;s<bu.length;++s)o[bu[s]]="{primary|"+o[bu[s]]+"}";var l=e?e.inherit===!1?e:tt(e,o):o,u=by(r.value,i);if(l[u])a=l[u];else if(l.inherit){for(var f=xy.indexOf(u),s=f-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(z(a)){var h=r.level==null?0:r.level>=0?r.level:a.length+r.level;h=Math.min(h,a.length-1),a=a[h]}}return xl(new Date(r.value),a,i,n)}function by(r,t){var e=yr(r),n=e[wi(t)]()+1,i=e[bl(t)](),a=e[Ha(t)](),o=e[Tl(t)](),s=e[Cl(t)](),l=e[Al(t)](),u=l===0,f=u&&s===0,h=f&&o===0,c=h&&a===0,v=c&&i===1,d=v&&n===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":u?"second":"millisecond"}function Cd(r,t,e){var n=pt(r)?yr(r):r;switch(t=t||by(r,e),t){case"year":return n[lv(e)]();case"half-year":return n[wi(e)]()>=6?1:0;case"quarter":return Math.floor((n[wi(e)]()+1)/4);case"month":return n[wi(e)]();case"day":return n[bl(e)]();case"half-day":return n[Ha(e)]()/24;case"hour":return n[Ha(e)]();case"minute":return n[Tl(e)]();case"second":return n[Cl(e)]();case"millisecond":return n[Al(e)]()}}function lv(r){return r?"getUTCFullYear":"getFullYear"}function wi(r){return r?"getUTCMonth":"getMonth"}function bl(r){return r?"getUTCDate":"getDate"}function Ha(r){return r?"getUTCHours":"getHours"}function Tl(r){return r?"getUTCMinutes":"getMinutes"}function Cl(r){return r?"getUTCSeconds":"getSeconds"}function Al(r){return r?"getUTCMilliseconds":"getMilliseconds"}function wA(r){return r?"setUTCFullYear":"setFullYear"}function Ty(r){return r?"setUTCMonth":"setMonth"}function Cy(r){return r?"setUTCDate":"setDate"}function Ay(r){return r?"setUTCHours":"setHours"}function My(r){return r?"setUTCMinutes":"setMinutes"}function Dy(r){return r?"setUTCSeconds":"setSeconds"}function Iy(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Ly(r){if(!h0(r))return W(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Py(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Ml=km,xA=/([&<>"'])/g,bA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Ce(r){return r==null?"":(r+"").replace(xA,function(t,e){return bA[e]})}function Xf(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Qe(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?yr(r):r;if(isNaN(+l)){if(s)return"-"}else return xl(l,n,e)}if(t==="ordinal")return ys(r)?i(r):pt(r)&&a(r)?r+"":"-";var u=Zr(r);return a(u)?Ly(u):ys(r)?i(r):typeof r=="boolean"?r+"":"-"}var Ad=["a","b","c","d","e","f","g"],Tu=function(r,t){return"{"+r+(t==null?"":t)+"}"};function Ry(r,t,e){z(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=Ad[a];r=r.replace(Tu(o),Tu(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];r=r.replace(Tu(Ad[l],s),e?Ce(u):u)}return r}function TA(r,t){var e=W(r)?{color:r,extraCssText:t}:r||{},n=e.color,i=e.type;t=e.extraCssText;var a=e.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ce(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ce(n)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Bn(r,t){return t=t||"transparent",W(r)?r:Y(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Md(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var vs=A,CA=["left","right","top","bottom","width","height"],Ro=[["width","left","right"],["height","top","bottom"]];function uv(r,t,e,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),h=t.childAt(u+1),c=h&&h.getBoundingRect(),v,d;if(r==="horizontal"){var p=f.width+(c?-c.x+f.x:0);v=a+p,v>n||l.newline?(a=0,v=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(c?-c.y+f.y:0);d=o+g,d>i||l.newline?(a+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=v+e:o=d+e)})}var xi=uv;ft(uv,"vertical");ft(uv,"horizontal");function xr(r,t,e){e=Ml(e||0);var n=t.width,i=t.height,a=St(r.left,n),o=St(r.top,i),s=St(r.right,n),l=St(r.bottom,i),u=St(r.width,n),f=St(r.height,i),h=e[2]+e[0],c=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-c-a),isNaN(f)&&(f=i-l-h-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(a)&&(a=n-s-u-c),isNaN(o)&&(o=i-l-f-h),r.left||r.right){case"center":a=n/2-u/2-e[3];break;case"right":a=n-u-c;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-f/2-e[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(u)&&(u=n-c-a-(s||0)),isNaN(f)&&(f=i-h-o-(l||0));var d=new ct(a+e[3],o+e[0],u,f);return d.margin=e,d}function AA(r,t,e,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||r,a.x=r.x,a.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new ct(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var h=xr(tt({width:u.width,height:u.height},t),e,n),c=o?h.x-u.x:0,v=s?h.y-u.y:0;return l==="raw"?(a.x=c,a.y=v):(a.x+=c,a.y+=v),a===r&&r.markRedraw(),!0}function Wa(r){var t=r.layoutMode||r.constructor.layoutMode;return Y(t)?t:t?{type:t}:null}function Ii(r,t,e){var n=e&&e.ignoreSize;!z(n)&&(n=[n,n]);var i=o(Ro[0],0),a=o(Ro[1],1);u(Ro[0],r,i),u(Ro[1],r,a);function o(f,h){var c={},v=0,d={},p=0,g=2;if(vs(f,function(_){d[_]=r[_]}),vs(f,function(_){s(t,_)&&(c[_]=d[_]=t[_]),l(c,_)&&v++,l(d,_)&&p++}),n[h])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(p===g||!v)return d;if(v>=g)return c;for(var m=0;m<f.length;m++){var y=f[m];if(!s(c,y)&&s(r,y)){c[y]=r[y];break}}return c}function s(f,h){return f.hasOwnProperty(h)}function l(f,h){return f[h]!=null&&f[h]!=="auto"}function u(f,h,c){vs(f,function(v){h[v]=c[v]})}}function so(r){return MA({},r)}function MA(r,t){return t&&r&&vs(CA,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var DA=bt(),zi=function(r){B(t,r);function t(e,n,i){var a=r.call(this,e,n,i)||this;return a.uid=oo("ec_cpt_model"),a}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=Wa(this),a=i?so(e):{},o=n.getTheme();it(e,o.get(this.mainType)),it(e,this.getDefaultOption()),i&&Ii(e,a,i)},t.prototype.mergeOption=function(e,n){it(this.option,e,!0);var i=Wa(this);i&&Ii(this.option,e,i)},t.prototype.optionUpdated=function(e,n){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!zb(e))return e.defaultOption;var n=DA(this);if(!n.defaultOption){for(var i=[],a=e;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=it(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var i=e+"Index",a=e+"Id";return ro(this.ecModel,e,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Vt);S0(zi,Vt);ul(zi);hA(zi);vA(zi,IA);function IA(r){var t=[];return A(zi.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=G(t,function(e){return Je(e).main}),r!=="dataset"&&ot(t,"dataset")<=0&&t.unshift("dataset"),t}var yt=zi,Ey="";typeof navigator!="undefined"&&(Ey=navigator.platform||"");var Jn="rgba(0, 0, 0, 0.2)",LA={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Jn,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Jn,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Jn,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Jn,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Jn,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Jn,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Ey.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},qf=Q(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Pe="original",ee="arrayRows",Re="objectRows",ar="keyedColumns",gr="typedArray",Oy="unknown",er="column",Vi="row",Ft={Must:1,Might:2,Not:3},ky=bt();function PA(r){ky(r).datasetMap=Q()}function RA(r,t,e){var n={},i=fv(t);if(!i||!r)return n;var a=[],o=[],s=t.ecModel,l=ky(s).datasetMap,u=i.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),A(r,function(p,g){var m=Y(p)?p:r[g]={name:p};m.type==="ordinal"&&f==null&&(f=g,h=d(m)),n[m.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});A(r,function(p,g){var m=p.name,y=d(p);if(f==null){var _=c.valueWayDim;v(n[m],_,y),v(o,_,y),c.valueWayDim+=y}else if(f===g)v(n[m],0,y),v(a,0,y);else{var _=c.categoryWayDim;v(n[m],_,y),v(o,_,y),c.categoryWayDim+=y}});function v(p,g,m){for(var y=0;y<m;y++)p.push(g+y)}function d(p){var g=p.dimsDef;return g?g.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function EA(r,t,e){var n={},i=fv(r);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===Re||a===ar)&&A(o,function(f,h){(Y(f)?f.name:f)==="name"&&(s=h)});var l=function(){for(var f={},h={},c=[],v=0,d=Math.min(5,e);v<d;v++){var p=Ny(t.data,a,t.seriesLayoutBy,o,t.startIndex,v);c.push(p);var g=p===Ft.Not;if(g&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!g&&c[f.n]===Ft.Not)&&(f.n=v),m(f)&&c[f.n]!==Ft.Not)return f;g||(p===Ft.Might&&h.v==null&&v!==s&&(h.v=v),(h.n==null||h.n===h.v)&&(h.n=v))}function m(y){return y.v!=null&&y.n!=null}return m(f)?f:m(h)?h:null}();if(l){n.value=[l.v];var u=s!=null?s:l.n;n.itemName=[u],n.seriesName=[u]}return n}function fv(r){var t=r.get("data",!0);if(!t)return ro(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Jt).models[0]}function OA(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:ro(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Jt).models}function By(r,t){return Ny(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function Ny(r,t,e,n,i,a){var o,s=5;if(se(r))return Ft.Not;var l,u;if(n){var f=n[a];Y(f)?(l=f.name,u=f.type):W(f)&&(l=f)}if(u!=null)return u==="ordinal"?Ft.Must:Ft.Not;if(t===ee){var h=r;if(e===Vi){for(var c=h[a],v=0;v<(c||[]).length&&v<s;v++)if((o=S(c[i+v]))!=null)return o}else for(var v=0;v<h.length&&v<s;v++){var d=h[i+v];if(d&&(o=S(d[a]))!=null)return o}}else if(t===Re){var p=r;if(!l)return Ft.Not;for(var v=0;v<p.length&&v<s;v++){var g=p[v];if(g&&(o=S(g[l]))!=null)return o}}else if(t===ar){var m=r;if(!l)return Ft.Not;var c=m[l];if(!c||se(c))return Ft.Not;for(var v=0;v<c.length&&v<s;v++)if((o=S(c[v]))!=null)return o}else if(t===Pe)for(var y=r,v=0;v<y.length&&v<s;v++){var g=y[v],_=eo(g);if(!z(_))return Ft.Not;if((o=S(_[a]))!=null)return o}function S(x){var w=W(x);if(x!=null&&isFinite(x)&&x!=="")return w?Ft.Might:Ft.Not;if(w&&x!=="-")return Ft.Must}return Ft.Not}var Kf=Q();function kA(r,t){X(Kf.get(r)==null&&t),Kf.set(r,t)}function BA(r,t,e){var n=Kf.get(t);if(!n)return e;var i=n(r);if(!i)return e;for(var a=0;a<i.length;a++)X(Ci(i[a]));return e.concat(i)}var Dd=bt();bt();var hv=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,n){var i=Dt(this.get("color",!0)),a=this.get("colorLayer",!0);return FA(this,Dd,i,a,t,e,n)},r.prototype.clearColorPalette=function(){zA(this,Dd)},r}();function NA(r,t){for(var e=r.length,n=0;n<e;n++)if(r[n].length>t)return r[n];return r[e-1]}function FA(r,t,e,n,i,a,o){a=a||r;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?e:NA(n,o);if(f=f||e,!(!f||!f.length)){var h=f[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%f.length,h}}function zA(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Eo,Qi,Id,Cu="\0_ec_inner",Ld=1,VA={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},GA={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},Ns={};function HA(r){A(r,function(t,e){if(!yt.hasClass(e)){var n=VA[e];n&&!Ns[n]&&(Xt("Component "+e+` is used but not imported.
  28. import { `+n+` } from 'echarts/components';
  29. echarts.use([`+n+"]);"),Ns[n]=!0)}})}var Fy=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Vt(a),this._locale=new Vt(o),this._optionManager=s},t.prototype.setOption=function(e,n,i){X(e!=null,"option is null/undefined"),X(e[Cu]!==Ld,"please use chart.getOption()");var a=Ed(n);this._optionManager.setOption(e,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,n){return this._resetOption(e,Ed(n))},t.prototype._resetOption=function(e,n){var i=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");HA(o),!this.option||e==="recreate"?Id(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=a.getMediaOption(this);l.length&&A(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=Q(),u=n&&n.replaceMergeMainTypeMap;PA(this),A(e,function(h,c){h!=null&&(yt.hasClass(c)?c&&(s.push(c),l.set(c,!0)):i[c]=i[c]==null?rt(h):it(i[c],h,!0))}),u&&u.each(function(h,c){yt.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),yt.topologicalTravel(s,yt.getAllClassMainTypes(),f,this);function f(h){var c=BA(this,h,Dt(e[h])),v=a.get(h),d=v?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",p=bb(v,c,d);Pb(p,h,yt),i[h]=null,a.set(h,null),o.set(h,0);var g=[],m=[],y=0,_,S;A(p,function(x,w){var b=x.existing,T=x.newOption;if(!T)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var C=h==="series",D=yt.getClass(h,x.keyInfo.subType,!C);if(!D){{var M=x.keyInfo.subType,I=GA[M];Ns[M]||(Ns[M]=!0,Xt(I?"Series "+M+` is used but not imported.
  30. import { `+I+` } from 'echarts/charts';
  31. echarts.use([`+I+"]);":"Unkown series "+M))}return}if(h==="tooltip"){if(_){S||(nr("Currently only one tooltip component is allowed."),S=!0);return}_=!0}if(b&&b.constructor===D)b.name=x.keyInfo.name,b.mergeOption(T,this),b.optionUpdated(T,!1);else{var L=N({componentIndex:w},x.keyInfo);b=new D(T,this,this,L),N(b,L),x.brandNew&&(b.__requireNewView=!0),b.init(T,this,this),b.optionUpdated(null,!0)}}b?(g.push(b.option),m.push(b),y++):(g.push(void 0),m.push(void 0))},this),i[h]=g,a.set(h,m),o.set(h,y),h==="series"&&Eo(this)}this._seriesIndices||Eo(this)},t.prototype.getOption=function(){var e=rt(this.option);return A(e,function(n,i){if(yt.hasClass(i)){for(var a=Dt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Ci(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,e[i]=a}}),delete e[Cu],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var i=this._componentsMap.get(e);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(e){var n=e.mainType;if(!n)return[];var i=e.index,a=e.id,o=e.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],A(Dt(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=Pd("id",a,s):o!=null?l=Pd("name",o,s):l=Pt(s,function(u){return!!u}),Rd(l,e)},t.prototype.findComponents=function(e){var n=e.query,i=e.mainType,a=s(n),o=a?this.queryComponents(a):Pt(this._componentsMap.get(i),function(u){return!!u});return l(Rd(o,e));function s(u){var f=i+"Index",h=i+"Id",c=i+"Name";return u&&(u[f]!=null||u[h]!=null||u[c]!=null)?{mainType:i,index:u[f],id:u[h],name:u[c]}:null}function l(u){return e.filter?Pt(u,e.filter):u}},t.prototype.eachComponent=function(e,n,i){var a=this._componentsMap;if($(e)){var o=n,s=e;a.each(function(h,c){for(var v=0;h&&v<h.length;v++){var d=h[v];d&&s.call(o,c,d,d.componentIndex)}})}else for(var l=W(e)?a.get(e):Y(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var n=tr(e,null);return Pt(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Pt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===e})},t.prototype.getSeries=function(){return Pt(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,n){Qi(this),A(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];e.call(n,a,i)},this)},t.prototype.eachRawSeries=function(e,n){A(this._componentsMap.get("series"),function(i){i&&e.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(e,n,i){Qi(this),A(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===e&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(e,n,i){return A(this.getSeriesByType(e),n,i)},t.prototype.isSeriesFiltered=function(e){return Qi(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,n){Qi(this);var i=[];A(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];e.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=Q(i)},t.prototype.restoreData=function(e){Eo(this);var n=this._componentsMap,i=[];n.each(function(a,o){yt.hasClass(o)&&i.push(o)}),yt.topologicalTravel(i,yt.getAllClassMainTypes(),function(a){A(n.get(a),function(o){o&&(a!=="series"||!WA(o,e))&&o.restoreData()})})},t.internalField=function(){Eo=function(e){var n=e._seriesIndices=[];A(e._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),e._seriesIndicesMap=Q(n)},Qi=function(e){if(!e._seriesIndices)throw new Error("Option should contains series.")},Id=function(e,n){e.option={},e.option[Cu]=Ld,e._componentsMap=Q({series:[]}),e._componentsCount=Q();var i=n.aria;Y(i)&&i.enabled==null&&(i.enabled=!0),UA(n,e._theme.option),it(n,LA,!1),e._mergeOption(n,null)}}(),t}(Vt);function WA(r,t){if(t){var e=t.seriesIndex,n=t.seriesId,i=t.seriesName;return e!=null&&r.componentIndex!==e||n!=null&&r.id!==n||i!=null&&r.name!==i}}function UA(r,t){var e=r.color&&!r.colorLayer;A(t,function(n,i){i==="colorLayer"&&e||yt.hasClass(i)||(typeof n=="object"?r[i]=r[i]?it(r[i],n,!1):rt(n):r[i]==null&&(r[i]=n))})}function Pd(r,t,e){if(z(t)){var n=Q();return A(t,function(a){if(a!=null){var o=tr(a,null);o!=null&&n.set(a,!0)}}),Pt(e,function(a){return a&&n.get(a[r])})}else{var i=tr(t,null);return Pt(e,function(a){return a&&i!=null&&a[r]===i})}}function Rd(r,t){return t.hasOwnProperty("subType")?Pt(r,function(e){return e&&e.subType===t.subType}):r}function Ed(r){var t=Q();return r&&A(Dt(r.replaceMerge),function(e){X(yt.hasClass(e),'"'+e+'" is not valid component main type in "replaceMerge"'),t.set(e,!0)}),{replaceMergeMainTypeMap:t}}ir(Fy,hv);var zy=Fy,YA=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ZA=function(){function r(t){A(YA,function(e){this[e]=K(t[e],t)},this)}return r}(),Vy=ZA,Au={},$A=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var n=[];A(Au,function(i,a){var o=i.create(t,e);n=n.concat(o||[])}),this._coordinateSystems=n},r.prototype.update=function(t,e){A(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){Au[t]=e},r.get=function(t){return Au[t]},r}(),vv=$A,XA=/^(min|max)?(.+)$/,qA=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,n){t&&(A(Dt(t.series),function(o){o&&o.data&&se(o.data)&&_s(o.data)}),A(Dt(t.dataset),function(o){o&&o.source&&se(o.source)&&_s(o.source)})),t=rt(t);var i=this._optionBackup,a=KA(t,e,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],rt(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=rt(n[i.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)QA(i[l].query,e,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!jA(o,this._currentMediaIndices)&&(s=G(o,function(f){return rt(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},r}();function KA(r,t,e){var n=[],i,a,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,h=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(r.options=r.media=null),a=r),f&&(z(u)?A(u,function(v){v&&!v.option&&Y(v.query)&&Y(v.query.option)&&Xt("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),v&&v.option&&(v.query?n.push(v):i||(i=v))}):Xt("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),c(a),A(l,function(v){return c(v)}),A(n,function(v){return c(v.option)});function c(v){A(t,function(d){d(v,e)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function QA(r,t,e){var n={width:t,height:e,aspectratio:t/e},i=!0;return A(r,function(a,o){var s=o.match(XA);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();JA(n[u],a,l)||(i=!1)}}),i}function JA(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function jA(r,t){return r.join(",")===t.join(",")}var tM=qA,ge=A,Ua=Y,Od=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Mu(r){var t=r&&r.itemStyle;if(!!t)for(var e=0,n=Od.length;e<n;e++){var i=Od[e],a=t.normal,o=t.emphasis;a&&a[i]&&(Ot("itemStyle.normal."+i,i),r[i]=r[i]||{},r[i].normal?it(r[i].normal,a[i]):r[i].normal=a[i],a[i]=null),o&&o[i]&&(Ot("itemStyle.emphasis."+i,"emphasis."+i),r[i]=r[i]||{},r[i].emphasis?it(r[i].emphasis,o[i]):r[i].emphasis=o[i],o[i]=null)}}function Zt(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var n=r[t].normal,i=r[t].emphasis;n&&(Ve("'normal' hierarchy in "+t+" has been removed since 4.0. All style properties are configured in "+t+" directly now."),e?(r[t].normal=r[t].emphasis=null,tt(r[t],n)):r[t]=n),i&&(Ve(t+".emphasis has been changed to emphasis."+t+" since 4.0"),r.emphasis=r.emphasis||{},r.emphasis[t]=i,i.focus&&(r.emphasis.focus=i.focus),i.blurScope&&(r.emphasis.blurScope=i.blurScope))}}function wa(r){Zt(r,"itemStyle"),Zt(r,"lineStyle"),Zt(r,"areaStyle"),Zt(r,"label"),Zt(r,"labelLine"),Zt(r,"upperLabel"),Zt(r,"edgeLabel")}function Mt(r,t){var e=Ua(r)&&r[t],n=Ua(e)&&e.textStyle;if(n){Ve("textStyle hierarchy in "+t+" has been removed since 4.0. All textStyle properties are configured in "+t+" directly now.");for(var i=0,a=Ec.length;i<a;i++){var o=Ec[i];n.hasOwnProperty(o)&&(e[o]=n[o])}}}function xe(r){r&&(wa(r),Mt(r,"label"),r.emphasis&&Mt(r.emphasis,"label"))}function eM(r){if(!!Ua(r)){Mu(r),wa(r),Mt(r,"label"),Mt(r,"upperLabel"),Mt(r,"edgeLabel"),r.emphasis&&(Mt(r.emphasis,"label"),Mt(r.emphasis,"upperLabel"),Mt(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(Mu(t),xe(t));var e=r.markLine;e&&(Mu(e),xe(e));var n=r.markArea;n&&xe(n);var i=r.data;if(r.type==="graph"){i=i||r.nodes;var a=r.links||r.edges;if(a&&!se(a))for(var o=0;o<a.length;o++)xe(a[o]);A(r.categories,function(u){wa(u)})}if(i&&!se(i))for(var o=0;o<i.length;o++)xe(i[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)xe(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)z(l[o])?(xe(l[o][0]),xe(l[o][1])):xe(l[o]);r.type==="gauge"?(Mt(r,"axisLabel"),Mt(r,"title"),Mt(r,"detail")):r.type==="treemap"?(Zt(r.breadcrumb,"itemStyle"),A(r.levels,function(u){wa(u)})):r.type==="tree"&&wa(r.leaves)}}function ur(r){return z(r)?r:r?[r]:[]}function kd(r){return(z(r)?r[0]:r)||{}}function rM(r,t){ge(ur(r.series),function(n){Ua(n)&&eM(n)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),ge(e,function(n){ge(ur(r[n]),function(i){i&&(Mt(i,"axisLabel"),Mt(i.axisPointer,"label"))})}),ge(ur(r.parallel),function(n){var i=n&&n.parallelAxisDefault;Mt(i,"axisLabel"),Mt(i&&i.axisPointer,"label")}),ge(ur(r.calendar),function(n){Zt(n,"itemStyle"),Mt(n,"dayLabel"),Mt(n,"monthLabel"),Mt(n,"yearLabel")}),ge(ur(r.radar),function(n){Mt(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name,Ve("name property in radar component has been changed to axisName")),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap,Ve("nameGap property in radar component has been changed to axisNameGap")),ge(n.indicator,function(i){i.text&&Ot("text","name","radar.indicator")})}),ge(ur(r.geo),function(n){Ua(n)&&(xe(n),ge(ur(n.regions),function(i){xe(i)}))}),ge(ur(r.timeline),function(n){xe(n),Zt(n,"label"),Zt(n,"itemStyle"),Zt(n,"controlStyle",!0);var i=n.data;z(i)&&A(i,function(a){Y(a)&&(Zt(a,"label"),Zt(a,"itemStyle"))})}),ge(ur(r.toolbox),function(n){Zt(n,"iconStyle"),ge(n.feature,function(i){Zt(i,"iconStyle")})}),Mt(kd(r.axisPointer),"label"),Mt(kd(r.tooltip).axisPointer,"label")}function nM(r,t){for(var e=t.split(","),n=r,i=0;i<e.length&&(n=n&&n[e[i]],n!=null);i++);return n}function iM(r,t,e,n){for(var i=t.split(","),a=r,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];(n||a[i[s]]==null)&&(a[i[s]]=e)}function Bd(r){r&&A(aM,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var aM=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],oM=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Du=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ji(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<Du.length;e++){var n=Du[e][1],i=Du[e][0];t[n]!=null&&(t[i]=t[n],Ot(n,i))}}function Nd(r){!r||r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(Ot("label.margin","label.edgeDistance","pie"),r.edgeDistance=r.margin)}function Fd(r){!r||r.downplay&&!r.blur&&(r.blur=r.downplay,Ot("downplay","blur","sunburst"))}function sM(r){!r||r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(Ot("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),r.emphasis.focus="adjacency"))}function Gy(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&Gy(r[e].children,t)}function Hy(r,t){rM(r,t),r.series=Dt(r.series),A(r.series,function(e){if(!!Y(e)){var n=e.type;if(n==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow,Ot("clipOverflow","clip","line"));else if(n==="pie"||n==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise,Ot("clockWise","clockwise")),Nd(e.label);var i=e.data;if(i&&!se(i))for(var a=0;a<i.length;a++)Nd(i[a]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(Ot("hoverOffset","emphasis.scaleSize"),e.emphasis.scaleSize=e.hoverOffset))}else if(n==="gauge"){var o=nM(e,"pointer.color");o!=null&&iM(e,"itemStyle.color",o)}else if(n==="bar"){Ji(e),Ji(e.backgroundStyle),Ji(e.emphasis);var i=e.data;if(i&&!se(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Ji(i[a]),Ji(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s,Ot("highlightPolicy","emphasis.focus","sunburst"))),Fd(e),Gy(e.data,Fd)}else n==="graph"||n==="sankey"?sM(e):n==="map"&&(e.mapType&&!e.map&&(Ot("mapType","map","map"),e.map=e.mapType),e.mapLocation&&(Ve("`mapLocation` is not used anymore."),tt(e,e.mapLocation)));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(Ot("hoverAnimation","emphasis.scale"),e.emphasis.scale=e.hoverAnimation)),Bd(e)}}),r.dataRange&&(r.visualMap=r.dataRange),A(oM,function(e){var n=r[e];n&&(z(n)||(n=[n]),A(n,function(i){Bd(i)}))})}function lM(r){var t=Q();r.eachSeries(function(e){var n=e.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=e.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(uM)}function uM(r){A(r,function(t,e){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,h){var c=o.get(t.stackedDimension,h);if(isNaN(c))return i;var v,d;s?d=o.getRawIndex(h):v=o.get(t.stackedByDimension,h);for(var p=NaN,g=e-1;g>=0;g--){var m=r[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,v)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&c>=0&&y>0||l==="samesign"&&c<=0&&y<0){c=gb(c,y),p=y;break}}}return n[0]=c,n[1]=p,n})})}var Dl=function(){function r(t){this.data=t.data||(t.sourceFormat===ar?{}:[]),this.sourceFormat=t.sourceFormat||Oy,this.seriesLayoutBy=t.seriesLayoutBy||er,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];i.type==null&&By(this,n)===Ft.Must&&(i.type="ordinal")}}return r}();function cv(r){return r instanceof Dl}function Qf(r,t,e){e=e||Wy(r);var n=t.seriesLayoutBy,i=hM(r,e,n,t.sourceHeader,t.dimensions),a=new Dl({data:r,sourceFormat:e,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:rt(t)});return a}function dv(r){return new Dl({data:r,sourceFormat:se(r)?gr:Pe})}function fM(r){return new Dl({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:rt(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function Wy(r){var t=Oy;if(se(r))t=gr;else if(z(r)){r.length===0&&(t=ee);for(var e=0,n=r.length;e<n;e++){var i=r[e];if(i!=null){if(z(i)){t=ee;break}else if(Y(i)){t=Re;break}}}}else if(Y(r)){for(var a in r)if(mr(r,a)&&te(r[a])){t=ar;break}}return t}function hM(r,t,e,n,i){var a,o;if(!r)return{dimensionsDefine:zd(i),startIndex:o,dimensionsDetectedCount:a};if(t===ee){var s=r;n==="auto"||n==null?Vd(function(u){u!=null&&u!=="-"&&(W(u)?o==null&&(o=1):o=0)},e,s,10):o=pt(n)?n:n?1:0,!i&&o===1&&(i=[],Vd(function(u,f){i[f]=u!=null?u+"":""},e,s,1/0)),a=i?i.length:e===Vi?s.length:s[0]?s[0].length:null}else if(t===Re)i||(i=vM(r));else if(t===ar)i||(i=[],A(r,function(u,f){i.push(f)}));else if(t===Pe){var l=eo(r[0]);a=z(l)&&l.length||1}else t===gr&&X(!!i,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:zd(i),dimensionsDetectedCount:a}}function vM(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e){var n=[];return A(e,function(i,a){n.push(a)}),n}}function zd(r){if(!!r){var t=Q();return G(r,function(e,n){e=Y(e)?e:{name:e};var i={name:e.name,displayName:e.displayName,type:e.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function Vd(r,t,e,n){if(t===Vi)for(var i=0;i<e.length&&i<n;i++)r(e[i]?e[i][0]:null,i);else for(var a=e[0]||[],i=0;i<a.length&&i<n;i++)r(a[i],i)}function Uy(r){var t=r.sourceFormat;return t===Re||t===ar}var dn,pn,gn,Gd,Hd,Yy=function(){function r(t,e){var n=cv(t)?t:dv(t);this._source=n;var i=this._data=n.data;if(n.sourceFormat===gr){if(e==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=e,this._data=i}Hd(this,i,n)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=function(){var t=r.prototype;t.pure=!1,t.persistent=!0}(),r.internalField=function(){var t;Hd=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,c=l.dimensionsDefine,v=Gd[pv(u,f)];if(X(v,"Invalide sourceFormat: "+u),N(o,v),u===gr)o.getItem=e,o.count=i,o.fillStorage=n;else{var d=Zy(u,f);o.getItem=K(d,null,s,h,c);var p=$y(u,f);o.count=K(p,null,s,h,c)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,h=0;h<u;h++)s[h]=l[f+h];return s},n=function(o,s,l,u){for(var f=this._data,h=this._dimSize,c=0;c<h;c++){for(var v=u[c],d=v[0]==null?1/0:v[0],p=v[1]==null?-1/0:v[1],g=s-o,m=l[c],y=0;y<g;y++){var _=f[y*h+c];m[o+y]=_,_<d&&(d=_),_>p&&(p=_)}v[0]=d,v[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};Gd=(t={},t[ee+"_"+er]={pure:!0,appendData:a},t[ee+"_"+Vi]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Re]={pure:!0,appendData:a},t[ar]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},t[Pe]={appendData:a},t[gr]={persistent:!1,pure:!0,appendData:function(o){X(se(o),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),Wd=function(r,t,e,n){return r[n]},cM=(dn={},dn[ee+"_"+er]=function(r,t,e,n){return r[n+t]},dn[ee+"_"+Vi]=function(r,t,e,n,i){n+=t;for(var a=i||[],o=r,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},dn[Re]=Wd,dn[ar]=function(r,t,e,n,i){for(var a=i||[],o=0;o<e.length;o++){var s=e[o].name;if(s==null)throw new Error;var l=r[s];a[o]=l?l[n]:null}return a},dn[Pe]=Wd,dn);function Zy(r,t){var e=cM[pv(r,t)];return X(e,'Do not support get item on "'+r+'", "'+t+'".'),e}var Ud=function(r,t,e){return r.length},dM=(pn={},pn[ee+"_"+er]=function(r,t,e){return Math.max(0,r.length-t)},pn[ee+"_"+Vi]=function(r,t,e){var n=r[0];return n?Math.max(0,n.length-t):0},pn[Re]=Ud,pn[ar]=function(r,t,e){var n=e[0].name;if(n==null)throw new Error;var i=r[n];return i?i.length:0},pn[Pe]=Ud,pn);function $y(r,t){var e=dM[pv(r,t)];return X(e,'Do not suppport count on "'+r+'", "'+t+'".'),e}var Iu=function(r,t,e){return r[t]},pM=(gn={},gn[ee]=Iu,gn[Re]=function(r,t,e){return r[e]},gn[ar]=Iu,gn[Pe]=function(r,t,e){var n=eo(r);return n instanceof Array?n[t]:n},gn[gr]=Iu,gn);function Xy(r){var t=pM[r];return X(t,'Do not suppport get value on "'+r+'".'),t}function pv(r,t){return r===ee?r+"_"+t:r}function Li(r,t,e){if(!!r){var n=r.getRawDataItem(t);if(n!=null){var i=r.getStore(),a=i.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=i.getDimensionProperty(o);return Xy(a)(n,o,s)}else{var l=n;return a===Pe&&(l=eo(n)),l}}}}var gM=/\{@(.+?)\}/g,mM=function(){function r(){}return r.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,h=this.mainType,c=h==="series",v=n.userOutput&&n.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:a,data:s,dataType:e,value:i,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,n,i,a,o){e=e||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),i!=null&&z(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if($(a))return l.status=e,l.dimensionIndex=i,a(l);if(W(a)){var f=Ry(a,l);return f.replace(gM,function(h,c){var v=c.length,d=c;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1),isNaN(d)&&Xt("Invalide label formatter: @"+c+", only support @[0], @[1], @[2], ..."));var p=Li(s,t,d);if(o&&z(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Li(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function Yd(r){var t,e;return Y(r)?r.type?e=r:console.warn("The return type of `formatTooltip` is not supported: "+le(r)):t=r,{text:t,frag:e}}function La(r){return new yM(r)}var yM=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var i=this.context;i.data=i.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(e?(X(e._outputDueEnd!=null),this._dueEnd=e._outputDueEnd):(X(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var v=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(h||v<d)){var p=this._progress;if(z(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],v,d,l,u);else this._doProgress(p,v,d,l,u)}this._dueIndex=d;var m=this._settedOutputEnd!=null?this._settedOutputEnd:d;X(m>=this._outputDueEnd),this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,n,i,a){Zd.reset(e,n,i,a),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Zd.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,n;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),z(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){X(t&&!t._disposed&&t!==this),(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r}(),Zd=function(){var r,t,e,n,i,a={reset:function(l,u,f,h){t=l,r=u,e=f,n=h,i=Math.ceil(n/e),a.next=e>1&&n>0?s:o}};return a;function o(){return t<r?t++:null}function s(){var l=t%i*e+Math.ceil(t/i),u=t>=r?null:l<n?l:t;return t++,u}}();function cs(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!pt(r)&&r!=null&&r!=="-"&&(r=+yr(r)),r==null||r===""?NaN:+r)}var _M=Q({number:function(r){return parseFloat(r)},time:function(r){return+yr(r)},trim:function(r){return W(r)?Qe(r):r}});function qy(r){return _M.get(r)}var Ky={lt:function(r,t){return r<t},lte:function(r,t){return r<=t},gt:function(r,t){return r>t},gte:function(r,t){return r>=t}},SM=function(){function r(t,e){if(!pt(e)){var n="";n='rvalue of "<", ">", "<=", ">=" can only be number in filter.',ut(n)}this._opFn=Ky[t],this._rvalFloat=Zr(e)}return r.prototype.evaluate=function(t){return pt(t)?this._opFn(t,this._rvalFloat):this._opFn(Zr(t),this._rvalFloat)},r}(),Qy=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=pt(t)?t:Zr(t),i=pt(e)?e:Zr(e),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=W(t),l=W(e);s&&(n=l?t:0),l&&(i=s?e:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},r}(),wM=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Zr(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=Zr(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function xM(r,t){return r==="eq"||r==="ne"?new wM(r==="eq",t):mr(Ky,r)?new SM(r,t):null}var bM=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return cs(t,e)},r}();function TM(r,t){var e=new bM,n=r.data,i=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==er&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.',ut(o));var s=[],l={},u=r.dimensionsDefine;if(u)A(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";mr(l,m)&&(_='dimension name "'+m+'" duplicated.',ut(_)),l[m]=y}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=Zy(i,er);t.__isBuiltIn&&(e.getRawDataItem=function(p){return h(n,a,s,p)},e.getRawData=K(CM,null,r)),e.cloneRawData=K(AM,null,r);var c=$y(i,er);e.count=K(c,null,n,a,s);var v=Xy(i);e.retrieveValue=function(p,g){var m=h(n,a,s,p);return d(m,g)};var d=e.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return v(p,g,m.name)}};return e.getDimensionInfo=K(MM,null,s,l),e.cloneAllDimensionInfo=K(DM,null,s),e}function CM(r){var t=r.sourceFormat;if(!gv(t)){var e="";e="`getRawData` is not supported in source format "+t,ut(e)}return r.data}function AM(r){var t=r.sourceFormat,e=r.data;if(!gv(t)){var n="";n="`cloneRawData` is not supported in source format "+t,ut(n)}if(t===ee){for(var i=[],a=0,o=e.length;a<o;a++)i.push(e[a].slice());return i}else if(t===Re){for(var i=[],a=0,o=e.length;a<o;a++)i.push(N({},e[a]));return i}}function MM(r,t,e){if(e!=null){if(pt(e)||!isNaN(e)&&!mr(t,e))return r[e];if(mr(t,e))return t[e]}}function DM(r){return rt(r)}var Jy=Q();function IM(r){r=rt(r);var t=r.type,e="";t||(e="Must have a `type` when `registerTransform`.",ut(e));var n=t.split(":");n.length!==2&&(e='Name must include namespace like "ns:regression".',ut(e));var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),r.__isBuiltIn=i,Jy.set(t,r)}function LM(r,t,e){var n=Dt(r),i=n.length,a="";i||(a="If `transform` declared, it should at least contain one transform.",ut(a));for(var o=0,s=i;o<s;o++){var l=n[o];t=PM(l,t,e,i===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function PM(r,t,e,n){var i="";t.length||(i="Must have at least one upstream dataset.",ut(i)),Y(r)||(i="transform declaration must be an object rather than "+typeof r+".",ut(i));var a=r.type,o=Jy.get(a);o||(i='Can not find transform on type "'+a+'".',ut(i));var s=G(t,function(f){return TM(f,o)}),l=Dt(o.transform({upstream:s[0],upstreamList:s,config:rt(r.config)}));if(r.print){var u=G(l,function(f){var h=n!=null?" === pipe index: "+n:"";return["=== dataset index: "+e.datasetIndex+h+" ===","- transform result data:",le(f.data),"- transform result dimensions:",le(f.dimensions)].join(`
  32. `)}).join(`
  33. `);wb(u)}return G(l,function(f,h){var c="";Y(f)||(c="A transform should not return some empty results.",ut(c)),f.data||(c="Transform result data should be not be null or undefined",ut(c));var v=Wy(f.data);gv(v)||(c="Transform result data should be array rows or object rows.",ut(c));var d,p=t[0];if(p&&h===0&&!f.dimensions){var g=p.startIndex;g&&(f.data=p.data.slice(0,g).concat(f.data)),d={seriesLayoutBy:er,sourceHeader:g,dimensions:p.metaRawOption.dimensions}}else d={seriesLayoutBy:er,sourceHeader:0,dimensions:f.dimensions};return Qf(f.data,d,null)})}function gv(r){return r===ee||r===Re}var Il="undefined",RM=typeof Uint32Array===Il?Array:Uint32Array,EM=typeof Uint16Array===Il?Array:Uint16Array,jy=typeof Int32Array===Il?Array:Int32Array,$d=typeof Float64Array===Il?Array:Float64Array,t_={float:$d,int:jy,ordinal:Array,number:Array,time:$d},Lu;function ji(r){return r>65535?RM:EM}function jn(){return[1/0,-1/0]}function OM(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Xd(r,t,e,n,i){var a=t_[e||"float"];if(i){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new a(n)}var Jf=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Q()}return r.prototype.initData=function(t,e,n){X($(t.getItem)&&$(t.count),"Invalid data provider."),this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=Lu[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[];var o=Uy(i);this._dimensions=G(e,function(s){return o&&X(s.property!=null),{type:s.type,property:s.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===e)return a}else a=i.length;return i[a]={type:e},n.set(t,a),this._chunks[a]=new t_[e||"float"](this._rawCount),this._rawExtent[a]=jn(),a},r.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=jn());for(var l=a[t],u=o;u<s;u++){var f=n[u]=e.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=e,i.ordinalOffset=s,i.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){X(!this._indices,"appendData can only be called on raw data.");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]},r.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<a;u++){var f=i[u];Xd(n,u,f.type,l,!0)}for(var h=[],c=s;c<l;c++)for(var v=c-s,d=0;d<a;d++){var f=i[d],p=Lu.arrayRows.call(this,t[v]||h,f.property,v,d);n[d][c]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=G(o,function(y){return y.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=jn()),Xd(a,f,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,a,l);else for(var c=[],v=t;v<e;v++){c=i.getItem(v,c);for(var d=0;d<s;d++){var p=a[d],g=this._dimValueGetter(c,u[d],v,d);p[v]=g;var m=l[d];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.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},r.prototype.getValues=function(t,e){var n=[],i=[];if(e==null){e=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],e));return n},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(t){var e=[];this.each([t],function(a){isNaN(a)||e.push(a)});var n=e.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},r.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(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(e[o]<t)i=o+1;else if(e[o]>t)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f<h;f++){var c=this.getRawIndex(f),v=e-a[c],d=Math.abs(v);d<=n&&((d<s||d===s&&v>=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=f))}return o.length=u,o},r.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 a=0;a<i;a++)t[a]=e[a]}else t=new n(e.buffer,0,i)}else{var n=ji(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=ji(n._rawCount),o=new a(i),s=[],l=t.length,u=0,f=t[0],h=n._chunks,c=0;c<i;c++){var v=void 0,d=n.getRawIndex(c);if(l===0)v=e(c);else if(l===1){var p=h[f][d];v=e(p,c)}else{for(var g=0;g<l;g++)s[g]=h[t[g]][d];s[g]=c,v=e.apply(null,s)}v&&(o[u++]=d)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},r.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=xt(t),a=i.length;if(!a)return this;var o=e.count(),s=ji(e._rawCount),l=new s(o),u=0,f=i[0],h=t[f][0],c=t[f][1],v=e._chunks,d=!1;if(!e._indices){var p=0;if(a===1){for(var g=v[i[0]],m=0;m<n;m++){var y=g[m];(y>=h&&y<=c||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(a===2){for(var g=v[i[0]],_=v[i[1]],S=t[i[1]][0],x=t[i[1]][1],m=0;m<n;m++){var y=g[m],w=_[m];(y>=h&&y<=c||isNaN(y))&&(w>=S&&w<=x||isNaN(w))&&(l[u++]=p),p++}d=!0}}if(!d)if(a===1)for(var m=0;m<o;m++){var b=e.getRawIndex(m),y=v[i[0]][b];(y>=h&&y<=c||isNaN(y))&&(l[u++]=b)}else for(var m=0;m<o;m++){for(var T=!0,b=e.getRawIndex(m),C=0;C<a;C++){var D=i[C],y=v[D][b];(y<t[D][0]||y>t[D][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(m))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,n){for(var i=t._chunks,a=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<e.length;f++)u[e[f]]=jn();for(var h=0;h<s;h++){for(var c=t.getRawIndex(h),v=0;v<o;v++)l[v]=i[e[v]][c];l[o]=h;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var p=e[f],g=d[f],m=u[p],y=i[p];y&&(y[c]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,h,c,v=new(ji(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),m=(g+p)/2,y=0,_=p;_<g;_++){var S=this.getRawIndex(_),x=a[S];isNaN(x)||(y+=x)}y/=g-p;var w=d,b=Math.min(d+l,o),T=d-1,C=a[u];f=-1,c=w;for(var D=-1,M=0,_=w;_<b;_++){var S=this.getRawIndex(_),x=a[S];if(isNaN(x)){M++,D<0&&(D=S);continue}h=Math.abs((T-m)*(x-C)-(T-_)*(y-C)),h>f&&(f=h,c=S)}M>0&&M<b-w&&(v[s++]=Math.min(D,c),c=Math.max(D,c)),v[s++]=c,u=c}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},r.prototype.downSample=function(t,e,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/e),u=o[t],f=this.count(),h=a._rawExtent[t]=jn(),c=new(ji(this._rawCount))(Math.ceil(f/l)),v=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var m=n(s),y=this.getRawIndex(Math.min(d+i(s,m)||0,f-1));u[y]=m,m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m),c[v++]=y}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(!!this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:e(a);break;case 1:e(i[t[0]][s],a);break;case 2:e(i[t[0]][s],i[t[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[t[l]][s];u[l]=a,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],n=jn();if(!e)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var f=this.getRawIndex(u),h=e[f];h<s&&(s=h),h>l&&(l=h)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][e]);return n},r.prototype.clone=function(t,e){var n=new r,i=this._chunks,a=t&&Wr(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?OM(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),e||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=rt(this._extent),t._rawExtent=rt(this._rawExtent)},r.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},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,i,a){return cs(e[a],this._dimensions[a])}Lu={arrayRows:t,objectRows:function(e,n,i,a){return cs(e[n],this._dimensions[a])},keyedColumns:t,original:function(e,n,i,a){var o=e&&(e.value==null?e:e.value);return cs(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,n,i,a){return e[a]}}}(),r}(),e_=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,i,a;if(ta(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=se(s)?gr:Pe,a=[];var h=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},v=vt(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=vt(h.sourceHeader,c.sourceHeader),p=vt(h.dimensions,c.dimensions),g=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||p;i=g?[Qf(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(e);i=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);i=[Qf(_,this._getSourceMetaRawOption(),null)],a=[]}}X(i&&a),this._setLocalSource(i,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(X(i!=null||n!=null),i!=null){var a="";t.length!==1&&(a="When using `fromTransformResult`, there should be only one upstream dataset",Kd(a))}var o,s=[],l=[];return A(t,function(u){u.prepareSource();var f=u.getSource(i||0),h="";i!=null&&!f&&(h="Can not retrieve result by `fromTransformResult`: "+i,Kd(h)),s.push(f),l.push(u._getVersionSign())}),n?o=LM(n,s,{datasetIndex:e.componentIndex}):i!=null&&(o=[fM(s[0])]),{sourceList:o,upstreamSignList:l}},r.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}},r.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},r.prototype.getSharedDataStore=function(t){X(ta(this._sourceHost),"Can only call getDataStore on series source manager.");var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];ta(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,n):(s=new Jf,s.initData(new Yy(e,t.length),t)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(ta(t)){var e=fv(t);return e?[e.getSourceManager()]:[]}else return G(OA(t),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,n,i;if(ta(t))e=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;e=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:n,dimensions:i}},r}();function qd(r){var t=r.option.transform;t&&_s(r.option.transform)}function ta(r){return r.mainType==="series"}function Kd(r){throw new Error(r)}var r_="line-height:1";function n_(r,t){var e=r.color||"#6e7079",n=r.fontSize||12,i=r.fontWeight||"400",a=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Ce(n+"")+"px;color:"+Ce(e)+";font-weight:"+Ce(i+""),valueStyle:"font-size:"+Ce(o+"")+"px;color:"+Ce(a)+";font-weight:"+Ce(s+"")}:{nameStyle:{fontSize:n,fill:e,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var kM=[0,10,20,30],BM=["",`
  34. `,`
  35. `,`
  36. `];function Ya(r,t){return t.type=r,t}function jf(r){return r.type==="section"}function i_(r){return jf(r)?NM:FM}function a_(r){if(jf(r)){var t=0,e=r.blocks.length,n=e>1||e>0&&!r.noHeader;return A(r.blocks,function(i){var a=a_(i);a>=t&&(t=a+ +(n&&(!a||jf(i)&&!i.noHeader)))}),t}return 0}function NM(r,t,e,n){var i=t.noHeader,a=zM(a_(t)),o=[],s=t.blocks||[];X(!s||z(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(mr(u,l)){var f=new Qy(u[l],null);s.sort(function(d,p){return f.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(d,p){var g=t.valueFormatter,m=i_(d)(g?N(N({},r),{valueFormatter:g}):r,d,p>0?a.html:0,n);m!=null&&o.push(m)});var h=r.renderMode==="richText"?o.join(a.richText):th(o.join(""),i?e:a.html);if(i)return h;var c=Xf(t.header,"ordinal",r.useUTC),v=n_(n,r.renderMode).nameStyle;return r.renderMode==="richText"?o_(r,c,v)+a.richText+h:th('<div style="'+v+";"+r_+';">'+Ce(c)+"</div>"+h,e)}function FM(r,t,e,n){var i=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=z(S)?S:[S],G(S,function(x,w){return Xf(x,z(v)?v[w]:v,u)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),c=a?"":Xf(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value),p=!s||!a,g=!s&&a,m=n_(n,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":h)+(a?"":o_(r,c,y))+(o?"":HM(r,d,p,g,_)):th((s?"":h)+(a?"":VM(c,!s,y))+(o?"":GM(d,p,g,_)),e)}}function Qd(r,t,e,n,i,a){if(!!r){var o=i_(r),s={useUTC:i,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function zM(r){return{html:kM[r],richText:BM[r]}}function th(r,t){var e='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+r_+';">'+r+e+"</div>"}function VM(r,t,e){var n=t?"margin-left:2px":"";return'<span style="'+e+";"+n+'">'+Ce(r)+"</span>"}function GM(r,t,e,n){var i=e?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return r=z(r)?r:[r],'<span style="'+a+";"+n+'">'+G(r,function(o){return Ce(o)}).join("&nbsp;&nbsp;")+"</span>"}function o_(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function HM(r,t,e,n,i){var a=[i],o=n?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(z(t)?t.join(" "):t,a)}function WM(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return Bn(n)}function s_(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var Pu=function(){function r(){this.richTextStyles={},this._nextStyleNameId=v0()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var i=n==="richText"?this._generateStyleName():null,a=TA({color:e,type:t,renderMode:n,markerId:i});return W(a)?a:(X(i),this.richTextStyles[i]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};z(e)?A(e,function(a){return N(n,a)}):N(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},r}();function UM(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),l=z(s),u=WM(t,e),f,h,c,v;if(o>1||l&&!o){var d=YM(s,t,e,a,u);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);v=f=Li(i,e,a[0]),h=p.type}else v=f=l?s[0]:s;var g=Uh(t),m=g&&t.name||"",y=i.getName(e),_=n?m:y;return Ya("section",{header:m,noHeader:n||!g,sortParam:v,blocks:[Ya("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Qe(_),value:f,valueType:h})].concat(c||[])})}function YM(r,t,e,n,i){var a=t.getData(),o=Wr(r,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?A(n,function(h){f(Li(a,e,h),h)}):A(r,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?u.push(Ya("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:h,valueType:v.type})):(s.push(h),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Dr=bt();function Oo(r,t){return r.getName(t)||r.getId(t)}var ds="__universalTransitionEnabled",Ll=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,i){this.seriesIndex=this.componentIndex,this.dataTask=La({count:$M,reset:XM}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i);var a=Dr(this).sourceManager=new e_(this);a.prepareSource();var o=this.getInitialData(e,i);jd(o,this),this.dataTask.context.data=o,X(o,"getInitialData returned invalid data."),Dr(this).dataBeforeProcessed=o,Jd(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=Wa(this),a=i?so(e):{},o=this.subType;yt.hasClass(o)&&(o+="Series"),it(e,n.getTheme().get(this.subType)),it(e,this.getDefaultOption()),Nf(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&Ii(e,a,i)},t.prototype.mergeOption=function(e,n){e=it(this.option,e,!0),this.fillDataTextStyle(e.data);var i=Wa(this);i&&Ii(this.option,e,i);var a=Dr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,n);jd(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Dr(this).dataBeforeProcessed=o,Jd(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!se(e))for(var n=["show"],i=0;i<e.length;i++)e[i]&&e[i].label&&Nf(e[i],"label",n)},t.prototype.getInitialData=function(e,n){},t.prototype.appendData=function(e){var n=this.getRawData();n.appendData(e.data)},t.prototype.getData=function(e){var n=eh(this);if(n){var i=n.context.data;return e==null?i:i.getLinkedData(e)}else return Dr(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var n=eh(this);if(n){var i=n.context;i.outputData=e,n!==this.dataTask&&(i.data=e)}Dr(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return Q(e)},t.prototype.getSourceManager=function(){return Dr(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Dr(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,n,i){return UM({series:this,dataIndex:e,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(st.node&&!(e&&e.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,i){var a=this.ecModel,o=hv.prototype.getColorFromPalette.call(this,e,n,i);return o||(o=a.getColorFromPalette(e,n,i)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var i=this.option.selectedMap;if(!!i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=Oo(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,n){for(var i=[],a=0;a<e.length;a++)i[0]=e[a],this.isSelected(e[a],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,n=xt(e),i=[],a=0;a<n.length;a++){var o=e[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(e,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Oo(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[ds])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Y(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var h=n[f],c=Oo(e,h);u[c]=!0,this._selectedDataIndicesMap[c]=e.getRawIndex(h)}}else if(s==="single"||s===!0){var v=n[l-1],c=Oo(e,v);o.selectedMap=(i={},i[c]=!0,i),this._selectedDataIndicesMap=(a={},a[c]=e.getRawIndex(v),a)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var n=[];e.hasItemOption&&e.each(function(i){var a=e.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(e,n)}},t.registerClass=function(e){return yt.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(yt);ir(Ll,mM);ir(Ll,hv);S0(Ll,yt);function Jd(r){var t=r.name;Uh(r)||(r.name=ZM(r)||t)}function ZM(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return A(e,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function $M(r){return r.model.getRawData().count()}function XM(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),qM}function qM(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function jd(r,t){A(Yw(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,ft(KM,t))})}function KM(r,t){var e=eh(r);return e&&e.setOutputEnd((t||this).count()),t}function eh(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(r.uid))}return n}}var $r=Ll,mv=function(){function r(){this.group=new It,this.uid=oo("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){},r.prototype.updateLayout=function(t,e,n,i){},r.prototype.updateVisual=function(t,e,n,i){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();Zh(mv);ul(mv);var Ie=mv;function yv(){var r=bt();return function(t){var e=r(t),n=t.pipelineContext,i=!!e.large,a=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var l_=bt(),QM=yv(),_v=function(){function r(){this.group=new It,this.uid=oo("viewChart"),this.renderTask=La({plan:JM,reset:jM}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){throw new Error("render method must been implemented")},r.prototype.highlight=function(t,e,n,i){var a=t.getData(i&&i.dataType);if(!a){Xt("Unknown dataType "+i.dataType);return}ep(a,i,"emphasis")},r.prototype.downplay=function(t,e,n,i){var a=t.getData(i&&i.dataType);if(!a){Xt("Unknown dataType "+i.dataType);return}ep(a,i,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.eachRendered=function(t){_l(this.group,t)},r.markUpdateMethod=function(t,e){l_(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function tp(r,t,e){r&&Di(r)&&(t==="emphasis"?Ai:Mi)(r,e)}function ep(r,t,e){var n=On(r,t),i=t&&t.highlightKey!=null?nC(t.highlightKey):null;n!=null?A(Dt(n),function(a){tp(r.getItemGraphicEl(a),e,i)}):r.eachItemGraphicEl(function(a){tp(a,e,i)})}Zh(_v,["dispose"]);ul(_v);function JM(r){return QM(r.model)}function jM(r){var t=r.model,e=r.ecModel,n=r.api,i=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=i&&l_(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,i),tD[l]}var tD={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},rr=_v,Fs="\0__throttleOriginMethod",rp="\0__throttleRate",np="\0__throttleType";function Sv(r,t,e){var n,i=0,a=0,o=null,s,l,u,f;t=t||0;function h(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var c=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];n=new Date().getTime(),l=this,u=v;var p=f||t,g=f||e;f=null,s=n-(g?i:a)-p,clearTimeout(o),g?o=setTimeout(h,p):s>=0?h():o=setTimeout(h,-s),i=n};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function Pl(r,t,e,n){var i=r[t];if(!!i){var a=i[Fs]||i,o=i[np],s=i[rp];if(s!==e||o!==n){if(e==null||!n)return r[t]=a;i=r[t]=Sv(a,e,n==="debounce"),i[Fs]=a,i[np]=n,i[rp]=e}return i}}function zs(r,t){var e=r[t];e&&e[Fs]&&(e.clear&&e.clear(),r[t]=e[Fs])}var ip=bt(),ap={itemStyle:Fa(_y,!0),lineStyle:Fa(yy,!0)},eD={lineStyle:"stroke",itemStyle:"fill"};function u_(r,t){var e=r.visualStyleMapper||ap[t];return e||(console.warn("Unkown style type '"+t+"'."),ap.itemStyle)}function f_(r,t){var e=r.visualDrawType||eD[t];return e||(console.warn("Unkown style type '"+t+"'."),"fill")}var rD={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),a=u_(r,n),o=a(i),s=i.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=f_(r,n),u=o[l],f=$(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=c,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||$(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||$(o.stroke)?c:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),g=N({},o);g[l]=f(p),v.setItemVisual(d,"style",g)}}}},ea=new Vt,nD={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=u_(r,n),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){ea.option=l[n];var u=i(ea),f=o.ensureUniqueItemVisual(s,"style");N(f,u),ea.option.decal&&(o.setItemVisual(s,"decal",ea.option.decal),ea.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},iD={performRawSeries:!0,overallReset:function(r){var t=Q();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),ip(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),i={},a=e.getData(),o=ip(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=f_(e,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",d=n.count();c[l]=e.getColorFromPalette(v,o,d)}})}})}},ko=Math.PI;function aD(r,t){t=t||{},tt(t,{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 e=new It,n=new wt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var i=new kt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new wt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new jh({shape:{startAngle:-ko/2,endAngle:-ko/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:ko*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:ko*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var oD=function(){function r(t,e,n,i){this._stageTaskMap=Q(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(t,e){if(!!t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Q();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;A(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";o='"reset" and "overallReset" must not be both specified.',X(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,e,n),i.overallReset&&this._createOverallStageTask(i,a,e,n)},this)},r.prototype.prepareView=function(t,e,n,i){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,i){i=i||{};var a=!1,o=this;A(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(g){s(i,g)&&(g.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,n);var p=o.getPerformArgs(c,i.block);d.each(function(g){g.perform(p)}),c.perform(p)&&(a=!0)}else h&&h.each(function(g,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.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)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,i){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=Q(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||La({plan:hD,reset:vD,count:dD}));v.context={model:h,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,v)}},r.prototype._createOverallStageTask=function(t,e,n,i){var a=this,o=e.overallTask=e.overallTask||La({reset:sD});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Q(),u=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";v='"createOnAllSeries" do not supported for "overallReset", becuase it will block all streams.',X(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):(h=!1,A(n.getSeries(),d));function d(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(c=!0,La({reset:lD,onDirty:fD})));m.context={model:p,overallProgress:h},m.agent=o,m.__block=h,a._pipe(p,m)}c&&o.dirty()},r.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},r.wrapStageHandler=function(t,e){return $(t)&&(t={overallReset:t,seriesType:pD(t)}),t.uid=oo("stageHandler"),e&&(t.visualType=e),t},r}();function sD(r){r.overallReset(r.ecModel,r.api,r.payload)}function lD(r){return r.overallProgress&&uD}function uD(){this.agent.dirty(),this.getDownstream().dirty()}function fD(){this.agent&&this.agent.dirty()}function hD(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function vD(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Dt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?G(t,function(e,n){return h_(n)}):cD}var cD=h_(0);function h_(r){return function(t,e){var n=e.data,i=e.resetDefines[r];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function dD(r){return r.data.count()}function pD(r){Vs=null;try{r(Za,v_)}catch{}return Vs}var Za={},v_={},Vs;c_(Za,zy);c_(v_,Vy);Za.eachSeriesByType=Za.eachRawSeriesByType=function(r){Vs=r};Za.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Vs=r.subType)};function c_(r,t){for(var e in t.prototype)r[e]=jt}var d_=oD,op=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],gD={color:op,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],op]},qt="#B9B8CE",sp="#100C2A",Bo=function(){return{axisLine:{lineStyle:{color:qt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},lp=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],p_={darkMode:!0,color:lp,backgroundColor:sp,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:qt}},textStyle:{color:qt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:qt}},dataZoom:{borderColor:"#71708A",textStyle:{color:qt},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:qt}},timeline:{lineStyle:{color:qt},label:{color:qt},controlStyle:{color:qt,borderColor:qt}},calendar:{itemStyle:{color:sp},dayLabel:{color:qt},monthLabel:{color:qt},yearLabel:{color:qt}},timeAxis:Bo(),logAxis:Bo(),valueAxis:Bo(),categoryAxis:Bo(),line:{symbol:"circle"},graph:{color:lp},gauge:{title:{color:qt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:qt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};p_.categoryAxis.splitLine.show=!1;var mD=p_,yD=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},n={},i={};if(W(t)){var a=Je(t);e.mainType=a.main||null,e.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};A(t,function(l,u){for(var f=!1,h=0;h<o.length;h++){var c=o[h],v=u.lastIndexOf(c);if(v>0&&v===u.length-c.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[c.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,i,a));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),rh=["symbol","symbolSize","symbolRotate","symbolOffset"],up=rh.concat(["symbolKeepAspect"]),_D={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<rh.length;o++){var s=rh[o],l=r.get(s);$(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,e.setVisual(N({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),t.isSeriesFiltered(r))return;var u=xt(i);function f(h,c){for(var v=r.getRawValue(c),d=r.getDataParams(c),p=0;p<u.length;p++){var g=u[p];h.setItemVisual(c,g,i[g](v,d))}}return{dataEach:a?f:null}}},SD={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<up.length;s++){var l=up[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:e.hasItemOption?n:null}}};function wD(r,t,e){switch(e){case"color":var n=r.getItemVisual(t,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e);default:console.warn("Unknown visual type "+e)}}function xD(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t);default:console.warn("Unknown visual type "+t)}}function bD(r,t){function e(n,i){var a=[];return n.eachComponent({mainType:"series",subType:r,query:i},function(o){a.push(o.seriesIndex)}),a}A([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=N({},i),Ot(i.type,n[1]),o.dispatchAction(N(i,{type:n[1],seriesIndex:e(a,i)}))})})}function ti(r,t,e,n,i){var a=r+t;e.isSilent(a)||(Ve("event "+a+" is deprecated."),n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var h=o.getData(),c=On(h,i.fromActionPayload);e.trigger(a,{type:a,seriesId:o.id,name:z(c)?h.getName(c[0]):h.getName(c),selected:W(l)?l:N({},l)})}}))}function TD(r,t,e){r.on("selectchanged",function(n){var i=e.getModel();n.isFromClick?(ti("map","selectchanged",t,i,n),ti("pie","selectchanged",t,i,n)):n.fromAction==="select"?(ti("map","selected",t,i,n),ti("pie","selected",t,i,n)):n.fromAction==="unselect"&&(ti("map","unselected",t,i,n),ti("pie","unselected",t,i,n))})}function xa(r,t,e){for(var n;r&&!(t(r)&&(n=r,e));)r=r.__hostTarget||r.parent;return n}var CD=Math.round(Math.random()*9),AD=typeof Object.defineProperty=="function",MD=function(){function r(){this._id="__ec_inner_"+CD++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var n=this._guard(t);return AD?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r}(),DD=MD,ID=lt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,i=t.width/2,a=t.height/2;r.moveTo(e,n-a),r.lineTo(e+i,n+a),r.lineTo(e-i,n+a),r.closePath()}}),LD=lt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,i=t.width/2,a=t.height/2;r.moveTo(e,n-a),r.lineTo(e+i,n),r.lineTo(e,n+a),r.lineTo(e-i,n),r.closePath()}}),PD=lt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,h=Math.sin(u),c=Math.cos(u),v=o*.6,d=o*.7;r.moveTo(e-f,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+f-h*v,l+s+c*v,e,n-d,e,n),r.bezierCurveTo(e,n-d,e-f+h*v,l+s+c*v,e-f,l+s),r.closePath()}}),RD=lt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;r.moveTo(i,a),r.lineTo(i+o,a+e),r.lineTo(i,a+e/4*3),r.lineTo(i-o,a+e),r.lineTo(i,a),r.closePath()}}),ED={line:kn,rect:wt,roundRect:wt,square:wt,circle:Jh,diamond:LD,pin:PD,arrow:RD,triangle:ID},OD={line:function(r,t,e,n,i){i.x1=r,i.y1=t+n/2,i.x2=r+e,i.y2=t+n/2},rect:function(r,t,e,n,i){i.x=r,i.y=t,i.width=e,i.height=n},roundRect:function(r,t,e,n,i){i.x=r,i.y=t,i.width=e,i.height=n,i.r=Math.min(e,n)/4},square:function(r,t,e,n,i){var a=Math.min(e,n);i.x=r,i.y=t,i.width=a,i.height=a},circle:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.r=Math.min(e,n)/2},diamond:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.width=e,i.height=n},pin:function(r,t,e,n,i){i.x=r+e/2,i.y=t+n/2,i.width=e,i.height=n},arrow:function(r,t,e,n,i){i.x=r+e/2,i.y=t+n/2,i.width=e,i.height=n},triangle:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.width=e,i.height=n}},Gs={};A(ED,function(r,t){Gs[t]=new r});var kD=lt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var n=As(r,t,e),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=e.y+e.height*.4),n},buildPath:function(r,t,e){var n=t.symbolType;if(n!=="none"){var i=Gs[n];i||(n="rect",i=Gs[n]),OD[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(r,i.shape,e)}}});function BD(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||"#fff",e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function Xr(r,t,e,n,i,a,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=hy(r.slice(8),new ct(t,e,n,i),o?"center":"cover"):r.indexOf("path://")===0?l=rv(r.slice(7),{},new ct(t,e,n,i),o?"center":"cover"):l=new kD({shape:{symbolType:r,x:t,y:e,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=BD,a&&l.setColor(a),l}function ND(r){return z(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function g_(r,t){if(r!=null)return z(r)||(r=[r,r]),[St(r[0],t[0])||0,St(vt(r[1],r[0]),t[1])||0]}function Tn(r){return isFinite(r)}function FD(r,t,e){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*e.width+e.x,i=i*e.width+e.x,a=a*e.height+e.y,o=o*e.height+e.y),n=Tn(n)?n:0,i=Tn(i)?i:1,a=Tn(a)?a:0,o=Tn(o)?o:0;var s=r.createLinearGradient(n,a,i,o);return s}function zD(r,t,e){var n=e.width,i=e.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+e.x,s=s*i+e.y,l=l*a),o=Tn(o)?o:.5,s=Tn(s)?s:.5,l=l>=0&&Tn(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function nh(r,t,e){for(var n=t.type==="radial"?zD(r,t,e):FD(r,t,e),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function VD(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function No(r){return parseInt(r,10)}function Fo(r,t,e){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[n]!=null&&e[n]!=="auto")return parseFloat(e[n]);var s=document.defaultView.getComputedStyle(r);return(r[i]||No(s[n])||No(r.style[n]))-(No(s[a])||0)-(No(s[o])||0)|0}function GD(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:pt(r)?[r]:z(r)?r:null}function m_(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&GD(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var i=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(e=G(e,function(a){return a/i}),n/=i)}return[e,n]}var HD=new _r(!0);function Hs(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function fp(r){return typeof r=="string"&&r!=="none"}function Ws(r){var t=r.fill;return t!=null&&t!=="none"}function hp(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function vp(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function ih(r,t,e){var n=w0(t.image,t.__image,e);if(fl(n)){var i=r.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Zw),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function WD(r,t,e,n){var i,a=Hs(e),o=Ws(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||HD,h=t.__dirty;if(!n){var c=e.fill,v=e.stroke,d=o&&!!c.colorStops,p=a&&!!v.colorStops,g=o&&!!c.image,m=a&&!!v.image,y=void 0,_=void 0,S=void 0,x=void 0,w=void 0;(d||p)&&(w=t.getBoundingRect()),d&&(y=h?nh(r,c,w):t.__canvasFillGradient,t.__canvasFillGradient=y),p&&(_=h?nh(r,v,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=h||!t.__canvasFillPattern?ih(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=S),m&&(x=h||!t.__canvasStrokePattern?ih(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?r.fillStyle=y:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:m&&(x?r.strokeStyle=x:a=!1)}var b=t.getGlobalScale();f.setScale(b[0],b[1],t.segmentIgnoreThreshold);var T,C;r.setLineDash&&e.lineDash&&(i=m_(t),T=i[0],C=i[1]);var D=!0;(u||h&li)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),D=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),D&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=C),n||(e.strokeFirst?(a&&vp(r,e),o&&hp(r,e)):(o&&hp(r,e),a&&vp(r,e))),T&&r.setLineDash([])}function UD(r,t,e){var n=t.__image=w0(e.image,t.__image,t,t.onload);if(!(!n||!fl(n))){var i=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(n,u,f,e.sWidth,e.sHeight,i,a,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,h=o-u,c=s-f;r.drawImage(n,u,f,h,c,i,a,o,s)}else r.drawImage(n,i,a,o,s)}}function YD(r,t,e){var n,i=e.text;if(i!=null&&(i+=""),i){r.font=e.font||Rn,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=m_(t),a=n[0],o=n[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(Hs(e)&&r.strokeText(i,e.x,e.y),Ws(e)&&r.fillText(i,e.x,e.y)):(Ws(e)&&r.fillText(i,e.x,e.y),Hs(e)&&r.strokeText(i,e.x,e.y)),a&&r.setLineDash([])}}var cp=["shadowBlur","shadowOffsetX","shadowOffsetY"],dp=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function y_(r,t,e,n,i){var a=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){oe(r,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?Dn.opacity:o}(n||t.blend!==e.blend)&&(a||(oe(r,i),a=!0),r.globalCompositeOperation=t.blend||Dn.blend);for(var s=0;s<cp.length;s++){var l=cp[s];(n||t[l]!==e[l])&&(a||(oe(r,i),a=!0),r[l]=r.dpr*(t[l]||0))}return(n||t.shadowColor!==e.shadowColor)&&(a||(oe(r,i),a=!0),r.shadowColor=t.shadowColor||Dn.shadowColor),a}function pp(r,t,e,n,i){var a=$a(t,i.inHover),o=n?null:e&&$a(e,i.inHover)||{};if(a===o)return!1;var s=y_(r,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(oe(r,i),s=!0),fp(a.fill)&&(r.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(oe(r,i),s=!0),fp(a.stroke)&&(r.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(oe(r,i),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(oe(r,i),s=!0),r.lineWidth=u)}for(var f=0;f<dp.length;f++){var h=dp[f],c=h[0];(n||a[c]!==o[c])&&(s||(oe(r,i),s=!0),r[c]=a[c]||h[1])}return s}function ZD(r,t,e,n,i){return y_(r,$a(t,i.inHover),e&&$a(e,i.inHover),n,i)}function __(r,t){var e=t.transform,n=r.dpr||1;e?r.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):r.setTransform(n,0,0,n,0,0)}function $D(r,t,e){for(var n=!1,i=0;i<r.length;i++){var a=r[i];n=n||a.isZeroArea(),__(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}e.allClipped=n}function XD(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var gp=1,mp=2,yp=3,_p=4;function qD(r){var t=Ws(r),e=Hs(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function oe(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function $a(r,t){return t&&r.__hoverStyle||r.style}function S_(r,t){Cn(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Cn(r,t,e,n){var i=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~ce,t.__isRendered=!1;return}var a=t.__clipPaths,o=e.prevElClipPaths,s=!1,l=!1;if((!o||VD(a,o))&&(o&&o.length&&(oe(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),a&&a.length&&(oe(r,e),r.save(),$D(a,r,e),s=!0),e.prevElClipPaths=a),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var f=t instanceof lt&&t.autoBatch&&qD(t.style);s||XD(i,u.transform)?(oe(r,e),__(r,t)):f||oe(r,e);var h=$a(t,e.inHover);t instanceof lt?(e.lastDrawType!==gp&&(l=!0,e.lastDrawType=gp),pp(r,t,u,l,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),WD(r,t,h,f),f&&(e.batchFill=h.fill||"",e.batchStroke=h.stroke||"")):t instanceof Gf?(e.lastDrawType!==yp&&(l=!0,e.lastDrawType=yp),pp(r,t,u,l,e),YD(r,t,h)):t instanceof Vn?(e.lastDrawType!==mp&&(l=!0,e.lastDrawType=mp),ZD(r,t,u,l,e),UD(r,t,h)):t.getTemporalDisplayables&&(e.lastDrawType!==_p&&(l=!0,e.lastDrawType=_p),KD(r,t,e)),f&&n&&oe(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function KD(r,t,e){var n=t.getDisplayables(),i=t.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Cn(r,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Cn(r,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var Ru=new DD,Sp=new ja(100),wp=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function ah(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";r.dirty&&Ru.delete(r);var a=Ru.get(r);if(a)return a;var o=tt(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/e,Ru.set(r,s),r.dirty=!1,s;function l(u){for(var f=[e],h=!0,c=0;c<wp.length;++c){var v=o[wp[c]];if(v!=null&&!z(v)&&!W(v)&&!pt(v)&&typeof v!="boolean"){h=!1;break}f.push(v)}var d;if(h){d=f.join(",")+(i?"-svg":"");var p=Sp.get(d);p&&(i?u.svgElement=p:u.image=p)}var g=x_(o.dashArrayX),m=QD(o.dashArrayY),y=w_(o.symbol),_=JD(g),S=b_(m),x=!i&&zn.createCanvas(),w=i&&{tag:"g",attrs:{},key:"dcl",children:[]},b=C(),T;x&&(x.width=b.width*e,x.height=b.height*e,T=x.getContext("2d")),D(),h&&Sp.put(d,x||w),u.image=x,u.svgElement=w,u.svgWidth=b.width,u.svgHeight=b.height;function C(){for(var M=1,I=0,L=_.length;I<L;++I)M=Lc(M,_[I]);for(var P=1,I=0,L=y.length;I<L;++I)P=Lc(P,y[I].length);M*=P;var E=S*_.length*y.length;{var O=function(H){console.warn("Calculated decal size is greater than "+H+" due to decal option settings so "+H+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+H+" to be larger to avoid incontinuity.")};M>o.maxTileWidth&&O("maxTileWidth"),E>o.maxTileHeight&&O("maxTileHeight")}return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(E,o.maxTileHeight))}}function D(){T&&(T.clearRect(0,0,x.width,x.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,x.width,x.height)));for(var M=0,I=0;I<m.length;++I)M+=m[I];if(M<=0)return;for(var L=-S,P=0,E=0,O=0;L<b.height;){if(P%2===0){for(var H=E/2%y.length,k=0,F=0,U=0;k<b.width*2;){for(var q=0,I=0;I<g[O].length;++I)q+=g[O][I];if(q<=0)break;if(F%2===0){var j=(1-o.symbolSize)*.5,nt=k+g[O][F]*j,ht=L+m[P]*j,At=g[O][F]*o.symbolSize,_t=m[P]*o.symbolSize,Gt=U/2%y[H].length;Ht(nt,ht,At,_t,y[H][Gt])}k+=g[O][F],++U,++F,F===g[O].length&&(F=0)}++O,O===g.length&&(O=0)}L+=m[P],++E,++P,P===m.length&&(P=0)}function Ht(Lt,Tt,J,at,We){var Bt=i?1:e,Cr=Xr(We,Lt*Bt,Tt*Bt,J*Bt,at*Bt,o.color,o.symbolKeepAspect);if(i){var sr=n.painter.renderOneToVNode(Cr);sr&&w.children.push(sr)}else S_(T,Cr)}}}}function w_(r){if(!r||r.length===0)return[["rect"]];if(W(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!W(r[e])){t=!1;break}if(t)return w_([r]);for(var n=[],e=0;e<r.length;++e)W(r[e])?n.push([r[e]]):n.push(r[e]);return n}function x_(r){if(!r||r.length===0)return[[0,0]];if(pt(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,n=0;n<r.length;++n)if(!pt(r[n])){e=!1;break}if(e)return x_([r]);for(var i=[],n=0;n<r.length;++n)if(pt(r[n])){var t=Math.ceil(r[n]);i.push([t,t])}else{var t=G(r[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function QD(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(pt(r)){var t=Math.ceil(r);return[t,t]}var e=G(r,function(n){return Math.ceil(n)});return r.length%2?e.concat(e):e}function JD(r){return G(r,function(t){return b_(t)})}function b_(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function jD(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var n=e.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=ah(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=ah(i,t)}}})}var t2=new Le,Be=t2,Us={};function e2(r,t){Us[r]&&Xt("Already has an implementation of "+r+"."),Us[r]=t}function r2(r){return Us[r]||Xt("Implementation of "+r+" doesn't exists."),Us[r]}var xp=typeof window!="undefined",n2=1,i2=800,a2=900,o2=1e3,s2=2e3,l2=5e3,T_=1e3,u2=1100,wv=2e3,C_=3e3,f2=4e3,Rl=4500,h2=4600,v2=5e3,c2=6e3,A_=7e3,d2={PROCESSOR:{FILTER:o2,SERIES_FILTER:i2,STATISTIC:l2},VISUAL:{LAYOUT:T_,PROGRESSIVE_LAYOUT:u2,GLOBAL:wv,CHART:C_,POST_CHART_LAYOUT:h2,COMPONENT:f2,BRUSH:v2,CHART_ITEM:Rl,ARIA:c2,DECAL:A_}},Ut="__flagInMainProcess",ne="__pendingUpdate",Eu="__needsUpdateStatus",bp=/^[a-zA-Z0-9_]+$/,Ou="__connectUpdateStatus",Tp=0,p2=1,g2=2;function M_(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){ve(this.id);return}return I_(this,r,t)}}function D_(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return I_(this,r,t)}}function I_(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),Le.prototype[t].apply(r,e)}var L_=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Le),P_=L_.prototype;P_.on=D_("on");P_.off=D_("off");var ei,ku,zo,Ir,Bu,Nu,Fu,ra,na,Cp,Ap,zu,Mp,Vo,Dp,R_,me,Ip,E_=function(r){B(t,r);function t(e,n,i){var a=r.call(this,new yD)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},W(n)&&(n=O_[n]),a._dom=e;var o="canvas",s=!1;{var l=xp?window:global;o=l.__ECHARTS__DEFAULT__RENDERER__||o;var u=l.__ECHARTS__DEFAULT__USE_DIRTY_RECT__;s=u==null?s:u}var f=a._zr=Dc(e,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:i.useDirtyRect==null?s:i.useDirtyRect});a._ssr=i.ssr,a._throttledZrFlush=Sv(K(f.flush,f),17),n=rt(n),n&&Hy(n,!0),a._theme=n,a._locale=pA(i.locale||Sy),a._coordSysMgr=new vv;var h=a._api=Dp(a);function c(v,d){return v.__prio-d.__prio}return ns(Zs,c),ns(oh,c),a._scheduler=new d_(a,h,oh,Zs),a._messageCenter=new L_,a._initEvents(),a.resize=K(a.resize,a),f.animation.on("frame",a._onframe,a),Cp(f,a),Ap(f,a),_s(a),a}return t.prototype._onframe=function(){if(!this._disposed){Ip(this);var e=this._scheduler;if(this[ne]){var n=this[ne].silent;this[Ut]=!0;try{ei(this),Ir.update.call(this,null,this[ne].updateParams)}catch(l){throw this[Ut]=!1,this[ne]=null,l}this._zr.flush(),this[Ut]=!1,this[ne]=null,ra.call(this,n),na.call(this,n)}else if(e.unfinished){var i=n2,a=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(a),e.performDataProcessorTasks(a),Nu(this,a),e.performVisualTasks(a),Vo(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,i){if(this[Ut]){Xt("`setOption` should not be called during main process.");return}if(this._disposed){ve(this.id);return}var a,o,s;if(Y(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Ut]=!0,!this._model||n){var l=new tM(this._api),u=this._theme,f=this._model=new zy;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},sh);var h={seriesTransition:s,optionChanged:!0};if(i)this[ne]={silent:a,updateParams:h},this[Ut]=!1,this.getZr().wakeUp();else{try{ei(this),Ir.update.call(this,null,h)}catch(c){throw this[ne]=null,this[Ut]=!1,c}this._ssr||this._zr.flush(),this[ne]=null,this[Ut]=!1,ra.call(this,a),na.call(this,a)}},t.prototype.setTheme=function(){Ve("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||xp&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return Ot("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;if(n.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;if(n.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(!!st.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return A(n,function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){ve(this.id);return}e=e||{};var n=e.excludeComponents,i=this._model,a=[],o=this;A(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return A(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){ve(this.id);return}var n=e.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Lp[i]){var l=s,u=s,f=-s,h=-s,c=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();A(Ra,function(_,S){if(_.group===i){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(rt(e)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),f=o(w.right,f),h=o(w.bottom,h),c.push({dom:x,left:w.left,top:w.top})}}),l*=v,u*=v,f*=v,h*=v;var d=f-l,p=h-u,g=zn.createCanvas(),m=Dc(g,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:p}),n){var y="";return A(c,function(_){var S=_.left-l,x=_.top-u;y+='<g transform="translate('+S+","+x+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return e.connectedBackgroundColor&&m.add(new wt({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),A(c,function(_){var S=new Vn({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});m.add(S)}),m.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return Bu(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return Bu(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){ve(this.id);return}var i=this._model,a,o=Ca(i,e);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint?a=a||h.containPoint(n,u):console.warn(l+": "+(h?"The found component do not support containPoint.":"No view mapping to the found component."))}else console.warn(l+": containPoint is not supported")},this)},this),!!a},t.prototype.getVisual=function(e,n){var i=this._model,a=Ca(i,e,{defaultMainType:"series"}),o=a.seriesModel;o||console.warn("There is no specified seires model");var s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?wD(s,l,n):xD(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;A(m2,function(n){var i=function(a){var o=e.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&xa(s,function(d){var p=dt(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType)||{},!0}else if(p.eventData)return l=N({},p.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var c=f&&h!=null&&o.getComponent(f,h),v=c&&e[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];!u&&!(c&&v)&&console.warn("model or view can not be found by params"),l.event=a,l.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:c,view:v},e.trigger(n,l)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)}),A(Pa,function(n,i){e._messageCenter.on(i,function(a){this.trigger(i,a)},e)}),A(["selectchanged"],function(n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),TD(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){ve(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){ve(this.id);return}this._disposed=!0;var e=this.getDom();e&&m0(this.getDom(),bv,"");var n=this,i=n._api,a=n._model;A(n._componentsViews,function(o){o.dispose(a,i)}),A(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Ra[n.id]},t.prototype.resize=function(e){if(this[Ut]){Xt("`resize` should not be called during main process.");return}if(this._disposed){ve(this.id);return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=e&&e.silent;this[ne]&&(a==null&&(a=this[ne].silent),i=!0,this[ne]=null),this[Ut]=!0;try{i&&ei(this),Ir.update.call(this,{type:"resize",animation:N({duration:0},e&&e.animation)})}catch(o){throw this[Ut]=!1,o}this[Ut]=!1,ra.call(this,a),na.call(this,a)}},t.prototype.showLoading=function(e,n){if(this._disposed){ve(this.id);return}if(Y(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!lh[e]){console.warn("Loading effects "+e+" not exists.");return}var i=lh[e](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)},t.prototype.hideLoading=function(){if(this._disposed){ve(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=N({},e);return n.type=Pa[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){ve(this.id);return}if(Y(n)||(n={silent:!!n}),!!Ys[e.type]&&!!this._model){if(this[Ut]){this._pendingActions.push(e);return}var i=n.silent;Fu.call(this,e,i);var a=n.flush;a?this._zr.flush():a!==!1&&st.browser.weChat&&this._throttledZrFlush(),ra.call(this,i),na.call(this,i)}},t.prototype.updateLabelLayout=function(){Be.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){ve(this.id);return}var n=e.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);X(e.data&&a),a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){ei=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),ku(h,!0),ku(h,!1),c.plan()},ku=function(h,c){for(var v=h._model,d=h._scheduler,p=c?h._componentsViews:h._chartsViews,g=c?h._componentsMap:h._chartsMap,m=h._zr,y=h._api,_=0;_<p.length;_++)p[_].__alive=!1;c?v.eachComponent(function(w,b){w!=="series"&&S(b)}):v.eachSeries(S);function S(w){var b=w.__requireNewView;w.__requireNewView=!1;var T="_ec_"+w.id+"_"+w.type,C=!b&&g[T];if(!C){var D=Je(w.type),M=c?Ie.getClass(D.main,D.sub):rr.getClass(D.sub);X(M,D.sub+" does not exist."),C=new M,C.init(v,y),g[T]=C,p.push(C),m.add(C.group)}w.__viewId=C.__id=T,C.__alive=!0,C.__model=w,C.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!c&&d.prepareView(C,w,v,y)}for(var _=0;_<p.length;){var x=p[_];x.__alive?_++:(!c&&x.renderTask.dispose(),m.remove(x.group),x.dispose(v,y),p.splice(_,1),g[x.__id]===x&&delete g[x.__id],x.__id=x.group.__ecComponentInfo=null)}},zo=function(h,c,v,d,p){var g=h._model;if(g.setUpdatePayload(v),!d){A([].concat(h._componentsViews).concat(h._chartsViews),x);return}var m={};m[d+"Id"]=v[d+"Id"],m[d+"Index"]=v[d+"Index"],m[d+"Name"]=v[d+"Name"];var y={mainType:d,query:m};p&&(y.subType=p);var _=v.excludeSeriesId,S;_!=null&&(S=Q(),A(Dt(_),function(w){var b=tr(w,null);b!=null&&S.set(b,!0)})),g&&g.eachComponent(y,function(w){var b=S&&S.get(w.id)!==null;if(!b)if(ld(v))if(w instanceof $r)v.type===In&&!v.notBlur&&!w.get(["emphasis","disabled"])&&qT(w,v,h._api);else{var T=Kh(w.mainType,w.componentIndex,v.name,h._api),C=T.focusSelf,D=T.dispatchers;v.type===In&&C&&!v.notBlur&&Wf(w.mainType,w.componentIndex,h._api),D&&A(D,function(M){v.type===In?Ai(M):Mi(M)})}else Uf(v)&&w instanceof $r&&(JT(w,v,h._api),od(w),me(h))},h),g&&g.eachComponent(y,function(w){var b=S&&S.get(w.id)!==null;b||x(h[d==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},h);function x(w){w&&w.__alive&&w[c]&&w[c](w.__model,g,h._api,v)}},Ir={prepareAndUpdate:function(h){ei(this),Ir.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,c){var v=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(!!v){v.setUpdatePayload(h),m.restoreData(v,h),m.performSeriesTasks(v),g.create(v,d),m.performDataProcessorTasks(v,h),Nu(this,v),g.update(v,d),e(v),m.performVisualTasks(v,h),zu(this,v,d,h,c);var y=v.get("backgroundColor")||"transparent",_=v.get("darkMode");p.setBackgroundColor(y),_!=null&&_!=="auto"&&p.setDarkMode(_),Be.trigger("afterupdate",v,d)}},updateTransform:function(h){var c=this,v=this._model,d=this._api;if(!!v){v.setUpdatePayload(h);var p=[];v.eachComponent(function(m,y){if(m!=="series"){var _=c.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(y,v,d,h);S&&S.update&&p.push(_)}else p.push(_)}});var g=Q();v.eachSeries(function(m){var y=c._chartsMap[m.__viewId];if(y.updateTransform){var _=y.updateTransform(m,v,d,h);_&&_.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),e(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0,dirtyMap:g}),Vo(this,v,d,h,{},g),Be.trigger("afterupdate",v,d)}},updateView:function(h){var c=this._model;!c||(c.setUpdatePayload(h),rr.markUpdateMethod(h,"updateView"),e(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0}),zu(this,c,this._api,h,{}),Be.trigger("afterupdate",c,this._api))},updateVisual:function(h){var c=this,v=this._model;!v||(v.setUpdatePayload(h),v.eachSeries(function(d){d.getData().clearAllVisual()}),rr.markUpdateMethod(h,"updateVisual"),e(v),this._scheduler.performVisualTasks(v,h,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,p){if(d!=="series"){var g=c.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,v,c._api,h)}}),v.eachSeries(function(d){var p=c._chartsMap[d.__viewId];p.updateVisual(d,v,c._api,h)}),Be.trigger("afterupdate",v,this._api))},updateLayout:function(h){Ir.update.call(this,h)}},Bu=function(h,c,v,d){if(h._disposed){ve(h.id);return}for(var p=h._model,g=h._coordSysMgr.getCoordinateSystems(),m,y=Ca(p,v),_=0;_<g.length;_++){var S=g[_];if(S[c]&&(m=S[c](p,y,d))!=null)return m}console.warn("No coordinate system that supports "+c+" found by the given finder.")},Nu=function(h,c){var v=h._chartsMap,d=h._scheduler;c.eachSeries(function(p){d.updateStreamModes(p,v[p.__viewId])})},Fu=function(h,c){var v=this,d=this.getModel(),p=h.type,g=h.escapeConnect,m=Ys[p],y=m.actionInfo,_=(y.update||"update").split(":"),S=_.pop(),x=_[0]!=null&&Je(_[0]);this[Ut]=!0;var w=[h],b=!1;h.batch&&(b=!0,w=G(h.batch,function(P){return P=tt(N({},P),h),P.batch=null,P}));var T=[],C,D=Uf(h),M=ld(h);if(M&&H0(this._api),A(w,function(P){if(C=m.action(P,v._model,v._api),C=C||N({},P),C.type=y.event||C.type,T.push(C),M){var E=Yh(h),O=E.queryOptionMap,H=E.mainTypeSpecified,k=H?O.keys()[0]:"series";zo(v,S,P,k),me(v)}else D?(zo(v,S,P,"series"),me(v)):x&&zo(v,S,P,x.main,x.sub)}),S!=="none"&&!M&&!D&&!x)try{this[ne]?(ei(this),Ir.update.call(this,h),this[ne]=null):Ir[S].call(this,h)}catch(P){throw this[Ut]=!1,P}if(b?C={type:y.event||p,escapeConnect:g,batch:T}:C=T[0],this[Ut]=!1,!c){var I=this._messageCenter;if(I.trigger(C.type,C),D){var L={type:"selectchanged",escapeConnect:g,selected:jT(d),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};I.trigger(L.type,L)}}},ra=function(h){for(var c=this._pendingActions;c.length;){var v=c.shift();Fu.call(this,v,h)}},na=function(h){!h&&this.trigger("updated")},Cp=function(h,c){h.on("rendered",function(v){c.trigger("rendered",v),h.animation.isFinished()&&!c[ne]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},Ap=function(h,c){h.on("mouseover",function(v){var d=v.target,p=xa(d,Di);p&&(KT(p,v,c._api),me(c))}).on("mouseout",function(v){var d=v.target,p=xa(d,Di);p&&(QT(p,v,c._api),me(c))}).on("click",function(v){var d=v.target,p=xa(d,function(y){return dt(y).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=dt(p);c._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function e(h){h.clearColorPalette(),h.eachSeries(function(c){c.clearColorPalette()})}function n(h){var c=[],v=[],d=!1;if(h.eachComponent(function(y,_){var S=_.get("zlevel")||0,x=_.get("z")||0,w=_.getZLevelKey();d=d||!!w,(y==="series"?v:c).push({zlevel:S,z:x,idx:_.componentIndex,type:y,key:w})}),d){var p=c.concat(v),g,m;ns(p,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),A(p,function(y){var _=h.getComponent(y.type,y.idx),S=y.zlevel,x=y.key;g!=null&&(S=Math.max(g,S)),x?(S===g&&x!==m&&S++,m=x):m&&(S===g&&S++,m=""),g=S,_.setZLevel(S)})}}zu=function(h,c,v,d,p){n(c),Mp(h,c,v,d,p),A(h._chartsViews,function(g){g.__alive=!1}),Vo(h,c,v,d,p),A(h._chartsViews,function(g){g.__alive||g.remove(c,v)})},Mp=function(h,c,v,d,p,g){A(g||h._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,c,v,d),s(y,m),f(y,m)})},Vo=function(h,c,v,d,p,g){var m=h._scheduler;p=N(p||{},{updatedSeries:c.getSeries()}),Be.trigger("series:beforeupdate",c,v,p);var y=!1;c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=!0;var x=S.renderTask;m.updatePayload(x,d),u(_,S),g&&g.get(_.uid)&&x.dirty(),x.perform(m.getPerformArgs(x))&&(y=!0),S.group.silent=!!_.get("silent"),o(_,S),od(_)}),m.unfinished=y||m.unfinished,Be.trigger("series:layoutlabels",c,v,p),Be.trigger("series:transition",c,v,p),c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];s(_,S),f(_,S)}),a(h,c),Be.trigger("series:afterupdate",c,v,p)},me=function(h){h[Eu]=!0,h.getZr().wakeUp()},Ip=function(h){!h[Eu]||(h.getZr().storage.traverse(function(c){_i(c)||i(c)}),h[Eu]=!1)};function i(h){for(var c=[],v=h.currentStates,d=0;d<v.length;d++){var p=v[d];p==="emphasis"||p==="blur"||p==="select"||c.push(p)}h.selected&&h.states.select&&c.push("select"),h.hoverState===cl&&h.states.emphasis?c.push("emphasis"):h.hoverState===vl&&h.states.blur&&c.push("blur"),h.useStates(c)}function a(h,c){var v=h._zr,d=v.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>c.get("hoverLayerThreshold")&&!st.node&&!st.worker&&c.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=h._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(h,c){if(!h.preventAutoZ){var v=h.get("z")||0,d=h.get("zlevel")||0;c.eachRendered(function(p){return l(p,v,d,-1/0),!0})}}function l(h,c,v,d){var p=h.getTextContent(),g=h.getTextGuideLine(),m=h.isGroup;if(m)for(var y=h.childrenRef(),_=0;_<y.length;_++)d=Math.max(l(y[_],c,v,d),d);else h.z=c,h.zlevel=v,d=Math.max(h.z2,d);if(p&&(p.z=c,p.zlevel=v,isFinite(d)&&(p.z2=d+2)),g){var S=h.textGuideLineConfig;g.z=c,g.zlevel=v,isFinite(d)&&(g.z2=d+(S&&S.showAbove?1:-1))}return d}function u(h,c){c.eachRendered(function(v){if(!_i(v)){var d=v.getTextContent(),p=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(h,c){var v=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),p=v.get("duration"),g=p>0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(m){if(m.states&&m.states.emphasis){if(_i(m))return;if(m instanceof lt&&iC(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=g;var _=m.getTextContent(),S=m.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}m.__dirty&&i(m)}})}Dp=function(h){return new(function(c){B(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return h._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){Ai(d,p),me(h)},v.prototype.leaveEmphasis=function(d,p){Mi(d,p),me(h)},v.prototype.enterBlur=function(d){XT(d),me(h)},v.prototype.leaveBlur=function(d){F0(d),me(h)},v.prototype.enterSelect=function(d){z0(d),me(h)},v.prototype.leaveSelect=function(d){V0(d),me(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v}(Vy))(h)},R_=function(h){function c(v,d){for(var p=0;p<v.length;p++){var g=v[p];g[Ou]=d}}A(Pa,function(v,d){h._messageCenter.on(d,function(p){if(Lp[h.group]&&h[Ou]!==Tp){if(p&&p.escapeConnect)return;var g=h.makeActionFromEvent(p),m=[];A(Ra,function(y){y!==h&&y.group===h.group&&m.push(y)}),c(m,Tp),A(m,function(y){y[Ou]!==p2&&y.dispatchAction(g)}),c(m,g2)}})})}}(),t}(Le),xv=E_.prototype;xv.on=M_("on");xv.off=M_("off");xv.one=function(r,t,e){var n=this;Ve("ECharts#one is deprecated.");function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(r,i)}this.on.call(this,r,i,e)};var m2=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function ve(r){console.warn("Instance "+r+" has been disposed")}var Ys={},Pa={},oh=[],sh=[],Zs=[],O_={},lh={},Ra={},Lp={},y2=+new Date-0,bv="_echarts_instance_";function Pp(r,t,e){var n=!(e&&e.ssr);if(n){if(!r)throw new Error("Initialize failed: invalid dom.");var i=_2(r);if(i)return console.warn("There is a chart instance already initialized on the dom."),i;bi(r)&&r.nodeName.toUpperCase()!=="CANVAS"&&(!r.clientWidth&&(!e||e.width==null)||!r.clientHeight&&(!e||e.height==null))&&console.warn("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var a=new E_(r,t,e);return a.id="ec_"+y2++,Ra[a.id]=a,n&&m0(r,bv,a.id),R_(a),Be.trigger("afterinit",a),a}function _2(r){return Ra[kb(r,bv)]}function k_(r,t){O_[r]=t}function B_(r){ot(sh,r)<0&&sh.push(r)}function N_(r,t){Cv(oh,r,t,s2)}function S2(r){Tv("afterinit",r)}function w2(r){Tv("afterupdate",r)}function Tv(r,t){Be.on(r,t)}function or(r,t,e){$(t)&&(e=t,t="");var n=Y(r)?r.type:[r,r={event:t}][0];r.event=(r.event||n).toLowerCase(),t=r.event,!Pa[t]&&(X(bp.test(n)&&bp.test(t)),Ys[n]||(Ys[n]={action:e,actionInfo:r}),Pa[t]=n)}function x2(r,t){vv.register(r,t)}function b2(r,t){Cv(Zs,r,t,T_,"layout")}function Hn(r,t){Cv(Zs,r,t,C_,"visual")}var Rp=[];function Cv(r,t,e,n,i){($(t)||Y(t))&&(e=t,t=n);{if(isNaN(t)||t==null)throw new Error("Illegal priority");A(r,function(o){X(o.__raw!==e)})}if(!(ot(Rp,e)>=0)){Rp.push(e);var a=d_.wrapStageHandler(e,i);a.__prio=t,a.__raw=e,r.push(a)}}function F_(r,t){lh[r]=t}function T2(r,t,e){var n=r2("registerMap");n&&n(r,t,e)}var C2=IM;Hn(wv,rD);Hn(Rl,nD);Hn(Rl,iD);Hn(wv,_D);Hn(Rl,SD);Hn(A_,jD);B_(Hy);N_(a2,lM);F_("default",aD);or({type:In,event:In,update:In},jt);or({type:us,event:us,update:us},jt);or({type:Aa,event:Aa,update:Aa},jt);or({type:fs,event:fs,update:fs},jt);or({type:Ma,event:Ma,update:Ma},jt);k_("light",gD);k_("dark",mD);function ia(r){return r==null?0:r.length||1}function Ep(r){return r}var A2=function(){function r(t,e,n,i,a,o){this._old=t,this._new=e,this._oldKeyGetter=n||Ep,this._newKeyGetter=i||Ep,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],l=n[s],u=ia(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],h=ia(u),c=ia(f);if(h>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(h===1&&c===1)this._update&&this._update(f,u),i[l]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(h>1)for(var v=0;v<h;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},r.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],a=e[i],o=ia(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);e[i]=null}},r.prototype._initIndexMap=function(t,e,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!e){var l=e[s],u=ia(l);u===0?(e[s]=o,a&&n.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r}(),Xa=A2,M2=function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function D2(r,t){var e={},n=e.encode={},i=Q(),a=[],o=[],s={};A(r.dimensions,function(c){var v=r.getDimensionInfo(c),d=v.coordDim;if(d){X(qf.get(d)==null);var p=v.coordDimIndex;Vu(n,d)[p]=c,v.isExtraCoord||(i.set(d,1),L2(v.type)&&(a[0]=c),Vu(s,d)[p]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}qf.each(function(g,m){var y=Vu(n,m),_=v.otherDims[m];_!=null&&_!==!1&&(y[_]=v.name)})});var l=[],u={};i.each(function(c,v){var d=n[v];u[v]=d[0],l=l.concat(d)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=G(l,function(c){return r.getDimensionInfo(c).storeDimIndex}),e.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var h=n.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,e.userOutput=new M2(s,t),e}function Vu(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function I2(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function L2(r){return!(r==="ordinal"||r==="time")}var P2=function(){function r(t){this.otherDims={},t!=null&&N(this,t)}return r}(),ps=P2,R2=bt(),E2={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},z_=function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=H_(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return vt(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Uy(this.source),n=!W_(t),i="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=e?h.name:null,u=h.type,f=h.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(l=e?c.name:null,u=c.type)}a.push({property:l,type:u,ordinalMeta:f}),e&&l!=null&&(!h||!h.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=E2[u]||"f",f&&(i+=f.uid),i+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,i].join("$$");return{dimensions:a,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===e)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function V_(r){return r instanceof z_}function G_(r){for(var t=Q(),e=0;e<(r||[]).length;e++){var n=r[e],i=Y(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,e)}return t}function H_(r){var t=R2(r);return t.dimNameMap||(t.dimNameMap=G_(r.dimensionsDefine))}function W_(r){return r>30}var aa=Y,Lr=G,O2=typeof Int32Array=="undefined"?Array:Int32Array,k2="e\0\0",Op=-1,B2=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],N2=["_approximateExtent"],kp,Go,oa,ri,Gu,Ho,Hu,F2=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;V_(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var h=n[f],c=W(h)?new ps({name:h}):h instanceof ps?h:new ps(h),v=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=v,c.coordDimIndex=0);var d=c.otherDims=c.otherDims||{};o.push(v),a[v]=c,u[v]!=null&&(l=!0),c.createInvertedIndices&&(s[v]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),X(i||c.storeDimIndex>=0),i&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=Q();A(o,function(g){p.set(a[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(n!=null)return n;var i=this._schema.getSourceDimension(e);if(i)return i.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(pt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);if(e==null)throw new Error("Unkown dimension "+t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(n){return e.hasOwnProperty(n)?e[n]:void 0}:function(n){return e[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(e==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,n){var i=this,a;if(t instanceof Jf&&(a=t),!a){var o=this.dimensions,s=cv(t)||te(t)?new Yy(t,o.length):t;a=new Jf;var l=Lr(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=D2(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=e[l],o&&Hu(this,s)}},r.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)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==gr&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Pe;if(l&&!i.pure)for(var u=[],f=t;f<e;f++){var h=i.getItem(f,u);if(!this.hasItemOption&&xb(h)&&(this.hasItemOption=!0),h){var c=h.name;a[f]==null&&c!=null&&(a[f]=tr(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=tr(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)Hu(this,f);kp(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){aa(t)?N(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return n==null&&this._nameDimIdx!=null&&(n=oa(this,this._nameDimIdx,e)),n==null&&(n=""),n},r.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},r.prototype.getId=function(t){return Go(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var n=this,i=this._store;return z(t)?i.getValues(Lr(t,function(a){return n._getStoreDimIndex(a)}),e):i.getValues(t)},r.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},r.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t];if(!n)throw new Error("Do not supported yet");var i=n[e];return i==null||isNaN(i)?Op:i},r.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},r.prototype.each=function(t,e,n){$(t)&&(n=e,e=t,t=[]);var i=n||this,a=Lr(ri(t),this._getStoreDimIndex,this);this._store.each(a,i?K(e,i):e)},r.prototype.filterSelf=function(t,e,n){$(t)&&(n=e,e=t,t=[]);var i=n||this,a=Lr(ri(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?K(e,i):e),this},r.prototype.selectRange=function(t){var e=this,n={},i=xt(t);return A(i,function(a){var o=e._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(t,e,n){$(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},r.prototype.map=function(t,e,n,i){var a=n||i||this,o=Lr(ri(t),this._getStoreDimIndex,this),s=Ho(this);return s._store=this._store.map(o,a?K(e,a):e),s},r.prototype.modify=function(t,e,n,i){var a=this,o=n||i||this;A(ri(t),function(l){var u=a.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=Lr(ri(t),this._getStoreDimIndex,this);this._store.modify(s,o?K(e,o):e)},r.prototype.downSample=function(t,e,n,i){var a=Ho(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),a},r.prototype.lttbDownSample=function(t,e){var n=Ho(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new Vt(n,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new Xa(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Go(t,n)},function(n){return Go(e,n)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},aa(t)?N(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return i==null?this.getVisual(e):i},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[e];return a==null&&(a=this.getVisual(e),z(a)?a=a.slice():aa(a)&&(a=N({},a)),i[e]=a),a},r.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,aa(e)?N(i,e):i[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){aa(t)?N(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?N(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;FT(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){A(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Lr(this.dimensions,this._getDimInfo,this),this.hostModel)),Gu(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];!$(n)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return e.apply(this,[i].concat(Nh(arguments)))})},r.internalField=function(){kp=function(t){var e=t._invertedIndicesMap;A(e,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=e[i]=new O2(o.categories.length);for(var l=0;l<n.length;l++)n[l]=Op;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},oa=function(t,e,n){return tr(t._getCategory(e,n),null)},Go=function(t,e){var n=t._idList[e];return n==null&&t._idDimIdx!=null&&(n=oa(t,t._idDimIdx,e)),n==null&&(n=k2+e),n},ri=function(t){return z(t)||(t=t!=null?[t]:[]),t},Ho=function(t){var e=new r(t._schema?t._schema:Lr(t.dimensions,t._getDimInfo,t),t.hostModel);return Gu(e,t),e},Gu=function(t,e){A(B2.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,A(N2,function(n){t[n]=rt(e[n])}),t._calculationInfo=N({},e._calculationInfo)},Hu=function(t,e){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[e],l=i[e];if(s==null&&a!=null&&(n[e]=s=oa(t,a,e)),l==null&&o!=null&&(i[e]=l=oa(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[e]=l}}}(),r}(),U_=F2;function Y_(r,t){cv(r)||(r=dv(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],i=Q(),a=[],o=V2(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&W_(o),l=n===r.dimensionsDefine,u=l?H_(r):G_(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=Q(f),c=new jy(o),v=0;v<c.length;v++)c[v]=-1;function d(C){var D=c[C];if(D<0){var M=n[C],I=Y(M)?M:{name:M},L=new ps,P=I.name;P!=null&&u.get(P)!=null&&(L.name=L.displayName=P),I.type!=null&&(L.type=I.type),I.displayName!=null&&(L.displayName=I.displayName);var E=a.length;return c[C]=E,L.storeDimIndex=C,a.push(L),L}return a[D]}if(!s)for(var v=0;v<o;v++)d(v);h.each(function(C,D){var M=Dt(C).slice();if(M.length===1&&!W(M[0])&&M[0]<0){h.set(D,!1);return}var I=h.set(D,[]);A(M,function(L,P){var E=W(L)?u.get(L):L;E!=null&&E<o&&(I[P]=E,g(d(E),D,P))})});var p=0;A(e,function(C){var D,M,I,L;if(W(C))D=C,L={};else{L=C,D=L.name;var P=L.ordinalMeta;L.ordinalMeta=null,L=N({},L),L.ordinalMeta=P,M=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var E=h.get(D);if(E!==!1){if(E=Dt(E),!E.length)for(var O=0;O<(M&&M.length||1);O++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&E.push(p++)}A(E,function(H,k){var F=d(H);if(l&&L.type!=null&&(F.type=L.type),g(tt(F,L),D,k),F.name==null&&M){var U=M[k];!Y(U)&&(U={name:U}),F.name=F.displayName=U.name,F.defaultTooltip=U.defaultTooltip}I&&tt(F.otherDims,I)})}});function g(C,D,M){qf.get(D)!=null?C.otherDims[D]=M:(C.coordDim=D,C.coordDimIndex=M,i.set(D,!0))}var m=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=m?y||1:0;var S=m||"value";function x(C){C.name==null&&(C.name=C.coordDim)}if(s)A(a,function(C){x(C)}),a.sort(function(C,D){return C.storeDimIndex-D.storeDimIndex});else for(var w=0;w<o;w++){var b=d(w),T=b.coordDim;T==null&&(b.coordDim=G2(S,i,_),b.coordDimIndex=0,(!m||y<=0)&&(b.isExtraCoord=!0),y--),x(b),b.type==null&&(By(r,w)===Ft.Must||b.isExtraCoord&&(b.otherDims.itemName!=null||b.otherDims.seriesName!=null))&&(b.type="ordinal")}return z2(a),new z_({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function z2(r){for(var t=Q(),e=0;e<r.length;e++){var n=r[e],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function V2(r,t,e,n){var i=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return A(t,function(a){var o;Y(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function G2(r,t,e){var n=t.data;if(e||n.hasOwnProperty(r)){for(var i=0;n.hasOwnProperty(r+i);)i++;r+=i}return t.set(r,!0),r}var H2=function(){function r(t){this.coordSysDims=[],this.axisMap=Q(),this.categoryAxisMap=Q(),this.coordSysName=t}return r}();function W2(r){var t=r.get("coordinateSystem"),e=new H2(t),n=U2[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var U2={cartesian2d:function(r,t,e,n){var i=r.getReferringComponents("xAxis",Jt).models[0],a=r.getReferringComponents("yAxis",Jt).models[0];{if(!i)throw new Error('xAxis "'+En(r.get("xAxisIndex"),r.get("xAxisId"),0)+'" not found');if(!a)throw new Error('yAxis "'+En(r.get("xAxisIndex"),r.get("yAxisId"),0)+'" not found')}t.coordSysDims=["x","y"],e.set("x",i),e.set("y",a),ni(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),ni(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var i=r.getReferringComponents("singleAxis",Jt).models[0];if(!i)throw new Error("singleAxis should be specified.");t.coordSysDims=["single"],e.set("single",i),ni(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var i=r.getReferringComponents("polar",Jt).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");{if(!o)throw new Error("angleAxis option not found");if(!a)throw new Error("radiusAxis option not found")}t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),ni(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),ni(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var i=r.ecModel,a=i.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();A(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];e.set(f,u),ni(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function ni(r){return r.get("type")==="category"}function Y2(r,t,e){e=e||{};var n=e.byIndex,i=e.stackedCoordDimension,a,o,s;Z2(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,h,c;if(A(a,function(y,_){W(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(f=y))}),f&&!n&&!u&&(n=!0),f){h="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,p=0;A(a,function(y){y.coordDim===v&&p++});var g={name:h,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:c,coordDim:c,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(c,d),m.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(a.push(g),a.push(m))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:h}}function Z2(r){return!V_(r.schema)}function Pi(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function $2(r,t){return Pi(r,t)?r.getCalculationInfo("stackResultDimension"):t}function X2(r,t){var e=r.get("coordinateSystem"),n=vv.get(e),i;return t&&t.coordSysDims&&(i=G(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=I2(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function q2(r,t,e){var n,i;return e&&A(r,function(a,o){var s=a.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(r[n].otherDims.itemName=0),n}function Av(r,t,e){e=e||{};var n=t.getSourceManager(),i,a=!1;r?(a=!0,i=dv(r)):(i=n.getSource(),a=i.sourceFormat===Pe);var o=W2(t),s=X2(t,o),l=e.useEncodeDefaulter,u=$(l)?l:l?ft(RA,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=Y_(i,f),c=q2(h.dimensions,e.createInvertedIndices,o),v=a?null:n.getSharedDataStore(h),d=Y2(t,{schema:h,store:v}),p=new U_(h,t);p.setCalculationInfo(d);var g=c!=null&&K2(i)?function(m,y,_,S){return S===c?_:this.defaultDimValueGetter(m,y,_,S)}:null;return p.hasItemOption=!1,p.initData(a?i:v,null,g),p}function K2(r){if(r.sourceFormat===Pe){var t=Q2(r.data||[]);return!z(eo(t))}}function Q2(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var Z_=function(){function r(t){this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();ul(Z_);var Tr=Z_,J2=0,j2=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++J2}return r.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&G(n,tI);return new r({categories:i,needCollect:!i,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!W(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),e==null&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Q(this.categories))},r}();function tI(r){return Y(r)&&r.value!=null?r.value:r+""}var uh=j2;function eI(r){var t=Math.pow(10,sl(Math.abs(r))),e=Math.abs(r/t);return e===0||e===1||e===2||e===3||e===5}function fh(r){return r.type==="interval"||r.type==="log"}function rI(r,t,e,n){var i={},a=r[1]-r[0],o=i.interval=f0(a/t,!0);e!=null&&o<e&&(o=i.interval=e),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=$_(o),l=i.niceTickExtent=[Rt(Math.ceil(r[0]/o)*o,s),Rt(Math.floor(r[1]/o)*o,s)];return nI(l,r),i}function Wu(r){var t=Math.pow(10,sl(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Rt(e*t)}function $_(r){return vr(r)+2}function Bp(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function nI(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Bp(r,0,t),Bp(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function El(r,t){return r>=t[0]&&r<=t[1]}function Ol(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function kl(r,t){return r*(t[1]-t[0])+t[0]}var X_=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new uh({})),z(i)&&(i=new uh({categories:G(i,function(a){return Y(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:W(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),El(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Ol(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(kl(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,i=n[0];i<=n[1];)e.push({value:i}),i++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i.push(f),a[f]=o}},t.prototype._getTickNumber=function(e){var n=this._ticksByOrdinalNumber;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getRawOrdinalNumber=function(e){var n=this._ordinalNumbersByTick;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var n=this.getRawOrdinalNumber(e.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Tr);Tr.registerClass(X_);var q_=X_,mn=Rt,K_=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return El(e,this._extent)},t.prototype.normalize=function(e){return Ol(e,this._extent)},t.prototype.scale=function(e){return kl(e,this._extent)},t.prototype.setExtent=function(e,n){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]<n[0]&&(n[0]=e[0]),e[1]>n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=$_(e)},t.prototype.getTicks=function(e){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]<a[0]&&(e?s.push({value:mn(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=mn(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(e?s.push({value:mn(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,f=[],h=s.value-l.value,c=h/e;u<e-1;){var v=mn(l.value+(u+1)*c);v>a[0]&&v<a[1]&&f.push(v),u++}i.push(f)}return i},t.prototype.getLabel=function(e,n){if(e==null)return"";var i=n&&n.precision;i==null?i=vr(e.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=mn(e.value,i,!0);return Ly(a)},t.prototype.calcNiceTicks=function(e,n,i){e=e||5;var a=this._extent,o=a[1]-a[0];if(!!isFinite(o)){o<0&&(o=-o,a.reverse());var s=rI(a,e,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=n[0];e.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(n[0]=mn(Math.floor(n[0]/o)*o)),e.fixMax||(n[1]=mn(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(e,n){this._niceExtent=[e,n]},t.type="interval",t}(Tr);Tr.registerClass(K_);var lo=K_,Q_=typeof Float32Array!="undefined",iI=Q_?Float32Array:Array;function cr(r){return z(r)?Q_?new Float32Array(r):r:new iI(r)}var aI="__ec_stack_";function Mv(r){return r.get("stack")||aI+r.seriesIndex}function Dv(r){return r.dim+r.index}function J_(r,t){var e=[];return t.eachSeriesByType(r,function(n){t1(n)&&e.push(n)}),e}function oI(r){var t={};A(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=l.getData(),c=f.dim+"_"+f.index,v=h.getDimensionIndex(h.mapDimension(f.dim)),d=h.getStore(),p=0,g=d.count();p<g;++p){var m=d.get(v,p);t[c]?t[c].push(m):t[c]=[m]}});var e={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}e[n]=a}}return e}function j_(r){var t=oI(r),e=[];return A(r,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=u?f/c*u:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=St(n.get("barWidth"),s),p=St(n.get("barMaxWidth"),s),g=St(n.get("barMinWidth")||(e1(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:Dv(a),stackId:Mv(n)})}),sI(e)}function sI(r){var t={};A(r,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(l[u].maxWidth=h);var c=n.barMinWidth;c&&(l[u].minWidth=c);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return A(t,function(n,i){e[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=xt(a).length;s=Math.max(35-l*4,15)+"%"}var u=St(s,o),f=St(n.gap,1),h=n.remainedWidth,c=n.autoWidthCount,v=(h-u)/(c+(c-1)*f);v=Math.max(v,0),A(a,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var S=m.width;y&&(S=Math.min(S,y)),_&&(S=Math.max(S,_)),m.width=S,h-=S+f*S,c--}else{var S=v;y&&y<S&&(S=Math.min(y,h)),_&&_>S&&(S=_),S!==v&&(m.width=S,h-=S+f*S,c--)}}),v=(h-u)/(c+(c-1)*f),v=Math.max(v,0);var d=0,p;A(a,function(m,y){m.width||(m.width=v),p=m,d+=m.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;A(a,function(m,y){e[i][y]=e[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+f)})}),e}function lI(r,t,e){if(r&&t){var n=r[Dv(t)];return n!=null&&e!=null?n[Mv(e)]:n}}function uI(r,t){var e=J_(r,t),n=j_(e);A(e,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=Mv(i),u=n[Dv(s)][l],f=u.offset,h=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function fI(r){return{seriesType:r,plan:yv(),reset:function(t){if(!!t1(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=e.getDimensionIndex(e.mapDimension(i.dim)),l=t.get("showBackground",!0),u=e.mapDimension(a.dim),f=e.getCalculationInfo("stackResultDimension"),h=Pi(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),c=a.isHorizontal(),v=hI(i,a),d=e1(t),p=t.get("barMinHeight")||0,g=f&&e.getDimensionIndex(f),m=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(_,S){for(var x=_.count,w=d&&cr(x*3),b=d&&l&&cr(x*3),T=d&&cr(x),C=n.master.getRect(),D=c?C.width:C.height,M,I=S.getStore(),L=0;(M=_.next())!=null;){var P=I.get(h?g:o,M),E=I.get(s,M),O=v,H=void 0;h&&(H=+P-I.get(o,M));var k=void 0,F=void 0,U=void 0,q=void 0;if(c){var j=n.dataToPoint([P,E]);if(h){var nt=n.dataToPoint([H,E]);O=nt[0]}k=O,F=j[1]+y,U=j[0]-O,q=m,Math.abs(U)<p&&(U=(U<0?-1:1)*p)}else{var j=n.dataToPoint([E,P]);if(h){var nt=n.dataToPoint([E,H]);O=nt[1]}k=j[0]+y,F=O,U=m,q=j[1]-O,Math.abs(q)<p&&(q=(q<=0?-1:1)*p)}d?(w[L]=k,w[L+1]=F,w[L+2]=c?U:q,b&&(b[L]=c?C.x:k,b[L+1]=c?F:C.y,b[L+2]=D),T[M]=M):S.setItemLayout(M,{x:k,y:F,width:U,height:q}),L+=3}d&&S.setLayout({largePoints:w,largeDataIndices:T,largeBackgroundPoints:b,valueAxisHorizontal:c})}}}}}}function t1(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function e1(r){return r.pipelineContext&&r.pipelineContext.large}function hI(r,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var vI=function(r,t,e,n){for(;e<n;){var i=e+n>>>1;r[i][1]<t?e=i+1:n=i}return e},r1=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="time",n}return t.prototype.getLabel=function(e){var n=this.getSetting("useUTC");return xl(e.value,Td[_A(Si(this._minLevelUnit))]||Td.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return SA(e,n,i,o,a)},t.prototype.getTicks=function(){var e=this._interval,n=this._extent,i=[];if(!e)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=_I(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},t.prototype.calcNiceExtent=function(e){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Ae,n[1]+=Ae),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-Ae}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,n,i){e=e||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/e,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=Wo.length,l=Math.min(vI(Wo,this._approxInterval,0,s),s-1);this._interval=Wo[l][1],this._minLevelUnit=Wo[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return pt(e)?e:+yr(e)},t.prototype.contain=function(e){return El(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Ol(this.parse(e),this._extent)},t.prototype.scale=function(e){return kl(e,this._extent)},t.type="time",t}(lo),Wo=[["second",ov],["minute",sv],["hour",Ia],["quarter-day",Ia*6],["half-day",Ia*12],["day",Ae*1.2],["half-week",Ae*3.5],["week",Ae*7],["month",Ae*31],["quarter",Ae*95],["half-year",bd/2],["year",bd]];function cI(r,t,e,n){var i=yr(t),a=yr(e),o=function(d){return Cd(i,d,n)===Cd(a,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},c=function(){return h()&&o("second")},v=function(){return c()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return c();case"millisecond":return v()}}function dI(r,t){return r/=Ae,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function pI(r){var t=30*Ae;return r/=t,r>6?6:r>3?3:r>2?2:1}function gI(r){return r/=Ia,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Np(r,t){return r/=t?sv:ov,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function mI(r){return f0(r,!0)}function yI(r,t,e){var n=new Date(r);switch(Si(t)){case"year":case"month":n[Ty(e)](0);case"day":n[Cy(e)](1);case"hour":n[Ay(e)](0);case"minute":n[My(e)](0);case"second":n[Dy(e)](0),n[Iy(e)](0)}return n.getTime()}function _I(r,t,e,n){var i=1e4,a=xy,o=0;function s(D,M,I,L,P,E,O){for(var H=new Date(M),k=M,F=H[L]();k<I&&k<=n[1];)O.push({value:k}),F+=D,H[P](F),k=H.getTime();O.push({value:k,notAdd:!0})}function l(D,M,I){var L=[],P=!M.length;if(!cI(Si(D),n[0],n[1],e)){P&&(M=[{value:yI(new Date(n[0]),D,e)},{value:n[1]}]);for(var E=0;E<M.length-1;E++){var O=M[E].value,H=M[E+1].value;if(O!==H){var k=void 0,F=void 0,U=void 0,q=!1;switch(D){case"year":k=Math.max(1,Math.round(t/Ae/365)),F=lv(e),U=wA(e);break;case"half-year":case"quarter":case"month":k=pI(t),F=wi(e),U=Ty(e);break;case"week":case"half-week":case"day":k=dI(t),F=bl(e),U=Cy(e),q=!0;break;case"half-day":case"quarter-day":case"hour":k=gI(t),F=Ha(e),U=Ay(e);break;case"minute":k=Np(t,!0),F=Tl(e),U=My(e);break;case"second":k=Np(t,!1),F=Cl(e),U=Dy(e);break;case"millisecond":k=mI(t),F=Al(e),U=Iy(e);break}s(k,O,H,F,U,q,L),D==="year"&&I.length>1&&E===0&&I.unshift({value:I[0].value-k})}}for(var E=0;E<L.length;E++)I.push(L[E]);return L}}for(var u=[],f=[],h=0,c=0,v=0;v<a.length&&o++<i;++v){var d=Si(a[v]);if(!!yA(a[v])){l(a[v],u[u.length-1]||[],f);var p=a[v+1]?Si(a[v+1]):null;if(d!==p){if(f.length){c=h,f.sort(function(D,M){return D.value-M.value});for(var g=[],m=0;m<f.length;++m){var y=f[m].value;(m===0||f[m-1].value!==y)&&(g.push(f[m]),y>=n[0]&&y<=n[1]&&h++)}var _=(n[1]-n[0])/t;if(h>_*1.5&&c>_/1.5||(u.push(g),h>_||r===a[v]))break}f=[]}}}o>=i&&nr("Exceed safe limit.");for(var S=Pt(G(u,function(D){return Pt(D,function(M){return M.value>=n[0]&&M.value<=n[1]&&!M.notAdd})}),function(D){return D.length>0}),x=[],w=S.length-1,v=0;v<S.length;++v)for(var b=S[v],T=0;T<b.length;++T)x.push({value:b[T].value,level:w-v});x.sort(function(D,M){return D.value-M.value});for(var C=[],v=0;v<x.length;++v)(v===0||x[v].value!==x[v-1].value)&&C.push(x[v]);return C}Tr.registerClass(r1);var SI=r1,Fp=Tr.prototype,Ea=lo.prototype,wI=Rt,xI=Math.floor,bI=Math.ceil,Uo=Math.pow,ye=Math.log,Iv=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new lo,e._interval=0,e}return t.prototype.getTicks=function(e){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=Ea.getTicks.call(this,e);return G(o,function(s){var l=s.value,u=Rt(Uo(this.base,l));return u=l===i[0]&&this._fixMin?Yo(u,a[0]):u,u=l===i[1]&&this._fixMax?Yo(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,n){var i=this.base;e=ye(e)/ye(i),n=ye(n)/ye(i),Ea.setExtent.call(this,e,n)},t.prototype.getExtent=function(){var e=this.base,n=Fp.getExtent.call(this);n[0]=Uo(e,n[0]),n[1]=Uo(e,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=Yo(n[0],a[0])),this._fixMax&&(n[1]=Yo(n[1],a[1])),n},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var n=this.base;e[0]=ye(e[0])/ye(n),e[1]=ye(e[1])/ye(n),Fp.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(e){e=e||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var a=yb(i),o=e/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[Rt(bI(n[0]/a)*a),Rt(xI(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){Ea.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=ye(e)/ye(this.base),El(e,this._extent)},t.prototype.normalize=function(e){return e=ye(e)/ye(this.base),Ol(e,this._extent)},t.prototype.scale=function(e){return e=kl(e,this._extent),Uo(this.base,e)},t.type="log",t}(Tr),n1=Iv.prototype;n1.getMinorTicks=Ea.getMinorTicks;n1.getLabel=Ea.getLabel;function Yo(r,t){return wI(r,vr(t))}Tr.registerClass(Iv);var TI=Iv,CI=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.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=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var a=this._modelMinRaw=e.get("min",!0);$(a)?this._modelMinNum=Zo(t,a({min:n[0],max:n[1]})):a!=="dataMin"&&(this._modelMinNum=Zo(t,a));var o=this._modelMaxRaw=e.get("max",!0);if($(o)?this._modelMaxNum=Zo(t,o({min:n[0],max:n[1]})):o!=="dataMax"&&(this._modelMaxNum=Zo(t,o)),i)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=z(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?(console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[Yr(l[0],1),Yr(l[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?i?0:NaN:e-a[0]*o),l==null&&(l=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=ka(s)||ka(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){X(!this.frozen),this[MI[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=AI[t];X(!this.frozen&&this[n]==null),this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),AI={min:"_determinedMin",max:"_determinedMax"},MI={min:"_dataMin",max:"_dataMax"};function i1(r,t,e){var n=r.rawExtentInfo;return n||(n=new CI(r,t,e),r.rawExtentInfo=n,n)}function Zo(r,t){return t==null?null:ka(t)?NaN:r.parse(t)}function a1(r,t){var e=r.type,n=i1(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&e==="time"){var s=J_("bar",o),l=!1;if(A(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=j_(s),f=DI(i,a,t,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function DI(r,t,e,n){var i=e.axis.getExtent(),a=i[1]-i[0],o=lI(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;A(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;A(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,h=1-(s+l)/a,c=f/h-f;return t+=c*(l/u),r-=c*(s/u),{min:r,max:t}}function zp(r,t){var e=t,n=a1(r,e),i=n.extent,a=e.get("splitNumber");r instanceof TI&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(i[0],i[1]),r.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function II(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new q_({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new SI({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Tr.getClass(t)||lo)}}function LI(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function uo(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(i,a){return r.scale.getFormattedLabel(i,a,n)}}(t):W(t)?function(n){return function(i){var a=r.scale.getLabel(i),o=n.replace("{value}",a!=null?a:"");return o}}(t):$(t)?function(n){return function(i,a){return e!=null&&(a=i.value-e),n(Lv(r,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function Lv(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function PI(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,i,a=e.getExtent();e instanceof q_?i=e.count():(n=e.getTicks(),i=n.length);var o=r.getLabelModel(),s=uo(r),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;f<i;f+=u){var h=n?n[f]:{value:a[0]+f},c=s(h,f),v=o.getTextRect(c),d=RI(v,o.get("rotate")||0);l?l.union(d):l=d}return l}}function RI(r,t){var e=t*Math.PI/180,n=r.width,i=r.height,a=n*Math.abs(Math.cos(e))+Math.abs(i*Math.sin(e)),o=n*Math.abs(Math.sin(e))+Math.abs(i*Math.cos(e)),s=new ct(r.x,r.y,a,o);return s}function Pv(r){var t=r.get("interval");return t==null?"auto":t}function o1(r){return r.type==="category"&&Pv(r.getLabelModel())===0}function s1(r,t){var e={};return A(r.mapDimensionsAll(t),function(n){e[$2(r,n)]=!0}),xt(e)}function EI(r,t,e){t&&A(s1(t,e),function(n){var i=t.getApproximateExtent(n);i[0]<r[0]&&(r[0]=i[0]),i[1]>r[1]&&(r[1]=i[1])})}var OI=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),Vp=[],kI={registerPreprocessor:B_,registerProcessor:N_,registerPostInit:S2,registerPostUpdate:w2,registerUpdateLifecycle:Tv,registerAction:or,registerCoordinateSystem:x2,registerLayout:b2,registerVisual:Hn,registerTransform:C2,registerLoading:F_,registerMap:T2,registerImpl:e2,PRIORITY:d2,ComponentModel:yt,ComponentView:Ie,SeriesModel:$r,ChartView:rr,registerComponentModel:function(r){yt.registerClass(r)},registerComponentView:function(r){Ie.registerClass(r)},registerSeriesModel:function(r){$r.registerClass(r)},registerChartView:function(r){rr.registerClass(r)},registerSubTypeDefaulter:function(r,t){yt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){cb(r,t)}};function Ge(r){if(z(r)){A(r,function(t){Ge(t)});return}ot(Vp,r)>=0||(Vp.push(r),$(r)&&(r={install:r}),r.install(kI))}var qa=bt();function BI(r){return r.type==="category"?FI(r):VI(r)}function NI(r,t){return r.type==="category"?zI(r,t):{ticks:G(r.scale.getTicks(),function(e){return e.value})}}function FI(r){var t=r.getLabelModel(),e=l1(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function l1(r,t){var e=u1(r,"labels"),n=Pv(t),i=f1(e,n);if(i)return i;var a,o;return $(n)?a=c1(r,n):(o=n==="auto"?GI(r):n,a=v1(r,o)),h1(e,n,{labels:a,labelCategoryInterval:o})}function zI(r,t){var e=u1(r,"ticks"),n=Pv(t),i=f1(e,n);if(i)return i;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),$(n))a=c1(r,n,!0);else if(n==="auto"){var s=l1(r,r.getLabelModel());o=s.labelCategoryInterval,a=G(s.labels,function(l){return l.tickValue})}else o=n,a=v1(r,o,!0);return h1(e,n,{ticks:a,tickCategoryInterval:o})}function VI(r){var t=r.scale.getTicks(),e=uo(r);return{labels:G(t,function(n,i){return{level:n.level,formattedLabel:e(n,i),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function u1(r,t){return qa(r)[t]||(qa(r)[t]=[])}function f1(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function h1(r,t,e){return r.push({key:t,value:e}),e}function GI(r){var t=qa(r).autoInterval;return t!=null?t:qa(r).autoInterval=r.calculateCategoryInterval()}function HI(r){var t=WI(r),e=uo(r),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(n)),h=Math.abs(u*Math.sin(n)),c=0,v=0;l<=a[1];l+=s){var d=0,p=0,g=ol(e({value:l}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,c=Math.max(c,d,7),v=Math.max(v,p,7)}var m=c/f,y=v/h;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),S=qa(r.model),x=r.getExtent(),w=S.lastAutoInterval,b=S.lastTickCount;return w!=null&&b!=null&&Math.abs(w-_)<=1&&Math.abs(b-o)<=1&&w>_&&S.axisExtent0===x[0]&&S.axisExtent1===x[1]?_=w:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=x[0],S.axisExtent1=x[1]),_}function WI(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function v1(r,t,e){var n=uo(r),i=r.scale,a=i.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=o1(r),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&u!==a[0]&&p(a[0]);for(var d=u;d<=a[1];d+=l)p(d);v&&d-l!==a[1]&&p(a[1]);function p(g){var m={value:g};s.push(e?g:{formattedLabel:n(m),rawLabel:i.getLabel(m),tickValue:g})}return s}function c1(r,t,e){var n=r.scale,i=uo(r),a=[];return A(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(e?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var Gp=[0,1],UI=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return l0(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),Hp(n,i.count())),zt(t,Gp,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Hp(n,i.count()));var a=zt(t,n,Gp,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=NI(this,e),i=n.ticks,a=G(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return YI(this,a,o,t.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),i=G(n,function(a){return G(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(){return BI(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},r.prototype.calculateCategoryInterval=function(){return HI(this)},r}();function Hp(r,t){var e=r[1]-r[0],n=t,i=e/n/2;r[0]+=i,r[1]-=i}function YI(r,t,e,n){var i=t.length;if(!r.onBand||e||!i)return;var a=r.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[0]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;A(t,function(v){v.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var h=a[0]>a[1];c(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&c(a[0],t[0].coord)&&t.unshift({coord:a[0]}),c(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&c(o.coord,a[1])&&t.push({coord:a[1]});function c(v,d){return v=Rt(v),d=Rt(d),h?v>d:v<d}}var ZI=UI,sa=Math.PI*2,yn=_r.CMD,$I=["top","right","bottom","left"];function XI(r,t,e,n,i){var a=e.width,o=e.height;switch(r){case"top":n.set(e.x+a/2,e.y-t),i.set(0,-1);break;case"bottom":n.set(e.x+a/2,e.y+o+t),i.set(0,1);break;case"left":n.set(e.x-t,e.y+o/2),i.set(-1,0);break;case"right":n.set(e.x+a+t,e.y+o/2),i.set(1,0);break}}function qI(r,t,e,n,i,a,o,s,l){o-=r,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*e+r,h=s*e+t;if(Math.abs(n-i)%sa<1e-4)return l[0]=f,l[1]=h,u-e;if(a){var c=n;n=Fr(i),i=Fr(c)}else n=Fr(n),i=Fr(i);n>i&&(i+=sa);var v=Math.atan2(s,o);if(v<0&&(v+=sa),v>=n&&v<=i||v+sa>=n&&v+sa<=i)return l[0]=f,l[1]=h,u-e;var d=e*Math.cos(n)+r,p=e*Math.sin(n)+t,g=e*Math.cos(i)+r,m=e*Math.sin(i)+t,y=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(m-s)*(m-s);return y<_?(l[0]=d,l[1]=p,Math.sqrt(y)):(l[0]=g,l[1]=m,Math.sqrt(_))}function $s(r,t,e,n,i,a,o,s){var l=i-r,u=a-t,f=e-r,h=n-t,c=Math.sqrt(f*f+h*h);f/=c,h/=c;var v=l*f+u*h,d=v/c;s&&(d=Math.min(Math.max(d,0),1)),d*=c;var p=o[0]=r+d*f,g=o[1]=t+d*h;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}function d1(r,t,e,n,i,a,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,l=t+n,u=o[0]=Math.min(Math.max(i,r),s),f=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(f-a)*(f-a))}var Ne=[];function KI(r,t,e){var n=d1(t.x,t.y,t.width,t.height,r.x,r.y,Ne);return e.set(Ne[0],Ne[1]),n}function QI(r,t,e){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,f=t.data,h=r.x,c=r.y,v=0;v<f.length;){var d=f[v++];v===1&&(n=f[v],i=f[v+1],a=n,o=i);var p=u;switch(d){case yn.M:a=f[v++],o=f[v++],n=a,i=o;break;case yn.L:p=$s(n,i,f[v],f[v+1],h,c,Ne,!0),n=f[v++],i=f[v++];break;case yn.C:p=Xm(n,i,f[v++],f[v++],f[v++],f[v++],f[v],f[v+1],h,c,Ne),n=f[v++],i=f[v++];break;case yn.Q:p=Km(n,i,f[v++],f[v++],f[v],f[v+1],h,c,Ne),n=f[v++],i=f[v++];break;case yn.A:var g=f[v++],m=f[v++],y=f[v++],_=f[v++],S=f[v++],x=f[v++];v+=1;var w=!!(1-f[v++]);s=Math.cos(S)*y+g,l=Math.sin(S)*_+m,v<=1&&(a=s,o=l);var b=(h-g)*_/y+g;p=qI(g,m,_,S,S+x,w,b,c,Ne),n=Math.cos(S+x)*y+g,i=Math.sin(S+x)*_+m;break;case yn.R:a=n=f[v++],o=i=f[v++];var T=f[v++],C=f[v++];p=d1(a,o,T,C,h,c,Ne);break;case yn.Z:p=$s(n,i,a,o,h,c,Ne,!0),n=a,i=o;break}p<u&&(u=p,e.set(Ne[0],Ne[1]))}return u}var ze=new Z,mt=new Z,Ct=new Z,je=new Z,Ke=new Z;function Wp(r,t){if(!!r){var e=r.getTextGuideLine(),n=r.getTextContent();if(!!(n&&e)){var i=r.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||$I,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=i.anchor,f=r.getComputedTransform(),h=f&&al([],f),c=t.get("length2")||0;u&&Ct.copy(u);for(var v=0;v<o.length;v++){var d=o[v];XI(d,0,s,ze,je),Z.scaleAndAdd(mt,ze,je,c),mt.transform(h);var p=r.getBoundingRect(),g=u?u.distance(mt):r instanceof lt?QI(mt,r.path,Ct):KI(mt,p,Ct);g<l&&(l=g,mt.transform(f),Ct.transform(f),Ct.toArray(a[0]),mt.toArray(a[1]),ze.toArray(a[2]))}p1(a,t.get("minTurnAngle")),e.setShape({points:a})}}}var Xs=[],Qt=new Z;function p1(r,t){if(t<=180&&t>0){t=t/180*Math.PI,ze.fromArray(r[0]),mt.fromArray(r[1]),Ct.fromArray(r[2]),Z.sub(je,ze,mt),Z.sub(Ke,Ct,mt);var e=je.len(),n=Ke.len();if(!(e<.001||n<.001)){je.scale(1/e),Ke.scale(1/n);var i=je.dot(Ke),a=Math.cos(t);if(a<i){var o=$s(mt.x,mt.y,Ct.x,Ct.y,ze.x,ze.y,Xs,!1);Qt.fromArray(Xs),Qt.scaleAndAdd(Ke,o/Math.tan(Math.PI-t));var s=Ct.x!==mt.x?(Qt.x-mt.x)/(Ct.x-mt.x):(Qt.y-mt.y)/(Ct.y-mt.y);if(isNaN(s))return;s<0?Z.copy(Qt,mt):s>1&&Z.copy(Qt,Ct),Qt.toArray(r[1])}}}}function JI(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,ze.fromArray(r[0]),mt.fromArray(r[1]),Ct.fromArray(r[2]),Z.sub(je,mt,ze),Z.sub(Ke,Ct,mt);var n=je.len(),i=Ke.len();if(!(n<.001||i<.001)){je.scale(1/n),Ke.scale(1/i);var a=je.dot(t),o=Math.cos(e);if(a<o){var s=$s(mt.x,mt.y,Ct.x,Ct.y,ze.x,ze.y,Xs,!1);Qt.fromArray(Xs);var l=Math.PI/2,u=Math.acos(Ke.dot(t)),f=l+u-e;if(f>=l)Z.copy(Qt,Ct);else{Qt.scaleAndAdd(Ke,s/Math.tan(Math.PI/2-f));var h=Ct.x!==mt.x?(Qt.x-mt.x)/(Ct.x-mt.x):(Qt.y-mt.y)/(Ct.y-mt.y);if(isNaN(h))return;h<0?Z.copy(Qt,mt):h>1&&Z.copy(Qt,Ct)}Qt.toArray(r[1])}}}}function Up(r,t,e,n){var i=e==="normal",a=i?r:r.ensureState(e);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?r.useStyle(s):a.style=s}function jI(r,t){var e=t.smooth,n=t.points;if(!!n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var i=_f(n[0],n[1]),a=_f(n[1],n[2]);if(!i||!a){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*e,s=rs([],n[1],n[0],o/i),l=rs([],n[1],n[2],o/a),u=rs([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)r.lineTo(n[f][0],n[f][1])}function g1(r,t,e){var n=r.getTextGuideLine(),i=r.getTextContent();if(!i){n&&r.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,l=0;l<Ds.length;l++){var u=Ds[l],f=t[u],h=u==="normal";if(f){var c=f.get("show"),v=h?s:vt(i.states[u]&&i.states[u].ignore,s);if(v||!vt(c,o)){var d=h?n:n&&n.states[u];d&&(d.ignore=!0);continue}n||(n=new Ni,r.setTextGuideLine(n),!h&&(s||!o)&&Up(n,!0,"normal",t.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),Up(n,!1,u,f)}}if(n){tt(n.style,e),n.style.fill=null;var p=a.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=jI}}function m1(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},n=0;n<De.length;n++){var i=De[n];e[i]=r.getModel([i,t])}return e}function y1(r){for(var t=[],e=0;e<r.length;e++){var n=r[e];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new Ps(o,a):null;t.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function _1(r,t,e,n,i,a){var o=r.length;if(o<2)return;r.sort(function(T,C){return T.rect[t]-C.rect[t]});for(var s=0,l,u=!1,f=0,h=0;h<o;h++){var c=r[h],v=c.rect;l=v[t]-s,l<0&&(v[t]-=l,c.label[t]-=l,u=!0);var d=Math.max(-l,0);f+=d,s=v[t]+v[e]}f>0&&a&&x(-f/o,0,o);var p=r[0],g=r[o-1],m,y;_(),m<0&&w(-m,.8),y<0&&w(y,.8),_(),S(m,y,1),S(y,m,-1),_(),m<0&&b(-m),y<0&&b(y);function _(){m=p.rect[t]-n,y=i-g.rect[t]-g.rect[e]}function S(T,C,D){if(T<0){var M=Math.min(C,-T);if(M>0){x(M*D,0,o);var I=M+T;I<0&&w(-I*D,1)}else w(-T*D,1)}}function x(T,C,D){T!==0&&(u=!0);for(var M=C;M<D;M++){var I=r[M],L=I.rect;L[t]+=T,I.label[t]+=T}}function w(T,C){for(var D=[],M=0,I=1;I<o;I++){var L=r[I-1].rect,P=Math.max(r[I].rect[t]-L[t]-L[e],0);D.push(P),M+=P}if(!!M){var E=Math.min(Math.abs(T)/M,C);if(T>0)for(var I=0;I<o-1;I++){var O=D[I]*E;x(O,0,I+1)}else for(var I=o-1;I>0;I--){var O=D[I-1]*E;x(-O,I,o)}}}function b(T){var C=T<0?-1:1;T=Math.abs(T);for(var D=Math.ceil(T/(o-1)),M=0;M<o-1;M++)if(C>0?x(D,0,M+1):x(-D,o-M-1,o),T-=D,T<=0)return}return u}function tL(r,t,e,n){return _1(r,"x","width",t,e,n)}function S1(r,t,e,n){return _1(r,"y","height",t,e,n)}function w1(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new ct(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var i=0;i<r.length;i++){var a=r[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,f=a.labelLine;e.copy(a.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var h=a.obb,c=!1,v=0;v<t.length;v++){var d=t[v];if(!!e.intersect(d.rect)){if(o&&d.axisAligned){c=!0;break}if(d.obb||(d.obb=new Ps(d.localRect,d.transform)),h||(h=new Ps(s,l)),h.intersect(d.obb)){c=!0;break}}}c?(n(u),f&&n(f)):(u.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function eL(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function rL(r,t){var e=r.label,n=t&&t.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:eL(n&&n.shape.points)}}var Yp=["align","verticalAlign","width","height","fontSize"],ue=new to,Uu=bt(),nL=bt();function $o(r,t,e){for(var n=0;n<e.length;n++){var i=e[n];t[i]!=null&&(r[i]=t[i])}}var Xo=["x","y","rotation"],iL=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(t,e,n,i,a){var o=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),f=i.getBoundingRect().plain();ct.applyTransform(f,f,u),u?ue.setLocalTransform(u):(ue.x=ue.y=ue.rotation=ue.originX=ue.originY=0,ue.scaleX=ue.scaleY=1);var h=i.__hostTarget,c;if(h){c=h.getBoundingRect().plain();var v=h.getComputedTransform();ct.applyTransform(c,c,v)}var d=c&&h.getTextGuideLine();this._labelList.push({label:i,labelLine:d,seriesModel:n,dataIndex:t,dataType:e,layoutOption:a,computedLayoutOption:null,rect:f,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:d&&d.ignore,x:ue.x,y:ue.y,scaleX:ue.scaleX,scaleY:ue.scaleY,rotation:ue.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");!($(i)||xt(i).length)||t.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=dt(a);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,n,o,i)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function i(_,S){return function(){Wp(_,S)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;$(o.layoutOption)?f=o.layoutOption(rL(o,l)):f=o.layoutOption,f=f||{},o.computedLayoutOption=f;var h=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*h:u.attachedRot,offset:[f.dx||0,f.dy||0]});var c=!1;if(f.x!=null?(s.x=St(f.x,e),s.setStyle("x",0),c=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=St(f.y,n),s.setStyle("y",0),c=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:f.labelLinePoints}),c=!1)}var d=Uu(s);d.needsUpdateLabelLine=c,s.rotation=f.rotate!=null?f.rotate*h:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<Yp.length;p++){var g=Yp[p];s.setStyle(g,f[g]!=null?f[g]:u.style[g])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var m=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);m=y.getItemModel(o.dataIndex)}s.on("drag",i(l,m.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),i=y1(this._labelList),a=Pt(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Pt(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});tL(a,0,e),S1(o,0,n);var s=Pt(i,function(l){return l.layoutOption.hideOverlap});w1(s)},r.prototype.processLabelsOverall=function(){var t=this;A(this._chartViewList,function(e){var n=e.__model,i=e.ignoreLabelLineUpdate,a=n.isAnimationEnabled();e.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,l=o.getTextContent();!s&&l&&(s=Uu(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),a&&t._animateLabels(o,n)})})},r.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=dt(t),a=i.dataIndex;if(n&&a!=null){var o=e.getData(i.dataType),s=o.getItemModel(a),l={},u=o.getItemVisual(a,"style"),f=o.getVisual("drawType");l.stroke=u[f];var h=s.getModel("labelLine");g1(t,m1(s),l),Wp(t,h)}},r.prototype._animateLabels=function(t,e){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!_i(t))){var a=Uu(n),o=a.oldLayout,s=dt(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=e.getData(s.dataType);if(o){n.attr(o);var c=t.prevStates;c&&(ot(c,"select")>=0&&n.attr(a.oldLayoutSelect),ot(c,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Nt(n,u,e,l)}else if(n.attr(u),!Fi(n).valueAnimation){var h=vt(n.style.opacity,1);n.style.opacity=0,$t(n,{style:{opacity:h}},e,l)}if(a.oldLayout=u,n.states.select){var v=a.oldLayoutSelect={};$o(v,u,Xo),$o(v,n.states.select,Xo)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};$o(d,u,Xo),$o(d,n.states.emphasis,Xo)}rA(n,l,f,e,e)}if(i&&!i.ignore&&!i.invisible){var a=nL(i),o=a.oldLayout,p={points:i.shape.points};o?(i.attr({shape:o}),Nt(i,{shape:p},e)):(i.setShape(p),i.style.strokePercent=0,$t(i,{style:{strokePercent:1}},e)),a.oldLayout=p}},r}(),aL=iL,Yu=bt();function oL(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var i=Yu(e).labelManager;i||(i=Yu(e).labelManager=new aL),i.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=Yu(e).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(e.getViewOfSeriesModel(a))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}var sL=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){{var n=e.coordinateSystem;if(n!=="polar"&&n!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return Av(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var n=new It,i=Xr("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);n.add(i),i.setStyle(e.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=e.itemHeight*.8,u=Xr(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);n.add(u),u.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}($r),lL=sL;function Rv(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var i=Li(r,t,e[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<e.length;o++)a.push(Li(r,t,e[o]));return a.join(" ")}}function x1(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!z(t))return t+"";for(var n=[],i=0;i<e.length;i++){var a=r.getDimensionIndex(e[i]);a>=0&&n.push(t[a])}return n.join(" ")}var uL=function(r){B(t,r);function t(e,n,i,a){var o=r.call(this)||this;return o.updateData(e,n,i,a),o}return t.prototype._createSymbol=function(e,n,i,a,o){this.removeAll();var s=Xr(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=fL,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Ai(this.childAt(0))},t.prototype.downplay=function(){Mi(this.childAt(0))},t.prototype.setZ=function(e,n){var i=this.childAt(0);i.zlevel=e,i.z=n},t.prototype.setDraggable=function(e,n){var i=this.childAt(0);i.draggable=e,i.cursor=!n&&e?"move":i.cursor},t.prototype.updateData=function(e,n,i,a){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var h=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,l,h)}else{var c=this.childAt(0);c.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?c.attr(v):Nt(c,v,s,n),ev(c)}if(this._updateCommon(e,n,l,i,a),u){var c=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,$t(c,v,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,i,a,o){var s=this.childAt(0),l=e.hostModel,u,f,h,c,v,d,p,g,m;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,c=a.focus,v=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,m=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var y=a&&a.itemModel?a.itemModel:e.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=ao(y),g=_.getShallow("scale"),m=y.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var x=g_(e.getItemVisual(n,"symbolOffset"),i);x&&(s.x=x[0],s.y=x[1]),m&&s.attr("cursor",m);var w=e.getItemVisual(n,"style"),b=w.fill;if(s instanceof Vn){var T=s.style;s.useStyle(N({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},w))}else s.__isEmptyBrush?s.useStyle(N({},w)):s.useStyle(w),s.style.decal=null,s.setColor(b,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=e.getItemVisual(n,"liftZ"),D=this._z2;C!=null?D==null&&(this._z2=s.z2,s.z2+=C):D!=null&&(s.z2=D,this._z2=null);var M=o&&o.useNameLabel;io(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:b,defaultOpacity:w.opacity});function I(E){return M?e.getName(E):Rv(e,E)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var L=s.ensureState("emphasis");if(L.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f,g){var P=Math.max(pt(g)?g:1.1,3/this._sizeY);L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P}this.setSymbolScale(1),za(this,c,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,i){var a=this.childAt(0),o=dt(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Rs(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Rs(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return ND(e.getItemVisual(n,"symbolSize"))},t}(It);function fL(r,t){this.parent.drift(r,t)}var Ev=uL;function Zu(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Zp(r){return r!=null&&!Y(r)&&(r={isIgnore:r}),r||{}}function $p(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:ao(t),cursorStyle:t.get("cursor")}}var hL=function(){function r(t){this.group=new It,this._SymbolCtor=t||Ev}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Zp(e);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=$p(t),u={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};a||n.removeAll(),t.diff(a).add(function(h){var c=f(h);if(Zu(t,c,h,e)){var v=new o(t,h,l,u);v.setPosition(c),t.setItemGraphicEl(h,v),n.add(v)}}).update(function(h,c){var v=a.getItemGraphicEl(c),d=f(h);if(!Zu(t,d,h,e)){n.remove(v);return}var p=t.getItemVisual(h,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)n.remove(v),v=new o(t,h,l,u),v.setPosition(d);else{v.updateData(t,h,l,u);var m={x:d[0],y:d[1]};s?v.attr(m):Nt(v,m,i)}n.add(v),t.setItemGraphicEl(h,v)}).remove(function(h){var c=a.getItemGraphicEl(h);c&&c.fadeOut(function(){n.remove(c)},i)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=$p(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=Zp(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=e.getItemLayout(a);if(Zu(e,o,a,n)){var s=new this._SymbolCtor(e,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){_l(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(i){i.fadeOut(function(){e.remove(i)},n.hostModel)}):e.removeAll()},r}(),vL=hL;function b1(r,t,e){var n=r.getBaseAxis(),i=r.getOtherAxis(n),a=cL(i,e),o=n.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=G(r.dimensions,function(d){return t.mapDimension(d)}),c=!1,v=t.getCalculationInfo("stackResultDimension");return Pi(t,h[0])&&(c=!0,h[0]=v),Pi(t,h[1])&&(c=!0,h[1]=v),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function cL(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:pt(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function T1(r,t,e,n){var i=NaN;r.stacked&&(i=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=e.get(r.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function dL(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,i){e.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function pL(r,t,e,n,i,a,o,s){for(var l=dL(r,t),u=[],f=[],h=[],c=[],v=[],d=[],p=[],g=b1(i,t,o),m=r.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],x=!0,w=void 0,b=void 0;switch(S.cmd){case"=":w=S.idx*2,b=S.idx1*2;var T=m[w],C=m[w+1],D=y[b],M=y[b+1];(isNaN(T)||isNaN(C))&&(T=D,C=M),u.push(T,C),f.push(D,M),h.push(e[w],e[w+1]),c.push(n[b],n[b+1]),p.push(t.getRawIndex(S.idx1));break;case"+":var I=S.idx,L=g.dataDimsForPoint,P=i.dataToPoint([t.get(L[0],I),t.get(L[1],I)]);b=I*2,u.push(P[0],P[1]),f.push(y[b],y[b+1]);var E=T1(g,i,t,I);h.push(E[0],E[1]),c.push(n[b],n[b+1]),p.push(t.getRawIndex(I));break;case"-":x=!1}x&&(v.push(S),d.push(d.length))}d.sort(function(At,_t){return p[At]-p[_t]});for(var O=u.length,H=cr(O),k=cr(O),F=cr(O),U=cr(O),q=[],_=0;_<d.length;_++){var j=d[_],nt=_*2,ht=j*2;H[nt]=u[ht],H[nt+1]=u[ht+1],k[nt]=f[ht],k[nt+1]=f[ht+1],F[nt]=h[ht],F[nt+1]=h[ht+1],U[nt]=c[ht],U[nt+1]=c[ht+1],q[_]=v[j]}return{current:H,next:k,stackedOnCurrent:F,stackedOnNext:U,status:q}}var Pr=Math.min,Rr=Math.max;function Ln(r,t){return isNaN(r)||isNaN(t)}function hh(r,t,e,n,i,a,o,s,l){for(var u,f,h,c,v,d,p=e,g=0;g<n;g++){var m=t[p*2],y=t[p*2+1];if(p>=i||p<0)break;if(Ln(m,y)){if(l){p+=a;continue}break}if(p===e)r[a>0?"moveTo":"lineTo"](m,y),h=m,c=y;else{var _=m-u,S=y-f;if(_*_+S*S<.5){p+=a;continue}if(o>0){for(var x=p+a,w=t[x*2],b=t[x*2+1];w===m&&b===y&&g<n;)g++,x+=a,p+=a,w=t[x*2],b=t[x*2+1],m=t[p*2],y=t[p*2+1],_=m-u,S=y-f;var T=g+1;if(l)for(;Ln(w,b)&&T<n;)T++,x+=a,w=t[x*2],b=t[x*2+1];var C=.5,D=0,M=0,I=void 0,L=void 0;if(T>=n||Ln(w,b))v=m,d=y;else{D=w-u,M=b-f;var P=m-u,E=w-m,O=y-f,H=b-y,k=void 0,F=void 0;if(s==="x"){k=Math.abs(P),F=Math.abs(E);var U=D>0?1:-1;v=m-U*k*o,d=y,I=m+U*F*o,L=y}else if(s==="y"){k=Math.abs(O),F=Math.abs(H);var q=M>0?1:-1;v=m,d=y-q*k*o,I=m,L=y+q*F*o}else k=Math.sqrt(P*P+O*O),F=Math.sqrt(E*E+H*H),C=F/(F+k),v=m-D*o*(1-C),d=y-M*o*(1-C),I=m+D*o*C,L=y+M*o*C,I=Pr(I,Rr(w,m)),L=Pr(L,Rr(b,y)),I=Rr(I,Pr(w,m)),L=Rr(L,Pr(b,y)),D=I-m,M=L-y,v=m-D*k/F,d=y-M*k/F,v=Pr(v,Rr(u,m)),d=Pr(d,Rr(f,y)),v=Rr(v,Pr(u,m)),d=Rr(d,Pr(f,y)),D=m-v,M=y-d,I=m+D*F/k,L=y+M*F/k}r.bezierCurveTo(h,c,v,d,m,y),h=I,c=L}else r.lineTo(m,y)}u=m,f=y,p+=a}return g}var C1=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),gL=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new C1},t.prototype.buildPath=function(e,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&Ln(i[o*2-2],i[o*2-1]);o--);for(;a<o&&Ln(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=hh(e,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(e,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=_r.CMD,s,l,u=n==="x",f=[],h=0;h<a.length;){var c=a[h++],v=void 0,d=void 0,p=void 0,g=void 0,m=void 0,y=void 0,_=void 0;switch(c){case o.M:s=a[h++],l=a[h++];break;case o.L:if(v=a[h++],d=a[h++],_=u?(e-s)/(v-s):(e-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=d;break;case o.C:v=a[h++],d=a[h++],p=a[h++],g=a[h++],m=a[h++],y=a[h++];var x=u?ws(s,v,p,m,e,f):ws(l,d,g,y,e,f);if(x>0)for(var w=0;w<x;w++){var b=f[w];if(b<=1&&b>=0){var S=u?Et(l,d,g,y,b):Et(s,v,p,m,b);return u?[e,S]:[S,e]}}s=m,l=y;break}}},t}(lt),mL=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(C1),yL=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new mL},t.prototype.buildPath=function(e,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Ln(i[s*2-2],i[s*2-1]);s--);for(;o<s&&Ln(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=hh(e,i,o,s,s,1,n.smooth,l,n.connectNulls);hh(e,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,e.closePath()}},t}(lt);function A1(r,t,e,n,i){var a=r.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=e.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,l+=f,u+=f,o=Math.floor(o),l=Math.round(l);var h=new wt({shape:{x:o,y:s,width:l,height:u}});if(t){var c=r.getBaseAxis(),v=c.isHorizontal(),d=c.inverse;v?(d&&(h.shape.x+=l),h.shape.width=0):(d||(h.shape.y+=u),h.shape.height=0);var p=$(i)?function(g){i(g,h)}:null;$t(h,{shape:{width:l,height:u,x:o,y:s}},e,null,n,p)}return h}function M1(r,t,e){var n=r.getArea(),i=Rt(n.r0,1),a=Rt(n.r,1),o=new Sr({shape:{cx:Rt(r.cx,1),cy:Rt(r.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,$t(o,{shape:{endAngle:n.endAngle,r:a}},e)}return o}function _L(r,t,e,n,i){if(r){if(r.type==="polar")return M1(r,t,e);if(r.type==="cartesian2d")return A1(r,t,e,n,i)}else return null;return null}function Ov(r,t){return r.type===t}function Xp(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function qp(r){for(var t=1/0,e=1/0,n=-1/0,i=-1/0,a=0;a<r.length;){var o=r[a++],s=r[a++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(e=Math.min(s,e),i=Math.max(s,i))}return[[t,e],[n,i]]}function Kp(r,t){var e=qp(r),n=e[0],i=e[1],a=qp(t),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function Qp(r){return pt(r)?r:r?.5:0}function SL(r,t,e){if(!e.valueDim)return[];for(var n=t.count(),i=cr(n*2),a=0;a<n;a++){var o=T1(e,r,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function Er(r,t,e,n){var i=t.getBaseAxis(),a=i.dim==="x"||i.dim==="radius"?0:1,o=[],s=0,l=[],u=[],f=[],h=[];if(n){for(s=0;s<r.length;s+=2)!isNaN(r[s])&&!isNaN(r[s+1])&&h.push(r[s],r[s+1]);r=h}for(s=0;s<r.length-2;s+=2)switch(f[0]=r[s+2],f[1]=r[s+3],u[0]=r[s],u[1]=r[s+1],o.push(u[0],u[1]),e){case"end":l[a]=f[a],l[1-a]=u[1-a],o.push(l[0],l[1]);break;case"middle":var c=(u[a]+f[a])/2,v=[];l[a]=v[a]=c,l[1-a]=u[1-a],v[1-a]=f[1-a],o.push(l[0],l[1]),o.push(v[0],v[1]);break;default:l[a]=u[a],l[1-a]=f[1-a],o.push(l[0],l[1])}return o.push(r[s++],r[s++]),o}function wL(r,t){var e=[],n=r.length,i,a;function o(f,h,c){var v=f.coord,d=(c-v)/(h.coord-v),p=Rx(d,[f.color,h.color]);return{coord:c,color:p}}for(var s=0;s<n;s++){var l=r[s],u=l.coord;if(u<0)i=l;else if(u>t){a?e.push(o(a,l,t)):i&&e.push(o(i,l,0),o(i,l,t));break}else i&&(e.push(o(i,l,0)),i=null),e.push(l),a=l}return e}function xL(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())){if(t.type!=="cartesian2d"){console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var i,a,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(!a){console.warn("Visual map on line style only support x or y dimension.");return}var l=t.getAxis(i),u=G(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var c=wL(u,i==="x"?e.getWidth():e.getHeight()),v=c.length;if(!v&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var d=10,p=c[0].coord-d,g=c[v-1].coord+d,m=g-p;if(m<.001)return"transparent";A(c,function(_){_.offset=(_.coord-p)/m}),c.push({offset:v?c[v-1].offset:.5,color:h[1]||"transparent"}),c.unshift({offset:v?c[0].offset:.5,color:h[0]||"transparent"});var y=new uy(0,0,0,0,c,!0);return y[i]=p,y[i+"2"]=g,y}}function bL(r,t,e){var n=r.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=e.getAxesByScale("ordinal")[0];if(!!a&&!(i&&TL(a,t))){var o=t.mapDimension(a.dim),s={};return A(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function TL(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(Ev.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function CL(r,t){return isNaN(r)||isNaN(t)}function AL(r){for(var t=r.length/2;t>0&&CL(r[t*2-2],r[t*2-1]);t--);return t-1}function Jp(r,t){return[r[t*2],r[t*2+1]]}function ML(r,t,e){for(var n=r.length/2,i=e==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=r[u*2+i],!(isNaN(o)||isNaN(r[u*2+1-i]))){if(u===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function D1(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<De.length;t++)if(r.get([De[t],"endLabel","show"]))return!0;return!1}function $u(r,t,e,n){if(Ov(t,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=D1(n)?function(v,d){r._endLabelOnDuring(v,d,o,s,a,i,t)}:null,u=t.getBaseAxis().isHorizontal(),f=A1(t,e,n,function(){var v=r._endLabel;v&&e&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var h=f.shape,c=Math.max(h.width,h.height);u?(h.y-=c,h.height+=c*2):(h.x-=c,h.width+=c*2)}return l&&l(1,f),f}else return n.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),M1(t,e,n)}function DL(r,t){var e=t.getBaseAxis(),n=e.isHorizontal(),i=e.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:r.get("align")||a,verticalAlign:r.get("verticalAlign")||o}}}var IL=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new It,n=new vL;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=e},t.prototype.render=function(e,n,i){var a=this,o=e.coordinateSystem,s=this.group,l=e.getData(),u=e.getModel("lineStyle"),f=e.getModel("areaStyle"),h=l.getLayout("points")||[],c=o.type==="polar",v=this._coordSys,d=this._symbolDraw,p=this._polyline,g=this._polygon,m=this._lineGroup,y=e.get("animation"),_=!f.isEmpty(),S=f.get("origin"),x=b1(o,l,S),w=_&&SL(o,l,x),b=e.get("showSymbol"),T=e.get("connectNulls"),C=b&&!c&&bL(e,l,o),D=this._data;D&&D.eachItemGraphicEl(function(_t,Gt){_t.__temp&&(s.remove(_t),D.setItemGraphicEl(Gt,null))}),b||d.remove(),s.add(m);var M=c?!1:e.get("step"),I;o&&o.getArea&&e.get("clip",!0)&&(I=o.getArea(),I.width!=null?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var L=xL(l,o,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(p&&v.type===o.type&&M===this._step))b&&d.updateData(l,{isIgnore:C,clipShape:I,disableAnimation:!0,getSymbolPoint:function(_t){return[h[_t*2],h[_t*2+1]]}}),y&&this._initSymbolLabelAnimation(l,o,I),M&&(h=Er(h,o,M,T),w&&(w=Er(w,o,M,T))),p=this._newPolyline(h),_?g=this._newPolygon(h,w):g&&(m.remove(g),g=this._polygon=null),c||this._initOrUpdateEndLabel(e,o,Bn(L)),m.setClipPath($u(this,o,!0,e));else{_&&!g?g=this._newPolygon(h,w):g&&!_&&(m.remove(g),g=this._polygon=null),c||this._initOrUpdateEndLabel(e,o,Bn(L));var P=m.getClipPath();if(P){var E=$u(this,o,!1,e);$t(P,{shape:E.shape},e)}else m.setClipPath($u(this,o,!0,e));b&&d.updateData(l,{isIgnore:C,clipShape:I,disableAnimation:!0,getSymbolPoint:function(_t){return[h[_t*2],h[_t*2+1]]}}),(!Xp(this._stackedOnPoints,w)||!Xp(this._points,h))&&(y?this._doUpdateAnimation(l,w,o,i,M,S,T):(M&&(h=Er(h,o,M,T),w&&(w=Er(w,o,M,T))),p.setShape({points:h}),g&&g.setShape({points:h,stackedOnPoints:w})))}var O=e.getModel("emphasis"),H=O.get("focus"),k=O.get("blurScope"),F=O.get("disabled");if(p.useStyle(tt(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),Ls(p,e,"lineStyle"),p.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var U=p.getState("emphasis").style;U.lineWidth=+p.style.lineWidth+1}dt(p).seriesIndex=e.seriesIndex,za(p,H,k,F);var q=Qp(e.get("smooth")),j=e.get("smoothMonotone");if(p.setShape({smooth:q,smoothMonotone:j,connectNulls:T}),g){var nt=l.getCalculationInfo("stackedOnSeries"),ht=0;g.useStyle(tt(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),nt&&(ht=Qp(nt.get("smooth"))),g.setShape({smooth:q,stackedOnSmooth:ht,smoothMonotone:j,connectNulls:T}),Ls(g,e,"areaStyle"),dt(g).seriesIndex=e.seriesIndex,za(g,H,k,F)}var At=function(_t){a._changePolyState(_t)};l.eachItemGraphicEl(function(_t){_t&&(_t.onHoverStateChange=At)}),this._polyline.onHoverStateChange=At,this._data=l,this._coordSys=o,this._stackedOnPoints=w,this._points=h,this._step=M,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,p),g&&this.packEventData(e,g))},t.prototype.packEventData=function(e,n){dt(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,i,a){var o=e.getData(),s=On(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var c=e.get("zlevel"),v=e.get("z");u=new Ev(o,s),u.x=f,u.y=h,u.setZ(c,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else rr.prototype.highlight.call(this,e,n,i,a)},t.prototype.downplay=function(e,n,i,a){var o=e.getData(),s=On(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else rr.prototype.downplay.call(this,e,n,i,a)},t.prototype._changePolyState=function(e){var n=this._polygon;nd(this._polyline,e),n&&nd(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new gL({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new yL({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(e,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");$(f)&&(f=f(null));var h=u.get("animationDelay")||0,c=$(h)?h(null):h;e.eachItemGraphicEl(function(v,d){var p=v;if(p){var g=[v.x,v.y],m=void 0,y=void 0,_=void 0;if(i)if(o){var S=i,x=n.pointToCoord(g);a?(m=S.startAngle,y=S.endAngle,_=-x[1]/180*Math.PI):(m=S.r0,y=S.r,_=x[0])}else{var w=i;a?(m=w.x,y=w.x+w.width,_=v.x):(m=w.y+w.height,y=w.y,_=v.y)}var b=y===m?0:(_-m)/(y-m);l&&(b=1-b);var T=$(h)?h(d):f*b+c,C=p.getSymbolPath(),D=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,i){var a=e.getModel("endLabel");if(D1(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new kt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=AL(l);f>=0&&(io(s,ao(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:f,defaultText:function(h,c,v){return v!=null?x1(o,v):Rv(o,h)},enableTextSetter:!0},DL(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var h=i.getLayout("points"),c=i.hostModel,v=c.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,_=n.shape,S=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,x=(m?p:0)*(y?-1:1),w=(m?0:-p)*(y?-1:1),b=m?"x":"y",T=ML(h,S,b),C=T.range,D=C[1]-C[0],M=void 0;if(D>=1){if(D>1&&!v){var I=Jp(h,C[0]);u.attr({x:I[0]+x,y:I[1]+w}),o&&(M=c.getRawValue(C[0]))}else{var I=f.getPointOn(S,b);I&&u.attr({x:I[0]+x,y:I[1]+w});var L=c.getRawValue(C[0]),P=c.getRawValue(C[1]);o&&(M=y0(i,d,L,P,T.t))}a.lastFrameIndex=C[0]}else{var E=e===1||a.lastFrameIndex>0?C[0]:0,I=Jp(h,E);o&&(M=c.getRawValue(E)),u.attr({x:I[0]+x,y:I[1]+w})}o&&Fi(u).setLabelText(M)}},t.prototype._doUpdateAnimation=function(e,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,h=e.hostModel,c=pL(this._data,e,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=c.current,d=c.stackedOnCurrent,p=c.next,g=c.stackedOnNext;if(o&&(v=Er(c.current,i,o,l),d=Er(c.stackedOnCurrent,i,o,l),p=Er(c.next,i,o,l),g=Er(c.stackedOnNext,i,o,l)),Kp(v,p)>3e3||f&&Kp(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=c.current,u.shape.points=v;var m={shape:{points:p}};c.current!==v&&(m.shape.__points=c.next),u.stopAnimation(),Nt(u,m,h),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),Nt(f,{shape:{stackedOnPoints:g}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=c.status,S=0;S<_.length;S++){var x=_[S].cmd;if(x==="="){var w=e.getItemGraphicEl(_[S].idx1);w&&y.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var b=u.shape.__points,T=0;T<y.length;T++){var C=y[T].el,D=y[T].ptIdx*2;C.x=b[D],C.y=b[D+1],C.markRedraw()}})},t.prototype.remove=function(e){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(rr),LL=IL;function PL(r,t){return{seriesType:r,plan:yv(),reset:function(e){var n=e.getData(),i=e.coordinateSystem,a=e.pipelineContext,o=t||a.large;if(!!i){var s=G(i.dimensions,function(v){return n.mapDimension(v)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");Pi(n,s[0])&&(s[0]=u),Pi(n,s[1])&&(s[1]=u);var f=n.getStore(),h=n.getDimensionIndex(s[0]),c=n.getDimensionIndex(s[1]);return l&&{progress:function(v,d){for(var p=v.end-v.start,g=o&&cr(p*l),m=[],y=[],_=v.start,S=0;_<v.end;_++){var x=void 0;if(l===1){var w=f.get(h,_);x=i.dataToPoint(w,null,y)}else m[0]=f.get(h,_),m[1]=f.get(c,_),x=i.dataToPoint(m,null,y);o?(g[S++]=x[0],g[S++]=x[1]):d.setItemLayout(_,x.slice())}o&&d.setLayout("points",g)}}}}}}var RL={average:function(r){for(var t=0,e=0,n=0;n<r.length;n++)isNaN(r[n])||(t+=r[n],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},EL=function(r){return Math.round(r.length/2)};function I1(r){return{seriesType:r,reset:function(t,e,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(h||1),v=Math.round(s/c);if(isFinite(v)&&v>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/v));var d=void 0;W(a)?d=RL[a]:$(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(u.dim),1/v,d,EL))}}}}}function OL(r){r.registerChartView(LL),r.registerSeriesModel(lL),r.registerLayout(PL("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,I1("line"))}var L1=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return Av(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var n=this.coordinateSystem;if(n&&n.clampData){var i=n.dataToPoint(n.clampData(e)),a=this.getData(),o=a.getLayout("offset"),s=a.getLayout("size"),l=n.getBaseAxis().isHorizontal()?0:1;return i[l]+=o+s/2,i}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}($r);$r.registerClass(L1);var jp=L1,kL=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return Av(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,i){return i.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=wl(jp.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(jp),BL=kL,NL=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),FL=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new NL},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,h=n.endAngle,c=n.clockwise,v=Math.PI*2,d=c?h-f<v:f-h<v;d||(f=h-(c?v:-v));var p=Math.cos(f),g=Math.sin(f),m=Math.cos(h),y=Math.sin(h);d?(e.moveTo(p*o+i,g*o+a),e.arc(p*u+i,g*u+a,l,-Math.PI+f,f,!c)):e.moveTo(p*s+i,g*s+a),e.arc(i,a,s,f,h,!c),e.arc(m*u+i,y*u+a,l,h-Math.PI*2,h-Math.PI,!c),o!==0&&e.arc(i,a,o,h,f,c)},t}(lt),tg=FL;function zL(r,t){t=t||{};var e=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return As(n,i,a);var s=r(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,h=u.cy,c=u.r,v=u.r0,d=(c+v)/2,p=u.startAngle,g=u.endAngle,m=(p+g)/2,y=e?Math.abs(c-v)/2:0,_=Math.cos,S=Math.sin,x=f+c*_(p),w=h+c*S(p),b="left",T="top";switch(s){case"startArc":x=f+(v-l)*_(m),w=h+(v-l)*S(m),b="center",T="top";break;case"insideStartArc":x=f+(v+l)*_(m),w=h+(v+l)*S(m),b="center",T="bottom";break;case"startAngle":x=f+d*_(p)+qo(p,l+y,!1),w=h+d*S(p)+Ko(p,l+y,!1),b="right",T="middle";break;case"insideStartAngle":x=f+d*_(p)+qo(p,-l+y,!1),w=h+d*S(p)+Ko(p,-l+y,!1),b="left",T="middle";break;case"middle":x=f+d*_(m),w=h+d*S(m),b="center",T="middle";break;case"endArc":x=f+(c+l)*_(m),w=h+(c+l)*S(m),b="center",T="bottom";break;case"insideEndArc":x=f+(c-l)*_(m),w=h+(c-l)*S(m),b="center",T="top";break;case"endAngle":x=f+d*_(g)+qo(g,l+y,!0),w=h+d*S(g)+Ko(g,l+y,!0),b="left",T="middle";break;case"insideEndAngle":x=f+d*_(g)+qo(g,-l+y,!0),w=h+d*S(g)+Ko(g,-l+y,!0),b="right",T="middle";break;default:return As(n,i,a)}return n=n||{},n.x=x,n.y=w,n.align=b,n.verticalAlign=T,n}}function VL(r,t,e,n){if(pt(n)){r.setTextConfig({rotation:n});return}else if(z(t)){r.setTextConfig({rotation:0});return}var i=r.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=e(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function qo(r,t,e){return t*Math.sin(r)*(e?-1:1)}function Ko(r,t,e){return t*Math.cos(r)*(e?1:-1)}var Xu=Math.max,qu=Math.min;function GL(r,t){var e=r.getArea&&r.getArea();if(Ov(r,"cartesian2d")){var n=r.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(e.x-=i,e.width+=i*2):(e.y-=i,e.height+=i*2)}}return e}var HL=function(r){B(t,r);function t(){var e=r.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,n,i,a){this._model=e,this._removeOnRenderedListener(i),this._updateDrawMode(e);var o=e.get("coordinateSystem");o==="cartesian2d"||o==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,n,i):this._renderNormal(e,n,i,a)):nr("Only cartesian2d and polar supported for bar.")},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,n){this._progressiveEls=[],this._incrementalRenderLarge(e,n)},t.prototype.eachRendered=function(e){_l(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e,n,i,a){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.getBaseAxis(),h;u.type==="cartesian2d"?h=f.isHorizontal():u.type==="polar"&&(h=f.dim==="angle");var c=e.isAnimationEnabled()?e:null,v=WL(e,u);v&&this._enableRealtimeSort(v,s,i);var d=e.get("clip",!0)||v,p=GL(u,s);o.removeClipPath();var g=e.get("roundCap",!0),m=e.get("showBackground",!0),y=e.getModel("backgroundStyle"),_=y.get("borderRadius")||0,S=[],x=this._backgroundEls,w=a&&a.isInitSort,b=a&&a.type==="changeAxisOrder";function T(M){var I=Qo[u.type](s,M),L=KL(u,h,I);return L.useStyle(y.getItemStyle()),u.type==="cartesian2d"&&L.setShape("r",_),S[M]=L,L}s.diff(l).add(function(M){var I=s.getItemModel(M),L=Qo[u.type](s,M,I);if(m&&T(M),!(!s.hasValue(M)||!ag[u.type](L))){var P=!1;d&&(P=eg[u.type](p,L));var E=rg[u.type](e,s,M,L,h,c,f.model,!1,g);v&&(E.forceLabelAnimation=!0),og(E,s,M,I,L,e,h,u.type==="polar"),w?E.attr({shape:L}):v?ng(v,c,E,L,M,h,!1,!1):$t(E,{shape:L},e,M),s.setItemGraphicEl(M,E),o.add(E),E.ignore=P}}).update(function(M,I){var L=s.getItemModel(M),P=Qo[u.type](s,M,L);if(m){var E=void 0;x.length===0?E=T(I):(E=x[I],E.useStyle(y.getItemStyle()),u.type==="cartesian2d"&&E.setShape("r",_),S[M]=E);var O=Qo[u.type](s,M),H=R1(h,O,u);Nt(E,{shape:H},c,M)}var k=l.getItemGraphicEl(I);if(!s.hasValue(M)||!ag[u.type](P)){o.remove(k);return}var F=!1;if(d&&(F=eg[u.type](p,P),F&&o.remove(k)),k?ev(k):k=rg[u.type](e,s,M,P,h,c,f.model,!!k,g),v&&(k.forceLabelAnimation=!0),b){var U=k.getTextContent();if(U){var q=Fi(U);q.prevValue!=null&&(q.prevValue=q.value)}}else og(k,s,M,L,P,e,h,u.type==="polar");w?k.attr({shape:P}):v?ng(v,c,k,P,M,h,!0,b):Nt(k,{shape:P},e,M,null),s.setItemGraphicEl(M,k),k.ignore=F,o.add(k)}).remove(function(M){var I=l.getItemGraphicEl(M);I&&Es(I,e,M)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new It);C.removeAll();for(var D=0;D<S.length;++D)C.add(S[D]);o.add(C),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(e,n,i){this._clear(),lg(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,n){this._removeBackground(),lg(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var n=e.get("clip",!0)&&_L(e.coordinateSystem,!1,e),i=this.group;n?i.setClipPath(n):i.removeClipPath()},t.prototype._enableRealtimeSort=function(e,n,i){var a=this;if(!!n.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,e,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,n,i){var a=[];return e.each(e.mapDimension(n.dim),function(o,s){var l=i(s);l=l==null?NaN:l,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:G(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,n,i){for(var a=i.scale,o=e.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=e.rawIndexOf(o,a.getRawOrdinalNumber(l)),h=f<0?Number.MIN_VALUE:n(e.indexOfRawIndex(f));if(h>s)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,i,a){if(!!this._isOrderChangedWithinSameData(e,n,i)){var o=this._dataSort(e,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,i){var a=n.baseAxis,o=this._dataSort(e,a,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,i=this._data;e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Es(a,e,dt(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(rr),eg={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=r.x+r.width,a=r.y+r.height,o=Xu(t.x,r.x),s=qu(t.x+t.width,i),l=Xu(t.y,r.y),u=qu(t.y+t.height,a),f=s<o,h=u<l;return t.x=f&&o>i?s:o,t.y=h&&l>a?u:l,t.width=f?0:s-o,t.height=h?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||h},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var i=qu(t.r,r.r),a=Xu(t.r0,r.r0);t.r=i,t.r0=a;var o=i-a<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},rg={cartesian2d:function(r,t,e,n,i,a,o,s,l){var u=new wt({shape:N({},n),z2:1});if(u.__dataIndex=e,u.name="item",a){var f=u.shape,h=i?"height":"width";f[h]=0}return u},polar:function(r,t,e,n,i,a,o,s,l){var u=!i&&l?tg:Sr,f=new u({shape:n,z2:1});f.name="item";var h=P1(i);if(f.calculateTextPosition=zL(h,{isRoundCap:u===tg}),a){var c=f.shape,v=i?"r":"endAngle",d={};c[v]=i?0:n.startAngle,d[v]=n[v],(s?Nt:$t)(f,{shape:d},a)}return f}};function WL(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&(n.type!=="category"&&nr("`realtimeSort` will not work because this bar series is not based on a category axis."),t.type!=="cartesian2d"&&nr("`realtimeSort` will not work because this bar series is not on cartesian2d.")),e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function ng(r,t,e,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Nt:$t)(e,{shape:l},t,i,null);var f=t?r.baseAxis.model:null;(o?Nt:$t)(e,{shape:u},f,i)}function ig(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var UL=["x","y","width","height"],YL=["cx","cy","r","startAngle","endAngle"],ag={cartesian2d:function(r){return!ig(r,UL)},polar:function(r){return!ig(r,YL)}},Qo={cartesian2d:function(r,t,e){var n=r.getItemLayout(t),i=e?$L(e,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function ZL(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function P1(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function og(r,t,e,n,i,a,o,s){var l=t.getItemVisual(e,"style");s||r.setShape("r",n.get(["itemStyle","borderRadius"])||0),r.useStyle(l);var u=n.getShallow("cursor");u&&r.attr("cursor",u);var f=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",h=ao(n);io(r,h,{labelFetcher:a,labelDataIndex:e,defaultText:Rv(a.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var c=r.getTextContent();if(s&&c){var v=n.get(["label","position"]);r.textConfig.inside=v==="middle"?!0:null,VL(r,v==="outside"?f:v,P1(o),n.get(["label","rotate"]))}eA(c,h,a.getRawValue(e),function(p){return x1(t,p)});var d=n.getModel(["emphasis"]);za(r,d.get("focus"),d.get("blurScope"),d.get("disabled")),Ls(r,n),ZL(i)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(p){p.style&&(p.style.fill=p.style.stroke="none")}))}function $L(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var XL=function(){function r(){}return r}(),sg=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new XL},t.prototype.buildPath=function(e,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[a]=u,l[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],e.rect(s[0],s[1],l[0],l[1])},t}(lt);function lg(r,t,e,n){var i=r.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=r.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var f=new sg({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),e&&e.push(f)}var h=new sg({shape:{points:i.getLayout("largePoints")},incremental:!!n,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,t.add(h),h.useStyle(i.getVisual("style")),dt(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",ug),h.on("mousemove",ug)),e&&e.push(h)}var ug=Sv(function(r){var t=this,e=qL(t,r.offsetX,r.offsetY);dt(t).dataIndex=e>=0?e:null},30,!1);function qL(r,t,e){for(var n=r.baseDimIdx,i=1-n,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=a.length/3;f<h;f++){var c=f*3;if(l[n]=u,l[i]=a[c+2],s[n]=a[c+n],s[i]=a[c+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function R1(r,t,e){if(Ov(e,"cartesian2d")){var n=t,i=e.getArea();return{x:r?n.x:i.x,y:r?i.y:n.y,width:r?n.width:i.width,height:r?i.height:n.height}}else{var i=e.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:r?i.r0:a.r0,r:r?i.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function KL(r,t,e){var n=r.type==="polar"?Sr:wt;return new n({shape:R1(t,e,r),silent:!0,z2:0})}var QL=HL;function JL(r){r.registerChartView(QL),r.registerSeriesModel(BL),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ft(uI,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,fI("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,I1("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var Jo=Math.PI*2,fg=Math.PI/180;function E1(r,t){return xr(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function O1(r,t){var e=E1(r,t),n=r.get("center"),i=r.get("radius");z(i)||(i=[0,i]),z(n)||(n=[n,n]);var a=St(e.width,t.getWidth()),o=St(e.height,t.getHeight()),s=Math.min(a,o),l=St(n[0],a)+e.x,u=St(n[1],o)+e.y,f=St(i[0],s/2),h=St(i[1],s/2);return{cx:l,cy:u,r0:f,r:h}}function jL(r,t,e){t.eachSeriesByType(r,function(n){var i=n.getData(),a=i.mapDimension("value"),o=E1(n,e),s=O1(n,e),l=s.cx,u=s.cy,f=s.r,h=s.r0,c=-n.get("startAngle")*fg,v=n.get("minAngle")*fg,d=0;i.each(a,function(D){!isNaN(D)&&d++});var p=i.getSum(a),g=Math.PI/(p||d)*2,m=n.get("clockwise"),y=n.get("roseType"),_=n.get("stillShowZeroSum"),S=i.getDataExtent(a);S[0]=0;var x=Jo,w=0,b=c,T=m?1:-1;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(D,M){var I;if(isNaN(D)){i.setItemLayout(M,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:l,cy:u,r0:h,r:y?NaN:f});return}y!=="area"?I=p===0&&_?g:D*g:I=Jo/d,I<v?(I=v,x-=v):w+=D;var L=b+T*I;i.setItemLayout(M,{angle:I,startAngle:b,endAngle:L,clockwise:m,cx:l,cy:u,r0:h,r:y?zt(D,S,[h,f]):f}),b=L}),x<Jo&&d)if(x<=.001){var C=Jo/d;i.each(a,function(D,M){if(!isNaN(D)){var I=i.getItemLayout(M);I.angle=C,I.startAngle=c+T*M*C,I.endAngle=c+T*(M+1)*C}})}else g=x/w,b=c,i.each(a,function(D,M){if(!isNaN(D)){var I=i.getItemLayout(M),L=I.angle===v?v:D*g;I.startAngle=b,I.endAngle=b+T*L,b+=T*L}})})}function tP(r){return{seriesType:r,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=t.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var eP=Math.PI/180;function hg(r,t,e,n,i,a,o,s,l,u){if(r.length<2)return;function f(p){for(var g=p.rB,m=g*g,y=0;y<p.list.length;y++){var _=p.list[y],S=Math.abs(_.label.y-e),x=n+_.len,w=x*x,b=Math.sqrt((1-Math.abs(S*S/m))*w),T=t+(b+_.len2)*i,C=T-_.label.x,D=_.targetTextWidth-C*i;k1(_,D,!0),_.label.x=T}}function h(p){for(var g={list:[],maxY:0},m={list:[],maxY:0},y=0;y<p.length;y++)if(p[y].labelAlignTo==="none"){var _=p[y],S=_.label.y>e?m:g,x=Math.abs(_.label.y-e);if(x>=S.maxY){var w=_.label.x-t-_.len2*i,b=n+_.len,T=Math.abs(w)<b?Math.sqrt(x*x/(1-w*w/b/b)):b;S.rB=T,S.maxY=x}S.list.push(_)}f(g),f(m)}for(var c=r.length,v=0;v<c;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var d=r[v].label.x-u;r[v].linePoints[1][0]+=d,r[v].label.x=u}S1(r,l,l+o)&&h(r)}function rP(r,t,e,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,c=0;c<r.length;c++){var v=r[c].label;Ku(r[c])||(v.x<t?(f=Math.min(f,v.x),l.push(r[c])):(h=Math.max(h,v.x),u.push(r[c])))}for(var c=0;c<r.length;c++){var d=r[c];if(!Ku(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?v.x<t?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+i-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<t?g=f-o-d.bleedMargin:g=o+i-h-d.bleedMargin:v.x<t?g=v.x-o-d.bleedMargin:g=o+i-v.x-d.bleedMargin,d.targetTextWidth=g,k1(d,g)}}hg(u,t,e,n,1,i,a,o,s,h),hg(l,t,e,n,-1,i,a,o,s,f);for(var c=0;c<r.length;c++){var d=r[c];if(!Ku(d)&&d.linePoints){var v=d.label,p=d.linePoints,m=d.labelAlignTo==="edge",y=v.style.padding,_=y?y[1]+y[3]:0,S=v.style.backgroundColor?0:_,x=d.rect.width+S,w=p[1][0]-p[2][0];m?v.x<t?p[2][0]=o+d.edgeDistance+x+d.labelDistance:p[2][0]=o+i-d.edgeDistance-x-d.labelDistance:(v.x<t?p[2][0]=v.x+d.labelDistance:p[2][0]=v.x-d.labelDistance,p[1][0]=p[2][0]+w),p[1][1]=p[2][1]=v.y}}}function k1(r,t,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var n=r.label,i=n.style,a=r.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,f=a.width+(o?0:l);if(t<f||e){var h=a.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var c=n.getBoundingRect();n.setStyle("width",Math.ceil(c.width)),n.setStyle("backgroundColor",o)}else{var v=t-l,d=t<f?v:e?v>r.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var p=n.getBoundingRect();a.width=p.width;var g=(n.style.margin||0)+2.1;a.height=p.height+g,a.y-=(a.height-h)/2}}}function Ku(r){return r.position==="center"}function nP(r){var t=r.getData(),e=[],n,i,a=!1,o=(r.get("minShowLabelAngle")||0)*eP,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,h=s.y,c=s.height;function v(w){w.ignore=!0}function d(w){if(!w.ignore)return!0;for(var b in w.states)if(w.states[b].ignore===!1)return!0;return!1}t.each(function(w){var b=t.getItemGraphicEl(w),T=b.shape,C=b.getTextContent(),D=b.getTextGuideLine(),M=t.getItemModel(w),I=M.getModel("label"),L=I.get("position")||M.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),E=I.get("alignTo"),O=St(I.get("edgeDistance"),u),H=I.get("bleedMargin"),k=M.getModel("labelLine"),F=k.get("length");F=St(F,u);var U=k.get("length2");if(U=St(U,u),Math.abs(T.endAngle-T.startAngle)<o){A(C.states,v),C.ignore=!0;return}if(!!d(C)){var q=(T.startAngle+T.endAngle)/2,j=Math.cos(q),nt=Math.sin(q),ht,At,_t,Gt;n=T.cx,i=T.cy;var Ht=L==="inside"||L==="inner";if(L==="center")ht=T.cx,At=T.cy,Gt="center";else{var Lt=(Ht?(T.r+T.r0)/2*j:T.r*j)+n,Tt=(Ht?(T.r+T.r0)/2*nt:T.r*nt)+i;if(ht=Lt+j*3,At=Tt+nt*3,!Ht){var J=Lt+j*(F+l-T.r),at=Tt+nt*(F+l-T.r),We=J+(j<0?-1:1)*U,Bt=at;E==="edge"?ht=j<0?f+O:f+u-O:ht=We+(j<0?-P:P),At=Bt,_t=[[Lt,Tt],[J,at],[We,Bt]]}Gt=Ht?"center":E==="edge"?j>0?"right":"left":j>0?"left":"right"}var Cr=Math.PI,sr=0,Gi=I.get("rotate");if(pt(Gi))sr=Gi*(Cr/180);else if(L==="center")sr=0;else if(Gi==="radial"||Gi===!0){var IS=j<0?-q+Cr:-q;sr=IS}else if(Gi==="tangential"&&L!=="outside"&&L!=="outer"){var Wn=Math.atan2(j,nt);Wn<0&&(Wn=Cr*2+Wn);var LS=nt>0;LS&&(Wn=Cr+Wn),sr=Wn-Cr}if(a=!!sr,C.x=ht,C.y=At,C.rotation=sr,C.setStyle({verticalAlign:"middle"}),Ht){C.setStyle({align:Gt});var Fl=C.states.select;Fl&&(Fl.x+=C.x,Fl.y+=C.y)}else{var Hi=C.getBoundingRect().clone();Hi.applyTransform(C.getComputedTransform());var Jv=(C.style.margin||0)+2.1;Hi.y-=Jv/2,Hi.height+=Jv,e.push({label:C,labelLine:D,position:L,len:F,len2:U,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new Z(j,nt),linePoints:_t,textAlign:Gt,labelDistance:P,labelAlignTo:E,edgeDistance:O,bleedMargin:H,rect:Hi,unconstrainedWidth:Hi.width,labelStyleWidth:C.style.width})}b.setTextConfig({inside:Ht})}}),!a&&r.get("avoidLabelOverlap")&&rP(e,n,i,l,u,c,f,h);for(var p=0;p<e.length;p++){var g=e[p],m=g.label,y=g.labelLine,_=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),_&&(A(m.states,v),m.ignore=!0);var S=m.states.select;S&&(S.x+=m.x,S.y+=m.y)}if(y){var x=g.linePoints;_||!x?(A(y.states,v),y.ignore=!0):(p1(x,g.minTurnAngle),JI(x,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:x}),m.__hostTarget.textGuideLineConfig={anchor:new Z(x[0][0],x[0][1])})}}}function jo(r,t,e){var n=r.get("borderRadius");if(n==null)return e?{cornerRadius:0}:null;z(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:G(n,function(a){return Yr(a,i)})}}var iP=function(r){B(t,r);function t(e,n,i){var a=r.call(this)||this;a.z2=2;var o=new kt;return a.setTextContent(o),a.updateData(e,n,i,!0),a}return t.prototype.updateData=function(e,n,i,a){var o=this,s=e.hostModel,l=e.getItemModel(n),u=l.getModel("emphasis"),f=e.getItemLayout(n),h=N(jo(l.getModel("itemStyle"),f,!0),f);if(isNaN(h.startAngle)){o.setShape(h);return}if(a){o.setShape(h);var c=s.getShallow("animationType");s.ecModel.ssr?($t(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):c==="scale"?(o.shape.r=f.r0,$t(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),$t(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Nt(o,{shape:{endAngle:f.endAngle}},s,n))}else ev(o),Nt(o,{shape:h},s,n);o.useStyle(e.getItemVisual(n,"style")),Ls(o,l);var v=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(v)*d,g=Math.sin(v)*d,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,e,n),o.ensureState("emphasis").shape=N({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},jo(u.getModel("itemStyle"),f)),N(o.ensureState("select"),{x:p,y:g,shape:jo(l.getModel(["select","itemStyle"]),f)}),N(o.ensureState("blur"),{shape:jo(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&N(y.ensureState("select"),{x:p,y:g}),N(_.ensureState("select"),{x:p,y:g}),za(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,f=l&&l.opacity;io(a,ao(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:e.getFormattedLabel(i,"normal")||n.getName(i)});var h=a.getTextContent();a.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var c=e.get(["label","position"]);if(c!=="outside"&&c!=="outer")a.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new Ni,this.setTextGuideLine(v)),g1(this,m1(o),{stroke:u,opacity:Mn(s.get(["lineStyle","opacity"]),f,1)})}},t}(Sr),aP=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,n,i,a){var o=e.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h<o.count();++h)f=o.getItemLayout(h);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var c=new Sr({shape:O1(e,i)});c.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,l.add(c)}o.diff(s).add(function(v){var d=new iP(o,v,u);o.setItemGraphicEl(v,d),l.add(d)}).update(function(v,d){var p=s.getItemGraphicEl(d);p.updateData(o,v,u),p.off("click"),l.add(p),o.setItemGraphicEl(v,p)}).remove(function(v){var d=s.getItemGraphicEl(v);Es(d,e,v)}).execute(),nP(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=e[0]-a.cx,s=e[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t}(rr),oP=aP;function sP(r,t,e){t=z(t)&&{coordDimensions:t}||N({encodeDefine:r.getEncode()},t);var n=r.getSource(),i=Y_(n,t).dimensions,a=new U_(i,r);return a.initData(n,e),a}var lP=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}(),uP=lP,fP=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new uP(K(this.getData,this),K(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return sP(this,{coordDimensions:["value"],encodeDefaulter:ft(EA,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),i=r.prototype.getDataParams.call(this,e),a=[];return n.each(n.mapDimension("value"),function(o){a.push(o)}),i.percent=pb(a,e,n.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},t.prototype._defaultLabelLine=function(e){Nf(e,"labelLine",["show"]);var n=e.labelLine,i=e.emphasis.labelLine;n.show=n.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}($r),hP=fP;function vP(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(pt(o)&&!isNaN(o)&&o<0)})}}}function cP(r){r.registerChartView(oP),r.registerSeriesModel(hP),bD("pie",r.registerAction),r.registerLayout(ft(jL,"pie")),r.registerProcessor(tP("pie")),r.registerProcessor(vP("pie"))}var dP=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(yt),pP=dP,vh=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Jt).models[0]},t.type="cartesian2dAxis",t}(yt);ir(vh,OI);var B1={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},gP=it({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},B1),kv=it({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},B1),mP=it({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},kv),yP=tt({logBase:10},kv),_P={category:gP,value:kv,time:mP,log:yP},SP={value:1,category:1,time:1,log:1};function vg(r,t,e,n){A(SP,function(i,a){var o=it(it({},_P[a],!0),n,!0),s=function(l){B(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var c=Wa(this),v=c?so(f):{},d=h.getTheme();it(f,d.get(a+"Axis")),it(f,this.getDefaultOption()),f.type=cg(f),c&&Ii(f,v,c)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=uh.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",cg)}function cg(r){return r.type||(r.data?"category":"value")}var wP=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return G(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Pt(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}(),xP=wP,ch=["x","y"];function dg(r){return r.type==="interval"||r.type==="time"}var bP=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=ch,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!dg(e)||!dg(n))){var i=e.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,c=o[0]-i[0]*f,v=o[1]-a[0]*h,d=this._transform=[f,0,0,h,c,v];this._invTransform=al([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&i.contain(i.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var i=this.dataToPoint(e),a=this.dataToPoint(n),o=this.getArea(),s=new ct(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,i){i=i||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Me(i,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(e,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(e[0]),u=a.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n){var i=[];if(this._invTransform)return Me(i,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(e[0]),n),i[1]=o.coordToData(o.toLocalCoord(e[1]),n),i},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1]),a=Math.min(n[0],n[1]),o=Math.max(e[0],e[1])-i,s=Math.max(n[0],n[1])-a;return new ct(i,a,o,s)},t}(xP),TP=function(r){B(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(ZI),CP=TP;function dh(r,t,e){e=e||{};var n=r.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=n.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],c={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=u==="x"?[h[2]-v,h[3]+v]:[h[0]-v,h[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(p,d[1]),d[0])}a.position=[u==="y"?d[c[l]]:h[0],u==="x"?d[c[l]]:h[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?d[c[s]]-d[c.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),En(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}function pg(r){return r.get("coordinateSystem")==="cartesian2d"}function gg(r){var t={xAxisModel:null,yAxisModel:null};return A(t,function(e,n){var i=n.replace(/Model$/,""),a=r.getReferringComponents(i,Jt).models[0];if(!a)throw new Error(i+' "'+Mn(r.get(i+"Index"),r.get(i+"Id"),0)+'" not found');t[n]=a}),t}var Qu=Math.log;function AP(r,t,e){var n=lo.prototype,i=n.getTicks.call(e),a=n.getTicks.call(e,!0),o=i.length-1,s=n.getInterval.call(e),l=a1(r,t),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var c=Qu(r.base);u=[Qu(u[0])/c,Qu(u[1])/c]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var v=n.getExtent.call(r);f&&(u[0]=v[0]),h&&(u[1]=v[1]);var d=n.getInterval.call(r),p=u[0],g=u[1];if(f&&h)d=(g-p)/o;else if(f)for(g=u[0]+d*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)d=Wu(d),g=u[0]+d*o;else if(h)for(p=u[1]-d*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)d=Wu(d),p=u[1]-d*o;else{var m=r.getTicks().length-1;m>o&&(d=Wu(d));var y=d*o;g=Math.ceil(u[1]/d)*d,p=Rt(g-y),p<0&&u[0]>=0?(p=0,g=Rt(y)):g>0&&u[1]<=0&&(g=0,p=-Rt(y))}var _=(i[0].value-a[0].value)/s,S=(i[o].value-a[o].value)/s;n.setExtent.call(r,p+d*_,g+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,p+d,g-d);{var x=n.getTicks.call(r);x[1]&&(!eI(d)||Bf(x[1].value)>Bf(d))&&nr("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+" and alignTicks: true")}}var MP=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ch,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=xt(o),u=l.length;if(!!u){for(var f=[],h=u-1;h>=0;h--){var c=+l[h],v=o[c],d=v.model,p=v.scale;fh(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(zp(p,d),fh(p)&&(s=v))}f.length&&(s||(s=f.pop(),zp(s.scale,s.model)),A(f,function(g){AP(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};A(n.x,function(o){mg(n,"y",o,a)}),A(n.y,function(o){mg(n,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=xr(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(A(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=PI(u);if(f){var h=u.isHorizontal()?"height":"width",c=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+c,u.position==="top"?o.y+=f.height+c:u.position==="left"&&(o.x+=f.width+c)}}}),l()),A(this._coordsList,function(u){u.calcAffineTransform()});function l(){A(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],c=u.inverse?1:0;u.setExtent(h[c],h[1-c]),DP(u,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}Y(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===e)return a[i]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,n=t.xAxisModel||e&&e.getReferringComponents("xAxis",Jt).models[0],i=t.yAxisModel||e&&e.getReferringComponents("yAxis",Jt).models[0],a=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,ot(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,A(s.x,function(f,h){A(s.y,function(c,v){var d="x"+h+"y"+v,p=new bP(d);p.master=i,p.model=t,i._coordsMap[d]=p,i._coordsList.push(p),p.addAxis(f),p.addAxis(c)})});function u(f){return function(h,c){if(!!Ju(h,t)){var v=h.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new CP(f,II(h),[0,0],h.get("type"),v),p=d.type==="category";d.onBand=p&&h.get("boundaryGap"),d.inverse=h.get("inverse"),h.axis=d,d.model=h,d.grid=a,d.index=c,a._axesList.push(d),s[f][c]=d,l[f]++}}}},r.prototype._updateScale=function(t,e){A(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(pg(i)){var a=gg(i),o=a.xAxisModel,s=a.yAxisModel;if(!Ju(o,e)||!Ju(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),f=l.getAxis("x"),h=l.getAxis("y");n(u,f),n(u,h)}},this);function n(i,a){A(s1(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],n=[];return A(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);ot(e,a)<0&&e.push(a),ot(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},r.create=function(t,e){var n=[];return t.eachComponent("grid",function(i,a){var o=new r(i,t,e);o.name="grid_"+a,o.resize(i,e,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){if(!!pg(i)){var a=gg(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel();{if(!l)throw new Error('Grid "'+Mn(o.get("gridIndex"),o.get("gridId"),0)+'" not found');if(o.getCoordSysModel()!==s.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},r.dimensions=ch,r}();function Ju(r,t){return r.getCoordSysModel()===t}function mg(r,t,e,n){e.getAxesOnZeroOf=function(){return a?[a]:[]};var i=r[t],a,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)yg(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&yg(i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(h){return h.dim+"_"+h.index}}function yg(r){return r&&r.type!=="category"&&r.type!=="time"&&LI(r)}function DP(r,t){var e=r.getExtent(),n=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(i){return i+t}:function(i){return n-i+t},r.toLocalCoord=r.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}var IP=MP,zr=Math.PI,Pn=function(){function r(t,e){this.group=new It,this.opt=e,this.axisModel=t,tt(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new It({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return r.prototype.hasBuilder=function(t){return!!_g[t]},r.prototype.add=function(t){_g[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,n){var i=u0(e-t),a,o;return Ms(i)?(o=n>0?"top":"bottom",a="center"):Ms(i-zr)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<zr?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),_g={axisLine:function(r,t,e,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0];o&&(Me(s,s,o),Me(l,l,o));var u=N({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new kn({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});f.anid="line",e.add(f);var h=t.get(["axisLine","symbol"]);if(h!=null){var c=t.get(["axisLine","symbolSize"]);W(h)&&(h=[h,h]),(W(c)||pt(c))&&(c=[c,c]);var v=g_(t.get(["axisLine","symbolOffset"])||0,c),d=c[0],p=c[1];A([{rotate:r.rotation+Math.PI/2,offset:v[0],r:0},{rotate:r.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,m){if(h[m]!=="none"&&h[m]!=null){var y=Xr(h[m],-d/2,-p/2,d,p,u.stroke,!0),_=g.r+g.offset;y.attr({rotation:g.rotate,x:s[0]+_*Math.cos(r.rotation),y:s[1]-_*Math.sin(r.rotation),silent:!0,z2:11}),e.add(y)}})}}},axisTickLabel:function(r,t,e,n){var i=RP(e,n,t,r),a=OP(e,n,t,r);if(PP(t,a,i),EP(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=y1(G(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));w1(o)}},axisName:function(r,t,e,n){var i=En(r.axisName,t.get("name"));if(!!i){var a=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,wg(a)?r.labelOffset+o*l:0],c,v=t.get("nameRotate");v!=null&&(v=v*zr/180);var d;wg(a)?c=Pn.innerTextLayout(r.rotation,v!=null?v:r.rotation,o):(c=LP(r.rotation,a,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(c.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=En(r.nameTruncateMaxWidth,g.maxWidth,d),_=new kt({x:h[0],y:h[1],rotation:c.rotation,silent:Pn.isLabelSilent(t),style:wr(s,{text:i,font:p,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(yl({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var S=Pn.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,dt(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function LP(r,t,e,n){var i=u0(e-r),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Ms(i-zr/2)?(o=l?"bottom":"top",a="center"):Ms(i-zr*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<zr*1.5&&i>zr/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function PP(r,t,e){if(!o1(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],f=e[1],h=e[e.length-1],c=e[e.length-2];n===!1?(_e(a),_e(u)):Sg(a,o)&&(n?(_e(o),_e(f)):(_e(a),_e(u))),i===!1?(_e(s),_e(h)):Sg(l,s)&&(i?(_e(l),_e(c)):(_e(s),_e(h)))}}function _e(r){r&&(r.ignore=!0)}function Sg(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var i=Vh([]);return Gh(i,i,-r.rotation),e.applyTransform(yi([],i,r.getLocalTransform())),n.applyTransform(yi([],i,t.getLocalTransform())),e.intersect(n)}}function wg(r){return r==="middle"||r==="center"}function N1(r,t,e,n,i){for(var a=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(Me(o,o,t),Me(s,s,t));var f=new kn({subPixelOptimize:!0,shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});f.anid=i+"_"+r[l].tickValue,a.push(f)}return a}function RP(r,t,e,n){var i=e.axis,a=e.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),u=i.getTicksCoords(),f=N1(u,t.transform,l,tt(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)r.add(f[h]);return f}}function EP(r,t,e,n){var i=e.axis,a=e.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(!!o.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),u=tt(s.getLineStyle(),tt(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var h=N1(o[f],t.transform,l,u,"minorticks_"+f),c=0;c<h.length;c++)r.add(h[c])}}function OP(r,t,e,n){var i=e.axis,a=En(n.axisLabelShow,e.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(En(n.labelRotate,o.get("rotate"))||0)*zr/180,f=Pn.innerTextLayout(n.rotation,u,n.labelDirection),h=e.getCategories&&e.getCategories(!0),c=[],v=Pn.isLabelSilent(e),d=e.get("triggerEvent");return A(l,function(p,g){var m=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,y=p.formattedLabel,_=p.rawLabel,S=o;if(h&&h[m]){var x=h[m];Y(x)&&x.textStyle&&(S=new Vt(x.textStyle,o,e.ecModel))}var w=S.getTextColor()||e.get(["axisLine","lineStyle","color"]),b=i.dataToCoord(m),T=new kt({x:b,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:v,z2:10+(p.level||0),style:wr(S,{text:y,align:S.getShallow("align",!0)||f.textAlign,verticalAlign:S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||f.textVerticalAlign,fill:$(w)?w(i.type==="category"?_:i.type==="value"?m+"":m,g):w})});if(T.anid="label_"+m,d){var C=Pn.makeAxisEventDataBase(e);C.targetType="axisLabel",C.value=_,C.tickIndex=g,i.type==="category"&&(C.dataIndex=m),dt(T).eventData=C}t.add(T),T.updateTransform(),c.push(T),r.add(T),T.decomposeTransform()}),c}}var F1=Pn;function kP(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return BP(e,r,t),e.seriesInvolved&&FP(e,r),e}function BP(r,t,e){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];A(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Ka(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,h=f.getModel("tooltip",n);if(A(s.getAxes(),ft(p,!1,null)),s.getTooltipAxes&&n&&h.get("show")){var c=h.get("trigger")==="axis",v=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(c||v)&&A(d.baseAxes,ft(p,v?"cross":!0,c)),v&&A(d.otherAxes,ft(p,"cross",!1))}function p(g,m,y){var _=y.model.getModel("axisPointer",i),S=_.get("show");if(!(!S||S==="auto"&&!g&&!ph(_))){m==null&&(m=_.get("triggerTooltip")),_=g?NP(y,h,i,t,g,m):_;var x=_.get("snap"),w=Ka(y.model),b=m||x||y.type==="category",T=r.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,involveSeries:b,snap:x,useHandle:ph(_),seriesModels:[],linkGroup:null};u[w]=T,r.seriesInvolved=r.seriesInvolved||b;var C=zP(a,y);if(C!=null){var D=o[C]||(o[C]={axesInfo:{}});D.axesInfo[w]=T,D.mapper=a[C].mapper,T.linkGroup=D}}}})}function NP(r,t,e,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};A(s,function(c){l[c]=rt(o.get(c))}),l.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f!=null?f:!0,!a){var h=l.lineStyle=o.get("crossStyle");h&&tt(u,h.textStyle)}}return r.model.getModel("axisPointer",new Vt(l,e,n))}function FP(r,t){t.eachSeries(function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),a=e.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||e.get(["axisPointer","show"],!0)===!1||A(r.coordSysAxesInfo[Ka(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function zP(r,t){for(var e=t.model,n=t.dim,i=0;i<r.length;i++){var a=r[i]||{};if(ju(a[n+"AxisId"],e.id)||ju(a[n+"AxisIndex"],e.componentIndex)||ju(a[n+"AxisName"],e.name))return i}}function ju(r,t){return r==="all"||z(r)&&ot(r,t)>=0||r===t}function VP(r){var t=Bv(r);if(!!t){var e=t.axisPointerModel,n=t.axis.scale,i=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=ph(e);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function Bv(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Ka(r)]}function GP(r){var t=Bv(r);return t&&t.axisPointerModel}function ph(r){return!!r.get(["handle","show"])}function Ka(r){return r.type+"||"+r.id}var tf={},HP=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i,a){this.axisPointerClass&&VP(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},t.prototype.updateAxisPointer=function(e,n,i,a){this._doUpdateAxisPointerClass(e,i,!1)},t.prototype.remove=function(e,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(e,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(!!a){var o=GP(e);o?(this._axisPointer||(this._axisPointer=new a)).render(e,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,n){if(tf[e])throw new Error("axisPointer "+e+" exists");tf[e]=n},t.getAxisPointerClass=function(e){return e&&tf[e]},t.type="axis",t}(Ie),z1=HP,gh=bt();function WP(r,t,e,n){var i=e.axis;if(!i.scale.isBlank()){var a=e.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(!!u.length){var f=s.length,h=gh(r).splitAreaColors,c=Q(),v=0;if(h)for(var d=0;d<u.length;d++){var p=h.get(u[d].tickValue);if(p!=null){v=(p+(f-1)*d)%f;break}}var g=i.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=z(s)?s:[s];for(var d=1;d<u.length;d++){var y=i.toGlobalCoord(u[d].coord),_=void 0,S=void 0,x=void 0,w=void 0;i.isHorizontal()?(_=g,S=l.y,x=y-_,w=l.height,g=_+x):(_=l.x,S=g,x=l.width,w=y-S,g=S+w);var b=u[d-1].tickValue;b!=null&&c.set(b,v),t.add(new wt({anid:b!=null?"area_"+b:null,shape:{x:_,y:S,width:x,height:w},style:tt({fill:s[v]},m),autoBatch:!0,silent:!0})),v=(v+1)%f}gh(r).splitAreaColors=c}}}function UP(r){gh(r).splitAreaColors=null}var YP=["axisLine","axisTickLabel","axisName"],ZP=["splitArea","splitLine","minorSplitLine"],V1=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new It,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=dh(s,e),u=new F1(e,N({handleAutoShown:function(h){for(var c=s.coordinateSystem.getCartesians(),v=0;v<c.length;v++)if(fh(c[v].getOtherAxis(e.axis).scale))return!0;return!1}},l));A(YP,u.add,u),this._axisGroup.add(u.getGroup()),A(ZP,function(h){e.get([h,"show"])&&$P[h](this,this._axisGroup,e,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||dy(o,this._axisGroup,e),r.prototype.render.call(this,e,n,i,a)}},t.prototype.remove=function(){UP(this)},t.type="cartesianAxis",t}(z1),$P={splitLine:function(r,t,e,n){var i=e.axis;if(!i.scale.isBlank()){var a=e.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=z(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=i.isHorizontal(),f=0,h=i.getTicksCoords({tickModel:a}),c=[],v=[],d=o.getLineStyle(),p=0;p<h.length;p++){var g=i.toGlobalCoord(h[p].coord);u?(c[0]=g,c[1]=l.y,v[0]=g,v[1]=l.y+l.height):(c[0]=l.x,c[1]=g,v[0]=l.x+l.width,v[1]=g);var m=f++%s.length,y=h[p].tickValue;t.add(new kn({anid:y!=null?"line_"+h[p].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:v[0],y2:v[1]},style:tt({stroke:s[m]},d),silent:!0}))}}},minorSplitLine:function(r,t,e,n){var i=e.axis,a=e.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(!!u.length)for(var f=[],h=[],c=o.getLineStyle(),v=0;v<u.length;v++)for(var d=0;d<u[v].length;d++){var p=i.toGlobalCoord(u[v][d].coord);l?(f[0]=p,f[1]=s.y,h[0]=p,h[1]=s.y+s.height):(f[0]=s.x,f[1]=p,h[0]=s.x+s.width,h[1]=p),t.add(new kn({anid:"minor_line_"+u[v][d].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:c,silent:!0}))}},splitArea:function(r,t,e,n){WP(r,t,e,n)}},G1=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t}(V1),XP=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=G1.type,e}return t.type="yAxis",t}(V1),qP=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,n){this.group.removeAll(),e.get("show")&&this.group.add(new wt({shape:e.coordinateSystem.getRect(),style:tt({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Ie),xg={offset:0};function KP(r){r.registerComponentView(qP),r.registerComponentModel(pP),r.registerCoordinateSystem("cartesian2d",IP),vg(r,"x",vh,xg),vg(r,"y",vh,xg),r.registerComponentView(G1),r.registerComponentView(XP),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var bg="\0_ec_interaction_mutex";function QP(r,t,e){var n=Nv(r);n[t]=e}function JP(r,t,e){var n=Nv(r),i=n[t];i===e&&(n[t]=null)}function Tg(r,t){return!!Nv(r)[t]}function Nv(r){return r[bg]||(r[bg]={})}or({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},jt);var jP=function(r){B(t,r);function t(e){var n=r.call(this)||this;n._zr=e;var i=K(n._mousedownHandler,n),a=K(n._mousemoveHandler,n),o=K(n._mouseupHandler,n),s=K(n._mousewheelHandler,n),l=K(n._pinchHandler,n);return n.enable=function(u,f){this.disable(),this._opt=tt(rt(f)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(e.on("mousedown",i),e.on("mousemove",a),e.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(e.on("mousewheel",s),e.on("pinch",l))},n.disable=function(){e.off("mousedown",i),e.off("mousemove",a),e.off("mouseup",o),e.off("mousewheel",s),e.off("pinch",l)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(oc(e)||e.target&&e.target.draggable)){var n=e.offsetX,i=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!gs("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||Tg(this._zr,"globalPan"))){var n=e.offsetX,i=e.offsetY,a=this._x,o=this._y,s=n-a,l=i-o;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&Ti(e.event),H1(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:a,oldY:o,newX:n,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){oc(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var n=gs("zoomOnMouseWheel",e,this._opt),i=gs("moveOnMouseWheel",e,this._opt),a=e.wheelDelta,o=Math.abs(a),s=e.offsetX,l=e.offsetY;if(!(a===0||!n&&!i)){if(n){var u=o>3?1.4:o>1?1.2:1.1,f=a>0?u:1/u;ef(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(i){var h=Math.abs(a),c=(a>0?1:-1)*(h>3?.4:h>1?.15:.05);ef(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!Tg(this._zr,"globalPan")){var n=e.pinchScale>1?1.1:1/1.1;ef(this,"zoom",null,e,{scale:n,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(Le);function ef(r,t,e,n,i){r.pointerChecker&&r.pointerChecker(n,i.originX,i.originY)&&(Ti(n.event),H1(r,t,e,n,i))}function H1(r,t,e,n,i){i.isAvailableBehavior=K(gs,null,e,n),r.trigger(t,i)}function gs(r,t,e){var n=e[r];return!r||n&&(!W(n)||t.event[n+"Key"])}var tR=jP,eR={axisPointer:1,tooltip:1,brush:1};function rR(r,t,e){var n=t.getComponentByElement(r.topTarget),i=n&&n.coordinateSystem;return n&&n!==e&&!eR.hasOwnProperty(n.mainType)&&i&&i.model!==e}function fo(r,t,e,n,i,a){r=r||0;var o=e[1]-e[0];if(i!=null&&(i=ii(i,[0,o])),a!=null&&(a=Math.max(a,i!=null?i:0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=ii(s,[0,o]),i=a=ii(s,[i,a]),n=0}t[0]=ii(t[0],e),t[1]=ii(t[1],e);var l=rf(t,n);t[n]+=r;var u=i||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[n]=ii(t[n],f);var h;return h=rf(t,n),i!=null&&(h.sign!==l.sign||h.span<i)&&(t[1-n]=t[n]+l.sign*i),h=rf(t,n),a!=null&&h.span>a&&(t[1-n]=t[n]+h.sign*a),t}function rf(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function ii(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var Nn=!0,Qa=Math.min,Ri=Math.max,nR=Math.pow,iR=1e4,aR=6,oR=6,Cg="globalPan",sR={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},lR={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Ag={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},uR=0,fR=function(r){B(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},X(e),n._zr=e,n.group=new It,n._uid="brushController_"+uR++,A(mR,function(i,a){this._handlers[a]=K(i,this)},n),n}return t.prototype.enableBrush=function(e){return X(this._mounted),this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var n=this._zr;this._enableGlobalPan||QP(n,Cg,this._uid),A(this._handlers,function(i,a){n.on(a,i)}),this._brushType=e.brushType,this._brushOption=it(rt(Ag),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;JP(e,Cg,this._uid),A(this._handlers,function(n,i){e.off(i,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};A(e,function(i){n[i.panelId]=rt(i)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._mounted=!0,this._enableGlobalPan=e.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(e){X(this._mounted),e=G(e,function(c){return it(rt(Ag),c,!0)});var n="\0-brush-index-",i=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new Xa(i,e,u,l).add(f).update(f).remove(h).execute(),this;function l(c,v){return(c.id!=null?c.id:n+v)+"-"+c.brushType}function u(c,v){return l(c.__brushOption,v)}function f(c,v){var d=e[c];if(v!=null&&i[v]===s)a[c]=i[v];else{var p=a[c]=v!=null?(i[v].__brushOption=d,i[v]):U1(o,W1(o,d));Fv(o,p)}}function h(c){i[c]!==s&&o.group.remove(i[c])}},t.prototype.unmount=function(){if(!!this._mounted)return this.enableBrush(!1),mh(this),this._zr.remove(this.group),this._mounted=!1,this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Le);function W1(r,t){var e=Bl[t.brushType].createCover(r,t);return e.__brushOption=t,Z1(e,t),r.group.add(e),e}function U1(r,t){var e=zv(t);return e.endCreating&&(e.endCreating(r,t),Z1(t,t.__brushOption)),t}function Y1(r,t){var e=t.__brushOption;zv(t).updateCoverShape(r,t,e.range,e)}function Z1(r,t){var e=t.z;e==null&&(e=iR),r.traverse(function(n){n.z=e,n.z2=e})}function Fv(r,t){zv(t).updateCommon(r,t),Y1(r,t)}function zv(r){return Bl[r.__brushOption.brushType]}function Vv(r,t,e){var n=r._panels;if(!n)return Nn;var i,a=r._transform;return A(n,function(o){o.isTargetByCursor(t,e,a)&&(i=o)}),i}function $1(r,t){var e=r._panels;if(!e)return Nn;var n=t.__brushOption.panelId;return n!=null?e[n]:Nn}function mh(r){var t=r._covers,e=t.length;return A(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function Fn(r,t){var e=G(r._covers,function(n){var i=n.__brushOption,a=rt(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function hR(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],i=e[0]-n[0],a=e[1]-n[1],o=nR(i*i+a*a,.5);return o>aR}function X1(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function q1(r,t,e,n){var i=new It;return i.add(new wt({name:"main",style:Gv(e),silent:!0,draggable:!0,cursor:"move",drift:ft(Mg,r,t,i,["n","s","w","e"]),ondragend:ft(Fn,t,{isEnd:!0})})),A(n,function(a){i.add(new wt({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ft(Mg,r,t,i,a),ondragend:ft(Fn,t,{isEnd:!0})}))}),i}function K1(r,t,e,n){var i=n.brushStyle.lineWidth||0,a=Ri(i,oR),o=e[0][0],s=e[1][0],l=o-i/2,u=s-i/2,f=e[0][1],h=e[1][1],c=f-a+i/2,v=h-a+i/2,d=f-o,p=h-s,g=d+i,m=p+i;fr(r,t,"main",o,s,d,p),n.transformable&&(fr(r,t,"w",l,u,a,m),fr(r,t,"e",c,u,a,m),fr(r,t,"n",l,u,g,a),fr(r,t,"s",l,v,g,a),fr(r,t,"nw",l,u,a,a),fr(r,t,"ne",c,u,a,a),fr(r,t,"sw",l,v,a,a),fr(r,t,"se",c,v,a,a))}function yh(r,t){var e=t.__brushOption,n=e.transformable,i=t.childAt(0);i.useStyle(Gv(e)),i.attr({silent:!n,cursor:n?"move":"default"}),A([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?_h(r,a[0]):cR(r,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?lR[s]+"-resize":null})})}function fr(r,t,e,n,i,a,o){var s=t.childOfName(e);s&&s.setShape(pR(Hv(r,t,[[n,i],[n+a,i+o]])))}function Gv(r){return tt({strokeNoScale:!0},r.brushStyle)}function Q1(r,t,e,n){var i=[Qa(r,e),Qa(t,n)],a=[Ri(r,e),Ri(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function vR(r){return gl(r.group)}function _h(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=nv(e[t],vR(r));return n[i]}function cR(r,t){var e=[_h(r,t[0]),_h(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function Mg(r,t,e,n,i,a){var o=e.__brushOption,s=r.toRectRange(o.range),l=J1(t,i,a);A(n,function(u){var f=sR[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(Q1(s[0][0],s[1][0],s[0][1],s[1][1])),Fv(t,e),Fn(t,{isEnd:!1})}function dR(r,t,e,n){var i=t.__brushOption.range,a=J1(r,e,n);A(i,function(o){o[0]+=a[0],o[1]+=a[1]}),Fv(r,t),Fn(r,{isEnd:!1})}function J1(r,t,e){var n=r.group,i=n.transformCoordToLocal(t,e),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function Hv(r,t,e){var n=$1(r,t);return n&&n!==Nn?n.clipPath(e,r._transform):rt(e)}function pR(r){var t=Qa(r[0][0],r[1][0]),e=Qa(r[0][1],r[1][1]),n=Ri(r[0][0],r[1][0]),i=Ri(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:i-e}}function gR(r,t,e){if(!(!r._brushType||yR(r,t.offsetX,t.offsetY))){var n=r._zr,i=r._covers,a=Vv(r,t,e);if(!r._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===Nn||s.panelId===a.panelId)&&Bl[s.brushType].contain(i[o],e[0],e[1]))return}a&&n.setCursorStyle("crosshair")}}function Sh(r){var t=r.event;t.preventDefault&&t.preventDefault()}function wh(r,t,e){return r.childOfName("main").contain(t,e)}function j1(r,t,e,n){var i=r._creatingCover,a=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),hR(r)||i){if(a&&!i){o.brushMode==="single"&&mh(r);var l=rt(o);l.brushType=Dg(l.brushType,a),l.panelId=a===Nn?null:a.panelId,i=r._creatingCover=W1(r,l),r._covers.push(i)}if(i){var u=Bl[Dg(r._brushType,a)],f=i.__brushOption;f.range=u.getCreatingRange(Hv(r,i,r._track)),n&&(U1(r,i),u.updateCommon(r,i)),Y1(r,i),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&Vv(r,t,e)&&mh(r)&&(s={isEnd:n,removeOnClick:!0});return s}function Dg(r,t){return r==="auto"?(X(t&&t.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),t.defaultBrushType):r}var mR={mousedown:function(r){if(this._dragging)Ig(this,r);else if(!r.target||!r.target.draggable){Sh(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=Vv(this,r,t);e&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(r){var t=r.offsetX,e=r.offsetY,n=this.group.transformCoordToLocal(t,e);if(gR(this,r,n),this._dragging){Sh(r);var i=j1(this,r,n,!1);i&&Fn(this,i)}},mouseup:function(r){Ig(this,r)}};function Ig(r,t){if(r._dragging){Sh(t);var e=t.offsetX,n=t.offsetY,i=r.group.transformCoordToLocal(e,n),a=j1(r,t,i,!0);r._dragging=!1,r._track=[],r._creatingCover=null,a&&Fn(r,a)}}function yR(r,t,e){var n=r._zr;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var Bl={lineX:Lg(0),lineY:Lg(1),rect:{createCover:function(r,t){function e(n){return n}return q1({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=X1(r);return Q1(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){K1(r,t,e,n)},updateCommon:yh,contain:wh},polygon:{createCover:function(r,t){var e=new It;return e.add(new Ni({name:"main",style:Gv(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new no({name:"main",draggable:!0,drift:ft(dR,r,t),ondragend:ft(Fn,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:Hv(r,t,e)})},updateCommon:yh,contain:wh}};function Lg(r){return{createCover:function(t,e){return q1({toRectRange:function(n){var i=[n,[0,100]];return r&&i.reverse(),i},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=X1(t),n=Qa(e[0][r],e[1][r]),i=Ri(e[0][r],e[1][r]);return[n,i]},updateCoverShape:function(t,e,n,i){var a,o=$1(t,e);if(o!==Nn&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(r);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,a];r&&l.reverse(),K1(t,e,l,i)},updateCommon:yh,contain:wh}}var _R=fR;function SR(r){return r=Wv(r),function(t){return py(t,r)}}function wR(r,t){return r=Wv(r),function(e){var n=t!=null?t:e,i=n?r.width:r.height,a=n?r.x:r.y;return[a,a+(i||0)]}}function xR(r,t,e){var n=Wv(r);return function(i,a){return n.contain(a[0],a[1])&&!rR(i,t,e)}}function Wv(r){return ct.create(r)}var xn=bt(),Pg=rt,nf=K,bR=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,i){var a=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,e,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new It,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),n.getZr().add(s);else{var c=ft(Rg,e,h);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,e)}Og(s,e,!0),this._renderHandle(a)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,a=i.type==="category",o=e.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=Bv(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,i,a){},r.prototype.createPointerEl=function(t,e,n,i){var a=e.pointer;if(a){var o=xn(t).pointerEl=new QC[a.type](Pg(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,i){if(e.label){var a=xn(t).labelEl=new kt(Pg(e.label));t.add(a),Eg(a,i)}},r.prototype.updatePointerEl=function(t,e,n){var i=xn(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,i){var a=xn(t).labelEl;a&&(a.setStyle(e.label.style),n(a,{x:e.label.x,y:e.label.y}),Eg(a,i))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=ml(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Ti(u.event)},onmousedown:nf(this._onHandleDragMove,this,0,0),drift:nf(this._onHandleDragMove,this),ondragend:nf(this._onHandleDragEnd,this)}),n.add(i)),Og(i,e,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");z(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,Pl(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){Rg(this._axisPointerModel,!e&&this._moveAnimation,this._handle,af(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(!!n){this._dragging=!0;var i=this.updateHandleTransform(af(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(af(i)),xn(n).lastProp=null,this._doDispatchAxisPointer()}},r.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}]})}},r.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"})}},r.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),zs(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function Rg(r,t,e,n){tS(xn(e).lastProp,n)||(xn(e).lastProp=n,t?Nt(e,n,r):(e.stopAnimation(),e.attr(n)))}function tS(r,t){if(Y(r)&&Y(t)){var e=!0;return A(t,function(n,i){e=e&&tS(r[i],n)}),!!e}else return r===t}function Eg(r,t){r[t.get(["label","show"])?"show":"hide"]()}function af(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function Og(r,t,e){var n=t.get("z"),i=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=e)})}var TR=bR;function CR(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function AR(r,t,e,n,i){var a=e.get("value"),o=eS(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Ml(s.get("padding")||0),u=s.getFont(),f=ol(o,u),h=i.position,c=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=i.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var p=i.verticalAlign;p==="bottom"&&(h[1]-=v),p==="middle"&&(h[1]-=v/2),MR(h,c,v,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:wr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function MR(r,t,e,n){var i=n.getWidth(),a=n.getHeight();r[0]=Math.min(r[0]+t,i)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function eS(r,t,e,n,i){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:Lv(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};A(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),W(o)?a=o.replace("{value}",a):$(o)&&(a=o(s))}return a}function rS(r,t,e){var n=Ba();return Gh(n,n,e.rotation),kf(n,n,e.position),Va([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function DR(r,t,e,n,i,a){var o=F1.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=i.get(["label","margin"]),AR(t,n,i,a,{position:rS(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function IR(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function LR(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var PR=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=kg(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var c=CR(a),v=RR[u](s,h,f);v.style=c,e.graphicKey=v.type,e.pointer=v}var d=dh(l.model,i);DR(n,e,d,i,a,o)},t.prototype.getHandleTransform=function(e,n,i){var a=dh(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=rS(n.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=kg(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=n[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var c=(u[1]+u[0])/2,v=[c,c];v[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(TR);function kg(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var RR={line:function(r,t,e){var n=IR([t,e[0]],[t,e[1]],Bg(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),i=e[1]-e[0];return{type:"Rect",shape:LR([t-n/2,e[0]],[n,i],Bg(r))}}};function Bg(r){return r.dim==="x"?0:1}var ER=PR,OR=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(yt),kR=OR,dr=bt(),BR=A;function nS(r,t,e){if(!st.node){var n=t.getZr();dr(n).records||(dr(n).records={}),NR(n,t);var i=dr(n).records[r]||(dr(n).records[r]={});i.handler=e}}function NR(r,t){if(dr(r).initialized)return;dr(r).initialized=!0,e("click",ft(Ng,"click")),e("mousemove",ft(Ng,"mousemove")),e("globalout",zR);function e(n,i){r.on(n,function(a){var o=VR(t);BR(dr(r).records,function(s){s&&i(s,a,o.dispatchAction)}),FR(o.pendings,t)})}}function FR(r,t){var e=r.showTip.length,n=r.hideTip.length,i;e?i=r.showTip[e-1]:n&&(i=r.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function zR(r,t,e){r.handler("leave",null,e)}function Ng(r,t,e,n){t.handler(r,e,n)}function VR(r){var t={showTip:[],hideTip:[]},e=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function xh(r,t){if(!st.node){var e=t.getZr(),n=(dr(e).records||{})[r];n&&(dr(e).records[r]=null)}}var GR=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=n.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";nS("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,n){xh("axisPointer",n)},t.prototype.dispose=function(e,n){xh("axisPointer",n)},t.type="axisPointer",t}(Ie),HR=GR;function iS(r,t){var e=[],n=r.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=On(a,r);if(o==null||o<0||z(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)e=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,c=u.dim,v=h==="x"||h==="radius"?1:0,d=a.mapDimension(c),p=[];p[v]=a.get(d,o),p[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(a.getValues(G(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var Fg=bt();function WR(r,t,e){var n=r.currTrigger,i=[r.x,r.y],a=r,o=r.dispatchAction||K(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(!!s){ms(i)&&(i=iS({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=ms(i),u=a.axesInfo,f=s.axesInfo,h=n==="leave"||ms(i),c={},v={},d={list:[],map:{}},p={showPointer:ft(YR,v),showTooltip:ft(ZR,d)};A(s.coordSysMap,function(m,y){var _=l||m.containPoint(i);A(s.coordSysAxesInfo[y],function(S,x){var w=S.axis,b=KR(u,S);if(!h&&_&&(!u||b)){var T=b&&b.value;T==null&&!l&&(T=w.pointToData(i)),T!=null&&zg(S,T,p,!1,c)}})});var g={};return A(f,function(m,y){var _=m.linkGroup;_&&!v[y]&&A(_.axesInfo,function(S,x){var w=v[x];if(S!==m&&w){var b=w.value;_.mapper&&(b=m.axis.scale.parse(_.mapper(b,Vg(S),Vg(m)))),g[m.key]=b}})}),A(g,function(m,y){zg(f[y],m,p,!0,c)}),$R(v,f,c),XR(d,i,r,o),qR(f,o,e),c}}function zg(r,t,e,n,i){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=UR(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&N(i,s[0]),!n&&r.snap&&a.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function UR(r,t){var e=t.axis,n=e.dim,i=r,a=[],o=Number.MAX_VALUE,s=-1;return A(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),h,c;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,e);c=v.dataIndices,h=v.nestestValue}else{if(c=l.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!c.length)return;h=l.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=r-h,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,i=h,a.length=0),A(c,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function YR(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function ZR(r,t,e,n){var i=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Ka(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function $R(r,t,e){var n=e.axesInfo=[];A(t,function(i,a){var o=i.axisPointerModel.option,s=r[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function XR(r,t,e,n){if(ms(t)||!r.list.length){n({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function qR(r,t,e){var n=e.getZr(),i="axisPointerLastHighlights",a=Fg(n)[i]||{},o=Fg(n)[i]={};A(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&A(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],l=[];A(a,function(u,f){!o[f]&&l.push(u)}),A(o,function(u,f){!a[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function KR(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Vg(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function ms(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function aS(r){z1.registerAxisPointerClass("CartesianAxisPointer",ER),r.registerComponentModel(kR),r.registerComponentView(HR),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!z(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=kP(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},WR)}function QR(r){Ge(KP),Ge(aS)}var Gg=["x","y","radius","angle","single"],JR=["cartesian2d","polar","singleAxis"];function jR(r){var t=r.get("coordinateSystem");return ot(JR,t)>=0}function Vr(r){return X(r),r+"Axis"}function tE(r,t){var e=Q(),n=[],i=Q();r.eachComponent({mainType:"dataZoom",query:t},function(f){i.get(f.uid)||s(f)});var a;do a=!1,r.eachComponent("dataZoom",o);while(a);function o(f){!i.get(f.uid)&&l(f)&&(s(f),a=!0)}function s(f){i.set(f.uid,!0),n.push(f),u(f)}function l(f){var h=!1;return f.eachTargetAxis(function(c,v){var d=e.get(c);d&&d[v]&&(h=!0)}),h}function u(f){f.eachTargetAxis(function(h,c){(e.get(h)||e.set(h,[]))[c]=!0})}return n}function oS(r){var t=r.ecModel,e={infoList:[],infoMap:Q()};return r.eachTargetAxis(function(n,i){var a=t.getComponent(Vr(n),i);if(!!a){var o=a.getCoordSysModel();if(!!o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(a)}}}),e}var of=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),eE=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,i){var a=Hg(e);this.settledOption=a,this.mergeDefaultAndTheme(e,i),this._doInit(a)},t.prototype.mergeOption=function(e){var n=Hg(e);it(this.option,e,!0),it(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var i=this.settledOption;A([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=Q(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return A(Gg,function(i){var a=this.getReferringComponents(Vr(i),Ob);if(!!a.specified){n=!0;var o=new of;A(a.models,function(s){o.add(s.componentIndex)}),e.set(i,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var h=u[0];if(!!h){var c=new of;if(c.add(h.componentIndex),e.set(f,c),a=!1,f==="x"||f==="y"){var v=h.getReferringComponents("grid",Jt).models[0];v&&A(u,function(d){h.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",Jt).models[0]&&c.add(d.componentIndex)})}}}a&&A(Gg,function(u){if(!!a){var f=i.findComponents({mainType:Vr(u),filter:function(c){return c.get("type",!0)==="category"}});if(f[0]){var h=new of;h.add(f[0].componentIndex),e.set(u,h),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,i=this.get("rangeMode");A([["start","startValue"],["end","endValue"]],function(a,o){var s=e[a[0]]!=null,l=e[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,i){e==null&&(e=this.ecModel.getComponent(Vr(n),i))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(i,a){A(i.indexList,function(o){e.call(n,a,o)})})},t.prototype.getAxisProxy=function(e,n){var i=this.getAxisModel(e,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){X(e&&n!=null);var i=this._targetAxisInfoMap.get(e);if(i&&i.indexMap[n])return this.ecModel.getComponent(Vr(e),n)},t.prototype.setRawRange=function(e){var n=this.option,i=this.settledOption;A([["start","startValue"],["end","endValue"]],function(a){(e[a[0]]!=null||e[a[1]]!=null)&&(n[a[0]]=i[a[0]]=e[a[0]],n[a[1]]=i[a[1]]=e[a[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;A(["start","startValue","end","endValue"],function(i){n[i]=e[i]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;a<i.length;a++)for(var o=i[a],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return X(this._orient),this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(yt);function Hg(r){var t={};return A(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}var Ja=eE,rE=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(Ja),nE=rE,iE=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i,a){this.dataZoomModel=e,this.ecModel=n,this.api=i},t.type="dataZoom",t}(Ie),Uv=iE,aE=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(Uv),oE=aE,fi=A,Wg=ya,sE=function(){function r(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(jR(e)){var n=Vr(this._dimName),i=e.getReferringComponents(n,Jt).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return rt(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._dataExtent,n=this.getAxisModel(),i=n.axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;fi(["start","end"],function(c,v){var d=t[c],p=t[c+"Value"];a[v]==="percent"?(d==null&&(d=o[v]),p=i.parse(zt(d,o,e))):(u=!0,p=p==null?e[v]:i.parse(p),d=zt(p,e,o)),l[v]=p,s[v]=d}),Wg(l),Wg(s);var f=this._minMaxSpan;u?h(l,s,e,o,!1):h(s,l,o,e,!0);function h(c,v,d,p,g){var m=g?"Span":"ValueSpan";fo(0,c,d,"all",f["min"+m],f["max"+m]);for(var y=0;y<2;y++)v[y]=zt(c[y],d,p,!0),g&&(v[y]=i.parse(v[y]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=lE(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var n=this._dimName,i=this.getTargetSeriesModels(),a=t.get("filterMode"),o=this._valueWindow;if(a==="none")return;fi(i,function(l){var u=l.getData(),f=u.mapDimensionsAll(n);if(!!f.length){if(a==="weakFilter"){var h=u.getStore(),c=G(f,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var d,p,g,m=0;m<f.length;m++){var y=h.get(c[m],v),_=!isNaN(y),S=y<o[0],x=y>o[1];if(_&&!S&&!x)return!0;_&&(g=!0),S&&(d=!0),x&&(p=!0)}return g&&d&&p})}else fi(f,function(v){if(a==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});fi(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;fi(["min","max"],function(i){var a=e.get(i+"Span"),o=e.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=zt(n[0]+o,n,[0,100],!0):a!=null&&(o=zt(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(!!e){var i=l0(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;e[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),e[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},r}();function lE(r,t,e){var n=[1/0,-1/0];fi(e,function(o){EI(n,o.getData(),t)});var i=r.getAxisModel(),a=i1(i.axis.scale,i,n).calculate();return[a.min,a.max]}var uE=sE,fE={getTargetSeries:function(r){function t(i){r.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=r.getComponent(Vr(o),s);i(o,s,l,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var e=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new uE(i,a,s,r),e.push(o.__dzAxisProxy))});var n=Q();return A(e,function(i){A(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).reset(e)}),e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();e.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}},hE=fE;function vE(r){r.registerAction("dataZoom",function(t,e){var n=tE(e,t);A(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var Ug=!1;function Yv(r){Ug||(Ug=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,hE),vE(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function cE(r){r.registerComponentModel(nE),r.registerComponentView(oE),Yv(r)}var Fe=function(){function r(){}return r}(),sS={};function la(r,t){sS[r]=t}function lS(r){return sS[r]}var dE=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;A(this.option.feature,function(n,i){var a=lS(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(e)),it(n,a.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(yt),pE=dE;function gE(r,t,e){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:e.getWidth(),height:e.getHeight()},o=xr(n,a,i);xi(t.get("orient"),r,t.get("itemGap"),o.width,o.height),AA(r,n,a,i)}function uS(r,t){var e=Ml(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new wt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var mE=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i,a){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},f=this._features||(this._features={}),h=[];A(u,function(d,p){h.push(p)}),new Xa(this._featureNames||[],h).add(c).update(c).remove(ft(c,null)).execute(),this._featureNames=h;function c(d,p){var g=h[d],m=h[p],y=u[g],_=new Vt(y,e,e.ecModel),S;if(a&&a.newTitle!=null&&a.featureName===g&&(y.title=a.newTitle),g&&!m){if(yE(g))S={onclick:_.option.onclick,featureName:g};else{var x=lS(g);if(!x)return;S=new x}f[g]=S}else if(S=f[m],!S)return;S.uid=oo("toolbox-feature"),S.model=_,S.ecModel=n,S.api=i;var w=S instanceof Fe;if(!g&&m){w&&S.dispose&&S.dispose(n,i);return}if(!_.get("show")||w&&S.unusable){w&&S.remove&&S.remove(n,i);return}v(_,S,g),_.setIconStatus=function(b,T){var C=this.option,D=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[b]=T,D[b]&&(T==="emphasis"?Ai:Mi)(D[b])},S instanceof Fe&&S.render&&S.render(_,n,i,a)}function v(d,p,g){var m=d.getModel("iconStyle"),y=d.getModel(["emphasis","iconStyle"]),_=p instanceof Fe&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},x,w;W(_)?(x={},x[g]=_):x=_,W(S)?(w={},w[g]=S):w=S;var b=d.iconPaths={};A(x,function(T,C){var D=ml(T,{},{x:-s/2,y:-s/2,width:s,height:s});D.setStyle(m.getItemStyle());var M=D.ensureState("emphasis");M.style=y.getItemStyle();var I=new kt({style:{text:w[C],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});D.setTextContent(I),yl({el:D,componentModel:e,itemName:C,formatterParamsExtra:{title:w[C]}}),D.__title=w[C],D.on("mouseover",function(){var L=y.getItemStyle(),P=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:y.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),D.setTextConfig({position:y.get("textPosition")||P}),I.ignore=!e.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",C])!=="emphasis"&&i.leaveEmphasis(this),I.hide()}),(d.get(["iconStatus",C])==="emphasis"?Ai:Mi)(D),o.add(D),D.on("click",K(p.onclick,p,n,i,C)),b[C]=D})}gE(o,e,i),o.add(uS(o.getBoundingRect(),e)),l||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),m=g.textConfig||(g.textConfig={}),y=d.getTextContent(),_=y&&y.ensureState("emphasis");if(_&&!$(_)&&p){var S=_.style||(_.style={}),x=ol(p,kt.makeFont(S)),w=d.x+o.x,b=d.y+o.y+s,T=!1;b+x.height>i.getHeight()&&(m.position="top",T=!0);var C=T?-5-x.height:s+10;w+x.width/2>i.getWidth()?(m.position=["100%",C],S.align="right"):w-x.width/2<0&&(m.position=[0,C],S.align="left")}})},t.prototype.updateView=function(e,n,i,a){A(this._features,function(o){o instanceof Fe&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(e,n){A(this._features,function(i){i instanceof Fe&&i.remove&&i.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){A(this._features,function(i){i instanceof Fe&&i.dispose&&i.dispose(e,n)})},t.type="toolbox",t}(Ie);function yE(r){return r.indexOf("my")===0}var _E=mE,SE=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var i=this.model,a=i.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=st.browser;if($(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=a+"."+s,f.target="_blank",f.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var c=l.split(","),v=c[0].indexOf("base64")>-1,d=o?decodeURIComponent(c[1]):c[1];v&&(d=window.atob(d));var p=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,m=new Uint8Array(g);g--;)m[g]=d.charCodeAt(g);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,x=S.document;x.open("image/svg+xml","replace"),x.write(d),x.close(),S.focus(),x.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var w=i.get("lang"),b='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(w&&w[0]||"")+'" /></body>',T=window.open();T.document.write(b),T.document.title=a}},t.getDefaultOption=function(e){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(Fe),wE=SE,Yg="__ec_magicType_stack__",xE=[["line","bar"],["stack"]],bE=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),i={};return A(e.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},t.getDefaultOption=function(e){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(!!Zg[i]){var s={series:[]},l=function(h){var c=h.subType,v=h.id,d=Zg[i](c,v,h,a);d&&(tt(d,h.option),s.series.push(d));var p=h.coordinateSystem;if(p&&p.type==="cartesian2d"&&(i==="line"||i==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var m=g.dim,y=m+"Axis",_=h.getReferringComponents(y,Jt).models[0],S=_.componentIndex;s[y]=s[y]||[];for(var x=0;x<=S;x++)s[y][S]=s[y][S]||{};s[y][S].boundaryGap=i==="bar"}}};A(xE,function(h){ot(h,i)>=0&&A(h,function(c){a.setIconStatus(c,"normal")})}),a.setIconStatus(i,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=i;i==="stack"&&(u=it({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Fe),Zg={line:function(r,t,e,n){if(r==="bar")return it({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return it({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var i=e.get("stack")===Yg;if(r==="line"||r==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),it({id:t,stack:i?"":Yg},n.get(["option","stack"])||{},!0)}};or({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var TE=bE,Nl=new Array(60).join("-"),Ei=" ";function CE(r){var t={},e=[],n=[];return r.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else e.push(i)}else e.push(i)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function AE(r){var t=[];return A(r,function(e,n){var i=e.categoryAxis,a=e.valueAxis,o=a.dim,s=[" "].concat(G(e.series,function(v){return v.name})),l=[i.model.getCategories()];A(e.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Ei)],f=0;f<l[0].length;f++){for(var h=[],c=0;c<l.length;c++)h.push(l[c][f]);u.push(h.join(Ei))}t.push(u.join(`
  37. `))}),t.join(`
  38. `+Nl+`
  39. `)}function ME(r){return G(r,function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,function(){for(var a=arguments.length,o=arguments[a-1],s=e.getName(o),l=0;l<a-1;l++)i[l]=arguments[l];n.push((s?s+Ei:"")+i.join(Ei))}),n.join(`
  40. `)}).join(`
  41. `+Nl+`
  42. `)}function DE(r){var t=CE(r);return{value:Pt([AE(t.seriesGroupByCategoryAxis),ME(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`
  43. `+Nl+`
  44. `),meta:t.meta}}function qs(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function IE(r){var t=r.slice(0,r.indexOf(`
  45. `));if(t.indexOf(Ei)>=0)return!0}var bh=new RegExp("["+Ei+"]+","g");function LE(r){for(var t=r.split(/\n+/g),e=qs(t.shift()).split(bh),n=[],i=G(e,function(l){return{name:l,data:[]}}),a=0;a<t.length;a++){var o=qs(t[a]).split(bh);n.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:n}}function PE(r){for(var t=r.split(/\n+/g),e=qs(t.shift()),n=[],i=0;i<t.length;i++){var a=qs(t[i]);if(!!a){var o=a.split(bh),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[i]={name:s,value:[]},l=n[i].value):l=n[i]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?n[i].value=l[0]:n[i]=l[0])}}return{name:e,data:n}}function RE(r,t){var e=r.split(new RegExp(`
  46. *`+Nl+`
  47. *`,"g")),n={series:[]};return A(e,function(i,a){if(IE(i)){var o=LE(i),s=t[a],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=PE(i);n.series.push(o)}}),n}var EE=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var i=n.getDom(),a=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=a.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var h=a.get("optionToContent"),c=a.get("contentToOption"),v=DE(e);if($(h)){var d=h(n.getOption());W(d)?u.innerHTML=d:bi(d)&&u.appendChild(d)}else{f.readOnly=a.get("readOnly");var p=f.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=a.get("textColor"),p.borderColor=a.get("textareaBorderColor"),p.backgroundColor=a.get("textareaColor"),f.value=v.value,u.appendChild(f)}var g=v.meta,m=document.createElement("div");m.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");y+=";background-color:"+a.get("buttonColor"),y+=";color:"+a.get("buttonTextColor");var x=this;function w(){i.removeChild(o),x._dom=null}bf(_,"click",w),bf(S,"click",function(){if(c==null&&h!=null||c!=null&&h==null){nr("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),w();return}var b;try{$(c)?b=c(u,n.getOption()):b=RE(f.value,g)}catch(T){throw w(),new Error("Data view format error "+T)}b&&n.dispatchAction({type:"changeDataView",newOption:b}),w()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=y,!a.get("readOnly")&&m.appendChild(S),m.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(m),u.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},t.prototype.remove=function(e,n){this._dom&&n.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,n){this.remove(e,n)},t.getDefaultOption=function(e){var n={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},t}(Fe);function OE(r,t){return G(r,function(e,n){var i=t&&t[n];if(Y(i)&&!z(i)){var a=Y(e)&&!z(e);a||(e={value:e});var o=i.name!=null&&e.name==null;return e=tt(e,i),o&&delete e.name,e}else return e})}or({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];A(r.newOption.series,function(n){var i=t.getSeriesByName(n.name)[0];if(!i)e.push(N({type:"scatter"},n));else{var a=i.get("data");e.push({name:n.name,data:OE(n.data,a)})}}),t.mergeOption(tt({series:e},r.newOption))});var kE=EE,fS=A,hS=bt();function BE(r,t){var e=Zv(r);fS(t,function(n,i){for(var a=e.length-1;a>=0;a--){var o=e[a];if(o[i])break}if(a<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();e[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),e.push(t)}function NE(r){var t=Zv(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return fS(e,function(i,a){for(var o=t.length-1;o>=0;o--)if(i=t[o][a],i){n[a]=i;break}}),n}function FE(r){hS(r).snapshots=null}function zE(r){return Zv(r).length}function Zv(r){var t=hS(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var VE=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){FE(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(Fe);or({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var GE=VE,HE=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],WE=function(){function r(t,e,n){var i=this;this._targetInfoList=[];var a=$g(e,t);A(UE,function(o,s){(!n||!n.include||ot(n.include,s)>=0)&&o(a,i._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=sf[n.brushType](0,a,i);n.__rangeOffset={offset:Qg[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){A(t,function(i){var a=this.findTargetInfo(i,e);a&&a!==!0&&A(a.coordSyses,function(o){var s=sf[i.brushType](1,o,i.range,!0);n(i,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){A(t,function(n){var i=this.findTargetInfo(n,e);if(X(!i||i===!0||n.coordRange,"coordRange must be specified when coord index specified."),X(!i||i!==!0||n.range,"range must be specified in global brush."),n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=sf[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?Qg[n.brushType](a.values,o.offset,YE(a.xyMinMax,o.xyMinMax)):a.values}},this)},r.prototype.makePanelOpts=function(t,e){return G(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:SR(i),isTargetByCursor:xR(i,t,n.coordSysModel),getLinearBrushOtherExtent:wR(i)}})},r.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return i===!0||i&&ot(i.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=$g(e,t),a=0;a<n.length;a++){var o=n[a],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<Xg.length;l++)if(Xg[l](i,o))return o}return!0},r}();function Th(r){return r[0]>r[1]&&r.reverse(),r}function $g(r,t){return Ca(r,t,{includeMainTypes:HE})}var UE={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,i=r.gridModels,a=Q(),o={},s={};!e&&!n&&!i||(A(e,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),A(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),A(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,f=[];A(u.getCartesians(),function(h,c){(ot(e,h.getAxis("x").model)>=0||ot(n,h.getAxis("y").model)>=0)&&f.push(h)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:qg.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){A(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:qg.geo})})}},Xg=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,i=r.gridModel;return!i&&e&&(i=e.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],qg={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(gl(r)),t}},sf={lineX:ft(Kg,0),lineY:ft(Kg,1),rect:function(r,t,e,n){var i=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),a=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[Th([i[0],a[0]]),Th([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=G(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function Kg(r,t,e,n){X(e.type==="cartesian2d","lineX/lineY brush is available only in cartesian2d.");var i=e.getAxis(["x","y"][r]),a=Th(G([0,1],function(s){return t?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[r]=a,o[1-r]=[NaN,NaN],{values:a,xyMinMax:o}}var Qg={lineX:ft(Jg,0),lineY:ft(Jg,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return G(r,function(n,i){return[n[0]-e[0]*t[i][0],n[1]-e[1]*t[i][1]]})}};function Jg(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function YE(r,t){var e=jg(r),n=jg(t),i=[e[0]/n[0],e[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function jg(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var vS=WE,Ch=A,ZE=Lb("toolbox-dataZoom_"),$E=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i,a){this._brushController||(this._brushController=new _R(i.getZr()),this._brushController.on("brush",K(this._onBrush,this)).mount()),KE(e,n,this,a,i),qE(e,n)},t.prototype.onclick=function(e,n,i){XE[i].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new vS($v(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(u,f,h){if(h.type==="cartesian2d"){var c=u.brushType;c==="rect"?(s("x",h,f[0]),s("y",h,f[1])):s({lineX:"x",lineY:"y"}[c],h,f)}}),BE(a,i),this._dispatchZoomAction(i);function s(u,f,h){var c=f.getAxis(u),v=c.model,d=l(u,v,a),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(h=fo(0,h.slice(),c.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(i[d.id]={dataZoomId:d.id,startValue:h[0],endValue:h[1]})}function l(u,f,h){var c;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,f.componentIndex);d&&(c=v)}),c}},t.prototype._dispatchZoomAction=function(e){var n=[];Ch(e,function(i,a){n.push(rt(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(Fe),XE={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(NE(this.ecModel))}};function $v(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function qE(r,t){r.setIconStatus("back",zE(t)>1?"emphasis":"normal")}function KE(r,t,e,n,i){var a=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=a,r.setIconStatus("zoom",a?"emphasis":"normal");var o=new vS($v(r),t,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}kA("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),i=[],a=$v(n),o=Ca(r,a);Ch(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Ch(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var h=l.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:ZE+u+h};c[f]=h,i.push(c)}return i});var QE=$E;function JE(r){r.registerComponentModel(pE),r.registerComponentView(_E),la("saveAsImage",wE),la("magicType",TE),la("dataView",kE),la("dataZoom",QE),la("restore",GE),Ge(cE)}var jE=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.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}},t}(yt),tO=jE;function cS(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function dS(r){if(!!st.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e<n;e++)if(r[e]in t)return r[e]}}var pS=dS(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),eO=dS(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function gS(r,t){if(!r)return t;t=Py(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function rO(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?t?e[t]:e:null}var nO=gS(eO,"transition"),Xv=gS(pS,"transform"),iO="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(st.transform3dSupported?"will-change:transform;":"");function aO(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function oO(r,t,e){if(!W(e)||e==="inside")return"";var n=r.get("backgroundColor"),i=r.get("borderWidth");t=Bn(t);var a=aO(e),o=Math.max(Math.round(i)*1.5,6),s="",l=Xv+":",u;ot(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+i,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*i)/2+Math.SQRT2*i-(c-h)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function sO(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,i="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,i+=st.transformSupported?","+Xv+n:",left"+n+",top"+n),nO+":"+i}function tm(r,t,e){var n=r.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!st.transformSupported)return e?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=st.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return e?"top:0;left:0;"+Xv+":"+o+";":[["top",0],["left",0],[pS,o]]}function lO(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var i=r.get("textShadowColor"),a=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),A(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function uO(r,t,e){var n=[],i=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=s_(r,"html"),c=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+c),t&&i&&n.push(sO(i,e)),a&&n.push("background-color:"+a),A(["width","color","radius"],function(v){var d="border-"+v,p=Py(d),g=r.get(p);g!=null&&n.push(d+":"+g+(v==="color"?"":"px"))}),n.push(lO(f)),h!=null&&n.push("padding:"+Ml(h).join("px ")+"px"),n.join(";")+";"}function em(r,t,e,n,i){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&nx(r,o,document.body,n,i)}else{r[0]=n,r[1]=i;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var fO=function(){function r(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,st.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;em(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();we(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){var e=this._container,n=rO(e,"position"),i=e.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=iO+uO(t,!this._firstShow,this._longHide)+tm(a[0],a[1],!0)+("border-color:"+Bn(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(W(a)&&n.get("trigger")==="item"&&!cS(n)&&(s=oO(n,i,a)),W(t))o.innerHTML=t+s;else if(t){o.innerHTML="",z(t)||(t=[t]);for(var l=0;l<t.length;l++)bi(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},r.prototype.moveTo=function(t,e){var n=this._styleCoord;if(em(n,this._zr,this._appendToBody,t,e),n[0]!=null&&n[1]!=null){var i=this.el.style,a=tm(n[0],n[1]);A(a,function(o){i[o[0]]=o[1]})}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",st.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(K(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},r}(),hO=fO,vO=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),nm(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized()},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,n,i,a){var o=this;Y(t)&&ut("Passing DOM nodes as content is not supported in richText tooltip!"),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new kt({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:s_(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),A(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),A(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=rm(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},r.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;nm(i,this._zr,t,e),t=i[0],e=i[1];var a=n.style,o=kr(a.borderWidth||0),s=rm(a);n.x=t+o+s.left,n.y=e+o+s.top,n.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(K(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function kr(r){return Math.max(0,r)}function rm(r){var t=kr(r.shadowBlur||0),e=kr(r.shadowOffsetX||0),n=kr(r.shadowOffsetY||0);return{left:kr(t-e),right:kr(t+e),top:kr(t-n),bottom:kr(t+n)}}function nm(r,t,e,n){r[0]=e,r[1]=n,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var cO=vO,dO=new wt({shape:{x:-1,y:-1,width:2,height:2}}),pO=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){if(!(st.node||!n.getDom())){var i=e.getComponent("tooltip"),a=this._renderMode=Bb(i.get("renderMode"));this._tooltipContent=a==="richText"?new cO(n):new hO(n.getDom(),n,{appendToBody:i.get("appendToBody",!0)})}},t.prototype.render=function(e,n,i){if(!(st.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=n,this._api=i,this._alwaysShowContent=e.get("alwaysShowContent");var a=this._tooltipContent;a.update(e),a.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?Pl(this,"_updatePosition",50,"fixRate"):zs(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,n=e.get("triggerOn");nS("itemTooltip",this._api,K(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,i=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(e,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,i,a){if(!(a.from===this.uid||st.node||!i.getDom())){var o=im(a,i);this._ticket="";var s=a.dataByCoordSys,l=_O(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=dO;f.x=a.x,f.y=a.y,f.update(),dt(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,i,a))return;var h=iS(a,n),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,i,a){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(im(a,i))},t.prototype._manuallyAxisShowTip=function(e,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(!!u){var f=u.getData(),h=ua([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,n){var i=e.target,a=this._tooltipModel;if(!!a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(i){this._lastDataByCoordSys=null;var s,l;xa(i,function(u){if(dt(u).dataIndex!=null)return s=u,!0;if(dt(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(e,s,n):l?this._showComponentItemTooltip(e,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var i=e.get("showDelay");n=K(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(e,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=ua([n.tooltipOption],a),l=this._renderMode,u=[],f=Ya("section",{blocks:[],noHeader:!0}),h=[],c=new Pu;A(e,function(y){A(y.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!S||x==null)){var w=eS(x,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),b=Ya("section",{header:w,noHeader:!Qe(w),sortBlocks:!0,blocks:[]});f.blocks.push(b),A(_.seriesDataIndices,function(T){var C=i.getSeriesByIndex(T.seriesIndex),D=T.dataIndexInside,M=C.getDataParams(D);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=Lv(S.axis,{value:x}),M.axisValueLabel=w,M.marker=c.makeTooltipMarker("item",Bn(M.color),l);var I=Yd(C.formatTooltip(D,!0,null)),L=I.frag;if(L){var P=ua([C],a).get("valueFormatter");b.blocks.push(P?N({valueFormatter:P},L):L)}I.text&&h.push(I.text),u.push(M)}})}})}),f.blocks.reverse(),h.reverse();var v=n.position,d=s.get("order"),p=Qd(f,c,l,d,i.get("useUTC"),s.get("textStyle"));p&&h.unshift(p);var g=l==="richText"?`
  48. `:"<br/>",m=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(e,n,i){var a=this._ecModel,o=dt(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,c=u.getData(h),v=this._renderMode,d=e.positionDefault,p=ua([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(f,h),y=new Pu;m.marker=y.makeTooltipMarker("item",Bn(m.color),v);var _=Yd(u.formatTooltip(f,!1,h)),S=p.get("order"),x=p.get("valueFormatter"),w=_.frag,b=w?Qd(x?N({valueFormatter:x},w):w,y,v,S,a.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,b,m,T,e.offsetX,e.offsetY,e.position,e.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,i){var a=dt(n),o=a.tooltipConfig,s=o.option||{};if(W(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(a.componentMainType,a.componentIndex);f&&u.push(f),u.push({formatter:s.content});var h=e.positionDefault,c=ua(u,this._tooltipModel,h?{position:h}:null),v=c.get("content"),d=Math.random()+"",p=new Pu;this._showOrMove(c,function(){var g=rt(c.get("formatterParams")||{});this._showTooltipContent(c,v,g,d,e.offsetX,e.offsetY,e.position,n,p)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,i,a,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var c=e.get("formatter");l=l||e.get("position");var v=n,d=this._getNearestPoint([o,s],i,e.get("trigger"),e.get("borderColor")),p=d.color;if(c)if(W(c)){var g=e.ecModel.get("useUTC"),m=z(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=c,y&&(v=xl(m.axisValue,v,g)),v=Ry(v,i,!0)}else if($(c)){var _=K(function(S,x){S===this._ticket&&(h.setContent(x,f,e,p,l),this._updatePosition(e,l,o,s,h,i,u))},this);this._ticket=a,v=c(i,a,_)}else v=c;h.setContent(v,f,e,p,l),h.show(e,p),this._updatePosition(e,l,o,s,h,i,u)}},t.prototype._getNearestPoint=function(e,n,i,a){if(i==="axis"||z(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!z(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||e.get("position");var h=o.getSize(),c=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),$(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),z(n))i=St(n[0],u),a=St(n[1],f);else if(Y(n)){var p=n;p.width=h[0],p.height=h[1];var g=xr(p,{width:u,height:f});i=g.x,a=g.y,c=null,v=null}else if(W(n)&&l){var m=yO(n,d,h,e.get("borderWidth"));i=m[0],a=m[1]}else{var m=gO(i,a,o,u,f,c?null:20,v?null:20);i=m[0],a=m[1]}if(c&&(i-=am(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=am(v)?h[1]/2:v==="bottom"?h[1]:0),cS(e)){var m=mO(i,a,o,u,f);i=m[0],a=m[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===e.length;return o&&A(i,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&A(u,function(c,v){var d=h[v]||{},p=c.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&p.length===g.length,o&&A(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&A(c.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],S=a[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){st.node||!n.getDom()||(zs(this,"_updatePosition"),this._tooltipContent.dispose(),xh("itemTooltip",n))},t.type="tooltip",t}(Ie);function ua(r,t,e){var n=t.ecModel,i;e?(i=new Vt(e,n,n),i=new Vt(t.option,i,n)):i=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof Vt&&(o=o.get("tooltip",!0)),W(o)&&(o={formatter:o}),o&&(i=new Vt(o,i,n)))}return i}function im(r,t){return r.dispatchAction||K(t.dispatchAction,t)}function gO(r,t,e,n,i,a,o){var s=e.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>n?r-=l+a:r+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[r,t]}function mO(r,t,e,n,i){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,i)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function yO(r,t,e,n){var i=e[0],a=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-i/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+f+o;break;case"left":s=t.x-i-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function am(r){return r==="center"||r==="middle"}function _O(r,t,e){var n=Yh(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=ro(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(!!o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=dt(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}var SO=pO;function wO(r){Ge(aS),r.registerComponentModel(tO),r.registerComponentView(SO),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},jt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},jt)}var xO=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.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"}},t}(yt),bO=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){if(this.group.removeAll(),!!e.get("show")){var a=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=vt(e.get("textBaseline"),e.get("textVerticalAlign")),f=new kt({style:wr(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),c=e.get("subtext"),v=new kt({style:wr(s,{text:c,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!d&&!g,v.silent=!p&&!g,d&&f.on("click",function(){Md(d,"_"+e.get("target"))}),p&&v.on("click",function(){Md(p,"_"+e.get("subtarget"))}),dt(f).eventData=dt(v).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(f),c&&a.add(v);var m=a.getBoundingRect(),y=e.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=xr(y,{width:i.getWidth(),height:i.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),m=a.getBoundingRect();var x=_.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var b=new wt({shape:{x:m.x-x[3],y:m.y-x[0],width:m.width+x[1]+x[3],height:m.height+x[0]+x[2],r:e.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});a.add(b)}},t.type="title",t}(Ie);function TO(r){r.registerComponentModel(xO),r.registerComponentView(bO)}var CO=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},AO=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},t.prototype._updateSelector=function(e){var n=e.selector,i=this.ecModel;n===!0&&(n=e.selector=["all","inverse"]),z(n)&&A(n,function(a,o){W(a)&&(a={type:a}),n[o]=it(a,CO(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<e.length;i++){var a=e[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var n=[],i=[];e.eachRawSeries(function(s){var l=s.name;i.push(l);var u;if(s.legendVisualProvider){var f=s.legendVisualProvider,h=f.getAllNames();e.isSeriesFiltered(s)||(i=i.concat(h)),h.length?n=n.concat(h):u=!0}else u=!0;u&&Uh(s)&&n.push(s.name)}),this._availableNames=i;var a=this.get("data")||n,o=G(a,function(s){return(W(s)||pt(s))&&(s={name:s}),new Vt(s,this,this.ecModel)},this);this._data=o},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;A(a,function(o){n[o.get("name")]=!1})}n[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var n=this.option.selected;n.hasOwnProperty(e)||(n[e]=!0),this[n[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,n=this.option.selected;A(e,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,n=this.option.selected;A(e,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(e){var n=this.option.selected;return!(n.hasOwnProperty(e)&&!n[e])&&ot(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.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}},t}(yt),Ah=AO,ai=ft,Mh=A,ts=It,MO=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new ts),this.group.add(this._selectorGroup=new ts),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,i,l,s,u);var f=e.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},c=e.get("padding"),v=xr(f,h,c),d=this.layoutInner(e,o,v,a,l,u),p=xr(tt({width:d.width,height:d.height},f),h,c);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=uS(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,i,a,o,s,l){var u=this.getContentGroup(),f=Q(),h=n.get("selectedMode"),c=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&c.push(v.id)}),Mh(n.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===`
  49. `)){var g=new ts;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(p)[0];if(!f.get(p)){if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},S=y.getVisual("legendIcon"),x=y.getVisual("style"),w=this._createItem(m,p,d,v,n,e,_,x,S,h,a);w.on("click",ai(om,p,null,a,c)).on("mouseover",ai(Dh,m.name,null,a,c)).on("mouseout",ai(Ih,m.name,null,a,c)),f.set(p,!0)}else i.eachRawSeries(function(b){if(!f.get(p)&&b.legendVisualProvider){var T=b.legendVisualProvider;if(!T.containName(p))return;var C=T.indexOfName(p),D=T.getItemVisual(C,"style"),M=T.getItemVisual(C,"legendIcon"),I=pr(D.fill);I&&I[3]===0&&(I[3]=.2,D=N(N({},D),{fill:il(I,"rgba")}));var L=this._createItem(b,p,d,v,n,e,{},D,M,h,a);L.on("click",ai(om,null,p,a,c)).on("mouseover",ai(Dh,null,p,a,c)).on("mouseout",ai(Ih,null,p,a,c)),f.set(p,!0)}},this);f.get(p)||console.warn(p+" series not exists. Legend data should be same with series name or data name.")}},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(e,n,i,a,o){var s=this.getSelectorGroup();Mh(e,function(u){var f=u.type,h=new kt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var c=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);io(h,{normal:c,emphasis:v},{defaultText:u.title}),Is(h)})},t.prototype._createItem=function(e,n,i,a,o,s,l,u,f,h,c){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=DO(f,a,l,u,v,g,c),x=new ts,w=a.getModel("textStyle");if($(e.getLegendIcon)&&(!_||_==="inherit"))x.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var b=_==="inherit"&&e.getData().getVisual("symbol")?m==="inherit"?e.getData().getVisual("symbolRotate"):m:0;x.add(IO({itemWidth:d,itemHeight:p,icon:f,iconRotate:b,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,C=s,D=o.get("formatter"),M=n;W(D)&&D?M=D.replace("{name}",n!=null?n:""):$(D)&&(M=D(n));var I=a.get("inactiveColor");x.add(new kt({style:wr(w,{text:M,x:T,y:p/2,fill:g?w.getTextColor():I,align:C,verticalAlign:"middle"})}));var L=new wt({shape:x.getBoundingRect(),invisible:!0}),P=a.getModel("tooltip");return P.get("show")&&yl({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),x.add(L),x.eachChild(function(E){E.silent=!0}),L.silent=!h,this.getContentGroup().add(x),Is(x),x.__legendDataIndex=i,x},t.prototype.layoutInner=function(e,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();xi(e.get("orient"),l,e.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){xi("horizontal",u,e.get("selectorItemGap",!0));var c=u.getBoundingRect(),v=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?v[p]+=f[g]+d:h[p]+=c[g]+d,v[1-p]+=f[m]/2-c[m]/2,u.x=v[0],u.y=v[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+d+c[g],_[m]=Math.max(f[m],c[m]),_[y]=Math.min(0,c[y]+v[1-p]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ie);function DO(r,t,e,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),Mh(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?n.decal:ah(h,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:e).opacity),s(u,n);var c=t.getModel("lineStyle"),v=c.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!a){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function IO(r){var t=r.icon||"roundRect",e=Xr(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function om(r,t,e,n){Ih(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),Dh(r,t,e,n)}function mS(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,i=t.length;n<i&&!(e=t[n].states.emphasis);)n++;return e&&e.hoverLayer}function Dh(r,t,e,n){mS(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:n})}function Ih(r,t,e,n){mS(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:n})}var yS=MO;function LO(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function fa(r,t,e){var n={},i=r==="toggleSelected",a;return e.eachComponent("legend",function(o){i&&a!=null?o[a?"select":"unSelect"](t.name):r==="allSelect"||r==="inverseSelect"?o[r]():(o[r](t.name),a=o.isSelected(t.name));var s=o.getData();A(s,function(l){var u=l.get("name");if(!(u===`
  50. `||u==="")){var f=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&f:n[u]=f}})}),r==="allSelect"||r==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function PO(r){r.registerAction("legendToggleSelect","legendselectchanged",ft(fa,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",ft(fa,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",ft(fa,"inverseSelect")),r.registerAction("legendSelect","legendselected",ft(fa,"select")),r.registerAction("legendUnSelect","legendunselected",ft(fa,"unSelect"))}function _S(r){r.registerComponentModel(Ah),r.registerComponentView(yS),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,LO),r.registerSubTypeDefaulter("legend",function(){return"plain"}),PO(r)}var RO=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,n,i){var a=so(e);r.prototype.init.call(this,e,n,i),sm(this,e,a)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),sm(this,this.option,e)},t.type="legend.scroll",t.defaultOption=wl(Ah.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}),t}(Ah);function sm(r,t,e){var n=r.getOrient(),i=[1,1];i[n.index]=0,Ii(t,e,{type:"box",ignoreSize:!!i})}var EO=RO,lm=It,lf=["width","height"],uf=["x","y"],OO=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new lm),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new lm)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,n,i,a,o,s,l){var u=this;r.prototype.renderInner.call(this,e,n,i,a,o,s,l);var f=this._controllerGroup,h=n.get("pageIconSize",!0),c=z(h)?h:[h,h];d("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new kt({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var m=p+"DataIndex",y=ml(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:K(u._pageGo,u,m,n,a)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});y.name=p,f.add(y)}},t.prototype.layoutInner=function(e,n,i,a,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=lf[u],h=uf[u],c=lf[1-u],v=uf[1-u];o&&xi("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=rt(i);o&&(m[f]=i[f]-p[f]-d);var y=this._layoutContentAndController(e,a,m,u,f,c,v,h);if(o){if(s==="end")g[u]+=y[f]+d;else{var _=p[f]+d;g[u]-=_,y[h]-=_}y[f]+=p[f]+d,g[1-u]+=y[v]+y[c]/2-p[c]/2,y[c]=Math.max(y[c],p[c]),y[v]=Math.min(y[v],p[v]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(e,n,i,a,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;xi(e.get("orient"),f,e.get("itemGap"),a?i.width:null,a?null:i.height),xi("horizontal",c,e.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=c.getBoundingRect(),p=this._showController=v[o]>i[o],g=[-v.x,-v.y];n||(g[a]=f[u]);var m=[0,0],y=[-d.x,-d.y],_=vt(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?y[a]+=i[o]-d[o]:m[a]+=d[o]+_}y[1-a]+=v[s]/2-d[s]/2,f.setPosition(g),h.setPosition(m),c.setPosition(y);var x={x:0,y:0};if(x[o]=p?i[o]:v[o],x[s]=Math.max(v[s],d[s]),x[l]=Math.min(0,d[l]+y[1-a]),h.__rectSize=i[o],p){var w={x:0,y:0};w[o]=Math.max(i[o]-d[o]-_,0),w[s]=x[s],h.setClipPath(new wt({shape:w})),h.__rectSize=w[o]}else c.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&Nt(f,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),x},t.prototype._pageGo=function(e,n,i){var a=this._getPageInfo(n)[e];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var i=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=n[h]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var a=i.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",W(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=lf[o],l=uf[o],u=this._findTargetItemIndex(n),f=i.children(),h=f[u],c=f.length,v=c?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var p=S(h);d.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=c;++g)_=S(f[g]),(!_&&y.e>m.s+a||_&&!x(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!x(y,_.s))&&m.i<y.i&&(y=m,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=m.i),++d.pageCount,++d.pageIndex),m=_;return d;function S(w){if(w){var b=w.getBoundingRect(),T=b[l]+w[l];return{s:T,e:T+b[s],i:w.__legendDataIndex}}}function x(w,b){return w.e>=b&&w.s<=b+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===e&&(n=s)}),n!=null?n:a},t.type="legend.scroll",t}(yS),kO=OO;function BO(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function NO(r){Ge(_S),r.registerComponentModel(EO),r.registerComponentView(kO),BO(r)}function FO(r){Ge(_S),Ge(NO)}var zO=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=wl(Ja.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Ja),VO=zO,qv=bt();function GO(r,t,e){qv(r).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=e)})}function HO(r,t){for(var e=qv(r).coordSysRecordMap,n=e.keys(),i=0;i<n.length;i++){var a=n[i],o=e.get(a),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||SS(e,o))}}}function SS(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function WO(r,t){var e={model:t,containsPoint:ft(YO,t),dispatchAction:ft(UO,r),dataZoomInfoMap:null,controller:null},n=e.controller=new tR(r.getZr());return A(["pan","zoom","scrollMove"],function(i){n.on(i,function(a){var o=[];e.dataZoomInfoMap.each(function(s){if(!!a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&e.dispatchAction(o)})}),e}function UO(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function YO(r,t,e,n){return r.coordinateSystem.containPoint([e,n])}function ZO(r){var t,e="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return r.each(function(a){var o=a.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[e+s]>n[e+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function $O(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=qv(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=Q());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=oS(a);A(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,WO(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=Q());f.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){SS(i,a);return}var f=ZO(l);o.enable(f.controlType,f.opt),o.setPointerChecker(a.containsPoint),Pl(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var XO=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,n,i){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),GO(i,e,{pan:K(ff.pan,this),zoom:K(ff.zoom,this),scrollMove:K(ff.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){HO(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(Uv),ff={zoom:function(r,t,e,n){var i=this.range,a=i.slice(),o=r.axisModels[0];if(!!o){var s=hf[t](null,[n.originX,n.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(fo(0,a,[0,100],0,f.minSpan,f.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:um(function(r,t,e,n,i,a){var o=hf[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:um(function(r,t,e,n,i,a){var o=hf[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,e);return o.signal*(r[1]-r[0])*a.scrollDelta})};function um(r){return function(t,e,n,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(!!s){var l=r(o,s,t,e,n,i);if(fo(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var hf={grid:function(r,t,e,n,i){var a=e.axis,o={},s=i.model.coordinateSystem.getRect();return r=r||[0,0],a.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(r,t,e,n,i){var a=e.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(r,t,e,n,i){var a=e.axis,o=i.model.coordinateSystem.getRect(),s={};return r=r||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}},qO=XO;function KO(r){Yv(r),r.registerComponentModel(VO),r.registerComponentView(qO),$O(r)}var QO=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=wl(Ja.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Ja),JO=QO,ha=wt,fm=7,jO=1,vf=30,tk=7,va="horizontal",hm="vertical",ek=5,rk=["line","bar","candlestick","scatter"],nk={easing:"cubicOut",duration:100,delay:0},ik=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,n){this.api=n,this._onBrush=K(this._onBrush,this),this._onBrushEnd=K(this._onBrushEnd,this)},t.prototype.render=function(e,n,i,a){if(r.prototype.render.apply(this,arguments),Pl(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){zs(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new It;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,n=this.api,i=e.get("brushSelect"),a=i?tk:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===va?{right:s.width-o.x-o.width,top:s.height-vf-fm-a,width:o.width,height:vf}:{right:fm,top:o.y,width:vf,height:o.height},u=so(e.option);A(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var f=xr(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===hm&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===va&&!o?{scaleY:l?1:-1,scaleX:1}:i===va&&o?{scaleY:l?1:-1,scaleX:-1}:i===hm&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=n.x-u.x,e.y=n.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=e.get("brushSelect");i.add(new ha({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new ha({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:K(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var n=this._size,i=this._shadowSize||[],a=e.series,o=a.getRawData(),s=a.getShadowDim?a.getShadowDim():e.otherDim;if(s==null)return;var l=this._shadowPolygonPts,u=this._shadowPolylinePts;if(o!==this._shadowData||s!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var f=o.getDataExtent(s),h=(f[1]-f[0])*.3;f=[f[0]-h,f[1]+h];var c=[0,n[1]],v=[0,n[0]],d=[[n[0],0],[0,0]],p=[],g=v[1]/(o.count()-1),m=0,y=Math.round(o.count()/n[0]),_;o.each([s],function(T,C){if(y>0&&C%y){m+=g;return}var D=T==null||isNaN(T)||T==="",M=D?0:zt(T,f,c,!0);D&&!_&&C?(d.push([d[d.length-1][0],0]),p.push([p[p.length-1][0],0])):!D&&_&&(d.push([m,0]),p.push([m,0])),d.push([m,M]),p.push([m,M]),m+=g,_=D}),l=this._shadowPolygonPts=d,u=this._shadowPolylinePts=p}this._shadowData=o,this._shadowDim=s,this._shadowSize=[n[0],n[1]];var S=this.dataZoomModel;function x(T){var C=S.getModel(T?"selectedDataBackground":"dataBackground"),D=new It,M=new no({shape:{points:l},segmentIgnoreThreshold:1,style:C.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new Ni({shape:{points:u},segmentIgnoreThreshold:1,style:C.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return D.add(M),D.add(I),D}for(var w=0;w<3;w++){var b=x(w===1);this._displayables.sliderGroup.add(b),this._displayables.dataShadowSegs.push(b)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,n=e.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();A(l,function(u){if(!i&&!(n!==!0&&ot(rk,u.get("type"))<0)){var f=a.getComponent(Vr(o),s).axis,h=ak(o),c,v=u.coordinateSystem;h!=null&&v.getOtherAxis&&(c=v.getOtherAxis(f).inverse),h=u.getData().mapDimension(h),i={thisAxis:f,series:u,thisDim:o,otherDim:h,otherAxisInverse:c}}},this)},this),i}},t.prototype._renderHandle=function(){var e=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,h=l.get("brushSelect"),c=n.filler=new ha({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(c),o.add(new ha({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:jO,fill:"rgba(0,0,0,0)"}})),A([0,1],function(_){var S=l.get("handleIcon");!Gs[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S,Ve("handleIcon now needs 'path://' prefix when using a path string"));var x=Xr(S,-1,0,2,2,null,!0);x.attr({cursor:vm(this._orient),draggable:!0,drift:K(this._onDragMove,this,_),ondragend:K(this._onDragEnd,this),onmouseover:K(this._showDataInfo,this,!0),onmouseout:K(this._showDataInfo,this,!1),z2:5});var w=x.getBoundingRect(),b=l.get("handleSize");this._handleHeight=St(b,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Is(x);var T=l.get("handleColor");T!=null&&(x.style.fill=T),o.add(i[_]=x);var C=l.getModel("textStyle");e.add(a[_]=new kt({silent:!0,invisible:!0,style:wr(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var v=c;if(h){var d=St(l.get("moveHandleSize"),s[1]),p=n.moveHandle=new wt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,m=n.moveHandleIcon=Xr(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(d,10));v=n.moveZone=new wt({invisible:!0,shape:{y:s[1]-y,height:d+y}}),v.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(m),o.add(v)}v.attr({draggable:!0,cursor:vm(this._orient),drift:K(this._onDragMove,this,"all"),ondragstart:K(this._showDataInfo,this,!0),ondragend:K(this._onDragEnd,this),onmouseover:K(this._showDataInfo,this,!0),onmouseout:K(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[zt(e[0],[0,100],n,!0),zt(e[1],[0,100],n,!0)]},t.prototype._updateInterval=function(e,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];fo(n,a,o,i.get("zoomLock")?"all":e,s.minSpan!=null?zt(s.minSpan,l,o,!0):null,s.maxSpan!=null?zt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=ya([zt(a[0],o,l,!0),zt(a[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var n=this._displayables,i=this._handleEnds,a=ya(i.slice()),o=this._size;A([0,1],function(v){var d=n.handles[v],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:i[v]+(v?-1:1),y:o[1]/2-p/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],f=0;f<l.length;f++){var h=l[f],c=h.getClipPath();c||(c=new wt,h.setClipPath(c)),c.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var n=this.dataZoomModel,i=this._displayables,a=i.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,h=e?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var c=ya(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(d){var p=gl(i.handles[d].parent,this.group),g=nv(d===0?"right":"left",p),m=this._handleWidth/2+ek,y=Va([c[d]+(d===0?-m:m),this._size[1]/2],p);a[d].setStyle({x:y[0],y:y[1],verticalAlign:o===va?"middle":g,align:o===va?g:"center",text:s[d]})}},t.prototype._formatLabel=function(e,n){var i=this.dataZoomModel,a=i.get("labelFormatter"),o=i.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=e==null||isNaN(e)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return $(a)?a(e,s):W(a)?a.replace("{value}",s):s},t.prototype._showDataInfo=function(e){e=this._dragging||e;var n=this._displayables,i=n.handleLabels;i[0].attr("invisible",!e),i[1].attr("invisible",!e),n.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},t.prototype._onDragMove=function(e,n,i,a){this._dragging=!0,Ti(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Va([n,i],o,!0),l=this._updateInterval(e,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var n=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(i[0]<0||i[0]>n[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var n=e.offsetX,i=e.offsetY;this._brushStart=new Z(n,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(!!this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=ya([zt(i.x,o,s,!0),zt(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Ti(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new ha({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,n),f=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:h[1]})},t.prototype._dispatchZoomAction=function(e){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?nk:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=oS(this.dataZoomModel).infoList;if(!e&&n.length){var i=n[0].model.coordinateSystem;e=i.getRect&&i.getRect()}if(!e){var a=this.api.getWidth(),o=this.api.getHeight();e={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(Uv);function ak(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function vm(r){return r==="vertical"?"ns-resize":"ew-resize"}var ok=ik;function sk(r){r.registerComponentModel(JO),r.registerComponentView(ok),Yv(r)}function lk(r){Ge(KO),Ge(sk)}var cm={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},uk=function(){function r(t){var e=this._condVal=W(t)?new RegExp(t):Om(t)?t:null;if(e==null){var n="";n=le("Illegal regexp",t,"in"),ut(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return W(e)?this._condVal.test(t):pt(e)?this._condVal.test(t+""):!1},r}(),fk=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),hk=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},r}(),vk=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},r}(),ck=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),dk=function(){function r(){}return r.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,n=e(this.valueGetterParam),i=t?this.valueParser(n):null,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(t?i:n))return!1;return!0},r}();function Kv(r,t){if(r===!0||r===!1){var e=new fk;return e.value=r,e}var n="";return wS(r)||(n=le("Illegal config. Expect a plain object but actually",r),ut(n)),r.and?dm("and",r,t):r.or?dm("or",r,t):r.not?pk(r,t):gk(r,t)}function dm(r,t,e){var n=t[r],i="";i=le('"and"/"or" condition should only be `'+r+": [...]` and must not be empty array.","Illegal condition:",t),z(n)||ut(i),n.length||ut(i);var a=r==="and"?new hk:new vk;return a.children=G(n,function(o){return Kv(o,e)}),a.children.length||ut(i),a}function pk(r,t){var e=r.not,n="";n=le('"not" condition should only be `not: {}`.',"Illegal condition:",r),wS(e)||ut(n);var i=new ck;return i.child=Kv(e,t),i.child||ut(n),i}function gk(r,t){for(var e="",n=t.prepareGetValue(r),i=[],a=xt(r),o=r.parser,s=o?qy(o):null,l=0;l<a.length;l++){var u=a[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var f=mr(cm,u)?cm[u]:u,h=r[u],c=s?s(h):h,v=xM(f,c)||f==="reg"&&new uk(c);v||(e=le('Illegal relational operation: "'+u+'" in condition:',r),ut(e)),i.push(v)}}i.length||(e=le("Relational condition must have at least one operator.","Illegal condition:",r),ut(e));var d=new dk;return d.valueGetterParam=n,d.valueParser=s,d.getValue=t.getValue,d.subCondList=i,d}function wS(r){return Y(r)&&!te(r)}var mk=function(){function r(t,e){this._cond=Kv(t,e)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function yk(r,t){return new mk(r,t)}var _k={type:"echarts:filter",transform:function(r){for(var t=r.upstream,e,n=yk(r.config,{valueGetterAttrMap:Q({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;mr(s,"dimension")||(l=le('Relation condition must has prop "dimension" specified.',"Illegal condition:",s),ut(l));var f=t.getDimensionInfo(u);return f||(l=le("Can not find dimension info via: "+u+`.
  51. `,"Existing dimensions: ",t.cloneAllDimensionInfo(),`.
  52. `,"Illegal condition:",s,`.
  53. `),ut(l)),{dimIdx:f.index}},getValue:function(s){return t.retrieveValueFromItem(e,s.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)e=t.getRawDataItem(a),n.evaluate()&&i.push(e);return{data:i}}},Lh="";Lh=["Valid config is like:",'{ dimension: "age", order: "asc" }','or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" ");var Sk={type:"echarts:sort",transform:function(r){var t=r.upstream,e=r.config,n="",i=Dt(e);i.length||(n="Empty `config` in sort transform.",ut(n));var a=[];A(i,function(f){var h=f.dimension,c=f.order,v=f.parser,d=f.incomparable;if(h==null&&(n='Sort transform config must has "dimension" specified.'+Lh,ut(n)),c!=="asc"&&c!=="desc"&&(n='Sort transform config must has "order" specified.'+Lh,ut(n)),d&&d!=="min"&&d!=="max"){var p="";p='incomparable must be "min" or "max" rather than "'+d+'".',ut(p)}if(c!=="asc"&&c!=="desc"){var g="";g='order must be "asc" or "desc" rather than "'+c+'".',ut(g)}var m=t.getDimensionInfo(h);m||(n=le("Can not find dimension info via: "+h+`.
  54. `,"Existing dimensions: ",t.cloneAllDimensionInfo(),`.
  55. `,"Illegal config:",f,`.
  56. `),ut(n));var y=v?qy(v):null;v&&!y&&(n=le("Invalid parser name "+v+`.
  57. `,"Illegal config:",f,`.
  58. `),ut(n)),a.push({dimIdx:m.index,parser:y,comparator:new Qy(c,d)})});var o=t.sourceFormat;o!==ee&&o!==Re&&(n='sourceFormat "'+o+'" is not supported yet',ut(n));for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(f,h){for(var c=0;c<a.length;c++){var v=a[c],d=t.retrieveValueFromItem(f,v.dimIdx),p=t.retrieveValueFromItem(h,v.dimIdx);v.parser&&(d=v.parser(d),p=v.parser(p));var g=v.comparator.evaluate(d,p);if(g!==0)return g}return 0}),{data:s}}};function wk(r){r.registerTransform(_k),r.registerTransform(Sk)}var xk=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,n,i){r.prototype.init.call(this,e,n,i),this._sourceManager=new e_(this),qd(this)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),qd(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:er},t}(yt),bk=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t}(Ie);function Tk(r){r.registerComponentModel(xk),r.registerComponentView(bk)}var Xe=_r.CMD;function pi(r,t){return Math.abs(r-t)<1e-5}function Ph(r){var t=r.data,e=r.len(),n=[],i,a=0,o=0,s=0,l=0;function u(L,P){i&&i.length>2&&n.push(i),i=[L,P]}function f(L,P,E,O){pi(L,E)&&pi(P,O)||i.push(L,P,E,O,E,O)}function h(L,P,E,O,H,k){var F=Math.abs(P-L),U=Math.tan(F/4)*4/3,q=P<L?-1:1,j=Math.cos(L),nt=Math.sin(L),ht=Math.cos(P),At=Math.sin(P),_t=j*H+E,Gt=nt*k+O,Ht=ht*H+E,Lt=At*k+O,Tt=H*U*q,J=k*U*q;i.push(_t-Tt*nt,Gt+J*j,Ht+Tt*At,Lt-J*ht,Ht,Lt)}for(var c,v,d,p,g=0;g<e;){var m=t[g++],y=g===1;switch(y&&(a=t[g],o=t[g+1],s=a,l=o,(m===Xe.L||m===Xe.C||m===Xe.Q)&&(i=[s,l])),m){case Xe.M:a=s=t[g++],o=l=t[g++],u(s,l);break;case Xe.L:c=t[g++],v=t[g++],f(a,o,c,v),a=c,o=v;break;case Xe.C:i.push(t[g++],t[g++],t[g++],t[g++],a=t[g++],o=t[g++]);break;case Xe.Q:c=t[g++],v=t[g++],d=t[g++],p=t[g++],i.push(a+2/3*(c-a),o+2/3*(v-o),d+2/3*(c-d),p+2/3*(v-p),d,p),a=d,o=p;break;case Xe.A:var _=t[g++],S=t[g++],x=t[g++],w=t[g++],b=t[g++],T=t[g++]+b;g+=1;var C=!t[g++];c=Math.cos(b)*x+_,v=Math.sin(b)*w+S,y?(s=c,l=v,u(s,l)):f(a,o,c,v),a=Math.cos(T)*x+_,o=Math.sin(T)*w+S;for(var D=(C?-1:1)*Math.PI/2,M=b;C?M>T:M<T;M+=D){var I=C?Math.max(M+D,T):Math.min(M+D,T);h(M,I,_,S,x,w)}break;case Xe.R:s=a=t[g++],l=o=t[g++],c=s+t[g++],v=l+t[g++],u(c,l),f(c,l,c,v),f(c,v,s,v),f(s,v,s,l),f(s,l,c,l);break;case Xe.Z:i&&f(a,o,s,l),a=s,o=l;break}}return i&&i.length>2&&n.push(i),n}function Rh(r,t,e,n,i,a,o,s,l,u){if(pi(r,e)&&pi(t,n)&&pi(i,o)&&pi(a,s)){l.push(o,s);return}var f=2/u,h=f*f,c=o-r,v=s-t,d=Math.sqrt(c*c+v*v);c/=d,v/=d;var p=e-r,g=n-t,m=i-o,y=a-s,_=p*p+g*g,S=m*m+y*y;if(_<h&&S<h){l.push(o,s);return}var x=c*p+v*g,w=-c*m-v*y,b=_-x*x,T=S-w*w;if(b<h&&x>=0&&T<h&&w>=0){l.push(o,s);return}var C=[],D=[];Ur(r,e,i,o,.5,C),Ur(t,n,a,s,.5,D),Rh(C[0],D[0],C[1],D[1],C[2],D[2],C[3],D[3],l,u),Rh(C[4],D[4],C[5],D[5],C[6],D[6],C[7],D[7],l,u)}function Ck(r,t){var e=Ph(r),n=[];t=t||1;for(var i=0;i<e.length;i++){var a=e[i],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var f=a[u++],h=a[u++],c=a[u++],v=a[u++],d=a[u++],p=a[u++];Rh(s,l,f,h,c,v,d,p,o,t),s=d,l=p}n.push(o)}return n}function xS(r,t,e){var n=r[t],i=r[1-t],a=Math.abs(n/i),o=Math.ceil(Math.sqrt(a*e)),s=Math.floor(e/o);s===0&&(s=1,o=e);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,h=e-f;if(h>0)for(var u=0;u<h;u++)l[u%o]+=1;return l}function pm(r,t,e){for(var n=r.r0,i=r.r,a=r.startAngle,o=r.endAngle,s=Math.abs(o-a),l=s*i,u=i-n,f=l>Math.abs(u),h=xS([l,u],f?0:1,t),c=(f?s:u)/h.length,v=0;v<h.length;v++)for(var d=(f?u:s)/h[v],p=0;p<h[v];p++){var g={};f?(g.startAngle=a+c*v,g.endAngle=a+c*(v+1),g.r0=n+d*p,g.r=n+d*(p+1)):(g.startAngle=a+d*p,g.endAngle=a+d*(p+1),g.r0=n+c*v,g.r=n+c*(v+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,e.push(g)}}function Ak(r,t,e){for(var n=r.width,i=r.height,a=n>i,o=xS([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",f=a?"y":"x",h=r[s]/o.length,c=0;c<o.length;c++)for(var v=r[l]/o[c],d=0;d<o[c];d++){var p={};p[u]=c*h,p[f]=d*v,p[s]=h,p[l]=v,p.x+=r.x,p.y+=r.y,e.push(p)}}function gm(r,t,e,n){return r*n-e*t}function Mk(r,t,e,n,i,a,o,s){var l=e-r,u=n-t,f=o-i,h=s-a,c=gm(f,h,l,u);if(Math.abs(c)<1e-6)return null;var v=r-i,d=t-a,p=gm(v,d,f,h)/c;return p<0||p>1?null:new Z(p*l+r,p*u+t)}function Dk(r,t,e){var n=new Z;Z.sub(n,e,t),n.normalize();var i=new Z;Z.sub(i,r,t);var a=i.dot(n);return a}function oi(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function Ik(r,t,e){for(var n=r.length,i=[],a=0;a<n;a++){var o=r[a],s=r[(a+1)%n],l=Mk(o[0],o[1],s[0],s[1],t.x,t.y,e.x,e.y);l&&i.push({projPt:Dk(l,t,e),pt:l,idx:a})}if(i.length<2)return[{points:r},{points:r}];i.sort(function(g,m){return g.projPt-m.projPt});var u=i[0],f=i[i.length-1];if(f.idx<u.idx){var h=u;u=f,f=h}for(var c=[u.pt.x,u.pt.y],v=[f.pt.x,f.pt.y],d=[c],p=[v],a=u.idx+1;a<=f.idx;a++)oi(d,r[a].slice());oi(d,v),oi(d,c);for(var a=f.idx+1;a<=u.idx+n;a++)oi(p,r[a%n].slice());return oi(p,c),oi(p,v),[{points:d},{points:p}]}function mm(r){var t=r.points,e=[],n=[];C0(t,e,n);var i=new ct(e[0],e[1],n[0]-e[0],n[1]-e[1]),a=i.width,o=i.height,s=i.x,l=i.y,u=new Z,f=new Z;return a>o?(u.x=f.x=s+a/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+a),Ik(t,u,f)}function Ks(r,t,e,n){if(e===1)n.push(t);else{var i=Math.floor(e/2),a=r(t);Ks(r,a[0],i,n),Ks(r,a[1],e-i,n)}return n}function Lk(r,t){for(var e=[],n=0;n<t;n++)e.push(Qh(r));return e}function Pk(r,t){t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel}function Rk(r){for(var t=[],e=0;e<r.length;)t.push([r[e++],r[e++]]);return t}function Ek(r,t){var e=[],n=r.shape,i;switch(r.type){case"rect":Ak(n,t,e),i=wt;break;case"sector":pm(n,t,e),i=Sr;break;case"circle":pm({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,e),i=Sr;break;default:var a=r.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=G(Ck(r.getUpdatedPathProxy(),o),function(m){return Rk(m)}),l=s.length;if(l===0)Ks(mm,{points:s[0]},t,e);else if(l===t)for(var u=0;u<l;u++)e.push({points:s[u]});else{var f=0,h=G(s,function(m){var y=[],_=[];C0(m,y,_);var S=(_[1]-y[1])*(_[0]-y[0]);return f+=S,{poly:m,area:S}});h.sort(function(m,y){return y.area-m.area});for(var c=t,u=0;u<l;u++){var v=h[u];if(c<=0)break;var d=u===l-1?c:Math.ceil(v.area/f*t);d<0||(Ks(mm,{points:v.poly},d,e),c-=d)}}i=no;break}if(!i)return Lk(r,t);for(var p=[],u=0;u<e.length;u++){var g=new i;g.setShape(e[u]),Pk(r,g),p.push(g)}return p}function Ok(r,t){var e=r.length,n=t.length;if(e===n)return[r,t];for(var i=[],a=[],o=e<n?r:t,s=Math.min(e,n),l=Math.abs(n-e)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,h=[o[0],o[1]],c=l,v=2;v<s;){var d=o[v-2],p=o[v-1],g=o[v++],m=o[v++],y=o[v++],_=o[v++],S=o[v++],x=o[v++];if(c<=0){h.push(g,m,y,_,S,x);continue}for(var w=Math.min(c,f-1)+1,b=1;b<=w;b++){var T=b/w;Ur(d,g,y,S,T,i),Ur(p,m,_,x,T,a),d=i[3],p=a[3],h.push(i[1],a[1],i[2],a[2],d,p),g=i[5],m=a[5],y=i[6],_=a[6]}c-=w-1}return o===r?[h,t]:[r,h]}function ym(r,t){for(var e=r.length,n=r[e-2],i=r[e-1],a=[],o=0;o<t.length;)a[o++]=n,a[o++]=i;return a}function kk(r,t){for(var e,n,i,a=[],o=[],s=0;s<Math.max(r.length,t.length);s++){var l=r[s],u=t[s],f=void 0,h=void 0;l?u?(e=Ok(l,u),f=e[0],h=e[1],n=f,i=h):(h=ym(i||l,l),f=l):(f=ym(n||u,u),h=u),a.push(f),o.push(h)}return[a,o]}function _m(r){for(var t=0,e=0,n=0,i=r.length,a=0,o=i-2;a<i;o=a,a+=2){var s=r[o],l=r[o+1],u=r[a],f=r[a+1],h=s*f-u*l;t+=h,e+=(s+u)*h,n+=(l+f)*h}return t===0?[r[0]||0,r[1]||0]:[e/t/3,n/t/3,t]}function Bk(r,t,e,n){for(var i=(r.length-2)/6,a=1/0,o=0,s=r.length,l=s-2,u=0;u<i;u++){for(var f=u*6,h=0,c=0;c<s;c+=2){var v=c===0?f:(f+c-2)%l+2,d=r[v]-e[0],p=r[v+1]-e[1],g=t[c]-n[0],m=t[c+1]-n[1],y=g-d,_=m-p;h+=y*y+_*_}h<a&&(a=h,o=u)}return o}function Nk(r){for(var t=[],e=r.length,n=0;n<e;n+=2)t[n]=r[e-n-2],t[n+1]=r[e-n-1];return t}function Fk(r,t,e,n){for(var i=[],a,o=0;o<r.length;o++){var s=r[o],l=t[o],u=_m(s),f=_m(l);a==null&&(a=u[2]<0!=f[2]<0);var h=[],c=[],v=0,d=1/0,p=[],g=s.length;a&&(s=Nk(s));for(var m=Bk(s,l,u,f)*6,y=g-2,_=0;_<y;_+=2){var S=(m+_)%y+2;h[_+2]=s[S]-u[0],h[_+3]=s[S+1]-u[1]}if(h[0]=s[m]-u[0],h[1]=s[m+1]-u[1],e>0)for(var x=n/e,w=-n/2;w<=n/2;w+=x){for(var b=Math.sin(w),T=Math.cos(w),C=0,_=0;_<s.length;_+=2){var D=h[_],M=h[_+1],I=l[_]-f[0],L=l[_+1]-f[1],P=I*T-L*b,E=I*b+L*T;p[_]=P,p[_+1]=E;var O=P-D,H=E-M;C+=O*O+H*H}if(C<d){d=C,v=w;for(var k=0;k<p.length;k++)c[k]=p[k]}}else for(var F=0;F<g;F+=2)c[F]=l[F]-f[0],c[F+1]=l[F+1]-f[1];i.push({from:h,to:c,fromCp:u,toCp:f,rotation:-v})}return i}function Qs(r){return r.__isCombineMorphing}var bS="__mOriginal_";function Js(r,t,e){var n=bS+t,i=r[n]||r[t];r[n]||(r[n]=r[t]);var a=e.replace,o=e.after,s=e.before;r[t]=function(){var l=arguments,u;return s&&s.apply(this,l),a?u=a.apply(this,l):u=i.apply(this,l),o&&o.apply(this,l),u}}function Oa(r,t){var e=bS+t;r[e]&&(r[t]=r[e],r[e]=null)}function Sm(r,t){for(var e=0;e<r.length;e++)for(var n=r[e],i=0;i<n.length;){var a=n[i],o=n[i+1];n[i++]=t[0]*a+t[2]*o+t[4],n[i++]=t[1]*a+t[3]*o+t[5]}}function TS(r,t){var e=r.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),i=kk(Ph(e),Ph(n)),a=i[0],o=i[1],s=r.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&Sm(a,s),l&&Sm(o,l),Js(t,"updateTransform",{replace:u}),t.transform=null;var f=Fk(a,o,10,Math.PI),h=[];Js(t,"buildPath",{replace:function(c){for(var v=t.__morphT,d=1-v,p=[],g=0;g<f.length;g++){var m=f[g],y=m.from,_=m.to,S=m.rotation*v,x=m.fromCp,w=m.toCp,b=Math.sin(S),T=Math.cos(S);rs(p,x,w,v);for(var C=0;C<y.length;C+=2){var D=y[C],M=y[C+1],I=_[C],L=_[C+1],P=D*d+I*v,E=M*d+L*v;h[C]=P*T-E*b+p[0],h[C+1]=P*b+E*T+p[1]}var O=h[0],H=h[1];c.moveTo(O,H);for(var C=2;C<y.length;){var I=h[C++],L=h[C++],k=h[C++],F=h[C++],U=h[C++],q=h[C++];O===I&&H===L&&k===U&&F===q?c.lineTo(U,q):c.bezierCurveTo(I,L,k,F,U,q),O=U,H=q}}}})}function Qv(r,t,e){if(!r||!t)return t;var n=e.done,i=e.during;TS(r,t),t.__morphT=0;function a(){Oa(t,"buildPath"),Oa(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},tt({during:function(o){t.dirtyShape(),i&&i(o)},done:function(){a(),n&&n()}},e)),t}function zk(r,t,e,n,i,a){var o=16;r=i===e?0:Math.round(32767*(r-e)/(i-e)),t=a===n?0:Math.round(32767*(t-n)/(a-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,h=0;(r&u)>0&&(f=1),(t&u)>0&&(h=1),s+=u*u*(3*f^h),h===0&&(f===1&&(r=u-1-r,t=u-1-t),l=r,r=t,t=l)}return s}function js(r){var t=1/0,e=1/0,n=-1/0,i=-1/0,a=G(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return t=Math.min(f,t),e=Math.min(h,e),n=Math.max(f,n),i=Math.max(h,i),[f,h]}),o=G(a,function(s,l){return{cp:s,z:zk(s[0],s[1],t,e,n,i),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function CS(r){return Ek(r.path,r.count)}function Eh(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Vk(r,t,e){var n=[];function i(x){for(var w=0;w<x.length;w++){var b=x[w];Qs(b)?i(b.childrenRef()):b instanceof lt&&n.push(b)}}i(r);var a=n.length;if(!a)return Eh();var o=e.dividePath||CS,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),Eh();n=js(n),s=js(s);for(var l=e.done,u=e.during,f=e.individualDelay,h=new to,c=0;c<a;c++){var v=n[c],d=s[c];d.parent=t,d.copyTransform(h),f||TS(v,d)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function p(x){for(var w=0;w<s.length;w++)s[w].addSelfToZr(x)}Js(t,"addSelfToZr",{after:function(x){p(x)}}),Js(t,"removeSelfFromZr",{after:function(x){for(var w=0;w<s.length;w++)s[w].removeSelfFromZr(x)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Oa(t,"addSelfToZr"),Oa(t,"removeSelfFromZr")}var m=s.length;if(f)for(var y=m,_=function(){y--,y===0&&(g(),l&&l())},c=0;c<m;c++){var S=f?tt({delay:(e.delay||0)+f(c,m,n[c],s[c]),done:_},e):e;Qv(n[c],s[c],S)}else t.__morphT=0,t.animateTo({__morphT:1},tt({during:function(x){for(var w=0;w<m;w++){var b=s[w];b.__morphT=t.__morphT,b.dirtyShape()}u&&u(x)},done:function(){g();for(var x=0;x<r.length;x++)Oa(r[x],"updateTransform");l&&l()}},e));return t.__zr&&p(t.__zr),{fromIndividuals:n,toIndividuals:s,count:m}}function Gk(r,t,e){var n=t.length,i=[],a=e.dividePath||CS;function o(v){for(var d=0;d<v.length;d++){var p=v[d];Qs(p)?o(p.childrenRef()):p instanceof lt&&i.push(p)}}if(Qs(r)){o(r.childrenRef());var s=i.length;if(s<n)for(var l=0,u=s;u<n;u++)i.push(Qh(i[l++%s]));i.length=n}else{i=a({path:r,count:n});for(var f=r.getComputedTransform(),u=0;u<i.length;u++)i[u].setLocalTransform(f);if(i.length!==n)return console.error("Invalid morphing: unmatched splitted path"),Eh()}i=js(i),t=js(t);for(var h=e.individualDelay,u=0;u<n;u++){var c=h?tt({delay:(e.delay||0)+h(u,n,i[u],t[u])},e):e;Qv(i[u],t[u],c)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function wm(r){return z(r[0])}function xm(r,t){for(var e=[],n=r.length,i=0;i<n;i++)e.push({one:r[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)e[o%n].many.push(t[i][o])}for(var s=0,i=n-1;i>=0;i--)if(!e[i].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var a=l.length,u=Math.ceil(a/2);e[i].many=l.slice(u,a),e[s].many=l.slice(0,u),s++}return e}var Hk={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n<r.count;n++){var i=Qh(r.path);i.setStyle("opacity",e),t.push(i)}return t},split:null};function cf(r,t,e,n,i,a){if(!r.length||!t.length)return;var o=pl("update",n,i);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;wm(r)&&(u=r,f=t),wm(t)&&(u=t,f=r);function h(m,y,_,S,x){var w=m.many,b=m.one;if(w.length===1&&!x){var T=y?w[0]:b,C=y?b:w[0];if(Qs(T))h({many:[T],one:C},!0,_,S,!0);else{var D=s?tt({delay:s(_,S)},l):l;Qv(T,C,D),a(T,C,T,C,D)}}else for(var M=tt({dividePath:Hk[e],individualDelay:s&&function(H,k,F,U){return s(H+_,S)}},l),I=y?Vk(w,b,M):Gk(b,w,M),L=I.fromIndividuals,P=I.toIndividuals,E=L.length,O=0;O<E;O++){var D=s?tt({delay:s(O,E)},l):l;a(L[O],P[O],y?w[O]:m.one,y?m.one:w[O],D)}}for(var c=u?u===r:r.length>t.length,v=u?xm(f,u):xm(c?t:r,[c?r:t]),d=0,p=0;p<v.length;p++)d+=v[p].many.length;for(var g=0,p=0;p<v.length;p++)h(v[p],c,g,d),g+=v[p].many.length}function wn(r){if(!r)return[];if(z(r)){for(var t=[],e=0;e<r.length;e++)t.push(wn(r[e]));return t}var n=[];return r.traverse(function(i){i instanceof lt&&!i.disableMorphing&&!i.invisible&&!i.ignore&&n.push(i)}),n}var AS=1e4,Wk=bt();function Uk(r){for(var t=r.dimensions,e=0;e<t.length;e++){var n=r.getDimensionInfo(t[e]);if(n&&n.otherDims.itemGroupId===0)return t[e]}}function bm(r){var t=[];return A(r,function(e){var n=e.data;if(n.count()>AS){nr("Universal transition is disabled on large data > 10k.");return}for(var i=n.getIndices(),a=Uk(n),o=0;o<i.length;o++)t.push({data:n,dim:e.dim||a,divide:e.divide,dataIndex:o})}),t}function df(r,t,e){r.traverse(function(n){n instanceof lt&&$t(n,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function pf(r){if(r.parent){var t=r.getComputedTransform();r.setLocalTransform(t),r.parent.remove(r)}}function si(r){r.stopAnimation(),r.isGroup&&r.traverse(function(t){t.stopAnimation()})}function Yk(r,t,e){var n=pl("update",e,t);n&&r.traverse(function(i){if(i instanceof Bi){var a=FC(i);a&&i.animateFrom({style:a},n)}})}function Zk(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++){var i=r[n],a=t[n];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function MS(r,t,e){var n=bm(r),i=bm(t);function a(m,y,_,S,x){(_||m)&&y.animateFrom({style:_&&_!==m?N(N({},_.style),m.style):m.style},x)}function o(m){for(var y=0;y<m.length;y++)if(m[y].dim)return m[y].dim}var s=o(n),l=o(i),u=!1;function f(m,y){return function(_){var S=_.data,x=_.dataIndex;if(y)return S.getId(x);var w=S.hostModel&&S.hostModel.get("dataGroupId"),b=m?s||l:l||s,T=b&&S.getDimensionInfo(b),C=T&&T.ordinalMeta;if(T){var D=S.get(T.name,x);return C&&C.categories[D]||D+""}var M=S.getRawDataItem(x);return M&&M.groupId?M.groupId+"":w||S.getId(x)}}var h=Zk(n,i),c={};if(!h)for(var v=0;v<i.length;v++){var d=i[v],p=d.data.getItemGraphicEl(d.dataIndex);p&&(c[p.id]=!0)}function g(m,y){var _=n[y],S=i[m],x=S.data.hostModel,w=_.data.getItemGraphicEl(_.dataIndex),b=S.data.getItemGraphicEl(S.dataIndex);if(w===b){b&&Yk(b,S.dataIndex,x);return}w&&c[w.id]||b&&(si(b),w?(si(w),pf(w),u=!0,cf(wn(w),wn(b),S.divide,x,m,a)):df(b,x,m))}new Xa(n,i,f(!0,h),f(!1,h),null,"multiple").update(g).updateManyToOne(function(m,y){var _=i[m],S=_.data,x=S.hostModel,w=S.getItemGraphicEl(_.dataIndex),b=Pt(G(y,function(T){return n[T].data.getItemGraphicEl(n[T].dataIndex)}),function(T){return T&&T!==w&&!c[T.id]});w&&(si(w),b.length?(A(b,function(T){si(T),pf(T)}),u=!0,cf(wn(b),wn(w),_.divide,x,m,a)):df(w,x,_.dataIndex))}).updateOneToMany(function(m,y){var _=n[y],S=_.data.getItemGraphicEl(_.dataIndex);if(!(S&&c[S.id])){var x=Pt(G(m,function(b){return i[b].data.getItemGraphicEl(i[b].dataIndex)}),function(b){return b&&b!==S}),w=i[m[0]].data.hostModel;x.length&&(A(x,function(b){return si(b)}),S?(si(S),pf(S),u=!0,cf(wn(S),wn(x),_.divide,w,m[0],a)):A(x,function(b){return df(b,w,m[0])}))}}).updateManyToMany(function(m,y){new Xa(y,m,function(_){return n[_].data.getId(n[_].dataIndex)},function(_){return i[_].data.getId(i[_].dataIndex)}).update(function(_,S){g(m[_],y[S])}).execute()}).execute(),u&&A(t,function(m){var y=m.data,_=y.hostModel,S=_&&e.getViewOfSeriesModel(_),x=pl("update",_,0);S&&_.isAnimationEnabled()&&x&&x.duration>0&&S.group.traverse(function(w){w instanceof lt&&!w.animators.length&&w.animateFrom({style:{opacity:0}},x)})})}function Tm(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function Cm(r){return z(r)?r.sort().join(","):r}function Br(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function $k(r,t){var e=Q(),n=Q(),i=Q();A(r.oldSeries,function(o,s){var l=r.oldData[s],u=Tm(o),f=Cm(u);n.set(f,l),z(u)&&A(u,function(h){i.set(h,{data:l,key:f})})});function a(o){e.get(o)&&nr("Duplicated seriesKey in universalTransition "+o)}return A(t.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.getData(),l=Tm(o),u=Cm(l),f=n.get(u);if(f)a(u),e.set(u,{oldSeries:[{divide:Br(f),data:f}],newSeries:[{divide:Br(s),data:s}]});else if(z(l)){a(u);var h=[];A(l,function(d){var p=n.get(d);p&&h.push({divide:Br(p),data:p})}),h.length&&e.set(u,{oldSeries:h,newSeries:[{data:s,divide:Br(s)}]})}else{var c=i.get(l);if(c){var v=e.get(c.key);v||(v={oldSeries:[{data:c.data,divide:Br(c.data)}],newSeries:[]},e.set(c.key,v)),v.newSeries.push({data:s,divide:Br(s)})}}}}),e}function Am(r,t){for(var e=0;e<r.length;e++){var n=t.seriesIndex!=null&&t.seriesIndex===r[e].seriesIndex||t.seriesId!=null&&t.seriesId===r[e].id;if(n)return e}}function Xk(r,t,e,n){var i=[],a=[];A(Dt(r.from),function(o){var s=Am(t.oldSeries,o);s>=0&&i.push({data:t.oldData[s],divide:Br(t.oldData[s]),dim:o.dimension})}),A(Dt(r.to),function(o){var s=Am(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();a.push({data:l,divide:Br(l),dim:o.dimension})}}),i.length>0&&a.length>0&&MS(i,a,n)}function qk(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){A(Dt(n.seriesTransition),function(i){A(Dt(i.to),function(a){for(var o=n.updatedSeries,s=0;s<o.length;s++)(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)&&(o[s][ds]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(t,e,n){var i=Wk(e);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)A(Dt(a),function(c){Xk(c,i,n,e)});else{var o=$k(i,n);A(o.keys(),function(c){var v=o.get(c);MS(v.oldSeries,v.newSeries,e)})}A(n.updatedSeries,function(c){c[ds]&&(c[ds]=!1)})}for(var s=t.getSeries(),l=i.oldSeries=[],u=i.oldData=[],f=0;f<s.length;f++){var h=s[f].getData();h.count()<AS&&(l.push(s[f]),u.push(h))}})}function Mm(r,t,e){var n=zn.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",r)),n.width=i*e,n.height=a*e,n}var Kk=function(r){B(t,r);function t(e,n,i){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||Cs,typeof e=="string"?o=Mm(e,n,i):Y(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(Nm(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=Mm("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new ct(0,0,0,0);function f(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new ct(0,0,0,0);_.copy(y),o.push(_)}else{for(var S=!1,x=1/0,w=0,b=0;b<o.length;++b){var T=o[b];if(T.intersect(y)){var C=new ct(0,0,0,0);C.copy(T),C.union(y),o[b]=C,S=!0;break}else if(l){u.copy(y),u.union(T);var D=y.width*y.height,M=T.width*T.height,I=u.width*u.height,L=I-D-M;L<x&&(x=L,w=b)}}if(l&&(o[w].union(y),S=!0),!S){var _=new ct(0,0,0,0);_.copy(y),o.push(_)}l||(l=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var c=e[h];if(c){var v=c.shouldBePainted(i,a,!0,!0),d=c.__isRendered&&(c.__dirty&ce||!v)?c.getPrevPaintRect():null;d&&f(d);var p=v&&(c.__dirty&ce||!c.__isRendered)?c.getPaintRect():null;p&&f(p)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var c=n[h],v=c.shouldBePainted(i,a,!0,!0);if(c&&(!v||!c.__zr)&&c.__isRendered){var d=c.getPrevPaintRect();d&&f(d)}}var g;do{g=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var m=h+1;m<o.length;)o[h].intersect(o[m])?(g=!0,o[h].union(o[m]),o.splice(m,1)):m++;h++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=e+"px",o.height=n+"px"),a.width=e*i,a.height=n*i,s&&(s.width=e*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(e,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!e,f=this.lastFrameAlpha,h=this.dpr,c=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,l/h));var v=this.domBack;function d(p,g,m,y){if(o.clearRect(p,g,m,y),n&&n!=="transparent"){var _=void 0;rl(n)?(_=n.__canvasGradient||nh(o,n,{x:0,y:0,width:m,height:y}),n.__canvasGradient=_):Ww(n)&&(_=ih(o,n,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}})),o.save(),o.fillStyle=_||n,o.fillRect(p,g,m,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(v,p,g,m,y),o.restore())}!i||u?d(0,0,s,l):i.length&&A(i,function(p){d(p.x*h,p.y*h,p.width*h,p.height*h)})},t}(Le),gf=Kk,Dm=1e5,_n=314159,es=.01,Qk=.001;function Jk(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function jk(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var tB=function(){function r(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=N({},n||{}),this.dpr=n.devicePixelRatio||Cs,this._singleCanvas=a,this.root=t;var o=t.style;o&&(Nm(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var f=t,h=f.width,c=f.height;n.width!=null&&(h=n.width),n.height!=null&&(c=n.height),this.dpr=n.devicePixelRatio||1,f.width=h*this.dpr,f.height=c*this.dpr,this._width=h,this._height=c;var v=new gf(f,this,this.dpr);v.__builtin__=!0,v.initContext(),l[_n]=v,v.zlevel=_n,s.push(_n),this._domRoot=t}else{this._width=Fo(t,0,n),this._height=Fo(t,1,n);var u=this._domRoot=jk(this._width,this._height);t.appendChild(u)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.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 a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),!!e){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<e;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Dm)),a||(a=n.ctx,a.save()),Cn(a,s,i,o===e-1))}a&&a.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(Dm)},r.prototype.paintOne=function(t,e){S_(t,e)},r.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,e,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Tf(function(){l._paintList(t,e,n,i)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(_n).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)})},r.prototype._doPaintList=function(t,e,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var f=!0,h=!1,c=function(p){var g=a[p],m=g.ctx,y=o&&g.createRepaintRects(t,e,v._width,v._height),_=n?g.__startIndex:g.__drawIndex,S=!n&&g.incremental&&Date.now,x=S&&Date.now(),w=g.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,w,y);else if(_===g.__startIndex){var b=t[_];(!b.incremental||!b.notClear||n)&&g.clear(!1,w,y)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var T,C=function(L){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(T=_;T<g.__endIndex;T++){var E=t[T];if(E.__inHover&&(h=!0),i._doPaintEl(E,g,o,L,P,T===g.__endIndex-1),S){var O=Date.now()-x;if(O>15)break}}P.prevElClipPaths&&m.restore()};if(y)if(y.length===0)T=g.__endIndex;else for(var D=v.dpr,M=0;M<y.length;++M){var I=y[M];m.save(),m.beginPath(),m.rect(I.x*D,I.y*D,I.width*D,I.height*D),m.clip(),C(I),m.restore()}else m.save(),C(),m.restore();g.__drawIndex=T,g.__drawIndex<g.__endIndex&&(f=!1)},v=this,d=0;d<a.length;d++)c(d);return st.wxa&&A(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:f,needsRefreshHover:h}},r.prototype._doPaintEl=function(t,e,n,i,a,o){var s=e.ctx;if(n){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(Cn(s,t,a,o),t.setPrevPaintRect(l))}else Cn(s,t,a,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=_n);var n=this._layers[t];return n||(n=new gf("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?it(n,this._layerConfig[t],!0):this._layerConfig[t-es]&&it(n,this._layerConfig[t-es],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},r.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(n[t]){An("ZLevel "+t+" has been used already");return}if(!Jk(e)){An("Layer of zlevel "+t+" is not valid");return}if(a>0&&t>i[0]){for(l=0;l<a-1&&!(i[l]<t&&i[l+1]>t);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];t.call(e,this._layers[a],a)}},r.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(e,o,a)}},r.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(e,o,a)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,c){h.__dirty=h.__used=!1});function e(h){a&&(a.__endIndex!==h&&(a.__dirty=!0),a.__endIndex=h)}if(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 a=null,o=0,s,l;for(l=0;l<t.length;l++){var i=t[l],u=i.zlevel,f=void 0;s!==u&&(s=u,o=0),i.incremental?(f=this.getLayer(u+Qk,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?es:0),this._needsManuallyCompositing),f.__builtin__||An("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),a=f),i.__dirty&ce&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,A(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?it(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+es){var o=this._layers[a];it(o,n[t],!0)}}}},r.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(ot(n,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(t!=null&&(i.width=t),e!=null&&(i.height=e),t=Fo(a,0,i),e=Fo(a,1,i),n.style.display="",this._width!==t||e!==this._height){n.style.width=t+"px",n.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(_n).resize(t,e)}return this},r.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[_n].dom;var e=new gf("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,a=e.dom.height;this.eachLayer(function(h){h.__builtin__?n.drawImage(h.dom,0,0,i,a):h.renderToCanvas&&(n.save(),h.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];Cn(n,f,o,l===u-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}(),eB=tB;function rB(r){r.registerPainter("canvas",eB)}const fe={legend:{show:!1},emphasis:{lineStyle:{width:2}},xAxis:{boundaryGap:!1,data:["01\u6708","02\u6708","03\u6708","04\u6708","05\u6708","06\u6708","07\u6708","08\u6708","09\u6708","10\u6708","11\u6708","12\u6708"],type:"category",axisLine:{lineStyle:{color:"#8C8C8C"}}},color:["#5B8FF9","#2DC7AA","#91DD1C","#FFA92C","#BE7E2E","#1C96DD","#D22CFF","#FF3C3C","#1AEE3E","#00c9ff","#7c47ff"],series:[{lineStyle:{width:1},data:["0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00"],symbol:"circle",name:"\u966A\u7EC3\u8BFE",type:"line",emphasis:{lineStyle:{width:1}}},{lineStyle:{width:1},data:["0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00"],symbol:"circle",name:"\u76F4\u64AD\u8BFE",type:"line",emphasis:{lineStyle:{width:1}}},{lineStyle:{width:1},data:["0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00"],symbol:"circle",name:"\u89C6\u9891\u8BFE",type:"line",emphasis:{lineStyle:{width:1}}},{lineStyle:{width:1},data:["0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00"],symbol:"circle",name:"\u4E50\u8C31",type:"line",emphasis:{lineStyle:{width:1}}},{lineStyle:{width:1},data:["0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00"],symbol:"circle",name:"\u5C0F\u9177Ai\u63A8\u5E7F",type:"line",emphasis:{lineStyle:{width:1}}},{lineStyle:{width:1},data:["0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00"],symbol:"circle",name:"\u76F4\u64AD\u8BFE\u63A8\u8350",type:"line",emphasis:{lineStyle:{width:1}}},{lineStyle:{width:1},data:["0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00"],symbol:"circle",name:"\u89C6\u9891\u8BFE\u63A8\u8350",type:"line",emphasis:{lineStyle:{width:1}}},{lineStyle:{width:1},data:["0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00"],symbol:"circle",name:"\u5546\u54C1\u63A8\u8350",type:"line",emphasis:{lineStyle:{width:1}}},{lineStyle:{width:1},data:["0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00"],symbol:"circle",name:"\u4E50\u8C31\u63A8\u8350",type:"line",emphasis:{lineStyle:{width:1}}},{lineStyle:{width:1},data:["0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00"],symbol:"circle",name:"\u4E13\u8F91\u63A8\u8350",type:"line",emphasis:{lineStyle:{width:1}}},{lineStyle:{width:1},data:["0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00"],symbol:"circle",name:"\u6D3B\u52A8\u62A5\u540D",type:"line",emphasis:{lineStyle:{width:1}}}],title:{show:!1},grid:{bottom:"3%",containLabel:!0,left:"3%",right:"5%",top:"7%"},tooltip:{trigger:"axis",confine:!0},yAxis:{type:"value",splitLine:{axisLine:{lineStyle:{color:"#8C8C8C"}},lineStyle:{color:["#E2E2E2"]}}},dataZoom:[{type:"inside",throttle:100}],toolbox:{feature:{saveAsImage:{show:!1}}}},he={tooltip:{position:["30%","30%"],trigger:"item",padding:3,textStyle:{fontSize:12},borderWidth:0,formatter:"{b} : {c} ({d}%)"},series:[{avoidLabelOverlap:!1,label:{show:!1},data:[{name:"\u966A\u7EC3\u8BFE",value:"0.00"},{name:"\u76F4\u64AD\u8BFE",value:"0.00"},{name:"\u89C6\u9891\u8BFE",value:"0.00"},{name:"\u4E50\u8C31",value:"0.00"},{name:"\u5C0F\u9177Ai\u63A8\u5E7F",value:"0.00"},{name:"\u76F4\u64AD\u8BFE\u63A8\u8350",value:"0.00"},{name:"\u89C6\u9891\u8BFE\u63A8\u8350",value:"0.00"},{name:"\u5546\u54C1\u63A8\u8350",value:"0.00"},{name:"\u4E50\u8C31\u63A8\u8350",value:"0.00"},{name:"\u4E13\u8F91\u63A8\u8350",value:"0.00"},{name:"\u6D3B\u52A8\u62A5\u540D",value:"0.00"}],type:"pie",radius:["50%","80%"]}],grid:{bottom:"0%",containLabel:!0,left:"0%",right:"0%",top:"0%"},toolbox:{feature:{saveAsImage:{show:!1}}},color:["#5B8FF9","#2DC7AA","#91DD1C","#FFA92C","#BE7E2E","#1C96DD","#D22CFF","#FF3C3C","#1AEE3E","#00c9ff","#7c47ff"]};Ge([TO,wO,QR,Tk,wk,JL,oL,qk,rB,cP,JE,FO,lk,OL]);const Im=r=>{const t=`./images/${r}`;return{"./images/icon_fly.png":VS,"./images/icon_user.png":HS}[t].default},DS=[],tl=ca().year();let Lm=10;for(let r=tl-10;r<=tl+10;r++)DS.push({text:`${r}\u5E74`,value:r});var fB=PS({name:"IncomeConsus",data(){return{moneyInfo:{totalSingleRate:0,totalShareRate:0,totalInAmount:0,practiceAmount:0,practiceRate:0,liveAmount:0,liveRate:0,videoAmount:0,videoRate:0,musicAmount:0,musicRate:0,vipShareAmount:0,vipShareRate:0,liveShareAmount:0,liveShareRate:0,videoShareAmount:0,videoShareRate:0,mallShareAmount:0,mallShareRate:0,musicShareAmount:0,musicShareRate:0,albumShareAmount:0,albumShareRate:0,actiRegistShareAmount:0,actiRegistShareRate:0},params:{timeType:"YEAR",dateTime:`${tl}`},dateTimeStr:`${tl}\u5E74`,myChart:null,myChart2:null,timerStatus:!1,currentDate:new Date}},async mounted(){this.myChart=jv(Pp(document.getElementById("incomeClass"))),this.myChart2=jv(Pp(document.getElementById("structrueClass"))),this.getList()},methods:{async getList(){try{const r=this.params,e=(await RS.post("/api-teacher/userAccount/accountTotal",{data:r})).data||{};this.moneyInfo={totalSingleRate:Number((e.practiceRate+e.liveRate+e.videoRate+e.musicRate).toFixed(2)),totalShareRate:Number((e.vipShareRate+e.liveShareRate+e.videoShareRate+e.musicShareRate+e.mallShareRate+e.actiRegistShareRate+e.albumShareRate||0).toFixed(2)),totalInAmount:e.totalInAmount||0,practiceAmount:e.practiceAmount||0,practiceRate:e.practiceRate||0,liveAmount:e.liveAmount||0,liveRate:e.liveRate||0,videoAmount:e.videoAmount||0,videoRate:e.videoRate||0,musicAmount:e.musicAmount||0,musicRate:e.musicRate||0,vipShareAmount:e.vipShareAmount||0,vipShareRate:e.vipShareRate||0,liveShareAmount:e.liveShareAmount||0,liveShareRate:e.liveShareRate||0,videoShareAmount:e.videoShareAmount||0,videoShareRate:e.videoShareRate||0,mallShareAmount:e.mallShareAmount||0,mallShareRate:e.mallShareRate||0,musicShareAmount:e.musicShareAmount||0,musicShareRate:e.musicShareRate||0,albumShareAmount:e.albumShareAmount||0,albumShareRate:e.albumShareRate||0,actiRegistShareAmount:e.actiRegistShareAmount||0,actiRegistShareRate:e.actiRegistShareRate||0},console.log(this.moneyInfo);const n={xAxis:[],practiceAmount:[],liveAmount:[],videoAmount:[],musicAmount:[],vipShareAmount:[],liveShareAmount:[],videoShareAmount:[],mallShareAmount:[],musicShareAmount:[],albumShareAmount:[],actiRegistShareAmount:[]};(e.infoList||[]).forEach(i=>{r.timeType==="YEAR"?n.xAxis.push(ca(i.timeStr).format("MM\u6708")):r.timeType==="MONTH"&&n.xAxis.push(ca(i.timeStr).format("DD\u65E5")),n.practiceAmount.push(i.practiceAmount),n.liveAmount.push(i.liveAmount),n.videoAmount.push(i.videoAmount),n.musicAmount.push(i.musicAmount),n.vipShareAmount.push(i.vipShareAmount),n.liveShareAmount.push(i.liveShareAmount),n.videoShareAmount.push(i.videoShareAmount),n.mallShareAmount.push(i.mallShareAmount),n.musicShareAmount.push(i.musicShareAmount),n.albumShareAmount.push(i.albumShareAmount||0),n.actiRegistShareAmount.push(i.actiRegistShareAmount)}),fe.xAxis.data=n.xAxis,fe.series[0].data=n.practiceAmount,fe.series[1].data=n.liveAmount,fe.series[2].data=n.videoAmount,fe.series[3].data=n.musicAmount,fe.series[4].data=n.vipShareAmount,fe.series[5].data=n.liveShareAmount,fe.series[6].data=n.videoShareAmount,fe.series[7].data=n.mallShareAmount,fe.series[8].data=n.musicShareAmount,fe.series[9].data=n.albumShareAmount,fe.series[10].data=n.actiRegistShareAmount,this.myChart.clear(),this.myChart.setOption(fe),he.series[0].data[0].value=e.practiceAmount,he.series[0].data[1].value=e.liveAmount,he.series[0].data[2].value=e.videoAmount,he.series[0].data[3].value=e.musicAmount,he.series[0].data[4].value=e.vipShareAmount,he.series[0].data[5].value=e.liveShareAmount,he.series[0].data[6].value=e.videoShareAmount,he.series[0].data[7].value=e.mallShareAmount,he.series[0].data[8].value=e.musicShareAmount,he.series[0].data[9].value=e.albumShareAmount,he.series[0].data[10].value=e.actiRegistShareAmount,console.log(he),this.myChart2.clear(),this.myChart2.setOption(he)}catch{}}},render(){return R("div",{style:{overflow:"hidden"}},[R("div",{class:V.incomeConsus},[R(kS,{class:V.income,title:"\u603B\u6536\u5165(\u5143)"},{label:()=>R("span",{class:V.countPrice},[pe(this.moneyInfo.totalInAmount)]),value:()=>R("span",{class:V.searchTime,onClick:()=>this.timerStatus=!0},[this.dateTimeStr])}),R("div",{class:V.section},[R(BS,{class:V.numberCount},{default:()=>[R(Ee,{span:6},{default:()=>[R("i",null,null),R("div",{class:V.type},[R("span",null,[et("\u966A\u7EC3\u8BFE")]),R("span",{class:V.price},[pe(this.moneyInfo.practiceAmount)])])]}),R(Ee,{span:6},{default:()=>[R("i",{class:V.color1},null),R("div",{class:V.type},[R("span",null,[et("\u76F4\u64AD\u8BFE")]),R("span",{class:V.price},[pe(this.moneyInfo.liveAmount)])])]}),R(Ee,{span:6},{default:()=>[R("i",{class:V.color2},null),R("div",{class:V.type},[R("span",null,[et("\u89C6\u9891\u8BFE")]),R("span",{class:V.price},[pe(this.moneyInfo.videoAmount)])])]}),R(Ee,{span:6},{default:()=>[R("i",{class:V.color3},null),R("div",{class:V.type},[R("span",null,[et("\u4E50\u8C31")]),R("span",{class:V.price},[pe(this.moneyInfo.musicAmount)])])]}),R(Ee,{span:6},{default:()=>[R("i",{class:V.color4},null),R("div",{class:V.type},[R("span",null,[et("\u5C0F\u9177Ai\u63A8\u5E7F")]),R("span",{class:V.price},[pe(this.moneyInfo.vipShareAmount)])])]}),R(Ee,{span:6},{default:()=>[R("i",{class:V.color5},null),R("div",{class:V.type},[R("span",null,[et("\u76F4\u64AD\u8BFE\u63A8\u8350")]),R("span",{class:V.price},[pe(this.moneyInfo.liveShareAmount)])])]}),R(Ee,{span:6},{default:()=>[R("i",{class:V.color6},null),R("div",{class:V.type},[R("span",null,[et("\u89C6\u9891\u8BFE\u63A8\u8350")]),R("span",{class:V.price},[pe(this.moneyInfo.videoShareAmount)])])]}),R(Ee,{span:6},{default:()=>[R("i",{class:V.color7},null),R("div",{class:V.type},[R("span",null,[et("\u5546\u54C1\u63A8\u8350")]),R("span",{class:V.price},[pe(this.moneyInfo.mallShareAmount)])])]}),R(Ee,{span:6},{default:()=>[R("i",{class:V.color8},null),R("div",{class:V.type},[R("span",null,[et("\u4E50\u8C31\u63A8\u8350")]),R("span",{class:V.price},[pe(this.moneyInfo.musicShareAmount)])])]}),R(Ee,{span:6},{default:()=>[R("i",{class:V.color10},null),R("div",{class:V.type},[R("span",null,[et("\u4E13\u8F91\u63A8\u8350")]),R("span",{class:V.price},[pe(this.moneyInfo.albumShareAmount)])])]}),R(Ee,{span:6},{default:()=>[R("i",{class:V.color9},null),R("div",{class:V.type},[R("span",null,[et("\u6D3B\u52A8\u62A5\u540D")]),R("span",{class:V.price},[pe(this.moneyInfo.actiRegistShareAmount)])])]})]})]),R("div",{id:"incomeClass",class:V.incomeLine},null),R("div",{class:V.incomeTitle},[R("i",null,null),et("\u6536\u5165\u7ED3\u6784")]),R("div",{class:[V.pieSection,"van-hairline--bottom"]},[R("div",{id:"structrueClass",class:V.pieIncome},null),R("div",{class:V.rateAll},[R("div",null,[R("img",{src:Im("icon_user.png")},null),R("span",null,[et("\u4E2A\u4EBA\u6536\u5165\u603B\u5360\u6BD4")]),R("span",{class:V.rate},[this.moneyInfo.totalSingleRate,et("%")])]),R("div",null,[R("img",{src:Im("icon_fly.png")},null),R("span",null,[et("\u63A8\u5E7F\u6536\u76CA\u603B\u5360\u6BD4")]),R("span",{class:V.rate},[this.moneyInfo.totalShareRate,et("%")])])])]),R("div",{class:V.pieData},[R("div",null,[R("i",{class:V.piePractice},null),R("span",{class:V.pieTitle},[et("\u966A\u7EC3\u8BFE")]),R("span",null,[this.moneyInfo.practiceRate,et("%")])]),R("div",null,[R("i",{class:V.pie1},null),R("span",{class:V.pieTitle},[et("\u5C0F\u9177Ai\u63A8\u5E7F")]),R("span",null,[this.moneyInfo.vipShareRate,et("%")])]),R("div",null,[R("i",{class:V.pieLive},null),R("span",{class:V.pieTitle},[et("\u76F4\u64AD\u8BFE")]),R("span",null,[this.moneyInfo.liveRate,et("%")])]),R("div",null,[R("i",{class:V.pie2},null),R("span",{class:V.pieTitle},[et("\u76F4\u64AD\u8BFE\u63A8\u8350")]),R("span",null,[this.moneyInfo.liveShareRate,et("%")])]),R("div",null,[R("i",{class:V.pieVideo},null),R("span",{class:V.pieTitle},[et("\u89C6\u9891\u8BFE")]),R("span",null,[this.moneyInfo.videoRate,et("%")])]),R("div",null,[R("i",{class:V.pie3},null),R("span",{class:V.pieTitle},[et("\u89C6\u9891\u8BFE\u63A8\u8350")]),R("span",null,[this.moneyInfo.videoShareRate,et("%")])]),R("div",null,[R("i",{class:V.pieMusic},null),R("span",{class:V.pieTitle},[et("\u4E50\u8C31")]),R("span",null,[this.moneyInfo.musicRate,et("%")])]),R("div",null,[R("i",{class:V.pie6},null),R("span",{class:V.pieTitle},[et("\u6D3B\u52A8\u62A5\u540D")]),R("span",null,[this.moneyInfo.actiRegistShareRate,et("%")])]),R("div",null,[R("i",{class:V.pie4},null),R("span",{class:V.pieTitle},[et("\u5546\u54C1\u63A8\u8350")]),R("span",null,[this.moneyInfo.mallShareRate,et("%")])]),R("div",null,[R("i",{class:V.pie5},null),R("span",{class:V.pieTitle},[et("\u4E50\u8C31\u63A8\u8350")]),R("span",null,[this.moneyInfo.musicShareRate,et("%")])]),R("div",null,[R("i",{class:V.pie7},null),R("span",{class:V.pieTitle},[et("\u4E13\u8F91\u63A8\u8350")]),R("span",null,[this.moneyInfo.albumShareRate,et("%")])])])]),R(ES,{show:this.timerStatus,"onUpdate:show":r=>this.timerStatus=r,position:"bottom",round:!0,zIndex:99999999},{default:()=>[this.params.timeType==="MONTH"&&R(NS,{modelValue:this.currentDate,"onUpdate:modelValue":r=>this.currentDate=r,type:"year-month",title:"\u9009\u62E9\u65F6\u95F4",formatter:OS,onCancel:()=>this.timerStatus=!1,onConfirm:r=>{this.params.dateTime=ca(r).format("YYYY-MM"),this.dateTimeStr=ca(r).format("YYYY\u5E74MM\u6708"),this.timerStatus=!1,this.getList()}},{"columns-top":()=>R("div",{class:V.timePopup},[R(ho,{type:"primary",plain:this.params.timeType!=="MONTH",size:"mini",class:V.timeMonth,onClick:()=>this.params.timeType="MONTH"},{default:()=>[et("\u6309\u6708")]}),R(ho,{type:"primary",plain:this.params.timeType!=="YEAR",size:"mini",class:V.timeYear,onClick:()=>this.params.timeType="YEAR"},{default:()=>[et("\u6309\u5E74")]})])}),this.params.timeType==="YEAR"&&R(FS,{modelValue:this.currentDate,"onUpdate:modelValue":r=>this.currentDate=r,title:"\u9009\u62E9\u65F6\u95F4",columns:DS,defaultIndex:Lm,onCancel:()=>this.timerStatus=!1,onConfirm:(r,t)=>{this.params.dateTime=r.value,Lm=t,this.dateTimeStr=r.text,this.timerStatus=!1,this.getList()}},{"columns-top":()=>R("div",{class:V.timePopup},[R(ho,{type:"primary",plain:this.params.timeType!=="MONTH",size:"mini",class:V.timeMonth,onClick:()=>this.params.timeType="MONTH"},{default:()=>[et("\u6309\u6708")]}),R(ho,{type:"primary",plain:this.params.timeType!=="YEAR",onClick:()=>this.params.timeType="YEAR",size:"mini",class:V.timeYear},{default:()=>[et("\u6309\u5E74")]})])})]})])}});export{fB as default,Im as getAssetsHomeFile};